| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"03d6":function(t,e,n){var r=n("9c0e"),i=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(e.length>l)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},"044b":function(t,e){
- /*!
- * Determine if an object is a Buffer
- *
- * @author Feross Aboukhadijeh <https://feross.org>
- * @license MIT
- */
- t.exports=function(t){return null!=t&&null!=t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},"051b":function(t,e,n){var r=n("1a14"),i=n("10db");t.exports=n("0bad")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"057f":function(t,e,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"05f5":function(t,e,n){var r=n("7a41"),i=n("ef08").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"06c5":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("a630"),n("fb6a"),n("b0c0"),n("d3b7"),n("25f0"),n("3ca3");var r=n("6b75");function i(t,e){if(t){if("string"===typeof t)return Object(r["a"])(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(t,e):void 0}}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;e.f=r?c:function(t,e){if(t=a(t),e=s(e,!0),u)try{return c(t,e)}catch(n){}if(l(t,e))return o(!i.f.call(t,e),t[e])}},"072d":function(t,e,n){"use strict";var r=n("0bad"),i=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),l=n("9fbb"),u=Object.assign;t.exports=!u||n("4b8b")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r}))?function(t,e){var n=s(t),u=arguments.length,c=1,h=o.f,f=a.f;while(u>c){var p,d=l(arguments[c++]),g=h?i(d).concat(h(d)):i(d),v=g.length,y=0;while(v>y)p=g[y++],r&&!f.call(d,p)||(n[p]=d[p])}return n}:u},"0983":function(t,e,n){var r=n("c901");t.exports=function(t){return Object(r(t))}},"0a06":function(t,e,n){"use strict";var r=n("2444"),i=n("c532"),o=n("f6b4"),a=n("5270");function s(t){this.defaults=t,this.interceptors={request:new o,response:new o}}s.prototype.request=function(t){"string"===typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),t=i.merge(r,{method:"get"},this.defaults,t),t.method=t.method.toLowerCase();var e=[a,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}})),i.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=s},"0ae2":function(t,e,n){var r=n("9876"),i=n("fed5"),o=n("1917");t.exports=function(t){var e=r(t),n=i.f;if(n){var a,s=n(t),l=o.f,u=0;while(s.length>u)l.call(t,a=s[u++])&&e.push(a)}return e}},"0b99":function(t,e,n){"use strict";var r=n("19fa")(!0);n("393a")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},"0bad":function(t,e,n){t.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0e15":function(t,e,n){var r=n("597f");t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},1098:function(t,e,n){"use strict";e.__esModule=!0;var r=n("17ed"),i=l(r),o=n("f893"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(t){return typeof t}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};function l(t){return t&&t.__esModule?t:{default:t}}e.default="function"===typeof a.default&&"symbol"===s(i.default)?function(t){return"undefined"===typeof t?"undefined":s(t)}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"===typeof t?"undefined":s(t)}},"10db":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1276:function(t,e,n){"use strict";var r=n("d784"),i=n("44e7"),o=n("825a"),a=n("1d80"),s=n("4840"),l=n("8aa5"),u=n("50c4"),c=n("14c3"),h=n("9263"),f=n("d039"),p=[].push,d=Math.min,g=4294967295,v=!f((function(){return!RegExp(g,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(a(this)),o=void 0===n?g:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!i(t))return e.call(r,t,o);var s,l,u,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,v=new RegExp(t.source,f+"g");while(s=h.call(v,r)){if(l=v.lastIndex,l>d&&(c.push(r.slice(d,s.index)),s.length>1&&s.index<r.length&&p.apply(c,s.slice(1)),u=s[0].length,d=l,c.length>=o))break;v.lastIndex===s.index&&v.lastIndex++}return d===r.length?!u&&v.test("")||c.push(""):c.push(r.slice(d)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=a(this),o=void 0==e?void 0:e[t];return void 0!==o?o.call(e,i,n):r.call(String(i),e,n)},function(t,i){var a=n(r,t,this,i,r!==e);if(a.done)return a.value;var h=o(t),f=String(this),p=s(h,RegExp),y=h.unicode,m=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(v?"y":"g"),_=new p(v?h:"^(?:"+h.source+")",m),x=void 0===i?g:i>>>0;if(0===x)return[];if(0===f.length)return null===c(_,f)?[f]:[];var b=0,w=0,S=[];while(w<f.length){_.lastIndex=v?w:0;var M,C=c(_,v?f:f.slice(w));if(null===C||(M=d(u(_.lastIndex+(v?0:w)),f.length))===b)w=l(f,w,y);else{if(S.push(f.slice(b,w)),S.length===x)return S;for(var T=1;T<=C.length-1;T++)if(S.push(C[T]),S.length===x)return S;w=b=M}}return S.push(f.slice(b)),S}]}),!v)},"14c3":function(t,e,n){var r=n("c6b6"),i=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in i){var l=r[s],u=l&&l.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(c){u.forEach=o}}},1609:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=n("ae40"),a=i("forEach"),s=o("forEach");t.exports=a&&s?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"17ed":function(t,e,n){t.exports={default:n("511f"),__esModule:!0}},1836:function(t,e,n){var r=n("6ca1"),i=n("6438").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},1917:function(t,e){e.f={}.propertyIsEnumerable},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"19fa":function(t,e,n){var r=n("fc5e"),i=n("c901");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"1a14":function(t,e,n){var r=n("77e9"),i=n("faf5"),o=n("3397"),a=Object.defineProperty;e.f=n("0bad")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(l){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1da1":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("d3b7");function r(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,l,"next",t)}function l(t){r(a,i,o,s,l,"throw",t)}s(void 0)}))}}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"21a1":function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self;function t(t,e){return e={exports:{}},t(e,e.exports),e.exports}var n=t((function(t,e){(function(e,n){t.exports=n()})(0,(function(){function t(t){var e=t&&"object"===typeof t;return e&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(t){return Array.isArray(t)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&t(n)?o(e(n),n,r):n}function r(e,r,i){var a=e.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):t(r)?a[s]=o(e[s],r,i):-1===e.indexOf(r)&&a.push(n(r,i))})),a}function i(e,r,i){var a={};return t(e)&&Object.keys(e).forEach((function(t){a[t]=n(e[t],i)})),Object.keys(r).forEach((function(s){t(r[s])&&e[s]?a[s]=o(e[s],r[s],i):a[s]=n(r[s],i)})),a}function o(t,e,o){var a=Array.isArray(e),s=o||{arrayMerge:r},l=s.arrayMerge||r;return a?Array.isArray(t)?l(t,e,o):n(e,o):i(t,e,o)}return o.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return o(t,n,e)}))},o}))}));function r(t){return t=t||Object.create(null),{on:function(e,n){(t[e]||(t[e]=[])).push(n)},off:function(e,n){t[e]&&t[e].splice(t[e].indexOf(n)>>>0,1)},emit:function(e,n){(t[e]||[]).map((function(t){t(n)})),(t["*"]||[]).map((function(t){t(e,n)}))}}}var i=t((function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n,t.exports=e.default})),o=function(t){return Object.keys(t).map((function(e){var n=t[e].toString().replace(/"/g,""");return e+'="'+n+'"'})).join(" ")},a=i.svg,s=i.xlink,l={};l[a.name]=a.uri,l[s.name]=s.uri;var u,c=function(t,e){void 0===t&&(t="");var r=n(l,e||{}),i=o(r);return"<svg "+i+">"+t+"</svg>"},h=i.svg,f=i.xlink,p={attrs:(u={style:["position: absolute","width: 0","height: 0"].join("; ")},u[h.name]=h.uri,u[f.name]=f.uri,u)},d=function(t){this.config=n(p,t||{}),this.symbols=[]};d.prototype.add=function(t){var e=this,n=e.symbols,r=this.find(t.id);return r?(n[n.indexOf(r)]=t,!1):(n.push(t),!0)},d.prototype.remove=function(t){var e=this,n=e.symbols,r=this.find(t);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},d.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},d.prototype.has=function(t){return null!==this.find(t)},d.prototype.stringify=function(){var t=this.config,e=t.attrs,n=this.symbols.map((function(t){return t.stringify()})).join("");return c(n,e)},d.prototype.toString=function(){return this.stringify()},d.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var g=function(t){var e=t.id,n=t.viewBox,r=t.content;this.id=e,this.viewBox=n,this.content=r};g.prototype.stringify=function(){return this.content},g.prototype.toString=function(){return this.stringify()},g.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var v=function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(n,!0):n},y=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return v(c(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,n),e}(g),m={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},_=function(t){return Array.prototype.slice.call(t,0)},x=navigator.userAgent,b={isChrome:/chrome/i.test(x),isFirefox:/firefox/i.test(x),isIE:/msie/i.test(x)||/trident/i.test(x),isEdge:/edge/i.test(x)},w=function(t,e){var n=document.createEvent("CustomEvent");n.initCustomEvent(t,!1,!1,e),window.dispatchEvent(n)},S=function(t){var e=[];return _(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)})),e},M=function(t){return(t||window.location.href).split("#")[0]},C=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,n,r){w(t,{oldUrl:r,newUrl:n})}))}])},T="linearGradient, radialGradient, pattern",I=function(t,e){return void 0===e&&(e=T),_(t.querySelectorAll("symbol")).forEach((function(t){_(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t};function A(t,e){var n=_(t).reduce((function(t,n){if(!n.attributes)return t;var r=_(n.attributes),i=e?r.filter(e):r;return t.concat(i)}),[]);return n}var D=i.xlink.uri,k="xlink:href",L=/[{}|\\\^\[\]`"<>]/g;function O(t){return t.replace(L,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}function P(t,e,n){return _(t).forEach((function(t){var r=t.getAttribute(k);if(r&&0===r.indexOf(e)){var i=r.replace(e,n);t.setAttributeNS(D,k,i)}})),t}var E,R=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],N=R.map((function(t){return"["+t+"]"})).join(","),z=function(t,e,n,r){var i=O(n),o=O(r),a=t.querySelectorAll(N),s=A(a,(function(t){var e=t.localName,n=t.value;return-1!==R.indexOf(e)&&-1!==n.indexOf("url("+i)}));s.forEach((function(t){return t.value=t.value.replace(i,o)})),P(e,i,o)},B={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},V=function(t){function e(e){var i=this;void 0===e&&(e={}),t.call(this,n(m,e));var o=r();this._emitter=o,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(e),s.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");o.on(B.MOUNT,(function(){return i.updateUrls("#",l)}))}var u=this._handleLocationChange.bind(this);this._handleLocationChange=u,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,u),s.locationChangeAngularEmitter&&C(s.locationChangeEvent),o.on(B.MOUNT,(function(t){s.moveGradientsOutsideSymbol&&I(t)})),o.on(B.SYMBOL_MOUNT,(function(t){s.moveGradientsOutsideSymbol&&I(t.parentNode),(b.isIE||b.isEdge)&&S(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this,n=e.config;"undefined"===typeof t.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof t.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),"undefined"===typeof t.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=b.isFirefox)},e.prototype._handleLocationChange=function(t){var e=t.detail,n=e.oldUrl,r=e.newUrl;this.updateUrls(n,r)},e.prototype.add=function(e){var n=this,r=t.prototype.add.call(this,e);return this.isMounted&&r&&(e.mount(n.node),this._emitter.emit(B.SYMBOL_MOUNT,e.node)),r},e.prototype.attach=function(t){var e=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof t?document.querySelector(t):t;return n.node=r,this.symbols.forEach((function(t){t.mount(n.node),e._emitter.emit(B.SYMBOL_MOUNT,t.node)})),_(r.querySelectorAll("symbol")).forEach((function(t){var e=y.createFromExistingNode(t);e.node=t,n.add(e)})),this._emitter.emit(B.MOUNT,r),r},e.prototype.destroy=function(){var t=this,e=t.config,n=t.symbols,r=t._emitter;n.forEach((function(t){return t.destroy()})),r.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof t?document.querySelector(t):t,i=n.render();return this.node=i,e&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(B.MOUNT,i),i},e.prototype.render=function(){return v(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return z(this.node,n,M(t)+"#",M(e)+"#"),!0},Object.defineProperties(e.prototype,i),e}(d),F=t((function(t){
- /*!
- * domready (c) Dustin Diaz 2014 - License MIT
- */
- !function(e,n){t.exports=n()}(0,(function(){var t,e=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(i,t=function(){n.removeEventListener(i,t),o=1;while(t=e.shift())t()}),function(t){o?setTimeout(t,0):e.push(t)}}))})),G="__SVG_SPRITE_NODE__",j="__SVG_SPRITE__",H=!!window[j];H?E=window[j]:(E=new V({attrs:{id:G}}),window[j]=E);var W=function(){var t=document.getElementById(G);t?E.attach(t):E.mount(document.body,!0)};document.body?W():F(W);var U=E;return U}))}).call(this,n("c8ba"))},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),l=n("9bdd"),u=function(t,e){this.stopped=t,this.result=e},c=t.exports=function(t,e,n,c,h){var f,p,d,g,v,y,m,_=a(e,n,c?2:1);if(h)f=t;else{if(p=s(t),"function"!=typeof p)throw TypeError("Target is not iterable");if(i(p)){for(d=0,g=o(t.length);g>d;d++)if(v=c?_(r(m=t[d])[0],m[1]):_(t[d]),v&&v instanceof u)return v;return new u(!1)}f=p.call(t)}y=f.next;while(!(m=y.call(f)).done)if(v=l(f,_,m.value,c),"object"==typeof v&&v&&v instanceof u)return v;return new u(!1)};c.stop=function(t){return new u(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),u=n("94ca");t.exports=function(t,e){var n,c,h,f,p,d,g=t.target,v=t.global,y=t.stat;if(c=v?r:y?r[g]||s(g,{}):(r[g]||{}).prototype,c)for(h in e){if(p=e[h],t.noTargetGet?(d=i(c,h),f=d&&d.value):f=c[h],n=u(v?h:g+(y?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof p===typeof f)continue;l(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),a(c,h,p,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},2444:function(t,e,n){"use strict";(function(e){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function s(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e)&&(t=n("b50d")),t}var l={adapter:s(),transformRequest:[function(t,e){return i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(o)})),t.exports=l}).call(this,n("4362"))},2532:function(t,e,n){"use strict";var r=n("23e7"),i=n("5a34"),o=n("1d80"),a=n("ab13");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),i=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",l=RegExp.prototype,u=l[s],c=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),h=u.name!=s;(c||h)&&r(RegExp.prototype,s,(function(){var t=i(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in l)?a.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},"26dd":function(t,e,n){"use strict";var r=n("6f4f"),i=n("10db"),o=n("92f0"),a={};n("051b")(a,n("cc15")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},2909:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("6b75");function i(t){if(Array.isArray(t))return Object(r["a"])(t)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0");function o(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}var a=n("06c5");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t){return i(t)||o(t)||Object(a["a"])(t)||s()}},"2b0e":function(t,e,n){"use strict";n.r(e),function(t){
- /*!
- * Vue.js v2.6.10
- * (c) 2014-2019 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function l(t){return null!==t&&"object"===typeof t}var u=Object.prototype.toString;function c(t){return"[object Object]"===u.call(t)}function h(t){return"[object RegExp]"===u.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}v("slot,component",!0);var y=v("key,ref,slot,slot-scope,is");function m(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function x(t,e){return _.call(t,e)}function b(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var w=/-(\w)/g,S=b((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),M=b((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,T=b((function(t){return t.replace(C,"-$1").toLowerCase()}));function I(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function A(t,e){return t.bind(e)}var D=Function.prototype.bind?A:I;function k(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function L(t,e){for(var n in e)t[n]=e[n];return t}function O(t){for(var e={},n=0;n<t.length;n++)t[n]&&L(e,t[n]);return e}function P(t,e,n){}var E=function(t,e,n){return!1},R=function(t){return t};function N(t,e){if(t===e)return!0;var n=l(t),r=l(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return N(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return N(t[n],e[n])}))}catch(u){return!1}}function z(t,e){for(var n=0;n<t.length;n++)if(N(t[n],e))return n;return-1}function B(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var V="data-server-rendered",F=["component","directive","filter"],G=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],j={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:E,isReservedAttr:E,isUnknownElement:E,getTagNamespace:P,parsePlatformTagName:R,mustUseProp:E,async:!0,_lifecycleHooks:G},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function W(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function U(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var X=new RegExp("[^"+H.source+".$_\\d]");function $(t){if(!X.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var Y,q="__proto__"in{},Z="undefined"!==typeof window,K="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=K&&WXEnvironment.platform.toLowerCase(),Q=Z&&window.navigator.userAgent.toLowerCase(),tt=Q&&/msie|trident/.test(Q),et=Q&&Q.indexOf("msie 9.0")>0,nt=Q&&Q.indexOf("edge/")>0,rt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),it=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(Z)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(Sa){}var lt=function(){return void 0===Y&&(Y=!Z&&!K&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ut=Z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ct(t){return"function"===typeof t&&/native code/.test(t.toString())}var ht,ft="undefined"!==typeof Symbol&&ct(Symbol)&&"undefined"!==typeof Reflect&&ct(Reflect.ownKeys);ht="undefined"!==typeof Set&&ct(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var pt=P,dt=0,gt=function(){this.id=dt++,this.subs=[]};gt.prototype.addSub=function(t){this.subs.push(t)},gt.prototype.removeSub=function(t){m(this.subs,t)},gt.prototype.depend=function(){gt.target&>.target.addDep(this)},gt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},gt.target=null;var vt=[];function yt(t){vt.push(t),gt.target=t}function mt(){vt.pop(),gt.target=vt[vt.length-1]}var _t=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},xt={child:{configurable:!0}};xt.child.get=function(){return this.componentInstance},Object.defineProperties(_t.prototype,xt);var bt=function(t){void 0===t&&(t="");var e=new _t;return e.text=t,e.isComment=!0,e};function wt(t){return new _t(void 0,void 0,void 0,String(t))}function St(t){var e=new _t(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var Mt=Array.prototype,Ct=Object.create(Mt),Tt=["push","pop","shift","unshift","splice","sort","reverse"];Tt.forEach((function(t){var e=Mt[t];U(Ct,t,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var It=Object.getOwnPropertyNames(Ct),At=!0;function Dt(t){At=t}var kt=function(t){this.value=t,this.dep=new gt,this.vmCount=0,U(t,"__ob__",this),Array.isArray(t)?(q?Lt(t,Ct):Ot(t,Ct,It),this.observeArray(t)):this.walk(t)};function Lt(t,e){t.__proto__=e}function Ot(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];U(t,o,e[o])}}function Pt(t,e){var n;if(l(t)&&!(t instanceof _t))return x(t,"__ob__")&&t.__ob__ instanceof kt?n=t.__ob__:At&&!lt()&&(Array.isArray(t)||c(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new kt(t)),e&&n&&n.vmCount++,n}function Et(t,e,n,r,i){var o=new gt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set;s&&!l||2!==arguments.length||(n=t[e]);var u=!i&&Pt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return gt.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&zt(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||s&&!l||(l?l.call(t,e):n=e,u=!i&&Pt(e),o.notify())}})}}function Rt(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Et(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Nt(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||x(t,e)&&(delete t[e],n&&n.dep.notify())}}function zt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&zt(e)}kt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Et(t,e[n])},kt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Pt(t[e])};var Bt=j.optionMergeStrategies;function Vt(t,e){if(!e)return t;for(var n,r,i,o=ft?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],x(t,n)?r!==i&&c(r)&&c(i)&&Vt(r,i):Rt(t,n,i));return t}function Ft(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?Vt(r,i):i}:e?t?function(){return Vt("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Gt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?jt(n):n}function jt(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function Ht(t,e,n,r){var i=Object.create(t||null);return e?L(i,e):i}Bt.data=function(t,e,n){return n?Ft(t,e,n):e&&"function"!==typeof e?t:Ft(t,e)},G.forEach((function(t){Bt[t]=Gt})),F.forEach((function(t){Bt[t+"s"]=Ht})),Bt.watch=function(t,e,n,r){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in L(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Bt.props=Bt.methods=Bt.inject=Bt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return L(i,t),e&&L(i,e),i},Bt.provide=Ft;var Wt=function(t,e){return void 0===e?t:e};function Ut(t,e){var n=t.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=S(i),a[o]={type:null})}else if(c(n))for(var s in n)i=n[s],o=S(s),a[o]=c(i)?i:{type:i};else 0;t.props=a}}function Xt(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(c(n))for(var o in n){var a=n[o];r[o]=c(a)?L({from:o},a):{from:a}}else 0}}function $t(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}function Yt(t,e,n){if("function"===typeof e&&(e=e.options),Ut(e,n),Xt(e,n),$t(e),!e._base&&(e.extends&&(t=Yt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Yt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)x(t,o)||s(o);function s(r){var i=Bt[r]||Wt;a[r]=i(t[r],e[r],n,r)}return a}function qt(t,e,n,r){if("string"===typeof n){var i=t[e];if(x(i,n))return i[n];var o=S(n);if(x(i,o))return i[o];var a=M(o);if(x(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Zt(t,e,n,r){var i=e[t],o=!x(n,t),a=n[t],s=te(Boolean,i.type);if(s>-1)if(o&&!x(i,"default"))a=!1;else if(""===a||a===T(t)){var l=te(String,i.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=Kt(r,i,t);var u=At;Dt(!0),Pt(a),Dt(u)}return a}function Kt(t,e,n){if(x(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof r&&"Function"!==Jt(e.type)?r.call(t):r}}function Jt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Qt(t,e){return Jt(t)===Jt(e)}function te(t,e){if(!Array.isArray(e))return Qt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Qt(e[n],t))return n;return-1}function ee(t,e,n){yt();try{if(e){var r=e;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,t,e,n);if(a)return}catch(Sa){re(Sa,r,"errorCaptured hook")}}}re(t,e,n)}finally{mt()}}function ne(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&p(o)&&!o._handled&&(o.catch((function(t){return ee(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(Sa){ee(Sa,r,i)}return o}function re(t,e,n){if(j.errorHandler)try{return j.errorHandler.call(null,t,e,n)}catch(Sa){Sa!==t&&ie(Sa,null,"config.errorHandler")}ie(t,e,n)}function ie(t,e,n){if(!Z&&!K||"undefined"===typeof console)throw t;console.error(t)}var oe,ae=!1,se=[],le=!1;function ue(){le=!1;var t=se.slice(0);se.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ct(Promise)){var ce=Promise.resolve();oe=function(){ce.then(ue),rt&&setTimeout(P)},ae=!0}else if(tt||"undefined"===typeof MutationObserver||!ct(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())oe="undefined"!==typeof setImmediate&&ct(setImmediate)?function(){setImmediate(ue)}:function(){setTimeout(ue,0)};else{var he=1,fe=new MutationObserver(ue),pe=document.createTextNode(String(he));fe.observe(pe,{characterData:!0}),oe=function(){he=(he+1)%2,pe.data=String(he)},ae=!0}function de(t,e){var n;if(se.push((function(){if(t)try{t.call(e)}catch(Sa){ee(Sa,e,"nextTick")}else n&&n(e)})),le||(le=!0,oe()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var ge=new ht;function ve(t){ye(t,ge),ge.clear()}function ye(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!l(t)||Object.isFrozen(t)||t instanceof _t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i){n=t.length;while(n--)ye(t[n],e)}else{r=Object.keys(t),n=r.length;while(n--)ye(t[r[n]],e)}}}var me=b((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function _e(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return ne(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)ne(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function xe(t,e,n,i,a,s){var l,u,c,h;for(l in t)u=t[l],c=e[l],h=me(l),r(u)||(r(c)?(r(u.fns)&&(u=t[l]=_e(u,s)),o(h.once)&&(u=t[l]=a(h.name,u,h.capture)),n(h.name,u,h.capture,h.passive,h.params)):u!==c&&(c.fns=u,t[l]=c));for(l in e)r(t[l])&&(h=me(l),i(h.name,e[l],h.capture))}function be(t,e,n){var a;t instanceof _t&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function l(){n.apply(this,arguments),m(a.fns,l)}r(s)?a=_e([l]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(l)):a=_e([s,l]),a.merged=!0,t[e]=a}function we(t,e,n){var o=e.options.props;if(!r(o)){var a={},s=t.attrs,l=t.props;if(i(s)||i(l))for(var u in o){var c=T(u);Se(a,l,u,c,!0)||Se(a,s,u,c,!1)}return a}}function Se(t,e,n,r,o){if(i(e)){if(x(e,n))return t[n]=e[n],o||delete e[n],!0;if(x(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function Me(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function Ce(t){return s(t)?[wt(t)]:Array.isArray(t)?Ie(t):void 0}function Te(t){return i(t)&&i(t.text)&&a(t.isComment)}function Ie(t,e){var n,a,l,u,c=[];for(n=0;n<t.length;n++)a=t[n],r(a)||"boolean"===typeof a||(l=c.length-1,u=c[l],Array.isArray(a)?a.length>0&&(a=Ie(a,(e||"")+"_"+n),Te(a[0])&&Te(u)&&(c[l]=wt(u.text+a[0].text),a.shift()),c.push.apply(c,a)):s(a)?Te(u)?c[l]=wt(u.text+a):""!==a&&c.push(wt(a)):Te(a)&&Te(u)?c[l]=wt(u.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),c.push(a)));return c}function Ae(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function De(t){var e=ke(t.$options.inject,t);e&&(Dt(!1),Object.keys(e).forEach((function(n){Et(t,n,e[n])})),Dt(!0))}function ke(t,e){if(t){for(var n=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&x(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var l=t[o].default;n[o]="function"===typeof l?l.call(e):l}else 0}}return n}}function Le(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var u in n)n[u].every(Oe)&&delete n[u];return n}function Oe(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Pe(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=Ee(e,l,t[l]))}else i={};for(var u in e)u in i||(i[u]=Re(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),U(i,"$stable",a),U(i,"$key",s),U(i,"$hasNormal",o),i}function Ee(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Ce(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Re(t,e){return function(){return t[e]}}function Ne(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(l(t))if(ft&&t[Symbol.iterator]){n=[];var u=t[Symbol.iterator](),c=u.next();while(!c.done)n.push(e(c.value,n.length)),c=u.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=e(t[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function ze(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=L(L({},r),n)),i=o(n)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Be(t){return qt(this.$options,"filters",t,!0)||R}function Ve(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Fe(t,e,n,r,i){var o=j.keyCodes[e]||n;return i&&r&&!j.keyCodes[e]?Ve(i,r):o?Ve(o,t):r?T(r)!==e:void 0}function Ge(t,e,n,r,i){if(n)if(l(n)){var o;Array.isArray(n)&&(n=O(n));var a=function(a){if("class"===a||"style"===a||y(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||j.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=S(a),u=T(a);if(!(l in o)&&!(u in o)&&(o[a]=n[a],i)){var c=t.on||(t.on={});c["update:"+a]=function(t){n[a]=t}}};for(var s in n)a(s)}else;return t}function je(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),We(r,"__static__"+t,!1)),r}function He(t,e,n){return We(t,"__once__"+e+(n?"_"+n:""),!0),t}function We(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&Ue(t[r],e+"_"+r,n);else Ue(t,e,n)}function Ue(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Xe(t,e){if(e)if(c(e)){var n=t.on=t.on?L({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function $e(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?$e(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ye(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function qe(t,e){return"string"===typeof t?e+t:t}function Ze(t){t._o=He,t._n=g,t._s=d,t._l=Ne,t._t=ze,t._q=N,t._i=z,t._m=je,t._f=Be,t._k=Fe,t._b=Ge,t._v=wt,t._e=bt,t._u=$e,t._g=Xe,t._d=Ye,t._p=qe}function Ke(t,e,r,i,a){var s,l=this,u=a.options;x(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var c=o(u._compiled),h=!c;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=ke(u.inject,i),this.slots=function(){return l.$slots||Pe(t.scopedSlots,l.$slots=Le(r,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Pe(t.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Pe(t.scopedSlots,this.$slots)),u._scopeId?this._c=function(t,e,n,r){var o=hn(s,t,e,n,r,h);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return hn(s,t,e,n,r,h)}}function Je(t,e,r,o,a){var s=t.options,l={},u=s.props;if(i(u))for(var c in u)l[c]=Zt(c,u,e||n);else i(r.attrs)&&tn(l,r.attrs),i(r.props)&&tn(l,r.props);var h=new Ke(r,l,a,o,t),f=s.render.call(null,h._c,h);if(f instanceof _t)return Qe(f,r,h.parent,s,h);if(Array.isArray(f)){for(var p=Ce(f)||[],d=new Array(p.length),g=0;g<p.length;g++)d[g]=Qe(p[g],r,h.parent,s,h);return d}}function Qe(t,e,n,r,i){var o=St(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function tn(t,e){for(var n in e)t[S(n)]=e[n]}Ze(Ke.prototype);var en={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;en.prepatch(n,n)}else{var r=t.componentInstance=on(t,kn);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;Rn(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Vn(n,"mounted")),t.data.keepAlive&&(e._isMounted?Jn(n):zn(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Bn(e,!0):e.$destroy())}},nn=Object.keys(en);function rn(t,e,n,a,s){if(!r(t)){var u=n.$options._base;if(l(t)&&(t=u.extend(t)),"function"===typeof t){var c;if(r(t.cid)&&(c=t,t=bn(c,u),void 0===t))return xn(c,e,n,a,s);e=e||{},br(t),i(e.model)&&ln(t.options,e);var h=we(e,t,s);if(o(t.options.functional))return Je(t,h,e,n,a);var f=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var p=e.slot;e={},p&&(e.slot=p)}an(e);var d=t.options.name||s,g=new _t("vue-component-"+t.cid+(d?"-"+d:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:h,listeners:f,tag:s,children:a},c);return g}}}function on(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function an(t){for(var e=t.hook||(t.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=e[r],o=en[r];i===o||i&&i._merged||(e[r]=i?sn(o,i):o)}}function sn(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function ln(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var un=1,cn=2;function hn(t,e,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=cn),fn(t,e,n,r,i)}function fn(t,e,n,r,o){if(i(n)&&i(n.__ob__))return bt();if(i(n)&&i(n.is)&&(e=n.is),!e)return bt();var a,s,l;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===cn?r=Ce(r):o===un&&(r=Me(r)),"string"===typeof e)?(s=t.$vnode&&t.$vnode.ns||j.getTagNamespace(e),a=j.isReservedTag(e)?new _t(j.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!i(l=qt(t.$options,"components",e))?new _t(e,n,r,void 0,void 0,t):rn(l,n,t,r,e)):a=rn(e,n,t,r);return Array.isArray(a)?a:i(a)?(i(s)&&pn(a,s),i(n)&&dn(n),a):bt()}function pn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var a=0,s=t.children.length;a<s;a++){var l=t.children[a];i(l.tag)&&(r(l.ns)||o(n)&&"svg"!==l.tag)&&pn(l,e,n)}}function dn(t){l(t.style)&&ve(t.style),l(t.class)&&ve(t.class)}function gn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=Le(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return hn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return hn(t,e,n,r,i,!0)};var o=r&&r.data;Et(t,"$attrs",o&&o.attrs||n,null,!0),Et(t,"$listeners",e._parentListeners||n,null,!0)}var vn,yn=null;function mn(t){Ze(t.prototype),t.prototype.$nextTick=function(t){return de(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=Pe(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{yn=e,t=r.call(e._renderProxy,e.$createElement)}catch(Sa){ee(Sa,e,"render"),t=e._vnode}finally{yn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof _t||(t=bt()),t.parent=i,t}}function _n(t,e){return(t.__esModule||ft&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function xn(t,e,n,r,i){var o=bt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function bn(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=yn;if(n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],s=!0,u=null,c=null;n.$on("hook:destroyed",(function(){return m(a,n)}));var h=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},f=B((function(n){t.resolved=_n(n,e),s?a.length=0:h(!0)})),d=B((function(e){i(t.errorComp)&&(t.error=!0,h(!0))})),g=t(f,d);return l(g)&&(p(g)?r(t.resolved)&&g.then(f,d):p(g.component)&&(g.component.then(f,d),i(g.error)&&(t.errorComp=_n(g.error,e)),i(g.loading)&&(t.loadingComp=_n(g.loading,e),0===g.delay?t.loading=!0:u=setTimeout((function(){u=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,h(!1))}),g.delay||200)),i(g.timeout)&&(c=setTimeout((function(){c=null,r(t.resolved)&&d(null)}),g.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}function wn(t){return t.isComment&&t.asyncFactory}function Sn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||wn(n)))return n}}function Mn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&An(t,e)}function Cn(t,e){vn.$on(t,e)}function Tn(t,e){vn.$off(t,e)}function In(t,e){var n=vn;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function An(t,e,n){vn=t,xe(e,n||{},Cn,Tn,In,t),vn=void 0}function Dn(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?k(n):n;for(var r=k(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)ne(n[o],e,r,e,i)}return e}}var kn=null;function Ln(t){var e=kn;return kn=t,function(){kn=e}}function On(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Pn(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Ln(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Vn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||m(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Vn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function En(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=bt),Vn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new nr(t,r,P,{before:function(){t._isMounted&&!t._isDestroyed&&Vn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Vn(t,"mounted")),t}function Rn(t,e,r,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,l=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),u=!!(o||t.$options._renderChildren||l);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){Dt(!1);for(var c=t._props,h=t.$options._propKeys||[],f=0;f<h.length;f++){var p=h[f],d=t.$options.props;c[p]=Zt(p,d,e,t)}Dt(!0),t.$options.propsData=e}r=r||n;var g=t.$options._parentListeners;t.$options._parentListeners=r,An(t,r,g),u&&(t.$slots=Le(o,i.context),t.$forceUpdate())}function Nn(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function zn(t,e){if(e){if(t._directInactive=!1,Nn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)zn(t.$children[n]);Vn(t,"activated")}}function Bn(t,e){if((!e||(t._directInactive=!0,!Nn(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Bn(t.$children[n]);Vn(t,"deactivated")}}function Vn(t,e){yt();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)ne(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),mt()}var Fn=[],Gn=[],jn={},Hn=!1,Wn=!1,Un=0;function Xn(){Un=Fn.length=Gn.length=0,jn={},Hn=Wn=!1}var $n=0,Yn=Date.now;if(Z&&!tt){var qn=window.performance;qn&&"function"===typeof qn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return qn.now()})}function Zn(){var t,e;for($n=Yn(),Wn=!0,Fn.sort((function(t,e){return t.id-e.id})),Un=0;Un<Fn.length;Un++)t=Fn[Un],t.before&&t.before(),e=t.id,jn[e]=null,t.run();var n=Gn.slice(),r=Fn.slice();Xn(),Qn(n),Kn(r),ut&&j.devtools&&ut.emit("flush")}function Kn(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Vn(r,"updated")}}function Jn(t){t._inactive=!1,Gn.push(t)}function Qn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,zn(t[e],!0)}function tr(t){var e=t.id;if(null==jn[e]){if(jn[e]=!0,Wn){var n=Fn.length-1;while(n>Un&&Fn[n].id>t.id)n--;Fn.splice(n+1,0,t)}else Fn.push(t);Hn||(Hn=!0,de(Zn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="","function"===typeof e?this.getter=e:(this.getter=$(e),this.getter||(this.getter=P)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;yt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Sa){if(!this.user)throw Sa;ee(Sa,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ve(t),mt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Sa){ee(Sa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:P,set:P};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&dr(t,e.methods),e.data?sr(t):Pt(t._data={},!0),e.computed&&cr(t,e.computed),e.watch&&e.watch!==ot&&gr(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Dt(!1);var a=function(o){i.push(o);var a=Zt(o,e,n,t);Et(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);Dt(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?lr(e,t):e||{},c(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&x(r,o)||W(o)||ir(t,"_data",o)}Pt(e,!0)}function lr(t,e){yt();try{return t.call(e,e)}catch(Sa){return ee(Sa,e,"data()"),{}}finally{mt()}}var ur={lazy:!0};function cr(t,e){var n=t._computedWatchers=Object.create(null),r=lt();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||P,P,ur)),i in t||hr(t,i,o)}}function hr(t,e,n){var r=!lt();"function"===typeof n?(rr.get=r?fr(e):pr(n),rr.set=P):(rr.get=n.get?r&&!1!==n.cache?fr(e):pr(n.get):P,rr.set=n.set||P),Object.defineProperty(t,e,rr)}function fr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),gt.target&&e.depend(),e.value}}function pr(t){return function(){return t.call(this,this)}}function dr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?P:D(e[n],t)}function gr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)vr(t,n,r[i]);else vr(t,n,r)}}function vr(t,e,n,r){return c(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}function yr(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Rt,t.prototype.$delete=Nt,t.prototype.$watch=function(t,e,n){var r=this;if(c(e))return vr(r,t,e,n);n=n||{},n.user=!0;var i=new nr(r,t,e,n);if(n.immediate)try{e.call(r,i.value)}catch(o){ee(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var mr=0;function _r(t){t.prototype._init=function(t){var e=this;e._uid=mr++,e._isVue=!0,t&&t._isComponent?xr(e,t):e.$options=Yt(br(e.constructor),t||{},e),e._renderProxy=e,e._self=e,On(e),Mn(e),gn(e),Vn(e,"beforeCreate"),De(e),or(e),Ae(e),Vn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function xr(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function br(t){var e=t.options;if(t.super){var n=br(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=wr(t);i&&L(t.extendOptions,i),e=t.options=Yt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function wr(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}function Sr(t){this._init(t)}function Mr(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Cr(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function Tr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Yt(n.options,t),a["super"]=n,a.options.props&&Ir(a),a.options.computed&&Ar(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,F.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=L({},a.options),i[r]=a,a}}function Ir(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Ar(t){var e=t.options.computed;for(var n in e)hr(t.prototype,n,e[n])}function Dr(t){F.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function kr(t){return t&&(t.Ctor.options.name||t.tag)}function Lr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Or(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=kr(a.componentOptions);s&&!e(s)&&Pr(n,o,r,i)}}}function Pr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,m(n,e)}_r(Sr),yr(Sr),Dn(Sr),Pn(Sr),mn(Sr);var Er=[String,RegExp,Array],Rr={name:"keep-alive",abstract:!0,props:{include:Er,exclude:Er,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Pr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Or(t,(function(t){return Lr(e,t)}))})),this.$watch("exclude",(function(e){Or(t,(function(t){return!Lr(e,t)}))}))},render:function(){var t=this.$slots.default,e=Sn(t),n=e&&e.componentOptions;if(n){var r=kr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Lr(o,r))||a&&r&&Lr(a,r))return e;var s=this,l=s.cache,u=s.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;l[c]?(e.componentInstance=l[c].componentInstance,m(u,c),u.push(c)):(l[c]=e,u.push(c),this.max&&u.length>parseInt(this.max)&&Pr(l,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Nr={KeepAlive:Rr};function zr(t){var e={get:function(){return j}};Object.defineProperty(t,"config",e),t.util={warn:pt,extend:L,mergeOptions:Yt,defineReactive:Et},t.set=Rt,t.delete=Nt,t.nextTick=de,t.observable=function(t){return Pt(t),t},t.options=Object.create(null),F.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,L(t.options.components,Nr),Mr(t),Cr(t),Tr(t),Dr(t)}zr(Sr),Object.defineProperty(Sr.prototype,"$isServer",{get:lt}),Object.defineProperty(Sr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Sr,"FunctionalRenderContext",{value:Ke}),Sr.version="2.6.10";var Br=v("style,class"),Vr=v("input,textarea,option,select,progress"),Fr=function(t,e,n){return"value"===n&&Vr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Gr=v("contenteditable,draggable,spellcheck"),jr=v("events,caret,typing,plaintext-only"),Hr=function(t,e){return Yr(e)||"false"===e?"false":"contenteditable"===t&&jr(e)?e:"true"},Wr=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Ur="http://www.w3.org/1999/xlink",Xr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},$r=function(t){return Xr(t)?t.slice(6,t.length):""},Yr=function(t){return null==t||!1===t};function qr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Zr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Zr(e,n.data));return Kr(e.staticClass,e.class)}function Zr(t,e){return{staticClass:Jr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Kr(t,e){return i(t)||i(e)?Jr(t,Qr(e)):""}function Jr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?ti(t):l(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Qr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function ei(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ii=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),oi=function(t){return ri(t)||ii(t)};function ai(t){return ii(t)?"svg":"math"===t?"math":void 0}var si=Object.create(null);function li(t){if(!Z)return!0;if(oi(t))return!1;if(t=t.toLowerCase(),null!=si[t])return si[t];var e=document.createElement(t);return t.indexOf("-")>-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ui=v("text,number,password,search,email,tel,url");function ci(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function hi(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fi(t,e){return document.createElementNS(ni[t],e)}function pi(t){return document.createTextNode(t)}function di(t){return document.createComment(t)}function gi(t,e,n){t.insertBefore(e,n)}function vi(t,e){t.removeChild(e)}function yi(t,e){t.appendChild(e)}function mi(t){return t.parentNode}function _i(t){return t.nextSibling}function xi(t){return t.tagName}function bi(t,e){t.textContent=e}function wi(t,e){t.setAttribute(e,"")}var Si=Object.freeze({createElement:hi,createElementNS:fi,createTextNode:pi,createComment:di,insertBefore:gi,removeChild:vi,appendChild:yi,parentNode:mi,nextSibling:_i,tagName:xi,setTextContent:bi,setStyleScope:wi}),Mi={create:function(t,e){Ci(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ci(t,!0),Ci(e))},destroy:function(t){Ci(t,!0)}};function Ci(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?m(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Ti=new _t("",{},[]),Ii=["create","activate","update","remove","destroy"];function Ai(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Di(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Di(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ui(r)&&ui(o)}function ki(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function Li(t){var e,n,a={},l=t.modules,u=t.nodeOps;for(e=0;e<Ii.length;++e)for(a[Ii[e]]=[],n=0;n<l.length;++n)i(l[n][Ii[e]])&&a[Ii[e]].push(l[n][Ii[e]]);function c(t){return new _t(u.tagName(t).toLowerCase(),{},[],void 0,t)}function h(t,e){function n(){0===--n.listeners&&f(t)}return n.listeners=e,n}function f(t){var e=u.parentNode(t);i(e)&&u.removeChild(e,t)}function p(t,e,n,r,a,s,l){if(i(t.elm)&&i(s)&&(t=s[l]=St(t)),t.isRootInsert=!a,!d(t,e,n,r)){var c=t.data,h=t.children,f=t.tag;i(f)?(t.elm=t.ns?u.createElementNS(t.ns,f):u.createElement(f,t),w(t),_(t,h,e),i(c)&&b(t,e),m(n,t.elm,r)):o(t.isComment)?(t.elm=u.createComment(t.text),m(n,t.elm,r)):(t.elm=u.createTextNode(t.text),m(n,t.elm,r))}}function d(t,e,n,r){var a=t.data;if(i(a)){var s=i(t.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(t,!1),i(t.componentInstance))return g(t,e),m(n,t.elm,r),o(s)&&y(t,e,n,r),!0}}function g(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,x(t)?(b(t,e),w(t)):(Ci(t),e.push(t))}function y(t,e,n,r){var o,s=t;while(s.componentInstance)if(s=s.componentInstance._vnode,i(o=s.data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](Ti,s);e.push(s);break}m(n,t.elm,r)}function m(t,e,n){i(t)&&(i(n)?u.parentNode(n)===t&&u.insertBefore(t,e,n):u.appendChild(t,e))}function _(t,e,n){if(Array.isArray(e)){0;for(var r=0;r<e.length;++r)p(e[r],n,t.elm,null,!0,e,r)}else s(t.text)&&u.appendChild(t.elm,u.createTextNode(String(t.text)))}function x(t){while(t.componentInstance)t=t.componentInstance._vnode;return i(t.tag)}function b(t,n){for(var r=0;r<a.create.length;++r)a.create[r](Ti,t);e=t.data.hook,i(e)&&(i(e.create)&&e.create(Ti,t),i(e.insert)&&n.push(t))}function w(t){var e;if(i(e=t.fnScopeId))u.setStyleScope(t.elm,e);else{var n=t;while(n)i(e=n.context)&&i(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e),n=n.parent}i(e=kn)&&e!==t.context&&e!==t.fnContext&&i(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e)}function S(t,e,n,r,i,o){for(;r<=i;++r)p(n[r],o,t,e,!1,n,r)}function M(t){var e,n,r=t.data;if(i(r))for(i(e=r.hook)&&i(e=e.destroy)&&e(t),e=0;e<a.destroy.length;++e)a.destroy[e](t);if(i(e=t.children))for(n=0;n<t.children.length;++n)M(t.children[n])}function C(t,e,n,r){for(;n<=r;++n){var o=e[n];i(o)&&(i(o.tag)?(T(o),M(o)):f(o.elm))}}function T(t,e){if(i(e)||i(t.data)){var n,r=a.remove.length+1;for(i(e)?e.listeners+=r:e=h(t.elm,r),i(n=t.componentInstance)&&i(n=n._vnode)&&i(n.data)&&T(n,e),n=0;n<a.remove.length;++n)a.remove[n](t,e);i(n=t.data.hook)&&i(n=n.remove)?n(t,e):e()}else f(t.elm)}function I(t,e,n,o,a){var s,l,c,h,f=0,d=0,g=e.length-1,v=e[0],y=e[g],m=n.length-1,_=n[0],x=n[m],b=!a;while(f<=g&&d<=m)r(v)?v=e[++f]:r(y)?y=e[--g]:Ai(v,_)?(D(v,_,o,n,d),v=e[++f],_=n[++d]):Ai(y,x)?(D(y,x,o,n,m),y=e[--g],x=n[--m]):Ai(v,x)?(D(v,x,o,n,m),b&&u.insertBefore(t,v.elm,u.nextSibling(y.elm)),v=e[++f],x=n[--m]):Ai(y,_)?(D(y,_,o,n,d),b&&u.insertBefore(t,y.elm,v.elm),y=e[--g],_=n[++d]):(r(s)&&(s=ki(e,f,g)),l=i(_.key)?s[_.key]:A(_,e,f,g),r(l)?p(_,o,t,v.elm,!1,n,d):(c=e[l],Ai(c,_)?(D(c,_,o,n,d),e[l]=void 0,b&&u.insertBefore(t,c.elm,v.elm)):p(_,o,t,v.elm,!1,n,d)),_=n[++d]);f>g?(h=r(n[m+1])?null:n[m+1].elm,S(t,h,n,d,m,o)):d>m&&C(t,e,f,g)}function A(t,e,n,r){for(var o=n;o<r;o++){var a=e[o];if(i(a)&&Ai(t,a))return o}}function D(t,e,n,s,l,c){if(t!==e){i(e.elm)&&i(s)&&(e=s[l]=St(e));var h=e.elm=t.elm;if(o(t.isAsyncPlaceholder))i(e.asyncFactory.resolved)?O(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,p=e.data;i(p)&&i(f=p.hook)&&i(f=f.prepatch)&&f(t,e);var d=t.children,g=e.children;if(i(p)&&x(e)){for(f=0;f<a.update.length;++f)a.update[f](t,e);i(f=p.hook)&&i(f=f.update)&&f(t,e)}r(e.text)?i(d)&&i(g)?d!==g&&I(h,d,g,n,c):i(g)?(i(t.text)&&u.setTextContent(h,""),S(h,null,g,0,g.length-1,n)):i(d)?C(h,d,0,d.length-1):i(t.text)&&u.setTextContent(h,""):t.text!==e.text&&u.setTextContent(h,e.text),i(p)&&i(f=p.hook)&&i(f=f.postpatch)&&f(t,e)}}}function k(t,e,n){if(o(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var L=v("attrs,class,staticClass,staticStyle,key");function O(t,e,n,r){var a,s=e.tag,l=e.data,u=e.children;if(r=r||l&&l.pre,e.elm=t,o(e.isComment)&&i(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(i(l)&&(i(a=l.hook)&&i(a=a.init)&&a(e,!0),i(a=e.componentInstance)))return g(e,n),!0;if(i(s)){if(i(u))if(t.hasChildNodes())if(i(a=l)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var c=!0,h=t.firstChild,f=0;f<u.length;f++){if(!h||!O(h,u[f],n,r)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else _(e,u,n);if(i(l)){var p=!1;for(var d in l)if(!L(d)){p=!0,b(e,n);break}!p&&l["class"]&&ve(l["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!r(e)){var l=!1,h=[];if(r(t))l=!0,p(e,h);else{var f=i(t.nodeType);if(!f&&Ai(t,e))D(t,e,h,null,null,s);else{if(f){if(1===t.nodeType&&t.hasAttribute(V)&&(t.removeAttribute(V),n=!0),o(n)&&O(t,e,h))return k(e,h,!0),t;t=c(t)}var d=t.elm,g=u.parentNode(d);if(p(e,h,d._leaveCb?null:g,u.nextSibling(d)),i(e.parent)){var v=e.parent,y=x(e);while(v){for(var m=0;m<a.destroy.length;++m)a.destroy[m](v);if(v.elm=e.elm,y){for(var _=0;_<a.create.length;++_)a.create[_](Ti,v);var b=v.data.hook.insert;if(b.merged)for(var w=1;w<b.fns.length;w++)b.fns[w]()}else Ci(v);v=v.parent}}i(g)?C(g,[t],0,0):i(t.tag)&&M(t)}}return k(e,h,l),e.elm}i(t)&&M(t)}}var Oi={create:Pi,update:Pi,destroy:function(t){Pi(t,Ti)}};function Pi(t,e){(t.data.directives||e.data.directives)&&Ei(t,e)}function Ei(t,e){var n,r,i,o=t===Ti,a=e===Ti,s=Ni(t.data.directives,t.context),l=Ni(e.data.directives,e.context),u=[],c=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Bi(i,"update",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(Bi(i,"bind",e,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var h=function(){for(var n=0;n<u.length;n++)Bi(u[n],"inserted",e,t)};o?be(e,"insert",h):h()}if(c.length&&be(e,"postpatch",(function(){for(var n=0;n<c.length;n++)Bi(c[n],"componentUpdated",e,t)})),!o)for(n in s)l[n]||Bi(s[n],"unbind",t,t,a)}var Ri=Object.create(null);function Ni(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)r=t[n],r.modifiers||(r.modifiers=Ri),i[zi(r)]=r,r.def=qt(e.$options,"directives",r.name,!0);return i}function zi(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Bi(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(Sa){ee(Sa,n.context,"directive "+t.name+" "+e+" hook")}}var Vi=[Mi,Oi];function Fi(t,e){var n=e.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(t.data.attrs)||!r(e.data.attrs))){var o,a,s,l=e.elm,u=t.data.attrs||{},c=e.data.attrs||{};for(o in i(c.__ob__)&&(c=e.data.attrs=L({},c)),c)a=c[o],s=u[o],s!==a&&Gi(l,o,a);for(o in(tt||nt)&&c.value!==u.value&&Gi(l,"value",c.value),u)r(c[o])&&(Xr(o)?l.removeAttributeNS(Ur,$r(o)):Gr(o)||l.removeAttribute(o))}}function Gi(t,e,n){t.tagName.indexOf("-")>-1?ji(t,e,n):Wr(e)?Yr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Gr(e)?t.setAttribute(e,Hr(e,n)):Xr(e)?Yr(n)?t.removeAttributeNS(Ur,$r(e)):t.setAttributeNS(Ur,e,n):ji(t,e,n)}function ji(t,e,n){if(Yr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Hi={create:Fi,update:Fi};function Wi(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=qr(e),l=n._transitionClasses;i(l)&&(s=Jr(s,Qr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Ui,Xi={create:Wi,update:Wi},$i="__r",Yi="__c";function qi(t){if(i(t[$i])){var e=tt?"change":"input";t[e]=[].concat(t[$i],t[e]||[]),delete t[$i]}i(t[Yi])&&(t.change=[].concat(t[Yi],t.change||[]),delete t[Yi])}function Zi(t,e,n){var r=Ui;return function i(){var o=e.apply(null,arguments);null!==o&&Qi(t,i,n,r)}}var Ki=ae&&!(it&&Number(it[1])<=53);function Ji(t,e,n,r){if(Ki){var i=$n,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Ui.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Qi(t,e,n,r){(r||Ui).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Ui=e.elm,qi(n),xe(n,i,Ji,Qi,Zi,e.context),Ui=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in i(l.__ob__)&&(l=e.data.domProps=L({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var u=r(o)?"":String(o);io(a,u)&&(a.value=u)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+o+"</svg>";var c=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(c.firstChild)a.appendChild(c.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Sa){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(Sa){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return g(n)!==g(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},lo=b((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function uo(t){var e=co(t.style);return t.staticStyle?L(t.staticStyle,e):e}function co(t){return Array.isArray(t)?O(t):"string"===typeof t?lo(t):t}function ho(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=uo(i.data))&&L(r,n)}(n=uo(t.data))&&L(r,n);var o=t;while(o=o.parent)o.data&&(n=uo(o.data))&&L(r,n);return r}var fo,po=/^--/,go=/\s*!important$/,vo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(go.test(n))t.style.setProperty(T(e),n.replace(go,""),"important");else{var r=mo(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},yo=["Webkit","Moz","ms"],mo=b((function(t){if(fo=fo||document.createElement("div").style,t=S(t),"filter"!==t&&t in fo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<yo.length;n++){var r=yo[n]+e;if(r in fo)return r}}));function _o(t,e){var n=e.data,o=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,l=e.elm,u=o.staticStyle,c=o.normalizedStyle||o.style||{},h=u||c,f=co(e.data.style)||{};e.data.normalizedStyle=i(f.__ob__)?L({},f):f;var p=ho(e,!0);for(s in h)r(p[s])&&vo(l,s,"");for(s in p)a=p[s],a!==h[s]&&vo(l,s,null==a?"":a)}}var xo={create:_o,update:_o},bo=/\s+/;function wo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(bo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function So(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(bo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Mo(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&L(e,Co(t.name||"v")),L(e,t),e}return"string"===typeof t?Co(t):void 0}}var Co=b((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),To=Z&&!et,Io="transition",Ao="animation",Do="transition",ko="transitionend",Lo="animation",Oo="animationend";To&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Do="WebkitTransition",ko="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Lo="WebkitAnimation",Oo="webkitAnimationEnd"));var Po=Z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Eo(t){Po((function(){Po(t)}))}function Ro(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),wo(t,e))}function No(t,e){t._transitionClasses&&m(t._transitionClasses,e),So(t,e)}function zo(t,e,n){var r=Vo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Io?ko:Oo,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout((function(){l<a&&u()}),o+1),t.addEventListener(s,c)}var Bo=/\b(transform|all)(,|$)/;function Vo(t,e){var n,r=window.getComputedStyle(t),i=(r[Do+"Delay"]||"").split(", "),o=(r[Do+"Duration"]||"").split(", "),a=Fo(i,o),s=(r[Lo+"Delay"]||"").split(", "),l=(r[Lo+"Duration"]||"").split(", "),u=Fo(s,l),c=0,h=0;e===Io?a>0&&(n=Io,c=a,h=o.length):e===Ao?u>0&&(n=Ao,c=u,h=l.length):(c=Math.max(a,u),n=c>0?a>u?Io:Ao:null,h=n?n===Io?o.length:l.length:0);var f=n===Io&&Bo.test(r[Do+"Property"]);return{type:n,timeout:c,propCount:h,hasTransform:f}}function Fo(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return Go(e)+Go(t[n])})))}function Go(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function jo(t,e){var n=t.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=Mo(t.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,u=o.enterClass,c=o.enterToClass,h=o.enterActiveClass,f=o.appearClass,p=o.appearToClass,d=o.appearActiveClass,v=o.beforeEnter,y=o.enter,m=o.afterEnter,_=o.enterCancelled,x=o.beforeAppear,b=o.appear,w=o.afterAppear,S=o.appearCancelled,M=o.duration,C=kn,T=kn.$vnode;while(T&&T.parent)C=T.context,T=T.parent;var I=!C._isMounted||!t.isRootInsert;if(!I||b||""===b){var A=I&&f?f:u,D=I&&d?d:h,k=I&&p?p:c,L=I&&x||v,O=I&&"function"===typeof b?b:y,P=I&&w||m,E=I&&S||_,R=g(l(M)?M.enter:M);0;var N=!1!==a&&!et,z=Uo(O),V=n._enterCb=B((function(){N&&(No(n,k),No(n,D)),V.cancelled?(N&&No(n,A),E&&E(n)):P&&P(n),n._enterCb=null}));t.data.show||be(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),O&&O(n,V)})),L&&L(n),N&&(Ro(n,A),Ro(n,D),Eo((function(){No(n,A),V.cancelled||(Ro(n,k),z||(Wo(R)?setTimeout(V,R):zo(n,s,V)))}))),t.data.show&&(e&&e(),O&&O(n,V)),N||z||V()}}}function Ho(t,e){var n=t.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=Mo(t.data.transition);if(r(o)||1!==n.nodeType)return e();if(!i(n._leaveCb)){var a=o.css,s=o.type,u=o.leaveClass,c=o.leaveToClass,h=o.leaveActiveClass,f=o.beforeLeave,p=o.leave,d=o.afterLeave,v=o.leaveCancelled,y=o.delayLeave,m=o.duration,_=!1!==a&&!et,x=Uo(p),b=g(l(m)?m.leave:m);0;var w=n._leaveCb=B((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),_&&(No(n,c),No(n,h)),w.cancelled?(_&&No(n,u),v&&v(n)):(e(),d&&d(n)),n._leaveCb=null}));y?y(S):S()}function S(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),f&&f(n),_&&(Ro(n,u),Ro(n,h),Eo((function(){No(n,u),w.cancelled||(Ro(n,c),x||(Wo(b)?setTimeout(w,b):zo(n,s,w)))}))),p&&p(n,w),_||x||w())}}function Wo(t){return"number"===typeof t&&!isNaN(t)}function Uo(t){if(r(t))return!1;var e=t.fns;return i(e)?Uo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Xo(t,e){!0!==e.data.show&&jo(e)}var $o=Z?{create:Xo,activate:Xo,remove:function(t,e){!0!==t.data.show?Ho(t,e):e()}}:{},Yo=[Hi,Xi,no,so,xo,$o],qo=Yo.concat(Vi),Zo=Li({nodeOps:Si,modules:qo});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Ko={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?be(n,"postpatch",(function(){Ko.componentUpdated(t,e,n)})):Jo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||ui(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Jo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some((function(t,e){return!N(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return ta(t,i)})):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Jo(t,e,n){Qo(t,e,n),(tt||nt)&&setTimeout((function(){Qo(t,e,n)}),0)}function Qo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=t.options.length;s<l;s++)if(a=t.options[s],i)o=z(r,ea(a))>-1,a.selected!==o&&(a.selected=o);else if(N(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!N(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,jo(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?jo(n,(function(){t.style.display=t.__vOriginalDisplay})):Ho(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Ko,show:aa},la={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ua(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ua(Sn(e.children)):t}function ca(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[S(o)]=i[o];return e}function ha(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fa(t){while(t=t.parent)if(t.data.transition)return!0}function pa(t,e){return e.key===t.key&&e.tag===t.tag}var da=function(t){return t.tag||wn(t)},ga=function(t){return"show"===t.name},va={name:"transition",props:la,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(da),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=ua(i);if(!o)return i;if(this._leaving)return ha(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=ca(this),u=this._vnode,c=ua(u);if(o.data.directives&&o.data.directives.some(ga)&&(o.data.show=!0),c&&c.data&&!pa(o,c)&&!wn(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=L({},l);if("out-in"===r)return this._leaving=!0,be(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ha(t,i);if("in-out"===r){if(wn(o))return u;var f,p=function(){f()};be(l,"afterEnter",p),be(l,"enterCancelled",p),be(h,"delayLeave",(function(t){f=t}))}}return i}}},ya=L({tag:String,moveClass:String},la);delete ya.mode;var ma={props:ya,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Ln(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ca(this),s=0;s<i.length;s++){var l=i[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(r){for(var u=[],c=[],h=0;h<r.length;h++){var f=r[h];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?u.push(f):c.push(f)}this.kept=t(e,null,u),this.removed=c}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(_a),t.forEach(xa),t.forEach(ba),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Ro(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(ko,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(ko,t),n._moveCb=null,No(n,e))})}})))},methods:{hasMove:function(t,e){if(!To)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){So(n,t)})),wo(n,e),n.style.display="none",this.$el.appendChild(n);var r=Vo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function _a(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function xa(t){t.data.newPos=t.elm.getBoundingClientRect()}function ba(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var wa={Transition:va,TransitionGroup:ma};Sr.config.mustUseProp=Fr,Sr.config.isReservedTag=oi,Sr.config.isReservedAttr=Br,Sr.config.getTagNamespace=ai,Sr.config.isUnknownElement=li,L(Sr.options.directives,sa),L(Sr.options.components,wa),Sr.prototype.__patch__=Z?Zo:P,Sr.prototype.$mount=function(t,e){return t=t&&Z?ci(t):void 0,En(this,t,e)},Z&&setTimeout((function(){j.devtools&&ut&&ut.emit("init",Sr)}),0),e["default"]=Sr}.call(this,n("c8ba"))},"2cf4":function(t,e,n){var r,i,o,a=n("da84"),s=n("d039"),l=n("c6b6"),u=n("0366"),c=n("1be4"),h=n("cc12"),f=n("1cdc"),p=a.location,d=a.setImmediate,g=a.clearImmediate,v=a.process,y=a.MessageChannel,m=a.Dispatch,_=0,x={},b="onreadystatechange",w=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},S=function(t){return function(){w(t)}},M=function(t){w(t.data)},C=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};d&&g||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return x[++_]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(_),_},g=function(t){delete x[t]},"process"==l(v)?r=function(t){v.nextTick(S(t))}:m&&m.now?r=function(t){m.now(S(t))}:y&&!f?(i=new y,o=i.port2,i.port1.onmessage=M,r=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(C)||"file:"===p.protocol?r=b in h("script")?function(t){c.appendChild(h("script"))[b]=function(){c.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}:(r=C,a.addEventListener("message",M,!1))),t.exports={set:d,clear:g}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,l=s&&s.versions,u=l&&l.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"2d83":function(t,e,n){"use strict";var r=n("387f");t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2ef0":function(t,e,n){(function(t,r){var i;
- /**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */(function(){var o,a="4.17.21",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",d=1,g=2,v=4,y=1,m=2,_=1,x=2,b=4,w=8,S=16,M=32,C=64,T=128,I=256,A=512,D=30,k="...",L=800,O=16,P=1,E=2,R=3,N=1/0,z=9007199254740991,B=17976931348623157e292,V=NaN,F=4294967295,G=F-1,j=F>>>1,H=[["ary",T],["bind",_],["bindKey",x],["curry",w],["curryRight",S],["flip",A],["partial",M],["partialRight",C],["rearg",I]],W="[object Arguments]",U="[object Array]",X="[object AsyncFunction]",$="[object Boolean]",Y="[object Date]",q="[object DOMException]",Z="[object Error]",K="[object Function]",J="[object GeneratorFunction]",Q="[object Map]",tt="[object Number]",et="[object Null]",nt="[object Object]",rt="[object Promise]",it="[object Proxy]",ot="[object RegExp]",at="[object Set]",st="[object String]",lt="[object Symbol]",ut="[object Undefined]",ct="[object WeakMap]",ht="[object WeakSet]",ft="[object ArrayBuffer]",pt="[object DataView]",dt="[object Float32Array]",gt="[object Float64Array]",vt="[object Int8Array]",yt="[object Int16Array]",mt="[object Int32Array]",_t="[object Uint8Array]",xt="[object Uint8ClampedArray]",bt="[object Uint16Array]",wt="[object Uint32Array]",St=/\b__p \+= '';/g,Mt=/\b(__p \+=) '' \+/g,Ct=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tt=/&(?:amp|lt|gt|quot|#39);/g,It=/[&<>"']/g,At=RegExp(Tt.source),Dt=RegExp(It.source),kt=/<%-([\s\S]+?)%>/g,Lt=/<%([\s\S]+?)%>/g,Ot=/<%=([\s\S]+?)%>/g,Pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Et=/^\w*$/,Rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nt=/[\\^$.*+?()[\]{}|]/g,zt=RegExp(Nt.source),Bt=/^\s+/,Vt=/\s/,Ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gt=/\{\n\/\* \[wrapped with (.+)\] \*/,jt=/,? & /,Ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wt=/[()=,{}\[\]\/\s]/,Ut=/\\(\\)?/g,Xt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$t=/\w*$/,Yt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,Kt=/^0o[0-7]+$/i,Jt=/^(?:0|[1-9]\d*)$/,Qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,te=/($^)/,ee=/['\n\r\u2028\u2029\\]/g,ne="\\ud800-\\udfff",re="\\u0300-\\u036f",ie="\\ufe20-\\ufe2f",oe="\\u20d0-\\u20ff",ae=re+ie+oe,se="\\u2700-\\u27bf",le="a-z\\xdf-\\xf6\\xf8-\\xff",ue="\\xac\\xb1\\xd7\\xf7",ce="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",he="\\u2000-\\u206f",fe=" \\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",pe="A-Z\\xc0-\\xd6\\xd8-\\xde",de="\\ufe0e\\ufe0f",ge=ue+ce+he+fe,ve="['’]",ye="["+ne+"]",me="["+ge+"]",_e="["+ae+"]",xe="\\d+",be="["+se+"]",we="["+le+"]",Se="[^"+ne+ge+xe+se+le+pe+"]",Me="\\ud83c[\\udffb-\\udfff]",Ce="(?:"+_e+"|"+Me+")",Te="[^"+ne+"]",Ie="(?:\\ud83c[\\udde6-\\uddff]){2}",Ae="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+pe+"]",ke="\\u200d",Le="(?:"+we+"|"+Se+")",Oe="(?:"+De+"|"+Se+")",Pe="(?:"+ve+"(?:d|ll|m|re|s|t|ve))?",Ee="(?:"+ve+"(?:D|LL|M|RE|S|T|VE))?",Re=Ce+"?",Ne="["+de+"]?",ze="(?:"+ke+"(?:"+[Te,Ie,Ae].join("|")+")"+Ne+Re+")*",Be="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ve="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fe=Ne+Re+ze,Ge="(?:"+[be,Ie,Ae].join("|")+")"+Fe,je="(?:"+[Te+_e+"?",_e,Ie,Ae,ye].join("|")+")",He=RegExp(ve,"g"),We=RegExp(_e,"g"),Ue=RegExp(Me+"(?="+Me+")|"+je+Fe,"g"),Xe=RegExp([De+"?"+we+"+"+Pe+"(?="+[me,De,"$"].join("|")+")",Oe+"+"+Ee+"(?="+[me,De+Le,"$"].join("|")+")",De+"?"+Le+"+"+Pe,De+"+"+Ee,Ve,Be,xe,Ge].join("|"),"g"),$e=RegExp("["+ke+ne+ae+de+"]"),Ye=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qe=["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"],Ze=-1,Ke={};Ke[dt]=Ke[gt]=Ke[vt]=Ke[yt]=Ke[mt]=Ke[_t]=Ke[xt]=Ke[bt]=Ke[wt]=!0,Ke[W]=Ke[U]=Ke[ft]=Ke[$]=Ke[pt]=Ke[Y]=Ke[Z]=Ke[K]=Ke[Q]=Ke[tt]=Ke[nt]=Ke[ot]=Ke[at]=Ke[st]=Ke[ct]=!1;var Je={};Je[W]=Je[U]=Je[ft]=Je[pt]=Je[$]=Je[Y]=Je[dt]=Je[gt]=Je[vt]=Je[yt]=Je[mt]=Je[Q]=Je[tt]=Je[nt]=Je[ot]=Je[at]=Je[st]=Je[lt]=Je[_t]=Je[xt]=Je[bt]=Je[wt]=!0,Je[Z]=Je[K]=Je[ct]=!1;var Qe={"À":"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"},tn={"&":"&","<":"<",">":">",'"':""","'":"'"},en={"&":"&","<":"<",">":">",""":'"',"'":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,an="object"==typeof t&&t&&t.Object===Object&&t,sn="object"==typeof self&&self&&self.Object===Object&&self,ln=an||sn||Function("return this")(),un=e&&!e.nodeType&&e,cn=un&&"object"==typeof r&&r&&!r.nodeType&&r,hn=cn&&cn.exports===un,fn=hn&&an.process,pn=function(){try{var t=cn&&cn.require&&cn.require("util").types;return t||fn&&fn.binding&&fn.binding("util")}catch(e){}}(),dn=pn&&pn.isArrayBuffer,gn=pn&&pn.isDate,vn=pn&&pn.isMap,yn=pn&&pn.isRegExp,mn=pn&&pn.isSet,_n=pn&&pn.isTypedArray;function xn(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 bn(t,e,n,r){var i=-1,o=null==t?0:t.length;while(++i<o){var a=t[i];e(r,a,n(a),t)}return r}function wn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}function Sn(t,e){var n=null==t?0:t.length;while(n--)if(!1===e(t[n],n,t))break;return t}function Mn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!e(t[n],n,t))return!1;return!0}function Cn(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Tn(t,e){var n=null==t?0:t.length;return!!n&&Bn(t,e,0)>-1}function In(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}function An(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}function Dn(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}function kn(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}function Ln(t,e,n,r){var i=null==t?0:t.length;r&&i&&(n=t[--i]);while(i--)n=e(n,t[i],i,t);return n}function On(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var Pn=jn("length");function En(t){return t.split("")}function Rn(t){return t.match(Ht)||[]}function Nn(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function zn(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}function Bn(t,e,n){return e===e?dr(t,e,n):zn(t,Fn,n)}function Vn(t,e,n,r){var i=n-1,o=t.length;while(++i<o)if(r(t[i],e))return i;return-1}function Fn(t){return t!==t}function Gn(t,e){var n=null==t?0:t.length;return n?Xn(t,e)/n:V}function jn(t){return function(e){return null==e?o:e[t]}}function Hn(t){return function(e){return null==t?o:t[e]}}function Wn(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Un(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}function Xn(t,e){var n,r=-1,i=t.length;while(++r<i){var a=e(t[r]);a!==o&&(n=n===o?a:n+a)}return n}function $n(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}function Yn(t,e){return An(e,(function(e){return[e,t[e]]}))}function qn(t){return t?t.slice(0,mr(t)+1).replace(Bt,""):t}function Zn(t){return function(e){return t(e)}}function Kn(t,e){return An(e,(function(e){return t[e]}))}function Jn(t,e){return t.has(e)}function Qn(t,e){var n=-1,r=t.length;while(++n<r&&Bn(e,t[n],0)>-1);return n}function tr(t,e){var n=t.length;while(n--&&Bn(e,t[n],0)>-1);return n}function er(t,e){var n=t.length,r=0;while(n--)t[n]===e&&++r;return r}var nr=Hn(Qe),rr=Hn(tn);function ir(t){return"\\"+nn[t]}function or(t,e){return null==t?o:t[e]}function ar(t){return $e.test(t)}function sr(t){return Ye.test(t)}function lr(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function ur(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function cr(t,e){return function(n){return t(e(n))}}function hr(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var a=t[n];a!==e&&a!==p||(t[n]=p,o[i++]=n)}return o}function fr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function pr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function dr(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}function gr(t,e,n){var r=n+1;while(r--)if(t[r]===e)return r;return r}function vr(t){return ar(t)?xr(t):Pn(t)}function yr(t){return ar(t)?br(t):En(t)}function mr(t){var e=t.length;while(e--&&Vt.test(t.charAt(e)));return e}var _r=Hn(en);function xr(t){var e=Ue.lastIndex=0;while(Ue.test(t))++e;return e}function br(t){return t.match(Ue)||[]}function wr(t){return t.match(Xe)||[]}var Sr=function t(e){e=null==e?ln:Mr.defaults(ln.Object(),e,Mr.pick(ln,qe));var n=e.Array,r=e.Date,i=e.Error,Vt=e.Function,Ht=e.Math,ne=e.Object,re=e.RegExp,ie=e.String,oe=e.TypeError,ae=n.prototype,se=Vt.prototype,le=ne.prototype,ue=e["__core-js_shared__"],ce=se.toString,he=le.hasOwnProperty,fe=0,pe=function(){var t=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),de=le.toString,ge=ce.call(ne),ve=ln._,ye=re("^"+ce.call(he).replace(Nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=hn?e.Buffer:o,_e=e.Symbol,xe=e.Uint8Array,be=me?me.allocUnsafe:o,we=cr(ne.getPrototypeOf,ne),Se=ne.create,Me=le.propertyIsEnumerable,Ce=ae.splice,Te=_e?_e.isConcatSpreadable:o,Ie=_e?_e.iterator:o,Ae=_e?_e.toStringTag:o,De=function(){try{var t=$a(ne,"defineProperty");return t({},"",{}),t}catch(e){}}(),ke=e.clearTimeout!==ln.clearTimeout&&e.clearTimeout,Le=r&&r.now!==ln.Date.now&&r.now,Oe=e.setTimeout!==ln.setTimeout&&e.setTimeout,Pe=Ht.ceil,Ee=Ht.floor,Re=ne.getOwnPropertySymbols,Ne=me?me.isBuffer:o,ze=e.isFinite,Be=ae.join,Ve=cr(ne.keys,ne),Fe=Ht.max,Ge=Ht.min,je=r.now,Ue=e.parseInt,Xe=Ht.random,$e=ae.reverse,Ye=$a(e,"DataView"),Qe=$a(e,"Map"),tn=$a(e,"Promise"),en=$a(e,"Set"),nn=$a(e,"WeakMap"),an=$a(ne,"create"),sn=nn&&new nn,un={},cn=Os(Ye),fn=Os(Qe),pn=Os(tn),Pn=Os(en),En=Os(nn),Hn=_e?_e.prototype:o,dr=Hn?Hn.valueOf:o,xr=Hn?Hn.toString:o;function br(t){if(Cc(t)&&!lc(t)&&!(t instanceof Ir)){if(t instanceof Tr)return t;if(he.call(t,"__wrapped__"))return Es(t)}return new Tr(t)}var Sr=function(){function t(){}return function(e){if(!Mc(e))return{};if(Se)return Se(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function Cr(){}function Tr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function Ir(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function Ar(){var t=new Ir(this.__wrapped__);return t.__actions__=ia(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ia(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ia(this.__views__),t}function Dr(){if(this.__filtered__){var t=new Ir(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function kr(){var t=this.__wrapped__.value(),e=this.__dir__,n=lc(t),r=e<0,i=n?t.length:0,o=Ja(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,h=c.length,f=0,p=Ge(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return Vo(t,this.__actions__);var d=[];t:while(l--&&f<p){u+=e;var g=-1,v=t[u];while(++g<h){var y=c[g],m=y.iteratee,_=y.type,x=m(v);if(_==E)v=x;else if(!x){if(_==P)continue t;break t}}d[f++]=v}return d}function Lr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Or(){this.__data__=an?an(null):{},this.size=0}function Pr(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Er(t){var e=this.__data__;if(an){var n=e[t];return n===h?o:n}return he.call(e,t)?e[t]:o}function Rr(t){var e=this.__data__;return an?e[t]!==o:he.call(e,t)}function Nr(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=an&&e===o?h:e,this}function zr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Br(){this.__data__=[],this.size=0}function Vr(t){var e=this.__data__,n=ci(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ce.call(e,n,1),--this.size,!0}function Fr(t){var e=this.__data__,n=ci(e,t);return n<0?o:e[n][1]}function Gr(t){return ci(this.__data__,t)>-1}function jr(t,e){var n=this.__data__,r=ci(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Hr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Wr(){this.size=0,this.__data__={hash:new Lr,map:new(Qe||zr),string:new Lr}}function Ur(t){var e=Ua(this,t)["delete"](t);return this.size-=e?1:0,e}function Xr(t){return Ua(this,t).get(t)}function $r(t){return Ua(this,t).has(t)}function Yr(t,e){var n=Ua(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function qr(t){var e=-1,n=null==t?0:t.length;this.__data__=new Hr;while(++e<n)this.add(t[e])}function Zr(t){return this.__data__.set(t,h),this}function Kr(t){return this.__data__.has(t)}function Jr(t){var e=this.__data__=new zr(t);this.size=e.size}function Qr(){this.__data__=new zr,this.size=0}function ti(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function ei(t){return this.__data__.get(t)}function ni(t){return this.__data__.has(t)}function ri(t,e){var n=this.__data__;if(n instanceof zr){var r=n.__data__;if(!Qe||r.length<s-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Hr(r)}return n.set(t,e),this.size=n.size,this}function ii(t,e){var n=lc(t),r=!n&&sc(t),i=!n&&!r&&pc(t),o=!n&&!r&&!i&&Fc(t),a=n||r||i||o,s=a?$n(t.length,ie):[],l=s.length;for(var u in t)!e&&!he.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||as(u,l))||s.push(u);return s}function oi(t){var e=t.length;return e?t[mo(0,e-1)]:o}function ai(t,e){return Ds(ia(t),vi(e,0,t.length))}function si(t){return Ds(ia(t))}function li(t,e,n){(n!==o&&!ic(t[e],n)||n===o&&!(e in t))&&di(t,e,n)}function ui(t,e,n){var r=t[e];he.call(t,e)&&ic(r,n)&&(n!==o||e in t)||di(t,e,n)}function ci(t,e){var n=t.length;while(n--)if(ic(t[n][0],e))return n;return-1}function hi(t,e,n,r){return wi(t,(function(t,i,o){e(r,t,n(t),o)})),r}function fi(t,e){return t&&oa(e,wh(e),t)}function pi(t,e){return t&&oa(e,Sh(e),t)}function di(t,e,n){"__proto__"==e&&De?De(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function gi(t,e){var r=-1,i=e.length,a=n(i),s=null==t;while(++r<i)a[r]=s?o:vh(t,e[r]);return a}function vi(t,e,n){return t===t&&(n!==o&&(t=t<=n?t:n),e!==o&&(t=t>=e?t:e)),t}function yi(t,e,n,r,i,a){var s,l=e&d,u=e&g,c=e&v;if(n&&(s=i?n(t,r,i,a):n(t)),s!==o)return s;if(!Mc(t))return t;var h=lc(t);if(h){if(s=es(t),!l)return ia(t,s)}else{var f=Ka(t),p=f==K||f==J;if(pc(t))return Yo(t,l);if(f==nt||f==W||p&&!i){if(s=u||p?{}:ns(t),!l)return u?sa(t,pi(s,t)):aa(t,fi(s,t))}else{if(!Je[f])return i?t:{};s=rs(t,f,l)}}a||(a=new Jr);var y=a.get(t);if(y)return y;a.set(t,s),zc(t)?t.forEach((function(r){s.add(yi(r,e,n,r,t,a))})):Tc(t)&&t.forEach((function(r,i){s.set(i,yi(r,e,n,i,t,a))}));var m=c?u?Fa:Va:u?Sh:wh,_=h?o:m(t);return wn(_||t,(function(r,i){_&&(i=r,r=t[i]),ui(s,i,yi(r,e,n,i,t,a))})),s}function mi(t){var e=wh(t);return function(n){return _i(n,t,e)}}function _i(t,e,n){var r=n.length;if(null==t)return!r;t=ne(t);while(r--){var i=n[r],a=e[i],s=t[i];if(s===o&&!(i in t)||!a(s))return!1}return!0}function xi(t,e,n){if("function"!=typeof t)throw new oe(u);return Cs((function(){t.apply(o,n)}),e)}function bi(t,e,n,r){var i=-1,o=Tn,a=!0,l=t.length,u=[],c=e.length;if(!l)return u;n&&(e=An(e,Zn(n))),r?(o=In,a=!1):e.length>=s&&(o=Jn,a=!1,e=new qr(e));t:while(++i<l){var h=t[i],f=null==n?h:n(h);if(h=r||0!==h?h:0,a&&f===f){var p=c;while(p--)if(e[p]===f)continue t;u.push(h)}else o(e,f,r)||u.push(h)}return u}br.templateSettings={escape:kt,evaluate:Lt,interpolate:Ot,variable:"",imports:{_:br}},br.prototype=Cr.prototype,br.prototype.constructor=br,Tr.prototype=Sr(Cr.prototype),Tr.prototype.constructor=Tr,Ir.prototype=Sr(Cr.prototype),Ir.prototype.constructor=Ir,Lr.prototype.clear=Or,Lr.prototype["delete"]=Pr,Lr.prototype.get=Er,Lr.prototype.has=Rr,Lr.prototype.set=Nr,zr.prototype.clear=Br,zr.prototype["delete"]=Vr,zr.prototype.get=Fr,zr.prototype.has=Gr,zr.prototype.set=jr,Hr.prototype.clear=Wr,Hr.prototype["delete"]=Ur,Hr.prototype.get=Xr,Hr.prototype.has=$r,Hr.prototype.set=Yr,qr.prototype.add=qr.prototype.push=Zr,qr.prototype.has=Kr,Jr.prototype.clear=Qr,Jr.prototype["delete"]=ti,Jr.prototype.get=ei,Jr.prototype.has=ni,Jr.prototype.set=ri;var wi=ca(Li),Si=ca(Oi,!0);function Mi(t,e){var n=!0;return wi(t,(function(t,r,i){return n=!!e(t,r,i),n})),n}function Ci(t,e,n){var r=-1,i=t.length;while(++r<i){var a=t[r],s=e(a);if(null!=s&&(l===o?s===s&&!Vc(s):n(s,l)))var l=s,u=a}return u}function Ti(t,e,n,r){var i=t.length;n=Yc(n),n<0&&(n=-n>i?0:i+n),r=r===o||r>i?i:Yc(r),r<0&&(r+=i),r=n>r?0:qc(r);while(n<r)t[n++]=e;return t}function Ii(t,e){var n=[];return wi(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function Ai(t,e,n,r,i){var o=-1,a=t.length;n||(n=os),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Ai(s,e-1,n,r,i):Dn(i,s):r||(i[i.length]=s)}return i}var Di=ha(),ki=ha(!0);function Li(t,e){return t&&Di(t,e,wh)}function Oi(t,e){return t&&ki(t,e,wh)}function Pi(t,e){return Cn(e,(function(e){return bc(t[e])}))}function Ei(t,e){e=Wo(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[Ls(e[n++])];return n&&n==r?t:o}function Ri(t,e,n){var r=e(t);return lc(t)?r:Dn(r,n(t))}function Ni(t){return null==t?t===o?ut:et:Ae&&Ae in ne(t)?Ya(t):_s(t)}function zi(t,e){return t>e}function Bi(t,e){return null!=t&&he.call(t,e)}function Vi(t,e){return null!=t&&e in ne(t)}function Fi(t,e,n){return t>=Ge(e,n)&&t<Fe(e,n)}function Gi(t,e,r){var i=r?In:Tn,a=t[0].length,s=t.length,l=s,u=n(s),c=1/0,h=[];while(l--){var f=t[l];l&&e&&(f=An(f,Zn(e))),c=Ge(f.length,c),u[l]=!r&&(e||a>=120&&f.length>=120)?new qr(l&&f):o}f=t[0];var p=-1,d=u[0];t:while(++p<a&&h.length<c){var g=f[p],v=e?e(g):g;if(g=r||0!==g?g:0,!(d?Jn(d,v):i(h,v,r))){l=s;while(--l){var y=u[l];if(!(y?Jn(y,v):i(t[l],v,r)))continue t}d&&d.push(v),h.push(g)}}return h}function ji(t,e,n,r){return Li(t,(function(t,i,o){e(r,n(t),i,o)})),r}function Hi(t,e,n){e=Wo(e,t),t=bs(t,e);var r=null==t?t:t[Ls(ol(e))];return null==r?o:xn(r,t,n)}function Wi(t){return Cc(t)&&Ni(t)==W}function Ui(t){return Cc(t)&&Ni(t)==ft}function Xi(t){return Cc(t)&&Ni(t)==Y}function $i(t,e,n,r,i){return t===e||(null==t||null==e||!Cc(t)&&!Cc(e)?t!==t&&e!==e:Yi(t,e,n,r,$i,i))}function Yi(t,e,n,r,i,o){var a=lc(t),s=lc(e),l=a?U:Ka(t),u=s?U:Ka(e);l=l==W?nt:l,u=u==W?nt:u;var c=l==nt,h=u==nt,f=l==u;if(f&&pc(t)){if(!pc(e))return!1;a=!0,c=!1}if(f&&!c)return o||(o=new Jr),a||Fc(t)?Ra(t,e,n,r,i,o):Na(t,e,l,n,r,i,o);if(!(n&y)){var p=c&&he.call(t,"__wrapped__"),d=h&&he.call(e,"__wrapped__");if(p||d){var g=p?t.value():t,v=d?e.value():e;return o||(o=new Jr),i(g,v,n,r,o)}}return!!f&&(o||(o=new Jr),za(t,e,n,r,i,o))}function qi(t){return Cc(t)&&Ka(t)==Q}function Zi(t,e,n,r){var i=n.length,a=i,s=!r;if(null==t)return!a;t=ne(t);while(i--){var l=n[i];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}while(++i<a){l=n[i];var u=l[0],c=t[u],h=l[1];if(s&&l[2]){if(c===o&&!(u in t))return!1}else{var f=new Jr;if(r)var p=r(c,h,u,t,e,f);if(!(p===o?$i(h,c,y|m,r,f):p))return!1}}return!0}function Ki(t){if(!Mc(t)||hs(t))return!1;var e=bc(t)?ye:Zt;return e.test(Os(t))}function Ji(t){return Cc(t)&&Ni(t)==ot}function Qi(t){return Cc(t)&&Ka(t)==at}function to(t){return Cc(t)&&Sc(t.length)&&!!Ke[Ni(t)]}function eo(t){return"function"==typeof t?t:null==t?Lf:"object"==typeof t?lc(t)?so(t[0],t[1]):ao(t):Wf(t)}function no(t){if(!ps(t))return Ve(t);var e=[];for(var n in ne(t))he.call(t,n)&&"constructor"!=n&&e.push(n);return e}function ro(t){if(!Mc(t))return ms(t);var e=ps(t),n=[];for(var r in t)("constructor"!=r||!e&&he.call(t,r))&&n.push(r);return n}function io(t,e){return t<e}function oo(t,e){var r=-1,i=cc(t)?n(t.length):[];return wi(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function ao(t){var e=Xa(t);return 1==e.length&&e[0][2]?gs(e[0][0],e[0][1]):function(n){return n===t||Zi(n,t,e)}}function so(t,e){return ls(t)&&ds(e)?gs(Ls(t),e):function(n){var r=vh(n,t);return r===o&&r===e?mh(n,t):$i(e,r,y|m)}}function lo(t,e,n,r,i){t!==e&&Di(e,(function(a,s){if(i||(i=new Jr),Mc(a))uo(t,e,s,n,lo,r,i);else{var l=r?r(Ss(t,s),a,s+"",t,e,i):o;l===o&&(l=a),li(t,s,l)}}),Sh)}function uo(t,e,n,r,i,a,s){var l=Ss(t,n),u=Ss(e,n),c=s.get(u);if(c)li(t,n,c);else{var h=a?a(l,u,n+"",t,e,s):o,f=h===o;if(f){var p=lc(u),d=!p&&pc(u),g=!p&&!d&&Fc(u);h=u,p||d||g?lc(l)?h=l:hc(l)?h=ia(l):d?(f=!1,h=Yo(u,!0)):g?(f=!1,h=Qo(u,!0)):h=[]:Ec(u)||sc(u)?(h=l,sc(l)?h=Kc(l):Mc(l)&&!bc(l)||(h=ns(u))):f=!1}f&&(s.set(u,h),i(h,u,r,a,s),s["delete"](u)),li(t,n,h)}}function co(t,e){var n=t.length;if(n)return e+=e<0?n:0,as(e,n)?t[e]:o}function ho(t,e,n){e=e.length?An(e,(function(t){return lc(t)?function(e){return Ei(e,1===t.length?t[0]:t)}:t})):[Lf];var r=-1;e=An(e,Zn(Wa()));var i=oo(t,(function(t,n,i){var o=An(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return Un(i,(function(t,e){return ea(t,e,n)}))}function fo(t,e){return po(t,e,(function(e,n){return mh(t,n)}))}function po(t,e,n){var r=-1,i=e.length,o={};while(++r<i){var a=e[r],s=Ei(t,a);n(s,a)&&Mo(o,Wo(a,t),s)}return o}function go(t){return function(e){return Ei(e,t)}}function vo(t,e,n,r){var i=r?Vn:Bn,o=-1,a=e.length,s=t;t===e&&(e=ia(e)),n&&(s=An(t,Zn(n)));while(++o<a){var l=0,u=e[o],c=n?n(u):u;while((l=i(s,c,l,r))>-1)s!==t&&Ce.call(s,l,1),Ce.call(t,l,1)}return t}function yo(t,e){var n=t?e.length:0,r=n-1;while(n--){var i=e[n];if(n==r||i!==o){var o=i;as(i)?Ce.call(t,i,1):No(t,i)}}return t}function mo(t,e){return t+Ee(Xe()*(e-t+1))}function _o(t,e,r,i){var o=-1,a=Fe(Pe((e-t)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=t,t+=r;return s}function xo(t,e){var n="";if(!t||e<1||e>z)return n;do{e%2&&(n+=t),e=Ee(e/2),e&&(t+=t)}while(e);return n}function bo(t,e){return Ts(xs(t,e,Lf),t+"")}function wo(t){return oi(Gh(t))}function So(t,e){var n=Gh(t);return Ds(n,vi(e,0,n.length))}function Mo(t,e,n,r){if(!Mc(t))return t;e=Wo(e,t);var i=-1,a=e.length,s=a-1,l=t;while(null!=l&&++i<a){var u=Ls(e[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=s){var h=l[u];c=r?r(h,u,l):o,c===o&&(c=Mc(h)?h:as(e[i+1])?[]:{})}ui(l,u,c),l=l[u]}return t}var Co=sn?function(t,e){return sn.set(t,e),t}:Lf,To=De?function(t,e){return De(t,"toString",{configurable:!0,enumerable:!1,value:If(e),writable:!0})}:Lf;function Io(t){return Ds(Gh(t))}function Ao(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;var a=n(o);while(++i<o)a[i]=t[i+e];return a}function Do(t,e){var n;return wi(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}function ko(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=j){while(r<i){var o=r+i>>>1,a=t[o];null!==a&&!Vc(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Lo(t,e,Lf,n)}function Lo(t,e,n,r){var i=0,a=null==t?0:t.length;if(0===a)return 0;e=n(e);var s=e!==e,l=null===e,u=Vc(e),c=e===o;while(i<a){var h=Ee((i+a)/2),f=n(t[h]),p=f!==o,d=null===f,g=f===f,v=Vc(f);if(s)var y=r||g;else y=c?g&&(r||p):l?g&&p&&(r||!d):u?g&&p&&!d&&(r||!v):!d&&!v&&(r?f<=e:f<e);y?i=h+1:a=h}return Ge(a,G)}function Oo(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var a=t[n],s=e?e(a):a;if(!n||!ic(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Po(t){return"number"==typeof t?t:Vc(t)?V:+t}function Eo(t){if("string"==typeof t)return t;if(lc(t))return An(t,Eo)+"";if(Vc(t))return xr?xr.call(t):"";var e=t+"";return"0"==e&&1/t==-N?"-0":e}function Ro(t,e,n){var r=-1,i=Tn,o=t.length,a=!0,l=[],u=l;if(n)a=!1,i=In;else if(o>=s){var c=e?null:Da(t);if(c)return fr(c);a=!1,i=Jn,u=new qr}else u=e?[]:l;t:while(++r<o){var h=t[r],f=e?e(h):h;if(h=n||0!==h?h:0,a&&f===f){var p=u.length;while(p--)if(u[p]===f)continue t;e&&u.push(f),l.push(h)}else i(u,f,n)||(u!==l&&u.push(f),l.push(h))}return l}function No(t,e){return e=Wo(e,t),t=bs(t,e),null==t||delete t[Ls(ol(e))]}function zo(t,e,n,r){return Mo(t,e,n(Ei(t,e)),r)}function Bo(t,e,n,r){var i=t.length,o=r?i:-1;while((r?o--:++o<i)&&e(t[o],o,t));return n?Ao(t,r?0:o,r?o+1:i):Ao(t,r?o+1:0,r?i:o)}function Vo(t,e){var n=t;return n instanceof Ir&&(n=n.value()),kn(e,(function(t,e){return e.func.apply(e.thisArg,Dn([t],e.args))}),n)}function Fo(t,e,r){var i=t.length;if(i<2)return i?Ro(t[0]):[];var o=-1,a=n(i);while(++o<i){var s=t[o],l=-1;while(++l<i)l!=o&&(a[o]=bi(a[o]||s,t[l],e,r))}return Ro(Ai(a,1),e,r)}function Go(t,e,n){var r=-1,i=t.length,a=e.length,s={};while(++r<i){var l=r<a?e[r]:o;n(s,t[r],l)}return s}function jo(t){return hc(t)?t:[]}function Ho(t){return"function"==typeof t?t:Lf}function Wo(t,e){return lc(t)?t:ls(t,e)?[t]:ks(Qc(t))}var Uo=bo;function Xo(t,e,n){var r=t.length;return n=n===o?r:n,!e&&n>=r?t:Ao(t,e,n)}var $o=ke||function(t){return ln.clearTimeout(t)};function Yo(t,e){if(e)return t.slice();var n=t.length,r=be?be(n):new t.constructor(n);return t.copy(r),r}function qo(t){var e=new t.constructor(t.byteLength);return new xe(e).set(new xe(t)),e}function Zo(t,e){var n=e?qo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Ko(t){var e=new t.constructor(t.source,$t.exec(t));return e.lastIndex=t.lastIndex,e}function Jo(t){return dr?ne(dr.call(t)):{}}function Qo(t,e){var n=e?qo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ta(t,e){if(t!==e){var n=t!==o,r=null===t,i=t===t,a=Vc(t),s=e!==o,l=null===e,u=e===e,c=Vc(e);if(!l&&!c&&!a&&t>e||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&t<e||c&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!u)return-1}return 0}function ea(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;while(++r<a){var l=ta(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return t.index-e.index}function na(t,e,r,i){var o=-1,a=t.length,s=r.length,l=-1,u=e.length,c=Fe(a-s,0),h=n(u+c),f=!i;while(++l<u)h[l]=e[l];while(++o<s)(f||o<a)&&(h[r[o]]=t[o]);while(c--)h[l++]=t[o++];return h}function ra(t,e,r,i){var o=-1,a=t.length,s=-1,l=r.length,u=-1,c=e.length,h=Fe(a-l,0),f=n(h+c),p=!i;while(++o<h)f[o]=t[o];var d=o;while(++u<c)f[d+u]=e[u];while(++s<l)(p||o<a)&&(f[d+r[s]]=t[o++]);return f}function ia(t,e){var r=-1,i=t.length;e||(e=n(i));while(++r<i)e[r]=t[r];return e}function oa(t,e,n,r){var i=!n;n||(n={});var a=-1,s=e.length;while(++a<s){var l=e[a],u=r?r(n[l],t[l],l,n,t):o;u===o&&(u=t[l]),i?di(n,l,u):ui(n,l,u)}return n}function aa(t,e){return oa(t,qa(t),e)}function sa(t,e){return oa(t,Za(t),e)}function la(t,e){return function(n,r){var i=lc(n)?bn:hi,o=e?e():{};return i(n,t,Wa(r,2),o)}}function ua(t){return bo((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;a=t.length>3&&"function"==typeof a?(i--,a):o,s&&ss(n[0],n[1],s)&&(a=i<3?o:a,i=1),e=ne(e);while(++r<i){var l=n[r];l&&t(e,l,r,a)}return e}))}function ca(t,e){return function(n,r){if(null==n)return n;if(!cc(n))return t(n,r);var i=n.length,o=e?i:-1,a=ne(n);while(e?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function ha(t){return function(e,n,r){var i=-1,o=ne(e),a=r(e),s=a.length;while(s--){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}function fa(t,e,n){var r=e&_,i=ga(t);function o(){var e=this&&this!==ln&&this instanceof o?i:t;return e.apply(r?n:this,arguments)}return o}function pa(t){return function(e){e=Qc(e);var n=ar(e)?yr(e):o,r=n?n[0]:e.charAt(0),i=n?Xo(n,1).join(""):e.slice(1);return r[t]()+i}}function da(t){return function(e){return kn(wf(Yh(e).replace(He,"")),t,"")}}function ga(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=Sr(t.prototype),r=t.apply(n,e);return Mc(r)?r:n}}function va(t,e,r){var i=ga(t);function a(){var s=arguments.length,l=n(s),u=s,c=Ha(a);while(u--)l[u]=arguments[u];var h=s<3&&l[0]!==c&&l[s-1]!==c?[]:hr(l,c);if(s-=h.length,s<r)return Ia(t,e,_a,a.placeholder,o,l,h,o,o,r-s);var f=this&&this!==ln&&this instanceof a?i:t;return xn(f,this,l)}return a}function ya(t){return function(e,n,r){var i=ne(e);if(!cc(e)){var a=Wa(n,3);e=wh(e),n=function(t){return a(i[t],t,i)}}var s=t(e,n,r);return s>-1?i[a?e[s]:s]:o}}function ma(t){return Ba((function(e){var n=e.length,r=n,i=Tr.prototype.thru;t&&e.reverse();while(r--){var a=e[r];if("function"!=typeof a)throw new oe(u);if(i&&!s&&"wrapper"==ja(a))var s=new Tr([],!0)}r=s?r:n;while(++r<n){a=e[r];var l=ja(a),c="wrapper"==l?Ga(a):o;s=c&&cs(c[0])&&c[1]==(T|w|M|I)&&!c[4].length&&1==c[9]?s[ja(c[0])].apply(s,c[3]):1==a.length&&cs(a)?s[l]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&lc(r))return s.plant(r).value();var i=0,o=n?e[i].apply(this,t):r;while(++i<n)o=e[i].call(this,o);return o}}))}function _a(t,e,r,i,a,s,l,u,c,h){var f=e&T,p=e&_,d=e&x,g=e&(w|S),v=e&A,y=d?o:ga(t);function m(){var o=arguments.length,_=n(o),x=o;while(x--)_[x]=arguments[x];if(g)var b=Ha(m),w=er(_,b);if(i&&(_=na(_,i,a,g)),s&&(_=ra(_,s,l,g)),o-=w,g&&o<h){var S=hr(_,b);return Ia(t,e,_a,m.placeholder,r,_,S,u,c,h-o)}var M=p?r:this,C=d?M[t]:t;return o=_.length,u?_=ws(_,u):v&&o>1&&_.reverse(),f&&c<o&&(_.length=c),this&&this!==ln&&this instanceof m&&(C=y||ga(C)),C.apply(M,_)}return m}function xa(t,e){return function(n,r){return ji(n,t,e(r),{})}}function ba(t,e){return function(n,r){var i;if(n===o&&r===o)return e;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=Eo(n),r=Eo(r)):(n=Po(n),r=Po(r)),i=t(n,r)}return i}}function wa(t){return Ba((function(e){return e=An(e,Zn(Wa())),bo((function(n){var r=this;return t(e,(function(t){return xn(t,r,n)}))}))}))}function Sa(t,e){e=e===o?" ":Eo(e);var n=e.length;if(n<2)return n?xo(e,t):e;var r=xo(e,Pe(t/vr(e)));return ar(e)?Xo(yr(r),0,t).join(""):r.slice(0,t)}function Ma(t,e,r,i){var o=e&_,a=ga(t);function s(){var e=-1,l=arguments.length,u=-1,c=i.length,h=n(c+l),f=this&&this!==ln&&this instanceof s?a:t;while(++u<c)h[u]=i[u];while(l--)h[u++]=arguments[++e];return xn(f,o?r:this,h)}return s}function Ca(t){return function(e,n,r){return r&&"number"!=typeof r&&ss(e,n,r)&&(n=r=o),e=$c(e),n===o?(n=e,e=0):n=$c(n),r=r===o?e<n?1:-1:$c(r),_o(e,n,r,t)}}function Ta(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Zc(e),n=Zc(n)),t(e,n)}}function Ia(t,e,n,r,i,a,s,l,u,c){var h=e&w,f=h?s:o,p=h?o:s,d=h?a:o,g=h?o:a;e|=h?M:C,e&=~(h?C:M),e&b||(e&=~(_|x));var v=[t,e,i,d,f,g,p,l,u,c],y=n.apply(o,v);return cs(t)&&Ms(y,v),y.placeholder=r,Is(y,t,e)}function Aa(t){var e=Ht[t];return function(t,n){if(t=Zc(t),n=null==n?0:Ge(Yc(n),292),n&&ze(t)){var r=(Qc(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(Qc(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}var Da=en&&1/fr(new en([,-0]))[1]==N?function(t){return new en(t)}:Vf;function ka(t){return function(e){var n=Ka(e);return n==Q?ur(e):n==at?pr(e):Yn(e,t(e))}}function La(t,e,n,r,i,a,s,l){var c=e&x;if(!c&&"function"!=typeof t)throw new oe(u);var h=r?r.length:0;if(h||(e&=~(M|C),r=i=o),s=s===o?s:Fe(Yc(s),0),l=l===o?l:Yc(l),h-=i?i.length:0,e&C){var f=r,p=i;r=i=o}var d=c?o:Ga(t),g=[t,e,n,r,i,f,p,a,s,l];if(d&&ys(g,d),t=g[0],e=g[1],n=g[2],r=g[3],i=g[4],l=g[9]=g[9]===o?c?0:t.length:Fe(g[9]-h,0),!l&&e&(w|S)&&(e&=~(w|S)),e&&e!=_)v=e==w||e==S?va(t,e,l):e!=M&&e!=(_|M)||i.length?_a.apply(o,g):Ma(t,e,n,r);else var v=fa(t,e,n);var y=d?Co:Ms;return Is(y(v,g),t,e)}function Oa(t,e,n,r){return t===o||ic(t,le[n])&&!he.call(r,n)?e:t}function Pa(t,e,n,r,i,a){return Mc(t)&&Mc(e)&&(a.set(e,t),lo(t,e,o,Pa,a),a["delete"](e)),t}function Ea(t){return Ec(t)?o:t}function Ra(t,e,n,r,i,a){var s=n&y,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 f=-1,p=!0,d=n&m?new qr:o;a.set(t,e),a.set(e,t);while(++f<l){var g=t[f],v=e[f];if(r)var _=s?r(v,g,f,e,t,a):r(g,v,f,t,e,a);if(_!==o){if(_)continue;p=!1;break}if(d){if(!On(e,(function(t,e){if(!Jn(d,e)&&(g===t||i(g,t,n,r,a)))return d.push(e)}))){p=!1;break}}else if(g!==v&&!i(g,v,n,r,a)){p=!1;break}}return a["delete"](t),a["delete"](e),p}function Na(t,e,n,r,i,o,a){switch(n){case pt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ft:return!(t.byteLength!=e.byteLength||!o(new xe(t),new xe(e)));case $:case Y:case tt:return ic(+t,+e);case Z:return t.name==e.name&&t.message==e.message;case ot:case st:return t==e+"";case Q:var s=ur;case at:var l=r&y;if(s||(s=fr),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=m,a.set(t,e);var c=Ra(s(t),s(e),r,i,o,a);return a["delete"](t),c;case lt:if(dr)return dr.call(t)==dr.call(e)}return!1}function za(t,e,n,r,i,a){var s=n&y,l=Va(t),u=l.length,c=Va(e),h=c.length;if(u!=h&&!s)return!1;var f=u;while(f--){var p=l[f];if(!(s?p in e:he.call(e,p)))return!1}var d=a.get(t),g=a.get(e);if(d&&g)return d==e&&g==t;var v=!0;a.set(t,e),a.set(e,t);var m=s;while(++f<u){p=l[f];var _=t[p],x=e[p];if(r)var b=s?r(x,_,p,e,t,a):r(_,x,p,t,e,a);if(!(b===o?_===x||i(_,x,n,r,a):b)){v=!1;break}m||(m="constructor"==p)}if(v&&!m){var w=t.constructor,S=e.constructor;w==S||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(v=!1)}return a["delete"](t),a["delete"](e),v}function Ba(t){return Ts(xs(t,o,Ys),t+"")}function Va(t){return Ri(t,wh,qa)}function Fa(t){return Ri(t,Sh,Za)}var Ga=sn?function(t){return sn.get(t)}:Vf;function ja(t){var e=t.name+"",n=un[e],r=he.call(un,e)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Ha(t){var e=he.call(br,"placeholder")?br:t;return e.placeholder}function Wa(){var t=br.iteratee||Of;return t=t===Of?eo:t,arguments.length?t(arguments[0],arguments[1]):t}function Ua(t,e){var n=t.__data__;return us(e)?n["string"==typeof e?"string":"hash"]:n.map}function Xa(t){var e=wh(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,ds(i)]}return e}function $a(t,e){var n=or(t,e);return Ki(n)?n:o}function Ya(t){var e=he.call(t,Ae),n=t[Ae];try{t[Ae]=o;var r=!0}catch(a){}var i=de.call(t);return r&&(e?t[Ae]=n:delete t[Ae]),i}var qa=Re?function(t){return null==t?[]:(t=ne(t),Cn(Re(t),(function(e){return Me.call(t,e)})))}:Yf,Za=Re?function(t){var e=[];while(t)Dn(e,qa(t)),t=we(t);return e}:Yf,Ka=Ni;function Ja(t,e,n){var r=-1,i=n.length;while(++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=Ge(e,t+a);break;case"takeRight":t=Fe(t,e-a);break}}return{start:t,end:e}}function Qa(t){var e=t.match(Gt);return e?e[1].split(jt):[]}function ts(t,e,n){e=Wo(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=Ls(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&Sc(i)&&as(a,i)&&(lc(t)||sc(t)))}function es(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&he.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function ns(t){return"function"!=typeof t.constructor||ps(t)?{}:Sr(we(t))}function rs(t,e,n){var r=t.constructor;switch(e){case ft:return qo(t);case $:case Y:return new r(+t);case pt:return Zo(t,n);case dt:case gt:case vt:case yt:case mt:case _t:case xt:case bt:case wt:return Qo(t,n);case Q:return new r;case tt:case st:return new r(t);case ot:return Ko(t);case at:return new r;case lt:return Jo(t)}}function is(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(Ft,"{\n/* [wrapped with "+e+"] */\n")}function os(t){return lc(t)||sc(t)||!!(Te&&t&&t[Te])}function as(t,e){var n=typeof t;return e=null==e?z:e,!!e&&("number"==n||"symbol"!=n&&Jt.test(t))&&t>-1&&t%1==0&&t<e}function ss(t,e,n){if(!Mc(n))return!1;var r=typeof e;return!!("number"==r?cc(n)&&as(e,n.length):"string"==r&&e in n)&&ic(n[e],t)}function ls(t,e){if(lc(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Vc(t))||(Et.test(t)||!Pt.test(t)||null!=e&&t in ne(e))}function us(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function cs(t){var e=ja(t),n=br[e];if("function"!=typeof n||!(e in Ir.prototype))return!1;if(t===n)return!0;var r=Ga(n);return!!r&&t===r[0]}function hs(t){return!!pe&&pe in t}(Ye&&Ka(new Ye(new ArrayBuffer(1)))!=pt||Qe&&Ka(new Qe)!=Q||tn&&Ka(tn.resolve())!=rt||en&&Ka(new en)!=at||nn&&Ka(new nn)!=ct)&&(Ka=function(t){var e=Ni(t),n=e==nt?t.constructor:o,r=n?Os(n):"";if(r)switch(r){case cn:return pt;case fn:return Q;case pn:return rt;case Pn:return at;case En:return ct}return e});var fs=ue?bc:qf;function ps(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||le;return t===n}function ds(t){return t===t&&!Mc(t)}function gs(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==o||t in ne(n)))}}function vs(t){var e=Fu(t,(function(t){return n.size===f&&n.clear(),t})),n=e.cache;return e}function ys(t,e){var n=t[1],r=e[1],i=n|r,o=i<(_|x|T),a=r==T&&n==w||r==T&&n==I&&t[7].length<=e[8]||r==(T|I)&&e[7].length<=e[8]&&n==w;if(!o&&!a)return t;r&_&&(t[2]=e[2],i|=n&_?0:b);var s=e[3];if(s){var l=t[3];t[3]=l?na(l,s,e[4]):s,t[4]=l?hr(t[3],p):e[4]}return s=e[5],s&&(l=t[5],t[5]=l?ra(l,s,e[6]):s,t[6]=l?hr(t[5],p):e[6]),s=e[7],s&&(t[7]=s),r&T&&(t[8]=null==t[8]?e[8]:Ge(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function ms(t){var e=[];if(null!=t)for(var n in ne(t))e.push(n);return e}function _s(t){return de.call(t)}function xs(t,e,r){return e=Fe(e===o?t.length-1:e,0),function(){var i=arguments,o=-1,a=Fe(i.length-e,0),s=n(a);while(++o<a)s[o]=i[e+o];o=-1;var l=n(e+1);while(++o<e)l[o]=i[o];return l[e]=r(s),xn(t,this,l)}}function bs(t,e){return e.length<2?t:Ei(t,Ao(e,0,-1))}function ws(t,e){var n=t.length,r=Ge(e.length,n),i=ia(t);while(r--){var a=e[r];t[r]=as(a,n)?i[a]:o}return t}function Ss(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Ms=As(Co),Cs=Oe||function(t,e){return ln.setTimeout(t,e)},Ts=As(To);function Is(t,e,n){var r=e+"";return Ts(t,is(r,Ps(Qa(r),n)))}function As(t){var e=0,n=0;return function(){var r=je(),i=O-(r-n);if(n=r,i>0){if(++e>=L)return arguments[0]}else e=0;return t.apply(o,arguments)}}function Ds(t,e){var n=-1,r=t.length,i=r-1;e=e===o?r:e;while(++n<e){var a=mo(n,i),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var ks=vs((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Rt,(function(t,n,r,i){e.push(r?i.replace(Ut,"$1"):n||t)})),e}));function Ls(t){if("string"==typeof t||Vc(t))return t;var e=t+"";return"0"==e&&1/t==-N?"-0":e}function Os(t){if(null!=t){try{return ce.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ps(t,e){return wn(H,(function(n){var r="_."+n[0];e&n[1]&&!Tn(t,r)&&t.push(r)})),t.sort()}function Es(t){if(t instanceof Ir)return t.clone();var e=new Tr(t.__wrapped__,t.__chain__);return e.__actions__=ia(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Rs(t,e,r){e=(r?ss(t,e,r):e===o)?1:Fe(Yc(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];var a=0,s=0,l=n(Pe(i/e));while(a<i)l[s++]=Ao(t,a,a+=e);return l}function Ns(t){var e=-1,n=null==t?0:t.length,r=0,i=[];while(++e<n){var o=t[e];o&&(i[r++]=o)}return i}function zs(){var t=arguments.length;if(!t)return[];var e=n(t-1),r=arguments[0],i=t;while(i--)e[i-1]=arguments[i];return Dn(lc(r)?ia(r):[r],Ai(e,1))}var Bs=bo((function(t,e){return hc(t)?bi(t,Ai(e,1,hc,!0)):[]})),Vs=bo((function(t,e){var n=ol(e);return hc(n)&&(n=o),hc(t)?bi(t,Ai(e,1,hc,!0),Wa(n,2)):[]})),Fs=bo((function(t,e){var n=ol(e);return hc(n)&&(n=o),hc(t)?bi(t,Ai(e,1,hc,!0),o,n):[]}));function Gs(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===o?1:Yc(e),Ao(t,e<0?0:e,r)):[]}function js(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===o?1:Yc(e),e=r-e,Ao(t,0,e<0?0:e)):[]}function Hs(t,e){return t&&t.length?Bo(t,Wa(e,3),!0,!0):[]}function Ws(t,e){return t&&t.length?Bo(t,Wa(e,3),!0):[]}function Us(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&ss(t,e,n)&&(n=0,r=i),Ti(t,e,n,r)):[]}function Xs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Yc(n);return i<0&&(i=Fe(r+i,0)),zn(t,Wa(e,3),i)}function $s(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Yc(n),i=n<0?Fe(r+i,0):Ge(i,r-1)),zn(t,Wa(e,3),i,!0)}function Ys(t){var e=null==t?0:t.length;return e?Ai(t,1):[]}function qs(t){var e=null==t?0:t.length;return e?Ai(t,N):[]}function Zs(t,e){var n=null==t?0:t.length;return n?(e=e===o?1:Yc(e),Ai(t,e)):[]}function Ks(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}function Js(t){return t&&t.length?t[0]:o}function Qs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Yc(n);return i<0&&(i=Fe(r+i,0)),Bn(t,e,i)}function tl(t){var e=null==t?0:t.length;return e?Ao(t,0,-1):[]}var el=bo((function(t){var e=An(t,jo);return e.length&&e[0]===t[0]?Gi(e):[]})),nl=bo((function(t){var e=ol(t),n=An(t,jo);return e===ol(n)?e=o:n.pop(),n.length&&n[0]===t[0]?Gi(n,Wa(e,2)):[]})),rl=bo((function(t){var e=ol(t),n=An(t,jo);return e="function"==typeof e?e:o,e&&n.pop(),n.length&&n[0]===t[0]?Gi(n,o,e):[]}));function il(t,e){return null==t?"":Be.call(t,e)}function ol(t){var e=null==t?0:t.length;return e?t[e-1]:o}function al(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=Yc(n),i=i<0?Fe(r+i,0):Ge(i,r-1)),e===e?gr(t,e,i):zn(t,Fn,i,!0)}function sl(t,e){return t&&t.length?co(t,Yc(e)):o}var ll=bo(ul);function ul(t,e){return t&&t.length&&e&&e.length?vo(t,e):t}function cl(t,e,n){return t&&t.length&&e&&e.length?vo(t,e,Wa(n,2)):t}function hl(t,e,n){return t&&t.length&&e&&e.length?vo(t,e,o,n):t}var fl=Ba((function(t,e){var n=null==t?0:t.length,r=gi(t,e);return yo(t,An(e,(function(t){return as(t,n)?+t:t})).sort(ta)),r}));function pl(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;e=Wa(e,3);while(++r<o){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return yo(t,i),n}function dl(t){return null==t?t:$e.call(t)}function gl(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&ss(t,e,n)?(e=0,n=r):(e=null==e?0:Yc(e),n=n===o?r:Yc(n)),Ao(t,e,n)):[]}function vl(t,e){return ko(t,e)}function yl(t,e,n){return Lo(t,e,Wa(n,2))}function ml(t,e){var n=null==t?0:t.length;if(n){var r=ko(t,e);if(r<n&&ic(t[r],e))return r}return-1}function _l(t,e){return ko(t,e,!0)}function xl(t,e,n){return Lo(t,e,Wa(n,2),!0)}function bl(t,e){var n=null==t?0:t.length;if(n){var r=ko(t,e,!0)-1;if(ic(t[r],e))return r}return-1}function wl(t){return t&&t.length?Oo(t):[]}function Sl(t,e){return t&&t.length?Oo(t,Wa(e,2)):[]}function Ml(t){var e=null==t?0:t.length;return e?Ao(t,1,e):[]}function Cl(t,e,n){return t&&t.length?(e=n||e===o?1:Yc(e),Ao(t,0,e<0?0:e)):[]}function Tl(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===o?1:Yc(e),e=r-e,Ao(t,e<0?0:e,r)):[]}function Il(t,e){return t&&t.length?Bo(t,Wa(e,3),!1,!0):[]}function Al(t,e){return t&&t.length?Bo(t,Wa(e,3)):[]}var Dl=bo((function(t){return Ro(Ai(t,1,hc,!0))})),kl=bo((function(t){var e=ol(t);return hc(e)&&(e=o),Ro(Ai(t,1,hc,!0),Wa(e,2))})),Ll=bo((function(t){var e=ol(t);return e="function"==typeof e?e:o,Ro(Ai(t,1,hc,!0),o,e)}));function Ol(t){return t&&t.length?Ro(t):[]}function Pl(t,e){return t&&t.length?Ro(t,Wa(e,2)):[]}function El(t,e){return e="function"==typeof e?e:o,t&&t.length?Ro(t,o,e):[]}function Rl(t){if(!t||!t.length)return[];var e=0;return t=Cn(t,(function(t){if(hc(t))return e=Fe(t.length,e),!0})),$n(e,(function(e){return An(t,jn(e))}))}function Nl(t,e){if(!t||!t.length)return[];var n=Rl(t);return null==e?n:An(n,(function(t){return xn(e,o,t)}))}var zl=bo((function(t,e){return hc(t)?bi(t,e):[]})),Bl=bo((function(t){return Fo(Cn(t,hc))})),Vl=bo((function(t){var e=ol(t);return hc(e)&&(e=o),Fo(Cn(t,hc),Wa(e,2))})),Fl=bo((function(t){var e=ol(t);return e="function"==typeof e?e:o,Fo(Cn(t,hc),o,e)})),Gl=bo(Rl);function jl(t,e){return Go(t||[],e||[],ui)}function Hl(t,e){return Go(t||[],e||[],Mo)}var Wl=bo((function(t){var e=t.length,n=e>1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,Nl(t,n)}));function Ul(t){var e=br(t);return e.__chain__=!0,e}function Xl(t,e){return e(t),t}function $l(t,e){return e(t)}var Yl=Ba((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return gi(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Ir&&as(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:$l,args:[i],thisArg:o}),new Tr(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)}));function ql(){return Ul(this)}function Zl(){return new Tr(this.value(),this.__chain__)}function Kl(){this.__values__===o&&(this.__values__=Xc(this.value()));var t=this.__index__>=this.__values__.length,e=t?o:this.__values__[this.__index__++];return{done:t,value:e}}function Jl(){return this}function Ql(t){var e,n=this;while(n instanceof Cr){var r=Es(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e}function tu(){var t=this.__wrapped__;if(t instanceof Ir){var e=t;return this.__actions__.length&&(e=new Ir(this)),e=e.reverse(),e.__actions__.push({func:$l,args:[dl],thisArg:o}),new Tr(e,this.__chain__)}return this.thru(dl)}function eu(){return Vo(this.__wrapped__,this.__actions__)}var nu=la((function(t,e,n){he.call(t,n)?++t[n]:di(t,n,1)}));function ru(t,e,n){var r=lc(t)?Mn:Mi;return n&&ss(t,e,n)&&(e=o),r(t,Wa(e,3))}function iu(t,e){var n=lc(t)?Cn:Ii;return n(t,Wa(e,3))}var ou=ya(Xs),au=ya($s);function su(t,e){return Ai(vu(t,e),1)}function lu(t,e){return Ai(vu(t,e),N)}function uu(t,e,n){return n=n===o?1:Yc(n),Ai(vu(t,e),n)}function cu(t,e){var n=lc(t)?wn:wi;return n(t,Wa(e,3))}function hu(t,e){var n=lc(t)?Sn:Si;return n(t,Wa(e,3))}var fu=la((function(t,e,n){he.call(t,n)?t[n].push(e):di(t,n,[e])}));function pu(t,e,n,r){t=cc(t)?t:Gh(t),n=n&&!r?Yc(n):0;var i=t.length;return n<0&&(n=Fe(i+n,0)),Bc(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Bn(t,e,n)>-1}var du=bo((function(t,e,r){var i=-1,o="function"==typeof e,a=cc(t)?n(t.length):[];return wi(t,(function(t){a[++i]=o?xn(e,t,r):Hi(t,e,r)})),a})),gu=la((function(t,e,n){di(t,n,e)}));function vu(t,e){var n=lc(t)?An:oo;return n(t,Wa(e,3))}function yu(t,e,n,r){return null==t?[]:(lc(e)||(e=null==e?[]:[e]),n=r?o:n,lc(n)||(n=null==n?[]:[n]),ho(t,e,n))}var mu=la((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));function _u(t,e,n){var r=lc(t)?kn:Wn,i=arguments.length<3;return r(t,Wa(e,4),n,i,wi)}function xu(t,e,n){var r=lc(t)?Ln:Wn,i=arguments.length<3;return r(t,Wa(e,4),n,i,Si)}function bu(t,e){var n=lc(t)?Cn:Ii;return n(t,Gu(Wa(e,3)))}function wu(t){var e=lc(t)?oi:wo;return e(t)}function Su(t,e,n){e=(n?ss(t,e,n):e===o)?1:Yc(e);var r=lc(t)?ai:So;return r(t,e)}function Mu(t){var e=lc(t)?si:Io;return e(t)}function Cu(t){if(null==t)return 0;if(cc(t))return Bc(t)?vr(t):t.length;var e=Ka(t);return e==Q||e==at?t.size:no(t).length}function Tu(t,e,n){var r=lc(t)?On:Do;return n&&ss(t,e,n)&&(e=o),r(t,Wa(e,3))}var Iu=bo((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ss(t,e[0],e[1])?e=[]:n>2&&ss(e[0],e[1],e[2])&&(e=[e[0]]),ho(t,Ai(e,1),[])})),Au=Le||function(){return ln.Date.now()};function Du(t,e){if("function"!=typeof e)throw new oe(u);return t=Yc(t),function(){if(--t<1)return e.apply(this,arguments)}}function ku(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,La(t,T,o,o,o,o,e)}function Lu(t,e){var n;if("function"!=typeof e)throw new oe(u);return t=Yc(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Ou=bo((function(t,e,n){var r=_;if(n.length){var i=hr(n,Ha(Ou));r|=M}return La(t,r,e,n,i)})),Pu=bo((function(t,e,n){var r=_|x;if(n.length){var i=hr(n,Ha(Pu));r|=M}return La(e,r,t,n,i)}));function Eu(t,e,n){e=n?o:e;var r=La(t,w,o,o,o,o,o,e);return r.placeholder=Eu.placeholder,r}function Ru(t,e,n){e=n?o:e;var r=La(t,S,o,o,o,o,o,e);return r.placeholder=Ru.placeholder,r}function Nu(t,e,n){var r,i,a,s,l,c,h=0,f=!1,p=!1,d=!0;if("function"!=typeof t)throw new oe(u);function g(e){var n=r,a=i;return r=i=o,h=e,s=t.apply(a,n),s}function v(t){return h=t,l=Cs(_,e),f?g(t):s}function y(t){var n=t-c,r=t-h,i=e-n;return p?Ge(i,a-r):i}function m(t){var n=t-c,r=t-h;return c===o||n>=e||n<0||p&&r>=a}function _(){var t=Au();if(m(t))return x(t);l=Cs(_,y(t))}function x(t){return l=o,d&&r?g(t):(r=i=o,s)}function b(){l!==o&&$o(l),h=0,r=c=i=l=o}function w(){return l===o?s:x(Au())}function S(){var t=Au(),n=m(t);if(r=arguments,i=this,c=t,n){if(l===o)return v(c);if(p)return $o(l),l=Cs(_,e),g(c)}return l===o&&(l=Cs(_,e)),s}return e=Zc(e)||0,Mc(n)&&(f=!!n.leading,p="maxWait"in n,a=p?Fe(Zc(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),S.cancel=b,S.flush=w,S}var zu=bo((function(t,e){return xi(t,1,e)})),Bu=bo((function(t,e,n){return xi(t,Zc(e)||0,n)}));function Vu(t){return La(t,A)}function Fu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new oe(u);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(Fu.Cache||Hr),n}function Gu(t){if("function"!=typeof t)throw new oe(u);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)}}function ju(t){return Lu(2,t)}Fu.Cache=Hr;var Hu=Uo((function(t,e){e=1==e.length&&lc(e[0])?An(e[0],Zn(Wa())):An(Ai(e,1),Zn(Wa()));var n=e.length;return bo((function(r){var i=-1,o=Ge(r.length,n);while(++i<o)r[i]=e[i].call(this,r[i]);return xn(t,this,r)}))})),Wu=bo((function(t,e){var n=hr(e,Ha(Wu));return La(t,M,o,e,n)})),Uu=bo((function(t,e){var n=hr(e,Ha(Uu));return La(t,C,o,e,n)})),Xu=Ba((function(t,e){return La(t,I,o,o,o,e)}));function $u(t,e){if("function"!=typeof t)throw new oe(u);return e=e===o?e:Yc(e),bo(t,e)}function Yu(t,e){if("function"!=typeof t)throw new oe(u);return e=null==e?0:Fe(Yc(e),0),bo((function(n){var r=n[e],i=Xo(n,0,e);return r&&Dn(i,r),xn(t,this,i)}))}function qu(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new oe(u);return Mc(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Nu(t,e,{leading:r,maxWait:e,trailing:i})}function Zu(t){return ku(t,1)}function Ku(t,e){return Wu(Ho(e),t)}function Ju(){if(!arguments.length)return[];var t=arguments[0];return lc(t)?t:[t]}function Qu(t){return yi(t,v)}function tc(t,e){return e="function"==typeof e?e:o,yi(t,v,e)}function ec(t){return yi(t,d|v)}function nc(t,e){return e="function"==typeof e?e:o,yi(t,d|v,e)}function rc(t,e){return null==e||_i(t,e,wh(e))}function ic(t,e){return t===e||t!==t&&e!==e}var oc=Ta(zi),ac=Ta((function(t,e){return t>=e})),sc=Wi(function(){return arguments}())?Wi:function(t){return Cc(t)&&he.call(t,"callee")&&!Me.call(t,"callee")},lc=n.isArray,uc=dn?Zn(dn):Ui;function cc(t){return null!=t&&Sc(t.length)&&!bc(t)}function hc(t){return Cc(t)&&cc(t)}function fc(t){return!0===t||!1===t||Cc(t)&&Ni(t)==$}var pc=Ne||qf,dc=gn?Zn(gn):Xi;function gc(t){return Cc(t)&&1===t.nodeType&&!Ec(t)}function vc(t){if(null==t)return!0;if(cc(t)&&(lc(t)||"string"==typeof t||"function"==typeof t.splice||pc(t)||Fc(t)||sc(t)))return!t.length;var e=Ka(t);if(e==Q||e==at)return!t.size;if(ps(t))return!no(t).length;for(var n in t)if(he.call(t,n))return!1;return!0}function yc(t,e){return $i(t,e)}function mc(t,e,n){n="function"==typeof n?n:o;var r=n?n(t,e):o;return r===o?$i(t,e,o,n):!!r}function _c(t){if(!Cc(t))return!1;var e=Ni(t);return e==Z||e==q||"string"==typeof t.message&&"string"==typeof t.name&&!Ec(t)}function xc(t){return"number"==typeof t&&ze(t)}function bc(t){if(!Mc(t))return!1;var e=Ni(t);return e==K||e==J||e==X||e==it}function wc(t){return"number"==typeof t&&t==Yc(t)}function Sc(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=z}function Mc(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Cc(t){return null!=t&&"object"==typeof t}var Tc=vn?Zn(vn):qi;function Ic(t,e){return t===e||Zi(t,e,Xa(e))}function Ac(t,e,n){return n="function"==typeof n?n:o,Zi(t,e,Xa(e),n)}function Dc(t){return Pc(t)&&t!=+t}function kc(t){if(fs(t))throw new i(l);return Ki(t)}function Lc(t){return null===t}function Oc(t){return null==t}function Pc(t){return"number"==typeof t||Cc(t)&&Ni(t)==tt}function Ec(t){if(!Cc(t)||Ni(t)!=nt)return!1;var e=we(t);if(null===e)return!0;var n=he.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ce.call(n)==ge}var Rc=yn?Zn(yn):Ji;function Nc(t){return wc(t)&&t>=-z&&t<=z}var zc=mn?Zn(mn):Qi;function Bc(t){return"string"==typeof t||!lc(t)&&Cc(t)&&Ni(t)==st}function Vc(t){return"symbol"==typeof t||Cc(t)&&Ni(t)==lt}var Fc=_n?Zn(_n):to;function Gc(t){return t===o}function jc(t){return Cc(t)&&Ka(t)==ct}function Hc(t){return Cc(t)&&Ni(t)==ht}var Wc=Ta(io),Uc=Ta((function(t,e){return t<=e}));function Xc(t){if(!t)return[];if(cc(t))return Bc(t)?yr(t):ia(t);if(Ie&&t[Ie])return lr(t[Ie]());var e=Ka(t),n=e==Q?ur:e==at?fr:Gh;return n(t)}function $c(t){if(!t)return 0===t?t:0;if(t=Zc(t),t===N||t===-N){var e=t<0?-1:1;return e*B}return t===t?t:0}function Yc(t){var e=$c(t),n=e%1;return e===e?n?e-n:e:0}function qc(t){return t?vi(Yc(t),0,F):0}function Zc(t){if("number"==typeof t)return t;if(Vc(t))return V;if(Mc(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Mc(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=qn(t);var n=qt.test(t);return n||Kt.test(t)?on(t.slice(2),n?2:8):Yt.test(t)?V:+t}function Kc(t){return oa(t,Sh(t))}function Jc(t){return t?vi(Yc(t),-z,z):0===t?t:0}function Qc(t){return null==t?"":Eo(t)}var th=ua((function(t,e){if(ps(e)||cc(e))oa(e,wh(e),t);else for(var n in e)he.call(e,n)&&ui(t,n,e[n])})),eh=ua((function(t,e){oa(e,Sh(e),t)})),nh=ua((function(t,e,n,r){oa(e,Sh(e),t,r)})),rh=ua((function(t,e,n,r){oa(e,wh(e),t,r)})),ih=Ba(gi);function oh(t,e){var n=Sr(t);return null==e?n:fi(n,e)}var ah=bo((function(t,e){t=ne(t);var n=-1,r=e.length,i=r>2?e[2]:o;i&&ss(e[0],e[1],i)&&(r=1);while(++n<r){var a=e[n],s=Sh(a),l=-1,u=s.length;while(++l<u){var c=s[l],h=t[c];(h===o||ic(h,le[c])&&!he.call(t,c))&&(t[c]=a[c])}}return t})),sh=bo((function(t){return t.push(o,Pa),xn(Ih,o,t)}));function lh(t,e){return Nn(t,Wa(e,3),Li)}function uh(t,e){return Nn(t,Wa(e,3),Oi)}function ch(t,e){return null==t?t:Di(t,Wa(e,3),Sh)}function hh(t,e){return null==t?t:ki(t,Wa(e,3),Sh)}function fh(t,e){return t&&Li(t,Wa(e,3))}function ph(t,e){return t&&Oi(t,Wa(e,3))}function dh(t){return null==t?[]:Pi(t,wh(t))}function gh(t){return null==t?[]:Pi(t,Sh(t))}function vh(t,e,n){var r=null==t?o:Ei(t,e);return r===o?n:r}function yh(t,e){return null!=t&&ts(t,e,Bi)}function mh(t,e){return null!=t&&ts(t,e,Vi)}var _h=xa((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),t[e]=n}),If(Lf)),xh=xa((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),he.call(t,e)?t[e].push(n):t[e]=[n]}),Wa),bh=bo(Hi);function wh(t){return cc(t)?ii(t):no(t)}function Sh(t){return cc(t)?ii(t,!0):ro(t)}function Mh(t,e){var n={};return e=Wa(e,3),Li(t,(function(t,r,i){di(n,e(t,r,i),t)})),n}function Ch(t,e){var n={};return e=Wa(e,3),Li(t,(function(t,r,i){di(n,r,e(t,r,i))})),n}var Th=ua((function(t,e,n){lo(t,e,n)})),Ih=ua((function(t,e,n,r){lo(t,e,n,r)})),Ah=Ba((function(t,e){var n={};if(null==t)return n;var r=!1;e=An(e,(function(e){return e=Wo(e,t),r||(r=e.length>1),e})),oa(t,Fa(t),n),r&&(n=yi(n,d|g|v,Ea));var i=e.length;while(i--)No(n,e[i]);return n}));function Dh(t,e){return Lh(t,Gu(Wa(e)))}var kh=Ba((function(t,e){return null==t?{}:fo(t,e)}));function Lh(t,e){if(null==t)return{};var n=An(Fa(t),(function(t){return[t]}));return e=Wa(e),po(t,n,(function(t,n){return e(t,n[0])}))}function Oh(t,e,n){e=Wo(e,t);var r=-1,i=e.length;i||(i=1,t=o);while(++r<i){var a=null==t?o:t[Ls(e[r])];a===o&&(r=i,a=n),t=bc(a)?a.call(t):a}return t}function Ph(t,e,n){return null==t?t:Mo(t,e,n)}function Eh(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:Mo(t,e,n,r)}var Rh=ka(wh),Nh=ka(Sh);function zh(t,e,n){var r=lc(t),i=r||pc(t)||Fc(t);if(e=Wa(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Mc(t)&&bc(o)?Sr(we(t)):{}}return(i?wn:Li)(t,(function(t,r,i){return e(n,t,r,i)})),n}function Bh(t,e){return null==t||No(t,e)}function Vh(t,e,n){return null==t?t:zo(t,e,Ho(n))}function Fh(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:zo(t,e,Ho(n),r)}function Gh(t){return null==t?[]:Kn(t,wh(t))}function jh(t){return null==t?[]:Kn(t,Sh(t))}function Hh(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=Zc(n),n=n===n?n:0),e!==o&&(e=Zc(e),e=e===e?e:0),vi(Zc(t),e,n)}function Wh(t,e,n){return e=$c(e),n===o?(n=e,e=0):n=$c(n),t=Zc(t),Fi(t,e,n)}function Uh(t,e,n){if(n&&"boolean"!=typeof n&&ss(t,e,n)&&(e=n=o),n===o&&("boolean"==typeof e?(n=e,e=o):"boolean"==typeof t&&(n=t,t=o)),t===o&&e===o?(t=0,e=1):(t=$c(t),e===o?(e=t,t=0):e=$c(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Xe();return Ge(t+i*(e-t+rn("1e-"+((i+"").length-1))),e)}return mo(t,e)}var Xh=da((function(t,e,n){return e=e.toLowerCase(),t+(n?$h(e):e)}));function $h(t){return bf(Qc(t).toLowerCase())}function Yh(t){return t=Qc(t),t&&t.replace(Qt,nr).replace(We,"")}function qh(t,e,n){t=Qc(t),e=Eo(e);var r=t.length;n=n===o?r:vi(Yc(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function Zh(t){return t=Qc(t),t&&Dt.test(t)?t.replace(It,rr):t}function Kh(t){return t=Qc(t),t&&zt.test(t)?t.replace(Nt,"\\$&"):t}var Jh=da((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Qh=da((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),tf=pa("toLowerCase");function ef(t,e,n){t=Qc(t),e=Yc(e);var r=e?vr(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Sa(Ee(i),n)+t+Sa(Pe(i),n)}function nf(t,e,n){t=Qc(t),e=Yc(e);var r=e?vr(t):0;return e&&r<e?t+Sa(e-r,n):t}function rf(t,e,n){t=Qc(t),e=Yc(e);var r=e?vr(t):0;return e&&r<e?Sa(e-r,n)+t:t}function of(t,e,n){return n||null==e?e=0:e&&(e=+e),Ue(Qc(t).replace(Bt,""),e||0)}function af(t,e,n){return e=(n?ss(t,e,n):e===o)?1:Yc(e),xo(Qc(t),e)}function sf(){var t=arguments,e=Qc(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var lf=da((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));function uf(t,e,n){return n&&"number"!=typeof n&&ss(t,e,n)&&(e=n=o),n=n===o?F:n>>>0,n?(t=Qc(t),t&&("string"==typeof e||null!=e&&!Rc(e))&&(e=Eo(e),!e&&ar(t))?Xo(yr(t),0,n):t.split(e,n)):[]}var cf=da((function(t,e,n){return t+(n?" ":"")+bf(e)}));function hf(t,e,n){return t=Qc(t),n=null==n?0:vi(Yc(n),0,t.length),e=Eo(e),t.slice(n,n+e.length)==e}function ff(t,e,n){var r=br.templateSettings;n&&ss(t,e,n)&&(e=o),t=Qc(t),e=nh({},e,r,Oa);var a,s,l=nh({},e.imports,r.imports,Oa),u=wh(l),h=Kn(l,u),f=0,p=e.interpolate||te,d="__p += '",g=re((e.escape||te).source+"|"+p.source+"|"+(p===Ot?Xt:te).source+"|"+(e.evaluate||te).source+"|$","g"),v="//# sourceURL="+(he.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ze+"]")+"\n";t.replace(g,(function(e,n,r,i,o,l){return r||(r=i),d+=t.slice(f,l).replace(ee,ir),n&&(a=!0,d+="' +\n__e("+n+") +\n'"),o&&(s=!0,d+="';\n"+o+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=l+e.length,e})),d+="';\n";var y=he.call(e,"variable")&&e.variable;if(y){if(Wt.test(y))throw new i(c)}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(St,""):d).replace(Mt,"$1").replace(Ct,"$1;"),d="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Sf((function(){return Vt(u,v+"return "+d).apply(o,h)}));if(m.source=d,_c(m))throw m;return m}function pf(t){return Qc(t).toLowerCase()}function df(t){return Qc(t).toUpperCase()}function gf(t,e,n){if(t=Qc(t),t&&(n||e===o))return qn(t);if(!t||!(e=Eo(e)))return t;var r=yr(t),i=yr(e),a=Qn(r,i),s=tr(r,i)+1;return Xo(r,a,s).join("")}function vf(t,e,n){if(t=Qc(t),t&&(n||e===o))return t.slice(0,mr(t)+1);if(!t||!(e=Eo(e)))return t;var r=yr(t),i=tr(r,yr(e))+1;return Xo(r,0,i).join("")}function yf(t,e,n){if(t=Qc(t),t&&(n||e===o))return t.replace(Bt,"");if(!t||!(e=Eo(e)))return t;var r=yr(t),i=Qn(r,yr(e));return Xo(r,i).join("")}function mf(t,e){var n=D,r=k;if(Mc(e)){var i="separator"in e?e.separator:i;n="length"in e?Yc(e.length):n,r="omission"in e?Eo(e.omission):r}t=Qc(t);var a=t.length;if(ar(t)){var s=yr(t);a=s.length}if(n>=a)return t;var l=n-vr(r);if(l<1)return r;var u=s?Xo(s,0,l).join(""):t.slice(0,l);if(i===o)return u+r;if(s&&(l+=u.length-l),Rc(i)){if(t.slice(l).search(i)){var c,h=u;i.global||(i=re(i.source,Qc($t.exec(i))+"g")),i.lastIndex=0;while(c=i.exec(h))var f=c.index;u=u.slice(0,f===o?l:f)}}else if(t.indexOf(Eo(i),l)!=l){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+r}function _f(t){return t=Qc(t),t&&At.test(t)?t.replace(Tt,_r):t}var xf=da((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),bf=pa("toUpperCase");function wf(t,e,n){return t=Qc(t),e=n?o:e,e===o?sr(t)?wr(t):Rn(t):t.match(e)||[]}var Sf=bo((function(t,e){try{return xn(t,o,e)}catch(n){return _c(n)?n:new i(n)}})),Mf=Ba((function(t,e){return wn(e,(function(e){e=Ls(e),di(t,e,Ou(t[e],t))})),t}));function Cf(t){var e=null==t?0:t.length,n=Wa();return t=e?An(t,(function(t){if("function"!=typeof t[1])throw new oe(u);return[n(t[0]),t[1]]})):[],bo((function(n){var r=-1;while(++r<e){var i=t[r];if(xn(i[0],this,n))return xn(i[1],this,n)}}))}function Tf(t){return mi(yi(t,d))}function If(t){return function(){return t}}function Af(t,e){return null==t||t!==t?e:t}var Df=ma(),kf=ma(!0);function Lf(t){return t}function Of(t){return eo("function"==typeof t?t:yi(t,d))}function Pf(t){return ao(yi(t,d))}function Ef(t,e){return so(t,yi(e,d))}var Rf=bo((function(t,e){return function(n){return Hi(n,t,e)}})),Nf=bo((function(t,e){return function(n){return Hi(t,n,e)}}));function zf(t,e,n){var r=wh(e),i=Pi(e,r);null!=n||Mc(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Pi(e,wh(e)));var o=!(Mc(n)&&"chain"in n)||!!n.chain,a=bc(t);return wn(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__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Dn([this.value()],arguments))})})),t}function Bf(){return ln._===this&&(ln._=ve),this}function Vf(){}function Ff(t){return t=Yc(t),bo((function(e){return co(e,t)}))}var Gf=wa(An),jf=wa(Mn),Hf=wa(On);function Wf(t){return ls(t)?jn(Ls(t)):go(t)}function Uf(t){return function(e){return null==t?o:Ei(t,e)}}var Xf=Ca(),$f=Ca(!0);function Yf(){return[]}function qf(){return!1}function Zf(){return{}}function Kf(){return""}function Jf(){return!0}function Qf(t,e){if(t=Yc(t),t<1||t>z)return[];var n=F,r=Ge(t,F);e=Wa(e),t-=F;var i=$n(r,e);while(++n<t)e(n);return i}function tp(t){return lc(t)?An(t,Ls):Vc(t)?[t]:ia(ks(Qc(t)))}function ep(t){var e=++fe;return Qc(t)+e}var np=ba((function(t,e){return t+e}),0),rp=Aa("ceil"),ip=ba((function(t,e){return t/e}),1),op=Aa("floor");function ap(t){return t&&t.length?Ci(t,Lf,zi):o}function sp(t,e){return t&&t.length?Ci(t,Wa(e,2),zi):o}function lp(t){return Gn(t,Lf)}function up(t,e){return Gn(t,Wa(e,2))}function cp(t){return t&&t.length?Ci(t,Lf,io):o}function hp(t,e){return t&&t.length?Ci(t,Wa(e,2),io):o}var fp=ba((function(t,e){return t*e}),1),pp=Aa("round"),dp=ba((function(t,e){return t-e}),0);function gp(t){return t&&t.length?Xn(t,Lf):0}function vp(t,e){return t&&t.length?Xn(t,Wa(e,2)):0}return br.after=Du,br.ary=ku,br.assign=th,br.assignIn=eh,br.assignInWith=nh,br.assignWith=rh,br.at=ih,br.before=Lu,br.bind=Ou,br.bindAll=Mf,br.bindKey=Pu,br.castArray=Ju,br.chain=Ul,br.chunk=Rs,br.compact=Ns,br.concat=zs,br.cond=Cf,br.conforms=Tf,br.constant=If,br.countBy=nu,br.create=oh,br.curry=Eu,br.curryRight=Ru,br.debounce=Nu,br.defaults=ah,br.defaultsDeep=sh,br.defer=zu,br.delay=Bu,br.difference=Bs,br.differenceBy=Vs,br.differenceWith=Fs,br.drop=Gs,br.dropRight=js,br.dropRightWhile=Hs,br.dropWhile=Ws,br.fill=Us,br.filter=iu,br.flatMap=su,br.flatMapDeep=lu,br.flatMapDepth=uu,br.flatten=Ys,br.flattenDeep=qs,br.flattenDepth=Zs,br.flip=Vu,br.flow=Df,br.flowRight=kf,br.fromPairs=Ks,br.functions=dh,br.functionsIn=gh,br.groupBy=fu,br.initial=tl,br.intersection=el,br.intersectionBy=nl,br.intersectionWith=rl,br.invert=_h,br.invertBy=xh,br.invokeMap=du,br.iteratee=Of,br.keyBy=gu,br.keys=wh,br.keysIn=Sh,br.map=vu,br.mapKeys=Mh,br.mapValues=Ch,br.matches=Pf,br.matchesProperty=Ef,br.memoize=Fu,br.merge=Th,br.mergeWith=Ih,br.method=Rf,br.methodOf=Nf,br.mixin=zf,br.negate=Gu,br.nthArg=Ff,br.omit=Ah,br.omitBy=Dh,br.once=ju,br.orderBy=yu,br.over=Gf,br.overArgs=Hu,br.overEvery=jf,br.overSome=Hf,br.partial=Wu,br.partialRight=Uu,br.partition=mu,br.pick=kh,br.pickBy=Lh,br.property=Wf,br.propertyOf=Uf,br.pull=ll,br.pullAll=ul,br.pullAllBy=cl,br.pullAllWith=hl,br.pullAt=fl,br.range=Xf,br.rangeRight=$f,br.rearg=Xu,br.reject=bu,br.remove=pl,br.rest=$u,br.reverse=dl,br.sampleSize=Su,br.set=Ph,br.setWith=Eh,br.shuffle=Mu,br.slice=gl,br.sortBy=Iu,br.sortedUniq=wl,br.sortedUniqBy=Sl,br.split=uf,br.spread=Yu,br.tail=Ml,br.take=Cl,br.takeRight=Tl,br.takeRightWhile=Il,br.takeWhile=Al,br.tap=Xl,br.throttle=qu,br.thru=$l,br.toArray=Xc,br.toPairs=Rh,br.toPairsIn=Nh,br.toPath=tp,br.toPlainObject=Kc,br.transform=zh,br.unary=Zu,br.union=Dl,br.unionBy=kl,br.unionWith=Ll,br.uniq=Ol,br.uniqBy=Pl,br.uniqWith=El,br.unset=Bh,br.unzip=Rl,br.unzipWith=Nl,br.update=Vh,br.updateWith=Fh,br.values=Gh,br.valuesIn=jh,br.without=zl,br.words=wf,br.wrap=Ku,br.xor=Bl,br.xorBy=Vl,br.xorWith=Fl,br.zip=Gl,br.zipObject=jl,br.zipObjectDeep=Hl,br.zipWith=Wl,br.entries=Rh,br.entriesIn=Nh,br.extend=eh,br.extendWith=nh,zf(br,br),br.add=np,br.attempt=Sf,br.camelCase=Xh,br.capitalize=$h,br.ceil=rp,br.clamp=Hh,br.clone=Qu,br.cloneDeep=ec,br.cloneDeepWith=nc,br.cloneWith=tc,br.conformsTo=rc,br.deburr=Yh,br.defaultTo=Af,br.divide=ip,br.endsWith=qh,br.eq=ic,br.escape=Zh,br.escapeRegExp=Kh,br.every=ru,br.find=ou,br.findIndex=Xs,br.findKey=lh,br.findLast=au,br.findLastIndex=$s,br.findLastKey=uh,br.floor=op,br.forEach=cu,br.forEachRight=hu,br.forIn=ch,br.forInRight=hh,br.forOwn=fh,br.forOwnRight=ph,br.get=vh,br.gt=oc,br.gte=ac,br.has=yh,br.hasIn=mh,br.head=Js,br.identity=Lf,br.includes=pu,br.indexOf=Qs,br.inRange=Wh,br.invoke=bh,br.isArguments=sc,br.isArray=lc,br.isArrayBuffer=uc,br.isArrayLike=cc,br.isArrayLikeObject=hc,br.isBoolean=fc,br.isBuffer=pc,br.isDate=dc,br.isElement=gc,br.isEmpty=vc,br.isEqual=yc,br.isEqualWith=mc,br.isError=_c,br.isFinite=xc,br.isFunction=bc,br.isInteger=wc,br.isLength=Sc,br.isMap=Tc,br.isMatch=Ic,br.isMatchWith=Ac,br.isNaN=Dc,br.isNative=kc,br.isNil=Oc,br.isNull=Lc,br.isNumber=Pc,br.isObject=Mc,br.isObjectLike=Cc,br.isPlainObject=Ec,br.isRegExp=Rc,br.isSafeInteger=Nc,br.isSet=zc,br.isString=Bc,br.isSymbol=Vc,br.isTypedArray=Fc,br.isUndefined=Gc,br.isWeakMap=jc,br.isWeakSet=Hc,br.join=il,br.kebabCase=Jh,br.last=ol,br.lastIndexOf=al,br.lowerCase=Qh,br.lowerFirst=tf,br.lt=Wc,br.lte=Uc,br.max=ap,br.maxBy=sp,br.mean=lp,br.meanBy=up,br.min=cp,br.minBy=hp,br.stubArray=Yf,br.stubFalse=qf,br.stubObject=Zf,br.stubString=Kf,br.stubTrue=Jf,br.multiply=fp,br.nth=sl,br.noConflict=Bf,br.noop=Vf,br.now=Au,br.pad=ef,br.padEnd=nf,br.padStart=rf,br.parseInt=of,br.random=Uh,br.reduce=_u,br.reduceRight=xu,br.repeat=af,br.replace=sf,br.result=Oh,br.round=pp,br.runInContext=t,br.sample=wu,br.size=Cu,br.snakeCase=lf,br.some=Tu,br.sortedIndex=vl,br.sortedIndexBy=yl,br.sortedIndexOf=ml,br.sortedLastIndex=_l,br.sortedLastIndexBy=xl,br.sortedLastIndexOf=bl,br.startCase=cf,br.startsWith=hf,br.subtract=dp,br.sum=gp,br.sumBy=vp,br.template=ff,br.times=Qf,br.toFinite=$c,br.toInteger=Yc,br.toLength=qc,br.toLower=pf,br.toNumber=Zc,br.toSafeInteger=Jc,br.toString=Qc,br.toUpper=df,br.trim=gf,br.trimEnd=vf,br.trimStart=yf,br.truncate=mf,br.unescape=_f,br.uniqueId=ep,br.upperCase=xf,br.upperFirst=bf,br.each=cu,br.eachRight=hu,br.first=Js,zf(br,function(){var t={};return Li(br,(function(e,n){he.call(br.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),br.VERSION=a,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){br[t].placeholder=br})),wn(["drop","take"],(function(t,e){Ir.prototype[t]=function(n){n=n===o?1:Fe(Yc(n),0);var r=this.__filtered__&&!e?new Ir(this):this.clone();return r.__filtered__?r.__takeCount__=Ge(n,r.__takeCount__):r.__views__.push({size:Ge(n,F),type:t+(r.__dir__<0?"Right":"")}),r},Ir.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),wn(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=n==P||n==R;Ir.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Wa(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),wn(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Ir.prototype[t]=function(){return this[n](1).value()[0]}})),wn(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Ir.prototype[t]=function(){return this.__filtered__?new Ir(this):this[n](1)}})),Ir.prototype.compact=function(){return this.filter(Lf)},Ir.prototype.find=function(t){return this.filter(t).head()},Ir.prototype.findLast=function(t){return this.reverse().find(t)},Ir.prototype.invokeMap=bo((function(t,e){return"function"==typeof t?new Ir(this):this.map((function(n){return Hi(n,t,e)}))})),Ir.prototype.reject=function(t){return this.filter(Gu(Wa(t)))},Ir.prototype.slice=function(t,e){t=Yc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Ir(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(e=Yc(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Ir.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ir.prototype.toArray=function(){return this.take(F)},Li(Ir.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=br[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);i&&(br.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,l=e instanceof Ir,u=s[0],c=l||lc(e),h=function(t){var e=i.apply(br,Dn([t],s));return r&&f?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,p=!!this.__actions__.length,d=a&&!f,g=l&&!p;if(!a&&c){e=g?e:new Ir(this);var v=t.apply(e,s);return v.__actions__.push({func:$l,args:[h],thisArg:o}),new Tr(v,f)}return d&&g?t.apply(this,s):(v=this.thru(h),d?r?v.value()[0]:v.value():v)})})),wn(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ae[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);br.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(lc(i)?i:[],t)}return this[n]((function(n){return e.apply(lc(n)?n:[],t)}))}})),Li(Ir.prototype,(function(t,e){var n=br[e];if(n){var r=n.name+"";he.call(un,r)||(un[r]=[]),un[r].push({name:e,func:n})}})),un[_a(o,x).name]=[{name:"wrapper",func:o}],Ir.prototype.clone=Ar,Ir.prototype.reverse=Dr,Ir.prototype.value=kr,br.prototype.at=Yl,br.prototype.chain=ql,br.prototype.commit=Zl,br.prototype.next=Kl,br.prototype.plant=Ql,br.prototype.reverse=tu,br.prototype.toJSON=br.prototype.valueOf=br.prototype.value=eu,br.prototype.first=br.prototype.head,Ie&&(br.prototype[Ie]=Jl),br},Mr=Sr();ln._=Mr,i=function(){return Mr}.call(e,n,e,r),i===o||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(t))},"2f62":function(t,e,n){"use strict";
- /**
- * vuex v3.1.0
- * (c) 2019 Evan You
- * @license MIT
- */
- function r(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,"b",(function(){return L}));var i="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){i.emit("vuex:mutation",t,e)})))}function a(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function s(t){return null!==t&&"object"===typeof t}function l(t){return t&&"function"===typeof t.then}var u=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},u.prototype.addChild=function(t,e){this._children[t]=e},u.prototype.removeChild=function(t){delete this._children[t]},u.prototype.getChild=function(t){return this._children[t]},u.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},u.prototype.forEachChild=function(t){a(this._children,t)},u.prototype.forEachGetter=function(t){this._rawModule.getters&&a(this._rawModule.getters,t)},u.prototype.forEachAction=function(t){this._rawModule.actions&&a(this._rawModule.actions,t)},u.prototype.forEachMutation=function(t){this._rawModule.mutations&&a(this._rawModule.mutations,t)},Object.defineProperties(u.prototype,c);var h=function(t){this.register([],t,!1)};function f(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;f(t.concat(r),e.getChild(r),n.modules[r])}}h.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},h.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},h.prototype.update=function(t){f([],this.root,t)},h.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new u(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&a(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},h.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var p;var d=function(t){var e=this;void 0===t&&(t={}),!p&&"undefined"!==typeof window&&window.Vue&&A(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new h(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new p;var i=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return l.call(i,t,e,n)},this.strict=r;var u=this._modules.root.state;_(this,u,[],this._modules.root),m(this,u),n.forEach((function(t){return t(e)}));var c=void 0!==t.devtools?t.devtools:p.config.devtools;c&&o(this)},g={state:{configurable:!0}};function v(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function y(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;_(t,n,[],t._modules.root,!0),m(t,n,e)}function m(t,e,n){var r=t._vm;t.getters={};var i=t._wrappedGetters,o={};a(i,(function(e,n){o[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=p.config.silent;p.config.silent=!0,t._vm=new p({data:{$$state:e},computed:o}),p.config.silent=s,t.strict&&C(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),p.nextTick((function(){return r.$destroy()})))}function _(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var s=T(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){p.set(s,l,r.state)}))}var u=r.context=x(t,a,n);r.forEachMutation((function(e,n){var r=a+n;w(t,r,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;S(t,r,i,u)})),r.forEachGetter((function(e,n){var r=a+n;M(t,r,e,u)})),r.forEachChild((function(r,o){_(t,e,n.concat(o),r,i)}))}function x(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=I(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:r?t.commit:function(n,r,i){var o=I(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return b(t,e)}},state:{get:function(){return T(t.state,n)}}}),i}function b(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),n}function w(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function S(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e,i){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return l(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}function M(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function C(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function T(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function I(t,e,n){return s(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function A(t){p&&t===p||(p=t,r(p))}g.state.get=function(){return this._vm._data.$$state},g.state.set=function(t){0},d.prototype.commit=function(t,e,n){var r=this,i=I(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(s,r.state)})))},d.prototype.dispatch=function(t,e){var n=this,r=I(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return l.then((function(t){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}return t}))}},d.prototype.subscribe=function(t){return v(t,this._subscribers)},d.prototype.subscribeAction=function(t){var e="function"===typeof t?{before:t}:t;return v(e,this._actionSubscribers)},d.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},d.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},d.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),_(this,this.state,t,this._modules.get(t),n.preserveState),m(this,this.state)},d.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=T(e.state,t.slice(0,-1));p.delete(n,t[t.length-1])})),y(this)},d.prototype.hotUpdate=function(t){this._modules.update(t),y(this,!0)},d.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(d.prototype,g);var D=R((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=N(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),k=R((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=N(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),L=R((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||N(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),O=R((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=N(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),P=function(t){return{mapState:D.bind(null,t),mapGetters:L.bind(null,t),mapMutations:k.bind(null,t),mapActions:O.bind(null,t)}};function E(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function R(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function N(t,e,n){var r=t._modulesNamespaceMap[n];return r}var z={Store:d,install:A,version:"3.1.0",mapState:D,mapMutations:k,mapGetters:L,mapActions:O,createNamespacedHelpers:P};e["a"]=z},"2f9a":function(t,e){t.exports=function(){}},"301c":function(t,e,n){n("e198")("asyncIterator")},"30b5":function(t,e,n){"use strict";var r=n("c532");function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},"313e":function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return dw})),n.d(e,"dependencies",(function(){return gw})),n.d(e,"PRIORITY",(function(){return Ow})),n.d(e,"init",(function(){return LS})),n.d(e,"connect",(function(){return OS})),n.d(e,"disConnect",(function(){return PS})),n.d(e,"disconnect",(function(){return ES})),n.d(e,"dispose",(function(){return RS})),n.d(e,"getInstanceByDom",(function(){return NS})),n.d(e,"getInstanceById",(function(){return zS})),n.d(e,"registerTheme",(function(){return BS})),n.d(e,"registerPreprocessor",(function(){return VS})),n.d(e,"registerProcessor",(function(){return FS})),n.d(e,"registerPostInit",(function(){return GS})),n.d(e,"registerPostUpdate",(function(){return jS})),n.d(e,"registerAction",(function(){return HS})),n.d(e,"registerCoordinateSystem",(function(){return WS})),n.d(e,"getCoordinateSystemDimensions",(function(){return US})),n.d(e,"registerLocale",(function(){return Rp})),n.d(e,"registerLayout",(function(){return XS})),n.d(e,"registerVisual",(function(){return $S})),n.d(e,"registerLoading",(function(){return ZS})),n.d(e,"setCanvasCreator",(function(){return KS})),n.d(e,"registerMap",(function(){return JS})),n.d(e,"getMap",(function(){return QS})),n.d(e,"registerTransform",(function(){return tM})),n.d(e,"dataTool",(function(){return eM})),n.d(e,"zrender",(function(){return s})),n.d(e,"matrix",(function(){return a})),n.d(e,"vector",(function(){return i})),n.d(e,"zrUtil",(function(){return r})),n.d(e,"color",(function(){return o})),n.d(e,"throttle",(function(){return wm})),n.d(e,"helper",(function(){return u})),n.d(e,"use",(function(){return iM})),n.d(e,"parseGeoJSON",(function(){return Hb})),n.d(e,"parseGeoJson",(function(){return Hb})),n.d(e,"number",(function(){return c})),n.d(e,"time",(function(){return h})),n.d(e,"graphic",(function(){return f})),n.d(e,"format",(function(){return p})),n.d(e,"util",(function(){return d})),n.d(e,"env",(function(){return S})),n.d(e,"List",(function(){return jM})),n.d(e,"Model",(function(){return bp})),n.d(e,"Axis",(function(){return JT})),n.d(e,"ComponentModel",(function(){return qd})),n.d(e,"ComponentView",(function(){return lm})),n.d(e,"SeriesModel",(function(){return am})),n.d(e,"ChartView",(function(){return mm})),n.d(e,"innerDrawElementOnCanvas",(function(){return Wx})),n.d(e,"extendComponentModel",(function(){return QT})),n.d(e,"extendComponentView",(function(){return tI})),n.d(e,"extendSeriesModel",(function(){return eI})),n.d(e,"extendChartView",(function(){return nI}));var r={};n.r(r),n.d(r,"$override",(function(){return R})),n.d(r,"guid",(function(){return z})),n.d(r,"logError",(function(){return B})),n.d(r,"clone",(function(){return V})),n.d(r,"merge",(function(){return F})),n.d(r,"mergeAll",(function(){return G})),n.d(r,"extend",(function(){return j})),n.d(r,"defaults",(function(){return H})),n.d(r,"createCanvas",(function(){return W})),n.d(r,"indexOf",(function(){return U})),n.d(r,"inherits",(function(){return X})),n.d(r,"mixin",(function(){return $})),n.d(r,"isArrayLike",(function(){return Y})),n.d(r,"each",(function(){return q})),n.d(r,"map",(function(){return Z})),n.d(r,"reduce",(function(){return K})),n.d(r,"filter",(function(){return J})),n.d(r,"find",(function(){return Q})),n.d(r,"keys",(function(){return tt})),n.d(r,"bind",(function(){return nt})),n.d(r,"curry",(function(){return rt})),n.d(r,"isArray",(function(){return it})),n.d(r,"isFunction",(function(){return ot})),n.d(r,"isString",(function(){return at})),n.d(r,"isStringSafe",(function(){return st})),n.d(r,"isNumber",(function(){return lt})),n.d(r,"isObject",(function(){return ut})),n.d(r,"isBuiltInObject",(function(){return ct})),n.d(r,"isTypedArray",(function(){return ht})),n.d(r,"isDom",(function(){return ft})),n.d(r,"isGradientObject",(function(){return pt})),n.d(r,"isImagePatternObject",(function(){return dt})),n.d(r,"isRegExp",(function(){return gt})),n.d(r,"eqNaN",(function(){return vt})),n.d(r,"retrieve",(function(){return yt})),n.d(r,"retrieve2",(function(){return mt})),n.d(r,"retrieve3",(function(){return _t})),n.d(r,"slice",(function(){return xt})),n.d(r,"normalizeCssArray",(function(){return bt})),n.d(r,"assert",(function(){return wt})),n.d(r,"trim",(function(){return St})),n.d(r,"setAsPrimitive",(function(){return Ct})),n.d(r,"isPrimitive",(function(){return Tt})),n.d(r,"HashMap",(function(){return It})),n.d(r,"createHashMap",(function(){return At})),n.d(r,"concatArray",(function(){return Dt})),n.d(r,"createObject",(function(){return kt})),n.d(r,"hasOwn",(function(){return Lt})),n.d(r,"noop",(function(){return Ot}));var i={};n.r(i),n.d(i,"create",(function(){return Rt})),n.d(i,"copy",(function(){return Nt})),n.d(i,"clone",(function(){return zt})),n.d(i,"set",(function(){return Bt})),n.d(i,"add",(function(){return Vt})),n.d(i,"scaleAndAdd",(function(){return Ft})),n.d(i,"sub",(function(){return Gt})),n.d(i,"len",(function(){return jt})),n.d(i,"length",(function(){return Ht})),n.d(i,"lenSquare",(function(){return Wt})),n.d(i,"lengthSquare",(function(){return Ut})),n.d(i,"mul",(function(){return Xt})),n.d(i,"div",(function(){return $t})),n.d(i,"dot",(function(){return Yt})),n.d(i,"scale",(function(){return qt})),n.d(i,"normalize",(function(){return Zt})),n.d(i,"distance",(function(){return Kt})),n.d(i,"dist",(function(){return Jt})),n.d(i,"distanceSquare",(function(){return Qt})),n.d(i,"distSquare",(function(){return te})),n.d(i,"negate",(function(){return ee})),n.d(i,"lerp",(function(){return ne})),n.d(i,"applyTransform",(function(){return re})),n.d(i,"min",(function(){return ie})),n.d(i,"max",(function(){return oe}));var o={};n.r(o),n.d(o,"parse",(function(){return Rn})),n.d(o,"lift",(function(){return Bn})),n.d(o,"toHex",(function(){return Vn})),n.d(o,"fastLerp",(function(){return Fn})),n.d(o,"fastMapToColor",(function(){return Gn})),n.d(o,"lerp",(function(){return jn})),n.d(o,"mapToColor",(function(){return Hn})),n.d(o,"modifyHSL",(function(){return Wn})),n.d(o,"modifyAlpha",(function(){return Un})),n.d(o,"stringify",(function(){return Xn})),n.d(o,"lum",(function(){return $n})),n.d(o,"random",(function(){return Yn}));var a={};n.r(a),n.d(a,"create",(function(){return jr})),n.d(a,"identity",(function(){return Hr})),n.d(a,"copy",(function(){return Wr})),n.d(a,"mul",(function(){return Ur})),n.d(a,"translate",(function(){return Xr})),n.d(a,"rotate",(function(){return $r})),n.d(a,"scale",(function(){return Yr})),n.d(a,"invert",(function(){return qr})),n.d(a,"clone",(function(){return Zr}));var s={};n.r(s),n.d(s,"init",(function(){return Ji})),n.d(s,"dispose",(function(){return Qi})),n.d(s,"disposeAll",(function(){return to})),n.d(s,"getInstance",(function(){return eo})),n.d(s,"registerPainter",(function(){return no})),n.d(s,"version",(function(){return ro}));var l={};n.r(l),n.d(l,"extendShape",(function(){return pf})),n.d(l,"extendPath",(function(){return gf})),n.d(l,"registerShape",(function(){return vf})),n.d(l,"getShapeClass",(function(){return yf})),n.d(l,"makePath",(function(){return mf})),n.d(l,"makeImage",(function(){return _f})),n.d(l,"mergePath",(function(){return bf})),n.d(l,"resizePath",(function(){return wf})),n.d(l,"subPixelOptimizeLine",(function(){return Sf})),n.d(l,"subPixelOptimizeRect",(function(){return Mf})),n.d(l,"subPixelOptimize",(function(){return Cf})),n.d(l,"updateProps",(function(){return If})),n.d(l,"initProps",(function(){return Af})),n.d(l,"removeElement",(function(){return Df})),n.d(l,"removeElementWithFadeOut",(function(){return Lf})),n.d(l,"isElementRemoved",(function(){return Of})),n.d(l,"getTransform",(function(){return Pf})),n.d(l,"applyTransform",(function(){return Ef})),n.d(l,"transformDirection",(function(){return Rf})),n.d(l,"groupTransition",(function(){return Bf})),n.d(l,"clipPointsByRect",(function(){return Vf})),n.d(l,"clipRectByRect",(function(){return Ff})),n.d(l,"createIcon",(function(){return Gf})),n.d(l,"linePolygonIntersect",(function(){return jf})),n.d(l,"lineLineIntersect",(function(){return Hf})),n.d(l,"setTooltipConfig",(function(){return Xf})),n.d(l,"Group",(function(){return Ui})),n.d(l,"Image",(function(){return Yl})),n.d(l,"Text",(function(){return yu})),n.d(l,"Circle",(function(){return th})),n.d(l,"Ellipse",(function(){return rh})),n.d(l,"Sector",(function(){return xh})),n.d(l,"Ring",(function(){return Sh})),n.d(l,"Polygon",(function(){return kh})),n.d(l,"Polyline",(function(){return Ph})),n.d(l,"Rect",(function(){return ru})),n.d(l,"Line",(function(){return zh})),n.d(l,"BezierCurve",(function(){return jh})),n.d(l,"Arc",(function(){return Uh})),n.d(l,"IncrementalDisplayable",(function(){return uf})),n.d(l,"CompoundPath",(function(){return $h})),n.d(l,"LinearGradient",(function(){return Kh})),n.d(l,"RadialGradient",(function(){return Qh})),n.d(l,"BoundingRect",(function(){return _i})),n.d(l,"OrientedBoundingRect",(function(){return af})),n.d(l,"Point",(function(){return ui})),n.d(l,"Path",(function(){return Fl}));var u={};n.r(u),n.d(u,"createList",(function(){return IT})),n.d(u,"getLayoutRect",(function(){return Vd})),n.d(u,"createDimensions",(function(){return $M})),n.d(u,"dataStack",(function(){return AT})),n.d(u,"createSymbol",(function(){return px})),n.d(u,"createScale",(function(){return DT})),n.d(u,"mixinAxisModelCommonMethods",(function(){return kT})),n.d(u,"getECData",(function(){return mu})),n.d(u,"enableHoverEmphasis",(function(){return mc})),n.d(u,"createTextStyle",(function(){return LT}));var c={};n.r(c),n.d(c,"linearMap",(function(){return so})),n.d(c,"round",(function(){return uo})),n.d(c,"asc",(function(){return co})),n.d(c,"getPrecision",(function(){return ho})),n.d(c,"getPrecisionSafe",(function(){return fo})),n.d(c,"getPixelPrecision",(function(){return po})),n.d(c,"getPercentWithPrecision",(function(){return go})),n.d(c,"MAX_SAFE_INTEGER",(function(){return yo})),n.d(c,"remRadian",(function(){return mo})),n.d(c,"isRadianAroundZero",(function(){return _o})),n.d(c,"parseDate",(function(){return bo})),n.d(c,"quantity",(function(){return wo})),n.d(c,"quantityExponent",(function(){return So})),n.d(c,"nice",(function(){return Mo})),n.d(c,"quantile",(function(){return Co})),n.d(c,"reformIntervals",(function(){return To})),n.d(c,"isNumeric",(function(){return Ao})),n.d(c,"numericToNumber",(function(){return Io}));var h={};n.r(h),n.d(h,"parse",(function(){return bo})),n.d(h,"format",(function(){return Qp}));var f={};n.r(f),n.d(f,"extendShape",(function(){return pf})),n.d(f,"extendPath",(function(){return gf})),n.d(f,"makePath",(function(){return mf})),n.d(f,"makeImage",(function(){return _f})),n.d(f,"mergePath",(function(){return bf})),n.d(f,"resizePath",(function(){return wf})),n.d(f,"createIcon",(function(){return Gf})),n.d(f,"updateProps",(function(){return If})),n.d(f,"initProps",(function(){return Af})),n.d(f,"getTransform",(function(){return Pf})),n.d(f,"clipPointsByRect",(function(){return Vf})),n.d(f,"clipRectByRect",(function(){return Ff})),n.d(f,"registerShape",(function(){return vf})),n.d(f,"getShapeClass",(function(){return yf})),n.d(f,"Group",(function(){return Ui})),n.d(f,"Image",(function(){return Yl})),n.d(f,"Text",(function(){return yu})),n.d(f,"Circle",(function(){return th})),n.d(f,"Ellipse",(function(){return rh})),n.d(f,"Sector",(function(){return xh})),n.d(f,"Ring",(function(){return Sh})),n.d(f,"Polygon",(function(){return kh})),n.d(f,"Polyline",(function(){return Ph})),n.d(f,"Rect",(function(){return ru})),n.d(f,"Line",(function(){return zh})),n.d(f,"BezierCurve",(function(){return jh})),n.d(f,"Arc",(function(){return Uh})),n.d(f,"IncrementalDisplayable",(function(){return uf})),n.d(f,"CompoundPath",(function(){return $h})),n.d(f,"LinearGradient",(function(){return Kh})),n.d(f,"RadialGradient",(function(){return Qh})),n.d(f,"BoundingRect",(function(){return _i}));var p={};n.r(p),n.d(p,"addCommas",(function(){return yd})),n.d(p,"toCamelCase",(function(){return md})),n.d(p,"normalizeCssArray",(function(){return _d})),n.d(p,"encodeHTML",(function(){return wd})),n.d(p,"formatTpl",(function(){return Td})),n.d(p,"getTooltipMarker",(function(){return Ad})),n.d(p,"formatTime",(function(){return Dd})),n.d(p,"capitalFirst",(function(){return kd})),n.d(p,"truncateText",(function(){return Ba})),n.d(p,"getTextRect",(function(){return OT}));var d={};n.r(d),n.d(d,"map",(function(){return Z})),n.d(d,"each",(function(){return q})),n.d(d,"indexOf",(function(){return U})),n.d(d,"inherits",(function(){return X})),n.d(d,"reduce",(function(){return K})),n.d(d,"filter",(function(){return J})),n.d(d,"bind",(function(){return nt})),n.d(d,"curry",(function(){return rt})),n.d(d,"isArray",(function(){return it})),n.d(d,"isString",(function(){return at})),n.d(d,"isObject",(function(){return ut})),n.d(d,"isFunction",(function(){return ot})),n.d(d,"extend",(function(){return j})),n.d(d,"defaults",(function(){return H})),n.d(d,"clone",(function(){return V})),n.d(d,"merge",(function(){return F}));
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var g=function(t,e){return g=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])},g(t,e)};function v(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var y=function(){return y=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},y.apply(this,arguments)};Object.create;function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}Object.create;var _=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),x=function(){function t(){this.browser=new _,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1}return t}(),b=new x;function w(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.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(b.wxa=!0,b.canvasSupported=!0,b.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?(b.worker=!0,b.canvasSupported=!0):"undefined"===typeof navigator?(b.node=!0,b.canvasSupported=!0,b.svgSupported=!0):w(navigator.userAgent,b);var S=b,M={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},C={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},T=Object.prototype.toString,I=Array.prototype,A=I.forEach,D=I.filter,k=I.slice,L=I.map,O=function(){}.constructor,P=O?O.prototype:null,E={};function R(t,e){E[t]=e}var N=2311;function z(){return N++}function B(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function V(t){if(null==t||"object"!==typeof t)return t;var e=t,n=T.call(t);if("[object Array]"===n){if(!Tt(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=V(t[r])}}else if(C[n]){if(!Tt(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]=V(t[r])}}}else if(!M[n]&&!Tt(t)&&!ft(t))for(var a in e={},t)t.hasOwnProperty(a)&&(e[a]=V(t[a]));return e}function F(t,e,n){if(!ut(e)||!ut(t))return n?V(e):t;for(var r in e)if(e.hasOwnProperty(r)){var i=t[r],o=e[r];!ut(o)||!ut(i)||it(o)||it(i)||ft(o)||ft(i)||ct(o)||ct(i)||Tt(o)||Tt(i)?!n&&r in t||(t[r]=V(e[r])):F(i,o,n)}return t}function G(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=F(n,t[r],e);return n}function j(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function H(t,e,n){for(var r=tt(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var W=function(){return E.createCanvas()};function U(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 X(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}function $(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 H(t,e,n)}function Y(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function q(t,e,n){if(t&&e)if(t.forEach&&t.forEach===A)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 Z(t,e,n){if(!t)return[];if(!e)return xt(t);if(t.map&&t.map===L)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 K(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 J(t,e,n){if(!t)return[];if(!e)return xt(t);if(t.filter&&t.filter===D)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 Q(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]}function tt(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function et(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(k.call(arguments)))}}E.createCanvas=function(){return document.createElement("canvas")};var nt=P&&ot(P.bind)?P.call.bind(P.bind):et;function rt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(k.call(arguments)))}}function it(t){return Array.isArray?Array.isArray(t):"[object Array]"===T.call(t)}function ot(t){return"function"===typeof t}function at(t){return"string"===typeof t}function st(t){return"[object String]"===T.call(t)}function lt(t){return"number"===typeof t}function ut(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function ct(t){return!!M[T.call(t)]}function ht(t){return!!C[T.call(t)]}function ft(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function pt(t){return null!=t.colorStops}function dt(t){return null!=t.image}function gt(t){return"[object RegExp]"===T.call(t)}function vt(t){return t!==t}function yt(){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 mt(t,e){return null!=t?t:e}function _t(t,e,n){return null!=t?t:null!=e?e:n}function xt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return k.apply(t,e)}function bt(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 wt(t,e){if(!t)throw new Error(e)}function St(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Mt="__ec_primitive__";function Ct(t){t[Mt]=!0}function Tt(t){return t[Mt]}var It=function(){function t(e){this.data={};var n=it(e);this.data={};var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&q(e,i)}return t.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},t.prototype.set=function(t,e){return this.data[t]=e},t.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},t.prototype.keys=function(){return tt(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}();function At(t){return new It(t)}function Dt(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 kt(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&j(n,e),n}function Lt(t,e){return t.hasOwnProperty(e)}function Ot(){}
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var Pt=function(t,e){return Pt=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])},Pt(t,e)};function Et(t,e){function n(){this.constructor=t}Pt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;function Rt(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Nt(t,e){return t[0]=e[0],t[1]=e[1],t}function zt(t){return[t[0],t[1]]}function Bt(t,e,n){return t[0]=e,t[1]=n,t}function Vt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Ft(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Gt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function jt(t){return Math.sqrt(Wt(t))}var Ht=jt;function Wt(t){return t[0]*t[0]+t[1]*t[1]}var Ut=Wt;function Xt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function $t(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function Yt(t,e){return t[0]*e[0]+t[1]*e[1]}function qt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Zt(t,e){var n=jt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Kt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Jt=Kt;function Qt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var te=Qt;function ee(t,e){return t[0]=-e[0],t[1]=-e[1],t}function ne(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 re(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 ie(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function oe(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var ae=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),se=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ae(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 ae(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 ae(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new ae(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ae(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ae(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),le=se,ue=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);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){if(!this._$handlers)return this;var e=this._$handlers[t],n=this._$eventProcessor;if(e)for(var r=arguments,i=r.length,o=r[i-1],a=e.length,s=0;s<a;s++){var l=e[s];if(!n||!n.filter||null==l.query||n.filter(t,l.query))switch(i){case 0:l.h.call(o);break;case 1:l.h.call(o,r[0]);break;case 2:l.h.call(o,r[0],r[1]);break;default:l.h.apply(o,r.slice(1,i-1));break}}return n&&n.afterTrigger&&n.afterTrigger(t),this},t}(),ce=ue,he=Math.log(2);function fe(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)/he);return t[n][l]}var u=r|1<<n,c=n+1;while(r&1<<c)c++;for(var h=0,f=0,p=0;f<s;f++){var d=1<<f;d&i||(h+=(p%2?-1:1)*t[n][f]*fe(t,e-1,c,u,i|d,o),p++)}return o[a]=h,h}function pe(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=fe(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)*fe(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 de="___zrEVENTSAVED",ge=[];function ve(t,e,n,r,i){return ye(ge,e,r,i,!0)&&ye(t,n,ge[0],ge[1])}function ye(t,e,n,r,i){if(e.getBoundingClientRect&&S.domSupported&&!xe(e)){var o=e[de]||(e[de]={}),a=me(e,o),s=_e(a,o,i);if(s)return s(t,n,r),!0}return!1}function me(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=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function _e(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,f=c.left,p=c.top;a.push(f,p),l=l&&o&&f===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?pe(s,a):pe(a,s))}function xe(t){return"CANVAS"===t.nodeName.toUpperCase()}var be="undefined"!==typeof window&&!!window.addEventListener,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=[];function Me(t,e,n,r){return n=n||{},r||!S.canvasSupported?Ce(t,e,n):S.browser.firefox&&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):Ce(t,e,n),n}function Ce(t,e,n){if(S.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(xe(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(ye(Se,t,r,i))return n.zrX=Se[0],void(n.zrY=Se[1])}n.zrX=n.zrY=0}function Te(t){return t||window.event}function Ie(t,e,n){if(e=Te(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&Me(t,o,e,n)}else{Me(t,e,e,n);var a=Ae(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&we.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Ae(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function De(t,e,n,r){be?t.addEventListener(e,n,r):t.attachEvent("on"+e,n)}function ke(t,e,n,r){be?t.removeEventListener(e,n,r):t.detachEvent("on"+e,n)}var Le=be?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function Oe(t){return 2===t.which||3===t.which}var Pe=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=Me(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 Ne)if(Ne.hasOwnProperty(e)){var n=Ne[e](this._track,t);if(n)return n}},t}();function Ee(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Re(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Ne={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=Ee(r)/Ee(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Re(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},ze="silent";function Be(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:Ve}}function Ve(){Le(this.event)}var Fe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Et(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ce),Ge=function(){function t(t,e){this.x=t,this.y=e}return t}(),je=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],He=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._hovered=new Ge(0,0),o.storage=e,o.painter=n,o.painterRoot=i,r=r||new Fe,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new le(o),o}return Et(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(q(je,(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=Ue(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new Ge(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 Ge(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=Be(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;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){for(var r=this.storage.getDisplayList(),i=new Ge(t,e),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=We(r[o],t,e))&&(!i.topTarget&&(i.topTarget=r[o]),a!==ze)){i.target=r[o];break}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Pe);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 Ge;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(ce);function We(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(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||ze}return!1}function Ue(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){He.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Ue(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.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||Jt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var Xe=He,$e=32,Ye=7;function qe(t){var e=0;while(t>=$e)e|=1&t,t>>=1;return t+e}function Ze(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i<n&&r(t[i],t[i-1])<0)i++;Ke(t,e,i)}else while(i<n&&r(t[i],t[i-1])>=0)i++;return i-e}function Ke(t,e,n){n--;while(e<n){var r=t[e];t[e++]=t[n],t[n--]=r}}function Je(t,e,n,r,i){for(r===e&&r++;r<n;r++){var o,a=t[r],s=e,l=r;while(s<l)o=s+l>>>1,i(a,t[o])<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:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function Qe(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){s=r-i;while(l<s&&o(t,e[n+i+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(l<s&&o(t,e[n+i-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function tn(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){s=i+1;while(l<s&&o(t,e[n+i-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l<s&&o(t,e[n+i+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function en(t,e){var n,r,i=Ye,o=0,a=0;o=t.length;var s=[];function l(t,e){n[a]=t,r[a]=e,a+=1}function u(){while(a>1){var t=a-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;h(t)}}function c(){while(a>1){var t=a-2;t>0&&r[t-1]<r[t+1]&&t--,h(t)}}function h(i){var o=n[i],s=r[i],l=n[i+1],u=r[i+1];r[i]=s+u,i===a-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),a--;var c=tn(t[l],t,o,s,0,e);o+=c,s-=c,0!==s&&(u=Qe(t[o+s-1],t,l,u,u-1,e),0!==u&&(s<=u?f(o,s,l,u):p(o,s,l,u)))}function f(n,r,o,a){var l=0;for(l=0;l<r;l++)s[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--a)if(1!==r){var f,p,d,g=i;while(1){f=0,p=0,d=!1;do{if(e(t[c],s[u])<0){if(t[h++]=t[c++],p++,f=0,0===--a){d=!0;break}}else if(t[h++]=s[u++],f++,p=0,1===--r){d=!0;break}}while((f|p)<g);if(d)break;do{if(f=tn(t[c],s,u,r,0,e),0!==f){for(l=0;l<f;l++)t[h+l]=s[u+l];if(h+=f,u+=f,r-=f,r<=1){d=!0;break}}if(t[h++]=t[c++],0===--a){d=!0;break}if(p=Qe(s[u],t,c,a,0,e),0!==p){for(l=0;l<p;l++)t[h+l]=t[c+l];if(h+=p,c+=p,a-=p,0===a){d=!0;break}}if(t[h++]=s[u++],1===--r){d=!0;break}g--}while(f>=Ye||p>=Ye);if(d)break;g<0&&(g=0),g+=2}if(i=g,i<1&&(i=1),1===r){for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)t[h+l]=s[u+l]}}else{for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else for(l=0;l<r;l++)t[h+l]=s[u+l]}function p(n,r,o,a){var l=0;for(l=0;l<a;l++)s[l]=t[o+l];var u=n+r-1,c=a-1,h=o+a-1,f=0,p=0;if(t[h--]=t[u--],0!==--r)if(1!==a){var d=i;while(1){var g=0,v=0,y=!1;do{if(e(s[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--r){y=!0;break}}else if(t[h--]=s[c--],v++,g=0,1===--a){y=!0;break}}while((g|v)<d);if(y)break;do{if(g=r-tn(s[c],t,n,r,r-1,e),0!==g){for(h-=g,u-=g,r-=g,p=h+1,f=u+1,l=g-1;l>=0;l--)t[p+l]=t[f+l];if(0===r){y=!0;break}}if(t[h--]=s[c--],1===--a){y=!0;break}if(v=a-Qe(t[u],s,0,a,a-1,e),0!==v){for(h-=v,c-=v,a-=v,p=h+1,f=c+1,l=0;l<v;l++)t[p+l]=s[f+l];if(a<=1){y=!0;break}}if(t[h--]=t[u--],0===--r){y=!0;break}d--}while(g>=Ye||v>=Ye);if(y)break;d<0&&(d=0),d+=2}if(i=d,i<1&&(i=1),1===a){for(h-=r,u-=r,p=h+1,f=u+1,l=r-1;l>=0;l--)t[p+l]=t[f+l];t[h]=s[c]}else{if(0===a)throw new Error;for(f=h-(a-1),l=0;l<a;l++)t[f+l]=s[l]}}else{for(h-=r,u-=r,p=h+1,f=u+1,l=r-1;l>=0;l--)t[p+l]=t[f+l];t[h]=s[c]}else for(f=h-(a-1),l=0;l<a;l++)t[f+l]=s[l]}return o<120?5:o<1542?10:o<119151?19:40,n=[],r=[],{mergeRuns:u,forceMergeRuns:c,pushRun:l}}function nn(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<$e)return o=Ze(t,n,r,e),void Je(t,n,r,n+o,e);var a=en(t,e),s=qe(i);do{if(o=Ze(t,n,r,e),o<s){var l=i;l>s&&(l=s),Je(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 rn=1,on=2,an=4,sn=!1;function ln(){sn||(sn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function un(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var cn,hn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=un}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,S.canvasSupported&&nn(n,un)},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():[];var i=r,o=t;while(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|=rn),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)&&(ln(),u.z=0),isNaN(u.z2)&&(ln(),u.z2=0),isNaN(u.zlevel)&&(ln(),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 f=t.getTextContent();f&&this._updateAndAddDisplayable(f,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=U(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}(),fn=hn;cn="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var pn=cn,dn={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,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):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-dn.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*dn.bounceIn(2*t):.5*dn.bounceOut(2*t-1)+.5}},gn=dn,vn=function(){function t(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}return t.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){var n=(t-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var r=this.easing,i="string"===typeof r?gn[r]:r,o="function"===typeof i?i(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},t.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t}(),yn=vn,mn=function(){function t(t){this.value=t}return t}(),_n=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new mn(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}(),xn=function(){function t(t){this._list=new _n,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 mn(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}(),bn=xn,wn={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 Sn(t){return t=Math.round(t),t<0?0:t>255?255:t}function Mn(t){return t=Math.round(t),t<0?0:t>360?360:t}function Cn(t){return t<0?0:t>1?1:t}function Tn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Sn(parseFloat(e)/100*255):Sn(parseInt(e,10))}function In(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Cn(parseFloat(e)/100):Cn(parseFloat(e))}function An(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 Dn(t,e,n){return t+(e-t)*n}function kn(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Ln(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var On=new bn(20),Pn=null;function En(t,e){Pn&&Ln(Pn,e),Pn=On.put(t,Pn||e.slice())}function Rn(t,e){if(t){e=e||[];var n=On.get(t);if(n)return Ln(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in wn)return Ln(e,wn[r]),En(t,e),e;var i=r.length;if("#"!==r.charAt(0)){var o=r.indexOf("("),a=r.indexOf(")");if(-1!==o&&a+1===i){var s=r.substr(0,o),l=r.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?kn(e,+l[0],+l[1],+l[2],1):kn(e,0,0,0,1);u=In(l.pop());case"rgb":return 3!==l.length?void kn(e,0,0,0,1):(kn(e,Tn(l[0]),Tn(l[1]),Tn(l[2]),u),En(t,e),e);case"hsla":return 4!==l.length?void kn(e,0,0,0,1):(l[3]=In(l[3]),Nn(l,e),En(t,e),e);case"hsl":return 3!==l.length?void kn(e,0,0,0,1):(Nn(l,e),En(t,e),e);default:return}}kn(e,0,0,0,1)}else{if(4===i||5===i){var c=parseInt(r.slice(1,4),16);return c>=0&&c<=4095?(kn(e,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===i?parseInt(r.slice(4),16)/15:1),En(t,e),e):void kn(e,0,0,0,1)}if(7===i||9===i){c=parseInt(r.slice(1,7),16);return c>=0&&c<=16777215?(kn(e,(16711680&c)>>16,(65280&c)>>8,255&c,9===i?parseInt(r.slice(7),16)/255:1),En(t,e),e):void kn(e,0,0,0,1)}}}}function Nn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=In(t[1]),i=In(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return e=e||[],kn(e,Sn(255*An(a,o,n+1/3)),Sn(255*An(a,o,n)),Sn(255*An(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function zn(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,f=((s-o)/6+l/2)/l;r===s?e=f-h:i===s?e=1/3+c-f: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}}function Bn(t,e){var n=Rn(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 Xn(n,4===n.length?"rgba":"rgb")}}function Vn(t){var e=Rn(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Fn(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]=Sn(Dn(a[0],s[0],l)),n[1]=Sn(Dn(a[1],s[1],l)),n[2]=Sn(Dn(a[2],s[2],l)),n[3]=Cn(Dn(a[3],s[3],l)),n}}var Gn=Fn;function jn(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=Rn(e[i]),s=Rn(e[o]),l=r-i,u=Xn([Sn(Dn(a[0],s[0],l)),Sn(Dn(a[1],s[1],l)),Sn(Dn(a[2],s[2],l)),Cn(Dn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}var Hn=jn;function Wn(t,e,n,r){var i=Rn(t);if(t)return i=zn(i),null!=e&&(i[0]=Mn(e)),null!=n&&(i[1]=In(n)),null!=r&&(i[2]=In(r)),Xn(Nn(i),"rgba")}function Un(t,e){var n=Rn(t);if(n&&null!=e)return n[3]=Cn(e),Xn(n,"rgba")}function Xn(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 $n(t,e){var n=Rn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Yn(){var t=Math.round(255*Math.random()),e=Math.round(255*Math.random()),n=Math.round(255*Math.random());return"rgb("+t+","+e+","+n+")"}var qn=Array.prototype.slice;function Zn(t,e,n){return(e-t)*n+t}function Kn(t,e,n){return n>.5?e:t}function Jn(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=Zn(e[o],n[o],r)}function Qn(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]=Zn(e[a][s],n[a][s],r)}}function tr(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function er(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 nr(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(1===n?i[l]:qn.call(i[l]))}var u=r[0]&&r[0].length;for(l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function rr(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}function ir(t,e,n,r,i,o,a){var s=.5*(n-t),l=.5*(r-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*i+e}function or(t,e,n,r,i,o,a,s){for(var l=e.length,u=0;u<l;u++)t[u]=ir(e[u],n[u],r[u],i[u],o,a,s)}function ar(t,e,n,r,i,o,a,s){for(var l=e.length,u=e[0].length,c=0;c<l;c++){t[c]||(t[1]=[]);for(var h=0;h<u;h++)t[c][h]=ir(e[c][h],n[c][h],r[c][h],i[c][h],o,a,s)}}function sr(t){if(Y(t)){var e=t.length;if(Y(t[0])){for(var n=[],r=0;r<e;r++)n.push(qn.call(t[r]));return n}return qn.call(t)}return t}function lr(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function ur(t){return Y(t&&t[0])?2:1}var cr=[0,0,0,0],hr=function(){function t(t){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=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._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,r=n.length;if(this.interpolable)if(Y(e)){var i=ur(e);if(r>0&&this.arrDim!==i)return void(this.interpolable=!1);if(1===i&&"number"!==typeof e[0]||2===i&&"number"!==typeof e[0][0])return void(this.interpolable=!1);if(r>0){var o=n[r-1];this._isAllValueEqual&&(1===i&&rr(e,o.value)||(this._isAllValueEqual=!1))}this.arrDim=i}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"===typeof e){var a=Rn(e);a?(e=a,this.isValueColor=!0):this.interpolable=!1}else if("number"!==typeof e||isNaN(e))return void(this.interpolable=!1);if(this._isAllValueEqual&&r>0){o=n[r-1];(this.isValueColor&&!rr(o.value,e)||o.value!==e)&&(this._isAllValueEqual=!1)}}var s={time:t,value:e,percent:0};return this.keyframes.push(s),s},t.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort((function(t,e){return t.time-e.time}));for(var n=this.arrDim,r=e.length,i=e[r-1],o=0;o<r;o++)e[o].percent=e[o].time/this.maxTime,n>0&&o!==r-1&&nr(e[o].value,i.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;var a=e[0].value;for(o=0;o<r;o++)0===n?this.isValueColor?e[o].additiveValue=tr([],e[o].value,a,-1):e[o].additiveValue=e[o].value-a:1===n?e[o].additiveValue=tr([],e[o].value,a,-1):2===n&&(e[o].additiveValue=er([],e[o].value,a,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r=null!=this._additiveTrack,i=r?"additiveValue":"value",o=this.keyframes,a=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor;if(e<0)n=0;else if(e<this._lastFramePercent){var c=Math.min(this._lastFrame+1,a-1);for(n=c;n>=0;n--)if(o[n].percent<=e)break;n=Math.min(n,a-2)}else{for(n=this._lastFrame;n<a;n++)if(o[n].percent>e)break;n=Math.min(n-1,a-2)}var h=o[n+1],f=o[n];if(f&&h){this._lastFrame=n,this._lastFramePercent=e;var p=h.percent-f.percent;if(0!==p){var d=(e-f.percent)/p,g=r?this._additiveValue:u?cr:t[s];if((l>0||u)&&!g&&(g=this._additiveValue=[]),this.useSpline){var v=o[n][i],y=o[0===n?n:n-1][i],m=o[n>a-2?a-1:n+1][i],_=o[n>a-3?a-1:n+2][i];if(l>0)1===l?or(g,y,v,m,_,d,d*d,d*d*d):ar(g,y,v,m,_,d,d*d,d*d*d);else if(u)or(g,y,v,m,_,d,d*d,d*d*d),r||(t[s]=lr(g));else{var x=void 0;x=this.interpolable?ir(y,v,m,_,d,d*d,d*d*d):m,r?this._additiveValue=x:t[s]=x}}else if(l>0)1===l?Jn(g,f[i],h[i],d):Qn(g,f[i],h[i],d);else if(u)Jn(g,f[i],h[i],d),r||(t[s]=lr(g));else{x=void 0;x=this.interpolable?Zn(f[i],h[i],d):Kn(f[i],h[i],d),r?this._additiveValue=x:t[s]=x}r&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,r=this._additiveValue;0===e?this.isValueColor?(Rn(t[n],cr),tr(cr,cr,r,1),t[n]=lr(cr)):t[n]=t[n]+r:1===e?tr(t[n],t[n],r,1):2===e&&er(t[n],t[n],r,1)},t}(),fr=function(){function t(t,e,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?B("Can' use additive animation on looped animation."):this._additiveAnimators=n}return t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e){return this.whenWithKeys(t,e,tt(e))},t.prototype.whenWithKeys=function(t,e,n){for(var r=this._tracks,i=0;i<n.length;i++){var o=n[i],a=r[o];if(!a){a=r[o]=new hr(o);var s=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes[l.keyframes.length-1];s=u&&u.value,l.isValueColor&&s&&(s=lr(s))}else s=this._target[o];if(null==s)continue;0!==t&&a.addKeyframe(0,sr(s)),this._trackKeys.push(o)}a.addKeyframe(t,sr(e[o]))}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._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneList;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._abortedList;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,e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes;if(a.prepare(s),a.needsAnimate())r.push(a);else if(!a.interpolable){var u=l[l.length-1];u&&(n._target[a.propName]=u.value)}}if(r.length||e){var c=new yn({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(t){n._started=2;var e=n._additiveAnimators;if(e){for(var i=!1,o=0;o<e.length;o++)if(e[o]._clip){i=!0;break}i||(n._additiveAnimators=null)}for(o=0;o<r.length;o++)r[o].step(n._target,t);var a=n._onframeList;if(a)for(o=0;o<a.length;o++)a[o](n._target,t)},ondestroy:function(){n._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&"spline"!==t&&(c.easing=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._onframeList||(this._onframeList=[]),this._onframeList.push(t)),this},t.prototype.done=function(t){return t&&(this._doneList||(this._doneList=[]),this._doneList.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},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&&(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.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i&&!i.isFinished()){var o=i.keyframes,a=o[o.length-1];if(a){var s=sr(a.value);i.isValueColor&&(s=lr(s)),t[r]=s}}}}},t.prototype.__changeFinalValue=function(t,e){e=e||tt(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(i.getAdditiveTrack())}}}},t}(),pr=fr,dr=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.onframe=e.onframe||function(){},n}return Et(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=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._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=(new Date).getTime()-this._pausedTime,n=e-this._time,r=this._clipsHead;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy&&r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(pn(e),!t._paused&&t.update())}this._running=!0,pn(e)},e.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._clipsHead;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},e.prototype.isFinished=function(){return null==this._clipsHead},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new pr(t,e.loop);return this.addAnimator(n),n},e}(ce),gr=dr,vr=300,yr=S.domSupported,mr=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Z(t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),_r={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},xr=!1;function br(t){var e=t.pointerType;return"pen"===e||"touch"===e}function wr(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function Sr(t){t&&(t.zrByTouch=!0)}function Mr(t,e){return Ie(t.dom,new Tr(t,e),!0)}function Cr(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var Tr=function(){function t(t,e){this.stopPropagation=Ot,this.stopImmediatePropagation=Ot,this.preventDefault=Ot,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Ir={mousedown:function(t){t=Ie(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ie(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=Ie(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Ie(this.dom,t);var e=t.toElement||t.relatedTarget;Cr(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){xr=!0,t=Ie(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){xr||(t=Ie(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Ie(this.dom,t),Sr(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ir.mousemove.call(this,t),Ir.mousedown.call(this,t)},touchmove:function(t){t=Ie(this.dom,t),Sr(t),this.handler.processGesture(t,"change"),Ir.mousemove.call(this,t)},touchend:function(t){t=Ie(this.dom,t),Sr(t),this.handler.processGesture(t,"end"),Ir.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<vr&&Ir.click.call(this,t)},pointerdown:function(t){Ir.mousedown.call(this,t)},pointermove:function(t){br(t)||Ir.mousemove.call(this,t)},pointerup:function(t){Ir.mouseup.call(this,t)},pointerout:function(t){br(t)||Ir.mouseout.call(this,t)}};q(["click","dblclick","contextmenu"],(function(t){Ir[t]=function(e){e=Ie(this.dom,e),this.trigger(t,e)}}));var Ar={pointermove:function(t){br(t)||Ar.mousemove.call(this,t)},pointerup:function(t){Ar.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 Dr(t,e){var n=e.domHandlers;S.pointerEventsSupported?q(mr.pointer,(function(r){Lr(e,r,(function(e){n[r].call(t,e)}))})):(S.touchEventsSupported&&q(mr.touch,(function(r){Lr(e,r,(function(i){n[r].call(t,i),wr(e)}))})),q(mr.mouse,(function(r){Lr(e,r,(function(i){i=Te(i),e.touching||n[r].call(t,i)}))})))}function kr(t,e){function n(n){function r(r){r=Te(r),Cr(t,r.target)||(r=Mr(t,r),e.domHandlers[n].call(t,r))}Lr(e,n,r,{capture:!0})}S.pointerEventsSupported?q(_r.pointer,n):S.touchEventsSupported||q(_r.mouse,n)}function Lr(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,De(t.domTarget,e,n,r)}function Or(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&ke(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Pr=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),Er=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 Pr(e,Ir),yr&&(r._globalHandlerScope=new Pr(document,Ar)),Dr(r,r._localHandlerScope),r}return Et(e,t),e.prototype.dispose=function(){Or(this._localHandlerScope),yr&&Or(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,yr&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?kr(this,e):Or(e)}},e}(ce),Rr=Er,Nr=1;"undefined"!==typeof window&&(Nr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zr=Nr,Br=.4,Vr="#333",Fr="#ccc",Gr="#eee";function jr(){return[1,0,0,1,0,0]}function Hr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Wr(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 Ur(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 Xr(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 $r(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*u,t[1]=-r*u+a*c,t[2]=i*c+s*u,t[3]=-i*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function Yr(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 qr(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}function Zr(t){var e=jr();return Wr(e,t),e}var Kr=Hr,Jr=5e-5;function Qr(t){return t>Jr||t<-Jr}var ti,ei,ni=[],ri=[],ii=jr(),oi=Math.abs,ai=function(){function t(){}return 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 Qr(this.rotation)||Qr(this.x)||Qr(this.y)||Qr(this.scaleX-1)||Qr(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),r=this.transform;n||e?(r=r||jr(),n?this.getLocalTransform(r):Kr(r),e&&(n?Ur(r,t.transform,r):Wr(r,t.transform)),this.transform=r,this._resolveGlobalScaleRatio(r)):r&&Kr(r)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(ni);var n=ni[0]<0?-1:1,r=ni[1]<0?-1:1,i=((ni[0]-n)*e+n)/ni[0]||0,o=((ni[1]-r)*e+r)/ni[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||jr(),qr(this.invTransform,t)},t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],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&&(Ur(ri,t.invTransform,e),e=ri);var n=this.originX,r=this.originY;(n||r)&&(ii[4]=n,ii[5]=r,Ur(ri,e,ii),ri[4]-=n,ri[5]-=r,e=ri),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&&re(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&re(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&oi(t[0]-1)>1e-10&&oi(t[3]-1)>1e-10?Math.sqrt(oi(t[0]*t[3]-t[2]*t[1])):1},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.rotation||0,s=t.x,l=t.y,u=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;return n||r?(e[4]=-n*i-u*r*o,e[5]=-r*o-c*n*i):e[4]=e[5]=0,e[0]=i,e[3]=o,e[1]=c*i,e[2]=u*o,a&&$r(e,e,a),e[4]+=n+s,e[5]+=r+l,e},t.initDefaultProps=function(){var e=t.prototype;e.x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.skewX=0,e.skewY=0,e.rotation=0,e.globalScaleRatio=1}(),t}(),si=ai,li=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}(),ui=li,ci=Math.min,hi=Math.max,fi=new ui,pi=new ui,di=new ui,gi=new ui,vi=new ui,yi=new ui,mi=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=ci(t.x,this.x),n=ci(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=hi(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=hi(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=jr();return Xr(i,i,[-e.x,-e.y]),Yr(i,i,[n,r]),Xr(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,f=!(o<l||u<i||s<c||h<a);if(n){var p=1/0,d=0,g=Math.abs(o-l),v=Math.abs(u-i),y=Math.abs(s-c),m=Math.abs(h-a),_=Math.min(g,v),x=Math.min(y,m);o<l||u<i?_>d&&(d=_,g<v?ui.set(yi,-g,0):ui.set(yi,v,0)):_<p&&(p=_,g<v?ui.set(vi,g,0):ui.set(vi,-v,0)),s<c||h<a?x>d&&(d=x,y<m?ui.set(yi,0,-y):ui.set(yi,0,m)):_<p&&(p=_,y<m?ui.set(vi,0,y):ui.set(vi,0,-m))}return n&&ui.copy(n,f?vi:yi),f},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))}fi.x=di.x=n.x,fi.y=gi.y=n.y,pi.x=gi.x=n.x+n.width,pi.y=di.y=n.y+n.height,fi.transform(r),gi.transform(r),pi.transform(r),di.transform(r),e.x=ci(fi.x,pi.x,di.x,gi.x),e.y=ci(fi.y,pi.y,di.y,gi.y);var l=hi(fi.x,pi.x,di.x,gi.x),u=hi(fi.y,pi.y,di.y,gi.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),_i=mi,xi={},bi="12px sans-serif";function wi(t,e){return ti||(ti=W().getContext("2d")),ei!==e&&(ei=ti.font=e||bi),ti.measureText(t)}var Si={measureText:wi};function Mi(t,e){e=e||bi;var n=xi[e];n||(n=xi[e]=new bn(500));var r=n.get(t);return null==r&&(r=Si.measureText(t,e).width,n.put(t,r)),r}function Ci(t,e,n,r){var i=Mi(t,e),o=Di(e),a=Ii(0,i,n),s=Ai(0,o,r),l=new _i(a,s,i,o);return l}function Ti(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return Ci(i[0],e,n,r);for(var a=new _i(0,0,0,0),s=0;s<i.length;s++){var l=Ci(i[s],e,n,r);0===s?a.copy(l):a.union(l)}return a}function Ii(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Ai(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Di(t){return Mi("国",t)}function ki(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Li(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+=ki(r[0],n.width),u+=ki(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";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var Oi="__zr_normal__",Pi=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],Ei={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Ri={},Ni=new _i(0,0,0,0),zi=function(){function t(t){this.id=z(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var 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.attachedTransform,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.x=e.x,i.y=e.y,i.originX=e.originX,i.originY=e.originY,i.rotation=e.rotation,i.scaleX=e.scaleX,i.scaleY=e.scaleY,null!=n.position){var u=Ni;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ri,n,u):Li(Ri,n,u),i.x=Ri.x,i.y=Ri.y,o=Ri.align,a=Ri.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,f=void 0;"center"===c?(h=.5*u.width,f=.5*u.height):(h=ki(c[0],u.width),f=ki(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+f+(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 d=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=rn,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()?Fr:Vr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Rn(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,Xn(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||{},j(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(ut(t))for(var n=t,r=tt(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}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(!i||i===Oi){var o=r.targetName,a=o?e[o]:e;r.saveFinalToTarget(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,Pi)},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(Oi,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===Oi,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(U(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~rn),l}B("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 f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.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&=~rn)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=U(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=U(r,t),o=U(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];j(n,i),i.textConfig&&(e=e||{},j(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=j({},r?this.textConfig:n.textConfig),j(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Pi.length;u++){var c=Pi[u],h=i&&Ei[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 f=this.animators[u],p=f.targetName;f.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");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;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.attachedTransform=new si,this._attachComponent(t),this._textContent=t,this.markRedraw()}},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),j(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.attachedTransform=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|=rn;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){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){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){var n=t?this[t]:this;if(n){var r=new pr(n,e);return this.addAnimator(r,t),r}B('Property "'+t+'" is not existed in element '+this.id)},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=U(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){Bi(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Bi(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Bi(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;e.type="element",e.name="",e.ignore=!1,e.silent=!1,e.isGroup=!1,e.draggable=!1,e.dragging=!1,e.ignoreClip=!1,e.__inHover=!1,e.__dirty=rn;var n={};function r(t,e,r){n[t+e+r]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+r+"' instead"),n[t+e+r]=!0)}function i(t,n,i,o){function a(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[o]},set:function(e){t[o]=e}})}Object.defineProperty(e,t,{get:function(){if(r(t,i,o),!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){r(t,i,o),this[i]=e[0],this[o]=e[1],this[n]=e,a(this,e)}})}Object.defineProperty&&(!S.browser.ie||S.browser.version>8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();function Bi(t,e,n,r,i){n=n||{};var o=[];ji(t,"",t,e,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,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 f=0;f<o.length;f++){var p=o[f];c&&p.done(c),h&&p.aborted(h),p.start(n.easing,n.force)}return o}function Vi(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function Fi(t){return Y(t[0])}function Gi(t,e,n){if(Y(e[n]))if(Y(t[n])||(t[n]=[]),ht(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Vi(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(Fi(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?Vi(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Vi(o,i,a);o.length=i.length}else t[n]=e[n]}function ji(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=tt(r),h=i.duration,f=i.delay,p=i.additive,d=i.setToFinal,g=!ut(o),v=0;v<c.length;v++){var y=c[v];if(null!=n[y]&&null!=r[y]&&(g||o[y]))if(ut(r[y])&&!Y(r[y])){if(e){s||(n[y]=r[y],t.updateDuringAnimation(e));continue}ji(t,y,n[y],r[y],i,o&&o[y],a,s)}else l.push(y),u.push(y);else s||(n[y]=r[y],t.updateDuringAnimation(e),u.push(y))}var m=l.length;if(m>0||i.force&&!a.length){for(var _=t.animators,x=[],b=0;b<_.length;b++)_[b].targetName===e&&x.push(_[b]);if(!p&&x.length)for(b=0;b<x.length;b++){var w=x[b].stopTracks(u);if(w){var S=U(_,x[b]);_.splice(S,1)}}var M=void 0,C=void 0,T=void 0;if(s){C={},d&&(M={});for(b=0;b<m;b++){y=l[b];C[y]=n[y],d?M[y]=r[y]:n[y]=r[y]}}else if(d){T={};for(b=0;b<m;b++){y=l[b];T[y]=sr(n[y]),Gi(n,r,y)}}var I=new pr(n,!1,p?x:null);I.targetName=e,i.scope&&(I.scope=i.scope),d&&M&&I.whenWithKeys(0,M,l),T&&I.whenWithKeys(0,T,l),I.whenWithKeys(null==h?500:h,s?C:r,l).delay(f||0),t.addAnimator(I,e),a.push(I)}}$(zi,ce),$(zi,si);var Hi=zi,Wi=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return Et(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){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return 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.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=U(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++){var r=this._children[n];r.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new _i(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?(_i.applyTransform(e,s,l),i=i||e.clone(),i.union(e)):(i=i||s.clone(),i.union(s))}}return i||e},e}(Hi);Wi.prototype.type="group";var Ui=Wi,Xi=!S.canvasSupported,$i={},Yi={};
- /*!
- * ZRender, a high performance 2d drawing library.
- *
- * Copyright (c) 2013, Baidu Inc.
- * All rights reserved.
- *
- * LICENSE
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
- */function qi(t){delete Yi[t]}function Zi(t){if(!t)return!1;if("string"===typeof t)return $n(t,1)<Br;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=$n(e[i].color,1);return n/=r,n<Br}return!1}var Ki=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 fn,o=n.renderer||"canvas";if(Xi)throw new Error("IE8 support has been dropped since 5.0");if($i[o]||(o=tt($i)[0]),!$i[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new $i[o](e,i,n,t);this.storage=i,this.painter=a;var s=S.node||S.worker?null:new Rr(a.getViewportRoot(),a.root);this.handler=new Xe(i,a,s,a.root),this.animation=new gr({stage:{update:function(){return r._flush(!0)}}}),this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Zi(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=(new Date).getTime();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=(new Date).getTime();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.animation.start(),this._stillFrameAccum=0},t.prototype.addHover=function(t){},t.prototype.removeHover=function(t){},t.prototype.clearHover=function(){},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Ui&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,qi(this.id)},t}();function Ji(t,e){var n=new Ki(z(),t,e);return Yi[n.id]=n,n}function Qi(t){t.dispose()}function to(){for(var t in Yi)Yi.hasOwnProperty(t)&&Yi[t].dispose();Yi={}}function eo(t){return Yi[t]}function no(t,e){$i[t]=e}var ro="5.1.1",io=1e-4,oo=20;function ao(t){return t.replace(/^\s+|\s+$/g,"")}function so(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 lo(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return"string"===typeof t?ao(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function uo(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),oo),t=(+t).toFixed(e),n?t:+t}function co(t){return t.sort((function(t,e){return t-e})),t}function ho(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 fo(t)}function fo(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)}function po(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 go(t,e,n){if(!t[e])return 0;var r=K(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;var i=Math.pow(10,n),o=Z(t,(function(t){return(isNaN(t)?0:t)/r*i*100})),a=100*i,s=Z(o,(function(t){return Math.floor(t)})),l=K(s,(function(t,e){return t+e}),0),u=Z(o,(function(t,e){return t-s[e]}));while(l<a){for(var c=Number.NEGATIVE_INFINITY,h=null,f=0,p=u.length;f<p;++f)u[f]>c&&(c=u[f],h=f);++s[h],u[h]=0,++l}return s[e]/i}function vo(t,e){var n=Math.max(ho(t),ho(e)),r=t+e;return n>oo?r:uo(r,n)}var yo=9007199254740991;function mo(t){var e=2*Math.PI;return(t%e+e)%e}function _o(t){return t>-io&&t<io}var xo=/^(?:(\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 bo(t){if(t instanceof Date)return t;if("string"===typeof t){var e=xo.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]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))}function wo(t){return Math.pow(10,So(t))}function So(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 Mo(t,e){var n,r=So(t),i=Math.pow(10,r),o=t/i;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function Co(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 To(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 Io(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!==typeof t||t.indexOf("x")<=0)?e:NaN}function Ao(t){return!isNaN(Io(t))}function Do(){return Math.round(9*Math.random())}function ko(t,e){return 0===e?t:ko(e,t%e)}function Lo(t,e){return null==t?e:null==e?t:t*e/ko(t,e)}var Oo="series\0",Po="\0_ec_\0";function Eo(t){return t instanceof Array?t:null==t?[]:[t]}function Ro(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 No=["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 zo(t){return!ut(t)||it(t)||t instanceof Date?t:t.value}function Bo(t){return ut(t)&&!(t instanceof Array)}function Vo(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=At();q(e,(function(t,n){ut(t)||(e[n]=null)}));var s=Fo(t,a,n);return(r||i)&&Go(s,t,a,e),r&&jo(s,e),r||i?Ho(s,e,i):o&&Wo(s,e),Uo(s),s}function Fo(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||Zo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Go(t,e,n,r){q(r,(function(i,o){if(i&&null!=i.id){var a=$o(i.id),s=n.get(a);if(null!=s){var l=t[s];wt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}}))}function jo(t,e){q(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)&&!Zo(n)&&!Zo(o)&&Xo("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}function Ho(t,e,n){q(e,(function(e){if(e){var r,i=0;while((r=t[i])&&(r.newOption||Zo(r.existing)||r.existing&&null!=e.id&&!Xo("id",e,r.existing)))i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}function Wo(t,e){q(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function Uo(t){var e=At();q(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),q(t,(function(t){var n=t.newOption;wt(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),q(t,(function(t,n){var r=t.existing,i=t.newOption,o=t.keyInfo;if(ut(i)){if(o.name=null!=i.name?$o(i.name):r?r.name:Oo+n,r)o.id=$o(r.id);else if(null!=i.id)o.id=$o(i.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}}))}function Xo(t,e,n){var r=Yo(e[t],null),i=Yo(n[t],null);return null!=r&&null!=i&&r===i}function $o(t){return Yo(t,"")}function Yo(t,e){if(null==t)return e;var n=typeof t;return"string"===n?t:"number"===n||st(t)?t+"":e}function qo(t){var e=t.name;return!(!e||!e.indexOf(Oo))}function Zo(t){return t&&null!=t.id&&0===$o(t.id).indexOf(Po)}function Ko(t){return Po+t}function Jo(t,e,n){q(t,(function(t){var r=t.newOption;ut(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Qo(e,r,t.existing,n))}))}function Qo(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function ta(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=Yo(t[r].seriesId,null);if(null==o)return;for(var a=Eo(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}}function ea(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?it(e.dataIndex)?Z(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?it(e.name)?Z(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function na(){var t="__ec_inner_"+ra++;return function(e){return e[t]||(e[t]={})}}var ra=Do();function ia(t,e,n){var r=oa(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each((function(e,r){var i=la(t,r,e,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}function oa(t,e){var n;if(at(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=At(),o={},a=!1;return q(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&&U(e.includeMainTypes,s)<0)){a=a||!!s;var u=i.get(s)||i.set(s,{});u[l]=t}}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var aa={useDefault:!0,enableAll:!1,enableNone:!1},sa={useDefault:!1,enableAll:!0,enableNone:!0};function la(t,e,n,r){r=r||aa;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?(wt(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(wt(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 ua(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function ca(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function ha(t){return"auto"===t?S.domSupported?"html":"richText":t||"html"}function fa(t,e){var n=At(),r=[];return q(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function pa(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if("number"===typeof r){var a=Zn(n||0,r,i);return uo(a,o?Math.max(ho(n||0),ho(r)):e)}if("string"===typeof r)return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var f=t.getDimensionInfo(h);if("ordinal"===f.type)s[h]=(i<1&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,d=u[h];a=Zn(p,d,i);s[h]=uo(a,o?Math.max(ho(p),ho(d)):e)}}return s}var da=".",ga="___EC__COMPONENT__CONTAINER___",va="___EC__EXTENDED_CLASS___";function ya(t){var e={main:"",sub:""};if(t){var n=t.split(da);e.main=n[0]||"",e.sub=n[1]||""}return e}function ma(t){wt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function _a(t){return!(!t||!t[va])}function xa(t,e){t.$constructor=t,t.extend=function(t){var e=this;function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t.$constructor)t.$constructor.apply(this,arguments);else{if(ba(e)){var o=kt(n.prototype,new(e.bind.apply(e,m([void 0],r))));return o}e.apply(this,arguments)}}return n[va]=!0,j(n.prototype,t),n.extend=this.extend,n.superCall=Ca,n.superApply=Ta,X(n,this),n.superClass=e,n}}function ba(t){return"function"===typeof t&&/^class\s/.test(Function.prototype.toString.call(t))}function wa(t,e){t.extend=e.extend}var Sa=Math.round(10*Math.random());function Ma(t){var e=["__\0is_clz",Sa++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Ca(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 Ta(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Ia(t){var e={};function n(t){var n=e[t.main];return n&&n[ga]||(n=e[t.main]={},n[ga]=!0),n}t.registerClass=function(t){var r=t.type||t.prototype.type;if(r){ma(r),t.prototype.type=r;var i=ya(r);if(i.sub){if(i.sub!==ga){var o=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[ga]&&(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=ya(t),r=[],i=e[n.main];return i&&i[ga]?q(i,(function(t,e){e!==ga&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=ya(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return q(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=ya(t),r=e[n.main];return r&&r[ga]}}function Aa(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&&U(r,s)>=0||i&&U(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Da=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ka=Aa(Da),La=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return ka(this,t,e)},t}(),Oa=new bn(50);function Pa(t){if("string"===typeof t){var e=Oa.get(t);return e&&e.image}return t}function Ea(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Oa.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!Na(e)&&o.pending.push(a)):(e=new Image,e.onload=e.onerror=Ra,Oa.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Ra(){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 Na(t){return t&&t.width&&t.height}var za=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ba(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=Va(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Fa(o[a],i);return o.join("\n")}function Va(t,e,n,r){r=r||{};var i=j({},r);i.font=e,n=mt(n,"..."),i.maxIterations=mt(r.maxIterations,2);var o=i.minChar=mt(r.minChar,0);i.cnCharWidth=Mi("国",e);var a=i.ascCharWidth=Mi("a",e);i.placeholder=mt(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=Mi(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 Fa(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=Mi(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ga(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=Mi(t,r)}return""===t&&(t=e.placeholder),t}function Ga(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}function ja(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=Di(o),l=mt(e.lineHeight,s),u="truncate"===e.lineOverflow,c=e.width;n=null!=c&&"break"===r||"breakAll"===r?t?Ka(t,e.font,c,"breakAll"===r,0).lines:[]:t?t.split("\n"):[];var h=n.length*l,f=mt(e.height,h);if(h>f&&u){var p=Math.floor(f/l);n=n.slice(0,p)}var d=f,g=c;if(i&&(d+=i[0]+i[2],null!=g&&(g+=i[1]+i[3])),t&&a&&null!=g)for(var v=Va(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y<n.length;y++)n[y]=Fa(n[y],v);if(null==c){var m=0;for(y=0;y<n.length;y++)m=Math.max(Mi(n[y],o),m);c=m}return{lines:n,height:f,outerHeight:d,lineHeight:l,calculatedLineHeight:s,contentHeight:h,width:c}}var Ha=function(){function t(){}return t}(),Wa=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),Ua=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function Xa(t,e){var n=new Ua;if(null!=t&&(t+=""),!t)return n;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=za.lastIndex=0;while(null!=(r=za.exec(t))){var u=r.index;u>l&&$a(n,t.substring(l,u),e,s),$a(n,r[2],e,s,r[1]),l=za.lastIndex}l<t.length&&$a(n,t.substring(l,t.length),e,s);var c=[],h=0,f=0,p=e.padding,d="truncate"===a,g="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,h+=n,f=Math.max(f,e)}t:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],_=0,x=0,b=0;b<m.tokens.length;b++){var w=m.tokens[b],S=w.styleName&&e.rich[w.styleName]||{},M=w.textPadding=S.padding,C=M?M[1]+M[3]:0,T=w.font=S.font||e.font;w.contentHeight=Di(T);var I=mt(S.height,w.contentHeight);if(w.innerHeight=I,M&&(I+=M[0]+M[2]),w.height=I,w.lineHeight=_t(S.lineHeight,e.lineHeight,I),w.align=S&&S.align||e.align,w.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&h+w.lineHeight>o){b>0?(m.tokens=m.tokens.slice(0,b),v(m,x,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var A=S.width,D=null==A||"auto"===A;if("string"===typeof A&&"%"===A.charAt(A.length-1))w.percentWidth=A,c.push(w),w.contentWidth=Mi(w.text,T);else{if(D){var k=S.backgroundColor,L=k&&k.image;L&&(L=Pa(L),Na(L)&&(w.width=Math.max(w.width,L.width*I/L.height)))}var O=d&&null!=i?i-x:null;null!=O&&O<w.width?!D||O<C?(w.text="",w.width=w.contentWidth=0):(w.text=Ba(w.text,O-C,T,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=Mi(w.text,T)):w.contentWidth=Mi(w.text,T)}w.width+=C,x+=w.width,S&&(_=Math.max(_,w.lineHeight))}v(m,x,_)}n.outerWidth=n.width=mt(i,f),n.outerHeight=n.height=mt(o,h),n.contentHeight=h,n.contentWidth=f,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(y=0;y<c.length;y++){w=c[y];var P=w.percentWidth;w.width=parseInt(P,10)/100*n.width}return n}function $a(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 f=l.padding,p=f?f[1]+f[3]:0;if(null!=l.width&&"auto"!==l.width){var d=ki(l.width,r.width)+p;u.length>0&&d+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=d}else{var g=Ka(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 v=0;v<o.length;v++){var y=o[v],m=new Ha;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!s,"number"===typeof l.width?m.width=l.width:m.width=a?a[v]:Mi(y,c),v||h)u.push(new Wa([m]));else{var _=(u[u.length-1]||(u[0]=new Wa)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(y||!x||s)&&_.push(m)}}}function Ya(t){var e=t.charCodeAt(0);return e>=33&&e<=255}var qa=K(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Za(t){return!Ya(t)||!!qa[t]}function Ka(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var f=t.charAt(h);if("\n"!==f){var p=Mi(f,e),d=!r&&!Za(f);(o.length?c+p>n:i+c+p>n)?c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=f,u+=p,s="",c=u):(l&&(s+=l,c+=u,l="",u=0),o.push(s),a.push(c),s=f,c=p)):d?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(c+=p,d?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}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 Ja="__zr_style_"+Math.round(10*Math.random()),Qa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ts={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Qa[Ja]=!0;var es=["z","z2","invisible"],ns=["invisible"],rs=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype._init=function(e){for(var n=tt(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&&as(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){var a=this.parent;while(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),r=this.getBoundingRect();return r.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 _i(0,0,0,0)),e?_i.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 _i(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:j(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=on,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&on)},e.prototype.styleUpdated=function(){this.__dirty&=~on},e.prototype.createStyle=function(t){return kt(Qa,t)},e.prototype.useStyle=function(t){t[Ja]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Ja]},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,es)},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=tt(u),h=0;h<c.length;h++){var f=c[h];f in s&&(s[f]=s[f],this.style[f]=u[f])}var p=tt(s);for(h=0;h<p.length;h++){f=p[h];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var d=this.__inHover?ns:es;for(h=0;h<d.length;h++){f=d[h];n&&null!=n[f]?this[f]=n[f]:l&&null!=r[f]&&(this[f]=r[f])}},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 j(t,e),t},e.prototype.getAnimationStyleProps=function(){return ts},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=rn|on}(),e}(Hi),is=new _i(0,0,0,0),os=new _i(0,0,0,0);function as(t,e,n){return is.copy(t.getBoundingRect()),t.transform&&is.applyTransform(t.transform),os.width=e,os.height=n,!is.intersect(os)}var ss=rs,ls=Math.pow,us=Math.sqrt,cs=1e-8,hs=1e-4,fs=us(3),ps=1/3,ds=Rt(),gs=Rt(),vs=Rt();function ys(t){return t>-cs&&t<cs}function ms(t){return t>cs||t<-cs}function _s(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 xs(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function bs(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,f=l*l-3*s*u,p=0;if(ys(c)&&ys(h))if(ys(s))o[0]=0;else{var d=-l/s;d>=0&&d<=1&&(o[p++]=d)}else{var g=h*h-4*c*f;if(ys(g)){var v=h/c,y=(d=-s/a+v,-v/2);d>=0&&d<=1&&(o[p++]=d),y>=0&&y<=1&&(o[p++]=y)}else if(g>0){var m=us(g),_=c*s+1.5*a*(-h+m),x=c*s+1.5*a*(-h-m);_=_<0?-ls(-_,ps):ls(_,ps),x=x<0?-ls(-x,ps):ls(x,ps);d=(-s-(_+x))/(3*a);d>=0&&d<=1&&(o[p++]=d)}else{var b=(2*c*s-3*a*h)/(2*us(c*c*c)),w=Math.acos(b)/3,S=us(c),M=Math.cos(w),C=(d=(-s-2*S*M)/(3*a),y=(-s+S*(M+fs*Math.sin(w)))/(3*a),(-s+S*(M-fs*Math.sin(w)))/(3*a));d>=0&&d<=1&&(o[p++]=d),y>=0&&y<=1&&(o[p++]=y),C>=0&&C<=1&&(o[p++]=C)}}return p}function ws(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(ys(a)){if(ms(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(ys(c))i[0]=-o/(2*a);else if(c>0){var h=us(c),f=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Ss(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 Ms(t,e,n,r,i,o,a,s,l,u,c){var h,f,p,d,g,v=.005,y=1/0;ds[0]=l,ds[1]=u;for(var m=0;m<1;m+=.05)gs[0]=_s(t,n,i,a,m),gs[1]=_s(e,r,o,s,m),d=te(ds,gs),d<y&&(h=m,y=d);y=1/0;for(var _=0;_<32;_++){if(v<hs)break;f=h-v,p=h+v,gs[0]=_s(t,n,i,a,f),gs[1]=_s(e,r,o,s,f),d=te(gs,ds),f>=0&&d<y?(h=f,y=d):(vs[0]=_s(t,n,i,a,p),vs[1]=_s(e,r,o,s,p),g=te(vs,ds),p<=1&&g<y?(h=p,y=g):v*=.5)}return c&&(c[0]=_s(t,n,i,a,h),c[1]=_s(e,r,o,s,h)),us(y)}function Cs(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,f=1/l,p=1;p<=l;p++){var d=p*f,g=_s(t,n,i,a,d),v=_s(e,r,o,s,d),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Ts(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function Is(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function As(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(ys(o)){if(ms(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(ys(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=us(c),f=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Ds(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function ks(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 Ls(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;ds[0]=a,ds[1]=s;for(var f=0;f<1;f+=.05){gs[0]=Ts(t,n,i,f),gs[1]=Ts(e,r,o,f);var p=te(ds,gs);p<h&&(u=f,h=p)}h=1/0;for(var d=0;d<32;d++){if(c<hs)break;var g=u-c,v=u+c;gs[0]=Ts(t,n,i,g),gs[1]=Ts(e,r,o,g);p=te(gs,ds);if(g>=0&&p<h)u=g,h=p;else{vs[0]=Ts(t,n,i,v),vs[1]=Ts(e,r,o,v);var y=te(vs,ds);v<=1&&y<h?(u=v,h=y):c*=.5}}return l&&(l[0]=Ts(t,n,i,u),l[1]=Ts(e,r,o,u)),us(h)}function Os(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var f=h*c,p=Ts(t,n,i,f),d=Ts(e,r,o,f),g=p-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=p,l=d}return u}var Ps=Math.min,Es=Math.max,Rs=Math.sin,Ns=Math.cos,zs=2*Math.PI,Bs=Rt(),Vs=Rt(),Fs=Rt();function Gs(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=Ps(i,r[0]),o=Es(o,r[0]),a=Ps(a,r[1]),s=Es(s,r[1]);e[0]=i,e[1]=a,n[0]=o,n[1]=s}}function js(t,e,n,r,i,o){i[0]=Ps(t,n),i[1]=Ps(e,r),o[0]=Es(t,n),o[1]=Es(e,r)}var Hs=[],Ws=[];function Us(t,e,n,r,i,o,a,s,l,u){var c=ws,h=_s,f=c(t,n,i,a,Hs);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<f;p++){var d=h(t,n,i,a,Hs[p]);l[0]=Ps(d,l[0]),u[0]=Es(d,u[0])}f=c(e,r,o,s,Ws);for(p=0;p<f;p++){var g=h(e,r,o,s,Ws[p]);l[1]=Ps(g,l[1]),u[1]=Es(g,u[1])}l[0]=Ps(t,l[0]),u[0]=Es(t,u[0]),l[0]=Ps(a,l[0]),u[0]=Es(a,u[0]),l[1]=Ps(e,l[1]),u[1]=Es(e,u[1]),l[1]=Ps(s,l[1]),u[1]=Es(s,u[1])}function Xs(t,e,n,r,i,o,a,s){var l=Ds,u=Ts,c=Es(Ps(l(t,n,i),1),0),h=Es(Ps(l(e,r,o),1),0),f=u(t,n,i,c),p=u(e,r,o,h);a[0]=Ps(t,i,f),a[1]=Ps(e,o,p),s[0]=Es(t,i,f),s[1]=Es(e,o,p)}function $s(t,e,n,r,i,o,a,s,l){var u=ie,c=oe,h=Math.abs(i-o);if(h%zs<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(Bs[0]=Ns(i)*n+t,Bs[1]=Rs(i)*r+e,Vs[0]=Ns(o)*n+t,Vs[1]=Rs(o)*r+e,u(s,Bs,Vs),c(l,Bs,Vs),i%=zs,i<0&&(i+=zs),o%=zs,o<0&&(o+=zs),i>o&&!a?o+=zs:i<o&&a&&(i+=zs),a){var f=o;o=i,i=f}for(var p=0;p<o;p+=Math.PI/2)p>i&&(Fs[0]=Ns(p)*n+t,Fs[1]=Rs(p)*r+e,u(s,Fs,s),c(l,Fs,l))}var Ys={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qs=[],Zs=[],Ks=[],Js=[],Qs=[],tl=[],el=Math.min,nl=Math.max,rl=Math.cos,il=Math.sin,ol=Math.sqrt,al=Math.abs,sl=Math.PI,ll=2*sl,ul="undefined"!==typeof Float32Array,cl=[];function hl(t){var e=Math.round(t/sl*1e8)/1e8;return e%2*sl}function fl(t,e){var n=hl(t[0]);n<0&&(n+=ll);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=ll?i=n+ll:e&&n-i>=ll?i=n-ll:!e&&n>i?i=n+(ll-hl(n-i)):e&&n<i&&(i=n-(ll-hl(i-n))),t[0]=n,t[1]=i}var pl=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=al(n/zr/t)||0,this._uy=al(n/zr/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._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ys.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=al(t-this._xi),r=al(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Ys.L,t,e),this._ctx&&i&&(this._needsDash?this._dashedLineTo(t,e):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.addData(Ys.C,t,e,n,r,i,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,r,i,o):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.addData(Ys.Q,t,e,n,r),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,r):this._ctx.quadraticCurveTo(t,e,n,r)),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){cl[0]=r,cl[1]=i,fl(cl,o),r=cl[0],i=cl[1];var a=i-r;return this.addData(Ys.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=rl(i)*n+t,this._yi=il(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._ctx&&this._ctx.rect(t,e,n,r),this.addData(Ys.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ys.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),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.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},t.prototype.setLineDashOffset=function(t){return this._dashOffset=t,this},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ul||(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();ul&&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._dashedLineTo=function(t,e){var n,r,i=this._dashSum,o=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,c=t-l,h=e-u,f=ol(c*c+h*h),p=l,d=u,g=o.length;c/=f,h/=f,s<0&&(s=i+s),s%=i,p-=s*c,d-=s*h;while(c>0&&p<=t||c<0&&p>=t||0===c&&(h>0&&d<=e||h<0&&d>=e))r=this._dashIdx,n=o[r],p+=c*n,d+=h*n,this._dashIdx=(r+1)%g,c>0&&p<l||c<0&&p>l||h>0&&d<u||h<0&&d>u||a[r%2?"moveTo":"lineTo"](c>=0?el(p,t):nl(p,t),h>=0?el(d,e):nl(d,e));c=p-t,h=d-e,this._dashOffset=-ol(c*c+h*h)},t.prototype._dashedBezierTo=function(t,e,n,r,i,o){var a,s,l,u,c,h=this._ctx,f=this._dashSum,p=this._dashOffset,d=this._lineDash,g=this._xi,v=this._yi,y=0,m=this._dashIdx,_=d.length,x=0;for(p<0&&(p=f+p),p%=f,a=0;a<1;a+=.1)s=_s(g,t,n,i,a+.1)-_s(g,t,n,i,a),l=_s(v,e,r,o,a+.1)-_s(v,e,r,o,a),y+=ol(s*s+l*l);for(;m<_;m++)if(x+=d[m],x>p)break;a=(x-p)/y;while(a<=1)u=_s(g,t,n,i,a),c=_s(v,e,r,o,a),m%2?h.moveTo(u,c):h.lineTo(u,c),a+=d[m]/y,m=(m+1)%_;m%2!==0&&h.lineTo(i,o),s=i-u,l=o-c,this._dashOffset=-ol(s*s+l*l)},t.prototype._dashedQuadraticTo=function(t,e,n,r){var i=n,o=r;n=(n+2*t)/3,r=(r+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,r,i,o)},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ul&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ks[0]=Ks[1]=Qs[0]=Qs[1]=Number.MAX_VALUE,Js[0]=Js[1]=tl[0]=tl[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&&(n=e[t],r=e[t+1],i=n,o=r),a){case Ys.M:n=i=e[t++],r=o=e[t++],Qs[0]=i,Qs[1]=o,tl[0]=i,tl[1]=o;break;case Ys.L:js(n,r,e[t],e[t+1],Qs,tl),n=e[t++],r=e[t++];break;case Ys.C:Us(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Qs,tl),n=e[t++],r=e[t++];break;case Ys.Q:Xs(n,r,e[t++],e[t++],e[t],e[t+1],Qs,tl),n=e[t++],r=e[t++];break;case Ys.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],f=e[t++],p=e[t++]+f;t+=1;var d=!e[t++];s&&(i=rl(f)*c+l,o=il(f)*h+u),$s(l,u,c,h,f,p,d,Qs,tl),n=rl(p)*c+l,r=il(p)*h+u;break;case Ys.R:i=n=e[t++],o=r=e[t++];var g=e[t++],v=e[t++];js(i,o,i+g,o+v,Qs,tl);break;case Ys.Z:n=i,r=o;break}ie(Ks,Ks,Qs),oe(Js,Js,tl)}return 0===t&&(Ks[0]=Ks[1]=Js[0]=Js[1]=0),new _i(Ks[0],Ks[1],Js[0]-Ks[0],Js[1]-Ks[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 f=t[h++],p=1===h;p&&(i=t[h],o=t[h+1],a=i,s=o);var d=-1;switch(f){case Ys.M:i=a=t[h++],o=s=t[h++];break;case Ys.L:var g=t[h++],v=t[h++],y=g-i,m=v-o;(al(y)>n||al(m)>r||h===e-1)&&(d=Math.sqrt(y*y+m*m),i=g,o=v);break;case Ys.C:var _=t[h++],x=t[h++],b=(g=t[h++],v=t[h++],t[h++]),w=t[h++];d=Cs(i,o,_,x,g,v,b,w,10),i=b,o=w;break;case Ys.Q:_=t[h++],x=t[h++],g=t[h++],v=t[h++];d=Os(i,o,_,x,g,v,10),i=g,o=v;break;case Ys.A:var S=t[h++],M=t[h++],C=t[h++],T=t[h++],I=t[h++],A=t[h++],D=A+I;h+=1;t[h++];p&&(a=rl(I)*C+S,s=il(I)*T+M),d=nl(C,T)*el(ll,Math.abs(A)),i=rl(D)*C+S,o=il(D)*T+M;break;case Ys.R:a=i=t[h++],s=o=t[h++];var k=t[h++],L=t[h++];d=2*k+2*L;break;case Ys.Z:y=a-i,m=s-o;d=Math.sqrt(y*y+m*m),i=a,o=s;break}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,f,p=this.data,d=this._ux,g=this._uy,v=this._len,y=e<1,m=0,_=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var b=0;b<v;){var w=p[b++],S=1===b;switch(S&&(i=p[b],o=p[b+1],n=i,r=o),w){case Ys.M:x>0&&(t.lineTo(h,f),x=0),n=i=p[b++],r=o=p[b++],t.moveTo(i,o);break;case Ys.L:a=p[b++],s=p[b++];var M=al(a-i),C=al(s-o);if(M>d||C>g){if(y){var T=l[_++];if(m+T>c){var I=(c-m)/T;t.lineTo(i*(1-I)+a*I,o*(1-I)+s*I);break t}m+=T}t.lineTo(a,s),i=a,o=s,x=0}else{var A=M*M+C*C;A>x&&(h=a,f=s,x=A)}break;case Ys.C:var D=p[b++],k=p[b++],L=p[b++],O=p[b++],P=p[b++],E=p[b++];if(y){T=l[_++];if(m+T>c){I=(c-m)/T;Ss(i,D,L,P,I,qs),Ss(o,k,O,E,I,Zs),t.bezierCurveTo(qs[1],Zs[1],qs[2],Zs[2],qs[3],Zs[3]);break t}m+=T}t.bezierCurveTo(D,k,L,O,P,E),i=P,o=E;break;case Ys.Q:D=p[b++],k=p[b++],L=p[b++],O=p[b++];if(y){T=l[_++];if(m+T>c){I=(c-m)/T;ks(i,D,L,I,qs),ks(o,k,O,I,Zs),t.quadraticCurveTo(qs[1],Zs[1],qs[2],Zs[2]);break t}m+=T}t.quadraticCurveTo(D,k,L,O),i=L,o=O;break;case Ys.A:var R=p[b++],N=p[b++],z=p[b++],B=p[b++],V=p[b++],F=p[b++],G=p[b++],j=!p[b++],H=z>B?z:B,W=al(z-B)>.001,U=V+F,X=!1;if(y){T=l[_++];m+T>c&&(U=V+F*(c-m)/T,X=!0),m+=T}if(W&&t.ellipse?t.ellipse(R,N,z,B,G,V,U,j):t.arc(R,N,H,V,U,j),X)break t;S&&(n=rl(V)*z+R,r=il(V)*B+N),i=rl(U)*z+R,o=il(U)*B+N;break;case Ys.R:n=i=p[b],r=o=p[b+1],a=p[b++],s=p[b++];var $=p[b++],Y=p[b++];if(y){T=l[_++];if(m+T>c){var q=c-m;t.moveTo(a,s),t.lineTo(a+el(q,$),s),q-=$,q>0&&t.lineTo(a+$,s+el(q,Y)),q-=Y,q>0&&t.lineTo(a+nl($-q,0),s+Y),q-=$,q>0&&t.lineTo(a,s+nl(Y-q,0));break t}m+=T}t.rect(a,s,$,Y);break;case Ys.Z:if(x>0&&(t.lineTo(h,f),x=0),y){T=l[_++];if(m+T>c){I=(c-m)/T;t.lineTo(i*(1-I)+n*I,o*(1-I)+r*I);break t}m+=T}t.closePath(),i=n,o=r}}},t.CMD=Ys,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),dl=pl;function gl(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;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;l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function vl(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(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)return!1;var f=Ms(t,e,n,r,i,o,a,s,u,c,null);return f<=h/2}function yl(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(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)return!1;var c=Ls(t,e,n,r,i,o,s,l,null);return c<=u/2}var ml=2*Math.PI;function _l(t){return t%=ml,t<0&&(t+=ml),t}var xl=2*Math.PI;function bl(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)%xl<1e-4)return!0;if(o){var h=r;r=_l(i),i=_l(h)}else r=_l(r),i=_l(i);r>i&&(i+=xl);var f=Math.atan2(l,s);return f<0&&(f+=xl),f>=r&&f<=i||f+xl>=r&&f+xl<=i}function wl(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 Sl=dl.CMD,Ml=2*Math.PI,Cl=1e-4;function Tl(t,e){return Math.abs(t-e)<Cl}var Il=[-1,-1,-1],Al=[-1,-1];function Dl(){var t=Al[0];Al[0]=Al[1],Al[1]=t}function kl(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=bs(e,r,o,s,u,Il);if(0===c)return 0;for(var h=0,f=-1,p=void 0,d=void 0,g=0;g<c;g++){var v=Il[g],y=0===v||1===v?.5:1,m=_s(t,n,i,a,v);m<l||(f<0&&(f=ws(e,r,o,s,Al),Al[1]<Al[0]&&f>1&&Dl(),p=_s(e,r,o,s,Al[0]),f>1&&(d=_s(e,r,o,s,Al[1]))),2===f?v<Al[0]?h+=p<e?y:-y:v<Al[1]?h+=d<p?y:-y:h+=s<d?y:-y:v<Al[0]?h+=p<e?y:-y:h+=s<p?y:-y)}return h}function Ll(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=As(e,r,o,s,Il);if(0===l)return 0;var u=Ds(e,r,o);if(u>=0&&u<=1){for(var c=0,h=Ts(e,r,o,u),f=0;f<l;f++){var p=0===Il[f]||1===Il[f]?.5:1,d=Ts(t,n,i,Il[f]);d<a||(Il[f]<u?c+=h<e?p:-p:c+=o<h?p:-p)}return c}p=0===Il[0]||1===Il[0]?.5:1,d=Ts(t,n,i,Il[0]);return d<a?0:o<e?p:-p}function Ol(t,e,n,r,i,o,a,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Il[0]=-l,Il[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Ml-1e-4){r=0,i=Ml;var c=o?1:-1;return a>=Il[0]+t&&a<=Il[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Ml,i+=Ml);for(var f=0,p=0;p<2;p++){var d=Il[p];if(d+t>a){var g=Math.atan2(s,d);c=o?1:-1;g<0&&(g=Ml+g),(g>=r&&g<=i||g+Ml>=r&&g+Ml<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),f+=c)}}return f}function Pl(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,f=0,p=0,d=0;d<l;){var g=s[d++],v=1===d;switch(g===Sl.M&&d>1&&(n||(u+=wl(c,h,f,p,r,i))),v&&(c=s[d],h=s[d+1],f=c,p=h),g){case Sl.M:f=s[d++],p=s[d++],c=f,h=p;break;case Sl.L:if(n){if(gl(c,h,s[d],s[d+1],e,r,i))return!0}else u+=wl(c,h,s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Sl.C:if(n){if(vl(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=kl(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Sl.Q:if(n){if(yl(c,h,s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=Ll(c,h,s[d++],s[d++],s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Sl.A:var y=s[d++],m=s[d++],_=s[d++],x=s[d++],b=s[d++],w=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(b)*_+y,a=Math.sin(b)*x+m,v?(f=o,p=a):u+=wl(c,h,o,a,r,i);var M=(r-y)*x/_+y;if(n){if(bl(y,m,x,b,b+w,S,e,M,i))return!0}else u+=Ol(y,m,x,b,b+w,S,M,i);c=Math.cos(b+w)*_+y,h=Math.sin(b+w)*x+m;break;case Sl.R:f=c=s[d++],p=h=s[d++];var C=s[d++],T=s[d++];if(o=f+C,a=p+T,n){if(gl(f,p,o,p,e,r,i)||gl(o,p,o,a,e,r,i)||gl(o,a,f,a,e,r,i)||gl(f,a,f,p,e,r,i))return!0}else u+=wl(o,p,o,a,r,i),u+=wl(f,a,f,p,r,i);break;case Sl.Z:if(n){if(gl(c,h,f,p,e,r,i))return!0}else u+=wl(c,h,f,p,r,i);c=f,h=p;break}}return n||Tl(h,p)||(u+=wl(c,h,f,p,r,i)||0),0!==u}function El(t,e,n){return Pl(t,0,!1,e,n)}function Rl(t,e,n,r){return Pl(t,e,!0,n,r)}var Nl=H({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Qa),zl={style:H({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ts.style)},Bl=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],Vl=function(t){function e(e){return t.call(this,e)||this}return Et(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<Bl.length;++s)i[Bl[s]]=this[Bl[s]];i.__dirty|=rn}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=tt(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?j(this.style,a):this.useStyle(a):"shape"===o?j(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(at(t)){var e=$n(t,0);return e>.5?Vr:e>.2?Gr:Fr}if(t)return Fr}return Vr},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(at(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=$n(t,0)<Br;if(r===i)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~an},e.prototype.createPathProxy=function(){this.path=new dl(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&an)&&(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._rectWithStroke||(this._rectWithStroke=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)),Rl(o,a/s,t,e)))return!0}if(this.hasFill())return El(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=an,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:j(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&an)},e.prototype.createStyle=function(t){return kt(Nl,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=j({},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=j({},r.shape),j(s,n.shape)):(s=j({},i?this.shape:r.shape),j(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=j({},this.shape);for(var u={},c=tt(s),h=0;h<c.length;h++){var f=c[h];"object"===typeof s[f]?this.shape[f]=s[f]:u[f]=s[f]}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 zl},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 Et(n,e),n.prototype.getDefaultStyle=function(){return V(t.style)},n.prototype.getDefaultShape=function(){return V(t.shape)},n}(e);for(var r in t)"function"===typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=rn|on|an}(),e}(ss),Fl=Vl,Gl=H({strokeFirst:!0,font:bi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Nl),jl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Et(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return kt(Gl,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=Ti(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=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(ss);jl.prototype.type="tspan";var Hl=jl,Wl=H({x:0,y:0},Qa),Ul={style:H({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ts.style)};function Xl(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var $l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Et(e,t),e.prototype.createStyle=function(t){return kt(Wl,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=Xl(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Ul},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new _i(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ss);$l.prototype.type="image";var Yl=$l;function ql(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&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,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)}var Zl=Math.round;function Kl(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?(Zl(2*r)===Zl(2*i)&&(t.x1=t.x2=Ql(r,s,!0)),Zl(2*o)===Zl(2*a)&&(t.y1=t.y2=Ql(o,s,!0)),t):t}}function Jl(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=Ql(r,s,!0),t.y=Ql(i,s,!0),t.width=Math.max(Ql(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ql(i+a,s,!1)-t.y,0===a?0:1),t):t}}function Ql(t,e,n){if(!e)return t;var r=Zl(2*t);return(r+Zl(e))%2===0?r/2:(r+(n?1:-1))/2}var tu=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),eu={},nu=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new tu},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Jl(eu,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?ql(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Fl);nu.prototype.type="rect";var ru=nu,iu={fill:"#000"},ou=2,au={style:H({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},ts.style)},su=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=iu,n.attr(e),n}return Et(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){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}var r=this.attachedTransform;if(r){r.updateTransform();var i=r.transform;i?(this.transform=this.transform||[],Wr(this.transform,i)):this.transform=null}else t.prototype.update.call(this)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),this.attachedTransform?this.attachedTransform.getComputedTransform():t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,cu(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new _i(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(),r.union(t)):(r=r||a.clone(),r.union(a))}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||iu},e.prototype.setTextContent=function(t){throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return j(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=tt(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},j(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return au},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||bi,n=t.padding,r=gu(t),i=ja(r,t),o=vu(t),a=!!t.backgroundColor,s=i.outerHeight,l=i.lines,u=i.lineHeight,c=this._defaultStyle,h=t.x||0,f=t.y||0,p=t.align||c.align||"left",d=t.verticalAlign||c.verticalAlign||"top",g=h,v=Ai(f,i.contentHeight,d);if(o||n){var y=i.width;n&&(y+=n[1]+n[3]);var m=Ii(h,y,p),_=Ai(f,s,d);o&&this._renderBackground(t,t,m,_,y,s)}v+=u/2,n&&(g=du(h,p,n),"top"===d?v+=n[0]:"bottom"===d&&(v-=n[2]));for(var x=0,b=!1,w=(pu("fill"in t?t.fill:(b=!0,c.fill))),S=(fu("stroke"in t?t.stroke:a||c.autoStroke&&!b?null:(x=ou,c.stroke))),M=t.textShadowBlur>0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),T=i.calculatedLineHeight,I=0;I<l.length;I++){var A=this._getOrCreateChild(Hl),D=A.createStyle();A.useStyle(D),D.text=l[I],D.x=g,D.y=v,p&&(D.textAlign=p),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,M&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),S&&(D.stroke=S,D.lineWidth=t.lineWidth||x,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),w&&(D.fill=w),D.font=e,v+=u,C&&A.setBoundingRect(new _i(Ii(D.x,t.width,D.textAlign),Ai(D.y,T,D.textBaseline),t.width,T))}},e.prototype._updateRichTexts=function(){var t=this.style,e=gu(t),n=Xa(e,t),r=n.width,i=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign,f=Ii(s,i,c),p=Ai(l,o,h),d=f,g=p;a&&(d+=a[3],g+=a[0]);var v=d+r;vu(t)&&this._renderBackground(t,t,f,p,i,o);for(var y=!!t.backgroundColor,m=0;m<n.lines.length;m++){var _=n.lines[m],x=_.tokens,b=x.length,w=_.lineHeight,S=_.width,M=0,C=d,T=v,I=b-1,A=void 0;while(M<b&&(A=x[M],!A.align||"left"===A.align))this._placeToken(A,t,w,g,C,"left",y),S-=A.width,C+=A.width,M++;while(I>=0&&(A=x[I],"right"===A.align))this._placeToken(A,t,w,g,T,"right",y),S-=A.width,T-=A.width,I--;C+=(r-(C-d)-(v-T)-S)/2;while(M<=I)A=x[M],this._placeToken(A,t,w,g,C+A.width/2,"center",y),C+=A.width,M++;g+=w}},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);var c=!t.isLineHolder&&vu(s);c&&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 h=!!s.backgroundColor,f=t.textPadding;f&&(i=du(i,o,f),u-=t.height/2-f[0]-t.innerHeight/2);var p=this._getOrCreateChild(Hl),d=p.createStyle();p.useStyle(d);var g=this._defaultStyle,v=!1,y=0,m=fu("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),_=fu("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(y=ou,g.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||bi,d.opacity=_t(s.opacity,e.opacity,1),_&&(d.lineWidth=_t(s.lineWidth,e.lineWidth,y),d.lineDash=mt(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=_),m&&(d.fill=m);var b=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new _i(Ii(d.x,b,d.textAlign),Ai(d.y,w,d.textBaseline),b,w))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,f=l&&!h,p=t.borderRadius,d=this;if(f||u&&c){a=this._getOrCreateChild(ru),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=p,a.dirtyShape()}if(f){var v=a.style;v.fill=l||null,v.fillOpacity=mt(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(Yl),s.onload=function(){d.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=mt(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.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=_t(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var n="";n="string"!==typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,e=[t.fontStyle,t.fontWeight,n,t.fontFamily||"sans-serif"].join(" ")}return e&&St(e)||t.textFont||t.font},e}(ss),lu={left:!0,right:1,center:1},uu={top:1,bottom:1,middle:1};function cu(t){return hu(t),q(t.rich,hu),t}function hu(t){if(t){t.font=su.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||lu[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||uu[n]?n:"top";var r=t.padding;r&&(t.padding=bt(t.padding))}}function fu(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function pu(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function du(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function gu(t){var e=t.text;return null!=e&&(e+=""),e}function vu(t){return!!(t.backgroundColor||t.borderWidth&&t.borderColor)}var yu=su,mu=na(),_u=1,xu={},bu=na(),wu=0,Su=1,Mu=2,Cu=["emphasis","blur","select"],Tu=["normal","emphasis","blur","select"],Iu=10,Au=9,Du="highlight",ku="downplay",Lu="select",Ou="unselect",Pu="toggleSelect";function Eu(t){return null!=t&&"none"!==t}var Ru=new bn(100);function Nu(t){if("string"!==typeof t)return t;var e=Ru.get(t);return e||(e=Bn(t,-.1),Ru.put(t,e)),e}function zu(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Bu(t){zu(t,"emphasis",Mu)}function Vu(t){t.hoverState===Mu&&zu(t,"normal",wu)}function Fu(t){zu(t,"blur",Su)}function Gu(t){t.hoverState===Su&&zu(t,"normal",wu)}function ju(t){t.selected=!0}function Hu(t){t.selected=!1}function Wu(t,e,n){e(t,n)}function Uu(t,e,n){Wu(t,e,n),t.isGroup&&t.traverse((function(t){Wu(t,e,n)}))}function Xu(t,e){switch(e){case"emphasis":t.hoverState=Mu;break;case"normal":t.hoverState=wu;break;case"blur":t.hoverState=Su;break;case"select":t.selected=!0}}function $u(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.saveFinalToTarget(o,e)}return o}function Yu(t,e,n,r){var i=n&&U(n,"select")>=0,o=!1;if(t instanceof Fl){var a=bu(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Eu(s)||Eu(l)){r=r||{};var u=r.style||{};!Eu(u.fill)&&Eu(s)?(o=!0,r=j({},r),u=j({},u),u.fill=Nu(s)):!Eu(u.stroke)&&Eu(l)&&(o||(r=j({},r),u=j({},u)),u.stroke=Nu(l)),r.style=u}}if(r&&null==r.z2){o||(r=j({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:Iu)}return r}function qu(t,e,n){if(n&&null==n.z2){n=j({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:Au)}return n}function Zu(t,e,n){var r=U(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:$u(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=j({},n),a=j({opacity:r?i:.1*o.opacity},a),n.style=a),n}function Ku(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return Yu(this,t,e,n);if("blur"===t)return Zu(this,t,n);if("select"===t)return qu(this,t,n)}return n}function Ju(t){t.stateProxy=Ku;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Ku),n&&(n.stateProxy=Ku)}function Qu(t,e){!sc(t,e)&&!t.__highByOuter&&Uu(t,Bu)}function tc(t,e){!sc(t,e)&&!t.__highByOuter&&Uu(t,Vu)}function ec(t,e){t.__highByOuter|=1<<(e||0),Uu(t,Bu)}function nc(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Uu(t,Vu)}function rc(t){Uu(t,Fu)}function ic(t){Uu(t,Gu)}function oc(t){Uu(t,ju)}function ac(t){Uu(t,Hu)}function sc(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function lc(t){var e=t.getModel();e.eachComponent((function(e,n){var r="series"===e?t.getViewOfSeriesModel(n):t.getViewOfComponentModel(n);r.group.traverse((function(t){Gu(t)}))}))}function uc(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&&ic(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;u&&u.master&&(u=u.master);var c=u&&s?u===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!c||"series"===e&&i)){var h=r.getViewOfSeriesModel(t);if(h.group.traverse((function(t){Fu(t)})),Y(e))o(t.getData(),e);else if(ut(e))for(var f=tt(e),p=0;p<f.length;p++)o(t.getData(f[p]),e[f[p]]);l.push(t)}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.blurSeries&&n.blurSeries(l,i)}}))}}function cc(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){Fu(t)}))}}}function hc(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType),o=ea(i,e);o=(it(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a){var s=i.count(),l=0;while(!a&&l<s)a=i.getItemGraphicEl(l++)}if(a){var u=mu(a);uc(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&uc(r,c,h,n)}}function fc(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"===mu(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function pc(t,e,n){var r=mu(t),i=fc(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&cc(r.componentMainType,r.componentIndex,n),q(o,(function(t){return Qu(t,e)}))):(uc(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&cc(r.componentMainType,r.componentIndex,n),Qu(t,e))}function dc(t,e,n){lc(n);var r=mu(t),i=fc(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?q(i,(function(t){return tc(t,e)})):tc(t,e)}function gc(t,e,n){if(Ic(e)){var r=e.dataType,i=t.getData(r),o=ea(i,e);it(o)||(o=[o]),t[e.type===Pu?"toggleSelect":e.type===Lu?"select":"unselect"](o,r)}}function vc(t){var e=t.getAllData();q(e,(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?oc(e):ac(e)}))}))}function yc(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();q(n,(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 mc(t,e,n){Sc(t,!0),Uu(t,Ju),_c(t,e,n)}function _c(t,e,n){var r=mu(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var xc=["emphasis","blur","select"],bc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wc(t,e,n,r){n=n||"itemStyle";for(var i=0;i<xc.length;i++){var o=xc[i],a=e.getModel([o,n]),s=t.ensureState(o);s.style=r?r(a):a[bc[n]]()}}function Sc(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 Mc(t){return!(!t||!t.__highDownDispatcher)}function Cc(t,e,n){var r=mu(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function Tc(t){var e=xu[t];return null==e&&_u<=32&&(e=xu[t]=_u++),e}function Ic(t){var e=t.type;return e===Lu||e===Ou||e===Pu}function Ac(t){var e=t.type;return e===Du||e===ku}function Dc(t){var e=bu(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}var kc=dl.CMD,Lc=[[],[],[]],Oc=Math.sqrt,Pc=Math.atan2;function Ec(t,e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=kc.M,h=kc.C,f=kc.L,p=kc.R,d=kc.A,g=kc.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:r=1;break;case f:r=1;break;case h:r=3;break;case g:r=2;break;case d:var v=e[4],y=e[5],m=Oc(e[0]*e[0]+e[1]*e[1]),_=Oc(e[2]*e[2]+e[3]*e[3]),x=Pc(-e[1]/_,e[0]/m);l[i]*=m,l[i++]+=v,l[i]*=_,l[i++]+=y,l[i++]*=m,l[i++]*=_,l[i++]+=x,l[i++]+=x,i+=2,o=i;break;case p:s[0]=l[i++],s[1]=l[i++],re(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],re(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=Lc[a];b[0]=l[i++],b[1]=l[i++],re(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}var Rc=Math.sqrt,Nc=Math.sin,zc=Math.cos,Bc=Math.PI;function Vc(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Fc(t,e){return(t[0]*e[0]+t[1]*e[1])/(Vc(t)*Vc(e))}function Gc(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Fc(t,e))}function jc(t,e,n,r,i,o,a,s,l,u,c){var h=l*(Bc/180),f=zc(h)*(t-n)/2+Nc(h)*(e-r)/2,p=-1*Nc(h)*(t-n)/2+zc(h)*(e-r)/2,d=f*f/(a*a)+p*p/(s*s);d>1&&(a*=Rc(d),s*=Rc(d));var g=(i===o?-1:1)*Rc((a*a*(s*s)-a*a*(p*p)-s*s*(f*f))/(a*a*(p*p)+s*s*(f*f)))||0,v=g*a*p/s,y=g*-s*f/a,m=(t+n)/2+zc(h)*v-Nc(h)*y,_=(e+r)/2+Nc(h)*v+zc(h)*y,x=Gc([1,0],[(f-v)/a,(p-y)/s]),b=[(f-v)/a,(p-y)/s],w=[(-1*f-v)/a,(-1*p-y)/s],S=Gc(b,w);if(Fc(b,w)<=-1&&(S=Bc),Fc(b,w)>=1&&(S=0),S<0){var M=Math.round(S/Bc*1e6)/1e6;S=2*Bc+M%2*Bc}c.addData(u,m,_,a,s,x,S,h,o)}var Hc=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Wc=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Uc(t){var e=new dl;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=dl.CMD,l=t.match(Hc);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),f=void 0,p=c.match(Wc)||[],d=p.length,g=0;g<d;g++)p[g]=parseFloat(p[g]);var v=0;while(v<d){var y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=r,C=i,T=void 0,I=void 0;switch(h){case"l":r+=p[v++],i+=p[v++],f=s.L,e.addData(f,r,i);break;case"L":r=p[v++],i=p[v++],f=s.L,e.addData(f,r,i);break;case"m":r+=p[v++],i+=p[v++],f=s.M,e.addData(f,r,i),o=r,a=i,h="l";break;case"M":r=p[v++],i=p[v++],f=s.M,e.addData(f,r,i),o=r,a=i,h="L";break;case"h":r+=p[v++],f=s.L,e.addData(f,r,i);break;case"H":r=p[v++],f=s.L,e.addData(f,r,i);break;case"v":i+=p[v++],f=s.L,e.addData(f,r,i);break;case"V":i=p[v++],f=s.L,e.addData(f,r,i);break;case"C":f=s.C,e.addData(f,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),r=p[v-2],i=p[v-1];break;case"c":f=s.C,e.addData(f,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i),r+=p[v-2],i+=p[v-1];break;case"S":y=r,m=i,T=e.len(),I=e.data,n===s.C&&(y+=r-I[T-4],m+=i-I[T-3]),f=s.C,M=p[v++],C=p[v++],r=p[v++],i=p[v++],e.addData(f,y,m,M,C,r,i);break;case"s":y=r,m=i,T=e.len(),I=e.data,n===s.C&&(y+=r-I[T-4],m+=i-I[T-3]),f=s.C,M=r+p[v++],C=i+p[v++],r+=p[v++],i+=p[v++],e.addData(f,y,m,M,C,r,i);break;case"Q":M=p[v++],C=p[v++],r=p[v++],i=p[v++],f=s.Q,e.addData(f,M,C,r,i);break;case"q":M=p[v++]+r,C=p[v++]+i,r+=p[v++],i+=p[v++],f=s.Q,e.addData(f,M,C,r,i);break;case"T":y=r,m=i,T=e.len(),I=e.data,n===s.Q&&(y+=r-I[T-4],m+=i-I[T-3]),r=p[v++],i=p[v++],f=s.Q,e.addData(f,y,m,r,i);break;case"t":y=r,m=i,T=e.len(),I=e.data,n===s.Q&&(y+=r-I[T-4],m+=i-I[T-3]),r+=p[v++],i+=p[v++],f=s.Q,e.addData(f,y,m,r,i);break;case"A":_=p[v++],x=p[v++],b=p[v++],w=p[v++],S=p[v++],M=r,C=i,r=p[v++],i=p[v++],f=s.A,jc(M,C,r,i,w,S,_,x,b,f,e);break;case"a":_=p[v++],x=p[v++],b=p[v++],w=p[v++],S=p[v++],M=r,C=i,r+=p[v++],i+=p[v++],f=s.A,jc(M,C,r,i,w,S,_,x,b,f,e);break}}"z"!==h&&"Z"!==h||(f=s.Z,e.addData(f),r=o,i=a),n=f}return e.toStatic(),e}var Xc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Et(e,t),e.prototype.applyTransform=function(t){},e}(Fl);function $c(t){return null!=t.setData}function Yc(t,e){var n=Uc(t),r=j({},e);return r.buildPath=function(t){if($c(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){Ec(n,t),this.dirtyShape()},r}function qc(t,e){return new Xc(Yc(t,e))}function Zc(t,e){var n=Yc(t,e),r=function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Et(e,t),e}(Xc);return r}function Kc(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];o.path||o.createPathProxy(),o.shapeChanged()&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}var a=new Fl(e);return a.createPathProxy(),a.buildPath=function(t){if($c(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}var Jc=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Qc=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new Jc},e.prototype.buildPath=function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(Fl);Qc.prototype.type="circle";var th=Qc,eh=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),nh=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new eh},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}(Fl);nh.prototype.type="ellipse";var rh=nh,ih=Math.PI,oh=2*ih,ah=Math.sin,sh=Math.cos,lh=Math.acos,uh=Math.atan2,ch=Math.abs,hh=Math.sqrt,fh=Math.max,ph=Math.min,dh=1e-4;function gh(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,f=h*l-c*u;if(!(f*f<dh))return f=(c*(e-o)-h*(t-i))/f,[t+f*l,e+f*u]}function vh(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/hh(s*s+l*l),c=u*l,h=-u*s,f=t+c,p=e+h,d=n+c,g=r+h,v=(f+d)/2,y=(p+g)/2,m=d-f,_=g-p,x=m*m+_*_,b=i-o,w=f*g-d*p,S=(_<0?-1:1)*hh(fh(0,b*b*x-w*w)),M=(w*_-m*S)/x,C=(-w*m-_*S)/x,T=(w*_+m*S)/x,I=(-w*m+_*S)/x,A=M-v,D=C-y,k=T-v,L=I-y;return A*A+D*D>k*k+L*L&&(M=T,C=I),{cx:M,cy:C,x01:-c,y01:-h,x11:M*(i/b-1),y11:C*(i/b-1)}}function yh(t,e){var n=fh(e.r,0),r=fh(e.r0||0,0),i=n>0,o=r>0;if(i||o){if(i||(n=r,r=0),r>n){var a=n;n=r,r=a}var s,l=!!e.clockwise,u=e.startAngle,c=e.endAngle;if(u===c)s=0;else{var h=[u,c];fl(h,!l),s=ch(h[0]-h[1])}var f=e.cx,p=e.cy,d=e.cornerRadius||0,g=e.innerCornerRadius||0;if(n>dh)if(s>oh-dh)t.moveTo(f+n*sh(u),p+n*ah(u)),t.arc(f,p,n,u,c,!l),r>dh&&(t.moveTo(f+r*sh(c),p+r*ah(c)),t.arc(f,p,r,c,u,l));else{var v=ch(n-r)/2,y=ph(v,d),m=ph(v,g),_=m,x=y,b=n*sh(u),w=n*ah(u),S=r*sh(c),M=r*ah(c),C=void 0,T=void 0,I=void 0,A=void 0;if((y>dh||m>dh)&&(C=n*sh(c),T=n*ah(c),I=r*sh(u),A=r*ah(u),s<ih)){var D=gh(b,w,I,A,C,T,S,M);if(D){var k=b-D[0],L=w-D[1],O=C-D[0],P=T-D[1],E=1/ah(lh((k*O+L*P)/(hh(k*k+L*L)*hh(O*O+P*P)))/2),R=hh(D[0]*D[0]+D[1]*D[1]);_=ph(m,(r-R)/(E-1)),x=ph(y,(n-R)/(E+1))}}if(s>dh)if(x>dh){var N=vh(I,A,b,w,n,x,l),z=vh(C,T,S,M,n,x,l);t.moveTo(f+N.cx+N.x01,p+N.cy+N.y01),x<y?t.arc(f+N.cx,p+N.cy,x,uh(N.y01,N.x01),uh(z.y01,z.x01),!l):(t.arc(f+N.cx,p+N.cy,x,uh(N.y01,N.x01),uh(N.y11,N.x11),!l),t.arc(f,p,n,uh(N.cy+N.y11,N.cx+N.x11),uh(z.cy+z.y11,z.cx+z.x11),!l),t.arc(f+z.cx,p+z.cy,x,uh(z.y11,z.x11),uh(z.y01,z.x01),!l))}else t.moveTo(f+b,p+w),t.arc(f,p,n,u,c,!l);else t.moveTo(f+b,p+w);if(r>dh&&s>dh)if(_>dh){N=vh(S,M,C,T,r,-_,l),z=vh(b,w,I,A,r,-_,l);t.lineTo(f+N.cx+N.x01,p+N.cy+N.y01),_<m?t.arc(f+N.cx,p+N.cy,_,uh(N.y01,N.x01),uh(z.y01,z.x01),!l):(t.arc(f+N.cx,p+N.cy,_,uh(N.y01,N.x01),uh(N.y11,N.x11),!l),t.arc(f,p,r,uh(N.cy+N.y11,N.cx+N.x11),uh(z.cy+z.y11,z.cx+z.x11),l),t.arc(f+z.cx,p+z.cy,_,uh(z.y11,z.x11),uh(z.y01,z.x01),!l))}else t.lineTo(f+S,p+M),t.arc(f,p,r,c,u,l);else t.lineTo(f+S,p+M)}else t.moveTo(f,p);t.closePath()}}var mh=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0}return t}(),_h=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new mh},e.prototype.buildPath=function(t,e){yh(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Fl);_h.prototype.type="sector";var xh=_h,bh=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),wh=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new bh},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}(Fl);wh.prototype.type="ring";var Sh=wh;function Mh(t,e,n,r,i,o,a){var s=.5*(n-t),l=.5*(r-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*i+e}function Ch(t,e){for(var n=t.length,r=[],i=0,o=1;o<n;o++)i+=Kt(t[o-1],t[o]);var a=i/2;a=a<n?n:a;for(o=0;o<a;o++){var s=o/(a-1)*(e?n:n-1),l=Math.floor(s),u=s-l,c=void 0,h=t[l%n],f=void 0,p=void 0;e?(c=t[(l-1+n)%n],f=t[(l+1)%n],p=t[(l+2)%n]):(c=t[0===l?l:l-1],f=t[l>n-2?n-1:l+1],p=t[l>n-3?n-1:l+2]);var d=u*u,g=u*d;r.push([Mh(c[0],h[0],f[0],p[0],u,d,g),Mh(c[1],h[1],f[1],p[1],u,d,g)])}return r}function Th(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 f=0,p=t.length;f<p;f++)ie(a,a,t[f]),oe(s,s,t[f]);ie(a,a,r[0]),oe(s,s,r[1])}for(f=0,p=t.length;f<p;f++){var d=t[f];if(n)i=t[f?f-1:p-1],o=t[(f+1)%p];else{if(0===f||f===p-1){l.push(zt(t[f]));continue}i=t[f-1],o=t[f+1]}Gt(u,o,i),qt(u,u,e);var g=Kt(d,i),v=Kt(d,o),y=g+v;0!==y&&(g/=y,v/=y),qt(c,u,-g),qt(h,u,v);var m=Vt([],d,c),_=Vt([],d,h);r&&(oe(m,m,a),ie(m,m,s),oe(_,_,a),ie(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function Ih(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r&&"spline"!==r){var o=Th(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{"spline"===r&&(i=Ch(i,n)),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()}}var Ah=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Dh=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new Ah},e.prototype.buildPath=function(t,e){Ih(t,e,!0)},e}(Fl);Dh.prototype.type="polygon";var kh=Dh,Lh=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Oh=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Lh},e.prototype.buildPath=function(t,e){Ih(t,e,!1)},e}(Fl);Oh.prototype.type="polyline";var Ph=Oh,Eh={},Rh=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Nh=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Rh},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Kl(Eh,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}(Fl);Nh.prototype.type="line";var zh=Nh,Bh=[],Vh=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function Fh(t,e,n){var r=t.cpx2,i=t.cpy2;return null===r||null===i?[(n?xs:_s)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?xs:_s)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Is:Ts)(t.x1,t.cpx1,t.x2,e),(n?Is:Ts)(t.y1,t.cpy1,t.y2,e)]}var Gh=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Vh},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&&(ks(n,a,i,c,Bh),a=Bh[1],i=Bh[2],ks(r,s,o,c,Bh),s=Bh[1],o=Bh[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(Ss(n,a,l,i,c,Bh),a=Bh[1],l=Bh[2],i=Bh[3],Ss(r,s,u,o,c,Bh),s=Bh[1],u=Bh[2],o=Bh[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return Fh(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Fh(this.shape,t,!0);return Zt(e,e)},e}(Fl);Gh.prototype.type="bezier-curve";var jh=Gh,Hh=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Wh=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Hh},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}(Fl);Wh.prototype.type="arc";var Uh=Wh,Xh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Et(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),Fl.prototype.getBoundingRect.call(this)},e}(Fl),$h=Xh,Yh=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),qh=Yh,Zh=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 Et(e,t),e}(qh),Kh=Zh,Jh=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 Et(e,t),e}(qh),Qh=Jh,tf=[0,0],ef=[0,0],nf=new ui,rf=new ui,of=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ui;for(n=0;n<2;n++)this._axes[n]=new ui;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);ui.sub(r[0],n[1],n[0]),ui.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 nf.set(1/0,1/0),rf.set(0,0),!this._intersectCheckOneSide(this,t,nf,rf,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,nf,rf,r,-1)&&(n=!1,r)||r||ui.copy(e,n?nf:rf),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,tf),this._getProjMinMaxOnAxis(s,e._corners,ef),tf[1]<ef[0]||tf[0]>ef[1]){if(a=!1,i)return a;var u=Math.abs(ef[0]-tf[1]),c=Math.abs(tf[0]-ef[1]);Math.min(u,c)>r.len()&&(u<c?ui.scale(r,l,-u*o):ui.scale(r,l,c*o))}else if(n){u=Math.abs(ef[0]-tf[1]),c=Math.abs(tf[0]-ef[1]);Math.min(u,c)<n.len()&&(u<c?ui.scale(n,l,u*o):ui.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}(),af=of,sf=[],lf=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 Et(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new _i(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(sf)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var o=this._displayables[i];if(o.contain(t,e))return!0}return!1},e}(ss),uf=lf,cf=Math.max,hf=Math.min,ff={};function pf(t){return Fl.extend(t)}var df=Zc;function gf(t,e){return df(t,e)}function vf(t,e){ff[t]=e}function yf(t){if(ff.hasOwnProperty(t))return ff[t]}function mf(t,e,n,r){var i=qc(t,e);return n&&("center"===r&&(n=xf(n,i.getBoundingRect())),wf(i,n)),i}function _f(t,e,n){var r=new Yl({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(xf(e,i))}}});return r}function xf(t,e){var n,r=e.width/e.height,i=t.height*r;i<=t.width?n=t.height:(i=t.width,n=i/r);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}var bf=Kc;function wf(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function Sf(t){return Kl(t.shape,t.shape,t.style),t}function Mf(t){return Jl(t.shape,t.shape,t.style),t}var Cf=Ql;function Tf(t,e,n,r,i,o,a){var s,l=!1;"function"===typeof i?(a=o,o=i,i=null):ut(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u,c="update"===t,h="remove"===t;if(r&&r.ecModel){var f=r.ecModel.getUpdatePayload();u=f&&f.animation}var p=r&&r.isAnimationEnabled();if(h||e.stopAnimation("remove"),p){var d=void 0,g=void 0,v=void 0;u?(d=u.duration||0,g=u.easing||"cubicOut",v=u.delay||0):h?(s=s||{},d=mt(s.duration,200),g=mt(s.easing,"cubicOut"),v=0):(d=r.getShallow(c?"animationDurationUpdate":"animationDuration"),g=r.getShallow(c?"animationEasingUpdate":"animationEasing"),v=r.getShallow(c?"animationDelayUpdate":"animationDelay")),"function"===typeof v&&(v=v(i,r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null)),"function"===typeof d&&(d=d(i)),d>0?l?e.animateFrom(n,{duration:d,delay:v||0,easing:g,done:o,force:!!o||!!a,scope:t,during:a}):e.animateTo(n,{duration:d,delay:v||0,easing:g,done:o,force:!!o||!!a,setToFinal:!0,scope:t,during:a}):(e.stopAnimation(),!l&&e.attr(n),o&&o())}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function If(t,e,n,r,i,o){Tf("update",t,e,n,r,i,o)}function Af(t,e,n,r,i,o){Tf("init",t,e,n,r,i,o)}function Df(t,e,n,r,i,o){Of(t)||Tf("remove",t,e,n,r,i,o)}function kf(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),Df(t,{style:{opacity:0}},e,n,r)}function Lf(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||kf(t,e,n,r)})):kf(t,e,n,r)}function Of(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("remove"===n.scope)return!0}return!1}function Pf(t,e){var n=Hr([]);while(t&&t!==e)Ur(n,t.getLocalTransform(),n),t=t.parent;return n}function Ef(t,e,n){return e&&!Y(e)&&(e=si.getLocalTransform(e)),n&&(e=qr([],e)),re([],t,e)}function Rf(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=Ef(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Nf(t){return!t.isGroup}function zf(t){return null!=t.shape}function Bf(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Nf(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),If(t,i,n,mu(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Nf(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return zf(t)&&(e.shape=j({},t.shape)),e}}function Vf(t,e){return Z(t,(function(t){var n=t[0];n=cf(n,e.x),n=hf(n,e.x+e.width);var r=t[1];return r=cf(r,e.y),r=hf(r,e.y+e.height),[n,r]}))}function Ff(t,e){var n=cf(t.x,e.x),r=hf(t.x+t.width,e.x+e.width),i=cf(t.y,e.y),o=hf(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Gf(t,e,n){var r=j({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),H(i,n),new Yl(r)):mf(t.replace("path://",""),r,n,"center")}function jf(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Hf(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Hf(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,f=Wf(c,h,l,u);if(Uf(f))return!1;var p=t-i,d=e-o,g=Wf(p,d,l,u)/f;if(g<0||g>1)return!1;var v=Wf(p,d,c,h)/f;return!(v<0||v>1)}function Wf(t,e,n,r){return t*r-n*e}function Uf(t){return t<=1e-6&&t>=-1e-6}function Xf(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=at(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&&q(tt(l),(function(t){Lt(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=mu(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:H({content:r,formatterParams:s},i)}}vf("circle",th),vf("ellipse",rh),vf("sector",xh),vf("ring",Sh),vf("polygon",kh),vf("polyline",Ph),vf("rect",ru),vf("line",zh),vf("bezierCurve",jh),vf("arc",Uh);var $f={};function Yf(t,e){for(var n=0;n<Cu.length;n++){var r=Cu[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 qf(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=ot(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<Cu.length;u++){var c=Cu[u],h=e[c];l[c]=mt(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function Zf(t,e,n,r){n=n||$f;for(var i=t instanceof yu,o=!1,a=0;a<Tu.length;a++){var s=e[Tu[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?t:t.getTextContent();if(o){i||(l||(l=new yu,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=qf(n,e),c=e.normal,h=!!c.getShallow("show"),f=Jf(c,r&&r.normal,n,!1,!i);f.text=u.normal,i||t.setTextConfig(Qf(c,n,!1));for(a=0;a<Cu.length;a++){var p=Cu[a];s=e[p];if(s){var d=l.ensureState(p),g=!!mt(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=Jf(s,r&&r[p],n,!0,!i),d.style.text=u[p],!i){var v=t.ensureState(p);v.textConfig=Qf(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(f.x=l.style.x),null!=l.style.y&&(f.y=l.style.y),l.ignore=!h,l.useStyle(f),l.dirty(),n.enableTextSetter&&(sp(l).setLabelText=function(t){var r=qf(n,e,t);Yf(l,r)})}else l&&(l.ignore=!0);t.dirty()}function Kf(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Cu.length;r++){var i=Cu[r];n[i]=t.getModel([i,e])}return n}function Jf(t,e,n,r,i){var o={};return tp(o,t,n,r,i),e&&j(o,e),o}function Qf(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=mt(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return r=t.getShallow("position")||(n?null:"inside"),"outside"===r&&(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}function tp(t,e,n,r,i){n=n||$f;var o,a=e.ecModel,s=a&&a.option.textStyle,l=ep(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);op(o[u]={},c,s,n,r,i,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var f=e.get("minMargin");null!=f&&(t.margin=f),op(t,e,s,n,r,i,!0,!1)}function ep(t){var e;while(t&&t!==t.ecModel){var n=(t.option||$f).rich;if(n){e=e||{};for(var r=tt(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}var np=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],rp=["align","lineHeight","width","height","tag","verticalAlign"],ip=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function op(t,e,n,r,i,o,a,s){n=!i&&n||$f;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=mt(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 f=mt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var p=mt(e.getShallow("textBorderType"),n.textBorderType);null!=p&&(t.lineDash=p);var d=mt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),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<np.length;g++){var v=np[g],y=mt(e.getShallow(v),n[v]);null!=y&&(t[v]=y)}for(g=0;g<rp.length;g++){v=rp[g],y=e.getShallow(v);null!=y&&(t[v]=y)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!r.disableBox){for(g=0;g<ip.length;g++){v=ip[g],y=e.getShallow(v);null!=y&&(t[v]=y)}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 ap(t,e){var n=e&&e.getModel("textStyle");return St([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 sp=na();function lp(t,e,n,r){if(t){var i=sp(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 up(t,e,n,r,i){var o=sp(t);if(o.valueAnimation){var a=o.defaultInterpolatedText,s=mt(o.interpolatedValue,o.prevValue),l=o.value;(null==s?Af:If)(t,{},r,e,null,u)}function u(r){var u=pa(n,o.precision,s,l,r);o.interpolatedValue=1===r?null:u;var c=qf({labelDataIndex:e,labelFetcher:i,defaultText:a?a(u):u+""},o.statesModels,u);Yf(t,c)}}var cp=["textStyle","color"],hp=new yu,fp=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(cp):null)},t.prototype.getFont=function(){return ap({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){return hp.useStyle({text:t,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),hp.update(),hp.getBoundingRect()},t}(),pp=fp,dp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],gp=Aa(dp),vp=function(){function t(){}return t.prototype.getLineStyle=function(t){return gp(this,t)},t}(),yp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],mp=Aa(yp),_p=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return mp(this,t,e)},t}(),xp=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){F(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,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(V(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(!S.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;r++)if(t[r]&&(n=n&&"object"===typeof n?n[t[r]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();xa(xp),Ma(xp),$(xp,vp),$(xp,_p),$(xp,La),$(xp,pp);var bp=xp,wp=Math.round(10*Math.random());function Sp(t){return[t||"",wp++].join("_")}function Mp(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=ya(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=ya(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}function Cp(t,e){function n(t){var n={},o=[];return q(t,(function(a){var s=r(n,a),l=s.originalDeps=e(a),u=i(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),q(u,(function(t){U(s.predecessor,t)<0&&s.predecessor.push(t);var e=r(n,t);U(e.successor,t)<0&&e.successor.push(a)}))})),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function i(t,e){var n=[];return q(t,(function(t){U(e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};q(t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),q(c.successor,h?p:f)}q(l,(function(){var t="";throw new Error(t)}))}function f(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function p(t){l[t]=!0,f(t)}}}function Tp(t,e){return F(F({},t,!0),e,!0)}var Ip={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Ap={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Dp="ZH",kp="EN",Lp=kp,Op={},Pp={},Ep=S.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Dp)>-1?Dp:Lp}():Lp;function Rp(t,e){t=t.toUpperCase(),Pp[t]=new bp(e),Op[t]=e}function Np(t){if(at(t)){var e=Op[t.toUpperCase()]||{};return t===Dp||t===kp?V(e):F(V(e),V(Op[Lp]),!1)}return F(V(t),V(Op[Lp]),!1)}function zp(t){return Pp[t]}function Bp(){return Pp[Lp]}Rp(kp,Ip),Rp(Dp,Ap);var Vp=1e3,Fp=60*Vp,Gp=60*Fp,jp=24*Gp,Hp=365*jp,Wp={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}"},Up="{yyyy}-{MM}-{dd}",Xp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Up,hour:Up+" "+Wp.hour,minute:Up+" "+Wp.minute,second:Up+" "+Wp.second,millisecond:Wp.none},$p=["year","month","day","hour","minute","second","millisecond"],Yp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function qp(t,e){return t+="","0000".substr(0,e-t.length)+t}function Zp(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 Kp(t){return t===Zp(t)}function Jp(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Qp(t,e,n,r){var i=bo(t),o=i[rd(n)](),a=i[id(n)]()+1,s=Math.floor((a-1)/4)+1,l=i[od(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[ad(n)](),h=(c-1)%12+1,f=i[sd(n)](),p=i[ld(n)](),d=i[ud(n)](),g=r instanceof bp?r:zp(r||Ep)||Bp(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),_=v.get("dayOfWeek"),x=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,qp(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,qp(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,qp(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,qp(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,qp(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,qp(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,qp(d,3)).replace(/{S}/g,d+"")}function td(t,e,n,r,i){var o=null;if("string"===typeof n)o=n;else if("function"===typeof n)o=n(t.value,e,{level:t.level});else{var a=j({},Wp);if(t.level>0)for(var s=0;s<$p.length;++s)a[$p[s]]="{primary|"+a[$p[s]]+"}";var l=n?!1===n.inherit?n:H(n,a):a,u=ed(t.value,i);if(l[u])o=l[u];else if(l.inherit){var c=Yp.indexOf(u);for(s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(it(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return Qp(new Date(t.value),o,i,r)}function ed(t,e){var n=bo(t),r=n[id(e)]()+1,i=n[od(e)](),o=n[ad(e)](),a=n[sd(e)](),s=n[ld(e)](),l=n[ud(e)](),u=0===l,c=u&&0===s,h=c&&0===a,f=h&&0===o,p=f&&1===i,d=p&&1===r;return d?"year":p?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function nd(t,e,n){var r="number"===typeof t?bo(t):t;switch(e=e||ed(t,n),e){case"year":return r[rd(n)]();case"half-year":return r[id(n)]()>=6?1:0;case"quarter":return Math.floor((r[id(n)]()+1)/4);case"month":return r[id(n)]();case"day":return r[od(n)]();case"half-day":return r[ad(n)]()/24;case"hour":return r[ad(n)]();case"minute":return r[sd(n)]();case"second":return r[ld(n)]();case"millisecond":return r[ud(n)]()}}function rd(t){return t?"getUTCFullYear":"getFullYear"}function id(t){return t?"getUTCMonth":"getMonth"}function od(t){return t?"getUTCDate":"getDate"}function ad(t){return t?"getUTCHours":"getHours"}function sd(t){return t?"getUTCMinutes":"getMinutes"}function ld(t){return t?"getUTCSeconds":"getSeconds"}function ud(t){return t?"getUTCSeconds":"getSeconds"}function cd(t){return t?"setUTCFullYear":"setFullYear"}function hd(t){return t?"setUTCMonth":"setMonth"}function fd(t){return t?"setUTCDate":"setDate"}function pd(t){return t?"setUTCHours":"setHours"}function dd(t){return t?"setUTCMinutes":"setMinutes"}function gd(t){return t?"setUTCSeconds":"setSeconds"}function vd(t){return t?"setUTCSeconds":"setSeconds"}function yd(t){if(!Ao(t))return at(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function md(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 _d=bt,xd=/([&<>"'])/g,bd={"&":"&","<":"<",">":">",'"':""","'":"'"};function wd(t){return null==t?"":(t+"").replace(xd,(function(t,e){return bd[e]}))}function Sd(t,e,n){var r="{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}";function i(t){return t&&St(t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?bo(t):t;if(!isNaN(+l))return Qp(l,r,n);if(s)return"-"}if("ordinal"===e)return st(t)?i(t):lt(t)&&o(t)?t+"":"-";var u=Io(t);return o(u)?yd(u):st(t)?i(t):"-"}var Md=["a","b","c","d","e","f","g"],Cd=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Td(t,e,n){it(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=Md[o];t=t.replace(Cd(a),Cd(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(Cd(Md[l],s),n?wd(u):u)}return t}function Id(t,e,n){return q(e,(function(e,r){t=t.replace("{"+r+"}",n?wd(e):e)})),t}function Ad(t,e){var n=at(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if("html"===o)return"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:'+wd(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+wd(r)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Dd(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=bo(e),i=n?"UTC":"",o=r["get"+i+"FullYear"](),a=r["get"+i+"Month"]()+1,s=r["get"+i+"Date"](),l=r["get"+i+"Hours"](),u=r["get"+i+"Minutes"](),c=r["get"+i+"Seconds"](),h=r["get"+i+"Milliseconds"]();return t=t.replace("MM",qp(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",qp(s,2)).replace("d",s).replace("hh",qp(l,2)).replace("h",l).replace("mm",qp(u,2)).replace("m",u).replace("ss",qp(c,2)).replace("s",c).replace("SSS",qp(h,3)),t}function kd(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Ld(t,e){return e=e||"transparent",at(t)?t:ut(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Od(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Pd=q,Ed=["left","right","top","bottom","width","height"],Rd=[["width","left","right"],["height","top","bottom"]];function Nd(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,f=l.getBoundingRect(),p=e.childAt(u+1),d=p&&p.getBoundingRect();if("horizontal"===t){var g=f.width+(d?-d.x+f.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(d?-d.y+f.y:0);h=a+v,h>i||l.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var zd=Nd;rt(Nd,"vertical"),rt(Nd,"horizontal");function Bd(t,e,n){var r=e.width,i=e.height,o=lo(t.left,r),a=lo(t.top,i),s=lo(t.right,r),l=lo(t.bottom,i);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),n=_d(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function Vd(t,e,n){n=_d(n||0);var r=e.width,i=e.height,o=lo(t.left,r),a=lo(t.top,i),s=lo(t.right,r),l=lo(t.bottom,i),u=lo(t.width,r),c=lo(t.height,i),h=n[2]+n[0],f=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-f-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-f),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-f;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-f-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var d=new _i(o+n[3],a+n[0],u,c);return d.margin=n,d}function Fd(t,e,n,r,i){var o=!i||!i.hv||i.hv[0],a=!i||!i.hv||i.hv[1],s=i&&i.boundingMode||"all";if(o||a){var l;if("raw"===s)l="group"===t.type?new _i(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();l=l.clone(),l.applyTransform(u)}var c=Vd(H({width:l.width,height:l.height},e),n,r),h=o?c.x-l.x:0,f=a?c.y-l.y:0;"raw"===s?(t.x=h,t.y=f):(t.x+=h,t.y+=f),t.markRedraw()}}function Gd(t,e){return null!=t[Rd[e][0]]||null!=t[Rd[e][1]]&&null!=t[Rd[e][2]]}function jd(t){var e=t.layoutMode||t.constructor.layoutMode;return ut(e)?e:e?{type:e}:null}function Hd(t,e,n){var r=n&&n.ignoreSize;!it(r)&&(r=[r,r]);var i=a(Rd[0],0),o=a(Rd[1],1);function a(n,i){var o={},a=0,u={},c=0,h=2;if(Pd(n,(function(e){u[e]=t[e]})),Pd(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(c!==h&&a){if(a>=h)return o;for(var f=0;f<n.length;f++){var p=n[f];if(!s(o,p)&&s(t,p)){o[p]=t[p];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){Pd(t,(function(t){e[t]=n[t]}))}u(Rd[0],t,i),u(Rd[1],t,o)}function Wd(t){return Ud({},t)}function Ud(t,e){return e&&t&&Pd(Ed,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var Xd=na(),$d=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=Sp("ec_cpt_model"),i}return v(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=jd(this),r=n?Wd(t):{},i=e.getTheme();F(t,i.get(this.mainType)),F(t,this.getDefaultOption()),n&&Hd(t,r,n)},e.prototype.mergeOption=function(t,e){F(this.option,t,!0);var n=jd(this);n&&Hd(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!_a(t))return t.defaultOption;var e=Xd(this);if(!e.defaultOption){var n=[],r=t;while(r){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=F(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return la(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.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(bp);function Yd(t){var e=[];return q($d.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=Z(e,(function(t){return ya(t).main})),"dataset"!==t&&U(e,"dataset")<=0&&e.unshift("dataset"),e}wa($d,bp),Ia($d),Mp($d),Cp($d,Yd);var qd=$d,Zd="";"undefined"!==typeof navigator&&(Zd=navigator.platform||"");var Kd="rgba(0, 0, 0, 0.2)",Jd={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Kd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Kd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Kd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Kd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Kd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Kd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Zd.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},Qd=At(["tooltip","label","itemName","itemId","seriesName"]),tg="original",eg="arrayRows",ng="objectRows",rg="keyedColumns",ig="typedArray",og="unknown",ag="column",sg="row",lg={Must:1,Might:2,Not:3},ug=na();function cg(t){ug(t).datasetMap=At()}function hg(t,e,n){var r={},i=pg(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=ug(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),q(t,(function(e,n){var i=ut(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=d(i)),r[i.name]=[]}));var f=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 d(t){var e=t.dimsDef;return e?e.length:1}return q(t,(function(t,e){var n=t.name,i=d(t);if(null==o){var a=f.valueWayDim;p(r[n],a,i),p(l,a,i),f.valueWayDim+=i}else if(o===e)p(r[n],0,i),p(s,0,i);else{a=f.categoryWayDim;p(r[n],a,i),p(l,a,i),f.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function fg(t,e,n){var r={},i=pg(t);if(!i)return r;var o,a=e.sourceFormat,s=e.dimensionsDefine;a!==ng&&a!==rg||q(s,(function(t,e){"name"===(ut(t)?t.name:t)&&(o=e)}));var l=function(){for(var t={},r={},i=[],l=0,u=Math.min(5,n);l<u;l++){var c=vg(e.data,a,e.seriesLayoutBy,s,e.startIndex,l);i.push(c);var h=c===lg.Not;if(h&&null==t.v&&l!==o&&(t.v=l),(null==t.n||t.n===t.v||!h&&i[t.n]===lg.Not)&&(t.n=l),f(t)&&i[t.n]!==lg.Not)return t;h||(c===lg.Might&&null==r.v&&l!==o&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function f(t){return null!=t.v&&null!=t.n}return f(t)?t:f(r)?r:null}();if(l){r.value=[l.v];var u=null!=o?o:l.n;r.itemName=[u],r.seriesName=[u]}return r}function pg(t){var e=t.get("data",!0);if(!e)return la(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},aa).models[0]}function dg(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?la(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},aa).models:[]}function gg(t,e){return vg(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function vg(t,e,n,r,i,o){var a,s,l,u=5;if(ht(t))return lg.Not;if(r){var c=r[o];ut(c)?(s=c.name,l=c.type):at(c)&&(s=c)}if(null!=l)return"ordinal"===l?lg.Must:lg.Not;if(e===eg){var h=t;if(n===sg){for(var f=h[o],p=0;p<(f||[]).length&&p<u;p++)if(null!=(a=x(f[i+p])))return a}else for(p=0;p<h.length&&p<u;p++){var d=h[i+p];if(d&&null!=(a=x(d[o])))return a}}else if(e===ng){var g=t;if(!s)return lg.Not;for(p=0;p<g.length&&p<u;p++){var v=g[p];if(v&&null!=(a=x(v[s])))return a}}else if(e===rg){var y=t;if(!s)return lg.Not;f=y[s];if(!f||ht(f))return lg.Not;for(p=0;p<f.length&&p<u;p++)if(null!=(a=x(f[p])))return a}else if(e===tg){var m=t;for(p=0;p<m.length&&p<u;p++){v=m[p];var _=zo(v);if(!it(_))return lg.Not;if(null!=(a=x(_[o])))return a}}function x(t){var e=at(t);return null!=t&&isFinite(t)&&""!==t?e?lg.Might:lg.Not:e&&"-"!==t?lg.Must:void 0}return lg.Not}var yg=At();function mg(t,e){wt(null==yg.get(t)&&e),yg.set(t,e)}function _g(t,e,n){var r=yg.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}var xg=na(),bg=na(),wg=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=Eo(this.get("color",!0)),i=this.get("colorLayer",!0);return Cg(this,xg,r,i,t,e,n)},t.prototype.clearColorPalette=function(){Tg(this,xg)},t}();function Sg(t,e,n,r){var i=Eo(t.get(["aria","decal","decals"]));return Cg(t,bg,i,null,e,n,r)}function Mg(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function Cg(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?Mg(r,a):n;if(c=c||n,c&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function Tg(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Ig,Ag,Dg;"undefined"!==typeof console&&console.warn&&console.log;function kg(t){0}function Lg(t){throw new Error(t)}var Og="\0_ec_inner",Pg=1;var Eg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new bp(r),this._locale=new bp(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=Vg(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Vg(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Dg(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&&q(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=At(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=_g(this,e,Eo(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Vo(a,o,l);Jo(u,e,qd),n[e]=null,r.set(e,null),i.set(e,0);var c=[],h=[],f=0;q(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=qd.getClass(e,t.keyInfo.subType,!o);if(!a)return;if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=j({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),j(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(c.push(r.option),h.push(r),f++):(c.push(void 0),h.push(void 0))}),this),n[e]=c,r.set(e,h),i.set(e,f),"series"===e&&Ig(this)}cg(this),q(t,(function(t,e){null!=t&&(qd.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?V(t):F(n[e],t,!0))})),s&&s.each((function(t,e){qd.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),qd.topologicalTravel(o,qd.getAllClassMainTypes(),l,this),this._seriesIndices||Ig(this)},e.prototype.getOption=function(){var t=V(this.option);return q(t,(function(e,n){if(qd.hasClass(n)){for(var r=Eo(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Zo(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Og],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.getLocale=function(t){var e=this.getLocaleModel();return e.get(t)},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=[],q(Eo(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?zg("id",i,a):null!=o?zg("name",o,a):J(a,(function(t){return!!t})),Bg(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,r=o(e),i=r?this.queryComponents(r):J(this._componentsMap.get(n),(function(t){return!!t}));return a(Bg(i,t));function o(t){var e=n+"Index",r=n+"Id",i=n+"Name";return!t||null==t[e]&&null==t[r]&&null==t[i]?null:{mainType:n,index:t[e],id:t[r],name:t[i]}}function a(e){return t.filter?J(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(ot(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=at(t)?r.get(t):ut(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=Yo(t,null);return J(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 J(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return J(this._componentsMap.get("series").slice(),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Ag(this),q(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){q(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Ag(this),q(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 q(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Ag(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Ag(this);var n=[];q(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=At(n)},e.prototype.restoreData=function(t){Ig(this);var e=this._componentsMap,n=[];e.each((function(t,e){qd.hasClass(e)&&n.push(e)})),qd.topologicalTravel(n,qd.getAllClassMainTypes(),(function(n){q(e.get(n),(function(e){!e||"series"===n&&Rg(e,t)||e.restoreData()}))}))},e.internalField=function(){Ig=function(t){var e=t._seriesIndices=[];q(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=At(e)},Ag=function(t){0},Dg=function(t,e){t.option={},t.option[Og]=Pg,t._componentsMap=At({series:[]}),t._componentsCount=At();var n=e.aria;ut(n)&&null==n.enabled&&(n.enabled=!0),Ng(e,t._theme.option),F(e,Jd,!1),t._mergeOption(e,null)}}(),e}(bp);function Rg(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}}function Ng(t,e){var n=t.color&&!t.colorLayer;q(e,(function(e,r){"colorLayer"===r&&n||qd.hasClass(r)||("object"===typeof e?t[r]=t[r]?F(t[r],e,!1):V(e):null==t[r]&&(t[r]=e))}))}function zg(t,e,n){if(it(e)){var r=At();return q(e,(function(t){if(null!=t){var e=Yo(t,null);null!=e&&r.set(t,!0)}})),J(n,(function(e){return e&&r.get(e[t])}))}var i=Yo(e,null);return J(n,(function(e){return e&&null!=i&&e[t]===i}))}function Bg(t,e){return e.hasOwnProperty("subType")?J(t,(function(t){return t&&t.subType===e.subType})):t}function Vg(t){var e=At();return t&&q(Eo(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}$(Eg,wg);var Fg=Eg,Gg=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],jg=function(){function t(t){q(Gg,(function(e){this[e]=nt(t[e],t)}),this)}return t}(),Hg=jg,Wg={},Ug=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];q(Wg,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){q(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){Wg[t]=e},t.get=function(t){return Wg[t]},t}(),Xg=Ug,$g=/^(min|max)?(.+)$/,Yg=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(q(Eo(t.series),(function(t){t&&t.data&&ht(t.data)&&Ct(t.data)})),q(Eo(t.dataset),(function(t){t&&t.source&&ht(t.source)&&Ct(t.source)}))),t=V(t);var r=this._optionBackup,i=qg(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=[],V(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=V(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,o=[],a=[];if(!r.length&&!i)return a;for(var s=0,l=r.length;s<l;s++)Zg(r[s].query,e,n)&&o.push(s);return!o.length&&i&&(o=[-1]),o.length&&!Jg(o,this._currentMediaIndices)&&(a=Z(o,(function(t){return V(-1===t?i.option:r[t].option)}))),this._currentMediaIndices=o,a},t}();function qg(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);function f(t){q(e,(function(e){e(t,n)}))}return a?(i=a,i.timeline||(i.timeline=s)):((h||c)&&(t.options=t.media=null),i=t),c&&it(u)&&q(u,(function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))})),f(i),q(l,(function(t){return f(t)})),q(o,(function(t){return f(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}function Zg(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return q(t,(function(t,e){var n=e.match($g);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();Kg(r[a],t,o)||(i=!1)}})),i}function Kg(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function Jg(t,e){return t.join(",")===e.join(",")}var Qg=Yg,tv=q,ev=ut,nv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function rv(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=nv.length;n<r;n++){var i=nv[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?F(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?F(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function iv(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,H(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 ov(t){iv(t,"itemStyle"),iv(t,"lineStyle"),iv(t,"areaStyle"),iv(t,"label"),iv(t,"labelLine"),iv(t,"upperLabel"),iv(t,"edgeLabel")}function av(t,e){var n=ev(t)&&t[e],r=ev(n)&&n.textStyle;if(r){0;for(var i=0,o=No.length;i<o;i++){var a=No[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function sv(t){t&&(ov(t),av(t,"label"),t.emphasis&&av(t.emphasis,"label"))}function lv(t){if(ev(t)){rv(t),ov(t),av(t,"label"),av(t,"upperLabel"),av(t,"edgeLabel"),t.emphasis&&(av(t.emphasis,"label"),av(t.emphasis,"upperLabel"),av(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(rv(e),sv(e));var n=t.markLine;n&&(rv(n),sv(n));var r=t.markArea;r&&sv(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!ht(o))for(var a=0;a<o.length;a++)sv(o[a]);q(t.categories,(function(t){ov(t)}))}if(i&&!ht(i))for(a=0;a<i.length;a++)sv(i[a]);if(e=t.markPoint,e&&e.data){var s=e.data;for(a=0;a<s.length;a++)sv(s[a])}if(n=t.markLine,n&&n.data){var l=n.data;for(a=0;a<l.length;a++)it(l[a])?(sv(l[a][0]),sv(l[a][1])):sv(l[a])}"gauge"===t.type?(av(t,"axisLabel"),av(t,"title"),av(t,"detail")):"treemap"===t.type?(iv(t.breadcrumb,"itemStyle"),q(t.levels,(function(t){ov(t)}))):"tree"===t.type&&ov(t.leaves)}}function uv(t){return it(t)?t:t?[t]:[]}function cv(t){return(it(t)?t[0]:t)||{}}function hv(t,e){tv(uv(t.series),(function(t){ev(t)&&lv(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),tv(n,(function(e){tv(uv(t[e]),(function(t){t&&(av(t,"axisLabel"),av(t.axisPointer,"label"))}))})),tv(uv(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;av(e,"axisLabel"),av(e&&e.axisPointer,"label")})),tv(uv(t.calendar),(function(t){iv(t,"itemStyle"),av(t,"dayLabel"),av(t,"monthLabel"),av(t,"yearLabel")})),tv(uv(t.radar),(function(t){av(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)})),tv(uv(t.geo),(function(t){ev(t)&&(sv(t),tv(uv(t.regions),(function(t){sv(t)})))})),tv(uv(t.timeline),(function(t){sv(t),iv(t,"label"),iv(t,"itemStyle"),iv(t,"controlStyle",!0);var e=t.data;it(e)&&q(e,(function(t){ut(t)&&(iv(t,"label"),iv(t,"itemStyle"))}))})),tv(uv(t.toolbox),(function(t){iv(t,"iconStyle"),tv(t.feature,(function(t){iv(t,"iconStyle")}))})),av(cv(t.axisPointer),"label"),av(cv(t.tooltip).axisPointer,"label")}function fv(t,e){for(var n=e.split(","),r=t,i=0;i<n.length;i++)if(r=r&&r[n[i]],null==r)break;return r}function pv(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)i=o[s],null==a[i]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}function dv(t){t&&q(gv,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var gv=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],vv=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],yv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function mv(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<yv.length;n++){var r=yv[n][1],i=yv[n][0];null!=e[r]&&(e[i]=e[r])}}function _v(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function xv(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function bv(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function wv(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&wv(t[n].children,e)}function Sv(t,e){hv(t,e),t.series=Eo(t.series),q(t.series,(function(t){if(ut(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),_v(t.label);var n=t.data;if(n&&!ht(n))for(var r=0;r<n.length;r++)_v(n[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=fv(t,"pointer.color");null!=i&&pv(t,"itemStyle.color",i)}else if("bar"===e){mv(t),mv(t.backgroundStyle),mv(t.emphasis);n=t.data;if(n&&!ht(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(mv(n[r]),mv(n[r]&&n[r].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),xv(t),wv(t.data,xv)}else"graph"===e||"sankey"===e?bv(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&H(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),dv(t)}})),t.dataRange&&(t.visualMap=t.dataRange),q(vv,(function(e){var n=t[e];n&&(it(n)||(n=[n]),q(n,(function(t){dv(t)})))}))}function Mv(t){var e=At();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(Cv)}function Cv(t){q(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=a.map(o,(function(o,l,u){var c,h,f=a.get(e.stackedDimension,u);if(isNaN(f))return i;s?h=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var p=NaN,d=n-1;d>=0;d--){var g=t[d];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if(f>=0&&v>0||f<=0&&v<0){f=vo(f,v),p=v;break}}}return r[0]=f,r[1]=p,r}));a.hostModel.setData(l),e.data=l}))}var Tv,Iv,Av,Dv,kv,Lv=function(){function t(t){this.data=t.data||(t.sourceFormat===rg?{}:[]),this.sourceFormat=t.sourceFormat||og,this.seriesLayoutBy=t.seriesLayoutBy||ag,this.startIndex=t.startIndex||0,this.dimensionsDefine=t.dimensionsDefine,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.encodeDefine=t.encodeDefine,this.metaRawOption=t.metaRawOption}return t}();function Ov(t){return t instanceof Lv}function Pv(t,e,n,r){n=n||zv(t);var i=e.seriesLayoutBy,o=Bv(t,n,i,e.sourceHeader,e.dimensions),a=new Lv({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,encodeDefine:Nv(r),metaRawOption:V(e)});return a}function Ev(t){return new Lv({data:t,sourceFormat:ht(t)?ig:tg})}function Rv(t){return new Lv({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:V(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount,encodeDefine:Nv(t.encodeDefine)})}function Nv(t){return t?At(t):null}function zv(t){var e=og;if(ht(t))e=ig;else if(it(t)){0===t.length&&(e=eg);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(it(i)){e=eg;break}if(ut(i)){e=ng;break}}}}else if(ut(t))for(var o in t)if(Lt(t,o)&&Y(t[o])){e=rg;break}return e}function Bv(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:Fv(i),startIndex:a,dimensionsDetectedCount:o};if(e===eg){var s=t;"auto"===r||null==r?Gv((function(t){null!=t&&"-"!==t&&(at(t)?null==a&&(a=1):a=0)}),n,s,10):a=lt(r)?r:r?1:0,i||1!==a||(i=[],Gv((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===sg?s.length:s[0]?s[0].length:null}else if(e===ng)i||(i=Vv(t));else if(e===rg)i||(i=[],q(t,(function(t,e){i.push(e)})));else if(e===tg){var l=zo(t[0]);o=it(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Fv(i),dimensionsDetectedCount:o}}function Vv(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e){var r=[];return q(e,(function(t,e){r.push(e)})),r}}function Fv(t){if(t){var e=At();return Z(t,(function(t,n){t=ut(t)?t:{name:t};var r={name:t.name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r}))}}function Gv(t,e,n,r){if(e===sg)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)}}var jv=function(){function t(t,e){var n=Ov(t)?t:Ev(t);this._source=n;var r=this._data=n.data;n.sourceFormat===ig&&(this._offset=0,this._dimSize=e,this._data=r),kv(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;kv=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Dv[Jv(a,s)];if(j(t,c),a===ig)t.getItem=e,t.count=r,t.fillStorage=n;else{var h=Uv(a,s);t.getItem=nt(h,null,i,l,u);var f=Yv(a,s);t.count=nt(f,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],f=0;f<c;f++){var p=i[f*o+a];h[t+f]=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={},t[eg+"_"+ag]={pure:!0,appendData:i},t[eg+"_"+sg]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ng]={pure:!0,appendData:i},t[rg]={pure:!0,appendData:function(t){var e=this._data;q(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[tg]={appendData:i},t[ig]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Dv=t}(),t}(),Hv=function(t,e,n,r){return t[r]},Wv=(Tv={},Tv[eg+"_"+ag]=function(t,e,n,r){return t[r+e]},Tv[eg+"_"+sg]=function(t,e,n,r){r+=e;for(var i=[],o=t,a=0;a<o.length;a++){var s=o[a];i.push(s?s[r]:null)}return i},Tv[ng]=Hv,Tv[rg]=function(t,e,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o].name;0;var s=t[a];i.push(s?s[r]:null)}return i},Tv[tg]=Hv,Tv);function Uv(t,e){var n=Wv[Jv(t,e)];return n}var Xv=function(t,e,n){return t.length},$v=(Iv={},Iv[eg+"_"+ag]=function(t,e,n){return Math.max(0,t.length-e)},Iv[eg+"_"+sg]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Iv[ng]=Xv,Iv[rg]=function(t,e,n){var r=n[0].name;var i=t[r];return i?i.length:0},Iv[tg]=Xv,Iv);function Yv(t,e){var n=$v[Jv(t,e)];return n}var qv=function(t,e,n){return null!=e?t[e]:t},Zv=(Av={},Av[eg]=qv,Av[ng]=function(t,e,n){return null!=e?t[n]:t},Av[rg]=qv,Av[tg]=function(t,e,n){var r=zo(t);return null!=e&&r instanceof Array?r[e]:r},Av[ig]=qv,Av);function Kv(t){var e=Zv[t];return e}function Jv(t,e){return t===eg?t+"_"+e:t}function Qv(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i,o,a=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(n);return s&&(i=s.name,o=s.index),Kv(a)(r,o,i)}}}var ty=/\{@(.+?)\}/g,ey=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,f=n.userOutput;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:f?f.dimensionNames:null,encode:f?f.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);if(o&&(s.value=o.interpolatedValue),null!=r&&it(s.value)&&(s.value=s.value[r]),!i){var l=a.getItemModel(t);i=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if("function"===typeof i)return s.status=e,s.dimensionIndex=r,i(s);if("string"===typeof i){var u=Td(i,s);return u.replace(ty,(function(e,n){var r=n.length,i="["===n.charAt(0)&&"]"===n.charAt(r-1)?+n.slice(1,r-1):n,s=Qv(a,t,i);if(o&&it(o.interpolatedValue)){var l=a.getDimensionInfo(i);l&&(s=o.interpolatedValue[l.index])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return Qv(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function ny(t){var e,n;return ut(t)?t.type&&(n=t):e=t,{markupText:e,markupFragment:n}}function ry(t){return new iy(t)}var iy=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 f=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||f<p)){var d=this._progress;if(it(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],f,p,l,u);else this._doProgress(d,f,p,l,u)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){oy.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:oy.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),it(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}(),oy=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 ay(t,e){var n=e&&e.type;if("ordinal"===n){var r=e&&e.ordinalMeta;return r?r.parseAndCollect(t):t}return"time"===n&&"number"!==typeof t&&null!=t&&"-"!==t&&(t=+bo(t)),null==t||""===t?NaN:+t}var sy=At({number:function(t){return parseFloat(t)},time:function(t){return+bo(t)},trim:function(t){return"string"===typeof t?St(t):t}});function ly(t){return sy.get(t)}var uy={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}},cy=function(){function t(t,e){if("number"!==typeof e){var n="";0,Lg(n)}this._opFn=uy[t],this._rvalFloat=Io(e)}return t.prototype.evaluate=function(t){return"number"===typeof t?this._opFn(t,this._rvalFloat):this._opFn(Io(t),this._rvalFloat)},t}(),hy=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=typeof t,r=typeof e,i="number"===n?t:Io(t),o="number"===r?e:Io(e),a=isNaN(i),s=isNaN(o);if(a&&(i=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===n,u="string"===r;l&&(i=u?t:0),u&&(o=l?e:0)}return i<o?this._resultLT:i>o?-this._resultLT:0},t}(),fy=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Io(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=Io(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function py(t,e){return"eq"===t||"ne"===t?new fy("eq"===t,e):Lt(uy,t)?new cy(t,e):null}var dy=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 ay(t,e)},t}();function gy(t,e){var n=new dy,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==ag&&Lg(a);var s=[],l={},u=t.dimensionsDefine;if(u)q(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Lt(l,n)&&Lg(i),l[n]=r}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=Uv(i,ag);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,o,s,t)},n.getRawData=nt(vy,null,t)),n.cloneRawData=nt(yy,null,t);var f=Yv(i,ag);n.count=nt(f,null,r,o,s);var p=Kv(i);n.retrieveValue=function(t,e){var n=h(r,o,s,t);return d(n,e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=nt(my,null,s,l),n.cloneAllDimensionInfo=nt(_y,null,s),n}function vy(t){var e=t.sourceFormat;if(!My(e)){var n="";0,Lg(n)}return t.data}function yy(t){var e=t.sourceFormat,n=t.data;if(!My(e)){var r="";0,Lg(r)}if(e===eg){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}if(e===ng){for(i=[],o=0,a=n.length;o<a;o++)i.push(j({},n[o]));return i}}function my(t,e,n){if(null!=n)return"number"===typeof n||!isNaN(n)&&!Lt(e,n)?t[n]:Lt(e,n)?e[n]:void 0}function _y(t){return V(t)}var xy=At();function by(t){t=V(t);var e=t.type,n="";e||Lg(n);var r=e.split(":");2!==r.length&&Lg(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,xy.set(e,t)}function wy(t,e,n){var r=Eo(t),i=r.length,o="";i||Lg(o);for(var a=0,s=i;a<s;a++){var l=r[a];e=Sy(l,e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function Sy(t,e,n,r){var i="";e.length||Lg(i),ut(t)||Lg(i);var o=t.type,a=xy.get(o);a||Lg(i);var s=Z(e,(function(t){return gy(t,a)})),l=Eo(a.transform({upstream:s[0],upstreamList:s,config:V(t.config)}));return Z(l,(function(t,n){var r="";ut(t)||Lg(r),t.data||Lg(r);var i,o=zv(t.data);My(o)||Lg(r);var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),i={seriesLayoutBy:ag,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:ag,sourceHeader:0,dimensions:t.dimensions};return Pv(t.data,i,null,null)}))}function My(t){return t===eg||t===ng}var Cy=function(){function t(t){this._sourceList=[],this._upstreamSignList=[],this._versionSignBase=0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[])},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()},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Iy(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=ht(a)?ig:tg,e=[];var c=this._getSourceMetaRawOption(),h=l?l.metaRawOption:null,f=mt(c.seriesLayoutBy,h?h.seriesLayoutBy:null),p=mt(c.sourceHeader,h?h.sourceHeader:null),d=mt(c.dimensions,h?h.dimensions:null);t=[Pv(a,{seriesLayoutBy:f,sourceHeader:p,dimensions:d},s,o.get("encode",!0))]}else{var g=n;if(i){var v=this._applyTransform(r);t=v.sourceList,e=v.upstreamSignList}else{var y=g.get("source",!0);t=[Pv(y,this._getSourceMetaRawOption(),null,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){var o="";1!==t.length&&Ay(o)}var a=[],s=[];return q(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||Ay(n),a.push(e),s.push(t._getVersionSign())})),r?e=wy(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[Rv(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){var t=this._sourceList;if(!t.length)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(t){return this._sourceList[t||0]},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Iy(t)){var e=pg(t);return e?[e.getSourceManager()]:[]}return Z(dg(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(Iy(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 Ty(t){var e=t.option.transform;e&&Ct(t.option.transform)}function Iy(t){return"series"===t.mainType}function Ay(t){throw new Error(t)}var Dy="line-height:1";function ky(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:"+wd(r+"")+"px;color:"+wd(n)+";font-weight:"+wd(i+""),valueStyle:"font-size:"+wd(a+"")+"px;color:"+wd(o)+";font-weight:"+wd(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Ly=[0,10,20,30],Oy=["","\n","\n\n","\n\n\n"];function Py(t,e){return e.type=t,e}function Ey(t){return Lt(Ry,t.type)&&Ry[t.type]}var Ry={section:{planLayout:function(t){var e=t.blocks.length,n=e>1||e>0&&!t.noHeader,r=0;q(t.blocks,(function(t){Ey(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=r&&(r=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))})),t.__gapLevelBetweenSubBlocks=r},build:function(t,e,n,r){var i=e.noHeader,o=By(e),a=Ny(t,e,i?n:o.html,r);if(i)return a;var s=Sd(e.header,"ordinal",t.useUTC),l=ky(r,t.renderMode).nameStyle;return"richText"===t.renderMode?jy(t,s,l)+o.richText+a:Vy('<div style="'+l+";"+Dy+';">'+wd(s)+"</div>"+a,n)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,c=t.useUTC;if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=o?"":Sd(l,"ordinal",c),p=e.valueType,d=a?[]:it(u)?Z(u,(function(t,e){return Sd(t,it(p)?p[e]:p,c)})):[Sd(u,it(p)?p[0]:p,c)],g=!s||!o,v=!s&&o,y=ky(r,i),m=y.nameStyle,_=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":jy(t,f,m))+(a?"":Hy(t,d,g,v,_)):Vy((s?"":h)+(o?"":Fy(f,!s,m))+(a?"":Gy(d,g,v,_)),n)}}}};function Ny(t,e,n,r){var i=[],o=e.blocks||[];wt(!o||it(o)),o=o||[];var a=t.orderMode;if(e.sortBlocks&&a){o=o.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(Lt(s,a)){var l=new hy(s[a],null);o.sort((function(t,e){return l.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===a&&o.reverse()}var u=By(e);if(q(o,(function(e,n){var o=Ey(e).build(t,e,n>0?u.html:0,r);null!=o&&i.push(o)})),i.length)return"richText"===t.renderMode?i.join(u.richText):Vy(i.join(""),n)}function zy(t,e,n,r,i,o){if(t){var a=Ey(t);a.planLayout(t);var s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e};return a.build(s,t,0,o)}}function By(t){var e=t.__gapLevelBetweenSubBlocks;return{html:Ly[e],richText:Oy[e]}}function Vy(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+Dy+';">'+t+n+"</div>"}function Fy(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+wd(t)+"</span>"}function Gy(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return'<span style="'+o+";"+r+'">'+Z(t,(function(t){return wd(t)})).join(" ")+"</span>"}function jy(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Hy(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(e.join(" "),o)}function Wy(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Ld(r)}function Uy(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Xy=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Do()}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=Ad({color:e,type:t,renderMode:n,markerId:r});return at(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};it(e)?q(e,(function(t){return j(n,t)})):j(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function $y(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),f=it(h),p=Wy(o,a);if(c>1||f&&!c){var d=Yy(h,o,a,u,p);e=d.inlineValues,n=d.inlineValueTypes,r=d.blocks,i=d.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=Qv(l,a,u[0]),n=g.type}else i=e=f?h[0]:h;var v=qo(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return Py("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[Py("nameValue",{markerType:"item",markerColor:p,name:_,noName:!St(_),value:e,valueType:n})].concat(r||[])})}function Yy(t,e,n,r,i){var o=e.getData(),a=K(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(Py("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?q(r,(function(t){c(Qv(o,n,t),t)})):q(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var qy=na();function Zy(t,e){return t.getName(e)||t.getId(e)}var Ky=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return v(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=ry({count:tm,reset:em}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=qy(this).sourceManager=new Cy(this);r.prepareSource();var i=this.getInitialData(t,n);rm(i,this),this.dataTask.context.data=i,qy(this).dataBeforeProcessed=i,Jy(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=jd(this),r=n?Wd(t):{},i=this.subType;qd.hasClass(i)&&(i+="Series"),F(t,e.getTheme().get(this.subType)),F(t,this.getDefaultOption()),Ro(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Hd(t,r,n)},e.prototype.mergeOption=function(t,e){t=F(this.option,t,!0),this.fillDataTextStyle(t.data);var n=jd(this);n&&Hd(this.option,t,n);var r=qy(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);rm(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,qy(this).dataBeforeProcessed=i,Jy(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!ht(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Ro(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=om(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return qy(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=om(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}qy(this).data=t},e.prototype.getSource=function(){return qy(this).sourceManager.getSource()},e.prototype.getRawData=function(){return qy(this).dataBeforeProcessed},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return $y({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){if(S.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=wg.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)for(var r=this.getData(e),i=0;i<t.length;i++){var o=t[i],a=Zy(r,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(){for(var t=this._selectedDataIndicesMap,e=tt(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),i=Zy(r,t);return n[i]||!1},e.prototype._innerSelect=function(t,e){var n,r,i=this.option.selectedMode,o=e.length;if(i&&o)if("multiple"===i)for(var a=this.option.selectedMap||(this.option.selectedMap={}),s=0;s<o;s++){var l=e[s],u=Zy(t,l);a[u]=!0,this._selectedDataIndicesMap[u]=t.getRawIndex(l)}else if("single"===i||!0===i){var c=e[o-1];u=Zy(t,c);this.option.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=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 qd.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.useColorPaletteOnData=!1,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(qd);function Jy(t){var e=t.name;qo(t)||(t.name=Qy(t)||e)}function Qy(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return q(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function tm(t){return t.model.getRawData().count()}function em(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),nm}function nm(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function rm(t,e){q(m(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,rt(im,e))}))}function im(t,e){var n=om(t);return n&&n.setOutputEnd((e||this).count()),e}function om(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}}$(Ky,ey),$(Ky,wg),wa(Ky,qd);var am=Ky,sm=function(){function t(){this.group=new Ui,this.uid=Sp("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.blurSeries=function(t,e){},t}();xa(sm),Ia(sm);var lm=sm;function um(){var t=na();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"}}var cm=na(),hm=um(),fm=function(){function t(){this.group=new Ui,this.uid=Sp("viewChart"),this.renderTask=ry({plan:gm,reset:vm}),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){dm(t.getData(),r,"emphasis")},t.prototype.downplay=function(t,e,n,r){dm(t.getData(),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.markUpdateMethod=function(t,e){cm(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function pm(t,e,n){t&&("emphasis"===e?ec:nc)(t,n)}function dm(t,e,n){var r=ea(t,e),i=e&&null!=e.highlightKey?Tc(e.highlightKey):null;null!=r?q(Eo(r),(function(e){pm(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){pm(t,n,i)}))}function gm(t){return hm(t.model)}function vm(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&cm(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),ym[l]}xa(fm,["dispose"]),Ia(fm);var ym={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)}}},mm=fm,_m="\0__throttleOriginMethod",xm="\0__throttleRate",bm="\0__throttleType";function wm(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 f=function(){for(var t=[],f=0;f<arguments.length;f++)t[f]=arguments[f];r=(new Date).getTime(),o=this,a=t;var p=s||e,d=s||n;s=null,i=r-(d?l:u)-p,clearTimeout(c),d?c=setTimeout(h,p):i>=0?h():c=setTimeout(h,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){s=t},f}function Sm(t,e,n,r){var i=t[e];if(i){var o=i[_m]||i,a=i[bm],s=i[xm];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=wm(o,n,"debounce"===r),i[_m]=o,i[bm]=r,i[xm]=n}return i}}function Mm(t,e){var n=t[e];n&&n[_m]&&(t[e]=n[_m])}var Cm=na(),Tm={itemStyle:Aa(yp,!0),lineStyle:Aa(dp,!0)},Im={lineStyle:"stroke",itemStyle:"fill"};function Am(t,e){var n=t.visualStyleMapper||Tm[e];return n||(console.warn("Unkown style type '"+e+"'."),Tm.itemStyle)}function Dm(t,e){var n=t.visualDrawType||Im[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var km={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=Am(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Dm(t,r),u=a[l],c=ot(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||"function"===typeof a.fill?f:a.fill,a.stroke="auto"===a.stroke||"function"===typeof a.stroke?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=j({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}}},Lm=new bp,Om={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=Am(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){Lm.option=n[r];var a=i(Lm),s=t.ensureUniqueItemVisual(e,"style");j(s,a),Lm.option.decal&&(t.setItemVisual(e,"decal",Lm.option.decal),Lm.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Pm={performRawSeries:!0,overallReset:function(t){var e=At();t.eachSeries((function(t){if(t.useColorPaletteOnData){var n=e.get(t.type);n||(n={},e.set(t.type,n)),Cm(t).scope=n}})),t.eachSeries((function(e){if(e.useColorPaletteOnData&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=Cm(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Dm(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},Em=Math.PI;function Rm(t,e){e=e||{},H(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 Ui,r=new ru({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new yu({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 ru({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new Uh({shape:{startAngle:-Em/2,endAngle:-Em/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*Em/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Em/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}var Nm=function(){function t(t,e,n,r){this._stageTaskMap=At(),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,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},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(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=At();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;q(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";wt(!(r.reset&&r.overallReset),o),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))}q(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,f=c.agentStubMap;f.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);f.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=At(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||ry({plan:Gm,reset:jm,count:Um}));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||ry({reset:zm});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=At(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,f="";function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,ry({reset:Bm,onDirty:Fm})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}wt(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,p):u?u(n,r).each(p):(c=!1,q(n.getSeries(),p)),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 ot(t)&&(t={overallReset:t,seriesType:Xm(t)}),t.uid=Sp("stageHandler"),e&&(t.visualType=e),t},t}();function zm(t){t.overallReset(t.ecModel,t.api,t.payload)}function Bm(t){return t.overallProgress&&Vm}function Vm(){this.agent.dirty(),this.getDownstream().dirty()}function Fm(){this.agent&&this.agent.dirty()}function Gm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function jm(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Eo(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Z(e,(function(t,e){return Wm(e)})):Hm}var Hm=Wm(0);function Wm(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 Um(t){return t.data.count()}function Xm(t){$m=null;try{t(Ym,qm)}catch(e){}return $m}var $m,Ym={},qm={};function Zm(t,e){for(var n in e.prototype)t[n]=Ot}Zm(Ym,Fg),Zm(qm,Hg),Ym.eachSeriesByType=Ym.eachRawSeriesByType=function(t){$m=t},Ym.eachComponent=function(t){"series"===t.mainType&&t.subType&&($m=t.subType)};var Km=Nm,Jm=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Qm={color:Jm,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Jm]},t_="#B9B8CE",e_="#100C2A",n_=function(){return{axisLine:{lineStyle:{color:t_}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},r_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],i_={darkMode:!0,color:r_,backgroundColor:e_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:t_}},textStyle:{color:t_},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:t_}},dataZoom:{borderColor:"#71708A",textStyle:{color:t_},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:t_}},timeline:{lineStyle:{color:t_},label:{color:t_},controlStyle:{color:t_,borderColor:t_}},calendar:{itemStyle:{color:e_},dayLabel:{color:t_},monthLabel:{color:t_},yearLabel:{color:t_}},timeAxis:n_(),logAxis:n_(),valueAxis:n_(),categoryAxis:n_(),line:{symbol:"circle"},graph:{color:r_},gauge:{title:{color:t_},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:t_},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};i_.categoryAxis.splitLine.show=!1;var o_=i_,a_=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(at(t)){var i=ya(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};q(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}(),s_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){var r=t.get("symbol"),i=t.get("symbolSize"),o=t.get("symbolKeepAspect"),a=t.get("symbolRotate"),s=t.get("symbolOffset"),l=ot(r),u=ot(i),c=ot(a),h=ot(s),f=l||u||c||h,p=!l&&r?r:t.defaultSymbol,d=u?null:i,g=c?null:a,v=h?null:s;if(n.setVisual({legendIcon:t.legendIcon||p,symbol:p,symbolSize:d,symbolKeepAspect:o,symbolRotate:g,symbolOffset:v}),!e.isSeriesFiltered(t))return{dataEach:f?y:null}}function y(e,n){var o=t.getRawValue(n),f=t.getDataParams(n);l&&e.setItemVisual(n,"symbol",r(o,f)),u&&e.setItemVisual(n,"symbolSize",i(o,f)),c&&e.setItemVisual(n,"symbolRotate",a(o,f)),h&&e.setItemVisual(n,"symbolOffset",s(o,f))}}},l_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?r:null}}function r(t,e){var n=t.getItemModel(e),r=n.getShallow("symbol",!0),i=n.getShallow("symbolSize",!0),o=n.getShallow("symbolRotate",!0),a=n.getShallow("symbolOffset",!0),s=n.getShallow("symbolKeepAspect",!0);null!=r&&t.setItemVisual(e,"symbol",r),null!=i&&t.setItemVisual(e,"symbolSize",i),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=a&&t.setItemVisual(e,"symbolOffset",a),null!=s&&t.setItemVisual(e,"symbolKeepAspect",s)}}};function u_(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function c_(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function h_(t,e,n,r){switch(n){case"color":var i=t.ensureUniqueItemVisual(e,"style");i[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);break;default:0}}var f_=2*Math.PI,p_=dl.CMD,d_=["top","right","bottom","left"];function g_(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);break}}function v_(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+t,h=s*n+e;if(Math.abs(r-i)%f_<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var f=r;r=_l(i),i=_l(f)}else r=_l(r),i=_l(i);r>i&&(i+=f_);var p=Math.atan2(s,a);if(p<0&&(p+=f_),p>=r&&p<=i||p+f_>=r&&p+f_<=i)return l[0]=c,l[1]=h,u-n;var d=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(_))}function y_(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,f=Math.sqrt(c*c+h*h);c/=f,h/=f;var p=l*c+u*h,d=p/f;s&&(d=Math.min(Math.max(d,0),1)),d*=f;var g=a[0]=t+d*c,v=a[1]=e+d*h;return Math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function m_(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 __=[];function x_(t,e,n){var r=m_(e.x,e.y,e.width,e.height,t.x,t.y,__);return n.set(__[0],__[1]),r}function b_(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,f=t.y,p=0;p<c.length;){var d=c[p++];1===p&&(o=c[p],a=c[p+1],s=o,l=a);var g=u;switch(d){case p_.M:s=c[p++],l=c[p++],o=s,a=l;break;case p_.L:g=y_(o,a,c[p],c[p+1],h,f,__,!0),o=c[p++],a=c[p++];break;case p_.C:g=Ms(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,f,__),o=c[p++],a=c[p++];break;case p_.Q:g=Ls(o,a,c[p++],c[p++],c[p],c[p+1],h,f,__),o=c[p++],a=c[p++];break;case p_.A:var v=c[p++],y=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+v,i=Math.sin(x)*_+y,p<=1&&(s=r,l=i);var S=(h-v)*_/m+v;g=v_(v,y,_,x,x+b,w,S,f,__),o=Math.cos(x+b)*m+v,a=Math.sin(x+b)*_+y;break;case p_.R:s=o=c[p++],l=a=c[p++];var M=c[p++],C=c[p++];g=m_(s,l,M,C,h,f,__);break;case p_.Z:g=y_(o,a,s,l,h,f,__,!0),o=s,a=l;break}g<u&&(u=g,n.set(__[0],__[1]))}return u}var w_=new ui,S_=new ui,M_=new ui,C_=new ui,T_=new ui;function I_(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||d_,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),h=c&&qr([],c),f=e.get("length2")||0;u&&M_.copy(u);for(var p=0;p<a.length;p++){var d=a[p];g_(d,0,s,w_,C_),ui.scaleAndAdd(S_,w_,C_,f),S_.transform(h);var g=t.getBoundingRect(),v=u?u.distance(S_):t instanceof Fl?b_(S_,t.path,M_):x_(S_,g,M_);v<l&&(l=v,S_.transform(c),M_.transform(c),M_.toArray(o[0]),S_.toArray(o[1]),w_.toArray(o[2]))}k_(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var A_=[],D_=new ui;function k_(t,e){if(e<=180&&e>0){e=e/180*Math.PI,w_.fromArray(t[0]),S_.fromArray(t[1]),M_.fromArray(t[2]),ui.sub(C_,w_,S_),ui.sub(T_,M_,S_);var n=C_.len(),r=T_.len();if(!(n<.001||r<.001)){C_.scale(1/n),T_.scale(1/r);var i=C_.dot(T_),o=Math.cos(e);if(o<i){var a=y_(S_.x,S_.y,M_.x,M_.y,w_.x,w_.y,A_,!1);D_.fromArray(A_),D_.scaleAndAdd(T_,a/Math.tan(Math.PI-e));var s=M_.x!==S_.x?(D_.x-S_.x)/(M_.x-S_.x):(D_.y-S_.y)/(M_.y-S_.y);if(isNaN(s))return;s<0?ui.copy(D_,S_):s>1&&ui.copy(D_,M_),D_.toArray(t[1])}}}}function L_(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,w_.fromArray(t[0]),S_.fromArray(t[1]),M_.fromArray(t[2]),ui.sub(C_,S_,w_),ui.sub(T_,M_,S_);var r=C_.len(),i=T_.len();if(!(r<.001||i<.001)){C_.scale(1/r),T_.scale(1/i);var o=C_.dot(e),a=Math.cos(n);if(o<a){var s=y_(S_.x,S_.y,M_.x,M_.y,w_.x,w_.y,A_,!1);D_.fromArray(A_);var l=Math.PI/2,u=Math.acos(T_.dot(e)),c=l+u-n;if(c>=l)ui.copy(D_,M_);else{D_.scaleAndAdd(T_,s/Math.tan(Math.PI/2-c));var h=M_.x!==S_.x?(D_.x-S_.x)/(M_.x-S_.x):(D_.y-S_.y)/(M_.y-S_.y);if(isNaN(h))return;h<0?ui.copy(D_,S_):h>1&&ui.copy(D_,M_)}D_.toArray(t[1])}}}}function O_(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 P_(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=Jt(r[0],r[1]),o=Jt(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=ne([],r[1],r[0],a/i),l=ne([],r[1],r[2],a/o),u=ne([],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 E_(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<Tu.length;l++){var u=Tu[l],c=e[u],h="normal"===u;if(c){var f=c.get("show"),p=h?s:mt(i.states[u]&&i.states[u].ignore,s);if(p||!mt(f,a)){var d=h?r:r&&r.states.normal;d&&(d.ignore=!0);continue}r||(r=new Ph,t.setTextGuideLine(r),h||!s&&a||O_(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),O_(r,!1,u,c)}}if(r){H(r.style,n),r.style.fill=null;var g=o.get("showAbove"),v=t.textGuideLineConfig=t.textGuideLineConfig||{};v.showAbove=g||!1,r.buildPath=P_}}else r&&t.removeTextGuideLine()}function R_(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Cu.length;r++){var i=Cu[r];n[i]=t.getModel([i,e])}return n}function N_(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 af(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 z_(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=[],h=0,f=0;f<a;f++){var p=t[f],d=p.rect;s=d[e]-l,s<0&&(d[e]-=s,p.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=d[e]+d[n]}h>0&&o&&w(-h/a,0,a);var v,y,m=t[0],_=t[a-1];return x(),v<0&&S(-v,.8),y<0&&S(y,.8),x(),b(v,y,1),b(y,v,-1),x(),v<0&&M(-v),y<0&&M(y),u}function x(){v=m.rect[e]-r,y=i-_.rect[e]-_.rect[n]}function b(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&S(-i*n,1)}else S(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function S(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++){var f=o[l]*h;w(f,0,l+1)}else for(l=a-1;l>0;l--){f=o[l-1]*h;w(-f,l,a)}}}function M(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?w(n,0,r+1):w(-n,a-r-1,a),t-=n,t<=0)return}}function B_(t,e,n,r){return z_(t,"x","width",e,n,r)}function V_(t,e,n,r){return z_(t,"y","height",e,n,r)}function F_(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new _i(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,f=!1,p=0;p<e.length;p++){var d=e[p];if(n.intersect(d.rect)){if(a&&d.axisAligned){f=!0;break}if(d.obb||(d.obb=new af(d.localRect,d.transform)),h||(h=new af(s,l)),h.intersect(d.obb)){f=!0;break}}}f?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function G_(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function j_(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:G_(r&&r.shape.points)}}var H_=["align","verticalAlign","width","height","fontSize"],W_=new si,U_=na(),X_=na();function $_(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var Y_=["x","y","rotation"],q_=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,s=a.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();_i.applyTransform(u,u,l),l?W_.setLocalTransform(l):(W_.x=W_.y=W_.rotation=W_.originX=W_.originY=0,W_.scaleX=W_.scaleY=1);var c,h=r.__hostTarget;if(h){c=h.getBoundingRect().plain();var f=h.getComputedTransform();_i.applyTransform(c,c,f)}var p=c&&h.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:W_.x,y:W_.y,scaleX:W_.scaleX,scaleY:W_.scaleY,rotation:W_.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:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(ot(r)||tt(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=mu(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(){I_(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="function"===typeof o.layoutOption?o.layoutOption(j_(o,s)):o.layoutOption,u=u||{},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=lo(u.x,e),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=lo(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:u.labelLinePoints}),h=!1)}var p=U_(a);p.needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var d=0;d<H_.length;d++){var g=H_[d];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var y=o.seriesModel.getData(o.dataType);v=y.getItemModel(o.dataIndex)}a.on("drag",r(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=N_(this._labelList),i=J(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=J(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));B_(i,0,e),V_(o,0,n);var a=J(r,(function(t){return t.layoutOption.hideOverlap}));F_(a)},t.prototype.processLabelsOverall=function(){var t=this;q(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=U_(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=mu(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");E_(t,R_(a),s),I_(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Of(t)){var i=U_(n),o=i.oldLayout,a=mu(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(U(c,"select")>=0&&n.attr(i.oldLayoutSelect),U(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),If(n,l,e,s)}else if(n.attr(l),!sp(n).valueAnimation){var h=mt(n.style.opacity,1);n.style.opacity=0,Af(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};$_(f,l,Y_),$_(f,n.states.select,Y_)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};$_(p,l,Y_),$_(p,n.states.emphasis,Y_)}up(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=X_(r),o=i.oldLayout;var d={points:r.shape.points};o?(r.attr({shape:o}),If(r,{shape:d},e)):(r.setShape(d),r.style.strokePercent=0,Af(r,{style:{strokePercent:1}},e)),i.oldLayout=d}},t}(),Z_=q_;function K_(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}q([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=j({},e),i.dispatchAction(j(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function J_(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=i.selected,a=0;a<r.length;a++)if(r[a].seriesIndex===e){var s=t.getData(),l=ea(s,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:it(l)?s.getName(l[0]):s.getName(l),selected:j({},t.option.selectedMap)})}}))}function Q_(t,e,n){t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(J_("map","selectchanged",e,r,t),J_("pie","selectchanged",e,r,t)):"select"===t.fromAction?(J_("map","selected",e,r,t),J_("pie","selected",e,r,t)):"unselect"===t.fromAction&&(J_("map","unselected",e,r,t),J_("pie","unselected",e,r,t))}))}function tx(t,e,n){var r;while(t){if(e(t)&&(r=t,n))break;t=t.__hostTarget||t.parent}return r}var ex=Math.round(9*Math.random()),nx=function(){function t(){this._id="__ec_inner_"+ex++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return"function"===typeof Object.defineProperty?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}(),rx=nx,ix=Fl.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()}}),ox=Fl.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()}}),ax=Fl.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),f=Math.cos(u),p=.6*a,d=.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+f*p,n,r-d,n,r),t.bezierCurveTo(n,r-d,n-c+h*p,l+s+f*p,n-c,l+s),t.closePath()}}),sx=Fl.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()}}),lx={line:zh,rect:ru,roundRect:ru,square:ru,circle:th,diamond:ox,pin:ax,arrow:sx,triangle:ix},ux={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}},cx={};q(lx,(function(t,e){cx[e]=new t}));var hx=Fl.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=Li(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=cx[r];i||(r="rect",i=cx[r]),ux[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function fx(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 px(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://")?_f(t.slice(8),new _i(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?mf(t.slice(7),{},new _i(e,n,r,i),a?"center":"cover"):new hx({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),s.__isEmptyBrush=l,s.setColor=fx,o&&s.setColor(o),s}function dx(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;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=isNaN(r)?0:r,i=isNaN(i)?1:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a;var s=t.createLinearGradient(r,o,i,a);return s}function gx(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;e.global||(a=a*r+n.x,s=s*i+n.y,l*=o);var u=t.createRadialGradient(a,s,0,a,s,l);return u}function vx(t,e,n){for(var r="radial"===e.type?gx(t,e,n):dx(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function yx(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function mx(t,e){return t&&"solid"!==t&&e>0?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:lt(t)?[t]:it(t)?t:null):null}var _x=new dl(!0);function xx(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function bx(t){var e=t.fill;return null!=e&&"none"!==e}function Sx(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 Mx(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 Cx(t,e,n){var r=Ea(e.image,e.__image,n);if(Na(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i.setTransform){var o=new DOMMatrix;o.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),o.scaleSelf(e.scaleX||1,e.scaleY||1),o.translateSelf(e.x||0,e.y||0),i.setTransform(o)}return i}}function Tx(t,e,n,r){var i=xx(n),o=bx(n),a=n.strokePercent,s=a<1,l=!e.path;e.silent&&!s||!l||e.createPathProxy();var u=e.path||_x;if(!r){var c=n.fill,h=n.stroke,f=o&&!!c.colorStops,p=i&&!!h.colorStops,d=o&&!!c.image,g=i&&!!h.image,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0;(f||p)&&(x=e.getBoundingRect()),f&&(v=e.__dirty?vx(t,c,x):e.__canvasFillGradient,e.__canvasFillGradient=v),p&&(y=e.__dirty?vx(t,h,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=y),d&&(m=e.__dirty||!e.__canvasFillPattern?Cx(t,c,e):e.__canvasFillPattern,e.__canvasFillPattern=m),g&&(_=e.__dirty||!e.__canvasStrokePattern?Cx(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=m),f?t.fillStyle=v:d&&(m?t.fillStyle=m:o=!1),p?t.strokeStyle=y:g&&(_?t.strokeStyle=_:i=!1)}var b=n.lineDash&&n.lineWidth>0&&mx(n.lineDash,n.lineWidth),w=n.lineDashOffset,S=!!t.setLineDash,M=e.getGlobalScale();if(u.setScale(M[0],M[1],e.segmentIgnoreThreshold),b){var C=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;C&&1!==C&&(b=Z(b,(function(t){return t/C})),w/=C)}var T=!0;(l||e.__dirty&an||b&&!S&&i)&&(u.setDPR(t.dpr),s?u.setContext(null):(u.setContext(t),T=!1),u.reset(),b&&!S&&(u.setLineDash(b),u.setLineDashOffset(w)),e.buildPath(u,e.shape,r),u.toStatic(),e.pathUpdated()),T&&u.rebuildPath(t,s?a:1),b&&S&&(t.setLineDash(b),t.lineDashOffset=w),r||(n.strokeFirst?(i&&Mx(t,n),o&&Sx(t,n)):(o&&Sx(t,n),i&&Mx(t,n))),b&&S&&t.setLineDash([])}function Ix(t,e,n){var r=e.__image=Ea(n.image,e.__image,e,e.onload);if(r&&Na(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){u=n.sx,c=n.sy;var h=a-u,f=s-c;t.drawImage(r,u,c,h,f,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function Ax(t,e,n){var r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||bi,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var i=void 0;if(t.setLineDash){var o=n.lineDash&&n.lineWidth>0&&mx(n.lineDash,n.lineWidth),a=n.lineDashOffset;if(o){var s=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(o=Z(o,(function(t){return t/s})),a/=s),t.setLineDash(o),t.lineDashOffset=a,i=!0}}n.strokeFirst?(xx(n)&&t.strokeText(r,n.x,n.y),bx(n)&&t.fillText(r,n.x,n.y)):(bx(n)&&t.fillText(r,n.x,n.y),xx(n)&&t.strokeText(r,n.x,n.y)),i&&t.setLineDash([])}}var Dx=["shadowBlur","shadowOffsetX","shadowOffsetY"],kx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Lx(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){o||(jx(t,i),o=!0);var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Qa.opacity:a}(r||e.blend!==n.blend)&&(o||(jx(t,i),o=!0),t.globalCompositeOperation=e.blend||Qa.blend);for(var s=0;s<Dx.length;s++){var l=Dx[s];(r||e[l]!==n[l])&&(o||(jx(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(jx(t,i),o=!0),t.shadowColor=e.shadowColor||Qa.shadowColor),o}function Ox(t,e,n,r,i){var o=Hx(e,i.inHover),a=r?null:n&&Hx(n,i.inHover)||{};if(o===a)return!1;var s=Lx(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(jx(t,i),s=!0),t.fillStyle=o.fill),(r||o.stroke!==a.stroke)&&(s||(jx(t,i),s=!0),t.strokeStyle=o.stroke),(r||o.opacity!==a.opacity)&&(s||(jx(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(jx(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<kx.length;c++){var h=kx[c],f=h[0];(r||o[f]!==a[f])&&(s||(jx(t,i),s=!0),t[f]=o[f]||h[1])}return s}function Px(t,e,n,r,i){return Lx(t,Hx(e,i.inHover),n&&Hx(n,i.inHover),r,i)}function Ex(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 Rx(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Ex(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}function Nx(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var zx=1,Bx=2,Vx=3,Fx=4;function Gx(t){var e=bx(t),n=xx(t);return!(t.lineDash||!(+e^+n)||e&&"string"!==typeof t.fill||n&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function jx(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Hx(t,e){return e&&t.__hoverStyle||t.style}function Wx(t,e){Ux(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ux(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~rn,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!yx(o,a)||(a&&a.length&&(jx(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(jx(t,n),t.save(),Rx(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=e instanceof Fl&&e.autoBatch&&Gx(e.style);s||Nx(i,u.transform)?(jx(t,n),Ex(t,e)):c||jx(t,n);var h=Hx(e,n.inHover);e instanceof Fl?(n.lastDrawType!==zx&&(l=!0,n.lastDrawType=zx),Ox(t,e,u,l,n),c&&(n.batchFill||n.batchStroke)||t.beginPath(),Tx(t,e,h,c),c&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):e instanceof Hl?(n.lastDrawType!==Vx&&(l=!0,n.lastDrawType=Vx),Ox(t,e,u,l,n),Ax(t,e,h)):e instanceof Yl?(n.lastDrawType!==Bx&&(l=!0,n.lastDrawType=Bx),Px(t,e,u,l,n),Ix(t,e,h)):e instanceof uf&&(n.lastDrawType!==Fx&&(l=!0,n.lastDrawType=Fx),Xx(t,e,n)),c&&r&&jx(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function Xx(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++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ux(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;u<c;u++){l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ux(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var $x,Yx=new rx,qx=new bn(100),Zx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Kx(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&Yx["delete"](t);var o=Yx.get(t);if(o)return o;var a=H(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 l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Yx.set(t,s),t.dirty=!1,s;function l(t){for(var e,o=[n],s=!0,l=0;l<Zx.length;++l){var u=a[Zx[l]],c=typeof u;if(null!=u&&!it(u)&&"string"!==c&&"number"!==c&&"boolean"!==c){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var h=qx.get(e);h&&(i?t.svgElement=h:t.image=h)}var f,p=Qx(a.dashArrayX),d=tb(a.dashArrayY),g=Jx(a.symbol),v=eb(p),y=nb(d),m=!i&&W(),_=i&&r.painter.createSVGElement("g"),x=b();function b(){for(var t=1,e=0,n=v.length;e<n;++e)t=Lo(t,v[e]);var r=1;for(e=0,n=g.length;e<n;++e)r=Lo(r,g[e].length);t*=r;var i=y*v.length*g.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}function w(){f&&(f.clearRect(0,0,m.width,m.height),a.backgroundColor&&(f.fillStyle=a.backgroundColor,f.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(!(t<=0)){var o=-y,s=0,l=0,u=0;while(o<x.height){if(s%2===0){var c=l/2%g.length,h=0,v=0,b=0;while(h<2*x.width){var w=0;for(e=0;e<p[u].length;++e)w+=p[u][e];if(w<=0)break;if(v%2===0){var S=.5*(1-a.symbolSize),M=h+p[u][v]*S,C=o+d[s]*S,T=p[u][v]*a.symbolSize,I=d[s]*a.symbolSize,A=b/2%g[c].length;D(M,C,T,I,g[c][A])}h+=p[u][v],++b,++v,v===p[u].length&&(v=0)}++u,u===p.length&&(u=0)}o+=d[s],++l,++s,s===d.length&&(s=0)}}function D(t,e,o,s,l){var u=i?1:n,c=px(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);i?_.appendChild(r.painter.paintOne(c)):Wx(f,c)}}m&&(m.width=x.width*n,m.height=x.height*n,f=m.getContext("2d")),w(),s&&qx.put(e,m||_),t.image=m,t.svgElement=_,t.svgWidth=x.width,t.svgHeight=x.height}}function Jx(t){if(!t||0===t.length)return[["rect"]];if("string"===typeof t)return[[t]];for(var e=!0,n=0;n<t.length;++n)if("string"!==typeof t[n]){e=!1;break}if(e)return Jx([t]);var r=[];for(n=0;n<t.length;++n)"string"===typeof t[n]?r.push([t[n]]):r.push(t[n]);return r}function Qx(t){if(!t||0===t.length)return[[0,0]];if("number"===typeof t){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if("number"!==typeof t[r]){n=!1;break}if(n)return Qx([t]);var i=[];for(r=0;r<t.length;++r)if("number"===typeof t[r]){e=Math.ceil(t[r]);i.push([e,e])}else{e=Z(t[r],(function(t){return Math.ceil(t)}));e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function tb(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if("number"===typeof t){var e=Math.ceil(t);return[e,e]}var n=Z(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function eb(t){return Z(t,(function(t){return nb(t)}))}function nb(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function rb(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");if(n){var i=r.ensureUniqueItemVisual(t,"style");i.decal=Kx(n,e)}}));var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=Kx(i,e)}}}))}function ib(t){if(at(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var ob={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"},ab=tt(ob),sb={"alignment-baseline":"textBaseline","stop-color":"stopColor"},lb=tt(sb),ub=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=ib(t);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var r=new Ui;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),gb(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(_b(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=bb(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=Ab(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var f=r;r=new Ui,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new ru({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=$x[s];if(u&&Lt($x,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 f=cb[s];if(f&&Lt(cb,s)){var p=f.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=p)}}if(a&&a.isGroup){var g=t.firstChild;while(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 Hl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pb(e,n),gb(t,n,this._defsUsePending,!1,!1),vb(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=function(){$x={g:function(t,e){var n=new Ui;return pb(e,n),gb(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new ru;return pb(e,n),gb(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 th;return pb(e,n),gb(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 zh;return pb(e,n),gb(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 rh;return pb(e,n),gb(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=db(r));var i=new kh({shape:{points:n||[]},silent:!0});return pb(e,i),gb(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=db(r));var i=new Ph({shape:{points:n||[]},silent:!0});return pb(e,i),gb(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Yl;return pb(e,n),gb(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink: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 Ui;return pb(e,a),gb(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 Ui;return pb(e,a),gb(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",r=qc(n);return pb(e,r),gb(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),t}(),cb={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 Kh(e,n,r,i);return hb(t,o),fb(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 Qh(e,n,r);return hb(t,i),fb(t,i),i}};function hb(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function fb(t,e){var n=t.firstChild;while(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={};Tb(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function pb(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),H(e.__inheritedStyle,t.__inheritedStyle))}function db(t){for(var e=bb(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 gb(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(Mb(t,e),Tb(t,a,s),r||Ib(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=mb(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=mb(o,"stroke",a.stroke,n)),q(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),q(["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=Z(bb(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function vb(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)}}var yb=/^url\(\s*#(.*?)\)/;function mb(t,e,n,r){var i=n&&n.match(yb);if(!i)return"none"===n&&(n=null),n;var o=St(i[1]);r.push([t,e,o])}function _b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}var xb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bb(t){return t.match(xb)||[]}var wb=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Sb=Math.PI/180;function Mb(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(wb,(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=bb(a);switch(i=i||jr(),s){case"translate":Xr(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Yr(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":$r(i,i,-parseFloat(l[0])*Sb);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Sb);Ur(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Sb);Ur(i,[1,c,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]);break}}e.setLocalTransform(i)}}var Cb=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Tb(t,e,n){var r=t.getAttribute("style");if(r){var i;Cb.lastIndex=0;while(null!=(i=Cb.exec(r))){var o=i[1],a=Lt(ob,o)?ob[o]:null;a&&(e[a]=i[2]);var s=Lt(sb,o)?sb[o]:null;s&&(n[s]=i[2])}}}function Ib(t,e,n){for(var r=0;r<ab.length;r++){var i=ab[r],o=t.getAttribute(i);null!=o&&(e[ob[i]]=o)}for(r=0;r<lb.length;r++){i=lb[r],o=t.getAttribute(i);null!=o&&(n[sb[i]]=o)}}function Ab(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)}}function Db(t,e){var n=new ub;return n.parse(t,e)}var kb=1e-8;function Lb(t,e){return Math.abs(t-e)<kb}function Ob(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+=wl(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return Lb(i[0],s[0])&&Lb(i[1],s[1])||(r+=wl(i[0],i[1],s[0],s[1],e,n)),0!==r}var Pb=[],Eb=function(){function t(t){this.name=t}return t.prototype.getCenter=function(){},t}(),Rb=function(t){function e(e,n,r){var i=t.call(this,e)||this;if(i.type="geoJSON",i.geometries=n,r)r=[r[0],r[1]];else{var o=i.getBoundingRect();r=[o.x+o.width/2,o.y+o.height/2]}return i._center=r,i}return v(e,t),e.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],r=[-e,-e],i=[],o=[],a=this.geometries,s=0;s<a.length;s++)if("polygon"===a[s].type){var l=a[s].exterior;Gs(l,i,o),ie(n,n,i),oe(r,r,o)}return 0===s&&(n[0]=n[1]=r[0]=r[1]=0),this._rect=new _i(n[0],n[1],r[0]-n[0],r[1]-n[1])},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++)if("polygon"===n[r].type){var o=n[r].exterior,a=n[r].interiors;if(Ob(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(Ob(a[s],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 _i(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var c=l[u].exterior,h=l[u].interiors,f=0;f<c.length;f++)re(c[f],c[f],s);for(var p=0;p<(h?h.length:0);p++)for(f=0;f<h[p].length;f++)re(h[p][f],h[p][f],s)}i=this._rect,i.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.prototype.getCenter=function(){return this._center},e.prototype.setCenter=function(t){this._center=t},e}(Eb),Nb=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return v(e,t),e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this._calculateCenter()),t},e.prototype._calculateCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=Hr(Pb),i=t;while(i&&!i.isGeoSVGGraphicRoot)Ur(r,i.getLocalTransform(),r),i=i.parent;return qr(r,r),re(n,n,r),n},e}(Eb),zb=At(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Bb=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=At(),this._freedGraphics=[],this._mapName=t,this._parsedXML=ib(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=Fb(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;try{e=t&&Db(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,wt(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var r=new Ui;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,a=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,h=void 0;if(null!=i?(l=0,c=i):a&&(l=a.x,c=a.width),null!=o?(u=0,h=o):a&&(u=a.y,h=a.height),null==l||null==u){var f=n.getBoundingRect();null==l&&(l=f.x,c=f.width),null==u&&(u=f.y,h=f.height)}s=this._boundingRect=new _i(l,u,c,h)}if(a){var p=Ab(a,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new ru({shape:s.plain()}));var d=[];return q(e.named,(function(t){null!=zb.get(t.svgNodeTagLower)&&(d.push(t),Vb(t.el))})),{root:r,boundingRect:s,named:d}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function Vb(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function Fb(t){var e=[],n=At();return q(t,(function(t){if(null==t.namedFrom){var r=new Nb(t.name,t.el);e.push(r),n.set(t.name,r)}})),{regions:e,regionsMap:n}}function Gb(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);for(var r=e.features,i=0;i<r.length;i++){var o=r[i],a=o.geometry;if("Polygon"===a.type)for(var s=a.coordinates,l=0;l<s.length;l++)s[l]=jb(s[l],a.encodeOffsets[l],n);else if("MultiPolygon"===a.type)for(s=a.coordinates,l=0;l<s.length;l++)for(var u=s[l],c=0;c<u.length;c++)u[c]=jb(u[c],a.encodeOffsets[l][c],n)}return e.UTF8Encoding=!1,e}function jb(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),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function Hb(t,e){return t=Gb(t),Z(J(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];if("Polygon"===r.type){var o=r.coordinates;i.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if("MultiPolygon"===r.type){o=r.coordinates;q(o,(function(t){t[0]&&i.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}))}var a=new Rb(n[e||"name"],i,n.cp);return a.properties=n,a}))}for(var Wb=[126,25],Ub="南海诸岛",Xb=[[[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]]],$b=0;$b<Xb.length;$b++)for(var Yb=0;Yb<Xb[$b].length;Yb++)Xb[$b][Yb][0]/=10.5,Xb[$b][Yb][1]/=-14,Xb[$b][Yb][0]+=Wb[0],Xb[$b][Yb][1]+=Wb[1];function qb(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===Ub)return;e.push(new Rb(Ub,Z(Xb,(function(t){return{type:"polygon",exterior:t}})),Wb))}}var Zb={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function Kb(t,e){if("china"===t){var n=Zb[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}var Jb={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function Qb(t,e){if("world"===t){var n=Jb[e.name];if(n){var r=[n[0],n[1]];e.setCenter(r)}}}var tw=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function ew(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:tw[0]})}var nw="name",rw=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=At(),this._mapName=t,this._specialAreas=n,this._geoJSON=ow(e)}return t.prototype.load=function(t,e){e=e||nw;var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:iw(r)})}var i=At(),o=[];return q(n.regions,(function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new _i(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?Hb(r,t):[]}catch(i){throw new Error("Invalid geoJson format\n"+i.message)}return qb(n,e),q(e,(function(t){var e=t.name;Kb(n,t),Qb(n,t),ew(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 iw(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function ow(t){return at(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var aw=At(),sw={registerMap:function(t,e,n){if(e.svg){var r=new Bb(t,e.svg);aw.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;r=new rw(t,i,n);aw.set(t,r)}},getGeoResource:function(t){return aw.get(t)},getMapForUser:function(t){var e=aw.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var r=aw.get(t);if(r)return r.load(e,n)}},lw=wt,uw=q,cw=ot,hw=ut,fw=U,pw="undefined"!==typeof window,dw="5.1.2",gw={zrender:"5.1.1"},vw=1,yw=800,mw=900,_w=1e3,xw=2e3,bw=5e3,ww=1e3,Sw=1100,Mw=2e3,Cw=3e3,Tw=4e3,Iw=4500,Aw=4600,Dw=5e3,kw=6e3,Lw=7e3,Ow={PROCESSOR:{FILTER:_w,SERIES_FILTER:yw,STATISTIC:bw},VISUAL:{LAYOUT:ww,PROGRESSIVE_LAYOUT:Sw,GLOBAL:Mw,CHART:Cw,POST_CHART_LAYOUT:Aw,COMPONENT:Tw,BRUSH:Dw,CHART_ITEM:Iw,ARIA:kw,DECAL:Lw}},Pw="__flagInMainProcess",Ew="__optionUpdated",Rw="__needsUpdateStatus",Nw=/^[a-zA-Z0-9_]+$/,zw="__connectUpdateStatus",Bw=0,Vw=1,Fw=2;function Gw(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Hw(this,t,e);vS(this.id)}}function jw(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Hw(this,t,e)}}function Hw(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ce.prototype[e].apply(t,n)}var Ww,Uw,Xw,$w,Yw,qw,Zw,Kw,Jw,Qw,tS,eS,nS,rS,iS,oS,aS,sS,lS,uS,cS,hS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e}(ce),fS=hS.prototype;fS.on=jw("on"),fS.off=jw("off");var pS=function(t){function e(e,n,r){var i=t.call(this,new a_)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},"string"===typeof n&&(n=MS[n]),i._dom=e;var o="canvas",a=!1,s=i._zr=Ji(e,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,useDirtyRect:null==r.useDirtyRect?a:r.useDirtyRect});i._throttledZrFlush=wm(nt(s.flush,s),17),n=V(n),n&&Sv(n,!0),i._theme=n,i._locale=Np(r.locale||Ep),i._coordSysMgr=new Xg;var l=i._api=aS(i);function u(t,e){return t.__prio-e.__prio}return nn(SS,u),nn(_S,u),i._scheduler=new Km(i,l,_S,SS),i._messageCenter=new hS,i._labelManager=new Z_,i._initEvents(),i.resize=nt(i.resize,i),s.animation.on("frame",i._onframe,i),Qw(s,i),tS(s,i),Ct(i),i}return v(e,t),e.prototype._onframe=function(){if(!this._disposed){cS(this);var t=this._scheduler;if(this[Ew]){var e=this[Ew].silent;this[Pw]=!0,Ww(this),$w.update.call(this),this._zr.flush(),this[Pw]=!1,this[Ew]=!1,Kw.call(this,e),Jw.call(this,e)}else if(t.unfinished){var n=vw,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),qw(this,r),t.performVisualTasks(r),iS(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.setOption=function(t,e,n){if(this._disposed)vS(this.id);else{var r,i,o;if(hw(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[Pw]=!0,!this._model||e){var a=new Qg(this._api),s=this._theme,l=this._model=new Fg;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},xS),lS(this,o),n?(this[Ew]={silent:r},this[Pw]=!1,this.getZr().wakeUp()):(Ww(this),$w.update.call(this),this._zr.flush(),this[Ew]=!1,this[Pw]=!1,Kw.call(this,r),Jw.call(this,r))}},e.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||pw&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){if(S.canvasSupported)return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.getSvgDataURL=function(){if(S.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return q(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;uw(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.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return uw(r,(function(t){t.group.ignore=!1})),o}vS(this.id)},e.prototype.getConnectedDataURL=function(t){if(this._disposed)vS(this.id);else if(S.canvasSupported){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(IS[n]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();q(TS,(function(o,h){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(V(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:f,left:p.left,top:p.top})}})),a*=h,s*=h,l*=h,u*=h;var f=l-a,p=u-s,d=W(),g=Ji(d,{renderer:e?"svg":"canvas"});if(g.resize({width:f,height:p}),e){var v="";return uw(c,(function(t){var e=t.left-a,n=t.top-s;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new ru({shape:{x:0,y:0,width:f,height:p},style:{fill:t.connectedBackgroundColor}})),uw(c,(function(t){var e=new Yl({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},e.prototype.convertToPixel=function(t,e){return Yw(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Yw(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=ia(r,t);return q(i,(function(t,r){r.indexOf("Models")>=0&&q(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))}else 0}),this)}),this),!!n}vS(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=ia(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?u_(o,a,e):c_(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;uw(gS,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&tx(o,(function(t){var e=mu(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return r=j({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),uw(mS,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),uw(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Q_(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?vS(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)vS(this.id);else{this._disposed=!0,ua(this.getDom(),kS,"");var t=this._api,e=this._model;uw(this._componentsViews,(function(n){n.dispose(e,t)})),uw(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),delete TS[this.id]}},e.prototype.resize=function(t){if(this._disposed)vS(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[Ew]&&(null==r&&(r=this[Ew].silent),n=!0,this[Ew]=!1),this[Pw]=!0,n&&Ww(this),$w.update.call(this,{type:"resize",animation:j({duration:0},t&&t.animation)}),this[Pw]=!1,Kw.call(this,r),Jw.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)vS(this.id);else if(hw(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),CS[t]){var n=CS[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?vS(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=j({},t);return e.type=mS[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)vS(this.id);else if(hw(e)||(e={silent:!!e}),yS[t.type]&&this._model)if(this[Pw])this._pendingActions.push(t);else{var n=e.silent;Zw.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&S.browser.weChat&&this._throttledZrFlush(),Kw.call(this,n),Jw.call(this,n)}},e.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},e.prototype.appendData=function(t){if(this._disposed)vS(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(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"),t.hoverState===Mu&&t.states.emphasis?e.push("emphasis"):t.hoverState===Su&&t.states.blur&&e.push("blur"),t.useStates(e)}function e(t,e){var n=t._zr,r=n.storage,i=0;r.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!S.node&&!S.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function n(t,e){var n=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||(t.style.blend=n),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.style.blend=n}))}))}function r(t,e){t.preventAutoZ||i(e.group,t.get("z")||0,t.get("zlevel")||0,-1/0)}function i(t,e,n,r){var o=t.getTextContent(),a=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u<l.length;u++)r=Math.max(i(l[u],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(o&&(o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+2)),a){var c=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function o(t,e){e.group.traverse((function(t){if(!Of(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 a(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.group.traverse((function(e){if(e.states&&e.states.emphasis){if(Of(e))return;if(e instanceof Fl&&Dc(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}}))}Ww=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Uw(t,!0),Uw(t,!1),e.plan()},Uw=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=ya(t.type),f=e?lm.getClass(h.main,h.sub):mm.getClass(h.sub);0,c=new f,c.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)}},Xw=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=At(),uw(Eo(u),(function(t){var e=Yo(t,null);null!=e&&l.set(e,!0)}))),Ac(n)&&lc(t._api),o&&o.eachComponent(s,(function(e){if(!l||null==l.get(e.id)){if(Ac(n))if(e instanceof am)n.type!==Du||n.notBlur||hc(e,n,t._api);else{var i=fc(e.mainType,e.componentIndex,n.name,t._api),o=i.focusSelf,a=i.dispatchers;n.type===Du&&o&&!n.notBlur&&cc(e.mainType,e.componentIndex,t._api),a&&uw(a,(function(t){n.type===Du?ec(t):nc(t)}))}else Ic(n)&&e instanceof am&&(gc(e,n,t._api),vc(e),uS(t));c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}}),t)}else uw([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},$w={prepareAndUpdate:function(t){Ww(this),$w.update.call(this,t)},update:function(t){var e=this._model,n=this._api,r=this._zr,i=this._coordSysMgr,o=this._scheduler;if(e){e.setUpdatePayload(t),o.restoreData(e,t),o.performSeriesTasks(e),i.create(e,n),o.performDataProcessorTasks(e,t),qw(this,e),i.update(e,n),eS(e),o.performVisualTasks(e,t),nS(this,e,n,t);var a=e.get("backgroundColor")||"transparent",s=e.get("darkMode");if(S.canvasSupported)r.setBackgroundColor(a),null!=s&&"auto"!==s&&r.setDarkMode(s);else{var l=Rn(a);a=Xn(l,"rgb"),0===l[3]&&(a="transparent")}oS(e,n)}},updateTransform:function(t){var e=this,n=this._model,r=this._api;if(n){n.setUpdatePayload(t);var i=[];n.eachComponent((function(o,a){if("series"!==o){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,r,t);l&&l.update&&i.push(s)}else i.push(s)}}));var o=At();n.eachSeries((function(i){var a=e._chartsMap[i.__viewId];if(a.updateTransform){var s=a.updateTransform(i,n,r,t);s&&s.update&&o.set(i.uid,1)}else o.set(i.uid,1)})),eS(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0,dirtyMap:o}),iS(this,n,r,t,o),oS(n,this._api)}},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),mm.markUpdateMethod(t,"updateView"),eS(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),nS(this,this._model,this._api,t),oS(e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries((function(t){t.getData().clearAllVisual()})),mm.markUpdateMethod(t,"updateVisual"),eS(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent((function(r,i){if("series"!==r){var o=e.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,n,e._api,t)}})),n.eachSeries((function(r){var i=e._chartsMap[r.__viewId];i.updateVisual(r,n,e._api,t)})),oS(n,this._api))},updateLayout:function(t){$w.update.call(this,t)}},Yw=function(t,e,n,r){if(t._disposed)vS(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=ia(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}0}},qw=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},Zw=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=yS[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&ya(l[0]);this[Pw]=!0;var h=[t],f=!1;t.batch&&(f=!0,h=Z(t.batch,(function(e){return e=H(j({},e),t),e.batch=null,e})));var p,d=[],g=Ic(t),v=Ac(t);if(uw(h,(function(e){if(p=a.action(e,n._model,n._api),p=p||j({},e),p.type=s.event||p.type,d.push(p),v){var r=oa(t),i=r.queryOptionMap,o=r.mainTypeSpecified,l=o?i.keys()[0]:"series";Xw(n,u,e,l),uS(n)}else g?(Xw(n,u,e,"series"),uS(n)):c&&Xw(n,u,e,c.main,c.sub)})),"none"===u||v||g||c||(this[Ew]?(Ww(this),$w.update.call(this,t),this[Ew]=!1):$w[u].call(this,t)),p=f?{type:s.event||i,escapeConnect:o,batch:d}:d[0],this[Pw]=!1,!e){var y=this._messageCenter;if(y.trigger(p.type,p),g){var m={type:"selectchanged",escapeConnect:o,selected:yc(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};y.trigger(m.type,m)}}},Kw=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();Zw.call(this,n,t)}},Jw=function(t){!t&&this.trigger("updated")},Qw=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Ew]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},tS=function(t,e){t.on("mouseover",(function(t){var n=t.target,r=tx(n,Mc);r&&(pc(r,t,e._api),uS(e))})).on("mouseout",(function(t){var n=t.target,r=tx(n,Mc);r&&(dc(r,t,e._api),uS(e))})).on("click",(function(t){var n=t.target,r=tx(n,(function(t){return null!=mu(t).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",o=mu(r);e._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},eS=function(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))},nS=function(t,e,n,r){rS(t,e,n,r),uw(t._chartsViews,(function(t){t.__alive=!1})),iS(t,e,n,r),uw(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},rS=function(t,e,n,i,s){uw(s||t._componentsViews,(function(t){var s=t.__model;o(s,t),t.render(s,e,n,i),r(s,t),a(s,t)}))},iS=function(t,i,s,l,u){var c=t._scheduler,h=t._labelManager;h.clearLabels();var f=!1;i.eachSeries((function(e){var r=t._chartsMap[e.__viewId];r.__alive=!0;var i=r.renderTask;c.updatePayload(i,l),o(e,r),u&&u.get(e.uid)&&i.dirty(),i.perform(c.getPerformArgs(i))&&(f=!0),e.__transientTransitionOpt=null,r.group.silent=!!e.get("silent"),n(e,r),vc(e),h.addLabelsOfSeries(r)})),c.unfinished=f||c.unfinished,h.updateLayoutConfig(s),h.layout(s),h.processLabelsOverall(),i.eachSeries((function(e){var n=t._chartsMap[e.__viewId];r(e,n),a(e,n)})),e(t,i)},oS=function(t,e){uw(wS,(function(n){n(t,e)}))},uS=function(t){t[Rw]=!0,t.getZr().wakeUp()},cS=function(e){e[Rw]&&(e.getZr().storage.traverse((function(e){Of(e)||t(e)})),e[Rw]=!1)},aS=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return v(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){ec(e,n),uS(t)},n.prototype.leaveEmphasis=function(e,n){nc(e,n),uS(t)},n.prototype.enterBlur=function(e){rc(e),uS(t)},n.prototype.leaveBlur=function(e){ic(e),uS(t)},n.prototype.enterSelect=function(e){oc(e),uS(t)},n.prototype.leaveSelect=function(e){ac(e),uS(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}(Hg))(t)},sS=function(t){function e(t,e){for(var n=0;n<t.length;n++){var r=t[n];r[zw]=e}}uw(mS,(function(n,r){t._messageCenter.on(r,(function(n){if(IS[t.group]&&t[zw]!==Bw){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];uw(TS,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,Bw),uw(i,(function(t){t[zw]!==Vw&&t.dispatchAction(r)})),e(i,Fw)}}))}))},lS=function(t,e){var n=t._model;q(Eo(e),(function(t){var e,r=t.from,i=t.to;null==i&&Lg(e);var o={includeMainTypes:["series"],enableAll:!1,enableNone:!1},a=r?ia(n,r,o):null,s=ia(n,i,o),l=s.seriesModel;null==l&&(e=""),a&&a.seriesModel!==l&&(e=""),null!=e&&Lg(e),l.__transientTransitionOpt={from:r?r.dimension:null,to:i.dimension,dividingMethod:t.dividingMethod}}))}}(),e}(ce),dS=pS.prototype;dS.on=Gw("on"),dS.off=Gw("off"),dS.one=function(t,e,n){var r=this;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),r.off(t,i)}kg("ECharts#one is deprecated."),this.on.call(this,t,i,n)};var gS=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function vS(t){0}var yS={},mS={},_S=[],xS=[],bS=[],wS=[],SS=[],MS={},CS={},TS={},IS={},AS=+new Date-0,DS=+new Date-0,kS="_echarts_instance_";function LS(t,e,n){var r=NS(t);if(r)return r;var i=new pS(t,e,n);return i.id="ec_"+AS++,TS[i.id]=i,ua(t,kS,i.id),sS(i),uw(bS,(function(t){t(i)})),i}function OS(t){if(it(t)){var e=t;t=null,uw(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+DS++,uw(e,(function(e){e.group=t}))}return IS[t]=!0,t}function PS(t){IS[t]=!1}var ES=PS;function RS(t){"string"===typeof t?t=TS[t]:t instanceof pS||(t=NS(t)),t instanceof pS&&!t.isDisposed()&&t.dispose()}function NS(t){return TS[ca(t,kS)]}function zS(t){return TS[t]}function BS(t,e){MS[t]=e}function VS(t){fw(xS,t)<0&&xS.push(t)}function FS(t,e){qS(_S,t,e,xw)}function GS(t){fw(bS,t)<0&&t&&bS.push(t)}function jS(t){fw(wS,t)<0&&t&&wS.push(t)}function HS(t,e,n){"function"===typeof e&&(n=e,e="");var r=hw(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,mS[e]||(lw(Nw.test(r)&&Nw.test(e)),yS[r]||(yS[r]={action:n,actionInfo:t}),mS[e]=r)}function WS(t,e){Xg.register(t,e)}function US(t){var e=Xg.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function XS(t,e){qS(SS,t,e,ww,"layout")}function $S(t,e){qS(SS,t,e,Cw,"visual")}var YS=[];function qS(t,e,n,r,i){if((cw(e)||hw(e))&&(n=e,e=r),!(fw(YS,n)>=0)){YS.push(n);var o=Km.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function ZS(t,e){CS[t]=e}function KS(t){R("createCanvas",t)}function JS(t,e,n){sw.registerMap(t,e,n)}function QS(t){return sw.getMapForUser(t)}var tM=by;$S(Mw,km),$S(Iw,Om),$S(Iw,Pm),$S(Mw,s_),$S(Iw,l_),$S(Lw,rb),VS(Sv),FS(mw,Mv),ZS("default",Rm),HS({type:Du,event:Du,update:Du},Ot),HS({type:ku,event:ku,update:ku},Ot),HS({type:Lu,event:Lu,update:Lu},Ot),HS({type:Ou,event:Ou,update:Ou},Ot),HS({type:Pu,event:Pu,update:Pu},Ot),BS("light",Qm),BS("dark",o_);var eM={},nM=[],rM={registerPreprocessor:VS,registerProcessor:FS,registerPostInit:GS,registerPostUpdate:jS,registerAction:HS,registerCoordinateSystem:WS,registerLayout:XS,registerVisual:$S,registerTransform:tM,registerLoading:ZS,registerMap:JS,PRIORITY:Ow,ComponentModel:qd,ComponentView:lm,SeriesModel:am,ChartView:mm,registerComponentModel:function(t){qd.registerClass(t)},registerComponentView:function(t){lm.registerClass(t)},registerSeriesModel:function(t){am.registerClass(t)},registerChartView:function(t){mm.registerClass(t)},registerSubTypeDefaulter:function(t,e){qd.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){no(t,e)}};function iM(t){it(t)?q(t,(function(t){iM(t)})):U(nM,t)>=0||(nM.push(t),ot(t)&&(t={install:t}),t.install(rM))}function oM(t){return null==t?0:t.length||1}function aM(t){return t}var sM=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||aM,this._newKeyGetter=r||aM,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.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=oM(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=oM(l),h=oM(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)for(var f=0;f<c;f++)this._remove&&this._remove(l[f]);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=oM(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=oM(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),lM=sM;function uM(t){var e={},n=e.encode={},r=At(),i=[],o=[],a=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};q(t.dimensions,(function(e){var s=t.getDimensionInfo(e),l=s.coordDim;if(l){0;var u=s.coordDimIndex;cM(n,l)[u]=e,s.isExtraCoord||(r.set(l,1),fM(s.type)&&(i[0]=e),cM(a.encode,l)[u]=s.index),s.defaultTooltip&&o.push(e)}Qd.each((function(t,e){var r=cM(n,e),i=s.otherDims[e];null!=i&&!1!==i&&(r[i]=s.name)}))}));var s=[],l={};r.each((function(t,e){var r=n[e];l[e]=r[0],s=s.concat(r)})),e.dataDimsOnCoord=s,e.encodeFirstDimNotExtra=l;var u=n.label;u&&u.length&&(i=u.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,e}function cM(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function hM(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function fM(t){return!("ordinal"===t||"time"===t)}var pM,dM,gM,vM,yM,mM,_M,xM,bM,wM,SM,MM,CM,TM,IM=function(){function t(t){this.otherDims={},null!=t&&j(this,t)}return t}(),AM=IM,DM=Math.floor,kM=ut,LM=Z,OM="undefined",PM=-1,EM="e\0\0",RM={float:typeof Float64Array===OM?Array:Float64Array,int:typeof Int32Array===OM?Array:Int32Array,ordinal:Array,number:Array,time:Array},NM=typeof Uint32Array===OM?Array:Uint32Array,zM=typeof Int32Array===OM?Array:Int32Array,BM=typeof Uint16Array===OM?Array:Uint16Array,VM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],FM=["_extent","_approximateExtent","_rawExtent"],GM=function(){function t(t,e){this.type="list",this._count=0,this._rawCount=0,this._storage={},this._storageArr=[],this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawExtent={},this._extent={},this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!0,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"],this.getRawIndex=yM,t=t||["x","y"];for(var n={},r=[],i={},o=0;o<t.length;o++){var a=t[o],s=at(a)?new AM({name:a}):a instanceof AM?a:new AM(a),l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0);var u=s.otherDims=s.otherDims||{};r.push(l),n[l]=s,s.index=o,s.createInvertedIndices&&(i[l]=[]),0===u.itemName&&(this._nameDimIdx=o,this._nameOrdinalMeta=s.ordinalMeta),0===u.itemId&&(this._idDimIdx=o,this._idOrdinalMeta=s.ordinalMeta)}this.dimensions=r,this._dimensionInfos=n,this.hostModel=e,this._dimensionsSummary=uM(this),this._invertedIndicesMap=i,this.userOutput=this._dimensionsSummary.userOutput}return t.prototype.getDimension=function(t){return"number"!==typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))||(t=this.dimensions[t]),t},t.prototype.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},t.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimensionsSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.initData=function(t,e,n){var r=Ov(t)||Y(t),i=r?new jv(t,this.dimensions.length):t;this._rawData=i;var o=i.getSource().sourceFormat;this._storage={},this._indices=null,this._dontMakeIdFromName=null!=this._idDimIdx||o===ig||!!i.fillStorage,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=pM[o],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=pM.arrayRows,this._rawExtent={},this._initDataFromProvider(0,i.count()),i.pure&&(this.hasItemOption=!1)},t.prototype.getProvider=function(){return this._rawData},t.prototype.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var r=e.count();e.persistent||(r+=n),this._initDataFromProvider(n,r,!0)},t.prototype.appendValues=function(t,e){for(var n=this._storage,r=this.dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e?e.length:0),l=0;l<i;l++){var u=r[l];o[u]||(o[u]=MM()),vM(n,this._dimensionInfos[u],s,!0)}for(var c=LM(r,(function(t){return o[t]})),h=this._storageArr=LM(r,(function(t){return n[t]})),f=[],p=a;p<s;p++){for(var d=p-a,g=0;g<i;g++){u=r[g];var v=this._dimValueGetterArrayRows(t[d]||f,u,d,g);h[g][p]=v;var y=c[g];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}e&&(this._nameList[p]=e[d],this._dontMakeIdFromName||bM(this,p))}this._rawCount=this._count=s,this._extent={},dM(this)},t.prototype._initDataFromProvider=function(t,e,n){if(!(t>=e)){for(var r=this._rawData,i=this._storage,o=this.dimensions,a=o.length,s=this._dimensionInfos,l=this._nameList,u=this._idList,c=this._rawExtent,h=r.getSource().sourceFormat,f=h===tg,p=0;p<a;p++){var d=o[p];c[d]||(c[d]=MM()),vM(i,s[d],e,n)}var g=this._storageArr=LM(o,(function(t){return i[t]})),v=LM(o,(function(t){return c[t]}));if(r.fillStorage)r.fillStorage(t,e,g,v);else for(var y=[],m=t;m<e;m++){y=r.getItem(m,y);for(var _=0;_<a;_++){d=o[_];var x=g[_],b=this._dimValueGetter(y,d,m,_);x[m]=b;var w=v[_];b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}if(f&&!r.pure&&y){var S=y.name;null==l[m]&&null!=S&&(l[m]=Yo(S,null));var M=y.id;null==u[m]&&null!=M&&(u[m]=Yo(M,null))}this._dontMakeIdFromName||bM(this,m)}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},dM(this)}},t.prototype.count=function(){return this._count},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{n=gM(this);t=new n(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.getByDimIdx=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storageArr[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storage[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._storage[t];return n?n[e]:NaN},t.prototype.getValues=function(t,e){var n=[];it(t)||(e=t,t=this.dimensions);for(var r=0,i=t.length;r<i;r++)n.push(this.get(t[r],e));return n},t.prototype.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},t.prototype.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=MM();if(!e)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(r=this._extent[t],r)return r.slice();r=n;for(var a=r[0],s=r[1],l=0;l<i;l++){var u=this.getRawIndex(l),c=e[u];c<a&&(a=c),c>s&&(s=c)}return r=[a,s],this._extent[t]=r,r},t.prototype.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(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){kM(t)?j(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getSum=function(t){var e=this._storage[t],n=0;if(e)for(var r=0,i=this.count();r<i;r++){var o=this.get(t,r);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each(t,(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var r=n[e];return null==r||isNaN(r)?PM:r},t.prototype.indexOfName=function(t){for(var e=0,n=this.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var r=0,i=this._count-1;while(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._storage,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),f=e-i[h],p=Math.abs(f);p<=n&&((p<a||p===a&&f>=0&&s<0)&&(a=p,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var r=this.dimensions[n];e.push(this.get(r,t))}return e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=xM(this,this._nameDimIdx,this._nameOrdinalMeta,e)),null==n&&(n=""),n},t.prototype.getId=function(t){return _M(this,this.getRawIndex(t))},t.prototype.each=function(t,e,n,r){var i=this;if(this._count){"function"===typeof t&&(r=n,n=e,e=t,t=[]);var o=n||r||this,a=LM(wM(t),this.getDimension,this);0;for(var s=a.length,l=LM(a,(function(t){return i._dimensionInfos[t].index})),u=this._storageArr,c=0,h=this.count();c<h;c++){var f=this.getRawIndex(c);switch(s){case 0:e.call(o,c);break;case 1:e.call(o,u[l[0]][f],c);break;case 2:e.call(o,u[l[0]][f],u[l[1]][f],c);break;default:for(var p=0,d=[];p<s;p++)d[p]=u[l[p]][f];d[p]=c,e.apply(o,d)}}}},t.prototype.filterSelf=function(t,e,n,r){var i=this;if(this._count){"function"===typeof t&&(r=n,n=e,e=t,t=[]);var o=n||r||this,a=LM(wM(t),this.getDimension,this);0;for(var s=this.count(),l=gM(this),u=new l(s),c=[],h=a.length,f=0,p=LM(a,(function(t){return i._dimensionInfos[t].index})),d=p[0],g=this._storageArr,v=0;v<s;v++){var y=void 0,m=this.getRawIndex(v);if(0===h)y=e.call(o,v);else if(1===h){var _=g[d][m];y=e.call(o,_,v)}else{for(var x=0;x<h;x++)c[x]=g[p[x]][m];c[x]=v,y=e.apply(o,c)}y&&(u[f++]=m)}return f<s&&(this._indices=u),this._count=f,this._extent={},this.getRawIndex=this._indices?mM:yM,this}},t.prototype.selectRange=function(t){var e=this,n=this._count;if(n){var r=[];for(var i in t)t.hasOwnProperty(i)&&r.push(i);0;var o=r.length;if(o){var a=this.count(),s=gM(this),l=new s(a),u=0,c=r[0],h=LM(r,(function(t){return e._dimensionInfos[t].index})),f=t[c][0],p=t[c][1],d=this._storageArr,g=!1;if(!this._indices){var v=0;if(1===o){for(var y=d[h[0]],m=0;m<n;m++){var _=y[m];(_>=f&&_<=p||isNaN(_))&&(l[u++]=v),v++}g=!0}else if(2===o){y=d[h[0]];var x=d[h[1]],b=t[r[1]][0],w=t[r[1]][1];for(m=0;m<n;m++){_=y[m];var S=x[m];(_>=f&&_<=p||isNaN(_))&&(S>=b&&S<=w||isNaN(S))&&(l[u++]=v),v++}g=!0}}if(!g)if(1===o)for(m=0;m<a;m++){var M=this.getRawIndex(m);_=d[h[0]][M];(_>=f&&_<=p||isNaN(_))&&(l[u++]=M)}else for(m=0;m<a;m++){for(var C=!0,T=(M=this.getRawIndex(m),0);T<o;T++){var I=r[T];_=d[h[T]][M];(_<t[I][0]||_>t[I][1])&&(C=!1)}C&&(l[u++]=this.getRawIndex(m))}return u<a&&(this._indices=l),this._count=u,this._extent={},this.getRawIndex=this._indices?mM:yM,this}}},t.prototype.mapArray=function(t,e,n,r){"function"===typeof t&&(r=n,n=e,e=t,t=[]),n=n||r||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=LM(wM(t),this.getDimension,this);var a=SM(this,o),s=a._storage;a._indices=this._indices,a.getRawIndex=a._indices?mM:yM;for(var l=[],u=o.length,c=this.count(),h=[],f=a._rawExtent,p=0;p<c;p++){for(var d=0;d<u;d++)h[d]=this.get(o[d],p);h[u]=p;var g=e&&e.apply(i,h);if(null!=g){"object"!==typeof g&&(l[0]=g,g=l);for(var v=this.getRawIndex(p),y=0;y<g.length;y++){var m=o[y],_=g[y],x=f[m],b=s[m];b&&(b[v]=_),_<x[0]&&(x[0]=_),_>x[1]&&(x[1]=_)}}}return a},t.prototype.downSample=function(t,e,n,r){for(var i=SM(this,[t]),o=i._storage,a=[],s=DM(1/e),l=o[t],u=this.count(),c=i._rawExtent[t],h=new(gM(this))(u),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var d=0;d<s;d++){var g=this.getRawIndex(p+d);a[d]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(p+r(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[f++]=y}return i._count=f,i._indices=h,i.getRawIndex=mM,i},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=SM(this,[]),a=o._storage,s=a[t],l=this.count(),u=new(gM(this))(l),c=0,h=DM(1/e),f=this.getRawIndex(0);u[c++]=f;for(var p=1;p<l-1;p+=h){for(var d=Math.min(p+h,l-1),g=Math.min(p+2*h,l),v=(g+d)/2,y=0,m=d;m<g;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(y+=x)}y/=g-d;var b=p,w=Math.min(p+h,l),S=p-1,M=s[f];n=-1,i=b;for(m=b;m<w;m++){_=this.getRawIndex(m),x=s[_];isNaN(x)||(r=Math.abs((S-v)*(x-M)-(S-m)*(y-M)),r>n&&(n=r,i=_))}u[c++]=i,f=i}return u[c++]=this.getRawIndex(l-1),o._count=c,o._indices=u,o.getRawIndex=mM,o},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new bp(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new lM(t?t.getIndices():[],this.getIndices(),(function(e){return _M(t,e)}),(function(t){return _M(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||{},kM(t)?j(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&&(i=this.getVisual(e),it(i)?i=i.slice():kM(i)&&(i=j({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,kM(e)?j(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(kM(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else 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?j(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel;if(e){var r=mu(e);r.dataIndex=t,r.dataType=this.dataType,r.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(CM,e)}this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){q(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){if(!e){var n=LM(this.dimensions,this.getDimensionInfo,this);e=new t(n,this.hostModel)}if(e._storage=this._storage,e._storageArr=this._storageArr,TM(e,this),this._indices){var r=this._indices.constructor;if(r===Array){var i=this._indices.length;e._indices=new r(i);for(var o=0;o<i;o++)e._indices[o]=this._indices[o]}else e._indices=new r(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?mM:yM,e},t.prototype.wrapMethod=function(t,e){var n=this[t];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(xt(arguments)))})},t.internalField=function(){function e(t,e,n,r){return ay(t[r],this._dimensionInfos[e])}function n(t){var e=t.constructor;return e===Array?t.slice():new e(t)}pM={arrayRows:e,objectRows:function(t,e,n,r){return ay(t[e],this._dimensionInfos[e])},keyedColumns:e,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return!this._rawData.pure&&Bo(t)&&(this.hasItemOption=!0),ay(i instanceof Array?i[r]:i,this._dimensionInfos[e])},typedArray:function(t,e,n,r){return t[r]}},dM=function(t){var e=t._invertedIndicesMap;q(e,(function(n,r){var i=t._dimensionInfos[r],o=i.ordinalMeta;if(o){n=e[r]=new zM(o.categories.length);for(var a=0;a<n.length;a++)n[a]=PM;for(a=0;a<t._count;a++)n[t.get(r,a)]=a}}))},xM=function(t,e,n,r){var i,o=t._storageArr[e];return o&&(i=o[r],n&&n.categories.length&&(i=n.categories[i])),Yo(i,null)},gM=function(t){return t._rawCount>65535?NM:BM},vM=function(t,e,n,r){var i=RM[e.type],o=e.name;if(r){var a=t[o],s=a&&a.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=a[u];t[o]=l}}else t[o]=new i(n)},yM=function(t){return t},mM=function(t){return t<this._count&&t>=0?this._indices[t]:-1},_M=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=xM(t,t._idDimIdx,t._idOrdinalMeta,e)),null==n&&(n=EM+e),n},wM=function(t){return it(t)||(t=null!=t?[t]:[]),t},function(t,e){for(var n=0;n<e.length;n++)t._dimensionInfos[e[n]]||console.error("Unkown dimension "+e[n])},SM=function(e,r){var i=e.dimensions,o=new t(LM(i,e.getDimensionInfo,e),e.hostModel);TM(o,e);for(var a=o._storage={},s=e._storage,l=o._storageArr=[],u=0;u<i.length;u++){var c=i[u];s[c]&&(U(r,c)>=0?(a[c]=n(s[c]),o._rawExtent[c]=MM(),o._extent[c]=null):a[c]=s[c],l.push(a[c]))}return o},MM=function(){return[1/0,-1/0]},CM=function(t){var e=mu(t),n=mu(this);e.seriesIndex=n.seriesIndex,e.dataIndex=n.dataIndex,e.dataType=n.dataType},TM=function(t,e){q(VM.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,q(FM,(function(n){t[n]=V(e[n])})),t._calculationInfo=j({},e._calculationInfo)},bM=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=xM(t,i,t._nameOrdinalMeta,e)),null==s&&null!=o&&(r[e]=s=xM(t,o,t._idOrdinalMeta,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}(),jM=GM;function HM(t,e,n){Ov(e)||(e=Ev(e)),n=n||{},t=(t||[]).slice();for(var r=(n.dimsDef||[]).slice(),i=At(),o=At(),a=[],s=WM(e,t,r,n.dimCount),l=0;l<s;l++){var u=r[l],c=r[l]=j({},ut(u)?u:{name:u}),h=c.name,f=a[l]=new AM;null!=h&&null==i.get(h)&&(f.name=f.displayName=h,i.set(h,l)),null!=c.type&&(f.type=c.type),null!=c.displayName&&(f.displayName=c.displayName)}var p=n.encodeDef;!p&&n.encodeDefaulter&&(p=n.encodeDefaulter(e,s));var d=At(p);d.each((function(t,e){var n=Eo(t).slice();if(1===n.length&&!at(n[0])&&n[0]<0)d.set(e,!1);else{var r=d.set(e,[]);q(n,(function(t,n){var o=at(t)?i.get(t):t;null!=o&&o<s&&(r[n]=o,v(a[o],e,n))}))}}));var g=0;function v(t,e,n){null!=Qd.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,o.set(e,!0))}q(t,(function(t){var e,n,r,i;if(at(t))e=t,i={};else{i=t,e=i.name;var o=i.ordinalMeta;i.ordinalMeta=null,i=V(i),i.ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(e);if(!1!==s){if(s=Eo(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){while(g<a.length&&null!=a[g].coordDim)g++;g<a.length&&s.push(g++)}q(s,(function(t,o){var s=a[t];if(v(H(s,i),e,o),null==s.name&&n){var l=n[o];!ut(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}r&&H(s.otherDims,r)}))}}));var y=n.generateCoord,m=n.generateCoordCount,_=null!=m;m=y?m||1:0;for(var x=y||"value",b=0;b<s;b++){f=a[b]=a[b]||new AM;var w=f.coordDim;null==w&&(f.coordDim=UM(x,o,_),f.coordDimIndex=0,(!y||m<=0)&&(f.isExtraCoord=!0),m--),null==f.name&&(f.name=UM(f.coordDim,i,!1)),null!=f.type||gg(e,b)!==lg.Must&&(!f.isExtraCoord||null==f.otherDims.itemName&&null==f.otherDims.seriesName)||(f.type="ordinal")}return a}function WM(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return q(e,(function(t){var e;ut(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function UM(t,e,n){if(n||null!=e.get(t)){var r=0;while(null!=e.get(t+r))r++;t+=r}return e.set(t,!0),t}var XM=HM;function $M(t,e){return e=e||{},XM(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}var YM=function(){function t(t){this.coordSysDims=[],this.axisMap=At(),this.categoryAxisMap=At(),this.coordSysName=t}return t}();function qM(t){var e=t.get("coordinateSystem"),n=new YM(e),r=ZM[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var ZM={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",aa).models[0],o=t.getReferringComponents("yAxis",aa).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),KM(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),KM(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",aa).models[0];e.coordSysDims=["single"],n.set("single",i),KM(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",aa).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),KM(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),KM(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();q(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),KM(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function KM(t){return"category"===t.get("type")}function JM(t,e,n){n=n||{};var r,i,o,a,s=n.byIndex,l=n.stackedCoordDimension,u=!(!t||!t.get("stack"));if(q(e,(function(t,n){at(t)&&(e[n]=t={name:t}),u&&!t.isExtraCoord&&(s||r||!t.ordinalMeta||(r=t),i||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(i=t))})),!i||s||r||(s=!0),i){o="__\0ecstackresult",a="__\0ecstackedover",r&&(r.createInvertedIndices=!0);var c=i.coordDim,h=i.type,f=0;q(e,(function(t){t.coordDim===c&&f++})),e.push({name:o,coordDim:c,coordDimIndex:f,type:h,isExtraCoord:!0,isCalculationCoord:!0}),f++,e.push({name:a,coordDim:a,coordDimIndex:f,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:i&&i.name,stackedByDimension:r&&r.name,isStackedByIndex:s,stackedOverDimension:a,stackResultDimension:o}}function QM(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function tC(t,e){return QM(t,e)?t.getCalculationInfo("stackResultDimension"):e}function eC(t,e,n){n=n||{},Ov(t)||(t=Ev(t));var r,i=e.get("coordinateSystem"),o=Xg.get(i),a=qM(e);a&&a.coordSysDims&&(r=Z(a.coordSysDims,(function(t){var e={name:t},n=a.axisMap.get(t);if(n){var r=n.get("type");e.type=hM(r)}return e}))),r||(r=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,l,u=n.useEncodeDefaulter,c=$M(t,{coordDimensions:r,generateCoord:n.generateCoord,encodeDefaulter:ot(u)?u:u?rt(hg,r,e):null});a&&q(c,(function(t,e){var r=t.coordDim,i=a.categoryAxisMap.get(r);i&&(null==s&&(s=e),t.ordinalMeta=i.getOrdinalMeta(),n.createInvertedIndices&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(l=!0)})),l||null==s||(c[s].otherDims.itemName=0);var h=JM(e,c),f=new jM(c,e);f.setCalculationInfo(h);var p=null!=s&&nC(t)?function(t,e,n,r){return r===s?n:this.defaultDimValueGetter(t,e,n,r)}:null;return f.hasItemOption=!1,f.initData(t,null,p),f}function nC(t){if(t.sourceFormat===tg){var e=rC(t.data||[]);return null!=e&&!it(zo(e))}}function rC(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var iC=eC,oC=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}();Ia(oC);var aC=oC,sC=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Z(r,lC);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("string"!==typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=At(this.categories))},t}();function lC(t){return ut(t)&&null!=t.value?t.value:t+""}var uC=sC,cC=uo;function hC(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Mo(o/e,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=fC(a),l=i.niceTickExtent=[cC(Math.ceil(t[0]/a)*a,s),cC(Math.floor(t[1]/a)*a,s)];return dC(l,t),i}function fC(t){return ho(t)+2}function pC(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function dC(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),pC(t,0,e),pC(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function gC(t,e){return t>=e[0]&&t<=e[1]}function vC(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function yC(t,e){return t*(e[1]-e[0])+e[0]}var mC=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new uC({})),it(r)&&(r=new uC({categories:Z(r,(function(t){return ut(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return v(e,t),e.prototype.parse=function(t){return"string"===typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),gC(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),vC(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(yC(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],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){while(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.niceTicks=function(){},e.prototype.niceExtent=function(){},e.type="ordinal",e}(aC);aC.registerClass(mC);var _C=mC,xC=uo,bC=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 v(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return gC(t,this._extent)},e.prototype.normalize=function(t){return vC(t,this._extent)},e.prototype.scale=function(t){return yC(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=fC(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<r[0]&&(t?o.push({value:xC(r[0]-e,i)}):o.push({value:n[0]}));var s=r[0];while(s<=r[1]){if(o.push({value:s}),s=xC(s+e,i),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:xC(l+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++){var o=e[i],a=e[i-1],s=0,l=[],u=o.value-a.value,c=u/t;while(s<t-1){var h=xC(a.value+(s+1)*c);h>r[0]&&h<r[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=ho(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=xC(t.value,n,!0);return yd(r)},e.prototype.niceTicks=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=hC(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=xC(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=xC(Math.ceil(e[1]/i)*i))},e.type="interval",e}(aC);aC.registerClass(bC);var wC=bC,SC="__ec_stack_",MC=.5,CC="undefined"!==typeof Float32Array?Float32Array:Array;function TC(t){return t.get("stack")||SC+t.seriesIndex}function IC(t){return t.dim+t.index}function AC(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(H({bandWidth:i,axisKey:r,stackId:SC+o},t));var a=OC(e),s=[];for(o=0;o<t.count;o++){var l=a[r][SC+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function DC(t,e){var n=[];return e.eachSeriesByType(t,(function(t){NC(t)&&!zC(t)&&n.push(t)})),n}function kC(t){var e={};q(t,(function(t){var n=t.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=t.getData(),o=r.dim+"_"+r.index,a=i.mapDimension(r.dim),s=0,l=i.count();s<l;++s){var u=i.get(a,s);e[o]?e[o].push(u):e[o]=[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}function LC(t){var e=kC(t),n=[];return q(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);r=l?u/h*l:u}else{var f=t.getData();r=Math.abs(a[1]-a[0])/f.count()}var p=lo(t.get("barWidth"),r),d=lo(t.get("barMaxWidth"),r),g=lo(t.get("barMinWidth")||1,r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:IC(o),stackId:TC(t)})})),OC(n)}function OC(t){var e={};q(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 f=t.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return q(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=tt(r).length;o=Math.max(35-4*a,15)+"%"}var s=lo(o,i),l=lo(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),q(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 f,p=0;q(r,(function(t,e){t.width||(t.width=h),f=t,p+=t.width*(1+l)})),f&&(p-=f.width*l);var d=-p/2;q(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:d,width:t.width},d+=t.width*(1+l)}))})),n}function PC(t,e,n){if(t&&e){var r=t[IC(e)];return null!=r&&null!=n?r[TC(n)]:r}}function EC(t,e){var n=DC(t,e),r=LC(n),i={};q(n,(function(t){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=TC(t),s=r[IC(o)][a],l=s.offset,u=s.width,c=n.getOtherAxis(o),h=t.get("barMinHeight")||0;i[a]=i[a]||[],e.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var f=e.mapDimension(c.dim),p=e.mapDimension(o.dim),d=QM(e,f),g=c.isHorizontal(),v=BC(o,c,d),y=0,m=e.count();y<m;y++){var _=e.get(f,y),x=e.get(p,y),b=_>=0?"p":"n",w=v;d&&(i[a][x]||(i[a][x]={p:v,n:v}),w=i[a][x][b]);var S=void 0,M=void 0,C=void 0,T=void 0;if(g){var I=n.dataToPoint([_,x]);S=w,M=I[1]+l,C=I[0]-v,T=u,Math.abs(C)<h&&(C=(C<0?-1:1)*h),isNaN(C)||d&&(i[a][x][b]+=C)}else{I=n.dataToPoint([x,_]);S=I[0]+l,M=w,C=u,T=I[1]-v,Math.abs(T)<h&&(T=(T<=0?-1:1)*h),isNaN(T)||d&&(i[a][x][b]+=T)}e.setItemLayout(y,{x:S,y:M,width:C,height:T})}}))}var RC={seriesType:"bar",plan:um(),reset:function(t){if(NC(t)&&zC(t)){var e=t.getData(),n=t.coordinateSystem,r=n.master.getRect(),i=n.getBaseAxis(),o=n.getOtherAxis(i),a=e.mapDimension(o.dim),s=e.mapDimension(i.dim),l=o.isHorizontal(),u=l?0:1,c=PC(LC([t]),i,t).width;return c>MC||(c=MC),{progress:function(t,e){var h,f=t.count,p=new CC(2*f),d=new CC(2*f),g=new CC(f),v=[],y=[],m=0,_=0;while(null!=(h=t.next()))y[u]=e.get(a,h),y[1-u]=e.get(s,h),v=n.dataToPoint(y,null),d[m]=l?r.x+r.width:v[0],p[m++]=v[0],d[m]=l?v[1]:r.y+r.height,p[m++]=v[1],g[_++]=h;e.setLayout({largePoints:p,largeDataIndices:g,largeBackgroundPoints:d,barWidth:c,valueAxisStart:BC(i,o,!1),backgroundStart:l?r.x:r.y,valueAxisHorizontal:l})}}}}};function NC(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function zC(t){return t.pipelineContext&&t.pipelineContext.large}function BC(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}var VC=function(t,e,n,r){while(n<r){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},FC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return v(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Qp(t.value,Xp[Jp(Zp(this._minLevelUnit))]||Xp.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return td(t,e,n,i,r)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=[];if(!e)return r;r.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=qC(this._minLevelUnit,this._approxInterval,i,n);return r=r.concat(o),r.push({value:n[1],level:0}),r},e.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=jp,e[1]+=jp),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]-jp}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.niceTicks=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=GC.length,a=Math.min(VC(GC,this._approxInterval,0,o),o-1);this._interval=GC[a][1],this._minLevelUnit=GC[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return"number"===typeof t?t:+bo(t)},e.prototype.contain=function(t){return gC(this.parse(t),this._extent)},e.prototype.normalize=function(t){return vC(this.parse(t),this._extent)},e.prototype.scale=function(t){return yC(t,this._extent)},e.type="time",e}(wC),GC=[["second",Vp],["minute",Fp],["hour",Gp],["quarter-day",6*Gp],["half-day",12*Gp],["day",1.2*jp],["half-week",3.5*jp],["week",7*jp],["month",31*jp],["quarter",95*jp],["half-year",Hp/2],["year",Hp]];function jC(t,e,n,r){var i=bo(e),o=bo(n),a=function(t){return nd(i,t,r)===nd(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")},f=function(){return h()&&a("second")},p=function(){return f()&&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 f();case"millisecond":return p()}}function HC(t,e){return t/=jp,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function WC(t){var e=30*jp;return t/=e,t>6?6:t>3?3:t>2?2:1}function UC(t){return t/=Gp,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function XC(t,e){return t/=e?Fp:Vp,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function $C(t){return Mo(t,!0)}function YC(t,e,n){var r=new Date(t);switch(Zp(e)){case"year":case"month":r[hd(n)](0);case"day":r[fd(n)](1);case"hour":r[pd(n)](0);case"minute":r[dd(n)](0);case"second":r[gd(n)](0),r[vd(n)](0)}return r.getTime()}function qC(t,e,n,r){var i=1e4,o=Yp,a=0;function s(t,e,n,i,o,a,s){var l=new Date(e),u=e,c=l[i]();while(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(!jC(Zp(t),r[0],r[1],n)){l&&(i=[{value:YC(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 f=void 0,p=void 0,d=void 0,g=!1;switch(t){case"year":f=Math.max(1,Math.round(e/jp/365)),p=rd(n),d=cd(n);break;case"half-year":case"quarter":case"month":f=WC(e),p=id(n),d=hd(n);break;case"week":case"half-week":case"day":f=HC(e,31),p=od(n),d=fd(n),g=!0;break;case"half-day":case"quarter-day":case"hour":f=UC(e),p=ad(n),d=pd(n);break;case"minute":f=XC(e,!0),p=sd(n),d=dd(n);break;case"second":f=XC(e,!1),p=ld(n),d=gd(n);break;case"millisecond":f=$C(e),p=ud(n),d=vd(n);break}s(f,c,h,p,d,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-f})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,f=0,p=0;p<o.length&&a++<i;++p){var d=Zp(o[p]);if(Kp(o[p])){l(o[p],u[u.length-1]||[],c);var g=o[p+1]?Zp(o[p+1]):null;if(d!==g){if(c.length){f=h,c.sort((function(t,e){return t.value-e.value}));for(var v=[],y=0;y<c.length;++y){var m=c[y].value;0!==y&&c[y-1].value===m||(v.push(c[y]),m>=r[0]&&m<=r[1]&&h++)}var _=(r[1]-r[0])/e;if(h>1.5*_&&f>_/1.5)break;if(u.push(v),h>_||t===o[p])break}c=[]}}}var x=J(Z(u,(function(t){return J(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),b=[],w=x.length-1;for(p=0;p<x.length;++p)for(var S=x[p],M=0;M<S.length;++M)b.push({value:S[M].value,level:w-p});b.sort((function(t,e){return t.value-e.value}));var C=[];for(p=0;p<b.length;++p)0!==p&&b[p].value===b[p-1].value||C.push(b[p]);return C}aC.registerClass(FC);var ZC=FC,KC=aC.prototype,JC=wC.prototype,QC=uo,tT=Math.floor,eT=Math.ceil,nT=Math.pow,rT=Math.log,iT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new wC,e._interval=0,e}return v(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),i=JC.getTicks.call(this,t);return Z(i,(function(t){var e=t.value,i=uo(nT(this.base,e));return i=e===n[0]&&this._fixMin?aT(i,r[0]):i,i=e===n[1]&&this._fixMax?aT(i,r[1]):i,{value:i}}),this)},e.prototype.setExtent=function(t,e){var n=this.base;t=rT(t)/rT(n),e=rT(e)/rT(n),JC.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=KC.getExtent.call(this);e[0]=nT(t,e[0]),e[1]=nT(t,e[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(e[0]=aT(e[0],r[0])),this._fixMax&&(e[1]=aT(e[1],r[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=rT(t[0])/rT(e),t[1]=rT(t[1])/rT(e),KC.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r=wo(n),i=t/n*r;i<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var o=[uo(eT(e[0]/r)*r),uo(tT(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.niceExtent=function(t){JC.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=rT(t)/rT(this.base),gC(t,this._extent)},e.prototype.normalize=function(t){return t=rT(t)/rT(this.base),vC(t,this._extent)},e.prototype.scale=function(t){return t=yC(t,this._extent),nT(this.base,t)},e.type="log",e}(aC),oT=iT.prototype;function aT(t,e){return QC(t,ho(e))}oT.getMinorTicks=JC.getMinorTicks,oT.getLabel=JC.getLabel,aC.registerClass(iT);var sT=iT,lT=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=e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);ot(i)?this._modelMinNum=fT(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=fT(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(ot(o)?this._modelMaxNum=fT(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=fT(t,o)),r)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=it(a)?a:[a||0,a||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ki(s[0],1),ki(s[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),a>s&&(a=NaN,s=NaN);var c=vt(a)||vt(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,f=this._determinedMax;return null!=h&&(a=h,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[cT[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=uT[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),uT={min:"_determinedMin",max:"_determinedMax"},cT={min:"_dataMin",max:"_dataMax"};function hT(t,e,n){var r=t.rawExtentInfo;return r||(r=new lT(t,e,n),t.rawExtentInfo=r,r)}function fT(t,e){return null==e?null:vt(e)?NaN:t.parse(e)}function pT(t,e){var n=t.type,r=hT(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=DC("bar",a),l=!1;if(q(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=LC(s),c=dT(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function dT(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=PC(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;q(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;q(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=1-(s+l)/o,f=c/h-c;return e+=f*(l/u),t-=f*(s/u),{min:t,max:e}}function gT(t,e){var n=pT(t,e),r=n.extent,i=e.get("splitNumber");t instanceof sT&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(r[0],r[1]),t.niceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)}function vT(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new _C({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new ZC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(aC.getClass(e)||wC)}}function yT(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function mT(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):"string"===typeof e?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):"function"===typeof e?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(_T(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function _T(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function xT(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof _C?i=n.count():(r=n.getTicks(),i=r.length);var a,s=t.getLabelModel(),l=mT(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var h=r?r[c]:{value:o[0]+c},f=l(h,c),p=s.getTextRect(f),d=bT(p,s.get("rotate")||0);a?a.union(d):a=d}return a}}function bT(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)),s=new _i(t.x,t.y,o,a);return s}function wT(t){var e=t.get("interval");return null==e?"auto":e}function ST(t){return"category"===t.type&&0===wT(t.getLabelModel())}function MT(t,e){var n={};return q(t.mapDimensionsAll(e),(function(e){n[tC(t,e)]=!0})),tt(n)}function CT(t,e,n){e&&q(MT(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])}))}var TT=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}();function IT(t){return iC(t.getSource(),t)}var AT={isDimensionStacked:QM,enableDataStack:JM,getStackedDimension:tC};function DT(t,e){var n=e;e instanceof bp||(n=new bp(e));var r=vT(n);return r.setExtent(t[0],t[1]),gT(r,n),r}function kT(t){$(t,TT)}function LT(t,e){return e=e||{},Jf(t,null,null,"normal"!==e.state)}function OT(t,e,n,r,i,o,a,s){kg("getTextRect is deprecated.");var l=new yu({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var PT=na();function ET(t){return"category"===t.type?NT(t):VT(t)}function RT(t,e){return"category"===t.type?BT(t,e):{ticks:Z(t.scale.getTicks(),(function(t){return t.value}))}}function NT(t){var e=t.getLabelModel(),n=zT(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function zT(t,e){var n,r,i=FT(t,"labels"),o=wT(e),a=GT(i,o);return a||(ot(o)?n=$T(t,o):(r="auto"===o?HT(t):o,n=XT(t,r)),jT(i,o,{labels:n,labelCategoryInterval:r}))}function BT(t,e){var n,r,i=FT(t,"ticks"),o=wT(e),a=GT(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),ot(o))n=$T(t,o,!0);else if("auto"===o){var s=zT(t,t.getLabelModel());r=s.labelCategoryInterval,n=Z(s.labels,(function(t){return t.tickValue}))}else r=o,n=XT(t,r,!0);return jT(i,o,{ticks:n,tickCategoryInterval:r})}function VT(t){var e=t.scale.getTicks(),n=mT(t);return{labels:Z(e,(function(e,r){return{formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function FT(t,e){return PT(t)[e]||(PT(t)[e]=[])}function GT(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function jT(t,e,n){return t.push({key:e,value:n}),n}function HT(t){var e=PT(t).autoInterval;return null!=e?e:PT(t).autoInterval=t.calculateCategoryInterval()}function WT(t){var e=UT(t),n=mT(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)),f=0,p=0;l<=o[1];l+=s){var d=0,g=0,v=Ti(n({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,f=Math.max(f,d,7),p=Math.max(p,g,7)}var y=f/c,m=p/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=PT(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]),_}function UT(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function XT(t,e,n){var r=mT(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=ST(t),f=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;f&&u!==o[0]&&g(o[0]);for(var d=u;d<=o[1];d+=l)g(d);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&d-l!==o[1]&&g(o[1]),s}function $T(t,e,n){var r=t.scale,i=mT(t),o=[];return q(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 YT=[0,1],qT=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 po(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&&(n=n.slice(),ZT(n,r.count())),so(t,YT,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),ZT(n,r.count()));var i=so(t,n,YT,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=RT(this,e),r=n.ticks,i=Z(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return KT(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Z(n,(function(t){return Z(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return ET(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 WT(this)},t}();function ZT(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function KT(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;q(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},e.push(o)}var h=s[0]>s[1];f(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&f(s[0],e[0].coord)&&e.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&f(o.coord,s[1])&&e.push({coord:s[1]})}function f(t,e){return t=uo(t),e=uo(e),h?t>e:t<e}}var JT=qT;function QT(t){var e=qd.extend(t);return qd.registerClass(e),e}function tI(t){var e=lm.extend(t);return lm.registerClass(e),e}function eI(t){var e=am.extend(t);return am.registerClass(e),e}function nI(t){var e=mm.extend(t);return mm.registerClass(e),e}function rI(){return!1}function iI(t,e,n){var r=W(),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 oI=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||zr,"string"===typeof e?i=iI(e,n,r):ut(e)&&(i=e,e=i.id),o.id=e,o.dom=i;var a=i.style;return a&&(i.onselectstart=rI,a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none",a.padding="0",a.margin="0",a.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=n,o.config=null,o.dpr=r,o}return Et(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=iI("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 _i(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new _i(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new _i(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 f=t.width*t.height,p=c.width*c.height,d=l.width*l.height,g=d-f-p;g<r&&(r=g,i=u)}}if(s&&(o[i].union(t),n=!0),!n){e=new _i(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=t[c];if(h){var f=h.shouldBePainted(n,r,!0,!0),p=h.__isRendered&&(h.__dirty&rn||!f)?h.getPrevPaintRect():null;p&&u(p);var d=f&&(h.__dirty&rn||!h.__isRendered)?h.getPaintRect():null;d&&u(d)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){h=e[c],f=h.shouldBePainted(n,r,!0,!0);if(h&&(!f||!h.__zr)&&h.__isRendered){p=h.getPrevPaintRect();p&&u(p)}}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 f(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;pt(e)?(a=e.__canvasGradient||vx(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a):dt(e)&&(a=Cx(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?f(0,0,o,a):n.length&&q(n,(function(t){f(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(ce),aI=oI,sI=1e5,lI=314159,uI=.01,cI=.001;function hI(t){return parseInt(t,10)}function fI(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function pI(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var dI=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=j({},n||{}),this.dpr=n.devicePixelRatio||zr,this._singleCanvas=i,this.root=t;var o=t.style;o&&(o.webkitTapHighlightColor="transparent",o.webkitUserSelect="none",o.userSelect="none",o["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(i){var l=t,u=l.width,c=l.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var h=new aI(l,this,this.dpr);h.__builtin__=!0,h.initContext(),s[lI]=h,h.zlevel=lI,a.push(lI),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=pI(this._width,this._height);t.appendChild(f)}}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(sI)),r||(r=n.ctx,r.save()),Ux(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(sI)},t.prototype.paintOne=function(t,e){Wx(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;pn((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(lI).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,f._width,f._height),d=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,p);else if(d===l.__startIndex){var m=t[d];m.incremental&&m.notClear&&!n||l.clear(!1,y,p)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=d;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){var a=Date.now()-v;if(a>15)break}}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var x=f.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)},f=this,p=0;p<i.length;p++)h(p);return S.wxa&&q(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))&&(Ux(a,t,i,o),t.setPrevPaintRect(s))}else Ux(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=lI);var n=this._layers[t];return n||(n=new aI("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?F(n,this._layerConfig[t],!0):this._layerConfig[t-uI]&&F(n,this._layerConfig[t-uI],!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])B("ZLevel "+t+" has been used already");else if(fI(e)){if(i>0&&t>r[0]){for(s=0;s<i-1;s++)if(r[s]<t&&r[s+1]>t)break;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=this}else B("Layer of zlevel "+t+" is not valid")},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){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){var r=t[n];if(r.zlevel!==t[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i,o,a=null,s=0;for(o=0;o<t.length;o++){r=t[o];var l=r.zlevel,u=void 0;i!==l&&(i=l,s=0),r.incremental?(u=this.getLayer(l+cI,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?uI:0),this._needsManuallyCompositing),u.__builtin__||B("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),r.__dirty&rn&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,q(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?F(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+uI){var o=this._layers[i];F(o,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(U(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;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){for(var i in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].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(lI).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[lI].dom;var e=new aI("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];Ux(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype._getSize=function(t){var e=this._opts,n=["width","height"][t],r=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[r]||hI(s[n])||hI(a.style[n]))-(hI(s[i])||0)-(hI(s[o])||0)|0},t.prototype.pathToImage=function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),r=n.getContext("2d"),i=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,u=t.hasStroke()?o.lineWidth:0,c=Math.max(u/2,-s+a),h=Math.max(u/2,s+a),f=Math.max(u/2,-l+a),p=Math.max(u/2,l+a),d=i.width+c+h,g=i.height+f+p;n.width=d*e,n.height=g*e,r.scale(e,e),r.clearRect(0,0,d,g),r.dpr=e;var v={x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY};t.x=c-i.x,t.y=f-i.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&Ux(r,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var y=new Yl({style:{x:0,y:0,image:n}});return j(t,v),y},t}(),gI=dI;function vI(t){t.registerPainter("canvas",gI)}function yI(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function mI(t,e,n){n||(n=function(t,e){return t===e}),t=t.slice(),e=e.slice();var r=e.length,i=t.length,o=1,a=r+i,s=[{newPos:-1,components:[]}],l=_I(s[0],e,t,0,n);if(s[0].newPos+1>=r&&l+1>=i){for(var u=[],c=0;c<e.length;c++)u.push(c);return[{indices:u,count:e.length,added:!1,removed:!1}]}function h(){for(var a=-1*o;a<=o;a+=2){var l,u=s[a-1],c=s[a+1],h=(c?c.newPos:0)-a;u&&(s[a-1]=void 0);var f=u&&u.newPos+1<r,p=c&&0<=h&&h<i;if(f||p){if(!f||p&&u.newPos<c.newPos?(l=wI(c),xI(l.components,!1,!0)):(l=u,l.newPos++,xI(l.components,!0,!1)),h=_I(l,e,t,a,n),l.newPos+1>=r&&h+1>=i)return bI(l.components);s[a]=l}else s[a]=void 0}o++}while(o<=a){var f=h();if(f)return f}}function _I(t,e,n,r,i){var o=e.length,a=n.length,s=t.newPos,l=s-r,u=0;while(s+1<o&&l+1<a&&i(e[s+1],n[l+1]))s++,l++,u++;return u&&t.components.push({count:u,added:!1,removed:!1,indices:[]}),t.newPos=s,l}function xI(t,e,n){var r=t[t.length-1];r&&r.added===e&&r.removed===n?t[t.length-1]={count:r.count+1,added:e,removed:n,indices:[]}:t.push({count:1,added:e,removed:n,indices:[]})}function bI(t){for(var e=0,n=t.length,r=0,i=0;e<n;e++){var o=t[e];if(o.removed){for(s=i;s<i+o.count;s++)o.indices.push(s);i+=o.count}else{for(var a=[],s=r;s<r+o.count;s++)a.push(s);o.indices=a,r+=o.count,o.added||(i+=o.count)}}return t}function wI(t){return{newPos:t.newPos,components:t.components.slice(0)}}function SI(t,e,n){return mI(t,e,n)}var MI="none",CI=Math.round,TI=Math.sin,II=Math.cos,AI=Math.PI,DI=2*Math.PI,kI=180/AI,LI=1e-4;function OI(t){return CI(1e3*t)/1e3}function PI(t){return CI(1e4*t)/1e4}function EI(t){return t<LI&&t>-LI}function RI(t){var e=t.fill;return null!=e&&e!==MI}function NI(t){var e=t.stroke;return null!=e&&e!==MI}function zI(t,e){e&&BI(t,"transform","matrix("+OI(e[0])+","+OI(e[1])+","+OI(e[2])+","+OI(e[3])+","+PI(e[4])+","+PI(e[5])+")")}function BI(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function VI(t,e,n){t.setAttributeNS("http://www.w3.org/1999/xlink",e,n)}function FI(t,e,n){t.setAttributeNS("http://www.w3.org/XML/1998/namespace",e,n)}function GI(t,e,n){var r=null==e.opacity?1:e.opacity;if(n instanceof Yl)t.style.opacity=r+"";else{if(RI(e)){var i=e.fill;i="transparent"===i?MI:i,BI(t,"fill",i),BI(t,"fill-opacity",(null!=e.fillOpacity?e.fillOpacity*r:r)+"")}else BI(t,"fill",MI);if(NI(e)){var o=e.stroke;o="transparent"===o?MI:o,BI(t,"stroke",o);var a=e.lineWidth,s=e.strokeNoScale?n.getLineScale():1;BI(t,"stroke-width",(s?a/s:0)+""),BI(t,"paint-order",e.strokeFirst?"stroke":"fill"),BI(t,"stroke-opacity",(null!=e.strokeOpacity?e.strokeOpacity*r:r)+"");var l=e.lineDash&&a>0&&mx(e.lineDash,a);if(l){var u=e.lineDashOffset;s&&1!==s&&(l=Z(l,(function(t){return t/s})),u&&(u/=s,u=CI(u))),BI(t,"stroke-dasharray",l.join(",")),BI(t,"stroke-dashoffset",(u||0)+"")}else BI(t,"stroke-dasharray","");e.lineCap&&BI(t,"stroke-linecap",e.lineCap),e.lineJoin&&BI(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&BI(t,"stroke-miterlimit",e.miterLimit+"")}else BI(t,"stroke",MI)}}var jI=function(){function t(){}return t.prototype.reset=function(){this._d=[],this._str=""},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=0===this._d.length,u=a-o,c=!s,h=Math.abs(u),f=EI(h-DI)||(c?u>=DI:-u>=DI),p=u>0?u%DI:u%DI+DI,d=!1;d=!!f||!EI(h)&&p>=AI===!!c;var g=PI(t+n*II(o)),v=PI(e+r*TI(o));f&&(u=c?DI-1e-4:1e-4-DI,d=!0,l&&this._d.push("M",g,v));var y=PI(t+n*II(o+u)),m=PI(e+r*TI(o+u));if(isNaN(g)||isNaN(v)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(kI)||isNaN(y)||isNaN(m))return"";this._d.push("A",PI(n),PI(r),CI(i*kI),+d,+c,y,m)},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("L",t+n,e),this._add("L",t+n,e+r),this._add("L",t,e+r),this._add("L",t,e)},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){this._d.push(t);for(var u=1;u<arguments.length;u++){var c=arguments[u];if(isNaN(c))return void(this._invalid=!0);this._d.push(PI(c))}},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),HI={brush:function(t){var e=t.style,n=t.__svgEl;n||(n=yI("path"),t.__svgEl=n),t.path||t.createPathProxy();var r=t.path;t.shapeChanged()&&(r.beginPath(),t.buildPath(r,t.shape),t.pathUpdated());var i=r.getVersion(),o=t,a=o.__svgPathBuilder;(o.__svgPathVersion!==i||!a||t.style.strokePercent<1)&&(a||(a=o.__svgPathBuilder=new jI),a.reset(),r.rebuildPath(a,t.style.strokePercent),a.generateStr(),o.__svgPathVersion=i),BI(n,"d",a.getStr()),GI(n,e,t),zI(n,t.transform)}},WI={brush:function(t){var e=t.style,n=e.image;if(n instanceof HTMLImageElement?n=n.src:n instanceof HTMLCanvasElement&&(n=n.toDataURL()),n){var r=e.x||0,i=e.y||0,o=e.width,a=e.height,s=t.__svgEl;s||(s=yI("image"),t.__svgEl=s),n!==t.__imageSrc&&(VI(s,"href",n),t.__imageSrc=n),BI(s,"width",o+""),BI(s,"height",a+""),BI(s,"x",r+""),BI(s,"y",i+""),GI(s,e,t),zI(s,t.transform)}}},UI={left:"start",right:"end",center:"middle",middle:"middle"};function XI(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}var $I={brush:function(t){var e=t.style,n=e.text;if(null!=n&&(n+=""),n&&!isNaN(e.x)&&!isNaN(e.y)){var r=t.__svgEl;r||(r=yI("text"),FI(r,"xml:space","preserve"),t.__svgEl=r);var i=e.font||bi,o=r.style;o.font=i,r.textContent=n,GI(r,e,t),zI(r,t.transform);var a=e.x||0,s=XI(e.y||0,Di(i),e.textBaseline),l=UI[e.textAlign]||e.textAlign;BI(r,"dominant-baseline","central"),BI(r,"text-anchor",l),BI(r,"x",a+""),BI(r,"y",s+"")}}},YI="0",qI="1",ZI=function(){function t(t,e,n,r,i){this.nextId=0,this._domName="_dom",this.createElement=yI,this._zrId=t,this._svgRoot=e,this._tagNames="string"===typeof n?[n]:n,this._markLabel=r,i&&(this._domName=i)}return t.prototype.getDefs=function(t){var e=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");if(0===n.length){if(t){var r=e.insertBefore(this.createElement("defs"),e.firstChild);return r.contains||(r.contains=function(t){var e=r.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),r}return null}return n[0]},t.prototype.doUpdate=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"===typeof e&&e(t);else{var r=this.add(t);r&&(t[this._domName]=r)}}},t.prototype.add=function(t){return null},t.prototype.addDom=function(t){var e=this.getDefs(!0);t.parentNode!==e&&e.appendChild(t)},t.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},t.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return q(this._tagNames,(function(n){for(var r=t.getElementsByTagName(n),i=0;i<r.length;i++)e.push(r[i])})),e},t.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;q(t,(function(t){t[e._markLabel]=YI}))},t.prototype.markDomUsed=function(t){t&&(t[this._markLabel]=qI)},t.prototype.markDomUnused=function(t){t&&(t[this._markLabel]=YI)},t.prototype.isDomUnused=function(t){return t&&t[this._markLabel]!==qI},t.prototype.removeUnused=function(){var t=this,e=this.getDefs(!1);if(e){var n=this.getDoms();q(n,(function(n){t.isDomUnused(n)&&e.removeChild(n)}))}},t.prototype.getSvgProxy=function(t){return t instanceof Fl?HI:t instanceof Yl?WI:t instanceof Hl?$I:HI},t.prototype.getSvgElement=function(t){return t.__svgEl},t}(),KI=ZI;function JI(t){return"linear"===t.type}function QI(t){return"radial"===t.type}function tA(t){return t&&("linear"===t.type||"radial"===t.type)}var eA=function(t){function e(e,n){return t.call(this,e,n,["linearGradient","radialGradient"],"__gradient_in_use__")||this}return Et(e,t),e.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;q(["fill","stroke"],(function(r){var i=e.style[r];if(tA(i)){var o=i,a=n.getDefs(!0),s=void 0;o.__dom?(s=o.__dom,a.contains(o.__dom)||n.addDom(s)):s=n.add(o),n.markUsed(e);var l=s.getAttribute("id");t.setAttribute(r,"url(#"+l+")")}}))}},e.prototype.add=function(t){var e;if(JI(t))e=this.createElement("linearGradient");else{if(!QI(t))return B("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},e.prototype.update=function(t){if(tA(t)){var e=this;this.doUpdate(t,(function(){var n=t.__dom;if(n){var r=n.tagName,i=t.type;"linear"===i&&"linearGradient"===r||"radial"===i&&"radialGradient"===r?e.updateDom(t,t.__dom):(e.removeDom(t),e.add(t))}}))}},e.prototype.updateDom=function(t,e){if(JI(t))e.setAttribute("x1",t.x+""),e.setAttribute("y1",t.y+""),e.setAttribute("x2",t.x2+""),e.setAttribute("y2",t.y2+"");else{if(!QI(t))return void B("Illegal gradient type.");e.setAttribute("cx",t.x+""),e.setAttribute("cy",t.y+""),e.setAttribute("r",t.r+"")}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var n=t.colorStops,r=0,i=n.length;r<i;++r){var o=this.createElement("stop");o.setAttribute("offset",100*n[r].offset+"%");var a=n[r].color;if(a.indexOf("rgba")>-1){var s=Rn(a)[3],l=Vn(a);o.setAttribute("stop-color","#"+l),o.setAttribute("stop-opacity",s+"")}else o.setAttribute("stop-color",n[r].color);e.appendChild(o)}t.__dom=e},e.prototype.markUsed=function(e){if(e.style){var n=e.style.fill;n&&n.__dom&&t.prototype.markDomUsed.call(this,n.__dom),n=e.style.stroke,n&&n.__dom&&t.prototype.markDomUsed.call(this,n.__dom)}},e}(KI),nA=eA;function rA(t){return t&&(!!t.image||!!t.svgElement)}var iA=new rx,oA=function(t){function e(e,n){return t.call(this,e,n,["pattern"],"__pattern_in_use__")||this}return Et(e,t),e.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;q(["fill","stroke"],(function(r){var i=e.style[r];if(rA(i)){var o=n.getDefs(!0),a=iA.get(i);a?o.contains(a)||n.addDom(a):a=n.add(i),n.markUsed(e);var s=a.getAttribute("id");t.setAttribute(r,"url(#"+s+")")}}))}},e.prototype.add=function(t){if(rA(t)){var e=this.createElement("pattern");return t.id=null==t.id?this.nextId++:t.id,e.setAttribute("id","zr"+this._zrId+"-pattern-"+t.id),e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(t,e),this.addDom(e),e}},e.prototype.update=function(t){if(rA(t)){var e=this;this.doUpdate(t,(function(){var n=iA.get(t);e.updateDom(t,n)}))}},e.prototype.updateDom=function(t,e){var n=t.svgElement;if(n instanceof SVGElement)n.parentNode!==e&&(e.innerHTML="",e.appendChild(n),e.setAttribute("width",t.svgWidth+""),e.setAttribute("height",t.svgHeight+""));else{var r=void 0,i=e.getElementsByTagName("image");if(i.length){if(!t.image)return void e.removeChild(i[0]);r=i[0]}else t.image&&(r=this.createElement("image"));if(r){var o=void 0,a=t.image;if("string"===typeof a?o=a:a instanceof HTMLImageElement?o=a.src:a instanceof HTMLCanvasElement&&(o=a.toDataURL()),o){r.setAttribute("href",o),r.setAttribute("x","0"),r.setAttribute("y","0");var s={dirty:function(){}},l=Ea(o,r,s,(function(t){e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")}));l&&l.width&&l.height&&(e.setAttribute("width",l.width+""),e.setAttribute("height",l.height+"")),e.appendChild(r)}}}var u=t.x||0,c=t.y||0,h=(t.rotation||0)/Math.PI*180,f=t.scaleX||1,p=t.scaleY||1,d="translate("+u+", "+c+") rotate("+h+") scale("+f+", "+p+")";e.setAttribute("patternTransform",d),iA.set(t,e)},e.prototype.markUsed=function(e){e.style&&(rA(e.style.fill)&&t.prototype.markDomUsed.call(this,iA.get(e.style.fill)),rA(e.style.stroke)&&t.prototype.markDomUsed.call(this,iA.get(e.style.stroke)))},e}(KI),aA=oA;function sA(t){var e=[];if(t)for(var n=0;n<t.length;n++){var r=t[n];e.push(r.id)}return e.join(",")}function lA(t){var e=t.__clipPaths;return e&&e.length>0}var uA=function(t){function e(e,n){var r=t.call(this,e,n,"clipPath","__clippath_in_use__")||this;return r._refGroups={},r._keyDuplicateCount={},r}return Et(e,t),e.prototype.markAllUnused=function(){for(var e in t.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[e]);this._keyDuplicateCount={}},e.prototype._getClipPathGroup=function(t,e){if(lA(t)){var n=t.__clipPaths,r=this._keyDuplicateCount,i=sA(n);return yx(n,e&&e.__clipPaths)&&(r[i]=r[i]||0,r[i]&&(i+="-"+r[i]),r[i]++),this._refGroups[i]||(this._refGroups[i]=this.createElement("g"))}},e.prototype.update=function(t,e){var n=this._getClipPathGroup(t,e);return n&&(this.markDomUsed(n),this.updateDom(n,t.__clipPaths)),n},e.prototype.updateDom=function(t,e){if(e&&e.length>0){var n=this.getDefs(!0),r=e[0],i=void 0,o=void 0;r._dom?(o=r._dom.getAttribute("id"),i=r._dom,n.contains(i)||n.appendChild(i)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",o),n.appendChild(i),r._dom=i);var a=this.getSvgProxy(r);a.brush(r);var s=this.getSvgElement(r);i.innerHTML="",i.appendChild(s),t.setAttribute("clip-path","url(#"+o+")"),e.length>1&&this.updateDom(i,e.slice(1))}else t&&t.setAttribute("clip-path","none")},e.prototype.markUsed=function(e){var n=this;e.__clipPaths&&q(e.__clipPaths,(function(e){e._dom&&t.prototype.markDomUsed.call(n,e._dom)}))},e.prototype.removeUnused=function(){t.prototype.removeUnused.call(this);var e={};for(var n in this._refGroups){var r=this._refGroups[n];this.isDomUnused(r)?r.parentNode&&r.parentNode.removeChild(r):e[n]=r}this._refGroups=e},e}(KI),cA=uA,hA=function(t){function e(e,n){var r=t.call(this,e,n,["filter"],"__filter_in_use__","_shadowDom")||this;return r._shadowDomMap={},r._shadowDomPool=[],r}return Et(e,t),e.prototype._getFromPool=function(){var t=this._shadowDomPool.pop();if(!t){t=this.createElement("filter"),t.setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var e=this.createElement("feDropShadow");t.appendChild(e),this.addDom(t)}return t},e.prototype.update=function(t,e){var n=e.style;if(pA(n)){var r=dA(e),i=e._shadowDom=this._shadowDomMap[r];i||(i=this._getFromPool(),this._shadowDomMap[r]=i),this.updateDom(t,e,i)}else this.remove(t,e)},e.prototype.remove=function(t,e){null!=e._shadowDom&&(e._shadowDom=null,t.style.filter="")},e.prototype.updateDom=function(t,e,n){var r=n.children[0],i=e.style,o=e.getGlobalScale(),a=o[0],s=o[1];if(a&&s){var l=i.shadowOffsetX||0,u=i.shadowOffsetY||0,c=i.shadowBlur,h=i.shadowColor;r.setAttribute("dx",l/a+""),r.setAttribute("dy",u/s+""),r.setAttribute("flood-color",h);var f=c/2/a,p=c/2/s,d=f+" "+p;r.setAttribute("stdDeviation",d),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),e._shadowDom=n;var g=n.getAttribute("id");t.style.filter="url(#"+g+")"}},e.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this._shadowDomPool;for(var n in this._shadowDomMap){var r=this._shadowDomMap[n];e.push(r)}this._shadowDomMap={}}},e}(KI),fA=hA;function pA(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function dA(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function gA(t){return parseInt(t,10)}function vA(t){return t instanceof Fl?HI:t instanceof Yl?WI:t instanceof Hl?$I:HI}function yA(t,e){return e&&t&&e.parentNode!==t}function mA(t,e,n){if(yA(t,e)&&n){var r=n.nextSibling;r?t.insertBefore(e,r):t.appendChild(e)}}function _A(t,e){if(yA(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function xA(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function bA(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function wA(t){return t.__svgEl}var SA=function(){function t(t,e,n,r){this.type="svg",this.refreshHover=MA("refreshHover"),this.pathToImage=MA("pathToImage"),this.configLayer=MA("configLayer"),this.root=t,this.storage=e,this._opts=n=j({},n||{});var i=yI("svg");i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("baseProfile","full"),i.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=yI("g");i.appendChild(o);var a=yI("g");i.appendChild(a),this._gradientManager=new nA(r,a),this._patternManager=new aA(r,a),this._clipPathManager=new cA(r,a),this._shadowManager=new fA(r,a);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgDom=i,this._svgRoot=a,this._backgroundRoot=o,this._viewport=s,t.appendChild(s),s.appendChild(i),this.resize(n.width,n.height),this._visibleList=[]}return t.prototype.getType=function(){return"svg"},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.getSvgRoot=function(){return this._svgRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},t.prototype.setBackgroundColor=function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=yI("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},t.prototype.createSVGElement=function(t){return yI(t)},t.prototype.paintOne=function(t){var e=vA(t);return e&&e.brush(t),wA(t)},t.prototype._paintList=function(t){var e=this._gradientManager,n=this._patternManager,r=this._clipPathManager,i=this._shadowManager;e.markAllUnused(),n.markAllUnused(),r.markAllUnused(),i.markAllUnused();for(var o=this._svgRoot,a=this._visibleList,s=t.length,l=[],u=0;u<s;u++){var c=t[u],h=vA(c),f=wA(c);c.invisible||(!c.__dirty&&f||(h&&h.brush(c),f=wA(c),f&&c.style&&(e.update(c.style.fill),e.update(c.style.stroke),n.update(c.style.fill),n.update(c.style.stroke),i.update(f,c)),c.__dirty=0),f&&l.push(c))}var p,d,g,v,y=SI(a,l);for(u=0;u<y.length;u++){var m=y[u];if(m.removed)for(var _=0;_<m.count;_++){c=a[m.indices[_]],f=wA(c);lA(c)?bA(f):xA(o,f)}}for(u=0;u<y.length;u++){m=y[u];if(!m.removed)for(_=0;_<m.count;_++){c=l[m.indices[_]];var x=r.update(c,g);x!==v&&(p=d,x&&(p?mA(o,x,p):_A(o,x),d=x,p=null),v=x);f=wA(c);p?mA(v||o,f,p):_A(v||o,f),p=f||p,v||(d=p),e.markUsed(c),e.addWithoutUpdate(f,c),n.markUsed(c),n.addWithoutUpdate(f,c),r.markUsed(c),g=c}}e.removeUnused(),n.removeUnused(),r.removeUnused(),i.removeUnused(),this._visibleList=l},t.prototype.resize=function(t,e){var n=this._viewport;n.style.display="none";var r=this._opts;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var i=n.style;i.width=t+"px",i.height=e+"px";var o=this._svgDom;o.setAttribute("width",t+""),o.setAttribute("height",e+"")}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype._getSize=function(t){var e=this._opts,n=["width","height"][t],r=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[r]||gA(s[n])||gA(a.style[n]))-(gA(s[i])||0)-(gA(s[o])||0)|0},t.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},t.prototype.clear=function(){var t=this._viewport;t&&t.parentNode&&t.parentNode.removeChild(t)},t.prototype.toDataURL=function(){this.refresh();var t=this._svgDom,e=t.outerHTML||(t.parentNode&&t.parentNode).innerHTML,n=encodeURIComponent(e.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+n},t}();function MA(t){return function(){B('In SVG mode painter not support method "'+t+'"')}}var CA=SA;function TA(t){t.registerPainter("svg",CA)}var IA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return v(e,t),e.prototype.getInitialData=function(t){return iC(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Ui,n=px("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=px(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={zlevel:0,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,lineStyle:{width:"bolder"}},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},e}(am),AA=IA;function DA(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Qv(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Qv(t,e,n[a]));return o.join(" ")}}function kA(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!it(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionInfo(n[i]);o&&r.push(e[o.index])}return r.join(" ")}var LA=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return v(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=px(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=OA,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ec(this.childAt(0))},e.prototype.downplay=function(){nc(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){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.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{var h=this.childAt(0);h.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(f):If(h,f,a,n)}if(this._updateCommon(t,n,s,r,i),l){h=this.childAt(0);if(!u){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Af(h,f,a,n)}}u&&this.childAt(0).stopAnimation("remove"),this._seriesModel=a},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,f,p=this.childAt(0),d=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,c=r.labelStatesModels,h=r.hoverScale,f=r.cursorStyle),!r||t.hasItemOption){var g=r&&r.itemModel?r.itemModel:t.getItemModel(e),v=g.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=g.getModel(["select","itemStyle"]).getItemStyle(),a=g.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=Kf(g),h=v.getShallow("scale"),f=g.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(y||0)*Math.PI/180||0);var m=t.getItemVisual(e,"symbolOffset")||0;m&&(it(m)||(m=[m,m]),p.x=lo(m[0],n[0]),p.y=lo(mt(m[1],m[0])||0,n[1])),f&&p.attr("cursor",f);var _=t.getItemVisual(e,"style"),x=_.fill;if(p instanceof Yl){var b=p.style;p.useStyle(j({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},_))}else p.__isEmptyBrush?p.useStyle(j({},_)):p.useStyle(_),p.style.decal=null,p.setColor(x,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var w=t.getItemVisual(e,"liftZ"),S=this._z2;null!=w?null==S&&(this._z2=p.z2,p.z2+=w):null!=S&&(p.z2=S,this._z2=null);var M=i&&i.useNameLabel;function C(e){return M?t.getName(e):DA(t,e)}Zf(p,c,{labelFetcher:d,labelDataIndex:e,defaultText:C,inheritColor:x,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=p.ensureState("emphasis");if(T.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a,h){var I=Math.max(1.1,3/this._sizeY);T.scaleX=this._sizeX*I,T.scaleY=this._sizeY*I}this.setSymbolScale(1),mc(this,l,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e){var n=this.childAt(0),r=this._seriesModel,i=mu(this).dataIndex,o=e&&e.animation;if(this.silent=n.silent=!0,e&&e.fadeLabel){var a=n.getTextContent();a&&Df(a,{style:{opacity:0}},r,{dataIndex:i,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Df(n,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){var n=t.getItemVisual(e,"symbolSize");return it(n)?n.slice():[+n,+n]},e}(Ui);function OA(t,e){this.parent.drift(t,e)}var PA=LA;function EA(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 RA(t){return null==t||ut(t)||(t={isIgnore:t}),t||{}}function NA(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"),hoverScale:n.get("scale"),labelStatesModels:Kf(e),cursorStyle:e.get("cursor")}}var zA=function(){function t(t){this.group=new Ui,this._SymbolCtor=t||PA}return t.prototype.updateData=function(t,e){e=RA(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=NA(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(EA(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 f=i.getItemGraphicEl(h),p=u(c);if(EA(t,p,c,e)){if(f){f.updateData(t,c,s,l);var d={x:p[0],y:p[1]};a?f.attr(d):If(f,d,r)}else f=new o(t,c),f.setPosition(p);n.add(f),t.setItemGraphicEl(c,f)}else n.remove(f)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}))})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.isPersistent=function(){return!0},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=NA(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)}n=RA(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(EA(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)}}},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()},t}(),BA=zA;function VA(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=FA(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=Z(t.dimensions,(function(t){return e.mapDimension(t)})),f=!1,p=e.getCalculationInfo("stackResultDimension");return QM(e,h[0])&&(f=!0,h[0]=p),QM(e,h[1])&&(f=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function FA(t,e){var n=0,r=t.scale.getExtent();return"start"===e?n=r[0]:"end"===e?n=r[1]:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function GA(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 jA="undefined"!==typeof Float32Array,HA=jA?Float32Array:Array;function WA(t){return it(t)?jA?new Float32Array(t):t:new HA(t)}function UA(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function XA(t,e,n,r,i,o,a,s){for(var l=UA(t,e),u=[],c=[],h=[],f=[],p=[],d=[],g=[],v=VA(i,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],b=!0,w=void 0,S=void 0;switch(x.cmd){case"=":w=2*x.idx,S=2*x.idx1;var M=y[w],C=y[w+1],T=m[S],I=m[S+1];(isNaN(M)||isNaN(C))&&(M=T,C=I),u.push(M,C),c.push(T,I),h.push(n[w],n[w+1]),f.push(r[S],r[S+1]),g.push(e.getRawIndex(x.idx1));break;case"+":var A=x.idx,D=v.dataDimsForPoint,k=i.dataToPoint([e.get(D[0],A),e.get(D[1],A)]);S=2*A,u.push(k[0],k[1]),c.push(m[S],m[S+1]);var L=GA(v,i,e,A);h.push(L[0],L[1]),f.push(r[S],r[S+1]),g.push(e.getRawIndex(A));break;case"-":b=!1}b&&(p.push(x),d.push(d.length))}d.sort((function(t,e){return g[t]-g[e]}));var O=u.length,P=WA(O),E=WA(O),R=WA(O),N=WA(O),z=[];for(_=0;_<d.length;_++){var B=d[_],V=2*_,F=2*B;P[V]=u[F],P[V+1]=u[F+1],E[V]=c[F],E[V+1]=c[F+1],R[V]=h[F],R[V+1]=h[F+1],N[V]=f[F],N[V+1]=f[F+1],z[_]=p[B]}return{current:P,next:E,stackedOnCurrent:R,stackedOnNext:N,status:z}}var $A=Math.min,YA=Math.max;function qA(t,e){return isNaN(t)||isNaN(e)}function ZA(t,e,n,r,i,o,a,s,l){for(var u,c,h,f,p,d,g=n,v=0;v<r;v++){var y=e[2*g],m=e[2*g+1];if(g>=i||g<0)break;if(qA(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,f=m;else{var _=y-u,x=m-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){var b=g+o,w=e[2*b],S=e[2*b+1],M=v+1;if(l)while(qA(w,S)&&M<r)M++,b+=o,w=e[2*b],S=e[2*b+1];var C=.5,T=0,I=0,A=void 0,D=void 0;if(M>=r||qA(w,S))p=y,d=m;else{T=w-u,I=S-c;var k=y-u,L=w-y,O=m-c,P=S-m,E=void 0,R=void 0;"x"===s?(E=Math.abs(k),R=Math.abs(L),p=y-E*a,d=m,A=y+E*a,D=m):"y"===s?(E=Math.abs(O),R=Math.abs(P),p=y,d=m-E*a,A=y,D=m+E*a):(E=Math.sqrt(k*k+O*O),R=Math.sqrt(L*L+P*P),C=R/(R+E),p=y-T*a*(1-C),d=m-I*a*(1-C),A=y+T*a*C,D=m+I*a*C,A=$A(A,YA(w,y)),D=$A(D,YA(S,m)),A=YA(A,$A(w,y)),D=YA(D,$A(S,m)),T=A-y,I=D-m,p=y-T*E/R,d=m-I*E/R,p=$A(p,YA(u,y)),d=$A(d,YA(c,m)),p=YA(p,$A(u,y)),d=YA(d,$A(c,m)),T=y-p,I=m-d,A=y+T*R/E,D=m+I*R/E)}t.bezierCurveTo(h,f,p,d,y,m),h=A,f=D}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var KA=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),JA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return v(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;i--)if(!qA(n[2*i-2],n[2*i-1]))break;for(;r<i;r++)if(!qA(n[2*r],n[2*r+1]))break}while(r<i)r+=ZA(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,o=i.data,a=dl.CMD,s="x"===e,l=[],u=0;u<o.length;){var c=o[u++],h=void 0,f=void 0,p=void 0,d=void 0,g=void 0,v=void 0,y=void 0;switch(c){case a.M:n=o[u++],r=o[u++];break;case a.L:if(h=o[u++],f=o[u++],y=s?(t-n)/(h-n):(t-r)/(f-r),y<=1&&y>=0){var m=s?(f-r)*y+r:(h-n)*y+n;return s?[t,m]:[m,t]}n=h,r=f;break;case a.C:h=o[u++],f=o[u++],p=o[u++],d=o[u++],g=o[u++],v=o[u++];var _=s?bs(n,h,p,g,t,l):bs(r,f,d,v,t,l);if(_>0)for(var x=0;x<_;x++){var b=l[x];if(b<=1&&b>=0){m=s?_s(r,f,d,v,b):_s(n,h,p,g,b);return s?[t,m]:[m,t]}}n=g,r=v;break}}},e}(Fl),QA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e}(KA),tD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return v(e,t),e.prototype.getDefaultShape=function(){return new QA},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;o--)if(!qA(n[2*o-2],n[2*o-1]))break;for(;i<o;i++)if(!qA(n[2*i],n[2*i+1]))break}while(i<o){var s=ZA(t,n,i,o,o,1,e.smooth,a,e.connectNulls);ZA(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(Fl);function eD(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"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new ru({shape:{x:a,y:s,width:l,height:u}});if(e){var f=t.getBaseAxis(),p=f.isHorizontal(),d=f.inverse;p?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var g="function"===typeof i?function(t){i(t,h)}:null;Af(h,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return h}function nD(t,e,n){var r=t.getArea(),i=uo(r.r0,1),o=uo(r.r,1),a=new xh({shape:{cx:uo(t.cx,1),cy:uo(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=r.startAngle:a.shape.r=i,Af(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function rD(t,e,n,r,i){return t?"polar"===t.type?nD(t,e,n):"cartesian2d"===t.type?eD(t,e,n,r,i):null:null}function iD(t,e){return t.type===e}function oD(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function aD(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 sD(t,e){var n=aD(t),r=n[0],i=n[1],o=aD(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 lD(t){return"number"===typeof t?t:t?.5:0}function uD(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=WA(2*r),o=0;o<r;o++){var a=GA(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}function cD(t,e,n){for(var r=e.getBaseAxis(),i="x"===r.dim||"radius"===r.dim?0:1,o=[],a=0,s=[],l=[],u=[];a<t.length-2;a+=2)switch(u[0]=t[a+2],u[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],o.push(l[0],l[1]),n){case"end":s[i]=u[i],s[1-i]=l[1-i],o.push(s[0],s[1]);break;case"middle":var c=(l[i]+u[i])/2,h=[];s[i]=h[i]=c,s[1-i]=l[1-i],h[1-i]=u[1-i],o.push(s[0],s[1]),o.push(h[0],h[1]);break;default:s[i]=l[i],s[1-i]=u[1-i],o.push(s[0],s[1])}return o.push(t[a++],t[a++]),o}function hD(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var r,i,o=n.length-1;o>=0;o--){var a=n[o].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if(r=l&&l.coordDim,"x"===r||"y"===r){i=n[o];break}}if(i){var u=e.getAxis(r),c=Z(i.stops,(function(t){return{offset:0,coord:u.toGlobalCoord(u.dataToCoord(t.value,!0)),color:t.color}})),h=c.length,f=i.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),f.reverse());var p=10,d=c[0].coord-p,g=c[h-1].coord+p,v=g-d;if(v<.001)return"transparent";q(c,(function(t){t.offset=(t.coord-d)/v})),c.push({offset:h?c[h-1].offset:.5,color:f[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:f[0]||"transparent"});var y=new Kh(0,0,0,0,c,!0);return y[r]=d,y[r+"2"]=g,y}}}function fD(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!pD(o,e))){var a=e.mapDimension(o.dim),s={};return q(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function pD(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*PA.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}function dD(t,e){return isNaN(t)||isNaN(e)}function gD(t){for(var e=t.length/2;e>0;e--)if(!dD(t[2*e-2],t[2*e-1]))break;return e-1}function vD(t,e){return[t[2*e],t[2*e+1]]}function yD(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)}}function mD(t,e,n,r){if(iD(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("show"),a=i.get("valueAnimation"),s=r.getData(),l={lastFrameIndex:0},u=o?function(n,r){t._endLabelOnDuring(n,r,s,l,a,i,e)}:null,c=e.getBaseAxis().isHorizontal(),h=eD(e,n,r,(function(){var e=t._endLabel;e&&n&&null!=l.originalX&&e.attr({x:l.originalX,y:l.originalY})}),u);if(!r.get("clip",!0)){var f=h.shape,p=Math.max(f.width,f.height);c?(f.y-=p,f.height+=2*p):(f.x-=p,f.width+=2*p)}return u&&u(1,h),h}return nD(e,n,r)}function _D(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}}}var xD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.init=function(){var t=new Ui,e=new BA;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,h=this._coordSys,f=this._symbolDraw,p=this._polyline,d=this._polygon,g=this._lineGroup,v=t.get("animation"),y=!l.isEmpty(),m=l.get("origin"),_=VA(i,a,m),x=y&&uD(i,a,_),b=t.get("showSymbol"),w=b&&!c&&fD(t,a,i),S=this._data;S&&S.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),S.setItemGraphicEl(e,null))})),b||f.remove(),o.add(g);var M,C=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(M=i.getArea(),null!=M.width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var T=hD(a,i)||a.getVisual("style")[a.getVisual("drawType")];p&&h.type===i.type&&C===this._step?(y&&!d?d=this._newPolygon(u,x):d&&!y&&(g.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Ld(T)),g.setClipPath(mD(this,i,!1,t)),b&&f.updateData(a,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),oD(this._stackedOnPoints,x)&&oD(this._points,u)||(v?this._doUpdateAnimation(a,x,i,n,C,m):(C&&(u=cD(u,i,C),x&&(x=cD(x,i,C))),p.setShape({points:u}),d&&d.setShape({points:u,stackedOnPoints:x})))):(b&&f.updateData(a,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,i,M),C&&(u=cD(u,i,C),x&&(x=cD(x,i,C))),p=this._newPolyline(u),y&&(d=this._newPolygon(u,x)),c||this._initOrUpdateEndLabel(t,i,Ld(T)),g.setClipPath(mD(this,i,!0,t)));var I=t.get(["emphasis","focus"]),A=t.get(["emphasis","blurScope"]);if(p.useStyle(H(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),wc(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var D=p.getState("emphasis").style;D.lineWidth=+p.style.lineWidth+1}mu(p).seriesIndex=t.seriesIndex,mc(p,I,A);var k=lD(t.get("smooth")),L=t.get("smoothMonotone"),O=t.get("connectNulls");if(p.setShape({smooth:k,smoothMonotone:L,connectNulls:O}),d){var P=a.getCalculationInfo("stackedOnSeries"),E=0;d.useStyle(H(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(E=lD(P.get("smooth"))),d.setShape({smooth:k,stackedOnSmooth:E,smoothMonotone:L,connectNulls:O}),wc(d,t,"areaStyle"),mu(d).seriesIndex=t.seriesIndex,mc(d,I,A)}var R=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=R)})),this._polyline.onHoverStateChange=R,this._data=a,this._coordSys=i,this._stackedOnPoints=x,this._points=u,this._step=C,this._valueOrigin=m},e.prototype.dispose=function(){},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=ea(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"),h=t.get("z");s=new PA(i,o),s.x=l,s.y=u,s.setZ(c,h);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=c,f.z=h,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else mm.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=ea(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 mm.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;Xu(this._polyline,t),e&&Xu(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new JA({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 tD({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");"function"===typeof l&&(l=l(null));var u=s.get("animationDelay")||0,c="function"===typeof u?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],f=void 0,p=void 0,d=void 0;if(n)if(i){var g=n,v=e.pointToCoord(h);r?(f=g.startAngle,p=g.endAngle,d=-v[1]/180*Math.PI):(f=g.r0,p=g.r,d=v[0])}else{var y=n;r?(f=y.x,p=y.x+y.width,d=t.x):(f=y.y+y.height,p=y.y,d=t.y)}var m=p===f?0:(d-f)/(p-f);a&&(m=1-m);var _="function"===typeof 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,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(r.get("show")){var i=t.getData(),o=this._polyline,a=this._endLabel;a||(a=this._endLabel=new yu({z2:200}),a.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=gD(i.getLayout("points"));s>=0&&(Zf(o,Kf(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,n){return null!=n?kA(i,n):DA(i,t)},enableTextSetter:!0},_D(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"),f=o.get("precision"),p=o.get("distance")||0,d=a.getBaseAxis(),g=d.isHorizontal(),v=d.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,_=(g?p:0)*(v?-1:1),x=(g?0:-p)*(v?-1:1),b=g?"x":"y",w=yD(u,m,b),S=w.range,M=S[1]-S[0],C=void 0;if(M>=1){if(M>1&&!h){var T=vD(u,S[0]);s.attr({x:T[0]+_,y:T[1]+x}),i&&(C=c.getRawValue(S[0]))}else{T=l.getPointOn(m,b);T&&s.attr({x:T[0]+_,y:T[1]+x});var I=c.getRawValue(S[0]),A=c.getRawValue(S[1]);i&&(C=pa(n,f,I,A,w.t))}r.lastFrameIndex=S[0]}else{var D=1===t||r.lastFrameIndex>0?S[0]:0;T=vD(u,D);i&&(C=c.getRawValue(D)),s.attr({x:T[0]+_,y:T[1]+x})}i&&sp(s).setLabelText(C)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=XA(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),c=u.current,h=u.stackedOnCurrent,f=u.next,p=u.stackedOnNext;if(i&&(c=cD(u.current,n,i),h=cD(u.stackedOnCurrent,n,i),f=cD(u.next,n,i),p=cD(u.stackedOnNext,n,i)),sD(c,f)>3e3||s&&sD(h,p)>3e3)return a.setShape({points:f}),void(s&&s.setShape({points:f,stackedOnPoints:p}));a.shape.__points=u.current,a.shape.points=c;var d={shape:{points:f}};u.current!==c&&(d.shape.__points=u.next),a.stopAnimation(),If(a,d,l),s&&(s.setShape({points:c,stackedOnPoints:h}),s.stopAnimation(),If(s,{shape:{stackedOnPoints:p}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var g=[],v=u.status,y=0;y<v.length;y++){var m=v[y].cmd;if("="===m){var _=t.getItemGraphicEl(v[y].idx1);_&&g.push({el:_,ptIdx:y})}}a.animators&&a.animators.length&&a.animators[0].during((function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<g.length;e++){var n=g[e].el,r=2*g[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}(mm),bD=xD;function wD(t,e){return{seriesType:t,plan:um(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=Z(r.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");QM(n,a[0])&&(a[0]=l),QM(n,a[1])&&(a[1]=l);var u=n.getDimensionInfo(a[0]),c=n.getDimensionInfo(a[1]),h=u&&u.index,f=c&&c.index;return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&WA(n*s),a=[],l=[],u=t.start,c=0;u<t.end;u++){var p=void 0;if(1===s){var d=e.getByDimIdx(h,u);p=r.dataToPoint(d,null,l)}else a[0]=e.getByDimIdx(h,u),a[1]=e.getByDimIdx(f,u),p=r.dataToPoint(a,null,l);o?(i[c++]=p[0],i[c++]=p[1]):e.setItemLayout(u,p.slice())}o&&e.setLayout("points",i)}}}}}}var SD={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]}},MD=function(t){return Math.round(t.length/2)};function CD(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),f=Math.round(a/h);if(f>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/f));var p=void 0;"string"===typeof i?p=SD[i]:"function"===typeof i&&(p=i),p&&t.setData(r.downSample(r.mapDimension(l.dim),1/f,p,MD))}}}}}function TD(t){t.registerChartView(bD),t.registerSeriesModel(AA),t.registerLayout(wD("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,CD("line"))}var ID=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.getInitialData=function(t,e){return iC(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=i+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(am);am.registerClass(ID);var AD=ID,DD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.getInitialData=function(){return iC(this.getSource(),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=Tp(AD.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}(AD),kD=DD,LD=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),OD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return v(e,t),e.prototype.getDefaultShape=function(){return new LD},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=Math.cos(l),f=Math.sin(l),p=Math.cos(u),d=Math.sin(u),g=c?u-l<2*Math.PI:l-u<2*Math.PI;g&&(t.moveTo(h*i+n,f*i+r),t.arc(h*s+n,f*s+r,a,-Math.PI+l,l,!c)),t.arc(n,r,o,l,u,!c),t.moveTo(p*o+n,d*o+r),t.arc(p*s+n,d*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&(t.arc(n,r,i,u,l,c),t.moveTo(h*i+n,d*i+r)),t.closePath()},e}(Fl),PD=OD,ED=[0,0],RD=Math.max,ND=Math.min;function zD(t,e){var n=t.getArea&&t.getArea();if(iD(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}var BD=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return v(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._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._incrementalRenderLarge(t,e)},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=GD(t,l);h&&this._enableRealtimeSort(h,a,n);var f=t.get("clip",!0)||h,p=zD(l,a);o.removeClipPath();var d=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],_=this._backgroundEls,x=r&&r.isInitSort,b=r&&"changeAxisOrder"===r.type;function w(t){var e=HD[l.type](a,t),n=ek(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=HD[l.type](a,e,n);if(g&&w(e),a.hasValue(e)){var s=!1;f&&(s=VD[l.type](p,r));var v=FD[l.type](t,a,e,r,i,c,u.model,!1,d);UD(v,a,e,n,r,t,i,"polar"===l.type),x?v.attr({shape:r}):h?jD(h,c,v,r,e,i,!1,!1):Af(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),S=HD[l.type](a,e,r);if(g){var M=void 0;0===_.length?M=w(n):(M=_[n],M.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&M.setShape("r",y),m[e]=M);var C=HD[l.type](a,e),T=tk(i,C,l);If(M,{shape:T},c,e)}var I=s.getItemGraphicEl(n);if(!a.hasValue(e))return o.remove(I),void(I=null);var A=!1;f&&(A=VD[l.type](p,S),A&&o.remove(I)),I||(I=FD[l.type](t,a,e,S,i,c,u.model,!!I,d)),b||UD(I,a,e,r,S,t,i,"polar"===l.type),x?I.attr({shape:S}):h?jD(h,c,I,S,e,i,!0,b):If(I,{shape:S},t,e,null),a.setItemGraphicEl(e,I),I.ignore=A,o.add(I)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Lf(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Ui);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(),qD(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),qD(e,this.group,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)?rD(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.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);if(n){var r=n.shape;return(i.isHorizontal()?Math.abs(r.height):Math.abs(r.width))||0}return 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:Z(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,animation:{duration:0}})},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){Lf(e,t,mu(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}(mm),VD={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=RD(e.x,t.x),s=ND(e.x+e.width,i),l=RD(e.y,t.y),u=ND(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=ND(e.r,t.r),o=RD(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}},FD={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new ru({shape:j({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(t,e,n,r,i,o,a,s,l){var u=r.startAngle<r.endAngle,c=!i&&l?PD:xh,h=new c({shape:H({clockwise:u},r),z2:1});if(h.name="item",o){var f=h.shape,p=i?"r":"endAngle",d={};f[p]=i?0:r.startAngle,d[p]=r[p],(s?If:Af)(h,{shape:d},o)}return h}};function GD(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)}}function jD(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?If:Af)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?If:Af)(n,{shape:u},c,i)}var HD={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?XD(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}}};function WD(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function UD(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=r.getShallow("cursor");if(u&&t.attr("cursor",u),!s){var c=a?i.height>0?"bottom":"top":i.width>0?"left":"right",h=Kf(r);Zf(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:DA(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var f=t.getTextContent();lp(f,h,o.getRawValue(n),(function(t){return kA(e,t)}))}var p=r.getModel(["emphasis"]);mc(t,p.get("focus"),p.get("blurScope")),wc(t,r),WD(i)&&(t.style.fill="none",t.style.stroke="none",q(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function XD(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)}var $D=function(){function t(){}return t}(),YD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return v(e,t),e.prototype.getDefaultShape=function(){return new $D},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.__startPoint,i=this.__baseDimIdx,o=0;o<n.length;o+=2)r[i]=n[o+i],t.moveTo(r[0],r[1]),t.lineTo(n[o],n[o+1])},e}(Fl);function qD(t,e,n){var r=t.getData(),i=[],o=r.getLayout("valueAxisHorizontal")?1:0;i[1-o]=r.getLayout("valueAxisStart");var a=r.getLayout("largeDataIndices"),s=r.getLayout("barWidth"),l=t.getModel("backgroundStyle"),u=t.get("showBackground",!0);if(u){var c=r.getLayout("largeBackgroundPoints"),h=[];h[1-o]=r.getLayout("backgroundStart");var f=new YD({shape:{points:c},incremental:!!n,silent:!0,z2:0});f.__startPoint=h,f.__baseDimIdx=o,f.__largeDataIndices=a,f.__barWidth=s,QD(f,l,r),e.add(f)}var p=new YD({shape:{points:r.getLayout("largePoints")},incremental:!!n});p.__startPoint=i,p.__baseDimIdx=o,p.__largeDataIndices=a,p.__barWidth=s,e.add(p),JD(p,t,r),mu(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",ZD),p.on("mousemove",ZD))}var ZD=wm((function(t){var e=this,n=KD(e,t.offsetX,t.offsetY);mu(e).dataIndex=n>=0?n:null}),30,!1);function KD(t,e,n){var r=t.__baseDimIdx,i=1-r,o=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[i];ED[0]=e,ED[1]=n;for(var u=ED[r],c=ED[1-r],h=u-s,f=u+s,p=0,d=o.length/2;p<d;p++){var g=2*p,v=o[g+r],y=o[g+i];if(v>=h&&v<=f&&(l<=y?c>=l&&c<=y:c>=y&&c<=l))return a[p]}return-1}function JD(t,e,n){var r=n.getVisual("style");t.useStyle(j({},r)),t.style.fill=null,t.style.stroke=r.fill,t.style.lineWidth=n.getLayout("barWidth")}function QD(t,e,n){var r=e.get("borderColor")||e.get("color"),i=e.getItemStyle();t.useStyle(i),t.style.fill=null,t.style.stroke=r,t.style.lineWidth=n.getLayout("barWidth")}function tk(t,e,n){if(iD(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}}i=n.getArea();var o=e;return{cx:i.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}}function ek(t,e,n){var r="polar"===t.type?xh:ru;return new r({shape:tk(e,n,t),silent:!0,z2:0})}var nk=BD;function rk(t){t.registerChartView(nk),t.registerSeriesModel(kD),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,rt(EC,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,RC),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,CD("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var ik=2*Math.PI,ok=Math.PI/180;function ak(t,e){return Vd(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function sk(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=ak(t,n),o=t.get("center"),a=t.get("radius");it(a)||(a=[0,a]),it(o)||(o=[o,o]);var s=lo(i.width,n.getWidth()),l=lo(i.height,n.getHeight()),u=Math.min(s,l),c=lo(o[0],s)+i.x,h=lo(o[1],l)+i.y,f=lo(a[0],u/2),p=lo(a[1],u/2),d=-t.get("startAngle")*ok,g=t.get("minAngle")*ok,v=0;e.each(r,(function(t){!isNaN(t)&&v++}));var y=e.getSum(r),m=Math.PI/(y||v)*2,_=t.get("clockwise"),x=t.get("roseType"),b=t.get("stillShowZeroSum"),w=e.getDataExtent(r);w[0]=0;var S=ik,M=0,C=d,T=_?1:-1;if(e.setLayout({viewRect:i,r:p}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:h,r0:f,r:x?NaN:p});else{r="area"!==x?0===y&&b?m:t*m:ik/v,r<g?(r=g,S-=g):M+=t;var i=C+T*r;e.setItemLayout(n,{angle:r,startAngle:C,endAngle:i,clockwise:_,cx:c,cy:h,r0:f,r:x?so(t,w,[f,p]):p}),C=i}})),S<ik&&v)if(S<=.001){var I=ik/v;e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=I,r.startAngle=d+T*n*I,r.endAngle=d+T*(n+1)*I}}))}else m=S/M,C=d,e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===g?g:t*m;r.startAngle=C,r.endAngle=C+T*i,C+=T*i}}))}))}function lk(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 uk=Math.PI/180;function ck(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 f=t[h].label.x-u;t[h].linePoints[1][0]+=f,t[h].label.x=u}V_(t,l,l+a)&&d(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,f=Math.sqrt((1-Math.abs(u*u/a))*h);l.label.x=e+(f+l.len2)*i}}function d(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,f=r+l.len,d=Math.abs(h)<f?Math.sqrt(c*c/(1-h*h/f/f)):f;u.rB=d,u.maxY=c}u.list.push(l)}p(o),p(a)}}function hk(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,f=0;f<t.length;f++){var p=t[f].label;fk(t[f])||(p.x<e?(c=Math.min(c,p.x),l.push(t[f])):(h=Math.max(h,p.x),u.push(t[f])))}ck(u,e,n,r,1,i,o,a,s,h),ck(l,e,n,r,-1,i,o,a,s,c);for(f=0;f<t.length;f++){var d=t[f];p=d.label;if(!fk(d)){var g=d.linePoints;if(g){var v="edge"===d.labelAlignTo,y=d.rect.width,m=void 0;m=v?p.x<e?g[2][0]-d.labelDistance-a-d.edgeDistance:a+i-d.edgeDistance-g[2][0]-d.labelDistance:p.x<e?p.x-a-d.bleedMargin:a+i-p.x-d.bleedMargin,m<d.rect.width&&(d.label.style.width=m,"edge"===d.labelAlignTo&&(y=m));var _=g[1][0]-g[2][0];v?p.x<e?g[2][0]=a+d.edgeDistance+y+d.labelDistance:g[2][0]=a+i-d.edgeDistance-y-d.labelDistance:(p.x<e?g[2][0]=p.x+d.labelDistance:g[2][0]=p.x-d.labelDistance,g[1][0]=g[2][0]+_),g[1][1]=g[2][1]=p.y}}}}function fk(t){return"center"===t.position}function pk(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*uk,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,f=s.height;function p(t){t.ignore=!0}function d(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),v=r.getItemModel(t),y=v.getModel("label"),m=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),x=y.get("alignTo"),b=lo(y.get("edgeDistance"),u),w=y.get("bleedMargin"),S=v.getModel("labelLine"),M=S.get("length");M=lo(M,u);var C=S.get("length2");if(C=lo(C,u),Math.abs(h.endAngle-h.startAngle)<a)return q(f.states,p),void(f.ignore=!0);if(d(f)){var T,I,A,D,k=(h.startAngle+h.endAngle)/2,L=Math.cos(k),O=Math.sin(k);e=h.cx,n=h.cy;var P,E="inside"===m||"inner"===m;if("center"===m)T=h.cx,I=h.cy,D="center";else{var R=(E?(h.r+h.r0)/2*L:h.r*L)+e,N=(E?(h.r+h.r0)/2*O:h.r*O)+n;if(T=R+3*L,I=N+3*O,!E){var z=R+L*(M+l-h.r),B=N+O*(M+l-h.r),V=z+(L<0?-1:1)*C,F=B;T="edge"===x?L<0?c+b:c+u-b:V+(L<0?-_:_),I=F,A=[[R,N],[z,B],[V,F]]}D=E?"center":"edge"===x?L>0?"right":"left":L>0?"left":"right"}var G=y.get("rotate");if(P="number"===typeof G?G*(Math.PI/180):G?L<0?-k+Math.PI:-k:0,o=!!P,f.x=T,f.y=I,f.rotation=P,f.setStyle({verticalAlign:"middle"}),E){f.setStyle({align:D});var j=f.states.select;j&&(j.x+=f.x,j.y+=f.y)}else{var H=f.getBoundingRect().clone();H.applyTransform(f.getComputedTransform());var W=(f.style.margin||0)+2.1;H.y-=W/2,H.height+=W,i.push({label:f,labelLine:g,position:m,len:M,len2:C,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new ui(L,O),linePoints:A,textAlign:D,labelDistance:_,labelAlignTo:x,edgeDistance:b,bleedMargin:w,rect:H})}s.setTextConfig({inside:E})}})),!o&&t.get("avoidLabelOverlap")&&hk(i,e,n,l,u,f,c,h);for(var g=0;g<i.length;g++){var v=i[g],y=v.label,m=v.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),_&&(q(y.states,p),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var b=v.linePoints;_||!b?(q(m.states,p),m.ignore=!0):(k_(b,v.minTurnAngle),L_(b,v.surfaceNormal,v.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new ui(b[0][0],b[0][1])})}}}function dk(t,e){var n=t.get("borderRadius");return null==n?null:(it(n)||(n=[n,n]),{innerCornerRadius:ki(n[0],e.r0),cornerRadius:ki(n[1],e.r)})}var gk=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new yu;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return v(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=j(dk(a.getModel("itemStyle"),l)||{},l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");"scale"===c?(i.shape.r=l.r0,Af(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),Af(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,If(i,{shape:{endAngle:l.endAngle}},o,e))}else If(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),wc(i,a);var h=(l.startAngle+l.endAngle)/2,f=o.get("selectedOffset"),p=Math.cos(h)*f,d=Math.sin(h)*f,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=y({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},dk(s.getModel("itemStyle"),l)),j(i.ensureState("select"),{x:p,y:d,shape:dk(a.getModel(["select","itemStyle"]),l)}),j(i.ensureState("blur"),{shape:dk(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),m=i.getTextContent();v&&j(v.ensureState("select"),{x:p,y:d}),j(m.ensureState("select"),{x:p,y:d}),mc(this,s.get("focus"),s.get("blurScope"))}},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;Zf(r,Kf(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 Ph,this.setTextGuideLine(h)),E_(this,R_(i),{stroke:s,opacity:_t(o.get(["lineStyle","opacity"]),l,1)})}},e}(xh),vk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return v(e,t),e.prototype.init=function(){var t=new Ui;this._sectorGroup=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)}o.diff(a).add((function(t){var e=new gk(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){var n=a.getItemGraphicEl(e);Lf(n,t,e)})).execute(),pk(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,o=t[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},e.type="pie",e}(mm),yk=vk;function mk(t,e,n){e=it(e)&&{coordDimensions:e}||j({},e);var r=t.getSource(),i=$M(r,e),o=new jM(i,t);return o.initData(r,n),o}var _k=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),xk=_k,bk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.useColorPaletteOnData=!0,e}return v(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xk(nt(this.getData,this),nt(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return mk(this,{coordDimensions:["value"],encodeDefaulter:rt(fg,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=[];return n.each(n.mapDimension("value"),(function(t){i.push(t)})),r.percent=go(i,e,n.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},e.prototype._defaultLabelLine=function(t){Ro(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={zlevel:0,z:2,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(am),wk=bk;function Sk(t){t.registerChartView(yk),t.registerSeriesModel(wk),K_("pie",t.registerAction),t.registerLayout(rt(sk,"pie")),t.registerProcessor(lk("pie"))}var Mk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return v(e,t),e.prototype.getInitialData=function(t,e){return iC(this.getSource(),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.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},e}(am),Ck=Mk,Tk=4,Ik=function(){function t(){}return t}(),Ak=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultShape=function(){return new Ik},e.prototype.buildPath=function(t,e){var n=e.points,r=e.size,i=this.symbolProxy,o=i.shape,a=t.getContext?t.getContext():t,s=a&&r[0]<Tk;if(s)this._ctx=a;else{this._ctx=null;for(var l=0;l<n.length;){var u=n[l++],c=n[l++];isNaN(u)||isNaN(c)||(this.softClipShape&&!this.softClipShape.contain(u,c)||(o.x=u-r[0]/2,o.y=c-r[1]/2,o.width=r[0],o.height=r[1],i.buildPath(t,o,!0)))}}},e.prototype.afterBrush=function(){var t=this.shape,e=t.points,n=t.size,r=this._ctx;if(r)for(var i=0;i<e.length;){var o=e[i++],a=e[i++];isNaN(o)||isNaN(a)||(this.softClipShape&&!this.softClipShape.contain(o,a)||r.fillRect(o-n[0]/2,a-n[1]/2,n[0],n[1]))}},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}(Fl),Dk=function(){function t(){this.group=new Ui}return t.prototype.isPersistent=function(){return!this._incremental},t.prototype.updateData=function(t,e){this.group.removeAll();var n=new Ak({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},t.prototype.updateLayout=function(t){if(!this._incremental){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.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new uf({silent:!0})),this.group.add(this._incremental)):this._incremental=null},t.prototype.incrementalUpdate=function(t,e,n){var r;this._incremental?(r=new Ak,this._incremental.addDisplayable(r,!0)):(r=new Ak({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),r.incremental=!0,this.group.add(r)),r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,!!this._incremental,n)},t.prototype._setCommon=function(t,e,n,r){var i=e.hostModel;r=r||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=r.clipShape||null,t.symbolProxy=px(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<Tk;t.useStyle(i.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;if(l&&t.setColor(l),!n){var u=mu(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){u.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(u.dataIndex=n+(t.startIndex||0))}))}},t.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},t.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t}(),kk=Dk,Lk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.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||!this._symbolDraw.isPersistent())return{update:!0};var i=wD("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new kk:new BA,this._isLargeDraw=i,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}(mm),Ok=Lk,Pk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(qd),Ek=Pk,Rk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",aa).models[0]},e.type="cartesian2dAxis",e}(qd);$(Rk,TT);var Nk={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},zk=F({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Nk),Bk=F({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}}},Nk),Vk=F({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Bk),Fk=H({scale:!0,logBase:10},Bk),Gk={category:zk,value:Bk,time:Vk,log:Fk},jk={value:1,category:1,time:1,log:1};function Hk(t,e,n,r){q(jk,(function(i,o){var a=F(F({},Gk[o],!0),r,!0),s=function(t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return i.type=e+"Axis."+o,i}return v(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=jd(this),r=n?Wd(t):{},i=e.getTheme();F(t,i.get(o+"Axis")),F(t,this.getDefaultOption()),t.type=Wk(t),n&&Hd(t,r,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=uC.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=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",Wk)}function Wk(t){return t.type||(t.data?"category":"value")}var Uk=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 Z(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),J(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}(),Xk=Uk,$k=["x","y"];function Yk(t){return"interval"===t.type||"time"===t.type}var qk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=$k,e}return v(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(Yk(t)&&Yk(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,f=this._transform=[l,0,0,u,c,h];this._invTransform=qr([],f)}}},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.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 re(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||[],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 re(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(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new _i(n,r,i,o)},e}(Xk),Zk=qk,Kk=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 v(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}(JT),Jk=Kk;function Qk(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],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,d="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[f.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[f[l]]:h[0],"x"===u?d[f[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?d[f[s]]-d[f.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),yt(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 tL(t){return"cartesian2d"===t.get("coordinateSystem")}function eL(t){var e={xAxisModel:null,yAxisModel:null};return q(e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,aa).models[0];e[r]=o})),e}var nL=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=$k,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;this._updateScale(t,this.model),q(n.x,(function(t){gT(t.scale,t.model)})),q(n.y,(function(t){gT(t.scale,t.model)}));var r={};q(n.x,(function(t){iL(n,"y",t,r)})),q(n.y,(function(t){iL(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Vd(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){q(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]),aL(t,e?o.x:o.y)}))}s(),i&&(q(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=xT(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()),q(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]}ut(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",aa).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",aa).models[0],a=t.gridModel,s=this._coordsList;if(r)e=r.coordinateSystem,U(s,e)<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){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var 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(rL(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 Jk(e,vT(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,q(a.x,(function(e,n){q(a.y,(function(i,o){var a="x"+n+"y"+o,s=new Zk(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){q(MT(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}q(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(tL(t)){var r=eL(t),i=r.xAxisModel,o=r.yAxisModel;if(!rL(i,e)||!rL(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");"list"===s.type&&(n(s,l),n(s,u))}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return q(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);U(e,i)<0&&e.push(i),U(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(tL(t)){var e=eL(t),n=e.xAxisModel,r=e.yAxisModel,i=n.getCoordSysModel();0;var o=i.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),r},t.dimensions=$k,t}();function rL(t,e){return t.getCoordSysModel()===e}function iL(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)oL(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&oL(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function oL(t){return t&&"category"!==t.type&&"time"!==t.type&&yT(t)}function aL(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}}var sL=nL,lL=Math.PI,uL=function(){function t(t,e){this.group=new Ui,this.opt=e,this.axisModel=t,H(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ui({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!cL[t]},t.prototype.add=function(t){cL[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=mo(e-t);return _o(o)?(i=n>0?"top":"bottom",r="center"):_o(o-lL)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<lL?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}(),cL={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];a&&(re(s,s,a),re(l,l,a));var u=j({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new zh({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=e.get(["axisLine","symbol"]),f=e.get(["axisLine","symbolSize"]),p=e.get(["axisLine","symbolOffset"])||0;if("number"===typeof p&&(p=[p,p]),null!=h){"string"===typeof h&&(h=[h,h]),"string"!==typeof f&&"number"!==typeof f||(f=[f,f]);var d=f[0],g=f[1];q([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==h[r]&&null!=h[r]){var i=px(h[r],-d/2,-g/2,d,g,u.stroke,!0),o=e.r+e.offset;i.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=yL(n,r,e,t),o=_L(n,r,e,t);fL(e,o,i),mL(n,r,e,t.tickDirection)},axisName:function(t,e,n,r){var i=yt(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(),f=h[0]>h[1]?-1:1,p=["start"===s?h[0]-f*c:"end"===s?h[1]+f*c:(h[0]+h[1])/2,gL(s)?t.labelOffset+l*c:0],d=e.get("nameRotate");null!=d&&(d=d*lL/180),gL(s)?o=uL.innerTextLayout(t.rotation,null!=d?d:t.rotation,l):(o=hL(t.rotation,s,d||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=yt(t.nameTruncateMaxWidth,v.maxWidth,a),_=new yu({x:p[0],y:p[1],rotation:o.rotation,silent:uL.isLabelSilent(e),style:Jf(u,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Xf({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var x=uL.makeAxisEventDataBase(e);x.targetType="axisName",x.name=i,mu(_).eventData=x}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function hL(t,e,n,r){var i,o,a=mo(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return _o(a-lL/2)?(o=l?"bottom":"top",i="center"):_o(a-1.5*lL)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*lL&&a>lL/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function fL(t,e,n){if(!ST(t.axis)){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],f=n[n.length-2];!1===r?(pL(o),pL(u)):dL(o,a)&&(r?(pL(a),pL(c)):(pL(o),pL(u))),!1===i?(pL(s),pL(h)):dL(l,s)&&(i?(pL(l),pL(f)):(pL(s),pL(h)))}}function pL(t){t&&(t.ignore=!0)}function dL(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=Hr([]);return $r(i,i,-t.rotation),n.applyTransform(Ur([],i,t.getLocalTransform())),r.applyTransform(Ur([],i,e.getLocalTransform())),n.intersect(r)}}function gL(t){return"middle"===t||"center"===t}function vL(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&&(re(a,a,e),re(s,s,e));var c=new zh({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}function yL(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=vL(u,e.transform,l,H(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}}function mL(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!i.scale.isBlank()){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=H(s.getLineStyle(),H(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=vL(a[c],e.transform,l,u,"minorticks_"+c),f=0;f<h.length;f++)t.add(h[f])}}function _L(t,e,n,r){var i=n.axis,o=yt(r.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!i.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(yt(r.labelRotate,a.get("rotate"))||0)*lL/180,c=uL.innerTextLayout(r.rotation,u,r.labelDirection),h=n.getCategories&&n.getCategories(!0),f=[],p=uL.isLabelSilent(n),d=n.get("triggerEvent");return q(l,(function(o,l){var u="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,g=o.formattedLabel,v=o.rawLabel,y=a;if(h&&h[u]){var m=h[u];ut(m)&&m.textStyle&&(y=new bp(m.textStyle,a,n.ecModel))}var _=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(u),b=new yu({x:x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:p,z2:10,style:Jf(y,{text:g,align:y.getShallow("align",!0)||c.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||c.textVerticalAlign,fill:"function"===typeof _?_("category"===i.type?v:"value"===i.type?u+"":u,l):_})});if(b.anid="label_"+u,d){var w=uL.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=v,mu(b).eventData=w}e.add(b),b.updateTransform(),f.push(b),t.add(b),b.decomposeTransform()})),f}}var xL=uL;function bL(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return wL(n,t,e),n.seriesInvolved&&ML(n,t),n}function wL(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];q(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=LL(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(q(n.getAxes(),rt(d,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var h="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||f)&&q(p.baseAxes,rt(d,!f||"cross",h)),f&&q(p.otherAxes,rt(d,"cross",!1))}}function d(r,s,u){var h=u.model.getModel("axisPointer",i),f=h.get("show");if(f&&("auto"!==f||r||kL(h))){null==s&&(s=h.get("triggerTooltip")),h=r?SL(u,c,i,e,r,s):h;var p=h.get("snap"),d=LL(u.model),g=s||p||"category"===u.type,v=t.axesInfo[d]={key:d,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:p,useHandle:kL(h),seriesModels:[],linkGroup:null};l[d]=v,t.seriesInvolved=t.seriesInvolved||g;var y=CL(o,u);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[d]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}}))}function SL(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};q(s,(function(t){l[t]=V(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&H(u,h.textStyle)}}return t.model.getModel("axisPointer",new bp(l,n,r))}function ML(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)&&q(t.coordSysAxesInfo[LL(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())}))}))}function CL(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(TL(o[r+"AxisId"],n.id)||TL(o[r+"AxisIndex"],n.componentIndex)||TL(o[r+"AxisName"],n.name))return i}}function TL(t,e){return"all"===t||it(t)&&U(t,e)>=0||t===e}function IL(t){var e=AL(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=kL(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")}}function AL(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[LL(t)]}function DL(t){var e=AL(t);return e&&e.axisPointerModel}function kL(t){return!!t.get(["handle","show"])}function LL(t){return t.type+"||"+t.id}var OL={},PL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&IL(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=DL(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){OL[t]=e},e.getAxisPointerClass=function(t){return t&&OL[t]},e.type="axis",e}(lm),EL=PL,RL=na();function NL(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=RL(t).splitAreaColors,f=At(),p=0;if(h)for(var d=0;d<u.length;d++){var g=h.get(u[d].tickValue);if(null!=g){p=(g+(c-1)*d)%c;break}}var v=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=it(s)?s:[s];for(d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,x=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=v,x=l.y,b=m-_,w=l.height,v=_+b):(_=l.x,x=v,b=l.width,w=m-x,v=x+w);var S=u[d-1].tickValue;null!=S&&f.set(S,p),e.add(new ru({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:H({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}RL(t).splitAreaColors=f}}}function zL(t){RL(t).splitAreaColors=null}var BL=["axisLine","axisTickLabel","axisName"],VL=["splitArea","splitLine","minorSplitLine"],FL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return v(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ui,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Qk(a,e),l=new xL(e,j({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++){var i=n[r].getOtherAxis(e.axis).type;if("value"===i||"log"===i)return!0}return!1}},s));q(BL,l.add,l),this._axisGroup.add(l.getGroup()),q(VL,(function(t){e.get([t,"show"])&&GL[t](this,this._axisGroup,e,a)}),this),Bf(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){zL(this)},e.type="cartesianAxis",e}(EL),GL={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");s=it(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,h=i.getTicksCoords({tickModel:o}),f=[],p=[],d=a.getLineStyle(),g=0;g<h.length;g++){var v=i.toGlobalCoord(h[g].coord);u?(f[0]=v,f[1]=l.y,p[0]=v,p[1]=l.y+l.height):(f[0]=l.x,f[1]=v,p[0]=l.x+l.width,p[1]=v);var y=c++%s.length,m=h[g].tickValue;e.add(new zh({anid:null!=m?"line_"+h[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},style:H({stroke:s[y]},d),silent:!0}))}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],h=[],f=a.getLineStyle(),p=0;p<u.length;p++)for(var d=0;d<u[p].length;d++){var g=i.toGlobalCoord(u[p][d].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g),e.add(new zh({anid:"minor_line_"+u[p][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:f,silent:!0}))}},splitArea:function(t,e,n,r){NL(t,e,n,r)}},jL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="xAxis",e}(FL),HL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=jL.type,e}return v(e,t),e.type="yAxis",e}(FL),WL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return v(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new ru({shape:t.coordinateSystem.getRect(),style:H({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(lm),UL={offset:0};function XL(t){t.registerComponentView(WL),t.registerComponentModel(Ek),t.registerCoordinateSystem("cartesian2d",sL),Hk(t,"x",Rk,UL),Hk(t,"y",Rk,UL),t.registerComponentView(jL),t.registerComponentView(HL),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function $L(t){iM(XL),t.registerSeriesModel(Ck),t.registerChartView(Ok),t.registerLayout(wD("scatter"))}function YL(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var i=r.getIndicatorAxes();q(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]=qL(i)?i:ZL(r)}))})),e.each((function(t){var i=Q(n[t],(function(t){return qL(t)}))||ZL(r);n[t].push(i.slice()),e.setItemLayout(t,n[t])}))}}))}function qL(t){return!isNaN(t[0])&&!isNaN(t[1])}function ZL(t){return[t.cx,t.cy]}function KL(t){var e=t.polar;if(e){it(e)||(e=[e]);var n=[];q(e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],it(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}q(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}function JL(t){return it(t)||(t=[+t,+t]),t}var QL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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=JL(t.getItemVisual(e,"symbolSize")),i=px(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 u(e,n,r,i,o,a){r.removeAll();for(var u=0;u<n.length-1;u++){var c=s(i,o);c&&(c.__dimIdx=u,e[u]?(c.setPosition(e[u]),l[a?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},t,o)):c.setPosition(n[u]),r.add(c))}}function c(t){return Z(t,(function(t){return[r.cx,r.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var r=new kh,i=new Ph,a={shape:{points:n}};r.shape.points=c(n),i.shape.points=c(n),Af(r,a,t,e),Af(i,a,t,e);var s=new Ui,l=new Ui;s.add(i),s.add(r),s.add(l),u(i.shape.points,n,l,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var r=a.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(u(i.shape.points,c.shape.points,l,o,e,!1),If(i,c,t),If(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(H(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),wc(r,n,"lineStyle"),wc(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,q(["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(H(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var f=n.getModel("emphasis"),p=f.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof Yl){var r=t.style;t.useStyle(j({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else t.useStyle(l),t.setColor(u);var i=t.ensureState("emphasis");i.style=V(p);var a=o.get(o.dimensions[t.__dimIdx],e);(null==a||isNaN(a))&&(a=""),Zf(t,Kf(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:a,inheritColor:u,defaultOpacity:l.opacity})})),mc(t,f.get("focus"),f.get("blurScope"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(mm),tO=QL,eO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.useColorPaletteOnData=!0,n.hasSymbolVisual=!0,n}return v(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xk(nt(this.getData,this),nt(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return mk(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.coordinateSystem,o=i.getIndicatorAxes(),a=this.getData().getName(t),s=""===a?this.name:a,l=Wy(this,t);return Py("section",{header:s,sortBlocks:!0,blocks:Z(o,(function(e){var n=r.get(r.mapDimension(e.dim),t);return Py("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,r=e.getValues(Z(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={zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbolSize:8},e}(am),nO=eO,rO=Gk.value;function iO(t,e){return H({show:e},t)}var oO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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=Z(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 f=a;null!=h.color&&(f=H({color:h.color},a));var p=F(V(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:h.text,nameLocation:"end",nameGap:u,nameTextStyle:f,triggerEvent:c},!1);if(s||(p.name=""),"string"===typeof l){var d=p.name;p.name=l.replace("{value}",null!=d?d:"")}else"function"===typeof l&&(p.name=l(p.name,p));var g=new bp(p,null,this.ecModel);return $(g,TT.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={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:F({lineStyle:{color:"#bbb"}},rO.axisLine),axisLabel:iO(rO.axisLabel,!1),axisTick:iO(rO.axisTick,!1),splitLine:iO(rO.splitLine,!0),splitArea:iO(rO.splitArea,!0),indicator:[]},e}(qd),aO=oO,sO=["axisLine","axisTickLabel","axisName"],lO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),r=Z(n,(function(t){var n=new xL(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));q(r,(function(t){q(sO,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"),f=it(c)?c:[c],p=it(h)?h:[h],d=[],g=[];if("circle"===r)for(var v=n[0].getTicksCoords(),y=e.cx,m=e.cy,_=0;_<v.length;_++){if(l){var x=A(d,f,_);d[x].push(new th({shape:{cx:y,cy:m,r:v[_].coord}}))}if(u&&_<v.length-1){x=A(g,p,_);g[x].push(new Sh({shape:{cx:y,cy:m,r0:v[_].coord,r:v[_+1].coord}}))}}else{var b,w=Z(n,(function(t,n){var r=t.getTicksCoords();return b=null==b?r.length-1:Math.min(r.length-1,b),Z(r,(function(t){return e.coordToPoint(t.coord,n)}))})),S=[];for(_=0;_<=b;_++){for(var M=[],C=0;C<n.length;C++)M.push(w[C][_]);if(M[0]&&M.push(M[0].slice()),l){x=A(d,f,_);d[x].push(new Ph({shape:{points:M}}))}if(u&&S){x=A(g,p,_-1);g[x].push(new kh({shape:{points:M.concat(S)}}))}S=M.slice().reverse()}}var T=a.getLineStyle(),I=s.getAreaStyle();q(g,(function(t,e){this.group.add(bf(t,{style:H({stroke:"none",fill:p[e%p.length]},I),silent:!0}))}),this),q(d,(function(t,e){this.group.add(bf(t,{style:H({fill:"none",stroke:f[e%f.length]},T),silent:!0}))}),this)}function A(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}},e.type="radar",e}(lm),uO=lO,cO=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 v(e,t),e}(JT),hO=cO,fO=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Z(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,r=new hO(n,new wC);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],r=n.angle,i=this.cx+t*Math.cos(r),o=this.cy-t*Math.sin(r);return[i,o]},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=lo(n[0],r),this.cy=lo(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");"string"!==typeof a&&"number"!==typeof a||(a=[0,a]),this.r0=lo(a[0],o),this.r=lo(a[1],o),q(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;q(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();q(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var i=r.get("splitNumber");function o(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),n=t/e;return 2===n?n=5:n*=2,n*e}q(n,(function(t,e){var n=pT(t.scale,t.model).extent;gT(t.scale,t.model);var r=t.model,a=t.scale,s=fT(a,r.get("min",!0)),l=fT(a,r.get("max",!0)),u=a.getInterval();if(null!=s&&null!=l)a.setExtent(+s,+l),a.setInterval((l-s)/i);else if(null!=s){var c=void 0;do{c=s+u*i,a.setExtent(+s,c),a.setInterval(u),u=o(u)}while(c<n[1]&&isFinite(c)&&isFinite(n[1]))}else if(null!=l){var h=void 0;do{h=l-u*i,a.setExtent(h,+l),a.setInterval(u),u=o(u)}while(h>n[0]&&isFinite(h)&&isFinite(n[0]))}else{var f=a.getTicks().length-1;f>i&&(u=o(u));c=Math.ceil(n[1]/u)*u,h=uo(c-u*i);a.setExtent(h,c),a.setInterval(u)}}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var 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}(),pO=fO;function dO(t){t.registerCoordinateSystem("radar",pO),t.registerComponentModel(aO),t.registerComponentView(uO),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}function gO(t){iM(dO),t.registerChartView(tO),t.registerSeriesModel(nO),t.registerLayout(YL),t.registerProcessor(lk("radar")),t.registerPreprocessor(KL)}var vO="\0_ec_interaction_mutex";function yO(t,e,n){var r=xO(t);r[e]=n}function mO(t,e,n){var r=xO(t),i=r[e];i===n&&(r[e]=null)}function _O(t,e){return!!xO(t)[e]}function xO(t){return t[vO]||(t[vO]={})}HS({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){}));var bO=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=nt(n._mousedownHandler,n),i=nt(n._mousemoveHandler,n),o=nt(n._mouseupHandler,n),a=nt(n._mousewheelHandler,n),s=nt(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=H(V(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 v(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(!(Oe(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&MO("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!_O(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&&Le(t.event),SO(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Oe(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=MO("zoomOnMouseWheel",t,this._opt),n=MO("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,l=r>0?s:1/s;wO(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);wO(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!_O(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;wO(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(ce);function wO(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(Le(r.event),SO(t,e,n,r,i))}function SO(t,e,n,r,i){i.isAvailableBehavior=nt(MO,null,n,r),t.trigger(e,i)}function MO(t,e,n){var r=n[t];return!t||r&&(!at(r)||e.event[r+"Key"])}var CO=bO;function TO(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function IO(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 AO={axisPointer:1,tooltip:1,brush:1};function DO(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!AO.hasOwnProperty(r.mainType)&&i&&i.model!==n}var kO=["rect","circle","line","ellipse","polygon","polyline","path"],LO=At(kO),OO=At(kO.concat(["g"])),PO=At(kO.concat(["g"])),EO=na();function RO(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}var NO=function(){function t(t){var e=new Ui;this.uid=Sp("ec_map_draw"),this._controller=new CO(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Ui),e.add(this._svgGroup=new Ui)}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,f=c.roam,p=!l.childAt(0)||i;p?(u.x=f.x,u.y=f.y,u.scaleX=f.scaleX,u.scaleY=f.scaleY,u.dirty()):If(u,f,t);var d=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=At(),n=At(),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=function(t){return[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]};r.removeAll(),q(t.geo.regions,(function(i){var l=i.name,u=e.get(l),c=n.get(l)||{},h=c.dataIdx,f=c.regionModel;u||(u=e.set(l,new Ui),r.add(u),h=a?a.indexOfName(l):null,f=t.isGeo?o.getRegionModel(l):a?a.getItemModel(h):null,n.set(l,{dataIdx:h,regionModel:f}));var p=new $h({segmentIgnoreThreshold:1,shape:{paths:[]}});u.add(p),q(i.geometries,(function(t){if("polygon"===t.type){for(var e=[],n=0;n<t.exterior.length;++n)e.push(s(t.exterior[n]));p.shape.paths.push(new kh({segmentIgnoreThreshold:1,shape:{points:e}}));for(n=0;n<(t.interiors?t.interiors.length:0);++n){for(var r=t.interiors[n],i=[],o=0;o<r.length;++o)i.push(s(r[o]));p.shape.paths.push(new kh({segmentIgnoreThreshold:1,shape:{points:i}}))}}})),zO(t,p,h,f),p instanceof ss&&(p.culling=!0);var d=s(i.getCenter());BO(t,p,l,f,o,h,d)})),e.each((function(e,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;VO(t,e,r,s,o,a),FO(t,e,r,s,o),GO(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=At(),i=!1;q(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);if(null!=LO.get(s)&&l instanceof ss&&zO(t,l,u,c),l instanceof ss&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=PO.get(s)&&BO(t,l,n,c,o,u,null),VO(t,l,n,c,o,u),FO(t,l,n,c,o),null!=OO.get(s))){var h=GO(t,l,n,c,o);"self"===h&&(i=!0);var f=r.get(n)||r.set(n,[]);f.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(),r=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){Ju(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=r&&(e.opacity=r),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=sw.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=sw.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var 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,TO(o,t.dx,t.dy),n.dispatchAction(j(s(),{dx:t.dx,dy:t.dy}))}),this),i.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,IO(o,t.scale,t.originX,t.originY),n.dispatchAction(j(s(),{zoom:t.scale,originX:t.originX,originY:t.originY}))}),this),i.setPointerChecker((function(e,i,o){return r.containPoint([i,o])&&!DO(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=EO(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 zO(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=RO(i),u=RO(o),c=RO(s),h=RO(a),f=t.data;if(f){var p=f.getItemVisual(n,"style"),d=f.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),d&&(l.decal=Kx(d,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,Ju(e)}function BO(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,f=void 0;(!s||o>=0)&&(f=i);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Zf(e,Kf(r),{labelFetcher:f,labelDataIndex:h,defaultText:n},p);var d=e.getTextContent();if(d&&(EO(d).ignore=d.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 VO(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):mu(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function FO(t,e,n,r,i){t.data||Xf({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function GO(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return mc(e,a,o.get("blurScope")),t.isGeo&&Cc(e,i,n),a}var jO=NO,HO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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;o&&i.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new jO(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 th({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:Iu+1)});if(!s){var u=t.mainSeries.getData(),c=r.getName(n),h=u.indexOfName(c),f=r.getItemModel(n),p=f.getModel("label"),d=u.getItemGraphicEl(h);Zf(l,Kf(f),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}}}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),d.onHoverStateChange=function(t){Xu(l,t)}}i.add(l)}}}))},e.type="map",e}(mm),WO=HO,UO=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 v(e,t),e.prototype.getInitialData=function(t){for(var e=mk(this,{coordDimensions:["value"],encodeDefaulter:rt(fg,this)}),n=At(),r=[],i=0,o=e.count();i<o;i++){var a=e.getName(i);n.set(a,!0)}var s=sw.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return q(s.regions,(function(t){var e=t.name;n.get(e)||r.push(e)})),e.appendValues([],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 Py("section",{header:s.join(", "),noHeader:!s.length,blocks:[Py("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=px(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={zlevel:0,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}(am),XO=UO;function $O(t,e){var n={};return q(t,(function(t){t.each(t.mapDimension("value"),(function(e,r){var i="ec-"+t.getName(r);n[i]=n[i]||[],isNaN(e)||n[i].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+t[0].getName(i),s=0,l=1/0,u=-1/0,c=n[a].length,h=0;h<c;h++)l=Math.min(l,n[a][h]),u=Math.max(u,n[a][h]),s+=n[a][h];return o="min"===e?l:"max"===e?u:"average"===e?s/c:s,0===c?NaN:o}))}function YO(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)})),q(e,(function(t,e){for(var n=$O(Z(t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),r=0;r<t.length;r++)t[r].originalData=t[r].getData();for(r=0;r<t.length;r++)t[r].seriesGroup=t,t[r].needsDrawMap=0===r&&!t[r].getHostGeoModel(),t[r].setData(n.cloneShallow()),t[r].mainSeries=t[0]}))}function qO(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};q(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 ZO=re,KO=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new si,n._rawTransformable=new si,n.name=e,n}return v(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new _i(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 _i(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new _i(t,e,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t){t&&(this._center=t,this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=re([],r,t),n=re([],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(),Wr(this.transform||(this.transform=[]),e.transform||jr()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],qr(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new si;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?ZO(n,t,r):Nt(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?ZO([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=JO(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=JO(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}(si);function JO(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var QO=KO,tP={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},eP=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.dimensions=["lng","lat"],i.type="geo",i._nameCoordMap=At(),i.map=n;var o=sw.load(n,r.nameMap,r.nameProperty),a=sw.getGeoResource(n);i.resourceType=a?a.type:null;var s=tP[a.type];i._regionsMap=o.regionsMap,i._invertLongitute=s.invertLongitute,i.regions=o.regions,i.aspectScale=mt(r.aspectScale,s.aspectScale);var l=o.boundingRect;return i.setBoundingRect(l.x,l.y,l.width,l.height),i}return v(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 _i(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("string"===typeof t&&(t=this.getGeoCoord(t)),t)return QO.prototype.dataToPoint.call(this,t,e,n)},e.prototype.convertToPixel=function(t,e,n){var r=nP(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=nP(e);return r===this?r.pointToData(n):null},e}(QO);function nP(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",aa).models[0]||{}).coordinateSystem:null}$(eP,QO);var rP=eP;function iP(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];isNaN(r[0])||isNaN(r[1])||isNaN(i[0])||isNaN(i[1])||this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}var o,a,s,l=this.getBoundingRect(),u=t.get("layoutCenter"),c=t.get("layoutSize"),h=e.getWidth(),f=e.getHeight(),p=l.width/l.height*this.aspectScale,d=!1;if(u&&c&&(o=[lo(u[0],h),lo(u[1],f)],a=lo(c,Math.min(h,f)),isNaN(o[0])||isNaN(o[1])||isNaN(a)||(d=!0)),d)s={},p>1?(s.width=a,s.height=a/p):(s.height=a,s.width=a*p),s.y=o[1]-s.height/2,s.x=o[0]-s.width/2;else{var g=t.getBoxLayoutParams();g.aspect=p,s=Vd(g,{width:h,height:f})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function oP(t,e){q(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var aP=function(){function t(){this.dimensions=rP.prototype.dimensions}return t.prototype.create=function(t,e){var n=[];t.eachComponent("geo",(function(t,r){var i=t.get("map"),o=new rP(i+r,i,{nameMap:t.get("nameMap"),nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale")});o.zoomLimit=t.get("scaleLimit"),n.push(o),t.coordinateSystem=o,o.model=t,o.resize=iP,o.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var r=t.get("geoIndex")||0;t.coordinateSystem=n[r]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),q(r,(function(t,r){var i=Z(t,(function(t){return t.get("nameMap")})),o=new rP(r,r,{nameMap:G(i),nameProperty:t[0].get("nameProperty"),aspectScale:t[0].get("aspectScale")});o.zoomLimit=yt.apply(null,Z(t,(function(t){return t.get("scaleLimit")}))),n.push(o),o.resize=iP,o.resize(t[0],e),q(t,(function(t){t.coordinateSystem=o,oP(o,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=At(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);var s=sw.load(e,n,r);return q(s.regions,(function(t){var e=t.name;!o.get(e)&&i.push({name:e})})),i},t}(),sP=new aP,lP=sP,uP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(t,e,n){var r=sw.getGeoResource(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),Ro(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=lP.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=K(e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new bp(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),At()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new bp(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"function"===typeof r?(i.status=e,r(i)):"string"===typeof 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;if(n){"multiple"!==n&&(e.selectedMap=null);var r=e.selectedMap||(e.selectedMap={});r[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={zlevel:0,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}(qd),cP=uP;function hP(t,e,n){var r=t.getZoom(),i=t.getCenter(),o=e.zoom,a=t.dataToPoint(i);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(t.pointToData(a))),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(r*o,l),s)/r}t.scaleX*=o,t.scaleY*=o;var u=(e.originX-t.x)*(o-1),c=(e.originY-t.y)*(o-1);t.x-=u,t.y-=c,t.updateTransform(),t.setCenter(t.pointToData(a)),t.setZoom(o*r)}return{center:t.getCenter(),zoom:t.getZoom()}}var fP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return v(e,t),e.prototype.init=function(t,e){var n=new jO(e);this._mapDraw=n,this.group.add(n.group),this._api=e},e.prototype.render=function(t,e,n,r){var i=this._mapDraw;t.get("show")?i.draw(t,e,n,this,r):this._mapDraw.group.removeAll(),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this._model=t,this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;tx(t.target,(function(t){return null!=(e=mu(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=mu(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}(lm),pP=fP;function dP(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);var o=n.coordinateSystem;q(o.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var a=[];q(r,(function(t,e){r[e]&&a.push(e)})),i.push({geoIndex:n.componentIndex,name:a})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",lP),t.registerComponentModel(cP),t.registerComponentView(pP),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){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var i=hP(r,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom),"series"===n&&q(e.seriesGroup,(function(t){t.setCenter(i.center),t.setZoom(i.zoom)}))}}))}))}function gP(t){iM(dP),t.registerChartView(WO),t.registerSeriesModel(XO),t.registerLayout(qO),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,YO),K_("map",t.registerAction)}function vP(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,r,i=[e];while(n=i.pop())if(r=n.children,n.isExpand&&r.length)for(var o=r.length,a=o-1;a>=0;a--){var s=r[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(s)}}function yP(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){wP(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=SP(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function mP(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function _P(t){return arguments.length?t:AP}function xP(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function bP(t,e){return Vd(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wP(t){var e=t.children,n=e.length,r=0,i=0;while(--n>=0){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function SP(t,e,n,r){if(e){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;while(s=MP(s),o=CP(o),s&&o){i=MP(i),a=CP(a),i.hierNode.ancestor=t;var f=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);f>0&&(IP(TP(s,t,n),t,f),u+=f,l+=f),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!MP(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!CP(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function MP(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function CP(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function TP(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function IP(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 AP(t,e){return t.parentNode===e.parentNode?1:2}var DP=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),kP=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new DP},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=lo(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 f=1;f<r-1;f++){var p=n[f];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(Fl),LP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Ui,n}return v(e,t),e.prototype.init=function(t,e){this._controller=new CO(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,a=t.get("layout");"radial"===a?(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),this._updateController(t,e,n);var s=this._data;r.diff(s).add((function(e){OP(r,e)&&PP(r,e,null,o,t)})).update((function(e,n){var i=s.getItemGraphicEl(n);OP(r,e)?PP(r,e,i,o,t):i&&RP(s,n,i,o,t)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&RP(s,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){var e=t.getData(),n=[];e.each((function(t){var r=e.getItemLayout(t);!r||isNaN(r.x)||isNaN(r.y)||n.push([+r.x,+r.y])}));var r=[],i=[];Gs(n,r,i);var o=this._min,a=this._max;i[0]-r[0]===0&&(r[0]=o?o[0]:r[0]-1,i[0]=a?a[0]:i[0]+1),i[1]-r[1]===0&&(r[1]=o?o[1]:r[1]-1,i[1]=a?a[1]:i[1]+1);var s=t.coordinateSystem=new QO;s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1]),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this.group.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY}),this._min=r,this._max=i},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)&&!DO(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){TO(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){IO(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,i=e.getZoom(),o=(i-1)*n+1;return o/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}(mm);function OP(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function PP(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,f=t.getItemGraphicEl(h.dataIndex),p=h.getLayout(),d=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,g=a.getLayout();o?(n=new PA(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=d.x,n.y=d.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,If(n,{x:g.x,y:g.y},i);var v=n.getSymbolPath();if("radial"===i.get("layout")){var y=c.children[0],m=y.getLayout(),_=y.children.length,x=void 0,b=void 0;if(g.x===m.x&&!0===a.isExpand){var w={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};x=Math.atan2(w.y-m.y,w.x-m.x),x<0&&(x=2*Math.PI+x),b=w.x<m.x,b&&(x-=Math.PI)}else x=Math.atan2(g.y-m.y,g.x-m.x),x<0&&(x=2*Math.PI+x),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=g.x<m.x,b&&(x-=Math.PI)):(b=g.x>m.x,b||(x-=Math.PI));var S=b?"left":"right",M=s.getModel("label"),C=M.get("rotate"),T=C*(Math.PI/180),I=v.getTextContent();I&&(v.setTextConfig({position:M.get("position")||S,rotation:null==C?-x:T,origin:"center"}),I.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),D="ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;D&&(mu(n).focus=D),EP(i,a,c,n,d,p,g,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===Su||Xu(n.__edge,e)}})}function EP(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),f=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=r.__edge=new jh({shape:NP(c,h,f,i,i)})),If(g,{shape:NP(c,h,f,o,a)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,y=[],m=0;m<v.length;m++){var _=v[m].getLayout();y.push([_.x,_.y])}g||(g=r.__edge=new kP({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:p}})),If(g,{shape:{parentPoint:[a.x,a.y],childPoints:y}},t)}}else 0;g&&(g.useStyle(H({strokeNoScale:!0,fill:null},d)),wc(g,l,"lineStyle"),Ju(g),s.add(g))}function RP(t,e,n,r,i){var o,a=t.tree.getNodeByDataIndex(e),s=t.tree.root,l=a.parentNode===s?a:a.parentNode||a;while(o=l.getLayout(),null==o)l=l.parentNode===s?l:l.parentNode||l;var u={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Df(n,{x:o.x+1,y:o.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:u}),n.fadeOut(null,{fadeLabel:!0,animation:u});var c=t.getItemGraphicEl(l.dataIndex),h=c.__edge,f=n.__edge||(!1===l.isExpand||1===l.children.length?h:void 0),p=i.get("edgeShape"),d=i.get("layout"),g=i.get("orient"),v=i.get(["lineStyle","curveness"]);f&&("curve"===p?Df(f,{shape:NP(d,g,v,o,o),style:{opacity:0}},i,{cb:function(){r.remove(f)},removeOpt:u}):"polyline"===p&&"orthogonal"===i.get("layout")&&Df(f,{shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]]},style:{opacity:0}},i,{cb:function(){r.remove(f)},removeOpt:u}))}function NP(t,e,n,r,i){var o,a,s,l,u,c,h,f;if("radial"===t){u=r.rawX,h=r.rawY,c=i.rawX,f=i.rawY;var p=xP(u,h),d=xP(u,h+(f-h)*n),g=xP(c,f+(h-f)*n),v=xP(c,f);return{x1:p.x||0,y1:p.y||0,x2:v.x||0,y2:v.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,h=r.y,c=i.x,f=i.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=f),"TB"!==e&&"BT"!==e||(o=u,a=h+(f-h)*n,s=c,l=f+(h-f)*n),{x1:u,y1:h,x2:c,y2:f,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var zP=LP,BP=na();function VP(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,XP(e,n,t),q(n,(function(n){q(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,rt(FP,t))}))})),e.wrapMethod("cloneShallow",rt(jP,t)),q(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,rt(GP,t))})),wt(n[e.dataType]===e)}function FP(t,e){if(UP(this)){var n=j({},BP(this).datas);n[this.dataType]=e,XP(e,n,t)}else $P(e,this.dataType,BP(this).mainData,t);return e}function GP(t,e){return t.struct&&t.struct.update(),e}function jP(t,e){return q(BP(e).datas,(function(n,r){n!==e&&$P(n.cloneShallow(),r,e,t)})),e}function HP(t){var e=BP(this).mainData;return null==t||null==e?e:BP(e).datas[t]}function WP(){var t=BP(this).mainData;return null==t?[{data:t}]:Z(tt(BP(t).datas),(function(e){return{type:e,data:BP(t).datas[e]}}))}function UP(t){return BP(t).mainData===t}function XP(t,e,n){BP(t).datas={},q(e,(function(e,r){$P(e,r,t,n)}))}function $P(t,e,n,r){BP(n).datas[e]=t,BP(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=HP,t.getLinkedDataAll=WP}var YP=VP,qP=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){"function"===typeof t&&(n=e,e=t,t=null),t=t||{},at(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){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),ZP=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 s(t,e){var n=t.value;a=Math.max(a,it(n)?n.length:1),o.push(t);var r=new qP(Yo(t.name,""),i);e?KP(r,e):i.root=r,i._nodes.push(r);var l=t.children;if(l)for(var u=0;u<l.length;u++)s(l[u],r)}s(e),i.root.updateDepthAndHeight(0);var l=$M(o,{coordDimensions:["value"],dimensionsCount:a}),u=new jM(l,n);return u.initData(o),r&&r(u),YP({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t}();function KP(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var JP=ZP;function QP(t,e,n){if(t&&U(e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if("string"===typeof 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 tE(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function eE(t,e){var n=tE(t);return U(n,e)>=0}function nE(t,e){var n=[];while(t){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var rE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return v(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new bp(n,this,this.ecModel),i=JP.createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=r),t}))}var a=0;i.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;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<=l})),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){var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(t),a=o.getValue(),s=o.name;while(o&&o!==i)s=o.parentNode.name+"."+s,o=o.parentNode;return Py("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=nE(r,this),n},e.type="series.tree",e.layoutMode="box",e.defaultOption={zlevel:0,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}(am),iE=rE;function oE(t,e,n){var r,i=[t],o=[];while(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])}while(r=o.pop())e(r,n)}function aE(t,e){var n,r=[t];while(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 sE(t,e){t.eachSeriesByType("tree",(function(t){lE(t,e)}))}function lE(t,e){var n=bP(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=_P((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=n.width,o=n.height,a=_P());var s=t.getData().tree.root,l=s.children[0];if(l){vP(s),oE(l,yP,a),s.hierNode.modifier=-l.hierNode.prelim,aE(l,mP);var u=l,c=l,h=l;aE(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 f=u===c?1:a(u,c)/2,p=f-u.getLayout().x,d=0,g=0,v=0,y=0;if("radial"===r)d=i/(c.getLayout().x+f+p),g=o/(h.depth-1||1),aE(l,(function(t){v=(t.getLayout().x+p)*d,y=(t.depth-1)*g;var e=xP(v,y);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:y},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+f+p),d=i/(h.depth-1||1),aE(l,(function(t){y=(t.getLayout().x+p)*g,v="LR"===m?(t.depth-1)*d:i-(t.depth-1)*d,t.setLayout({x:v,y:y},!0)}))):"TB"!==m&&"BT"!==m||(d=i/(c.getLayout().x+f+p),g=o/(h.depth-1||1),aE(l,(function(t){v=(t.getLayout().x+p)*d,y="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:v,y:y},!0)})))}}}function uE(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");j(i,r)}))}))}function cE(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,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=e.coordinateSystem,r=hP(n,t);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}function hE(t){t.registerChartView(zP),t.registerSeriesModel(iE),t.registerLayout(sE),t.registerVisual(uE),cE(t)}var fE=function(){},pE=["treemapZoomToNode","treemapRender","treemapMove"];function dE(t){for(var e=0;e<pE.length;e++)t.registerAction({type:pE[e],update:"updateView"},fE);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var r=["treemapZoomToNode","treemapRootToNode"],i=QP(t,r,e);if(i){var o=e.getViewRoot();o&&(t.direction=eE(o,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}function gE(t){var e=t.getData(),n=e.tree,r={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var i=Sg(t.ecModel,n.name||n.dataIndex+"",r);e.setVisual("decal",i)}))}var vE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return v(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};yE(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},o=new bp({itemStyle:i},this,e);r=t.levels=mE(r,e);var a=Z(r||[],(function(t){return new bp(t,o,e)}),this),s=JP.createTree(n,this,l);function l(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),o=r.getName(t);return Py("nameValue",{name:o,value:i})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=nE(r,this),n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},j(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=At(),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(){gE(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(am);function yE(t){var e=0;q(t.children,(function(t){yE(t);var n=t.value;it(n)&&(n=n[0]),e+=n}));var n=t.value;it(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),it(t.value)?t.value[0]=n:t.value=n}function mE(t,e){var n=Eo(e.get("color")),r=Eo(e.get(["aria","decal","decals"]));if(n){var i,o;t=t||[],q(t,(function(t){var e=new bp(t),n=e.get("color"),r=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(e.get(["itemStyle","decal"])||r&&"none"!==r)&&(o=!0)}));var a=t[0]||(t[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),t}}var _E=vE,xE=8,bE=8,wE=5,SE=function(){function t(t){this.group=new Ui,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=a.getModel("textStyle"),l={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,l,s),this._renderContent(t,l,a,s,r),Fd(o,l.pos,l.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=Yo(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+2*xE,e.emptyItemWidth);e.totalWidth+=a+bE,e.renderList.push({node:r,text:i,width:a})}},t.prototype._renderContent=function(t,e,n,r,i){for(var o=0,a=e.emptyItemWidth,s=t.get(["breadcrumb","height"]),l=Bd(e.pos,e.box),u=e.totalWidth,c=e.renderList,h=c.length-1;h>=0;h--){var f=c[h],p=f.node,d=f.width,g=f.text;u>l.width&&(u-=d-a,d=a,g=null);var v=new kh({shape:{points:ME(o,0,d,s,h===c.length-1,0===h)},style:H(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new yu({style:{text:g,fill:r.getTextColor(),font:r.getFont()}}),textConfig:{position:"inside"},z2:1e4*Iu,onclick:rt(i,p)});v.disableLabelAnimation=!0,this.group.add(v),CE(v,t,p),o+=d+bE}},t.prototype.remove=function(){this.group.removeAll()},t}();function ME(t,e,n,r,i,o){var a=[[i?t:t-wE,e],[t+n,e],[t+n,e+r],[i?t:t-wE,e+r]];return!o&&a.splice(2,0,[t+n+wE,e+r/2]),!i&&a.push([t,e+r/2]),a}function CE(t,e,n){mu(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&nE(n,e)}}var TE=SE,IE=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--,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}();function AE(){return new IE}var DE=Ui,kE=ru,LE=3,OE="label",PE="upperLabel",EE=10*Iu,RE=2*Iu,NE=3*Iu,zE=Aa([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),BE=function(t){var e=zE(t);return e.stroke=e.fill=e.lineWidth=null,e},VE=na(),FE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=GE(),n}return v(e,t),e.prototype.render=function(t,e,n,r){var i=e.findComponents({mainType:"series",subType:"treemap",query:r});if(!(U(i,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=["treemapZoomToNode","treemapRootToNode"],a=QP(r,o,t),s=r&&r.type,l=t.layoutInfo,u=!this._oldTree,c=this._storage,h="treemapRootToNode"===s&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:r.direction}:null,f=this._giveContainerGroup(l),p=this._doRender(f,t,h);u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?p.renderFinally():this._doAnimation(f,p,t,h),this._resetController(n),this._renderBreadcrumb(t,n,a)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new DE,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=GE(),a=GE(),s=this._storage,l=[];function u(t,r,i,u){return jE(e,a,s,n,o,l,t,r,i,u)}h(r.root?[r.root]:[],i&&i.root?[i.root]:[],t,r===i||!i,0);var c=f(s);return this._oldTree=r,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:p};function h(t,e,n,r,i){function o(t){return t.getId()}function a(o,a){var s=null!=o?t[o]:null,l=null!=a?e[a]:null,c=u(s,l,n,i);c&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],c,r,i+1)}r?(e=t,q(t,(function(t,e){!t.isRemoved()&&a(e,e)}))):new lM(e,t,o,o).add(a).update(a).remove(rt(a,null)).execute()}function f(t){var e=GE();return t&&q(t,(function(t,n){var r=e[n];q(t,(function(t){t&&(r.push(t),VE(t).willDelete=!0)}))})),e}function p(){q(c,(function(t){q(t,(function(t){t.parent&&t.parent.remove(t)}))})),q(l,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,n,r){if(n.get("animation")){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(ot(i)?0:i)||0,s=(ot(o)?null:o)||"cubicOut",l=AE();q(e.willDeleteEls,(function(t,e){q(t,(function(t,n){if(!t.invisible){var i,o=t.parent,u=VE(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)}}))})),q(this._storage,(function(t,n){q(t,(function(t,r){var i=e.lastsForAnimation[n][r],o={};i&&(t instanceof Ui?null!=i.oldX&&(o.x=t.x,o.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(o.shape=j({},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(nt((function(){this._state="ready",e.renderFinally()}),this)).start()}},e.prototype._resetController=function(t){var e=this._controller;e||(e=this._controller=new CO(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",nt(this._onPan,this)),e.on("zoom",nt(this._onZoom,this)));var n=new _i(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,r){return n.contain(e,r)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>LE||Math.abs(t.dy)>LE)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new _i(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=jr();Xr(s,s,[-e,-n]),Yr(s,s,[t.scale,t.scale]),Xr(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.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&&Od(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||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new TE(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(eE(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=GE(),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,r=this.seriesModel.getViewRoot();return r.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}(mm);function GE(){return{nodeGroup:[],background:[],content:[]}}function jE(t,e,n,r,i,o,a,s,l,u){if(a){var c=a.getLayout(),h=t.getData(),f=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var p=c.width,d=c.height,g=c.borderWidth,v=c.invisible,y=a.getRawIndex(),m=s&&s.getRawIndex(),_=a.viewChildren,x=c.upperHeight,b=_&&_.length,w=f.getModel("itemStyle"),S=f.getModel(["emphasis","itemStyle"]),M=f.getModel(["blur","itemStyle"]),C=f.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,I=B("nodeGroup",DE);if(I){if(l.add(I),I.x=c.x||0,I.y=c.y||0,I.markRedraw(),VE(I).nodeWidth=p,VE(I).nodeHeight=d,c.isAboveViewRoot)return I;var A=B("background",kE,u,RE);A&&P(I,A,b&&c.upperLabelHeight);var D=f.get(["emphasis","focus"]),k=f.get(["emphasis","blurScope"]),L="ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():D;if(b)Mc(I)&&Sc(I,!1),A&&(Sc(A,!0),h.setItemGraphicEl(a.dataIndex,A),_c(A,L,k));else{var O=B("content",kE,u,NE);O&&E(I,O),A&&Mc(A)&&Sc(A,!1),Sc(I,!0),h.setItemGraphicEl(a.dataIndex,I),_c(I,L,k)}return I}}}function P(e,n,r){var i=mu(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:d,r:T}),v)R(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=BE(w);l.fill=s;var u=zE(S);u.fill=S.get("borderColor");var c=zE(M);c.fill=M.get("borderColor");var h=zE(C);if(h.fill=C.get("borderColor"),r){var f=p-2*g;N(n,s,o.opacity,{x:g,y:0,width:f,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,Ju(n)}e.add(n)}function E(e,n){var r=mu(n);r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(p-2*g,0),o=Math.max(d-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:o,r:T}),v)R(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=BE(w);u.fill=l,u.decal=s.decal;var c=zE(S),h=zE(M),f=zE(C);N(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=f,Ju(n)}e.add(n)}function R(t){!t.invisible&&o.push(t)}function N(e,n,r,i){var o=f.getModel(i?PE:OE),s=Yo(f.get("name"),null),l=o.getShallow("show");Zf(e,Kf(f,i?PE:OE),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent(),h=u.style,p=bt(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",z(h,i,c);var d=u.getState("emphasis");z(d?d.style:null,i,c)}function z(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 B(t,r,o,a){var s=null!=m&&n[t][m],l=i[t];return s?(n[t][m]=null,V(l,s)):v||(s=new r,s instanceof ss&&(s.z2=HE(o,a)),F(l,s)),e[t][y]=s}function V(t,e){var n=t[y]={};e instanceof DE?(n.oldX=e.x,n.oldY=e.y):n.oldShape=j({},e.shape)}function F(t,e){var n=t[y]={},o=a.parentNode,s=e instanceof Ui;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}}function HE(t,e){return t*EE+e}var WE=FE,UE=q,XE=ut,$E=-1,YE=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=V(e);this.type=r,this.mappingMethod=n,this._normalizeData=aR[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(KE(i),qE(i)):"category"===n?i.categories?ZE(i):KE(i,!0):(wt("linear"!==n||i.dataExtent),KE(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return nt(this._normalizeData,this)},t.listVisualTypes=function(){return tt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){ut(t)?q(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=it(e)?[]:ut(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&&UE(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(it(t))t=t.slice();else{if(!XE(t))return[];var e=[];UE(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||"string"===typeof 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(sR(c[1],t,u[1]))return o}else if(u[1]===1/0){if(sR(c[0],u[0],t))return o}else if(sR(c[0],u[0],t)&&sR(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:tR("color"),getColorMapper:function(){var t=this.option;return nt("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),eR.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=Fn(e,t.parsedVisual,r),i?r:Xn(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Xn(Fn(t,this.option.parsedVisual),"rgba")},category:eR,piecewise:function(t,e){var n=iR.call(this,e);return null==n&&(n=Xn(Fn(t,this.option.parsedVisual),"rgba")),n},fixed:nR}},colorHue:JE((function(t,e){return Wn(t,e)})),colorSaturation:JE((function(t,e){return Wn(t,null,e)})),colorLightness:JE((function(t,e){return Wn(t,null,null,e)})),colorAlpha:JE((function(t,e){return Un(t,e)})),decal:{applyVisual:tR("decal"),_normalizedToVisual:{linear:null,category:eR,piecewise:null,fixed:null}},opacity:{applyVisual:tR("opacity"),_normalizedToVisual:rR([0,1])},liftZ:{applyVisual:tR("liftZ"),_normalizedToVisual:{linear:nR,category:nR,piecewise:nR,fixed:nR}},symbol:{applyVisual:function(t,e,n){var r=this.mapValueToVisual(t);n("symbol",r)},_normalizedToVisual:{linear:QE,category:eR,piecewise:function(t,e){var n=iR.call(this,e);return null==n&&(n=QE.call(this,t)),n},fixed:nR}},symbolSize:{applyVisual:tR("symbolSize"),_normalizedToVisual:rR([0,1])}},t}();function qE(t){var e=t.pieceList;t.hasSpecialVisual=!1,q(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function ZE(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(UE(e,(function(t,e){n[t]=e})),!it(r)){var i=[];ut(r)?UE(r,(function(t,e){var r=n[e];i[null!=r?r:$E]=t})):i[$E]=r,r=oR(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}function KE(t,e){var n=t.visual,r=[];ut(n)?UE(n,(function(t){r.push(t)})):null!=n&&r.push(n);var i={color:1,symbol:1};e||1!==r.length||i.hasOwnProperty(t.type)||(r[1]=r[0]),oR(t,r)}function JE(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:rR([0,1])}}function QE(t){var e=this.option.visual;return e[Math.round(so(t,[0,1],[0,e.length-1],!0))]||{}}function tR(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function eR(t){var e=this.option.visual;return e[this.option.loop&&t!==$E?t%e.length:t]}function nR(){return this.option.visual[0]}function rR(t){return{linear:function(e){return so(e,t,this.option.visual,!0)},category:eR,piecewise:function(e,n){var r=iR.call(this,n);return null==r&&(r=so(e,t,this.option.visual,!0)),r},fixed:nR}}function iR(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=YE.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function oR(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=Z(e,(function(t){return Rn(t)}))),e}var aR={linear:function(t){return so(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=YE.findPieceIndex(t,e,!0);if(null!=n)return so(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?$E:e},fixed:Ot};function sR(t,e,n){return t?e<=n:e<n}var lR=YE,uR="itemStyle",cR=na(),hR={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||fR(n,{},t.getViewRoot().getAncestors(),t)}};function fR(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(uR),u=pR(l,e,r),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),f=l.get("borderColorSaturation");null!=f&&(s=dR(u),h=gR(f,s)),c.stroke=h;var p=t.viewChildren;if(p&&p.length){var d=yR(t,i,o,l,u,p);q(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=_R(i,u,t,e,d,r);fR(t,o,n,r)}}))}else s=dR(u),c.fill=s}}function pR(t,e,n){var r=j({},e),i=n.designatedVisualItemStyle;return q(["color","colorAlpha","colorSaturation"],(function(n){i[n]=e[n];var o=t.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}function dR(t){var e=vR(t,"color");if(e){var n=vR(t,"colorAlpha"),r=vR(t,"colorSaturation");return r&&(e=Wn(e,null,null,r)),n&&(e=Un(e,n)),e}}function gR(t,e){return null!=e?Wn(e,null,null,t):null}function vR(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function yR(t,e,n,r,i,o){if(o&&o.length){var a=mR(e,"color")||null!=i.color&&"none"!==i.color&&(mR(e,"colorAlpha")||mR(e,"colorSaturation"));if(a){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 f=new lR(h);return cR(f).drColorMappingBy=c,f}}}function mR(t,e){var n=t.get(e);return it(n)&&n.length?{name:e,range:n}:null}function _R(t,e,n,r,i,o){var a=j({},e);if(i){var s=i.type,l="color"===s&&cR(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var xR=Math.max,bR=Math.min,wR=yt,SR=q,MR=["itemStyle","borderWidth"],CR=["itemStyle","gapWidth"],TR=["upperLabel","show"],IR=["upperLabel","height"],AR={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=Vd(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=lo(wR(s.width,l[0]),i),c=lo(wR(s.height,l[1]),o),h=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],p=QP(r,f,t),d="treemapRender"===h||"treemapMove"===h?r.rootRect:null,g=t.getViewRoot(),v=tE(g);if("treemapMove"!==h){var y="treemapZoomToNode"===h?NR(t,p,g,u,c):d?[d.width,d.height]:[u,c],m=a.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var _={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(x),DR(g,_,!1,0),x=g.getLayout(),SR(v,(function(t,e){var n=(v[e+1]||g).getValue();t.setLayout(j({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var b=t.getData().tree.root;b.setLayout(zR(s,d,p),!0),t.setLayoutInfo(s),BR(b,new _i(-s.x,-s.y,i,o),v,g,0)}};function DR(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(MR),u=s.get(CR)/2,c=VR(s),h=Math.max(l,c),f=l-u,p=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),i=xR(i-2*f,0),o=xR(o-f-p,0);var d=i*o,g=kR(t,s,d,e,n,r);if(g.length){var v={x:f,y:p,width:i,height:o},y=bR(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=ER(_,y,e.squareRatio);S<=m?(x++,m=S):(_.area-=_.pop().getLayout().area,RR(_,y,v,u,!1),y=bR(v.width,v.height),_.length=_.area=0,m=1/0)}if(_.length&&RR(_,y,v,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&d<M&&(n=!0)}for(x=0,b=g.length;x<b;x++)DR(g[x],e,n,r+1)}}}function kR(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=J(a,(function(t){return!t.isRemoved()})),OR(a,s);var u=PR(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=LR(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var f=a[c].getValue()/u.sum*n;a[c].setLayout({area:f})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function LR(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}function OR(t,e){return 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})),t}function PR(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");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],SR(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:r,dataExtent:a}}function ER(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&&(a<i&&(i=a),a>r&&(r=a));var l=t.area*t.area,u=e*e*n;return l?xR(u*r/l,l/(u*i)):1/0}function RR(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,f=t.length;h<f;h++){var p=t[h],d={},g=c?p.getLayout().area/c:0,v=d[l[a]]=xR(c-2*r,0),y=n[s[o]]+n[l[o]]-u,m=h===f-1||y<g?y:g,_=d[l[o]]=xR(m-2*r,0);d[s[a]]=n[s[a]]+bR(r,v/2),d[s[o]]=u+bR(r,_/2),u+=m,p.setLayout(d,!0)}n[s[a]]+=c,n[l[a]]-=c}function NR(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;while(o=a.parentNode){for(var c=0,h=o.children,f=0,p=h.length;f<p;f++)c+=h[f].getValue();var d=a.getValue();if(0===d)return s;u*=c/d;var g=o.getModel(),v=g.get(MR),y=Math.max(v,VR(g));u+=4*v*v+(3*v+y)*Math.pow(u,.5),u>yo&&(u=yo),a=o}u<l&&(u=l);var m=Math.pow(u/l,.5);return[r*m,i*m]}function zR(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;while(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]}}function BR(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 _i(e.x-o.x,e.y-o.y,e.width,e.height);SR(t.viewChildren||[],(function(t){BR(t,l,n,r,i+1)}))}}function VR(t){return t.get(TR)?t.get(IR):0}function FR(t){t.registerSeriesModel(_E),t.registerChartView(WE),t.registerVisual(hR),t.registerLayout(AR),dE(t)}function GR(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getGraph(),i=r.data,o=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t),r=n.getShallow("category");if(null!=r){"number"===typeof r&&(r=o[r]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(r))return!1}return!0}))}))}function jR(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),o=e.getShallow("category");if(null!=o){"string"===typeof o&&(o=i["ec-"+o]);var a=n.getItemVisual(o,"style"),s=r.ensureUniqueItemVisual(t,"style");j(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)r.setItemVisual(t,l[u],n.getItemVisual(o,l[u]))}}))}))}function HR(t){return t instanceof Array||(t=[t,t]),t}function WR(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=HR(t.get("edgeSymbol")),i=HR(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=HR(r.getShallow("symbol",!0)),a=HR(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(j(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;break}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 UR="--\x3e",XR=function(t){return t.get("autoCurveness")||null},$R=function(t,e){var n=XR(t),r=20,i=[];if("number"===typeof n)r=n;else if(it(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},YR=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join(UR)},qR=function(t){var e=t.split(UR);return[e[0],e[2],e[1]].join(UR)},ZR=function(t,e){var n=YR(t.node1,t.node2,e);return e.__edgeMap[n]},KR=function(t,e){var n=JR(YR(t.node1,t.node2,e),e),r=JR(YR(t.node2,t.node1,e),e);return n+r},JR=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function QR(t){XR(t)&&(t.__curvenessList=[],t.__edgeMap={},$R(t))}function tN(t,e,n,r){if(XR(n)){var i=YR(t,e,n),o=n.__edgeMap,a=o[qR(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)}}function eN(t,e,n,r){var i=XR(e),o=it(i);if(!i)return null;var a=ZR(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=KR(t,e);$R(e,u),t.lineStyle=t.lineStyle||{};var c=YR(t.node1,t.node2,e),h=e.__curvenessList,f=o||u%2?0:1;if(a.isForward)return h[f+s];var p=qR(c),d=JR(p,e),g=h[s+d+f];return r?o?i&&0===i[0]?(d+f)%2?g:-g:((d%2?0:1)+f)%2?g:-g:(d+f)%2?g:-g:h[s+d+f]}function nN(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")])})),rN(n,t)}}function rN(t,e){t.eachEdge((function(t,n){var r=_t(t.getModel().get(["lineStyle","curveness"]),-eN(t,e,n,!0),0),i=zt(t.node1.getLayout()),o=zt(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 iN(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=[];q(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])}rN(r.graph,t)}else e&&"none"!==e||nN(t)}))}function oN(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scaleX,i=e.getZoom(),o=(i-1)*n+1;return o/r}function aN(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var sN=Math.PI,lN=[];function uN(t,e){var n=t.coordinateSystem;if(!n||"view"===n.type){var r=n.getBoundingRect(),i=t.getData(),o=i.graph,a=r.width/2+r.x,s=r.height/2+r.y,l=Math.min(r.width,r.height)/2,u=i.count();i.setLayout({cx:a,cy:s}),u&&(cN[e](t,o,i,l,a,s,u),o.eachEdge((function(e,n){var r,i=_t(e.getModel().get(["lineStyle","curveness"]),eN(e,t,n),0),o=zt(e.node1.getLayout()),l=zt(e.node2.getLayout()),u=(o[0]+l[0])/2,c=(o[1]+l[1])/2;+i&&(i*=3,r=[a*i+u*(1-i),s*i+c*(1-i)]),e.setLayout([o,l,r])})))}}var cN={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;lN.length=a;var l=oN(t);e.eachNode((function(t){var e=aN(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/r);isNaN(n)&&(n=sN/2),lN[t.dataIndex]=n,s+=2*n}));var u=(2*sN-s)/a/2,c=0;e.eachNode((function(t){var e=u+lN[t.dataIndex];c+=e,t.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=e}))}};function hN(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&uN(t,"symbolSize")}))}var fN=Ft;function pN(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=Rt(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=zt(h.p),h.edges=null}var f,p,d=null==n.friction?.6:n.friction,g=d;return{warmUp:function(){g=.8*d},setFixed:function(t){r[t].fixed=!0},setUnfixed:function(t){r[t].fixed=!1},beforeStep:function(t){f=t},afterStep:function(t){p=t},step:function(t){f&&f(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,c=a.n2;Gt(e,c.p,s.p);var h=jt(e)-a.d,d=c.w/(s.w+c.w);isNaN(d)&&(d=0),Zt(e,e),!s.fixed&&fN(s.p,s.p,e,d*h*g),!c.fixed&&fN(c.p,c.p,e,-(1-d)*h*g)}}for(o=0;o<n;o++){var v=r[o];v.fixed||(Gt(e,l,v.p),fN(v.p,v.p,e,u*g))}for(o=0;o<n;o++){s=r[o];for(var y=o+1;y<n;y++){c=r[y];Gt(e,c.p,s.p);h=jt(e);0===h&&(Bt(e,Math.random()-.5,Math.random()-.5),h=1);var m=(s.rep+c.rep)/h/h;!s.fixed&&fN(s.pp,s.pp,e,m),!c.fixed&&fN(c.pp,c.pp,e,-m)}}var _=[];for(o=0;o<n;o++){v=r[o];v.fixed||(Gt(_,v.p,v.pp),fN(v.p,v.p,_,g),Nt(v.pp,v.p))}g*=.992;var x=g<.01;p&&p(r,i,x),t&&t(x)}}}function dN(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&&uN(t,"value"):nN(t);var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),f=it(c)?c:[c,c],p=it(h)?h:[h,h];p=[p[1],p[0]];var d=i.mapArray("value",(function(t,e){var n=i.getItemLayout(e),r=so(t,l,f);return isNaN(r)&&(r=(f[0]+f[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=so(e,u,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=i.getModel(),s=_t(i.getModel().get(["lineStyle","curveness"]),-eN(i,t,n,!0),0);return{n1:d[i.node1.dataIndex],n2:d[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),v=e.getBoundingRect(),y=pN(d,g,{rect:v,gravity:a.get("gravity"),friction:a.get("friction")});y.beforeStep((function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&Nt(t[n].p,r.getNodeByIndex(n).getLayout())})),y.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,f=u.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],Nt(f[0],c),Nt(f[1],h),+l.curveness&&(f[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(f)}})),t.forceLayout=y,t.preservedPoints=n,y.step()}else t.forceLayout=null}))}function gN(t,e,n){var r=j(t.getBoxLayoutParams(),{aspect:n});return Vd(r,{width:e.getWidth(),height:e.getHeight()})}function vN(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var i=t.getData(),o=i.mapArray((function(t){var e=i.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],s=[];Gs(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=gN(t,e,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],h=s[1]-a[1],f=u.width,p=u.height,d=t.coordinateSystem=new QO;d.zoomLimit=t.get("scaleLimit"),d.setBoundingRect(a[0],a[1],c,h),d.setViewRect(u.x,u.y,f,p),d.setCenter(t.get("center")),d.setZoom(t.get("zoom")),n.push(d)}})),n}var yN=zh.prototype,mN=jh.prototype,_N=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}v(e,t)})(_N);function xN(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var bN=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return v(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _N},e.prototype.buildPath=function(t,e){xN(e)?yN.buildPath.call(this,t,e):mN.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return xN(this.shape)?yN.pointAt.call(this,t):mN.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=xN(e)?[e.x2-e.x1,e.y2-e.y1]:mN.tangentAt.call(this,t);return Zt(n,n)},e}(Fl),wN=bN,SN=["fromSymbol","toSymbol"];function MN(t){return"_"+t+"Type"}function CN(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")||0,s=e.getItemVisual(n,t+"KeepAspect"),l=it(i)?i:[i,i],u=it(a)?a:[a,a];u[0]=lo(u[0],l[0]),u[1]=lo(mt(u[1],u[0]),l[1]);var c=px(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 TN(t){var e=new wN({name:"line",subPixelOptimize:!0});return IN(e.shape,t),e}function IN(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 AN=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createLine(e,n,r),i}return v(e,t),e.prototype._createLine=function(t,e,n){var r=t.hostModel,i=t.getItemLayout(e),o=TN(i);o.shape.percent=0,Af(o,{shape:{percent:1}},r,e),this.add(o),q(SN,(function(n){var r=CN(n,t,e);this.add(r),this[MN(n)]=t.getItemVisual(e,n)}),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:{}};IN(a.shape,o),If(i,a,r,e),q(SN,(function(n){var r=t.getItemVisual(e,n),i=MN(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=CN(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;if(!n||t.hasItemOption){var u=t.getItemModel(e);o=u.getModel(["emphasis","lineStyle"]).getLineStyle(),a=u.getModel(["blur","lineStyle"]).getLineStyle(),s=u.getModel(["select","lineStyle"]).getLineStyle(),l=Kf(u)}var c=t.getItemVisual(e,"style"),h=c.stroke;i.useStyle(c),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,q(SN,(function(t){var e=this.childOfName(t);if(e){e.setColor(h),e.style.opacity=c.opacity;for(var n=0;n<Cu.length;n++){var r=Cu[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 f=r.getRawValue(e);Zf(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return r.getFormattedLabel(e,n,t.dataType)}},inheritColor:h||"#000",defaultOpacity:c.opacity,defaultText:(null==f?t.getName(e):isFinite(f)?uo(f):f)+""});var p=this.getTextContent();if(p){var d=l.normal;p.__align=p.style.align,p.__verticalAlign=p.style.verticalAlign,p.__position=d.get("position")||"middle";var g=d.get("distance");it(g)||(g=[g,g]),p.__labelDistance=g}this.setTextConfig({position:null,local:!0,inside:!1}),mc(this)},e.prototype.highlight=function(){ec(this)},e.prototype.downplay=function(){nc(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");IN(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){var i=1,o=this.parent;while(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=Gt([],u,l);if(Zt(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,f=void 0,p=r.__labelDistance,d=p[0]*i,g=p[1]*i,v=s/2,y=a.tangentAt(v),m=[y[1],-y[0]],_=a.pointAt(v);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var x=y[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var b=-Math.atan2(y[1],y[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,f="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,f="top";break;default:w=0,f="middle"}switch(r.__position){case"end":r.x=c[0]*d+u[0],r.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",f=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*d+l[0],r.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",f=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=d*x+l[0],r.y=l[1]+w,h=y[0]<0?"right":"left",r.originX=-d*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=-d*x+u[0],r.y=u[1]+w,h=y[0]>=0?"right":"left",r.originX=d*x,r.originY=-w;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||f,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}(Ui),DN=AN,kN=function(){function t(t){this.group=new Ui,this._LineCtor=t||DN}return t.prototype.isPersistent=function(){return!0},t.prototype.updateData=function(t){var e=this,n=this,r=n.group,i=n._lineData;n._lineData=t,i||r.removeAll();var o=ON(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=ON(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||LN(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var r=t.start;r<t.end;r++){var i=e.getItemLayout(r);if(EN(i)){var o=new this._LineCtor(e,r,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(r,o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype._doAdd=function(t,e,n){var r=t.getItemLayout(e);if(EN(r)){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,r,i){var o=t.getItemGraphicEl(n);EN(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 LN(t){return t.animators&&t.animators.length>0}function ON(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Kf(e)}}function PN(t){return isNaN(t[0])||isNaN(t[1])}function EN(t){return!PN(t[0])&&!PN(t[1])}var RN=kN,NN=[],zN=[],BN=[],VN=Ts,FN=te,GN=Math.abs;function jN(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){NN[0]=VN(i[0],o[0],a[0],c),NN[1]=VN(i[1],o[1],a[1],c);var h=GN(FN(NN,e)-l);h<s&&(s=h,r=c)}for(var f=0;f<32;f++){var p=r+u;zN[0]=VN(i[0],o[0],a[0],r),zN[1]=VN(i[1],o[1],a[1],r),BN[0]=VN(i[0],o[0],a[0],p),BN[1]=VN(i[1],o[1],a[1],p);h=FN(zN,e)-l;if(GN(h)<.01)break;var d=FN(BN,e)-l;u/=2,h<0?d>=0?r+=u:r-=u:d>=0?r-=u:r+=u}return r}function HN(t,e){var n=[],r=ks,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=[zt(l[0]),zt(l[1])],l[2]&&l.__original.push(zt(l[2])));var h=l.__original;if(null!=l[2]){if(Nt(i[0],h[0]),Nt(i[1],h[2]),Nt(i[2],h[1]),u&&"none"!==u){var f=aN(t.node1),p=jN(i,h[0],f*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){f=aN(t.node2),p=jN(i,h[1],f*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]}Nt(l[0],i[0]),Nt(l[1],i[2]),Nt(l[2],i[1])}else{if(Nt(o[0],h[0]),Nt(o[1],h[1]),Gt(a,o[1],o[0]),Zt(a,a),u&&"none"!==u){f=aN(t.node1);Ft(o[0],o[0],a,f*e)}if(c&&"none"!==c){f=aN(t.node2);Ft(o[1],o[1],a,-f*e)}Nt(l[0],o[0]),Nt(l[1],o[1])}}))}function WN(t){return"view"===t.type}var UN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(t,e){var n=new BA,r=new RN,i=this.group;this._controller=new CO(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(WN(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):If(s,l,t)}HN(t.getGraph(),oN(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,f=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,f),u.graph.eachNode((function(t){var e=t.dataIndex,n=t.getGraphicEl(),i=t.getModel();n.off("drag").off("dragend");var o=i.get("draggable");o&&n.on("drag",(function(){h&&(h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,f),h.setFixed(e),u.setItemLayout(e,[n.x,n.y]))})).on("dragend",(function(){h&&h.setUnfixed(e)})),n.setDraggable(o&&!!h);var a=i.get(["emphasis","focus"]);"adjacency"===a&&(mu(n).focus=t.getAdjacentDataIndices())})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);"adjacency"===n&&(mu(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var p="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),d=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl((function(t,e){var n=u.getItemModel(e),r=n.get(["label","rotate"])||0,i=t.getSymbolPath();if(p){var o=u.getItemLayout(e),a=Math.atan2(o[1]-g,o[0]-d);a<0&&(a=2*Math.PI+a);var s=o[0]<d;s&&(a-=Math.PI);var l=s?"left":"right";i.setTextConfig({rotation:-a,position:l,origin:"center"});var c=i.ensureState("emphasis");j(c.textConfig||(c.textConfig={}),{position:l})}else i.setTextConfig({rotation:r*=Math.PI/180})})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;(function 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)&&!DO(e,n,t)})),WN(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){TO(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){IO(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(),HN(t.getGraph(),oN(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=oN(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){HN(t.getGraph(),oN(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(mm),XN=UN;function $N(t){return"_EC_"+t}var YN=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[$N(t)]){var r=new qN(t,e);return r.hostGraph=this,this.nodes.push(r),n[$N(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[$N(t)]},t.prototype.addEdge=function(t,e,n){var r=this._nodesMap,i=this._edgesMap;if("number"===typeof t&&(t=this.nodes[t]),"number"===typeof e&&(e=this.nodes[e]),t instanceof qN||(t=r[$N(t)]),e instanceof qN||(e=r[$N(e)]),t&&e){var o=t.id+"-"+e.id,a=new ZN(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 qN&&(t=t.id),e instanceof qN&&(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 qN||(e=this._nodesMap[$N(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)){var a=[e];while(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}(),qN=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t}(),ZN=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t}();function KN(t,e){return{getValue:function(n){var r=this[t][e];return r.get(r.getDimension(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)}}}$(qN,KN("hostGraph","data")),$(ZN,KN("hostGraph","edgeData"));var JN=YN;function QN(t,e,n,r,i){for(var o=new JN(r),a=0;a<t.length;a++)o.addNode(yt(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,f=c.target;o.addEdge(h,f,u)&&(l.push(c),s.push(yt(Yo(c.id,null),h+" > "+f)),u++)}var p,d=n.get("coordinateSystem");if("cartesian2d"===d||"polar"===d)p=iC(t,n);else{var g=Xg.get(d),v=g&&g.dimensions||[];U(v,"value")<0&&v.concat(["value"]);var y=$M(t,{coordDimensions:v});p=new jM(y,n),p.initData(t)}var m=new jM(["value"],n);return m.initData(l,s),i&&i(p,m),YP({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var tz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return v(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new xk(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),Ro(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],r=t.data||t.nodes||[],i=this;if(r&&n){QR(this);var o=QN(r,n,this,!0,a);return q(o.edges,(function(t){tN(t.node1,t.node2,this,t.dataIndex)}),this),o.data}function a(t,e){t.wrapMethod("getItemModel",(function(t){var e=i._categoriesModels,n=t.getShallow("category"),r=e[n];return r&&(r.parentModel=t.parentModel,t.parentModel=r),t}));var n=bp.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=o,r}function o(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=o,t.getModel=r,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var 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),Py("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=$y({series:this,dataIndex:t,multipleSeries:e});return u},e.prototype._updateCategoriesData=function(){var t=Z(this.option.categories||[],(function(t){return null!=t.value?t:j({value:0},t)})),e=new jM(["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={zlevel:0,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}(am),ez=tz,nz={type:"graphRoam",event:"graphRoam",update:"none"};function rz(t){t.registerChartView(XN),t.registerSeriesModel(ez),t.registerProcessor(GR),t.registerVisual(jR),t.registerVisual(WR),t.registerLayout(iN),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,hN),t.registerLayout(dN),t.registerCoordinateSystem("graphView",{dimensions:QO.dimensions,create:vN}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){})),t.registerAction(nz,(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){var n=e.coordinateSystem,r=hP(n,t);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}var iz=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),oz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return v(e,t),e.prototype.getDefaultShape=function(){return new iz},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}(Fl),az=oz;function sz(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i),a=lo(n[0],e.getWidth()),s=lo(n[1],e.getHeight()),l=lo(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function lz(t,e){var n=null==t?"":t+"";return e&&("string"===typeof e?n=e.replace("{value}",n):"function"===typeof e&&(n=e(t))),n}var uz=2*Math.PI,cz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),i=sz(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){for(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"),h=c?PD:xh,f=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),g=(l-s)%uz||l===s?(l-s)%uz:uz,v=s,y=0;f&&y<r.length;y++){var m=Math.min(Math.max(r[y][0],0),1);l=s+g*m;var _=new h({shape:{startAngle:v,endAngle:l,cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-d,r:i.r},silent:!0});_.setStyle({fill:r[y][1]}),_.setStyle(p.getLineStyle(["color","width"])),o.add(_),v=l}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]};if(!a){var b=s;s=l,l=b}this._renderTicks(t,e,n,x,i,s,l,a,d),this._renderTitleAndDetail(t,e,n,x,i),this._renderAnchor(t,i),this._renderPointer(t,e,n,x,i,s,l,a,d)},e.prototype._renderTicks=function(t,e,n,r,i,o,a,s,l){for(var u,c,h=this.group,f=i.cx,p=i.cy,d=i.r,g=+t.get("min"),v=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),x=t.get("splitNumber"),b=m.get("splitNumber"),w=lo(y.get("length"),d),S=lo(m.get("length"),d),M=o,C=(a-o)/x,T=C/b,I=y.getModel("lineStyle").getLineStyle(),A=m.getModel("lineStyle").getLineStyle(),D=y.get("distance"),k=0;k<=x;k++){if(u=Math.cos(M),c=Math.sin(M),y.get("show")){var L=D?D+l:l,O=new zh({shape:{x1:u*(d-L)+f,y1:c*(d-L)+p,x2:u*(d-w-L)+f,y2:c*(d-w-L)+p},style:I,silent:!0});"auto"===I.stroke&&O.setStyle({stroke:r(k/x)}),h.add(O)}if(_.get("show")){L=_.get("distance")+D;var P=lz(uo(k/x*(v-g)+g),_.get("formatter")),E=r(k/x);h.add(new yu({style:Jf(_,{text:P,x:u*(d-w-L)+f,y:c*(d-w-L)+p,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:E}),silent:!0}))}if(m.get("show")&&k!==x){L=m.get("distance");L=L?L+l:l;for(var R=0;R<=b;R++){u=Math.cos(M),c=Math.sin(M);var N=new zh({shape:{x1:u*(d-L)+f,y1:c*(d-L)+p,x2:u*(d-S-L)+f,y2:c*(d-S-L)+p},silent:!0,style:A});"auto"===A.stroke&&N.setStyle({stroke:r((k+R/b)/x)}),h.add(N),M+=T}M-=T}else M+=C}},e.prototype._renderPointer=function(t,e,n,r,i,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,f=[],p=t.get(["pointer","show"]),d=t.getModel("progress"),g=d.get("show"),v=t.getData(),y=v.mapDimension("value"),m=+t.get("min"),_=+t.get("max"),x=[m,_],b=[o,a];function w(e,n){var r,o=v.getItemModel(e),a=o.getModel("pointer"),s=lo(a.get("width"),i.r),l=lo(a.get("length"),i.r),u=t.get(["pointer","icon"]),c=a.get("offsetCenter"),h=lo(c[0],i.r),f=lo(c[1],i.r),p=a.get("keepAspect");return r=u?px(u,h-s/2,f-l,s,l,null,p):new az({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:f}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function S(t,e){var n=d.get("roundCap"),r=n?PD:xh,a=d.get("overlap"),u=a?d.get("width"):l/v.count(),c=a?i.r-u:i.r-(t+1)*u,h=a?i.r:i.r-t*u,f=new r({shape:{startAngle:o,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:h}});return a&&(f.z2=_-v.get(y,t)%_),f}(g||p)&&(v.diff(c).add((function(e){if(p){var n=w(e,o);Af(n,{rotation:-(so(v.get(y,e),x,b,!0)+Math.PI/2)},t),u.add(n),v.setItemGraphicEl(e,n)}if(g){var r=S(e,o),i=d.get("clip");Af(r,{shape:{endAngle:so(v.get(y,e),x,b,i)}},t),u.add(r),f[e]=r}})).update((function(e,n){if(p){var r=c.getItemGraphicEl(n),i=r?r.rotation:o,a=w(e,i);a.rotation=i,If(a,{rotation:-(so(v.get(y,e),x,b,!0)+Math.PI/2)},t),u.add(a),v.setItemGraphicEl(e,a)}if(g){var s=h[n],l=s?s.shape.endAngle:o,m=S(e,l),_=d.get("clip");If(m,{shape:{endAngle:so(v.get(y,e),x,b,_)}},t),u.add(m),f[e]=m}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis");if(p){var i=v.getItemGraphicEl(t),o=v.getItemVisual(t,"style"),a=o.fill;if(i instanceof Yl){var s=i.style;i.useStyle(j({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},o))}else i.useStyle(o),"pointer"!==i.type&&i.setColor(a);i.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===i.style.fill&&i.setStyle("fill",r(so(v.get(y,t),x,[0,1],!0))),i.z2EmphasisLift=0,wc(i,e),mc(i,n.get("focus"),n.get("blurScope"))}if(g){var l=f[t];l.useStyle(v.getItemVisual(t,"style")),l.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),l.z2EmphasisLift=0,wc(l,e),mc(l,n.get("focus"),n.get("blurScope"))}})),this._progressEls=f)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=px(o,e.cx-i/2+lo(a[0],e.r),e.cy-i/2+lo(a[1],e.r),i,i,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,r,i){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new Ui,h=[],f=[],p=t.isAnimationEnabled();a.diff(this._data).add((function(t){h[t]=new yu({silent:!0}),f[t]=new yu({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],f[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),d=new Ui,g=r(so(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),m=i.cx+lo(y[0],i.r),_=i.cy+lo(y[1],i.r),x=h[e];x.attr({style:Jf(v,{x:m,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:g})}),d.add(x)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=i.cx+lo(w[0],i.r),M=i.cy+lo(w[1],i.r),C=lo(b.get("width"),i.r),T=lo(b.get("height"),i.r),I=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:g,A=(x=f[e],b.get("formatter"));x.attr({style:Jf(b,{x:S,y:M,text:lz(o,A),width:isNaN(C)?null:C,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:I})}),lp(x,{normal:b},o,(function(t){return lz(t,A)})),p&&up(x,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return lz(a?a.interpolatedValue:o,A)}}),d.add(x)}c.add(d)})),this.group.add(c),this._titleEls=h,this._detailEls=f},e.type="gauge",e}(mm),hz=cz,fz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n.useColorPaletteOnData=!0,n}return v(e,t),e.prototype.getInitialData=function(t,e){return mk(this,["value"])},e.type="series.gauge",e.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,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}(am),pz=fz;function dz(t){t.registerChartView(hz),t.registerSeriesModel(pz)}var gz=["itemStyle","opacity"],vz=function(t){function e(e,n){var r=t.call(this)||this,i=r,o=new Ph,a=new yu;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(e,n,!0),r}return v(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(gz);l=null==l?1:l,r.useStyle(t.getItemVisual(e,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,Af(r,{style:{opacity:l}},i,e)):If(r,{style:{opacity:l},shape:{points:a.points}},i,e),wc(r,o),this._updateLabel(t,e),mc(this,s.get("focus"),s.get("blurScope"))},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),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;Zf(i,Kf(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;r.setShape({points:h}),n.textGuideLineConfig={anchor:h?new ui(h[0][0],h[0][1]):null},If(i,{style:{x:l.x,y:l.y}},o,e),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),E_(n,R_(a),{stroke:c})},e}(kh),yz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return v(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 vz(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){var n=i.getItemGraphicEl(e);Lf(n,t,e)})).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(mm),mz=yz,_z=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.useColorPaletteOnData=!0,n}return v(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xk(nt(this.getData,this),nt(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return mk(this,{coordDimensions:["value"],encodeDefaulter:rt(fg,this)})},e.prototype._defaultLabelLine=function(t){Ro(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={zlevel:0,z:2,legendHoverLink:!0,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}(am),xz=_z;function bz(t,e){return Vd(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wz(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"function"===typeof e?i.sort(e):"none"!==e&&i.sort((function(t,e){return o?r[t]-r[e]:r[e]-r[t]})),i}function Sz(t){var e=t.hostModel,n=e.get("orient");t.each((function(e){var r,i,o,a,s=t.getItemModel(e),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),h=t.getItemLayout(e),f=h.points,p="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(p)"insideLeft"===u?(i=(f[0][0]+f[3][0])/2+5,o=(f[0][1]+f[3][1])/2,r="left"):"insideRight"===u?(i=(f[1][0]+f[2][0])/2-5,o=(f[1][1]+f[2][1])/2,r="right"):(i=(f[0][0]+f[1][0]+f[2][0]+f[3][0])/4,o=(f[0][1]+f[1][1]+f[2][1]+f[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var d=void 0,g=void 0,v=void 0,y=void 0,m=c.get("length");0,"left"===u?(d=(f[3][0]+f[0][0])/2,g=(f[3][1]+f[0][1])/2,v=d-m,i=v-5,r="right"):"right"===u?(d=(f[1][0]+f[2][0])/2,g=(f[1][1]+f[2][1])/2,v=d+m,i=v+5,r="left"):"top"===u?(d=(f[3][0]+f[0][0])/2,g=(f[3][1]+f[0][1])/2,y=g-m,o=y-5,r="center"):"bottom"===u?(d=(f[1][0]+f[2][0])/2,g=(f[1][1]+f[2][1])/2,y=g+m,o=y+5,r="center"):"rightTop"===u?(d="horizontal"===n?f[3][0]:f[1][0],g="horizontal"===n?f[3][1]:f[1][1],"horizontal"===n?(y=g-m,o=y-5,r="center"):(v=d+m,i=v+5,r="top")):"rightBottom"===u?(d=f[2][0],g=f[2][1],"horizontal"===n?(y=g+m,o=y+5,r="center"):(v=d+m,i=v+5,r="bottom")):"leftTop"===u?(d=f[0][0],g="horizontal"===n?f[0][1]:f[1][1],"horizontal"===n?(y=g-m,o=y-5,r="center"):(v=d-m,i=v-5,r="right")):"leftBottom"===u?(d="horizontal"===n?f[1][0]:f[3][0],g="horizontal"===n?f[1][1]:f[2][1],"horizontal"===n?(y=g+m,o=y+5,r="center"):(v=d-m,i=v-5,r="right")):(d=(f[1][0]+f[2][0])/2,g=(f[1][1]+f[2][1])/2,"horizontal"===n?(y=g+m,o=y+5,r="center"):(v=d+m,i=v+5,r="left")),"horizontal"===n?(v=d,i=v):(y=g,o=y),a=[[d,g],[v,y]]}h.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:p}}))}function Mz(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),r=n.mapDimension("value"),i=t.get("sort"),o=bz(t,e),a=t.get("orient"),s=o.width,l=o.height,u=wz(n,i),c=o.x,h=o.y,f="horizontal"===a?[lo(t.get("minSize"),l),lo(t.get("maxSize"),l)]:[lo(t.get("minSize"),s),lo(t.get("maxSize"),s)],p=n.getDataExtent(r),d=t.get("min"),g=t.get("max");null==d&&(d=Math.min(p[0],0)),null==g&&(g=p[1]);var v=t.get("funnelAlign"),y=t.get("gap"),m="horizontal"===a?s:l,_=(m-y*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===a){var i=n.get(r,t)||0,o=so(i,[d,g],f,!0),u=void 0;switch(v){case"top":u=h;break;case"center":u=h+(l-o)/2;break;case"bottom":u=h+(l-o);break}return[[e,u],[e,u+o]]}var p,y=n.get(r,t)||0,m=so(y,[d,g],f,!0);switch(v){case"left":p=c;break;case"center":p=c+(s-m)/2;break;case"right":p=c+s-m;break}return[[p,e],[p+m,e]]};"ascending"===i&&(_=-_,y=-y,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var b=0;b<u.length;b++){var w=u[b],S=u[b+1],M=n.getItemModel(w);if("horizontal"===a){var C=M.get(["itemStyle","width"]);null==C?C=_:(C=lo(C,s),"ascending"===i&&(C=-C));var T=x(w,c),I=x(S,c+C);c+=C+y,n.setItemLayout(w,{points:T.concat(I.slice().reverse())})}else{var A=M.get(["itemStyle","height"]);null==A?A=_:(A=lo(A,l),"ascending"===i&&(A=-A));T=x(w,h),I=x(S,h+A);h+=A+y,n.setItemLayout(w,{points:T.concat(I.slice().reverse())})}}Sz(n)}))}function Cz(t){t.registerChartView(mz),t.registerSeriesModel(xz),t.registerLayout(Mz),t.registerProcessor(lk("funnel"))}var Tz=.3,Iz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Ui,n._initialized=!1,n}return v(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,r){var i=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=Lz(t);function c(t){var e=kz(o,i,t,l,s);Oz(e,o,t,u)}function h(e,n){var r=a.getItemGraphicEl(n),i=Dz(o,e,l,s);o.setItemGraphicEl(e,r),If(r,{shape:{points:i}},t,e),Oz(r,o,e,u)}function f(t){var e=a.getItemGraphicEl(t);i.remove(e)}if(o.diff(a).add(c).update(h).remove(f).execute(),!this._initialized){this._initialized=!0;var p=Az(s,t,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(p)}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=Lz(e),s=t.start;s<t.end;s++){var l=kz(r,this._dataGroup,s,o,i);l.incremental=!0,Oz(l,r,s,a)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(mm);function Az(t,e,n){var r=t.model,i=t.getRect(),o=new ru({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),Af(o,{shape:{width:i.width,height:i.height}},e,n),o}function Dz(t,e,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=t.get(t.mapDimension(a),e);Pz(s,r.getAxis(a).type)||i.push(r.dataToPoint(s,a))}return i}function kz(t,e,n,r,i){var o=Dz(t,n,r,i),a=new Ph({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function Lz(t){var e=t.get("smooth",!0);return!0===e&&(e=Tz),e=Io(e),vt(e)&&(e=0),{smooth:e}}function Oz(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");wc(t,i,"lineStyle"),mc(t,o.get("focus"),o.get("blurScope"))}function Pz(t,e){return"category"===e?null==t:null==t||isNaN(t)}var Ez=Iz,Rz=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 v(e,t),e.prototype.getInitialData=function(t,e){return iC(this.getSource(),this,{useEncodeDefaulter:nt(Nz,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={zlevel:0,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}(am);function Nz(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return q(e.dimensions,(function(t){var e=zz(t);n[t]=e})),n}}function zz(t){return+t.replace("dim","")}var Bz=Rz,Vz=["lineStyle","opacity"],Fz={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(Vz,!0);null!=o&&(i=o)}var a=e.ensureUniqueItemVisual(n,"style");a.opacity=i}),t.start,t.end)}}}},Gz=Fz;function jz(t){Hz(t),Wz(t)}function Hz(t){if(!t.parallel){var e=!1;q(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function Wz(t){var e=Eo(t.parallelAxis);q(e,(function(e){if(ut(e)){var n=e.parallelIndex||0,r=Eo(t.parallel)[n];r&&r.parallelAxisDefault&&F(e,r.parallelAxisDefault,!1)}}))}var Uz=5,Xz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},q($z,(function(t,e){n.getZr().on(e,this._handlers[e]=nt(t,this))}),this)),Sm(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){q(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(j({type:"parallelAxisExpand"},t))},e.type="parallel",e}(lm),$z={mousedown:function(t){Yz(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(Yz(this,"click")&&e){var n=[t.offsetX,t.offsetY],r=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(r>Uz)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Yz(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 Yz(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var qz=Xz,Zz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&F(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){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=J(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);q(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={zlevel:0,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}(qd),Kz=Zz,Jz=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 v(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(JT),Qz=Jz;function tB(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=nB(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=nB(s,[0,a]),i=o=nB(s,[i,o]),r=0}e[0]=nB(e[0],n),e[1]=nB(e[1],n);var l=eB(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]=nB(e[r],h),u=eB(e,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(e[1-r]=e[r]+l.sign*i),u=eB(e,r),null!=o&&u.span>o&&(e[1-r]=e[r]+u.sign*o),e}function eB(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 nB(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var rB=q,iB=Math.min,oB=Math.max,aB=Math.floor,sB=Math.ceil,lB=uo,uB=Math.PI,cB=function(){function t(t,e,n){this.type="parallel",this._axesMap=At(),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;rB(r,(function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),a=this._axesMap.set(t,new Qz(t,vT(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();rB(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),gT(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Vd(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=hB(e.get("axisExpandWidth"),l),h=hB(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");if(p)t=hB(p[1]-p[0],l),p[1]=p[0]+t;else{t=hB(c*(h-1),l);var d=e.get("axisExpandCenter")||aB(u/2);p=[c*d-t/2],p[1]=p[0]+t}var g=(s-t)/(u-h);g<3&&(g=0);var v=[aB(lB(p[0]/c,1))+1,sB(lB(p[1]/c,1))-1],y=g/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:f,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:v,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])})),rB(n,(function(e,n){var o=(r.axisExpandable?pB:fB)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:uB/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=jr();$r(c,c,u),Xr(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=[];q(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),f=0,p=o.length;f<p;f++){var d=s[f].getActiveState(h[f]);if("inactive"===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){var n=this._axesLayout[e];return Ef([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return V(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,a?tB(a,r,o,"all"):l="none";else{var f=r[1]-r[0],p=o[1]*s/f;r=[oB(0,p-f/2)],r[1]=iB(o[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:l}},t}();function hB(t,e){return iB(oB(t,e[0]),e[1])}function fB(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function pB(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 dB=cB;function gB(t,e){var n=[];return t.eachComponent("parallel",(function(r,i){var o=new dB(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",aa).models[0];t.coordinateSystem=e.coordinateSystem}})),n}var vB={create:gB},yB=vB,mB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return v(e,t),e.prototype.getAreaSelectStyle=function(){return Aa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=V(t);if(e)for(var n=e.length-1;n>=0;n--)co(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}(qd);$(mB,TT);var _B=mB,xB=!0,bB=Math.min,wB=Math.max,SB=Math.pow,MB=1e4,CB=6,TB=6,IB="globalPan",AB={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},DB={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},kB={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},LB=0,OB=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Ui,n._uid="brushController_"+LB++,q(cV,(function(t,e){this._handlers[e]=nt(t,this)}),n),n}return v(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||yO(e,IB,this._uid),q(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=F(V(kB),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;mO(t,IB,this._uid),q(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={};q(t,(function(t){e[t.panelId]=V(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=Z(t,(function(t){return F(V(kB),t,!0)}));var e="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,o=this._creatingCover;return new lM(n,t,s,a).add(l).update(l).remove(u).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(t,e){return a(t.__brushOption,e)}function l(e,a){var s=t[e];if(null!=a&&n[a]===o)r[e]=n[a];else{var l=r[e]=null!=a?(n[a].__brushOption=s,n[a]):EB(i,PB(i,s));zB(i,l)}}function u(t){n[t]!==o&&i.group.remove(n[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),GB(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(ce);function PB(t,e){var n=pV[e.brushType].createCover(t,e);return n.__brushOption=e,NB(n,e),t.group.add(n),n}function EB(t,e){var n=BB(e);return n.endCreating&&(n.endCreating(t,e),NB(e,e.__brushOption)),e}function RB(t,e){var n=e.__brushOption;BB(e).updateCoverShape(t,e,n.range,n)}function NB(t,e){var n=e.z;null==n&&(n=MB),t.traverse((function(t){t.z=n,t.z2=n}))}function zB(t,e){BB(e).updateCommon(t,e),RB(t,e)}function BB(t){return pV[t.__brushOption.brushType]}function VB(t,e,n){var r,i=t._panels;if(!i)return xB;var o=t._transform;return q(i,(function(t){t.isTargetByCursor(e,n,o)&&(r=t)})),r}function FB(t,e){var n=t._panels;if(!n)return xB;var r=e.__brushOption.panelId;return null!=r?n[r]:xB}function GB(t){var e=t._covers,n=e.length;return q(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function jB(t,e){var n=Z(t._covers,(function(t){var e=t.__brushOption,n=V(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function HB(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],a=SB(i*i+o*o,.5);return a>CB}function WB(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function UB(t,e,n,r){var i=new Ui;return i.add(new ru({name:"main",style:qB(n),silent:!0,draggable:!0,cursor:"move",drift:rt(tV,t,e,i,["n","s","w","e"]),ondragend:rt(jB,e,{isEnd:!0})})),q(r,(function(n){i.add(new ru({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:rt(tV,t,e,i,n),ondragend:rt(jB,e,{isEnd:!0})}))})),i}function XB(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=wB(i,TB),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],f=c-o+i/2,p=h-o+i/2,d=c-a,g=h-s,v=d+i,y=g+i;YB(t,e,"main",a,s,d,g),r.transformable&&(YB(t,e,"w",l,u,o,y),YB(t,e,"e",f,u,o,y),YB(t,e,"n",l,u,v,o),YB(t,e,"s",l,p,v,o),YB(t,e,"nw",l,u,o,o),YB(t,e,"ne",f,u,o,o),YB(t,e,"sw",l,p,o,o),YB(t,e,"se",f,p,o,o))}function $B(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(qB(n)),i.attr({silent:!r,cursor:r?"move":"default"}),q([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?JB(t,n[0]):QB(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?DB[o]+"-resize":null})}))}function YB(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape(iV(rV(t,e,[[r,i],[r+o,i+a]])))}function qB(t){return H({strokeNoScale:!0},t.brushStyle)}function ZB(t,e,n,r){var i=[bB(t,n),bB(e,r)],o=[wB(t,n),wB(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function KB(t){return Pf(t.group)}function JB(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Rf(n[e],KB(t));return r[i]}function QB(t,e){var n=[JB(t,e[0]),JB(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function tV(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=nV(e,i,o);q(r,(function(t){var e=AB[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(ZB(s[0][0],s[1][0],s[0][1],s[1][1])),zB(e,n),jB(e,{isEnd:!1})}function eV(t,e,n,r){var i=e.__brushOption.range,o=nV(t,n,r);q(i,(function(t){t[0]+=o[0],t[1]+=o[1]})),zB(t,e),jB(t,{isEnd:!1})}function nV(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 rV(t,e,n){var r=FB(t,e);return r&&r!==xB?r.clipPath(n,t._transform):V(n)}function iV(t){var e=bB(t[0][0],t[1][0]),n=bB(t[0][1],t[1][1]),r=wB(t[0][0],t[1][0]),i=wB(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function oV(t,e,n){if(t._brushType&&!fV(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=VB(t,e,n);if(!t._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===xB||s.panelId===o.panelId)&&pV[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function aV(t){var e=t.event;e.preventDefault&&e.preventDefault()}function sV(t,e,n){return t.childOfName("main").contain(e,n)}function lV(t,e,n,r){var i,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),HB(t)||o){if(a&&!o){"single"===s.brushMode&&GB(t);var l=V(s);l.brushType=uV(l.brushType,a),l.panelId=a===xB?null:a.panelId,o=t._creatingCover=PB(t,l),t._covers.push(o)}if(o){var u=pV[uV(t._brushType,a)],c=o.__brushOption;c.range=u.getCreatingRange(rV(t,o,t._track)),r&&(EB(t,o),u.updateCommon(t,o)),RB(t,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&VB(t,e,n)&&GB(t)&&(i={isEnd:r,removeOnClick:!0});return i}function uV(t,e){return"auto"===t?e.defaultBrushType:t}var cV={mousedown:function(t){if(this._dragging)hV(this,t);else if(!t.target||!t.target.draggable){aV(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=VB(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(oV(this,t,r),this._dragging){aV(t);var i=lV(this,t,r,!1);i&&jB(this,i)}},mouseup:function(t){hV(this,t)}};function hV(t,e){if(t._dragging){aV(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),o=lV(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&jB(t,o)}}function fV(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var pV={lineX:dV(0),lineY:dV(1),rect:{createCover:function(t,e){function n(t){return t}return UB({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=WB(t);return ZB(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){XB(t,e,n,r)},updateCommon:$B,contain:sV},polygon:{createCover:function(t,e){var n=new Ui;return n.add(new Ph({name:"main",style:qB(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new kh({name:"main",draggable:!0,drift:rt(eV,t,e),ondragend:rt(jB,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:rV(t,e,n)})},updateCommon:$B,contain:sV}};function dV(t){return{createCover:function(e,n){return UB({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=WB(e),r=bB(n[0][t],n[1][t]),i=wB(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var o,a=FB(e,n);if(a!==xB&&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(),XB(e,n,l,i)},updateCommon:$B,contain:sV}}var gV=OB;function vV(t){return t=_V(t),function(e){return Vf(e,t)}}function yV(t,e){return t=_V(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 mV(t,e,n){var r=_V(t);return function(t,i){return r.contain(i[0],i[1])&&!DO(t,e,n)}}function _V(t){return _i.create(t)}var xV=["axisLine","axisTickLabel","axisName"],bV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new gV(n.getZr())).on("brush",nt(this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!wV(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Ui,this.group.add(this._axisGroup),t.get("show")){var o=MV(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=a.getAxisLayout(u),h=j({strokeContainThreshold:l},c),f=new xL(t,h);q(xV,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(h,s,t,o,l,n),Bf(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=_i.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:vV(u),isTargetByCursor:mV(u,o,r),getLinearBrushOtherExtent:yV(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(SV(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,r=n.axis,i=Z(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}(lm);function wV(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function SV(t){var e=t.axis;return Z(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function MV(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var CV=bV,TV={type:"axisAreaSelect",event:"axisAreaSelected"};function IV(t){t.registerAction(TV,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var AV={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function DV(t){t.registerComponentView(qz),t.registerComponentModel(Kz),t.registerCoordinateSystem("parallel",yB),t.registerPreprocessor(jz),t.registerComponentModel(_B),t.registerComponentView(CV),Hk(t,"parallel",_B,AV),IV(t)}function kV(t){iM(DV),t.registerChartView(Ez),t.registerSeriesModel(Bz),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Gz)}var LV=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),OV=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultShape=function(){return new LV},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(){ec(this)},e.prototype.downplay=function(){nc(this)},e}(Fl),PV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return v(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 OV,r=mu(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var i,a,u,f,p,d,g,v,y=e.getModel(),m=y.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(),C=e.node2.getModel(),T=C.get("localX"),I=C.get("localY"),A=e.getLayout();switch(n.shape.extent=Math.max(1,A.dy),n.shape.orient=h,"vertical"===h?(i=(null!=w?w*s:x.x)+A.sy,a=(null!=S?S*l:x.y)+x.dy,u=(null!=T?T*s:M.x)+A.ty,f=null!=I?I*l:M.y,p=i,d=a*(1-_)+f*_,g=u,v=a*_+f*(1-_)):(i=(null!=w?w*s:x.x)+x.dx,a=(null!=S?S*l:x.y)+A.sy,u=null!=T?T*s:M.x,f=(null!=I?I*l:M.y)+A.ty,p=i*(1-_)+u*_,d=a,g=i*_+u*(1-_),v=f),n.setShape({x1:i,y1:a,x2:u,y2:f,cpx1:p,cpy1:d,cpx2:g,cpy2:v}),n.useStyle(m.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color"),n.style.decal=e.node1.getVisual("style").decal;break;case"target":n.style.fill=e.node2.getVisual("color"),n.style.decal=e.node2.getVisual("style").decal;break;case"gradient":var D=e.node1.getVisual("color"),k=e.node2.getVisual("color");"string"===typeof D&&"string"===typeof k&&(n.style.fill=new Kh(0,0,1,0,[{color:D,offset:0},{color:k,offset:1}]))}var L=y.getModel("emphasis");wc(n,y,"lineStyle",(function(t){return t.getItemStyle()})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var O=L.get("focus");mc(n,"adjacency"===O?e.getAdjacentDataIndices():O,L.get("blurScope")),mu(n).dataType="edge"})),i.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),h=new ru({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});Zf(h,Kf(r),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),wc(h,r),o.add(h),u.setItemGraphicEl(e.dataIndex,h),mu(h).dataType="node";var f=c.get("focus");mc(h,"adjacency"===f?e.getAdjacentDataIndices():f,c.get("blurScope"))})),u.eachItemGraphicEl((function(e,i){var o=u.getItemModel(i);o.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(EV(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(mm);function EV(t,e,n){var r=new ru({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Af(r,{shape:{width:t.width+20}},e,n),r}var RV=PV,NV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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 bp(i[a],this,e));if(r&&n){var s=QN(r,n,this,!0,l);return s.data}function l(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),i=r.node1.getLayout();if(i){var o=i.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data[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,s=o.source+" -- "+o.target;return Py("nameValue",{name:s,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return Py("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},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),o=i.getLayout().value;r.value=o}return r},e.type="series.sankey",e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(am),zV=NV;function BV(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=VV(t,e);t.layoutInfo=i;var o=i.width,a=i.height,s=t.getGraph(),l=s.nodes,u=s.edges;GV(l);var c=J(l,(function(t){return 0===t.getLayout().value})),h=0!==c.length?0:t.get("layoutIterations"),f=t.get("orient"),p=t.get("nodeAlign");FV(l,u,n,r,o,a,h,f,p)}))}function VV(t,e){return Vd(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function FV(t,e,n,r,i,o,a,s,l){jV(t,e,n,i,o,s,l),$V(t,e,o,i,r,a,s),aF(t,s)}function GV(t){q(t,(function(t){var e=iF(t.outEdges,rF),n=iF(t.inEdges,rF),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}function jV(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],h=0,f=0;f<e.length;f++)s[f]=1;for(f=0;f<t.length;f++)l[f]=t[f].inEdges.length,0===l[f]&&u.push(t[f]);var p=-1;while(u.length){for(var d=0;d<u.length;d++){var g=u[d],v=g.hostGraph.data.getRawDataItem(g.dataIndex),y=null!=v.depth&&v.depth>=0;y&&v.depth>p&&(p=v.depth),g.setLayout({depth:y?v.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],x=e.indexOf(_);s[x]=0;var b=_.node2,w=t.indexOf(b);0===--l[w]&&c.indexOf(b)<0&&c.push(b)}}++h,u=c,c=[]}for(f=0;f<s.length;f++)if(1===s[f])throw new Error("Sankey is a DAG, the original data has cycle!");var S=p>h-1?p:h-1;a&&"left"!==a&&WV(t,a,o,S);var M="vertical"===o?(i-n)/S:(r-n)/S;XV(t,M,o)}function HV(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function WV(t,e,n,r){if("right"===e){var i=[],o=t,a=0;while(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}q(t,(function(t){HV(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&UV(t,r)}function UV(t,e){q(t,(function(t){HV(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function XV(t,e,n){q(t,(function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)}))}function $V(t,e,n,r,i,o,a){var s=YV(t,a);qV(s,e,n,r,i,a),ZV(s,i,n,r,a);for(var l=1;o>0;o--)l*=.99,KV(s,l,a),ZV(s,i,n,r,a),oF(s,l,a),ZV(s,i,n,r,a)}function YV(t,e){var n=[],r="vertical"===e?"y":"x",i=fa(t,(function(t){return t.getLayout()[r]}));return i.keys.sort((function(t,e){return t-e})),q(i.keys,(function(t){n.push(i.buckets.get(t))})),n}function qV(t,e,n,r,i,o){var a=1/0;q(t,(function(t){var e=t.length,s=0;q(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)})),q(t,(function(t){q(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))}))})),q(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))}function ZV(t,e,n,r,i){var o="vertical"===i?"x":"y";q(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",f=0;f<c;f++)s=t[f],l=u-s.getLayout()[o],l>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;var p="vertical"===i?r:n;if(l=u-e-p,l>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(f=c-2;f>=0;--f)s=t[f],l=s.getLayout()[o]+s.getLayout()[h]+e-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function KV(t,e,n){q(t.slice().reverse(),(function(t){q(t,(function(t){if(t.outEdges.length){var r=iF(t.outEdges,JV,n)/iF(t.outEdges,rF);if(isNaN(r)){var i=t.outEdges.length;r=i?iF(t.outEdges,QV,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-nF(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-nF(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function JV(t,e){return nF(t.node2,e)*t.getValue()}function QV(t,e){return nF(t.node2,e)}function tF(t,e){return nF(t.node1,e)*t.getValue()}function eF(t,e){return nF(t.node1,e)}function nF(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function rF(t){return t.getValue()}function iF(t,e,n){var r=0,i=t.length,o=-1;while(++o<i){var a=+e(t[o],n);isNaN(a)||(r+=a)}return r}function oF(t,e,n){q(t,(function(t){q(t,(function(t){if(t.inEdges.length){var r=iF(t.inEdges,tF,n)/iF(t.inEdges,rF);if(isNaN(r)){var i=t.inEdges.length;r=i?iF(t.inEdges,eF,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-nF(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-nF(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function aF(t,e){var n="vertical"===e?"x":"y";q(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]}))})),q(t,(function(t){var e=0,n=0;q(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),q(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}function sF(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes;if(n.length){var r=1/0,i=-1/0;q(n,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>i&&(i=e)})),q(n,(function(e){var n=new lR({type:"color",mappingMethod:"linear",dataExtent:[r,i],visual:t.get("color")}),o=n.mapValueToVisual(e.getLayout().value),a=e.getModel().get(["itemStyle","color"]);null!=a?(e.setVisual("color",a),e.setVisual("style",{fill:a})):(e.setVisual("color",o),e.setVisual("style",{fill:o}))}))}}))}function lF(t){t.registerChartView(RV),t.registerSeriesModel(zV),t.registerLayout(BV),t.registerVisual(sF),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var uF=function(){function t(){}return 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=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),r=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],f=[i,o],p=f[u].get("type"),d=f[1-u].get("type"),g=t.data;if(g&&r){var v=[];q(g,(function(t,e){var n;it(t)?(n=t.slice(),t.unshift(e)):it(t.value)?(n=t.value.slice(),t.value.unshift(e)):n=t,v.push(n)})),t.data=v}var y=this.defaultValueDimensions,m=[{name:c,type:hM(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:hM(d),dimsDef:y.slice()}];return mk(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:rt(hg,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),cF=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 v(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={zlevel:0,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}(am);$(cF,uF,!0);var hF=cF,fF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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=r.getItemLayout(t),n=gF(e,r,t,a,!0);r.setItemGraphicEl(t,n),i.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var s=r.getItemLayout(t);n?vF(s,n,r,t):n=gF(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}(mm),pF=function(){function t(){}return t}(),dF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return v(e,t),e.prototype.getDefaultShape=function(){return new pF},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}(Fl);function gF(t,e,n,r,i){var o=t.ends,a=new dF({shape:{points:i?yF(o,r,t):o}});return vF(t,a,e,n,i),a}function vF(t,e,n,r,i){var o=n.hostModel,a=l[i?"initProps":"updateProps"];a(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(r);wc(e,s),mc(e,s.get(["emphasis","focus"]),s.get(["emphasis","blurScope"]))}function yF(t,e,n){return Z(t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var mF=fF;function _F(t,e){}var xF=q;function bF(t){var e=wF(t);xF(e,(function(t){var e=t.seriesModels;e.length&&(SF(t),xF(e,(function(e,n){MF(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function wF(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var r=t.getBaseAxis(),i=U(n,r);i<0&&(i=n.length,n[i]=r,e[i]={axis:r,seriesModels:[]}),e[i].seriesModels.push(t)})),e}function SF(t){var e,n,r=t.axis,i=t.seriesModels,o=i.length,a=t.boxWidthList=[],s=t.boxOffsetList=[],l=[];if("category"===r.type)n=r.getBandWidth();else{var u=0;xF(i,(function(t){u=Math.max(u,t.getData().count())})),e=r.getExtent(),Math.abs(e[1]-e[0])}xF(i,(function(t){var e=t.get("boxWidth");it(e)||(e=[e,e]),l.push([lo(e[0],n)||0,lo(e[1],n)||0])}));var c=.8*n-2,h=c/o*.3,f=(c-h*(o-1))/o,p=f/2-c/2;xF(i,(function(t,e){s.push(p),p+=h+f,a.push(Math.min(Math.max(f,l[e][0]),l[e][1]))}))}function MF(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))for(var h=0;h<i.count();h++){var f=i.get(u,h),p=_(f,c[2],h),d=_(f,c[0],h),g=_(f,c[1],h),v=_(f,c[3],h),y=_(f,c[4],h),m=[];x(m,g,!1),x(m,v,!0),m.push(d,g,y,v),b(m,d),b(m,y),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),l[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)}}function CF(t,e){e=e||{};for(var n=[],r=[],i=e.boundIQR,o="none"===i||0===i,a=0;a<t.length;a++){var s=co(t[a].slice()),l=Co(s,.25),u=Co(s,.5),c=Co(s,.75),h=s[0],f=s[s.length-1],p=(null==i?1.5:i)*(c-l),d=o?h:Math.max(h,l-p),g=o?f:Math.min(f,c+p),v=e.itemNameFormatter,y=ot(v)?v({value:a}):at(v)?v.replace("{value}",a+""):a+"";n.push([y,d,l,u,c,g]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>g){var x=[y,_];r.push(x)}}}return{boxData:n,outliers:r}}var TF={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==eg){var n="";0,Lg(n)}var r=CF(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function IF(t){t.registerSeriesModel(hF),t.registerChartView(mF),t.registerVisual(_F),t.registerLayout(bF),t.registerTransform(TF)}var AF=["color","borderColor"],DF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),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._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},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&&PF(s,a))return;var l=OF(a,n,!0);Af(l,{shape:{points:a.ends}},t,n),EF(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&&PF(s,c)?r.remove(u):(u?If(u,{shape:{points:c.ends}},t,a):u=OF(c,a),EF(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(),BF(t,this.group);var e=t.get("clip",!0)?rD(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,r=e.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=t.next())){var o=r.getItemLayout(n),a=OF(o,n);EF(a,r,n,i),a.incremental=!0,this.group.add(a)}},e.prototype._incrementalRenderLarge=function(t,e){BF(e,this.group,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(mm),kF=function(){function t(){}return t}(),LF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return v(e,t),e.prototype.getDefaultShape=function(){return new kF},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}(Fl);function OF(t,e,n){var r=t.ends;return new LF({shape:{points:n?RF(r,t):r},z2:100})}function PF(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 EF(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,wc(t,i)}function RF(t,e){return Z(t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var NF=function(){function t(){}return t}(),zF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return v(e,t),e.prototype.getDefaultShape=function(){return new NF},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}(Fl);function BF(t,e,n){var r=t.getData(),i=r.getLayout("largePoints"),o=new zF({shape:{points:i},__sign:1});e.add(o);var a=new zF({shape:{points:i},__sign:-1});e.add(a),VF(1,o,t,r),VF(-1,a,t,r),n&&(o.incremental=!0,a.incremental=!0)}function VF(t,e,n,r){var i=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(AF);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var FF=DF,GF=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 v(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={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(am);$(GF,uF,!0);var jF=GF;function HF(t){t&&it(t.series)&&q(t.series,(function(t){ut(t)&&"k"===t.type&&(t.type="candlestick")}))}var WF=["itemStyle","borderColor"],UF=["itemStyle","borderColor0"],XF=["itemStyle","color"],$F=["itemStyle","color0"],YF={seriesType:"candlestick",plan:um(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?XF:$F)}function r(t,e){return e.get(t>0?WF:UF)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(t,e){var i;while(null!=(i=t.next())){var o=e.getItemModel(i),a=e.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill;var l=e.ensureUniqueItemVisual(i,"style");j(l,s)}}}}}},qF=YF,ZF="undefined"!==typeof Float32Array?Float32Array:Array,KF={seriesType:"candlestick",plan:um(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=QF(t,n),i=0,o=1,a=["x","y"],s=n.mapDimension(a[i]),l=n.mapDimensionsAll(a[o]),u=l[0],c=l[1],h=l[2],f=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(null==s||l.length<4))return{progress:t.pipelineContext.large?d:p};function p(t,n){var a;while(null!=(a=t.next())){var l=n.get(s,a),p=n.get(u,a),d=n.get(c,a),g=n.get(h,a),v=n.get(f,a),y=Math.min(p,d),m=Math.max(p,d),_=M(y,l),x=M(m,l),b=M(g,l),w=M(v,l),S=[];C(S,x,0),C(S,_,1),S.push(I(w),I(x),I(b),I(_)),n.setItemLayout(a,{sign:JF(n,a,p,d,c),initBaseline:p>d?x[o]:_[o],ends:S,brushRect:T(g,v,l)})}function M(t,n){var r=[];return r[i]=n,r[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function C(t,e,n){var o=e.slice(),a=e.slice();o[i]=Cf(o[i]+r/2,1,!1),a[i]=Cf(a[i]-r/2,1,!0),n?t.push(o,a):t.push(a,o)}function T(t,e,n){var a=M(t,n),s=M(e,n);return a[i]-=r/2,s[i]-=r/2,{x:a[0],y:a[1],width:o?r:s[0]-a[0],height:o?s[1]-a[1]:r}}function I(t){return t[i]=Cf(t[i],1),t}}function d(t,n){var r,a,l=new ZF(4*t.count),p=0,d=[],g=[];while(null!=(a=t.next())){var v=n.get(s,a),y=n.get(u,a),m=n.get(c,a),_=n.get(h,a),x=n.get(f,a);isNaN(v)||isNaN(_)||isNaN(x)?(l[p++]=NaN,p+=3):(l[p++]=JF(n,a,y,m,c),d[i]=v,d[o]=_,r=e.dataToPoint(d,null,g),l[p++]=r?r[0]:NaN,l[p++]=r?r[1]:NaN,d[o]=x,r=e.dataToPoint(d,null,g),l[p++]=r?r[1]:NaN)}n.setLayout("largePoints",l)}}};function JF(t,e,n,r,i){var o;return o=n>r?-1:n<r?1:e>0?t.get(i,e-1)<=r?1:-1:1,o}function QF(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=lo(mt(t.get("barMaxWidth"),i),i),a=lo(mt(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?lo(s,i):Math.max(Math.min(i/2,o),a)}var tG=KF;function eG(t){t.registerChartView(FF),t.registerSeriesModel(jF),t.registerPreprocessor(HF),t.registerVisual(qF),t.registerLayout(tG)}var nG=3;function rG(t){return it(t)||(t=[+t,+t]),t}function iG(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 oG=function(t){function e(e,n){var r=t.call(this)||this,i=new PA(e,n),o=new Ui;return r.add(i),r.add(o),r.updateData(e,n),r}return v(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=this.childAt(1),i=0;i<nG;i++){var o=px(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var a=-i/nG*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(a).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),r.add(o)}iG(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale"],i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}iG(n,t)},e.prototype.highlight=function(){ec(this)},e.prototype.downplay=function(){nc(this)},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=rG(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill;i.setScale(s),i.traverse((function(t){t.setStyle("fill",u)}));var c=t.getItemVisual(e,"symbolOffset");c&&(it(c)||(c=[c,c]),i.x=lo(c[0],s[0]),i.y=lo(mt(c[1],c[0])||0,s[1]));var h=t.getItemVisual(e,"symbolRotate");i.rotation=(h||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get("showEffectOn"),f.rippleScale=o.get(["rippleEffect","scale"]),f.brushType=o.get(["rippleEffect","brushType"]),f.period=1e3*o.get(["rippleEffect","period"]),f.effectOffset=e/t.count(),f.z=r.getShallow("z")||0,f.zlevel=r.getShallow("zlevel")||0,f.symbolType=a,f.color=u,f.rippleEffectColor=o.get(["rippleEffect","color"]),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===f.showEffectOn?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==f.showEffectOn&&n.startEffectAnimation(f):"normal"===t&&"render"!==f.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=f,mc(this)},e.prototype.fadeOut=function(t){this.off("mouseover").off("mouseout"),t&&t()},e}(Ui),aG=oG,sG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(){this._symbolDraw=new BA(aG)},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=wD("").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=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=Zr(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(mm),lG=sG,uG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return v(e,t),e.prototype.getInitialData=function(t,e){return iC(this.getSource(),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",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10},e}(am),cG=uG;function hG(t){t.registerChartView(lG),t.registerSeriesModel(cG),t.registerLayout(wD("effectScatter"))}var fG=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 v(e,t),e.prototype.createLine=function(t,e,n){return new DN(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),r=n.getModel("effect"),i=r.get("symbolSize"),o=r.get("symbol");it(i)||(i=[i,i]);var a=t.getItemVisual(e,"style"),s=r.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=px(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(r.getItemStyle(["color"])),l.scaleX=i[0],l.scaleY=i[1],l.setColor(s),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(t,r,e))},e.prototype._updateEffectAnimation=function(t,e,n){var r=this.childAt(1);if(r){var i=this,o=t.getItemLayout(n),a=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),u=yt(e.get("delay"),(function(e){return e/t.count()*a/3}));if(r.ignore=!0,this._updateAnimationPoints(r,o),l>0&&(a=this._getLineLength(r)/l*1e3),(a!==this._period||s!==this._loop)&&(r.stopAnimation(),a>0)){var c=void 0;c="function"===typeof u?u(n):u,r.__t>0&&(c=-a*r.__t),r.__t=0;var h=r.animate("",s).when(a,{__t:1}).delay(c).during((function(){i._updateSymbolPosition(r)}));s||h.done((function(){i.remove(r)})),h.start()}this._period=a,this._loop=s}},e.prototype._getLineLength=function(t){return Jt(t.__p1,t.__cp1)+Jt(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,o=[t.x,t.y],a=o.slice(),s=Ts,l=Is;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var u=l(e[0],r[0],n[0],i),c=l(e[1],r[1],n[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*Jt(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*Jt(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}(Ui),pG=fG,dG=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createPolyline(e,n,r),i}return v(e,t),e.prototype._createPolyline=function(t,e,n){var r=t.getItemLayout(e),i=new Ph({shape:{points:r}});this.add(i),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};If(i,o,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;n&&!t.hasItemOption||(o=i.getModel(["emphasis","lineStyle"]).getLineStyle()),r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.style.strokeNoScale=!0;var a=r.ensureState("emphasis");a.style=o,mc(this)},e.prototype.updateLayout=function(t,e){var n=this.childAt(0);n.setShape("points",t.getItemLayout(e))},e}(Ui),gG=dG,vG=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return v(e,t),e.prototype.createLine=function(t,e,n){return new gG(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+=Jt(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,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(a+1,i-1);for(o=s;o>=0;o--)if(r[o]<=e)break;o=Math.min(o,i-2)}else{for(o=a;o<i;o++)if(r[o]>e)break;o=Math.min(o-1,i-2)}var l=(e-r[o])/(r[o+1]-r[o]),u=n[o],c=n[o+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var h=c[0]-u[0],f=c[1]-u[1];t.rotation=-Math.atan2(f,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(pG),yG=vG,mG=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),_G=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mG},e.prototype.buildPath=function(t,e){var n=e.segs,r=e.curveness;if(e.polyline)for(var i=0;i<n.length;){var o=n[i++];if(o>0){t.moveTo(n[i++],n[i++]);for(var a=1;a<o;a++)t.lineTo(n[i++],n[i++])}}else for(i=0;i<n.length;){var s=n[i++],l=n[i++],u=n[i++],c=n[i++];if(t.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,f=(l+c)/2-(u-s)*r;t.quadraticCurveTo(h,f,u,c)}else t.lineTo(u,c)}},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++){var f=r[s++],p=r[s++];if(gl(u,c,f,p,o,t,e))return a}a++}else for(a=0,s=0;s<r.length;){u=r[s++],c=r[s++],f=r[s++],p=r[s++];if(i>0){var d=(u+f)/2-(c-p)*i,g=(c+p)/2-(f-u)*i;if(yl(u,c,d,g,f,p,o,t,e))return a}else if(gl(u,c,f,p,o,t,e))return a;a++}return-1},e}(Fl),xG=function(){function t(){this.group=new Ui}return t.prototype.isPersistent=function(){return!this._incremental},t.prototype.updateData=function(t){this.group.removeAll();var e=new _G({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new uf({silent:!0})),this.group.add(this._incremental)):this._incremental=null},t.prototype.incrementalUpdate=function(t,e){var n=new _G;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},t.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},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");if(i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null),!n){var o=mu(t);o.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(o.dataIndex=n+t.__startIndex)}))}},t.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t}(),bG=xG,wG={seriesType:"lines",plan:um(),reset:function(t){var e=t.coordinateSystem,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,f=[];for(c=i.start;c<i.end;c++){var p=t.getLineCoords(c,a);n&&(s[h++]=p);for(var d=0;d<p;d++)f=e.dataToPoint(a[d],!1,f),s[h++]=f[0],s[h++]=f[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),v=(p=t.getLineCoords(c,a),[]);if(n)for(var y=0;y<p;y++)v.push(e.dataToPoint(a[y]));else{v[0]=e.dataToPoint(a[0]),v[1]=e.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*m,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*m])}o.setItemLayout(c,v)}}}}},SG=wG,MG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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)&&(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)&&rD(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(),i=this._updateLineDraw(r,t);i.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.updateTransform=function(t,e,n){var r=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=SG.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,a=o.large;return n&&r===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new bG:new RN(i?r?yG:gG:r?pG:DN),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a,this.group.removeAll()),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.type="lines",e}(mm),CG=MG,TG="undefined"===typeof Uint32Array?Array:Uint32Array,IG="undefined"===typeof Float64Array?Array:Float64Array;function AG(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Z(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),G([n,t[0],t[1]])})))}var DG=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 v(e,t),e.prototype.init=function(e){e.data=e.data||[],AG(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(AG(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=Dt(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Dt(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],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),"number"===typeof t[0]){for(var n=t.length,r=new TG(n),i=new IG(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++],f=t[l++];i[o++]=h,i[o++]=f}}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 jM(["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(),i=r.getItemModel(t),o=i.get("name");if(o)return o;var a=i.get("fromName"),s=i.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Py("nameValue",{name:l.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",zlevel:0,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}(am),kG=DG;function LG(t){return t instanceof Array||(t=[t,t]),t}var OG={seriesType:"lines",reset:function(t){var e=LG(t.get("symbol")),n=LG(t.get("symbolSize")),r=t.getData();function i(t,e){var n=t.getItemModel(e),r=LG(n.getShallow("symbol",!0)),i=LG(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])}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?i:null}}},PG=OG;function EG(t){t.registerChartView(CG),t.registerSeriesModel(kG),t.registerLayout(SG),t.registerVisual(PG)}var RG=256,NG=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=W();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"),f=t.length;c.width=e,c.height=n;for(var p=0;p<f;++p){var d=t[p],g=d[0],v=d[1],y=d[2],m=r(y);h.globalAlpha=m,h.drawImage(a,g-u,v-u)}if(!c.width||!c.height)return c;var _=h.getImageData(0,0,c.width,c.height),x=_.data,b=0,w=x.length,S=this.minOpacity,M=this.maxOpacity,C=M-S;while(b<w){m=x[b+3]/256;var T=4*Math.floor(m*(RG-1));if(m>0){var I=o(m)?s:l;m>0&&(m=m*C+S),x[b++]=I[T],x[b++]=I[T+1],x[b++]=I[T+2],x[b++]=I[T+3]*m*256}else b+=4}return h.putImageData(_,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=W()),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}(),zG=NG;function BG(t,e,n){var r=t[1]-t[0];e=Z(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}));var i=e.length,o=0;return function(t){var r;for(r=o;r<i;r++){var a=e[r].interval;if(a[0]<=t&&t<=a[1]){o=r;break}}if(r===i)for(r=o-1;r>=0;r--){a=e[r].interval;if(a[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}function VG(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function FG(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var GG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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.group.removeAll(),this._incrementalDisplayable=null;var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):FG(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&&(FG(i)?this.render(e,n,r):this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0))},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var o,a,s,l,u=t.coordinateSystem;if(iD(u,"cartesian2d")){var c=u.getAxis("x"),h=u.getAxis("y");0,o=c.getBandWidth(),a=h.getBandWidth(),s=c.scale.getExtent(),l=h.scale.getExtent()}for(var f=this.group,p=t.getData(),d=t.getModel(["emphasis","itemStyle"]).getItemStyle(),g=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),y=Kf(t),m=t.get(["emphasis","focus"]),_=t.get(["emphasis","blurScope"]),x=iD(u,"cartesian2d")?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],b=n;b<r;b++){var w=void 0,S=p.getItemVisual(b,"style");if(iD(u,"cartesian2d")){var M=p.get(x[0],b),C=p.get(x[1],b);if(isNaN(p.get(x[2],b))||M<s[0]||M>s[1]||C<l[0]||C>l[1])continue;var T=u.dataToPoint([M,C]);w=new ru({shape:{x:Math.floor(Math.round(T[0])-o/2),y:Math.floor(Math.round(T[1])-a/2),width:Math.ceil(o),height:Math.ceil(a)},style:S})}else{if(isNaN(p.get(x[1],b)))continue;w=new ru({z2:1,shape:u.dataToRect([p.get(x[0],b)]).contentShape,style:S})}var I=p.getItemModel(b);if(p.hasItemOption){var A=I.getModel("emphasis");d=A.getModel("itemStyle").getItemStyle(),g=I.getModel(["blur","itemStyle"]).getItemStyle(),v=I.getModel(["select","itemStyle"]).getItemStyle(),m=A.get("focus"),_=A.get("blurScope"),y=Kf(I)}var D=t.getRawValue(b),k="-";D&&null!=D[2]&&(k=D[2]+""),Zf(w,y,{labelFetcher:t,labelDataIndex:b,defaultOpacity:S.opacity,defaultText:k}),w.ensureState("emphasis").style=d,w.ensureState("blur").style=g,w.ensureState("select").style=v,mc(w,m,_),w.incremental=i,i&&(w.states.emphasis.hoverLayer=!0),f.add(w),p.setItemGraphicEl(b,w)}},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 zG;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),f=Math.min(l.width+l.x,r.getWidth()),p=Math.min(l.height+l.y,r.getHeight()),d=f-c,g=p-h,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],y=a.mapArray(v,(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?VG(m,n.option.range):BG(m,n.getPieceList(),n.option.selected);s.update(y,d,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var x=new Yl({style:{width:d,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(mm),jG=GG,HG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.getInitialData=function(t,e){return iC(this.getSource(),this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Xg.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",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(am),WG=HG;function UG(t){t.registerChartView(jG),t.registerSeriesModel(WG)}var XG=["itemStyle","borderWidth"],$G=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],YG=new th,qG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:$G[+l],categoryDim:$G[1-+l]};return i.diff(o).add((function(t){if(i.hasValue(t)){var e=sj(i,t),n=ZG(i,t,e,c),o=cj(i,c,n);i.setItemGraphicEl(t,o),r.add(o),vj(o,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=sj(i,t),s=ZG(i,t,a,c),l=pj(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?hj(n,c,s):n=cj(i,c,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),vj(n,c,s)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&fj(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),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){fj(r,mu(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(mm);function ZG(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"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),f={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:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};KG(n,o,i,r,f),QG(t,e,i,o,a,f.boundingLength,f.pxSign,c,r,f),tj(n,f.symbolScale,u,r,f);var p=f.symbolSize,d=n.get("symbolOffset");return it(d)&&(d=[lo(d[0],p[0]),lo(d[1],p[1])]),ej(n,p,i,o,a,d,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function KG(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(it(s)){var h=[JG(l,s[0])-u,JG(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?JG(l,s)-u:e?r.coordSysExtent[a.index][c]-u:n[a.wh];i.boundingLength=o,e&&(i.repeatCutLength=n[a.wh]),i.pxSign=o>0?1:o<0?-1:0}function JG(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function QG(t,e,n,r,i,o,a,s,l,u){var c,h=l.valueDim,f=l.categoryDim,p=Math.abs(n[f.wh]),d=t.getItemVisual(e,"symbolSize");c=it(d)?d.slice():null==d?["100%","100%"]:[d,d],c[f.index]=lo(c[f.index],p),c[h.index]=lo(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}function tj(t,e,n,r,i){var o=t.get(XG)||0;o&&(YG.attr({scaleX:e[0],scaleY:e[1],rotation:n}),YG.updateTransform(),o/=YG.getLineScale(),o*=e[r.valueDim.index]),i.valueLineWidth=o}function ej(t,e,n,r,i,o,a,s,l,u,c,h){var f=c.categoryDim,p=c.valueDim,d=h.pxSign,g=Math.max(e[p.index]+s,0),v=g;if(r){var y=Math.abs(l),m=yt(t.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var x=lo(m,e[p.index]),b=Math.max(g+2*x,0),w=_?0:2*x,S=Ao(r),M=S?r:yj((y+w)/b),C=y-M*g;x=C/2/(_?M:M-1),b=g+2*x,w=_?0:2*x,S||"fixed"===r||(M=u?yj((Math.abs(u)+w)/b):0),v=M*b-w,h.repeatTimes=M,h.symbolMargin=x}var T=d*(v/2),I=h.pathPosition=[];I[f.index]=n[f.wh]/2,I[p.index]="start"===a?T:"end"===a?l-T:l/2,o&&(I[0]+=o[0],I[1]+=o[1]);var A=h.bundlePosition=[];A[f.index]=n[f.xy],A[p.index]=n[p.xy];var D=h.barRectShape=j({},n);D[p.wh]=d*Math.max(Math.abs(n[p.wh]),Math.abs(I[p.index]+T)),D[f.wh]=n[f.wh];var k=h.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=c.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function nj(t){var e=t.symbolPatternSize,n=px(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function rj(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(dj(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?gj(t,null,d(c),n,r):gj(t,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(t)})),c++}));c<u;c++){var f=nj(n);f.__pictorialAnimationIndex=c,f.__pictorialRepeatTimes=u,i.add(f);var p=d(c);gj(f,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function d(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 ij(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?gj(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=nj(n),i.add(o),gj(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 oj(t,e,n){var r=j({},e.barRectShape),i=t.__pictorialBarRect;i?gj(i,null,{shape:r},e,n):(i=t.__pictorialBarRect=new ru({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(i))}function aj(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=j({},n.clipShape),a=e.valueDim,s=n.animationModel,u=n.dataIndex;if(i)If(i,{shape:o},s,u);else{o[a.wh]=0,i=new ru({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var c={};c[a.wh]=n.clipShape[a.wh],l[r?"updateProps":"initProps"](i,{shape:c},s,u)}}}function sj(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=lj,n.isAnimationEnabled=uj,n}function lj(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function uj(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function cj(t,e,n,r){var i=new Ui,o=new Ui;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?rj(i,e,n):ij(i,e,n),oj(i,n,r),aj(i,e,n,r),i.__pictorialShapeStr=pj(t,n),i.__pictorialSymbolMeta=n,i}function hj(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;If(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?rj(t,e,n,!0):ij(t,e,n,!0),oj(t,n,!0),aj(t,e,n,!0)}function fj(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];dj(r,(function(t){o.push(t)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),q(o,(function(t){Df(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function pj(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function dj(t,e,n){q(t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function gj(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&l[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function vj(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"),f=o.get("scale");dj(t,(function(t){if(t instanceof Yl){var e=t.style;t.useStyle(j({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,f&&(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)],d=t.__pictorialBarRect;Zf(d,Kf(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:DA(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),mc(t,c,h)}function yj(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var mj=qG,_j=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 v(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=Tp(AD.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(AD),xj=_j;function bj(t){t.registerChartView(mj),t.registerSeriesModel(xj),t.registerLayout(rt(EC,"pictorialBar"))}var wj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return v(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 lM(this._layersSeries||[],a,c,c),f=[];function p(e,n,s){var l=i._layers;if("remove"!==e){for(var u,c,h=[],p=[],d=a[n].indices,g=0;g<d.length;g++){var v=r.getItemLayout(d[g]),y=v.x,m=v.y0,_=v.y;h.push(y,m),p.push(y,m+_),u=r.getItemVisual(d[g],"style")}var x=r.getItemLayout(d[0]),b=t.getModel("label"),w=b.get("margin"),S=t.getModel("emphasis");if("add"===e){var M=f[n]=new Ui;c=new tD({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M.add(c),o.add(M),t.isAnimationEnabled()&&c.setClipPath(Sj(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{M=l[s];c=M.childAt(0),o.add(M),f[n]=M,If(c,{shape:{points:h,stackedOnPoints:p}},t)}Zf(c,Kf(t),{labelDataIndex:d[g-1],defaultText:r.getName(d[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var C=c.getTextContent();C&&(C.x=x.x-w,C.y=x.y0+x.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),wc(c,t),mc(c,S.get("focus"),S.get("blurScope"))}else o.remove(l[n])}h.add(nt(p,this,"add")).update(nt(p,this,"update")).remove(nt(p,this,"remove")).execute(),this._layersSeries=a,this._layers=f},e.type="themeRiver",e}(mm);function Sj(t,e,n){var r=new ru({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Af(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}var Mj=wj,Cj=2,Tj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.useColorPaletteOnData=!0,n}return v(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xk(nt(this.getData,this),nt(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},r=fa(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",aa).models[0],r=n.get("type"),i=J(t.data,(function(t){return void 0!==t[2]})),o=this.fixData(i||[]),a=[],s=this.nameMap=At(),l=0,u=0;u<o.length;++u)a.push(o[u][Cj]),s.get(o[u][Cj])||(s.set(o[u][Cj],l),l++);var c=$M(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:hM(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),h=new jM(c,this);return h.initData(o),h},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=fa(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){it(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,f=0;f<h;++f){var p=i.get(t[0],o[l].indices[f]),d=Math.abs(p-e);d<=u&&(r=p,u=d,c=o[l].indices[f])}a.push(c)}return{dataIndices:a,nestestValue:r}},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=r.getName(t),o=r.get(r.mapDimension("value"),t);return Py("nameValue",{name:i,value:o})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(am),Ij=Tj;function Aj(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();if(r.boundaryGap=o,"horizontal"===a.orient){o[0]=lo(o[0],i.height),o[1]=lo(o[1],i.height);var s=i.height-o[0]-o[1];Dj(e,t,s)}else{o[0]=lo(o[0],i.width),o[1]=lo(o[1],i.width);var l=i.width-o[0]-o[1];Dj(e,t,l)}e.setLayout("layoutInfo",r)}))}function Dj(t,e,n){if(t.count())for(var r,i=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=Z(o,(function(e){return Z(e.indices,(function(e){var n=i.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),u=kj(l),c=u.y0,h=n/u.max,f=o.length,p=o[0].indices.length,d=0;d<p;++d){r=c[d]*h,t.setItemLayout(o[0].indices[d],{layerIndex:0,x:l[0][d][0],y0:r,y:l[0][d][1]*h});for(var g=1;g<f;++g)r+=l[g-1][d][1]*h,t.setItemLayout(o[g].indices[d],{layerIndex:g,x:l[g][d][0],y0:r,y:l[g][d][1]*h})}}function kj(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}}function Lj(t){t.registerChartView(Mj),t.registerSeriesModel(Ij),t.registerLayout(Aj),t.registerProcessor(lk("themeRiver"))}var Oj=2,Pj=4,Ej=function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=Oj,o.textConfig={inside:!0},mu(o).seriesIndex=n.seriesIndex;var a=new yu({z2:Pj,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,r,i),o}return v(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;mu(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=j({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=Kx(h,i));var f=dk(a.getModel("itemStyle"),u);j(u,f),q(Cu,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=dk(n,u);r&&(e.shape=r)})),t?(o.setShape(u),o.shape.r=l.r0,If(o,{shape:{r:l.r}},n,e.dataIndex)):If(o,{shape:u},n),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 d=s.get("focus"),g="ancestor"===d?e.getAncestorsIndices():"descendant"===d?e.getDescendantIndices():d;mc(this,g,s.get("blurScope"))},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,f=r.get("minAngle")/180*Math.PI,p=r.get("show")&&!(null!=f&&Math.abs(o)<f);function d(t,e){var n=t.get(e);return null==n?r.get(e):n}c.ignore=!p,q(Tu,(function(r){var o="normal"===r?n.getModel("label"):n.getModel([r,"label"]),f="normal"===r,p=f?c:c.ensureState(r),g=t.getFormattedLabel(h,r);f&&(g=g||e.node.name),p.style=Jf(o,{},null,"normal"!==r,!0),g&&(p.style.text=g);var v=o.get("show");null==v||f||(p.ignore=!v);var y,m=d(o,"position"),_=f?u:u.states[r],x=_.style.fill;_.textConfig={outsideFill:"inherit"===o.get("color")?x:null,inside:"outside"!==m};var b=d(o,"distance")||0,w=d(o,"align");"outside"===m?(y=i.r+b,w=a>Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(y=i.r0+b,a>Math.PI/2&&(w="right")):"right"===w&&(y=i.r-b,a>Math.PI/2&&(w="left")):(y=(i.r+i.r0)/2,w="center"),p.style.align=w,p.style.verticalAlign=d(o,"verticalAlign")||"middle",p.x=y*s+i.cx,p.y=y*l+i.cy;var S=d(o,"rotate"),M=0;"radial"===S?(M=-a,M<-Math.PI/2&&(M+=Math.PI)):"tangential"===S?(M=Math.PI/2-a,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):"number"===typeof S&&(M=S*Math.PI/180),p.rotation=M})),c.dirtyStyle()},e}(xh),Rj=Ej,Nj="sunburstRootToNode",zj="sunburstHighlight",Bj="sunburstUnhighlight";function Vj(t){t.registerAction({type:Nj,update:"updateView"},(function(t,e){function n(e,n){var r=QP(t,[Nj],e);if(r){var i=e.getViewRoot();i&&(t.direction=eE(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:zj,update:"none"},(function(t,e,n){function r(e){var n=QP(t,[zj],e);n&&(t.dataIndex=n.node.dataIndex)}t=j({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},r),n.dispatchAction(j(t,{type:"highlight"}))})),t.registerAction({type:Bj,update:"updateView"},(function(t,e,n){t=j({},t),n.dispatchAction(j(t,{type:"downplay"}))}))}var Fj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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 f(t,e){function n(t){return t.getId()}function r(n,r){var i=null==n?null:t[n],o=null==r?null:e[r];p(i,o)}0===t.length&&0===e.length||new lM(e,t,n,n).add(r).update(r).remove(rt(r,null)).execute()}function p(r,i){if(u||!r||r.getValue()||(r=null),r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),o.setItemGraphicEl(r.dataIndex,i.piece)):d(i);else if(r){var s=new Rj(r,t,e,n);l.add(s),o.setItemGraphicEl(r.dataIndex,s)}}function d(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function g(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,t,e,n):(i.virtualPiece=new Rj(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)}f(c,h),g(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,r=t.seriesModel.getViewRoot();r.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){var s=o.get("target",!0)||"_blank";Od(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Nj,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,o=t[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},e.type="sunburst",e}(mm),Gj=Fj,jj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return v(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};Hj(n);var r=Z(t.levels||[],(function(t){return new bp(t,this,e)}),this),i=JP.createTree(n,this,o);function o(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=nE(r,this),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(){gE(this)},e.type="series.sunburst",e.defaultOption={zlevel:0,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:[],levels:[],sort:"desc"},e}(am);function Hj(t){var e=0;q(t.children,(function(t){Hj(t);var n=t.value;it(n)&&(n=n[0]),e+=n}));var n=t.value;it(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),it(t.value)?t.value[0]=n:t.value=n}var Wj=jj,Uj=Math.PI/180;function Xj(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),r=t.get("radius");it(r)||(r=[0,r]),it(e)||(e=[e,e]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=lo(e[0],i),l=lo(e[1],o),u=lo(r[0],a/2),c=lo(r[1],a/2),h=-t.get("startAngle")*Uj,f=t.get("minAngle")*Uj,p=t.getData().tree.root,d=t.getViewRoot(),g=d.depth,v=t.get("sort");null!=v&&$j(d,v);var y=0;q(d.children,(function(t){!isNaN(t.getValue())&&y++}));var m=d.getValue(),_=Math.PI/(m||y)*2,x=d.depth>0,b=d.height-(x?-1:1),w=(c-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),C=S?1:-1,T=function(t,e){if(t){var n=e;if(t!==p){var r=t.getValue(),i=0===m&&M?_:r*_;i<f&&(i=f),n=e+C*i;var o=t.depth-g-(x?-1:1),c=u+w*o,h=u+w*(o+1),d=t.getModel();null!=d.get("r0")&&(c=lo(d.get("r0"),a/2)),null!=d.get("r")&&(h=lo(d.get("r"),a/2)),t.setLayout({angle:i,startAngle:e,endAngle:n,clockwise:S,cx:s,cy:l,r0:c,r:h})}if(t.children&&t.children.length){var v=0;q(t.children,(function(t){v+=T(t,e+v)}))}return n-e}};if(x){var I=u,A=u+w,D=2*Math.PI;p.setLayout({angle:D,startAngle:h,endAngle:h+D,clockwise:S,cx:s,cy:l,r0:I,r:A})}T(d,h)}))}function $j(t,e){var n=t.children||[];t.children=Yj(n,e),n.length&&q(t.children,(function(t){$j(t,e)}))}function Yj(t,e){if("function"===typeof e){var n=Z(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)})),Z(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}))}function qj(t){var e={};function n(t,n,r){var i=t;while(i&&i.depth>1)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&"string"===typeof o&&(o=Bn(o,(t.depth-1)/(r-1)*.5)),o}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),r=e.tree;r.eachNode((function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(i,t,r.root.height));var s=e.ensureUniqueItemVisual(i.dataIndex,"style");j(s,a)}))}))}function Zj(t){t.registerChartView(Gj),t.registerSeriesModel(Wj),t.registerLayout(rt(Xj,"sunburst")),t.registerProcessor(rt(lk,"sunburst")),t.registerVisual(qj),Vj(t)}function Kj(t,e){return e=e||[0,0],Z(["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 Jj(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:nt(Kj,t)}}}function Qj(t,e){return e=e||[0,0],Z([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 tH(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:nt(Qj,t)}}}function eH(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 nH(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:nt(eH,t)}}}function rH(t,e){return e=e||[0,0],Z(["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",o=this[i](),a=e[r],s=t[r]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function iH(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:nt(rH,t)}}}function oH(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 aH(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||Lt(t,"text")))}function sH(t,e,n){var r,i,o,a=t;if("text"===e)o=a;else{o={},Lt(a,"text")&&(o.text=a.text),Lt(a,"rich")&&(o.rich=a.rich),Lt(a,"textFill")&&(o.fill=a.textFill),Lt(a,"textStroke")&&(o.stroke=a.textStroke),i={type:"text",style:o,silent:!0},r={};var s=Lt(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),Lt(a,"textPosition")&&(r.position=a.textPosition),Lt(a,"textOffset")&&(r.offset=a.textOffset),Lt(a,"textRotation")&&(r.rotation=a.textRotation),Lt(a,"textDistance")&&(r.distance=a.textDistance)}return lH(o,t),q(o.rich,(function(t){lH(t,t)})),{textConfig:r,textContent:i}}function lH(t,e){e&&(e.font=e.textFont||e.font,Lt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Lt(e,"textAlign")&&(t.align=e.textAlign),Lt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Lt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Lt(e,"textWidth")&&(t.width=e.textWidth),Lt(e,"textHeight")&&(t.height=e.textHeight),Lt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Lt(e,"textPadding")&&(t.padding=e.textPadding),Lt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Lt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Lt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Lt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Lt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Lt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Lt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function uH(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";cH(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,q(e.rich,(function(t){cH(t,t)})),r}function cH(t,e){e&&(Lt(e,"fill")&&(t.textFill=e.fill),Lt(e,"stroke")&&(t.textStroke=e.fill),Lt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Lt(e,"font")&&(t.font=e.font),Lt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Lt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Lt(e,"fontSize")&&(t.fontSize=e.fontSize),Lt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Lt(e,"align")&&(t.textAlign=e.align),Lt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Lt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Lt(e,"width")&&(t.textWidth=e.width),Lt(e,"height")&&(t.textHeight=e.height),Lt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Lt(e,"padding")&&(t.textPadding=e.padding),Lt(e,"borderColor")&&(t.textBorderColor=e.borderColor),Lt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Lt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Lt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Lt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Lt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Lt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Lt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Lt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Lt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Lt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var hH=dl.CMD,fH=2*Math.PI,pH=["x","y"],dH=["width","height"],gH=[];function vH(t,e){return Math.abs(t-e)<1e-5}function yH(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,f=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function d(t,n,r,i){vH(t,r)&&vH(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),f=Math.cos(n),p=Math.sin(n),d=c*o+r,g=h*a+i,v=f*o+r,y=p*a+i,m=o*l*u,_=a*l*u;e.push(d-m*h,g+_*c,v+m*p,y-_*f,v,y)}for(var v=0;v<s;){var y=a[v++],m=1===v;switch(m&&(u=a[v],c=a[v+1],h=u,f=c,y!==hH.L&&y!==hH.C&&y!==hH.Q||(e=[h,f])),y){case hH.M:u=h=a[v++],c=f=a[v++],p(h,f);break;case hH.L:n=a[v++],r=a[v++],d(u,c,n,r),u=n,c=r;break;case hH.C:e.push(a[v++],a[v++],a[v++],a[v++],u=a[v++],c=a[v++]);break;case hH.Q:n=a[v++],r=a[v++],i=a[v++],o=a[v++],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 hH.A:var _=a[v++],x=a[v++],b=a[v++],w=a[v++],S=a[v++],M=a[v++]+S;v+=1;var C=!a[v++];n=Math.cos(S)*b+_,r=Math.sin(S)*w+x,m?(h=n,f=r,p(h,f)):d(u,c,n,r),u=Math.cos(M)*b+_,c=Math.sin(M)*w+x;for(var T=(C?-1:1)*Math.PI/2,I=S;C?I>M:I<M;I+=T){var A=C?Math.max(I+T,M):Math.min(I+T,M);g(I,A,_,x,b,w)}break;case hH.R:h=u=a[v++],f=c=a[v++],n=h+a[v++],r=f+a[v++],p(n,f),d(n,f,n,r),d(n,r,h,r),d(h,r,h,f),d(h,f,n,f);break;case hH.Z:e&&d(u,c,h,f),u=h,c=f;break}}return e&&e.length>2&&l.push(e),l}function mH(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=n<r?t:e,o=Math.min(n,r),a=Math.abs(r-n)/6,s=(o-2)/6,l=Math.ceil(a/s)+1,u=[i[0],i[1]],c=a,h=[],f=[],p=2;p<o;){var d=i[p-2],g=i[p-1],v=i[p++],y=i[p++],m=i[p++],_=i[p++],x=i[p++],b=i[p++];if(c<=0)u.push(v,y,m,_,x,b);else{for(var w=Math.min(c,l-1)+1,S=1;S<=w;S++){var M=S/w;Ss(d,v,m,x,M,h),Ss(g,y,_,b,M,f),d=h[3],g=f[3],u.push(h[1],f[1],h[2],f[2],d,g),v=h[5],y=f[5],m=h[6],_=f[6]}c-=w-1}}return i===t?[u,e]:[t,u]}function _H(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 xH(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?(n=mH(l,u),c=n[0],h=n[1],r=c,i=h):(h=_H(i||l,l),c=l):(c=_H(r||u,u),h=u),o.push(c),a.push(h)}return[o,a]}function bH(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 wH(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,f=0;f<s;f+=2){var p=0===f?c:(c+f-2)%l+2,d=t[p]-n[0],g=t[p+1]-n[1],v=e[f]-r[0],y=e[f+1]-r[1],m=v-d,_=y-g;h+=m*m+_*_}h<o&&(o=h,a=u)}return a}function SH(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 MH(t,e,n,r){for(var i,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=bH(s),c=bH(l);null==i&&(i=u[2]<0!==c[2]<0);var h=[],f=[],p=0,d=1/0,g=[],v=s.length;i&&(s=SH(s));for(var y=6*wH(s,l,u,c),m=v-2,_=0;_<m;_+=2){var x=(y+_)%m+2;h[_+2]=s[x]-u[0],h[_+3]=s[x+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],n>0)for(var b=r/n,w=-r/2;w<=r/2;w+=b){var S=Math.sin(w),M=Math.cos(w),C=0;for(_=0;_<s.length;_+=2){var T=h[_],I=h[_+1],A=l[_]-c[0],D=l[_+1]-c[1],k=A*M-D*S,L=A*S+D*M;g[_]=k,g[_+1]=L;var O=k-T,P=L-I;C+=O*O+P*P}if(C<d){d=C,p=w;for(var E=0;E<g.length;E++)f[E]=g[E]}}else for(var R=0;R<v;R+=2)f[R]=l[R]-c[0],f[R+1]=l[R+1]-c[1];o.push({from:h,to:f,fromCp:u,toCp:c,rotation:-p})}return o}function CH(t,e,n){var r,i;if(!t||!e)return e;!t.path&&t.createPathProxy(),r=t.path,r.beginPath(),t.buildPath(r,t.shape),!e.path&&e.createPathProxy(),i=e.path,i===r&&(i=new dl(!1)),i.beginPath(),kH(e)?e.__oldBuildPath(i,e.shape):e.buildPath(i,e.shape);var o=xH(yH(r),yH(i)),a=o[0],s=o[1],l=MH(a,s,10,Math.PI);IH(e,l,0);var u=n&&n.done,c=n&&n.aborted,h=n&&n.during;return e.animateTo({__morphT:1},H({during:function(t){e.dirtyShape(),h&&h(t)},done:function(){DH(e),e.createPathProxy(),e.dirtyShape(),u&&u()},aborted:function(){c&&c()}},n)),e}function TH(t){for(var e=this.__morphingData,n=this.__morphT,r=1-n,i=[],o=0;o<e.length;o++){var a=e[o],s=a.from,l=a.to,u=a.rotation*n,c=a.fromCp,h=a.toCp,f=Math.sin(u),p=Math.cos(u);ne(i,c,h,n);for(var d=0;d<s.length;d+=2){var g=s[d],v=s[d+1],y=l[d],m=l[d+1],_=g*r+y*n,x=v*r+m*n;gH[d]=_*p-x*f+i[0],gH[d+1]=_*f+x*p+i[1]}for(d=0;d<s.length;)0===d&&t.moveTo(gH[d++],gH[d++]),t.bezierCurveTo(gH[d++],gH[d++],gH[d++],gH[d++],gH[d++],gH[d++])}}function IH(t,e,n){if(kH(t))AH(t,e,n);else{var r=t;r.__oldBuildPath=r.buildPath,r.buildPath=TH,AH(r,e,n)}}function AH(t,e,n){t.__morphingData=e,t.__morphT=n}function DH(t){kH(t)&&(t.buildPath=t.__oldBuildPath,t.__oldBuildPath=t.__morphingData=null)}function kH(t){return null!=t.__oldBuildPath}function LH(t){return!!t.__combiningSubList}function OH(t){return kH(t)||LH(t)}function PH(t,e,n,r){for(var i=[],o=0,a=0;a<t.length;a++){var s=t[a];if(LH(s)){for(var l=s.__combiningSubList,u=0;u<l.length;u++)i.push(l[u]);o+=l.length}else i.push(s),o++}if(o){var c=n?n.dividingMethod:null,h=jH(e,o,c);wt(h.length===o);var f=n&&n.done,p=n&&n.aborted,d=n&&n.during,g=0,v=!1,y=H({during:function(t){d&&d(t)},done:function(){g++,g===h.length&&(RH(e),f&&f())},aborted:function(){v||(v=!0,p&&p())}},n);for(a=0;a<o;a++){var m=i[a],_=h[a];r&&r(e,_,!0),CH(m,_,y)}return EH(e,h),{fromIndividuals:i,toIndividuals:h,count:o}}}function EH(t,e){if(LH(t))NH(t,e);else{var n=t;NH(n,e),n.__oldAddSelfToZr=t.addSelfToZr,n.__oldRemoveSelfFromZr=t.removeSelfFromZr,n.addSelfToZr=zH,n.removeSelfFromZr=VH,n.__oldBuildPath=n.buildPath,n.buildPath=Ot,n.childrenRef=FH}}function RH(t){if(LH(t)){var e=t;NH(e,null),e.addSelfToZr=e.__oldAddSelfToZr,e.removeSelfFromZr=e.__oldRemoveSelfFromZr,e.buildPath=e.__oldBuildPath,e.childrenRef=e.__combiningSubList=e.__oldAddSelfToZr=e.__oldRemoveSelfFromZr=e.__oldBuildPath=null}}function NH(t,e){if(t.__combiningSubList!==e){if(BH(t,"removeSelfFromZr"),t.__combiningSubList=e,e)for(var n=0;n<e.length;n++)e[n].parent=t;BH(t,"addSelfToZr")}}function zH(t){this.__oldAddSelfToZr(t),BH(this,"addSelfToZr")}function BH(t,e){var n=t.__combiningSubList,r=t.__zr;if(n&&r)for(var i=0;i<n.length;i++){var o=n[i];o[e](r)}}function VH(t){this.__oldRemoveSelfFromZr(t);for(var e=this.__combiningSubList,n=0;n<e.length;n++){var r=e[n];r.removeSelfFromZr(t)}}function FH(){return this.__combiningSubList}function GH(t,e,n,r){var i,o=e.length,a=n?n.dividingMethod:null,s=!1;if(LH(t)){var l=t.__combiningSubList;l.length===o?i=l:(i=jH(t,o,a),s=!0)}else i=jH(t,o,a),s=!0;wt(i.length===o);for(var u=0;u<o;u++)s&&r&&r(t,i[u],!1),CH(i[u],e[u],n);return{fromIndividuals:i,toIndividuals:e,count:o}}function jH(t,e,n){return"duplicate"===n?WH(t,e):HH(t,e)}function HH(t,e){var n=[];if(e<=0)return n;if(1===e)return WH(t,e);if(t instanceof ru)for(var r=t.shape,i=r.height>r.width?1:0,o=dH[i],a=pH[i],s=r[o]/e,l=r[a],u=0;u<e;u++,l+=s){var c={x:r.x,y:r.y,width:r.width,height:r.height};c[a]=l,c[o]=u<e-1?s:r[a]+r[o]-l;var h=new ru({shape:c});n.push(h)}else{if(!(t instanceof xh))return WH(t,e);r=t.shape;var f=r.clockwise,p=r.startAngle,d=r.endAngle,g=UH(p,r.endAngle,f),v=(g-p)/e,y=p;for(u=0;u<e;u++,y+=v){h=new xh({shape:{cx:r.cx,cy:r.cy,r:r.r,r0:r.r0,clockwise:f,startAngle:y,endAngle:u===e-1?d:y+v}});n.push(h)}}return n}function WH(t,e){var n=[];if(e<=0)return n;for(var r=t.constructor,i=0;i<e;i++){var o=new r({shape:V(t.shape)});n.push(o)}return n}function UH(t,e,n){return e+fH*Math[n?"ceil":"floor"]((t-e)/fH)}var XH=na(),$H={x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1},YH=(tt($H).join(", "),{color:"fill",borderColor:"stroke"}),qH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ZH="emphasis",KH="normal",JH="blur",QH="select",tW=[KH,ZH,JH,QH],eW={normal:["itemStyle"],emphasis:[ZH,"itemStyle"],blur:[JH,"itemStyle"],select:[QH,"itemStyle"]},nW={normal:["label"],emphasis:[ZH,"label"],blur:[JH,"label"],select:[QH,"label"]},rW="e\0\0",iW={normal:{},emphasis:{},blur:{},select:{}},oW={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},aW=new si,sW={cartesian2d:Jj,geo:tH,singleAxis:nH,polar:iH,calendar:oH},lW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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 iC(this.getSource(),this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=XH(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},e}(am),uW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n,r){var i=this._data,o=t.getData(),a=this.group,s=OW(t,o,e,n);i||a.removeAll();var l=t.__transientTransitionOpt;if(!l||null!=l.from&&null!=l.to){var u=new JW(t,l),c=l?"multiple":"oneToOne";new lM(i?i.getIndices():[],o.getIndices(),cW(i,c,l&&l.from),cW(o,c,l&&l.to),null,c).add((function(e){EW(n,null,e,s(e,r),t,a,o,null)})).remove((function(e){$W(i.getItemGraphicEl(e),t,a)})).update((function(e,l){u.reset("oneToOne");var c=i.getItemGraphicEl(l);u.findAndAddFrom(c),u.hasFrom()&&(KW(c,a),c=null),EW(n,c,e,s(e,r),t,a,o,u),u.applyMorphing()})).updateManyToOne((function(e,l){u.reset("manyToOne");for(var c=0;c<l.length;c++){var h=i.getItemGraphicEl(l[c]);u.findAndAddFrom(h),KW(h,a)}EW(n,null,e,s(e,r),t,a,o,u),u.applyMorphing()})).updateOneToMany((function(e,l){u.reset("oneToMany");var c=e.length,h=i.getItemGraphicEl(l);u.findAndAddFrom(h),KW(h,a);for(var f=0;f<c;f++)EW(n,null,e[f],s(e[f],r),t,a,o,u);u.applyMorphing()})).execute()}else i&&i.each((function(e){$W(i.getItemGraphicEl(e),t,a)})),o.each((function(e){EW(n,null,e,s(e,r),t,a,o,null)}));var h=t.get("clip",!0)?rD(t.coordinateSystem,!1,t):null;h?a.setClipPath(h):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=OW(e,o,n,r);function s(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var l=t.start;l<t.end;l++){var u=EW(null,null,l,a(l,i),e,this.group,o,null);u&&u.traverse(s)}},e.prototype.filterForExposedEvent=function(t,e,n,r){var i=e.element;if(null==i||n.name===i)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===i)return!0;return!1},e.type="custom",e}(mm);function cW(t,e,n){if(t){if("oneToOne"===e)return function(e,n){return t.getId(n)};var r=t.getDimension(n),i=t.getDimensionInfo(r);if(!i){var o="";0,Lg(o)}var a=i.ordinalMeta;return function(e,n){var i=t.get(r,n);return a&&(i=a.categories[i]),null==i||vt(i)?e+"":"_ec_"+i}}}function hW(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=YW(r);e=mf(o,null,i,r.layout||"center"),XH(e).customPathData=o}else if("image"===n)e=new Yl({}),XH(e).customImagePath=t.style.image;else if("text"===n)e=new yu({});else if("group"===n)e=new Ui;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=yf(n);if(!a){var s="";0,Lg(s)}e=new a}return XH(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function fW(t,e,n,r,i,o,a,s,l,u){var c={},h={},f=e.isGroup?null:e;!n&&gW("shape",e,null,i,c,l),vW("shape",i,h),!n&&gW("extra",e,null,i,c,l),vW("extra",i,h),!n&&yW(e,null,i,c,l),mW(i,h);var p=a&&a.normal.cfg;if(p&&e.setTextConfig(p),"text"===e.type&&o){var d=o;Lt(d,"textFill")&&(d.fill=d.textFill),Lt(d,"textStroke")&&(d.stroke=d.textStroke)}if(o){var g=void 0,v=ZW(e)?o.decal:null;t&&v&&(v.dirty=!0,g=Kx(v,t)),o.__decalPattern=g}return!n&&_W(e,null,i,o,c,l),f&&Lt(i,"invisible")&&(f.invisible=i.invisible),n||(pW(e,h,o),dW(e,r,i,s,c,l)),Lt(i,"silent")&&(e.silent=i.silent),Lt(i,"ignore")&&(e.ignore=i.ignore),u||Lt(i,"info")&&(XH(e).info=i.info),o?e.dirty():e.markRedraw(),n?h:null}function pW(t,e,n){var r=t.isGroup?null:t;if(r&&n){var i=n.__decalPattern,o=void 0;i&&(o=n.decal,n.decal=i),r.useStyle(n),i&&(n.decal=o);for(var a=r.animators,s=0;s<a.length;s++){var l=a[s];"style"===l.targetName&&l.changeTarget(r.style)}}e&&t.attr(e)}function dW(t,e,n,r,i,o){if(i){var a=n.during;XH(t).userDuring=a;var s=a?nt(CW,{el:t,userDuring:a}):null,l={dataIndex:e,isFrom:!0,during:s};o?Af(t,i,r,l):If(t,i,r,l)}}function gW(t,e,n,r,i,o){var a=r[t];if(a){var s,l=e[t],u=a.enterFrom;if(o&&u){!s&&(s=i[t]={});for(var c=tt(u),h=0;h<c.length;h++){var f=c[h];s[f]=u[f]}}if(!o&&l&&(null==n||"shape"!==t))if(a.transition){!s&&(s=i[t]={});var p=Eo(a.transition);for(h=0;h<p.length;h++){f=p[h];var d=l[f];0,s[f]=d}}else if(U(r.transition,t)>=0){!s&&(s=i[t]={});var g=tt(l);for(h=0;h<g.length;h++){f=g[h],d=l[f];bW(a[f],d)&&(s[f]=d)}}var v=a.leaveTo;if(v){var y=wW(e),m=y[t]||(y[t]={}),_=tt(v);for(h=0;h<_.length;h++){f=_[h];m[f]=v[f]}}}}function vW(t,e,n){var r=e[t];if(r)for(var i=n[t]={},o=tt(r),a=0;a<o.length;a++){var s=o[a];i[s]=sr(r[s])}}function yW(t,e,n,r,i){var o=n.enterFrom;if(i&&o)for(var a=tt(o),s=0;s<a.length;s++){var l=a[s];0,r[l]=o[l]}if(!i)if(e){var u=xW(e,t);LW(r,"x",u),LW(r,"y",u),LW(r,"scaleX",u),LW(r,"scaleY",u),LW(r,"originX",u),LW(r,"originY",u),LW(r,"rotation",u)}else if(n.transition){var c=Eo(n.transition);for(s=0;s<c.length;s++){l=c[s];if("style"!==l&&"shape"!==l&&"extra"!==l){var h=t[l];0,r[l]=h}}}else LW(r,"x",t),LW(r,"y",t);var f=n.leaveTo;if(f){var p=wW(t),d=tt(f);for(s=0;s<d.length;s++){l=d[s];0,p[l]=f[l]}}}function mW(t,e){DW(t,e,"position"),DW(t,e,"scale"),DW(t,e,"origin"),kW(t,e,"x"),kW(t,e,"y"),kW(t,e,"scaleX"),kW(t,e,"scaleY"),kW(t,e,"originX"),kW(t,e,"originY"),kW(t,e,"rotation")}function _W(t,e,n,r,i,o){if(r){var a,s=e||t,l=s.style,u=r.enterFrom;if(o&&u){var c=tt(u);!a&&(a=i.style={});for(var h=0;h<c.length;h++){var f=c[h];a[f]=u[f]}}if(!o&&l)if(r.transition){var p=Eo(r.transition);!a&&(a=i.style={});for(h=0;h<p.length;h++){f=p[h];var d=l[f];a[f]=d}}else if(t.getAnimationStyleProps&&U(n.transition,"style")>=0){var g=t.getAnimationStyleProps(),v=g?g.style:null;if(v){!a&&(a=i.style={});var y=tt(r);for(h=0;h<y.length;h++){f=y[h];if(v[f]){d=l[f];a[f]=d}}}}var m=r.leaveTo;if(m){var _=tt(m),x=wW(t),b=x.style||(x.style={});for(h=0;h<_.length;h++){f=_[h];b[f]=m[f]}}}}function xW(t,e){if(!t||t===e||t.parent===e.parent)return t;var n=aW.transform||(aW.transform=Hr([])),r=t.getComputedTransform();r?Wr(n,r):Hr(n);var i=e.parent;return i&&i.getComputedTransform(),aW.originX=t.originX,aW.originY=t.originY,aW.parent=i,aW.decomposeTransform(),aW}function bW(t,e){return Y(t)?t!==e:null!=t&&isFinite(t)}function wW(t){var e=XH(t);return e.leaveToProps||(e.leaveToProps={})}var SW={},MW={setTransform:function(t,e){return SW.el[t]=e,this},getTransform:function(t){return SW.el[t]},setShape:function(t,e){var n=SW.el.shape||(SW.el.shape={});return n[t]=e,SW.isShapeDirty=!0,this},getShape:function(t){var e=SW.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=SW.el.style;return n&&(n[t]=e,SW.isStyleDirty=!0),this},getStyle:function(t){var e=SW.el.style;if(e)return e[t]},setExtra:function(t,e){var n=SW.el.extra||(SW.el.extra={});return n[t]=e,this},getExtra:function(t){var e=SW.el.extra;if(e)return e[t]}};function CW(){var t=this,e=t.el;if(e){var n=XH(e).userDuring,r=t.userDuring;n===r?(SW.el=e,SW.isShapeDirty=!1,SW.isStyleDirty=!1,r(MW),SW.isShapeDirty&&e.dirtyShape&&e.dirtyShape(),SW.isStyleDirty&&e.dirtyStyle&&e.dirtyStyle()):t.el=t.userDuring=null}}function TW(t,e,n,r,i,o,a){var s=e.isGroup?null:e,l=i&&i[t].cfg;if(s){var u=s.ensureState(t);if(!1===r){var c=s.getState(t);c&&(c.style=null)}else u.style=r||null;l&&(u.textConfig=l),Ju(s)}}function IW(t,e,n,r){if(!t.isGroup){var i=t,o=n.currentZ,a=n.currentZLevel;i.z=o,i.zlevel=a;var s=e.z2;null!=s&&(i.z2=s||0);for(var l=0;l<tW.length;l++)AW(i,e,tW[l])}}function AW(t,e,n){var r,i=n===KH,o=i?e:FW(e,n),a=o?o.z2:null;null!=a&&(r=i?t:t.ensureState(n),r.z2=a||0)}function DW(t,e,n,r){var i=t[n],o=oW[n];i&&(r?(e[o[0]]=r[o[0]],e[o[1]]=r[o[1]]):(e[o[0]]=i[0],e[o[1]]=i[1]))}function kW(t,e,n,r){null!=t[n]&&(e[n]=r?r[n]:t[n])}function LW(t,e,n){n&&(t[e]=n[e])}function OW(t,e,n,r){var i=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):sW[o.type](o));for(var s,l,u=H({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:w,ordinalRawValue:b,styleEmphasis:S,visual:T,barLayout:I,currentSeriesIndices:A,font:D},a.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:PW(t.getData())},h={},f={},p={},d={},g=0;g<tW.length;g++){var v=tW[g];p[v]=t.getModel(eW[v]),d[v]=t.getModel(nW[v])}function y(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]=y(t).getModel(eW[n])):y(t).getModel(eW[n]):p[n]}function _(t,n){return e.hasItemOption?t===s?f[n]||(f[n]=y(t).getModel(nW[n])):y(t).getModel(nW[n]):d[n]}return function(t,n){return s=t,l=null,h={},f={},i&&i(H({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function x(t,n){return null==n&&(n=s),e.get(e.getDimension(t||0),n)}function b(t,n){null==n&&(n=s);var r=e.getDimensionInfo(t||0);if(r){var i=e.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[i]:i}}function w(n,r){null==r&&(r=s);var i=e.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,l=m(r,KH).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:at(o)?o:"#000"},c=_(r,KH),h=Jf(c,null,u,!1,!0);h.text=c.getShallow("show")?mt(t.getFormattedLabel(r,KH),DA(e,r)):null;var f=Qf(c,u,!1);return C(n,l),l=uH(l,h,f),n&&M(l,n),l.legacy=!0,l}function S(n,r){null==r&&(r=s);var i=m(r,ZH).getItemStyle(),o=_(r,ZH),a=Jf(o,null,null,!0,!0);a.text=o.getShallow("show")?_t(t.getFormattedLabel(r,ZH),t.getFormattedLabel(r,KH),DA(e,r)):null;var l=Qf(o,null,!0);return C(n,i),i=uH(i,a,l),n&&M(i,n),i.legacy=!0,i}function M(t,e){for(var n in e)Lt(e,n)&&(t[n]=e[n])}function C(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function T(t,n){if(null==n&&(n=s),Lt(YH,t)){var r=e.getItemVisual(n,"style");return r?r[YH[t]]:null}if(Lt(qH,t))return e.getItemVisual(n,t)}function I(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return AC(H({axis:e},t))}}function A(){return n.getCurrentSeriesIndices()}function D(t){return ap(t,n)}}function PW(t){var e={};return q(t.dimensions,(function(n,r){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var o=i.coordDim,a=e[o]=e[o]||[];a[i.coordDimIndex]=r}})),e}function EW(t,e,n,r,i,o,a,s){if(r)return e=RW(t,e,n,r,i,o,!0,s),e&&a.setItemGraphicEl(n,e),e&&mc(e,r.focus,r.blurScope),e;KW(e,o)}function RW(t,e,n,r,i,o,a,s){var l=-1;e&&NW(e,r)&&(l=o.childrenRef().indexOf(e),e=null);var u=!e;e?e.clearStates():e=hW(r);var c=XH(e).canMorph=r.morph&&ZW(e),h=c&&s&&s.hasFrom(),f=u&&!h;iW.normal.cfg=iW.normal.conOpt=iW.emphasis.cfg=iW.emphasis.conOpt=iW.blur.cfg=iW.blur.conOpt=iW.select.cfg=iW.select.conOpt=null,iW.isLegacy=!1,BW(e,n,r,i,f,iW),zW(e,n,r,i,f);var p=fW(t,e,h,n,r,r.style,iW,i,f,!1);h&&s.addTo(e,r,n,p);for(var d=0;d<tW.length;d++){var g=tW[d];if(g!==KH){var v=FW(r,g),y=GW(r,v,g);TW(g,e,v,y,iW,a,!1)}}return IW(e,r,i,iW),"group"===r.type&&jW(t,e,n,r,i,s),l>=0?o.replaceAt(e,l):o.add(e),e}function NW(t,e){var n=XH(t),r=e.type,i=e.shape,o=e.style;return null!=r&&r!==n.customGraphicType||"path"===r&&qW(i)&&YW(i)!==n.customPathData||"image"===r&&Lt(o,"image")&&o.image!==n.customImagePath}function zW(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&&NW(a,o)&&(a=null),a||(a=hW(o),t.setClipPath(a)),fW(null,a,null,e,o,null,null,r,i,!1)}}function BW(t,e,n,r,i,o){if(!t.isGroup){VW(n,null,o),VW(n,ZH,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=hW(a),t.setTextContent(c));var h=a&&a.style;fW(null,c,null,e,a,h,null,r,i,!0);for(var f=0;f<tW.length;f++){var p=tW[f];if(p!==KH){var d=o[p].conOpt;TW(p,c,d,GW(a,d,p),null,!1,!0)}}h?c.dirty():c.markRedraw()}}}}function VW(t,e,n){var r=e?FW(t,e):t,i=e?GW(t,r,ZH):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?FW(s,e):s:null;if(i&&(n.isLegacy||aH(i,o,!!a,!!l))){n.isLegacy=!0;var u=sH(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 FW(t,e){return e?t?t[e]:null:t}function GW(t,e,n){var r=e&&e.style;return null==r&&n===ZH&&t&&(r=t.styleEmphasis),r}function jW(t,e,n,r,i,o){var a=r.children,s=a?a.length:0,l=r.$mergeChildren,u="byName"===l||r.diffChildrenByName,c=!1===l;if(s||u||c)if(u)HW({api:t,oldChildren:e.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:e,morphPreparation:o});else{c&&e.removeAll();for(var h=0;h<s;h++)a[h]&&RW(t,e.childAt(h),n,a[h],i,e,!1,o);for(var f=e.childCount()-1;f>=h;f--)$W(e.childAt(f),i,e)}}function HW(t){new lM(t.oldChildren,t.newChildren,WW,WW,t).add(UW).update(UW).remove(XW).execute()}function WW(t,e){var n=t&&t.name;return null!=n?n:rW+e}function UW(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;RW(n.api,i,n.dataIndex,r,n.seriesModel,n.group,!1,n.morphPreparation)}function XW(t){var e=this.context,n=e.oldChildren[t];$W(n,e.seriesModel,e.group)}function $W(t,e,n){if(t){var r=XH(t).leaveToProps;r?If(t,r,e,{cb:function(){n.remove(t)}}):n.remove(t)}}function YW(t){return t&&(t.pathData||t.d)}function qW(t){return t&&(Lt(t,"pathData")||Lt(t,"d"))}function ZW(t){return t&&t instanceof Fl}function KW(t,e){t&&e.remove(t)}var JW=function(){function t(t,e){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=t,this._transOpt=e}return t.prototype.hasFrom=function(){return!!this._fromList.length},t.prototype.findAndAddFrom=function(t){if(t&&(XH(t).canMorph&&this._fromList.push(t),t.isGroup))for(var e=t.childrenRef(),n=0;n<e.length;n++)this.findAndAddFrom(e[n])},t.prototype.addTo=function(t,e,n,r){t&&(this._toList.push(t),this._toElOptionList.push(e),this._toDataIndices.push(n),this._allPropsFinalList.push(r))},t.prototype.applyMorphing=function(){var t=this._type,e=this._fromList,n=this._toList,r=n.length,i=e.length;if(i&&r)if("oneToOne"===t)for(var o=0;o<r;o++)this._oneToOneForSingleTo(o,o);else if("manyToOne"===t)for(var a=Math.max(1,Math.floor(i/r)),s=(o=0,0);o<r;o++,s+=a){var l=o+1>=r?i-s:a;this._manyToOneForSingleTo(o,s>=i?null:s,l)}else if("oneToMany"===t)for(var u=Math.max(1,Math.floor(r/i)),c=0,h=0;c<r;c+=u,h++){var f=c+u>=r?r-c:u;this._oneToManyForSingleFrom(c,f,h>=i?null:h)}},t.prototype._oneToOneForSingleTo=function(t,e){var n=this._toList[t],r=this._toElOptionList[t],i=this._toDataIndices[t],o=this._allPropsFinalList[t],a=this._fromList[e],s=this._getOrCreateMorphConfig(i),l=s.duration;if(a&&LH(a)){if(pW(n,o,r.style),l){var u=PH([a],n,s,QW);this._processResultIndividuals(u,t,null)}}else{var c=l&&a&&(a!==n||OH(a))?a:null,h={};gW("shape",n,c,r,h,!1),gW("extra",n,c,r,h,!1),yW(n,c,r,h,!1),_W(n,c,r,r.style,h,!1),pW(n,o,r.style),c&&CH(c,n,s),dW(n,i,r,this._seriesModel,h,!1)}},t.prototype._manyToOneForSingleTo=function(t,e,n){var r=this._toList[t],i=this._toElOptionList[t],o=this._allPropsFinalList[t];pW(r,o,i.style);var a=this._getOrCreateMorphConfig(this._toDataIndices[t]);if(a.duration&&null!=e){for(var s=[],l=e;l<n;l++)s.push(this._fromList[l]);var u=PH(s,r,a,QW);this._processResultIndividuals(u,t,null)}},t.prototype._oneToManyForSingleFrom=function(t,e,n){for(var r=null==n?null:this._fromList[n],i=this._toList,o=[],a=t;a<e;a++){var s=i[a];pW(s,this._allPropsFinalList[a],this._toElOptionList[a].style),o.push(s)}var l=this._getOrCreateMorphConfig(this._toDataIndices[t]);if(l.duration&&r){var u=GH(r,o,l,QW);this._processResultIndividuals(u,t,e)}},t.prototype._processResultIndividuals=function(t,e,n){for(var r=null!=n,i=0;i<t.count;i++){var o=t.fromIndividuals[i],a=t.toIndividuals[i],s=e+(r?i:0),l=this._toElOptionList[s],u=this._toDataIndices[s],c={};yW(a,o,l,c,!1),_W(a,o,l,l.style,c,!1),dW(a,u,l,this._seriesModel,c,!1)}},t.prototype._getOrCreateMorphConfig=function(t){var e,n,r,i=this._morphConfigList,o=i[t];if(o)return o;var a=this._seriesModel,s=this._transOpt;if(a.isAnimationEnabled()){var l=void 0;if(a&&a.ecModel){var u=a.ecModel.getUpdatePayload();l=u&&u.animation}if(l)e=l.duration||0,n=l.easing||"cubicOut",r=l.delay||0;else{n=a.get("animationEasingUpdate");var c=a.get("animationDelayUpdate");r=ot(c)?c(t):c;var h=a.get("animationDurationUpdate");e=ot(h)?h(t):h}}return o={duration:e||0,delay:r,easing:n,dividingMethod:s?s.dividingMethod:null},i[t]=o,o},t.prototype.reset=function(t){this._type=t,this._fromList.length=this._toList.length=this._toElOptionList.length=this._allPropsFinalList.length=this._toDataIndices.length=0},t}();function QW(t,e,n){e.style=n?V(t.style):t.style,e.zlevel=t.zlevel,e.z=t.z,e.z2=t.z2}function tU(t){t.registerChartView(uW),t.registerSeriesModel(lW)}var eU=na(),nU=V,rU=nt,iU=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=rt(oU,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Ui,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);uU(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=AL(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=eU(t).pointerEl=new l[i.type](nU(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=eU(t).labelEl=new yu(nU(e.label));t.add(i),sU(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=eU(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=eU(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),sU(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=Gf(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Le(t.event)},onmousedown:rU(this._onHandleDragMove,this,0,0),drift:rU(this._onHandleDragMove,this),ondragend:rU(this._onHandleDragEnd,this)}),r.add(i)),uU(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");it(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Sm(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){oU(this._axisPointerModel,!e&&this._moveAnimation,this._handle,lU(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(lU(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(lU(r)),eU(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,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)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function oU(t,e,n,r){aU(eU(n).lastProp,r)||(eU(n).lastProp=r,e?If(n,r,t):(n.stopAnimation(),n.attr(r)))}function aU(t,e){if(ut(t)&&ut(e)){var n=!0;return q(e,(function(e,r){n=n&&aU(t[r],e)})),!!n}return t===e}function sU(t,e){t[e.get(["label","show"])?"show":"hide"]()}function lU(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function uU(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)}))}var cU=iU;function hU(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle(),e.fill=null):"shadow"===n&&(e=r.getAreaStyle(),e.stroke=null),e}function fU(t,e,n,r,i){var o=n.get("value"),a=dU(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=_d(s.get("padding")||0),u=s.getFont(),c=Ti(a,u),h=i.position,f=c.width+l[1]+l[3],p=c.height+l[0]+l[2],d=i.align;"right"===d&&(h[0]-=f),"center"===d&&(h[0]-=f/2);var g=i.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),pU(h,f,p,r);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Jf(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function pU(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)}function dU(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:_T(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};q(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),at(a)?o=a.replace("{value}",o):ot(a)&&(o=a(s))}return o}function gU(t,e,n){var r=jr();return $r(r,r,n.rotation),Xr(r,r,n.position),Ef([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function vU(t,e,n,r,i,o){var a=xL.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),fU(e,r,i,o,{position:gU(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function yU(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function mU(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function _U(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var xU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=bU(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=hU(r),h=wU[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var f=Qk(a.model,n);vU(e,t,f,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=Qk(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=gU(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=bU(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];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:f[l]}},e}(cU);function bU(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var wU={line:function(t,e,n){var r=yU([e,n[0]],[e,n[1]],SU(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:mU([e-r/2,n[0]],[r,i],SU(t))}}};function SU(t){return"x"===t.dim?0:1}var MU=xU,CU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="axisPointer",e.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(qd),TU=CU,IU=na(),AU=q;function DU(t,e,n){if(!S.node){var r=e.getZr();IU(r).records||(IU(r).records={}),kU(r,e);var i=IU(r).records[t]||(IU(r).records[t]={});i.handler=n}}function kU(t,e){function n(n,r){t.on(n,(function(n){var i=EU(e);AU(IU(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),LU(i.pendings,e)}))}IU(t).initialized||(IU(t).initialized=!0,n("click",rt(PU,"click")),n("mousemove",rt(PU,"mousemove")),n("globalout",OU))}function LU(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))}function OU(t,e,n){t.handler("leave",null,n)}function PU(t,e,n,r){e.handler(t,n,r)}function EU(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}}function RU(t,e){if(!S.node){var n=e.getZr(),r=(IU(n).records||{})[t];r&&(IU(n).records[t]=null)}}var NU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";DU("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){RU("axisPointer",e)},e.prototype.dispose=function(t,e){RU("axisPointer",e)},e.type="axisPointer",e}(lm),zU=NU;function BU(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=ea(o,t);if(null==a||a<0||it(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),h=c.dim,f=u.dim,p="x"===h||"radius"===h?1:0,d=o.mapDimension(f),g=[];g[p]=o.get(d,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(Z(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var VU=na();function FU(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||nt(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){ZU(i)&&(i=BU({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=ZU(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||ZU(i),f={},p={},d={list:[],map:{}},g={showPointer:rt(HU,p),showTooltip:rt(WU,d)};q(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);q(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=YU(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&GU(t,a,g,!1,f)}}))}));var v={};return q(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&q(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,qU(e),qU(t)))),v[t.key]=o}}))})),q(v,(function(t,e){GU(c[e],t,g,!0,f)})),UU(p,c,f),XU(d,i,t,a),$U(c,a,n),f}}function GU(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=jU(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&j(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 jU(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return q(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(h,t,n);c=f.dataIndices,u=f.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,d=Math.abs(p);d<=a&&((d<a||p>=0&&s<0)&&(a=d,s=p,i=u,o.length=0),q(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function HU(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function WU(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=LL(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 UU(t,e,n){var r=n.axesInfo=[];q(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})}))}function XU(t,e,n,r){if(!ZU(e)&&t.list.length){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})}else r({type:"hideTip"})}function $U(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=VU(r)[i]||{},a=VU(r)[i]={};q(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&q(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];q(o,(function(t,e){!a[e]&&l.push(t)})),q(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})}function YU(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}}function qU(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 ZU(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function KU(t){EL.registerAxisPointerClass("CartesianAxisPointer",MU),t.registerComponentModel(TU),t.registerComponentView(zU),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!it(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=bL(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},FU)}function JU(t){iM(XL),iM(KU)}var QU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(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),l=s.getExtent(),u=o.dataToCoord(e),c=r.get("type");if(c&&"none"!==c){var h=hU(r),f=eX[c](o,a,u,l);f.style=h,t.graphicKey=f.type,t.pointer=f}var p=r.get(["label","margin"]),d=tX(e,n,r,a,p);fU(t,n,r,i,d)},e}(cU);function tX(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 f=jr();$r(f,f,s),Xr(f,f,[r.cx,r.cy]),l=Ef([a,-i],f);var p=e.getModel("axisLabel").get("rotate")||0,d=xL.innerTextLayout(s,p*Math.PI/180,-1);u=d.textAlign,c=d.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,a]);var v=r.cx,y=r.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-y)/g<.3?"middle":l[1]>y?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var eX={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:yU(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:_U(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:_U(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}},nX=QU,rX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},e}(qd),iX=rX,oX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",aa).models[0]},e.type="polarAxis",e}(qd);$(oX,TT);var aX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="angleAxis",e}(oX),sX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="radiusAxis",e}(oX),lX=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return v(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(JT);lX.prototype.dataToRadius=JT.prototype.dataToCoord,lX.prototype.radiusToData=JT.prototype.coordToData;var uX=lX,cX=na(),hX=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return v(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=Ti(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),f=cX(t.model),p=f.lastAutoInterval,d=f.lastTickCount;return null!=p&&null!=d&&Math.abs(p-h)<=1&&Math.abs(d-i)<=1&&p>h?h=p:(f.lastTickCount=i,f.lastAutoInterval=h),h},e}(JT);hX.prototype.dataToAngle=JT.prototype.dataToCoord,hX.prototype.angleToData=JT.prototype.coordToData;var fX=hX,pX=function(){function t(t){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new uX,this._angleAxis=new fX,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,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;var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;while(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,r=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[r,i]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var r=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var r=dX(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=dX(e);return r===this?this.pointToData(n):null},t}();function dX(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var gX=pX;function vX(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=lo(r[0],i),t.cy=lo(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:it(l)||(l=[0,l]);var u=[lo(l[0],s),lo(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function yX(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();q(MT(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),q(MT(e,"angle"),(function(t){r.scale.unionExtentFromData(e,t)}))}})),gT(r.scale,r.model),gT(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 mX(t){return"angleAxis"===t.mainType}function _X(t,e){if(t.type=e.get("type"),t.scale=vT(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),mX(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var xX={dimensions:gX.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,r){var i=new gX(r+"");i.update=yX;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");_X(o,s),_X(a,l),vX(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",aa).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},bX=xX,wX=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function SX(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 MX(t){var e=t.getRadiusAxis();return e.inverse?0:1}function CX(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 TX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return v(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=Z(n.getViewLabels(),(function(t){t=V(t);var e=n.scale,r="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(r),t}));CX(s),CX(o),q(wX,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||IX[e](this.group,t,r,o,a,i,s)}),this)}},e.type="angleAxis",e}(EL),IX={axisLine:function(t,e,n,r,i,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=MX(n),u=l?0:1;a=0===o[u]?new th({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Sh({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.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[MX(n)],u=Z(r,(function(t){return new zh({shape:SX(n,[l,l+s],t.coord)})}));t.add(bf(u,{style:H(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[MX(n)],c=[],h=0;h<i.length;h++)for(var f=0;f<i[h].length;f++)c.push(new zh({shape:SX(n,[u,u+l],i[h][f].coord)}));t.add(bf(c,{style:H(s.getModel("lineStyle").getLineStyle(),H(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");q(a,(function(r,i){var a=l,h=r.tickValue,f=o[MX(n)],p=n.coordToPoint([f+u,r.coord]),d=n.cx,g=n.cy,v=Math.abs(p[0]-d)/f<.3?"center":p[0]>d?"left":"right",y=Math.abs(p[1]-g)/f<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var m=s[h];ut(m)&&m.textStyle&&(a=new bp(m.textStyle,l,l.ecModel))}var _=new yu({silent:xL.isLabelSilent(e),style:Jf(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:v,verticalAlign:y})});if(t.add(_),c){var x=xL.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=r.rawLabel,mu(_).eventData=x}}),this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<r.length;h++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new zh({shape:SX(n,o,r[h].coord)}))}for(h=0;h<c.length;h++)t.add(bf(c[h],{style:H({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new zh({shape:SX(n,o,i[u][c].coord)}));t.add(bf(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,o){if(r.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,f=-r[0].coord*h,p=Math.min(o[0],o[1]),d=Math.max(o[0],o[1]),g=e.get("clockwise"),v=1,y=r.length;v<=y;v++){var m=v===y?r[0].coord:r[v].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new xh({shape:{cx:n.cx,cy:n.cy,r0:p,r:d,startAngle:f,endAngle:-m*h,clockwise:g},silent:!0})),f=-m*h}for(v=0;v<c.length;v++)t.add(bf(c[v],{style:H({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}},AX=TX,DX=["axisLine","axisTickLabel","axisName"],kX=["splitLine","splitArea","minorSplitLine"],LX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return v(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,r=this._axisGroup=new Ui;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=PX(o,t,u),f=new xL(t,h);q(DX,f.add,f),r.add(f.getGroup()),Bf(n,r,t),q(kX,(function(e){t.get([e,"show"])&&!i.scale.isBlank()&&OX[e](this.group,t,o,u,c,s,l)}),this)}},e.type="radiusAxis",e}(EL),OX={splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<o.length;h++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new th({shape:{cx:n.cx,cy:n.cy,r:o[h].coord}}))}for(h=0;h<c.length;h++)t.add(bf(c[h],{style:H({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,o,a){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)u.push(new th({shape:{cx:n.cx,cy:n.cy,r:a[c][h].coord}}));t.add(bf(u,{style:H({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,o){if(o.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=o[0].coord,f=1;f<o.length;f++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new xh({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[f].coord}for(f=0;f<c.length;f++)t.add(bf(c[f],{style:H({fill:l[f%l.length]},s.getAreaStyle()),silent:!0}))}}};function PX(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var EX=LX;function RX(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function NX(t,e){return e.dim+t.model.componentIndex}function zX(t,e,n){var r={},i=BX(J(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=NX(n,o),s=RX(t),l=i[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),f=t.coordinateSystem.cx,p=t.coordinateSystem.cy,d=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;r[s]=r[s]||[];for(var v=e.mapDimension(h.dim),y=e.mapDimension(o.dim),m=QM(e,v),_="radius"!==o.dim||!t.get("roundCap",!0),x=h.dataToCoord(0),b=0,w=e.count();b<w;b++){var S=e.get(v,b),M=e.get(y,b),C=S>=0?"p":"n",T=x;m&&(r[s][M]||(r[s][M]={p:x,n:x}),T=r[s][M][C]);var I=void 0,A=void 0,D=void 0,k=void 0;if("radius"===h.dim){var L=h.dataToCoord(S)-x,O=o.dataToCoord(M);Math.abs(L)<d&&(L=(L<0?-1:1)*d),I=T,A=T+L,D=O-u,k=D-c,m&&(r[s][M][C]=A)}else{var P=h.dataToCoord(S,_)-x,E=o.dataToCoord(M);Math.abs(P)<g&&(P=(P<0?-1:1)*g),I=E+u,A=I+c,D=T,k=T+P,m&&(r[s][M][C]=k)}e.setItemLayout(b,{cx:f,cy:p,r0:I,r:A,startAngle:-D*Math.PI/180,endAngle:-k*Math.PI/180})}}}))}function BX(t){var e={};q(t,(function(t,n){var r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=NX(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=RX(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var f=lo(t.get("barWidth"),l),p=lo(t.get("barMaxWidth"),l),d=t.get("barGap"),g=t.get("barCategoryGap");f&&!c[h].width&&(f=Math.min(u.remainedWidth,f),c[h].width=f,u.remainedWidth-=f),p&&(c[h].maxWidth=p),null!=d&&(u.gap=d),null!=g&&(u.categoryGap=g)}));var n={};return q(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=lo(t.categoryGap,i),a=lo(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),q(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;q(r,(function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)})),c&&(h-=c.width*a);var f=-h/2;q(r,(function(t,r){n[e][r]=n[e][r]||{offset:f,width:t.width},f+=t.width*(1+a)}))})),n}var VX=zX,FX={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},GX={splitNumber:5},jX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="polar",e}(lm);function HX(t){iM(KU),EL.registerAxisPointerClass("PolarAxisPointer",nX),t.registerCoordinateSystem("polar",bX),t.registerComponentModel(iX),t.registerComponentView(jX),Hk(t,"angle",aX,FX),Hk(t,"radius",sX,GX),t.registerComponentView(AX),t.registerComponentView(EX),t.registerLayout(rt(VX,"bar"))}function WX(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]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[a];var h={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=h[o],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),yt(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var f=e.rotate;return null==f&&(f=t.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-f:f,i.z2=1,i}var UX=["axisLine","axisTickLabel","axisName"],XX=["splitArea","splitLine"],$X=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return v(e,t),e.prototype.render=function(e,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Ui;var s=WX(e),l=new xL(e,s);q(UX,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),q(XX,(function(t){e.get([t,"show"])&&YX[t](this,this.group,this._axisGroup,e)}),this),Bf(a,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)},e.prototype.remove=function(){zL(this)},e.type="singleAxis",e}(EL),YX={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=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=[],h=0,f=i.getTicksCoords({tickModel:o}),p=[],d=[],g=0;g<f.length;++g){var v=i.toGlobalCoord(f[g].coord);u?(p[0]=v,p[1]=l.y,d[0]=v,d[1]=l.y+l.height):(p[0]=l.x,p[1]=v,d[0]=l.x+l.width,d[1]=v);var y=h++%s.length;c[y]=c[y]||[],c[y].push(new zh({subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},silent:!0}))}var m=a.getLineStyle(["color"]);for(g=0;g<c.length;++g)e.add(bf(c[g],{style:H({stroke:s[g%s.length]},m),silent:!0}))}},splitArea:function(t,e,n,r){NL(t,n,r,r)}},qX=$X,ZX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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}(qd);$(ZX,TT.prototype);var KX=ZX,JX=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 v(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}(JT),QX=JX,t$=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=["single"],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 QX(r,vT(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();q(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),gT(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Vd({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.reverse?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(),r=n.orient;return"horizontal"===r?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){var r=e$(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=e$(e);return r===this?this.pointToData(n):null},t}();function e$(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var n$=t$;function r$(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,i){var o=new n$(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",aa).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var i$={create:r$,dimensions:n$.prototype.dimensions},o$=i$,a$=["x","y"],s$=["width","height"],l$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.coordinateSystem,s=h$(a,1-c$(o)),l=a.dataToPoint(e)[0],u=r.get("type");if(u&&"none"!==u){var c=hU(r),h=u$[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var f=WX(n);vU(e,t,f,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=WX(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=gU(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=c$(i),s=h$(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=h$(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}(cU),u$={line:function(t,e,n){var r=yU([e,n[0]],[e,n[1]],c$(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:mU([e-r/2,n[0]],[r,i],c$(t))}}};function c$(t){return t.isHorizontal()?0:1}function h$(t,e){var n=t.getRect();return[n[a$[e]],n[a$[e]]+n[s$[e]]]}var f$=l$,p$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="single",e}(lm);function d$(t){iM(KU),EL.registerAxisPointerClass("SingleAxisPointer",f$),t.registerComponentView(p$),t.registerComponentView(qX),t.registerComponentModel(KX),Hk(t,"single",KX,KX.defaultOption),t.registerCoordinateSystem("single",o$)}var g$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(e,n,r){var i=Wd(e);t.prototype.init.apply(this,arguments),v$(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),v$(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={zlevel:0,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%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(qd);function v$(t,e){var n,r=t.cellSize;n=it(r)?r:t.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=Z([0,1],(function(t){return Gd(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Hd(t,e,{type:"box",ignoreSize:i})}var y$=g$,m$={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},_$={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},x$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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();this._renderDayRect(t,o,r),this._renderLines(t,o,a,r),this._renderYearText(t,o,a,r),this._renderMonthText(t,a,r),this._renderWeekText(t,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 ru({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++){f(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 f(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)}f(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 Ph({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"string"===typeof t&&t?Id(t,e):"function"===typeof t?t(e):e.nameMap},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]},f=e.start.y;+e.end.y>+e.start.y&&(f=f+"-"+e.end.y);var p=i.get("formatter"),d={start:e.start.y,end:e.end.y,nameMap:f},g=this._formatterLabel(p,d),v=new yu({z2:30,style:Jf(i,{text:g})});v.attr(this._yearTextPositionControl(v,h[a],n,a,o)),r.add(v)}},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){var r=t.getModel("monthLabel");if(r.get("show")){var i=r.get("nameMap"),o=r.get("margin"),a=r.get("position"),s=r.get("align"),l=[this._tlpoints,this._blpoints];at(i)&&(i=m$[i.toUpperCase()]||[]);var u="start"===a?0:1,c="horizontal"===e?0:1;o="start"===a?-o:o;for(var h="center"===s,f=0;f<l[u].length-1;f++){var p=l[u][f].slice(),d=this._firstDayOfMonth[f];if(h){var g=this._firstDayPoints[f];p[c]=(g[c]+l[0][f+1][c])/2}var v=r.get("formatter"),y=i[+d.m-1],m={yyyy:d.y,yy:(d.y+"").slice(2),MM:d.m,M:+d.m,nameMap:y},_=this._formatterLabel(v,m),x=new yu({z2:30,style:j(Jf(r,{text:_}),this._monthTextPositionControl(p,h,e,a,o))});n.add(x)}}},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){var i=t.getModel("dayLabel");if(i.get("show")){var o=t.coordinateSystem,a=i.get("position"),s=i.get("nameMap"),l=i.get("margin"),u=o.getFirstDayOfWeek();at(s)&&(s=_$[s.toUpperCase()]||[]);var c=o.getNextNDay(e.end.time,7-e.lweek).time,h=[o.getCellWidth(),o.getCellHeight()];l=lo(l,Math.min(h[1],h[0])),"start"===a&&(c=o.getNextNDay(e.start.time,-(7+e.fweek)).time,l=-l);for(var f=0;f<7;f++){var p=o.getNextNDay(c,f),d=o.dataToRect([p.time],!1).center,g=f;g=Math.abs((f+u)%7);var v=new yu({z2:30,style:j(Jf(i,{text:s[g]}),this._weekTextPositionControl(d,n,a,l,h))});r.add(v)}}},e.type="calendar",e}(lm),b$=x$,w$=864e5,S$=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){t=bo(t);var e=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 a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e+"",m:r,d:o,day:a,time:t.getTime(),formatedDate:e+"-"+r+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];q([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=Vd(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}q([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){it(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+w$))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=M$(e);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=M$(e);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(it(e)&&1===e.length&&(e=e[0]),it(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/w$)-Math.floor(n[0].time/w$)+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){var l=i.getTime()-n[1].time>0?1:-1;while((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(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("calendarIndex")||0])})),r},t.dimensions=["time","value"],t}();function M$(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}var C$=S$;function T$(t){t.registerComponentModel(y$),t.registerComponentView(b$),t.registerCoordinateSystem("calendar",C$)}var I$=na(),A$={path:null,compoundPath:null,group:Ui,image:Yl,text:yu},D$=function(t){var e=t.graphic;it(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])},k$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return v(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=Vo(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];q(a,(function(t,e){var n=t.newOption;n&&(s.push(n),N$(t,n),z$(i,e,n),B$(i[e],n))}),this);for(var l=i.length-1;l>=0;l--)null==i[l]?i.splice(l,1):delete i[l].$action},e.prototype._flatten=function(t,e,n){q(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var r=t.children;"group"===t.type&&r&&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}(qd),L$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(){this._elMap=At()},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;q(e,(function(e){var i=Yo(e.id,null),o=null!=i?n.get(i):null,a=Yo(e.parentId,null),s=null!=a?n.get(a):r,l=e.type,u=e.style;"text"===l&&u&&e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=u.verticalAlign=u.align=null);var c=e.textContent,h=e.textConfig;if(u&&aH(u,l,!!h,!!c)){var f=sH(u,l,!0);!h&&f.textConfig&&(h=e.textConfig=f.textConfig),!c&&f.textContent&&(c=f.textContent)}var p=E$(e);var d=e.$action||"merge";"merge"===d?o?o.attr(p):O$(i,s,p,n):"replace"===d?(P$(o,n),O$(i,s,p,n)):"remove"===d&&P$(o,n);var g=n.get(i);if(g&&c)if("merge"===d){var v=g.getTextContent();v?v.attr(c):g.setTextContent(new yu(c))}else"replace"===d&&g.setTextContent(new yu(c));if(g){var y=I$(g);y.__ecGraphicWidthOption=e.width,y.__ecGraphicHeightOption=e.height,V$(g,t,e),Xf({el:g,componentModel:t,itemName:g.name,itemTooltipOption:e.tooltip})}}))}},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=0;s<n.length;s++){var l=n[s],u=Yo(l.id,null),c=null!=u?i.get(u):null;if(c&&c.isGroup){var h=c.parent,f=h===r,p=I$(c),d=I$(h);p.__ecGraphicWidth=lo(p.__ecGraphicWidthOption,f?o:d.__ecGraphicWidth)||0,p.__ecGraphicHeight=lo(p.__ecGraphicHeightOption,f?a:d.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){l=n[s],u=Yo(l.id,null),c=null!=u?i.get(u):null;if(c){h=c.parent,d=I$(h);var g=h===r?{width:o,height:a}:{width:d.__ecGraphicWidth,height:d.__ecGraphicHeight};Fd(c,l,g,null,{hv:l.hv,boundingMode:l.bounding})}}},e.prototype._clear=function(){var t=this._elMap;t.each((function(e){P$(e,t)})),this._elMap=At()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(lm);function O$(t,e,n,r){var i=n.type;var o=Lt(A$,i)?A$[i]:yf(i);var a=new o(n);e.add(a),r.set(t,a),I$(a).__ecGraphicId=t}function P$(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){P$(t,e)})),e.removeKey(I$(t).__ecGraphicId),n.remove(t))}function E$(t){return t=j({},t),q(["id","parentId","$action","hv","bounding","textContent"].concat(Ed),(function(e){delete t[e]})),t}function R$(t,e){var n;return q(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function N$(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}function z$(t,e,n){var r=j({},n),i=t[e],o=n.$action||"merge";"merge"===o?i?(F(i,r,!0),Hd(i,r,{ignoreSize:!0}),Ud(n,i)):t[e]=r:"replace"===o?t[e]=r:"remove"===o&&i&&(t[e]=null)}function B$(t,e){if(t&&(t.hv=e.hv=[R$(e,["left","right"]),R$(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)}}function V$(t,e,n){var r=mu(t).eventData;t.silent||t.ignore||r||(r=mu(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function F$(t){t.registerComponentModel(k$),t.registerComponentView(L$),t.registerPreprocessor(D$)}var G$=["x","y","radius","angle","single"],j$=["cartesian2d","polar","singleAxis"];function H$(t){var e=t.get("coordinateSystem");return U(j$,e)>=0}function W$(t){return t+"Axis"}function U$(t,e){var n,r=At(),i=[],o=At();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)&&l(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),i.push(t),u(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var i=r.get(t);i&&i[n]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(r.get(t)||r.set(t,[]))[e]=!0}))}return i}function X$(t){var e=t.ecModel,n={infoList:[],infoMap:At()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(W$(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 $$=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}(),Y$=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 v(e,t),e.prototype.init=function(t,e,n){var r=q$(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=q$(t);F(this.option,t,!0),F(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;q([["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=At(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return q(G$,(function(n){var r=this.getReferringComponents(W$(n),sa);if(r.specified){e=!0;var i=new $$;q(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"});a(o,i)}if(r){o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var i=e[0];if(i){var o=new $$;if(o.add(i.componentIndex),t.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",aa).models[0];a&&q(e,(function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",aa).models[0]&&o.add(t.componentIndex)}))}}}r&&q(G$,(function(e){if(r){var i=n.findComponents({mainType:W$(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new $$;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");q([["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(W$(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){q(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(W$(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;q([["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;q(["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={zlevel:0,z:4,filterMode:"filter",start:0,end:100},e}(qd);function q$(t){var e={};return q(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var Z$=Y$,K$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="dataZoom.select",e}(Z$),J$=K$,Q$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(lm),tY=Q$,eY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="dataZoom.select",e}(tY),nY=eY,rY=q,iY=co,oY=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(H$(e)){var n=W$(this._dimName),r=e.getReferringComponents(n,aa).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 V(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];rY(["start","end"],(function(r,u){var c=t[r],h=t[r+"Value"];"percent"===o[u]?(null==c&&(c=a[u]),h=i.parse(so(c,a,n))):(e=!0,h=null==h?n[u]:i.parse(h),c=so(h,n,a)),l[u]=h,s[u]=c})),iY(l),iY(s);var u=this._minMaxSpan;function c(t,e,n,r,o){var a=o?"Span":"ValueSpan";tB(0,t,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)e[s]=so(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=aY(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&&rY(r,(function(t){var e=t.getData(),r=e.mapDimensionsAll(n);r.length&&("weakFilter"===i?e.filterSelf((function(t){for(var n,i,a,s=0;s<r.length;s++){var l=e.get(r[s],t),u=!isNaN(l),c=l<o[0],h=l>o[1];if(u&&!c&&!h)return!0;u&&(a=!0),c&&(n=!0),h&&(i=!0)}return a&&n&&i})):rY(r,(function(n){if("empty"===i)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var r={};r[n]=o,e.selectRange(r)}})),rY(r,(function(t){e.setApproximateExtent(o,t)})))}))}function a(t){return t>=o[0]&&t<=o[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;rY(["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=so(n[0]+o,n,[0,100],!0):null!=i&&(o=so(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=po(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}();function aY(t,e,n){var r=[1/0,-1/0];rY(n,(function(t){CT(r,t.getData(),e)}));var i=t.getAxisModel(),o=hT(i.axis.scale,i,r).calculate();return[o.min,o.max]}var sY=oY,lY={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(W$(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 sY(e,r,o,t),n.push(i.__dzAxisProxy))}));var r=At();return q(n,(function(t){q(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]})}}))}},uY=lY;function cY(t){t.registerAction("dataZoom",(function(t,e){var n=U$(e,t);q(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var hY=!1;function fY(t){hY||(hY=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,uY),cY(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function pY(t){t.registerComponentModel(J$),t.registerComponentView(nY),fY(t)}var dY=function(){function t(){}return t}(),gY={};function vY(t,e){gY[t]=e}function yY(t){return gY[t]}var mY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;q(this.option.feature,(function(t,n){var r=yY(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(e)),F(t,r.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,zlevel:0,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}(qd),_Y=mY;function xY(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Vd(r,o,i);zd(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Fd(t,r,o,i)}function bY(t,e){var n=_d(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new ru({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}),t}var wY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(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=t.get("feature")||{},s=this._features||(this._features={}),l=[];q(a,(function(t,e){l.push(e)})),new lM(this._featureNames||[],l).add(u).update(u).remove(rt(u,null)).execute(),this._featureNames=l,xY(i,t,n),i.add(bY(i.getBoundingRect(),t)),i.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),l=s&&s.states.emphasis;if(l&&!ot(l)&&e){var u=l.style||(l.style={}),c=Ti(e,yu.makeFont(u)),h=t.x+i.x,f=t.y+i.y+o,p=!1;f+c.height>n.getHeight()&&(a.position="top",p=!0);var d=p?-5-c.height:o+8;h+c.width/2>n.getWidth()?(a.position=["100%",d],u.align="right"):h-c.width/2<0&&(a.position=[0,d],u.align="left")}}))}function u(i,o){var u,h=l[i],f=l[o],p=a[h],d=new bp(p,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===h&&(p.title=r.newTitle),h&&!f){if(SY(h))u={onclick:d.option.onclick,featureName:h};else{var g=yY(h);if(!g)return;u=new g}s[h]=u}else if(u=s[f],!u)return;u.uid=Sp("toolbox-feature"),u.model=d,u.ecModel=e,u.api=n;var v=u instanceof dY;h||!f?!d.get("show")||v&&u.unusable?v&&u.remove&&u.remove(e,n):(c(d,u,h),d.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?ec:nc)(r[t])},u instanceof dY&&u.render&&u.render(d,e,n,r)):v&&u.dispose&&u.dispose(e,n)}function c(r,a,s){var l,u,c=r.getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),f=a instanceof dY&&a.getIcons?a.getIcons():r.get("icon"),p=r.get("title")||{};"string"===typeof f?(l={},l[s]=f):l=f,"string"===typeof p?(u={},u[s]=p):u=p;var d=r.iconPaths={};q(l,(function(s,l){var f=Gf(s,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(c.getItemStyle());var p=f.ensureState("emphasis");p.style=h.getItemStyle();var g=new yu({style:{text:u[l],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});f.setTextContent(g),Xf({el:f,componentModel:t,itemName:l,formatterParamsExtra:{title:u[l]}}),f.__title=u[l],f.on("mouseover",(function(){var e=h.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";g.setStyle({fill:h.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),f.setTextConfig({position:h.get("textPosition")||n}),g.ignore=!t.get("showTitle"),ec(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",l])&&nc(this),g.hide()})),("emphasis"===r.get(["iconStatus",l])?ec:nc)(f),i.add(f),f.on("click",nt(a.onclick,a,e,n,l)),d[l]=f}))}},e.prototype.updateView=function(t,e,n,r){q(this._features,(function(t){t instanceof dY&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){q(this._features,(function(n){n instanceof dY&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){q(this._features,(function(n){n instanceof dY&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(lm);function SY(t){return 0===t.indexOf("my")}var MY=wY,CY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(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")});if("function"!==typeof MouseEvent||!S.browser.newEdge&&(S.browser.ie||S.browser.edge))if(window.navigator.msSaveOrOpenBlob||i){var s=a.split(","),l=s[0].indexOf("base64")>-1,u=i?decodeURIComponent(s[1]):s[1];l&&(u=window.atob(u));var c=r+"."+o;if(window.navigator.msSaveOrOpenBlob){var h=u.length,f=new Uint8Array(h);while(h--)f[h]=u.charCodeAt(h);var p=new Blob([f]);window.navigator.msSaveOrOpenBlob(p,c)}else{var d=document.createElement("iframe");document.body.appendChild(d);var g=d.contentWindow,v=g.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),g.focus(),v.execCommand("SaveAs",!0,c),document.body.removeChild(d)}}else{var y=n.get("lang"),m='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(y&&y[0]||"")+'" /></body>',_=window.open();_.document.write(m),_.document.title=r}else{var x=document.createElement("a");x.download=r+"."+o,x.target="_blank",x.href=a;var b=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(b)}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocale(["toolbox","saveAsImage","lang"])};return e},e}(dY);CY.prototype.unusable=!S.canvasSupported;var TY=CY,IY="__ec_magicType_stack__",AY=[["line","bar"],["stack"]],DY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return q(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var r=this.model,i=r.get(["seriesIndex",n]);if(kY[n]){var o,a={series:[]},s=function(t){var e=t.subType,i=t.id,o=kY[n](e,i,t,r);o&&(H(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,c=u+"Axis",h=t.getReferringComponents(c,aa).models[0],f=h.componentIndex;a[c]=a[c]||[];for(var p=0;p<=f;p++)a[c][f]=a[c][f]||{};a[c][f].boundaryGap="bar"===n}}};q(AY,(function(t){U(t,n)>=0&&q(t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var l=n;"stack"===n&&(o=F({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},e}(dY),kY={line:function(t,e,n,r){if("bar"===t)return F({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 F({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")===IY;if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),F({id:e,stack:i?"":IY},r.get(["option","stack"])||{},!0)}};HS({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var LY=DY,OY=new Array(60).join("-"),PY="\t";function EY(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}}function RY(t){var e=[];return q(t,(function(t,n){var r=t.categoryAxis,i=t.valueAxis,o=i.dim,a=[" "].concat(Z(t.series,(function(t){return t.name}))),s=[r.model.getCategories()];q(t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var l=[a.join(PY)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(PY))}e.push(l.join("\n"))})),e.join("\n\n"+OY+"\n\n")}function NY(t){return Z(t,(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+PY:"")+r.join(PY))})),n.join("\n")})).join("\n\n"+OY+"\n\n")}function zY(t){var e=EY(t);return{value:J([RY(e.seriesGroupByCategoryAxis),NY(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+OY+"\n\n"),meta:e.meta}}function BY(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function VY(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(PY)>=0)return!0}var FY=new RegExp("["+PY+"]+","g");function GY(t){for(var e=t.split(/\n+/g),n=BY(e.shift()).split(FY),r=[],i=Z(n,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var a=BY(e[o]).split(FY);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}function jY(t){for(var e=t.split(/\n+/g),n=BY(e.shift()),r=[],i=0;i<e.length;i++){var o=BY(e[i]);if(o){var a=o.split(FY),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}}function HY(t,e){var n=t.split(new RegExp("\n*"+OY+"\n*","g")),r={series:[]};return q(n,(function(t,n){if(VY(t)){var i=GY(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=jY(t);r.series.push(i)}})),r}var WY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.onclick=function(t,e){var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right: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="display:block;width:100%;overflow:auto;";var u=r.get("optionToContent"),c=r.get("contentToOption"),h=zY(t);if("function"===typeof u){var f=u(e.getOption());"string"===typeof f?s.innerHTML=f:ft(f)&&s.appendChild(f)}else s.appendChild(l),l.readOnly=r.get("readOnly"),l.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",l.style.color=r.get("textColor"),l.style.borderColor=r.get("textareaBorderColor"),l.style.backgroundColor=r.get("textareaColor"),l.value=h.value;var p=h.meta,d=document.createElement("div");d.style.cssText="position:absolute;bottom:0;left:0;right:0;";var g="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");g+=";background-color:"+r.get("buttonColor"),g+=";color:"+r.get("buttonTextColor");var m=this;function _(){n.removeChild(i),m._dom=null}De(v,"click",_),De(y,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var t;try{t="function"===typeof c?c(s,e.getOption()):HY(l.value,p)}catch(n){throw _(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}})),v.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=g,v.style.cssText=g,!r.get("readOnly")&&d.appendChild(y),d.appendChild(v),i.appendChild(o),i.appendChild(s),i.appendChild(d),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){var e={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocale(["toolbox","dataView","title"]),lang:t.getLocale(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return e},e}(dY);function UY(t,e){return Z(t,(function(t,n){var r=e&&e[n];if(ut(r)&&!it(r)){var i=ut(t)&&!it(t);i||(t={value:t});var o=null!=r.name&&null==t.name;return t=H(t,r),o&&delete t.name,t}return t}))}HS({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];q(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:UY(t.data,i)})}else n.push(j({type:"scatter"},t))})),e.mergeOption(H({series:n},t.newOption))}));var XY=WY,$Y=q,YY=na();function qY(t,e){var n=QY(t);$Y(e,(function(e,r){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[r])break}if(i<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var s=a.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(e)}function ZY(t){var e=QY(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return $Y(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n],t){r[n]=t;break}})),r}function KY(t){YY(t).snapshots=null}function JY(t){return QY(t).length}function QY(t){var e=YY(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var tq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.onclick=function(t,e){KY(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocale(["toolbox","restore","title"])};return e},e}(dY);HS({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var eq=tq,nq=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],rq=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=oq(e,t);q(aq,(function(t,e){(!n||!n.include||U(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=uq[t.brushType](0,n,e);t.__rangeOffset={offset:hq[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){q(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&q(r.coordSyses,(function(r){var i=uq[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){q(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var r=uq[t.brushType](0,n.coordSys,t.coordRange),i=t.__rangeOffset;t.range=i?hq[t.brushType](r.values,i.offset,pq(r.xyMinMax,i.xyMinMax)):r.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Z(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:vV(r),isTargetByCursor:mV(r,t,n.coordSysModel),getLinearBrushOtherExtent:yV(r)}}))},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&U(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=oq(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<sq.length;s++)if(sq[s](r,o))return o}return!0},t}();function iq(t){return t[0]>t[1]&&t.reverse(),t}function oq(t,e){return ia(t,e,{includeMainTypes:nq})}var aq={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=At(),a={},s={};(n||r||i)&&(q(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),q(r,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),q(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=[];q(i.getCartesians(),(function(t,e){(U(n,t.getAxis("x").model)>=0||U(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:lq.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){q(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:lq.geo})}))}},sq=[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}],lq={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Pf(t)),e}},uq={lineX:rt(cq,0),lineY:rt(cq,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=[iq([i[0],o[0]]),iq([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]],o=Z(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}));return{values:o,xyMinMax:i}}};function cq(t,e,n,r){var i=n.getAxis(["x","y"][t]),o=iq(Z([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 hq={lineX:rt(fq,0),lineY:rt(fq,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 Z(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function fq(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function pq(t,e){var n=dq(t),r=dq(e),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function dq(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var gq=rq,vq=q,yq=Ko("toolbox-dataZoom_"),mq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new gV(n.getZr()),this._brushController.on("brush",nt(this._onBrush,this)).mount()),wq(t,e,this,r,n),bq(t,e)},e.prototype.onclick=function(t,e,n){_q[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([]);var i=new gq(xq(this.model),r,{include:["grid"]});i.matchOutputRanges(e,r,(function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(o("x",n,e[0]),o("y",n,e[1])):o({lineX:"x",lineY:"y"}[r],n,e)}})),qY(r,n),this._dispatchZoomAction(n)}function o(t,e,i){var o=e.getAxis(t),s=o.model,l=a(t,s,r),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=tB(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function a(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(t,e.componentIndex);i&&(r=n)})),r}},e.prototype._dispatchZoomAction=function(t){var e=[];vq(t,(function(t,n){e.push(V(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(dY),_q={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(ZY(this.ecModel))}};function xq(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function bq(t,e){t.setIconStatus("back",JY(e)>1?"emphasis":"normal")}function wq(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 gq(xq(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()})}mg("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],o=xq(r),a=ia(t,o);return vq(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),vq(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),i}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:yq+e+o};a[n]=o,i.push(a)}}));var Sq=mq;function Mq(t){t.registerComponentModel(_Y),t.registerComponentView(MY),vY("saveAsImage",TY),vY("magicType",LY),vY("dataView",XY),vY("dataZoom",Sq),vY("restore",eq),iM(pY)}var Cq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={zlevel:0,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}(qd),Tq=Cq;function Iq(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Aq(t){if(S.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var Dq=Aq(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),kq=Aq(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Lq(t,e){if(!t)return e;e=md(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function Oq(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var Pq=Lq(kq,"transition"),Eq=Lq(Dq,"transform"),Rq="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(S.transform3dSupported?"will-change:transform;":"");function Nq(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function zq(t,e,n){if(!at(n)||"inside"===n)return"";e=Ld(e);var r=Nq(n),i=r+":-6px;",o=Eq+":";U(["left","right"],r)>-1?(i+="top:50%",o+="translateY(-50%) rotate("+("left"===r?-225:-45)+"deg)"):(i+="left:50%",o+="translateX(-50%) rotate("+("top"===r?225:45)+"deg)");var a=e+" solid 1px;",s=["position:absolute;width:10px;height:10px;",i+";"+o+";","border-bottom:"+a,"border-right:"+a,"background-color:"+t+";","box-shadow:8px 8px 16px -3px #000;"];return'<div style="'+s.join("")+'"></div>'}function Bq(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+=S.transformSupported?","+Eq+r:",left"+r+",top"+r),Pq+":"+i}function Vq(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!S.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=S.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+Eq+":"+a+";":[["top",0],["left",0],[Dq,a]]}function Fq(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),q(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function Gq(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=Uy(t,"html"),f=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(Bq(i,n)),o&&(S.canvasSupported?r.push("background-color:"+o):(r.push("background-color:#"+Vn(o)),r.push("filter:alpha(opacity=70)"))),q(["width","color","radius"],(function(e){var n="border-"+e,i=md(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(Fq(c)),null!=h&&r.push("padding:"+_d(h).join("px ")+"px"),r.join(";")+";"}function jq(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&ve(t,a,document.body,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 Hq=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,S.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;jq(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();Ie(n,t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=Oq(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),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=Rq+Gq(t,!this._firstShow,this._longHide)+Vq(i[0],i[1],!0)+"border-color:"+Ld(e)+";"+(t.get("extraCssText")||"")+";pointer-event:"+(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){if(null!=t){var o=this.el;if(at(i)&&"item"===n.get("trigger")&&!Iq(n)&&(t+=zq(n.get("backgroundColor"),r,i)),at(t))o.innerHTML=t;else if(t){o.innerHTML="",it(t)||(t=[t]);for(var a=0;a<t.length;a++)ft(t[a])&&t[a].parentNode!==o&&o.appendChild(t[a])}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.clientWidth,t.clientHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(jq(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style,i=Vq(n[0],n[1]);q(i,(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",S.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(nt(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t.prototype.getOuterSize=function(){var t=this.el.clientWidth,e=this.el.clientHeight,n=Oq(this.el);return n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)),{width:t,height:e}},t}(),Wq=Hq,Uq=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),Yq(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){ut(t)&&Lg(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new yu({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:r,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:o.get("textShadowColor"),textShadowBlur:o.get("textShadowBlur")||0,textShadowOffsetX:o.get("textShadowOffsetX")||0,textShadowOffsetY:o.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:Uy(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var a=this;this.el.on("mouseover",(function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0})),this.el.on("mouseout",(function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=$q(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;Yq(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=Xq(i.borderWidth||0),a=$q(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||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(nt(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.getOuterSize=function(){var t=this.getSize();return{width:t[0],height:t[1]}},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Xq(t){return Math.max(0,t)}function $q(t){var e=Xq(t.shadowBlur||0),n=Xq(t.shadowOffsetX||0),r=Xq(t.shadowOffsetY||0);return{left:Xq(e-n),right:Xq(e+n),top:Xq(e-r),bottom:Xq(e+r)}}function Yq(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var qq=Uq,Zq=nt,Kq=q,Jq=lo,Qq=new ru({shape:{x:-1,y:-1,width:2,height:2}}),tZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(t,e){if(!S.node){var n=t.getComponent("tooltip"),r=n.get("renderMode");this._renderMode=ha(r),this._tooltipContent="richText"===this._renderMode?new qq(e):new Wq(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!S.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");DU("itemTooltip",this._api,Zq((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!S.node){var i=nZ(r,n);this._ticket="";var o=r.dataByCoordSys,a=sZ(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=Qq;l.x=r.x,l.y=r.y,l.update(),mu(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=BU(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._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(nZ(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){var l=s.getData(),u=eZ([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.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,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a;this._lastDataByCoordSys=null,tx(n,(function(t){return null!=mu(t).dataIndex?(o=t,!0):null!=mu(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=nt(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=eZ([e.tooltipOption],r),a=this._renderMode,s=[],l=Py("section",{blocks:[],noHeader:!0}),u=[],c=new Xy;Kq(t,(function(t){Kq(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var i=dU(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),o=Py("section",{header:i,noHeader:!St(i),sortBlocks:!0,blocks:[]});l.blocks.push(o),q(t.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=h.getDataParams(f);p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=_T(e.axis,{value:r}),p.axisValueLabel=i,p.marker=c.makeTooltipMarker("item",Ld(p.color),a);var d=ny(h.formatTooltip(f,!0,null));d.markupFragment&&o.blocks.push(d.markupFragment),d.markupText&&u.push(d.markupText),s.push(p)}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,f=o.get("order"),p=zy(l,c,a,f,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var d="richText"===a?"\n\n":"<br/>",g=u.join(d);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t)?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=mu(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,f=t.positionDefault,p=eZ([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),d=p.get("trigger");if(null==d||"item"===d){var g=s.getDataParams(l,u),v=new Xy;g.marker=v.makeTooltipMarker("item",Ld(g.color),h);var y=ny(s.formatTooltip(l,!1,u)),m=p.get("order"),_=y.markupFragment?zy(y.markupFragment,v,h,m,r.get("useUTC"),p.get("textStyle")):y.markupText,x="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,_,g,x,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=mu(e),i=r.tooltipConfig,o=i.option||{};if(at(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=eZ(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),f=Math.random()+"",p=new Xy;this._showOrMove(c,(function(){var n=V(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,f,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,c=t.get("formatter");a=a||t.get("position");var h=e,f=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),p=f.color;if(c&&at(c)){var d=t.ecModel.get("useUTC"),g=it(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,v&&(h=Qp(g.axisValue,h,d)),h=Td(h,n,!0)}else if(ot(c)){var y=Zq((function(e,r){e===this._ticket&&(u.setContent(r,l,t,p,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,y)}u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||it(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:it(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"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),ot(e)&&(e=e([n,r],o,i.el,f,{viewSize:[s,l],contentSize:u.slice()})),it(e))n=Jq(e[0],s),r=Jq(e[1],l);else if(ut(e)){var p=e;p.width=u[0],p.height=u[1];var d=Vd(p,{width:s,height:l});n=d.x,r=d.y,c=null,h=null}else if(at(e)&&a){var g=oZ(e,f,u);n=g[0],r=g[1]}else{g=rZ(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=aZ(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=aZ(h)?u[1]/2:"bottom"===h?u[1]:0),Iq(t)){g=iZ(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&Kq(e,(function(e,r){var i=e.dataByAxis||[],o=t[r]||{},a=o.dataByAxis||[];n=n&&i.length===a.length,n&&Kq(i,(function(t,e){var r=a[e]||{},i=t.seriesDataIndices||[],o=r.seriesDataIndices||[];n=n&&t.value===r.value&&t.axisType===r.axisType&&t.axisId===r.axisId&&i.length===o.length,n&&Kq(i,(function(t,e){var r=o[e];n=n&&t.seriesIndex===r.seriesIndex&&t.dataIndex===r.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){S.node||(this._tooltipContent.dispose(),RU("itemTooltip",e))},e.type="tooltip",e}(lm);function eZ(t,e,n){var r,i=e.ecModel;n?(r=new bp(n,i,i),r=new bp(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof bp&&(a=a.get("tooltip",!0)),at(a)&&(a={formatter:a}),a&&(r=new bp(a,r,i)))}return r}function nZ(t,e){return t.dispatchAction||nt(e.dispatchAction,e)}function rZ(t,e,n,r,i,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function iZ(t,e,n,r,i){var o=n.getOuterSize(),a=o.width,s=o.height;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]}function oZ(t,e,n){var r=n[0],i=n[1],o=10,a=5,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-r/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+o;break;case"left":s=e.x-r-o-a,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o+a,l=e.y+c/2-i/2}return[s,l]}function aZ(t){return"center"===t||"middle"===t}function sZ(t,e,n){var r=oa(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=la(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=mu(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var lZ=tZ;function uZ(t){iM(KU),t.registerComponentModel(Tq),t.registerComponentView(lZ),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))}var cZ=["rect","polygon","keep","clear"];function hZ(t,e){var n=Eo(t?t.brush:[]);if(n.length){var r=[];q(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))}));var i=t&&t.toolbox;it(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),fZ(s),e&&!s.length&&s.push.apply(s,cZ)}}function fZ(t){var e={};q(t,(function(t){e[t]=1})),t.length=0,q(e,(function(e,n){t.push(n)}))}var pZ=q;function dZ(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function gZ(t,e,n){var r={};return pZ(e,(function(e){var o=r[e]=i();pZ(t[e],(function(t,r){if(lR.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new lR(i),"opacity"===r&&(i=V(i),i.type="colorAlpha",o.__hidden.__alphaForOpacity=new lR(i))}}))})),r;function i(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function vZ(t,e,n){var r;q(n,(function(t){e.hasOwnProperty(t)&&dZ(e[t])&&(r=!0)})),r&&q(n,(function(n){e.hasOwnProperty(n)&&dZ(e[n])?t[n]=V(e[n]):delete t[n]}))}function yZ(t,e,n,r,i,o){var a,s={};function l(t){return u_(n,a,t)}function u(t,e){h_(n,a,t,e)}function c(t,c){a=null==o?t:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var f=r.call(i,t),p=e[f],d=s[f],g=0,v=d.length;g<v;g++){var y=d[g];p[y]&&p[y].applyVisual(t,l,u)}}q(t,(function(t){var n=lR.prepareVisualTypes(e[t]);s[t]=n})),null==o?n.each(c):n.each([o],c)}function mZ(t,e,n,r){var i={};return q(t,(function(t){var n=lR.prepareVisualTypes(e[t]);i[t]=n})),{progress:function(t,o){var a,s;function l(t){return u_(o,s,t)}function u(t,e){h_(o,s,t,e)}null!=r&&(a=o.getDimension(r));while(null!=(s=t.next())){var c=o.getRawDataItem(s);if(!c||!1!==c.visualMap)for(var h=null!=r?o.get(a,s):s,f=n(h),p=e[f],d=i[f],g=0,v=d.length;g<v;g++){var y=d[g];p[y]&&p[y].applyVisual(h,l,u)}}}}}function _Z(t){var e=t.brushType,n={point:function(r){return xZ[e].point(r,n,t)},rect:function(r){return xZ[e].rect(r,n,t)}};return n}var xZ={lineX:bZ(0),lineY:bZ(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])&&Ob(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!!(Ob(r,i,o)||Ob(r,i+a,o)||Ob(r,i,o+s)||Ob(r,i+a,o+s)||_i.create(t).contain(l[0],l[1])||jf(i,o,i+a,o,r)||jf(i,o,i,o+s,r)||jf(i+a,o,i+a,o+s,r)||jf(i,o+s,i+a,o+s,r))||void 0}}};function bZ(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range,o=e[t];return wZ(o,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(),wZ(s[0],a)||wZ(s[1],a)||wZ(a[0],s)||wZ(a[1],s)}}}}function wZ(t,e){return e[0]<=t&&t<=e[1]}var SZ=["inBrush","outOfBrush"],MZ="__ecBrushSelect",CZ="__ecInBrushSelectEvent";function TZ(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new gq(e.option,t);n.setInputRanges(e.areas,t)}))}function IZ(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})})),TZ(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:V(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],h=[],f=!1;n||(r=s.throttleType,i=s.throttleDelay);var p=Z(e.areas,(function(t){var e=OZ[t.brushType],n=H({boundingRect:e?e(t):void 0},t);return n.selectors=_Z(n),n})),d=gZ(e.option,SZ,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function v(t){return!!t.length}function y(t,e){var n=t.coordinateSystem;f=f||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}function m(n,r,i){if(n.brushSelector&&!LZ(e,r)&&(q(p,(function(r){e.brushTargetManager.controlSeries(r,n,t)&&i.push(r),f=f||v(i)})),g(r)&&v(i))){var o=n.getData();o.each((function(t){kZ(n,i,o,t)&&(c[t]=1)}))}}it(l)&&q(l,(function(t){u[t]=1})),t.eachSeries((function(t,e){var n=h[e]=[];"parallel"===t.subType?y(t,e):m(t,e,n)})),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 kZ(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?f:v(r))&&yZ(SZ,d,i,o)}))})),AZ(e,r,i,o,n)}function AZ(t,e,n,r,i){if(i){var o=t.getZr();if(!o[CZ]){o[MZ]||(o[MZ]=DZ);var a=Sm(o,MZ,n,e);a(t,r)}}}function DZ(t,e){if(!t.isDisposed()){var n=t.getZr();n[CZ]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[CZ]=!1}}function kZ(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}}function LZ(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(it(n)?U(n,e)<0:e!==n)}var OZ={rect:function(t){return PZ(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&&PZ(e)}};function PZ(t){return new _i(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var EZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new gV(e.getZr())).on("brush",nt(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){TZ(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:V(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:V(n),$from:e})},e.type="brush",e}(lm),RZ=EZ,NZ="#ddd",zZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return v(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&vZ(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:NZ},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=Z(t,(function(t){return BZ(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=BZ(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}(qd);function BZ(t,e){return F({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new bp(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var VZ=zZ,FZ=["rect","polygon","lineX","lineY","keep","clear"],GZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(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,q(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 q(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){var e={show:!0,type:FZ.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.getLocale(["toolbox","brush","title"])};return e},e}(dY),jZ=GZ;function HZ(t){t.registerComponentView(RZ),t.registerComponentModel(VZ),t.registerPreprocessor(hZ),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,IZ),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"},(function(){})),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){})),vY("brush",jZ)}var WZ=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 v(e,t),e.type="title",e.defaultOption={zlevel:0,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}(qd),UZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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=mt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new yu({style:Jf(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new yu({style:Jf(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),p=t.get("sublink"),d=t.get("triggerEvent",!0);l.silent=!f&&!d,h.silent=!p&&!d,f&&l.on("click",(function(){Od(f,"_"+t.get("target"))})),p&&h.on("click",(function(){Od(p,"_"+t.get("subtarget"))})),mu(l).eventData=mu(h).eventData=d?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=Vd(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=r.getBoundingRect();var _=y.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new ru({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}(lm);function XZ(t){t.registerComponentModel(WZ),t.registerComponentView(UZ)}var $Z=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return v(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=[],q(n,(function(e,n){var r,o=Yo(zo(e),"");ut(e)?(r=V(e),r.value=n):r=n,t.push(r),i.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number",a=this._data=new jM([{name:"value",type:o}],this);a.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={zlevel:0,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}(qd),YZ=$Z,qZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="timeline.slider",e.defaultOption=Tp(YZ.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}(YZ);$(qZ,ey.prototype);var ZZ=qZ,KZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="timeline",e}(lm),JZ=KZ,QZ=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o}return v(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(JT),tK=QZ,eK=Math.PI,nK=na(),rK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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){var e=a.scale.getLabel({value:t});return Py("nameValue",{noName:!0,value:e})},q(["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=t.get(["label","position"]),i=t.get("orient"),o=oK(t,e);n=null==r||"auto"===r?"horizontal"===i?o.y+o.height/2<e.getHeight()/2?"-":"+":o.x+o.width/2<e.getWidth()/2?"+":"-":at(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][r]:r;var a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:eK/2},f="vertical"===i?o.height:o.width,p=t.getModel("controlStyle"),d=p.get("show",!0),g=d?p.get("itemSize"):0,v=d?p.get("itemGap"):0,y=g+v,m=t.get(["label","rotate"])||0;m=m*eK/180;var _=p.get("position",!0),x=d&&p.get("showPlayBtn",!0),b=d&&p.get("showPrevBtn",!0),w=d&&p.get("showNextBtn",!0),S=0,M=f;"left"===_||"bottom"===_?(x&&(a=[0,0],S+=y),b&&(s=[S,0],S+=y),w&&(l=[M-g,0],M-=y)):(x&&(a=[M-g,0],M-=y),b&&(s=[0,0],S+=y),w&&(l=[M-g,0],M-=y));var C=[S,M];return t.get("inverse")&&C.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:h[i],labelRotation:m,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[i],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:C,controlSize:g,controlGap:v}},e.prototype._position=function(t,e){var n=this._mainGroup,r=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var o=jr(),a=i.x,s=i.y+i.height;Xr(o,o,[-a,-s]),$r(o,o,-eK/2),Xr(o,o,[a,s]),i=i.clone(),i.applyTransform(o)}var l=v(i),u=v(n.getBoundingRect()),c=v(r.getBoundingRect()),h=[n.x,n.y],f=[r.x,r.y];f[0]=h[0]=l[0][0];var p=t.labelPosOpt;if(null==p||at(p)){var d="+"===p?0:1;y(h,u,l,1,d),y(f,c,l,1,1-d)}else{d=p>=0?0:1;y(h,u,l,1,d),f[1]=h[1]+p}function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function y(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}n.setPosition(h),r.setPosition(f),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=iK(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.niceTicks();var a=new tK("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Ui;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 zh({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:j({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new zh({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:H({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=[],q(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:nt(i._changeTimeline,i,t.value)},f=sK(s,l,e,h);f.ensureState("emphasis").style=u.getItemStyle(),f.ensureState("progress").style=c.getItemStyle(),mc(f);var p=mu(f);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=r):p.dataIndex=p.dataModel=null,i._tickSymbols.push(f)}))},e.prototype._renderAxisLabel=function(t,e,n,r){var i=this,o=n.getLabelModel();if(o.get("show")){var a=r.getData(),s=n.getViewLabels();this._tickLabels=[],q(s,(function(r){var o=r.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),f=new yu({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:nt(i._changeTimeline,i,o),silent:!1,style:Jf(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});f.ensureState("emphasis").style=Jf(u),f.ensureState("progress").style=Jf(c),e.add(f),mc(f),nK(f).dataIndex=o,i._tickLabels.push(f)}))}},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=ki(mt(r.get(["controlStyle",n+"BtnSize"]),i),i),h=[0,-c/2,c,c],f=aK(r,n+"Icon",h,{x:t[0],y:t[1],originX:i/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});f.ensureState("emphasis").style=s,e.add(f),mc(f)}}c(t.nextBtnPosition,"next",nt(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",nt(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",nt(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=nt(s._handlePointerDrag,s),t.ondragend=nt(s._handlePointerDragend,s),lK(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){lK(t,s._progressLine,o,n,r)}};this._currentPointer=sK(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=this._axis,i=co(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.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){var e=this._mainGroup.getLocalTransform();return Ef(t,e,!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",nK(n[r]).dataIndex<=t)},e.type="timeline.slider",e}(JZ);function iK(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new _C({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new ZC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new wC}}function oK(t,e){return Vd(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function aK(t,e,n,r){var i=r.style,o=Gf(t.get(["controlStyle",e]),r||{},new _i(n[0],n[1],n[2],n[3]));return i&&o.setStyle(i),o}function sK(t,e,n,r,i,o){var a=e.get("color");if(i)i.setColor(a),n.add(i),o&&o.onUpdate(i);else{var s=t.get("symbol");i=px(s,-1,-1,2,2,a),i.setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),r=F({rectHover:!0,z2:100},r,!0);var u=t.get("symbolSize");u=u instanceof Array?u.slice():[+u,+u],r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=t.get("symbolOffset");c&&(r.x=r.x||0,r.y=r.y||0,r.x+=lo(c[0],u[0]),r.y+=lo(c[1],u[1]));var h=t.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function lK(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)}}}var uK=rK;function cK(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),H({currentIndex:n.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}function hK(t){var e=t&&t.timeline;it(e)||(e=e?[e]:[]),q(e,(function(t){t&&fK(t)}))}function fK(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),pK(t),dK(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});dK(r,"position")||(r.position=t.controlPosition),"none"!==r.position||dK(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}q(t.data||[],(function(t){ut(t)&&!it(t)&&(!dK(t,"value")&&dK(t,"name")&&(t.value=t.name),pK(t))}))}function pK(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};q(r,(function(t,e){o[e]||dK(i,e)||(i[e]=t)})),n.label&&!dK(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function dK(t,e){return t.hasOwnProperty(e)}function gK(t){t.registerComponentModel(ZZ),t.registerComponentView(uK),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),cK(t),t.registerPreprocessor(hK)}function vK(t,e){if(!t)return!1;for(var n=it(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function yK(t){Ro(t,"label",["show"])}var mK=na(),_K=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return v(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(S.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=mK(t)[i];n&&n.data?(o?o._mergeOption(n,e,!0):(r&&yK(n),q(n.data,(function(t){t instanceof Array?(yK(t[0]),yK(t[1])):yK(t)})),o=this.createMarkerModelFromSeries(n,this,e),j(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),mK(t)[i]=o):mK(t)[i]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return Py("section",{header:this.name,blocks:[Py("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.getMarkerModelFromSeries=function(t,e){return mK(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(qd);$(_K,ey.prototype);var xK=_K,bK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markPoint",e.defaultOption={zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(xK),wK=bK;function SK(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function MK(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function CK(t,e,n,r,i,o){var a=[],s=QM(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=OK(e,l,t),c=e.indicesOfNearest(l,u)[0];a[i]=e.get(n,c),a[o]=e.get(l,c);var h=e.get(r,c),f=ho(e.get(r,c));return f=Math.min(f,20),f>=0&&(a[o]=+a[o].toFixed(f)),[a,h]}var TK={min:rt(CK,"min"),max:rt(CK,"max"),average:rt(CK,"average"),median:rt(CK,"median")};function IK(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!MK(e)&&!it(e.coord)&&r){var i=r.dimensions,o=AK(e,n,r,t);if(e=V(e),e.type&&TK[e.type]&&o.baseAxis&&o.valueAxis){var a=U(i,o.baseAxis.dim),s=U(i,o.valueAxis.dim),l=TK[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;c<2;c++)TK[u[c]]&&(u[c]=OK(n,n.mapDimension(i[c]),u[c]));e.coord=u}}return e}function AK(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(DK(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 DK(t,e){var n=t.getData(),r=n.dimensions;e=n.getDimension(e);for(var i=0;i<r.length;i++){var o=n.getDimensionInfo(r[i]);if(o.name===e)return o.coordDim}}function kK(t,e){return!(t&&t.containData&&e.coord&&!SK(e))||t.containData(e.coord)}function LK(t,e,n,r){return r<2?t.coord&&t.coord[r]:t.value}function OK(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 PK=na(),EK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(){this.markerGroupMap=At()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){PK(t).keep=!1})),e.eachSeries((function(t){var i=xK.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!PK(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){PK(t).keep=!0},e.prototype.blurSeries=function(t){var e=this;q(t,(function(t){var n=xK.getMarkerModelFromSeries(t,e.type);if(n){var r=n.getData();r.eachItemGraphicEl((function(t){t&&rc(t)}))}}))},e.type="marker",e}(lm),RK=EK;function NK(t,e,n){var r=e.coordinateSystem;t.each((function(i){var o,a=t.getItemModel(i),s=lo(a.get("x"),n.getWidth()),l=lo(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 zK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=xK.getMarkerModelFromSeries(t,"markPoint");e&&(NK(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 BA),u=BK(i,t,e);e.setData(u),NK(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");if(ot(r)||ot(i)||ot(o)){var s=e.getRawValue(t),l=e.getDataParams(t);ot(r)&&(r=r(s,l)),ot(i)&&(i=i(s,l)),ot(o)&&(o=o(s,l))}var c=n.getModel("itemStyle").getItemStyle(),h=c_(a,"color");c.fill||(c.fill=h),u.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,style:c})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){mu(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(RK);function BK(t,e,n){var r;r=t?Z(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return H({name:t},n)})):[{name:"value",type:"float"}];var i=new jM(r,n),o=Z(n.get("data"),rt(IK,e));return t&&(o=J(o,rt(kK,t))),i.initData(o,null,t?LK:function(t){return t.value}),i}var VK=zK;function FK(t){t.registerComponentModel(wK),t.registerComponentView(VK),t.registerPreprocessor((function(t){vK(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var GK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markLine",e.defaultOption={zlevel:0,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}(xK),jK=GK,HK=na(),WK=function(t,e,n,r){var i,o=t.getData();if(it(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=yt(r.yAxis,r.xAxis);else{var u=AK(r,o,e,t);s=u.valueAxis;var c=tC(o,u.valueDataDim);l=OK(o,c,a)}var h="x"===s.dim?0:1,f=1-h,p=V(r),d={coord:[]};p.type=null,p.coord=[],p.coord[f]=-1/0,d.coord[f]=1/0;var g=n.get("precision");g>=0&&"number"===typeof l&&(l=+l.toFixed(Math.min(g,20))),p.coord[h]=d.coord[h]=l,i=[p,d,{type:a,valueIndex:r.valueIndex,value:l}]}else i=[]}var v=[IK(t,i[0]),IK(t,i[1]),j({},i[2])];return v[2].type=v[2].type||null,F(v[2],v[0]),F(v[2],v[1]),v};function UK(t){return!isNaN(t)&&!isFinite(t)}function XK(t,e,n,r){var i=1-t,o=r.dimensions[t];return UK(e[i])&&UK(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function $K(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(XK(1,n,r,t)||XK(0,n,r,t)))return!0}return kK(t,e[0])&&kK(t,e[1])}function YK(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=lo(s.get("x"),i.getWidth()),u=lo(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),f=t.get(c[1],e);o=a.dataToPoint([h,f])}if(iD(a,"cartesian2d")){var p=a.getAxis("x"),d=a.getAxis("y");c=a.dimensions;UK(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):UK(t.get(c[1],e))&&(o[1]=d.toGlobalCoord(d.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var qK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=xK.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=HK(e).from,o=HK(e).to;i.each((function(e){YK(i,e,!0,t,n),YK(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 RN);this.group.add(l.group);var u=ZK(i,t,e),c=u.from,h=u.to,f=u.line;HK(e).from=c,HK(e).to=h,e.setData(f);var p=e.get("symbol"),d=e.get("symbolSize"),g=e.get("symbolRotate"),v=e.get("symbolOffset");function y(e,n,i){var o=e.getItemModel(n);YK(e,n,i,t,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=c_(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:mt(o.get("symbolOffset"),v[i?0:1]),symbolRotate:mt(o.get("symbolRotate",!0),g[i?0:1]),symbolSize:mt(o.get("symbolSize"),d[i?0:1]),symbol:mt(o.get("symbol",!0),p[i?0:1]),style:s})}it(p)||(p=[p,p]),it(d)||(d=[d,d]),it(g)||(g=[g,g]),it(v)||(v=[v,v]),u.from.each((function(t){y(c,t,!0),y(h,t,!1)})),f.each((function(t){var e=f.getItemModel(t).getModel("lineStyle").getLineStyle();f.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),f.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(f),u.line.eachItemGraphicEl((function(t,n){t.traverse((function(t){mu(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(RK);function ZK(t,e,n){var r;r=t?Z(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return H({name:t},n)})):[{name:"value",type:"float"}];var i=new jM(r,n),o=new jM(r,n),a=new jM([],n),s=Z(n.get("data"),rt(WK,e,t,n));t&&(s=J(s,rt($K,t)));var l=t?LK:function(t){return t.value};return i.initData(Z(s,(function(t){return t[0]})),null,l),o.initData(Z(s,(function(t){return t[1]})),null,l),a.initData(Z(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}var KK=qK;function JK(t){t.registerComponentModel(jK),t.registerComponentView(KK),t.registerPreprocessor((function(t){vK(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var QK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markArea",e.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(xK),tJ=QK,eJ=na(),nJ=function(t,e,n,r){var i=IK(t,r[0]),o=IK(t,r[1]),a=i.coord,s=o.coord;a[0]=yt(a[0],-1/0),a[1]=yt(a[1],-1/0),s[0]=yt(s[0],1/0),s[1]=yt(s[1],1/0);var l=G([{},i,o]);return l.coord=[i.coord,o.coord],l.x0=i.x,l.y0=i.y,l.x1=o.x,l.y1=o.y,l};function rJ(t){return!isNaN(t)&&!isFinite(t)}function iJ(t,e,n,r){var i=1-t;return rJ(e[i])&&rJ(n[i])}function oJ(t,e){var n=e.coord[0],r=e.coord[1];return!!(iD(t,"cartesian2d")&&n&&r&&(iJ(1,n,r,t)||iJ(0,n,r,t)))||(kK(t,{coord:n,x:e.x0,y:e.y0})||kK(t,{coord:r,x:e.x1,y:e.y1}))}function aJ(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=lo(s.get(n[0]),i.getWidth()),u=lo(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(n,e));else{var c=t.get(n[0],e),h=t.get(n[1],e),f=[c,h];a.clampData&&a.clampData(f,f),o=a.dataToPoint(f,!0)}if(iD(a,"cartesian2d")){var p=a.getAxis("x"),d=a.getAxis("y");c=t.get(n[0],e),h=t.get(n[1],e);rJ(c)?o[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):rJ(h)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var sJ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],lJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=xK.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=Z(sJ,(function(i){return aJ(r,e,i,t,n)}));r.setItemLayout(e,i);var o=r.getItemGraphicEl(e);o.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 Ui});this.group.add(l.group),this.markKeep(l);var u=uJ(i,t,e);e.setData(u),u.each((function(e){var n=Z(sJ,(function(n){return aJ(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))],f=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];co(h),co(f);var p=!(l[0]>h[1]||l[1]<h[0]||c[0]>f[1]||c[1]<f[0]),d=!p;u.setItemLayout(e,{points:n,allClipped:d});var g=u.getItemModel(e).getModel("itemStyle").getItemStyle(),v=c_(a,"color");g.fill||(g.fill=v,"string"===typeof g.fill&&(g.fill=Un(g.fill,.4))),g.stroke||(g.stroke=v),u.setItemVisual(e,"style",g)})),u.diff(eJ(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new kh({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var r=eJ(l).data.getItemGraphicEl(n),i=u.getItemLayout(t);i.allClipped?r&&l.group.remove(r):(r?If(r,{shape:{points:i.points}},e,t):r=new kh({shape:{points:i.points}}),u.setItemGraphicEl(t,r),l.group.add(r))})).remove((function(t){var e=eJ(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")),Zf(t,Kf(r),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:"string"===typeof i.fill?Un(i.fill,1):"#000"}),wc(t,r),mc(t),mu(t).dataModel=e})),eJ(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(RK);function uJ(t,e,n){var r,i,o=["x0","y0","x1","y1"];t?(r=Z(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return H({name:t},r)})),i=new jM(Z(o,(function(t,e){return{name:t,type:r[e%2].type}})),n)):(r=[{name:"value",type:"float"}],i=new jM(r,n));var a=Z(n.get("data"),rt(nJ,e,t,n));t&&(a=J(a,rt(oJ,t)));var s=t?function(t,e,n,r){return t.coord[Math.floor(r/2)][r%2]}:function(t){return t.value};return i.initData(a,null,s),i.hasItemOption=!0,i}var cJ=lJ;function hJ(t){t.registerComponentModel(tJ),t.registerComponentView(cJ),t.registerPreprocessor((function(t){vK(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var fJ=function(t,e){return"all"===e?{type:"all",title:t.getLocale(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocale(["legend","selector","inverse"])}:void 0},pJ=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 v(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"]),it(e)&&q(e,(function(t,r){at(t)&&(t={type:t}),e[r]=F(t,fJ(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,s=a.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(s)),s.length?e=e.concat(s):i=!0}else i=!0;i&&qo(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,i=Z(r,(function(t){return"string"!==typeof t&&"number"!==typeof t||(t={name:t}),new bp(t,this,this.ecModel)}),this);this._data=i},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var r=this._data;q(r,(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;q(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;q(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])&&U(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={zlevel:0,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",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,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",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},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}(qd),dJ=pJ,gJ=rt,vJ=q,yJ=Ui,mJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return v(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new yJ),this.group.add(this._selectorGroup=new yJ),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=Vd(l,u,c),f=this.layoutInner(t,i,h,r,a,s),p=Vd(H({width:f.width,height:f.height},l),u,c);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=bY(f,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=At(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),vJ(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new yJ;return h.newline=!0,void s.add(h)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var p=f.getData(),d=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),y=this._createItem(f,a,o,i,e,t,d,v,g,u);y.on("click",gJ(bJ,a,null,r,c)).on("mouseover",gJ(SJ,f.name,null,r,c)).on("mouseout",gJ(MJ,f.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),f=s.getItemVisual(h,"style"),p=s.getItemVisual(h,"legendIcon"),d=Rn(f.fill);d&&0===d[3]&&(d[3]=.2,f.fill=Xn(d,"rgba"));var g=this._createItem(n,a,o,i,e,t,{},f,p,u);g.on("click",gJ(bJ,null,a,r,c)).on("mouseover",gJ(SJ,null,a,r,c)).on("mouseout",gJ(MJ,null,a,r,c)),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();vJ(t,(function(t){var r=t.type,i=new yu({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Zf(i,{normal:a,emphasis:s},{defaultText:t.title}),mc(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u){var c=t.visualDrawType,h=i.get("itemWidth"),f=i.get("itemHeight"),p=i.isSelected(e),d=r.get("symbolRotate"),g=r.get("icon");l=g||l||"roundRect";var v=i.getModel("lineStyle"),y=_J(l,r,v,a,s,c,p),m=new yJ,_=r.getModel("textStyle");if("function"!==typeof t.getLegendIcon||g&&"inherit"!==g){var x="inherit"===g&&t.getData().getVisual("symbol")?"inherit"===d?t.getData().getVisual("symbolRotate"):d:0;m.add(xJ({itemWidth:h,itemHeight:f,icon:l,iconRotate:x,itemStyle:y.itemStyle,lineStyle:y.lineStyle}))}else m.add(t.getLegendIcon({itemWidth:h,itemHeight:f,icon:l,iconRotate:d,itemStyle:y.itemStyle,lineStyle:y.lineStyle}));var b="left"===o?h+5:-5,w=o,S=i.get("formatter"),M=e;"string"===typeof S&&S?M=S.replace("{name}",null!=e?e:""):"function"===typeof S&&(M=S(e));var C=r.get("inactiveColor");m.add(new yu({style:Jf(_,{text:M,x:b,y:f/2,fill:p?_.getTextColor():C,align:w,verticalAlign:"middle"})}));var T=new ru({shape:m.getBoundingRect(),invisible:!0}),I=r.getModel("tooltip");return I.get("show")&&Xf({el:T,componentModel:i,itemName:e,itemTooltipOption:I.option}),m.add(T),m.eachChild((function(t){t.silent=!0})),T.silent=!u,this.getContentGroup().add(m),mc(m),m.__legendDataIndex=n,m},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();zd(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){zd("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),p=t.getOrient().index,d=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[d]+f:u[p]+=c[d]+f,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 y={x:0,y:0};return y[d]=l[d]+f+c[d],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-p]),y}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}(lm);function _J(t,e,n,r,i,o,a){for(var s=e.getModel("itemStyle"),l=yp.concat([["decal"]]),u={},c=0;c<l.length;++c){var h=l[c][l[c].length-1],f=l[c][0],p=s.getShallow(h);if("inherit"===p)switch(f){case"fill":u.fill=i[o];break;case"stroke":u.stroke=i[0===t.lastIndexOf("empty",0)?"fill":"stroke"];break;case"opacity":u.opacity=("fill"===o?i:r).opacity;break;default:u[f]=i[f]}else"auto"===p&&"lineWidth"===f?u.lineWidth=i.lineWidth>0?2:0:u[f]=p}var d=e.getModel("lineStyle"),g=dp.concat([["inactiveColor"],["inactiveWidth"]]),v={};for(c=0;c<g.length;++c){h=g[c][1],f=g[c][0],p=d.getShallow(h);"inherit"===p?v[f]=r[f]:"auto"===p&&"lineWidth"===f?v.lineWidth=r.lineWidth>0?2:0:v[f]=p}if("auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===v.stroke&&(v.stroke=i.fill),!a){var y=e.get("inactiveBorderWidth"),m=u[t.indexOf("empty")>-1?"fill":"stroke"];u.lineWidth="auto"===y?i.lineWidth>0&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=n.get("inactiveColor"),v.lineWidth=n.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function xJ(t){var e=t.icon||"roundRect",n=px(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function bJ(t,e,n,r){MJ(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),SJ(t,e,n,r)}function wJ(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(r<i&&!(e=n[r].states.emphasis))r++;return e&&e.hoverLayer}function SJ(t,e,n,r){wJ(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function MJ(t,e,n,r){wJ(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var CJ=mJ;function TJ(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 IJ(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name));var a=n.getData();q(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);i.hasOwnProperty(e)?i[e]=i[e]&&r:i[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function AJ(t){t.registerAction("legendToggleSelect","legendselectchanged",rt(IJ,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",rt(IJ,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",rt(IJ,"inverseSelect")),t.registerAction("legendSelect","legendselected",rt(IJ,"select")),t.registerAction("legendUnSelect","legendunselected",rt(IJ,"unSelect"))}function DJ(t){t.registerComponentModel(dJ),t.registerComponentView(CJ),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,TJ),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),AJ(t)}var kJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=Wd(e);t.prototype.init.call(this,e,n,r),LJ(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),LJ(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Tp(dJ.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}(dJ);function LJ(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,Hd(e,n,{type:"box",ignoreSize:!!i})}var OJ=kJ,PJ=Ui,EJ=["width","height"],RJ=["x","y"],NJ=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 v(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new PJ),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new PJ)},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=it(c)?c:[c,c];p("pagePrev",0);var f=n.getModel("pageTextStyle");function p(t,e){var r=t+"DataIndex",o=Gf(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:nt(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 yu({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.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=EJ[s],u=RJ[s],c=EJ[1-s],h=RJ[1-s];i&&zd("horizontal",a,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),d=[-p.x,-p.y],g=V(n);i&&(g[l]=n[l]-p[l]-f);var v=this._layoutContentAndController(t,r,g,s,l,c,h,u);if(i){if("end"===o)d[s]+=v[l]+f;else{var y=p[l]+f;d[s]-=y,v[u]-=y}v[l]+=p[l]+f,d[1-s]+=v[h]+v[c]/2-p[c]/2,v[c]=Math.max(v[c],p[c]),v[h]=Math.min(v[h],p[h]+d[1-s]),a.x=d[0],a.y=d[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;zd(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),zd("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),f=c.getBoundingRect(),p=this._showController=h[i]>n[i],d=[-h.x,-h.y];e||(d[r]=l[s]);var g=[0,0],v=[-f.x,-f.y],y=mt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var m=t.get("pageButtonPosition",!0);"end"===m?v[r]+=n[i]-f[i]:g[r]+=f[i]+y}v[1-r]+=h[o]/2-f[o]/2,l.setPosition(d),u.setPosition(g),c.setPosition(v);var _={x:0,y:0};if(_[i]=p?n[i]:h[i],_[o]=Math.max(h[o],f[o]),_[a]=Math.min(0,f[a]+v[1-r]),u.__rectSize=n[i],p){var x={x:0,y:0};x[i]=Math.max(n[i]-f[i]-y,0),x[o]=_[o],u.setClipPath(new ru({shape:x})),u.__rectSize=x[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(t);return null!=b.pageIndex&&If(l,{x:b.contentPosition[0],y:b.contentPosition[1]},p?t:null),this._updatePageInfoView(t,b),_},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;q(["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"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",at(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=EJ[i],a=RJ[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,f={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return f;var p=m(u);f.contentPosition[i]=-p.s;for(var d=s+1,g=p,v=p,y=null;d<=c;++d)y=m(l[d]),(!y&&v.e>g.s+r||y&&!_(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=g.i),++f.pageCount)),v=y;for(d=s-1,g=p,v=p,y=null;d>=-1;--d)y=m(l[d]),y&&_(v,y.s)||!(g.i<v.i)||(v=g,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=g.i),++f.pageCount,++f.pageIndex),g=y;return f;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){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(CJ),zJ=NJ;function BJ(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function VJ(t){iM(DJ),t.registerComponentModel(OJ),t.registerComponentView(zJ),BJ(t)}function FJ(t){iM(DJ),iM(VJ)}var GJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="dataZoom.inside",e.defaultOption=Tp(Z$.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Z$),jJ=GJ,HJ=na();function WJ(t,e,n){HJ(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function UJ(t,e){for(var n=HJ(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,u=s.get(l);u&&(s.removeKey(l),s.keys().length||XJ(n,a))}}}function XJ(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function $J(t,e){var n={model:e,containsPoint:rt(qJ,e),dispatchAction:rt(YJ,t),dataZoomInfoMap:null,controller:null},r=n.controller=new CO(t.getZr());return q(["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}function YJ(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function qJ(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function ZJ(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}}}function KJ(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=HJ(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=At());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=X$(t);q(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,$J(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=At());a.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=ZJ(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Sm(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else XJ(r,t)}))}))}var JJ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return v(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),WJ(r,e,{pan:nt(QJ.pan,this),zoom:nt(QJ.zoom,this),scrollMove:nt(QJ.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){UJ(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(tY),QJ={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=eQ[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 tB(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:tQ((function(t,e,n,r,i,o){var a=eQ[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:tQ((function(t,e,n,r,i,o){var a=eQ[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function tQ(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,r,i);return tB(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var eQ={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}},nQ=JJ;function rQ(t){fY(t),t.registerComponentModel(jJ),t.registerComponentView(nQ),KJ(t)}var iQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Tp(Z$.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Z$),oQ=iQ,aQ=ru,sQ=7,lQ=1,uQ=30,cQ=7,hQ="horizontal",fQ="vertical",pQ=5,dQ=["line","bar","candlestick","scatter"],gQ={easing:"cubicOut",duration:100},vQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return v(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=nt(this._onBrush,this),this._onBrushEnd=nt(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),Sm(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(){Mm(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 Ui;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"),r=n?cQ:0,i=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===hQ?{right:o.width-i.x-i.width,top:o.height-uQ-sQ-r,width:i.width,height:uQ}:{right:sQ,top:i.y,width:uQ,height:i.height},s=Wd(t.option);q(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var l=Vd(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===fQ&&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!==hQ||i?n===hQ&&i?{scaleY:a?1:-1,scaleX:-1}:n!==fQ||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 aQ({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new aQ({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:nt(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=t.series,r=n.getRawData(),i=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=i){var o=r.getDataExtent(i),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s,l=[0,e[1]],u=[0,e[0]],c=[[e[0],0],[0,0]],h=[],f=u[1]/(r.count()-1),p=0,d=Math.round(r.count()/e[0]);r.each([i],(function(t,e){if(d>0&&e%d)p+=f;else{var n=null==t||isNaN(t)||""===t,r=n?0:so(t,o,l,!0);n&&!s&&e?(c.push([c[c.length-1][0],0]),h.push([h[h.length-1][0],0])):!n&&s&&(c.push([p,0]),h.push([p,0])),c.push([p,r]),h.push([p,r]),p+=f,s=n}}));for(var g=this.dataZoomModel,v=0;v<3;v++){var y=m(1===v);this._displayables.sliderGroup.add(y),this._displayables.dataShadowSegs.push(y)}}}function m(t){var e=g.getModel(t?"selectedDataBackground":"dataBackground"),n=new Ui,r=new kh({shape:{points:c},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Ph({shape:{points:h},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){var a=t.getAxisProxy(i,o).getTargetSeriesModels();q(a,(function(t){if(!n&&!(!0!==e&&U(dQ,t.get("type"))<0)){var a,s=r.getComponent(W$(i),o).axis,l=yQ(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 aQ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new aQ({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:lQ,fill:"rgba(0,0,0,0)"}})),q([0,1],(function(e){var o=a.get("handleIcon");!cx[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=px(o,-1,0,2,2,null,!0);s.attr({cursor:mQ(this._orient),draggable:!0,drift:nt(this._onDragMove,this,e),ondragend:nt(this._onDragEnd,this),onmouseover:nt(this._showDataInfo,this,!0),onmouseout:nt(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=lo(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(),mc(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[e]=s);var h=a.getModel("textStyle");t.add(r[e]=new yu({silent:!0,invisible:!0,style:Jf(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 f=lo(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new ru({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:f}}),d=.8*f,g=e.moveHandleIcon=px(a.get("moveHandleIcon"),-d/2,-d/2,d,d,"#fff",!0);g.silent=!0,g.y=o[1]+f/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(f,10));h=e.moveZone=new ru({invisible:!0,shape:{y:o[1]-v,height:f+v}}),h.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:mQ(this._orient),drift:nt(this._onDragMove,this,"all"),ondragstart:nt(this._showDataInfo,this,!0),ondragend:nt(this._onDragEnd,this),onmouseover:nt(this._showDataInfo,this,!0),onmouseout:nt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[so(t[0],[0,100],e,!0),so(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];tB(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?so(o.minSpan,a,i,!0):null,null!=o.maxSpan?so(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=co([so(r[0],i,a,!0),so(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=co(n.slice()),i=this._size;q([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 ru,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=co(this._handleEnds.slice());function h(t){var e=Pf(n.handles[t].parent,this.group),a=Rf(0===t?"right":"left",e),s=this._handleWidth/2+pQ,l=Ef([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:i===hQ?"middle":a,align:i===hQ?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 ot(r)?r(t,o):at(r)?r.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,r){this._dragging=!0,Le(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),o=Ef([e,n],i,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var 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 ui(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,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=co([so(n.x,i,o,!0),so(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Le(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 aQ({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?gQ:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=X$(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}(tY);function yQ(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function mQ(t){return"vertical"===t?"ns-resize":"ew-resize"}var _Q=vQ;function xQ(t){t.registerComponentModel(oQ),t.registerComponentView(_Q),fY(t)}function bQ(t){iM(rQ),iM(xQ)}var wQ={get:function(t,e,n){var r=V((SQ[t]||{})[e]);return n&&it(r)?r[r.length-1]:r}},SQ={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]}},MQ=wQ,CQ=lR.mapVisual,TQ=lR.eachVisual,IQ=it,AQ=q,DQ=co,kQ=so,LQ=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 v(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;S.canvasSupported||(n.realtime=!1),!e&&vZ(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=nt(t,this),this.controllerVisuals=gZ(this.option.controller,e,t),this.targetVisuals=gZ(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=Eo(t),e},e.prototype.eachTargetSeries=function(t,e){q(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||["<",">"],it(t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return at(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):ot(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=DQ([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimension=function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var r=t.dimensions,i=r.length-1;i>=0;i--){var o=r[i],a=t.getDimensionInfo(o);if(!a.isCalculationCoord)return o}}},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={});F(r,n),F(i,n);var o=this.isCategory();function a(n){IQ(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},AQ(r,(function(t,e){if(lR.isValidType(e)){var n=MQ.get(e,"inactive",o);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),a=i||"roundRect";AQ(this.stateList,(function(i){var s=this.itemSize,l=t[i];l||(l=t[i]={color:o?r:[r]}),null==l.symbol&&(l.symbol=e&&V(e)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&V(n)||(o?s[0]:[s[0],s[0]])),l.symbol=CQ(l.symbol,(function(t){return"none"===t?a:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;TQ(u,(function(t){t>c&&(c=t)})),l.symbolSize=CQ(u,(function(t){return kQ(t,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,r),a.call(this,i),s.call(this,r,"inRange","outOfRange"),l.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,zlevel: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}(qd),OQ=LQ,PQ=[20,140],EQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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]=PQ[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=PQ[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):it(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),q(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=co((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.getDataDimension(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=RQ(this,"outOfRange",this.getExtent()),n=RQ(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=Tp(OQ.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}(OQ);function RQ(t,e,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,o=n[0],a=[],s=0;s<=r&&o<n[1];s++)a.push(o),o+=i;return a.push(n[1]),a}var NQ=EQ,zQ=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 v(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=_d(e.get("padding")||0),r=t.getBoundingRect();t.add(new ru({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){n=n||{};var r=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)],c=lR.prepareVisualTypes(u);return q(c,(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),lR.dependsOn(r,e)&&i&&i.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Fd(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(lm),BQ=zQ,VQ=[["left","right","width"],["top","bottom","height"]];function FQ(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=VQ[a],l=[0,null,10],u={},c=0;c<3;c++)u[VQ[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][a],f=Vd(u,o,r.padding);return s[(f.margin[h[2]]||0)+f[h[0]]+.5*f[h[1]]<.5*o[h[1]]?0:1]}function GQ(t,e){return q(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var jQ=so,HQ=q,WQ=Math.min,UQ=Math.max,XQ=12,$Q=6,YQ=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 v(e,t),e.prototype.doRender=function(t,e,n,r){this._api=n,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 yu({style:{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r,font:h.getFont(),fill:h.getTextColor()}}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,i=this._orient,o=this._useHandle,a=FQ(e,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new Ui;s.add(l),l.add(n.outOfRange=qQ()),l.add(n.inRange=qQ(null,o?JQ(this._orient):null,nt(this._dragHandle,this,"all",!1),nt(this._dragHandle,this,"all",!0))),l.setClipPath(new ru({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=UQ(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=nt(this._dragHandle,this,n,!1),s=nt(this._dragHandle,this,n,!0),l=ki(t.get("handleSize"),r[0]),u=px(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=JQ(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Le(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(),Sc(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,f=new yu({cursor:c,draggable:!0,drift:a,onmousemove:function(t){Le(t.event)},ondragend:s,style:{x:0,y:0,text:"",font:h.getFont(),fill:h.getTextColor()}});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[l,0],d=this._shapes;d.handleThumbs[n]=u,d.handleLabelPoints[n]=p,d.handleLabels[n]=f},e.prototype._createIndicator=function(t,e,n,r,i){var o=ki(t.get("indicatorSize"),n[0]),a=px(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 Yl){var l=a.style;a.useStyle(j({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 yu({silent:!0,invisible:!0,style:{x:0,y:0,text:"",font:u.getFont(),fill:u.getTextColor()}});this.group.add(c);var h=[("horizontal"===i?r/2:$Q)+n[0]/2,0],f=this._shapes;f.indicator=a,f.indicatorLabel=c,f.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():KQ(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=[jQ(e[0],n,r,!0),jQ(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]];tB(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[jQ(r[0],i,o,!0),jQ(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 Kh(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=100,r=[],i=(t[1]-t[0])/n;r.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<n;o++){var a=t[0]+i*o;if(a>t[1])break;r.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return r.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),r},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 Ui("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();HQ([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=jQ(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var f=Ef(n.handleLabelPoints[l],Pf(u,this.group));o[l].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[l]),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={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),f=this.getControllerVisual(t,"symbolSize"),p=jQ(t,o,s,!0),d=a[0]-f/2,g={x:u.x,y:u.y};u.y=p,u.x=d;var v=Ef(l.indicatorLabelPoint,Pf(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),_=this._orient,x="horizontal"===_;y.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:x?m:"middle",align:x?"center":m});var b={x:d,y:p,style:{fill:h}},w={style:{x:v[0],y:v[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(b,S),y.animateTo(w,S)}else u.attr(b),y.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var C=0;C<M.length;C++)this._api.enterBlur(M[C])}},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]=WQ(UQ(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=WQ(UQ(i[0],t),i[1]);var a=ZQ(n,o,i),s=[t-a,t+a],l=jQ(t,i,o,!0),u=[jQ(s[0],i,o,!0),jQ(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||KQ(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var f=ta(c,h);this._dispatchHighDown("downplay",GQ(f[0],n)),this._dispatchHighDown("highlight",GQ(f[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=mu(e).dataIndex){var r=mu(e),i=this.ecModel.getSeriesByIndex(r.seriesIndex);if(n.isTargetSeries(i)){var o=i.getData(r.dataType),a=o.get(n.getDataDimension(o),r.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},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",GQ(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=Pf(e,r?null:this.group);return it(t)?Ef(t,i,n):Rf(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.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(BQ);function qQ(t,e,n,r){return new kh({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Le(t.event)},ondragend:r})}function ZQ(t,e,n){var r=XQ/2,i=t.get("hoverLinkDataSize");return i&&(r=jQ(i,e,n,!0)/2),r}function KQ(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function JQ(t){return"vertical"===t?"ns-resize":"ew-resize"}var QQ=YQ,t0={type:"selectDataRange",event:"dataRangeSelected",update:"update"},e0=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},n0=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r=t.pipelineContext;!e.isTargetSeries(t)||r&&r.large||n.push(mZ(e.stateList,e.targetVisuals,nt(e.getValueState,e),e.getDataDimension(t.getData())))})),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(nt(r0,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimension(n),a=n.getDimensionInfo(o);null!=a&&(i.dimension=a.index,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}];function r0(t,e,n,r){for(var i=e.targetVisuals[r],o=lR.prepareVisualTypes(i),a={color:c_(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,f)}return a.color;function h(t){return a[t]}function f(t,e){a[t]=e}}var i0=q;function o0(t){var e=t&&t.visualMap;it(e)||(e=e?[e]:[]),i0(e,(function(t){if(t){a0(t,"splitList")&&!a0(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&it(e)&&i0(e,(function(t){ut(t)&&(a0(t,"start")&&!a0(t,"min")&&(t.min=t.start),a0(t,"end")&&!a0(t,"max")&&(t.max=t.end))}))}}))}function a0(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var s0=!1;function l0(t){s0||(s0=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(t0,e0),q(n0,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(o0))}function u0(t){t.registerComponentModel(NQ),t.registerComponentView(QQ),l0(t)}var c0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return v(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],h0[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=V(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=Z(this._pieceList,(function(t){return t=V(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=lR.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}q(e.pieces,(function(t){q(r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),q(n,(function(t,n){var r=!1;q(this.stateList,(function(t){r=r||o(e,t,n)||o(e.target,t,n)}),this),!r&&q(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=MQ.get(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,q(r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;q(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=V(t)},e.prototype.getValueState=function(t){var e=lR.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.getDataDimension(o),(function(e,r){var o=lR.findPieceIndex(e,n);o===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],o!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return q(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=Tp(OQ.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}(OQ),h0={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;var o=(r[1]-r[0])/i;while(+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]}),To(t),q(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;q(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),f0(e,t)},pieces:function(t){var e=this.option;q(e.pieces,(function(e,n){ut(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],f=0;f<3&&null==o[c];f++)o[c]=e[h[f]],a[c]=s[f],u[c]=2===f;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=lR.retrieveVisuals(e),t.push(r)}),this),f0(e,t),To(t),q(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 f0(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var p0=c0,d0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(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=yt(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),q(l.viewPieceList,(function(r){var l=r.piece,u=new Ui;u.onclick=nt(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var f=this.visualMapModel.getValueState(h);u.add(new yu({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"===f?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),zd(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:GQ(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return FQ(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 Ui,a=this.visualMapModel.textStyleModel;o.add(new yu({style:{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=Z(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){t.add(px(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=V(n.selected),i=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[i]=!0,q(r,(function(t,e){r[e]=e===i}))):r[i]=!r[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})},e.type="visualMap.piecewise",e}(BQ),g0=d0;function v0(t){t.registerComponentModel(p0),t.registerComponentView(g0),l0(t)}function y0(t){iM(u0),iM(v0)}var m0={label:{enabled:!0},decal:{show:!1}},_0=na(),x0={};function b0(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=V(m0);F(r.label,t.getLocaleModel().get("aria"),!1),F(n.option,r,!1),i(),o()}function i(){var e=n.getModel("decal"),r=e.get("show");if(r){var i=At();t.eachSeries((function(t){if(t.useColorPaletteOnData){var e=i.get(t.type);e||(e={},i.set(t.type,e)),_0(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if("function"!==typeof e.enableAriaDecal){var n=e.getData();if(e.useColorPaletteOnData){var r=e.getRawData(),i={},o=_0(e).scope;n.each((function(t){var e=n.getRawIndex(t);i[e]=t}));var a=r.count();r.each((function(t){var s=i[t],l=r.getName(t)||t+"",c=Sg(e.ecModel,l,o,a),h=n.getItemVisual(s,"decal");n.setItemVisual(s,"decal",u(h,c))}))}else{var s=Sg(e.ecModel,e.name,x0,t.getSeriesCount()),l=n.getVisual("decal");n.setVisual("decal",u(l,s))}}else e.enableAriaDecal();function u(t,e){var n=t?j(j({},e),t):e;return n.dirty=!0,n}}))}}function o(){var r=t.getLocaleModel().get("aria"),i=n.getModel("label");if(i.option=H(i.option,r),i.get("enabled")){var o=e.getZr().dom;if(i.get("description"))o.setAttribute("aria-label",i.get("description"));else{var u,c=t.getSeriesCount(),h=i.get(["data","maxCount"])||10,f=i.get(["series","maxCount"])||10,p=Math.min(c,f);if(!(c<1)){var d=s();if(d){var g=i.get(["general","withTitle"]);u=a(g,{title:d})}else u=i.get(["general","withoutTitle"]);var v=[],y=c>1?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]);u+=a(y,{seriesCount:c}),t.eachSeries((function(t,e){if(e<p){var n=void 0,r=t.get("name"),o=r?"withName":"withoutName";n=c>1?i.get(["series","multiple",o]):i.get(["series","single",o]),n=a(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var s=t.getData();if(s.count()>h){var u=i.get(["data","partialData"]);n+=a(u,{displayCnt:h})}else n+=i.get(["data","allData"]);for(var f=[],d=0;d<s.count();d++)if(d<h){var g=s.getName(d),y=Qv(s,d),m=i.get(["data",g?"withName":"withoutName"]);f.push(a(m,{name:g,value:y}))}var _=i.get(["data","separator","middle"]),x=i.get(["data","separator","end"]);n+=f.join(_)+x,v.push(n)}}));var m=i.getModel(["series","multiple","separator"]),_=m.get("middle"),x=m.get("end");u+=v.join(_)+x,o.setAttribute("aria-label",u)}}}}function a(t,e){if("string"!==typeof t)return t;var n=t;return q(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function s(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function l(e){return t.getLocaleModel().get(["series","typeNames"])[e]||"自定义图"}}function w0(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},q(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function S0(t){t.registerPreprocessor(w0),t.registerVisual(t.PRIORITY.VISUAL.ARIA,b0)}var M0={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},C0=function(){function t(t){var e=this._condVal=at(t)?new RegExp(t):gt(t)?t:null;if(null==e){var n="";0,Lg(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return"string"===e?this._condVal.test(t):"number"===e&&this._condVal.test(t+"")},t}(),T0=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),I0=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}(),A0=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}(),D0=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),k0=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),r=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?r:n))return!1;return!0},t}();function L0(t,e){if(!0===t||!1===t){var n=new T0;return n.value=t,n}var r="";return R0(t)||Lg(r),t.and?O0("and",t,e):t.or?O0("or",t,e):t.not?P0(t,e):E0(t,e)}function O0(t,e,n){var r=e[t],i="";it(r)||Lg(i),r.length||Lg(i);var o="and"===t?new I0:new A0;return o.children=Z(r,(function(t){return L0(t,n)})),o.children.length||Lg(i),o}function P0(t,e){var n=t.not,r="";R0(n)||Lg(r);var i=new D0;return i.child=L0(n,e),i.child||Lg(r),i}function E0(t,e){for(var n="",r=e.prepareGetValue(t),i=[],o=tt(t),a=t.parser,s=a?ly(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=Lt(M0,u)?M0[u]:u,h=t[u],f=s?s(h):h,p=py(c,f)||"reg"===c&&new C0(f);p||Lg(n),i.push(p)}}i.length||Lg(n);var d=new k0;return d.valueGetterParam=r,d.valueParser=s,d.getValue=e.getValue,d.subCondList=i,d}function R0(t){return ut(t)&&!Y(t)}var N0=function(){function t(t,e){this._cond=L0(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function z0(t,e){return new N0(t,e)}var B0={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,r=z0(t.config,{valueGetterAttrMap:At({dimension:!0}),prepareGetValue:function(t){var e="",r=t.dimension;Lt(t,"dimension")||Lg(e);var i=n.getDimensionInfo(r);return i||Lg(e),{dimIdx:i.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),i=[],o=0,a=n.count();o<a;o++)e=n.getRawDataItem(o),r.evaluate()&&i.push(e);return{data:i}}};var V0={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",i=Eo(n);i.length||Lg(r);var o=[];q(i,(function(t){var n=t.dimension,i=t.order,a=t.parser,s=t.incomparable;if(null==n&&Lg(r),"asc"!==i&&"desc"!==i&&Lg(r),s&&"min"!==s&&"max"!==s){var l="";0,Lg(l)}if("asc"!==i&&"desc"!==i){var u="";0,Lg(u)}var c=e.getDimensionInfo(n);c||Lg(r);var h=a?ly(a):null;a&&!h&&Lg(r),o.push({dimIdx:c.index,parser:h,comparator:new hy(i,s)})}));var a=e.sourceFormat;a!==eg&&a!==ng&&Lg(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}}};function F0(t){t.registerTransform(B0),t.registerTransform(V0)}var G0=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return v(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new Cy(this),Ty(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Ty(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ag},e}(qd),j0=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return v(e,t),e.type="dataset",e}(lm);function H0(t){t.registerComponentModel(G0),t.registerComponentView(j0)}iM([vI]),iM([TA]),iM([TD,rk,Sk,$L,gO,gP,hE,FR,rz,dz,Cz,kV,lF,IF,eG,hG,EG,UG,bj,Lj,Zj,tU]),iM(JU),iM(HX),iM(dP),iM(d$),iM(DV),iM(T$),iM(F$),iM(Mq),iM(uZ),iM(KU),iM(HZ),iM(XZ),iM(gK),iM(FK),iM(JK),iM(hJ),iM(FJ),iM(bQ),iM(rQ),iM(xQ),iM(y0),iM(u0),iM(v0),iM(S0),iM(F0),iM(H0)},"323e":function(t,e,n){var r,i;
- /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
- * @license MIT */(function(o,a){r=a,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})(0,(function(){var t={version:"0.2.0"},e=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(t,e,n){return t<e?e:t>n?n:t}function r(t){return 100*(-1+t)}function i(t,n,i){var o;return o="translate3d"===e.positionUsing?{transform:"translate3d("+r(t)+"%,0,0)"}:"translate"===e.positionUsing?{transform:"translate("+r(t)+"%,0)"}:{"margin-left":r(t)+"%"},o.transition="all "+n+"ms "+i,o}t.configure=function(t){var n,r;for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&(e[n]=r);return this},t.status=null,t.set=function(r){var s=t.isStarted();r=n(r,e.minimum,1),t.status=1===r?null:r;var l=t.render(!s),u=l.querySelector(e.barSelector),c=e.speed,h=e.easing;return l.offsetWidth,o((function(n){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),a(u,i(r,c,h)),1===r?(a(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){a(l,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){t.remove(),n()}),c)}),c)):setTimeout(n,c)})),this},t.isStarted=function(){return"number"===typeof t.status},t.start=function(){t.status||t.set(0);var n=function(){setTimeout((function(){t.status&&(t.trickle(),n())}),e.trickleSpeed)};return e.trickle&&n(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var r=t.status;return r?("number"!==typeof e&&(e=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*e.trickleRate)},function(){var e=0,n=0;t.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&t.start(),e++,n++,r.always((function(){n--,0===n?(e=0,t.done()):t.set((e-n)/e)})),this):this}}(),t.render=function(n){if(t.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=e.template;var o,s=i.querySelector(e.barSelector),u=n?"-100":r(t.status||0),c=document.querySelector(e.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),e.showSpinner||(o=i.querySelector(e.spinnerSelector),o&&h(o)),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(i),i},t.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var o=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),a=function(){var t=["Webkit","O","Moz","ms"],e={};function n(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var n=document.body.style;if(e in n)return e;var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);while(i--)if(r=t[i]+o,r in n)return r;return e}function i(t){return t=n(t),e[t]||(e[t]=r(t))}function o(t,e,n){e=i(e),t.style[e]=n}return function(t,e){var n,r,i=arguments;if(2==i.length)for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&o(t,n,r);else o(t,i[1],i[2])}}();function s(t,e){var n="string"==typeof t?t:c(t);return n.indexOf(" "+e+" ")>=0}function l(t,e){var n=c(t),r=n+e;s(n,e)||(t.className=r.substring(1))}function u(t,e){var n,r=c(t);s(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function c(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return t}))},3397:function(t,e,n){var r=n("7a41");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,l=0;while(s>l)i.f(t,n=r[l++],e[n]);return t}},3835:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function i(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}var o=n("06c5");function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){return r(t)||i(t,e)||Object(o["a"])(t,e)||a()}},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t}},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},"393a":function(t,e,n){"use strict";var r=n("e444"),i=n("512c"),o=n("ba01"),a=n("051b"),s=n("8a0d"),l=n("26dd"),u=n("92f0"),c=n("ce7a"),h=n("cc15")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",g="values",v=function(){return this};t.exports=function(t,e,n,y,m,_,x){l(n,e,y);var b,w,S,M=function(t){if(!f&&t in A)return A[t];switch(t){case d:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",T=m==g,I=!1,A=t.prototype,D=A[h]||A[p]||m&&A[m],k=D||M(m),L=m?T?M("entries"):k:void 0,O="Array"==e&&A.entries||D;if(O&&(S=c(O.call(new t)),S!==Object.prototype&&S.next&&(u(S,C,!0),r||"function"==typeof S[h]||a(S,h,v))),T&&D&&D.name!==g&&(I=!0,k=function(){return D.call(this)}),r&&!x||!f&&!I&&A[h]||a(A,h,k),s[e]=k,s[C]=v,m)if(b={values:T?k:M(g),keys:_?k:M(d),entries:L},x)for(w in b)w in A||o(A,w,b[w]);else i(i.P+i.F*(f||I),e,b);return b}},"39ad":function(t,e,n){var r=n("6ca1"),i=n("d16a"),o=n("9d11");t.exports=function(t){return function(e,n,a){var s,l=r(e),u=i(l.length),c=o(a,u);if(t&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3c4e":function(t,e,n){"use strict";var r=function(t){return i(t)&&!o(t)};function i(t){return!!t&&"object"===typeof t}function o(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||l(t)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(t){return t.$$typeof===s}function u(t){return Array.isArray(t)?[]:{}}function c(t,e){var n=e&&!0===e.clone;return n&&r(t)?p(u(t),t,e):t}function h(t,e,n){var i=t.slice();return e.forEach((function(e,o){"undefined"===typeof i[o]?i[o]=c(e,n):r(e)?i[o]=p(t[o],e,n):-1===t.indexOf(e)&&i.push(c(e,n))})),i}function f(t,e,n){var i={};return r(t)&&Object.keys(t).forEach((function(e){i[e]=c(t[e],n)})),Object.keys(e).forEach((function(o){r(e[o])&&t[o]?i[o]=p(t[o],e[o],n):i[o]=c(e[o],n)})),i}function p(t,e,n){var r=Array.isArray(e),i=Array.isArray(t),o=n||{arrayMerge:h},a=r===i;if(a){if(r){var s=o.arrayMerge||h;return s(t,e,n)}return f(t,e,n)}return c(e,n)}p.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return p(t,n,e)}))};var d=p;t.exports=d},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",s=i.set,l=i.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=l(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3f6b":function(t,e,n){t.exports={default:n("b9c7"),__esModule:!0}},"3f8c":function(t,e){t.exports={}},4160:function(t,e,n){"use strict";var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"41b2":function(t,e,n){"use strict";e.__esModule=!0;var r=n("3f6b"),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},"428f":function(t,e,n){var r=n("da84");t.exports=r},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},"45fc":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").some,o=n("a640"),a=n("ae40"),s=o("some"),l=a("some");r({target:"Array",proto:!0,forced:!s||!l},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"466d":function(t,e,n){"use strict";var r=n("d784"),i=n("825a"),o=n("50c4"),a=n("1d80"),s=n("8aa5"),l=n("14c3");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=i(t),u=String(this);if(!a.global)return l(a,u);var c=a.unicode;a.lastIndex=0;var h,f=[],p=0;while(null!==(h=l(a,u))){var d=String(h[0]);f[p]=d,""===d&&(a.lastIndex=s(u,o(a.lastIndex),c)),p++}return 0===p?null:f}]}))},"467f":function(t,e,n){"use strict";var r=n("2d83");t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"498a":function(t,e,n){"use strict";var r=n("23e7"),i=n("58a8").trim,o=n("c8d2");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"4b8b":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"4d20":function(t,e,n){var r=n("1917"),i=n("10db"),o=n("6ca1"),a=n("3397"),s=n("9c0e"),l=n("faf5"),u=Object.getOwnPropertyDescriptor;e.f=n("0bad")?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var s,l=r(e),u=i(l.length),c=o(a,u);if(t&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d88":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=n("ae40"),s=o("filter"),l=a("filter");r({target:"Array",proto:!0,forced:!s||!l},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("0366"),i=n("7b0b"),o=n("9bdd"),a=n("e95a"),s=n("50c4"),l=n("8418"),u=n("35a1");t.exports=function(t){var e,n,c,h,f,p,d=i(t),g="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,m=void 0!==y,_=u(d),x=0;if(m&&(y=r(y,v>2?arguments[2]:void 0,2)),void 0==_||g==Array&&a(_))for(e=s(d.length),n=new g(e);e>x;x++)p=m?y(d[x],x):d[x],l(n,x,p);else for(h=_.call(d),f=h.next,n=new g;!(c=f.call(h)).done;x++)p=m?o(h,y,[c.value,x],!0):c.value,l(n,x,p);return n.length=x,n}},"4e71":function(t,e,n){n("e198")("observable")},"4ebc":function(t,e,n){var r=n("4d88");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"511f":function(t,e,n){n("0b99"),n("658f"),t.exports=n("fcd4").f("iterator")},"512c":function(t,e,n){var r=n("ef08"),i=n("5524"),o=n("9c0c"),a=n("051b"),s=n("9c0e"),l="prototype",u=function(t,e,n){var c,h,f,p=t&u.F,d=t&u.G,g=t&u.S,v=t&u.P,y=t&u.B,m=t&u.W,_=d?i:i[e]||(i[e]={}),x=_[l],b=d?r:g?r[e]:(r[e]||{})[l];for(c in d&&(n=e),n)h=!p&&b&&void 0!==b[c],h&&s(_,c)||(f=h?b[c]:n[c],_[c]=d&&"function"!=typeof b[c]?n[c]:y&&h?o(f,r):m&&b[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[l]=t[l],e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((_.virtual||(_.virtual={}))[c]=f,t&u.R&&x&&!x[c]&&a(x,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5270:function(t,e,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444"),s=n("d925"),l=n("e683");function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){u(t),t.baseURL&&!s(t.url)&&(t.url=l(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return u(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(u(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5319:function(t,e,n){"use strict";var r=n("d784"),i=n("825a"),o=n("7b0b"),a=n("50c4"),s=n("a691"),l=n("1d80"),u=n("8aa5"),c=n("14c3"),h=Math.max,f=Math.min,p=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,v=function(t){return void 0===t?t:String(t)};r("replace",2,(function(t,e,n,r){var y=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=r.REPLACE_KEEPS_$0,_=y?"$":"$0";return[function(n,r){var i=l(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):e.call(String(i),n,r)},function(t,r){if(!y&&m||"string"===typeof r&&-1===r.indexOf(_)){var o=n(e,t,this,r);if(o.done)return o.value}var l=i(t),p=String(this),d="function"===typeof r;d||(r=String(r));var g=l.global;if(g){var b=l.unicode;l.lastIndex=0}var w=[];while(1){var S=c(l,p);if(null===S)break;if(w.push(S),!g)break;var M=String(S[0]);""===M&&(l.lastIndex=u(p,a(l.lastIndex),b))}for(var C="",T=0,I=0;I<w.length;I++){S=w[I];for(var A=String(S[0]),D=h(f(s(S.index),p.length),0),k=[],L=1;L<S.length;L++)k.push(v(S[L]));var O=S.groups;if(d){var P=[A].concat(k,D,p);void 0!==O&&P.push(O);var E=String(r.apply(void 0,P))}else E=x(A,p,D,k,O,r);D>=T&&(C+=p.slice(T,D)+E,T=D+A.length)}return C+p.slice(T)}];function x(t,n,r,i,a,s){var l=r+t.length,u=i.length,c=g;return void 0!==a&&(a=o(a),c=d),e.call(s,c,(function(e,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var c=+o;if(0===c)return e;if(c>u){var h=p(c/10);return 0===h?e:h<=u?void 0===i[h-1]?o.charAt(1):i[h-1]+o.charAt(1):e}s=i[c-1]}return void 0===s?"":s}))}}))},"53ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}},5524:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");var r=n("ade3");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){Object(r["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),i=n("5899"),o="["+i+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),l=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},"597f":function(t,e){t.exports=function(t,e,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}function c(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>t?u():!0!==e&&(i=setTimeout(r?c:u,void 0===r?t-s:t))}return"boolean"!==typeof e&&(r=n,n=e,e=void 0),a}},"5a34":function(t,e,n){var r=n("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5a94":function(t,e,n){var r=n("b367")("keys"),i=n("8b1a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"60da":function(t,e,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),s=n("d1e7"),l=n("7b0b"),u=n("44ad"),c=Object.assign,h=Object.defineProperty;t.exports=!c||i((function(){if(r&&1!==c({b:1},c(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||o(c({},e)).join("")!=i}))?function(t,e){var n=l(t),i=arguments.length,c=1,h=a.f,f=s.f;while(i>c){var p,d=u(arguments[c++]),g=h?o(d).concat(h(d)):o(d),v=g.length,y=0;while(v>y)p=g[y++],r&&!f.call(d,p)||(n[p]=d[p])}return n}:c},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6438:function(t,e,n){var r=n("03d6"),i=n("9742").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},6547:function(t,e,n){var r=n("a691"),i=n("1d80"),o=function(t){return function(e,n){var o,a,s=String(i(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"658f":function(t,e,n){n("6858");for(var r=n("ef08"),i=n("051b"),o=n("8a0d"),a=n("cc15")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=r[u],h=c&&c.prototype;h&&!h[a]&&i(h,a,u),o[u]=o.Array}},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},6858:function(t,e,n){"use strict";var r=n("2f9a"),i=n("ea34"),o=n("8a0d"),a=n("6ca1");t.exports=n("393a")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"693d":function(t,e,n){"use strict";var r=n("ef08"),i=n("9c0e"),o=n("0bad"),a=n("512c"),s=n("ba01"),l=n("e34a").KEY,u=n("4b8b"),c=n("b367"),h=n("92f0"),f=n("8b1a"),p=n("cc15"),d=n("fcd4"),g=n("e198"),v=n("0ae2"),y=n("4ebc"),m=n("77e9"),_=n("7a41"),x=n("0983"),b=n("6ca1"),w=n("3397"),S=n("10db"),M=n("6f4f"),C=n("1836"),T=n("4d20"),I=n("fed5"),A=n("1a14"),D=n("9876"),k=T.f,L=A.f,O=C.f,P=r.Symbol,E=r.JSON,R=E&&E.stringify,N="prototype",z=p("_hidden"),B=p("toPrimitive"),V={}.propertyIsEnumerable,F=c("symbol-registry"),G=c("symbols"),j=c("op-symbols"),H=Object[N],W="function"==typeof P&&!!I.f,U=r.QObject,X=!U||!U[N]||!U[N].findChild,$=o&&u((function(){return 7!=M(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=k(H,e);r&&delete H[e],L(t,e,n),r&&t!==H&&L(H,e,r)}:L,Y=function(t){var e=G[t]=M(P[N]);return e._k=t,e},q=W&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Z=function(t,e,n){return t===H&&Z(j,e,n),m(t),e=w(e,!0),m(n),i(G,e)?(n.enumerable?(i(t,z)&&t[z][e]&&(t[z][e]=!1),n=M(n,{enumerable:S(0,!1)})):(i(t,z)||L(t,z,S(1,{})),t[z][e]=!0),$(t,e,n)):L(t,e,n)},K=function(t,e){m(t);var n,r=v(e=b(e)),i=0,o=r.length;while(o>i)Z(t,n=r[i++],e[n]);return t},J=function(t,e){return void 0===e?M(t):K(M(t),e)},Q=function(t){var e=V.call(this,t=w(t,!0));return!(this===H&&i(G,t)&&!i(j,t))&&(!(e||!i(this,t)||!i(G,t)||i(this,z)&&this[z][t])||e)},tt=function(t,e){if(t=b(t),e=w(e,!0),t!==H||!i(G,e)||i(j,e)){var n=k(t,e);return!n||!i(G,e)||i(t,z)&&t[z][e]||(n.enumerable=!0),n}},et=function(t){var e,n=O(b(t)),r=[],o=0;while(n.length>o)i(G,e=n[o++])||e==z||e==l||r.push(e);return r},nt=function(t){var e,n=t===H,r=O(n?j:b(t)),o=[],a=0;while(r.length>a)!i(G,e=r[a++])||n&&!i(H,e)||o.push(G[e]);return o};W||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(j,n),i(this,z)&&i(this[z],t)&&(this[z][t]=!1),$(this,t,S(1,n))};return o&&X&&$(H,t,{configurable:!0,set:e}),Y(t)},s(P[N],"toString",(function(){return this._k})),T.f=tt,A.f=Z,n("6438").f=C.f=et,n("1917").f=Q,I.f=nt,o&&!n("e444")&&s(H,"propertyIsEnumerable",Q,!0),d.f=function(t){return Y(p(t))}),a(a.G+a.W+a.F*!W,{Symbol:P});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;rt.length>it;)p(rt[it++]);for(var ot=D(p.store),at=0;ot.length>at;)g(ot[at++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=P(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),a(a.S+a.F*!W,"Object",{create:J,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=u((function(){I.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return I.f(x(t))}}),E&&a(a.S+a.F*(!W||u((function(){var t=P();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){var e,n,r=[t],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=e=r[1],(_(e)||void 0!==t)&&!q(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,R.apply(E,r)}}),P[N][B]||n("051b")(P[N],B,P[N].valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),s=n("da84"),l=n("861d"),u=n("9112"),c=n("5135"),h=n("f772"),f=n("d012"),p=s.WeakMap,d=function(t){return o(t)?i(t):r(t,{})},g=function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var v=new p,y=v.get,m=v.has,_=v.set;r=function(t,e){return _.call(v,t,e),e},i=function(t){return y.call(v,t)||{}},o=function(t){return m.call(v,t)}}else{var x=h("state");f[x]=!0,r=function(t,e){return u(t,x,e),e},i=function(t){return c(t,x)?t[x]:{}},o=function(t){return c(t,x)}}t.exports={set:r,get:i,has:o,enforce:d,getterFor:g}},"6b75":function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},"6ca1":function(t,e,n){var r=n("9fbb"),i=n("c901");t.exports=function(t){return r(i(t))}},"6cd5":function(t,e,n){var r=n("b0fd");t.exports=function(){return this.playing=!1,this.audio=r,this.play=function(t){t!=r.src&&(r.src=t),r.play(),this.playing=t},this.pause=function(){r.pause(),this.playing=!1},this.playPause=function(t){t!=this.playing?this.play(t):this.pause()},this.seek=function(t){if(!r.readyState)return!1;var e=t.offsetX/t.target.offsetWidth||(t.layerX-t.target.offsetLeft)/t.target.offsetWidth,n=e*r.duration||0;r.currentTime=n},this.init=function(){return this},this.init()}},"6dd8":function(t,e,n){"use strict";n.r(e),function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),a=2;function s(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&u()}function l(){o(s)}function u(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(l,e);i=t}return u}var l=20,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!==typeof MutationObserver,h=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),l)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e,r=u.some((function(t){return!!~n.indexOf(t)}));r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),f=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||i},d=M(0,0,0,0);function g(t){return parseFloat(t)||0}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+g(r)}),0)}function y(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],a=t["padding-"+o];n[o]=g(a)}return n}function m(t){var e=t.getBBox();return M(0,0,e.width,e.height)}function _(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r=p(t).getComputedStyle(t),i=y(r),o=i.left+i.right,a=i.top+i.bottom,s=g(r.width),l=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=v(r,"left","right")+o),Math.round(l+a)!==n&&(l-=v(r,"top","bottom")+a)),!b(t)){var u=Math.round(s+o)-e,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return M(i.left,i.top,s,l)}var x=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"===typeof t.getBBox}}();function b(t){return t===p(t).document.documentElement}function w(t){return r?x(t)?m(t):_(t):d}function S(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return f(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function M(t,e,n,r){return{x:t,y:e,width:n,height:r}}var C=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=M(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),T=function(){function t(t,e){var n=S(e);f(this,{target:t,contentRect:n})}return t}(),I=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new C(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new T(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),A="undefined"!==typeof WeakMap?new WeakMap:new n,D=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),r=new I(e,n,this);A.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach((function(t){D.prototype[t]=function(){var e;return(e=A.get(this))[t].apply(e,arguments)}}));var k=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:D}();e["default"]=k}.call(this,n("c8ba"))},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),l=n("69f3"),u=l.get,c=l.enforce,h=String(String).split("String");(t.exports=function(t,e,n,s){var l=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),c(n).source=h.join("string"==typeof e?e:"")),t!==r?(l?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n)):u?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},"6f4f":function(t,e,n){var r=n("77e9"),i=n("85e7"),o=n("9742"),a=n("5a94")("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=n("05f5")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("9141").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[l][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=r(t),n=new s,s[l]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},7156:function(t,e,n){var r=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var r=n("428f"),i=n("5135"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"77e9":function(t,e,n){var r=n("7a41");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a41":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"7a77":function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7b3e":function(t,e,n){"use strict";var r,i=n("a3de");
- /**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */
- function o(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=o},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),h=">",f="<",p="prototype",d="script",g=c("IE_PROTO"),v=function(){},y=function(t){return f+d+h+t+f+"/"+d+h},m=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){var t,e=u("iframe"),n="java"+d+":";return e.style.display="none",l.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=r?m(r):_();var t=a.length;while(t--)delete x[p][a[t]];return x()};s[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[p]=i(t),n=new v,v[p]=null,n[g]=t):n=x(),void 0===e?n:o(n,e)}},"7db0":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),a=n("ae40"),s="find",l=!0,u=a(s);s in[]&&Array(1)[s]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!u},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),l=n("9112"),u=n("6eeb"),c=n("b622"),h=n("c430"),f=n("3f8c"),p=n("ae93"),d=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,v=c("iterator"),y="keys",m="values",_="entries",x=function(){return this};t.exports=function(t,e,n,c,p,b,w){i(n,e,c);var S,M,C,T=function(t){if(t===p&&L)return L;if(!g&&t in D)return D[t];switch(t){case y:return function(){return new n(this,t)};case m:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this)}},I=e+" Iterator",A=!1,D=t.prototype,k=D[v]||D["@@iterator"]||p&&D[p],L=!g&&k||T(p),O="Array"==e&&D.entries||k;if(O&&(S=o(O.call(new t)),d!==Object.prototype&&S.next&&(h||o(S)===d||(a?a(S,d):"function"!=typeof S[v]&&l(S,v,x)),s(S,I,!0,!0),h&&(f[I]=x))),p==m&&k&&k.name!==m&&(A=!0,L=function(){return k.call(this)}),h&&!w||D[v]===L||l(D,v,L),f[e]=L,p)if(M={values:T(m),keys:b?L:T(y),entries:T(_)},w)for(C in M)(g||A||!(C in D))&&u(D,C,M[C]);else r({target:e,proto:!0,forced:g||A},M);return M}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},8119:function(t,e,n){n("693d"),n("dfe5"),n("301c"),n("4e71"),t.exports=n("5524").Symbol},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"85e7":function(t,e,n){var r=n("1a14"),i=n("77e9"),o=n("9876");t.exports=n("0bad")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,l=0;while(s>l)r.f(t,n=a[l++],e[n]);return t}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"8a0d":function(t,e){t.exports={}},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8b1a":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"8c4f":function(t,e,n){"use strict";
- /*!
- * vue-router v3.0.6
- * (c) 2019 Evan You
- * @license MIT
- */function r(t,e){0}function i(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function o(t,e){for(var n in e)t[n]=e[n];return t}var a={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,a=e.data;a.routerView=!0;var l=i.$createElement,u=n.name,c=i.$route,h=i._routerViewCache||(i._routerViewCache={}),f=0,p=!1;while(i&&i._routerRoot!==i){var d=i.$vnode&&i.$vnode.data;d&&(d.routerView&&f++,d.keepAlive&&i._inactive&&(p=!0)),i=i.$parent}if(a.routerViewDepth=f,p)return l(h[u],a,r);var g=c.matched[f];if(!g)return h[u]=null,l();var v=h[u]=g.components[u];a.registerRouteInstance=function(t,e){var n=g.instances[u];(e&&n!==t||!e&&n===t)&&(g.instances[u]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){g.instances[u]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[u]&&(g.instances[u]=t.componentInstance)};var y=a.props=s(c,g.props&&g.props[u]);if(y){y=a.props=o({},y);var m=a.attrs=a.attrs||{};for(var _ in y)v.props&&_ in v.props||(m[_]=y[_],delete y[_])}return l(v,a,r)}};function s(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}var l=/[!'()*]/g,u=function(t){return"%"+t.charCodeAt(0).toString(16)},c=/%2C/g,h=function(t){return encodeURIComponent(t).replace(l,u).replace(c,",")},f=decodeURIComponent;function p(t,e,n){void 0===e&&(e={});var r,i=n||d;try{r=i(t||"")}catch(a){r={}}for(var o in e)r[o]=e[o];return r}function d(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=f(n.shift()),i=n.length>0?f(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function g(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return h(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(h(e)):r.push(h(e)+"="+h(t)))})),r.join("&")}return h(e)+"="+h(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var v=/\/?$/;function y(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=m(o)}catch(s){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:b(e,i),matched:t?x(t):[]};return n&&(a.redirectedFrom=b(n,i)),Object.freeze(a)}function m(t){if(Array.isArray(t))return t.map(m);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=m(t[n]);return e}return t}var _=y(null,{path:"/"});function x(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function b(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;void 0===i&&(i="");var o=e||g;return(n||"/")+o(r)+i}function w(t,e){return e===_?t===e:!!e&&(t.path&&e.path?t.path.replace(v,"")===e.path.replace(v,"")&&t.hash===e.hash&&S(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&S(t.query,e.query)&&S(t.params,e.params)))}function S(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){var r=t[n],i=e[n];return"object"===typeof r&&"object"===typeof i?S(r,i):String(r)===String(i)}))}function M(t,e){return 0===t.path.replace(v,"/").indexOf(e.path.replace(v,"/"))&&(!e.hash||t.hash===e.hash)&&C(t.query,e.query)}function C(t,e){for(var n in e)if(!(n in t))return!1;return!0}var T,I=[String,Object],A=[String,Array],D={name:"RouterLink",props:{to:{type:I,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:A,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),a=i.location,s=i.route,l=i.href,u={},c=n.options.linkActiveClass,h=n.options.linkExactActiveClass,f=null==c?"router-link-active":c,p=null==h?"router-link-exact-active":h,d=null==this.activeClass?f:this.activeClass,g=null==this.exactActiveClass?p:this.exactActiveClass,v=a.path?y(null,a,null,n):s;u[g]=w(r,v),u[d]=this.exact?u[g]:M(r,v);var m=function(t){k(t)&&(e.replace?n.replace(a):n.push(a))},_={click:k};Array.isArray(this.event)?this.event.forEach((function(t){_[t]=m})):_[this.event]=m;var x={class:u};if("a"===this.tag)x.on=_,x.attrs={href:l};else{var b=L(this.$slots.default);if(b){b.isStatic=!1;var S=b.data=o({},b.data);S.on=_;var C=b.data.attrs=o({},b.data.attrs);C.href=l}else x.on=_}return t(this.tag,x,this.$slots.default)}};function k(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function L(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=L(e.children)))return e}}function O(t){if(!O.installed||T!==t){O.installed=!0,T=t;var e=function(t){return void 0!==t},n=function(t,n){var r=t.$options._parentVnode;e(r)&&e(r=r.data)&&e(r=r.registerRouteInstance)&&r(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",a),t.component("RouterLink",D);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var P="undefined"!==typeof window;function E(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function R(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function N(t){return t.replace(/\/\//g,"/")}var z=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},B=rt,V=W,F=U,G=Y,j=nt,H=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function W(t,e){var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";while(null!=(n=H.exec(t))){var l=n[0],u=n[1],c=n.index;if(a+=t.slice(o,c),o=c+l.length,u)a+=u[1];else{var h=t[o],f=n[2],p=n[3],d=n[4],g=n[5],v=n[6],y=n[7];a&&(r.push(a),a="");var m=null!=f&&null!=h&&h!==f,_="+"===v||"*"===v,x="?"===v||"*"===v,b=n[2]||s,w=d||g;r.push({name:p||i++,prefix:f||"",delimiter:b,optional:x,repeat:_,partial:m,asterisk:!!y,pattern:w?Z(w):y?".*":"[^"+q(b)+"]+?"})}}return o<t.length&&(a+=t.substr(o)),a&&r.push(a),r}function U(t,e){return Y(W(t,e))}function X(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function $(t){return encodeURI(t).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function Y(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"===typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var i="",o=n||{},a=r||{},s=a.pretty?X:encodeURIComponent,l=0;l<t.length;l++){var u=t[l];if("string"!==typeof u){var c,h=o[u.name];if(null==h){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(z(h)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<h.length;f++){if(c=s(h[f]),!e[l].test(c))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(c)+"`");i+=(0===f?u.prefix:u.delimiter)+c}}else{if(c=u.asterisk?$(h):s(h),!e[l].test(c))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+c+'"');i+=u.prefix+c}}else i+=u}return i}}function q(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Z(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function K(t,e){return t.keys=e,t}function J(t){return t.sensitive?"":"i"}function Q(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return K(t,e)}function tt(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(rt(t[i],e,n).source);var o=new RegExp("(?:"+r.join("|")+")",J(n));return K(o,e)}function et(t,e,n){return nt(W(t,n),e,n)}function nt(t,e,n){z(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",a=0;a<t.length;a++){var s=t[a];if("string"===typeof s)o+=q(s);else{var l=q(s.prefix),u="(?:"+s.pattern+")";e.push(s),s.repeat&&(u+="(?:"+l+u+")*"),u=s.optional?s.partial?l+"("+u+")?":"(?:"+l+"("+u+"))?":l+"("+u+")",o+=u}}var c=q(n.delimiter||"/"),h=o.slice(-c.length)===c;return r||(o=(h?o.slice(0,-c.length):o)+"(?:"+c+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+c+"|$)",K(new RegExp("^"+o,J(n)),e)}function rt(t,e,n){return z(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?Q(t,e):z(t)?tt(t,e,n):et(t,e,n)}B.parse=V,B.compile=F,B.tokensToFunction=G,B.tokensToRegExp=j;var it=Object.create(null);function ot(t,e,n){e=e||{};try{var r=it[t]||(it[t]=B.compile(t));return e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(i){return""}finally{delete e[0]}}function at(t,e,n,r){var i=e||[],o=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){st(i,o,a,t)}));for(var s=0,l=i.length;s<l;s++)"*"===i[s]&&(i.push(i.splice(s,1)[0]),l--,s--);return{pathList:i,pathMap:o,nameMap:a}}function st(t,e,n,r,i,o){var a=r.path,s=r.name;var l=r.pathToRegexpOptions||{},u=ut(a,i,l.strict);"boolean"===typeof r.caseSensitive&&(l.sensitive=r.caseSensitive);var c={path:u,regex:lt(u,l),components:r.components||{default:r.component},instances:{},name:s,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var i=o?N(o+"/"+r.path):void 0;st(t,e,n,r,c,i)})),void 0!==r.alias){var h=Array.isArray(r.alias)?r.alias:[r.alias];h.forEach((function(o){var a={path:o,children:r.children};st(t,e,n,a,i,c.path||"/")}))}e[c.path]||(t.push(c.path),e[c.path]=c),s&&(n[s]||(n[s]=c))}function lt(t,e){var n=B(t,[],e);return n}function ut(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]||null==e?t:N(e.path+"/"+t)}function ct(t,e,n,r){var i="string"===typeof t?{path:t}:t;if(i._normalized)return i;if(i.name)return o({},t);if(!i.path&&i.params&&e){i=o({},i),i._normalized=!0;var a=o(o({},e.params),i.params);if(e.name)i.name=e.name,i.params=a;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;i.path=ot(s,a,"path "+e.path)}else 0;return i}var l=R(i.path||""),u=e&&e.path||"/",c=l.path?E(l.path,u,n||i.append):u,h=p(l.query,i.query,r&&r.options.parseQuery),f=i.hash||l.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:c,query:h,hash:f}}function ht(t,e){var n=at(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t){at(t,r,i,o)}function s(t,n,a){var s=ct(t,n,!1,e),l=s.name;if(l){var u=o[l];if(!u)return c(null,s);var h=u.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var f in n.params)!(f in s.params)&&h.indexOf(f)>-1&&(s.params[f]=n.params[f]);if(u)return s.path=ot(u.path,s.params,'named route "'+l+'"'),c(u,s,a)}else if(s.path){s.params={};for(var p=0;p<r.length;p++){var d=r[p],g=i[d];if(ft(g.regex,s.path,s.params))return c(g,s,a)}}return c(null,s)}function l(t,n){var r=t.redirect,i="function"===typeof r?r(y(t,n,null,e)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return c(null,n);var a=i,l=a.name,u=a.path,h=n.query,f=n.hash,p=n.params;if(h=a.hasOwnProperty("query")?a.query:h,f=a.hasOwnProperty("hash")?a.hash:f,p=a.hasOwnProperty("params")?a.params:p,l){o[l];return s({_normalized:!0,name:l,query:h,hash:f,params:p},void 0,n)}if(u){var d=pt(u,t),g=ot(d,p,'redirect route with path "'+d+'"');return s({_normalized:!0,path:g,query:h,hash:f},void 0,n)}return c(null,n)}function u(t,e,n){var r=ot(n,e.params,'aliased route with path "'+n+'"'),i=s({_normalized:!0,path:r});if(i){var o=i.matched,a=o[o.length-1];return e.params=i.params,c(a,e)}return c(null,e)}function c(t,n,r){return t&&t.redirect?l(t,r||n):t&&t.matchAs?u(t,n,t.matchAs):y(t,n,r,e)}return{match:s,addRoutes:a}}function ft(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=t.keys[i-1],s="string"===typeof r[i]?decodeURIComponent(r[i]):r[i];a&&(n[a.name||"pathMatch"]=s)}return!0}function pt(t,e){return E(t,e.parent?e.parent.path:"/",!0)}var dt=Object.create(null);function gt(){window.history.replaceState({key:Dt()},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",(function(t){yt(),t.state&&t.state.key&&kt(t.state.key)}))}function vt(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=mt(),a=i.call(t,e,n,r?o:null);a&&("function"===typeof a.then?a.then((function(t){Mt(t,o)})).catch((function(t){0})):Mt(a,o))}))}}function yt(){var t=Dt();t&&(dt[t]={x:window.pageXOffset,y:window.pageYOffset})}function mt(){var t=Dt();if(t)return dt[t]}function _t(t,e){var n=document.documentElement,r=n.getBoundingClientRect(),i=t.getBoundingClientRect();return{x:i.left-r.left-e.x,y:i.top-r.top-e.y}}function xt(t){return St(t.x)||St(t.y)}function bt(t){return{x:St(t.x)?t.x:window.pageXOffset,y:St(t.y)?t.y:window.pageYOffset}}function wt(t){return{x:St(t.x)?t.x:0,y:St(t.y)?t.y:0}}function St(t){return"number"===typeof t}function Mt(t,e){var n="object"===typeof t;if(n&&"string"===typeof t.selector){var r=document.querySelector(t.selector);if(r){var i=t.offset&&"object"===typeof t.offset?t.offset:{};i=wt(i),e=_t(r,i)}else xt(t)&&(e=bt(t))}else n&&xt(t)&&(e=bt(t));e&&window.scrollTo(e.x,e.y)}var Ct=P&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),Tt=P&&window.performance&&window.performance.now?window.performance:Date,It=At();function At(){return Tt.now().toFixed(3)}function Dt(){return It}function kt(t){It=t}function Lt(t,e){yt();var n=window.history;try{e?n.replaceState({key:It},"",t):(It=At(),n.pushState({key:It},"",t))}catch(r){window.location[e?"replace":"assign"](t)}}function Ot(t){Lt(t,!0)}function Pt(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function Et(t){return function(e,n,r){var o=!1,a=0,s=null;Rt(t,(function(t,e,n,l){if("function"===typeof t&&void 0===t.cid){o=!0,a++;var u,c=Vt((function(e){Bt(e)&&(e=e.default),t.resolved="function"===typeof e?e:T.extend(e),n.components[l]=e,a--,a<=0&&r()})),h=Vt((function(t){var e="Failed to resolve async component "+l+": "+t;s||(s=i(t)?t:new Error(e),r(s))}));try{u=t(c,h)}catch(p){h(p)}if(u)if("function"===typeof u.then)u.then(c,h);else{var f=u.component;f&&"function"===typeof f.then&&f.then(c,h)}}})),o||r()}}function Rt(t,e){return Nt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Nt(t){return Array.prototype.concat.apply([],t)}var zt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Bt(t){return t.__esModule||zt&&"Module"===t[Symbol.toStringTag]}function Vt(t){var e=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Ft=function(t,e){this.router=t,this.base=Gt(e),this.current=_,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Gt(t){if(!t)if(P){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function jt(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r;n++)if(t[n]!==e[n])break;return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}function Ht(t,e,n,r){var i=Rt(t,(function(t,r,i,o){var a=Wt(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return Nt(r?i.reverse():i)}function Wt(t,e){return"function"!==typeof t&&(t=T.extend(t)),t.options[e]}function Ut(t){return Ht(t,"beforeRouteLeave",$t,!0)}function Xt(t){return Ht(t,"beforeRouteUpdate",$t)}function $t(t,e){if(e)return function(){return t.apply(e,arguments)}}function Yt(t,e,n){return Ht(t,"beforeRouteEnter",(function(t,r,i,o){return qt(t,i,o,e,n)}))}function qt(t,e,n,r,i){return function(o,a,s){return t(o,a,(function(t){s(t),"function"===typeof t&&r.push((function(){Zt(t,e.instances,n,i)}))}))}}function Zt(t,e,n,r){e[n]&&!e[n]._isBeingDestroyed?t(e[n]):r()&&setTimeout((function(){Zt(t,e,n,r)}),16)}Ft.prototype.listen=function(t){this.cb=t},Ft.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Ft.prototype.onError=function(t){this.errorCbs.push(t)},Ft.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(t){t(i)})))}),(function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(e){e(t)})))}))},Ft.prototype.confirmTransition=function(t,e,n){var o=this,a=this.current,s=function(t){i(t)&&(o.errorCbs.length?o.errorCbs.forEach((function(e){e(t)})):(r(!1,"uncaught error during route navigation:"),console.error(t))),n&&n(t)};if(w(t,a)&&t.matched.length===a.matched.length)return this.ensureURL(),s();var l=jt(this.current.matched,t.matched),u=l.updated,c=l.deactivated,h=l.activated,f=[].concat(Ut(c),this.router.beforeHooks,Xt(u),h.map((function(t){return t.beforeEnter})),Et(h));this.pending=t;var p=function(e,n){if(o.pending!==t)return s();try{e(t,a,(function(t){!1===t||i(t)?(o.ensureURL(!0),s(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(s(),"object"===typeof t&&t.replace?o.replace(t):o.push(t)):n(t)}))}catch(r){s(r)}};Pt(f,p,(function(){var n=[],r=function(){return o.current===t},i=Yt(h,n,r),a=i.concat(o.router.resolveHooks);Pt(a,p,(function(){if(o.pending!==t)return s();o.pending=null,e(t),o.router.app&&o.router.app.$nextTick((function(){n.forEach((function(t){t()}))}))}))}))},Ft.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach((function(n){n&&n(t,e)}))};var Kt=function(t){function e(e,n){var r=this;t.call(this,e,n);var i=e.options.scrollBehavior,o=Ct&&i;o&>();var a=Jt(this.base);window.addEventListener("popstate",(function(t){var n=r.current,i=Jt(r.base);r.current===_&&i===a||r.transitionTo(i,(function(t){o&&vt(e,t,n,!0)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){Lt(N(r.base+t.fullPath)),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){Ot(N(r.base+t.fullPath)),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Jt(this.base)!==this.current.fullPath){var e=N(this.base+this.current.fullPath);t?Lt(e):Ot(e)}},e.prototype.getCurrentLocation=function(){return Jt(this.base)},e}(Ft);function Jt(t){var e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Qt=function(t){function e(e,n,r){t.call(this,e,n),r&&te(this.base)||ee()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router,n=e.options.scrollBehavior,r=Ct&&n;r&>(),window.addEventListener(Ct?"popstate":"hashchange",(function(){var e=t.current;ee()&&t.transitionTo(ne(),(function(n){r&&vt(t.router,n,e,!0),Ct||oe(n.fullPath)}))}))},e.prototype.push=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){ie(t.fullPath),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){oe(t.fullPath),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ne()!==e&&(t?ie(e):oe(e))},e.prototype.getCurrentLocation=function(){return ne()},e}(Ft);function te(t){var e=Jt(t);if(!/^\/#/.test(e))return window.location.replace(N(t+"/#"+e)),!0}function ee(){var t=ne();return"/"===t.charAt(0)||(oe("/"+t),!1)}function ne(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";t=t.slice(e+1);var n=t.indexOf("?");if(n<0){var r=t.indexOf("#");t=r>-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function re(t){var e=window.location.href,n=e.indexOf("#"),r=n>=0?e.slice(0,n):e;return r+"#"+t}function ie(t){Ct?Lt(re(t)):window.location.hash=t}function oe(t){Ct?Ot(re(t)):window.location.replace(re(t))}var ae=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){e.index=n,e.updateRoute(r)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Ft),se=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ht(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Ct&&!1!==t.fallback,this.fallback&&(e="hash"),P||(e="abstract"),this.mode=e,e){case"history":this.history=new Kt(this,t.base);break;case"hash":this.history=new Qt(this,t.base,this.fallback);break;case"abstract":this.history=new ae(this,t.base);break;default:0}},le={currentRoute:{configurable:!0}};function ue(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function ce(t,e,n){var r="hash"===n?"#"+e:e;return t?N(t+"/"+r):r}se.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},le.currentRoute.get=function(){return this.history&&this.history.current},se.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)})),!this.app){this.app=t;var n=this.history;if(n instanceof Kt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Qt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},se.prototype.beforeEach=function(t){return ue(this.beforeHooks,t)},se.prototype.beforeResolve=function(t){return ue(this.resolveHooks,t)},se.prototype.afterEach=function(t){return ue(this.afterHooks,t)},se.prototype.onReady=function(t,e){this.history.onReady(t,e)},se.prototype.onError=function(t){this.history.onError(t)},se.prototype.push=function(t,e,n){this.history.push(t,e,n)},se.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},se.prototype.go=function(t){this.history.go(t)},se.prototype.back=function(){this.go(-1)},se.prototype.forward=function(){this.go(1)},se.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},se.prototype.resolve=function(t,e,n){e=e||this.history.current;var r=ct(t,e,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=ce(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},se.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==_&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(se.prototype,le),se.install=O,se.version="3.0.6",P&&window.Vue&&window.Vue.use(se),e["a"]=se},"8df4":function(t,e,n){"use strict";var r=n("7a77");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t,e=new i((function(e){t=e}));return{token:e,cancel:t}},t.exports=i},"8eb7":function(t,e){var n,r,i,o,a,s,l,u,c,h,f,p,d,g,v,y=!1;function m(){if(!y){y=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),m=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(p=/\b(iPhone|iP[ao]d)/.exec(t),d=/\b(iP[ao]d)/.exec(t),h=/Android/i.exec(t),g=/FBAN\/\w+;/i.exec(t),v=/Mobile/i.exec(t),f=!!/Win64/.exec(t),e){n=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var _=/(?:Trident\/(\d+.\d+))/.exec(t);s=_?parseFloat(_[1])+4:n,r=e[2]?parseFloat(e[2]):NaN,i=e[3]?parseFloat(e[3]):NaN,o=e[4]?parseFloat(e[4]):NaN,o?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),a=e&&e[1]?parseFloat(e[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(m){if(m[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);l=!x||parseFloat(x[1].replace("_","."))}else l=!1;u=!!m[2],c=!!m[3]}else l=u=c=!1}}var _={ie:function(){return m()||n},ieCompatibilityMode:function(){return m()||s>n},ie64:function(){return _.ie()&&f},firefox:function(){return m()||r},opera:function(){return m()||i},webkit:function(){return m()||o},safari:function(){return _.webkit()},chrome:function(){return m()||a},windows:function(){return m()||u},osx:function(){return m()||l},linux:function(){return m()||c},iphone:function(){return m()||p},mobile:function(){return m()||p||d||h||v},nativeApp:function(){return m()||g},android:function(){return m()||h},ipad:function(){return m()||d}};t.exports=_},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9141:function(t,e,n){var r=n("ef08").document;t.exports=r&&r.documentElement},9263:function(t,e,n){"use strict";var r=n("ad6d"),i=n("9f7f"),o=RegExp.prototype.exec,a=String.prototype.replace,s=o,l=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),u=i.UNSUPPORTED_Y||i.BROKEN_CARET,c=void 0!==/()??/.exec("")[1],h=l||c||u;h&&(s=function(t){var e,n,i,s,h=this,f=u&&h.sticky,p=r.call(h),d=h.source,g=0,v=t;return f&&(p=p.replace("y",""),-1===p.indexOf("g")&&(p+="g"),v=String(t).slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==t[h.lastIndex-1])&&(d="(?: "+d+")",v=" "+v,g++),n=new RegExp("^(?:"+d+")",p)),c&&(n=new RegExp("^"+d+"$(?!\\s)",p)),l&&(e=h.lastIndex),i=o.call(f?n:h,v),f?i?(i.input=i.input.slice(g),i[0]=i[0].slice(g),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:l&&i&&(h.lastIndex=h.global?i.index+i[0].length:e),c&&i&&i.length>1&&a.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i}),t.exports=s},"92f0":function(t,e,n){var r=n("1a14").f,i=n("9c0e"),o=n("cc15")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"92fa":function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,a,s,l;for(a in e)if(i=t[a],o=e[a],i&&n.test(a))if("class"===a&&("string"===typeof i&&(l=i,t[a]=i={},i[l]=!0),"string"===typeof o&&(l=o,e[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))t[a]=i.concat(o);else if(Array.isArray(o))t[a]=[i].concat(o);else for(s in o)i[s]=o[s];else t[a]=e[a];return t}),{})}},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==u||n!=l&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},9619:function(t,e,n){var r=n("597f"),i=n("0e15");t.exports={throttle:r,debounce:i}},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",u="object"===typeof t,c=e.regeneratorRuntime;if(c)u&&(t.exports=c);else{c=e.regeneratorRuntime=u?t.exports:{},c.wrap=x;var h="suspendedStart",f="suspendedYield",p="executing",d="completed",g={},v={};v[a]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(O([])));m&&m!==r&&i.call(m,a)&&(v=m);var _=M.prototype=w.prototype=Object.create(v);S.prototype=_.constructor=M,M.constructor=S,M[l]=S.displayName="GeneratorFunction",c.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},c.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,M):(t.__proto__=M,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create(_),t},c.awrap=function(t){return{__await:t}},C(T.prototype),T.prototype[s]=function(){return this},c.AsyncIterator=T,c.async=function(t,e,n,r){var i=new T(x(t,e,n,r));return c.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(_),_[l]="Generator",_[a]=function(){return this},_.toString=function(){return"[object Generator]"},c.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},c.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function x(t,e,n,r){var i=e&&e.prototype instanceof w?e:w,o=Object.create(i.prototype),a=new L(r||[]);return o._invoke=I(t,n,a),o}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function w(){}function S(){}function M(){}function C(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function T(t){function e(n,r,o,a){var s=b(t[n],t,r);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(u).then((function(t){l.value=t,o(l)}),a)}a(s.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function I(t,e,n){var r=h;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return P()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=b(t,e,n);if("normal"===l.type){if(r=n.done?d:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=d,n.method="throw",n.arg=l.arg)}}}function A(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,A(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=b(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r<t.length)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},9742:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},9876:function(t,e,n){var r=n("03d6"),i=n("9742");t.exports=Object.keys||function(t){return r(t,i)}},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),l=n("50c4"),u=n("8418"),c=n("65f0"),h=n("1dde"),f=n("b622"),p=n("2d00"),d=f("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",y=p>=51||!i((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),m=h("concat"),_=function(t){if(!a(t))return!1;var e=t[d];return void 0!==e?!!e:o(t)},x=!y||!m;r({target:"Array",proto:!0,forced:x},{concat:function(t){var e,n,r,i,o,a=s(this),h=c(a,0),f=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],_(o)){if(i=l(o.length),f+i>g)throw TypeError(v);for(n=0;n<i;n++,f++)n in o&&u(h,f,o[n])}else{if(f>=g)throw TypeError(v);u(h,f++,o)}return h.length=f,h}})},"9bdd":function(t,e,n){var r=n("825a");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&r(o.call(t)),a}}},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9c0c":function(t,e,n){var r=n("1609");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c0e":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"9d11":function(t,e,n){var r=n("fc5e"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,u,!1,!0),s[u]=l,t}},"9f7f":function(t,e,n){"use strict";var r=n("d039");function i(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},"9fbb":function(t,e,n){var r=n("4d88");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},a15b:function(t,e,n){"use strict";var r=n("23e7"),i=n("44ad"),o=n("fc6a"),a=n("a640"),s=[].join,l=i!=Object,u=a("join",",");r({target:"Array",proto:!0,forced:l||!u},{join:function(t){return s.call(o(this),void 0===t?",":t)}})},a15e:function(t,e,n){"use strict";n.r(e);var r=n("41b2"),i=n.n(r),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,i=e[0],o=e.length;if("function"===typeof i)return i.apply(null,e.slice(1));if("string"===typeof i){for(var a=String(i).replace(s,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(n){return"[Circular]"}break;default:return t}})),l=e[r];r<o;l=e[++r])a+=" "+l;return a}return i}function c(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}function h(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!c(e)||"string"!==typeof t||t))}function f(t,e,n){var r=[],i=0,o=t.length;function a(t){r.push.apply(r,t),i++,i===o&&n(r)}t.forEach((function(t){e(t,a)}))}function p(t,e,n){var r=0,i=t.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?e(t[s],o):n([])}}o([])}function d(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,t[n])})),e}function g(t,e,n,r){if(e.first){var i=d(t);return p(i,n,r)}var o=e.firstFields||[];!0===o&&(o=Object.keys(t));var a=Object.keys(t),s=a.length,l=0,u=[],c=function(t){u.push.apply(u,t),l++,l===s&&r(u)};a.forEach((function(e){var r=t[e];-1!==o.indexOf(e)?p(r,n,c):f(r,n,c)}))}function v(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function y(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(t[n])?t[n]=i()({},t[n],r):t[n]=r}return t}function m(t,e,n,r,i,o){!t.required||n.hasOwnProperty(t.field)&&!h(e,o||t.type)||r.push(u(i.messages.required,t.fullField))}var _=m;function x(t,e,n,r,i){(/^\s+$/.test(e)||""===e)&&r.push(u(i.messages.whitespace,t.fullField))}var b=x,w={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},S={integer:function(t){return S.number(t)&&parseInt(t,10)===t},float:function(t){return S.number(t)&&!S.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear},number:function(t){return!isNaN(t)&&"number"===typeof t},object:function(t){return"object"===("undefined"===typeof t?"undefined":a()(t))&&!S.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&!!t.match(w.email)&&t.length<255},url:function(t){return"string"===typeof t&&!!t.match(w.url)},hex:function(t){return"string"===typeof t&&!!t.match(w.hex)}};function M(t,e,n,r,i){if(t.required&&void 0===e)_(t,e,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?S[s](e)||r.push(u(i.messages.types[s],t.fullField,t.type)):s&&("undefined"===typeof e?"undefined":a()(e))!==t.type&&r.push(u(i.messages.types[s],t.fullField,t.type))}}var C=M;function T(t,e,n,r,i){var o="number"===typeof t.len,a="number"===typeof t.min,s="number"===typeof t.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,h=null,f="number"===typeof e,p="string"===typeof e,d=Array.isArray(e);if(f?h="number":p?h="string":d&&(h="array"),!h)return!1;d&&(c=e.length),p&&(c=e.replace(l,"_").length),o?c!==t.len&&r.push(u(i.messages[h].len,t.fullField,t.len)):a&&!s&&c<t.min?r.push(u(i.messages[h].min,t.fullField,t.min)):s&&!a&&c>t.max?r.push(u(i.messages[h].max,t.fullField,t.max)):a&&s&&(c<t.min||c>t.max)&&r.push(u(i.messages[h].range,t.fullField,t.min,t.max))}var I=T,A="enum";function D(t,e,n,r,i){t[A]=Array.isArray(t[A])?t[A]:[],-1===t[A].indexOf(e)&&r.push(u(i.messages[A],t.fullField,t[A].join(", ")))}var k=D;function L(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(u(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){var o=new RegExp(t.pattern);o.test(e)||r.push(u(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}var O=L,P={required:_,whitespace:b,type:C,range:I,enum:k,pattern:O};function E(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e,"string")&&!t.required)return n();P.required(t,e,r,o,i,"string"),h(e,"string")||(P.type(t,e,r,o,i),P.range(t,e,r,o,i),P.pattern(t,e,r,o,i),!0===t.whitespace&&P.whitespace(t,e,r,o,i))}n(o)}var R=E;function N(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();P.required(t,e,r,o,i),void 0!==e&&P.type(t,e,r,o,i)}n(o)}var z=N;function B(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();P.required(t,e,r,o,i),void 0!==e&&(P.type(t,e,r,o,i),P.range(t,e,r,o,i))}n(o)}var V=B;function F(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();P.required(t,e,r,o,i),void 0!==e&&P.type(t,e,r,o,i)}n(o)}var G=F;function j(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();P.required(t,e,r,o,i),h(e)||P.type(t,e,r,o,i)}n(o)}var H=j;function W(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();P.required(t,e,r,o,i),void 0!==e&&(P.type(t,e,r,o,i),P.range(t,e,r,o,i))}n(o)}var U=W;function X(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();P.required(t,e,r,o,i),void 0!==e&&(P.type(t,e,r,o,i),P.range(t,e,r,o,i))}n(o)}var $=X;function Y(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e,"array")&&!t.required)return n();P.required(t,e,r,o,i,"array"),h(e,"array")||(P.type(t,e,r,o,i),P.range(t,e,r,o,i))}n(o)}var q=Y;function Z(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();P.required(t,e,r,o,i),void 0!==e&&P.type(t,e,r,o,i)}n(o)}var K=Z,J="enum";function Q(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();P.required(t,e,r,o,i),e&&P[J](t,e,r,o,i)}n(o)}var tt=Q;function et(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e,"string")&&!t.required)return n();P.required(t,e,r,o,i),h(e,"string")||P.pattern(t,e,r,o,i)}n(o)}var nt=et;function rt(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();if(P.required(t,e,r,o,i),!h(e)){var s=void 0;s="number"===typeof e?new Date(e):e,P.type(t,s,r,o,i),s&&P.range(t,s.getTime(),r,o,i)}}n(o)}var it=rt;function ot(t,e,n,r,i){var o=[],s=Array.isArray(e)?"array":"undefined"===typeof e?"undefined":a()(e);P.required(t,e,r,o,i,s),n(o)}var at=ot;function st(t,e,n,r,i){var o=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(h(e,o)&&!t.required)return n();P.required(t,e,r,a,i,o),h(e,o)||P.type(t,e,r,a,i)}n(a)}var lt=st,ut={string:R,method:z,number:V,boolean:G,regexp:H,integer:U,float:$,array:q,object:K,enum:tt,pattern:nt,date:it,url:lt,hex:lt,email:lt,required:at};function ct(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ht=ct();function ft(t){this.rules=null,this._messages=ht,this.define(t)}ft.prototype={messages:function(t){return t&&(this._messages=y(ct(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof t?"undefined":a()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=t,s=n,c=r;if("function"===typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var h=this.messages();h===ht&&(h=ct()),y(h,s.messages),s.messages=h}else s.messages=this.messages();var f=void 0,p=void 0,d={},m=s.keys||Object.keys(this.rules);m.forEach((function(n){f=e.rules[n],p=o[n],f.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===t&&(o=i()({},o)),p=o[n]=a.transform(p)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=e.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=e.getType(a),a.validator&&(d[n]=d[n]||[],d[n].push({rule:a,value:p,source:o,field:n}))}))}));var _={};g(d,s,(function(t,e){var n=t.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(t,e){return i()({},e,{fullField:n.fullField+"."+t})}function c(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=a;if(Array.isArray(c)||(c=[c]),c.length&&l("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map(v(n)),s.first&&c.length)return _[n.field]=1,e(c);if(r){if(n.required&&!t.value)return c=n.message?[].concat(n.message).map(v(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],e(c);var h={};if(n.defaultField)for(var f in t.value)t.value.hasOwnProperty(f)&&(h[f]=n.defaultField);for(var p in h=i()({},h,t.rule.fields),h)if(h.hasOwnProperty(p)){var d=Array.isArray(h[p])?h[p]:[h[p]];h[p]=d.map(o.bind(null,p))}var g=new ft(h);g.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),g.validate(t.value,t.rule.options||s,(function(t){e(t&&t.length?c.concat(t):t)}))}else e(c)}r=r&&(n.required||!n.required&&t.value),n.field=t.field;var h=n.validator(n,t.value,c,t.source,s);h&&h.then&&h.then((function(){return c()}),(function(t){return c(t)}))}),(function(t){x(t)}))}else c&&c();function x(t){var e=void 0,n=void 0,r=[],i={};function o(t){Array.isArray(t)?r=r.concat.apply(r,t):r.push(t)}for(e=0;e<t.length;e++)o(t[e]);if(r.length)for(e=0;e<r.length;e++)n=r[e].field,i[n]=i[n]||[],i[n].push(r[e]);else r=null,i=null;c(r,i)}},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!==typeof t.validator&&t.type&&!ut.hasOwnProperty(t.type))throw new Error(u("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"===typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?ut.required:ut[this.getType(t)]||!1}},ft.register=function(t,e){if("function"!==typeof e)throw new Error("Cannot register a validator by type, validator is not a function");ut[t]=e},ft.messages=ht;e["default"]=ft},a3de:function(t,e,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},a434:function(t,e,n){"use strict";var r=n("23e7"),i=n("23cb"),o=n("a691"),a=n("50c4"),s=n("7b0b"),l=n("65f0"),u=n("8418"),c=n("1dde"),h=n("ae40"),f=c("splice"),p=h("splice",{ACCESSORS:!0,0:0,1:2}),d=Math.max,g=Math.min,v=9007199254740991,y="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f||!p},{splice:function(t,e){var n,r,c,h,f,p,m=s(this),_=a(m.length),x=i(t,_),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=_-x):(n=b-2,r=g(d(o(e),0),_-x)),_+n-r>v)throw TypeError(y);for(c=l(m,r),h=0;h<r;h++)f=x+h,f in m&&u(c,h,m[f]);if(c.length=r,n<r){for(h=x;h<_-r;h++)f=h+r,p=h+n,f in m?m[p]=m[f]:delete m[p];for(h=_;h>_-r+n;h--)delete m[h-1]}else if(n>r)for(h=_-r;h>x;h--)f=h+r-1,p=h+n-1,f in m?m[p]=m[f]:delete m[p];for(h=0;h<n;h++)m[h+x]=arguments[h+2];return m.length=_-r+n,c}})},a4d3:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),s=n("83ab"),l=n("4930"),u=n("fdbf"),c=n("d039"),h=n("5135"),f=n("e8b5"),p=n("861d"),d=n("825a"),g=n("7b0b"),v=n("fc6a"),y=n("c04e"),m=n("5c6c"),_=n("7c73"),x=n("df75"),b=n("241c"),w=n("057f"),S=n("7418"),M=n("06cf"),C=n("9bf2"),T=n("d1e7"),I=n("9112"),A=n("6eeb"),D=n("5692"),k=n("f772"),L=n("d012"),O=n("90e3"),P=n("b622"),E=n("e538"),R=n("746f"),N=n("d44e"),z=n("69f3"),B=n("b727").forEach,V=k("hidden"),F="Symbol",G="prototype",j=P("toPrimitive"),H=z.set,W=z.getterFor(F),U=Object[G],X=i.Symbol,$=o("JSON","stringify"),Y=M.f,q=C.f,Z=w.f,K=T.f,J=D("symbols"),Q=D("op-symbols"),tt=D("string-to-symbol-registry"),et=D("symbol-to-string-registry"),nt=D("wks"),rt=i.QObject,it=!rt||!rt[G]||!rt[G].findChild,ot=s&&c((function(){return 7!=_(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(U,e);r&&delete U[e],q(t,e,n),r&&t!==U&&q(U,e,r)}:q,at=function(t,e){var n=J[t]=_(X[G]);return H(n,{type:F,tag:t,description:e}),s||(n.description=e),n},st=u?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof X},lt=function(t,e,n){t===U&<(Q,e,n),d(t);var r=y(e,!0);return d(n),h(J,r)?(n.enumerable?(h(t,V)&&t[V][r]&&(t[V][r]=!1),n=_(n,{enumerable:m(0,!1)})):(h(t,V)||q(t,V,m(1,{})),t[V][r]=!0),ot(t,r,n)):q(t,r,n)},ut=function(t,e){d(t);var n=v(e),r=x(n).concat(dt(n));return B(r,(function(e){s&&!ht.call(n,e)||lt(t,e,n[e])})),t},ct=function(t,e){return void 0===e?_(t):ut(_(t),e)},ht=function(t){var e=y(t,!0),n=K.call(this,e);return!(this===U&&h(J,e)&&!h(Q,e))&&(!(n||!h(this,e)||!h(J,e)||h(this,V)&&this[V][e])||n)},ft=function(t,e){var n=v(t),r=y(e,!0);if(n!==U||!h(J,r)||h(Q,r)){var i=Y(n,r);return!i||!h(J,r)||h(n,V)&&n[V][r]||(i.enumerable=!0),i}},pt=function(t){var e=Z(v(t)),n=[];return B(e,(function(t){h(J,t)||h(L,t)||n.push(t)})),n},dt=function(t){var e=t===U,n=Z(e?Q:v(t)),r=[];return B(n,(function(t){!h(J,t)||e&&!h(U,t)||r.push(J[t])})),r};if(l||(X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=O(t),n=function(t){this===U&&n.call(Q,t),h(this,V)&&h(this[V],e)&&(this[V][e]=!1),ot(this,e,m(1,t))};return s&&it&&ot(U,e,{configurable:!0,set:n}),at(e,t)},A(X[G],"toString",(function(){return W(this).tag})),A(X,"withoutSetter",(function(t){return at(O(t),t)})),T.f=ht,C.f=lt,M.f=ft,b.f=w.f=pt,S.f=dt,E.f=function(t){return at(P(t),t)},s&&(q(X[G],"description",{configurable:!0,get:function(){return W(this).description}}),a||A(U,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:X}),B(x(nt),(function(t){R(t)})),r({target:F,stat:!0,forced:!l},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=X(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(h(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:ct,defineProperty:lt,defineProperties:ut,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pt,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:c((function(){S.f(1)}))},{getOwnPropertySymbols:function(t){return S.f(g(t))}}),$){var gt=!l||c((function(){var t=X();return"[null]"!=$([t])||"{}"!=$({a:t})||"{}"!=$(Object(t))}));r({target:"JSON",stat:!0,forced:gt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!st(t))return f(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!st(e))return e}),i[1]=e,$.apply(null,i)}})}X[G][j]||I(X[G],j,X[G].valueOf),N(X,F),L[V]=!0},a5d8:function(t,e,n){},a630:function(t,e,n){var r=n("23e7"),i=n("4df4"),o=n("1c7e"),a=!o((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:a},{from:i})},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a78e:function(t,e,n){var r,i;
- /*!
- * JavaScript Cookie v2.2.0
- * https://github.com/js-cookie/js-cookie
- *
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
- * Released under the MIT license
- */(function(o){var a=!1;if(r=o,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i),a=!0,t.exports=o(),a=!0,!a){var s=window.Cookies,l=window.Cookies=o();l.noConflict=function(){return window.Cookies=s,l}}})((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(n){function r(e,i,o){var a;if("undefined"!==typeof document){if(arguments.length>1){if(o=t({path:"/"},r.defaults,o),"number"===typeof o.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(v){}i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape);var l="";for(var u in o)o[u]&&(l+="; "+u,!0!==o[u]&&(l+="="+o[u]));return document.cookie=e+"="+i+l}e||(a={});for(var c=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,f=0;f<c.length;f++){var p=c[f].split("="),d=p.slice(1).join("=");this.json||'"'!==d.charAt(0)||(d=d.slice(1,-1));try{var g=p[0].replace(h,decodeURIComponent);if(d=n.read?n.read(d,g):n(d,g)||d.replace(h,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(v){}if(e===g){a=d;break}e||(a[g]=d)}catch(v){}}return a}}return r.set=r,r.get=function(t){return r.call(r,t)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(e,n){r(e,"",t(n,{expires:-1}))},r.withConverter=e,r}return e((function(){}))}))},a79d:function(t,e,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("fea9"),a=n("d039"),s=n("d066"),l=n("4840"),u=n("cdf9"),c=n("6eeb"),h=!!o&&a((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(t){var e=l(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then((function(){return n}))}:t,n?function(n){return u(e,t()).then((function(){throw n}))}:t)}}),i||"function"!=typeof o||o.prototype["finally"]||c(o.prototype,"finally",s("Promise").prototype["finally"])},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("6eeb"),s=n("5135"),l=n("c6b6"),u=n("7156"),c=n("c04e"),h=n("d039"),f=n("7c73"),p=n("241c").f,d=n("06cf").f,g=n("9bf2").f,v=n("58a8").trim,y="Number",m=i[y],_=m.prototype,x=l(f(_))==y,b=function(t){var e,n,r,i,o,a,s,l,u=c(t,!1);if("string"==typeof u&&u.length>2)if(u=v(u),e=u.charCodeAt(0),43===e||45===e){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=u.slice(2),a=o.length,s=0;s<a;s++)if(l=o.charCodeAt(s),l<48||l>i)return NaN;return parseInt(o,r)}return+u};if(o(y,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,S=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof S&&(x?h((function(){_.valueOf.call(n)})):l(n)!=y)?u(new m(b(e)),n,S):b(e)},M=r?p(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;M.length>C;C++)s(m,w=M[C])&&!s(S,w)&&g(S,w,d(m,w));S.prototype=_,_.constructor=S,a(i,y,S)}},ab13:function(t,e,n){var r=n("b622"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},ac1f:function(t,e,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ade3:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},ae40:function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("5135"),a=Object.defineProperty,s={},l=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],u=!!o(e,"ACCESSORS")&&e.ACCESSORS,c=o(e,0)?e[0]:l,h=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(u&&!r)return!0;var t={length:-1};u?a(t,1,{enumerable:!0,get:l}):t[1]=1,n.call(t,c,h)}))}},ae93:function(t,e,n){"use strict";var r,i,o,a=n("e163"),s=n("9112"),l=n("5135"),u=n("b622"),c=n("c430"),h=u("iterator"),f=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),c||l(r,h)||s(r,h,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(t,e,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,l="name";r&&!(l in o)&&i(o,l,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},b0fd:function(t,e,n){(function(e){var n=e.audio||document.createElement("audio");t.exports=n}).call(this,n("c8ba"))},b367:function(t,e,n){var r=n("5524"),i=n("ef08"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("e444")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},b50d:function(t,e,n){"use strict";var r=n("c532"),i=n("467f"),o=n("30b5"),a=n("c345"),s=n("3934"),l=n("2d83");t.exports=function(t){return new Promise((function(e,u){var c=t.data,h=t.headers;r.isFormData(c)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",d=t.auth.password||"";h.Authorization="Basic "+btoa(p+":"+d)}if(f.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?f.response:f.responseText,o={data:r,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};i(e,u,o),f=null}},f.onerror=function(){u(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){u(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var g=n("7aac"),v=(t.withCredentials||s(t.url))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}if("setRequestHeader"in f&&r.forEach(h,(function(t,e){"undefined"===typeof c&&"content-type"===e.toLowerCase()?delete h[e]:f.setRequestHeader(e,t)})),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(y){if("json"!==t.responseType)throw y}"function"===typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),u(t),f=null)})),void 0===c&&(c=null),f.send(c)}))}},b575:function(t,e,n){var r,i,o,a,s,l,u,c,h=n("da84"),f=n("06cf").f,p=n("c6b6"),d=n("2cf4").set,g=n("1cdc"),v=h.MutationObserver||h.WebKitMutationObserver,y=h.process,m=h.Promise,_="process"==p(y),x=f(h,"queueMicrotask"),b=x&&x.value;b||(r=function(){var t,e;_&&(t=y.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},_?a=function(){y.nextTick(r)}:v&&!g?(s=!0,l=document.createTextNode(""),new v(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):m&&m.resolve?(u=m.resolve(void 0),c=u.then,a=function(){c.call(u,r)}):a=function(){d.call(h,r)}),t.exports=b||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),l=n("fdbf"),u=i("wks"),c=r.Symbol,h=l?c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)||(s&&o(c,t)?u[t]=c[t]:u[t]=h("Symbol."+t)),u[t]}},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(t){return o(i(t))}})},b727:function(t,e,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),s=n("65f0"),l=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,c=4==t,h=6==t,f=5==t||h;return function(p,d,g,v){for(var y,m,_=o(p),x=i(_),b=r(d,g,3),w=a(x.length),S=0,M=v||s,C=e?M(p,w):n?M(p,0):void 0;w>S;S++)if((f||S in x)&&(y=x[S],m=b(y,S,_),t))if(e)C[S]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:l.call(C,y)}else if(c)return!1;return h?-1:u||c?c:C}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},b85c:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");var r=n("06c5");function i(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=Object(r["a"])(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(l)throw a}}}}},b9c7:function(t,e,n){n("e507"),t.exports=n("5524").Object.assign},ba01:function(t,e,n){t.exports=n("051b")},bc3a:function(t,e,n){t.exports=n("cee4")},bd11:function(t,e){t.exports=g,t.exports.parse=o,t.exports.compile=a,t.exports.tokensToFunction=s,t.exports.tokensToRegExp=d;var n="/",r="./",i=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function o(t,e){var o,a=[],s=0,c=0,h="",f=e&&e.delimiter||n,p=e&&e.delimiters||r,d=!1;while(null!==(o=i.exec(t))){var g=o[0],v=o[1],y=o.index;if(h+=t.slice(c,y),c=y+g.length,v)h+=v[1],d=!0;else{var m="",_=t[c],x=o[2],b=o[3],w=o[4],S=o[5];if(!d&&h.length){var M=h.length-1;p.indexOf(h[M])>-1&&(m=h[M],h=h.slice(0,M))}h&&(a.push(h),h="",d=!1);var C=""!==m&&void 0!==_&&_!==m,T="+"===S||"*"===S,I="?"===S||"*"===S,A=m||f,D=b||w;a.push({name:x||s++,prefix:m,delimiter:A,optional:I,repeat:T,partial:C,pattern:D?u(D):"[^"+l(A)+"]+?"})}}return(h||c<t.length)&&a.push(h+t.substr(c)),a}function a(t,e){return s(o(t,e))}function s(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"===typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var i="",o=r&&r.encode||encodeURIComponent,a=0;a<t.length;a++){var s=t[a];if("string"!==typeof s){var l,u=n?n[s.name]:void 0;if(Array.isArray(u)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but got array');if(0===u.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var c=0;c<u.length;c++){if(l=o(u[c],s),!e[a].test(l))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'"');i+=(0===c?s.prefix:s.delimiter)+l}}else if("string"!==typeof u&&"number"!==typeof u&&"boolean"!==typeof u){if(!s.optional)throw new TypeError('Expected "'+s.name+'" to be '+(s.repeat?"an array":"a string"));s.partial&&(i+=s.prefix)}else{if(l=o(String(u),s),!e[a].test(l))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but got "'+l+'"');i+=s.prefix+l}}else i+=s}return i}}function l(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function u(t){return t.replace(/([=!:$/()])/g,"\\$1")}function c(t){return t&&t.sensitive?"":"i"}function h(t,e){if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t}function f(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(g(t[i],e,n).source);return new RegExp("(?:"+r.join("|")+")",c(n))}function p(t,e,n){return d(o(t,n),e,n)}function d(t,e,i){i=i||{};for(var o=i.strict,a=!1!==i.start,s=!1!==i.end,u=l(i.delimiter||n),h=i.delimiters||r,f=[].concat(i.endsWith||[]).map(l).concat("$").join("|"),p=a?"^":"",d=0===t.length,g=0;g<t.length;g++){var v=t[g];if("string"===typeof v)p+=l(v),d=g===t.length-1&&h.indexOf(v[v.length-1])>-1;else{var y=v.repeat?"(?:"+v.pattern+")(?:"+l(v.delimiter)+"(?:"+v.pattern+"))*":v.pattern;e&&e.push(v),v.optional?v.partial?p+=l(v.prefix)+"("+y+")?":p+="(?:"+l(v.prefix)+"("+y+"))?":p+=l(v.prefix)+"("+y+")"}}return s?(o||(p+="(?:"+u+")?"),p+="$"===f?"$":"(?="+f+")"):(o||(p+="(?:"+u+"(?="+f+"))?"),d||(p+="(?="+u+"|"+f+")")),new RegExp(p,c(i))}function g(t,e,n){return t instanceof RegExp?h(t,e):Array.isArray(t)?f(t,e,n):p(t,e,n)}},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},c098:function(t,e,n){t.exports=n("d4af")},c345:function(t,e,n){"use strict";var r=n("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c401:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e){t.exports=!1},c532:function(t,e,n){"use strict";var r=n("1d2b"),i=n("044b"),o=Object.prototype.toString;function a(t){return"[object Array]"===o.call(t)}function s(t){return"[object ArrayBuffer]"===o.call(t)}function l(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function c(t){return"string"===typeof t}function h(t){return"number"===typeof t}function f(t){return"undefined"===typeof t}function p(t){return null!==t&&"object"===typeof t}function d(t){return"[object Date]"===o.call(t)}function g(t){return"[object File]"===o.call(t)}function v(t){return"[object Blob]"===o.call(t)}function y(t){return"[object Function]"===o.call(t)}function m(t){return p(t)&&y(t.pipe)}function _(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function x(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function w(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function S(){var t={};function e(e,n){"object"===typeof t[n]&&"object"===typeof e?t[n]=S(t[n],e):t[n]=e}for(var n=0,r=arguments.length;n<r;n++)w(arguments[n],e);return t}function M(t,e,n){return w(e,(function(e,i){t[i]=n&&"function"===typeof e?r(e,n):e})),t}t.exports={isArray:a,isArrayBuffer:s,isBuffer:i,isFormData:l,isArrayBufferView:u,isString:c,isNumber:h,isObject:p,isUndefined:f,isDate:d,isFile:g,isBlob:v,isFunction:y,isStream:m,isURLSearchParams:_,isStandardBrowserEnv:b,forEach:w,merge:S,extend:M,trim:x}},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c740:function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,o=n("44d2"),a=n("ae40"),s="findIndex",l=!0,u=a(s);s in[]&&Array(1)[s]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!u},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},c8af:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c8d2:function(t,e,n){var r=n("d039"),i=n("5899"),o="
";t.exports=function(t){return r((function(){return!!i[t]()||o[t]()!=o||i[t].name!==t}))}},c901:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c975:function(t,e,n){"use strict";var r=n("23e7"),i=n("4d64").indexOf,o=n("a640"),a=n("ae40"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,u=o("indexOf"),c=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!u||!c},{indexOf:function(t){return l?s.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,s=i(t),l=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);while(e.length>l)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},caad:function(t,e,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("44d2"),a=n("ae40"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cc15:function(t,e,n){var r=n("b367")("wks"),i=n("8b1a"),o=n("ef08").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},ce7a:function(t,e,n){var r=n("9c0e"),i=n("0983"),o=n("5a94")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},cee4:function(t,e,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("2444");function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var l=s(a);l.Axios=o,l.create=function(t){return s(r.merge(a,t))},l.Cancel=n("7a77"),l.CancelToken=n("8df4"),l.isCancel=n("2e67"),l.all=function(t){return Promise.all(t)},l.spread=n("0df6"),t.exports=l,t.exports.default=l},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d16a:function(t,e,n){var r=n("fc5e"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d28b:function(t,e,n){var r=n("746f");r("iterator")},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d4af:function(t,e,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function l(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*o,i=n*o,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},t.exports=l},d784:function(t,e,n){"use strict";n("ac1f");var r=n("6eeb"),i=n("d039"),o=n("b622"),a=n("9263"),s=n("9112"),l=o("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),h=o("replace"),f=function(){return!!/./[h]&&""===/./[h]("a","$0")}(),p=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,h){var d=o(t),g=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),v=g&&!i((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!g||!v||"replace"===t&&(!u||!c||f)||"split"===t&&!p){var y=/./[d],m=n(d,""[t],(function(t,e,n,r,i){return e.exec===a?g&&!i?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),_=m[0],x=m[1];r(String.prototype,t,_),r(RegExp.prototype,d,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}h&&s(RegExp.prototype[d],"sham",!0)}},d81d:function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").map,o=n("1dde"),a=n("ae40"),s=o("map"),l=a("map");r({target:"Array",proto:!0,forced:!s||!l},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(t,e,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=a(t),i=s.f,u=o(r),c={},h=0;while(u.length>h)n=i(r,e=u[h++]),void 0!==n&&l(c,e,n);return c}})},ddb0:function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),s=n("b622"),l=s("iterator"),u=s("toStringTag"),c=o.values;for(var h in i){var f=r[h],p=f&&f.prototype;if(p){if(p[l]!==c)try{a(p,l,c)}catch(g){p[l]=c}if(p[u]||a(p,u,h),i[h])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(g){p[d]=o[d]}}}},df45:function(t,e,n){(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="112a")}({"008a":function(t,e,n){var r=n("f6b4");t.exports=function(t){return Object(r(t))}},"064e":function(t,e,n){var r=n("69b3"),i=n("db6b"),o=n("94b3"),a=Object.defineProperty;e.f=n("149f")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"09b9":function(t,e,n){var r=n("224c"),i=n("f6b4");t.exports=function(t){return r(i(t))}},"0aed":function(t,e,n){"use strict";n("aaba");var r=n("bf16"),i=n("86d4"),o=n("238a"),a=n("f6b4"),s=n("cb3d"),l=n("8714"),u=s("species"),c=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!o((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),d=p?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[u]=function(){return n}),n[f](""),!e})):void 0;if(!p||!d||"replace"===t&&!c||"split"===t&&!h){var g=/./[f],v=n(a,f,""[t],(function(t,e,n,r,i){return e.exec===l?p&&!i?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),y=v[0],m=v[1];r(String.prototype,t,y),i(RegExp.prototype,f,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}}},"0dc8":function(t,e,n){var r=n("064e"),i=n("69b3"),o=n("80a9");t.exports=n("149f")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,l=0;while(s>l)r.f(t,n=a[l++],e[n]);return t}},"0e8b":function(t,e,n){var r=n("cb3d")("unscopables"),i=Array.prototype;void 0==i[r]&&n("86d4")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"112a":function(t,e,n){"use strict";var r;function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}n.r(e),"undefined"!==typeof window&&(n("e67d"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1])),n("9dd9"),n("f548"),n("6d57"),n("5f54");var l=function(){function t(e){o(this,t),this.standards={strict:"strict",loose:"loose",html5:"html5"},this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5,extraHead:"",extraCss:"",popTitle:"",endCallback:null,ids:""},Object.assign(this.settings,e),this.init()}return s(t,[{key:"init",value:function(){this.counter++,this.settings.id="printArea_".concat(this.counter);var t=this.getPrintWindow();this.write(t.doc),this.print(t),this.settings.endCallback()}},{key:"print",value:function(t){var e=this,n=t.win,r=function(){n.focus(),n.print();try{var t=document.getElementById(e.settings.id),r=e.elsdom.querySelectorAll(".canvasImg");console.log(e.elsdom);for(var i=0;i<r.length;i++){var o=r[i].parentNode;o.removeChild(r[i])}t.parentNode.removeChild(t)}catch(a){console.log(a)}};if(window.ActiveXObject)return n.onload=r(),!1;n.onload=function(){r()}}},{key:"write",value:function(t,e){t.open(),t.write("".concat(this.docType(),"<html>").concat(this.getHead()).concat(this.getBody(),"</html>")),t.close()}},{key:"docType",value:function(){if(this.settings.standard===this.standards.html5)return"<!DOCTYPE html>";var t=this.settings.standard===this.standards.loose?" Transitional":"",e=this.settings.standard===this.standards.loose?"loose":"strict";return'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01'.concat(t,'//EN" "http://www.w3.org/TR/html4/').concat(e,'.dtd">')}},{key:"getHead",value:function(){var t="",e="",n="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,(function(e){t+=e})),[].forEach.call(document.querySelectorAll("link"),(function(t,n){t.href.indexOf(".css")>=0&&(e+='<link type="text/css" rel="stylesheet" href="'.concat(t.href,'" >'))}));var r=document.styleSheets;if(r&&r.length>0)for(var i=0;i<r.length;i++)try{if(r[i].cssRules||r[i].rules)for(var o=r[i].cssRules||r[i].rules,a=0;a<o.length;a++)n+=o[a].cssText}catch(s){console.log(r[i].href+s)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,(function(t){e+='<link type="text/css" rel="stylesheet" href="'.concat(t,'">')})),"<head><title>".concat(this.settings.popTitle,"</title>").concat(t).concat(e,'<style type="text/css">').concat(n,"</style></head>")}},{key:"getBody",value:function(){var t=this.settings.ids;t=t.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(t));var e=this.getFormData(this.elsdom),n=e.outerHTML;return"<body>"+n+"</body>"}},{key:"beforeHanler",value:function(t){for(var e=t.querySelectorAll("canvas"),n=0;n<e.length;n++)if(!e[n].style.display){var r=e[n].parentNode,i=e[n].toDataURL("image/png"),o=new Image;o.className="canvasImg",o.style.display="none",o.src=i,r.appendChild(o)}return t}},{key:"getFormData",value:function(t){for(var e=t.cloneNode(!0),n=e.querySelectorAll("input,select,textarea"),r=e.querySelectorAll(".canvasImg,canvas"),i=-1,o=0;o<r.length;o++){var a=r[o].parentNode,s=r[o];"canvas"===s.tagName.toLowerCase()?a.removeChild(s):s.style.display="block"}for(var l=0;l<n.length;l++){var u=n[l],c=u.getAttribute("type"),h=n[l];if(c||(c="SELECT"===u.tagName?"select":"TEXTAREA"===u.tagName?"textarea":""),"INPUT"===u.tagName)"radio"===c||"checkbox"===c?h.setAttribute("checked",u.checked):(h.value=u.value,h.setAttribute("value",u.value));else if("select"===c){i++;for(var f=0;f<t.querySelectorAll("select").length;f++){var p=t.querySelectorAll("select")[f];if(!p.getAttribute("newbs")&&p.setAttribute("newbs",f),p.getAttribute("newbs")==i){var d=t.querySelectorAll("select")[i].selectedIndex;u.options[d].setAttribute("selected",!0)}}}else h.innerHTML=u.value,h.setAttribute("html",u.value)}return e}},{key:"getPrintWindow",value:function(){var t=this.Iframe();return{f:t,win:t.contentWindow||t,doc:t.doc}}},{key:"Iframe",value:function(){var t,e=this.settings.id,n=this;try{t=document.createElement("iframe"),document.body.appendChild(t),t.style.border="0px",t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.style.right="0px",t.style.top="0px",t.setAttribute("id",e),t.setAttribute("src",(new Date).getTime()),t.doc=null,t.doc=t.contentDocument?t.contentDocument:t.contentWindow?t.contentWindow.document:t.document,t.onload=function(){var e=t.contentWindow||t;n.print(e)}}catch(r){throw new Error(r+". iframes may not be supported in this browser.")}if(null==t.doc)throw new Error("Cannot find document.");return t}}]),t}(),u={directiveName:"print",bind:function(t,e,n){var r=n.context,o=!0,a="";t.addEventListener("click",(function(){r.$nextTick((function(){if("string"===typeof e.value)a=e.value;else if("object"===i(e.value)&&e.value.id){a=e.value.id;var t=a.replace(new RegExp("#","g"),""),n=document.getElementById(t);n||(console.log("id in Error"),a="")}a?s():window.print()}))}));var s=function(){o&&(o=!1,new l({ids:a,standard:"",extraHead:e.value.extraHead,extraCss:e.value.extraCss,popTitle:e.value.popTitle,endCallback:function(){o=!0}}))}},install:function(t){t.directive("print",u)}},c=u;e["default"]=c},1157:function(t,e,n){"use strict";var r=n("e7ad"),i=n("064e"),o=n("149f"),a=n("cb3d")("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},"149f":function(t,e,n){t.exports=!n("238a")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"1e5b":function(t,e,n){var r=n("fb68"),i=n("859b").set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"224c":function(t,e,n){var r=n("75c4");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"238a":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2ea2":function(t,e,n){var r=n("c2f7"),i=n("ceac").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"2f77":function(t,e){e.f=Object.getOwnPropertySymbols},"2fd4":function(t,e,n){var r=n("fb68"),i=n("75c4"),o=n("cb3d")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},"32b9":function(t,e,n){"use strict";var r=n("e005"),i=n("cc33"),o=n("399f"),a={};n("86d4")(a,n("cb3d")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"399f":function(t,e,n){var r=n("064e").f,i=n("e042"),o=n("cb3d")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"475d":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},"492d":function(t,e,n){"use strict";var r=n("550e"),i=n("e46b"),o=n("bf16"),a=n("86d4"),s=n("da6d"),l=n("32b9"),u=n("399f"),c=n("58cf"),h=n("cb3d")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",g="values",v=function(){return this};t.exports=function(t,e,n,y,m,_,x){l(n,e,y);var b,w,S,M=function(t){if(!f&&t in A)return A[t];switch(t){case d:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",T=m==g,I=!1,A=t.prototype,D=A[h]||A[p]||m&&A[m],k=D||M(m),L=m?T?M("entries"):k:void 0,O="Array"==e&&A.entries||D;if(O&&(S=c(O.call(new t)),S!==Object.prototype&&S.next&&(u(S,C,!0),r||"function"==typeof S[h]||a(S,h,v))),T&&D&&D.name!==g&&(I=!0,k=function(){return D.call(this)}),r&&!x||!f&&!I&&A[h]||a(A,h,k),s[e]=k,s[C]=v,m)if(b={values:T?k:M(g),keys:_?k:M(d),entries:L},x)for(w in b)w in A||o(A,w,b[w]);else i(i.P+i.F*(f||I),e,b);return b}},"4ce5":function(t,e,n){var r=n("5daa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"4f18":function(t,e){e.f={}.propertyIsEnumerable},"550e":function(t,e){t.exports=!1},"56f2":function(t,e,n){var r=n("6798")("keys"),i=n("ec45");t.exports=function(t){return r[t]||(r[t]=i(t))}},"58cf":function(t,e,n){var r=n("e042"),i=n("008a"),o=n("56f2")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"5daa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"5f54":function(t,e,n){var r=n("e46b");r(r.S+r.F,"Object",{assign:n("e118")})},6798:function(t,e,n){var r=n("7ddc"),i=n("e7ad"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("550e")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"69b3":function(t,e,n){var r=n("fb68");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"6d57":function(t,e,n){for(var r=n("e44b"),i=n("80a9"),o=n("bf16"),a=n("e7ad"),s=n("86d4"),l=n("da6d"),u=n("cb3d"),c=u("iterator"),h=u("toStringTag"),f=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),g=0;g<d.length;g++){var v,y=d[g],m=p[y],_=a[y],x=_&&_.prototype;if(x&&(x[c]||s(x,c,f),x[h]||s(x,h,y),l[y]=f,m))for(v in r)x[v]||o(x,v,r[v],!0)}},7108:function(t,e,n){"use strict";var r=n("7e23"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"75c4":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"7ddc":function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"7e23":function(t,e,n){var r=n("75c4"),i=n("cb3d")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},"80a9":function(t,e,n){var r=n("c2f7"),i=n("ceac");t.exports=Object.keys||function(t){return r(t,i)}},"859b":function(t,e,n){var r=n("fb68"),i=n("69b3"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("4ce5")(Function.call,n("dcb7").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},"86d4":function(t,e,n){var r=n("064e"),i=n("cc33");t.exports=n("149f")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},8714:function(t,e,n){"use strict";var r=n("f1fe"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",l=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t[s]||0!==e[s]}(),u=void 0!==/()??/.exec("")[1],c=l||u;c&&(a=function(t){var e,n,a,c,h=this;return u&&(n=new RegExp("^"+h.source+"$(?!\\s)",r.call(h))),l&&(e=h[s]),a=i.call(h,t),l&&a&&(h[s]=h.global?a.index+a[0].length:e),u&&a&&a.length>1&&o.call(a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a}),t.exports=a},"8df1":function(t,e,n){var r=n("e7ad").document;t.exports=r&&r.documentElement},"94b3":function(t,e,n){var r=n("fb68");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"9dd9":function(t,e,n){var r=n("e7ad"),i=n("1e5b"),o=n("064e").f,a=n("2ea2").f,s=n("2fd4"),l=n("f1fe"),u=r.RegExp,c=u,h=u.prototype,f=/a/g,p=/a/g,d=new u(f)!==f;if(n("149f")&&(!d||n("238a")((function(){return p[n("cb3d")("match")]=!1,u(f)!=f||u(p)==p||"/a/i"!=u(f,"i")})))){u=function(t,e){var n=this instanceof u,r=s(t),o=void 0===e;return!n&&r&&t.constructor===u&&o?t:i(d?new c(r&&!o?t.source:t,e):c((r=t instanceof u)?t.source:t,r&&o?l.call(t):e),n?this:h,u)};for(var g=function(t){t in u||o(u,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})},v=a(c),y=0;v.length>y;)g(v[y++]);h.constructor=u,u.prototype=h,n("bf16")(r,"RegExp",u)}n("1157")("RegExp")},aaba:function(t,e,n){"use strict";var r=n("8714");n("e46b")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b3a6:function(t,e,n){var r=n("09b9"),i=n("eafa"),o=n("f58a");t.exports=function(t){return function(e,n,a){var s,l=r(e),u=i(l.length),c=o(a,u);if(t&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},bf16:function(t,e,n){var r=n("e7ad"),i=n("86d4"),o=n("e042"),a=n("ec45")("src"),s=n("d07e"),l="toString",u=(""+s).split(l);n("7ddc").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},bfe7:function(t,e,n){var r=n("fb68"),i=n("e7ad").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},c2f7:function(t,e,n){var r=n("e042"),i=n("09b9"),o=n("b3a6")(!1),a=n("56f2")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(e.length>l)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},cb3d:function(t,e,n){var r=n("6798")("wks"),i=n("ec45"),o=n("e7ad").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},cc33:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},ceac:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},d07e:function(t,e,n){t.exports=n("6798")("native-function-to-string",Function.toString)},da6d:function(t,e){t.exports={}},db6b:function(t,e,n){t.exports=!n("149f")&&!n("238a")((function(){return 7!=Object.defineProperty(n("bfe7")("div"),"a",{get:function(){return 7}}).a}))},dcb7:function(t,e,n){var r=n("4f18"),i=n("cc33"),o=n("09b9"),a=n("94b3"),s=n("e042"),l=n("db6b"),u=Object.getOwnPropertyDescriptor;e.f=n("149f")?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},e005:function(t,e,n){var r=n("69b3"),i=n("0dc8"),o=n("ceac"),a=n("56f2")("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=n("bfe7")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("8df1").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[l][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=r(t),n=new s,s[l]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},e042:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},e118:function(t,e,n){"use strict";var r=n("149f"),i=n("80a9"),o=n("2f77"),a=n("4f18"),s=n("008a"),l=n("224c"),u=Object.assign;t.exports=!u||n("238a")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r}))?function(t,e){var n=s(t),u=arguments.length,c=1,h=o.f,f=a.f;while(u>c){var p,d=l(arguments[c++]),g=h?i(d).concat(h(d)):i(d),v=g.length,y=0;while(v>y)p=g[y++],r&&!f.call(d,p)||(n[p]=d[p])}return n}:u},e44b:function(t,e,n){"use strict";var r=n("0e8b"),i=n("475d"),o=n("da6d"),a=n("09b9");t.exports=n("492d")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},e46b:function(t,e,n){var r=n("e7ad"),i=n("7ddc"),o=n("86d4"),a=n("bf16"),s=n("4ce5"),l="prototype",u=function(t,e,n){var c,h,f,p,d=t&u.F,g=t&u.G,v=t&u.S,y=t&u.P,m=t&u.B,_=g?r:v?r[e]||(r[e]={}):(r[e]||{})[l],x=g?i:i[e]||(i[e]={}),b=x[l]||(x[l]={});for(c in g&&(n=e),n)h=!d&&_&&void 0!==_[c],f=(h?_:n)[c],p=m&&h?s(f,r):y&&"function"==typeof f?s(Function.call,f):f,_&&a(_,c,f,t&u.U),x[c]!=f&&o(x,c,p),y&&b[c]!=f&&(b[c]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},e67d:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},e754:function(t,e,n){"use strict";var r=n("fc81")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},e7ad:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},eafa:function(t,e,n){var r=n("ee21"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},ec45:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},ee21:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},f1fe:function(t,e,n){"use strict";var r=n("69b3");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},f548:function(t,e,n){"use strict";var r=n("69b3"),i=n("008a"),o=n("eafa"),a=n("ee21"),s=n("e754"),l=n("7108"),u=Math.max,c=Math.min,h=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,d=function(t){return void 0===t?t:String(t)};n("0aed")("replace",2,(function(t,e,n,g){return[function(r,i){var o=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=g(n,t,this,e);if(i.done)return i.value;var h=r(t),f=String(this),p="function"===typeof e;p||(e=String(e));var y=h.global;if(y){var m=h.unicode;h.lastIndex=0}var _=[];while(1){var x=l(h,f);if(null===x)break;if(_.push(x),!y)break;var b=String(x[0]);""===b&&(h.lastIndex=s(f,o(h.lastIndex),m))}for(var w="",S=0,M=0;M<_.length;M++){x=_[M];for(var C=String(x[0]),T=u(c(a(x.index),f.length),0),I=[],A=1;A<x.length;A++)I.push(d(x[A]));var D=x.groups;if(p){var k=[C].concat(I,T,f);void 0!==D&&k.push(D);var L=String(e.apply(void 0,k))}else L=v(C,f,T,I,D,e);T>=S&&(w+=f.slice(S,T)+L,S=T+C.length)}return w+f.slice(S)}];function v(t,e,r,o,a,s){var l=r+t.length,u=o.length,c=p;return void 0!==a&&(a=i(a),c=f),n.call(s,c,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>u){var f=h(c/10);return 0===f?n:f<=u?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s}))}}))},f58a:function(t,e,n){var r=n("ee21"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},f6b4:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},fb68:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fc81:function(t,e,n){var r=n("ee21"),i=n("f6b4");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}}})}))},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return u=u.concat(o.slice(s)),u.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},dfe5:function(t,e){},e017:function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){"use strict";var t=function(t){var e=t.id,n=t.viewBox,r=t.content;this.id=e,this.viewBox=n,this.content=r};t.prototype.stringify=function(){return this.content},t.prototype.toString=function(){return this.stringify()},t.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var n=function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self;function r(t,e){return e={exports:{}},t(e,e.exports),e.exports}var i=r((function(t,e){(function(e,n){t.exports=n()})(0,(function(){function t(t){var e=t&&"object"===typeof t;return e&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(t){return Array.isArray(t)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&t(n)?o(e(n),n,r):n}function r(e,r,i){var a=e.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):t(r)?a[s]=o(e[s],r,i):-1===e.indexOf(r)&&a.push(n(r,i))})),a}function i(e,r,i){var a={};return t(e)&&Object.keys(e).forEach((function(t){a[t]=n(e[t],i)})),Object.keys(r).forEach((function(s){t(r[s])&&e[s]?a[s]=o(e[s],r[s],i):a[s]=n(r[s],i)})),a}function o(t,e,o){var a=Array.isArray(e),s=o||{arrayMerge:r},l=s.arrayMerge||r;return a?Array.isArray(t)?l(t,e,o):n(e,o):i(t,e,o)}return o.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return o(t,n,e)}))},o}))})),o=r((function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n,t.exports=e.default})),a=function(t){return Object.keys(t).map((function(e){var n=t[e].toString().replace(/"/g,""");return e+'="'+n+'"'})).join(" ")},s=o.svg,l=o.xlink,u={};u[s.name]=s.uri,u[l.name]=l.uri;var c=function(t,e){void 0===t&&(t="");var n=i(u,e||{}),r=a(n);return"<svg "+r+">"+t+"</svg>"},h=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return n(c(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,r),e}(t);return h}))}).call(this,n("c8ba"))},e01a:function(t,e,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("5135"),s=n("861d"),l=n("9bf2").f,u=n("e893"),c=o.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new c(t):void 0===t?c():c(t);return""===t&&(h[e]=!0),e};u(f,c);var p=f.prototype=c.prototype;p.constructor=f;var d=p.toString,g="Symbol(test)"==String(c("test")),v=/^Symbol\((.*)\)[^)]+$/;l(p,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=d.call(t);if(a(h,t))return"";var n=g?e.slice(7,-1):e.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},e163:function(t,e,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),l=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e198:function(t,e,n){var r=n("ef08"),i=n("5524"),o=n("e444"),a=n("fcd4"),s=n("1a14").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),l="Array Iterator",u=a.set,c=a.getterFor(l);t.exports=s(Array,"Array",(function(t,e){u(this,{type:l,target:r(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e34a:function(t,e,n){var r=n("8b1a")("meta"),i=n("7a41"),o=n("9c0e"),a=n("1a14").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("4b8b")((function(){return l(Object.preventExtensions({}))})),c=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[r].i},f=function(t,e){if(!o(t,r)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[r].w},p=function(t){return u&&d.NEED&&l(t)&&!o(t,r)&&c(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:h,getWeak:f,onFreeze:p}},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),l=i((function(){a(1)})),u=!s||l;r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},e444:function(t,e){t.exports=!0},e507:function(t,e,n){var r=n("512c");r(r.S+r.F,"Object",{assign:n("072d")})},e538:function(t,e,n){var r=n("b622");e.f=r},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6cf:function(t,e,n){"use strict";var r,i,o,a,s=n("23e7"),l=n("c430"),u=n("da84"),c=n("d066"),h=n("fea9"),f=n("6eeb"),p=n("e2cc"),d=n("d44e"),g=n("2626"),v=n("861d"),y=n("1c0b"),m=n("19aa"),_=n("c6b6"),x=n("8925"),b=n("2266"),w=n("1c7e"),S=n("4840"),M=n("2cf4").set,C=n("b575"),T=n("cdf9"),I=n("44de"),A=n("f069"),D=n("e667"),k=n("69f3"),L=n("94ca"),O=n("b622"),P=n("2d00"),E=O("species"),R="Promise",N=k.get,z=k.set,B=k.getterFor(R),V=h,F=u.TypeError,G=u.document,j=u.process,H=c("fetch"),W=A.f,U=W,X="process"==_(j),$=!!(G&&G.createEvent&&u.dispatchEvent),Y="unhandledrejection",q="rejectionhandled",Z=0,K=1,J=2,Q=1,tt=2,et=L(R,(function(){var t=x(V)!==String(V);if(!t){if(66===P)return!0;if(!X&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!V.prototype["finally"])return!0;if(P>=51&&/native code/.test(V))return!1;var e=V.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[E]=n,!(e.then((function(){}))instanceof n)})),nt=et||!w((function(t){V.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!v(t)||"function"!=typeof(e=t.then))&&e},it=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;C((function(){var i=e.value,o=e.state==K,a=0;while(r.length>a){var s,l,u,c=r[a++],h=o?c.ok:c.fail,f=c.resolve,p=c.reject,d=c.domain;try{h?(o||(e.rejection===tt&<(t,e),e.rejection=Q),!0===h?s=i:(d&&d.enter(),s=h(i),d&&(d.exit(),u=!0)),s===c.promise?p(F("Promise-chain cycle")):(l=rt(s))?l.call(s,f,p):f(s)):p(i)}catch(g){d&&!u&&d.exit(),p(g)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&at(t,e)}))}},ot=function(t,e,n){var r,i;$?(r=G.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},(i=u["on"+t])?i(r):t===Y&&I("Unhandled promise rejection",n)},at=function(t,e){M.call(u,(function(){var n,r=e.value,i=st(e);if(i&&(n=D((function(){X?j.emit("unhandledRejection",r,t):ot(Y,t,r)})),e.rejection=X||st(e)?tt:Q,n.error))throw n.value}))},st=function(t){return t.rejection!==Q&&!t.parent},lt=function(t,e){M.call(u,(function(){X?j.emit("rejectionHandled",t):ot(q,t,e.value)}))},ut=function(t,e,n,r){return function(i){t(e,n,i,r)}},ct=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=J,it(t,e,!0))},ht=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw F("Promise can't be resolved itself");var i=rt(n);i?C((function(){var r={done:!1};try{i.call(n,ut(ht,t,r,e),ut(ct,t,r,e))}catch(o){ct(t,r,o,e)}})):(e.value=n,e.state=K,it(t,e,!1))}catch(o){ct(t,{done:!1},o,e)}}};et&&(V=function(t){m(this,V,R),y(t),r.call(this);var e=N(this);try{t(ut(ht,this,e),ut(ct,this,e))}catch(n){ct(this,e,n)}},r=function(t){z(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},r.prototype=p(V.prototype,{then:function(t,e){var n=B(this),r=W(S(this,V));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=X?j.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Z&&it(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=N(t);this.promise=t,this.resolve=ut(ht,t,e),this.reject=ut(ct,t,e)},A.f=W=function(t){return t===V||t===o?new i(t):U(t)},l||"function"!=typeof h||(a=h.prototype.then,f(h.prototype,"then",(function(t,e){var n=this;return new V((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof H&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return T(V,H.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:et},{Promise:V}),d(V,R,!1,!0),g(R),o=c(R),s({target:R,stat:!0,forced:et},{reject:function(t){var e=W(this);return e.reject.call(void 0,t),e.promise}}),s({target:R,stat:!0,forced:l||et},{resolve:function(t){return T(l&&this===o?V:this,t)}}),s({target:R,stat:!0,forced:nt},{all:function(t){var e=this,n=W(e),r=n.resolve,i=n.reject,o=D((function(){var n=y(e.resolve),o=[],a=0,s=1;b(t,(function(t){var l=a++,u=!1;o.push(void 0),s++,n.call(e,t).then((function(t){u||(u=!0,o[l]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=W(e),r=n.reject,i=D((function(){var i=y(e.resolve);b(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),s=a.f,l=o.f,u=0;u<n.length;u++){var c=n[u];r(t,c)||s(t,c,l(e,c))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},ea34:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},ef08:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},f069:function(t,e,n){"use strict";var r=n("1c0b"),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},f2d9:function(t,e,n){"use strict";(function(t){"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function n(t,e){return e={exports:{}},t(e,e.exports),e.exports}var r=n((function(t,e){(function(e,n){t.exports=n()})(0,(function(){return function t(e,n,r){var i,o,a=window,s="application/octet-stream",l=r||s,u=e,c=!n&&!r&&u,h=document.createElement("a"),f=function(t){return String(t)},p=a.Blob||a.MozBlob||a.WebKitBlob||f,d=n||"download";if(p=p.call?p.bind(a):Blob,"true"===String(this)&&(u=[u,l],l=u[0],u=u[1]),c&&c.length<2048&&(d=c.split("/").pop().split("?")[0],h.href=c,-1!==h.href.indexOf(c))){var g=new XMLHttpRequest;return g.open("GET",c,!0),g.responseType="blob",g.onload=function(e){t(e.target.response,d,s)},setTimeout((function(){g.send()}),0),g}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u)){if(!(u.length>2096103.424&&p!==f))return navigator.msSaveBlob?navigator.msSaveBlob(_(u),d):x(u);u=_(u),l=u.type||s}else if(/([\x80-\xff])/.test(u)){var v=0,y=new Uint8Array(u.length),m=y.length;for(v;v<m;++v)y[v]=u.charCodeAt(v);u=new p([y],{type:l})}function _(t){var e=t.split(/[:;,]/),n=e[1],r="base64"==e[2]?atob:decodeURIComponent,i=r(e.pop()),o=i.length,a=0,s=new Uint8Array(o);for(a;a<o;++a)s[a]=i.charCodeAt(a);return new p([s],{type:n})}function x(t,e){if("download"in h)return h.href=t,h.setAttribute("download",d),h.className="download-js-link",h.innerHTML="downloading...",h.style.display="none",document.body.appendChild(h),setTimeout((function(){h.click(),document.body.removeChild(h),!0===e&&setTimeout((function(){a.URL.revokeObjectURL(h.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(t)&&(t="data:"+t.replace(/^data:([\w\/\-\+]+)/,s)),window.open(t)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=t),!0;var n=document.createElement("iframe");document.body.appendChild(n),!e&&/^data:/.test(t)&&(t="data:"+t.replace(/^data:([\w\/\-\+]+)/,s)),n.src=t,setTimeout((function(){document.body.removeChild(n)}),333)}if(i=u instanceof p?u:new p([u],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(i,d);if(a.URL)x(a.URL.createObjectURL(i),!0);else{if("string"===typeof i||i.constructor===f)try{return x("data:"+l+";base64,"+a.btoa(i))}catch(b){return x("data:"+l+","+encodeURIComponent(i))}o=new FileReader,o.onload=function(t){x(this.result)},o.readAsDataURL(i)}return!0}}))})),i={props:{type:{type:String,default:"xls"},data:{type:Array,required:!1,default:null},fields:{type:Object,default:()=>null},exportFields:{type:Object,default:()=>null},defaultValue:{type:String,required:!1,default:""},header:{default:null},footer:{default:null},name:{type:String,default:"data.xls"},fetch:{type:Function},meta:{type:Array,default:()=>[]},worksheet:{type:String,default:"Sheet1"},beforeGenerate:{type:Function},beforeFinish:{type:Function},escapeCsv:{type:Boolean,default:!0},stringifyLongNum:{type:Boolean,default:!1}},computed:{idName(){var t=(new Date).getTime();return"export_"+t},downloadFields(){return this.fields?this.fields:this.exportFields?this.exportFields:void 0}},methods:{async generate(){"function"===typeof this.beforeGenerate&&await this.beforeGenerate();let t=this.data;if("function"!==typeof this.fetch&&t||(t=await this.fetch()),!t||!t.length)return;let e=this.getProcessedJson(t,this.downloadFields);return"html"===this.type?this.export(this.jsonToXLS(e),this.name.replace(".xls",".html"),"text/html"):"csv"===this.type?this.export(this.jsonToCSV(e),this.name.replace(".xls",".csv"),"application/csv"):this.export(this.jsonToXLS(e),this.name,"application/vnd.ms-excel")},export:async function(t,e,n){let i=this.base64ToBlob(t,n);"function"===typeof this.beforeFinish&&await this.beforeFinish(),r(i,e,n)},jsonToXLS(t){let e='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=ProgId content=Excel.Sheet> <meta name=Generator content="Microsoft Excel 11"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>${worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e<style>br {mso-data-placement: same-cell;}</style></head><body><table>${table}</table></body></html>',n="<thead>";const r=Object.keys(t[0]).length;let i=this;const o=this.header||this.$attrs.title;o&&(n+=this.parseExtraData(o,'<tr><th colspan="'+r+'">${data}</th></tr>')),n+="<tr>";for(let a in t[0])n+="<th>"+a+"</th>";return n+="</tr>",n+="</thead>",n+="<tbody>",t.map((function(t,e){n+="<tr>";for(let r in t)n+="<td>"+i.preprocessLongNum(i.valueReformattedForMultilines(t[r]))+"</td>";n+="</tr>"})),n+="</tbody>",null!=this.footer&&(n+="<tfoot>",n+=this.parseExtraData(this.footer,'<tr><td colspan="'+r+'">${data}</td></tr>'),n+="</tfoot>"),e.replace("${table}",n).replace("${worksheet}",this.worksheet)},jsonToCSV(t){let e=this;var n=[];const r=this.header||this.$attrs.title;r&&n.push(this.parseExtraData(r,"${data}\r\n"));for(let i in t[0])n.push(i),n.push(",");return n.pop(),n.push("\r\n"),t.map((function(t){for(let r in t){let i=t[r]+"";e.escapeCsv&&(i='="'+i+'"',i.match(/[,"\n]/)&&(i='"'+i.replace(/\"/g,'""')+'"')),n.push(i),n.push(",")}n.pop(),n.push("\r\n")})),null!=this.footer&&n.push(this.parseExtraData(this.footer,"${data}\r\n")),n.join("")},getProcessedJson(t,e){let n=this.getKeys(t,e),r=[],i=this;return t.map((function(t,e){let o={};for(let r in n){let e=n[r];o[r]=i.getValue(e,t)}r.push(o)})),r},getKeys(t,e){if(e)return e;let n={};for(let r in t[0])n[r]=r;return n},parseExtraData(t,e){let n="";if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&(n+=e.replace("${data}",t[r]));else n+=e.replace("${data}",t);return n},getValue(t,e){const n="object"!==typeof t?t:t.field;let r="string"!==typeof n?[]:n.split("."),i=this.defaultValue;return i=n?r.length>1?this.getValueFromNestedItem(e,r):this.parseValue(e[n]):e,t.hasOwnProperty("callback")&&(i=this.getValueFromCallback(i,t.callback)),i},valueReformattedForMultilines(t){return"string"==typeof t?t.replace(/\n/gi,"<br/>"):t},preprocessLongNum(t){if(this.stringifyLongNum){if(String(t).startsWith("0x"))return t;if(!isNaN(t)&&""!=t&&(t>99999999999||t<1e-13))return'="'+t+'"'}return t},getValueFromNestedItem(t,e){let n=t;for(let r of e)n&&(n=n[r]);return this.parseValue(n)},getValueFromCallback(t,e){if("function"!==typeof e)return this.defaultValue;const n=e(t);return this.parseValue(n)},parseValue(t){return t||0===t||"boolean"===typeof t?t:this.defaultValue},base64ToBlob(t,e){let n=window.btoa(window.unescape(encodeURIComponent(t))),r=atob(n),i=r.length,o=new Uint8ClampedArray(i);while(i--)o[i]=r.charCodeAt(i);return new Blob([o],{type:e})}}};function o(t,e,n,r,i,o,a,s,l,u){"boolean"!==typeof a&&(l=s,s=a,a=!1);var c,h="function"===typeof n?n.options:n;if(t&&t.render&&(h.render=t.render,h.staticRenderFns=t.staticRenderFns,h._compiled=!0,i&&(h.functional=!0)),r&&(h._scopeId=r),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},h._ssrRegister=c):e&&(c=a?function(){e.call(this,u(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(h.functional){var f=h.render;h.render=function(t,e){return c.call(e),f(t,e)}}else{var p=h.beforeCreate;h.beforeCreate=p?[].concat(p,c):[c]}return n}var a=o;const s=i;var l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:t.idName},on:{click:t.generate}},[t._t("default",[t._v(" Download "+t._s(t.name)+" ")])],2)},u=[];l._withStripped=!0;const c=void 0,h=void 0,f=void 0,p=!1;var d=a({render:l,staticRenderFns:u},c,s,h,p,f,void 0,void 0);e["a"]=d}).call(this,n("c8ba"))},f5df:function(t,e,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},f5df1:function(t,e,n){},f6b4:function(t,e,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},f893:function(t,e,n){t.exports={default:n("8119"),__esModule:!0}},faf5:function(t,e,n){t.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}))},fb6a:function(t,e,n){"use strict";var r=n("23e7"),i=n("861d"),o=n("e8b5"),a=n("23cb"),s=n("50c4"),l=n("fc6a"),u=n("8418"),c=n("b622"),h=n("1dde"),f=n("ae40"),p=h("slice"),d=f("slice",{ACCESSORS:!0,0:0,1:2}),g=c("species"),v=[].slice,y=Math.max;r({target:"Array",proto:!0,forced:!p||!d},{slice:function(t,e){var n,r,c,h=l(this),f=s(h.length),p=a(t,f),d=a(void 0===e?f:e,f);if(o(h)&&(n=h.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?i(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return v.call(h,p,d);for(r=new(void 0===n?Array:n)(y(d-p,0)),c=0;p<d;p++,c++)p in h&&u(r,c,h[p]);return r.length=c,r}})},fc5e:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fcd4:function(t,e,n){e.f=n("cc15")},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise},fed5:function(t,e){e.f=Object.getOwnPropertySymbols}}]);
|