You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.8 MiB
30 lines
1.8 MiB
!function(I){function e(e){for(var t,n,i=e[0],r=e[1],o=0,a=[];o<i.length;o++)n=i[o],Object.prototype.hasOwnProperty.call(x,n)&&x[n]&&a.push(x[n][0]),x[n]=0;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&(I[t]=r[t]);for(C&&C(e);a.length;)a.shift()()}function O(e){delete x[e]}var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,t){!function(e,t){if(B[e]&&d[e]){for(var n in d[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(z[n]=t[n]);0==--u&&0===c&&m()}}(e,t),n&&n(e,t)};var N,i=!0,L="7ec60a6dffc03f33ba04",t=1e4,P={},E=[],r=[];function o(t){var n=$[t];if(!n)return Y;function i(e){return n.hot.active?($[e]?-1===$[e].parents.indexOf(t)&&$[e].parents.push(t):(E=[t],N=e),-1===n.children.indexOf(e)&&n.children.push(e)):(console.warn("[HMR] unexpected require("+e+") from disposed module "+t),E=[]),Y(e)}for(var e in Y)Object.prototype.hasOwnProperty.call(Y,e)&&"e"!==e&&"t"!==e&&Object.defineProperty(i,e,function(t){return{configurable:!0,enumerable:!0,get:function(){return Y[t]},set:function(e){Y[t]=e}}}(e));return i.e=function(e){return"ready"===s&&H("prepare"),c++,Y.e(e).then(t,function(e){throw t(),e});function t(){c--,"prepare"===s&&(h[e]||f(e),0===c&&0===u&&m())}},i.t=function(e,t){return 1&t&&(e=i(e)),Y.t(e,-2&t)},i}var a=[],s="idle";function H(e){s=e;for(var t=0;t<a.length;t++)a[t].call(null,e)}var l,z,R,j,u=0,c=0,h={},d={},B={};function F(e){return+e+""===e?+e:e}function p(e){if("idle"!==s)throw new Error("check() is only allowed in idle status");return i=e,H("check"),o=(o=t)||1e4,new Promise(function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var i=new XMLHttpRequest,r=Y.p+""+L+".hot-update.json";i.open("GET",r,!0),i.timeout=o,i.send(null)}catch(e){return n(e)}i.onreadystatechange=function(){if(4===i.readyState)if(0===i.status)n(new Error("Manifest request to "+r+" timed out."));else if(404===i.status)t();else if(200!==i.status&&304!==i.status)n(new Error("Manifest request to "+r+" failed."));else{try{var e=JSON.parse(i.responseText)}catch(e){return void n(e)}t(e)}}}).then(function(e){if(!e)return H(V()?"ready":"idle"),null;d={},h={},B=e.c,R=e.h,H("prepare");var t,e=new Promise(function(e,t){l={resolve:e,reject:t}});for(t in z={},x)f(t);return"prepare"===s&&0===c&&0===u&&m(),e});var o}function f(e){var t,n;B[e]?(d[e]=!0,u++,t=e,(n=document.createElement("script")).charset="utf-8",n.src=Y.p+""+t+"."+L+".hot-update.js",document.head.appendChild(n)):h[e]=!0}function m(){H("ready");var t=l;if(l=null,t)if(i)Promise.resolve().then(function(){return g(i)}).then(function(e){t.resolve(e)},function(e){t.reject(e)});else{var e,n=[];for(e in z)Object.prototype.hasOwnProperty.call(z,e)&&n.push(F(e));t.resolve(n)}}function g(e){if("ready"!==s)throw new Error("apply() is only allowed in ready status");return function e(n){V();var t;var i;var r;var c;function o(e){for(var t=[e],n={},i=t.map(function(e){return{chain:[e],id:e}});0<i.length;){var r=i.pop(),o=r.id,a=r.chain;if((c=$[o])&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:o};if(c.hot._main)return{type:"unaccepted",chain:a,moduleId:o};for(var s=0;s<c.parents.length;s++){var l=c.parents[s],u=$[l];if(u){if(u.hot._declinedDependencies[o])return{type:"declined",chain:a.concat([l]),moduleId:o,parentId:l};-1===t.indexOf(l)&&(u.hot._acceptedDependencies[o]?(n[l]||(n[l]=[]),h(n[l],[o])):(delete n[l],t.push(l),i.push({chain:a.concat([l]),id:l})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];-1===e.indexOf(i)&&e.push(i)}}var a={};var s=[];var l={};var u=function(){console.warn("[HMR] unexpected require("+p.moduleId+") to disposed module")};for(var d in z)if(Object.prototype.hasOwnProperty.call(z,d)){var p;y=F(d),p=z[d]?o(y):{type:"disposed",moduleId:d};var f=!1,m=!1,g=!1,v="";switch(p.chain&&(v="\nUpdate propagation: "+p.chain.join(" -> ")),p.type){case"self-declined":n.onDeclined&&n.onDeclined(p),n.ignoreDeclined||(f=new Error("Aborted because of self decline: "+p.moduleId+v));break;case"declined":n.onDeclined&&n.onDeclined(p),n.ignoreDeclined||(f=new Error("Aborted because of declined dependency: "+p.moduleId+" in "+p.parentId+v));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(p),n.ignoreUnaccepted||(f=new Error("Aborted because "+y+" is not accepted"+v));break;case"accepted":n.onAccepted&&n.onAccepted(p),m=!0;break;case"disposed":n.onDisposed&&n.onDisposed(p),g=!0;break;default:throw new Error("Unexception type "+p.type)}if(f)return H("abort"),Promise.reject(f);if(m)for(var y in l[y]=z[y],h(s,p.outdatedModules),p.outdatedDependencies)Object.prototype.hasOwnProperty.call(p.outdatedDependencies,y)&&(a[y]||(a[y]=[]),h(a[y],p.outdatedDependencies[y]));g&&(h(s,[p.moduleId]),l[y]=u)}var x=[];for(i=0;i<s.length;i++)y=s[i],$[y]&&$[y].hot._selfAccepted&&l[y]!==u&&!$[y].hot._selfInvalidated&&x.push({module:y,parents:$[y].parents.slice(),errorHandler:$[y].hot._selfAccepted});H("dispose");Object.keys(B).forEach(function(e){!1===B[e]&&O(e)});var b;var _=s.slice();for(;0<_.length;)if(y=_.pop(),c=$[y]){var w={},C=c.hot._disposeHandlers;for(r=0;r<C.length;r++)(t=C[r])(w);for(P[y]=w,c.hot.active=!1,delete $[y],delete a[y],r=0;r<c.children.length;r++){var S=$[c.children[r]];S&&0<=(b=S.parents.indexOf(y))&&S.parents.splice(b,1)}}var A;var M;for(y in a)if(Object.prototype.hasOwnProperty.call(a,y)&&(c=$[y]))for(M=a[y],r=0;r<M.length;r++)A=M[r],0<=(b=c.children.indexOf(A))&&c.children.splice(b,1);H("apply");void 0!==R&&(L=R,R=void 0);z=void 0;for(y in l)Object.prototype.hasOwnProperty.call(l,y)&&(I[y]=l[y]);var T=null;for(y in a)if(Object.prototype.hasOwnProperty.call(a,y)&&(c=$[y])){M=a[y];var k=[];for(i=0;i<M.length;i++)A=M[i],(t=c.hot._acceptedDependencies[A])&&-1===k.indexOf(t)&&k.push(t);for(i=0;i<k.length;i++){t=k[i];try{t(M)}catch(e){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:y,dependencyId:M[i],error:e}),n.ignoreErrored||(T=T||e)}}}for(i=0;i<x.length;i++){var D=x[i];y=D.module,E=D.parents,N=y;try{Y(y)}catch(t){if("function"==typeof D.errorHandler)try{D.errorHandler(t)}catch(e){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:y,error:e,originalError:t}),T=(T=!n.ignoreErrored?T||e:T)||t}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:y,error:t}),n.ignoreErrored||(T=T||t)}}if(T)return H("fail"),Promise.reject(T);if(j)return e(n).then(function(t){return s.forEach(function(e){t.indexOf(e)<0&&t.push(e)}),t});H("idle");return new Promise(function(e){e(s)})}(e=e||{})}function V(){return j&&(z=z||{},j.forEach(v),j=void 0,1)}function v(e){Object.prototype.hasOwnProperty.call(z,e)||(z[e]=I[e])}var $={},y={1:0},x={1:0};function Y(e){if($[e])return $[e].exports;var t,i,n=$[e]={i:e,l:!1,exports:{},hot:(i={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:N!==(t=e),active:!0,accept:function(e,t){if(void 0===e)i._selfAccepted=!0;else if("function"==typeof e)i._selfAccepted=e;else if("object"==typeof e)for(var n=0;n<e.length;n++)i._acceptedDependencies[e[n]]=t||function(){};else i._acceptedDependencies[e]=t||function(){}},decline:function(e){if(void 0===e)i._selfDeclined=!0;else if("object"==typeof e)for(var t=0;t<e.length;t++)i._declinedDependencies[e[t]]=!0;else i._declinedDependencies[e]=!0},dispose:function(e){i._disposeHandlers.push(e)},addDisposeHandler:function(e){i._disposeHandlers.push(e)},removeDisposeHandler:function(e){e=i._disposeHandlers.indexOf(e);0<=e&&i._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,s){case"idle":(z={})[t]=I[t],H("ready");break;case"ready":v(t);break;case"prepare":case"check":case"dispose":case"apply":(j=j||[]).push(t)}},check:p,apply:g,status:function(e){if(!e)return s;a.push(e)},addStatusHandler:function(e){a.push(e)},removeStatusHandler:function(e){e=a.indexOf(e);0<=e&&a.splice(e,1)},data:P[t]},N=void 0,i),parents:(r=E,E=[],r),children:[]};return I[e].call(n.exports,n,n.exports,o(e)),n.l=!0,n.exports}Y.e=function(c){var e=[];y[c]?e.push(y[c]):0!==y[c]&&{0:1,2:1,3:1,4:1,5:1}[c]&&e.push(y[c]=new Promise(function(e,n){for(var t=({0:"en-US~es~fr-FR~zh-CN",2:"en-US",3:"es",4:"fr-FR",5:"zh-CN"}[c]||c)+"."+{0:"88875bc",2:"61d9b11",3:"316c536",4:"d59bba9",5:"d303327"}[c]+".css",i=Y.p+t,r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var a=(s=r[o]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(a===t||a===i))return e()}for(var s,l=document.getElementsByTagName("style"),o=0;o<l.length;o++)if((a=(s=l[o]).getAttribute("data-href"))===t||a===i)return e();var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=e,u.onerror=function(e){var t=e&&e.target&&e.target.src||i,e=new Error("Loading CSS chunk "+c+" failed.\n("+t+")");e.request=t,delete y[c],u.parentNode.removeChild(u),n(e)},u.href=i,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){y[c]=0}));var i,r,t,o,n,a=x[c];return 0!==a&&(a?e.push(a[2]):(n=new Promise(function(e,t){a=x[c]=[e,t]}),e.push(a[2]=n),(i=document.createElement("script")).charset="utf-8",i.timeout=120,Y.nc&&i.setAttribute("nonce",Y.nc),i.src=Y.p+""+({0:"en-US~es~fr-FR~zh-CN",2:"en-US",3:"es",4:"fr-FR",5:"zh-CN"}[n=c]||n)+"."+L.substr(0,7)+".js",r=new Error,t=function(e){i.onerror=i.onload=null,clearTimeout(o);var t,n=x[c];0!==n&&(n&&(t=e&&("load"===e.type?"missing":e.type),e=e&&e.target&&e.target.src,r.message="Loading chunk "+c+" failed.\n("+t+": "+e+")",r.name="ChunkLoadError",r.type=t,r.request=e,n[1](r)),x[c]=void 0)},o=setTimeout(function(){t({type:"timeout",target:i})},12e4),i.onerror=i.onload=t,document.head.appendChild(i))),Promise.all(e)},Y.m=I,Y.c=$,Y.d=function(e,t,n){Y.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},Y.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},Y.t=function(t,e){if(1&e&&(t=Y(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(Y.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)Y.d(n,i,function(e){return t[e]}.bind(null,i));return n},Y.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return Y.d(t,"a",t),t},Y.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Y.p="",Y.oe=function(e){throw console.error(e),e},Y.h=function(){return L};var b=(_=window.webpackJsonp=window.webpackJsonp||[]).push.bind(_);_.push=e;for(var _=_.slice(),w=0;w<_.length;w++)e(_[w]);var C=b;o(451)(Y.s=451)}([function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u,c="function"==typeof e?e.options:e;return t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?c._ssrRegister=l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)}:r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l&&(c.functional?(c._injectStyles=l,u=c.render,c.render=function(e,t){return l.call(t),u(e,t)}):(s=c.beforeCreate,c.beforeCreate=s?[].concat(s,l):[l])),{exports:e,options:c}}n.d(t,"a",function(){return i})},function(e,t){var s={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},l={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},u=Object.prototype.toString,n=Array.prototype,a=n.forEach,c=n.filter,i=n.slice,h=n.map,d=n.reduce,r={};function p(e){if(null==e||"object"!=typeof e)return e;var t=e,n=u.call(e);if("[object Array]"===n){if(!S(e))for(var t=[],i=0,r=e.length;i<r;i++)t[i]=p(e[i])}else if(l[n]){if(!S(e)){var o=e.constructor;if(e.constructor.from)t=o.from(e);else{t=new o(e.length);for(i=0,r=e.length;i<r;i++)t[i]=p(e[i])}}}else if(!s[n]&&!S(e)&&!w(e))for(var a in t={},e)e.hasOwnProperty(a)&&(t[a]=p(e[a]));return t}function f(e,t,n){if(!b(t)||!b(e))return n?p(t):e;for(var i in t){var r,o;t.hasOwnProperty(i)&&(r=e[i],!b(o=t[i])||!b(r)||x(o)||x(r)||w(o)||w(r)||_(o)||_(r)||S(o)||S(r)?!n&&i in e||(e[i]=p(t[i])):f(r,o,n))}return e}function o(e,t,n){for(var i in t)t.hasOwnProperty(i)&&(n?null!=t[i]:null==e[i])&&(e[i]=t[i]);return e}function m(){return r.createCanvas()}var g;function v(e,t,n){if(e&&t)if(e.forEach&&e.forEach===a)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function y(e,t){var n=i.call(arguments,2);return function(){return e.apply(t,n.concat(i.call(arguments)))}}function x(e){return"[object Array]"===u.call(e)}function b(e){var t=typeof e;return"function"==t||!!e&&"object"==t}function _(e){return!!s[u.call(e)]}function w(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}r.createCanvas=function(){return document.createElement("canvas")};var C="__ec_primitive__";function S(e){return e[C]}function A(e){var n=x(e);this.data={};var i=this;function t(e,t){n?i.set(e,t):i.set(t,e)}e instanceof A?e.each(t):e&&v(e,t)}A.prototype={constructor:A,get:function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},set:function(e,t){return this.data[e]=t},each:function(e,t){for(var n in void 0!==t&&(e=y(e,t)),this.data)this.data.hasOwnProperty(n)&&e(this.data[n],n)},removeKey:function(e){delete this.data[e]}},t.$override=function(e,t){"createCanvas"===e&&(g=null),r[e]=t},t.clone=p,t.merge=f,t.mergeAll=function(e,t){for(var n=e[0],i=1,r=e.length;i<r;i++)n=f(n,e[i],t);return n},t.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},t.defaults=o,t.createCanvas=m,t.getContext=function(){return g=g||m().getContext("2d")},t.indexOf=function(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1},t.inherits=function(e,t){var n,i=e.prototype;function r(){}for(n in r.prototype=t.prototype,e.prototype=new r,i)i.hasOwnProperty(n)&&(e.prototype[n]=i[n]);(e.prototype.constructor=e).superClass=t},t.mixin=function(e,t,n){o(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,n)},t.isArrayLike=function(e){if(e)return"string"!=typeof e&&"number"==typeof e.length},t.each=v,t.map=function(e,t,n){if(e&&t){if(e.map&&e.map===h)return e.map(t,n);for(var i=[],r=0,o=e.length;r<o;r++)i.push(t.call(n,e[r],r,e));return i}},t.reduce=function(e,t,n,i){if(e&&t){if(e.reduce&&e.reduce===d)return e.reduce(t,n,i);for(var r=0,o=e.length;r<o;r++)n=t.call(i,n,e[r],r,e);return n}},t.filter=function(e,t,n){if(e&&t){if(e.filter&&e.filter===c)return e.filter(t,n);for(var i=[],r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}},t.find=function(e,t,n){if(e&&t)for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]},t.bind=y,t.curry=function(e){var t=i.call(arguments,1);return function(){return e.apply(this,t.concat(i.call(arguments)))}},t.isArray=x,t.isFunction=function(e){return"function"==typeof e},t.isString=function(e){return"[object String]"===u.call(e)},t.isObject=b,t.isBuiltInObject=_,t.isTypedArray=function(e){return!!l[u.call(e)]},t.isDom=w,t.eqNaN=function(e){return e!=e},t.retrieve=function(e){for(var t=0,n=arguments.length;t<n;t++)if(null!=arguments[t])return arguments[t]},t.retrieve2=function(e,t){return null!=e?e:t},t.retrieve3=function(e,t,n){return null!=e?e:null!=t?t:n},t.slice=function(){return Function.call.apply(i,arguments)},t.normalizeCssArray=function(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e},t.assert=function(e,t){if(!e)throw new Error(t)},t.trim=function(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},t.setAsPrimitive=function(e){e[C]=!0},t.isPrimitive=S,t.createHashMap=function(e){return new A(e)},t.concatArray=function(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];for(var r=e.length,i=0;i<t.length;i++)n[i+r]=t[i];return n},t.noop=function(){}},function(e,t,n){"use strict";n.d(t,"g",function(){return u}),n.d(t,"f",function(){return c}),n.d(t,"h",function(){return h}),n.d(t,"d",function(){return d}),n.d(t,"a",function(){return p}),n.d(t,"i",function(){return f}),n.d(t,"c",function(){return m}),n.d(t,"b",function(){return g}),n.d(t,"e",function(){return v});var t=n(5),i=n.n(t).a.prototype.$isServer,r=/([\:\-\_]+(.))/g,o=/^moz([A-Z])/,a=i?0:Number(document.documentMode),s=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},l=function(e){return e.replace(r,function(e,t,n,i){return i?n.toUpperCase():n}).replace(o,"Moz$1")},u=!i&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)},c=!i&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)},h=function(t,n,i){u(t,n,function e(){i&&i.apply(this,arguments),c(t,n,e)})};function d(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):-1<(" "+e.className+" ").indexOf(" "+t+" ")}function p(e,t){if(e){for(var n=e.className,i=(t||"").split(" "),r=0,o=i.length;r<o;r++){var a=i[r];a&&(e.classList?e.classList.add(a):d(e,a)||(n+=" "+a))}e.classList||(e.className=n)}}function f(e,t){if(e&&t){for(var n=t.split(" "),i=" "+e.className+" ",r=0,o=n.length;r<o;r++){var a=n[r];a&&(e.classList?e.classList.remove(a):d(e,a)&&(i=i.replace(" "+a+" "," ")))}e.classList||(e.className=s(i))}}var m=a<9?function(t,n){if(!i){if(!t||!n)return null;"float"===(n=l(n))&&(n="styleFloat");try{if("opacity"===n)try{return t.filters.item("alpha").opacity/100}catch(e){return 1}return t.style[n]||t.currentStyle?t.currentStyle[n]:null}catch(e){return t.style[n]}}}:function(t,n){if(!i){if(!t||!n)return null;"float"===(n=l(n))&&(n="cssFloat");try{var e=document.defaultView.getComputedStyle(t,"");return t.style[n]||e?e[n]:null}catch(e){return t.style[n]}}};var g=function(e,t){if(!i){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(function(e,t){if(!i)return m(e,null!==t||void 0!==t?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto)/)}(n,t))return n;n=n.parentNode}return n}},v=function(e,t){if(i||!e||!t)return!1;var n=e.getBoundingClientRect(),e=void 0,e=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect();return n.top<e.bottom&&n.bottom>e.top&&n.right>e.left&&n.left<e.right}},function(e,t,n){n(14).__DEV__;var g=n(145),v=n(1),a=n(55),y=n(25),s=n(191),l=n(77),u=n(307),c=n(320),h=n(51),d=n(519),p=n(520),i=n(522),r=n(30),o=n(31),f=n(151),m=n(56),x=n(6),b=n(10),_=n(66).throttle,w=n(523),C=n(524),S=n(525),A=n(526),M=n(527),T=n(528);n(321);var k=n(200),D=v.assert,I=v.each,O=v.isFunction,N=v.isObject,L=r.parseClassType,P={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:3500,COMPONENT:4e3,BRUSH:5e3}},E="__flagInMainProcess",H="__optionUpdated",z=/^[a-zA-Z0-9_]+$/;function R(i,r){return function(e,t,n){r||!this._disposed?(e=e&&e.toLowerCase(),l.prototype[i].call(this,e,t,n)):this.id}}function j(){l.call(this)}function B(e,t,n){n=n||{},"string"==typeof t&&(t=ce[t]),this.id,this.group,this._dom=e;n=this._zr=g.init(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=_(v.bind(n.flush,n),17),(t=v.clone(t))&&p(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new h;var i,r,o,t=this._api=(t=(i=this)._coordSysMgr,v.extend(new c(i),{getCoordinateSystems:v.bind(t.getCoordinateSystems,t),getComponentByElement:function(e){for(;e;){var t=e.__ecComponentInfo;if(null!=t)return i._model.getComponent(t.mainType,t.index);e=e.parent}}}));function a(e,t){return e.__prio-t.__prio}s(ue,a),s(ae,a),this._scheduler=new A(this,t,ae,ue),l.call(this,this._ecEventProcessor=new ie),this._messageCenter=new j,this._initEvents(),this.resize=v.bind(this.resize,this),this._pendingActions=[],n.animation.on("frame",this._onframe,this),o=this,(r=n).on("rendered",function(){o.trigger("rendered"),!r.animation.isFinished()||o[H]||o._scheduler.unfinished||o._pendingActions.length||o.trigger("finished")}),v.setAsPrimitive(this)}j.prototype.on=R("on",!0),j.prototype.off=R("off",!0),j.prototype.one=R("one",!0),v.mixin(j,l);var F=B.prototype;function V(e,t,n){if(this._disposed)this.id;else{var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();t=b.parseFinder(r,t);for(var a=0;a<o.length;a++){var s=o[a];if(s[e]&&null!=(i=s[e](r,t,n)))return i}}}F._onframe=function(){if(!this._disposed){var e=this._scheduler;if(this[H]){var t=this[H].silent;this[E]=!0,Y(this),$.update.call(this),this[E]=!1,this[H]=!1,U.call(this,t),q.call(this,t)}else if(e.unfinished){var n=1,i=this._model,r=this._api;e.unfinished=!1;do{var o=+new Date}while(e.performSeriesTasks(i),e.performDataProcessorTasks(i),X(this,i),e.performVisualTasks(i),J(this,this._model,0,"remain"),0<(n-=+new Date-o)&&e.unfinished);e.unfinished||this._zr.flush()}}},F.getDom=function(){return this._dom},F.getZr=function(){return this._zr},F.setOption=function(e,t,n){var i,r,o;this._disposed?this.id:(N(t)&&(n=t.lazyUpdate,i=t.silent,t=t.notMerge),this[E]=!0,this._model&&!t||(r=new d(this._api),o=this._theme,(t=this._model=new u).scheduler=this._scheduler,t.init(null,null,o,r)),this._model.setOption(e,se),n?(this[H]={silent:i},this[E]=!1):(Y(this),$.update.call(this),this._zr.flush(),this[H]=!1,this[E]=!1,U.call(this,i),q.call(this,i)))},F.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},F.getModel=function(){return this._model},F.getOption=function(){return this._model&&this._model.getOption()},F.getWidth=function(){return this._zr.getWidth()},F.getHeight=function(){return this._zr.getHeight()},F.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},F.getRenderedCanvas=function(e){if(y.canvasSupported)return(e=e||{}).pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(e)},F.getSvgDataURL=function(){if(y.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return v.each(t,function(e){e.stopAnimation(!0)}),e.painter.toDataURL()}},F.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,i=[],r=this;I(t,function(e){n.eachComponent({mainType:e},function(e){e=r._componentsMap[e.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});e="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return I(i,function(e){e.group.ignore=!1}),e}this.id},F.getConnectedDataURL=function(i){if(this._disposed)this.id;else if(y.canvasSupported){var r="svg"===i.type,o=this.group,a=Math.min,s=Math.max;if(pe[o]){var l=1/0,u=1/0,c=-1/0,h=-1/0,d=[],t=i&&i.pixelRatio||1;v.each(de,function(e,t){var n;e.group===o&&(n=r?e.getZr().painter.getSvgDom().innerHTML:e.getRenderedCanvas(v.clone(i)),e=e.getDom().getBoundingClientRect(),l=a(e.left,l),u=a(e.top,u),c=s(e.right,c),h=s(e.bottom,h),d.push({dom:n,left:e.left,top:e.top}))});var e=(c*=t)-(l*=t),n=(h*=t)-(u*=t),p=v.createCanvas(),f=g.init(p,{renderer:r?"svg":"canvas"});if(f.resize({width:e,height:n}),r){var m="";return I(d,function(e){var t=e.left-l,n=e.top-u;m+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=m,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()}return i.connectedBackgroundColor&&f.add(new x.Rect({shape:{x:0,y:0,width:e,height:n},style:{fill:i.connectedBackgroundColor}})),I(d,function(e){e=new x.Image({style:{x:e.left*t-l,y:e.top*t-u,image:e.dom}});f.add(e)}),f.refreshImmediately(),p.toDataURL("image/"+(i&&i.type||"png"))}return this.getDataURL(i)}},F.convertToPixel=v.curry(V,"convertToPixel"),F.convertFromPixel=v.curry(V,"convertFromPixel"),F.containPixel=function(e,i){if(!this._disposed){var r,t=this._model;return e=b.parseFinder(t,e),v.each(e,function(e,n){0<=n.indexOf("Models")&&v.each(e,function(e){var t=e.coordinateSystem;t&&t.containPoint?r|=!!t.containPoint(i):"seriesModels"!==n||(t=this._chartsMap[e.__viewId])&&t.containPoint&&(r|=t.containPoint(i,e))},this)},this),!!r}this.id},F.getVisual=function(e,t){var n=this._model,n=(e=b.parseFinder(n,e,{defaultMainType:"series"})).seriesModel.getData(),e=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?n.indexOfRawIndex(e.dataIndex):null;return null!=e?n.getItemVisual(e,t):n.getVisual(t)},F.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},F.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var $={prepareAndUpdate:function(e){Y(this),$.update.call(this,e)},update:function(e){var t=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;t&&(o.restoreData(t,e),o.performSeriesTasks(t),r.create(t,n),o.performDataProcessorTasks(t,e),X(this,t),r.update(t,n),K(t),o.performVisualTasks(t,e),Q(this,t,n,e),e=t.get("backgroundColor")||"transparent",y.canvasSupported?i.setBackgroundColor(e):(i=a.parse(e),e=a.stringify(i,"rgb"),0===i[3]&&(e="transparent")),ee(t,n))},updateTransform:function(i){var r,n,o=this._model,a=this,s=this._api;o&&(r=[],o.eachComponent(function(e,t){var n=a.getViewOfComponentModel(t);n&&n.__alive&&(!n.updateTransform||(t=n.updateTransform(t,o,s,i))&&t.update)&&r.push(n)}),n=v.createHashMap(),o.eachSeries(function(e){var t=a._chartsMap[e.__viewId];(!t.updateTransform||(t=t.updateTransform(e,o,s,i))&&t.update)&&n.set(e.uid,1)}),K(o),this._scheduler.performVisualTasks(o,i,{setDirty:!0,dirtyMap:n}),J(a,o,0,i,n),ee(o,this._api))},updateView:function(e){var t=this._model;t&&(m.markUpdateMethod(e,"updateView"),K(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),Q(this,this._model,this._api,e),ee(t,this._api))},updateVisual:function(e){$.update.call(this,e)},updateLayout:function(e){$.update.call(this,e)}};function Y(e){var t=e._model,n=e._scheduler;n.restorePipelines(t),n.prepareStageTasks(),Z(e,"component",t,n),Z(e,"chart",t,n),n.plan()}function W(t,n,i,r,e){var o,a,s=t._model;function l(e){e&&e.__alive&&e[n]&&e[n](e.__model,s,t._api,i)}r?((o={})[r+"Id"]=i[r+"Id"],o[r+"Index"]=i[r+"Index"],o[r+"Name"]=i[r+"Name"],o={mainType:r,query:o},e&&(o.subType=e),null!=(a=i.excludeSeriesId)&&(a=v.createHashMap(b.normalizeToArray(a))),s&&s.eachComponent(o,function(e){a&&null!=a.get(e.id)||l(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])},t)):I(t._componentsViews.concat(t._chartsViews),l)}function X(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries(function(e){i.updateStreamModes(e,n[e.__viewId])})}function G(t,e){var n=t.type,i=t.escapeConnect,r=re[n],o=r.actionInfo,a=(s=(o.update||"update").split(":")).pop(),s=null!=s[0]&&L(s[0]);this[E]=!0;var l=[t],u=!1;t.batch&&(u=!0,l=v.map(t.batch,function(e){return(e=v.defaults(v.extend({},e),t)).batch=null,e}));var c,h=[],d="highlight"===n||"downplay"===n;I(l,function(e){(c=(c=r.action(e,this._model,this._api))||v.extend({},e)).type=o.event||c.type,h.push(c),d?W(this,a,e,"series"):s&&W(this,a,e,s.main,s.sub)},this),"none"===a||d||s||(this[H]?(Y(this),$.update.call(this,t),this[H]=!1):$[a].call(this,t)),c=u?{type:o.event||n,escapeConnect:i,batch:h}:h[0],this[E]=!1,e||this._messageCenter.trigger(c.type,c)}function U(e){for(var t=this._pendingActions;t.length;){var n=t.shift();G.call(this,n,e)}}function q(e){e||this.trigger("updated")}function Z(e,t,r,o){for(var a="component"===t,s=a?e._componentsViews:e._chartsViews,l=a?e._componentsMap:e._chartsMap,u=e._zr,c=e._api,n=0;n<s.length;n++)s[n].__alive=!1;function i(e){var t,n="_ec_"+e.id+"_"+e.type,i=l[n];i||(t=L(e.type),(i=new(a?f.getClass(t.main,t.sub):m.getClass(t.sub))).init(r,c),l[n]=i,s.push(i),u.add(i.group)),e.__viewId=i.__id=n,i.__alive=!0,i.__model=e,i.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},a||o.prepareView(i,e,r,c)}a?r.eachComponent(function(e,t){"series"!==e&&i(t)}):r.eachSeries(i);for(n=0;n<s.length;){var h=s[n];h.__alive?n++:(a||h.renderTask.dispose(),u.remove(h.group),h.dispose(r,c),s.splice(n,1),delete l[h.__id],h.__id=h.group.__ecComponentInfo=null)}}function K(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function Q(e,t,n,i){var r,o,a,s,l;r=e,o=t,a=n,s=i,I(l||r._componentsViews,function(e){var t=e.__model;e.render(t,o,a,s),ne(t,e)}),I(e._chartsViews,function(e){e.__alive=!1}),J(e,t,0,i),I(e._chartsViews,function(e){e.__alive||e.remove(t,n)})}function J(r,e,t,o,a){var s,n,i,l,u,c=r._scheduler;e.eachSeries(function(e){var t=r._chartsMap[e.__viewId];t.__alive=!0;var n,i=t.renderTask;c.updatePayload(i,o),a&&a.get(e.uid)&&i.dirty(),s|=i.perform(c.getPerformArgs(i)),t.group.silent=!!e.get("silent"),ne(e,t),t=t,n=e.get("blendMode")||null,t.group.traverse(function(e){e.isGroup||e.style.blend!==n&&e.setStyle("blend",n),e.eachPendingDisplayable&&e.eachPendingDisplayable(function(e){e.setStyle("blend",n)})})}),c.unfinished|=s,i=e,l=(n=r)._zr.storage,u=0,l.traverse(function(e){u++}),u>i.get("hoverLayerThreshold")&&!y.node&&i.eachSeries(function(e){e.preventUsingHoverLayer||(e=n._chartsMap[e.__viewId]).__alive&&e.group.traverse(function(e){e.useHoverLayer=!0})}),C(r._zr.dom,e)}function ee(t,n){I(le,function(e){e(t,n)})}F.resize=function(e){var t;this._disposed?this.id:(this._zr.resize(e),t=this._model,this._loadingFX&&this._loadingFX.resize(),t&&(t=t.resetOption("media"),e=e&&e.silent,this[E]=!0,t&&Y(this),$.update.call(this),this[E]=!1,U.call(this,e),q.call(this,e)))},F.showLoading=function(e,t){this._disposed?this.id:(N(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),he[e]&&(e=he[e](this._api,t),t=this._zr,this._loadingFX=e,t.add(e)))},F.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},F.makeActionFromEvent=function(e){var t=v.extend({},e);return t.type=oe[e.type],t},F.dispatchAction=function(e,t){this._disposed?this.id:(N(t)||(t={silent:!!t}),re[e.type]&&this._model&&(this[E]?this._pendingActions.push(e):(G.call(this,e,t.silent),t.flush?this._zr.flush(!0):!1!==t.flush&&y.browser.weChat&&this._throttledZrFlush(),U.call(this,t.silent),q.call(this,t.silent))))},F.appendData=function(e){var t;this._disposed?this.id:(t=e.seriesIndex,this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0)},F.on=R("on",!1),F.off=R("off",!1),F.one=R("one",!1);var te=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ne(e,t){var n=e.get("z"),i=e.get("zlevel");t.group.traverse(function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=i&&(e.zlevel=i))})}function ie(){this.eventInfo}F._initEvents=function(){I(te,function(a){function e(e){var t,n,i,r=this.getModel(),o=e.target;"globalout"===a?t={}:o&&null!=o.dataIndex?t=(i=o.dataModel||r.getSeriesByIndex(o.seriesIndex))&&i.getDataParams(o.dataIndex,o.dataType,o)||{}:o&&o.eventData&&(t=v.extend({},o.eventData)),t&&(n=t.componentType,i=t.componentIndex,"markLine"!==n&&"markPoint"!==n&&"markArea"!==n||(n="series",i=t.seriesIndex),i=(n=n&&null!=i&&r.getComponent(n,i))&&this["series"===n.mainType?"_chartsMap":"_componentsMap"][n.__viewId],t.event=e,t.type=a,this._ecEventProcessor.eventInfo={targetEl:o,packedEvent:t,model:n,view:i},this.trigger(a,t))}e.zrEventfulCallAtLast=!0,this._zr.on(a,e,this)},this),I(oe,function(e,t){this._messageCenter.on(t,function(e){this.trigger(t,e)},this)},this)},F.isDisposed=function(){return this._disposed},F.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},F.dispose=function(){var t,n;this._disposed?this.id:(this._disposed=!0,b.setAttribute(this.getDom(),ge,""),t=this._api,n=this._model,I(this._componentsViews,function(e){e.dispose(n,t)}),I(this._chartsViews,function(e){e.dispose(n,t)}),this._zr.dispose(),delete de[this.id])},v.mixin(B,l),ie.prototype={constructor:ie,normalizeQuery:function(e){var t,a,s,l={},u={},c={};return v.isString(e)?(t=L(e),l.mainType=t.main||null,l.subType=t.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},v.each(e,function(e,t){for(var n=!1,i=0;i<a.length;i++){var r=a[i],o=t.lastIndexOf(r);0<o&&o===t.length-r.length&&("data"!==(o=t.slice(0,o))&&(l.mainType=o,l[r.toLowerCase()]=e,n=!0))}s.hasOwnProperty(t)&&(u[t]=e,n=!0),n||(c[t]=e)})),{cptQuery:l,dataQuery:u,otherQuery:c}},filter:function(e,t,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=t.cptQuery,i=t.dataQuery;return u(l,a,"mainType")&&u(l,a,"subType")&&u(l,a,"index","componentIndex")&&u(l,a,"name")&&u(l,a,"id")&&u(i,o,"name")&&u(i,o,"dataIndex")&&u(i,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,r,o));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},afterTrigger:function(){this.eventInfo=null}};var re={},oe={},ae=[],se=[],le=[],ue=[],ce={},he={},de={},pe={},fe=+new Date,me=+new Date,ge="_echarts_instance_";function ve(e){pe[e]=!1}F=ve;function ye(e){return de[b.getAttribute(e,ge)]}function xe(e,t){ce[e]=t}function be(e){se.push(e)}function _e(e,t){Se(ae,e,t,1e3)}function we(e,t,n){"function"==typeof t&&(n=t,t="");var i=N(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,D(z.test(i)&&z.test(t)),re[i]||(re[i]={action:n,actionInfo:e}),oe[t]=i}function Ce(e,t){Se(ue,e,t,3e3,"visual")}function Se(e,t,n,i,r){(O(t)||N(t))&&(n=t,t=i);r=A.wrapStageHandler(n,r);return r.__prio=t,r.__raw=n,e.push(r),r}function Ae(e,t){he[e]=t}Ce(2e3,w),be(p),_e(900,i),Ae("default",S),we({type:"highlight",event:"highlight",update:"highlight"},v.noop),we({type:"downplay",event:"downplay",update:"downplay"},v.noop),xe("light",M),xe("dark",T);t.version="4.9.0",t.dependencies={zrender:"4.3.2"},t.PRIORITY=P,t.init=function(e,t,n){var i,r,o=ye(e);return o||((n=new B(e,t,n)).id="ec_"+fe++,de[n.id]=n,b.setAttribute(e,ge,n.id),i=n,r="__connectUpdateStatus",I(oe,function(e,t){i._messageCenter.on(t,function(e){var t,n;pe[i.group]&&0!==i[r]&&(e&&e.escapeConnect||(t=i.makeActionFromEvent(e),n=[],I(de,function(e){e!==i&&e.group===i.group&&n.push(e)}),a(n,0),I(n,function(e){1!==e[r]&&e.dispatchAction(t)}),a(n,2)))})}),n);function a(e,t){for(var n=0;n<e.length;n++)e[n][r]=t}},t.connect=function(t){var e;return v.isArray(t)&&(e=t,t=null,I(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+me++,I(e,function(e){e.group=t})),pe[t]=!0,t},t.disConnect=ve,t.disconnect=F,t.dispose=function(e){"string"==typeof e?e=de[e]:e instanceof B||(e=ye(e)),e instanceof B&&!e.isDisposed()&&e.dispose()},t.getInstanceByDom=ye,t.getInstanceById=function(e){return de[e]},t.registerTheme=xe,t.registerPreprocessor=be,t.registerProcessor=_e,t.registerPostUpdate=function(e){le.push(e)},t.registerAction=we,t.registerCoordinateSystem=function(e,t){h.register(e,t)},t.getCoordinateSystemDimensions=function(e){if(e=h.get(e))return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},t.registerLayout=function(e,t){Se(ue,e,t,1e3,"layout")},t.registerVisual=Ce,t.registerLoading=Ae,t.extendComponentModel=function(e){return r.extend(e)},t.extendComponentView=function(e){return f.extend(e)},t.extendSeriesModel=function(e){return o.extend(e)},t.extendChartView=function(e){return m.extend(e)},t.setCanvasCreator=function(e){v.$override("createCanvas",e)},t.registerMap=function(e,t,n){k.registerMap(e,t,n)},t.getMap=function(e){return(e=k.retrieveMap(e))&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}},t.dataTool={};var Me=n(323);!function(){for(var e in Me)Me.hasOwnProperty(e)&&(t[e]=Me[e])}()},function(e,t,n){"use strict";n.d(t,"q",function(){return s}),n.d(t,"j",function(){return l}),n.d(t,"s",function(){return u}),n.d(t,"i",function(){return c}),n.d(t,"h",function(){return h}),n.d(t,"g",function(){return p}),n.d(t,"t",function(){return f}),n.d(t,"f",function(){return m}),n.d(t,"b",function(){return g}),n.d(t,"a",function(){return v}),n.d(t,"e",function(){return y}),n.d(t,"o",function(){return x}),n.d(t,"k",function(){return b}),n.d(t,"n",function(){return _}),n.d(t,"c",function(){return w}),n.d(t,"p",function(){return C}),n.d(t,"d",function(){return S}),n.d(t,"m",function(){return A}),n.d(t,"l",function(){return M}),n.d(t,"r",function(){return T});var t=n(5),i=n.n(t),r=n(33),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.prototype.hasOwnProperty;function s(){}function l(e,t){return a.call(e,t)}function u(e){for(var t={},n=0;n<e.length;n++)e[n]&&function(e,t){for(var n in t)e[n]=t[n]}(t,e[n]);return t}var c=function(e,t){for(var n=(t=t||"").split("."),i=e,r=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!i)break;if(o===a-1){r=i[s];break}i=i[s]}return r};function h(e,t,n){for(var i=e,r=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),o=0,a=r.length;o<a-1&&(i||n);++o){var s=r[o];if(!(s in i)){if(n)throw new Error("please transfer a valid prop path to form item!");break}i=i[s]}return{o:i,k:r[o],v:i?i[r[o]]:null}}function d(e,t){var n=Object(r.d)(e),i=Object(r.d)(t);return n&&i?JSON.stringify(e)===JSON.stringify(t):!n&&!i&&String(e)===String(t)}var p=function(){return Math.floor(1e4*Math.random())},f=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},m=function(){return String(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},g=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},v=function(e,t){t=g(e,t);return-1!==t?e[t]:void 0},y=function(e){return Array.isArray(e)?e:e?[e]:[]},x=function(){return!i.a.prototype.$isServer&&!isNaN(Number(document.documentMode))},b=function(){return!i.a.prototype.$isServer&&-1<navigator.userAgent.indexOf("Edge")},_=function(){return!i.a.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},w=function(i){if("object"!==(void 0===i?"undefined":o(i)))return i;var e=["ms-","webkit-"];return["transform","transition","animation"].forEach(function(t){var n=i[t];t&&n&&e.forEach(function(e){i[e+t]=n})}),i},C=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},S=function(e){return Object(r.e)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},A=function(e,t){return(Array.isArray(e)&&Array.isArray(t)?function(e,t){if((e=e||[]).length!==(t=t||[]).length)return!1;for(var n=0;n<e.length;n++)if(!d(e[n],t[n]))return!1;return!0}:d)(e,t)},M=function(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1};function T(r){var o=!1;return function(){for(var t=this,e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];o||(o=!0,window.requestAnimationFrame(function(e){r.apply(t,n),o=!1}))}}},function(e,t){e.exports=Vue},function(e,t,n){var f=n(1),r=n(308),i=n(55),o=n(35),s=n(20),a=n(24),l=n(146),u=n(95);t.Image=u;var c=n(78);t.Group=c;var h=n(79);t.Text=h;var d=n(313);t.Circle=d;var p=n(508);t.Sector=p;var m=n(509);t.Ring=m;var g=n(315);t.Polygon=g;var v=n(317);t.Polyline=v;var y=n(194);t.Rect=y;var x=n(318);t.Line=x;var b=n(512);t.BezierCurve=b;c=n(513);t.Arc=c;h=n(514);t.CompoundPath=h;h=n(196);t.LinearGradient=h;h=n(515);t.RadialGradient=h;h=n(21);t.BoundingRect=h;h=n(197);t.IncrementalDisplayable=h;var _=n(195),w=Math.max,C=Math.min,S={},A=1,M="emphasis",T="normal",k=1,D={},I={};function O(e,t){I[e]=t}function N(e,t,n,i){t=r.createFromString(e,t);return n&&("center"===i&&(n=L(n,t.getBoundingRect())),P(t,n)),t}function L(e,t){var n=t.width/t.height,t=e.height*n,n=t<=e.width?e.height:(t=e.width)/n;return{x:e.x+e.width/2-t/2,y:e.y+e.height/2-n/2,width:t,height:n}}h=r.mergePath;function P(e,t){e.applyTransform&&(t=e.getBoundingRect().calculateTransform(t),e.applyTransform(t))}n=_.subPixelOptimize;function E(e){return null!=e&&"none"!==e}var H=f.createHashMap(),z=0;function R(e){var t,n,i,r,o=e.__hoverStl;o&&!e.__highlighted&&(t=e.__zr,n=e.useHoverLayer&&t&&"canvas"===t.painter.type,e.__highlighted=n?"layer":"plain",e.isGroup||!t&&e.useHoverLayer||(r=(i=e).style,ee(r=n?(i=t.addHover(e)).style:r),n||function(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(t){var n=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var i,r=e.style;for(i in t)null!=t[i]&&(n[i]=r[i]);n.fill=r.fill,n.stroke=r.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}(i),r.extendFrom(o),j(r,o,"fill"),j(r,o,"stroke"),J(r),n||(e.dirty(!1),e.z2+=A)))}function j(e,t,n){!E(t[n])&&E(e[n])&&(e[n]=function(e){if("string"!=typeof e)return e;var t=H.get(e);return t||(t=i.lift(e,-.1),z<1e4&&(H.set(e,t),z++)),t}(e[n]))}function B(e){var t,n=e.__highlighted;n&&(e.__highlighted=!1,e.isGroup||("layer"===n?e.__zr&&e.__zr.removeHover(e):(t=e.style,(n=e.__cachedNormalStl)&&(ee(t),e.setStyle(n),J(t)),null!=(t=e.__cachedNormalZ2)&&e.z2-t===A&&(e.z2=t))))}function F(e,t,n){var i,r=T,o=T;e.__highlighted&&(r=M,i=!0),t(e,n),e.__highlighted&&(o=M,i=!0),e.isGroup&&e.traverse(function(e){e.isGroup||t(e,n)}),i&&e.__highDownOnUpdate&&e.__highDownOnUpdate(r,o)}function V(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,B(e),R(e))}function $(e){G(this,e)||this.__highByOuter||F(this,R)}function Y(e){G(this,e)||this.__highByOuter||F(this,B)}function W(e){this.__highByOuter|=1<<(e||0),F(this,R)}function X(e){(this.__highByOuter&=~(1<<(e||0)))||F(this,B)}function G(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function U(e,t){var n=!1===t;e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,n&&!e.__highDownDispatcher||(e[t=n?"off":"on"]("mouseover",$)[t]("mouseout",Y),e[t]("emphasis",W)[t]("normal",X),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!n)}function q(e,t,n,i,r){return Z(e,t,i,r),n&&f.extend(e,n),e}function Z(e,t,n,i){(n=n||S).isRectText&&(n.getTextPosition?a=n.getTextPosition(t,i):"outside"===(a=t.getShallow("position")||(i?null:"inside"))&&(a="top"),e.textPosition=a,e.textOffset=t.getShallow("offset"),null!=(a=t.getShallow("rotate"))&&(a*=Math.PI/180),e.textRotation=a,e.textDistance=f.retrieve2(t.getShallow("distance"),i?null:5));var r,o,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||S).rich;if(n)for(var i in t=t||{},n)n.hasOwnProperty(i)&&(t[i]=1);e=e.parentModel}return t}(t);if(l)for(var u in r={},l)l.hasOwnProperty(u)&&(o=t.getModel(["rich",u]),K(r[u]={},o,s,n,i));return e.rich=r,K(e,t,s,n,i,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),e}function K(e,t,n,i,r,o){n=!r&&n||S,e.textFill=Q(t.getShallow("color"),i)||n.color,e.textStroke=Q(t.getShallow("textBorderColor"),i)||n.textBorderColor,e.textStrokeWidth=f.retrieve2(t.getShallow("textBorderWidth"),n.textBorderWidth),r||(o&&(e.insideRollbackOpt=i,J(e)),null==e.textFill&&(e.textFill=i.autoColor)),e.fontStyle=t.getShallow("fontStyle")||n.fontStyle,e.fontWeight=t.getShallow("fontWeight")||n.fontWeight,e.fontSize=t.getShallow("fontSize")||n.fontSize,e.fontFamily=t.getShallow("fontFamily")||n.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),o&&i.disableBox||(e.textBackgroundColor=Q(t.getShallow("backgroundColor"),i),e.textPadding=t.getShallow("padding"),e.textBorderColor=Q(t.getShallow("borderColor"),i),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||n.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||n.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||n.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function Q(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function J(e){var t,n,i,r=e.textPosition,o=e.insideRollbackOpt;o&&null==e.textFill&&(n=o.autoColor,i=o.isRectText,r=!(i=!1!==(o=o.useInsideStyle)&&(!0===o||i&&r&&"string"==typeof r&&0<=r.indexOf("inside")))&&null!=n,(i||r)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),i&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=n,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),r&&(e.textFill=n)),e.insideRollback=t}function ee(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function te(e,t,n,i,r,o){var a,s;"function"==typeof r&&(o=r,r=null),i&&i.isAnimationEnabled()?(a=i.getShallow("animationDuration"+(s=e?"Update":"")),e=i.getShallow("animationEasing"+s),"function"==typeof(s=i.getShallow("animationDelay"+s))&&(s=s(r,i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null)),0<(a="function"==typeof a?a(r):a)?t.animateTo(n,a,s||0,e,o,!!o):(t.stopAnimation(),t.attr(n),o&&o())):(t.stopAnimation(),t.attr(n),o&&o())}function ne(e,t,n,i,r){te(!0,e,t,n,i,r)}function ie(e,t,n){return t&&!f.isArrayLike(t)&&(t=l.getLocalTransform(t)),n&&(t=o.invert([],t)),s.applyTransform([],e,t)}function re(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,n=a-r,i=s-o,a=n*u-l*i;if((s=a)<=1e-6&&-1e-6<=s)return!1;r=e-r,o=t-o,l=(r*u-l*o)/a;if(l<0||1<l)return!1;a=(r*i-n*o)/a;return!(a<0||1<a)}O("circle",d),O("sector",p),O("ring",m),O("polygon",g),O("polyline",v),O("rect",y),O("line",x),O("bezierCurve",b),O("arc",c),t.Z2_EMPHASIS_LIFT=A,t.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},t.extendShape=function(e){return a.extend(e)},t.extendPath=function(e,t){return r.extendFromString(e,t)},t.registerShape=O,t.getShapeClass=function(e){if(I.hasOwnProperty(e))return I[e]},t.makePath=N,t.makeImage=function(e,t,n){var i=new u({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){"center"===n&&(e={width:e.width,height:e.height},i.setStyle(L(t,e)))}});return i},t.mergePath=h,t.resizePath=P,t.subPixelOptimizeLine=function(e){return _.subPixelOptimizeLine(e.shape,e.shape,e.style),e},t.subPixelOptimizeRect=function(e){return _.subPixelOptimizeRect(e.shape,e.shape,e.style),e},t.subPixelOptimize=n,t.setElementHoverStyle=V,t.setHoverStyle=function(e,t){U(e,!0),F(e,V,t)},t.setAsHighDownDispatcher=U,t.isHighDownDispatcher=function(e){return!(!e||!e.__highDownDispatcher)},t.getHighlightDigit=function(e){var t=D[e];return t=null==t&&k<=32?D[e]=k++:t},t.setLabelStyle=function(e,t,n,i,r,o,a){var s=(r=r||S).labelFetcher,l=r.labelDataIndex,u=r.labelDimIndex,c=r.labelProp,h=n.getShallow("show"),d=i.getShallow("show");(h||d)&&null==(p=s?s.getFormattedLabel(l,"normal",null,u,c):p)&&(p=f.isFunction(r.defaultText)?r.defaultText(l,r):r.defaultText);var h=h?p:null,p=d?f.retrieve2(s?s.getFormattedLabel(l,"emphasis",null,u,c):null,p):null;null==h&&null==p||(q(e,n,o,r),q(t,i,a,r,!0)),e.text=h,t.text=p},t.modifyLabelStyle=function(e,t,n){var i=e.style;t&&(ee(i),e.setStyle(t),J(i)),i=e.__hoverStl,n&&i&&(ee(i),f.extend(i,n),J(i))},t.setTextStyle=q,t.setText=function(e,t,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,Z(e,t,r,i)},t.getFont=function(e,t){return t=t&&t.getModel("textStyle"),f.trim([e.fontStyle||t&&t.getShallow("fontStyle")||"",e.fontWeight||t&&t.getShallow("fontWeight")||"",(e.fontSize||t&&t.getShallow("fontSize")||12)+"px",e.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))},t.updateProps=ne,t.initProps=function(e,t,n,i,r){te(!1,e,t,n,i,r)},t.getTransform=function(e,t){for(var n=o.identity([]);e&&e!==t;)o.mul(n,e.getLocalTransform(),n),e=e.parent;return n},t.applyTransform=ie,t.transformDirection=function(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),r=ie(r=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0],t,n);return Math.abs(r[0])>Math.abs(r[1])?0<r[0]?"right":"left":0<r[1]?"bottom":"top"},t.groupTransition=function(e,t,i,n){var r,o;function a(e){var t={position:s.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=f.extend({},e.shape)),t}e&&t&&(o={},e.traverse(function(e){!e.isGroup&&e.anid&&(o[e.anid]=e)}),r=o,t.traverse(function(e){var t,n;e.isGroup||!e.anid||(t=r[e.anid])&&(n=a(e),e.attr(a(t)),ne(e,n,i,e.dataIndex))}))},t.clipPointsByRect=function(e,n){return f.map(e,function(e){var t=e[0],t=w(t,n.x);t=C(t,n.x+n.width);e=e[1],e=w(e,n.y);return[t,e=C(e,n.y+n.height)]})},t.clipRectByRect=function(e,t){var n=w(e.x,t.x),i=C(e.x+e.width,t.x+t.width),r=w(e.y,t.y),t=C(e.y+e.height,t.y+t.height);if(n<=i&&r<=t)return{x:n,y:r,width:i-n,height:t-r}},t.createIcon=function(e,t,n){var i=(t=f.extend({rectHover:!0},t)).style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),f.defaults(i,n),new u(t)):N(e.replace("path://",""),t,n,"center")},t.linePolygonIntersect=function(e,t,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(re(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},t.lineLineIntersect=re},function(e,t,n){"use strict";function r(t,n,i){this.$children.forEach(function(e){e.$options.componentName===t?e.$emit.apply(e,[n].concat(i)):r.apply(e,[t,n].concat([i]))})}t.a={methods:{dispatch:function(e,t,n){for(var i=this.$parent||this.$root,r=i.$options.componentName;i&&(!r||r!==e);)(i=i.$parent)&&(r=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}}},function(e,t,n){var p=n(1);var i=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function o(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return 10<=e/Math.pow(10,t)&&t++,t}t.linearMap=function(e,t,n,i){var r=t[1]-t[0],o=n[1]-n[0];if(0==r)return 0==o?n[0]:(n[0]+n[1])/2;if(i)if(0<r){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/r*o+n[0]},t.parsePercent=function(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"==typeof e?e.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e},t.round=function(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e},t.asc=function(e){return e.sort(function(e,t){return e-t}),e},t.getPrecision=function(e){if(e=+e,isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n},t.getPrecisionSafe=function(e){var t=e.toString();if(0<(e=t.indexOf("e"))){var n=+t.slice(e+1);return n<0?-n:0}return(n=t.indexOf("."))<0?0:t.length-1-n},t.getPixelPrecision=function(e,t){var n=Math.log,i=Math.LN10,e=Math.floor(n(e[1]-e[0])/i),i=Math.round(n(Math.abs(t[1]-t[0]))/i),i=Math.min(Math.max(-e+i,0),20);return isFinite(i)?i:20},t.getPercentWithPrecision=function(e,t,n){if(!e[t])return 0;var i=p.reduce(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(0===i)return 0;for(var r=Math.pow(10,n),e=p.map(e,function(e){return(isNaN(e)?0:e)/i*r*100}),o=100*r,a=p.map(e,function(e){return Math.floor(e)}),s=p.reduce(a,function(e,t){return e+t},0),l=p.map(e,function(e,t){return e-a[t]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=l.length;h<d;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return a[t]/r},t.MAX_SAFE_INTEGER=9007199254740991,t.remRadian=function(e){var t=2*Math.PI;return(e%t+t)%t},t.isRadianAroundZero=function(e){return-1e-4<e&&e<1e-4},t.parseDate=function(e){if(e instanceof Date)return e;if("string"!=typeof e)return null==e?new Date(NaN):new Date(Math.round(e));var t=i.exec(e);if(!t)return new Date(NaN);if(t[8]){e=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(e-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)},t.quantity=function(e){return Math.pow(10,o(e))},t.quantityExponent=o,t.nice=function(e,t){var n=o(e),i=Math.pow(10,n),r=e/i;return e=(r=t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,-20<=n?+e.toFixed(n<0?-n:0):e},t.quantile=function(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),t=+e[i-1];return(n=n-i)?t+n*(e[i]-t):t},t.reformIntervals=function(e){e.sort(function(e,t){return function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]==(i?-1:1)||!i&&e(t,n,1))}(e,t,0)?-1:1});for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,o=e[i].close,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-n),t=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?e.splice(i,1):i++}return e},t.isNumeric=function(e){return 0<=e-parseFloat(e)}},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.noop=function(){},t.isDef=function(e){return null!=e},t.isFunction=o,t.isObject=a,t.isPromise=function(e){return a(e)&&o(e.then)&&o(e.catch)},t.get=function(e,t){var t=t.split("."),n=e;return t.forEach(function(e){n=null!=(e=n[e])?e:""}),n},t.isServer=t.inBrowser=t.addUnit=t.createNamespace=void 0;var r=i(n(5)),i=n(786);t.createNamespace=i.createNamespace;n=n(164);t.addUnit=n.addUnit;n="undefined"!=typeof window;t.inBrowser=n;r=r.default.prototype.$isServer;function o(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}t.isServer=r},function(e,t,n){var u=n(1),i=n(25),c=u.each,s=u.isObject,r=u.isArray,l="series\0";function h(e){return e instanceof Array?e:null==e?[]:[e]}function a(e){return s(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}var o=0;function d(e,t){return e&&e.hasOwnProperty(t)}t.normalizeToArray=h,t.defaultEmphasis=function(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}},t.TEXT_STYLE_OPTIONS=["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"],t.getDataItemValue=function(e){return!s(e)||r(e)||e instanceof Date?e:e.value},t.isDataItemOption=function(e){return s(e)&&!(e instanceof Array)},t.mappingToExists=function(e,r){r=(r||[]).slice();var o=u.map(e||[],function(e,t){return{exist:e}});return c(r,function(e,t){if(s(e)){for(var n=0;n<o.length;n++)if(!o[n].option&&null!=e.id&&o[n].exist.id===e.id+"")return o[n].option=e,void(r[t]=null);for(n=0;n<o.length;n++){var i=o[n].exist;if(!(o[n].option||null!=i.id&&null!=e.id||null==e.name||a(e)||a(i)||i.name!==e.name+""))return o[n].option=e,void(r[t]=null)}}}),c(r,function(e,t){if(s(e)){for(var n=0;n<o.length;n++){var i=o[n].exist;if(!o[n].option&&!a(i)&&null==e.id){o[n].option=e;break}}n>=o.length&&o.push({option:e})}}),o},t.makeIdAndName=function(e){var a=u.createHashMap();c(e,function(e,t){var n=e.exist;n&&a.set(n.id,e)}),c(e,function(e,t){var n=e.option;u.assert(!n||null==n.id||!a.get(n.id)||a.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&a.set(n.id,e),e.keyInfo||(e.keyInfo={})}),c(e,function(e,t){var n=e.exist,i=e.option,r=e.keyInfo;if(s(i)){if(r.name=null!=i.name?i.name+"":n?n.name:l+t,n)r.id=n.id;else if(null!=i.id)r.id=i.id+"";else for(var o=0;r.id="\0"+r.name+"\0"+o++,a.get(r.id););a.set(r.id,e)}})},t.isNameSpecified=function(e){return!(!(e=e.name)||!e.indexOf(l))},t.isIdInner=a,t.compressBatches=function(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[o(n),o(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++)for(var o=e[i].seriesId,a=h(e[i].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(t[o]||(t[o]={}))[c]=1}}function o(e,t){var n,i,r=[];for(n in e)e.hasOwnProperty(n)&&null!=e[n]&&(t?r.push(+n):(i=o(e[n],!0)).length&&r.push({seriesId:n,dataIndex:i}));return r}},t.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?u.isArray(e.dataIndex)?u.map(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?u.isArray(e.name)?u.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},t.makeInner=function(){var t="__\0ec_inner_"+o+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}},t.parseFinder=function(o,a,s){u.isString(a)&&((e={})[a+"Index"]=0,a=e);var e=s&&s.defaultMainType;!e||d(a,e+"Index")||d(a,e+"Id")||d(a,e+"Name")||(a[e+"Index"]=0);var l={};return c(a,function(e,t){var n,i,r,e=a[t];"dataIndex"!==t&&"dataIndexInside"!==t?(n=(r=t.match(/^(\w+)(Index|Id|Name)$/)||[])[1],i=(r[2]||"").toLowerCase(),!n||!i||null==e||"index"===i&&"none"===e||s&&s.includeMainTypes&&u.indexOf(s.includeMainTypes,n)<0||(r={mainType:n},"index"===i&&"all"===e||(r[i]=e),r=o.queryComponents(r),l[n+"Models"]=r,l[n+"Model"]=r[0])):l[t]=e}),l},t.setAttribute=function(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n},t.getAttribute=function(e,t){return e.getAttribute?e.getAttribute(t):e[t]},t.getTooltipRenderMode=function(e){return"auto"===e?i.domSupported?"html":"richText":e||"html"},t.groupData=function(e,n){var i=u.createHashMap(),r=[];return u.each(e,function(e){var t=n(e);(i.get(t)||(r.push(t),i.set(t,[]))).push(e)}),{keys:r,buckets:i}}},function(e,t,n){"use strict";var i=n(18);t.a={methods:{t:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.b.apply(this,t)}}}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";function r(e){return e.stopPropagation()}var i=n(5),i=n.n(i),o=n(29),a=i.a.prototype.$isServer?function(){}:n(452);t.a={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(e){this.showPopper=e,this.$emit("input",e)}},showPopper:function(e){this.disabled||(e?this.updatePopper():this.destroyPopper(),this.$emit("input",e))}},methods:{createPopper:function(){var e,t,n,i=this;this.$isServer||(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement)&&(e=this.popperOptions,t=this.popperElm=this.popperElm||this.popper||this.$refs.popper,!(n=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference)&&this.$slots.reference&&this.$slots.reference[0]&&(n=this.referenceElm=this.$slots.reference[0].elm),t&&n&&(this.visibleArrow&&this.appendArrow(t),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),e.placement=this.currentPlacement,e.offset=this.offset,e.arrowOffset=this.arrowOffset,this.popperJS=new a(n,t,e),this.popperJS.onCreate(function(e){i.$emit("created",i),i.resetTransformOrigin(),i.$nextTick(i.updatePopper)}),"function"==typeof e.onUpdate&&this.popperJS.onUpdate(e.onUpdate),this.popperJS._popper.style.zIndex=o.a.nextZIndex(),this.popperElm.addEventListener("click",r))))},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=o.a.nextZIndex())):this.createPopper()},doDestroy:function(e){!this.popperJS||this.showPopper&&!e||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){var e,t;this.transformOrigin&&(t={top:"bottom",bottom:"top",left:"right",right:"left"}[e=this.popperJS._popper.getAttribute("x-placement").split("-")[0]],this.popperJS._popper.style.transformOrigin="string"==typeof this.transformOrigin?this.transformOrigin:-1<["top","bottom"].indexOf(e)?"center "+t:t+" center")},appendArrow:function(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var i=document.createElement("div");t&&i.setAttribute(t,""),i.setAttribute("x-arrow",""),i.className="popper__arrow",e.appendChild(i)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",r),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},function(e,n,t){!function(e){var t;"undefined"!=typeof window?t=window.__DEV__:void 0!==e&&(t=e.__DEV__),n.__DEV__=t=void 0===t?!0:t}.call(this,t(90))},function(e,t,n){var p=n(1),f=n(21),m=n(8).parsePercent,g=n(17),v=p.each,i=["left","right","top","bottom","width","height"],r=[["width","left","right"],["height","top","bottom"]];function o(s,l,u,c,h){var d=0,p=0;null==c&&(c=1/0),null==h&&(h=1/0);var f=0;l.eachChild(function(e,t){var n,i,r=e.position,o=e.getBoundingRect(),a=l.childAt(t+1),t=a&&a.getBoundingRect();f="horizontal"===s?(a=o.width+(t?-t.x+o.x:0),c<(n=d+a)||e.newline?(d=0,n=a,p+=f+u,o.height):Math.max(f,o.height)):(t=o.height+(t?-t.y+o.y:0),h<(i=p+t)||e.newline?(d+=f+u,p=0,i=t,o.width):Math.max(f,o.width)),e.newline||(r[0]=d,r[1]=p,"horizontal"===s?d=n+u:p=i+u)})}var a=o,s=p.curry(o,"vertical"),n=p.curry(o,"horizontal");function u(e,t,n){n=g.normalizeCssArray(n||0);var i=t.width,r=t.height,o=m(e.left,i),a=m(e.top,r),s=m(e.right,i),l=m(e.bottom,r),u=m(e.width,i),c=m(e.height,r),h=n[2]+n[0],d=n[1]+n[3],t=e.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=t&&(isNaN(u)&&isNaN(c)&&(i/r<t?u=.8*i:c=.8*r),isNaN(u)&&(u=t*c),isNaN(c)&&(c=u/t)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),e.left||e.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(e.top||e.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));l=new f(o+n[3],a+n[0],u,c);return l.margin=n,l}function l(t,n){return n&&t&&v(i,function(e){n.hasOwnProperty(e)&&(t[e]=n[e])}),t}t.LOCATION_PARAMS=i,t.HV_NAMES=r,t.box=a,t.vbox=s,t.hbox=n,t.getAvailableSize=function(e,t,n){var i=t.width,r=t.height,o=m(e.x,i),a=m(e.y,r),s=m(e.x2,i),t=m(e.y2,r);return(isNaN(o)||isNaN(parseFloat(e.x)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.x2)))&&(s=i),(isNaN(a)||isNaN(parseFloat(e.y)))&&(a=0),(isNaN(t)||isNaN(parseFloat(e.y2)))&&(t=r),n=g.normalizeCssArray(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(t-a-n[0]-n[2],0)}},t.getLayoutRect=u,t.positionElement=function(e,t,n,i,r){var o,a=!r||!r.hv||r.hv[0],s=!r||!r.hv||r.hv[1],l=r&&r.boundingMode||"all";(a||s)&&("raw"===l?o="group"===e.type?new f(0,0,+t.width||0,+t.height||0):e.getBoundingRect():(o=e.getBoundingRect(),e.needLocalTransform()&&(r=e.getLocalTransform(),(o=o.clone()).applyTransform(r))),t=u(p.defaults({width:o.width,height:o.height},t),n,i),i=e.position,a=a?t.x-o.x:0,o=s?t.y-o.y:0,e.attr("position","raw"===l?[a,o]:[i[0]+a,i[1]+o]))},t.sizeCalculable=function(e,t){return null!=e[r[t][0]]||null!=e[r[t][1]]&&null!=e[r[t][2]]},t.mergeLayoutParam=function(l,u,e){var c=(e=!p.isObject(e)?{}:e).ignoreSize;p.isArray(c)||(c=[c,c]);var t=n(r[0],0),e=n(r[1],1);function n(e,t){var n={},i=0,r={},o=0;if(v(e,function(e){r[e]=l[e]}),v(e,function(e){h(u,e)&&(n[e]=r[e]=u[e]),d(n,e)&&i++,d(r,e)&&o++}),c[t])return d(u,e[1])?r[e[2]]=null:d(u,e[2])&&(r[e[1]]=null),r;if(2!==o&&i){if(2<=i)return n;for(var a=0;a<e.length;a++){var s=e[a];if(!h(n,s)&&h(l,s)){n[s]=l[s];break}}return n}return r}function h(e,t){return e.hasOwnProperty(t)}function d(e,t){return null!=e[t]&&"auto"!==e[t]}function i(e,t,n){v(e,function(e){t[e]=n[e]})}i(r[0],l,t),i(r[1],l,e)},t.getLayoutParams=function(e){return l({},e)},t.copyLayoutParams=l},function(e,t,n){"use strict";t.a=function(e){for(var t=1,n=arguments.length;t<n;t++){var i,r,o=arguments[t]||{};for(i in o)!o.hasOwnProperty(i)||void 0!==(r=o[i])&&(e[i]=r)}return e}},function(e,t,n){var c=n(1),l=n(41),u=n(8);var i=c.normalizeCssArray,r=/([&<>"'])/g,o={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(e){return null==e?"":(e+"").replace(r,function(e,t){return o[t]})}function d(e,t){return"{"+e+(null==t?"":t)+"}"}var p=["a","b","c","d","e","f","g"];function f(e,t){return"0000".substr(0,t-(e+="").length)+e}n=l.truncateText;t.addCommas=function(e){return isNaN(e)?"-":(e=(e+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:"")},t.toCamelCase=function(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),e=t&&e?e.charAt(0).toUpperCase()+e.slice(1):e},t.normalizeCssArray=i,t.encodeHTML=h,t.formatTpl=function(e,t,n){var i=(t=!c.isArray(t)?[t]:t).length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=p[o];e=e.replace(d(a),d(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];e=e.replace(d(p[l],s),n?h(u):u)}return e},t.formatTplSimple=function(n,e,i){return c.each(e,function(e,t){n=n.replace("{"+t+"}",i?h(e):e)}),n},t.getTooltipMarker=function(e,t){var n=(e=c.isString(e)?{color:e,extraCssText:t}:e||{}).color,i=e.type,t=e.extraCssText,r=e.renderMode||"html",e=e.markerId||"X";return n?"html"===r?"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:'+h(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+h(n)+";"+(t||"")+'"></span>':{renderMode:r,content:"{marker"+e+"|} ",style:{color:n}}:""},t.formatTime=function(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=u.parseDate(t),r=i["get"+(l=n?"UTC":"")+"FullYear"](),o=i["get"+l+"Month"]()+1,a=i["get"+l+"Date"](),s=i["get"+l+"Hours"](),t=i["get"+l+"Minutes"](),n=i["get"+l+"Seconds"](),l=i["get"+l+"Milliseconds"]();return e=e.replace("MM",f(o,2)).replace("M",o).replace("yyyy",r).replace("yy",r%100).replace("dd",f(a,2)).replace("d",a).replace("hh",f(s,2)).replace("h",s).replace("mm",f(t,2)).replace("m",t).replace("ss",f(n,2)).replace("s",n).replace("SSS",f(l,3))},t.capitalFirst=function(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)},t.truncateText=n,t.getTextBoundingRect=function(e){return l.getBoundingRect(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)},t.getTextRect=function(e,t,n,i,r,o,a,s){return l.getBoundingRect(e,t,n,i,r,s,o,a)},t.windowOpen=function(e,t){var n;"_blank"===t||"blank"===t?((n=window.open()).opener=null,n.location=e):window.open(e,t)}},function(e,t,n){"use strict";n.d(t,"b",function(){return f}),n.d(t,"c",function(){return m});var i=n(170),r=n(5),o=n.n(r),r=n(171),a=n.n(r),s=n(4),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=/(%|)\{([0-9a-zA-Z_]+)\}/g,c=(o.a,function(o){for(var e=arguments.length,a=Array(1<e?e-1:0),t=1;t<e;t++)a[t-1]=arguments[t];return(a=1===a.length&&"object"===l(a[0])?a[0]:a)&&a.hasOwnProperty||(a={}),o.replace(u,function(e,t,n,i){var r;return"{"===o[i-1]&&"}"===o[i+e.length]?n:null==(r=Object(s.j)(a,n)?a[n]:null)?"":r})}),h=i.a,d=!1,p=function(){var e=Object.getPrototypeOf(this||o.a).$t;if("function"==typeof e&&o.a.locale)return d||(d=!0,o.a.locale(o.a.config.lang,a()(h,o.a.locale(o.a.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},f=function(e,t){if(null!=(a=p.apply(this,arguments)))return a;for(var n=e.split("."),i=h,r=0,o=n.length;r<o;r++){var a=i[n[r]];if(r===o-1)return c(a,t);if(!a)return"";i=a}return""},m=function(e){h=e||h};t.a={use:m,t:f,i18n:function(e){p=e||p}}},function(e,t,n){"use strict";var i=n(7),r=n(23),u=void 0,c=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function o(e,t,n){var i=1<arguments.length&&void 0!==t?t:1,r=2<arguments.length&&void 0!==n?n:null;u||(u=document.createElement("textarea"),document.body.appendChild(u));var o,a,s,t=(o=e,a=window.getComputedStyle(o),l=a.getPropertyValue("box-sizing"),s=parseFloat(a.getPropertyValue("padding-bottom"))+parseFloat(a.getPropertyValue("padding-top")),o=parseFloat(a.getPropertyValue("border-bottom-width"))+parseFloat(a.getPropertyValue("border-top-width")),{contextStyle:c.map(function(e){return e+":"+a.getPropertyValue(e)}).join(";"),paddingSize:s,borderSize:o,boxSizing:l}),n=t.paddingSize,s=t.borderSize,o=t.boxSizing;u.setAttribute("style",t.contextStyle+";\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n"),u.value=e.value||e.placeholder||"";var l=u.scrollHeight,t={};"border-box"===o?l+=s:"content-box"===o&&(l-=n),u.value="";e=u.scrollHeight-n;return null!==i&&(i=e*i,"border-box"===o&&(i=i+n+s),l=Math.max(i,l),t.minHeight=i+"px"),null!==r&&(r=e*r,"border-box"===o&&(r=r+n+s),l=Math.min(r,l)),t.height=l+"px",u.parentNode&&u.parentNode.removeChild(u),u=null,t}var a=n(16),s=n(58),r={name:"TisInput",componentName:"TisInput",mixins:[i.a,r.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return Object(a.a)({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return("number"==typeof this.value?String(this.value):this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick(function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()})}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){var e,t;this.$isServer||(t=this.autosize,"textarea"===this.type&&(t?(e=t.minRows,t=t.maxRows,this.textareaCalcStyle=o(this.$refs.textarea,e,t)):this.textareaCalcStyle={minHeight:o(this.$refs.textarea).minHeight}))},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){e=e.target.value,e=e[e.length-1]||"";this.isComposing=!Object(s.b)(e)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n,i=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){i=t[r];break}i&&(this.$slots[n={suffix:"append",prefix:"prepend"}[e]]?i.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+n).offsetWidth+"px)":i.removeAttribute("style"))}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){this.passwordVisible=!this.passwordVisible,this.focus()},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},n=n(0),l=Object(n.a)(r,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{class:["textarea"===t.type?"el-textarea":"el-input",t.inputSize?"el-input--"+t.inputSize:"",{"is-disabled":t.inputDisabled,"is-exceed":t.inputExceed,"el-input-group":t.$slots.prepend||t.$slots.append,"el-input-group--append":t.$slots.append,"el-input-group--prepend":t.$slots.prepend,"el-input--prefix":t.$slots.prefix||t.prefixIcon,"el-input--suffix":t.$slots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},["textarea"!==t.type?[t.$slots.prepend?e("div",{staticClass:"el-input-group__prepend"},[t._t("prepend")],2):t._e(),"textarea"!==t.type?e("input",t._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?"text":"password":t.type,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"input",t.$attrs,!1)):t._e(),t.$slots.prefix||t.prefixIcon?e("span",{staticClass:"el-input__prefix"},[t._t("prefix"),t.prefixIcon?e("i",{staticClass:"el-input__icon",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?e("span",{staticClass:"el-input__suffix"},[e("span",{staticClass:"el-input__suffix-inner"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t("suffix"),t.suffixIcon?e("i",{staticClass:"el-input__icon",class:t.suffixIcon}):t._e()],t.showClear?e("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?e("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?e("span",{staticClass:"el-input__count"},[e("span",{staticClass:"el-input__count-inner"},[t._v("\n "+t._s(t.textLength)+"/"+t._s(t.upperLimit)+"\n ")])]):t._e()],2),t.validateState?e("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",t.validateIcon]}):t._e()]):t._e(),t.$slots.append?e("div",{staticClass:"el-input-group__append"},[t._t("append")],2):t._e()]:e("textarea",t._b({ref:"textarea",staticClass:"el-textarea__inner",style:t.textareaStyle,attrs:{tabindex:t.tabindex,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"textarea",t.$attrs,!1)),t.isWordLimitVisible&&"textarea"===t.type?e("span",{staticClass:"el-input__count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()],2)},[],!1,null,null,null).exports;l.install=function(e){e.component(l.name,l)};t.a=l},function(e,t){var i="undefined"==typeof Float32Array?Array:Float32Array;function r(e){return Math.sqrt(o(e))}var n=r;function o(e){return e[0]*e[0]+e[1]*e[1]}var a=o;function s(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var l=s;function u(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var c=u;t.create=function(e,t){var n=new i(2);return null==t&&(t=0),n[0]=e=null==e?0:e,n[1]=t,n},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e},t.clone=function(e){var t=new i(2);return t[0]=e[0],t[1]=e[1],t},t.set=function(e,t,n){return e[0]=t,e[1]=n,e},t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e},t.scaleAndAdd=function(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e},t.sub=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e},t.len=r,t.length=n,t.lenSquare=o,t.lengthSquare=a,t.mul=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e},t.div=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e},t.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},t.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e},t.normalize=function(e,t){var n=r(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e},t.distance=s,t.dist=l,t.distanceSquare=u,t.distSquare=c,t.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},t.lerp=function(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e},t.applyTransform=function(e,t,n){var i=t[0],t=t[1];return e[0]=n[0]*i+n[2]*t+n[4],e[1]=n[1]*i+n[3]*t+n[5],e},t.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e},t.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}},function(e,t,n){var i,r,o,a,s=n(20),l=n(35),u=s.applyTransform,c=Math.min,h=Math.max;function d(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}d.prototype={constructor:d,union:function(e){var t=c(e.x,this.x),n=c(e.y,this.y);this.width=h(e.x+e.width,this.x+this.width)-t,this.height=h(e.y+e.height,this.y+this.height)-n,this.x=t,this.y=n},applyTransform:(i=[],r=[],o=[],a=[],function(e){var t;e&&(i[0]=o[0]=this.x,i[1]=a[1]=this.y,r[0]=a[0]=this.x+this.width,r[1]=o[1]=this.y+this.height,u(i,i,e),u(r,r,e),u(o,o,e),u(a,a,e),this.x=c(i[0],r[0],o[0],a[0]),this.y=c(i[1],r[1],o[1],a[1]),t=h(i[0],r[0],o[0],a[0]),e=h(i[1],r[1],o[1],a[1]),this.width=t-this.x,this.height=e-this.y)}),calculateTransform:function(e){var t=e.width/this.width,n=e.height/this.height,i=l.create();return l.translate(i,i,[-this.x,-this.y]),l.scale(i,i,[t,n]),l.translate(i,i,[e.x,e.y]),i},intersect:function(e){if(!e)return!1;e instanceof d||(e=d.create(e));var t=this,n=t.x,i=t.x+t.width,r=t.y,o=t.y+t.height,a=e.x,s=e.x+e.width,t=e.y,e=e.y+e.height;return!(i<a||s<n||o<t||e<r)},contain:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},clone:function(){return new d(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},d.create=function(e){return new d(e.x,e.y,e.width,e.height)},e.exports=d},function(e,t,n){},function(e,t,n){"use strict";n(4);t.a={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},function(e,t,n){var i=n(120),o=n(1),a=n(97),s=n(504),f=n(303).prototype.getCanvasPattern,r=Math.abs,m=new a(!0);function l(e){i.call(this,e),this.path=null}l.prototype={constructor:l,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(e,t){var n,i=this.style,r=this.path||m,o=i.hasStroke(),a=i.hasFill(),s=i.fill,l=i.stroke,u=a&&!!s.colorStops,c=o&&!!l.colorStops,h=a&&!!s.image,d=o&&!!l.image;i.bind(e,this,t),this.setTransform(e),this.__dirty&&(u&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(e,s,n)),c&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(e,l,n))),u?e.fillStyle=this._fillGradient:h&&(e.fillStyle=f.call(s,e)),c?e.strokeStyle=this._strokeGradient:d&&(e.strokeStyle=f.call(l,e));var p,s=i.lineDash,c=i.lineDashOffset,d=!!e.setLineDash,l=this.getGlobalScale();r.setScale(l[0],l[1],this.segmentIgnoreThreshold),this.__dirtyPath||s&&!d&&o?(r.beginPath(e),s&&!d&&(r.setLineDash(s),r.setLineDashOffset(c)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),a&&(null!=i.fillOpacity?(p=e.globalAlpha,e.globalAlpha=i.fillOpacity*i.opacity,r.fill(e),e.globalAlpha=p):r.fill(e)),s&&d&&(e.setLineDash(s),e.lineDashOffset=c),o&&(null!=i.strokeOpacity?(p=e.globalAlpha,e.globalAlpha=i.strokeOpacity*i.opacity,r.stroke(e),e.globalAlpha=p):r.stroke(e)),s&&d&&e.setLineDash([]),null!=i.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))},buildPath:function(e,t,n){},createPathProxy:function(){this.path=new a},getBoundingRect:function(){var e=this._rect,t=this.style,n=!e;if(n&&(i=(i=this.path)||(this.path=new a),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),e=i.getBoundingRect()),this._rect=e,t.hasStroke()){var i,r=this._rectWithStroke||(this._rectWithStroke=e.clone());return(this.__dirty||n)&&(r.copy(e),i=t.lineWidth,n=t.strokeNoScale?this.getLineScale():1,t.hasFill()||(i=Math.max(i,this.strokeContainThreshold||4)),1e-10<n&&(r.width+=i/n,r.height+=i/n,r.x-=i/n/2,r.y-=i/n/2)),r}return e},contain:function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var o=this.path.data;if(r.hasStroke()){n=r.lineWidth,i=r.strokeNoScale?this.getLineScale():1;if(1e-10<i&&(r.hasFill()||(n=Math.max(n,this.strokeContainThreshold)),s.containStroke(o,n/i,e,t)))return!0}if(r.hasFill())return s.contain(o,e,t)}return!1},dirty:function(e){(e=null==e?!0:e)&&(this.__dirtyPath=e,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):i.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var n=this.shape;if(n){if(o.isObject(e))for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);else n[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&1e-10<r(e[0]-1)&&1e-10<r(e[3]-1)?Math.sqrt(r(e[0]*e[3]-e[2]*e[1])):1}},l.extend=function(r){function e(e){l.call(this,e),r.style&&this.style.extendFrom(r.style,!1);var t=r.shape;if(t){this.shape=this.shape||{};var n,i=this.shape;for(n in t)!i.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(i[n]=t[n])}r.init&&r.init.call(this,e)}for(var t in o.inherits(e,l),r)"style"!==t&&"shape"!==t&&(e.prototype[t]=r[t]);return e},o.inherits(l,i),e.exports=l},function(e,t){var n={},n="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(e){var t={},n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),r=e.match(/Edge\/([\d.]+)/),e=/micromessenger/i.test(e);n&&(t.firefox=!0,t.version=n[1]);i&&(t.ie=!0,t.version=i[1]);r&&(t.edge=!0,t.version=r[1]);e&&(t.weChat=!0);return{browser:t,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!t.ie&&!t.edge,pointerEventsSupported:"onpointerdown"in window&&(t.edge||t.ie&&11<=t.version),domSupported:"undefined"!=typeof document}}(navigator.userAgent);e.exports=n},function(e,t,n){var i=n(1),r=n(25),o=n(10).makeInner,a=n(60),s=a.enableClassExtend,l=a.enableClassCheck,u=n(501),c=n(502),h=n(503),a=n(516),n=i.mixin,d=o();function p(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}function f(e,t,n){for(var i=0;i<t.length&&(!t[i]||null!=(e=e&&"object"==typeof e?e[t[i]]:null));i++);return e=null==e&&n?n.get(t):e}function m(e,t){var n=d(e).getParent;return n?n.call(e,t):e.parentModel}p.prototype={constructor:p,init:null,mergeOption:function(e){i.merge(this.option,e,!0)},get:function(e,t){return null==e?this.option:f(this.option,this.parsePath(e),!t&&m(this,e))},getShallow:function(e,t){var n=this.option,n=null==n?n:n[e],t=!t&&m(this,e);return n=null==n&&t?t.getShallow(e):n},getModel:function(e,t){var n;return new p(null==e?this.option:f(this.option,e=this.parsePath(e)),t=t||(n=m(this,e))&&n.getModel(e),this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new this.constructor(i.clone(this.option))},setReadOnly:function(e){},parsePath:function(e){return e="string"==typeof e?e.split("."):e},customizeGetParent:function(e){d(this).getParent=e},isAnimationEnabled:function(){if(!r.node)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0}},s(p),l(p),n(p,u),n(p,c),n(p,h),n(p,a),e.exports=p},function(e,t,n){"use strict";var i={name:"TisButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},n=n(0),r=Object(n.a)(i,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?t("i",{class:e.icon}):e._e(),e.$slots.default?t("span",[e._t("default")],2):e._e()])},[],!1,null,null,null).exports;r.install=function(e){e.component(r.name,r)};t.a=r},function(e,t,n){"use strict";var i=n(5),i=n.n(i),n=n(2),r=[],o="@@clickoutsideContext",a=void 0,s=0;function l(n,i,r){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!(r&&r.context&&e.target&&t.target)||n.contains(e.target)||n.contains(t.target)||n===e.target||r.context.popperElm&&(r.context.popperElm.contains(e.target)||r.context.popperElm.contains(t.target))||(i.expression&&n[o].methodName&&r.context[n[o].methodName]?r.context[n[o].methodName]():n[o].bindingFn&&n[o].bindingFn())}}i.a.prototype.$isServer||Object(n.g)(document,"mousedown",function(e){return a=e}),i.a.prototype.$isServer||Object(n.g)(document,"mouseup",function(t){r.forEach(function(e){return e[o].documentHandler(t,a)})}),t.a={bind:function(e,t,n){r.push(e);var i=s++;e[o]={id:i,documentHandler:l(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[o].documentHandler=l(e,t,n),e[o].methodName=t.expression,e[o].bindingFn=t.value},unbind:function(e){for(var t=r.length,n=0;n<t;n++)if(r[n][o].id===e[o].id){r.splice(n,1);break}delete e[o]}}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});function u(){if(!c.a.prototype.$isServer){var e=l.modalDom;return e?d=!0:(d=!1,e=document.createElement("div"),(l.modalDom=e).addEventListener("touchmove",function(e){e.preventDefault(),e.stopPropagation()}),e.addEventListener("click",function(){l.doOnModalClick&&l.doOnModalClick()})),e}}var i=n(5),c=n.n(i),r=n(16),h=n(2),d=!1,o=!1,a=void 0,s={},l={modalFade:!0,getInstance:function(e){return s[e]},register:function(e,t){e&&t&&(s[e]=t)},deregister:function(e){e&&(s[e]=null,delete s[e])},nextZIndex:function(){return l.zIndex++},modalStack:[],doOnModalClick:function(){var e=l.modalStack[l.modalStack.length-1];!e||(e=l.getInstance(e.id))&&e.closeOnClickModal&&e.close()},openModal:function(e,t,n,i,r){if(!c.a.prototype.$isServer&&e&&void 0!==t){this.modalFade=r;for(var o=this.modalStack,a=0,s=o.length;a<s;a++)if(o[a].id===e)return;var l=u();Object(h.a)(l,"v-modal"),this.modalFade&&!d&&Object(h.a)(l,"v-modal-enter"),i&&i.trim().split(/\s+/).forEach(function(e){return Object(h.a)(l,e)}),setTimeout(function(){Object(h.i)(l,"v-modal-enter")},200),(n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode:document.body).appendChild(l),t&&(l.style.zIndex=t),l.tabIndex=0,l.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:i})}},closeModal:function(e){var t=this.modalStack,n=u();if(0<t.length){var i=t[t.length-1];if(i.id===e)i.modalClass&&i.modalClass.trim().split(/\s+/).forEach(function(e){return Object(h.i)(n,e)}),t.pop(),0<t.length&&(n.style.zIndex=t[t.length-1].zIndex);else for(var r=t.length-1;0<=r;r--)if(t[r].id===e){t.splice(r,1);break}}0===t.length&&(this.modalFade&&Object(h.a)(n,"v-modal-leave"),setTimeout(function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",l.modalDom=void 0),Object(h.i)(n,"v-modal-leave")},200))}};Object.defineProperty(l,"zIndex",{configurable:!0,get:function(){return o||(a=a||(c.a.prototype.$ELEMENT||{}).zIndex||2e3,o=!0),a},set:function(e){a=e}});c.a.prototype.$isServer||window.addEventListener("keydown",function(e){27!==e.keyCode||(e=function(){if(!c.a.prototype.$isServer&&0<l.modalStack.length){var e=l.modalStack[l.modalStack.length-1];if(e)return l.getInstance(e.id)}}())&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction("cancel"):e.close())});var p,f=l,m=n(113),g=1;t.b={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+g++,f.register(this._popupId,this)},beforeDestroy:function(){f.deregister(this._popupId),f.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;e?this._opening||(this.rendered?this.open():(this.rendered=!0,c.a.nextTick(function(){t.open()}))):this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=Object(r.a)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);e=Number(n.openDelay);0<e?this._openTimer=setTimeout(function(){t._openTimer=null,t.doOpen(n)},e):this.doOpen(n)},doOpen:function(e){var t,n,i;this.$isServer||this.willOpen&&!this.willOpen()||this.opened||(this._opening=!0,t=this.$el,i=e.modal,(n=e.zIndex)&&(f.zIndex=n),i&&(this._closing&&(f.closeModal(this._popupId),this._closing=!1),f.openModal(this._popupId,f.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll&&(this.withoutHiddenClass=!Object(h.d)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt(Object(h.c)(document.body,"paddingRight"),10)),p=Object(m.a)(),i=document.documentElement.clientHeight<document.body.scrollHeight,e=Object(h.c)(document.body,"overflowY"),0<p&&(i||"scroll"===e)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+p+"px"),Object(h.a)(document.body,"el-popup-parent--hidden"))),"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=f.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen())},doAfterOpen:function(){this._opening=!1},close:function(){var e,t=this;this.willClose&&!this.willClose()||(null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer),0<(e=Number(this.closeDelay))?this._closeTimer=setTimeout(function(){t._closeTimer=null,t.doClose()},e):this.doClose())},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){f.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,Object(h.i)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}}},function(e,t,n){var a=n(1),r=n(26),o=n(122),i=n(60),s=i.enableClassManagement,l=i.parseClassType,i=n(10).makeInner,u=n(15),n=n(517),c=i(),h=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,n,i){r.call(this,e,t,n,i),this.uid=o.getUID("ec_cpt_model")},init:function(e,t,n,i){this.mergeDefaultAndTheme(e,n)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?u.getLayoutParams(e):{},t=t.getTheme();a.merge(e,t.get(this.mainType)),a.merge(e,this.getDefaultOption()),n&&u.mergeLayoutParam(e,i,n)},mergeOption:function(e,t){a.merge(this.option,e,!0);var n=this.layoutMode;n&&u.mergeLayoutParam(this.option,e,n)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=c(this);if(!e.defaultOption){for(var t=[],n=this.constructor;n;){var i=n.prototype.defaultOption;i&&t.push(i),n=n.superClass}for(var r={},o=t.length-1;0<=o;o--)r=a.merge(r,t[o],!0);e.defaultOption=r}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});s(h,{registerWhenExtend:!0}),o.enableSubTypeDefaulter(h),o.enableTopologicalTravel(h,function(e){var t=[];a.each(h.getClassesByMainType(e),function(e){t=t.concat(e.prototype.dependencies||[])}),t=a.map(t,function(e){return l(e).main}),"dataset"!==e&&a.indexOf(t,"dataset")<=0&&t.unshift("dataset");return t}),a.mixin(h,n),e.exports=h},function(e,t,n){n(14).__DEV__;var _=n(1),i=n(25),r=n(17),w=r.formatTime,C=r.encodeHTML,S=r.addCommas,A=r.getTooltipMarker,M=n(10),o=n(30),a=n(319),s=n(198),r=n(15),l=r.getLayoutParams,u=r.mergeLayoutParam,c=n(199).createTask,r=n(61),h=r.prepareSource,d=r.getSource,T=n(80).retrieveRawValue,p=M.makeInner(),n=o.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=c({count:m,reset:g}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),h(this);n=this.getInitialData(e,n);y(n,this),this.dataTask.context.data=n,p(this).dataBeforeProcessed=n,f(this)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?l(e):{},r=this.subType;o.hasClass(r),_.merge(e,t.getTheme().get(this.subType)),_.merge(e,this.getDefaultOption()),M.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&u(e,i,n)},mergeOption:function(e,t){e=_.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=this.layoutMode;n&&u(this.option,e,n),h(this);t=this.getInitialData(e,t);y(t,this),this.dataTask.dirty(),this.dataTask.context.data=t,p(this).dataBeforeProcessed=t,f(this)},fillDataTextStyle:function(e){if(e&&!_.isTypedArray(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&M.defaultEmphasis(e[n],"label",t)},getInitialData:function(){},appendData:function(e){this.getRawData().appendData(e.data)},getData:function(e){var t=b(this);if(t){t=t.context.data;return null==e?t:t.getLinkedData(e)}return p(this).data},setData:function(e){var t,n=b(this);n&&((t=n.context).data!==e&&n.modifyOutputEnd&&n.setOutputEnd(e.count()),t.outputData=e,n!==this.dataTask&&(t.data=e)),p(this).data=e},getSource:function(){return d(this)},getRawData:function(){return p(this).dataBeforeProcessed},getBaseAxis:function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},formatTooltip:function(t,o,e,a){var s=this,n="html"===(a=a||"html")?"<br/>":"\n",l="richText"===a,u={},c=0;function i(e){return{renderMode:a,content:C(S(e)),style:u}}var r,h,d,p=this.getData(),f=p.mapDimension("defaultedTooltip",!0),m=f.length,g=this.getRawValue(t),v=_.isArray(g),y=p.getItemVisual(t,"color"),y=(y=_.isObject(y)&&y.colorStops?(y.colorStops[0]||{}).color:y)||"transparent";function x(e,t){var n,i,r=p.getDimensionInfo(t);r&&!1!==r.otherDims.tooltip&&(n=r.type,i="sub"+s.seriesIndex+"at"+c,t="string"==typeof(t=A({color:y,type:"subItem",renderMode:a,markerId:i}))?t:t.content,(e=(h?t+C(r.displayName||"-")+": ":"")+C("ordinal"===n?e+"":"time"===n?o?"":w("yyyy/MM/dd hh:mm:ss",e):S(e)))&&d.push(e),l&&(u[i]=y,++c))}var b=(1<m||v&&!m?(r=g,h=_.reduce(r,function(e,t,n){n=p.getDimensionInfo(n);return e|(n&&!1!==n.tooltip&&null!=n.displayName)},0),d=[],f.length?_.each(f,function(e){x(T(p,t,e),e)}):_.each(r,x),r=h?l?"\n":"<br/>":"",r+=d.join(r||", "),{renderMode:a,content:r,style:u}):i(m?T(p,t,f[0]):v?g[0]:g)).content,m=s.seriesIndex+"at"+c,v=A({color:y,type:"item",renderMode:a,markerId:m});u[m]=y,++c;g=p.getName(t),m=this.name,m=(m=!M.isNameSpecified(this)?"":m)?C(m)+(o?": ":n):"",v="string"==typeof v?v:v.content;return{html:o?v+m+b:m+v+(g?C(g)+": "+b:b),markers:u}},isAnimationEnabled:function(){if(i.node)return!1;var e=this.getShallow("animation");return e=e&&this.getData().count()>this.getShallow("animationThreshold")?!1:e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,n){var i=this.ecModel;return a.getColorFromPalette.call(this,e,t,n)||i.getColorFromPalette(e,t,n)},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function f(e){var t,n,i=e.name;M.isNameSpecified(e)||(e.name=(e=(t=(e=e).getRawData()).mapDimension("seriesName",!0),n=[],_.each(e,function(e){e=t.getDimensionInfo(e);e.displayName&&n.push(e.displayName)}),n.join(" ")||i))}function m(e){return e.model.getRawData().count()}function g(e){e=e.model;return e.setData(e.getRawData().cloneShallow()),v}function v(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function y(t,n){_.each(t.CHANGABLE_METHODS,function(e){t.wrapMethod(e,_.curry(x,n))})}function x(e){e=b(e);e&&e.setOutputEnd(this.count())}function b(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){t=n.currentTask;return!t||(n=t.agentStubMap)&&(t=n.get(e.uid)),t}}_.mixin(n,s),_.mixin(n,a),e.exports=n},function(e,t,n){var i=n(59);e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},function(e,t,n){"use strict";function i(e){return"[object String]"===Object.prototype.toString.call(e)}function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){return e&&e.nodeType===Node.ELEMENT_NODE}n.d(t,"e",function(){return i}),n.d(t,"d",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"a",function(){return l});var a=function(e){return e&&"[object Function]"==={}.toString.call(e)},s=function(e){return void 0===e},l=function(e){return null!=e}},function(e,t,n){"use strict";function u(){return(u=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}var c=["attrs","props","domProps"],h=["class","style","directives"],d=["on","nativeOn"],p=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=function(e){return e.reduce(function(e,t){for(var n in t)if(e[n])if(-1!==c.indexOf(n))e[n]=u({},e[n],t[n]);else if(-1!==h.indexOf(n)){var i=e[n]instanceof Array?e[n]:[e[n]],r=t[n]instanceof Array?t[n]:[t[n]];e[n]=i.concat(r)}else if(-1!==d.indexOf(n))for(var o in t[n]){var a,s;e[n][o]?(a=e[n][o]instanceof Array?e[n][o]:[e[n][o]],s=t[n][o]instanceof Array?t[n][o]:[t[n][o]],e[n][o]=a.concat(s)):e[n][o]=t[n][o]}else if("hook"==n)for(var l in t[n])e[n][l]=e[n][l]?p(e[n][l],t[n][l]):t[n][l];else e[n]=t[n];else e[n]=t[n];return e},{})}},function(e,t){var n="undefined"==typeof Float32Array?Array:Float32Array;function i(){var e=new n(6);return r(e),e}function r(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}t.create=i,t.identity=r,t.copy=o,t.mul=function(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],t=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=t,e},t.translate=function(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e},t.rotate=function(e,t,n){var i=t[0],r=t[2],o=t[4],a=t[1],s=t[3],l=t[5],t=Math.sin(n),n=Math.cos(n);return e[0]=i*n+a*t,e[1]=-i*t+a*n,e[2]=r*n+s*t,e[3]=-r*t+n*s,e[4]=n*o+t*l,e[5]=n*l-t*o,e},t.scale=function(e,t,n){var i=n[0],n=n[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e},t.invert=function(e,t){var n=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5];return(t=n*a-o*i)?(e[0]=a*(t=1/t),e[1]=-o*t,e[2]=-i*t,e[3]=n*t,e[4]=(i*s-a*r)*t,e[5]=(o*r-n*s)*t,e):null},t.clone=function(e){var t=i();return o(t,e),t}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.inherit=function(n,e){var t=a.reduce(function(e,t){return n.data[t]&&(e[s[t]||t]=n.data[t]),e},{});e&&(t.on=t.on||{},(0,r.default)(t.on,n.data.on));return t},t.emit=function(e,t){for(var n=arguments.length,i=new Array(2<n?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];t=e.listeners[t];t&&(Array.isArray(t)?t.forEach(function(e){e.apply(void 0,i)}):t.apply(void 0,i))},t.mount=function(t,n){var e=new o.default({el:document.createElement("div"),props:t.props,render:function(e){return e(t,(0,r.default)({props:this.$props},n))}});return document.body.appendChild(e.$el),e};var r=i(n(36)),o=i(n(5)),a=["ref","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],s={nativeOn:"on"}},function(m,g,v){var y;!function(){"use strict";function e(){}var u={},c=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,t="\\d\\d?",n="[^\\s]+",h=/\[([^]*?)\]/gm;function i(e,t){for(var n=[],i=0,r=e.length;i<r;i++)n.push(e[i].substr(0,t));return n}function r(i){return function(e,t,n){t=n[i].indexOf(t.charAt(0).toUpperCase()+t.substr(1).toLowerCase());~t&&(e.month=t)}}function o(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}var a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["January","February","March","April","May","June","July","August","September","October","November","December"],l=i(s,3),d=i(a,3);u.i18n={dayNamesShort:d,dayNames:a,monthNamesShort:l,monthNames:s,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][3<e%10?0:(e-e%10!=10)*e%10]}};var p={D:function(e){return e.getDay()},DD:function(e){return o(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return o(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return o(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return o(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return o(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return o(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return o(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return o(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return o(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return o(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return o(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return(e.getHours()<12?t.amPm[0]:t.amPm[1]).toUpperCase()},ZZ:function(e){e=e.getTimezoneOffset();return(0<e?"-":"+")+o(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},f={d:[t,function(e,t){e.day=t}],Do:[t+n,function(e,t){e.day=parseInt(t,10)}],M:[t,function(e,t){e.month=t-1}],yy:[t,function(e,t){var n=+(""+(new Date).getFullYear()).substr(0,2);e.year=""+(68<t?n-1:n)+t}],h:[t,function(e,t){e.hour=t}],m:[t,function(e,t){e.minute=t}],s:[t,function(e,t){e.second=t}],yyyy:["\\d{4}",function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:["\\d{3}",function(e,t){e.millisecond=t}],D:[t,e],ddd:[n,e],MMM:[n,r("monthNamesShort")],MMMM:[n,r("monthNames")],a:[n,function(e,t,n){t=t.toLowerCase();t===n.amPm[0]?e.isPm=!1:t===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n=(t+"").match(/([+-]|\d\d)/gi);n&&(t=60*n[1]+parseInt(n[2],10),e.timezoneOffset="+"===n[0]?t:-t)}]};f.dd=f.d,f.dddd=f.ddd,f.DD=f.D,f.mm=f.m,f.hh=f.H=f.HH=f.h,f.MM=f.M,f.ss=f.s,f.A=f.a,u.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},u.format=function(t,e,n){var i=n||u.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=u.masks[e]||e||u.masks.default;var r=[];return(e=(e=e.replace(h,function(e,t){return r.push(t),"@@@"})).replace(c,function(e){return e in p?p[e](t,i):e.slice(1,e.length-1)})).replace(/@@@/g,function(){return r.shift()})},u.parse=function(e,t,n){var i=n||u.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=u.masks[t]||t,1e3<e.length)return null;var r={},o=[],a=[],t=(t=(t=t.replace(h,function(e,t){return a.push(t),"@@@"})).replace(/[|\\{()[^$+*?.-]/g,"\\$&").replace(c,function(e){if(f[e]){var t=f[e];return o.push(t[1]),"("+t[0]+")"}return e})).replace(/@@@/g,function(){return a.shift()}),s=e.match(new RegExp(t,"i"));if(!s)return null;for(var l=1;l<s.length;l++)o[l-1](r,s[l],i);t=new Date;return!0===r.isPm&&null!=r.hour&&12!=+r.hour?r.hour=+r.hour+12:!1===r.isPm&&12==+r.hour&&(r.hour=0),null!=r.timezoneOffset?(r.minute=+(r.minute||0)-+r.timezoneOffset,new Date(Date.UTC(r.year||t.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0))):new Date(r.year||t.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0)},m.exports?m.exports=u:void 0===(y=function(){return u}.call(g,v,g,m))||(m.exports=y)}()},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.on=function(e,t,n,i){void 0===i&&(i=!1);r.isServer||e.addEventListener(t,n,!!o&&{capture:!1,passive:i})},t.off=function(e,t,n){r.isServer||e.removeEventListener(t,n)},t.stopPropagation=a,t.preventDefault=function(e,t){"boolean"==typeof e.cancelable&&!e.cancelable||e.preventDefault();t&&a(e)},t.supportsPassive=void 0;var r=n(9),o=!1;if(t.supportsPassive=o,!r.isServer)try{var i={};Object.defineProperty(i,"passive",{get:function(){t.supportsPassive=o=!0}}),window.addEventListener("test-passive",null,i)}catch(e){}function a(e){e.stopPropagation()}},function(e,t,n){var l=n(21),k=n(193),n=n(1),i=n.getContext,u=n.extend,D=n.retrieve2,I=n.retrieve3,r=n.trim,s={},c=0,h=5e3,O=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,d="12px sans-serif",o={};function N(e,t){var n=e+":"+(t=t||d);if(s[n])return s[n];for(var i=(e+"").split("\n"),r=0,o=0,a=i.length;o<a;o++)r=Math.max(v(i[o],t).width,r);return h<c&&(c=0,s={}),c++,s[n]=r}function p(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function f(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function a(e,t,n){var i=t.textPosition,r=t.textDistance,o=n.x,a=n.y,r=r||0,s=n.height,l=n.width,u=s/2,c="left",h="top";switch(i){case"left":o-=r,a+=u,c="right",h="middle";break;case"right":o+=r+l,a+=u,h="middle";break;case"top":o+=l/2,a-=r,c="center",h="bottom";break;case"bottom":o+=l/2,a+=s+r,c="center";break;case"inside":o+=l/2,a+=u,c="center",h="middle";break;case"insideLeft":o+=r,a+=u,h="middle";break;case"insideRight":o+=l-r,a+=u,c="right",h="middle";break;case"insideTop":o+=l/2,a+=r,c="center";break;case"insideBottom":o+=l/2,a+=s-r,c="center",h="bottom";break;case"insideTopLeft":o+=r,a+=r;break;case"insideTopRight":o+=l-r,a+=r,c="right";break;case"insideBottomLeft":o+=r,a+=s-r,h="bottom";break;case"insideBottomRight":o+=l-r,a+=s-r,c="right",h="bottom"}return(e=e||{}).x=o,e.y=a,e.textAlign=c,e.textVerticalAlign=h,e}function L(e,t,n,i,r){if(!t)return"";var o=(e+"").split("\n");r=m(t,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=g(o[a],r);return o.join("\n")}function m(e,t,n,i){(i=u({},i)).font=t;n=D(n,"...");i.maxIterations=D(i.maxIterations,2);var r=i.minChar=D(i.minChar,0);i.cnCharWidth=N("国",t);var o=i.ascCharWidth=N("a",t);i.placeholder=D(i.placeholder,"");for(var a=e=Math.max(0,e-1),s=0;s<r&&o<=a;s++)a-=o;t=N(n,t);return a<t&&(n="",t=0),a=e-t,i.ellipsis=n,i.ellipsisWidth=t,i.contentWidth=a,i.containerWidth=e,i}function g(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";if((s=N(e,i))<=n)return e;for(var o=0;;o++){if(s<=r||o>=t.maxIterations){e+=t.ellipsis;break}var a=0===o?function(e,t,n,i){for(var r=0,o=0,a=e.length;o<a&&r<t;o++){var s=e.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}(e,r,t.ascCharWidth,t.cnCharWidth):0<s?Math.floor(e.length*r/s):0,s=N(e=e.substr(0,a),i)}return e=""===e?t.placeholder:e}function P(e){return N("国",e)}function v(e,t){return o.measureText(e,t)}function y(e,t,n,i,r){null!=e&&(e+="");var o=D(i,P(t)),a=e?e.split("\n"):[],s=a.length*o,l=s,u=!0;if(n&&(l+=n[0]+n[2]),e&&r){var u=!1,c=r.outerHeight,i=r.outerWidth;if(null!=c&&c<l)e="",a=[];else if(null!=i)for(var h=m(i-(n?n[1]+n[3]:0),t,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),d=0,p=a.length;d<p;d++)a[d]=g(a[d],h)}return{lines:a,height:s,outerHeight:l,lineHeight:o,canCacheByTextString:u}}function x(e,t){var n={lines:[],width:0,height:0};if(null!=e&&(e+=""),!e)return n;for(var i,r=O.lastIndex=0;null!=(i=O.exec(e));){var o=i.index;r<o&&E(n,e.substring(r,o)),E(n,i[2],i[1]),r=O.lastIndex}r<e.length&&E(n,e.substring(r,e.length));var a=n.lines,s=0,l=0,u=[],c=t.textPadding,h=t.truncate,d=h&&h.outerWidth,p=h&&h.outerHeight;c&&(null!=d&&(d-=c[1]+c[3]),null!=p&&(p-=c[0]+c[2]));for(var f=0;f<a.length;f++){for(var m=a[f],g=0,v=0,y=0;y<m.tokens.length;y++){var x=(M=m.tokens[y]).styleName&&t.rich[M.styleName]||{},b=M.textPadding=x.textPadding,_=M.font=x.font||t.font,w=M.textHeight=D(x.textHeight,P(_));if(b&&(w+=b[0]+b[2]),M.height=w,M.lineHeight=I(x.textLineHeight,t.textLineHeight,w),M.textAlign=x&&x.textAlign||t.textAlign,M.textVerticalAlign=x&&x.textVerticalAlign||"middle",null!=p&&s+M.lineHeight>p)return{lines:[],width:0,height:0};M.textWidth=N(M.text,_);var C,S=x.textWidth,A=null==S||"auto"===S;"string"==typeof S&&"%"===S.charAt(S.length-1)?(M.percentWidth=S,u.push(M),S=0):(A&&(S=M.textWidth,(C=(C=x.textBackgroundColor)&&C.image)&&(C=k.findExistImage(C),k.isImageReady(C)&&(S=Math.max(S,C.width*w/C.height)))),S+=C=b?b[1]+b[3]:0,null!=(b=null!=d?d-v:null)&&b<S&&(!A||b<C?(M.text="",M.textWidth=S=0):(M.text=L(M.text,b-C,_,h.ellipsis,{minChar:h.minChar}),M.textWidth=N(M.text,_),S=M.textWidth+C))),v+=M.width=S,x&&(g=Math.max(g,M.lineHeight))}m.width=v,s+=m.lineHeight=g,l=Math.max(l,v)}n.outerWidth=n.width=D(t.textWidth,l),n.outerHeight=n.height=D(t.textHeight,s),c&&(n.outerWidth+=c[1]+c[3],n.outerHeight+=c[0]+c[2]);for(f=0;f<u.length;f++){var M,T=(M=u[f]).percentWidth;M.width=parseInt(T,10)/100*l}return n}function E(e,t,n){for(var i=""===t,r=t.split("\n"),o=e.lines,a=0;a<r.length;a++){var s,l,u=r[a],c={styleName:n,text:u,isLineHolder:!u&&!i};a?o.push({tokens:[c]}):1===(l=(s=(o[o.length-1]||(o[0]={tokens:[]})).tokens).length)&&s[0].isLineHolder?s[0]=c:!u&&l&&!i||s.push(c)}}o.measureText=function(e,t){var n=i();return n.font=t||d,n.measureText(e)},t.DEFAULT_FONT=d,t.$override=function(e,t){o[e]=t},t.getWidth=N,t.getBoundingRect=function(e,t,n,i,r,o,a,s){return a?function(e,t,n,i,r,o,a,s){r=x(e,{rich:a,truncate:s,font:t,textAlign:n,textPadding:r,textLineHeight:o}),o=r.outerWidth,r=r.outerHeight,n=p(0,o,n),i=f(0,r,i);return new l(n,i,o,r)}(e,t,n,i,r,o,a,s):function(e,t,n,i,r,o,a){a=y(e,t,r,o,a),t=N(e,t);r&&(t+=r[1]+r[3]);r=a.outerHeight,n=p(0,t,n),i=f(0,r,i),r=new l(n,i,t,r);return r.lineHeight=a.lineHeight,r}(e,t,n,i,r,o,s)},t.adjustTextX=p,t.adjustTextY=f,t.calculateTextPosition=a,t.adjustTextPositionOnRect=function(e,t,n){return a({},{textPosition:e,textDistance:n},t)},t.truncateText=L,t.getLineHeight=P,t.measureText=v,t.parsePlainText=y,t.parseRichText=x,t.makeFont=function(e){var t=(e.fontSize||e.fontFamily)&&[e.fontStyle,e.fontWeight,(e.fontSize||12)+"px",e.fontFamily||"sans-serif"].join(" ");return t&&r(t)||e.textFont||e.font}},function(e,t,n){var i=n(1),l=n(6),u=n(21),r=n(41).calculateTextPosition,o=l.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,t=t.height/2;e.moveTo(n,i-t),e.lineTo(n+r,i+t),e.lineTo(n-r,i+t),e.closePath()}}),a=l.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,t=t.height/2;e.moveTo(n,i-t),e.lineTo(n+r,i),e.lineTo(n,i+t),e.lineTo(n-r,i),e.closePath()}}),s=l.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),t=Math.cos(u),r=.6*a,o=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-h*r,l+s+t*r,n,i-o,n,i),e.bezierCurveTo(n,i-o,n-c+h*r,l+s+t*r,n-c,l+s),e.closePath()}}),n=l.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,t=t.y,i=i/3*2;e.moveTo(r,t),e.lineTo(r+i,t+n),e.lineTo(r,t+n/4*3),e.lineTo(r-i,t+n),e.lineTo(r,t),e.closePath()}}),o={line:l.Line,rect:l.Rect,roundRect:l.Rect,square:l.Rect,circle:l.Circle,diamond:a,pin:s,arrow:n,triangle:o},c={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){i=Math.min(n,i);r.x=e,r.y=t,r.width=i,r.height=i},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},h={};i.each(o,function(e,t){h[t]=new e});var d=l.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=r(e,t,n),e=this.shape;return e&&"pin"===e.symbolType&&"inside"===t.textPosition&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i,r=t.symbolType;"none"!==r&&(i=(i=h[r])||h[r="rect"],c[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n))}});function p(e,t){var n,i;"image"!==this.type&&(n=this.style,(i=this.shape)&&"line"===i.symbolType?n.stroke=e:this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff"):(n.fill&&(n.fill=e),n.stroke&&(n.stroke=e)),this.dirty(!1))}t.createSymbol=function(e,t,n,i,r,o,a){var s=0===e.indexOf("empty");return(r=0===(e=s?e.substr(5,1).toLowerCase()+e.substr(6):e).indexOf("image://")?l.makeImage(e.slice(8),new u(t,n,i,r),a?"center":"cover"):0===e.indexOf("path://")?l.makePath(e.slice(7),{},new u(t,n,i,r),a?"center":"cover"):new d({shape:{symbolType:e,x:t,y:n,width:i,height:r}})).__isEmptyBrush=s,r.setColor=p,r.setColor(o),r}},function(e,t,n){},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var i=n(5);t.a=new(n.n(i).a)},function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"g",function(){return r}),n.d(t,"f",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"d",function(){return u});var i={global:{},local:{}},r="ELEMENT_THEME_USER_CONFIG",o="ELEMENT_THEME_PREVIEW_CONFIG",a="ELEMENT_THEME_ACTION_DOWNLOAD",s="ELEMENT_THEME_ACTION_ALLPY_CSS",l="ELEMENT_THEME_ACTION_COMPONECT_SELECT",u="ELEMENT_THEME_USER_CONFIG_UPDATE"},function(e,t,n){n(14).__DEV__;var _=n(1),i=n(26),r=n(81),o=n(123),a=n(80),s=a.defaultDimValueGetters,l=a.DefaultDataProvider,u=n(125).summarizeDimensions,c=n(324),h=_.isObject,n="undefined",d={float:typeof Float64Array==n?Array:Float64Array,int:typeof Int32Array==n?Array:Int32Array,ordinal:Array,number:Array,time:Array},p=typeof Uint32Array==n?Array:Uint32Array,f=typeof Int32Array==n?Array:Int32Array,m=typeof Uint16Array==n?Array:Uint16Array;function M(e){return 65535<e._rawCount?p:m}var g=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],v=["_extent","_approximateExtent","_rawExtent"];function y(t,n){_.each(g.concat(n.__wrappedMethods||[]),function(e){n.hasOwnProperty(e)&&(t[e]=n[e])}),t.__wrappedMethods=n.__wrappedMethods,_.each(v,function(e){t[e]=_.clone(n[e])}),t._calculationInfo=_.extend(n._calculationInfo)}function x(e,t){e=e||["x","y"];for(var n={},i=[],r={},o=0;o<e.length;o++){var a=e[o];_.isString(a)?a=new c({name:a}):a instanceof c||(a=new c(a));var s=a.name;a.type=a.type||"float",a.coordDim||(a.coordDim=s,a.coordDimIndex=0),a.otherDims=a.otherDims||{},i.push(s),(n[s]=a).index=o,a.createInvertedIndices&&(r[s]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=t,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=u(this),this._invertedIndicesMap=r,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput}n=x.prototype;function k(e,t,n,i,r){var o=d[t.type],a=i-1,s=t.name,l=e[s][a];if(l&&l.length<n){for(var u=new o(Math.min(r-a*n,n)),c=0;c<l.length;c++)u[c]=l[c];e[s][a]=u}for(var h=i*n;h<r;h+=n)e[s].push(new o(Math.min(r-h,n)))}function D(r){var o=r._invertedIndicesMap;_.each(o,function(e,t){var n=r._dimensionInfos[t].ordinalMeta;if(n){e=o[t]=new f(n.categories.length);for(var i=0;i<e.length;i++)e[i]=-1;for(i=0;i<r._count;i++)e[r.get(t,i)]=i}})}function b(e,t,n){var i,r,o;return null!=t&&(i=e._chunkSize,r=Math.floor(n/i),t=e.dimensions[t],(r=e._storage[t][r])&&(o=r[n%i],(t=e._dimensionInfos[t].ordinalMeta)&&t.categories.length&&(o=t.categories[o]))),o}function T(e){return e}function I(e){return e<this._count&&0<=e?this._indices[e]:-1}function w(e,t){var n=e._idList[t];return n=null==(n=null==n?b(e,e._idDimIdx,t):n)?"e\0\0"+t:n}function C(e){return e=!_.isArray(e)?[e]:e}function S(e,t){var n=e.dimensions,i=new x(_.map(n,e.getDimensionInfo,e),e.hostModel);y(i,e);for(var r=i._storage={},o=e._storage,a=0;a<n.length;a++){var s=n[a];o[s]&&(0<=_.indexOf(t,s)?(r[s]=function(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=function(e){var t=e.constructor;return t===Array?e.slice():new t(e)}(e[n]);return t}(o[s]),i._rawExtent[s]=O(),i._extent[s]=null):r[s]=o[s])}return i}function O(){return[1/0,-1/0]}n.type="list",n.hasItemOption=!0,n.getDimension=function(e){return e="number"==typeof e||!isNaN(e)&&!this._dimensionInfos.hasOwnProperty(e)?this.dimensions[e]:e},n.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},n.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},n.mapDimension=function(e,t){var n=this._dimensionsSummary;if(null==t)return n.encodeFirstDimNotExtra[e];e=n.encode[e];return!0===t?(e||[]).slice():e&&e[t]},n.initData=function(e,t,n){(o.isInstance(e)||_.isArrayLike(e))&&(e=new l(e,this.dimensions.length)),this._rawData=e,this._storage={},this._indices=null,this._nameList=t||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=s[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=s.arrayRows,this._rawExtent={},this._initDataFromProvider(0,e.count()),e.pure&&(this.hasItemOption=!1)},n.getProvider=function(){return this._rawData},n.appendData=function(e){var t=this._rawData,n=this.count();t.appendData(e);e=t.count();t.persistent||(e+=n),this._initDataFromProvider(n,e)},n.appendValues=function(e,t){for(var n=this._chunkSize,i=this._storage,r=this.dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t?t.length:0),u=this._chunkCount,c=0;c<o;c++)a[v=r[c]]||(a[v]=O()),i[v]||(i[v]=[]),k(i,this._dimensionInfos[v],n,u,l),this._chunkCount=i[v].length;for(var h=new Array(o),d=s;d<l;d++){for(var p=d-s,f=Math.floor(d/n),m=d%n,g=0;g<o;g++){var v=r[g],y=this._dimValueGetterArrayRows(e[p]||h,v,p,g);i[v][f][m]=y;var x=a[v];y<x[0]&&(x[0]=y),y>x[1]&&(x[1]=y)}t&&(this._nameList[d]=t[p])}this._rawCount=this._count=l,this._extent={},D(this)},n._initDataFromProvider=function(e,t){if(!(t<=e)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},p=this._chunkCount,f=0;f<s;f++){h[A=a[f]]||(h[A]=O());var m=l[A];0===m.otherDims.itemName&&(n=this._nameDimIdx=f),0===m.otherDims.itemId&&(this._idDimIdx=f),o[A]||(o[A]=[]),k(o,m,i,p,t),this._chunkCount=o[A].length}for(var g=new Array(s),v=e;v<t;v++){for(var y,x,b,_,g=r.getItem(v,g),w=Math.floor(v/i),C=v%i,S=0;S<s;S++){var A,M=o[A=a[S]][w],T=this._dimValueGetter(g,A,v,S);M[C]=T;M=h[A];T<M[0]&&(M[0]=T),T>M[1]&&(M[1]=T)}r.pure||(b=u[v],g&&null==b&&(null!=g.name?u[v]=b=g.name:null==n||(x=o[y=a[n]][w])&&(b=x[C],(_=l[y].ordinalMeta)&&_.categories.length&&(b=_.categories[b]))),null==(_=null==g?null:g.id)&&null!=b&&(d[b]=d[b]||0,0<d[_=b]&&(_+="__ec__"+d[b]),d[b]++),null!=_&&(c[v]=_))}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent={},D(this)}},n.count=function(){return this._count},n.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,n=this._count;if(t===Array){r=new t(n);for(var i=0;i<n;i++)r[i]=e[i]}else r=new t(e.buffer,0,n)}else for(var r=new(t=M(this))(this.count()),i=0;i<r.length;i++)r[i]=i;return r},n.get=function(e,t){if(!(0<=t&&t<this._count))return NaN;var n=this._storage;if(!n[e])return NaN;t=this.getRawIndex(t);var i=Math.floor(t/this._chunkSize),t=t%this._chunkSize;return n[e][i][t]},n.getByRawIndex=function(e,t){if(!(0<=t&&t<this._rawCount))return NaN;var n=this._storage[e];if(!n)return NaN;e=Math.floor(t/this._chunkSize),t%=this._chunkSize;return n[e][t]},n._getFast=function(e,t){var n=Math.floor(t/this._chunkSize),t=t%this._chunkSize;return this._storage[e][n][t]},n.getValues=function(e,t){var n=[];_.isArray(e)||(t=e,e=this.dimensions);for(var i=0,r=e.length;i<r;i++)n.push(this.get(e[i],t));return n},n.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this.get(t[n],e)))return!1;return!0},n.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],n=O();if(!t)return n;var i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(t=this._extent[e])return t.slice();for(var r=(t=n)[0],o=t[1],a=0;a<i;a++){var s=this._getFast(e,this.getRawIndex(a));s<r&&(r=s),o<s&&(o=s)}return this._extent[e]=t=[r,o]},n.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},n.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},n.getCalculationInfo=function(e){return this._calculationInfo[e]},n.setCalculationInfo=function(e,t){h(e)?_.extend(this._calculationInfo,e):this._calculationInfo[e]=t},n.getSum=function(e){var t=0;if(this._storage[e])for(var n=0,i=this.count();n<i;n++){var r=this.get(e,n);isNaN(r)||(t+=r)}return t},n.getMedian=function(e){var n=[];this.each(e,function(e,t){isNaN(e)||n.push(e)});var t=[].concat(n).sort(function(e,t){return e-t}),e=this.count();return 0===e?0:e%2==1?t[(e-1)/2]:(t[e/2]+t[e/2-1])/2},n.rawIndexOf=function(e,t){t=(e&&this._invertedIndicesMap[e])[t];return null==t||isNaN(t)?-1:t},n.indexOfName=function(e){for(var t=0,n=this.count();t<n;t++)if(this.getName(t)===e)return t;return-1},n.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(t[o]<e)i=1+o;else{if(!(t[o]>e))return o;r=o-1}}return-1},n.indicesOfNearest=function(e,t,n){var i=[];if(!this._storage[e])return i;null==n&&(n=1/0);for(var r=1/0,o=-1,a=0,s=0,l=this.count();s<l;s++){var u=t-this.get(e,s),c=Math.abs(u);c<=n&&((c<r||c===r&&0<=u&&o<0)&&(r=c,o=u,a=0),u===o&&(i[a++]=s))}return i.length=a,i},n.getRawIndex=T,n.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];t.push(this.get(i,e))}return t},n.getName=function(e){e=this.getRawIndex(e);return this._nameList[e]||b(this,this._nameDimIdx,e)||""},n.getId=function(e){return w(this,this.getRawIndex(e))},n.each=function(e,t,n,i){"use strict";if(this._count){"function"==typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this;for(var r=(e=_.map(C(e),this.getDimension,this)).length,o=0;o<this.count();o++)switch(r){case 0:t.call(n,o);break;case 1:t.call(n,this.get(e[0],o),o);break;case 2:t.call(n,this.get(e[0],o),this.get(e[1],o),o);break;default:for(var a=0,s=[];a<r;a++)s[a]=this.get(e[a],o);s[a]=o,t.apply(n,s)}}},n.filterSelf=function(e,t,n,i){"use strict";if(this._count){"function"==typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this,e=_.map(C(e),this.getDimension,this);for(var r=this.count(),o=new(M(this))(r),a=[],s=e.length,l=0,u=e[0],c=0;c<r;c++){var h=this.getRawIndex(c);if(0===s)p=t.call(n,c);else if(1===s)var d=this._getFast(u,h),p=t.call(n,d,c);else{for(var f=0;f<s;f++)a[f]=this._getFast(u,h);a[f]=c,p=t.apply(n,a)}p&&(o[l++]=h)}return l<r&&(this._indices=o),this._count=l,this._extent={},this.getRawIndex=this._indices?I:T,this}},n.selectRange=function(e){"use strict";if(this._count){var t,n=[];for(t in e)e.hasOwnProperty(t)&&n.push(t);var i=n.length;if(i){var r=this.count(),o=new(M(this))(r),a=0,s=n[0],l=e[s][0],u=e[s][1],c=!1;if(!this._indices){var h=0;if(1===i){for(var d=this._storage[n[0]],p=0;p<this._chunkCount;p++)for(var f=d[p],m=Math.min(this._count-p*this._chunkSize,this._chunkSize),g=0;g<m;g++)(l<=(_=f[g])&&_<=u||isNaN(_))&&(o[a++]=h),h++;c=!0}else if(2===i){for(var d=this._storage[s],v=this._storage[n[1]],y=e[n[1]][0],x=e[n[1]][1],p=0;p<this._chunkCount;p++)for(var f=d[p],b=v[p],m=Math.min(this._count-p*this._chunkSize,this._chunkSize),g=0;g<m;g++){var _=f[g],w=b[g];(l<=_&&_<=u||isNaN(_))&&(y<=w&&w<=x||isNaN(w))&&(o[a++]=h),h++}c=!0}}if(!c)if(1===i)for(g=0;g<r;g++){var C=this.getRawIndex(g);(l<=(_=this._getFast(s,C))&&_<=u||isNaN(_))&&(o[a++]=C)}else for(g=0;g<r;g++){for(var S=!0,C=this.getRawIndex(g),p=0;p<i;p++){var A=n[p];((_=this._getFast(t,C))<e[A][0]||_>e[A][1])&&(S=!1)}S&&(o[a++]=this.getRawIndex(g))}return a<r&&(this._indices=o),this._count=a,this._extent={},this.getRawIndex=this._indices?I:T,this}}},n.mapArray=function(e,t,n,i){"use strict";"function"==typeof e&&(i=n,n=t,t=e,e=[]);var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n=n||i||this),r},n.map=function(e,t,n,i){"use strict";n=n||i||this;i=S(this,e=_.map(C(e),this.getDimension,this));i._indices=this._indices,i.getRawIndex=i._indices?I:T;for(var r=i._storage,o=[],a=this._chunkSize,s=e.length,l=this.count(),u=[],c=i._rawExtent,h=0;h<l;h++){for(var d=0;d<s;d++)u[d]=this.get(e[d],h);u[s]=h;var p=t&&t.apply(n,u);if(null!=p){"object"!=typeof p&&(o[0]=p,p=o);for(var f=this.getRawIndex(h),m=Math.floor(f/a),g=f%a,v=0;v<p.length;v++){var y=e[v],x=p[v],b=c[y],y=r[y];y&&(y[m][g]=x),x<b[0]&&(b[0]=x),x>b[1]&&(b[1]=x)}}}return i},n.downSample=function(e,t,n,i){for(var r=S(this,[e]),o=r._storage,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=this._chunkSize,h=r._rawExtent[e],d=new(M(this))(u),p=0,f=0;f<u;f+=s){u-f<s&&(a.length=s=u-f);for(var m=0;m<s;m++){var g=this.getRawIndex(f+m),v=Math.floor(g/c);a[m]=l[v][g%c]}var y=n(a),x=this.getRawIndex(Math.min(f+i(a,y)||0,u-1));(l[Math.floor(x/c)][x%c]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),d[p++]=x}return r._count=p,r._indices=d,r.getRawIndex=I,r},n.getItemModel=function(e){var t=this.hostModel;return new i(this.getRawDataItem(e),t,t&&t.ecModel)},n.diff=function(t){var n=this;return new r(t?t.getIndices():[],this.getIndices(),function(e){return w(t,e)},function(e){return w(n,e)})},n.getVisual=function(e){var t=this._visual;return t&&t[e]},n.setVisual=function(e,t){if(h(e))for(var n in e)e.hasOwnProperty(n)&&this.setVisual(n,e[n]);else this._visual=this._visual||{},this._visual[e]=t},n.setLayout=function(e,t){if(h(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},n.getLayout=function(e){return this._layout[e]},n.getItemLayout=function(e){return this._itemLayouts[e]},n.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?_.extend(this._itemLayouts[e]||{},t):t},n.clearItemLayouts=function(){this._itemLayouts.length=0},n.getItemVisual=function(e,t,n){e=this._itemVisuals[e],e=e&&e[t];return null!=e||n?e:this.getVisual(t)},n.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{},r=this.hasItemVisual;if(this._itemVisuals[e]=i,h(t))for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o],r[o]=!0);else i[t]=n,r[t]=!0},n.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};function A(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType}n.setItemGraphicEl=function(e,t){var n=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(A,t)),this._graphicEls[e]=t},n.getItemGraphicEl=function(e){return this._graphicEls[e]},n.eachItemGraphicEl=function(n,i){_.each(this._graphicEls,function(e,t){e&&n&&n.call(i,e,t)})},n.cloneShallow=function(e){var t;return e||(t=_.map(this.dimensions,this.getDimensionInfo,this),e=new x(t,this.hostModel)),e._storage=this._storage,y(e,this),this._indices?(t=this._indices.constructor,e._indices=new t(this._indices)):e._indices=null,e.getRawIndex=e._indices?I:T,e},n.wrapMethod=function(e,t){var n=this[e];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(_.slice(arguments)))})},n.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],n.CHANGABLE_METHODS=["filterSelf","selectRange"],e.exports=x},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var a=i(n(34)),s=n(9),l=n(37),u=i(n(165)),i=(0,s.createNamespace)("icon"),n=i[0],c=i[1];var h={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function r(e,t,n,i){var r,o=(r=t.name)&&h[r]||r,r=!!(r=o)&&-1!==r.indexOf("/");return e(t.tag,(0,a.default)([{class:[t.classPrefix,r?"":t.classPrefix+"-"+o],style:{color:t.color,fontSize:(0,s.addUnit)(t.size)}},(0,l.inherit)(i,!0)]),[n.default&&n.default(),r&&e("img",{class:c("image"),attrs:{src:o}}),e(u.default,{attrs:{dot:t.dot,info:null!=(e=t.badge)?e:t.info}})])}r.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:c()}};n=n(r);t.default=n},function(e,t,n){"use strict";var i={name:"TisPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(e){e||(this.quickprevIconClass="el-icon-more")},showNextMore:function(e){e||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(e){var t,n,i,r=e.target;"UL"===r.tagName||this.disabled||(t=Number(e.target.textContent),n=this.pageCount,i=this.currentPage,e=this.pagerCount-2,-1!==r.className.indexOf("more")&&(-1!==r.className.indexOf("quickprev")?t=i-e:-1!==r.className.indexOf("quicknext")&&(t=i+e)),isNaN(t)||n<(t=t<1?1:t)&&(t=n),t!==i&&this.$emit("change",t))},onMouseenter:function(e){this.disabled||("left"===e?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var e=this.pagerCount,t=(e-1)/2,n=Number(this.currentPage),i=Number(this.pageCount),r=!1,o=!1;e<i&&(e-t<n&&(r=!0),n<i-t&&(o=!0));var a=[];if(r&&!o)for(var s=i-(e-2);s<i;s++)a.push(s);else if(!r&&o)for(var l=2;l<e;l++)a.push(l);else if(r&&o)for(var u=Math.floor(e/2)-1,c=n-u;c<=n+u;c++)a.push(c);else for(var h=2;h<i;h++)a.push(h);return this.showPrevMore=r,this.showNextMore=o,a}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},r=n(0),o=Object(r.a)(i,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"el-pager",on:{click:t.onPagerClick}},[0<t.pageCount?n("li",{staticClass:"number",class:{active:1===t.currentPage,disabled:t.disabled}},[t._v("1")]):t._e(),t.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[t.quickprevIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter("left")},mouseleave:function(e){t.quickprevIconClass="el-icon-more"}}}):t._e(),t._l(t.pagers,function(e){return n("li",{key:e,staticClass:"number",class:{active:t.currentPage===e,disabled:t.disabled}},[t._v(t._s(e))])}),t.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[t.quicknextIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter("right")},mouseleave:function(e){t.quicknextIconClass="el-icon-more"}}}):t._e(),1<t.pageCount?n("li",{staticClass:"number",class:{active:t.currentPage===t.pageCount,disabled:t.disabled}},[t._v(t._s(t.pageCount))]):t._e()],2)},[],!1,null,null,null).exports,a=n(7),s=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}},l=n(11),u=n(19),c=n(13),h={name:"TisSelectDropdown",componentName:"TisSelectDropdown",mixins:[c.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",function(){e.$parent.visible&&e.updatePopper()}),this.$on("destroyPopper",this.destroyPopper)}},d=Object(r.a)(h,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)},[],!1,null,null,null).exports,x=n(4),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f={mixins:[a.a],name:"TisOption",componentName:"TisOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&0<this.select.multipleLimit)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("TisSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,n=n.valueKey;this.created||i||n&&"object"===(void 0===e?"undefined":p(e))&&"object"===(void 0===t?"undefined":p(t))&&e[n]===t[n]||this.dispatch("TisSelect","setSelected")}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(x.i)(e,n)===Object(x.i)(t,n)}return e===t},contains:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some(function(e){return Object(x.i)(e,n)===Object(x.i)(t,n)})}return e&&-1<e.indexOf(t)},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("TisSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(x.f)(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,e=e.multiple?t:[t],t=this.select.cachedOptions.indexOf(this),e=e.indexOf(this);-1<t&&e<0&&this.select.cachedOptions.splice(t,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},m=Object(r.a)(f,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[e("span",[t._v(t._s(t.currentLabel))])])],2)},[],!1,null,null,null).exports,g={name:"TisTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,i=this.hit,r=this.effect,i=e("span",{class:["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?i:e("transition",{attrs:{name:"el-zoom-in-center"}},[i])}},v=Object(r.a)(g,void 0,void 0,!1,null,null,null).exports;v.install=function(e){e.component(v.name,v)};function y(e){for(var t,n=e,i=Array.isArray(n),r=0,n=i?n:n[Symbol.iterator]();;){if(i){if(r>=n.length)break;t=n[r++]}else{if((r=n.next()).done)break;t=r.value}var o=t.target.__resizeListeners__||[];o.length&&o.forEach(function(e){e()})}}function b(e,t){S||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new C.a(y),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function _(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}var w=v,C=n(437),S="undefined"==typeof window,A=n(113),M=n(2),T={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};var k={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return T[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:(t=(e={size:t,move:n,bar:i}).move,n=e.size,i=e.bar,e={},t="translate"+i.axis+"("+t+"%)",e[i.size]=n,e.transform=t,e.msTransform=t,e.webkitTransform=t,e)})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){e=100*(Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=e*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(M.g)(document,"mousemove",this.mouseMoveDocumentHandler),Object(M.g)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){var t;!1===this.cursorDown||(t=this[this.bar.axis])&&(t=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client])-(this.$refs.thumb[this.bar.offset]-t))/this.$el[this.bar.offset],this.wrap[this.bar.scroll]=t*this.wrap[this.bar.scrollSize]/100)},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(M.f)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(M.f)(document,"mouseup",this.mouseUpDocumentHandler)}},D={name:"TisScrollbar",components:{Bar:k},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=Object(A.a)(),n=this.wrapStyle;t&&(r="margin-bottom: "+(i="-"+t+"px")+"; margin-right: "+i+";",Array.isArray(this.wrapStyle)?(n=Object(x.s)(this.wrapStyle)).marginRight=n.marginBottom=i:"string"==typeof this.wrapStyle?n+=r:n=r);var i=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),r=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[i]]),t=void 0,t=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[i]])]:[r,e(k,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(k,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})];return e("div",{class:"el-scrollbar"},t)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e,t,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),this.noresize||b(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||this.noresize||_(this.$refs.resize,this.update)},install:function(e){e.component(D.name,D)}},I=D,O=n(32),N=n.n(O),L=n(28),P=n(18),E=n(5),H=n.n(E);function z(e,t){if(!H.a.prototype.$isServer)if(t){for(var n=[],i=t.offsetParent;i&&e!==i&&e.contains(i);)n.push(i),i=i.offsetParent;var r=t.offsetTop+n.reduce(function(e,t){return e+t.offsetTop},0),o=r+t.offsetHeight,a=e.scrollTop,t=a+e.clientHeight;r<a?e.scrollTop=r:t<o&&(e.scrollTop=o-e.clientHeight)}else e.scrollTop=0}var R=n(58),j={mixins:[a.a,l.a,s("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter(function(e){return e.visible}).every(function(e){return e.disabled})}},watch:{hoverIndex:function(e){var t=this;"number"==typeof e&&-1<e&&(this.hoverOption=this.options[e]||{}),this.options.forEach(function(e){e.hover=t.hoverOption===e})}},methods:{navigateOptions:function(e){var t,n=this;this.visible?0!==this.options.length&&0!==this.filteredOptionsCount&&(this.optionsAllDisabled||("next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1)),!0!==(t=this.options[this.hoverIndex]).disabled&&!0!==t.groupDisabled&&t.visible||this.navigateOptions(e),this.$nextTick(function(){return n.scrollToOption(n.hoverOption)}))):this.visible=!0}}}],name:"TisSelect",componentName:"TisSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(x.o)()&&!Object(x.k)()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&0<this.value.length:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&e},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&0<this.options.length&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var t=this,e=this.options.filter(function(e){return!e.created}).some(function(e){return e.currentLabel===t.query});return this.filterable&&this.allowCreate&&""!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return-1<["small","mini"].indexOf(this.selectSize)?"mini":"small"}},components:{TisInput:u.a,TisSelectMenu:d,TisOption:m,TisTag:w,TisScrollbar:I},directives:{Clickoutside:L.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,default:function(){return Object(P.b)("el.select.placeholder")}},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick(function(){e.resetInputHeight()})},placeholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&0<e.length||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(x.t)(e,t)||this.dispatch("TisFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("TisSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("TisOption","queryChange",""),this.broadcast("TisOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("TisSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick(function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)}),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e,t=this;this.$isServer||(this.$nextTick(function(){t.broadcast("TisSelectDropdown","updatePopper")}),this.multiple&&this.resetInputHeight(),e=this.$el.querySelectorAll("input"),-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption())}},methods:{handleComposition:function(e){var t=this,n=e.target.value;"compositionend"===e.type?(this.isOnComposition=!1,this.$nextTick(function(e){return t.handleQueryChange(n)})):(e=n[n.length-1]||"",this.isOnComposition=!Object(R.b)(e))},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick(function(){t.visible&&t.broadcast("TisSelectDropdown","updatePopper")}),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick(function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()}),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):("function"==typeof this.filterMethod?this.filterMethod(e):(this.filteredOptionsCount=this.optionsCount,this.broadcast("TisOption","queryChange",e)),this.broadcast("TisOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){e=(Array.isArray(e)&&e[0]?e[0]:e).$el;this.$refs.popper&&e&&z(this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap"),e),this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick(function(){return e.scrollToOption(e.selected)})},emitChange:function(e){Object(x.t)(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;0<=o;o--){var a=this.cachedOptions[o];if(n?Object(x.i)(a.value,this.valueKey)===Object(x.i)(e,this.valueKey):a.value===e){t=a;break}}if(t)return t;r={value:e,currentLabel:n||i||r?"":e};return this.multiple&&(r.hitState=!1),r},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach(function(e){n.push(t.getOption(e))}),this.selected=n,this.$nextTick(function(){t.resetInputHeight()})},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout(function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)},50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?t.hitState=e:(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){e.target.value.length<=0&&!this.toggleLastOptionHitState()&&((e=this.value.slice()).pop(),this.$emit("input",e),this.emitChange(e))},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var i=this;this.collapseTags&&!this.filterable||this.$nextTick(function(){var e,t,n;i.$refs.reference&&(n=i.$refs.reference.$el.childNodes,e=[].filter.call(n,function(e){return"INPUT"===e.tagName})[0],t=i.$refs.tags,n=i.initialInputHeight||40,e.style.height=0===i.selected.length?n+"px":Math.max(t?t.clientHeight+(t.clientHeight>n?6:0):0,n)+"px",i.visible&&!1!==i.emptyText&&i.broadcast("TisSelectDropdown","updatePopper"))})},resetHoverIndex:function(){var t=this;setTimeout(function(){t.multiple?0<t.selected.length?t.hoverIndex=Math.min.apply(null,t.selected.map(function(e){return t.options.indexOf(e)})):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)},300)},handleOptionSelect:function(e,t){var n,i,r=this;this.multiple?(n=(this.value||[]).slice(),-1<(i=this.getValueIndex(n,e.value))?n.splice(i,1):(this.multipleLimit<=0||n.length<this.multipleLimit)&&n.push(e.value),this.$emit("input",n),this.emitChange(n),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()):(this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1),this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick(function(){r.scrollToOption(e)})},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1];if("[object object]"!==Object.prototype.toString.call(n).toLowerCase())return e.indexOf(n);var i=this.valueKey,r=-1;return e.some(function(e,t){return Object(x.i)(e,i)===Object(x.i)(n,i)&&(r=t,!0)}),r},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();e=this.multiple?[]:"";this.$emit("input",e),this.emitChange(e),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n,i=this.selected.indexOf(t);-1<i&&!this.selectDisabled&&((n=this.value.slice()).splice(i,1),this.$emit("input",n),this.emitChange(n),this.$emit("remove-tag",t.value)),e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){-1<e&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){for(var e=!(this.hoverIndex=-1),t=this.options.length-1;0<=t;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(x.i)(e.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.placeholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=N()(this.debounce,function(){t.onInputChange()}),this.debouncedQueryChange=N()(this.debounce,function(e){t.handleQueryChange(e.target.value)}),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&0<this.value.length&&(this.currentPlaceholder=""),b(this.$el,this.handleResize);var t,n=this.$refs.reference;n&&n.$el&&(t=n.$el.querySelector("input"),this.initialInputHeight=t.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]),this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick(function(){n&&n.$el&&(e.inputWidth=n.$el.getBoundingClientRect().width)}),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&_(this.$el,this.handleResize)}},B=Object(r.a)(j,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:n.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[n.selectSize?"el-select--"+n.selectSize:""],on:{click:function(e){return e.stopPropagation(),n.toggleMenu(e)}}},[n.multiple?i("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":n.inputWidth-32+"px",width:"100%"}},[n.collapseTags&&n.selected.length?i("span",[i("tis-tag",{attrs:{closable:!n.selectDisabled,size:n.collapseTagSize,hit:n.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(e){n.deleteTag(e,n.selected[0])}}},[i("span",{staticClass:"el-select__tags-text"},[n._v(n._s(n.selected[0].currentLabel))])]),1<n.selected.length?i("tis-tag",{attrs:{closable:!1,size:n.collapseTagSize,type:"info","disable-transitions":""}},[i("span",{staticClass:"el-select__tags-text"},[n._v("+ "+n._s(n.selected.length-1))])]):n._e()],1):n._e(),n.collapseTags?n._e():i("transition-group",{on:{"after-leave":n.resetInputHeight}},n._l(n.selected,function(t){return i("tis-tag",{key:n.getValueKey(t),attrs:{closable:!n.selectDisabled,size:n.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(e){n.deleteTag(e,t)}}},[i("span",{staticClass:"el-select__tags-text"},[n._v(n._s(t.currentLabel))])])}),1),n.filterable?i("input",{directives:[{name:"model",rawName:"v-model",value:n.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[n.selectSize?"is-"+n.selectSize:""],style:{"flex-grow":"1",width:n.inputLength/(n.inputWidth-32)+"%","max-width":n.inputWidth-42+"px"},attrs:{type:"text",disabled:n.selectDisabled,autocomplete:n.autoComplete||n.autocomplete},domProps:{value:n.query},on:{focus:n.handleFocus,blur:function(e){n.softFocus=!1},keyup:n.managePlaceholder,keydown:[n.resetInputState,function(e){if(!("button"in e)&&n._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),n.navigateOptions("next")},function(e){if(!("button"in e)&&n._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),n.navigateOptions("prev")},function(e){return"button"in e||!n._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),n.selectOption(e)):null},function(e){if(!("button"in e)&&n._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),n.visible=!1},function(e){return"button"in e||!n._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?n.deletePrevTag(e):null},function(e){if(!("button"in e)&&n._k(e.keyCode,"tab",9,e.key,"Tab"))return null;n.visible=!1}],compositionstart:n.handleComposition,compositionupdate:n.handleComposition,compositionend:n.handleComposition,input:[function(e){e.target.composing||(n.query=e.target.value)},n.debouncedQueryChange]}}):n._e()],1):n._e(),i("tis-input",{ref:"reference",class:{"is-focus":n.visible},attrs:{type:"text",placeholder:n.currentPlaceholder,name:n.name,id:n.id,autocomplete:n.autoComplete||n.autocomplete,size:n.selectSize,disabled:n.selectDisabled,readonly:n.readonly,"validate-event":!1,tabindex:n.multiple&&n.filterable?"-1":null},on:{focus:n.handleFocus,blur:n.handleBlur},nativeOn:{keyup:function(e){return n.debouncedOnInputChange(e)},keydown:[function(e){if(!("button"in e)&&n._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.stopPropagation(),e.preventDefault(),n.navigateOptions("next")},function(e){if(!("button"in e)&&n._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.stopPropagation(),e.preventDefault(),n.navigateOptions("prev")},function(e){return"button"in e||!n._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),n.selectOption(e)):null},function(e){if(!("button"in e)&&n._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),n.visible=!1},function(e){if(!("button"in e)&&n._k(e.keyCode,"tab",9,e.key,"Tab"))return null;n.visible=!1}],paste:function(e){return n.debouncedOnInputChange(e)},mouseenter:function(e){n.inputHovering=!0},mouseleave:function(e){n.inputHovering=!1}},model:{value:n.selectedLabel,callback:function(e){n.selectedLabel=e},expression:"selectedLabel"}},[n.$slots.prefix?i("template",{slot:"prefix"},[n._t("prefix")],2):n._e(),i("template",{slot:"suffix"},[i("i",{directives:[{name:"show",rawName:"v-show",value:!n.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+n.iconClass]}),n.showClose?i("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:n.handleClearClick}}):n._e()])],2),i("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":n.handleMenuEnter,"after-leave":n.doDestroy}},[i("tis-select-menu",{directives:[{name:"show",rawName:"v-show",value:n.visible&&!1!==n.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":n.popperAppendToBody}},[i("tis-scrollbar",{directives:[{name:"show",rawName:"v-show",value:0<n.options.length&&!n.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!n.allowCreate&&n.query&&0===n.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[n.showNewOption?i("tis-option",{attrs:{value:n.query,created:""}}):n._e(),n._t("default")],2),n.emptyText&&(!n.allowCreate||n.loading||n.allowCreate&&0===n.options.length)?[n.$slots.empty?n._t("empty"):i("p",{staticClass:"el-select-dropdown__empty"},[n._v("\n "+n._s(n.emptyText)+"\n ")])]:n._e()],2)],1)],1)},[],!1,null,null,null).exports;B.install=function(e){e.component(B.name,B)};var F=B;m.install=function(e){e.component(m.name,m)};var V=m,$={name:"TisPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(e){return(0|e)===e&&4<e&&e<22&&e%2==1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t=this.layout;if(!t)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),i={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default||""]),total:e("total")},t=t.split(",").map(function(e){return e.trim()}),r=e("div",{class:"el-pagination__rightwrapper"}),o=!1;return n.children=n.children||[],r.children=r.children||[],t.forEach(function(e){"->"!==e?(o?r:n).children.push(i[e]):o=!0}),o&&n.children.unshift(r),n},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[l.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(x.t)(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=-1<e.indexOf(this.$parent.pageSize)?this.$parent.pageSize:this.pageSizes[0])}}},render:function(t){var n=this;return t("span",{class:"el-pagination__sizes"},[t("tis-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map(function(e){return t("tis-option",{attrs:{value:e,label:e+n.t("el.pagination.pagesize")}})})])])},components:{ElSelect:F,ElOption:V},methods:{handleChange:function(e){e!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=e=parseInt(e,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",e),this.$parent.$emit("size-change",e))}}},Jumper:{mixins:[l.a],components:{ElInput:u.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(e){var t=e.keyCode,e=e.target;13===t&&this.handleChange(e.value)},handleInput:function(e){this.userInput=e},handleChange:function(e){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(e),this.$parent.emitChange(),this.userInput=null}},render:function(e){return e("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),e("tis-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[l.a],render:function(e){return"number"==typeof this.$parent.total?e("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:o},methods:{handleCurrentChange:function(e){this.internalCurrentPage=this.getValidCurrentPage(e),this.userChangePageSize=!0,this.emitChange()},prev:function(){var e;this.disabled||(e=this.internalCurrentPage-1,this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("prev-click",this.internalCurrentPage),this.emitChange())},next:function(){var e;this.disabled||(e=this.internalCurrentPage+1,this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("next-click",this.internalCurrentPage),this.emitChange())},getValidCurrentPage:function(e){e=parseInt(e,10);var t=void 0;return"number"==typeof this.internalPageCount?e<1?t=1:e>this.internalPageCount&&(t=this.internalPageCount):(isNaN(e)||e<1)&&(t=1),void 0===(t=void 0===t&&isNaN(e)||0===t?1:t)?e:t},emitChange:function(){var e=this;this.$nextTick(function(){e.internalCurrentPage===e.lastEmittedPage&&!e.userChangePageSize||(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)})}},computed:{internalPageCount:function(){return"number"==typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"==typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;0<e&&0===t?this.internalCurrentPage=1:e<t&&(this.internalCurrentPage=0===e?1:e,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(e){e.component($.name,$)}},Y=$,W=n(29),X=n(23),G={name:"TisDialog",mixins:[W.b,a.a,X.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick(function(){t.$refs.dialog.scrollTop=0}),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick(function(){t.key++}))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},U=Object(r.a)(G,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[e("div",{key:t.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":t.fullscreen,"el-dialog--center":t.center},t.customClass],style:t.style,attrs:{role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"}},[e("div",{staticClass:"el-dialog__header"},[t._t("title",[e("span",{staticClass:"el-dialog__title"},[t._v(t._s(t.title))])]),t.showClose?e("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:t.handleClose}},[e("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):t._e()],2),t.rendered?e("div",{staticClass:"el-dialog__body"},[t._t("default")],2):t._e(),t.$slots.footer?e("div",{staticClass:"el-dialog__footer"},[t._t("footer")],2):t._e()])])])},[],!1,null,null,null).exports;U.install=function(e){e.component(U.name,U)};var q=U,Z={components:{ElScrollbar:I},mixins:[c.a,a.a],componentName:"TisAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var t=this;this.$nextTick(function(e){t.popperJS&&t.updatePopper()})},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var n=this;this.$on("visible",function(e,t){n.dropdownWidth=t+"px",n.showPopper=e})}},K=Object(r.a)(Z,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[t("tis-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?t("li",[t("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])},[],!1,null,null,null).exports,Q={name:"TisAutocomplete",mixins:[a.a,s("input"),X.a],inheritAttrs:!1,componentName:"TisAutocomplete",components:{TisInput:u.a,TisAutocompleteSuggestions:K},directives:{Clickoutside:L.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions;return(Array.isArray(e)&&0<e.length||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(x.g)()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("TisAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))}))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&0<=this.highlightedIndex&&this.highlightedIndex<this.suggestions.length?(e.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick(function(e){t.suggestions=[],t.highlightedIndex=-1}))},select:function(e){var t=this;this.$emit("input",e[this.valueKey]),this.$emit("select",e),this.$nextTick(function(e){t.suggestions=[],t.highlightedIndex=-1})},highlight:function(e){var t,n,i,r;this.suggestionVisible&&!this.loading&&(e<0?this.highlightedIndex=-1:(e>=this.suggestions.length&&(e=this.suggestions.length-1),n=(t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap")).querySelectorAll(".el-autocomplete-suggestion__list li")[e],i=t.scrollTop,(r=n.offsetTop)+n.scrollHeight>i+t.clientHeight&&(t.scrollTop+=n.scrollHeight),r<i&&(t.scrollTop-=n.scrollHeight),this.highlightedIndex=e,this.getInput().setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)))},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var t=this;this.debouncedGetData=N()(this.debounce,this.getData),this.$on("item-click",function(e){t.select(e)});var e=this.getInput();e.setAttribute("role","textbox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-controls","id"),e.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},J=Object(r.a)(Q,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:n.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":n.suggestionVisible,"aria-owns":n.id}},[i("tis-input",n._b({ref:"input",on:{input:n.handleInput,change:n.handleChange,focus:n.handleFocus,blur:n.handleBlur,clear:n.handleClear},nativeOn:{keydown:[function(e){if(!("button"in e)&&n._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),n.highlight(n.highlightedIndex-1)},function(e){if(!("button"in e)&&n._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),n.highlight(n.highlightedIndex+1)},function(e){return"button"in e||!n._k(e.keyCode,"enter",13,e.key,"Enter")?n.handleKeyEnter(e):null},function(e){return"button"in e||!n._k(e.keyCode,"tab",9,e.key,"Tab")?n.close(e):null}]}},"tis-input",[n.$props,n.$attrs],!1),[n.$slots.prepend?i("template",{slot:"prepend"},[n._t("prepend")],2):n._e(),n.$slots.append?i("template",{slot:"append"},[n._t("append")],2):n._e(),n.$slots.prefix?i("template",{slot:"prefix"},[n._t("prefix")],2):n._e(),n.$slots.suffix?i("template",{slot:"suffix"},[n._t("suffix")],2):n._e()],2),i("tis-autocomplete-suggestions",{ref:"suggestions",class:[n.popperClass||""],attrs:{"visible-arrow":"","popper-options":n.popperOptions,"append-to-body":n.popperAppendToBody,placement:n.placement,id:n.id}},n._l(n.suggestions,function(t,e){return i("li",{key:e,class:{highlighted:n.highlightedIndex===e},attrs:{id:n.id+"-item-"+e,role:"option","aria-selected":n.highlightedIndex===e},on:{click:function(e){n.select(t)}}},[n._t("default",[n._v("\n "+n._s(t[n.valueKey])+"\n ")],{item:t})],2)}),0)],1)},[],!1,null,null,null).exports;J.install=function(e){e.component(J.name,J)};var ee=J,te=n(27),ne={name:"TisButtonGroup"},ie=Object(r.a)(ne,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-button-group"},[this._t("default")],2)},[],!1,null,null,null).exports;ie.install=function(e){e.component(ie.name,ie)};var re=ie,oe={name:"TisDropdown",componentName:"TisDropdown",mixins:[a.a,X.a],directives:{Clickoutside:L.a},components:{TisButton:te.a,TisButtonGroup:re},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(x.g)()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(e){this.broadcast("TisDropdownMenu","visible",e),this.$emit("visible-change",e)},focusing:function(e){var t=this.$el.querySelector(".el-dropdown-selfdefine");t&&(e?t.className+=" focusing":t.className=t.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var e=this;this.triggerElm.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.visible=!0},"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.triggerElm.disabled||(this.removeTabindex(),0<=this.tabindex&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.visible=!1},"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.triggerElm.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;-1<[38,40].indexOf(t)?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():-1<[9,27].indexOf(t)&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,i=this.menuItemsArray.indexOf(n),r=this.menuItemsArray.length-1,o=void 0;-1<[38,40].indexOf(t)?(o=38===t?0!==i?i-1:0:i<r?i+1:r,this.removeTabindex(),this.resetTabindex(this.menuItems[o]),this.menuItems[o].focus(),e.preventDefault(),e.stopPropagation()):13===t?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):-1<[9,27].indexOf(t)&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach(function(e){e.setAttribute("tabindex","-1")})},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,i=this.hide,r=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),l.addEventListener("keydown",s,!0),o||(this.triggerElm.addEventListener("focus",function(){e.focusing=!0}),this.triggerElm.addEventListener("blur",function(){e.focusing=!1}),this.triggerElm.addEventListener("click",function(){e.focusing=!1})),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",i),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",i)):"click"===t&&this.triggerElm.addEventListener("click",r)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,i=this.splitButton,r=this.type,o=this.dropdownSize,o=i?e("tis-button-group",[e("tis-button",{attrs:{type:r,size:o},nativeOn:{click:function(e){t.$emit("click",e),n()}}},[this.$slots.default]),e("tis-button",{ref:"trigger",attrs:{type:r,size:o},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]):this.$slots.default;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}]},[o,this.$slots.dropdown])}},ae=Object(r.a)(oe,void 0,void 0,!1,null,null,null).exports;ae.install=function(e){e.component(ae.name,ae)};var se=ae,le={name:"TisDropdownMenu",componentName:"TisDropdownMenu",mixins:[c.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var t=this;this.$on("updatePopper",function(){t.showPopper&&t.updatePopper()}),this.$on("visible",function(e){t.showPopper=e})},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},ue=Object(r.a)(le,function(){var e=this.$createElement,e=this._self._c||e;return e("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":this.doDestroy}},[e("ul",{directives:[{name:"show",rawName:"v-show",value:this.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[this.size&&"el-dropdown-menu--"+this.size]},[this._t("default")],2)])},[],!1,null,null,null).exports;ue.install=function(e){e.component(ue.name,ue)};var ce=ue,he={name:"TisDropdownItem",mixins:[a.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("TisDropdown","menu-item-click",[this.command,this])}}},de=Object(r.a)(he,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?t("i",{class:e.icon}):e._e(),e._t("default")],2)},[],!1,null,null,null).exports;de.install=function(e){e.component(de.name,de)};var pe=de,fe=fe||{};fe.Utils=fe.Utils||{},fe.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(fe.Utils.attemptFocus(n)||fe.Utils.focusFirstDescendant(n))return!0}return!1},fe.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;0<=t;t--){var n=e.childNodes[t];if(fe.Utils.attemptFocus(n)||fe.Utils.focusLastDescendant(n))return!0}return!1},fe.Utils.attemptFocus=function(e){if(!fe.Utils.isFocusable(e))return!1;fe.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(e){}return fe.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},fe.Utils.isFocusable=function(e){if(0<e.tabIndex||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},fe.Utils.triggerEvent=function(e,t){for(var n=void 0,n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents",n=document.createEvent(n),i=arguments.length,r=Array(2<i?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return n.initEvent.apply(n,[t].concat(r)),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent("on"+t,n),e},fe.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var me=fe.Utils,ge=function(e,t){this.domNode=t,this.parent=e,this.subMenuItems=[],this.subIndex=0,this.init()};ge.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},ge.prototype.gotoSubIndex=function(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e},ge.prototype.addListeners=function(){var n=this,i=me.keys,r=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,function(e){e.addEventListener("keydown",function(e){var t=!1;switch(e.keyCode){case i.down:n.gotoSubIndex(n.subIndex+1),t=!0;break;case i.up:n.gotoSubIndex(n.subIndex-1),t=!0;break;case i.tab:me.triggerEvent(r,"mouseleave");break;case i.enter:case i.space:t=!0,e.currentTarget.click()}return t&&(e.preventDefault(),e.stopPropagation()),!1})})};var ve=ge,ye=function(e){this.domNode=e,this.submenu=null,this.init()};ye.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var e=this.domNode.querySelector(".el-menu");e&&(this.submenu=new ve(this,e)),this.addListeners()},ye.prototype.addListeners=function(){var n=this,i=me.keys;this.domNode.addEventListener("keydown",function(e){var t=!1;switch(e.keyCode){case i.down:me.triggerEvent(e.currentTarget,"mouseenter"),n.submenu&&n.submenu.gotoSubIndex(0),t=!0;break;case i.up:me.triggerEvent(e.currentTarget,"mouseenter"),n.submenu&&n.submenu.gotoSubIndex(n.submenu.subMenuItems.length-1),t=!0;break;case i.tab:me.triggerEvent(e.currentTarget,"mouseleave");break;case i.enter:case i.space:t=!0,e.currentTarget.click()}t&&e.preventDefault()})};var xe=ye,be=function(e){this.domNode=e,this.init()};be.prototype.init=function(){var e=this.domNode.childNodes;[].filter.call(e,function(e){return 1===e.nodeType}).forEach(function(e){new xe(e)})};var _e=be,we={name:"TisMenu",render:function(e){var t=e("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?e("tis-menu-collapse-transition",[t]):t},componentName:"TisMenu",mixins:[a.a,X.a],provide:function(){return{rootMenu:this}},components:{"tis-menu-collapse-transition":{functional:!0,render:function(e,t){return e("transition",{props:{mode:"out-in"},on:{beforeEnter:function(e){e.style.opacity=.2},enter:function(e){Object(M.a)(e,"el-opacity-transition"),e.style.opacity=1},afterEnter:function(e){Object(M.i)(e,"el-opacity-transition"),e.style.opacity=""},beforeLeave:function(e){e.dataset||(e.dataset={}),Object(M.d)(e,"el-menu--collapse")?(Object(M.i)(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(M.a)(e,"el-menu--collapse")):(Object(M.a)(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(M.i)(e,"el-menu--collapse")),e.style.width=e.scrollWidth+"px",e.style.overflow="hidden"},leave:function(e){Object(M.a)(e,"horizontal-collapse-transition"),e.style.width=e.dataset.scrollWidth+"px"}}},t.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(e){this.items[e]||(this.activeIndex=null),this.updateActiveIndex(e)},defaultOpeneds:function(e){this.collapse||(this.openedMenus=e)},collapse:function(e){e&&(this.openedMenus=[]),this.broadcast("TisSubmenu","toggle-collapse",e)}},methods:{updateActiveIndex:function(e){e=this.items[e]||this.items[this.activeIndex]||this.items[this.defaultActive];e?(this.activeIndex=e.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(e){if(e=e.replace("#",""),/^[0-9a-fA-F]{3}$/.test(e)){e=e.split("");for(var t=2;0<=t;t--)e.splice(t,0,e[t]);e=e.join("")}return/^[0-9a-fA-F]{6}$/.test(e)?{red:parseInt(e.slice(0,2),16),green:parseInt(e.slice(2,4),16),blue:parseInt(e.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(e,t){var n=this.getColorChannels(e),i=n.red,e=n.green,n=n.blue;return 0<t?(i*=1-t,e*=1-t,n*=1-t):(i+=(255-i)*t,e+=(255-e)*t,n+=(255-n)*t),"rgb("+Math.round(i)+", "+Math.round(e)+", "+Math.round(n)+")"},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},openMenu:function(e,t){var n=this.openedMenus;-1===n.indexOf(e)&&(this.uniqueOpened&&(this.openedMenus=n.filter(function(e){return-1!==t.indexOf(e)})),this.openedMenus.push(e))},closeMenu:function(e){e=this.openedMenus.indexOf(e);-1!==e&&this.openedMenus.splice(e,1)},handleSubmenuClick:function(e){var t=e.index,e=e.indexPath;-1!==this.openedMenus.indexOf(t)?(this.closeMenu(t),this.$emit("close",t,e)):(this.openMenu(t,e),this.$emit("open",t,e))},handleItemClick:function(e){var t=this,n=e.index,i=e.indexPath,r=this.activeIndex,o=null!==e.index;o&&(this.activeIndex=e.index),this.$emit("select",n,i,e),"horizontal"!==this.mode&&!this.collapse||(this.openedMenus=[]),this.router&&o&&this.routeToItem(e,function(e){t.activeIndex=r,e&&"NavigationDuplicated"!==e.name&&console.error(e)})},initOpenedMenu:function(){var n=this,e=this.activeIndex,e=this.items[e];e&&"horizontal"!==this.mode&&!this.collapse&&e.indexPath.forEach(function(e){var t=n.submenus[e];t&&n.openMenu(e,t.indexPath)})},routeToItem:function(e,t){e=e.route||e.index;try{this.$router.push(e,function(){},t)}catch(e){console.error(e)}},open:function(e){var t=this,n=this.submenus[e.toString()].indexPath;n.forEach(function(e){return t.openMenu(e,n)})},close:function(e){this.closeMenu(e)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new _e(this.$el),this.$watch("items",this.updateActiveIndex)}},Ce=Object(r.a)(we,void 0,void 0,!1,null,null,null).exports;Ce.install=function(e){e.component(Ce.name,Ce)};var Se=Ce;var Ae=(Me.prototype.beforeEnter=function(e){Object(M.a)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},Me.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?e.style.height=e.scrollHeight+"px":e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"},Me.prototype.afterEnter=function(e){Object(M.i)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},Me.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},Me.prototype.leave=function(e){0!==e.scrollHeight&&(Object(M.a)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},Me.prototype.afterLeave=function(e){Object(M.i)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},Me);function Me(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Me)}var Te={name:"ElCollapseTransition",functional:!0,render:function(e,t){t=t.children;return e("transition",{on:new Ae},t)}},ke={inject:["rootMenu"],computed:{indexPath:function(){for(var e=[this.index],t=this.$parent;"TisMenu"!==t.$options.componentName;)t.index&&e.unshift(t.index),t=t.$parent;return e},parentMenu:function(){for(var e=this.$parent;e&&-1===["TisMenu","TisSubmenu"].indexOf(e.$options.componentName);)e=e.$parent;return e},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var e=20,t=this.$parent;if(this.rootMenu.collapse)e=20;else for(;t&&"TisMenu"!==t.$options.componentName;)"TisSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return{paddingLeft:e+"px"}}}},De={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:c.a.props.offset,boundariesPadding:c.a.props.boundariesPadding,popperOptions:c.a.props.popperOptions},data:c.a.data,methods:c.a.methods,beforeDestroy:c.a.beforeDestroy,deactivated:c.a.deactivated},Ie={name:"TisSubmenu",componentName:"TisSubmenu",mixins:[ke,a.a,De],components:{TisCollapseTransition:Te},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(e){var t=this;this.isMenuPopup&&this.$nextTick(function(e){t.updatePopper()})}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return-1<this.rootMenu.openedMenus.indexOf(this.index)},active:function(){var t=!1,n=this.submenus,i=this.items;return Object.keys(i).forEach(function(e){i[e].active&&(t=!0)}),Object.keys(n).forEach(function(e){n[e].active&&(t=!0)}),t},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){for(var e=!0,t=this.$parent;t&&t!==this.rootMenu;){if(-1<["TisSubmenu","TisMenuItemGroup"].indexOf(t.$options.componentName)){e=!1;break}t=t.$parent}return e}},methods:{handleCollapseToggle:function(e){e?this.initPopper():this.doDestroy()},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},handleClick:function(){var e=this.rootMenu,t=this.disabled;"hover"===e.menuTrigger&&"horizontal"===e.mode||e.collapse&&"vertical"===e.mode||t||this.dispatch("TisMenu","submenu-click",this)},handleMouseenter:function(e){var t,n=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.showTimeout;("ActiveXObject"in window||"focus"!==e.type||e.relatedTarget)&&(t=this.rootMenu,e=this.disabled,"click"===t.menuTrigger&&"horizontal"===t.mode||!t.collapse&&"vertical"===t.mode||e||(this.dispatch("TisSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout(function(){n.rootMenu.openMenu(n.index,n.indexPath)},i),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter"))))},handleMouseleave:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("TisSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.mouseInChild||e.rootMenu.closeMenu(e.index)},this.hideTimeout),this.appendToBody&&t&&"TisSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){var e;"horizontal"===this.mode&&!this.rootMenu.backgroundColor||(e=this.$refs["submenu-title"])&&(e.style.backgroundColor=this.rootMenu.hoverBackground)},handleTitleMouseleave:function(){var e;"horizontal"===this.mode&&!this.rootMenu.backgroundColor||(e=this.$refs["submenu-title"])&&(e.style.backgroundColor=this.rootMenu.backgroundColor||"")},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var e=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",function(){e.mouseInChild=!0,clearTimeout(e.timeout)}),this.$on("mouse-leave-child",function(){e.mouseInChild=!1,clearTimeout(e.timeout)})},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(e){var t=this,n=this.active,i=this.opened,r=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,l=this.currentPlacement,u=this.menuTransitionName,c=this.mode,h=this.disabled,d=this.popperClass,p=this.$slots,f=this.isFirstLevel,d=e("transition",{attrs:{name:u}},[e("div",{ref:"menu",directives:[{name:"show",value:i}],class:["el-menu--"+c,d],on:{mouseenter:function(e){return t.handleMouseenter(e,100)},mouseleave:function(){return t.handleMouseleave(!0)},focus:function(e){return t.handleMouseenter(e,100)}}},[e("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+l],style:{backgroundColor:s.backgroundColor||""}},[p.default])])]),l=e("tis-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:i}],style:{backgroundColor:s.backgroundColor||""}},[p.default])]),s="horizontal"===s.mode&&f||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return e("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":i,"is-disabled":h},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":i},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return t.handleMouseleave(!1)},focus:this.handleMouseenter}},[e("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[r,o,{backgroundColor:a}]},[p.title,e("i",{class:["el-submenu__icon-arrow",s]})]),this.isMenuPopup?d:l])}},Oe=Object(r.a)(Ie,void 0,void 0,!1,null,null,null).exports;Oe.install=function(e){e.component(Oe.name,Oe)};var Ne=Oe,Le={name:"TisTooltip",mixins:[c.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(x.g)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new H.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=N()(200,function(){return e.handleClosePopper()}))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;e=n.data=n.data||{};return e.staticClass=this.addTooltipClass(e.staticClass),n},mounted:function(){var t=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(M.g)(this.referenceElm,"mouseenter",this.show),Object(M.g)(this.referenceElm,"mouseleave",this.hide),Object(M.g)(this.referenceElm,"focus",function(){var e;t.$slots.default&&t.$slots.default.length&&(e=t.$slots.default[0].componentInstance)&&e.focus?e.focus():t.handleFocus()}),Object(M.g)(this.referenceElm,"blur",this.handleBlur),Object(M.g)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick(function(){t.value&&t.updatePopper()})},watch:{focusing:function(e){(e?Object(M.a):Object(M.i))(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.showPopper=!0},this.openDelay),0<this.hideAfter&&(this.timeoutPending=setTimeout(function(){e.showPopper=!1},this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)e[n]&&e[n].tag&&(t=e[n]);return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(M.f)(e,"mouseenter",this.show),Object(M.f)(e,"mouseleave",this.hide),Object(M.f)(e,"focus",this.handleFocus),Object(M.f)(e,"blur",this.handleBlur),Object(M.f)(e,"click",this.removeFocusing))},install:function(e){e.component(Le.name,Le)}},Pe=Le,Ee={name:"TisMenuItem",componentName:"TisMenuItem",mixins:[ke,a.a],components:{TisTooltip:Pe},props:{index:{default:null,validator:function(e){return"string"==typeof e||null===e}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var e={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(e.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),e},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){"horizontal"===this.mode&&!this.rootMenu.backgroundColor||(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){"horizontal"===this.mode&&!this.rootMenu.backgroundColor||(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("TisMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},He=Object(r.a)(Ee,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("li",{staticClass:"el-menu-item",class:{"is-active":e.active,"is-disabled":e.disabled},style:[e.paddingStyle,e.itemStyle,{backgroundColor:e.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:e.handleClick,mouseenter:e.onMouseEnter,focus:e.onMouseEnter,blur:e.onMouseLeave,mouseleave:e.onMouseLeave}},["TisMenu"===e.parentMenu.$options.componentName&&e.rootMenu.collapse&&e.$slots.title?t("tis-tooltip",{attrs:{effect:"dark",placement:"right"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._t("title")],2),t("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[e._t("default")],2)]):[e._t("default"),e._t("title")]],2)},[],!1,null,null,null).exports;He.install=function(e){e.component(He.name,He)};var ze=He,Re={name:"TisMenuItemGroup",componentName:"TisMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var e=20,t=this.$parent;if(this.rootMenu.collapse)return 20;for(;t&&"TisMenu"!==t.$options.componentName;)"TisSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return e}}},je=Object(r.a)(Re,function(){var e=this.$createElement,e=this._self._c||e;return e("li",{staticClass:"el-menu-item-group"},[e("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:this.levelPadding+"px"}},[this.$slots.title?this._t("title"):[this._v(this._s(this.title))]],2),e("ul",[this._t("default")],2)])},[],!1,null,null,null).exports;je.install=function(e){e.component(je.name,je)};var Be=je,Fe={bind:function(e,t,n){function i(){return n.context[t.expression].apply()}function r(){Date.now()-a<100&&i(),clearInterval(o),o=null}var o=null,a=void 0;Object(M.g)(e,"mousedown",function(e){0===e.button&&(a=Date.now(),Object(M.h)(document,"mouseup",r),clearInterval(o),o=setInterval(i,100))})}},Ve={name:"TisInputNumber",mixins:[s("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:Fe},components:{ElInput:u.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return 0<=e&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;this.stepStrictly&&(e=this.getPrecision(this.step),e=Math.pow(10,e),t=Math.round(t/this.step)*e*this.step/e),void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}(t=t>=this.max?this.max:t)<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,i=this.precision,t=n(t);return void 0!==i?(i<t&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),t)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e,t=this.currentValue;return"number"==typeof t&&(this.stepStrictly&&(e=this.getPrecision(this.step),e=Math.pow(10,e),t=Math.round(t/this.step)*e*this.step/e),void 0!==this.precision&&(t=t.toFixed(this.precision))),t}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),e=0;return e=-1!==n?t.length-n-1:e},_increase:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){var e;this.inputNumberDisabled||this.maxDisabled||(e=this.value||0,e=this._increase(e,this.step),this.setCurrentValue(e))},decrease:function(){var e;this.inputNumberDisabled||this.minDisabled||(e=this.value||0,e=this._decrease(e,this.step),this.setCurrentValue(e))},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;t!==(e=(e=(e="number"==typeof e&&void 0!==this.precision?this.toPrecision(e,this.precision):e)>=this.max?this.max:e)<=this.min?this.min:e)&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}},$e=Object(r.a)(Ve,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{class:["el-input-number",t.inputNumberSize?"el-input-number--"+t.inputNumberSize:"",{"is-disabled":t.inputNumberDisabled},{"is-without-controls":!t.controls},{"is-controls-right":t.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[t.controls?e("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":t.minDisabled},attrs:{role:"button"},on:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.decrease(e):null}}},[e("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-down":"minus")})]):t._e(),t.controls?e("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":t.maxDisabled},attrs:{role:"button"},on:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.increase(e):null}}},[e("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-up":"plus")})]):t._e(),e("tis-input",{ref:"input",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?(e.preventDefault(),t.increase(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?(e.preventDefault(),t.decrease(e)):null}]}})],1)},[],!1,null,null,null).exports;$e.install=function(e){e.component($e.name,$e)};var Ye=$e,We={name:"TisRadio",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"TisRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var e=this.$parent;e;){if("TisRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return(this.isGroup?this._radioGroup:this).value},set:function(e){this.isGroup?this.dispatch("TisRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick(function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("TisRadioGroup","handleChange",e.model)})}}},Xe=Object(r.a)(We,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("label",{staticClass:"el-radio",class:[t.border&&t.radioSize?"el-radio--"+t.radioSize:"",{"is-disabled":t.isDisabled},{"is-focus":t.focus},{"is-bordered":t.border},{"is-checked":t.model===t.label}],attrs:{role:"radio","aria-checked":t.model===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[e("span",{staticClass:"el-radio__input",class:{"is-disabled":t.isDisabled,"is-checked":t.model===t.label}},[e("span",{staticClass:"el-radio__inner"}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:t.name,disabled:t.isDisabled,tabindex:"-1"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),e("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])},[],!1,null,null,null).exports;Xe.install=function(e){e.component(Xe.name,Xe)};var Ge=Xe,Ue=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),qe={name:"TisRadioGroup",componentName:"TisRadioGroup",inject:{elFormItem:{default:""}},mixins:[a.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){return(this.$vnode.data||{}).tag||"div"},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var t=this;this.$on("handleChange",function(e){t.$emit("change",e)})},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,function(e){return e.checked})&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",n=this.$el.querySelectorAll(n),i=n.length,r=[].indexOf.call(n,t),o=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case Ue.LEFT:case Ue.UP:e.stopPropagation(),e.preventDefault(),0===r?(o[i-1].click(),o[i-1].focus()):(o[r-1].click(),o[r-1].focus());break;case Ue.RIGHT:case Ue.DOWN:r===i-1?(e.stopPropagation(),e.preventDefault(),o[0].click(),o[0].focus()):(o[r+1].click(),o[r+1].focus())}}},watch:{value:function(e){this.dispatch("TisFormItem","el.form.change",[this.value])}}},Ze=Object(r.a)(qe,function(){var e=this.$createElement;return(this._self._c||e)(this._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:this.handleKeydown}},[this._t("default")],2)},[],!1,null,null,null).exports;Ze.install=function(e){e.component(Ze.name,Ze)};var Ke=Ze,Qe={name:"TisRadioButton",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(e){this._radioGroup.$emit("input",e)}},_radioGroup:function(){for(var e=this.$parent;e;){if("TisRadioGroup"===e.$options.componentName)return e;e=e.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick(function(){e.dispatch("TisRadioGroup","handleChange",e.value)})}}},Je=Object(r.a)(Qe,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("label",{staticClass:"el-radio-button",class:[t.size?"el-radio-button--"+t.size:"",{"is-active":t.value===t.label},{"is-disabled":t.isDisabled},{"is-focus":t.focus}],attrs:{role:"radio","aria-checked":t.value===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.value=t.isDisabled?t.value:t.label}}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:t.name,disabled:t.isDisabled,tabindex:"-1"},domProps:{value:t.label,checked:t._q(t.value,t.label)},on:{change:[function(e){t.value=t.label},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),e("span",{staticClass:"el-radio-button__inner",style:t.value===t.label?t.activeStyle:null,on:{keydown:function(e){e.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])},[],!1,null,null,null).exports;Je.install=function(e){e.component(Je.name,Je)};var et=Je,tt={name:"TisCheckbox",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"TisCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("TisCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?-1<this.model.indexOf(this.label):null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var e=this.$parent;e;){if("TisCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return(this._checkboxGroup||this).value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,e=e.min;return!(!t&&!e)&&this.model.length>=t&&!this.isChecked||this.model.length<=e&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t,n=this;this.isLimitExceeded||(t=void 0,t=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",t,e),this.$nextTick(function(){n.isGroup&&n.dispatch("TisCheckboxGroup","change",[n._checkboxGroup.value])}))}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},nt=Object(r.a)(tt,function(){var o=this,e=o.$createElement,e=o._self._c||e;return e("label",{staticClass:"el-checkbox",class:[o.border&&o.checkboxSize?"el-checkbox--"+o.checkboxSize:"",{"is-disabled":o.isDisabled},{"is-bordered":o.border},{"is-checked":o.isChecked}],attrs:{id:o.id}},[e("span",{staticClass:"el-checkbox__input",class:{"is-disabled":o.isDisabled,"is-checked":o.isChecked,"is-indeterminate":o.indeterminate,"is-focus":o.focus},attrs:{tabindex:!!o.indeterminate&&0,role:!!o.indeterminate&&"checkbox","aria-checked":!!o.indeterminate&&"mixed"}},[e("span",{staticClass:"el-checkbox__inner"}),o.trueLabel||o.falseLabel?e("input",{directives:[{name:"model",rawName:"v-model",value:o.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":o.indeterminate?"true":"false",name:o.name,disabled:o.isDisabled,"true-value":o.trueLabel,"false-value":o.falseLabel},domProps:{checked:Array.isArray(o.model)?-1<o._i(o.model,null):o._q(o.model,o.trueLabel)},on:{change:[function(e){var t,n=o.model,i=e.target,r=i.checked?o.trueLabel:o.falseLabel;Array.isArray(n)?(e=o._i(n,t=null),i.checked?e<0&&(o.model=n.concat([t])):-1<e&&(o.model=n.slice(0,e).concat(n.slice(e+1)))):o.model=r},o.handleChange],focus:function(e){o.focus=!0},blur:function(e){o.focus=!1}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:o.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":o.indeterminate?"true":"false",disabled:o.isDisabled,name:o.name},domProps:{value:o.label,checked:Array.isArray(o.model)?-1<o._i(o.model,o.label):o.model},on:{change:[function(e){var t,n=o.model,i=e.target,r=!!i.checked;Array.isArray(n)?(t=o.label,e=o._i(n,t),i.checked?e<0&&(o.model=n.concat([t])):-1<e&&(o.model=n.slice(0,e).concat(n.slice(e+1)))):o.model=r},o.handleChange],focus:function(e){o.focus=!0},blur:function(e){o.focus=!1}}})]),o.$slots.default||o.label?e("span",{staticClass:"el-checkbox__label"},[o._t("default"),o.$slots.default?o._e():[o._v(o._s(o.label))]],2):o._e()])},[],!1,null,null,null).exports;nt.install=function(e){e.component(nt.name,nt)};var it=nt,rt={name:"TisCheckboxButton",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("TisCheckboxGroup","input",[e])):void 0!==this.value?this.$emit("input",e):this.selfModel=e}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?-1<this.model.indexOf(this.label):null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){for(var e=this.$parent;e;){if("TisCheckboxGroup"===e.$options.componentName)return e;e=e.$parent}return!1},store:function(){return(this._checkboxGroup||this).value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,e=e.min;return!(!t&&!e)&&this.model.length>=t&&!this.isChecked||this.model.length<=e&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t,n=this;this.isLimitExceeded||(t=void 0,t=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",t,e),this.$nextTick(function(){n._checkboxGroup&&n.dispatch("TisCheckboxGroup","change",[n._checkboxGroup.value])}))}},created:function(){this.checked&&this.addToStore()}},ot=Object(r.a)(rt,function(){var o=this,e=o.$createElement,e=o._self._c||e;return e("label",{staticClass:"el-checkbox-button",class:[o.size?"el-checkbox-button--"+o.size:"",{"is-disabled":o.isDisabled},{"is-checked":o.isChecked},{"is-focus":o.focus}],attrs:{role:"checkbox","aria-checked":o.isChecked,"aria-disabled":o.isDisabled}},[o.trueLabel||o.falseLabel?e("input",{directives:[{name:"model",rawName:"v-model",value:o.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:o.name,disabled:o.isDisabled,"true-value":o.trueLabel,"false-value":o.falseLabel},domProps:{checked:Array.isArray(o.model)?-1<o._i(o.model,null):o._q(o.model,o.trueLabel)},on:{change:[function(e){var t,n=o.model,i=e.target,r=i.checked?o.trueLabel:o.falseLabel;Array.isArray(n)?(e=o._i(n,t=null),i.checked?e<0&&(o.model=n.concat([t])):-1<e&&(o.model=n.slice(0,e).concat(n.slice(e+1)))):o.model=r},o.handleChange],focus:function(e){o.focus=!0},blur:function(e){o.focus=!1}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:o.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:o.name,disabled:o.isDisabled},domProps:{value:o.label,checked:Array.isArray(o.model)?-1<o._i(o.model,o.label):o.model},on:{change:[function(e){var t,n=o.model,i=e.target,r=!!i.checked;Array.isArray(n)?(t=o.label,e=o._i(n,t),i.checked?e<0&&(o.model=n.concat([t])):-1<e&&(o.model=n.slice(0,e).concat(n.slice(e+1)))):o.model=r},o.handleChange],focus:function(e){o.focus=!0},blur:function(e){o.focus=!1}}}),o.$slots.default||o.label?e("span",{staticClass:"el-checkbox-button__inner",style:o.isChecked?o.activeStyle:null},[o._t("default",[o._v(o._s(o.label))])],2):o._e()])},[],!1,null,null,null).exports;ot.install=function(e){e.component(ot.name,ot)};var at=ot,st={name:"TisCheckboxGroup",componentName:"TisCheckboxGroup",mixins:[a.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("TisFormItem","el.form.change",[e])}}},lt=Object(r.a)(st,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[this._t("default")],2)},[],!1,null,null,null).exports;lt.install=function(e){e.component(lt.name,lt)};var ut=lt,ct={name:"TisSwitch",mixins:[s("input"),X.a,a.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(e){var t=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick(function(){t.$refs.input.checked=t.checked})},setBackgroundColor:function(){var e=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=e,this.$refs.core.style.backgroundColor=e},switchValue:function(){this.switchDisabled||this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},ht=Object(r.a)(ct,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{staticClass:"el-switch",class:{"is-disabled":t.switchDisabled,"is-checked":t.checked},attrs:{role:"switch","aria-checked":t.checked,"aria-disabled":t.switchDisabled},on:{click:function(e){return e.preventDefault(),t.switchValue(e)}}},[e("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:t.id,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:t.switchDisabled},on:{change:t.handleChange,keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.switchValue(e):null}}}),t.inactiveIconClass||t.inactiveText?e("span",{class:["el-switch__label","el-switch__label--left",t.checked?"":"is-active"]},[t.inactiveIconClass?e("i",{class:[t.inactiveIconClass]}):t._e(),!t.inactiveIconClass&&t.inactiveText?e("span",{attrs:{"aria-hidden":t.checked}},[t._v(t._s(t.inactiveText))]):t._e()]):t._e(),e("span",{ref:"core",staticClass:"el-switch__core",style:{width:t.coreWidth+"px"}}),t.activeIconClass||t.activeText?e("span",{class:["el-switch__label","el-switch__label--right",t.checked?"is-active":""]},[t.activeIconClass?e("i",{class:[t.activeIconClass]}):t._e(),!t.activeIconClass&&t.activeText?e("span",{attrs:{"aria-hidden":!t.checked}},[t._v(t._s(t.activeText))]):t._e()]):t._e()])},[],!1,null,null,null).exports;ht.install=function(e){e.component(ht.name,ht)};var dt=ht,pt={mixins:[a.a],name:"TisOptionGroup",componentName:"TisOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("TisOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some(function(e){return!0===e.visible})}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("TisOption","handleGroupDisabled",this.disabled)}},ft=Object(r.a)(pt,function(){var e=this.$createElement,e=this._self._c||e;return e("ul",{directives:[{name:"show",rawName:"v-show",value:this.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[e("li",{staticClass:"el-select-group__title"},[this._v(this._s(this.label))]),e("li",[e("ul",{staticClass:"el-select-group"},[this._t("default")],2)])])},[],!1,null,null,null).exports;ft.install=function(e){e.component(ft.name,ft)};function mt(e){for(var t=e.target;t&&"HTML"!==t.tagName.toUpperCase();){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null}function gt(e){return null!==e&&"object"===(void 0===e?"undefined":Dt(e))}function vt(i,e,n,r,o){if(!e&&!r&&(!o||Array.isArray(o)&&!o.length))return i;n="string"==typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var a=r?null:function(t,n){return o?(o=!Array.isArray(o)?[o]:o).map(function(e){return"string"==typeof e?Object(x.i)(t,e):e(t,n,i)}):("$key"!==e&>(t)&&"$value"in t&&(t=t.$value),[gt(t)?Object(x.i)(t,e):t])};return i.map(function(e,t){return{value:e,index:t,key:a?a(e,t):null}}).sort(function(e,t){return(function(e,t){if(r)return r(e.value,t.value);for(var n=0,i=e.key.length;n<i;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0}(e,t)||e.index-t.index)*n}).map(function(e){return e.value})}function yt(e,t){var n=null;return e.columns.forEach(function(e){e.id===t&&(n=e)}),n}function xt(e,t){return(t=(t.className||"").match(/el-table_[^\s]+/gm))?yt(e,t[0]):null}function bt(e,t){if(!e)throw new Error("row is required when get row identity");if("string"==typeof t){if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),i=e,r=0;r<n.length;r++)i=i[n[r]];return i}if("function"==typeof t)return t.call(null,e)}function _t(e,n){var i={};return(e||[]).forEach(function(e,t){i[bt(e,n)]={row:e,index:t}}),i}var wt=ft,Ct=n(268),St=n(438),At=n.n(St),Mt="undefined"!=typeof navigator&&-1<navigator.userAgent.toLowerCase().indexOf("firefox"),Tt={bind:function(e,t){var n;e=e,n=t.value,e&&e.addEventListener&&e.addEventListener(Mt?"DOMMouseScroll":"mousewheel",function(e){var t=At()(e);n&&n.apply(this,[e,t])})}},kt=n(16),Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function It(e,t){var n,i,r,o={},a=void 0;for(a in e)o[a]=e[a];for(a in t)i=t,r=a,Object.prototype.hasOwnProperty.call(i,r)&&void 0!==(n=t[a])&&(o[a]=n);return o}function Ot(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function Nt(e){return"number"==typeof e?e:"string"==typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function Lt(e,t,n){function i(){e.push(t),o=!0}function r(){e.splice(a,1),o=!0}var o=!1,a=e.indexOf(t),s=-1!==a;return"boolean"==typeof n?n&&!s?i():!n&&s&&r():(s?r:i)(),o}function Pt(e,r,t,n){var o=2<arguments.length&&void 0!==t?t:"children",a=3<arguments.length&&void 0!==n?n:"hasChildren",s=function(e){return!(Array.isArray(e)&&e.length)};e.forEach(function(e){var t;e[a]?r(e,null,0):(t=e[o],s(t)||function n(e,t,i){r(e,t,i),t.forEach(function(e){var t;e[a]?r(e,null,i+1):(t=e[o],s(t)||n(e,t,i+1))})}(e,t,0))})}function Et(e){var t=[];return e.forEach(function(e){e.children?t.push.apply(t,Et(e.children)):t.push(e)}),t}var Ht={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(e){this.assertRowKey(),this.states._currentRowKey=e,this.setCurrentRowByKey(e)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(t){var e=this.states,n=e.data,i=void 0===n?[]:n,r=e.rowKey,n=null;r&&(n=Object(x.a)(i,function(e){return bt(e,r)===t})),e.currentRow=n},updateCurrentRow:function(e){var t=this.states,n=this.table,i=t.currentRow;if(e&&e!==i)return t.currentRow=e,void n.$emit("current-change",e,i);!e&&i&&(t.currentRow=null,n.$emit("current-change",null,i))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,i=e._currentRowKey,r=e.data||[],o=e.currentRow;-1===r.indexOf(o)&&o?(n?(n=bt(o,n),this.setCurrentRowByKey(n)):e.currentRow=null,null===e.currentRow&&t.$emit("current-change",null,o)):i&&(this.setCurrentRowByKey(i),this.restoreCurrentRowKey())}}},zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Rt=H.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[{data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var i,e=this.states,t=e.data,n=void 0===t?[]:t,r=e.rowKey,t=e.defaultExpandAll,e=e.expandRows;t?this.states.expandRows=n.slice():r?(i=_t(e,r),this.states.expandRows=n.reduce(function(e,t){var n=bt(t,r);return i[n]&&e.push(t),e},[])):this.states.expandRows=[]},toggleRowExpansion:function(e,t){Lt(this.states.expandRows,e,t)&&(this.table.$emit("expand-change",e,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(e){this.assertRowKey();var t=this.states,n=t.data,t=t.rowKey,i=_t(n,t);this.states.expandRows=e.reduce(function(e,t){t=i[t];return t&&e.push(t.row),e},[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,n=void 0===n?[]:n,t=t.rowKey;return t?!!_t(n,t)[bt(e,t)]:-1!==n.indexOf(e)}}},Ht,{data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var e=this.states.data||[];return this.normalize(e)},normalizedLazyNode:function(){var e=this.states,i=e.rowKey,t=e.lazyTreeNodeMap,r=e.lazyColumnIdentifier,e=Object.keys(t),o={};return e.length&&e.forEach(function(e){var n;t[e].length&&(n={children:[]},t[e].forEach(function(e){var t=bt(e,i);n.children.push(t),e[r]&&!o[t]&&(o[t]={children:[]})}),o[e]=n)}),o}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(e){var t=this.states,n=t.childrenColumnName,i=t.lazyColumnIdentifier,r=t.rowKey,o=t.lazy,a={};return Pt(e,function(e,t,n){e=bt(e,r);Array.isArray(t)?a[e]={children:t.map(function(e){return bt(e,r)}),level:n}:o&&(a[e]={children:[],lazy:!0,level:n})},n,i),a},updateTreeData:function(){var o,n,i,e,a,s,r=this.normalizedData,l=this.normalizedLazyNode,t=Object.keys(r),u={};t.length&&(e=this.states,o=e.treeData,n=e.defaultExpandAll,i=e.expandRowKeys,e=e.lazy,a=[],s=function(e,t){t=n||i&&-1!==i.indexOf(t);return!!(e&&e.expanded||t)},t.forEach(function(e){var t,n=o[e],i=zt({},r[e]);i.expanded=s(n,e),i.lazy&&(n=(t=n||{}).loaded,t=void 0!==(t=t.loading)&&t,i.loaded=!!(void 0!==n&&n),i.loading=!!t,a.push(e)),u[e]=i}),t=Object.keys(l),e&&t.length&&a.length&&t.forEach(function(e){var t=o[e],n=l[e].children;if(-1!==a.indexOf(e)){if(0!==u[e].children.length)throw new Error("[ElTable]children must be an empty array.");u[e].children=n}else{var i=t||{},r=i.loaded,i=i.loading;u[e]={lazy:!0,loaded:!!(void 0!==r&&r),loading:!!(void 0!==i&&i),expanded:s(t,e),children:n,level:""}}})),this.states.treeData=u,this.updateTableScrollY()},updateTreeExpandKeys:function(e){this.states.expandRowKeys=e,this.updateTreeData()},toggleTreeExpansion:function(e,t){this.assertRowKey();var n=this.states,i=n.rowKey,r=n.treeData,o=bt(e,i),n=o&&r[o];o&&n&&"expanded"in n&&(i=n.expanded,t=void 0===t?!n.expanded:t,i!==(r[o].expanded=t)&&this.table.$emit("expand-change",e,t),this.updateTableScrollY())},loadOrToggle:function(e){this.assertRowKey();var t=this.states,n=t.lazy,i=t.treeData,t=t.rowKey,t=bt(e,t),i=i[t];n&&i&&"loaded"in i&&!i.loaded?this.loadData(e,t,i):this.toggleTreeExpansion(e)},loadData:function(t,n,e){var i=this,r=this.table.load,o=this.states,a=o.lazyTreeNodeMap,s=o.treeData;r&&!s[n].loaded&&(s[n].loading=!0,r(t,e,function(e){if(!Array.isArray(e))throw new Error("[ElTable] data must be an array");s[n].loading=!1,s[n].loaded=!0,s[n].expanded=!0,e.length&&i.$set(a,n,e),i.table.$emit("expand-change",t,!0)}))}}}],methods:{assertRowKey:function(){if(!this.states.rowKey)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var e=this.states,t=e._columns||[];e.fixedColumns=t.filter(function(e){return!0===e.fixed||"left"===e.fixed}),e.rightFixedColumns=t.filter(function(e){return"right"===e.fixed}),0<e.fixedColumns.length&&t[0]&&"selection"===t[0].type&&!t[0].fixed&&(t[0].fixed=!0,e.fixedColumns.unshift(t[0]));var n=t.filter(function(e){return!e.fixed});e.originColumns=[].concat(e.fixedColumns).concat(n).concat(e.rightFixedColumns);var i=Et(n),t=Et(e.fixedColumns),n=Et(e.rightFixedColumns);e.leafColumnsLength=i.length,e.fixedLeafColumnsLength=t.length,e.rightFixedLeafColumnsLength=n.length,e.columns=[].concat(t).concat(i).concat(n),e.isComplex=0<e.fixedColumns.length||0<e.rightFixedColumns.length},scheduleLayout:function(e){e&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(e){var t=this.states.selection;return-1<(void 0===t?[]:t).indexOf(e)},clearSelection:function(){var e=this.states;e.isAllSelected=!1,e.selection.length&&(e.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var e=this.states,t=e.data,n=e.rowKey,i=e.selection,r=void 0;if(n){var o,r=[],a=_t(i,n),s=_t(t,n);for(o in a)a.hasOwnProperty(o)&&!s[o]&&r.push(a[o].row)}else r=i.filter(function(e){return-1===t.indexOf(e)});r.length&&(i=i.filter(function(e){return-1===r.indexOf(e)}),e.selection=i,this.table.$emit("selection-change",i.slice()))},toggleRowSelection:function(e,t){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];Lt(this.states.selection,e,t)&&(t=(this.states.selection||[]).slice(),n&&this.table.$emit("select",t,e),this.table.$emit("selection-change",t))},_toggleAllSelection:function(){var n=this.states,e=n.data,e=void 0===e?[]:e,i=n.selection,r=n.selectOnIndeterminate?!n.isAllSelected:!(n.isAllSelected||i.length);n.isAllSelected=r;var o=!1;e.forEach(function(e,t){n.selectable?n.selectable.call(null,e,t)&&Lt(i,e,r)&&(o=!0):Lt(i,e,r)&&(o=!0)}),o&&this.table.$emit("selection-change",i?i.slice():[]),this.table.$emit("select-all",i)},updateSelectionByRowKey:function(){var e=this.states,n=e.selection,i=e.rowKey,e=e.data,r=_t(n,i);e.forEach(function(e){var t=bt(e,i),t=r[t];t&&(n[t.index]=e)})},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.selectable,r=e.data||[];if(0!==r.length){var o=void 0;n&&(o=_t(t,n));for(var a,s=!0,l=0,u=0,c=r.length;u<c;u++){var h=r[u],d=i&&i.call(null,h,u);if(a=h,o?!!o[bt(a,n)]:-1!==t.indexOf(a))l++;else if(!i||d){s=!1;break}}e.isAllSelected=s=0===l?!1:s}else e.isAllSelected=!1},updateFilters:function(e,t){Array.isArray(e)||(e=[e]);var n=this.states,i={};return e.forEach(function(e){n.filters[e.id]=t,i[e.columnKey||e.id]=t}),i},updateSort:function(e,t,n){this.states.sortingColumn&&this.states.sortingColumn!==e&&(this.states.sortingColumn.order=null),this.states.sortingColumn=e,this.states.sortProp=t,this.states.sortOrder=n},execFilter:function(){var t=this,r=this.states,e=r._data,n=r.filters,o=e;Object.keys(n).forEach(function(e){var n,i=r.filters[e];!i||0===i.length||(n=yt(t.states,e))&&n.filterMethod&&(o=o.filter(function(t){return i.some(function(e){return n.filterMethod.call(null,e,t,n)})}))}),r.filteredData=o},execSort:function(){var e,t,n=this.states;n.data=(e=n.filteredData,(n=(t=n).sortingColumn)&&"string"!=typeof n.sortable?vt(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e)},execQuery:function(e){e&&e.filter||this.execFilter(),this.execSort()},clearFilter:function(e){var t=this.states,n=this.table.$refs,i=n.tableHeader,r=n.fixedTableHeader,n=n.rightFixedTableHeader,o={};i&&(o=Object(kt.a)(o,i.filterPanels)),r&&(o=Object(kt.a)(o,r.filterPanels)),n&&(o=Object(kt.a)(o,n.filterPanels));var a,n=Object.keys(o);n.length&&("string"==typeof e&&(e=[e]),Array.isArray(e)?(a=e.map(function(e){return function(e,t){for(var n=null,i=0;i<e.columns.length;i++){var r=e.columns[i];if(r.columnKey===t){n=r;break}}return n}(t,e)}),n.forEach(function(t){a.find(function(e){return e.id===t})&&(o[t].filteredValue=[])}),this.commit("filterChange",{column:a,values:[],silent:!0,multi:!0})):(n.forEach(function(e){o[e].filteredValue=[]}),t.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})))},clearSort:function(){this.states.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(e){this.setExpandRowKeys(e),this.updateTreeExpandKeys(e)},toggleRowExpansionAdapter:function(e,t){this.states.columns.some(function(e){return"expand"===e.type})?this.toggleRowExpansion(e,t):this.toggleTreeExpansion(e,t)}}});Rt.prototype.mutations={setData:function(e,t){var n=e._data!==t;e._data=t,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),e.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(e,t,n,i){var r=e._columns;i&&(r=(r=i.children)||(i.children=[])),void 0!==n?r.splice(n,0,t):r.push(t),"selection"===t.type&&(e.selectable=t.selectable,e.reserveSelection=t.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(e,t,n){e=e._columns;(e=n?(e=n.children)||(n.children=[]):e)&&e.splice(e.indexOf(t),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(e,t){var n=t.prop,i=t.order,t=t.init;!n||(e=Object(x.a)(e.columns,function(e){return e.property===n}))&&(e.order=i,this.updateSort(e,n,i),this.commit("changeSortCondition",{init:t}))},changeSortCondition:function(e,t){var n=e.sortingColumn,i=e.sortProp,r=e.sortOrder;null===r&&(e.sortingColumn=null,e.sortProp=null);this.execQuery({filter:!0}),t&&(t.silent||t.init)||this.table.$emit("sort-change",{column:n,prop:i,order:r}),this.updateTableScrollY()},filterChange:function(e,t){var n=t.column,i=t.values,t=t.silent,i=this.updateFilters(n,i);this.execQuery(),t||this.table.$emit("filter-change",i),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(e,t){this.toggleRowSelection(t),this.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow=t},setCurrentRow:function(e,t){this.updateCurrentRow(t)}},Rt.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,i=Array(1<n?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t[e].apply(this,[this.states].concat(i))},Rt.prototype.updateTableScrollY=function(){H.a.nextTick(this.table.updateScrollY)};var jt=Rt;function Bt(i){var r={};return Object.keys(i).forEach(function(e){var t=i[e],n=void 0;"string"==typeof t?n=function(){return this.store.states[t]}:"function"==typeof t?n=function(){return t.call(this,this.store.states)}:console.error("invalid value type"),n&&(r[e]=n)}),r}function Ft(e){for(var t in!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Ft),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=Object(A.a)(),e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}var Vt=(Ft.prototype.updateScrollY=function(){if(null===this.height)return!1;var e=this.table.bodyWrapper;if(this.table.$el&&e){var t=e.querySelector(".el-table__body"),e=this.scrollY,t=t.offsetHeight>this.bodyHeight;return e!==(this.scrollY=t)}return!1},Ft.prototype.setHeight=function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"height";if(!H.a.prototype.$isServer){var i=this.table.$el;if(e=Nt(e),this.height=e,!i&&(e||0===e))return H.a.nextTick(function(){return t.setHeight(e,n)});"number"==typeof e?(i.style[n]=e+"px",this.updateElsHeight()):"string"==typeof e&&(i.style[n]=e,this.updateElsHeight())}},Ft.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},Ft.prototype.getFlattenColumns=function(){var t=[];return this.table.columns.forEach(function(e){e.isColumnGroup?t.push.apply(t,e.columns):t.push(e)}),t},Ft.prototype.updateElsHeight=function(){var e=this;if(!this.table.$ready)return H.a.nextTick(function(){return e.updateElsHeight()});var t=this.table.$refs,n=t.headerWrapper,i=t.appendWrapper,r=t.footerWrapper;if(this.appendHeight=i?i.offsetHeight:0,!this.showHeader||n){t=n?n.querySelector(".el-table__header tr"):null,i=this.headerDisplayNone(t),t=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!i&&0<n.offsetWidth&&0<(this.table.columns||[]).length&&t<2)return H.a.nextTick(function(){return e.updateElsHeight()});i=this.tableHeight=this.table.$el.clientHeight,n=this.footerHeight=r?r.offsetHeight:0;null!==this.height&&(this.bodyHeight=i-t-n+(r?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;r=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?i-(r?0:this.gutterWidth):i,this.updateScrollY(),this.notifyObservers("scrollable")}},Ft.prototype.headerDisplayNone=function(e){if(!e)return!0;for(var t=e;"DIV"!==t.tagName;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},Ft.prototype.updateColumnsWidth=function(){var t,e,n,i,r,o,a,s,l;H.a.prototype.$isServer||(i=this.fit,s=this.table.$el.clientWidth,t=0,n=(e=this.getFlattenColumns()).filter(function(e){return"number"!=typeof e.width}),e.forEach(function(e){"number"==typeof e.width&&e.realWidth&&(e.realWidth=null)}),0<n.length&&i?(e.forEach(function(e){t+=e.width||e.minWidth||80}),i=this.scrollY?this.gutterWidth:0,t<=s-i?(this.scrollX=!1,i=s-i-t,1===n.length?n[0].realWidth=(n[0].minWidth||80)+i:(r=i/n.reduce(function(e,t){return e+(t.minWidth||80)},0),o=0,n.forEach(function(e,t){0!==t&&(t=Math.floor((e.minWidth||80)*r),o+=t,e.realWidth=(e.minWidth||80)+t)}),n[0].realWidth=(n[0].minWidth||80)+i-o)):(this.scrollX=!0,n.forEach(function(e){e.realWidth=e.minWidth})),this.bodyWidth=Math.max(t,s),this.table.resizeState.width=this.bodyWidth):(e.forEach(function(e){e.width||e.minWidth?e.realWidth=e.width||e.minWidth:e.realWidth=80,t+=e.realWidth}),this.scrollX=s<t,this.bodyWidth=t),0<(s=this.store.states.fixedColumns).length&&(a=0,s.forEach(function(e){a+=e.realWidth||e.width}),this.fixedWidth=a),0<(s=this.store.states.rightFixedColumns).length&&(l=0,s.forEach(function(e){l+=e.realWidth||e.width}),this.rightFixedWidth=l),this.notifyObservers("columns"))},Ft.prototype.addObserver=function(e){this.observers.push(e)},Ft.prototype.removeObserver=function(e){e=this.observers.indexOf(e);-1!==e&&this.observers.splice(e,1)},Ft.prototype.notifyObservers=function(t){var n=this;this.observers.forEach(function(e){switch(t){case"columns":e.onColumnsChange(n);break;case"scrollable":e.onScrollableChange(n);break;default:throw new Error("Table Layout don't have event "+t+".")}})},Ft),$t={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var e=this.layout;if(!(e=!e&&this.table?this.table.layout:e))throw new Error("Can not find table layout.");return e}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(e){var t=this.$el.querySelectorAll("colgroup > col");if(t.length){var e=e.getFlattenColumns(),n={};e.forEach(function(e){n[e.id]=e});for(var i=0,r=t.length;i<r;i++){var o=t[i],a=o.getAttribute("name"),a=n[a];a&&o.setAttribute("width",a.realWidth||a.width)}}},onScrollableChange:function(e){for(var t=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,i=t.length;n<i;n++)t[n].setAttribute("width",e.scrollY?e.gutterWidth:"0");for(var r=this.$el.querySelectorAll("th.gutter"),o=0,a=r.length;o<a;o++){var s=r[o];s.style.width=e.scrollY?e.gutterWidth+"px":"0",s.style.display=e.scrollY?"":"none"}}}},Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Xt={name:"TisTableBody",mixins:[$t],components:{ElCheckbox:it,ElTooltip:Pe},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(t){var n=this,e=this.data||[];return t("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map(function(e){return t("col",{attrs:{name:e.id},key:e.id})})]),t("tbody",[e.reduce(function(e,t){return e.concat(n.wrappedRowRender(t,e.length))},[]),t("tis-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:Wt({table:function(){return this.$parent}},Bt({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length},hasExpandColumn:function(e){return e.columns.some(function(e){return"expand"===e.type})}}),{firstDefaultColumnIndex:function(){return Object(x.b)(this.columns,function(e){return"default"===e.type})}}),watch:{"store.states.hoverRow":function(n,i){var r=this;this.store.states.isComplex&&!this.$isServer&&(window.requestAnimationFrame||function(e){return setTimeout(e,16)})(function(){var e=r.$el.querySelectorAll(".el-table__row"),t=e[i],e=e[n];t&&Object(M.i)(t,"hover-row"),e&&Object(M.a)(e,"hover-row")})}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=N()(50,function(e){return e.handleShowPopper()})},methods:{getKeyOfRow:function(e,t){var n=this.table.rowKey;return n?bt(e,n):t},isColumnHidden:function(e){return!0===this.fixed||"left"===this.fixed?e>=this.leftFixedLeafCount:"right"===this.fixed?e<this.columnsCount-this.rightFixedLeafCount:e<this.leftFixedLeafCount||e>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,i){var r=1,o=1,a=this.table.spanMethod;return"function"==typeof a&&(i=a({row:e,column:t,rowIndex:n,columnIndex:i}),Array.isArray(i)?(r=i[0],o=i[1]):"object"===(void 0===i?"undefined":Yt(i))&&(r=i.rowspan,o=i.colspan)),{rowspan:r,colspan:o}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"==typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=["el-table__row"];this.table.highlightCurrentRow&&e===this.store.states.currentRow&&n.push("current-row"),this.stripe&&t%2==1&&n.push("el-table__row--striped");var i=this.table.rowClassName;return"string"==typeof i?n.push(i):"function"==typeof i&&n.push(i.call(null,{row:e,rowIndex:t})),-1<this.store.states.expandRows.indexOf(e)&&n.push("expanded"),n},getCellStyle:function(e,t,n,i){var r=this.table.cellStyle;return"function"==typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getCellClass:function(e,t,n,i){var r=[i.id,i.align,i.className];this.isColumnHidden(t)&&r.push("is-hidden");var o=this.table.cellClassName;return"string"==typeof o?r.push(o):"function"==typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.join(" ")},getColspanRealWidth:function(e,t,n){return t<1?e[n].realWidth:e.map(function(e){return e.realWidth}).slice(n,n+t).reduce(function(e,t){return e+t},-1)},handleCellMouseEnter:function(e,t){var n=this.table,i=mt(e);i&&(r=xt(n,i),r=n.hoverState={cell:i,column:r,row:t},n.$emit("cell-mouse-enter",r.row,r.column,r.cell,e));var r=e.target.querySelector(".cell");Object(M.d)(r,"el-tooltip")&&r.childNodes.length&&((e=document.createRange()).setStart(r,0),e.setEnd(r,r.childNodes.length),(e.getBoundingClientRect().width+((parseInt(Object(M.c)(r,"paddingLeft"),10)||0)+(parseInt(Object(M.c)(r,"paddingRight"),10)||0))>r.offsetWidth||r.scrollWidth>r.offsetWidth)&&this.$refs.tooltip&&(r=this.$refs.tooltip,this.tooltipContent=i.innerText||i.textContent,r.referenceElm=i,r.$refs.popper&&(r.$refs.popper.style.display="none"),r.doDestroy(),r.setExpectedState(!0),this.activateTooltip(r)))},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;t&&(t.setExpectedState(!1),t.handleClosePopper()),mt(e)&&(t=this.table.hoverState||{},this.table.$emit("cell-mouse-leave",t.row,t.column,t.cell,e))},handleMouseEnter:N()(30,function(e){this.store.commit("setHoverRow",e)}),handleMouseLeave:N()(30,function(){this.store.commit("setHoverRow",null)}),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var i=this.table,r=mt(e),o=void 0;r&&(o=xt(i,r))&&i.$emit("cell-"+n,t,o,r,e),i.$emit("row-"+n,t,o,e)},rowRender:function(o,a,s){var l=this,u=this.$createElement,c=this.treeIndent,h=this.columns,d=this.firstDefaultColumnIndex,p=h.map(function(e,t){return l.isColumnHidden(t)}),e=this.getRowClass(o,a),t=!0;return s&&(e.push("el-table__row--level-"+s.level),t=s.display),u("tr",{style:[t?null:{display:"none"},this.getRowStyle(o,a)],class:e,key:this.getKeyOfRow(o,a),on:{dblclick:function(e){return l.handleDoubleClick(e,o)},click:function(e){return l.handleClick(e,o)},contextmenu:function(e){return l.handleContextMenu(e,o)},mouseenter:function(e){return l.handleMouseEnter(a)},mouseleave:this.handleMouseLeave}},[h.map(function(e,t){var n=l.getSpan(o,e,a,t),i=n.rowspan,r=n.colspan;if(!i||!r)return null;n=Wt({},e);n.realWidth=l.getColspanRealWidth(h,r,t);n={store:l.store,_self:l.context||l.table.$vnode.context,column:n,row:o,$index:a};return t===d&&s&&(n.treeNode={indent:s.level*c,level:s.level},"boolean"==typeof s.expanded&&(n.treeNode.expanded=s.expanded,"loading"in s&&(n.treeNode.loading=s.loading),"noLazyChildren"in s&&(n.treeNode.noLazyChildren=s.noLazyChildren))),u("td",{style:l.getCellStyle(a,t,o,e),class:l.getCellClass(a,t,o,e),attrs:{rowspan:i,colspan:r},on:{mouseenter:function(e){return l.handleCellMouseEnter(e,o)},mouseleave:l.handleCellMouseLeave}},[e.renderCell.call(l._renderProxy,l.$createElement,n,p[t])])})])},wrappedRowRender:function(e,o){var a=this,t=this.$createElement,n=this.store,i=n.isRowExpanded,r=n.assertRowKey,n=n.states,s=n.treeData,l=n.lazyTreeNodeMap,u=n.childrenColumnName,c=n.rowKey;if(this.hasExpandColumn&&i(e)){var i=this.table.renderExpanded,h=this.rowRender(e,o);return i?[[h,t("tr",{key:"expanded-row__"+h.key},[t("td",{attrs:{colspan:this.columnsCount},class:"el-table__expanded-cell"},[i(this.$createElement,{row:e,$index:o,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),h)}if(Object.keys(s).length){r();var h=bt(e,c),d=s[h],r=null;d&&(r={expanded:d.expanded,level:d.level,display:!0},"boolean"==typeof d.lazy&&("boolean"==typeof d.loaded&&d.loaded&&(r.noLazyChildren=!(d.children&&d.children.length)),r.loading=d.loading));var p,f=[this.rowRender(e,o,r)];return d&&(r=function i(e,r){e&&e.length&&r&&e.forEach(function(e){var t={display:r.display&&r.expanded,level:r.level+1},n=bt(e,c);if(null==n)throw new Error("for nested data item, row-key is required.");(d=Wt({},s[n]))&&(t.expanded=d.expanded,d.level=d.level||t.level,d.display=!(!d.expanded||!t.display),"boolean"==typeof d.lazy&&("boolean"==typeof d.loaded&&d.loaded&&(t.noLazyChildren=!(d.children&&d.children.length)),t.loading=d.loading)),p++,f.push(a.rowRender(e,o+p,t)),d&&(e=l[n]||e[u],i(e,d))})},d.display=!(p=0),r(l[h]||e[u],d)),f}return this.rowRender(e,o)}}},Gt=[];H.a.prototype.$isServer||document.addEventListener("click",function(n){Gt.forEach(function(e){var t=n.target;e&&e.$el&&(t===e.$el||e.$el.contains(t)||e.handleOutsideClick&&e.handleOutsideClick(n))})});function Ut(e){var t=[];return e.forEach(function(e){e.children?(t.push(e),t.push.apply(t,Ut(e.children))):t.push(e)}),t}function qt(e){function i(t,e){var n;e&&(t.level=e.level+1,r<t.level&&(r=t.level)),t.children?(n=0,t.children.forEach(function(e){i(e,t),n+=e.colSpan}),t.colSpan=n):t.colSpan=1}var r=1;e.forEach(function(e){e.level=1,i(e)});for(var t=[],n=0;n<r;n++)t.push([]);return Ut(e).forEach(function(e){e.children?e.rowSpan=1:e.rowSpan=r-e.level+1,t[e.level-1].push(e)}),t}var Zt=function(e){e&&Gt.push(e)},Kt=function(e){-1!==Gt.indexOf(e)&&Gt.splice(e,1)},Qt={name:"TisTableFilterPanel",mixins:[c.a,l.a],directives:{Clickoutside:L.a},components:{ElCheckbox:it,ElCheckboxGroup:ut,ElScrollbar:I},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout(function(){e.showPopper=!1},16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){null!=(this.filterValue=e)?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&(null!=e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var t=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",function(){t.updatePopper()}),this.$watch("showPopper",function(e){t.column&&(t.column.filterOpened=e),(e?Zt:Kt)(t)})},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)<W.a.zIndex&&(this.popperJS._popper.style.zIndex=W.a.nextZIndex())}}},Jt=Object(r.a)(Qt,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("transition",{attrs:{name:"el-zoom-in-top"}},[n.multiple?i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:n.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:n.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[i("div",{staticClass:"el-table-filter__content"},[i("tis-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[i("tis-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:n.filteredValue,callback:function(e){n.filteredValue=e},expression:"filteredValue"}},n._l(n.filters,function(e){return i("tis-checkbox",{key:e.value,attrs:{label:e.value}},[n._v(n._s(e.text))])}),1)],1)],1),i("div",{staticClass:"el-table-filter__bottom"},[i("button",{class:{"is-disabled":0===n.filteredValue.length},attrs:{disabled:0===n.filteredValue.length},on:{click:n.handleConfirm}},[n._v(n._s(n.t("el.table.confirmFilter")))]),i("button",{on:{click:n.handleReset}},[n._v(n._s(n.t("el.table.resetFilter")))])])]):i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:n.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:n.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[i("ul",{staticClass:"el-table-filter__list"},[i("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===n.filterValue||null===n.filterValue},on:{click:function(e){n.handleSelect(null)}}},[n._v(n._s(n.t("el.table.clearFilter")))]),n._l(n.filters,function(t){return i("li",{key:t.value,staticClass:"el-table-filter__list-item",class:{"is-active":n.isActive(t)},attrs:{label:t.value},on:{click:function(e){n.handleSelect(t.value)}}},[n._v(n._s(t.text))])})],2)])])},[],!1,null,null,null).exports,en=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},tn={name:"TisTableHeader",mixins:[$t],render:function(r){var o=this,e=this.store.states.originColumns,t=qt(e,this.columns),e=1<t.length;return e&&(this.$parent.isGroup=!0),r("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[r("colgroup",[this.columns.map(function(e){return r("col",{attrs:{name:e.id},key:e.id})}),this.hasGutter?r("col",{attrs:{name:"gutter"}}):""]),r("thead",{class:[{"is-group":e,"has-gutter":this.hasGutter}]},[this._l(t,function(n,i){return r("tr",{style:o.getHeaderRowStyle(i),class:o.getHeaderRowClass(i)},[n.map(function(t,e){return r("th",{attrs:{colspan:t.colSpan,rowspan:t.rowSpan},on:{mousemove:function(e){return o.handleMouseMove(e,t)},mouseout:o.handleMouseOut,mousedown:function(e){return o.handleMouseDown(e,t)},click:function(e){return o.handleHeaderClick(e,t)},contextmenu:function(e){return o.handleHeaderContextMenu(e,t)}},style:o.getHeaderCellStyle(i,e,n,t),class:o.getHeaderCellClass(i,e,n,t),key:t.id},[r("div",{class:["cell",t.filteredValue&&0<t.filteredValue.length?"highlight":"",t.labelClassName]},[t.renderHeader?t.renderHeader.call(o._renderProxy,r,{column:t,$index:e,store:o.store,_self:o.$parent.$vnode.context}):t.label,t.sortable?r("span",{class:"caret-wrapper",on:{click:function(e){return o.handleSortClick(e,t)}}},[r("i",{class:"sort-caret ascending",on:{click:function(e){return o.handleSortClick(e,t,"ascending")}}}),r("i",{class:"sort-caret descending",on:{click:function(e){return o.handleSortClick(e,t,"descending")}}})]):"",t.filterable?r("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return o.handleFilterClick(e,t)}}},[r("i",{class:["el-icon-arrow-down",t.filterOpened?"el-icon-arrow-up":""]})]):""])])}),o.hasGutter?r("th",{class:"gutter"}):""])})])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:it},computed:en({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Bt({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var n=this;this.$nextTick(function(){var e=n.defaultSort,t=e.prop,e=e.order;n.store.commit("sort",{prop:t,order:e,init:!0})})},beforeDestroy:function(){var e,t=this.filterPanels;for(e in t)t.hasOwnProperty(e)&&t[e]&&t[e].$destroy(!0)},methods:{isCellHidden:function(e,t){for(var n=0,i=0;i<e;i++)n+=t[i].colSpan;var r=n+t[e].colSpan-1;return!0===this.fixed||"left"===this.fixed?r>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:r<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"==typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"==typeof n?t.push(n):"function"==typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,i){var r=this.table.headerCellStyle;return"function"==typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getHeaderCellClass:function(e,t,n,i){var r=[i.id,i.order,i.headerAlign,i.className,i.labelClassName];0===e&&this.isCellHidden(t,n)&&r.push("is-hidden"),i.children||r.push("is-leaf"),i.sortable&&r.push("is-sortable");var o=this.table.headerCellClassName;return"string"==typeof o?r.push(o):"function"==typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.join(" ")},toggleAllSelection:function(e){e.stopPropagation(),this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n,i=e.target,e="TH"===i.tagName?i:i.parentNode;Object(M.d)(e,"noclick")||(e=e.querySelector(".el-table__column-filter-trigger")||e,i=this.$parent,(n=this.filterPanels[t.id])&&t.filterOpened?n.showPopper=!1:(n||(n=new H.a(Jt),this.filterPanels[t.id]=n,t.filterPlacement&&(n.placement=t.filterPlacement),n.table=i,n.cell=e,n.column=t,this.$isServer||n.$mount(document.createElement("div"))),setTimeout(function(){n.showPopper=!0},16)))},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(r,o){var a,s,e,t,l,u,n,c=this;this.$isServer||o.children&&0<o.children.length||this.draggingColumn&&this.border&&(this.dragging=!0,this.$parent.resizeProxyVisible=!0,n=(a=this.$parent).$el.getBoundingClientRect().left,e=(s=this.$el.querySelector("th."+o.id)).getBoundingClientRect(),t=e.left-n+30,Object(M.a)(s,"noclick"),this.dragState={startMouseLeft:r.clientX,startLeft:e.right-n,startColumnLeft:e.left-n,tableLeft:n},(l=a.$refs.resizeProxy).style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},u=function(e){e=e.clientX-c.dragState.startMouseLeft,e=c.dragState.startLeft+e;l.style.left=Math.max(t,e)+"px"},n=function e(){var t,n,i;c.dragging&&(t=(i=c.dragState).startColumnLeft,n=i.startLeft,i=parseInt(l.style.left,10),o.width=o.realWidth=i-t,a.$emit("header-dragend",o.width,n-t,o,r),c.store.scheduleLayout(),document.body.style.cursor="",c.dragging=!1,c.draggingColumn=null,c.dragState={},a.resizeProxyVisible=!1),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,setTimeout(function(){Object(M.i)(s,"noclick")},0)},document.addEventListener("mousemove",u),document.addEventListener("mouseup",n))},handleMouseMove:function(e,t){if(!(t.children&&0<t.children.length)){for(var n,i,r=e.target;r&&"TH"!==r.tagName;)r=r.parentNode;t&&t.resizable&&!this.dragging&&this.border&&(n=r.getBoundingClientRect(),i=document.body.style,12<n.width&&n.right-e.pageX<8?(i.cursor="col-resize",Object(M.d)(r,"is-sortable")&&(r.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(i.cursor="",Object(M.d)(r,"is-sortable")&&(r.style.cursor="pointer"),this.draggingColumn=null))}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(e){var t=e.order,e=e.sortOrders;if(""===t)return e[0];t=e.indexOf(t||null);return e[t>e.length-2?0:t+1]},handleSortClick:function(e,t,n){e.stopPropagation();for(var i,r,o=t.order===n?null:n||this.toggleOrder(t),a=e.target;a&&"TH"!==a.tagName;)a=a.parentNode;a&&"TH"===a.tagName&&Object(M.d)(a,"noclick")?Object(M.i)(a,"noclick"):t.sortable&&(r=(i=this.store.states).sortProp,n=void 0,((e=i.sortingColumn)!==t||e===t&&null===e.order)&&(e&&(e.order=null),r=(i.sortingColumn=t).property),n=t.order=o||null,i.sortProp=r,i.sortOrder=n,this.store.commit("changeSortCondition"))}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},nn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},rn={name:"TisTableFooter",mixins:[$t],render:function(n){var a=this,s=[];return this.summaryMethod?s=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach(function(t,e){var n,i,r,o;0!==e?(n=a.store.states.data.map(function(e){return Number(e[t.property])}),i=[],r=!0,n.forEach(function(e){isNaN(e)||(r=!1,e=(""+e).split(".")[1],i.push(e?e.length:0))}),o=Math.max.apply(null,i),s[e]=r?"":n.reduce(function(e,t){var n=Number(t);return isNaN(n)?e:parseFloat((e+t).toFixed(Math.min(o,20)))},0)):s[e]=a.sumText}),n("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[n("colgroup",[this.columns.map(function(e){return n("col",{attrs:{name:e.id},key:e.id})}),this.hasGutter?n("col",{attrs:{name:"gutter"}}):""]),n("tbody",{class:[{"has-gutter":this.hasGutter}]},[n("tr",[this.columns.map(function(e,t){return n("td",{key:t,attrs:{colspan:e.colSpan,rowspan:e.rowSpan},class:a.getRowClasses(e,t)},[n("div",{class:["cell",e.labelClassName]},[s[t]])])}),this.hasGutter?n("th",{class:"gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:nn({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Bt({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),methods:{isCellHidden:function(e,t,n){if(!0===this.fixed||"left"===this.fixed)return e>=this.leftFixedLeafCount;if("right"!==this.fixed)return!(this.fixed||!n.fixed)||(e<this.leftFixedCount||e>=this.columnsCount-this.rightFixedCount);for(var i=0,r=0;r<e;r++)i+=t[r].colSpan;return i<this.columnsCount-this.rightFixedLeafCount},getRowClasses:function(e,t){var n=[e.id,e.align,e.labelClassName];return e.className&&n.push(e.className),this.isCellHidden(t,this.columns,e)&&n.push("is-hidden"),e.children||n.push("is-leaf"),n}}},on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},an=1,sn={name:"TisTable",mixins:[l.a,X.a],directives:{Mousewheel:Tt},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:tn,TableFooter:rn,TableBody:Xt,ElCheckbox:it},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(e){this.store.commit("setCurrentRow",e)},toggleRowSelection:function(e,t){this.store.toggleRowSelection(e,t,!1),this.store.updateAllSelected()},toggleRowExpansion:function(e,t){this.store.toggleRowExpansionAdapter(e,t)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(e){this.store.clearFilter(e)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){this.layout.updateScrollY()&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(e,t){var n,i=this.bodyWrapper;0<Math.abs(t.spinY)?(n=i.scrollTop,t.pixelY<0&&0!==n&&e.preventDefault(),0<t.pixelY&&i.scrollHeight-i.clientHeight>n&&e.preventDefault(),i.scrollTop+=Math.ceil(t.pixelY/5)):i.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,i=t.pixelY;Math.abs(n)>=Math.abs(i)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:Object(Ct.throttle)(20,function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,i=e.offsetWidth,r=e.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,e=o.fixedBodyWrapper,o=o.rightFixedBodyWrapper;a&&(a.scrollLeft=t),s&&(s.scrollLeft=t),e&&(e.scrollTop=n),o&&(o.scrollTop=n),this.scrollPosition=r-i-1<=t?"right":0===t?"left":"middle"}),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&b(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&_(this.$el,this.resizeListener)},resizeListener:function(){var e,t,n,i;this.$ready&&(e=!1,i=this.$el,n=(t=this.resizeState).width,t=t.height,n!==(n=i.offsetWidth)&&(e=!0),i=i.offsetHeight,(e=(this.height||this.shouldUpdateHeight)&&t!==i?!0:e)&&(this.resizeState.width=n,this.resizeState.height=i,this.doLayout()))},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:on({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||0<this.fixedColumns.length||0<this.rightFixedColumns.length},bodyWidth:function(){var e=this.layout,t=e.bodyWidth,n=e.scrollY,e=e.gutterWidth;return t?t-(n?e:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,i=e.bodyHeight,t=e.footerHeight,e=void 0===t?0:t;if(this.height)return{height:i?i+"px":""};if(this.maxHeight){t=Nt(this.maxHeight);if("number"==typeof t)return{"max-height":t-e-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var e=Nt(this.maxHeight);if("number"==typeof e)return e=this.layout.scrollX?e-this.layout.gutterWidth:e,this.showHeader&&(e-=this.layout.headerHeight),{"max-height":(e-=this.layout.footerHeight)+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var e="100%";return this.layout.appendHeight&&(e="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:e}}},Bt({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(e){this.layout.setHeight(e)}},maxHeight:{immediate:!0,handler:function(e){this.layout.setMaxHeight(e)}},currentRowKey:{immediate:!0,handler:function(e){this.rowKey&&this.store.setCurrentRowKey(e)}},data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},expandRowKeys:{immediate:!0,handler:function(e){e&&this.store.setExpandRowKeysAdapter(e)}}},created:function(){var e=this;this.tableId="el-table_"+an++,this.debouncedUpdateLayout=Object(Ct.debounce)(50,function(){return e.doLayout()})},mounted:function(){var t=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach(function(e){e.filteredValue&&e.filteredValue.length&&t.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})}),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var e=this.treeProps,t=e.hasChildren,e=e.children;return this.store=function(e,t){var n=1<arguments.length&&void 0!==t?t:{};if(!e)throw new Error("Table is required.");var i=new jt;return i.table=e,i.toggleAllSelection=N()(10,i._toggleAllSelection),Object.keys(n).forEach(function(e){i.states[e]=n[e]}),i}(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:void 0===t?"hasChildren":t,childrenColumnName:void 0===e?"children":e}),{layout:new Vt({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader}),isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},ln=Object(r.a)(sn,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{staticClass:"el-table",class:[{"el-table--fit":t.fit,"el-table--striped":t.stripe,"el-table--border":t.border||t.isGroup,"el-table--hidden":t.isHidden,"el-table--group":t.isGroup,"el-table--fluid-height":t.maxHeight,"el-table--scrollable-x":t.layout.scrollX,"el-table--scrollable-y":t.layout.scrollY,"el-table--enable-row-hover":!t.store.states.isComplex,"el-table--enable-row-transition":0!==(t.store.states.data||[]).length&&(t.store.states.data||[]).length<100},t.tableSize?"el-table--"+t.tableSize:""],on:{mouseleave:function(e){t.handleMouseLeave(e)}}},[e("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[t._t("default")],2),t.showHeader?e("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[e("table-header",{ref:"tableHeader",style:{width:t.layout.bodyWidth?t.layout.bodyWidth+"px":""},attrs:{store:t.store,border:t.border,"default-sort":t.defaultSort}})],1):t._e(),e("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[t.layout.scrollX?"is-scrolling-"+t.scrollPosition:"is-scrolling-none"],style:[t.bodyHeight]},[e("table-body",{style:{width:t.bodyWidth},attrs:{context:t.context,store:t.store,stripe:t.stripe,"row-class-name":t.rowClassName,"row-style":t.rowStyle,highlight:t.highlightCurrentRow}}),t.data&&0!==t.data.length?t._e():e("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:t.emptyBlockStyle},[e("span",{staticClass:"el-table__empty-text"},[t._t("empty",[t._v(t._s(t.emptyText||t.t("el.table.emptyText")))])],2)]),t.$slots.append?e("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[t._t("append")],2):t._e()],1),t.showSummary?e("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&0<t.data.length,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:t.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[e("table-footer",{style:{width:t.layout.bodyWidth?t.layout.bodyWidth+"px":""},attrs:{store:t.store,border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,"default-sort":t.defaultSort}})],1):t._e(),0<t.fixedColumns.length?e("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:t.layout.fixedWidth?t.layout.fixedWidth+"px":""},t.fixedHeight]},[t.showHeader?e("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[e("table-header",{ref:"fixedTableHeader",style:{width:t.bodyWidth},attrs:{fixed:"left",border:t.border,store:t.store}})],1):t._e(),e("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:t.layout.headerHeight+"px"},t.fixedBodyHeight]},[e("table-body",{style:{width:t.bodyWidth},attrs:{fixed:"left",store:t.store,stripe:t.stripe,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"row-style":t.rowStyle}}),t.$slots.append?e("div",{staticClass:"el-table__append-gutter",style:{height:t.layout.appendHeight+"px"}}):t._e()],1),t.showSummary?e("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&0<t.data.length,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[e("table-footer",{style:{width:t.bodyWidth},attrs:{fixed:"left",border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),0<t.rightFixedColumns.length?e("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:t.layout.rightFixedWidth?t.layout.rightFixedWidth+"px":"",right:t.layout.scrollY?(t.border?t.layout.gutterWidth:t.layout.gutterWidth||0)+"px":""},t.fixedHeight]},[t.showHeader?e("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[e("table-header",{ref:"rightFixedTableHeader",style:{width:t.bodyWidth},attrs:{fixed:"right",border:t.border,store:t.store}})],1):t._e(),e("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:t.layout.headerHeight+"px"},t.fixedBodyHeight]},[e("table-body",{style:{width:t.bodyWidth},attrs:{fixed:"right",store:t.store,stripe:t.stripe,"row-class-name":t.rowClassName,"row-style":t.rowStyle,highlight:t.highlightCurrentRow}}),t.$slots.append?e("div",{staticClass:"el-table__append-gutter",style:{height:t.layout.appendHeight+"px"}}):t._e()],1),t.showSummary?e("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&0<t.data.length,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[e("table-footer",{style:{width:t.bodyWidth},attrs:{fixed:"right",border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),0<t.rightFixedColumns.length?e("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:t.layout.scrollY?t.layout.gutterWidth+"px":"0",height:t.layout.headerHeight+"px"}}):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])},[],!1,null,null,null).exports;ln.install=function(e){e.component(ln.name,ln)};var un=ln,cn={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},hn={selection:{renderHeader:function(e,t){t=t.store;return e("tis-checkbox",{attrs:{disabled:t.states.data&&0===t.states.data.length,indeterminate:0<t.states.selection.length&&!this.isAllSelected,value:this.isAllSelected},nativeOn:{click:this.toggleAllSelection}})},renderCell:function(e,t){var n=t.row,i=t.column,r=t.store,t=t.$index;return e("tis-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:r.isSelected(n),disabled:!!i.selectable&&!i.selectable.call(null,n,t)},on:{input:function(){r.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(e,t){return t.column.label||"#"},renderCell:function(e,t){var n=t.$index,i=n+1,t=t.column.index;return"number"==typeof t?i=n+t:"function"==typeof t&&(i=t(n)),e("div",[i])},sortable:!1},expand:{renderHeader:function(e,t){return t.column.label||""},renderCell:function(e,t){var n=t.row,i=t.store,t=["el-table__expand-icon"];-1<i.states.expandRows.indexOf(n)&&t.push("el-table__expand-icon--expanded");return e("div",{class:t,on:{click:function(e){e.stopPropagation(),i.toggleRowExpansion(n)}}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function dn(e,t){var n=t.row,i=t.column,r=t.$index,t=i.property,t=t&&Object(x.h)(n,t).v;return i&&i.formatter?i.formatter(n,i,t,r):t}function pn(e,t){var n=t.row,i=t.treeNode,r=t.store;if(!i)return null;var o,a=[];return i.indent&&a.push(e("span",{class:"el-table__indent",style:{"padding-left":i.indent+"px"}})),"boolean"!=typeof i.expanded||i.noLazyChildren?a.push(e("span",{class:"el-table__placeholder"})):(o=["el-table__expand-icon",i.expanded?"el-table__expand-icon--expanded":""],t=["el-icon-arrow-right"],i.loading&&(t=["el-icon-loading"]),a.push(e("div",{class:o,on:{click:function(e){e.stopPropagation(),r.loadOrToggle(n)}}},[e("i",{class:t})]))),a}function fn(){return{dayNamesShort:Dn.map(function(e){return Object(P.b)("el.datepicker.weeks."+e)}),dayNames:Dn.map(function(e){return Object(P.b)("el.datepicker.weeks."+e)}),monthNamesShort:In.map(function(e){return Object(P.b)("el.datepicker.months."+e)}),monthNames:In.map(function(e,t){return Object(P.b)("el.datepicker.month"+(t+1))}),amPm:["am","pm"]}}function mn(e){return e instanceof Date}function gn(e,t){var n;return(e=On(n=e)?new Date(n):null)?kn.a.format(e,t||"yyyy-MM-dd",fn()):""}function vn(e,t){return kn.a.parse(e,t||"yyyy-MM-dd",fn())}function yn(e,t){return 3===t||5===t||8===t||10===t?30:1===t?e%4==0&&e%100!=0||e%400==0?29:28:31}function xn(e){return(e=new Date(e.getTime())).setDate(1),e.getDay()}function bn(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)}function _n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)}function wn(e){if(!On(e))return null;var t=new Date(e.getTime());return t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7),e=new Date(t.getFullYear(),0,4),1+Math.round(((t.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)}var Cn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Sn=1,An={name:"TisTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(e){return e.every(function(e){return-1<["ascending","descending",null].indexOf(e)})}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){for(var e=this.$parent;e&&!e.tableId;)e=e.$parent;return e},columnOrTableParent:function(){for(var e=this.$parent;e&&!e.tableId&&!e.columnId;)e=e.$parent;return e},realWidth:function(){return Ot(this.width)},realMinWidth:function(){return void 0!==(e=this.minWidth)&&(e=Ot(e),isNaN(e)&&(e=80)),e;var e},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var n=this,e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.reduce(function(t,e){return Array.isArray(e)&&e.forEach(function(e){t[e]=n[e]}),t},{})},getColumnElIndex:function(e,t){return[].indexOf.call(e,t)},setColumnWidth:function(e){return this.realWidth&&(e.width=this.realWidth),this.realMinWidth&&(e.minWidth=this.realMinWidth),e.minWidth||(e.minWidth=80),e.realWidth=void 0===e.width?e.minWidth:e.width,e},setColumnForcedProps:function(n){var e=n.type,i=hn[e]||{};return Object.keys(i).forEach(function(e){var t=i[e];void 0!==t&&(n[e]="className"===e?n[e]+" "+t:t)}),n},setColumnRenders:function(o){var a=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==o.type&&(o.renderHeader=function(e,t){var n=a.$scopedSlots.header;return n?n(t):o.label});var s=o.renderCell;return"expand"===o.type?(o.renderCell=function(e,t){return e("div",{class:"cell"},[s(e,t)])},this.owner.renderExpanded=function(e,t){return a.$scopedSlots.default?a.$scopedSlots.default(t):a.$slots.default}):(s=s||dn,o.renderCell=function(e,t){var n=null,n=a.$scopedSlots.default?a.$scopedSlots.default(t):s(e,t),i=pn(e,t),r={class:"cell",style:{}};return o.showOverflowTooltip&&(r.class+=" el-tooltip",r.style={width:(t.column.realWidth||t.column.width)-1+"px"}),e("div",r,[i,n])}),o},registerNormalWatchers:function(){var n=this,i={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},e=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"].reduce(function(e,t){return e[t]=t,e},i);Object.keys(e).forEach(function(e){var t=i[e];n.$watch(e,function(e){n.columnConfig[t]=e})})},registerComplexWatchers:function(){var n=this,i={realWidth:"width",realMinWidth:"minWidth"},e=["fixed"].reduce(function(e,t){return e[t]=t,e},i);Object.keys(e).forEach(function(e){var t=i[e];n.$watch(e,function(e){n.columnConfig[t]=e,n.owner.store.scheduleLayout("fixed"===t)})})}},components:{ElCheckbox:it},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var e=this.columnOrTableParent;this.isSubColumn=this.owner!==e,this.columnId=(e.tableId||e.columnId)+"_column_"+Sn++;var t=this.type||"default",e=""===this.sortable||this.sortable,e=It(Cn({},cn[t],{id:this.columnId,type:t,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:e,index:this.index}),e=this.getPropsData(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]));e=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps)(e),this.columnConfig=e,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var e=this.owner,t=this.columnOrTableParent,n=(this.isSubColumn?t.$el:t.$refs.hiddenColumns).children,n=this.getColumnElIndex(n,this.$el);e.store.commit("insertColumn",this.columnConfig,n,this.isSubColumn?t.columnConfig:null)},destroyed:function(){var e;this.$parent&&(e=this.$parent,this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?e.columnConfig:null))},render:function(e){return e("div",this.$slots.default)},install:function(e){e.component(An.name,An)}},Mn=An,Tn=n(38),kn=n.n(Tn),Dn=["sun","mon","tue","wed","thu","fri","sat"],In=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],On=function(e){return null!=e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))};function Nn(e,t,n,i){for(var r=t;r<n;r++)e[r]=i}function Ln(e,t,n,i){return new Date(t,n,i,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Pn(e,t,n,i){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,i,e.getMilliseconds())}function En(e,t){return null!=e&&t?(t=vn(t,"HH:mm:ss"),Pn(e,t.getHours(),t.getMinutes(),t.getSeconds())):e}function Hn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function zn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)}function Rn(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;function i(e){return kn.a.parse(kn.a.format(e,n),n)}var r=i(e),t=t.map(function(e){return e.map(i)});if(t.some(function(e){return r>=e[0]&&r<=e[1]}))return e;var o=t[0][0],a=t[0][0];return t.forEach(function(e){o=new Date(Math.min(e[0],o)),a=new Date(Math.max(e[1],o))}),Ln(r<o?o:a,e.getFullYear(),e.getMonth(),e.getDate())}function jn(e,t,n){return Rn(e,t,n).getTime()===e.getTime()}function Bn(e,t,n){var i=Math.min(e.getDate(),yn(t,n));return Ln(e,t,n,i)}function Fn(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?Bn(e,t-1,11):Bn(e,t,n-1)}function Vn(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?Bn(e,t+1,0):Bn(e,t,n+1)}function $n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),i=e.getMonth();return Bn(e,n-t,i)}function Yn(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),i=e.getMonth();return Bn(e,n+t,i)}function Wn(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()}function Xn(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()}function Gn(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function Un(e,t){return"timestamp"===t?e.getTime():gn(e,t)}function qn(e,t){return"timestamp"===t?new Date(Number(e)):vn(e,t)}function Zn(e,t,n){return e?(0,(vi[n]||vi.default).parser)(e,t||pi[n],3<arguments.length&&void 0!==arguments[3]?arguments[3]:"-"):null}function Kn(e,t,n){return e?(0,(vi[n]||vi.default).formatter)(e,t||pi[n]):null}function Qn(e,n){function i(e,t){var n=e instanceof Date,i=t instanceof Date;return n&&i?e.getTime()===t.getTime():!n&&!i&&e===t}var t=e instanceof Array,r=n instanceof Array;return t&&r?e.length===n.length&&e.every(function(e,t){return i(e,n[t])}):!t&&!r&&i(e,n)}function Jn(e){return"string"==typeof e||e instanceof String}function ei(e){return new Date(e.getFullYear(),e.getMonth())}function ti(e){return"number"==typeof e||"string"==typeof e?ei(new Date(e)).getTime():e instanceof Date?ei(e).getTime():NaN}function ni(e){return"number"==typeof e||"string"==typeof e?Hn(new Date(e)).getTime():e instanceof Date?Hn(e).getTime():NaN}function ii(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),_n(new Date(e),1)]:[new Date,_n(new Date,1)]}function ri(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Vn(new Date(e))]:[new Date,Vn(new Date)]}function oi(e){return"daterange"===e||"datetimerange"===e?Hi:"monthrange"===e?Ri:Pi}function ai(e){return 2<=(e=(e||"").split(":")).length?{hours:parseInt(e[0],10),minutes:parseInt(e[1],10)}:null}function si(e,t){return e=ai(e),t=ai(t),e=e.minutes+60*e.hours,t=t.minutes+60*t.hours,e===t?0:t<e?1:-1}function li(e){return Ln(Xi,e.getFullYear(),e.getMonth(),e.getDate())}function ui(e,t){return new Date(Math.min(e.getTime()+t,li(e).getTime()))}function ci(e,t,n){t=t.expression?t.value:t.arg,(t=n.context.$refs[t])&&(Array.isArray(t)?t[0].$refs.reference=e:t.$refs.reference=e)}var hi=function(e){return Array.apply(null,{length:e}).map(function(e,t){return t})},di={props:{appendToBody:c.a.props.appendToBody,offset:c.a.props.offset,boundariesPadding:c.a.props.boundariesPadding,arrowOffset:c.a.props.arrowOffset},methods:c.a.methods,data:function(){return Object(kt.a)({visibleArrow:!0},c.a.data)},beforeDestroy:c.a.beforeDestroy},pi={date:"yyyy-MM-dd",month:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy"},fi=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates"],mi=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],e=e[1];if(n&&e)return[Un(n,t),Un(e,t)]}return""},gi=function(e,t,n){if(2!==(e=!Array.isArray(e)?e.split(n):e).length)return[];n=e[0],e=e[1];return[qn(n,t),qn(e,t)]},vi={default:{formatter:function(e){return e?""+e:""},parser:function(e){return void 0===e||""===e?null:e}},week:{formatter:function(e,t){var n=wn(e),i=e.getMonth(),e=new Date(e);1===n&&11===i&&(e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7));t=gn(e,t);return t=/WW/.test(t)?t.replace(/WW/,n<10?"0"+n:n):t.replace(/W/,n)},parser:function(e,t){return vi.date.parser(e,t)}},date:{formatter:Un,parser:qn},datetime:{formatter:Un,parser:qn},daterange:{formatter:mi,parser:gi},monthrange:{formatter:mi,parser:gi},datetimerange:{formatter:mi,parser:gi},timerange:{formatter:mi,parser:gi},time:{formatter:Un,parser:qn},month:{formatter:Un,parser:qn},year:{formatter:Un,parser:qn},number:{formatter:function(e){return e?""+e:""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}},dates:{formatter:function(e,t){return e.map(function(e){return Un(e,t)})},parser:function(e,t){return("string"==typeof e?e.split(", "):e).map(function(e){return e instanceof Date?e:qn(e,t)})}}},yi={left:"bottom-start",center:"bottom",right:"bottom-end"},xi=function(e){return null==e||Jn(e)||Array.isArray(e)&&2===e.length&&e.every(Jn)},bi={mixins:[a.a,di],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:xi},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:xi},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:u.a},directives:{Clickoutside:L.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(e){this.readonly||this.pickerDisabled||(e?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(e){this.picker&&(this.picker.value=e)}},defaultValue:function(e){this.picker&&(this.picker.defaultValue=e)},value:function(e,t){Qn(e,t)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",e)}},computed:{ranged:function(){return-1<this.type.indexOf("range")},reference:function(){var e;return(e=this.$refs.reference).$el||e},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var e=this.value;if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1}else if(e)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"day"},haveTrigger:function(){return void 0!==this.showTrigger?this.showTrigger:-1!==fi.indexOf(this.type)},displayValue:function(){var e=Kn(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||e&&e[0]||"",this.userInput[1]||e&&e[1]||""]:null!==this.userInput?this.userInput:e?"dates"===this.type?e.join(", "):e:""},parsedValue:function(){return this.value&&("time-select"===this.type||mn(this.value)||Array.isArray(this.value)&&this.value.every(mn)?this.value:this.valueFormat?Zn(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map(function(e){return new Date(e)}):new Date(this.value))},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var e={},t=void 0;return(t=this.ranged?this.id&&this.id[0]:this.id)&&(e.id=t),e},secondInputId:function(){var e={},t=void 0;return(t=this.ranged?this.id&&this.id[1]:t)&&(e.id=t),e}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=yi[this.align]||yi.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach(function(e){return e.blur()})},parseValue:function(e){var t=mn(e)||Array.isArray(e)&&e.every(mn);return this.valueFormat&&!t&&Zn(e,this.valueFormat,this.type,this.rangeSeparator)||e},formatToValue:function(e){var t=mn(e)||Array.isArray(e)&&e.every(mn);return this.valueFormat&&t?Kn(e,this.valueFormat,this.type,this.rangeSeparator):e},parseString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return Zn(e,this.format,t)},formatToString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return Kn(e,this.format,t)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){var e;!this.userInput||(e=this.parseString(this.displayValue))&&(this.picker.value=e,this.isValidValue(e)&&(this.emitInput(e),this.userInput=null)),""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(e){this.userInput?this.userInput=[e.target.value,this.userInput[1]]:this.userInput=[e.target.value,null]},handleEndInput:function(e){this.userInput?this.userInput=[this.userInput[0],e.target.value]:this.userInput=[null,e.target.value]},handleStartChange:function(e){var t=this.parseString(this.userInput&&this.userInput[0]);t&&(this.userInput=[this.formatToString(t),this.displayValue[1]],t=[t,this.picker.value&&this.picker.value[1]],this.picker.value=t,this.isValidValue(t)&&(this.emitInput(t),this.userInput=null))},handleEndChange:function(e){var t=this.parseString(this.userInput&&this.userInput[1]);t&&(this.userInput=[this.displayValue[0],this.formatToString(t)],t=[this.picker.value&&this.picker.value[0],t],this.picker.value=t,this.isValidValue(t)&&(this.emitInput(t),this.userInput=null))},handleClickIcon:function(e){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,e.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"==typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){var e;this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type&&(e=Zn(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen,this.emitInput(e)))},handleFieldReset:function(e){this.userInput=""===e?null:e},handleFocus:function(){var e=this.type;-1===fi.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(e){var t=this,n=e.keyCode;return 27===n?(this.pickerVisible=!1,void e.stopPropagation()):9!==n?13===n?(""!==this.userInput&&!this.isValidValue(this.parseString(this.displayValue))||(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void e.stopPropagation()):void(this.userInput?e.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(e)):void(this.ranged?setTimeout(function(){-1===t.refInput.indexOf(document.activeElement)&&(t.pickerVisible=!1,t.blur(),e.stopPropagation())},0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),e.stopPropagation()))},handleRangeClick:function(){var e=this.type;-1===fi.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var e=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick(function(){e.picker.adjustSpinners&&e.picker.adjustSpinners()}))},mountPicker:function(){var o=this;this.picker=new H.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",function(e){o.picker.format=e});function e(){var t,n,e,i,r=o.pickerOptions;for(i in r&&r.selectableRange&&(e=r.selectableRange,t=vi.datetimerange.parser,n=pi.timerange,e=Array.isArray(e)?e:[e],o.picker.selectableRange=e.map(function(e){return t(e,n,o.rangeSeparator)})),r)r.hasOwnProperty(i)&&"selectableRange"!==i&&(o.picker[i]=r[i]);o.format&&(o.picker.format=o.format)}e(),this.unwatchPickerOptions=this.$watch("pickerOptions",e,{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];o.userInput=null,o.pickerVisible=o.picker.visible=t,o.emitInput(e),o.picker.resetView&&o.picker.resetView()}),this.picker.$on("select-range",function(e,t,n){0!==o.refInput.length&&(n&&"min"!==n?"max"===n&&(o.refInput[1].setSelectionRange(e,t),o.refInput[1].focus()):(o.refInput[0].setSelectionRange(e,t),o.refInput[0].focus()))})},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"==typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(e){Qn(e,this.valueOnOpen)||(this.$emit("change",e),this.valueOnOpen=e,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",e))},emitInput:function(e){e=this.formatToValue(e);Qn(this.value,e)||this.$emit("input",e)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},_i=Object(r.a)(bi,function(){var t=this,e=t.$createElement,e=t._self._c||e;return t.ranged?e("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+t.type,t.pickerSize?"el-range-editor--"+t.pickerSize:"",t.pickerDisabled?"is-disabled":"",t.pickerVisible?"is-active":""],on:{click:t.handleRangeClick,mouseenter:t.handleMouseEnter,mouseleave:function(e){t.showClose=!1},keydown:t.handleKeydown}},[e("i",{class:["el-input__icon","el-range__icon",t.triggerClass]}),e("input",t._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:t.startPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[0]},domProps:{value:t.displayValue&&t.displayValue[0]},on:{input:t.handleStartInput,change:t.handleStartChange,focus:t.handleFocus}},"input",t.firstInputId,!1)),t._t("range-separator",[e("span",{staticClass:"el-range-separator"},[t._v(t._s(t.rangeSeparator))])]),e("input",t._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:t.endPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[1]},domProps:{value:t.displayValue&&t.displayValue[1]},on:{input:t.handleEndInput,change:t.handleEndChange,focus:t.handleFocus}},"input",t.secondInputId,!1)),t.haveTrigger?e("i",{staticClass:"el-input__icon el-range__close-icon",class:[t.showClose?""+t.clearIcon:""],on:{click:t.handleClickIcon}}):t._e()],2):e("tis-input",t._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+t.type,attrs:{readonly:!t.editable||t.readonly||"dates"===t.type||"week"===t.type,disabled:t.pickerDisabled,size:t.pickerSize,name:t.name,placeholder:t.placeholder,value:t.displayValue,validateEvent:!1},on:{focus:t.handleFocus,input:function(e){return t.userInput=e},change:t.handleChange},nativeOn:{keydown:function(e){return t.handleKeydown(e)},mouseenter:function(e){return t.handleMouseEnter(e)},mouseleave:function(e){t.showClose=!1}}},"tis-input",t.firstInputId,!1),[e("i",{staticClass:"el-input__icon",class:t.triggerClass,attrs:{slot:"prefix"},on:{click:t.handleFocus},slot:"prefix"}),t.haveTrigger?e("i",{staticClass:"el-input__icon",class:[t.showClose?""+t.clearIcon:""],attrs:{slot:"suffix"},on:{click:t.handleClickIcon},slot:"suffix"}):t._e()])},[],!1,null,null,null).exports,wi={components:{ElScrollbar:I},directives:{repeatClick:Fe},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return function(e){var t=[],n=[];if((e||[]).forEach(function(e){e=e.map(function(e){return e.getHours()});n=n.concat(function(e,t){for(var n=[],i=e;i<=t;i++)n.push(i);return n}(e[0],e[1]))}),n.length)for(var i=0;i<24;i++)t[i]=-1===n.indexOf(i);else for(var r=0;r<24;r++)t[r]=!1;return t}(this.selectableRange)},minutesList:function(){return e=this.selectableRange,r=this.hours,o=new Array(60),0<e.length?e.forEach(function(e){var t=e[0],n=e[1],i=t.getHours(),e=t.getMinutes(),t=n.getHours(),n=n.getMinutes();i===r&&t!==r?Nn(o,e,60,!0):i===r&&t===r?Nn(o,e,n+1,!0):i!==r&&t===r?Nn(o,0,n+1,!0):i<r&&r<t&&Nn(o,0,60,!0)}):Nn(o,0,60,!0),o;var e,r,o},arrowHourList:function(){var e=this.hours;return[0<e?e-1:void 0,e,e<23?e+1:void 0]},arrowMinuteList:function(){var e=this.minutes;return[0<e?e-1:void 0,e,e<59?e+1:void 0]},arrowSecondList:function(){var e=this.seconds;return[0<e?e-1:void 0,e,e<59?e+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var e=this;this.$nextTick(function(){e.arrowControl||e.bindScrollEvent()})},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(e,t){switch(e){case"hours":this.$emit("change",Pn(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Pn(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Pn(this.date,this.hours,this.minutes,t))}},handleClick:function(e,t){var n=t.value;t.disabled||(this.modifyDateField(e,n),this.emitSelectRange(e),this.adjustSpinner(e,n))},emitSelectRange:function(e){"hours"===e?this.$emit("select-range",0,2):"minutes"===e?this.$emit("select-range",3,5):"seconds"===e&&this.$emit("select-range",6,8),this.currentScrollbar=e},bindScrollEvent:function(){function e(t){n.$refs[t].wrap.onscroll=function(e){n.handleScroll(t,e)}}var n=this;e("hours"),e("minutes"),e("seconds")},handleScroll:function(e){var t=Math.min(Math.round((this.$refs[e].wrap.scrollTop-(.5*this.scrollBarHeight(e)-10)/this.typeItemHeight(e)+3)/this.typeItemHeight(e)),"hours"===e?23:59);this.modifyDateField(e,t)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(e){this.adjustSpinner(e,this[e])},adjustSpinner:function(e,t){var n;this.arrowControl||(n=this.$refs[e].wrap)&&(n.scrollTop=Math.max(0,t*this.typeItemHeight(e)))},scrollDown:function(e){var t=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,i=this.hoursList,r=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(e);e=0<e?1:-1;for(var a=i.length;a--&&o;)i[r=(r+e+i.length)%i.length]||o--;if(i[r])return}else r=(r+e+60)%60;this.modifyDateField(n,r),this.adjustSpinner(n,r),this.$nextTick(function(){return t.emitSelectRange(t.currentScrollbar)})},amPm:function(e){if(!("a"===this.amPmMode.toLowerCase()))return"";e=e<12?" am":" pm";return e="A"===this.amPmMode?e.toUpperCase():e},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},Ci=Object(r.a)(wi,function(){var i=this,e=i.$createElement,r=i._self._c||e;return r("div",{staticClass:"el-time-spinner",class:{"has-seconds":i.showSeconds}},[i.arrowControl?i._e():[r("tis-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){i.emitSelectRange("hours")},mousemove:function(e){i.adjustCurrentSpinner("hours")}}},i._l(i.hoursList,function(t,n){return r("li",{key:n,staticClass:"el-time-spinner__item",class:{active:n===i.hours,disabled:t},on:{click:function(e){i.handleClick("hours",{value:n,disabled:t})}}},[i._v(i._s(("0"+(i.amPmMode?n%12||12:n)).slice(-2))+i._s(i.amPm(n)))])}),0),r("tis-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){i.emitSelectRange("minutes")},mousemove:function(e){i.adjustCurrentSpinner("minutes")}}},i._l(i.minutesList,function(e,t){return r("li",{key:t,staticClass:"el-time-spinner__item",class:{active:t===i.minutes,disabled:!e},on:{click:function(e){i.handleClick("minutes",{value:t,disabled:!1})}}},[i._v(i._s(("0"+t).slice(-2)))])}),0),r("tis-scrollbar",{directives:[{name:"show",rawName:"v-show",value:i.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){i.emitSelectRange("seconds")},mousemove:function(e){i.adjustCurrentSpinner("seconds")}}},i._l(60,function(e,t){return r("li",{key:t,staticClass:"el-time-spinner__item",class:{active:t===i.seconds},on:{click:function(e){i.handleClick("seconds",{value:t,disabled:!1})}}},[i._v(i._s(("0"+t).slice(-2)))])}),0)],i.arrowControl?[r("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){i.emitSelectRange("hours")}}},[r("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:i.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),r("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:i.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),r("ul",{ref:"hours",staticClass:"el-time-spinner__list"},i._l(i.arrowHourList,function(e,t){return r("li",{key:t,staticClass:"el-time-spinner__item",class:{active:e===i.hours,disabled:i.hoursList[e]}},[i._v(i._s(void 0===e?"":("0"+(i.amPmMode?e%12||12:e)).slice(-2)+i.amPm(e)))])}),0)]),r("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){i.emitSelectRange("minutes")}}},[r("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:i.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),r("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:i.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),r("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},i._l(i.arrowMinuteList,function(e,t){return r("li",{key:t,staticClass:"el-time-spinner__item",class:{active:e===i.minutes}},[i._v("\n "+i._s(void 0===e?"":("0"+e).slice(-2))+"\n ")])}),0)]),i.showSeconds?r("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){i.emitSelectRange("seconds")}}},[r("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:i.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),r("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:i.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),r("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},i._l(i.arrowSecondList,function(e,t){return r("li",{key:t,staticClass:"el-time-spinner__item",class:{active:e===i.seconds}},[i._v("\n "+i._s(void 0===e?"":("0"+e).slice(-2))+"\n ")])}),0)]):i._e()]:i._e()],2)},[],!1,null,null,null).exports,Si={mixins:[l.a],components:{TimeSpinner:Ci},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick(function(){return t.$refs.spinner.emitSelectRange("hours")})):this.needInitAdjust=!0},value:function(e){var t=this,n=void 0;e instanceof Date?n=Rn(e,this.selectableRange,this.format):e||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick(function(e){return t.adjustSpinners()}),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){On(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(e){this.visible&&(this.date=zn(e),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(e,t){this.$emit("select-range",e,t),this.selectionRange=[e,t]},handleConfirm:function(){var e,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=arguments[1];n||(e=zn(Rn(this.date,this.selectableRange,this.format)),this.$emit("pick",e,t,n))},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t)return this.changeSelectionRange(n[t]),void e.preventDefault();38!==t&&40!==t||(this.$refs.spinner.scrollDown(n[t]),e.preventDefault())},isValidValue:function(e){return jn(e,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(e){var t=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),t=(t.indexOf(this.selectionRange[0])+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[t])}},mounted:function(){var e=this;this.$nextTick(function(){return e.handleConfirm(!0,!0)}),this.$emit("mounted")}},Ai=Object(r.a)(Si,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:t.popperClass},[e("div",{staticClass:"el-time-panel__content",class:{"has-seconds":t.showSeconds}},[e("time-spinner",{ref:"spinner",attrs:{"arrow-control":t.useArrow,"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,date:t.date},on:{change:t.handleChange,"select-range":t.setSelectionRange}})],1),e("div",{staticClass:"el-time-panel__footer"},[e("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:t.handleCancel}},[t._v(t._s(t.t("el.datepicker.cancel")))]),e("button",{staticClass:"el-time-panel__btn",class:{confirm:!t.disabled},attrs:{type:"button"},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t("el.datepicker.confirm")))])])])])},[],!1,null,null,null).exports,Mi={props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&On(e)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(t){var e,n,i,r={},o=new Date;return r.disabled="function"==typeof this.disabledDate&&(n=(n=e=t)%400==0||n%100!=0&&n%4==0?366:365,i=new Date(e,0,1),hi(n).map(function(e){return _n(i,e)}).every(this.disabledDate)),r.current=0<=Object(x.b)(Object(x.e)(this.value),function(e){return e.getFullYear()===t}),r.today=o.getFullYear()===t,r.default=this.defaultValue&&this.defaultValue.getFullYear()===t,r},handleYearTableClick:function(e){e=e.target;"A"===e.tagName&&(Object(M.d)(e.parentNode,"disabled")||(e=e.textContent||e.innerText,this.$emit("pick",Number(e))))}}},Ti=Object(r.a)(Mi,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("table",{staticClass:"el-year-table",on:{click:e.handleYearTableClick}},[t("tbody",[t("tr",[t("td",{staticClass:"available",class:e.getCellStyle(e.startYear+0)},[t("a",{staticClass:"cell"},[e._v(e._s(e.startYear))])]),t("td",{staticClass:"available",class:e.getCellStyle(e.startYear+1)},[t("a",{staticClass:"cell"},[e._v(e._s(e.startYear+1))])]),t("td",{staticClass:"available",class:e.getCellStyle(e.startYear+2)},[t("a",{staticClass:"cell"},[e._v(e._s(e.startYear+2))])]),t("td",{staticClass:"available",class:e.getCellStyle(e.startYear+3)},[t("a",{staticClass:"cell"},[e._v(e._s(e.startYear+3))])])]),t("tr",[t("td",{staticClass:"available",class:e.getCellStyle(e.startYear+4)},[t("a",{staticClass:"cell"},[e._v(e._s(e.startYear+4))])]),t("td",{staticClass:"available",class:e.getCellStyle(e.startYear+5)},[t("a",{staticClass:"cell"},[e._v(e._s(e.startYear+5))])]),t("td",{staticClass:"available",class:e.getCellStyle(e.startYear+6)},[t("a",{staticClass:"cell"},[e._v(e._s(e.startYear+6))])]),t("td",{staticClass:"available",class:e.getCellStyle(e.startYear+7)},[t("a",{staticClass:"cell"},[e._v(e._s(e.startYear+7))])])]),t("tr",[t("td",{staticClass:"available",class:e.getCellStyle(e.startYear+8)},[t("a",{staticClass:"cell"},[e._v(e._s(e.startYear+8))])]),t("td",{staticClass:"available",class:e.getCellStyle(e.startYear+9)},[t("a",{staticClass:"cell"},[e._v(e._s(e.startYear+9))])]),t("td"),t("td")])])])},[],!1,null,null,null).exports,ki={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||On(e)||Array.isArray(e)&&e.every(On)}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[l.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){ti(e)!==ti(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){ti(e)!==ti(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){t=new Date(t);return this.date.getFullYear()===t.getFullYear()&&Number(e.text)===t.getMonth()},getCellStyle:function(t){var e,n,i,r,o=this,a={},s=this.date.getFullYear(),l=new Date,u=t.text,c=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return a.disabled="function"==typeof this.disabledDate&&(i=yn(e=s,n=u),r=new Date(e,n,1),hi(i).map(function(e){return _n(r,e)}).every(this.disabledDate)),a.current=0<=Object(x.b)(Object(x.e)(this.value),function(e){return e.getFullYear()===s&&e.getMonth()===u}),a.today=l.getFullYear()===s&&l.getMonth()===u,a.default=c.some(function(e){return o.cellMatchesDate(t,e)}),t.inRange&&(a["in-range"]=!0,t.start&&(a["start-date"]=!0),t.end&&(a["end-date"]=!0)),a},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=ti(e),t=ti(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.rows,r=0,o=i.length;r<o;r++)for(var a=i[r],s=0,l=a.length;s<l;s++){var u=a[s],c=4*r+s,c=new Date(this.date.getFullYear(),c).getTime();u.inRange=e&&e<=c&&c<=t,u.start=e&&c===e,u.end=t&&c===t}},handleMouseMove:function(e){var t;!this.rangeState.selecting||"TD"===(t="DIV"===(t="A"===(t=e.target).tagName?t.parentNode.parentNode:t).tagName?t.parentNode:t).tagName&&(e=t.parentNode.rowIndex,t=t.cellIndex,this.rows[e][t].disabled||e===this.lastRow&&t===this.lastColumn||(this.lastRow=e,this.lastColumn=t,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*e+t)}})))},handleMonthTableClick:function(e){var t=e.target;"TD"===(t="DIV"===(t="A"===t.tagName?t.parentNode.parentNode:t).tagName?t.parentNode:t).tagName&&(Object(M.d)(t,"disabled")||(e=t.cellIndex,t=4*t.parentNode.rowIndex+e,e=this.getMonthOfCell(t),"range"===this.selectionMode?this.rangeState.selecting?(e>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:e}):this.$emit("pick",{minDate:e,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:e,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",t)))}},computed:{rows:function(){for(var o=this,e=this.tableRows,a=this.disabledDate,s=[],l=ti(new Date),u=0;u<3;u++)for(var c=e[u],t=0;t<4;t++)!function(e){var t=c[e];(t=t||{row:u,column:e,type:"normal",inRange:!1,start:!1,end:!1}).type="normal";var n=4*u+e,i=new Date(o.date.getFullYear(),n).getTime();t.inRange=i>=ti(o.minDate)&&i<=ti(o.maxDate),t.start=o.minDate&&i===ti(o.minDate),t.end=o.maxDate&&i===ti(o.maxDate),i===l&&(t.type="today"),t.text=n;var r=new Date(i);t.disabled="function"==typeof a&&a(r),t.selected=Object(x.a)(s,function(e){return e.getTime()===r.getTime()}),o.$set(c,e,t)}(t);return e}}},Di=Object(r.a)(ki,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("table",{staticClass:"el-month-table",on:{click:n.handleMonthTableClick,mousemove:n.handleMouseMove}},[i("tbody",n._l(n.rows,function(e,t){return i("tr",{key:t},n._l(e,function(e,t){return i("td",{key:t,class:n.getCellStyle(e)},[i("div",[i("a",{staticClass:"cell"},[n._v(n._s(n.t("el.datepicker.months."+n.months[e.text])))])])])}),0)}),0)])},[],!1,null,null,null).exports,Ii=["sun","mon","tue","wed","thu","fri","sat"],Oi={mixins:[l.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return 1<=e&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||On(e)||Array.isArray(e)&&e.every(On)}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return 3<e?7-e:-e},WEEKS:function(){var e=this.firstDayOfWeek;return Ii.concat(Ii).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return function(e,t){e=new Date(e,t,1),t=e.getDay();return bn(e,0===t?7:t)}(this.year,this.month)},rows:function(){for(var o=this,e=new Date(this.year,this.month,1),a=xn(e),s=yn(e.getFullYear(),e.getMonth()),l=yn(e.getFullYear(),0===e.getMonth()?11:e.getMonth()-1),a=0===a?7:a,u=this.offsetDay,t=this.tableRows,c=1,h=this.startDate,d=this.disabledDate,p=this.cellClassName,f="dates"===this.selectionMode?Object(x.e)(this.value):[],m=ni(new Date),g=0;g<6;g++){var v=t[g];this.showWeekNumber&&(v[0]||(v[0]={type:"week",text:wn(_n(h,7*g+1))}));for(var n,i,r,y=0;y<7;y++)!function(e){var t=v[o.showWeekNumber?e+1:e];(t=t||{row:g,column:e,type:"normal",inRange:!1,start:!1,end:!1}).type="normal";var n,i=_n(h,7*g+e-u).getTime();t.inRange=i>=ni(o.minDate)&&i<=ni(o.maxDate),t.start=o.minDate&&i===ni(o.minDate),t.end=o.maxDate&&i===ni(o.maxDate),i===m&&(t.type="today"),0<=g&&g<=1?(n=a+u<0?7+a+u:a+u)<=e+7*g?t.text=c++:(t.text=l-(n-e%7)+1+7*g,t.type="prev-month"):c<=s?t.text=c++:(t.text=c++-s,t.type="next-month");var r=new Date(i);t.disabled="function"==typeof d&&d(r),t.selected=Object(x.a)(f,function(e){return e.getTime()===r.getTime()}),t.customClass="function"==typeof p&&p(r),o.$set(v,o.showWeekNumber?e+1:e,t)}(y);"week"===this.selectionMode&&(n=this.showWeekNumber?1:0,i=this.showWeekNumber?7:6,r=this.isWeekActive(v[1+n]),v[n].inRange=r,v[n].start=r,v[i].inRange=r,v[i].end=r)}return t}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){ni(e)!==ni(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){ni(e)!==ni(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){t=new Date(t);return this.year===t.getFullYear()&&this.month===t.getMonth()&&Number(e.text)===t.getDate()},getCellClasses:function(t){var n=this,e=this.selectionMode,i=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],r=[];return"normal"!==t.type&&"today"!==t.type||t.disabled?r.push(t.type):(r.push("available"),"today"===t.type&&r.push("today")),"normal"===t.type&&i.some(function(e){return n.cellMatchesDate(t,e)})&&r.push("default"),"day"!==e||"normal"!==t.type&&"today"!==t.type||!this.cellMatchesDate(t,this.value)||r.push("current"),!t.inRange||"normal"!==t.type&&"today"!==t.type&&"week"!==this.selectionMode||(r.push("in-range"),t.start&&r.push("start-date"),t.end&&r.push("end-date")),t.disabled&&r.push("disabled"),t.selected&&r.push("selected"),t.customClass&&r.push(t.customClass),r.join(" ")},getDateOfCell:function(e,t){t=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return _n(this.startDate,t)},isWeekActive:function(e){if("week"!==this.selectionMode)return!1;var t=new Date(this.year,this.month,1),n=t.getFullYear(),i=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===i?11:i-1),t.setFullYear(0===i?n-1:n)),"next-month"===e.type&&(t.setMonth(11===i?0:i+1),t.setFullYear(11===i?n+1:n)),t.setDate(parseInt(e.text,10)),On(this.value)){e=(this.value.getDay()-this.firstDayOfWeek+7)%7-1;return bn(this.value,e).getTime()===t.getTime()}return!1},markRange:function(e,t){e=ni(e),t=ni(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.startDate,r=this.rows,o=0,a=r.length;o<a;o++)for(var s,l,u=r[o],c=0,h=u.length;c<h;c++)this.showWeekNumber&&0===c||(s=u[c],l=7*o+c+(this.showWeekNumber?-1:0),l=_n(i,l-this.offsetDay).getTime(),s.inRange=e&&e<=l&&l<=t,s.start=e&&l===e,s.end=t&&l===t)},handleMouseMove:function(e){var t;!this.rangeState.selecting||"TD"===(t="DIV"===(t="SPAN"===(t=e.target).tagName?t.parentNode.parentNode:t).tagName?t.parentNode:t).tagName&&(e=t.parentNode.rowIndex-1,t=t.cellIndex,this.rows[e][t].disabled||e===this.lastRow&&t===this.lastColumn||(this.lastRow=e,this.lastColumn=t,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(e,t)}})))},handleClick:function(e){var t,n,i,r=e.target;"TD"===(r="DIV"===(r="SPAN"===r.tagName?r.parentNode.parentNode:r).tagName?r.parentNode:r).tagName&&(t=r.parentNode.rowIndex-1,e="week"===this.selectionMode?1:r.cellIndex,(r=this.rows[t][e]).disabled||"week"===r.type||(n=this.getDateOfCell(t,e),"range"===this.selectionMode?this.rangeState.selecting?(n>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:n}):this.$emit("pick",{minDate:n,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:n,maxDate:null}),this.rangeState.selecting=!0):"day"===this.selectionMode?this.$emit("pick",n):"week"===this.selectionMode?(e=wn(n),i=n.getFullYear()+"w"+e,this.$emit("pick",{year:n.getFullYear(),week:e,value:i,date:n})):"dates"===this.selectionMode&&(i=this.value||[],i=r.selected?function(e,t){t="function"==typeof t?Object(x.b)(e,t):e.indexOf(t);return 0<=t?[].concat(e.slice(0,t),e.slice(t+1)):e}(i,function(e){return e.getTime()===n.getTime()}):[].concat(i,[n]),this.$emit("pick",i))))}}},Ni=Object(r.a)(Oi,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===n.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:n.handleClick,mousemove:n.handleMouseMove}},[i("tbody",[i("tr",[n.showWeekNumber?i("th",[n._v(n._s(n.t("el.datepicker.week")))]):n._e(),n._l(n.WEEKS,function(e,t){return i("th",{key:t},[n._v(n._s(n.t("el.datepicker.weeks."+e)))])})],2),n._l(n.rows,function(e,t){return i("tr",{key:t,staticClass:"el-date-table__row",class:{current:n.isWeekActive(e[1])}},n._l(e,function(e,t){return i("td",{key:t,class:n.getCellClasses(e)},[i("div",[i("span",[n._v("\n "+n._s(e.text)+"\n ")])])])}),0)})],2)])},[],!1,null,null,null).exports,Li={mixins:[l.a],directives:{Clickoutside:L.a},watch:{showTime:function(e){var n=this;e&&this.$nextTick(function(e){var t=n.$refs.input.$el;t&&(n.pickerWidth=t.getBoundingClientRect().width+10)})},value:function(e){"dates"===this.selectionMode&&this.value||(On(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){On(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick(function(){return t.$refs.timepicker.adjustSpinners()})},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){function e(e){r.$refs.timepicker.value=e}function t(e){r.$refs.timepicker.date=e}function n(e){r.$refs.timepicker.selectableRange=e}var i,r=this;this.$watch("value",e),this.$watch("date",t),this.$watch("selectableRange",n),i=this.timeFormat,r.$refs.timepicker.format=i,e(this.value),t(this.date),n(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t,n=this,i=arguments.length,r=Array(1<i?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];e?Array.isArray(e)?(t=e.map(function(e){return(n.showTime?zn:Hn)(e)}),this.$emit.apply(this,["pick",t].concat(r))):this.$emit.apply(this,["pick",(this.showTime?zn:Hn)(e)].concat(r)):this.$emit.apply(this,["pick",e].concat(r)),this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Fn(this.date)},nextMonth:function(){this.date=Vn(this.date)},prevYear:function(){"year"===this.currentView?this.date=$n(this.date,10):this.date=$n(this.date)},nextYear:function(){"year"===this.currentView?this.date=Yn(this.date,10):this.date=Yn(this.date)},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleTimePick:function(e,t,n){var i;On(e)?(i=this.value?Pn(this.value,e.getHours(),e.getMinutes(),e.getSeconds()):En(this.getDefaultValue(),this.defaultTime),this.date=i,this.emit(this.date,!0)):this.emit(e,!0),n||(this.timePickerVisible=t)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(e){"month"===this.selectionMode?(this.date=Ln(this.date,this.year,e,1),this.emit(this.date)):(this.date=Bn(this.date,this.year,e),this.currentView="date")},handleDatePick:function(e){var t;"day"===this.selectionMode?(t=this.value?Ln(this.value,e.getFullYear(),e.getMonth(),e.getDate()):En(e,this.defaultTime),this.checkDateWithinRange(t)||(t=Ln(this.selectableRange[0][0],e.getFullYear(),e.getMonth(),e.getDate())),this.date=t,this.emit(this.date,this.showTime)):"week"===this.selectionMode?this.emit(e.date):"dates"===this.selectionMode&&this.emit(e,!0)},handleYearPick:function(e){"year"===this.selectionMode?(this.date=Ln(this.date,e,0,1),this.emit(this.date)):(this.date=Bn(this.date,e,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){var e;"dates"===this.selectionMode?this.emit(this.value):(e=this.value||En(this.getDefaultValue(),this.defaultTime),this.date=new Date(e),this.emit(e))},resetView:function(){"month"===this.selectionMode?this.currentView="month":"year"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode;this.visible&&!this.timePickerVisible&&(-1!==[38,40,37,39].indexOf(t)&&(this.handleKeyControl(t),e.stopPropagation(),e.preventDefault()),13===t&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(e){for(var t={year:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setFullYear(e.getFullYear()+t)}},month:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setMonth(e.getMonth()+t)}},week:{38:-1,40:1,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+7*t)}},day:{38:-7,40:7,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+t)}}},n=this.selectionMode,i=this.date.getTime(),r=new Date(this.date.getTime());Math.abs(i-r.getTime())<=31536e6;){var o=t[n];if(o.offset(r,o[e]),"function"!=typeof this.disabledDate||!this.disabledDate(r)){this.date=r,this.$emit("pick",r,!0);break}}},handleVisibleTimeChange:function(e){e=vn(e,this.timeFormat);e&&this.checkDateWithinRange(e)&&(this.date=Ln(e,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(e){e=vn(e,this.dateFormat);e&&("function"==typeof this.disabledDate&&this.disabledDate(e)||(this.date=Pn(e,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)))},isValidValue:function(e){return e&&!isNaN(e)&&("function"!=typeof this.disabledDate||!this.disabledDate(e))&&this.checkDateWithinRange(e)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(e){return!(0<this.selectableRange.length)||jn(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:Ai,YearTable:Ti,MonthTable:Di,DateTable:Ni,ElInput:u.a,ElButton:te.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return wn(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:gn(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:gn(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var e=this.t("el.datepicker.year");if("year"!==this.currentView)return this.year+" "+e;var t=10*Math.floor(this.year/10);return e?t+" "+e+" - "+(9+t)+" "+e:t+" - "+(9+t)},timeFormat:function(){return this.format?Xn(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Wn(this.format):"yyyy-MM-dd"}}},Pi=Object(r.a)(Li,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":n.handleEnter,"after-leave":n.handleLeave}},[i("div",{directives:[{name:"show",rawName:"v-show",value:n.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":n.$slots.sidebar||n.shortcuts,"has-time":n.showTime},n.popperClass]},[i("div",{staticClass:"el-picker-panel__body-wrapper"},[n._t("sidebar"),n.shortcuts?i("div",{staticClass:"el-picker-panel__sidebar"},n._l(n.shortcuts,function(t,e){return i("button",{key:e,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(e){n.handleShortcutClick(t)}}},[n._v(n._s(t.text))])}),0):n._e(),i("div",{staticClass:"el-picker-panel__body"},[n.showTime?i("div",{staticClass:"el-date-picker__time-header"},[i("span",{staticClass:"el-date-picker__editor-wrap"},[i("tis-input",{attrs:{placeholder:n.t("el.datepicker.selectDate"),value:n.visibleDate,size:"small"},on:{input:function(e){return n.userInputDate=e},change:n.handleVisibleDateChange}})],1),i("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:n.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[i("tis-input",{ref:"input",attrs:{placeholder:n.t("el.datepicker.selectTime"),value:n.visibleTime,size:"small"},on:{focus:function(e){n.timePickerVisible=!0},input:function(e){return n.userInputTime=e},change:n.handleVisibleTimeChange}}),i("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":n.arrowControl,visible:n.timePickerVisible},on:{pick:n.handleTimePick,mounted:n.proxyTimePickerDataProperties}})],1)]):n._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==n.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===n.currentView||"month"===n.currentView}},[i("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":n.t("el.datepicker.prevYear")},on:{click:n.prevYear}}),i("button",{directives:[{name:"show",rawName:"v-show",value:"date"===n.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":n.t("el.datepicker.prevMonth")},on:{click:n.prevMonth}}),i("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:n.showYearPicker}},[n._v(n._s(n.yearLabel))]),i("span",{directives:[{name:"show",rawName:"v-show",value:"date"===n.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===n.currentView},attrs:{role:"button"},on:{click:n.showMonthPicker}},[n._v(n._s(n.t("el.datepicker.month"+(n.month+1))))]),i("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":n.t("el.datepicker.nextYear")},on:{click:n.nextYear}}),i("button",{directives:[{name:"show",rawName:"v-show",value:"date"===n.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":n.t("el.datepicker.nextMonth")},on:{click:n.nextMonth}})]),i("div",{staticClass:"el-picker-panel__content"},[i("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===n.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":n.selectionMode,"first-day-of-week":n.firstDayOfWeek,value:n.value,"default-value":n.defaultValue?new Date(n.defaultValue):null,date:n.date,"cell-class-name":n.cellClassName,"disabled-date":n.disabledDate},on:{pick:n.handleDatePick}}),i("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===n.currentView,expression:"currentView === 'year'"}],attrs:{value:n.value,"default-value":n.defaultValue?new Date(n.defaultValue):null,date:n.date,"disabled-date":n.disabledDate},on:{pick:n.handleYearPick}}),i("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===n.currentView,expression:"currentView === 'month'"}],attrs:{value:n.value,"default-value":n.defaultValue?new Date(n.defaultValue):null,date:n.date,"disabled-date":n.disabledDate},on:{pick:n.handleMonthPick}})],1)])],2),i("div",{directives:[{name:"show",rawName:"v-show",value:n.footerVisible&&"date"===n.currentView,expression:"footerVisible && currentView === 'date'"}],staticClass:"el-picker-panel__footer"},[i("tis-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==n.selectionMode,expression:"selectionMode !== 'dates'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:n.changeToNow}},[n._v("\n "+n._s(n.t("el.datepicker.now"))+"\n ")]),i("tis-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:n.confirm}},[n._v("\n "+n._s(n.t("el.datepicker.confirm"))+"\n ")])],1)])])},[],!1,null,null,null).exports,Ei={mixins:[l.a],directives:{Clickoutside:L.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?gn(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?gn(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?gn(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?gn(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Xn(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Wn(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var e=(this.leftMonth+1)%12,t=12<=this.leftMonth+1?1:0;return this.unlinkPanels&&new Date(this.leftYear+t,e)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12<=12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Vn(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(e){var t=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick(function(){var e;t.$refs.maxTimePicker&&t.maxDate&&t.maxDate<t.minDate&&(t.$refs.maxTimePicker.selectableRange=[[vn(gn(t.minDate,e="HH:mm:ss"),e),vn("23:59:59",e)]])}),e&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=e,this.$refs.minTimePicker.value=e)},maxDate:function(e){this.dateUserInput.max=null,this.timeUserInput.max=null,e&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=e,this.$refs.maxTimePicker.value=e)},minTimePickerVisible:function(e){var t=this;e&&this.$nextTick(function(){t.$refs.minTimePicker.date=t.minDate,t.$refs.minTimePicker.value=t.minDate,t.$refs.minTimePicker.adjustSpinners()})},maxTimePickerVisible:function(e){var t=this;e&&this.$nextTick(function(){t.$refs.maxTimePicker.date=t.maxDate,t.$refs.maxTimePicker.value=t.maxDate,t.$refs.maxTimePicker.adjustSpinners()})},value:function(e){var t,n,i;e?Array.isArray(e)&&(this.minDate=On(e[0])?new Date(e[0]):null,this.maxDate=On(e[1])?new Date(e[1]):null,this.minDate?(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate?(t=this.minDate.getFullYear(),n=this.minDate.getMonth(),i=this.maxDate.getFullYear(),e=this.maxDate.getMonth(),this.rightDate=t===i&&n===e?Vn(this.maxDate):this.maxDate):this.rightDate=Vn(this.leftDate)):(this.leftDate=ii(this.defaultValue)[0],this.rightDate=Vn(this.leftDate))):(this.minDate=null,this.maxDate=null)},defaultValue:function(e){var t,n;Array.isArray(this.value)||(t=(n=ii(e))[0],n=n[1],this.leftDate=t,this.rightDate=e&&e[1]&&this.unlinkPanels?n:Vn(this.leftDate))}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=ii(this.defaultValue)[0],this.rightDate=Vn(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleDateInput:function(e,t){(this.dateUserInput[t]=e).length!==this.dateFormat.length||(e=vn(e,this.dateFormat))&&("function"==typeof this.disabledDate&&this.disabledDate(new Date(e))||("min"===t?(this.minDate=Ln(this.minDate||new Date,e.getFullYear(),e.getMonth(),e.getDate()),this.leftDate=new Date(e),this.unlinkPanels||(this.rightDate=Vn(this.leftDate))):(this.maxDate=Ln(this.maxDate||new Date,e.getFullYear(),e.getMonth(),e.getDate()),this.rightDate=new Date(e),this.unlinkPanels||(this.leftDate=Fn(e)))))},handleDateChange:function(e,t){e=vn(e,this.dateFormat);e&&("min"===t?(this.minDate=Ln(this.minDate,e.getFullYear(),e.getMonth(),e.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Ln(this.maxDate,e.getFullYear(),e.getMonth(),e.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(e,t){var n=this;(this.timeUserInput[t]=e).length!==this.timeFormat.length||(e=vn(e,this.timeFormat))&&("min"===t?(this.minDate=Pn(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds()),this.$nextTick(function(e){return n.$refs.minTimePicker.adjustSpinners()})):(this.maxDate=Pn(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds()),this.$nextTick(function(e){return n.$refs.maxTimePicker.adjustSpinners()})))},handleTimeChange:function(e,t){e=vn(e,this.timeFormat);e&&("min"===t?(this.minDate=Pn(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Pn(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(e){var t=this,n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=En(e.minDate,i[0]),o=En(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout(function(){t.maxDate=o,t.minDate=r},10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleMinTimePick:function(e,t,n){this.minDate=this.minDate||new Date,e&&(this.minDate=Pn(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.minTimePickerVisible=t),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(e,t,n){this.maxDate&&e&&(this.maxDate=Pn(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.maxTimePickerVisible=t),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=$n(this.leftDate),this.unlinkPanels||(this.rightDate=Vn(this.leftDate))},leftPrevMonth:function(){this.leftDate=Fn(this.leftDate),this.unlinkPanels||(this.rightDate=Vn(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Yn(this.rightDate):(this.leftDate=Yn(this.leftDate),this.rightDate=Vn(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Vn(this.rightDate):(this.leftDate=Vn(this.leftDate),this.rightDate=Vn(this.leftDate))},leftNextYear:function(){this.leftDate=Yn(this.leftDate)},leftNextMonth:function(){this.leftDate=Vn(this.leftDate)},rightPrevYear:function(){this.rightDate=$n(this.rightDate)},rightPrevMonth:function(){this.rightDate=Fn(this.rightDate)},handleConfirm:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&On(e[0])&&On(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&On(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&On(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Ai,DateTable:Ni,ElInput:u.a,ElButton:te.a}},Hi=Object(r.a)(Ei,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){n.$emit("dodestroy")}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:n.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":n.$slots.sidebar||n.shortcuts,"has-time":n.showTime},n.popperClass]},[i("div",{staticClass:"el-picker-panel__body-wrapper"},[n._t("sidebar"),n.shortcuts?i("div",{staticClass:"el-picker-panel__sidebar"},n._l(n.shortcuts,function(t,e){return i("button",{key:e,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(e){n.handleShortcutClick(t)}}},[n._v(n._s(t.text))])}),0):n._e(),i("div",{staticClass:"el-picker-panel__body"},[n.showTime?i("div",{staticClass:"el-date-range-picker__time-header"},[i("span",{staticClass:"el-date-range-picker__editors-wrap"},[i("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[i("tis-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:n.rangeState.selecting,placeholder:n.t("el.datepicker.startDate"),value:n.minVisibleDate},on:{input:function(e){return n.handleDateInput(e,"min")},change:function(e){return n.handleDateChange(e,"min")}}})],1),i("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:n.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[i("tis-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:n.rangeState.selecting,placeholder:n.t("el.datepicker.startTime"),value:n.minVisibleTime},on:{focus:function(e){n.minTimePickerVisible=!0},input:function(e){return n.handleTimeInput(e,"min")},change:function(e){return n.handleTimeChange(e,"min")}}}),i("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":n.arrowControl,visible:n.minTimePickerVisible},on:{pick:n.handleMinTimePick,mounted:function(e){n.$refs.minTimePicker.format=n.timeFormat}}})],1)]),i("span",{staticClass:"el-icon-arrow-right"}),i("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[i("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[i("tis-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:n.rangeState.selecting,placeholder:n.t("el.datepicker.endDate"),value:n.maxVisibleDate,readonly:!n.minDate},on:{input:function(e){return n.handleDateInput(e,"max")},change:function(e){return n.handleDateChange(e,"max")}}})],1),i("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:n.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[i("tis-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:n.rangeState.selecting,placeholder:n.t("el.datepicker.endTime"),value:n.maxVisibleTime,readonly:!n.minDate},on:{focus:function(e){n.minDate&&(n.maxTimePickerVisible=!0)},input:function(e){return n.handleTimeInput(e,"max")},change:function(e){return n.handleTimeChange(e,"max")}}}),i("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":n.arrowControl,visible:n.maxTimePickerVisible},on:{pick:n.handleMaxTimePick,mounted:function(e){n.$refs.maxTimePicker.format=n.timeFormat}}})],1)])]):n._e(),i("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[i("div",{staticClass:"el-date-range-picker__header"},[i("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:n.leftPrevYear}}),i("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:n.leftPrevMonth}}),n.unlinkPanels?i("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!n.enableYearArrow},attrs:{type:"button",disabled:!n.enableYearArrow},on:{click:n.leftNextYear}}):n._e(),n.unlinkPanels?i("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!n.enableMonthArrow},attrs:{type:"button",disabled:!n.enableMonthArrow},on:{click:n.leftNextMonth}}):n._e(),i("div",[n._v(n._s(n.leftLabel))])]),i("date-table",{attrs:{"selection-mode":"range",date:n.leftDate,"default-value":n.defaultValue,"min-date":n.minDate,"max-date":n.maxDate,"range-state":n.rangeState,"disabled-date":n.disabledDate,"cell-class-name":n.cellClassName,"first-day-of-week":n.firstDayOfWeek},on:{changerange:n.handleChangeRange,pick:n.handleRangePick}})],1),i("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[i("div",{staticClass:"el-date-range-picker__header"},[n.unlinkPanels?i("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!n.enableYearArrow},attrs:{type:"button",disabled:!n.enableYearArrow},on:{click:n.rightPrevYear}}):n._e(),n.unlinkPanels?i("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!n.enableMonthArrow},attrs:{type:"button",disabled:!n.enableMonthArrow},on:{click:n.rightPrevMonth}}):n._e(),i("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:n.rightNextYear}}),i("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:n.rightNextMonth}}),i("div",[n._v(n._s(n.rightLabel))])]),i("date-table",{attrs:{"selection-mode":"range",date:n.rightDate,"default-value":n.defaultValue,"min-date":n.minDate,"max-date":n.maxDate,"range-state":n.rangeState,"disabled-date":n.disabledDate,"cell-class-name":n.cellClassName,"first-day-of-week":n.firstDayOfWeek},on:{changerange:n.handleChangeRange,pick:n.handleRangePick}})],1)])],2),n.showTime?i("div",{staticClass:"el-picker-panel__footer"},[i("tis-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:n.handleClear}},[n._v("\n "+n._s(n.t("el.datepicker.clear"))+"\n ")]),i("tis-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:n.btnDisabled},on:{click:function(e){n.handleConfirm(!1)}}},[n._v("\n "+n._s(n.t("el.datepicker.confirm"))+"\n ")])],1):n._e()])])},[],!1,null,null,null).exports,zi={mixins:[l.a],directives:{Clickoutside:L.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Yn(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){var t;e?Array.isArray(e)&&(this.minDate=On(e[0])?new Date(e[0]):null,this.maxDate=On(e[1])?new Date(e[1]):null,this.minDate?(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate?(t=this.minDate.getFullYear(),e=this.maxDate.getFullYear(),this.rightDate=t===e?Yn(this.maxDate):this.maxDate):this.rightDate=Yn(this.leftDate)):(this.leftDate=ri(this.defaultValue)[0],this.rightDate=Yn(this.leftDate))):(this.minDate=null,this.maxDate=null)},defaultValue:function(e){var t,n;Array.isArray(this.value)||(t=(n=ri(e))[0],n=n[1],this.leftDate=t,this.rightDate=e&&e[1]&&t.getFullYear()!==n.getFullYear()&&this.unlinkPanels?n:Yn(this.leftDate))}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=ri(this.defaultValue)[0],this.rightDate=Yn(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=En(e.minDate,i[0]),o=En(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout(function(){t.maxDate=o,t.minDate=r},10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=$n(this.leftDate),this.unlinkPanels||(this.rightDate=$n(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Yn(this.leftDate)),this.rightDate=Yn(this.rightDate)},leftNextYear:function(){this.leftDate=Yn(this.leftDate)},rightPrevYear:function(){this.rightDate=$n(this.rightDate)},handleConfirm:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&On(e[0])&&On(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&On(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&On(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:Di,ElInput:u.a,ElButton:te.a}},Ri=Object(r.a)(zi,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){n.$emit("dodestroy")}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:n.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":n.$slots.sidebar||n.shortcuts},n.popperClass]},[i("div",{staticClass:"el-picker-panel__body-wrapper"},[n._t("sidebar"),n.shortcuts?i("div",{staticClass:"el-picker-panel__sidebar"},n._l(n.shortcuts,function(t,e){return i("button",{key:e,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(e){n.handleShortcutClick(t)}}},[n._v(n._s(t.text))])}),0):n._e(),i("div",{staticClass:"el-picker-panel__body"},[i("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[i("div",{staticClass:"el-date-range-picker__header"},[i("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:n.leftPrevYear}}),n.unlinkPanels?i("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!n.enableYearArrow},attrs:{type:"button",disabled:!n.enableYearArrow},on:{click:n.leftNextYear}}):n._e(),i("div",[n._v(n._s(n.leftLabel))])]),i("month-table",{attrs:{"selection-mode":"range",date:n.leftDate,"default-value":n.defaultValue,"min-date":n.minDate,"max-date":n.maxDate,"range-state":n.rangeState,"disabled-date":n.disabledDate},on:{changerange:n.handleChangeRange,pick:n.handleRangePick}})],1),i("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[i("div",{staticClass:"el-date-range-picker__header"},[n.unlinkPanels?i("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!n.enableYearArrow},attrs:{type:"button",disabled:!n.enableYearArrow},on:{click:n.rightPrevYear}}):n._e(),i("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:n.rightNextYear}}),i("div",[n._v(n._s(n.rightLabel))])]),i("month-table",{attrs:{"selection-mode":"range",date:n.rightDate,"default-value":n.defaultValue,"min-date":n.minDate,"max-date":n.maxDate,"range-state":n.rangeState,"disabled-date":n.disabledDate},on:{changerange:n.handleChangeRange,pick:n.handleRangePick}})],1)])],2)])])},[],!1,null,null,null).exports,ji={mixins:[_i],name:"TisDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=oi(e),this.mountPicker()):this.panel=oi(e)}},created:function(){this.panel=oi(this.type)},install:function(e){e.component(ji.name,ji)}},Bi=ji,Fi={components:{ElScrollbar:I},watch:{value:function(e){var t=this;e&&this.$nextTick(function(){return t.scrollToOption()})}},methods:{handleClick:function(e){e.disabled||this.$emit("pick",e.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".selected",t=this.$refs.popper.querySelector(".el-picker-panel__content");z(t,t.querySelector(e))},handleMenuEnter:function(){var e=this,t=-1!==this.items.map(function(e){return e.value}).indexOf(this.value),n=-1!==this.items.map(function(e){return e.value}).indexOf(this.defaultValue),i=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick(function(){return e.scrollToOption(i)})},scrollDown:function(e){for(var t=this.items,n=t.length,i=t.length,r=t.map(function(e){return e.value}).indexOf(this.value);i--;)if(!t[r=(r+e+n)%n].disabled)return void this.$emit("pick",t[r].value,!0)},isValidValue:function(e){return-1!==this.items.filter(function(e){return!e.disabled}).map(function(e){return e.value}).indexOf(e)},handleKeydown:function(e){var t=e.keyCode;38!==t&&40!==t||(t={40:1,38:-1}[t.toString()],this.scrollDown(t),e.stopPropagation())}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var e=this.start,t=this.end,n=this.step,i=[];if(e&&t&&n)for(var r=e;si(r,t)<=0;)i.push({value:r,disabled:si(r,this.minTime||"-1:-1")<=0||0<=si(r,this.maxTime||"100:100")}),r=function(e,t){e=ai(e),t=ai(t),e={hours:e.hours,minutes:e.minutes};return e.minutes+=t.minutes,e.hours+=t.hours,e.hours+=Math.floor(e.minutes/60),e.minutes=e.minutes%60,((e=e).hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)}(r,n);return i}}},Vi=Object(r.a)(Fi,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":n.handleMenuEnter,"after-leave":function(e){n.$emit("dodestroy")}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:n.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:n.popperClass,style:{width:n.width+"px"}},[i("tis-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},n._l(n.items,function(t){return i("div",{key:t.value,staticClass:"time-select-item",class:{selected:n.value===t.value,disabled:t.disabled,default:t.value===n.defaultValue},attrs:{disabled:t.disabled},on:{click:function(e){n.handleClick(t)}}},[n._v(n._s(t.value))])}),0)],1)])},[],!1,null,null,null).exports,$i={mixins:[_i],name:"TisTimeSelect",componentName:"TisTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=Vi},install:function(e){e.component($i.name,$i)}},Yi=$i,Wi=vn("00:00:00","HH:mm:ss"),Xi=vn("23:59:59","HH:mm:ss"),Gi={mixins:[l.a],components:{TimeSpinner:Ci},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(e){Array.isArray(e)?(this.minDate=new Date(e[0]),this.maxDate=new Date(e[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=ui(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=ui(new Date,36e5))},visible:function(e){var t=this;e&&(this.oldValue=this.value,this.$nextTick(function(){return t.$refs.minSpinner.emitSelectRange("hours")}))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(e){this.minDate=zn(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=zn(e),this.handleChange()},handleChange:function(){var e;this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[(e=this.minDate,Ln(Wi,e.getFullYear(),e.getMonth(),e.getDate())),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,li(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(e,t){this.$emit("select-range",e,t,"min"),this.selectionRange=[e,t]},setMaxSelectionRange:function(e,t){this.$emit("select-range",e,t,"max"),this.selectionRange=[e+this.offset,t+this.offset]},handleConfirm:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Rn(this.minDate,t,this.format),this.maxDate=Rn(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],e)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(e){var t=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),e=(t.indexOf(this.selectionRange[0])+e+t.length)%t.length,t=t.length/2;e<t?this.$refs.minSpinner.emitSelectRange(n[e]):this.$refs.maxSpinner.emitSelectRange(n[e-t])},isValidValue:function(e){return Array.isArray(e)&&jn(this.minDate,this.$refs.minSpinner.selectableRange)&&jn(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t)return this.changeSelectionRange(n[t]),void e.preventDefault();38!==t&&40!==t||(this.spinner.scrollDown(n[t]),e.preventDefault())}}},Ui=Object(r.a)(Gi,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:t.popperClass},[e("div",{staticClass:"el-time-range-picker__content"},[e("div",{staticClass:"el-time-range-picker__cell"},[e("div",{staticClass:"el-time-range-picker__header"},[t._v(t._s(t.t("el.datepicker.startTime")))]),e("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":t.showSeconds,"is-arrow":t.arrowControl}},[e("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,"arrow-control":t.arrowControl,date:t.minDate},on:{change:t.handleMinChange,"select-range":t.setMinSelectionRange}})],1)]),e("div",{staticClass:"el-time-range-picker__cell"},[e("div",{staticClass:"el-time-range-picker__header"},[t._v(t._s(t.t("el.datepicker.endTime")))]),e("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":t.showSeconds,"is-arrow":t.arrowControl}},[e("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,"arrow-control":t.arrowControl,date:t.maxDate},on:{change:t.handleMaxChange,"select-range":t.setMaxSelectionRange}})],1)])]),e("div",{staticClass:"el-time-panel__footer"},[e("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(e){t.handleCancel()}}},[t._v(t._s(t.t("el.datepicker.cancel")))]),e("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:t.btnDisabled},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t("el.datepicker.confirm")))])])])])},[],!1,null,null,null).exports,qi={mixins:[_i],name:"TisTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(e){this.picker?(this.unmountPicker(),this.type=e?"timerange":"time",this.panel=e?Ui:Ai,this.mountPicker()):(this.type=e?"timerange":"time",this.panel=e?Ui:Ai)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?Ui:Ai},install:function(e){e.component(qi.name,qi)}},Zi=qi,Ki={name:"TisPopover",mixins:[c.a],props:{trigger:{type:String,default:"click",validator:function(e){return-1<["click","focus","hover","manual"].indexOf(e)}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(x.g)()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var t=this,n=this.referenceElm=this.reference||this.$refs.reference,e=this.popper||this.$refs.popper;(n=!n&&this.$refs.wrapper.children?this.referenceElm=this.$refs.wrapper.children[0]:n)&&(Object(M.a)(n,"el-popover__reference"),n.setAttribute("aria-describedby",this.tooltipId),n.setAttribute("tabindex",this.tabindex),e.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(M.g)(n,"focusin",function(){t.handleFocus();var e=n.__vue__;e&&"function"==typeof e.focus&&e.focus()}),Object(M.g)(e,"focusin",this.handleFocus),Object(M.g)(n,"focusout",this.handleBlur),Object(M.g)(e,"focusout",this.handleBlur)),Object(M.g)(n,"keydown",this.handleKeydown),Object(M.g)(n,"click",this.handleClick)),"click"===this.trigger?(Object(M.g)(n,"click",this.doToggle),Object(M.g)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(M.g)(n,"mouseenter",this.handleMouseEnter),Object(M.g)(e,"mouseenter",this.handleMouseEnter),Object(M.g)(n,"mouseleave",this.handleMouseLeave),Object(M.g)(e,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),n.querySelector("input, textarea")?(Object(M.g)(n,"focusin",this.doShow),Object(M.g)(n,"focusout",this.doClose)):(Object(M.g)(n,"mousedown",this.doShow),Object(M.g)(n,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(M.a)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(M.i)(this.referenceElm,"focusing")},handleBlur:function(){Object(M.i)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout(function(){e.showPopper=!0},this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout(function(){e.showPopper=!1},this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(M.f)(e,"click",this.doToggle),Object(M.f)(e,"mouseup",this.doClose),Object(M.f)(e,"mousedown",this.doShow),Object(M.f)(e,"focusin",this.doShow),Object(M.f)(e,"focusout",this.doClose),Object(M.f)(e,"mousedown",this.doShow),Object(M.f)(e,"mouseup",this.doClose),Object(M.f)(e,"mouseleave",this.handleMouseLeave),Object(M.f)(e,"mouseenter",this.handleMouseEnter),Object(M.f)(document,"click",this.handleDocumentClick)}},Qi=Object(r.a)(Ki,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("span",[t("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?t("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),t("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},[],!1,null,null,null).exports,Ji={bind:function(e,t,n){ci(e,t,n)},inserted:function(e,t,n){ci(e,t,n)}};H.a.directive("popover",Ji),Qi.install=function(e){e.directive("popover",Ji),e.component(Qi.name,Qi)},Qi.directive=Ji;var er,tr=Qi,nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ir=ir||{};ir.Dialog=function(e,t,n){var i=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"==typeof t?this.focusAfterClosed=document.getElementById(t):"object"===(void 0===t?"undefined":nr(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"==typeof n?this.focusFirst=document.getElementById(n):"object"===(void 0===n?"undefined":nr(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():me.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,er=function(e){i.trapFocus(e)},this.addListeners()},ir.Dialog.prototype.addListeners=function(){document.addEventListener("focus",er,!0)},ir.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",er,!0)},ir.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout(function(){e.focusAfterClosed.focus()})},ir.Dialog.prototype.trapFocus=function(e){me.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(me.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&me.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))};var rr=ir.Dialog,or=void 0,ar={success:"success",info:"info",warning:"warning",error:"error"},sr={mixins:[W.b,l.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:u.a,ElButton:te.a},computed:{icon:function(){var e=this.type;return this.iconClass||(e&&ar[e]?"el-icon-"+ar[e]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var e=this,t=this.uid;return function(){e.$nextTick(function(){t===e.uid&&e.doClose()})}},doClose:function(){var e=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),or.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout(function(){e.action&&e.callback(e.action,e)}))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(e){"prompt"===this.$type&&"confirm"===e&&!this.validate()||(this.action=e,"function"==typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(e,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(P.b)("el.messagebox.error"),Object(M.a)(this.getInputElement(),"invalid"),!1;e=this.inputValidator;if("function"==typeof e){e=e(this.inputValue);if(!1===e)return this.editorErrorMessage=this.inputErrorMessage||Object(P.b)("el.messagebox.error"),Object(M.a)(this.getInputElement(),"invalid"),!1;if("string"==typeof e)return this.editorErrorMessage=e,Object(M.a)(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(M.i)(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var e=this.$el.querySelector(".el-message-box__btns .el-button"),t=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return e||t},getInputElement:function(){var e=this.$refs.input.$refs;return e.input||e.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(t){var n=this;this.$nextTick(function(e){"prompt"===n.$type&&null!==t&&n.validate()})}},visible:function(e){var t=this;e&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick(function(){t.$refs.confirm.$el.focus()}),this.focusAfterClosed=document.activeElement,or=new rr(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(e?setTimeout(function(){t.$refs.input&&t.$refs.input.$el&&t.getInputElement().focus()},500):(this.editorErrorMessage="",Object(M.i)(this.getInputElement(),"invalid")))}},mounted:function(){var e=this;this.$nextTick(function(){e.closeOnHashChange&&window.addEventListener("hashchange",e.close)})},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout(function(){or.closeDialog()})},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},lr=Object(r.a)(sr,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("transition",{attrs:{name:"msgbox-fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[e("div",{staticClass:"el-message-box",class:[t.customClass,t.center&&"el-message-box--center"]},[null!==t.title?e("div",{staticClass:"el-message-box__header"},[e("div",{staticClass:"el-message-box__title"},[t.icon&&t.center?e("div",{class:["el-message-box__status",t.icon]}):t._e(),e("span",[t._v(t._s(t.title))])]),t.showClose?e("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){t.handleAction(t.distinguishCancelAndClose?"close":"cancel")},keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction(t.distinguishCancelAndClose?"close":"cancel")}}},[e("i",{staticClass:"el-message-box__close el-icon-close"})]):t._e()]):t._e(),e("div",{staticClass:"el-message-box__content"},[e("div",{staticClass:"el-message-box__container"},[t.icon&&!t.center&&""!==t.message?e("div",{class:["el-message-box__status",t.icon]}):t._e(),""!==t.message?e("div",{staticClass:"el-message-box__message"},[t._t("default",[t.dangerouslyUseHTMLString?e("p",{domProps:{innerHTML:t._s(t.message)}}):e("p",[t._v(t._s(t.message))])])],2):t._e()]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[e("tis-input",{ref:"input",attrs:{type:t.inputType,placeholder:t.inputPlaceholder},nativeOn:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleInputEnter(e):null}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}),e("div",{staticClass:"el-message-box__errormsg",style:{visibility:t.editorErrorMessage?"visible":"hidden"}},[t._v(t._s(t.editorErrorMessage))])],1)]),e("div",{staticClass:"el-message-box__btns"},[t.showCancelButton?e("tis-button",{class:[t.cancelButtonClasses],attrs:{loading:t.cancelButtonLoading,round:t.roundButton,size:"small"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction("cancel")}},nativeOn:{click:function(e){t.handleAction("cancel")}}},[t._v("\n "+t._s(t.cancelButtonText||t.t("el.messagebox.cancel"))+"\n ")]):t._e(),e("tis-button",{directives:[{name:"show",rawName:"v-show",value:t.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[t.confirmButtonClasses],attrs:{loading:t.confirmButtonLoading,round:t.roundButton,size:"small"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction("confirm")}},nativeOn:{click:function(e){t.handleAction("confirm")}}},[t._v("\n "+t._s(t.confirmButtonText||t.t("el.messagebox.confirm"))+"\n ")])],1)])])])},[],!1,null,null,null).exports,ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function cr(e){return null!==e&&"object"===(void 0===e?"undefined":ur(e))&&Object(x.j)(e,"componentOptions")}function hr(e){var t;vr&&("function"==typeof(t=vr.callback)&&(yr.showInput?t(yr.inputValue,e):t(e)),vr.resolve&&("confirm"===e?yr.showInput?vr.resolve({value:yr.inputValue,action:e}):vr.resolve(e):!vr.reject||"cancel"!==e&&"close"!==e||vr.reject(e)))}function dr(){if(yr||((yr=new gr({el:document.createElement("div")})).callback=hr),yr.action="",(!yr.visible||yr.closeTimer)&&0<xr.length){var e,t=(vr=xr.shift()).options;for(e in t)t.hasOwnProperty(e)&&(yr[e]=t[e]);void 0===t.callback&&(yr.callback=hr);var n=yr.callback;yr.callback=function(e,t){n(e,t),dr()},cr(yr.message)?(yr.$slots.default=[yr.message],yr.message=null):delete yr.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach(function(e){void 0===yr[e]&&(yr[e]=!0)}),document.body.appendChild(yr.$el),H.a.nextTick(function(){yr.visible=!0})}}function pr(n,i){if(!H.a.prototype.$isServer){if("string"==typeof n||cr(n)?(n={message:n},"string"==typeof arguments[1]&&(n.title=arguments[1])):n.callback&&!i&&(i=n.callback),"undefined"!=typeof Promise)return new Promise(function(e,t){xr.push({options:Object(kt.a)({},mr,pr.defaults,n),callback:i,resolve:e,reject:t}),dr()});xr.push({options:Object(kt.a)({},mr,pr.defaults,n),callback:i}),dr()}}var fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mr={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},gr=H.a.extend(lr),vr=void 0,yr=void 0,xr=[];pr.setDefaults=function(e){pr.defaults=e},pr.alert=function(e,t,n){return"object"===(void 0===t?"undefined":fr(t))?(n=t,t=""):void 0===t&&(t=""),pr(Object(kt.a)({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},pr.confirm=function(e,t,n){return"object"===(void 0===t?"undefined":fr(t))?(n=t,t=""):void 0===t&&(t=""),pr(Object(kt.a)({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},pr.prompt=function(e,t,n){return"object"===(void 0===t?"undefined":fr(t))?(n=t,t=""):void 0===t&&(t=""),pr(Object(kt.a)({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},pr.close=function(){yr.doClose(),yr.visible=!1,xr=[],vr=null};var br=pr,_r={name:"TisBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var e=this.$el.querySelectorAll(".el-breadcrumb__item");e.length&&e[e.length-1].setAttribute("aria-current","page")}},wr=Object(r.a)(_r,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[this._t("default")],2)},[],!1,null,null,null).exports;wr.install=function(e){e.component(wr.name,wr)};var Cr=wr,Sr={name:"TisBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var i=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var e=this.$refs.link;e.setAttribute("role","link"),e.addEventListener("click",function(e){var t=i.to,n=i.$router;t&&n&&(i.replace?n.replace(t):n.push(t))})}},Ar=Object(r.a)(Sr,function(){var e=this.$createElement,e=this._self._c||e;return e("span",{staticClass:"el-breadcrumb__item"},[e("span",{ref:"link",class:["el-breadcrumb__inner",this.to?"is-link":""],attrs:{role:"link"}},[this._t("default")],2),this.separatorClass?e("i",{staticClass:"el-breadcrumb__separator",class:this.separatorClass}):e("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[this._v(this._s(this.separator))])])},[],!1,null,null,null).exports;Ar.install=function(e){e.component(Ar.name,Ar)};var Mr=Ar,Tr={name:"TisForm",componentName:"TisForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach(function(e){e.removeValidateEvents(),e.addValidateEvents()}),this.validateOnRuleChange&&this.validate(function(){})}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var e=Math.max.apply(Math,this.potentialLabelWidthArr);return e?e+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var t=this;this.$on("el.form.addField",function(e){e&&t.fields.push(e)}),this.$on("el.form.removeField",function(e){e.prop&&t.fields.splice(t.fields.indexOf(e),1)})},methods:{resetFields:function(){this.model?this.fields.forEach(function(e){e.resetField()}):console.warn("[Tis Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];(t.length?"string"==typeof t?this.fields.filter(function(e){return t===e.prop}):this.fields.filter(function(e){return-1<t.indexOf(e.prop)}):this.fields).forEach(function(e){e.clearValidate()})},validate:function(i){var n=this;if(this.model){var e=void 0;"function"!=typeof i&&window.Promise&&(e=new window.Promise(function(t,n){i=function(e){(e?t:n)(e)}}));var r=!0,o=0;0===this.fields.length&&i&&i(!0);var a={};return this.fields.forEach(function(e){e.validate("",function(e,t){e&&(r=!1),a=Object(kt.a)({},a,t),"function"==typeof i&&++o===n.fields.length&&i(r,a)})}),e||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(t,n){t=[].concat(t);var e=this.fields.filter(function(e){return-1!==t.indexOf(e.prop)});e.length?e.forEach(function(e){e.validate("",n)}):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(e){var t=this.potentialLabelWidthArr.indexOf(e);if(-1===t)throw new Error("[ElementForm]unpected width ",e);return t},registerLabelWidth:function(e,t){e&&t?(t=this.getLabelWidthIndex(t),this.potentialLabelWidthArr.splice(t,1,e)):e&&this.potentialLabelWidthArr.push(e)},deregisterLabelWidth:function(e){e=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(e,1)}}},kr=Object(r.a)(Tr,function(){var e=this.$createElement;return(this._self._c||e)("form",{staticClass:"el-form",class:[this.labelPosition?"el-form--label-"+this.labelPosition:"",{"el-form--inline":this.inline}]},[this._t("default")],2)},[],!1,null,null,null).exports;kr.install=function(e){e.component(kr.name,kr)};var Dr=kr,Ir=n(89),Or=n.n(Ir),Nr=n(50),Lr=n.n(Nr),Pr=/%[sdj%]/g;function Er(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,r=t[0],o=t.length;if("function"==typeof r)return r.apply(null,t.slice(1));if("string"!=typeof r)return r;for(var a=String(r).replace(Pr,function(e){if("%%"===e)return"%";if(o<=i)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(e){return"[Circular]"}break;default:return e}}),s=t[i];i<o;s=t[++i])a+=" "+s;return a}function Hr(e,t){return null==e||("array"===t&&Array.isArray(e)&&!e.length||!("string"!==(t=t)&&"url"!==t&&"hex"!==t&&"email"!==t&&"pattern"!==t||"string"!=typeof e||e))}function zr(n,i,r){var o=0,a=n.length;!function e(t){t&&t.length?r(t):(t=o,o+=1,t<a?i(n[t],e):r([]))}([])}function Rr(l,e,u,t){var n,i;if(e.first)return zr((n=l,i=[],Object.keys(n).forEach(function(e){i.push.apply(i,n[e])}),i),u,t),0;var c=e.firstFields||[];!0===c&&(c=Object.keys(l));function h(e){a.push.apply(a,e),++o===r&&t(a)}var e=Object.keys(l),r=e.length,o=0,a=[];e.forEach(function(e){var t,n,i,r,o,a=l[e];function s(e){i.push.apply(i,e),++r===o&&n(i)}-1!==c.indexOf(e)?zr(a,u,h):(t=u,n=h,i=[],r=0,o=(a=a).length,a.forEach(function(e){t(e,s)}))})}function jr(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function Br(e,t){if(t)for(var n in t){var i;t.hasOwnProperty(n)&&("object"===(void 0===(i=t[n])?"undefined":Lr()(i))&&"object"===Lr()(e[n])?e[n]=Or()({},e[n],i):e[n]=i)}return e}var Fr=function(e,t,n,i,r,o){!e.required||n.hasOwnProperty(e.field)&&!Hr(t,o||e.type)||i.push(Er(r.messages.required,e.fullField))};var Vr=function(e,t,n,i,r){!/^\s+$/.test(t)&&""!==t||i.push(Er(r.messages.whitespace,e.fullField))},$r={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},Yr={integer:function(e){return Yr.number(e)&&parseInt(e,10)===e},float:function(e){return Yr.number(e)&&!Yr.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":Lr()(e))&&!Yr.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match($r.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match($r.url)},hex:function(e){return"string"==typeof e&&!!e.match($r.hex)}};var Wr=function(e,t,n,i,r){e.required&&void 0===t?Fr(e,t,n,i,r):(n=e.type,-1<["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(n)?Yr[n](t)||i.push(Er(r.messages.types[n],e.fullField,e.type)):n&&(void 0===t?"undefined":Lr()(t))!==e.type&&i.push(Er(r.messages.types[n],e.fullField,e.type)))};var Xr={required:Fr,whitespace:Vr,type:Wr,range:function(e,t,n,i,r){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,u=null,c="number"==typeof t,h="string"==typeof t,d=Array.isArray(t);if(c?u="number":h?u="string":d&&(u="array"),!u)return!1;d&&(l=t.length),h&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==e.len&&i.push(Er(r.messages[u].len,e.fullField,e.len)):a&&!s&&l<e.min?i.push(Er(r.messages[u].min,e.fullField,e.min)):s&&!a&&l>e.max?i.push(Er(r.messages[u].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&i.push(Er(r.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,i,r){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&i.push(Er(r.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,i,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||i.push(Er(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||i.push(Er(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))}};var Gr=function(e,t,n,i,r){var o=e.type,a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t,o)&&!e.required)return n();Xr.required(e,t,i,a,r,o),Hr(t,o)||Xr.type(e,t,i,a,r)}n(a)},Ur={string:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t,"string")&&!e.required)return n();Xr.required(e,t,i,o,r,"string"),Hr(t,"string")||(Xr.type(e,t,i,o,r),Xr.range(e,t,i,o,r),Xr.pattern(e,t,i,o,r),!0===e.whitespace&&Xr.whitespace(e,t,i,o,r))}n(o)},method:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t)&&!e.required)return n();Xr.required(e,t,i,o,r),void 0!==t&&Xr.type(e,t,i,o,r)}n(o)},number:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t)&&!e.required)return n();Xr.required(e,t,i,o,r),void 0!==t&&(Xr.type(e,t,i,o,r),Xr.range(e,t,i,o,r))}n(o)},boolean:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t)&&!e.required)return n();Xr.required(e,t,i,o,r),void 0!==t&&Xr.type(e,t,i,o,r)}n(o)},regexp:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t)&&!e.required)return n();Xr.required(e,t,i,o,r),Hr(t)||Xr.type(e,t,i,o,r)}n(o)},integer:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t)&&!e.required)return n();Xr.required(e,t,i,o,r),void 0!==t&&(Xr.type(e,t,i,o,r),Xr.range(e,t,i,o,r))}n(o)},float:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t)&&!e.required)return n();Xr.required(e,t,i,o,r),void 0!==t&&(Xr.type(e,t,i,o,r),Xr.range(e,t,i,o,r))}n(o)},array:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t,"array")&&!e.required)return n();Xr.required(e,t,i,o,r,"array"),Hr(t,"array")||(Xr.type(e,t,i,o,r),Xr.range(e,t,i,o,r))}n(o)},object:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t)&&!e.required)return n();Xr.required(e,t,i,o,r),void 0!==t&&Xr.type(e,t,i,o,r)}n(o)},enum:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t)&&!e.required)return n();Xr.required(e,t,i,o,r),t&&Xr.enum(e,t,i,o,r)}n(o)},pattern:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t,"string")&&!e.required)return n();Xr.required(e,t,i,o,r),Hr(t,"string")||Xr.pattern(e,t,i,o,r)}n(o)},date:function(e,t,n,i,r){var o,a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(Hr(t)&&!e.required)return n();Xr.required(e,t,i,a,r),Hr(t)||(o=void 0,o="number"==typeof t?new Date(t):t,Xr.type(e,o,i,a,r),o&&Xr.range(e,o.getTime(),i,a,r))}n(a)},url:Gr,hex:Gr,email:Gr,required:function(e,t,n,i,r){var o=[],a=Array.isArray(t)?"array":void 0===t?"undefined":Lr()(t);Xr.required(e,t,i,o,r,a),n(o)}};function qr(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Zr=qr();function Kr(e){this.rules=null,this._messages=Zr,this.define(e)}Kr.prototype={messages:function(e){return e&&(this._messages=Br(qr(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===e?"undefined":Lr()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,n=void 0;for(n in e)e.hasOwnProperty(n)&&(t=e[n],this.rules[n]=Array.isArray(t)?t:[t])},validate:function(n){var e,i,r,o,h,a=this,s=n,d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},l=arguments[2];function t(e){var t,n,i=void 0,r=[],o={};for(i=0;i<e.length;i++)n=e[i],Array.isArray(n)?r=r.concat.apply(r,n):r.push(n);if(r.length)for(i=0;i<r.length;i++)o[t=r[i].field]=o[t]||[],o[t].push(r[i]);else o=r=null;l(r,o)}"function"==typeof d&&(l=d,d={}),this.rules&&0!==Object.keys(this.rules).length?(d.messages?(Br(e=(e=this.messages())===Zr?qr():e,d.messages),d.messages=e):d.messages=this.messages(),r=i=void 0,o={},(d.keys||Object.keys(this.rules)).forEach(function(t){i=a.rules[t],r=s[t],i.forEach(function(e){"function"==typeof e.transform&&(s===n&&(s=Or()({},s)),r=s[t]=e.transform(r)),(e="function"==typeof e?{validator:e}:Or()({},e)).validator=a.getValidationMethod(e),e.field=t,e.fullField=e.fullField||t,e.type=a.getType(e),e.validator&&(o[t]=o[t]||[],o[t].push({rule:e,value:r,source:s,field:t}))})}),h={},Rr(o,d,function(a,s){var l=a.rule,u=!("object"!==l.type&&"array"!==l.type||"object"!==Lr()(l.fields)&&"object"!==Lr()(l.defaultField));function c(e,t){return Or()({},t,{fullField:l.fullField+"."+e})}function t(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];if((t=!Array.isArray(t)?[t]:t).length,t=(t=t.length&&l.message?[].concat(l.message):t).map(jr(l)),d.first&&t.length)return h[l.field]=1,s(t);if(u){if(l.required&&!a.value)return t=l.message?[].concat(l.message).map(jr(l)):d.error?[d.error(l,Er(d.messages.required,l.field))]:[],s(t);var e,n,i={};if(l.defaultField)for(var r in a.value)a.value.hasOwnProperty(r)&&(i[r]=l.defaultField);for(e in i=Or()({},i,a.rule.fields))i.hasOwnProperty(e)&&(n=Array.isArray(i[e])?i[e]:[i[e]],i[e]=n.map(c.bind(null,e)));var o=new Kr(i);o.messages(d.messages),a.rule.options&&(a.rule.options.messages=d.messages,a.rule.options.error=d.error),o.validate(a.value,a.rule.options||d,function(e){s(e&&e.length?t.concat(e):e)})}else s(t)}u=u&&(l.required||!l.required&&a.value),l.field=a.field;var e=l.validator(l,a.value,t,a.source,d);e&&e.then&&e.then(function(){return t()},function(e){return t(e)})},function(e){t(e)})):l&&l()},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Ur.hasOwnProperty(e.type))throw new Error(Er("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Ur.required:Ur[this.getType(e)]||!1}},Kr.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ur[e]=t},Kr.messages=Zr;var Qr=Kr,i={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var e=arguments[0],t=this.$slots.default;if(!t)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,i={};return!n||"auto"===n||(n=parseInt(n,10)-this.computedWidth)&&(i.marginLeft=n+"px"),e("div",{class:"el-form-item__label-wrap",style:i},[t])}return t[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var e=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(e))}return 0},updateLabelWidth:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===e?this.computedWidth=this.getLabelWidth():"remove"===e&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(e,t){this.updateAll&&(this.elForm.registerLabelWidth(e,t),this.elFormItem.updateComputedLabelWidth(e))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},h=Object(r.a)(i,void 0,void 0,!1,null,null,null).exports,f={name:"TisFormItem",componentName:"TisFormItem",mixins:[a.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:h},watch:{error:{immediate:!0,handler:function(e){this.validateMessage=e,this.validateState=e?"error":""}},validateStatus:function(e){this.validateState=e}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var e={};if("top"===this.form.labelPosition)return e;var t=this.labelWidth||this.form.labelWidth;return t&&(e.width=t),e},contentStyle:function(){var e={},t=this.label;if("top"===this.form.labelPosition||this.form.inline)return e;if(!t&&!this.labelWidth&&this.isNested)return e;t=this.labelWidth||this.form.labelWidth;return"auto"===t?"auto"===this.labelWidth?e.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(e.marginLeft=this.elForm.autoLabelWidth):e.marginLeft=t,e},form:function(){for(var e=this.$parent,t=e.$options.componentName;"TisForm"!==t;)"TisFormItem"===t&&(this.isNested=!0),t=(e=e.$parent).$options.componentName;return e},fieldValue:function(){var e=this.form.model;if(e&&this.prop){var t=this.prop;return-1!==t.indexOf(":")&&(t=t.replace(/:/,".")),Object(x.h)(e,t,!0).v}},isRequired:function(){var e=this.getRules(),t=!1;return e&&e.length&&e.every(function(e){return!e.required||!(t=!0)}),t},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(e){var n=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:x.q;this.validateDisabled=!1;var t=this.getFilteredRule(e);if((!t||0===t.length)&&void 0===this.required)return i(),!0;this.validateState="validating";e={};t&&0<t.length&&t.forEach(function(e){delete e.trigger}),e[this.prop]=t;t=new Qr(e),e={};e[this.prop]=this.fieldValue,t.validate(e,{firstFields:!0},function(e,t){n.validateState=e?"error":"success",n.validateMessage=e?e[0].message:"",i(n.validateMessage,t),n.elForm&&n.elForm.$emit("validate",n.prop,!e,n.validateMessage||null)})},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var e=this;this.validateState="",this.validateMessage="";var t=this.form.model,n=this.fieldValue,i=this.prop;-1!==i.indexOf(":")&&(i=i.replace(/:/,"."));i=Object(x.h)(t,i,!0);this.validateDisabled=!0,Array.isArray(n)?i.o[i.k]=[].concat(this.initialValue):i.o[i.k]=this.initialValue,this.$nextTick(function(){e.validateDisabled=!1}),this.broadcast("TisTimeSelect","fieldReset",this.initialValue)},getRules:function(){var e=this.form.rules,t=this.rules,n=void 0!==this.required?{required:!!this.required}:[],i=Object(x.h)(e,this.prop||""),e=e?i.o[this.prop||""]||i.v:[];return[].concat(t||e||[]).concat(n)},getFilteredRule:function(t){return this.getRules().filter(function(e){return!e.trigger||""===t||(Array.isArray(e.trigger)?-1<e.trigger.indexOf(t):e.trigger===t)}).map(function(e){return Object(kt.a)({},e)})},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(e){this.computedLabelWidth=e?e+"px":""},addValidateEvents:function(){!this.getRules().length&&void 0===this.required||(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){var e;this.prop&&(this.dispatch("TisForm","el.form.addField",[this]),e=this.fieldValue,Array.isArray(e)&&(e=[].concat(e)),Object.defineProperty(this,"initialValue",{value:e}),this.addValidateEvents())},beforeDestroy:function(){this.dispatch("TisForm","el.form.removeField",[this])}},Jr=Object(r.a)(f,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":e.elForm&&e.elForm.statusIcon,"is-error":"error"===e.validateState,"is-validating":"validating"===e.validateState,"is-success":"success"===e.validateState,"is-required":e.isRequired||e.required,"is-no-asterisk":e.elForm&&e.elForm.hideRequiredAsterisk},e.sizeClass?"el-form-item--"+e.sizeClass:""]},[t("label-wrap",{attrs:{"is-auto-width":e.labelStyle&&"auto"===e.labelStyle.width,"update-all":"auto"===e.form.labelWidth}},[e.label||e.$slots.label?t("label",{staticClass:"el-form-item__label",style:e.labelStyle,attrs:{for:e.labelFor}},[e._t("label",[e._v(e._s(e.label+e.form.labelSuffix))])],2):e._e()]),t("div",{staticClass:"el-form-item__content",style:e.contentStyle},[e._t("default"),t("transition",{attrs:{name:"el-zoom-in-top"}},["error"===e.validateState&&e.showMessage&&e.form.showMessage?e._t("error",[t("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"==typeof e.inlineMessage?e.inlineMessage:e.elForm&&e.elForm.inlineMessage||!1}},[e._v("\n "+e._s(e.validateMessage)+"\n ")])],{error:e.validateMessage}):e._e()],2)],2)],1)},[],!1,null,null,null).exports;Jr.install=function(e){e.component(Jr.name,Jr)};g=Jr,O={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){function r(e){return e.toLowerCase().replace(/( |^)[a-z]/g,function(e){return e.toUpperCase()})}var o=this,e={},a=0,s=0,l=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",t="width"==l?"x":"y";this.tabs.every(function(t,e){var n=Object(x.a)(o.$parent.$refs.tabs||[],function(e){return e.id.replace("tab-","")===t.paneName});if(!n)return!1;if(t.active){s=n["client"+r(l)];var i=window.getComputedStyle(n);return"width"==l&&1<o.tabs.length&&(s-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)),"width"==l&&(a+=parseFloat(i.paddingLeft)),!1}return a+=n["client"+r(l)],!0});t="translate"+r(t)+"("+a+"px)";return e[l]=s+"px",e.transform=t,e.msTransform=t,e.webkitTransform=t,e}}}},E=Object(r.a)(O,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-tabs__active-bar",class:"is-"+this.rootTabs.tabPosition,style:this.barStyle})},[],!1,null,null,null).exports;function eo(){}function to(e){return e.toLowerCase().replace(/( |^)[a-z]/g,function(e){return e.toUpperCase()})}var d={name:"TabNav",components:{TabBar:E},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:eo},onTabRemove:{type:Function,default:eo},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){return{transform:"translate"+(-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y")+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var e=this.$refs.navScroll["offset"+to(this.sizeName)],t=this.navOffset;t&&(this.navOffset=e<t?t-e:0)},scrollNext:function(){var e=this.$refs.nav["offset"+to(this.sizeName)],t=this.$refs.navScroll["offset"+to(this.sizeName)],n=this.navOffset;e-n<=t||(this.navOffset=2*t<e-n?n+t:e-t)},scrollToActiveTab:function(){var e,t,n,i,r,o;this.scrollable&&(o=this.$refs.nav,(i=this.$el.querySelector(".is-active"))&&(r=this.$refs.navScroll,e=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),t=i.getBoundingClientRect(),n=r.getBoundingClientRect(),i=e?o.offsetWidth-n.width:o.offsetHeight-n.height,o=r=this.navOffset,e?(t.left<n.left&&(o=r-(n.left-t.left)),t.right>n.right&&(o=r+t.right-n.right)):(t.top<n.top&&(o=r-(n.top-t.top)),t.bottom>n.bottom&&(o=r+(t.bottom-n.bottom))),o=Math.max(o,0),this.navOffset=Math.min(o,i)))},update:function(){var e,t,n,i;this.$refs.nav&&(i=this.sizeName,e=this.$refs.nav["offset"+to(i)],t=this.$refs.navScroll["offset"+to(i)],n=this.navOffset,t<e?(i=this.navOffset,this.scrollable=this.scrollable||{},this.scrollable.prev=i,this.scrollable.next=i+t<e,e-i<t&&(this.navOffset=e-t)):(this.scrollable=!1,0<n&&(this.navOffset=0)))},changeTab:function(e){var t=e.keyCode,n=void 0,i=void 0,r=void 0;-1!==[37,38,39,40].indexOf(t)&&(r=e.currentTarget.querySelectorAll("[role=tab]"),i=Array.prototype.indexOf.call(r,e.target),r[n=37===t||38===t?0===i?r.length-1:i-1:i<r.length-1?i+1:0].focus(),r[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var e=this,t=document.visibilityState;"hidden"===t?this.focusable=!1:"visible"===t&&setTimeout(function(){e.focusable=!0},50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var e=this;setTimeout(function(){e.focusable=!0},50)}},updated:function(){this.update()},render:function(s){var l=this,e=this.type,t=this.panes,u=this.editable,n=this.stretch,c=this.onTabClick,h=this.onTabRemove,i=this.navStyle,r=this.scrollable,o=this.scrollNext,a=this.scrollPrev,d=this.changeTab,p=this.setFocus,f=this.removeFocus,a=r?[s("span",{class:["el-tabs__nav-prev",r.prev?"":"is-disabled"],on:{click:a}},[s("i",{class:"el-icon-arrow-left"})]),s("span",{class:["el-tabs__nav-next",r.next?"":"is-disabled"],on:{click:o}},[s("i",{class:"el-icon-arrow-right"})])]:null,o=this._l(t,function(t,e){var n=t.name||t.index||e,i=t.isClosable||u;t.index=""+e;var r=i?s("span",{class:"el-icon-close",on:{click:function(e){h(t,e)}}}):null,o=t.$slots.label||t.label,a=t.active?0:-1;return s("div",{class:((e={"el-tabs__item":!0})["is-"+l.rootTabs.tabPosition]=!0,e["is-active"]=t.active,e["is-disabled"]=t.disabled,e["is-closable"]=i,e["is-focus"]=l.isFocus,e),attrs:{id:"tab-"+n,"aria-controls":"pane-"+n,role:"tab","aria-selected":t.active,tabindex:a},key:"tab-"+n,ref:"tabs",refInFor:!0,on:{focus:function(){p()},blur:function(){f()},click:function(e){f(),c(t,n,e)},keydown:function(e){!i||46!==e.keyCode&&8!==e.keyCode||h(t,e)}}},[o,r])});return s("div",{class:["el-tabs__nav-wrap",r?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[a,s("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[s("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,n&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:i,attrs:{role:"tablist"},on:{keydown:d}},[e?null:s("tab-bar",{attrs:{tabs:t}}),o])])])},mounted:function(){var e=this;b(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout(function(){e.scrollToActiveTab()},0)},beforeDestroy:function(){this.$el&&this.update&&_(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},j={name:"TisTabs",components:{TabNav:Object(r.a)(d,void 0,void 0,!1,null,null,null).exports},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(e){this.setCurrentName(e)},value:function(e){this.setCurrentName(e)},currentName:function(e){var t=this;this.$refs.nav&&this.$nextTick(function(){t.$refs.nav.$nextTick(function(e){t.$refs.nav.scrollToActiveTab()})})}},methods:{calcPaneInstances:function(){var e,t,n=this,i=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this.$slots.default?(t=!((e=this.$slots.default.filter(function(e){return e.tag&&e.componentOptions&&"TisTabPane"===e.componentOptions.Ctor.options.name}).map(function(e){return e.componentInstance})).length===this.panes.length&&e.every(function(e,t){return e===n.panes[t]})),(i||t)&&(this.panes=e)):0!==this.panes.length&&(this.panes=[])},handleTabClick:function(e,t,n){e.disabled||(this.setCurrentName(t),this.$emit("tab-click",e,n))},handleTabRemove:function(e,t){e.disabled||(t.stopPropagation(),this.$emit("edit",e.name,"remove"),this.$emit("tab-remove",e.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(e){function t(){i.currentName=e,i.$emit("input",e)}var n,i=this;this.currentName!==e&&this.beforeLeave?(n=this.beforeLeave(e,this.currentName))&&n.then?n.then(function(){t(),i.$refs.nav&&i.$refs.nav.removeFocus()},function(){}):!1!==n&&t():t()}},render:function(e){var t=this.type,n=this.handleTabClick,i=this.handleTabRemove,r=this.handleTabAdd,o=this.currentName,a=this.panes,s=this.editable,l=this.addable,u=this.tabPosition,c=this.stretch,l=s||l?e("span",{class:"el-tabs__new-tab",on:{click:r,keydown:function(e){13===e.keyCode&&r()}},attrs:{tabindex:"0"}},[e("i",{class:"el-icon-plus"})]):null,a=e("div",{class:["el-tabs__header","is-"+u]},[l,e("tab-nav",{props:{currentName:o,onTabClick:n,onTabRemove:i,editable:s,type:t,panes:a,stretch:c},ref:"nav"})]),c=e("div",{class:"el-tabs__content"},[this.$slots.default]);return e("div",{class:((e={"el-tabs":!0,"el-tabs--card":"card"===t})["el-tabs--"+u]=!0,e["el-tabs--border-card"]="border-card"===t,e)},["bottom"!==u?[a,c]:[c,a]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},no=Object(r.a)(j,void 0,void 0,!1,null,null,null).exports;no.install=function(e){e.component(no.name,no)};var o=no,G={name:"TisTabPane",componentName:"TisTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var e;return(e=this.$parent.currentName===(this.name||this.index))&&(this.loaded=!0),e},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},io=Object(r.a)(G,function(){var e=this,t=e.$createElement,t=e._self._c||t;return!e.lazy||e.loaded||e.active?t("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!e.active,id:"pane-"+e.paneName,"aria-labelledby":"tab-"+e.paneName}},[e._t("default")],2):e._e()},[],!1,null,null,null).exports;io.install=function(e){e.component(io.name,io)};function ro(e,t){return e?t[e]:t[oo]}var Z=io,oo="$treeNodeId",ao=function(e,t){t&&!t[oo]&&Object.defineProperty(t,oo,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},K=function(e,t,n){return t&&so(e.prototype,t),n&&so(e,n),e};function so(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function lo(e){for(var t=!0,n=!0,i=!0,r=0,o=e.length;r<o;r++){var a=e[r];!0===a.checked&&!a.indeterminate||(t=!1,a.disabled||(i=!1)),!1===a.checked&&!a.indeterminate||(n=!1)}return{all:t,none:n,allWithoutDisable:i,half:!t&&!n}}function uo(e){var t,n,i;0!==e.childNodes.length&&(t=(n=lo(e.childNodes)).all,i=n.none,n=n.half,t?(e.checked=!0,e.indeterminate=!1):n?(e.checked=!1,e.indeterminate=!0):i&&(e.checked=!1,e.indeterminate=!1),(i=e.parent)&&0!==i.level&&(e.store.checkStrictly||uo(i)))}var co=function(e,t){var n=e.store.props,i=e.data||{},n=n[t];if("function"==typeof n)return n(i,e);if("string"==typeof n)return i[n];if(void 0===n){t=i[t];return void 0===t?"":t}},ho=0;function po(e){for(var t in!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,po),this.id=ho++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,e)e.hasOwnProperty(t)&&(this[t]=e[t]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);var i,r=n.props;!r||void 0===r.isLeaf||"boolean"==typeof(i=co(this,"isLeaf"))&&(this.isLeafByUser=i),!0!==n.lazy&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0)):0<this.level&&n.lazy&&n.defaultExpandAll&&this.expand(),Array.isArray(this.data)||ao(this,this.data),this.data&&(r=n.defaultExpandedKeys,(i=n.key)&&r&&-1!==r.indexOf(this.key)&&this.expand(null,n.autoExpandParent),i&&void 0!==n.currentNodeKey&&this.key===n.currentNodeKey&&(n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState())}var fo=(po.prototype.setData=function(e){Array.isArray(e)||ao(this,e),this.data=e,this.childNodes=[];for(var t=void 0,n=0,i=(t=0===this.level&&this.data instanceof Array?this.data:co(this,"children")||[]).length;n<i;n++)this.insertChild({data:t[n]})},po.prototype.contains=function(s){var l=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];return function e(t){for(var n=t.childNodes||[],i=!1,r=0,o=n.length;r<o;r++){var a=n[r];if(a===s||l&&e(a)){i=!0;break}}return i}(this)},po.prototype.remove=function(){var e=this.parent;e&&e.removeChild(this)},po.prototype.insertChild=function(e,t,n){if(!e)throw new Error("insertChild error: child is required.");e instanceof po||(n||-1===(n=this.getChildren(!0)).indexOf(e.data)&&(void 0===t||t<0?n.push(e.data):n.splice(t,0,e.data)),Object(kt.a)(e,{parent:this,store:this.store}),e=new po(e)),e.level=this.level+1,void 0===t||t<0?this.childNodes.push(e):this.childNodes.splice(t,0,e),this.updateLeafState()},po.prototype.insertBefore=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)},po.prototype.insertAfter=function(e,t){var n=void 0;t&&-1!==(n=this.childNodes.indexOf(t))&&(n+=1),this.insertChild(e,n)},po.prototype.removeChild=function(e){var t=this.getChildren()||[],n=t.indexOf(e.data);-1<n&&t.splice(n,1);n=this.childNodes.indexOf(e);-1<n&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(n,1)),this.updateLeafState()},po.prototype.removeChildByData=function(e){for(var t=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===e){t=this.childNodes[n];break}t&&this.removeChild(t)},po.prototype.expand=function(t,n){function i(){if(n)for(var e=r.parent;0<e.level;)e.expanded=!0,e=e.parent;r.expanded=!0,t&&t()}var r=this;this.shouldLoadData()?this.loadData(function(e){e instanceof Array&&(r.checked?r.setChecked(!0,!0):r.store.checkStrictly||uo(r),i())}):i()},po.prototype.doCreateChildren=function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e){t.insertChild(Object(kt.a)({data:e},n),void 0,!0)})},po.prototype.collapse=function(){this.expanded=!1},po.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},po.prototype.updateLeafState=function(){var e;!0!==this.store.lazy||!0===this.loaded||void 0===this.isLeafByUser?(e=this.childNodes,!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1):this.isLeaf=this.isLeafByUser},po.prototype.setChecked=function(s,l,e,u){var c=this;if(this.indeterminate="half"===s,this.checked=!0===s,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var t=lo(this.childNodes),n=t.all,t=t.allWithoutDisable;this.isLeaf||n||!t||(this.checked=!1,s=!1);var i=function(){if(l){for(var e=c.childNodes,t=0,n=e.length;t<n;t++){var i=e[t];u=u||!1!==s;var r=i.disabled?i.checked:u;i.setChecked(r,l,!0,u)}var o=lo(e),a=o.half,o=o.all;o||(c.checked=o,c.indeterminate=a)}};if(this.shouldLoadData())return void this.loadData(function(){i(),uo(c)},{checked:!1!==s});i()}t=this.parent;t&&0!==t.level&&(e||uo(t))}},po.prototype.getChildren=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var t=this.data;if(!t)return null;var n=this.store.props,i="children";return void 0===t[i=n?n.children||"children":i]&&(t[i]=null),e&&!t[i]&&(t[i]=[]),t[i]},po.prototype.updateChildren=function(){var n=this,e=this.getChildren()||[],i=this.childNodes.map(function(e){return e.data}),r={},o=[];e.forEach(function(e,t){var n=e[oo];!!n&&0<=Object(x.b)(i,function(e){return e[oo]===n})?r[n]={index:t,data:e}:o.push({index:t,data:e})}),this.store.lazy||i.forEach(function(e){r[e[oo]]||n.removeChildByData(e)}),o.forEach(function(e){var t=e.index,e=e.data;n.insertChild({data:e},t)}),this.updateLeafState()},po.prototype.loadData=function(t){var n=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(i).length?t&&t.call(this):(this.loading=!0,this.store.load(this,function(e){n.loaded=!0,n.loading=!1,n.childNodes=[],n.doCreateChildren(e,i),n.updateLeafState(),t&&t.call(n,e)}))},K(po,[{key:"label",get:function(){return co(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return co(this,"disabled")}},{key:"nextSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(-1<t)return e.childNodes[t+1]}return null}},{key:"previousSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(-1<t)return 0<t?e.childNodes[t-1]:null}return null}}]),po),mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function go(e){var t,n=this;for(t in!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,go),this.currentNode=null,this.currentNodeKey=null,e)e.hasOwnProperty(t)&&(this[t]=e[t]);this.nodesMap={},this.root=new fo({data:this.data,store:this}),this.lazy&&this.load?(0,this.load)(this.root,function(e){n.root.doCreateChildren(e),n._initDefaultCheckedNodes()}):this._initDefaultCheckedNodes()}var vo=(go.prototype.filter=function(r){var o=this.filterNodeMethod,a=this.lazy;(function t(e){var n,i=(e.root||e).childNodes;i.forEach(function(e){e.visible=o.call(e,r,e.data,e),t(e)}),!e.visible&&i.length&&(n=!0,n=!i.some(function(e){return e.visible}),e.root?e.root.visible=!1==n:e.visible=!1==n),r&&(!e.visible||e.isLeaf||a||e.expand())})(this)},go.prototype.setData=function(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()},go.prototype.getNode=function(e){if(e instanceof fo)return e;e="object"!==(void 0===e?"undefined":mo(e))?e:ro(this.key,e);return this.nodesMap[e]||null},go.prototype.insertBefore=function(e,t){t=this.getNode(t);t.parent.insertBefore({data:e},t)},go.prototype.insertAfter=function(e,t){t=this.getNode(t);t.parent.insertAfter({data:e},t)},go.prototype.remove=function(e){e=this.getNode(e);e&&e.parent&&(e===this.currentNode&&(this.currentNode=null),e.parent.removeChild(e))},go.prototype.append=function(e,t){t=t?this.getNode(t):this.root;t&&t.insertChild({data:e})},go.prototype._initDefaultCheckedNodes=function(){var t=this,e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach(function(e){e=n[e];e&&e.setChecked(!0,!t.checkStrictly)})},go.prototype._initDefaultCheckedNode=function(e){-1!==(this.defaultCheckedKeys||[]).indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)},go.prototype.setDefaultCheckedKey=function(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())},go.prototype.registerNode=function(e){this.key&&e&&e.data&&void 0!==e.key&&(this.nodesMap[e.key]=e)},go.prototype.deregisterNode=function(e){var t=this;this.key&&e&&e.data&&(e.childNodes.forEach(function(e){t.deregisterNode(e)}),delete this.nodesMap[e.key])},go.prototype.getCheckedNodes=function(){var n=0<arguments.length&&void 0!==arguments[0]&&arguments[0],i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=[];return function t(e){(e.root||e).childNodes.forEach(function(e){(e.checked||i&&e.indeterminate)&&(!n||n&&e.isLeaf)&&r.push(e.data),t(e)})}(this),r},go.prototype.getCheckedKeys=function(){var t=this;return this.getCheckedNodes(0<arguments.length&&void 0!==arguments[0]&&arguments[0]).map(function(e){return(e||{})[t.key]})},go.prototype.getHalfCheckedNodes=function(){var n=[];return function t(e){(e.root||e).childNodes.forEach(function(e){e.indeterminate&&n.push(e.data),t(e)})}(this),n},go.prototype.getHalfCheckedKeys=function(){var t=this;return this.getHalfCheckedNodes().map(function(e){return(e||{})[t.key]})},go.prototype._getAllNodes=function(){var e,t=[],n=this.nodesMap;for(e in n)n.hasOwnProperty(e)&&t.push(n[e]);return t},go.prototype.updateChildren=function(e,t){var n=this.nodesMap[e];if(n){for(var i=n.childNodes,r=i.length-1;0<=r;r--){var o=i[r];this.remove(o.data)}for(var a=0,s=t.length;a<s;a++){var l=t[a];this.append(l,n.data)}}},go.prototype._setCheckedKeys=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=this._getAllNodes().sort(function(e,t){return t.level-e.level}),r=Object.create(null),o=Object.keys(n);i.forEach(function(e){return e.setChecked(!1,!1)});for(var a=0,s=i.length;a<s;a++){var l=i[a],u=l.data[e].toString();if(-1<o.indexOf(u)){for(var c=l.parent;c&&0<c.level;)r[c.data[e]]=!0,c=c.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),t&&(l.setChecked(!1,!1),function t(e){e.childNodes.forEach(function(e){e.isLeaf||e.setChecked(!1,!1),t(e)})}(l)))}else l.checked&&!r[u]&&l.setChecked(!1,!1)}},go.prototype.setCheckedNodes=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=this.key,i={};e.forEach(function(e){i[(e||{})[n]]=!0}),this._setCheckedKeys(n,t,i)},go.prototype.setCheckedKeys=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,i={};e.forEach(function(e){i[e]=!0}),this._setCheckedKeys(n,t,i)},go.prototype.setDefaultExpandedKeys=function(e){var t=this;(this.defaultExpandedKeys=e=e||[]).forEach(function(e){e=t.getNode(e);e&&e.expand(null,t.autoExpandParent)})},go.prototype.setChecked=function(e,t,n){e=this.getNode(e);e&&e.setChecked(!!t,n)},go.prototype.getCurrentNode=function(){return this.currentNode},go.prototype.setCurrentNode=function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0},go.prototype.setUserCurrentNode=function(e){e=e[this.key],e=this.nodesMap[e];this.setCurrentNode(e)},go.prototype.setCurrentNodeKey=function(e){if(null==e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);e=this.getNode(e);e&&this.setCurrentNode(e)},go),Q={name:"TisTreeNode",componentName:"TisTreeNode",mixins:[a.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{TisCollapseTransition:Te,TisCheckbox:it,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,i=this.node,r=i.data,o=i.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:i,data:r,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:i,data:r}):e("span",{class:"el-tree-node__label"},[i.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(e){this.handleSelectChange(this.node.checked,e)},"node.checked":function(e){this.handleSelectChange(e,this.node.indeterminate)},"node.expanded":function(e){var t=this;this.$nextTick(function(){return t.expanded=e}),e&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(e){return ro(this.tree.nodeKey,e.data)},handleSelectChange:function(e,t){this.oldChecked!==e&&this.oldIndeterminate!==t&&this.tree.$emit("check-change",this.node.data,e,t),this.oldChecked=e,this.indeterminate=t},handleClick:function(){var e=this.tree.store;e.setCurrentNode(this.node),this.tree.$emit("current-change",e.currentNode?e.currentNode.data:null,e.currentNode),(this.tree.currentNode=this).tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(e){this.tree._events["node-contextmenu"]&&0<this.tree._events["node-contextmenu"].length&&(e.stopPropagation(),e.preventDefault()),this.tree.$emit("node-contextmenu",e,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(e,t){var n=this;this.node.setChecked(t.target.checked,!this.tree.checkStrictly),this.$nextTick(function(){var e=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:e.getCheckedNodes(),checkedKeys:e.getCheckedKeys(),halfCheckedNodes:e.getHalfCheckedNodes(),halfCheckedKeys:e.getHalfCheckedKeys()})})},handleChildNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.tree.$emit("node-expand",e,t,n)},handleDragStart:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",e,this)},handleDragOver:function(e){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",e,this),e.preventDefault())},handleDrop:function(e){e.preventDefault()},handleDragEnd:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",e,this)}},created:function(){var t=this,e=this.$parent;e.isTree?this.tree=e:this.tree=e.tree;e=this.tree;e||console.warn("Can not find node's tree.");e=(e.props||{}).children||"children";this.$watch("node.data."+e,function(){t.node.updateChildren()}),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",function(e){t.node!==e&&t.node.collapse()})}},ne=Object(r.a)(Q,function(){var t=this,n=this,e=n.$createElement,i=n._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:n.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":n.expanded,"is-current":n.node.isCurrent,"is-hidden":!n.node.visible,"is-focusable":!n.node.disabled,"is-checked":!n.node.disabled&&n.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":n.expanded,"aria-disabled":n.node.disabled,"aria-checked":n.node.checked,draggable:n.tree.draggable},on:{click:function(e){return e.stopPropagation(),n.handleClick(e)},contextmenu:function(e){return t.handleContextMenu(e)},dragstart:function(e){return e.stopPropagation(),n.handleDragStart(e)},dragover:function(e){return e.stopPropagation(),n.handleDragOver(e)},dragend:function(e){return e.stopPropagation(),n.handleDragEnd(e)},drop:function(e){return e.stopPropagation(),n.handleDrop(e)}}},[i("div",{staticClass:"el-tree-node__content",style:{"padding-left":(n.node.level-1)*n.tree.indent+"px"}},[i("span",{class:[{"is-leaf":n.node.isLeaf,expanded:!n.node.isLeaf&&n.expanded},"el-tree-node__expand-icon",n.tree.iconClass||"el-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),n.handleExpandIconClick(e)}}}),n.showCheckbox?i("tis-checkbox",{attrs:{indeterminate:n.node.indeterminate,disabled:!!n.node.disabled},on:{change:n.handleCheckChange},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:n.node.checked,callback:function(e){n.$set(n.node,"checked",e)},expression:"node.checked"}}):n._e(),n.node.loading?i("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):n._e(),i("node-content",{attrs:{node:n.node}})],1),i("tis-collapse-transition",[!n.renderAfterExpand||n.childNodeRendered?i("div",{directives:[{name:"show",rawName:"v-show",value:n.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":n.expanded}},n._l(n.node.childNodes,function(e){return i("tis-tree-node",{key:n.getNodeKey(e),attrs:{"render-content":n.renderContent,"render-after-expand":n.renderAfterExpand,"show-checkbox":n.showCheckbox,node:e},on:{"node-expand":n.handleChildNodeExpand}})}),1):n._e()])],1)},[],!1,null,null,null).exports,oe={name:"TisTree",mixins:[a.a],components:{TisTreeNode:ne},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(P.b)("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(e){this.data=e},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var e=this.root.childNodes;return!e||0===e.length||e.every(function(e){return!e.visible})}},watch:{defaultCheckedKeys:function(e){this.store.setDefaultCheckedKey(e)},defaultExpandedKeys:function(e){this.store.defaultExpandedKeys=e,this.store.setDefaultExpandedKeys(e)},data:function(e){this.store.setData(e)},checkboxItems:function(e){Array.prototype.forEach.call(e,function(e){e.setAttribute("tabindex",-1)})},checkStrictly:function(e){this.store.checkStrictly=e}},methods:{filter:function(e){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(e)},getNodeKey:function(e){return ro(this.nodeKey,e.data)},getNodePath:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");e=this.store.getNode(e);if(!e)return[];for(var t=[e.data],n=e.parent;n&&n!==this.root;)t.push(n.data),n=n.parent;return t.reverse()},getCheckedNodes:function(e,t){return this.store.getCheckedNodes(e,t)},getCheckedKeys:function(e){return this.store.getCheckedKeys(e)},getCurrentNode:function(){var e=this.store.getCurrentNode();return e?e.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var e=this.getCurrentNode();return e?e[this.nodeKey]:null},setCheckedNodes:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(e,t)},setCheckedKeys:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(e,t)},setChecked:function(e,t,n){this.store.setChecked(e,t,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(e)},setCurrentKey:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(e)},getNode:function(e){return this.store.getNode(e)},remove:function(e){this.store.remove(e)},append:function(e,t){this.store.append(e,t)},insertBefore:function(e,t){this.store.insertBefore(e,t)},insertAfter:function(e,t){this.store.insertAfter(e,t)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,t)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var e=this.$el.querySelectorAll(".is-checked[role=treeitem]");e.length?e[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(e){var t,n,i,r=e.target;-1!==r.className.indexOf("el-tree-node")&&(t=e.keyCode,this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),n=this.treeItemArray.indexOf(r),i=void 0,-1<[38,40].indexOf(t)&&(e.preventDefault(),i=38===t?0!==n?n-1:0:n<this.treeItemArray.length-1?n+1:0,this.treeItemArray[i].focus()),-1<[37,39].indexOf(t)&&(e.preventDefault(),r.click()),r=r.querySelector('[type="checkbox"]'),-1<[13,32].indexOf(t)&&r&&(e.preventDefault(),r.click()))}},created:function(){var p=this;this.isTree=!0,this.store=new vo({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var f=this.dragState;this.$on("tree-node-drag-start",function(e,t){if("function"==typeof p.allowDrag&&!p.allowDrag(t.node))return e.preventDefault(),!1;e.dataTransfer.effectAllowed="move";try{e.dataTransfer.setData("text/plain","")}catch(e){}f.draggingNode=t,p.$emit("node-drag-start",t.node,e)}),this.$on("tree-node-drag-over",function(e,t){var n=function(e,t){for(var n=e;n&&"BODY"!==n.tagName;){if(n.__vue__&&n.__vue__.$options.name===t)return n.__vue__;n=n.parentNode}return null}(e.target,"ElTreeNode"),i=f.dropNode;i&&i!==n&&Object(M.i)(i.$el,"is-drop-inner");var r,o,a,s,l,u,c,h,d=f.draggingNode;d&&n&&(o=r=h=c=!0,"function"==typeof p.allowDrop&&(c=p.allowDrop(d.node,n.node,"prev"),o=h=p.allowDrop(d.node,n.node,"inner"),r=p.allowDrop(d.node,n.node,"next")),e.dataTransfer.dropEffect=h?"move":"none",(c||h||r)&&i!==n&&(i&&p.$emit("node-drag-leave",d.node,i.node,e),p.$emit("node-drag-enter",d.node,n.node,e)),(c||h||r)&&(f.dropNode=n),n.node.nextSibling===d.node&&(r=!1),n.node.previousSibling===d.node&&(c=!1),n.node.contains(d.node,!1)&&(h=!1),d.node!==n.node&&!d.node.contains(n.node)||(r=h=c=!1),a=n.$el.getBoundingClientRect(),s=p.$el.getBoundingClientRect(),u=void 0,l=-9999,u=(i=e.clientY-a.top)<a.height*(c?h?.25:r?.45:1:-1)?"before":i>a.height*(r?h?.75:c?.55:0:1)?"after":h?"inner":"none",c=n.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),h=p.$refs.dropIndicator,"before"===u?l=c.top-s.top:"after"===u&&(l=c.bottom-s.top),h.style.top=l+"px",h.style.left=c.right-s.left+"px",("inner"===u?Object(M.a):Object(M.i))(n.$el,"is-drop-inner"),f.showDropIndicator="before"===u||"after"===u,f.allowDrop=f.showDropIndicator||o,f.dropType=u,p.$emit("node-drag-over",d.node,n.node,e))}),this.$on("tree-node-drag-end",function(e){var t,n=f.draggingNode,i=f.dropType,r=f.dropNode;e.preventDefault(),e.dataTransfer.dropEffect="move",n&&r&&(t={data:n.node.data},"none"!==i&&n.node.remove(),"before"===i?r.node.parent.insertBefore(t,r.node):"after"===i?r.node.parent.insertAfter(t,r.node):"inner"===i&&r.node.insertChild(t),"none"!==i&&p.store.registerNode(t),Object(M.i)(r.$el,"is-drop-inner"),p.$emit("node-drag-end",n.node,r.node,i,e),"none"!==i&&p.$emit("node-drop",n.node,r.node,i,e)),n&&!r&&p.$emit("node-drag-end",n.node,null,i,e),f.showDropIndicator=!1,f.draggingNode=null,f.dropNode=null,f.allowDrop=!0})},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},yo=Object(r.a)(oe,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":t.highlightCurrent,"is-dragging":!!t.dragState.draggingNode,"is-drop-not-allow":!t.dragState.allowDrop,"is-drop-inner":"inner"===t.dragState.dropType},attrs:{role:"tree"}},[t._l(t.root.childNodes,function(e){return n("tis-tree-node",{key:t.getNodeKey(e),attrs:{node:e,props:t.props,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent},on:{"node-expand":t.handleNodeExpand}})}),t.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[t._v(t._s(t.emptyText))])]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)},[],!1,null,null,null).exports;yo.install=function(e){e.component(yo.name,yo)};var le=yo,xo={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},he={name:"TisAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return xo[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},bo=Object(r.a)(he,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("transition",{attrs:{name:"el-alert-fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-alert",class:[t.typeClass,t.center?"is-center":"","is-"+t.effect],attrs:{role:"alert"}},[t.showIcon?e("i",{staticClass:"el-alert__icon",class:[t.iconClass,t.isBigIcon]}):t._e(),e("div",{staticClass:"el-alert__content"},[t.title||t.$slots.title?e("span",{staticClass:"el-alert__title",class:[t.isBoldTitle]},[t._t("title",[t._v(t._s(t.title))])],2):t._e(),t.$slots.default&&!t.description?e("p",{staticClass:"el-alert__description"},[t._t("default")],2):t._e(),t.description&&!t.$slots.default?e("p",{staticClass:"el-alert__description"},[t._v(t._s(t.description))]):t._e(),e("i",{directives:[{name:"show",rawName:"v-show",value:t.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==t.closeText,"el-icon-close":""===t.closeText},on:{click:function(e){t.close()}}},[t._v(t._s(t.closeText))])])])])},[],!1,null,null,null).exports;bo.install=function(e){e.component(bo.name,bo)};function _o(e){if(!H.a.prototype.$isServer){var t=(e=Object(kt.a)({},e)).onClose,n="notification_"+Mo++,i=e.position||"top-right";e.onClose=function(){_o.close(n,t)},So=new Co({data:e}),cr(e.message)&&(So.$slots.default=[e.message],e.message="REPLACED_BY_VNODE"),So.id=n,So.$mount(),document.body.appendChild(So.$el),So.visible=!0,So.dom=So.$el,So.dom.style.zIndex=W.a.nextZIndex();var r=e.offset||0;return Ao.filter(function(e){return e.position===i}).forEach(function(e){r+=e.$el.offsetHeight+16}),So.verticalOffset=r+=16,Ao.push(So),So}}var ge=bo,wo={success:"success",info:"info",warning:"warning",error:"error"},ye={data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&wo[this.type]?"el-icon-"+wo[this.type]:""},horizontalClass:function(){return-1<this.position.indexOf("right")?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var e={};return e[this.verticalProperty]=this.verticalOffset+"px",e}},watch:{closed:function(e){e&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"==typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;0<this.duration&&(this.timer=setTimeout(function(){e.closed||e.close()},this.duration))},keydown:function(e){46===e.keyCode||8===e.keyCode?this.clearTimer():27===e.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var e=this;0<this.duration&&(this.timer=setTimeout(function(){e.closed||e.close()},this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},be=Object(r.a)(ye,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("transition",{attrs:{name:"el-notification-fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:["el-notification",t.customClass,t.horizontalClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(e){t.clearTimer()},mouseleave:function(e){t.startTimer()},click:t.click}},[t.type||t.iconClass?e("i",{staticClass:"el-notification__icon",class:[t.typeClass,t.iconClass]}):t._e(),e("div",{staticClass:"el-notification__group",class:{"is-with-icon":t.typeClass||t.iconClass}},[e("h2",{staticClass:"el-notification__title",domProps:{textContent:t._s(t.title)}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.message,expression:"message"}],staticClass:"el-notification__content"},[t._t("default",[t.dangerouslyUseHTMLString?e("p",{domProps:{innerHTML:t._s(t.message)}}):e("p",[t._v(t._s(t.message))])])],2),t.showClose?e("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(e){return e.stopPropagation(),t.close(e)}}}):t._e()])])])},[],!1,null,null,null).exports,Co=H.a.extend(be),So=void 0,Ao=[],Mo=1;["success","warning","info","error"].forEach(function(t){_o[t]=function(e){return(e="string"==typeof e||cr(e)?{message:e}:e).type=t,_o(e)}}),_o.close=function(n,e){var i=-1,t=Ao.length,r=Ao.filter(function(e,t){return e.id===n&&(i=t,!0)})[0];if(r&&("function"==typeof e&&e(r),Ao.splice(i,1),!(t<=1)))for(var o=r.position,a=r.dom.offsetHeight,s=i;s<t-1;s++)Ao[s].position===o&&(Ao[s].dom.style[r.verticalProperty]=parseInt(Ao[s].dom.style[r.verticalProperty],10)-a-16+"px")},_o.closeAll=function(){for(var e=Ao.length-1;0<=e;e--)Ao[e].close()};var To=_o,we={name:"TisSliderButton",components:{ElTooltip:Pe},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(e){this.$parent.dragging=e}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(e){this.disabled||(e.preventDefault(),this.onDragStart(e),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(e){this.dragging=!0,this.isClick=!0,"touchstart"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?this.startY=e.clientY:this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(e){var t;this.dragging&&(this.isClick=!1,this.displayTooltip(),this.$parent.resetSize(),t=0,"touchmove"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),t=this.vertical?(this.currentY=e.clientY,(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=e.clientX,(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+t,this.setPosition(this.newPosition))},onDragEnd:function(){var e=this;this.dragging&&(setTimeout(function(){e.dragging=!1,e.hideTooltip(),e.isClick||(e.setPosition(e.newPosition),e.$parent.emitChange())},0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(e){var t,n=this;null===e||isNaN(e)||(e<0?e=0:100<e&&(e=100),t=100/((this.max-this.min)/this.step),t=Math.round(e/t)*t*(this.max-this.min)*.01+this.min,t=parseFloat(t.toFixed(this.precision)),this.$emit("input",t),this.$nextTick(function(){n.displayTooltip(),n.$refs.tooltip&&n.$refs.tooltip.updatePopper()}),this.dragging||this.value===this.oldValue||(this.oldValue=this.value))}}},De=Object(r.a)(we,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:t.hovering,dragging:t.dragging},style:t.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.handleMouseEnter,blur:t.handleMouseLeave,keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onLeftKeyDown(e)},function(e){return!("button"in e)&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:t.onRightKeyDown(e)},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?(e.preventDefault(),t.onLeftKeyDown(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?(e.preventDefault(),t.onRightKeyDown(e)):null}]}},[e("tis-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":t.tooltipClass,disabled:!t.showTooltip}},[e("span",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.formatValue))]),e("div",{staticClass:"el-slider__button",class:{hover:t.hovering,dragging:t.dragging}})])],1)},[],!1,null,null,null).exports,Ie={name:"TisMarker",props:{mark:{type:[String,Object]}},render:function(){var e="string"==typeof this.mark?this.mark:this.mark.label;return(0,arguments[0])("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[e])}},ke={name:"TisSlider",mixins:[a.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:Ye,SliderButton:De,SliderMarker:Ie},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(e,n){this.dragging||Array.isArray(e)&&Array.isArray(n)&&e.every(function(e,t){return e===n[t]})||this.setValues()},dragging:function(e){e||this.setValues()},firstValue:function(e){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",e)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var n=this;return this.range?![this.minValue,this.maxValue].every(function(e,t){return e===n.oldValue[t]}):this.value!==this.oldValue},setValues:function(){var e;this.min>this.max?console.error("[Element Error][Slider]min should not be greater than max."):(e=this.value,this.range&&Array.isArray(e)?e[1]<this.min?this.$emit("input",[this.min,this.min]):e[0]>this.max?this.$emit("input",[this.max,this.max]):e[0]<this.min?this.$emit("input",[this.min,e[1]]):e[1]>this.max?this.$emit("input",[e[0],this.max]):(this.firstValue=e[0],this.secondValue=e[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=e.slice())):this.range||"number"!=typeof e||isNaN(e)||(e<this.min?this.$emit("input",this.min):e>this.max?this.$emit("input",this.max):(this.firstValue=e,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",e),this.oldValue=e))))},setPosition:function(e){var t,n=this.min+e*(this.max-this.min)/100;this.range?(t=void 0,t=Math.abs(this.minValue-n)<Math.abs(this.maxValue-n)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[t].setPosition(e)):this.$refs.button1.setPosition(e)},onSliderClick:function(e){var t;this.sliderDisabled||this.dragging||(this.resetSize(),this.vertical?(t=this.$refs.slider.getBoundingClientRect().bottom,this.setPosition((t-e.clientY)/this.sliderSize*100)):(t=this.$refs.slider.getBoundingClientRect().left,this.setPosition((e.clientX-t)/this.sliderSize*100)),this.emitChange())},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var e=this;this.$nextTick(function(){e.$emit("change",e.range?[e.minValue,e.maxValue]:e.value)})},getStopStyle:function(e){return this.vertical?{bottom:e+"%"}:{left:e+"%"}}},computed:{stops:function(){var t=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var e=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),i=[],r=1;r<e;r++)i.push(r*n);return this.range?i.filter(function(e){return e<100*(t.minValue-t.min)/(t.max-t.min)||e>100*(t.maxValue-t.min)/(t.max-t.min)}):i.filter(function(e){return e>100*(t.firstValue-t.min)/(t.max-t.min)})},markList:function(){var t=this;return this.marks?Object.keys(this.marks).map(parseFloat).sort(function(e,t){return e-t}).filter(function(e){return e<=t.max&&e>=t.min}).map(function(e){return{point:e,position:100*(e-t.min)/(t.max-t.min),mark:t.marks[e]}}):[]},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var e=[this.min,this.max,this.step].map(function(e){e=(""+e).split(".")[1];return e?e.length:0});return Math.max.apply(null,e)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var e=void 0,e=this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],this.firstValue+"-"+this.secondValue):("number"!=typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,this.firstValue);this.$el.setAttribute("aria-valuetext",e),this.$el.setAttribute("aria-label",this.label||"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},ko=Object(r.a)(ke,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("div",{staticClass:"el-slider",class:{"is-vertical":n.vertical,"el-slider--with-input":n.showInput},attrs:{role:"slider","aria-valuemin":n.min,"aria-valuemax":n.max,"aria-orientation":n.vertical?"vertical":"horizontal","aria-disabled":n.sliderDisabled}},[n.showInput&&!n.range?i("tis-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:n.step,disabled:n.sliderDisabled,controls:n.showInputControls,min:n.min,max:n.max,debounce:n.debounce,size:n.inputSize},on:{change:n.emitChange},model:{value:n.firstValue,callback:function(e){n.firstValue=e},expression:"firstValue"}}):n._e(),i("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":n.showInput,disabled:n.sliderDisabled},style:n.runwayStyle,on:{click:n.onSliderClick}},[i("div",{staticClass:"el-slider__bar",style:n.barStyle}),i("slider-button",{ref:"button1",attrs:{vertical:n.vertical,"tooltip-class":n.tooltipClass},model:{value:n.firstValue,callback:function(e){n.firstValue=e},expression:"firstValue"}}),n.range?i("slider-button",{ref:"button2",attrs:{vertical:n.vertical,"tooltip-class":n.tooltipClass},model:{value:n.secondValue,callback:function(e){n.secondValue=e},expression:"secondValue"}}):n._e(),n._l(n.stops,function(e,t){return n.showStops?i("div",{key:t,staticClass:"el-slider__stop",style:n.getStopStyle(e)}):n._e()}),0<n.markList.length?[i("div",n._l(n.markList,function(e,t){return i("div",{key:t,staticClass:"el-slider__stop el-slider__marks-stop",style:n.getStopStyle(e.position)})}),0),i("div",{staticClass:"el-slider__marks"},n._l(n.markList,function(e,t){return i("slider-marker",{key:t,style:n.getStopStyle(e.position),attrs:{mark:e.mark}})}),1)]:n._e()],2)],1)},[],!1,null,null,null).exports;ko.install=function(e){e.component(ko.name,ko)};function Do(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:300,i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");function r(){o||(o=!0,t&&t.apply(null,arguments))}var o=!1;i?e.$once("after-leave",r):e.$on("after-leave",r),setTimeout(function(){r()},n+100)}var Ee=ko,Re={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},Ve=Object(r.a)(Re,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[t("div",{staticClass:"el-loading-spinner"},[e.spinner?t("i",{class:e.spinner}):t("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?t("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},[],!1,null,null,null).exports,Io=H.a.extend(Ve),We={install:function(r){var s,e;r.prototype.$isServer||(s=function(n,i){i.value?r.nextTick(function(){i.modifiers.fullscreen?(n.originalPosition=Object(M.c)(document.body,"position"),n.originalOverflow=Object(M.c)(document.body,"overflow"),n.maskStyle.zIndex=W.a.nextZIndex(),Object(M.a)(n.mask,"is-fullscreen"),e(document.body,n,i)):(Object(M.i)(n.mask,"is-fullscreen"),i.modifiers.body?(n.originalPosition=Object(M.c)(document.body,"position"),["top","left"].forEach(function(e){var t="top"===e?"scrollTop":"scrollLeft";n.maskStyle[e]=n.getBoundingClientRect()[e]+document.body[t]+document.documentElement[t]-parseInt(Object(M.c)(document.body,"margin-"+e),10)+"px"}),["height","width"].forEach(function(e){n.maskStyle[e]=n.getBoundingClientRect()[e]+"px"}),e(document.body,n,i)):(n.originalPosition=Object(M.c)(n,"position"),e(n,n,i)))}):(Do(n.instance,function(e){var t;n.instance.hiding&&(n.domVisible=!1,t=i.modifiers.fullscreen||i.modifiers.body?document.body:n,Object(M.i)(t,"el-loading-parent--relative"),Object(M.i)(t,"el-loading-parent--hidden"),n.instance.hiding=!1)},300,!0),n.instance.visible=!1,n.instance.hiding=!0)},e=function(e,t,n){t.domVisible||"none"===Object(M.c)(t,"display")||"hidden"===Object(M.c)(t,"visibility")?t.domVisible&&!0===t.instance.hiding&&(t.instance.visible=!0,t.instance.hiding=!1):(Object.keys(t.maskStyle).forEach(function(e){t.mask.style[e]=t.maskStyle[e]}),"absolute"!==t.originalPosition&&"fixed"!==t.originalPosition&&Object(M.a)(e,"el-loading-parent--relative"),n.modifiers.fullscreen&&n.modifiers.lock&&Object(M.a)(e,"el-loading-parent--hidden"),t.domVisible=!0,e.appendChild(t.mask),r.nextTick(function(){t.instance.hiding?t.instance.$emit("after-leave"):t.instance.visible=!0}),t.domInserted=!0)},r.directive("loading",{bind:function(e,t,n){var i=e.getAttribute("element-loading-text"),r=e.getAttribute("element-loading-spinner"),o=e.getAttribute("element-loading-background"),a=e.getAttribute("element-loading-custom-class"),n=n.context,a=new Io({el:document.createElement("div"),data:{text:n&&n[i]||i,spinner:n&&n[r]||r,background:n&&n[o]||o,customClass:n&&n[a]||a,fullscreen:!!t.modifiers.fullscreen}});e.instance=a,e.mask=a.$el,e.maskStyle={},t.value&&s(e,t)},update:function(e,t){e.instance.setText(e.getAttribute("element-loading-text")),t.oldValue!==t.value&&s(e,t)},unbind:function(e,t){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),s(e,{value:!1,modifiers:t.modifiers})),e.instance&&e.instance.$destroy()}}))}},Oo=We,No=H.a.extend(Ve),Lo={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Po=void 0;No.prototype.originalPosition="",No.prototype.originalOverflow="",No.prototype.close=function(){var n=this;this.fullscreen&&(Po=void 0),Do(this,function(e){var t=n.fullscreen||n.body?document.body:n.target;Object(M.i)(t,"el-loading-parent--relative"),Object(M.i)(t,"el-loading-parent--hidden"),n.$el&&n.$el.parentNode&&n.$el.parentNode.removeChild(n.$el),n.$destroy()},300),this.visible=!1};function Eo(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!H.a.prototype.$isServer){if("string"==typeof(e=Object(kt.a)({},Lo,e)).target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&Po)return Po;var n,t,i,r,o=e.body?document.body:e.target,a=new No({el:document.createElement("div"),data:e});return t=o,i=a,r={},(n=e).fullscreen?(i.originalPosition=Object(M.c)(document.body,"position"),i.originalOverflow=Object(M.c)(document.body,"overflow"),r.zIndex=W.a.nextZIndex()):n.body?(i.originalPosition=Object(M.c)(document.body,"position"),["top","left"].forEach(function(e){var t="top"===e?"scrollTop":"scrollLeft";r[e]=n.target.getBoundingClientRect()[e]+document.body[t]+document.documentElement[t]+"px"}),["height","width"].forEach(function(e){r[e]=n.target.getBoundingClientRect()[e]+"px"})):i.originalPosition=Object(M.c)(t,"position"),Object.keys(r).forEach(function(e){i.$el.style[e]=r[e]}),"absolute"!==a.originalPosition&&"fixed"!==a.originalPosition&&Object(M.a)(o,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(M.a)(o,"el-loading-parent--hidden"),o.appendChild(a.$el),H.a.nextTick(function(){a.visible=!0}),e.fullscreen&&(Po=a),a}}var Ho={install:function(e){e.use(Oo),e.prototype.$loading=Eo},directive:Oo,service:Eo},qe={name:"TisIcon",props:{name:String}},zo=Object(r.a)(qe,function(){var e=this.$createElement;return(this._self._c||e)("i",{class:"el-icon-"+this.name})},[],!1,null,null,null).exports;zo.install=function(e){e.component(zo.name,zo)};var Qe=zo,Ro={name:"TisRow",componentName:"TisRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:{type:String,default:"top"}},computed:{style:function(){var e={};return this.gutter&&(e.marginLeft="-"+this.gutter/2+"px",e.marginRight=e.marginLeft),e}},render:function(e){return e(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"","top"!==this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(Ro.name,Ro)}},tt=Ro,jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo={name:"TisCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){for(var e=this.$parent;e&&"ElRow"!==e.$options.componentName;)e=e.$parent;return e?e.gutter:0}},render:function(e){var i=this,r=[],t={};return this.gutter&&(t.paddingLeft=this.gutter/2+"px",t.paddingRight=t.paddingLeft),["span","offset","pull","push"].forEach(function(e){!i[e]&&0!==i[e]||r.push("span"!==e?"el-col-"+e+"-"+i[e]:"el-col-"+i[e])}),["xs","sm","md","lg","xl"].forEach(function(t){var n;"number"==typeof i[t]?r.push("el-col-"+t+"-"+i[t]):"object"===jo(i[t])&&(n=i[t],Object.keys(n).forEach(function(e){r.push("span"!==e?"el-col-"+t+"-"+e+"-"+n[e]:"el-col-"+t+"-"+n[e])}))}),e(this.tag,{class:["el-col",r],style:t},this.$slots.default)},install:function(e){e.component(Bo.name,Bo)}},rt=Bo,st={name:"TisProgress",props:{type:{type:String,default:"line",validator:function(e){return-1<["line","circle","dashboard"].indexOf(e)}},percentage:{type:Number,default:0,required:!0,validator:function(e){return 0<=e&&e<=100}},status:{type:String,validator:function(e){return-1<["success","exception","warning"].indexOf(e)}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"==typeof this.color?this.color(e):"string"==typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort(function(e,t){return e.percentage-t.percentage}),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,n=100/e.length;return e.map(function(e,t){return"string"==typeof e?{color:e,percentage:(t+1)*n}:e})}}},Fo=Object(r.a)(st,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?t("div",{staticClass:"el-progress-bar"},[t("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[t("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?t("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):t("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[t("svg",{attrs:{viewBox:"0 0 100 100"}},[t("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),t("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?t("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?t("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},[],!1,null,null,null).exports;Fo.install=function(e){e.component(Fo.name,Fo)};var s=Fo,ct={name:"TisUploadList",mixins:[l.a],data:function(){return{focusing:!1}},components:{ElProgress:s},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},Vo=Object(r.a)(ct,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("transition-group",{class:["el-upload-list","el-upload-list--"+n.listType,{"is-disabled":n.disabled}],attrs:{tag:"ul",name:"el-list"}},n._l(n.files,function(t){return i("li",{key:t.uid,class:["el-upload-list__item","is-"+t.status,n.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(e){if(!("button"in e)&&n._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"]))return null;n.disabled||n.$emit("remove",t)},focus:function(e){n.focusing=!0},blur:function(e){n.focusing=!1},click:function(e){n.focusing=!1}}},[n._t("default",["uploading"!==t.status&&-1<["picture-card","picture"].indexOf(n.listType)?i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):n._e(),i("a",{staticClass:"el-upload-list__item-name",on:{click:function(e){n.handleClick(t)}}},[i("i",{staticClass:"el-icon-document"}),n._v(n._s(t.name)+"\n ")]),i("label",{staticClass:"el-upload-list__item-status-label"},[i("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===n.listType,"el-icon-check":-1<["picture-card","picture"].indexOf(n.listType)}})]),n.disabled?n._e():i("i",{staticClass:"el-icon-close",on:{click:function(e){n.$emit("remove",t)}}}),n.disabled?n._e():i("i",{staticClass:"el-icon-close-tip"},[n._v(n._s(n.t("el.upload.deleteTip")))]),"uploading"===t.status?i("tis-progress",{attrs:{type:"picture-card"===n.listType?"circle":"line","stroke-width":"picture-card"===n.listType?6:2,percentage:n.parsePercentage(t.percentage)}}):n._e(),"picture-card"===n.listType?i("span",{staticClass:"el-upload-list__item-actions"},[n.handlePreview&&"picture-card"===n.listType?i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(e){n.handlePreview(t)}}},[i("i",{staticClass:"el-icon-zoom-in"})]):n._e(),n.disabled?n._e():i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(e){n.$emit("remove",t)}}},[i("i",{staticClass:"el-icon-delete"})])]):n._e()],{file:t})],2)}),0)},[],!1,null,null,null).exports,pt=n(73),$o=n.n(pt);St={name:"TisUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){var r;!this.disabled&&this.uploader&&(r=this.uploader.accept,this.dragover=!1,r?this.$emit("file",[].slice.call(e.dataTransfer.files).filter(function(e){var t=e.type,e=e.name,n=-1<e.indexOf(".")?"."+e.split(".").pop():"",i=t.replace(/\/.*$/,"");return r.split(",").map(function(e){return e.trim()}).filter(function(e){return e}).some(function(e){return/\..+$/.test(e)?n===e:/\/\*$/.test(e)?i===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&t===e})})):this.$emit("file",e.dataTransfer.files))}}},Ht={inject:["uploader"],components:{UploadDragger:Object(r.a)(St,function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-upload-dragger",class:{"is-dragover":t.dragover},on:{drop:function(e){return e.preventDefault(),t.onDrop(e)},dragover:function(e){return e.preventDefault(),t.onDragover(e)},dragleave:function(e){e.preventDefault(),t.dragover=!1}}},[t._t("default")],2)},[],!1,null,null,null).exports},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:function(i){if("undefined"!=typeof XMLHttpRequest){var r=new XMLHttpRequest,o=i.action;r.upload&&(r.upload.onprogress=function(e){0<e.total&&(e.percent=e.loaded/e.total*100),i.onProgress(e)});var t=new FormData;i.data&&Object.keys(i.data).forEach(function(e){t.append(e,i.data[e])}),t.append(i.filename,i.file,i.file.name),r.onerror=function(e){i.onError(e)},r.onload=function(){if(r.status<200||300<=r.status)return i.onError((e=o,n=void 0,n=(t=r).response?""+(t.response.error||t.response):t.responseText?""+t.responseText:"fail to post "+e+" "+t.status,(n=new Error(n)).status=t.status,n.method="post",n.url=e,n));var e,t,n;i.onSuccess(function(t){if(!(t=t.responseText||t.response))return t;try{return JSON.parse(t)}catch(e){return t}}(r))},r.open("post",o,!0),i.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0);var e,n=i.headers||{};for(e in n)n.hasOwnProperty(e)&&null!==n[e]&&r.setRequestHeader(e,n[e]);return r.send(t),r}}},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){e=e.target.files;e&&this.uploadFiles(e)},uploadFiles:function(e){var t=this;this.limit&&this.fileList.length+e.length>this.limit?this.onExceed&&this.onExceed(e,this.fileList):(e=Array.prototype.slice.call(e),0!==(e=!this.multiple?e.slice(0,1):e).length&&e.forEach(function(e){t.onStart(e),t.autoUpload&&t.upload(e)}))},upload:function(i){var r=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(i);var e=this.beforeUpload(i);e&&e.then?e.then(function(e){var t=Object.prototype.toString.call(e);if("[object File]"===t||"[object Blob]"===t){for(var n in"[object Blob]"===t&&(e=new File([e],i.name,{type:i.type})),i)i.hasOwnProperty(n)&&(e[n]=i[n]);r.post(e)}else r.post(i)},function(){r.onRemove(null,i)}):!1!==e?this.post(i):this.onRemove(null,i)},abort:function(e){var t,n=this.reqs;e?((t=e).uid&&(t=e.uid),n[t]&&n[t].abort()):Object.keys(n).forEach(function(e){n[e]&&n[e].abort(),delete n[e]})},post:function(t){var n=this,i=t.uid,e={headers:this.headers,withCredentials:this.withCredentials,file:t,data:this.data,filename:this.name,action:this.action,onProgress:function(e){n.onProgress(e,t)},onSuccess:function(e){n.onSuccess(e,t),delete n.reqs[i]},onError:function(e){n.onError(e,t),delete n.reqs[i]}},r=this.httpRequest(e);(this.reqs[i]=r)&&r.then&&r.then(e.onSuccess,e.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target===e.currentTarget&&(13!==e.keyCode&&32!==e.keyCode||this.handleClick())}},render:function(e){var t=this.handleClick,n=this.drag,i=this.name,r=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,l=this.uploadFiles,u=this.disabled,t={class:{"el-upload":!0},on:{click:t,keydown:this.handleKeydown}};return t.class["el-upload--"+s]=!0,e("div",$o()([t,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:u},on:{file:l}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:i,multiple:o,accept:a},ref:"input",on:{change:r}})])}},Rt=Object(r.a)(Ht,void 0,void 0,!1,null,null,null).exports;function Yo(){}var Qt={name:"TisUpload",mixins:[X.a],components:{ElProgress:s,UploadList:Vo,Upload:Rt},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:Yo},onChange:{type:Function,default:Yo},onPreview:{type:Function},onSuccess:{type:Function,default:Yo},onProgress:{type:Function,default:Yo},onError:{type:Function,default:Yo},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:Yo}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map(function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(e){console.error("[Element Error][Upload]",e)}return e}))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map(function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e})}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(e){return void console.error("[Element Error][Upload]",e)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){t=this.getFile(t);this.onProgress(e,t,this.uploadFiles),t.status="uploading",t.percentage=e.percent||0},handleSuccess:function(e,t){t=this.getFile(t);t&&(t.status="success",t.response=e,this.onSuccess(e,t,this.uploadFiles),this.onChange(t,this.uploadFiles))},handleError:function(e,t){var n=this.getFile(t),t=this.uploadFiles;n.status="fail",t.splice(t.indexOf(n),1),this.onError(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(t,e){var n=this;e&&(t=this.getFile(e));function i(){n.abort(t);var e=n.uploadFiles;e.splice(e.indexOf(t),1),n.onRemove(t,e)}this.beforeRemove?"function"==typeof this.beforeRemove&&((e=this.beforeRemove(t,this.uploadFiles))&&e.then?e.then(function(){i()},Yo):!1!==e&&i()):i()},getFile:function(t){var e=this.uploadFiles,n=void 0;return e.every(function(e){return!(n=t.uid===e.uid?e:null)}),n},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var t=this;this.uploadFiles.filter(function(e){return"ready"===e.status}).forEach(function(e){t.$refs["upload-inner"].upload(e.raw)})},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach(function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)})},render:function(e){var t=this,n=void 0;this.showFileList&&(n=e(Vo,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(t.$scopedSlots.file)return t.$scopedSlots.file({file:e.file})}]));var i=e("upload",{props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},[this.$slots.trigger||this.$slots.default]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[i,this.$slots.default]:i,this.$slots.tip,"picture-card"!==this.listType?n:""])}},Wo=Object(r.a)(Qt,void 0,void 0,!1,null,null,null).exports;Wo.install=function(e){e.component(Wo.name,Wo)};var en=Wo,$t={name:"TisSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},Xo=Object(r.a)($t,function(){var e=this.$createElement,e=this._self._c||e;return e("span",{staticClass:"el-spinner"},[e("svg",{staticClass:"el-spinner-inner",style:{width:this.radius/2+"px",height:this.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[e("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:this.strokeColor,"stroke-width":this.strokeWidth}})])])},[],!1,null,null,null).exports;Xo.install=function(e){e.component(Xo.name,Xo)};function Go(e){if(!H.a.prototype.$isServer){var t=(e="string"==typeof(e=e||{})?{message:e}:e).onClose,n="message_"+Qo++;e.onClose=function(){Go.close(n,t)},(Zo=new qo({data:e})).id=n,cr(Zo.message)&&(Zo.$slots.default=[Zo.message],Zo.message=null),Zo.$mount(),document.body.appendChild(Zo.$el);var i=e.offset||20;return Ko.forEach(function(e){i+=e.$el.offsetHeight+16}),Zo.verticalOffset=i,Zo.visible=!0,Zo.$el.style.zIndex=W.a.nextZIndex(),Ko.push(Zo),Zo}}var nn=Xo,Uo={success:"success",info:"info",warning:"warning",error:"error"},Tt={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+Uo[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;0<this.duration&&(this.timer=setTimeout(function(){e.closed||e.close()},this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},tn=Object(r.a)(Tt,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?t("i",{class:e.iconClass}):t("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?t("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):t("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?t("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])},[],!1,null,null,null).exports,qo=H.a.extend(tn),Zo=void 0,Ko=[],Qo=1;["success","warning","info","error"].forEach(function(t){Go[t]=function(e){return(e="string"==typeof e?{message:e}:e).type=t,Go(e)}}),Go.close=function(e,t){for(var n=Ko.length,i=-1,r=void 0,o=0;o<n;o++)if(e===Ko[o].id){r=Ko[o].$el.offsetHeight,i=o,"function"==typeof t&&t(Ko[o]),Ko.splice(o,1);break}if(!(n<=1||-1===i||i>Ko.length-1))for(var a=i;a<n-1;a++){var s=Ko[a].$el;s.style.top=parseInt(s.style.top,10)-r-16+"px"}},Go.closeAll=function(){for(var e=Ko.length-1;0<=e;e--)Ko[e].close()};var Jo=Go,rn={name:"TisBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(e){return-1<["primary","success","warning","info","danger"].indexOf(e)}}},computed:{content:function(){if(!this.isDot){var e=this.value,t=this.max;return"number"==typeof e&&"number"==typeof t&&t<e?t+"+":e}}}},ea=Object(r.a)(rn,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("div",{staticClass:"el-badge"},[e._t("default"),t("transition",{attrs:{name:"el-zoom-in-center"}},[t("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||0===e.content||e.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:["el-badge__content--"+e.type,{"is-fixed":e.$slots.default,"is-dot":e.isDot}],domProps:{textContent:e._s(e.content)}})])],2)},[],!1,null,null,null).exports;ea.install=function(e){e.component(ea.name,ea)};var Xt=ea,on={name:"TisCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},ta=Object(r.a)(on,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("div",{staticClass:"el-card",class:e.shadow?"is-"+e.shadow+"-shadow":"is-always-shadow"},[e.$slots.header||e.header?t("div",{staticClass:"el-card__header"},[e._t("header",[e._v(e._s(e.header))])],2):e._e(),t("div",{staticClass:"el-card__body",style:e.bodyStyle},[e._t("default")],2)])},[],!1,null,null,null).exports;ta.install=function(e){e.component(ta.name,ta)};var sn=ta,na=n(33),Tn={name:"TisRate",mixins:[X.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var e="";return this.showScore?e=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(e=this.texts[Math.ceil(this.currentValue)-1]),e},decimalStyle:function(){var e="";return this.rateDisabled?e=this.valueDecimal+"%":this.allowHalf&&(e="50%"),{color:this.activeColor,width:e}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var e;return Array.isArray(this.iconClasses)?((e={})[this.lowThreshold]=this.iconClasses[0],e[this.highThreshold]={value:this.iconClasses[1],excluded:!0},e[this.max]=this.iconClasses[2],e):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var e;return Array.isArray(this.colors)?((e={})[this.lowThreshold]=this.colors[0],e[this.highThreshold]={value:this.colors[1],excluded:!0},e[this.max]=this.colors[2],e):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var e=[],t=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;t<n;t++)e.push(this.activeClass);for(;t<this.max;t++)e.push(this.voidClass);return e},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){this.currentValue=e,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(n,i){var e=Object.keys(i).filter(function(e){var t=i[e];return!!Object(na.d)(t)&&t.excluded?n<e:n<=e}).sort(function(e,t){return e-t}),e=i[e[0]];return Object(na.d)(e)?e.value:e||""},showDecimalIcon:function(e){var t=this.rateDisabled&&0<this.valueDecimal&&e-1<this.value&&e>this.value,e=this.allowHalf&&this.pointerAtLeftHalf&&e-.5<=this.currentValue&&e>this.currentValue;return t||e},getIconStyle:function(e){var t=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:e<=this.currentValue?this.activeColor:t}},selectValue:function(e){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",e),this.$emit("change",e)))},handleKey:function(e){var t,n;this.rateDisabled||(t=this.currentValue,38===(n=e.keyCode)||39===n?(this.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):37!==n&&40!==n||(this.allowHalf?t-=.5:--t,e.stopPropagation(),e.preventDefault()),t=(t=t<0?0:t)>this.max?this.max:t,this.$emit("input",t),this.$emit("change",t))},setCurrentValue:function(e,t){var n;this.rateDisabled||(this.allowHalf?(n=t.target,Object(M.d)(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(M.d)(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*t.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?e-.5:e):this.currentValue=e,this.hoverIndex=e)},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},ia=Object(r.a)(Tn,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":n.currentValue,"aria-valuetext":n.text,"aria-valuemin":"0","aria-valuemax":n.max,tabindex:"0"},on:{keydown:n.handleKey}},[n._l(n.max,function(t,e){return i("span",{key:e,staticClass:"el-rate__item",style:{cursor:n.rateDisabled?"auto":"pointer"},on:{mousemove:function(e){n.setCurrentValue(t,e)},mouseleave:n.resetCurrentValue,click:function(e){n.selectValue(t)}}},[i("i",{staticClass:"el-rate__icon",class:[n.classes[t-1],{hover:n.hoverIndex===t}],style:n.getIconStyle(t)},[n.showDecimalIcon(t)?i("i",{staticClass:"el-rate__decimal",class:n.decimalIconClass,style:n.decimalStyle}):n._e()])])}),n.showText||n.showScore?i("span",{staticClass:"el-rate__text",style:{color:n.textColor}},[n._v(n._s(n.text))]):n._e()],2)},[],!1,null,null,null).exports;ia.install=function(e){e.component(ia.name,ia)};var mi=ia,gi={name:"TisSteps",mixins:[X.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(e,t){this.$emit("change",e,t)},steps:function(e){e.forEach(function(e,t){e.index=t})}}},ra=Object(r.a)(gi,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-steps",class:[!this.simple&&"el-steps--"+this.direction,this.simple&&"el-steps--simple"]},[this._t("default")],2)},[],!1,null,null,null).exports;ra.install=function(e){e.component(ra.name,ra)};var di=ra,xi={name:"TisStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var e=this.$parent.steps,t=e.indexOf(this);0<=t&&e.splice(t,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var e=this.$parent.steps[this.index-1];return e?e.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var e=this.$parent;return e.steps[e.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e,t=this.$parent.steps.length,t="number"==typeof this.space?this.space+"px":this.space||100/(t-(this.isCenter?0:1))+"%";return(e={}).flexBasis=t,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},methods:{updateStatus:function(e){var t=this.$parent.$children[this.index-1];e>this.index?this.internalStatus=this.$parent.finishStatus:e===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",t&&t.calcProgress(this.internalStatus)},calcProgress:function(e){var t=100,n={};n.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=t+"%":n.width=t+"%",this.lineStyle=n}},mounted:function(){var t=this,n=this.$watch("index",function(e){t.$watch("$parent.active",t.updateStatus,{immediate:!0}),t.$watch("$parent.processStatus",function(){var e=t.$parent.active;t.updateStatus(e)},{immediate:!0}),n()})}},oa=Object(r.a)(xi,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("div",{staticClass:"el-step",class:[!e.isSimple&&"is-"+e.$parent.direction,e.isSimple&&"is-simple",e.isLast&&!e.space&&!e.isCenter&&"is-flex",e.isCenter&&!e.isVertical&&!e.isSimple&&"is-center"],style:e.style},[t("div",{staticClass:"el-step__head",class:"is-"+e.currentStatus},[t("div",{staticClass:"el-step__line",style:e.isLast?"":{marginRight:e.$parent.stepOffset+"px"}},[t("i",{staticClass:"el-step__line-inner",style:e.lineStyle})]),t("div",{staticClass:"el-step__icon",class:"is-"+(e.icon?"icon":"text")},["success"!==e.currentStatus&&"error"!==e.currentStatus?e._t("icon",[e.icon?t("i",{staticClass:"el-step__icon-inner",class:[e.icon]}):e._e(),e.icon||e.isSimple?e._e():t("div",{staticClass:"el-step__icon-inner"},[e._v(e._s(e.index+1))])]):t("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===e.currentStatus?"check":"close")]})],2)]),t("div",{staticClass:"el-step__main"},[t("div",{ref:"title",staticClass:"el-step__title",class:["is-"+e.currentStatus]},[e._t("title",[e._v(e._s(e.title))])],2),e.isSimple?t("div",{staticClass:"el-step__arrow"}):t("div",{staticClass:"el-step__description",class:["is-"+e.currentStatus]},[e._t("description",[e._v(e._s(e.description))])],2)])])},[],!1,null,null,null).exports;oa.install=function(e){e.component(oa.name,oa)};var bi=oa,Fe=n(59),aa=n.n(Fe),wi={name:"TisCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some(function(e){return 0<e.label.toString().length})},carouselClasses:function(){var e=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&e.push("el-carousel--card"),e},indicatorsClasses:function(){var e=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&e.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||e.push("el-carousel__indicators--outside"),e}},watch:{items:function(e){0<e.length&&this.setActiveItem(this.initialIndex)},activeIndex:function(e,t){this.resetItemPosition(t),-1<t&&this.$emit("change",e,t)},autoplay:function(e){e?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(e,t){var n=this.items.length;return t===n-1&&e.inStage&&this.items[0].active||e.inStage&&this.items[t+1]&&this.items[t+1].active?"left":!!(0===t&&e.inStage&&this.items[n-1].active||e.inStage&&this.items[t-1]&&this.items[t-1].active)&&"right"},handleButtonEnter:function(n){var i=this;"vertical"!==this.direction&&this.items.forEach(function(e,t){n===i.itemInStage(e,t)&&(e.hover=!0)})},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach(function(e){e.hover=!1})},updateItems:function(){this.items=this.$children.filter(function(e){return"ElCarouselItem"===e.$options.name})},resetItemPosition:function(n){var i=this;this.items.forEach(function(e,t){e.translateItem(t,i.activeIndex,n)})},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},setActiveItem:function(t){var e,n;"string"!=typeof t||0<(n=this.items.filter(function(e){return e.name===t})).length&&(t=this.items.indexOf(n[0])),t=Number(t),isNaN(t)||t!==Math.floor(t)?console.warn("[Element Warn][Carousel]index must be an integer."):(e=this.items.length,n=this.activeIndex,this.activeIndex=t<0?this.loop?e-1:0:e<=t?this.loop?0:e-1:t,n===this.activeIndex&&this.resetItemPosition(n))},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(e){this.activeIndex=e},handleIndicatorHover:function(e){"hover"===this.trigger&&e!==this.activeIndex&&(this.activeIndex=e)}},created:function(){var t=this;this.throttledArrowClick=aa()(300,!0,function(e){t.setActiveItem(e)}),this.throttledIndicatorHover=aa()(300,function(e){t.handleIndicatorHover(e)})},mounted:function(){var e=this;this.updateItems(),this.$nextTick(function(){b(e.$el,e.resetItemPosition),e.initialIndex<e.items.length&&0<=e.initialIndex&&(e.activeIndex=e.initialIndex),e.startTimer()})},beforeDestroy:function(){this.$el&&_(this.$el,this.resetItemPosition),this.pauseTimer()}},sa=Object(r.a)(wi,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("div",{class:n.carouselClasses,on:{mouseenter:function(e){return e.stopPropagation(),n.handleMouseEnter(e)},mouseleave:function(e){return e.stopPropagation(),n.handleMouseLeave(e)}}},[i("div",{staticClass:"el-carousel__container",style:{height:n.height}},[n.arrowDisplay?i("transition",{attrs:{name:"carousel-arrow-left"}},[i("button",{directives:[{name:"show",rawName:"v-show",value:("always"===n.arrow||n.hover)&&(n.loop||0<n.activeIndex),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(e){n.handleButtonEnter("left")},mouseleave:n.handleButtonLeave,click:function(e){e.stopPropagation(),n.throttledArrowClick(n.activeIndex-1)}}},[i("i",{staticClass:"el-icon-arrow-left"})])]):n._e(),n.arrowDisplay?i("transition",{attrs:{name:"carousel-arrow-right"}},[i("button",{directives:[{name:"show",rawName:"v-show",value:("always"===n.arrow||n.hover)&&(n.loop||n.activeIndex<n.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(e){n.handleButtonEnter("right")},mouseleave:n.handleButtonLeave,click:function(e){e.stopPropagation(),n.throttledArrowClick(n.activeIndex+1)}}},[i("i",{staticClass:"el-icon-arrow-right"})])]):n._e(),n._t("default")],2),"none"!==n.indicatorPosition?i("ul",{class:n.indicatorsClasses},n._l(n.items,function(e,t){return i("li",{key:t,class:["el-carousel__indicator","el-carousel__indicator--"+n.direction,{"is-active":t===n.activeIndex}],on:{mouseenter:function(e){n.throttledIndicatorHover(t)},click:function(e){e.stopPropagation(),n.handleIndicatorClick(t)}}},[i("button",{staticClass:"el-carousel__button"},[n.hasLabel?i("span",[n._v(n._s(e.label))]):n._e()])])}),0):n._e()])},[],!1,null,null,null).exports;sa.install=function(e){e.component(sa.name,sa)};var Si=sa,Mi={name:"TisCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(e,t,n){return 0===t&&e===n-1?-1:t===n-1&&0===e?n:e<t-1&&n/2<=t-e?n+1:t+1<e&&n/2<=e-t?-2:e},calcCardTranslate:function(e,t){var n=this.$parent.$el.offsetWidth;return this.inStage?n*(1.17*(e-t)+1)/4:e<t?-1.83*n/4:3.83*n/4},calcTranslate:function(e,t,n){return this.$parent.$el[n?"offsetHeight":"offsetWidth"]*(e-t)},translateItem:function(e,t,n){var i=this.$parent.type,r=this.parentDirection,o=this.$parent.items.length;"card"!==i&&void 0!==n&&(this.animating=e===t||e===n),e!==t&&2<o&&this.$parent.loop&&(e=this.processIndex(e,t,o)),"card"===i?("vertical"===r&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(e-t))<=1,this.active=e===t,this.translate=this.calcCardTranslate(e,t),this.scale=this.active?1:.83):(this.active=e===t,this.translate=this.calcTranslate(e,t,"vertical"===r)),this.ready=!0},handleItemClick:function(){var e,t=this.$parent;t&&"card"===t.type&&(e=t.items.indexOf(this),t.setActiveItem(e))}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var e={transform:("vertical"===this.parentDirection?"translateY":"translateX")+"("+this.translate+"px) scale("+this.scale+")"};return Object(x.c)(e)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},la=Object(r.a)(Mi,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":e.active,"el-carousel__item--card":"card"===e.$parent.type,"is-in-stage":e.inStage,"is-hover":e.hover,"is-animating":e.animating},style:e.itemStyle,on:{click:e.handleItemClick}},["card"===e.$parent.type?t("div",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!active"}],staticClass:"el-carousel__mask"}):e._e(),e._t("default")],2)},[],!1,null,null,null).exports;la.install=function(e){e.component(la.name,la)};var ki=la,Oi={name:"TisCollapse",componentName:"TisCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){var t,n;this.accordion?this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:""):(-1<(n=(t=this.activeNames.slice(0)).indexOf(e.name))?t.splice(n,1):t.push(e.name),this.setActiveNames(t))}},created:function(){this.$on("item-click",this.handleItemClick)}},ua=Object(r.a)(Oi,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[this._t("default")],2)},[],!1,null,null,null).exports;ua.install=function(e){e.component(ua.name,ua)};var Ti=ua,Li={name:"TisCollapseItem",componentName:"TisCollapseItem",mixins:[a.a],components:{TisCollapseTransition:Te},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(x.g)()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return-1<this.collapse.activeNames.indexOf(this.name)}},methods:{handleFocus:function(){var e=this;setTimeout(function(){e.isClick?e.isClick=!1:e.focusing=!0},50)},handleHeaderClick:function(){this.disabled||(this.dispatch("TisCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("TisCollapse","item-click",this)}}},ca=Object(r.a)(Li,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{staticClass:"el-collapse-item",class:{"is-active":t.isActive,"is-disabled":t.disabled}},[e("div",{attrs:{role:"tab","aria-expanded":t.isActive,"aria-controls":"el-collapse-content-"+t.id,"aria-describedby":"el-collapse-content-"+t.id}},[e("div",{staticClass:"el-collapse-item__header",class:{focusing:t.focusing,"is-active":t.isActive},attrs:{role:"button",id:"el-collapse-head-"+t.id,tabindex:t.disabled?void 0:0},on:{click:t.handleHeaderClick,keyup:function(e){return"button"in e||!t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.stopPropagation(),t.handleEnterClick(e)):null},focus:t.handleFocus,blur:function(e){t.focusing=!1}}},[t._t("title",[t._v(t._s(t.title))]),e("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":t.isActive}})],2)]),e("tis-collapse-transition",[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!t.isActive,"aria-labelledby":"el-collapse-head-"+t.id,id:"el-collapse-content-"+t.id}},[e("div",{staticClass:"el-collapse-item__content"},[t._t("default")],2)])])],1)},[],!1,null,null,null).exports;ca.install=function(e){e.component(ca.name,ca)};function ha(e){return e.stopPropagation()}Ni=ca,Ei={inject:["panel"],components:{ElCheckbox:it,ElRadio:Ge},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var t=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some(function(e){return t.isInPath(e)})},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var t=this,e=this.panel,n=this.node,i=this.isDisabled,r=this.config,o=r.multiple;!r.checkStrictly&&i||n.loading||(r.lazy&&!n.loaded?e.lazyLoad(n,function(){var e=t.isLeaf;e||t.handleExpand(),o&&(e=!!e&&n.checked,t.handleMultiCheckChange(e))}):e.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node;return(e[t.level-1]||{}).uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,i=this.config,r=i.checkStrictly;return i.multiple?this.renderCheckbox(e):r?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,i=this.isDisabled,r={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(r.nativeOn.click=ha),e("tis-checkbox",$o()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:i}},r]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,i=this.isDisabled;return e("tis-radio",{attrs:{value:t,label:n=Object(x.m)(n,t)?t:n,disabled:i},on:{change:this.handleCheckChange},nativeOn:{click:ha}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,t=t.renderLabelFn;return e("span",{class:"el-cascader-node__label"},[(t?t({node:n,data:n.data}):null)||n.label])}},render:function(e){var t=this,n=this.inActivePath,i=this.inCheckedPath,r=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,l=this.nodeId,u=s.expandTrigger,c=s.checkStrictly,h=s.multiple,d=!c&&a,s={on:{}};return"click"===u?s.on.click=this.handleExpand:(s.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},s.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||c||h||(s.on.click=this.handleCheckChange),e("li",$o()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":c,"in-active-path":n,"in-checked-path":i,"is-active":r,"is-disabled":d}},s]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},Di=Object(r.a)(Ei,void 0,void 0,!1,null,null,null).exports,zi={name:"TisCascaderMenu",mixins:[l.a],inject:["panel"],components:{ElScrollbar:I,CascaderNode:Di},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(x.g)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t,n,i,r=this.activeNode,o=this.hoverTimer,a=this.$refs.hoverZone;r&&a&&(r.contains(e.target)?(clearTimeout(o),n=this.$el.getBoundingClientRect().left,t=e.clientX-n,e=(i=this.$el).offsetWidth,n=i.offsetHeight,r=(i=r.offsetTop)+r.offsetHeight,a.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+t+" "+i+" L"+e+" 0 V"+i+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+t+" "+r+" L"+e+" "+n+" V"+r+' Z" />\n '):o||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold)))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(i){var r=this.menuId,e=this.panel.isHoverMenu,o={on:{}};e&&(o.on.expand=this.handleExpand);var t=this.nodes.map(function(e,t){var n=e.hasChildren;return i("cascader-node",$o()([{key:e.uid,attrs:{node:e,"node-id":r+"-"+t,"aria-haspopup":n,"aria-owns":n?r:null}},o]))});return[].concat(t,[e?i("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("tis-scrollbar",$o()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},Fi=Object(r.a)(zi,void 0,void 0,!1,null,null,null).exports,Ci=function(e,t,n){return t&&da(e.prototype,t),n&&da(e,n),e};function da(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var pa=0;function fa(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,fa),this.data=e,this.config=t,this.parent=n||null,this.level=this.parent?this.parent.level+1:1,this.uid=pa++,this.initState(),this.initChildren()}var ma=(fa.prototype.initState=function(){var e=this.config,t=e.value,e=e.label;this.value=this.data[t],this.label=this.data[e],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map(function(e){return e.value}),this.pathLabels=this.pathNodes.map(function(e){return e.label}),this.loading=!1,this.loaded=!1},fa.prototype.initChildren=function(){var t=this,n=this.config,e=n.children,e=this.data[e];this.hasChildren=Array.isArray(e),this.children=(e||[]).map(function(e){return new fa(e,n,t)})},fa.prototype.calculatePathNodes=function(){for(var e=[this],t=this.parent;t;)e.unshift(t),t=t.parent;return e},fa.prototype.getPath=function(){return this.path},fa.prototype.getValue=function(){return this.value},fa.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},fa.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},fa.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some(function(e){return Object(x.m)(e,t)}):Object(x.m)(e,t)},fa.prototype.broadcast=function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r="onParent"+Object(x.d)(t);this.children.forEach(function(e){e&&(e.broadcast.apply(e,[t].concat(n)),e[r]&&e[r].apply(e,n))})},fa.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(x.d)(e);if(t){for(var i=arguments.length,r=Array(1<i?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];t[n]&&t[n].apply(t,r),t.emit.apply(t,[e].concat(r))}},fa.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},fa.prototype.onChildCheck=function(){var e=this.children.filter(function(e){return!e.isDisabled}),e=!!e.length&&e.every(function(e){return e.checked});this.setCheckState(e)},fa.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce(function(e,t){return e+(t.checked?1:t.indeterminate?.5:0)},0);this.checked=e,this.indeterminate=n!==t&&0<n},fa.prototype.syncCheckState=function(e){var t=this.getValueByOption(),t=this.isSameNode(e,t);this.doCheck(t)},fa.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},Ci(fa,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,n=n.checkStrictly;return e[i]||!n&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,r=r.leaf;if(o){i=Object(R.a)(e[r])?e[r]:!!t&&!i.length;return this.hasChildren=!i,i}return!n}}]),fa);function ga(e,n){return e.reduce(function(e,t){return t.isLeaf?e.push(t):(n||e.push(t),e=e.concat(ga(t.children,n))),e},[])}function va(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,va),this.config=t,this.initNodes(e)}function ya(e){return!e.getAttribute("aria-owns")}function xa(e,t){var n=e.parentNode;if(n){n=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return n[Array.prototype.indexOf.call(n,e)+t]||null}return null}function ba(e,t){if(e){e=e.id.split("-");return Number(e[e.length-2])}}function _a(e){e&&(e.focus(),ya(e)||e.click())}var wa=(va.prototype.initNodes=function(e){var t=this;e=Object(x.e)(e),this.nodes=e.map(function(e){return new ma(e,t.config)}),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},va.prototype.appendNode=function(e,t){e=new ma(e,this.config,t);(t?t.children:this.nodes).push(e)},va.prototype.appendNodes=function(e,t){var n=this;(e=Object(x.e)(e)).forEach(function(e){return n.appendNode(e,t)})},va.prototype.getNodes=function(){return this.nodes},va.prototype.getFlattedNodes=function(e){var t=e?this.leafNodes:this.flattedNodes;return!(1<arguments.length&&void 0!==arguments[1])||arguments[1]?t:ga(this.nodes,e)},va.prototype.getNodeByValue=function(t){if(t){var e=this.getFlattedNodes(!1,!this.config.lazy).filter(function(e){return Object(x.t)(e.path,t)||e.value===t});return e&&e.length?e[0]:null}return null},va),Ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Sa=me.keys,Aa={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:x.q,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Gi={name:"TisCascaderPanel",components:{CascaderMenu:Fi},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return Object(kt.a)(Ca({},Aa),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(e){Object(x.m)(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){Object(x.l)(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(x.l)(t)?this.lazyLoad():(this.store=new wa(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(x.m)(e,t)||(this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var t=this;this.getFlattedNodes(this.leafOnly).forEach(function(e){e.syncCheckState(t.checkedValue)})},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,i=this.activePath,r=this.checkedValue;Object(x.l)(i)?Object(x.l)(r)?(this.activePath=[],this.menus=[e.getNodes()]):(r=n?r[0]:r,r=((this.getNodeByValue(r)||{}).pathNodes||[]).slice(0,-1),this.expandNodes(r)):(i=i.map(function(e){return t.getNodeByValue(e.getValue())}),this.expandNodes(i))},expandNodes:function(e){var t=this;e.forEach(function(e){return t.handleExpand(e,!0)})},calculateCheckedNodePaths:function(){var t=this,e=this.checkedValue,e=this.multiple?Object(x.e)(e):[e];this.checkedNodePaths=e.map(function(e){e=t.getNodeByValue(e);return e?e.pathNodes:[]})},handleKeyDown:function(e){var t=e.target;switch(e.keyCode){case Sa.up:var n=xa(t,-1);_a(n);break;case Sa.down:var i=xa(t,1);_a(i);break;case Sa.left:i=this.$refs.menu[ba(t)-1];i&&(i=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]'),_a(i));break;case Sa.right:var r,o=this.$refs.menu[ba(t)+1];o&&(r=o.$el.querySelector('.el-cascader-node[tabindex="-1"]'),_a(r));break;case Sa.enter:(o=t)&&((r=o.querySelector("input"))?r.click():ya(o)&&o.click());break;case Sa.esc:case Sa.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,i=e.level,r=n.slice(0,i-1),i=this.menus.slice(0,i);e.isLeaf||(r.push(e),i.push(e.children)),this.activePath=r,this.menus=i,t||(r=r.map(function(e){return e.getValue()}),n=n.map(function(e){return e.getValue()}),Object(x.t)(r,n)||(this.$emit("active-item-change",r),this.$emit("expand-change",r)))},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(o,a){var s=this,e=this.config;o||(o=o||{root:!0,level:0},this.store=new wa([],e),this.menus=[this.store.getNodes()]),o.loading=!0;e.lazyLoad(o,function(e){var t,n,i,r=o.root?null:o;e&&e.length&&s.store.appendNodes(e,r),o.loading=!1,o.loaded=!0,Array.isArray(s.checkedValue)&&(t=s.checkedValue[s.loadCount++],n=s.config.value,r=s.config.leaf,Array.isArray(e)&&0<e.filter(function(e){return e[n]===t}).length&&((i=s.store.getNodeByValue(t)).data[r]||s.lazyLoad(i,function(){s.handleExpand(i)}),s.loadCount===s.checkedValue.length&&s.$parent.computePresentText())),a&&a(e)})},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map(function(e){return e.getValueByOption()})},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach(function(e){e=e.$el;e&&z(e.querySelector(".el-scrollbar__wrap"),e.querySelector(".el-cascader-node.is-active")||e.querySelector(".el-cascader-node.in-active-path"))})},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue;return this.multiple?this.getFlattedNodes(e).filter(function(e){return e.checked}):Object(x.l)(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,e=e.emitPath;n?(this.getCheckedNodes(t).filter(function(e){return!e.isDisabled}).forEach(function(e){return e.doCheck(!1)}),this.calculateMultiCheckedValue()):this.checkedValue=e?[]:null}}},Ma=Object(r.a)(Gi,function(){var e=this.$createElement,n=this._self._c||e;return n("div",{class:["el-cascader-panel",this.border&&"is-bordered"],on:{keydown:this.handleKeyDown}},this._l(this.menus,function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})}),1)},[],!1,null,null,null).exports;Ma.install=function(e){e.component(Ma.name,Ma)};var _i=Ma,Ta=void 0,ka=me.keys,Da={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Ki={props:{placement:{type:String,default:"bottom-start"},appendToBody:c.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:c.a.props.arrowOffset,offset:c.a.props.offset,boundariesPadding:c.a.props.boundariesPadding,popperOptions:c.a.props.popperOptions},methods:c.a.methods,data:c.a.data,beforeDestroy:c.a.beforeDestroy},Ia={medium:36,small:32,mini:28},ir={name:"TisCascader",directives:{Clickoutside:L.a},mixins:[Ki,a.a,l.a,X.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:u.a,ElTag:w,ElScrollbar:I,ElCascaderPanel:_i},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(P.b)("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value||null,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return-1<["small","mini"].indexOf(this.realSize)?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var r=this.props||{},o=this.$attrs;return Object.keys(Da).forEach(function(e){var t=Da[e],n=t.newProp,i=t.type,t=o[e]||o[Object(x.p)(e)];Object(R.a)(e)&&!Object(R.a)(r[n])&&(i===Boolean&&""===t&&(t=!0),r[n]=t)}),r},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter(function(e){return!e.isDisabled}).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(e){Object(x.m)(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,i=this.config,r=i.checkStrictly,i=i.multiple;Object(x.m)(e,t)&&!Object(na.f)(t)||(this.computePresentContent(),i||r||!n||this.toggleDropDownVisible(!1),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",[e]))},options:{handler:function(){Ta.$nextTick(Ta.computePresentContent)},deep:!0},presentText:function(e){this.inputValue=e},presentTags:function(e,t){this.multiple&&(e.length||t.length)&&this.$nextTick(this.updateStyle)},filtering:function(e){this.$nextTick(this.updatePopper)}},mounted:function(){var t=this,e=this.$refs.input;e&&e.$el&&(this.inputInitialHeight=e.$el.offsetHeight||Ia[this.realSize]||40),Object(x.l)(this.value)||this.computePresentContent(),this.filterHandler=N()(this.debounce,function(){var e=t.inputValue;e?(e=t.beforeFilter(e))&&e.then?e.then(t.getSuggestions):!1!==e?t.getSuggestions():t.filtering=!1:t.filtering=!1}),b(this.$el,this.updateStyle)},beforeDestroy:function(){_(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(e){var t,n,i=this;this.isDisabled||(t=this.dropDownVisible,n=this.$refs.input,(e=Object(R.a)(e)?e:!t)!==t&&((this.dropDownVisible=e)&&this.$nextTick(function(){i.updatePopper(),i.panel.scrollIntoView()}),n.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e)))},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText},handleKeyDown:function(e){switch(e.keyCode){case ka.enter:this.toggleDropDownVisible();break;case ka.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case ka.esc:case ka.tab:this.toggleDropDownVisible(!1)}},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleInput:function(e,t){this.dropDownVisible||this.toggleDropDownVisible(!0),t&&t.isComposing||(e?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(e){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",e),this.$emit("active-item-change",e)},focusFirstNode:function(){var r=this;this.$nextTick(function(){var e=r.filtering,t=r.$refs,n=t.popper,i=t.suggestionPanel,t=null;(t=e&&i?i.$el.querySelector(".el-cascader__suggestion-item"):n.querySelector(".el-cascader-menu").querySelector('.el-cascader-node[tabindex="-1"]'))&&(t.focus(),e||t.click())})},computePresentContent:function(){var e=this;this.$nextTick(function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()})},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!Object(x.l)(e)){e=this.panel.getNodeByValue(e);if(e&&(t.checkStrictly||e.isLeaf))return void(this.presentText=e.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){function t(e){return{node:e,key:e.uid,text:e.getText(o,a),hitState:!1,closable:!i&&!e.isDisabled}}var e,n,i=this.isDisabled,r=this.leafOnly,o=this.showAllLevels,a=this.separator,s=this.collapseTags,l=this.getCheckedNodes(r),u=[];l.length&&(e=l[0],r=(n=l.slice(1)).length,u.push(t(e)),r&&(s?u.push({key:-1,text:"+ "+r,closable:!1}):n.forEach(function(e){return u.push(t(e))}))),this.checkedNodes=l,this.presentTags=u},getSuggestions:function(){var t=this,n=this.filterMethod;Object(na.b)(n)||(n=function(e,t){return e.text.includes(t)});var e=this.panel.getFlattedNodes(this.leafOnly).filter(function(e){return!e.isDisabled&&(e.text=e.getText(t.showAllLevels,t.separator)||"",n(e,t.inputValue))});this.multiple?this.presentTags.forEach(function(e){e.hitState=!1}):e.forEach(function(e){e.checked=Object(x.m)(t.checkedValue,e.getValueByOption())}),this.filtering=!0,this.suggestions=e,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(e){var t=e.keyCode,n=e.target;switch(t){case ka.enter:n.click();break;case ka.up:var i=n.previousElementSibling;i&&i.focus();break;case ka.down:i=n.nextElementSibling;i&&i.focus();break;case ka.esc:case ka.tab:this.toggleDropDownVisible(!1)}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,i=n.length-1,n=n[i];this.pressDeleteCount=e?0:t+1,n&&this.pressDeleteCount&&(n.hitState?this.deleteTag(i):n.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,e=this.suggestions[e];t?(t=e.checked,e.doCheck(!t),this.panel.calculateMultiCheckedValue()):(this.checkedValue=e.getValueByOption(),this.toggleDropDownVisible(!1))},deleteTag:function(n){var e=this.checkedValue,t=e[n];this.checkedValue=e.filter(function(e,t){return t!==n}),this.$emit("remove-tag",t)},updateStyle:function(){var e,t,n,i=this.$el,r=this.inputInitialHeight;!this.$isServer&&i&&(e=this.$refs.suggestionPanel,(t=i.querySelector(".el-input__inner"))&&(n=i.querySelector(".el-cascader__tags"),i=null,e&&(i=e.$el)&&(i.querySelector(".el-cascader__suggestion-list").style.minWidth=t.offsetWidth+"px"),n&&(n=n.offsetHeight,r=Math.max(n+6,r)+"px",t.style.height=r,this.updatePopper())))},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},Oa=Object(r.a)(ir,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return n.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",n.realSize&&"el-cascader--"+n.realSize,{"is-disabled":n.isDisabled}],on:{mouseenter:function(e){n.inputHover=!0},mouseleave:function(e){n.inputHover=!1},click:function(){return n.toggleDropDownVisible(!n.readonly||void 0)},keydown:n.handleKeyDown}},[i("tis-input",{ref:"input",class:{"is-focus":n.dropDownVisible},attrs:{size:n.realSize,placeholder:n.placeholder,readonly:n.readonly,disabled:n.isDisabled,"validate-event":!1},on:{focus:n.handleFocus,blur:n.handleBlur,input:n.handleInput},model:{value:n.multiple?n.presentText:n.inputValue,callback:function(e){n.multiple?n.presentText:n.inputValue=e},expression:"multiple ? presentText : inputValue"}},[i("template",{slot:"suffix"},[n.clearBtnVisible?i("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(e){return e.stopPropagation(),n.handleClear(e)}}}):i("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",n.dropDownVisible&&"is-reverse"],on:{click:function(e){e.stopPropagation(),n.toggleDropDownVisible()}}})])],2),n.multiple?i("div",{staticClass:"el-cascader__tags"},[n._l(n.presentTags,function(e,t){return i("tis-tag",{key:e.key,attrs:{type:"info",size:n.tagSize,hit:e.hitState,closable:e.closable,"disable-transitions":""},on:{close:function(e){n.deleteTag(t)}}},[i("span",[n._v(n._s(e.text))])])}),n.filterable&&!n.isDisabled?i("input",{directives:[{name:"model",rawName:"v-model.trim",value:n.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:n.presentTags.length?"":n.placeholder},domProps:{value:n.inputValue},on:{input:[function(e){e.target.composing||(n.inputValue=e.target.value.trim())},function(e){return n.handleInput(n.inputValue,e)}],click:function(e){e.stopPropagation(),n.toggleDropDownVisible(!0)},keydown:function(e){return"button"in e||!n._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?n.handleDelete(e):null},blur:function(e){n.$forceUpdate()}}}):n._e()],2):n._e(),i("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":n.handleDropdownLeave}},[i("div",{directives:[{name:"show",rawName:"v-show",value:n.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",n.popperClass]},[i("tis-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!n.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:n.options,props:n.config,border:!1,"render-label":n.$scopedSlots.default},on:{"expand-change":n.handleExpandChange,close:function(e){n.toggleDropDownVisible(!1)}},model:{value:n.checkedValue,callback:function(e){n.checkedValue=e},expression:"checkedValue"}}),n.filterable?i("tis-scrollbar",{directives:[{name:"show",rawName:"v-show",value:n.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(e){return n.handleSuggestionKeyDown(e)}}},[n.suggestions.length?n._l(n.suggestions,function(e,t){return i("li",{key:e.uid,class:["el-cascader__suggestion-item",e.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(e){n.handleSuggestionClick(t)}}},[i("span",[n._v(n._s(e.text))]),e.checked?i("i",{staticClass:"el-icon-check"}):n._e()])}):n._t("empty",[i("li",{staticClass:"el-cascader__empty-text"},[n._v(n._s(n.t("el.cascader.noMatch")))])])],2):n._e()],1)])],1)},[],!1,null,null,null).exports;Oa.install=function(e){e.component(Oa.name,Oa)};var sr=Oa,Na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function La(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]}function Pa(e,t){var n="string"==typeof(n=e="string"==typeof(n=e)&&-1!==n.indexOf(".")&&1===parseFloat(n)?"100%":e)&&-1!==n.indexOf("%");return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Ea(e){return 2===e.length?16*(ja[e[0].toUpperCase()]||+e[0])+(ja[e[1].toUpperCase()]||+e[1]):ja[e[1].toUpperCase()]||+e[1]}function Ha(e,t,n){e=Pa(e,255),t=Pa(t,255),n=Pa(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),o=void 0,a=i,s=i-r,l=0===i?0:s/i;if(i===r)o=0;else{switch(i){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:360*o,s:100*l,v:100*a}}function za(e,t,n){e=6*Pa(e,360),t=Pa(t,100),n=Pa(n,100);var i=Math.floor(e),r=e-i,o=n*(1-t),a=n*(1-r*t),t=[e=n*(1-(1-r)*t),n,n,a,o,o][r=i%6],i=[o,o,e,n,n,a][r];return{r:Math.round(255*[n,a,o,o,e,n][r]),g:Math.round(255*t),b:Math.round(255*i)}}var Ra={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},ja={A:10,B:11,C:12,D:13,E:14,F:15};function Ba(e){for(var t in!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Ba),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",e=e||{})e.hasOwnProperty(t)&&(this[t]=e[t]);this.doOnChange()}function Fa(e,n){var i,t;H.a.prototype.$isServer||(i=function(e){n.drag&&n.drag(e)},t=function e(t){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,$a=!1,n.end&&n.end(t)},e.addEventListener("mousedown",function(e){$a||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",i),document.addEventListener("mouseup",t),$a=!0,n.start&&n.start(e))}))}var Va=(Ba.prototype.set=function(e,t){if(1!==arguments.length||"object"!==(void 0===e?"undefined":Na(e)))this["_"+e]=t,this.doOnChange();else for(var n in e)e.hasOwnProperty(n)&&this.set(n,e[n])},Ba.prototype.get=function(e){return this["_"+e]},Ba.prototype.toRgb=function(){return za(this._hue,this._saturation,this._value)},Ba.prototype.fromString=function(e){var i=this;if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();function t(e,t,n){i._hue=Math.max(0,Math.min(360,e)),i._saturation=Math.max(0,Math.min(100,t)),i._value=Math.max(0,Math.min(100,n)),i.doOnChange()}var n,r,o,a;-1!==e.indexOf("hsl")?(4===(n=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(function(e){return""!==e}).map(function(e,t){return 2<t?parseFloat(e):parseInt(e,10)})).length?this._alpha=Math.floor(100*parseFloat(n[3])):3===n.length&&(this._alpha=100),3<=n.length&&t((n=function(e,t,n){n/=100;var i=t/=100,r=Math.max(n,.01);return t*=(n*=2)<=1?n:2-n,i*=r<=1?r:2-r,{h:e,s:100*(0===n?2*i/(r+i):2*t/(n+t)),v:100*((n+t)/2)}}(n[0],n[1],n[2])).h,n.s,n.v)):-1!==e.indexOf("hsv")?(4===(r=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(function(e){return""!==e}).map(function(e,t){return 2<t?parseFloat(e):parseInt(e,10)})).length?this._alpha=Math.floor(100*parseFloat(r[3])):3===r.length&&(this._alpha=100),3<=r.length&&t(r[0],r[1],r[2])):-1!==e.indexOf("rgb")?(4===(o=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(function(e){return""!==e}).map(function(e,t){return 2<t?parseFloat(e):parseInt(e,10)})).length?this._alpha=Math.floor(100*parseFloat(o[3])):3===o.length&&(this._alpha=100),3<=o.length&&t((a=Ha(o[0],o[1],o[2])).h,a.s,a.v)):-1!==e.indexOf("#")&&(r=e.replace("#","").trim(),/^(?:[0-9a-fA-F]{3}){1,2}$/.test(r)&&(e=a=o=void 0,3===r.length?(o=Ea(r[0]+r[0]),a=Ea(r[1]+r[1]),e=Ea(r[2]+r[2])):6!==r.length&&8!==r.length||(o=Ea(r.substring(0,2)),a=Ea(r.substring(2,4)),e=Ea(r.substring(4,6))),8===r.length?this._alpha=Math.floor(Ea(r.substring(6))/255*100):3!==r.length&&6!==r.length||(this._alpha=100),t((e=Ha(o,a,e)).h,e.s,e.v)))},Ba.prototype.compare=function(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1},Ba.prototype.doOnChange=function(){var e=this._hue,t=this._saturation,n=this._value,i=this._alpha,r=this.format;if(this.enableAlpha)switch(r){case"hsl":var o=La(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+i/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+i/100+")";break;default:var a=za(e,t,n),s=a.r,o=a.g,a=a.b;this.value="rgba("+s+", "+o+", "+a+", "+i/100+")"}else switch(r){case"hsl":var l=La(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*l[1])+"%, "+Math.round(100*l[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var u=za(e,t,n),c=u.r,h=u.g,d=u.b;this.value="rgb("+c+", "+h+", "+d+")";break;default:this.value=(u=za(e,t,n),c=u.r,h=u.g,d=u.b,u=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),e=e%16;return""+(Ra[t]||t)+(Ra[e]||e)},isNaN(c)||isNaN(h)||isNaN(d)?"":"#"+u(c)+u(h)+u(d))}},Ba),$a=!1,lr={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){return{hue:this.color.get("hue"),value:this.color.get("value")}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var e=this.color.get("saturation"),t=this.color.get("value"),n=this.$el,i=n.clientWidth,n=n.clientHeight;this.cursorLeft=e*i/100,this.cursorTop=(100-t)*n/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=e.clientX-t.left,e=e.clientY-t.top,n=Math.max(0,n);n=Math.min(n,t.width),e=Math.max(0,e),e=Math.min(e,t.height),this.cursorLeft=n,this.cursorTop=e,this.color.set({saturation:n/t.width*100,value:100-e/t.height*100})}},mounted:function(){var t=this;Fa(this.$el,{drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},_r=Object(r.a)(lr,function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"el-color-svpanel",style:{backgroundColor:this.background}},[e("div",{staticClass:"el-color-svpanel__white"}),e("div",{staticClass:"el-color-svpanel__black"}),e("div",{staticClass:"el-color-svpanel__cursor",style:{top:this.cursorTop+"px",left:this.cursorLeft+"px"}},[e("div")])])},[],!1,null,null,null).exports,Sr={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){return this.color.get("hue")}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb;e.target!==t&&this.handleDrag(e)},handleDrag:function(e){var t,n=this.$el.getBoundingClientRect(),i=this.$refs.thumb,r=void 0,r=this.vertical?(t=e.clientY-n.top,t=Math.min(t,n.height-i.offsetHeight/2),t=Math.max(i.offsetHeight/2,t),Math.round((t-i.offsetHeight/2)/(n.height-i.offsetHeight)*360)):(e=e.clientX-n.left,e=Math.min(e,n.width-i.offsetWidth/2),e=Math.max(i.offsetWidth/2,e),Math.round((e-i.offsetWidth/2)/(n.width-i.offsetWidth)*360));this.color.set("hue",r)},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var t=this,e=this.$refs,n=e.bar,i=e.thumb,e={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Fa(n,e),Fa(i,e),this.update()}},Tr=Object(r.a)(Sr,function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":this.vertical}},[e("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:this.handleClick}}),e("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:this.thumbLeft+"px",top:this.thumbTop+"px"}})])},[],!1,null,null,null).exports,Ir={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb;e.target!==t&&this.handleDrag(e)},handleDrag:function(e){var t,n=this.$el.getBoundingClientRect(),i=this.$refs.thumb;this.vertical?(t=e.clientY-n.top,t=Math.max(i.offsetHeight/2,t),t=Math.min(t,n.height-i.offsetHeight/2),this.color.set("alpha",Math.round((t-i.offsetHeight/2)/(n.height-i.offsetHeight)*100))):(e=e.clientX-n.left,e=Math.max(i.offsetWidth/2,e),e=Math.min(e,n.width-i.offsetWidth/2),this.color.set("alpha",Math.round((e-i.offsetWidth/2)/(n.width-i.offsetWidth)*100)))},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var e=this.color.toRgb(),t=e.r,n=e.g,e=e.b;return"linear-gradient(to right, rgba("+t+", "+n+", "+e+", 0) 0%, rgba("+t+", "+n+", "+e+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var t=this,e=this.$refs,n=e.bar,i=e.thumb,e={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Fa(n,e),Fa(i,e),this.update()}},Nr=Object(r.a)(Ir,function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":this.vertical}},[e("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:this.background},on:{click:this.handleClick}}),e("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:this.thumbLeft+"px",top:this.thumbTop+"px"}})])},[],!1,null,null,null).exports,Vr={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(e){this.color.fromString(this.colors[e])},parseColors:function(e,n){return e.map(function(e){var t=new Va;return t.enableAlpha=!0,t.format="rgba",t.fromString(e),t.selected=t.value===n.value,t})}},watch:{"$parent.currentColor":function(e){var t=new Va;t.fromString(e),this.rgbaColors.forEach(function(e){e.selected=t.compare(e)})},colors:function(e){this.rgbaColors=this.parseColors(e,this.color)},color:function(e){this.rgbaColors=this.parseColors(this.colors,e)}}},Wr=Object(r.a)(Vr,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("div",{staticClass:"el-color-predefine"},[i("div",{staticClass:"el-color-predefine__colors"},n._l(n.rgbaColors,function(e,t){return i("div",{key:n.colors[t],staticClass:"el-color-predefine__color-selector",class:{selected:e.selected,"is-alpha":e._alpha<100},on:{click:function(e){n.handleSelect(t)}}},[i("div",{style:{"background-color":e.value}})])}),0)])},[],!1,null,null,null).exports,Gr={name:"el-color-picker-dropdown",mixins:[c.a,l.a],components:{SvPanel:_r,HueSlider:Tr,AlphaSlider:Nr,ElInput:u.a,ElButton:te.a,Predefine:Wr},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var e=this.$parent;return e.value||e.showPanelColor?e.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(e){var i=this;!0===e&&this.$nextTick(function(){var e=i.$refs,t=e.sl,n=e.hue,e=e.alpha;t&&t.update(),n&&n.update(),e&&e.update()})},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},i=Object(r.a)(Gr,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.doDestroy}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[e("div",{staticClass:"el-color-dropdown__main-wrapper"},[e("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:t.color,vertical:""}}),e("sv-panel",{ref:"sl",attrs:{color:t.color}})],1),t.showAlpha?e("alpha-slider",{ref:"alpha",attrs:{color:t.color}}):t._e(),t.predefine?e("predefine",{attrs:{color:t.color,colors:t.predefine}}):t._e(),e("div",{staticClass:"el-color-dropdown__btns"},[e("span",{staticClass:"el-color-dropdown__value"},[e("tis-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:t.handleConfirm},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleConfirm(e):null}},model:{value:t.customInput,callback:function(e){t.customInput=e},expression:"customInput"}})],1),e("tis-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(e){t.$emit("clear")}}},[t._v("\n "+t._s(t.t("el.colorpicker.clear"))+"\n ")]),e("tis-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:t.confirmValue}},[t._v("\n "+t._s(t.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])},[],!1,null,null,null).exports,h={name:"TisColorPicker",mixins:[a.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:L.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){e?e&&e!==this.color.value&&this.color.fromString(e):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(e){var t;this.showPicker&&((t=new Va({enableAlpha:this.showAlpha,format:this.colorFormat})).fromString(this.value),e!==this.displayedRgb(t,this.showAlpha)&&this.$emit("active-change",e))}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var e=this.color.value;this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var t=this;this.$nextTick(function(e){t.value?t.color.fromString(t.value):t.showPanelColor=!1})},displayedRgb:function(e,t){if(!(e instanceof Va))throw Error("color should be instance of Color Class");var n=e.toRgb(),i=n.r,r=n.g,n=n.b;return t?"rgba("+i+", "+r+", "+n+", "+e.get("alpha")/100+")":"rgb("+i+", "+r+", "+n+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){return{color:new Va({enableAlpha:this.showAlpha,format:this.colorFormat}),showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:i}},Ya=Object(r.a)(h,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.hide,expression:"hide"}],class:["el-color-picker",t.colorDisabled?"is-disabled":"",t.colorSize?"el-color-picker--"+t.colorSize:""]},[t.colorDisabled?e("div",{staticClass:"el-color-picker__mask"}):t._e(),e("div",{staticClass:"el-color-picker__trigger",on:{click:t.handleTrigger}},[e("span",{staticClass:"el-color-picker__color",class:{"is-alpha":t.showAlpha}},[e("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:t.displayedColor}}),t.value||t.showPanelColor?t._e():e("span",{staticClass:"el-color-picker__empty el-icon-close"})]),e("span",{directives:[{name:"show",rawName:"v-show",value:t.value||t.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),e("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",t.popperClass||""],attrs:{color:t.color,"show-alpha":t.showAlpha,predefine:t.predefine},on:{pick:t.confirmValue,clear:t.clearValue},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}})],1)},[],!1,null,null,null).exports;Ya.install=function(e){e.component(Ya.name,Ya)};var f=Ya,O={mixins:[l.a],name:"TisTransferPanel",componentName:"TisTransferPanel",components:{TisCheckboxGroup:ut,TisCheckbox:it,TisInput:u.a,OptionContent:{props:{option:Object},render:function(e){var t=function e(t){return"TisTransferPanel"!==t.$options.componentName&&t.$parent?e(t.$parent):t}(this),n=t.$parent||t;return t.renderContent?t.renderContent(e,this.option):n.$scopedSlots.default?n.$scopedSlots.default({option:this.option}):e("span",[this.option[t.labelProp]||this.option[t.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(t,n){var e;this.updateAllChecked(),this.checkChangeByUser?(e=t.concat(n).filter(function(e){return-1===t.indexOf(e)||-1===n.indexOf(e)}),this.$emit("checked-change",t,e)):(this.$emit("checked-change",t),this.checkChangeByUser=!0)},data:function(){var t=this,n=[],i=this.filteredData.map(function(e){return e[t.keyProp]});this.checked.forEach(function(e){-1<i.indexOf(e)&&n.push(e)}),this.checkChangeByUser=!1,this.checked=n},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(e,t){var n,i,r=this;t&&e.length===t.length&&e.every(function(e){return-1<t.indexOf(e)})||(n=[],i=this.checkableData.map(function(e){return e[r.keyProp]}),e.forEach(function(e){-1<i.indexOf(e)&&n.push(e)}),this.checkChangeByUser=!1,this.checked=n)}}},computed:{filteredData:function(){var t=this;return this.data.filter(function(e){return"function"==typeof t.filterMethod?t.filterMethod(t.query,e):-1<(e[t.labelProp]||e[t.keyProp].toString()).toLowerCase().indexOf(t.query.toLowerCase())})},checkableData:function(){var t=this;return this.filteredData.filter(function(e){return!e[t.disabledProp]})},checkedSummary:function(){var e=this.checked.length,t=this.data.length,n=this.format,i=n.noChecked,n=n.hasChecked;return i&&n?(0<e?n.replace(/\${checked}/g,e):i).replace(/\${total}/g,t):e+"/"+t},isIndeterminate:function(){var e=this.checked.length;return 0<e&&e<this.checkableData.length},hasNoMatch:function(){return 0<this.query.length&&0===this.filteredData.length},inputIcon:function(){return 0<this.query.length&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var t=this,e=this.checkableData.map(function(e){return e[t.keyProp]});this.allChecked=0<e.length&&e.every(function(e){return-1<t.checked.indexOf(e)})},handleAllCheckedChange:function(e){var t=this;this.checked=e?this.checkableData.map(function(e){return e[t.keyProp]}):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},E=Object(r.a)(O,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("tis-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleAllCheckedChange},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:"allChecked"}},[t._v("\n "+t._s(t.title)+"\n "),n("span",[t._v(t._s(t.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",t.hasFooter?"is-with-footer":""]},[t.filterable?n("tis-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:t.placeholder},nativeOn:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+t.inputIcon],attrs:{slot:"prefix"},on:{click:t.clearQuery},slot:"prefix"})]):t._e(),n("tis-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!t.hasNoMatch&&0<t.data.length,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":t.filterable},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},t._l(t.filteredData,function(e){return n("tis-checkbox",{key:e[t.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:e[t.keyProp],disabled:e[t.disabledProp]}},[n("option-content",{attrs:{option:e}})],1)}),1),n("p",{directives:[{name:"show",rawName:"v-show",value:t.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[t._v(t._s(t.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===t.data.length&&!t.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[t._v(t._s(t.t("el.transfer.noData")))])],1),t.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[t._t("default")],2):t._e()])},[],!1,null,null,null).exports,d={name:"TisTransfer",mixins:[a.a,l.a,X.a],components:{TransferPanel:E,ElButton:te.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var n=this.props.key;return this.data.reduce(function(e,t){return(e[t[n]]=t)&&e},{})},sourceData:function(){var t=this;return this.data.filter(function(e){return-1===t.value.indexOf(e[t.props.key])})},targetData:function(){var n=this;return"original"===this.targetOrder?this.data.filter(function(e){return-1<n.value.indexOf(e[n.props.key])}):this.value.reduce(function(e,t){t=n.dataObj[t];return t&&e.push(t),e},[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(e,t){this.leftChecked=e,void 0!==t&&this.$emit("left-check-change",e,t)},onTargetCheckedChange:function(e,t){this.rightChecked=e,void 0!==t&&this.$emit("right-check-change",e,t)},addToLeft:function(){var t=this.value.slice();this.rightChecked.forEach(function(e){e=t.indexOf(e);-1<e&&t.splice(e,1)}),this.$emit("input",t),this.$emit("change",t,"left",this.rightChecked)},addToRight:function(){var t=this,e=this.value.slice(),n=[],i=this.props.key;this.data.forEach(function(e){e=e[i];-1<t.leftChecked.indexOf(e)&&-1===t.value.indexOf(e)&&n.push(e)}),e="unshift"===this.targetOrder?n.concat(e):e.concat(n),this.$emit("input",e),this.$emit("change",e,"right",this.leftChecked)},clearQuery:function(e){"left"===e?this.$refs.leftPanel.query="":"right"===e&&(this.$refs.rightPanel.query="")}}},Wa=Object(r.a)(d,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{staticClass:"el-transfer"},[e("transfer-panel",t._b({ref:"leftPanel",attrs:{data:t.sourceData,title:t.titles[0]||t.t("el.transfer.titles.0"),"default-checked":t.leftDefaultChecked,placeholder:t.filterPlaceholder||t.t("el.transfer.filterPlaceholder")},on:{"checked-change":t.onSourceCheckedChange}},"transfer-panel",t.$props,!1),[t._t("left-footer")],2),e("div",{staticClass:"el-transfer__buttons"},[e("tis-button",{class:["el-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.rightChecked.length},nativeOn:{click:function(e){return t.addToLeft(e)}}},[e("i",{staticClass:"el-icon-arrow-left"}),void 0!==t.buttonTexts[0]?e("span",[t._v(t._s(t.buttonTexts[0]))]):t._e()]),e("tis-button",{class:["el-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.leftChecked.length},nativeOn:{click:function(e){return t.addToRight(e)}}},[void 0!==t.buttonTexts[1]?e("span",[t._v(t._s(t.buttonTexts[1]))]):t._e(),e("i",{staticClass:"el-icon-arrow-right"})])],1),e("transfer-panel",t._b({ref:"rightPanel",attrs:{data:t.targetData,title:t.titles[1]||t.t("el.transfer.titles.1"),"default-checked":t.rightDefaultChecked,placeholder:t.filterPlaceholder||t.t("el.transfer.filterPlaceholder")},on:{"checked-change":t.onTargetCheckedChange}},"transfer-panel",t.$props,!1),[t._t("right-footer")],2)],1)},[],!1,null,null,null).exports;Wa.install=function(e){e.component(Wa.name,Wa)};var j=Wa,G={name:"TisContainer",componentName:"TisContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some(function(e){e=e.componentOptions&&e.componentOptions.tag;return"el-header"===e||"el-footer"===e}))}}},Xa=Object(r.a)(G,function(){var e=this.$createElement;return(this._self._c||e)("section",{staticClass:"el-container",class:{"is-vertical":this.isVertical}},[this._t("default")],2)},[],!1,null,null,null).exports;Xa.install=function(e){e.component(Xa.name,Xa)};var K=Xa,Q={name:"TisHeader",componentName:"TisHeader",props:{height:{type:String,default:"60px"}}},Ga=Object(r.a)(Q,function(){var e=this.$createElement;return(this._self._c||e)("header",{staticClass:"el-header",style:{height:this.height}},[this._t("default")],2)},[],!1,null,null,null).exports;Ga.install=function(e){e.component(Ga.name,Ga)};var ne=Ga,oe={name:"TisAside",componentName:"TisAside",props:{width:{type:String,default:"300px"}}},Ua=Object(r.a)(oe,function(){var e=this.$createElement;return(this._self._c||e)("aside",{staticClass:"el-aside",style:{width:this.width}},[this._t("default")],2)},[],!1,null,null,null).exports;Ua.install=function(e){e.component(Ua.name,Ua)};var he=Ua,ye={name:"TisMain",componentName:"TisMain"},qa=Object(r.a)(ye,function(){var e=this.$createElement;return(this._self._c||e)("main",{staticClass:"el-main"},[this._t("default")],2)},[],!1,null,null,null).exports;qa.install=function(e){e.component(qa.name,qa)};var be=qa,we={name:"TisFooter",componentName:"TisFooter",props:{height:{type:String,default:"60px"}}},Za=Object(r.a)(we,function(){var e=this.$createElement;return(this._self._c||e)("footer",{staticClass:"el-footer",style:{height:this.height}},[this._t("default")],2)},[],!1,null,null,null).exports;Za.install=function(e){e.component(Za.name,Za)};var De=Za,Ie={name:"TisTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var e=this.reverse,t=this.$slots.default||[];return(0,arguments[0])("ul",{class:{"el-timeline":!0,"is-reverse":e}},[t=e?t.reverse():t])}},Ka=Object(r.a)(Ie,void 0,void 0,!1,null,null,null).exports;Ka.install=function(e){e.component(Ka.name,Ka)};var ke=Ka,Re={name:"TisTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},Qa=Object(r.a)(Re,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("li",{staticClass:"el-timeline-item"},[t("div",{staticClass:"el-timeline-item__tail"}),e.$slots.dot?e._e():t("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(e.size||""),"el-timeline-item__node--"+(e.type||"")],style:{backgroundColor:e.color}},[e.icon?t("i",{staticClass:"el-timeline-item__icon",class:e.icon}):e._e()]),e.$slots.dot?t("div",{staticClass:"el-timeline-item__dot"},[e._t("dot")],2):e._e(),t("div",{staticClass:"el-timeline-item__wrapper"},[e.hideTimestamp||"top"!==e.placement?e._e():t("div",{staticClass:"el-timeline-item__timestamp is-top"},[e._v("\n "+e._s(e.timestamp)+"\n ")]),t("div",{staticClass:"el-timeline-item__content"},[e._t("default")],2),e.hideTimestamp||"bottom"!==e.placement?e._e():t("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[e._v("\n "+e._s(e.timestamp)+"\n ")])])])},[],!1,null,null,null).exports;Qa.install=function(e){e.component(Qa.name,Qa)};var We=Qa,Ve={name:"TisLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(e){this.disabled||this.href||this.$emit("click",e)}}},Ja=Object(r.a)(Ve,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("a",e._b({class:["el-link",e.type?"el-link--"+e.type:"",e.disabled&&"is-disabled",e.underline&&!e.disabled&&"is-underline"],attrs:{href:e.disabled?null:e.href},on:{click:e.handleClick}},"a",e.$attrs,!1),[e.icon?t("i",{class:e.icon}):e._e(),e.$slots.default?t("span",{staticClass:"el-link--inner"},[e._t("default")],2):e._e(),e.$slots.icon?[e.$slots.icon?e._t("icon"):e._e()]:e._e()],2)},[],!1,null,null,null).exports;Ja.install=function(e){e.component(Ja.name,Ja)};var qe=Ja,st={name:"TisDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}}},es=Object(r.a)(st,function(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])},[],!0,null,null,null).exports;es.install=function(e){e.component(es.name,es)};function ts(){return void 0!==document.documentElement.style.objectFit}var ct=es,ns=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},is={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},rs=Object(x.n)()?"DOMMouseScroll":"mousewheel",pt={name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:is.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var e=this.transform,t=e.scale,n=e.deg,i=e.offsetX,r=e.offsetY,r={transform:"scale("+t+") rotate("+n+"deg)",transition:e.enableTransition?"transform .3s":"","margin-left":i+"px","margin-top":r+"px"};return this.mode===is.CONTAIN&&(r.maxWidth=r.maxHeight="100%"),r}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg:function(e){var t=this;this.$nextTick(function(e){t.$refs.img[0].complete||(t.loading=!0)})}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var t=this;this._keyDownHandler=Object(x.r)(function(e){switch(e.keyCode){case 27:t.hide();break;case 32:t.toggleMode();break;case 37:t.prev();break;case 38:t.handleActions("zoomIn");break;case 39:t.next();break;case 40:t.handleActions("zoomOut")}}),this._mouseWheelHandler=Object(x.r)(function(e){0<(e.wheelDelta||-e.detail)?t.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):t.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),Object(M.g)(document,"keydown",this._keyDownHandler),Object(M.g)(document,rs,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(M.f)(document,"keydown",this._keyDownHandler),Object(M.f)(document,rs,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t,n,i,r,o,a=this;this.loading||0!==e.button||(t=this.transform,n=t.offsetX,i=t.offsetY,r=e.pageX,o=e.pageY,this._dragHandler=Object(x.r)(function(e){a.transform.offsetX=n+e.pageX-r,a.transform.offsetY=i+e.pageY-o}),Object(M.g)(document,"mousemove",this._dragHandler),Object(M.g)(document,"mouseup",function(e){Object(M.f)(document,"mousemove",a._dragHandler)}),e.preventDefault())},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){var e,t;this.loading||(e=Object.keys(is),t=(Object.values(is).indexOf(this.mode)+1)%e.length,this.mode=is[e[t]],this.reset())},prev:function(){var e;this.isFirst&&!this.infinite||(e=this.urlList.length,this.index=(this.index-1+e)%e)},next:function(){var e;this.isLast&&!this.infinite||(e=this.urlList.length,this.index=(this.index+1)%e)},handleActions:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var t=ns({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),n=t.zoomRate,i=t.rotateDeg,t=t.enableTransition,r=this.transform;switch(e){case"zoomOut":.2<r.scale&&(r.scale=parseFloat((r.scale-n).toFixed(3)));break;case"zoomIn":r.scale=parseFloat((r.scale+n).toFixed(3));break;case"clocelise":r.deg+=i;break;case"anticlocelise":r.deg-=i}r.enableTransition=t}}},mounted:function(){this.deviceSupportInstall(),this.$refs["el-image-viewer__wrapper"].focus()}},St=Object(r.a)(pt,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("transition",{attrs:{name:"viewer-fade"}},[i("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":n.zIndex},attrs:{tabindex:"-1"}},[i("div",{staticClass:"el-image-viewer__mask"}),i("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:n.hide}},[i("i",{staticClass:"el-icon-circle-close"})]),n.isSingle?n._e():[i("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!n.infinite&&n.isFirst},on:{click:n.prev}},[i("i",{staticClass:"el-icon-arrow-left"})]),i("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!n.infinite&&n.isLast},on:{click:n.next}},[i("i",{staticClass:"el-icon-arrow-right"})])],i("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[i("div",{staticClass:"el-image-viewer__actions__inner"},[i("i",{staticClass:"el-icon-zoom-out",on:{click:function(e){n.handleActions("zoomOut")}}}),i("i",{staticClass:"el-icon-zoom-in",on:{click:function(e){n.handleActions("zoomIn")}}}),i("i",{staticClass:"el-image-viewer__actions__divider"}),i("i",{class:n.mode.icon,on:{click:n.toggleMode}}),i("i",{staticClass:"el-image-viewer__actions__divider"}),i("i",{staticClass:"el-icon-refresh-left",on:{click:function(e){n.handleActions("anticlocelise")}}}),i("i",{staticClass:"el-icon-refresh-right",on:{click:function(e){n.handleActions("clocelise")}}})])]),i("div",{staticClass:"el-image-viewer__canvas"},n._l(n.urlList,function(e,t){return t===n.index?i("img",{key:e,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:n.imgStyle,attrs:{src:n.currentImg},on:{load:n.handleImgLoad,error:n.handleImgError,mousedown:n.handleMouseDown}}):n._e()}),0)],2)])},[],!1,null,null,null).exports,os="none",as="contain",ss="cover",ls="fill",us="scale-down",cs="",Ht={name:"TisImage",mixins:[l.a],inheritAttrs:!1,components:{ImageViewer:St},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var e=this.fit;return!this.$isServer&&e?ts()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!ts()&&this.fit!==ls},preview:function(){var e=this.previewSrcList;return Array.isArray(e)&&0<e.length},imageIndex:function(){var e=0,t=this.previewSrcList.indexOf(this.src);return e=0<=t?t:e}},watch:{src:function(e){this.show&&this.loadImage()},show:function(e){e&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var n,i=this;this.$isServer||(this.loading=!0,this.error=!1,(n=new Image).onload=function(e){return i.handleLoad(e,n)},n.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach(function(e){var t=i.$attrs[e];n.setAttribute(e,t)}),n.src=this.src)},handleLoad:function(e,t){this.imageWidth=t.width,this.imageHeight=t.height,this.loading=!1,this.error=!1},handleError:function(e){this.loading=!1,this.error=!0,this.$emit("error",e)},handleLazyLoad:function(){Object(M.e)(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){var e,t;this.$isServer||(e=this.scrollContainer,t=null,(t=Object(na.c)(e)?e:Object(na.e)(e)?document.querySelector(e):Object(M.b)(this.$el))&&(this._scrollContainer=t,this._lazyLoadHandler=aa()(200,this.handleLazyLoad),Object(M.g)(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad()))},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(M.f)(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,i=this.$el,r=i.clientWidth,i=i.clientHeight;if(!(t&&n&&r&&i))return{};var o=t/n<1;switch(e=e===us?t<r&&n<i?os:as:e){case os:return{width:"auto",height:"auto"};case as:return o?{width:"auto"}:{height:"auto"};case ss:return o?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(cs=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=cs,this.showViewer=!1}}},hs=Object(r.a)(Ht,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("div",{staticClass:"el-image"},[e.loading?e._t("placeholder",[t("div",{staticClass:"el-image__placeholder"})]):e.error?e._t("error",[t("div",{staticClass:"el-image__error"},[e._v(e._s(e.t("el.image.error")))])]):t("img",e._g(e._b({staticClass:"el-image__inner",class:{"el-image__inner--center":e.alignCenter,"el-image__preview":e.preview},style:e.imageStyle,attrs:{src:e.src},on:{click:e.clickHandler}},"img",e.$attrs,!1),e.$listeners)),e.preview?[e.showViewer?t("image-viewer",{attrs:{"z-index":e.zIndex,"initial-index":e.imageIndex,"on-close":e.closeViewer,"url-list":e.previewSrcList}}):e._e()]:e._e()],2)},[],!1,null,null,null).exports;hs.install=function(e){e.component(hs.name,hs)};var Rt=hs,Qt={props:{selectedDay:String,range:{type:Array,validator:function(e){if(!e||!e.length)return!0;var t=e[0],e=e[1];return Gn(t,e)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],data:function(){return{WEEK_DAYS:fn().dayNames}},methods:{toNestedArr:function(n){return hi(n.length/7).map(function(e,t){t*=7;return n.slice(t,7+t)})},getFormateDate:function(e,t){if(!e||-1===["prev","current","next"].indexOf(t))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===t?n=this.prevMonthDatePrefix:"next"===t&&(n=this.nextMonthDatePrefix),n+"-"+(e=("00"+e).slice(-2))},getCellClass:function(e){var t=e.text,n=e.type,e=[n];return"current"===n&&((n=this.getFormateDate(t,n))===this.selectedDay&&e.push("is-selected"),n===this.formatedToday&&e.push("is-today")),e},pickDay:function(e){var t=e.text,e=e.type,e=this.getFormateDate(t,e);this.$emit("pick",e)},cellRenderProxy:function(e){var t=e.text,n=e.type,i=this.$createElement,e=this.elCalendar.$scopedSlots.dateCell;if(!e)return i("span",[t]);t=this.getFormateDate(t,n);return e({date:new Date(t),data:{isSelected:this.selectedDay===t,type:n+"-month",day:t}})}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),kn.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return kn.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return kn.a.format(e,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var n,e,t,i=[];return i=this.isInRange?(t=this.range,n=t[0],e=t[1],e=(t=hi(e.getDate()-n.getDate()+1).map(function(e,t){return{text:n.getDate()+t,type:"current"}})).length%7,e=hi(e=0===e?0:7-e).map(function(e,t){return{text:t+1,type:"next"}}),t.concat(e)):(e=function(e,n){if(n<=0)return[];e=new Date(e.getTime());e.setDate(0);var i=e.getDate();return hi(n).map(function(e,t){return i-(n-t-1)})}(t=this.date,(e=0===(e=xn(t))?7:e)-("number"==typeof this.firstDayOfWeek?this.firstDayOfWeek:1)).map(function(e){return{text:e,type:"prev"}}),t=function(e){e=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return hi(e).map(function(e,t){return t+1})}(t).map(function(e){return{text:e,type:"current"}}),i=[].concat(e,t),t=hi(42-i.length).map(function(e,t){return{text:t+1,type:"next"}}),i.concat(t)),this.toNestedArr(i)},weekDays:function(){var e=this.firstDayOfWeek,t=this.WEEK_DAYS;return"number"!=typeof e||0===e?t.slice():t.slice(e).concat(t.slice(0,e))}},render:function(){var n=this,i=arguments[0],e=this.hideHeader?null:i("thead",[this.weekDays.map(function(e){return i("th",{key:e},[e])})]);return i("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[e,i("tbody",[this.rows.map(function(e,t){return i("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===t&&n.hideHeader},key:t},[e.map(function(e,t){return i("td",{key:t,class:n.getCellClass(e),on:{click:n.pickDay.bind(n,e)}},[i("div",{class:"el-calendar-day"},[n.cellRenderProxy(e)])])})])})])])}},$t=Object(r.a)(Qt,void 0,void 0,!1,null,null,null).exports,ds=["prev-month","today","next-month"],ps=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Tt={name:"TisCalendar",mixins:[l.a],components:{DateTable:$t,ElButton:te.a,ElButtonGroup:re},props:{value:[Date,String,Number],range:{type:Array,validator:function(e){return!Array.isArray(e)||2===e.length&&e.every(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date})}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(e){this.realSelectedDay=e},selectDate:function(e){if(-1===ds.indexOf(e))throw new Error("invalid type "+e);var t="";(t="prev-month"===e?this.prevMonthDatePrefix+"-01":"next-month"===e?this.nextMonthDatePrefix+"-01":this.formatedToday)!==this.formatedDate&&this.pickDay(t)},toDate:function(e){if(!e)throw new Error("invalid val");return e instanceof Date?e:new Date(e)},rangeValidator:function(e,t){var n=this.realFirstDayOfWeek,n=t?n:0===n?6:n-1,t=(t?"start":"end")+" of range should be "+ps[n]+".";return e.getDay()===n||(console.warn("[ElementCalendar]",t,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),kn.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return kn.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return kn.a.format(e,"yyyy-MM")},formatedDate:function(){return kn.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var e=this.date.getFullYear(),t=this.date.getMonth()+1;return e+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+t)},formatedToday:function(){return kn.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(e){this.selectedDay=e;e=new Date(e);this.$emit("input",e)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var e=this.selectedDay.split("-");return new Date(e[0],e[1]-1,e[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var i=this,e=this.range;if(!e)return[];if(2!==(e=e.reduce(function(e,t,n){t=i.toDate(t);return e=i.rangeValidator(t,0===n)?e.concat(t):e},[])).length)return[];var t=e[0],n=e[1];if(n<t)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Gn(t,n))return[[t,n]];var r=[],o=new Date(t.getFullYear(),t.getMonth()+1,1),a=this.toDate(o.getTime()-864e5);if(!Gn(o,n))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];r.push([t,a]);e=this.realFirstDayOfWeek,t=o.getDay(),a=0;return t!==e&&(a=0===e?7-t:0<(a=e-t)?a:7+a),(o=this.toDate(o.getTime()+864e5*a)).getDate()<n.getDate()&&r.push([o,n]),r},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||6<this.firstDayOfWeek?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},fs=Object(r.a)(Tt,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("div",{staticClass:"el-calendar"},[i("div",{staticClass:"el-calendar__header"},[i("div",{staticClass:"el-calendar__title"},[n._v("\n "+n._s(n.i18nDate)+"\n ")]),0===n.validatedRange.length?i("div",{staticClass:"el-calendar__button-group"},[i("tis-button-group",[i("tis-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){n.selectDate("prev-month")}}},[n._v("\n "+n._s(n.t("el.datepicker.prevMonth"))+"\n ")]),i("tis-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){n.selectDate("today")}}},[n._v("\n "+n._s(n.t("el.datepicker.today"))+"\n ")]),i("tis-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){n.selectDate("next-month")}}},[n._v("\n "+n._s(n.t("el.datepicker.nextMonth"))+"\n ")])],1)],1):n._e()]),0===n.validatedRange.length?i("div",{key:"no-range",staticClass:"el-calendar__body"},[i("date-table",{attrs:{date:n.date,"selected-day":n.realSelectedDay,"first-day-of-week":n.realFirstDayOfWeek},on:{pick:n.pickDay}})],1):i("div",{key:"has-range",staticClass:"el-calendar__body"},n._l(n.validatedRange,function(e,t){return i("date-table",{key:t,attrs:{date:e[0],"selected-day":n.realSelectedDay,range:e,"hide-header":0!==t,"first-day-of-week":n.realFirstDayOfWeek},on:{pick:n.pickDay}})}),1)])},[],!1,null,null,null).exports;fs.install=function(e){e.component(fs.name,fs)};function ms(e){return Math.pow(e,3)}var tn=fs,rn={name:"TisBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=aa()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var e=this.el.scrollTop;this.visible=e>=this.visibilityHeight},handleClick:function(e){this.scrollToTop(),this.$emit("click",e)},scrollToTop:function(){function t(){var e;(e=(Date.now()-i)/500)<1?(n.scrollTop=r*(1-((e=e)<.5?ms(2*e)/2:1-ms(2*(1-e))/2)),o(t)):n.scrollTop=0}var n=this.el,i=Date.now(),r=n.scrollTop,o=window.requestAnimationFrame||function(e){return setTimeout(e,16)};o(t)}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},gs=Object(r.a)(rn,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("transition",{attrs:{name:"el-fade-in"}},[t.visible?e("div",{staticClass:"el-backtop",style:{right:t.styleRight,bottom:t.styleBottom},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)}}},[t._t("default",[e("tis-icon",{attrs:{name:"caret-top"}})])],2):t._e()])},[],!1,null,null,null).exports;gs.install=function(e){e.component(gs.name,gs)};function vs(e,t){return(e===window||e===document?document.documentElement:e)[t]}function ys(e){return vs(e,"offsetHeight")}function xs(a,s){return Object(na.c)(a)?(t=Cs,Object.keys(t||{}).map(function(e){return[e,t[e]]}).reduce(function(e,t){var n=t[0],t=t[1],i=t.type,r=t.default,o=a.getAttribute("infinite-scroll-"+n),o=Object(na.f)(s[o])?o:s[o];switch(i){case Number:o=Number(o),o=Number.isNaN(o)?r:o;break;case Boolean:o=Object(na.a)(o)?"false"!==o&&Boolean(o):r;break;default:o=i(o)}return e[n]=o,e},{})):{};var t}function bs(e){return e.getBoundingClientRect().top}function _s(e){var t=(a=this[ws]).el,n=a.vm,i=a.container,r=a.observer,o=xs(t,n),a=o.distance;o.disabled||((o=i.getBoundingClientRect()).width||o.height)&&((i===t?(o=i.scrollTop+vs(i,"clientHeight"),i.scrollHeight-o<=a):ys(t)+bs(t)-bs(i)-ys(i)+Number.parseFloat(function(e,t){if(1!==(e=e===window?document.documentElement:e).nodeType)return[];e=window.getComputedStyle(e,null);return t?e[t]:e}(i,"borderBottomWidth"))<=a)&&Object(na.b)(e)?e.call(n):r&&(r.disconnect(),this[ws].observer=null))}var on=gs,ws="ElInfiniteScroll",Cs={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Ss={name:"InfiniteScroll",inserted:function(e,t,n){var i=t.value,r=n.context,o=Object(M.b)(e,!0),t=xs(e,r),n=t.delay,t=t.immediate,i=N()(n,_s.bind(e,i));e[ws]={el:e,vm:r,container:o,onScroll:i},o&&(o.addEventListener("scroll",i),t&&((e[ws].observer=new MutationObserver(i)).observe(o,{childList:!0,subtree:!0}),i()))},unbind:function(e){var t=e[ws],e=t.container,t=t.onScroll;e&&e.removeEventListener("scroll",t)},install:function(e){e.directive(Ss.name,Ss)}},As=Ss,Tn={name:"TisPageHeader",props:{title:{type:String,default:function(){return Object(P.b)("el.pageHeader.title")}},content:String}},Ms=Object(r.a)(Tn,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{staticClass:"el-page-header"},[e("div",{staticClass:"el-page-header__left",on:{click:function(e){t.$emit("back")}}},[e("i",{staticClass:"el-icon-back"}),e("div",{staticClass:"el-page-header__title"},[t._t("title",[t._v(t._s(t.title))])],2)]),e("div",{staticClass:"el-page-header__content"},[t._t("content",[t._v(t._s(t.content))])],2)])},[],!1,null,null,null).exports;Ms.install=function(e){e.component(Ms.name,Ms)};var gi=Ms,xi={name:"TisAvatar",props:{size:{type:[Number,String],validator:function(e){return"string"==typeof e?["large","medium","small"].includes(e):"number"==typeof e}},shape:{type:String,default:"circle",validator:function(e){return["circle","square"].includes(e)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var e=this.size,t=this.icon,n=this.shape,i=["el-avatar"];return e&&"string"==typeof e&&i.push("el-avatar--"+e),t&&i.push("el-avatar--icon"),n&&i.push("el-avatar--"+n),i.join(" ")}},methods:{handleError:function(){var e=this.error;!1!==(e?e():void 0)&&(this.isImageExist=!1)},renderAvatar:function(){var e=this.$createElement,t=this.icon,n=this.src,i=this.alt,r=this.isImageExist,o=this.srcSet,a=this.fit;return r&&n?e("img",{attrs:{src:n,alt:i,srcSet:o},on:{error:this.handleError},style:{"object-fit":a}}):t?e("i",{class:t}):this.$slots.default}},render:function(){var e=this.avatarClass,t=this.size;return(0,arguments[0])("span",{class:e,style:"number"==typeof t?{height:t+"px",width:t+"px",lineHeight:t+"px"}:{}},[this.renderAvatar()])}},Ts=Object(r.a)(xi,void 0,void 0,!1,null,null,null).exports;Ts.install=function(e){e.component(Ts.name,Ts)};var Fe=Ts,wi={name:"TisDrawer",mixins:[W.b,a.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(e){return-1!==["ltr","rtl","ttb","btt"].indexOf(e)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:String,default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement,this.$nextTick(function(){me.focusFirstDescendant(t.$refs.drawer)})):(this.closed||this.$emit("close"),this.$nextTick(function(){t.prevActiveElement&&t.prevActiveElement.focus()}))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open())},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},ks=Object(r.a)(wi,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[e("div",{staticClass:"el-drawer__container",class:t.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[e("div",{ref:"drawer",staticClass:"el-drawer",class:[t.direction,t.customClass],style:t.isHorizontal?"width: "+t.size:"height: "+t.size,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":t.title,role:"dialog",tabindex:"-1"}},[t.withHeader?e("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[t._t("title",[e("span",{attrs:{role:"heading",tabindex:"0",title:t.title}},[t._v(t._s(t.title))])]),t.showClose?e("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(t.title||"drawer"),type:"button"},on:{click:t.closeDrawer}},[e("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):t._e()],2):t._e(),t.rendered?e("section",{staticClass:"el-drawer__body"},[t._t("default")],2):t._e()])])])])},[],!1,null,null,null).exports;ks.install=function(e){e.component(ks.name,ks)};var Mi=ks,Oi={name:"TisPopconfirm",props:{title:{type:String},confirmButtonText:{type:String,default:Object(P.b)("el.popconfirm.confirmButtonText")},cancelButtonText:{type:String,default:Object(P.b)("el.popconfirm.cancelButtonText")},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:tr,ElButton:te.a},data:function(){return{visible:!1}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},Ds=Object(r.a)(Oi,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("tis-popover",t._b({attrs:{trigger:"click"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"tis-popover",t.$attrs,!1),[e("div",{staticClass:"el-popconfirm"},[e("p",{staticClass:"el-popconfirm__main"},[t.hideIcon?t._e():e("i",{staticClass:"el-popconfirm__icon",class:t.icon,style:{color:t.iconColor}}),t._v("\n "+t._s(t.title)+"\n ")]),e("div",{staticClass:"el-popconfirm__action"},[e("tis-button",{attrs:{size:"mini",type:t.cancelButtonType},on:{click:t.cancel}},[t._v("\n "+t._s(t.cancelButtonText)+"\n ")]),e("tis-button",{attrs:{size:"mini",type:t.confirmButtonType},on:{click:t.confirm}},[t._v("\n "+t._s(t.confirmButtonText)+"\n ")])],1)]),t._t("reference",null,{slot:"reference"})],2)},[],!1,null,null,null).exports;Ds.install=function(e){e.component(Ds.name,Ds)};var Li=Ds,Is=(n(118),{categoryAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1}},line:{smooth:!0},grid:{containLabel:!0,left:10,right:10}}),Os=["#19d4ae","#5ab1ef","#fa6e86","#ffb980","#0067a6","#c4b4e4","#d87a80","#9cbbff","#d9d0c7","#87a997","#d49ea2","#5b4947","#7ba3a8"],Ns=["#313695","#4575b4","#74add1","#abd9e9","#e0f3f8","#ffffbf","#fee090","#fdae61","#f46d43","#d73027","#a50026"],Ls=["blue","blue","green","yellow","red"],Ps=function(e){return['<span style="',"background-color:"+e+";","display: inline-block;","width: 10px;","height: 10px;","border-radius: 50%;","margin-right:2px;",'"></span>'].join("")},Es=["initOptions","loading","dataEmpty","judgeWidth","widthChangeDelay"],Hs=["grid","dataZoom","visualMap","toolbox","title","legend","xAxis","yAxis","radar","tooltip","axisPointer","brush","geo","timeline","graphic","series","backgroundColor","textStyle"],zs={th:3,mi:6,bi:9,tr:12},Rs={zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0,abbrLabel:{th:"k",mi:"m",bi:"b",tr:"t"}},js=1e12,Bs=1e9,Fs=1e6,Vs=1e3;function $s(e,t,n,i){var r=e.toString().split("."),o=t-(i||0),r=2===r.length?Math.min(Math.max(r[1].length,o),t):o,o=Math.pow(10,r),o=(n(e+"e+"+r)/o).toFixed(r);return t-r<i&&(r=new RegExp("\\.?0{1,"+(i-(t-r))+"}$"),o=o.replace(r,"")),o}function Ys(e,t,n,i){var r=Math.abs(t),o=!1,a=!1,s="",l="",u=!1,c=void 0,h=void 0;t=t||0,~(n=n||"").indexOf("(")?(o=!0,n=n.replace(/[(|)]/g,"")):(~n.indexOf("+")||~n.indexOf("-"))&&(h=~n.indexOf("+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[+|-]/g,"")),~n.indexOf("a")&&(c=!!(c=n.match(/a(k|m|b|t)?/))&&c[1],~n.indexOf(" a")&&(s=" "),n=n.replace(new RegExp(s+"a[kmbt]?"),""),js<=r&&!c||"t"===c?(s+=e.abbrLabel.tr,t/=js):r<js&&Bs<=r&&!c||"b"===c?(s+=e.abbrLabel.bi,t/=Bs):r<Bs&&Fs<=r&&!c||"m"===c?(s+=e.abbrLabel.mi,t/=Fs):(r<Fs&&Vs<=r&&!c||"k"===c)&&(s+=e.abbrLabel.th,t/=Vs)),~n.indexOf("[.]")&&(a=!0,n=n.replace("[.]","."));var d=t.toString().split(".")[0],p=n.split(".")[1],r=n.indexOf(","),e=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length;if(p?(d=(l=~p.indexOf("[")?$s(t,(p=(p=p.replace("]","")).split("["))[0].length+p[1].length,i,p[1].length):$s(t,p.length,i)).split(".")[0],l=~l.indexOf(".")?"."+l.split(".")[1]:"",a&&0==+l.slice(1)&&(l="")):d=$s(t,0,i),s&&!c&&1e3<=+d&&s!==zs.trillion&&(d=""+ +d/1e3,s=zs.million),~d.indexOf("-")&&(d=d.slice(1),u=!0),d.length<e)for(var f=e-d.length;0<f;f--)d="0"+d;-1<r&&(d=d.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"));s=(d=!n.indexOf(".")?"":d)+l+(s||"");return o?s=(o&&u?"(":"")+s+(o&&u?")":""):0<=h?s=0===h?(u?"-":"+")+s:s+(u?"-":"+"):u&&(s="-"+s),s}function Ws(t,n){Object.keys(n).forEach(function(e){t[e]=n[e]})}var Xs={},Gs={};function Us(e,t,n){var i;return function(e,t,n){t=t||Xs.defaultFormat,n=n||Math.round;var i=void 0,r=void 0;if(0===e&&null!==Xs.zeroFormat)i=Xs.zeroFormat;else if(null===e&&null!==Xs.nullFormat)i=Xs.nullFormat;else{for(var o in Gs)if(Gs[o]&&t.match(Gs[o].regexp)){r=Gs[o].format;break}i=(r=r||Ys.bind(null,Xs))(e,t,n,Us)}return i}(0===e||void 0===e?0:null===e||"number"==typeof(i=e)&&isNaN(i)?null:"string"==typeof e?Xs.zeroFormat&&e===Xs.zeroFormat?0:Xs.nullFormat&&e===Xs.nullFormat||!e.replace(/[^0-9]+/g,"").length?null:+e:+e||null,t,n)}Ws(Xs,Rs),Us.options=Xs,Us._numberToFormat=Ys.bind(null,Xs),Us.register=function(e,t){Gs[e]=t},Us.unregister=function(e){Gs[e]=null},Us.setOptions=function(e){Ws(Xs,e)},Us.reset=function(){Ws(Xs,Rs)},Us.register("percentage",{regexp:/%/,format:function(e,t,n,i){var r=~t.indexOf(" %")?" ":"",o=void 0;return i.options.scalePercentBy100&&(e*=100),t=t.replace(/\s?%/,""),o=~(o=i._numberToFormat(e,t,n)).indexOf(")")?((o=o.split("")).splice(-1,0,r+"%"),o.join("")):o+r+"%"}});var qs=Us;function Zs(n,i){var r=null;return function(){var e=this,t=arguments;clearTimeout(r),r=setTimeout(function(){n.apply(e,t)},i)}}function Ks(e,t,n){var i,r;t&&(i=e,(r=t.split(".")).forEach(function(e,t){t===r.length-1?i[e]=n:(i[e]||(i[e]={}),i=i[e])}))}var Qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Js(e){return Object.prototype.toString.call(e)}function el(e){return void 0===e?"undefined":Qs(e)}function tl(e){return"[object Object]"===Js(e)}function nl(e){return"[object Array]"===Js(e)}function il(e){return"[object Function]"===Js(e)}function rl(e){return JSON.parse(JSON.stringify(e))}function ol(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Object.assign;function al(e){var n={};return Object.keys(e).forEach(function(t){e[t].forEach(function(e){n[e]=t})}),n}function sl(e){var i,t=e.position,n=e.positionJsonLink,r=e.beforeRegisterMapOnce,e=e.mapURLProfix;return hl[t=n||""+e+t+".json"]||(hl[t]=(i=t,new Promise(function(e,t){var n=new XMLHttpRequest;n.open("GET",i),n.send(null),n.onload=function(){e(JSON.parse(n.responseText))},n.onerror=function(){t(JSON.parse(n.responseText))}}).then(function(e){return e=r?r(e):e}))),hl[t]}function ll(i,r){return dl=dl||new Promise(function(e,t){var n="bmap"+Date.now();window[n]=e;e=document.createElement("script");e.src=["https://api.map.baidu.com/api?v="+(r||"2.0"),"ak="+i,"callback="+n].join("&"),document.body.appendChild(e)})}function ul(i,r){return pl=pl||new Promise(function(e,t){var n="amap"+Date.now();window[n]=e;e=document.createElement("script");e.src=["https://webapi.amap.com/maps?v="+(r||"1.4.3"),"key="+i,"callback="+n].join("&"),document.body.appendChild(e)})}var cl=function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"-";if(isNaN(e))return i;if(!t)return e;if(il(t))return t(e,qs);n=isNaN(n)?0:++n;var r=".["+new Array(n).join(0)+"]",o=t;switch(t){case"KMB":o=n?"0,0"+r+"a":"0,0a";break;case"normal":o=n?"0,0"+r:"0,0";break;case"percent":o=n?"0,0"+r+"%":"0,0.[00]%"}return qs(e,o)},hl={},dl=null,pl=null;function fl(e,t,n){void 0!==e[t]?e[t].push(n):e[t]=[n]}function ml(e){var n=e.innerRows,i=e.dimAxisName,t=e.dimension,r=e.axisVisible,o=e.dimAxisType,a=e.dims;return t.map(function(t){return{type:"category",name:i,nameLocation:"middle",nameGap:22,data:"value"===o?function(e){for(var t=Math.max.apply(null,e),e=Math.min.apply(null,e),n=[],i=e;i<=t;i++)n.push(i);return n}(a):n.map(function(e){return e[t]}),axisLabel:{formatter:function(e){return String(e)}},show:r,axisLine:{lineStyle:{color:"#FFF"}}}})}function gl(e){for(var n=e.meaAxisName,i=e.meaAxisType,t=e.axisVisible,r=e.digit,o=e.scale,a=e.min,s=e.max,l={type:"value",axisTick:{show:!1},show:t,axisLine:{lineStyle:{color:"#FFF"}}},u=[],c=0;c<2;c++)!function(t){i[t]?u[t]=Object.assign({},l,{axisLabel:{formatter:function(e){return cl(e,i[t],r)}}}):u[t]=Object.assign({},l),u[t].name=n[t]||"",u[t].scale=o[t]||!1,u[t].min=a[t]||null,u[t].max=s[t]||null}(c);return u}function vl(e){var t=e.axisSite,n=e.isHistogram,r=e.meaAxisType,o=e.digit,i=e.labelMap,a=n?t.right||[]:t.top||[];return i&&(a=a.map(function(e){return void 0===i[e]?e:i[e]})),{trigger:"axis",formatter:function(e){var i=[];return i.push(e[0].name+"<br>"),e.forEach(function(e){var t=e.seriesName,n=~a.indexOf(t)?r[1]:r[0];i.push(Ps(e.color)),i.push(t+": "),i.push(cl(e.value,n,o)),i.push("<br>")}),i.join("")}}}function yl(e){var t=e.innerRows,n=e.metrics,i=e.stack,r=e.axisSite,o=e.isHistogram,a=e.labelMap,s=e.itemStyle,l=e.label,u=e.showLine,c=void 0===u?[]:u,h=e.dimAxisType,d=e.barGap,p=e.opacity,f=e.dims,e=[],m={},g=o?r.right||[]:r.top||[],v=o?"yAxisIndex":"xAxisIndex",y=i&&al(i);return n.forEach(function(e){m[e]=[]}),t.forEach(function(t){n.forEach(function(e){m[e].push(t[e])})}),!!(e=Object.keys(m).map(function(e,t){var n="value"===h?function(e,t){for(var n=Math.max.apply(null,t),i=[],r=Math.min.apply(null,t);r<=n;r++){var o=t.indexOf(r);~o?i.push(e[o]):i.push(null)}return i}(m[e],f):m[e],n=((n={name:null!=a[e]?a[e]:e,type:~c.indexOf(e)?"line":"bar",data:n})[v]=~g.indexOf(e)?"1":"0",n);i&&y[e]&&(n.stack=y[e]),l&&(n.label=l),s&&(n.itemStyle=s);e=p||function(e,t,n){if(!t)return e;var t=t.split("."),i=e;return t.some(function(e,t){return void 0===i[e]?(i=n,!0):void(i=i[e])}),i}(n,"itemStyle.normal.opacity");return"value"===h&&(n.barGap=d,n.barCategoryGap="1%",null==e&&(e=.5)),null!=e&&Ks(n,"itemStyle.normal.opacity",e),n})).length&&e}function xl(e){var t=e.metrics,n=e.labelMap,i=e.legendName;return i||n?{data:n?t.map(function(e){return null==n[e]?e:n[e]}):t,formatter:function(e){return null!=i[e]?i[e]:e}}:{data:t}}function bl(e,t){return e.map(function(e){return e[t[0]]})}function _l(e,t,n,i){var r=rl(t),o=void 0===(w=n.axisSite)?{}:w,a=void 0===(f=n.dimension)?[e[0]]:f,s=void 0===(m=n.stack)?{}:m,l=void 0===(g=n.axisVisible)||g,u=void 0===(v=n.digit)?2:v,c=void 0!==(A=n.dataOrder)&&A,h=void 0===(y=n.scale)?[!1,!1]:y,d=void 0===(x=n.min)?[null,null]:x,p=void 0===(b=n.max)?[null,null]:b,t=void 0===(_=n.legendName)?{}:_,f=void 0===(w=n.labelMap)?{}:w,m=n.label,g=n.itemStyle,v=n.showLine,y=void 0===(A=n.barGap)?"-100%":A,x=n.opacity,b=i.tooltipVisible,_=i.legendVisible,w=e.slice();o.top&&o.bottom?w=o.top.concat(o.bottom):o.bottom&&!o.right?w=o.bottom:n.metrics?w=n.metrics:w.splice(e.indexOf(a[0]),1);var C,S,A=n.xAxisType||["normal","normal"],i=n.yAxisType||"category",e=n.xAxisName||[],n=n.yAxisName||"";return c&&(C=c.label,S=c.order,C&&S?r.sort(function(e,t){return"desc"===S?e[C]-t[C]:t[C]-e[C]}):console.warn("Need to provide name and order parameters")),c=bl(r,a),t=_&&xl({metrics:w,labelMap:f,legendName:t}),n=ml({innerRows:r,dimAxisName:n,dimension:a,axisVisible:l,dimAxisType:i,dims:c}),p=gl({meaAxisName:e,meaAxisType:A,axisVisible:l,digit:u,scale:h,min:d,max:p}),{legend:t,yAxis:n,series:yl({innerRows:r,metrics:w,stack:s,axisSite:o,isHistogram:!1,labelMap:f,itemStyle:g,label:m,showLine:v,dimAxisType:i,dimension:a,barGap:y,opacity:x,dims:c}),xAxis:p,tooltip:b&&vl({axisSite:o,isHistogram:!1,meaAxisType:A,digit:u,labelMap:f})}}function wl(e,t,n,i){var r,o,a=rl(t),s=n.axisSite,l=void 0===s?{}:s,u=void 0===(b=n.dimension)?[e[0]]:b,c=void 0===(_=n.stack)?{}:_,h=void 0===(w=n.axisVisible)||w,d=void 0===(C=n.digit)?2:C,p=n.dataOrder,f=void 0!==p&&p,m=void 0===(S=n.scale)?[!1,!1]:S,g=void 0===(A=n.min)?[null,null]:A,v=n.max,y=void 0===v?[null,null]:v,x=n.labelMap,t=void 0===x?{}:x,b=void 0===(s=n.legendName)?{}:s,_=n.label,w=n.itemStyle,C=n.showLine,S=void 0===(p=n.barGap)?"-100%":p,A=n.opacity;return f&&(r=f.label,o=f.order,r&&o?a.sort(function(e,t){return"desc"===o?e[r]-t[r]:t[r]-e[r]}):console.warn("Need to provide name and order parameters")),v=i.tooltipVisible,x=i.legendVisible,s=e.slice(),l.left&&l.right?s=l.left.concat(l.right):l.left&&!l.right?s=l.left:n.metrics?s=n.metrics:s.splice(e.indexOf(u[0]),1),p=n.yAxisType||["normal","normal"],f=n.xAxisType||"category",i=n.yAxisName||[],e=n.xAxisName||"",n=bl(a,u),b=x&&xl({metrics:s,labelMap:t,legendName:b}),e=ml({innerRows:a,dimAxisName:e,dimension:u,axisVisible:h,dimAxisType:f,dims:n}),{legend:b,yAxis:gl({meaAxisName:i,meaAxisType:p,axisVisible:h,digit:d,scale:m,min:g,max:y}),series:yl({innerRows:a,metrics:s,stack:c,axisSite:l,isHistogram:!0,labelMap:t,itemStyle:w,label:_,showLine:C,dimAxisType:f,dimension:u,barGap:S,opacity:A,dims:n}),xAxis:e,tooltip:v&&vl({axisSite:l,isHistogram:!0,meaAxisType:p,digit:d,labelMap:t})}}function Cl(t,n){Object.keys(n).forEach(function(e){n[e]&&(t[e]=n[e])})}var Ei=n(3),Sl=n.n(Ei),Al=(n(337),n(204),n(554),Object(r.a)({},function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"v-charts-component-loading"},[e("div",{staticClass:"loader"},[e("div",{staticClass:"loading-spinner"},[e("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[e("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])])])])},[],!1,null,null,null).exports),Ml=(n(555),Object(r.a)({},function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"v-charts-data-empty"},[this._v("\n 暂无数据\n")])},[],!1,null,null,null).exports),Di={render:function(e){return e("div",{class:[(this.$options.name||this.$options._componentTag).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()],style:this.canvasStyle},[e("div",{style:this.canvasStyle,class:{"v-charts-mask-status":this.dataEmpty||this.loading},ref:"canvas"}),e(Ml,{style:{display:this.dataEmpty?"":"none"}}),e(Al,{style:{display:this.loading?"":"none"}}),this.$slots.default])},props:{data:{type:[Object,Array],default:function(){return{}}},settings:{type:Object,default:function(){return{}}},width:{type:String,default:"auto"},height:{type:String,default:"400px"},beforeConfig:{type:Function},afterConfig:{type:Function},afterSetOption:{type:Function},afterSetOptionOnce:{type:Function},events:{type:Object},grid:{type:[Object,Array]},colors:{type:Array},tooltipVisible:{type:Boolean,default:!0},legendVisible:{type:Boolean,default:!0},legendPosition:{type:String},markLine:{type:Object},markArea:{type:Object},markPoint:{type:Object},visualMap:{type:[Object,Array]},dataZoom:{type:[Object,Array]},toolbox:{type:[Object,Array]},initOptions:{type:Object,default:function(){return{}}},title:[Object,Array],legend:[Object,Array],xAxis:[Object,Array],yAxis:[Object,Array],radar:Object,tooltip:Object,axisPointer:[Object,Array],brush:[Object,Array],geo:[Object,Array],timeline:[Object,Array],graphic:[Object,Array],series:[Object,Array],backgroundColor:[Object,String],textStyle:[Object,Array],animation:Object,theme:Object,themeName:String,loading:Boolean,dataEmpty:Boolean,extend:Object,judgeWidth:{type:Boolean,default:!1},widthChangeDelay:{type:Number,default:300},tooltipFormatter:{type:Function},resizeable:{type:Boolean,default:!0},resizeDelay:{type:Number,default:200},changeDelay:{type:Number,default:0},setOptionOpts:{type:[Boolean,Object],default:!0},cancelResizeCheck:Boolean,notSetUnchange:Array,log:Boolean},watch:{data:{deep:!0,handler:function(e){e&&this.changeHandler()}},settings:{deep:!0,handler:function(e){e.type&&this.chartLib&&(this.chartHandler=this.chartLib[e.type]),this.changeHandler()}},width:"nextTickResize",height:"nextTickResize",events:{deep:!0,handler:"createEventProxy"},theme:{deep:!0,handler:"themeChange"},themeName:"themeChange",resizeable:"resizeableHandler"},computed:{canvasStyle:function(){return{width:this.width,height:this.height,position:"relative"}},chartColor:function(){return this.colors||this.theme&&this.theme.color||Os}},methods:{dataHandler:function(){var e,t,n,i;this.chartHandler&&(t=void 0===(n=(e=this.data).columns)?[]:n,n=void 0===(i=e.rows)?[]:i,i={tooltipVisible:this.tooltipVisible,legendVisible:this.legendVisible,echarts:this.echarts,color:this.chartColor,tooltipFormatter:this.tooltipFormatter,_once:this._once},this.beforeConfig&&(e=this.beforeConfig(e)),(i=this.chartHandler(t,n,this.settings,i))&&("function"==typeof i.then?i.then(this.optionsHandler):this.optionsHandler(i)))},nextTickResize:function(){this.$nextTick(this.resize)},resize:function(){(this.cancelResizeCheck||this.$el&&this.$el.clientWidth&&this.$el.clientHeight)&&this.echartsResize()},echartsResize:function(){this.echarts&&this.echarts.resize()},optionsHandler:function(n){var t,i,r,o,e,a=this;this.legendPosition&&n.legend&&(n.legend[this.legendPosition]=10,~["left","right"].indexOf(this.legendPosition)&&(n.legend.top="middle",n.legend.orient="vertical")),n.color=this.chartColor,Hs.forEach(function(e){a[e]&&(n[e]=a[e])}),this.animation&&(t=n,i=this.animation,Object.keys(i).forEach(function(e){t[e]=i[e]})),(this.markArea||this.markLine||this.markPoint)&&(r={markArea:this.markArea,markLine:this.markLine,markPoint:this.markPoint},nl(s=n.series)?s.forEach(function(e){Cl(e,r)}):tl(s)&&Cl(s,r)),this.extend&&(o=n,e=this.extend,Object.keys(e).forEach(function(n){var i=e[n];~n.indexOf(".")?Ks(o,n,i):"function"==typeof i?o[n]=i(o[n]):nl(o[n])&&tl(o[n][0])?o[n].forEach(function(e,t){o[n][t]=Object.assign({},e,i)}):tl(o[n])?o[n]=Object.assign({},o[n],i):o[n]=i})),this.afterConfig&&(n=this.afterConfig(n));var s=this.setOptionOpts;!this.settings.bmap&&!this.settings.amap||tl(s)||(s=!1),this.notSetUnchange&&this.notSetUnchange.length&&(this.notSetUnchange.forEach(function(e){var t=n[e];t&&(!function e(t,n){if(t===n)return 1;if(null===t||null===n||"object"!==el(t)||"object"!==el(n))return t===n;for(var i in t)if(ol(t,i)){var r=t[i],o=n[i],i=el(r);if("undefined"===el(o))return;if("object"===i){if(!e(r,o))return}else if(r!==o)return}for(var a in n)if(ol(n,a)&&"undefined"===el(t)[a])return;return 1}(t,a._store[e])?a._store[e]=rl(t):n[e]=void 0)}),tl(s)?s.notMerge=!1:s=!1),this._isDestroyed||(this.log&&console.log(n),console.log("options-------\x3e",n),console.log("setOptions-----\x3e",s),n.legend.textStyle={color:"#FFF"},this.echarts.setOption(n,s),this.$emit("ready",this.echarts,n,Sl.a),this._once["ready-once"]||(this._once["ready-once"]=!0,this.$emit("ready-once",this.echarts,n,Sl.a)),this.judgeWidth&&this.judgeWidthHandler(n),this.afterSetOption&&this.afterSetOption(this.echarts,n,Sl.a),this.afterSetOptionOnce&&!this._once.afterSetOptionOnce&&(this._once.afterSetOptionOnce=!0,this.afterSetOptionOnce(this.echarts,n,Sl.a)))},judgeWidthHandler:function(e){var t=this,n=this.widthChangeDelay,i=this.resize;this.$el.clientWidth||this.$el.clientHeight?i():this.$nextTick(function(e){t.$el.clientWidth||t.$el.clientHeight?i():setTimeout(function(e){i(),t.$el.clientWidth&&t.$el.clientHeight||console.warn(" Can't get dom width or height ")},n)})},resizeableHandler:function(e){e&&!this._once.onresize&&this.addResizeListener(),!e&&this._once.onresize&&this.removeResizeListener()},init:function(){var e;this.echarts||(e=this.themeName||this.theme||Is,this.echarts=Sl.a.init(this.$refs.canvas,e,this.initOptions),this.data&&this.changeHandler(),this.createEventProxy(),this.resizeable&&this.addResizeListener())},addResizeListener:function(){window.addEventListener("resize",this.resizeHandler),this._once.onresize=!0},removeResizeListener:function(){window.removeEventListener("resize",this.resizeHandler),this._once.onresize=!1},addWatchToProps:function(){var n=this,i=this._watchers.map(function(e){return e.expression});Object.keys(this.$props).forEach(function(e){var t;~i.indexOf(e)||~Es.indexOf(e)||(t={},~["[object Object]","[object Array]"].indexOf(Js(n.$props[e]))&&(t.deep=!0),n.$watch(e,function(){n.changeHandler()},t))})},createEventProxy:function(){var t=this,r=this,e=Object.keys(this.events||{});e.length&&e.forEach(function(e){var i;-1===t.registeredEvents.indexOf(e)&&(t.registeredEvents.push(e),t.echarts.on(e,(i=e,function(){if(i in r.events){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.events[i].apply(null,t)}})))})},themeChange:function(e){this.clean(),this.echarts=null,this.init()},clean:function(){this.resizeable&&this.removeResizeListener(),this.echarts.dispose()}},created:function(){this.echarts=null,this.registeredEvents=[],this._once={},this._store={},this.resizeHandler=Zs(this.resize,this.resizeDelay),this.changeHandler=Zs(this.dataHandler,this.changeDelay),this.addWatchToProps()},mounted:function(){this.init()},beforeDestroy:function(){this.clean()},_numerify:qs},zi=Object.assign({},Di,{name:"VeBar",data:function(){return this.chartHandler=_l,{}}}),Ci=Object.assign({},Di,{name:"VeHistogram",data:function(){return this.chartHandler=wl,{}}});n(205);function Tl(e){for(var n=e.yAxisName,i=e.yAxisType,t=e.axisVisible,r=e.scale,o=e.min,a=e.max,s=e.digit,l={type:"value",axisTick:{show:!1},show:t,axisLine:{lineStyle:{color:"#FFF"}}},u=[],c=0;c<2;c++)!function(t){i[t]?u[t]=Object.assign({},l,{axisLabel:{formatter:function(e){return cl(e,i[t],s)}}}):u[t]=Object.assign({},l),u[t].name=n[t]||"",u[t].scale=r[t]||!1,u[t].min=o[t]||null,u[t].max=a[t]||null}(c);return u}function kl(e,t,n,i){t=nl(t)?t:[],e=nl(e)?e:[];var r=void 0===(g=n.axisSite)?{}:g,o=void 0===(S=n.yAxisType)?["normal","normal"]:S,a=void 0===(v=n.xAxisType)?"category":v,s=void 0===(A=n.yAxisName)?[]:A,l=void 0===(y=n.dimension)?[e[0]]:y,u=void 0===(M=n.xAxisName)?[]:M,c=void 0===(x=n.axisVisible)||x,h=n.area,d=n.stack,p=void 0===(b=n.scale)?[!1,!1]:b,f=void 0===(_=n.min)?[null,null]:_,m=void 0===(w=n.max)?[null,null]:w,g=void 0!==(C=n.nullAddZero)&&C,v=void 0===(S=n.digit)?2:S,y=void 0===(A=n.legendName)?{}:A,x=void 0===(M=n.labelMap)?{}:M,b=n.label,_=n.itemStyle,w=n.lineStyle,C=n.areaStyle,S=i.tooltipVisible,A=i.legendVisible,M=i.tooltipFormatter,i=e.slice();r.left&&r.right?i=r.left.concat(r.right):r.left&&!r.right?i=r.left:n.metrics?i=n.metrics:i.splice(e.indexOf(l[0]),1);var T,k,D,I,O,N,L,P,E,H,z,R,j,B,F,V,$,Y,W,X,G,U,q,Z,K,Q,J=A&&(J=(y={metrics:i,legendName:y,labelMap:x}).metrics,T=y.legendName,k=y.labelMap,T||k?{data:k?J.map(function(e){return null==k[e]?e:k[e]}):J,formatter:function(e){return null!=T[e]?T[e]:e}}:{data:J}),ee=S&&(P=(ee={axisSite:r,yAxisType:o,digit:v,labelMap:x,xAxisType:a,tooltipFormatter:M}).axisSite,D=ee.yAxisType,I=ee.digit,O=ee.labelMap,N=ee.tooltipFormatter,P=P.right||[],L=O?P.map(function(e){return void 0===O[e]?e:O[e]}):P,{trigger:"axis",formatter:function(e){if(N)return N.apply(null,arguments);var o=[],t=e[0],n=t.name,t=t.axisValueLabel;return o.push((n||t)+"<br>"),e.forEach(function(e){var t=e.seriesName,n=e.data,i=e.marker,e=~L.indexOf(t)?D[1]:D[0],n=nl(n)?n[1]:n,r=cl(n,e,I);o.push(i),o.push(t+": "+r),o.push("<br>")}),o.join("")}}),u=(u=(P={dimension:l,rows:t,xAxisName:u,axisVisible:c,xAxisType:a}).dimension,E=P.rows,H=P.xAxisName,z=P.axisVisible,R=P.xAxisType,u.map(function(t,e){return{type:R,nameLocation:"middle",nameGap:22,name:H[e]||"",axisTick:{show:!0,lineStyle:{color:"#eee"}},data:E.map(function(e){return e[t]}),show:z,axisLine:{lineStyle:{color:"#FFF"}}}})),v=Tl({yAxisName:s,yAxisType:o,axisVisible:c,scale:p,min:f,max:m,digit:v});return{legend:J,xAxis:u,series:(l=(a={rows:t,axisSite:r,metrics:i,area:h,stack:d,nullAddZero:g,labelMap:x,label:b,itemStyle:_,lineStyle:w,areaStyle:C,xAxisType:a,dimension:l}).rows,j=a.axisSite,B=a.metrics,F=a.area,V=a.stack,$=a.nullAddZero,Y=a.labelMap,W=a.label,X=a.itemStyle,G=a.lineStyle,U=a.areaStyle,q=a.dimension,Z=[],K={},Q=V&&al(V),B.forEach(function(e){K[e]=[]}),l.forEach(function(n){B.forEach(function(e){var t=null;null!=n[e]?t=n[e]:$&&(t=0),K[e].push([n[q[0]],t])})}),B.forEach(function(e){var t={name:null!=Y[e]?Y[e]:e,type:"line",data:K[e]};F&&(t.areaStyle={normal:{}}),j.right&&(t.yAxisIndex=~j.right.indexOf(e)?1:0),V&&Q[e]&&(t.stack=Q[e]),W&&(t.label=W),X&&(t.itemStyle=X),G&&(t.lineStyle=G),U&&(t.areaStyle=U),Z.push(t)}),Z),yAxis:v,tooltip:ee}}var Fi=Object.assign({},Di,{name:"VeLine",data:function(){return this.chartHandler=kl,{}}}),Dl=(n(206),[80,100]),Il=[20,100];function Ol(e,t,n,i,r){var o,a,s,l,u,c,h,d=rl(t),p=void 0===(_=n.dataType)?"normal":_,f=n.percentShow,m=void 0===(M=n.dimension)?e[0]:M,g=void 0===(S=n.metrics)?e[1]:S,v=void 0!==(w=n.roseType)&&w,y=void 0===(T=n.radius)?r?v?Il:Dl:100:T,x=void 0===(C=n.offsetY)?200:C,b=void 0===(A=n.legendLimit)?30:A,_=void 0!==(t=n.selectedMode)&&t,e=void 0===(M=n.hoverAnimation)||M,w=void 0===(S=n.digit)?2:S,C=void 0===(T=n.legendName)?{}:T,t=void 0!==(A=n.label)&&A,S=void 0!==(M=n.level)&&M,A=void 0===(T=n.limitShowNum)?0:T,M=n.labelLine,T=n.itemStyle,n=i.tooltipVisible,i=i.legendVisible;return A&&d.sort(function(e,t){return t[g]-e[g]}),{series:function(e){var t=e.innerRows,o=e.dataType,a=e.percentShow,s=e.dimension,l=e.metrics,u=e.radius,n=e.offsetY,i=e.selectedMode,r=e.hoverAnimation,c=e.digit,h=e.roseType,d=e.label,p=e.level,f=e.limitShowNum,m=e.isRing,g=e.labelLine,v=e.itemStyle,y=[],x={},b=[];p?(p.forEach(function(e,t){e.forEach(function(e){fl(x,e,t)})}),t.forEach(function(t){var e=x[t[s]];e&&e.length&&e.forEach(function(e){fl(b,e,t)})})):b.push(t);var _,w={type:"pie",selectedMode:i,hoverAnimation:r,roseType:h,center:["50%",n]},C=b.length;return b.forEach(function(e,t){var n,i=Object.assign({data:[]},w),r=u/C;i.radius=t?[n=r+u/(2*C)*(2*t-1),n+u/(2*C)]:m?u:r,1<C&&0===t&&(i.label={normal:{position:"inner"}}),d&&(i.label=d),g&&(i.labelLine=g),v&&(i.itemStyle=v),a&&(i.label={normal:{show:!0,position:1<C&&0===t?"inner":"outside",formatter:function(e){var t=[];return t.push(e.name+":"),t.push(cl(e.value,o,c)),t.push("("+e.percent+"%)"),t.join(" ")}}}),i.data=e.map(function(e){return{name:e[s],value:e[l]}}),y.push(i)}),f&&f<y[0].data.length&&(n=(h=y[0].data).slice(f,h.length),_=0,n.forEach(function(e){_+=e.value}),y[0].data=h.slice(0,f),y[0].data.push({name:"其他",value:_})),y}({innerRows:d,dataType:p,percentShow:f,dimension:m,metrics:g,radius:y,offsetY:x,selectedMode:_,hoverAnimation:e,digit:w,roseType:v,label:t,level:S,legendName:C,limitShowNum:A,isRing:r,labelLine:M,itemStyle:T}),legend:i&&function(e){var t=e.innerRows,n=e.dimension,i=e.legendLimit,r=e.legendName,o=e.level,a=e.limitShowNum,s=[],l=[];if(o)o.forEach(function(e){e.forEach(function(e){l.push(e)})}),s=l;else if(a&&a<t.length){for(var u=0;u<a;u++)s.push(t[u][n]);s.push("其他")}else s=t.map(function(e){return e[n]});return!!s.length&&{data:s,show:s.length<i,formatter:function(e){return null!=r[e]?r[e]:e}}}({innerRows:d,dimension:m,legendLimit:b,legendName:C,level:S,limitShowNum:A}),tooltip:n&&(o=(w={dataType:p,innerRows:d,limitShowNum:A,digit:w,metrics:g,dimension:m}).dataType,m=w.innerRows,a=w.limitShowNum,s=w.digit,l=w.metrics,u=w.dimension,c=0,h=m.map(function(e){return c+=e[l],{name:e[u],value:e[l]}}).slice(a,m.length),{formatter:function(e){var i=[];return i.push(Ps(e.color)),a&&"其他"===e.name?(i.push("其他:"),h.forEach(function(e){var t=e.name,n=e.value,e=cl(n/c,"percent");i.push("<br>"+t+":"),i.push(cl(n,o,s)),i.push("("+e+")")})):(i.push(e.name+":"),i.push(cl(e.value,o,s)),i.push("("+e.percent+"%)")),i.join(" ")}})}}function Nl(e,t,n,i){return Ol(e,t,n,i,!0)}Gi=Object.assign({},Di,{name:"VePie",data:function(){return this.chartHandler=Ol,{}}}),Ki=Object.assign({},Di,{name:"VeRing",data:function(){return this.chartHandler=Nl,{}}});function Ll(e,t,n,i){var r=void 0===(A=n.dataType)?"normal":A,o=void 0===(h=n.dimension)?e[0]:h,a=void 0===(M=n.totalName)?"总计":M,s=n.totalNum,l=void 0===(d=n.remainName)?"其他":d,u=void 0===(p=n.xAxisName)?o:p,c=void 0===(T=n.labelMap)?{}:T,h=void 0===(A=n.axisVisible)||A,d=void 0===(M=n.digit)?2:M,p=i.tooltipVisible;(T=e.slice()).splice(T.indexOf(o),1);var f,m,g,v,y,x,b,_,w,C,S=T[0],A=S,n=p&&(f=r,m=d,{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){e=e[1];return[e.name+"<br/>"+e.seriesName+" :",""+cl(e.value,f,m)].join("")}}),M=parseFloat(t.reduce(function(e,t){return e+Number(t[S])},0).toFixed(d)),T=(i=M,(e=s)?i<e?"have-remain":"none-remain":"not-total");return{tooltip:n,xAxis:(g=(p={dimension:o,rows:t,remainStatus:T,totalName:a,remainName:l,xAxisName:u,labelMap:c,axisVisible:h}).dimension,i=p.rows,e=p.remainStatus,n=p.totalName,a=p.remainName,l=p.labelMap,u=p.xAxisName,p=p.axisVisible,i=[n].concat(i.map(function(e){return e[g]})),"have-remain"===e&&(i=i.concat([a])),{type:"category",name:l&&l[u]||u,splitLine:{show:!1},data:i,show:p}),yAxis:(v=(A={dataType:r,yAxisName:A,axisVisible:h,digit:d,labelMap:c}).dataType,h=A.yAxisName,c=A.axisVisible,y=A.digit,{type:"value",name:null!=(A=A.labelMap)[h]?A[h]:h,axisTick:{show:!1},axisLabel:{formatter:function(e){return cl(e,v,y)}},show:c}),series:(x=(c={dataType:r,rows:t,dimension:o,metrics:S,totalNum:s,remainStatus:T,dataSum:M,digit:d}).dataType,r=c.rows,b=c.metrics,t=c.totalNum,o=c.remainStatus,s=c.dataSum,_=c.digit,T={type:"bar",stack:"总量"},w=s,C=t,d=M=void 0,c=r.map(function(e){return e[b]}),d="have-remain"===o?(M=[0].concat(r.map(function(e){return C-=e[b]})).concat([0]),[t].concat(c).concat([t-s])):(M=[0].concat(r.map(function(e){return w-=e[b]})),[s].concat(c)),(c=[]).push(Object.assign({name:"辅助",itemStyle:{normal:{opacity:0},emphasis:{opacity:0}},data:M},T)),c.push(Object.assign({name:"数值",label:{normal:{show:!0,position:"top",formatter:function(e){return cl(e.value,x,_)}}},data:d},T)),c)}}ir=Object.assign({},Di,{name:"VeWaterfall",data:function(){return this.chartHandler=Ll,{}}}),n(349);function Pl(e,t,n,i){var r,o,a,s=e.slice(),l=t.slice(),u=void 0===(g=n.dataType)?"normal":g,c=void 0===(v=n.dimension)?s[0]:v,h=void 0===(y=n.sequence)?l.map(function(e){return e[c]}):y,d=void 0===(x=n.digit)?2:x,p=n.ascending,f=n.label,m=n.labelLine,t=void 0===(e=n.legendName)?{}:e,g=n.itemStyle,v=n.filterZero,y=n.useDefaultOrder,x=i.tooltipVisible,e=i.legendVisible,i=void 0,i=n.metrics||((n=s.slice()).splice(s.indexOf(c),1),n[0]);return{tooltip:x&&(r=u,o=d,{trigger:"item",formatter:function(e){var t=[];return t.push(Ps(e.color)),t.push(e.name+": "+cl(e.data.realValue,r,o)),t.join("")}}),legend:e&&(t=(e={data:h,legendName:t}).data,a=e.legendName,{data:t,formatter:function(e){return null!=a[e]?a[e]:e}}),series:function(e){var n=e.dimension,i=e.metrics,t=e.rows,r=e.sequence,o=e.ascending,a=e.label,s=e.labelLine,l=e.itemStyle,u=e.filterZero,c=e.useDefaultOrder,e={type:"funnel"},h=t.sort(function(e,t){return r.indexOf(e[n])-r.indexOf(t[n])});u&&(h=h.filter(function(e){return e[i]}));var d=!1;h.some(function(e,t){if(t&&e[i]>h[t-1][i])return d=!0});var p=100/h.length;return e.data=d&&!c?h.slice().reverse().map(function(e,t){return{name:e[n],value:(t+1)*p,realValue:e[i]}}):h.map(function(e){return{name:e[n],value:e[i],realValue:e[i]}}),o&&(e.sort="ascending"),a&&(e.label=a),s&&(e.labelLine=s),l&&(e.itemStyle=l),e}({dimension:c,metrics:i,rows:l,sequence:h,ascending:p,label:f,labelLine:m,itemStyle:g,filterZero:v,useDefaultOrder:y})}}lr=Object.assign({},Di,{name:"VeFunnel",data:function(){return this.chartHandler=Pl,{}}}),n(350);function El(e,t,n,i){var r=void 0===(c=n.dataType)?{}:c,o=void 0===(h=n.legendName)?{}:h,a=void 0===(d=n.labelMap)?{}:d,s=void 0===(p=n.dimension)?e[0]:p,l=void 0===(f=n.digit)?2:f,u=n.label,c=n.itemStyle,h=n.lineStyle,d=n.areaStyle,p=i.tooltipVisible,f=i.legendVisible,i=e.slice();n.metrics?i=n.metrics:i.splice(e.indexOf(s),1);var m,g,v,y,x,b,_,w,C,S,A,M,T,f=f&&(m=s,g=o,{data:t.map(function(e){return e[m]}),formatter:function(e){return null!=g[e]?g[e]:e}}),o=(v=i,y=a,o={indicator:[],shape:"circle",splitNumber:5},x={},t.forEach(function(n){v.forEach(function(e){var t=null!=y[e]?y[e]:e;x[t]?x[t].push(n[e]):x[t]=[n[e]]})}),o.indicator=Object.keys(x).map(function(e){return{name:e,max:Math.max.apply(null,x[e])}}),o);return{legend:f,tooltip:p&&(b=r,_=l,w=[],C=[],o.indicator.map(function(e,t){w[t]=b[e.name],C[t]=e.name}),{formatter:function(e){var n=[];return n.push(Ps(e.color)),n.push(e.name+"<br />"),e.data.value.forEach(function(e,t){n.push(C[t]+": "),n.push(cl(e,w[t],_)+"<br />")}),n.join("")}}),radar:o,series:(u=(i={rows:t,dimension:s,metrics:i,radar:o,label:u,itemStyle:c,lineStyle:h,labelMap:a,areaStyle:d}).rows,S=i.dimension,A=i.metrics,c=i.radar,h=i.label,a=i.itemStyle,d=i.lineStyle,M=i.labelMap,i=i.areaStyle,T={},c.indicator.forEach(function(e,t){e=e.name;T[e]=t}),u=u.map(function(n){var i={value:[],name:n[S]};return Object.keys(n).forEach(function(e){var t;~A.indexOf(e)&&(t=null!=M[e]?T[M[e]]:T[e],i.value[t]=n[e])}),i}),u={name:S,type:"radar",data:u},h&&(u.label=h),a&&(u.itemStyle=a),d&&(u.lineStyle=d),i&&(u.areaStyle=i),[u])}}var Sr=Object.assign({},Di,{name:"VeRadar",data:function(){return this.chartHandler=El,{}}}),Ir=Object.assign({},Di,{name:"VeChart",data:function(){return this.chartLib={bar:_l,histogram:wl,line:kl,pie:Ol,ring:Nl,funnel:Pl,radar:El,waterfall:Ll},this.chartHandler=this.chartLib[this.settings.type],{}}}),Hl=(n(208),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e});function zl(e,t,n){"object"===(void 0===e?"undefined":Hl(e))?t[n]=e:e&&(t[n]={normal:{show:!0},emphasis:{show:!0}})}function Rl(e,t){var n=e._once,i=e.registerSign,r=e.beforeRegisterMap,o=e.beforeRegisterMapOnce,a=e.registerSignOnce,s=e.position,e=e.specialAreas;n[i]||(r&&(t=r(t)),o&&!n[a]&&(n[a]=!0,t=o(t)),n[i]=!0,Sl.a.registerMap(s,t,e))}function jl(e,t,n,i){var r=void 0===(_=n.position)?"china":_,o=void 0!==(w=n.selectData)&&w,a=n.selectedMode,s=void 0===(C=n.label)||C,l=void 0===(T=n.dataType)?{}:T,u=void 0===(S=n.digit)?2:S,c=void 0===(k=n.dimension)?e[0]:k,h=n.roam,d=n.center,p=n.aspectScale,f=n.boundingCoords,m=n.zoom,g=n.scaleLimit,v=void 0===(A=n.legendName)?{}:A,y=void 0===(M=n.labelMap)?{}:M,x=n.mapGrid,b=n.itemStyle,_=n.positionJsonLink,w=n.beforeRegisterMap,C=n.beforeRegisterMapOnce,S=void 0===(T=n.mapURLProfix)?"https://unpkg.com/echarts@3.6.2/map/json/":T,A=void 0===(k=n.specialAreas)?{}:k,M=n.mapOrigin,T=e.slice();n.metrics?T=n.metrics:T.splice(e.indexOf(c),1);var k=i.tooltipVisible,n=i.legendVisible,e=i.color,i=i._once,D={};t.forEach(function(e){D[e[c]]=e});var I,O,N,L,P,E,H,z,R,j,B,F,V,$,Y,W,X,G,U,q,Z,K,Q,J,ee=k&&(I=l,O=u,N=D,L=T,P=e,E=y,{formatter:function(i){var r=[];return i.name?(r.push(i.name+"<br>"),L.forEach(function(e,t){var n=null!=E[e]?E[e]:e;r.push(Ps(P[t])+" "+n+" : "),N[i.name]?r.push(cl(N[i.name][e],I[e],O)):r.push("-"),r.push("<br>")}),r.join(" ")):""}}),te=n&&(v=(n={metrics:T,legendName:v,labelMap:y}).metrics,H=n.legendName,z=n.labelMap,H||z?{data:z?v.map(function(e){return null==z[e]?e:z[e]}):v,formatter:function(e){return null!=H[e]?H[e]:e}}:{data:v}),ne=(g=(y={position:r,selectData:o,label:s,itemStyle:b,dimension:c,metrics:T,rows:t,selectedMode:a,roam:h,center:d,aspectScale:p,boundingCoords:f,zoom:m,labelMap:y,scaleLimit:g,mapGrid:x}).position,R=y.selectData,j=y.dimension,x=y.metrics,B=y.rows,F=y.label,V=y.itemStyle,$=y.selectedMode,Y=y.roam,W=y.center,X=y.aspectScale,G=y.boundingCoords,U=y.zoom,q=y.labelMap,Z=y.scaleLimit,K=y.mapGrid,Q=[],J={type:"map",mapType:g},x.forEach(function(t){var n=Object.assign({name:null!=q[t]?q[t]:t,data:[],selectedMode:$,roam:Y,center:W,aspectScale:X,boundingCoords:G,zoom:U,scaleLimit:Z},J);K&&Object.keys(K).forEach(function(e){n[e]=K[e]}),zl(V,n,"itemStyle"),zl(F,n,"label"),B.forEach(function(e){n.data.push({name:e[j],value:e[t],selected:R})}),Q.push(n)}),Q),ie={_once:i,beforeRegisterMap:w,beforeRegisterMapOnce:C,registerSign:"MAP_REGISTER_"+r,registerSignOnce:"ONCE_MAP_REGISTER_"+r,position:r,specialAreas:A};return M?(Rl(ie,M),{series:ne,tooltip:ee,legend:te}):sl({position:r,positionJsonLink:_,beforeRegisterMapOnce:C,mapURLProfix:S}).then(function(e){return Rl(ie,e),{series:ne,tooltip:ee,legend:te}})}function Bl(e,t,n,i){var r=n.key,o=n.v,a=n.bmap,s=n.useOuterMap,n=i._once,i="bmap_register";return r||s||console.warn("settings.key must be a string."),n[i]?{}:(n[i]=!0,s?{bmap:a}:ll(r,o).then(function(e){return{bmap:a}}))}function Fl(e,t,n,i){var r=n.key,o=n.v,a=n.amap,s=n.useOuterMap,n=i._once,i="amap_register";return r||s||console.warn("settings.key must be a string."),n[i]?{}:(n[i]=!0,s?{amap:a}:ul(r,o).then(function(e){return{amap:a}}))}Vr=Object.assign({},Di,{name:"VeMap",data:function(){return this.chartHandler=jl,{}}}),n(354),_r=Object.assign({},Di,{name:"VeBmap",data:function(){return this.chartHandler=Bl,{}}}),n(773),Tr=Object.assign({},Di,{name:"VeAmap",data:function(){return this.chartHandler=Fl,{}}}),n(367);function Vl(e,t,n,i){var r=n.links,o=void 0===(h=n.dimension)?e[0]:h,a=void 0===(d=n.metrics)?e[1]:d,s=void 0===(u=n.dataType)?["normal","normal"]:u,l=void 0===(c=n.digit)?2:c,e=void 0!==(h=n.valueFull)&&h,u=void 0!==(d=n.useDataValue)&&d,c=n.label,h=n.itemStyle,d=n.lineStyle;if(r){var p,f,m,g,v,y,n=s[0],s=s[1];return{tooltip:(p=(l={itemDataType:n,linksDataType:s,digit:l}).itemDataType,f=l.linksDataType,m=l.digit,{trigger:"item",formatter:function(e){var t=[],n=e.name,i=e.data,r=e.value,e=e.color;return t.push(Ps(e)),t.push(n+" : "),i&&i.source?t.push(cl(r,f,m)+"<br />"):t.push(cl(r,p,m)+"<br />"),t.join("")}}),series:(r=(a={rows:t,dimension:o,metrics:a,links:r,valueFull:e,useDataValue:u,label:c,itemStyle:h,lineStyle:d}).rows,g=a.dimension,v=a.metrics,e=a.links,u=a.valueFull,c=a.useDataValue,h=a.label,d=a.itemStyle,a=a.lineStyle,y={},e={type:"sankey",data:r.map(function(e){return y[e[g]]=e[v],{name:e[g],value:e[v]}}),links:c?e.map(function(e){return Object.assign({},e,{value:y[e.target]})}):u?e:e.map(function(e){return null==e.value?Object.assign({},e,{value:y[e.target]}):e})},h&&(e.label=h),d&&(e.itemStyle=d),a&&(e.lineStyle=a),[e])}}console.warn("links is needed in settings!")}Nr=Object.assign({},Di,{name:"VeSankey",data:function(){return this.chartHandler=Vl,{}}}),n(373),n(226);function $l(e,t){var n=[];return e.forEach(function(e){~n.indexOf(e[t])||n.push(e[t])}),n}function Yl(e){var t=e.rows,o=e.innerXAxisList,a=e.innerYAxisList,s=e.xDim,l=e.yDim,u=e.metrics,n=e.type,c=e.extraMetrics;return"cartesian"===n?t.map(function(t){var e=o.indexOf(t[s]),n=a.indexOf(t[l]),i=u?t[u]:1,r=c.map(function(e){return t[e]||"-"});return{value:[e,n,i].concat(r)}}):t.map(function(e){var t=u?e[u]:1;return{value:[e[s],e[l],t]}})}function Wl(e,t){return{type:"category",data:e,name:t,nameLocation:"end",splitArea:{show:!0}}}function Xl(e,t,n,i){var r=void 0===(T=n.type)?"cartesian":T,o=n.xAxisList,a=n.yAxisList,s=void 0===(w=n.dimension)?[e[0],e[1]]:w,l=void 0===(C=n.metrics)?e[2]:C,u=void 0===(S=n.dataType)?"normal":S,c=n.min,h=n.max,d=n.digit,p=n.bmap,f=n.amap,m=n.geo,g=n.key,v=void 0===(A=n.v)?"2.0":A,y=n.position,x=n.positionJsonLink,b=n.beforeRegisterMap,_=void 0===(M=n.pointSize)?10:M,w=void 0===(T=n.blurSize)?5:T,C=n.heatColor,S=n.yAxisName,A=n.xAxisName,M=n.beforeRegisterMapOnce,T=void 0===(T=n.mapURLProfix)?"https://unpkg.com/echarts@3.6.2/map/json/":T,k=void 0===(n=n.specialAreas)?{}:n,n=i.tooltipVisible,i=o,o=a,a=[],D=[],I=s.concat([l]);e.forEach(function(e){~I.indexOf(e)||D.push(e)}),a=Yl("cartesian"===r?{rows:t,innerXAxisList:i=!i||!i.length?$l(t,s[0]):i,innerYAxisList:o=!o||!o.length?$l(t,s[1]):o,xDim:s[0],yDim:s[1],metrics:l,type:r,extraMetrics:D}:{rows:t,xDim:s[0],yDim:s[1],metrics:l,type:r,extraMetrics:D}),(s=l?t.map(function(e){return e[l]}):[0,5]).length||(s=[0]);var O,N,L,P,E,H,t=c||Math.min.apply(null,s),c=h||Math.max.apply(null,s),h=Wl(i,A),s=Wl(o,S),t=(a=(S={innerMin:t,innerMax:c,type:r,heatColor:C,series:A=[{type:"heatmap",data:{chartData:a}.chartData}]}).innerMin,t=S.innerMax,c=S.type,C=S.heatColor,S=S.series,a={min:a,max:t,calculable:!0},t=null,"map"===c?(t={orient:"vertical",left:0,bottom:0,inRange:{color:C||Ns}},S[0].data.length||(t.show=!1)):t="bmap"===c||"amap"===c?{show:!1,orient:"vertical",left:0,bottom:0,inRange:{color:C||Ls}}:{orient:"horizontal",left:"center",bottom:10,dimension:2,inRange:C&&{color:C}},Object.assign(a,t)),z=n&&(O=(z={dataType:u,innerXAxisList:i,innerYAxisList:o,digit:d,extraMetrics:D,metrics:l}).dataType,N=z.innerXAxisList,L=z.innerYAxisList,P=z.digit,E=z.extraMetrics,H=z.metrics,{trigger:"item",formatter:function(e){var t=e.color,n=e.data.value,i=n[0],r=n[1],e=n[2],o=n.slice(3),a=[];return a.push(N[i]+" ~ "+L[r]+"<br>"),E.forEach(function(e,t){a.push(e+": "+o[t]+"<br>")}),a.push(Ps(t)+" "+H+": "+cl(e,O,P)+"<br>"),a.join("")}}),R={visualMap:t,series:A};return"bmap"===r?(Object.assign(R.series[0],{coordinateSystem:"bmap",pointSize:_,blurSize:w}),ll(g,v).then(function(e){return Object.assign({bmap:p},R)})):"map"===r?(R.series[0].coordinateSystem="geo",sl({position:y,positionJsonLink:x,beforeRegisterMapOnce:M,mapURLProfix:T}).then(function(e){var t=Object.assign({map:y},m);return b&&(e=b(e)),Sl.a.registerMap(y,e,k),Object.assign({geo:t},R)})):"amap"===r?(Object.assign(R.series[0],{coordinateSystem:"amap",pointSize:_,blurSize:w}),ul(g,v).then(function(e){return Object.assign({amap:f},R)})):Object.assign({xAxis:h,yAxis:s,tooltip:z},R)}Wr=Object.assign({},Di,{name:"VeHeatmap",data:function(){return this.chartHandler=Xl,{}}}),n(355);function Gl(e,t){var i=t.labelMap,r=t.columns,o=t.dataType,a=t.digit,s=[],n=e.color,t=e.seriesName,e=e.data.value;return s.push(Ps(n)+" "+t+"<br>"),e.forEach(function(e,t){var n=i[r[t]]||r[t],t=isNaN(e)?e:cl(e,o[r[t]],a);s.push(n+": "+t+"<br>")}),s.join("")}function Ul(e,t,n,i){var r=void 0===(d=n.dimension)?e[0]:d,o=void 0===(_=n.metrics)?[e[1],e[2]]:_,a=void 0===(p=n.dataType)?{}:p,s=void 0===(w=n.xAxisType)?"category":w,l=n.xAxisName,u=n.yAxisName,c=void 0===(f=n.digit)?2:f,h=void 0===(C=n.legendName)?{}:C,d=void 0===(m=n.labelMap)?{}:m,p=void 0===(_=n.tooltipTrigger)?"item":_,f=void 0===(w=n.axisVisible)||w,m=void 0===(C=n.symbolSizeMax)?50:C,g=n.symbol,v=n.symbolSize,y=n.symbolRotate,x=n.symbolOffset,b=n.cursor,_=n.min,w=n.max,C=n.scale,S=n.label,A=n.itemStyle;if(nl(t)){var M=Object.assign({},n,{xAxisName:l?[l]:void 0,yAxisName:u?[u]:void 0,scale:C?[C]:void 0,min:_?[_]:void 0,max:w?[w]:void 0,dimension:r?[r]:void 0}),T=kl(e,t,M,i);return T&&T.series?(T.series.forEach(function(e){Object.assign(e,{type:"scatter",symbol:g,symbolSize:v||10,symbolRotate:y,symbolOffset:x,cursor:b,label:S,itemStyle:A})}),T):{}}var k,D,I,O,N,L,P,E,M=i.tooltipVisible,T=i.legendVisible,i=Object.keys(t);return{legend:T&&(k=h,{data:i,formatter:function(e){return null!=k[e]?k[e]:e}}),tooltip:M&&{trigger:(D={tooltipTrigger:p,labelMap:d,columns:e,dataType:a,digit:c}).tooltipTrigger,formatter:function(e){return nl(e)?e.map(function(e){return Gl(e,D)}).join(""):Gl(e,D)}},xAxis:(p=(M={xAxisName:l,axisVisible:f,xAxisType:s,dataLabels:i,dimension:r,rows:t}).xAxisName,d=M.axisVisible,l=M.xAxisType,I=M.rows,s=M.dataLabels,O=M.dimension,N=[],s.forEach(function(e){I[e].forEach(function(e){e=e[O];e&&!~N.indexOf(e)&&N.push(e)})}),[{type:l,show:d,name:p,data:N}]),yAxis:(u=(C={min:_,max:w,scale:C,yAxisName:u,dataType:a,metrics:o,digit:c,axisVisible:f}).min,a=C.max,c=C.scale,f=C.yAxisName,L=C.dataType,P=C.metrics,E=C.digit,{type:"value",show:C.axisVisible,scale:c,min:u,max:a,axisTick:{show:!1},name:f,axisLabel:{formatter:function(e){return cl(e,L[P[0]],E)}}}),series:function(e){var t=e.rows,n=e.dataLabels,i=e.columns,r=e.metrics,o=e.dimension,a=e.label,s=e.itemStyle,l=e.symbol,u=e.symbolSizeMax,c=e.symbolSize,h=e.symbolRotate,d=e.symbolOffset,p=e.cursor,f=i.filter(function(e){return!~r.indexOf(e)&&e!==o}),m=[];n.forEach(function(e){t[e].forEach(function(e){m.push(e[r[1]])})});var g=Math.max.apply(null,m),v=[];return n.forEach(function(e){var i=[];t[e].forEach(function(t){var n={value:[]};n.value.push(t[o],t[r[0]],t[r[1]]),f.forEach(function(e){n.value.push(t[e])}),n.symbolSize=c||t[r[1]]/g*u,i.push(n)}),v.push({type:"scatter",data:i,name:e,label:a,itemStyle:s,symbol:l,symbolRotate:h,symbolOffset:d,cursor:p})}),v}({rows:t,dataLabels:i,columns:e,metrics:o,dimension:r,label:S,itemStyle:A,symbol:g,symbolSizeMax:m,symbolSize:v,symbolRotate:y,symbolOffset:x,cursor:b})}}var Gr=Object.assign({},Di,{name:"VeScatter",data:function(){return this.chartHandler=Ul,{}}}),ql=(n(369),n(379),[5,10,20,30]),Zl={show:!1};function Kl(e){var n=e.values,t=e.volumes,i=e.upColor,r=e.downColor,o=e.showMA,a=e.MA,s=e.showVol,l=e.labelMap,u=e.digit,e=e.itemStyle,c={normal:{opacity:.5}},h=[{name:null==l["日K"]?"日K":l["日K"],type:"candlestick",data:n,itemStyle:e||{normal:{color:i,color0:r,borderColor:null,borderColor0:null}}}];return o&&a.forEach(function(e){var r,o,a,s,t="MA"+e;h.push({name:null==l[t]?t:l[t],data:(r=e,a=u,s=[],(o=n).forEach(function(e,t){if(t<r)s.push("-");else{for(var n=0,i=0;i<r;i++)n+=o[t-i][1];s.push(+(n/r).toFixed(a))}}),s),type:"line",lineStyle:c,smooth:!0})}),s&&h.push({name:"Volume",type:"bar",xAxisIndex:1,yAxisIndex:1,data:t}),h}function Ql(i,e,t,n){var r=void 0===(d=t.dimension)?i[0]:d,o=void 0===(g=t.metrics)?i.slice(1,6):g,a=void 0===(p=t.digit)?2:p,s=t.itemStyle,l=void 0===(x=t.labelMap)?{}:x,u=void 0===(f=t.legendName)?{}:f,c=void 0===(v=t.MA)?ql:v,h=void 0!==(m=t.showMA)&&m,d=void 0!==(y=t.showVol)&&y,p=void 0!==(g=t.showDataZoom)&&g,f=void 0===(x=t.downColor)?"#ec0000":x,m=void 0===(v=t.upColor)?"#00da3c":v,g=void 0===(y=t.start)?50:y,v=void 0===(x=t.end)?100:x,y=t.dataType,x=n.tooltipVisible,t=n.legendVisible,n=nl(e[0]),b=[],_=[],w=[],C=o.slice(0,4),S=o[4];n?e.forEach(function(t){var n=[];b.push(t[i.indexOf(r)]),C.forEach(function(e){n.push(t[i.indexOf(e)])}),_.push(n),S&&w.push(t[i.indexOf(S)])}):e.forEach(function(t,e){var n,i=[];b.push(t[r]),C.forEach(function(e){i.push(t[e])}),_.push(i),S&&(n=t[o[0]]>t[o[1]]?1:-1,w.push([e,t[S],n]))});var A,M,T,k,D,I,O,N,L,P,E=t&&(E=(O={showMA:h,MA:c,legendName:u,labelMap:l}).showMA,H=O.MA,A=O.legendName,M=O.labelMap,O=["日K"],E&&(O=O.concat(H.map(function(e){return"MA"+e}))),{data:O=M?O.map(function(e){return null==M[e]?e:M[e]}):O,formatter:function(e){return null!=A[e]?A[e]:e}}),H=x&&(T=(N={metrics:o,dataType:y,digit:a,labelMap:l}).metrics,k=N.dataType,D=N.digit,I=N.labelMap,{trigger:"axis",axisPointer:{type:"cross"},position:function(e,t,n,i,r){var o={top:10};return o[e[0]<r.viewSize[0]/2?"right":"left"]=60,o},formatter:function(e){var r=[];return r.push(e[0].axisValue+"<br>"),e.forEach(function(e){var n=e.data,t=e.seriesName,i=e.componentSubType,e=e.color,t=null==I[t]?t:I[t];r.push(Ps(e)+" "+t+": "),"candlestick"===i?(r.push("<br>"),T.slice(0,4).forEach(function(e,t){e=null!=I[e]?I[e]:e,t=cl(n[t+1],k,D);r.push("- "+e+": "+t+"<br>")})):"line"===i?(t=cl(n,k,D),r.push(t+"<br>")):"bar"===i&&(i=cl(n[1],k,D),r.push(i+"<br>"))}),r.join("")}}),z=d&&(x=(O={downColor:f,upColor:m,MA:c,showMA:h}).downColor,z=O.upColor,N=O.MA,{show:!1,seriesIndex:O.showMA?1+N.length:1,dimension:2,pieces:[{value:1,color:x},{value:-1,color:z}]}),R=p&&(v=(R={start:g,end:v}).start,R=R.end,[{type:"inside",xAxisIndex:[0,1],start:v,end:R},{show:!0,xAxisIndex:[0,1],type:"slider",top:"85%",start:v,end:R}]);return{legend:E,tooltip:H,visualMap:z,grid:[{left:"10%",right:"8%",top:"10%",height:{showVol:d}.showVol?"50%":"65%",containLabel:!1},{left:"10%",right:"8%",top:"65%",height:"16%",containLabel:!1}],xAxis:[{type:"category",data:z=(H={dims:b}).dims,scale:!0,boundaryGap:!1,axisLine:H={onZero:!1},splitLine:Zl,min:"dataMin",max:"dataMax"},{type:"category",gridIndex:1,data:z,scale:!0,boundaryGap:!1,axisLine:H,axisTick:Zl,splitLine:Zl,axisLabel:Zl,min:"dataMin",max:"dataMax"}],yAxis:(L=(y={dataType:y,digit:a}).dataType,P=y.digit,[{scale:!0,axisTick:Zl,axisLabel:{formatter:function(e){return cl(e,L,P)}}},{scale:!0,gridIndex:1,splitNumber:2,axisLine:Zl,axisTick:Zl,splitLine:Zl,axisLabel:Zl}]),dataZoom:R,series:Kl({values:_,volumes:w,upColor:m,downColor:f,showMA:h,MA:c,showVol:d,labelMap:l,digit:a,itemStyle:s}),axisPointer:{link:{xAxisIndex:"all"}}}}L=Object.assign({},Di,{name:"VeCandle",data:function(){return this.chartHandler=Ql,{}}}),n(363);function Jl(e,t,n,i){var r,o,a,s,l,u,c,h,d,p,f=void 0===(v=n.dimension)?e[0]:v,m=void 0===(y=n.metrics)?e[1]:y,g=n.digit,v=void 0===(x=n.dataType)?{}:x,e=n.labelMap,y=n.seriesMap,x=n.dataName,n=i.tooltipFormatter;return{tooltip:i.tooltipVisible&&(r=(n={tooltipFormatter:n,dataType:v}).tooltipFormatter,o=n.dataType,a=n.digit,{formatter:function(e){var t=e.seriesName,n=e.data,i=n.value,e=n.name;if(r)return r.apply(null,arguments);n=[];return n.push(t+": "),n.push(cl(i,o[t],a)+" "+e),n.join("")}}),series:(x=(y={rows:t,dimension:f,metrics:m,digit:void 0===g?2:g,dataType:v,labelMap:void 0===e?{}:e,seriesMap:void 0===y?{}:y,dataName:void 0===x?{}:x}).rows,s=y.dimension,l=y.metrics,u=y.digit,c=y.dataType,h=y.labelMap,d=y.seriesMap,p=y.dataName,x.map(function(e){var t=e[s],n=d[t],i={type:"gauge",name:null!=h[t]?h[t]:t,data:[{name:p[t]||"",value:e[l]}],detail:{formatter:function(e){return cl(e,c[t],u)}},axisLabel:{formatter:function(e){return cl(e,c[t],u)}}};return n&&Object.keys(n).forEach(function(e){tl(i[e])?Object.assign(i[e],n[e]):i[e]=n[e]}),i}))}}i=Object.assign({},Di,{name:"VeGauge",data:function(){return this.chartHandler=Jl,{}}}),n(356);function eu(e,t,n,i){var r,o,a,s,l,u=void 0===(c=n.dimension)?e[0]:c,c=void 0===(h=n.metrics)?e[1]:h,e=n.seriesMap,h=i.legendVisible,n=i.tooltipFormatter,i=i.tooltipVisible;return{series:(r=(c={dimension:u,metrics:c,rows:t,seriesMap:void 0===e?{}:e}).dimension,o=c.metrics,e=c.rows,a=c.seriesMap,s=[],e.forEach(function(e){var t=e[r],n=a[t],i={type:"tree",name:e[r],data:e[o]};a[e[r]]&&Object.keys(n).forEach(function(e){tl(i[e])?Object.assign(i[e],n[e]):i[e]=n[e]}),s.push(i)}),s),legend:h&&1<t.length&&(l=(t={dimension:u,rows:t}).dimension,{data:t.rows.map(function(e){return e[l]})}),tooltip:i&&{trigger:"item",triggerOn:"mousemove",formatter:{tooltipFormatter:n}.tooltipFormatter}}}h=Object.assign({},Di,{name:"VeTree",data:function(){return this.chartHandler=eu,{}}}),n(775);function tu(e,t,n,i){var r,o,a,s,l,u,c,h,d,p=void 0===(v=n.dimension)?e[0]:v,f=void 0===(y=n.metrics)?e[1]:y,m=n.seriesMap,g=n.dataType,v=n.digit,y=n.wave,n=i.tooltipVisible,i=i.tooltipFormatter;return{tooltip:n&&(r=(v={tooltipFormatter:i,dataType:void 0===g?"percent":g,digit:void 0===v?2:v}).tooltipFormatter,o=v.dataType,a=v.digit,{show:!0,formatter:function(e){var t=e.seriesName,e=e.value;return r?r.apply(null,arguments):[t+": ",cl(e,o,a)].join("")}}),series:(s=(m={rows:t,columns:e,dimension:p,metrics:f,seriesMap:void 0===m?{}:m,wave:void 0===y?[]:y}).dimension,l=m.metrics,u=m.seriesMap,y=m.rows,c=m.wave,h=c,d=nl(u)?u.length:0,y.slice().map(function(e,t){var n=[],i={type:"liquidFill"},r=e[s],o=Number(e[l]),e={};return nl(u)?e=u[t]||u[d-1]:tl(u[r])&&(e=u[r]),nl(c)&&nl(c[0])&&(h=nl(c[t])?c[t]:c[c.length-1]),n.push({value:o}),h&&h.length&&(n=n.concat(h.map(function(e){return{value:e}}))),Object.assign(i,{data:n,name:r},e)}))}}O=Object.assign({},Di,{name:"VeLiquidfill",data:function(){return this.chartHandler=tu,{}}}),n(780);function nu(e,t,n,i){var r,o,a,s,l,u=void 0===(d=n.dimension)?e[0]:d,c=void 0===(p=n.metrics)?e[1]:p,h=n.color,d=n.sizeMax,e=n.sizeMin,p=n.shape,n=i.tooltipVisible,i=i.tooltipFormatter;return{series:(r=(h={dimension:u,metrics:c,rows:t,color:void 0===h?"":h,sizeMax:void 0===d?60:d,sizeMin:void 0===e?12:e,shape:void 0===p?"circle":p}).dimension,o=h.metrics,d=h.rows,a=h.color,e=h.sizeMax,p=h.sizeMin,h=h.shape,e={type:"wordCloud",textStyle:{normal:{color:!nl(a)&&a?a:function(){return"rgb("+[Math.round(160*Math.random()),Math.round(160*Math.random()),Math.round(160*Math.random())].join(",")+")"}}},shape:h,sizeRange:[p,e]},s=nl(a)?a.length:0,d=d.slice().map(function(e){e={name:e[r],value:e[o]};return 0<s&&(e.textStyle={normal:{color:a[Math.floor(Math.random()*s)]}}),e}),e.data=d,[e]),tooltip:n&&(l={tooltipFormatter:i}.tooltipFormatter,{show:!0,formatter:function(e){var t=e.data,n=t.name,t=t.value;return l?l.apply(null,e):n+": "+t}})}}var X=Object.assign({},Di,{name:"VeWordcloud",data:function(){return this.chartHandler=nu,{}}}),E={name:"ve-graph",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},options:{type:Object,default:null}},data:function(){return{charts:null}},mounted:function(){this.renderCharts()},methods:{renderCharts:function(){for(var e=Sl.a.init(this.$refs.veGraphContainer),t=[],n=0;n<2;n++)t[n]={name:"类目"+n};var i=this.options||{title:{text:"拓扑图"},tooltip:{formatter:function(e){return e.data.des}},toolbox:{show:!0,feature:{mark:{show:!0},restore:{show:!0},saveAsImage:{show:!0}}},legend:[{data:t.map(function(e){return e.name})}],series:[{type:"graph",layout:"force",symbolSize:40,roam:!0,edgeSymbol:["circle","arrow"],edgeSymbolSize:[2,10],edgeLabel:{normal:{textStyle:{fontSize:20}}},force:{repulsion:2500,edgeLength:[10,50]},draggable:!0,lineStyle:{normal:{width:2,color:"#4b565b"}},label:{normal:{show:!0,textStyle:{}}},data:[{name:"node01",des:"nodedes01",symbolSize:70,category:0},{name:"node02",des:"nodedes02",symbolSize:50,category:1},{name:"node03",des:"nodedes3",symbolSize:50,category:1},{name:"node04",des:"nodedes04",symbolSize:50,category:1},{name:"node05",des:"nodedes05",symbolSize:50,category:1}],links:[{source:"node01",target:"node02",name:"link01",des:"link01des"},{source:"node01",target:"node03",name:"link02",des:"link02des"},{source:"node01",target:"node04",name:"link03",des:"link03des"},{source:"node01",target:"node05",name:"link04",des:"link05des"}],categories:t}]};e.setOption(i),this.charts=e}},watch:{options:function(){this.renderCharts()}},render:function(){var e=arguments[0];return e("div",{class:"v-charts-graph-wrapper",style:{width:this.width,height:this.height}},[e("div",{class:"v-charts-graph-container",ref:"veGraphContainer",style:{width:this.width,height:this.height}})])}},d=n(53),iu=n.n(d),ru=n(74),ou=void 0,au=void 0,su=void 0,lu=[0,0],uu=void 0,cu=void 0,hu=void 0,du=[],pu=[],fu=void 0,G={name:"ve-gantt",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},options:{type:Object,default:null}},data:function(){return{myChart:null}},mounted:function(){this.myChart=iu.a.init(this.$refs.ganttContainer);var e;this.myChart.setOption(e=this.makeOption()),this.initDrag(),e&&this.myChart.setOption(e)},methods:{initDrag:function(){var e,t,n,i=this;function r(){e(n),t=requestAnimationFrame(r)}function o(){fu.stop(),au&&(this.myChart.getZr().remove(au),au=null),su&&(this.myChart.getZr().remove(su),su=null),hu=cu=null}function a(e,t,n,i){var r=this.myChart.convertToPixel("grid",[t.timeArrival,t.categoryIndex]),o=this.myChart.convertToPixel("grid",[t.timeDeparture,t.categoryIndex])[0]-r[0],t=.6*Math.abs(this.myChart.convertToPixel("grid",[0,0])[1]-this.myChart.convertToPixel("grid",[0,1])[1]);return e||(e=new iu.a.graphic.Rect({shape:{x:0,y:0,width:0,height:0},style:n,z:i}),this.myChart.getZr().add(e)),e.attr({shape:{x:0,y:0,width:o,height:t},position:[r[0],r[1]-t]}),e}function s(e,t){var n=e-(t[0]+30),t=e-(t[1]-30);return n*t<=0?0:n<0?n:t}e=function(e){var t=this.myChart.getOption(),n=t.dataZoom[1],i=t.dataZoom[3],t=[];function r(e,t,n,i,r){var o;0!==r&&(o=i-n,n+=r=.2*(r/Math.abs(r)),(n=100<(i+=r)?(i=100)-o:n)<0&&(i=(n=0)+o),e.push({dataZoomId:t,start:n,end:i}))}r(t,"insideX",n.start,n.end,e.cursorDistX),r(t,"insideY",i.start,i.end,-e.cursorDistY),t.length&&this.myChart.dispatchAction({type:"dataZoom",batch:t})},n=t=void 0,e=iu.a.throttle(e,30),fu={start:function(e){n=e,null==t&&r()},stop:function(){null!=t&&cancelAnimationFrame(t),t=n=null}},this.myChart.on("mousedown",function(e){ou&&e&&null!=e.seriesIndex&&(cu={dataIndex:e.dataIndex,categoryIndex:e.value[0],timeArrival:e.value[1],timeDeparture:e.value[2]},au=a(au,cu,{lineWidth:2,fill:"rgba(255,0,0,0.1)",stroke:"rgba(255,0,0,0.8)",lineDash:[6,3]},100),lu=[au.position[0]-e.event.offsetX,au.position[1]-e.event.offsetY],uu=cu.timeDeparture-cu.timeArrival)}),this.myChart.getZr().on("mousemove",function(e){var t;au&&(t=e.offsetX,e=e.offsetY,au.attr("position",[lu[0]+t,lu[1]+e]),function(){var e=au.shape.x+au.position[0],t=au.shape.y+au.position[1],t=this.myChart.convertFromPixel("grid",[e,t]);t&&(hu={categoryIndex:Math.floor(t[1]),timeArrival:t[0],timeDeparture:t[0]+uu},su=a(su,hu,{fill:"rgba(0,0,0,0.4)"},99))}(),function(e,t){e=s(e,du),t=s(t,pu);0!==e||0!==t?fu.start({cursorDistX:e,cursorDistY:t}):fu.stop()}(t,e))}),this.myChart.getZr().on("mouseup",function(){au&&hu&&(!function(){for(var e=ru.flight.data,t=e[cu.dataIndex],n=0;n<e.length;n++){var i=e[n];if(i!==t&&hu.categoryIndex===i[0]&&hu.timeArrival<i[2]&&hu.timeDeparture>i[1])return void alert("Conflict! Find a free space to settle the bar!")}return t[0]=hu.categoryIndex,t[1]=hu.timeArrival,t[2]=hu.timeDeparture,!0}()||i.myChart.setOption({series:{id:"flightData",data:ru.flight.data}})),o()}),this.myChart.getZr().on("globalout",o)},onDragSwitchClick:function(e,t,n){ou=!ou,this.myChart.setOption({dataZoom:[{id:"insideX",disabled:ou},{id:"insideY",disabled:ou}]}),this.model.setIconStatus(n,ou?"emphasis":"normal")},clipRectByRect:function(e,t){return iu.a.graphic.clipRectByRect(t,{x:e.coordSys.x,y:e.coordSys.y,width:e.coordSys.width,height:e.coordSys.height})},renderAxisLabelItem:function(e,t){var n=t.coord([0,t.value(0)])[1];if(!(n<e.coordSys.y+5))return{type:"group",position:[10,n],children:[{type:"path",shape:{d:"M0,0 L0,-20 L30,-20 C42,-20 38,-1 50,-1 L70,-1 L70,0 Z",x:0,y:-20,width:90,height:20,layout:"cover"},style:{fill:"#368c6c"}},{type:"text",style:{x:24,y:-3,text:t.value(1),textVerticalAlign:"bottom",textAlign:"center",textFill:"#fff"}},{type:"text",style:{x:75,y:-2,textVerticalAlign:"bottom",textAlign:"center",text:t.value(2),textFill:"#000"}}]}},renderGanttItem:function(e,t){var n=t.value(0),i=t.coord([t.value(1),n]),r=t.coord([t.value(2),n]),o=e.coordSys;du[0]=o.x,du[1]=o.x+o.width,pu[0]=o.y,pu[1]=o.y+o.height;var a=r[0]-i[0],s=.6*t.size([0,1])[1],l=i[0],n=i[1]-s,o=t.value(3)+"",r=iu.a.format.getTextRect(o).width+40<a&&180<=l+a?o:"",i=this.clipRectByRect(e,{x:l,y:n,width:a,height:s}),o=this.clipRectByRect(e,{x:l,y:n,width:a/2,height:s}),s=this.clipRectByRect(e,{x:l,y:n,width:a,height:s});return{type:"group",children:[{type:"rect",ignore:!i,shape:i,style:t.style()},{type:"rect",ignore:!o&&!t.value(4),shape:o,style:t.style({fill:"#ddb30b"})},{type:"rect",ignore:!s,shape:s,style:t.style({fill:"transparent",stroke:"transparent",text:r,textFill:"#fff"})}]}},makeOption:function(){return{tooltip:{},animation:!1,toolbox:{left:20,top:0,itemSize:20,feature:{myDrag:{show:!0,title:"Make bars\ndraggable",icon:"path://M990.55 380.08 q11.69 0 19.88 8.19 q7.02 7.01 7.02 18.71 l0 480.65 q-1.17 43.27 -29.83 71.93 q-28.65 28.65 -71.92 29.82 l-813.96 0 q-43.27 -1.17 -72.5 -30.41 q-28.07 -28.07 -29.24 -71.34 l0 -785.89 q1.17 -43.27 29.24 -72.5 q29.23 -29.24 72.5 -29.24 l522.76 0 q11.7 0 18.71 7.02 q8.19 8.18 8.19 18.71 q0 11.69 -7.6 19.29 q-7.6 7.61 -19.3 7.61 l-518.08 0 q-22.22 1.17 -37.42 16.37 q-15.2 15.2 -15.2 37.42 l0 775.37 q0 23.39 15.2 38.59 q15.2 15.2 37.42 15.2 l804.6 0 q22.22 0 37.43 -15.2 q15.2 -15.2 16.37 -38.59 l0 -474.81 q0 -11.7 7.02 -18.71 q8.18 -8.19 18.71 -8.19 l0 0 ZM493.52 723.91 l-170.74 -170.75 l509.89 -509.89 q23.39 -23.39 56.13 -21.05 q32.75 1.17 59.65 26.9 l47.94 47.95 q25.73 26.89 27.49 59.64 q1.75 32.75 -21.64 57.3 l-508.72 509.9 l0 0 ZM870.09 80.69 l-56.13 56.14 l94.72 95.9 l56.14 -57.31 q8.19 -9.35 8.19 -21.05 q-1.17 -12.86 -10.53 -22.22 l-47.95 -49.12 q-10.52 -9.35 -23.39 -9.35 q-11.69 -1.17 -21.05 7.01 l0 0 ZM867.75 272.49 l-93.56 -95.9 l-380.08 380.08 l94.73 94.73 l378.91 -378.91 l0 0 ZM322.78 553.16 l38.59 39.77 l-33.92 125.13 l125.14 -33.92 l38.59 38.6 l-191.79 52.62 q-5.85 1.17 -12.28 0 q-6.44 -1.17 -11.11 -5.84 q-4.68 -4.68 -5.85 -11.7 q-2.34 -5.85 0 -11.69 l52.63 -192.97 l0 0 Z",onclick:this.onDragSwitchClick}}},title:{text:"甘特图示例",left:"center"},dataZoom:[{type:"slider",xAxisIndex:0,filterMode:"weakFilter",height:20,bottom:0,start:0,end:26,handleIcon:"path://M10.7,11.9H9.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.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z",handleSize:"80%",showDetail:!1},{type:"inside",id:"insideX",xAxisIndex:0,filterMode:"weakFilter",start:0,end:26,zoomOnMouseWheel:!1,moveOnMouseMove:!0},{type:"slider",yAxisIndex:0,zoomLock:!0,width:10,right:10,top:70,bottom:20,start:95,end:100,handleSize:0,showDetail:!1},{type:"inside",id:"insideY",yAxisIndex:0,start:95,end:100,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],grid:{show:!0,top:70,bottom:20,left:100,right:20,backgroundColor:"#fff",borderWidth:0},xAxis:{type:"time",position:"top",splitLine:{lineStyle:{color:["#E9EDFF"]}},axisLine:{show:!1},axisTick:{lineStyle:{color:"#929ABA"}},axisLabel:{color:"#929ABA",inside:!1,align:"center"}},yAxis:{axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},axisLabel:{show:!1},min:0,max:ru.parkingApron.data.length},series:[{id:"flightData",type:"custom",renderItem:this.renderGanttItem,dimensions:ru.flight.dimensions,encode:{x:[1,2],y:0,tooltip:[0,1,2]},data:ru.flight.data},{type:"custom",renderItem:this.renderAxisLabelItem,dimensions:ru.parkingApron.dimensions,encode:{x:-1,y:0},data:ru.parkingApron.data.map(function(e,t){return[t].concat(e)})}]}}},render:function(){var e=arguments[0];return e("div",{attrs:{className:"c-gantt-wrapper"},style:{width:this.width,height:this.height}},[e("div",{attrs:{className:"c-gantt-container"},ref:"ganttContainer",style:{width:this.width,height:this.height}})])}},Q=n(172),oe=n.n(Q);n(785);oe.a.name="m-button";ye=oe.a,we=n(173),Ie=n.n(we),n(792);Ie.a.name="m-cell";Re=Ie.a,Ve=n(269),st=n.n(Ve),n(793);st.a.name="m-cell-group";pt=st.a,St=n(270),Ht=n.n(St),n(795);Ht.a.name="m-calendar";Qt=Ht.a,l=n(271),$t=n.n(l),n(808);$t.a.name="m-cascader";Tt=$t.a,rn=n(272),Tn=n.n(rn),n(820);Tn.a.name="m-field";xi=Tn.a,a=n(112),wi=n.n(a),n(824);wi.a.name="m-popup";Oi=wi.a,Ei=n(273),Di=n.n(Ei),n(825);Di.a.name="m-picker";d=Di.a,Q=n(274),oe=n.n(Q),n(830);oe.a.name="m-number-keyboard";we=oe.a,Ie=n(275),Ve=n.n(Ie),n(835);Ve.a.name="m-password-input";st=Ve.a,St=n(276),Ht=n.n(St),n(837);Ht.a.name="m-form";l=Ht.a,$t=n(277),rn=n.n($t),n(838);rn.a.name="m-action-sheet";Tn=rn.a,a=n(278),wi=n.n(a),n(840);wi.a.Component.name="m-notify";Ei=wi.a,Di=n(279),Q=n.n(Di),n(843);Q.a.name="m-pull-refresh";oe=Q.a,Ie=n(280),Ve=n.n(Ie),n(845);Ve.a.name="m-swipe-cell";St=Ve.a,Ht=n(281),$t=n.n(Ht),n(848);$t.a.name="m-notice-bar";rn=$t.a,a=n(282),wi=n.n(a),n(850);wi.a.name="m-grid";Di=wi.a,Q=n(283),Ie=n.n(Q),n(852);Ie.a.name="m-grid-item";Ve=Ie.a,Ht=n(284),$t=n.n(Ht),n(854);$t.a.name="m-index-bar";a=$t.a,wi=n(174),Q=n.n(wi),n(856);Q.a.name="m-sidebar";Ie=Q.a,Ht=n(285),$t=n.n(Ht),n(857);$t.a.name="m-tree-select";wi=$t.a,Q=n(286),Ht=n.n(Q),n(859);Ht.a.name="m-card";$t=Ht.a,Q=n(176),Ht=n.n(Q),n(863);Ht.a.name="m-grid-item";Q=Ht.a,Ht=n(175),Ht=n.n(Ht),n(864);Ht.a.name="m-sidebar-item";var n=Ht.a,Ht={name:"TisBreadcrumbTree",props:{data:Array},data:function(){return{breadcrumbList:[]}},components:{TisBreadcrumb:Cr,TisBreadcrumbItem:Mr,TisTree:le},methods:{handleNodeClick:function(e,t){var n=this.handleBreadcrumbData(t,[]);this.breadcrumbList=n,this.$emit("node-click",e,t)},handleBreadcrumbData:function(e,t){return e.parent.parent?(t.unshift(e.data.label),this.handleBreadcrumbData(e.parent,t)):(t.unshift(e.data.label),t)}}},r=Object(r.a)(Ht,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("div",{staticClass:"tis-breadcrumb-tree"},[i("div",{staticClass:"tis-breadcrumb-tree-b"},[i("tis-breadcrumb",{attrs:{separator:"/"}},n._l(n.breadcrumbList,function(e,t){return i("tis-breadcrumb-item",{key:t},[n._v(n._s(e))])}),1)],1),i("div",{staticClass:"tis-breadcrumb-tree-t"},[i("tis-tree",{attrs:{data:n.data,"highlight-current":!0},on:{"node-click":n.handleNodeClick}})],1)])},[],!1,null,null,null).exports,mu=[Y,q,ee,se,ce,pe,Se,Ne,ze,Be,u.a,Ye,Ge,Ke,et,it,at,ut,dt,F,V,wt,te.a,re,un,Mn,Bi,Yi,Zi,tr,Pe,Cr,Mr,Dr,g,o,Z,w,le,ge,Ee,Qe,tt,rt,en,s,nn,Xt,sn,mi,di,bi,Si,I,ki,Ti,Ni,sr,f,j,K,ne,he,be,De,ke,We,qe,ct,Rt,tn,on,gi,_i,Fe,Mi,Li,zi,Ci,Fi,Gi,Ki,ir,lr,Sr,Ir,Vr,_r,Tr,Nr,Wr,Gr,L,i,h,O,X,E,G,ye,Re,pt,Qt,Tt,xi,Oi,d,we,st,l,Tn,Ei,oe,St,rn,Di,Ve,a,Ie,wi,$t,Q,n,r,Te],Ht=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.a.use(e.locale),P.a.i18n(e.i18n),mu.forEach(function(e){t.component(e.name,e)}),t.use(As),t.use(Ho.directive),t.prototype.$ELEMENT={size:e.size||"",zIndex:e.zIndex||2e3},t.prototype.$loading=Ho.service,t.prototype.$msgbox=br,t.prototype.$alert=br.alert,t.prototype.$confirm=br.confirm,t.prototype.$prompt=br.prompt,t.prototype.$notify=To,t.prototype.$message=Jo};"undefined"!=typeof window&&window.Vue&&Ht(window.Vue);t.a={version:"2.14.1",locale:P.a.use,i18n:P.a.i18n,install:Ht,CollapseTransition:Te,Loading:Ho,Pagination:Y,Dialog:q,Autocomplete:ee,Dropdown:se,DropdownMenu:ce,DropdownItem:pe,Menu:Se,Submenu:Ne,MenuItem:ze,MenuItemGroup:Be,Input:u.a,InputNumber:Ye,Radio:Ge,RadioGroup:Ke,RadioButton:et,Checkbox:it,CheckboxButton:at,CheckboxGroup:ut,Switch:dt,Select:F,Option:V,OptionGroup:wt,Button:te.a,ButtonGroup:re,Table:un,TableColumn:Mn,DatePicker:Bi,TimeSelect:Yi,TimePicker:Zi,Popover:tr,Tooltip:Pe,MessageBox:br,Breadcrumb:Cr,BreadcrumbItem:Mr,Form:Dr,FormItem:g,Tabs:o,TabPane:Z,Tag:w,Tree:le,Alert:ge,Notification:To,Slider:Ee,Icon:Qe,Row:tt,Col:rt,Upload:en,Progress:s,Spinner:nn,Message:Jo,Badge:Xt,Card:sn,Rate:mi,Steps:di,Step:bi,Carousel:Si,Scrollbar:I,CarouselItem:ki,Collapse:Ti,CollapseItem:Ni,Cascader:sr,ColorPicker:f,Transfer:j,Container:K,Header:ne,Aside:he,Main:be,Footer:De,Timeline:ke,TimelineItem:We,Link:qe,Divider:ct,Image:Rt,Calendar:tn,Backtop:on,InfiniteScroll:As,PageHeader:gi,CascaderPanel:_i,Avatar:Fe,Drawer:Mi,Popconfirm:Li,CBar:zi,CHistogram:Ci,CLine:Fi,CPie:Gi,CRing:Ki,CWaterfall:ir,CFunnel:lr,CRadar:Sr,CChart:Ir,CMap:Vr,CBmap:_r,CAmap:Tr,CSankey:Nr,CHeatmap:Wr,CScatter:Gr,CCandle:L,CGauge:i,CTree:h,CLiquidfill:O,CWordcloud:X,CGraph:E,CGantt:G,MButton:ye,MCell:Re,MCellGroup:pt,MCalendar:Qt,MCascader:Tt,MField:xi,MPopup:Oi,MPicker:d,MNumberKeyboard:we,MPasswordInput:st,MForm:l,MActionSheet:Tn,MNotify:Ei,MPullRefresh:oe,MSwipeCell:St,MNoticeBar:rn,MGrid:Di,MGridItem:Ve,MIndexBar:a,MSidebar:Ie,MTreeSelect:wi,MCard:$t,MImage:Q,MSidebarItem:n,MBreadcrumbTree:r}},function(e,t,n){"use strict";t.__esModule=!0;var i=a(n(466)),r=a(n(478)),o="function"==typeof r.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof r.default&&"symbol"===o(i.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t,n){var o=n(1),a={};function i(){this._coordinateSystems=[]}i.prototype={constructor:i,create:function(n,i){var r=[];o.each(a,function(e,t){e=e.create(n,i);r=r.concat(e||[])}),this._coordinateSystems=r},update:function(t,n){o.each(this._coordinateSystems,function(e){e.update&&e.update(t,n)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},i.register=function(e,t){a[e]=t},i.get=function(e){return a[e]},e.exports=i},function(e,t,n){n(14).__DEV__;var d=n(1),i=n(532),r=n(154),o=n(153),p=n(8),a=n(155),f=a.prepareLayoutBarSeries,m=a.makeColumnLayout,g=a.retrieveColumnLayout,v=n(21);function s(e,t){var n,i,r,o=e.type,a=t.getMin(),s=t.getMax(),l=e.getExtent();"ordinal"===o?n=t.getCategories().length:(i=t.get("boundaryGap"),(i="boolean"==typeof(i=!d.isArray(i)?[i||0,i||0]:i)[0]?[0,0]:i)[0]=p.parsePercent(i[0],1),i[1]=p.parsePercent(i[1],1),r=l[1]-l[0]||Math.abs(l[0])),"dataMin"===a?a=l[0]:"function"==typeof a&&(a=a({min:l[0],max:l[1]})),"dataMax"===s?s=l[1]:"function"==typeof s&&(s=s({min:l[0],max:l[1]}));var u=null!=a,c=null!=s;null==a&&(a="ordinal"===o?n?0:NaN:l[0]-i[0]*r),null==s&&(s="ordinal"===o?n?n-1:NaN:l[1]+i[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),e.setBlank(d.eqNaN(a)||d.eqNaN(s)||"ordinal"===o&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(a=0<a&&0<s&&!u?0:a)<0&&s<0&&!c&&(s=0);var h,e=t.ecModel;return e&&"time"===o&&(e=f("bar",e),d.each(e,function(e){h|=e.getBaseAxis()===t.axis}),h&&(e=m(e),a=(e=function(e,t,n,i){var r=n.axis.getExtent(),r=r[1]-r[0],i=g(i,n.axis);if(void 0===i)return{min:e,max:t};var o=1/0;d.each(i,function(e){o=Math.min(e.offset,o)});var a=-1/0;d.each(i,function(e){a=Math.max(e.offset+e.width,a)}),o=Math.abs(o),a=Math.abs(a);n=o+a,i=t-e,i=i/(1-(o+a)/r)-i;return{min:e-=o/n*i,max:t+=a/n*i}}(a,s,t,e)).min,s=e.max)),{extent:[a,s],fixMin:u,fixMax:c}}function y(n){var t,i=n.getLabelModel().get("formatter"),r="category"===n.type?n.scale.getExtent()[0]:null;return"string"==typeof i?(t=i,i=function(e){return e=n.scale.getLabel(e),t.replace("{value}",null!=e?e:"")}):"function"==typeof i?function(e,t){return null!=r&&(t=e-r),i(l(n,e),t)}:function(e){return n.scale.getLabel(e)}}function l(e,t){return"category"===e.type?e.scale.getLabel(t):t}function u(e){e=e.get("interval");return null==e?"auto":e}n(533),n(327),t.getScaleExtent=s,t.niceScaleExtent=function(e,t){var n=s(e,t),i=n.extent,r=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var o=e.type;e.setExtent(i[0],i[1]),e.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?t.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?t.get("maxInterval"):null}),null!=(t=t.get("interval"))&&e.setInterval&&e.setInterval(t)},t.createScaleByModel=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new i(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new r;default:return(o.getClass(t)||r).create(e)}},t.ifAxisCrossZero=function(e){var e=(t=e.scale.getExtent())[0],t=t[1];return!(0<e&&0<t||e<0&&t<0)},t.makeLabelFormatter=y,t.getAxisRawValue=l,t.estimateLabelUnionRect=function(e){var t=e.model,n=e.scale;if(t.get("axisLabel.show")&&!n.isBlank()){var i,r,t="category"===e.type,o=n.getExtent(),a=t?n.count():(i=n.getTicks()).length,s=e.getLabelModel(),l=y(e),u=1;40<a&&(u=Math.ceil(a/40));for(var c,h,d=0;d<a;d+=u){var p=l(i?i[d]:o[0]+d),f=s.getTextRect(p),m=(c=f,h=s.get("rotate")||0,m=f=p=m=void 0,m=h*Math.PI/180,p=c.plain(),f=p.width,h=p.height,c=f*Math.abs(Math.cos(m))+Math.abs(h*Math.sin(m)),m=f*Math.abs(Math.sin(m))+Math.abs(h*Math.cos(m)),new v(p.x,p.y,c,m));r?r.union(m):r=m}return r}},t.getOptionCategoryInterval=u,t.shouldShowAllLabels=function(e){return"category"===e.type&&0===u(e.getLabelModel())}},function(e,t,n){var i=n(3);!function(){for(var e in i){if(null==i||!i.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=i[e]}}();var r=n(323);!function(){for(var e in r){if(null==r||!r.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=r[e]}}(),n(321),n(205),n(118),n(206),n(355),n(350),n(208),n(356),n(597),n(605),n(363),n(349),n(623),n(367),n(640),n(369),n(650),n(654),n(373),n(663),n(666),n(677),n(683),n(689),n(690),n(702),n(374),n(364),n(705),n(709),n(710),n(337),n(128),n(722),n(729),n(730),n(739),n(742),n(745),n(748),n(204),n(379),n(381),n(380),n(226),n(382),n(391),n(761),n(764)},function(e,t,n){var i=n(77);t.Dispatcher=i;var o=n(25),n=n(298),a=n.isCanvasEl,s=n.transformCoordWithViewport,r="undefined"!=typeof window&&!!window.addEventListener,l=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function c(e,t,n,i){return n=n||{},i||!o.canvasSupported?h(e,t,n):o.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):h(e,t,n),n}function h(e,t,n){if(o.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(a(e)){t=e.getBoundingClientRect();return n.zrX=i-t.left,void(n.zrY=r-t.top)}if(s(u,e,i,r))return n.zrX=u[0],void(n.zrY=u[1])}n.zrX=n.zrY=0}function d(e){return e||window.event}n=r?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};t.clientToLocal=c,t.getNativeEvent=d,t.normalizeEvent=function(e,t,n){if(null!=(t=d(t)).zrX)return t;var i=t.type;return i&&0<=i.indexOf("touch")?(i=("touchend"!==i?t.targetTouches:t.changedTouches)[0])&&c(e,i,t,n):(c(e,t,t,n),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3),n=t.button,null==t.which&&void 0!==n&&l.test(t.type)&&(t.which=1&n?1:2&n?3:4&n?2:0),t},t.addEventListener=function(e,t,n,i){r?e.addEventListener(t,n,i):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n,i){r?e.removeEventListener(t,n,i):e.detachEvent("on"+t,n)},t.stop=n,t.isMiddleOrRightButtonOnMouseUpDown=function(e){return 2===e.which||3===e.which},t.notLeftMouse=function(e){return 1<e.which}},function(e,t,n){var i=n(301),l={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 s(e){return(e=Math.round(e))<0?0:255<e?255:e}function u(e){return e<0?0:1<e?1:e}function c(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100*255):s(parseInt(e,10))}function h(e){return e.length&&"%"===e.charAt(e.length-1)?u(parseFloat(e)/100):u(parseFloat(e))}function o(e,t,n){return n<0?n+=1:1<n&&--n,6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function d(e,t,n){return e+(t-e)*n}function p(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var m=new i(20),r=null;function g(e,t){r&&f(r,t),r=m.put(e,r||t.slice())}function v(e,t){if(e){t=t||[];var n=m.get(e);if(n)return f(t,n);var i=(e+="").replace(/ /g,"").toLowerCase();if(i in l)return f(t,l[i]),g(e,t),t;if("#"===i.charAt(0))return 4===i.length?0<=(o=parseInt(i.substr(1),16))&&o<=4095?(p(t,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,1),g(e,t),t):void p(t,0,0,0,1):7===i.length?0<=(o=parseInt(i.substr(1),16))&&o<=16777215?(p(t,(16711680&o)>>16,(65280&o)>>8,255&o,1),g(e,t),t):void p(t,0,0,0,1):void 0;var r=i.indexOf("("),n=i.indexOf(")");if(-1!==r&&n+1===i.length){var o=i.substr(0,r),a=i.substr(r+1,n-(r+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return void p(t,0,0,0,1);s=h(a.pop());case"rgb":return 3!==a.length?void p(t,0,0,0,1):(p(t,c(a[0]),c(a[1]),c(a[2]),s),g(e,t),t);case"hsla":return 4!==a.length?void p(t,0,0,0,1):(a[3]=h(a[3]),y(a,t),g(e,t),t);case"hsl":return 3!==a.length?void p(t,0,0,0,1):(y(a,t),g(e,t),t);default:return}}p(t,0,0,0,1)}}function y(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=h(e[1]),r=h(e[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return p(t=t||[],s(255*o(r,i,n+1/3)),s(255*o(r,i,n)),s(255*o(r,i,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function a(e,t,n){if(t&&t.length&&0<=e&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),e=t[r],o=t[o],r=i-r;return n[0]=s(d(e[0],o[0],r)),n[1]=s(d(e[1],o[1],r)),n[2]=s(d(e[2],o[2],r)),n[3]=u(d(e[3],o[3],r)),n}}n=a;function x(e,t,n){if(t&&t.length&&0<=e&&e<=1){var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=v(t[r]),e=v(t[o]),t=i-r,t=b([s(d(a[0],e[0],t)),s(d(a[1],e[1],t)),s(d(a[2],e[2],t)),u(d(a[3],e[3],t))],"rgba");return n?{color:t,leftIndex:r,rightIndex:o,value:i}:t}}i=x;function b(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}t.parse=v,t.lift=function(e,t){var n=v(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,255<n[i]?n[i]=255:e[i]<0&&(n[i]=0);return b(n,4===n.length?"rgba":"rgb")}},t.toHex=function(e){if(e=v(e))return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},t.fastLerp=a,t.fastMapToColor=n,t.lerp=x,t.mapToColor=i,t.modifyHSL=function(e,t,n,i){if(e=v(e))return e=function(e){if(e){var t,n,i,r=e[0]/255,o=e[1]/255,a=e[2]/255,s=Math.min(r,o,a),l=Math.max(r,o,a),u=l-s,c=(l+s)/2;0==u?n=t=0:(n=c<.5?u/(l+s):u/(2-l-s),i=((l-r)/6+u/2)/u,s=((l-o)/6+u/2)/u,u=((l-a)/6+u/2)/u,r===l?t=u-s:o===l?t=1/3+i-u:a===l&&(t=2/3+s-i),t<0&&(t+=1),1<t&&--t);c=[360*t,n,c];return null!=e[3]&&c.push(e[3]),c}}(e),null!=t&&(e[0]=(t=t,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(e[1]=h(n)),null!=i&&(e[2]=h(i)),b(y(e),"rgba")},t.modifyAlpha=function(e,t){if((e=v(e))&&null!=t)return e[3]=u(t),b(e,"rgba")},t.stringify=b},function(e,t,n){var o=n(1).each,i=n(78),r=n(122),a=n(60),s=n(10),l=n(6),u=n(199).createTask,n=n(98),c=s.makeInner(),h=n();function d(){this.group=new i,this.uid=r.getUID("viewChart"),this.renderTask=u({plan:m,reset:g}),this.renderTask.context={view:this}}n=d.prototype={type:"chart",init:function(e,t){},render:function(e,t,n,i){},highlight:function(e,t,n,i){f(e.getData(),i,"emphasis")},downplay:function(e,t,n,i){f(e.getData(),i,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};function p(e,t,n){if(e&&(e.trigger(t,n),e.isGroup&&!l.isHighDownDispatcher(e)))for(var i=0,r=e.childCount();i<r;i++)p(e.childAt(i),t,n)}function f(t,e,n){var i=s.queryDataIndex(t,e),r=e&&null!=e.highlightKey?l.getHighlightDigit(e.highlightKey):null;null!=i?o(s.normalizeToArray(i),function(e){p(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(e){p(e,n,r)})}function m(e){return h(e.model)}function g(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,e=r&&c(r).updateMethod,e=o?"incrementalPrepareRender":e&&a[e]?e:"render";return"render"!==e&&a[e](t,n,i,r),v[e]}n.updateView=n.updateLayout=n.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},a.enableClassExtend(d,["dispose"]),a.enableClassManagement(d,{registerWhenExtend:!0}),d.markUpdateMethod=function(e,t){c(e).updateMethod=t};var v={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};e.exports=d},function(e,t,n){var n=n(1),d=n.each,p=n.isString;function i(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}t.enableDataStack=function(e,n,t){var i,r,o,a,s,l,u=(t=t||{}).byIndex,c=t.stackedCoordDimension,h=!(!e||!e.get("stack"));return d(n,function(e,t){p(e)&&(n[t]=e={name:e}),h&&!e.isExtraCoord&&(u||i||!e.ordinalMeta||(i=e),r||"ordinal"===e.type||"time"===e.type||c&&c!==e.coordDim||(r=e))}),!r||u||i||(u=!0),r&&(o="__\0ecstackresult",a="__\0ecstackedover",i&&(i.createInvertedIndices=!0),s=r.coordDim,e=r.type,l=0,d(n,function(e){e.coordDim===s&&l++}),n.push({name:o,coordDim:s,coordDimIndex:l,type:e,isExtraCoord:!0,isCalculationCoord:!0}),n.push({name:a,coordDim:a,coordDimIndex:++l,type:e,isExtraCoord:!0,isCalculationCoord:!0})),{stackedDimension:r&&r.name,stackedByDimension:i&&i.name,isStackedByIndex:u,stackedOverDimension:a,stackResultDimension:o}},t.isDimensionStacked=i,t.getStackedDimension=function(e,t){return i(e,t)?e.getCalculationInfo("stackResultDimension"):t}},function(e,t,n){"use strict";function i(e){return null!=e}function r(e){return/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e)}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r})},function(e,t){e.exports=function(r,o,a,s){var l,u=0;return"boolean"!=typeof o&&(s=a,a=o,o=void 0),function(){var e=this,t=Number(new Date)-u,n=arguments;function i(){u=Number(new Date),a.apply(e,n)}s&&!l&&i(),l&&clearTimeout(l),void 0===s&&r<t?i():!0!==o&&(l=setTimeout(s?function(){l=void 0}:i,void 0===s?r-t:r))}}},function(e,t,n){n(14).__DEV__;var o=n(1),i=".",a="___EC__COMPONENT__CONTAINER___";function s(e){var t={main:"",sub:""};return e&&(e=e.split(i),t.main=e[0]||"",t.sub=e[1]||""),t}var r=0;function l(e,t){var n=o.slice(arguments,2);return this.superClass.prototype[t].apply(e,n)}function u(e,t,n){return this.superClass.prototype[t].apply(e,n)}t.parseClassType=s,t.enableClassExtend=function(e,t){(e.$constructor=e).extend=function(e){function t(){(e.$constructor||n).apply(this,arguments)}var n=this;return o.extend(t.prototype,e),t.extend=this.extend,t.superCall=l,t.superApply=u,o.inherits(t,this),t.superClass=n,t}},t.enableClassCheck=function(e){var t=["__\0is_clz",r++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}},t.enableClassManagement=function(n,e){e=e||{};var i,r={};return n.registerClass=function(e,t){var n;return t&&(n=t,o.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),(t=s(t)).sub?t.sub!==a&&(function(e){var t=r[e.main];t&&t[a]||((t=r[e.main]={})[a]=!0);return t}(t)[t.sub]=e):r[t.main]=e),e},n.getClass=function(e,t,n){var i=r[e];if(i&&i[a]&&(i=t?i[t]:null),n&&!i)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return i},n.getClassesByMainType=function(e){e=s(e);var n=[],e=r[e.main];return e&&e[a]?o.each(e,function(e,t){t!==a&&n.push(e)}):n.push(e),n},n.hasClass=function(e){return e=s(e),!!r[e.main]},n.getAllClassMainTypes=function(){var n=[];return o.each(r,function(e,t){n.push(t)}),n},n.hasSubTypes=function(e){e=s(e);e=r[e.main];return e&&e[a]},n.parseClassType=s,!e.registerWhenExtend||(i=n.extend)&&(n.extend=function(e){var t=i.call(this,e);return n.registerClass(t,e.type)}),n},t.setReadOnly=function(e,t){}},function(e,t,n){n(14).__DEV__;var i=n(10),r=i.makeInner,m=i.getDataItemValue,i=n(1),o=i.createHashMap,p=i.each,a=i.map,g=i.isArray,v=i.isString,y=i.isObject,x=i.isTypedArray,s=i.isArrayLike,l=i.extend,c=(i.assert,n(123)),n=n(124),b=n.SOURCE_FORMAT_ORIGINAL,_=n.SOURCE_FORMAT_ARRAY_ROWS,w=n.SOURCE_FORMAT_OBJECT_ROWS,C=n.SOURCE_FORMAT_KEYED_COLUMNS,u=n.SOURCE_FORMAT_UNKNOWN,h=n.SOURCE_FORMAT_TYPED_ARRAY,S=n.SERIES_LAYOUT_BY_ROW,A={Must:1,Might:2,Not:3},d=r();function f(e){if(e){var i=o();return a(e,function(e,t){if(null==(e=l({},y(e)?e:{name:e})).name)return e;e.name+="",null==e.displayName&&(e.displayName=e.name);var n=i.get(e.name);return n?e.name+="-"+n.count++:i.set(e.name,{count:1}),e})}}function M(e,t,n,i){if(null==i&&(i=1/0),t===S)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)e(o[r],r)}function T(e){var t=e.option;if(!t.data)return e.ecModel.getComponent("dataset",t.datasetIndex||0)}function k(e,t,n,i,r,o){var a,s,l;if(x(e))return A.Not;if(i&&(i=i[o],y(i)?(s=i.name,l=i.type):v(i)&&(s=i)),null!=l)return"ordinal"===l?A.Must:A.Not;if(t===_)if(n===S){for(var u=e[o],c=0;c<(u||[]).length&&c<5;c++)if(null!=(a=f(u[r+c])))return a}else for(c=0;c<e.length&&c<5;c++){var h=e[r+c];if(h&&null!=(a=f(h[o])))return a}else if(t===w){if(!s)return A.Not;for(c=0;c<e.length&&c<5;c++)if((d=e[c])&&null!=(a=f(d[s])))return a}else if(t===C){if(!s)return A.Not;if(!(u=e[s])||x(u))return A.Not;for(c=0;c<u.length&&c<5;c++)if(null!=(a=f(u[c])))return a}else if(t===b)for(c=0;c<e.length&&c<5;c++){var d=e[c],p=m(d);if(!g(p))return A.Not;if(null!=(a=f(p[o])))return a}function f(e){var t=v(e);return null!=e&&isFinite(e)&&""!==e?t?A.Might:A.Not:t&&"-"!==e?A.Must:void 0}return A.Not}t.BE_ORDINAL=A,t.detectSourceFormat=function(e){var t=e.option.source,n=u;if(x(t))n=h;else if(g(t)){0===t.length&&(n=_);for(var i=0,r=t.length;i<r;i++){var o=t[i];if(null!=o){if(g(o)){n=_;break}if(y(o)){n=w;break}}}}else if(y(t)){for(var a in t)if(t.hasOwnProperty(a)&&s(t[a])){n=C;break}}else if(null!=t)throw new Error("Invalid data");d(e).sourceFormat=n},t.getSource=function(e){return d(e).source},t.resetSourceDefaulter=function(e){d(e).datasetMap=o()},t.prepareSource=function(e){var t,n=e.option,i=n.data,r=x(i)?h:b,o=!1,a=n.seriesLayoutBy,s=n.sourceHeader,l=n.dimensions,u=T(e);u&&(i=(t=u.option).source,r=d(u).sourceFormat,o=!0,a=a||t.seriesLayoutBy,null==s&&(s=t.sourceHeader),l=l||t.dimensions),l=function(e,t,n,i,r){if(!e)return{dimensionsDefine:f(r)};var o,a;t===_?("auto"===i||null==i?M(function(e){null!=e&&"-"!==e&&(v(e)?null==a&&(a=1):a=0)},n,e,10):a=i?1:0,r||1!==a||(r=[],M(function(e,t){r[t]=null!=e?e:""},n,e)),o=r?r.length:n===S?e.length:e[0]?e[0].length:null):t===w?r=r||function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t){var i=[];return p(t,function(e,t){i.push(t)}),i}}(e):t===C?r||(r=[],p(e,function(e,t){r.push(t)})):t===b&&(e=m(e[0]),o=g(e)&&e.length||1);return{startIndex:a,dimensionsDefine:f(r),dimensionsDetectCount:o}}(i,r,a,s,l),d(e).source=new c({data:i,fromDataset:o,seriesLayoutBy:a,sourceFormat:r,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectCount:l.dimensionsDetectCount,encodeDefine:n.encode})},t.makeSeriesEncodeForAxisCoordSys=function(n,e,t){var r={},i=T(e);if(!i||!n)return r;var o,a,s=[],l=[],e=e.ecModel,e=d(e).datasetMap,t=i.uid+"_"+t.seriesLayoutBy;n=n.slice(),p(n,function(e,t){y(e)||(n[t]={name:e}),"ordinal"===e.type&&null==o&&(a=h(n[o=t])),r[e.name]=[]});var u=e.get(t)||e.set(t,{categoryWayDim:a,valueWayDim:0});function c(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function h(e){e=e.dimsDef;return e?e.length:1}return p(n,function(e,t){var n,i=e.name,e=h(e);null==o?(n=u.valueWayDim,c(r[i],n,e),c(l,n,e),u.valueWayDim+=e):o===t?(c(r[i],0,e),c(s,0,e)):(n=u.categoryWayDim,c(r[i],n,e),c(l,n,e),u.categoryWayDim+=e)}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r},t.makeSeriesEncodeForNameBased=function(e,l,u){var t={};if(!T(e))return t;var c,h=l.sourceFormat,d=l.dimensionsDefine;return h!==w&&h!==C||p(d,function(e,t){"name"===(y(e)?e.name:e)&&(c=t)}),(e=function(){for(var e={},t={},n=[],i=0,r=Math.min(5,u);i<r;i++){var o=k(l.data,h,l.seriesLayoutBy,d,l.startIndex,i);n.push(o);var a=o===A.Not;if(a&&null==e.v&&i!==c&&(e.v=i),null!=e.n&&e.n!==e.v&&(a||n[e.n]!==A.Not)||(e.n=i),s(e)&&n[e.n]!==A.Not)return e;a||(o===A.Might&&null==t.v&&i!==c&&(t.v=i),null!=t.n&&t.n!==t.v||(t.n=i))}function s(e){return null!=e.v&&null!=e.n}return s(e)?e:s(t)?t:null}())&&(t.value=e.v,e=null!=c?c:e.n,t.itemName=[e],t.seriesName=[e]),t},t.guessOrdinal=function(e,t){return k(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}},function(e,t,n){var l=n(1),u=n(47),c=n(99),h=n(124).SOURCE_FORMAT_ORIGINAL,d=n(125).getDimensionTypeByAxis,p=n(10).getDataItemValue,f=n(51),m=n(531).getCoordSysInfoBySeries,g=n(123),v=n(57).enableDataStack,y=n(61).makeSeriesEncodeForAxisCoordSys;e.exports=function(e,t,n){n=n||{},g.isInstance(e)||(e=g.seriesDataToSource(e));var r,i,o=t.get("coordinateSystem"),o=f.get(o),a=m(t),s=(s=a?l.map(a.coordSysDims,function(e){var t={name:e},e=a.axisMap.get(e);return e&&(e=e.get("type"),t.type=d(e)),t}):s)||(o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n=c(e,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?l.curry(y,s,t):null});return a&&l.each(n,function(e,t){var n=e.coordDim,n=a.categoryAxisMap.get(n);n&&(null==r&&(r=t),e.ordinalMeta=n.getOrdinalMeta()),null!=e.otherDims.itemName&&(i=!0)}),i||null==r||(n[r].otherDims.itemName=0),s=v(t,n),(t=new u(n,t)).setCalculationInfo(s),s=null!=r&&function(e){if(e.sourceFormat===h){e=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return null!=e&&!l.isArray(p(e))}}(e)?function(e,t,n,i){return i===r?n:this.defaultDimValueGetter(e,t,n,i)}:null,t.hasItemOption=!1,t.initData(e,null,s),t}},function(e,t,n){"use strict";function i(e){return e===window}t.__esModule=!0,t.getScroller=function(e,t){void 0===t&&(t=window);var n=e;for(;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==t;){var i=window.getComputedStyle(n).overflowY;if(r.test(i))return n;n=n.parentNode}return t},t.getScrollTop=o,t.setScrollTop=a,t.getRootScrollTop=s,t.setRootScrollTop=function(e){a(window,e),a(document.body,e)},t.getElementTop=function(e,t){if(i(e))return 0;t=t?o(t):s();return e.getBoundingClientRect().top+t},t.getVisibleHeight=function(e){if(i(e))return e.innerHeight;return e.getBoundingClientRect().height},t.getVisibleTop=function(e){if(i(e))return 0;return e.getBoundingClientRect().top};var r=/scroll|auto/i;function o(e){e="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(e,0)}function a(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function s(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},function(e,t){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(e,t,n){var i=n(20),n=i.create,x=i.distSquare,h=Math.pow,b=Math.sqrt,r=1e-8,d=b(3),_=n(),w=n(),C=n();function p(e){return-r<e&&e<r}function s(e){return r<e||e<-r}function S(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function v(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}t.cubicAt=S,t.cubicDerivativeAt=function(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)},t.cubicRootAt=function(e,t,n,i,r,o){var a,s,l,u=i+3*(t-n)-e,c=3*(n-2*t+e),e=c*(i=3*(t-e))-9*u*(n=e-r),r=i*i-3*c*n,n=0;return p(t=c*c-3*u*i)&&p(e)?p(c)?o[0]=0:0<=(s=-i/c)&&s<=1&&(o[n++]=s):p(i=e*e-4*t*r)?(l=-(r=e/t)/2,0<=(s=-c/u+r)&&s<=1&&(o[n++]=s),0<=l&&l<=1&&(o[n++]=l)):0<i?(a=t*c+1.5*u*(-e-(i=b(i))),0<=(s=(-c-((i=(i=t*c+1.5*u*(-e+i))<0?-h(-i,1/3):h(i,1/3))+(a=a<0?-h(-a,1/3):h(a,1/3))))/(3*u))&&s<=1&&(o[n++]=s)):(a=(2*t*c-3*u*e)/(2*b(t*t*t)),e=Math.acos(a)/3,s=(-c-2*(a=b(t))*(t=Math.cos(e)))/(3*u),l=(-c+a*(t+d*Math.sin(e)))/(3*u),u=(-c+a*(t-d*Math.sin(e)))/(3*u),0<=s&&s<=1&&(o[n++]=s),0<=l&&l<=1&&(o[n++]=l),0<=u&&u<=1&&(o[n++]=u)),n},t.cubicExtrema=function(e,t,n,i,r){var o,a=6*n-12*t+6*e,i=9*t+3*i-3*e-9*n,n=3*t-3*e,t=0;return p(i)?s(a)&&0<=(o=-n/a)&&o<=1&&(r[t++]=o):p(e=a*a-4*i*n)?r[0]=-a/(2*i):0<e&&(e=(-a-(n=b(e)))/(2*i),0<=(o=(-a+n)/(2*i))&&o<=1&&(r[t++]=o),0<=e&&e<=1&&(r[t++]=e)),t},t.cubicSubdivide=function(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,t=(i-n)*r+n,n=(s-a)*r+a,r=((s=(t-s)*r+s)-n)*r+n;o[0]=e,o[1]=a,o[2]=n,o[3]=r,o[4]=r,o[5]=s,o[6]=t,o[7]=i},t.cubicProjectPoint=function(e,t,n,i,r,o,a,s,l,u,c){var h,d,p,f,m=.005,g=1/0;_[0]=l,_[1]=u;for(var v=0;v<1;v+=.05)w[0]=S(e,n,r,a,v),w[1]=S(t,i,o,s,v),(p=x(_,w))<g&&(h=v,g=p);for(var g=1/0,y=0;y<32&&!(m<1e-4);y++)d=h+m,w[0]=S(e,n,r,a,f=h-m),w[1]=S(t,i,o,s,f),p=x(w,_),0<=f&&p<g?(h=f,g=p):(C[0]=S(e,n,r,a,d),C[1]=S(t,i,o,s,d),f=x(C,_),d<=1&&f<g?(h=d,g=f):m*=.5);return c&&(c[0]=S(e,n,r,a,h),c[1]=S(t,i,o,s,h)),b(g)},t.quadraticAt=v,t.quadraticDerivativeAt=function(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))},t.quadraticRootAt=function(e,t,n,i,r){var o,a=e-2*t+n,n=2*(t-e),t=e-i,e=0;return p(a)?s(n)&&0<=(o=-t/n)&&o<=1&&(r[e++]=o):p(i=n*n-4*a*t)?0<=(o=-n/(2*a))&&o<=1&&(r[e++]=o):0<i&&(i=(-n-(t=b(i)))/(2*a),0<=(o=(-n+t)/(2*a))&&o<=1&&(r[e++]=o),0<=i&&i<=1&&(r[e++]=i)),e},t.quadraticExtremum=function(e,t,n){return 0==(n=e+n-2*t)?.5:(e-t)/n},t.quadraticSubdivide=function(e,t,n,i,r){var o=(t-e)*i+e,i=((t=(n-t)*i+t)-o)*i+o;r[0]=e,r[1]=o,r[2]=i,r[3]=i,r[4]=t,r[5]=n},t.quadraticProjectPoint=function(e,t,n,i,r,o,a,s,l){var u,c=.005,h=1/0;_[0]=a,_[1]=s;for(var d=0;d<1;d+=.05)w[0]=v(e,n,r,d),w[1]=v(t,i,o,d),(g=x(_,w))<h&&(u=d,h=g);for(var h=1/0,p=0;p<32&&!(c<1e-4);p++){var f=u-c,m=u+c;w[0]=v(e,n,r,f),w[1]=v(t,i,o,f);var g=x(w,_);0<=f&&g<h?(u=f,h=g):(C[0]=v(e,n,r,m),C[1]=v(t,i,o,m),f=x(C,_),m<=1&&f<h?(u=m,h=f):c*=.5)}return l&&(l[0]=v(e,n,r,u),l[1]=v(t,i,o,u)),b(h)}},function(e,t){var s="\0__throttleOriginMethod",l="\0__throttleRate",u="\0__throttleType";function c(e,n,i){var r,o,a,s,l,u=0,c=0,h=null;function d(){c=(new Date).getTime(),h=null,e.apply(a,s||[])}n=n||0;function t(){r=(new Date).getTime(),a=this,s=arguments;var e=l||n,t=l||i;l=null,o=r-(t?u:c)-e,clearTimeout(h),t?h=setTimeout(d,e):0<=o?d():h=setTimeout(d,-o),u=r}return t.clear=function(){h&&(clearTimeout(h),h=null)},t.debounceNextCall=function(e){l=e},t}t.throttle=c,t.createOrUpdate=function(e,t,n,i){var r=e[t];if(r){var o=r[s]||r,a=r[u];if(r[l]!==n||a!==i){if(null==n||!i)return e[t]=o;(r=e[t]=c(o,n,"debounce"===i))[s]=o,r[u]=i,r[l]=n}return r}},t.clear=function(e,t){var n=e[t];n&&n[s]&&(e[t]=n[s])}},function(e,t){e.exports={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:""}}}}},function(e,t,n){var i=n(1),h=i.each,d=i.map,i=n(8),r=i.linearMap,o=i.getPixelPrecision,p=i.round,n=n(534),f=n.createAxisTicks,a=n.createAxisLabels,s=n.calculateCategoryInterval,l=[0,1],n=function(e,t,n){this.dim=e,this.scale=t,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function u(e,t){t=(e[1]-e[0])/t/2;e[0]+=t,e[1]-=t}n.prototype={constructor:n,contain:function(e){var t=this._extent,n=Math.min(t[0],t[1]),t=Math.max(t[0],t[1]);return n<=e&&e<=t},containData:function(e){return this.scale.contain(e)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(e){return o(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var n=this._extent;n[0]=e,n[1]=t},dataToCoord:function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&u(n=n.slice(),i.count()),r(e,l,n,t)},coordToData:function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&u(n=n.slice(),i.count());t=r(e,n,l,t);return this.scale.scale(t)},pointToData:function(e,t){},getTicksCoords:function(e){var t,n,i,r,o,a=(e=e||{}).tickModel||this.getTickModel(),s=f(this,a).ticks,l=d(s,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this),u=a.get("alignWithLabel");function c(e,t){return e=p(e),t=p(t),o?t<e:e<t}return t=this,n=l,s=u,a=e.clamp,u=n.length,t.onBand&&!s&&u&&(e=t.getExtent(),1===u?(n[0].coord=e[0],i=n[1]={coord:e[0]}):(s=n[u-1].tickValue-n[0].tickValue,r=(n[u-1].coord-n[0].coord)/s,h(n,function(e){e.coord-=r/2}),t=1+(t=t.scale.getExtent())[1]-n[u-1].tickValue,i={coord:n[u-1].coord+r*t},n.push(i)),o=e[0]>e[1],c(n[0].coord,e[0])&&(a?n[0].coord=e[0]:n.shift()),a&&c(e[0],n[0].coord)&&n.unshift({coord:e[0]}),c(e[1],i.coord)&&(a?i.coord=e[1]:n.pop()),a&&c(i.coord,e[1])&&n.push({coord:e[1]})),l},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber"),e=this.scale.getMinorTicks(e=!(0<e&&e<100)?5:e);return d(e,function(e){return d(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},getViewLabels:function(){return a(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),t=t[1]-t[0]+(this.onBand?1:0);0===t&&(t=1);e=Math.abs(e[1]-e[0]);return Math.abs(e)/t},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return s(this)}},e.exports=n},function(e,t,n){var i=n(1),y=i.retrieve,d=i.defaults,h=i.extend,x=i.each,p=n(17),b=n(6),_=n(26),i=n(8),f=i.isRadianAroundZero,m=i.remRadian,u=n(42).createSymbol,o=n(35),c=n(20).applyTransform,g=n(52).shouldShowAllLabels,w=Math.PI,n=function(e,t){this.opt=t,this.axisModel=e,d(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new b.Group;t=new b.Group({position:t.position.slice(),rotation:t.rotation});t.updateTransform(),this._transform=t.transform,this._dumbGroup=t};n.prototype={constructor:n,hasBuilder:function(e){return!!r[e]},add:function(e){r[e].call(this)},getGroup:function(){return this.group}};var r={axisLine:function(){var i,e,r,o,t,a,s,l=this.opt,n=this.axisModel;n.get("axisLine.show")&&(e=this.axisModel.axis.getExtent(),t=this._transform,i=[e[0],0],e=[e[1],0],t&&(c(i,i,t),c(e,e,t)),r=h({lineCap:"round"},n.getModel("axisLine.lineStyle").getLineStyle()),this.group.add(new b.Line({anid:"line",subPixelOptimize:!0,shape:{x1:i[0],y1:i[1],x2:e[0],y2:e[1]},style:r,strokeContainThreshold:l.strokeContainThreshold||5,silent:!0,z2:1})),o=n.get("axisLine.symbol"),t=n.get("axisLine.symbolSize"),"number"==typeof(n=n.get("axisLine.symbolOffset")||0)&&(n=[n,n]),null!=o&&("string"==typeof o&&(o=[o,o]),a=(t="string"==typeof t||"number"==typeof t?[t,t]:t)[0],s=t[1],x([{rotate:l.rotation+Math.PI/2,offset:n[0],r:0},{rotate:l.rotation-Math.PI/2,offset:n[1],r:Math.sqrt((i[0]-e[0])*(i[0]-e[0])+(i[1]-e[1])*(i[1]-e[1]))}],function(e,t){var n;"none"!==o[t]&&null!=o[t]&&(n=u(o[t],-a/2,-s/2,a,s,r.stroke,!0),t=e.r+e.offset,t=[i[0]+t*Math.cos(l.rotation),i[1]-t*Math.sin(l.rotation)],n.attr({rotation:e.rotate,position:t,silent:!0,z2:11}),this.group.add(n))},this)))},axisTickLabel:function(){var e,t,n,i,r,o,a,s,l=this.axisModel,u=this.opt,c=function(e,t,n){var i=t.axis,r=t.getModel("axisTick");if(r.get("show")&&!i.scale.isBlank()){for(var o=r.getModel("lineStyle"),r=n.tickDirection*r.get("length"),a=k(i.getTicksCoords(),e._transform,r,d(o.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),"ticks"),s=0;s<a.length;s++)e.group.add(a[s]);return a}}(this,l,u),h=function(s,l,u){var c=l.axis;if(y(u.axisLabelShow,l.get("axisLabel.show"))&&!c.scale.isBlank()){var h=l.getModel("axisLabel"),d=h.get("margin"),e=c.getViewLabels(),t=(y(u.labelRotate,h.get("rotate"))||0)*w/180,p=S(u.rotation,t,u.labelDirection),f=l.getCategories&&l.getCategories(!0),m=[],g=A(l),v=l.get("triggerEvent");return x(e,function(e,t){var n=e.tickValue,i=e.formattedLabel,r=e.rawLabel,o=h,a=(o=f&&f[n]&&f[n].textStyle?new _(f[n].textStyle,h,l.ecModel):o).getTextColor()||l.get("axisLine.lineStyle.color"),e=[c.dataToCoord(n),u.labelOffset+u.labelDirection*d],e=new b.Text({anid:"label_"+n,position:e,rotation:p.rotation,silent:g,z2:10});b.setTextStyle(e.style,o,{text:i,textAlign:o.getShallow("align",!0)||p.textAlign,textVerticalAlign:o.getShallow("verticalAlign",!0)||o.getShallow("baseline",!0)||p.textVerticalAlign,textFill:"function"==typeof a?a("category"===c.type?r:"value"===c.type?n+"":n,t):a}),v&&(e.eventData=C(l),e.eventData.targetType="axisLabel",e.eventData.value=r),s._dumbGroup.add(e),e.updateTransform(),m.push(e),s.group.add(e),e.decomposeTransform()}),m}}(this,l,u);t=h,n=c,g((e=l).axis)||(i=e.get("axisLabel.showMinLabel"),r=e.get("axisLabel.showMaxLabel"),n=n||[],o=(t=t||[])[0],a=t[1],s=t[t.length-1],h=t[t.length-2],c=n[0],e=n[1],t=n[n.length-1],n=n[n.length-2],!1===i?(v(o),v(c)):M(o,a)&&(i?(v(a),v(e)):(v(o),v(c))),!1===r?(v(s),v(t)):M(h,s)&&(r?(v(h),v(n)):(v(s),v(t)))),function(e,t,n){var i=t.axis,r=t.getModel("minorTick");if(r.get("show")&&!i.scale.isBlank()){var o=i.getMinorTicksCoords();if(o.length)for(var i=r.getModel("lineStyle"),a=n.tickDirection*r.get("length"),s=d(i.getLineStyle(),d(t.getModel("axisTick").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})),l=0;l<o.length;l++)for(var u=k(o[l],e._transform,a,s,"minorticks_"+l),c=0;c<u.length;c++)e.group.add(u[c])}}(this,l,u)},axisName:function(){var e,t,n,i,r,o,a,s,l=this.opt,u=this.axisModel,c=y(l.axisName,u.get("name"));c&&(r=u.get("nameLocation"),e=l.nameDirection,t=u.getModel("nameTextStyle"),s=u.get("nameGap")||0,n=(a=this.axisModel.axis.getExtent())[0]>a[1]?-1:1,n=["start"===r?a[0]-n*s:"end"===r?a[1]+n*s:(a[0]+a[1])/2,T(r)?l.labelOffset+e*s:0],null!=(s=u.get("nameRotate"))&&(s=s*w/180),T(r)?i=S(l.rotation,null!=s?s:l.rotation,e):(i=function(e,t,n,i){var r,e=m(n-e.rotation),i=i[0]>i[1],i="start"===t&&!i||"start"!==t&&i;i=f(e-w/2)?(r=i?"bottom":"top","center"):f(e-1.5*w)?(r=i?"top":"bottom","center"):(r="middle",e<1.5*w&&w/2<e?i?"left":"right":i?"right":"left");return{rotation:e,textAlign:i,textVerticalAlign:r}}(l,r,s||0,a),null!=(o=l.axisNameAvailableWidth)&&(o=Math.abs(o/Math.sin(i.rotation)),isFinite(o)||(o=null))),r=t.getFont(),a=(s=u.get("nameTruncate",!0)||{}).ellipsis,l=y(l.nameTruncateMaxWidth,s.maxWidth,o),o=null!=a&&null!=l?p.truncateText(c,l,r,a,{minChar:2,placeholder:s.placeholder}):c,l=u.get("tooltip",!0),(s={componentType:a=u.mainType,name:c,$vars:["name"]})[a+"Index"]=u.componentIndex,l=new b.Text({anid:"name",__fullText:c,__truncatedText:o,position:n,rotation:i.rotation,silent:A(u),z2:1,tooltip:l&&l.show?h({content:c,formatter:function(){return c},formatterParams:s},l):null}),b.setTextStyle(l.style,t,{text:o,textFont:r,textFill:t.getTextColor()||u.get("axisLine.lineStyle.color"),textAlign:t.get("align")||i.textAlign,textVerticalAlign:t.get("verticalAlign")||i.textVerticalAlign}),u.get("triggerEvent")&&(l.eventData=C(u),l.eventData.targetType="axisName",l.eventData.name=c),this._dumbGroup.add(l),l.updateTransform(),this.group.add(l),l.decomposeTransform())}},C=n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},S=n.innerTextLayout=function(e,t,n){var i,e=m(t-e),n=f(e)?(i=0<n?"top":"bottom","center"):f(e-w)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<w?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:n,textVerticalAlign:i}};var A=n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)};function v(e){e&&(e.ignore=!0)}function M(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=o.identity([]);return o.rotate(r,r,-e.rotation),n.applyTransform(o.mul([],r,e.getLocalTransform())),i.applyTransform(o.mul([],r,t.getLocalTransform())),n.intersect(i)}}function T(e){return"middle"===e||"center"===e}function k(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,s[a[1]=0]=u,s[1]=n,t&&(c(a,a,t),c(s,s,t));u=new b.Line({anid:r+"_"+e[l].tickValue,subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,silent:!0});o.push(u)}return o}e.exports=n},function(e,t){var n={};t.register=function(e,t){n[e]=t},t.get=function(e){return n[e]}},function(e,t){e.exports=function(e){return JSON.parse(JSON.stringify(e))}},function(e){e.exports=JSON.parse('[{"lang":"zh-CN","demo-block":{"hide-text":"隐藏代码","show-text":"显示代码","button-text":"在线运行","tooltip-text":"前往 codepen.io 运行此示例"},"footer":{"links":"链接","repo":"代码仓库","community":"社区","changelog":"更新日志","theme":"在线主题生成器","faq":"常见问题","gitter":"在线讨论","starter":"脚手架","feedback":"反馈建议","contribution":"贡献指南","eleme":"饿了么"},"header":{"home":"首页","guide":"指南","components":"组件","mobile-components":"移动端组件","theme":"主题","resource":"资源","mainLayout":"tis-app"},"nav":{"dropdown":"版本:"}},{"lang":"en-US","demo-block":{"hide-text":"Hide","show-text":"Expand","button-text":"Try it!","tooltip-text":"Run this demo on codepen.io"},"footer":{"links":"Links","repo":"GitHub","community":"Community","changelog":"Changelog","theme":"Online Theme Roller","faq":"FAQ","gitter":"Gitter","starter":"Starter kit","feedback":"Feedback","contribution":"Contribution","eleme":"Eleme"},"header":{"guide":"Guide","components":"Component","theme":"Theme","resource":"Resource"},"nav":{"dropdown":"Version: "}},{"lang":"es","demo-block":{"hide-text":"Ocultar","show-text":"Mostrar","button-text":"Probar","tooltip-text":"Prueba este ejemplo en codepen.io"},"footer":{"links":"Enlaces","repo":"GitHub","community":"Comunidad","changelog":"Lista de cambios","theme":"Online Theme Roller","faq":"FAQ","gitter":"Gitter","starter":"Kit de inicio","feedback":"Comentarios","contribution":"Contribución","eleme":"Eleme"},"header":{"guide":"Guía","components":"Componentes","theme":"Theme","resource":"Recursos"},"nav":{"dropdown":"Versión: "}},{"lang":"fr-FR","demo-block":{"hide-text":"Réduire","show-text":"Agrandir","button-text":"Essayez!","tooltip-text":"Essayer cette démo sur codepen.io"},"footer":{"links":"Liens","repo":"GitHub","community":"Communauté","changelog":"Changelog","theme":"Online Theme Roller","faq":"FAQ","gitter":"Gitter","starter":"Kit de démarrage","feedback":"Commentaires","contribution":"Contribution","eleme":"Eleme"},"header":{"guide":"Guide","components":"Composants","theme":"Theme","resource":"Ressources"},"nav":{"dropdown":"Version: "}}]')},function(e,t){var s=/^(attrs|props|on|nativeOn|class|style|hook)$/;e.exports=function(e){return e.reduce(function(e,t){var n,i,r,o,a;for(r in t)if(n=e[r],i=t[r],n&&s.test(r))if("class"===r&&("string"==typeof n&&(a=n,e[r]=n={},n[a]=!0),"string"==typeof i&&(a=i,t[r]=i={},i[a]=!0)),"on"===r||"nativeOn"===r||"hook"===r)for(o in i)n[o]=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}(n[o],i[o]);else if(Array.isArray(n))e[r]=n.concat(i);else if(Array.isArray(i))e[r]=[n].concat(i);else for(o in i)n[o]=i[o];else e[r]=t[r];return e},{})}},function(e){e.exports=JSON.parse('{"parkingApron":{"dimensions":["Name","Type","Near Bridge"],"data":[["AB94","W",true],["AB95","W",true],["AB96","W",true],["AB97","W",true],["AB98","W",true],["AS3","W",true],["AS4","W",true],["AS5","W",true],["AS6","W",true],["AS7","W",true],["AS8","W",true],["A98","U",true],["HU","W",true],["HXK","W",true],["O85","W",true],["O86","W",true],["O87","W",true],["O88","W",true],["O89","W",true],["O90","W",true],["O91","W",true],["O92","W",true],["O93","X",true],["O94","W",true],["O95","W",true],["O96","W",true],["O97","W",true],["O98","W",true],["S97","W",true],["S98","W",true],["WA94","W",true],["WA95","W",true],["WA96","W",true],["WA97","W",true],["WA98","W",true],["WA","W",true],["XA5","W",true],["XA6","W",true],["XA7","W",true],["XA8","W",true],["00","X",true],["01","X",true],["03","X",true],["04","X",true],["05","X",true],["06","Y",true],["07","X",true],["08","X",true],["09","X",true],["10","X",true],["11","X",true],["12","Y",true],["13","X",true],["21","X",true],["23","W",true],["25","W",true],["27","X",true],["29","W",true],["30","W",true],["31","X",true],["32","W",true],["33","W",true],["34","X",true],["35","W",true],["36","X",true],["37","X",true],["38","X",true],["39","X",true],["40","W",true],["41","X",true],["42","X",true],["43","X",true],["44","X",true],["45","W",true],["46","W",true],["47","W",true],["483","X",true],["484","X",true],["485","X",true],["486","X",true],["487","X",true],["488","X",true],["489","X",true],["48","W",true],["490","X",true],["491","X",true],["492","X",true],["493","X",true],["494","X",true],["495","X",true],["496","X",true],["497","X",true],["498","X",true],["608","X",true],["609O","W",true],["609","X",true],["60","X",true],["61I","X",true],["61O","X",true],["610I","W",true],["610O","W",true],["610","W",true],["611O","W",true],["611","X",true],["612I","W",true],["612O","W",true],["612","X",true],["613","X",true],["614O","W",true],["614","X",true],["615I","W",true],["615O","W",true],["615","X",true],["616O","W",true],["616","X",true],["617I","W",true],["617O","W",true],["617","X",true],["618O","W",true],["618","X",true],["619I","W",true],["619O","W",true],["619","X",true],["61","Y",true],["623","X",true],["624","X",true],["625","W",true],["626","X",true],["627","W",true],["628","X",true],["629","X",true],["62","X",true],["63I","X",true],["630","X",true],["631","X",true],["632","X",true],["633","X",true],["634","X",true],["635","X",true],["636","X",true],["63","Y",true],["64","X",true],["65I","W",true],["65O","W",true],["65","X",true],["66I","W",true],["66O","W",true],["66","X",true],["67I","W",true],["67O","W",true],["67","X",true],["68","X",true],["69I","X",true],["69","X",true],["70I","X",true],["70O","X",true],["70","W",true],["71","X",true],["72I","X",true],["72O","X",true],["72","W",true],["73","W",true],["760","W",true],["761","W",true],["762","W",true],["763","W",true],["764","X",true],["765","X",true],["766","X",true],["767","X",true],["768","X",true],["769","X",true],["770","X",true],["771","W",true],["772","X",true],["773","W",true],["774","W",true],["775","W",true],["776","X",true],["777","W",true],["778","W",true],["779","W",true],["780","X",true],["781","X",true],["782","X",true],["783","X",true],["784","X",true],["785","X",true],["786","X",true],["787","X",true],["788","X",true],["789","X",true],["790","X",true],["791","W",true],["792","W",true],["793","X",true],["794","X",true],["795","W",true],["796","W",true],["797","W",true],["798","W",true],["860","V",true],["862","V",true],["864","V",true],["865","V",true],["866","V",true],["867","V",true],["868","V",true],["869","V",true],["870","V",true],["871","V",true],["872I","W",true],["872O","W",true],["872","U",true],["873","V",true],["874I","W",true],["874O","W",true],["874","U",true],["875","V",true],["876","W",true],["878","X",true],["879I","X",true],["880","X",true],["881I","X",true],["881O","X",true],["881","X",true],["882","W",true],["883I","X",true],["883O","X",true],["883","X",true],["884","W",true],["885I","X",true],["885O","X",true],["885","X",true],["886","W",true],["887I","X",true],["887O","X",true],["887","X",true],["888","X",true],["889I","X",true],["889O","X",true],["889","X",true],["890","X",true],["891I","X",true],["891O","X",true],["891","X",true],["892","X",true],["893I","X",true],["893O","Y",true],["893","X",true],["894","X",true],["895I","Y",true],["895O","X",true],["895","X",true],["896","W",true],["897I","X",true],["897O","X",true],["897","X",true],["898","X",true],["899","W",true],["637I","W",false],["637O","V",false],["637","W",false],["638I","V",false],["638O","W",false],["638","W",false],["639","X",false],["640","X",false],["641","X",false],["642","X",false],["643","X",false],["644","X",false],["645","X",false],["646","X",false],["647","X",false],["648","X",false],["649I","W",false],["649O","W",false],["649","X",false],["650","X",false],["651","W",false],["652","W",false],["653","X",false],["654","X",false],["655","X",false],["656","X",false],["657","W",false],["658","X",false],["659","X",false],["660","X",false],["661","X",false],["662","X",false],["663","W",false],["664","X",false],["665","W",false],["666","X",false],["667","X",false],["668","X",false],["669","X",false],["670","X",false],["671","X",false],["672","X",false],["673","X",false],["674","X",false],["675","X",false],["676","X",false],["677","X",false],["678","X",false],["679","X",false],["680","X",false],["681","X",false],["682I","W",false],["682O","W",false],["682","X",false],["683","X",false],["684","W",false],["685","X",false],["690","X",false],["691","X",false],["692","X",false],["693","W",false],["694","W",false],["695","X",false],["696","X",false],["697","X",false],["698","W",false]]},"flight":{"dimensions":["Parking Apron Index","Arrival Time","Departure Time","Flight Number","VIP","Arrival Company","Departure Company","Arrival Line","Departure Line","Report Time"],"data":[[43,1496840400000,1496934000000,"M766OG",true,"QW","QW","XGF-HAC","HAC-CFA",1495360800000],[317,1496840400000,1496934000000,"Y3683",true,"AS","AS","MGT-HAC","HAC-YPP",1496830500000],[113,1496840400000,1496934000000,"Y3064",true,"AS","AS","KMS-HAC","HAC-YPP",1496123400000],[79,1496840400000,1496934000000,"Y4686",true,"WA","WA","RMX-DWH-HAC","HAC-XTL",1496744100000],[114,1496840400000,1496934000000,"Y4686",true,"WA","WA","RMX-DWH-HAC","HAC-XTL",1496744100000],[179,1496924700000,1496934000000,"Y4897",true,"AS","AS","MPT-HAC","HAC-KVP",1496916000000],[179,1496840400000,1496878800000,"Y4893",true,"AS","AS","STS-HAC","HAC-STS",1496828700000],[124,1496916600000,1496934000000,"Y3193",true,"AS","AS","GMZ-HAC","HAC-HSV",1496906100000],[124,1496840400000,1496934000000,"Y3683",true,"AS","AS","MGT-HAC","HAC-YPP",1496830500000],[197,1496914200000,1496934000000,"Y4890",true,"AS","AS","STS-HAC","HAC-KET",1496905500000],[197,1496840400000,1496882400000,"Y3846",true,"AS","AS","NRT-HAC","HAC-XAC",1496818800000],[171,1496907300000,1496934000000,"Y4328",true,"AS","AS","RXM-HAC","HAC-MPT",1496894100000],[171,1496840400000,1496875800000,"Y1334",true,"AS","AS","WOX-BGB-HAC","HAC-GBM",1496821200000],[169,1496913600000,1496934000000,"Y3703",true,"AS","AS","HSZ-HAC","HAC-BXF",1496904300000],[169,1496840400000,1496871900000,"Y8481",true,"AS","AS","RXM-HAC","HAC-GZL",1496807700000],[116,1496901300000,1496934000000,"Y4896",true,"AS","AS","KET-HAC","HAC-SUV",1496891400000],[116,1496840400000,1496880600000,"Y4620",true,"AS","AS","CRB-HAC","HAC-DMA",1496751900000],[121,1496920200000,1496934000000,"Y4223",true,"AS","AS","DFC-HAC","HAC-MPT",1496911800000],[121,1496840400000,1496874600000,"Y4974",true,"PB","PB","PNT-HAC","HAC-PNT",1496748000000],[295,1496840400000,1496934000000,"Y3349",true,"AS","AS","HSV-HAC","HAC-DNG-OSD",1496813400000],[38,1496840400000,1496934000000,"Y4263",true,"AS","AS","MPT-HAC","HAC-GZL",1496802600000],[119,1496840400000,1496875800000,"Y7649",true,"XA","XA","BMA-HAC","HAC-MTY",1496826900000],[132,1496911500000,1496934000000,"Y3021",true,"XA","XA","XPT-HAC","HAC-MPT",1496903700000],[305,1496840400000,1496874900000,"Y3186",true,"XA","XA","CRB-ASZ-HAC","HAC-DFS-FIX",1496807100000],[318,1496840400000,1496934000000,"EKXAD",true,"A8","A8","SPT-HAC","HAC-HSZ",1496230200000],[199,1496841000000,1496891400000,"Y3021",true,"XA","XA","MPT-HAC","HAC-XPT",1496833200000],[258,1496846100000,1496890500000,"Y3643",true,"XA","XA","KVP-HAC","HAC-HSZ",1496833200000],[298,1496840400000,1496877000000,"Y3644",true,"XA","XA","HSZ-HAC","HAC-HSV",1496830500000],[178,1496922900000,1496934000000,"Y7649",true,"XA","XA","SUV-HAC","HAC-ASZ-CRB",1496914800000],[178,1496843400000,1496880000000,"Y8383",true,"XA","XA","SIY-MTY-HAC","HAC-PSM-GBM",1496821500000],[96,1496927400000,1496934000000,"Y7606",true,"XA","XA","PSM-HAC","HAC-SAT",1496920200000],[96,1496840400000,1496878200000,"Y7604",true,"XA","XA","XTJ-PSM-HAC","HAC-WOX-BHJ",1496820600000],[90,1496874300000,1496934000000,"Y7391",true,"BT","BT","XGF-HAC","HAC-XGF",1496865300000],[90,1496840400000,1496853000000,"Y7425",true,"BT","BT","XGF-HAC","HAC-XGF",1496778900000],[86,1496840400000,1496934000000,"Y1640",true,"XA","XA","KVP-HAC","HAC-KVP",1494367800000],[272,1496922300000,1496934000000,"Y3913",true,"XA","XA","HSZ-HAC","HAC-DFS-WCY",1496913600000],[281,1496840400000,1496926800000,"Y7669",true,"FD","FD","PFO-HAC","HAC-PFO",1496772900000],[175,1496840400000,1496934000000,"Y4686",true,"WA","WA","RMX-DWH-HAC","HAC-XTL",1496744100000],[99,1496903100000,1496911500000,"M149UW",true,"UC","UC","RXM-HAC","HAC-PRC",1496887800000],[99,1496845800000,1496853000000,"M545KZ",true,"KL","KL","RXM-HAC","HAC-MIG",1496832000000],[202,1496919600000,1496934000000,"Y3249",true,"AS","AS","CRB-HAC","HAC-XTJ",1496909400000],[202,1496850900000,1496870100000,"Y1353",true,"0X","0X","HSV-AJA-HAC","HAC-HSZ",1496829900000],[46,1496917200000,1496917800000,"YNSP",true,"6V","6V","NZX-HAC","HAC-NZX",1496916000000],[46,1496907900000,1496908800000,"YNSR",true,"6V","6V","NZX-HAC","HAC-NZX",1496907000000],[46,1496847900000,1496867700000,"Y8228",true,"WA","WA","XWV-QMT-HAC","HAC-ZXC-CRB",1496830800000],[261,1496923800000,1496934000000,"Y3088",true,"XA","XA","ABR-HAC","HAC-ABR",1496917500000],[183,1496841300000,1496872200000,"Y1931",true,"SL","SL","HSZ-HAC","HAC-HSZ",1496831700000],[303,1496919300000,1496934000000,"Y3834",true,"AS","AS","STS-HAC","HAC-KAR",1496910000000],[303,1496840400000,1496877300000,"Y4301",true,"XA","XA","YKV-XTL-HAC","HAC-XTL",1496820600000],[267,1496926200000,1496934000000,"Y4324",true,"XA","XA","WHM-XTL-HAC","HAC-XTL",1496908500000],[267,1496844300000,1496866800000,"Y2112",true,"B1","B1","BRM-FIX-HAC","HAC-OSD-BRM",1496817300000],[123,1496916600000,1496934000000,"Y7631",true,"XA","XA","BMA-HAC","HAC-MTY",1496907000000],[123,1496843700000,1496875800000,"Y7603",true,"XA","XA","FIX-DFS-HAC","HAC-MZL",1496818800000],[59,1496857800000,1496860800000,"Y7102",true,"BT","BT","CRB-HAC","HAC-CRB",1496847600000],[168,1496916300000,1496934000000,"Y3521",true,"XZ","XZ","WZC-HAC","HAC-XGF",1496909100000],[168,1496840400000,1496874300000,"Y7630",true,"XA","XA","OBT-SHM-HAC","HAC-CRB-CMM",1496813700000],[200,1496904900000,1496924700000,"Y4746",true,"XA","XA","STS-HAC","HAC-MMT",1496896800000],[200,1496840400000,1496882400000,"Y3016",true,"WA","WA","PSM-HAC","HAC-DFC-XTJ",1496782200000],[263,1496897700000,1496913900000,"Y3351",true,"AS","AS","HSV-BGB-HAC","HAC-XGF",1496875500000],[263,1496840400000,1496872800000,"Y3370",true,"XA","XA","XGF-HAC","HAC-PNT",1496817300000],[85,1496915400000,1496934000000,"Y4418",true,"SF","SF","XPT-HAC","HAC-XPT",1496907900000],[85,1496894100000,1496909100000,"Y8006",true,"AS","AS","XTJ-PSM-HAC","HAC-OBR",1496875200000],[85,1496841600000,1496877300000,"Y8422",true,"B1","B1","SOW-SVG-HAC","HAC-SVG-SOW",1496818800000],[84,1496925600000,1496934000000,"Y8497",true,"SF","SF","GBM-HAC","HAC-STS-HSV",1496914200000],[84,1496906100000,1496917800000,"Y3802",true,"AS","AS","RMX-HAC","HAC-BYK",1496893200000],[84,1496840400000,1496881800000,"Y1832",false,"NF","NF","HSZ-HAC","HAC-HSZ",1496826300000],[42,1496928900000,1496934000000,"Y3089",true,"XA","XA","OQT-PNT-HAC","HAC-OQT",1496913300000],[42,1496840400000,1496885400000,"Y1424",true,"NF","NF","HSZ-HAC","HAC-HSZ",1496824200000],[214,1496840400000,1496867400000,"Y8537",true,"WA","WA","WOX-BRD-HAC","HAC-OBT-WOX",1496810400000],[285,1496924400000,1496934000000,"Y3142",true,"AS","AS","WOX-BGB-HAC","HAC-SUV",1496907600000],[285,1496840400000,1496873400000,"Y3428",true,"AS","AS","XPT-HAC","HAC-HSZ",1496823000000],[137,1496868900000,1496934000000,"Y7151",true,"AB","AB","XAC-HAC","HAC-XAC",1496860800000],[137,1496840400000,1496850000000,"Y7151",true,"AB","AB","XAC-HAC","HAC-XAC",1496774400000],[297,1496910000000,1496934000000,"Y1367",true,"AS","AS","WOX-HAC","HAC-BGB-WOX",1496895900000],[297,1496840400000,1496877900000,"Y1779",true,"AS","AS","OSD-DNG-HAC","HAC-PRC",1496815200000],[162,1496913000000,1496934000000,"Y4558",true,"AS","AS","DFC-HAC","HAC-DFS-SVG",1496903400000],[162,1496840400000,1496865900000,"Y3193",true,"AS","AS","XGF-HAC","HAC-DCM",1496829300000],[138,1496927700000,1496934000000,"Y8523",true,"AS","AS","HSV-HAC","HAC-HSV",1496912100000],[138,1496840400000,1496870400000,"Y4890",true,"AS","AS","MPT-HAC","HAC-XAC",1496829600000],[216,1496848500000,1496869200000,"Y8242",true,"AS","AS","SBM-HAC","HAC-GHM",1496840100000],[205,1496929800000,1496934000000,"Y8153",true,"XA","XA","SIY-MTY-HAC","HAC-MTY-SIY",1496907900000],[320,1496840400000,1496875200000,"Y4682",true,"AS","AS","XGF-HAC","HAC-SIY",1496820600000],[222,1496909700000,1496914800000,"Y1779",true,"AS","AS","PRC-HAC","HAC-SBM",1496895000000],[266,1496908800000,1496934000000,"Y8977",true,"SF","SF","ZPO-HAC","HAC-KVP",1496865600000],[266,1496850300000,1496871300000,"Y4533",true,"SF","SF","WOX-HAC","HAC-FIX-PST",1496836800000],[266,1496840400000,1496841000000,"Y4036",true,"SF","SF","XPT-HAC","HAC-XMH",1496821500000],[203,1496931000000,1496934000000,"Y0058",true,"NF","NF","KET-HAC","HAC-KET",1496921100000],[203,1496840400000,1496873700000,"Y3660",true,"XA","XA","SPG-HAC","HAC-MPT",1496821800000],[210,1496921400000,1496934000000,"Y3086",true,"XA","XA","KVP-HAC","HAC-KMS",1496908800000],[210,1496840400000,1496875200000,"Y1367",true,"AS","AS","KET-HAC","HAC-BGB-WOX",1496826900000],[112,1496931000000,1496934000000,"Y8209",true,"NF","NF","WOF-PNT-HAC","HAC-PNT-WOF",1496908500000],[112,1496840400000,1496875500000,"Y4618",true,"AS","AS","FIX-HAC","HAC-DFS-SVG",1496820300000],[50,1496899800000,1496913000000,"M391FK",true,"4C","4C","WCY-HAC","HAC-ZMX",1496871600000],[294,1496926200000,1496934000000,"Y7604",true,"XA","XA","BHJ-WOX-HAC","HAC-DFS-FIX",1496903700000],[294,1496845200000,1496876100000,"Y4639",true,"AS","AS","XPT-HAC","HAC-GMZ",1496838000000],[91,1496927700000,1496934000000,"Y8289",true,"AS","AS","YPP-HAC","HAC-SIY",1496917800000],[276,1496929800000,1496934000000,"Y8270",true,"SF","SF","SZP-HAC","HAC-CRB",1496925300000],[276,1496840400000,1496872200000,"Y8497",true,"SF","SF","SIY-MPT-HAC","HAC-CRB",1496815800000],[284,1496911200000,1496924400000,"Y8063",true,"AS","AS","MPT-HAC","HAC-SPG",1496903400000],[61,1496840400000,1496871600000,"Y8157",true,"AS","AS","XTJ-HAC","HAC-HBC",1496819100000],[312,1496886600000,1496913600000,"Y3887",true,"XA","XA","SZP-HAC","HAC-HBW",1496882100000],[271,1496931900000,1496934000000,"Y7633",true,"XA","XA","PNT-HAC","HAC-CRB-CMM",1496924400000],[271,1496847600000,1496874000000,"Y8373",true,"XA","XA","SIY-HAC","HAC-XPT",1496831400000],[125,1496842800000,1496878500000,"Y4588",true,"AS","AS","XPT-HAC","HAC-CRB",1496834400000],[254,1496902200000,1496927400000,"Y4036",true,"SF","SF","XMH-HAC","HAC-YMV",1496874600000],[75,1496931600000,1496934000000,"Y3019",true,"WA","WA","OSD-ZEZ-HAC","HAC-DFC-XTJ",1496914200000],[75,1496906400000,1496920800000,"Y4677",true,"AS","AS","HSV-HAC","HAC-MGT",1496889900000],[75,1496840400000,1496878200000,"Y1020",true,"NF","NF","HSZ-HAC","HAC-HSZ",1496831400000],[118,1496919300000,1496934000000,"Y8359",true,"NF","NF","HSZ-HAC","HAC-HSZ",1496910600000],[118,1496899800000,1496909700000,"Y8026",true,"AS","AS","DFC-HAC","HAC-CRB",1496890800000],[118,1496844900000,1496865600000,"Y1352",true,"0X","0X","HSZ-HAC","HAC-PSM-XTJ",1496835600000],[76,1496899200000,1496903100000,"Y2626",true,"YP","YP","GHM-HAC","HAC-GHM",1496887500000],[76,1496843100000,1496876100000,"Y2047",false,"XZ","XZ","KVP-HAC","HAC-KVP",1496831100000],[44,1496931300000,1496934000000,"Y8327",true,"0X","0X","HSZ-HAC","HAC-CRB",1496922000000],[44,1496903700000,1496910600000,"Y1832",true,"NF","NF","HSZ-HAC","HAC-HSZ",1496894700000],[44,1496894400000,1496898300000,"Y3521",true,"XZ","XZ","XGF-HAC","HAC-WZC",1496885400000],[44,1496845200000,1496866200000,"Y3017",true,"WA","WA","OSD-RJM-HAC","HAC-XTL",1496827800000],[308,1496928000000,1496934000000,"Y8492",true,"PB","PB","PNT-HAC","HAC-PNT",1496920800000],[308,1496898000000,1496909400000,"Y0060",true,"AS","AS","CUM-HAC","HAC-SIY",1496891100000],[308,1496891100000,1496895600000,"Y4418",true,"SF","SF","XPT-HAC","HAC-XPT",1496883000000],[308,1496840400000,1496870700000,"Y3834",true,"AS","AS","STS-HAC","HAC-KAR",1496823600000],[73,1496926800000,1496934000000,"Y1020",true,"NF","NF","HSZ-HAC","HAC-HSZ",1496917800000],[73,1496898600000,1496909100000,"Y3436",true,"AS","AS","BXF-HAC","HAC-BGB-HSV",1496889000000],[73,1496875800000,1496890800000,"Y7633",true,"XA","XA","GCM-HAC","HAC-YUQ",1496869500000],[73,1496843400000,1496871000000,"Y4312",true,"SF","SF","SZP-HAC","HAC-CNM-CFA",1496838900000],[128,1496922000000,1496934000000,"Y7710",true,"NF","NF","HSZ-HAC","HAC-HSZ",1496912700000],[128,1496904000000,1496911800000,"Y4312",true,"SF","SF","CFA-CNM-HAC","HAC-MPT",1496888700000],[128,1496890800000,1496894400000,"Y8972",true,"0X","0X","HSZ-HAC","HAC-HSZ",1496881500000],[128,1496840400000,1496873100000,"Y3143",true,"AS","AS","CRB-HAC","HAC-OQT",1496823000000],[134,1496840400000,1496934000000,"Y6922",true,"Q4","Q4","SPT-HAC","HAC-DFH",1496722200000],[217,1496896500000,1496911200000,"Y3497",true,"XA","XA","WCY-DFS-HAC","HAC-HSZ",1496854800000],[217,1496840400000,1496878500000,"Y8294",true,"WA","WA","XTJ-MPT-HAC","HAC-MPT-XTJ",1496815800000],[4,1496922600000,1496934000000,"Y8531",true,"XZ","XZ","KVP-HAC","HAC-KVP",1496910300000],[4,1496905200000,1496911800000,"Y4587",true,"AS","AS","DFC-HAC","HAC-DFC",1496895600000],[4,1496886000000,1496899200000,"Y7277",true,"SF","SF","XPT-HAC","HAC-XGF",1496878200000],[4,1496850600000,1496865900000,"Y0050",true,"KM","KM","XPT-HAC","HAC-MPT",1496843100000],[4,1496840400000,1496843400000,"Y8626",true,"SF","SF","GBM-HAC","HAC-SZP",1496827800000],[45,1496933700000,1496934000000,"Y3212",true,"SL","SL","OQT-YSB-HAC","HAC-YSB-OQT",1496918400000],[45,1496891700000,1496896800000,"Y3834",true,"AS","AS","KAR-HAC","HAC-STS",1496883000000],[45,1496840400000,1496881800000,"Y3498",true,"XA","XA","HSZ-HAC","HAC-KVP",1496827200000],[196,1496918100000,1496934000000,"Y2369",true,"WA","WA","SIY-SUV-HAC","HAC-RJM-OSD",1496896200000],[196,1496894400000,1496907300000,"Y3660",true,"XA","XA","MPT-HAC","HAC-STS",1496885700000],[196,1496882400000,1496886000000,"Y8087",true,"NU","NU","GHM-HAC","HAC-GHM",1496871000000],[54,1496909400000,1496918700000,"Y2599",true,"SF","SF","CMM-CRB-HAC","HAC-XPT",1496890200000],[54,1496896200000,1496903400000,"Y1762",true,"NF","NF","BMG-HSZ-HAC","HAC-HSZ-BMG",1496876400000],[54,1496883900000,1496889000000,"Y4224",true,"AS","AS","KVP-HAC","HAC-KVP",1496871900000],[54,1496876400000,1496880900000,"Y8180",true,"6F","6F","XGF-HAC","HAC-XPT",1496866800000],[54,1496840400000,1496867400000,"Y3692",true,"XA","XA","KVP-HAC","HAC-XGF",1496822400000],[255,1496927700000,1496934000000,"Y8127",true,"SL","SL","HSZ-HAC","HAC-HSZ",1496918100000],[255,1496907600000,1496912400000,"Y4634",true,"AS","AS","STS-HAC","HAC-GMZ",1496898900000],[255,1496889600000,1496901000000,"Y7608",true,"XA","XA","RMX-CRB-HAC","HAC-MMB",1496871600000],[255,1496840400000,1496872800000,"Y3985",true,"XZ","XZ","WZC-HAC","HAC-XGF",1496822700000],[78,1496921100000,1496934000000,"Y4612",true,"XZ","XZ","GHM-HAC","HAC-GHM",1496910000000],[78,1496897100000,1496908500000,"Y3088",true,"XA","XA","OQT-HAC","HAC-ABR",1496889000000],[78,1496883300000,1496886900000,"Y4786",true,"XZ","XZ","GHM-HAC","HAC-GHM",1496872200000],[78,1496844600000,1496870100000,"Y3568",true,"NF","NF","KET-HAC","HAC-KET",1496834700000],[270,1496917500000,1496927100000,"Y8501",true,"SF","SF","HSV-STS-HAC","HAC-SZP",1496893800000],[270,1496908200000,1496913000000,"Y2106",true,"XZ","XZ","GHM-HAC","HAC-GHM",1496896500000],[270,1496897400000,1496901900000,"Y8521",true,"AS","AS","MPT-HAC","HAC-HBC",1496889000000],[270,1496889300000,1496893800000,"Y3128",true,"NF","NF","OSD-CRB-HAC","HAC-CRB-OSD",1496871000000],[270,1496880300000,1496883900000,"Y8639",true,"HX","HX","GMZ-HAC","HAC-GMZ-DVS",1496870100000],[270,1496840400000,1496871600000,"Y8044",true,"XA","XA","FIX-PDV-HAC","HAC-PDV-FIX",1496814900000],[322,1496927400000,1496934000000,"Y8119",true,"XA","XA","MPT-HAC","HAC-XGF",1496919600000],[322,1496917800000,1496925000000,"Y8309",true,"XA","XA","OSD-DFS-HAC","HAC-GCM",1496900100000],[322,1496904900000,1496909400000,"Y3350",true,"AS","AS","MPT-HAC","HAC-QWA-HSZ",1496896200000],[322,1496895900000,1496899800000,"Y4897",true,"AS","AS","XPT-HAC","HAC-MPT",1496888700000],[322,1496888400000,1496892000000,"Y3324",true,"XZ","XZ","PDV-HAC","HAC-PDV",1496882400000],[322,1496879700000,1496883600000,"Y4403",true,"XA","XA","CRB-HAC","HAC-CRB",1496869800000],[322,1496840400000,1496873400000,"Y4393",true,"AS","AS","GHM-HAC","HAC-XTL-PIB",1496827800000],[238,1496930100000,1496934000000,"Y3186",true,"XA","XA","FIX-DFS-HAC","HAC-WOX-NWT",1496905200000],[238,1496924400000,1496928000000,"Y1322",true,"XA","XA","HBC-HAC","HAC-HBC",1496918700000],[238,1496912700000,1496920200000,"Y3386",true,"AS","AS","XGF-HAC","HAC-MPT",1496903400000],[238,1496901600000,1496905200000,"Y8580",true,"XZ","XZ","XPT-HAC","HAC-XPT",1496893500000],[238,1496893500000,1496897100000,"Y3312",true,"XA","XA","STS-HAC","HAC-STS",1496884800000],[238,1496885700000,1496889300000,"Y3653",true,"NF","NF","CRB-QTH-HAC","HAC-QTH-CRB",1496871000000],[238,1496840400000,1496874300000,"Y4504",true,"XZ","XZ","WJZ-GHM-HAC","HAC-GHM",1496813400000],[198,1496922600000,1496928600000,"Y8784",true,"SF","SF","XTL-HAC","HAC-SZP",1496913600000],[198,1496913600000,1496917500000,"Y3643",true,"XA","XA","HSZ-HAC","HAC-HSZ",1496904000000],[198,1496903700000,1496907900000,"Y1200",true,"XZ","XZ","STS-HAC","HAC-STS",1496895300000],[198,1496889000000,1496893200000,"Y4890",true,"AS","AS","XAC-HAC","HAC-STS",1496880900000],[198,1496879400000,1496884200000,"Y2107",true,"XZ","XZ","XPT-HAC","HAC-XPT",1496871900000],[198,1496842500000,1496868300000,"Y3089",true,"XA","XA","OQT-PNT-HAC","HAC-SZP",1496826900000],[219,1496919000000,1496923500000,"Y8639",true,"HX","HX","DVS-GMZ-HAC","HAC-GMZ",1496902200000],[219,1496912100000,1496916600000,"Y3396",true,"XZ","XZ","XGF-HAC","HAC-XGF",1496903400000],[219,1496900400000,1496904000000,"Y8180",true,"6F","6F","XPT-HAC","HAC-XPT",1496892300000],[219,1496878800000,1496887500000,"Y3142",true,"AS","AS","XTL-HAC","HAC-WOX",1496870400000],[219,1496847000000,1496865600000,"Y4288",true,"B1","B1","BMG-SUV-HAC","HAC-NRT",1496829300000],[316,1496840400000,1496901600000,"Y2238",true,"Q4","Q4","KMS-HAC","HAC-ASZ",1496815200000],[316,1496840400000,1496901600000,"Y2238",true,"Q4","Q4","KMS-HAC","HAC-ASZ",1496815200000],[10,1496925600000,1496934000000,"Y4599",true,"AS","AS","FIX-HAC","HAC-XPT",1496906700000],[10,1496918700000,1496922300000,"Y8080",true,"XA","XA","CRB-HAC","HAC-CRB",1496909100000],[10,1496910900000,1496915100000,"Y2436",true,"PM","PM","HQD-HAC","HAC-HQD",1496899800000],[10,1496901300000,1496904900000,"Y3229",true,"6F","6F","XGF-HAC","HAC-XGF",1496892300000],[10,1496888700000,1496896200000,"Y8680",true,"NF","NF","HSZ-HAC","HAC-HSZ",1496879700000],[10,1496880300000,1496883900000,"Y1460",true,"SL","SL","HSZ-HAC","HAC-HSZ",1496871300000],[10,1496840400000,1496876400000,"Y3436",true,"AS","AS","KET-QQM-HAC","HAC-BXF",1496825700000],[147,1496921100000,1496934000000,"Y3803",true,"AS","AS","SUV-HAC","HAC-AZG",1496913000000],[147,1496912100000,1496918100000,"Y3340",true,"XA","XA","XGF-HAC","HAC-HBC",1496903700000],[147,1496895000000,1496898600000,"Y1323",true,"XA","XA","SZP-HAC","HAC-SZP",1496890200000],[147,1496887200000,1496891400000,"Y4276",true,"HX","HX","GZL-HJW-HAC","HAC-HJW-GZL",1496871000000],[147,1496878500000,1496882400000,"Y4587",true,"AS","AS","XPT-HAC","HAC-DFC",1496871000000],[147,1496844900000,1496869500000,"Y3166",true,"AS","AS","OBR-HAC","HAC-NRT",1496834400000],[147,1496840400000,1496841300000,"Y3109",true,"NF","NF","MPT-HAC","HAC-MPT",1496829900000],[283,1496919900000,1496923500000,"Y4779",true,"XZ","XZ","XPT-HAC","HAC-XPT",1496911200000],[283,1496910000000,1496914800000,"Y3572",true,"NF","NF","XGF-HAC","HAC-XGF",1496901000000],[283,1496896800000,1496902800000,"Y7603",true,"XA","XA","MZL-HAC","HAC-PDV-FIX",1496888100000],[283,1496889300000,1496892900000,"Y4448",true,"NU","NU","STS-HAC","HAC-STS",1496880300000],[283,1496879400000,1496884500000,"Y3082",true,"XZ","XZ","STS-HAC","HAC-KET",1496871000000],[283,1496844900000,1496866800000,"Y2368",true,"WA","WA","XTJ-DFC-HAC","HAC-ZEZ-OSD",1496821800000],[77,1496926500000,1496934000000,"Y8314",true,"AS","AS","MGT-HAC","HAC-HBC",1496916900000],[77,1496919900000,1496923500000,"Y8699",true,"NU","NU","XTJ-STS-HAC","HAC-STS",1496893500000],[77,1496912400000,1496917200000,"Y8367",true,"VF","VF","XGF-ABR-HAC","HAC-ABR-XGF",1496898300000],[77,1496905500000,1496908500000,"Y7379",true,"XA","XA","XTL-HAC","HAC-XTL-SVG",1496896800000],[77,1496895600000,1496899800000,"Y8242",true,"AS","AS","GHM-HAC","HAC-MGT",1496883900000],[77,1496887800000,1496892000000,"Y8614",true,"NF","NF","PNT-HAC","HAC-PNT-OFN",1496880000000],[77,1496878500000,1496882700000,"Y4599",true,"AS","AS","XGF-HAC","HAC-FIX",1496870400000],[77,1496848200000,1496868600000,"Y8501",true,"SF","SF","PST-FIX-HAC","HAC-STS-HSV",1496818800000],[77,1496840400000,1496841600000,"Y1658",true,"XA","XA","HBC-HAC","HAC-HBC",1496832300000],[279,1496923200000,1496934000000,"Y3840",true,"AS","AS","SIY-HAC","HAC-CUM",1496906400000],[279,1496908800000,1496914200000,"Y8228",true,"WA","WA","CRB-ZXC-HAC","HAC-PSM-MGT",1496889600000],[279,1496900100000,1496905200000,"Y4639",true,"AS","AS","GMZ-HAC","HAC-PSM-XTJ",1496890200000],[279,1496891100000,1496895000000,"Y4346",true,"NU","NU","HSZ-HAC","HAC-HSZ",1496881800000],[279,1496878800000,1496887200000,"Y4634",true,"AS","AS","MMT-HAC","HAC-STS",1496873700000],[279,1496850300000,1496871900000,"Y8522",true,"AS","AS","DMA-HAC","HAC-MMT",1496842800000],[279,1496840400000,1496842200000,"Y8506",true,"SF","SF","GZL-MTY-HAC","HAC-SZP",1496819700000],[1,1496933400000,1496934000000,"Y4638",true,"AS","AS","SZP-HAC","HAC-SZP",1496928900000],[1,1496919600000,1496923200000,"Y8483",true,"AS","AS","XTJ-BMG-HAC","HAC-ASZ",1496898300000],[1,1496911200000,1496916900000,"Y4343",true,"NU","NU","HSZ-HAC","HAC-HSZ",1496901300000],[1,1496904600000,1496908200000,"Y1460",true,"SL","SL","HSZ-HAC","HAC-HSZ",1496895900000],[1,1496895900000,1496899500000,"Y3428",true,"AS","AS","HSZ-HAC","HAC-KET",1496886300000],[1,1496888100000,1496892600000,"Y3086",true,"XA","XA","HSZ-HAC","HAC-KVP",1496879700000],[1,1496879100000,1496883000000,"Y3350",true,"AS","AS","MPT-HAC","HAC-MPT",1496871300000],[1,1496850300000,1496870400000,"Y3803",true,"AS","AS","BYK-HAC","HAC-HQD",1496842200000],[1,1496840400000,1496841300000,"Y1713",true,"KM","KM","XTL-HAC","HAC-XTL",1496828700000],[235,1496923500000,1496934000000,"Y4893",true,"AS","AS","STS-HAC","HAC-XPT",1496915100000],[235,1496905500000,1496913300000,"Y8653",true,"SF","SF","SVG-GVM-HAC","HAC-PDV",1496889000000],[235,1496896200000,1496900700000,"Y4223",true,"AS","AS","HBC-HAC","HAC-DFC",1496890800000],[235,1496886900000,1496892900000,"Y4288",true,"B1","B1","NRT-HAC","HAC-SUV-BMG",1496877900000],[235,1496878200000,1496882100000,"Y8158",true,"AS","AS","PSM-HAC","HAC-XTJ",1496871900000],[235,1496844600000,1496868900000,"Y3750",true,"NF","NF","WOF-PNT-HAC","HAC-PNT-WOF",1496822100000],[264,1496925900000,1496934000000,"Y8281",true,"XA","XA","FIX-PDV-HAC","HAC-PDV-FIX",1496901300000],[264,1496916300000,1496920800000,"Y3278",true,"AS","AS","HSV-HAC","HAC-XTL",1496899800000],[264,1496896200000,1496900700000,"Y8784",true,"SF","SF","KET-HAC","HAC-XTL",1496886900000],[264,1496886300000,1496892900000,"Y3144",true,"AS","AS","XGF-HAC","HAC-QQM-KET",1496877300000],[264,1496876100000,1496880000000,"Y4329",true,"AS","AS","ASZ-HAC","HAC-KVP",1496872200000],[264,1496848800000,1496870400000,"Y8059",true,"AS","AS","CRB-HAC","HAC-XPT",1496838300000],[264,1496840400000,1496843100000,"Y1356",true,"KM","KM","MPT-HAC","HAC-XPT",1496830800000],[256,1496913900000,1496919600000,"Y4618",true,"AS","AS","SVG-DFS-HAC","HAC-XPT",1496895900000],[256,1496906700000,1496910300000,"Y8316",true,"AS","AS","OQT-HAC","HAC-SUV",1496897400000],[256,1496895600000,1496900700000,"Y7649",true,"XA","XA","MTY-HAC","HAC-SUV",1496887200000],[256,1496886600000,1496891700000,"Y3193",false,"AS","AS","DCM-HAC","HAC-GMZ",1496877600000],[256,1496873700000,1496879100000,"Y8026",true,"AS","AS","SZP-HAC","HAC-DFC",1496868600000],[256,1496840400000,1496869200000,"Y0089",true,"AS","AS","KET-PSM-HAC","HAC-QFS",1496823000000],[187,1496930700000,1496934000000,"Y8424",true,"WA","WA","GHM-SQQ-HAC","HAC-SWT-SIY",1496904600000],[187,1496916900000,1496923200000,"Y3279",true,"AS","AS","XPT-HAC","HAC-PSM",1496909400000],[187,1496899800000,1496907000000,"Y4603",true,"UN","UN","HSZ-HAC","HAC-HSZ",1496890800000],[187,1496890800000,1496895300000,"Y3720",true,"XA","XA","SIY-HAC","HAC-SIY",1496874000000],[187,1496879100000,1496882700000,"Y3896",true,"SF","SF","PNT-HAC","HAC-MTY-GZL",1496871900000],[187,1496849700000,1496874900000,"Y4897",true,"AS","AS","GMZ-HAC","HAC-XPT",1496839800000],[299,1496929500000,1496934000000,"Y2112",true,"B1","B1","BRM-OSD-HAC","HAC-FIX-BRM",1496902200000],[299,1496916900000,1496922000000,"Y3370",true,"XA","XA","MPT-HAC","HAC-PDV",1496908800000],[299,1496907600000,1496913000000,"Y4588",true,"AS","AS","CRB-HAC","HAC-MPT",1496897700000],[299,1496897700000,1496901900000,"Y0039",true,"XA","XA","XTJ-GZL-HAC","HAC-GZL-XTJ",1496875800000],[299,1496890200000,1496893800000,"Y4761",true,"XA","XA","SVG-XTL-HAC","HAC-XTL",1496871900000],[299,1496881200000,1496884800000,"Y4324",true,"XA","XA","XTL-HAC","HAC-XTL-WHM",1496871900000],[299,1496849400000,1496876700000,"Y8521",true,"AS","AS","WZG-SUV-HAC","HAC-MPT",1496830200000],[56,1496840400000,1496934000000,"Y1807",true,"Q4","Q4","HBC-HAC","HAC-CRB",1495926000000],[278,1496925900000,1496929500000,"Y1154",true,"KM","KM","MPT-HAC","HAC-XPT",1496917200000],[278,1496907300000,1496914200000,"Y1424",true,"NF","NF","HSZ-HAC","HAC-HSZ",1496898300000],[278,1496892300000,1496894400000,"Y3338",true,"XA","XA","XGF-HAC","HAC-KET",1496883000000],[278,1496883600000,1496888400000,"Y0047",true,"XA","XA","OKU-HAC","HAC-STS",1496876700000],[278,1496875500000,1496879100000,"Y2174",true,"NU","NU","ULX-HAC","HAC-CNM-HSV",1496870400000],[278,1496849100000,1496868300000,"Y8159",true,"0X","0X","XTJ-PSM-HAC","HAC-DTM-OSD",1496829900000],[102,1496923200000,1496934000000,"Y8294",true,"WA","WA","XTJ-MPT-HAC","HAC-MPT-XTJ",1496902200000],[102,1496904000000,1496907900000,"Y1601",true,"NF","NF","GZL-MTY-HAC","HAC-MTY-GZL",1496887500000],[102,1496898000000,1496901600000,"Y4378",true,"XZ","XZ","GHM-HAC","HAC-GHM",1496886000000],[102,1496891700000,1496895900000,"Y1682",true,"SL","SL","HJQ-HAC","HAC-HJQ",1496886300000],[102,1496881800000,1496885700000,"Y8088",true,"NU","NU","XPT-HAC","HAC-HSZ",1496873700000],[102,1496841900000,1496874300000,"Y4894",true,"AS","AS","GBM-HAC","HAC-SUV",1496832000000],[287,1496930100000,1496934000000,"Y7347",true,"SF","SF","XTL-HAC","HAC-OSD",1496920800000],[287,1496920800000,1496925300000,"Y8686",true,"B1","B1","GMZ-HAC","HAC-GMZ",1496910300000],[287,1496910300000,1496917200000,"Y4861",true,"SF","SF","XPT-HAC","HAC-SZP",1496902500000],[287,1496902200000,1496905800000,"Y1327",true,"XA","XA","HSV-HAC","HAC-HSV",1496887200000],[287,1496893200000,1496896800000,"Y0059",true,"0X","0X","CRB-HAC","HAC-HQD",1496883000000],[287,1496884200000,1496887800000,"Y8477",true,"YP","YP","GHM-HAC","HAC-MMT",1496871900000],[287,1496876100000,1496880300000,"Y3332",true,"0X","0X","HSZ-HAC","HAC-HSZ",1496867400000],[287,1496846700000,1496873700000,"Y7648",true,"XA","XA","SZP-HAC","HAC-ASZ-CRB",1496842200000],[250,1496928900000,1496934000000,"Y8506",true,"SF","SF","CFA-HAC","HAC-WOX-QNF",1496920200000],[250,1496914800000,1496921400000,"Y1423",true,"NF","NF","HSZ-HAC","HAC-HSZ",1496905500000],[250,1496901300000,1496905800000,"Y3400",true,"XZ","XZ","XGF-HAC","HAC-XGF",1496892300000],[250,1496877600000,1496888700000,"Y4558",true,"AS","AS","SUV-HAC","HAC-DFC",1496870100000],[250,1496845500000,1496866500000,"Y0047",true,"XA","XA","PNT-HAC","HAC-OKU",1496838000000],[230,1496932200000,1496934000000,"Y3136",true,"0X","0X","HQD-HAC","HAC-PSM-XTJ",1496921700000],[230,1496924100000,1496927700000,"Y0097",true,"NF","NF","MPT-HAC","HAC-MPT",1496916300000],[230,1496912400000,1496916900000,"Y3698",true,"0X","0X","HSZ-HAC","HAC-HSZ",1496903100000],[230,1496904600000,1496908200000,"Y1036",true,"0X","0X","HSZ-HAC","HAC-HSZ",1496895300000],[230,1496887200000,1496890500000,"Y1999",true,"0X","0X","XPT-HAC","HAC-BMA-GHM",1496878800000],[230,1496877600000,1496881500000,"Y2822",true,"NU","NU","STS-HAC","HAC-ULX-SIY",1496869500000],[230,1496843700000,1496875200000,"Y3802",true,"AS","AS","SUV-HAC","HAC-RMX",1496835300000],[170,1496923800000,1496927700000,"Y1577",true,"KM","KM","XTL-HAC","HAC-XTL",1496915100000],[170,1496914500000,1496919000000,"Y3042",true,"6F","6F","XPT-HAC","HAC-XPT",1496906700000],[170,1496901600000,1496905800000,"Y3846",true,"AS","AS","XAC-HAC","HAC-GBM",1496893200000],[170,1496889900000,1496896200000,"Y8059",true,"AS","AS","XPT-HAC","HAC-CRB",1496882400000],[170,1496883000000,1496886600000,"Y3393",true,"XZ","XZ","DFS-HAC","HAC-DFS",1496876400000],[268,1496921700000,1496925300000,"Y8133",true,"TQ","TQ","SIY-CFA-HAC","HAC-STS",1496898900000],[268,1496916300000,1496923200000,"Y8454",true,"SF","SF","DVU-PSM-HAC","HAC-PNT",1496899800000],[268,1496907600000,1496911200000,"Y7633",true,"XA","XA","YUQ-HAC","HAC-PNT",1496900700000],[268,1496899500000,1496903700000,"Y4407",true,"HX","HX","BMG-HAC","HAC-BMG",1496887200000],[268,1496890500000,1496895000000,"Y8789",true,"XZ","XZ","WOX-SUV-HAC","HAC-SUV-WOX",1496872800000],[268,1496882700000,1496886300000,"Y4528",true,"PM","PM","MZB-HAC","HAC-IRA-MZB",1496870100000],[268,1496874300000,1496877900000,"Y8454",true,"SF","SF","SZP-HAC","HAC-PSM-DVU",1496870100000],[268,1496849700000,1496866200000,"Y3234",true,"KM","KM","SUV-HAC","HAC-GMZ",1496841900000],[195,1496927100000,1496934000000,"Y3660",true,"XA","XA","STS-HAC","HAC-SZP",1496919300000],[195,1496914500000,1496918100000,"Y8087",true,"NU","NU","GHM-HAC","HAC-GHM",1496902200000],[195,1496903400000,1496907900000,"Y1157",true,"GE","GE","OCZ-XGF-HAC","HAC-XGF-OCZ",1496877600000],[195,1496897400000,1496900400000,"Y3518",true,"GE","GE","OAB-XPT-HAC","HAC-XPT-OAB",1496878200000],[195,1496889600000,1496894100000,"Y3692",true,"XA","XA","XGF-HAC","HAC-PLD-KVP",1496880600000],[195,1496880000000,1496884200000,"Y1430",true,"NF","NF","MPT-HAC","HAC-MPT",1496872200000],[195,1496847300000,1496867400000,"Y1999",true,"0X","0X","OSD-ABR-HAC","HAC-XPT",1496830500000],[260,1496932800000,1496934000000,"Y3139",true,"SL","SL","RMX-BRS-HAC","HAC-BRS-RMX",1496916000000],[260,1496916000000,1496919900000,"Y0093",true,"NF","NF","KET-HAC","HAC-KET",1496906400000],[260,1496910900000,1496911500000,"Y3644",true,"XA","XA","HSV-HAC","HAC-CRB-RMX",1496895000000],[260,1496901000000,1496904600000,"Y8997",true,"SL","SL","HSZ-HAC","HAC-HSZ",1496892300000],[260,1496890500000,1496894100000,"Y3166",true,"AS","AS","NRT-HAC","HAC-XTL",1496881200000],[260,1496881800000,1496889000000,"Y8617",true,"UN","UN","HSZ-HAC","HAC-HSZ",1496872800000],[260,1496873700000,1496877300000,"Y4144",true,"SF","SF","SZP-HAC","HAC-MPT-SIY",1496869200000],[260,1496844300000,1496868900000,"Y2369",true,"WA","WA","GHM-WLB-HAC","HAC-SUV-SIY",1496818200000],[321,1496926200000,1496934000000,"Y4894",true,"AS","AS","KVP-HAC","HAC-HQD",1496914200000],[321,1496914500000,1496920500000,"Y7630",true,"XA","XA","CMM-CRB-HAC","HAC-XTW",1496896200000],[321,1496905800000,1496910000000,"Y8574",true,"PM","PM","MZB-UFT-HAC","HAC-UFT-MZB",1496888100000],[321,1496892000000,1496898900000,"Y4387",true,"AS","AS","MPT-HAC","HAC-GHM",1496883600000],[321,1496880000000,1496883000000,"Y1200",true,"XZ","XZ","KET-HAC","HAC-STS",1496870700000],[321,1496845800000,1496867100000,"Y8192",true,"0X","0X","HQD-HAC","HAC-CRB",1496835300000],[104,1496932200000,1496934000000,"Y4312",true,"SF","SF","MPT-HAC","HAC-CNM-CFA",1496924400000],[104,1496915700000,1496925900000,"Y2699",true,"WA","WA","WOX-OBT-HAC","HAC-PSM",1496896800000],[104,1496899800000,1496903700000,"Y2629",true,"PM","PM","MZB-IRA-HAC","HAC-MZB",1496880600000],[104,1496893500000,1496896200000,"Y3370",true,"XA","XA","PNT-HAC","HAC-MPT",1496885700000],[104,1496882700000,1496886300000,"Y4246",true,"MH","MH","HQD-HAC","HAC-HQD",1496871900000],[104,1496846700000,1496879400000,"Y8314",true,"AS","AS","BRS-HAC","HAC-MGT",1496839800000],[315,1496929500000,1496934000000,"Y2047",true,"XZ","XZ","KVP-HAC","HAC-KVP",1496917500000],[315,1496918100000,1496924400000,"Y3656",true,"XA","XA","KVP-HAC","HAC-MZL",1496905200000],[315,1496910600000,1496915700000,"Y8940",true,"1O","1O","PNT-HAC","HAC-PNT",1496902800000],[315,1496899200000,1496906100000,"Y8982",true,"AS","AS","KVP-HAC","HAC-KET",1496887800000],[315,1496885400000,1496890800000,"Y2117",true,"NF","NF","HSZ-HAC","HAC-KET",1496876400000],[315,1496840400000,1496872200000,"Y3887",true,"XA","XA","HSZ-HAC","HAC-SZP",1496828100000],[301,1496933100000,1496934000000,"Y3498",true,"XA","XA","SZP-HAC","HAC-SZP",1496928600000],[301,1496922600000,1496926500000,"Y3379",true,"LJ","LJ","XPT-HAC","HAC-XPT",1496914800000],[301,1496911500000,1496916000000,"Y8568",true,"XZ","XZ","KVP-HAC","HAC-KVP",1496899200000],[301,1496903100000,1496907600000,"Y3888",true,"XA","XA","KVP-HAC","HAC-KVP",1496890800000],[301,1496892600000,1496899200000,"Y3912",true,"XA","XA","KVP-HAC","HAC-KVP",1496880000000],[301,1496847000000,1496872800000,"Y3913",true,"XA","XA","HSZ-HAC","HAC-HSZ",1496837700000],[57,1496932800000,1496934000000,"Y8287",true,"AS","AS","XPT-HAC","HAC-DFC",1496924400000],[57,1496920500000,1496925000000,"Y4477",true,"SF","SF","MPT-HAC","HAC-SZP",1496912400000],[57,1496911800000,1496915700000,"Y7708",true,"NF","NF","DFC-HAC","HAC-DFC",1496902800000],[57,1496900100000,1496905200000,"Y1334",true,"AS","AS","GBM-HAC","HAC-GZL",1496890500000],[57,1496886900000,1496895000000,"Y4688",true,"WA","WA","MGT-PSM-HAC","HAC-DWH-RMX",1496872800000],[57,1496879700000,1496883300000,"Y4251",true,"XA","XA","BRD-HAC","HAC-BRD",1496871900000],[57,1496847600000,1496873100000,"Y3312",true,"XA","XA","XGF-HAC","HAC-STS",1496838900000],[74,1496917200000,1496920200000,"Y8383",true,"XA","XA","GBM-PSM-HAC","HAC-MPT",1496898600000],[74,1496908500000,1496913300000,"Y3617",true,"XZ","XZ","XGF-HAC","HAC-XGF",1496899800000],[74,1496896800000,1496902500000,"Y3309",true,"AS","AS","SIY-HAC","HAC-XGF",1496879400000],[74,1496886900000,1496890500000,"Y8063",true,"AS","AS","DFC-HAC","HAC-MPT",1496878200000],[74,1496879100000,1496883300000,"Y2968",true,"NF","NF","DFS-HAC","HAC-DFS",1496871600000],[74,1496845200000,1496871600000,"Y8058",true,"AS","AS","QFA-HAC","HAC-DFC",1496837700000],[191,1496928600000,1496934000000,"Y8653",true,"SF","SF","PDV-HAC","HAC-WOX",1496922900000],[191,1496920500000,1496924100000,"Y7608",true,"XA","XA","MMB-HAC","HAC-WBT",1496913300000],[191,1496907900000,1496912400000,"Y4657",true,"XZ","XZ","KVP-HAC","HAC-KVP",1496895600000],[191,1496898300000,1496902200000,"Y4893",true,"AS","AS","STS-HAC","HAC-STS",1496889900000],[191,1496889900000,1496894700000,"Y4429",true,"XZ","XZ","KVP-HAC","HAC-KVP",1496877600000],[191,1496877900000,1496884200000,"Y4746",true,"XA","XA","MMT-HAC","HAC-STS",1496872800000],[191,1496843100000,1496869800000,"Y8653",true,"SF","SF","QNF-WOX-HAC","HAC-GVM-SVG",1496819400000],[176,1496921400000,1496934000000,"Y7634",true,"XA","XA","OQT-MMT-HAC","HAC-STS",1496903400000],[176,1496911200000,1496915400000,"Y3013",true,"HX","HX","GZL-HAC","HAC-GZL",1496899800000],[176,1496900400000,1496904000000,"Y8388",true,"NF","NF","PSM-HAC","HAC-PSM",1496894100000],[176,1496891400000,1496895300000,"Y8523",true,"AS","AS","STS-HAC","HAC-HSV",1496883000000],[176,1496878500000,1496888100000,"Y3656",true,"XA","XA","PDV-HAC","HAC-KVP",1496872200000],[176,1496842500000,1496867100000,"Y8200",true,"SF","SF","CFA-HAC","HAC-WOX",1496833800000],[133,1496929200000,1496934000000,"Y8062",true,"AS","AS","XPT-HAC","HAC-BMG-XTJ",1496920800000],[133,1496911500000,1496917200000,"Y7654",true,"LJ","LJ","XPT-HAC","HAC-XPT",1496905500000],[133,1496902500000,1496906400000,"Y8477",true,"YP","YP","MMT-HAC","HAC-GHM",1496896800000],[133,1496893200000,1496898000000,"Y3318",true,"XA","XA","HSV-GZL-HAC","HAC-GZL-HSV",1496872800000],[133,1496886600000,1496890200000,"Y3703",true,"AS","AS","KVP-BRX-HAC","HAC-HSZ",1496867100000],[133,1496880300000,1496881800000,"Y7634",true,"XA","XA","STS-HAC","HAC-MMT-OQT",1496872200000],[133,1496843400000,1496867700000,"Y2168",true,"NU","NU","SIY-ULX-HAC","HAC-STS-XTJ",1496822400000],[82,1496925900000,1496934000000,"Y7632",true,"XA","XA","WWT-KET-HAC","HAC-HSZ",1496903400000],[82,1496917200000,1496921100000,"Y8076",true,"XA","XA","XTL-HAC","HAC-XTL",1496908200000],[82,1496907600000,1496913900000,"Y3639",true,"AS","AS","HSZ-HAC","HAC-BRX-KVP",1496898300000],[82,1496896500000,1496900100000,"Y8497",true,"SF","SF","CRB-HAC","HAC-GBM",1496886600000],[82,1496883600000,1496893500000,"Y3089",true,"XA","XA","SZP-HAC","HAC-PNT-OQT",1496879100000],[82,1496875800000,1496879400000,"Y7632",true,"XA","XA","SUV-HAC","HAC-KET-WWT",1496867400000],[82,1496841300000,1496870700000,"Y4383",true,"AS","AS","HSV-HAC","HAC-MPT",1496825700000],[314,1496921700000,1496934000000,"Y8241",true,"AS","AS","GZL-HAC","HAC-STS",1496910900000],[314,1496912700000,1496916300000,"Y4682",true,"AS","AS","SIY-HAC","HAC-PNT",1496895600000],[314,1496902200000,1496906400000,"Y8211",true,"NF","NF","OFN-PNT-HAC","HAC-PNT",1496882700000],[314,1496893200000,1496897100000,"Y4289",true,"SF","SF","FIX-OSD-HAC","HAC-OSD-FIX",1496871300000],[314,1496885100000,1496889600000,"Y3340",true,"XA","XA","KVP-HAC","HAC-XGF",1496873400000],[314,1496875500000,1496878200000,"Y8309",true,"XA","XA","WBT-HAC","HAC-DFS-OSD",1496869500000],[314,1496840400000,1496868000000,"Y3086",true,"XA","XA","MMB-HAC","HAC-HSZ",1496826900000],[251,1496916900000,1496921100000,"Y4636",true,"AS","AS","XGF-HAC","HAC-SUV",1496907000000],[251,1496901000000,1496905500000,"Y1004",true,"XA","XA","SIY-STS-HAC","HAC-STS-SIY",1496876400000],[251,1496884500000,1496888400000,"Y7714",true,"XA","XA","WOX-HAC","HAC-WOX",1496872200000],[251,1496875200000,1496880900000,"Y3087",true,"XA","XA","MZL-HAC","HAC-DMA-XTJ",1496867700000],[251,1496847000000,1496871300000,"Y4638",true,"AS","AS","SZP-HAC","HAC-SZP",1496842500000],[189,1496918400000,1496934000000,"Y3166",true,"AS","AS","XTL-HAC","HAC-STS",1496910000000],[189,1496907300000,1496911200000,"Y4804",true,"XA","XA","PDV-HAC","HAC-PDV",1496901600000],[189,1496900700000,1496904600000,"Y0040",true,"XA","XA","XTJ-HAC","HAC-XTJ",1496884800000],[189,1496890200000,1496894700000,"Y4619",true,"AS","AS","PNT-HAC","HAC-PNT",1496882100000],[189,1496879400000,1496883000000,"Y3094",true,"6F","6F","CRB-HAC","HAC-CRB",1496869500000],[189,1496869800000,1496873700000,"Y8784",true,"SF","SF","SZP-HAC","HAC-KET",1496865600000],[189,1496850000000,1496866500000,"Y0018",true,"KM","KM","GMZ-HAC","HAC-SUV",1496839800000],[51,1496931000000,1496934000000,"Y1334",true,"AS","AS","GZL-HAC","HAC-QFS",1496919900000],[51,1496907900000,1496921400000,"Y4329",true,"AS","AS","KVP-HAC","HAC-XGF",1496895900000],[51,1496903100000,1496907600000,"Y7347",true,"SF","SF","OSD-HAC","HAC-XTL",1496892000000],[51,1496894700000,1496898900000,"Y8798",true,"XA","XA","FIX-HAC","HAC-FIX",1496876400000],[51,1496883600000,1496889300000,"Y7631",true,"XA","XA","XTW-HAC","HAC-BMA",1496877600000],[51,1496874000000,1496877600000,"Y1576",true,"XA","XA","HBC-HAC","HAC-HBC",1496868600000],[51,1496840400000,1496871000000,"Y8483",true,"AS","AS","GZL-HAC","HAC-BMG-XTJ",1496824500000],[243,1496925300000,1496934000000,"Y3309",true,"AS","AS","XGF-HAC","HAC-GMZ",1496915700000],[243,1496915400000,1496919300000,"Y3729",true,"XA","XA","HSV-HAC","HAC-HSV",1496900100000],[243,1496903400000,1496907300000,"Y7606",true,"XA","XA","FIX-PDV-HAC","HAC-PSM",1496880300000],[243,1496895000000,1496899500000,"Y4477",true,"SF","SF","XGF-HAC","HAC-MPT",1496886600000],[243,1496884800000,1496891100000,"Y8090",false,"XZ","XZ","KVP-HAC","HAC-KVP",1496872800000],[243,1496840400000,1496876700000,"Y3088",true,"XA","XA","DFC-HAC","HAC-OQT",1496828100000],[40,1496929800000,1496934000000,"Y2822",true,"NU","NU","SIY-ULX-HAC","HAC-STS-XTJ",1496908800000],[40,1496917200000,1496922600000,"Y4224",true,"AS","AS","KVP-HAC","HAC-DFC",1496904900000],[40,1496910000000,1496914500000,"Y3697",true,"XA","XA","HSZ-HAC","HAC-KVP",1496901000000],[40,1496894100000,1496898000000,"Y8373",true,"XA","XA","XPT-HAC","HAC-SIY",1496886000000],[40,1496881500000,1496885100000,"Y3369",true,"XA","XA","HSZ-HAC","HAC-GZL-XTJ",1496872500000],[40,1496840400000,1496877600000,"Y4896",true,"AS","AS","KVP-HAC","HAC-KET",1496827800000],[201,1496924100000,1496934000000,"Y3901",true,"XA","XA","HSZ-HAC","HAC-HSZ",1496914500000],[201,1496912100000,1496915700000,"Y8642",true,"NU","NU","KVP-HAC","HAC-KVP",1496899500000],[201,1496904300000,1496908800000,"Y7952",true,"XZ","XZ","KVP-HAC","HAC-KVP",1496892000000],[201,1496895300000,1496900100000,"Y3913",true,"XA","XA","HSZ-HAC","HAC-HSZ",1496886300000],[201,1496883000000,1496890200000,"Y4636",true,"AS","AS","PNT-HAC","HAC-XGF",1496874900000],[201,1496845500000,1496873400000,"Y1134",true,"AS","AS","KVP-HAC","HAC-XGF",1496833200000],[174,1496929500000,1496934000000,"Y8982",true,"AS","AS","KET-HAC","HAC-KVP",1496919600000],[174,1496918400000,1496922900000,"Y3479",true,"SF","SF","KVP-HAC","HAC-KVP",1496906700000],[174,1496908500000,1496912100000,"Y7304",false,"XA","XA","DFS-HAC","HAC-DFS",1496902200000],[174,1496897400000,1496902800000,"Y1134",true,"AS","AS","XGF-HAC","HAC-KVP",1496887800000],[174,1496890800000,1496891700000,"Y3279",true,"AS","AS","HSZ-QWA-HAC","HAC-XPT",1496876700000],[174,1496880600000,1496884800000,"Y8367",true,"VF","VF","XGF-HAC","HAC-XGF",1496871600000],[174,1496842200000,1496876400000,"Y3499",true,"XA","XA","KVP-HAC","HAC-HSZ",1496829600000],[41,1496928600000,1496934000000,"Y3912",true,"XA","XA","KVP-HAC","HAC-KVP",1496916000000],[41,1496910600000,1496919600000,"Y3498",true,"XA","XA","KVP-HAC","HAC-SZP",1496898000000],[41,1496898900000,1496904900000,"Y3499",true,"XA","XA","HSZ-HAC","HAC-HSZ",1496889900000],[41,1496886300000,1496892600000,"Y2116",true,"NF","NF","KET-HAC","HAC-HSZ",1496877000000],[41,1496840400000,1496872500000,"Y8963",true,"AS","AS","HSZ-HAC","HAC-KET",1496829000000],[39,1496920800000,1496924700000,"Y2153",true,"NU","NU","HSV-CNM-HAC","HAC-ULX",1496899500000],[39,1496911800000,1496916600000,"Y8764",false,"NF","NF","GBM-HAC","HAC-GBM",1496901900000],[39,1496885700000,1496890200000,"Y7249",true,"SF","SF","KVP-HAC","HAC-KVP",1496873700000],[39,1496841600000,1496874600000,"Y3888",true,"XA","XA","HSZ-HAC","HAC-KVP",1496832600000],[105,1496925300000,1496934000000,"Y8963",true,"AS","AS","HSZ-HAC","HAC-XGF",1496915400000],[105,1496915100000,1496920500000,"Y8978",true,"SF","SF","XGF-HAC","HAC-HBC",1496907000000],[105,1496906100000,1496910000000,"Y8348",true,"XA","XA","WOX-HAC","HAC-WOX",1496893800000],[105,1496895600000,1496902200000,"Y8963",true,"AS","AS","KET-HAC","HAC-HSZ",1496885700000],[105,1496883600000,1496888100000,"Y3918",true,"XZ","XZ","XGF-HAC","HAC-XGF",1496874600000],[105,1496846400000,1496868600000,"Y8318",true,"SL","SL","RMX-BRS-HAC","HAC-BRS-RMX",1496829600000],[274,1496840400000,1496901600000,"Y2238",true,"Q4","Q4","KMS-HAC","HAC-ASZ",1496815200000],[304,1496923800000,1496928600000,"Y3896",true,"SF","SF","GZL-MTY-HAC","HAC-SZP",1496905800000],[304,1496915400000,1496919000000,"Y4619",true,"AS","AS","PNT-HAC","HAC-KVP",1496907900000],[304,1496903400000,1496907600000,"Y4434",true,"NU","NU","HSZ-HAC","HAC-XPT",1496894700000],[304,1496895300000,1496899200000,"Y8559",false,"HX","HX","GMZ-HAC","HAC-GMZ",1496885400000],[304,1496874900000,1496882100000,"Y8424",true,"WA","WA","PSM-HAC","HAC-SQQ-GHM",1496868600000],[304,1496842200000,1496870100000,"Y4418",true,"SF","SF","PDV-HAC","HAC-XPT",1496836500000],[242,1496924700000,1496929800000,"Y4144",true,"SF","SF","SIY-MPT-HAC","HAC-SZP",1496902200000],[242,1496917800000,1496921400000,"Y3338",true,"XA","XA","KET-HAC","HAC-KVP",1496907600000],[242,1496908200000,1496913600000,"Y1309",true,"6F","6F","XGF-HAC","HAC-XGF",1496899200000],[242,1496892600000,1496899800000,"Y3904",false,"NF","NF","HSZ-HAC","HAC-HSZ",1496883300000],[242,1496880600000,1496883600000,"Y4518",true,"SF","SF","STS-HAC","HAC-STS",1496872500000],[242,1496848800000,1496876700000,"Y3866",true,"SF","SF","HBC-HAC","HAC-KVP",1496843100000],[181,1496926800000,1496934000000,"Y8457",true,"SF","SF","SZP-HAC","HAC-FIX-PST",1496922300000],[181,1496920200000,1496924100000,"Y1570",true,"XZ","XZ","STS-HAC","HAC-STS",1496911800000],[181,1496845800000,1496868000000,"Y7347",true,"SF","SF","MPT-HAC","HAC-OSD",1496838000000],[186,1496929200000,1496934000000,"Y8316",true,"AS","AS","SUV-HAC","HAC-MGT",1496921700000],[186,1496843700000,1496868300000,"Y2599",true,"SF","SF","XTL-HAC","HAC-CRB-CMM",1496834400000],[180,1496910300000,1496917800000,"Y3871",true,"NF","NF","HSZ-HAC","HAC-HSZ",1496901300000],[180,1496897100000,1496901600000,"Y7954",true,"XZ","XZ","KVP-HAC","HAC-KVP",1496884800000],[180,1496889000000,1496893500000,"Y8978",true,"SF","SF","KVP-HAC","HAC-XGF",1496876700000],[70,1496931900000,1496934000000,"Y0086",true,"XA","XA","XAC-HAC","HAC-PNT",1496923200000],[70,1496914800000,1496919300000,"Y3298",true,"XZ","XZ","XGF-HAC","HAC-XGF",1496906100000],[70,1496904900000,1496908500000,"Y1602",true,"NF","NF","MPT-HAC","HAC-MPT",1496896800000],[70,1496893800000,1496897400000,"Y4894",true,"AS","AS","SUV-HAC","HAC-KVP",1496885400000],[70,1496883900000,1496887800000,"Y1664",true,"TQ","TQ","STS-HAC","HAC-CFA-SIY",1496875500000],[70,1496877300000,1496881200000,"Y3677",true,"6F","6F","XPT-HAC","HAC-XGF",1496870100000],[70,1496848500000,1496866200000,"Y8326",true,"TQ","TQ","CMM-VMS-HAC","HAC-ABR-CMM",1496831400000],[108,1496913900000,1496918400000,"Y3921",true,"XA","XA","KVP-HAC","HAC-KVP",1496901600000],[108,1496904600000,1496909400000,"Y8062",false,"AS","AS","CRB-HAC","HAC-XPT",1496893800000],[108,1496885100000,1496889600000,"Y1984",true,"SF","SF","CRB-HAC","HAC-CRB",1496874000000],[108,1496849400000,1496870700000,"Y1983",true,"SF","SF","KVP-HAC","HAC-KVP",1496836800000],[109,1496928000000,1496934000000,"Y3499",true,"XA","XA","HSZ-HAC","HAC-HSZ",1496919000000],[109,1496917500000,1496921700000,"Y4219",true,"NF","NF","DFS-HAC","HAC-DFS",1496910900000],[109,1496910600000,1496915100000,"Y3911",true,"SF","SF","KVP-HAC","HAC-KVP",1496897700000],[109,1496901900000,1496906700000,"Y1983",true,"SF","SF","KVP-HAC","HAC-KVP",1496889000000],[109,1496893500000,1496898000000,"Y3466",true,"XZ","XZ","KVP-HAC","HAC-KVP",1496880900000],[109,1496884200000,1496888700000,"Y3850",true,"NF","NF","PNT-HAC","HAC-PNT",1496876700000],[109,1496842800000,1496871000000,"Y8982",true,"AS","AS","KET-HAC","HAC-KVP",1496833200000],[135,1496912700000,1496918400000,"Y0020",true,"AS","AS","YPP-HAC","HAC-CRB",1496901900000],[135,1496892300000,1496896800000,"Y8058",true,"AS","AS","DFC-HAC","HAC-GKV",1496883600000],[135,1496885700000,1496889900000,"SO2414",true,"PV","PV","RXM-HAC","HAC-RXM",1496871600000],[135,1496863500000,1496879700000,"Y8568",true,"XZ","XZ","OZC-HAC","HAC-KVP",1496811000000],[135,1496851800000,1496859000000,"VRUMC",true,"R5","R5","OVW-HAC","HAC-OVW",1496817000000],[135,1496840400000,1496842500000,"Y3920",true,"XZ","XZ","KVP-HAC","HAC-UIZ",1496823900000],[269,1496918400000,1496934000000,"Y1920",true,"AS","AS","OSD-DNG-HAC","HAC-PRC",1496901600000],[269,1496909400000,1496914500000,"Y83784",true,"Y2","Y2","INJ-HAC","HAC-INJ",1496903400000],[269,1496892900000,1496897100000,"Y8302",true,"XA","XA","TBH-HAC","HAC-SZM",1496883600000],[269,1496879700000,1496887800000,"Y0020",true,"AS","AS","CRB-HAC","HAC-YPP",1496868900000],[269,1496840700000,1496869500000,"Y4677",true,"AS","AS","YPP-HAC","HAC-HSV",1496831400000],[172,1496924700000,1496928600000,"SHZYE",true,"UW","UW","WNP-HAC","HAC-WNP",1496914200000],[172,1496914200000,1496920800000,"Y8058",true,"AS","AS","GKV-HAC","HAC-DFC",1496907300000],[172,1496905500000,1496910900000,"Y3734",true,"XA","XA","YPP-HAC","HAC-XGF",1496894400000],[172,1496881500000,1496891100000,"Y8154",true,"XA","XA","MPT-HAC","HAC-SPG",1496873700000],[172,1496869200000,1496874600000,"Y8062",true,"AS","AS","YPP-HAC","HAC-CRB",1496858700000],[172,1496852100000,1496856000000,"0NZJI",true,"ZP","ZP","PFO-HAC","HAC-PFO",1496836800000],[172,1496840700000,1496844300000,"0EGZJ",true,"GI","GI","HRM-HAC","HAC-HRM",1496826000000],[291,1496927100000,1496930700000,"0EGZL",true,"GI","GI","HRM-HAC","HAC-HRM",1496912400000],[291,1496916000000,1496919300000,"0NZTQ",true,"ZP","ZP","PFO-HAC","HAC-PFO",1496900400000],[291,1496908200000,1496912700000,"Y0047",true,"XA","XA","STS-HAC","HAC-WKH",1496900100000],[291,1496900700000,1496904300000,"Y8289",true,"AS","AS","MGT-HAC","HAC-YPP",1496892000000],[291,1496892000000,1496895600000,"Y8241",true,"AS","AS","PFO-HAC","HAC-GZL",1496876400000],[291,1496868900000,1496884500000,"Y0086",true,"XA","XA","WKH-HAC","HAC-HTM",1496847600000],[81,1496920500000,1496928300000,"Y8059",true,"AS","AS","CRB-HAC","HAC-YPP",1496910300000],[81,1496906400000,1496910000000,"Y0079",true,"0X","0X","SIY-SRZ-HAC","HAC-KMS",1496883900000],[81,1496898900000,1496902500000,"Y8481",true,"AS","AS","GZL-HAC","HAC-PFO",1496887800000],[81,1496890500000,1496894400000,"Y3620",true,"XA","XA","KVP-PLD-HAC","HAC-YPP",1496872200000],[81,1496883000000,1496886600000,"0ENTK",true,"NR","NR","HRM-HAC","HAC-HRM",1496869200000],[81,1496871900000,1496876100000,"Y8506",true,"SF","SF","SZP-HAC","HAC-OKJ",1496867100000],[81,1496841000000,1496869500000,"Y8523",true,"AS","AS","MIG-HAC","HAC-STS",1496824200000],[122,1496909100000,1496916000000,"Y0089",true,"AS","AS","KMS-HAC","HAC-BRS",1496901000000],[122,1496898900000,1496907000000,"Y8119",true,"XA","XA","KMS-HAC","HAC-MPT",1496889600000],[122,1496889300000,1496893200000,"0NZJW",true,"ZP","ZP","YPR-HAC","HAC-YPR",1496877900000],[122,1496881200000,1496885100000,"0NZTN",true,"ZP","ZP","PFO-HAC","HAC-PFO",1496866200000],[122,1496869200000,1496878800000,"Y4328",true,"AS","AS","SPG-HAC","HAC-RXM",1496853900000],[122,1496847300000,1496866800000,"Y1751",true,"0X","0X","KMS-HAC","HAC-SRZ-SIY",1496836800000],[280,1496933400000,1496934000000,"Y3497",true,"XA","XA","HSZ-HAC","HAC-GKV",1496924100000],[280,1496915100000,1496919900000,"Y8302",true,"XA","XA","SZM-HAC","HAC-STS",1496907900000],[280,1496904300000,1496909100000,"Y81784",true,"XR","XR","GKV-HAC","HAC-GKV",1496897400000],[280,1496889600000,1496893800000,"SO2204",true,"LA","LA","RXM-HAC","HAC-RXM",1496876400000],[280,1496885400000,1496888100000,"Y0089",true,"AS","AS","QFS-HAC","HAC-KMS",1496878800000],[280,1496848500000,1496875500000,"Y8287",true,"AS","AS","MPT-HAC","HAC-HRM",1496840400000],[280,1496840400000,1496841900000,"Y8062",true,"AS","AS","CRB-HAC","HAC-YPP",1496823900000],[182,1496919000000,1496921700000,"Y3620",true,"XA","XA","YPP-HAC","HAC-SUV",1496907900000],[182,1496909100000,1496912700000,"Y8287",false,"AS","AS","HRM-HAC","HAC-XPT",1496894400000],[182,1496898000000,1496903100000,"Y8506",true,"SF","SF","OKJ-HAC","HAC-CFA",1496888700000],[182,1496878200000,1496889000000,"Y8027",true,"AS","AS","DFC-HAC","HAC-HRM",1496870100000],[182,1496848200000,1496872500000,"Y4477",true,"SF","SF","SPG-HAC","HAC-XGF",1496834100000],[182,1496840400000,1496842200000,"SHZYA",true,"UW","UW","WNP-HAC","HAC-WNP",1496827800000],[3,1496922000000,1496926800000,"Y8027",true,"AS","AS","HRM-HAC","HAC-SZP",1496907000000],[3,1496908500000,1496912400000,"Y0086",true,"XA","XA","HTM-HAC","HAC-XAC",1496899800000],[3,1496896500000,1496902200000,"Y3901",true,"XA","XA","GKV-HAC","HAC-HSZ",1496889000000],[3,1496883600000,1496890800000,"Y4654",true,"AS","AS","MGT-HAC","HAC-MIG",1496874300000],[3,1496846400000,1496879400000,"Y3901",true,"XA","XA","HBC-HAC","HAC-GKV",1496840700000],[127,1496886300000,1496886900000,"Y2838",true,"FH","FH","CCC-HAC","HAC-***",1496880000000],[319,1496907600000,1496934000000,"Y3564",true,"QW","QW","KVP-HAC","HAC-KVP",1496896200000],[154,1496840400000,1496934000000,"Y1737",true,"QW","QW","KVP-HAC","HAC-HSZ",1495659300000],[71,1496925600000,1496934000000,"Y6706",true,"A8","A8","NUN-HAC","HAC-STS",1496923200000],[97,1496901000000,1496934000000,"M6666J",true,"QW","QW","HBC-HAC","HAC-SZP",1496896200000],[296,1496856600000,1496934000000,"YSEK",true,"A8","A8","XZM-HAC","HAC-KVP",1496854800000],[257,1496840400000,1496934000000,"Y1833",true,"QW","QW","QST-HAC","HAC-STS",1495940400000],[136,1496840400000,1496934000000,"Y1711",true,"A8","A8","CRB-HAC","HAC-HSZ",1496808000000],[313,1496927700000,1496934000000,"Y6746",true,"QW","QW","OBZ-HAC","HAC-XZM",1496919600000],[277,1496840400000,1496934000000,"M8222F",true,"A8","A8","NZX-HAC","HAC-KET",1496835900000],[48,1496840400000,1496934000000,"Y1867",true,"QW","QW","KET-HAC","HAC-PRC",1496631600000],[110,1496930700000,1496934000000,"M433MH",true,"A8","A8","SPT-HAC","HAC-SPT",1496928900000],[37,1496858700000,1496934000000,"M001UZ",true,"QW","QW","ZMX-HAC","HAC-HDZ",1496824440000],[107,1496840400000,1496934000000,"YODD",true,"A8","A8","KET-HAC","HAC-NUN",1496368800000],[226,1496925000000,1496934000000,"Y6438",true,"A8","A8","CHK-HAC","HAC-KVP",1496912400000],[226,1496848500000,1496908800000,"Y1884",true,"A8","A8","KVP-HAC","HAC-MIG",1496836800000],[83,1496923200000,1496934000000,"Y1841",true,"A8","A8","NOV-HAC","HAC-SPT",1496901600000],[83,1496840400000,1496894400000,"Y6719",true,"QW","QW","HBC-HAC","HAC-KVP",1496811600000],[167,1496923200000,1496934000000,"Y2236",true,"A8","A8","ASZ-HAC","HAC-ASZ",1496920800000],[167,1496840400000,1496894400000,"Y2236",true,"A8","A8","QWA-HAC","HAC-ASZ",1496830200000],[290,1496840400000,1496934000000,"Y6436",true,"A8","A8","DFC-HAC","HAC-XGF",1496646000000],[89,1496840400000,1496934000000,"Y1732",true,"A8","A8","KVP-HAC","HAC-XGF",1496822400000],[130,1496840400000,1496934000000,"M616ZA",true,"A8","A8","CHK-HAC","HAC-KVP",1496393700000],[173,1496884200000,1496934000000,"M765HZ",true,"A8","A8","CRB-HAC","HAC-CRB",1496876400000],[103,1496840400000,1496934000000,"Y1683",true,"TU","A8","PDO-HAC","HAC-MMB",1495346400000],[307,1496840400000,1496934000000,"EKXDJ",true,"A8","A8","KVP-HAC","HAC-NUN",1496548800000],[80,1496840400000,1496934000000,"M003NH",true,"A8","A8","CRB-HAC","HAC-NUN",1496811600000],[247,1496842800000,1496934000000,"M6610S",true,"QW","QW","OSD-HAC","HAC-NUN",1496833200000],[31,1496840400000,1496934000000,"Y1839",true,"TU","TU","KVP-HAC","HAC-GHM",1496610000000],[52,1496887200000,1496934000000,"Y6724",true,"A8","A8","GHM-HAC","HAC-KVP",1496876400000],[286,1496874300000,1496934000000,"Y7043",true,"L6","L6","GKV-HAC","HAC-KVP",1496868900000],[286,1496854800000,1496856600000,"Y7182",true,"L6","L6","XGF-HAC","HAC-XGF",1496847300000],[286,1496840400000,1496844600000,"Y7043",true,"L6","L6","GKV-HAC","HAC-MTY",1496782500000],[282,1496863200000,1496934000000,"Y7033",true,"L6","L6","QQM-HAC","HAC-QQM",1496859600000],[282,1496840400000,1496843400000,"Y7173",true,"L6","L6","MGT-HAC","HAC-STS",1496781600000],[246,1496888700000,1496924400000,"Y8536",true,"L6","L6","DVU-HAC","HAC-DFC",1496878500000],[246,1496849400000,1496851200000,"Y7033",true,"L6","L6","XPT-HAC","HAC-QQM",1496842200000],[246,1496840400000,1496842500000,"Y7016",true,"L6","L6","SUV-HAC","HAC-DMA",1496781600000],[310,1496872200000,1496931600000,"Y7421",true,"B1","B1","KVP-HAC","HAC-KVP",1496859600000],[310,1496840400000,1496845200000,"Y7421",true,"B1","B1","KVP-HAC","HAC-KVP",1496773200000],[53,1496876400000,1496929800000,"Y2917",true,"L6","L6","KVP-HAC","HAC-STS",1496865300000],[53,1496840400000,1496849400000,"Y2917",true,"L6","L6","KVP-HAC","HAC-KVP",1496778900000],[273,1496874000000,1496931900000,"Y7176",true,"XU","XU","MPT-HAC","HAC-MPT",1496865900000],[273,1496863500000,1496865300000,"Y7018",true,"L6","L6","STS-HAC","HAC-PSM",1496856300000],[273,1496840400000,1496845500000,"Y7176",true,"XU","XU","MPT-HAC","HAC-MPT",1496779500000],[117,1496868300000,1496928000000,"Y7178",true,"L6","L6","DFC-HAC","HAC-KET",1496860200000],[117,1496840400000,1496851200000,"Y7982",true,"L6","L6","MTY-HAC","HAC-GKV",1496785500000],[265,1496874900000,1496928900000,"Y7016",true,"L6","L6","SUV-HAC","HAC-DMA",1496868000000],[223,1496876400000,1496934000000,"Y7100",true,"L6","L6","MGT-HAC","HAC-KVP",1496868000000],[223,1496860500000,1496863200000,"Y7173",true,"L6","L6","STS-HAC","HAC-KET",1496853300000],[223,1496851800000,1496856000000,"Y7100",true,"L6","L6","KET-HAC","HAC-MGT",1496843700000],[223,1496840400000,1496841600000,"Y8536",true,"L6","L6","DVU-HAC","HAC-KET",1496792400000],[47,1496840400000,1496934000000,"Y3003",true,"L6","L6","KVP-HAC","HAC-KVP",1496692500000],[126,1496871000000,1496934000000,"Y8423",true,"L6","L6","STS-HAC","HAC-STS",1496863800000],[126,1496840400000,1496851500000,"Y8423",true,"L6","L6","STS-HAC","HAC-STS",1496777400000],[288,1496932500000,1496934000000,"M647FK",true,"4C","4C","RXM-HAC","HAC-RXM",1496919000000],[288,1496850600000,1496856900000,"M647FK",true,"4C","4C","HRM-HAC","HAC-RXM",1496835900000],[115,1496850000000,1496856000000,"M544FK",true,"4C","4C","XIP-HAC","HAC-XIP",1496841600000],[227,1496846100000,1496855400000,"M642FK",true,"4C","4C","RXM-HAC","HAC-MIG",1496832600000],[206,1496852100000,1496858100000,"KPYYX",true,"1U","1U","HTM-HAC","HAC-HTM",1496842200000],[309,1496840400000,1496934000000,"Y1640",true,"XA","XA","KVP-HAC","HAC-KVP",1494367800000],[190,1496840400000,1496934000000,"Y4686",true,"WA","WA","RMX-DWH-HAC","HAC-XTL",1496744100000],[190,1496840400000,1496885700000,"Y3639",true,"AS","AS","HSZ-HAC","HAC-HSZ",1496817900000],[289,1496928600000,1496934000000,"M417FK",true,"4C","4C","XTM-HAC","HAC-YPP",1496889300000],[289,1496842200000,1496862000000,"M427FK",true,"4C","4C","XTM-HAC","HAC-YPP",1496802900000],[300,1496920800000,1496934000000,"Y0091",true,"AS","AS","XTJ-HAC","HAC-KMS",1496905500000],[300,1496840400000,1496886000000,"Y3386",true,"AS","AS","XAC-HAC","HAC-XGF",1496806800000],[131,1496850900000,1496856900000,"M645FK",true,"4C","4C","PFO-HAC","HAC-PFO",1496836200000],[101,1496849700000,1496855700000,"M685FK",true,"4C","4C","MIG-HAC","HAC-HRM",1496832300000],[292,1496931300000,1496934000000,"Y8006",true,"AS","AS","OBR-HAC","HAC-DFC",1496920800000],[292,1496840400000,1496881500000,"Y3278",true,"AS","AS","XTL-HAC","HAC-HSV",1496823600000],[306,1496928300000,1496934000000,"Y3087",true,"XA","XA","XTJ-DMA-HAC","HAC-PSM-GBM",1496906400000],[306,1496840400000,1496889600000,"Y3410",true,"AS","AS","GMZ-HAC","HAC-CRB",1496819700000],[184,1496849100000,1496857800000,"Y81284",true,"XR","XR","GKV-HAC","HAC-GKV",1496841300000],[231,1496922300000,1496934000000,"Y3144",true,"AS","AS","KET-HAC","HAC-YPP",1496913300000],[231,1496840400000,1496886000000,"Y3840",true,"AS","AS","SIY-HAC","HAC-SIY",1496820000000],[69,1496844600000,1496883300000,"Y1306",true,"AS","AS","GZL-HAC","HAC-PSM-KET",1496833500000],[302,1496925300000,1496934000000,"Y3428",true,"AS","AS","KET-QQM-HAC","HAC-DCM",1496912100000],[293,1496922300000,1496934000000,"Y8154",true,"XA","XA","SPG-HAC","HAC-STS",1496908200000],[293,1496847900000,1496881200000,"Y0060",true,"AS","AS","HBC-HAC","HAC-CUM",1496842500000],[87,1496840700000,1496887200000,"Y3697",true,"XA","XA","STS-HAC","HAC-HSZ",1496832900000],[204,1496848800000,1496880900000,"Y1920",true,"AS","AS","ZZG-XTL-HAC","HAC-DNG-OSD",1496820000000],[311,1496925000000,1496934000000,"Y1306",true,"AS","AS","KET-PSM-HAC","HAC-PSM-KET",1496909400000],[311,1496846400000,1496869800000,"Y4619",true,"AS","AS","DFC-HAC","HAC-PNT",1496838000000]]}}')},function(e,t,n){e.exports=!n(117)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){function n(e){this._$handlers={},this._$eventProcessor=e}var u=Array.prototype.slice;function r(e,t,n,i,r,o){var a,s,l=e._$handlers;if("function"==typeof n&&(r=i,i=n,n=null),!i||!t)return e;s=n,a=(a=e)._$eventProcessor,n=s=null!=s&&a&&a.normalizeQuery?a.normalizeQuery(s):s,l[t]||(l[t]=[]);for(var u=0;u<l[t].length;u++)if(l[t][u].h===i)return e;o={h:i,one:o,query:n,ctx:r||e,callAtLast:i.zrEventfulCallAtLast},n=l[t].length-1,r=l[t][n];return r&&r.callAtLast?l[t].splice(n,0,o):l[t].push(o),e}n.prototype={constructor:n,one:function(e,t,n,i){return r(this,e,t,n,i,!0)},on:function(e,t,n,i){return r(this,e,t,n,i,!1)},isSilent:function(e){var t=this._$handlers;return!t[e]||!t[e].length},off:function(e,t){var n=this._$handlers;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],r=0,o=n[e].length;r<o;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},trigger:function(e){var t=this._$handlers[e],n=this._$eventProcessor;if(t){var i=arguments,r=i.length;3<r&&(i=u.call(i,1));for(var o=t.length,a=0;a<o;){var s=t[a];if(n&&n.filter&&null!=s.query&&!n.filter(e,s.query))a++;else{switch(r){case 1:s.h.call(s.ctx);break;case 2:s.h.call(s.ctx,i[1]);break;case 3:s.h.call(s.ctx,i[1],i[2]);break;default:s.h.apply(s.ctx,i)}s.one?(t.splice(a,1),o--):a++}}}return n&&n.afterTrigger&&n.afterTrigger(e),this},triggerWithContext:function(e){var t=this._$handlers[e],n=this._$eventProcessor;if(t)for(var i=arguments,r=i.length,o=(i=4<r?u.call(i,1,i.length-1):i)[i.length-1],a=t.length,s=0;s<a;){var l=t[s];if(n&&n.filter&&null!=l.query&&!n.filter(e,l.query))s++;else{switch(r){case 1:l.h.call(o);break;case 2:l.h.call(o,i[1]);break;case 3:l.h.call(o,i[1],i[2]);break;default:l.h.apply(o,i)}l.one?(t.splice(s,1),a--):s++}}return n&&n.afterTrigger&&n.afterTrigger(e),this}},e.exports=n},function(e,t,n){function o(e){for(var t in i.call(this,e=e||{}),e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0}var a=n(1),i=n(299),l=n(21);o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},childCount:function(){return this._children.length},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(e,t){var n;return e&&e!==this&&e.parent!==this&&t&&t.parent===this&&(0<=(t=(n=this._children).indexOf(t))&&(n.splice(t,0,e),this._doAdd(e))),this},_doAdd:function(e){e.parent&&e.parent.remove(e);var t=(e.parent=this).__storage,n=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof o&&e.addChildrenToStorage(t)),n&&n.refresh()},remove:function(e){var t=this.__zr,n=this.__storage,i=this._children,r=a.indexOf(i,e);return r<0||(i.splice(r,1),e.parent=null,n&&(n.delFromStorage(e),e instanceof o&&e.delChildrenFromStorage(n)),t&&t.refresh()),this},removeAll:function(){for(var e,t=this._children,n=this.__storage,i=0;i<t.length;i++)e=t[i],n&&(n.delFromStorage(e),e instanceof o&&e.delChildrenFromStorage(n)),e.parent=null;return t.length=0,this},eachChild:function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},traverse:function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n];e.call(t,i),"group"===i.type&&i.traverse(e,t)}return this},addChildrenToStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.addToStorage(n),n instanceof o&&n.addChildrenToStorage(e)}},delChildrenFromStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.delFromStorage(n),n instanceof o&&n.delChildrenFromStorage(e)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(e){for(var t=null,n=new l(0,0,0,0),i=e||this._children,r=[],o=0;o<i.length;o++){var a,s=i[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(r))?(n.copy(a),n.applyTransform(s),(t=t||n.clone()).union(n)):(t=t||a.clone()).union(a))}return t||n}},a.inherits(o,i),e.exports=o},function(e,t,n){var i=n(120),r=n(1),o=n(41),a=n(149),s=n(148).ContextCachedBy,n=function(e){i.call(this,e)};n.prototype={constructor:n,type:"text",brush:function(e,t){var n=this.style;this.__dirty&&a.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;null!=i&&(i+=""),a.needDrawText(i,n)?(this.setTransform(e),a.renderText(this,e,i,n,null,t),this.restoreTransform(e)):e.__attrCachedBy=s.NONE},getBoundingRect:function(){var e,t=this.style;return this.__dirty&&a.normalizeTextStyle(t,!0),this._rect||(null!=(e=t.text)?e+="":e="",(e=o.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich)).x+=t.x||0,e.y+=t.y||0,a.getStroke(t.textStroke,t.textStrokeWidth)&&(t=t.textStrokeWidth,e.x-=t/2,e.y-=t/2,e.width+=t,e.height+=t),this._rect=e),this._rect}},r.inherits(n,i),e.exports=n},function(e,t,n){n(14).__DEV__;var i=n(1),r=(i.isTypedArray,i.extend),o=(i.assert,i.each),a=i.isObject,i=n(10),s=i.getDataItemValue,l=i.isDataItemOption,u=n(8).parseDate,c=n(123),n=n(124),h=n.SOURCE_FORMAT_TYPED_ARRAY,d=n.SOURCE_FORMAT_ARRAY_ROWS,p=n.SOURCE_FORMAT_ORIGINAL,f=n.SOURCE_FORMAT_OBJECT_ROWS;function m(e,t){c.isInstance(e)||(e=c.seriesDataToSource(e)),this._source=e;var n=this._data=e.data,i=e.sourceFormat;i===h&&(this._offset=0,this._dimSize=t,this._data=n);i=g[i===d?i+"_"+e.seriesLayoutBy:i];r(this,i)}n=m.prototype;n.pure=!1;var g={arrayRows_column:{pure:n.persistent=!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(e){return this._data[e+this._source.startIndex]},appendData:x},arrayRows_row:{pure:!0,count:function(){var e=this._data[0];return e?Math.max(0,e.length-this._source.startIndex):0},getItem:function(e){e+=this._source.startIndex;for(var t=[],n=this._data,i=0;i<n.length;i++){var r=n[i];t.push(r?r[e]:null)}return t},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:v,getItem:y,appendData:x},keyedColumns:{pure:!0,count:function(){var e=this._source.dimensionsDefine[0].name,e=this._data[e];return e?e.length:0},getItem:function(e){for(var t=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var r=this._data[n[i].name];t.push(r?r[e]:null)}return t},appendData:function(e){var r=this._data;o(e,function(e,t){for(var n=r[t]||(r[t]=[]),i=0;i<(e||[]).length;i++)n.push(e[i])})}},original:{count:v,getItem:y,appendData:x},typedArray:{persistent:!(n.getSource=function(){return this._source}),pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(e,t){e-=this._offset,t=t||[];for(var n=this._dimSize*e,i=0;i<this._dimSize;i++)t[i]=this._data[n+i];return t},appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}}};function v(){return this._data.length}function y(e){return this._data[e]}function x(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}var b={arrayRows:_,objectRows:function(e,t,n,i){return null!=n?e[i]:e},keyedColumns:_,original:function(e,t,n,i){e=s(e);return null!=n&&e instanceof Array?e[n]:e},typedArray:_};function _(e,t,n,i){return null!=n?e[n]:e}n={arrayRows:w,objectRows:function(e,t,n,i){return C(e[t],this._dimensionInfos[t])},keyedColumns:w,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return!this._rawData.pure&&l(e)&&(this.hasItemOption=!0),C(r instanceof Array?r[i]:r,this._dimensionInfos[t])},typedArray:function(e,t,n,i){return e[i]}};function w(e,t,n,i){return C(e[i],this._dimensionInfos[t])}function C(e,t){var n=t&&t.type;if("ordinal"!==n)return null==(e="time"===n&&"number"!=typeof e&&null!=e&&"-"!==e?+u(e):e)||""===e?NaN:+e;t=t&&t.ordinalMeta;return t?t.parseAndCollect(e):e}t.DefaultDataProvider=m,t.defaultDimValueGetters=n,t.retrieveRawValue=function(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r,o,a=e.getProvider().getSource().sourceFormat,n=e.getDimensionInfo(n);return n&&(r=n.name,o=n.index),b[a](i,t,o,r)}}},t.retrieveRawAttr=function(e,t,n){if(e){var i=e.getProvider().getSource().sourceFormat;if(i===p||i===f){t=e.getRawDataItem(t);return(t=i===p&&!a(t)?null:t)?t[n]:void 0}}}},function(e,t){function o(e){return e}function n(e,t,n,i,r){this._old=e,this._new=t,this._oldKeyGetter=n||o,this._newKeyGetter=i||o,this.context=r}function c(e,t,n,i,r){for(var o=0;o<e.length;o++){var a="_ec_"+r[i](e[o],o),s=t[a];null==s?(n.push(a),t[a]=o):(s.length||(t[a]=s=[s]),s.push(o))}}n.prototype={constructor:n,add:function(e){return this._add=e,this},update:function(e){return this._update=e,this},remove:function(e){return this._remove=e,this},execute:function(){var e=this._old,t=this._new,n={},i=[],r=[];for(c(e,{},i,"_oldKeyGetter",this),c(t,n,r,"_newKeyGetter",this),o=0;o<e.length;o++)null!=(a=n[s=i[o]])?((u=a.length)?(1===u&&(n[s]=null),a=a.shift()):n[s]=null,this._update&&this._update(a,o)):this._remove&&this._remove(o);for(var o=0;o<r.length;o++){var a,s=r[o];if(n.hasOwnProperty(s))if(null!=(a=n[s]))if(a.length)for(var l=0,u=a.length;l<u;l++)this._add&&this._add(a[l]);else this._add&&this._add(a)}}};e.exports=n},function(e,t,n){n(14).__DEV__;var i=n(3),l=n(157),u=i.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,n,i){this.axisPointerClass&&l.fixValue(e),u.superApply(this,"render",arguments),o(this,e,0,n,0,!0)},updateAxisPointer:function(e,t,n,i,r){o(this,e,0,n,0,!1)},remove:function(e,t){var n=this._axisPointer;n&&n.remove(t),u.superApply(this,"remove",arguments)},dispose:function(e,t){c(this,t),u.superApply(this,"dispose",arguments)}});function o(e,t,n,i,r,o){var a,s=u.getAxisPointerClass(e.axisPointerClass);s&&((a=l.getAxisPointerModel(t))?(e._axisPointer||(e._axisPointer=new s)).render(t,a,i,o):c(e,i))}function c(e,t,n){var i=e._axisPointer;i&&i.dispose(t,n),e._axisPointer=null}var r=[];u.registerAxisPointerClass=function(e,t){r[e]=t},u.getAxisPointerClass=function(e){return e&&r[e]},e.exports=u},function(e,t,n){var m=n(1).isFunction;e.exports=function(e,o,f){return{seriesType:e,performRawSeries:!0,reset:function(a,e,t){var n=a.getData(),s=a.get("symbol"),l=a.get("symbolSize"),i=a.get("symbolKeepAspect"),u=a.get("symbolRotate"),c=m(s),h=m(l),d=m(u),p=c||h||d,r=!c&&s?s:o;if(n.setVisual({legendSymbol:f||r,symbol:r,symbolSize:h?null:l,symbolKeepAspect:i,symbolRotate:u}),!e.isSeriesFiltered(a))return{dataEach:n.hasItemOption||p?function(e,t){var n,i,r,o;p&&(i=a.getRawValue(t),r=a.getDataParams(t),c&&e.setItemVisual(t,"symbol",s(i,r)),h&&e.setItemVisual(t,"symbolSize",l(i,r)),d&&e.setItemVisual(t,"symbolRotate",u(i,r))),e.hasItemOption&&(n=(o=e.getItemModel(t)).getShallow("symbol",!0),i=o.getShallow("symbolSize",!0),r=o.getShallow("symbolRotate",!0),o=o.getShallow("symbolKeepAspect",!0),null!=n&&e.setItemVisual(t,"symbol",n),null!=i&&e.setItemVisual(t,"symbolSize",i),null!=r&&e.setItemVisual(t,"symbolRotate",r),null!=o&&e.setItemVisual(t,"symbolKeepAspect",o))}:null}}}}},function(e,t,n){var i=n(1);function r(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}t.retrieveTargetInfo=function(e,t,n){if(e&&0<=i.indexOf(t,e.type)){t=n.getData().tree.root,n=e.targetNode;if((n="string"==typeof n?t.getNodeById(n):n)&&t.contains(n))return{node:n};e=e.targetNodeId;return null!=e&&(n=t.getNodeById(e))?{node:n}:void 0}},t.getPathToRoot=r,t.aboveViewRoot=function(e,t){return e=r(e),0<=i.indexOf(e,t)},t.wrapTreePathInfo=function(e,t){for(var n=[];e;){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}},function(e,t,n){var a=n(1),o=n(55),i=n(8).linearMap,s=a.each,l=a.isObject,u=-1,c=function(e){var t=e.mappingMethod,n=e.type,e=this.option=a.clone(e);this.type=n,this.mappingMethod=t,this._normalizeData=b[t];var i,n=h[n];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._doMap=n._doMap[t],"piecewise"===t?(r(e),n=(i=e).pieceList,i.hasSpecialVisual=!1,a.each(n,function(e,t){e.originIndex=t,null!=e.visual&&(i.hasSpecialVisual=!0)})):"category"===t?e.categories?function(e){var t=e.categories,n=e.visual,i=e.categoryMap={};{var r;s(t,function(e,t){i[e]=t}),a.isArray(n)||(r=[],a.isObject(n)?s(n,function(e,t){t=i[t];r[null!=t?t:u]=e}):r[u]=n,n=x(e,r))}for(var o=t.length-1;0<=o;o--)null==n[o]&&(delete i[t[o]],t.pop())}(e):r(e,!0):(a.assert("linear"!==t||e.dataExtent),r(e))};c.prototype={constructor:c,mapValueToVisual:function(e){var t=this._normalizeData(e);return this._doMap(t,e)},getNormalizer:function(){return a.bind(this._normalizeData,this)}};var h=c.visualHandlers={color:{applyVisual:f("color"),getColorMapper:function(){var r=this.option;return a.bind("category"===r.mappingMethod?function(e,t){return t||(e=this._normalizeData(e)),m.call(this,e)}:function(e,t,n){var i=!!n;return t||(e=this._normalizeData(e)),n=o.fastLerp(e,r.parsedVisual,n),i?n:o.stringify(n,"rgba")},this)},_doMap:{linear:function(e){return o.stringify(o.fastLerp(e,this.option.parsedVisual),"rgba")},category:m,piecewise:function(e,t){t=y.call(this,t);return t=null==t?o.stringify(o.fastLerp(e,this.option.parsedVisual),"rgba"):t},fixed:g}},colorHue:d(function(e,t){return o.modifyHSL(e,t)}),colorSaturation:d(function(e,t){return o.modifyHSL(e,null,t)}),colorLightness:d(function(e,t){return o.modifyHSL(e,null,null,t)}),colorAlpha:d(function(e,t){return o.modifyAlpha(e,t)}),opacity:{applyVisual:f("opacity"),_doMap:v([0,1])},liftZ:{applyVisual:f("liftZ"),_doMap:{linear:g,category:g,piecewise:g,fixed:g}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);if(a.isString(i))n("symbol",i);else if(l(i))for(var r in i)i.hasOwnProperty(r)&&n(r,i[r])},_doMap:{linear:p,category:m,piecewise:function(e,t){t=y.call(this,t);return t=null==t?p.call(this,e):t},fixed:g}},symbolSize:{applyVisual:f("symbolSize"),_doMap:v([0,1])}};function r(e,t){var n=e.visual,i=[];a.isObject(n)?s(n,function(e){i.push(e)}):null!=n&&i.push(n);t||1!==i.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(i[1]=i[0]),x(e,i)}function d(i){return{applyVisual:function(e,t,n){e=this.mapValueToVisual(e),n("color",i(t("color"),e))},_doMap:v([0,1])}}function p(e){var t=this.option.visual;return t[Math.round(i(e,[0,1],[0,t.length-1],!0))]||{}}function f(i){return function(e,t,n){n(i,this.mapValueToVisual(e))}}function m(e){var t=this.option.visual;return t[this.option.loop&&e!==u?e%t.length:e]}function g(){return this.option.visual[0]}function v(n){return{linear:function(e){return i(e,n,this.option.visual,!0)},category:m,piecewise:function(e,t){t=y.call(this,t);return t=null==t?i(e,n,this.option.visual,!0):t},fixed:g}}function y(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){n=n[c.findPieceIndex(e,n)];if(n&&n.visual)return n.visual[this.type]}}function x(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=a.map(t,function(e){return o.parse(e)})),t}var b={linear:function(e){return i(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,e=c.findPieceIndex(e,t,!0);if(null!=e)return i(e,[0,t.length-1],[0,1],!0)},category:function(e){e=this.option.categories?this.option.categoryMap[e]:e;return null==e?u:e},fixed:a.noop};function _(e,t,n){return e?t<=n:t<n}c.listVisualTypes=function(){var n=[];return a.each(h,function(e,t){n.push(t)}),n},c.addVisualHandler=function(e,t){h[e]=t},c.isValidType=function(e){return h.hasOwnProperty(e)},c.eachVisual=function(e,t,n){a.isObject(e)?a.each(e,t,n):t.call(n,e)},c.mapVisual=function(e,n,i){var r,o=a.isArray(e)?[]:a.isObject(e)?{}:(r=!0,null);return c.eachVisual(e,function(e,t){e=n.call(i,e,t);r?o=e:o[t]=e}),o},c.retrieveVisuals=function(n){var i,r={};return n&&s(h,function(e,t){n.hasOwnProperty(t)&&(r[t]=n[t],i=!0)}),i?r:null},c.prepareVisualTypes=function(e){if(l(e)){var n=[];s(e,function(e,t){n.push(t)}),e=n}else{if(!a.isArray(e))return[];e=e.slice()}return e.sort(function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1}),e},c.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},c.findPieceIndex=function(n,e,t){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===n||"string"==typeof s&&s===n+"")return o;t&&c(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,l=l.close;if(u){if(u[0]===-1/0){if(_(l[1],n,u[1]))return o}else if(u[1]===1/0){if(_(l[0],u[0],n))return o}else if(_(l[0],u[0],n)&&_(l[1],n,u[1]))return o;t&&c(u[0],o),t&&c(u[1],o)}}if(t)return n===1/0?e.length-1:n===-1/0?0:i;function c(e,t){e=Math.abs(e-n);e<r&&(r=e,i=t)}},e.exports=c},function(e,t,n){"use strict";t.__esModule=!0,t.BORDER_UNSET_TOP_BOTTOM=t.BORDER_TOP_BOTTOM=t.BORDER_SURROUND=t.BORDER_BOTTOM=t.BORDER_LEFT=t.BORDER_TOP=t.BORDER=t.RED=void 0;t.RED="#ee0a24";var i="van-hairline";t.BORDER=i;t.BORDER_TOP="van-hairline--top";t.BORDER_LEFT="van-hairline--left";t.BORDER_BOTTOM="van-hairline--bottom";t.BORDER_SURROUND="van-hairline--surround";t.BORDER_TOP_BOTTOM="van-hairline--top-bottom";t.BORDER_UNSET_TOP_BOTTOM="van-hairline-unset--top-bottom"},function(e,t,n){"use strict";t.__esModule=!0,t.TouchMixin=void 0;var r=n(40);t.TouchMixin={data:function(){return{direction:""}},methods:{touchStart:function(e){this.resetTouchStatus(),this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY},touchMove:function(e){var t=e.touches[0];this.deltaX=t.clientX-this.startX,this.deltaY=t.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(e=this.offsetX,(t=this.offsetY)<e&&10<e?"horizontal":e<t&&10<t?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(e){var t=this.onTouchStart,n=this.onTouchMove,i=this.onTouchEnd;(0,r.on)(e,"touchstart",t),(0,r.on)(e,"touchmove",n),i&&((0,r.on)(e,"touchend",i),(0,r.on)(e,"touchcancel",i))}}}},function(e,t,n){"use strict";t.__esModule=!0,t.ChildrenMixin=function(e,t){void 0===t&&(t={});var n=t.indexKey||"index";return{inject:((t={})[e]={default:null},t),computed:((t={parent:function(){return this.disableBindRelation?null:this[e]}})[n]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},t),watch:{disableBindRelation:function(e){e||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter(function(e){return e!==t}))},methods:{bindRelation:function(){var e;this.parent&&-1===this.parent.children.indexOf(this)&&(e=[].concat(this.parent.children,[this]),(0,i.sortChildren)(e,this.parent),this.parent.children=e)}}}},t.ParentMixin=function(t){return{provide:function(){var e={};return e[t]=this,e},data:function(){return{children:[]}}}};var i=n(401)},function(e,t,n){"use strict";t.__esModule=!0;var i,r=n(457),n=(i=r)&&i.__esModule?i:{default:i};t.default=n.default||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var i=n(92),r=n(140);e.exports=n(75)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(139),r=n(288),o=n(179),a=Object.defineProperty;t.f=n(75)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(291),r=n(180);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(183)("wks"),r=n(143),o=n(64).Symbol,a="function"==typeof o;(e.exports=function(e){return i[e]||(i[e]=a&&o[e]||(a?o:r)("Symbol."+e))}).store=i},function(e,t,n){var i=n(120),r=n(21),o=n(1),c=n(193);function a(e){i.call(this,e)}a.prototype={constructor:a,type:"image",brush:function(e,t){var n=this.style,i=n.image;n.bind(e,this,t);var r,o,a,s,l,u=this._image=c.createOrUpdateImage(i,this._image,this,this.onload);u&&c.isImageReady(u)&&(r=n.x||0,o=n.y||0,a=n.width,t=n.height,i=u.width/u.height,null==a&&null!=t?a=t*i:null==t&&null!=a?t=a/i:null==a&&null==t&&(a=u.width,t=u.height),this.setTransform(e),n.sWidth&&n.sHeight?(s=n.sx||0,l=n.sy||0,e.drawImage(u,s,l,n.sWidth,n.sHeight,r,o,a,t)):n.sx&&n.sy?(s=n.sx,l=n.sy,e.drawImage(u,s,l,a-s,t-l,r,o,a,t)):e.drawImage(u,r,o,a,t),null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect())))},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new r(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},o.inherits(a,i),e.exports=a},function(e,t,n){var s=n(1);e.exports=function(a){for(var e=0;e<a.length;e++)a[e][1]||(a[e][1]=a[e][0]);return function(e,t,n){for(var i={},r=0;r<a.length;r++){var o=a[r][1];t&&0<=s.indexOf(t,o)||n&&s.indexOf(n,o)<0||null!=(o=e.getShallow(o))&&(i[a[r][0]]=o)}return i}}},function(e,t,n){var w=n(65),f=n(20),m=n(121),g=n(21),i=n(147).devicePixelRatio,C={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},v=[],y=[],x=[],b=[],_=Math.min,S=Math.max,A=Math.cos,M=Math.sin,T=Math.sqrt,k=Math.abs,s="undefined"!=typeof Float32Array,n=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};n.prototype={constructor:n,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t,n){this._ux=k((n=n||0)/i/e)||0,this._uy=k(n/i/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return(this._ctx=e)&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(C.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var n=k(e-this._xi)>this._ux||k(t-this._yi)>this._uy||this._len<5;return this.addData(C.L,e,t),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,n,i,r,o){return this.addData(C.C,e,t,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,n,i,r,o):this._ctx.bezierCurveTo(e,t,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(e,t,n,i){return this.addData(C.Q,e,t,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,n,i):this._ctx.quadraticCurveTo(e,t,n,i)),this._xi=n,this._yi=i,this},arc:function(e,t,n,i,r,o){return this.addData(C.A,e,t,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=A(r)*n+e,this._yi=M(r)*n+t,this},arcTo:function(e,t,n,i,r){return this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},rect:function(e,t,n,i){return this._ctx&&this._ctx.rect(e,t,n,i),this.addData(C.R,e,t,n,i),this},closePath:function(){this.addData(C.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e;for(var t=this._dashIdx=0,n=0;n<e.length;n++)t+=e[n];this._dashSum=t}return this},setLineDashOffset:function(e){return this._dashOffset=e,this},len:function(){return this._len},setData:function(e){var t=e.length;this.data&&this.data.length===t||!s||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},appendPath:function(e){for(var t=(e=!(e instanceof Array)?[e]:e).length,n=0,i=this._len,r=0;r<t;r++)n+=e[r].len();s&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<t;r++)for(var o=e[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},addData:function(e){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var n=0;n<arguments.length;n++)t[this._len++]=arguments[n];this._prevCmd=e}},_expandData:function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(e,t){var n,i,r=this._dashSum,o=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=e-l,h=t-u,d=T(c*c+h*h),p=l,f=u,m=a.length;for(o<0&&(o=r+o),p-=(o%=r)*(c/=d),f-=o*(h/=d);0<c&&p<=e||c<0&&e<=p||0===c&&(0<h&&f<=t||h<0&&t<=f);)p+=c*(n=a[i=this._dashIdx]),f+=h*n,this._dashIdx=(i+1)%m,0<c&&p<l||c<0&&l<p||0<h&&f<u||h<0&&u<f||s[i%2?"moveTo":"lineTo"]((0<=c?_:S)(p,e),(0<=h?_:S)(f,t));this._dashOffset=-T((c=p-e)*c+(h=f-t)*h)},_dashedBezierTo:function(e,t,n,i,r,o){var a,s,l,u,c,h=this._dashSum,d=this._dashOffset,p=this._lineDash,f=this._ctx,m=this._xi,g=this._yi,v=w.cubicAt,y=0,x=this._dashIdx,b=p.length,_=0;for(d<0&&(d=h+d),d%=h,a=0;a<1;a+=.1)s=v(m,e,n,r,a+.1)-v(m,e,n,r,a),l=v(g,t,i,o,a+.1)-v(g,t,i,o,a),y+=T(s*s+l*l);for(;x<b&&!(d<(_+=p[x]));x++);for(a=(_-d)/y;a<=1;)u=v(m,e,n,r,a),c=v(g,t,i,o,a),x%2?f.moveTo(u,c):f.lineTo(u,c),a+=p[x]/y,x=(x+1)%b;x%2!=0&&f.lineTo(r,o),this._dashOffset=-T((s=r-u)*s+(l=o-c)*l)},_dashedQuadraticTo:function(e,t,n,i){var r=n,o=i;n=(n+2*e)/3,i=(i+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,i,r,o)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,s&&(this.data=new Float32Array(e)))},getBoundingRect:function(){v[0]=v[1]=x[0]=x[1]=Number.MAX_VALUE,y[0]=y[1]=b[0]=b[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,i=0,r=0,o=0;o<e.length;){var a=e[o++];switch(1===o&&(i=t=e[o],r=n=e[o+1]),a){case C.M:i=e[o++],n=r=e[o++],x[0]=t=i,x[1]=r,b[0]=i,b[1]=r;break;case C.L:m.fromLine(t,n,e[o],e[o+1],x,b),t=e[o++],n=e[o++];break;case C.C:m.fromCubic(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],x,b),t=e[o++],n=e[o++];break;case C.Q:m.fromQuadratic(t,n,e[o++],e[o++],e[o],e[o+1],x,b),t=e[o++],n=e[o++];break;case C.A:var s=e[o++],l=e[o++],u=e[o++],c=e[o++],h=e[o++],d=e[o++]+h;o+=1;var p=1-e[o++];1===o&&(i=A(h)*u+s,r=M(h)*c+l),m.fromArc(s,l,u,c,h,d,p,x,b),t=A(d)*u+s,n=M(d)*c+l;break;case C.R:i=t=e[o++],r=n=e[o++],c=e[o++],l=e[o++];m.fromLine(i,r,i+c,r+l,x,b);break;case C.Z:t=i,n=r}f.min(v,v,x),f.max(y,y,b)}return 0===o&&(v[0]=v[1]=y[0]=y[1]=0),new g(v[0],v[1],y[0]-v[0],y[1]-v[1])},rebuildPath:function(e){for(var t,n,i,r,o=this.data,a=this._ux,s=this._uy,l=this._len,u=0;u<l;){var c=o[u++];switch(1===u&&(t=i=o[u],n=r=o[u+1]),c){case C.M:t=i=o[u++],n=r=o[u++],e.moveTo(i,r);break;case C.L:b=o[u++],_=o[u++],(k(b-i)>a||k(_-r)>s||u===l-1)&&(e.lineTo(b,_),i=b,r=_);break;case C.C:e.bezierCurveTo(o[u++],o[u++],o[u++],o[u++],o[u++],o[u++]),i=o[u-2],r=o[u-1];break;case C.Q:e.quadraticCurveTo(o[u++],o[u++],o[u++],o[u++]),i=o[u-2],r=o[u-1];break;case C.A:var h=o[u++],d=o[u++],p=o[u++],f=o[u++],m=o[u++],g=o[u++],v=o[u++],y=o[u++],x=f<p?p:f,b=f<p?1:p/f,_=f<p?f/p:1,g=m+g;.001<Math.abs(p-f)?(e.translate(h,d),e.rotate(v),e.scale(b,_),e.arc(0,0,x,m,g,1-y),e.scale(1/b,1/_),e.rotate(-v),e.translate(-h,-d)):e.arc(h,d,x,m,g,1-y),1===u&&(t=A(m)*p+h,n=M(m)*f+d),i=A(g)*p+h,r=M(g)*f+d;break;case C.R:t=i=o[u],n=r=o[u+1],e.rect(o[u++],o[u++],o[u++],o[u++]);break;case C.Z:e.closePath(),i=t,r=n}}}},n.CMD=C,e.exports=n},function(e,t,n){var i=n(10).makeInner;e.exports=function(){var o=i();return function(e){var t=o(e),n=e.pipelineContext,i=t.large,r=t.progressiveRender,e=t.large=n&&n.large,n=t.progressiveRender=n&&n.progressiveRender;return!!(i^e||r^n)&&"reset"}}},function(e,t,n){var i=n(152);e.exports=function(e,t){return i((t=t||{}).coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}},function(e,t,n){var i=n(1),n={getMin:function(e){var t=this.option,t=e||null==t.rangeStart?t.min:t.rangeStart;return t=this.axis&&null!=t&&"dataMin"!==t&&"function"!=typeof t&&!i.eqNaN(t)?this.axis.scale.parse(t):t},getMax:function(e){var t=this.option,t=e||null==t.rangeEnd?t.max:t.rangeEnd;return t=this.axis&&null!=t&&"dataMax"!==t&&"function"!=typeof t&&!i.eqNaN(t)?this.axis.scale.parse(t):t},getNeedCrossZero:function(){var e=this.option;return null==e.rangeStart&&null==e.rangeEnd&&!e.scale},getCoordSysModel:i.noop,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};e.exports=n},function(e,t,n){var r=n(99),o=n(47),n=n(1),a=n.extend,s=n.isArray;e.exports=function(e,t,n){t=s(t)?{coordDimensions:t}:a({},t);var i=e.getSource(),t=r(i,t);return(e=new o(t,e)).initData(i,n),e}},function(e,t){function l(e,t){e=e[t]-e[1-t];return{span:Math.abs(e),sign:0<e||!(e<0)&&t?-1:1}}function u(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}e.exports=function(e,t,n,i,r,o){e=e||0;var a=n[1]-n[0];null!=r&&(r=u(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i&&(s=u(s=Math.abs(t[1]-t[0]),[0,a]),r=o=u(s,[r,o]),i=0),t[0]=u(t[0],n),t[1]=u(t[1],n);var s=l(t,i);return t[i]+=e,e=r||0,n=n.slice(),s.sign<0?n[0]+=e:n[1]-=e,t[i]=u(t[i],n),n=l(t,i),null!=r&&(n.sign!==s.sign||n.span<r)&&(t[1-i]=t[i]+s.sign*r),n=l(t,i),null!=o&&n.span>o&&(t[1-i]=t[i]+n.sign*o),t}},function(e,t,n){n(14).__DEV__;var i=n(3),s=n(1),r=n(25),o=n(10),a=n(220),l=n(718),u=s.each,c=a.eachAxisDim,i=i.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,t,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=h(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this.doInit(i)},mergeOption:function(e){var t=h(e);s.merge(this.option,e,!0),s.merge(this.settledOption,t,!0),this.doInit(t)},doInit:function(e){var n=this.option;r.canvasSupported||(n.realtime=!1),this._setDefaultThrottle(e),d(this,e);var i=this.settledOption;u([["start","startValue"],["end","endValue"]],function(e,t){"value"===this._rangePropMode[t]&&(n[e[0]]=i[e[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var o=this._axisProxies;this.eachTargetAxis(function(e,t,n,i){var r=this.dependentModels[e.axis][t],i=r.__dzAxisProxy||(r.__dzAxisProxy=new l(e.name,t,this,i));o[e.name+"_"+t]=i},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();c(function(e){e=e.axisIndex;t[e]=o.normalizeToArray(t[e])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,n=!1;c(function(e){null!=t[e.axisIndex]&&(n=!0)},this);var e=t.orient;return null==e&&n?"orient":n?void 0:(null==e&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e,o=!0,t=this.get("orient",!0),a=this.option,n=this.dependentModels;o&&(n[(e="vertical"===t?"y":"x")+"Axis"].length?(a[e+"AxisIndex"]=[0],o=!1):u(n.singleAxis,function(e){o&&e.get("orient",!0)===t&&(a.singleAxisIndex=[e.componentIndex],o=!1)})),o&&c(function(e){if(o){var t=[],n=this.dependentModels[e.axis];if(n.length&&!t.length)for(var i=0,r=n.length;i<r;i++)"category"===n[i].get("type")&&t.push(i);(a[e.axisIndex]=t).length&&(o=!1)}},this),o&&this.ecModel.eachSeries(function(r){this._isSeriesHasAllAxesTypeOf(r,"value")&&c(function(e){var t=a[e.axisIndex],n=r.get(e.axisIndex),i=r.get(e.axisId),n=r.ecModel.queryComponents({mainType:e.axis,index:n,id:i})[0].componentIndex;s.indexOf(t,n)<0&&t.push(n)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){t=t||e.name},this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(n,i){var r=!0;return c(function(e){var t=n.get(e.axisIndex),t=this.dependentModels[e.axis][t];t&&t.get("type")===i||(r=!1)},this),r},_setDefaultThrottle:function(e){e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle&&(e=this.ecModel.option,this.option.throttle=e.animation&&0<e.animationDurationUpdate?100:20)},getFirstTargetAxisModel:function(){var n;return c(function(e){var t;null!=n||(t=this.get(e.axisIndex)).length&&(n=this.dependentModels[e.axis][t[0]])},this),n},eachTargetAxis:function(n,i){var r=this.ecModel;c(function(t){u(this.get(t.axisIndex),function(e){n.call(i,t,e,this,r)},this)},this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){t=this.getAxisProxy(e,t);return t&&t.getAxisModel()},setRawRange:function(t){var n=this.option,i=this.settledOption;u([["start","startValue"],["end","endValue"]],function(e){null==t[e[0]]&&null==t[e[1]]||(n[e[0]]=i[e[0]]=t[e[0]],n[e[1]]=i[e[1]]=t[e[1]])},this),d(this,t)},setCalculatedRange:function(t){var n=this.option;u(["start","startValue","end","endValue"],function(e){n[e]=t[e]})},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();t=this.findRepresentativeAxisProxy();return t?t.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t,n=this._axisProxies;for(t in n)if(n.hasOwnProperty(t)&&n[t].hostedBy(this))return n[t];for(t in n)if(n.hasOwnProperty(t)&&!n[t].hostedBy(this))return n[t]},getRangePropMode:function(){return this._rangePropMode.slice()}});function h(t){var n={};return u(["start","end","startValue","endValue","throttle"],function(e){t.hasOwnProperty(e)&&(n[e]=t[e])}),n}function d(e,i){var r=e._rangePropMode,o=e.get("rangeMode");u([["start","startValue"],["end","endValue"]],function(e,t){var n=null!=i[e[0]],e=null!=i[e[1]];n&&!e?r[t]="percent":!n&&e?r[t]="value":o?r[t]=o[t]:n&&(r[t]="percent")})}e.exports=i},function(e,t,n){n=n(151).extend({type:"dataZoom",render:function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},getTargetCoordInfo:function(){var e=this.dataZoomModel,i=this.ecModel,r={};return e.eachTargetAxis(function(e,t){var n,t=i.getComponent(e.axis,t);t&&(n=t.getCoordSysModel())&&function(e,t,n,i){for(var r,o=0;o<n.length;o++)if(n[o].model===e){r=n[o];break}r||n.push(r={model:e,axisModels:[],coordIndex:i});r.axisModels.push(t)}(n,t,r[n.mainType]||(r[n.mainType]=[]),n.componentIndex)},this),r}});e.exports=n},function(e,t,n){},function(e,t,n){"use strict";function i(e,t){var n=t.to,i=t.url,t=t.replace;n&&e?(n=e[t?"replace":"push"](n))&&n.catch&&n.catch(function(e){if(e&&!("NavigationDuplicated"===(t=e).name||t.message&&-1!==t.message.indexOf("redundant navigation")))throw e;var t}):i&&(t?location.replace(i):location.href=i)}t.__esModule=!0,t.route=i,t.functionalRoute=function(e){i(e.parent&&e.parent.$router,e.props)},t.routeProps=void 0;var r={url:String,replace:Boolean,to:[String,Object]};t.routeProps=r},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var s=i(n(34)),l=n(9),u=n(37),i=(0,l.createNamespace)("loading"),n=i[0],c=i[1];function r(e,t,n,i){var r=t.color,o=t.size,a=t.type,r={color:r};return o&&(o=(0,l.addUnit)(o),r.width=o,r.height=o),e("div",(0,s.default)([{class:c([a,{vertical:t.vertical}])},(0,u.inherit)(i,!0)]),[e("span",{class:c("spinner",a),style:r},[function(e,t){if("spinner"!==t.type)return e("svg",{class:c("circular"),attrs:{viewBox:"25 25 50 50"}},[e("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]);for(var n=[],i=0;i<12;i++)n.push(e("i"));return n}(e,t)]),function(e,t,n){if(n.default){var i,t={fontSize:(0,l.addUnit)(t.textSize),color:null!=(i=t.textColor)?i:t.color};return e("span",{class:c("text"),style:t},[n.default()])}}(e,t,n)])}r.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};n=n(r);t.default=n},function(e,t,n){"use strict";t.__esModule=!0,t.BindEventMixin=function(e){var t="binded_"+o++;function n(){this[t]||(e.call(this,r.on,!0),this[t]=!0)}function i(){this[t]&&(e.call(this,r.off,!1),this[t]=!1)}return{mounted:n,activated:n,deactivated:i,beforeDestroy:i}};var r=n(40),o=0},function(e,t,r){"use strict";var i=r(135);function o(e,t){var n=r(110),i=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):i.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=e||"Unknown error",t&&n(t,function(e,t){i[t]=e})}function n(t,n){function e(){var e=Array.prototype.slice.call(arguments,0);"string"!=typeof e[0]&&e.unshift(n),o.apply(this,e),this.name="AlgoliaSearch"+t+"Error"}return i(e,o),e}i(o,Error),e.exports={AlgoliaSearchError:o,UnparsableJSON:n("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:n("RequestTimeout","Request timed out before getting a response"),Network:n("Network","Network issue, see err.more for details"),JSONPScriptFail:n("JSONPScriptFail","<script> was loaded but did not call our provided callback"),ValidUntilNotFound:n("ValidUntilNotFound","The SecuredAPIKey does not have a validUntil parameter."),JSONPScriptError:n("JSONPScriptError","<script> unable to load due to an `error` event on it"),ObjectNotFound:n("ObjectNotFound","Object not found"),Unknown:n("Unknown","Unknown error occured")}},function(e,t){var a=Object.prototype.hasOwnProperty,s=Object.prototype.toString;e.exports=function(e,t,n){if("[object Function]"!==s.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var r=0;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)a.call(e,o)&&t.call(n,e[o],o,e)}},function(e,t,n){var o=n(110);e.exports=function(n,i){var r=[];return o(n,function(e,t){r.push(i(e,t,n))}),r}},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var s=n(9),r=n(168),l=i(n(48)),i=(0,s.createNamespace)("popup"),n=i[0],u=i[1],r=n({mixins:[(0,r.PopupMixin)()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){function e(t){return function(e){return n.$emit(t,e)}}var n=this;this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(e){this.$emit("click-close-icon",e),this.close()}},render:function(){var e=arguments[0];if(this.shouldRender){var t=this.round,n=this.position,i=this.duration,r="center"===n,o=this.transition||(r?"van-fade":"van-popup-slide-"+n),a={};return(0,s.isDef)(i)&&(a[r?"animationDuration":"transitionDuration"]=i+"s"),e("transition",{attrs:{appear:this.transitionAppear,name:o},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:a,class:u(((t={round:t})[n]=n,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(l.default,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:u("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}});t.default=r},function(e,t,n){"use strict";var i=n(5),r=n.n(i),o=void 0;t.a=function(){if(r.a.prototype.$isServer)return 0;if(void 0!==o)return o;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);n=n.offsetWidth;return e.parentNode.removeChild(e),o=t-n}},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});function i(e,n){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=arguments[3];return new window.Promise(function(o,t){function a(e){t(e.response||e.statusText||"Server Error 500")}var s=new XMLHttpRequest;s.open(e,n),s.setRequestHeader("Content-Type","application/json"),s.timeout=1e4,r&&r(s),s.onload=function(){if(4===s.readyState)if(200<=s.status&&s.status<300||304===s.status){var e=s.response,t=s.getResponseHeader("Content-Type");if(-1<t.indexOf("zip")){var n="style.zip",i=s.getResponseHeader("content-disposition");i&&-1!==i.indexOf("attachment")&&(null!=(r=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(i))&&r[1]&&(n=r[1].replace(/['"]/g,"")));var r=new Blob([e],{type:t}),t=URL.createObjectURL(r),r=document.createElement("a");return r.href=t,r.download=n,r.click(),void o(e)}try{e=JSON.parse(s.response)}catch(e){}o(e)}else a(s);else a(s)},s.onerror=function(){a(s)},s.ontimeout=function(){s.abort(),t("Request Timeout")},s.send(JSON.stringify(i))})}var r=function(e,t,n){return i("POST",e,t,n)},o=function(e){return i("GET",e)}},function(e,t){e=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(3),r=n(1),o=n(155),a=o.layout,o=o.largeLayout;n(201),n(539),n(540),n(127),i.registerLayout(i.PRIORITY.VISUAL.LAYOUT,r.curry(a,"bar")),i.registerLayout(i.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,o),i.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}})},function(e,t,n){var i=function(){};1===n(147).debugMode&&(i=console.error),e.exports=i},function(e,t,n){var i=n(1),r=n(192),o=n(299),n=n(305);function a(e){for(var t in o.call(this,e=e||{}),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new r(e.style,this),this._rect=null,this.__clipPaths=null}a.prototype={constructor:a,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){t=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(t[0],t[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?o.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new r(e,this),this.dirty(!1),this},calculateTextPosition:null},i.inherits(a,o),i.mixin(a,n),e.exports=a},function(e,t,n){var p=n(20),g=n(65),v=Math.min,y=Math.max,f=Math.sin,m=Math.cos,x=2*Math.PI,b=p.create(),_=p.create(),w=p.create();var C=[],S=[];t.fromPoints=function(e,t,n){if(0!==e.length){for(var i=e[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<e.length;l++)i=e[l],r=v(r,i[0]),o=y(o,i[0]),a=v(a,i[1]),s=y(s,i[1]);t[0]=r,t[1]=a,n[0]=o,n[1]=s}},t.fromLine=function(e,t,n,i,r,o){r[0]=v(e,n),r[1]=v(t,i),o[0]=y(e,n),o[1]=y(t,i)},t.fromCubic=function(e,t,n,i,r,o,a,s,l,u){var c,h=g.cubicExtrema,d=g.cubicAt,p=h(e,n,r,a,C);for(l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0,c=0;c<p;c++){var f=d(e,n,r,a,C[c]);l[0]=v(f,l[0]),u[0]=y(f,u[0])}for(p=h(t,i,o,s,S),c=0;c<p;c++){var m=d(t,i,o,s,S[c]);l[1]=v(m,l[1]),u[1]=y(m,u[1])}l[0]=v(e,l[0]),u[0]=y(e,u[0]),l[0]=v(a,l[0]),u[0]=y(a,u[0]),l[1]=v(t,l[1]),u[1]=y(t,u[1]),l[1]=v(s,l[1]),u[1]=y(s,u[1])},t.fromQuadratic=function(e,t,n,i,r,o,a,s){var l=g.quadraticExtremum,u=g.quadraticAt,c=y(v(l(e,n,r),1),0),l=y(v(l(t,i,o),1),0),c=u(e,n,r,c),l=u(t,i,o,l);a[0]=v(e,r,c),a[1]=v(t,o,l),s[0]=y(e,r,c),s[1]=y(t,o,l)},t.fromArc=function(e,t,n,i,r,o,a,s,l){var u=p.min,c=p.max,h=Math.abs(r-o);if(h%x<1e-4&&1e-4<h)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);b[0]=m(r)*n+e,b[1]=f(r)*i+t,_[0]=m(o)*n+e,_[1]=f(o)*i+t,u(s,b,_),c(l,b,_),(r%=x)<0&&(r+=x),(o%=x)<0&&(o+=x),o<r&&!a?o+=x:r<o&&a&&(r+=x),a&&(a=o,o=r,r=a);for(var d=0;d<o;d+=Math.PI/2)r<d&&(w[0]=m(d)*n+e,w[1]=f(d)*i+t,u(s,w,s),c(l,w,l))}},function(e,t,n){var v=n(1),a=n(60).parseClassType,i=0;t.getUID=function(e){return[e||"",i++,Math.random().toFixed(5)].join("_")},t.enableSubTypeDefaulter=function(r){var o={};return r.registerSubTypeDefaulter=function(e,t){e=a(e),o[e.main]=t},r.determineSubType=function(e,t){var n,i=t.type;return i||(n=a(e).main,r.hasSubTypes(e)&&o[n]&&(i=o[n](t))),i},r},t.enableTopologicalTravel=function(e,m){function g(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,t,n,i){if(e.length){var o,a,s,t=(o=t,a={},s=[],v.each(o,function(n){var t,i,r=g(a,n),e=r.originalDeps=m(n),e=(e=e,t=o,i=[],v.each(e,function(e){0<=v.indexOf(t,e)&&i.push(e)}),i);r.entryCount=e.length,0===r.entryCount&&s.push(n),v.each(e,function(e){v.indexOf(r.predecessor,e)<0&&r.predecessor.push(e);var t=g(a,e);v.indexOf(t.successor,e)<0&&t.successor.push(n)})}),{graph:a,noEntryList:s}),r=t.graph,l=t.noEntryList,u={};for(v.each(e,function(e){u[e]=!0});l.length;){var c=l.pop(),h=r[c],d=!!u[c];d&&(n.call(i,c,h.originalDeps.slice()),delete u[c]),v.each(h.successor,d?f:p)}v.each(u,function(){throw new Error("Circle dependency may exists")})}function p(e){r[e].entryCount--,0===r[e].entryCount&&l.push(e)}function f(e){u[e]=!0,p(e)}}}},function(e,t,n){var i=n(1),r=i.createHashMap,o=i.isTypedArray,i=n(60).enableClassCheck,n=n(124),a=n.SOURCE_FORMAT_ORIGINAL,s=n.SERIES_LAYOUT_BY_COLUMN,l=n.SOURCE_FORMAT_UNKNOWN,u=n.SOURCE_FORMAT_TYPED_ARRAY,c=n.SOURCE_FORMAT_KEYED_COLUMNS;function h(e){this.fromDataset=e.fromDataset,this.data=e.data||(e.sourceFormat===c?{}:[]),this.sourceFormat=e.sourceFormat||l,this.seriesLayoutBy=e.seriesLayoutBy||s,this.dimensionsDefine=e.dimensionsDefine,this.encodeDefine=e.encodeDefine&&r(e.encodeDefine),this.startIndex=e.startIndex||0,this.dimensionsDetectCount=e.dimensionsDetectCount}h.seriesDataToSource=function(e){return new h({data:e,sourceFormat:o(e)?u:a,fromDataset:!1})},i(h),e.exports=h},function(e,t){t.SOURCE_FORMAT_ORIGINAL="original",t.SOURCE_FORMAT_ARRAY_ROWS="arrayRows",t.SOURCE_FORMAT_OBJECT_ROWS="objectRows",t.SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",t.SOURCE_FORMAT_UNKNOWN="unknown",t.SOURCE_FORMAT_TYPED_ARRAY="typedArray",t.SERIES_LAYOUT_BY_COLUMN="column",t.SERIES_LAYOUT_BY_ROW="row"},function(e,t,n){var i=n(1),h=i.each,d=i.createHashMap,p=(i.assert,n(14).__DEV__,d(["tooltip","label","itemName","itemId","seriesName"]));function f(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}t.OTHER_DIMENSIONS=p,t.summarizeDimensions=function(o){var e={},a=e.encode={},s=d(),l=[],u=[],c=e.userOutput={dimensionNames:o.dimensions.slice(),encode:{}};h(o.dimensions,function(e){var t,n,i=o.getDimensionInfo(e),r=i.coordDim;r&&(t=i.coordDimIndex,f(a,r)[t]=e,i.isExtraCoord||(s.set(r,1),"ordinal"===(n=i.type)||"time"===n||(l[0]=e),f(c.encode,r)[t]=i.index),i.defaultTooltip&&u.push(e)),p.each(function(e,t){var n=f(a,t),t=i.otherDims[t];null!=t&&!1!==t&&(n[t]=i.name)})});var i=[],r={};s.each(function(e,t){var n=a[t];r[t]=n[0],i=i.concat(n)}),e.dataDimsOnCoord=i,e.encodeFirstDimNotExtra=r;var t=a.label;return t&&t.length&&(l=t.slice()),(t=a.tooltip)&&t.length?u=t.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,e},t.getDimensionTypeByAxis=function(e){return"category"===e?"ordinal":"time"===e?"time":"float"}},function(e,t,n){var l=n(6),r=n(8).round;function i(e,t,n){var i=e.getArea(),r=e.getBaseAxis().isHorizontal(),o=i.x,a=i.y,s=i.width,e=i.height,i=n.get("lineStyle.width")||2;o-=i/2,a-=i/2,s+=i,e+=i;o=Math.floor(o),s=Math.round(s),a=new l.Rect({shape:{x:o,y:a,width:s,height:e}});return t&&(a.shape[r?"width":"height"]=0,l.initProps(a,{shape:{width:s,height:e}},n)),a}function o(e,t,n){var i=e.getArea(),e=new l.Sector({shape:{cx:r(e.cx,1),cy:r(e.cy,1),r0:r(i.r0,1),r:r(i.r,1),startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return t&&(e.shape.endAngle=i.startAngle,l.initProps(e,{shape:{endAngle:i.endAngle}},n)),e}t.createGridClipPath=i,t.createPolarClipPath=o,t.createClipPath=function(e,t,n){return e?"polar"===e.type?o(e,t,n):"cartesian2d"===e.type?i(e,t,n):null:null}},function(e,t,n){var i=n(3),r=n(1),o=n(6);n(201),n(543),i.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new o.Rect({shape:e.coordinateSystem.getRect(),style:r.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),i.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})},function(e,t,n){var i=n(3),r=n(1),o=n(157),a=n(545);n(546),n(547),n(340),i.registerPreprocessor(function(e){var t;e&&(e.axisPointer&&0!==e.axisPointer.length||(e.axisPointer={}),(t=e.axisPointer.link)&&!r.isArray(t)&&(e.axisPointer.link=[t]))}),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=o.collect(e,t)}),i.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},a)},function(e,t,n){var c=n(6),i=n(159),r=n(1).isObject;function o(e){this.group=new c.Group,this._symbolCtor=e||i}n=o.prototype;function h(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function d(e){return(e=null!=e&&!r(e)?{isIgnore:e}:e)||{}}function p(e){e=e.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}n.updateData=function(i,r){r=d(r);var o=this.group,a=i.hostModel,s=this._data,l=this._symbolCtor,u=p(i);s||o.removeAll(),i.diff(s).add(function(e){var t,n=i.getItemLayout(e);h(i,n,e,r)&&((t=new l(i,e,u)).attr("position",n),i.setItemGraphicEl(e,t),o.add(t))}).update(function(e,t){var n=s.getItemGraphicEl(t),t=i.getItemLayout(e);h(i,t,e,r)?(n?(n.updateData(i,e,u),c.updateProps(n,{position:t},a)):(n=new l(i,e)).attr("position",t),o.add(n),i.setItemGraphicEl(e,n)):o.remove(n)}).remove(function(e){var t=s.getItemGraphicEl(e);t&&t.fadeOut(function(){o.remove(t)})}).execute(),this._data=i},n.isPersistent=function(){return!0},n.updateLayout=function(){var n=this._data;n&&n.eachItemGraphicEl(function(e,t){t=n.getItemLayout(t);e.attr("position",t)})},n.incrementalPrepareUpdate=function(e){this._seriesScope=p(e),this._data=null,this.group.removeAll()},n.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}n=d(n);for(var r=e.start;r<e.end;r++){var o,a=t.getItemLayout(r);h(t,a,r,n)&&((o=new this._symbolCtor(t,r,this._seriesScope)).traverse(i),o.attr("position",a),this.group.add(o),t.setItemGraphicEl(r,o))}},n.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)})}):t.removeAll()},e.exports=o},function(e,t,n){var i=n(1).map,r=n(98),o=n(57).isDimensionStacked;e.exports=function(e){return{seriesType:e,plan:r(),reset:function(e){var t=e.getData(),c=e.coordinateSystem,h=e.pipelineContext.large;if(c){var d=i(c.dimensions,function(e){return t.mapDimension(e)}).slice(0,2),p=d.length,e=t.getCalculationInfo("stackResultDimension");return o(t,d[0])&&(d[0]=e),o(t,d[1])&&(d[1]=e),p&&{progress:function(e,t){for(var n,i,r=e.end-e.start,o=h&&new Float32Array(r*p),a=e.start,s=0,l=[],u=[];a<e.end;a++)i=1===p?(n=t.get(d[0],a),!isNaN(n)&&c.dataToPoint(n,null,u)):(n=l[0]=t.get(d[0],a),i=l[1]=t.get(d[1],a),!isNaN(n)&&!isNaN(i)&&c.dataToPoint(l,null,u)),h?(o[s++]=i?i[0]:NaN,o[s++]=i?i[1]:NaN):t.setItemLayout(a,i&&i.slice()||[NaN,NaN]);h&&t.setLayout("symbolPoints",o)}}}}}}},function(e,t){e.exports=function(n,t){this.getAllNames=function(){var e=t();return e.mapArray(e.getName)},this.containName=function(e){return 0<=t().indexOfName(e)},this.indexOfName=function(e){return n().indexOfName(e)},this.getItemVisual=function(e,t){return n().getItemVisual(e,t)}}},function(e,t,n){var r=n(1).createHashMap;e.exports=function(i){return{getTargetSeries:function(e){var t={},n=r();return e.eachSeriesByType(i,function(e){e.__paletteScope=t,n.set(e.uid,e)}),n},reset:function(o,e){var a=o.getRawData(),s={},l=o.getData();l.each(function(e){var t=l.getRawIndex(e);s[t]=e}),a.each(function(e){var t,n=s[e],i=null!=n&&l.getItemVisual(n,"color",!0),r=null!=n&&l.getItemVisual(n,"borderColor",!0);i&&r||(t=a.getItemModel(e)),i||(e=t.get("itemStyle.color")||o.getColorFromPalette(a.getName(e)||e+"",o.__paletteScope,a.count()),null!=n&&l.setItemVisual(n,"color",e)),r||(t=t.get("itemStyle.borderColor"),null!=n&&l.setItemVisual(n,"borderColor",t))})}}}},function(e,t){e.exports=function(e){return{seriesType:e,reset:function(e,t){var i,r=t.findComponents({mainType:"legend"});r&&r.length&&(i=e.getData()).filterSelf(function(e){for(var t=i.getName(e),n=0;n<r.length;n++)if(!r[n].isSelected(t))return!1;return!0})}}}},function(e,t,n){var l=n(1),u=n(77),s=n(54),c=n(352);function i(n){this.pointerChecker,this._zr=n,this._opt={};var e=l.bind,i=e(h,this),r=e(d,this),o=e(p,this),a=e(f,this),s=e(m,this);u.call(this),this.setPointerChecker=function(e){this.pointerChecker=e},this.enable=function(e,t){this.disable(),this._opt=l.defaults(l.clone(t)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),!0!==(e=null==e?!0:e)&&"move"!==e&&"pan"!==e||(n.on("mousedown",i),n.on("mousemove",r),n.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(n.on("mousewheel",a),n.on("pinch",s))},this.disable=function(){n.off("mousedown",i),n.off("mousemove",r),n.off("mouseup",o),n.off("mousewheel",a),n.off("pinch",s)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function h(e){var t,n;s.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable||(t=e.offsetX,n=e.offsetY,this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0))}function d(e){var t,n,i,r,o,a;this._dragging&&y("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!c.isTaken(this._zr,"globalPan")&&(t=e.offsetX,n=e.offsetY,o=t-(i=this._x),a=n-(r=this._y),this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&s.stop(e.event),v(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:i,oldY:r,newX:t,newY:n}))}function p(e){s.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function f(e){var t=y("zoomOnMouseWheel",e,this._opt),n=y("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),o=e.offsetX,a=e.offsetY;0!==i&&(t||n)&&(t&&(r=3<r?1.4:1<r?1.2:1.1,g(this,"zoom","zoomOnMouseWheel",e,{scale:0<i?r:1/r,originX:o,originY:a})),n&&g(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(0<i?1:-1)*(3<(i=Math.abs(i))?.4:1<i?.15:.05),originX:o,originY:a}))}function m(e){c.isTaken(this._zr,"globalPan")||g(this,"zoom",null,e,{scale:1<e.pinchScale?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY})}function g(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(s.stop(i.event),v(e,t,n,i,r))}function v(e,t,n,i,r){r.isAvailableBehavior=l.bind(y,null,n,i),e.trigger(t,r)}function y(e,t,n){n=n[e];return!e||n&&(!l.isString(n)||t.event[n+"Key"])}l.mixin(i,u),e.exports=i},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){var n;t&&(e.super_=t,(n=function(){}).prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e)}},function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return l}),n.d(t,"c",function(){return u});var t=n(49),i=n(114),r=t.a.version,o={local:"http://localhost:3008/",alpha:"https://element-api.ar.elenet.me/element/theme/",production:"https://element-api.ele.me/element/theme/"},a=o[void 0]||o.production,s=function(){return Object(i.a)(a+"getVariable?version="+r)},l=function(){return Object(i.a)(o.alpha+"getVariable")},u=function(e,t){return Object(i.b)(a+"updateVariable?version="+r,e,t)}},function(e){e.exports=JSON.parse('{"zh-CN":[{"name":"指南","children":[{"path":"/installation","name":"安装"},{"path":"/quickstart","name":"使用说明"},{"path":"/dev","name":"开发说明"},{"path":"/theme","name":"主题定制"}]},{"name":"组件","groups":[{"groupName":"Basic","list":[{"path":"/layout","title":"Layout 布局"},{"path":"/container","title":"Container 布局容器"},{"path":"/border","title":"Border 边框"},{"path":"/icon","title":"Icon 图标"},{"path":"/button","title":"Button 按钮"},{"path":"/link","title":"Link 文字链接"}]},{"groupName":"Form","list":[{"path":"/radio","title":"Radio 单选框"},{"path":"/checkbox","title":"Checkbox 多选框"},{"path":"/input","title":"Input 输入框"},{"path":"/input-number","title":"InputNumber 计数器"},{"path":"/select","title":"Select 选择器"},{"path":"/cascader","title":"Cascader 级联选择器"},{"path":"/switch","title":"Switch 开关"},{"path":"/time-picker","title":"TimePicker 时间选择器"},{"path":"/date-picker","title":"DatePicker 日期选择器"},{"path":"/datetime-picker","title":"DateTimePicker 日期时间选择器"},{"path":"/color-picker","title":"ColorPicker 颜色选择器"},{"path":"/transfer","title":"Transfer 穿梭框"},{"path":"/form","title":"Form 表单"}]},{"groupName":"Data","list":[{"path":"/table","title":"Table 表格"},{"path":"/tag","title":"Tag 标签"},{"path":"/progress","title":"Progress 进度条"},{"path":"/tree","title":"Tree 树形控件"},{"path":"/pagination","title":"Pagination 分页"},{"path":"/badge","title":"Badge 标记"},{"path":"/avatar","title":"Avatar 头像"}]},{"groupName":"Notice","list":[{"path":"/alert","title":"Alert 警告"},{"path":"/loading","title":"Loading 加载"},{"path":"/message","title":"Message 消息提示"},{"path":"/message-box","title":"MessageBox 弹框"},{"path":"/notification","title":"Notification 通知"}]},{"groupName":"Navigation","list":[{"path":"/menu","title":"NavMenu 导航菜单"},{"path":"/tabs","title":"Tabs 标签页"},{"path":"/breadcrumb","title":"Breadcrumb 面包屑"},{"path":"/dropdown","title":"Dropdown 下拉菜单"},{"path":"/steps","title":"Steps 步骤条"}]},{"groupName":"Charts","list":[{"path":"/c-line","title":"Line 线图"},{"path":"/c-bar","title":"Bar 柱状图"},{"path":"/c-pie","title":"Pie 饼图"},{"path":"/c-ring","title":"Ring 环形图"},{"path":"/c-funnel","title":"Funnel 漏斗图"},{"path":"/c-radar","title":"Radar 雷达图"},{"path":"/c-graph","title":"Graph 拓扑图"},{"path":"/c-gantt","title":"Gantt 甘特图"}]},{"groupName":"Others","list":[{"path":"/popover","title":"Popover 弹出框"},{"path":"/popconfirm","title":"Popconfirm 气泡确认框"},{"path":"/card","title":"Card 卡片"},{"path":"/collapse","title":"Collapse 折叠面板"},{"path":"/drawer","title":"Drawer 抽屉"}]}]}],"en-US":[{"name":"Changelog","path":"/changelog"},{"name":"Element React","href":"https://elemefe.github.io/element-react/"},{"name":"Element Angular","href":"https://element-angular.faas.ele.me/"},{"name":"Development","children":[{"path":"/installation","name":"Installation"},{"path":"/quickstart","name":"Quick Start"},{"path":"/i18n","name":"Internationalization"},{"path":"/custom-theme","name":"Custom Theme"},{"path":"/transition","name":"Built-in transition"}]},{"name":"Components","groups":[{"groupName":"Basic","list":[{"path":"/layout","title":"Layout"},{"path":"/container","title":"Layout Container"},{"path":"/color","title":"Color"},{"path":"/typography","title":"Typography"},{"path":"/border","title":"Border"},{"path":"/icon","title":"Icon"},{"path":"/button","title":"Button"},{"path":"/link","title":"Link"}]},{"groupName":"Form","list":[{"path":"/radio","title":"Radio"},{"path":"/checkbox","title":"Checkbox"},{"path":"/input","title":"Input"},{"path":"/input-number","title":"InputNumber"},{"path":"/select","title":"Select"},{"path":"/cascader","title":"Cascader"},{"path":"/switch","title":"Switch"},{"path":"/slider","title":"Slider"},{"path":"/time-picker","title":"TimePicker"},{"path":"/date-picker","title":"DatePicker"},{"path":"/datetime-picker","title":"DateTimePicker"},{"path":"/upload","title":"Upload"},{"path":"/rate","title":"Rate"},{"path":"/color-picker","title":"ColorPicker"},{"path":"/transfer","title":"Transfer"},{"path":"/form","title":"Form"}]},{"groupName":"Data","list":[{"path":"/table","title":"Table"},{"path":"/tag","title":"Tag"},{"path":"/progress","title":"Progress"},{"path":"/tree","title":"Tree"},{"path":"/pagination","title":"Pagination"},{"path":"/badge","title":"Badge"}]},{"groupName":"Notice","list":[{"path":"/alert","title":"Alert"},{"path":"/loading","title":"Loading"},{"path":"/message","title":"Message"},{"path":"/message-box","title":"MessageBox"},{"path":"/notification","title":"Notification"}]},{"groupName":"Navigation","list":[{"path":"/menu","title":"NavMenu"},{"path":"/tabs","title":"Tabs"},{"path":"/breadcrumb","title":"Breadcrumb"},{"path":"/page-header","title":"PageHeader"},{"path":"/dropdown","title":"Dropdown"},{"path":"/steps","title":"Steps"}]},{"groupName":"Others","list":[{"path":"/dialog","title":"Dialog"},{"path":"/tooltip","title":"Tooltip"},{"path":"/popover","title":"Popover"},{"path":"/popconfirm","title":"Popconfirm"},{"path":"/card","title":"Card"},{"path":"/carousel","title":"Carousel"},{"path":"/collapse","title":"Collapse"},{"path":"/timeline","title":"Timeline"},{"path":"/divider","title":"Divider"},{"path":"/calendar","title":"Calendar"},{"path":"/image","title":"Image"},{"path":"/backtop","title":"Backtop"},{"path":"/infiniteScroll","title":"InfiniteScroll"},{"path":"/avatar","title":"Avatar"},{"path":"/drawer","title":"Drawer"}]}]}],"es":[{"name":"Changelog","path":"/changelog"},{"name":"Element React","href":"https://elemefe.github.io/element-react/"},{"name":"Element Angular","href":"https://element-angular.faas.ele.me/"},{"name":"Development","children":[{"path":"/installation","name":"Installation"},{"path":"/quickstart","name":"Quick Start"},{"path":"/i18n","name":"Internationalization"},{"path":"/custom-theme","name":"Custom Theme"},{"path":"/transition","name":"Built-in transition"}]},{"name":"Components","groups":[{"groupName":"Basic","list":[{"path":"/layout","title":"Layout"},{"path":"/container","title":"Layout Container"},{"path":"/color","title":"Color"},{"path":"/typography","title":"Typography"},{"path":"/border","title":"Border"},{"path":"/icon","title":"Icon"},{"path":"/button","title":"Button"},{"path":"/link","title":"Link"}]},{"groupName":"Form","list":[{"path":"/radio","title":"Radio"},{"path":"/checkbox","title":"Checkbox"},{"path":"/input","title":"Input"},{"path":"/input-number","title":"InputNumber"},{"path":"/select","title":"Select"},{"path":"/cascader","title":"Cascader"},{"path":"/switch","title":"Switch"},{"path":"/slider","title":"Slider"},{"path":"/time-picker","title":"TimePicker"},{"path":"/date-picker","title":"DatePicker"},{"path":"/datetime-picker","title":"DateTimePicker"},{"path":"/upload","title":"Upload"},{"path":"/rate","title":"Rate"},{"path":"/color-picker","title":"ColorPicker"},{"path":"/transfer","title":"Transfer"},{"path":"/form","title":"Form"}]},{"groupName":"Data","list":[{"path":"/table","title":"Table"},{"path":"/tag","title":"Tag"},{"path":"/progress","title":"Progress"},{"path":"/tree","title":"Tree"},{"path":"/pagination","title":"Pagination"},{"path":"/badge","title":"Badge"}]},{"groupName":"Notice","list":[{"path":"/alert","title":"Alert"},{"path":"/loading","title":"Loading"},{"path":"/message","title":"Message"},{"path":"/message-box","title":"MessageBox"},{"path":"/notification","title":"Notification"}]},{"groupName":"Navigation","list":[{"path":"/menu","title":"NavMenu"},{"path":"/tabs","title":"Tabs"},{"path":"/breadcrumb","title":"Breadcrumb"},{"path":"/page-header","title":"PageHeader"},{"path":"/dropdown","title":"Dropdown"},{"path":"/steps","title":"Steps"}]},{"groupName":"Others","list":[{"path":"/dialog","title":"Dialog"},{"path":"/tooltip","title":"Tooltip"},{"path":"/popover","title":"Popover"},{"path":"/popconfirm","title":"Popconfirm"},{"path":"/card","title":"Card"},{"path":"/carousel","title":"Carousel"},{"path":"/collapse","title":"Collapse"},{"path":"/timeline","title":"Timeline"},{"path":"/divider","title":"Divider"},{"path":"/calendar","title":"Calendar"},{"path":"/image","title":"Image"},{"path":"/backtop","title":"Backtop"},{"path":"/infiniteScroll","title":"InfiniteScroll"},{"path":"/avatar","title":"Avatar"},{"path":"/drawer","title":"Drawer"}]}]}],"fr-FR":[{"name":"Changelog","path":"/changelog"},{"name":"Element pour React","href":"https://elemefe.github.io/element-react/"},{"name":"Element pour Angular","href":"https://element-angular.faas.ele.me/"},{"name":"Développement","children":[{"path":"/installation","name":"Installation"},{"path":"/quickstart","name":"Démarrer"},{"path":"/i18n","name":"Internationalisation"},{"path":"/custom-theme","name":"Thème"},{"path":"/transition","name":"Transitions"}]},{"name":"Composants","groups":[{"groupName":"Basiques","list":[{"path":"/layout","title":"Layout"},{"path":"/container","title":"Layout Container"},{"path":"/color","title":"Color"},{"path":"/typography","title":"Typography"},{"path":"/border","title":"Border"},{"path":"/icon","title":"Icon"},{"path":"/button","title":"Button"},{"path":"/link","title":"Link"}]},{"groupName":"Formulaire","list":[{"path":"/radio","title":"Radio"},{"path":"/checkbox","title":"Checkbox"},{"path":"/input","title":"Input"},{"path":"/input-number","title":"InputNumber"},{"path":"/select","title":"Select"},{"path":"/cascader","title":"Cascader"},{"path":"/switch","title":"Switch"},{"path":"/slider","title":"Slider"},{"path":"/time-picker","title":"TimePicker"},{"path":"/date-picker","title":"DatePicker"},{"path":"/datetime-picker","title":"DateTimePicker"},{"path":"/upload","title":"Upload"},{"path":"/rate","title":"Rate"},{"path":"/color-picker","title":"ColorPicker"},{"path":"/transfer","title":"Transfer"},{"path":"/form","title":"Form"}]},{"groupName":"Données","list":[{"path":"/table","title":"Table"},{"path":"/tag","title":"Tag"},{"path":"/progress","title":"Progress"},{"path":"/tree","title":"Tree"},{"path":"/pagination","title":"Pagination"},{"path":"/badge","title":"Badge"}]},{"groupName":"Notifier","list":[{"path":"/alert","title":"Alert"},{"path":"/loading","title":"Loading"},{"path":"/message","title":"Message"},{"path":"/message-box","title":"MessageBox"},{"path":"/notification","title":"Notification"}]},{"groupName":"Navigation","list":[{"path":"/menu","title":"NavMenu"},{"path":"/tabs","title":"Tabs"},{"path":"/breadcrumb","title":"Breadcrumb"},{"path":"/page-header","title":"PageHeader"},{"path":"/dropdown","title":"Dropdown"},{"path":"/steps","title":"Steps"}]},{"groupName":"Autres","list":[{"path":"/dialog","title":"Dialog"},{"path":"/tooltip","title":"Tooltip"},{"path":"/popover","title":"Popover"},{"path":"/popconfirm","title":"Popconfirm"},{"path":"/card","title":"Card"},{"path":"/carousel","title":"Carousel"},{"path":"/collapse","title":"Collapse"},{"path":"/timeline","title":"Timeline"},{"path":"/divider","title":"Divider"},{"path":"/calendar","title":"Calendar"},{"path":"/image","title":"Image"},{"path":"/backtop","title":"Backtop"},{"path":"/infiniteScroll","title":"InfiniteScroll"},{"path":"/avatar","title":"Avatar"},{"path":"/drawer","title":"Drawer"}]}]}]}')},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});function r(e){return"{}"===JSON.stringify(e)}var i=function(e){try{var t=JSON.parse(e),n=t.global,i=t.local;return r(n)&&r(i)?!1:t}catch(e){return!1}},o=function(e,t){var n=document.getElementById(e);n||((n=document.createElement("style")).setAttribute("id",e),document.head.appendChild(n)),n.innerText=t.replace(/@font-face{[^}]+}/,"")}},function(e,t,n){var i=n(116);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(290),r=n(184);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t){e.exports=!0},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(297),l=n(25),u=n(1),c=n(489),h=n(493),r=n(497),d=n(499),p=n(500),f=!l.canvasSupported,m={canvas:r},o={};function a(e,t,n){n=n||{},this.dom=t,this.id=e;var i=this,r=new h,o=n.renderer;if(f){if(!m.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");o="vml"}else o&&m[o]||(o="canvas");n=new m[o](t,r,n,e),this.storage=r,this.painter=n,e=l.node||l.worker?null:new p(n.getViewportRoot(),n.root),this.handler=new c(r,n,e,n.root),this.animation=new d({stage:{update:u.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var a=r.delFromStorage,s=r.addToStorage;r.delFromStorage=function(e){a.call(r,e),e&&e.removeSelfFromZr(i)},r.addToStorage=function(e){s.call(r,e),e.addSelfToZr(i)}}a.prototype={constructor:a,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this._needsRefresh=!0},setBackgroundColor:function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var e;this._needsRefresh&&(e=!0,this.refreshImmediately()),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),e&&this.trigger("rendered")},addHover:function(e,t){if(this.painter.addHover){t=this.painter.addHover(e,t);return this.refreshHover(),t}},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(e){this.painter.resize((e=e||{}).width,e.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t){return this.painter.pathToImage(e,t)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},findHover:function(e,t){return this.handler.findHover(e,t)},on:function(e,t,n){this.handler.on(e,t,n)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var e;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,e=this.id,delete o[e]}},t.version="4.3.2",t.init=function(e,t){return t=new a(i(),e,t),o[t.id]=t},t.dispose=function(e){if(e)e.dispose();else{for(var t in o)o.hasOwnProperty(t)&&o[t].dispose();o={}}return this},t.getInstance=function(e){return o[e]},t.registerPainter=function(e,t){m[e]=t}},function(e,t,n){var o=n(35),i=n(20),a=o.identity;function s(e){return 5e-5<e||e<-5e-5}function r(e){(e=e||{}).position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null}n=r.prototype;n.transform=null,n.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var l=[];n.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),i=this.transform;n||t?(i=i||o.create(),n?this.getLocalTransform(i):a(i),t&&(n?o.mul(i,e.transform,i):o.copy(i,e.transform)),this.transform=i,null!=(t=this.globalScaleRatio)&&1!==t&&(this.getGlobalScale(l),e=((l[1]-(n=l[1]<0?-1:1))*t+n)/l[1]||0,i[0]*=n=((l[0]-(n=l[0]<0?-1:1))*t+n)/l[0]||0,i[1]*=n,i[2]*=e,i[3]*=e),this.invTransform=this.invTransform||o.create(),o.invert(this.invTransform,i)):i&&a(i)},n.getLocalTransform=function(e){return r.getLocalTransform(this,e)},n.setTransform=function(e){var t=this.transform,n=e.dpr||1;t?e.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):e.setTransform(n,0,0,n,0,0)},n.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var u=[],c=o.create();n.setLocalTransform=function(e){var t,n,i,r;e&&(t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=this.position,r=this.scale,s(t-1)&&(t=Math.sqrt(t)),s(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),i[0]=e[4],i[1]=e[5],r[0]=t,r[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/t))},n.decomposeTransform=function(){var e,t;this.transform&&(t=this.parent,e=this.transform,t&&t.transform&&(o.mul(u,t.invTransform,e),e=u),(t=this.origin)&&(t[0]||t[1])&&(c[4]=t[0],c[5]=t[1],o.mul(u,e,c),u[4]-=t[0],u[5]-=t[1],e=u),this.setLocalTransform(e))},n.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1])):(e[0]=1,e[1]=1),e},n.transformCoordToLocal=function(e,t){e=[e,t],t=this.invTransform;return t&&i.applyTransform(e,e,t),e},n.transformCoordToGlobal=function(e,t){e=[e,t],t=this.transform;return t&&i.applyTransform(e,e,t),e},r.getLocalTransform=function(e,t){a(t=t||[]);var n=e.origin,i=e.scale||[1,1],r=e.rotation||0,e=e.position||[0,0];return n&&(t[4]-=n[0],t[5]-=n[1]),o.scale(t,t,i),r&&o.rotate(t,t,r),n&&(t[4]+=n[0],t[5]+=n[1]),t[4]+=e[0],t[5]+=e[1],t},e.exports=r},function(e,t){var n=1,n=n="undefined"!=typeof window?Math.max(window.devicePixelRatio||1,1):n;t.debugMode=0,t.devicePixelRatio=n},function(e,t){t.ContextCachedBy={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},t.WILL_BE_RESTORED=9},function(e,t,n){var i=n(1),h=i.retrieve2,d=i.retrieve3,r=i.each,o=i.normalizeCssArray,p=i.isString,f=i.isObject,T=n(41),m=n(306),g=n(193),M=n(302),n=n(148),k=n.ContextCachedBy,D=n.WILL_BE_RESTORED,I=T.DEFAULT_FONT,a={left:1,right:1,center:1},s={top:1,bottom:1,middle:1},O=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],u={},N={};function l(e){var t;e&&(e.font=T.makeFont(e),t=e.textAlign,e.textAlign=null==(t="middle"===t?"center":t)||a[t]?t:"left",t=e.textVerticalAlign||e.textBaseline,e.textVerticalAlign=null==(t="center"===t?"middle":t)||s[t]?t:"top",e.textPadding&&(e.textPadding=o(e.textPadding)))}function L(e,t,n,i,r){var o;n&&t.textRotation&&("center"===(o=t.textOrigin)?(i=n.width/2+n.x,r=n.height/2+n.y):o&&(i=o[0]+n.x,r=o[1]+n.y),e.translate(i,r),e.rotate(-t.textRotation),e.translate(-i,-r))}function P(e,t,n,i,r,o,a,s){var l=i.rich[n.styleName]||{};l.text=n.text;var u=n.textVerticalAlign,c=o+r/2;"top"===u?c=o+n.height/2:"bottom"===u&&(c=o+r-n.height/2),!n.isLineHolder&&E(l)&&H(e,t,l,"right"===s?a-n.width:"center"===s?a-n.width/2:a,c-n.height/2,n.width,n.height);e=n.textPadding;e&&(a=B(a,s,e),c-=n.height/2-e[2]-n.textHeight/2),y(t,"shadowBlur",d(l.textShadowBlur,i.textShadowBlur,0)),y(t,"shadowColor",l.textShadowColor||i.textShadowColor||"transparent"),y(t,"shadowOffsetX",d(l.textShadowOffsetX,i.textShadowOffsetX,0)),y(t,"shadowOffsetY",d(l.textShadowOffsetY,i.textShadowOffsetY,0)),y(t,"textAlign",s),y(t,"textBaseline","middle"),y(t,"font",n.font||I);e=R(l.textStroke||i.textStroke,void 0),s=j(l.textFill||i.textFill),i=h(l.textStrokeWidth,i.textStrokeWidth);e&&(y(t,"lineWidth",i),y(t,"strokeStyle",e),t.strokeText(n.text,a,c)),s&&(y(t,"fillStyle",s),t.fillText(n.text,a,c))}function E(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function H(e,t,n,i,r,o,a){var s,l,u=n.textBackgroundColor,c=n.textBorderWidth,h=n.textBorderColor,d=p(u);y(t,"shadowBlur",n.textBoxShadowBlur||0),y(t,"shadowColor",n.textBoxShadowColor||"transparent"),y(t,"shadowOffsetX",n.textBoxShadowOffsetX||0),y(t,"shadowOffsetY",n.textBoxShadowOffsetY||0),(d||c&&h)&&(t.beginPath(),(s=n.textBorderRadius)?m.buildPath(t,{x:i,y:r,width:o,height:a,r:s}):t.rect(i,r,o,a),t.closePath()),d?(y(t,"fillStyle",u),null!=n.fillOpacity?(l=t.globalAlpha,t.globalAlpha=n.fillOpacity*n.opacity,t.fill(),t.globalAlpha=l):t.fill()):f(u)&&(d=u.image,(d=g.createOrUpdateImage(d,null,e,v,u))&&g.isImageReady(d)&&t.drawImage(d,i,r,o,a)),c&&h&&(y(t,"lineWidth",c),y(t,"strokeStyle",h),null!=n.strokeOpacity?(l=t.globalAlpha,t.globalAlpha=n.strokeOpacity*n.opacity,t.stroke(),t.globalAlpha=l):t.stroke())}function v(e,t){t.image=e}function z(e,t,n,i){var r,o=n.x||0,a=n.y||0,s=n.textAlign,l=n.textVerticalAlign;return i&&((r=n.textPosition)instanceof Array?(o=i.x+c(r[0],i.width),a=i.y+c(r[1],i.height)):(o=(i=(t&&t.calculateTextPosition?t:T).calculateTextPosition(u,n,i)).x,a=i.y,s=s||i.textAlign,l=l||i.textVerticalAlign),(n=n.textOffset)&&(o+=n[0],a+=n[1])),(e=e||{}).baseX=o,e.baseY=a,e.textAlign=s,e.textVerticalAlign=l,e}function y(e,t,n){return e[t]=M(e,t,n),e[t]}function R(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function j(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function c(e,t){return"string"==typeof e?0<=e.lastIndexOf("%")?parseFloat(e)/100*t:parseFloat(e):e}function B(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}t.normalizeTextStyle=function(e){return l(e),r(e.rich,l),e},t.renderText=function(e,t,n,i,r,o){(i.rich?function(e,t,n,i,r,o){o!==D&&(t.__attrCachedBy=k.NONE);o=e.__textCotentBlock;o&&!e.__dirtyText||(o=e.__textCotentBlock=T.parseRichText(n,i));!function(e,t,n,i,r){var o=n.width,a=n.outerWidth,s=n.outerHeight,l=i.textPadding,u=z(N,e,i,r),c=u.baseX,h=u.baseY,d=u.textAlign,u=u.textVerticalAlign;L(t,i,r,c,h);var d=T.adjustTextX(c,a,d),u=T.adjustTextY(h,s,u),p=d,f=u;l&&(p+=l[3],f+=l[0]);var m=p+o;E(i)&&H(e,t,i,d,u,a,s);for(var g,v=0;v<n.lines.length;v++){for(var y=n.lines[v],x=y.tokens,b=x.length,_=y.lineHeight,w=y.width,C=0,S=p,A=m,M=b-1;C<b&&(!(g=x[C]).textAlign||"left"===g.textAlign);)P(e,t,g,i,_,f,S,"left"),w-=g.width,S+=g.width,C++;for(;0<=M&&"right"===(g=x[M]).textAlign;)P(e,t,g,i,_,f,A,"right"),w-=g.width,A-=g.width,M--;for(S+=(o-(S-p)-(m-A)-w)/2;C<=M;)g=x[C],P(e,t,g,i,_,f,S+g.width/2,"center"),S+=g.width,C++;f+=_}}(e,t,o,i,r)}:function(e,t,n,i,r,o){"use strict";var a,s=E(i),l=!1,u=t.__attrCachedBy===k.PLAIN_TEXT;o!==D?(o&&(a=o.style,l=!s&&u&&a),t.__attrCachedBy=s?k.NONE:k.PLAIN_TEXT):u&&(t.__attrCachedBy=k.NONE);var c=i.font||I;l&&c===(a.font||I)||(t.font=c);var h=e.__computedFont;e.__styleFont!==c&&(e.__styleFont=c,h=e.__computedFont=t.font);var d=i.textPadding,p=i.textLineHeight,f=e.__textCotentBlock;f&&!e.__dirtyText||(f=e.__textCotentBlock=T.parsePlainText(n,h,d,p,i.truncate));var o=f.outerHeight,m=f.lines,g=f.lineHeight,u=z(N,e,i,r),c=u.baseX,p=u.baseY,f=u.textAlign||"left",u=u.textVerticalAlign;L(t,i,r,c,p);var u=T.adjustTextY(p,o,u),v=c,y=u;(s||d)&&(n=T.getWidth(n,h),d&&(n+=d[1]+d[3]),h=T.adjustTextX(c,n,f),s&&H(e,t,i,h,u,n,o),d&&(v=B(c,f,d),y+=d[0]));t.textAlign=f,t.textBaseline="middle",t.globalAlpha=i.opacity||1;for(var x=0;x<O.length;x++){var b=O[x],_=b[0],w=b[1],C=i[_];l&&C===a[_]||(t[w]=M(t,w,C||b[2]))}y+=g/2;var c=i.textStrokeWidth,d=l?a.textStrokeWidth:null,f=!l||c!==d,d=!l||f||i.textStroke!==a.textStroke,S=R(i.textStroke,c),A=j(i.textFill);S&&(f&&(t.lineWidth=c),d&&(t.strokeStyle=S));A&&(l&&i.textFill===a.textFill||(t.fillStyle=A));if(1===m.length)S&&t.strokeText(m[0],v,y),A&&t.fillText(m[0],v,y);else for(x=0;x<m.length;x++)S&&t.strokeText(m[x],v,y),A&&t.fillText(m[x],v,y),y+=g})(e,t,n,i,r,o)},t.getBoxPosition=z,t.getStroke=R,t.getFill=j,t.parsePercent=c,t.needDrawText=function(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}},function(e,t){function n(e){this.colorStops=e||[]}n.prototype={constructor:n,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};e.exports=n},function(e,t,n){function i(){this.group=new r,this.uid=o.getUID("viewComponent")}var r=n(78),o=n(122),a=n(60),n=i.prototype={constructor:i,init:function(e,t){},render:function(e,t,n,i){},dispose:function(){},filterForExposedEvent:null};n.updateView=n.updateLayout=n.updateVisual=function(e,t,n,i){},a.enableClassExtend(i),a.enableClassManagement(i,{registerWhenExtend:!0}),e.exports=i},function(e,t,n){var i=n(1),A=i.createHashMap,M=i.each,T=i.isString,k=i.defaults,D=i.extend,I=i.isObject,O=i.clone,N=n(10).normalizeToArray,i=n(61),L=i.guessOrdinal,P=i.BE_ORDINAL,E=n(123),H=n(125).OTHER_DIMENSIONS,z=n(324);function R(e,t,n){if(n||null!=t.get(e)){for(var i=0;null!=t.get(e+i);)i++;e+=i}return t.set(e,!0),e}e.exports=function(e,t,n){E.isInstance(t)||(t=E.seriesDataToSource(t)),n=n||{},e=(e||[]).slice();for(var i,r,o,a,s,l=(n.dimsDef||[]).slice(),u=A(),c=A(),h=[],d=(i=t,r=e,o=l,a=n.dimCount,s=Math.max(i.dimensionsDetectCount||1,r.length,o.length,a||0),M(r,function(e){e=e.dimsDef;e&&(s=Math.max(s,e.length))}),s),p=0;p<d;p++){var f=l[p]=D({},I(l[p])?l[p]:{name:l[p]}),m=f.name,g=h[p]=new z;null!=m&&null==u.get(m)&&(g.name=g.displayName=m,u.set(m,p)),null!=f.type&&(g.type=f.type),null!=f.displayName&&(g.displayName=f.displayName)}var v=n.encodeDef;!v&&n.encodeDefaulter&&(v=n.encodeDefaulter(t,d)),(v=A(v)).each(function(e,n){var i;1===(e=N(e).slice()).length&&!T(e[0])&&e[0]<0?v.set(n,!1):(i=v.set(n,[]),M(e,function(e,t){null!=(e=T(e)?u.get(e):e)&&e<d&&(i[t]=e,x(h[e],n,t))}))});var y=0;function x(e,t,n){null!=H.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,c.set(t,!0))}M(e,function(n,e){var i,r,o,t;T(n)?(o=n,n={}):(o=n.name,t=n.ordinalMeta,n.ordinalMeta=null,(n=O(n)).ordinalMeta=t,i=n.dimsDef,r=n.otherDims,n.name=n.coordDim=n.coordDimIndex=n.dimsDef=n.otherDims=null);var a=v.get(o);if(!1!==a){if(!(a=N(a)).length)for(var s=0;s<(i&&i.length||1);s++){for(;y<h.length&&null!=h[y].coordDim;)y++;y<h.length&&a.push(y++)}M(a,function(e,t){e=h[e];x(k(e,n),o,t),null==e.name&&i&&(t=i[t],I(t)||(t={name:t}),e.name=e.displayName=t.name,e.defaultTooltip=t.defaultTooltip),r&&k(e.otherDims,r)})}});for(var b=n.generateCoord,_=null!=(w=n.generateCoordCount),w=b?w||1:0,C=b||"value",S=0;S<d;S++)null==(g=h[S]=h[S]||new z).coordDim&&(g.coordDim=R(C,c,_),g.coordDimIndex=0,(!b||w<=0)&&(g.isExtraCoord=!0),w--),null==g.name&&(g.name=R(g.coordDim,u)),null!=g.type||L(t,S,g.name)!==P.Must&&(!g.isExtraCoord||null==g.otherDims.itemName&&null==g.otherDims.seriesName)||(g.type="ordinal");return h}},function(e,t,n){n=n(60);function i(e){this._setting=e||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}i.prototype.parse=function(e){return e},i.prototype.getSetting=function(e){return this._setting[e]},i.prototype.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},i.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},i.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},i.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},i.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},i.prototype.getExtent=function(){return this._extent.slice()},i.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},i.prototype.isBlank=function(){return this._isBlank},i.prototype.setBlank=function(e){this._isBlank=e},i.prototype.getLabel=null,n.enableClassExtend(i),n.enableClassManagement(i,{registerWhenExtend:!0}),e.exports=i},function(e,t,n){var h=n(8),i=n(17),r=n(153),o=n(326),l=h.round,a=r.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),a.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(e)},getTicks:function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;n[0]<i[0]&&(e?o.push(l(i[0]-t,r)):o.push(n[0]));for(var a=i[0];a<=i[1]&&(o.push(a),(a=l(a+t,r))!==o[o.length-1]);)if(1e4<o.length)return[];var s=o.length?o[o.length-1]:i[1];return n[1]>s&&(e?o.push(l(s+t,r)):o.push(n[1])),o},getMinorTicks:function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){for(var o=t[r],a=t[r-1],s=0,l=[],u=(o-a)/e;s<e-1;){var c=h.round(a+(s+1)*u);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},getLabel:function(e,t){if(null==e)return"";t=t&&t.precision;return null==t?t=h.getPrecisionSafe(e)||0:"auto"===t&&(t=this._intervalPrecision),e=l(e,t,!0),i.addCommas(e)},niceTicks:function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];isFinite(r)&&(r<0&&i.reverse(),n=o.intervalScaleNiceTicks(i,e,t,n),this._intervalPrecision=n.intervalPrecision,this._interval=n.interval,this._niceExtent=n.niceTickExtent)},niceExtent:function(e){var t=this._extent;t[0]===t[1]&&(0!==t[0]?(n=t[0],e.fixMax||(t[1]+=n/2),t[0]-=n/2):t[1]=1);var n=t[1]-t[0];isFinite(n)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);n=this._interval;e.fixMin||(t[0]=l(Math.floor(t[0]/n)*n)),e.fixMax||(t[1]=l(Math.ceil(t[1]/n)*n))}});a.create=function(){return new a},e.exports=a},function(e,t,n){var p=n(1),f=n(8).parsePercent,D=n(57).isDimensionStacked,n=n(98),l="__ec_stack_",x="undefined"!=typeof Float32Array?Float32Array:Array;function I(e){return e.get("stack")||l+e.seriesIndex}function O(e){return e.dim+e.index}function i(e,t){var n=[];return t.eachSeriesByType(e,function(e){a(e)&&!s(e)&&n.push(e)}),n}function r(e){var l=function(e){var l={};p.each(e,function(e){var t=e.coordinateSystem.getBaseAxis();if("time"===t.type||"value"===t.type)for(var n=e.getData(),i=t.dim+"_"+t.index,r=n.mapDimension(t.dim),o=0,a=n.count();o<a;++o){var s=n.get(r,o);l[i]?l[i].push(s):l[i]=[s]}});var t,n=[];for(t in l)if(l.hasOwnProperty(t)){var i=l[t];if(i){i.sort(function(e,t){return e-t});for(var r=null,o=1;o<i.length;++o){var a=i[o]-i[o-1];0<a&&(r=null===r?a:Math.min(r,a))}n[t]=r}}return n}(e),u=[];return p.each(e,function(e){var t,n=e.coordinateSystem.getBaseAxis(),i=n.getExtent();t="category"===n.type?n.getBandWidth():"value"===n.type||"time"===n.type?(r=n.dim+"_"+n.index,o=l[r],a=Math.abs(i[1]-i[0]),t=n.scale.getExtent(),r=Math.abs(t[1]-t[0]),o?a/r*o:a):(s=e.getData(),Math.abs(i[1]-i[0])/s.count());var r=f(e.get("barWidth"),t),o=f(e.get("barMaxWidth"),t),a=f(e.get("barMinWidth")||1,t),i=e.get("barGap"),s=e.get("barCategoryGap");u.push({bandWidth:t,barWidth:r,barMaxWidth:o,barMinWidth:a,barGap:i,barCategoryGap:s,axisKey:O(n),stackId:I(e)})}),c(u)}function c(e){var a={};p.each(e,function(e,t){var n=e.axisKey,i=e.bandWidth,r=a[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=r.stacks;a[n]=r;i=e.stackId;o[i]||r.autoWidthCount++,o[i]=o[i]||{width:0,maxWidth:0};n=e.barWidth;n&&!o[i].width&&(o[i].width=n,n=Math.min(r.remainedWidth,n),r.remainedWidth-=n);n=e.barMaxWidth;n&&(o[i].maxWidth=n);n=e.barMinWidth;n&&(o[i].minWidth=n);n=e.barGap;null!=n&&(r.gap=n);e=e.barCategoryGap;null!=e&&(r.categoryGap=e)});var d={};return p.each(a,function(e,n){d[n]={};var t=e.stacks,i=e.bandWidth,r=f(e.categoryGap,i),o=f(e.gap,1),a=e.remainedWidth,s=e.autoWidthCount,l=(a-r)/(s+(s-1)*o),l=Math.max(l,0);p.each(t,function(e){var t,n=e.maxWidth,i=e.minWidth;e.width?(t=e.width,n&&(t=Math.min(t,n)),i&&(t=Math.max(t,i)),e.width=t,a-=t+o*t,s--):(t=l,n&&n<t&&(t=Math.min(n,a)),(t=i&&t<i?i:t)!==l&&(e.width=t,a-=t+o*t,s--))}),l=(a-r)/(s+(s-1)*o),l=Math.max(l,0);var u,c=0;p.each(t,function(e,t){e.width||(e.width=l),c+=(u=e).width*(1+o)}),u&&(c-=u.width*o);var h=-c/2;p.each(t,function(e,t){d[n][t]=d[n][t]||{bandWidth:i,offset:h,width:e.width},h+=e.width*(1+o)})}),d}function o(e,t,n){if(e&&t){t=e[O(t)];return t=null!=t&&null!=n?t[I(n)]:t}}n={seriesType:"bar",plan:n(),reset:function(e){if(a(e)&&s(e)){var t=e.getData(),h=e.coordinateSystem,d=h.grid.getRect(),n=h.getBaseAxis(),p=h.getOtherAxis(n),f=t.mapDimension(p.dim),m=t.mapDimension(n.dim),g=p.isHorizontal(),v=g?0:1,y=o(r([e]),n,e).width;return.5<y||(y=.5),{progress:function(e,t){var n,i=e.count,r=new x(2*i),o=new x(2*i),a=new x(i),s=[],l=[],u=0,c=0;for(;null!=(n=e.next());)l[v]=t.get(f,n),l[1-v]=t.get(m,n),s=h.dataToPoint(l,null,s),o[u]=g?d.x+d.width:s[0],r[u++]=s[0],o[u]=g?s[1]:d.y+d.height,r[u++]=s[1],a[c++]=n;t.setLayout({largePoints:r,largeDataIndices:a,largeBackgroundPoints:o,barWidth:y,valueAxisStart:N(0,p),backgroundStart:g?d.x:d.y,valueAxisHorizontal:g})}}}}};function a(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function s(e){return e.pipelineContext&&e.pipelineContext.large}function N(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}t.getLayoutOnAxis=function(e){var t=[],n=e.axis;if("category"===n.type){for(var i=n.getBandWidth(),r=0;r<e.count;r++)t.push(p.defaults({bandWidth:i,axisKey:"axis0",stackId:l+r},e));for(var o=c(t),a=[],r=0;r<e.count;r++){var s=o.axis0[l+r];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}},t.prepareLayoutBarSeries=i,t.makeColumnLayout=r,t.retrieveColumnLayout=o,t.layout=function(e,t){var M=r(t=i(e,t)),T={},k={};p.each(t,function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=I(e),o=M[O(i)][r],a=o.offset,s=o.width,l=n.getOtherAxis(i),u=e.get("barMinHeight")||0;T[r]=T[r]||[],k[r]=k[r]||[],t.setLayout({bandWidth:o.bandWidth,offset:a,size:s});for(var c=t.mapDimension(l.dim),h=t.mapDimension(i.dim),d=D(t,c),p=l.isHorizontal(),f=N(0,l),m=0,g=t.count();m<g;m++){var v,y,x,b,_,w=t.get(c,m),C=t.get(h,m),S=0<=w?"p":"n",A=f;d&&(T[r][C]||(T[r][C]={p:f,n:f}),A=T[r][C][S]),p?(v=A,y=(_=n.dataToPoint([w,C]))[1]+a,x=_[0]-f,b=s,Math.abs(x)<u&&(x=(x<0?-1:1)*u),isNaN(x)||d&&(T[r][C][S]+=x)):(v=(_=n.dataToPoint([C,w]))[0]+a,y=A,x=s,b=_[1]-f,Math.abs(b)<u&&(b=(b<=0?-1:1)*u),isNaN(b)||d&&(T[r][C][S]+=b)),t.setItemLayout(m,{x:v,y:y,width:x,height:b})}},this)},t.largeLayout=n},function(e,t,n){var s=n(1),i=n(332),r=n(30),o=n(15),l=o.getLayoutParams,u=o.mergeLayoutParam,c=n(325),h=["value","category","time","log"];e.exports=function(o,e,a,t){s.each(h,function(r){e.extend({type:o+"Axis."+r,mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?l(e):{},t=t.getTheme();s.merge(e,t.get(r+"Axis")),s.merge(e,this.getDefaultOption()),e.type=a(o,e),n&&u(e,i,n)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=c.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:s.mergeAll([{},i[r+"Axis"],t],!0)})}),r.registerSubTypeDefaulter(o+"Axis",s.curry(a,o))}},function(e,t,n){var f=n(1),m=n(26),g=f.each,o=f.curry;function v(e,t){return"all"===e||f.isArray(e)&&0<=f.indexOf(e,t)||e===t}function a(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[x(e)]}function y(e){return!!e.get("handle.show")}function x(e){return e.type+"||"+e.id}t.collect=function(e,t){var u,c,r,h,d,p,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return u=n,t=t,r=(c=e).getComponent("tooltip"),h=c.getComponent("axisPointer"),d=h.get("link",!0)||[],p=[],g(t.getCoordinateSystems(),function(a){var s,l,e,t,n;function i(e,t,n){var i,r=n.model.getModel("axisPointer",h),o=r.get("show");o&&("auto"!==o||e||y(r))&&(null==t&&(t=r.get("triggerTooltip")),i=(r=e?function(e,t,n,i,r,o){var a=t.getModel("axisPointer"),s={};g(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){s[e]=f.clone(a.get(e))}),s.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(s.type="line");t=s.label||(s.label={});null==t.show&&(t.show=!1),"cross"===r&&(r=a.get("label.show"),t.show=null==r||r,o||(o=s.lineStyle=a.get("crossStyle"))&&f.defaults(t,o.textStyle));return e.model.getModel("axisPointer",new m(s,n,i))}(n,l,h,c,e,t):r).get("snap"),o=x(n.model),e=t||i||"category"===n.type,r=u.axesInfo[o]={key:o,axis:n,coordSys:a,axisPointerModel:r,triggerTooltip:t,involveSeries:e,snap:i,useHandle:y(r),seriesModels:[]},s[o]=r,u.seriesInvolved|=e,null!=(e=function(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(v(o[i+"AxisId"],n.id)||v(o[i+"AxisIndex"],n.componentIndex)||v(o[i+"AxisName"],n.name))return r}}(d,n))&&((n=p[e]||(p[e]={axesInfo:{}})).axesInfo[o]=r,n.mapper=d[e].mapper,r.linkGroup=n))}a.axisPointerEnabled&&(n=x(a.model),s=u.coordSysAxesInfo[n]={},l=(u.coordSysMap[n]=a).model.getModel("tooltip",r),g(a.getAxes(),o(i,!1,null)),a.getTooltipAxes&&r&&l.get("show")&&(e="axis"===l.get("trigger"),t="cross"===l.get("axisPointer.type"),n=a.getTooltipAxes(l.get("axisPointer.axis")),(e||t)&&g(n.baseAxes,o(i,!t||"cross",e)),t&&g(n.otherAxes,o(i,"cross",!1))))}),n.seriesInvolved&&function(r,e){e.eachSeries(function(n){var i=n.coordinateSystem,e=n.get("tooltip.trigger",!0),t=n.get("tooltip.show",!0);i&&"none"!==e&&!1!==e&&"item"!==e&&!1!==t&&!1!==n.get("axisPointer.show",!0)&&g(r.coordSysAxesInfo[x(i.model)],function(e){var t=e.axis;i.getAxis(t.dim)===t&&(e.seriesModels.push(n),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=n.getData().count())})},this)}(n,e),n},t.fixValue=function(e){var t,n,i,r,o=a(e);o&&(i=o.axisPointerModel,r=o.axis.scale,t=i.option,n=i.get("status"),null!=(e=i.get("value"))&&(e=r.parse(e)),i=y(i),null==n&&(t.status=i?"show":"hide"),(r=r.getExtent().slice())[0]>r[1]&&r.reverse(),(e=null==e||e>r[1]?r[1]:e)<r[0]&&(e=r[0]),t.value=e,i&&(t.status=o.axis.scale.isBlank()?"hide":"show"))},t.getAxisInfo=a,t.getAxisPointerModel=function(e){return(e=a(e))&&e.axisPointerModel},t.makeKey=x},function(e,t,n){var s=n(1),r=n(6),f=n(41),m=n(17),o=n(35),l=n(52),u=n(69);function c(e,t,n,i,r){var o=g(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),a=n.getModel("label"),s=m.normalizeCssArray(a.get("padding")||0),l=a.getFont(),u=f.getBoundingRect(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],p=r.align;"right"===p&&(c[0]-=h),"center"===p&&(c[0]-=h/2);n=r.verticalAlign;"bottom"===n&&(c[1]-=d),"middle"===n&&(c[1]-=d/2),u=c,p=h,r=d,i=(n=i).getWidth(),n=n.getHeight(),u[0]=Math.min(u[0]+p,i)-p,u[1]=Math.min(u[1]+r,n)-r,u[0]=Math.max(u[0],0),u[1]=Math.max(u[1],0);u=a.get("backgroundColor");u&&"auto"!==u||(u=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:h,height:d,r:a.get("borderRadius")},position:c.slice(),style:{text:o,textFont:l,textFill:a.getTextColor(),textPosition:"inside",textPadding:s,fill:u,stroke:a.get("borderColor")||"transparent",lineWidth:a.get("borderWidth")||0,shadowBlur:a.get("shadowBlur"),shadowColor:a.get("shadowColor"),shadowOffsetX:a.get("shadowOffsetX"),shadowOffsetY:a.get("shadowOffsetY")},z2:10}}function g(e,t,n,i,r){e=t.scale.parse(e);var o,a=t.scale.getLabel(e,{precision:r.precision}),r=r.formatter;return r&&(o={value:l.getAxisRawValue(t,e),axisDimension:t.dim,axisIndex:t.index,seriesData:[]},s.each(i,function(e){var t=n.getSeriesByIndex(e.seriesIndex),e=e.dataIndexInside,e=t&&t.getDataParams(e);e&&o.seriesData.push(e)}),s.isString(r)?a=r.replace("{value}",a):s.isFunction(r)&&(a=r(o))),a}function h(e,t,n){var i=o.create();return o.rotate(i,i,n.rotation),o.translate(i,i,n.position),r.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}t.buildElStyle=function(e){var t,n=e.get("type"),e=e.getModel(n+"Style");return"line"===n?(t=e.getLineStyle()).fill=null:"shadow"===n&&((t=e.getAreaStyle()).stroke=null),t},t.buildLabelElOption=c,t.getValueLabel=g,t.getTransformedPosition=h,t.buildCartesianSingleLabelElOption=function(e,t,n,i,r,o){var a=u.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),c(t,i,r,o,{position:h(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})},t.makeLineShape=function(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}},t.makeRectShape=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},t.makeSectorShape=function(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}},function(e,t,n){var v=n(1),o=n(42).createSymbol,y=n(6),x=n(8).parsePercent,b=n(202).getDefaultLabel;function i(e,t,n){y.Group.call(this),this.updateData(e,t,n)}var n=i.prototype,u=i.getSymbolSize=function(e,t){t=e.getItemVisual(t,"symbolSize");return t instanceof Array?t.slice():[+t,+t]};function _(e){return[e[0]/2,e[1]/2]}function a(e,t){this.parent.drift(e,t)}n._createSymbol=function(e,t,n,i,r){this.removeAll();n=t.getItemVisual(n,"color"),r=o(e,-1,-1,2,2,n,r);r.attr({z2:100,culling:!0,scale:_(i)}),r.drift=a,this._symbolType=e,this.add(r)},n.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},n.getSymbolPath=function(){return this.childAt(0)},n.getScale=function(){return this.childAt(0).scale},n.highlight=function(){this.childAt(0).trigger("emphasis")},n.downplay=function(){this.childAt(0).trigger("normal")},n.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},n.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},n.updateData=function(e,t,n){this.silent=!1;var i,r,o=e.getItemVisual(t,"symbol")||"circle",a=e.hostModel,s=u(e,t),l=o!==this._symbolType;l?(i=e.getItemVisual(t,"symbolKeepAspect"),this._createSymbol(o,e,t,s,i)):((r=this.childAt(0)).silent=!1,y.updateProps(r,{scale:_(s)},a,t)),this._updateCommon(e,t,s,n),l&&(r=this.childAt(0),l=n&&n.fadeIn,n={scale:r.scale.slice()},l&&(n.style={opacity:r.style.opacity}),r.scale=[0,0],l&&(r.style.opacity=0),y.initProps(r,n,a,t)),this._seriesModel=a};var w=["itemStyle"],C=["emphasis","itemStyle"],S=["label"],A=["emphasis","label"];function M(e,t){var n,i;this.incremental||this.useHoverLayer||("emphasis"===t?(i=(n=this.__symbolOriginalScale)[1]/n[0],i={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*i)]},this.animateTo(i,400,"elasticOut")):"normal"===t&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut"))}n._updateCommon=function(n,e,t,i){var r=this.childAt(0),o=n.hostModel,a=n.getItemVisual(e,"color");"image"!==r.type?r.useStyle({strokeNoScale:!0}):r.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var s=i&&i.itemStyle,l=i&&i.hoverItemStyle,u=i&&i.symbolOffset,c=i&&i.labelModel,h=i&&i.hoverLabelModel,d=i&&i.hoverAnimation,p=i&&i.cursorStyle;!i||n.hasItemOption?(s=(m=i&&i.itemModel?i.itemModel:n.getItemModel(e)).getModel(w).getItemStyle(["color"]),l=m.getModel(C).getItemStyle(),u=m.getShallow("symbolOffset"),c=m.getModel(S),h=m.getModel(A),d=m.getShallow("hoverAnimation"),p=m.getShallow("cursor")):l=v.extend({},l);var f=r.style,m=n.getItemVisual(e,"symbolRotate");r.attr("rotation",(m||0)*Math.PI/180||0),u&&r.attr("position",[x(u[0],t[0]),x(u[1],t[1])]),p&&r.attr("cursor",p),r.setColor(a,i&&i.symbolInnerColor),r.setStyle(s);p=n.getItemVisual(e,"opacity");null!=p&&(f.opacity=p);s=n.getItemVisual(e,"liftZ"),p=r.__z2Origin;null!=s?null==p&&(r.__z2Origin=r.z2,r.z2+=s):null!=p&&(r.z2=p,r.__z2Origin=null);var g=i&&i.useNameLabel;y.setLabelStyle(f,l,c,h,{labelFetcher:o,labelDataIndex:e,defaultText:function(e,t){return g?n.getName(e):b(n,e)},isRectText:!0,autoColor:a}),r.__symbolOriginalScale=_(t),r.hoverStyle=l,r.highDownOnUpdate=d&&o.isAnimationEnabled()?M:null,y.setHoverStyle(r)},n.fadeOut=function(e,t){var n=this.childAt(0);this.silent=n.silent=!0,t&&t.keepLabel||(n.style.text=null),y.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},v.inherits(i,y.Group),e.exports=i},function(e,t,n){n(14).__DEV__;var i=n(1),l=i.each,u=i.createHashMap,r=n(200),o=n(577),i=n(582),c=n(21),h={geoJSON:o,svg:i},i={load:function(t,n,i){var r,o=[],a=u(),s=u(),e=d(t);return l(e,function(e){e=h[e.type].load(t,e,i);l(e.regions,function(e){var t=e.name;n&&n.hasOwnProperty(t)&&(e=e.cloneShallow(t=n[t])),o.push(e),a.set(t,e),s.set(t,e.center)});e=e.boundingRect;e&&(r?r.union(e):r=e.clone())}),{regions:o,regionsMap:a,nameCoordMap:s,boundingRect:r||new c(0,0,0,0)}},makeGraphic:a("makeGraphic"),removeGraphic:a("removeGraphic")};function a(o){return function(n,i){var e=d(n),r=[];return l(e,function(e){var t=h[e.type][o];t&&r.push(t(n,e,i))}),r}}function d(e){return r.retrieveMap(e)||[]}e.exports=i},function(e,t){var i={axisPointer:1,tooltip:1,brush:1};t.onIrrelevantElement=function(e,t,n){return t=t.getComponentByElement(e.topTarget),e=t&&t.coordinateSystem,t&&t!==n&&!i[t.mainType]&&e&&e.model!==n}},function(e,t,n){function h(e){return e.get("autoCurveness")||null}function d(e,t){var n=h(e),i=20,r=[];if("number"==typeof n)i=n;else if(m.isArray(n))return e.__curvenessList=n,0;for(var o=(i=i<t?t:i)%2?i+2:i+3,r=[],a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=r}function p(e,t,n){return e=[e.id,e.dataIndex].join("."),t=[t.id,t.dataIndex].join("."),[n.uid,e,t].join(i)}function f(e){return[(e=e.split(i))[0],e[2],e[1]].join(i)}var m=n(1),i="--\x3e",g=function(e,t){t=t.__edgeMap;return t[e]?t[e].length:0};t.initCurvenessList=function(e){h(e)&&(e.__curvenessList=[],e.__edgeMap={},d(e))},t.createEdgeMapForCurveness=function(e,t,n,i){h(n)&&(e=p(e,t,n),n=(t=n.__edgeMap)[f(e)],t[e]&&!n?t[e].isForward=!0:n&&t[e]&&(n.isForward=!0,t[e].isForward=!1),t[e]=t[e]||[],t[e].push(i))},t.getCurvenessForEdge=function(e,t,n,i){var r=h(t),o=m.isArray(r);if(!r)return null;var a=function(e,t){e=p(e.node1,e.node2,t);return t.__edgeMap[e]}(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}u=t,c=g(p((c=e).node1,c.node2,u),u)+g(p(c.node2,c.node1,u),u),d(t,c),e.lineStyle=e.lineStyle||{};var u=p(e.node1,e.node2,t),e=t.__curvenessList,c=o||c%2?0:1;return a.isForward?e[c+s]:(u=f(u),u=g(u,t),t=e[s+u+c],i?!o||r&&0===r[0]?(u+c)%2?t:-t:((u%2?0:1)+c)%2?t:-t:e[s+u+c])}},function(e,t,n){var a=n(1),g=n(85),s=a.each;function r(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return 1}t.createVisualMappings=function(t,e,r){var o={};return s(e,function(n){var i=o[n]=(e.prototype.__hidden=e.prototype,new e);function e(){}s(t[n],function(e,t){g.isValidType(t)&&(e={type:t,visual:e},r&&r(e,n),i[t]=new g(e),"opacity"===t&&((e=a.clone(e)).type="colorAlpha",i.__hidden.__alphaForOpacity=new g(e)))})}),o},t.replaceVisualOption=function(t,n,e){var i;a.each(e,function(e){n.hasOwnProperty(e)&&r(n[e])&&(i=!0)}),i&&a.each(e,function(e){n.hasOwnProperty(e)&&r(n[e])?t[e]=a.clone(n[e]):delete t[e]})},t.applyVisual=function(e,s,l,u,c,h){var d,p={};function f(e){return l.getItemVisual(d,e)}function m(e,t){l.setItemVisual(d,e,t)}function t(e,t){d=null==h?e:t;t=l.getRawDataItem(d);if(!t||!1!==t.visualMap)for(var t=u.call(c,e),n=s[t],i=p[t],r=0,o=i.length;r<o;r++){var a=i[r];n[a]&&n[a].applyVisual(e,f,m)}}a.each(e,function(e){var t=g.prepareVisualTypes(s[e]);p[e]=t}),null==h?l.each(t):l.each([h],t)},t.incrementalApplyVisual=function(e,d,p,f){var m={};return a.each(e,function(e){var t=g.prepareVisualTypes(d[e]);m[e]=t}),{progress:function(e,n){function t(e){return n.getItemVisual(r,e)}function i(e,t){n.setItemVisual(r,e,t)}var r;for(null!=f&&(f=n.getDimension(f));null!=(r=e.next());){var o=n.getRawDataItem(r);if(!o||!1!==o.visualMap)for(var a=null!=f?n.get(f,r,!0):r,o=p(a),s=d[o],l=m[o],u=0,c=l.length;u<c;u++){var h=l[u];s[h]&&s[h].applyVisual(a,t,i)}}}}}},function(e,t,n){"use strict";t.__esModule=!0,t.addUnit=function(e){return(0,r.isDef)(e)?(e=String(e),(0,o.isNumeric)(e)?e+"px":e):void 0},t.unitToPx=function(e){if("number"==typeof e)return e;if(r.inBrowser){if(-1!==e.indexOf("rem"))return function(e){return+(e=e.replace(/rem/g,""))*function(){{var e;i||(e=document.documentElement,e=e.style.fontSize||window.getComputedStyle(e).fontSize,i=parseFloat(e))}return i}()}(e);if(-1!==e.indexOf("vw"))return function(e){return+(e=e.replace(/vw/g,""))*window.innerWidth/100}(e);if(-1!==e.indexOf("vh"))return function(e){return+(e=e.replace(/vh/g,""))*window.innerHeight/100}(e)}return parseFloat(e)};var i,r=n(9),o=n(230)},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var a=i(n(34)),s=n(9),l=n(37),i=(0,s.createNamespace)("info"),n=i[0],u=i[1];function r(e,t,n,i){var r=t.dot,o=t.info,o=(0,s.isDef)(o)&&""!==o;if(r||o)return e("div",(0,a.default)([{class:u({dot:r})},(0,l.inherit)(i,!0)]),[r?"":t.info])}r.props={dot:Boolean,info:[Number,String]};n=n(r);t.default=n},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.PopupMixin=function(t){void 0===t&&(t={});return{mixins:[l.TouchMixin,c.CloseOnPopstateMixin,(0,u.PortalMixin)({afterPortal:function(){this.overlay&&(0,r.updateOverlay)()}})],props:h,data:function(){return{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){e=e?"open":"close";this.inited=this.inited||this.value,this[e](),t.skipToggleEvent||this.$emit(e)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){(0,r.removeOverlay)(this),this.opened&&this.removeLock(),this.getContainer&&(0,o.removeNode)(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(i.context.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock())},addLock:function(){this.lockScroll&&((0,a.on)(document,"touchstart",this.touchStart),(0,a.on)(document,"touchmove",this.onTouchMove),i.context.lockCount||document.body.classList.add("van-overflow-hidden"),i.context.lockCount++)},removeLock:function(){this.lockScroll&&i.context.lockCount&&(i.context.lockCount--,(0,a.off)(document,"touchstart",this.touchStart),(0,a.off)(document,"touchmove",this.onTouchMove),i.context.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&((0,r.closeOverlay)(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(e){this.touchMove(e);var t=0<this.deltaY?"10":"01",n=(0,s.getScroller)(e.target,this.$el),i=n.scrollHeight,r=n.offsetHeight,o=n.scrollTop,n="11";0===o?n=i<=r?"00":"01":i<=o+r&&(n="10"),"11"===n||"vertical"!==this.direction||parseInt(n,2)&parseInt(t,2)||(0,a.preventDefault)(e,!0)},renderOverlay:function(){var e=this;!this.$isServer&&this.value&&this.$nextTick(function(){e.updateZIndex(e.overlay?1:0),e.overlay?(0,r.openOverlay)(e,{zIndex:i.context.zIndex++,duration:e.duration,className:e.overlayClass,customStyle:e.overlayStyle}):(0,r.closeOverlay)(e)})},updateZIndex:function(e){void 0===e&&(e=0),this.$el.style.zIndex=++i.context.zIndex+e}}}},t.popupMixinProps=void 0;var i=n(399),r=n(799),a=n(40),o=n(233),s=n(63),l=n(87),u=n(400),c=n(801),h={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};t.popupMixinProps=h},function(n,r,i){!function(t){function e(){var e;try{e=r.storage.debug}catch(e){}return e=!e&&void 0!==t&&"env"in t?t.env.DEBUG:e}(r=n.exports=i(886)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(e){var t,n,i=this.useColors;e[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+e[0]+(i?"%c ":" ")+"+"+r.humanize(this.diff),i&&(i="color: "+this.color,e.splice(1,0,i,"color: inherit"),e[n=t=0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(t++,"%c"===e&&(n=t))}),e.splice(n,0,i))},r.save=function(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(e){}},r.load=e,r.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},r.enable(e())}.call(this,i(238))},function(e,t,n){"use strict";t.a={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}}},function(e,t,n){"use strict";var l=function(e){return!(!(t=e)||"object"!=typeof t||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||function(e){return e.$$typeof===i}(t)));var t};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function u(e,t){var n;return t&&!0===t.clone&&l(e)?h((n=e,Array.isArray(n)?[]:{}),e,t):e}function c(n,e,i){var r=n.slice();return e.forEach(function(e,t){void 0===r[t]?r[t]=u(e,i):l(e)?r[t]=h(n[t],e,i):-1===n.indexOf(e)&&r.push(u(e,i))}),r}function h(e,t,n){var i,r,o,a,s=Array.isArray(t);return s===Array.isArray(e)?s?((n||{arrayMerge:c}).arrayMerge||c)(e,t,n):(r=t,o=n,a={},l(i=e)&&Object.keys(i).forEach(function(e){a[e]=u(i[e],o)}),Object.keys(r).forEach(function(e){l(r[e])&&i[e]?a[e]=h(i[e],r[e],o):a[e]=u(r[e],o)}),a):u(t,n)}h.all=function(e,n){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,t){return h(e,t,n)})},e.exports=h},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(36)),y=i(n(34)),o=n(9),x=n(37),b=n(86),_=n(106),w=i(n(48)),C=i(n(107)),n=(0,o.createNamespace)("button"),o=n[0],S=n[1];function a(e,t,n,i){var r=t.tag,o=t.icon,a=t.type,s=t.color,l=t.plain,u=t.disabled,c=t.loading,h=t.hairline,d=t.loadingText,p=t.iconPosition,f={};s&&(f.color=l?s:"white",l||(f.background=s),-1!==s.indexOf("gradient")?f.border=0:f.borderColor=s);var m,g,l=[S([a,t.size,{plain:l,loading:c,disabled:u,hairline:h,block:t.block,round:t.round,square:t.square}]),((l={})[b.BORDER_SURROUND]=h,l)];function v(){return c?n.loading?n.loading():e(C.default,{class:S("loading"),attrs:{size:t.loadingSize,type:t.loadingType,color:"currentColor"}}):o?e(w.default,{attrs:{name:o,classPrefix:t.iconPrefix},class:S("icon")}):void 0}return e(r,(0,y.default)([{style:f,class:l,attrs:{type:t.nativeType,disabled:u},on:{click:function(e){c||u||((0,x.emit)(i,"click",e),(0,_.functionalRoute)(i))},touchstart:function(e){(0,x.emit)(i,"touchstart",e)}}},(0,x.inherit)(i)]),[e("div",{class:S("content")},[(g=[],"left"===p&&g.push(v()),(m=c?d:n.default?n.default():t.text)&&g.push(e("span",{class:S("text")},[m])),"right"===p&&g.push(v()),g)])])}a.props=(0,r.default)({},_.routeProps,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});o=o(a);t.default=o},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(36)),p=i(n(34)),f=n(9),m=n(37),g=n(106),o=n(398),v=i(n(48)),i=(0,f.createNamespace)("cell"),n=i[0],y=i[1];function a(t,n,i,r){var e=n.icon,o=n.size,a=n.title,s=n.label,l=n.value,u=n.isLink,c=i.title||(0,f.isDef)(a);var h=u||n.clickable,d={clickable:h,center:n.center,required:n.required,borderless:!n.border};return o&&(d[o]=o),t("div",(0,p.default)([{class:y(d),attrs:{role:h?"button":null,tabindex:h?0:null},on:{click:function(e){(0,m.emit)(r,"click",e),(0,g.functionalRoute)(r)}}},(0,m.inherit)(r)]),[i.icon?i.icon():e?t(v.default,{class:y("left-icon"),attrs:{name:e,classPrefix:n.iconPrefix}}):void 0,function(){if(c)return t("div",{class:[y("title"),n.titleClass],style:n.titleStyle},[i.title?i.title():t("span",[a]),function(){if(i.label||(0,f.isDef)(s))return t("div",{class:[y("label"),n.labelClass]},[i.label?i.label():s])}()])}(),function(){if(i.default||(0,f.isDef)(l))return t("div",{class:[y("value",{alone:!c}),n.valueClass]},[i.default?i.default():t("span",[l])])}(),function(){var e=i["right-icon"];if(e)return e();if(u){e=n.arrowDirection;return t(v.default,{class:y("right-icon"),attrs:{name:e?"arrow-"+e:"arrow"}})}}(),null==i.extra?void 0:i.extra()])}a.props=(0,r.default)({},o.cellProps,g.routeProps);n=n(a);t.default=n},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(9),r=n(88),n=(0,i.createNamespace)("sidebar"),i=n[0],o=n[1],r=i({mixins:[(0,r.ParentMixin)("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(e){e!==this.index&&(this.index=e,this.$emit("change",e))}},render:function(){return(0,arguments[0])("div",{class:o()},[this.slots()])}});t.default=r},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(36)),o=n(9),a=n(88),s=n(106),l=i(n(165)),n=(0,o.createNamespace)("sidebar-item"),o=n[0],u=n[1],r=o({mixins:[(0,a.ChildrenMixin)("vanSidebar")],props:(0,r.default)({},s.routeProps,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),(0,s.route)(this.$router,this))}},render:function(){var e,t=arguments[0];return t("a",{class:u({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[t("div",{class:u("text")},[null!=(e=this.slots("title"))?e:this.title,t(l.default,{attrs:{dot:this.dot,info:null!=(t=this.badge)?t:this.info},class:u("info")})])])}});t.default=r},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(34)),o=n(9),a=i(n(48)),i=(0,o.createNamespace)("image"),n=i[0],s=i[1],n=n({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var e={};return(0,o.isDef)(this.width)&&(e.width=(0,o.addUnit)(this.width)),(0,o.isDef)(this.height)&&(e.height=(0,o.addUnit)(this.height)),(0,o.isDef)(this.radius)&&(e.overflow="hidden",e.borderRadius=(0,o.addUnit)(this.radius)),e}},created:function(){var e=this.$Lazyload;e&&o.inBrowser&&(e.$on("loaded",this.onLazyLoaded),e.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var e=this.$Lazyload;e&&(e.$off("loaded",this.onLazyLoaded),e.$off("error",this.onLazyLoadError))},methods:{onLoad:function(e){this.loading=!1,this.$emit("load",e)},onLazyLoaded:function(e){e.el===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(e){e.el!==this.$refs.image||this.error||this.onError()},onError:function(e){this.error=!0,this.loading=!1,this.$emit("error",e)},onClick:function(e){this.$emit("click",e)},genPlaceholder:function(){var e=this.$createElement;return this.loading&&this.showLoading?e("div",{class:s("loading")},[this.slots("loading")||e(a.default,{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:s("loading-icon")})]):this.error&&this.showError?e("div",{class:s("error")},[this.slots("error")||e(a.default,{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:s("error-icon")})]):void 0},genImage:function(){var e=this.$createElement,t={class:s("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?e("img",(0,r.default)([{ref:"image",directives:[{name:"lazy",value:this.src}]},t])):e("img",(0,r.default)([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},t]))}},render:function(){return(0,arguments[0])("div",{class:s({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}});t.default=n},function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return u});function i(e,t){localStorage.setItem(e,JSON.stringify(t))}function r(e){try{return JSON.parse(localStorage.getItem(e))}catch(e){return console.error(e),null}}var o=n(46),a=function(e){i(o.f,e)},s=function(){return r(o.f)||{}},l=function(e){i(o.g,e)},u=function(){return r(o.g)}},function(e,t,n){var m=n(64),g=n(115),v=n(460),y=n(91),x=n(76),b="prototype",_=function(e,t,n){var i,r,o,a=e&_.F,s=e&_.G,l=e&_.S,u=e&_.P,c=e&_.B,h=e&_.W,d=s?g:g[t]||(g[t]={}),p=d[b],f=s?m:l?m[t]:(m[t]||{})[b];for(i in n=s?t:n)(r=!a&&f&&void 0!==f[i])&&x(d,i)||(o=(r?f:n)[i],d[i]=s&&"function"!=typeof f[i]?n[i]:c&&r?v(o,m):h&&f[i]==o?function(i){function e(e,t,n){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(e);case 2:return new i(e,t)}return new i(e,t,n)}return i.apply(this,arguments)}return e[b]=i[b],e}(o):u&&"function"==typeof o?v(Function.call,o):o,u&&((d.virtual||(d.virtual={}))[i]=o,e&_.R&&p&&!p[i]&&y(p,i,o)))};_.F=1,_.G=2,_.S=4,_.P=8,_.B=16,_.W=32,_.U=64,_.R=128,e.exports=_},function(e,t,n){var r=n(116);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t,n){var i=n(183)("keys"),r=n(143);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(115),r=n(64),o="__core-js_shared__",a=r[o]||(r[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(142)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(180);e.exports=function(e){return Object(i(e))}},function(e,t){e.exports={}},function(e,t,n){var i=n(92).f,r=n(76),o=n(94)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t,n){t.f=n(94)},function(e,t,n){var i=n(64),r=n(115),o=n(142),a=n(189),s=n(92).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=!o&&i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){var u=32,y=7;function c(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){for(;r<n&&i(e[r],e[r-1])<0;)r++;!function(e,t,n){n--;for(;t<n;){var i=e[t];e[t++]=e[n],e[n--]=i}}(e,t,r)}else for(;r<n&&0<=i(e[r],e[r-1]);)r++;return r-t}function h(e,t,n,i,r){for(i===t&&i++;i<n;i++){for(var o,a=e[i],s=t,l=i;s<l;)r(a,e[o=s+l>>>1])<0?l=o:s=1+o;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;0<u;)e[s+u]=e[s+u-1],u--}e[s]=a}}function x(e,t,n,i,r,o){var a=0,s=0,l=1;if(0<o(e,t[n+r])){for(s=i-r;l<s&&0<o(e,t[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(e,t[n+r-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=r-(l=s<l?s:l),l=r-i}for(a++;a<l;){var u=a+(l-a>>>1);0<o(e,t[n+u])?a=u+1:l=u}return l}function b(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){for(s=r+1;l<s&&o(e,t[n+r-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=r-(l=s<l?s:l),l=r-u}else{for(s=i-r;l<s&&0<=o(e,t[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function d(f,m){var o,a,g=y,s=0;f.length;var v=[];function t(e){var t=o[e],n=a[e],i=o[e+1],r=a[e+1];a[e]=n+r,e===s-3&&(o[e+1]=o[e+2],a[e+1]=a[e+2]),s--;e=b(f[i],f,t,n,0,m);t+=e,0!=(n-=e)&&0!==(r=x(f[t+n-1],f,i,r,r-1,m))&&(n<=r?function(e,t,n,i){var r=0;for(r=0;r<t;r++)v[r]=f[e+r];var o=0,a=n,s=e;if(f[s++]=f[a++],0!=--i)if(1!==t){for(var l,u,c,h=g;;){u=l=0,c=!1;do{if(m(f[a],v[o])<0){if(f[s++]=f[a++],u++,(l=0)==--i){c=!0;break}}else if(f[s++]=v[o++],l++,u=0,1==--t){c=!0;break}}while((l|u)<h);if(c)break;do{if(0!==(l=b(f[a],v,o,t,0,m))){for(r=0;r<l;r++)f[s+r]=v[o+r];if(s+=l,o+=l,(t-=l)<=1){c=!0;break}}if(f[s++]=f[a++],0==--i){c=!0;break}if(0!==(u=x(v[o],f,a,i,0,m))){for(r=0;r<u;r++)f[s+r]=f[a+r];if(s+=u,a+=u,0===(i-=u)){c=!0;break}}if(f[s++]=v[o++],1==--t){c=!0;break}}while(h--,y<=l||y<=u);if(c)break;h<0&&(h=0),h+=2}if((g=h)<1&&(g=1),1===t){for(r=0;r<i;r++)f[s+r]=f[a+r];f[s+i]=v[o]}else{if(0===t)throw new Error;for(r=0;r<t;r++)f[s+r]=v[o+r]}}else{for(r=0;r<i;r++)f[s+r]=f[a+r];f[s+i]=v[o]}else for(r=0;r<t;r++)f[s+r]=v[o+r]}:function(e,t,n,i){var r=0;for(r=0;r<i;r++)v[r]=f[n+r];var o=e+t-1,a=i-1,s=n+i-1,l=0,u=0;if(f[s--]=f[o--],0!=--t)if(1!==i){for(var c=g;;){var h=0,d=0,p=!1;do{if(m(v[a],f[o])<0){if(f[s--]=f[o--],h++,(d=0)==--t){p=!0;break}}else if(f[s--]=v[a--],d++,h=0,1==--i){p=!0;break}}while((h|d)<c);if(p)break;do{if(0!==(h=t-b(v[a],f,e,t,t-1,m))){for(t-=h,u=(s-=h)+1,l=(o-=h)+1,r=h-1;0<=r;r--)f[u+r]=f[l+r];if(0===t){p=!0;break}}if(f[s--]=v[a--],1==--i){p=!0;break}if(0!==(d=i-x(f[o],v,0,i,i-1,m))){for(i-=d,u=(s-=d)+1,l=(a-=d)+1,r=0;r<d;r++)f[u+r]=v[l+r];if(i<=1){p=!0;break}}if(f[s--]=f[o--],0==--t){p=!0;break}}while(c--,y<=h||y<=d);if(p)break;c<0&&(c=0),c+=2}if((g=c)<1&&(g=1),1===i){for(u=(s-=t)+1,l=(o-=t)+1,r=t-1;0<=r;r--)f[u+r]=f[l+r];f[s]=v[a]}else{if(0===i)throw new Error;for(l=s-(i-1),r=0;r<i;r++)f[l+r]=v[r]}}else{for(u=(s-=t)+1,l=(o-=t)+1,r=t-1;0<=r;r--)f[u+r]=f[l+r];f[s]=v[a]}else for(l=s-(i-1),r=0;r<i;r++)f[l+r]=v[r]})(t,n,i,r)}o=[],a=[],this.mergeRuns=function(){for(;1<s;){var e=s-2;if(1<=e&&a[e-1]<=a[e]+a[e+1]||2<=e&&a[e-2]<=a[e]+a[e-1])a[e-1]<a[e+1]&&e--;else if(a[e]>a[e+1])break;t(e)}},this.forceMergeRuns=function(){for(;1<s;){var e=s-2;0<e&&a[e-1]<a[e+1]&&e--,t(e)}},this.pushRun=function(e,t){o[s]=e,a[s]=t,s+=1}}e.exports=function(e,t,n,i){var r=(i=i||e.length)-(n=n||0);if(!(r<2)){var o=0;if(r<u)h(e,n,i,n+(o=c(e,n,i,t)),t);else{var a,s=new d(e,t),l=function(e){for(var t=0;u<=e;)t|=1&e,e>>=1;return e+t}(r);do{}while((o=c(e,n,i,t))<l&&(h(e,n,n+(a=l<(a=r)?l:a),n+o,t),o=a),s.pushRun(n,o),s.mergeRuns(),n+=o,0!==(r-=o));s.forceMergeRuns()}}}},function(e,t,n){var u=n(302),c=n(148).ContextCachedBy,h=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],n=function(e){this.extendFrom(e,!1)};function a(e,t,n){var i=null==t.x?0:t.x,r=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;t.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y);i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a;return e.createLinearGradient(i,o,r,a)}function s(e,t,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*i+n.x,s=s*r+n.y,l*=o),e.createRadialGradient(a,s,0,a,s,l)}for(var i=n.prototype={constructor:n,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,t,n){var i=this,r=n&&n.style,o=!r||e.__attrCachedBy!==c.STYLE_BIND;e.__attrCachedBy=c.STYLE_BIND;for(var a=0;a<h.length;a++){var s=h[a],l=s[0];!o&&i[l]===r[l]||(e[l]=u(e,l,i[l]||s[1]))}!o&&i.fill===r.fill||(e.fillStyle=i.fill),!o&&i.stroke===r.stroke||(e.strokeStyle=i.stroke),!o&&i.opacity===r.opacity||(e.globalAlpha=null==i.opacity?1:i.opacity),!o&&i.blend===r.blend||(e.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()&&(n=i.lineWidth,e.lineWidth=n/(this.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1))},hasFill:function(){var e=this.fill;return null!=e&&"none"!==e},hasStroke:function(){var e=this.stroke;return null!=e&&"none"!==e&&0<this.lineWidth},extendFrom:function(e,t){if(e)for(var n in e)!e.hasOwnProperty(n)||!0!==t&&(!1===t?this.hasOwnProperty(n):null==e[n])||(this[n]=e[n])},set:function(e,t){"string"==typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,n){for(var i=("radial"===t.type?s:a)(e,t,n),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}},r=0;r<h.length;r++){var o=h[r];o[0]in i||(i[o[0]]=o[1])}n.getGradient=i.getGradient,e.exports=n},function(e,t,n){var a=new(n(301))(50);function s(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function l(e){return e&&e.width&&e.height}t.findExistImage=function(e){return"string"!=typeof e?e:(e=a.get(e))&&e.image},t.createOrUpdateImage=function(e,t,n,i,r){if(e){if("string"!=typeof e)return e;if(t&&t.__zrImageSrc===e||!n)return t;var o=a.get(e),r={hostEl:n,cb:i,cbPayload:r};return o?l(t=o.image)||o.pending.push(r):((t=new Image).onload=t.onerror=s,a.put(e,t.__cachedImgObj={image:t,pending:[r]}),t.src=t.__zrImageSrc=e),t}return t},t.isImageReady=l},function(e,t,n){var i=n(24),a=n(306),s=n(195).subPixelOptimizeRect,l={},i=i.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var n,i,r,o;this.subPixelOptimize?(s(l,t,this.style),n=l.x,i=l.y,r=l.width,o=l.height,l.r=t.r,t=l):(n=t.x,i=t.y,r=t.width,o=t.height),t.r?a.buildPath(e,t):e.rect(n,i,r,o),e.closePath()}});e.exports=i},function(e,t){var a=Math.round;function s(e,t,n){if(!t)return e;e=a(2*e);return(e+a(t))%2==0?e/2:(e+(n?1:-1))/2}t.subPixelOptimizeLine=function(e,t,n){var i,r,o;t&&(i=t.x1,r=t.x2,o=t.y1,t=t.y2,e.x1=i,e.x2=r,e.y1=o,e.y2=t,(n=n&&n.lineWidth)&&(a(2*i)===a(2*r)&&(e.x1=e.x2=s(i,n,!0)),a(2*o)===a(2*t)&&(e.y1=e.y2=s(o,n,!0))))},t.subPixelOptimizeRect=function(e,t,n){var i,r,o;t&&(i=t.x,r=t.y,o=t.width,t=t.height,e.x=i,e.y=r,e.width=o,e.height=t,(n=n&&n.lineWidth)&&(e.x=s(i,n,!0),e.y=s(r,n,!0),e.width=Math.max(s(i+o,n,!1)-e.x,0===o?0:1),e.height=Math.max(s(r+t,n,!1)-e.y,0===t?0:1)))},t.subPixelOptimize=s},function(e,t,n){var i=n(1),a=n(150),n=function(e,t,n,i,r,o){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=o||!1,a.call(this,r)};n.prototype={constructor:n},i.inherits(n,a),e.exports=n},function(e,t,n){var i=n(1).inherits,r=n(120),o=n(21);function a(e){r.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}a.prototype.incremental=!0,a.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},a.prototype.addDisplayable=function(e,t){(t?this._temporaryDisplayables:this._displayables).push(e),this.dirty()},a.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},a.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},a.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++)(t=this._displayables[e]).parent=this,t.update(),t.parent=null;for(var t,e=0;e<this._temporaryDisplayables.length;e++)(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null},a.prototype.brush=function(e,t){for(var n=this._cursor;n<this._displayables.length;n++)(i=this._displayables[n]).beforeBrush&&i.beforeBrush(e),i.brush(e,n===this._cursor?null:this._displayables[n-1]),i.afterBrush&&i.afterBrush(e);this._cursor=n;for(var i,n=0;n<this._temporaryDisplayables.length;n++)(i=this._temporaryDisplayables[n]).beforeBrush&&i.beforeBrush(e),i.brush(e,0===n?null:this._temporaryDisplayables[n-1]),i.afterBrush&&i.afterBrush(e);this._temporaryDisplayables=[],this.notClear=!0};var s=[];a.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new o(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(s)),e.union(i)}this._rect=e}return this._rect},a.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(e,t))return!0;return!1},i(a,r),e.exports=a},function(e,t,n){var s=n(80).retrieveRawValue,i=n(17),h=i.getTooltipMarker,l=i.formatTpl,d=n(10).getTooltipRenderMode,u=/\{@(.+?)\}/g;e.exports={getDataParams:function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"color"),l=n.getItemVisual(e,"borderColor"),u=this.ecModel.getComponent("tooltip"),c=u&&u.get("renderMode"),e=d(c),u=this.mainType,c="series"===u,n=n.userOutput;return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:r,data:a,dataType:t,value:i,color:s,borderColor:l,dimensionNames:n?n.dimensionNames:null,encode:n?n.encode:null,marker:h({color:s,renderMode:e}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(i,e,t,n,r){e=e||"normal";var o=this.getData(t),a=o.getItemModel(i),t=this.getDataParams(i,t);null!=n&&t.value instanceof Array&&(t.value=t.value[n]);r=a.get("normal"===e?[r||"label","formatter"]:[e,r||"label","formatter"]);return"function"==typeof r?(t.status=e,t.dimensionIndex=n,r(t)):"string"==typeof r?l(r,t).replace(u,function(e,t){var n=t.length;return"["===t.charAt(0)&&"]"===t.charAt(n-1)&&(t=+t.slice(1,n-1)),s(o,i,t)}):void 0},getRawValue:function(e,t){return s(this.getData(t),e)},formatTooltip:function(){}}},function(e,t,n){var i=n(1),f=(i.assert,i.isArray);n(14).__DEV__;function r(e){this._reset=(e=e||{}).reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0,this.context}n=r.prototype;n.perform=function(e){var t,n=this._upstream,i=e&&e.skip;this._dirty&&n&&((o=this.context).data=o.outputData=n.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var r=l(this._modBy),o=this._modDataCount||0,a=l(e&&e.modBy),s=e&&e.modDataCount||0;function l(e){return e=!(1<=e)?1:e}r===a&&o===s||(t="reset"),!this._dirty&&"reset"!==t||(this._dirty=!1,p=function(e,t){var n,i;e._dueIndex=e._outputDueEnd=e._dueEnd=0,e._settedOutputEnd=null,!t&&e._reset&&((n=e._reset(e.context))&&n.progress&&(i=n.forceFirstProgress,n=n.progress),f(n)&&!n.length&&(n=null));e._progress=n,e._modBy=e._modDataCount=null;e=e._downstream;return e&&e.dirty(),i}(this,i)),this._modBy=a,this._modDataCount=s;e=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var u=this._dueIndex,c=Math.min(null!=e?this._dueIndex+e:1/0,this._dueEnd);if(!i&&(p||u<c)){var h=this._progress;if(f(h))for(var d=0;d<h.length;d++)m(this,h[d],u,c,a,s);else m(this,h,u,c,a,s)}this._dueIndex=c;var p=null!=this._settedOutputEnd?this._settedOutputEnd:c;this._outputDueEnd=p}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var o,a,s,l,u,c,h=c={reset:function(e,t,n,i){a=e,o=t,s=n,l=i,u=Math.ceil(l/s),c.next=1<s&&0<l?p:d}};function d(){return a<o?a++:null}function p(){var e=a%u*s+Math.ceil(a/u),e=o<=a?null:e<l?e:a;return a++,e}function m(e,t,n,i,r,o){h.reset(n,i,r,o),e._callingProgress=t,e._callingProgress({start:n,end:i,count:i-n,next:h.next},e.context)}n.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.pipe=function(e){this._downstream===e&&!this._dirty||((this._downstream=e)._upstream=this,e.dirty())},n.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.getUpstream=function(){return this._upstream},n.getDownstream=function(){return this._downstream},n.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t.createTask=function(e){return new r(e)}},function(e,t,n){n(14).__DEV__;var i=n(1),r=i.createHashMap,o=i.isString,a=i.isArray,s=i.each,l=(i.assert,n(322).parseXML),u=r(),r={registerMap:function(e,t,n){n=a(t)?t:t.svg?[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(n=t.specialAreas,t=t.geoJson),[{type:"geoJSON",source:t,specialAreas:n}]);return s(n,function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON"),(0,c[t])(e)}),u.set(e,n)},retrieveMap:function(e){return u.get(e)}},c={geoJSON:function(e){var t=e.source;e.geoJSON=o(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=l(e.source)}};e.exports=r},function(e,t,n){n(14).__DEV__;var i=n(1),r=i.isObject,u=i.each,o=i.map,l=i.indexOf,s=(i.retrieve,n(15).getLayoutRect),i=n(52),c=i.createScaleByModel,a=i.ifAxisCrossZero,h=i.niceScaleExtent,d=i.estimateLabelUnionRect,p=n(535),f=n(537),i=n(51),m=n(57).getStackedDimension;function g(e,t){return e.getCoordSysModel()===t}function v(e,t,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,n),this.model=e}n(538);n=v.prototype;function y(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],t=n.model,n=t.get("axisLine.onZero"),t=t.get("axisLine.onZeroAxisIndex");if(n){if(null!=t)x(o[t])&&(r=o[t]);else for(var a in o)if(o.hasOwnProperty(a)&&x(o[a])&&!i[s(o[a])]){r=o[a];break}r&&(i[s(r)]=!0)}function s(e){return e.dim+"_"+e.index}}function x(e){return e&&"category"!==e.type&&"time"!==e.type&&a(e)}n.type="grid",n.axisPointerEnabled=!0,n.getRect=function(){return this._rect},n.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),u(n.x,function(e){h(e.scale,e.model)}),u(n.y,function(e){h(e.scale,e.model)});var i={};u(n.x,function(e){y(n,"y",e,i)}),u(n.y,function(e){y(n,"x",e,i)}),this.resize(this.model,t)},n.resize=function(e,t,n){var a=s(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=a;var i=this._axesList;function r(){u(i,function(e){var t,n,i=e.isHorizontal(),r=i?[0,a.width]:[0,a.height],o=e.inverse?1:0;e.setExtent(r[o],r[1-o]),e=e,t=i?a.x:a.y,i=e.getExtent(),n=i[0]+i[1],e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return n-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return n-e+t}})}r(),!n&&e.get("containLabel")&&(u(i,function(e){var t,n,i;e.model.get("axisLabel.inside")||(t=d(e))&&(n=e.isHorizontal()?"height":"width",i=e.model.get("axisLabel.margin"),a[n]-=t[n]+i,"top"===e.position?a.y+=t.height+i:"left"===e.position&&(a.x+=t.width+i))}),r())},n.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n){if(null==t)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[t]}},n.getAxes=function(){return this._axesList.slice()},n.getCartesian=function(e,t){if(null!=e&&null!=t)return this._coordsMap["x"+e+"y"+t];r(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},n.getCartesians=function(){return this._coordsList.slice()},n.convertToPixel=function(e,t,n){t=this._findConvertTarget(e,t);return t.cartesian?t.cartesian.dataToPoint(n):t.axis?t.axis.toGlobalCoord(t.axis.dataToCoord(n)):null},n.convertFromPixel=function(e,t,n){t=this._findConvertTarget(e,t);return t.cartesian?t.cartesian.pointToData(n):t.axis?t.axis.coordToData(t.axis.toLocalCoord(n)):null},n._findConvertTarget=function(e,t){var n,i,r=t.seriesModel,o=t.xAxisModel||r&&r.getReferringComponents("xAxis")[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=t.gridModel,t=this._coordsList;return r?(n=r.coordinateSystem,l(t,n)<0&&(n=null)):o&&a?n=this.getCartesian(o.componentIndex,a.componentIndex):o?i=this.getAxis("x",o.componentIndex):a?i=this.getAxis("y",a.componentIndex):s&&s.coordinateSystem===this&&(n=this._coordsList[0]),{cartesian:n,axis:i}},n.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},n._initCartesian=function(o,e,t){var a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);function n(r){return function(e,t){var n,i;g(e,o)&&(i=e.get("position"),"x"===r?"top"!==i&&"bottom"!==i&&(i=a.bottom?"top":"bottom"):"left"!==i&&"right"!==i&&(i=a.left?"right":"left"),a[i]=!0,i="category"===(n=new f(r,c(e),[0,0],e.get("type"),i)).type,n.onBand=i&&e.get("boundaryGap"),n.inverse=e.get("inverse"),(e.axis=n).model=e,n.grid=this,n.index=t,this._axesList.push(n),s[r][t]=n,l[r]++)}}this._axesMap=s,u(s.x,function(i,r){u(s.y,function(e,t){var n="x"+r+"y"+t,t=new p(n);t.grid=this,t.model=o,this._coordsMap[n]=t,this._coordsList.push(t),t.addAxis(i),t.addAxis(e)},this)},this)},n._updateScale=function(e,r){function o(t,n){u(t.mapDimension(n.dim,!0),function(e){n.scale.unionExtentFromData(t,m(t,e))})}u(this._axesList,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeries(function(e){var t,n,i;w(e)&&(t=(i=_(e))[0],n=i[1],g(t,r)&&g(n,r)&&(i=this.getCartesian(t.componentIndex,n.componentIndex),t=e.getData(),n=i.getAxis("x"),i=i.getAxis("y"),"list"===t.type&&(o(t,n),o(t,i))))},this)},n.getTooltipAxes=function(n){var i=[],r=[];return u(this.getCartesians(),function(e){var t=null!=n&&"auto"!==n?e.getAxis(n):e.getBaseAxis(),e=e.getOtherAxis(t);l(i,t)<0&&i.push(t),l(r,e)<0&&r.push(e)}),{baseAxes:i,otherAxes:r}};var b=["xAxis","yAxis"];function _(t){return o(b,function(e){return t.getReferringComponents(e)[0]})}function w(e){return"cartesian2d"===e.get("coordinateSystem")}v.create=function(i,r){var o=[];return i.eachComponent("grid",function(e,t){var n=new v(e,i,r);n.name="grid_"+t,n.resize(e,r,!0),e.coordinateSystem=n,o.push(n)}),i.eachSeries(function(e){var t,n,i;w(e)&&(t=(i=_(e))[0],n=i[1],i=t.getCoordSysModel().coordinateSystem,e.coordinateSystem=i.getCartesian(t.componentIndex,n.componentIndex))}),o},v.dimensions=v.prototype.dimensions=p.prototype.dimensions,i.register("cartesian2d",v),e.exports=v},function(e,t,n){var s=n(80).retrieveRawValue;t.getDefaultLabel=function(e,t){var n=e.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return s(e,t,n[0]);if(i){for(var r=[],o=0;o<n.length;o++){var a=s(e,t,n[o]);r.push(a)}return r.join(" ")}}},function(e,t,n){var s=n(1),i=n(60),l=n(6),o=n(157),u=n(54),c=n(66),a=(0,n(10).makeInner)(),h=s.clone,d=s.bind;function r(){}function p(e,t,n,i){!function n(i,e){{if(s.isObject(i)&&s.isObject(e)){var r=!0;return s.each(e,function(e,t){r=r&&n(i[t],e)}),!!r}return i===e}}(a(n).lastProp,i)&&(a(n).lastProp=i,t?l.updateProps(n,i,e):(n.stopAnimation(),n.attr(i)))}function f(e,t){e[t.get("label.show")?"show":"hide"]()}function m(e){return{position:e.position.slice(),rotation:e.rotation||0}}function g(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)})}i.enableClassExtend((r.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,i=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(i&&i.hide());a&&a.show(),i&&i.show();o={};this.makeElOption(o,r,e,t,n);i=o.graphicKey;i!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=i;i=this._moveAnimation=this.determineAnimation(e,t);a?(i=s.curry(p,t,i),this.updatePointerEl(a,o,i,t),this.updateLabelEl(a,o,i,t)):(a=this._group=new l.Group,this.createPointerEl(a,o,e,t),this.createLabelEl(a,o,e,t),n.getZr().add(a)),g(a,t,!0),this._renderHandle(r)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,t=t.get("snap");if(!t&&!r)return!1;if("auto"!==n&&null!=n)return!0===n;n=this.animationThreshold;if(r&&i.getBandWidth()>n)return!0;if(t){e=o.getAxisInfo(e).seriesDataCount,i=i.getExtent();return Math.abs(i[0]-i[1])/e>n}return!1},makeElOption:function(e,t,n,i,r){},createPointerEl:function(e,t,n,i){var r=t.pointer;r&&(t=a(e).pointerEl=new l[r.type](h(t.pointer)),e.add(t))},createLabelEl:function(e,t,n,i){t.label&&(t=a(e).labelEl=new l.Rect(h(t.label)),e.add(t),f(t,i))},updatePointerEl:function(e,t,n){e=a(e).pointerEl;e&&t.pointer&&(e.setStyle(t.pointer.style),n(e,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,n,i){e=a(e).labelEl;e&&(e.setStyle(t.label.style),n(e,{shape:t.label.shape,position:t.label.position}),f(e,i))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=l.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){u.stop(e.event)},onmousedown:d(this._onHandleDragMove,this,0,0),drift:d(this._onHandleDragMove,this),ondragend:d(this._onHandleDragEnd,this)}),i.add(r)),g(r,n,!1);r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));n=o.get("size");s.isArray(n)||(n=[n,n]),r.attr("scale",[n[0]/2,n[1]/2]),c.createOrUpdate(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){p(this._axisPointerModel,!t&&this._moveAnimation,this._handle,m(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(m(n),[e,t],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(m(t)),a(n).lastProp=null,this._doDispatchAxisPointer())},_doDispatchAxisPointer:function(){var e,t;this._handle&&(e=this._payloadInfo,t=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]}))},_onHandleDragEnd:function(e){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,e=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),e&&t.remove(e),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}}).constructor=r),e.exports=r},function(e,t,n){var i=n(3);n(341),n(552),n(342);var r=n(553),n=n(30);i.registerProcessor(i.PRIORITY.PROCESSOR.SERIES_FILTER,r),n.registerSubTypeDefaulter("legend",function(){return"plain"})},function(e,t,n){var i=n(3);n(556),n(557);var r=n(83),o=n(130),a=n(559);n(127),i.registerVisual(r("line","circle","line")),i.registerLayout(o("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,a("line"))},function(e,t,n){var i=n(3),r=n(1);n(560),n(561);var o=n(348),a=n(132),s=n(562),n=n(133);o("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisual(a("pie")),i.registerLayout(r.curry(s,"pie")),i.registerProcessor(n("pie"))},function(e,t,n){var i=n(1);e.exports={updateSelectedMap:function(e){this._targetList=i.isArray(e)?e.slice():[],this._selectTargetMap=i.reduce(e||[],function(e,t){return e.set(t.name,t),e},i.createHashMap())},select:function(e,t){e=null!=t?this._targetList[t]:this._selectTargetMap.get(e);"single"===this.get("selectedMode")&&this._selectTargetMap.each(function(e){e.selected=!1}),e&&(e.selected=!0)},unSelect:function(e,t){e=null!=t?this._targetList[t]:this._selectTargetMap.get(e);e&&(e.selected=!1)},toggleSelected:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);if(null!=n)return this[n.selected?"unSelect":"select"](e,t),n.selected},isSelected:function(e,t){e=null!=t?this._targetList[t]:this._selectTargetMap.get(e);return e&&e.selected}}},function(e,t,n){var i=n(3);n(576),n(583),n(353),n(211);var r=n(585),o=n(586),a=n(587),s=n(588),n=n(348);i.registerLayout(r),i.registerVisual(o),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,a),i.registerPreprocessor(s),n("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},function(e,t){t.updateViewOnPan=function(e,t,n){var i=e.target;(e=i.position)[0]+=t,e[1]+=n,i.dirty()},t.updateViewOnZoom=function(e,t,n,i){var r=e.target,o=e.zoomLimit,a=r.position,s=r.scale,l=e.zoom=e.zoom||1;l*=t,o&&(u=o.min||0,o=o.max||1/0,l=Math.max(Math.min(o,l),u));var u=l/e.zoom;e.zoom=l,a[0]-=(n-a[0])*(u-1),a[1]-=(i-a[1])*(u-1),s[0]*=u,s[1]*=u,r.dirty()}},function(e,t){t.updateCenterAndZoom=function(e,t,n){var i,r,o=e.getZoom(),a=e.getCenter(),s=t.zoom,l=e.dataToPoint(a);return null!=t.dx&&null!=t.dy&&(l[0]-=t.dx,l[1]-=t.dy,a=e.pointToData(l),e.setCenter(a)),null!=s&&(n&&(r=n.min||0,i=n.max||1/0,s=Math.max(Math.min(o*s,i),r)/o),e.scale[0]*=s,e.scale[1]*=s,i=e.position,r=(t.originX-i[0])*(s-1),t=(t.originY-i[1])*(s-1),i[0]-=r,i[1]-=t,e.updateTransform(),a=e.pointToData(l),e.setCenter(a),e.setZoom(s*o)),{center:e.getCenter(),zoom:e.getZoom()}}},function(e,t,n){n(14).__DEV__;var i=n(3),l=n(1),u=n(584),c=n(15),h=n(8),a=n(160),d=n(200);function p(e,t){var n=e.get("boundingCoords");null!=n&&(s=n[0],a=n[1],isNaN(s[0])||isNaN(s[1])||isNaN(a[0])||isNaN(a[1])||this.setBoundingRect(s[0],s[1],a[0]-s[0],a[1]-s[1]));var i,r=this.getBoundingRect(),o=e.get("layoutCenter"),n=e.get("layoutSize"),a=t.getWidth(),s=t.getHeight(),t=r.width/r.height*this.aspectScale,r=!1;o&&n&&(o=[h.parsePercent(o[0],a),h.parsePercent(o[1],s)],n=h.parsePercent(n,Math.min(a,s)),isNaN(o[0])||isNaN(o[1])||isNaN(n)||(r=!0)),r?(i={},1<t?(i.width=n,i.height=n/t):(i.height=n,i.width=n*t),i.y=o[1]-i.height/2,i.x=o[0]-i.width/2):((o=e.getBoxLayoutParams()).aspect=t,i=c.getLayoutRect(o,{width:a,height:s})),this.setViewRect(i.x,i.y,i.width,i.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function f(n,e){l.each(e.get("geoCoord"),function(e,t){n.addGeoCoord(t,e)})}n={dimensions:u.prototype.dimensions,create:function(e,a){var s=[];e.eachComponent("geo",function(e,t){var n=e.get("map"),i=e.get("aspectScale"),r=!0,o=d.retrieveMap(n);o&&o[0]&&"svg"===o[0].type?(null==i&&(i=1),r=!1):null==i&&(i=.75);r=new u(n+t,n,e.get("nameMap"),r);r.aspectScale=i,r.zoomLimit=e.get("scaleLimit"),s.push(r),f(r,e),(e.coordinateSystem=r).model=e,r.resize=p,r.resize(e,a)}),e.eachSeries(function(e){var t;"geo"===e.get("coordinateSystem")&&(t=e.get("geoIndex")||0,e.coordinateSystem=s[t])});var n={};return e.eachSeriesByType("map",function(e){var t;e.getHostGeoModel()||(t=e.getMapType(),n[t]=n[t]||[],n[t].push(e))}),l.each(n,function(e,t){var n=l.map(e,function(e){return e.get("nameMap")}),i=new u(t,t,l.mergeAll(n));i.zoomLimit=l.retrieve.apply(null,l.map(e,function(e){return e.get("scaleLimit")})),s.push(i),i.resize=p,i.aspectScale=e[0].get("aspectScale"),i.resize(e[0],a),l.each(e,function(e){f(e.coordinateSystem=i,e)})}),s},getFilledRegions:function(e,t,n){for(var i=(e||[]).slice(),r=l.createHashMap(),o=0;o<i.length;o++)r.set(i[o].name,i[o]);n=a.load(t,n);return l.each(n.regions,function(e){e=e.name;r.get(e)||i.push({name:e})}),i}};i.registerCoordinateSystem("geo",n),e.exports=n},function(e,t,n){var i=n(1),o=n(20),r=n(35),a=n(21),s=n(146),l=o.applyTransform;function u(){s.call(this)}function c(e){this.name=e,this.zoomLimit,s.call(this),this._roamTransformable=new u,this._rawTransformable=new u,this._center,this._zoom}function h(e,t,n,i){n=n.seriesModel,n=n?n.coordinateSystem:null;return n===this?n[e](i):null}i.mixin(u,s),c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,n,i){return this._rect=new a(e,t,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,n,i){this.transformTo(e,t,n,i),this._viewRect=new a(e,t,n,i)},transformTo:function(e,t,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new a(e,t,n,i)),o.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},setZoom:function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},getDefaultCenter:function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom(),i=o.applyTransform([],i,e),n=o.applyTransform([],n,e);t.origin=i,t.position=[n[0]-i[0],n[1]-i[1]],t.scale=[r,r],this._updateTransform()},_updateTransform:function(){var e=this._roamTransformable,t=this._rawTransformable;(t.parent=e).updateTransform(),t.updateTransform(),r.copy(this.transform||(this.transform=[]),t.transform||r.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],r.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var e=this._roamTransformable.transform,t=this._rawTransformable;return{roamTransform:e?i.slice(e):r.create(),rawScale:i.slice(t.scale),rawPosition:i.slice(t.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e,t,n){t=t?this._rawTransform:this.transform;return n=n||[],t?l(n,e,t):o.copy(n,e)},pointToData:function(e){var t=this.invTransform;return t?l([],e,t):[e[0],e[1]]},convertToPixel:i.curry(h,"dataToPoint"),convertFromPixel:i.curry(h,"pointToData"),containPoint:function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])}},i.mixin(c,s),e.exports=c},function(e,t,n){function c(e,t){this.name=e||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t}var h=n(1),i=n(357),r=n(47),o=n(99);function a(e){this.root,this.data,this._nodes=[],this.hostModel=e}function d(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}c.prototype={constructor:c,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,t,n){"function"==typeof e&&(n=t,t=e,e=null);var i,r=(e=h.isString(e=e||{})?{order:e}:e).order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(i=t.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},updateDepthAndHeight:function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},contains:function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].contains(e);if(r)return r}},getAncestors:function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},getValue:function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},setLayout:function(e,t){0<=this.dataIndex&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},setVisual:function(e,t){0<=this.dataIndex&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(e){return e!==this&&e.isAncestorOf(this)}},a.prototype={constructor:a,type:"tree",eachNode:function(e,t,n){this.root.eachNode(e,t,n)},getNodeByDataIndex:function(e){e=this.data.getRawIndex(e);return this._nodes[e]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},a.createTree=function(e,t,n){var s=new a(t),l=[],u=1;!function e(t,n){var i=t.value;u=Math.max(u,h.isArray(i)?i.length:1);l.push(t);var r=new c(t.name,s);n?d(r,n):s.root=r;s._nodes.push(r);var o=t.children;if(o)for(var a=0;a<o.length;a++)e(o[a],r)}(e),s.root.updateDepthAndHeight(0);e=o(l,{coordDimensions:["value"],dimensionsCount:u}),t=new r(e,t);return t.initData(l),n&&n(t),i({mainData:t,struct:s,structAttr:"tree"}),s.update(),s},e.exports=a},function(e,t,n){var i=n(6),r=n(215);function o(e){this._ctor=e||r,this.group=new i.Group}n=o.prototype;function s(e){e=e.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function a(e){return isNaN(e[0])||isNaN(e[1])}function l(e){return!a(e[0])&&!a(e[1])}n.isPersistent=function(){return!0},n.updateData=function(r){var o=this,t=o.group,n=o._lineData;o._lineData=r,n||t.removeAll();var a=s(r);r.diff(n).add(function(e){var t,n,i;t=o,n=e,i=a,l((e=r).getItemLayout(n))&&(i=new t._ctor(e,n,i),e.setItemGraphicEl(n,i),t.group.add(i))}).update(function(e,t){!function(e,t,n,i,r,o){i=t.getItemGraphicEl(i);l(n.getItemLayout(r))?(i?i.updateData(n,r,o):i=new e._ctor(n,r,o),n.setItemGraphicEl(r,i),e.group.add(i)):e.group.remove(i)}(o,n,r,t,e,a)}).remove(function(e){t.remove(n.getItemGraphicEl(e))}).execute()},n.updateLayout=function(){var n=this._lineData;n&&n.eachItemGraphicEl(function(e,t){e.updateLayout(n,t)},this)},n.incrementalPrepareUpdate=function(e){this._seriesScope=s(e),this._lineData=null,this.group.removeAll()},n.incrementalUpdate=function(e,t){function n(e){var t;e.isGroup||(t=e).animators&&0<t.animators.length||(e.incremental=e.useHoverLayer=!0)}for(var i,r=e.start;r<e.end;r++)l(t.getItemLayout(r))&&((i=new this._ctor(t,r,this._seriesScope)).traverse(n),this.group.add(i),t.setItemGraphicEl(r,i))},n.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},n._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e.exports=o},function(e,t,n){var f=n(1),_=n(20),a=n(42),s=n(609),m=n(6),g=n(8).round,v=["fromSymbol","toSymbol"];function l(e){return"_"+e+"Type"}function u(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var r=t.getItemVisual(n,"color"),o=t.getItemVisual(n,e+"Size"),n=t.getItemVisual(n,e+"Rotate");f.isArray(o)||(o=[o,o]);r=a.createSymbol(i,-o[0]/2,-o[1]/2,o[0],o[1],r);return r.__specifiedRotation=null==n||isNaN(n)?void 0:+n*Math.PI/180||0,r.name=e,r}}function c(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;t=t[2];t?(e.cpx1=t[0],e.cpy1=t[1]):(e.cpx1=NaN,e.cpy1=NaN)}function i(e,t,n){m.Group.call(this),this._createLine(e,t,n)}n=i.prototype;n.beforeUpdate=function(){var e=this.childOfName("fromSymbol"),t=this.childOfName("toSymbol"),n=this.childOfName("label");if(e||t||!n.ignore){for(var i=1,r=this.parent;r;)r.scale&&(i/=r.scale[0]),r=r.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a,s,l,u,c,h=o.shape.percent,d=o.pointAt(0),p=o.pointAt(h),f=_.sub([],p,d);if(_.normalize(f,f),e&&(e.attr("position",d),null==(a=e.__specifiedRotation)?(m=o.tangentAt(0),e.attr("rotation",Math.PI/2-Math.atan2(m[1],m[0]))):e.attr("rotation",a),e.attr("scale",[i*h,i*h])),t&&(t.attr("position",p),null==(a=t.__specifiedRotation)?(m=o.tangentAt(1),t.attr("rotation",-Math.PI/2-Math.atan2(m[1],m[0]))):t.attr("rotation",a),t.attr("scale",[i*h,i*h])),!n.ignore){n.attr("position",p);var m,t=n.__labelDistance,g=t[0]*i,v=t[1]*i,t=h/2,h=[(m=o.tangentAt(t))[1],-m[0]],y=o.pointAt(t);0<h[1]&&(h[0]=-h[0],h[1]=-h[1]);var x,b=m[0]<0?-1:1;switch("start"!==n.__position&&"end"!==n.__position&&(h=-Math.atan2(m[1],m[0]),p[0]<d[0]&&(h=Math.PI+h),n.attr("rotation",h)),n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-v,u="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=v,u="top";break;default:x=0,u="middle"}switch(n.__position){case"end":s=[f[0]*g+p[0],f[1]*v+p[1]],l=.8<f[0]?"left":f[0]<-.8?"right":"center",u=.8<f[1]?"top":f[1]<-.8?"bottom":"middle";break;case"start":s=[-f[0]*g+d[0],-f[1]*v+d[1]],l=.8<f[0]?"right":f[0]<-.8?"left":"center",u=.8<f[1]?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":s=[g*b+d[0],d[1]+x],l=m[0]<0?"right":"left",c=[-g*b,-x];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":s=[y[0],y[1]+x],l="center",c=[0,-x];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":s=[-g*b+p[0],p[1]+x],l=0<=m[0]?"right":"left",c=[g*b,-x]}n.attr({style:{textVerticalAlign:n.__verticalAlign||u,textAlign:n.__textAlign||l},position:s,scale:[i,i],origin:c})}}}},n._createLine=function(n,i,e){var t,r=n.hostModel,o=n.getItemLayout(i),o=(t=o,c((o=new s({name:"line",subPixelOptimize:!0})).shape,t),o);o.shape.percent=0,m.initProps(o,{shape:{percent:1}},r,i),this.add(o);o=new m.Text({name:"label",lineLabelOriginalOpacity:1});this.add(o),f.each(v,function(e){var t=u(e,n,i);this.add(t),this[l(e)]=n.getItemVisual(i,e)},this),this._updateCommonStl(n,i,e)},n.updateData=function(i,r,e){var t=i.hostModel,n=this.childOfName("line"),o=i.getItemLayout(r),a={shape:{}};c(a.shape,o),m.updateProps(n,a,t,r),f.each(v,function(e){var t=i.getItemVisual(r,e),n=l(e);this[n]!==t&&(this.remove(this.childOfName(e)),e=u(e,i,r),this.add(e)),this[n]=t},this),this._updateCommonStl(i,r,e)},n._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=n&&n.lineStyle,a=n&&n.hoverLineStyle,s=n&&n.labelModel,l=n&&n.hoverLabelModel;n&&!e.hasItemOption||(o=(n=e.getItemModel(t)).getModel("lineStyle").getLineStyle(),a=n.getModel("emphasis.lineStyle").getLineStyle(),s=n.getModel("label"),l=n.getModel("emphasis.label"));var u=e.getItemVisual(t,"color"),c=f.retrieve3(e.getItemVisual(t,"opacity"),o.opacity,1);r.useStyle(f.defaults({strokeNoScale:!0,fill:"none",stroke:u,opacity:c},o)),r.hoverStyle=a,f.each(v,function(e){e=this.childOfName(e);e&&(e.setColor(u),e.setStyle({opacity:c}))},this);var h,o=s.getShallow("show"),r=l.getShallow("show"),a=this.childOfName("label");(o||r)&&(h=u||"#000",null==(p=i.getFormattedLabel(t,"normal",e.dataType))&&(p=null==(d=i.getRawValue(t))?e.getName(t):isFinite(d)?g(d):d));var d=o?p:null,e=r?f.retrieve2(i.getFormattedLabel(t,"emphasis",e.dataType),p):null,p=a.style;null==d&&null==e||(m.setTextStyle(a.style,s,{text:d},{autoColor:h}),a.__textAlign=p.textAlign,a.__verticalAlign=p.textVerticalAlign,a.__position=s.get("position")||"middle",s=s.get("distance"),f.isArray(s)||(s=[s,s]),a.__labelDistance=s),a.hoverStyle=null!=e?{text:e,textFill:l.getTextColor(!0),fontStyle:l.getShallow("fontStyle"),fontWeight:l.getShallow("fontWeight"),fontSize:l.getShallow("fontSize"),fontFamily:l.getShallow("fontFamily")}:{text:null},a.ignore=!o&&!r,m.setHoverStyle(this)},n.highlight=function(){this.trigger("emphasis")},n.downplay=function(){this.trigger("normal")},n.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},n.setLinePoints=function(e){var t=this.childOfName("line");c(t.shape,e),t.dirty()},f.inherits(i,m.Group),e.exports=i},function(e,t){t.getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,e=(e=t.scale)&&e[0]||1;return((t.getZoom()-1)*n+1)/e},t.getSymbolSize=function(e){return+(e=(e=e.getVisual("symbolSize"))instanceof Array?(e[0]+e[1])/2:e)}},function(e,t,n){n(14).__DEV__;var u=n(1),i=n(77),a=n(6),r=n(352),c=n(81),o=u.curry,h=u.each,s=u.map,l=Math.min,f=Math.max,d=Math.pow,p=1e4,m=6,g=6,v={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},y={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},x={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0;function _(e){i.call(this),this._zr=e,this.group=new a.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+b++,this._handlers={},h(q,function(e,t){this._handlers[t]=u.bind(e,this)},this)}function w(e,t){var n=K[t.brushType].createCover(e,t);return n.__brushOption=t,A(n,t),e.group.add(n),n}function C(e,t){var n=T(t);return n.endCreating&&(n.endCreating(e,t),A(t,t.__brushOption)),t}function S(e,t){var n=t.__brushOption;T(t).updateCoverShape(e,t,n.range,n)}function A(e,t){var n=t.z;null==n&&(n=p),e.traverse(function(e){e.z=n,e.z2=n})}function M(e,t){T(t).updateCommon(e,t),S(e,t)}function T(e){return K[e.__brushOption.brushType]}function k(e,t,n){var i,r=e._panels;if(!r)return!0;var o=e._transform;return h(r,function(e){e.isTargetByCursor(t,n,o)&&(i=e)}),i}function D(e,t){e=e._panels;if(!e)return!0;t=t.__brushOption.panelId;return null==t||e[t]}function I(t){var e=t._covers,n=e.length;return h(e,function(e){t.group.remove(e)},t),e.length=0,n}function O(e,t){var n=s(e._covers,function(e){var t=e.__brushOption,e=u.clone(t.range);return{brushType:t.brushType,panelId:t.panelId,range:e}});e.trigger("brush",n,{isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function N(e){var t=e.length-1;return[e[0],e[t=t<0?0:t]]}function L(t,n,e,i){var r=new a.Group;return r.add(new a.Rect({name:"main",style:z(e),silent:!0,draggable:!0,cursor:"move",drift:o(t,n,r,"nswe"),ondragend:o(O,n,{isEnd:!0})})),h(i,function(e){r.add(new a.Rect({name:e,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:o(t,n,r,e),ondragend:o(O,n,{isEnd:!0})}))}),r}function P(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=f(r,g),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,p=h-o+r/2,n=c-a,c=h-s,h=n+r,r=c+r;H(e,t,"main",a,s,n,c),i.transformable&&(H(e,t,"w",l,u,o,r),H(e,t,"e",d,u,o,r),H(e,t,"n",l,u,h,o),H(e,t,"s",l,p,h,o),H(e,t,"nw",l,u,o,o),H(e,t,"ne",d,u,o,o),H(e,t,"sw",l,p,o,o),H(e,t,"se",d,p,o,o))}function E(n,i){var e=i.__brushOption,r=e.transformable,t=i.childAt(0);t.useStyle(z(e)),t.attr({silent:!r,cursor:r?"move":"default"}),h(["w","e","n","s","se","sw","ne","nw"],function(e){var t=i.childOfName(e),e=function e(t,n){{if(1<n.length){n=n.split("");var i=[e(t,n[0]),e(t,n[1])];return"e"!==i[0]&&"w"!==i[0]||i.reverse(),i.join("")}var r={w:"left",e:"right",n:"top",s:"bottom"},o={left:"w",right:"e",top:"n",bottom:"s"},i=a.transformDirection(r[n],j(t));return o[i]}}(n,e);t&&t.attr({silent:!r,invisible:!r,cursor:r?y[e]+"-resize":null})})}function H(e,t,n,i,r,o,a){n=t.childOfName(n);n&&n.setShape((i=$(e,t,[[i,r],[i+o,r+a]]),o=l(i[0][0],i[1][0]),r=l(i[0][1],i[1][1]),a=f(i[0][0],i[1][0]),i=f(i[0][1],i[1][1]),{x:o,y:r,width:a-o,height:i-r}))}function z(e){return u.defaults({strokeNoScale:!0},e.brushStyle)}function R(e,t,n,i){var r=[l(e,n),l(t,i)],i=[f(e,n),f(t,i)];return[[r[0],i[0]],[r[1],i[1]]]}function j(e){return a.getTransform(e.group)}function B(e,t,n,i,r,o,a,s){var l=i.__brushOption,u=e(l.range),c=V(n,o,a);h(r.split(""),function(e){e=v[e];u[e[0]][e[1]]+=c[e[0]]}),l.range=t(R(u[0][0],u[1][0],u[0][1],u[1][1])),M(n,i),O(n,{isEnd:!1})}function F(e,t,n,i,r){var o=t.__brushOption.range,a=V(e,n,i);h(o,function(e){e[0]+=a[0],e[1]+=a[1]}),M(e,t),O(e,{isEnd:!1})}function V(e,t,n){e=e.group,n=e.transformCoordToLocal(t,n),e=e.transformCoordToLocal(0,0);return[n[0]-e[0],n[1]-e[1]]}function $(e,t,n){t=D(e,t);return t&&!0!==t?t.clipPath(n,e._transform):u.clone(n)}function Y(e,t,n){if(e._brushType&&!function(e,t,n){e=e._zr;return t<0||t>e.getWidth()||n<0||n>e.getHeight()}(e,t)){var i=e._zr,r=e._covers,o=k(e,t,n);if(!e._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&K[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function W(e){e=e.event;e.preventDefault&&e.preventDefault()}function X(e,t,n){return e.childOfName("main").contain(t,n)}function G(e,t,n,i){var r,o,a=e._creatingCover,s=e._creatingPanel,l=e._brushOption;return e._track.push(n.slice()),function(e){if((n=e._track).length){var t=n[n.length-1],e=n[0],n=t[0]-e[0],e=t[1]-e[1],e=d(n*n+e*e,.5);return m<e}}(e)||a?(s&&!a&&("single"===l.brushMode&&I(e),(r=u.clone(l)).brushType=U(r.brushType,s),r.panelId=!0===s?null:s.panelId,a=e._creatingCover=w(e,r),e._covers.push(a)),a&&(o=K[U(e._brushType,s)],a.__brushOption.range=o.getCreatingRange($(e,a,e._track)),i&&(C(e,a),o.updateCommon(e,a)),S(e,a),o={isEnd:i})):i&&"single"===l.brushMode&&l.removeOnClick&&k(e,t,n)&&I(e)&&(o={isEnd:i,removeOnClick:!0}),o}function U(e,t){return"auto"===e?t.defaultBrushType:e}_.prototype={constructor:_,enableBrush:function(e){var t,n;return this._brushType&&(n=(t=this)._zr,r.release(n,"globalPan",t._uid),function(n,e){h(e,function(e,t){n.off(t,e)})}(n,t._handlers),t._brushType=t._brushOption=null),e.brushType&&function(e,t){var n=e._zr;e._enableGlobalPan||r.take(n,"globalPan",e._uid);(function(n,e){h(e,function(e,t){n.on(t,e)})})(n,e._handlers),e._brushType=t.brushType,e._brushOption=u.merge(u.clone(x),t,!0)}(this,e),this},setPanels:function(e){var t;return e&&e.length?(t=this._panels={},u.each(e,function(e){t[e.panelId]=u.clone(e)})):this._panels=null,this},mount:function(e){this._enableGlobalPan=(e=e||{}).enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({position:e.position||[0,0],rotation:e.rotation||0,scale:e.scale||[1,1]}),this._transform=t.getLocalTransform(),this},eachCover:function(e,t){h(this._covers,e,t)},updateCovers:function(i){i=u.map(i,function(e){return u.merge(u.clone(x),e,!0)});var n="\0-brush-index-",r=this._covers,o=this._covers=[],a=this,s=this._creatingCover;return new c(r,i,function(e,t){return l(e.__brushOption,t)},l).add(e).update(e).remove(function(e){r[e]!==s&&a.group.remove(r[e])}).execute(),this;function l(e,t){return(null!=e.id?e.id:n+t)+"-"+e.brushType}function e(e,t){var n=i[e];null!=t&&r[t]===s?o[e]=r[t]:(n=o[e]=null!=t?(r[t].__brushOption=n,r[t]):C(a,w(a,n)),M(a,n))}},unmount:function(){return this.enableBrush(!1),I(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},u.mixin(_,i);var q={mousedown:function(e){var t;this._dragging?Z(this,e):e.target&&e.target.draggable||(W(e),t=this.group.transformCoordToLocal(e.offsetX,e.offsetY),this._creatingCover=null,(this._creatingPanel=k(this,e,t))&&(this._dragging=!0,this._track=[t.slice()]))},mousemove:function(e){var t=e.offsetX,n=e.offsetY,n=this.group.transformCoordToLocal(t,n);Y(this,e,n),this._dragging&&(W(e),(n=G(this,e,n,!1))&&O(this,n))},mouseup:function(e){Z(this,e)}};function Z(e,t){var n,i;e._dragging&&(W(t),n=t.offsetX,i=t.offsetY,i=e.group.transformCoordToLocal(n,i),i=G(e,t,i,!0),e._dragging=!1,e._track=[],e._creatingCover=null,i&&O(e,i))}var K={lineX:Q(0),lineY:Q(1),rect:{createCover:function(e,t){return L(o(B,function(e){return e},function(e){return e}),e,t,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(e){e=N(e);return R(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(e,t,n,i){P(e,t,n,i)},updateCommon:E,contain:X},polygon:{createCover:function(e,t){var n=new a.Group;return n.add(new a.Polyline({name:"main",style:z(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new a.Polygon({name:"main",draggable:!0,drift:o(F,e,t),ondragend:o(O,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:$(e,t,n)})},updateCommon:E,contain:X}};function Q(a){return{createCover:function(e,t){return L(o(B,function(e){e=[e,[0,100]];return a&&e.reverse(),e},function(e){return e[a]}),e,t,[["w","e"],["n","s"]][a])},getCreatingRange:function(e){e=N(e);return[l(e[0][a],e[1][a]),f(e[0][a],e[1][a])]},updateCoverShape:function(e,t,n,i){var r=D(e,t),o=[n,!0!==r&&r.getLinearBrushOtherExtent?r.getLinearBrushOtherExtent(a,e._transform):[0,[(o=e._zr).getWidth(),o.getHeight()][1-a]]];a&&o.reverse(),P(e,t,o,i)},updateCommon:E,contain:X}}e.exports=_},function(e,t,n){n(14).__DEV__;var u=n(1),c=n(692),h=n(8).parsePercent,i=n(52),r=i.createScaleByModel,a=i.niceScaleExtent,i=n(51),s=n(57).getStackedDimension;function d(e,t){var n,i=this,r=i.getAngleAxis(),o=i.getRadiusAxis();r.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){var t;e.coordinateSystem===i&&(t=e.getData(),u.each(t.mapDimension("radius",!0),function(e){o.scale.unionExtentFromData(t,s(t,e))}),u.each(t.mapDimension("angle",!0),function(e){r.scale.unionExtentFromData(t,s(t,e))}))}),a(r.scale,r.model),a(o.scale,o.model),"category"!==r.type||r.onBand||(n=r.getExtent(),e=360/r.scale.count(),r.inverse?n[1]+=e:n[1]-=e,r.setExtent(n[0],n[1]))}function p(e,t){var n;e.type=t.get("type"),e.scale=r(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),"angleAxis"===t.mainType&&(e.inverse^=t.get("clockwise"),n=t.get("startAngle"),e.setExtent(n,n+(e.inverse?-360:360))),(t.axis=e).model=t}n(695);n={dimensions:c.prototype.dimensions,create:function(n,s){var l=[];return n.eachComponent("polar",function(e,t){var n=new c(t);n.update=d;var i=n.getRadiusAxis(),r=n.getAngleAxis(),o=e.findAxisModel("radiusAxis"),a=e.findAxisModel("angleAxis");p(i,o),p(r,a),t=n,i=s,r=(o=e).get("center"),a=i.getWidth(),i=i.getHeight(),t.cx=h(r[0],a),t.cy=h(r[1],i),t=t.getRadiusAxis(),i=Math.min(a,i)/2,null==(o=o.get("radius"))?o=[0,"100%"]:u.isArray(o)||(o=[0,o]),o=[h(o[0],i),h(o[1],i)],t.inverse?t.setExtent(o[1],o[0]):t.setExtent(o[0],o[1]),l.push(n),(e.coordinateSystem=n).model=e}),n.eachSeries(function(e){var t;"polar"===e.get("coordinateSystem")&&(t=n.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0],e.coordinateSystem=t.coordinateSystem)}),l}};i.register("polar",n)},function(e,t,n){n(30).registerSubTypeDefaulter("dataZoom",function(){return"slider"})},function(e,t,n){var h=n(1),i=n(17),r=["cartesian2d","polar","singleAxis"];function o(e,a){e=e.slice();var s=h.map(e,i.capitalFirst);a=(a||[]).slice();var l=h.map(a,i.capitalFirst);return function(r,o){h.each(e,function(e,t){for(var n={name:e,capital:s[t]},i=0;i<a.length;i++)n[a[i]]=e+l[i];r.call(o,n)})}}n=o(["x","y","z","radius","angle","single"],["axisIndex","axis","index","id"]);t.isCoordSupported=function(e){return 0<=h.indexOf(r,e)},t.createNameEach=o,t.eachAxisDim=n,t.createLinkedNodesFinder=function(n,l,u){return function(e){var a,s={nodes:[],records:{}};if(l(function(e){s.records[e.name]={}}),!e)return s;for(c(e,s);a=!1,n(t),a;);function t(e){var n,i,r,t,o;t=e,o=s,0<=h.indexOf(o.nodes,t)||(n=e,i=s,r=!1,l(function(t){h.each(u(n,t)||[],function(e){i.records[t.name][e]&&(r=!0)})}),!r)||(c(e,s),a=!0)}return s};function c(e,n){n.nodes.push(e),l(function(t){h.each(u(e,t)||[],function(e){n.records[t.name][e]=!0})})}}},function(e,t,n){var i=n(3),n=n(1),r=n.createHashMap,o=n.each;i.registerProcessor({getTargetSeries:function(e){var i=r();return e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(e,t,n){t=n.getAxisProxy(e.name,t);o(t.getTargetSeriesModels(),function(e){i.set(e.uid,e)})})}),i},modifyOutputEnd:!0,overallReset:function(e,i){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(e,t,n){n.getAxisProxy(e.name,t).reset(n,i)}),e.eachTargetAxis(function(e,t,n){n.getAxisProxy(e.name,t).filterData(n,i)})}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy(),n=t.getDataPercentWindow(),t=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:t[0],endValue:t[1]})})}})},function(e,t,n){var i=n(3),o=n(1),a=n(220);i.registerAction("dataZoom",function(n,e){var i=a.createLinkedNodesFinder(o.bind(e.eachComponent,e,"dataZoom"),a.eachAxisDim,function(e,t){return e.get(t.axisIndex)}),r=[];e.eachComponent({mainType:"dataZoom",query:n},function(e,t){r.push.apply(r,i(e).nodes)}),o.each(r,function(e,t){e.setRawRange({start:n.start,end:n.end,startValue:n.startValue,endValue:n.endValue})})})},function(e,t,n){n(14).__DEV__;var i=n(3),s=n(1),r=n(25),o=n(10),a=n(17),n=n(198),l=a.addCommas,u=a.encodeHTML;function c(e){o.defaultEmphasis(e,"label",["show"])}i=i.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},isAnimationEnabled:function(){if(r.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t){this._mergeOption(e,t,!1,!1)},_mergeOption:function(e,i,t,r){var o=this.constructor,a=this.mainType+"Model";t||i.eachSeries(function(e){var t=e.get(this.mainType,!0),n=e[a];t&&t.data?(n?n._mergeOption(t,i,!0):(r&&c(t),s.each(t.data,function(e){e instanceof Array?(c(e[0]),c(e[1])):c(e)}),n=new o(t,this,i),s.extend(n,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),n.__hostSeries=e),e[a]=n):e[a]=null},this)},formatTooltip:function(e,t,n,i){var r=this.getData(),o=this.getRawValue(e),a=s.isArray(o)?s.map(o,l).join(", "):l(o),r=r.getName(e),e=u(this.name);return null==o&&!r||(e+="html"===i?"<br/>":"\n"),r&&(e+=u(r),null!=o&&(e+=" : ")),null!=o&&(e+=u(a)),e},getData:function(){return this._data},setData:function(e){this._data=e}});s.mixin(i,n),e.exports=i},function(e,t,n){var l=n(1),u=n(8),c=n(57).isDimensionStacked,h=l.indexOf;function i(e,t,n,i,r,o){var a=[],s=c(t,i)?t.getCalculationInfo("stackResultDimension"):i,e=f(t,s,e),e=t.indicesOfNearest(s,e)[0];a[r]=t.get(n,e),a[o]=t.get(s,e);s=t.get(i,e),e=u.getPrecision(t.get(i,e));return 0<=(e=Math.min(e,20))&&(a[o]=+a[o].toFixed(e)),[a,s]}var n=l.curry,d={min:n(i,"min"),max:n(i,"max"),average:n(i,"average")};function p(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(function(e,t){var n=e.getData(),i=n.dimensions;t=n.getDimension(t);for(var r=0;r<i.length;r++){var o=n.getDimensionInfo(i[r]);if(o.name===t)return o.coordDim}}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function f(e,t,n){if("average"!==n)return"median"===n?e.getMedian(t):e.getDataExtent(t,!0)["max"===n?1:0];var i=0,r=0;return e.each(t,function(e,t){isNaN(e)||(i+=e,r++)}),i/r}t.dataTransform=function(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&(o=t,isNaN(parseFloat(o.x))||isNaN(parseFloat(o.y)))&&!l.isArray(t.coord)&&i){var r=i.dimensions,o=p(t,n,i,e);if((t=l.clone(t)).type&&d[t.type]&&o.baseAxis&&o.valueAxis){i=h(r,o.baseAxis.dim),e=h(r,o.valueAxis.dim),e=d[t.type](n,o.baseDataDim,o.valueDataDim,i,e);t.coord=e[0],t.value=e[1]}else{for(var a=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],s=0;s<2;s++)d[a[s]]&&(a[s]=f(n,n.mapDimension(r[s]),a[s]));t.coord=a}}return t},t.getAxisInfo=p,t.dataFilter=function(e,t){return!(e&&e.containData&&t.coord&&(n=t,isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y))))||e.containData(t.coord);var n},t.dimValueGetter=function(e,t,n,i){return i<2?e.coord&&e.coord[i]:e.value},t.numCalculate=f},function(e,t,n){var i=n(3),r=n(1),i=i.extendComponentView({type:"marker",init:function(){this.markerGroupMap=r.createHashMap()},render:function(e,n,i){var t=this.markerGroupMap;t.each(function(e){e.__keep=!1});var r=this.type+"Model";n.eachSeries(function(e){var t=e[r];t&&this.renderSeries(e,t,n,i)},this),t.each(function(e){e.__keep||this.group.remove(e.group)},this)},renderSeries:function(){}});e.exports=i},function(e,t,n){n(382),n(391)},function(e,t,n){var S=n(228).createElement,i=n(97),r=n(21),A=n(35),M=n(41),T=n(149),k=n(79),b=i.CMD,o=Array.prototype.join,a="none",_=Math.round,w=Math.sin,C=Math.cos,D=Math.PI,I=2*Math.PI,O=180/D,s=1e-4;function N(e){return _(1e4*e)/1e4}function L(e){return e<s&&-s<e}function P(e,t){t&&c(e,"transform","matrix("+o.call(t,",")+")")}function c(e,t,n){n&&("linear"===n.type||"radial"===n.type)||e.setAttribute(t,n)}function E(e,t,n,i){var r,o;r=t,null!=(r=n?r.textFill:r.fill)&&r!==a?(c(e,"fill",o="transparent"===(o=n?t.textFill:t.fill)?a:o),c(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)):c(e,"fill",a),o=t,null!=(o=n?o.textStroke:o.stroke)&&o!==a?(c(e,"stroke",o="transparent"===(o=n?t.textStroke:t.stroke)?a:o),c(e,"stroke-width",(n?t.textStrokeWidth:t.lineWidth)/(!n&&t.strokeNoScale?i.getLineScale():1)),c(e,"paint-order",n?"stroke":"fill"),c(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity),t.lineDash?(c(e,"stroke-dasharray",t.lineDash.join(",")),c(e,"stroke-dashoffset",_(t.lineDashOffset||0))):c(e,"stroke-dasharray",""),t.lineCap&&c(e,"stroke-linecap",t.lineCap),t.lineJoin&&c(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&c(e,"stroke-miterlimit",t.miterLimit)):c(e,"stroke",a)}var l={};l.brush=function(e){var t=e.style,n=e.__svgEl;n||(n=S("path"),e.__svgEl=n),e.path||e.createPathProxy();var i=e.path;e.__dirtyPath&&(i.beginPath(),i.subPixelOptimize=!1,e.buildPath(i,e.shape),e.__dirtyPath=!1,(i=function(e){for(var t=[],n=e.data,i=e.len(),r=0;r<i;){var o="",a=0;switch(n[r++]){case b.M:o="M",a=2;break;case b.L:o="L",a=2;break;case b.Q:o="Q",a=4;break;case b.C:o="C",a=6;break;case b.A:var s=n[r++],l=n[r++],u=n[r++],c=n[r++],h=n[r++],d=n[r++],p=n[r++],f=n[r++],m=Math.abs(d),g=L(m-I)||(f?I<=d:I<=-d),v=!1,v=!!g||!L(m)&&D<=(0<d?d%I:d%I+I)==!!f,y=N(s+u*C(h)),m=N(l+c*w(h));g&&(d=f?I-1e-4:1e-4-I,v=!0,9===r&&t.push("M",y,m));s=N(s+u*C(h+d)),d=N(l+c*w(h+d));t.push("A",N(u),N(c),_(p*O),+v,+f,s,d);break;case b.Z:o="Z";break;case b.R:s=N(n[r++]),d=N(n[r++]),v=N(n[r++]),f=N(n[r++]);t.push("M",s,d,"L",s+v,d,"L",s+v,d+f,"L",s,d+f,"L",s,d)}o&&t.push(o);for(var x=0;x<a;x++)t.push(N(n[r++]))}return t.join(" ")}(i)).indexOf("NaN")<0&&c(n,"d",i)),E(n,t,!1,e),P(n,e.transform),null!=t.text?h(e,e.getBoundingRect()):d(e)};var n={brush:function(e){var t,n,i,r,o,a,s,l=e.style,u=l.image;(u=u instanceof HTMLImageElement?u.src:u)&&(t=l.x||0,n=l.y||0,i=l.width,r=l.height,(o=e.__svgEl)||(o=S("image"),e.__svgEl=o),u!==e.__imageSrc&&(a="href",s=u,o.setAttributeNS("http://www.w3.org/1999/xlink",a,s),e.__imageSrc=u),c(o,"width",i),c(o,"height",r),c(o,"x",t),c(o,"y",n),P(o,e.transform),null!=l.text?h(e,e.getBoundingRect()):d(e))}},i={},H=new r,z={},R=[],u={left:"start",right:"end",center:"middle",middle:"middle"},h=function(e,t){var n=e.style,i=e.transform,r=e instanceof k||n.transformText;e.__dirty&&T.normalizeTextStyle(n,!0);var o=n.text;if(null!=o&&(o+=""),T.needDrawText(o,n)){null==o&&(o=""),!r&&i&&(H.copy(t),H.applyTransform(i),t=H);var a=e.__textSvgEl;a||(a=S("text"),e.__textSvgEl=a);var s=a.style,l=n.font||M.DEFAULT_FONT,u=a.__computedFont;l!==a.__styleFont&&(s.font=a.__styleFont=l,u=a.__computedFont=s.font);var c=n.textPadding,h=n.textLineHeight,d=e.__textCotentBlock,l=(d=!d||e.__dirtyText?e.__textCotentBlock=M.parsePlainText(o,u,c,h,n.truncate):d).outerHeight,p=d.lineHeight;T.getBoxPosition(z,e,n,t);var s=z.baseX,u=z.baseY,f=z.textAlign||"left",h=z.textVerticalAlign;!function(e,t,n,i,r,o,a){A.identity(R),t&&n&&A.copy(R,n);n=i.textRotation;r&&n&&("center"===(i=i.textOrigin)?(o=r.width/2+r.x,a=r.height/2+r.y):i&&(o=i[0]+r.x,a=i[1]+r.y),R[4]-=o,R[5]-=a,A.rotate(R,R,n),R[4]+=o,R[5]+=a);P(e,R)}(a,r,i,n,t,s,u);var m=s,g=M.adjustTextY(u,l,h);c&&(l=s,h=c,m="right"===(s=f)?l-h[1]:"center"===s?l+h[3]/2-h[1]/2:l+h[3],g+=c[0]),g+=p/2,E(a,n,!0,e);var n=d.canCacheByTextString,v=e.__tspanList||(e.__tspanList=[]),y=v.length;if(n&&e.__canCacheByTextString&&e.__text===o){if(e.__dirtyText&&y)for(var x=0;x<y;++x)j(v[x],f,m,g+x*p)}else{e.__text=o,e.__canCacheByTextString=n;for(var b=d.lines,_=b.length,x=0;x<_;x++){var w=v[x],C=b[x];w?w.__zrText!==C&&(w.innerHTML="",w.appendChild(document.createTextNode(C))):(w=v[x]=S("tspan"),a.appendChild(w),w.appendChild(document.createTextNode(C))),j(w,f,m,g+x*p)}if(_<y){for(;x<y;x++)a.removeChild(v[x]);v.length=_}}}};function j(e,t,n,i){c(e,"dominant-baseline","middle"),c(e,"text-anchor",u[t]),c(e,"x",n),c(e,"y",i)}function d(e){e&&e.__textSvgEl&&(e.__textSvgEl.parentNode&&e.__textSvgEl.parentNode.removeChild(e.__textSvgEl),e.__textSvgEl=null,e.__tspanList=[],e.__text=null)}i.drawRectText=h,i.brush=function(e){null!=e.style.text?h(e,!1):d(e)},t.path=l,t.image=n,t.text=i},function(e,t){t.createElement=function(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}},function(e,t,n){var i=n(228).createElement,r=n(1),o=n(24),a=n(95),s=n(79),n=n(227),l=n.path,u=n.image,c=n.text;function h(e,t,n,i,r){this._zrId=e,this._svgRoot=t,this._tagNames="string"==typeof n?[n]:n,this._markLabel=i,this._domName=r||"_dom",this.nextId=0}h.prototype.createElement=i,h.prototype.getDefs=function(e){var t=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?e?((i=t.insertBefore(this.createElement("defs"),t.firstChild)).contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;0<=n;--n)if(t[n]===e)return!0;return!1}),i):null:i[0]},h.prototype.update=function(e,t){var n;e&&(n=this.getDefs(!1),e[this._domName]&&n.contains(e[this._domName])?"function"==typeof t&&t(e):(t=this.add(e))&&(e[this._domName]=t))},h.prototype.addDom=function(e){this.getDefs(!0).appendChild(e)},h.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},h.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var n=[];return r.each(this._tagNames,function(e){e=t.getElementsByTagName(e);n=n.concat([].slice.call(e))}),n},h.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;r.each(e,function(e){e[t._markLabel]="0"})},h.prototype.markUsed=function(e){e&&(e[this._markLabel]="1")},h.prototype.removeUnused=function(){var e,t,n=this.getDefs(!1);n&&(e=this.getDoms(),t=this,r.each(e,function(e){"1"!==e[t._markLabel]&&n.removeChild(e)}))},h.prototype.getSvgProxy=function(e){return e instanceof o?l:e instanceof a?u:e instanceof s?c:l},h.prototype.getTextSvgElement=function(e){return e.__textSvgEl},h.prototype.getSvgElement=function(e){return e.__svgEl},e.exports=h},function(e,t,n){"use strict";t.__esModule=!0,t.isNumeric=function(e){return/^\d+(\.\d+)?$/.test(e)},t.isNaN=function(e){if(Number.isNaN)return Number.isNaN(e);return e!=e}},function(e,s,l){"use strict";!function(e){s.__esModule=!0,s.raf=a,s.doubleRaf=function(e){a(function(){a(e)})},s.cancelRaf=function(e){o.call(n,e)};var t=l(9),i=Date.now();var n=t.isServer?e:window,r=n.requestAnimationFrame||function(e){var t=Date.now(),n=Math.max(0,16-(t-i)),e=setTimeout(e,n);return i=t+n,e},o=n.cancelAnimationFrame||n.clearTimeout;function a(e){return r.call(n,e)}}.call(this,l(90))},function(e,t,n){"use strict";t.__esModule=!0,t.formatMonthTitle=function(e){return o("monthTitle",e.getFullYear(),e.getMonth()+1)},t.compareMonth=a,t.compareDay=function(e,t){var n=a(e,t);if(0!==n)return n;e=e.getDate(),t=t.getDate();return e===t?0:t<e?1:-1},t.getDayByOffset=s,t.getPrevDay=function(e){return s(e,-1)},t.getNextDay=function(e){return s(e,1)},t.calcDateNum=function(e){var t=e[0].getTime();return(e[1].getTime()-t)/864e5+1},t.copyDate=l,t.copyDates=function(e){if(Array.isArray(e))return e.map(function(e){return null===e?e:l(e)});return l(e)};var i=(t.t=t.bem=t.createComponent=void 0,n(9).createNamespace)("calendar"),r=i[0],n=i[1],o=i[2];function a(e,t){var n=e.getFullYear(),i=t.getFullYear(),e=e.getMonth(),t=t.getMonth();return n===i?e===t?0:t<e?1:-1:i<n?1:-1}function s(e,t){return(e=new Date(e)).setDate(e.getDate()+t),e}function l(e){return new Date(e)}t.t=o,t.bem=n,t.createComponent=r},function(e,t,n){"use strict";t.__esModule=!0,t.removeNode=function(e){var t=e.parentNode;t&&t.removeChild(e)}},function(e,t,n){"use strict";t.__esModule=!0,t.isHidden=function(e){var t=window.getComputedStyle(e),n="none"===t.display,t=null===e.offsetParent&&"fixed"!==t.position;return n||t}},function(e,t,n){"use strict";function i(e,t,n){var i=e.indexOf(t);return-1===i?e:"-"===t&&0!==i?e.slice(0,i):e.slice(0,i+1)+e.slice(i).replace(n,"")}t.__esModule=!0,t.range=function(e,t,n){return Math.min(Math.max(e,t),n)},t.formatNumber=function(e,t,n){void 0===t&&(t=!0);void 0===n&&(n=!0);e=t?i(e,".",/\./g):e.split(".")[0];e=n?i(e,"-",/-/g):e.replace(/-/,"");t=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(t,"")}},function(e,t){e.exports=function(e,t){var n=!1;return function(){return n||(console.warn(t),n=!0),e.apply(this,arguments)}}},function(e,t){e.exports=function(e,t){var n=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}},function(e,t){var n,i,e=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var s,l=[],u=!1,c=-1;function h(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=a(h);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c<t;)s&&s[c].run();c=-1,t=l.length}s=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=f,e.addListener=f,e.once=f,e.off=f,e.removeListener=f,e.removeAllListeners=f,e.emit=f,e.prependListener=f,e.prependOnceListener=f,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},function(e,t,n){"use strict";var i=n(878),n=n(889);e.exports=n(i,"Browser")},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"tong-xin-mo-kuai"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#tong-xin-mo-kuai"}},[e._v("¶")]),e._v(" 通信模块")]),t("p",[e._v("tis提供一套完整的“发布-订阅模式”的事件通信机制,而且提供“系统级”,“应用级”, 自定义事件的区分,应用/框架之间可借助该模块,进行相互通信。")]),t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[e._v("¶")]),e._v(" API")]),t("h4",{attrs:{id:"emit-eventname-args"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#emit-eventname-args"}},[e._v("¶")]),e._v(" $emit( eventName, args )")]),t("ul",[t("li",[t("strong",[e._v("参数eventName")]),e._v(":{string} 自定义事件名")]),t("li",[t("strong",[e._v("参数args:")]),e._v(" 任意参数")]),t("li",[t("strong",[e._v("用法:")]),e._v(" 触发事件。附加参数都会传给监听器回调。")]),t("li",[t("strong",[e._v("示例")])])]),t("pre",[t("code",{staticClass:"language-js"},[e._v("// 只配合一个事件名使用 $emit:\nthis.$emit('welcome')\n// 配合额外的参数使用 $emit:\nthis.$emit('welcome', ['Mike','Alice'])\n")])]),t("h4",{attrs:{id:"on-eventname-appids-system-callback"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#on-eventname-appids-system-callback"}},[e._v("¶")]),e._v(" $on(eventName, { appIds, system }, callback)")]),t("ul",[t("li",[t("strong",[e._v("参数eventName:")]),e._v(" {string} 监听的自定义事件名")]),t("li",[t("strong",[e._v("参数appIds:")]),e._v(" 每个应用都可以发出同名自定义事件,因此我们需要传入监听哪些app发出的该事件")]),t("li",[t("strong",[e._v("参数system:")]),e._v(" {boolean} tis宿主框架也可以和应用一样,发出同名自定义事件,如果想同时监听tis宿主发出的该事件,请将该字段设置为true")]),t("li",[t("strong",[e._v("参数callback:")]),e._v(" {Function} 监听回调函数")]),t("li",[t("strong",[e._v("用法:")]),e._v(" 监听事件总线上的自定义事件,而且可限定事件触发者的应用id以及是否为宿主框架发出,回调函数会接收所有传入事件触发函数的额外参数以及发出者信息")]),t("li",[t("strong",[e._v("示例:")])])]),t("pre",[t("code",{staticClass:"language-js"},[e._v("// 监听应用id为app_1,app_2以及tis宿主框架发出的名为\"message\"的事件\nthis.$on('message', { \n appIds: ['app_1', 'app_2'], \n system: true \n}, function(payload, { \n appId, \n system \n}) { \n if (system) { \n console.log('收到了系统级事件(由宿主框架发出)') \n } else { \n console.log(`收到了应用级事件(由应用发出),发送事件方的appId为: ${appId}`) \n } \n console.log('事件参数为', payload) \n})\n")])]),t("h4",{attrs:{id:"off-eventname-appids-system-callback"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#off-eventname-appids-system-callback"}},[e._v("¶")]),e._v(" $off(eventName, { appIds, system }, callback)")]),t("ul",[t("li",[t("strong",[e._v("参数eventName:")]),e._v(" {string} 取消监听的自定义事件名")]),t("li",[t("strong",[e._v("参数appIds:")]),e._v(" 每个应用都可以发出同名自定义事件,因此我们需要传入取消监听哪些app发出的该事件")]),t("li",[t("strong",[e._v("参数system:")]),e._v(" {boolean} tis宿主框架也可以和应用一样,发出同名自定义事件,如果想同时取消监听tis宿主发出的该事件,请将该字段设置为true")]),t("li",[t("strong",[e._v("参数callback:")]),e._v(" {Function} 监听回调函数")]),t("li",[t("strong",[e._v("用法:")]),e._v(" 移除事件监听器")])])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"fu-chuang-xiang-guan"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#fu-chuang-xiang-guan"}},[e._v("¶")]),e._v(" 浮窗相关")]),t("p",[e._v("通过getWdigets, getOpenedWidgets, openWidget, closeWidget 获取/打开/关闭tis宿主框架中的浮窗。")]),t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[e._v("¶")]),e._v(" API")]),t("h4",{attrs:{id:"getwidgets-widgets"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#getwidgets-widgets"}},[e._v("¶")]),e._v(" getWidgets(): widgets")]),t("ul",[t("li",[t("strong",[e._v("返回值widgets")]),e._v(":Array<浮窗对象> widgets")]),t("li",[t("strong",[e._v("浮窗对象:")]),e._v(" widget\n"),t("ul",[t("li",[e._v("{string} id: 浮窗唯一ID")]),t("li",[e._v("{string} name:浮窗显示名称")]),t("li",[e._v("{string} icon:浮窗图标URL")]),t("li",[e._v("{Vue Component} comp:浮窗Vue组件对象")]),t("li",[e._v("{boolean} opened:当前是否已打开")])])]),t("li",[t("strong",[e._v("用法:")]),e._v(" 获取所有已注册在tis宿主框架中的浮窗列表")])]),t("h4",{attrs:{id:"getopenedwidgets-widgets"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#getopenedwidgets-widgets"}},[e._v("¶")]),e._v(" getOpenedWidgets(): widgets")]),t("ul",[t("li",[t("strong",[e._v("返回值widgets")]),e._v(":Array<浮窗对象> widgets")]),t("li",[t("strong",[e._v("浮窗对象:")]),e._v(" widget\n"),t("ul",[t("li",[e._v("{string} id: 浮窗唯一ID")]),t("li",[e._v("{string} name:浮窗显示名称")]),t("li",[e._v("{string} icon:浮窗图标URL")]),t("li",[e._v("{Vue Component} comp:浮窗Vue组件对象")]),t("li",[e._v("{boolean} opened:当前是否已打开")])])]),t("li",[t("strong",[e._v("用法:")]),e._v(" 获取所有在tis宿主框架中,当前已打开的浮窗列表")])]),t("h4",{attrs:{id:"openwidget-widgetid-params"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#openwidget-widgetid-params"}},[e._v("¶")]),e._v(" openWidget( widgetId, params )")]),t("ul",[t("li",[t("strong",[e._v("参数widgetId:")]),e._v(" {string} 浮窗id")]),t("li",[t("strong",[e._v("参数params:")]),e._v(" {any} 传入的参数,会当作浮窗的props传入给浮窗组件")]),t("li",[t("strong",[e._v("用法:")]),e._v(" 根据浮窗唯一ID,打开显示某浮窗")])]),t("h4",{attrs:{id:"closewidget-widgetid"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#closewidget-widgetid"}},[e._v("¶")]),e._v(" closeWidget( widgetId )")]),t("ul",[t("li",[t("strong",[e._v("用法:")]),e._v(" 根据浮窗唯一ID,在tis宿主框架中,关闭某浮窗")])])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"ying-yong-xiang-guan"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ying-yong-xiang-guan"}},[e._v("¶")]),e._v(" 应用相关")]),t("p",[e._v("通过getApps, openApp, getCurrentApp, closeCurrentApp,可以获取/打开/关闭 tis宿主框架中的应用。")]),t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[e._v("¶")]),e._v(" API")]),t("h4",{attrs:{id:"getapps-apps"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#getapps-apps"}},[e._v("¶")]),e._v(" getApps(): apps")]),t("ul",[t("li",[t("strong",[e._v("返回值apps:")]),e._v(" Array<应用对象app>")]),t("li",[t("strong",[e._v("应用对象app:")]),t("ul",[t("li",[e._v("{string} id: 应用唯一ID")]),t("li",[e._v("{string} name:应用显示名称")]),t("li",[e._v("{string} icon:应用图标URL")]),t("li",[e._v("{string} entry:应用入口URL(即应用独立访问的URL)")]),t("li",[e._v("{boolean} default:是否默认应用")]),t("li",[e._v("{boolean} opened:当前是否已打开在前台")])])]),t("li",[t("strong",[e._v("用法:")]),e._v(" 获取所有已注册在tis宿主框架中的应用列表")])]),t("h4",{attrs:{id:"openapp-appid-params"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#openapp-appid-params"}},[e._v("¶")]),e._v(" openApp( appId, params )")]),t("ul",[t("li",[t("strong",[e._v("参数appId:")]),e._v(" {string} 应用id")]),t("li",[t("strong",[e._v("参数params:")]),e._v(" {any} 传入参数,应用可在show生命周期接收到的该参数")]),t("li",[t("strong",[e._v("用法:")]),e._v(" 根据应用唯一ID,将某应用在宿主框架打开")])]),t("h4",{attrs:{id:"getcurrentapp-app"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#getcurrentapp-app"}},[e._v("¶")]),e._v(" getCurrentApp(): app")]),t("ul",[t("li",[t("strong",[e._v("返回值app:")]),e._v(" {应用对象app}\n"),t("ul",[t("li",[e._v("{string} id: 应用唯一ID")]),t("li",[e._v("{string} name:应用显示名称")]),t("li",[e._v("{string} icon:应用图标URL")]),t("li",[e._v("{string} entry:应用入口URL(即应用独立访问的URL)")]),t("li",[e._v("{boolean} default:是否默认应用")]),t("li",[e._v("{boolean} opened:当前是否已打开在前台(此时一定是true)")])])]),t("li",[t("strong",[e._v("用法:")]),e._v(" 获取所有已注册在tis宿主框架中的应用列表")])]),t("h4",{attrs:{id:"closecurrentapp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#closecurrentapp"}},[e._v("¶")]),e._v(" closeCurrentApp()")]),t("ul",[t("li",[t("strong",[e._v("用法:")]),e._v(" 关闭当前前台打开的应用")])])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"quan-ju-bian-liang"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#quan-ju-bian-liang"}},[e._v("¶")]),e._v(" 全局变量")]),t("p",[e._v("全局变量是一种key-value的存储模式(key为字符串,value是任意数据类型),所有应用均可读取和修改。")]),t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[e._v("¶")]),e._v(" API")]),t("h4",{attrs:{id:"getglobalstate-key-value"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#getglobalstate-key-value"}},[e._v("¶")]),e._v(" getGlobalState( key ): value")]),t("ul",[t("li",[t("strong",[e._v("参数key:")]),e._v(" {string}")]),t("li",[t("strong",[e._v("返回值value:")]),e._v(" {any}")]),t("li",[t("strong",[e._v("用法:")]),e._v(" 获取全局变量key的值")])]),t("h4",{attrs:{id:"setglobalstate-key-value"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#setglobalstate-key-value"}},[e._v("¶")]),e._v(" setGlobalState( key, value )")]),t("ul",[t("li",[t("strong",[e._v("参数key:")]),e._v(" {string}")]),t("li",[t("strong",[e._v("参数value:")]),e._v(" {any}")]),t("li",[t("strong",[e._v("用法:")]),e._v(" 设置全局变量key的值")])]),t("h3",{attrs:{id:"shi-yong-shi-li"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#shi-yong-shi-li"}},[e._v("¶")]),e._v(" 使用示例")]),t("pre",[t("code",{staticClass:"language-html"},[e._v('<template>\n <div>\n <h2>读取/设置 全局变量示例</h2>\n <div>请在输入框里填写全局变量key: <input v-model="key" /></div>\n <br />\n <button @click="onSetValue">设置全局变量</button>\n <button @click="onGetValue">获取全局变量</button>\n </div>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n key: "some_key",\n };\n },\n methods: {\n onSetValue() {\n const value = prompt(`请输入全局变量${this.key}的值:`);\n this.$tis.setGlobalState(this.key, value);\n },\n onGetValue() {\n const value = this.$tis.getGlobalState(this.key);\n alert(`全局变量${this.key}的值为:${value}`);\n },\n },\n};\n<\/script>\n')])])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"sheng-ming-zhou-qi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sheng-ming-zhou-qi"}},[this._v("¶")]),this._v(" 生命周期")]),e("p",[this._v("如果应用是在tis宿主框架中运行(非独立模式运行),则可以通过Vue.prototype.$tis访问到所有tis的API。(如果是在Vue组件中,可以直接通过this.$tis访问到)")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"unmount"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#unmount"}},[this._v("¶")]),this._v(" unmount")]),e("p",[this._v("应用在框架中被关闭时触发,此时应用DOM树已被卸载销毁。")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"hide"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hide"}},[this._v("¶")]),this._v(" hide")]),e("p",[this._v("应用在框架中被隐藏时触发,此时应用依然在框架中后台运行,而且DOM树没有被销毁。")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"show"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#show"}},[this._v("¶")]),this._v(" show")]),e("p",[this._v("应用在框架中从隐藏态(后台)切换到显示态(前台)时触发")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"mount"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#mount"}},[this._v("¶")]),this._v(" mount")]),e("p",[this._v("应用在框架中被打开时触发,此时应用会初始化渲染构建自己的DOM树。")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"bootstrap"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bootstrap"}},[this._v("¶")]),this._v(" bootstrap")]),e("p",[this._v("bootstrap 只会在应用初始化的时候调用一次,下次应用重新进入时会直接调用 mount 钩子,不会再重复触发 bootstrap。通常我们可以在这里做一些全局变量的初始化,比如不会在 unmount 阶段被销毁的应用级别的缓存等。")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"sheng-ming-zhou-qi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sheng-ming-zhou-qi"}},[this._v("¶")]),this._v(" 生命周期")]),e("p",[this._v("tis-app拥有完整的生命周期,具体如下,应用生命周期可在src/main.js中定义,然后通过 setup 函数入参传入。")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"src-mu-lu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#src-mu-lu"}},[e._v("¶")]),e._v(" /src 目录")]),t("p",[e._v("项目源码目录,你的大多数编码工作都是在该目录下进行。")]),t("h3",{attrs:{id:"src-assets"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#src-assets"}},[e._v("¶")]),e._v(" src/assets/")]),t("p",[e._v("用于存放各种静态文件,如图片,css")]),t("h3",{attrs:{id:"src-compnents"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#src-compnents"}},[e._v("¶")]),e._v(" src/compnents/")]),t("p",[e._v("用于存放我们的Vue组件")]),t("h3",{attrs:{id:"src-tis"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#src-tis"}},[e._v("¶")]),e._v(" src/tis/")]),t("p",[e._v("存放tis核心模块相关的所有内容,请勿擅自修改。")]),t("h3",{attrs:{id:"src-app-vue"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#src-app-vue"}},[e._v("¶")]),e._v(" src/App.vue")]),t("p",[e._v("主vue组件,引入其他组件,App.vue是项目的主组件。")]),t("h3",{attrs:{id:"src-main-js"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#src-main-js"}},[e._v("¶")]),e._v(" src/main.js")]),t("p",[e._v("项目入口文件,可以理解为项目运行起来,是从整个文件的第一行代码开始执行,作用是初始化tis应用,添加应用生命周期函数钩子,也可以在此文件中引用组件库等。")]),t("p",[e._v("下方是项目模版中默认的main.js文件示例:")]),t("pre",[t("code",{staticClass:"language-javascript"},[e._v('import tis, { setup } from "./tis";\nimport App from "./App.vue";\n\n// 定义应用生命周期函数\n\n// bootstrap 只会在应用初始化的时候调用一次,下次应用重新进入时会直接调用 mount 钩子,不会再重复触发 bootstrap。通常我们可以在这里做一些全局变量的初始化,比如不会在 unmount 阶段被销毁的应用级别的缓存等。\nfunction bootstrap(params) {\n console.log(`[App: ${tis.appId}] boostrap`, params);\n}\n// 应用在框架中被打开时触发,此时应用会初始化渲染构建自己的DOM树。\nfunction mount(params) {\n console.log(`[App: ${tis.appId}] mount`, params);\n}\n// 应用在框架中从隐藏态(后台)切换到显示态(前台)时触发。\nfunction show(params) {\n console.log(`[App: ${tis.appId}] show`, params);\n}\n// 应用在框架中被隐藏时触发,此时应用依然在框架中后台运行,而且DOM树没有被销毁。\nfunction hide(params) {\n console.log(`[App: ${tis.appId}] hide`, params);\n}\n// 应用在框架中被关闭时触发,此时应用DOM树已被卸载销毁。\nfunction unmount(params) {\n console.log(`[App: ${tis.appId}] unmount`, params);\n}\n\n// 必须要执行setup方法\n// 第一个参数是入口vue组件\n// 第二个参数是一个对象,用于传入定义好的生命周期函数钩子\nsetup(App, {\n bootstrap,\n mount,\n hide,\n show,\n unmount\n});\n\n// 注意,下方这句代码是为主框架使用,必须保留,请勿删除\nexport * from "./tis";\n')])])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"public-mu-lu"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#public-mu-lu"}},[this._v("¶")]),this._v(" /public 目录")]),e("p",[this._v("存放各种静态资源,例如:图片,音频,视频等,这个目录下的所有内容,在打包构建时,会自动被复制到/dist的根目录。")]),e("h3",{attrs:{id:"index-html"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#index-html"}},[this._v("¶")]),this._v(" index.html")]),e("p",[this._v("生成项目的入口文件,webpack打包的js,css也会自动注入到该页面中,一般无需修改,使用默认模版即可。")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"dist-mu-lu"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#dist-mu-lu"}},[this._v("¶")]),this._v(" /dist 目录")]),e("p",[this._v("存放打包构建后的产物,无需手动维护,每次打包构建后,这个目录的内容都会重新生成。")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"gen-mu-lu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#gen-mu-lu"}},[e._v("¶")]),e._v(" 根目录")]),t("h3",{attrs:{id:"package-json"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#package-json"}},[e._v("¶")]),e._v(" package.json")]),t("p",[e._v("项目基本配置信息,项目开发所需要模块,版本,需要哪些npm包来参与到项目中来,yarn命令根据这个配置文件增减来管理本地的安装包。")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v('{\n "name": "tis-app",\n "version": "0.1.0",\n "private": true,\n "scripts": {\n // 本地开发运行脚本命令\n "serve": "vue-cli-service serve",\n // 打包构建命令\n "build": "vue-cli-service build",\n // lint检查命令\n "lint": "vue-cli-service lint"\n },\n // 项目生产环境依赖的第三方包\n "dependencies": {\n "core-js": "^3.6.5",\n "vue": "^2.6.11"\n },\n // 项目开发环境依赖的第三方包\n "devDependencies": {\n "@vue/cli-plugin-babel": "~4.5.0",\n "@vue/cli-plugin-eslint": "~4.5.0",\n "@vue/cli-service": "~4.5.0",\n "@vue/eslint-config-prettier": "^6.0.0",\n "babel-eslint": "^10.1.0",\n "eslint": "^6.7.2",\n "eslint-plugin-prettier": "^3.1.3",\n "eslint-plugin-vue": "^6.2.2",\n "lint-staged": "^9.5.0",\n "prettier": "^1.19.1",\n "sass": "^1.26.5",\n "sass-loader": "^8.0.2",\n "vue-template-compiler": "^2.6.11"\n },\n // git的一些hook\n "gitHooks": {\n // 每次commit前,会自动进行代码格式化检查\n "pre-commit": "lint-staged"\n },\n "lint-staged": {\n "*.{js,jsx,vue}": [\n "vue-cli-service lint",\n "git add"\n ]\n }\n}\n')])]),t("h3",{attrs:{id:"vue-config-js"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#vue-config-js"}},[e._v("¶")]),e._v(" vue.config.js")]),t("p",[e._v("vue.config.js 是一个配置文件,用于自定义webpack,devServer,outputDir,assetsDir等信息的配置,一般不需要修改,如有高级自定义需求,可参见https://cli.vuejs.org/zh/config/#vue-config-js 进行配置修改。")]),t("h3",{attrs:{id:"babel-config-js"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#babel-config-js"}},[e._v("¶")]),e._v(" babel.config.js")]),t("p",[e._v("可以通过 babel.config.js 进行配置Babel,一般不需要修改,如有高级自定义需求,可参见https://www.babeljs.cn/docs/configuration进行配置修改。")]),t("h3",{attrs:{id:"eslintrc-js"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#eslintrc-js"}},[e._v("¶")]),e._v(" .eslintrc.js")]),t("p",[e._v("可以通过 .eslintrc.js 进行配置ESlint,一般不需要修改,如有高级自定义需求,可参见https://cn.eslint.org/docs/user-guide/configuring进行配置修改。")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"mu-lu-jie-gou"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#mu-lu-jie-gou"}},[this._v("¶")]),this._v(" 目录结构")]),e("p",[this._v("一个基础的 tis-app 项目大致是这样的:")]),e("pre",[e("code",{staticClass:"language-bash"},[this._v(".\n├── babel.config.js\n├── dist\n├── package.json\n├── public\n│ ├── favicon.ico\n│ ├── icon.png\n│ └── index.html\n├── src\n│ ├── App.vue\n│ ├── assets\n│ │ └── logo.png\n│ ├── components\n│ │ └── HelloWorld.vue\n│ ├── main.js\n│ └── tis\n│ └── index.js\n├── vue.config.js\n")])])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"bu-shu-fa-bu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bu-shu-fa-bu"}},[e._v("¶")]),e._v(" 部署发布")]),t("h3",{attrs:{id:"ben-di-gou-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ben-di-gou-jian"}},[e._v("¶")]),e._v(" 本地构建")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v("yarn build\n\n# 执行完上方命令后,会看到类似如下结果:\nyarn run v1.22.10\n$ vue-cli-service build\n\n⠏ Building for production...\n\n DONE Compiled successfully in 2414ms 11:02:18\n\n File Size Gzipped\n\n dist/static/js/chunk-vendors.113302c8.js 96.53 KiB 34.33 KiB\n dist/static/js/app.eb1f39ab.js 5.00 KiB 1.98 KiB\n dist/static/css/app.c1528f44.css 0.15 KiB 0.14 KiB\n\n Images and other types of assets omitted.\n\n DONE Build complete. The dist directory is ready to be deployed.\n INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html\n\n✨ Done in 4.98s.\n")])]),t("p",[e._v("构建产物默认生成到 ./dist 下,然后通过"),t("code",[e._v("tree")]),e._v("命令查看,")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v("tree ./dist\n\n# 执行完上方命令后,会看到类似如下结果:\ndist\n├── favicon.ico\n├── index.html\n└── static\n ├── css\n │ └── app.c1528f44.css\n └── js\n ├── app.eb1f39ab.js\n ├── app.eb1f39ab.js.map\n ├── chunk-vendors.113302c8.js\n └── chunk-vendors.113302c8.js.map\n\n3 directories, 7 files\n")])]),t("h3",{attrs:{id:"ben-di-yan-zheng"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ben-di-yan-zheng"}},[e._v("¶")]),e._v(" 本地验证")]),t("p",[e._v("发布之前,可以通过 "),t("code",[e._v("serve")]),e._v(" 做本地验证:")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v("yarn global add serve\nserve ./dist\n\n# 执行完上方命令后,会看到类似如下结果:\n \n │ Serving! │\n │ │\n │ - Local: http://localhost:5000 │\n │ - On Your Network: http://192.168.1.5:5000 │\n │ │\n │ Copied local address to clipboard! \n")])]),t("p",[e._v("访问 http://localhost:5000,正常情况下应该是和执行 "),t("code",[e._v("yarn start")]),e._v(" 时是一致的。")]),t("h3",{attrs:{id:"xian-shang-bu-shu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xian-shang-bu-shu"}},[e._v("¶")]),e._v(" 线上部署")]),t("p",[e._v("本地验证完,就可以部署了。你需要把dist目录部署到服务器上。")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);var i=[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"cuo-wu-ti-shi"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#cuo-wu-ti-shi"}},[this._v("¶")]),this._v(" 错误提示")]),e("p",[this._v("我们在编写代码中,难免会失误出错,但是不用担心,代码出错后,会有友好的界面提示出错在哪里了")]),e("p",[this._v("试一下,我们故意在代码中删除h1的闭合标签:")]),e("p",[e("img",{attrs:{src:n(418),alt:"img"}})]),e("p",[this._v("保存代码后,返回浏览器可以即可立即看到出错提示:")]),e("p",[e("img",{attrs:{src:n(419),alt:"img"}})])])}],r=n(0),i=Object(r.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},i,!1,null,null,null);t.default=i.exports},function(e,t,n){"use strict";n.r(t);var i=[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"re-chong-zai-hot-reload"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#re-chong-zai-hot-reload"}},[e._v("¶")]),e._v(" 热重载 (Hot reload)")]),t("p",[e._v("tis-app的热重载功能可帮助您在修改代码保存后,无需重新启动项目,无需刷新浏览器的情况下,浏览器界面中即可实时显示修改后的结果。")]),t("h3",{attrs:{id:"shi-shi-yu-lan"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#shi-shi-yu-lan"}},[e._v("¶")]),e._v(" 实时预览")]),t("p",[e._v("一起试一下,打开编辑器,在src/App.vue文件中,插入一行标签代码,然后保存:")]),t("p",[t("img",{attrs:{src:n(413),alt:"img"}})]),t("p",[e._v("然后返回浏览器界面,即可实时看到修改后的结果:")]),t("p",[t("img",{attrs:{src:n(414),alt:"img"}})]),t("h3",{attrs:{id:"zhuang-tai-bao-liu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zhuang-tai-bao-liu"}},[e._v("¶")]),e._v(" 状态保留")]),t("p",[e._v("“热重载”不只是当你修改文件的时候简单重新加载页面。启用热重载后,当你修改 .vue 文件时,该组件的所有实例将在不刷新页面的情况下被替换。它甚至保持了应用程序和被替换组件的当前状态!当你调整模版或者修改样式时,这极大地提高了开发体验。")]),t("p",[e._v('再来试试,我们在浏览器中,点击“计数器+1”的按钮8次,然后界面中已变成:"我的计数器数值:8"字样:')]),t("p",[t("img",{attrs:{src:n(415),alt:"img"}})]),t("p",[e._v("此时再去修改下src/App.vue文件,保存")]),t("p",[t("img",{attrs:{src:n(416),alt:"img"}})]),t("p",[e._v('返回浏览器,可以看到,新加的一段文本已经显示出来了,而且计数器状态还是显示的为"8",说明我们应用状态并没有因为代码的修改,而导致被清空,这极大的提高了开发效率。')]),t("p",[t("img",{attrs:{src:n(417),alt:"img"}})])])}],r=n(0),i=Object(r.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},i,!1,null,null,null);t.default=i.exports},function(e,t,n){"use strict";n.r(t);var i=[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"kuang-jia-zhong-yun-xing"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#kuang-jia-zhong-yun-xing"}},[e._v("¶")]),e._v(" 框架中运行")]),t("p",[e._v("tis-app是可以独立运行的,如上方介绍,我们已经成功在浏览器里打开 http://localhost:7000/。但通常我们需要让应用运行在框架中。")]),t("p",[e._v("首先在浏览器中,我们打开发版tis框架测试地址 http://tis-dev.com,如下图:")]),t("p",[t("img",{attrs:{src:n(408),alt:"img"}})]),t("p",[e._v("然后点击左上角绿色Devtool按钮,并填入如下信息:")]),t("ul",[t("li",[e._v("应用唯一id:应用的唯一标识符,可以由英文字母、阿拉伯数字、下划线构成,长度在1-32个字符之间,这个字段在界面不可见,只用于程序内部区分不同应用。可以把它想象成人的身份证号。")]),t("li",[e._v("应用名称:应用显示的名称,可以由任意字符组成,长度在1到16个字符之间,用于在界面中显示,可以把它想象成人的姓名。")]),t("li",[e._v("应用入口地址:访问应用地址的URL,本地开发时,是yarn serve之后得到的地址,例如 http://localhost:7100")]),t("li",[e._v("应用图标地址:地应用图标地址URL,一般推荐将图标放到public/目录下,并且命名为icon.png, 这样本地开发时,可以直接通过 http://localhost:7000/icon.png 访问到。")])]),t("p",[t("img",{attrs:{src:n(409),alt:"img"}})]),t("p",[e._v("填写完成后,保存确认,再次点击左上角Devtool,关闭Devtool窗口,然后点击左侧菜单栏第一个,打开所有应用列表窗口:")]),t("p",[t("img",{attrs:{src:n(410),alt:"img"}})]),t("p",[e._v("可以看到刚刚添加的本地应用在最后一个:")]),t("p",[t("img",{attrs:{src:n(411),alt:"img"}})]),t("p",[e._v("我们点击应用图标,即可在框架中打开本地开发应用:")]),t("p",[t("img",{attrs:{src:n(412),alt:"img"}})])])}],r=n(0),i=Object(r.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},i,!1,null,null,null);t.default=i.exports},function(e,t,n){"use strict";n.r(t);var i=[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"qi-dong-xiang-mu"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#qi-dong-xiang-mu"}},[this._v("¶")]),this._v(" 启动项目")]),e("pre",[e("code",{staticClass:"language-bash"},[this._v("yarn serve\n\n# 执行完上方命令后,会看到类似如下结果:\nyarn run v1.22.10\n$ vue-cli-service serve\n INFO Starting development server...\n98% after emitting CopyPlugin\n\n DONE Compiled successfully in 968ms 10:49:43\n\n App running at:\n - Local: http://localhost:7000/\n - Network: http://192.168.1.5:7000/\n\n Note that the development build is not optimized.\n To create a production build, run yarn build.\n")])]),e("p",[this._v("在浏览器里打开 http://localhost:7000/,能看到以下界面,")]),e("p",[e("img",{attrs:{src:n(407),alt:"img"}})])])}],r=n(0),i=Object(r.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},i,!1,null,null,null);t.default=i.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"an-zhuang-yi-lai"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#an-zhuang-yi-lai"}},[this._v("¶")]),this._v(" 安装依赖")]),e("pre",[e("code",{staticClass:"language-bash"},[this._v("# 切换到项目根目录\ncd tis-app/\n# 安装依赖\nyarn\n")])])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"xia-zai-mo-ban"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#xia-zai-mo-ban"}},[this._v("¶")]),this._v(" 下载模版")]),e("p",[this._v("请下载项目模版zip包,然后解压后,会看到tis-app文件夹,请以此目录作为项目根目录,当然你可以根据自己的需求修改文件夹名称。")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"huan-jing-zhun-bei"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#huan-jing-zhun-bei"}},[e._v("¶")]),e._v(" 环境准备")]),t("p",[e._v("首先得有 "),t("a",{attrs:{href:"https://nodejs.org/en/"}},[e._v("node")]),e._v(",并确保 node 版本是 10.13 或以上。(mac 下推荐使用 "),t("a",{attrs:{href:"https://github.com/creationix/nvm"}},[e._v("nvm")]),e._v(" 来管理 node 版本,这样不仅可以很方便地切换 node 版本,而且全局安装时候也不用加 sudo 了。)")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v("$ node -v\nv10.13.0\n")])]),t("p",[e._v("推荐使用 yarn 管理 npm 依赖,并"),t("a",{attrs:{href:"https://github.com/yiminghe/tyarn"}},[e._v("使用国内源")]),e._v("。")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v("# 国内源\n$ npm i yarn tyarn -g\n# 后面文档里的 yarn 换成 tyarn\n$ tyarn -v\n")])])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"bu-shu-fa-bu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bu-shu-fa-bu"}},[e._v("¶")]),e._v(" 部署发布")]),t("h3",{attrs:{id:"ben-di-gou-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ben-di-gou-jian"}},[e._v("¶")]),e._v(" 本地构建")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v("yarn build\n\n# 执行完上方命令后,会看到类似如下结果:\nyarn run v1.22.10\n$ vue-cli-service build\n\n⠏ Building for production...\n\n DONE Compiled successfully in 2414ms 11:02:18\n\n File Size Gzipped\n\n dist/static/js/chunk-vendors.113302c8.js 96.53 KiB 34.33 KiB\n dist/static/js/app.eb1f39ab.js 5.00 KiB 1.98 KiB\n dist/static/css/app.c1528f44.css 0.15 KiB 0.14 KiB\n\n Images and other types of assets omitted.\n\n DONE Build complete. The dist directory is ready to be deployed.\n INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html\n\n✨ Done in 4.98s.\n")])]),t("p",[e._v("构建产物默认生成到 ./dist 下,然后通过"),t("code",[e._v("tree")]),e._v("命令查看,")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v("tree ./dist\n\n# 执行完上方命令后,会看到类似如下结果:\ndist\n├── favicon.ico\n├── index.html\n└── static\n ├── css\n │ └── app.c1528f44.css\n └── js\n ├── app.eb1f39ab.js\n ├── app.eb1f39ab.js.map\n ├── chunk-vendors.113302c8.js\n └── chunk-vendors.113302c8.js.map\n\n3 directories, 7 files\n")])]),t("h3",{attrs:{id:"ben-di-yan-zheng"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ben-di-yan-zheng"}},[e._v("¶")]),e._v(" 本地验证")]),t("p",[e._v("发布之前,可以通过 "),t("code",[e._v("serve")]),e._v(" 做本地验证:")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v("yarn global add serve\nserve ./dist\n\n# 执行完上方命令后,会看到类似如下结果:\n \n │ Serving! │\n │ │\n │ - Local: http://localhost:5000 │\n │ - On Your Network: http://192.168.1.5:5000 │\n │ │\n │ Copied local address to clipboard! \n")])]),t("p",[e._v("访问 http://localhost:5000,正常情况下应该是和执行 "),t("code",[e._v("yarn start")]),e._v(" 时是一致的。")]),t("h3",{attrs:{id:"xian-shang-bu-shu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#xian-shang-bu-shu"}},[e._v("¶")]),e._v(" 线上部署")]),t("p",[e._v("本地验证完,就可以部署了。你需要把dist目录部署到服务器上。")])])}],!1,null,null,null),t.default=n.exports},function(e,t,n){"use strict";n.r(t);var i=[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"yi-kuang-jia"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#yi-kuang-jia"}},[e._v("¶")]),e._v(" 一、框架")]),t("h3",{attrs:{id:"1-kuang-jia-jie-gou-ceng-ji"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#1-kuang-jia-jie-gou-ceng-ji"}},[e._v("¶")]),e._v(" 1.框架结构层级")]),t("p",[t("img",{attrs:{src:n(866),alt:"img"}})]),t("h4",{attrs:{id:"statusbar-xi-tong-zhuang-tai-lan"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#statusbar-xi-tong-zhuang-tai-lan"}},[e._v("¶")]),e._v(" StatusBar:系统状态栏")]),t("p",[e._v("在任何情况下,系统状态栏都会固定显示在界面顶部,一般可以在这里显示常用系统信息,例如:系统时间,设备经纬度坐标,设备电量,信号状态,默认框架中给出了一个简单的系统状态栏示例,请根据自己的需要,修改components/StatusBar.vue文件,进行定制化开发。")]),t("h4",{attrs:{id:"sidermenu-zuo-ce-cai-dan-lan"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#sidermenu-zuo-ce-cai-dan-lan"}},[e._v("¶")]),e._v(" SiderMenu:左侧菜单栏")]),t("p",[e._v("左侧菜单栏,位于界面左侧,高度与视图同高,一般在这里放置核心功能入口或常用应用快捷方式,默认框架中给出了一个简单的左侧菜单栏示例,请根据自己的需要,修改components/SiderMenu.vue文件,进行定制化开发。")]),t("h4",{attrs:{id:"navbar-dao-hang-lan"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#navbar-dao-hang-lan"}},[e._v("¶")]),e._v(" NavBar:导航栏")]),t("p",[e._v("导航栏位于系统状态栏下方,只在默认应用(默认应用是在注册时,default字段为true的应用)显示时展示,用户打开其他应用后,导航栏就会自动隐藏(被AppBar应用控制栏所代替)。通常导航栏里会显示当前用户信息,全局搜索条等,消息提醒等。默认框架中给出了一个简单的导航栏示例,请根据自己的需要,修改components/NavBar.vue文件,进行定制化开发。")]),t("p",[t("img",{attrs:{src:n(867),alt:"img"}})]),t("h4",{attrs:{id:"appbar-ying-yong-kong-zhi-lan"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#appbar-ying-yong-kong-zhi-lan"}},[e._v("¶")]),e._v(" AppBar:应用控制栏")]),t("p",[e._v("当打开某应用后(非默认应用),会在应用视图上方显示,左侧是应用名称,右侧是2个操作按钮,分别是“打开浮窗选择”和“关闭当前应用”。默认框架中给出了一个简单的应用控制栏示例,请根据自己的需要,修改components/AppBar.vue文件,进行定制化开发。")]),t("h4",{attrs:{id:"appview-ying-yong-shi-tu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#appview-ying-yong-shi-tu"}},[e._v("¶")]),e._v(" AppView:应用视图")]),t("p",[e._v("在应用视图里,会自动加载并显示当前应用,如果当前没有打开任何应用,则会自动加载显示“默认应用”(应用配置字段中default为true的就是默认应用)默认框架中给出了一个简单的应用视图示例,请根据自己的需要,修改components/AppView.vue文件,进行定制化开发。")]),t("p",[t("img",{attrs:{src:n(868),alt:"img"}})]),t("h4",{attrs:{id:"widgetspanel-fu-chuang-lie-biao"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#widgetspanel-fu-chuang-lie-biao"}},[e._v("¶")]),e._v(" WidgetsPanel: 浮窗列表")]),t("p",[e._v("在浮窗列表中(可点击在AppBar应用控制栏右侧的三个点按钮唤起浮窗列表),会自动加载显示在框架中已注册过的所有浮窗组件,用户可在该界面中,通过勾选操作,来选择一些浮窗,固定显示在浮窗视图(WidgetsView)当中。默认框架中给出了一个简单的浮窗列表示例,请根据自己的需要,修改components/WidgetsPanel.vue文件,进行定制化开发。")]),t("p",[t("img",{attrs:{src:n(869),alt:"img"}})]),t("h4",{attrs:{id:"widgetsview-fu-chuang-shi-tu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#widgetsview-fu-chuang-shi-tu"}},[e._v("¶")]),e._v(" WidgetsView:浮窗视图")]),t("p",[e._v("此视图悬浮于AppView(应用视图)上方,可以在里面添加一些浮窗组件,进行固定显示。浮窗视图独立于应用视图,两个没有任何关系,关闭某应用后,并不会导致浮窗视图消失。默认框架中给出了一个简单的浮窗视图示例,请根据自己的需要,修改components/WidgetsView.vue文件,进行定制化开发。")]),t("h3",{attrs:{id:"2-qi-dong-yun-xing-kuang-jia"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#2-qi-dong-yun-xing-kuang-jia"}},[e._v("¶")]),e._v(" 2.启动运行框架")]),t("p",[e._v("下载好默认项目代码后,是直接可以运行启动的,但通常你需要根据需求,重新配置下框架参数或进行定制化开发,主要核心需要配置有三处(1. 配置layouts,2. 注册应用,3. 注册浮窗组件),全部都在src/main.js文件中:")]),t("p",[e._v("例子:")]),t("pre",[t("code",{staticClass:"language-javascript"},[e._v('\nimport { setup } from \'./tis\'\n\n// layouts 导入布局组件\n\nimport StatusBar from \'./components/StatusBar\'\n\nimport SiderMenu from \'./components/SiderMenu\'\n\nimport NavBar from \'./components/NavBar\'\n\nimport AppBar from \'./components/AppBar\'\n\nimport WidgetsPanel from \'./components/WidgetsPanel\'\n\nimport Widget from \'./components/Widget\'\n\nimport WidgetsView from \'./components/WidgetsView\'\n\nimport AppView from \'./components/AppView\'\n\n// widgets 导入浮窗组件 \n\nimport WidgetExample1 from \'./widgets/widget-example-1\'\n\nimport WidgetExample2 from \'./widgets/widget-example-2\'\n\nimport WidgetExample3 from \'./widgets/widget-example-3\'\n\nimport WidgetExample4 from \'./widgets/widget-example-4\'\n\n\n\n// 启动\n\nsetup({\n\n // 配置layouts布局\n\n layouts: {\n\n StatusBar,\n\n SiderMenu,\n\n NavBar,\n\n AppBar,\n\n WidgetsPanel,\n\n WidgetsView,\n\n Widget,\n\n AppView\n\n },\n\n // 注册应用\n\n apps: [\n\n {\n\n id: "app_1", // 应用唯一id\n\n name: "移动指挥", // 应用名称\n\n icon: "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-04b48fc3-2230-456c-afbc-662ca76d81a8/f0ee65c0-4f21-484d-b9e7-3b411e318c5c.png",\n\n entry: "http://localhost:7101",\n\n default: true, // 默认应用\n\n },\n\n {\n\n id: "app_2",\n\n name: "雷达监控",\n\n icon: "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-04b48fc3-2230-456c-afbc-662ca76d81a8/0e154291-d52b-4b4f-93f2-87b64b52169c.png",\n\n entry: "http://localhost:7102/",\n\n },\n\n {\n\n id: "app_3",\n\n name: "地图前线",\n\n icon: "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-04b48fc3-2230-456c-afbc-662ca76d81a8/b8ff6dbc-3d3c-4cc3-a0a8-6676881396a9.png",\n\n entry: "http://localhost:7103",\n\n },\n\n ],\n\n // 注册浮窗\n\n widgets: [\n\n {\n\n comp: WidgetExample1,\n\n name: "浮窗例子11",\n\n id: "w_1",\n\n }, {\n\n comp: WidgetExample2,\n\n name: "浮窗例子22",\n\n id: "w_2",\n\n }, {\n\n comp: WidgetExample3,\n\n name: "浮窗例子33",\n\n id: "w_3",\n\n }, {\n\n comp: WidgetExample4,\n\n name: "浮窗例子44",\n\n id: "w_4",\n\n }\n\n ]\n\n})\n')])]),t("h4",{attrs:{id:"kuang-jia-api-tis"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#kuang-jia-api-tis"}},[e._v("¶")]),e._v(" 框架API($tis)")]),t("p",[e._v("框架启动后,会自动将所有API注入到Vue.prototype.$tis上,所以在所有的Vue组件实例中,都可以通过this.$tis访问到,具体API说明如下:")]),t("h4",{attrs:{id:"layouts"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#layouts"}},[e._v("¶")]),e._v(" layouts")]),t("p",[e._v("layouts是个对象,上面可以访问到所有在src/main.js中setup时注册所有layouts组件:StatusBar,SiderMenu,NavBar,AppBar,WidgetsPanel,WidgetsView,Widget,AppView")]),t("h4",{attrs:{id:"getglobalstate-k"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#getglobalstate-k"}},[e._v("¶")]),e._v(" getGlobalState(k)")]),t("p",[e._v("获取全局变量,k是字符串类型,是区分变量的唯一标识符")]),t("h4",{attrs:{id:"setglobalstate-k-v"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#setglobalstate-k-v"}},[e._v("¶")]),e._v(" setGlobalState(k, v)")]),t("p",[e._v("设置全局变量,k是字符串类型,是区分变量的唯一标识符,v是变量值,可以是任意类型")]),t("h4",{attrs:{id:"getapps"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#getapps"}},[e._v("¶")]),e._v(" getApps()")]),t("p",[e._v("获取所有已注册的应用,返回值是一个数组,数组每项是个对象,属性如下:")]),t("ul",[t("li",[e._v("id: 字符串类型。应用唯一ID")]),t("li",[e._v("name:字符串类型,应用名称")]),t("li",[e._v("icon:字符串类型,应用图标")]),t("li",[e._v("entry:字符串类型,应用入口URL")]),t("li",[e._v("default:布尔类型,是否是默认应用")]),t("li",[e._v("opened:布尔类型,是否当前打开了")])]),t("h4",{attrs:{id:"openapp-appid-params"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#openapp-appid-params"}},[e._v("¶")]),e._v(" openApp(appId, params)")]),t("p",[e._v("根据应用唯一ID,打开显示某应用")]),t("ul",[t("li",[e._v("appId: 字符串类型,应用唯一ID")]),t("li",[e._v("params: 任意类型,传入的参数,会在应用的bootstrap生命周期接收到")])]),t("h4",{attrs:{id:"getcurrentapp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#getcurrentapp"}},[e._v("¶")]),e._v(" getCurrentApp()")]),t("p",[e._v("获取当前打开激活的应用,返回值是一个对象,属性如下:")]),t("ul",[t("li",[e._v("id: 字符串类型。应用唯一ID")]),t("li",[e._v("name:字符串类型,应用名称")]),t("li",[e._v("icon:字符串类型,应用图标")]),t("li",[e._v("entry:字符串类型,应用入口URL")]),t("li",[e._v("default:布尔类型,是否是默认应用")]),t("li",[e._v("opened:布尔类型,是否当前打开了(此时一定是true)")])]),t("h4",{attrs:{id:"closecurrentapp"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#closecurrentapp"}},[e._v("¶")]),e._v(" closeCurrentApp()")]),t("p",[e._v("关闭当前已打开的应用")]),t("h4",{attrs:{id:"getwidgets"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#getwidgets"}},[e._v("¶")]),e._v(" getWidgets()")]),t("p",[e._v("获取所有已注册的浮窗,返回值是一个数组,数组每项是个对象,属性如下:")]),t("ul",[t("li",[e._v("id: 字符串类型。组件唯一ID")]),t("li",[e._v("name:字符串类型,组件名称")]),t("li",[e._v("opened:布尔类型,是否当前已打开")]),t("li",[e._v("comp: Vue Component类型,浮窗组件")])]),t("h4",{attrs:{id:"getopenedwidgets"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#getopenedwidgets"}},[e._v("¶")]),e._v(" getOpenedWidgets()")]),t("p",[e._v("获取所有已打开的浮窗,返回值是一个数组,数组每项是个对象,属性同上")]),t("h4",{attrs:{id:"openwidget-widgetid-params"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#openwidget-widgetid-params"}},[e._v("¶")]),e._v(" openWidget(widgetId, params)")]),t("p",[e._v("根据浮窗唯一ID,打开显示某浮窗")]),t("ul",[t("li",[e._v("widgetId: 字符串类型,浮窗唯一ID")]),t("li",[e._v("params: 任意类型,传入的参数,会当作浮窗的props传入给浮窗组件")])]),t("h4",{attrs:{id:"closewidget-widgetid"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#closewidget-widgetid"}},[e._v("¶")]),e._v(" closeWidget(widgetId)")]),t("p",[e._v("根据浮窗唯一ID,关闭某浮窗")]),t("h4",{attrs:{id:"bus"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bus"}},[e._v("¶")]),e._v(" bus")]),t("p",[e._v("bus是个事件总线对象,可实现发布-订阅模式。")]),t("p",[e._v("原理:本质上bus是一个Vue的实例,借助Vue自带的事件机制,可以方便的实现事件总线。")]),t("h5",{attrs:{id:"bus-emit-eventname-args"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bus-emit-eventname-args"}},[e._v("¶")]),e._v(" bus.$emit( eventName, […args] )")]),t("ul",[t("li",[t("p",[e._v("参数")]),t("p",[e._v(":")]),t("ul",[t("li",[e._v("{string} eventName")]),t("li",[e._v("[...args]")])])])]),t("p",[e._v("触发事件。附加参数都会传给监听器回调。")]),t("ul",[t("li",[t("strong",[e._v("示例:")])])]),t("pre",[t("code",{staticClass:"language-javascript"},[e._v("// 只配合一个事件名使用 $emit:\n\nthis.$emit('welcome')\n\n// 配合额外的参数使用 $emit:\n\n this.$emit('welcome', ['Mike','Alice'])\n")])]),t("h5",{attrs:{id:"bus-on-event-callback"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bus-on-event-callback"}},[e._v("¶")]),e._v(" bus.$on( event, callback )")]),t("ul",[t("li",[t("p",[e._v("参数")]),t("p",[e._v(":")]),t("ul",[t("li",[e._v("{string | Array<string>} event")]),t("li",[e._v("{Function} callback")])])]),t("li",[t("p",[t("strong",[e._v("用法")]),e._v(":")])])]),t("p",[e._v("监听事件总线上的事件。事件可以由 this.tis.$emit 触发。回调函数会接收所有传入事件触发函数的额外参数。")]),t("ul",[t("li",[t("strong",[e._v("示例")]),e._v(":")])]),t("pre",[t("code",{staticClass:"language-javascript"},[e._v("this.$tis.bus.$on('test', function (msg) {\n\n console.log(msg)\n\n})\n\nthis.$tis.bus.$emit('test', 'hi')\n\n// => \"hi\"\n")])]),t("h5",{attrs:{id:"bus-once-event-callback"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bus-once-event-callback"}},[e._v("¶")]),e._v(" bus.$once( event, callback )")]),t("ul",[t("li",[t("p",[e._v("参数")]),t("p",[e._v(":")]),t("ul",[t("li",[e._v("{string} event")]),t("li",[e._v("{Function} callback")])])]),t("li",[t("p",[t("strong",[e._v("用法")]),e._v(":")])])]),t("p",[e._v("监听一个事件,但是只触发一次。一旦触发之后,监听器就会被移除。")]),t("h5",{attrs:{id:"bus-off-event-callback"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bus-off-event-callback"}},[e._v("¶")]),e._v(" bus.$off( [event, callback] )")]),t("ul",[t("li",[t("p",[e._v("参数")]),t("p",[e._v(":")]),t("ul",[t("li",[e._v("{string | Array<string>} event")]),t("li",[e._v("{Function} [callback]")])])]),t("li",[t("p",[t("strong",[e._v("用法")]),e._v(":")])])]),t("p",[e._v("移除事件监听器。")]),t("ul",[t("li",[e._v("如果没有提供参数,则移除所有的事件监听器;")]),t("li",[e._v("如果只提供了事件,则移除该事件所有的监听器;")]),t("li",[e._v("如果同时提供了事件与回调,则只移除这个回调的监听器。")])]),t("h2",{attrs:{id:"er-ying-yong"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#er-ying-yong"}},[e._v("¶")]),e._v(" 二、应用")]),t("h3",{attrs:{id:"ying-yong-jie-shao"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ying-yong-jie-shao"}},[e._v("¶")]),e._v(" 应用介绍")]),t("p",[e._v("每个应用可以理解为是一个Vue的CSR的SPA的Web页面,我们会提供一个应用模版,每次开发新应用时,直接git clone这个模版,然后在此基础上开发即可。应用模版里已经集成了TIS SDK 和 UI组件库,可以直接使用。")]),t("pre",[t("code",{staticClass:"language-shell"},[e._v("# 下载应用模版\n\ngit clone 应用模版地址\n\n\n\n# 安装依赖\n\nyarn install \n\n\n\n# 启动开发模式\n\nyarn serve\n\n\n\n# 编码\n\n\n\n# 打包\n\nyarn build\n")])]),t("h3",{attrs:{id:"ying-yong-de-sheng-ming-zhou-qi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ying-yong-de-sheng-ming-zhou-qi"}},[e._v("¶")]),e._v(" 应用的生命周期")]),t("h4",{attrs:{id:"bootstrap"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bootstrap"}},[e._v("¶")]),e._v(" bootstrap")]),t("p",[e._v("bootstrap 只会在应用初始化的时候调用一次,下次微应用重新进入时会直接调用 mount 钩子,不会再重复触发 bootstrap。通常我们可以在这里做一些全局变量的初始化,比如不会在 unmount 阶段被销毁的应用级别的缓存等。")]),t("h4",{attrs:{id:"mount"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#mount"}},[e._v("¶")]),e._v(" mount")]),t("p",[e._v("应用每次进入都会调用 mount 方法,此时TIS SDK会自动加载渲染应用")]),t("h4",{attrs:{id:"unmount"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#unmount"}},[e._v("¶")]),e._v(" unmount")]),t("p",[e._v("应用每次 切出/卸载 会调用的方法,此时TIS SDK会卸载应用的整个DOM(应用停止渲染)")]),t("h3",{attrs:{id:"zai-kuang-jia-zhong-zhu-ce-ying-yong"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zai-kuang-jia-zhong-zhu-ce-ying-yong"}},[e._v("¶")]),e._v(" 在框架中注册应用")]),t("p",[e._v("在主框架中,每个应用由一个JSON结构描述,这个JSON中含有四个字段,分别是:id、name、icon、entry")]),t("h4",{attrs:{id:"id-ying-yong-wei-yi-biao-shi-fu-zi-fu-chuan-lei-xing"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#id-ying-yong-wei-yi-biao-shi-fu-zi-fu-chuan-lei-xing"}},[e._v("¶")]),e._v(" id:应用唯一标识符,字符串类型")]),t("p",[e._v("应用的唯一标识符,可以"),t("em",[e._v("由英文")]),e._v("字母、阿拉伯数字、下划线构成,长度在1-64个字符之间,这个字段对用户不可见,只用于内部区分应用。")]),t("h4",{attrs:{id:"name-ying-yong-ming-cheng-zi-fu-chuan-lei-xing"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#name-ying-yong-ming-cheng-zi-fu-chuan-lei-xing"}},[e._v("¶")]),e._v(" name:应用名称,字符串类型")]),t("p",[e._v("应用名称,可以由任意字符组成,长度在1到16个字符之间,用于在界面中显示应用名称,这个字段可以重复,但不建议这样做。")]),t("h4",{attrs:{id:"icon-ying-yong-tu-biao-tu-pian-di-zhi-url-lei-xing"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#icon-ying-yong-tu-biao-tu-pian-di-zhi-url-lei-xing"}},[e._v("¶")]),e._v(" icon:应用图标,图片地址URL类型")]),t("p",[e._v("应用图标,用于在界面中显示应用自己的图标")]),t("h4",{attrs:{id:"entry-ying-yong-ru-kou-url"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#entry-ying-yong-ru-kou-url"}},[e._v("¶")]),e._v(" entry: 应用入口,URL")]),t("p",[e._v("表示应用的访问地址,例如 http://localhost:7101/")]),t("pre",[t("code",{staticClass:"language-json"},[e._v(' {\n\n id: "app_1", // 应用唯一id\n\n name: "移动指挥", // 应用名称\n\n icon: "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-04b48fc3-2230-456c-afbc-662ca76d81a8/f0ee65c0-4f21-484d-b9e7-3b411e318c5c.png",\n\n entry: "http://localhost:7101",\n\n }\n')])]),t("h3",{attrs:{id:"zai-ying-yong-zhong-shi-yong-kuang-jia-api-tis"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zai-ying-yong-zhong-shi-yong-kuang-jia-api-tis"}},[e._v("¶")]),e._v(" 在应用中使用框架API($tis)")]),t("p",[e._v("从框架中加载打开的应用,TIS的SDK都会自动将框架中的API对象即$tis,自动注入到应用中,并且也会挂载到Vue.prototype.$tis上,因此在应用中也可以像在框架中一样,使用框架提供的所有API")]),t("h2",{attrs:{id:"san-fu-chuang-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#san-fu-chuang-zu-jian"}},[e._v("¶")]),e._v(" 三、浮窗组件")]),t("h3",{attrs:{id:"fu-chuang-zu-jian-jie-shao"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#fu-chuang-zu-jian-jie-shao"}},[e._v("¶")]),e._v(" 浮窗组件介绍")]),t("p",[e._v("浮窗组件是一个Vue Componet组件,它们只会显示在应用的浮窗视图(WidgetsView)当中,悬浮于应用视图(AppView)上方,方便用户快捷查看/操作的行为。")]),t("h3",{attrs:{id:"ru-he-kai-fa-fu-chuang-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ru-he-kai-fa-fu-chuang-zu-jian"}},[e._v("¶")]),e._v(" 如何开发浮窗组件")]),t("p",[e._v("浮窗组件是标准的Vue的Component,开发方式与开发Vue Component一样,只要遵循Vue Component开发规范即可。")]),t("p",[e._v("除此之外,浮窗组件是运行在框架中,因此浮窗组件实例vm(即组件中的this),是可以访问到$tis对象,所以浮窗组件可以调用$tis的所有API。")]),t("p",[e._v("例子:在默认项目中 src/widgets/widget-example-1.vue 文件是一个组件示例,代码如下:")]),t("pre",[t("code",{staticClass:"language-html"},[e._v('<template>\n\n <div class="widget">\n\n <div>Widget Exmaple 1</div>\n\n <el-button @click="onClick">利用事件总线,发送消息</el-button>\n\n </div>\n\n</template>\n\n\n\n<script>\n\nexport default {\n\n props: {\n\n params: Object,\n\n },\n\n created() {\n\n console.log("浮窗组件接收到的打开参数为", this.params);\n\n },\n\n methods: {\n\n onClick() {\n\n this.$tis.bus.$emit("msg", {\n\n title: "你好啊,这是一条浮窗组件Example 1发来的消息",\n\n });\n\n },\n\n },\n\n};\n\n<\/script>\n\n\n\n<style lang="scss" scoped>\n\n.widget {\n\n background: #5bb5b6;\n\n text-align: center;\n\n width: 300px;\n\n height: 150px;\n\n display: flex;\n\n flex-direction: column;\n\n align-items: center;\n\n justify-content: center;\n\n}\n\n</style>\n')])]),t("h3",{attrs:{id:"fu-chuang-de-sheng-ming-zhou-qi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#fu-chuang-de-sheng-ming-zhou-qi"}},[e._v("¶")]),e._v(" 浮窗的生命周期")]),t("p",[e._v("因为浮窗本质上就是一个Vue Component,所以它的生命周期与Vue Component的生命周期一模一样,拥有的生命周期钩子函数有:"),t("a",{attrs:{href:"https://cn.vuejs.org/v2/api/#beforeCreate"}},[e._v("beforeCreate")]),e._v(","),t("a",{attrs:{href:"https://cn.vuejs.org/v2/api/#created"}},[e._v("created")]),e._v(","),t("a",{attrs:{href:"https://cn.vuejs.org/v2/api/#beforeMount"}},[e._v("beforeMount")]),e._v(","),t("a",{attrs:{href:"https://cn.vuejs.org/v2/api/#mounted"}},[e._v("mounted")]),e._v(","),t("a",{attrs:{href:"https://cn.vuejs.org/v2/api/#beforeUpdate"}},[e._v("beforeUpdate")]),e._v(","),t("a",{attrs:{href:"https://cn.vuejs.org/v2/api/#updated"}},[e._v("updated")]),e._v(","),t("a",{attrs:{href:"https://cn.vuejs.org/v2/api/#activated"}},[e._v("activated")]),e._v(","),t("a",{attrs:{href:"https://cn.vuejs.org/v2/api/#deactivated"}},[e._v("deactivated")]),e._v(","),t("a",{attrs:{href:"https://cn.vuejs.org/v2/api/#beforeDestroy"}},[e._v("beforeDestroy")]),e._v(","),t("a",{attrs:{href:"https://cn.vuejs.org/v2/api/#destroyed"}},[e._v("destroyed")])]),t("p",[e._v("详细介绍于使用请参见Vue官方文档:"),t("a",{attrs:{href:"https://cn.vuejs.org/v2/api/#%E9%80%89%E9%A1%B9-%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F%E9%92%A9%E5%AD%90"}},[e._v("API — Vue.js")])]),t("h3",{attrs:{id:"fu-chuang-de-da-kai-yu-guan-bi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#fu-chuang-de-da-kai-yu-guan-bi"}},[e._v("¶")]),e._v(" 浮窗的打开与关闭")]),t("p",[e._v("在框架默认布局中,点击应用控制栏(AppBar)中右侧三个点的按钮,即可唤起浮窗列表(WidgetsPanel)视图,然后勾选上你需要显示的浮窗,点击右上角“确定”即可,然后被勾选的所有”浮窗“就会在框架的浮窗视图(WidgetsView)中一直显示。")]),t("p",[e._v("如果需要关闭,有两种方式:")]),t("ol",[t("li",[e._v("直接在浮窗视图中(WidgetView)中,对当前显示的浮窗,点击它的右上角关闭即可。")]),t("li",[e._v("在浮窗列表视图中,把不需要展示的浮窗,进行取消勾选即可。")])])])}],r=n(0),i=Object(r.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},i,!1,null,null,null);t.default=i.exports},function(e,t,n){"use strict";n.r(t);n=n(0),n=Object(n.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,e=this._self._c||e;return e("section",{staticClass:"content element-doc"},[e("h2",{attrs:{id:"tis-app"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#tis-app"}},[this._v("¶")]),this._v(" tis-app")]),e("p",[this._v("tis-app 是一个使用 Vue.js 开发所有tis应用的框架,开发者使用此框架编写代码,构建打包,即可生成符合tis平台规范的应用,可嵌入运行在tis平台中。")])])}],!1,null,null,null),t.default=n.exports},function(e,t){e.exports=VueRouter},function(e,t,n){var i=n(59),n=n(32);e.exports={throttle:i,debounce:n}},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var o=i(n(34)),i=n(9),a=n(37),s=n(86),n=(0,i.createNamespace)("cell-group"),i=n[0],l=n[1];function r(e,t,n,i){var r,i=e("div",(0,o.default)([{class:[l(),((r={})[s.BORDER_TOP_BOTTOM]=t.border,r)]},(0,a.inherit)(i,!0)]),[null==n.default?void 0:n.default()]);return t.title||n.title?e("div",[e("div",{class:l("title")},[n.title?n.title():t.title]),i]):i}r.props={title:String,border:{type:Boolean,default:!0}};i=i(r);t.default=i},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var o=n(231),r=n(798),c=n(63),a=n(232),s=i(n(112)),l=i(n(172)),u=i(n(802)),h=i(n(805)),d=i(n(807)),r=(0,a.createComponent)({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:r.isDate,default:function(){return new Date}},maxDate:{type:Date,validator:r.isDate,default:function(){var e=new Date;return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(e){return 0<=e&&e<=6}}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var e=[],t=new Date(this.minDate);for(t.setDate(1);e.push(new Date(t)),t.setMonth(t.getMonth()+1),1!==(0,a.compareMonth)(t,this.maxDate););return e},buttonDisabled:function(){var e=this.type,t=this.currentDate;if(t){if("range"===e)return!t[0]||!t[1];if("multiple"===e)return!t.length}return!t},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{type:"reset",value:"init",defaultDate:function(e){this.currentDate=e,this.scrollIntoView()}},mounted:function(){this.init()},activated:function(){this.init()},methods:{reset:function(){this.currentDate=this.getInitialDate(),this.scrollIntoView()},init:function(){var e=this;this.poppable&&!this.value||this.$nextTick(function(){e.bodyHeight=Math.floor(e.$refs.body.getBoundingClientRect().height),e.onScroll(),e.scrollIntoView()})},scrollToDate:function(i){var r=this;(0,o.raf)(function(){var e=r.value||!r.poppable;i&&e&&r.months.some(function(e,t){if(0!==(0,a.compareMonth)(e,i))return!1;var n=r.$refs,e=n.body;return n.months[t].scrollIntoView(e),!0})})},scrollIntoView:function(){var e=this.currentDate;e&&(e="single"===this.type?e:e[0],this.scrollToDate(e))},getInitialDate:function(){var e=this.type,t=this.minDate,n=this.maxDate,i=this.defaultDate;if(null===i)return i;var r=new Date;if(-1===(0,a.compareDay)(r,t)?r=t:1===(0,a.compareDay)(r,n)&&(r=n),"range"!==e)return"multiple"===e?i||[r]:i||r;i=i||[];return[i[0]||r,i[1]||(0,a.getNextDay)(r)]},onScroll:function(){var e=this.$refs,t=e.body,n=e.months,i=(0,c.getScrollTop)(t),r=i+this.bodyHeight,o=n.map(function(e){return e.getHeight()});if(!(o.reduce(function(e,t){return e+t},0)<r&&0<i)){for(var a,s=0,l=[-1,-1],u=0;u<n.length;u++)s<=r&&s+o[u]>=i&&(l[1]=u,a||(a=n[u],l[0]=u),n[u].showed||(n[u].showed=!0,this.$emit("month-show",{date:n[u].date,title:n[u].title}))),s+=o[u];n.forEach(function(e,t){e.visible=t>=l[0]-1&&t<=l[1]+1}),a&&(this.subtitle=a.title)}},onClickDay:function(e){var n,t,i,r,o;this.readonly||(n=e.date,o=this.type,t=this.currentDate,"range"===o?t?(i=t[0],e=t[1],i&&!e?1===(e=(0,a.compareDay)(n,i))?this.select([i,n],!0):-1===e?this.select([n,null]):this.allowSameDay&&this.select([n,n],!0):this.select([n,null])):this.select([n,null]):"multiple"===o?t?this.currentDate.some(function(e,t){e=0===(0,a.compareDay)(e,n);return e&&(r=t),e})?(o=t.splice(r,1)[0],this.$emit("unselect",(0,a.copyDate)(o))):this.maxRange&&t.length>=this.maxRange?(0,u.default)(this.rangePrompt||(0,a.t)("rangePrompt",this.maxRange)):this.select([].concat(t,[n])):this.select([n]):this.select(n,!0))},togglePopup:function(e){this.$emit("input",e)},select:function(e,t){function n(e){i.currentDate=e,i.$emit("select",(0,a.copyDates)(i.currentDate))}var i=this;if(t&&"range"===this.type&&!this.checkRange(e))return void(this.showConfirm?n([e[0],(0,a.getDayByOffset)(e[0],this.maxRange-1)]):n(e));n(e),t&&!this.showConfirm&&this.onConfirm()},checkRange:function(e){var t=this.maxRange,n=this.rangePrompt;return!(t&&(0,a.calcDateNum)(e)>t)||((0,u.default)(n||(0,a.t)("rangePrompt",t)),!1)},onConfirm:function(){this.$emit("confirm",(0,a.copyDates)(this.currentDate))},genMonth:function(e,t){var n=this.$createElement,t=0!==t||!this.showSubtitle;return n(h.default,{ref:"months",refInFor:!0,attrs:{date:e,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:t,firstDayOfWeek:this.dayOffset},on:{click:this.onClickDay}})},genFooterContent:function(){var e=this.$createElement,t=this.slots("footer");if(t)return t;if(this.showConfirm){t=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return e(l.default,{attrs:{round:!0,block:!0,type:"danger",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:(0,a.bem)("confirm"),on:{click:this.onConfirm}},[t||(0,a.t)("confirm")])}},genFooter:function(){return(0,this.$createElement)("div",{class:(0,a.bem)("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var e=this,t=this.$createElement;return t("div",{class:(0,a.bem)()},[t(d.default,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return e.slots("title")}}}),t("div",{ref:"body",class:(0,a.bem)("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var t=this;if(this.poppable){var e,n=function(e){return function(){return t.$emit(e)}};return(0,arguments[0])(s.default,{attrs:((e={round:!0,value:this.value}).round=this.round,e.position=this.position,e.closeable=this.showTitle||this.showSubtitle,e.getContainer=this.getContainer,e.closeOnPopstate=this.closeOnPopstate,e.closeOnClickOverlay=this.closeOnClickOverlay,e),class:(0,a.bem)("popup"),on:{input:this.togglePopup,open:n("open"),opened:n("opened"),close:n("close"),closed:n("closed")}},[this.genCalendar()])}return this.genCalendar()}});t.default=r},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=n(9),o=i(n(813)),a=i(n(814)),s=i(n(48)),n=(0,r.createNamespace)("cascader"),r=n[0],l=n[1],u=n[2],r=r({props:{title:String,value:[Number,String],placeholder:String,activeColor:String,options:{type:Array,default:function(){return[]}},closeable:{type:Boolean,default:!0}},data:function(){return{tabs:[],activeTab:0}},watch:{options:{deep:!0,handler:"updateTabs"},value:function(e){if((e||0===e)&&-1!==this.tabs.map(function(e){return null==(e=e.selectedOption)?void 0:e.value}).indexOf(e))return;this.updateTabs()}},created:function(){this.updateTabs()},methods:{getSelectedOptionsByValue:function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.value===t)return[i];if(i.children){var r=this.getSelectedOptionsByValue(i.children,t);if(r)return[i].concat(r)}}},updateTabs:function(){var e=this;if(this.value||0===this.value){var t=this.getSelectedOptionsByValue(this.options,this.value);if(t){var i=this.options;return this.tabs=t.map(function(t){var e={options:i,selectedOption:t},n=i.filter(function(e){return e.value===t.value});return n.length&&(i=n[0].children),e}),i&&this.tabs.push({options:i,selectedOption:null}),void this.$nextTick(function(){e.activeTab=e.tabs.length-1})}}this.tabs=[{options:this.options,selectedOption:null}]},onSelect:function(e,t){var n=this;this.tabs[t].selectedOption=e,this.tabs.length>t+1&&(this.tabs=this.tabs.slice(0,t+1)),e.children&&(i={options:e.children,selectedOption:null},this.tabs[t+1]?this.$set(this.tabs,t+1,i):this.tabs.push(i),this.$nextTick(function(){n.activeTab++}));var i=this.tabs.map(function(e){return e.selectedOption}).filter(function(e){return!!e}),i={value:e.value,tabIndex:t,selectedOptions:i};this.$emit("input",e.value),this.$emit("change",i),e.children||this.$emit("finish",i)},onClose:function(){this.$emit("close")},renderHeader:function(){var e=this.$createElement;return e("div",{class:l("header")},[e("h2",{class:l("title")},[this.slots("title")||this.title]),this.closeable?e(s.default,{attrs:{name:"cross"},class:l("close-icon"),on:{click:this.onClose}}):null])},renderOptions:function(e,n,i){var r=this,o=this.$createElement;return o("ul",{class:l("options")},[e.map(function(e){var t=n&&e.value===n.value;return o("li",{class:l("option",{selected:t}),style:{color:t?r.activeColor:null},on:{click:function(){r.onSelect(e,i)}}},[o("span",[e.text]),t?o(s.default,{attrs:{name:"success"},class:l("selected-icon")}):null])})])},renderTab:function(e,t){var n=this.$createElement,i=e.options,r=e.selectedOption,e=r?r.text:this.placeholder||u("select");return n(o.default,{attrs:{title:e,titleClass:l("tab",{unselected:!r})}},[this.renderOptions(i,r,t)])},renderTabs:function(){var t=this;return(0,this.$createElement)(a.default,{attrs:{animated:!0,swipeable:!0,swipeThreshold:0,color:this.activeColor},class:l("tabs"),model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[this.tabs.map(this.renderTab)])}},render:function(){return(0,arguments[0])("div",{class:l()},[this.renderHeader(),this.renderTabs()])}});t.default=r},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var s=i(n(34)),l=i(n(36)),r=n(822),o=n(235),a=n(40),u=n(9),c=i(n(48)),h=i(n(173)),d=n(398),i=(0,u.createNamespace)("field"),n=i[0],p=i[1],d=n({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:(0,l.default)({},d.cellProps,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var e=this.getProp("readonly");if(this.clearable&&!e){var t=(0,u.isDef)(this.value)&&""!==this.value,e="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return t&&e}},showError:function(){return null!==this.error?this.error:!!(this.vanForm&&this.vanForm.showError&&this.validateFailed)||void 0},listeners:function(){return(0,l.default)({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var e=this.getProp("labelWidth");if(e)return{width:(0,u.addUnit)(e)}},formValue:function(){return(this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children:this).value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(n,i){return new Promise(function(e){var t=i.validator(n,i);if((0,u.isPromise)(t))return t.then(e);e(t)})},isEmptyValue:function(e){return Array.isArray(e)?!e.length:0!==e&&!e},runSyncRule:function(e,t){return(!t.required||!this.isEmptyValue(e))&&!(t.pattern&&!t.pattern.test(e))},getRuleMessage:function(e,t){var n=t.message;return(0,u.isFunction)(n)?n(e,t):n},runRules:function(e){var i=this;return e.reduce(function(e,n){return e.then(function(){if(!i.validateFailed){var t=i.formValue;return n.formatter&&(t=n.formatter(t,n)),i.runSyncRule(t,n)?n.validator?i.runValidator(t,n).then(function(e){!1===e&&(i.validateFailed=!0,i.validateMessage=i.getRuleMessage(t,n))}):void 0:(i.validateFailed=!0,void(i.validateMessage=i.getRuleMessage(t,n)))}})},Promise.resolve())},validate:function(t){var n=this;return void 0===t&&(t=this.rules),new Promise(function(e){t||e(),n.resetValidation(),n.runRules(t).then(function(){n.validateFailed?e({name:n.name,message:n.validateMessage}):e()})})},validateWithTrigger:function(t){var n,e;this.vanForm&&this.rules&&(n=this.vanForm.validateTrigger===t,e=this.rules.filter(function(e){return e.trigger?e.trigger===t:n}),this.validate(e))},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(e,t){void 0===t&&(t="onChange"),e=(0,u.isDef)(e)?String(e):"";var n=this.maxlength;(0,u.isDef)(n)&&e.length>n&&(e=this.value&&this.value.length===+n?this.value:e.slice(0,n)),"number"!==this.type&&"digit"!==this.type||(n="number"===this.type,e=(0,o.formatNumber)(e,n,n)),this.formatter&&t===this.formatTrigger&&(e=this.formatter(e));t=this.$refs.input;t&&e!==t.value&&(t.value=e),e!==this.value&&this.$emit("input",e)},onInput:function(e){e.target.composing||this.updateValue(e.target.value)},onFocus:function(e){this.focused=!0,this.$emit("focus",e),this.getProp("readonly")&&this.blur()},onBlur:function(e){this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",e),this.validateWithTrigger("onBlur"),(0,r.resetScroll)()},onClick:function(e){this.$emit("click",e)},onClickInput:function(e){this.$emit("click-input",e)},onClickLeftIcon:function(e){this.$emit("click-left-icon",e)},onClickRightIcon:function(e){this.$emit("click-right-icon",e)},onClear:function(e){(0,a.preventDefault)(e),this.$emit("input",""),this.$emit("clear",e)},onKeypress:function(e){13===e.keyCode&&(this.getProp("submitOnEnter")||"textarea"===this.type||(0,a.preventDefault)(e),"search"===this.type&&this.blur()),this.$emit("keypress",e)},adjustSize:function(){var e,t,n,i=this.$refs.input;"textarea"===this.type&&this.autosize&&i&&(i.style.height="auto",e=i.scrollHeight,(0,u.isObject)(this.autosize)&&(t=(n=this.autosize).maxHeight,n=n.minHeight,t&&(e=Math.min(e,t)),n&&(e=Math.max(e,n))),e&&(i.style.height=e+"px"))},genInput:function(){var e=this.$createElement,t=this.type,n=this.getProp("disabled"),i=this.getProp("readonly"),r=this.slots("input"),o=this.getProp("inputAlign");if(r)return e("div",{class:p("control",[o,"custom"]),on:{click:this.onClickInput}},[r]);n={ref:"input",class:p("control",o),domProps:{value:this.value},attrs:(0,l.default)({},this.$attrs,{name:this.name,disabled:n,readonly:i,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===t)return e("textarea",(0,s.default)([{},n]));var a,i=t;return"number"===t&&(i="text",a="decimal"),"digit"===t&&(i="tel",a="numeric"),e("input",(0,s.default)([{attrs:{type:i,inputmode:a}},n]))},genLeftIcon:function(){var e=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return e("div",{class:p("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||e(c.default,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var e=this.$createElement,t=this.slots;if(t("right-icon")||this.rightIcon)return e("div",{class:p("right-icon"),on:{click:this.onClickRightIcon}},[t("right-icon")||e(c.default,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var e=this.$createElement;if(this.showWordLimit&&this.maxlength){var t=(this.value||"").length;return e("div",{class:p("word-limit")},[e("span",{class:p("word-num")},[t]),"/",this.maxlength])}},genMessage:function(){var e=this.$createElement;if(!this.vanForm||!1!==this.vanForm.showErrorMessage){var t=this.errorMessage||this.validateMessage;if(t){var n=this.getProp("errorMessageAlign");return e("div",{class:p("error-message",n)},[t])}}},getProp:function(e){return(0,u.isDef)(this[e])?this[e]:this.vanForm&&(0,u.isDef)(this.vanForm[e])?this.vanForm[e]:void 0},genLabel:function(){var e=this.$createElement,t=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),t]:this.label?e("span",[this.label+t]):void 0}},render:function(){var e=arguments[0],t=this.slots,n=this.getProp("disabled"),i=this.getProp("labelAlign"),r={icon:this.genLeftIcon},o=this.genLabel();o&&(r.title=function(){return o});var a=this.slots("extra");return a&&(r.extra=function(){return a}),e(h.default,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:p("value"),titleClass:[p("label",i),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:r,class:p(((n={error:this.showError,disabled:n})["label-"+i]=i,n["min-height"]="textarea"===this.type&&!this.autosize,n)),on:{click:this.onClick}},[e("div",{class:p("body")},[this.genInput(),this.showClear&&e(c.default,{attrs:{name:"clear"},class:p("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),t("button")&&e("div",{class:p("button")},[t("button")])]),this.genWordLimit(),this.genMessage()])}});t.default=d},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(36)),o=n(9),a=n(40),s=n(86),l=n(827),u=n(164),c=i(n(107)),h=i(n(828)),n=(0,o.createNamespace)("picker"),o=n[0],d=n[1],p=n[2],r=o({props:(0,r.default)({},l.pickerProps,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?(0,u.unitToPx)(this.itemHeight):l.DEFAULT_ITEM_HEIGHT},dataType:function(){var e=this.columns[0]||{};return e.children?"cascade":e.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var e=this.columns,t=this.dataType;"text"===t?this.formattedColumns=[{values:e}]:"cascade"===t?this.formatCascade():this.formattedColumns=e},formatCascade:function(){for(var e=[],t={children:this.columns};t&&t.children;){for(var n,i=t.children,r=null!=(n=t.defaultIndex)?n:+this.defaultIndex;i[r]&&i[r].disabled;){if(!(r<i.length-1)){r=0;break}r++}e.push({values:t.children,className:t.className,defaultIndex:r}),t=i[r]}this.formattedColumns=e},emit:function(e){var t,n=this;"text"===this.dataType?this.$emit(e,this.getColumnValue(0),this.getColumnIndex(0)):(t=this.getValues(),"cascade"===this.dataType&&(t=t.map(function(e){return e[n.valueKey]})),this.$emit(e,t,this.getIndexes()))},onCascadeChange:function(e){for(var t={children:this.columns},n=this.getIndexes(),i=0;i<=e;i++)t=t.children[n[i]];for(;t&&t.children;)this.setColumnValues(++e,t.children),t=t.children[t.defaultIndex||0]},onChange:function(e){var t,n=this;"cascade"===this.dataType&&this.onCascadeChange(e),"text"===this.dataType?this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0)):(t=this.getValues(),"cascade"===this.dataType&&(t=t.map(function(e){return e[n.valueKey]})),this.$emit("change",this,t,e))},getColumn:function(e){return this.children[e]},getColumnValue:function(e){e=this.getColumn(e);return e&&e.getValue()},setColumnValue:function(e,t){var n=this.getColumn(e);n&&(n.setValue(t),"cascade"===this.dataType&&this.onCascadeChange(e))},getColumnIndex:function(e){return(this.getColumn(e)||{}).currentIndex},setColumnIndex:function(e,t){var n=this.getColumn(e);n&&(n.setIndex(t),"cascade"===this.dataType&&this.onCascadeChange(e))},getColumnValues:function(e){return(this.children[e]||{}).options},setColumnValues:function(e,t){e=this.children[e];e&&e.setOptions(t)},getValues:function(){return this.children.map(function(e){return e.getValue()})},setValues:function(e){var n=this;e.forEach(function(e,t){n.setColumnValue(t,e)})},getIndexes:function(){return this.children.map(function(e){return e.currentIndex})},setIndexes:function(e){var n=this;e.forEach(function(e,t){n.setColumnIndex(t,e)})},confirm:function(){this.children.forEach(function(e){return e.stopMomentum()}),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var e=this.$createElement,t=this.slots("title");return t||(this.title?e("div",{class:["van-ellipsis",d("title")]},[this.title]):void 0)},genCancel:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:d("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||p("cancel")])},genConfirm:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:d("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||p("confirm")])},genToolbar:function(){var e=this.$createElement;if(this.showToolbar)return e("div",{class:d("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genColumns:function(){var e=this.$createElement,t=this.itemPxHeight,n=t*this.visibleItemCount,i={height:t+"px"},r={height:n+"px"},t={backgroundSize:"100% "+(n-t)/2+"px"};return e("div",{class:d("columns"),style:r,on:{touchmove:a.preventDefault}},[this.genColumnItems(),e("div",{class:d("mask"),style:t}),e("div",{class:[s.BORDER_UNSET_TOP_BOTTOM,d("frame")],style:i})])},genColumnItems:function(){var i=this,r=this.$createElement;return this.formattedColumns.map(function(e,t){var n;return r(h.default,{attrs:{readonly:i.readonly,valueKey:i.valueKey,allowHtml:i.allowHtml,className:e.className,itemHeight:i.itemPxHeight,defaultIndex:null!=(n=e.defaultIndex)?n:+i.defaultIndex,swipeDuration:i.swipeDuration,visibleItemCount:i.visibleItemCount,initialOptions:e.values},scopedSlots:{option:i.$scopedSlots.option},on:{change:function(){i.onChange(t)}}})})}},render:function(e){return e("div",{class:d()},["top"===this.toolbarPosition?this.genToolbar():e(),this.loading?e(c.default,{class:d("loading")}):e(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():e()])}});t.default=r},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=n(9),o=n(40),a=n(400),s=n(108),l=i(n(832)),n=(0,r.createNamespace)("number-keyboard"),r=n[0],u=n[1],s=r({mixins:[(0,a.PortalMixin)(),(0,s.BindEventMixin)(function(e){this.hideOnClickOutside&&e(document.body,"touchstart",this.onBlur)})],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(e){this.transition||this.$emit(e?"show":"hide")}},computed:{keys:function(){return"custom"===this.theme?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var e=[],t=1;t<=9;t++)e.push({text:t});return this.randomKeyOrder&&e.sort(function(){return.5<Math.random()?1:-1}),e},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var e=this.genBasicKeys(),t=this.extraKey,t=Array.isArray(t)?t:[t];return 1===t.length?e.push({text:0,wider:!0},{text:t[0],type:"extra"}):2===t.length&&e.push({text:t[0],type:"extra"},{text:0},{text:t[1],type:"extra"}),e},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(e,t){var n;""!==e?(n=this.value,"delete"===t?(this.$emit("delete"),this.$emit("update:value",n.slice(0,n.length-1))):"close"===t?this.onClose():n.length<this.maxlength&&(this.$emit("input",e),this.$emit("update:value",n+e))):"extra"===t&&this.onBlur()},genTitle:function(){var e=this.$createElement,t=this.title,n=this.theme,i=this.closeButtonText,r=this.slots("title-left"),n=i&&"default"===n;if(t||n||r)return e("div",{class:u("header")},[r&&e("span",{class:u("title-left")},[r]),t&&e("h2",{class:u("title")},[t]),n&&e("button",{attrs:{type:"button"},class:u("close"),on:{click:this.onClose}},[i])])},genKeys:function(){var t=this,n=this.$createElement;return this.keys.map(function(e){return n(l.default,{key:e.text,attrs:{text:e.text,type:e.type,wider:e.wider,color:e.color},on:{press:t.onPress}},["delete"===e.type&&t.slots("delete"),"extra"===e.type&&t.slots("extra-key")])})},genSidebar:function(){var e=this.$createElement;if("custom"===this.theme)return e("div",{class:u("sidebar")},[this.showDeleteKey&&e(l.default,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),e(l.default,{attrs:{large:!0,text:this.closeButtonText,type:"close",color:"blue",loading:this.closeButtonLoading},on:{press:this.onPress}})])}},render:function(){var e=arguments[0],t=this.genTitle();return e("transition",{attrs:{name:this.transition?"van-slide-up":""}},[e("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:u({unfit:!this.safeAreaInsetBottom,"with-title":t}),on:{touchstart:o.stopPropagation,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[t,e("div",{class:u("body")},[e("div",{class:u("keys")},[this.genKeys()]),this.genSidebar()])])])}});t.default=s},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var y=i(n(34)),x=n(9),b=n(37),_=n(86),i=(0,x.createNamespace)("password-input"),n=i[0],w=i[1];function r(e,t,n,i){for(var r=t.mask,o=t.value,a=t.length,s=t.gutter,l=t.focused,u=t.errorInfo,c=u||t.info,h=[],d=0;d<a;d++){var p,f=o[d],m=0!==d&&!s,g=l&&d===o.length,v=void 0;0!==d&&s&&(v={marginLeft:(0,x.addUnit)(s)}),h.push(e("li",{class:[((p={})[_.BORDER_LEFT]=m,p),w("item",{focus:g})],style:v},[r?e("i",{style:{visibility:f?"visible":"hidden"}}):f,g&&e("div",{class:w("cursor")})]))}return e("div",{class:w()},[e("ul",(0,y.default)([{class:[w("security"),((t={})[_.BORDER_SURROUND]=!s,t)],on:{touchstart:function(e){e.stopPropagation(),(0,b.emit)(i,"focus",e)}}},(0,b.inherit)(i,!0)]),[h]),c&&e("div",{class:w(u?"error-info":"info")},[c])])}r.props={info:String,gutter:[Number,String],focused:Boolean,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:[Number,String],default:6}};n=n(r);t.default=n},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(9),r=n(401),n=(0,i.createNamespace)("form"),i=n[0],o=n[1],i=i({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter(function(e){return-1!==t.indexOf(e.name)}):this.fields},validateSeq:function(i){var r=this;return new Promise(function(e,t){var n=[];r.getFieldsByNames(i).reduce(function(e,t){return e.then(function(){if(!n.length)return t.validate().then(function(e){e&&n.push(e)})})},Promise.resolve()).then(function(){n.length?t(n):e()})})},validateFields:function(i){var r=this;return new Promise(function(t,n){var e=r.getFieldsByNames(i);Promise.all(e.map(function(e){return e.validate()})).then(function(e){(e=e.filter(function(e){return e})).length?n(e):t()})})},validate:function(e){return e&&!Array.isArray(e)?this.validateField(e):this.validateFirst?this.validateSeq(e):this.validateFields(e)},validateField:function(t){var e=this.fields.filter(function(e){return e.name===t});return e.length?new Promise(function(t,n){e[0].validate().then(function(e){e?n(e):t()})}):Promise.reject()},resetValidation:function(e){e&&!Array.isArray(e)&&(e=[e]),this.getFieldsByNames(e).forEach(function(e){e.resetValidation()})},scrollToField:function(t,n){this.fields.some(function(e){return e.name===t&&(e.$el.scrollIntoView(n),!0)})},addField:function(e){this.fields.push(e),(0,r.sortChildren)(this.fields,this)},removeField:function(t){this.fields=this.fields.filter(function(e){return e!==t})},getValues:function(){return this.fields.reduce(function(e,t){return e[t.name]=t.formValue,e},{})},onSubmit:function(e){e.preventDefault(),this.submit()},submit:function(){var t=this,n=this.getValues();this.validate().then(function(){t.$emit("submit",n)}).catch(function(e){t.$emit("failed",{values:n,errors:e}),t.scrollToError&&t.scrollToField(e[0].name)})}},render:function(){return(0,arguments[0])("form",{class:o(),on:{submit:this.onSubmit}},[this.slots()])}});t.default=i},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(36)),o=i(n(34)),a=n(9),u=n(37),s=n(168),c=i(n(48)),h=i(n(112)),d=i(n(107)),n=(0,a.createNamespace)("action-sheet"),a=n[0],p=n[1];function l(a,s,t,l){var e=s.title,n=s.cancelText,i=s.closeable;function r(){(0,u.emit)(l,"input",!1),(0,u.emit)(l,"cancel")}return a(h.default,(0,o.default)([{class:p(),attrs:{position:"bottom",round:s.round,value:s.value,overlay:s.overlay,duration:s.duration,lazyRender:s.lazyRender,lockScroll:s.lockScroll,getContainer:s.getContainer,closeOnPopstate:s.closeOnPopstate,closeOnClickOverlay:s.closeOnClickOverlay,safeAreaInsetBottom:s.safeAreaInsetBottom}},(0,u.inherit)(l,!0)]),[function(){if(e)return a("div",{class:p("header")},[e,i&&a(c.default,{attrs:{name:s.closeIcon},class:p("close"),on:{click:r}})])}(),function(){var e=(null==t.description?void 0:t.description())||s.description;if(e)return a("div",{class:p("description")},[e])}(),a("div",{class:p("content")},[s.actions&&s.actions.map(function(t,n){var i=t.disabled,r=t.loading,o=t.callback;return a("button",{attrs:{type:"button"},class:[p("item",{disabled:i,loading:r}),t.className],style:{color:t.color},on:{click:function(e){e.stopPropagation(),i||r||(o&&o(t),(0,u.emit)(l,"select",t,n),s.closeOnClickAction&&(0,u.emit)(l,"input",!1))}}},[r?a(d.default,{class:p("loading-icon")}):[a("span",{class:p("name")},[t.name]),t.subname&&a("div",{class:p("subname")},[t.subname])]])}),null==t.default?void 0:t.default()]),function(){if(n)return[a("div",{class:p("gap")}),a("button",{attrs:{type:"button"},class:p("cancel"),on:{click:r}},[n])]}()])}l.props=(0,r.default)({},s.popupMixinProps,{title:String,actions:Array,duration:[Number,String],cancelText:String,description:String,getContainer:[String,Function],closeOnPopstate:Boolean,closeOnClickAction:Boolean,round:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},closeIcon:{type:String,default:"cross"},safeAreaInsetBottom:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});a=a(l);t.default=a},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r,o,a=i(n(36)),s=i(n(5)),l=i(n(842)),u=n(9),c=n(37);function h(e){var t;if(!u.isServer)return o=o||(0,c.mount)(l.default,{on:{click:function(e){o.onClick&&o.onClick(e)},close:function(){o.onClose&&o.onClose()},opened:function(){o.onOpened&&o.onOpened()}}}),e=(0,a.default)({},h.currentOptions,(t=e,(0,u.isObject)(t)?t:{message:t})),(0,a.default)(o,e),clearTimeout(r),e.duration&&0<e.duration&&(r=setTimeout(h.clear,e.duration)),o}function d(){return{type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null}}h.clear=function(){o&&(o.value=!1)},h.currentOptions=d(),h.setDefaultOptions=function(e){(0,a.default)(h.currentOptions,e)},h.resetDefaultOptions=function(){h.currentOptions=d()},h.install=function(){s.default.use(l.default)},h.Component=l.default,s.default.prototype.$notify=h,t.default=h},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=n(9),o=n(40),a=n(63),s=n(87),l=i(n(107)),n=(0,r.createNamespace)("pull-refresh"),r=n[0],u=n[1],c=n[2],h=["pulling","loosing","success"],s=r({mixins:[s.TouchMixin],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:50}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(50!==this.headHeight)return{height:this.headHeight+"px"}}},watch:{value:function(e){this.duration=this.animationDuration,e?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=(0,a.getScroller)(this.$el)},methods:{checkPullStart:function(e){this.ceiling=0===(0,a.getScrollTop)(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(e))},onTouchStart:function(e){this.touchable&&this.checkPullStart(e)},onTouchMove:function(e){this.touchable&&(this.ceiling||this.checkPullStart(e),this.touchMove(e),this.ceiling&&0<=this.deltaY&&"vertical"===this.direction&&((0,o.preventDefault)(e),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var e=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick(function(){e.$emit("refresh")})):this.setStatus(0))},ease:function(e){var t=+this.headHeight;return t<e&&(e=e<2*t?t+(e-t)/2:1.5*t+(e-2*t)/4),Math.round(e)},setStatus:function(e,t){t=t?"loading":0===e?"normal":e<this.headHeight?"pulling":"loosing";this.distance=e,t!==this.status&&(this.status=t)},genStatus:function(){var e=this.$createElement,t=this.status,n=this.distance,i=this.slots(t,{distance:n});if(i)return i;n=[],i=this[t+"Text"]||c(t);return-1!==h.indexOf(t)&&n.push(e("div",{class:u("text")},[i])),"loading"===t&&n.push(e(l.default,{attrs:{size:"16"}},[i])),n},showSuccessTip:function(){var e=this;this.status="success",setTimeout(function(){e.setStatus(0)},this.successDuration)}},render:function(){var e=arguments[0],t={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return e("div",{class:u()},[e("div",{ref:"track",class:u("track"),style:t},[e("div",{class:u("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}});t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(9),r=n(235),o=n(40),a=n(87),s=n(847),n=(0,i.createNamespace)("swipe-cell"),i=n[0],l=n[1],s=i({mixins:[a.TouchMixin,(0,s.ClickOutsideMixin)({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(e){return this.$refs[e]?this.$refs[e].getBoundingClientRect().width:0},open:function(e){var t="left"===e?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=t,this.$emit("open",{position:e,name:this.name,detail:this.name})},close:function(e){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:e,name:this.name}))},onTouchStart:function(e){this.disabled||(this.startOffset=this.offset,this.touchStart(e))},onTouchMove:function(e){this.disabled||(this.touchMove(e),"horizontal"===this.direction&&(this.dragging=!0,this.lockClick=!0,(!this.opened||this.deltaX*this.startOffset<0)&&(0,o.preventDefault)(e,this.stopPropagation),this.offset=(0,r.range)(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)))},onTouchEnd:function(){var e=this;this.disabled||this.dragging&&(this.toggle(0<this.offset?"left":"right"),this.dragging=!1,setTimeout(function(){e.lockClick=!1},0))},toggle:function(e){var t=Math.abs(this.offset),n=this.opened?.85:.15,i=this.computedLeftWidth,r=this.computedRightWidth;r&&"right"===e&&r*n<t?this.open("right"):i&&"left"===e&&i*n<t?this.open("left"):this.close()},onClick:function(e){this.$emit("click",e=void 0===e?"outside":e),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:e,name:this.name,instance:this}):this.onClose?this.onClose(e,this,{name:this.name}):this.close(e))},getClickHandler:function(t,n){var i=this;return function(e){n&&e.stopPropagation(),i.onClick(t)}},genLeftPart:function(){var e=this.$createElement,t=this.slots("left");if(t)return e("div",{ref:"left",class:l("left"),on:{click:this.getClickHandler("left",!0)}},[t])},genRightPart:function(){var e=this.$createElement,t=this.slots("right");if(t)return e("div",{ref:"right",class:l("right"),on:{click:this.getClickHandler("right",!0)}},[t])}},render:function(){var e=arguments[0],t={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return e("div",{class:l(),on:{click:this.getClickHandler("cell")}},[e("div",{class:l("wrapper"),style:t},[this.genLeftPart(),this.slots(),this.genRightPart()])])}});t.default=s},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var o=n(9),a=n(231),r=n(108),u=i(n(48)),i=(0,o.createNamespace)("notice-bar"),n=i[0],c=i[1],r=n({mixins:[(0,r.BindEventMixin)(function(e){e(window,"pageshow",this.start)})],props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null},delay:{type:[Number,String],default:1},speed:{type:[Number,String],default:50}},data:function(){return{show:!0,offset:0,duration:0,wrapWidth:0,contentWidth:0}},watch:{scrollable:"start",text:{handler:"start",immediate:!0}},activated:function(){this.start()},methods:{onClickIcon:function(e){"closeable"===this.mode&&(this.show=!1,this.$emit("close",e))},onTransitionEnd:function(){var e=this;this.offset=this.wrapWidth,(this.duration=0,a.raf)(function(){(0,a.doubleRaf)(function(){e.offset=-e.contentWidth,e.duration=(e.contentWidth+e.wrapWidth)/e.speed,e.$emit("replay")})})},reset:function(){this.offset=0,this.duration=0,this.wrapWidth=0,this.contentWidth=0},start:function(){var r=this,e=(0,o.isDef)(this.delay)?1e3*this.delay:0;this.reset(),clearTimeout(this.startTimer),this.startTimer=setTimeout(function(){var e,t,n=r.$refs,i=n.wrap,n=n.content;i&&n&&!1!==r.scrollable&&(e=i.getBoundingClientRect().width,t=n.getBoundingClientRect().width,(r.scrollable||e<t)&&(0,a.doubleRaf)(function(){r.offset=-t,r.duration=t/r.speed,r.wrapWidth=e,r.contentWidth=t}))},e)}},render:function(){var e,t=this,n=arguments[0],i=this.slots,r=this.mode,o=this.leftIcon,a=this.onClickIcon,s={color:this.color,background:this.background},l={transform:this.offset?"translateX("+this.offset+"px)":"",transitionDuration:this.duration+"s"};return n("div",{attrs:{role:"alert"},directives:[{name:"show",value:this.show}],class:c({wrapable:this.wrapable}),style:s,on:{click:function(e){t.$emit("click",e)}}},[i("left-icon")||(o?n(u.default,{class:c("left-icon"),attrs:{name:o}}):void 0),n("div",{ref:"wrap",class:c("wrap"),attrs:{role:"marquee"}},[n("div",{ref:"content",class:[c("content"),{"van-ellipsis":!1===this.scrollable&&!this.wrapable}],style:l,on:{transitionend:this.onTransitionEnd}},[this.slots()||this.text])]),i("right-icon")||("closeable"===r?e="cross":"link"===r&&(e="arrow"),e?n(u.default,{class:c("right-icon"),attrs:{name:e},on:{click:a}}):void 0)])}});t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(9),r=n(86),o=n(88),a=(0,i.createNamespace)("grid"),n=a[0],s=a[1],o=n({mixins:[(0,o.ParentMixin)("vanGrid")],props:{square:Boolean,gutter:[Number,String],iconSize:[Number,String],direction:String,clickable:Boolean,columnNum:{type:[Number,String],default:4},center:{type:Boolean,default:!0},border:{type:Boolean,default:!0}},computed:{style:function(){var e=this.gutter;if(e)return{paddingLeft:(0,i.addUnit)(e)}}},render:function(){var e;return(0,arguments[0])("div",{style:this.style,class:[s(),((e={})[r.BORDER_TOP]=this.border&&!this.gutter,e)]},[this.slots()])}});t.default=o},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(36)),o=n(9),s=n(86),a=n(106),l=n(88),u=i(n(165)),c=i(n(48)),i=(0,o.createNamespace)("grid-item"),n=i[0],h=i[1],r=n({mixins:[(0,l.ChildrenMixin)("vanGrid")],props:(0,r.default)({},a.routeProps,{dot:Boolean,text:String,icon:String,iconPrefix:String,info:[Number,String],badge:[Number,String]}),computed:{style:function(){var e=this.parent,t=e.square,n=e.gutter,i=e.columnNum,e=100/i+"%",r={flexBasis:e};return t?r.paddingTop=e:n&&(n=(0,o.addUnit)(n),r.paddingRight=n,this.index>=i&&(r.marginTop=n)),r},contentStyle:function(){var e=this.parent,t=e.square,e=e.gutter;if(t&&e){e=(0,o.addUnit)(e);return{right:e,bottom:e,height:"auto"}}}},methods:{onClick:function(e){this.$emit("click",e),(0,a.route)(this.$router,this)},genIcon:function(){var e=this.$createElement,t=this.slots("icon"),n=null!=(n=this.badge)?n:this.info;return t?e("div",{class:h("icon-wrapper")},[t,e(u.default,{attrs:{dot:this.dot,info:n}})]):this.icon?e(c.default,{attrs:{name:this.icon,dot:this.dot,badge:n,size:this.parent.iconSize,classPrefix:this.iconPrefix},class:h("icon")}):void 0},getText:function(){var e=this.$createElement,t=this.slots("text");return t||(this.text?e("span",{class:h("text")},[this.text]):void 0)},genContent:function(){var e=this.slots();return e||[this.genIcon(),this.getText()]}},render:function(){var e=arguments[0],t=this.parent,n=t.center,i=t.border,r=t.square,o=t.gutter,a=t.direction,t=t.clickable;return e("div",{class:[h({square:r})],style:this.style},[e("div",{style:this.contentStyle,attrs:{role:t?"button":null,tabindex:t?0:null},class:[h("content",[a,{center:n,square:r,clickable:t,surround:i&&o}]),((o={})[s.BORDER]=i,o)],on:{click:this.onClick}},[this.genContent()])])}});t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(9),l=n(234),r=n(40),u=n(63),o=n(87),a=n(88),s=n(108);var c=(0,i.createNamespace)("index-bar"),n=c[0],h=c[1],s=n({mixins:[o.TouchMixin,(0,a.ParentMixin)("vanIndexBar"),(0,s.BindEventMixin)(function(e){this.scroller||(this.scroller=(0,u.getScroller)(this.$el)),e(this.scroller,"scroll",this.onScroll)})],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:function(){for(var e=[],t="A".charCodeAt(0),n=0;n<26;n++)e.push(String.fromCharCode(t+n));return e}}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if((0,i.isDef)(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var e=this.highlightColor;if(e)return{color:e}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(e){e&&this.$emit("change",e)}},methods:{onScroll:function(){var i,r,o,a,s=this;(0,l.isHidden)(this.$el)||(i=(0,u.getScrollTop)(this.scroller),r=this.getScrollerRect(),o=this.children.map(function(e){return e.getRect(s.scroller,r)}),a=this.getActiveAnchorIndex(i,o),this.activeAnchorIndex=this.indexList[a],this.sticky&&this.children.forEach(function(e,t){var n;t===a||t===a-1?(n=e.$el.getBoundingClientRect(),e.left=n.left,e.width=n.width):(e.left=null,e.width=null),t===a?(e.active=!0,e.top=Math.max(s.stickyOffsetTop,o[t].top-i)+r.top):t===a-1?(n=o[a].top-i,e.active=0<n,e.top=n+r.top-o[t].height):e.active=!1}))},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(e,t){for(var n=this.children.length-1;0<=n;n--){var i=0<n?t[n-1].height:0;if(e+(this.sticky?i+this.stickyOffsetTop:0)>=t[n].top)return n}return-1},onClick:function(e){this.scrollToElement(e.target)},onTouchMove:function(e){var t;this.touchMove(e),"vertical"===this.direction&&((0,r.preventDefault)(e),e=(t=e.touches[0]).clientX,t=t.clientY,(e=document.elementFromPoint(e,t))&&(t=e.dataset.index,this.touchActiveIndex!==t&&(this.touchActiveIndex=t,this.scrollToElement(e))))},scrollTo:function(t){var e=this.children.filter(function(e){return String(e.index)===t});e[0]&&(e[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&(0,u.setRootScrollTop)((0,u.getRootScrollTop)()-this.stickyOffsetTop),this.$emit("select",e[0].index))},scrollToElement:function(e){e=e.dataset.index;this.scrollTo(e)},onTouchEnd:function(){this.active=null}},render:function(){var n=this,i=arguments[0],e=this.indexList.map(function(e){var t=e===n.activeAnchorIndex;return i("span",{class:h("index",{active:t}),style:t?n.highlightStyle:null,attrs:{"data-index":e}},[e])});return i("div",{class:h()},[i("div",{class:h("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[e]),this.slots("default")])}});t.default=s},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var d=i(n(34)),p=n(9),f=n(37),m=i(n(48)),g=i(n(174)),v=i(n(175)),i=(0,p.createNamespace)("tree-select"),n=i[0],y=i[1];function r(i,r,e,o){var t=r.items,n=r.height,a=r.activeId,s=r.selectedIcon,l=r.mainActiveIndex;var u=(t[+l]||{}).children||[],c=Array.isArray(a);function h(e){return c?-1!==a.indexOf(e):a===e}t=t.map(function(e){var t;return i(v.default,{attrs:{dot:e.dot,info:null!=(t=e.badge)?t:e.info,title:e.text,disabled:e.disabled},class:[y("nav-item"),e.className]})});return i("div",(0,d.default)([{class:y(),style:{height:(0,p.addUnit)(n)}},(0,f.inherit)(o)]),[i(g.default,{class:y("nav"),attrs:{activeKey:l},on:{change:function(e){(0,f.emit)(o,"update:main-active-index",e),(0,f.emit)(o,"click-nav",e),(0,f.emit)(o,"navclick",e)}}},[t]),i("div",{class:y("content")},[e.content?e.content():u.map(function(n){return i("div",{key:n.id,class:["van-ellipsis",y("item",{active:h(n.id),disabled:n.disabled})],on:{click:function(){var e,t;n.disabled||(e=n.id,c&&(-1!==(t=(e=a.slice()).indexOf(n.id))?e.splice(t,1):e.length<r.max&&e.push(n.id)),(0,f.emit)(o,"update:active-id",e),(0,f.emit)(o,"click-item",n),(0,f.emit)(o,"itemclick",n))}}},[n.text,h(n.id)&&i(m.default,{attrs:{name:s},class:y("selected")})])})])])}r.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};n=n(r);t.default=n},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var c=i(n(34)),h=n(9),d=n(37),p=i(n(862)),f=i(n(176)),i=(0,h.createNamespace)("card"),n=i[0],m=i[1];function r(t,n,i,r){var e=n.thumb,o=i.num||(0,h.isDef)(n.num),a=i.price||(0,h.isDef)(n.price),s=i["origin-price"]||(0,h.isDef)(n.originPrice),l=o||a||s||i.bottom;function u(e){(0,d.emit)(r,"click-thumb",e)}return t("div",(0,c.default)([{class:m()},(0,d.inherit)(r,!0)]),[t("div",{class:m("header")},[function(){if(i.thumb||e)return t("a",{attrs:{href:n.thumbLink},class:m("thumb"),on:{click:u}},[i.thumb?i.thumb():t(f.default,{attrs:{src:e,width:"100%",height:"100%",fit:"cover","lazy-load":n.lazyLoad}}),function(){if(i.tag||n.tag)return t("div",{class:m("tag")},[i.tag?i.tag():t(p.default,{attrs:{mark:!0,type:"danger"}},[n.tag])])}()])}(),t("div",{class:m("content",{centered:n.centered})},[t("div",[i.title?i.title():n.title?t("div",{class:[m("title"),"van-multi-ellipsis--l2"]},[n.title]):void 0,i.desc?i.desc():n.desc?t("div",{class:[m("desc"),"van-ellipsis"]},[n.desc]):void 0,null==i.tags?void 0:i.tags()]),l&&t("div",{class:"van-card__bottom"},[null==(l=i["price-top"])?void 0:l.call(i),function(){if(a)return t("div",{class:m("price")},[i.price?i.price():(e=n.price.toString().split("."),t("div",[t("span",{class:m("price-currency")},[n.currency]),t("span",{class:m("price-integer")},[e[0]]),".",t("span",{class:m("price-decimal")},[e[1]])]))]);var e}(),function(){if(s){var e=i["origin-price"];return t("div",{class:m("origin-price")},[e?e():n.currency+" "+n.originPrice])}}(),function(){if(o)return t("div",{class:m("num")},[i.num?i.num():"x"+n.num])}(),null==i.bottom?void 0:i.bottom()])])]),function(){if(i.footer)return t("div",{class:m("footer")},[i.footer()])}()])}r.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}};n=n(r);t.default=n},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"e",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"c",function(){return c});function o(e){var t=location.hash.replace("#","").split("/")[1]||"zh-CN";return i.filter(function(e){return e.lang===t})[0][e]}var t=n(171),a=n.n(t),i=n(442),r=function(e){switch(e){case"color":case"typography":case"border":return"global";default:return"local"}},s=function(e,i){var r={};return["color","typography","border"].forEach(function(t){var n={};e.find(function(e){return e.name===t}).config.forEach(function(e){return n[e.key]=a()({},e)}),r[t]=n,Object.keys(n).forEach(function(e){i.global[e]&&(n[e].value=i.global[e])})}),r},l=function(e,t){return e.startsWith("$")?t[e].value:e},u=function(e,t){var n,i=o("display-name");if(e.name)return n=e.key.replace("$--",""),o("variable-name")[n]||n;var r=e.key.replace("$--"+t+"-","");return Object.keys(i).forEach(function(e){r=r.replace(e,i[e])}),(r=r.replace(/-/g," ")).trim()},c=function(e){return o("action")[e]||e}},function(e,t,n){e.exports=!n(75)&&!n(117)(function(){return 7!=Object.defineProperty(n(289)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(116),r=n(64).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,n){var a=n(76),s=n(93),l=n(463)(!1),u=n(182)("IE_PROTO");e.exports=function(e,t){var n,i=s(e),r=0,o=[];for(n in i)n!=u&&a(i,n)&&o.push(n);for(;t.length>r;)a(i,n=t[r++])&&(~l(o,n)||o.push(n));return o}},function(e,t,n){var i=n(292);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";function y(){return this}var x=n(142),b=n(178),_=n(294),w=n(91),C=n(187),S=n(470),A=n(188),M=n(473),T=n(94)("iterator"),k=!([].keys&&"next"in[].keys()),D="values";e.exports=function(e,t,n,i,r,o,a){S(n,t,i);function s(e){if(!k&&e in f)return f[e];switch(e){case"keys":case D:return function(){return new n(this,e)}}return function(){return new n(this,e)}}var l,u,c,h=t+" Iterator",d=r==D,p=!1,f=e.prototype,m=f[T]||f["@@iterator"]||r&&f[r],g=m||s(r),v=r?d?s("entries"):g:void 0,i="Array"==t&&f.entries||m;if(i&&(c=M(i.call(new e)))!==Object.prototype&&c.next&&(A(c,h,!0),x||"function"==typeof c[T]||w(c,T,y)),d&&m&&m.name!==D&&(p=!0,g=function(){return m.call(this)}),x&&!a||!k&&!p&&f[T]||w(f,T,g),C[t]=g,C[h]=y,r)if(l={values:d?g:s(D),keys:o?g:s("keys"),entries:v},a)for(u in l)u in f||_(f,u,l[u]);else b(b.P+b.F*(k||p),t,l);return l}},function(e,t,n){e.exports=n(91)},function(e,t,n){function i(){}var r=n(139),o=n(471),a=n(184),s=n(182)("IE_PROTO"),l="prototype",u=function(){var e=n(289)("iframe"),t=a.length;for(e.style.display="none",n(472).appendChild(e),e.src="javascript:",(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;t--;)delete u[l][a[t]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(i[l]=r(e),n=new i,i[l]=null,n[s]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var i=n(290),r=n(184).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t){var n=2311;e.exports=function(){return n++}},function(e,t,n){var a=n(25),p=n(491).buildTransformer,s="___zrEVENTSAVED",o=[];function l(e,t,n,i,r){if(t.getBoundingClientRect&&a.domSupported&&!u(t)){var o=t[s]||(t[s]={}),r=function(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=!0,s=[],l=[],u=0;u<4;u++){var c=e[u].getBoundingClientRect(),h=2*u,d=c.left,c=c.top;s.push(d,c),a=a&&o&&d===o[h]&&c===o[1+h],l.push(e[u].offsetLeft,e[u].offsetTop)}return a&&r?r:(t.srcCoords=s,t[i]=n?p(l,s):p(s,l))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["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",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,o),o,r);if(r)return r(e,n,i),!0}return!1}function u(e){return"CANVAS"===e.nodeName.toUpperCase()}t.transformLocalCoord=function(e,t,n,i,r){return l(o,t,i,r,!0)&&l(e,n,o[0],o[1])},t.transformCoordWithViewport=l,t.isCanvasEl=u},function(e,t,n){var i=n(297),r=n(77),o=n(146),a=n(494),s=n(1),n=function(e){o.call(this,e),r.call(this,e),a.call(this,e),this.id=e.id||i()};n.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var n=this.transform;(n=n||(this.transform=[1,0,0,1,0,0]))[4]+=e,n[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){var n;"position"===e||"scale"===e||"origin"===e?t&&((n=(n=this[e])||(this[e]=[]))[0]=t[0],n[1]=t[1]):this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(s.isObject(e))for(var n in e)e.hasOwnProperty(n)&&this.attrKV(n,e[n]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),(this.clipPath=e).__zr=t,(e.__clipTarget=this).dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},s.mixin(n,a),s.mixin(n,o),s.mixin(n,r),e.exports=n},function(e,t,n){var N=n(495),L=n(55),P=n(1).isArrayLike,l=Array.prototype.slice;function r(e,t){return e[t]}function o(e,t,n){e[t]=n}function E(e,t,n){return(t-e)*n+e}function H(e,t,n){return.5<n?t:e}function z(e,t,n,i,r){var o=e.length;if(1===r)for(var a=0;a<o;a++)i[a]=E(e[a],t[a],n);else for(var s=o&&e[0].length,a=0;a<o;a++)for(var l=0;l<s;l++)i[a][l]=E(e[a][l],t[a][l],n)}function R(e,t,n){var i=e.length,r=t.length;if(i!==r)if(r<i)e.length=r;else for(var o=i;o<r;o++)e.push(1===n?t[o]:l.call(t[o]));for(var a=e[0]&&e[0].length,o=0;o<e.length;o++)if(1===n)isNaN(e[o])&&(e[o]=t[o]);else for(var s=0;s<a;s++)isNaN(e[o][s])&&(e[o][s]=t[o][s])}function j(e,t,n,i,r,o,a,s,l){var u=e.length;if(1===l)for(var c=0;c<u;c++)s[c]=B(e[c],t[c],n[c],i[c],r,o,a);else for(var h=e[0].length,c=0;c<u;c++)for(var d=0;d<h;d++)s[c][d]=B(e[c][d],t[c][d],n[c][d],i[c][d],r,o,a)}function B(e,t,n,i,r,o,a){e=.5*(n-e),i=.5*(i-t);return(2*(t-n)+e+i)*a+(-3*(t-n)-2*e-i)*o+e*r+t}function F(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function u(e,t,n,i,o,r){var a=e._getter,s=e._setter,l="spline"===t,u=i.length;if(u){var c=i[0].value,h=P(c),d=!1,p=!1,f=h?(c=(c=i)[c.length-1].value,P(c&&c[0])?2:1):0;i.sort(function(e,t){return e.time-t.time});for(var m=i[u-1].time,g=[],v=[],y=i[0].value,x=!0,b=0;b<u;b++){g.push(i[b].time/m);var _,w=i[b].value;h&&function(e,t,n){if(e===t)return 1;var i=e.length;if(i===t.length){if(1===n){for(var r=0;r<i;r++)if(e[r]!==t[r])return}else for(var o=e[0].length,r=0;r<i;r++)for(var a=0;a<o;a++)if(e[r][a]!==t[r][a])return;return 1}}(w,y,f)||!h&&w===y||(x=!1),"string"==typeof(y=w)&&((_=L.parse(w))?(w=_,d=!0):p=!0),v.push(w)}if(r||!x){for(var C=v[u-1],b=0;b<u-1;b++)h?R(v[b],C,f):!isNaN(v[b])||isNaN(C)||p||d||(v[b]=C);h&&R(a(e._target,o),C,f);var S,A,M,T,k,D,I=0,O=0;d&&(D=[0,0,0,0]);n=new N({target:e._target,life:m,loop:e._loop,delay:e._delay,onframe:function(e,t){var n;if(t<0)n=0;else if(t<O){for(n=Math.min(I+1,u-1);0<=n&&!(g[n]<=t);n--);n=Math.min(n,u-2)}else{for(n=I;n<u&&!(g[n]>t);n++);n=Math.min(n-1,u-2)}O=t;var i,r=g[(I=n)+1]-g[n];if(0!=r)if(S=(t-g[n])/r,l)if(M=v[n],A=v[0===n?n:n-1],T=v[u-2<n?u-1:n+1],k=v[u-3<n?u-1:n+2],h)j(A,M,T,k,S,S*S,S*S*S,a(e,o),f);else{if(d)i=j(A,M,T,k,S,S*S,S*S*S,D,1),i=F(D);else{if(p)return.5<S?T:M;i=B(A,M,T,k,S,S*S,S*S*S)}s(e,o,i)}else if(h)z(v[n],v[n+1],S,a(e,o),f);else{if(d)z(v[n],v[n+1],S,D,1),i=F(D);else{if(p)return H(v[n],v[n+1],S);i=E(v[n],v[n+1],S)}s(e,o,i)}},ondestroy:n});return t&&"spline"!==t&&(n.easing=t),n}}}n=function(e,t,n,i){this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||r,this._setter=i||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};n.prototype={when:function(e,t){var n,i=this._tracks;for(n in t)if(t.hasOwnProperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==e&&i[n].push({time:0,value:function(e){if(P(e)){var t=e.length;if(P(e[0])){for(var n=[],i=0;i<t;i++)n.push(l.call(e[i]));return n}return l.call(e)}return e}(r)})}i[n].push({time:e,value:t[n]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].pause();this._paused=!0},resume:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,n=0;n<t;n++)e[n].call(this)},start:function(e,t){function n(){--l||s._doneCallback()}var i,r,o,a,s=this,l=0;for(r in this._tracks)this._tracks.hasOwnProperty(r)&&((o=u(this,e,n,this._tracks[r],r,t))&&(this._clipList.push(o),l++,this.animation&&this.animation.addClip(o),i=o));return i&&(a=i.onframe,i.onframe=function(e,t){a(e,t);for(var n=0;n<s._onframeList.length;n++)s._onframeList[n](e,t)}),l||this._doneCallback(),this},stop:function(e){for(var t=this._clipList,n=this.animation,i=0;i<t.length;i++){var r=t[i];e&&r.onframe(this._target,1),n&&n.removeClip(r)}t.length=0},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this},getClips:function(){return this._clipList}},e.exports=n},function(e,t){function n(){this.head=null,this.tail=null,this._len=0}var i=n.prototype;i.insert=function(e){e=new s(e);return this.insertEntry(e),e},i.insertEntry=function(e){this.head?((this.tail.next=e).prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},i.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},i.len=function(){return this._len},i.clear=function(){this.head=this.tail=null,this._len=0};function r(e){this._list=new n,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null}var s=function(e){this.value=e,this.next,this.prev},i=r.prototype;i.put=function(e,t){var n,i,r=this._list,o=this._map,a=null;return null==o[e]&&(i=r.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=r.head,r.remove(i),delete o[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=t:n=new s(t),n.key=e,r.insertEntry(n),o[e]=n),a},i.get=function(e){var t=this._map[e],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},i.clear=function(){this._list.clear(),this._map={}},e.exports=r},function(e,t){var i={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};e.exports=function(e,t,n){return i.hasOwnProperty(t)?n*e.dpr:n}},function(e,t){function n(e,t){this.image=e,this.repeat=t,this.type="pattern"}n.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};e.exports=n},function(e,t){var n="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)};e.exports=n},function(e,t,n){var o=n(149),i=n(21),a=n(148).WILL_BE_RESTORED,s=new i,i=function(){};i.prototype={constructor:i,drawRectText:function(e,t){var n=this.style;t=n.textRect||t,this.__dirty&&o.normalizeTextStyle(n,!0);var i,r=n.text;null!=r&&(r+=""),o.needDrawText(r,n)&&(e.save(),i=this.transform,n.transformText?this.setTransform(e):i&&(s.copy(t),s.applyTransform(i),t=s),o.renderText(this,e,r,n,t,a),e.restore())}},e.exports=i},function(e,t){t.buildPath=function(e,t){var n,i,r,o,a,s=t.x,l=t.y,u=t.width,c=t.height,t=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof t?n=i=r=o=t:t instanceof Array?1===t.length?n=i=r=o=t[0]:2===t.length?(n=r=t[0],i=o=t[1]):3===t.length?(n=t[0],i=o=t[1],r=t[2]):(n=t[0],i=t[1],r=t[2],o=t[3]):n=i=r=o=0,u<n+i&&(n*=u/(a=n+i),i*=u/a),u<r+o&&(r*=u/(a=r+o),o*=u/a),c<i+r&&(i*=c/(a=i+r),r*=c/a),c<n+o&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-i,l),0!==i&&e.arc(s+u-i,l+i,i,-Math.PI/2,0),e.lineTo(s+u,l+c-r),0!==r&&e.arc(s+u-r,l+c-r,r,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}},function(e,t,n){n(14).__DEV__;var i=n(1),u=i.each,c=i.filter,l=i.map,h=i.isArray,d=i.indexOf,p=i.isObject,o=i.isString,r=i.createHashMap,f=i.assert,a=i.clone,m=i.merge,g=i.extend,s=i.mixin,v=n(10),y=n(26),x=n(30),b=n(518),i=n(319),_=n(61).resetSourceDefaulter,w="\0_ec_inner",n=y.extend({init:function(e,t,n,i){n=n||{},this.option=null,this._theme=new y(n),this._optionManager=i},setOption:function(e,t){f(!(w in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t,n=!1,i=this._optionManager;return e&&"recreate"!==e||(t=i.mountOption("recreate"===e),this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(t)):function(e){this.option={},this.option[w]=1,this._componentsMap=r({series:[]}),this._seriesIndices,this._seriesIndicesMap,function(n,e){var i=n.color&&!n.colorLayer;u(e,function(e,t){"colorLayer"===t&&i||x.hasClass(t)||("object"==typeof e?n[t]=n[t]?m(n[t],e,!1):a(e):null==n[t]&&(n[t]=e))})}(e,this._theme.option),m(e,b,!1),this.mergeOption(e)}.call(this,t),n=!0),"timeline"!==e&&"media"!==e||this.restoreData(),e&&"recreate"!==e&&"timeline"!==e||(t=i.getTimelineOption(this))&&(this.mergeOption(t),n=!0),e&&"recreate"!==e&&"media"!==e||(i=i.getMediaOption(this,this._api)).length&&u(i,function(e){this.mergeOption(e,n=!0)},this),n},mergeOption:function(n){var s=this.option,l=this._componentsMap,i=[];_(this),u(n,function(e,t){null!=e&&(x.hasClass(t)?t&&i.push(t):s[t]=null==s[t]?a(e):m(s[t],e,!0))}),x.topologicalTravel(i,x.getAllClassMainTypes(),function(o,e){var t=v.normalizeToArray(n[o]),t=v.mappingToExists(l.get(o),t);v.makeIdAndName(t),u(t,function(e,t){var n,i=e.option;p(i)&&(e.keyInfo.mainType=o,e.keyInfo.subType=(n=o,i=i,e=e.exist,i.type||(e?e.subType:x.determineSubType(n,i))))});var a=function(t,e){h(e)||(e=e?[e]:[]);var n={};return u(e,function(e){n[e]=(t.get(e)||[]).slice()}),n}(l,e);s[o]=[],l.set(o,[]),u(t,function(e,t){var n,i=e.exist,r=e.option;f(p(r)||i,"Empty component definition"),r?(n=x.getClass(o,e.keyInfo.subType,!0),i&&i.constructor===n?(i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1)):(i=new n(r,this,this,e=g({dependentModels:a,componentIndex:t},e.keyInfo)),g(i,e),i.init(r,this,this,e),i.optionUpdated(null,!0))):(i.mergeOption({},this),i.optionUpdated({},!1)),l.get(o)[t]=i,s[o][t]=i.option},this),"series"===o&&C(this,l.get("series"))},this),this._seriesIndicesMap=r(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var i=a(this.option);return u(i,function(e,t){if(x.hasClass(t)){for(var n=(e=v.normalizeToArray(e)).length-1;0<=n;n--)v.isIdInner(e[n])&&e.splice(n,1);i[t]=e}}),delete i[w],i},getTheme:function(){return this._theme},getComponent:function(e,t){e=this._componentsMap.get(e);if(e)return e[t||0]},queryComponents:function(e){var t=e.mainType;if(!t)return[];var n,i,r=e.index,o=e.id,a=e.name,s=this._componentsMap.get(t);return s&&s.length?S(null!=r?(h(r)||(r=[r]),c(l(r,function(e){return s[e]}),function(e){return!!e})):null!=o?(n=h(o),c(s,function(e){return n&&0<=d(o,e.id)||!n&&e.id===o})):null!=a?(i=h(a),c(s,function(e){return i&&0<=d(a,e.name)||!i&&e.name===a})):s.slice(),e):[]},findComponents:function(e){var t,n,i,r,o,a=e.query,s=e.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(t=a)||null==t[n]&&null==t[i]&&null==t[r]?null:{mainType:s,index:t[n],id:t[i],name:t[r]}),l=l?this.queryComponents(l):this._componentsMap.get(s);return o=S(l,e),e.filter?c(o,e.filter):o},eachComponent:function(e,i,r){var t=this._componentsMap;"function"==typeof e?(r=i,i=e,t.each(function(e,n){u(e,function(e,t){i.call(r,n,e,t)})})):o(e)?u(t.get(e),i,r):p(e)&&(e=this.findComponents(e),u(e,i,r))},getSeriesByName:function(t){var e=this._componentsMap.get("series");return c(e,function(e){return e.name===t})},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return c(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(n,i){u(this._seriesIndices,function(e){var t=this._componentsMap.get("series")[e];n.call(i,t,e)},this)},eachRawSeries:function(e,t){u(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(n,i,r){u(this._seriesIndices,function(e){var t=this._componentsMap.get("series")[e];t.subType===n&&i.call(r,t,e)},this)},eachRawSeriesByType:function(e,t,n){return u(this.getSeriesByType(e),t,n)},isSeriesFiltered:function(e){return null==this._seriesIndicesMap.get(e.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){t=c(this._componentsMap.get("series"),e,t);C(this,t)},restoreData:function(n){var i=this._componentsMap;C(this,i.get("series"));var r=[];i.each(function(e,t){r.push(t)}),x.topologicalTravel(r,x.getAllClassMainTypes(),function(t,e){u(i.get(t),function(e){"series"===t&&function(e,t){if(t){var n=t.seiresIndex,i=t.seriesId,t=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=t&&e.name!==t}}(e,n)||e.restoreData()})})}});function C(e,t){e._seriesIndicesMap=r(e._seriesIndices=l(t,function(e){return e.componentIndex})||[])}function S(e,t){return t.hasOwnProperty("subType")?c(e,function(e){return e.subType===t.subType}):e}s(n,i),e.exports=n},function(e,t,n){function i(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}var a=n(24),k=n(97),r=n(507),f=Math.sqrt,m=Math.sin,g=Math.cos,v=Math.PI,y=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(i(e)*i(t))},x=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(y(e,t))};function D(e,t,n,i,r,o,a,s,l,u,c){var h=l*(v/180),d=g(h)*(e-n)/2+m(h)*(t-i)/2,p=-1*m(h)*(e-n)/2+g(h)*(t-i)/2,l=d*d/(a*a)+p*p/(s*s);1<l&&(a*=f(l),s*=f(l));l=(r===o?-1:1)*f((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,r=l*a*p/s,l=l*-s*d/a,e=(e+n)/2+g(h)*r-m(h)*l,n=(t+i)/2+m(h)*r+g(h)*l,t=x([1,0],[(d-r)/a,(p-l)/s]),i=[(d-r)/a,(p-l)/s],p=[(-1*d-r)/a,(-1*p-l)/s],l=x(i,p);y(i,p)<=-1&&(l=v),1<=y(i,p)&&(l=0),0===o&&0<l&&(l-=2*v),1===o&&l<0&&(l+=2*v),c.addData(u,e,n,a,s,t,l,h,o)}var I=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,O=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function o(e,t){var n=function(e){if(!e)return new k;for(var t,n=0,i=0,r=n,o=i,a=new k,s=k.CMD,l=e.match(I),u=0;u<l.length;u++){for(var c,h=l[u],d=h.charAt(0),p=h.match(O)||[],f=p.length,m=0;m<f;m++)p[m]=parseFloat(p[m]);for(var g=0;g<f;){var v,y,x,b,_,w=n,C=i;switch(d){case"l":n+=p[g++],i+=p[g++],c=s.L,a.addData(c,n,i);break;case"L":n=p[g++],i=p[g++],c=s.L,a.addData(c,n,i);break;case"m":n+=p[g++],i+=p[g++],c=s.M,a.addData(c,n,i),r=n,o=i,d="l";break;case"M":n=p[g++],i=p[g++],c=s.M,a.addData(c,n,i),r=n,o=i,d="L";break;case"h":n+=p[g++],c=s.L,a.addData(c,n,i);break;case"H":n=p[g++],c=s.L,a.addData(c,n,i);break;case"v":i+=p[g++],c=s.L,a.addData(c,n,i);break;case"V":i=p[g++],c=s.L,a.addData(c,n,i);break;case"C":c=s.C,a.addData(c,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],i=p[g-1];break;case"c":c=s.C,a.addData(c,p[g++]+n,p[g++]+i,p[g++]+n,p[g++]+i,p[g++]+n,p[g++]+i),n+=p[g-2],i+=p[g-1];break;case"S":var S=n,A=i,M=a.len(),T=a.data;t===s.C&&(S+=n-T[M-4],A+=i-T[M-3]),c=s.C,w=p[g++],C=p[g++],n=p[g++],i=p[g++],a.addData(c,S,A,w,C,n,i);break;case"s":S=n,A=i;M=a.len(),T=a.data;t===s.C&&(S+=n-T[M-4],A+=i-T[M-3]),c=s.C,w=n+p[g++],C=i+p[g++],n+=p[g++],i+=p[g++],a.addData(c,S,A,w,C,n,i);break;case"Q":w=p[g++],C=p[g++],n=p[g++],i=p[g++],c=s.Q,a.addData(c,w,C,n,i);break;case"q":w=p[g++]+n,C=p[g++]+i,n+=p[g++],i+=p[g++],c=s.Q,a.addData(c,w,C,n,i);break;case"T":S=n,A=i;M=a.len(),T=a.data;t===s.Q&&(S+=n-T[M-4],A+=i-T[M-3]),n=p[g++],i=p[g++],c=s.Q,a.addData(c,S,A,n,i);break;case"t":S=n,A=i;M=a.len(),T=a.data;t===s.Q&&(S+=n-T[M-4],A+=i-T[M-3]),n+=p[g++],i+=p[g++],c=s.Q,a.addData(c,S,A,n,i);break;case"A":v=p[g++],y=p[g++],x=p[g++],b=p[g++],_=p[g++],D(w=n,C=i,n=p[g++],i=p[g++],b,_,v,y,x,c=s.A,a);break;case"a":v=p[g++],y=p[g++],x=p[g++],b=p[g++],_=p[g++],D(w=n,C=i,n+=p[g++],i+=p[g++],b,_,v,y,x,c=s.A,a)}}"z"!==d&&"Z"!==d||(c=s.Z,a.addData(c),n=r,i=o),t=c}return a.toStatic(),a}(e);return(t=t||{}).buildPath=function(e){var t;e.setData?(e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t)):n.rebuildPath(t=e)},t.applyTransform=function(e){r(n,e),this.dirty(!0)},t}t.createFromString=function(e,t){return new a(o(e,t))},t.extendFromString=function(e,t){return a.extend(o(e,t))},t.mergePath=function(e,t){for(var n=[],i=e.length,r=0;r<i;r++){var o=e[r];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}return(t=new a(t)).createPathProxy(),t.buildPath=function(e){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t)},t}},function(e,t){t.containStroke=function(e,t,n,i,r,o,a){if(0===r)return!1;var s=r,r=0;return!(t+s<a&&i+s<a||a<t-s&&a<i-s||e+s<o&&n+s<o||o<e-s&&o<n-s)&&(e===n?Math.abs(o-e)<=s/2:(n=(r=(t-i)/(e-n))*o-a+(e*i-n*t)/(e-n))*n/(r*r+1)<=s/2*s/2)}},function(e,t,n){var u=n(65).quadraticProjectPoint;t.containStroke=function(e,t,n,i,r,o,a,s,l){return 0!==a&&(!(t+a<l&&i+a<l&&o+a<l||l<t-a&&l<i-a&&l<o-a||e+a<s&&n+a<s&&r+a<s||s<e-a&&s<n-a&&s<r-a)&&u(e,t,n,i,r,o,s,l,null)<=a/2)}},function(e,t){var n=2*Math.PI;t.normalizeRadian=function(e){return(e%=n)<0&&(e+=n),e}},function(e,t){e.exports=function(e,t,n,i,r,o){if(t<o&&i<o||o<t&&o<i)return 0;if(i===t)return 0;var a=i<t?1:-1;return 1!=(o=(o-t)/(i-t))&&0!=o||(a=i<t?.5:-.5),(e=o*(n-e)+e)===r?1/0:r<e?a:0}},function(e,t,n){n=n(24).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}});e.exports=n},function(e,t,n){var i=n(25),l=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];e.exports=function(s){return i.browser.ie&&11<=i.browser.version?function(){var e,t=this.__clipPaths,n=this.style;if(t)for(var i=0;i<t.length;i++){var r=t[i],o=r&&r.shape,r=r&&r.type;if(o&&("sector"===r&&o.startAngle===o.endAngle||"rect"===r&&(!o.width||!o.height))){for(var a=0;a<l.length;a++)l[a][2]=n[l[a][0]],n[l[a][0]]=l[a][1];e=!0;break}}if(s.apply(this,arguments),e)for(a=0;a<l.length;a++)n[l[a][0]]=l[a][2]}:s}},function(e,t,n){var i=n(24),r=n(316),i=i.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){r.buildPath(e,t,!0)}});e.exports=i},function(e,t,n){var d=n(510),p=n(511);t.buildPath=function(e,t,n){var i=t.points,r=t.smooth;if(i&&2<=i.length){if(r&&"spline"!==r){var o=p(i,r,n,t.smoothConstraint);e.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];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{"spline"===r&&(i=d(i,n)),e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}},function(e,t,n){var i=n(24),r=n(316),i=i.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){r.buildPath(e,t,!1)}});e.exports=i},function(e,t,n){var i=n(24),a=n(195).subPixelOptimizeLine,s={},i=i.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n,i,r,o=this.subPixelOptimize?(a(s,t,this.style),n=s.x1,i=s.y1,r=s.x2,s.y2):(n=t.x1,i=t.y1,r=t.x2,t.y2),t=t.percent;0!==t&&(e.moveTo(n,i),t<1&&(r=n*(1-t)+r*t,o=i*(1-t)+o*t),e.lineTo(r,o))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}});e.exports=i},function(e,t,n){var i=n(10),n=i.makeInner,s=i.normalizeToArray,l=n();e.exports={clearColorPalette:function(){l(this).colorIdx=0,l(this).colorNameMap={}},getColorFromPalette:function(e,t,n){var i=l(t=t||this),r=i.colorIdx||0,o=i.colorNameMap=i.colorNameMap||{};if(o.hasOwnProperty(e))return o[e];var a=s(this.get("color",!0)),t=this.get("colorLayer",!0),n=null!=n&&t?function(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}(t,n):a;if((n=n||a)&&n.length){a=n[r];return e&&(o[e]=a),i.colorIdx=(r+1)%n.length,a}}}},function(e,t,n){var i=n(1),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];e.exports=function(t){i.each(r,function(e){this[e]=i.bind(t[e],t)},this)}},function(e,t,n){var i=n(30),r=n(151),o=n(61).detectSourceFormat,n=n(124).SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:n,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){o(this)}}),r.extend({type:"dataset"})},function(e,t,n){var c=n(78),i=n(95),r=n(79),o=n(313),h=n(194),a=n(529),s=n(318),l=n(24),u=n(315),d=n(317),p=n(196),f=n(192),m=n(35),g=n(308).createFromString,n=n(1),v=n.isString,y=n.extend,x=n.defaults,b=n.trim,_=n.each,w=/[\s,]+/;function C(e){for(9===(e=v(e)?(new DOMParser).parseFromString(e,"text/xml"):e).nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}function S(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}S.prototype.parse=function(e,t){t=t||{};var n=C(e);if(!n)throw new Error("Illegal svg");var i=new c;this._root=i;var r=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||t.width),e=parseFloat(n.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(e)&&(e=null),I(n,i,null,!0);for(var a,s,l,u=n.firstChild;u;)this._parseNode(u,i),u=u.nextSibling;return!r||4<=(s=b(r).split(w)).length&&(a={x:parseFloat(s[0]||0),y:parseFloat(s[1]||0),width:parseFloat(s[2]),height:parseFloat(s[3])}),a&&null!=o&&null!=e&&(l=E(a,o,e),t.ignoreViewBox||(s=i,(i=new c).add(s),s.scale=l.scale.slice(),s.position=l.position.slice())),t.ignoreRootClip||null==o||null==e||i.setClipPath(new h({shape:{x:0,y:0,width:o,height:e}})),{root:i,width:o,height:e,viewBoxRect:a,viewBoxTransform:l}},S.prototype._parseNode=function(e,t){var n,i,r,o,a=e.nodeName.toLowerCase();"defs"===a?this._isDefine=!0:"text"===a&&(this._isText=!0),this._isDefine?(o=M[a])&&(i=o.call(this,e),(r=e.getAttribute("id"))&&(this._defs[r]=i)):(o=A[a])&&(n=o.call(this,e,t),t.add(n));for(var s=e.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===a?this._isDefine=!1:"text"===a&&(this._isText=!1)},S.prototype._parseText=function(e,t){var n;1===e.nodeType&&(n=e.getAttribute("dx")||0,i=e.getAttribute("dy")||0,this._textX+=parseFloat(n),this._textY+=parseFloat(i));var i=new r({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});T(t,i),I(e,i,this._defs);e=i.style.fontSize;e&&e<9&&(i.style.fontSize=9,i.scale=i.scale||[1,1],i.scale[0]*=e/9,i.scale[1]*=e/9);e=i.getBoundingRect();return this._textX+=e.width,t.add(i),i};var A={g:function(e,t){var n=new c;return T(t,n),I(e,n,this._defs),n},rect:function(e,t){var n=new h;return T(t,n),I(e,n,this._defs),n.setShape({x:parseFloat(e.getAttribute("x")||0),y:parseFloat(e.getAttribute("y")||0),width:parseFloat(e.getAttribute("width")||0),height:parseFloat(e.getAttribute("height")||0)}),n},circle:function(e,t){var n=new o;return T(t,n),I(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),n},line:function(e,t){var n=new s;return T(t,n),I(e,n,this._defs),n.setShape({x1:parseFloat(e.getAttribute("x1")||0),y1:parseFloat(e.getAttribute("y1")||0),x2:parseFloat(e.getAttribute("x2")||0),y2:parseFloat(e.getAttribute("y2")||0)}),n},ellipse:function(e,t){var n=new a;return T(t,n),I(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),rx:parseFloat(e.getAttribute("rx")||0),ry:parseFloat(e.getAttribute("ry")||0)}),n},polygon:function(e,t){var n=(n=e.getAttribute("points"))&&k(n),n=new u({shape:{points:n||[]}});return T(t,n),I(e,n,this._defs),n},polyline:function(e,t){var n=new l;T(t,n),I(e,n,this._defs);e=(e=e.getAttribute("points"))&&k(e);return new d({shape:{points:e||[]}})},image:function(e,t){var n=new i;return T(t,n),I(e,n,this._defs),n.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),n},text:function(e,t){var n=e.getAttribute("x")||0,i=e.getAttribute("y")||0,r=e.getAttribute("dx")||0,o=e.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);o=new c;return T(t,o),I(e,o,this._defs),o},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||0,n=e.getAttribute("dy")||0,i=new c;return T(t,i),I(e,i,this._defs),this._textX+=r,this._textY+=n,i},path:function(e,t){var n=e.getAttribute("d")||"",n=g(n);return T(t,n),I(e,n,this._defs),n}},M={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),n=parseInt(e.getAttribute("y1")||0,10),i=parseInt(e.getAttribute("x2")||10,10),r=parseInt(e.getAttribute("y2")||0,10),r=new p(t,n,i,r);return function(e,t){var n=e.firstChild;for(;n;){var i,r;1===n.nodeType&&(i=0<(i=n.getAttribute("offset")).indexOf("%")?parseInt(i,10)/100:i?parseFloat(i):0,r=n.getAttribute("stop-color")||"#000000",t.addColorStop(i,r)),n=n.nextSibling}}(e,r),r},radialgradient:function(e){}};function T(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),x(t.__inheritedStyle,e.__inheritedStyle))}function k(e){for(var t=b(e).split(w),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),o=parseFloat(t[i+1]);n.push([r,o])}return n}var D={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-align":"textAlign","alignment-baseline":"textBaseline"};function I(e,t,n,i){var r,o=t.__inheritedStyle||{},a="text"===t.type;if(1===e.nodeType&&(function(e,t){e=e.getAttribute("transform");if(e){e=e.replace(/,/g," ");var n=null,i=[];e.replace(L,function(e,t,n){i.push(t,n)});for(var r=i.length-1;0<r;r-=2){var o=i[r],a=i[r-1];switch(n=n||m.create(),a){case"translate":o=b(o).split(w),m.translate(n,n,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=b(o).split(w),m.scale(n,n,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=b(o).split(w),m.rotate(n,n,parseFloat(o[0]));break;case"skew":o=b(o).split(w),console.warn("Skew transform is not supported yet");break;case"matrix":o=b(o).split(w);n[0]=parseFloat(o[0]),n[1]=parseFloat(o[1]),n[2]=parseFloat(o[2]),n[3]=parseFloat(o[3]),n[4]=parseFloat(o[4]),n[5]=parseFloat(o[5])}}t.setLocalTransform(n)}}(e,t),y(o,function(e){var t=e.getAttribute("style"),n={};if(!t)return n;var i,r,o={};P.lastIndex=0;for(;null!=(i=P.exec(t));)o[i[1]]=i[2];for(r in D)D.hasOwnProperty(r)&&null!=o[r]&&(n[D[r]]=o[r]);return n}(e)),!i))for(var s in D)!D.hasOwnProperty(s)||null!=(r=e.getAttribute(s))&&(o[D[s]]=r);var l=a?"textFill":"fill",i=a?"textStroke":"stroke";t.style=t.style||new f;var u=t.style;null!=o.fill&&u.set(l,N(o.fill,n)),null!=o.stroke&&u.set(i,N(o.stroke,n)),_(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(e){null!=o[e]&&u.set("lineWidth"===e&&a?"textStrokeWidth":e,parseFloat(o[e]))}),o.textBaseline&&"auto"!==o.textBaseline||(o.textBaseline="alphabetic"),"alphabetic"===o.textBaseline&&(o.textBaseline="bottom"),"start"===o.textAlign&&(o.textAlign="left"),"end"===o.textAlign&&(o.textAlign="right"),_(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(e){null!=o[e]&&u.set(e,o[e])}),o.lineDash&&(t.style.lineDash=b(o.lineDash).split(w)),u[i]&&"none"!==u[i]&&(t[i]=!0),t.__inheritedStyle=o}var O=/url\(\s*#(.*?)\)/;function N(e,t){var n=t&&e&&e.match(O);return n?t[b(n[1])]:e}var L=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var P=/([^\s:;]+)\s*:\s*([^:;]+)/g;function E(e,t,n){var i=t/e.width,r=n/e.height,r=Math.min(i,r);return{scale:[r,r],position:[-(e.x+e.width/2)*r+t/2,-(e.y+e.height/2)*r+n/2]}}t.parseXML=C,t.makeViewBoxTransform=E,t.parseSVG=function(e,t){return(new S).parse(e,t)}},function(e,t,n){var i=n(145);t.zrender=i;var r=n(35);t.matrix=r;i=n(20);t.vector=i;var o=n(1),r=n(55);t.color=r;var a=n(6),i=n(8);t.number=i;r=n(17);t.format=r;i=n(66),i.throttle;t.throttle=i.throttle;r=n(530);t.helper=r;i=n(328);t.parseGeoJSON=i;r=n(47);t.List=r;r=n(26);t.Model=r;r=n(68);t.Axis=r;n=n(25);t.env=n;var i=i,s={};o.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(e){s[e]=o[e]});var l={};o.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(e){l[e]=a[e]}),t.parseGeoJson=i,t.util=s,t.graphic=l},function(e,t,n){var i=n(1);e.exports=function(e){null!=e&&i.extend(this,e),this.otherDims={}}},function(e,t,n){var n=n(1),i=n.createHashMap,r=n.isObject,o=n.map;function a(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}a.createByAxisModel=function(e){var t=e.option,e=t.data,e=e&&o(e,l);return new a({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})};n=a.prototype;function s(e){return e._map||(e._map=i(e.categories))}function l(e){return r(e)&&null!=e.value?e.value:e+""}n.getOrdinal=function(e){return s(this).get(e)},n.parseAndCollect=function(e){var t=this._needCollect;if("string"!=typeof e&&!t)return e;if(t&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var n,i=s(this);return null==(n=i.get(e))&&(t?(n=this.categories.length,this.categories[n]=e,i.set(e,n)):n=NaN),n},e.exports=a},function(e,t,n){var a=n(8),s=a.round;function l(e){return a.getPrecisionSafe(e)+2}function i(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function u(e,t){isFinite(e[0])||(e[0]=t[0]),isFinite(e[1])||(e[1]=t[1]),i(e,0,t),i(e,1,t),e[0]>e[1]&&(e[0]=e[1])}t.intervalScaleNiceTicks=function(e,t,n,i){var r={},o=e[1]-e[0],t=r.interval=a.nice(o/t,!0);return null!=n&&t<n&&(t=r.interval=n),null!=i&&i<t&&(t=r.interval=i),i=r.intervalPrecision=l(t),u(r.niceTickExtent=[s(Math.ceil(e[0]/t)*t,i),s(Math.floor(e[1]/t)*t,i)],e),r},t.getIntervalPrecision=l,t.fixExtent=u},function(e,t,n){var o=n(1),i=n(153),a=n(8),r=n(154),s=i.prototype,l=r.prototype,u=a.getPrecisionSafe,c=a.round,h=Math.floor,d=Math.ceil,p=Math.pow,f=Math.log,m=i.extend({type:"log",base:10,$constructor:function(){i.apply(this,arguments),this._originalScale=new r},getTicks:function(e){var n=this._originalScale,i=this._extent,r=n.getExtent();return o.map(l.getTicks.call(this,e),function(e){var t=a.round(p(this.base,e)),t=e===i[0]&&n.__fixMin?g(t,r[0]):t;return t=e===i[1]&&n.__fixMax?g(t,r[1]):t},this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(e){return e=s.scale.call(this,e),p(this.base,e)},setExtent:function(e,t){var n=this.base;e=f(e)/f(n),t=f(t)/f(n),l.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=s.getExtent.call(this);t[0]=p(e,t[0]),t[1]=p(e,t[1]);var n=this._originalScale,e=n.getExtent();return n.__fixMin&&(t[0]=g(t[0],e[0])),n.__fixMax&&(t[1]=g(t[1],e[1])),t},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=f(e[0])/f(t),e[1]=f(e[1])/f(t),s.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},niceTicks:function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n==1/0||n<=0)){var i=a.quantity(n);for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[a.round(d(t[0]/i)*i),a.round(h(t[1]/i)*i)];this._interval=i,this._niceExtent=t}},niceExtent:function(e){l.niceExtent.call(this,e);var t=this._originalScale;t.__fixMin=e.fixMin,t.__fixMax=e.fixMax}});function g(e,t){return c(e,u(t))}o.each(["contain","normalize"],function(t){m.prototype[t]=function(e){return e=f(e)/f(this.base),s[t].call(this,e)}}),m.create=function(){return new m},e.exports=m},function(e,t,n){var o=n(1),a=n(329);function h(e,t,n){for(var i=[],r=t[0],o=t[1],a=0;a<e.length;a+=2){var s=(s=e.charCodeAt(a)-64)>>1^-(1&s),l=(l=e.charCodeAt(a+1)-64)>>1^-(1&l);s+=r,l+=o,i.push([(r=s)/n,(o=l)/n])}return i}e.exports=function(e,r){return function(e){if(!e.UTF8Encoding)return;var t=e.UTF8Scale;null==t&&(t=1024);for(var n=e.features,i=0;i<n.length;i++)for(var r=n[i].geometry,o=r.coordinates,a=r.encodeOffsets,s=0;s<o.length;s++){var l=o[s];if("Polygon"===r.type)o[s]=h(l,a[s],t);else if("MultiPolygon"===r.type)for(var u=0;u<l.length;u++){var c=l[u];l[u]=h(c,a[s][u],t)}}e.UTF8Encoding=!1}(e),o.map(o.filter(e.features,function(e){return e.geometry&&e.properties&&0<e.geometry.coordinates.length}),function(e){var t=e.properties,n=e.geometry,e=n.coordinates,i=[];"Polygon"===n.type&&i.push({type:"polygon",exterior:e[0],interiors:e.slice(1)}),"MultiPolygon"===n.type&&o.each(e,function(e){e[0]&&i.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})});e=new a(t[r||"name"],i,t.cp);return e.properties=t,e})}},function(e,t,n){var p=n(21),l=n(121),f=n(20),u=n(330);function i(e,t,n){this.name=e,this.geometries=t,n=n?[n[0],n[1]]:[(t=this.getBoundingRect()).x+t.width/2,t.y+t.height/2],this.center=n}i.prototype={constructor:i,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var t,e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],o=[],a=this.geometries,s=0;s<a.length;s++)"polygon"===a[s].type&&(t=a[s].exterior,l.fromPoints(t,r,o),f.min(n,n,r),f.max(i,i,o));return 0===s&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new p(n[0],n[1],i[0]-n[0],i[1]-n[1])},contain:function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++)if("polygon"===n[i].type){var o=n[i].exterior,a=n[i].interiors;if(u.contain(o,e[0],e[1])){for(var s=0;s<(a?a.length:0);s++)if(u.contain(a[s]))continue e;return!0}}return!1},transformTo:function(e,t,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i=i||n/o:n=o*i;for(var i=new p(e,t,n,i),a=r.calculateTransform(i),s=this.geometries,l=0;l<s.length;l++)if("polygon"===s[l].type){for(var u=s[l].exterior,c=s[l].interiors,h=0;h<u.length;h++)f.applyTransform(u[h],u[h],a);for(var d=0;d<(c?c.length:0);d++)for(h=0;h<c[d].length;h++)f.applyTransform(c[d][h],c[d][h],a)}(r=this._rect).copy(i),this.center=[r.x+r.width/2,r.y+r.height/2]},cloneShallow:function(e){e=new i(e=null==e?this.name:e,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}},e.exports=i},function(e,t,n){var l=n(312),i=1e-8;function u(e,t){return Math.abs(e-t)<i}t.contain=function(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var o=1;o<e.length;o++){var a=e[o];i+=l(r[0],r[1],a[0],a[1],t,n),r=a}var s=e[0];return u(r[0],s[0])&&u(r[1],s[1])||(i+=l(r[0],r[1],s[0],s[1],t,n)),0!==i}},function(e,t,n){var i=n(1),r=n(30),o=n(156),n=n(100),a=r.extend({type:"cartesian2dAxis",axis:null,init:function(){a.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){a.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){a.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function s(e,t){return t.type||(t.data?"category":"value")}i.merge(a.prototype,n);n={offset:0};o("x",a,s,n),o("y",a,s,n),e.exports=a},function(e,t,n){var i=n(1),r={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:"#333",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:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n={};n.categoryAxis=i.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),n.valueAxis=i.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},r),n.timeAxis=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},n.valueAxis),n.logAxis=i.defaults({scale:!0,logBase:10},n.valueAxis),e.exports=n},function(e,t,n){var i=n(31),r=n(62),i=i.extend({type:"series.__base_bar__",getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var n=t.dataToPoint(t.clampData(e)),i=this.getData(),e=i.getLayout("offset"),i=i.getLayout("size");return n[t.getBaseAxis().isHorizontal()?0:1]+=e+i/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});e.exports=i},function(e,t,n){var l=n(6),u=n(202).getDefaultLabel;function c(e,t){"outside"===e.textPosition&&(e.textPosition=t)}t.setLabel=function(e,t,n,i,r,o,a){var s=n.getModel("label"),n=n.getModel("emphasis.label");l.setLabelStyle(e,t,s,n,{labelFetcher:r,labelDataIndex:o,defaultText:u(r.getData(),o),isRectText:!0,autoColor:i}),c(e),c(t)}},function(e,t,n){var h=n(1);t.layout=function(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,e=[(c=i.getRect()).x,c.x+c.width,c.y,c.y+c.height],r={left:0,right:1,top:0,bottom:1,onZero:2},i=t.get("offset")||0,c="x"===u?[e[2]-i,e[3]+i]:[e[0]-i,e[1]+i];return a&&(i=a.toGlobalCoord(a.dataToCoord(0)),c[r.onZero]=Math.max(Math.min(i,c[1]),c[0])),o.position=["y"===u?c[r[l]]:e[0],"x"===u?c[r[l]]:e[3]],o.rotation=Math.PI/2*("x"===u?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?c[r[s]]-c[r.onZero]:0,t.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),h.retrieve(n.labelInside,t.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection),t=t.get("axisLabel.rotate"),o.labelRotate="top"===l?-t:t,o.z2=1,o}},function(e,t,n){var w=n(1),C=n(6);t.rectCoordAxisBuildSplitArea=function(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),n=o.getModel("areaStyle"),a=n.get("color"),s=i.coordinateSystem.getRect(),l=r.getTicksCoords({tickModel:o,clamp:!0});if(l.length){var u=a.length,c=e.__splitAreaColors,h=w.createHashMap(),d=0;if(c)for(var p=0;p<l.length;p++){var f=c.get(l[p].tickValue);if(null!=f){d=(f+(u-1)*p)%u;break}}for(var m=r.toGlobalCoord(l[0].coord),g=n.getAreaStyle(),a=w.isArray(a)?a:[a],p=1;p<l.length;p++){var v,y,x,b,_=r.toGlobalCoord(l[p].coord),m=r.isHorizontal()?(y=s.y,b=s.height,(v=m)+(x=_-v)):(v=s.x,x=s.width,(y=m)+(b=_-y)),_=l[p-1].tickValue;null!=_&&h.set(_,d),t.add(new C.Rect({anid:null!=_?"area_"+_:null,shape:{x:v,y:y,width:x,height:b},style:w.defaults({fill:a[d]},g),silent:!0})),d=(d+1)%u}e.__splitAreaColors=h}}},t.rectCoordAxisHandleRemove=function(e){e.__splitAreaColors=null}},function(e,t,n){var i=n(3);n(128),n(548),n(549),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},function(e,t,n){var a=n(1),s=n(10);e.exports=function(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData();return null==(t=s.queryDataIndex(o,e))||t<0||a.isArray(t)?{point:[]}:(r=o.getItemGraphicEl(t),e=n.coordinateSystem,n.getTooltipPosition?i=n.getTooltipPosition(t)||[]:e&&e.dataToPoint?i=e.dataToPoint(o.getValues(a.map(e.dimensions,function(e){return o.mapDimension(e)}),t,!0))||[]:r&&((t=r.getBoundingRect().clone()).applyTransform(r.transform),i=[t.x+t.width/2,t.y+t.height/2]),{point:i,el:r})}},function(e,t,n){var o=n(1),a=n(25),u=(0,n(10).makeInner)(),c=o.each;function h(e,t,n){e.handler("leave",null,n)}function d(e,t,n,i){t.handler(e,n,i)}t.register=function(e,t,n){var i,s,l;function r(e,a){s.on(e,function(t){var n,i,r,o=(n=l,{dispatchAction:r=function(e){var t=i[e.type];t?t.push(e):(e.dispatchAction=r,n.dispatchAction(e))},pendings:i={showTip:[],hideTip:[]}});c(u(s).records,function(e){e&&a(e,t,o.dispatchAction)}),function(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(o.pendings,l)})}a.node||(i=t.getZr(),u(i).records||(u(i).records={}),l=t,u(s=i).initialized||(u(s).initialized=!0,r("click",o.curry(d,"click")),r("mousemove",o.curry(d,"mousemove")),r("globalout",h)),(u(i).records[e]||(u(i).records[e]={})).handler=n)},t.unregister=function(e,t){a.node||(t=t.getZr(),(u(t).records||{})[e]&&(u(t).records[e]=null))}},function(e,t,n){var i=n(203),h=n(158),d=n(335),n=n(82),i=i.extend({makeElOption:function(e,t,n,i,r){var o,a=n.axis,s=a.grid,l=i.get("type"),u=p(s,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(t,!0));l&&"none"!==l&&(o=h.buildElStyle(i),(u=f[l](a,c,u)).style=o,e.graphicKey=u.type,e.pointer=u);s=d.layout(s.model,n);h.buildCartesianSingleLabelElOption(t,e,s,n,i,r)},getHandleTransform:function(e,t,n){var i=d.layout(t.axis.grid.model,t,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:h.getTransformedPosition(t.axis,e,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),n=p(o,r).getOtherAxis(r).getGlobalExtent(),o="x"===r.dim?0:1,r=e.position;r[o]+=t[o],r[o]=Math.min(a[1],r[o]),r[o]=Math.max(a[0],r[o]);n=(n[1]+n[0])/2,n=[n,n];n[o]=r[o];return{position:r,rotation:e.rotation,cursorPoint:n,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][o]}}});function p(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var f={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:h.makeLineShape([t,n[0]],[t,n[1]],o(e))}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:h.makeRectShape([t-i/2,n[0]],[i,r],o(e))}}};function o(e){return"x"===e.dim?0:1}n.registerAxisPointerClass("CartesianAxisPointer",i),e.exports=i},function(e,t,n){var i=n(3),a=n(1),s=n(26),l=n(10).isNameSpecified,n=n(67).legend.selector,r={all:{type:"all",title:a.clone(n.all)},inverse:{type:"inverse",title:a.clone(n.inverse)}},o=i.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},mergeOption:function(e){o.superCall(this,"mergeOption",e),this._updateSelector(e)},_updateSelector:function(e){var n=e.selector;!0===n&&(n=e.selector=["all","inverse"]),a.isArray(n)&&a.each(n,function(e,t){a.isString(e)&&(e={type:e}),n[t]=a.merge(e,r[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}t||this.select(e[0].get("name"))}},_updateData:function(i){var r=[],o=[];i.eachRawSeries(function(e){var t,n=e.name;o.push(n),e.legendVisualProvider?(n=e.legendVisualProvider.getAllNames(),i.isSeriesFiltered(e)||(o=o.concat(n)),n.length?r=r.concat(n):t=!0):t=!0,t&&l(e)&&r.push(e.name)}),this._availableNames=o;var e=this.get("data")||r,e=a.map(e,function(e){return new s(e="string"==typeof e||"number"==typeof e?{name:e}:e,this,this.ecModel)},this);this._data=e},getData:function(){return this._data},select:function(e){var t,n=this.option.selected;"single"===this.get("selectedMode")&&(t=this._data,a.each(t,function(e){n[e.get("name")]=!1})),n[e]=!0},unSelect:function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},toggleSelected:function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},allSelect:function(){var e=this._data,t=this.option.selected;a.each(e,function(e){t[e.get("name",!0)]=!0})},inverseSelect:function(){var e=this._data,t=this.option.selected;a.each(e,function(e){e=e.get("name",!0);t.hasOwnProperty(e)||(t[e]=!0),t[e]=!t[e]})},isSelected:function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&0<=a.indexOf(this._availableNames,e)},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},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,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth: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.exports=o},function(e,t,n){n(14).__DEV__;var i=n(3),w=n(1),C=n(42).createSymbol,S=n(6),u=n(343).makeBackground,f=n(15),g=w.curry,r=w.each,A=S.Group,i=i.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new A),this._backgroundEl,this.group.add(this._selectorGroup=new A),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(e,t,n){var i,r,o,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),e.get("show",!0)&&(i=e.get("align"),s=e.get("orient"),i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===s?"right":"left"),r=e.get("selector",!0),a=e.get("selectorPosition",!0),this.renderInner(i,e,t,n,r,s,a=r&&(!a||"auto"===a)?"horizontal"===s?"end":"start":a),o=e.getBoxLayoutParams(),t={width:n.getWidth(),height:n.getHeight()},s=e.get("padding"),n=f.getLayoutRect(o,t,s),a=this.layoutInner(e,i,n,l,r,a),s=f.getLayoutRect(w.defaults({width:a.width,height:a.height},o),t,s),this.group.attr("position",[s.x-a.x,s.y-a.y]),this.group.add(this._backgroundEl=u(a,e)))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(l,u,c,h,e,t,n){var d=this.getContentGroup(),p=w.createHashMap(),f=u.get("selectedMode"),m=[];c.eachRawSeries(function(e){e.get("legendHoverLink")||m.push(e.id)}),r(u.getData(),function(i,r){var e,t,n,o,a,s=i.get("name");this.newlineDisabled||""!==s&&"\n"!==s?(e=c.getSeriesByName(s)[0],p.get(s)||(e?(t=(a=e.getData()).getVisual("color"),n=a.getVisual("borderColor"),"function"==typeof t&&(t=t(e.getDataParams(0))),"function"==typeof n&&(n=n(e.getDataParams(0))),o=a.getVisual("legendSymbol")||"roundRect",a=a.getVisual("symbol"),this._createItem(s,r,i,u,o,a,l,t,n,f).on("click",g(v,s,null,h,m)).on("mouseover",g(y,e.name,null,h,m)).on("mouseout",g(x,e.name,null,h,m)),p.set(s,!0)):c.eachRawSeries(function(e){var t,n;p.get(s)||!e.legendVisualProvider||(t=e.legendVisualProvider).containName(s)&&(n=t.indexOfName(s),e=t.getItemVisual(n,"color"),n=t.getItemVisual(n,"borderColor"),this._createItem(s,r,i,u,"roundRect",null,l,e,n,f).on("click",g(v,null,s,h,m)).on("mouseover",g(y,null,s,h,m)).on("mouseout",g(x,null,s,h,m)),p.set(s,!0))},this))):d.add(new A({newline:!0}))},this),e&&this._createSelector(e,u,h,t,n)},_createSelector:function(e,o,a,t,n){var s=this.getSelectorGroup();r(e,function(e){!function(e){var t=e.type,n=new S.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:"all"===t?"legendAllSelect":"legendInverseSelect"})}});s.add(n);var i=o.getModel("selectorLabel"),r=o.getModel("emphasis.selectorLabel");S.setLabelStyle(n.style,n.hoverStyle={},i,r,{defaultText:e.title,isRectText:!1}),S.setHoverStyle(n)}(e)})},_createItem:function(e,t,n,i,r,o,a,s,l,u){var c=i.get("itemWidth"),h=i.get("itemHeight"),d=i.get("inactiveColor"),p=i.get("inactiveBorderColor"),f=i.get("symbolKeepAspect"),m=i.getModel("itemStyle"),g=i.isSelected(e),v=new A,y=n.getModel("textStyle"),x=n.get("icon"),b=n.getModel("tooltip"),_=b.parentModel,n=C(r=x||r,0,0,c,h,g?s:d,null==f||f);v.add(M(n,r,m,l,p,g)),x||!o||o===r&&"none"!==o||(f=C(o="none"===o?"circle":o,(c-(r=.8*h))/2,(h-r)/2,r,r,g?s:d,null==f||f),v.add(M(f,o,m,l,p,g)));l="left"===a?c+5:-5,p=a,c=i.get("formatter"),a=e;"string"==typeof c&&c?a=c.replace("{name}",null!=e?e:""):"function"==typeof c&&(a=c(e)),v.add(new S.Text({style:S.setTextStyle({},y,{text:a,x:l,y:h/2,textFill:g?y.getTextColor():d,textAlign:p,textVerticalAlign:"middle"})}));b=new S.Rect({shape:v.getBoundingRect(),invisible:!0,tooltip:b.get("show")?w.extend({content:e,formatter:_.get("formatter",!0)||function(){return e},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:e,$vars:["name"]}},b.option):null});return v.add(b),v.eachChild(function(e){e.silent=!0}),b.silent=!u,this.getContentGroup().add(v),S.setHoverStyle(v),v.__legendDataIndex=t,v},layoutInner:function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();f.box(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(r){f.box("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,n=0===p?"width":"height",r=0===p?"height":"width",e=0===p?"y":"x";"end"===o?h[p]+=l[n]+d:u[p]+=c[n]+d,h[1-p]+=l[r]/2-c[r]/2,s.attr("position",h),a.attr("position",u);s={x:0,y:0};return s[n]=l[n]+d+c[n],s[r]=Math.max(l[r],c[r]),s[e]=Math.min(0,c[e]+h[1-p]),s}return a.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function M(e,t,n,i,r,o){var a;return"line"!==t&&t.indexOf("empty")<0?(a=n.getItemStyle(),e.style.stroke=i,o||(a.stroke=r)):a=n.getItemStyle(["borderWidth","borderColor"]),e.setStyle(a)}function v(e,t,n,i){x(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),y(e,t,n,i)}function y(e,t,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function x(e,t,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}e.exports=i},function(e,t,n){var i=n(15),a=i.getLayoutRect,s=i.box,l=i.positionElement,r=n(17),o=n(6);t.layout=function(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},n=a(i,o,r);s(t.get("orient"),e,t.get("itemGap"),n.width,n.height),l(e,i,o,r)},t.makeBackground=function(e,t){var n=r.normalizeCssArray(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new o.Rect({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})}},function(e,t,n){},function(e,t,n){},function(e,t,n){var c=n(57).isDimensionStacked,h=n(1).map;t.prepareDataCoordInfo=function(e,t,n){var i,r=e.getBaseAxis(),o=function(e,t){var n=0,e=e.scale.getExtent();"start"===t?n=e[0]:"end"===t?n=e[1]:0<e[0]?n=e[0]:e[1]<0&&(n=e[1]);return n}(u=e.getOtherAxis(r),n),a=r.dim,s=u.dim,l=t.mapDimension(s),n=t.mapDimension(a),r="x"===s||"radius"===s?1:0,u=h(e.dimensions,function(e){return t.mapDimension(e)}),e=t.getCalculationInfo("stackResultDimension");return(i|=c(t,u[0]))&&(u[0]=e),(i|=c(t,u[1]))&&(u[1]=e),{dataDimsForPoint:u,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!i,valueDim:l,baseDim:n,baseDataOffset:r,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}},t.getStackedOnPoint=function(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}},function(e,t,n){var i=n(24),_=n(20),r=n(314),w=_.min,C=_.max,S=_.scaleAndAdd,A=_.copy,M=[],T=[],k=[];function D(e){return isNaN(e[0])||isNaN(e[1])}function c(e,t,n,i,r,o,a,s,l,u,c){return("none"!==u&&u?function(e,t,n,i,r,o,a,s,l,u,c){for(var h=0,d=n,p=0;p<i;p++){var f,m,g,v=t[d];if(r<=d||d<0)break;if(D(v)){if(c){d+=o;continue}break}d===n?e[0<o?"moveTo":"lineTo"](v[0],v[1]):0<l?(f=t[h],g=(v[m="y"===u?1:0]-f[m])*l,A(T,f),T[m]=f[m]+g,A(k,v),k[m]=v[m]-g,e.bezierCurveTo(T[0],T[1],k[0],k[1],v[0],v[1])):e.lineTo(v[0],v[1]),h=d,d+=o}return p}:function(e,t,n,i,r,o,a,s,l,u,c){for(var h,d=0,p=n,f=0;f<i;f++){var m=t[p];if(r<=p||p<0)break;if(D(m)){if(c){p+=o;continue}break}if(p===n)e[0<o?"moveTo":"lineTo"](m[0],m[1]),A(T,m);else if(0<l){var g=p+o,v=t[g];if(c)for(;v&&D(t[g]);)v=t[g+=o];var y,x=.5,b=t[d];!(v=t[g])||D(v)?A(k,m):(D(v)&&!c&&(v=m),_.sub(M,v,b),b="x"===u||"y"===u?(y="x"===u?0:1,h=Math.abs(m[y]-b[y]),Math.abs(m[y]-v[y])):(h=_.dist(m,b),_.dist(m,v)),S(k,m,M,-l*(1-(x=b/(b+h))))),w(T,T,s),C(T,T,a),w(k,k,s),C(k,k,a),e.bezierCurveTo(T[0],T[1],k[0],k[1],m[0],m[1]),S(T,m,M,l*x)}else e.lineTo(m[0],m[1]);d=p,p+=o}return f}).apply(this,arguments)}function h(e,t){var n=[1/0,1/0],i=[-1/0,-1/0];if(t)for(var r=0;r<e.length;r++){var o=e[r];o[0]<n[0]&&(n[0]=o[0]),o[1]<n[1]&&(n[1]=o[1]),o[0]>i[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:t?n:i,max:t?i:n}}n=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:r(i.prototype.brush),buildPath:function(e,t){var n=t.points,i=0,r=n.length,o=h(n,t.smoothConstraint);if(t.connectNulls){for(;0<r&&D(n[r-1]);r--);for(;i<r&&D(n[i]);i++);}for(;i<r;)i+=c(e,n,i,r,r,1,o.min,o.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),i=i.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:r(i.prototype.brush),buildPath:function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length,a=t.smoothMonotone,s=h(n,t.smoothConstraint),l=h(i,t.smoothConstraint);if(t.connectNulls){for(;0<o&&D(n[o-1]);o--);for(;r<o&&D(n[r]);r++);}for(;r<o;){var u=c(e,n,r,o,o,1,s.min,s.max,t.smooth,a,t.connectNulls);c(e,i,r+u-1,u,o,-1,l.min,l.max,t.stackedOnSmooth,a,t.connectNulls),r+=u+1,e.closePath()}}});t.Polyline=n,t.Polygon=i},function(e,t,n){var i=n(3),r=n(1);e.exports=function(n,e){r.each(e,function(r){r.update="updateView",i.registerAction(r,function(e,t){var i={};return t.eachComponent({mainType:"series",subType:n,query:e},function(t){t[r.method]&&t[r.method](e.name,e.dataIndex);var n=t.getData();n.each(function(e){e=n.getName(e);i[e]=t.isSelected(e)||!1})}),{name:e.name,selected:i,seriesId:e.seriesId}})})}},function(e,t,n){var i=n(3);n(564),n(565);var r=n(132),o=n(566),n=n(133);i.registerVisual(r("funnel")),i.registerLayout(o),i.registerProcessor(n("funnel"))},function(e,t,n){var i=n(3);n(567),n(572),n(573);var r=n(132),o=n(83),a=n(574),s=n(133),n=n(575);i.registerVisual(r("radar")),i.registerVisual(o("radar","circle")),i.registerLayout(a),i.registerProcessor(s("radar")),i.registerPreprocessor(n)},function(e,t,n){var k=n(1),i=n(134),l=n(209),u=n(161).onIrrelevantElement,D=n(6),r=n(160),o=n(122).getUID,d=n(146);function I(e){var t=e.getItemStyle(),e=e.get("areaColor");return null!=e&&(t.fill=e),t}function p(n,e){e.eachChild(function(t){k.each(t.__regions,function(e){t.trigger(n.isSelected(e.name)?"emphasis":"normal")})})}function a(e,t){var n=new D.Group;this.uid=o("ec_map_draw"),this._controller=new i(e.getZr()),this._controllerHost={target:t?n:null},this.group=n,this._updateGroup=t,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new D.Group),n.add(this._backgroundGroup=new D.Group)}a.prototype={constructor:a,draw:function(f,e,t,n,i){var m="geo"===f.mainType,g=f.getData&&f.getData();m&&e.eachComponent({mainType:"series",subType:"map"},function(e){g||e.getHostGeoModel()!==f||(g=e.getData())});var r=f.coordinateSystem;this._updateBackground(r);var o,v,y=this._regionsGroup,x=this.group,a=r.getTransformInfo(),b=!y.childAt(0)||i;b?(x.transform=a.roamTransform,x.decomposeTransform(),x.dirty()):((o=new d).transform=a.roamTransform,o.decomposeTransform(),i={scale:o.scale,position:o.position},v=o.scale,D.updateProps(x,i,f));var _=a.rawScale,w=a.rawPosition;y.removeAll();var s,l,u,c,h,C=["itemStyle"],S=["emphasis","itemStyle"],A=["label"],M=["emphasis","label"],T=k.createHashMap();k.each(r.regions,function(e){var t=T.get(e.name)||T.set(e.name,new D.Group),o=new D.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});t.add(o);var n,i=f.getRegionModel(e.name)||f,r=i.getModel(C),a=i.getModel(S),s=I(r),l=I(a),u=i.getModel(A),c=i.getModel(M);g&&(n=g.indexOfName(e.name),(p=g.getItemVisual(n,"color",!0))&&(s.fill=p));function h(e){return[e[0]*_[0]+w[0],e[1]*_[1]+w[1]]}k.each(e.geometries,function(e){if("polygon"===e.type){for(var t=[],n=0;n<e.exterior.length;++n)t.push(h(e.exterior[n]));o.shape.paths.push(new D.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}));for(n=0;n<(e.interiors?e.interiors.length:0);++n){for(var i=e.interiors[n],t=[],r=0;r<i.length;++r)t.push(h(i[r]));o.shape.paths.push(new D.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}))}}}),o.setStyle(s),o.style.strokeNoScale=!0,o.culling=!0;var d,r=u.get("show"),a=c.get("show"),p=g&&isNaN(g.get(g.mapDimension("value"),n)),s=g&&g.getItemLayout(n);(m||p&&(r||a)||s&&s.showLabel)&&(a=m?e.name:n,(!g||0<=n)&&(d=f),s=new D.Text({position:h(e.center.slice()),scale:[1/x.scale[0],1/x.scale[1]],z2:10,silent:!0}),D.setLabelStyle(s.style,s.hoverStyle={},u,c,{labelFetcher:d,labelDataIndex:a,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),b||(a=[1/v[0],1/v[1]],D.updateProps(s,{scale:a},f)),t.add(s)),g?g.setItemGraphicEl(n,t):(i=f.getRegionModel(e.name),o.eventData={componentType:"geo",componentIndex:f.componentIndex,geoIndex:f.componentIndex,name:e.name,region:i&&i.option||{}}),(t.__regions||(t.__regions=[])).push(e),t.highDownSilentOnTouch=!!f.get("selectedMode"),D.setHoverStyle(t,l),y.add(t)}),this._updateController(f,e,t),s=this,l=f,c=t,h=n,(u=y).off("click"),u.off("mousedown"),l.get("selectedMode")&&(u.on("mousedown",function(){s._mouseDownFlag=!0}),u.on("click",function(e){if(s._mouseDownFlag){s._mouseDownFlag=!1;for(var t=e.target;!t.__regions;)t=t.parent;t&&((e={type:("geo"===l.mainType?"geo":"map")+"ToggleSelect",batch:k.map(t.__regions,function(e){return{name:e.name,from:h.uid}})})[l.mainType+"Id"]=l.id,c.dispatchAction(e),p(l,u))}})),p(f,y)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&r.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){e=e.map;this._mapName!==e&&k.each(r.makeGraphic(e,this.uid),function(e){this._backgroundGroup.add(e)},this),this._mapName=e},_updateController:function(i,e,r){var o=i.coordinateSystem,t=this._controller,n=this._controllerHost;n.zoomLimit=i.get("scaleLimit"),n.zoom=o.getZoom(),t.enable(i.get("roam")||!1);var a=i.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=i.id,e}t.off("pan").on("pan",function(e){this._mouseDownFlag=!1,l.updateViewOnPan(n,e.dx,e.dy),r.dispatchAction(k.extend(s(),{dx:e.dx,dy:e.dy}))},this),t.off("zoom").on("zoom",function(e){var t;this._mouseDownFlag=!1,l.updateViewOnZoom(n,e.scale,e.originX,e.originY),r.dispatchAction(k.extend(s(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup&&(t=this.group.scale,this._regionsGroup.traverse(function(e){"text"===e.type&&e.attr("scale",[1/t[0],1/t[1]])}))},this),t.setPointerChecker(function(e,t,n){return o.getViewRectAfterRoam().contain(t,n)&&!u(e,r,i)})}},e.exports=a},function(e,t,n){var n=n(3),i="\0_ec_interaction_mutex";function r(e){return e[i]||(e[i]={})}n.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),t.take=function(e,t,n){r(e)[t]=n},t.release=function(e,t,n){(e=r(e))[t]===n&&(e[t]=null)},t.isTaken=function(e,t){return!!r(e)[t]}},function(e,t,n){var i=n(3),o=n(1),a=n(210).updateCenterAndZoom;i.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(i,e){var r=i.componentType||"series";e.eachComponent({mainType:r,query:i},function(e){var t,n=e.coordinateSystem;"geo"===n.type&&(t=a(n,i,e.get("scaleLimit")),e.setCenter&&e.setCenter(t.center),e.setZoom&&e.setZoom(t.zoom),"series"===r&&o.each(e.seriesGroup,function(e){e.setCenter(t.center),e.setZoom(t.zoom)}))})})},function(e,t,n){var i=n(53),r=n(770);n(771),n(772),i.registerCoordinateSystem("bmap",r),i.registerAction({type:"bmapRoam",event:"bmapRoam",update:"updateLayout"},function(e,t){t.eachComponent("bmap",function(e){var t=e.getBMap(),n=t.getCenter();e.setCenterAndZoom([n.lng,n.lat],t.getZoom())})});t.version="1.0.0"},function(e,t,n){var i=n(3);n(589),n(590);var r=n(83),o=n(130);n(127),i.registerVisual(r("scatter","circle")),i.registerLayout(o("scatter"))},function(e,t,n){var i=n(3);n(592),n(593),n(594);var r=n(83),n=n(595);i.registerVisual(r("tree","circle")),i.registerLayout(n)},function(e,t,n){var r=n(1),o=r.each,a="\0__link_datas",s="\0__link_mainData";function l(e,t){var n;return(n=this)[s]===n?d((n=r.extend({},this[a]))[this.dataType]=t,n,e):p(t,this.dataType,this[s],e),t}function u(e,t){return e.struct&&e.struct.update(this),t}function c(n,i){return o(i[a],function(e,t){e!==i&&p(e.cloneShallow(),t,i,n)}),i}function h(e){var t=this[s];return null==e||null==t?t:t[a][e]}function d(n,e,i){n[a]={},o(e,function(e,t){p(e,t,n,i)})}function p(e,t,n,i){(n[a][t]=e)[s]=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=h}e.exports=function(n){var i=n.mainData,e=n.datas;e||(e={main:i},n.datasAttr={main:"data"}),n.datas=n.mainData=null,d(i,e,n),o(e,function(t){o(i.TRANSFERABLE_METHODS,function(e){t.wrapMethod(e,r.curry(l,n))})}),i.wrapMethod("cloneShallow",r.curry(c,n)),o(i.CHANGABLE_METHODS,function(e){i.wrapMethod(e,r.curry(u,n))}),r.assert(e[i.dataType]===i)}},function(e,t,n){var i=n(15);function p(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function f(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function r(e,t){return e.parentNode===t.parentNode?1:2}t.init=function(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t,n,i=[e];t=i.pop();)if(n=t.children,t.isExpand&&n.length)for(var r=n.length-1;0<=r;r--){var o=n[r];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(o)}},t.firstWalk=function(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;n.length?(function(e){var t=e.children,n=t.length,i=0,r=0;for(;0<=--n;){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(e),n=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2,r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-n):e.hierNode.prelim=n):r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r)),e.parentNode.hierNode.defaultAncestor=function(e,t,n,i){if(t){for(var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=p(s),o=f(o),s&&o;){r=p(r),a=f(a),r.hierNode.ancestor=e;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);0<d&&(function(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}(function(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}(s,e,n),e,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!p(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!f(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)},t.secondWalk=function(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier},t.separation=function(e){return arguments.length?e:r},t.radialCoordinate=function(e,t){var n={};return e-=Math.PI/2,n.x=t*Math.cos(e),n.y=t*Math.sin(e),n},t.getViewRect=function(e,t){return i.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}},function(e,t,n){var f=n(1),m=n(47),g=n(607),v=n(357),y=n(99),x=n(51),b=n(62);e.exports=function(e,t,n,i,r){for(var o=new g(i),a=0;a<e.length;a++)o.addNode(f.retrieve(e[a].id,e[a].name,a),a);for(var s,l=[],u=[],c=0,a=0;a<t.length;a++){var h=t[a],d=h.source,p=h.target;o.addEdge(d,p,c)&&(u.push(h),l.push(f.retrieve(h.id,d+" > "+p)),c++)}return"cartesian2d"===(i=n.get("coordinateSystem"))||"polar"===i?s=b(e,n):(i=(i=x.get(i))&&"view"!==i.type&&i.dimensions||[],f.indexOf(i,"value")<0&&i.concat(["value"]),i=y(e,{coordDimensions:i}),(s=new m(i,n)).initData(e)),(n=new m(["value"],n)).initData(u,l),r&&r(s,n),v({mainData:s,struct:o,structAttr:"graph",datas:{node:s,edge:n},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}},function(e,t,n){n=n(3);n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},function(e,t,n){var a=n(20),s=n(1),l=n(162).getCurvenessForEdge;function i(e,o){e.eachEdge(function(e,t){var n=s.retrieve3(e.getModel().get("lineStyle.curveness"),-l(e,o,t,!0),0),i=a.clone(e.node1.getLayout()),r=a.clone(e.node2.getLayout()),t=[i,r];+n&&t.push([(i[0]+r[0])/2-(i[1]-r[1])*n,(i[1]+r[1])/2-(r[0]-i[0])*n]),e.setLayout(t)})}t.simpleLayout=function(e){var t=e.coordinateSystem;t&&"view"!==t.type||((t=e.getGraph()).eachNode(function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])}),i(t,e))},t.simpleLayoutEdge=i},function(e,t,n){var c=n(20),i=n(216),d=i.getSymbolSize,p=i.getNodeGlobalScale,h=n(1),f=n(162).getCurvenessForEdge,m=Math.PI,g=[];var a={value:function(e,t,n,i,r,o,a,s){var l=0,u=i.getSum("value"),c=2*Math.PI/(u||s);n.eachNode(function(e){var t=e.getValue("value"),t=c*(u?t:1)/2;l+=t,e.setLayout([r*Math.cos(l)+o,r*Math.sin(l)+a]),l+=t})},symbolSize:function(e,t,n,i,r,o,a,s){var l=0;g.length=s;var u=p(e);n.eachNode(function(e){var t=d(e);(t=isNaN(t)?2:t)<0&&(t=0),t*=u;t=Math.asin(t/2/r);isNaN(t)&&(t=m/2),g[e.dataIndex]=t,l+=2*t});var c=(2*m-l)/s/2,h=0;n.eachNode(function(e){var t=c+g[e.dataIndex];h+=t,e.setLayout([r*Math.cos(h)+o,r*Math.sin(h)+a]),h+=t})}};t.circularLayout=function(s,e){var t,n,l,u,i,r,o=s.coordinateSystem;o&&"view"!==o.type||(r=o.getBoundingRect(),n=(t=s.getData()).graph,l=r.width/2+r.x,u=r.height/2+r.y,i=Math.min(r.width,r.height)/2,r=t.count(),t.setLayout({cx:l,cy:u}),r&&(a[e](s,o,n,t,i,l,u,r),n.eachEdge(function(e,t){var n,i=h.retrieve3(e.getModel().get("lineStyle.curveness"),f(e,s,t),0),r=c.clone(e.node1.getLayout()),o=c.clone(e.node2.getLayout()),a=(r[0]+o[0])/2,t=(r[1]+o[1])/2;+i&&(n=[l*(i*=3)+a*(1-i),u*i+t*(1-i)]),e.setLayout([r,o,n])})))}},function(e,t,n){n(620),n(621)},function(e,t,n){var i=n(3),r=n(1),o=n(66),a=n(624);n(365),n(627),n(629);i.extendComponentView({type:"parallel",render:function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},r.each(s,function(e,t){n.getZr().on(t,this._handlers[t]=r.bind(e,this))},this)),o.createOrUpdate(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},dispose:function(e,n){r.each(this._handlers,function(e,t){n.getZr().off(t,e)}),this._handlers=null},_throttledDispatchExpand:function(e){this._dispatchExpand(e)},_dispatchExpand:function(e){e&&this._api.dispatchAction(r.extend({type:"parallelAxisExpand"},e))}});var s={mousedown:function(e){l(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(l(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(5<Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))return;e=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==e.behavior&&this._dispatchExpand({axisExpandWindow:e.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){var t,n;!this._mouseDownPoint&&l(this,"mousemove")&&("jump"===(e=(n=(t=this._model).coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY])).behavior)&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===e?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===e&&null}))}};function l(e,t){e=e._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}i.registerPreprocessor(a)},function(e,t,n){var a=n(625);n(51).register("parallel",{create:function(i,r){var o=[];return i.eachComponent("parallel",function(e,t){var n=new a(e,i,r);n.name="parallel_"+t,n.resize(e,r),(e.coordinateSystem=n).model=e,o.push(n)}),i.eachSeries(function(e){var t;"parallel"===e.get("coordinateSystem")&&(t=i.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0],e.coordinateSystem=t.coordinateSystem)}),o}})},function(e,t,n){var i=n(21),a=n(161).onIrrelevantElement,r=n(6);function s(e){return i.create(e)}t.makeRectPanelClipPath=function(n){return n=s(n),function(e,t){return r.clipPointsByRect(e,n)}},t.makeLinearBrushOtherExtent=function(n,i){return n=s(n),function(e){var t=null!=i?i:e,e=t?n.width:n.height,t=t?n.x:n.y;return[t,t+(e||0)]}},t.makeRectIsTargetByCursor=function(i,r,o){return i=s(i),function(e,t,n){return i.contain(t[0],t[1])&&!a(e,r,o)}}},function(e,t,n){var i=n(3);n(635),n(636),n(637);var r=n(638),n=n(639);i.registerLayout(r),i.registerVisual(n)},function(e,t,n){var u=n(101),c=n(1),h=n(125).getDimensionTypeByAxis,d=n(61).makeSeriesEncodeForAxisCoordSys;t.seriesModelMixin={_baseAxisDim:null,getInitialData:function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l,t=["x","y"],a="horizontal"===e.layout?0:1,s=this._baseAxisDim=t[a],t=t[1-a],r=[r,o],o=r[a].get("type"),r=r[1-a].get("type"),a=e.data;a&&i&&(l=[],c.each(a,function(e,t){var n;e.value&&c.isArray(e.value)?(n=e.value.slice(),e.value.unshift(t)):c.isArray(e)?(n=e.slice(),e.unshift(t)):n=e,l.push(n)}),e.data=l);e=this.defaultValueDimensions,r=[{name:s,type:h(o),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:t,type:h(r),dimsDef:e.slice()}];return u(this,{coordDimensions:r,dimensionsCount:e.length+1,encodeDefaulter:c.curry(d,r,this)})},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}}},function(e,t,n){var i=n(3);n(645),n(646);var r=n(647),o=n(648),n=n(649);i.registerPreprocessor(r),i.registerVisual(o),i.registerLayout(n)},function(e,t,n){var i=n(6),r=n(215),c=n(1),s=n(42).createSymbol,h=n(20),d=n(65);function o(e,t,n){i.Group.call(this),this.add(this.createLine(e,t,n)),this._updateEffectSymbol(e,t)}n=o.prototype;n.createLine=function(e,t,n){return new r(e,t,n)},n._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");c.isArray(i)||(i=[i,i]);var o=n.get("color")||e.getItemVisual(t,"color"),a=this.childAt(1);this._symbolType!==r&&(this.remove(a),(a=s(r,-.5,-.5,1,1,o)).z2=100,a.culling=!0,this.add(a)),a&&(a.setStyle("shadowColor",o),a.setStyle(n.getItemStyle(["color"])),a.attr("scale",i),a.setColor(o),a.attr("scale",i),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(e,n,t))},n._updateEffectAnimation=function(t,e,n){var i,r,o,a,s,l,u=this.childAt(1);u&&(i=this,r=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),l=e.get("constantSpeed"),e="function"==typeof(s=c.retrieve(e.get("delay"),function(e){return e/t.count()*o/3})),u.ignore=!0,this.updateAnimationPoints(u,r),(o=0<l?this.getLineLength(u)/l*1e3:o)===this._period&&a===this._loop||(u.stopAnimation(),l=s,e&&(l=s(n)),0<u.__t&&(l=-o*u.__t),u.__t=0,l=u.animate("",a).when(o,{__t:1}).delay(l).during(function(){i.updateSymbolPosition(u)}),a||l.done(function(){i.remove(u)}),l.start()),this._period=o,this._loop=a)},n.getLineLength=function(e){return h.dist(e.__p1,e.__cp1)+h.dist(e.__cp1,e.__p2)},n.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},n.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},n.updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t,o=e.position,a=[o[0],o[1]],s=d.quadraticAt,l=d.quadraticDerivativeAt;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var u,s=l(t[0],i[0],n[0],r),n=l(t[1],i[1],n[1],r);e.rotation=-Math.atan2(n,s)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(u=1.05*h.dist(a,o),e.attr("scale",[e.scale[0],u]),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?(u=2*h.dist(t,o),e.attr("scale",[e.scale[0],u])):e.attr("scale",this._symbolScale)),e.__lastT=e.__t,e.ignore=!1},n.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},c.inherits(o,i.Group),e.exports=o},function(e,t,n){var s=n(6),l=n(1);function i(e,t,n){s.Group.call(this),this._createPolyline(e,t,n)}n=i.prototype;n._createPolyline=function(e,t,n){var i=e.getItemLayout(t),i=new s.Polyline({shape:{points:i}});this.add(i),this._updateCommonStl(e,t,n)},n.updateData=function(e,t,n){var i=e.hostModel,r=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};s.updateProps(r,o,i,t),this._updateCommonStl(e,t,n)},n._updateCommonStl=function(e,t,n){var i=this.childAt(0),r=e.getItemModel(t),o=e.getItemVisual(t,"color"),a=n&&n.lineStyle,t=n&&n.hoverLineStyle;n&&!e.hasItemOption||(a=r.getModel("lineStyle").getLineStyle(),t=r.getModel("emphasis.lineStyle").getLineStyle()),i.useStyle(l.defaults({strokeNoScale:!0,fill:"none",stroke:o},a)),i.hoverStyle=t,s.setHoverStyle(this)},n.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},l.inherits(i,s.Group),e.exports=i},function(e,t,n){n={seriesType:"lines",plan:n(98)(),reset:function(f){var m=f.coordinateSystem,g=f.get("polyline"),v=f.pipelineContext.large;return{progress:function(e,t){var n=[];if(v){var i,r=e.end-e.start;if(g){for(var o=0,a=e.start;a<e.end;a++)o+=f.getLineCoordsCount(a);i=new Float32Array(r+2*o)}else i=new Float32Array(4*r);for(var s=0,l=[],a=e.start;a<e.end;a++){var u=f.getLineCoords(a,n);g&&(i[s++]=u);for(var c=0;c<u;c++)l=m.dataToPoint(n[c],!1,l),i[s++]=l[0],i[s++]=l[1]}t.setLayout("linesPoints",i)}else for(a=e.start;a<e.end;a++){var h=t.getItemModel(a),u=f.getLineCoords(a,n),d=[];if(g)for(var p=0;p<u;p++)d.push(m.dataToPoint(n[p]));else{d[0]=m.dataToPoint(n[0]),d[1]=m.dataToPoint(n[1]);h=h.get("lineStyle.curveness");+h&&(d[2]=[(d[0][0]+d[1][0])/2-(d[0][1]-d[1][1])*h,(d[0][1]+d[1][1])/2-(d[1][0]-d[0][0])*h])}t.setItemLayout(a,d)}}}}};e.exports=n},function(e,t,n){n(660),n(661)},function(e,t,n){var i=n(3);n(667),n(670),n(671),n(128),n(672),i.extendComponentView({type:"single"})},function(e,t,n){var s=n(1);t.layout=function(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,r={},o=i.position,a=i.orient,i={horizontal:{top:(n=[(i=n.getRect()).x,i.x+i.width,i.y,i.y+i.height])[2],bottom:n[3]},vertical:{left:n[0],right:n[1]}};return r.position=["vertical"===a?i.vertical[o]:n[0],"horizontal"===a?i.horizontal[o]:n[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],e.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),s.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection),null==(t=t.rotate)&&(t=e.get("axisLabel.rotate")),r.labelRotation="top"===o?-t:t,r.z2=1,r}},function(e,t,n){n(14).__DEV__;var l=n(1),i=n(6),r=n(10),o=n(366),u=l.each,c=l.indexOf,a=l.curry,s=["dataToPoint","pointToData"],h=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function d(e,t,n){var i=this._targetInfoList=[],r={},o=f(t,e);u(m,function(e,t){n&&n.include&&!(0<=c(n.include,t))||e(o,i,r)})}n=d.prototype;function p(e){return e[0]>e[1]&&e.reverse(),e}function f(e,t){return r.parseFinder(e,t,{includeMainTypes:h})}n.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,function(e,t,n){(e.coordRanges||(e.coordRanges=[])).push(t),e.coordRange||(e.coordRange=t,t=y[e.brushType](0,n,t),e.__rangeOffset={offset:b[e.brushType](t.values,e.range,[1,1]),xyMinMax:t.xyMinMax})})},n.matchOutputRanges=function(e,i,r){u(e,function(n){var e=this.findTargetInfo(n,i);e&&!0!==e&&l.each(e.coordSyses,function(e){var t=y[n.brushType](1,e,n.range);r(n,t.values,e,i)})},this)},n.setInputRanges=function(e,i){u(e,function(e){var t,n=this.findTargetInfo(e,i);e.range=e.range||[],n&&!0!==n&&(e.panelId=n.panelId,t=y[e.brushType](0,n.coordSys,e.coordRange),n=e.__rangeOffset,e.range=n?b[e.brushType](t.values,n.offset,function(e,t){e=w(e),t=w(t),t=[e[0]/t[0],e[1]/t[1]];return isNaN(t[0])&&(t[0]=1),isNaN(t[1])&&(t[1]=1),t}(t.xyMinMax,n.xyMinMax)):t.values)},this)},n.makePanelOpts=function(n,i){return l.map(this._targetInfoList,function(e){var t=e.getPanelRect();return{panelId:e.panelId,defaultBrushType:i&&i(e),clipPath:o.makeRectPanelClipPath(t),isTargetByCursor:o.makeRectIsTargetByCursor(t,n,e.coordSysModel),getLinearBrushOtherExtent:o.makeLinearBrushOtherExtent(t)}})},n.controlSeries=function(e,t,n){n=this.findTargetInfo(e,n);return!0===n||n&&0<=c(n.coordSyses,t.coordinateSystem)},n.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=f(t,e),r=0;r<n.length;r++){var o=n[r],a=e.panelId;if(a){if(o.panelId===a)return o}else for(r=0;r<g.length;r++)if(g[r](i,o))return o}return!0};var m={grid:function(e,i){var r=e.xAxisModels,o=e.yAxisModels,e=e.gridModels,t=l.createHashMap(),a={},s={};(r||o||e)&&(u(r,function(e){e=e.axis.grid.model;t.set(e.id,e),a[e.id]=!0}),u(o,function(e){e=e.axis.grid.model;t.set(e.id,e),s[e.id]=!0}),u(e,function(e){t.set(e.id,e),a[e.id]=!0,s[e.id]=!0}),t.each(function(e){var t=e.coordinateSystem,n=[];u(t.getCartesians(),function(e,t){(0<=c(r,e.getAxis("x").model)||0<=c(o,e.getAxis("y").model))&&n.push(e)}),i.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:n[0],coordSyses:n,getPanelRect:v.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,n){u(e.geoModels,function(e){var t=e.coordinateSystem;n.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:t,coordSyses:[t],getPanelRect:v.geo})})}},g=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,e=e.gridModel;return(e=!(e=!e&&n?n.axis.grid.model:e)&&i?i.axis.grid.model:e)&&e===t.gridModel},function(e,t){e=e.geoModel;return e&&e===t.geoModel}],v={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(i.getTransform(e)),t}},y={lineX:a(x,0),lineY:a(x,1),rect:function(e,t,n){var i=t[s[e]]([n[0][0],n[1][0]]),n=t[s[e]]([n[0][1],n[1][1]]),n=[p([i[0],n[0]]),p([i[1],n[1]])];return{values:n,xyMinMax:n}},polygon:function(t,n,e){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:l.map(e,function(e){e=n[s[t]](e);return i[0][0]=Math.min(i[0][0],e[0]),i[1][0]=Math.min(i[1][0],e[1]),i[0][1]=Math.max(i[0][1],e[0]),i[1][1]=Math.max(i[1][1],e[1]),e}),xyMinMax:i}}};function x(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=p(l.map([0,1],function(e){return t?r.coordToData(r.toLocalCoord(i[e])):r.toGlobalCoord(r.dataToCoord(i[e]))})),n=[];return n[e]=o,n[1-e]=[NaN,NaN],{values:o,xyMinMax:n}}var b={lineX:a(_,0),lineY:a(_,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,n,i){return l.map(e,function(e,t){return[e[0]-i[0]*n[t][0],e[1]-i[1]*n[t][1]]})}};function _(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function w(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}e.exports=d},function(e,t,n){var a=n(1).each,i="\0_ec_hist_store";function s(e){return e[i]||(e[i]=[{}])}t.push=function(r,e){var o=s(r);a(e,function(e,t){for(var n,i=o.length-1;0<=i;i--)if(o[i][t])break;i<0&&((n=r.queryComponents({mainType:"dataZoom",subType:"select",id:t})[0])&&(n=n.getPercentRange(),o[0][t]={dataZoomId:t,start:n[0],end:n[1]}))}),o.push(e)},t.pop=function(e){var i=s(e),e=i[i.length-1];1<i.length&&i.pop();var r={};return a(e,function(e,t){for(var n=i.length-1;0<=n;n--)if(e=i[n][t]){r[t]=e;break}}),r},t.clear=function(e){e[i]=null},t.count=function(e){return s(e).length}},function(e,t,n){var i=n(3),y=n(1),r=n(21),u=n(163),x=n(724),s=n(66),o=n(376),b=["inBrush","outOfBrush"],c="__ecBrushSelect",h="__ecInBrushSelectEvent",n=i.PRIORITY.VISUAL.BRUSH;function a(t){t.eachComponent({mainType:"brush"},function(e){(e.brushTargetManager=new o(e.option,t)).setInputRanges(e.areas,t)})}function d(e,t){var n;e.isDisposed()||((n=e.getZr())[h]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[h]=!1)}function _(e,t,n,i){for(var r=0,o=t.length;r<o;r++){var a=t[r];if(e[a.brushType](i,n,a.selectors,a))return 1}}function w(e){var o=e.brushSelector;if(y.isString(o)){var t=[];return y.each(x,function(r,e){t[e]=function(e,t,n,i){e=t.getItemLayout(e);return r[o](e,n,i)}}),t}if(y.isFunction(o)){var n={};return y.each(x,function(e,t){n[t]=o}),n}return o}i.registerLayout(n,function(e,t,n){e.eachComponent({mainType:"brush"},function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})}),a(e)}),i.registerVisual(n,function(v,e,t){var r,o,n,i,a,l=[];v.eachComponent({mainType:"brush"},function(c,e){var a={brushId:c.id,brushIndex:e,brushName:c.name,areas:y.clone(c.areas),selected:[]};l.push(a);var t=c.option,n=t.brushLink,i=[],h=[],d=[],p=0;e||(r=t.throttleType,o=t.throttleDelay);var f=y.map(c.areas,function(e){return n=y.defaults({boundingRect:C[e.brushType](e)},e),i=n.selectors={},y.each(x[n.brushType],function(t,e){i[e]=function(e){return t(e,i,n)}}),n;var n,i}),s=u.createVisualMappings(c.option,b,function(e){e.mappingMethod="fixed"});function m(e){return"all"===n||i[e]}function g(e){return!!e.length}y.isArray(n)&&y.each(n,function(e){i[e]=1}),v.eachSeries(function(e,t){var n,i,r,o,a,s,l,u=d[t]=[];"parallel"===e.subType?(s=t,l=(a=e).coordinateSystem,p|=l.hasAxisBrushed(),m(s)&&l.eachActiveState(a.getData(),function(e,t){"active"===e&&(h[t]=1)})):(t=t,i=u,(o=w(n=e))&&!function(e,t){e=e.option.seriesIndex;return null!=e&&"all"!==e&&(y.isArray(e)?y.indexOf(e,t)<0:t!==e)}(c,t)&&(y.each(f,function(e){o[e.brushType]&&c.brushTargetManager.controlSeries(e,n,v)&&i.push(e),p|=g(i)}),m(t)&&g(i)&&(r=n.getData()).each(function(e){_(o,i,r,e)&&(h[e]=1)})))}),v.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var i=w(e),r=d[t],o=e.getData(),e=m(t)?function(e){return h[e]?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return _(i,r,o,e)?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"};(m(t)?p:g(r))&&u.applyVisual(b,s,o,e)})}),n=e,i=r,a=o,e=l,(t=t)&&((t=n.getZr())[h]||(t[c]||(t[c]=d),s.createOrUpdate(t,c,a,i)(n,e)))});var C={lineX:y.noop,lineY:y.noop,rect:function(e){return l(e.range)},polygon:function(e){for(var t=e.range,n=0,i=t.length;n<i;n++){var r,o=t[n];o[0]<(r=r||[[1/0,-1/0],[1/0,-1/0]])[0][0]&&(r[0][0]=o[0]),o[0]>r[0][1]&&(r[0][1]=o[0]),o[1]<r[1][0]&&(r[1][0]=o[1]),o[1]>r[1][1]&&(r[1][1]=o[1])}return r&&l(r)}};function l(e){return new r(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}t.layoutCovers=a},function(e,t,n){n(380),n(381)},function(e,t,n){n(219),n(103),n(104),n(752),n(753),n(221),n(222)},function(e,t,n){n(219),n(103),n(104),n(754),n(755),n(221),n(222)},function(e,t,n){var i=n(3),r=n(383);n(384),n(385),n(757),n(758),n(390),i.registerPreprocessor(r)},function(e,t,n){var i=n(1),r=i.each;function o(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}e.exports=function(e){e=e&&e.visualMap,i.isArray(e)||(e=e?[e]:[]),r(e,function(e){e&&(o(e,"splitList")&&!o(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList),(e=e.pieces)&&i.isArray(e)&&r(e,function(e){i.isObject(e)&&(o(e,"start")&&!o(e,"min")&&(e.min=e.start),o(e,"end")&&!o(e,"max")&&(e.max=e.end))}))})}},function(e,t,n){n(30).registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?0<e.pieces.length:0<e.splitNumber)&&!e.calculable?"piecewise":"continuous"})},function(e,t,n){var i=n(3),o=n(1),r=n(163),d=n(85),n=i.PRIORITY.VISUAL.COMPONENT;function a(e,t,n,i){for(var r=t.targetVisuals[i],o=d.prepareVisualTypes(r),a={color:e.getData().getVisual("color")},s=0,l=o.length;s<l;s++){var u=o[s],u=r["opacity"===u?"__alphaForOpacity":u];u&&u.applyVisual(n,c,h)}return a.color;function c(e){return a[e]}function h(e,t){a[e]=t}}i.registerVisual(n,{createOnAllSeries:!0,reset:function(n,e){var i=[];return e.eachComponent("visualMap",function(e){var t=n.pipelineContext;!e.isTargetSeries(n)||t&&t.large||i.push(r.incrementalApplyVisual(e.stateList,e.targetVisuals,o.bind(e.getValueState,e),e.getDataDimension(n.getData())))}),i}}),i.registerVisual(n,{createOnAllSeries:!0,reset:function(n,e){var i=n.getData(),r=[];e.eachComponent("visualMap",function(e){var t;e.isTargetSeries(n)&&(t=e.getVisualMeta(o.bind(a,null,n,e))||{stops:[],outerColors:[]},e=e.getDataDimension(i),null!=(e=i.getDimensionInfo(e))&&(t.dimension=e.index,r.push(t)))}),n.getData().setVisual("visualMeta",r)}})},function(e,t,n){var i=n(3),u=n(1),r=n(25),a=n(387),s=n(85),o=n(163),l=n(10),n=n(8),c=s.mapVisual,h=s.eachVisual,d=u.isArray,p=u.each,f=n.asc,m=n.linearMap,n=u.noop,n=i.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,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,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(e,t,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(e,n)},optionUpdated:function(e,t){var n=this.option;r.canvasSupported||(n.realtime=!1),t||o.replaceVisualOption(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(e){var t=this.stateList;e=u.bind(e,this),this.controllerVisuals=o.createVisualMappings(this.option.controller,t,e),this.targetVisuals=o.createVisualMappings(this.option.target,t,e)},getTargetSeriesIndices:function(){var e=this.option.seriesIndex,n=[];return null==e||"all"===e?this.ecModel.eachSeries(function(e,t){n.push(t)}):n=l.normalizeToArray(e),n},eachTargetSeries:function(t,n){u.each(this.getTargetSeriesIndices(),function(e){t.call(n,this.ecModel.getSeriesByIndex(e))},this)},isTargetSeries:function(t){var n=!1;return this.eachTargetSeries(function(e){e===t&&(n=!0)}),n},formatValueText:function(e,t,n){var i,r=this.option,o=r.precision,a=this.dataBound,r=r.formatter;return n=n||["<",">"],u.isArray(e)&&(e=e.slice(),i=!0),t=t?e:i?[s(e[0]),s(e[1])]:s(e),u.isString(r)?r.replace("{value}",i?t[0]:t).replace("{value2}",i?t[1]:t):u.isFunction(r)?i?r(e[0],e[1]):r(e):i?e[0]===a[0]?n[0]+" "+t[1]:e[1]===a[1]?n[1]+" "+t[0]:t[0]+" - "+t[1]:t;function s(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},resetExtent:function(){var e=this.option,e=f([e.min,e.max]);this._dataExtent=e},getDataDimension:function(e){var t=this.option.dimension,n=e.dimensions;if(null!=t||n.length){if(null!=t)return e.getDimension(t);for(var i=e.dimensions,r=i.length-1;0<=r;r--){var o=i[r];if(!e.getDimensionInfo(o).isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});u.merge(i,n),u.merge(r,n);var l=this.isCategory();function o(i){d(t.color)&&!i.inRange&&(i.inRange={color:t.color.slice().reverse()}),i.inRange=i.inRange||{color:e.get("gradientColor")},p(this.stateList,function(e){var t,n=i[e];u.isString(n)&&((t=a.get(n,"active",l))?(i[e]={},i[e][n]=t):delete i[e])},this)}o.call(this,i),o.call(this,r),function(e,t,n){var t=e[t],i=e[n];t&&!i&&(i=e[n]={},p(t,function(e,t){var n;!s.isValidType(t)||null!=(n=a.get(t,"inactive",l))&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}))}.call(this,i,"inRange","outOfRange"),function(r){var o=(r.inRange||{}).symbol||(r.outOfRange||{}).symbol,a=(r.inRange||{}).symbolSize||(r.outOfRange||{}).symbolSize,s=this.get("inactiveColor");p(this.stateList,function(e){var t=this.itemSize,n=r[e];null==(n=n||(r[e]={color:l?s:[s]})).symbol&&(n.symbol=o&&u.clone(o)||(l?"roundRect":["roundRect"])),null==n.symbolSize&&(n.symbolSize=a&&u.clone(a)||(l?t[0]:[t[0],t[0]])),n.symbol=c(n.symbol,function(e){return"none"===e||"square"===e?"roundRect":e});var i,e=n.symbolSize;null!=e&&(i=-1/0,h(e,function(e){i<e&&(i=e)}),n.symbolSize=c(e,function(e){return m(e,[0,i],[0,t[0]],!0)}))},this)}.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:n,getValueState:n,getVisualMeta:n});e.exports=n},function(e,t,n){var i=n(1),n={get:function(e,t,n){t=i.clone((r[e]||{})[t]);return n&&i.isArray(t)?t[t.length-1]:t}},r={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]}};e.exports=n},function(e,t,n){var i=n(3),c=n(1),r=n(6),o=n(17),a=n(15),h=n(85),i=i.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(e,t){this.ecModel=e,this.api=t,this.visualMapModel},render:function(e,t,n,i){!1!==(this.visualMapModel=e).get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(e){var t=this.visualMapModel,n=o.normalizeCssArray(t.get("padding")||0),i=e.getBoundingRect();e.add(new r.Rect({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},getControllerVisual:function(n,i,r){var e,t=(r=r||{}).forceState,o=this.visualMapModel,a={};function s(e){return a[e]}function l(e,t){a[e]=t}"symbol"===i&&(a.symbol=o.get("itemSymbol")),"color"===i&&(e=o.get("contentColor"),a.color=e);var u=o.controllerVisuals[t||o.getValueState(n)],o=h.prepareVisualTypes(u);return c.each(o,function(e){var t=u[e];r.convertOpacityToAlpha&&"opacity"===e&&(e="colorAlpha",t=u.__alphaForOpacity),h.dependsOn(e,i)&&t&&t.applyVisual(n,s,l)}),a[i]},positionGroup:function(e){var t=this.visualMapModel,n=this.api;a.positionElement(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:c.noop});e.exports=i},function(e,t,n){var i=n(1),h=n(15).getLayoutRect;t.getItemAlign=function(e,t,n){var i=e.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var e={width:t.getWidth(),height:t.getHeight()},o="horizontal"===i.orient?1:0,a=[["left","right","width"],["top","bottom","height"]],s=a[o],l=[0,null,10],u={},c=0;c<3;c++)u[a[1-o][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];return r=[["x","width",3],["y","height",0]][o],t=h(u,e,i.padding),s[(t.margin[r[2]]||0)+t[r[0]]+.5*t[r[1]]<.5*e[r[1]]?0:1]},t.makeHighDownBatch=function(e,t){return i.each(e||[],function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}},function(e,t,n){n(3).registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})})},function(e,t,n){var i=n(3),r=n(383);n(384),n(385),n(759),n(760),n(390),i.registerPreprocessor(r)},function(e,t,n){var i,r=n(25),o="urn:schemas-microsoft-com:vml",n="undefined"==typeof window?null:window,a=!1,s=n&&n.document;if(s&&!r.canvasSupported)try{s.namespaces.zrvml||s.namespaces.add("zrvml",o),i=function(e){return s.createElement("<zrvml:"+e+' class="zrvml">')}}catch(e){i=function(e){return s.createElement("<"+e+' xmlns="'+o+'" class="zrvml">')}}t.doc=s,t.createNode=function(e){return i(e)},t.initVML=function(){var e;!a&&s&&(a=!0,((e=s.styleSheets).length<31?s.createStyleSheet():e[0]).addRule(".zrvml","behavior:url(#default#VML)"))}},function(e,t,n){},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(5)),o=n(395),n=i(n(789)),a=r.default.prototype,r=r.default.util.defineReactive;r(a,"$vantLang","zh-CN"),r(a,"$vantMessages",{"zh-CN":n.default}),t.default={messages:function(){return a.$vantMessages[a.$vantLang]},use:function(e,t){var n;a.$vantLang=e,this.add(((n={})[e]=t,n))},add:function(e){(0,o.deepAssign)(a.$vantMessages,e=void 0===e?{}:e)}}},function(e,t,n){"use strict";t.__esModule=!0,t.deepAssign=l;var a=n(9),s=Object.prototype.hasOwnProperty;function l(r,o){return Object.keys(o).forEach(function(e){var t,n,i;t=r,e=(n=o)[i=e],(0,a.isDef)(e)&&(s.call(t,i)&&(0,a.isObject)(e)?t[i]=l(Object(t[i]),n[i]):t[i]=e)}),r}},function(e,t,n){"use strict";t.__esModule=!0,t.camelize=function(e){return e.replace(i,function(e,t){return t.toUpperCase()})},t.padZero=function(e,t){void 0===t&&(t=2);var n=e+"";for(;n.length<t;)n="0"+n;return n};var i=/-(\w)/g},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.cellProps=void 0;var i={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,clickable:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0}};t.cellProps=i},function(e,t,n){"use strict";t.__esModule=!0,t.context=void 0;t.context={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter(function(e){return e.vm===t})[0]}}},function(e,t,n){"use strict";t.__esModule=!0,t.PortalMixin=function(e){var e=void 0===e?{}:e,i=e.ref,r=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var e,t=this.getContainer,n=i?this.$refs[i]:this.$el;t?e="string"!=typeof(e=t)?e():document.querySelector(e):this.$parent&&(e=this.$parent.$el),e&&e!==n.parentNode&&e.appendChild(n),r&&r.call(this)}}}}},function(e,t,n){"use strict";t.__esModule=!0,t.sortChildren=function(e,t){var n,t=t.$vnode.componentOptions;t&&t.children&&(n=function(e){var n=[];return function t(e){e.forEach(function(e){n.push(e),e.componentInstance&&t(e.componentInstance.$children.map(function(e){return e.$vnode})),e.children&&t(e.children)})}(e),n}(t.children),e.sort(function(e,t){return n.indexOf(e.$vnode)-n.indexOf(t.$vnode)}))}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e){e.exports=JSON.parse('{"zh-CN":[{"name":"组件","groups":[{"groupName":"Mobile","list":[{"path":"/m-button","title":"Button 移动端按钮"},{"path":"/m-cell","title":"Cell 单元格"},{"path":"/m-cascader","title":"Cascader 级联选择"},{"path":"/m-field","title":"Field 输入框"},{"path":"/m-picker","title":"Picker 选择器"},{"path":"/m-number-keyboard","title":"NumberKeyboard 数字键盘"},{"path":"/m-password-input","title":"PasswordInput 密码输入框"},{"path":"/m-form","title":"Form 表单"},{"path":"/m-action-sheet","title":"ActionSheet 动作面板"},{"path":"/m-notify","title":"Notify 消息通知"},{"path":"/m-pull-refresh","title":"PullRefresh 下拉刷新"},{"path":"/m-swipe-cell","title":"SwipeCell 滑动单元格"},{"path":"/m-notice-bar","title":"NoticeBar 通知栏"},{"path":"/m-grid","title":"Grid 宫格"},{"path":"/m-index-bar","title":"IndexBar 索引栏"},{"path":"/m-sidebar","title":"Sidebar 侧边导航"},{"path":"/m-tree-select","title":"TreeSelect 分类选择"},{"path":"/m-breadcrumb-tree","title":"BreadcrumbTree 面包屑树形组件"}]}]}]}')},function(e,t,n){},function(e,t,n){e.exports=n.p+"static/start-1.fa54277.png"},function(e,t,n){e.exports=n.p+"static/start-2.2591c2c.png"},function(e,t,n){e.exports=n.p+"static/start-3.4073254.png"},function(e,t,n){e.exports=n.p+"static/start-4.2591c2c.png"},function(e,t,n){e.exports=n.p+"static/start-5.dcb57af.png"},function(e,t,n){e.exports=n.p+"static/start-6.9c8a263.png"},function(e,t,n){e.exports=n.p+"static/start-7.5461c80.png"},function(e,t,n){e.exports=n.p+"static/start-8.8335802.png"},function(e,t,n){e.exports=n.p+"static/start-9.0977a86.png"},function(e,t,n){e.exports=n.p+"static/start-10.9efde88.png"},function(e,t,n){e.exports=n.p+"static/start-11.bcea929.png"},function(e,t,n){e.exports=n.p+"static/start-12.ccf510c.png"},function(e,t,n){e.exports=n.p+"static/start-13.b4b4c40.png"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,a){var n=a(424),i=a(236),r=a(237);function o(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}(e.exports=o).prototype.clearCache=function(){this.cache={}},o.prototype.search=n("query"),o.prototype.similarSearch=i(n("similarQuery"),r("index.similarSearch(query[, callback])","index.search({ similarQuery: query }[, callback])")),o.prototype.browse=function(e,t,n){var i,r=a(425);0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(n=arguments[i=0],e=void 0):"number"==typeof arguments[0]?(i=arguments[0],"number"==typeof arguments[1]?o=arguments[1]:"function"==typeof arguments[1]&&(n=arguments[1],o=void 0),t=e=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(n=arguments[1]),t=arguments[0],e=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(n=arguments[1],t=void 0),t=r({},t||{},{page:i,hitsPerPage:o,query:e});var o=this.as._getSearchParams(t,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{params:o},hostType:"read",callback:n})},o.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},o.prototype.searchForFacetValues=function(e,t){var n=a(71),i=a(426);if(void 0===e.facetName||void 0===e.facetQuery)throw new Error("Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])");var r=e.facetName,e=i(n(e),function(e){return"facetName"===e}),e=this.as._getSearchParams(e,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(r)+"/query",hostType:"read",body:{params:e},callback:t})},o.prototype.searchFacet=i(function(e,t){return this.searchForFacetValues(e,t)},r("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),o.prototype._search=function(e,t,n,i){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:n,additionalUA:i})},o.prototype.getObject=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0);var i="";if(void 0!==t)for(var i="?attributes=",r=0;r<t.length;++r)0!==r&&(i+=","),i+=t[r];return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e)+i,hostType:"read",callback:n})},o.prototype.getObjects=function(e,t,n){var i=a(44),r=a(111);if(!i(e))throw new Error("Usage: index.getObjects(arrayOfObjectIDs[, callback])");var o=this;1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0);r={requests:r(e,function(e){e={indexName:o.indexName,objectID:e};return t&&(e.attributesToRetrieve=t.join(",")),e})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:r,callback:n})},o.prototype.as=null,o.prototype.indexName=null,o.prototype.typeAheadArgs=null,o.prototype.typeAheadValueOption=null},function(e,t,n){e.exports=function(o,a){return function(e,t,n){if("function"==typeof e&&"object"==typeof t||"object"==typeof n)throw new s.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof e?(n=e,e=""):1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0),"object"==typeof e&&null!==e?(t=e,e=void 0):null==e&&(e="");var i,r="";return void 0!==e&&(r+=o+"="+encodeURIComponent(e)),void 0!==t&&(t.additionalUA&&(i=t.additionalUA,delete t.additionalUA),r=this.as._getSearchParams(t,r)),this._search(r,a,n,i)}};var s=n(109)},function(e,t,n){var r=n(110);e.exports=function n(i){var e=Array.prototype.slice.call(arguments);return r(e,function(e){for(var t in e)e.hasOwnProperty(t)&&("object"==typeof i[t]&&"object"==typeof e[t]?i[t]=n({},i[t],e[t]):void 0!==e[t]&&(i[t]=e[t]))}),i}},function(e,t,o){e.exports=function(t,n){var e=o(880),i=o(110),r={};return i(e(t),function(e){!0!==n(e)&&(r[e]=t[e])}),r}},function(e,t,n){"use strict";var i=Object.prototype.toString;e.exports=function(e){var t=i.call(e);return"[object Arguments]"===t||"[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===i.call(e.callee)}},function(e,t){e.exports=function(e,t){t(e,0)}},function(e,t,n){"use strict";function o(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}e.exports=function(n,i,r,e){return i=i||"&",r=r||"=","object"==typeof(n=null===n?void 0:n)?s(l(n),function(e){var t=encodeURIComponent(o(e))+r;return a(n[e])?s(n[e],function(e){return t+encodeURIComponent(o(e))}).join(i):t+encodeURIComponent(o(n[e]))}).join(i):e?encodeURIComponent(o(e))+r+encodeURIComponent(o(n)):""};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var n=[],i=0;i<e.length;i++)n.push(t(e[i],i));return n}var l=Object.keys||function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var i={name:"main-layout",data:function(){return{lang:this.$route.meta.lang,navsData:[{path:"/intro-tis-app",name:"tis-app"},{path:"/quickstart",name:"快速开始",children:[{path:"/quick-start-1",name:"环境准备"},{path:"/quick-start-2",name:"下载模版"},{path:"/quick-start-3",name:"安装依赖"},{path:"/quick-start-4",name:"启动项目"},{path:"/quick-start-5",name:"框架中运行"},{path:"/quick-start-6",name:"热重载 (Hot reload)"},{path:"/quick-start-7",name:"错误提示"},{path:"/quick-start-8",name:"部署发布"}]},{path:"/catalog",name:"目录结构",children:[{path:"/catalog-1",name:"根目录"},{path:"/catalog-2",name:"/dist 目录"},{path:"/catalog-3",name:"/public 目录"},{path:"/catalog-4",name:"/src 目录"}]},{path:"/lifecycle",name:"生命周期",children:[{path:"/lifecycle-1",name:"bootstrap"},{path:"/lifecycle-2",name:"mount"},{path:"/lifecycle-3",name:"show"},{path:"/lifecycle-4",name:"hide"},{path:"/lifecycle-5",name:"unmount"}]},{name:"tis的API",path:"/tis-api",children:[{name:"全局变量",path:"/tis-api-1"},{name:"应用相关",path:"/tis-api-2"},{name:"浮窗相关",path:"/tis-api-3"},{name:"通信模块",path:"/tis-api-4"}]}]}}},n=(n(865),n(0)),i=Object(n.a)(i,function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"page-container page-guide"},[e("tis-row",[e("tis-col",{attrs:{xs:24,sm:5}},[e("side-nav",{attrs:{data:this.navsData,base:"/zh-CN/main-layout"}})],1),e("tis-col",{attrs:{xs:24,sm:19}},[e("router-view",{staticClass:"element-doc content main-layout-doc"})],1)],1)],1)},[],!1,null,null,null);t.default=i.exports},function(e,k,t){"use strict";!function(e){var i="undefined"!=typeof Map?Map:(Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(e){e=r(this.__entries__,e),e=this.__entries__[e];return e&&e[1]},t.prototype.set=function(e,t){var n=r(this.__entries__,e);~n?this.__entries__[n][1]=t:this.__entries__.push([e,t])},t.prototype.delete=function(e){var t=this.__entries__,e=r(t,e);~e&&t.splice(e,1)},t.prototype.has=function(e){return!!~r(this.__entries__,e)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t);function r(e,n){var i=-1;return e.some(function(e,t){return e[0]===n&&(i=t,!0)}),i}function t(){this.__entries__=[]}var n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),l="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},u=2;var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=(h.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},h.prototype.removeObserver=function(e){var t=this.observers_,e=t.indexOf(e);~e&&t.splice(e,1),!t.length&&this.connected_&&this.disconnect_()},h.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},h.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),0<e.length},h.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(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)},h.prototype.disconnect_=function(){n&&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)},h.prototype.onTransitionEnd_=function(e){var e=e.propertyName,t=void 0===e?"":e;a.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},h.getInstance=function(){return this.instance_||(this.instance_=new h),this.instance_},h.instance_=null,h);function h(){function e(){o&&(o=!1,i()),a&&n()}function t(){l(e)}function n(){var e=Date.now();if(o){if(e-s<u)return;a=!0}else a=!(o=!0),setTimeout(t,r);s=e}var i,r,o,a,s;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(i=this.refresh.bind(this),a=o=!(r=20),s=0,n)}var d=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},f=b(0,0,0,0);function m(e){return parseFloat(e)||0}function g(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.reduce(function(e,t){return e+m(n["border-"+t+"-width"])},0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var i=p(e).getComputedStyle(e),r=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],o=e["padding-"+r];t[r]=m(o)}return t}(i),o=r.left+r.right,a=r.top+r.bottom,s=m(i.width),l=m(i.height);return"border-box"===i.boxSizing&&(Math.round(s+o)!==t&&(s-=g(i,"left","right")+o),Math.round(l+a)!==n&&(l-=g(i,"top","bottom")+a)),(e=e)!==p(e).document.documentElement&&(t=Math.round(s+o)-t,n=Math.round(l+a)-n,1!==Math.abs(t)&&(s-=t),1!==Math.abs(n)&&(l-=n)),b(r.left,r.top,s,l)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function x(e){return n?y(e)?b(0,0,(t=(t=e).getBBox()).width,t.height):v(e):f;var t}function b(e,t,n,i){return{x:e,y:t,width:n,height:i}}var _=(w.prototype.isActive=function(){var e=x(this.target);return(this.contentRect_=e).width!==this.broadcastWidth||e.height!==this.broadcastHeight},w.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},w);function w(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}var C=function(e,t){var n,i,r,o=(n=(o=t).x,i=o.y,r=o.width,t=o.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(o.prototype),d(o,{x:n,y:i,width:r,height:t,top:i,right:n+r,bottom:t+i,left:n}),o);d(this,{target:e,contentRect:o})},S=(A.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(e)),this.controller_.addObserver(this),this.controller_.refresh())}},A.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},A.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},A.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},A.prototype.broadcastActive=function(){var e,t;this.hasActive()&&(e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new C(e.target,e.broadcastRect())}),this.callback_.call(e,t,e),this.clearActive())},A.prototype.clearActive=function(){this.activeObservations_.splice(0)},A.prototype.hasActive=function(){return 0<this.activeObservations_.length},A);function A(e,t,n){if(this.activeObservations_=[],this.observations_=new i,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}var M=new("undefined"!=typeof WeakMap?WeakMap:i),T=function e(t){if(!(this instanceof e))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=c.getInstance(),n=new S(t,n,this);M.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){T.prototype[t]=function(){var e;return(e=M.get(this))[t].apply(e,arguments)}});e=void 0!==o.ResizeObserver?o.ResizeObserver:T;k.a=e}.call(this,t(90))},function(e,t,n){e.exports=n(453)},function(e,t){e.exports=hljs},function(e,t,o){"use strict";function a(e,t){return z[e](t)}var r,s,n=o(137),i=o(441),l=o(405),u=o(436),c=o(265),h=o(266),d=o(264),p=o(263),f=o(262),m=o(261),g=o(260),v=o(259),y=o(258),x=o(257),b=o(256),_=o(255),w=o(254),C=o(253),S=o(252),A=o(251),M=o(250),T=o(249),k=o(248),D=o(247),I=o(246),O=o(245),N=o(244),L=o(243),P=o(242),E=o(241),H=o(240),z={"zh-CN":function(t){return function(e){return Promise.all([o.e(0),o.e(5)]).then(function(){return e(o(909)("./"+t+".vue"))}.bind(null,o)).catch(o.oe)}},"en-US":function(t){return function(e){return Promise.all([o.e(0),o.e(2)]).then(function(){return e(o(910)("./"+t+".vue"))}.bind(null,o)).catch(o.oe)}},es:function(t){return function(e){return Promise.all([o.e(0),o.e(3)]).then(function(){return e(o(911)("./"+t+".vue"))}.bind(null,o)).catch(o.oe)}},"fr-FR":function(t){return function(e){return Promise.all([o.e(0),o.e(4)]).then(function(){return e(o(912)("./"+t+".vue"))}.bind(null,o)).catch(o.oe)}}},R={"zh-CN":function(t){return function(e){return Promise.all([o.e(0),o.e(5)]).then(function(){return e(o(913)("./zh-CN"+t+".md"))}.bind(null,o)).catch(o.oe)}},"en-US":function(t){return function(e){return Promise.all([o.e(0),o.e(2)]).then(function(){return e(o(914)("./en-US"+t+".md"))}.bind(null,o)).catch(o.oe)}},es:function(t){return function(e){return Promise.all([o.e(0),o.e(3)]).then(function(){return e(o(915)("./es"+t+".md"))}.bind(null,o)).catch(o.oe)}},"fr-FR":function(t){return function(e){return Promise.all([o.e(0),o.e(4)]).then(function(){return e(o(916)("./fr-FR"+t+".md"))}.bind(null,o)).catch(o.oe)}}},j=(r=n,s=[],Object.keys(r).forEach(function(t,n){var e=r[t],i=l["zh-CN"];s.push({path:"/"+t+"/component",redirect:"/"+t+"/component/installation",component:a(t,"component"),children:[]}),s.push({path:"/"+t+"/mobile",redirect:"/"+t+"/mobile/m-button",component:a(t,"component-mobile"),children:[]}),e.forEach(function(e){e.href||(e.groups?e.groups.forEach(function(e){e.list.forEach(function(e){B(e,t,n)})}):e.children?e.children.forEach(function(e){B(e,t,n)}):B(e,t,n))}),i.forEach(function(e){e.href||(e.groups?e.groups.forEach(function(e){e.list.forEach(function(e){B(e,t,1)})}):e.children?e.children.forEach(function(e){B(e,t,1)}):B(e,t,1))})}),s);function B(e,t,n){var i,r="/changelog"===e.path?a(t,"changelog"):(i=t,r=e.path,R[i](r)),r={path:e.path.slice(1),meta:{title:e.title||e.name,description:e.description,lang:t},name:"component-"+t+(e.title||e.name),component:r.default||r};s[n].children.push(r)}i.forEach(function(e){var t,n;j=j.concat((t=e.lang,n={path:"/"+t+"/guide",redirect:"/"+t+"/guide/design",component:a(t,"guide"),children:[{path:"design",name:"guide-design"+t,meta:{lang:t},component:a(t,"design")},{path:"nav",name:"guide-nav"+t,meta:{lang:t},component:a(t,"nav")}]},e={path:"/"+t+"/theme",component:a(t,"theme-nav"),children:[{path:"/",name:"theme"+t,meta:{lang:t},component:a(t,"theme")},{path:"preview",name:"theme-preview-"+t,meta:{lang:t},component:a(t,"theme-preview")}]},[n,{path:"/"+t+"/resource",meta:{lang:t},name:"resource"+t,component:a(t,"resource")},e,{path:"/"+t,meta:{lang:t},name:"home"+t,component:a(t,"index")}]))}),j.push({path:"/play",name:"play",component:o(907)});[["quick-start",8]].reduce(function(t,e){for(var n=e[0],i=e[1],r=1;r<=i;r++)!function(e){t.push({path:"/zh-CN/main-layout/"+n+"-"+e,component:function(){return o(870)("./"+n+"-"+e+".md")}})}(r);return t},[]);j.push({path:"/zh-CN/main-layout",redirect:"/zh-CN/main-layout/intro-tis-app",name:"mainLayout",component:u.default,children:[{path:"/zh-CN/main-layout/intro-tis-app",component:h.default},{path:"/zh-CN/main-layout/quickstart",component:d.default},{path:"/zh-CN/main-layout/quick-start-1",component:p.default},{path:"/zh-CN/main-layout/quick-start-2",component:f.default},{path:"/zh-CN/main-layout/quick-start-3",component:m.default},{path:"/zh-CN/main-layout/quick-start-4",component:g.default},{path:"/zh-CN/main-layout/quick-start-5",component:v.default},{path:"/zh-CN/main-layout/quick-start-6",component:y.default},{path:"/zh-CN/main-layout/quick-start-7",component:x.default},{path:"/zh-CN/main-layout/quick-start-8",component:b.default},{path:"/zh-CN/main-layout/catalog",component:_.default},{path:"/zh-CN/main-layout/catalog-1",component:w.default},{path:"/zh-CN/main-layout/catalog-2",component:C.default},{path:"/zh-CN/main-layout/catalog-3",component:S.default},{path:"/zh-CN/main-layout/catalog-4",component:A.default},{path:"/zh-CN/main-layout/lifecycle",component:M.default},{path:"/zh-CN/main-layout/lifecycle-1",component:T.default},{path:"/zh-CN/main-layout/lifecycle-2",component:k.default},{path:"/zh-CN/main-layout/lifecycle-3",component:D.default},{path:"/zh-CN/main-layout/lifecycle-4",component:I.default},{path:"/zh-CN/main-layout/lifecycle-5",component:O.default},{path:"/zh-CN/main-layout/tis-api",component:N.default},{path:"/zh-CN/main-layout/tis-api-1",component:L.default},{path:"/zh-CN/main-layout/tis-api-2",component:P.default},{path:"/zh-CN/main-layout/tis-api-3",component:E.default},{path:"/zh-CN/main-layout/tis-api-4",component:H.default},{path:"/zh-CN/main-layout/develop",name:"mainLayoutDevelop",component:c.default}]});H=localStorage.getItem("ELEMENT_LANGUAGE")||window.navigator.language||"en-US",c="/en-US";-1!==H.indexOf("zh-")?c="/zh-CN":-1!==H.indexOf("es")?c="/es":-1!==H.indexOf("fr")&&(c="/fr-FR"),j=j.concat([{path:"/",redirect:c},{path:"*",redirect:c}]),t.a=j},function(e){e.exports=JSON.parse('[{"lang":"zh-CN"},{"lang":"en-US"},{"lang":"es"},{"lang":"fr-FR"}]')},function(e){e.exports=JSON.parse('[{"lang":"zh-CN","display-name":{"border-color":"边框颜色","font-color":"文字颜色","background-color":"背景颜色","font-weight":"文字粗细","font-size":"文字大小","font-line-height":"文字行高","border-radius":"边框圆角","vertical":"纵向","horizontal":"横向","padding":"内间距","margin":"外间距","icon":"图标","placeholder":"占位符","dropdown":"下拉菜单","checked":"选中状态","active":"激活状态","hover":"鼠标悬停状态","max":"最大","medium":"中号","small":"小号","mini":"最小号","min":"最小","focus":"聚焦","selected":"选中","height":"高度","size":"大小","header":"头部","group":"分组","radius":"圆角","width":"宽度","color":"颜色","title":"标题","content":"内容","success":"成功状态","danger":"危险状态","warning":"警告状态","info":"提示状态","customed":"客制化的","disabled":"禁用状态","default":"默认","primary":"主要","inrange":"日期范围"},"action":{"require-them-name":"主题名称是必填项","duplicate-them-name":"主题名称重复","confirm-delete-theme":"确定要删除这个主题?","max-user-theme":"已达自定义主题上限","no-preview-config":"获取主题预览配置错误","undo":"撤销","redo":"重做","notice":"提示","confirm":"确定","cancel":"取消","load-local-theme-config":"正在恢复您上次编辑的自定义主题","upload-theme":"点击上传主题","rename-theme":"修改命名","copy-theme":"复制主题","last-modified":"最近修改","reset-theme":"重置","delete-theme":"删除主题","download-theme":"下载","theme-check":"查看","theme-copy":"复制","theme-edit":"编辑","description-element":"默认主题","description-napos":"深色主题","description-kiwi":"KIWI 主题"},"category":{"BrandColor":"品牌颜色","FunctionalColor":"辅助颜色","FontColor":"文字颜色","BorderColor":"边框颜色","BackgroundColor":"背景颜色","Other":"其他","Color":"颜色","Border":"边框","Font":"文字","Radius":"边框圆角","Shadow":"阴影","Spacing":"间距","FontSize":"文字大小","FontWeight":"文字粗细","LineHeight":"文字行高"},"variable-name":{"color-primary":"主题色","color-white":"基础白色","color-black":"基础黑色","color-success":"成功颜色","color-warning":"警告颜色","color-danger":"危险颜色","color-info":"信息颜色","color-text-primary":"主要文字颜色","color-text-regular":"常规文字颜色","color-text-secondary":"次要文字颜色","color-text-placeholder":"占位文字颜色","border-color-base":"一级边框颜色","border-color-light":"二级边框颜色","border-color-lighter":"三级边框颜色","border-color-extra-light":"四级边框颜色","background-color-base":"基础背景色","border-radius-base":"大圆角","border-radius-small":"小圆角","border-radius-zero":"无圆角","border-radius-circle":"圆形圆角","box-shadow-base":"基础投影","box-shadow-dark":"深色投影","box-shadow-light":"浅色投影","font-size-extra-large":"主标题文字大小","font-size-large":"标题文字大小","font-size-medium":"小标题文字大小","font-size-base":"正文文字大小","font-size-small":"正文(小)文字大小","font-size-extra-small":"辅助文字大小","font-weight-primary":"主要文字粗细","font-weight-secondary":"次要文字粗细","font-line-height-primary":"主要文字行高","font-line-height-secondary":"次要文字行高","tooltip-fill":"Dark 主题背景色","tooltip-color":"Light 主题背景色","slider-height":"滑块轨道高度","datepicker-off-font-color":"不是当前月份的日期文字颜色"}},{"lang":"en-US","variable-name":{"color-primary":"primary color","color-white":"basic white","color-black":"basic black","color-success":"success color","color-warning":"warning color","color-danger":"danger color","color-info":"info color","color-text-primary":"primary text color","color-text-regular":"regular text color","color-text-secondary":"secondary text color","color-text-placeholder":"placeholder text color","border-color-base":"border color base","border-color-light":"border color light","border-color-lighter":"border color lighter","border-color-extra-light":"border color extra light","background-color-base":"base background color","border-radius-base":"border radius base","border-radius-small":"border radius small","border-radius-circle":"border radius circle","box-shadow-base":"box shadow base","box-shadow-dark":"box shadow dark","box-shadow-light":"box shadow light","font-size-extra-large":"extra large font size","font-size-large":"large font size","font-size-medium":"medium font size","font-size-base":"base font size","font-size-small":"small font size","font-size-extra-small":"extra small font size","font-weight-primary":"primary font weight","font-weight-secondary":"secondary font weight","font-line-height-primary":"primary font line height","font-line-height-secondary":"secondary font line height"},"display-name":{"border-color":"border color","font-color":"font color","background-color":"background color","font-weight":"font weight","font-size":"font size","font-line-height":"font line height","border-radius":"border radius"},"action":{"require-them-name":"Theme name is required","duplicate-them-name":"Duplicate them name","confirm-delete-theme":"Are you sure you want to delete this theme?","no-preview-config":"No preview config found","max-user-theme":"Maxium user theme limit","undo":"Undo","redo":"Redo","notice":"Notice","confirm":"Confirm","cancel":"Cancel","load-local-theme-config":"Loading your last saved theme config","last-modified":"Last modified","upload-theme":"Click to upload theme","reset-theme":"Reset","rename-theme":"Rename","copy-theme":"Copy","delete-theme":"Delete","download-theme":"Download","theme-check":"Preview","theme-copy":"Copy","theme-edit":"Edit","description-element":"Default theme","description-napos":"Dark theme","description-kiwi":"kiwi theme"},"category":{"BrandColor":"Brand Color","FunctionalColor":"Functional Color","FontColor":"Font Color","BorderColor":"Border Color","BackgroundColor":"Background Color","FontSize":"Font Size","FontWeight":"Font Weight","LineHeight":"Line Height"}},{"lang":"es","variable-name":{"color-primary":"primary color","color-white":"basic white","color-black":"basic black","color-success":"success color","color-warning":"warning color","color-danger":"danger color","color-info":"info color","color-text-primary":"primary text color","color-text-regular":"regular text color","color-text-secondary":"secondary text color","color-text-placeholder":"placeholder text color","border-color-base":"border color base","border-color-light":"border color light","border-color-lighter":"border color lighter","border-color-extra-light":"border color extra light","background-color-base":"base background color","border-radius-base":"border radius base","border-radius-small":"border radius small","border-radius-circle":"border radius circle","box-shadow-base":"box shadow base","box-shadow-dark":"box shadow dark","box-shadow-light":"box shadow light","font-size-extra-large":"extra large font size","font-size-large":"large font size","font-size-medium":"medium font size","font-size-base":"base font size","font-size-small":"small font size","font-size-extra-small":"extra small font size","font-weight-primary":"primary font weight","font-weight-secondary":"secondary font weight","font-line-height-primary":"primary font line height","font-line-height-secondary":"secondary font line height"},"display-name":{"border-color":"border color","font-color":"font color","background-color":"background color","font-weight":"font weight","font-size":"font size","font-line-height":"font line height","border-radius":"border radius"},"action":{"require-them-name":"Theme name is required","duplicate-them-name":"Duplicate them name","confirm-delete-theme":"Are you sure you want to delete this theme?","no-preview-config":"No preview config found","max-user-theme":"Maxium user theme limit","undo":"Undo","redo":"Redo","notice":"Notice","confirm":"Confirm","cancel":"Cancel","load-local-theme-config":"Loading your last saved theme config","last-modified":"Last modified","upload-theme":"Click to upload theme","reset-theme":"Reset","rename-theme":"Rename","copy-theme":"Copy","delete-theme":"Delete","download-theme":"Download","theme-check":"Preview","theme-copy":"Copy","theme-edit":"Edit","description-element":"Default theme","description-napos":"Dark theme","description-kiwi":"kiwi theme"},"category":{"BrandColor":"Brand Color","FunctionalColor":"Functional Color","FontColor":"Font Color","BorderColor":"Border Color","BackgroundColor":"Background Color","FontSize":"Font Size","FontWeight":"Font Weight","LineHeight":"Line Height"}},{"lang":"fr-FR","variable-name":{"color-primary":"primary color","color-white":"basic white","color-black":"basic black","color-success":"success color","color-warning":"warning color","color-danger":"danger color","color-info":"info color","color-text-primary":"primary text color","color-text-regular":"regular text color","color-text-secondary":"secondary text color","color-text-placeholder":"placeholder text color","border-color-base":"border color base","border-color-light":"border color light","border-color-lighter":"border color lighter","border-color-extra-light":"border color extra light","background-color-base":"base background color","border-radius-base":"border radius base","border-radius-small":"border radius small","border-radius-circle":"border radius circle","box-shadow-base":"box shadow base","box-shadow-dark":"box shadow dark","box-shadow-light":"box shadow light","font-size-extra-large":"extra large font size","font-size-large":"large font size","font-size-medium":"medium font size","font-size-base":"base font size","font-size-small":"small font size","font-size-extra-small":"extra small font size","font-weight-primary":"primary font weight","font-weight-secondary":"secondary font weight","font-line-height-primary":"primary font line height","font-line-height-secondary":"secondary font line height"},"display-name":{"border-color":"border color","font-color":"font color","background-color":"background color","font-weight":"font weight","font-size":"font size","font-line-height":"font line height","border-radius":"border radius"},"action":{"require-them-name":"Theme name is required","duplicate-them-name":"Duplicate them name","confirm-delete-theme":"Are you sure you want to delete this theme?","no-preview-config":"No preview config found","max-user-theme":"Maxium user theme limit","undo":"Undo","redo":"Redo","notice":"Notice","confirm":"Confirm","cancel":"Cancel","load-local-theme-config":"Loading your last saved theme config","last-modified":"Last modified","upload-theme":"Click to upload theme","reset-theme":"Reset","rename-theme":"Rename","copy-theme":"Copy","delete-theme":"Delete","download-theme":"Download","theme-check":"Preview","theme-copy":"Copy","theme-edit":"Edit","description-element":"Default theme","description-napos":"Dark theme","description-kiwi":"kiwi theme"},"category":{"BrandColor":"Brand Color","FunctionalColor":"Functional Color","FontColor":"Font Color","BorderColor":"Border Color","BackgroundColor":"Background Color","FontSize":"Font Size","FontWeight":"Font Weight","LineHeight":"Line Height"}}]')},function(e){e.exports=JSON.parse('{"zh-CN":{"home":"Tis-Design - 网站快速成型工具","guide":"指南 | Tis-Design","component":"组件 | Tis-Design","resource":"资源 | Tis-Design"},"en-US":{"home":"Tis-Design - A Desktop UI Toolkit for Web","guide":"Guide | Tis-Design","component":"Component | Tis-Design","resource":"Resource | Tis-Design"},"es":{"home":"Tis-Design - Un kit de interfaz de usuario para la web","guide":"Guía | Tis-Design","component":"Componentes | Tis-Design","resource":"Recursos | Tis-Design"},"fr-FR":{"home":"Tis-Design - Un kit de composants d\'interface pour le web","guide":"Guide | Tis-Design","component":"Composants | Tis-Design","resource":"Ressources | Tis-Design"}}')},function(e){e.exports=JSON.parse('["platform-eleme","eleme","delete-solid","delete","s-tools","setting","user-solid","user","phone","phone-outline","more","more-outline","star-on","star-off","s-goods","goods","warning","warning-outline","question","info","remove","circle-plus","success","error","zoom-in","zoom-out","remove-outline","circle-plus-outline","circle-check","circle-close","s-help","help","minus","plus","check","close","picture","picture-outline","picture-outline-round","upload","upload2","download","camera-solid","camera","video-camera-solid","video-camera","message-solid","bell","s-cooperation","s-order","s-platform","s-fold","s-unfold","s-operation","s-promotion","s-home","s-release","s-ticket","s-management","s-open","s-shop","s-marketing","s-flag","s-comment","s-finance","s-claim","s-custom","s-opportunity","s-data","s-check","s-grid","menu","share","d-caret","caret-left","caret-right","caret-bottom","caret-top","bottom-left","bottom-right","back","right","bottom","top","top-left","top-right","arrow-left","arrow-right","arrow-down","arrow-up","d-arrow-left","d-arrow-right","video-pause","video-play","refresh","refresh-right","refresh-left","finished","sort","sort-up","sort-down","rank","loading","view","c-scale-to-original","date","edit","edit-outline","folder","folder-opened","folder-add","folder-remove","folder-delete","folder-checked","tickets","document-remove","document-delete","document-copy","document-checked","document","document-add","printer","paperclip","takeaway-box","search","monitor","attract","mobile","scissors","umbrella","headset","brush","mouse","coordinate","magic-stick","reading","data-line","data-board","pie-chart","data-analysis","collection-tag","film","suitcase","suitcase-1","receiving","collection","files","notebook-1","notebook-2","toilet-paper","office-building","school","table-lamp","house","no-smoking","smoking","shopping-cart-full","shopping-cart-1","shopping-cart-2","shopping-bag-1","shopping-bag-2","sold-out","sell","present","box","bank-card","money","coin","wallet","discount","price-tag","news","guide","male","female","thumb","cpu","link","connection","open","turn-off","set-up","chat-round","chat-line-round","chat-square","chat-dot-round","chat-dot-square","chat-line-square","message","postcard","position","turn-off-microphone","microphone","close-notification","bangzhu","time","odometer","crop","aim","switch-button","full-screen","copy-document","mic","stopwatch","medal-1","medal","trophy","trophy-1","first-aid-kit","discover","place","location","location-outline","location-information","add-location","delete-location","map-location","alarm-clock","timer","watch-1","watch","lock","unlock","key","service","mobile-phone","bicycle","truck","ship","basketball","football","soccer","baseball","wind-power","light-rain","lightning","heavy-rain","sunrise","sunrise-1","sunset","sunny","cloudy","partly-cloudy","cloudy-and-sunny","moon","moon-night","dish","dish-1","food","chicken","fork-spoon","knife-fork","burger","tableware","sugar","dessert","ice-cream","hot-water","water-cup","coffee-cup","cold-drink","goblet","goblet-full","goblet-square","goblet-square-full","refrigerator","grape","watermelon","cherry","apple","pear","orange","coffee","ice-tea","ice-drink","milk-tea","potato-strips","lollipop","ice-cream-square","ice-cream-round"]')},function(e,t,i){"use strict";var n=i(49),a=n.a.version,r={data:function(){return{chalk:"",docs:"",theme:"#409EFF"}},watch:{theme:function(e,t){var r,n,i,o=this;"string"==typeof e&&(r=this.getThemeCluster(e.replace("#","")),n=this.getThemeCluster(t.replace("#","")),e=(i=function(n,i){return function(){var e=o.getThemeCluster("#409EFF".replace("#","")),t=o.updateStyle(o[n],e,r),e=document.getElementById(i);e||((e=document.createElement("style")).setAttribute("id",i),document.head.appendChild(e)),e.innerText=t}})("chalk","chalk-style"),i=i("docs","docs-style"),this.chalk?e():this.getCSSString("https://unpkg.com/tis-ui@"+a+"/lib/theme-chalk/index.css",e,"chalk"),this.docs?i():(e=[].filter.call(document.querySelectorAll("link"),function(e){return/docs\..+\.css/.test(e.href||"")}))[0]&&this.getCSSString(e[0].href,i,"docs"),[].slice.call(document.querySelectorAll("style")).filter(function(e){e=e.innerText;return new RegExp(t,"i").test(e)&&!/Chalk Variables/.test(e)}).forEach(function(e){var t=e.innerText;"string"==typeof t&&(e.innerText=o.updateStyle(t,n,r))}))}},methods:{updateStyle:function(e,t,n){var i=e;return t.forEach(function(e,t){i=i.replace(new RegExp(e,"ig"),n[t])}),i},getCSSString:function(e,t,n){var i=this,r=new XMLHttpRequest;r.onreadystatechange=function(){4===r.readyState&&200===r.status&&(i[n]=r.responseText.replace(/@font-face{[^}]+}/,""),t())},r.open("GET",e),r.send()},getThemeCluster:function(e){for(var t,n,i,r,o,a,s,l,u=[e],c=0;c<=9;c++)u.push((t=e,n=Number((c/10).toFixed(2)),r=i=void 0,i=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),t=parseInt(t.slice(4,6),16),0===n?[i,r,t].join(","):(i+=Math.round(n*(255-i)),r+=Math.round(n*(255-r)),t+=Math.round(n*(255-t)),"#"+(i=i.toString(16))+(r=r.toString(16))+(t=t.toString(16)))));return u.push((o=e,a=.1,s=parseInt(o.slice(0,2),16),l=parseInt(o.slice(2,4),16),o=parseInt(o.slice(4,6),16),s=Math.round((1-a)*s),l=Math.round((1-a)*l),o=Math.round((1-a)*o),"#"+(s=s.toString(16))+(l=l.toString(16))+(o=o.toString(16)))),u}}},o=(i(876),i(0)),s=Object(o.a)(r,function(){var t=this,e=t.$createElement;return(t._self._c||e)("tis-color-picker",{staticClass:"theme-picker",attrs:{"popper-class":"theme-picker-dropdown"},model:{value:t.theme,callback:function(e){t.theme=e},expression:"theme"}})},[],!1,null,null,null).exports,l=i(239),u=i.n(l),c={data:function(){return{index:null,query:"",isEmpty:!1,langs:{"zh-CN":{search:"搜索文档",empty:"无匹配结果",index:"zh"},"en-US":{search:"Search",empty:"No results",index:"en"},es:{search:"Buscar",empty:"No hay datos que coincidan",index:"es"},"fr-FR":{search:"Rechercher",empty:"Aucun résultat",index:"fr"}}}},computed:{lang:function(){return this.$route.meta.lang},placeholder:function(){return this.lang?this.langs[this.lang].search:""},emptyText:function(){return this.lang?this.langs[this.lang].empty:""}},watch:{lang:function(){this.initIndex()}},methods:{initIndex:function(){var e=u()("4C63BTGP6S","0729c3c7f4dc8db7395ad0b19c0748d2");this.index=e.initIndex("element-"+(this.lang?this.langs[this.lang].index:"zh"))},querySearch:function(e,n){var i=this;e&&this.index.search({query:e,hitsPerPage:6},function(e,t){e?console.error(e):0<t.hits.length?(i.isEmpty=!1,n(t.hits.map(function(e){var t=e._highlightResult.content.value.replace(/\s+/g," "),n=t.indexOf('<span class="algolia-highlight">');return-1<n?t=(0<n-15?"...":"")+t.slice(Math.max(0,n-15),t.length):-1<t.indexOf("|")&&(t=""),{anchor:e.anchor,component:e.component,highlightedCompo:e._highlightResult.component.value,title:e._highlightResult.title.value,content:t}}).concat({img:!0}))):(i.isEmpty=!0,n([{isEmpty:!0}]))})},handleSelect:function(e){var t;e.img||e.isEmpty||(t=e.component||"",e=e.anchor,this.$router.push("/"+this.lang+"/component/"+t+(e?"#"+e:"")))}},mounted:function(){this.initIndex()}},r=(i(898),Object(o.a)(c,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tis-autocomplete",{attrs:{size:"small","popper-class":"algolia-search"+(t.isEmpty?" is-empty":""),"fetch-suggestions":t.querySearch,placeholder:t.placeholder,"trigger-on-focus":!1,"highlight-first-item":""},on:{select:t.handleSelect},scopedSlots:t._u([{key:"default",fn:function(e){return[e.item.title?n("p",{staticClass:"algolia-search-title"},[n("span",{domProps:{innerHTML:t._s(e.item.highlightedCompo)}}),n("span",{staticClass:"algolia-search-separator"}),n("span",{domProps:{innerHTML:t._s(e.item.title)}})]):t._e(),e.item.content?n("p",{staticClass:"algolia-search-content",domProps:{innerHTML:t._s(e.item.content)}}):t._e(),e.item.img?n("a",{staticClass:"algolia-search-link",attrs:{target:"_blank",href:"https://www.algolia.com/docsearch"}},[n("img",{staticClass:"algolia-search-logo",attrs:{src:i(877),alt:"algolia-logo"}})]):t._e(),e.item.isEmpty?n("p",{staticClass:"algolia-search-empty"},[t._v(t._s(t.emptyText))]):t._e()]}}]),model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})},[],!1,null,null,null).exports),h=i(72),d=i(45),l=i(5),c=i.n(l),l={data:function(){return{percent:0,show:!1,canSuccess:!0,duration:3e3,height:"2px"}},methods:{successColor:function(){return this.userSelectColor()["$--color-primary"]||"#409EFF"},failedColor:function(){return this.userSelectColor()["$--color-danger"]||"#F56C6C"},userSelectColor:function(){return window.userThemeConfig&&window.userThemeConfig.global||{}},start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),90<=e.percent&&(e.percent=90)},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,e.$nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}},l=(i(899),Object(o.a)(l,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.successColor():this.failedColor(),opacity:this.show?1:0}})},[],!1,null,"3285c94c",null).exports);c.a.prototype.$bar=new c.a(l).$mount(),document.body.appendChild(c.a.prototype.$bar.$el);var l={data:function(){return{count:0}},created:function(){var t=this;d.a.$on("user-theme-config-loading",function(e){e?(t.count++,1<t.count||t.$bar.start()):(t.count--,t.count||t.$bar.finish())})}},c=(i(900),Object(o.a)(l,void 0,void 0,!1,null,null,null).exports),p=i(114),f=i(138),m="#409EFF",l={data:function(){return{docs:"",theme:m,asyncCb:!0}},methods:{updateDocStyle:function(e,t){var n,i,r=this,o=e.global["$--color-primary"]||m,a=this.theme,s=(n="docs",i="docs-style",function(){var e=r.updateStyle(r[n],m,o);Object(f.b)(i,e),r.asyncCb&&t()});this.docs?s():(e=[].filter.call(document.querySelectorAll("link"),function(e){return/docs\..+\.css/.test(e.href||"")}))[0]?this.getCSSString(e[0].href,s,"docs"):this.asyncCb=!1,[].slice.call(document.querySelectorAll("style")).filter(function(e){e=e.innerText;return new RegExp(a,"i").test(e)&&!/Chalk Variables/.test(e)}).forEach(function(e){var t=e.innerText;"string"==typeof t&&(e.innerText=r.updateStyle(t,a,o))}),this.theme=o,this.asyncCb||t()},updateStyle:function(e,t,n){return e.replace(new RegExp(t,"ig"),n)},getCSSString:function(e,t,n){var i=this;Object(p.a)(e).then(function(e){i[n]=e,t()})}}},l=Object(o.a)(l,void 0,void 0,!1,null,null,null).exports,g=i(136),v=i(46),y=i(177),x=i(287),l={mixins:[c,l],mounted:function(){var n=this;this.checkLocalThemeConfig(),d.a.$on(v.a,function(e){n.userConfig=e,n.onAction()}),d.a.$on(v.c,function(e,t){n.onDownload(e,t)})},data:function(){return{userConfig:{},lastApply:0}},methods:{applyStyle:function(e,t){t<this.lastApply||(this.updateDocs(function(){Object(f.b)("chalk-style",e)}),this.lastApply=t)},onDownload:function(e,t){var n=this;this.triggertProgressBar(!0),Object(g.c)(Object.assign({},e,{download:!0}),function(e){e.responseType="blob"}).then().catch(function(e){n.onError(e)}).then(function(){n.triggertProgressBar(!1)}),ga("send","event","ThemeConfigurator","Download",t)},onAction:function(){var t=this;this.triggertProgressBar(!0);var n=+new Date;Object(g.c)(this.userConfig).then(function(e){t.applyStyle(e,n)}).catch(function(e){t.onError(e)}).then(function(){t.triggertProgressBar(!1)})},onError:function(t){var n=void 0;try{n=JSON.parse(t).message}catch(e){n=t}this.$message.error(n)},triggertProgressBar:function(e){d.a.$emit("user-theme-config-loading",e)},updateDocs:function(e){window.userThemeConfig=JSON.parse(JSON.stringify(this.userConfig)),d.a.$emit(v.d,this.userConfig),this.updateDocStyle(this.userConfig,e)},checkLocalThemeConfig:function(){var e,t=Object(y.a)();"user"===t.type&&(e=Object(y.b)(),this.$message(Object(x.c)("load-local-theme-config")),(e=e.filter(function(e){return e.name===t.name}))&&e[0]&&(this.userConfig=JSON.parse(e[0].theme),this.onAction()))}}},l=Object(o.a)(l,void 0,void 0,!1,null,null,null).exports,b=n.a.version,_={component:"组件",mobile:"移动端组件"},r={data:function(){return{active:"",versions:[],version:b,comTypeMap:_,verDropdownVisible:!0,langDropdownVisible:!0,activeComponentType:"组件",langs:{"zh-CN":"中文","en-US":"English",es:"Español","fr-FR":"Français"}}},mixins:[l],components:{ThemePicker:s,AlgoliaSearch:r},computed:{lang:function(){return this.$route.path.split("/")[1]||"zh-CN"},comType:function(){return this.$route.path.split("/")[2]||"component"},displayedLang:function(){return this.langs[this.lang]||"中文"},langConfig:function(){var t=this;return h.filter(function(e){return e.lang===t.lang})[0].header},isComponentPage:function(){return/^component/.test(this.$route.name)}},mounted:function(){var e=this;Object(g.a)().then(function(){e.$isEle=!0,ga("send","event","DocView","Ele","Inner")}).catch(function(e){ga("send","event","DocView","Ele","Outer"),console.error(e)});var t=new Image;t.onload=function(){e.$isEle=!0,ga("send","event","DocView","Ali","Inner")},t.onerror=function(e){ga("send","event","DocView","Ali","Outer"),console.error(e)},t.src="https://private-alipayobjects.alipay.com/alipay-rmsdeploy-image/rmsportal/VmvVUItLdPNqKlNGuRHi.png?t="+Date.now()},methods:{switchVersion:function(e){e!==this.version&&(location.href=location.origin+"/"+this.versions[e]+"/"+location.hash+" ")},switchLang:function(e){this.lang!==e&&(localStorage.setItem("ELEMENT_LANGUAGE",e),this.$router.push(this.$route.path.replace(this.lang,e)))},handleVerDropdownToggle:function(e){this.verDropdownVisible=e},handleLangDropdownToggle:function(e){this.langDropdownVisible=e},comTypeClick:function(e){this.comTypeClick=e},changeTheme:function(){null===document.documentElement.getAttribute("data-theme")?document.documentElement.setAttribute("data-theme","blue"):document.documentElement.removeAttribute("data-theme")}},created:function(){var t=this,i=new XMLHttpRequest;i.onreadystatechange=function(e){var n;4===i.readyState&&200===i.status&&(n=JSON.parse(i.responseText),t.versions=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},{}))},i.open("GET","/versions.json"),i.send();var r="#FFFFFF";d.a.$on(v.d,function(e){var t=(t=e.global["$--color-primary"])||"#FFFFFF",n="data:image/svg+xml;base64,";document.querySelectorAll("h1 img").forEach(function(e){e.src=n+window.btoa(window.atob(e.src.replace(n,"")).replace(r,t))}),r=t})}},r=(i(901),Object(o.a)(r,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("div",{staticClass:"headerWrapper"},[t("header",{ref:"header",staticClass:"header"},[t("div",{staticClass:"container"},[t("h1",[t("router-link",{attrs:{to:"/"+e.lang}},[e._t("default",[t("img",{staticClass:"nav-logo",attrs:{src:i(874),alt:"element-logo"}}),t("img",{staticClass:"nav-logo-small",attrs:{src:i(875),alt:"element-logo"}})])],2)],1),t("ul",{staticClass:"nav"},[t("li",{directives:[{name:"show",rawName:"v-show",value:e.isComponentPage,expression:"isComponentPage"}],staticClass:"nav-item nav-algolia-search"},[t("algolia-search")],1),t("li",{staticClass:"nav-item"},[t("router-link",{attrs:{"active-class":"active",to:"/"+e.lang+"/home"}},[e._v(e._s(e.langConfig.home)+"\n ")])],1),t("li",{staticClass:"nav-item"},[t("router-link",{attrs:{"active-class":"active",to:"/"+e.lang+"/guide"}},[e._v(e._s(e.langConfig.guide)+"\n ")])],1),t("li",{staticClass:"nav-item"},[t("tis-dropdown",{staticClass:"nav-dropdown",class:{"is-active":e.verDropdownVisible},attrs:{trigger:"hover"}},[t("span",[e._v("\n "+e._s(e.comTypeMap[e.comType]||"组件")+"\n "),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("tis-dropdown-menu",{staticClass:"nav-dropdown-list",attrs:{slot:"dropdown"},on:{input:e.handleVerDropdownToggle},slot:"dropdown"},[t("tis-dropdown-item",[t("span",{on:{click:e.comTypeClick}},[t("router-link",{attrs:{to:"/"+e.lang+"/component"}},[e._v(e._s(e.langConfig.components)+"\n ")])],1)]),t("tis-dropdown-item",[t("span",{on:{click:e.comTypeClick}},[t("router-link",{attrs:{to:"/"+e.lang+"/mobile"}},[e._v(e._s(e.langConfig["mobile-components"])+"\n ")])],1)])],1)],1)],1),t("li",{staticClass:"nav-item"},[t("router-link",{attrs:{"active-class":"active",to:"/"+e.lang+"/main-layout"}},[e._v(e._s(e.langConfig.mainLayout)+"\n ")])],1),t("li",{directives:[{name:"show",rawName:"v-show",value:e.isComponentPage,expression:"isComponentPage"}],staticClass:"nav-item"},[t("div",{staticClass:"nav-gap"})]),t("li",{directives:[{name:"show",rawName:"v-show",value:e.isComponentPage,expression:"isComponentPage"}],staticClass:"nav-item nav-versions"},[t("tis-dropdown",{staticClass:"nav-dropdown",class:{"is-active":e.verDropdownVisible},attrs:{trigger:"click"}},[t("span",[e._v("\n 1.0\n "),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("tis-dropdown-menu",{staticClass:"nav-dropdown-list",attrs:{slot:"dropdown"},on:{input:e.handleVerDropdownToggle},slot:"dropdown"},[t("tis-dropdown-item",[e._v("\n 1.0\n ")])],1)],1)],1)]),t("div",[t("tis-button",{attrs:{type:"text"},on:{click:e.changeTheme}},[e._v("切换主题")])],1)])])])},[],!1,null,"2dff103b",null));t.a=r.exports},function(e,t,n){"use strict";var i=n(72);var o=n(49).a.version,r={data:function(){return{codepen:{script:"",html:"",style:""},hovering:!1,isExpanded:!1,fixedControl:!1,scrollParent:null}},methods:{goCodepen:function(){for(var e=this.codepen,t=e.script,n=e.html,i=e.style,e='<script src="//unpkg.com/vue/dist/vue.js"><\/script>\n<script src="//unpkg.com/tis-ui@'+o+'/lib/index.js"><\/script>',t=(t||"").replace(/export default/,"var Main =").trim(),n=e+'\n<div id="app">\n'+n.trim()+"\n</div>",i={js:t=t?t+"\nvar Ctor = Vue.extend(Main)\nnew Ctor().$mount('#app')":"new Vue().$mount('#app')",css:'@import url("//unpkg.com/tis-ui@'+o+'/lib/theme-chalk/index.css");\n'+(i||"").trim()+"\n",html:n},r=document.getElementById("fiddle-form")||document.createElement("form");r.firstChild;)r.removeChild(r.firstChild);r.method="POST",r.action="https://codepen.io/pen/define/",r.target="_blank",r.style.display="none";n=document.createElement("input");n.setAttribute("name","data"),n.setAttribute("type","hidden"),n.setAttribute("value",JSON.stringify(i)),r.appendChild(n),document.body.appendChild(r),r.submit()},scrollHandler:function(){var e=this.$refs.meta.getBoundingClientRect(),t=e.top,n=e.bottom,e=e.left;this.fixedControl=n>document.documentElement.clientHeight&&t+44<=document.documentElement.clientHeight,this.$refs.control.style.left=this.fixedControl?e+"px":"0"},removeScrollHandler:function(){this.scrollParent&&this.scrollParent.removeEventListener("scroll",this.scrollHandler)}},computed:{lang:function(){return this.$route.path.split("/")[1]},langConfig:function(){var t=this;return i.filter(function(e){return e.lang===t.lang})[0]["demo-block"]},blockClass:function(){return"demo-"+this.lang+" demo-"+this.$router.currentRoute.path.split("/").pop()},iconClass:function(){return this.isExpanded?"el-icon-caret-top":"el-icon-caret-bottom"},controlText:function(){return this.isExpanded?this.langConfig["hide-text"]:this.langConfig["show-text"]},codeArea:function(){return this.$el.getElementsByClassName("meta")[0]},codeAreaHeight:function(){return 0<this.$el.getElementsByClassName("description").length?this.$el.getElementsByClassName("description")[0].clientHeight+this.$el.getElementsByClassName("highlight")[0].clientHeight+20:this.$el.getElementsByClassName("highlight")[0].clientHeight}},watch:{isExpanded:function(e){var t=this;if(this.codeArea.style.height=e?this.codeAreaHeight+1+"px":"0",!e)return this.fixedControl=!1,this.$refs.control.style.left="0",void this.removeScrollHandler();setTimeout(function(){t.scrollParent=document.querySelector(".page-component__scroll > .el-scrollbar__wrap"),t.scrollParent&&t.scrollParent.addEventListener("scroll",t.scrollHandler),t.scrollHandler()},200)}},created:function(){var e,t=this.$slots.highlight;t&&t[0]&&(e="",(e="pre"===(t=t[0]).tag&&t.children&&t.children[0]&&"code"===(t=t.children[0]).tag?t.children[0].text:e)&&(this.codepen.html=(t=(t=e).trim())?t.replace(/<(script|style)[\s\S]+<\/\1>/g,"").trim():t,this.codepen.script=(t=(t=e).match(/<(script)>([\s\S]+)<\/\1>/))&&t[2]?t[2].trim():"",this.codepen.style=(e=(e=e).match(/<(style)\s*>([\s\S]+)<\/\1>/))&&e[2]?e[2].trim():""))},mounted:function(){var t=this;this.$nextTick(function(){var e=t.$el.getElementsByClassName("highlight")[0];0===t.$el.getElementsByClassName("description").length&&(e.style.width="100%",e.borderRight="none")})},beforeDestroy:function(){this.removeScrollHandler()}},n=(n(871),n(0)),r=Object(n.a)(r,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{staticClass:"demo-block",class:[t.blockClass,{hover:t.hovering}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[e("div",{staticClass:"source"},[t._t("source")],2),e("div",{ref:"meta",staticClass:"meta"},[t.$slots.default?e("div",{staticClass:"description"},[t._t("default")],2):t._e(),e("div",{staticClass:"highlight"},[t._t("highlight")],2)]),e("div",{ref:"control",staticClass:"demo-block-control",class:{"is-fixed":t.fixedControl},on:{click:function(e){t.isExpanded=!t.isExpanded}}},[e("transition",{attrs:{name:"arrow-slide"}},[e("i",{class:[t.iconClass,{hovering:t.hovering}]})]),e("transition",{attrs:{name:"text-slide"}},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.hovering,expression:"hovering"}]},[t._v(t._s(t.controlText))])])],1)])},[],!1,null,null,null);t.a=r.exports},function(e,t,n){"use strict";function i(e){Object(r.c)(o.a)}var r=n(18),o=n(170);i();var a={name:"app",computed:{lang:function(){return"zh-CN"},isComponent:function(){return/^component-/.test(this.$route.name||"")}},watch:{lang:function(e){i()}},mounted:function(){i(this.lang)}},n=n(0),a=Object(n.a)(a,function(){var e=this.$createElement,e=this._self._c||e;return e("div",{class:{"is-component":this.isComponent},attrs:{id:"app"}},["play"!==this.lang?e("main-header"):this._e(),e("div",{staticClass:"main-cnt"},[e("router-view")],1),"play"===this.lang||this.isComponent?this._e():e("main-footer")],1)},[],!1,null,null,null);t.a=a.exports},function(e,t,n){"use strict";var i=n(45),r=n(72),o={props:{data:Array,base:{type:String,default:""}},data:function(){return{highlights:[],navState:[],isSmallScreen:!1,isFade:!1}},watch:{"$route.path":function(){this.handlePathChange()},isFade:function(e){i.a.$emit("navFade",e)}},computed:{navStyle:function(){var e={};return this.isSmallScreen&&(e.paddingBottom="60px"),e.opacity=this.isFade?"0.5":"1",e},lang:function(){return this.$route.meta.lang},langConfig:function(){var t=this;return r.filter(function(e){return e.lang===t.lang})[0].nav}},methods:{handleResize:function(){this.isSmallScreen=document.documentElement.clientWidth<768,this.handlePathChange()},handlePathChange:function(){var t=this;this.isSmallScreen?this.$nextTick(function(){t.hideAllMenu();for(var e=t.$el.querySelector("a.active").parentNode;"UL"!==e.tagName;)e=e.parentNode;e.style.height="auto"}):this.expandAllMenu()},hideAllMenu:function(){[].forEach.call(this.$el.querySelectorAll(".pure-menu-list"),function(e){e.style.height="0"})},expandAllMenu:function(){[].forEach.call(this.$el.querySelectorAll(".pure-menu-list"),function(e){e.style.height="auto"})},expandMenu:function(e){var t;!this.isSmallScreen||(t=e.currentTarget).nextElementSibling&&"UL"===t.nextElementSibling.tagName&&(this.hideAllMenu(),e.currentTarget.nextElementSibling.style.height="auto")}},created:function(){var e=this;i.a.$on("fadeNav",function(){e.isFade=!0})},mounted:function(){this.handleResize(),window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)}},n=(n(902),n(0)),o=Object(n.a)(o,function(){var n=this,e=n.$createElement,i=n._self._c||e;return i("div",{staticClass:"side-nav",class:{"is-fade":n.isFade},style:n.navStyle,on:{mouseenter:function(e){n.isFade=!1}}},[i("ul",n._l(n.data,function(e,t){return i("li",{key:t,staticClass:"nav-item"},[e.path||e.href?n._e():i("a",{on:{click:n.expandMenu}},[n._v(n._s(e.name))]),e.href?i("a",{attrs:{href:e.href,target:"_blank"}},[n._v(n._s(e.name))]):n._e(),e.path?i("router-link",{attrs:{"active-class":"active",to:n.base+e.path,exact:""},domProps:{textContent:n._s(e.title||e.name)}}):n._e(),e.children?i("ul",{staticClass:"pure-menu-list sub-nav"},n._l(e.children,function(e,t){return i("li",{key:t,staticClass:"nav-item"},[i("router-link",{attrs:{"active-class":"active",to:n.base+e.path,exact:""},domProps:{textContent:n._s(e.title||e.name)}})],1)}),0):n._e(),e.groups?n._l(e.groups,function(e,t){return i("div",{key:t,staticClass:"nav-group"},[i("div",{staticClass:"nav-group__title",on:{click:n.expandMenu}},[n._v(n._s(e.groupName))]),i("ul",{staticClass:"pure-menu-list"},n._l(e.list,function(e,t){return i("li",{directives:[{name:"show",rawName:"v-show",value:!e.disabled,expression:"!navItem.disabled"}],key:t,staticClass:"nav-item"},[i("router-link",{attrs:{"active-class":"active",to:n.base+e.path,exact:""},domProps:{textContent:n._s(e.title)}})],1)}),0)])}):n._e()],2)}),0)])},[],!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";var i=n(137),r={data:function(){return{currentComponent:null,nav:[],currentIndex:-1,leftNav:null,rightNav:null}},computed:{lang:function(){return this.$route.meta.lang}},watch:{"$route.path":function(){this.setNav(),this.updateNav()}},methods:{setNav:function(){var t=this,e=i[this.lang];this.nav=e[0].children,e[1].groups.map(function(e){return e.list}).forEach(function(e){t.nav=t.nav.concat(e)})},updateNav:function(){this.currentComponent="/"+this.$route.path.split("/")[3];for(var e=0,t=this.nav.length;e<t;e++)if(this.nav[e].path===this.currentComponent){this.currentIndex=e;break}this.leftNav=this.nav[this.currentIndex-1],this.rightNav=this.nav[this.currentIndex+1]},handleNavClick:function(e){this.$router.push("/"+this.lang+"/component"+("prev"===e?this.leftNav:this.rightNav).path)}},created:function(){this.setNav(),this.updateNav()}},n=(n(903),n(0)),r=Object(n.a)(r,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{staticClass:"footer-nav"},[t.leftNav?e("span",{staticClass:"footer-nav-link footer-nav-left",on:{click:function(e){t.handleNavClick("prev")}}},[e("i",{staticClass:"el-icon-arrow-left"}),t._v("\n "+t._s(t.leftNav.title||t.leftNav.name)+"\n ")]):t._e(),t.rightNav?e("span",{staticClass:"footer-nav-link footer-nav-right",on:{click:function(e){t.handleNavClick("next")}}},[t._v("\n "+t._s(t.rightNav.title||t.rightNav.name)+"\n "),e("i",{staticClass:"el-icon-arrow-right"})]):t._e()])},[],!1,null,null,null);t.a=r.exports},function(e,t,n){"use strict";var i=[function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"footer-content-desc"},[e("img",{attrs:{src:n(872),alt:""}}),e("div",{staticClass:"desc-txt"},[this._v("\n TIS Design是给轻步开发者打造的开发平台,提供完善的开发文档和灵活的组件。开发者可以通过一站式丰富的文档和灵活的组件库快速开发轻步应用和组件。\n ")])])},function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"footer-content-nav-item"},[e("div",{staticClass:"nav-item-title"},[this._v("联系我们")]),e("div",{staticClass:"nav-item-list"},[e("div",{staticClass:"list-item"},[this._v("合作咨询")]),e("div",{staticClass:"list-item"},[this._v("信息反馈")])])])},function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"footer-social"},[e("p",{staticClass:"footer-social-title"},[this._v("©Copyright 2021, 207 developers.")])])}],r=n(72),o=n(49).a.version,a={data:function(){return{version:o}},methods:{linkToDetail:function(e){this.$router.push(e)}},computed:{lang:function(){return this.$route.path.split("/")[1]||"zh-CN"},langConfig:function(){var t=this;return r.filter(function(e){return e.lang===t.lang})[0].footer},gitterLink:function(){return"zh-CN"===this.lang?"https://gitter.im/ElemeFE/element":"https://gitter.im/element-en/Lobby"}}},s=(n(873),n(0)),i=Object(s.a)(a,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("footer",{staticClass:"footer"},[e("div",{staticClass:"container"},[e("div",{staticClass:"footer-content"},[t._m(0),e("div",{staticClass:"footer-content-nav"},[e("div",{staticClass:"footer-content-nav-item"},[e("div",{staticClass:"nav-item-title"},[t._v("教程")]),e("div",{staticClass:"nav-item-list"},[e("div",{staticClass:"list-item",on:{click:function(e){t.linkToDetail("/zh-CN/main-layout/quickstart")}}},[t._v("入门教程")]),e("div",{staticClass:"list-item",on:{click:function(e){t.linkToDetail("/zh-CN/main-layout/develop")}}},[t._v("环境安装")])])]),e("div",{staticClass:"footer-content-nav-item"},[e("div",{staticClass:"nav-item-title"},[t._v("组件")]),e("div",{staticClass:"nav-item-list"},[e("div",{staticClass:"list-item",on:{click:function(e){t.linkToDetail("/zh-CN/guide/design")}}},[t._v("规范文档")]),e("div",{staticClass:"list-item",on:{click:function(e){t.linkToDetail("/zh-CN/component/installation")}}},[t._v("组件文档")]),e("div",{staticClass:"list-item",on:{click:function(e){t.linkToDetail("/zh-CN/mobile/m-button")}}},[t._v("移动端组件文档")])])]),t._m(1)])]),t._m(2)])])},i,!1,null,null,null);t.a=i.exports},function(e,t,g){"use strict";g.r(t),function(e){var t=g(5),i=g.n(t),n=g(447),r=g(267),o=g.n(r),a=g(49),s=g(439),l=g.n(s),u=g(440),c=g(446),h=g(450),d=g(445),p=g(448),t=g(449),f=g(443),r=g(904),s=g(905),r=g(906),s=g(444),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};console.log("init "),i.a.use(a.a),i.a.use(o.a),i.a.component("demo-block",c.a),i.a.component("main-footer",h.a),i.a.component("main-header",d.a),i.a.component("side-nav",p.a),i.a.component("footer-nav",t.a);var m=new i.a({data:{$isEle:!1}});i.a.mixin({computed:{$isEle:{get:function(){return m.$data.$isEle},set:function(e){m.$data.$isEle=e}}}}),i.a.prototype.$icon=s;u=new o.a({mode:"hash",base:e,routes:u.a});u.afterEach(function(e){i.a.nextTick(function(){var e=document.querySelectorAll("pre code:not(.hljs)");Array.prototype.forEach.call(e,l.a.highlightBlock)});var t,n=f[e.meta.lang];for(t in n)if(new RegExp("^"+t,"g").test(e.name))return void(document.title=n[t]);document.title="TIS",ga("send","event","PageView",e.name)}),new i.a(r({},n.a,{router:u})).$mount("#app")}.call(this,"/")},function(e,t,n){var i;void 0===(i="function"==typeof(i=function(){"use strict";var m=window,o={placement:"bottom",gpuAcceleration:true,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:false};function e(e,t,n){this._reference=e.jquery?e[0]:e;this.state={};var i=typeof t==="undefined"||t===null;var r=t&&Object.prototype.toString.call(t)==="[object Object]";if(i||r)this._popper=this.parse(r?t:{});else this._popper=t.jquery?t[0]:t;this._options=Object.assign({},o,n);this._options.modifiers=this._options.modifiers.map(function(e){if(this._options.modifiersIgnored.indexOf(e)!==-1)return;if(e==="applyStyle")this._popper.setAttribute("x-placement",this._options.placement);return this.modifiers[e]||e}.bind(this));this.state.position=this._getPosition(this._popper,this._reference);s(this._popper,{position:this.state.position,top:0});this.update();this._setupEventListeners();return this}function g(e){var t=e.style.display,n=e.style.visibility;e.style.display="block";e.style.visibility="hidden";var i=e.offsetWidth;var r=m.getComputedStyle(e);var o=parseFloat(r.marginTop)+parseFloat(r.marginBottom);var a=parseFloat(r.marginLeft)+parseFloat(r.marginRight);var s={width:e.offsetWidth+a,height:e.offsetHeight+o};e.style.display=t;e.style.visibility=n;return s}function u(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function v(e){var t=Object.assign({},e);t.right=t.left+t.width;t.bottom=t.top+t.height;return t}function r(e,t){var n=0,i;for(i in e){if(e[i]===t)return n;n++}return null}function n(e,t){if(!e||e.nodeType===11)return;var n=m.getComputedStyle(e,null);return n[t]}function y(e){var t=e.offsetParent;return t===m.document.body||!t?m.document.documentElement:t}function x(e){var t=e.parentNode;if(!t)return e;if(t===m.document)if(m.document.body.scrollTop||m.document.body.scrollLeft)return m.document.body;else return m.document.documentElement;if(["scroll","auto"].indexOf(n(t,"overflow"))!==-1||["scroll","auto"].indexOf(n(t,"overflow-x"))!==-1||["scroll","auto"].indexOf(n(t,"overflow-y"))!==-1)return t;return x(e.parentNode)}function a(e){if(e===m.document.body)return false;if(n(e,"position")==="fixed")return true;return e.parentNode?a(e.parentNode):e}function s(n,i){function r(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(i).forEach(function(e){var t="";if(["width","height","top","right","bottom","left"].indexOf(e)!==-1&&r(i[e]))t="px";n.style[e]=i[e]+t})}function l(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function b(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};t.right=t.left+t.width;t.bottom=t.top+t.height;return t}function c(e){var t=e.getBoundingClientRect();var n=navigator.userAgent.indexOf("MSIE")!=-1;var i=n&&e.tagName==="HTML"?-e.scrollTop:t.top;return{left:t.left,top:i,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-i}}function h(e,t,n){var i=c(e);var r=c(t);if(n){var o=x(t);r.top+=o.scrollTop;r.bottom+=o.scrollTop;r.left+=o.scrollLeft;r.right+=o.scrollLeft}var a={top:i.top-r.top,left:i.left-r.left,bottom:i.top-r.top+i.height,right:i.left-r.left+i.width,width:i.width,height:i.height};return a}function d(e){var t=["","ms","webkit","moz","o"];for(var n=0;n<t.length;n++){var i=t[n]?t[n]+e.charAt(0).toUpperCase()+e.slice(1):e;if(typeof m.document.body.style[i]!=="undefined")return i}return null}if(e.prototype.destroy=function(){this._popper.removeAttribute("x-placement");this._popper.style.left="";this._popper.style.position="";this._popper.style.top="";this._popper.style[d("transform")]="";this._removeEventListeners();if(this._options.removeOnDestroy)this._popper.remove();return this},e.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement;e._originalPlacement=this._options.placement;e.offsets=this._getOffsets(this._popper,this._reference,e.placement);e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement);e=this.runModifiers(e,this._options.modifiers);if(typeof this.state.updateCallback==="function")this.state.updateCallback(e)},e.prototype.onCreate=function(e){e(this);return this},e.prototype.onUpdate=function(e){this.state.updateCallback=e;return this},e.prototype.parse=function(e){var t={tagName:"div",classNames:["popper"],attributes:[],parent:m.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};e=Object.assign({},t,e);var n=m.document;var i=n.createElement(e.tagName);a(i,e.classNames);s(i,e.attributes);if(e.contentType==="node")i.appendChild(e.content.jquery?e.content[0]:e.content);else if(e.contentType==="html")i.innerHTML=e.content;else i.textContent=e.content;if(e.arrowTagName){var r=n.createElement(e.arrowTagName);a(r,e.arrowClassNames);s(r,e.arrowAttributes);i.appendChild(r)}var o=e.parent.jquery?e.parent[0]:e.parent;if(typeof o==="string"){o=n.querySelectorAll(e.parent);if(o.length>1)console.warn("WARNING: the given `parent` query("+e.parent+") matched more than one element, the first one will be used");if(o.length===0)throw"ERROR: the given `parent` doesn't exists!";o=o[0]}if(o.length>1&&o instanceof Element===false){console.warn("WARNING: you have passed as parent a list of elements, the first one will be used");o=o[0]}o.appendChild(i);return i;function a(t,e){e.forEach(function(e){t.classList.add(e)})}function s(t,e){e.forEach(function(e){t.setAttribute(e.split(":")[0],e.split(":")[1]||"")})}},e.prototype._getPosition=function(e,t){var n=y(t);if(this._options.forceAbsolute)return"absolute";var i=a(t,n);return i?"fixed":"absolute"},e.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var i={};i.position=this.state.position;var r=i.position==="fixed";var o=h(t,y(e),r);var a=g(e);if(["right","left"].indexOf(n)!==-1){i.top=o.top+o.height/2-a.height/2;if(n==="left")i.left=o.left-a.width;else i.left=o.right}else{i.left=o.left+o.width/2-a.width/2;if(n==="top")i.top=o.top-a.height;else i.top=o.bottom}i.width=a.width;i.height=a.height;return{popper:i,reference:o}},e.prototype._setupEventListeners=function(){this.state.updateBound=this.update.bind(this);m.addEventListener("resize",this.state.updateBound);if(this._options.boundariesElement!=="window"){var e=x(this._reference);if(e===m.document.body||e===m.document.documentElement)e=m;e.addEventListener("scroll",this.state.updateBound);this.state.scrollTarget=e}},e.prototype._removeEventListeners=function(){m.removeEventListener("resize",this.state.updateBound);if(this._options.boundariesElement!=="window"&&this.state.scrollTarget){this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound);this.state.scrollTarget=null}this.state.updateBound=null},e.prototype._getBoundaries=function(e,t,n){var i={};var r,o;if(n==="window"){var a=m.document.body,s=m.document.documentElement;o=Math.max(a.scrollHeight,a.offsetHeight,s.clientHeight,s.scrollHeight,s.offsetHeight);r=Math.max(a.scrollWidth,a.offsetWidth,s.clientWidth,s.scrollWidth,s.offsetWidth);i={top:0,right:r,bottom:o,left:0}}else if(n==="viewport"){var l=y(this._popper);var u=x(this._popper);var c=b(l);var h=function e(t){return t==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):t.scrollTop};var d=function e(t){return t==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):t.scrollLeft};var p=e.offsets.popper.position==="fixed"?0:h(u);var f=e.offsets.popper.position==="fixed"?0:d(u);i={top:0-(c.top-p),right:m.document.documentElement.clientWidth-(c.left-f),bottom:m.document.documentElement.clientHeight-(c.top-p),left:0-(c.left-f)}}else if(y(this._popper)===n)i={top:0,left:0,right:n.clientWidth,bottom:n.clientHeight};else i=b(n);i.left+=t;i.right-=t;i.top=i.top+t;i.bottom=i.bottom-t;return i},e.prototype.runModifiers=function(t,e,n){var i=e.slice();if(n!==undefined)i=this._options.modifiers.slice(0,r(this._options.modifiers,n));i.forEach(function(e){if(l(e))t=e.call(this,t)}.bind(this));return t},e.prototype.isModifierRequired=function(e,t){var n=r(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter(function(e){return e===t}).length},(e.prototype.modifiers={}).applyStyle=function(e){var t={position:e.offsets.popper.position};var n=Math.round(e.offsets.popper.left);var i=Math.round(e.offsets.popper.top);var r;if(this._options.gpuAcceleration&&(r=d("transform"))){t[r]="translate3d("+n+"px, "+i+"px, 0)";t.top=0;t.left=0}else{t.left=n;t.top=i}Object.assign(t,e.styles);s(this._popper,t);this._popper.setAttribute("x-placement",e.placement);if(this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow)s(e.arrowElement,e.offsets.arrow);return e},e.prototype.modifiers.shift=function(e){var t=e.placement;var n=t.split("-")[0];var i=t.split("-")[1];if(i){var r=e.offsets.reference;var o=v(e.offsets.popper);var a={y:{start:{top:r.top},end:{top:r.top+r.height-o.height}},x:{start:{left:r.left},end:{left:r.left+r.width-o.width}}};var s=["bottom","top"].indexOf(n)!==-1?"x":"y";e.offsets.popper=Object.assign(o,a[s][i])}return e},e.prototype.modifiers.preventOverflow=function(n){var e=this._options.preventOverflowOrder;var i=v(n.offsets.popper);var t={left:function e(){var e=i.left;if(i.left<n.boundaries.left)e=Math.max(i.left,n.boundaries.left);return{left:e}},right:function e(){var t=i.left;if(i.right>n.boundaries.right)t=Math.min(i.left,n.boundaries.right-i.width);return{left:t}},top:function e(){var e=i.top;if(i.top<n.boundaries.top)e=Math.max(i.top,n.boundaries.top);return{top:e}},bottom:function e(){var t=i.top;if(i.bottom>n.boundaries.bottom)t=Math.min(i.top,n.boundaries.bottom-i.height);return{top:t}}};e.forEach(function(e){n.offsets.popper=Object.assign(i,t[e]())});return n},e.prototype.modifiers.keepTogether=function(e){var t=v(e.offsets.popper);var n=e.offsets.reference;var i=Math.floor;if(t.right<i(n.left))e.offsets.popper.left=i(n.left)-t.width;if(t.left>i(n.right))e.offsets.popper.left=i(n.right);if(t.bottom<i(n.top))e.offsets.popper.top=i(n.top)-t.height;if(t.top>i(n.bottom))e.offsets.popper.top=i(n.bottom);return e},e.prototype.modifiers.flip=function(r){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow)){console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!");return r}if(r.flipped&&r.placement===r._originalPlacement)return r;var o=r.placement.split("-")[0];var a=u(o);var s=r.placement.split("-")[1]||"";var l=[];if(this._options.flipBehavior==="flip")l=[o,a];else l=this._options.flipBehavior;l.forEach(function(e,t){if(o!==e||l.length===t+1)return;o=r.placement.split("-")[0];a=u(o);var n=v(r.offsets.popper);var i=["right","bottom"].indexOf(o)!==-1;if(i&&Math.floor(r.offsets.reference[o])>Math.floor(n[a])||!i&&Math.floor(r.offsets.reference[o])<Math.floor(n[a])){r.flipped=true;r.placement=l[t+1];if(s)r.placement+="-"+s;r.offsets.popper=this._getOffsets(this._popper,this._reference,r.placement).popper;r=this.runModifiers(r,this._options.modifiers,this._flip)}}.bind(this));return r},e.prototype.modifiers.offset=function(e){var t=this._options.offset;var n=e.offsets.popper;if(e.placement.indexOf("left")!==-1)n.top-=t;else if(e.placement.indexOf("right")!==-1)n.top+=t;else if(e.placement.indexOf("top")!==-1)n.left-=t;else if(e.placement.indexOf("bottom")!==-1)n.left+=t;return e},e.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement;var n=this._options.arrowOffset;if(typeof t==="string")t=this._popper.querySelector(t);if(!t)return e;if(!this._popper.contains(t)){console.warn("WARNING: `arrowElement` must be child of its popper element!");return e}if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether)){console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!");return e}var i={};var r=e.placement.split("-")[0];var o=v(e.offsets.popper);var a=e.offsets.reference;var s=["left","right"].indexOf(r)!==-1;var l=s?"height":"width";var u=s?"top":"left";var c=s?"translateY":"translateX";var h=s?"left":"top";var d=s?"bottom":"right";var p=g(t)[l];if(a[d]-p<o[u])e.offsets.popper[u]-=o[u]-(a[d]-p);if(a[u]+p>o[d])e.offsets.popper[u]+=a[u]+p-o[d];var f=a[u]+(n||a[l]/2-p/2);var m=f-o[u];m=Math.max(Math.min(o[l]-p-8,m),8);i[u]=m;i[h]="";e.offsets.arrow=i;e.arrowElement=t;return e},!Object.assign)Object.defineProperty(Object,"assign",{enumerable:false,configurable:true,writable:true,value:function e(t){if(t===undefined||t===null)throw new TypeError("Cannot convert first argument to object");var n=Object(t);for(var i=1;i<arguments.length;i++){var r=arguments[i];if(r===undefined||r===null)continue;r=Object(r);var o=Object.keys(r);for(var a=0,s=o.length;a<s;a++){var l=o[a];var u=Object.getOwnPropertyDescriptor(r,l);if(u!==undefined&&u.enumerable)n[l]=r[l]}}return n}});return e})?i.call(t,n,t,e):i)||(e.exports=i)},function(e,t,n){"use strict";var i=n(454),r=n(455);function o(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),((i="deltaX"in e?e.deltaX:i)||r)&&e.deltaMode&&(1==e.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),{spinX:t=i&&!t?i<1?-1:1:t,spinY:n=r&&!n?r<1?-1:1:n,pixelX:i,pixelY:r}}o.getEventType=function(){return i.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=o},function(e,t){var r,o,a,s,l,u,c,h,d,p,f,m,g,v,y,x=!1;function n(){var e,t,n,i;x||(x=!0,i=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(i),t=/(Mac OS X)|(Windows)|(Linux)/.exec(i),m=/\b(iPhone|iP[ao]d)/.exec(i),g=/\b(iP[ao]d)/.exec(i),p=/Android/i.exec(i),v=/FBAN\/\w+;/i.exec(i),y=/Mobile/i.exec(i),f=!!/Win64/.exec(i),e?((r=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN)&&document&&document.documentMode&&(r=document.documentMode),n=/(?:Trident\/(\d+.\d+))/.exec(i),u=n?parseFloat(n[1])+4:r,o=e[2]?parseFloat(e[2]):NaN,a=e[3]?parseFloat(e[3]):NaN,s=e[4]?parseFloat(e[4]):NaN,l=s?(e=/(?:Chrome\/(\d+\.\d+))/.exec(i))&&e[1]?parseFloat(e[1]):NaN:NaN):r=o=a=l=s=NaN,t?(c=!!t[1]&&(!(i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(i))||parseFloat(i[1].replace("_","."))),h=!!t[2],d=!!t[3]):c=h=d=!1)}var i={ie:function(){return n(),r},ieCompatibilityMode:function(){return n(),r<u},ie64:function(){return i.ie()&&f},firefox:function(){return n(),o},opera:function(){return n(),a},webkit:function(){return n(),s},safari:function(){return i.webkit()},chrome:function(){return n(),l},windows:function(){return n(),h},osx:function(){return n(),c},linux:function(){return n(),d},iphone:function(){return n(),m},mobile:function(){return(n(),m)||g||p||y},nativeApp:function(){return n(),v},android:function(){return n(),p},ipad:function(){return n(),g}};e.exports=i},function(e,t,n){"use strict";var r,o=n(456);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
|
|
/**
|
|
* 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
|
|
*/,e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;return i||((t=document.createElement("div")).setAttribute(n,"return;"),i="function"==typeof t[n]),i=!i&&r&&"wheel"===e?document.implementation.hasFeature("Events.wheel","3.0"):i}},function(e,t,n){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};e.exports=i},function(e,t,n){e.exports={default:n(458),__esModule:!0}},function(e,t,n){n(459),e.exports=n(115).Object.assign},function(e,t,n){var i=n(178);i(i.S+i.F,"Object",{assign:n(462)})},function(e,t,n){var o=n(461);e.exports=function(i,r,e){if(o(i),void 0===r)return i;switch(e){case 1:return function(e){return i.call(r,e)};case 2:return function(e,t){return i.call(r,e,t)};case 3:return function(e,t,n){return i.call(r,e,t,n)}}return function(){return i.apply(r,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var d=n(75),p=n(141),f=n(185),m=n(144),g=n(186),v=n(291),r=Object.assign;e.exports=!r||n(117)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=r({},e)[n]||Object.keys(r({},t)).join("")!=i})?function(e,t){for(var n=g(e),i=arguments.length,r=1,o=f.f,a=m.f;r<i;)for(var s,l=v(arguments[r++]),u=o?p(l).concat(o(l)):p(l),c=u.length,h=0;h<c;)s=u[h++],d&&!a.call(l,s)||(n[s]=l[s]);return n}:r},function(e,t,n){var l=n(93),u=n(464),c=n(465);e.exports=function(s){return function(e,t,n){var i,r=l(e),o=u(r.length),a=c(n,o);if(s&&t!=t){for(;a<o;)if((i=r[a++])!=i)return!0}else for(;a<o;a++)if((s||a in r)&&r[a]===t)return s||a||0;return!s&&-1}}},function(e,t,n){var i=n(181),r=Math.min;e.exports=function(e){return 0<e?r(i(e),9007199254740991):0}},function(e,t,n){var i=n(181),r=Math.max,o=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):o(e,t)}},function(e,t,n){e.exports={default:n(467),__esModule:!0}},function(e,t,n){n(468),n(474),e.exports=n(189).f("iterator")},function(e,t,n){"use strict";var i=n(469)(!0);n(293)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e=this._t,t=this._i;return t>=e.length?{value:void 0,done:!0}:(t=i(e,t),this._i+=t.length,{value:t,done:!1})})},function(e,t,n){var a=n(181),s=n(180);e.exports=function(o){return function(e,t){var n,i=String(s(e)),r=a(t),e=i.length;return r<0||e<=r?o?"":void 0:(t=i.charCodeAt(r))<55296||56319<t||r+1===e||(n=i.charCodeAt(r+1))<56320||57343<n?o?i.charAt(r):t:o?i.slice(r,r+2):n-56320+(t-55296<<10)+65536}}},function(e,t,n){"use strict";var i=n(295),r=n(140),o=n(188),a={};n(91)(a,n(94)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var a=n(92),s=n(139),l=n(141);e.exports=n(75)?Object.defineProperties:function(e,t){s(e);for(var n,i=l(t),r=i.length,o=0;o<r;)a.f(e,n=i[o++],t[n]);return e}},function(e,t,n){n=n(64).document;e.exports=n&&n.documentElement},function(e,t,n){var i=n(76),r=n(186),o=n(182)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){n(475);for(var i=n(64),r=n(91),o=n(187),a=n(94)("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=i[u],c=c&&c.prototype;c&&!c[a]&&r(c,a,u),o[u]=o.Array}},function(e,t,n){"use strict";var i=n(476),r=n(477),o=n(187),a=n(93);e.exports=n(293)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(479),__esModule:!0}},function(e,t,n){n(480),n(486),n(487),n(488),e.exports=n(115).Symbol},function(e,t,n){"use strict";function i(e){var t=W[e]=k(z[B]);return t._k=e,t}function r(e,t){w(e);for(var n,i=b(t=A(t)),r=0,o=i.length;r<o;)J(e,n=i[r++],t[n]);return e}function o(e){var t=$.call(this,e=M(e,!0));return!(this===G&&l(W,e)&&!l(X,e))&&(!(t||!l(this,e)||!l(W,e)||l(this,F)&&this[F][e])||t)}function a(e,t){if(e=A(e),t=M(t,!0),e!==G||!l(W,t)||l(X,t)){var n=P(e,t);return!n||!l(W,t)||l(e,F)&&e[F][t]||(n.enumerable=!0),n}}var s=n(64),l=n(76),u=n(75),c=n(178),h=n(294),d=n(481).KEY,p=n(117),f=n(183),m=n(188),g=n(143),v=n(94),y=n(189),x=n(190),b=n(482),_=n(483),w=n(139),C=n(116),S=n(186),A=n(93),M=n(179),T=n(140),k=n(295),D=n(484),I=n(485),O=n(185),N=n(92),L=n(141),P=I.f,E=N.f,H=D.f,z=s.Symbol,R=s.JSON,j=R&&R.stringify,B="prototype",F=v("_hidden"),V=v("toPrimitive"),$={}.propertyIsEnumerable,Y=f("symbol-registry"),W=f("symbols"),X=f("op-symbols"),G=Object[B],U="function"==typeof z&&!!O.f,q=s.QObject,Z=!q||!q[B]||!q[B].findChild,K=u&&p(function(){return 7!=k(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=P(G,t);i&&delete G[t],E(e,t,n),i&&e!==G&&E(G,t,i)}:E,Q=U&&"symbol"==typeof z.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof z},J=function(e,t,n){return e===G&&J(X,t,n),w(e),t=M(t,!0),w(n),l(W,t)?(n.enumerable?(l(e,F)&&e[F][t]&&(e[F][t]=!1),n=k(n,{enumerable:T(0,!1)})):(l(e,F)||E(e,F,T(1,{})),e[F][t]=!0),K(e,t,n)):E(e,t,n)},f=function(e){for(var t,n=H(A(e)),i=[],r=0;n.length>r;)l(W,t=n[r++])||t==F||t==d||i.push(t);return i},q=function(e){for(var t,n=e===G,i=H(n?X:A(e)),r=[],o=0;i.length>o;)!l(W,t=i[o++])||n&&!l(G,t)||r.push(W[t]);return r};U||(h((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor!");var t=g(0<arguments.length?arguments[0]:void 0),n=function(e){this===G&&n.call(X,e),l(this,F)&&l(this[F],t)&&(this[F][t]=!1),K(this,t,T(1,e))};return u&&Z&&K(G,t,{configurable:!0,set:n}),i(t)})[B],"toString",function(){return this._k}),I.f=a,N.f=J,n(296).f=D.f=f,n(144).f=o,O.f=q,u&&!n(142)&&h(G,"propertyIsEnumerable",o,!0),y.f=function(e){return i(v(e))}),c(c.G+c.W+c.F*!U,{Symbol:z});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)v(ee[te++]);for(var ne=L(v.store),ie=0;ne.length>ie;)x(ne[ie++]);c(c.S+c.F*!U,"Symbol",{for:function(e){return l(Y,e+="")?Y[e]:Y[e]=z(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in Y)if(Y[t]===e)return t},useSetter:function(){Z=!0},useSimple:function(){Z=!1}}),c(c.S+c.F*!U,"Object",{create:function(e,t){return void 0===t?k(e):r(k(e),t)},defineProperty:J,defineProperties:r,getOwnPropertyDescriptor:a,getOwnPropertyNames:f,getOwnPropertySymbols:q});q=p(function(){O.f(1)});c(c.S+c.F*q,"Object",{getOwnPropertySymbols:function(e){return O.f(S(e))}}),R&&c(c.S+c.F*(!U||p(function(){var e=z();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))})),"JSON",{stringify:function(e){for(var t,n,i=[e],r=1;r<arguments.length;)i.push(arguments[r++]);if(n=t=i[1],(C(t)||void 0!==e)&&!Q(e))return _(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),i[1]=t,j.apply(R,i)}}),z[B][V]||n(91)(z[B],V,z[B].valueOf),m(z,"Symbol"),m(Math,"Math",!0),m(s.JSON,"JSON",!0)},function(e,t,n){function i(e){s(e,r,{value:{i:"O"+ ++l,w:{}}})}var r=n(143)("meta"),o=n(116),a=n(76),s=n(92).f,l=0,u=Object.isExtensible||function(){return!0},c=!n(117)(function(){return u(Object.preventExtensions({}))}),h=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!u(e))return"F";if(!t)return"E";i(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!u(e))return!0;if(!t)return!1;i(e)}return e[r].w},onFreeze:function(e){return c&&h.NEED&&u(e)&&!a(e,r)&&i(e),e}}},function(e,t,n){var s=n(141),l=n(185),u=n(144);e.exports=function(e){var t=s(e),n=l.f;if(n)for(var i,r=n(e),o=u.f,a=0;r.length>a;)o.call(e,i=r[a++])&&t.push(i);return t}},function(e,t,n){var i=n(292);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(93),r=n(296).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(i(e))}},function(e,t,n){var i=n(144),r=n(140),o=n(93),a=n(179),s=n(76),l=n(288),u=Object.getOwnPropertyDescriptor;t.f=n(75)?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(190)("asyncIterator")},function(e,t,n){n(190)("observable")},function(e,t,n){var i=n(1),s=n(20),r=n(490),o=n(77),a=n(54),l=n(492),u="silent";function c(){a.stop(this.event)}function h(){}h.prototype.dispose=function(){};function d(e,t,n,i){o.call(this),this.storage=e,this.painter=t,this.painterRoot=i,n=n||new h,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,r.call(this),this.setHandlerProxy(n)}var p=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"];function f(e,t,n){e=e.painter;return t<0||t>e.getWidth()||n<0||n>e.getHeight()}d.prototype={constructor:d,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(p,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(e){var t=e.zrX,n=e.zrY,i=f(this,t,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);i=this._hovered=i?{x:t,y:n}:this.findHover(t,n),t=i.target,n=this.proxy;n.setCursor&&n.setCursor(t?t.cursor:"default"),o&&t!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(i,"mousemove",e),t&&t!==o&&this.dispatchToElement(i,"mouseover",e)},mouseout:function(e){var t=e.zrEventControl,n=e.zrIsToLocalDOM;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&(n||this.trigger("globalout",{type:"globalout",event:e}))},resize:function(e){this._hovered={}},dispatch:function(e,t){e=this[e];e&&e.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,n){var i=(e=e||{}).target;if(!i||!i.silent){for(var r="on"+t,o={type:t,event:n=n,target:(e=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:c};i&&(i[r]&&(o.cancelBubble=i[r].call(i,o)),i.trigger(t,o),i=i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer(function(e){"function"==typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)}))}},findHover:function(e,t,n){for(var i,r=this.storage.getDisplayList(),o={x:e,y:t},a=r.length-1;0<=a;a--)if(r[a]!==n&&!r[a].ignore&&(i=function(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i,r=e;r;){if(r.clipPath&&!r.clipPath.contain(t,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||u}return!1}(r[a],e,t))&&(o.topTarget||(o.topTarget=r[a]),i!==u)){o.target=r[a];break}return o},processGesture:function(e,t){this._gestureMgr||(this._gestureMgr=new l);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);"end"===t&&n.clear(),i&&(n=i.type,e.gestureEvent=n,this.dispatchToElement({target:i.target},n,i.event))}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){d.prototype[a]=function(e){var t,n,i=e.zrX,r=e.zrY,o=f(this,i,r);if("mouseup"===a&&o||(n=(t=this.findHover(i,r)).target),"mousedown"===a)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4<s.dist(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(t,a,e)}}),i.mixin(d,o),i.mixin(d,r),e.exports=d},function(e,t){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function a(e,t){return{target:e,topTarget:t&&t.topTarget}}n.prototype={constructor:n,_dragStart:function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent;t&&((this._draggingTarget=t).dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(a(t,e),"dragstart",e.event))},_drag:function(e){var t,n,i,r,o=this._draggingTarget;o&&(i=e.offsetX,r=e.offsetY,t=i-this._x,n=r-this._y,this._x=i,this._y=r,o.drift(t,n,e),this.dispatchToElement(a(o,e),"drag",e.event),i=this.findHover(i,r,o).target,r=this._dropTarget,o!==(this._dropTarget=i)&&(r&&i!==r&&this.dispatchToElement(a(r,e),"dragleave",e.event),i&&i!==r&&this.dispatchToElement(a(i,e),"dragenter",e.event)))},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(a(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(a(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}};e.exports=n},function(e,t){var m=Math.log(2);function g(e,t,n,i,r,o){var a=i+"-"+r,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~r)/m);return e[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,d=0,p=0;d<s;d++){var f=1<<d;f&r||(h+=(p%2?-1:1)*e[n][d]*g(e,t-1,c,u,r|f,o),p++)}return o[a]=h}t.buildTransformer=function(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},r=g(n,8,0,0,0,i);if(0!==r){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)*g(n,7,0===a?1:0,1<<a,1<<s,i)/r*t[a];return function(e,t,n){var i=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/i,e[1]=(t*o[3]+n*o[4]+o[5])/i}}}},function(e,t,n){var u=n(54),n=function(){this._track=[]};function r(e){var t=e[1][0]-e[0][0],e=e[1][1]-e[0][1];return Math.sqrt(t*t+e*e)}n.prototype={constructor:n,recognize:function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,a=i.length;o<a;o++){var s=i[o],l=u.clientToLocal(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},_recognize:function(e){for(var t in i)if(i.hasOwnProperty(t)){t=i[t](this._track,e);if(t)return t}}};var i={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,n=(e[n-2]||{}).points||i;if(n&&1<n.length&&i&&1<i.length){n=r(i)/r(n);isFinite(n)||(n=1),t.pinchScale=n;i=[((i=i)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=i[0],t.pinchY=i[1],{type:"pinch",target:e[0].target,event:t}}}}};e.exports=n},function(e,t,n){var o=n(1),a=n(25),s=n(78),l=n(191);function u(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}n=function(){this._roots=[],this._displayList=[],this._displayListLen=0};n.prototype={constructor:n,traverse:function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},getDisplayList:function(e,t){return t=t||!1,e&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,a.canvasSupported&&l(n,u)},_updateAndAddDisplayable:function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var i=e.clipPath;if(i){t=t?t.slice():[];for(var r=i,o=e;r;)r.parent=o,r.updateTransform(),t.push(r),r=(o=r).clipPath}if(e.isGroup){for(var a=e._children,s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,t,n)}e.__dirty=!1}else e.__clipPaths=t,this._displayList[this._displayListLen++]=e}},addRoot:function(e){e.__storage!==this&&(e instanceof s&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e))},delRoot:function(e){if(null==e){for(var t=0;t<this._roots.length;t++){var n=this._roots[t];n instanceof s&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(e instanceof Array)for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);else{var r=o.indexOf(this._roots,e);0<=r&&(this.delFromStorage(e),this._roots.splice(r,1),e instanceof s&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:u},e.exports=n},function(e,t,n){var d=n(300),p=n(119),n=n(1),f=n.isString,m=n.isFunction,g=n.isObject,v=n.isArrayLike,y=n.indexOf,n=function(){this.animators=[]};function a(e,t,n,i,r,o,a,s){f(i)?(o=r,r=i,i=0):m(r)?(o=r,r="linear",i=0):m(i)?(o=i,i=0):n=m(n)?(o=n,500):n||500,e.stopAnimation(),function e(t,n,i,r,o,a,s){var l={};var u=0;for(var c in r)r.hasOwnProperty(c)&&(null!=i[c]?g(r[c])&&!v(r[c])?e(t,n?n+"."+c:c,i[c],r[c],o,a,s):(s?(l[c]=i[c],x(t,n,c,r[c])):l[c]=r[c],u++):null==r[c]||s||x(t,n,c,r[c]));0<u&&t.animate(n,!1).when(null==o?500:o,l).delay(a||0)}(e,"",e,t,n,i,s);var l=e.animators.slice(),u=l.length;function c(){--u||o&&o()}u||o&&o();for(var h=0;h<l.length;h++)l[h].done(c).start(r,a)}function x(e,t,n,i){var r;t?((r={})[t]={},r[t][n]=i,e.attr(r)):e.attr(n,i)}n.prototype={constructor:n,animate:function(e,t){var n,i=!1,r=this,o=this.__zr;if(e){for(var a=e.split("."),s=r,i="shape"===a[0],l=0,u=a.length;l<u;l++)s=s&&s[a[l]];s&&(n=s)}else n=r;if(n){var c=r.animators,h=new d(n,t);return h.during(function(e){r.dirty(i)}).done(function(){c.splice(y(c,h),1)}),c.push(h),o&&o.animation.addAnimator(h),h}p('Property "'+e+'" is not existed in element '+r.id)},stopAnimation:function(e){for(var t=this.animators,n=t.length,i=0;i<n;i++)t[i].stop(e);return t.length=0,this},animateTo:function(e,t,n,i,r,o){a(this,e,t,n,i,r,o)},animateFrom:function(e,t,n,i,r,o){a(this,e,t,n,i,r,o,!0)}},e.exports=n},function(e,t,n){var i=n(496);function r(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this._pausedTime=0,this._paused=!1}r.prototype={constructor:r,step:function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused)this._pausedTime+=t;else if(!((n=(e-this._startTime-this._pausedTime)/this._life)<0)){var n=Math.min(n,1),t=this.easing,t="string"==typeof t?i[t]:t,t="function"==typeof t?t(n):n;return this.fire("frame",t),1===n?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(e,t){this[e="on"+e]&&this[e](this._target,t)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};e.exports=r},function(e,t){var n={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(t=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*--e)*Math.sin((e-t)*(2*Math.PI)/.4)))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(t=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(t=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*--e)*Math.sin((e-t)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--e)*Math.sin((e-t)*(2*Math.PI)/.4)*.5+1)},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((1+t)*e-t)*.5:.5*((e-=2)*e*((1+t)*e+t)+2)},bounceIn:function(e){return 1-n.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*n.bounceIn(2*e):.5*n.bounceOut(2*e-1)+.5}};e.exports=n},function(e,t,n){var a=n(147).devicePixelRatio,v=n(1),u=n(119),i=n(21),s=n(191),c=n(498),o=n(304),h=n(95),y=n(25),d=314159;function l(e){return parseInt(e,10)}var p=new i(0,0,0,0),f=new i(0,0,0,0);i=function(e,t,n){this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=v.extend({},n||{}),this.dpr=n.devicePixelRatio||a,this._singleCanvas=i;var r=(this.root=e).style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var o,r=this._zlevelList=[],t=this._layers={};this._layerConfig={},this._needsManuallyCompositing=!1,i?(i=e.width,o=e.height,null!=n.width&&(i=n.width),null!=n.height&&(o=n.height),this.dpr=n.devicePixelRatio||1,e.width=i*this.dpr,e.height=o*this.dpr,this._width=i,this._height=o,(o=new c(e,this,this.dpr)).__builtin__=!0,o.initContext(),(t[d]=o).zlevel=d,r.push(d),this._domRoot=e):(this._width=this._getSize(0),this._height=this._getSize(1),r=this._domRoot=(t=this._width,o=this._height,(r=document.createElement("div")).style.cssText=["position:relative","width:"+t+"px","height:"+o+"px","padding:0","margin:0","border-width:0"].join(";")+";",r),e.appendChild(r)),this._hoverlayer=null,this._hoverElements=[]};i.prototype={constructor:i,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(e){var t=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,e,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],o=this._layers[r];!o.__builtin__&&o.refresh&&(r=0===i?this._backgroundColor:null,o.refresh(r))}return this.refreshHover(),this},addHover:function(e,t){if(!e.__hoverMir){var n=new e.constructor({style:e.style,shape:e.shape,z:e.z,z2:e.z2,silent:e.silent});return(n.__from=e).__hoverMir=n,t&&n.setStyle(t),this._hoverElements.push(n),n}},removeHover:function(e){var t=e.__hoverMir,n=this._hoverElements,t=v.indexOf(n,t);0<=t&&n.splice(t,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,n=0;n<t.length;n++){var i=t[n].__from;i&&(i.__hoverMir=null)}t.length=0},refreshHover:function(){var e=this._hoverElements,t=e.length;if((n=this._hoverlayer)&&n.clear(),t){s(e,this.storage.displayableSortFunc);var n,i={};(n=n||(this._hoverlayer=this.getLayer(1e5))).ctx.save();for(var r=0;r<t;){var o=e[r],a=o.__from;a&&a.__zr?(r++,a.invisible||(o.transform=a.transform,o.invTransform=a.invTransform,o.__clipPaths=a.__clipPaths,this._doPaintEl(o,n,!0,i))):(e.splice(r,1),a.__hoverMir=null,t--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(1e5)},_paintList:function(e,t,n){var i,r;this._redrawId===n&&(t=t||!1,this._updateLayerStatus(e),i=this._doPaintList(e,t),this._needsManuallyCompositing&&this._compositeManually(),i||(r=this,o(function(){r._paintList(e,t,n)})))},_compositeManually:function(){var t=this.getLayer(d).ctx,n=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,n,i),this.eachBuiltinLayer(function(e){e.virtual&&t.drawImage(e.dom,0,0,n,i)})},_doPaintList:function(e,t){for(var n=[],i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];(s=this._layers[r]).__builtin__&&s!==this._hoverlayer&&(s.__dirty||t)&&n.push(s)}for(var o=!0,a=0;a<n.length;a++){var s,l=(s=n[a]).ctx,u={};l.save();var c,h=t?s.__startIndex:s.__drawIndex,d=!t&&s.incremental&&Date.now,p=d&&Date.now(),f=s.zlevel===this._zlevelList[0]?this._backgroundColor:null;s.__startIndex===s.__endIndex?s.clear(!1,f):h===s.__startIndex&&((c=e[h]).incremental&&c.notClear&&!t||s.clear(!1,f)),-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=s.__startIndex);for(var m=h;m<s.__endIndex;m++){var g=e[m];if(this._doPaintEl(g,s,t,u),g.__dirty=g.__dirtyText=!1,d)if(15<Date.now()-p)break}s.__drawIndex=m,s.__drawIndex<s.__endIndex&&(o=!1),u.prevElClipPaths&&l.restore(),l.restore()}return y.wxa&&v.each(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),o},_doPaintEl:function(e,t,n,i){var r,o,a=t.ctx,s=e.transform;!t.__dirty&&!n||e.invisible||0===e.style.opacity||s&&!s[0]&&!s[3]||e.culling&&(s=e,r=this._width,o=this._height,p.copy(s.getBoundingRect()),s.transform&&p.applyTransform(s.transform),f.width=r,f.height=o,!p.intersect(f))||(r=e.__clipPaths,(o=i.prevElClipPaths)&&!function(e,t){if(e!==t){if(!e||!t||e.length!==t.length)return 1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return 1}}(r,o)||(o&&(a.restore(),i.prevElClipPaths=null,i.prevEl=null),r&&(a.save(),function(e,t){for(var n=0;n<e.length;n++){var i=e[n];i.setTransform(t),t.beginPath(),i.buildPath(t,i.shape),t.clip(),i.restoreTransform(t)}}(r,a),i.prevElClipPaths=r)),e.beforeBrush&&e.beforeBrush(a),e.brush(a,i.prevEl||null),(i.prevEl=e).afterBrush&&e.afterBrush(a))},getLayer:function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=d);var n=this._layers[e];return n||((n=new c("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?v.merge(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&v.merge(n,this._layerConfig[e-.01],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},insertLayer:function(e,t){var n,i=this._layers,r=this._zlevelList,o=r.length,a=null,s=-1,l=this._domRoot;if(i[e])u("ZLevel "+e+" has been used already");else if((n=t)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<o&&e>r[0]){for(s=0;s<o-1&&!(r[s]<e&&r[s+1]>e);s++);a=i[r[s]]}r.splice(s+1,0,e),(i[e]=t).virtual||(a?(a=a.dom).nextSibling?l.insertBefore(t.dom,a.nextSibling):l.appendChild(t.dom):l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom))}else u("Layer of zlevel "+e+" is not valid")},eachLayer:function(e,t){for(var n,i=this._zlevelList,r=0;r<i.length;r++)n=i[r],e.call(t,this._layers[n],n)},eachBuiltinLayer:function(e,t){for(var n,i,r=this._zlevelList,o=0;o<r.length;o++)i=r[o],(n=this._layers[i]).__builtin__&&e.call(t,n,i)},eachOtherLayer:function(e,t){for(var n,i,r=this._zlevelList,o=0;o<r.length;o++)i=r[o],(n=this._layers[i]).__builtin__||e.call(t,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(e){function t(e){r&&(r.__endIndex!==e&&(r.__dirty=!0),r.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++)if((a=e[n]).zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}for(var i,r=null,o=0,n=0;n<e.length;n++){var a,s,l=(a=e[n]).zlevel;i!==l&&(i=l,o=0),a.incremental?((s=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,o=1):s=this.getLayer(l+(0<o?.01:0),this._needsManuallyCompositing),s.__builtin__||u("ZLevel "+l+" has been used by unkown layer "+s.id),s!==r&&(s.__used=!0,s.__startIndex!==n&&(s.__dirty=!0),s.__startIndex=n,s.incremental?s.__drawIndex=-1:s.__drawIndex=n,t(n),r=s),a.__dirty&&(s.__dirty=!0,s.incremental&&s.__drawIndex<0&&(s.__drawIndex=n))}t(n),this.eachBuiltinLayer(function(e,t){!e.__used&&0<e.getElementCount()&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var n=this._layerConfig;n[e]?v.merge(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==e&&r!==e+.01||(r=this._layers[r],v.merge(r,n[e],!0))}}},delLayer:function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(v.indexOf(n,e),1))},resize:function(t,n){if(this._domRoot.style){var e=this._domRoot;e.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=n&&(i.height=n),t=this._getSize(0),n=this._getSize(1),e.style.display="",this._width!==t||n!==this._height){for(var r in e.style.width=t+"px",e.style.height=n+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,n);v.each(this._progressiveLayers,function(e){e.resize(t,n)}),this.refresh(!0)}this._width=t,this._height=n}else{if(null==t||null==n)return;this._width=t,this._height=n,this.getLayer(d).resize(t,n)}return this},clearLayer:function(e){e=this._layers[e];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(this._singleCanvas&&!this._compositeManually)return this._layers[d].dom;var t=new c("image",this,(e=e||{}).pixelRatio||this.dpr);if(t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor),e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height,r=t.ctx;this.eachLayer(function(e){e.__builtin__?r.drawImage(e.dom,0,0,n,i):e.renderToCanvas&&(t.ctx.save(),e.renderToCanvas(t.ctx),t.ctx.restore())})}else for(var o={},a=this.storage.getDisplayList(!0),s=0;s<a.length;s++){var l=a[s];this._doPaintEl(l,t,!0,o)}return t.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],i=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);e=this.root,t=document.defaultView.getComputedStyle(e);return(e[i]||l(t[n])||l(e.style[n]))-(l(t[r])||0)-(l(t[o])||0)|0},pathToImage:function(e,t){t=t||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=e.getBoundingRect(),o=e.style,a=o.shadowBlur*t,s=o.shadowOffsetX*t,l=o.shadowOffsetY*t,u=o.hasStroke()?o.lineWidth:0,c=Math.max(u/2,a-s),o=Math.max(u/2,s+a),s=Math.max(u/2,a-l),a=Math.max(u/2,l+a),o=r.width+c+o,a=r.height+s+a;n.width=o*t,n.height=a*t,i.scale(t,t),i.clearRect(0,0,o,a),i.dpr=t;t={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[c-r.x,s-r.y],e.rotation=0,e.scale=[1,1],e.updateTransform(),e&&e.brush(i);n=new h({style:{x:0,y:0,image:n}});return null!=t.position&&(n.position=e.position=t.position),null!=t.rotation&&(n.rotation=e.rotation=t.rotation),null!=t.scale&&(n.scale=e.scale=t.scale),n}},e.exports=i},function(e,t,n){var a=n(1),r=n(147).devicePixelRatio,u=n(192),c=n(303);function o(){return!1}function s(e,t,n){var i=a.createCanvas(),r=t.getWidth(),o=t.getHeight(),t=i.style;return t&&(t.position="absolute",t.left=0,t.top=0,t.width=r+"px",t.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}n=function(e,t,n){var i;n=n||r,"string"==typeof e?i=s(e,t,n):a.isObject(e)&&(e=(i=e).id),this.id=e;e=(this.dom=i).style;e&&(i.onselectstart=o,e["-webkit-user-select"]="none",e["user-select"]="none",e["-webkit-touch-callout"]="none",e["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",e.padding=0,e.margin=0,e["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};n.prototype={constructor:n,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=s("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},resize:function(e,t){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(e,t){var n,i=this.dom,r=this.ctx,o=i.width,a=i.height,t=t||this.clearColor,s=this.motionBlur&&!e,l=this.lastFrameAlpha,e=this.dpr;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/e,a/e)),r.clearRect(0,0,o,a),t&&"transparent"!==t&&(t.colorStops?(n=t.__canvasGradient||u.getGradient(r,t,{x:0,y:0,width:o,height:a}),t.__canvasGradient=n):t.image&&(n=c.prototype.getCanvasPattern.call(t,r)),r.save(),r.fillStyle=n||t,r.fillRect(0,0,o,a),r.restore()),s&&(s=this.domBack,r.save(),r.globalAlpha=l,r.drawImage(s,0,0,o,a),r.restore())}},e.exports=n},function(e,t,n){var i=n(1),r=n(54).Dispatcher,o=n(304),a=n(300),n=function(e){this.stage=(e=e||{}).stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,r.call(this)};n.prototype={constructor:n,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),n=0;n<t.length;n++)this.addClip(t[n])},removeClip:function(e){e=i.indexOf(this._clips,e);0<=e&&this._clips.splice(e,1)},removeAnimator:function(e){for(var t=e.getClips(),n=0;n<t.length;n++)this.removeClip(t[n]);e.animation=null},_update:function(){for(var e=(new Date).getTime()-this._pausedTime,t=e-this._time,n=this._clips,i=n.length,r=[],o=[],a=0;a<i;a++){var s=n[a],l=s.step(e,t);l&&(r.push(l),o.push(s))}for(a=0;a<i;)n[a]._needsRemove?(n[a]=n[i-1],n.pop(),i--):a++;for(i=r.length,a=0;a<i;a++)o[a].fire(r[a]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var t=this;this._running=!0,o(function e(){t._running&&(o(e),t._paused||t._update())})},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(e,t){t=new a(e,(t=t||{}).loop,t.getter,t.setter);return this.addAnimator(t),t}},i.mixin(n,r),e.exports=n},function(e,t,n){var i,r=n(54),o=r.addEventListener,a=r.removeEventListener,s=r.normalizeEvent,l=r.getNativeEvent,u=n(1),c=n(77),h=n(25),d=h.domSupported,p=(i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:n=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:u.map(n,function(e){var t=e.replace("mouse","pointer");return i.hasOwnProperty(t)?t:e})}),f={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function m(e){return"mousewheel"===e&&h.browser.firefox?"DOMMouseScroll":e}function g(e){e=e.pointerType;return"pen"===e||"touch"===e}function v(e){e&&(e.zrByTouch=!0)}function y(e,t){for(var n=t,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return i}function x(e,t){this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}n=x.prototype;n.stopPropagation=n.stopImmediatePropagation=n.preventDefault=u.noop;var b={mousedown:function(e){e=s(this.dom,e),this._mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=s(this.dom,e);var t=this._mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||M(this,!0),this.trigger("mousemove",e)},mouseup:function(e){e=s(this.dom,e),M(this,!1),this.trigger("mouseup",e)},mouseout:function(e){e=s(this.dom,e),this._pointerCapturing&&(e.zrEventControl="no_globalout");var t=e.toElement||e.relatedTarget;e.zrIsToLocalDOM=y(this,t),this.trigger("mouseout",e)},touchstart:function(e){v(e=s(this.dom,e)),this._lastTouchMoment=new Date,this.handler.processGesture(e,"start"),b.mousemove.call(this,e),b.mousedown.call(this,e)},touchmove:function(e){v(e=s(this.dom,e)),this.handler.processGesture(e,"change"),b.mousemove.call(this,e)},touchend:function(e){v(e=s(this.dom,e)),this.handler.processGesture(e,"end"),b.mouseup.call(this,e),+new Date-this._lastTouchMoment<300&&b.click.call(this,e)},pointerdown:function(e){b.mousedown.call(this,e)},pointermove:function(e){g(e)||b.mousemove.call(this,e)},pointerup:function(e){b.mouseup.call(this,e)},pointerout:function(e){g(e)||b.mouseout.call(this,e)}};u.each(["click","mousewheel","dblclick","contextmenu"],function(t){b[t]=function(e){e=s(this.dom,e),this.trigger(t,e)}});var _={pointermove:function(e){g(e)||_.mousemove.call(this,e)},pointerup:function(e){_.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this._pointerCapturing;M(this,!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function w(i,r){var o=r.domHandlers;h.pointerEventsSupported?u.each(p.pointer,function(t){S(r,t,function(e){o[t].call(i,e)})}):(h.touchEventsSupported&&u.each(p.touch,function(n){S(r,n,function(e){var t;o[n].call(i,e),(t=r).touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)})}),u.each(p.mouse,function(t){S(r,t,function(e){e=l(e),r.touching||o[t].call(i,e)})}))}function C(r,o){function e(i){S(o,i,function(e){var t,n;e=l(e),y(r,e.target)||(n=e,e=s((t=r).dom,new x(t,n),!0),o.domHandlers[i].call(r,e))},{capture:!0})}h.pointerEventsSupported?u.each(f.pointer,e):h.touchEventsSupported||u.each(f.mouse,e)}function S(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,o(e.domTarget,m(t),n,i)}function A(e){var t,n=e.mounted;for(t in n)n.hasOwnProperty(t)&&a(e.domTarget,m(t),n[t],e.listenerOpts[t]);e.mounted={}}function M(e,t){var n;e._mayPointerCapture=null,d&&e._pointerCapturing^t&&(e._pointerCapturing=t,n=e._globalHandlerScope,t?C(e,n):A(n))}function T(e,t){this.domTarget=e,this.domHandlers=t,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function k(e,t){c.call(this),this.dom=e,this.painterRoot=t,this._localHandlerScope=new T(e,b),d&&(this._globalHandlerScope=new T(document,_)),this._pointerCapturing=!1,this._mayPointerCapture=null,w(this,this._localHandlerScope)}n=k.prototype;n.dispose=function(){A(this._localHandlerScope),d&&A(this._globalHandlerScope)},n.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},u.mixin(k,c),e.exports=k},function(e,t,n){var i=n(96)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);e.exports={getLineStyle:function(e){e=i(this,e);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),n=Math.max(e,2),e=4*e;return"solid"!==t&&null!=t&&("dashed"===t?[e,e]:[n,n])}}},function(e,t,n){var i=n(96)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]);e.exports={getAreaStyle:function(e,t){return i(this,e,t)}}},function(e,t,n){var i=n(41),r=n(6),o=["textStyle","color"];e.exports={getTextColor:function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(o):null)},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return i.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}}},function(e,t,n){var i=n(97),S=n(309),A=n(505),M=n(310),T=n(506),k=n(311).normalizeRadian,D=n(65),I=n(312),O=i.CMD,N=2*Math.PI,L=1e-4;var P=[-1,-1,-1],y=[-1,-1];function E(e,t,n,i,r,o,a,s,l,u){if(t<u&&i<u&&o<u&&s<u||u<t&&u<i&&u<o&&u<s)return 0;var c=D.cubicRootAt(t,i,o,s,u,P);if(0===c)return 0;for(var h,d,p=0,f=-1,m=0;m<c;m++){var g=P[m],v=0===g||1===g?.5:1;D.cubicAt(e,n,r,a,g)<l||(f<0&&(f=D.cubicExtrema(t,i,o,s,y),y[1]<y[0]&&1<f&&(d=void 0,d=y[0],y[0]=y[1],y[1]=d),d=D.cubicAt(t,i,o,s,y[0]),1<f&&(h=D.cubicAt(t,i,o,s,y[1]))),2===f?g<y[0]?p+=d<t?v:-v:g<y[1]?p+=h<d?v:-v:p+=s<h?v:-v:g<y[0]?p+=d<t?v:-v:p+=s<d?v:-v)}return p}function r(e,t,n,i,r){for(var o,a,s=0,l=0,u=0,c=0,h=0,d=0;d<e.length;){var p=e[d++];switch(p===O.M&&1<d&&(n||(s+=I(l,u,c,h,i,r))),1===d&&(c=l=e[d],h=u=e[d+1]),p){case O.M:l=c=e[d++],u=h=e[d++];break;case O.L:if(n){if(S.containStroke(l,u,e[d],e[d+1],t,i,r))return!0}else s+=I(l,u,e[d],e[d+1],i,r)||0;l=e[d++],u=e[d++];break;case O.C:if(n){if(A.containStroke(l,u,e[d++],e[d++],e[d++],e[d++],e[d],e[d+1],t,i,r))return!0}else s+=E(l,u,e[d++],e[d++],e[d++],e[d++],e[d],e[d+1],i,r)||0;l=e[d++],u=e[d++];break;case O.Q:if(n){if(M.containStroke(l,u,e[d++],e[d++],e[d],e[d+1],t,i,r))return!0}else s+=function(e,t,n,i,r,o,a,s){if(t<s&&i<s&&o<s||s<t&&s<i&&s<o)return 0;var l=D.quadraticRootAt(t,i,o,s,P);if(0===l)return 0;var u=D.quadraticExtremum(t,i,o);if(0<=u&&u<=1){for(var c=0,h=D.quadraticAt(t,i,o,u),d=0;d<l;d++){var p=0===P[d]||1===P[d]?.5:1;D.quadraticAt(e,n,r,P[d])<a||(P[d]<u?c+=h<t?p:-p:c+=o<h?p:-p)}return c}return p=0===P[0]||1===P[0]?.5:1,D.quadraticAt(e,n,r,P[0])<a?0:o<t?p:-p}(l,u,e[d++],e[d++],e[d],e[d+1],i,r)||0;l=e[d++],u=e[d++];break;case O.A:var f=e[d++],m=e[d++],g=e[d++],v=e[d++],y=e[d++],x=e[d++];d+=1;var b=1-e[d++],_=Math.cos(y)*g+f,w=Math.sin(y)*v+m;1<d?s+=I(l,u,_,w,i,r):(c=_,h=w);var C=(i-f)*v/g+f;if(n){if(T.containStroke(f,m,v,y,y+x,b,t,C,r))return!0}else s+=function(e,t,n,i,r,o,a,s){if(n<(s-=t)||s<-n)return 0;if(t=Math.sqrt(n*n-s*s),P[0]=-t,P[1]=t,(n=Math.abs(i-r))<1e-4)return 0;if(n%N<1e-4){r=N;var l=o?1:-1;return a>=P[i=0]+e&&a<=P[1]+e?l:0}(r=o?(t=i,i=k(r),k(t)):(i=k(i),k(r)))<i&&(r+=N);for(var u=0,c=0;c<2;c++){var h=P[c];a<h+e&&(l=o?1:-1,(i<=(h=(h=Math.atan2(s,h))<0?N+h:h)&&h<=r||i<=h+N&&h+N<=r)&&(u+=l=h>Math.PI/2&&h<1.5*Math.PI?-l:l))}return u}(f,m,v,y,y+x,b,C,r);l=Math.cos(y+x)*g+f,u=Math.sin(y+x)*v+m;break;case O.R:c=l=e[d++],h=u=e[d++],_=c+e[d++],w=h+e[d++];if(n){if(S.containStroke(c,h,_,h,t,i,r)||S.containStroke(_,h,_,w,t,i,r)||S.containStroke(_,w,c,w,t,i,r)||S.containStroke(c,w,c,h,t,i,r))return!0}else s+=I(_,h,_,w,i,r),s+=I(c,w,c,h,i,r);break;case O.Z:if(n){if(S.containStroke(l,u,c,h,t,i,r))return!0}else s+=I(l,u,c,h,i,r);l=c,u=h}}return n||(o=u,a=h,Math.abs(o-a)<L)||(s+=I(l,u,c,h,i,r)||0),0!==s}t.contain=function(e,t,n){return r(e,0,!1,t,n)},t.containStroke=function(e,t,n,i){return r(e,t,!0,n,i)}},function(e,t,n){var h=n(65);t.containStroke=function(e,t,n,i,r,o,a,s,l,u,c){return 0!==l&&(!(t+l<c&&i+l<c&&o+l<c&&s+l<c||c<t-l&&c<i-l&&c<o-l&&c<s-l||e+l<u&&n+l<u&&r+l<u&&a+l<u||u<e-l&&u<n-l&&u<r-l&&u<a-l)&&h.cubicProjectPoint(e,t,n,i,r,o,a,s,u,c,null)<=l/2)}},function(e,t,n){var u=n(311).normalizeRadian,c=2*Math.PI;t.containStroke=function(e,t,n,i,r,o,a,s,l){return 0!==a&&(s-=e,l-=t,t=Math.sqrt(s*s+l*l),!(n<t-a||t+a<n)&&(Math.abs(i-r)%c<1e-4||((r=o?(o=i,i=u(r),u(o)):(i=u(i),u(r)))<i&&(r+=c),(s=Math.atan2(l,s))<0&&(s+=c),i<=s&&s<=r||i<=s+c&&s+c<=r)))}},function(e,t,n){var i=n(97),b=n(20).applyTransform,_=i.CMD,w=[[],[],[]],C=Math.sqrt,S=Math.atan2;e.exports=function(e,t){for(var n,i,r,o,a=e.data,s=_.M,l=_.C,u=_.L,c=_.R,h=_.A,d=_.Q,p=0,f=0;p<a.length;){switch(n=a[p++],f=p,i=0,n){case s:case u:i=1;break;case l:i=3;break;case d:i=2;break;case h:var m=t[4],g=t[5],v=C(t[0]*t[0]+t[1]*t[1]),y=C(t[2]*t[2]+t[3]*t[3]),x=S(-t[1]/y,t[0]/v);a[p]*=v,a[p++]+=m,a[p]*=y,a[p++]+=g,a[p++]*=v,a[p++]*=y,a[p++]+=x,a[p++]+=x,f=p+=2;break;case c:o[0]=a[p++],o[1]=a[p++],b(o,o,t),a[f++]=o[0],a[f++]=o[1],o[0]+=a[p++],o[1]+=a[p++],b(o,o,t),a[f++]=o[0],a[f++]=o[1]}for(r=0;r<i;r++)(o=w[r])[0]=a[p++],o[1]=a[p++],b(o,o,t),a[f++]=o[0],a[f++]=o[1]}}},function(e,t,n){var i=n(24),n=n(314),i=i.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:n(i.prototype.brush),buildPath:function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=t.startAngle,s=t.endAngle,l=t.clockwise,u=Math.cos(a),t=Math.sin(a);e.moveTo(u*r+n,t*r+i),e.lineTo(u*o+n,t*o+i),e.arc(n,i,o,a,s,!l),e.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&e.arc(n,i,r,s,a,l),e.closePath()}});e.exports=i},function(e,t,n){n=n(24).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)}});e.exports=n},function(e,t,n){var f=n(20).distance;function m(e,t,n,i,r,o,a){e=.5*(n-e),i=.5*(i-t);return(2*(t-n)+e+i)*a+(-3*(t-n)-2*e-i)*o+e*r+t}e.exports=function(e,t){for(var n=e.length,i=[],r=0,o=1;o<n;o++)r+=f(e[o-1],e[o]);for(var a=(a=r/2)<n?n:a,o=0;o<a;o++){var s,l,u=o/(a-1)*(t?n:n-1),c=Math.floor(u),h=u-c,d=e[c%n],p=t?(s=e[(c-1+n)%n],l=e[(c+1)%n],e[(c+2)%n]):(s=e[0===c?c:c-1],l=e[n-2<c?n-1:c+1],e[n-3<c?n-1:c+2]),u=h*h,c=h*u;i.push([m(s[0],d[0],l[0],p[0],h,u,c),m(s[1],d[1],l[1],p[1],h,u,c)])}return i}},function(e,t,n){var n=n(20),y=n.min,x=n.max,b=n.scale,_=n.distance,w=n.add,C=n.clone,S=n.sub;e.exports=function(e,t,n,i){var r,o,a=[],s=[],l=[],u=[];if(i){for(var c=[1/0,1/0],h=[-1/0,-1/0],d=0,p=e.length;d<p;d++)y(c,c,e[d]),x(h,h,e[d]);y(c,c,i[0]),x(h,h,i[1])}for(d=0,p=e.length;d<p;d++){var f=e[d];if(n)r=e[d?d-1:p-1],o=e[(d+1)%p];else{if(0===d||d===p-1){a.push(C(e[d]));continue}r=e[d-1],o=e[d+1]}S(s,o,r),b(s,s,t);var m=_(f,r),g=_(f,o),v=m+g;0!==v&&(m/=v,g/=v),b(l,s,-m),b(u,s,g);g=w([],f,l),f=w([],f,u);i&&(x(g,g,c),y(g,g,h),x(f,f,c),y(f,f,h)),a.push(g),a.push(f)}return n&&a.push(a.shift()),a}},function(e,t,n){var i=n(24),r=n(20),n=n(65),c=n.quadraticSubdivide,h=n.cubicSubdivide,o=n.quadraticAt,a=n.cubicAt,s=n.quadraticDerivativeAt,l=n.cubicDerivativeAt,d=[];function u(e,t,n){var i=e.cpx2,r=e.cpy2;return null===i||null===r?[(n?l:a)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?l:a)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?s:o)(e.x1,e.cpx1,e.x2,t),(n?s:o)(e.y1,e.cpy1,e.y2,t)]}i=i.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.x1,i=t.y1,r=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,t=t.percent;0!==t&&(e.moveTo(n,i),null==l||null==u?(t<1&&(c(n,a,r,t,d),a=d[1],r=d[2],c(i,s,o,t,d),s=d[1],o=d[2]),e.quadraticCurveTo(a,s,r,o)):(t<1&&(h(n,a,l,r,t,d),a=d[1],l=d[2],r=d[3],h(i,s,u,o,t,d),s=d[1],u=d[2],o=d[3]),e.bezierCurveTo(a,s,l,u,r,o)))},pointAt:function(e){return u(this.shape,e,!1)},tangentAt:function(e){e=u(this.shape,e,!0);return r.normalize(e,e)}});e.exports=i},function(e,t,n){n=n(24).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),t=Math.sin(o);e.moveTo(l*r+n,t*r+i),e.arc(n,i,r,o,a,!s)}});e.exports=n},function(e,t,n){var i=n(24),n=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,n=0;n<t.length;n++)e=e||t[n].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},buildPath:function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},afterBrush:function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),i.prototype.getBoundingRect.call(this)}});e.exports=n},function(e,t,n){var i=n(1),o=n(150),n=function(e,t,n,i,r){this.x=null==e?.5:e,this.y=null==t?.5:t,this.r=null==n?.5:n,this.type="radial",this.global=r||!1,o.call(this,i)};n.prototype={constructor:n},i.inherits(n,o),e.exports=n},function(e,t,n){var i=n(96)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]);e.exports={getItemStyle:function(e,t){e=i(this,e,t),t=this.getBorderLineDash();return t&&(e.lineDash=t),e},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}}},function(e,t){e.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},function(e,t){var n="",n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:(n="undefined"!=typeof navigator?navigator.platform||"":n).match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};e.exports=n},function(e,t,n){var h=n(1),o=n(10),a=n(30),u=h.each,d=h.clone,p=h.map,s=h.merge,f=/^(min|max)?(.+)$/;function i(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}i.prototype={constructor:i,setOption:function(e,t){e&&h.each(o.normalizeToArray(e.series),function(e){e&&e.data&&h.isTypedArray(e.data)&&h.setAsPrimitive(e.data)}),e=d(e);var r,n=this._optionBackup,e=function(e,n,i){var t,r,o=[],a=[],s=e.timeline;e.baseOption&&(r=e.baseOption);(s||e.options)&&(r=r||{},o=(e.options||[]).slice());{var l;e.media&&(r=r||{},l=e.media,u(l,function(e){e&&e.option&&(e.query?a.push(e):t=t||e)}))}r=r||e;r.timeline||(r.timeline=s);return u([r].concat(o).concat(h.map(a,function(e){return e.option})),function(t){u(n,function(e){e(t,i)})}),{baseOption:r,timelineOptions:o,mediaDefault:t,mediaList:a}}.call(this,e,t,!n);this._newBaseOption=e.baseOption,n?(r=n.baseOption,t=e.baseOption,u(t=t||{},function(e,t){var n,i;null!=e&&(n=r[t],a.hasClass(t)?(e=o.normalizeToArray(e),n=o.normalizeToArray(n),i=o.mappingToExists(n,e),r[t]=p(i,function(e){return e.option&&e.exist?s(e.exist,e.option,!0):e.exist||e.option})):r[t]=s(n,e,!0))}),e.timelineOptions.length&&(n.timelineOptions=e.timelineOptions),e.mediaList.length&&(n.mediaList=e.mediaList),e.mediaDefault&&(n.mediaDefault=e.mediaDefault)):this._optionBackup=e},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=p(t.timelineOptions,d),this._mediaList=p(t.mediaList,d),this._mediaDefault=d(t.mediaDefault),this._currentMediaIndices=[],d(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,n=this._timelineOptions;return!n.length||(e=e.getComponent("timeline"))&&(t=d(n[e.getCurrentIndex()],!0)),t},getMediaOption:function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!i.length&&!r)return a;for(var s,l,u=0,c=i.length;u<c;u++)!function(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return h.each(e,function(e,t){var n=t.match(f);n&&n[1]&&n[2]&&(t=n[1],n=n[2].toLowerCase(),n=i[n],e=e,("min"===(t=t)?e<=n:"max"===t?n<=e:n===e)||(r=!1))}),r}(i[u].query,t,n)||o.push(u);return(o=!o.length&&r?[-1]:o).length&&(s=o,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(a=p(o,function(e){return d((-1===e?r:i[e]).option)})),this._currentMediaIndices=o,a}},e.exports=i},function(e,t,n){var i=n(1),r=i.each,o=i.isArray,a=i.isObject,s=n(521),l=n(10).normalizeToArray;function u(t){r(c,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var c=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],h=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];e.exports=function(t,e){s(t,e),t.series=l(t.series),r(t.series,function(e){var t,n;a(e)&&("line"===(t=e.type)?null!=e.clipOverflow&&(e.clip=e.clipOverflow):"pie"===t||"gauge"===t?null!=e.clockWise&&(e.clockwise=e.clockWise):"gauge"===t&&null!=(n=function(e,t){t=t.split(",");for(var n=e,i=0;i<t.length&&null!=(n=n&&n[t[i]]);i++);return n}(e,"pointer.color"))&&function(e,t,n,i){t=t.split(",");for(var r,o=e,a=0;a<t.length-1;a++)null==o[r=t[a]]&&(o[r]={}),o=o[r];!i&&null!=o[t[a]]||(o[t[a]]=n)}(e,"itemStyle.color",n),u(e))}),t.dataRange&&(t.visualMap=t.dataRange),r(h,function(e){e=t[e];e&&(o(e)||(e=[e]),r(e,function(e){u(e)}))})}},function(e,t,n){var u=n(1),a=n(10),i=u.each,c=u.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function h(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=s.length;n<i;n++){var r=s[n],o=t.normal,a=t.emphasis;o&&o[r]&&(e[r]=e[r]||{},e[r].normal?u.merge(e[r].normal,o[r]):e[r].normal=o[r],o[r]=null),a&&a[r]&&(e[r]=e[r]||{},e[r].emphasis?u.merge(e[r].emphasis,a[r]):e[r].emphasis=a[r],a[r]=null)}}function d(e,t,n){var i,r;e&&e[t]&&(e[t].normal||e[t].emphasis)&&(i=e[t].normal,r=e[t].emphasis,i&&(n?(e[t].normal=e[t].emphasis=null,u.defaults(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r))}function p(e){d(e,"itemStyle"),d(e,"lineStyle"),d(e,"areaStyle"),d(e,"label"),d(e,"labelLine"),d(e,"upperLabel"),d(e,"edgeLabel")}function f(e,t){var n=c(e)&&e[t],i=c(n)&&n.textStyle;if(i)for(var r=0,o=a.TEXT_STYLE_OPTIONS.length;r<o;r++){t=a.TEXT_STYLE_OPTIONS[r];i.hasOwnProperty(t)&&(n[t]=i[t])}}function m(e){e&&(p(e),f(e,"label"),e.emphasis&&f(e.emphasis,"label"))}function r(e){return u.isArray(e)?e:e?[e]:[]}function o(e){return(u.isArray(e)?e[0]:e)||{}}e.exports=function(t,e){i(r(t.series),function(e){c(e)&&function(e){if(c(e)){h(e),p(e),f(e,"label"),f(e,"upperLabel"),f(e,"edgeLabel"),e.emphasis&&(f(e.emphasis,"label"),f(e.emphasis,"upperLabel"),f(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(h(t),m(t));var n=e.markLine;n&&(h(n),m(n));var i=e.markArea;i&&m(i);var r=e.data;if("graph"===e.type){var r=r||e.nodes,o=e.links||e.edges;if(o&&!u.isTypedArray(o))for(var a=0;a<o.length;a++)m(o[a]);u.each(e.categories,function(e){p(e)})}if(r&&!u.isTypedArray(r))for(a=0;a<r.length;a++)m(r[a]);if((t=e.markPoint)&&t.data)for(var s=t.data,a=0;a<s.length;a++)m(s[a]);if((n=e.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)u.isArray(l[a])?(m(l[a][0]),m(l[a][1])):m(l[a]);"gauge"===e.type?(f(e,"axisLabel"),f(e,"title"),f(e,"detail")):"treemap"===e.type?(d(e.breadcrumb,"itemStyle"),u.each(e.levels,function(e){p(e)})):"tree"===e.type&&p(e.leaves)}}(e)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),i(n,function(e){i(r(t[e]),function(e){e&&(f(e,"axisLabel"),f(e.axisPointer,"label"))})}),i(r(t.parallel),function(e){e=e&&e.parallelAxisDefault;f(e,"axisLabel"),f(e&&e.axisPointer,"label")}),i(r(t.calendar),function(e){d(e,"itemStyle"),f(e,"dayLabel"),f(e,"monthLabel"),f(e,"yearLabel")}),i(r(t.radar),function(e){f(e,"name")}),i(r(t.geo),function(e){c(e)&&(m(e),i(r(e.regions),function(e){m(e)}))}),i(r(t.timeline),function(e){m(e),d(e,"label"),d(e,"itemStyle"),d(e,"controlStyle",!0);e=e.data;u.isArray(e)&&u.each(e,function(e){u.isObject(e)&&(d(e,"label"),d(e,"itemStyle"))})}),i(r(t.toolbox),function(e){d(e,"iconStyle"),i(e.feature,function(e){d(e,"iconStyle")})}),f(o(t.axisPointer),"label"),f(o(t.tooltip).axisPointer,"label")}},function(e,t,n){var n=n(1),r=n.createHashMap,i=n.each;function o(m){i(m,function(u,c){var h=[],d=[NaN,NaN],e=[u.stackResultDimension,u.stackedOverDimension],p=u.data,f=u.isStackedByIndex,e=p.map(e,function(e,t,n){var i,r,o=p.get(u.stackedDimension,n);if(isNaN(o))return d;f?r=p.getRawIndex(n):i=p.get(u.stackedByDimension,n);for(var a=NaN,s=c-1;0<=s;s--){var l=m[s];if(0<=(r=!f?l.data.rawIndexOf(l.stackedByDimension,i):r)){l=l.data.getByRawIndex(l.stackResultDimension,r);if(0<=o&&0<l||o<=0&&l<0){o+=l,a=l;break}}}return h[0]=o,h[1]=a,h});p.hostModel.setData(e),u.data=e})}e.exports=function(e){var i=r();e.eachSeries(function(e){var t,n=e.get("stack");n&&(t=i.get(n)||i.set(n,[]),(e={stackResultDimension:(n=e.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:e}).stackedDimension&&(e.isStackedByIndex||e.stackedByDimension)&&(t.length&&n.setCalculationInfo("stackedOnSeries",t[t.length-1].seriesModel),t.push(e)))}),i.each(o)}},function(e,t,n){var s=n(150),l=n(1).isFunction;e.exports={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=(t.visualColorAccessPath||"itemStyle.color").split("."),i=t.get(r),o=!l(i)||i instanceof s?null:i;i&&!o||(i=t.getColorFromPalette(t.name,null,e.getSeriesCount())),n.setVisual("color",i);var a=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),i=t.get(a);if(n.setVisual("borderColor",i),!e.isSeriesFiltered(t)){o&&n.each(function(e){n.setItemVisual(e,"color",o(t.getDataParams(e)))});return{dataEach:n.hasItemOption?function(e,t){var n=e.getItemModel(t),i=n.get(r,!0),n=n.get(a,!0);null!=i&&e.setItemVisual(t,"color",i),null!=n&&e.setItemVisual(t,"borderColor",n)}:null}}}}},function(e,t,n){var i=n(1),f=n(67),m=n(80).retrieveRawValue;e.exports=function(e,t){var l,u,c,n,h,o=t.getModel("aria");function d(e,t){if("string"!=typeof e)return e;var n=e;return i.each(t,function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)}),n}function p(e){var t=o.get(e);if(null!=t)return t;for(var n=e.split("."),i=f.aria,r=0;r<n.length;++r)i=i[n[r]];return i}o.get("show")&&(o.get("description")?e.setAttribute("aria-label",o.get("description")):(l=0,t.eachSeries(function(e,t){++l},this),u=o.get("data.maxCount")||10,n=o.get("series.maxCount")||10,c=Math.min(l,n),l<1||(n=(n=function(){var e=t.getModel("title").option;e&&e.length&&(e=e[0]);return e&&e.text}())?d(p("general.withTitle"),{title:n}):p("general.withoutTitle"),h=[],n+=d(p(1<l?"series.multiple.prefix":"series.single.prefix"),{seriesCount:l}),t.eachSeries(function(e,t){if(t<c){var n=e.get("name"),t="series."+(1<l?"multiple":"single")+".",n=p(n?t+"withName":t+"withoutName");n=d(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(t=e.subType,f.series.typeNames[t]||"自定义图")});var i=e.getData();(window.data=i).count()>u?n+=d(p("data.partialData"),{displayCnt:u}):n+=p("data.allData");for(var r,o,a=[],s=0;s<i.count();s++)s<u&&(r=i.getName(s),o=m(i,s),a.push(d(p(r?"data.withName":"data.withoutName"),{name:r,value:o})));n+=a.join(p("data.separator.middle"))+p("data.separator.end"),h.push(n)}}),n+=h.join(p("series.multiple.separator.middle"))+p("series.multiple.separator.end"),e.setAttribute("aria-label",n))))}},function(e,t,n){var u=n(1),c=n(6),h=n(41),d=Math.PI;e.exports=function(i,r){u.defaults(r=r||{},{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new c.Group,o=new c.Rect({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4});e.add(o);var a,s=r.fontSize+" sans-serif",l=new c.Rect({style:{fill:"none",text:r.text,font:s,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r.zlevel,z:10001});return e.add(l),r.showSpinner&&((a=new c.Arc({shape:{startAngle:-d/2,endAngle:-d/2+.1,r:r.spinnerRadius},style:{stroke:r.color,lineCap:"round",lineWidth:r.lineWidth},zlevel:r.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*d/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*d/2}).delay(300).start("circularInOut"),e.add(a)),e.resize=function(){var e=h.getWidth(r.text,s),t=r.showSpinner?r.spinnerRadius:0,n=(i.getWidth()-2*t-(r.showSpinner&&e?10:0)-e)/2-(r.showSpinner?0:e/2),e=i.getHeight()/2;r.showSpinner&&a.setShape({cx:n,cy:e}),l.setShape({x:n-t,y:e-t,width:2*t,height:2*t}),o.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},e.resize(),e}},function(e,t,n){var i=n(1),p=i.each,r=i.map,o=i.isFunction,d=i.createHashMap,a=i.noop,f=n(199).createTask,s=n(122).getUID,l=n(307),i=n(320),u=n(10).normalizeToArray;function c(e,t,n,i){this.ecInstance=e,this.api=t,this.unfinished;n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=d()}n=c.prototype;function h(s,e,l,u,c){var h;function d(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}c=c||{},p(e,function(i,e){var t,n,r,o,a;c.visualType&&c.visualType!==i.visualType||(t=(o=s._stageTaskMap.get(i.uid)).seriesTaskMap,(n=o.overallTask)?((o=n.agentStubMap).each(function(e){d(c,e)&&(e.dirty(),r=!0)}),r&&n.dirty(),m(n,u),a=s.getPerformArgs(n,c.block),o.each(function(e){e.perform(a)}),h|=n.perform(a)):t&&t.each(function(e,t){d(c,e)&&e.dirty();var n=s.getPerformArgs(e,c.block);n.skip=!i.performRawSeries&&l.isSeriesFiltered(e.context.model),m(e,u),h|=e.perform(n)}))}),s.unfinished|=h}n.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){e=e.overallTask;e&&e.dirty()})},n.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,n=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,i=i&&i.modDataCount;return{step:n,modBy:null!=i?Math.ceil(i/n):null,modDataCount:i}}},n.getPipeline=function(e){return this._pipelineMap.get(e)},n.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),r=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,t=e.get("large")&&i>=e.get("largeThreshold"),i="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:r,modDataCount:i,large:t}},n.restorePipelines=function(e){var i=this,r=i._pipelineMap=d();e.eachSeries(function(e){var t=e.getProgressive(),n=e.uid;r.set(n,{id:n,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:t&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(t||700),count:0}),A(i,e,e.dataTask)})},n.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.ecInstance.getModel(),r=this.api;p(this._allHandlers,function(e){var t=n.get(e.uid)||n.set(e.uid,[]);e.reset&&function(n,i,e,r,o){var a=e.seriesTaskMap||(e.seriesTaskMap=d()),t=i.seriesType,e=i.getTargetSeries;i.createOnAllSeries?r.eachRawSeries(s):t?r.eachRawSeriesByType(t,s):e&&e(r,o).each(s);function s(e){var t=e.uid,t=a.get(t)||a.set(t,f({plan:b,reset:_,count:S}));t.context={model:e,ecModel:r,api:o,useClearVisual:i.isVisual&&!i.isLayout,plan:i.plan,reset:i.reset,scheduler:n},A(n,e,t)}var l=n._pipelineMap;a.each(function(e,t){l.get(t)||(e.dispose(),a.removeKey(t))})}(this,e,t,i,r),e.overallReset&&function(i,e,t,n,r){var o=t.overallTask=t.overallTask||f({reset:g});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap=o.agentStubMap||d(),s=e.seriesType,t=e.getTargetSeries,l=!0,u=e.modifyOutputEnd;s?n.eachRawSeriesByType(s,c):t?t(n,r).each(c):(l=!1,p(n.getSeries(),c));function c(e){var t=e.uid,n=a.get(t);n||(n=a.set(t,f({reset:v,onDirty:x})),o.dirty()),n.context={model:e,overallProgress:l,modifyOutputEnd:u},n.agent=o,n.__block=l,A(i,e,n)}var h=i._pipelineMap;a.each(function(e,t){h.get(t)||(e.dispose(),o.dirty(),a.removeKey(t))})}(this,e,t,i,r)},this)},n.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,A(this,t,r)},n.performDataProcessorTasks=function(e,t){h(this,this._dataProcessorHandlers,e,t,{block:!0})},n.performVisualTasks=function(e,t,n){h(this,this._visualHandlers,e,t,n)},n.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t|=e.dataTask.perform()}),this.unfinished|=t},n.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}}while(t=t.getUpstream())})};var m=n.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)};function g(e){e.overallReset(e.ecModel,e.api,e.payload)}function v(e,t){return e.overallProgress&&y}function y(){this.agent.dirty(),this.getDownstream().dirty()}function x(){this.agent&&this.agent.dirty()}function b(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function _(e){e.useClearVisual&&e.data.clearAllVisual();e=e.resetDefines=u(e.reset(e.model,e.ecModel,e.api,e.payload));return 1<e.length?r(e,function(e,t){return C(t)}):w}var w=C(0);function C(o){return function(e,t){var n=t.data,i=t.resetDefines[o];if(i&&i.dataEach)for(var r=e.start;r<e.end;r++)i.dataEach(n,r);else i&&i.progress&&i.progress(e,n)}}function S(e){return e.data.count()}function A(e,t,n){t=t.uid,t=e._pipelineMap.get(t);t.head||(t.head=n),t.tail&&t.tail.pipe(n),(t.tail=n).__idxInPipeline=t.count++,n.__pipeline=t}c.wrapStageHandler=function(e,t){return(e=o(e)?{overallReset:e,seriesType:function(e){M=null;try{e(T,k)}catch(e){}return M}(e)}:e).uid=s("stageHandler"),t&&(e.visualType=t),e};var M,T={},k={};function D(e,t){for(var n in t.prototype)e[n]=a}D(T,l),D(k,i),T.eachSeriesByType=T.eachRawSeriesByType=function(e){M=e},T.eachComponent=function(e){"series"===e.mainType&&e.subType&&(M=e.subType)},e.exports=c},function(e,t){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];e.exports={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]}},function(e,t){function n(){return{axisLine:{lineStyle:{color:i}},axisTick:{lineStyle:{color:i}},axisLabel:{textStyle:{color:i}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:i}}}}var i="#eee",r=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],r={color:r,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:i},crossStyle:{color:i},label:{color:"#000"}}},legend:{textStyle:{color:i}},textStyle:{color:i},title:{textStyle:{color:i}},toolbox:{iconStyle:{normal:{borderColor:i}}},dataZoom:{textStyle:{color:i}},visualMap:{textStyle:{color:i}},timeline:{lineStyle:{color:i},itemStyle:{normal:{color:r[1]}},label:{normal:{textStyle:{color:i}}},controlStyle:{normal:{color:i,borderColor:i}}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:r},gauge:{title:{textStyle:{color:i}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};r.categoryAxis.splitLine.show=!1,e.exports=r},function(e,t,n){n=n(24).extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.rx,o=t.ry,a=.5522848*r,t=.5522848*o;e.moveTo(n-r,i),e.bezierCurveTo(n-r,i-t,n-a,i-o,n,i-o),e.bezierCurveTo(n+a,i-o,n+r,i-t,n+r,i),e.bezierCurveTo(n+r,i+t,n+a,i+o,n,i+o),e.bezierCurveTo(n-a,i+o,n-r,i+t,n-r,i),e.closePath()}});e.exports=n},function(e,t,n){var i=n(1),r=n(62),o=n(52),a=n(100),s=n(26),l=n(15);l.getLayoutRect;t.getLayoutRect=l.getLayoutRect;var u=n(57),c=u.enableDataStack,h=u.isDimensionStacked,l=u.getStackedDimension,u=n(152);t.completeDimensions=u;u=n(99);t.createDimensions=u;n=n(42);t.createSymbol=n.createSymbol;l={isDimensionStacked:h,enableDataStack:c,getStackedDimension:l};t.createList=function(e){return r(e.getSource(),e)},t.dataStack=l,t.createScale=function(e,t){var n=t;return s.isInstance(t)||(n=new s(t),i.mixin(n,a)),(t=o.createScaleByModel(n)).setExtent(e[0],e[1]),o.niceScaleExtent(t,n),t},t.mixinAxisModelCommonMethods=function(e){i.mixin(e,a)}},function(e,t,n){n(14).__DEV__;var n=n(1),i=n.createHashMap,l=(n.retrieve,n.each);function r(e){this.coordSysName=e,this.coordSysDims=[],this.axisMap=i(),this.categoryAxisMap=i(),this.firstCategoryDimIndex=null}var o={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis")[0],e=e.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",e),u(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),u(e)&&(i.set("y",e),t.firstCategoryDimIndex,t.firstCategoryDimIndex=1)},singleAxis:function(e,t,n,i){e=e.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],n.set("single",e),u(e)&&(i.set("single",e),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar")[0],e=r.findAxisModel("radiusAxis"),r=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",e),n.set("angle",r),u(e)&&(i.set("radius",e),t.firstCategoryDimIndex=0),u(r)&&(i.set("angle",r),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,i,r,o){var a=e.ecModel,e=a.getComponent("parallel",e.get("parallelIndex")),s=i.coordSysDims=e.dimensions.slice();l(e.parallelAxisIndex,function(e,t){var n=a.getComponent("parallelAxis",e),e=s[t];r.set(e,n),u(n)&&null==i.firstCategoryDimIndex&&(o.set(e,n),i.firstCategoryDimIndex=t)})}};function u(e){return"category"===e.get("type")}t.getCoordSysInfoBySeries=function(e){var t=e.get("coordinateSystem"),n=new r(t);if(t=o[t])return t(e,n,n.axisMap,n.categoryAxisMap),n}},function(e,t,n){var i=n(1),r=n(153),o=n(325),a=r.prototype,s=r.extend({type:"ordinal",init:function(e,t){e&&!i.isArray(e)||(e=new o({categories:e})),this._ordinalMeta=e,this._extent=t||[0,e.categories.length-1]},parse:function(e){return"string"==typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},contain:function(e){return e=this.parse(e),a.contain.call(this,e)&&null!=this._ordinalMeta.categories[e]},normalize:function(e){return a.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(a.scale.call(this,e))},getTicks:function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push(n),n++;return e},getLabel:function(e){if(!this.isBlank())return this._ordinalMeta.categories[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:i.noop,niceExtent:i.noop});s.create=function(){return new s},e.exports=s},function(e,t,n){var i=n(1),a=n(8),r=n(17),s=n(326),n=n(154),o=n.prototype,l=Math.ceil,u=Math.floor,c=864e5,h=n.extend({type:"time",getLabel:function(e){var t=this._stepLvl,e=new Date(e);return r.formatTime(t[0],e,this.getSetting("useUTC"))},niceExtent:function(e){var t=this._extent;t[0]===t[1]&&(t[0]-=c,t[1]+=c),t[1]===-1/0&&t[0]===1/0&&(n=new Date,t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-c),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var n=this._interval;e.fixMin||(t[0]=a.round(u(t[0]/n)*n)),e.fixMax||(t[1]=a.round(l(t[1]/n)*n))},niceTicks:function(e,t,n){var i=this._extent,r=i[1]-i[0],o=r/(e=e||10);null!=t&&o<t&&(o=t);t=d.length,o=function(e,t,n,i){for(;n<i;){var r=n+i>>>1;e[r][1]<t?n=1+r:i=r}return n}(d,o=null!=n&&n<o?n:o,0,t),o=d[Math.min(o,t-1)],t=o[1];"year"===o[0]&&(t*=a.nice(r/t/e,!0));e=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,e=[Math.round(l((i[0]-e)/t)*t+e),Math.round(u((i[1]-e)/t)*t+e)];s.fixExtent(e,i),this._stepLvl=o,this._interval=t,this._niceExtent=e},parse:function(e){return+a.parseDate(e)}});i.each(["contain","normalize"],function(t){h.prototype[t]=function(e){return o[t].call(this,this.parse(e))}});var d=[["hh:mm:ss",1e3],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",6e4],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",36e5],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",c],["MM-dd\nyyyy",2*c],["MM-dd\nyyyy",3*c],["MM-dd\nyyyy",4*c],["MM-dd\nyyyy",432e6],["MM-dd\nyyyy",6*c],["week",7*c],["MM-dd\nyyyy",864e6],["week",14*c],["week",21*c],["month",31*c],["week",42*c],["month",62*c],["week",6048e6],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]];h.create=function(e){return new h({useUTC:e.ecModel.get("useUTC")})},e.exports=h},function(e,t,n){var s=n(1),m=n(41),i=n(10).makeInner,n=n(52),g=n.makeLabelFormatter,l=n.getOptionCategoryInterval,d=n.shouldShowAllLabels,v=i();function u(e,t){var n,i=c(e,"labels"),r=l(t),t=h(i,r);return t||p(i,r,{labels:s.isFunction(r)?y(e,r):f(e,n="auto"===r?null!=(e=v(n=e).autoInterval)?e:v(n).autoInterval=n.calculateCategoryInterval():r),labelCategoryInterval:n})}function c(e,t){return v(e)[t]||(v(e)[t]=[])}function h(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function p(e,t,n){return e.push({key:t,value:n}),n}function f(e,t,n){var i=g(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],t=r.count();0!==u&&1<l&&2<t/l&&(u=Math.round(Math.ceil(u/l)*l));t=d(e),e=a.get("showMinLabel")||t,t=a.get("showMaxLabel")||t;e&&u!==o[0]&&h(o[0]);for(var c=u;c<=o[1];c+=l)h(c);function h(e){s.push(n?e:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:e})}return t&&c-l!==o[1]&&h(o[1]),s}function y(e,n,i){var r=e.scale,o=g(e),a=[];return s.each(r.getTicks(),function(e){var t=r.getLabel(e);n(e,t)&&a.push(i?e:{formattedLabel:o(e),rawLabel:t,tickValue:e})}),a}t.createAxisLabels=function(e){return"category"===e.type?(r=(t=e).getLabelModel(),o=u(t,r),!r.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(e=(n=e).scale.getTicks(),i=g(n),{labels:s.map(e,function(e,t){return{formattedLabel:i(e,t),rawLabel:n.scale.getLabel(e),tickValue:e}})});var n,i,t,r,o},t.createAxisTicks=function(e,t){return"category"===e.type?function(e,t){var n,i,r=c(e,"ticks"),o=l(t),a=h(r,o);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);n=s.isFunction(o)?y(e,o,!0):"auto"===o?(t=u(e,e.getLabelModel()),i=t.labelCategoryInterval,s.map(t.labels,function(e){return e.tickValue})):f(e,i=o,!0);return p(r,o,{ticks:n,tickCategoryInterval:i})}(e,t):{ticks:e.scale.getTicks()}},t.calculateCategoryInterval=function(e){var t=(u=(l=e).getLabelModel(),{axisRotate:l.getRotate?l.getRotate():l.isHorizontal&&!l.isHorizontal()?90:0,labelRotate:u.get("rotate")||0,font:u.getFont()}),n=g(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=(c=e.scale).getExtent(),o=c.count();if(r[1]-r[0]<1)return 0;var a=1;40<o&&(a=Math.max(1,Math.floor(o/40)));for(var s=r[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l*Math.cos(i)),c=Math.abs(l*Math.sin(i)),h=0,d=0;s<=r[1];s+=a)var p=m.getBoundingRect(n(s),t.font,"center","top"),f=1.3*p.width,p=1.3*p.height,h=Math.max(h,f,7),d=Math.max(d,p,7);return l=h/u,i=d/c,isNaN(l)&&(l=1/0),isNaN(i)&&(i=1/0),u=Math.max(0,Math.floor(Math.min(l,i))),c=v(e.model),l=e.getExtent(),i=c.lastAutoInterval,e=c.lastTickCount,null!=i&&null!=e&&Math.abs(i-u)<=1&&Math.abs(e-o)<=1&&u<i&&c.axisExtend0===l[0]&&c.axisExtend1===l[1]?u=i:(c.lastTickCount=o,c.lastAutoInterval=u,c.axisExtend0=l[0],c.axisExtend1=l[1]),u}},function(e,t,n){var i=n(1),r=n(21),o=n(536);function a(e){o.call(this,e)}a.prototype={constructor:a,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,t,n){var i=this.getAxis("x"),r=this.getAxis("y");return(n=n||[])[0]=i.toGlobalCoord(i.dataToCoord(e[0])),n[1]=r.toGlobalCoord(r.dataToCoord(e[1])),n},clampData:function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),n=n.parse(e[0]),e=i.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),e),Math.max(o[0],o[1])),t},pointToData:function(e,t){var n=this.getAxis("x"),i=this.getAxis("y");return(t=t||[])[0]=n.coordToData(n.toLocalCoord(e[0])),t[1]=i.coordToData(i.toLocalCoord(e[1])),t},getOtherAxis:function(e){return this.getAxis("x"===e.dim?"y":"x")},getArea:function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),e=Math.max(e[0],e[1])-n,t=Math.max(t[0],t[1])-i;return new r(n,i,e,t)}},i.inherits(a,o),e.exports=a},function(e,t,n){var i=n(1);function r(e){return this._axes[e]}n=function(e){this._axes={},this._dimList=[],this.name=e||""};n.prototype={constructor:n,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return i.map(this._dimList,r,this)},getAxesByScale:function(t){return t=t.toLowerCase(),i.filter(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var n=this._dimList,i=e instanceof Array?[]:{},r=0;r<n.length;r++){var o=n[r],a=this._axes[o];i[o]=a[t](e[o])}return i}};e.exports=n},function(e,t,n){var i=n(1),o=n(68),n=function(e,t,n,i,r){o.call(this,e,t,n),this.type=i||"value",this.position=r||"bottom"};n.prototype={constructor:n,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},i.inherits(n,o),e.exports=n},function(e,t,n){n(331);n=n(30).extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});e.exports=n},function(e,t,n){n=n(333).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return e=e<t?t:e},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}}});e.exports=n},function(e,t,n){n(14).__DEV__;var i=n(3),d=n(1),C=n(6),p=n(334).setLabel,r=n(26),o=n(541),a=n(24),S=n(78),s=n(66).throttle,l=n(126).createClipPath,u=n(542),c=["itemStyle","barBorderWidth"],g=[0,0];d.extend(r.prototype,o);var i=i.extendChartView({type:"bar",render:function(e,t,n){this._updateDrawMode(e);var i=e.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n)),this.group},incrementalPrepareRender:function(e,t,n){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,n,i){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){e=e.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(a,e,t){var s,l=this.group,u=a.getData(),c=this._data,h=a.coordinateSystem,n=h.getBaseAxis();"cartesian2d"===h.type?s=n.isHorizontal():"polar"===h.type&&(s="angle"===n.dim);var i,r,d=a.isAnimationEnabled()?a:null,p=a.get("clip",!0),f=(r=u,n=(i=h).getArea&&i.getArea(),"cartesian2d"===i.type&&("category"===(i=i.getBaseAxis()).type&&i.onBand||(r=r.getLayout("bandWidth"),i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r))),n);l.removeClipPath();function m(e){var t,n,i=D[h.type](u,e);return(i=(t=s,n=i,new("polar"===(i=h).type?C.Sector:C.Rect)({shape:O(t,n,i),silent:!0,z2:0}))).useStyle(y.getBarItemStyle()),"cartesian2d"===h.type&&i.setShape("r",x),b[e]=i}var g=a.get("roundCap",!0),v=a.get("showBackground",!0),y=a.getModel("backgroundStyle"),x=y.get("barBorderRadius")||0,b=[],_=this._backgroundEls||[];u.diff(c).add(function(e){var t=u.getItemModel(e),n=D[h.type](u,e,t);if(v&&m(e),u.hasValue(e)){if(p)if(A[h.type](f,n))return void l.remove(i);var i=M[h.type](e,n,s,d,!1,g);u.setItemGraphicEl(e,i),l.add(i),I(i,u,e,t,n,a,s,"polar"===h.type)}}).update(function(e,t){var n,i,r=u.getItemModel(e),o=D[h.type](u,e,r);v&&(0===_.length?n=m(t):((n=_[t]).useStyle(y.getBarItemStyle()),"cartesian2d"===h.type&&n.setShape("r",x),b[e]=n),i=D[h.type](u,e),i=O(s,i,h),C.updateProps(n,{shape:i},d,e));t=c.getItemGraphicEl(t);if(u.hasValue(e)){if(p)if(A[h.type](f,o))return void l.remove(t);t?C.updateProps(t,{shape:o},d,e):t=M[h.type](e,o,s,d,!0,g),u.setItemGraphicEl(e,t),l.add(t),I(t,u,e,r,o,a,s,"polar"===h.type)}else l.remove(t)}).remove(function(e){var t=c.getItemGraphicEl(e);"cartesian2d"===h.type?t&&T(e,d,t):t&&k(e,d,t)}).execute();var o=this._backgroundGroup||(this._backgroundGroup=new S);o.removeAll();for(var w=0;w<b.length;++w)o.add(b[w]);l.add(o),this._backgroundEls=b,this._data=u},_renderLarge:function(e,t,n){this._clear(),y(e,this.group);e=e.get("clip",!0)?l(e.coordinateSystem,!1,e):null;e?this.group.setClipPath(e):this.group.removeClipPath()},_incrementalRenderLarge:function(e,t){this._removeBackground(),y(t,this.group,!0)},dispose:d.noop,remove:function(e){this._clear(e)},_clear:function(t){var e=this.group,n=this._data;t&&t.get("animation")&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){("sector"===e.type?k:T)(e.dataIndex,t,e)})):e.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),h=Math.max,f=Math.min,A={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=h(t.x,e.x),o=f(t.x+t.width,e.x+e.width),a=h(t.y,e.y),e=f(t.y+t.height,e.y+e.height);t.x=r,t.y=a,t.width=o-r,t.height=e-a;a=t.width<0||t.height<0;return n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),a},polar:function(e,t){var n=t.r0<=t.r?1:-1;n<0&&(i=t.r,t.r=t.r0,t.r0=i);var i=f(t.r,e.r),e=h(t.r0,e.r0),e=(t.r=i)-(t.r0=e)<0;return n<0&&(i=t.r,t.r=t.r0,t.r0=i),e}},M={cartesian2d:function(e,t,n,i,r){var o,a=new C.Rect({shape:d.extend({},t),z2:1});return a.name="item",i&&(o={},a.shape[n=n?"height":"width"]=0,o[n]=t[n],C[r?"updateProps":"initProps"](a,{shape:o},i,e)),a},polar:function(e,t,n,i,r,o){var a=t.startAngle<t.endAngle,s=new(!n&&o?u:C.Sector)({shape:d.defaults({clockwise:a},t),z2:1});return s.name="item",i&&(o={},s.shape[a=n?"r":"endAngle"]=n?0:t.startAngle,o[a]=t[a],C[r?"updateProps":"initProps"](s,{shape:o},i,e)),s}};function T(e,t,n){n.style.text=null,C.updateProps(n,{shape:{width:0}},t,e,function(){n.parent&&n.parent.remove(n)})}function k(e,t,n){n.style.text=null,C.updateProps(n,{shape:{r:n.shape.r0}},t,e,function(){n.parent&&n.parent.remove(n)})}var D={cartesian2d:function(e,t,n){var i,t=e.getItemLayout(t),i=n?(o=t,i=(r=n).get(c)||0,r=isNaN(o.width)?Number.MAX_VALUE:Math.abs(o.width),o=isNaN(o.height)?Number.MAX_VALUE:Math.abs(o.height),Math.min(i,r,o)):0,r=0<t.width?1:-1,o=0<t.height?1:-1;return{x:t.x+r*i/2,y:t.y+o*i/2,width:t.width-r*i,height:t.height-o*i}},polar:function(e,t,n){t=e.getItemLayout(t);return{cx:t.cx,cy:t.cy,r0:t.r0,r:t.r,startAngle:t.startAngle,endAngle:t.endAngle}}};function m(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function I(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"color"),u=t.getItemVisual(n,"opacity"),c=t.getVisual("borderColor"),h=i.getModel("itemStyle"),t=i.getModel("emphasis.itemStyle").getBarItemStyle();s||e.setShape("r",h.get("barBorderRadius")||0),e.useStyle(d.defaults({stroke:m(r)?"none":c,fill:m(r)?"none":l,opacity:u},h.getBarItemStyle()));h=i.getShallow("cursor");h&&e.attr("cursor",h);a=a?0<r.height?"bottom":"top":0<r.width?"left":"right";s||p(e.style,t,i,l,o,n,a),m(r)&&(t.fill=t.stroke="none"),C.setHoverStyle(e,t)}var v=a.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var n=t.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o<n.length;o+=2)i[r]=n[o+r],e.moveTo(i[0],i[1]),e.lineTo(n[o],n[o+1])}});function y(e,t,n){var i=e.getData(),r=[],o=i.getLayout("valueAxisHorizontal")?1:0;r[1-o]=i.getLayout("valueAxisStart");var a,s,l,u,c=i.getLayout("largeDataIndices"),h=i.getLayout("barWidth"),d=e.getModel("backgroundStyle");e.get("showBackground",!0)&&(u=i.getLayout("largeBackgroundPoints"),(l=[])[1-o]=i.getLayout("backgroundStart"),a=new v({shape:{points:u},incremental:!!n,__startPoint:l,__baseDimIdx:o,__largeDataIndices:c,__barWidth:h,silent:!0,z2:0}),s=a,u=i,d=(l=d).get("borderColor")||l.get("color"),l=l.getItemStyle(["color","borderColor"]),s.useStyle(l),s.style.fill=null,s.style.stroke=d,s.style.lineWidth=u.getLayout("barWidth"),t.add(a));o=new v({shape:{points:i.getLayout("largePoints")},incremental:!!n,__startPoint:r,__baseDimIdx:o,__largeDataIndices:c,__barWidth:h});t.add(o),c=o,h=e,i=(t=i).getVisual("borderColor")||t.getVisual("color"),h=h.getModel("itemStyle").getItemStyle(["color","borderColor"]),c.useStyle(h),c.style.fill=null,c.style.stroke=i,c.style.lineWidth=t.getLayout("barWidth"),o.seriesIndex=e.seriesIndex,e.get("silent")||(o.on("mousedown",x),o.on("mousemove",x))}var x=s(function(e){e=function(e,t,n){var i=e.__baseDimIdx,r=1-i,o=e.shape.points,a=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[r];g[0]=t,g[1]=n;for(var n=g[i],u=g[1-i],c=n-s,h=n+s,d=0,p=o.length/2;d<p;d++){var f=2*d,m=o[f+i],f=o[f+r];if(c<=m&&m<=h&&(l<=f?l<=u&&u<=f:f<=u&&u<=l))return a[d]}return-1}(this,e.offsetX,e.offsetY);this.dataIndex=0<=e?e:null},30,!1);function O(e,t,n){var i="polar"===n.type,n=i?n.getArea():n.grid.getRect();return i?{cx:n.cx,cy:n.cy,r0:(e?n:t).r0,r:(e?n:t).r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:(e?t:n).x,y:(e?n:t).y,width:(e?t:n).width,height:(e?n:t).height}}e.exports=i},function(e,t,n){var i=n(96)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);e.exports={getBarItemStyle:function(e){var t=i(this,e);return!this.getBorderLineDash||(e=this.getBorderLineDash())&&(t.lineDash=e),t}}},function(e,t,n){n=(0,n(6).extendShape)({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,h=Math.cos(l),d=Math.sin(l),p=Math.cos(u),t=Math.sin(u);(c?u-l<2*Math.PI:l-u<2*Math.PI)&&(e.moveTo(h*r+n,d*r+i),e.arc(h*s+n,d*s+i,a,-Math.PI+l,l,!c)),e.arc(n,i,o,l,u,!c),e.moveTo(p*o+n,t*o+i),e.arc(p*s+n,t*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&(e.arc(n,i,r,u,l,c),e.moveTo(h*r+n,t*r+i)),e.closePath()}});e.exports=n},function(e,t,n){n(331),n(544)},function(e,t,n){var m=n(1),g=n(6),s=n(69),i=n(82),l=n(335),n=n(336),r=n.rectCoordAxisBuildSplitArea,o=n.rectCoordAxisHandleRemove,u=["axisLine","axisTickLabel","axisName"],c=["splitArea","splitLine","minorSplitLine"],h=i.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,n,i){this.group.removeAll();var r,o,a=this._axisGroup;this._axisGroup=new g.Group,this.group.add(this._axisGroup),t.get("show")&&(r=t.getCoordSysModel(),o=l.layout(r,t),o=new s(t,o),m.each(u,o.add,o),this._axisGroup.add(o.getGroup()),m.each(c,function(e){t.get(e+".show")&&this["_"+e](t,r)},this),g.groupTransition(a,this._axisGroup,t),h.superCall(this,"render",t,e,n,i))},remove:function(){o(this)},_splitLine:function(e,t){var n=e.axis;if(!n.scale.isBlank())for(var i=e.getModel("splitLine"),e=i.getModel("lineStyle"),r=e.get("color"),r=m.isArray(r)?r:[r],o=t.coordinateSystem.getRect(),a=n.isHorizontal(),s=0,l=n.getTicksCoords({tickModel:i}),u=[],c=[],h=e.getLineStyle(),d=0;d<l.length;d++){var p=n.toGlobalCoord(l[d].coord);a?(u[0]=p,u[1]=o.y,c[0]=p,c[1]=o.y+o.height):(u[0]=o.x,u[1]=p,c[0]=o.x+o.width,c[1]=p);var f=s++%r.length,p=l[d].tickValue;this._axisGroup.add(new g.Line({anid:null!=p?"line_"+l[d].tickValue:null,subPixelOptimize:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:m.defaults({stroke:r[f]},h),silent:!0}))}},_minorSplitLine:function(e,t){var n=e.axis,e=e.getModel("minorSplitLine").getModel("lineStyle"),i=t.coordinateSystem.getRect(),r=n.isHorizontal(),o=n.getMinorTicksCoords();if(o.length)for(var a=[],s=[],l=e.getLineStyle(),u=0;u<o.length;u++)for(var c=0;c<o[u].length;c++){var h=n.toGlobalCoord(o[u][c].coord);r?(a[0]=h,a[1]=i.y,s[0]=h,s[1]=i.y+i.height):(a[0]=i.x,a[1]=h,s[0]=i.x+i.width,s[1]=h),this._axisGroup.add(new g.Line({anid:"minor_line_"+o[u][c].tickValue,subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:l,silent:!0}))}},_splitArea:function(e,t){r(this,this._axisGroup,e,t)}});h.extend({type:"xAxis"}),h.extend({type:"yAxis"})},function(e,t,n){var y=n(1),i=n(10).makeInner,u=n(157),x=n(338),b=y.each,_=y.curry,w=i();function C(e,t,n,i,r){var o,a,s,l,u,c,h,d,p,f,m=e.axis;!m.scale.isBlank()&&m.containData(t)&&(e.involveSeries?(f=(o=(a=t,s=(p=e).axis,l=s.dim,u=a,c=[],h=Number.MAX_VALUE,d=-1,b(p.seriesModels,function(t,e){var n=t.getData().mapDimension(l,!0);if(t.getAxisTooltipData)var i=t.getAxisTooltipData(n,a,s),r=i.dataIndices,o=i.nestestValue;else{if(!(r=t.getData().indicesOfNearest(n[0],a,"category"===s.type?.5:null)).length)return;o=t.getData().get(n[0],r[0])}null!=o&&isFinite(o)&&(i=a-o,(n=Math.abs(i))<=h&&((n<h||0<=i&&d<0)&&(h=n,d=i,u=o,c.length=0),b(r,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}),{payloadBatch:c,snapToValue:u})).snapToValue,(p=o.payloadBatch)[0]&&null==r.seriesIndex&&y.extend(r,p[0]),!i&&e.snap&&m.containData(f)&&null!=f&&(t=f),n.showPointer(e,t,p,r),n.showTooltip(e,o,f)):n.showPointer(e,t))}function S(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function A(e,t,n,i){var r,o=n.payloadBatch,a=t.axis,s=a.model,l=t.axisPointerModel;t.triggerTooltip&&o.length&&(r=t.coordSys.model,n=u.makeKey(r),(t=e.map[n])||(t=e.map[n]={coordSysId:r.id,coordSysIndex:r.componentIndex,coordSysType:r.type,coordSysMainType:r.mainType,dataByAxis:[]},e.list.push(t)),t.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:o.slice()}))}function M(e){var t=e.axis.model,n={},e=n.axisDim=e.axis.dim;return n.axisIndex=n[e+"AxisIndex"]=t.componentIndex,n.axisName=n[e+"AxisName"]=t.name,n.axisId=n[e+"AxisId"]=t.id,n}function T(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}e.exports=function(e,t,n){var i=e.currTrigger,o=[e.x,e.y],r=e,a=e.dispatchAction||y.bind(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){T(o)&&(o=x({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},t).point);var l=T(o),u=r.axesInfo,c=s.axesInfo,h="leave"===i||T(o),d={},p={},t={list:[],map:{}},f={showPointer:_(S,p),showTooltip:_(A,t)};b(s.coordSysMap,function(e,t){var r=l||e.containPoint(o);b(s.coordSysAxesInfo[t],function(e,t){var n=e.axis,i=function(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}(u,e);h||!r||u&&!i||null!=(i=null==(i=i&&i.value)&&!l?n.pointToData(o):i)&&C(e,i,f,!1,d)})});var m,g,v={};return b(c,function(n,e){var i=n.linkGroup;i&&!p[e]&&b(i.axesInfo,function(e,t){t=p[t];e!==n&&t&&(t=t.value,i.mapper&&(t=n.axis.scale.parse(i.mapper(t,M(e),M(n)))),v[n.key]=t)})}),b(v,function(e,t){C(c[t],e,f,!0,d)}),m=p,r=c,g=d.axesInfo=[],b(r,function(e,t){var n=e.axisPointerModel.option,t=m[t];t?(e.useHandle||(n.status="show"),n.value=t.value,n.seriesDataIndices=(t.payloadBatch||[]).slice()):e.useHandle||(n.status="hide"),"show"===n.status&&g.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:n.value})}),i=t,r=e,t=a,!T(e=o)&&i.list.length?(a=((i.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},t({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:i.list})):t({type:"hideTip"}),function(e,t){var n=t.getZr(),i="axisPointerLastHighlights",r=w(n)[i]||{},o=w(n)[i]={};b(e,function(e,t){e=e.axisPointerModel.option;"show"===e.status&&b(e.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e})});var a=[],s=[];y.each(r,function(e,t){o[t]||s.push(e)}),y.each(o,function(e,t){r[t]||a.push(e)}),s.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,batch:s}),a.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,batch:a})}(c,n),d}}},function(e,t,n){n=n(3).extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},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.exports=n},function(e,t,n){var i=n(3),r=n(339),o=i.extendComponentView({type:"axisPointer",render:function(e,t,n){var t=t.getComponent("tooltip"),i=e.get("triggerOn")||t&&t.get("triggerOn")||"mousemove|click";r.register("axisPointer",n,function(e,t,n){"none"!==i&&("leave"===e||0<=i.indexOf(e))&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},remove:function(e,t){r.unregister(t.getZr(),"axisPointer"),o.superApply(this._model,"remove",arguments)},dispose:function(e,t){r.unregister("axisPointer",t),o.superApply(this._model,"dispose",arguments)}});e.exports=o},function(e,t,n){n=n(3).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});e.exports=n},function(e,t,n){var i=n(3),m=n(1),s=n(25),r=n(550),o=n(551),g=n(17),a=n(8),l=n(6),u=n(338),f=n(15),c=n(26),h=n(339),v=n(52),y=n(158),d=n(10).getTooltipRenderMode,p=m.bind,x=m.each,b=a.parsePercent,_=new l.Rect({shape:{x:-1,y:-1,width:2,height:2}}),i=i.extendComponentView({type:"tooltip",init:function(e,t){var n,i;s.node||(e=(n=e.getComponent("tooltip")).get("renderMode"),this._renderMode=d(e),"html"===this._renderMode?(i=new r(t.getDom(),t,{appendToBody:n.get("appendToBody",!0)}),this._newLine="<br/>"):(i=new o(t),this._newLine="\n"),this._tooltipContent=i)},render:function(e,t,n){s.node||(this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent"),(n=this._tooltipContent).update(e),n.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow())},_initGlobalListener:function(){var i=this._tooltipModel.get("triggerOn");h.register("itemTooltip",this._api,p(function(e,t,n){"none"!==i&&(0<=i.indexOf(e)?this._tryShow(t,n):"leave"===e&&this._hide(n))},this))},_keepShow:function(){var e,t=this._tooltipModel,n=this._ecModel,i=this._api;null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")&&(e=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||e.manuallyShowTip(t,n,i,{x:e._lastX,y:e._lastY})}))},manuallyShowTip:function(e,t,n,i){var r,o,a;i.from===this.uid||s.node||(r=C(i,n),this._ticket="",a=i.dataByCoordSys,i.tooltip&&null!=i.x&&null!=i.y?((o=_).position=[i.x,i.y],o.update(),o.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:o},r)):a?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r):null!=i.seriesIndex?this._manuallyAxisShowTip(e,t,n,i)||(e=(a=u(i,t)).point[0],t=a.point[1],null!=e&&null!=t&&this._tryShow({offsetX:e,offsetY:t,position:i.position,target:a.el},r)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r)))},manuallyHideTip:function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(C(i,n))},_manuallyAxisShowTip:function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){t=t.getSeriesByIndex(r);if(t)if("axis"===(e=w([t.getData().getItemModel(o),t,(t.coordinateSystem||{}).model,e])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},_tryShow:function(e,t){var n,i=e.target;this._tooltipModel&&(this._lastX=e.offsetX,this._lastY=e.offsetY,(n=e.dataByCoordSys)&&n.length?this._showAxisTooltip(n,e):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,i,t)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,i,t)):(this._lastDataByCoordSys=null,this._hide(t)))},_showOrMove:function(e,t){e=e.get("showDelay");t=m.bind(t,this),clearTimeout(this._showTimout),0<e?this._showTimout=setTimeout(t,e):t()},_showAxisTooltip:function(e,t){var u=this._ecModel,n=this._tooltipModel,i=[t.offsetX,t.offsetY],c=[],h=[],r=w([t.tooltipOption,n]),d=this._renderMode,p=this._newLine,f={};x(e,function(e){x(e.dataByAxis,function(r){var o,e,a=u.getComponent(r.axisDim+"Axis",r.axisIndex),s=r.value,l=[];a&&null!=s&&(o=y.getValueLabel(s,a.axis,u,r.seriesDataIndices,r.valueLabelOpt),m.each(r.seriesDataIndices,function(e){var t,n=u.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,e=n&&n.getDataParams(i);e.axisDim=r.axisDim,e.axisIndex=r.axisIndex,e.axisType=r.axisType,e.axisId=r.axisId,e.axisValue=v.getAxisRawValue(a.axis,s),e.axisValueLabel=o,e&&(h.push(e),n=n.formatTooltip(i,!0,null,d),m.isObject(n)?(t=n.html,i=n.markers,m.merge(f,i)):t=n,l.push(t))}),e=o,"html"!==d?c.push(l.join(p)):c.push((e?g.encodeHTML(e)+p:"")+l.join(p)))})},this),c.reverse();var c=c.join(this._newLine+this._newLine),o=t.position;this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(r,o,i[0],i[1],this._tooltipContent,h):this._showTooltipContent(r,c,h,Math.random(),i[0],i[1],o,void 0,f)})},_showSeriesItemTooltip:function(e,t,n){var i,r,o,a,s=this._ecModel,l=t.seriesIndex,u=s.getSeriesByIndex(l),c=t.dataModel||u,h=t.dataIndex,s=t.dataType,t=c.getData(s),d=w([t.getItemModel(h),c,u&&(u.coordinateSystem||{}).model,this._tooltipModel]),u=d.get("trigger");null!=u&&"item"!==u||(i=c.getDataParams(h,s),s=c.formatTooltip(h,!1,s,this._renderMode),o=m.isObject(s)?(r=s.html,s.markers):(r=s,null),a="item_"+c.name+"_"+h,this._showOrMove(d,function(){this._showTooltipContent(d,r,i,a,e.offsetX,e.offsetY,e.position,e.target,o)}),n({type:"showTip",dataIndexInside:h,dataIndex:t.getRawIndex(h),seriesIndex:l,from:this.uid}))},_showComponentItemTooltip:function(e,t,n){var i=t.tooltip,r=new c(i="string"==typeof i?{content:i,formatter:i}:i,this._tooltipModel,this._ecModel),o=r.get("content"),a=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},a,e.offsetX,e.offsetY,e.position,t)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(n,e,i,t,r,o,a,s,l){var u,c,h;this._ticket="",n.get("showContent")&&n.get("show")&&(u=this._tooltipContent,c=n.get("formatter"),a=a||n.get("position"),h=e,c&&"string"==typeof c?h=g.formatTpl(c,i,!0):"function"==typeof c&&(e=p(function(e,t){e===this._ticket&&(u.setContent(t,l,n),this._updatePosition(n,a,r,o,u,i,s))},this),this._ticket=t,h=c(i,t,e)),u.setContent(h,l,n),u.show(n),this._updatePosition(n,a,r,o,u,i,s))},_updatePosition:function(e,t,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u,c=r.getSize(),h=e.get("align"),d=e.get("verticalAlign"),p=a&&a.getBoundingRect().clone();a&&p.applyTransform(a.transform),"function"==typeof t&&(t=t([n,i],o,r.el,p,{viewSize:[s,l],contentSize:c.slice()})),m.isArray(t)?(n=b(t[0],s),i=b(t[1],l)):m.isObject(t)?(t.width=c[0],t.height=c[1],n=(o=f.getLayoutRect(t,{width:s,height:l})).x,i=o.y,d=h=null):i=(n=(u="string"==typeof t&&a?function(e,t,n){var i=n[0],r=n[1],o=0,a=0,s=t.width,l=t.height;switch(e){case"inside":o=t.x+s/2-i/2,a=t.y+l/2-r/2;break;case"top":o=t.x+s/2-i/2,a=t.y-r-5;break;case"bottom":o=t.x+s/2-i/2,a=t.y+l+5;break;case"left":o=t.x-i-5,a=t.y+l/2-r/2;break;case"right":o=t.x+s+5,a=t.y+l/2-r/2}return[o,a]}(t,p,c):function(e,t,n,i,r,o,a){var s=n.getOuterSize(),n=s.width,s=s.height;null!=o&&(i<e+n+o?e-=n+o:e+=o);null!=a&&(r<t+s+a?t-=s+a:t+=a);return[e,t]}(n,i,r,s,l,h?null:20,d?null:20))[0],u[1]),h&&(n-=S(h)?c[0]/2:"right"===h?c[0]:0),d&&(i-=S(d)?c[1]/2:"bottom"===d?c[1]:0),e.get("confine")&&(n=(u=(h=n,d=i,c=s,e=l,s=(l=(s=r).getOuterSize()).width,l=l.height,h=Math.min(h+s,c)-s,d=Math.min(d+l,e)-l,h=Math.max(h,0),d=Math.max(d,0),[h,d]))[0],i=u[1]),r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(n){var e=this._lastDataByCoordSys,o=!!e&&e.length===n.length;return o&&x(e,function(e,t){var e=e.dataByAxis||{},r=(n[t]||{}).dataByAxis||[];(o&=e.length===r.length)&&x(e,function(e,t){var n=r[t]||{},t=e.seriesDataIndices||[],i=n.seriesDataIndices||[];(o&=e.value===n.value&&e.axisType===n.axisType&&e.axisId===n.axisId&&t.length===i.length)&&x(t,function(e,t){t=i[t];o&=e.seriesIndex===t.seriesIndex&&e.dataIndex===t.dataIndex})})}),this._lastDataByCoordSys=n,!!o},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){s.node||(this._tooltipContent.dispose(),h.unregister("itemTooltip",t))}});function w(e){for(var t=e.pop();e.length;){var n=e.pop();n&&(c.isInstance(n)&&(n=n.get("tooltip",!0)),t=new c(n="string"==typeof n?{formatter:n}:n,t,t.ecModel))}return t}function C(e,t){return e.dispatchAction||m.bind(t.dispatchAction,t)}function S(e){return"center"===e||"middle"===e}e.exports=i},function(e,t,n){var l=n(1),u=n(55),a=n(54),s=n(298),c=n(25),h=n(17),d=l.each,p=h.toCamelCase,f=["","-webkit-","-moz-","-o-"];function i(i){var e,t,r=[],n=i.get("transitionDuration"),o=i.get("backgroundColor"),a=i.getModel("textStyle"),s=i.get("padding");return n&&r.push((t="left "+(e=n)+"s "+(n="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+e+"s "+n,l.map(f,function(e){return e+"transition:"+t}).join(";"))),o&&(c.canvasSupported?r.push("background-Color:"+o):(r.push("background-Color:#"+u.toHex(o)),r.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(e){var t="border-"+e,n=p(t),n=i.get(n);null!=n&&r.push(t+":"+n+("color"===e?"":"px"))}),r.push(function(n){var i=[],e=n.get("fontSize");(r=n.getTextColor())&&i.push("color:"+r),i.push("font:"+n.getFont()),null==(o=n.get("lineHeight"))&&(o=Math.round(3*e/2)),e&&i.push("line-height:"+o+"px");var t=n.get("textShadowColor"),r=n.get("textShadowBlur")||0,e=n.get("textShadowOffsetX")||0,o=n.get("textShadowOffsetY")||0;return r&&i.push("text-shadow:"+e+"px "+o+"px "+r+"px "+t),d(["decoration","align"],function(e){var t=n.get(e);t&&i.push("text-"+e+":"+t)}),i.join(";")}(a)),null!=s&&r.push("padding:"+h.normalizeCssArray(s).join("px ")+"px"),r.join(";")+";"}function m(e,t,n,i,r){var o=t&&t.painter;n?(n=o&&o.getViewportRoot())&&s.transformLocalCoord(e,n,document.body,i,r):(e[0]=i,e[1]=r,(o=o&&o.getViewportRootOffset())&&(e[0]+=o.offsetLeft,e[1]+=o.offsetTop)),e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function r(e,t,n){if(c.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),n=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0,0,0],m(this._styleCoord,r,n,t.getWidth()/2,t.getHeight()/2),(n?document.body:e).appendChild(i),this._container=e,this._show=!1,this._hideTimeout;var o=this;i.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},i.onmousemove=function(e){var t,n;e=e||window.event,o._enterable||(t=r.handler,n=r.painter.getViewportRoot(),a.normalizeEvent(n,e,!0),t.dispatch("mousemove",e))},i.onmouseleave=function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1}}r.prototype={constructor:r,_enterable:!0,update:function(e){var t=this._container,n=t.currentStyle||document.defaultView.getComputedStyle(t),t=t.style;"absolute"!==t.position&&"absolute"!==n.position&&(t.position="relative"),e.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],e=e*this._zr.getWidth(),t=t*this._zr.getHeight();this.moveTo(e,t)},show:function(e){clearTimeout(this._hideTimeout);var t=this.el,n=this._styleCoord;t.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+i(e)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",t.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var n=this._styleCoord;m(n,this._zr,this._appendToBody,e,t);t=this.el.style;t.left=n[0]+"px",t.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(l.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var e,t=this.el.clientWidth,n=this.el.clientHeight;return document.defaultView&&document.defaultView.getComputedStyle&&((e=document.defaultView.getComputedStyle(this.el))&&(t+=parseInt(e.borderLeftWidth,10)+parseInt(e.borderRightWidth,10),n+=parseInt(e.borderTopWidth,10)+parseInt(e.borderBottomWidth,10))),{width:t,height:n}}},e.exports=r},function(e,t,n){var i=n(1),p=n(79),f=n(6);function r(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function o(e){var t=this._zr=e.getZr();this._styleCoord=[0,0,0,0],r(this._styleCoord,t,e.getWidth()/2,e.getHeight()/2),this._show=!1,this._hideTimeout}o.prototype={constructor:o,_enterable:!0,update:function(e){e.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],e=e*this._zr.getWidth(),t=t*this._zr.getHeight();this.moveTo(e,t)},show:function(e){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,t,n){this.el&&this._zr.remove(this.el);for(var i={},r=e,o="{marker",a=r.indexOf(o);0<=a;){var s=r.indexOf("|}"),l=r.substr(a+o.length,s-a-o.length);-1<l.indexOf("sub")?i["marker"+l]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[l],textOffset:[3,0]}:i["marker"+l]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[l]},a=(r=r.substr(s+1)).indexOf("{marker")}var u=n.getModel("textStyle"),c=u.get("fontSize"),h=n.get("textLineHeight");null==h&&(h=Math.round(3*c/2)),this.el=new p({style:f.setTextStyle({},u,{rich:i,text:e,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding"),textLineHeight:h}),z:n.get("z")}),this._zr.add(this.el);var d=this;this.el.on("mouseover",function(){d._enterable&&(clearTimeout(d._hideTimeout),d._show=!0),d._inContent=!0}),this.el.on("mouseout",function(){d._enterable&&d._show&&d.hideLater(d._hideDelay),d._inContent=!1})},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,t){var n;this.el&&(r(n=this._styleCoord,this._zr,e,t),this.el.attr("position",[n[0],n[1]]))},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var e=this.getSize();return{width:e[0],height:e[1]}}},e.exports=o},function(e,t,n){var i=n(3),s=n(1);function r(t,i,e){var r,o={},a="toggleSelected"===t;return e.eachComponent("legend",function(n){a&&null!=r?n[r?"select":"unSelect"](i.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](i.name),r=n.isSelected(i.name));var e=n.getData();s.each(e,function(e){var t=e.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),o.hasOwnProperty(t)?o[t]=o[t]&&e:o[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:i.name,selected:o}}i.registerAction("legendToggleSelect","legendselectchanged",s.curry(r,"toggleSelected")),i.registerAction("legendAllSelect","legendselectall",s.curry(r,"allSelect")),i.registerAction("legendInverseSelect","legendinverseselect",s.curry(r,"inverseSelect")),i.registerAction("legendSelect","legendselected",s.curry(r,"select")),i.registerAction("legendUnSelect","legendunselected",s.curry(r,"unSelect"))},function(e,t){e.exports=function(e){var n=e.findComponents({mainType:"legend"});n&&n.length&&e.filterSeries(function(e){for(var t=0;t<n.length;t++)if(!n[t].isSelected(e.name))return!1;return!0})}},function(e,t,n){"use strict";n(344)},function(e,t,n){"use strict";n(345)},function(e,t,n){n(14).__DEV__;var i=n(62),n=n(31).extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return i(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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.exports=n},function(e,t,n){n(14).__DEV__;var C=n(1),a=n(121).fromPoints,i=n(129),l=n(159),g=n(558),S=n(6),u=n(10),r=n(347),o=r.Polyline,s=r.Polygon,c=n(56),r=n(346),A=r.prepareDataCoordInfo,M=r.getStackedOnPoint,n=n(126),h=n.createGridClipPath,d=n.createPolarClipPath;function T(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++){var i=e[n],r=t[n];if(i[0]!==r[0]||i[1]!==r[1])return}return 1}}function v(e,t){var n=[],i=[],r=[],o=[];return a(e,n,i),a(t,r,o),Math.max(Math.abs(n[0]-r[0]),Math.abs(n[1]-r[1]),Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]))}function k(e){return"number"==typeof e?e:e?.5:0}function D(e,t,n){for(var t=t.getBaseAxis(),i="x"===t.dim||"radius"===t.dim?0:1,r=[],o=0;o<e.length-1;o++){var a=e[o+1],s=e[o];r.push(s);var l=[];switch(n){case"end":l[i]=a[i],l[1-i]=s[1-i],r.push(l);break;case"middle":var u=(s[i]+a[i])/2,c=[];l[i]=c[i]=u,l[1-i]=s[1-i],c[1-i]=a[1-i],r.push(l),r.push(c);break;default:l[i]=s[i],l[1-i]=a[1-i],r.push(l)}}return e[o]&&r.push(e[o]),r}function I(e,t,n){var i=e.get("showAllSymbol"),e="auto"===i;if(!i||e){n=n.getAxesByScale("ordinal")[0];if(n&&(!e||!function(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*l.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}(n,t))){var r=t.mapDimension(n.dim),o={};return C.each(n.getViewLabels(),function(e){o[e.tickValue]=1}),function(e){return!o.hasOwnProperty(t.get(r,e))}}}}function O(e,t,n){if("cartesian2d"!==e.type)return d(e,t,n);var i=e.getBaseAxis().isHorizontal(),e=h(e,t,n);return n.get("clip",!0)||(t=e.shape,n=Math.max(t.width,t.height),i?(t.y-=n,t.height+=2*n):(t.x-=n,t.width+=2*n)),e}n=c.extend({type:"line",init:function(){var e=new S.Group,t=new i;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,n){var i=e.coordinateSystem,r=this.group,o=e.getData(),a=e.getModel("lineStyle"),s=e.getModel("areaStyle"),l=o.mapArray(o.getItemLayout),u="polar"===i.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,f=this._lineGroup,m=e.get("animation"),g=!s.isEmpty(),v=s.get("origin"),y=function(e,t,n){if(!n.valueDim)return[];for(var i=[],r=0,o=t.count();r<o;r++)i.push(M(n,e,t,r));return i}(i,o,A(i,o,v)),x=e.get("showSymbol"),b=x&&!u&&I(e,o,i),_=this._data;_&&_.eachItemGraphicEl(function(e,t){e.__temp&&(r.remove(e),_.setItemGraphicEl(t,null))}),x||h.remove(),r.add(f);var w,u=!u&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(w=i.getArea()).width?(w.x-=.1,w.y-=.1,w.width+=.2,w.height+=.2):w.r0&&(w.r0-=.5,w.r1+=.5)),this._clipShapeForSymbol=w,d&&c.type===i.type&&u===this._step?(g&&!p?p=this._newPolygon(l,y,i,m):p&&!g&&(f.remove(p),p=this._polygon=null),f.setClipPath(O(i,!1,e)),x&&h.updateData(o,{isIgnore:b,clipShape:w}),o.eachItemGraphicEl(function(e){e.stopAnimation(!0)}),T(this._stackedOnPoints,y)&&T(this._points,l)||(m?this._updateAnimation(o,y,i,n,u,v):(u&&(l=D(l,i,u),y=D(y,i,u)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:y})))):(x&&h.updateData(o,{isIgnore:b,clipShape:w}),u&&(l=D(l,i,u),y=D(y,i,u)),d=this._newPolyline(l,i,m),g&&(p=this._newPolygon(l,y,i,m)),f.setClipPath(O(i,!0,e)));m=function(e,t){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var i,r=n.length-1;0<=r;r--){var o,a=n[r].dimension,a=e.dimensions[a],a=e.getDimensionInfo(a);if("x"===(o=a&&a.coordDim)||"y"===o){i=n[r];break}}if(i){var s=t.getAxis(o),l=C.map(i.stops,function(e){return{coord:s.toGlobalCoord(s.dataToCoord(e.value)),color:e.color}}),u=l.length,c=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var h=l[0].coord-10,t=l[u-1].coord+10,d=t-h;if(d<.001)return"transparent";C.each(l,function(e){e.offset=(e.coord-h)/d}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});l=new S.LinearGradient(0,0,0,0,l,!0);return l[o]=h,l[o+"2"]=t,l}}}(o,i)||o.getVisual("color");d.useStyle(C.defaults(a.getLineStyle(),{fill:"none",stroke:m,lineJoin:"bevel"}));f=e.get("smooth"),f=k(e.get("smooth"));d.setShape({smooth:f,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),p&&(a=o.getCalculationInfo("stackedOnSeries"),d=0,p.useStyle(C.defaults(s.getAreaStyle(),{fill:m,opacity:.7,lineJoin:"bevel"})),a&&(d=k(a.get("smooth"))),p.setShape({smooth:f,stackedOnSmooth:d,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})),this._data=o,this._coordSys=i,this._stackedOnPoints=y,this._points=l,this._step=u,this._valueOrigin=v},dispose:function(){},highlight:function(e,t,n,i){var r=e.getData(),o=u.queryDataIndex(r,i);if(!(o instanceof Array)&&null!=o&&0<=o){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;(a=new l(r,o)).position=s,a.setZ(e.get("zlevel"),e.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else c.prototype.highlight.call(this,e,t,n,i)},downplay:function(e,t,n,i){var r,o=e.getData(),a=u.queryDataIndex(o,i);null!=a&&0<=a?(r=o.getItemGraphicEl(a))&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay()):c.prototype.downplay.call(this,e,t,n,i)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new o({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t},_newPolygon:function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new s({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(n),this._polygon=n},_updateAnimation:function(e,t,n,i,r,o){var a=this._polyline,s=this._polygon,l=e.hostModel,u=g(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),c=u.current,h=u.stackedOnCurrent,t=u.next,o=u.stackedOnNext;if(r&&(c=D(u.current,n,r),h=D(u.stackedOnCurrent,n,r),t=D(u.next,n,r),o=D(u.stackedOnNext,n,r)),3e3<v(c,t)||s&&3e3<v(h,o))return a.setShape({points:t}),void(s&&s.setShape({points:t,stackedOnPoints:o}));a.shape.__points=u.current,a.shape.points=c,S.updateProps(a,{shape:{points:t}},l),s&&(s.setShape({points:c,stackedOnPoints:h}),S.updateProps(s,{shape:{points:t,stackedOnPoints:o}},l));for(var d,p=[],f=u.status,m=0;m<f.length;m++)"="!==f[m].cmd||(d=e.getItemGraphicEl(f[m].idx1))&&p.push({el:d,ptIdx:m});a.animators&&a.animators.length&&a.animators[0].during(function(){for(var e=0;e<p.length;e++)p[e].el.attr("position",a.shape.__points[p[e].ptIdx])})},remove:function(e){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(e,t){e.__temp&&(n.remove(e),i.setItemGraphicEl(t,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});e.exports=n},function(e,t,n){var n=n(346),O=n.prepareDataCoordInfo,N=n.getStackedOnPoint;e.exports=function(e,t,n,i,r,o,a,s){for(var l,u,c=(l=e,u=[],t.diff(l).add(function(e){u.push({cmd:"+",idx:e})}).update(function(e,t){u.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){u.push({cmd:"-",idx:e})}).execute(),u),h=[],d=[],p=[],f=[],m=[],g=[],v=[],y=O(r,t,a),x=O(o,e,s),b=0;b<c.length;b++){var _=c[b],w=!0;switch(_.cmd){case"=":var C=e.getItemLayout(_.idx),S=t.getItemLayout(_.idx1);(isNaN(C[0])||isNaN(C[1]))&&(C=S.slice()),h.push(C),d.push(S),p.push(n[_.idx]),f.push(i[_.idx1]),v.push(t.getRawIndex(_.idx1));break;case"+":var A=_.idx;h.push(r.dataToPoint([t.get(y.dataDimsForPoint[0],A),t.get(y.dataDimsForPoint[1],A)])),d.push(t.getItemLayout(A).slice()),p.push(N(y,r,t,A)),f.push(i[A]),v.push(t.getRawIndex(A));break;case"-":A=_.idx,S=e.getRawIndex(A);S!==A?(h.push(e.getItemLayout(A)),d.push(o.dataToPoint([e.get(x.dataDimsForPoint[0],A),e.get(x.dataDimsForPoint[1],A)])),p.push(n[A]),f.push(N(x,o,e,A)),v.push(S)):w=!1}w&&(m.push(_),g.push(g.length))}g.sort(function(e,t){return v[e]-v[t]});for(var M=[],T=[],k=[],D=[],I=[],b=0;b<g.length;b++){A=g[b];M[b]=h[A],T[b]=d[A],k[b]=p[A],D[b]=f[A],I[b]=m[A]}return{current:M,next:T,stackedOnCurrent:k,stackedOnNext:D,status:I}}},function(e,t){function l(e,t){return Math.round(e.length/2)}var u={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}};e.exports=function(e){return{seriesType:e,modifyOutputEnd:!0,reset:function(e,t,n){var i,r,o=e.getData(),a=e.get("sampling"),s=e.coordinateSystem;"cartesian2d"===s.type&&a&&(i=s.getBaseAxis(),s=s.getOtherAxis(i),i=i.getExtent(),i=Math.abs(i[1]-i[0]),1<(i=Math.round(o.count()/i))&&("string"==typeof a?r=u[a]:"function"==typeof a&&(r=a),r&&e.setData(o.downSample(o.mapDimension(s.dim),1/i,r,l))))}}}},function(e,t,n){var i=n(3),r=n(101),o=n(1),a=n(10),s=n(8).getPercentWithPrecision,l=n(207),u=n(80).retrieveRawAttr,c=n(61).makeSeriesEncodeForNameBased,h=n(131),d=i.extendSeriesModel({type:"series.pie",init:function(e){d.superApply(this,"init",arguments),this.legendVisualProvider=new h(o.bind(this.getData,this),o.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){d.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,t){return r(this,{coordDimensions:["value"],encodeDefaulter:o.curry(c,this)})},_createSelectableList:function(){for(var e=this.getRawData(),t=e.mapDimension("value"),n=[],i=0,r=e.count();i<r;i++)n.push({name:e.getName(i),value:e.get(t,i),selected:u(e,i,"selected")});return n},getDataParams:function(e){var t=this.getData(),n=d.superCall(this,"getDataParams",e),i=[];return t.each(t.mapDimension("value"),function(e){i.push(e)}),n.percent=s(i,e,t.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(e){a.defaultEmphasis(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});o.mixin(d,l),e.exports=d},function(e,t,n){var f=n(1),h=n(6),i=n(56);function m(e,t,n,i){var r=t.getData(),o=this.dataIndex,o=r.getName(o),a=t.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:e,name:o,seriesId:t.id}),r.each(function(e){d(r.getItemGraphicEl(e),r.getItemLayout(e),t.isSelected(r.getName(e)),a,n)})}function d(e,t,n,i,r){t=(t.startAngle+t.endAngle)/2,i=n?i:0,i=[Math.cos(t)*i,Math.sin(t)*i];r?e.animate().when(200,{position:i}).start("bounceOut"):e.attr("position",i)}function g(e,t){h.Group.call(this);var n=new h.Sector({z2:2}),i=new h.Polyline,r=new h.Text;this.add(n),this.add(i),this.add(r),this.updateData(e,t,!0)}n=g.prototype;n.updateData=function(e,t,n){var i=this.childAt(0),r=this.childAt(1),o=this.childAt(2),a=e.hostModel,s=e.getItemModel(t),l=e.getItemLayout(t),u=f.extend({},l);u.label=null;var c=a.getShallow("animationTypeUpdate");n?(i.setShape(u),"scale"===a.getShallow("animationType")?(i.shape.r=l.r0,h.initProps(i,{shape:{r:l.r}},a,t)):(i.shape.endAngle=l.startAngle,h.updateProps(i,{shape:{endAngle:l.endAngle}},a,t))):"expansion"===c?i.setShape(u):h.updateProps(i,{shape:u},a,t);u=e.getItemVisual(t,"color");i.useStyle(f.defaults({lineJoin:"bevel",fill:u},s.getModel("itemStyle").getItemStyle())),i.hoverStyle=s.getModel("emphasis.itemStyle").getItemStyle();u=s.getShallow("cursor");u&&i.attr("cursor",u),d(this,e.getItemLayout(t),a.isSelected(e.getName(t)),a.get("selectedOffset"),a.get("animation")),this._updateLabel(e,t,!n&&"transition"===c),this.highDownOnUpdate=a.get("silent")?null:function(e,t){var n=a.isAnimationEnabled()&&s.get("hoverAnimation");"emphasis"===t?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore,n&&(i.stopAnimation(!0),i.animateTo({shape:{r:l.r+a.get("hoverOffset")}},300,"elasticOut"))):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore,n&&(i.stopAnimation(!0),i.animateTo({shape:{r:l.r}},300,"elasticOut")))},h.setHoverStyle(this)},n._updateLabel=function(e,t,n){var i,r,o=this.childAt(1),a=this.childAt(2),s=e.hostModel,l=e.getItemModel(t),u=e.getItemLayout(t).label,c=e.getItemVisual(t,"color");!u||isNaN(u.x)||isNaN(u.y)?a.ignore=a.normalIgnore=a.hoverIgnore=o.ignore=o.normalIgnore=o.hoverIgnore=!0:(i={points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]},r={x:u.x,y:u.y},n?(h.updateProps(o,{shape:i},s,t),h.updateProps(a,{style:r},s,t)):(o.attr({shape:i}),a.attr({style:r})),a.attr({rotation:u.rotation,origin:[u.x,u.y],z2:10}),s=l.getModel("label"),i=l.getModel("emphasis.label"),r=l.getModel("labelLine"),l=l.getModel("emphasis.labelLine"),c=e.getItemVisual(t,"color"),h.setLabelStyle(a.style,a.hoverStyle={},s,i,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:u.text,autoColor:c,useInsideStyle:!!u.inside},{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),a.ignore=a.normalIgnore=!s.get("show"),a.hoverIgnore=!i.get("show"),o.ignore=o.normalIgnore=!r.get("show"),o.hoverIgnore=!l.get("show"),o.setStyle({stroke:c,opacity:e.getItemVisual(t,"opacity")}),o.setStyle(r.getModel("lineStyle").getLineStyle()),o.hoverStyle=l.getModel("lineStyle").getLineStyle(),r=r.get("smooth"),o.setShape({smooth:r=r&&!0===r?.4:r}))},f.inherits(g,h.Group);i=i.extend({type:"pie",init:function(){var e=new h.Group;this._sectorGroup=e},render:function(e,t,n,i){if(!i||i.from!==this.uid){var r=e.getData(),o=this._data,a=this.group,t=t.get("animation"),s=!o,l=e.get("animationType"),u=e.get("animationTypeUpdate"),c=f.curry(m,this.uid,e,t,n),h=e.get("selectedMode");if(r.diff(o).add(function(e){var t=new g(r,e);s&&"scale"!==l&&t.eachChild(function(e){e.stopAnimation(!0)}),h&&t.on("click",c),r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){t=o.getItemGraphicEl(t);s||"transition"===u||t.eachChild(function(e){e.stopAnimation(!0)}),t.updateData(r,e),t.off("click"),h&&t.on("click",c),a.add(t),r.setItemGraphicEl(e,t)}).remove(function(e){e=o.getItemGraphicEl(e);a.remove(e)}).execute(),t&&0<r.count()&&(s?"scale"!==l:"transition"!==u)){for(var d=r.getItemLayout(0),p=1;isNaN(d.startAngle)&&p<r.count();++p)d=r.getItemLayout(p);t=Math.max(n.getWidth(),n.getHeight())/2,n=f.bind(a.removeClipPath,a);a.setClipPath(this._createClipPath(d.cx,d.cy,t,d.startAngle,d.clockwise,n,e,s))}else a.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(e,t,n,i,r,o,a,s){n=new h.Sector({shape:{cx:e,cy:t,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return(s?h.initProps:h.updateProps)(n,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},a,o),n},containPoint:function(e,t){var n=t.getData().getItemLayout(0);if(n){t=e[0]-n.cx,e=e[1]-n.cy,e=Math.sqrt(t*t+e*e);return e<=n.r&&e>=n.r0}}});e.exports=i},function(e,t,n){var i=n(8),k=i.parsePercent,D=i.linearMap,I=n(15),O=n(563),N=n(1),L=2*Math.PI,P=Math.PI/180;e.exports=function(e,t,T,n){t.eachSeriesByType(e,function(e){var i=e.getData(),t=i.mapDimension("value"),r=(s=e,l=T,I.getLayoutRect(s.getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()})),n=e.get("center"),o=e.get("radius");N.isArray(o)||(o=[0,o]),N.isArray(n)||(n=[n,n]);var a=k(r.width,T.getWidth()),s=k(r.height,T.getHeight()),l=Math.min(a,s),u=k(n[0],a)+r.x,c=k(n[1],s)+r.y,h=k(o[0],l/2),d=k(o[1],l/2),p=-e.get("startAngle")*P,f=e.get("minAngle")*P,m=0;i.each(t,function(e){isNaN(e)||m++});var g=i.getSum(t),v=Math.PI/(g||m)*2,y=e.get("clockwise"),x=e.get("roseType"),b=e.get("stillShowZeroSum"),_=i.getDataExtent(t);_[0]=0;var w,C=L,S=0,A=p,M=y?1:-1;i.each(t,function(e,t){var n;isNaN(e)?i.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:u,cy:c,r0:h,r:x?NaN:d,viewRect:r}):((n="area"!==x?0===g&&b?v:e*v:L/m)<f?C-=n=f:S+=e,i.setItemLayout(t,{angle:n,startAngle:A,endAngle:n=A+M*n,clockwise:y,cx:u,cy:c,r0:h,r:x?D(e,_,[h,d]):d,viewRect:r}),A=n)}),C<L&&m&&(C<=.001?(w=L/m,i.each(t,function(e,t){isNaN(e)||((e=i.getItemLayout(t)).angle=w,e.startAngle=p+M*t*w,e.endAngle=p+M*(t+1)*w)})):(v=C/S,A=p,i.each(t,function(e,t){isNaN(e)||(e=(t=i.getItemLayout(t)).angle===f?f:e*v,t.startAngle=A,t.endAngle=A+M*e,A+=M*e)}))),O(e,d,r.width,r.height,r.x,r.y)})}},function(e,t,n){var L=n(41),P=n(8).parsePercent,i=Math.PI/180;function y(r,e,t,n,i,o,a,s,l,u){function c(e,t){for(var n=e;0<=n&&!(r[n].y-t<l)&&(r[n].y-=t,!(0<n&&r[n].y>r[n-1].y+r[n-1].height));n--);}function h(e,t,n,i,r,o){for(var a,s,l,u=t?Number.MAX_VALUE:0,c=0,h=e.length;c<h;c++)"none"===e[c].labelAlignTo&&(l=Math.abs(e[c].y-i),a=e[c].len,s=e[c].len2,l=l<r+a?Math.sqrt((r+a+s)*(r+a+s)-l*l):Math.abs(e[c].x-n),t&&u<=l&&(l=u-10),!t&&l<=u&&(l=u+10),e[c].x=n+l*o,u=l)}r.sort(function(e,t){return e.y-t.y});for(var d,p=0,f=r.length,m=[],g=[],v=0;v<f;v++)"outer"===r[v].position&&"labelLine"===r[v].labelAlignTo&&(d=r[v].x-u,r[v].linePoints[1][0]+=d,r[v].x=u),(d=r[v].y-p)<0&&function(e,t,n){for(var i=e;i<t&&!(r[i].y+n>l+a);i++)if(r[i].y+=n,e<i&&i+1<t&&r[i+1].y>r[i].y+r[i].height)return c(i,n/2);c(t-1,n/2)}(v,f,-d),p=r[v].y+r[v].height;a-p<0&&c(f-1,p-a);for(v=0;v<f;v++)(r[v].y>=t?g:m).push(r[v]);h(m,!1,e,t,n,i),h(g,!0,e,t,n,i)}function x(e){return"center"===e.position}e.exports=function(C,S,A,e,M,t){var T,k,D=C.getData(),I=[],O=!1,N=(C.get("minShowLabelAngle")||0)*i;D.each(function(e){var t,n,i,r,o,a,s,l,u,c,h=D.getItemLayout(e),d=D.getItemModel(e),p=d.getModel("label"),f=p.get("position")||d.get("emphasis.label.position"),m=p.get("distanceToLabelLine"),g=p.get("alignTo"),v=P(p.get("margin"),A),y=p.get("bleedMargin"),x=p.getFont(),b=d.getModel("labelLine"),_=b.get("length"),_=P(_,A),w=b.get("length2"),w=P(w,A);h.angle<N||(c=(h.startAngle+h.endAngle)/2,t=Math.cos(c),o=Math.sin(c),T=h.cx,k=h.cy,n=C.getFormattedLabel(e,"normal")||D.getName(e),i=L.getBoundingRect(n,x,u,"top"),r="inside"===f||"inner"===f,u="center"===f?(a=h.cx,s=h.cy,"center"):(a=(d=(r?(h.r+h.r0)/2*t:h.r*t)+T)+3*t,s=(b=(r?(h.r+h.r0)/2*o:h.r*o)+k)+3*o,r||(e=d+t*(_+S-h.r),l=b+o*(_+S-h.r),o=e+(t<0?-1:1)*w,a="edge"===g?t<0?M+v:M+A-v:o+(t<0?-m:m),l=[[d,b],[e,s=l],[o,l]]),r?"center":"edge"===g?0<t?"right":"left":0<t?"left":"right"),c="number"==typeof(p=p.get("rotate"))?p*(Math.PI/180):p?t<0?-c+Math.PI:-c:0,O=!!c,h.label={x:a,y:s,position:f,height:i.height,len:_,len2:w,linePoints:l,textAlign:u,verticalAlign:"middle",rotation:c,inside:r,labelDistance:m,labelAlignTo:g,labelMargin:v,bleedMargin:y,textRect:i,text:n,font:x},r||I.push(h.label))}),!O&&C.get("avoidLabelOverlap")&&function(e,t,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++)x(e[d])||(e[d].x<t?(c=Math.min(c,e[d].x),l.push(e[d])):(h=Math.max(h,e[d].x),u.push(e[d])));for(y(u,t,n,i,1,0,o,0,s,h),y(l,t,n,i,-1,0,o,0,s,c),d=0;d<e.length;d++){var p,f,m,g,v=e[d];x(v)||(p=v.linePoints)&&(f="edge"===v.labelAlignTo,m=v.textRect.width,(g=f?v.x<t?p[2][0]-v.labelDistance-a-v.labelMargin:a+r-v.labelMargin-p[2][0]-v.labelDistance:v.x<t?v.x-a-v.bleedMargin:a+r-v.x-v.bleedMargin)<v.textRect.width&&(v.text=L.truncateText(v.text,g,v.font),"edge"===v.labelAlignTo&&(m=L.getWidth(v.text,v.font))),g=p[1][0]-p[2][0],f?v.x<t?p[2][0]=a+v.labelMargin+m+v.labelDistance:p[2][0]=a+r-v.labelMargin-m-v.labelDistance:(v.x<t?p[2][0]=v.x+v.labelDistance:p[2][0]=v.x-v.labelDistance,p[1][0]=p[2][0]+g),p[1][1]=p[2][1]=v.y)}}(I,T,k,S,A,e,M,t)}},function(e,t,n){var i=n(3),r=n(1),o=n(101),a=n(10).defaultEmphasis,s=n(61).makeSeriesEncodeForNameBased,l=n(131),u=i.extendSeriesModel({type:"series.funnel",init:function(e){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(r.bind(this.getData,this),r.bind(this.getRawData,this)),this._defaultLabelLine(e)},getInitialData:function(e,t){return o(this,{coordDimensions:["value"],encodeDefaulter:r.curry(s,this)})},_defaultLabelLine:function(e){a(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},getDataParams:function(e){var t=this.getData(),n=u.superCall(this,"getDataParams",e),i=t.mapDimension("value"),r=t.getSum(i);return n.percent=r?+(t.get(i,e)/r*100).toFixed(2):0,n.$vars.push("percent"),n},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,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}});e.exports=u},function(e,t,n){var c=n(6),l=n(1),i=n(56);function a(e,t){c.Group.call(this);var n=new c.Polygon,i=new c.Polyline,r=new c.Text;this.add(n),this.add(i),this.add(r),this.highDownOnUpdate=function(e,t){"emphasis"===t?(i.ignore=i.hoverIgnore,r.ignore=r.hoverIgnore):(i.ignore=i.normalIgnore,r.ignore=r.normalIgnore)},this.updateData(e,t,!0)}var n=a.prototype,u=["itemStyle","opacity"];n.updateData=function(e,t,n){var i=this.childAt(0),r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=null==(s=e.getItemModel(t).get(u))?1:s;i.useStyle({}),n?(i.setShape({points:a.points}),i.setStyle({opacity:0}),c.initProps(i,{style:{opacity:s}},r,t)):c.updateProps(i,{style:{opacity:s},shape:{points:a.points}},r,t);r=o.getModel("itemStyle"),o=e.getItemVisual(t,"color");i.setStyle(l.defaults({lineJoin:"round",fill:o},r.getItemStyle(["opacity"]))),i.hoverStyle=r.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),c.setHoverStyle(this)},n._updateLabel=function(e,t){var n=this.childAt(1),i=this.childAt(2),r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t).label,s=e.getItemVisual(t,"color");c.updateProps(n,{shape:{points:a.linePoints||a.linePoints}},r,t),c.updateProps(i,{style:{x:a.x,y:a.y}},r,t),i.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var l=o.getModel("label"),u=o.getModel("emphasis.label"),r=o.getModel("labelLine"),o=o.getModel("emphasis.labelLine"),s=e.getItemVisual(t,"color");c.setLabelStyle(i.style,i.hoverStyle={},l,u,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:s,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),i.ignore=i.normalIgnore=!l.get("show"),i.hoverIgnore=!u.get("show"),n.ignore=n.normalIgnore=!r.get("show"),n.hoverIgnore=!o.get("show"),n.setStyle({stroke:s}),n.setStyle(r.getModel("lineStyle").getLineStyle()),n.hoverStyle=o.getModel("lineStyle").getLineStyle()},l.inherits(a,c.Group);i=i.extend({type:"funnel",render:function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add(function(e){var t=new a(i,e);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){t=r.getItemGraphicEl(t);t.updateData(i,e),o.add(t),i.setItemGraphicEl(e,t)}).remove(function(e){e=r.getItemGraphicEl(e);o.remove(e)}).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});e.exports=i},function(e,t,n){n(14).__DEV__;var k=n(15),n=n(8),D=n.parsePercent,I=n.linearMap;e.exports=function(e,T,t){e.eachSeriesByType("funnel",function(e){var t,s=e.getData(),l=s.mapDimension("value"),n=e.get("sort"),i=(t=e,i=T,k.getLayoutRect(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})),r=function(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,function(e){return e}),r=[],o="ascending"===t,a=0,s=e.count();a<s;a++)r[a]=a;return"function"==typeof t?r.sort(t):"none"!==t&&r.sort(function(e,t){return o?i[e]-i[t]:i[t]-i[e]}),r}(s,n),u=e.get("orient"),c=i.width,h=i.height,d=i.x,p=i.y,f="horizontal"===u?[D(e.get("minSize"),h),D(e.get("maxSize"),h)]:[D(e.get("minSize"),c),D(e.get("maxSize"),c)],i=s.getDataExtent(l),m=e.get("min"),g=e.get("max");null==m&&(m=Math.min(i[0],0)),null==g&&(g=i[1]);function o(e,t){if("horizontal"===u){var n,i=s.get(l,e)||0,r=I(i,[m,g],f,!0);switch(v){case"top":n=p;break;case"center":n=p+(h-r)/2;break;case"bottom":n=p+(h-r)}return[[t,n],[t,n+r]]}var o,i=s.get(l,e)||0,a=I(i,[m,g],f,!0);switch(v){case"left":o=d;break;case"center":o=d+(c-a)/2;break;case"right":o=d+c-a}return[[o,t],[o+a,t]]}var v=e.get("funnelAlign"),a=e.get("gap"),y=(("horizontal"===u?c:h)-a*(s.count()-1))/s.count();"ascending"===n&&(y=-y,a=-a,"horizontal"===u?d+=c:p+=h,r=r.reverse());for(var x,b=0;b<r.length;b++){var _,w,C,S=r[b],A=r[b+1],M=s.getItemModel(S);"horizontal"===u?(null==(_=M.get("itemStyle.width"))?_=y:(_=D(_,c),"ascending"===n&&(_=-_)),w=o(S,d),C=o(A,d+_),d+=_+a):(null==(M=M.get("itemStyle.height"))?M=y:(M=D(M,h),"ascending"===n&&(M=-M)),w=o(S,"horizontal"===u?d:p),C=o(A,"horizontal"===u?d+_:p+M),p+=M+a),s.setItemLayout(S,{points:w.concat(C.slice().reverse())})}(x=s).each(function(e){var t,n,i,r,o,a,s=x.getItemModel(e),l=s.getModel("label").get("position"),u=s.get("orient"),c=s.getModel("labelLine"),h=x.getItemLayout(e),s=h.points,e="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l,d=e?(a="insideLeft"===l?(t=(s[0][0]+s[3][0])/2+5,n=(s[0][1]+s[3][1])/2,"left"):"insideRight"===l?(t=(s[1][0]+s[2][0])/2-5,n=(s[1][1]+s[2][1])/2,"right"):(t=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,n=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,"center"),[[t,n],[t,n]]):(c=c.get("length"),a="left"===l?(i=(s[3][0]+s[0][0])/2,r=(s[3][1]+s[0][1])/2,t=(o=i-c)-5,"right"):"right"===l?(i=(s[1][0]+s[2][0])/2,r=(s[1][1]+s[2][1])/2,t=(o=i+c)+5,"left"):"top"===l?(i=(s[3][0]+s[0][0])/2,n=(d=(r=(s[3][1]+s[0][1])/2)-c)-5,"center"):"bottom"===l?(i=(s[1][0]+s[2][0])/2,n=(d=(r=(s[1][1]+s[2][1])/2)+c)+5,"center"):"rightTop"===l?(i=("horizontal"===u?s[3]:s[1])[0],r=("horizontal"===u?s[3]:s[1])[1],"horizontal"===u?(n=(d=r-c)-5,"center"):(t=(o=i+c)+5,"top")):"rightBottom"===l?(i=s[2][0],r=s[2][1],"horizontal"===u?(n=(d=r+c)+5,"center"):(t=(o=i+c)+5,"bottom")):"leftTop"===l?(i=s[0][0],r=("horizontal"===u?s[0]:s[1])[1],"horizontal"===u?(n=(d=r-c)-5,"center"):(t=(o=i-c)-5,"right")):"leftBottom"===l?(i=("horizontal"===u?s[1]:s[3])[0],r=("horizontal"===u?s[1]:s[2])[1],"horizontal"===u?(n=(d=r+c)+5,"center"):(t=(o=i-c)-5,"right")):(i=(s[1][0]+s[2][0])/2,r=(s[1][1]+s[2][1])/2,"horizontal"===u?(n=(d=r+c)+5,"center"):(t=(o=i+c)+5,"left")),"horizontal"===u?t=o=i:n=d=r,[[i,r],[o,d]]);h.label={linePoints:d,x:t,y:n,verticalAlign:"middle",textAlign:a,inside:e}})})}},function(e,t,n){n(568),n(570),n(571)},function(e,t,n){var a=n(1),i=n(569),r=n(154),d=n(8),o=n(52),p=o.getScaleExtent,f=o.niceScaleExtent,o=n(51),s=n(327);function l(e,t,n){this._model=e,this.dimensions=[],this._indicatorAxes=a.map(e.getIndicatorModels(),function(e,t){var n="indicator_"+t,t=new i(n,new("log"===e.get("axisType")?s:r));return t.name=e.get("name"),(t.model=e).axis=t,this.dimensions.push(n),t},this),this.resize(e,n),this.cx,this.cy,this.r,this.r0,this.startAngle}l.prototype.getIndicatorAxes=function(){return this._indicatorAxes},l.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},l.prototype.coordToPoint=function(e,t){t=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(t),this.cy-e*Math.sin(t)]},l.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,e=Math.sqrt(t*t+n*n);t/=e,n/=e;for(var i,r=Math.atan2(-n,t),o=1/0,a=-1,s=0;s<this._indicatorAxes.length;s++){var l=this._indicatorAxes[s],u=Math.abs(r-l.angle);u<o&&(i=l,a=s,o=u)}return[a,+(i&&i.coordToData(e))]},l.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),t=Math.min(i,r)/2;this.cx=d.parsePercent(n[0],i),this.cy=d.parsePercent(n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;e=e.get("radius");this.r0=d.parsePercent((e="string"==typeof e||"number"==typeof e?[0,e]:e)[0],t),this.r=d.parsePercent(e[1],t),a.each(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);t=this.startAngle+t*Math.PI*2/this._indicatorAxes.length,t=Math.atan2(Math.sin(t),Math.cos(t));e.angle=t},this)},l.prototype.update=function(i,e){var r=this._indicatorAxes,o=this._model;a.each(r,function(e){e.scale.setExtent(1/0,-1/0)}),i.eachSeriesByType("radar",function(e,t){var n;"radar"===e.get("coordinateSystem")&&i.getComponent("radar",e.get("radarIndex"))===o&&(n=e.getData(),a.each(r,function(e){e.scale.unionExtentFromData(n,n.mapDimension(e.dim))}))},this);var c=o.get("splitNumber");function h(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),e=e/t;return 2===e?e=5:e*=2,e*t}a.each(r,function(e,t){var n=p(e.scale,e.model).extent;f(e.scale,e.model);var i=e.model,r=e.scale,o=i.getMin(),a=i.getMax(),s=r.getInterval();if(null!=o&&null!=a)r.setExtent(+o,+a),r.setInterval((a-o)/c);else if(null!=o)for(;r.setExtent(+o,l=o+s*c),r.setInterval(s),s=h(s),l<n[1]&&isFinite(l)&&isFinite(n[1]););else if(null!=a)for(;r.setExtent(u=a-s*c,+a),r.setInterval(s),s=h(s),u>n[0]&&isFinite(u)&&isFinite(n[0]););else{i=r.getTicks().length-1;c<i&&(s=h(s));var l=Math.ceil(n[1]/s)*s,u=d.round(l-s*c);r.setExtent(u,l),r.setInterval(s)}})},l.dimensions=[],l.create=function(e,n){var i=[];return e.eachComponent("radar",function(e){var t=new l(e,0,n);i.push(t),e.coordinateSystem=t}),e.eachSeriesByType("radar",function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])}),i},o.register("radar",l),e.exports=l},function(e,t,n){var i=n(1),r=n(68);function o(e,t,n){r.call(this,e,t,n),this.type="value",this.angle=0,this.name="",this.model}i.inherits(o,r),e.exports=o},function(e,t,n){var i=n(3),f=n(1),r=n(332),m=n(26),g=n(100),r=r.valueAxis;function o(e,t){return f.defaults({show:t},e)}r=i.extendComponentModel({type:"radar",optionUpdated:function(){var n=this.get("boundaryGap"),i=this.get("splitNumber"),r=this.get("scale"),o=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisType"),l=this.get("axisLabel"),u=this.get("name"),c=this.get("name.show"),h=this.get("name.formatter"),d=this.get("nameGap"),p=this.get("triggerEvent"),e=f.map(this.get("indicator")||[],function(e){null!=e.max&&0<e.max&&!e.min?e.min=0:null!=e.min&&e.min<0&&!e.max&&(e.max=0);var t=u;null!=e.color&&(t=f.defaults({color:e.color},u)),e=f.merge(f.clone(e),{boundaryGap:n,splitNumber:i,scale:r,axisLine:o,axisTick:a,axisType:s,axisLabel:l,name:e.text,nameLocation:"end",nameGap:d,nameTextStyle:t,triggerEvent:p},!1),c||(e.name=""),"string"==typeof h?(t=e.name,e.name=h.replace("{value}",null!=t?t:"")):"function"==typeof h&&(e.name=h(e.name,e));e=f.extend(new m(e,null,this.ecModel),g);return e.mainType="radar",e.componentIndex=this.componentIndex,e},this);this.getIndicatorModels=function(){return e}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:f.merge({lineStyle:{color:"#bbb"}},r.axisLine),axisLabel:o(r.axisLabel,!1),axisTick:o(r.axisTick,!1),axisType:"interval",splitLine:o(r.splitLine,!0),splitArea:o(r.splitArea,!0),indicator:[]}});e.exports=r},function(e,t,n){n(14).__DEV__;var i=n(3),A=n(1),r=n(69),M=n(6),o=["axisLine","axisTickLabel","axisName"],i=i.extendComponentView({type:"radar",render:function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,e=t.getIndicatorAxes(),e=A.map(e,function(e){return new r(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});A.each(e,function(e){A.each(o,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(e){var n=e.coordinateSystem,t=n.getIndicatorAxes();if(t.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),e=o.getModel("areaStyle"),s=r.get("show"),l=o.get("show"),u=a.get("color"),c=e.get("color"),u=A.isArray(u)?u:[u],c=A.isArray(c)?c:[c],h=[],d=[];if("circle"===i)for(var p=t[0].getTicksCoords(),f=n.cx,m=n.cy,g=0;g<p.length;g++)s&&h[S(h,u,g)].push(new M.Circle({shape:{cx:f,cy:m,r:p[g].coord}})),l&&g<p.length-1&&d[S(d,c,g)].push(new M.Ring({shape:{cx:f,cy:m,r0:p[g].coord,r:p[g+1].coord}}));else for(var v,y=A.map(t,function(e,t){e=e.getTicksCoords();return v=null==v?e.length-1:Math.min(e.length-1,v),A.map(e,function(e){return n.coordToPoint(e.coord,t)})}),x=[],g=0;g<=v;g++){for(var b=[],_=0;_<t.length;_++)b.push(y[_][g]);b[0]&&b.push(b[0].slice()),s&&h[S(h,u,g)].push(new M.Polyline({shape:{points:b}})),l&&x&&d[S(d,c,g-1)].push(new M.Polygon({shape:{points:b.concat(x)}})),x=b.slice().reverse()}var w=a.getLineStyle(),C=e.getAreaStyle();A.each(d,function(e,t){this.group.add(M.mergePath(e,{style:A.defaults({stroke:"none",fill:c[t%c.length]},C),silent:!0}))},this),A.each(h,function(e,t){this.group.add(M.mergePath(e,{style:A.defaults({fill:"none",stroke:u[t%u.length]},w),silent:!0}))},this)}function S(e,t,n){t=n%t.length;return e[t]=e[t]||[],t}}});e.exports=i},function(e,t,n){var i=n(31),r=n(101),s=n(1),l=n(17).encodeHTML,o=n(131),a=i.extend({type:"series.radar",dependencies:["radar"],init:function(e){a.superApply(this,"init",arguments),this.legendVisualProvider=new o(s.bind(this.getData,this),s.bind(this.getRawData,this))},getInitialData:function(e,t){return r(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(i,e,t,n){var r=this.getData(),o=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(i),n="html"===n?"<br/>":"\n";return l(""===a?this.name:a)+n+s.map(o,function(e,t){var n=r.get(r.mapDimension(e.dim),i);return l(e.name+" : "+n)}).join(n)},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(s.map(n.dimensions,function(e){return t.mapDimension(e)}),e,!0),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});e.exports=a},function(e,t,n){var i=n(3),g=n(6),v=n(1),o=n(42);i=i.extendChartView({type:"radar",render:function(l,e,t){var n=l.coordinateSystem,f=this.group,m=l.getData(),a=this._data;function u(e,t){var n=e.getItemVisual(t,"symbol")||"circle",i=e.getItemVisual(t,"color");if("none"!==n){var r,r=(r=e.getItemVisual(t,"symbolSize"),r=v.isArray(r)?r:[+r,+r]),i=o.createSymbol(n,-1,-1,2,2,i),t=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2],rotation:t*Math.PI/180||0}),i}}function s(e,t,n,i,r,o){n.removeAll();for(var a=0;a<t.length-1;a++){var s=u(i,r);s&&(e[s.__dimIdx=a]?(s.attr("position",e[a]),g[o?"initProps":"updateProps"](s,{position:t[a]},l,r)):s.attr("position",t[a]),n.add(s))}}function c(e){return v.map(e,function(e){return[n.cx,n.cy]})}m.diff(a).add(function(e){var t,n,i,r,o=m.getItemLayout(e);o&&(t=new g.Polygon,n=new g.Polyline,r={shape:{points:o}},t.shape.points=c(o),n.shape.points=c(o),g.initProps(t,r,l,e),g.initProps(n,r,l,e),i=new g.Group,r=new g.Group,i.add(n),i.add(t),i.add(r),s(n.shape.points,o,r,m,e,!0),m.setItemGraphicEl(e,i))}).update(function(e,t){var n=a.getItemGraphicEl(t),i=n.childAt(0),r=n.childAt(1),o=n.childAt(2),t={shape:{points:m.getItemLayout(e)}};t.shape.points&&(s(i.shape.points,t.shape.points,o,m,e,!1),g.updateProps(i,t,l),g.updateProps(r,t,l),m.setItemGraphicEl(e,n))}).remove(function(e){f.remove(a.getItemGraphicEl(e))}).execute(),m.eachItemGraphicEl(function(e,n){var t=m.getItemModel(n),i=e.childAt(0),r=e.childAt(1),o=e.childAt(2),a=m.getItemVisual(n,"color");f.add(e),i.useStyle(v.defaults(t.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:a})),i.hoverStyle=t.getModel("emphasis.lineStyle").getLineStyle();var s=t.getModel("areaStyle"),i=t.getModel("emphasis.areaStyle"),l=s.isEmpty()&&s.parentModel.isEmpty(),u=(u=i.isEmpty()&&i.parentModel.isEmpty())&&l;r.ignore=l,r.useStyle(v.defaults(s.getAreaStyle(),{fill:a,opacity:.7})),r.hoverStyle=i.getAreaStyle();var c=t.getModel("itemStyle").getItemStyle(["color"]),h=t.getModel("emphasis.itemStyle").getItemStyle(),d=t.getModel("label"),p=t.getModel("emphasis.label");o.eachChild(function(e){e.setStyle(c),e.hoverStyle=v.clone(h);var t=m.get(m.dimensions[e.__dimIdx],n);null!=t&&!isNaN(t)||(t=""),g.setLabelStyle(e.style,e.hoverStyle,d,p,{labelFetcher:m.hostModel,labelDataIndex:n,labelDimIndex:e.__dimIdx,defaultText:t,autoColor:a,isRectText:!0})}),e.highDownOnUpdate=function(e,t){r.attr("ignore","emphasis"===t?u:l)},g.setHoverStyle(e)}),this._data=m},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});e.exports=i},function(e,t,n){var a=n(1);function s(e){return!isNaN(e[0])&&!isNaN(e[1])}function l(e){return[e.cx,e.cy]}e.exports=function(e){e.eachSeriesByType("radar",function(e){var t,i=e.getData(),r=[],o=e.coordinateSystem;o&&(t=o.getIndicatorAxes(),a.each(t,function(e,n){i.each(i.mapDimension(t[n].dim),function(e,t){r[t]=r[t]||[];e=o.dataToPoint(e,n);r[t][n]=s(e)?e:l(o)})}),i.each(function(e){var t=a.find(r[e],s)||l(o);r[e].push(t.slice()),i.setItemLayout(e,r[e])}))})}},function(e,t,n){var r=n(1);e.exports=function(n){var i,e=n.polar;e&&(r.isArray(e)||(e=[e]),i=[],r.each(e,function(e,t){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),n.radar=n.radar||[],r.isArray(n.radar)||(n.radar=[n.radar]),n.radar.push(e)):i.push(e)}),n.polar=i),r.each(n.series,function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}},function(e,t,n){var c=n(1),h=n(101),i=n(31),r=n(17),d=r.encodeHTML,p=r.addCommas,r=n(207),f=n(80).retrieveRawAttr,m=n(160),g=n(61).makeSeriesEncodeForNameBased,i=i.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=h(this,{coordDimensions:["value"],encodeDefaulter:c.curry(g,this)}),n=t.mapDimension("value"),i=c.createHashMap(),r=[],o=[],a=0,s=t.count();a<s;a++){var l=t.getName(a);i.set(l,!0),r.push({name:l,value:t.get(n,a),selected:f(t,a,"selected")})}var u=m.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return c.each(u.regions,function(e){e=e.name;i.get(e)||(r.push({name:e}),o.push(e))}),this.updateSelectedMap(r),t.appendValues([],o),t},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e,t,n,i){for(var r=this.getData(),o=p(this.getRawValue(e)),a=r.getName(e),s=this.seriesGroup,l=[],u=0;u<s.length;u++){var c=s[u].originalData.indexOfName(a),h=r.mapDimension("value");isNaN(s[u].originalData.get(h,c))||l.push(d(s[u].name))}i="html"===i?"<br/>":"\n";return l.join(", ")+i+d(a+" : "+o)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),e=this.coordinateSystem,t=e.getRegion(t);return t&&e.dataToPoint(t.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,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)"}},nameProperty:"name"}});c.mixin(i,r),e.exports=i},function(e,t,n){var a=n(1).each,s=n(328),i=n(10).makeInner,l=n(578),u=n(579),c=n(580),h=n(581),d=i();e.exports={load:function(n,e,t){var i=d(e).parsed;if(i)return i;var r,o=e.specialAreas||{},i=e.geoJSON;try{r=i?s(i,t):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return l(n,r),a(r,function(e){var t=e.name;u(n,e),c(n,e),h(n,e);t=o[t];t&&e.transformTo(t.left,t.top,t.width,t.height)}),d(e).parsed={regions:r,boundingRect:function(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();(t=t||i.clone()).union(i)}return t}(r)}}}},function(e,t,n){for(var i=n(1),r=n(329),o=[126,25],a=[[[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]]],s=0;s<a.length;s++)for(var l=0;l<a[s].length;l++)a[s][l][0]/=10.5,a[s][l][1]/=-14,a[s][l][0]+=o[0],a[s][l][1]+=o[1];e.exports=function(e,t){"china"===e&&t.push(new r("南海诸岛",i.map(a,function(e){return{type:"polygon",exterior:e}}),o))}},function(e,t){var n={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};e.exports=function(e,t){"china"!==e||(e=n[t.name])&&((t=t.center)[0]+=e[0]/10.5,t[1]+=-e[1]/14)}},function(e,t){var n={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};e.exports=function(e,t){"world"!==e||(e=n[t.name])&&((t=t.center)[0]=e[0],t[1]=e[1])}},function(e,t){var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];e.exports=function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:n[0]})}},function(e,t,n){var i=n(322),o=i.parseSVG,a=i.makeViewBoxTransform,s=n(78),l=n(194),i=n(1),u=i.assert,c=i.createHashMap,h=n(21),d=(0,n(10).makeInner)();function p(e,t){var n=e.svgXML;try{i=(r=n&&o(n,{ignoreViewBox:!0,ignoreRootClip:!0})||{}).root,u(null!=i)}catch(e){throw new Error("Invalid svg format\n"+e.message)}var i,e=r.width,n=r.height,r=r.viewBoxRect;return t||(t=null==e||null==n?i.getBoundingRect():new h(0,0,0,0),null!=e&&(t.width=e),null!=n&&(t.height=n)),r&&(n=a(r,t.width,t.height),r=i,(i=new s).add(r),r.scale=n.scale,r.position=n.position),i.setClipPath(new l({shape:t.plain()})),{root:i,boundingRect:t}}e.exports={load:function(e,t){var n=d(t).originRoot;if(n)return{root:n,boundingRect:d(t).boundingRect};n=p(t);return d(t).originRoot=n.root,d(t).boundingRect=n.boundingRect,n},makeGraphic:function(e,t,n){var i=d(t),r=i.rootMap||(i.rootMap=c());if(s=r.get(n))return s;var o=i.originRoot,a=i.boundingRect,s=i.originRootHostKey?p(t,a).root:(i.originRootHostKey=n,o);return r.set(n,s)},removeGraphic:function(e,t,n){var i=d(t),t=i.rootMap;t&&t.removeKey(n),n===i.originRootHostKey&&(i.originRootHostKey=null)}}},function(e,t,n){var i=n(3),p=n(1),f=n(6),a=n(351),m="__seriesMapHighDown",g="__seriesMapCallKey",i=i.extendChartView({type:"map",render:function(e,t,n,i){var r,o;i&&"mapToggleSelect"===i.type&&i.from===this.uid||((r=this.group).removeAll(),e.getHostGeoModel()||(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id?(o=this._mapDraw)&&r.add(o.group):e.needsDrawMap?(o=this._mapDraw||new a(n,!0),r.add(o.group),o.draw(e,t,n,this,i),this._mapDraw=o):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null),e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)))},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(c,e,t){var h=c.originalData,d=this.group;h.each(h.mapDimension("value"),function(e,t){var n,i,r,o,a,s,l,u;isNaN(e)||(i=h.getItemLayout(t))&&i.point&&(r=i.point,o=i.offset,n=new f.Circle({style:{fill:c.getData().getVisual("color")},shape:{cx:r[0]+9*o,cy:r[1],r:3},silent:!0,z2:8+(o?0:f.Z2_EMPHASIS_LIFT+1)}),o||(a=c.mainSeries.getData(),l=h.getName(t),u=a.indexOfName(l),e=(s=h.getItemModel(t)).getModel("label"),i=s.getModel("emphasis.label"),r=a.getItemGraphicEl(u),o=p.retrieve2(c.getFormattedLabel(u,"normal"),l),t=p.retrieve2(c.getFormattedLabel(u,"emphasis"),o),s=r[m],a=Math.random(),s||(s=r[m]={},l=p.curry(v,!0),u=p.curry(v,!1),r.on("mouseover",l).on("mouseout",u).on("emphasis",l).on("normal",u)),r[g]=a,p.extend(s,{recordVersion:a,circle:n,labelModel:e,hoverLabelModel:i,emphasisText:t,normalText:o}),y(s,!1)),d.add(n))})}});function v(e){var t=this[m];t&&t.recordVersion===this[g]&&y(t,e)}function y(e,t){var n=e.circle,i=e.labelModel,r=e.hoverLabelModel,o=e.emphasisText,e=e.normalText;t?(n.style.extendFrom(f.setTextStyle({},r,{text:r.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=f.Z2_EMPHASIS_LIFT):(f.setTextStyle(n.style,i,{text:i.get("show")?e:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}e.exports=i},function(e,t,n){var i=n(1),s=n(21),r=n(212),o=n(160);function a(e,t,n,i){r.call(this,e),this.map=t;n=o.load(t,n);this._nameCoordMap=n.nameCoordMap,this._regionsMap=n.regionsMap,this._invertLongitute=null==i||i,this.regions=n.regions,this._rect=n.boundingRect}function l(e,t,n,i){var r=n.geoModel,n=n.seriesModel,n=r?r.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return n===this?n[e](i):null}a.prototype={constructor:a,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return!0;return!1},transformTo:function(e,t,n,i){var r=this.getBoundingRect(),o=this._invertLongitute,r=r.clone();o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new s(e,t,n,i)),a.decomposeTransform(),o&&((o=a.scale)[1]=-o[1]),a.updateTransform(),this._updateTransform()},getRegion:function(e){return this._regionsMap.get(e)},getRegionByCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return t[n]},addGeoCoord:function(e,t){this._nameCoordMap.set(e,t)},getGeoCoord:function(e){return this._nameCoordMap.get(e)},getBoundingRect:function(){return this._rect},dataToPoint:function(e,t,n){if(e="string"==typeof e?this.getGeoCoord(e):e)return r.prototype.dataToPoint.call(this,e,t,n)},convertToPixel:i.curry(l,"dataToPoint"),convertFromPixel:i.curry(l,"pointToData")},i.mixin(a,r),e.exports=a},function(e,t,n){var o=n(1);e.exports=function(n){var r={};n.eachSeriesByType("map",function(e){var a,i,t=e.getMapType();e.getHostGeoModel()||r[t]||(a={},o.each(e.seriesGroup,function(e){var r=e.coordinateSystem,o=e.originalData;e.get("showLegendSymbol")&&n.getComponent("legend")&&o.each(o.mapDimension("value"),function(e,t){var n=o.getName(t),i=r.getRegion(n);i&&!isNaN(e)&&(e=a[n]||0,i=r.dataToPoint(i.center),a[n]=e+1,o.setItemLayout(t,{point:i,offset:e}))})}),(i=e.getData()).each(function(e){var t=i.getName(e),n=i.getItemLayout(e)||{};n.showLabel=!a[t],i.setItemLayout(e,n)}),r[t]=!0)})}},function(e,t){e.exports=function(e){e.eachSeriesByType("map",function(e){var t=e.get("color"),n=e.getModel("itemStyle"),i=n.get("areaColor"),t=n.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:i,color:t})})}},function(e,t,n){var r=n(1);e.exports=function(e){var n={};e.eachSeriesByType("map",function(e){var t=e.getHostGeoModel(),t=t?"o"+t.id:"i"+e.getMapType();(n[t]=n[t]||[]).push(e)}),r.each(n,function(e,t){for(var l,u,c,n=(l=r.map(e,function(e){return e.getData()}),u=e[0].get("mapValueCalculation"),c={},r.each(l,function(n){n.each(n.mapDimension("value"),function(e,t){t="ec-"+n.getName(t);c[t]=c[t]||[],isNaN(e)||c[t].push(e)})}),l[0].map(l[0].mapDimension("value"),function(e,t){for(var n="ec-"+l[0].getName(t),i=0,r=1/0,o=-1/0,a=c[n].length,s=0;s<a;s++)r=Math.min(r,c[n][s]),o=Math.max(o,c[n][s]),i+=c[n][s];return t="min"===u?r:"max"===u?o:"average"===u?i/a:i,0===a?NaN:t})),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(i=0;i<e.length;i++)(e[i].seriesGroup=e)[i].needsDrawMap=0===i&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]})}},function(e,t,n){var i=n(1);e.exports=function(e){var t=[];i.each(e.series,function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,i.defaults(e,e.mapLocation))})}},function(e,t,n){var i=n(62),n=n(31).extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});e.exports=n},function(e,t,n){var i=n(3),r=n(129),o=n(591),a=n(130);i.extendChartView({type:"scatter",render:function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},incrementalPrepareRender:function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||1e4<i.count()||!this._symbolDraw.isPersistent())return{update:!0};e=a().reset(e);e.progress&&e.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_getClipShape:function(e){var t=e.coordinateSystem,t=t&&t.getArea&&t.getArea();return e.get("clip",!0)?t:null},_updateSymbolDraw:function(e,t){var n=this._symbolDraw,t=t.pipelineContext.large;return n&&t===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=new(t?o:r),this._isLargeDraw=t,this.group.removeAll()),this.group.add(n.group),n},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},function(e,t,n){var i=n(6),a=n(42).createSymbol,r=n(197),o=i.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(e,t){var n=t.points,i=t.size,r=this.symbolProxy,o=r.shape;if(!((e.getContext?e.getContext():e)&&i[0]<4))for(var a=0;a<n.length;){var s=n[a++],l=n[a++];isNaN(s)||isNaN(l)||this.softClipShape&&!this.softClipShape.contain(s,l)||(o.x=s-i[0]/2,o.y=l-i[1]/2,o.width=i[0],o.height=i[1],r.buildPath(e,o,!0))}},afterBrush:function(e){var t=this.shape,n=t.points,i=t.size;if(i[0]<4){this.setTransform(e);for(var r=0;r<n.length;){var o=n[r++],a=n[r++];isNaN(o)||isNaN(a)||this.softClipShape&&!this.softClipShape.contain(o,a)||e.fillRect(o-i[0]/2,a-i[1]/2,i[0],i[1])}this.restoreTransform(e)}},findDataIndex:function(e,t){for(var n=this.shape,i=n.points,n=n.size,r=Math.max(n[0],4),o=Math.max(n[1],4),a=i.length/2-1;0<=a;a--){var s=2*a,l=i[s]-r/2,s=i[1+s]-o/2;if(l<=e&&s<=t&&e<=l+r&&t<=s+o)return a}return-1}});function s(){this.group=new i.Group}n=s.prototype;n.isPersistent=function(){return!this._incremental},n.updateData=function(e,t){this.group.removeAll();var n=new o({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},n.updateLayout=function(e){var i;this._incremental||(i=e.getLayout("symbolPoints"),this.group.eachChild(function(e){var t,n;null!=e.startIndex&&(t=2*(e.endIndex-e.startIndex),n=4*e.startIndex*2,i=new Float32Array(i.buffer,n,t)),e.setShape("points",i)}))},n.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),2e6<e.count()?(this._incremental||(this._incremental=new r({silent:!0})),this.group.add(this._incremental)):this._incremental=null},n.incrementalUpdate=function(e,t,n){var i;this._incremental?(i=new o,this._incremental.addDisplayable(i,!0)):((i=new o({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end})).incremental=!0,this.group.add(i)),i.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(i,t,!!this._incremental,n)},n._setCommon=function(t,e,n,i){var r=e.hostModel;i=i||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=i.clipShape||null,t.symbolProxy=a(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;i=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(i?["color","shadowBlur","shadowColor"]:["color"]));e=e.getVisual("color");e&&t.setColor(e),n||(t.seriesIndex=r.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;e=t.findDataIndex(e.offsetX,e.offsetY);0<=e&&(t.dataIndex=e+(t.startIndex||0))}))},n.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},n._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e.exports=s},function(e,t,n){var i=n(31),s=n(213),o=n(17).encodeHTML,l=n(26),i=i.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new l(n,this,this.ecModel),r=s.createTree(t,this,function(e){e.wrapMethod("getItemModel",function(e,t){t=r.getNodeByDataIndex(t);return t.children.length&&t.isExpand||(e.parentModel=i),e})});var o=0;r.eachNode("preorder",function(e){e.depth>o&&(o=e.depth)});var a=e.expandAndCollapse&&0<=e.initialTreeDepth?e.initialTreeDepth:o;return r.root.eachNode("preorder",function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=a}),r.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){for(var t=this.getData().tree,n=t.root.children[0],i=t.getNodeByDataIndex(e),e=i.getValue(),r=i.name;i&&i!==n;)r=i.parentNode.name+"."+r,i=i.parentNode;return o(r+(isNaN(e)||null==e?"":" : "+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",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});e.exports=i},function(e,t,n){var g=n(1),v=n(6),y=n(159),d=n(358).radialCoordinate,i=n(3),s=n(121),l=n(212),u=n(209),r=n(134),c=n(161).onIrrelevantElement,p=(n(14).__DEV__,n(8).parsePercent),x=v.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,s=1-l,t=p(t.forkPosition,1),u=[];u[l]=r[l],u[s]=r[s]+(a[s]-r[s])*t,e.moveTo(r[0],r[1]),e.lineTo(u[0],u[1]),e.moveTo(o[0],o[1]),u[l]=o[l],e.lineTo(u[0],u[1]),u[l]=a[l],e.lineTo(u[0],u[1]),e.lineTo(a[0],a[1]);for(var c=1;c<i-1;c++){var h=n[c];e.moveTo(h[0],h[1]),u[l]=h[l],e.lineTo(u[0],u[1])}}}),i=i.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new v.Group,this._controller=new r(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(i,e,n,t){var r=i.getData(),o=i.layoutInfo,a=this._mainGroup,s=i.get("layout");"radial"===s?a.attr("position",[o.x+o.width/2,o.y+o.height/2]):a.attr("position",[o.x,o.y]),this._updateViewCoordSys(i,o,s),this._updateController(i,e,n);var l=this._data,u={expandAndCollapse:i.get("expandAndCollapse"),layout:s,edgeShape:i.get("edgeShape"),edgeForkPosition:i.get("edgeForkPosition"),orient:i.getOrient(),curvature:i.get("lineStyle.curveness"),symbolRotate:i.get("symbolRotate"),symbolOffset:i.get("symbolOffset"),hoverAnimation:i.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};r.diff(l).add(function(e){h(r,e)&&f(r,e,null,a,i,u)}).update(function(e,t){var n=l.getItemGraphicEl(t);h(r,e)?f(r,e,n,a,i,u):n&&m(l,t,n,a,i,u)}).remove(function(e){var t=l.getItemGraphicEl(e);t&&m(l,e,t,a,i,u)}).execute(),this._nodeScaleRatio=i.get("nodeScaleRatio"),this._updateNodeAndLinkScale(i),!0===u.expandAndCollapse&&r.eachItemGraphicEl(function(e,t){e.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:i.id,dataIndex:t})})}),this._data=r},_updateViewCoordSys:function(e){var t=e.getData(),n=[];t.each(function(e){e=t.getItemLayout(e);!e||isNaN(e.x)||isNaN(e.y)||n.push([+e.x,+e.y])});var i=[],r=[];s.fromPoints(n,i,r);var o=this._min,a=this._max;r[0]-i[0]==0&&(i[0]=o?o[0]:i[0]-1,r[0]=a?a[0]:r[0]+1),r[1]-i[1]==0&&(i[1]=o?o[1]:i[1]-1,r[1]=a?a[1]:r[1]+1);a=e.coordinateSystem=new l;a.zoomLimit=e.get("scaleLimit"),a.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),a.setCenter(e.get("center")),a.setZoom(e.get("zoom")),this.group.attr({position:a.position,scale:a.scale}),this._viewCoordSys=a,this._min=i,this._max=r},_updateController:function(r,e,o){var t=this._controller,n=this._controllerHost,a=this.group;t.setPointerChecker(function(e,t,n){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(t,n)&&!c(e,o,r)}),t.enable(r.get("roam")),n.zoomLimit=r.get("scaleLimit"),n.zoom=r.coordinateSystem.getZoom(),t.off("pan").off("zoom").on("pan",function(e){u.updateViewOnPan(n,e.dx,e.dy),o.dispatchAction({seriesId:r.id,type:"treeRoam",dx:e.dx,dy:e.dy})},this).on("zoom",function(e){u.updateViewOnZoom(n,e.scale,e.originX,e.originY),o.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(r)},this)},_updateNodeAndLinkScale:function(e){var t=e.getData(),e=this._getNodeGlobalScale(e),n=[e,e];t.eachItemGraphicEl(function(e,t){e.attr("scale",n)})},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,e=t.scale,e=e&&e[0]||1;return((t.getZoom()-1)*n+1)/e},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function h(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==e.getItemVisual(t,"symbol")}function b(e,t,n){return n.itemModel=t,n.itemStyle=t.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=t.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=t.getModel("lineStyle").getLineStyle(),n.labelModel=t.getModel("label"),n.hoverLabelModel=t.getModel("emphasis.label"),!1===e.isExpand&&0!==e.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function f(e,t,n,i,r,o){var a=!n,s=e.tree.getNodeByDataIndex(t),l=s.getModel(),o=b(s,l,o),u=e.tree.root,c=s.parentNode!==u&&s.parentNode||s,h=e.getItemGraphicEl(c.dataIndex),d=c.getLayout(),l=h?{x:h.position[0],y:h.position[1],rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:d,c=s.getLayout();a?(n=new y(e,t,o)).attr("position",[l.x,l.y]):n.updateData(e,t,o),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=c.rawX,n.__radialRawY=c.rawY,i.add(n),e.setItemGraphicEl(t,n),v.updateProps(n,{position:[c.x,c.y]},r);var p,f,m,h=n.getSymbolPath();"radial"===o.layout&&(e=(a=u.children[0]).getLayout(),t=a.children.length,c.x===e.x&&!0===s.isExpand?((f={}).x=(a.children[0].getLayout().x+a.children[t-1].getLayout().x)/2,f.y=(a.children[0].getLayout().y+a.children[t-1].getLayout().y)/2,(p=Math.atan2(f.y-e.y,f.x-e.x))<0&&(p=2*Math.PI+p),(m=f.x<e.x)&&(p-=Math.PI)):((p=Math.atan2(c.y-e.y,c.x-e.x))<0&&(p=2*Math.PI+p),0===s.children.length||0!==s.children.length&&!1===s.isExpand?(m=c.x<e.x)&&(p-=Math.PI):(m=c.x>e.x)||(p-=Math.PI)),f=m?"left":"right",m=(e=o.labelModel.get("rotate"))*(Math.PI/180),h.setStyle({textPosition:o.labelModel.get("position")||f,textRotation:null==e?-p:m,textOrigin:"center",verticalAlign:"middle"})),function(e,t,n,i,r,o,a,s,l){var u=l.edgeShape,c=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(c=c||(i.__edge=new v.BezierCurve({shape:_(l,r,r),style:g.defaults({opacity:0,strokeNoScale:!0},l.lineStyle)})),v.updateProps(c,{shape:_(l,o,a),style:g.defaults({opacity:1},l.lineStyle)},e));else if("polyline"===u&&"orthogonal"===l.layout&&t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var h=t.children,d=[],p=0;p<h.length;p++){var f=h[p].getLayout();d.push([f.x,f.y])}c=c||(i.__edge=new x({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:l.orient,forkPosition:l.edgeForkPosition},style:g.defaults({opacity:0,strokeNoScale:!0},l.lineStyle)})),v.updateProps(c,{shape:{parentPoint:[a.x,a.y],childPoints:d},style:g.defaults({opacity:1},l.lineStyle)},e)}s.add(c)}(r,s,u,n,l,d,c,i,o)}function m(e,t,n,i,r,o){for(var a,s=e.tree.getNodeByDataIndex(t),l=e.tree.root,u=s.getModel(),o=b(s,u,o),c=s.parentNode!==l&&s.parentNode||s,u=o.edgeShape;null==(a=c.getLayout());)c=c.parentNode!==l&&c.parentNode||c;v.updateProps(n,{position:[a.x+1,a.y+1]},r,function(){i.remove(n),e.setItemGraphicEl(t,null)}),n.fadeOut(null,{keepLabel:!0});var s=e.getItemGraphicEl(c.dataIndex).__edge,h=n.__edge||(!1===c.isExpand||1===c.children.length?s:void 0),u=o.edgeShape;h&&("curve"===u?v.updateProps(h,{shape:_(o,a,a),style:{opacity:0}},r,function(){i.remove(h)}):"polyline"===u&&"orthogonal"===o.layout&&v.updateProps(h,{shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]]},style:{opacity:0}},r,function(){i.remove(h)}))}function _(e,t,n){var i,r,o,a,s=e.orient;if("radial"!==e.layout)return l=t.x,u=t.y,c=n.x,h=n.y,"LR"!==s&&"RL"!==s||(i=l+(c-l)*e.curvature,r=u,o=c+(l-c)*e.curvature,a=h),"TB"!==s&&"BT"!==s||(i=l,r=u+(h-u)*e.curvature,o=c,a=h+(u-h)*e.curvature),{x1:l,y1:u,x2:c,y2:h,cpx1:i,cpy1:r,cpx2:o,cpy2:a};var l=t.rawX,u=t.rawY,c=n.rawX,h=n.rawY,n=d(l,u),l=d(l,u+(h-u)*e.curvature),e=d(c,h+(u-h)*e.curvature),h=d(c,h);return{x1:n.x,y1:n.y,x2:h.x,y2:h.y,cpx1:l.x,cpy1:l.y,cpx2:e.x,cpy2:e.y}}e.exports=i},function(e,t,n){var i=n(3),r=n(210).updateCenterAndZoom;i.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(n,e){e.eachComponent({mainType:"series",subType:"tree",query:n},function(e){var t=n.dataIndex,t=e.getData().tree.getNodeByDataIndex(t);t.isExpand=!t.isExpand})}),i.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(n,e){e.eachComponent({mainType:"series",subType:"tree",query:n},function(e){var t=e.coordinateSystem,t=r(t,n);e.setCenter&&e.setCenter(t.center),e.setZoom&&e.setZoom(t.zoom)})})},function(e,t,n){var i=n(596),g=i.eachAfter,v=i.eachBefore,n=n(358),y=n.init,x=n.firstWalk,b=n.secondWalk,_=n.separation,w=n.radialCoordinate,C=n.getViewRect;e.exports=function(e,t){e.eachSeriesByType("tree",function(e){!function(e,t){var n=C(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;a="radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,_(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(r=n.width,o=n.height,_());t=e.getData().tree.root,n=t.children[0];{var s,l,u,c,h,d,p,f,m;n&&(y(t),g(n,x,a),t.hierNode.modifier=-n.hierNode.prelim,v(n,b),v(u=l=s=n,function(e){var t=e.getLayout().x;t<s.getLayout().x&&(s=e),t>l.getLayout().x&&(l=e),e.depth>u.depth&&(u=e)}),a=s===l?1:a(s,l)/2,c=a-s.getLayout().x,f=p=d=h=0,"radial"===i?(h=r/(l.getLayout().x+a+c),d=o/(u.depth-1||1),v(n,function(e){p=(e.getLayout().x+c)*h,f=(e.depth-1)*d;var t=w(p,f);e.setLayout({x:t.x,y:t.y,rawX:p,rawY:f},!0)})):"RL"===(m=e.getOrient())||"LR"===m?(d=o/(l.getLayout().x+a+c),h=r/(u.depth-1||1),v(n,function(e){f=(e.getLayout().x+c)*d,p="LR"===m?(e.depth-1)*h:r-(e.depth-1)*h,e.setLayout({x:p,y:f},!0)})):"TB"!==m&&"BT"!==m||(h=r/(l.getLayout().x+a+c),d=o/(u.depth-1||1),v(n,function(e){p=(e.getLayout().x+c)*h,f="TB"===m?(e.depth-1)*d:o-(e.depth-1)*d,e.setLayout({x:p,y:f},!0)})))}}(e,t)})}},function(e,t){t.eachAfter=function(e,t,n){for(var i,r=[e],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;i=o.pop();)t(i,n)},t.eachBefore=function(e,t){for(var n,i=[e];n=i.pop();)if(t(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;0<=o;o--)i.push(r[o])}}},function(e,t,n){var i=n(3);n(598),n(599),n(602);var r=n(603),n=n(604);i.registerVisual(r),i.registerLayout(n)},function(e,t,n){var l=n(1),i=n(31),u=n(213),c=n(26),r=n(17),o=r.encodeHTML,a=r.addCommas,s=n(84).wrapTreePathInfo,n=i.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,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)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var n={name:e.name,children:e.data};!function t(e){var n=0;l.each(e.children,function(e){t(e);var e=e.value;l.isArray(e)&&(e=e[0]),n+=e});var i=e.value;l.isArray(i)&&(i=i[0]);null!=i&&!isNaN(i)||(i=n);i<0&&(i=0);l.isArray(e.value)?e.value[0]=i:e.value=i}(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new c({itemStyle:r},this,t),i=e.levels=function(e,t){var n,t=t.get("color");if(t)return e=e||[],l.each(e,function(e){var t=new c(e),e=t.get("color");(t.get("itemStyle.color")||e&&"none"!==e)&&(n=!0)}),n||((e[0]||(e[0]={})).color=t.slice()),e}(i,t),a=l.map(i||[],function(e){return new c(e,o,t)},this),s=u.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){t=s.getNodeByDataIndex(t),t=a[t.depth];return e.parentModel=t||o,e})});return s.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),n=this.getRawValue(e),n=l.isArray(n)?a(n[0]):a(n),e=t.getName(e);return o(e+": "+n)},getDataParams:function(e){var t=i.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=s(n,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},l.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=l.createHashMap(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});e.exports=n},function(e,t,n){function T(e){return(e=z(e)).stroke=e.fill=e.lineWidth=null,e}var i=n(3),k=n(1),D=n(6),p=n(81),l=n(84),r=n(600),o=n(134),a=n(21),s=n(35),c=n(601),u=n(96),h=n(17).windowOpen,d=k.bind,I=D.Group,O=D.Rect,f=k.each,N=["label"],L=["emphasis","label"],P=["upperLabel"],E=["emphasis","upperLabel"],H=10,z=u([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),i=i.extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=m(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,n,i){var r,o,a,s=t.findComponents({mainType:"series",subType:"treemap",query:i});k.indexOf(s,e)<0||(this.seriesModel=e,this.api=n,this.ecModel=t,r=l.retrieveTargetInfo(i,["treemapZoomToNode","treemapRootToNode"],e),o=i&&i.type,a=e.layoutInfo,s=!this._oldTree,t=this._storage,t="treemapRootToNode"===o&&r&&t?{rootNodeGroup:t.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,i=this._giveContainerGroup(a),a=this._doRender(i,e,t),s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?a.renderFinally():this._doAnimation(i,a,e,t),this._resetController(n),this._renderBreadcrumb(e,n,r))},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new I,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,n){var i=t.getData().tree,r=this._oldTree,o=m(),a=m(),s=this._storage,l=[],u=k.curry(g,t,a,s,n,o,l);!function i(r,o,a,s,l){s?f(o=r,function(e,t){e.isRemoved()||n(t,t)}):new p(o,r,e,e).add(n).update(n).remove(k.curry(n,null)).execute();function e(e){return e.getId()}function n(e,t){var n=null!=e?r[e]:null,e=null!=t?o[t]:null,t=u(n,e,a,l);t&&i(n&&n.viewChildren||[],e&&e.viewChildren||[],t,s,l+1)}}(i.root?[i.root]:[],r&&r.root?[r.root]:[],e,i===r||!r,0);var c,h,d=(h=m(),(c=s)&&f(c,function(e,t){var n=h[t];f(e,function(e){e&&(n.push(e),e.__tmWillDelete=1)})}),h);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:d,renderFinally:function(){f(d,function(e){f(e,function(e){e.parent&&e.parent.remove(e)})}),f(l,function(e){e.invisible=!0,e.dirty()})}}},_doAnimation:function(e,r,t,a){var s,l,u;t.get("animation")&&(s=t.get("animationDurationUpdate"),l=t.get("animationEasing"),u=c.createWrap(),f(r.willDeleteEls,function(e,o){f(e,function(e,t){var n,i,r;e.invisible||(n=e.parent,(r=a&&"drillDown"===a.direction?n===a.rootNodeGroup?{shape:{x:0,y:0,width:n.__tmNodeWidth,height:n.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}}:(r=i=0,n.__tmWillDelete||(i=n.__tmNodeWidth/2,r=n.__tmNodeHeight/2),"nodeGroup"===o?{position:[i,r],style:{opacity:0}}:{shape:{x:i,y:r,width:0,height:0},style:{opacity:0}}))&&u.add(e,r,s,l))})}),f(this._storage,function(e,i){f(e,function(e,t){var n=r.lastsForAnimation[i][t],t={};n&&("nodeGroup"===i?n.old&&(t.position=e.position.slice(),e.attr("position",n.old)):(n.old&&(t.shape=k.extend({},e.shape),e.setShape(n.old)),n.fadein?(e.setStyle("opacity",0),t.style={opacity:1}):1!==e.style.opacity&&(t.style={opacity:1})),u.add(e,t,s,l))})},this),this._state="animating",u.done(d(function(){this._state="ready",r.renderFinally()},this)).start())},_resetController:function(e){var t=this._controller;t||((t=this._controller=new o(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",d(this._onPan,this)),t.on("zoom",d(this._onZoom,this)));var i=new a(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,n){return i.contain(t,n)})},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){var t;"animating"!==this._state&&(3<Math.abs(e.dx)||3<Math.abs(e.dy))&&(!(t=this.seriesModel.getData().tree.root)||(t=t.getLayout())&&this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:t.x+e.dx,y:t.y+e.dy,width:t.width,height:t.height}}))},_onZoom:function(e){var t,n,i=e.originX,r=e.originY;"animating"!==this._state&&(!(t=this.seriesModel.getData().tree.root)||(n=t.getLayout())&&(t=new a(n.x,n.y,n.width,n.height),i-=(n=this.seriesModel.layoutInfo).x,r-=n.y,n=s.create(),s.translate(n,n,[-i,-r]),s.scale(n,n,[e.scale,e.scale]),s.translate(n,n,[i,r]),t.applyTransform(n),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:t.x,y:t.y,width:t.width,height:t.height}})))},_initEvents:function(e){e.on("click",function(e){var t,n;"ready"===this._state&&(!(n=this.seriesModel.get("nodeClick",!0))||(t=this.findTarget(e.offsetX,e.offsetY))&&((e=t.node).getLayout().isLeafRoot?this._rootToNode(t):"zoomToNode"===n?this._zoomToNode(t):"link"===n&&(e=(n=e.hostTree.data.getItemModel(e.dataIndex)).get("link",!0),n=n.get("target",!0)||"blank",e&&h(e,n))))},this)},_renderBreadcrumb:function(t,e,n){n=n||((n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||{node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new r(this.group))).render(t,e,n.node,d(function(e){"animating"!==this._state&&(l.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=m(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(i,r){var o;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(e){var t=this._storage.background[e.getRawIndex()];if(t){var n=t.transformCoordToLocal(i,r),t=t.shape;if(!(t.x<=n[0]&&n[0]<=t.x+t.width&&t.y<=n[1]&&n[1]<=t.y+t.height))return!1;o={node:e,offsetX:n[0],offsetY:n[1]}}},this),o}});function m(){return{nodeGroup:[],background:[],content:[]}}function g(c,l,u,h,d,t,p,e,n,i){if(p){var f=p.getLayout(),r=c.getData();if(r.setItemGraphicEl(p.dataIndex,null),f&&f.isInView){var s=f.width,m=f.height,g=f.borderWidth,v=f.invisible,y=p.getRawIndex(),x=e&&e.getRawIndex(),o=p.viewChildren,b=f.upperHeight,e=o&&o.length,_=p.getModel("itemStyle"),w=p.getModel("emphasis.itemStyle"),o=a("nodeGroup",I);if(o){if(n.add(o),o.attr("position",[f.x||0,f.y||0]),o.__tmNodeWidth=s,o.__tmNodeHeight=m,f.isAboveViewRoot)return o;var C=p.getModel(),n=a("background",O,i,1);return n&&function(e,t,n){{var i,r,o,a;t.dataIndex=p.dataIndex,t.seriesIndex=c.seriesIndex,t.setShape({x:0,y:0,width:s,height:m}),v?S(t):(t.invisible=!1,a=p.getVisual("borderColor",!0),i=w.get("borderColor"),(r=T(_)).fill=a,(o=z(w)).fill=i,n?A(r,o,a,a=s-2*g,b,{x:g,y:0,width:a,height:b}):r.text=o.text=null,t.setStyle(r),D.setElementHoverStyle(t,o))}e.add(t)}(o,n,e&&f.upperLabelHeight),e?(D.isHighDownDispatcher(o)&&D.setAsHighDownDispatcher(o,!1),n&&(D.setAsHighDownDispatcher(n,!0),r.setItemGraphicEl(p.dataIndex,n))):((i=a("content",O,i,2))&&function(e,t){t.dataIndex=p.dataIndex,t.seriesIndex=c.seriesIndex;var n=Math.max(s-2*g,0),i=Math.max(m-2*g,0);{var r,o,a;t.culling=!0,t.setShape({x:g,y:g,width:n,height:i}),v?S(t):(t.invisible=!1,r=p.getVisual("color",!0),(o=T(_)).fill=r,a=z(w),A(o,a,r,n,i),t.setStyle(o),D.setElementHoverStyle(t,a))}e.add(t)}(o,i),n&&D.isHighDownDispatcher(n)&&D.setAsHighDownDispatcher(n,!1),D.setAsHighDownDispatcher(o,!0),r.setItemGraphicEl(p.dataIndex,o)),o}}}function S(e){e.invisible||t.push(e)}function A(e,t,n,i,r,o){var a=C.get("name"),s=C.getModel(o?P:N),l=C.getModel(o?E:L),u=s.getShallow("show");D.setLabelStyle(e,t,s,l,{defaultText:u?a:null,autoColor:n,isRectText:!0,labelFetcher:c,labelDataIndex:p.dataIndex,labelProp:o?"upperLabel":"label"}),M(e,o,f),M(t,o,f),o&&(e.textRect=k.clone(o)),e.truncate=u&&s.get("ellipsis")?{outerWidth:i,outerHeight:r,minChar:2}:null}function M(e,t,n){var i=e.text;!t&&n.isLeafRoot&&null!=i&&(n=c.get("drillDownIcon",!0),e.text=n?n+" "+i:i)}function a(e,t,n,i){var r,o,a=null!=x&&u[e][x],s=d[e];return a?(u[e][x]=null,r=a,o=e,(s[y]={}).old="nodeGroup"===o?r.position.slice():k.extend({},r.shape)):v||((a=new t({z:function(e,t){t=e*H+t;return(t-1)/t}(n,i)})).__tmDepth=n,function(e,t){var n=e[y]={},i=p.parentNode;{var r;!i||h&&"drillDown"!==h.direction||(e=r=0,i=d.background[i.getRawIndex()],!h&&i&&i.old&&(r=i.old.width,e=i.old.height),n.old="nodeGroup"===t?[0,e]:{x:r,y:e,width:0,height:0})}n.fadein="nodeGroup"!==t}(s,a.__tmStorageName=e)),l[e][y]=a}}e.exports=i},function(e,t,n){var _=n(6),w=n(15),C=n(1),S=n(84).wrapTreePathInfo,A=5;function i(e){this.group=new _.Group,e.add(this.group)}i.prototype={constructor:i,render:function(e,t,n,i){var r,o,a=e.getModel("breadcrumb"),s=this.group;s.removeAll(),a.get("show")&&n&&(o=(r=a.getModel("itemStyle")).getModel("textStyle"),a={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]},this._prepare(n,a,o),this._renderContent(e,a,r,o,i),w.positionElement(s,a.pos,a.box))},_prepare:function(e,t,n){for(var i=e;i;i=i.parentNode){var r=i.getModel().get("name"),o=n.getTextRect(r),o=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=o+8,t.renderList.push({node:i,text:r,width:o})}},_renderContent:function(e,t,n,i,r){for(var o,a,s,l,u,c=0,h=t.emptyItemWidth,d=e.get("breadcrumb.height"),p=w.getAvailableSize(t.pos,t.box),f=t.totalWidth,m=t.renderList,g=m.length-1;0<=g;g--){var v=m[g],y=v.node,x=v.width,b=v.text;f>p.width&&(f-=x-h,x=h,b=null);v=new _.Polygon({shape:{points:(o=c,a=0,s=x,l=d,u=g===m.length-1,v=void 0,v=[[u?o:o-A,a],[o+s,a],[o+s,a+l],[u?o:o-A,a+l]],0===g||v.splice(2,0,[o+s+A,a+l/2]),u||v.push([o,a+l/2]),v)},style:C.defaults(n.getItemStyle(),{lineJoin:"bevel",text:b,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:C.curry(r,y)});this.group.add(v),b=e,y=y,v.eventData={componentType:"series",componentSubType:"treemap",componentIndex:b.componentIndex,seriesIndex:b.componentIndex,seriesName:b.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:y&&y.dataIndex,name:y&&y.name},treePathInfo:y&&S(y,b)},c+=x+8}},remove:function(){this.group.removeAll()}},e.exports=i},function(e,t,n){var l=n(1);t.createWrap=function(){var o,a=[],s={};return{add:function(e,t,n,i,r){return l.isString(i)&&(r=i,i=0),!s[e.id]&&(s[e.id]=1,a.push({el:e,target:t,time:n,delay:i,easing:r}),!0)},done:function(e){return o=e,this},start:function(){for(var e=a.length,t=0,n=a.length;t<n;t++){var i=a[t];i.el.animateTo(i.target,i.time,i.delay,i.easing,r)}return this;function r(){--e||(a.length=0,s={},o&&o())}}}}},function(e,t,n){function i(){}for(var r=n(3),o=n(84),a=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<a.length;s++)r.registerAction({type:a[s],update:"updateView"},i);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,e){e.eachComponent({mainType:"series",subType:"treemap",query:r},function(e,t){var n=o.retrieveTargetInfo(r,["treemapZoomToNode","treemapRootToNode"],e);{var i;n&&((i=e.getViewRoot())&&(r.direction=o.aboveViewRoot(i,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node))}})})},function(e,t,n){var s=n(85),i=n(55),d=n(1),r=d.isArray,p="itemStyle";function f(n,i,e){var r=d.extend({},i),o=e.designatedVisualItemStyle;return d.each(["color","colorAlpha","colorSaturation"],function(e){o[e]=i[e];var t=n.get(e);(o[e]=null)!=t&&(r[e]=t)}),r}function m(e){var t=o(e,"color");if(t){var n=o(e,"colorAlpha"),e=o(e,"colorSaturation");return e&&(t=i.modifyHSL(t,null,null,e)),t=n?i.modifyAlpha(t,n):t}}function g(e,t){return null!=t?i.modifyHSL(t,null,null,e):null}function o(e,t){t=e[t];if(null!=t&&"none"!==t)return t}function v(e,t,n,i,r,o){if(o&&o.length){var a=l(t,"color")||null!=r.color&&"none"!==r.color&&(l(t,"colorAlpha")||l(t,"colorSaturation"));if(a){o=t.get("visualMin"),r=t.get("visualMax"),n=n.dataExtent.slice();null!=o&&o<n[0]&&(n[0]=o),null!=r&&r>n[1]&&(n[1]=r);t=t.get("colorMappingBy"),a={type:a.name,dataExtent:n,visual:a.range};"color"!==a.type||"index"!==t&&"id"!==t?a.mappingMethod="linear":(a.mappingMethod="category",a.loop=!0);a=new s(a);return a.__drColorMappingBy=t,a}}}function l(e,t){e=e.get(t);return r(e)&&e.length?{name:t,range:e}:null}function y(e,t,n,i,r,o){var a,s=d.extend({},t);return r&&(e="index"===(t="color"===(a=r.type)&&r.__drColorMappingBy)?i:"id"===t?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension")),s[a]=r.mapValueToVisual(e)),s}e.exports={seriesType:"treemap",reset:function(e,t,n,i){var r=e.getData().tree.root;r.isRemoved()||!function n(e,t,i,r){var o=e.getModel();var a=e.getLayout();if(!a||a.invisible||!a.isInView)return;var s=e.getModel(p);var l=f(s,t,r);var u=s.get("borderColor");var t=s.get("borderColorSaturation");var c;null!=t&&(c=m(l),u=g(t,c));e.setVisual("borderColor",u);var u=e.viewChildren;{var h;u&&u.length?(h=v(0,o,a,0,l,u),d.each(u,function(e,t){(e.depth>=i.length||e===i[e.depth])&&(t=y(o,l,e,t,h,r),n(e,t,i,r))})):(c=m(l),e.setVisual("color",c))}}(r,{},e.getViewRoot().getAncestors(),e)}}},function(e,t,n){var m=n(1),g=n(21),i=n(8),v=i.parsePercent,y=i.MAX_SAFE_INTEGER,x=n(15),b=n(84),w=Math.max,C=Math.min,_=m.retrieve,S=m.each,A=["itemStyle","borderWidth"],M=["itemStyle","gapWidth"],r=["upperLabel","show"],o=["upperLabel","height"];function T(e,t,n,i,r,o){var a=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l,o=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!o)return e.viewChildren=[];a=m.filter(a,function(e){return!e.isRemoved()}),r=a,(l=s)&&r.sort(function(e,t){var n="asc"===l?e.getValue()-t.getValue():t.getValue()-e.getValue();return 0==n?"asc"===l?e.dataIndex-t.dataIndex:t.dataIndex-e.dataIndex:n});var u=function(e,t,n){for(var i=0,r=0,o=t.length;r<o;r++)i+=t[r].getValue();var a=e.get("visualDimension");{var s;t&&t.length?"value"===a&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&s.reverse()):(s=[1/0,-1/0],S(t,function(e){e=e.getValue(a);e<s[0]&&(s[0]=e),e>s[1]&&(s[1]=e)})):s=[NaN,NaN]}return{sum:i,dataExtent:s}}(t,a,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=function(e,t,n,i,r){if(!i)return n;for(var o=e.get("visibleMin"),a=r.length,s=a,l=a-1;0<=l;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(t,n,u.sum,s,a),0===u.sum)return e.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}return o&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:u.dataExtent},!0),a}function k(e,t,n){for(var i,r=0,o=1/0,a=0,s=e.length;a<s;a++)(i=e[a].getLayout().area)&&(i<o&&(o=i),r<i&&(r=i));var l=e.area*e.area,n=t*t*n;return l?w(n*r/l,l/(n*o)):1/0}function D(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=e.length;h<d;h++){var p=e[h],f={},m=c?p.getLayout().area/c:0,g=f[l[a]]=w(c-2*i,0),v=n[s[o]]+n[l[o]]-u,v=h===d-1||v<m?v:m,m=f[l[o]]=w(v-2*i,0);f[s[a]]=n[s[a]]+C(i,g/2),f[s[o]]=u+C(i,m/2),u+=v,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function I(e){return e.get(r)?e.get(o):0}e.exports={seriesType:"treemap",reset:function(e,t,n,i){var r,o=n.getWidth(),a=n.getHeight(),s=e.option,l=x.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=s.size||[],c=v(_(l.width,u[0]),o),h=v(_(l.height,u[1]),a),n=i&&i.type,u=b.retrieveTargetInfo(i,["treemapZoomToNode","treemapRootToNode"],e),i="treemapRender"===n||"treemapMove"===n?i.rootRect:null,d=e.getViewRoot(),p=b.getPathToRoot(d);"treemapMove"!==n&&(h="treemapZoomToNode"===n?function(e,t,n,i,r){var o,a=(t||{}).node,s=[i,r];if(!a||a===n)return s;var n=i*r,l=n*e.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var u=0,c=o.children,h=0,d=c.length;h<d;h++)u+=c[h].getValue();var p=a.getValue();if(0===p)return s;l*=u/p;var f=o.getModel(),p=f.get(A),f=Math.max(p,I(f));l+=4*p*p+(3*p+f)*Math.pow(l,.5),y<l&&(l=y),a=o}l<n&&(l=n);n=Math.pow(l/n,.5);return[i*n,r*n]}(e,u,d,c,h):i?[i.width,i.height]:[c,h],f=s.sort,f={squareRatio:s.squareRatio,sort:f=f&&"asc"!==f&&"desc"!==f?"desc":f,leafDepth:s.leafDepth},d.hostTree.clearLayouts(),r={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]},d.setLayout(r),function e(t,n,i,r){var o;var a;if(t.isRemoved())return;var s=t.getLayout();o=s.width;a=s.height;var l=t.getModel();var u=l.get(A);var c=l.get(M)/2;var h=I(l);var d=Math.max(u,h);var p=u-c;var s=d-c;l=t.getModel();t.setLayout({borderWidth:u,upperHeight:d,upperLabelHeight:h},!0);o=w(o-2*p,0);a=w(a-p-s,0);var h=o*a;var f=T(t,l,h,n,i,r);if(!f.length)return;var m={x:p,y:s,width:o,height:a};var g=C(o,a);var v=1/0;var y=[];y.area=0;for(var x=0,b=f.length;x<b;){var _=f[x];y.push(_),y.area+=_.getLayout().area;var _=k(y,g,n.squareRatio);v=_<=v?(x++,_):(y.area-=y.pop().getLayout().area,D(y,g,m,c,!1),g=C(m.width,m.height),1/(y.length=y.area=0))}y.length&&D(y,g,m,c,!0);i||null!=(l=l.get("childrenVisibleMin"))&&h<l&&(i=!0);for(var x=0,b=f.length;x<b;x++)e(f[x],n,i,r+1)}(d,f,!1,0),r=d.getLayout(),S(p,function(e,t){t=(p[t+1]||d).getValue();e.setLayout(m.extend({dataExtent:[t,t],borderWidth:0,upperHeight:0},r))}));var f=e.getData().tree.root;f.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;t=n.node,n=t.getLayout();if(!n)return i;var r=[n.width/2,n.height/2],o=t;for(;o;){var a=o.getLayout();r[0]+=a.x,r[1]+=a.y,o=o.parentNode}return{x:e.width/2-r[0],y:e.height/2-r[1]}}(l,i,u),!0),e.setLayoutInfo(l),function t(e,n,i,r,o){var a=e.getLayout();var s=i[o];var l=s&&s===e;if(s&&!l||o===i.length&&e!==r)return;e.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0);var u=new g(n.x-a.x,n.y-a.y,n.width,n.height);S(e.viewChildren||[],function(e){t(e,u,i,r,o+1)})}(f,new g(-l.x,-l.y,o,a),p,d,0)}}},function(e,t,n){var i=n(3);n(606),n(608),n(611);var r=n(612),o=n(83),a=n(613),s=n(614),l=n(615),u=n(616),c=n(617),n=n(619);i.registerProcessor(r),i.registerVisual(o("graph","circle",null)),i.registerVisual(a),i.registerVisual(s),i.registerLayout(l),i.registerLayout(i.PRIORITY.VISUAL.POST_CHART_LAYOUT,u),i.registerLayout(c),i.registerCoordinateSystem("graphView",{create:n})},function(e,t,n){var i=n(3),r=n(47),s=n(1),o=n(10).defaultEmphasis,l=n(26),u=n(17).encodeHTML,c=n(359),a=n(131),n=n(162),h=n.initCurvenessList,d=n.createEdgeMapForCurveness,p=i.extendSeriesModel({type:"series.graph",init:function(e){p.superApply(this,"init",arguments);var t=this;function n(){return t._categoriesData}this.legendVisualProvider=new a(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){p.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){p.superApply(this,"mergeDefaultAndTheme",arguments),o(e,["edgeLabel"],["show"])},getInitialData:function(e,o){var t=e.edges||e.links||[],e=e.data||e.nodes||[],a=this;if(e&&t){h(this);t=c(e,t,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e){var t=a._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var e=a.getModel("edgeLabel"),n=new l({label:e.option},e.parentModel,o),e=a.getModel("emphasis.edgeLabel"),i=new l({emphasis:{label:e.option}},e.parentModel,o);function r(e){return(e=this.parsePath(e))&&"label"===e[0]?n:e&&"emphasis"===e[0]&&"label"===e[1]?i:this.parentModel}t.wrapMethod("getItemModel",function(e){return e.customizeGetParent(r),e})});return s.each(t.edges,function(e){d(e.node1,e.node2,this,e.dataIndex)},this),t.data}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,n){if("edge"!==n)return p.superApply(this,"formatTooltip",arguments);var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),i=i.getName(o.node2.dataIndex),o=[];return null!=a&&o.push(a),null!=i&&o.push(i),o=u(o.join(" > ")),r.value&&(o+=" : "+u(r.value)),o},_updateCategoriesData:function(){var e=s.map(this.option.categories||[],function(e){return null!=e.value?e:s.extend({value:0},e)}),t=new r(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return p.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,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:{label:{show:!0}}}});e.exports=p},function(e,t,n){n(14).__DEV__;var i=n(1),r=n(60).enableClassCheck;function c(e){return"_EC_"+e}function o(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData}n=o.prototype;function h(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function a(e,t,n){this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}n.type="graph",n.isDirected=function(){return this._directed},n.addNode=function(e,t){var n=this._nodesMap;if(!n[c(e=null==e?""+t:""+e)]){t=new h(e,t);return(t.hostGraph=this).nodes.push(t),n[c(e)]=t}},n.getNodeByIndex=function(e){e=this.data.getRawIndex(e);return this.nodes[e]},n.getNodeById=function(e){return this._nodesMap[c(e)]},n.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if("number"==typeof e&&(e=this.nodes[e]),"number"==typeof t&&(t=this.nodes[t]),h.isInstance(e)||(e=i[c(e)]),h.isInstance(t)||(t=i[c(t)]),e&&t){i=e.id+"-"+t.id,n=new a(e,t,n);return(n.hostGraph=this)._directed&&(e.outEdges.push(n),t.inEdges.push(n)),e.edges.push(n),e!==t&&t.edges.push(n),this.edges.push(n),r[i]=n}},n.getEdgeByIndex=function(e){e=this.edgeData.getRawIndex(e);return this.edges[e]},n.getEdge=function(e,t){h.isInstance(e)&&(e=e.id),h.isInstance(t)&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},n.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r<i;r++)0<=n[r].dataIndex&&e.call(t,n[r],r)},n.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r<i;r++)0<=n[r].dataIndex&&0<=n[r].node1.dataIndex&&0<=n[r].node2.dataIndex&&e.call(t,n[r],r)},n.breadthFirstTraverse=function(e,t,n,i){if(t=!h.isInstance(t)?this._nodesMap[c(t)]:t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null))for(var a=[t];a.length;)for(var s=a.shift(),l=s[r],o=0;o<l.length;o++){var u=l[o],u=u.node1===s?u.node2:u.node1;if(!u.__visited){if(e.call(i,u,s))return;a.push(u),u.__visited=!0}}}},n.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r;t.filterSelf(function(e){e=i[t.getRawIndex(e)];return 0<=e.node1.dataIndex&&0<=e.node2.dataIndex});for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r},n.clone=function(){for(var e=new o(this._directed),t=this.nodes,n=this.edges,i=0;i<t.length;i++)e.addNode(t[i].id,t[i].dataIndex);for(i=0;i<n.length;i++){var r=n[i];e.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return e},h.prototype={constructor:h,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)}},a.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)};n=function(n,i){return{getValue:function(e){var t=this[n][i];return t.get(t.getDimension(e||"value"),this.dataIndex)},setVisual:function(e,t){0<=this.dataIndex&&this[n][i].setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this[n][i].getItemVisual(this.dataIndex,e,t)},setLayout:function(e,t){0<=this.dataIndex&&this[n][i].setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this[n][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][i].getRawIndex(this.dataIndex)}}};i.mixin(h,n("hostGraph","data")),i.mixin(a,n("hostGraph","edgeData")),o.Node=h,o.Edge=a,r(h),r(a),e.exports=o},function(e,t,n){var i=n(3),o=n(1),a=n(129),s=n(214),l=n(134),u=n(209),c=n(161).onIrrelevantElement,f=n(6),m=n(610),g=n(216).getNodeGlobalScale,v="__focusNodeAdjacency",y="__unfocusNodeAdjacency",h=["itemStyle","opacity"],d=["lineStyle","opacity"];function p(e,t){var n=e.getVisual("opacity");return null!=n?n:e.getModel().get(t)}function x(e,t,n){var i=e.getGraphicEl(),r=p(e,t);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse(function(e){var t;e.isGroup||(t=e.lineLabelOriginalOpacity,e.setStyle("opacity",t=null==t||null!=n?r:t))})}function b(e,t){var n=p(e,t),e=e.getGraphicEl();e.traverse(function(e){e.isGroup||e.setStyle("opacity",n)}),e.highlight&&e.highlight()}i=i.extendChartView({type:"graph",init:function(e,t){var n=new a,i=new s,r=this.group;this._controller=new l(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(r,e,o){var a=this,t=r.coordinateSystem;this._model=r;var n=this._symbolDraw,i=this._lineDraw,s=this.group;"view"===t.type&&(t={position:t.position,scale:t.scale},this._firstRender?s.attr(t):f.updateProps(s,t,r)),m(r.getGraph(),g(r));var l=r.getData();n.updateData(l);n=r.getEdgeData();i.updateData(n),this._updateNodeAndLinkScale(),this._updateController(r,e,o),clearTimeout(this._layoutTimeout);var u=r.forceLayout,c=r.get("force.layoutAnimation");u&&this._startForceLayoutIteration(u,c),l.eachItemGraphicEl(function(e,t){var n=l.getItemModel(t);e.off("drag").off("dragend");var i=n.get("draggable");i&&e.on("drag",function(){u&&(u.warmUp(),this._layouting||this._startForceLayoutIteration(u,c),u.setFixed(t),l.setItemLayout(t,e.position))},this).on("dragend",function(){u&&u.setUnfixed(t)},this),e.setDraggable(i&&u),e[v]&&e.off("mouseover",e[v]),e[y]&&e.off("mouseout",e[y]),n.get("focusNodeAdjacency")&&(e.on("mouseover",e[v]=function(){a._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:r.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[y]=function(){a._dispatchUnfocus(o)}))},this),l.graph.eachEdge(function(e){var t=e.getGraphicEl();t[v]&&t.off("mouseover",t[v]),t[y]&&t.off("mouseout",t[y]),e.getModel().get("focusNodeAdjacency")&&(t.on("mouseover",t[v]=function(){a._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:r.id,edgeDataIndex:e.dataIndex})}),t.on("mouseout",t[y]=function(){a._dispatchUnfocus(o)}))});var h="circular"===r.get("layout")&&r.get("circular.rotateLabel"),d=l.getLayout("cx"),p=l.getLayout("cy");l.eachItemGraphicEl(function(e,t){var n=l.getItemModel(t).get("label.rotate")||0,i=e.getSymbolPath();h?(e=l.getItemLayout(t),(t=Math.atan2(e[1]-p,e[0]-d))<0&&(t=2*Math.PI+t),(e=e[0]<d)&&(t-=Math.PI),f.modifyLabelStyle(i,{textRotation:-t,textPosition:e=e?"left":"right",textOrigin:"center"},{textPosition:e})):f.modifyLabelStyle(i,{textRotation:n*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(e,t){var n=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){n._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:n._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,n,i){var r=e.getData().graph,e=i.dataIndex,i=i.edgeDataIndex,e=r.getNodeByIndex(e),i=r.getEdgeByIndex(i);(e||i)&&(r.eachNode(function(e){x(e,h,.1)}),r.eachEdge(function(e){x(e,d,.1)}),e&&(b(e,h),o.each(e.edges,function(e){e.dataIndex<0||(b(e,d),b(e.node1,h),b(e.node2,h))})),i&&(b(i,d),b(i.node1,h),b(i.node2,h)))},unfocusNodeAdjacency:function(e,t,n,i){e=e.getData().graph;e.eachNode(function(e){x(e,h)}),e.eachEdge(function(e){x(e,d)})},_startForceLayoutIteration:function(e,n){var i=this;!function t(){e.step(function(e){i.updateLayout(i._model),(i._layouting=!e)&&(n?i._layoutTimeout=setTimeout(t,16):t())})}()},_updateController:function(r,e,o){var t=this._controller,n=this._controllerHost,a=this.group;t.setPointerChecker(function(e,t,n){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(t,n)&&!c(e,o,r)}),"view"===r.coordinateSystem.type?(t.enable(r.get("roam")),n.zoomLimit=r.get("scaleLimit"),n.zoom=r.coordinateSystem.getZoom(),t.off("pan").off("zoom").on("pan",function(e){u.updateViewOnPan(n,e.dx,e.dy),o.dispatchAction({seriesId:r.id,type:"graphRoam",dx:e.dx,dy:e.dy})}).on("zoom",function(e){u.updateViewOnZoom(n,e.scale,e.originX,e.originY),o.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(),m(r.getGraph(),g(r)),this._lineDraw.updateLayout()},this)):t.disable()},_updateNodeAndLinkScale:function(){var e=this._model,t=e.getData(),e=g(e),n=[e,e];t.eachItemGraphicEl(function(e,t){e.attr("scale",n)})},updateLayout:function(e){m(e.getGraph(),g(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});e.exports=i},function(e,t,n){var i=n(6),r=n(20),o=i.Line.prototype,n=i.BezierCurve.prototype;function a(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}n=i.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){this[a(t)?"_buildPathLine":"_buildPathCurve"](e,t)},_buildPathLine:o.buildPath,_buildPathCurve:n.buildPath,pointAt:function(e){return this[a(this.shape)?"_pointAtLine":"_pointAtCurve"](e)},_pointAtLine:o.pointAt,_pointAtCurve:n.pointAt,tangentAt:function(e){var t=this.shape,e=a(t)?[t.x2-t.x1,t.y2-t.y1]:this._tangentAtCurve(e);return r.normalize(e,e)},_tangentAtCurve:n.tangentAt});e.exports=n},function(e,t,n){var i=n(65),f=n(20),m=n(216).getSymbolSize,g=[],v=[],y=[],x=i.quadraticAt,b=f.distSquare,_=Math.abs;function w(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1)g[0]=x(r[0],o[0],a[0],c),g[1]=x(r[1],o[1],a[1],c),(p=_(b(g,t)-l))<s&&(s=p,i=c);for(var h=0;h<32;h++){var d=i+u;v[0]=x(r[0],o[0],a[0],i),v[1]=x(r[1],o[1],a[1],i),y[0]=x(r[0],o[0],a[0],d),y[1]=x(r[1],o[1],a[1],d);var p=b(v,t)-l;if(_(p)<.01)break;d=b(y,t)-l;u/=2,p<0?0<=d?i+=u:i-=u:0<=d?i-=u:i+=u}return i}e.exports=function(e,l){var u=[],c=i.quadraticSubdivide,h=[[],[],[]],d=[[],[]],p=[];l/=2,e.eachEdge(function(e,t){var n=e.getLayout(),i=e.getVisual("fromSymbol"),r=e.getVisual("toSymbol");n.__original||(n.__original=[f.clone(n[0]),f.clone(n[1])],n[2]&&n.__original.push(f.clone(n[2])));var o,a,s=n.__original;null!=n[2]?(f.copy(h[0],s[0]),f.copy(h[1],s[2]),f.copy(h[2],s[1]),i&&"none"!==i&&(a=m(e.node1),o=w(h,s[0],a*l),c(h[0][0],h[1][0],h[2][0],o,u),h[0][0]=u[3],h[1][0]=u[4],c(h[0][1],h[1][1],h[2][1],o,u),h[0][1]=u[3],h[1][1]=u[4]),r&&"none"!==r&&(a=m(e.node2),o=w(h,s[1],a*l),c(h[0][0],h[1][0],h[2][0],o,u),h[1][0]=u[1],h[2][0]=u[2],c(h[0][1],h[1][1],h[2][1],o,u),h[1][1]=u[1],h[2][1]=u[2]),f.copy(n[0],h[0]),f.copy(n[1],h[2]),f.copy(n[2],h[1])):(f.copy(d[0],s[0]),f.copy(d[1],s[1]),f.sub(p,d[1],d[0]),f.normalize(p,p),i&&"none"!==i&&(a=m(e.node1),f.scaleAndAdd(d[0],d[0],p,a*l)),r&&"none"!==r&&(a=m(e.node2),f.scaleAndAdd(d[1],d[1],p,-a*l)),f.copy(n[0],d[0]),f.copy(n[1],d[1]))})}},function(e,t,n){var i=n(3),r=n(210).updateCenterAndZoom;n(360);i.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(n,e){e.eachComponent({mainType:"series",query:n},function(e){var t=e.coordinateSystem,t=r(t,n);e.setCenter&&e.setCenter(t.center),e.setZoom&&e.setZoom(t.zoom)})})},function(e,t){e.exports=function(e){var o=e.findComponents({mainType:"legend"});o&&o.length&&e.eachSeriesByType("graph",function(e){var t=e.getCategoriesData(),i=e.getGraph().data,r=t.mapArray(t.getName);i.filterSelf(function(e){var t=i.getItemModel(e).getShallow("category");if(null!=t){"number"==typeof t&&(t=r[t]);for(var n=0;n<o.length;n++)if(!o[n].isSelected(t))return!1}return!0})},this)}},function(e,t){e.exports=function(e){var u={};e.eachSeriesByType("graph",function(a){var s=a.getCategoriesData(),r=a.getData(),l={};s.each(function(e){var t=s.getName(e);l["ec-"+t]=e;var n=s.getItemModel(e),t=n.get("itemStyle.color")||a.getColorFromPalette(t,u);s.setItemVisual(e,"color",t);for(var i=["opacity","symbol","symbolSize","symbolKeepAspect"],r=0;r<i.length;r++){var o=n.getShallow(i[r],!0);null!=o&&s.setItemVisual(e,i[r],o)}}),s.count()&&r.each(function(e){var t=r.getItemModel(e).getShallow("category");if(null!=t){"string"==typeof t&&(t=l["ec-"+t]);for(var n=["color","opacity","symbol","symbolSize","symbolKeepAspect"],i=0;i<n.length;i++)null==r.getItemVisual(e,n[i],!0)&&r.setItemVisual(e,n[i],s.getItemVisual(t,n[i]))}})})}},function(e,t){function u(e){return e=!(e instanceof Array)?[e,e]:e}e.exports=function(e){e.eachSeriesByType("graph",function(e){var o=e.getGraph(),a=e.getEdgeData(),t=u(e.get("edgeSymbol")),n=u(e.get("edgeSymbolSize")),s="lineStyle.color".split("."),l="lineStyle.opacity".split(".");a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",n&&n[0]),a.setVisual("toSymbolSize",n&&n[1]),a.setVisual("color",e.get(s)),a.setVisual("opacity",e.get(l)),a.each(function(e){var t=a.getItemModel(e),n=o.getEdgeByIndex(e),i=u(t.getShallow("symbol",!0)),e=u(t.getShallow("symbolSize",!0)),r=t.get(s),t=t.get(l);switch(r){case"source":r=n.node1.getVisual("color");break;case"target":r=n.node2.getVisual("color")}i[0]&&n.setVisual("fromSymbol",i[0]),i[1]&&n.setVisual("toSymbol",i[1]),e[0]&&n.setVisual("fromSymbolSize",e[0]),e[1]&&n.setVisual("toSymbolSize",e[1]),n.setVisual("color",r),n.setVisual("opacity",t)})})}},function(e,t,n){var c=n(1).each,n=n(361),h=n.simpleLayout,d=n.simpleLayoutEdge;e.exports=function(e,t){e.eachSeriesByType("graph",function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];c(n.dimensions,function(e){r=r.concat(i.mapDimension(e,!0))});for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}d(i.graph,e)}else t&&"none"!==t||h(e)})}},function(e,t,n){var i=n(362).circularLayout;e.exports=function(e){e.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&i(e,"symbolSize")})}},function(e,t,n){var f=n(618).forceLayout,m=n(361).simpleLayout,g=n(362).circularLayout,v=n(8).linearMap,y=n(20),x=n(1),b=n(162).getCurvenessForEdge;e.exports=function(e){e.eachSeriesByType("graph",function(r){var h,d,p,e,i,o,a,s,l,t,n,u,c=r.coordinateSystem;c&&"view"!==c.type||("force"===r.get("layout")?(h=r.preservedPoints||{},d=r.getGraph(),p=d.data,t=d.edgeData,e=(n=r.getModel("force")).get("initLayout"),r.preservedPoints?p.each(function(e){var t=p.getId(e);p.setItemLayout(e,h[t]||[NaN,NaN])}):e&&"none"!==e?"circular"===e&&g(r,"value"):m(r),i=p.getDataExtent("value"),o=t.getDataExtent("value"),a=n.get("repulsion"),s=n.get("edgeLength"),x.isArray(a)||(a=[a,a]),s=[(s=!x.isArray(s)?[s,s]:s)[1],s[0]],l=p.mapArray("value",function(e,t){var n=p.getItemLayout(t),e=v(e,i,a);return{w:e=isNaN(e)?(a[0]+a[1])/2:e,rep:e,fixed:p.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),t=t.mapArray("value",function(e,t){var n=d.getEdgeByIndex(t),i=v(e,o,s);isNaN(i)&&(i=(s[0]+s[1])/2);e=n.getModel(),t=x.retrieve3(e.get("lineStyle.curveness"),-b(n,r,t,!0),0);return{n1:l[n.node1.dataIndex],n2:l[n.node2.dataIndex],d:i,curveness:t,ignoreForceLayout:e.get("ignoreForceLayout")}}),c=(c=r.coordinateSystem).getBoundingRect(),n=f(l,t,{rect:c,gravity:n.get("gravity"),friction:n.get("friction")}),u=n.step,n.step=function(c){for(var e=0,t=l.length;e<t;e++)l[e].fixed&&y.copy(l[e].p,d.getNodeByIndex(e).getLayout());u(function(e,t,n){for(var i=0,r=e.length;i<r;i++)e[i].fixed||d.getNodeByIndex(i).setLayout(e[i].p),h[p.getId(i)]=e[i].p;for(i=0,r=t.length;i<r;i++){var o=t[i],a=d.getEdgeByIndex(i),s=o.n1.p,l=o.n2.p,u=a.getLayout();(u=u?u.slice():[])[0]=u[0]||[],u[1]=u[1]||[],y.copy(u[0],s),y.copy(u[1],l),+o.curveness&&(u[2]=[(s[0]+l[0])/2-(s[1]-l[1])*o.curveness,(s[1]+l[1])/2-(l[0]-s[0])*o.curveness]),a.setLayout(u)}c&&c(n)})},r.forceLayout=n,r.preservedPoints=h,n.step()):r.forceLayout=null)})}},function(e,t,n){var v=n(20),y=v.scaleAndAdd;t.forceLayout=function(d,p,e){for(var t=e.rect,n=t.width,i=t.height,f=[t.x+n/2,t.y+i/2],m=null==e.gravity?.1:e.gravity,r=0;r<d.length;r++){var o=d[r];o.p||(o.p=v.create(n*(Math.random()-.5)+f[0],i*(Math.random()-.5)+f[1])),o.pp=v.clone(o.p),o.edges=null}var a=null==e.friction?.6:e.friction,g=a;return{warmUp:function(){g=.8*a},setFixed:function(e){d[e].fixed=!0},setUnfixed:function(e){d[e].fixed=!1},step:function(e){for(var t=[],n=d.length,i=0;i<p.length;i++){var r=p[i];r.ignoreForceLayout||(o=r.n1,l=r.n2,v.sub(t,l.p,o.p),s=v.len(t)-r.d,r=l.w/(o.w+l.w),isNaN(r)&&(r=0),v.normalize(t,t),o.fixed||y(o.p,o.p,t,r*s*g),l.fixed||y(l.p,l.p,t,-(1-r)*s*g))}for(i=0;i<n;i++)(c=d[i]).fixed||(v.sub(t,f,c.p),y(c.p,c.p,t,m*g));for(i=0;i<n;i++)for(var o=d[i],a=i+1;a<n;a++){var s,l=d[a];v.sub(t,l.p,o.p),0===(s=v.len(t))&&(v.set(t,Math.random()-.5,Math.random()-.5),s=1);var u=(o.rep+l.rep)/s/s;o.fixed||y(o.pp,o.pp,t,u),l.fixed||y(l.pp,l.pp,t,-u)}for(var c,h=[],i=0;i<n;i++)(c=d[i]).fixed||(v.sub(h,c.p,c.pp),y(c.p,c.p,h,g),v.copy(c.pp,c.p));g*=.992,e&&e(d,p,g<.01)}}}},function(e,t,n){var h=n(212),d=n(15).getLayoutRect,p=n(121);e.exports=function(e,u){var c=[];return e.eachSeriesByType("graph",function(e){var t,n,i,r,o,a,s,l=e.get("coordinateSystem");l&&"view"!==l||(i=(t=e.getData()).mapArray(function(e){e=t.getItemModel(e);return[+e.get("x"),+e.get("y")]}),p.fromPoints(i,n=[],o=[]),o[0]-n[0]==0&&(o[0]+=1,--n[0]),o[1]-n[1]==0&&(o[1]+=1,--n[1]),r=(o[0]-n[0])/(o[1]-n[1]),a=u,s=r,(l=(l=e).getBoxLayoutParams()).aspect=s,i=d(l,{width:a.getWidth(),height:a.getHeight()}),isNaN(r)&&(n=[i.x,i.y],o=[i.x+i.width,i.y+i.height]),s=o[0]-n[0],l=o[1]-n[1],a=i.width,r=i.height,(o=e.coordinateSystem=new h).zoomLimit=e.get("scaleLimit"),o.setBoundingRect(n[0],n[1],s,l),o.setViewRect(i.x,i.y,a,r),o.setCenter(e.get("center")),o.setZoom(e.get("zoom")),c.push(o))}),c}},function(e,t,n){var i=n(101),n=n(31).extend({type:"series.gauge",getInitialData:function(e,t){return i(this,["value"])},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,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}});e.exports=n},function(e,t,n){var f=n(622),P=n(6),i=n(56),n=n(8),E=n.parsePercent,H=n.round,m=n.linearMap;function z(e,t){return t&&("string"==typeof t?e=t.replace("{value}",null!=e?e:""):"function"==typeof t&&(e=t(e))),e}var y=2*Math.PI,i=i.extend({type:"gauge",render:function(e,t,n){this.group.removeAll();var i,r,o,a,s,l=e.get("axisLine.lineStyle.color"),s=(r=n,o=(i=e).get("center"),a=r.getWidth(),s=r.getHeight(),s=Math.min(a,s),{cx:E(o[0],r.getWidth()),cy:E(o[1],r.getHeight()),r:E(i.get("radius"),s/2)});this._renderMain(e,t,n,l,s)},dispose:function(){},_renderMain:function(e,t,n,i,r){for(var o=this.group,a=e.getModel("axisLine"),s=a.getModel("lineStyle"),l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=((m=-e.get("endAngle")/180*Math.PI)-u)%y,h=u,d=s.get("width"),p=a.get("show"),f=0;p&&f<i.length;f++){var m,g=Math.min(Math.max(i[f][0],0),1),g=new P.Sector({shape:{startAngle:h,endAngle:m=u+c*g,cx:r.cx,cy:r.cy,clockwise:l,r0:r.r-d,r:r.r},silent:!0});g.setStyle({fill:i[f][1]}),g.setStyle(s.getLineStyle(["color","borderWidth","borderColor"])),o.add(g),h=m}function v(e){if(e<=0)return i[0][1];for(var t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]}l||(a=u,u=m,m=a),this._renderTicks(e,t,n,v,r,u,m,l),this._renderPointer(e,t,n,v,r,u,m,l),this._renderTitle(e,t,n,v,r),this._renderDetail(e,t,n,v,r)},_renderTicks:function(e,t,n,i,r,o,a,s){for(var l=this.group,u=r.cx,c=r.cy,h=r.r,d=+e.get("min"),p=+e.get("max"),f=e.getModel("splitLine"),m=e.getModel("axisTick"),g=e.getModel("axisLabel"),v=e.get("splitNumber"),y=m.get("splitNumber"),x=E(f.get("length"),h),b=E(m.get("length"),h),_=o,w=(a-o)/v,C=w/y,S=f.getModel("lineStyle").getLineStyle(),A=m.getModel("lineStyle").getLineStyle(),M=0;M<=v;M++){var T,k,D,I=Math.cos(_),O=Math.sin(_);if(f.get("show")&&(D=new P.Line({shape:{x1:I*h+u,y1:O*h+c,x2:I*(h-x)+u,y2:O*(h-x)+c},style:S,silent:!0}),"auto"===S.stroke&&D.setStyle({stroke:i(M/v)}),l.add(D)),g.get("show")&&(T=z(H(M/v*(p-d)+d),g.get("formatter")),k=g.get("distance"),D=i(M/v),l.add(new P.Text({style:P.setTextStyle({},g,{text:T,x:I*(h-x-k)+u,y:O*(h-x-k)+c,textVerticalAlign:O<-.4?"top":.4<O?"bottom":"middle",textAlign:I<-.4?"left":.4<I?"right":"center"},{autoColor:D}),silent:!0}))),m.get("show")&&M!==v){for(var N=0;N<=y;N++){var I=Math.cos(_),O=Math.sin(_),L=new P.Line({shape:{x1:I*h+u,y1:O*h+c,x2:I*(h-b)+u,y2:O*(h-b)+c},silent:!0,style:A});"auto"===A.stroke&&L.setStyle({stroke:i((M+N/y)/v)}),l.add(L),_+=C}_-=C}else _+=w}},_renderPointer:function(n,e,t,r,o,i,a,s){var l,u,c,h,d=this.group,p=this._data;n.get("pointer.show")?(l=[+n.get("min"),+n.get("max")],u=[i,a],c=n.getData(),h=c.mapDimension("value"),c.diff(p).add(function(e){var t=new f({shape:{angle:i}});P.initProps(t,{shape:{angle:m(c.get(h,e),l,u,!0)}},n),d.add(t),c.setItemGraphicEl(e,t)}).update(function(e,t){t=p.getItemGraphicEl(t);P.updateProps(t,{shape:{angle:m(c.get(h,e),l,u,!0)}},n),d.add(t),c.setItemGraphicEl(e,t)}).remove(function(e){e=p.getItemGraphicEl(e);d.remove(e)}).execute(),c.eachItemGraphicEl(function(e,t){var n=c.getItemModel(t),i=n.getModel("pointer");e.setShape({x:o.cx,y:o.cy,width:E(i.get("width"),o.r),r:E(i.get("length"),o.r)}),e.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",r(m(c.get(h,t),l,[0,1],!0))),P.setHoverStyle(e,n.getModel("emphasis.itemStyle").getItemStyle())}),this._data=c):p&&p.eachItemGraphicEl(function(e){d.remove(e)})},_renderTitle:function(e,t,n,i,r){var o,a,s,l=e.getData(),u=l.mapDimension("value"),c=e.getModel("title");c.get("show")&&(s=c.get("offsetCenter"),o=r.cx+E(s[0],r.r),a=r.cy+E(s[1],r.r),s=+e.get("min"),r=+e.get("max"),u=e.getData().get(u,0),r=i(m(u,[s,r],[0,1],!0)),this.group.add(new P.Text({silent:!0,style:P.setTextStyle({},c,{x:o,y:a,text:l.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:r,forceRich:!0})})))},_renderDetail:function(e,t,n,i,r){var o,a,s,l=e.getModel("detail"),u=+e.get("min"),c=+e.get("max");l.get("show")&&(s=l.get("offsetCenter"),o=r.cx+E(s[0],r.r),a=r.cy+E(s[1],r.r),s=E(l.get("width"),r.r),r=E(l.get("height"),r.r),e=(e=e.getData()).get(e.mapDimension("value"),0),c=i(m(e,[u,c],[0,1],!0)),this.group.add(new P.Text({silent:!0,style:P.setTextStyle({},l,{x:o,y:a,text:z(e,l.get("formatter")),textWidth:isNaN(s)?null:s,textHeight:isNaN(r)?null:r,textAlign:"center",textVerticalAlign:"middle"},{autoColor:c,forceRich:!0})})))}});e.exports=i},function(e,t,n){n=n(24).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(r/3<=o?1:2),l=t.y-i(a)*o*(r/3<=o?1:2),a=t.angle-Math.PI/2;e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)}});e.exports=n},function(e,t,n){var i=n(3);n(364),n(632),n(633);n=n(634);i.registerVisual(n)},function(e,t,n){var r=n(1),o=n(10);e.exports=function(e){var t,n,i;(t=e).parallel||(n=!1,r.each(t.series,function(e){e&&"parallel"===e.type&&(n=!0)}),n&&(t.parallel=[{}])),i=e,e=o.normalizeToArray(i.parallelAxis),r.each(e,function(e){var t;r.isObject(e)&&(t=e.parallelIndex||0,(t=o.normalizeToArray(i.parallel)[t])&&t.parallelAxisDefault&&r.merge(e,t.parallelAxisDefault,!1))})}},function(e,t,n){var f=n(1),l=n(35),i=n(15),o=n(52),a=n(626),r=n(6),s=n(8),c=n(102),u=f.each,h=Math.min,d=Math.max,m=Math.floor,g=Math.ceil,v=s.round,p=Math.PI;function y(e,t,n){this._axesMap=f.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,n)}function x(e,t){return h(d(e,t[0]),t[1])}y.prototype={type:"parallel",constructor:y,_init:function(e,i,t){var n=e.dimensions,r=e.parallelAxisIndex;u(n,function(e,t){var n=r[t],t=i.getComponent("parallelAxis",n),e=this._axesMap.set(e,new a(e,o.createScaleByModel(t),[0,0],t.get("type"),n)),n="category"===e.type;e.onBand=n&&t.get("boundaryGap"),e.inverse=t.get("inverse"),(t.axis=e).model=t,e.coordinateSystem=t.coordinateSystem=this},this)},update:function(e,t){this._updateAxesFromSeries(this._model,e)},containPoint:function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],r=e[r];return n<=o&&o<=n+t.axisLength&&i<=r&&r<=i+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,i){i.eachSeries(function(e){var n;t.contains(e,i)&&(n=e.getData(),u(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(n,n.mapDimension(e)),o.niceScaleExtent(t.scale,t.model)},this))},this)},resize:function(e,t){this._rect=i.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e=this._model,t=this._rect,n=["x","y"],i=["width","height"],r=e.get("layout"),o="horizontal"===r?0:1,a=t[i[o]],s=[0,a],l=this.dimensions.length,u=x(e.get("axisExpandWidth"),s),c=x(e.get("axisExpandCount")||0,[0,l]),h=e.get("axisExpandable")&&3<l&&c<l&&1<c&&0<u&&0<a,d=e.get("axisExpandWindow");d?(p=x(d[1]-d[0],s),d[1]=d[0]+p):(p=x(u*(c-1),s),(d=[u*(e.get("axisExpandCenter")||m(l/2))-p/2])[1]=d[0]+p);e=(a-p)/(l-c);e<3&&(e=0);var p=[m(v(d[0]/u,1))+1,g(v(d[1]/u,1))-1],c=e/u*d[0];return{layout:r,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:a,axisBase:t[n[1-o]],axisLength:t[i[1-o]],axisExpandable:h,axisExpandWidth:u,axisCollapseWidth:e,axisExpandWindow:d,axisCount:l,winInnerIndices:p,axisExpandWindow0Pos:c}},_layoutAxes:function(){var o=this._rect,e=this._axesMap,t=this.dimensions,a=this._makeLayoutInfo(),s=a.layout;e.each(function(e){var t=[0,a.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])}),u(t,function(e,t){var n=(a.axisExpandable?function(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-e)*s,i=s);return{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}:function(e,t){t=t.layoutLength/(t.axisCount-1);return{position:t*e,axisNameAvailableWidth:t,axisLabelShow:!0}})(t,a),i={horizontal:{x:n.position,y:a.axisLength},vertical:{x:0,y:n.position}},r=[i[s].x+o.x,i[s].y+o.y],t={horizontal:p/2,vertical:0}[s],i=l.create();l.rotate(i,i,t),l.translate(i,i,r),this._axesLayout[e]={position:r,rotation:t,transform:i,axisNameAvailableWidth:n.axisNameAvailableWidth,axisLabelShow:n.axisLabelShow,nameTruncateMaxWidth:n.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];f.each(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;u<i;u++){if(l){for(var c="active",h=t.getValues(a,u),d=0,p=o.length;d<p;d++)if("inactive"===s[d].getActiveState(h[d])){c="inactive";break}}else c="normal";e(c,u)}},hasAxisBrushed:function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(e,t){t=this._axesLayout[t];return r.applyTransform([e,0],t.transform)},getAxisLayout:function(e){return f.clone(this._axesLayout[e])},getSlidedAxisExpandWindow:function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,e=this._model.get("axisExpandSlideTriggerArea"),n=null!=e[0];return u?(n&&u&&s<r*e[0]?(l="jump",a=s-r*e[2]):n&&u&&s>r*(1-e[0])?(l="jump",a=s-r*(1-e[2])):0<=(a=s-r*e[1])&&(a=s-r*(1-e[1]))<=0&&(a=0),(a*=t.axisExpandWidth/u)?c(a,i,o,"all"):l="none"):(r=i[1]-i[0],(i=[d(0,o[1]*s/r-r/2)])[1]=h(o[1],i[0]+r),i[0]=i[1]-r),{axisExpandWindow:i,behavior:l}}},e.exports=y},function(e,t,n){var i=n(1),o=n(68),n=function(e,t,n,i,r){o.call(this,e,t,n),this.type=i||"value",this.axisIndex=r};n.prototype={constructor:n,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},i.inherits(n,o),e.exports=n},function(e,t,n){var i=n(1),r=n(30);n(628);n=r.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",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},init:function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&i.merge(t,e,!0),this._initDimensions()},contains:function(e,t){e=e.get("parallelIndex");return null!=e&&t.getComponent("parallel",e)===this},setAxisExpand:function(t){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},_initDimensions:function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],e=i.filter(this.dependentModels.parallelAxis,function(e){return(e.get("parallelIndex")||0)===this.componentIndex},this);i.each(e,function(e){t.push("dim"+e.get("dim")),n.push(e.componentIndex)})}});e.exports=n},function(e,t,n){var i=n(1),r=n(30),o=n(96),a=n(156),s=n(8),n=n(100),r=r.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var t=this.activeIntervals=i.clone(e);if(t)for(var n=t.length-1;0<=n;n--)s.asc(t[n])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"}});i.merge(r.prototype,n),a("parallel",r,function(e,t){return t.type||(t.data?"category":"value")},{type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10}),e.exports=r},function(e,t,n){n(365),n(630),n(631)},function(e,t,n){n=n(3);n.registerAction({type:"axisAreaSelect",event:"axisAreaSelected"},function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),n.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(e){e.setAxisExpand(t)})})},function(e,t,n){var i=n(3),c=n(1),u=n(69),r=n(217),h=n(366),d=n(6),p=["axisLine","axisTickLabel","axisName"],o=i.extendComponentView({type:"parallelAxis",init:function(e,t){o.superApply(this,"init",arguments),(this._brushController=new r(t.getZr())).on("brush",c.bind(this._onBrush,this))},render:function(e,t,n,i){var r,o,a,s,l;a=e,o=t,(l=i)&&"axisAreaSelect"===l.type&&o.findComponents({mainType:"parallelAxis",query:l})[0]===a||(this.axisModel=e,this.api=n,this.group.removeAll(),r=this._axisGroup,this._axisGroup=new d.Group,this.group.add(this._axisGroup),e.get("show")&&(s=e,l=(o=t.getComponent("parallel",s.get("parallelIndex"))).coordinateSystem,t=(a=e.getAreaSelectStyle()).width,s=e.axis.dim,l=l.getAxisLayout(s),s=c.extend({strokeContainThreshold:t},l),l=new u(e,s),c.each(p,l.add,l),this._axisGroup.add(l.getGroup()),this._refreshBrushController(s,a,e,o,t,n),e=i&&!1===i.animation?null:e,d.groupTransition(r,this._axisGroup,e)))},_refreshBrushController:function(e,t,n,i,r,o){var a,s=n.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,.1*Math.abs(l)),r=d.BoundingRect.create({x:s[0],y:-r/2,width:l,height:r});r.x-=u,r.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:h.makeRectPanelClipPath(r),isTargetByCursor:h.makeRectIsTargetByCursor(r,o,i),getLinearBrushOtherExtent:h.makeLinearBrushOtherExtent(r,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers((a=(n=n).axis,c.map(n.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[a.dataToCoord(e[0],!0),a.dataToCoord(e[1],!0)]}})))},_onBrush:function(e,t){var n=this.axisModel,i=n.axis,e=c.map(e,function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]});!n.option.realtime!==t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:e})},dispose:function(){this._brushController.dispose()}});e.exports=o},function(e,t,n){var i=n(1),a=i.each,s=i.createHashMap,i=n(31),l=n(62),i=i.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var n,i,r,o=this.getSource();return i=this,(n=o).encodeDefine||(i=i.ecModel.getComponent("parallel",i.get("parallelIndex")))&&(r=n.encodeDefine=s(),a(i.dimensions,function(e){var t=+e.replace("dim","");r.set(e,t)})),l(o,this)},getRawIndicesByActiveState:function(n){var e=this.coordinateSystem,i=this.getData(),r=[];return e.eachActiveState(i,function(e,t){n===e&&r.push(i.getRawIndex(t))}),r},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.exports=i},function(e,t,n){var m=n(6),n=n(56),n=n.extend({type:"parallel",init:function(){this._dataGroup=new m.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(r,e,t,o){var n,i,a,s,l,u=this._dataGroup,c=r.getData(),h=this._data,d=r.coordinateSystem,p=d.dimensions,f=y(r);c.diff(h).add(function(e){x(v(c,u,e,p,d),c,e,f)}).update(function(e,t){var n=h.getItemGraphicEl(t),i=g(c,e,p,d);c.setItemGraphicEl(e,n);t=o&&!1===o.animation?null:r;m.updateProps(n,{shape:{points:i}},t,e),x(n,c,e,f)}).remove(function(e){e=h.getItemGraphicEl(e);u.remove(e)}).execute(),this._initialized||(this._initialized=!0,i=r,a=function(){setTimeout(function(){u.removeClipPath()})},s=(n=d).model,l=n.getRect(),n=new m.Rect({shape:{x:l.x,y:l.y,width:l.width,height:l.height}}),s="horizontal"===s.get("layout")?"width":"height",n.setShape(s,0),m.initProps(n,{shape:{width:l.width,height:l.height}},i,a),u.setClipPath(n)),this._data=c},incrementalPrepareRender:function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,o=r.dimensions,a=y(t),s=e.start;s<e.end;s++){var l=v(i,this._dataGroup,s,o,r);l.incremental=!0,x(l,i,s,a)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function g(e,t,n,i){for(var r,o=[],a=0;a<n.length;a++){var s=n[a],l=e.get(e.mapDimension(s),t);r=l,("category"===i.getAxis(s).type?null==r:null==r||isNaN(r))||o.push(i.dataToPoint(l,s))}return o}function v(e,t,n,i,r){r=g(e,n,i,r),r=new m.Polyline({shape:{points:r},silent:!0,z2:10});return t.add(r),e.setItemGraphicEl(n,r),r}function y(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),{lineStyle:e.getModel("lineStyle").getLineStyle(),smooth:null!=t?t:.3}}function x(e,t,n,i){var r=i.lineStyle;t.hasItemOption&&(r=t.getItemModel(n).getModel("lineStyle").getLineStyle()),e.useStyle(r);r=e.style;r.fill=null,r.stroke=t.getItemVisual(n,"color"),r.opacity=t.getItemVisual(n,"opacity"),i.smooth&&(e.shape.smooth=i.smooth)}e.exports=n},function(e,t){var l=["lineStyle","normal","opacity"];e.exports={seriesType:"parallel",reset:function(e,t,n){var i=e.getModel("itemStyle"),r=e.getModel("lineStyle"),o=t.get("color"),t=r.get("color")||i.get("color")||o[e.seriesIndex%o.length],r=e.get("inactiveOpacity"),i=e.get("activeOpacity"),o=e.getModel("lineStyle").getLineStyle(),a=e.coordinateSystem,e=e.getData(),s={normal:o.opacity,active:i,inactive:r};return e.setVisual("color",t),{progress:function(e,i){a.eachActiveState(i,function(e,t){var n=s[e];"normal"!==e||!i.hasItemOption||null!=(e=i.getItemModel(t).get(l,!0))&&(n=e),i.setItemVisual(t,"opacity",n)},e.start,e.end)}}}}},function(e,t,n){var i=n(31),s=n(359),o=n(17).encodeHTML,l=n(26),a=(n(14).__DEV__,i.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(e,t){for(var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels,o=this.levelModels={},a=0;a<r.length;a++)null!=r[a].depth&&0<=r[a].depth&&(o[r[a].depth]=new l(r[a],this,t));if(i&&n)return s(i,n,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e,i){return e.customizeGetParent(function(e){var t=this.parentModel,n=t.getData().getItemLayout(i).depth;return t.levelModels[n]||this.parentModel}),e}),t.wrapMethod("getItemModel",function(e,i){return e.customizeGetParent(function(e){var t=this.parentModel,n=t.getGraph().getEdgeByIndex(i).node1.getLayout().depth;return t.levelModels[n]||this.parentModel}),e})}).data},setNodePosition:function(e,t){e=this.option.data[e];e.localX=t[0],e.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,n){if("edge"===n){var i=this.getDataParams(e,n),r=i.data,r=r.source+" -- "+r.target;return i.value&&(r+=" : "+i.value),o(r)}if("node"!==n)return a.superCall(this,"formatTooltip",e,t);t=this.getGraph().getNodeByIndex(e).getLayout().value,n=this.getDataParams(e,n).data.name;return o(r=t?n+" : "+t:r)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},getDataParams:function(e,t){var n=a.superCall(this,"getDataParams",e,t);return null==n.value&&"node"===t&&(e=this.getGraph().getNodeByIndex(e).getLayout().value,n.value=e),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}));e.exports=a},function(e,t,n){var S=n(6),i=n(3),s=n(1),l=["itemStyle","opacity"],u=["emphasis","itemStyle","opacity"],c=["lineStyle","opacity"],h=["emphasis","lineStyle","opacity"];function o(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function d(e,t,n){var i=e.getGraphicEl(),r=o(e,t);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",r)})}function p(e,t){var n=o(e,t),e=e.getGraphicEl();e.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",n)}),e.highlight&&e.highlight()}var A=S.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),i=i.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(y,e,i){var t,n,r=this,o=y.getGraph(),x=this.group,a=y.layoutInfo,b=a.width,_=a.height,s=y.getData(),w=y.getData("edge"),C=y.get("orient");this._model=y,x.removeAll(),x.attr("position",[a.x,a.y]),o.eachEdge(function(e){var t=new A;t.dataIndex=e.dataIndex,t.seriesIndex=y.seriesIndex,t.dataType="edge";var n,i,r,o,a,s,l,u=e.getModel("lineStyle"),c=u.get("curveness"),h=e.node1.getLayout(),d=e.node1.getModel(),p=d.get("localX"),f=d.get("localY"),m=e.node2.getLayout(),g=e.node2.getModel(),v=g.get("localX"),d=g.get("localY"),g=e.getLayout();switch(t.shape.extent=Math.max(1,g.dy),g="vertical"===(t.shape.orient=C)?(n=(null!=p?p*b:h.x)+g.sy,i=(null!=f?f*_:h.y)+h.dy,r=(null!=v?v*b:m.x)+g.ty,a=n,s=i*(1-c)+(o=null!=d?d*_:m.y)*c,l=r,i*c+o*(1-c)):(n=(null!=p?p*b:h.x)+h.dx,i=(null!=f?f*_:h.y)+g.sy,a=n*(1-c)+(r=null!=v?v*b:m.x)*c,s=i,l=n*c+r*(1-c),o=(null!=d?d*_:m.y)+g.ty),t.setShape({x1:n,y1:i,x2:r,y2:o,cpx1:a,cpy1:s,cpx2:l,cpy2:g}),t.setStyle(u.getItemStyle()),t.style.fill){case"source":t.style.fill=e.node1.getVisual("color");break;case"target":t.style.fill=e.node2.getVisual("color")}S.setHoverStyle(t,e.getModel("emphasis.lineStyle").getItemStyle()),x.add(t),w.setItemGraphicEl(e.dataIndex,t)}),o.eachNode(function(e){var t=e.getLayout(),n=e.getModel(),i=n.get("localX"),r=n.get("localY"),o=n.getModel("label"),a=n.getModel("emphasis.label"),t=new S.Rect({shape:{x:null!=i?i*b:t.x,y:null!=r?r*_:t.y,width:t.dx,height:t.dy},style:n.getModel("itemStyle").getItemStyle()}),n=e.getModel("emphasis.itemStyle").getItemStyle();S.setLabelStyle(t.style,n,o,a,{labelFetcher:y,labelDataIndex:e.dataIndex,defaultText:e.id,isRectText:!0}),t.setStyle("fill",e.getVisual("color")),S.setHoverStyle(t,n),x.add(t),s.setItemGraphicEl(e.dataIndex,t),t.dataType="node"}),s.eachItemGraphicEl(function(e,n){var t=s.getItemModel(n);t.get("draggable")&&(e.drift=function(e,t){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=t,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:y.id,dataIndex:s.getRawIndex(n),localX:this.shape.x/b,localY:this.shape.y/_})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move"),e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),t.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:y.id,dataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))}),w.eachItemGraphicEl(function(e,t){t=w.getItemModel(t);e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),t.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:y.id,edgeDataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))}),!this._data&&y.get("animation")&&x.setClipPath((t=x.getBoundingRect(),n=y,a=function(){x.removeClipPath()},o=new S.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}}),S.initProps(o,{shape:{width:t.width+20}},n,a),o)),this._data=y.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,n,i){var r,o=e.getData(),a=o.graph,e=i.dataIndex,o=o.getItemModel(e),i=i.edgeDataIndex;null==e&&null==i||(r=a.getNodeByIndex(e),i=a.getEdgeByIndex(i),a.eachNode(function(e){d(e,l,.1)}),a.eachEdge(function(e){d(e,c,.1)}),r&&(p(r,u),"outEdges"===(o=o.get("focusNodeAdjacency"))?s.each(r.outEdges,function(e){e.dataIndex<0||(p(e,h),p(e.node2,u))}):"inEdges"===o?s.each(r.inEdges,function(e){e.dataIndex<0||(p(e,h),p(e.node1,u))}):"allEdges"===o&&s.each(r.edges,function(e){e.dataIndex<0||(p(e,h),e.node1!==r&&p(e.node1,u),e.node2!==r&&p(e.node2,u))})),i&&(p(i,h),p(i.node1,u),p(i.node2,u)))},unfocusNodeAdjacency:function(e,t,n,i){e=e.getGraph();e.eachNode(function(e){d(e,l)}),e.eachEdge(function(e){d(e,c)})}});e.exports=i},function(e,t,n){var i=n(3);n(360),i.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])})})},function(e,t,n){var c=n(15),w=n(1),h=n(10).groupData;function C(e){e=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=e.depth&&0<=e.depth}function d(e,l,u,c,h){var d="vertical"===h?"x":"y";w.each(e,function(e){var t,n;e.sort(function(e,t){return e.getLayout()[d]-t.getLayout()[d]});for(var i,r=0,o=e.length,a="vertical"===h?"dx":"dy",s=0;s<o;s++)0<(i=r-(n=e[s]).getLayout()[d])&&(t=n.getLayout()[d]+i,"vertical"===h?n.setLayout({x:t},!0):n.setLayout({y:t},!0)),r=n.getLayout()[d]+n.getLayout()[a]+l;if(0<(i=r-l-("vertical"===h?c:u)))for(t=n.getLayout()[d]-i,"vertical"===h?n.setLayout({x:t},!0):n.setLayout({y:t},!0),r=t,s=o-2;0<=s;--s)0<(i=(n=e[s]).getLayout()[d]+n.getLayout()[a]+l-r)&&(t=n.getLayout()[d]-i,"vertical"===h?n.setLayout({x:t},!0):n.setLayout({y:t},!0)),r=n.getLayout()[d]})}function p(e,t){return v(e.node2,t)*e.getValue()}function f(e,t){return v(e.node2,t)}function m(e,t){return v(e.node1,t)*e.getValue()}function g(e,t){return v(e.node1,t)}function v(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function y(e){return e.getValue()}function x(e,t,n){for(var i=0,r=e.length,o=-1;++o<r;){var a=+t.call(e,e[o],n);isNaN(a)||(i+=a)}return i}e.exports=function(e,u,t){e.eachSeriesByType("sankey",function(e){var t=e.get("nodeWidth"),n=e.get("nodeGap"),i=(s=e,l=u,c.getLayoutRect(s.getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()})),r=(e.layoutInfo=i).width,o=i.height,a=e.getGraph(),s=a.nodes,l=a.edges;i=s,w.each(i,function(e){var t=x(e.outEdges,y),n=x(e.inEdges,y),i=e.getValue()||0,i=Math.max(t,n,i);e.setLayout({value:i},!0)});a=0!==w.filter(s,function(e){return 0===e.getLayout().value}).length?0:e.get("layoutIterations"),i=e.get("orient"),e=e.get("nodeAlign");n=n,a=a,function(e,t,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<t.length;d++)s[d]=1;for(d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&u.push(e[d]);var p=-1;for(;u.length;){for(var f=0;f<u.length;f++){var m=u[f],g=m.hostGraph.data.getRawDataItem(m.dataIndex),v=null!=g.depth&&0<=g.depth;v&&g.depth>p&&(p=g.depth),m.setLayout({depth:v?g.depth:h},!0),"vertical"===o?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var y=0;y<m.outEdges.length;y++){var x=m.outEdges[y],b=t.indexOf(x);s[b]=0;b=x.node2,x=e.indexOf(b);0==--l[x]&&c.indexOf(b)<0&&c.push(b)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var _=h-1<p?p:h-1;a&&"left"!==a&&function(e,t,n){if("right"===t){for(var i=[],r=e,o=0;r.length;){for(var a=0;a<r.length;a++){var s=r[a];s.setLayout({skNodeHeight:o},!0);for(var l=0;l<s.inEdges.length;l++){var u=s.inEdges[l];i.indexOf(u.node1)<0&&i.push(u.node1)}}r=i,i=[],++o}w.each(e,function(e){C(e)||e.setLayout({depth:Math.max(0,n-e.getLayout().skNodeHeight)},!0)})}else"justify"===t&&function(e,t){w.each(e,function(e){C(e)||e.outEdges.length||e.setLayout({depth:t},!0)})}(e,n)}(e,a,_);!function(e,n,i){w.each(e,function(e){var t=e.getLayout().depth*n;"vertical"===i?e.setLayout({y:t},!0):e.setLayout({x:t},!0)})}(e,"vertical"===o?(r-n)/_:(i-n)/_,o)}(s=s,l=l,t,r=r,o=o,i=i,e),function(e,t,n,i,r,o,a){var s=function(e,t){var n=[],i="vertical"===t?"y":"x",r=h(e,function(e){return e.getLayout()[i]});return r.keys.sort(function(e,t){return e-t}),w.each(r.keys,function(e){n.push(r.buckets.get(e))}),n}(e,a);(function(e,t,i,r,o,a){var s=1/0;w.each(e,function(e){var t=e.length,n=0;w.each(e,function(e){n+=e.getLayout().value});t="vertical"===a?(r-(t-1)*o)/n:(i-(t-1)*o)/n;t<s&&(s=t)}),w.each(e,function(e){w.each(e,function(e,t){var n=e.getLayout().value*s;"vertical"===a?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),w.each(t,function(e){var t=+e.getValue()*s;e.setLayout({dy:t},!0)})})(s,t,n,i,r,a),d(s,r,n,i,a);for(var l=1;0<o;o--)(function(e,i,r){w.each(e.slice().reverse(),function(e){w.each(e,function(e){var t,n;e.outEdges.length&&(n=x(e.outEdges,p,r)/x(e.outEdges,y,r),isNaN(n)&&(n=(t=e.outEdges.length)?x(e.outEdges,f,r)/t:0),"vertical"===r?(t=e.getLayout().x+(n-v(e,r))*i,e.setLayout({x:t},!0)):(n=e.getLayout().y+(n-v(e,r))*i,e.setLayout({y:n},!0)))})})})(s,l*=.99,a),d(s,r,n,i,a),function(e,i,r){w.each(e,function(e){w.each(e,function(e){var t,n;e.inEdges.length&&(n=x(e.inEdges,m,r)/x(e.inEdges,y,r),isNaN(n)&&(n=(t=e.inEdges.length)?x(e.inEdges,g,r)/t:0),"vertical"===r?(t=e.getLayout().x+(n-v(e,r))*i,e.setLayout({x:t},!0)):(n=e.getLayout().y+(n-v(e,r))*i,e.setLayout({y:n},!0)))})})}(s,l,a),d(s,r,n,i,a)}(s,l,o,r,n,a,i),function(e,t){var n="vertical"===t?"x":"y";w.each(e,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]})}),w.each(e,function(e){var t=0,n=0;w.each(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),w.each(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}(s,i)})}},function(e,t,n){var a=n(85),s=n(1);e.exports=function(e,t){e.eachSeriesByType("sankey",function(i){var r,o,e=i.getGraph().nodes;e.length&&(r=1/0,o=-1/0,s.each(e,function(e){e=e.getLayout().value;e<r&&(r=e),o<e&&(o=e)}),s.each(e,function(e){var t=new a({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:i.get("color")}).mapValueToVisual(e.getLayout().value),n=e.getModel().get("itemStyle.color");null!=n?e.setVisual("color",n):e.setVisual("color",t)}))})}},function(e,t,n){var i=n(3);n(641),n(642);var r=n(643),n=n(644);i.registerVisual(r),i.registerLayout(n)},function(e,t,n){var i=n(1),r=n(31),n=n(368).seriesModelMixin,r=r.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});i.mixin(r,n,!0),e.exports=r},function(e,t,n){var u=n(1),i=n(56),a=n(6),n=n(24),s=["itemStyle"],l=["emphasis","itemStyle"],i=i.extend({type:"boxplot",render:function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add(function(e){var t;i.hasValue(e)&&(t=h(i.getItemLayout(e),i,e,a,!0),i.setItemGraphicEl(e,t),r.add(t))}).update(function(e,t){var n=o.getItemGraphicEl(t);i.hasValue(e)?(t=i.getItemLayout(e),n?d(t,n,i,e):n=h(t,i,e,a),r.add(n),i.setItemGraphicEl(e,n)):r.remove(n)}).remove(function(e){e=o.getItemGraphicEl(e);e&&r.remove(e)}).execute(),this._data=i},remove:function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},dispose:u.noop}),c=n.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),e.lineTo(n[++i][0],n[i][1])}});function h(e,t,n,i,r){var o,a,s,l=e.ends,l=new c({shape:{points:r?(o=l,a=i,s=e,u.map(o,function(e){return(e=e.slice())[a]=s.initBaseline,e})):l}});return d(e,l,t,n,r),l}function d(e,t,n,i,r){var o=n.hostModel;(0,a[r?"initProps":"updateProps"])(t,{shape:{points:e.ends}},o,i);e=n.getItemModel(i),o=e.getModel(s),i=n.getItemVisual(i,"color"),o=o.getItemStyle(["borderColor"]);o.stroke=i,o.strokeNoScale=!0,t.useStyle(o),t.z2=100;e=e.getModel(l).getItemStyle();a.setHoverStyle(t,e)}e.exports=i},function(e,t){var o=["itemStyle","borderColor"];e.exports=function(i,e){var r=i.get("color");i.eachRawSeriesByType("boxplot",function(e){var t=r[e.seriesIndex%r.length],n=e.getData();n.setVisual({legendSymbol:"roundRect",color:e.get(o)||t}),i.isSeriesFiltered(e)||n.each(function(e){var t=n.getItemModel(e);n.setItemVisual(e,{color:t.get(o,!0)})})})}},function(e,t,n){var p=n(1),f=n(8).parsePercent,m=p.each;e.exports=function(e){var i,r,e=(i=[],r=[],e.eachSeriesByType("boxplot",function(e){var t=e.getBaseAxis(),n=p.indexOf(r,t);n<0&&(n=r.length,r[n]=t,i[n]={axis:t,seriesModels:[]}),i[n].seriesModels.push(e)}),i);m(e,function(n){var e=n.seriesModels;e.length&&(function(e){var t,n=e.axis,i=e.seriesModels,r=i.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];{var l;"category"===n.type?t=n.getBandWidth():(l=0,m(i,function(e){l=Math.max(l,e.getData().count())}),u=n.getExtent(),Math.abs(u[1]-u[0]))}m(i,function(e){e=e.get("boxWidth");p.isArray(e)||(e=[e,e]),s.push([f(e[0],t)||0,f(e[1],t)||0])});var u=.8*t-2,c=u/r*.3,h=(u-c*(r-1))/r,d=h/2-u/2;m(i,function(e,t){a.push(d),d+=c+h,o.push(Math.min(Math.max(h,s[t][0]),s[t][1]))})}(n),m(e,function(e,t){!function(e,r,t){var o=e.coordinateSystem,a=e.getData(),s=t/2,l="horizontal"===e.get("layout")?0:1,u=1-l,e=["x","y"],n=a.mapDimension(e[l]),i=a.mapDimension(e[u],!0);if(!(null==n||i.length<5))for(var c=0;c<a.count();c++){var h=a.get(n,c),d=v(h,i[2],c),p=v(h,i[0],c),f=v(h,i[1],c),m=v(h,i[3],c),g=v(h,i[4],c),h=[];y(h,f,0),y(h,m,1),h.push(p,f,g,m),x(h,p),x(h,g),x(h,d),a.setItemLayout(c,{initBaseline:d[u],ends:h})}function v(e,t,n){var i,t=a.get(t,n),n=[];return n[l]=e,n[u]=t,isNaN(e)||isNaN(t)?i=[NaN,NaN]:(i=o.dataToPoint(n))[l]+=r,i}function y(e,t,n){var i=t.slice(),t=t.slice();i[l]+=s,t[l]-=s,n?e.push(i,t):e.push(t,i)}function x(e,t){var n=t.slice(),t=t.slice();n[l]-=s,t[l]+=s,e.push(n,t)}}(e,n.boxOffsetList[t],n.boxWidthList[t])}))})}},function(e,t,n){var i=n(1),r=n(31),n=n(368).seriesModelMixin,r=r.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(e,t,n){e=t.getItemLayout(e);return e&&n.rect(e.brushRect)}});i.mixin(r,n,!0),e.exports=r},function(e,t,n){var o=n(1),i=n(56),c=n(6),r=n(24),a=n(126).createClipPath,s=["itemStyle"],l=["emphasis","itemStyle"],u=["color","color0","borderColor","borderColor0"],i=i.extend({type:"candlestick",render:function(e,t,n){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},incrementalPrepareRender:function(e,t,n){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,n,i){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},_updateDrawMode:function(e){e=e.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(i){var r=i.getData(),o=this._data,a=this.group,s=r.getLayout("isSimpleBox"),l=i.get("clip",!0),e=i.coordinateSystem,u=e.getArea&&e.getArea();this._data||a.removeAll(),r.diff(o).add(function(e){var t,n;r.hasValue(e)&&(n=r.getItemLayout(e),l&&p(u,n)||(t=d(n,0,!0),c.initProps(t,{shape:{points:n.ends}},i,e),f(t,r,e,s),a.add(t),r.setItemGraphicEl(e,t)))}).update(function(e,t){var n=o.getItemGraphicEl(t);r.hasValue(e)?(t=r.getItemLayout(e),l&&p(u,t)?a.remove(n):(n?c.updateProps(n,{shape:{points:t.ends}},i,e):n=d(t),f(n,r,e,s),a.add(n),r.setItemGraphicEl(e,n))):a.remove(n)}).remove(function(e){e=o.getItemGraphicEl(e);e&&a.remove(e)}).execute(),this._data=r},_renderLarge:function(e){this._clear(),g(e,this.group);e=e.get("clip",!0)?a(e.coordinateSystem,!1,e):null;e?this.group.setClipPath(e):this.group.removeClipPath()},_incrementalRenderNormal:function(e,t){for(var n,i=t.getData(),r=i.getLayout("isSimpleBox");null!=(n=e.next());){var o=d(i.getItemLayout(n));f(o,i,n,r),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(e,t){g(t,this.group,!0)},remove:function(e){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:o.noop}),h=r.extend({type:"normalCandlestickBox",shape:{},buildPath:function(e,t){t=t.points;this.__simpleBox?(e.moveTo(t[4][0],t[4][1]),e.lineTo(t[6][0],t[6][1])):(e.moveTo(t[0][0],t[0][1]),e.lineTo(t[1][0],t[1][1]),e.lineTo(t[2][0],t[2][1]),e.lineTo(t[3][0],t[3][1]),e.closePath(),e.moveTo(t[4][0],t[4][1]),e.lineTo(t[5][0],t[5][1]),e.moveTo(t[6][0],t[6][1]),e.lineTo(t[7][0],t[7][1]))}});function d(e,t,n){var i,r=e.ends;return new h({shape:{points:n?(n=r,i=e,o.map(n,function(e){return(e=e.slice())[1]=i.initBaseline,e})):r},z2:100})}function p(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function f(e,t,n,i){var r=t.getItemModel(n),o=r.getModel(s),a=t.getItemVisual(n,"color"),n=t.getItemVisual(n,"borderColor")||a,o=o.getItemStyle(u);e.useStyle(o),e.style.strokeNoScale=!0,e.style.fill=a,e.style.stroke=n,e.__simpleBox=i;r=r.getModel(l).getItemStyle();c.setHoverStyle(e,r)}var m=r.extend({type:"largeCandlestickBox",shape:{},buildPath:function(e,t){for(var n,i=t.points,r=0;r<i.length;)this.__sign===i[r++]?(n=i[r++],e.moveTo(n,i[r++]),e.lineTo(n,i[r++])):r+=3}});function g(e,t,n){var i=e.getData(),r=i.getLayout("largePoints"),o=new m({shape:{points:r},__sign:1});t.add(o);r=new m({shape:{points:r},__sign:-1});t.add(r),v(1,o,e,i),v(-1,r,e,i),n&&(o.incremental=!0,r.incremental=!0)}function v(e,t,n,i){e=0<e?"P":"N",e=i.getVisual("borderColor"+e)||i.getVisual("color"+e),n=n.getModel(s).getItemStyle(u);t.useStyle(n),t.style.fill=null,t.style.stroke=e}e.exports=i},function(e,t,n){var i=n(1);e.exports=function(e){e&&i.isArray(e.series)&&i.each(e.series,function(e){i.isObject(e)&&"k"===e.type&&(e.type="candlestick")})}},function(e,t,n){var n=n(98),i=["itemStyle","borderColor"],r=["itemStyle","borderColor0"],s=["itemStyle","color"],l=["itemStyle","color0"],n={seriesType:"candlestick",plan:n(),performRawSeries:!0,reset:function(e,t){var n=e.getData();if(n.setVisual({legendSymbol:"roundRect",colorP:o(1,e),colorN:o(-1,e),borderColorP:a(1,e),borderColorN:a(-1,e)}),!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){var n;for(;null!=(n=e.next());){var i=t.getItemModel(n),r=t.getItemLayout(n).sign;t.setItemVisual(n,{color:o(r,i),borderColor:a(r,i)})}}};function o(e,t){return t.get(0<e?s:l)}function a(e,t){return t.get(0<e?i:r)}}};e.exports=n},function(e,t,n){var C=n(6).subPixelOptimize,i=n(98),a=n(8).parsePercent,s=n(1).retrieve2,d="undefined"!=typeof Float32Array?Float32Array:Array,i={seriesType:"candlestick",plan:i(),reset:function(e){var t,n,i,g=e.coordinateSystem,r=e.getData(),v=(o=r,n="category"===(n=(t=e).getBaseAxis()).type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/o.count()),i=a(s(t.get("barMaxWidth"),n),n),o=a(s(t.get("barMinWidth"),1),n),null!=(t=t.get("barWidth"))?a(t,n):Math.max(Math.min(n/2,i),o)),o=["x","y"],y=r.mapDimension(o[0]),o=r.mapDimension(o[1],!0),x=o[0],b=o[1],_=o[2],w=o[3];if(r.setLayout({candleWidth:v,isSimpleBox:v<=1.3}),!(null==y||o.length<4))return{progress:e.pipelineContext.large?function(e,t){var n,i=new d(4*e.count),r=0,o=[],a=[];for(;null!=(n=e.next());){var s=t.get(y,n),l=t.get(x,n),u=t.get(b,n),c=t.get(_,n),h=t.get(w,n);isNaN(s)||isNaN(c)||isNaN(h)?(i[r++]=NaN,r+=3):(i[r++]=S(t,n,l,u,b),o[0]=s,o[1]=c,c=g.dataToPoint(o,null,a),i[r++]=c?c[0]:NaN,i[r++]=c?c[1]:NaN,o[1]=h,c=g.dataToPoint(o,null,a),i[r++]=c?c[1]:NaN)}t.setLayout("largePoints",i)}:function(e,t){var n;for(;null!=(n=e.next());){var i=t.get(y,n),r=t.get(x,n),o=t.get(b,n),a=t.get(_,n),s=t.get(w,n),l=Math.min(r,o),u=Math.max(r,o),c=p(l,i),h=p(u,i),d=p(a,i),l=p(s,i),u=[];f(u,h,0),f(u,c,1),u.push(m(l),m(h),m(d),m(c)),t.setItemLayout(n,{sign:S(t,n,r,o,b),initBaseline:(o<r?h:c)[1],ends:u,brushRect:function(e,t,n){e=p(e,n),n=p(t,n);return e[0]-=v/2,n[0]-=v/2,{x:e[0],y:e[1],width:v,height:n[1]-e[1]}}(a,s,i)})}function p(e,t){var n=[];return n[0]=t,n[1]=e,isNaN(t)||isNaN(e)?[NaN,NaN]:g.dataToPoint(n)}function f(e,t,n){var i=t.slice(),t=t.slice();i[0]=C(i[0]+v/2,1,!1),t[0]=C(t[0]-v/2,1,!0),n?e.push(i,t):e.push(t,i)}function m(e){return e[0]=C(e[0],1),e}}}}};function S(e,t,n,i,r){i=!(i<n)&&(n<i||!(0<t)||e.get(r,t-1)<=i)?1:-1;return i}e.exports=i},function(e,t,n){var i=n(3);n(651),n(652);var r=n(83),n=n(130);i.registerVisual(r("effectScatter","circle")),i.registerLayout(n("effectScatter"))},function(e,t,n){var i=n(62),n=n(31).extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,t){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});e.exports=n},function(e,t,n){var i=n(3),r=n(129),o=n(653),a=n(35),s=n(130),i=i.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new r(o)},render:function(e,t,n){var i=e.getData(),e=this._symbolDraw;e.updateData(i),this.group.add(e.group)},updateTransform:function(e,t,n){var i=e.getData();this.group.dirty();e=s().reset(e);e.progress&&e.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(e){e=e.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=a.clone(e.getRoamTransform()),this.group.decomposeTransform())},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}});e.exports=i},function(e,t,n){var d=n(1),s=n(42).createSymbol,r=n(6).Group,p=n(8).parsePercent,o=n(159);function l(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})})}function i(e,t){r.call(this);var n=new o(e,t),i=new r;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(e,t)}n=i.prototype;n.stopEffectAnimation=function(){this.childAt(1).removeAll()},n.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=this.childAt(1),r=0;r<3;r++){var o=s(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var a=-r/3*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(a).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(a).start(),i.add(o)}l(i,e)},n.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r<i.length;r++){var o=i[r];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}l(n,e)},n.highlight=function(){this.trigger("emphasis")},n.downplay=function(){this.trigger("normal")},n.updateData=function(e,t){var n=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),r=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),a=(l=e.getItemVisual(t,"symbolSize"),l=d.isArray(l)?l:[+l,+l]),s=e.getItemVisual(t,"color");i.attr("scale",a),i.traverse(function(e){e.attr({fill:s})});var l,u=r.getShallow("symbolOffset");u&&((l=i.position)[0]=p(u[0],a[0]),l[1]=p(u[1],a[1]));a=e.getItemVisual(t,"symbolRotate");i.rotation=(a||0)*Math.PI/180||0;var c,h={};h.showEffectOn=n.get("showEffectOn"),h.rippleScale=r.get("rippleEffect.scale"),h.brushType=r.get("rippleEffect.brushType"),h.period=1e3*r.get("rippleEffect.period"),h.effectOffset=t/e.count(),h.z=r.getShallow("z")||0,h.zlevel=r.getShallow("zlevel")||0,h.symbolType=o,h.color=s,h.rippleEffectColor=r.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),c=this.childAt(0),o=function(){c.highlight(),"render"!==h.showEffectOn&&this.startEffectAnimation(h)},r=function(){c.downplay(),"render"!==h.showEffectOn&&this.stopEffectAnimation()},this.on("mouseover",o,this).on("mouseout",r,this).on("emphasis",o,this).on("normal",r,this)),this._effectCfg=h},n.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},d.inherits(i,r),e.exports=i},function(e,t,n){var i=n(3);n(655),n(656);var r=n(372),n=n(659);i.registerLayout(r),i.registerVisual(n)},function(e,t,n){n(14).__DEV__;var i=n(31),o=n(47),r=n(1),a=r.concatArray,s=r.mergeAll,l=r.map,u=n(17).encodeHTML,p=(n(51),"undefined"==typeof Uint32Array?Array:Uint32Array),f="undefined"==typeof Float64Array?Array:Float64Array;function c(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=l(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),s([t,e[0],e[1]])}))}var h=i.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(e){e.data=e.data||[],c(e);var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),h.superApply(this,"init",arguments)},mergeOption:function(e){var t;c(e),e.data&&(t=this._processFlatCoordsArray(e.data),this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count))),h.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=a(this._flatCoords,t.flatCoords),this._flatCoordsOffset=a(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){e=this.getData().getItemModel(e);return e.option instanceof Array?e.option:e.getShallow("coords")},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}for(var o=this._getCoordsFromItemModel(e),r=0;r<o.length;r++)t[r]=t[r]||[],t[r][0]=o[r][0],t[r][1]=o[r][1];return o.length},_processFlatCoordsArray:function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"!=typeof e[0])return{flatCoordsOffset:null,flatCoords:null,count:e.length};for(var n=e.length,i=new p(n),r=new f(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];i[a++]=o+t,i[a++]=u;for(var c=0;c<u;c++){var h=e[l++],d=e[l++];r[o++]=h,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}},getInitialData:function(e,t){var r=new o(["value"],this);return r.hasItemOption=!1,r.initData(e.data,[],function(e,t,n,i){if(e instanceof Array)return NaN;r.hasItemOption=!0;e=e.value;return null!=e?e instanceof Array?e[i]:e:void 0}),r},formatTooltip:function(e){var t=this.getData().getItemModel(e),n=t.get("name");if(n)return n;e=t.get("fromName"),n=t.get("toName"),t=[];return null!=e&&t.push(e),null!=n&&t.push(n),u(t.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!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.exports=h},function(e,t,n){n(14).__DEV__;var i=n(3),o=n(214),a=n(370),s=n(215),l=n(371),u=n(657),c=n(658),h=n(372),d=n(126).createClipPath,i=i.extendChartView({type:"lines",init:function(){},render:function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),o=e.get("zlevel"),a=e.get("effect.trailLength"),s=n.getZr(),n="svg"===s.painter.getType();n||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||n||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a&&(n||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);e=e.get("clip",!0)&&d(e.coordinateSystem,!1,e);e?this.group.setClipPath(e):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(e,t,n){var i=e.getData();this._updateLineDraw(i,e).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};e=h.reset(e);e.progress&&e.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),t=t.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&t===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=t?new c:new o(r?i?u:l:i?a:s),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=t,this.group.removeAll()),this.group.add(n.group),n},_showEffect:function(e){return!!e.get("effect.show")},_clearLayer:function(e){e=e.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});e.exports=i},function(e,t,n){var i=n(371),r=n(1),o=n(370),s=n(20);function a(e,t,n){o.call(this,e,t,n),this._lastFrame=0,this._lastFramePercent=0}n=a.prototype;n.createLine=function(e,t,n){return new i(e,t,n)},n.updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var o=t[r-1],a=t[r];i+=s.dist(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}},n.getLineLength=function(e){return this._length},n.updateSymbolPosition=function(e){var t=e.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o=this._lastFrame;if(t<this._lastFramePercent){for(a=Math.min(o+1,r-1);0<=a&&!(i[a]<=t);a--);a=Math.min(a,r-2)}else{for(var a=o;a<r&&!(i[a]>t);a++);a=Math.min(a-1,r-2)}s.lerp(e.position,n[a],n[a+1],(t-i[a])/(i[a+1]-i[a]));o=n[a+1][0]-n[a][0],n=n[a+1][1]-n[a][1];e.rotation=-Math.atan2(n,o)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=t,e.ignore=!1}},r.inherits(a,o),e.exports=a},function(e,t,n){var i=n(6),r=n(197),p=n(309),f=n(310),o=i.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(e,t){var n=t.segs,i=t.curveness;if(t.polyline)for(var r=0;r<n.length;){var o=n[r++];if(0<o){e.moveTo(n[r++],n[r++]);for(var a=1;a<o;a++)e.lineTo(n[r++],n[r++])}}else for(r=0;r<n.length;){var s=n[r++],l=n[r++],u=n[r++],c=n[r++];e.moveTo(s,l),0<i?e.quadraticCurveTo((s+u)/2-(l-c)*i,(l+c)/2-(u-s)*i,u,c):e.lineTo(u,c)}},findDataIndex:function(e,t){var n=this.shape,i=n.segs,r=n.curveness;if(n.polyline)for(var o=0,a=0;a<i.length;){var s=i[a++];if(0<s)for(var l=i[a++],u=i[a++],c=1;c<s;c++){var h=i[a++],d=i[a++];if(p.containStroke(l,u,h,d))return o}o++}else for(o=0,a=0;a<i.length;){l=i[a++],u=i[a++],h=i[a++],d=i[a++];if(0<r){if(f.containStroke(l,u,(l+h)/2-(u-d)*r,(u+d)/2-(h-l)*r,h,d))return o}else if(p.containStroke(l,u,h,d))return o;o++}return-1}});function a(){this.group=new i.Group}n=a.prototype;n.isPersistent=function(){return!this._incremental},n.updateData=function(e){this.group.removeAll();var t=new o({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},n.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),5e5<e.count()?(this._incremental||(this._incremental=new r({silent:!0})),this.group.add(this._incremental)):this._incremental=null},n.incrementalUpdate=function(e,t){var n=new o;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},n.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},n._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;e=e.getVisual("color");e&&t.setStyle("stroke",e),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;e=t.findDataIndex(e.offsetX,e.offsetY);0<e&&(t.dataIndex=e+t.__startIndex)}))},n._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e.exports=a},function(e,t){function a(e){return e=!(e instanceof Array)?[e,e]:e}var s="lineStyle.opacity".split(".");e.exports={seriesType:"lines",reset:function(e,t,n){var i=a(e.get("symbol")),r=a(e.get("symbolSize")),o=e.getData();return o.setVisual("fromSymbol",i&&i[0]),o.setVisual("toSymbol",i&&i[1]),o.setVisual("fromSymbolSize",r&&r[0]),o.setVisual("toSymbolSize",r&&r[1]),o.setVisual("opacity",e.get(s)),{dataEach:o.hasItemOption?function(e,t){var n=a((r=e.getItemModel(t)).getShallow("symbol",!0)),i=a(r.getShallow("symbolSize",!0)),r=r.get(s);n[0]&&e.setItemVisual(t,"fromSymbol",n[0]),n[1]&&e.setItemVisual(t,"toSymbol",n[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1]),e.setItemVisual(t,"opacity",r)}:null}}}},function(e,t,n){var i=n(31),r=n(62),o=n(51),i=i.extend({type:"series.heatmap",getInitialData:function(e,t){return r(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var e=o.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});e.exports=i},function(e,t,n){n(14).__DEV__;var i=n(3),S=n(6),b=n(662),A=n(1);i=i.extendChartView({type:"heatmap",render:function(n,e,t){var i;e.eachComponent("visualMap",function(t){t.eachTargetSeries(function(e){e===n&&(i=t)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=n.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(n,t,0,n.getData().count()):"lng"===(e=(e=r).dimensions)[0]&&"lat"===e[1]&&this._renderOnGeo(r,n,i,t)},incrementalPrepareRender:function(e,t,n){this.group.removeAll()},incrementalRender:function(e,t,n,i){t.coordinateSystem&&this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,n,i,r){var o,a,s,l,u=e.coordinateSystem;"cartesian2d"===u.type&&(o=u.getAxis("x"),a=u.getAxis("y"),s=o.getBandWidth(),l=a.getBandWidth());for(var c=this.group,h=e.getData(),d="emphasis.itemStyle",p="emphasis.label",f=e.getModel("itemStyle").getItemStyle(["color"]),m=e.getModel(d).getItemStyle(),g=e.getModel("label"),v=e.getModel(p),y=u.type,x="cartesian2d"===y?[h.mapDimension("x"),h.mapDimension("y"),h.mapDimension("value")]:[h.mapDimension("time"),h.mapDimension("value")],b=n;b<i;b++){if("cartesian2d"===y){if(isNaN(h.get(x[2],b)))continue;var _=u.dataToPoint([h.get(x[0],b),h.get(x[1],b)]),w=new S.Rect({shape:{x:Math.floor(Math.round(_[0])-s/2),y:Math.floor(Math.round(_[1])-l/2),width:Math.ceil(s),height:Math.ceil(l)},style:{fill:h.getItemVisual(b,"color"),opacity:h.getItemVisual(b,"opacity")}})}else{if(isNaN(h.get(x[1],b)))continue;w=new S.Rect({z2:1,shape:u.dataToRect([h.get(x[0],b)]).contentShape,style:{fill:h.getItemVisual(b,"color"),opacity:h.getItemVisual(b,"opacity")}})}var C=h.getItemModel(b);h.hasItemOption&&(f=C.getModel("itemStyle").getItemStyle(["color"]),m=C.getModel(d).getItemStyle(),g=C.getModel("label"),v=C.getModel(p));_=e.getRawValue(b),C="-";_&&null!=_[2]&&(C=_[2]),S.setLabelStyle(f,m,g,v,{labelFetcher:e,labelDataIndex:b,defaultText:C,isRectText:!0}),w.setStyle(f),S.setHoverStyle(w,h.hasItemOption?m:A.extend({},m)),(w.incremental=r)&&(w.useHoverLayer=!0),c.add(w),h.setItemGraphicEl(b,w)}},_renderOnGeo:function(i,e,t,n){var r=t.targetVisuals.inRange,o=t.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new b;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=i.getViewRect().clone(),u=i.getRoamTransform();l.applyTransform(u);var c,h,d,p,f,m,g,v=Math.max(l.x,0),y=Math.max(l.y,0),x=Math.min(l.width+l.x,n.getWidth()),e=Math.min(l.height+l.y,n.getHeight()),u=x-v,l=e-y,n=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],x=a.mapArray(n,function(e,t,n){t=i.dataToPoint([e,t]);return t[0]-=v,t[1]-=y,t.push(n),t}),e=t.getExtent(),t="visualMap.continuous"===t.type?(a=e,g=t.option.range,n=a[1]-a[0],g=[(g[0]-a[0])/n,(g[1]-a[0])/n],function(e){return e>=g[0]&&e<=g[1]}):(c=e,h=t.getPieceList(),d=t.option.selected,p=c[1]-c[0],f=(h=A.map(h,function(e){return{interval:[(e.interval[0]-c[0])/p,(e.interval[1]-c[0])/p]}})).length,m=0,function(e){for(var t=m;t<f;t++)if((n=h[t].interval)[0]<=e&&e<=n[1]){m=t;break}if(t===f)for(var n,t=m-1;0<=t;t--)if((n=h[t].interval)[0]<=e&&e<=n[1]){m=t;break}return 0<=t&&t<f&&d[t]});s.update(x,u,l,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},t);s=new S.Image({style:{width:u,height:l,x:v,y:y,image:s.canvas},silent:!0});this.group.add(s)},dispose:function(){}});e.exports=i},function(e,t,n){var r=n(1);function i(){var e=r.createCanvas();this.canvas=e,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}i.prototype={update:function(e,t,n,i,r,o){var a=this._getBrush(),s=this._getGradient(e,r,"inRange"),l=this._getGradient(e,r,"outOfRange"),u=this.pointSize+this.blurSize,r=this.canvas,c=r.getContext("2d"),h=e.length;r.width=t,r.height=n;for(var d=0;d<h;++d){var p=e[d],f=p[0],m=p[1],g=i(p[2]);c.globalAlpha=g,c.drawImage(a,f-u,m-u)}if(!r.width||!r.height)return r;for(var n=c.getImageData(0,0,r.width,r.height),v=n.data,y=0,x=v.length,b=this.minOpacity,_=this.maxOpacity-b;y<x;){var w,g=v[y+3]/256,C=4*Math.floor(255*g);0<g?(w=o(g)?s:l,0<g&&(g=g*_+b),v[y++]=w[C],v[y++]=w[1+C],v[y++]=w[2+C],v[y++]=w[3+C]*g*256):y+=4}return c.putImageData(n,0,0),r},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=r.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},_getGradient:function(e,t,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)t[n](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r}},e.exports=i},function(e,t,n){var i=n(3),r=n(1);n(201),n(664),n(665);var o=n(155).layout,a=n(83);n(127),i.registerLayout(r.curry(o,"pictorialBar")),i.registerVisual(a("pictorialBar","roundRect"))},function(e,t,n){var i=n(333).extend({type:"series.pictorialBar",dependencies:["grid"],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,hoverAnimation:!1},getInitialData:function(e){return e.stack=null,i.superApply(this,"getInitialData",arguments)}});e.exports=i},function(e,t,n){var i=n(3),b=n(1),h=n(6),r=n(42).createSymbol,o=n(8),_=o.parsePercent,w=o.isNumeric,d=n(334).setLabel,p=["itemStyle","borderWidth"],c=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],f=new h.Circle,i=i.extendChartView({type:"pictorialBar",render:function(e,t,n){var r=this.group,o=e.getData(),a=this._data,i=e.coordinateSystem,s=!!i.getBaseAxis().isHorizontal(),l=i.grid.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:i,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:c[+s],categoryDim:c[1-s]};return o.diff(a).add(function(e){var t,n;o.hasValue(e)&&(n=A(o,e),t=m(o,e,n,u),n=T(o,u,t),o.setItemGraphicEl(e,n),r.add(n),N(n,u,t))}).update(function(e,t){var n,i=a.getItemGraphicEl(t);o.hasValue(e)?(n=A(o,e),t=m(o,e,n,u),n=D(o,t),i&&n!==i.__pictorialShapeStr&&(r.remove(i),o.setItemGraphicEl(e,null),i=null),i?function(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;h.updateProps(o,{position:n.bundlePosition.slice()},i,r),(n.symbolRepeat?y:x)(e,t,n,!0);C(e,n,!0),S(e,t,n,!0)}(i,u,t):i=T(o,u,t,!0),o.setItemGraphicEl(e,i),i.__pictorialSymbolMeta=t,r.add(i),N(i,u,t)):r.remove(i)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&k(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute(),this._data=o,this.group},dispose:b.noop,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){k(i,e.dataIndex,t,e)}):n.removeAll()}});function m(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),c={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",color:e.getItemVisual(t,"color"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?n:null,hoverAnimation:c&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};!function(e,t,n,i,r){var o=i.valueDim,a=e.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-(n[o.wh]<=0);l=b.isArray(a)?((e=[g(s,a[0])-l,g(s,a[1])-l])[1]<e[0]&&e.reverse(),e[u]):null!=a?g(s,a)-l:t?i.coordSysExtent[o.index][u]-l:n[o.wh];r.boundingLength=l,t&&(r.repeatCutLength=n[o.wh]);r.pxSign=0<l?1:l<0?-1:0}(n,o,r,i,c),function(e,t,n,i,r,o,a,s,l){var u=s.valueDim,c=s.categoryDim,n=Math.abs(n[c.wh]),t=e.getItemVisual(t,"symbolSize");t=b.isArray(t)?t.slice():[t=null==t?"100%":t,t];t[c.index]=_(t[c.index],n),t[u.index]=_(t[u.index],i?n:Math.abs(r)),l.symbolSize=t,(l.symbolScale=[t[0]/a,t[1]/a])[u.index]*=(s.isHorizontal?-1:1)*o}(e,t,r,o,c.boundingLength,c.pxSign,u,i,c),function(e,t,n,i,r){e=e.get(p)||0;e&&(f.attr({scale:t.slice(),rotation:n}),f.updateTransform(),e/=f.getLineScale(),e*=t[i.valueDim.index]);r.valueLineWidth=e}(n,c.symbolScale,l,i,c);u=c.symbolSize,l=n.get("symbolOffset");return function(e,t,n,i,r,o,a,s,l,u,c){var h=u.categoryDim,d=u.valueDim,p=c.pxSign,f=Math.max(t[d.index]+a,0),m=f;{var g,v,y;i&&(g=Math.abs(s),x=b.retrieve(e.get("symbolMargin"),"15%")+"",v=!1,x.lastIndexOf("!")===x.length-1&&(v=!0,x=x.slice(0,x.length-1)),x=_(x,t[d.index]),y=Math.max(f+2*x,0),a=v?0:2*x,e=w(i),t=e?i:L((g+a)/y),y=f+2*(x=(g-t*f)/2/(v?t:t-1)),a=v?0:2*x,e||"fixed"===i||(t=l?L((Math.abs(l)+a)/y):0),m=t*y-a,c.repeatTimes=t,c.symbolMargin=x)}var x=p*(m/2),m=c.pathPosition=[];m[h.index]=n[h.wh]/2,m[d.index]="start"===o?x:"end"===o?s-x:s/2,r&&(m[0]+=r[0],m[1]+=r[1]);r=c.bundlePosition=[];r[h.index]=n[h.xy],r[d.index]=n[d.xy];r=c.barRectShape=b.extend({},n);r[d.wh]=p*Math.max(Math.abs(n[d.wh]),Math.abs(m[d.index]+x)),r[h.wh]=n[h.wh];c=c.clipShape={};c[h.xy]=-n[h.xy],c[h.wh]=u.ecSize[h.wh],c[d.xy]=0,c[d.wh]=n[d.wh]}(n,u,r,o,l=b.isArray(l)?[_(l[0],u[0]),_(l[1],u[1])]:l,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function g(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function v(e){var t=e.symbolPatternSize,e=r(e.symbolType,-t/2,-t/2,t,t,e.color);return e.attr({culling:!0}),"image"!==e.type&&e.setStyle({strokeNoScale:!0}),e}function y(e,t,r,n){var i=e.__pictorialBundle,o=r.symbolSize,a=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,h=o[t.valueDim.index]+a+2*r.symbolMargin;for(I(e,function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?O(e,null,f(c),r,n):O(e,null,{scale:[0,0]},r,n,function(){i.remove(e)}),M(e,r),c++});c<u;c++){var d=v(r);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var p=f(c);O(d,{position:p.position,scale:[0,0]},{scale:p.scale,rotation:p.rotation},r,n),d.on("mouseover",m).on("mouseout",g),M(d,r)}function f(e){var t=s.slice(),n=r.pxSign,i=e;return("start"===r.symbolRepeatDirection?0<n:n<0)&&(i=u-1-e),t[l.index]=h*(i-u/2+.5)+s[l.index],{position:t,scale:r.symbolScale.slice(),rotation:r.rotation}}function m(){I(e,function(e){e.trigger("emphasis")})}function g(){I(e,function(e){e.trigger("normal")})}}function x(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?O(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=e.__pictorialMainPath=v(n),r.add(o),O(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",function(){this.trigger("emphasis")}).on("mouseout",function(){this.trigger("normal")})),M(o,n)}function C(e,t,n){var i=b.extend({},t.barRectShape),r=e.__pictorialBarRect;r?O(r,null,{shape:i},t,n):(r=e.__pictorialBarRect=new h.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(r))}function S(e,t,n,i){var r,o,a,s;n.symbolClip&&(r=e.__pictorialClipPath,o=b.extend({},n.clipShape),a=t.valueDim,s=n.animationModel,t=n.dataIndex,r?h.updateProps(r,{shape:o},s,t):(o[a.wh]=0,r=new h.Rect({shape:o}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r,(e={})[a.wh]=n.clipShape[a.wh],h[i?"updateProps":"initProps"](r,{shape:e},s,t)))}function A(e,t){t=e.getItemModel(t);return t.getAnimationDelayParams=a,t.isAnimationEnabled=s,t}function a(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function s(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function M(e,t){e.off("emphasis").off("normal");var n=t.symbolScale.slice();t.hoverAnimation&&e.on("emphasis",function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:n.slice()},400,"elasticOut")})}function T(e,t,n,i){var r=new h.Group,o=new h.Group;return r.add(o),(r.__pictorialBundle=o).attr("position",n.bundlePosition.slice()),n.symbolRepeat?y(r,t,n):x(r,0,n),C(r,n,i),S(r,t,n,i),r.__pictorialShapeStr=D(e,n),r.__pictorialSymbolMeta=n,r}function k(e,t,n,i){var r=i.__pictorialBarRect;r&&(r.style.text=null);var o=[];I(i,function(e){o.push(e)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),b.each(o,function(e){h.updateProps(e,{scale:[0,0]},n,t,function(){i.parent&&i.parent.remove(i)})}),e.setItemGraphicEl(t,null)}function D(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function I(t,n,i){b.each(t.__pictorialBundle.children(),function(e){e!==t.__pictorialBarRect&&n.call(i,e)})}function O(e,t,n,i,r,o){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&h[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function N(e,t,n){var i=n.color,r=n.dataIndex,o=n.itemModel,a=o.getModel("itemStyle").getItemStyle(["color"]),s=o.getModel("emphasis.itemStyle").getItemStyle(),l=o.getShallow("cursor");I(e,function(e){e.setColor(i),e.setStyle(b.defaults({fill:i,opacity:n.opacity},a)),h.setHoverStyle(e,s),l&&(e.cursor=l),e.z2=n.z2});var u={},c=t.valueDim.posDesc[+(0<n.boundingLength)],e=e.__pictorialBarRect;d(e.style,u,o,i,t.seriesModel,r,c),h.setHoverStyle(e,u)}function L(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}e.exports=i},function(e,t,n){var i=n(3);n(374),n(673),n(674);var r=n(675),o=n(676),n=n(133);i.registerLayout(r),i.registerVisual(o),i.registerProcessor(n("themeRiver"))},function(e,t,n){var a=n(668);n(51).register("single",{create:function(i,r){var o=[];return i.eachComponent("singleAxis",function(e,t){var n=new a(e,i,r);n.name="single_"+t,n.resize(e,r),e.coordinateSystem=n,o.push(n)}),i.eachSeries(function(e){var t;"singleAxis"===e.get("coordinateSystem")&&(t=i.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0],e.coordinateSystem=t&&t.coordinateSystem)}),o},dimensions:a.prototype.dimensions})},function(e,t,n){var o=n(669),a=n(52),i=n(15).getLayoutRect,r=n(1).each;function s(e,t,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,n),this.model=e}s.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:s,_init:function(e,t,n){var i=this.dimension,r=new o(i,a.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),i="category"===r.type;r.onBand=i&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),(e.axis=r).model=e,(r.coordinateSystem=this)._axis=r},update:function(e,t){e.eachSeries(function(e){var t;e.coordinateSystem===this&&(t=e.getData(),r(t.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(t,e)},this),a.niceScaleExtent(this._axis.scale,this._axis.model))},this)},resize:function(e,t){this._rect=i({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.reverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},_updateAxisTransform:function(e,t){var n=e.getExtent(),i=n[0]+n[1],n=e.isHorizontal();e.toGlobalCoord=n?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=n?function(e){return e-t}:function(e){return i-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0==r?n.y+n.height/2:n.x+n.width/2,i}},e.exports=s},function(e,t,n){var i=n(1),o=n(68),n=function(e,t,n,i,r){o.call(this,e,t,n),this.type=i||"value",this.position=r||"bottom",this.orient=null};n.prototype={constructor:n,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},i.inherits(n,o),e.exports=n},function(e,t,n){var s=n(1),l=n(69),m=n(6),u=n(375),i=n(82),n=n(336),r=n.rectCoordAxisBuildSplitArea,o=n.rectCoordAxisHandleRemove,c=["axisLine","axisTickLabel","axisName"],h=["splitArea","splitLine"],d=i.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,i){var r=this.group;r.removeAll();var o=this._axisGroup;this._axisGroup=new m.Group;var a=u.layout(t),a=new l(t,a);s.each(c,a.add,a),r.add(this._axisGroup),r.add(a.getGroup()),s.each(h,function(e){t.get(e+".show")&&this["_"+e](t)},this),m.groupTransition(o,this._axisGroup,t),d.superCall(this,"render",t,e,n,i)},remove:function(){o(this)},_splitLine:function(e){var t=e.axis;if(!t.scale.isBlank()){for(var n=e.getModel("splitLine"),i=n.getModel("lineStyle"),r=i.get("width"),o=(o=i.get("color"))instanceof Array?o:[o],a=e.coordinateSystem.getRect(),s=t.isHorizontal(),l=[],u=0,c=t.getTicksCoords({tickModel:n}),h=[],d=[],p=0;p<c.length;++p){var f=t.toGlobalCoord(c[p].coord);s?(h[0]=f,h[1]=a.y,d[0]=f,d[1]=a.y+a.height):(h[0]=a.x,h[1]=f,d[0]=a.x+a.width,d[1]=f);f=u++%o.length;l[f]=l[f]||[],l[f].push(new m.Line({subPixelOptimize:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:{lineWidth:r},silent:!0}))}for(p=0;p<l.length;++p)this.group.add(m.mergePath(l[p],{style:{stroke:o[p%o.length],lineDash:i.getLineDash(r),lineWidth:r},silent:!0}))}},_splitArea:function(e){r(this,this._axisGroup,e,e)}});e.exports=d},function(e,t,n){var i=n(1),r=n(30),o=n(156),n=n(100),r=r.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}});i.merge(r.prototype,n),o("single",r,function(e,t){return t.type||(t.data?"category":"value")},{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.exports=r},function(e,t,n){var i=n(203),h=n(158),d=n(375),n=n(82),r=["x","y"],o=["width","height"],i=i.extend({makeElOption:function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=m(a,1-f(o)),l=a.dataToPoint(t)[0],u=i.get("type");u&&"none"!==u&&(a=h.buildElStyle(i),(c=p[u](o,l,s)).style=a,e.graphicKey=c.type,e.pointer=c);var c=d.layout(n);h.buildCartesianSingleLabelElOption(t,e,c,n,i,r)},getHandleTransform:function(e,t,n){var i=d.layout(t,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:h.getTransformedPosition(t.axis,e,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=f(r),n=m(o,a),r=e.position;r[a]+=t[a],r[a]=Math.min(n[1],r[a]),r[a]=Math.max(n[0],r[a]);o=m(o,1-a),o=(o[1]+o[0])/2,o=[o,o];return o[a]=r[a],{position:r,rotation:e.rotation,cursorPoint:o,tooltipOption:{verticalAlign:"middle"}}}}),p={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:h.makeLineShape([t,n[0]],[t,n[1]],f(e))}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:h.makeRectShape([t-i/2,n[0]],[i,r],f(e))}}};function f(e){return e.isHorizontal()?0:1}function m(e,t){e=e.getRect();return[e[r[t]],e[r[t]]+e[o[t]]]}n.registerAxisPointerClass("SingleAxisPointer",i),e.exports=i},function(e,t,n){var i=n(31),s=n(99),l=n(125).getDimensionTypeByAxis,u=n(47),m=n(1),c=n(10).groupData,r=n(17).encodeHTML,o=n(131),a=i.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){a.superApply(this,"init",arguments),this.legendVisualProvider=new o(m.bind(this.getData,this),m.bind(this.getRawData,this))},fixData:function(e){var t=e.length,n={},i=c(e,function(e){return n.hasOwnProperty(e[0])||(n[e[0]]=-1),e[2]}),r=[];i.buckets.each(function(e,t){r.push({name:t,dataList:e})});for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0];n[u]=a}for(u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,e[t]=[],e[t][0]=u,e[t][1]=0,e[t][2]=s,t++)}return e},getInitialData:function(e,t){for(var t=t.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0].get("type"),e=m.filter(e.data,function(e){return void 0!==e[2]}),n=this.fixData(e||[]),i=[],r=this.nameMap=m.createHashMap(),o=0,a=0;a<n.length;++a)i.push(n[a][2]),r.get(n[a][2])||(r.set(n[a][2],o),o++);t=s(n,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:l(t)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),t=new u(t,this);return t.initData(n),t},getLayerSeries:function(){for(var n=this.getData(),e=n.count(),t=[],i=0;i<e;++i)t[i]=i;var r=n.mapDimension("single"),o=c(t,function(e){return n.get("name",e)}),a=[];return o.buckets.each(function(e,t){e.sort(function(e,t){return n.get(r,e)-n.get(r,t)}),a.push({name:t,indices:e})}),a},getAxisTooltipData:function(e,t,n){m.isArray(e)||(e=e?[e]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,d=0;d<h;++d){var p=r.get(e[0],o[l].indices[d]),f=Math.abs(p-t);f<=u&&(i=p,u=f,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:i}},formatTooltip:function(e){var t=this.getData(),n=t.getName(e),e=t.get(t.mapDimension("value"),e);return!isNaN(e)&&null!=e||(e="-"),r(n+" : "+e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}});e.exports=a},function(e,t,n){var i=n(3),T=n(347).Polygon,k=n(6),r=n(1),a=r.bind,D=r.extend,s=n(81),i=i.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(w,e,t){var C=w.getData(),S=this.group,A=w.getLayerSeries(),n=C.getLayout("layoutInfo"),i=n.rect,n=n.boundaryGap;function r(e){return e.name}S.attr("position",[0,i.y+n[0]]);var n=new s(this._layersSeries||[],A,r,r),M={};function o(e,t,n){var i=this._layers;if("remove"!==e){for(var r,o=[],a=[],s=A[t].indices,l=0;l<s.length;l++){var u=C.getItemLayout(s[l]),c=u.x,h=u.y0,u=u.y;o.push([c,h]),a.push([c,h+u]),r=C.getItemVisual(s[l],"color")}var d,p,f,m,g,v,y=C.getItemLayout(s[0]),x=C.getItemModel(s[l-1]),b=x.getModel("label"),_=b.get("margin");"add"===e?(f=M[t]=new k.Group,d=new T({shape:{points:o,stackedOnPoints:a,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),p=new k.Text({style:{x:y.x-_,y:y.y0+y.y/2}}),f.add(d),f.add(p),S.add(f),d.setClipPath((m=d.getBoundingRect(),g=w,v=function(){d.removeClipPath()},e=new k.Rect({shape:{x:m.x-10,y:m.y-10,width:0,height:m.height+20}}),k.initProps(e,{shape:{width:m.width+20,height:m.height+20}},g,v),e))):(f=i[n],d=f.childAt(0),p=f.childAt(1),S.add(f),M[t]=f,k.updateProps(d,{shape:{points:o,stackedOnPoints:a}},w),k.updateProps(p,{style:{x:y.x-_,y:y.y0+y.y/2}},w));y=x.getModel("emphasis.itemStyle"),x=x.getModel("itemStyle");k.setTextStyle(p.style,b,{text:b.get("show")?w.getFormattedLabel(s[l-1],"normal")||C.getName(s[l-1]):null,textVerticalAlign:"middle"}),d.setStyle(D({fill:r},x.getItemStyle(["color"]))),k.setHoverStyle(d,y.getItemStyle())}else S.remove(i[t])}n.add(a(o,this,"add")).update(a(o,this,"update")).remove(a(o,this,"remove")).execute(),this._layersSeries=A,this._layers=M},dispose:function(){}});e.exports=i},function(e,t,n){var m=n(1),a=n(8);function s(n,e,t){if(n.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=n.mapDimension("single"),s=n.mapDimension("value"),l=m.map(o,function(e){return m.map(e.indices,function(e){var t=r.dataToPoint(n.get(a,e));return t[1]=n.get(s,e),t})}),e=function(e){for(var t=e.length,n=e[0].length,i=[],r=[],o=0,a={},s=0;s<n;++s){for(var l=0,u=0;l<t;++l)u+=e[l][s][1];o<u&&(o=u),i.push(u)}for(var c=0;c<n;++c)r[c]=(o-i[c])/2;for(var h=o=0;h<n;++h){var d=i[h]+r[h];o<d&&(o=d)}return a.y0=r,a.max=o,a}(l),u=e.y0,c=t/e.max,h=o.length,d=o[0].indices.length,p=0;p<d;++p){i=u[p]*c,n.setItemLayout(o[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:i,y:l[0][p][1]*c});for(var f=1;f<h;++f)i+=l[f-1][p][1]*c,n.setItemLayout(o[f].indices[p],{layerIndex:f,x:l[f][p][0],y0:i,y:l[f][p][1]*c})}}e.exports=function(e,t){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=e.get("boundaryGap"),n=n.getAxis();i.boundaryGap=o,"horizontal"===n.orient?(o[0]=a.parsePercent(o[0],r.height),o[1]=a.parsePercent(o[1],r.height),s(t,e,r.height-o[0]-o[1])):(o[0]=a.parsePercent(o[0],r.width),o[1]=a.parsePercent(o[1],r.width),s(t,e,r.width-o[0]-o[1])),t.setLayout("layoutInfo",i)})}},function(e,t,n){var s=n(1).createHashMap;e.exports=function(e){e.eachSeriesByType("themeRiver",function(n){var i=n.getData(),r=n.getRawData(),o=n.get("color"),a=s();i.each(function(e){a.set(i.getRawIndex(e),e)}),r.each(function(e){var t=r.getName(e),t=o[(n.nameMap.get(t)-1)%o.length];r.setItemVisual(e,"color",t);e=a.get(e);null!=e&&i.setItemVisual(e,"color",t)})})}},function(e,t,n){var i=n(3),r=n(1);n(678),n(679),n(681);var o=n(132),a=n(682),n=n(133);i.registerVisual(r.curry(o,"sunburst")),i.registerLayout(r.curry(a,"sunburst")),i.registerProcessor(r.curry(n,"sunburst"))},function(e,t,n){var o=n(1),i=n(31),a=n(213),s=n(26),r=n(84).wrapTreePathInfo,n=i.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var n={name:e.name,children:e.data};!function t(e){var n=0;o.each(e.children,function(e){t(e);var e=e.value;o.isArray(e)&&(e=e[0]),n+=e});var i=e.value;o.isArray(i)&&(i=i[0]);null!=i&&!isNaN(i)||(i=n);i<0&&(i=0);o.isArray(e.value)?e.value[0]=i:e.value=i}(n);var i=o.map(e.levels||[],function(e){return new s(e,this,t)},this),r=a.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){t=r.getNodeByDataIndex(t),t=i[t.depth];return t&&(e.parentModel=t),e})});return r.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=i.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=r(n,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",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},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});e.exports=n},function(e,t,n){var v=n(1),i=n(56),y=n(680),x=n(81),o=n(17).windowOpen,i=i.extend({type:"sunburst",init:function(){},render:function(n,i,e,t){var r=this;this.seriesModel=n,this.api=e,this.ecModel=i;var o=n.getData(),a=o.tree.root,s=n.getViewRoot(),l=this.group,u=n.get("renderLabelForZeroData"),c=[];s.eachNode(function(e){c.push(e)});var h,d,p,f,e=this._oldChildren||[];function m(e){return e.getId()}function g(e,t){!function(e,t){u||!e||e.getValue()||(e=null);e!==a&&t!==a&&(t&&t.piece?e?(t.piece.updateData(!1,e,"normal",n,i),o.setItemGraphicEl(e.dataIndex,t.piece)):function(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}(t):e&&(t=new y(e,n,i),l.add(t),o.setItemGraphicEl(e.dataIndex,t)))}(null==e?null:h[e],null==t?null:d[t])}d=e,0===(h=c).length&&0===d.length||new x(d,h,m,m).add(g).update(g).remove(v.curry(g,null)).execute(),p=a,0<(f=s).depth?(r.virtualPiece?r.virtualPiece.updateData(!1,p,"normal",n,i):(r.virtualPiece=new y(p,n,i),l.add(r.virtualPiece)),f.piece._onclickEvent&&f.piece.off("click",f.piece._onclickEvent),p=function(e){r._rootToNode(f.parentNode)},f.piece._onclickEvent=p,r.virtualPiece.on("click",p)):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null),t&&t.highlight&&t.highlight.piece?(e=n.getShallow("highlightPolicy"),t.highlight.piece.onEmphasis(e)):t&&t.unhighlight&&((t=!(t=this.virtualPiece)&&a.children.length?a.children[0].piece:t)&&t.onNormal()),this._initEvents(),this._oldChildren=c},dispose:function(){},_initEvents:function(){function e(n){var i=!1;r.seriesModel.getViewRoot().eachNode(function(e){var t;!i&&e.piece&&e.piece.childAt(0)===n.target&&("rootToNode"===(t=e.getModel().get("nodeClick"))?r._rootToNode(e):"link"!==t||(e=(t=e.getModel()).get("link"))&&(t=t.get("target",!0)||"_blank",o(e,t)),i=!0)})}var r=this;this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var n=t.getData().getItemLayout(0);if(n){t=e[0]-n.cx,e=e[1]-n.cy,e=Math.sqrt(t*t+e*e);return e<=n.r&&e>=n.r0}}});e.exports=i},function(e,t,n){var p=n(1),f=n(6),a="none",s="ancestor",l="self";function i(e,t,n){f.Group.call(this);var i=new f.Sector({z2:2});i.seriesIndex=t.seriesIndex;var r=new f.Text({z2:4,silent:e.getModel("label").get("silent")});function o(){r.ignore=r.hoverIgnore}function a(){r.ignore=r.normalIgnore}this.add(i),this.add(r),this.updateData(!0,e,"normal",t,n),this.on("emphasis",o).on("normal",a).on("mouseover",o).on("mouseout",a)}n=i.prototype;n.updateData=function(e,t,n,i,r){(this.node=t).piece=this,i=i||this._seriesModel,r=r||this._ecModel;var o=this.childAt(0);o.dataIndex=t.dataIndex;var a=t.getModel(),s=t.getLayout(),l=p.extend({},s);l.label=null;var u=function(e,t){var n=e.getVisual("color"),i=e.getVisual("visualMeta");i&&0!==i.length||(n=null);i=e.getModel("itemStyle").get("color");{if(i)return i;if(n)return n;if(0===e.depth)return t.option.color[0];n=t.option.color.length;i=t.option.color[function(e){var t=e;for(;1<t.depth;)t=t.parentNode;e=e.getAncestors()[0];return p.indexOf(e.children,t)}(e)%n]}return i}(t,r);h=t,c=u,i.getData().setItemVisual(h.dataIndex,"color",c);var c,h=a.getModel("itemStyle").getItemStyle();h="normal"===n?h:(c=a.getModel(n+".itemStyle").getItemStyle(),p.merge(c,h)),h=p.defaults({lineJoin:"bevel",fill:h.fill||u},h),e?(o.setShape(l),o.shape.r=s.r0,f.updateProps(o,{shape:{r:s.r}},i,t.dataIndex),o.useStyle(h)):"object"==typeof h.fill&&h.fill.type||"object"==typeof o.style.fill&&o.style.fill.type?(f.updateProps(o,{shape:l},i),o.useStyle(h)):f.updateProps(o,{shape:l,style:h},i),this._updateLabel(i,u,n);a=a.getShallow("cursor");a&&o.attr("cursor",a),e&&(e=i.getShallow("highlightPolicy"),this._initEvents(o,t,i,e)),this._seriesModel=i||this._seriesModel,this._ecModel=r||this._ecModel,f.setHoverStyle(this)},n.onEmphasis=function(r){var o=this;this.node.hostTree.root.eachNode(function(e){var t,n,i;e.piece&&(o.node===e?e.piece.updateData(!1,e,"emphasis"):(t=e,n=o.node,(i=r)!==a&&(i===l?t===n:i===s?t===n||t.isAncestorOf(n):t===n||t.isDescendantOf(n))?e.piece.childAt(0).trigger("highlight"):r!==a&&e.piece.childAt(0).trigger("downplay")))})},n.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},n.onHighlight=function(){this.updateData(!1,this.node,"highlight")},n.onDownplay=function(){this.updateData(!1,this.node,"downplay")},n._updateLabel=function(e,t,n){var i=this.node.getModel(),r=i.getModel("label"),o="normal"===n||"emphasis"===n?r:i.getModel(n+".label"),a=i.getModel("emphasis.label"),s=o.get("formatter"),l=p.retrieve(e.getFormattedLabel(this.node.dataIndex,s?n:"normal",null,null,"label"),this.node.name);!1===d("show")&&(l="");var u=this.node.getLayout(),c=(c=null==(c=o.get("minAngle"))?r.get("minAngle"):c)/180*Math.PI,i=u.endAngle-u.startAngle;null!=c&&Math.abs(i)<c&&(l="");e=this.childAt(1);f.setLabelStyle(e.style,e.hoverStyle||{},r,a,{defaultText:o.getShallow("show")?l:null,autoColor:t,useInsideStyle:!0});var h,s=(u.startAngle+u.endAngle)/2,n=Math.cos(s),i=Math.sin(s),c=d("position"),a=d("distance")||0,t=d("align");"outside"===c?(h=u.r+a,t=s>Math.PI/2?"right":"left"):t&&"center"!==t?"left"===t?(h=u.r0+a,s>Math.PI/2&&(t="right")):"right"===t&&(h=u.r-a,s>Math.PI/2&&(t="left")):(h=(u.r+u.r0)/2,t="center"),e.attr("style",{text:l,textAlign:t,textVerticalAlign:d("verticalAlign")||"middle",opacity:d("opacity")});n=h*n+u.cx,u=h*i+u.cy;e.attr("position",[n,u]);n=d("rotate"),u=0;function d(e){var t=o.get(e);return null==t?r.get(e):t}"radial"===n?(u=-s)<-Math.PI/2&&(u+=Math.PI):"tangential"===n?(u=Math.PI/2-s)>Math.PI/2?u-=Math.PI:u<-Math.PI/2&&(u+=Math.PI):"number"==typeof n&&(u=n*Math.PI/180),e.attr("rotation",u)},n._initEvents=function(e,t,n,i){e.off("mouseover").off("mouseout").off("emphasis").off("normal");function r(){a.onEmphasis(i)}function o(){a.onNormal()}var a=this;n.isAnimationEnabled()&&e.on("mouseover",r).on("mouseout",o).on("emphasis",r).on("normal",o).on("downplay",function(){a.onDownplay()}).on("highlight",function(){a.onHighlight()})},p.inherits(i,f.Group),e.exports=i},function(e,t,n){var i=n(3),o=n(84),a="sunburstRootToNode";i.registerAction({type:a,update:"updateView"},function(r,e){e.eachComponent({mainType:"series",subType:"sunburst",query:r},function(e,t){var n=o.retrieveTargetInfo(r,[a],e);{var i;n&&((i=e.getViewRoot())&&(r.direction=o.aboveViewRoot(i,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node))}})});var r="sunburstHighlight";i.registerAction({type:r,update:"updateView"},function(n,e){e.eachComponent({mainType:"series",subType:"sunburst",query:n},function(e,t){e=o.retrieveTargetInfo(n,[r],e);e&&(n.highlight=e.node)})});i.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(n,e){e.eachComponent({mainType:"series",subType:"sunburst",query:n},function(e,t){n.unhighlight=!0})})},function(e,t,n){var C=n(8).parsePercent,S=n(1),s=Math.PI/180;function A(e,t){if("function"==typeof t)return e.sort(t);var i="asc"===t;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0==n?(e.dataIndex-t.dataIndex)*(i?-1:1):n})}e.exports=function(e,t,a,n){t.eachSeriesByType(e,function(e){var t=e.get("center"),n=e.get("radius");S.isArray(n)||(n=[0,n]),S.isArray(t)||(t=[t,t]);var i=a.getWidth(),r=a.getHeight(),l=Math.min(i,r),u=C(t[0],i),c=C(t[1],r),h=C(n[0],l/2),i=C(n[1],l/2),t=-e.get("startAngle")*s,d=e.get("minAngle")*s,p=e.getData().tree.root,r=e.getViewRoot(),f=r.depth,n=e.get("sort");null!=n&&!function t(e,n){var i=e.children||[];e.children=A(i,n);i.length&&S.each(e.children,function(e){t(e,n)})}(r,n);var o=0;S.each(r.children,function(e){isNaN(e.getValue())||o++});var m=r.getValue(),g=Math.PI/(m||o)*2,v=0<r.depth,n=r.height-(v?-1:1),y=(i-h)/(n||1),x=e.get("clockwise"),b=e.get("stillShowZeroSum"),_=x?1:-1,w=function(e,t){if(e){var n,i,r,o,a,s=t;return e!==p&&(r=e.getValue(),s=t+_*(n=(n=0===m&&b?g:r*g)<d?d:n),o=e.depth-f-(v?-1:1),i=h+y*o,r=h+y*(1+o),null!=(o=e.getModel()).get("r0")&&(i=C(o.get("r0"),l/2)),null!=o.get("r")&&(r=C(o.get("r"),l/2)),e.setLayout({angle:n,startAngle:t,endAngle:s,clockwise:x,cx:u,cy:c,r0:i,r:r})),e.children&&e.children.length&&(a=0,S.each(e.children,function(e){a+=w(e,t+a)})),s-t}};v&&(e=2*Math.PI,p.setLayout({angle:e,startAngle:t,endAngle:t+e,clockwise:x,cx:u,cy:c,r0:h,r:h+y})),w(r,t)})}},function(e,t,n){n(14).__DEV__;var y=n(1),x=n(6),b=n(202).getDefaultLabel,i=n(62),_=n(155).getLayoutOnAxis,v=n(81),r=n(31),o=n(26),a=n(56),l=n(126).createClipPath,s=n(684),u=n(685),c=n(686),h=n(687),n=n(688),d=x.CACHED_LABEL_STYLE_PROPERTIES,w=["itemStyle"],C=["emphasis","itemStyle"],S=["label"],A=["emphasis","label"],p="e\0\0",M={cartesian2d:s,geo:u,singleAxis:c,polar:h,calendar:n};function T(e,t,n,i,r){null==n[e]||r||(t[e]=n[e],n[e]=i[e])}function f(r,o,t,n){var i=r.get("renderItem"),a=r.coordinateSystem,e={};a&&(e=a.prepareCustoms?a.prepareCustoms():M[a.type](a));var s,l,u,c,h,d,p,f=y.defaults({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:function(e,t){return null==t&&(t=u),o.get(o.getDimension(e||0),t)},style:function(e,t){v(t=null==t?u:t);var n=c.getModel(w).getItemStyle();null!=p&&(n.fill=p);var i=o.getItemVisual(t,"opacity");null!=i&&(n.opacity=i);i=e?O(e,h):h;return x.setTextStyle(n,i,null,{autoColor:p,isRectText:!0}),n.text=i.getShallow("show")?y.retrieve2(r.getFormattedLabel(t,"normal"),b(o,t)):null,e&&N(n,e),n},styleEmphasis:function(e,t){v(t=null==t?u:t);var n=c.getModel(C).getItemStyle(),i=e?O(e,d):d;return x.setTextStyle(n,i,null,{isRectText:!0},!0),n.text=i.getShallow("show")?y.retrieve3(r.getFormattedLabel(t,"emphasis"),r.getFormattedLabel(t,"normal"),b(o,t)):null,e&&N(n,e),n},visual:function(e,t){return null==t&&(t=u),o.getItemVisual(t,e)},barLayout:function(e){if(a.getBaseAxis){var t=a.getBaseAxis();return _(y.defaults({axis:t},e),n)}},currentSeriesIndices:function(){return t.getCurrentSeriesIndices()},font:function(e){return x.getFont(e,t)}},e.api||{}),m={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:e.coordSys,dataInsideLength:o.count(),encode:(s=r.getData(),l={},y.each(s.dimensions,function(e,t){var n=s.getDimensionInfo(e);n.isExtraCoord||(e=n.coordDim,(l[e]=l[e]||[])[n.coordDimIndex]=t)}),l)},g=!0;return function(e,t){return u=e,g=!0,i&&i(y.defaults({dataIndexInside:e,dataIndex:o.getRawIndex(e),actionType:t?t.type:null},m),f)};function v(e){null==e&&(e=u),g&&(c=o.getItemModel(e),h=c.getModel(S),d=c.getModel(A),p=o.getItemVisual(e,"color"),g=!1)}}function m(e,t,n,i,r,o){return(e=k(e,t,n,i,r,o,!0))&&o.setItemGraphicEl(t,e),e}function k(e,t,n,i,r,o,a){var s=!n,l=(n=n||{}).type,u=n.shape,c=n.style;if(e&&(s||null!=l&&l!==e.__customGraphicType||"path"===l&&((d=u)&&(d.hasOwnProperty("pathData")||d.hasOwnProperty("d")))&&P(u)!==e.__customPathData||"image"===l&&E(c,"image")&&c.image!==e.__customImagePath||"text"===l&&E(u,"text")&&c.text!==e.__customText)&&(r.remove(e),e=null),!s){var h,d,p,f,m,g=!e;return e=e||function(e){var t=e.type;if("path"===t){var n=e.shape,i=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,r=P(n);(n=x.makePath(r,null,i,n.layout||"center")).__customPathData=r}else if("image"===t)(n=new x.Image({})).__customImagePath=e.style.image;else if("text"===t)(n=new x.Text({})).__customText=e.style.text;else if("group"===t)n=new x.Group;else{if("compoundPath"===t)throw new Error('"compoundPath" is not supported yet.');n=new(x.getShapeClass(t))}return n.__customGraphicType=t,n.name=e.name,n}(n),h=e,d=t,u=i,p=g,c=a,s={},m=(g=n).style||{},g.shape&&(s.shape=y.clone(g.shape)),g.position&&(s.position=g.position.slice()),g.scale&&(s.scale=g.scale.slice()),g.origin&&(s.origin=g.origin.slice()),g.rotation&&(s.rotation=g.rotation),"image"===h.type&&g.style&&(f=s.style={},y.each(["x","y","width","height"],function(e){T(e,f,m,h.style,p)})),"text"===h.type&&g.style&&(f=s.style={},y.each(["x","y"],function(e){T(e,f,m,h.style,p)}),!m.hasOwnProperty("textFill")&&m.fill&&(m.textFill=m.fill),!m.hasOwnProperty("textStroke")&&m.stroke&&(m.textStroke=m.stroke)),"group"!==h.type&&(h.useStyle(m),p&&(h.style.opacity=0,a=m.opacity,x.initProps(h,{style:{opacity:a=null==a?1:a}},u,d))),p?h.attr(s):x.updateProps(h,s,u,d),g.hasOwnProperty("z2")&&h.attr("z2",g.z2||0),g.hasOwnProperty("silent")&&h.attr("silent",g.silent),g.hasOwnProperty("invisible")&&h.attr("invisible",g.invisible),g.hasOwnProperty("ignore")&&h.attr("ignore",g.ignore),g.hasOwnProperty("info")&&h.attr("info",g.info),g=g.styleEmphasis,x.setElementHoverStyle(h,g),c&&x.setAsHighDownDispatcher(h,!1!==g),"group"===l&&function(e,t,n,i,r){var o=n.children,a=o?o.length:0,s=n.$mergeChildren,n="byName"===s||n.diffChildrenByName,s=!1===s;if(a||n||s)if(n)!function(e){new v(e.oldChildren,e.newChildren,D,D,e).add(I).update(I).remove(L).execute()}({oldChildren:e.children()||[],newChildren:o||[],dataIndex:t,animatableModel:i,group:e,data:r});else{s&&e.removeAll();for(var l=0;l<a;l++)o[l]&&k(e.childAt(l),t,o[l],i,e,r)}}(e,t,n,i,o),r.add(e),e}}function D(e,t){e=e&&e.name;return null!=e?e:p+t}function I(e,t){var n=this.context,e=null!=e?n.newChildren[e]:null;k(null!=t?n.oldChildren[t]:null,n.dataIndex,e,n.animatableModel,n.group,n.data)}function O(n,e){var i=new o({},e);return y.each(d,function(e,t){n.hasOwnProperty(e)&&(i.option[t]=n[e])}),i}function N(e,t){for(var n in t)!t.hasOwnProperty(n)&&d.hasOwnProperty(n)||(e[n]=t[n])}function L(e){var t=this.context,e=t.oldChildren[e];e&&t.group.remove(e)}function P(e){return e&&(e.pathData||e.d)}function E(e,t){return e&&e.hasOwnProperty(t)}r.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(e,t){return i(this.getSource(),this)},getDataParams:function(e,t,n){var i=r.prototype.getDataParams.apply(this,arguments);return n&&(i.info=n.info),i}}),a.extend({type:"custom",_data:null,render:function(n,e,t,i){var r=this._data,o=n.getData(),a=this.group,s=f(n,o,e,t);o.diff(r).add(function(e){m(null,e,s(e,i),n,a,o)}).update(function(e,t){m(r.getItemGraphicEl(t),e,s(e,i),n,a,o)}).remove(function(e){e=r.getItemGraphicEl(e);e&&a.remove(e)}).execute();t=n.get("clip",!0)?l(n.coordinateSystem,!1,n):null;t?a.setClipPath(t):a.removeClipPath(),this._data=o},incrementalPrepareRender:function(e,t,n){this.group.removeAll(),this._data=null},incrementalRender:function(e,t,n,i,r){var o=t.getData(),a=f(t,o,n,i);function s(e){e.isGroup||(e.incremental=!0,e.useHoverLayer=!0)}for(var l=e.start;l<e.end;l++)m(null,l,a(l,r),t,this.group,o).traverse(s)},dispose:y.noop,filterForExposedEvent:function(e,t,n,i){var r=t.element;if(null==r||n.name===r)return!0;for(;(n=n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1}})},function(e,t,n){var o=n(1);function i(i,r){return r=r||[0,0],o.map(["x","y"],function(e,t){var n=this.getAxis(e),e=r[t],t=i[t]/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(e-t)-n.dataToCoord(e+t))},this)}e.exports=function(t){var e=t.grid.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:o.bind(i,t)}}}},function(e,t,n){var i=n(1);function r(o,a){return a=a||[0,0],i.map([0,1],function(e){var t=a[e],n=o[e]/2,i=[],r=[];return i[e]=t-n,r[e]=t+n,i[1-e]=r[1-e]=a[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(r)[e])},this)}e.exports=function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:i.bind(r,t)}}}},function(e,t,n){var i=n(1);function r(e,t){var n=this.getAxis(),t=t instanceof Array?t[0]:t,e=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(t-e)-n.dataToCoord(t+e))}e.exports=function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:i.bind(r,t)}}}},function(e,t,n){var s=n(1);function a(o,a){return s.map(["Radius","Angle"],function(e,t){var n=this["get"+e+"Axis"](),i=a[t],r=o[t]/2,t="dataTo"+e,r="category"===n.type?n.getBandWidth():Math.abs(n[t](i-r)-n[t](i+r));return r="Angle"===e?r*Math.PI/180:r},this)}e.exports=function(i){var r=i.getRadiusAxis(),o=i.getAngleAxis(),e=r.getExtent();return e[0]>e[1]&&e.reverse(),{coordSys:{type:"polar",cx:i.cx,cy:i.cy,r:e[1],r0:e[0]},api:{coord:s.bind(function(e){var t=r.dataToRadius(e[0]),n=o.dataToAngle(e[1]),e=i.coordToPoint([t,n]);return e.push(t,n*Math.PI/180),e}),size:s.bind(a,i)}}}},function(e,t){e.exports=function(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(e,t){return n.dataToPoint(e,t)}}}}},function(e,t,n){n(127),n(340),n(128)},function(e,t,n){var i=n(3),r=n(1),o=n(691);n(218),n(697),n(699),n(128),n(701),i.registerLayout(r.curry(o,"bar")),i.extendComponentView({type:"polar"})},function(e,t,n){var d=n(1),p=n(8).parsePercent,I=n(57).isDimensionStacked;function O(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function N(e,t){return t.dim+e.model.componentIndex}e.exports=function(e,t,n){var k={},D=function(e){var l={};d.each(e,function(e,t){var n=e.getData(),i=e.coordinateSystem,r=i.getBaseAxis(),o=N(i,r),a=r.getExtent(),s="category"===r.type?r.getBandWidth():Math.abs(a[1]-a[0])/n.count(),i=l[o]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},r=i.stacks;l[o]=i;a=O(e);r[a]||i.autoWidthCount++,r[a]=r[a]||{width:0,maxWidth:0};n=p(e.get("barWidth"),s),o=p(e.get("barMaxWidth"),s),s=e.get("barGap"),e=e.get("barCategoryGap");n&&!r[a].width&&(n=Math.min(i.remainedWidth,n),r[a].width=n,i.remainedWidth-=n),o&&(r[a].maxWidth=o),null!=s&&(i.gap=s),null!=e&&(i.categoryGap=e)});var h={};return d.each(l,function(e,n){h[n]={};var t=e.stacks,i=e.bandWidth,i=p(e.categoryGap,i),r=p(e.gap,1),o=e.remainedWidth,a=e.autoWidthCount,s=(o-i)/(a+(a-1)*r),s=Math.max(s,0);d.each(t,function(e,t){var n=e.maxWidth;n&&n<s&&(n=Math.min(n,o),e.width&&(n=Math.min(n,e.width)),o-=n,e.width=n,a--)}),s=(o-i)/(a+(a-1)*r),s=Math.max(s,0);var l,u=0;d.each(t,function(e,t){e.width||(e.width=s),u+=(l=e).width*(1+r)}),l&&(u-=l.width*r);var c=-u/2;d.each(t,function(e,t){h[n][t]=h[n][t]||{offset:c,width:e.width},c+=e.width*(1+r)})}),h}(d.filter(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type}));t.eachSeriesByType(e,function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=N(n,i),o=O(e),r=D[r][o],a=r.offset,s=r.width,l=n.getOtherAxis(i),u=e.coordinateSystem.cx,c=e.coordinateSystem.cy,h=e.get("barMinHeight")||0,d=e.get("barMinAngle")||0;k[o]=k[o]||[];for(var p=t.mapDimension(l.dim),f=t.mapDimension(i.dim),m=I(t,p),g="radius"!==i.dim||!e.get("roundCap",!0),v="radius"===l.dim?l.dataToRadius(0):l.dataToAngle(0),y=0,x=t.count();y<x;y++){var b,_,w,C,S=t.get(p,y),A=t.get(f,y),M=0<=S?"p":"n",T=v;m&&(k[o][A]||(k[o][A]={p:v,n:v}),T=k[o][A][M]),"radius"===l.dim?(_=l.dataToRadius(S)-v,C=i.dataToAngle(A),w=(b=T)+(_=Math.abs(_)<h?(_<0?-1:1)*h:_),C=(_=C-a)-s,m&&(k[o][A][M]=w)):(S=l.dataToAngle(S,g)-v,w=(b=i.dataToRadius(A)+a)+s,C=(_=T)+(S=Math.abs(S)<d?(S<0?-1:1)*d:S),m&&(k[o][A][M]=C)),t.setItemLayout(y,{cx:u,cy:c,r0:b,r:w,startAngle:-_*Math.PI/180,endAngle:-C*Math.PI/180})}}},this)}},function(e,t,n){var i=n(693),r=n(694),n=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new i,this._angleAxis=new r,this._radiusAxis.polar=this._angleAxis.polar=this};n.prototype={type:"polar",axisPointerEnabled:!0,constructor:n,dimensions:["radius","angle"],model:null,containPoint:function(e){e=this.pointToCoord(e);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(e){e=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},pointToData:function(e,t){e=this.pointToCoord(e);return[this._radiusAxis.radiusToData(e[0],t),this._angleAxis.angleToData(e[1],t)]},pointToCoord:function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),e=i.getExtent(),r=Math.min(e[0],e[1]),o=Math.max(e[0],e[1]);i.inverse?r=o-360:o=r+360;i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var a=Math.atan2(-n,t)/Math.PI*180,s=a<r?1:-1;a<r||o<a;)a+=360*s;return[i,a]},coordToPoint:function(e){var t=e[0],e=e[1]/180*Math.PI;return[Math.cos(e)*t+this.cx,-Math.sin(e)*t+this.cy]},getArea:function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,e=t-this.cy,t=n*n+e*e,n=this.r,e=this.r0;return t<=n*n&&e*e<=t}}}},e.exports=n},function(e,t,n){var i=n(1),r=n(68);function o(e,t){r.call(this,"radius",e,t),this.type="category"}o.prototype={constructor:o,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToRadius:r.prototype.dataToCoord,radiusToData:r.prototype.coordToData},i.inherits(o,r),e.exports=o},function(e,t,n){var i=n(1),o=n(41),r=n(68),a=(0,n(10).makeInner)();function s(e,t){r.call(this,"angle",e,t=t||[0,360]),this.type="category"}s.prototype={constructor:s,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToAngle:r.prototype.dataToCoord,angleToData:r.prototype.coordToData,calculateCategoryInterval:function(){var e=this.getLabelModel(),t=this.scale,n=t.getExtent(),i=t.count();if(n[1]-n[0]<1)return 0;var r=n[0],t=this.dataToCoord(r+1)-this.dataToCoord(r),n=Math.abs(t),t=o.getBoundingRect(r,e.getFont(),"center","top"),r=Math.max(t.height,7)/n;isNaN(r)&&(r=1/0);e=Math.max(0,Math.floor(r)),t=a(this.model),n=t.lastAutoInterval,r=t.lastTickCount;return null!=n&&null!=r&&Math.abs(n-e)<=1&&Math.abs(r-i)<=1&&e<n?e=n:(t.lastTickCount=i,t.lastAutoInterval=e),e}},i.inherits(s,r),e.exports=s},function(e,t,n){var i=n(3);n(696);i=i.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});e.exports=i},function(e,t,n){var i=n(1),r=n(30),o=n(156),n=n(100),r=r.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});i.merge(r.prototype,n);n={splitNumber:5};function a(e,t){return t.type||(t.data?"category":"value")}o("angle",r,a,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),o("radius",r,a,n)},function(e,t,n){n(218),n(698)},function(e,t,n){var g=n(1),v=n(6),m=n(26),i=n(82),y=n(69),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function d(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),n=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:n[0],y2:n[1]}}function x(e){return e.getRadiusAxis().inverse?0:1}function u(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}i=i.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){var n,i,r,o,a,s;this.group.removeAll(),t.get("show")&&(n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),u(s=g.map(n.getViewLabels(),function(e){return(e=g.clone(e)).coord=n.dataToCoord(e.tickValue),e})),u(o),g.each(l,function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,i,o,a,r,s)},this))},_axisLine:function(e,t,n,i,r){var o=e.getModel("axisLine.lineStyle"),a=x(t),e=a?0:1,o=0===r[e]?new v.Circle({shape:{cx:t.cx,cy:t.cy,r:r[a]},style:o.getLineStyle(),z2:1,silent:!0}):new v.Ring({shape:{cx:t.cx,cy:t.cy,r:r[a],r0:r[e]},style:o.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(e,t,n,i,r){var o=e.getModel("axisTick"),a=(o.get("inside")?-1:1)*o.get("length"),s=r[x(t)],n=g.map(n,function(e){return new v.Line({shape:d(t,[s,s+a],e.coord)})});this.group.add(v.mergePath(n,{style:g.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_minorTick:function(e,t,n,i,r){if(i.length){for(var o=e.getModel("axisTick"),a=e.getModel("minorTick"),s=(o.get("inside")?-1:1)*a.get("length"),l=r[x(t)],u=[],c=0;c<i.length;c++)for(var h=0;h<i[c].length;h++)u.push(new v.Line({shape:d(t,[l,l+s],i[c][h].coord)}));this.group.add(v.mergePath(u,{style:g.defaults(a.getModel("lineStyle").getLineStyle(),g.defaults(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(l,u,e,t,c,n){var h=l.getCategories(!0),d=l.getModel("axisLabel"),p=d.get("margin"),f=l.get("triggerEvent");g.each(n,function(e,t){var n=d,i=e.tickValue,r=c[x(u)],o=u.coordToPoint([r+p,e.coord]),a=u.cx,s=u.cy,a=Math.abs(o[0]-a)/r<.3?"center":o[0]>a?"left":"right",s=Math.abs(o[1]-s)/r<.3?"middle":o[1]>s?"top":"bottom";h&&h[i]&&h[i].textStyle&&(n=new m(h[i].textStyle,d,d.ecModel));i=new v.Text({silent:y.isLabelSilent(l)});this.group.add(i),v.setTextStyle(i.style,n,{x:o[0],y:o[1],textFill:n.getTextColor()||l.get("axisLine.lineStyle.color"),text:e.formattedLabel,textAlign:a,textVerticalAlign:s}),f&&(i.eventData=y.makeAxisEventDataBase(l),i.eventData.targetType="axisLabel",i.eventData.value=e.rawLabel)},this)},_splitLine:function(e,t,n,i,r){for(var o=e.getModel("splitLine").getModel("lineStyle"),a=0,s=(s=o.get("color"))instanceof Array?s:[s],l=[],u=0;u<n.length;u++){var c=a++%s.length;l[c]=l[c]||[],l[c].push(new v.Line({shape:d(t,r,n[u].coord)}))}for(u=0;u<l.length;u++)this.group.add(v.mergePath(l[u],{style:g.defaults({stroke:s[u%s.length]},o.getLineStyle()),silent:!0,z:e.get("z")}))},_minorSplitLine:function(e,t,n,i,r){if(i.length){for(var o=e.getModel("minorSplitLine").getModel("lineStyle"),a=[],s=0;s<i.length;s++)for(var l=0;l<i[s].length;l++)a.push(new v.Line({shape:d(t,r,i[s][l].coord)}));this.group.add(v.mergePath(a,{style:o.getLineStyle(),silent:!0,z:e.get("z")}))}},_splitArea:function(e,t,n,i,r){if(n.length){for(var o=e.getModel("splitArea").getModel("areaStyle"),a=0,s=(s=o.get("color"))instanceof Array?s:[s],l=[],u=Math.PI/180,c=-n[0].coord*u,h=Math.min(r[0],r[1]),d=Math.max(r[0],r[1]),p=e.get("clockwise"),f=1;f<n.length;f++){var m=a++%s.length;l[m]=l[m]||[],l[m].push(new v.Sector({shape:{cx:t.cx,cy:t.cy,r0:h,r:d,startAngle:c,endAngle:-n[f].coord*u,clockwise:p},silent:!0})),c=-n[f].coord*u}for(f=0;f<l.length;f++)this.group.add(v.mergePath(l[f],{style:g.defaults({fill:s[f%s.length]},o.getAreaStyle()),silent:!0}))}}});e.exports=i},function(e,t,n){n(218),n(700)},function(e,t,n){var d=n(1),p=n(6),h=n(69),n=n(82),f=["axisLine","axisTickLabel","axisName"],m=["splitLine","splitArea","minorSplitLine"],n=n.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){var n,i,r,o,a,s,l,u,c;this.group.removeAll(),t.get("show")&&(n=t.axis,l=(i=n.polar).getAngleAxis(),r=n.getTicksCoords(),o=n.getMinorTicksCoords(),a=l.getExtent()[0],s=n.getExtent(),c=t,u=a,c={position:[(l=i).cx,l.cy],rotation:u/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:c.getModel("axisLabel").get("rotate"),z2:1},c=new h(t,c),d.each(f,c.add,c),this.group.add(c.getGroup()),d.each(m,function(e){t.get(e+".show")&&!n.scale.isBlank()&&this["_"+e](t,i,a,s,r,o)},this))},_splitLine:function(e,t,n,i,r){for(var o=e.getModel("splitLine").getModel("lineStyle"),a=0,s=(s=o.get("color"))instanceof Array?s:[s],l=[],u=0;u<r.length;u++){var c=a++%s.length;l[c]=l[c]||[],l[c].push(new p.Circle({shape:{cx:t.cx,cy:t.cy,r:r[u].coord}}))}for(u=0;u<l.length;u++)this.group.add(p.mergePath(l[u],{style:d.defaults({stroke:s[u%s.length],fill:null},o.getLineStyle()),silent:!0}))},_minorSplitLine:function(e,t,n,i,r,o){if(o.length){for(var e=e.getModel("minorSplitLine").getModel("lineStyle"),a=[],s=0;s<o.length;s++)for(var l=0;l<o[s].length;l++)a.push(new p.Circle({shape:{cx:t.cx,cy:t.cy,r:o[s][l].coord}}));this.group.add(p.mergePath(a,{style:d.defaults({fill:null},e.getLineStyle()),silent:!0}))}},_splitArea:function(e,t,n,i,r){if(r.length){for(var o=e.getModel("splitArea").getModel("areaStyle"),a=0,s=(s=o.get("color"))instanceof Array?s:[s],l=[],u=r[0].coord,c=1;c<r.length;c++){var h=a++%s.length;l[h]=l[h]||[],l[h].push(new p.Sector({shape:{cx:t.cx,cy:t.cy,r0:u,r:r[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),u=r[c].coord}for(c=0;c<l.length;c++)this.group.add(p.mergePath(l[c],{style:d.defaults({fill:s[c%s.length]},o.getAreaStyle()),silent:!0}))}}});e.exports=n},function(e,t,n){var h=n(17),i=n(203),d=n(6),p=n(158),f=n(35),m=n(69),n=n(82),i=i.extend({makeElOption:function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a,s=o.polar,l=s.getOtherAxis(o).getExtent(),u=o["dataTo"+h.capitalFirst(o.dim)](t),c=i.get("type");c&&"none"!==c&&(a=p.buildElStyle(i),(l=g[c](o,s,u,l,a)).style=a,e.graphicKey=l.type,e.pointer=l);s=function(e,t,n,i){var r=t.axis,o=r.dataToCoord(e),a=n.getAngleAxis().getExtent()[0];a=a/180*Math.PI;var s,e=n.getRadiusAxis().getExtent();{var l,u;u="radius"===r.dim?(l=f.create(),f.rotate(l,l,a),f.translate(l,l,[n.cx,n.cy]),s=d.applyTransform([o,-i],l),l=t.getModel("axisLabel").get("rotate")||0,a=m.innerTextLayout(a,l*Math.PI/180,-1),l=a.textAlign,a.textVerticalAlign):(e=e[1],s=n.coordToPoint([e+i,o]),o=n.cx,u=n.cy,l=Math.abs(s[0]-o)/e<.3?"center":s[0]>o?"left":"right",Math.abs(s[1]-u)/e<.3?"middle":s[1]>u?"top":"bottom")}return{position:s,align:l,verticalAlign:u}}(t,n,s,i.get("label.margin"));p.buildLabelElOption(e,n,i,r,s)}});var g={line:function(e,t,n,i,r){return"angle"===e.dim?{type:"Line",shape:p.makeLineShape(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i,r){var o=Math.max(1,e.getBandWidth()),a=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:p.makeSectorShape(t.cx,t.cy,i[0],i[1],(-n-o/2)*a,(o/2-n)*a)}:{type:"Sector",shape:p.makeSectorShape(t.cx,t.cy,n-o/2,n+o/2,0,2*Math.PI)}}};n.registerAxisPointerClass("PolarAxisPointer",i),e.exports=i},function(e,t,n){var i=n(3),o=n(1);function r(r,e){e.update="updateView",i.registerAction(e,function(n,e){var i={};return e.eachComponent({mainType:"geo",query:n},function(t){t[r](n.name);var e=t.coordinateSystem;o.each(e.regions,function(e){i[e.name]=t.isSelected(e.name)||!1})}),{selected:i,name:n.name}})}n(703),n(211),n(704),n(353),r("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),r("select",{type:"geoSelect",event:"geoselected"}),r("unSelect",{type:"geoUnSelect",event:"geounselected"})},function(e,t,n){var i=n(1),r=n(10),o=n(30),a=n(26),s=n(207),l=n(211),n=o.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){o.prototype.init.apply(this,arguments),r.defaultEmphasis(e,"label",["show"])},optionUpdated:function(){var e=this.option,n=this;e.regions=l.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=i.reduce(e.regions||[],function(e,t){return t.name&&e.set(t.name,new a(t,n)),e},i.createHashMap()),this.updateSelectedMap(e.regions)},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",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(e){return this._optionModelMap.get(e)||new a(null,this,this.ecModel)},getFormattedLabel:function(e,t){t=t||"normal";var n=this.getRegionModel(e).get(("normal"===t?"":t+".")+"label.formatter"),i={name:e};return"function"==typeof n?(i.status=t,n(i)):"string"==typeof n?n.replace("{a}",null!=e?e:""):void 0},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});i.mixin(n,s),e.exports=n},function(e,t,n){var i=n(351),n=n(3).extendComponentView({type:"geo",init:function(e,t){t=new i(t,!0);this._mapDraw=t,this.group.add(t.group)},render:function(e,t,n,i){var r;i&&"geoToggleSelect"===i.type&&i.from===this.uid||(r=this._mapDraw,e.get("show")?r.draw(e,t,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent"))},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});e.exports=n},function(e,t,n){n(706),n(707),n(708)},function(e,t,n){var u=n(1),c=n(15),o=n(8),n=n(51);function i(e,t,n){this._model=e}function r(e,t,n,i){var r=n.calendarModel,n=n.seriesModel,n=r?r.coordinateSystem:n?n.coordinateSystem:null;return n===this?n[e](i):null}i.prototype={constructor:i,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(e){var t=(e=o.parseDate(e)).getFullYear(),n=(n=e.getMonth()+1)<10?"0"+n:n,i=(i=e.getDate())<10?"0"+i:i,r=e.getDay();return{y:t,m:n,d:i,day:r=Math.abs((r+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+n+"-"+i,date:e}},getNextNDay:function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},update:function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.get("cellSize").slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];u.each([0,1],function(e){l(r,e)&&(o[i[e]]=r[e]*a[e])});var t={width:t.getWidth(),height:t.getHeight()},s=this._rect=c.getLayoutRect(o,t);function l(e,t){return null!=e[t]&&"auto"!==e[t]}u.each([0,1],function(e){l(r,e)||(r[e]=s[i[e]]/a[e])}),this._sw=r[0],this._sh=r[1]},dataToPoint:function(e,t){u.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,e=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+864e5))return[NaN,NaN];n=n.day,e=this._getRangeInfo([i.start.time,e]).nthWeek;return"vertical"===this._orient?[this._rect.x+n*this._sw+this._sw/2,this._rect.y+e*this._sh+this._sh/2]:[this._rect.x+e*this._sw+this._sw/2,this._rect.y+n*this._sh+this._sh/2]},pointToData:function(e){e=this.pointToDate(e);return e&&e.time},dataToRect:function(e,t){t=this.dataToPoint(e,t);return{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},pointToDate:function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,e=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,e):this._getDateByWeeksAndDay(t,n-1,e)},convertToPixel:u.curry(r,"dataToPoint"),convertFromPixel:u.curry(r,"pointToData"),_initRangeOption:function(){var e,t,n=this._model.get("range"),i=n;u.isArray(i)&&1===i.length&&(i=i[0]),/^\d{4}$/.test(i)&&(n=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)&&((t=(e=this.getDateInfo(i)).date).setMonth(t.getMonth()+1),t=this.getNextNDay(t,-1),n=[e.formatedDate,t.formatedDate]),/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(n=[i,i]);i=this._getRangeInfo(n);return i.start.time>i.end.time&&n.reverse(),n},_getRangeInfo:function(e){var t;(e=[this.getDateInfo(e[0]),this.getDateInfo(e[1])])[0].time>e[1].time&&(t=!0,e.reverse());var n=Math.floor(e[1].time/864e5)-Math.floor(e[0].time/864e5)+1,i=new Date(e[0].time),r=i.getDate(),o=e[1].date.getDate();i.setDate(r+n-1);var a=i.getDate();if(a!==o)for(var s=0<i.getTime()-e[1].time?1:-1;(a=i.getDate())!==o&&0<(i.getTime()-e[1].time)*s;)n-=s,i.setDate(a-s);var l=Math.floor((n+e[0].day+6)/7),r=t?1-l:l-1;return t&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:l,nthWeek:r,fweek:e[0].day,lweek:e[1].day}},_getDateByWeeksAndDay:function(e,t,n){n=this._getRangeInfo(n);if(e>n.weeks||0===e&&t<n.fweek||e===n.weeks&&t>n.lweek)return!1;e=7*(e-1)-n.fweek+t,t=new Date(n.start.time);return t.setDate(n.start.d+e),this.getDateInfo(t)}},i.dimensions=i.prototype.dimensions,i.getDimensionsInfo=i.prototype.getDimensionsInfo,i.create=function(e,t){var n=[];return e.eachComponent("calendar",function(e){var t=new i(e);n.push(t),e.coordinateSystem=t}),e.eachSeries(function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("calendarIndex")||0])}),n},n.register("calendar",i),e.exports=i},function(e,t,n){var r=n(1),i=n(30),n=n(15),o=n.getLayoutParams,a=n.sizeCalculable,s=n.mergeLayoutParam,l=i.extend({type:"calendar",coordinateSystem:null,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}},init:function(e,t,n,i){var r=o(e);l.superApply(this,"init",arguments),u(e,r)},mergeOption:function(e,t){l.superApply(this,"mergeOption",arguments),u(this.option,e)}});function u(e,t){var n=e.cellSize;r.isArray(n)?1===n.length&&(n[1]=n[0]):n=e.cellSize=[n,n];var i=r.map([0,1],function(e){return a(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]});s(e,t,{type:"box",ignoreSize:i})}e.exports=l},function(e,t,n){var i=n(3),g=n(1),v=n(6),r=n(17),y=n(8),x={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},b={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},i=i.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),r=r.getOrient();this._renderDayRect(e,o,i),this._renderLines(e,o,r,i),this._renderYearText(e,o,r,i),this._renderMonthText(e,r,i),this._renderWeekText(e,o,r,i)},_renderDayRect:function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,l=new v.Rect({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(l)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate);var h=(u=0===c?o.getDateInfo(e.start.y+"-"+e.start.m):u).date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);e=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(e[0]),r._blpoints.push(e[e.length-1]),s&&r._drawSplitline(e,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},_getEdgesPoints:function(e,t,n){e=[e[0].slice(),e[e.length-1].slice()],n="horizontal"===n?0:1;return e[0][n]=e[0][n]-t/2,e[1][n]=e[1][n]+t/2,e},_drawSplitline:function(e,t,n){t=new v.Polyline({z2:20,shape:{points:e},style:t});n.add(t)},_getLinePointsOfOneWeek:function(e,t,n){var i=e.coordinateSystem;t=i.getDateInfo(t);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(t.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(e,t){return"string"==typeof e&&e?r.formatTplSimple(e,t):"function"==typeof e?e(t):t.nameMap},_yearTextPositionControl:function(e,t,n,i,r){t=t.slice();var o=["center","bottom"];"bottom"===i?(t[1]+=r,o=["center","top"]):"left"===i?t[0]-=r:"right"===i?(t[0]+=r,o=["center","top"]):t[1]-=r;r=0;return{rotation:r="left"===i||"right"===i?Math.PI/2:r,position:t,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(e,t,n,i){var r,o,a,s,l,u=e.getModel("yearLabel");u.get("show")&&(r=u.get("margin"),o=(o=u.get("position"))||("horizontal"!==n?"top":"left"),a=((s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,s={top:[a,s[e="horizontal"===n?0:1][1]],bottom:[a,s[1-e][1]],left:[s[1-e][0],l],right:[s[e][0],l]},e=t.start.y,+t.end.y>+t.start.y&&(e=e+"-"+t.end.y),l=u.get("formatter"),e={start:t.start.y,end:t.end.y,nameMap:e},l=this._formatterLabel(l,e),e=new v.Text({z2:30}),v.setTextStyle(e.style,u,{text:l}),e.attr(this._yearTextPositionControl(e,s[o],n,o,r)),i.add(e))},_monthTextPositionControl:function(e,t,n,i,r){var o="left",a="top",s=e[0],e=e[1];return"horizontal"===n?(e+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:e,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(e,t,n){var i=e.getModel("monthLabel");if(i.get("show")){var r=i.get("nameMap"),o=i.get("margin"),a=i.get("position"),e=i.get("align"),s=[this._tlpoints,this._blpoints];g.isString(r)&&(r=x[r.toUpperCase()]||[]);for(var l="start"===a?0:1,u="horizontal"===t?0:1,o="start"===a?-o:o,c="center"===e,h=0;h<s[l].length-1;h++){var d=s[l][h].slice(),p=this._firstDayOfMonth[h];c&&(m=this._firstDayPoints[h],d[u]=(m[u]+s[0][h+1][u])/2);var f=i.get("formatter"),m=r[+p.m-1],m={yyyy:p.y,yy:(p.y+"").slice(2),MM:p.m,M:+p.m,nameMap:m},f=this._formatterLabel(f,m),m=new v.Text({z2:30});g.extend(v.setTextStyle(m.style,i,{text:f}),this._monthTextPositionControl(d,c,t,a,o)),n.add(m)}}},_weekTextPositionControl:function(e,t,n,i,r){var o="center",a="middle",s=e[0],e=e[1],n="start"===n;return"horizontal"===t?(s=s+i+(n?1:-1)*r[0]/2,o=n?"right":"left"):(e=e+i+(n?1:-1)*r[1]/2,a=n?"bottom":"top"),{x:s,y:e,textAlign:o,textVerticalAlign:a}},_renderWeekText:function(e,t,n,i){var r=e.getModel("dayLabel");if(r.get("show")){var o=e.coordinateSystem,a=r.get("position"),s=r.get("nameMap"),l=r.get("margin"),u=o.getFirstDayOfWeek();g.isString(s)&&(s=b[s.toUpperCase()]||[]);var c=o.getNextNDay(t.end.time,7-t.lweek).time,h=[o.getCellWidth(),o.getCellHeight()],l=y.parsePercent(l,h["horizontal"===n?0:1]);"start"===a&&(c=o.getNextNDay(t.start.time,-(7+t.fweek)).time,l=-l);for(var d=0;d<7;d++){var p=o.getNextNDay(c,d),f=o.dataToRect([p.time],!1).center,m=Math.abs((d+u)%7),p=new v.Text({z2:30});g.extend(v.setTextStyle(p.style,r,{text:s[m]}),this._weekTextPositionControl(f,n,a,l,h)),i.add(p)}}}});e.exports=i},function(e,t,n){n(14).__DEV__;var i=n(3),c=n(1),r=n(10),o=n(6),p=n(15),f=n(8).parsePercent,a={path:null,compoundPath:null,group:o.Group,image:o.Image,text:o.Text};i.registerPreprocessor(function(e){var t=e.graphic;c.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])});var s=i.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,s.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var n=this.option,e=(t?n:e).elements,l=n.elements=t?[]:n.elements,n=[];this._flatten(e,n);n=r.mappingToExists(l,n);r.makeIdAndName(n);var u=this._elOptionsToUpdate=[];c.each(n,function(e,t){var n,i,r,o,a,s=e.option;s&&(u.push(s),function(e,t){var n=e.exist;t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId&&((e=t.parentOption)?t.parentId=e.id:n&&(t.parentId=n.parentId));t.parentOption=null}(e,s),n=l,i=t,r=s,o=c.extend({},r),a=n[i],"merge"===(e=r.$action||"merge")?a?(c.merge(a,o,!0),p.mergeLayoutParam(a,o,{ignoreSize:!0}),p.copyLayoutParams(r,a)):n[i]=o:"replace"===e?n[i]=o:"remove"===e&&a&&(n[i]=null),t=l[t],s=s,t&&(t.hv=s.hv=[m(s,["left","right"]),m(s,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=s.width=0),null==t.height&&(t.height=s.height=0))))},this);for(var i=l.length-1;0<=i;i--)null==l[i]?l.splice(i,1):delete l[i].$action},_flatten:function(e,n,i){c.each(e,function(e){var t;e&&(i&&(e.parentOption=i),n.push(e),t=e.children,"group"===e.type&&t&&this._flatten(t,n,e),delete e.children)},this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});function h(e,t,n,i){var r=n.type,n=new(a.hasOwnProperty(r)?a[r]:o.getShapeClass(r))(n);t.add(n),i.set(e,n),n.__ecGraphicId=e}function d(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse(function(e){d(e,t)}),t.removeKey(e.__ecGraphicId),n.remove(e))}function m(t,e){var n;return c.each(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}i.extendComponentView({type:"graphic",init:function(e,t){this._elMap=c.createHashMap(),this._lastGraphicModel},render:function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},_updateElements:function(s){var l,u,e=s.useElOptionsToUpdate();e&&(l=this._elMap,u=this.group,c.each(e,function(e){var t=e.$action,n=e.id,i=l.get(n),r=e.parentId,o=null!=r?l.get(r):u,r=e.style;"text"===e.type&&r&&(e.hv&&e.hv[1]&&(r.textVerticalAlign=r.textBaseline=null),!r.hasOwnProperty("textFill")&&r.fill&&(r.textFill=r.fill),!r.hasOwnProperty("textStroke")&&r.stroke&&(r.textStroke=r.stroke));var a,r=(a=e,a=c.extend({},a),c.each(["id","parentId","$action","hv","bounding"].concat(p.LOCATION_PARAMS),function(e){delete a[e]}),a);t&&"merge"!==t?"replace"===t?(d(i,l),h(n,o,r,l)):"remove"===t&&d(i,l):i?i.attr(r):h(n,o,r,l);n=l.get(n);n&&(n.__ecGraphicWidthOption=e.width,n.__ecGraphicHeightOption=e.height,function(e,t){var n=e.eventData;e.silent||e.ignore||n||(n=e.eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});n&&(n.info=e.info)}(n,s))}))},_relocate:function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,o=t.getWidth(),a=t.getHeight(),s=0;s<n.length;s++){var l,u=n[s];(c=r.get(u.id))&&c.isGroup&&(l=(h=c.parent)===i,c.__ecGraphicWidth=f(c.__ecGraphicWidthOption,l?o:h.__ecGraphicWidth)||0,c.__ecGraphicHeight=f(c.__ecGraphicHeightOption,l?a:h.__ecGraphicHeight)||0)}for(s=n.length-1;0<=s;s--){var c,h,d,u=n[s];(c=r.get(u.id))&&(d=(h=c.parent)===i?{width:o,height:a}:{width:h.__ecGraphicWidth,height:h.__ecGraphicHeight},p.positionElement(c,u,d,null,{hv:u.hv,boundingMode:u.bounding}))}},_clear:function(){var t=this._elMap;t.each(function(e){d(e,t)}),this._elMap=c.createHashMap()},dispose:function(){this._clear()}})},function(e,t,n){n(711),n(712),n(713),n(714),n(715),n(716),n(721)},function(e,t,n){var i=n(3),r=n(1),o=n(70),a=i.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){a.superApply(this,"optionUpdated",arguments),r.each(this.option.feature,function(e,t){t=o.get(t);t&&r.merge(e,t.defaultOption)})},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}}});e.exports=a},function(e,t,n){var i=n(3),m=n(1),u=n(41),g=n(70),v=n(6),y=n(26),r=n(81),x=n(343),i=i.extendComponentView({type:"toolbox",render:function(c,h,d,o){var p,a,s,l,f=this.group;function e(e,t){var n,i=l[e],r=l[t],e=a[i],t=new y(e,c,c.ecModel);if(o&&null!=o.newTitle&&o.featureName===i&&(e.title=o.newTitle),i&&!r){if(0===i.indexOf("my"))n={model:t,onclick:t.option.onclick,featureName:i};else{e=g.get(i);if(!e)return;n=new e(t,h,d)}s[i]=n}else{if(!(n=s[r]))return;n.model=t,n.ecModel=h,n.api=d}i||!r?t.get("show")&&!n.unusable?(function(i,r,e){var o=i.getModel("iconStyle"),a=i.getModel("emphasis.iconStyle"),t=r.getIcons?r.getIcons():i.get("icon"),s=i.get("title")||{};{var n,l;"string"==typeof t&&(n=t,l=s,s={},(t={})[e]=n,s[e]=l)}var u=i.iconPaths={};m.each(t,function(e,t){var n=v.createIcon(e,{},{x:-p/2,y:-p/2,width:p,height:p});n.setStyle(o.getItemStyle()),n.hoverStyle=a.getItemStyle(),n.setStyle({text:s[t],textAlign:a.get("textAlign"),textBorderRadius:a.get("textBorderRadius"),textPadding:a.get("textPadding"),textFill:null});e=c.getModel("tooltip");e&&e.get("show")&&n.attr("tooltip",m.extend({content:s[t],formatter:e.get("formatter",!0)||function(){return s[t]},formatterParams:{componentType:"toolbox",name:t,title:s[t],$vars:["name","title"]},position:e.get("position",!0)||"bottom"},e.option)),v.setHoverStyle(n),c.get("showTitle")&&(n.__title=s[t],n.on("mouseover",function(){var e=a.getItemStyle(),t="vertical"===c.get("orient")?null==c.get("right")?"right":"left":null==c.get("bottom")?"bottom":"top";n.setStyle({textFill:a.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:a.get("textBackgroundColor"),textPosition:a.get("textPosition")||t})}).on("mouseout",function(){n.setStyle({textFill:null,textBackgroundColor:null})})),n.trigger(i.get("iconStatus."+t)||"normal"),f.add(n),n.on("click",m.bind(r.onclick,r,h,d,t)),u[t]=n})}(t,n,i),t.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&i[e].trigger(t)},n.render&&n.render(t,h,d,o)):n.remove&&n.remove(h,d):n.dispose&&n.dispose(h,d)}f.removeAll(),c.get("show")&&(p=+c.get("itemSize"),a=c.get("feature")||{},s=this._features||(this._features={}),l=[],m.each(a,function(e,t){l.push(t)}),new r(this._featureNames||[],l).add(e).update(e).remove(m.curry(e,null)).execute(),this._featureNames=l,x.layout(f,c,d),f.add(x.makeBackground(f.getBoundingRect(),c)),f.eachChild(function(e){var t,n,i=e.__title,r=e.hoverStyle;r&&i&&(t=u.getBoundingRect(i,u.makeFont(r)),n=e.position[0]+f.position[0],i=!1,e.position[1]+f.position[1]+p+t.height>d.getHeight()&&(r.textPosition="top",i=!0),i=i?-5-t.height:p+8,n+t.width/2>d.getWidth()?(r.textPosition=["100%",i],r.textAlign="right"):n-t.width/2<0&&(r.textPosition=[0,i],r.textAlign="left"))}))},updateView:function(e,t,n,i){m.each(this._features,function(e){e.updateView&&e.updateView(e.model,t,n,i)})},remove:function(t,n){m.each(this._features,function(e){e.remove&&e.remove(t,n)}),this.group.removeAll()},dispose:function(t,n){m.each(this._features,function(e){e.dispose&&e.dispose(t,n)})}});e.exports=i},function(e,t,n){var u=n(25),i=n(67),n=n(70),i=i.toolbox.saveAsImage;function r(e){this.model=e}r.defaultOption={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:i.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:i.lang.slice()},r.prototype.unusable=!u.canvasSupported,r.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType()?"svg":n.get("type",!0)||"png",t=t.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||u.browser.ie||u.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var o=atob(t.split(",")[1]),a=o.length,s=new Uint8Array(a);a--;)s[a]=o.charCodeAt(a);e=new Blob([s]);window.navigator.msSaveOrOpenBlob(e,i+"."+r)}else{var l=n.get("lang"),l='<body style="margin:0;"><img src="'+t+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /></body>';window.open().document.write(l)}else{l=document.createElement("a");l.download=i+"."+r,l.target="_blank",l.href=t;t=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(t)}},n.register("saveAsImage",r),e.exports=r},function(e,t,n){var i=n(3),c=n(1),r=n(67),n=n(70),o=r.toolbox.magicType,h="__ec_magicType_stack__";function a(e){this.model=e}a.defaultOption={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:c.clone(o.title),option:{},seriesIndex:{}};r=a.prototype;r.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return c.each(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n};var d={line:function(e,t,n,i){if("bar"===e)return c.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(e,t,n,i){if("line"===e)return c.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(e,t,n,i){n=n.get("stack")===h;if("line"===e||"bar"===e)return i.setIconStatus("stack",n?"normal":"emphasis"),c.merge({id:t,stack:n?"":h},i.get("option.stack")||{},!0)}},p=[["line","bar"],["stack"]];r.onclick=function(a,e,s){var l,t,u=this.model,n=u.get("seriesIndex."+s);d[s]&&(l={series:[]},c.each(p,function(e){0<=c.indexOf(e,s)&&c.each(e,function(e){u.setIconStatus(e,"normal")})}),u.setIconStatus(s,"emphasis"),a.eachComponent({mainType:"series",query:null==n?null:{seriesIndex:n}},function(e){var t=e.subType,n=e.id,n=d[s](t,n,e,u);n&&(c.defaults(n,e.option),l.series.push(n));n=e.coordinateSystem;if(n&&"cartesian2d"===n.type&&("line"===s||"bar"===s)){n=n.getAxesByScale("ordinal")[0];if(n){var i=n.dim+"Axis",r=a.queryComponents({mainType:i,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;l[i]=l[i]||[];for(var o=0;o<=r;o++)l[i][r]=l[i][r]||{};l[i][r].boundaryGap="bar"===s}}}),"stack"===s&&(t=l.series&&l.series[0]&&l.series[0].stack===h?c.merge({stack:o.title.tiled},o.title):c.clone(o.title)),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:l,newTitle:t,featureName:"magicType"}))},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)}),n.register("magicType",a),e.exports=a},function(e,t,n){var i=n(3),g=n(1),v=n(54),r=n(67),n=n(70),r=r.toolbox.dataView,s=new Array(60).join("-"),h="\t";function y(e){var r,o,a,c,t=(r={},o=[],a=[],e.eachRawSeries(function(e){var t,n,i=e.coordinateSystem;i&&("cartesian2d"===i.type||"polar"===i.type)&&"category"===(t=i.getBaseAxis()).type?(n=t.dim+"_"+t.index,r[n]||(r[n]={categoryAxis:t,valueAxis:i.getOtherAxis(t),series:[]},a.push({axisDim:t.dim,axisIndex:t.index})),r[n].series.push(e)):o.push(e)}),{seriesGroupByCategoryAxis:r,other:o,meta:a});return{value:g.filter([(e=t.seriesGroupByCategoryAxis,c=[],g.each(e,function(e,t){var n=e.categoryAxis,i=e.valueAxis.dim,r=[" "].concat(g.map(e.series,function(e){return e.name})),o=[n.model.getCategories()];g.each(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var a=[r.join(h)],s=0;s<o[0].length;s++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][s]);a.push(l.join(h))}c.push(a.join("\n"))}),c.join("\n\n"+s+"\n\n")),(e=t.other,g.map(e,function(e){var i=e.getRawData(),r=[e.name],o=[];return i.each(i.dimensions,function(){for(var e=arguments.length,t=i.getName(arguments[e-1]),n=0;n<e-1;n++)o[n]=arguments[n];r.push((t?t+h:"")+o.join(h))}),r.join("\n")}).join("\n\n"+s+"\n\n"))],function(e){return e.replace(/[\n\t\s]/g,"")}).join("\n\n"+s+"\n\n"),meta:t.meta}}function u(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var c=new RegExp("["+h+"]+","g");function x(e,r){var e=e.split(new RegExp("\n*"+s+"\n*","g")),o={series:[]};return g.each(e,function(e,t){var n,i;0<=(i=e).slice(0,i.indexOf("\n")).indexOf(h)?(n=function(e){for(var t=e.split(/\n+/g),e=u(t.shift()).split(c),n=[],i=g.map(e,function(e){return{name:e,data:[]}}),r=0;r<t.length;r++){var o=u(t[r]).split(c);n.push(o.shift());for(var a=0;a<o.length;a++)i[a]&&(i[a].data[r]=o[a])}return{series:i,categories:n}}(e),t=(i=r[t]).axisDim+"Axis",i&&(o[t]=o[t]||[],o[t][i.axisIndex]={data:n.categories},o.series=o.series.concat(n.series))):(n=function(e){for(var t=e.split(/\n+/g),e=u(t.shift()),n=[],i=0;i<t.length;i++){var r=u(t[i]);if(r){for(var o,a=r.split(c),r=!1,s=isNaN(a[0])?(r=!0,o=a[0],a=a.slice(1),n[i]={name:o,value:[]},n[i].value):n[i]=[],l=0;l<a.length;l++)s.push(+a[l]);1===s.length&&(r?n[i].value=s[0]:n[i]=s[0])}}return{name:e,data:n}}(e),o.series.push(n))}),o}function o(e){this._dom=null,this.model=e}o.defaultOption={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:g.clone(r.title),lang:g.clone(r.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},o.prototype.onclick=function(e,t){var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin: 10px 20px;",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="display:block;width:100%;overflow:auto;";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=y(e);"function"==typeof u?"string"==typeof(p=u(t.getOption()))?s.innerHTML=p:g.isDom(p)&&s.appendChild(p):(s.appendChild(l),l.readOnly=i.get("readOnly"),l.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",l.style.color=i.get("textColor"),l.style.borderColor=i.get("textareaBorderColor"),l.style.backgroundColor=i.get("textareaColor"),l.value=h.value);var d=h.meta,e=document.createElement("div");e.style.cssText="position:absolute;bottom:0;left:0;right:0;";var u="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",p=document.createElement("div"),h=document.createElement("div");u+=";background-color:"+i.get("buttonColor"),u+=";color:"+i.get("buttonTextColor");var f=this;function m(){n.removeChild(r),f._dom=null}v.addEventListener(p,"click",m),v.addEventListener(h,"click",function(){var e;try{e="function"==typeof c?c(s,t.getOption()):x(l.value,d)}catch(e){throw m(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),m()}),p.innerHTML=a[1],h.innerHTML=a[2],h.style.cssText=u,p.style.cssText=u,i.get("readOnly")||e.appendChild(h),e.appendChild(p),r.appendChild(o),r.appendChild(s),r.appendChild(e),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},o.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},o.prototype.dispose=function(e,t){this.remove(e,t)},n.register("dataView",o),i.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,r){var o=[];g.each(e.newOption.series,function(e){var t,i,n=r.getSeriesByName(e.name)[0];n?(t=n.get("data"),o.push({name:e.name,data:(n=e.data,i=t,g.map(n,function(e,t){var n=i&&i[t];if(!g.isObject(n)||g.isArray(n))return e;g.isObject(e)&&!g.isArray(e)||(e={value:e});t=null!=n.name&&null==e.name;return e=g.defaults(e,n),t&&delete e.name,e}))})):o.push(g.extend({type:"scatter"},e))}),r.mergeOption(g.defaults({series:o},e.newOption))}),e.exports=o},function(e,t,n){var i=n(3),l=n(1),r=n(217),a=n(376),o=n(377),u=n(102),s=n(67),c=n(70);n(717);var s=s.toolbox.dataZoom,h=l.each;function d(e,t,n){(this._brushController=new r(n.getZr())).on("brush",l.bind(this._onBrush,this)).mount(),this._isZoomActive}d.defaultOption={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:l.clone(s.title),brushStyle:{borderWidth:0,color:"rgba(0,0,0,0.2)"}};s=d.prototype;s.render=function(e,t,n,i){this.model=e,this.ecModel=t,this.api=n,function(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");t=new a(f(e.option),t,{include:["grid"]});n._brushController.setPanels(t.makePanelOpts(r,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"})).enableBrush(!!o&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,i,n),t=t,e.setIconStatus("back",1<o.count(t)?"emphasis":"normal")},s.onclick=function(e,t,n){p[n].call(this)},s.remove=function(e,t){this._brushController.unmount()},s.dispose=function(e,t){this._brushController.dispose()};var p={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(o.pop(this.ecModel))}};function f(t){var n={};return l.each(["xAxisIndex","yAxisIndex"],function(e){n[e]=t[e],null==n[e]&&(n[e]="all"),!1!==n[e]&&"none"!==n[e]||(n[e]=[])}),n}s._onBrush=function(e,t){var s,l;function i(e,t,n){var i,r,o,a=t.getAxis(e),t=a.model,e=(i=e,r=t,l.eachComponent({mainType:"dataZoom",subType:"select"},function(e){e.getAxisModel(i,r.componentIndex)&&(o=e)}),o),t=e.findRepresentativeAxisProxy(t).getMinMaxSpan();null==t.minValueSpan&&null==t.maxValueSpan||(n=u(0,n.slice(),a.scale.getExtent(),0,t.minValueSpan,t.maxValueSpan)),e&&(s[e.id]={dataZoomId:e.id,startValue:n[0],endValue:n[1]})}t.isEnd&&e.length&&(s={},l=this.ecModel,this._brushController.updateCovers([]),new a(f(this.model.option),l,{include:["grid"]}).matchOutputRanges(e,l,function(e,t,n){"cartesian2d"===n.type&&("rect"===(e=e.brushType)?(i("x",n,t[0]),i("y",n,t[1])):i({lineX:"x",lineY:"y"}[e],n,t))}),o.push(l,s),this._dispatchZoomAction(s))},s._dispatchZoomAction=function(e){var n=[];h(e,function(e,t){n.push(l.clone(e))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},c.register("dataZoom",d),i.registerPreprocessor(function(n){var s,e;function t(i,r){var o,a;r&&(null==(a=r[o=i+"Index"])||"all"===a||l.isArray(a)||(a=!1===a||"none"===a?[]:[a]),function(e,t){e=n[e];l.isArray(e)||(e=e?[e]:[]);h(e,t)}(i,function(e,t){var n;null!=a&&"all"!==a&&-1===l.indexOf(a,t)||((n={type:"select",$fromToolbox:!0,filterMode:r.filterMode||"filter",id:"\0_ec_\0toolbox-dataZoom_"+i+t})[o]=t,s.push(n))}))}n&&(s=n.dataZoom||(n.dataZoom=[]),l.isArray(s)||(n.dataZoom=s=[s]),(e=(e=n.toolbox)&&(l.isArray(e)?e[0]:e))&&e.feature&&(t("xAxis",e=e.feature.dataZoom),t("yAxis",e)))}),e.exports=d},function(e,t,n){n(219),n(103),n(104),n(719),n(720),n(221),n(222)},function(e,t,n){var i=n(1),d=n(8),r=n(220),p=n(102),f=i.each,m=d.asc,n=function(e,t,n,i){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function s(e,t){var n=e.getAxisModel(),i=e._percentWindow,r=e._valueWindow;i&&(e=d.getPixelPrecision(r,[0,500]),e=Math.min(e,20),i=t||0===i[0]&&100===i[1],n.setRange(i?null:+r[0].toFixed(e),i?null:+r[1].toFixed(e)))}n.prototype={constructor:n,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var n=[],i=this.ecModel;return i.eachSeries(function(e){var t;r.isCoordSupported(e.get("coordinateSystem"))&&(t=this._dimName,t=i.queryComponents({mainType:t+"Axis",index:e.get(t+"AxisIndex"),id:e.get(t+"AxisId")})[0],this._axisIndex===(t&&t.componentIndex)&&n.push(e))},this),n},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,n,e=this._dimName,i=this.ecModel,r=this.getAxisModel(),e="x"===e||"y"===e?(t="gridIndex","x"===e?"y":"x"):(t="polarIndex","angle"===e?"radius":"angle");return i.eachComponent(e+"Axis",function(e){(e.get(t)||0)===(r.get(t)||0)&&(n=e)}),n},getMinMaxSpan:function(){return i.clone(this._minMaxSpan)},calculateDataWindow:function(i){var r,o=this._dataExtent,s=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),l=[0,100],u=[],c=[];f(["start","end"],function(e,t){var n=i[e],e=i[e+"Value"];"percent"===a[t]?e=s.parse(d.linearMap(n=null==n?l[t]:n,l,o)):(r=!0,e=null==e?o[t]:s.parse(e),n=d.linearMap(e,o,l)),c[t]=e,u[t]=n}),m(c),m(u);var h=this._minMaxSpan;function e(e,t,n,i,r){var o=r?"Span":"ValueSpan";p(0,e,n,"all",h["min"+o],h["max"+o]);for(var a=0;a<2;a++)t[a]=d.linearMap(e[a],n,i,!0),r&&(t[a]=s.parse(t[a]))}return r?e(c,u,o,l,!1):e(u,c,l,o,!0),{valueWindow:c,percentWindow:u}},reset:function(e){var t,i,r,o,a;e===this._dataZoomModel&&(t=this.getTargetSeriesModels(),this._dataExtent=function(e,n,t){var i=[1/0,-1/0];f(t,function(e){var t=e.getData();t&&f(t.mapDimension(n,!0),function(e){e=t.getApproximateExtent(e);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})}),i[1]<i[0]&&(i=[NaN,NaN]);return function(e,t){var n=e.getAxisModel(),i=n.getMin(!0),r="category"===n.get("type"),e=r&&n.getCategories().length;null!=i&&"dataMin"!==i&&"function"!=typeof i?t[0]=i:r&&(t[0]=0<e?0:NaN);i=n.getMax(!0);null!=i&&"dataMax"!==i&&"function"!=typeof i?t[1]=i:r&&(t[1]=0<e?e-1:NaN);n.get("scale",!0)||(0<t[0]&&(t[0]=0),t[1]<0&&(t[1]=0));return t}(e,i),i}(this,this._dimName,t),r=(i=this)._minMaxSpan={},o=i._dataZoomModel,a=i._dataExtent,f(["min","max"],function(e){var t=o.get(e+"Span"),n=o.get(e+"ValueSpan");null!=(n=null!=n?i.getAxisModel().axis.scale.parse(n):n)?t=d.linearMap(a[0]+n,a,[0,100],!0):null!=t&&(n=d.linearMap(t,[0,100],a,!0)-a[0]),r[e+"Span"]=t,r[e+"ValueSpan"]=n}),e=this.calculateDataWindow(e.settledOption),this._valueWindow=e.valueWindow,this._percentWindow=e.percentWindow,s(this))},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,s(this,!0))},filterData:function(e,t){var i,n,r,c;e===this._dataZoomModel&&(i=this._dimName,n=this.getTargetSeriesModels(),r=e.get("filterMode"),c=this._valueWindow,"none"!==r&&f(n,function(n){var l=n.getData(),u=l.mapDimension(i,!0);u.length&&("weakFilter"===r?l.filterSelf(function(e){for(var t,n,i,r=0;r<u.length;r++){var o=l.get(u[r],e),a=!isNaN(o),s=o<c[0],o=o>c[1];if(a&&!s&&!o)return!0;a&&(i=!0),s&&(t=!0),o&&(n=!0)}return i&&t&&n}):f(u,function(e){var t;"empty"===r?n.setData(l=l.map(e,function(e){return(t=e)>=c[0]&&t<=c[1]?e:NaN;var t})):((t={})[e]=c,l.selectRange(t))}),f(u,function(e){l.setApproximateExtent(c,e)}))}))}},e.exports=n},function(e,t,n){n=n(103).extend({type:"dataZoom.select"});e.exports=n},function(e,t,n){n=n(104).extend({type:"dataZoom.select"});e.exports=n},function(e,t,n){var i=n(3),r=n(377),o=n(67),n=n(70),o=o.toolbox.restore;function a(e){this.model=e}a.defaultOption={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:o.title},a.prototype.onclick=function(e,t,n){r.clear(e),t.dispatchAction({type:"restore",from:this.uid})},n.register("restore",a),i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")}),e.exports=a},function(e,t,n){var i=n(3),r=n(723);n(378),n(725),n(726),n(727),n(728),i.registerPreprocessor(r)},function(e,t,n){var a=n(1),s=["rect","polygon","keep","clear"];e.exports=function(e,t){var n,i,r,o=e&&e.brush;(o=!a.isArray(o)?o?[o]:[]:o).length&&(n=[],a.each(o,function(e){e=e.hasOwnProperty("toolbox")?e.toolbox:[];e instanceof Array&&(n=n.concat(e))}),o=e&&e.toolbox,(o=a.isArray(o)?o[0]:o)||(e.toolbox=[o={feature:{}}]),(o=(o=(o=o.feature||(o.feature={})).brush||(o.brush={})).type||(o.type=[])).push.apply(o,n),i=o,r={},a.each(i,function(e){r[e]=1}),i.length=0,a.each(r,function(e,t){i.push(t)}),t&&!o.length&&o.push.apply(o,s))}},function(e,t,n){var l=n(330),u=n(21),c=n(6).linePolygonIntersect,n={lineX:i(0),lineY:i(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&l.contain(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var r=e.x,o=e.y,a=e.width,s=e.height,n=i[0];return!!(l.contain(i,r,o)||l.contain(i,r+a,o)||l.contain(i,r,o+s)||l.contain(i,r+a,o+s)||u.create(e).contain(n[0],n[1])||c(r,o,r+a,o,i)||c(r,o,r,o+s,i)||c(r+a,o,r+a,o+s,i)||c(r,o+s,r+a,o+s,i))||void 0}}};function i(i){var r=["x","y"],o=["width","height"];return{point:function(e,t,n){if(e){n=n.range;return a(e[i],n)}},rect:function(e,t,n){if(e){n=n.range,e=[e[r[i]],e[r[i]]+e[o[i]]];return e[1]<e[0]&&e.reverse(),a(e[0],n)||a(e[1],n)||a(n[0],e)||a(n[1],e)}}}}function a(e,t){return t[0]<=e&&e<=t[1]}e.exports=n},function(e,t,n){n(14).__DEV__;var i=n(3),r=n(1),o=n(163),a=n(26),s=["#ddd"],i=i.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,t){var n=this.option;t||o.replaceVisualOption(n,e,["inBrush","outOfBrush"]);e=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:s},e.hasOwnProperty("liftZ")||(e.liftZ=5)},setAreas:function(e){e&&(this.areas=r.map(e,function(e){return l(this.option,e)},this))},setBrushOption:function(e){this.brushOption=l(this.option,e),this.brushType=this.brushOption.brushType}});function l(e,t){return r.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new a(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}e.exports=i},function(e,t,n){var i=n(3),r=n(1),o=n(217),a=n(378).layoutCovers,i=i.extendComponentView({type:"brush",init:function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new o(t.getZr())).on("brush",r.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,s.apply(this,arguments)},updateTransform:function(e,t){return a(t),s.apply(this,arguments)},updateView:s,dispose:function(){this._brushController.dispose()},_onBrush:function(e,t){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"brush",brushId:n,areas:r.clone(e),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:r.clone(e),$from:n})}});function s(e,t,n,i){i&&i.$from===e.id||this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}e.exports=i},function(e,t,n){n=n(3);n.registerAction({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},function(e,t,n){var a=n(1),i=n(70),n=n(67).toolbox.brush;function r(e,t,n){this.model=e,this.ecModel=t,this.api=n,this._brushType,this._brushMode}r.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],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:a.clone(n.title)};n=r.prototype;n.render=n.updateView=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o|=e.areas.length}),this._brushType=i,this._brushMode=r,a.each(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")})},n.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return a.each(e.get("type",!0),function(e){t[e]&&(n[e]=t[e])}),n},n.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},i.register("brush",r),e.exports=r},function(e,t,n){var d=n(1),i=n(3),p=n(6),f=n(15).getLayoutRect,m=n(17).windowOpen;i.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},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:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),i.extendComponentView({type:"title",render:function(e,t,n){var i,r,o,a,s,l,u,c,h;this.group.removeAll(),e.get("show")&&(i=this.group,u=e.getModel("textStyle"),a=e.getModel("subtextStyle"),r=e.get("textAlign"),h=d.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),c=(o=new p.Text({style:p.setTextStyle({},u,{text:e.get("text"),textFill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),u=e.get("subtext"),a=new p.Text({style:p.setTextStyle({},a,{text:u,textFill:a.getTextColor(),y:c.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),s=e.get("link"),l=e.get("sublink"),c=e.get("triggerEvent",!0),o.silent=!s&&!c,a.silent=!l&&!c,s&&o.on("click",function(){m(s,"_"+e.get("target"))}),l&&a.on("click",function(){m(l,"_"+e.get("subtarget"))}),o.eventData=a.eventData=c?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(o),u&&i.add(a),c=i.getBoundingRect(),(u=e.getBoxLayoutParams()).width=c.width,u.height=c.height,n=f(u,{width:n.getWidth(),height:n.getHeight()},e.get("padding")),r||("right"===(r="middle"===(r=e.get("left")||e.get("right"))?"center":r)?n.x+=n.width:"center"===r&&(n.x+=n.width/2)),h||("bottom"===(h="center"===(h=e.get("top")||e.get("bottom"))?"middle":h)?n.y+=n.height:"middle"===h&&(n.y+=n.height/2),h=h||"top"),i.attr("position",[n.x,n.y]),o.setStyle(h={textAlign:r,textVerticalAlign:h}),a.setStyle(h),c=i.getBoundingRect(),h=n.margin,(n=e.getItemStyle(["color","opacity"])).fill=e.get("backgroundColor"),n=new p.Rect({shape:{x:c.x-h[3],y:c.y-h[0],width:c.width+h[1]+h[3],height:c.height+h[0]+h[2],r:e.get("borderRadius")},style:n,subPixelOptimize:!0,silent:!0}),i.add(n))}})},function(e,t,n){var i=n(3),r=n(731);n(732),n(733),n(734),n(736),i.registerPreprocessor(r)},function(e,t,n){var r=n(1);function i(e){var t=e.itemStyle||(e.itemStyle={}),t=t.emphasis||(t.emphasis={}),e=e.label||e.label||{},n=e.normal||(e.normal={}),i={normal:1,emphasis:1};r.each(e,function(e,t){i[t]||o(n,t)||(n[t]=e)}),t.label&&!o(e,"emphasis")&&(e.emphasis=t.label,delete t.label)}function o(e,t){return e.hasOwnProperty(t)}e.exports=function(e){e=e&&e.timeline,r.isArray(e)||(e=e?[e]:[]),r.each(e,function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};n[t]&&(e.axisType=n[t],delete e.type);i(e),o(e,"controlPosition")&&(o(t=e.controlStyle||(e.controlStyle={}),"position")||(t.position=e.controlPosition),"none"!==t.position||o(t,"show")||(t.show=!1,delete t.position),delete e.controlPosition);r.each(e.data||[],function(e){r.isObject(e)&&!r.isArray(e)&&(!o(e,"value")&&o(e,"name")&&(e.value=e.name),i(e))})}(e)})}},function(e,t,n){n(30).registerSubTypeDefaulter("timeline",function(){return"slider"})},function(e,t,n){var i=n(3),r=n(1);i.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),t.resetOption("timeline"),r.defaults({currentIndex:n.option.currentIndex},e)}),i.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){t=t.getComponent("timeline");t&&null!=e.playState&&t.setPlayState(e.playState)})},function(e,t,n){var i=n(1),r=n(735),n=n(198),r=r.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,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:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});i.mixin(r,n),e.exports=r},function(e,t,n){var a=n(1),i=n(30),s=n(47),l=n(10),r=i.extend({type:"timeline",layoutMode:"box",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:[]},init:function(e,t,n){this._data,this._names,this.mergeDefaultAndTheme(e,n),this._initData()},mergeOption:function(e){r.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e=t<=e?t-1:e)<0&&(e=0),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var r,e=this.option,t=e.data||[],e=e.axisType,o=this._names=[];"category"===e&&(r=[],a.each(t,function(e,t){var n,i=l.getDataItemValue(e);a.isObject(e)?(n=a.clone(e)).value=t:n=t,r.push(n),a.isString(i)||null!=i&&!isNaN(i)||(i=""),o.push(i+"")}),t=r),(this._data=new s([{name:"value",type:{category:"ordinal",time:"time"}[e]||"number"}],this)).initData(t,o)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});e.exports=r},function(e,t,n){var l=n(1),d=n(21),f=n(35),p=n(6),_=n(15),i=n(737),a=n(738),u=n(42).createSymbol,s=n(52),c=n(8),h=n(17).encodeHTML,m=l.bind,g=l.each,w=Math.PI,i=i.extend({type:"timeline.slider",init:function(e,t){this.api=t,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){var r,o,a;this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)&&(r=this._layout(t,n),o=this._createGroup("mainGroup"),n=this._createGroup("labelGroup"),a=this._axis=this._createAxis(r,t),t.formatTooltip=function(e){return h(a.scale.getLabel(e))},g(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](r,o,a,t)},this),this._renderAxisLabel(r,n,a,t),this._position(r,t)),this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(e,t){var n=e.get("label.position"),i=e.get("orient"),r=(b=e,x=t,_.getLayoutRect(b.getBoxLayoutParams(),{width:x.getWidth(),height:x.getHeight()},b.get("padding")));null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2<t.getHeight()/2?"-":"+":r.x+r.width/2<t.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]);var o,a,s,l={horizontal:"center",vertical:0<=n||"+"===n?"left":"right"},u={horizontal:0<=n||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:w/2},h="vertical"===i?r.height:r.width,d=e.getModel("controlStyle"),p=d.get("show",!0),f=p?d.get("itemSize"):0,m=p?d.get("itemGap"):0,g=f+m,v=(v=e.get("label.rotate")||0)*w/180,y=d.get("position",!0),x=p&&d.get("showPlayBtn",!0),b=p&&d.get("showPrevBtn",!0),t=p&&d.get("showNextBtn",!0),p=0,d=h;return"left"===y||"bottom"===y?(x&&(o=[0,0],p+=g),b&&(a=[p,0],p+=g)):(x&&(o=[d-f,0],d-=g),b&&(a=[0,0],p+=g)),t&&(s=[d-f,0],d-=g),d=[p,d],e.get("inverse")&&d.reverse(),{viewRect:r,mainLength:h,orient:i,rotation:c[i],labelRotation:v,labelPosOpt:n,labelAlign:e.get("label.align")||l[i],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||u[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:d,controlSize:f,controlGap:m}},_position:function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;"vertical"===e.orient&&(u=f.create(),s=r.x,l=r.y+r.height,f.translate(u,u,[-s,-l]),f.rotate(u,u,-w/2),f.translate(u,u,[s,l]),(r=r.clone()).applyTransform(u));var o=d(r),a=d(n.getBoundingRect()),s=d(i.getBoundingRect()),l=n.position,u=i.position;u[0]=l[0]=o[0][0];var c,r=e.labelPosOpt;function h(e){var t=e.position;e.origin=[o[0][0]-t[0],o[1][0]-t[1]]}function d(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function p(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}isNaN(r)?(p(l,a,o,1,c="+"===r?0:1),p(u,s,o,1,1-c)):(p(l,a,o,1,c=0<=r?0:1),u[1]=l[1]+r),n.attr("position",l),i.attr("position",u),n.rotation=i.rotation=e.rotation,h(n),h(i)},_createAxis:function(e,t){var n=t.getData(),i=t.get("axisType"),r=s.createScaleByModel(t,i);r.getTicks=function(){return n.mapArray(["value"],function(e){return e})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();i=new a("value",r,e.axisExtent,i);return i.model=t,i},_createGroup:function(e){e=this["_"+e]=new p.Group;return this.group.add(e),e},_renderAxisLine:function(e,t,n,i){n=n.getExtent();i.get("lineStyle.show")&&t.add(new p.Line({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:l.extend({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,o,a,s){var l=s.getData(),t=a.scale.getTicks();g(t,function(e){var t=a.dataToCoord(e),n=l.getItemModel(e),i=n.getModel("itemStyle"),r=n.getModel("emphasis.itemStyle"),t={position:[t,0],onclick:m(this._changeTimeline,this,e)},t=v(n,i,o,t);p.setHoverStyle(t,r.getItemStyle()),n.get("tooltip")?(t.dataIndex=e,t.dataModel=s):t.dataIndex=t.dataModel=null},this)},_renderAxisLabel:function(o,a,s,e){var l;s.getLabelModel().get("show")&&(l=e.getData(),e=s.getViewLabels(),g(e,function(e){var t=e.tickValue,n=l.getItemModel(t),i=n.getModel("label"),r=n.getModel("emphasis.label"),n=s.dataToCoord(e.tickValue),t=new p.Text({position:[n,0],rotation:o.labelRotation-o.rotation,onclick:m(this._changeTimeline,this,t),silent:!1});p.setTextStyle(t.style,i,{text:e.formattedLabel,textAlign:o.labelAlign,textVerticalAlign:o.labelBaseline}),a.add(t),p.setHoverStyle(t,p.setTextStyle({},r))},this))},_renderControl:function(e,r,t,o){var a=e.controlSize,s=e.rotation,l=o.getModel("controlStyle").getItemStyle(),u=o.getModel("emphasis.controlStyle").getItemStyle(),c=[0,-a/2,a,a],n=o.getPlayState(),i=o.get("inverse",!0);function h(e,t,n,i){e&&(n=function(e,t,n,i){var r=i.style,n=p.createIcon(e.get(t),i||{},new d(n[0],n[1],n[2],n[3]));r&&n.setStyle(r);return n}(o,t,c,{position:e,origin:[a/2,0],rotation:i?-s:0,rectHover:!0,style:l,onclick:n}),r.add(n),p.setHoverStyle(n,u))}h(e.nextBtnPosition,"controlStyle.nextIcon",m(this._changeTimeline,this,i?"-":"+")),h(e.prevBtnPosition,"controlStyle.prevIcon",m(this._changeTimeline,this,i?"+":"-")),h(e.playPosition,"controlStyle."+(n?"stopIcon":"playIcon"),m(this._handlePlayClick,this,!n),!0)},_renderCurrentPointer:function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),r=r.getItemModel(o).getModel("checkpointStyle"),a=this;this._currentPointer=v(r,r,this._mainGroup,{},this._currentPointer,{onCreate:function(e){e.draggable=!0,e.drift=m(a._handlePointerDrag,a),e.ondragend=m(a._handlePointerDragend,a),y(e,o,n,i,!0)},onUpdate:function(e){y(e,o,n,i)}})},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var n=this._toAxisCoord(e)[0],e=this._axis,e=c.asc(e.getExtent().slice());(n=n>e[1]?e[1]:n)<e[0]&&(n=e[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();e=this._findNearestTick(n),n=this.model;(t||e!==n.getCurrentIndex()&&n.get("realtime"))&&this._changeTimeline(e)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(m(function(){var e=this.model;this._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))},this),this.model.get("playInterval")))},_toAxisCoord:function(e){var t=this._mainGroup.getLocalTransform();return p.applyTransform(e,t,!0)},_findNearestTick:function(n){var i,e=this.model.getData(),r=1/0,o=this._axis;return e.each(["value"],function(e,t){e=o.dataToCoord(e),e=Math.abs(e-n);e<r&&(r=e,i=t)}),i},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})}});function v(e,t,n,i,r,o){var a,s=t.get("color");r?(r.setColor(s),n.add(r),o&&o.onUpdate(r)):(a=e.get("symbol"),(r=u(a,-1,-1,2,2,s)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));n=t.getItemStyle(["color","symbol","symbolSize"]);r.setStyle(n),i=l.merge({rectHover:!0,z2:100},i,!0);o=e.get("symbolSize");(o=o instanceof Array?o.slice():[+o,+o])[0]/=2,o[1]/=2,i.scale=o;t=e.get("symbolOffset");t&&((n=i.position=i.position||[0,0])[0]+=c.parsePercent(t[0],o[0]),n[1]+=c.parsePercent(t[1],o[1]));e=e.get("symbolRotate");return i.rotation=(e||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function y(e,t,n,i,r){var o;e.dragging||(o=i.getModel("checkpointStyle"),t=n.dataToCoord(i.getData().get(["value"],t)),r||!o.get("animation",!0)?e.attr({position:[t,0]}):(e.stopAnimation(!0),e.animateTo({position:[t,0]},o.get("animationDuration",!0),o.get("animationEasing",!0))))}e.exports=i},function(e,t,n){n=n(151).extend({type:"timeline"});e.exports=n},function(e,t,n){var i=n(1),r=n(68),n=function(e,t,n,i){r.call(this,e,t,n),this.type=i||"value",this.model=null};n.prototype={constructor:n,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},i.inherits(n,r),e.exports=n},function(e,t,n){var i=n(3);n(740),n(741),i.registerPreprocessor(function(e){e.markPoint=e.markPoint||{}})},function(e,t,n){n=n(223).extend({type:"markPoint",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.exports=n},function(e,t,n){var p=n(1),a=n(129),c=n(8),s=n(47),l=n(224);function u(a,s,l){var u=s.coordinateSystem;a.each(function(e){var t,n,i=a.getItemModel(e),r=c.parsePercent(i.get("x"),l.getWidth()),o=c.parsePercent(i.get("y"),l.getHeight());isNaN(r)||isNaN(o)?s.getMarkerPosition?n=s.getMarkerPosition(a.getValues(a.dimensions,e)):u&&(t=a.get(u.dimensions[0],e),i=a.get(u.dimensions[1],e),n=u.dataToPoint([t,i])):n=[r,o],isNaN(r)||(n[0]=r),isNaN(o)||(n[1]=o),a.setItemLayout(e,n)})}n=n(225).extend({type:"markPoint",updateTransform:function(e,t,n){t.eachSeries(function(e){var t=e.markPointModel;t&&(u(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(t))},this)},renderSeries:function(e,c,t,n){var i=e.coordinateSystem,r=e.id,h=e.getData(),o=this.markerGroupMap,r=o.get(r)||o.set(r,new a),d=function(e,n,t){i=e?p.map(e&&e.dimensions,function(e){var t=n.getData().getDimensionInfo(n.getData().mapDimension(e))||{};return p.defaults({name:e},t)}):[{name:"value",type:"float"}];var i=new s(i,t),t=p.map(t.get("data"),p.curry(l.dataTransform,n));e&&(t=p.filter(t,p.curry(l.dataFilter,e)));return i.initData(t,null,e?l.dimValueGetter:function(e){return e.value}),i}(i,e,c);c.setData(d),u(c.getData(),e,n),d.each(function(e){var t,n,i=d.getItemModel(e),r=i.getShallow("symbol"),o=i.getShallow("symbolSize"),a=i.getShallow("symbolRotate"),s=p.isFunction(r),l=p.isFunction(o),u=p.isFunction(a);(s||l||u)&&(t=c.getRawValue(e),n=c.getDataParams(e),s&&(r=r(t,n)),l&&(o=o(t,n)),u&&(a=a(t,n))),d.setItemVisual(e,{symbol:r,symbolSize:o,symbolRotate:a,color:i.get("itemStyle.color")||h.getVisual("color")})}),r.updateData(d),this.group.add(r.group),d.eachItemGraphicEl(function(e){e.traverse(function(e){e.dataModel=c})}),r.__keep=!0,r.group.silent=c.get("silent")||e.get("silent")}});e.exports=n},function(e,t,n){var i=n(3);n(743),n(744),i.registerPreprocessor(function(e){e.markLine=e.markLine||{}})},function(e,t,n){n=n(223).extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],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.exports=n},function(e,t,n){function f(e,t,n,i){var r,o,a,s=e.getData(),l=i.type;return m.isArray(i)||"min"!==l&&"max"!==l&&"average"!==l&&"median"!==l&&null==i.xAxis&&null==i.yAxis||(t=null!=i.yAxis||null!=i.xAxis?(o=t.getAxis(null!=i.yAxis?"y":"x"),m.retrieve(i.yAxis,i.xAxis)):(o=(r=v.getAxisInfo(i,s,t,e)).valueAxis,a=u(s,r.valueDataDim),v.numCalculate(s,a,l)),s=1-(r="x"===o.dim?0:1),a={},(o=m.clone(i)).type=null,o.coord=[],a.coord=[],o.coord[s]=-1/0,a.coord[s]=1/0,0<=(n=n.get("precision"))&&"number"==typeof t&&(t=+t.toFixed(Math.min(n,20))),o.coord[r]=a.coord[r]=t,i=[o,a,{type:l,valueIndex:i.valueIndex,value:t}]),(i=[v.dataTransform(e,i[0]),v.dataTransform(e,i[1]),m.extend({},i[2])])[2].type=i[2].type||"",m.merge(i[2],i[0]),m.merge(i[2],i[1]),i}var m=n(1),g=n(47),d=n(8),v=n(224),y=n(214),i=n(225),u=n(57).getStackedDimension;function p(e){return!isNaN(e)&&!isFinite(e)}function r(e,t,n,i){var r=1-e,o=i.dimensions[e];return p(t[r])&&p(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function x(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(r(1,n,i,e)||r(0,n,i,e)))return!0}return v.dataFilter(e,t[0])&&v.dataFilter(e,t[1])}function b(e,t,n,i,r){var o,a,s,l,u=i.coordinateSystem,c=e.getItemModel(t),h=d.parsePercent(c.get("x"),r.getWidth()),r=d.parsePercent(c.get("y"),r.getHeight());isNaN(h)||isNaN(r)?(o=i.getMarkerPosition?i.getMarkerPosition(e.getValues(e.dimensions,t)):(l=u.dimensions,a=e.get(l[0],t),s=e.get(l[1],t),u.dataToPoint([a,s])),"cartesian2d"===u.type&&(a=u.getAxis("x"),s=u.getAxis("y"),l=u.dimensions,p(e.get(l[0],t))?o[0]=a.toGlobalCoord(a.getExtent()[n?0:1]):p(e.get(l[1],t))&&(o[1]=s.toGlobalCoord(s.getExtent()[n?0:1]))),isNaN(h)||(o[0]=h),isNaN(r)||(o[1]=r)):o=[h,r],e.setItemLayout(t,o)}i=i.extend({type:"markLine",updateTransform:function(e,t,o){t.eachSeries(function(t){var n,i,r,e=t.markLineModel;e&&(n=e.getData(),i=e.__from,r=e.__to,i.each(function(e){b(i,e,!0,t,o),b(r,e,!1,t,o)}),n.each(function(e){n.setItemLayout(e,[i.getItemLayout(e),r.getItemLayout(e)])}),this.markerGroupMap.get(t.id).updateLayout())},this)},renderSeries:function(r,n,e,o){var t=r.coordinateSystem,i=r.id,a=r.getData(),s=this.markerGroupMap,i=s.get(i)||s.set(i,new y);this.group.add(i.group);var t=function(e,n,t){o=e?m.map(e&&e.dimensions,function(e){var t=n.getData().getDimensionInfo(n.getData().mapDimension(e))||{};return m.defaults({name:e},t)}):[{name:"value",type:"float"}];var i=new g(o,t),r=new g(o,t),o=new g([],t),t=m.map(t.get("data"),m.curry(f,n,e,t));e&&(t=m.filter(t,m.curry(x,e)));e=e?v.dimValueGetter:function(e){return e.value};return i.initData(m.map(t,function(e){return e[0]}),null,e),r.initData(m.map(t,function(e){return e[1]}),null,e),o.initData(m.map(t,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:r,line:o}}(t,r,n),l=t.from,u=t.to,c=t.line;n.__from=l,n.__to=u,n.setData(c);var h=n.get("symbol"),d=n.get("symbolSize");function p(e,t,n){var i=e.getItemModel(t);b(e,t,n,r,o),e.setItemVisual(t,{symbolRotate:i.get("symbolRotate"),symbolSize:i.get("symbolSize")||d[n?0:1],symbol:i.get("symbol",!0)||h[n?0:1],color:i.get("itemStyle.color")||a.getVisual("color")})}m.isArray(h)||(h=[h,h]),"number"==typeof d&&(d=[d,d]),t.from.each(function(e){p(l,e,!0),p(u,e,!1)}),c.each(function(e){var t=c.getItemModel(e).get("lineStyle.color");c.setItemVisual(e,{color:t||l.getItemVisual(e,"color")}),c.setItemLayout(e,[l.getItemLayout(e),u.getItemLayout(e)]),c.setItemVisual(e,{fromSymbolRotate:l.getItemVisual(e,"symbolRotate"),fromSymbolSize:l.getItemVisual(e,"symbolSize"),fromSymbol:l.getItemVisual(e,"symbol"),toSymbolRotate:u.getItemVisual(e,"symbolRotate"),toSymbolSize:u.getItemVisual(e,"symbolSize"),toSymbol:u.getItemVisual(e,"symbol")})}),i.updateData(c),t.line.eachItemGraphicEl(function(e,t){e.traverse(function(e){e.dataModel=n})}),i.__keep=!0,i.group.silent=n.get("silent")||r.get("silent")}});e.exports=i},function(e,t,n){var i=n(3);n(746),n(747),i.registerPreprocessor(function(e){e.markArea=e.markArea||{}})},function(e,t,n){n=n(223).extend({type:"markArea",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.exports=n},function(e,t,n){function c(e,t,n,i){var r=s.dataTransform(e,i[0]),o=s.dataTransform(e,i[1]),a=h.retrieve,e=r.coord,i=o.coord;return e[0]=a(e[0],-1/0),e[1]=a(e[1],-1/0),i[0]=a(i[0],1/0),i[1]=a(i[1],1/0),(i=h.mergeAll([{},r,o])).coord=[r.coord,o.coord],i.x0=r.x,i.y0=r.y,i.x1=o.x,i.y1=o.y,i}var h=n(1),d=n(55),p=n(47),f=n(8),m=n(6),s=n(224),n=n(225);function g(e){return!isNaN(e)&&!isFinite(e)}function r(e,t,n){e=1-e;return g(t[e])&&g(n[e])}function v(e,t){var n=t.coord[0],i=t.coord[1];return!("cartesian2d"!==e.type||!n||!i||!r(1,n,i)&&!r(0,n,i))||(s.dataFilter(e,{coord:n,x:t.x0,y:t.y0})||s.dataFilter(e,{coord:i,x:t.x1,y:t.y1}))}function y(e,t,n,i,r){var o,a,s,l,u=i.coordinateSystem,c=e.getItemModel(t),h=f.parsePercent(c.get(n[0]),r.getWidth()),r=f.parsePercent(c.get(n[1]),r.getHeight());return isNaN(h)||isNaN(r)?(l=i.getMarkerPosition?i.getMarkerPosition(e.getValues(n,t)):(o=[a=e.get(n[0],t),s=e.get(n[1],t)],u.clampData&&u.clampData(o,o),u.dataToPoint(o,!0)),"cartesian2d"===u.type&&(o=u.getAxis("x"),u=u.getAxis("y"),a=e.get(n[0],t),s=e.get(n[1],t),g(a)?l[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):g(s)&&(l[1]=u.toGlobalCoord(u.getExtent()["y0"===n[1]?0:1]))),isNaN(h)||(l[0]=h),isNaN(r)||(l[1]=r)):l=[h,r],l}var x=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];n.extend({type:"markArea",updateTransform:function(e,t,r){t.eachSeries(function(n){var i,e=n.markAreaModel;e&&(i=e.getData()).each(function(t){var e=h.map(x,function(e){return y(i,t,e,n,r)});i.setItemLayout(t,e),i.getItemGraphicEl(t).setShape("points",e)})},this)},renderSeries:function(t,a,e,r){var o=t.coordinateSystem,n=t.id,s=t.getData(),i=this.markerGroupMap,l=i.get(n)||i.set(n,{group:new m.Group});this.group.add(l.group),l.__keep=!0;var u=function(e,n,t){var i,r;r=e?(i=h.map(e&&e.dimensions,function(e){var t=n.getData(),t=t.getDimensionInfo(t.mapDimension(e))||{};return h.defaults({name:e},t)}),new p(h.map(["x0","y0","x1","y1"],function(e,t){return{name:e,type:i[t%2].type}}),t)):new p(i=[{name:"value",type:"float"}],t);t=h.map(t.get("data"),h.curry(c,n,e,t));e&&(t=h.filter(t,h.curry(v,e)));e=e?function(e,t,n,i){return e.coord[Math.floor(i/2)][i%2]}:function(e){return e.value};return r.initData(t,null,e),r.hasItemOption=!0,r}(o,t,a);a.setData(u),u.each(function(n){var e=h.map(x,function(e){return y(u,n,e,t,r)}),i=!0;h.each(x,function(e){var t;i&&(t=u.get(e[0],n),e=u.get(e[1],n),(g(t)||o.getAxis("x").containData(t))&&(g(e)||o.getAxis("y").containData(e))&&(i=!1))}),u.setItemLayout(n,{points:e,allClipped:i}),u.setItemVisual(n,{color:s.getVisual("color")})}),u.diff(l.__data).add(function(e){var t=u.getItemLayout(e);t.allClipped||(t=new m.Polygon({shape:{points:t.points}}),u.setItemGraphicEl(e,t),l.group.add(t))}).update(function(e,t){var n=l.__data.getItemGraphicEl(t),t=u.getItemLayout(e);t.allClipped?n&&l.group.remove(n):(n?m.updateProps(n,{shape:{points:t.points}},a,e):n=new m.Polygon({shape:{points:t.points}}),u.setItemGraphicEl(e,n),l.group.add(n))}).remove(function(e){e=l.__data.getItemGraphicEl(e);l.group.remove(e)}).execute(),u.eachItemGraphicEl(function(e,t){var n=u.getItemModel(t),i=n.getModel("label"),r=n.getModel("emphasis.label"),o=u.getItemVisual(t,"color");e.useStyle(h.defaults(n.getModel("itemStyle").getItemStyle(),{fill:d.modifyAlpha(o,.4),stroke:o})),e.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle(),m.setLabelStyle(e.style,e.hoverStyle,i,r,{labelFetcher:a,labelDataIndex:t,defaultText:u.getName(t)||"",isRectText:!0,autoColor:o}),m.setHoverStyle(e,{}),e.dataModel=a}),l.__data=u,l.group.silent=a.get("silent")||t.get("silent")}})},function(e,t,n){n(204),n(749),n(750),n(751)},function(e,t,n){var i=n(341),n=n(15),r=n.mergeLayoutParam,o=n.getLayoutParams,a=i.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},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},init:function(e,t,n,i){var r=o(e);a.superCall(this,"init",e,t,n,i),s(this,e,r)},mergeOption:function(e,t){a.superCall(this,"mergeOption",e,t),s(this,this.option,e)}});function s(e,t,n){var i=[1,1];i[e.getOrient().index]=0,r(t,n,{type:"box",ignoreSize:i})}e.exports=a},function(e,t,n){var g=n(1),v=n(6),y=n(15),n=n(342),i=v.Group,x=["width","height"],b=["x","y"],h=n.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){h.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new i),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new i),this._showController},resetInner:function(){h.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,i,t,r,n,o,a){var s=this;h.superCall(this,"renderInner",e,i,t,r,n,o,a);var l=this._controllerGroup,u=i.get("pageIconSize",!0);g.isArray(u)||(u=[u,u]),c("pagePrev",0);a=i.getModel("pageTextStyle");function c(e,t){var n=e+"DataIndex",n=v.createIcon(i.get("pageIcons",!0)[i.getOrient().name][t],{onclick:g.bind(s._pageGo,s,n,i,r)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});n.name=e,l.add(n)}l.add(new v.Text({name:"pageText",style:{textFill:a.getTextColor(),font:a.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),c("pageNext",1)},layoutInner:function(e,t,n,i,r,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=x[s],u=b[s],c=x[1-s],h=b[1-s];r&&y.box("horizontal",a,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],m=g.clone(n);r&&(m[l]=n[l]-p[l]-d);m=this._layoutContentAndController(e,i,m,s,l,c,h);return r&&("end"===o?f[s]+=m[l]+d:(o=p[l]+d,f[s]-=o,m[u]-=o),m[l]+=p[l]+d,f[1-s]+=m[h]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[h]=Math.min(m[h],p[h]+f[1-s]),a.attr("position",f)),m},_layoutContentAndController:function(e,t,n,i,r,o,a){var s=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;y.box(e.get("orient"),s,e.get("itemGap"),i?n.width:null,i?null:n.height),y.box("horizontal",u,e.get("pageButtonItemGap",!0));var c=s.getBoundingRect(),h=u.getBoundingRect(),d=this._showController=c[r]>n[r],p=[-c.x,-c.y];t||(p[i]=s.position[i]);var f=[0,0],m=[-h.x,-h.y],t=g.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));d&&("end"===e.get("pageButtonPosition",!0)?m[i]+=n[r]-h[r]:f[i]+=h[r]+t),m[1-i]+=c[o]/2-h[o]/2,s.attr("position",p),l.attr("position",f),u.attr("position",m);f={x:0,y:0};f[r]=(d?n:c)[r],f[o]=Math.max(c[o],h[o]),f[a]=Math.min(0,h[a]+m[1-i]),l.__rectSize=n[r],d?((i={x:0,y:0})[r]=Math.max(n[r]-h[r]-t,0),i[o]=f[o],l.setClipPath(new v.Rect({shape:i})),l.__rectSize=i[r]):u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});u=this._getPageInfo(e);return null!=u.pageIndex&&v.updateProps(s,{position:u.contentPosition},d&&e),this._updatePageInfoView(e,u),f},_pageGo:function(e,t,n){e=this._getPageInfo(t)[e];null!=e&&n.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:t.id})},_updatePageInfoView:function(n,i){var r=this._controllerGroup;g.each(["pagePrev","pageNext"],function(e){var t=null!=i[e+"DataIndex"],e=r.childOfName(e);e&&(e.setStyle("fill",t?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),e.cursor=t?"pointer":"default")});var e=r.childOfName("pageText"),t=n.get("pageFormatter"),o=i.pageIndex,a=null!=o?o+1:0,o=i.pageCount;e&&t&&e.setStyle("text",g.isString(t)?t.replace("{current}",a).replace("{total}",o):t({current:a,total:o}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=x[r],a=b[r],s=this._findTargetItemIndex(t),l=n.children(),e=l[s],u=l.length,t=u?1:0,c={contentPosition:n.position.slice(),pageCount:t,pageIndex:t-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!e)return c;e=m(e);c.contentPosition[r]=-e.s;for(var h=s+1,d=e,p=e,f=null;h<=u;++h)(!(f=m(l[h]))&&p.e>d.s+i||f&&!g(f,d.s))&&(d=p.i>d.i?p:f)&&(null==c.pageNextDataIndex&&(c.pageNextDataIndex=d.i),++c.pageCount),p=f;for(h=s-1,d=e,p=e,f=null;-1<=h;--h)(f=m(l[h]))&&g(p,f.s)||!(d.i<p.i)||(p=d,null==c.pagePrevDataIndex&&(c.pagePrevDataIndex=d.i),++c.pageCount,++c.pageIndex),d=f;return c;function m(e){if(e){var t=e.getBoundingRect(),n=t[a]+e.position[r];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function g(e,t){return e.e>=t&&e.s<=t+i}},_findTargetItemIndex:function(n){return this._showController?(this.getContentGroup().eachChild(function(e,t){e=e.__legendDataIndex;null==r&&null!=e&&(r=t),e===n&&(i=t)}),null!=i?i:r):0;var i,r}});e.exports=h},function(e,t,n){n(3).registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(e){e.setScrollDataIndex(n)})})},function(e,t,n){n=n(103).extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});e.exports=n},function(e,t,n){var d=n(1),r=n(54),p=n(6),o=n(66),i=n(104),s=n(8),a=n(15),l=n(102),u=p.Rect,f=s.linearMap,c=s.asc,h=d.bind,m=d.each,g="horizontal",v=["line","bar","candlestick","scatter"],y=i.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,n,i){y.superApply(this,"render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){y.superApply(this,"remove",arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){y.superApply(this,"dispose",arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new p.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,n=this._findCoordRect(),t={width:t.getWidth(),height:t.getHeight()},i=this._orient===g?{right:t.width-n.x-n.width,top:t.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},r=a.getLayoutParams(e.option);d.each(["right","top","width","height"],function(e){"ph"===r[e]&&(r[e]=i[e])});e=a.getLayoutRect(r,t,e.padding);this._location={x:e.x,y:e.y},this._size=[e.width,e.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.barGroup,i=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==g||r?n===g&&r?{scale:i?[-1,1]:[-1,-1]}:"vertical"!==n||r?{scale:i?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:i?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:i?[1,1]:[1,-1]});o=e.getBoundingRect([o]);e.attr("position",[t.x-o.x,t.y-o.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.barGroup;n.add(new u({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),n.add(new u({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:d.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e,t,i,r,o,a,s,l,u,c,n,h=this._dataShadowInfo=this._prepareDataShadowInfo();h&&(e=this._size,t=(n=h.series).getRawData(),null!=(n=n.getShadowDim?n.getShadowDim():h.otherDim)&&(h=.3*((i=t.getDataExtent(n))[1]-i[0]),i=[i[0]-h,i[1]+h],r=[0,e[1]],h=[0,e[0]],o=[[e[0],0],[0,0]],a=[],s=h[1]/(t.count()-1),l=0,u=Math.round(t.count()/e[0]),t.each([n],function(e,t){var n;0<u&&t%u?l+=s:(e=(n=null==e||isNaN(e)||""===e)?0:f(e,i,r,!0),n&&!c&&t?(o.push([o[o.length-1][0],0]),a.push([a[a.length-1][0],0])):!n&&c&&(o.push([l,0]),a.push([l,0])),o.push([l,e]),a.push([l,e]),l+=s,c=n)}),n=this.dataZoomModel,this._displayables.barGroup.add(new p.Polygon({shape:{points:o},style:d.defaults({fill:n.get("dataBackgroundColor")},n.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new p.Polyline({shape:{points:a},style:n.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))))},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,s=t.get("showDataShadow");if(!1!==s){var l,u=this.ecModel;return t.eachTargetAxis(function(o,a){var e=t.getAxisProxy(o.name,a).getTargetSeriesModels();d.each(e,function(e){var t,n,i,r;l||!0!==s&&d.indexOf(v,e.get("type"))<0||(t=u.getComponent(o.axis,a).axis,n={x:"y",y:"x",radius:"angle",angle:"radius"}[o.name],r=e.coordinateSystem,null!=n&&r.getOtherAxis&&(i=r.getOtherAxis(t).inverse),n=e.getData().mapDimension(n),l={thisAxis:t,series:e,thisDim:o.name,otherDim:n,otherAxisInverse:i})},this)},this),l}},_renderHandle:function(){var e=this._displayables,i=e.handles=[],r=e.handleLabels=[],o=this._displayables.barGroup,t=this._size,a=this.dataZoomModel;o.add(e.filler=new u({draggable:!0,cursor:x(this._orient),drift:h(this._onDragMove,this,"all"),ondragstart:h(this._showDataInfo,this,!0),ondragend:h(this._onDragEnd,this),onmouseover:h(this._showDataInfo,this,!0),onmouseout:h(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),o.add(new u({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),m([0,1],function(e){var t=p.createIcon(a.get("handleIcon"),{cursor:x(this._orient),draggable:!0,drift:h(this._onDragMove,this,e),ondragend:h(this._onDragEnd,this),onmouseover:h(this._showDataInfo,this,!0),onmouseout:h(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),n=t.getBoundingRect();this._handleHeight=s.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=n.width/n.height*this._handleHeight,t.setStyle(a.getModel("handleStyle").getItemStyle());n=a.get("handleColor");null!=n&&(t.style.fill=n),o.add(i[e]=t);t=a.textStyleModel;this.group.add(r[e]=new p.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:t.getTextColor(),textFont:t.getFont()},z2:10}))},this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[f(e[0],[0,100],t,!0),f(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];l(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?f(o.minSpan,a,r,!0):null,null!=o.maxSpan?f(o.maxSpan,a,r,!0):null);o=this._range,a=this._range=c([f(i[0],r,a,!0),f(i[1],r,a,!0)]);return!o||o[0]!==a[0]||o[1]!==a[1]},_updateView:function(e){var i=this._displayables,r=this._handleEnds,t=c(r.slice()),o=this._size;m([0,1],function(e){var t=i.handles[e],n=this._handleHeight;t.attr({scale:[n/2,n/2],position:[r[e],o[1]/2-n/2]})},this),i.filler.setShape({x:t[0],y:0,width:t[1]-t[0],height:o[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t,n,i=this.dataZoomModel,r=this._displayables,o=r.handleLabels,a=this._orient,s=["",""];!i.get("showDetail")||(n=i.findRepresentativeAxisProxy())&&(t=n.getAxisModel().axis,i=this._range,n=e?n.calculateDataWindow({start:i[0],end:i[1]}).valueWindow:n.getDataValueWindow(),s=[this._formatLabel(n[0],t),this._formatLabel(n[1],t)]);var l=c(this._handleEnds.slice());function u(e){var t=p.getTransform(r.handles[e].parent,this.group),n=p.transformDirection(0===e?"right":"left",t),i=this._handleWidth/2+5,t=p.applyTransform([l[e]+(0===e?-i:i),this._size[1]/2],t);o[e].setStyle({x:t[0],y:t[1],textVerticalAlign:a===g?"middle":n,textAlign:a===g?n:"center",text:s[e]})}u.call(this,0),u.call(this,1)},_formatLabel:function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),n=n.get("labelPrecision");null!=n&&"auto"!==n||(n=t.getPixelPrecision());n=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(n,20));return d.isFunction(i)?i(e,n):d.isString(i)?i.replace("{value}",n):n},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,n,i){this._dragging=!0,r.stop(i.event);i=this._displayables.barGroup.getLocalTransform(),i=p.applyTransform([t,n],i,!0),e=this._updateInterval(e,i[0]),i=this.dataZoomModel.get("realtime");this._updateView(!i),e&&i&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,e=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);e[0]<0||e[0]>t[0]||e[1]<0||e[1]>t[1]||(t=((t=this._handleEnds)[0]+t[1])/2,t=this._updateInterval("all",e[0]-t),this._updateView(),t&&this._dispatchZoomAction())},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e,t,n;return m(this.getTargetCoordInfo(),function(e){!n&&e.length&&(e=e[0].model.coordinateSystem,n=e.getRect&&e.getRect())}),n||(e=this.api.getWidth(),t=this.api.getHeight(),n={x:.2*e,y:.2*t,width:.6*e,height:.6*t}),n}});function x(e){return"vertical"===e?"ns-resize":"ew-resize"}e.exports=y},function(e,t,n){n=n(103).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});e.exports=n},function(e,t,n){var l=n(1),i=n(104),u=n(102),c=n(756),h=l.bind,r=i.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(a,e,s,t){r.superApply(this,"render",arguments),this._range=a.getPercentRange(),l.each(this.getTargetCoordInfo(),function(e,r){var o=l.map(e,function(e){return c.generateCoordId(e.model)});l.each(e,function(t){var i=t.model,n={};l.each(["pan","zoom","scrollMove"],function(e){n[e]=h(d[e],this,t,r)},this),c.register(s,{coordId:c.generateCoordId(i),allCoordIds:o,containsPoint:function(e,t,n){return i.coordinateSystem.containPoint([t,n])},dataZoomId:a.id,dataZoomModel:a,getRange:n})},this)},this)},dispose:function(){c.unregister(this.api,this.dataZoomModel.id),r.superApply(this,"dispose",arguments),this._range=null}}),d={zoom:function(e,t,n,i){var r=this._range,o=r.slice(),a=e.axisModels[0];if(a){e=s[t](null,[i.originX,i.originY],a,n,e),e=(0<e.signal?e.pixelStart+e.pixelLength-e.pixel:e.pixel-e.pixelStart)/e.pixelLength*(o[1]-o[0])+o[0],i=Math.max(1/i.scale,0);o[0]=(o[0]-e)*i+e,o[1]=(o[1]-e)*i+e;e=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return u(0,o,[0,100],0,e.minSpan,e.maxSpan),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:o(function(e,t,n,i,r,o){n=s[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return n.signal*(e[1]-e[0])*n.pixel/n.pixelLength}),scrollMove:o(function(e,t,n,i,r,o){return s[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n).signal*(e[1]-e[0])*o.scrollDelta})};function o(s){return function(e,t,n,i){var r=this._range,o=r.slice(),a=e.axisModels[0];if(a){i=s(o,a,e,t,n,i);return u(i,o,[0,100],"all"),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}}}var s={grid:function(e,t,n,i,r){var o=n.axis,n={},r=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(n.pixel=t[0]-e[0],n.pixelLength=r.width,n.pixelStart=r.x,n.signal=o.inverse?1:-1):(n.pixel=t[1]-e[1],n.pixelLength=r.height,n.pixelStart=r.y,n.signal=o.inverse?-1:1),n},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),r=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=r[1]-r[0],a.pixelStart=r[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,n=r.model.coordinateSystem.getRect(),r={};return e=e||[0,0],"horizontal"===o.orient?(r.pixel=t[0]-e[0],r.pixelLength=n.width,r.pixelStart=n.x,r.signal=o.inverse?1:-1):(r.pixel=t[1]-e[1],r.pixelLength=n.height,r.pixelStart=n.y,r.signal=o.inverse?-1:1),r}};e.exports=r},function(e,t,n){var h=n(1),d=n(134),p=n(66),i="\0_ec_dataZoom_roams";function f(e){e=e.getZr();return e[i]||(e[i]={})}function m(n){h.each(n,function(e,t){e.count||(e.controller.dispose(),delete n[t])})}function g(e,t){e.dispatchAction({type:"dataZoom",batch:t})}t.register=function(e,i){var t=f(e),r=i.dataZoomId,o=i.coordId;h.each(t,function(e,t){var n=e.dataZoomInfos;n[r]&&h.indexOf(i.allCoordIds,o)<0&&(delete n[r],e.count--)}),m(t);var a,n,s=t[o];s||((s=t[o]={coordId:o,dataZoomInfos:{},count:0}).controller=(a=s,n=new d(e.getZr()),h.each(["pan","zoom","scrollMove"],function(r){n.on(r,function(n){var i=[];h.each(a.dataZoomInfos,function(e){var t;n.isAvailableBehavior(e.dataZoomModel.option)&&(t=(t=(e.getRange||{})[r])&&t(a.controller,n),!e.dataZoomModel.get("disabled",!0)&&t&&i.push({dataZoomId:e.dataZoomId,start:t[0],end:t[1]}))}),i.length&&a.dispatchAction(i)})}),n),s.dispatchAction=h.curry(g,e)),s.dataZoomInfos[r]||s.count++,s.dataZoomInfos[r]=i;var l,u,c,e=(e=s.dataZoomInfos,u={type_true:2,type_move:1,type_false:0,type_undefined:-1},c=!0,h.each(e,function(e){var t=e.dataZoomModel,e=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");u["type_"+l]<u["type_"+e]&&(l=e),c&=t.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}});s.controller.enable(e.controlType,e.opt),s.controller.setPointerChecker(i.containsPoint),p.createOrUpdate(s,"dispatchAction",i.dataZoomModel.get("throttle",!0),"fixRate")},t.unregister=function(e,n){e=f(e),h.each(e,function(e){e.controller.dispose();var t=e.dataZoomInfos;t[n]&&(delete t[n],e.count--)}),m(e)},t.generateCoordId=function(e){return e.type+"\0_"+e.id}},function(e,t,n){var i=n(1),r=n(386),o=n(8),a=[20,140],s=r.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(e,t){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var e=this.itemSize;"horizontal"===this._orient&&e.reverse(),null!=e[0]&&!isNaN(e[0])||(e[0]=a[0]),null!=e[1]&&!isNaN(e[1])||(e[1]=a[1])},_resetRange:function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):i.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,function(e){e=this.option.controller[e].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=o.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},getValueState:function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(i){var r=[];return this.eachTargetSeries(function(e){var n=[],t=e.getData();t.each(this.getDataDimension(t),function(e,t){i[0]<=e&&e<=i[1]&&n.push(t)},this),r.push({seriesId:e.id,dataIndex:n})},this),r},getVisualMeta:function(n){var e=h(0,0,this.getExtent()),t=h(0,0,this.option.range.slice()),i=[];function r(e,t){i.push({value:e,color:n(e,t)})}for(var o=0,a=0,s=t.length,l=e.length;a<l&&(!t.length||e[a]<=t[0]);a++)e[a]<t[o]&&r(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(t[o],"outOfRange"),r(t[o],"inRange");for(u=1;a<l;a++)(!t.length||t[t.length-1]<e[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}}});function h(e,t,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}e.exports=s},function(e,t,n){var l=n(1),o=n(196),u=n(54),i=n(388),c=n(6),r=n(8),a=n(102),h=n(389),s=n(10),d=r.linearMap,p=l.each,f=Math.min,m=Math.max,g=i.extend({type:"visualMap.continuous",init:function(){g.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);e=e.get("text");this._renderEndsText(t,e,0),this._renderEndsText(t,e,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},_renderEndsText:function(e,t,n){var i,r,o;t&&(i=null!=(i=t[1-n])?i+"":"",r=(o=this.visualMapModel).get("textGap"),t=o.itemSize,o=this._shapes.barGroup,t=this._applyTransform([t[0]/2,0===n?-r:t[1]+r],o),r=this._applyTransform(0===n?"bottom":"top",o),n=this._orient,o=this.visualMapModel.textStyleModel,this.group.add(new c.Text({style:{x:t[0],y:t[1],textVerticalAlign:"horizontal"===n?"middle":r,textAlign:"horizontal"===n?r:"center",text:i,textFont:o.getFont(),textFill:o.getTextColor()}})))},_renderBar:function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,r=this._orient,o=this._useHandle,a=h.getItemAlign(t,this.api,i),s=n.barGroup=this._createBarGroup(a);s.add(n.outOfRange=v()),s.add(n.inRange=v(null,o?x(this._orient):null,l.bind(this._dragHandle,this,"all",!1),l.bind(this._dragHandle,this,"all",!0)));t=t.textStyleModel.getTextRect("国"),t=m(t.width,t.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(s,0,i,t,r,a),this._createHandle(s,1,i,t,r,a)),this._createIndicator(s,i,t,r),e.add(s)},_createHandle:function(e,t,n,i,r){var o,a=l.bind(this._dragHandle,this,t,!1),s=l.bind(this._dragHandle,this,t,!0),o=v((o=i,0===t?[[0,0],[o,0],[o,-o]]:[[0,0],[o,0],[o,o]]),x(this._orient),a,s);o.position[0]=n[0],e.add(o);e=this.visualMapModel.textStyleModel,e=new c.Text({draggable:!0,drift:a,onmousemove:function(e){u.stop(e.event)},ondragend:s,style:{x:0,y:0,text:"",textFont:e.getFont(),textFill:e.getTextColor()}});this.group.add(e);r=["horizontal"===r?i/2:1.5*i,"horizontal"===r?0===t?-1.5*i:1.5*i:0===t?-i/2:i/2],i=this._shapes;i.handleThumbs[t]=o,i.handleLabelPoints[t]=r,i.handleLabels[t]=e},_createIndicator:function(e,t,n,i){var r=v([[0,0]],"move");r.position[0]=t[0],r.attr({invisible:!0,silent:!0}),e.add(r);e=this.visualMapModel.textStyleModel,e=new c.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:e.getFont(),textFill:e.getTextColor()}});this.group.add(e);i=["horizontal"===i?n/2:9,0],n=this._shapes;n.indicator=r,n.indicatorLabel=e,n.indicatorLabelPoint=i},_dragHandle:function(e,t,n,i){this._useHandle&&(this._dragging=!t,t||(i=this._applyTransform([n,i],this._shapes.barGroup,!0),this._updateInterval(e,i[1]),this._updateView()),t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?this._hovering||this._clearHoverLinkToSeries():y(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1))},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),e=[0,e.itemSize[1]];this._handleEnds=[d(t[0],n,e,!0),d(t[1],n,e,!0)]},_updateInterval:function(e,t){var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];a(t=t||0,i,r,e,0);n=n.getExtent();this._dataInterval=[d(i[0],r,n,!0),d(i[1],r,n,!0)]},_updateView:function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],t=e?r:this._handleEnds,e=this._createBarVisual(this._dataInterval,n,t,"inRange"),r=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:e.barColor,opacity:e.opacity}).setShape("points",e.barPoints),i.outOfRange.setStyle({fill:r.barColor,opacity:r.opacity}).setShape("points",r.barPoints),this._updateHandle(t,e)},_createBarVisual:function(e,t,n,i){var r={forceState:i,convertOpacityToAlpha:!0},i=this._makeColorGradient(e,r),r=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],r=this._createBarPoints(n,r);return{barColor:new o(0,0,0,1,i),barPoints:r,handlesColor:[i[0].color,i[i.length-1].color]}},_makeColorGradient:function(e,t){var n=[],i=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var r=1;r<100;r++){var o=e[0]+i*r;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:r/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},_createBarPoints:function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new c.Group("horizontal"!==t||n?"horizontal"===t&&n?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==t||n?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(n,i){var r,o,a,s;this._useHandle&&(r=this._shapes,o=this.visualMapModel,a=r.handleThumbs,s=r.handleLabels,p([0,1],function(e){var t=a[e];t.setStyle("fill",i.handlesColor[e]),t.position[1]=n[e];t=c.applyTransform(r.handleLabelPoints[e],c.getTransform(t,this.group));s[e].setStyle({x:t[0],y:t[1],text:o.formatValueText(this._dataInterval[e]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===e?"bottom":"top":"left",r.barGroup)})},this))},_showIndicator:function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=d(e,o,s,!0),u=this._shapes,o=u.indicator;o&&(o.position[1]=l,o.attr("invisible",!1),o.setShape("points",(s=!!n,i=i,l=l,a=a[1],s?[[0,-f(i,m(l,0))],[6,0],[0,f(i,m(a-l,0))]]:[[0,0],[5,-5],[5,5]])),l=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),o.setStyle("fill",l),e=c.applyTransform(u.indicatorLabelPoint,c.getTransform(o,this.group)),(l=u.indicatorLabel).attr("invisible",!1),o=this._applyTransform("left",u.barGroup),u=this._orient,l.setStyle({text:(n||"")+r.formatValueText(t),textVerticalAlign:"horizontal"===u?o:"middle",textAlign:"horizontal"===u?"center":o,x:e[0],y:e[1]}))},_enableHoverLinkToSeries:function(){var n=this;this._shapes.barGroup.on("mousemove",function(e){var t;n._hovering=!0,n._dragging||(t=n.visualMapModel.itemSize,(e=n._applyTransform([e.offsetX,e.offsetY],n._shapes.barGroup,!0,!0))[1]=f(m(0,e[1]),t[1]),n._doHoverLinkToSeries(e[1],0<=e[0]&&e[0]<=t[0]))}).on("mouseout",function(){n._hovering=!1,n._dragging||n._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var n,i,r,o=this.visualMapModel,a=o.itemSize;o.option.hoverLink&&(n=[0,a[1]],i=o.getExtent(),a=[(e=f(m(n[0],e),n[1]))-(r=function(e,t,n){var i=6,e=e.get("hoverLinkDataSize");e&&(i=d(e,t,n,!0)/2);return i}(o,i,n)),e+r],e=d(e,n,i,!0),i=[d(a[0],n,i,!0),d(a[1],n,i,!0)],a[0]<n[0]&&(i[0]=-1/0),n[1]<a[1]&&(i[1]=1/0),t&&(i[0]===-1/0?this._showIndicator(e,i[1],"< ",r):i[1]===1/0?this._showIndicator(e,i[0],"> ",r):this._showIndicator(e,e,"≈ ",r)),e=this._hoverLinkDataIndices,r=[],(t||y(o))&&(r=this._hoverLinkDataIndices=o.findTargetDataIndices(i)),r=s.compressBatches(e,r),this._dispatchHighDown("downplay",h.makeHighDownBatch(r[0],o)),this._dispatchHighDown("highlight",h.makeHighDownBatch(r[1],o)))},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,n=this.visualMapModel;t&&null!=t.dataIndex&&(e=this.ecModel.getSeriesByIndex(t.seriesIndex),n.isTargetSeries(e)&&(t=(e=e.getData(t.dataType)).get(n.getDataDimension(e),t.dataIndex,!0),isNaN(t)||this._showIndicator(t,t)))},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",h.makeHighDownBatch(e,this.visualMapModel)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,n,i){i=c.getTransform(t,i?null:this.group);return c[l.isArray(e)?"applyTransform":"transformDirection"](e,i,n)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function v(e,t,n,i){return new c.Polygon({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){u.stop(e.event)},ondragend:i})}function y(e){var t=e.get("hoverLinkOnHandle");return null==t?e.get("realtime"):t}function x(e){return"vertical"===e?"ns-resize":"ew-resize"}e.exports=g},function(e,t,n){n(14).__DEV__;var d=n(1),a=n(386),p=n(85),s=n(387),u=n(8).reformIntervals,r=a.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,t){r.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();o[this._mode].call(this),this._resetSelected(e,t);var i=this.option.categories;this.resetVisual(function(e,t){"categories"===n?(e.mappingMethod="category",e.categories=d.clone(i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=d.map(this._pieceList,function(e){e=d.clone(e);return"inRange"!==t&&(e.visual=null),e}))})},completeVisualOption:function(){var i=this.option,n={},e=p.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&(d.isObject(e[t])?e[t].hasOwnProperty(n):e[t]===n)}d.each(i.pieces,function(t){d.each(e,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),d.each(n,function(e,t){var n=0;d.each(this.stateList,function(e){n|=o(i,e,t)||o(i.target,e,t)},this),n||d.each(this.stateList,function(e){(i[e]||(i[e]={}))[t]=s.get(t,"inRange"===e?"active":"inactive",r)})},this),a.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,t){var n,i=this.option,r=this._pieceList,o=(t?i:e).selected||{};i.selected=o,d.each(r,function(e,t){e=this.getSelectedMapKey(e);o.hasOwnProperty(e)||(o[e]=!0)},this),"single"===i.selectedMode&&(n=!1,d.each(r,function(e,t){e=this.getSelectedMapKey(e);o[e]&&(n?o[e]=!1:n=!0)},this))},getSelectedMapKey:function(e){return"categories"===this._mode?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&0<e.pieces.length?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=d.clone(e)},getValueState:function(e){e=p.findPieceIndex(e,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(i){var r=[];return this.eachTargetSeries(function(e){var n=[],t=e.getData();t.each(this.getDataDimension(t),function(e,t){p.findPieceIndex(e,this._pieceList)===i&&n.push(t)},this),r.push({seriesId:e.id,dataIndex:n})},this),r},getRepresentValue:function(e){return this.isCategory()||null!=e.value?e.value:(e=e.interval||[])[0]===-1/0&&e[1]===1/0?0:(e[0]+e[1])/2},getVisualMeta:function(i){if(!this.isCategory()){var e,r=[],o=[],a=this,t=this._pieceList.slice();t.length?((e=t[0].interval[0])!==-1/0&&t.unshift({interval:[-1/0,e]}),(e=t[t.length-1].interval[1])!==1/0&&t.push({interval:[e,1/0]})):t.push({interval:[-1/0,1/0]});var n=-1/0;return d.each(t,function(e){e=e.interval;e&&(e[0]>n&&s([n,e[0]],"outOfRange"),s(e.slice()),n=e[1])},this),{stops:r,outerColors:o}}function s(e,t){var n=a.getRepresentValue({interval:e});t=t||a.getValueState(n);t=i(n,t);e[0]===-1/0?o[0]=t:e[1]===1/0?o[1]=t:r.push({value:e[0],color:t},{value:e[1],color:t})}}}),o={splitNumber:function(){var e=this.option,t=this._pieceList,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber,r=Math.max(parseInt(r,10),1);e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),u(t),d.each(t,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(){var e=this.option;d.each(e.categories,function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})},this),i(e,this._pieceList)},pieces:function(){var e=this.option,h=this._pieceList;d.each(e.pieces,function(e,t){var n={text:"",index:t};if(null!=(e=!d.isObject(e)?{value:e}:e).label&&(n.text=e.label),e.hasOwnProperty("value")){t=n.value=e.value;n.interval=[t,t],n.close=[1,1]}else{for(var i=n.interval=[],r=n.close=[0,0],o=[1,0,1],a=[-1/0,1/0],s=[],l=0;l<2;l++){for(var u=[["gte","gt","min"],["lte","lt","max"]][l],c=0;c<3&&null==i[l];c++)i[l]=e[u[c]],r[l]=o[c],s[l]=2===c;null==i[l]&&(i[l]=a[l])}s[0]&&i[1]===1/0&&(r[0]=0),s[1]&&i[0]===-1/0&&(r[1]=0),i[0]===i[1]&&r[0]&&r[1]&&(n.value=i[0])}n.visual=p.retrieveVisuals(e),h.push(n)},this),i(e,h),u(h),d.each(h,function(e){var t=e.close,t=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,t)},this)}};function i(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}e.exports=r},function(e,t,n){var h=n(1),i=n(388),d=n(6),r=n(42).createSymbol,p=n(15),o=n(389),i=i.extend({type:"visualMap.piecewise",doRender:function(){var i=this.group;i.removeAll();var r=this.visualMapModel,o=r.get("textGap"),e=r.textStyleModel,a=e.getFont(),s=e.getTextColor(),l=this._getItemAlign(),u=r.itemSize,t=this._getViewData(),e=t.endsText,c=h.retrieve(r.get("showLabel",!0),!e);e&&this._renderEndsText(i,e[0],u,c,l),h.each(t.viewPieceList,function(e){var t=e.piece,n=new d.Group;n.onclick=h.bind(this._onItemClick,this,t),this._enableHoverLink(n,e.indexInModelPieceList);e=r.getRepresentValue(t);this._createItemSymbol(n,e,[0,0,u[0],u[1]]),c&&(e=this.visualMapModel.getValueState(e),n.add(new d.Text({style:{x:"right"===l?-o:u[0]+o,y:u[1]/2,text:t.text,textVerticalAlign:"middle",textAlign:l,textFont:a,textFill:s,opacity:"outOfRange"===e?.5:1}})));i.add(n)},this),e&&this._renderEndsText(i,e[1],u,c,l),p.box(r.get("orient"),i,r.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},_enableHoverLink:function(e,n){function t(e){var t=this.visualMapModel;t.option.hoverLink&&this.api.dispatchAction({type:e,batch:o.makeHighDownBatch(t.findTargetDataIndices(n),t)})}e.on("mouseover",h.bind(t,this,"highlight")).on("mouseout",h.bind(t,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return o.getItemAlign(e,this.api,e.itemSize);t=t.align;return t=!t||"auto"===t?"left":t},_renderEndsText:function(e,t,n,i,r){var o,a;t&&(o=new d.Group,a=this.visualMapModel.textStyleModel,o.add(new d.Text({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?r:"center",text:t,textFont:a.getFont(),textFill:a.getTextColor()}})),e.add(o))},_getViewData:function(){var e=this.visualMapModel,t=h.map(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get("text"),i=e.get("orient"),e=e.get("inverse");return("horizontal"===i?e:!e)?t.reverse():n=n&&n.slice().reverse(),{viewPieceList:t,endsText:n}},_createItemSymbol:function(e,t,n){e.add(r(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,n=t.option,i=h.clone(n.selected),r=t.getSelectedMapKey(e);"single"===n.selectedMode?(i[r]=!0,h.each(i,function(e,t){i[t]=t===r})):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}});e.exports=i},function(e,t,n){n(762),(0,n(145).registerPainter)("vml",n(763))},function(e,t,n){var i=n(25),H=n(20).applyTransform,r=n(21),T=n(55),_=n(41),w=n(149),o=n(305),a=n(120),s=n(95),l=n(79),u=n(24),c=n(97),k=n(150),D=n(392),z=c.CMD,R=Math.round,j=Math.sqrt,h=Math.abs,B=Math.cos,F=Math.sin,I=Math.max;if(!i.canvasSupported){function O(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=$+","+$,e.coordorigin="0,0"}function N(e,t,n){return"rgb("+[e,t,n].join(",")+")"}function L(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)}function d(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function P(e,t,n){return 1e5*(parseFloat(e)||0)+1e3*(parseFloat(t)||0)+n}function E(e,t,n){t=T.parse(t);n=+n,isNaN(n)&&(n=1),t&&(e.color=N(t[0],t[1],t[2]),e.opacity=n*t[3])}function p(e,t,n){var i=t.fill;if(null!=i)if(i instanceof k){var r,o,a,s,l,u=0,c=[0,0],h=0,d=1,p=n.getBoundingRect(),f=p.width,m=p.height;"linear"===i.type?(r="gradient",l=n.transform,s=[i.x*f,i.y*m],a=[i.x2*f,i.y2*m],l&&(H(s,s,l),H(a,a,l)),o=a[0]-s[0],a=a[1]-s[1],(u=180*Math.atan2(o,a)/Math.PI)<0&&(u+=360),u<1e-6&&(u=0)):(r="gradientradial",s=[i.x*f,i.y*m],l=n.transform,v=n.scale,c=[(s[0]-p.x)/(y=f),(s[1]-p.y)/(x=m)],l&&H(s,s,l),y/=v[0]*$,x/=v[1]*$,b=I(y,x),d=2*i.r/b-(h=0/b));var g=i.colorStops.slice();g.sort(function(e,t){return e.offset-t.offset});for(var v,y,x,b,_=g.length,w=[],C=[],S=0;S<_;S++){var A=g[S],M=function(e){e=T.parse(e);return[N(e[0],e[1],e[2]),e[3]]}(A.color);C.push(A.offset*d+h+" "+M[0]),0!==S&&S!==_-1||w.push(M)}2<=_&&(v=w[0][0],y=w[1][0],x=w[0][1]*t.opacity,b=w[1][1]*t.opacity,e.type=r,e.method="none",e.focus="100%",e.angle=u,e.color=v,e.color2=y,e.colors=C.join(","),e.opacity=b,e.opacity2=x),"radial"===r&&(e.focusposition=c.join(","))}else E(e,i,t.opacity)}function C(e,t,n,i){var r="fill"===t,o=e.getElementsByTagName(t)[0];null!=n[t]&&"none"!==n[t]&&(r||!r&&n.lineWidth)?(e[r?"filled":"stroked"]="true",n[t]instanceof k&&d(e,o),o=o||D.createNode(t),r?p(o,n,i):(i=o,(n=n).lineDash&&(i.dashstyle=n.lineDash.join(" ")),null==n.stroke||n.stroke instanceof k||E(i,n.stroke,n.opacity)),L(e,o)):(e[r?"filled":"stroked"]="false",d(e,o))}var V="progid:DXImageTransform.Microsoft",$=21600,Y=10800,S=w.parsePercent,W=[[],[],[]];u.prototype.brushVML=function(e){var t=this.style,n=this._vmlEl;n||(n=D.createNode("shape"),O(n),this._vmlEl=n),C(n,"fill",t,this),C(n,"stroke",t,this);var i=this.transform,r=null!=i,o=n.getElementsByTagName("stroke")[0];o&&(a=t.lineWidth,r&&!t.strokeNoScale&&(i=i[0]*i[3]-i[1]*i[2],a*=j(h(i))),o.weight=a+"px");var a=this.path||(this.path=new c);this.__dirtyPath&&(a.beginPath(),a.subPixelOptimize=!1,this.buildPath(a,this.shape),a.toStatic(),this.__dirtyPath=!1),n.path=function(e,t){for(var n,i,r,o=z.M,a=z.C,s=z.L,l=z.A,u=z.Q,c=[],h=e.data,d=e.len(),p=0;p<d;){switch(g="",v=0,n=h[p++]){case o:g=" m ",v=1,i=h[p++],r=h[p++],W[0][0]=i,W[0][1]=r;break;case s:g=" l ",v=1,i=h[p++],r=h[p++],W[0][0]=i,W[0][1]=r;break;case u:case a:var f,m,g=" c ",v=3,y=h[p++],x=h[p++],b=h[p++],_=h[p++];n===u?(b=((f=b)+2*y)/3,_=((m=_)+2*x)/3,y=(i+2*y)/3,x=(r+2*x)/3):(f=h[p++],m=h[p++]),W[0][0]=y,W[0][1]=x,W[1][0]=b,W[1][1]=_,i=W[2][0]=f,r=W[2][1]=m;break;case l:var w=0,C=0,S=1,A=1,M=0;t&&(w=t[4],C=t[5],S=j(t[0]*t[0]+t[1]*t[1]),A=j(t[2]*t[2]+t[3]*t[3]),M=Math.atan2(-t[1]/A,t[0]/S));var T=h[p++],k=h[p++],D=h[p++],I=h[p++],O=h[p++]+M,N=h[p++]+O+M;p++;var L=h[p++],b=T+B(O)*D,_=k+F(O)*I,y=T+B(N)*D,x=k+F(N)*I,M=L?" wa ":" at ";Math.abs(b-y)<1e-4&&(.01<Math.abs(N-O)?L&&(b+=.0125):Math.abs(_-k)<1e-4?L&&b<T||!L&&T<b?x-=.0125:x+=.0125:L&&_<k||!L&&k<_?y+=.0125:y-=.0125),c.push(M,R(((T-D)*S+w)*$-Y),",",R(((k-I)*A+C)*$-Y),",",R(((T+D)*S+w)*$-Y),",",R(((k+I)*A+C)*$-Y),",",R((b*S+w)*$-Y),",",R((_*A+C)*$-Y),",",R((y*S+w)*$-Y),",",R((x*A+C)*$-Y)),i=y,r=x;break;case z.R:A=W[0],C=W[1];A[0]=h[p++],A[1]=h[p++],C[0]=A[0]+h[p++],C[1]=A[1]+h[p++],t&&(H(A,A,t),H(C,C,t)),A[0]=R(A[0]*$-Y),C[0]=R(C[0]*$-Y),A[1]=R(A[1]*$-Y),C[1]=R(C[1]*$-Y),c.push(" m ",A[0],",",A[1]," l ",C[0],",",A[1]," l ",C[0],",",C[1]," l ",A[0],",",C[1]);break;case z.Z:c.push(" x ")}if(0<v){c.push(g);for(var P=0;P<v;P++){var E=W[P];t&&H(E,E,t),c.push(R(E[0]*$-Y),",",R(E[1]*$-Y),P<v-1?",":"")}}}return c.join("")}(a,this.transform),n.style.zIndex=P(this.zlevel,this.z,this.z2),L(e,n),null!=t.text?this.drawRectText(e,this.getBoundingRect()):this.removeRectText(e)},u.prototype.onRemove=function(e){d(e,this._vmlEl),this.removeRectText(e)},u.prototype.onAdd=function(e){L(e,this._vmlEl),this.appendRectText(e)};s.prototype.brushVML=function(e){var t,n,i,r,o,a,s,l,u,c,h,d,p,f,m,g,v,y,x,b,_,w,C,S,A=this.style,M=A.image;"object"==typeof(g=M)&&g.tagName&&"IMG"===g.tagName.toUpperCase()?((f=M.src)===this._imageSrc?(t=this._imageWidth,n=this._imageHeight):(m=(v=M.runtimeStyle).width,y=v.height,v.width="auto",v.height="auto",t=M.width,n=M.height,v.width=m,v.height=y,this._imageSrc=f,this._imageWidth=t,this._imageHeight=n),M=f):M===this._imageSrc&&(t=this._imageWidth,n=this._imageHeight),M&&(i=A.x||0,S=A.y||0,r=A.width,o=A.height,a=A.sWidth,s=A.sHeight,l=A.sx||0,u=A.sy||0,w=a&&s,(c=this._vmlEl)||(c=D.doc.createElement("div"),O(c),this._vmlEl=c),C=c.style,g=!1,p=d=1,this.transform&&(h=this.transform,d=j(h[0]*h[0]+h[1]*h[1]),p=j(h[2]*h[2]+h[3]*h[3]),g=h[1]||h[2]),g?(m=[i+r,S],v=[i,S+o],y=[i+r,S+o],H(f=[i,S],f,h),H(m,m,h),H(v,v,h),H(y,y,h),g=I(f[0],m[0],v[0],y[0]),v=I(f[1],m[1],v[1],y[1]),(y=[]).push("M11=",h[0]/d,",","M12=",h[2]/p,",","M21=",h[1]/d,",","M22=",h[3]/p,",","Dx=",R(i*d+h[4]),",","Dy=",R(S*p+h[5])),C.padding="0 "+R(g)+"px "+R(v)+"px 0",C.filter=V+".Matrix("+y.join("")+", SizingMethod=clip)"):(h&&(i=i*d+h[4],S=S*p+h[5]),C.filter="",C.left=R(i)+"px",C.top=R(S)+"px"),C=this._imageEl,S=this._cropEl,C||(C=D.doc.createElement("div"),this._imageEl=C),x=C.style,w?(t&&n?(x.width=R(d*t*r/a)+"px",x.height=R(p*n*o/s)+"px"):(b=new Image,_=this,b.onload=function(){b.onload=null,t=b.width,n=b.height,x.width=R(d*t*r/a)+"px",x.height=R(p*n*o/s)+"px",_._imageWidth=t,_._imageHeight=n,_._imageSrc=M},b.src=M),S||((S=D.doc.createElement("div")).style.overflow="hidden",this._cropEl=S),(w=S.style).width=R((r+l*r/a)*d),w.height=R((o+u*o/s)*p),w.filter=V+".Matrix(Dx="+-l*r/a*d+",Dy="+-u*o/s*p+")",S.parentNode||c.appendChild(S),C.parentNode!==S&&S.appendChild(C)):(x.width=R(d*r)+"px",x.height=R(p*o)+"px",c.appendChild(C),S&&S.parentNode&&(c.removeChild(S),this._cropEl=null)),C="",(S=A.opacity)<1&&(C+=".Alpha(opacity="+R(100*S)+") "),x.filter=C+=V+".AlphaImageLoader(src="+M+", SizingMethod=scale)",c.style.zIndex=P(this.zlevel,this.z,this.z2),L(e,c),null!=A.text&&this.drawRectText(e,this.getBoundingRect()))},s.prototype.onRemove=function(e){d(e,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(e)},s.prototype.onAdd=function(e){L(e,this._vmlEl),this.appendRectText(e)};var f,A="normal",M={},X=0,G=document.createElement("div");_.$override("measureText",function(e,t){var n=D.doc;f||((f=n.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",D.doc.body.appendChild(f));try{f.style.font=t}catch(e){}return f.innerHTML="",f.appendChild(n.createTextNode(e)),{width:f.offsetWidth}});function m(e,t,n,i){var r=this.style;if(this.__dirty&&w.normalizeTextStyle(r,!0),null!=(a=r.text)&&(a+=""),a){if(r.rich){for(var o=_.parseRichText(a,r),a=[],s=0;s<o.lines.length;s++){for(var l=o.lines[s].tokens,u=[],c=0;c<l.length;c++)u.push(l[c].text);a.push(u.join(""))}a=a.join("\n")}var h=r.textAlign,d=r.textVerticalAlign,p=function(e){var t=M[e];if(!t){100<X&&(X=0,M={});var n,i=G.style;try{i.font=e,n=i.fontFamily.split(",")[0]}catch(e){}t={style:i.fontStyle||A,variant:i.fontVariant||A,weight:i.fontWeight||A,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},M[e]=t,X++}return t}(r.font),f=p.style+" "+p.variant+" "+p.weight+" "+p.size+'px "'+p.family+'"';n=n||_.getBoundingRect(a,f,h,d,r.textPadding,r.textLineHeight);var m,g,v=this.transform;v&&!i&&(U.copy(t),U.applyTransform(v),t=U),i?(m=t.x,g=t.y):(p=r.textPosition)instanceof Array?(m=t.x+S(p[0],t.width),g=t.y+S(p[1],t.height),h=h||"left"):(m=(t=(this.calculateTextPosition?this:_).calculateTextPosition({},r,t)).x,g=t.y,h=h||t.textAlign,d=d||t.textVerticalAlign),m=_.adjustTextX(m,n.width,h),g=_.adjustTextY(g,n.height,d),g+=n.height/2;var y,x,d=D.createNode,n=this._textVmlEl;n?y=(b=(x=n.firstChild).nextSibling).nextSibling:(n=d("line"),b=d("path"),y=d("textpath"),x=d("skew"),y.style["v-text-align"]="left",O(n),b.textpathok=!0,y.on=!0,n.from="0 0",n.to="1000 0.05",L(n,x),L(n,b),L(n,y),this._textVmlEl=n);var d=[m,g],b=n.style;v&&i?(H(d,d,v),x.on=!0,x.matrix=v[0].toFixed(3)+","+v[2].toFixed(3)+","+v[1].toFixed(3)+","+v[3].toFixed(3)+",0,0",x.offset=(R(d[0])||0)+","+(R(d[1])||0),x.origin="0 0",b.left="0px",b.top="0px"):(x.on=!1,b.left=R(m)+"px",b.top=R(g)+"px"),y.string=String(a).replace(/&/g,"&").replace(/"/g,""");try{y.style.font=f}catch(e){}C(n,"fill",{fill:r.textFill,opacity:r.opacity},this),C(n,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash||null},this),n.style.zIndex=P(this.zlevel,this.z,this.z2),L(e,n)}}function g(e){d(e,this._textVmlEl),this._textVmlEl=null}function v(e){L(e,this._textVmlEl)}for(var U=new r,y=[o,a,s,u,l],x=0;x<y.length;x++){var b=y[x].prototype;b.drawRectText=m,b.removeRectText=g,b.appendRectText=v}l.prototype.brushVML=function(e){var t=this.style;null!=t.text?this.drawRectText(e,{x:t.x||0,y:t.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(e)},l.prototype.onRemove=function(e){this.removeRectText(e)},l.prototype.onAdd=function(e){this.appendRectText(e)}}},function(e,t,n){var i=n(119),a=n(392),n=n(1).each;function r(e){return parseInt(e,10)}function o(e,t){a.initVML(),this.root=e,this.storage=t;var n=document.createElement("div"),i=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",e.appendChild(n),this._vmlRoot=i,this._vmlViewport=n,this.resize();var r=t.delFromStorage,o=t.addToStorage;t.delFromStorage=function(e){r.call(t,e),e&&e.onRemove&&e.onRemove(i)},t.addToStorage=function(e){e.onAdd&&e.onAdd(i),o.call(t,e)},this._firstPaint=!0}o.prototype={constructor:o,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var t=this._vmlRoot,n=0;n<e.length;n++){var i=e[n];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(t),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(t),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,t),i.afterBrush&&i.afterBrush())),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(e,t){var n,e=null==e?this._getWidth():e,t=null==t?this._getHeight():t;this._width===e&&this._height===t||(this._width=e,this._height=t,(n=this._vmlViewport.style).width=e+"px",n.height=t+"px")},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var e=this.root,t=e.currentStyle;return(e.clientWidth||r(t.width))-r(t.paddingLeft)-r(t.paddingRight)|0},_getHeight:function(){var e=this.root,t=e.currentStyle;return(e.clientHeight||r(t.height))-r(t.paddingTop)-r(t.paddingBottom)|0}},n(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(e){var t;o.prototype[e]=(t=e,function(){i('In IE8.0 VML mode painter not support method "'+t+'"')})}),e.exports=o},function(e,t,n){n(227),(0,n(145).registerPainter)("svg",n(765))},function(e,t,n){var a=n(228).createElement,s=n(1),i=n(119),f=n(24),m=n(95),g=n(79),v=n(766),l=n(767),u=n(768),c=n(769),n=n(227),y=n.path,x=n.image,b=n.text;function h(e){return parseInt(e,10)}function r(e,t){return t&&e&&t.parentNode!==e}function _(e,t,n){r(e,t)&&n&&((n=n.nextSibling)?e.insertBefore(t,n):e.appendChild(t))}function w(e,t){var n;r(e,t)&&((n=e.firstChild)?e.insertBefore(t,n):e.appendChild(t))}function C(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function S(e){return e.__textSvgEl}function A(e){return e.__svgEl}function o(e,t,n,i){this.root=e,this.storage=t,this._opts=n=s.extend({},n||{});var r=a("svg");r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("version","1.1"),r.setAttribute("baseProfile","full"),r.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=a("g");r.appendChild(o),t=a("g"),r.appendChild(t),this.gradientManager=new l(i,t),this.clipPathManager=new u(i,t),this.shadowManager=new c(i,t),(i=document.createElement("div")).style.cssText="overflow:hidden;position:relative",this._svgDom=r,this._svgRoot=t,this._backgroundRoot=o,this._viewport=i,e.appendChild(i),i.appendChild(r),this.resize(n.width,n.height),this._visibleList=[]}o.prototype={constructor:o,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=a("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();for(var t=this._svgRoot,n=this._visibleList,i=e.length,r=[],o=0;o<i;o++){var a=e[o],s=(s=a)instanceof f?y:s instanceof m?x:s instanceof g?b:y,l=A(a)||S(a);a.invisible||(a.__dirty&&(s&&s.brush(a),this.clipPathManager.update(a),a.style&&(this.gradientManager.update(a.style.fill),this.gradientManager.update(a.style.stroke),this.shadowManager.update(l,a)),a.__dirty=!1),r.push(a))}var u,c,h=v(n,r);for(o=0;o<h.length;o++)if((c=h[o]).removed)for(var d=0;d<c.count;d++){var l=A(a=n[c.indices[d]]),p=S(a);C(t,l),C(t,p)}for(o=0;o<h.length;o++)if((c=h[o]).added)for(d=0;d<c.count;d++){l=A(a=r[c.indices[d]]),p=S(a);u?_(t,l,u):w(t,l),l?_(t,p,l):u?_(t,p,u):w(t,p),_(t,p,l),u=p||l||u,this.gradientManager.addWithoutUpdate(l||p,a),this.shadowManager.addWithoutUpdate(l||p,a),this.clipPathManager.markUsed(a)}else if(!c.removed)for(d=0;d<c.count;d++){l=A(a=r[c.indices[d]]),p=S(a),l=A(a),p=S(a);this.gradientManager.markUsed(a),this.gradientManager.addWithoutUpdate(l||p,a),this.shadowManager.markUsed(a),this.shadowManager.addWithoutUpdate(l||p,a),this.clipPathManager.markUsed(a),p&&_(t,p,l),u=l||p||u}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=r},_getDefs:function(e){var t=this._svgDom,i=t.getElementsByTagName("defs");return 0!==i.length?i[0]:e?((i=t.insertBefore(a("defs"),t.firstChild)).contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;0<=n;--n)if(t[n]===e)return!0;return!1}),i):null},resize:function(e,t){var n=this._viewport;n.style.display="none";var i=this._opts;null!=e&&(i.width=e),null!=t&&(i.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width===e&&this._height===t||(this._width=e,this._height=t,(n=n.style).width=e+"px",n.height=t+"px",(n=this._svgDom).setAttribute("width",e),n.setAttribute("height",t)),this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],i=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);e=this.root,t=document.defaultView.getComputedStyle(e);return(e[i]||h(t[n])||h(e.style[n]))-(h(t[r])||0)-(h(t[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"))}},s.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(e){var t;o.prototype[e]=(t=e,function(){i('In SVG mode painter not support method "'+t+'"')})}),e.exports=o},function(e,t){function n(){}n.prototype={diff:function(s,l,e){this.equals=e=e||function(e,t){return e===t};var u=this;s=s.slice();var c=(l=l.slice()).length,h=s.length,d=1,t=c+h,p=[{newPos:-1,components:[]}],e=this.extractCommon(p[0],l,s,0);if(p[0].newPos+1>=c&&h<=e+1){for(var n=[],i=0;i<l.length;i++)n.push(i);return[{indices:n,count:l.length}]}function r(){for(var e=-1*d;e<=d;e+=2){var t,n=p[e-1],i=p[e+1],r=(i?i.newPos:0)-e;n&&(p[e-1]=void 0);var o=n&&n.newPos+1<c,a=i&&0<=r&&r<h;if(o||a){if(!o||a&&n.newPos<i.newPos?(t={newPos:(t=i).newPos,components:t.components.slice(0)},u.pushComponent(t.components,void 0,!0)):((t=n).newPos++,u.pushComponent(t.components,!0,void 0)),r=u.extractCommon(t,l,s,e),t.newPos+1>=c&&h<=r+1)return function(e){for(var t=0,n=e.length,i=0,r=0;t<n;t++){var o=e[t];if(o.removed){for(a=[],s=r;s<r+o.count;s++)a.push(s);o.indices=a,r+=o.count}else{for(var a=[],s=i;s<i+o.count;s++)a.push(s);o.indices=a,i+=o.count,o.added||(r+=o.count)}}return e}(t.components);p[e]=t}else p[e]=void 0}d++}for(;d<=t;){var o=r();if(o)return o}},pushComponent:function(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,i){for(var r=t.length,o=n.length,a=e.newPos,s=a-i,l=0;a+1<r&&s+1<o&&this.equals(t[a+1],n[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},tokenize:function(e){return e.slice()},join:function(e){return e.slice()}};var i=new n;e.exports=function(e,t,n){return i.diff(e,t,n)}},function(e,t,n){var r=n(229),i=n(1),l=n(119),u=n(55);function o(e,t){r.call(this,e,t,["linearGradient","radialGradient"],"__gradient_in_use__")}i.inherits(o,r),o.prototype.addWithoutUpdate=function(r,o){var a;o&&o.style&&(a=this,i.each(["fill","stroke"],function(e){var t,n,i;!o.style[e]||"linear"!==o.style[e].type&&"radial"!==o.style[e].type||(t=o.style[e],n=a.getDefs(!0),t._dom?(i=t._dom,n.contains(t._dom)||a.addDom(i)):i=a.add(t),a.markUsed(o),i=i.getAttribute("id"),r.setAttribute(e,"url(#"+i+")"))}))},o.prototype.add=function(e){var t;if("linear"===e.type)t=this.createElement("linearGradient");else{if("radial"!==e.type)return l("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},o.prototype.update=function(n){var i=this;r.prototype.update.call(this,n,function(){var e=n.type,t=n._dom.tagName;"linear"===e&&"linearGradient"===t||"radial"===e&&"radialGradient"===t?i.updateDom(n,n._dom):(i.removeDom(n),i.add(n))})},o.prototype.updateDom=function(e,t){if("linear"===e.type)t.setAttribute("x1",e.x),t.setAttribute("y1",e.y),t.setAttribute("x2",e.x2),t.setAttribute("y2",e.y2);else{if("radial"!==e.type)return void l("Illegal gradient type.");t.setAttribute("cx",e.x),t.setAttribute("cy",e.y),t.setAttribute("r",e.r)}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var n=e.colorStops,i=0,r=n.length;i<r;++i){var o=this.createElement("stop");o.setAttribute("offset",100*n[i].offset+"%");var a,s=n[i].color;-1<s.indexOf("rgba")?(a=u.parse(s)[3],s=u.toHex(s),o.setAttribute("stop-color","#"+s),o.setAttribute("stop-opacity",a)):o.setAttribute("stop-color",n[i].color),t.appendChild(o)}e._dom=t},o.prototype.markUsed=function(e){var t;e.style&&((t=e.style.fill)&&t._dom&&r.prototype.markUsed.call(this,t._dom),(t=e.style.stroke)&&t._dom&&r.prototype.markUsed.call(this,t._dom))},e.exports=o},function(e,t,n){var i=n(229),r=n(1),l=n(35);function o(e,t){i.call(this,e,t,"clipPath","__clippath_in_use__")}r.inherits(o,i),o.prototype.update=function(e){var t=this.getSvgElement(e);t&&this.updateDom(t,e.__clipPaths,!1);t=this.getTextSvgElement(e);t&&this.updateDom(t,e.__clipPaths,!0),this.markUsed(e)},o.prototype.updateDom=function(e,t,n){var i,r,o,a,s;t&&0<t.length?(o=this.getDefs(!0),(s=t[0])[a=n?"_textDom":"_dom"]?(r=s[a].getAttribute("id"),i=s[a],o.contains(i)||o.appendChild(i)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(i=this.createElement("clipPath")).setAttribute("id",r),o.appendChild(i),s[a]=i),o=this.getSvgProxy(s),s.transform&&s.parent.invTransform&&!n?(a=Array.prototype.slice.call(s.transform),l.mul(s.transform,s.parent.invTransform,s.transform),o.brush(s),s.transform=a):o.brush(s),s=this.getSvgElement(s),i.innerHTML="",i.appendChild(s.cloneNode()),e.setAttribute("clip-path","url(#"+r+")"),1<t.length&&this.updateDom(i,t.slice(1),n)):e&&e.setAttribute("clip-path","none")},o.prototype.markUsed=function(e){var t=this;e.__clipPaths&&r.each(e.__clipPaths,function(e){e._dom&&i.prototype.markUsed.call(t,e._dom),e._textDom&&i.prototype.markUsed.call(t,e._textDom)})},e.exports=o},function(e,t,n){var i=n(229);function r(e,t){i.call(this,e,t,["filter"],"__filter_in_use__","_shadowDom")}function o(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY||e.textShadowBlur||e.textShadowOffsetX||e.textShadowOffsetY)}n(1).inherits(r,i),r.prototype.addWithoutUpdate=function(e,t){var n;t&&o(t.style)&&(t._shadowDom?(n=t._shadowDom,this.getDefs(!0).contains(t._shadowDom)||this.addDom(n)):n=this.add(t),this.markUsed(t),n=n.getAttribute("id"),e.style.filter="url(#"+n+")")},r.prototype.add=function(e){var t=this.createElement("filter");return e._shadowDomId=e._shadowDomId||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-shadow-"+e._shadowDomId),this.updateDom(e,t),this.addDom(t),t},r.prototype.update=function(e,t){var n;o(t.style)?i.prototype.update.call(n=this,t,function(){n.updateDom(t,t._shadowDom)}):this.remove(e,t)},r.prototype.remove=function(e,t){null!=t._shadowDomId&&(this.removeDom(e),e.style.filter="")},r.prototype.updateDom=function(e,t){var n,i,r,o,a=0===(a=t.getElementsByTagName("feDropShadow")).length?this.createElement("feDropShadow"):a[0],s=e.style,l=e.scale&&e.scale[0]||1,u=e.scale&&e.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,i=s.shadowOffsetY||0,r=s.shadowBlur,o=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(t,s);n=s.textShadowOffsetX||0,i=s.textShadowOffsetY||0,r=s.textShadowBlur,o=s.textShadowColor}a.setAttribute("dx",n/l),a.setAttribute("dy",i/u),a.setAttribute("flood-color",o),a.setAttribute("stdDeviation",r/2/l+" "+r/2/u),t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width",Math.ceil(r/2*200)+"%"),t.setAttribute("height",Math.ceil(r/2*200)+"%"),t.appendChild(a),e._shadowDom=t},r.prototype.markUsed=function(e){e._shadowDom&&i.prototype.markUsed.call(this,e._shadowDom)},e.exports=r},function(e,t,n){var c,n=n(53),i=n.util,r=n.graphic,o=n.matrix;function h(e,t){this._bmap=e,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=t,this._projection=new BMap.MercatorProjection}function a(o,a){return a=a||[0,0],i.map([0,1],function(e){var t=a[e],n=o[e]/2,i=[],r=[];return i[e]=t-n,r[e]=t+n,i[1-e]=r[1-e]=a[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(r)[e])},this)}h.prototype.dimensions=["lng","lat"],h.prototype.setZoom=function(e){this._zoom=e},h.prototype.setCenter=function(e){this._center=this._projection.lngLatToPoint(new BMap.Point(e[0],e[1]))},h.prototype.setMapOffset=function(e){this._mapOffset=e},h.prototype.getBMap=function(){return this._bmap},h.prototype.dataToPoint=function(e){var t=new BMap.Point(e[0],e[1]),e=this._bmap.pointToOverlayPixel(t),t=this._mapOffset;return[e.x-t[0],e.y-t[1]]},h.prototype.pointToData=function(e){var t=this._mapOffset;return[(e=this._bmap.overlayPixelToPoint({x:e[0]+t[0],y:e[1]+t[1]})).lng,e.lat]},h.prototype.getViewRect=function(){var e=this._api;return new r.BoundingRect(0,0,e.getWidth(),e.getHeight())},h.prototype.getRoamTransform=function(){return o.create()},h.prototype.prepareCustoms=function(e){var t=this.getViewRect();return{coordSys:{type:"bmap",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:i.bind(this.dataToPoint,this),size:i.bind(a,this)}}},h.dimensions=h.prototype.dimensions,h.create=function(e,s){var l,u=s.getDom();e.eachComponent("bmap",function(e){var t=s.getZr().painter,n=t.getViewportRoot();if("undefined"==typeof BMap)throw new Error("BMap api is not loaded");function i(e){this._root=e}if(c=c||((i.prototype=new BMap.Overlay).initialize=function(e){return e.getPanes().labelPane.appendChild(this._root),this._root},i.prototype.draw=function(){},i),l)throw new Error("Only one bmap component can exist");e.__bmap||((r=u.querySelector(".ec-extension-bmap"))&&(n.style.left="0px",n.style.top="0px",u.removeChild(r)),(r=document.createElement("div")).style.cssText="width:100%;height:100%",r.classList.add("ec-extension-bmap"),u.appendChild(r),delete(a=e.get("mapOptions")||{}).mapType,o=e.__bmap=new BMap.Map(r,a),r=new c(n),o.addOverlay(r),t.getViewportRootOffset=function(){return{offsetLeft:0,offsetTop:0}});var r,o=e.__bmap,a=e.get("center"),n=e.get("zoom");a&&n&&(r=o.getCenter(),t=o.getZoom(),e.centerOrZoomChanged([r.lng,r.lat],t)&&(t=new BMap.Point(a[0],a[1]),o.centerAndZoom(t,n))),(l=new h(o,s)).setMapOffset(e.__mapOffset||[0,0]),l.setZoom(n),l.setCenter(a),e.coordinateSystem=l}),e.eachSeries(function(e){"bmap"===e.get("coordinateSystem")&&(e.coordinateSystem=l)})},e.exports=h},function(e,t,n){n=n(53).extendComponentModel({type:"bmap",getBMap:function(){return this.__bmap},setCenterAndZoom:function(e,t){this.option.center=e,this.option.zoom=t},centerOrZoomChanged:function(e,t){var n,i=this.option;return n=e,e=i.center,!(n&&e&&n[0]===e[0]&&n[1]===e[1]&&t===i.zoom)},defaultOption:{center:[104.114129,37.550339],zoom:5,mapStyle:{},mapStyleV2:{},mapOptions:{},roam:!1}});e.exports=n},function(e,t,n){var d=n(53);function p(e){for(var t in e)if(e.hasOwnProperty(t))return;return 1}n=d.extendComponentView({type:"bmap",render:function(i,e,r){var o=!0,t=i.getBMap(),a=r.getZr().painter.getViewportRoot(),s=i.coordinateSystem,n=function(e,t){var n;o||(n=a.parentNode.parentNode.parentNode,n=[-parseInt(n.style.left,10)||0,-parseInt(n.style.top,10)||0],a.style.left=n[0]+"px",a.style.top=n[1]+"px",s.setMapOffset(n),i.__mapOffset=n,r.dispatchAction({type:"bmapRoam"}))};function l(){o||r.dispatchAction({type:"bmapRoam"})}t.removeEventListener("moving",this._oldMoveHandler),t.removeEventListener("moveend",this._oldMoveHandler),t.removeEventListener("zoomend",this._oldZoomEndHandler),t.addEventListener("moving",n),t.addEventListener("moveend",n),t.addEventListener("zoomend",l),this._oldMoveHandler=n,this._oldZoomEndHandler=l;var u=i.get("roam");u&&"scale"!==u?t.enableDragging():t.disableDragging(),u&&"move"!==u?(t.enableScrollWheelZoom(),t.enableDoubleClickZoom(),t.enablePinchToZoom()):(t.disableScrollWheelZoom(),t.disableDoubleClickZoom(),t.disablePinchToZoom());var c=i.__mapStyle,n=i.get("mapStyle")||{},u=JSON.stringify(n);JSON.stringify(c)!==u&&(p(h)||t.setMapStyle(d.util.clone(n)),i.__mapStyle=JSON.parse(u));var n=i.__mapStyle2,h=i.get("mapStyleV2")||{},u=JSON.stringify(h);JSON.stringify(n)!==u&&(p(h)||t.setMapStyleV2(d.util.clone(h)),i.__mapStyle2=JSON.parse(u)),o=!1}});e.exports=n},function(e,t,n){e.exports=n(774)},function(e,t,n){var i;e.exports=(i=n(53),function(n){function i(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var r={};return i.m=n,i.c=r,i.i=function(e){return e},i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=4)}([function(e,t){e.exports=i},function(e,t,n){function l(e,t){this._amap=e,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=t}var u=n(0);l.prototype.dimensions=["lng","lat"],l.prototype.setZoom=function(e){this._zoom=e},l.prototype.setCenter=function(e){this._center=this._amap.lnglatToPixel(e)},l.prototype.setMapOffset=function(e){this._mapOffset=e},l.prototype.getAMap=function(){return this._amap},l.prototype.dataToPoint=function(e){var t=new AMap.LngLat(e[0],e[1]),e=this._amap.lngLatToContainer(t),t=this._mapOffset;return[e.x-t[0],e.y-t[1]]},l.prototype.pointToData=function(e){var t=this._mapOffset;return[(e=this._amap.containerToLngLat({x:e[0]+t[0],y:e[1]+t[1]})).lng,e.lat]},l.prototype.getViewRect=function(){var e=this._api;return new u.graphic.BoundingRect(0,0,e.getWidth(),e.getHeight())},l.prototype.getRoamTransform=function(){return u.matrix.create()},l.dimensions=l.prototype.dimensions,l.create=function(e,o){var a,s=o.getDom();e.eachComponent("amap",function(e){var t=o.getZr().painter.getViewportRoot();if("undefined"==typeof AMap)throw new Error("AMap api is not loaded");if(a)throw new Error("Only one amap component can exist");e.__amap||((n=s.querySelector(".ec-extension-amap"))&&(t.style.left="0px",t.style.top="0px",s.removeChild(n)),(n=document.createElement("div")).style.cssText="width:100%;height:100%",n.classList.add("ec-extension-amap"),s.appendChild(n),r=e.get()||{},r=e.__options=u.util.clone(r),i=e.__amap=new AMap.Map(n,r),(n=e.__layer=new AMap.CustomLayer(t)).setMap(i));var n,i=e.getAMap();(n=e.getLayer()).hide();var r=i.getZoom(),t=i.getCenter();(a=new l(i,o)).setMapOffset(e.__mapOffset||[0,0]),a.setZoom(r),a.setCenter([t.lng,t.lat]),e.coordinateSystem=a,n.show()}),e.eachSeries(function(e){"amap"===e.get("coordinateSystem")&&(e.coordinateSystem=a)})},e.exports=l},function(e,t,n){e.exports=n(0).extendComponentModel({type:"amap",getAMap:function(){return this.__amap},getLayer:function(){return this.__layer},getMapOptions:function(){return this.__options},setCenterAndZoom:function(e,t){this.option.center=e,this.option.zoom=t},centerOrZoomChanged:function(e,t){var n,i=this.option;return n=e,e=i.center,!(n&&e&&n[0]===e[0]&&n[1]===e[1]&&t===i.zoom)},defaultOption:{center:[116.397475,39.908695],zoom:4}})},function(e,t,n){var v=n(0);e.exports=n(0).extendComponentView({type:"amap",render:function(n,e,i){function t(){h||i.dispatchAction({type:"amapRoam"})}var r,o,a,s,l,u,c,h=!0,d=n.getAMap(),p=i.getZr().painter.getViewportRoot(),f=n.coordinateSystem,m=function(e){var t;h||(t=p.parentNode.parentNode.parentNode,t=[-parseInt(t.style.left,10)||0,-parseInt(t.style.top,10)||0],p.style.left=t[0]+"px",p.style.top=t[1]+"px",f.setMapOffset(t),n.__mapOffset=t,i.dispatchAction({type:"amapRoam"}))},g=(r=function(e){v.getInstanceByDom(i.getDom()).resize(),m.call(this,e)},o=300,c=function(){s=!1,l&&(u.apply(a,l),l=!1)},u=function(){s?l=arguments:(r.apply(a,arguments),setTimeout(c,o),s=!0)});(a=d).off("movestart",this._oldMoveHandler),d.off("zoomend",this._oldZoomEndHandler),d.off("moveend",this._oldZoomEndHandler),d.off("complete",this._oldZoomEndHandler),n.get("resizeEnable")&&d.off("resize",this._oldResizeHandler),d.on("movestart",m),d.on("zoomend",t),d.on("moveend",t),d.on("complete",t),n.get("resizeEnable")&&d.on("resize",g),this._oldMoveHandler=m,this._oldZoomEndHandler=t,this._oldResizeHandler=g,h=!1}})},function(e,t,n){n(0).registerCoordinateSystem("amap",n(1)),n(2),n(3),n(0).registerAction({type:"amapRoam",event:"amapRoam",update:"updateLayout"},function(e,t){t.eachComponent("amap",function(e){var t=e.getAMap(),n=t.getCenter();e.setCenterAndZoom([n.lng,n.lat],t.getZoom())})}),e.exports={version:"1.0.0-rc.6"}}]))},function(e,t,n){e.exports=n(776)},function(e,t,n){var i=n(3);n(777),n(778),i.registerVisual(i.util.curry(n(132),"liquidFill"))},function(e,t,n){var i=n(152),r=n(3);r.extendSeriesModel({type:"series.liquidFill",visualColorAccessPath:"textStyle.normal.color",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=i(["value"],e.data),n=new r.List(n,this);return n.initData(e.data),n},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}})},function(e,t,n){var D=n(3),i=D.number,I=n(42),O=i.parsePercent,N=n(779);D.extendChartView({type:"liquidFill",render:function(h,e,t){var u=this.group;u.removeAll();var d=h.getData(),o=d.getItemModel(0),n=o.get("center"),p=o.get("radius"),i=t.getWidth(),f=t.getHeight(),r=Math.min(i,f),a=0,s=0,t=h.get("outline.show");t&&(a=h.get("outline.borderDistance"),s=O(h.get("outline.itemStyle.borderWidth"),r));var l,c,m,g=O(n[0],i),v=O(n[1],f),y=!1,x=h.get("shape"),p="container"===x?(y=!0,c=[(l=[i/2,f/2])[0]-s/2,l[1]-s/2],m=[O(a,i),O(a,f)],[Math.max(c[0]-m[0],0),Math.max(c[1]-m[1],0)]):(c=(l=O(p,r)/2)-s/2,m=O(a,r),Math.max(c-m,0));t&&(M().style.lineWidth=s,u.add(M()));var b=y?0:g-p,_=y?0:v-p,w=null;u.add(function(){var e=A(p);e.setStyle(h.getModel("backgroundStyle").getItemStyle()),e.style.fill=null,e.z2=5;var t=A(p);t.setStyle(h.getModel("backgroundStyle").getItemStyle()),t.style.stroke=null;var n=new D.graphic.Group;return n.add(e),n.add(t),n}());var C=this._data,S=[];function A(e,t){if(x){if(0===x.indexOf("path://")){var n=(a=D.graphic.makePath(x.slice(7),{})).getBoundingRect(),i=n.width,r=n.height;r<i?(r*=2*e/i,i=2*e):(i*=2*e/r,r=2*e);var o=t?0:g-i/2,n=t?0:v-r/2,a=D.graphic.makePath(x.slice(7),{},new D.graphic.BoundingRect(o,n,i,r));return t&&(a.position=[-i/2,-r/2]),a}if(y){var s=t?-e[0]:g-e[0],l=t?-e[1]:v-e[1];return I.createSymbol("rect",s,l,2*e[0],2*e[1])}l=t?-e:v-e;return"pin"===x?l+=e:"arrow"===x&&(l-=e),I.createSymbol(x,s=t?-e:g-e,l,2*e,2*e)}return new D.graphic.Circle({shape:{cx:t?0:g,cy:t?0:v,r:e}})}function M(){var e=A(l);return e.style.fill=null,e.setStyle(h.getModel("outline.itemStyle").getItemStyle()),e}function T(e,t,n){var i=y?p[0]:p,r=y?f/2:p,o=d.getItemModel(e),a=o.getModel("itemStyle"),s=o.get("phase"),l=O(o.get("amplitude"),2*r),u=O(o.get("waveLength"),2*i),c=r-d.get("value",e)*r*2,s=n?n.shape.phase:"auto"===s?e*Math.PI/4:s,n=a.getItemStyle();n.fill||(e=e%(a=h.get("color")).length,n.fill=a[e]);n=new N({shape:{waveLength:u,radius:i,radiusY:r,cx:2*i,cy:0,waterLevel:c,amplitude:l,phase:s,inverse:t},style:n,position:[g,v]});n.shape._waterLevel=c;o=o.getModel("emphasis.itemStyle").getItemStyle();o.lineWidth=0,D.graphic.setHoverStyle(n,o);o=A(p,!0);return o.setStyle({fill:"white"}),n.setClipPath(o),n}function k(e,t,n){var i,r,o=d.getItemModel(e),a=o.get("period"),s=o.get("direction"),l=d.get("value",e),u=o.get("phase"),u=n?n.shape.phase:"auto"===u?e*Math.PI/4:u,n=0,n="auto"===a?(i=5e3,0===(r=d.count())?i:i*(.2+(r-e)/r*.8)):"function"==typeof a?a(l,e):a,a=0;"right"===s||null==s?a=Math.PI:"left"===s?a=-Math.PI:"none"===s?a=0:console.error("Illegal direction value for liquid fill."),"none"!==s&&o.get("waveAnimation")&&t.animate("shape",!0).when(0,{phase:u}).when(n/2,{phase:a+u}).when(n,{phase:2*a+u}).during(function(){w&&w.dirty(!0)}).start()}d.diff(C).add(function(e){var t=T(e,!1),n=t.shape.waterLevel;t.shape.waterLevel=y?f/2:p,D.graphic.initProps(t,{shape:{waterLevel:n}},h),t.z2=2,k(e,t,null),u.add(t),d.setItemGraphicEl(e,t),S.push(t)}).update(function(e,t){for(var t=C.getItemGraphicEl(t),n=T(e,!1,t),i={},r=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],o=0;o<r.length;++o)n.shape.hasOwnProperty(a=r[o])&&(i[a]=n.shape[a]);for(var a,s={},l=["fill","opacity","shadowBlur","shadowColor"],o=0;o<l.length;++o)n.style.hasOwnProperty(a=l[o])&&(s[a]=n.style[a]);y&&(i.radiusY=f/2),D.graphic.updateProps(t,{shape:i},h),t.useStyle(s),t.position=n.position,t.setClipPath(n.clipPath),t.shape.inverse=n.inverse,k(e,t,t),u.add(t),d.setItemGraphicEl(e,t),S.push(t)}).remove(function(e){e=C.getItemGraphicEl(e);u.remove(e)}).execute(),o.get("label.show")&&u.add(function(e){var t=o.getModel("label");var n={z2:10,shape:{x:b,y:_,width:2*(y?p[0]:p),height:2*(y?p[1]:p)},style:{fill:"transparent",text:function(){var e=h.getFormattedLabel(0,"normal"),t=100*d.get("value",0),n=d.getName(0)||h.name;return isNaN(t)||(n=t.toFixed(0)+"%"),null==e?n:e}(),textAlign:t.get("align"),textVerticalAlign:t.get("baseline")},silent:!0},i=new D.graphic.Rect(n),r=t.get("color");D.graphic.setText(i.style,t,r);r=new D.graphic.Rect(n),n=t.get("insideColor");D.graphic.setText(r.style,t,n),r.style.textFill=n;n=new D.graphic.Group;n.add(i),n.add(r);i=A(p,!0);return(w=new D.graphic.CompoundPath({shape:{paths:e},position:[g,v]})).setClipPath(i),r.setClipPath(w),n}(S)),this._data=d},dispose:function(){}})},function(e,t,n){n=n(3);e.exports=n.graphic.extendShape({type:"ec-liquid-fill",shape:{waveLength:0,radius:0,radiusY:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},buildPath:function(e,t){null==t.radiusY&&(t.radiusY=t.radius);for(var n=Math.max(2*Math.ceil(2*t.radius/t.waveLength*4),8);t.phase<2*-Math.PI;)t.phase+=2*Math.PI;for(;0<t.phase;)t.phase-=2*Math.PI;var i=t.phase/Math.PI/2*t.waveLength,r=t.cx-t.radius+i-2*t.radius;e.moveTo(r,t.waterLevel);for(var o,a,s,l=0,u=0;u<n;++u){var c=(o=u*t.waveLength/4,a=u%4,c=t.waveLength,s=t.amplitude,0===a?[[o+.5*c/Math.PI/2,s/2],[o+.5*c/Math.PI,s],[o+c/4,s]]:1===a?[[o+.5*c/Math.PI/2*(Math.PI-2),s],[o+.5*c/Math.PI/2*(Math.PI-1),s/2],[o+c/4,0]]:2===a?[[o+.5*c/Math.PI/2,-s/2],[o+.5*c/Math.PI,-s],[o+c/4,-s]]:[[o+.5*c/Math.PI/2*(Math.PI-2),-s],[o+.5*c/Math.PI/2*(Math.PI-1),-s/2],[o+c/4,0]]);e.bezierCurveTo(c[0][0]+r,-c[0][1]+t.waterLevel,c[1][0]+r,-c[1][1]+t.waterLevel,c[2][0]+r,-c[2][1]+t.waterLevel),u===n-1&&(l=c[2][0])}t.inverse?(e.lineTo(l+r,t.cy-t.radiusY),e.lineTo(r,t.cy-t.radiusY)):(e.lineTo(l+r,t.cy+t.radiusY),e.lineTo(r,t.cy+t.radiusY)),e.lineTo(r,t.waterLevel),e.closePath()}})},function(e,t,n){e.exports=n(781)},function(e,t,n){var p=n(3),f=n(15);n(782),n(783);var m=n(784);if(!m.isSupported)throw new Error("Sorry your browser not support wordCloud");p.registerLayout(function(h,d){h.eachSeriesByType("wordCloud",function(n){var i=f.getLayoutRect(n.getBoxLayoutParams(),{width:d.getWidth(),height:d.getHeight()}),r=n.getData(),e=document.createElement("canvas");e.width=i.width,e.height=i.height;var t=e.getContext("2d"),o=n.get("maskImage");if(o)try{t.drawImage(o,0,0,e.width,e.height),function(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),i=t.createImageData(n),r=0,o=0,a=0;a<n.data.length;a+=4)128<n.data[a+3]&&(r+=l=n.data[a]+n.data[a+1]+n.data[a+2],++o);for(var s=r/o,a=0;a<n.data.length;a+=4){var l=n.data[a]+n.data[a+1]+n.data[a+2];n.data[a+3]<128||s<l?(i.data[a]=0,i.data[a+1]=0,i.data[a+2]=0,i.data[a+3]=0):(i.data[a]=255,i.data[a+1]=255,i.data[a+2]=255,i.data[a+3]=255)}t.putImageData(i,0,0)}(e)}catch(e){console.error("Invalid mask image"),console.error(e.toString())}var a=n.get("sizeRange"),s=n.get("rotationRange"),l=r.getDataExtent("value"),t=Math.PI/180,u=n.get("gridSize");function c(e){var t=e.detail.item;e.detail.drawn&&n.layoutInstance.ondraw&&(e.detail.drawn.gx+=i.x/u,e.detail.drawn.gy+=i.y/u,n.layoutInstance.ondraw(t[0],t[1],t[2],e.detail.drawn))}m(e,{list:r.mapArray("value",function(e,t){var n=r.getItemModel(t);return[r.getName(t),n.get("textStyle.normal.textSize",!0)||p.number.linearMap(e,l,a),t]}).sort(function(e,t){return t[1]-e[1]}),fontFamily:n.get("textStyle.normal.fontFamily")||n.get("textStyle.emphasis.fontFamily")||h.get("textStyle.fontFamily"),fontWeight:n.get("textStyle.normal.fontWeight")||n.get("textStyle.emphasis.fontWeight")||h.get("textStyle.fontWeight"),gridSize:u,ellipticity:i.height/i.width,minRotation:s[0]*t,maxRotation:s[1]*t,clearCanvas:!o,rotateRatio:1,rotationStep:n.get("rotationStep")*t,drawOutOfBound:n.get("drawOutOfBound"),shuffle:!1,shape:n.get("shape")}),e.addEventListener("wordclouddrawn",c),n.layoutInstance&&n.layoutInstance.dispose(),n.layoutInstance={ondraw:null,dispose:function(){e.removeEventListener("wordclouddrawn",c),e.addEventListener("wordclouddrawn",function(e){e.preventDefault()})}}})}),p.registerPreprocessor(function(e){e=(e||{}).series;p.util.isArray(e)||(e=e?[e]:[]);var n=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function t(t){t&&p.util.each(n,function(e){t.hasOwnProperty(e)&&(t["text"+p.format.capitalFirst(e)]=t[e])})}p.util.each(e,function(e){e&&"wordCloud"===e.type&&(t((e=e.textStyle||{}).normal),t(e.emphasis))})})},function(e,t,n){var i=n(152),r=n(3);r.extendSeriesModel({type:"series.wordCloud",visualColorAccessPath:"textStyle.normal.color",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=i(["value"],e.data),n=new r.List(n,this);return n.initData(e.data),n},defaultOption:{maskImage:null,shape:"circle",left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,textStyle:{normal:{fontWeight:"normal"}}}})},function(e,t,n){var u=n(3);u.extendChartView({type:"wordCloud",render:function(e,t,n){var a=this.group;a.removeAll();var s=e.getData(),l=e.get("gridSize");e.layoutInstance.ondraw=function(e,t,n,i){var r=s.getItemModel(n),o=r.getModel("textStyle.normal"),r=r.getModel("textStyle.emphasis"),i=new u.graphic.Text({style:u.graphic.setTextStyle({},o,{x:i.info.fillTextOffsetX,y:i.info.fillTextOffsetY+.5*t,text:e,textBaseline:"middle",textFill:s.getItemVisual(n,"color"),fontSize:t}),scale:[1/i.info.mu,1/i.info.mu],position:[(i.gx+i.info.gw/2)*l,(i.gy+i.info.gh/2)*l],rotation:i.rot});a.add(i),s.setItemGraphicEl(n,i),u.graphic.setHoverStyle(i,u.graphic.setTextStyle({},r,null,{forMerge:!0},!0))},this._model=e},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}})},function(e,t,n){"use strict";var o,z;
|
|
/*!
|
|
* wordcloud2.js
|
|
* http://timdream.org/wordcloud2.js/
|
|
*
|
|
* Copyright 2011 - 2013 Tim Chien
|
|
* Released under the MIT license
|
|
*/function i(g,e){if(o){(g=!Array.isArray(g)?[g]:g).forEach(function(e,t){if("string"==typeof e){if(g[t]=document.getElementById(e),!g[t])throw"The element id specified is not found."}else if(!e.tagName&&!e.appendChild)throw"You must pass valid HTML elements, or ID of the element."});var t,_={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(e)for(var n in e)n in _&&(_[n]=e[n]);if("function"!=typeof _.weightFactor&&(t=_.weightFactor,_.weightFactor=function(e){return e*t}),"function"!=typeof _.shape)switch(_.shape){case"circle":default:_.shape="circle";break;case"cardioid":_.shape=function(e){return 1-Math.sin(e)};break;case"diamond":case"square":_.shape=function(e){e%=2*Math.PI/4;return 1/(Math.cos(e)+Math.sin(e))};break;case"triangle-forward":_.shape=function(e){e%=2*Math.PI/3;return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle":case"triangle-upright":_.shape=function(e){e=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"pentagon":_.shape=function(e){e=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case"star":_.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return 0<=(e+.955)%(2*Math.PI/5)-2*Math.PI/10?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}_.gridSize=Math.max(Math.floor(_.gridSize),4);var v,y,x,f,m,b,w,C=_.gridSize,S=C-_.maskGapWidth,d=Math.abs(_.maxRotation-_.minRotation),p=Math.min(_.maxRotation,_.minRotation),A=_.rotationStep;switch(_.color){case"random-dark":w=function(){return r(10,50)};break;case"random-light":w=function(){return r(50,90)};break;default:"function"==typeof _.color&&(w=_.color)}var M=null;"function"==typeof _.classes&&(M=_.classes);var T,k=!1,D=[],i=function(e){var t=e.currentTarget,n=t.getBoundingClientRect(),e=e.touches?(i=e.touches[0].clientX,e.touches[0].clientY):(i=e.clientX,e.clientY),i=i-n.left,e=e-n.top,i=Math.floor(i*(t.width/n.width||1)/C),n=Math.floor(e*(t.height/n.height||1)/C);return D[i][n]},I=function(e){var t=i(e);T!==t&&((T=t)?_.hover(t.item,t.dimension,e):_.hover(void 0,void 0,e))},O=function(e){var t=i(e);t&&(_.click(t.item,t.dimension,e),e.preventDefault())},N=[],L=function(){return 0<_.abortThreshold&&(new Date).getTime()-b>_.abortThreshold},P=function(e,t,n,i,r,o){var a,s,l=r.occupied,u=_.drawMask;u&&((a=g[0].getContext("2d")).save(),a.fillStyle=_.maskColor),k&&(s={x:(e+(r=r.bounds)[3])*C,y:(t+r[0])*C,w:(r[1]-r[3]+1)*C,h:(r[2]-r[0]+1)*C});for(var c,h,d,p=l.length;p--;){var f=e+l[p][0],m=t+l[p][1];y<=f||x<=m||f<0||m<0||(c=m,h=u,d=s,m=o,y<=(f=f)||x<=c||f<0||c<0||(v[f][c]=!1,h&&g[0].getContext("2d").fillRect(f*C,c*C,S,S),k&&(D[f][c]={item:m,dimension:d})))}u&&a.restore()},E=function(i){var r,o,a;Array.isArray(i)?(r=i[0],o=i[1]):(r=i.word,o=i.weight,a=i.attributes);var s=0===_.rotateRatio||Math.random()>_.rotateRatio?0:0===d?p:p+Math.round(Math.random()*d/A)*A,l=function(e,t,n){var i=_.weightFactor(t);if(i<=_.minSize)return!1;var r=1;i<z&&(r=function(){for(var e=2;e*i<z;)e+=2;return e}());var o=document.createElement("canvas"),a=o.getContext("2d",{willReadFrequently:!0});a.font=_.fontWeight+" "+(i*r).toString(10)+"px "+_.fontFamily;var s=a.measureText(e).width/r,l=Math.max(i*r,a.measureText("m").width,a.measureText("W").width)/r,u=s+2*l,c=3*l,h=Math.ceil(u/C),t=Math.ceil(c/C),u=h*C,c=t*C,h=-s/2,t=.4*-l,d=Math.ceil((u*Math.abs(Math.sin(n))+c*Math.abs(Math.cos(n)))/C),u=Math.ceil((u*Math.abs(Math.cos(n))+c*Math.abs(Math.sin(n)))/C),p=u*C,c=d*C;o.setAttribute("width",p),o.setAttribute("height",c),a.scale(1/r,1/r),a.translate(p*r/2,c*r/2),a.rotate(-n),a.font=_.fontWeight+" "+(i*r).toString(10)+"px "+_.fontFamily,a.fillStyle="#000",a.textBaseline="middle",a.fillText(e,h*r,(t+.5*i)*r);var f=a.getImageData(0,0,p,c).data;if(L())return!1;for(var m,g,v,y=[],x=u,b=[d/2,u/2,d/2,u/2];x--;)for(m=d;m--;){v=C;e:{for(;v--;)for(g=C;g--;)if(f[4*((m*C+v)*p+(x*C+g))+3]){y.push([x,m]),x<b[3]&&(b[3]=x),x>b[1]&&(b[1]=x),m<b[0]&&(b[0]=m),m>b[2]&&(b[2]=m);break e}0}}return{mu:r,occupied:y,bounds:b,gw:u,gh:d,fillTextOffsetX:h,fillTextOffsetY:t,fillTextWidth:s,fillTextHeight:l,fontSize:i}}(r,o,s);if(!l)return!1;if(L())return!1;if(!_.drawOutOfBound){var e=l.bounds;if(e[1]-e[3]+1>y||e[2]-e[0]+1>x)return!1}for(var u=m+1,t=function(e){var t=Math.floor(e[0]-l.gw/2),n=Math.floor(e[1]-l.gh/2);l.gw,l.gh;return!!function(e,t,n){for(var i=n.length;i--;){var r=e+n[i][0],o=t+n[i][1];if(y<=r||x<=o||r<0||o<0){if(!_.drawOutOfBound)return!1}else if(!v[r][o])return!1}return!0}(t,n,l.occupied)&&(function(s,l,u,c,e,t,n,h,d){var p=u.fontSize,f=w?w(c,e,p,t,n):_.color,m=M?M(c,e,p,t,n):_.classes,n=u.bounds;n[3],n[0],n[1],n[3],n[2],n[0];g.forEach(function(e){if(e.getContext){var t=e.getContext("2d"),n=u.mu;t.save(),t.scale(1/n,1/n),t.font=_.fontWeight+" "+(p*n).toString(10)+"px "+_.fontFamily,t.fillStyle=f,t.translate((s+u.gw/2)*C*n,(l+u.gh/2)*C*n),0!==h&&t.rotate(-h),t.textBaseline="middle",t.fillText(c,u.fillTextOffsetX*n,(u.fillTextOffsetY+.5*p)*n),t.restore()}else{var i=document.createElement("span"),t="",t="rotate("+-h/Math.PI*180+"deg) ";1!==u.mu&&(t+="translateX(-"+u.fillTextWidth/4+"px) scale("+1/u.mu+")");var r,o={position:"absolute",display:"block",font:_.fontWeight+" "+p*u.mu+"px "+_.fontFamily,left:(s+u.gw/2)*C+u.fillTextOffsetX+"px",top:(l+u.gh/2)*C+u.fillTextOffsetY+"px",width:u.fillTextWidth+"px",height:u.fillTextHeight+"px",lineHeight:p+"px",whiteSpace:"nowrap",transform:t,webkitTransform:t,msTransform:t,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(r in f&&(o.color=f),i.textContent=c,o)i.style[r]=o[r];if(d)for(var a in d)i.setAttribute(a,d[a]);m&&(i.className+=m),e.appendChild(i)}})}(t,n,l,r,o,m-u,e[2],s,a),P(t,n,0,0,l,i),{gx:t,gy:n,rot:s,info:l})};u--;){var n=function(e){if(N[e])return N[e];var t=8*e,n=t,i=[];for(0===e&&i.push([f[0],f[1],0]);n--;){var r=1;"circle"!==_.shape&&(r=_.shape(n/t*2*Math.PI)),i.push([f[0]+e*r*Math.cos(-n/t*2*Math.PI),f[1]+e*r*Math.sin(-n/t*2*Math.PI)*_.ellipticity,n/t*2*Math.PI])}return N[e]=i}(m-u);_.shuffle&&function(e){for(var t,n,i=e.length;i;t=Math.floor(Math.random()*i),n=e[--i],e[i]=e[t],e[t]=n);}(n=[].concat(n));for(var c=0;c<n.length;c++){var h=t(n[c]);if(h)return h}}return null},H=function(n,i,r){if(i)return!g.some(function(e){var t=document.createEvent("CustomEvent");return t.initCustomEvent(n,!0,i,r||{}),!e.dispatchEvent(t)},this);g.forEach(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent(n,!0,i,r||{}),e.dispatchEvent(t)},this)};!function(){var e,n,t=g[0];if(x=t.getContext?(y=Math.ceil(t.width/C),Math.ceil(t.height/C)):(i=t.getBoundingClientRect(),y=Math.ceil(i.width/C),Math.ceil(i.height/C)),H("wordcloudstart",!0)){if(f=_.origin?[_.origin[0]/C,_.origin[1]/C]:[y/2,x/2],m=Math.floor(Math.sqrt(y*y+x*x)),v=[],!t.getContext||_.clearCanvas)for(g.forEach(function(e){var t;e.getContext?((t=e.getContext("2d")).fillStyle=_.backgroundColor,t.clearRect(0,0,y*(C+1),x*(C+1)),t.fillRect(0,0,y*(C+1),x*(C+1))):(e.textContent="",e.style.backgroundColor=_.backgroundColor,e.style.position="relative")}),l=y;l--;)for(v[l]=[],e=x;e--;)v[l][e]=!0;else{var i=document.createElement("canvas").getContext("2d");i.fillStyle=_.backgroundColor,i.fillRect(0,0,1,1);for(var r,o,a=i.getImageData(0,0,1,1).data,s=t.getContext("2d").getImageData(0,0,y*C,x*C).data,l=y;l--;)for(v[l]=[],e=x;e--;){o=C;e:for(;o--;)for(r=C;r--;)for(u=4;u--;)if(s[4*((e*C+o)*y*C+(l*C+r))+u]!==a[u]){v[l][e]=!1;break e}!1!==v[l][e]&&(v[l][e]=!0)}s=i=a=void 0}if(_.hover||_.click){for(k=!0,l=y+1;l--;)D[l]=[];_.hover&&t.addEventListener("mousemove",I),_.click&&(t.addEventListener("click",O),t.addEventListener("touchstart",O),t.addEventListener("touchend",function(e){e.preventDefault()}),t.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),t.addEventListener("wordcloudstart",function e(){t.removeEventListener("wordcloudstart",e),t.removeEventListener("mousemove",I),t.removeEventListener("click",O),T=void 0})}var u=0,c=0!==_.wait?(n=window.setTimeout,window.clearTimeout):(n=window.setImmediate,window.clearImmediate),h=function(t,n){g.forEach(function(e){e.removeEventListener(t,n)},this)},d=function e(){h("wordcloudstart",e),c(p)};!function(t,n){g.forEach(function(e){e.addEventListener(t,n)},this)}("wordcloudstart",d);var p=n(function e(){if(u>=_.list.length)return c(p),H("wordcloudstop",!1),void h("wordcloudstart",d);b=(new Date).getTime();var t=E(_.list[u]),t=!H("wordclouddrawn",!0,{item:_.list[u],drawn:t});if(L()||t)return c(p),_.abort(),H("wordcloudabort",!1),H("wordcloudstop",!1),void h("wordcloudstart",d);u++,p=n(e,_.wait)},_.wait)}}()}function r(e,t){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-e)+e).toFixed()+"%)"}}window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var n=[void 0],i="zero-timeout-message";return window.addEventListener("message",function(e){"string"==typeof e.data&&e.data.substr(0,i.length)===i&&(e.stopImmediatePropagation(),e=parseInt(e.data.substr(i.length),36),n[e]&&(n[e](),n[e]=void 0))},!0),window.clearImmediate=function(e){n[e]&&(n[e]=void 0)},function(e){var t=n.length;return n.push(e),window.postMessage(i+t.toString(36),"*"),t}}()||function(e){window.setTimeout(e,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)}),o=function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;e=e.getContext("2d");return!!e.getImageData&&(!!e.fillText&&(!!Array.prototype.some&&!!Array.prototype.push))}(),z=function(){if(o){for(var e,t,n=document.createElement("canvas").getContext("2d"),i=20;i;){if(n.font=i.toString(10)+"px sans-serif",n.measureText("W").width===e&&n.measureText("m").width===t)return i+1;e=n.measureText("W").width,t=n.measureText("m").width,i--}return 0}}(),i.isSupported=o,i.minFontSize=z,void 0===(t=function(){return i}.apply(t,[]))||(e.exports=t)},function(e,t,n){n(22),n(39),n(43),n(105),n(393)},function(e,t,n){"use strict";t.__esModule=!0,t.createNamespace=function(e){return e="van-"+e,[(0,r.createComponent)(e),(0,i.createBEM)(e),(0,o.createI18N)(e)]};var i=n(787),r=n(788),o=n(791)},function(e,t,n){"use strict";t.__esModule=!0,t.createBEM=function(n){return function(e,t){return e&&"string"!=typeof e&&(t=e,e=""),""+(e=e?n+"__"+e:n)+function n(i,r){if(!r)return"";if("string"==typeof r)return" "+i+"--"+r;if(Array.isArray(r))return r.reduce(function(e,t){return e+n(i,t)},"");return Object.keys(r).reduce(function(e,t){return e+(r[t]?n(i,t):"")},"")}(e,t)}}},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.unifySlots=l,t.createComponent=function(t){return function(e){var n;return(e=(0,r.isFunction)(e)?{functional:!0,props:(n=e).props,model:n.model,render:function(e,t){return n(e,t.props,l(t),t)}}:e).functional||(e.mixins=e.mixins||[],e.mixins.push(a.SlotsMixin)),e.name=t,e.install=s,e}},n(394);var r=n(9),o=n(396),a=n(790);i(n(5));function s(e){var t=this.name;e.component(t,this),e.component((0,o.camelize)("-"+t),this)}function l(e){var t=e.scopedSlots||e.data.scopedSlots||{},n=e.slots();return Object.keys(n).forEach(function(e){t[e]||(t[e]=function(){return n[e]})}),t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(e,t){return e+"年"+t+"月"},rangePrompt:function(e){return"选择天数不能超过 "+e+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(e){return e+"折"},condition:function(e){return"满"+e+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(e){return e+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}},function(e,t,n){"use strict";t.__esModule=!0,t.SlotsMixin=void 0;t.SlotsMixin={methods:{slots:function(e,t){var n=this.$slots,i=this.$scopedSlots[e=void 0===e?"default":e];return i?i(t):n[e]}}}},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.createI18N=function(e){var o=(0,r.camelize)(e)+".";return function(e){for(var t=s.default.messages(),e=(0,a.get)(t,o+e)||(0,a.get)(t,e),n=arguments.length,i=new Array(1<n?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(0,a.isFunction)(e)?e.apply(void 0,i):e}};var a=n(9),r=n(396),s=i(n(394))},function(e,t,n){n(22),n(39),n(43),n(397)},function(e,t,n){n(22),n(794)},function(e,t,n){},function(e,t,n){n(22),n(166),n(39),n(43),n(167),n(105),n(393),n(796),n(797)},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!(0,i.isNaN)(e.getTime())};var i=n(230)},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.updateOverlay=c,t.openOverlay=function(e,t){var n=a.context.find(e);n?n.config=t:(n=function(e){return(0,s.mount)(o.default,{on:{click:function(){e.$emit("click-overlay"),e.closeOnClickOverlay&&(e.onClickOverlay?e.onClickOverlay():e.close())}}})}(e),a.context.stack.push({vm:e,config:t,overlay:n}));c(e)},t.closeOverlay=function(e){e=a.context.find(e);e&&(e.overlay.show=!1)},t.removeOverlay=function(e){e=a.context.find(e);e&&(0,l.removeNode)(e.overlay.$el)};var r=i(n(36)),o=i(n(800)),a=n(399),s=n(37),l=n(233),u={className:"",customStyle:{}};function c(e){var t,n=a.context.find(e);n&&(t=e.$el,e=n.config,n=n.overlay,t&&t.parentNode&&t.parentNode.insertBefore(n.$el,t),(0,r.default)(n,u,e,{show:!0}))}},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var o=i(n(34)),a=i(n(36)),s=n(9),l=n(37),r=n(40),i=(0,s.createNamespace)("overlay"),n=i[0],u=i[1];function c(e){(0,r.preventDefault)(e,!0)}function h(e,t,n,i){var r=(0,a.default)({zIndex:t.zIndex},t.customStyle);return(0,s.isDef)(t.duration)&&(r.animationDuration=t.duration+"s"),e("transition",{attrs:{name:"van-fade"}},[e("div",(0,o.default)([{directives:[{name:"show",value:t.show}],style:r,class:[u(),t.className],on:{touchmove:t.lockScroll?c:s.noop}},(0,l.inherit)(i,!0)]),[null==n.default?void 0:n.default()])])}h.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};n=n(h);t.default=n},function(e,t,n){"use strict";t.__esModule=!0,t.CloseOnPopstateMixin=void 0;var i=n(40),n={mixins:[(0,n(108).BindEventMixin)(function(e,t){this.handlePopstate(t&&this.closeOnPopstate)})],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(e){this.handlePopstate(e)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(e){this.$isServer||this.bindStatus!==e&&((this.bindStatus=e)?i.on:i.off)(window,"popstate",this.onPopstate)}}};t.CloseOnPopstateMixin=n},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(36)),o=i(n(5)),a=i(n(803)),s=n(9),l=n(233),u={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},c={},h=[],d=!1,p=(0,r.default)({},u);function f(e){return(0,s.isObject)(e)?e:{message:e}}function m(){return s.isServer?{}:((h=h.filter(function(e){return!e.$el.parentNode||(e=e.$el,document.body.contains(e))})).length&&!d||((t=new(o.default.extend(a.default))({el:document.createElement("div")})).$on("input",function(e){t.value=e}),h.push(t)),h[h.length-1]);var t}function g(e){void 0===e&&(e={});var t,n=m();return n.value&&n.updateZIndex(),e=f(e),(e=(0,r.default)({},p,c[e.type||p.type],e)).clear=function(){n.value=!1,e.onClose&&(e.onClose(),e.onClose=null),d&&!s.isServer&&n.$on("closed",function(){clearTimeout(n.timer),h=h.filter(function(e){return e!==n}),(0,l.removeNode)(n.$el),n.$destroy()})},(0,r.default)(n,(t=e,(0,r.default)({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0}))),clearTimeout(n.timer),0<e.duration&&(n.timer=setTimeout(function(){n.clear()},e.duration)),n}["loading","success","fail"].forEach(function(e){var t;g[e]=(t=e,function(e){return g((0,r.default)({type:t},f(e)))})}),g.clear=function(e){h.length&&(e?(h.forEach(function(e){e.clear()}),h=[]):(d?h.shift():h[0]).clear())},g.setDefaultOptions=function(e,t){"string"==typeof e?c[e]=t:(0,r.default)(p,e)},g.resetDefaultOptions=function(e){"string"==typeof e?c[e]=null:(p=(0,r.default)({},u),c={})},g.allowMultiple=function(e){d=e=void 0===e?!0:e},g.install=function(){o.default.use(a.default)},o.default.prototype.$toast=g,t.default=g},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=n(9),o=n(804),a=n(168),s=i(n(48)),l=i(n(107)),i=(0,r.createNamespace)("toast"),n=i[0],u=i[1],a=n({mixins:[(0,a.PopupMixin)()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var e=this.value&&this.forbidClick;this.clickable!==e&&(this.clickable=e,(0,o.lockClick)(e))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var e=this.$createElement,t=this.icon,n=this.type,i=this.iconPrefix,r=this.loadingType;return t||"success"===n||"fail"===n?e(s.default,{class:u("icon"),attrs:{classPrefix:i,name:t||n}}):"loading"===n?e(l.default,{class:u("loading"),attrs:{type:r}}):void 0},genMessage:function(){var e=this.$createElement,t=this.type,n=this.message;if((0,r.isDef)(n)&&""!==n)return"html"===t?e("div",{class:u("text"),domProps:{innerHTML:n}}):e("div",{class:u("text")},[n])}},render:function(){var e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[e("div",{directives:[{name:"show",value:this.value}],class:[u([this.position,((e={})[this.type]=!this.icon,e)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}});t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.lockClick=function(e){e?(i||document.body.classList.add("van-toast--unclickable"),i++):--i||document.body.classList.remove("van-toast--unclickable")};var i=0},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(9),r=n(63),u=n(232),o=n(806),n=(0,(0,i.createNamespace)("calendar-month")[0])({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},data:function(){return{visible:!1}},computed:{title:function(){return(0,u.formatMonthTitle)(this.date)},rowHeightWithUnit:function(){return(0,i.addUnit)(this.rowHeight)},offset:function(){var e=this.firstDayOfWeek,t=this.date.getDay();return e?(t+7-this.firstDayOfWeek)%7:t},totalDay:function(){return(0,o.getMonthEndDay)(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var e=[],t=Math.ceil((this.totalDay+this.offset)/7),n=1;n<=t;n++)e.push({type:"placeholder"});return e},days:function(){for(var e=[],t=this.date.getFullYear(),n=this.date.getMonth(),i=1;i<=this.totalDay;i++){var r=new Date(t,n,i),o=this.getDayType(r),o={date:r,type:o,text:i,bottomInfo:this.getBottomInfo(o)};this.formatter&&(o=this.formatter(o)),e.push(o)}return e}},methods:{getHeight:function(){return this.height||(this.height=this.$el.getBoundingClientRect().height),this.height},scrollIntoView:function(e){var t=this.$refs,n=t.days,t=t.month,t=(this.showSubtitle?n:t).getBoundingClientRect().top-e.getBoundingClientRect().top+e.scrollTop;(0,r.setScrollTop)(e,t)},getMultipleDayType:function(e){function t(t){return n.currentDate.some(function(e){return 0===(0,u.compareDay)(e,t)})}var n=this;if(t(e)){var i=(0,u.getPrevDay)(e),e=(0,u.getNextDay)(e),i=t(i),e=t(e);return i&&e?"multiple-middle":i?"end":e?"start":"multiple-selected"}return""},getRangeDayType:function(e){var t=this.currentDate,n=t[0],t=t[1];if(!n)return"";n=(0,u.compareDay)(e,n);if(!t)return 0===n?"start":"";t=(0,u.compareDay)(e,t);return 0===n&&0===t&&this.allowSameDay?"start-end":0===n?"start":0===t?"end":0<n&&t<0?"middle":void 0},getDayType:function(e){var t=this.type,n=this.minDate,i=this.maxDate,r=this.currentDate;return(0,u.compareDay)(e,n)<0||0<(0,u.compareDay)(e,i)?"disabled":null!==r?"single"===t?0===(0,u.compareDay)(e,r)?"selected":"":"multiple"===t?this.getMultipleDayType(e):"range"===t?this.getRangeDayType(e):void 0:void 0},getBottomInfo:function(e){if("range"===this.type)return"start"===e||"end"===e?(0,u.t)(e):"start-end"===e?(0,u.t)("startEnd"):void 0},getDayStyle:function(e,t){var n={height:this.rowHeightWithUnit};return"placeholder"===e?n.width="100%":(0===t&&(n.marginLeft=100*this.offset/7+"%"),this.color&&("start"===e||"end"===e||"start-end"===e||"multiple-selected"===e||"multiple-middle"===e?n.background=this.color:"middle"===e&&(n.color=this.color))),n},genTitle:function(){var e=this.$createElement;if(this.showMonthTitle)return e("div",{class:(0,u.bem)("month-title")},[this.title])},genMark:function(){var e=this.$createElement;if(this.showMark&&this.shouldRender)return e("div",{class:(0,u.bem)("month-mark")},[this.date.getMonth()+1])},genDays:function(){var e=this.$createElement,t=this.shouldRender?this.days:this.placeholders;return e("div",{ref:"days",attrs:{role:"grid"},class:(0,u.bem)("days")},[this.genMark(),t.map(this.genDay)])},genDay:function(e,t){var n=this,i=this.$createElement,r=e.type,o=e.topInfo,a=e.bottomInfo,s=this.getDayStyle(r,t),l="disabled"===r,t=function(){l||n.$emit("click",e)},o=o&&i("div",{class:(0,u.bem)("top-info")},[o]),a=a&&i("div",{class:(0,u.bem)("bottom-info")},[a]);return"selected"===r?i("div",{attrs:{role:"gridcell",tabindex:-1},style:s,class:[(0,u.bem)("day"),e.className],on:{click:t}},[i("div",{class:(0,u.bem)("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[o,e.text,a])]):i("div",{attrs:{role:"gridcell",tabindex:l?null:-1},style:s,class:[(0,u.bem)("day",r),e.className],on:{click:t}},[o,e.text,a])}},render:function(){return(0,arguments[0])("div",{class:(0,u.bem)("month"),ref:"month"},[this.genTitle(),this.genDays()])}});t.default=n},function(e,t,n){"use strict";t.__esModule=!0,t.times=function(e,t){var n=-1,i=Array(e);for(;++n<e;)i[n]=t(n);return i},t.getTrueValue=function(e){if(!e)return 0;for(;(0,i.isNaN)(parseInt(e,10));){if(!(1<e.length))return 0;e=e.slice(1)}return parseInt(e,10)},t.getMonthEndDay=function(e,t){return 32-new Date(e,t-1,32).getDate()};var i=n(230)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(9),r=n(232),i=(0,(0,i.createNamespace)("calendar-header")[0])({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var e=this.$createElement;if(this.showTitle){var t=this.slots("title")||this.title||(0,r.t)("title");return e("div",{class:(0,r.bem)("header-title")},[t])}},genSubtitle:function(){var e=this.$createElement;if(this.showSubtitle)return e("div",{class:(0,r.bem)("header-subtitle")},[this.subtitle])},genWeekDays:function(){var t=this.$createElement,e=(0,r.t)("weekdays"),n=this.firstDayOfWeek,n=[].concat(e.slice(n,7),e.slice(0,n));return t("div",{class:(0,r.bem)("weekdays")},[n.map(function(e){return t("span",{class:(0,r.bem)("weekday")},[e])})])}},render:function(){return(0,arguments[0])("div",{class:(0,r.bem)("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}});t.default=i},function(e,t,n){n(22),n(39),n(43),n(809),n(810),n(811),n(812)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(36)),o=n(9),a=n(88),i=n(106),n=(0,o.createNamespace)("tab"),o=n[0],s=n[1],i=o({mixins:[(0,a.ChildrenMixin)("vanTabs")],props:(0,r.default)({},i.routeProps,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var e;return null!=(e=this.name)?e:this.index},isActive:function(){var e=this.computedName===this.parent.currentName;return e&&(this.inited=!0),e}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(e){var t=this;this.parent.lazyRender&&e&&this.$nextTick(function(){t.parent.$emit("rendered",t.computedName,t.title)})}},render:function(e){var t=this.slots,n=this.parent,i=this.isActive,r=t();if(0,r||n.animated){t=n.scrollspy||i,r=this.inited||n.scrollspy||!n.lazyRender?r:e();return n.animated?e("div",{attrs:{role:"tabpanel","aria-hidden":!i},class:s("pane-wrapper",{inactive:!i})},[e("div",{class:s("pane")},[r])]):e("div",{directives:[{name:"show",value:t}],attrs:{role:"tabpanel"},class:s("pane")},[r])}}});t.default=i},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var o=n(9),r=n(815),a=n(106),s=n(234),l=n(40),u=n(164),c=n(86),h=n(816),d=n(63),p=n(88),f=n(108),m=i(n(817)),g=i(n(818)),v=i(n(819)),i=(0,o.createNamespace)("tabs"),n=i[0],y=i[1],f=n({mixins:[(0,p.ParentMixin)("vanTabs"),(0,f.BindEventMixin)(function(e){this.scroller||(this.scroller=(0,d.getScroller)(this.$el)),e(window,"resize",this.resize,!0),this.scrollspy&&e(this.scroller,"scroll",this.onScroll,!0)})],model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var e=this.children[this.currentIndex];if(e)return e.computedName},offsetTopPx:function(){return(0,u.unitToPx)(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(e){e!==this.currentName&&this.setCurrentIndexByName(e)},children:function(){var e=this;this.setCurrentIndexByName(this.active||this.currentName),this.setLine(),this.$nextTick(function(){e.scrollIntoView(!0)})},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&(0,d.setRootScrollTop)(Math.ceil((0,d.getElementTop)(this.$el)-this.offsetTopPx))},scrollspy:function(e){e?(0,l.on)(this.scroller,"scroll",this.onScroll,!0):(0,l.off)(this.scroller,"scroll",this.onScroll)}},mounted:function(){this.init()},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var e=this;this.$nextTick(function(){e.inited=!0,e.tabHeight=(0,d.getVisibleHeight)(e.$refs.wrap),e.scrollIntoView(!0)})},setLine:function(){var i=this,r=this.inited;this.$nextTick(function(){var e,t,n=i.$refs.titles;n&&n[i.currentIndex]&&"line"===i.type&&!(0,s.isHidden)(i.$el)&&(t=n[i.currentIndex].$el,e=i.lineWidth,n=i.lineHeight,t=t.offsetLeft+t.offsetWidth/2,t={width:(0,o.addUnit)(e),backgroundColor:i.color,transform:"translateX("+t+"px) translateX(-50%)"},r&&(t.transitionDuration=i.duration+"s"),(0,o.isDef)(n)&&(n=(0,o.addUnit)(n),t.height=n,t.borderRadius=n),i.lineStyle=t)})},setCurrentIndexByName:function(t){var e=this.children.filter(function(e){return e.computedName===t}),n=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:n)},setCurrentIndex:function(e){var t,n,i=this.findAvailableTab(e);(0,o.isDef)(i)&&(n=(t=this.children[i]).computedName,e=null!==this.currentIndex,this.currentIndex=i,n!==this.active&&(this.$emit("input",n),e&&this.$emit("change",n,t.title)))},findAvailableTab:function(e){for(var t=e<this.currentIndex?-1:1;0<=e&&e<this.children.length;){if(!this.children[e].disabled)return e;e+=t}},onClick:function(e,t){var n=this,i=this.children[t],r=i.title,o=i.disabled,i=i.computedName;o?this.$emit("disabled",i,r):((0,h.callInterceptor)({interceptor:this.beforeChange,args:[i],done:function(){n.setCurrentIndex(t),n.scrollToCurrentContent()}}),this.$emit("click",i,r),(0,a.route)(e.$router,e))},scrollIntoView:function(e){var t,n=this.$refs.titles;this.scrollable&&n&&n[this.currentIndex]&&(t=this.$refs.nav,n=(n=n[this.currentIndex].$el).offsetLeft-(t.offsetWidth-n.offsetWidth)/2,(0,r.scrollLeftTo)(t,n,e?0:+this.duration))},onSticktScroll:function(e){this.stickyFixed=e.isFixed,this.$emit("scroll",e)},scrollTo:function(e){var t=this;this.$nextTick(function(){t.setCurrentIndexByName(e),t.scrollToCurrentContent(!0)})},scrollToCurrentContent:function(e){var t,n=this;void 0===e&&(e=!1),!this.scrollspy||(t=null==(t=this.children[this.currentIndex])?void 0:t.$el)&&(t=(0,d.getElementTop)(t,this.scroller)-this.scrollOffset,this.lockScroll=!0,(0,r.scrollTopTo)(this.scroller,t,e?0:+this.duration,function(){n.lockScroll=!1}))},onScroll:function(){var e;this.scrollspy&&!this.lockScroll&&(e=this.getCurrentIndexOnScroll(),this.setCurrentIndex(e))},getCurrentIndexOnScroll:function(){for(var e=this.children,t=0;t<e.length;t++)if((0,d.getVisibleTop)(e[t].$el)>this.scrollOffset)return 0===t?0:t-1;return e.length-1}},render:function(){var e,i=this,r=arguments[0],o=this.type,t=this.animated,a=this.scrollable,n=this.children.map(function(e,t){var n;return r(m.default,{ref:"titles",refInFor:!0,attrs:{type:o,dot:e.dot,info:null!=(n=e.badge)?n:e.info,title:e.title,color:i.color,isActive:t===i.currentIndex,disabled:e.disabled,scrollable:a,activeColor:i.titleActiveColor,inactiveColor:i.titleInactiveColor},style:e.titleStyle,class:e.titleClass,scopedSlots:{default:function(){return e.slots("title")}},on:{click:function(){i.onClick(e,t)}}})}),n=r("div",{ref:"wrap",class:[y("wrap",{scrollable:a}),((e={})[c.BORDER_TOP_BOTTOM]="line"===o&&this.border,e)]},[r("div",{ref:"nav",attrs:{role:"tablist"},class:y("nav",[o,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),n,"line"===o&&r("div",{class:y("line"),style:this.lineStyle}),this.slots("nav-right")])]);return r("div",{class:y([o])},[this.sticky?r(g.default,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[n]):n,r(v.default,{attrs:{count:this.children.length,animated:t,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}});t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.scrollLeftTo=function(t,n,e){(0,s.cancelRaf)(a);var i=0,r=t.scrollLeft,o=0===e?1:Math.round(1e3*e/16);!function e(){t.scrollLeft+=(n-r)/o,++i<o&&(a=(0,s.raf)(e))}()},t.scrollTopTo=function(t,n,e,i){var r=(0,l.getScrollTop)(t),o=r<n,e=0===e?1:Math.round(1e3*e/16),a=(n-r)/e;!function e(){r+=a,(o&&n<r||!o&&r<n)&&(r=n),(0,l.setScrollTop)(t,r),o&&r<n||!o&&n<r?(0,s.raf)(e):i&&(0,s.raf)(i)}()};var a,s=n(231),l=n(63)},function(e,t,n){"use strict";t.__esModule=!0,t.callInterceptor=function(e){var t=e.interceptor,n=e.args,i=e.done;t?(n=t.apply(void 0,n),(0,r.isPromise)(n)?n.then(function(e){e&&i()}).catch(r.noop):n&&i()):i()};var r=n(9)},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=n(9),o=i(n(165)),i=(0,r.createNamespace)("tab"),n=i[0],a=i[1],n=n({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var e={},t=this.color,n=this.isActive,i="card"===this.type;t&&i&&(e.borderColor=t,this.disabled||(n?e.backgroundColor=t:e.color=t));n=n?this.activeColor:this.inactiveColor;return n&&(e.color=n),e}},methods:{onClick:function(){this.$emit("click")},genText:function(){var e=this.$createElement,t=e("span",{class:a("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||(0,r.isDef)(this.info)&&""!==this.info?e("span",{class:a("text-wrapper")},[t,e(o.default,{attrs:{dot:this.dot,info:this.info}})]):t}},render:function(){return(0,arguments[0])("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[a({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}});t.default=n},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var a=n(234),i=n(164),r=n(9),s=n(63),o=n(108),l=(0,r.createNamespace)("sticky"),n=l[0],u=l[1],o=n({mixins:[(0,o.BindEventMixin)(function(e,t){this.scroller||(this.scroller=(0,s.getScroller)(this.$el)),this.observer&&this.observer[t?"observe":"unobserve"](this.$el),e(this.scroller,"scroll",this.onScroll,!0),this.onScroll()})],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return(0,i.unitToPx)(this.offsetTop)},style:function(){if(this.fixed){var e={};return(0,r.isDef)(this.zIndex)&&(e.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(e.top=this.offsetTopPx+"px"),this.transform&&(e.transform="translate3d(0, "+this.transform+"px, 0)"),e}}},created:function(){var t=this;!r.isServer&&window.IntersectionObserver&&(this.observer=new IntersectionObserver(function(e){0<e[0].intersectionRatio&&t.onScroll()},{root:document.body}))},methods:{onScroll:function(){var e=this;if(!(0,a.isHidden)(this.$el)){this.height=this.$el.offsetHeight;var t=this.container,n=this.offsetTopPx,i=(0,s.getScrollTop)(window),r=(0,s.getElementTop)(this.$el),o=function(){e.$emit("scroll",{scrollTop:i,isFixed:e.fixed})};if(t){t=r+t.offsetHeight;if(i+n+this.height>t){t=this.height+i-t;return t<this.height?(this.fixed=!0,this.transform=-(t+n)):this.fixed=!1,void o()}}r<i+n?(this.fixed=!0,this.transform=0):this.fixed=!1,o()}}},render:function(){var e=arguments[0],t=this.fixed;return e("div",{style:{height:t?this.height+"px":null}},[e("div",{class:u({fixed:t}),style:this.style},[this.slots()])])}});t.default=o},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(36)),o=n(9),i=n(87),n=(0,o.createNamespace)("tabs"),o=n[0],a=n[1],i=o({mixins:[i.TouchMixin],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var e=this.direction,t=this.deltaX,n=this.currentIndex;"horizontal"===e&&50<=this.offsetX&&(0<t&&0!==n?this.$emit("change",n-1):t<0&&n!==this.count-1&&this.$emit("change",n+1))},genChildren:function(){var e=this.$createElement;return this.animated?e("div",{class:a("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){return(0,arguments[0])("div",{class:a("content",{animated:this.animated}),on:(0,r.default)({},this.listeners)},[this.genChildren()])}});t.default=i},function(e,t,n){n(22),n(39),n(43),n(397),n(821)},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.resetScroll=function(){r&&(0,i.setRootScrollTop)((0,i.getRootScrollTop)())};var t=n(823),i=n(63),r=(0,t.isIOS)()},function(e,t,n){"use strict";t.__esModule=!0,t.isAndroid=function(){return!i.isServer&&/android/.test(navigator.userAgent.toLowerCase())},t.isIOS=function(){return!i.isServer&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())};var i=n(9)},function(e,t,n){n(22),n(166),n(39),n(43),n(167)},function(e,t,n){n(22),n(105),n(826)},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.pickerProps=t.DEFAULT_ITEM_HEIGHT=void 0;t.DEFAULT_ITEM_HEIGHT=44;var i={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}};t.pickerProps=i},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var l=i(n(34)),r=n(829),o=n(9),a=n(235),s=n(40),u=n(87),i=(0,o.createNamespace)("picker-column"),n=i[0],c=i[1];function h(e){return(0,o.isObject)(e)&&e.disabled}u=n({mixins:[u.TouchMixin],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:(0,r.deepClone)(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var e=this.$parent.children;e&&e.splice(e.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(e){this.setIndex(e)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(e){JSON.stringify(e)!==JSON.stringify(this.options)&&(this.options=(0,r.deepClone)(e),this.setIndex(this.defaultIndex))},onTouchStart:function(e){this.readonly||(this.touchStart(e),this.moving&&(e=this.$refs.wrapper,e=(e=(e=window.getComputedStyle(e)).transform||e.webkitTransform).slice(7,e.length-1).split(", ")[5],e=Number(e),this.offset=Math.min(0,e-this.baseOffset)),this.startOffset=this.offset,this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset)},onTouchMove:function(e){this.readonly||(this.touchMove(e),"vertical"===this.direction&&(this.moving=!0,(0,s.preventDefault)(e,!0)),this.offset=(0,a.range)(this.startOffset+this.deltaY,-(this.count*this.itemHeight),this.itemHeight),300<(e=Date.now())-this.touchStartTime&&(this.touchStartTime=e,this.momentumOffset=this.offset))},onTouchEnd:function(){var e,t,n=this;this.readonly||(e=this.offset-this.momentumOffset,(t=Date.now()-this.touchStartTime)<300&&15<Math.abs(e)?this.momentum(e,t):(t=this.getIndexByOffset(this.offset),this.duration=200,this.setIndex(t,!0),setTimeout(function(){n.moving=!1},0)))},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(e){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=200,this.setIndex(e,!0))},adjustIndex:function(e){for(var t=e=(0,a.range)(e,0,this.count);t<this.count;t++)if(!h(this.options[t]))return t;for(var n=e-1;0<=n;n--)if(!h(this.options[n]))return n},getOptionText:function(e){return(0,o.isObject)(e)&&this.valueKey in e?e[this.valueKey]:e},setIndex:function(e,t){function n(){e!==i.currentIndex&&(i.currentIndex=e,t&&i.$emit("change",e))}var i=this,r=-(e=this.adjustIndex(e)||0)*this.itemHeight;this.moving&&r!==this.offset?this.transitionEndTrigger=n:n(),this.offset=r},setValue:function(e){for(var t=this.options,n=0;n<t.length;n++)if(this.getOptionText(t[n])===e)return this.setIndex(n)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(e){return(0,a.range)(Math.round(-e/this.itemHeight),0,this.count-1)},momentum:function(e,t){t=Math.abs(e/t);e=this.offset+t/.003*(e<0?-1:1);e=this.getIndexByOffset(e);this.duration=+this.swipeDuration,this.setIndex(e,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var o=this,a=this.$createElement,s={height:this.itemHeight+"px"};return this.options.map(function(e,t){var n=o.getOptionText(e),i=h(e),r={style:s,attrs:{role:"button",tabindex:i?-1:0},class:[c("item",{disabled:i,selected:t===o.currentIndex})],on:{click:function(){o.onClickItem(t)}}},i={class:"van-ellipsis",domProps:((i={})[o.allowHtml?"innerHTML":"textContent"]=n,i)};return a("li",(0,l.default)([{},r]),[o.slots("option",e)||a("div",(0,l.default)([{},i]))])})}},render:function(){var e=arguments[0],t={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return e("div",{class:[c(),this.className]},[e("ul",{ref:"wrapper",style:t,class:c("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}});t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.deepClone=function t(e){if(Array.isArray(e))return e.map(function(e){return t(e)});if("object"==typeof e)return(0,i.deepAssign)({},e);return e};var i=n(395)},function(e,t,n){n(22),n(105),n(831)},function(e,t,n){},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=n(9),o=n(87),a=i(n(107)),s=i(n(833)),l=i(n(834)),n=(0,r.createNamespace)("key"),r=n[0],u=n[1],o=r({mixins:[o.TouchMixin],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(e){e.stopPropagation(),this.touchStart(e),this.active=!0},onTouchMove:function(e){this.touchMove(e),this.direction&&(this.active=!1)},onTouchEnd:function(e){this.active&&(this.slots("default")||e.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var e=this.$createElement,t="extra"===this.type,n="delete"===this.type,i=this.slots("default")||this.text;return this.loading?e(a.default,{class:u("loading-icon")}):n?i||e(s.default,{class:u("delete-icon")}):t?i||e(l.default,{class:u("collapse-icon")}):i}},render:function(){var e=arguments[0];return e("div",{class:u("wrapper",{wider:this.wider})},[e("div",{attrs:{role:"button",tabindex:"0"},class:u([this.color,{large:this.large,active:this.active,delete:"delete"===this.type}])},[this.genContent()])])}});t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default={render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default={render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}}},function(e,t,n){n(22),n(836)},function(e,t,n){},function(e,t,n){n(22)},function(e,t,n){n(22),n(166),n(39),n(43),n(167),n(105),n(839)},function(e,t,n){},function(e,t,n){n(22),n(166),n(39),n(43),n(167),n(841)},function(e,t,n){},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var r=i(n(36)),o=i(n(34)),a=n(9),s=n(37),l=n(168),u=i(n(112)),n=(0,a.createNamespace)("notify"),a=n[0],c=n[1];function h(e,t,n,i){var r={color:t.color,background:t.background};return e(u.default,(0,o.default)([{attrs:{value:t.value,position:"top",overlay:!1,duration:.2,lockScroll:!1},style:r,class:[c([t.type]),t.className]},(0,s.inherit)(i,!0)]),[(null==n.default?void 0:n.default())||t.message])}h.props=(0,r.default)({},l.popupMixinProps,{color:String,message:[Number,String],duration:[Number,String],className:null,background:String,getContainer:[String,Function],type:{type:String,default:"danger"}});a=a(h);t.default=a},function(e,t,n){n(22),n(105),n(844)},function(e,t,n){},function(e,t,n){n(22),n(846)},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.ClickOutsideMixin=void 0;var i=n(40);t.ClickOutsideMixin=function(n){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var t=this;return{clickOutsideHandler:function(e){t.closeOnClickOutside&&!t.$el.contains(e.target)&&t[n.method]()}}},mounted:function(){(0,i.on)(document,n.event,this.clickOutsideHandler)},beforeDestroy:function(){(0,i.off)(document,n.event,this.clickOutsideHandler)}}}},function(e,t,n){n(22),n(39),n(43),n(849)},function(e,t,n){},function(e,t,n){n(22),n(851)},function(e,t,n){},function(e,t,n){n(22),n(39),n(43),n(853)},function(e,t,n){},function(e,t,n){n(22),n(855)},function(e,t,n){},function(e,t,n){n(22),n(402)},function(e,t,n){n(22),n(39),n(403),n(43),n(402),n(858)},function(e,t,n){},function(e,t,n){n(22),n(39),n(43),n(404),n(860),n(861)},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var i=n(12);t.__esModule=!0,t.default=void 0;var h=i(n(34)),r=n(9),d=n(37),p=i(n(48)),n=(0,r.createNamespace)("tag"),r=n[0],f=n[1];function o(e,t,n,i){var r=t.type,o=t.mark,a=t.plain,s=t.color,l=t.round,u=t.size,c=((c={})[a?"color":"backgroundColor"]=s,c);t.textColor&&(c.color=t.textColor);l={mark:o,plain:a,round:l};u&&(l[u]=u);u=t.closeable&&e(p.default,{attrs:{name:"cross"},class:f("close"),on:{click:function(e){e.stopPropagation(),(0,d.emit)(i,"close")}}});return e("transition",{attrs:{name:t.closeable?"van-fade":null}},[e("span",(0,h.default)([{key:"content",style:c,class:f([l,r])},(0,d.inherit)(i,!0)]),[null==n.default?void 0:n.default(),u])])}o.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};r=r(o);t.default=r},function(e,t,n){n(22),n(39),n(43),n(404)},function(e,t,n){n(22),n(39),n(403)},function(e,t,n){"use strict";n(406)},function(e,t,n){e.exports=n.p+"static/image.7c56773.png"},function(e,t,n){e.exports=n.p+"static/image-2.ff79643.png"},function(e,t,n){e.exports=n.p+"static/image-3.d6520d5.png"},function(e,t,n){e.exports=n.p+"static/image-4.4db3df5.png"},function(e,t,n){var i={"./catalog-1.md":254,"./catalog-2.md":253,"./catalog-3.md":252,"./catalog-4.md":251,"./catalog.md":255,"./intro-tis-app.md":266,"./lifecycle-1.md":249,"./lifecycle-2.md":248,"./lifecycle-3.md":247,"./lifecycle-4.md":246,"./lifecycle-5.md":245,"./lifecycle.md":250,"./main.md":265,"./quick-start-1.md":263,"./quick-start-2.md":262,"./quick-start-3.md":261,"./quick-start-4.md":260,"./quick-start-5.md":259,"./quick-start-6.md":258,"./quick-start-7.md":257,"./quick-start-8.md":256,"./quick-start.md":264,"./start.md":908,"./tis-api-1.md":243,"./tis-api-2.md":242,"./tis-api-3.md":241,"./tis-api-4.md":240,"./tis-api.md":244};function r(e){e=o(e);return n(e)}function o(e){if(n.o(i,e))return i[e];e=new Error("Cannot find module '"+e+"'");throw e.code="MODULE_NOT_FOUND",e}r.keys=function(){return Object.keys(i)},r.resolve=o,(e.exports=r).id=870},function(e,t,n){"use strict";n(420)},function(e,t,n){e.exports=n.p+"static/logo-black.1074a2c.png"},function(e,t,n){"use strict";n(421)},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAABUCAYAAACvKq23AAAgAElEQVR4Xu19C7gdZXnu987a2Un2DiTkIrmQcFFO1doWlR4QCGRHLhoItLZIlar1blv10Fpvx6rVQ71UxVq1tRVQe7RHtCJequWigRASEoMitwMIIReBJARCSQKEZM/b511r1tprzcw/M2utWTt77/z/8+wHzZr5L+/MfPPN973f+8N88wh4BDwCHoExiQDG5Kz8pDwCHgGPgEfAvIH2N4FHwCPgERijCHgDPUYvjJ+WR8Aj4BHwBtrfAx4Bj4BHYIwi4A30GL0wfloeAY+AR8AbaH8PeAQ8Ah6BMYqAN9Bj9ML4aXkEPAIeAW+g/T3gEfAIeATGKALeQI/RC+On5RHwCHgEvIH294BHwCPgERijCHgDPUYvjJ+WR8Aj4BHwBtrfAx4Bj4BHYIwi4A30GL0wfloeAY+AR8AbaH8PeAQ8Ah6BMYpAqoF+zrU8LxwOL6DhuAB2KGnbAnBlGASXbzgDt4+VtRxz42OL8Ey41AzP7gsD6wsr901h5ZpbXjb48FiZo5+HR8Aj4BHoFIEWA/3sq7kwtOFvGe3EeocAjKTpv2YILeCXpswL/uKuF+CZTgft9rz5Nzy60MK9n6uw77xKaEGFgekvCKv/DSsWXDHYH7x7zUsHHux2LH++R8Aj4BE4UAg0DPQx13IRw3CtkXOrIqSsTUn/afq/tX8BVsyaVTnnluPx5GhPfPbKX5/dR3wjCIPpNcOMumGOjDSsjxULiG39NumcdWf3rx/tOfrxPAIeAY9AGQhUDTRJHHPt/tU1z7lujmu2m0aDofpftcavsJWHsG/ZbWdhTxkTKdLHrFWb3h+wcnEwnPCaE4Y68qp3TgmnHHfTudhcpH9/jEfAI+ARGEsIVK3w0dfsP5dh+L2aBYYsdu2/qW3Ep4bhxqn9fcvuGsLuXi5q/vqHBvbs3Xt5hcEFQYiqp1yRl1z/3wptmEIc0W/hyP/uY3DZunOnvKmX8/N9ewQ8Ah6BXiBQtcJHXv3M1wFcGHnT1Xiz4s4tHnN99JgBp9lNUwb6Xn7PKdjViwl+mAwuWbvxBxjmMhnlWqxZYYy6EW4y1I1YdCPMIUO+v8/6j1qzHD4e3YsL5Pv0CHgEeoZAzUBf+8ydRnt+usMcedORwU4cAxhoa/qmT3rZfSfiibJnOrB2wxsxzEvrhrmeEBxJDNY96rrhHjHYVUMu3xqVpWvPmbSi7Ln5/jwCHgGPQC8RqBroRVfv3QzYwrSB6tGOun12RUBgWBtg0lkbzsB/lTnhgZvv+y5C+70GS8PqjI2RcMaI8a5YpR7mqIY8IqON4Py1yyf/e5nz8n15BDwCHoFeI1Az0NfsXQuz/1lksHjSsOUc4GdBX/+ZG4fweJG+ihxTNdBEZKBrRrk1Dm3VePRIyKPZgFfZHFaxynHrlvf/ssh4/hiPgEfAIzBWEIhCHHs/RfKvCk2qleSRcgrW25T+Mzcvxs5C/eUcNLj2vvcwtE9W5A2zFltuNtI1Y61/q9HtqoZaRlnx6BovesP65VOfXcZcfB8eAY+AR2A0Eagb6OfR7HYzVhoMjkZMo4kMXaXkjRA9NNGEvVZM2uzn0wYnn3HnSXis28WIwfH4vqfuqhBH1o10rDClGtYIWDfOMswjnnYfglevP3vg/3U7j4PpfJJTzexFZvac2F9gZo+a2SNm9nMzu8nMbgGw72DCZ6KsleSgmf0vMzvVzA4xs5vN7KNAuWHKiYLXgVhHg0t35DVPfya08C9bKwerHOkWVkeChucIUgPBrQOYfPrdp0MPdFdt+rpNx3A4vA7DdnQyWaikYC3MES9amcTgIz8/e/Bvuhq84MkkZbyUJJ1c8JRuDnsYwKJ6ByQV9x9wdPh3AD5QZDCSh5nZn0UP7Zwi50TG+gtm9kWg+2udNibJe8zsmILzCc1MjCJhoj+9TCRPcGv0dxcAHXNQN5IiBVxtZkfEgLjPzF4I9JY6e1CD38biGwb6fLKy9rqnrqTZudnnx33meK1h0+/AbVMrk1967xB2tDGn1ENnrd6yYNj2/zgIg9+KSrpHDHLEg6562GJuoLK/Mhy8+7Zl0/6+23GLnk9SSdbRKohZBWCx5kZynpk9lDHPNwG4LGsdJOeb2V+a2VvNbFrRNceOk1F8LYCrOjw/9TSSk8xMFat9JfUrrL5hZv8K4I6S+hxX3ZDUNf5F9HWUNvf3A/jEuFrUBJ1sSzXKkhXs2zD89FdpvNDF2kh41AlgWg04jLdPnjzw0vtOhTyZrtrhv9w6uO+JvZeAwRsrRCWKMUfx5ijMYcEdAYM33XXW9LVdDdbmySSHzOynbZ7W6eFfA/AnkYE+xcxuzOhoCMD1rt9J/qaZ6ffZnU6m6Ty9rf8cwD+V0Fe1C5IKs/yqrP5i/Yh6+VYAveq/R9PurluSrzOzr2b08m/1uojuRvJnd4tAolxQZd+LVjz1eQ7zz1M7z00SJs8C7M7+KQNL7z8Z27udsM6fs3rLc/qGcQHCygmVEPPA4Mm+MLijD8EP71l62H8CiJREyhitWB8kVa345WJHd33UBwFcHBkwGeqvZPS4EMCv034n+dzIOB/e9YxqHcgjPQPA1pL6k4F+mZn9uKz+Uvp52sw+YmafAjDcw3HGTNckZZxlpF3tMgC++nYMXDGnHvTC6/Z8lGYfjHvM+THq1qRiXW0JZndNssGlD5yObWNg3aVPgeTHzex9pXec3uGrAVQTnyRlqF0x5qfMbDDthUXyWDO7wcwUIimjSZTqZWXHocmqo6AYd6/bQWOUSH7ezN6eAeh5AL7fa8B9//kIZAr2L/jJkxeZ8RIjOxb2b3G4YXf3BTa0cWhaaR5W/hJH5wiS3zKz80dnNDsBwLrIQH/TzC5wjHsngBfEf4tikP8/JUHU6fRXmdnZQPmVpCQ/a2YXdTqxNs/7WNGEapv9jqnDSS41s584JvUjM1vuE6lj45LlGt5FK3a/bnjYLjPVe6S0vJh0koZn9wSTg6VbThnMSmyNDXTamAXJD2ckXeo9TdfNn9GtYsmbCgz7DqBWDETyZ2Z2vOOc7wM4L8VA/28z+9ucceQR/6uZrY6SkEqCvtDMlJx8dcSwVBfXmtnvAb2RniX5AzM7xzHX/RFzpvlnUce6YdJoLTXhsAncSH4s+uJrtgG63rq3SpdsmMBQ9nRpuQZaoy/86Z7zwpBX0Dg5rhCdDHnEeNIp4nhQ0mdqZejXJx1cgvokl5hZlibIYgDyRgs3kioImuE44RIA72r+jeQUM5Nw1EzHOaKgfdDMPu6K5ZOUwfxalJy8AMDewhNu80CS8vQVK09r3wTwqtj6dE8vMDMVJ+nvt8zsjRHPt8joouO96EDkMYpMrsxjSOrrSi9c8dhXA7irzP59X90jUMhAa5gF1+8aYsjvGauE9s5bxMqD2X0W9A09ODSQmsDqfICxe2aBROK8dhJsJGeZWRaF8c/ijIoCbJN/B5AbqomoedsByIvtSYu45aLYuTziiwHoZZLZIpzeK4ZJBl+8uY+DwovOw83/fuARKGygNdWFK/YcP8zhHxtt9oiAf03Mv1o/qBaLacTrWGJL3jBlMDjpgROnTcjEYfzykhS3VIYire0G0NbLj+QJUfWX6046E4BCEI1GUoU7Cse4mmLJikMe8EZSxThZIZ8/ASBPvlCjdgsyu87MRC3Mav8BwBVWKTSWP8gjUAYCbRloDXjkDbuet2+Y19QTTMlKw3QWR30LrXhIxGhrBhYdMnTfsb37TC4DqDL6IClFvT9w9PVLAMe1Mw5JxYJVdOFqzwawofnHnDnoUPGC/6WdefTq2JxkloY9BYDKzQs3koqjiyOvAhhXU6WmincKNVFTzex3zExc+JMjZowqMZW3kfOx0cz+Q3/13EGhjmMHkXyemb1Ce2yY2VF6HKOqyXvNTH/ic68HoLBQaiOpitOXZ4z/A6DYfqMklVPR/SwqpHIUegFK3kEvVYVLVAykeVVb9ML9XcfYNwKtNFySCsMJ07Sma6T8SL1vJT5faWZiJwkfMZhE673NzL7V7n3SyfXpxTltG2hNYv6KJ55rIW+icWb+Diyt006l7Zl9eOvS6R/txQLHUp8kVb3lMsJXAnAZb9fD9qGIw5v2u+KKU+Pc3pykm/qRh6ksvvjBB7SRfIuZ/XPGJOYC7dM2Sf61mf2fnMUV6jt6iXw6SqDm4SXZg1fFv2qyTorCPEosixZ3et4A0e9yoD4MQNoaLY2kVCtdRVzaCHogjw8ezUmUUt1/eQlZzUXVrFtIKh8irNLaCwDc2fwDSVU1uxK2lwJ4M8mTovqDdD37kQ5FG3w90L0+UMFrUMphHRlojTzv+id+n2F4ZV7hd94sq+fDdlUGgqMfPOHQrnU78sY7kL+TVDm0q5Ramhmu8IfLQCvr/hrHmn4F4H+kPKDy5Jbl4HCLmb0BgLyPA9ZIftLM3uOYQNshoXo/JOXZ6suioWeSMsZZAGRcXNjLIPyd6IVtAqRimA8A0NoyG8l+M7tCLJm8Y1N+l7H9YwDfjhm9rK+uewH8RtZYkbTA181MHmvRpudaXvsbzOxtKScpM6UXQ4tTQFLyA59xDPL+6OtBcg5FZQBWyiMfTxTCjg20QJu3YueqkHZy3Ujr3+obzLpj0q3iS/VzgwBveXjJjNGqxCt6Y5V2HElV62Xxv98CoK31k9Qn3ksck/wxgIQhjuiARQWkpFj3f81M3v1o6Yw0lkPyO9EnfdoSbwWgcEVHjaQMnz6JXc1ZrBHlEiTPm0o9LTihfwSQXq1bCwdIUfC7ZnZWwf7SDmtIAtR/JKmkqutr9UcAnC8ckjKycgo6kQXQ/aOEtlQS421Ls/hX01z/0cz+1LH+eriwXRsm1pFqFsZFa3dxLYuad/3jbyHZ8gmaJ0eakFaKaHhBgKseXjLj98cFah1MkqRik1kUuqUA2tqWi6Tim89yTOcLAN4R/42kYqUKtbR77WWsdWOr4q5r8asiEJLUJgu/7Tj2OwD+sEg/aceQlJHKYoCcDiBRzEFSHn2u91tgXmK/HAWk75VJUp/2OcJlmaOkMlxIKqn6WseZ/wBA8qOJFsW/dQ+Ipll2WwEg4ZGT1VzXGSUPlvpclDxGad21+5C2DDx31a7f5L59d9TLuWs/5tA4Entm1Uw2wDu2LpkpzuqEbAUEahYpTld08SQPjeQ0XadcBOBzjoftnWaW+luB8fUZqurFvwFQpKimQJfph5DUbvEqPElrnwTQcWl9gdL8l8RjuCTlQMirdz03it+r2EhJOiXMzswostGa/haA4uEtjaSkVSX76RpHMqr6etJ/FVNulmKV4f9TAJc6rr2SqorbprV3AlAZeHw+CiFoPFeCr+NrHJ34ZQDKN8THVRhKCb8ym5KovVpHmfOs9tWVgT5m/WPTd+/i4/WwRm12rQY6T1upkTQ0bt0+NKssXYjSgeq2Q5JKSiUexqhfGT3F4AqLPEVsBHk0rnYOAMWbUxtJCQQpydNpU4GM4tSlyovWJxNR4h7OmNybXUaoyIIK6FH8NgDpSFcbSVVrSrskTXdbhT/CIhGzzomjSuFRYlYthT453r0YIcc1i+qTVNhA1Ei9zM4H8J8Z1z3rq2sZgIQwVcGkqlgTqmpVBaru5xOjP5dOefMU3wtA8fxGi2Rm1WdeGEl4rDGzu81MtFMVg2WNqeT5tKJMlSL3Ui+P6cpAH7Vu99wn9+wV3aUq7K+WK6bkXs0924dmuSrGeonBqPRNUuJGf+QYTCLyedzcllNJqpgkK5b2XAASune2KB797gwvtQg2bwOQxbQo0kfiGJJdyajmDUpSCaOqpnZKUzXlrKZyejEV5NHGxe11qhK/ovs5E6oklXRNi73q/JYXaUTZk9FxJTBfGU/8RS8QedGHAlAlZGojKZ59Vhn3bzTT4qJ+VW0oRyCLlvhDbfQQ/wKMvgQUK87LFfwBgCubJx2JeTUoeo4liRHynmbHhqQS47oWWeySyQeFgZ67cudpw8PD12clCeObzDqTiAGu3n7aTPEpJ2TrRDMjx7jq814KemlNTAF55MrkZ7aIayoKl+LVnSR/xHsV37q0jYIjw9CxjGqBNYsdofCAK556GwDF6quNpErFU0MGESNDuhbOlsNGaan2JCn+dJYsr8JLb+9ENTDnq0v3jGiZLduXkRSLQmwKV1OoS19jqS2SFhB9LmtHnJavlQhzJSSzCqb+BYA2mEg0klI/dCVgnwTgCpvl3Tqj/ntXHvThN+z4eEh7X6uBHlHrKLKaelLRLHjP9iUzP1XknPF4DEkZMm0pldY+CyDrIUi7CWUwZDjS2iYAKmQo3KICBiXd5OWLb5vlMcX77Soe7HjIOpJRLbJgkko8OSl0kjdtTrCSlM616wtHsdM8dcY/zmCMaA/ARmVngepJLVFxZm0OIc9VMW+9UHK38SKp69tCu2vC6wEACSNKUsUv2jQhrakvsSIyQ3M5+Redq5CDSvobjaQchn9wjKuXybEAHnDcO1I/lApiWnsQQNqXUJFbZ9SP6dhAz7mD0/DoY5vIcOZI3LmT+UOn7+vrqxz78MmH9TTp1Mnsyjgn8lKzON7ahUSUosKNpHZBOc1xwk8AFC1qSHQRaVcohCIvXdVqee1mAC66X965qb/nhIRSZVSLDkRSnllWNV2DijUKW5mJE93wwCPus+6VdrYe09eAQgn/BEDhFBemWV9d1wJQUrPZSKpy0SWgpBfCEQCy8gTVvkjqy8y1o9JDACRu1dJIKomtZHZaux6Aq8JQ42VtnnEHgHFDRujcQN/wyKVGpwc3AmqxSpZLH1ky581FH7DxdlxO9ZaWk1kUkbZekhKZStzY0bH/DCCtIKAt6EipF1Yr2LQhgMv7V59dcZId68uSUf0egE6KN/TwKoOvSjrXvS/jKPqbGCQ6Xmp5/9YWcO0dnHg5k9SWYZ1eP3nU56aFnEhmfXXJuGvD4GYDnUUpzDSSsX7EAnHt/L4SQMLRIJlVUPUZAOKhp7acpOZ1AMqm7rV3xds4uiMDffjKRy8KGVY/IfL0oPPmArONUyv9L9q8eIZYAROydaKZkQVEVMSwJ8PIKHFSWrgoil2qbFix27R2NwB5W6W1HBnVzAc048GVToMMWNYWXx8C0CgDJyl2gRKpvWpiXcj7bTaMMmhKAHdaFyBKnLYei4cNsr663gXgktg8VB7t0i/XFmGuKs8WrEiKq68wUJq9uRxAIlRHUqwMV1XjawComtFloKUl43L4SnFeenUzxPtt20DPumH7e0F+oh50SogftTNzYBfI0x457VkqnJiwjWTbmhk5Blrx0KwdqV8BQFVopTWSMmxiVqS1+wG44pRtz6GAjKp4vl9qp2OSijuqUCgrZCOGw5HN3idJjZOajGpn/IxjRZlTQU7cqCkHIIOpZGk74Y56P18BoNLqRsv56kpIrJIUXiqwSmvOJF3KWlQN6ArhJXYQj7Q+RLFzOQQnAnBuCk1SfPSXOuZdqvNS0j3g7KYtAz175baPGO1D9WpA9RqvDIyP5IpwVLmSQfDyHYvnOHec7vXiR6t/km1rZmTNjaR2ScniHyey4ikPjWhkhbVPSOqBUFFEWrsKQKfeXqK/AiEheYd6CAs1kgoF6fg8Guf74hoZJFXqriRfWlOiLo8KljdHea4tnm7MqMo4qyRdQloyllKQK9LEqplT1+su8NWVJlYkHnhiy7Ro8BsAiHOc2aIwmbZnc1WEpn1BKMGdmgCMBtO6nNWsJEVTdL2IS3de8jDo5vfCBnr2Dds+TbN3JU1yrDAltoNKUg+aZgj2AXjFjsVzlIWe8K0TzYwsUHJUwVKz4rGHXp+t4mWLrqUdnvMeMinwZX3lJD6P8/rMWV+ejOrRAPQQ5s1bLxSxAWTgXN5YvQ8VaEgLu4WRkJOs+gQAifaMSos8SyW4VAJ+YUYIoD6fGfWCFpJZX11aszYXltfaaDlccR2XK/daYAfxF8a52ySV4G7RMW+a1uMAnPmQKMmqdQSOi/I7B1oErJ2bJddAizg/+8btXzRjJFrSapCT8qGKS9e2vVJLaHMECMHgwh2nzhGf86BoJMVrFb81rX0egCtbnXoCySwRmUwt4yjpJY9ecU49mH8Vjz3GHlJ5UNKFcPFY1cfzAShmWErLCQklJDEjw6U4p8IY8pblgcnIuzz++DzFHtI2V6JCtrQcDrQKInSeaF+ua6VQhZKs0jApXMpfe3b44hxWRlZ1qroQF75qdHO+un4NQHrO8bVnfT3oWF1ziUolviJIyojWQzRZ98Uh9YRs/SCSSpAqUZrWbgHg2oNT61TcOuteFKVP+Ztx0TIN9Plk5ac3br3MDK+rVwrGpTYS2huJoEerQQ9gb92xeO6YEIQfjSvUjWZGxkOfJSIj4fNT084lqcSJYqpx70Kf6hLRUcWYaFOiRelG127hEojPEshpW8c6D/eckJBeCM2ULd1g2pOxHd528xSUvBKLJrUSMBIJytqrr4Um19xxRK+UdodCASqx1ud1Q2Q+C4emryTntl4k9SWkRF5a2wyg8Zmf89WVysgooB+jcRW3VyJV65JhlAyrSq4luuQS8qrPdxsAaZbEXwxKcLtYGlcAcFXkykBLwdElcbAVwLiSk3Aa6Bev56QHntr2dYahSkudpdx5D1vz70EQvHvHKYe7BLvb6WrcHNutZobD0GaJyCSSQ+ojRxOiUzylIXFCWpKr0w6juWYJ+nTTdfxcGZSX54VLSEplMCveKhqedkmXJyntCOlQSJ1NWt3NYj/y/pXgvDzHOMclQdW/ikJuAvBIxIpQ6bg8VBd7RruZvK4+Tg51T969uMNxQ6mXnkrcs3Szu7keqwAkyu1JKsHtolGmCkw1rTOrwEX4uRLd3ayjZ+emGujn/IqTd27b9q3qjgaxLGC8dDs+M1cpNyq4+NGT5+Zu8NnOShfc/OgReOaZ+ZP2B3tnHvqsX91yvDvZ0k6/ZR5bhmZG83yiGJuSSi4RmYRHV2Afwk6WrGo2aSi4PLhO+qyekyOj2nG/sRMlJSrnIxHWSDFU0mR2ChA1HS+ur8IdeZKcKsJQ3D4RGimgsiftj7y9K1VEohenhIvqmGZ9dSWYFE3ndaN8mHetvgrg9Sl4ZyUntSuKM2+SkzNoeWnlTW4s/J4w0PPXc+Dppx++imFdhzVmoWNyoQmWRhR/jrSTahEQ4PM7T5nXVpzVBc5Rv9g5Y9fuPe/qI14ThDgyCGEVBjbJKvsxjJV9AT579+kzx0zykaSSSC6thsKaGU0PjLi8WcyBPwIgMfr6gykvKjcR2ObNqHlf2DxOm+c7Dy8QEup2KIUaFHd38mjTBiCpsuOEvnaHk0mI/EQvJu0OkqrH3OY4nwOgcudGI5n11ZVgUjTdP1KGU0LWlUNpc2oth/81AH15NM9TFkMxYm1YkNYWA3DqqpPUs+/adKCF497NxEfr3BYDPXvVI4cM274fGu3UWv4o2RKC+7E9YhNyo7CvPXryPL31CktpuhY/Y/WW04Jw+IogrBweENbHwAL9hbX/LUMdhIH1sXLlpMmHvPHWoXIFfDq5KCQvi7b6STt9I4C29G6jXS2yRGSOb04sRds7qaioLOOi6yhpzbKNfhWfAiGhTi6DzhGlUNfiY81SnUU7i75chKOS5bnJdUe/8myl052muaxPb8mZutgHRaaqa6MvqBYRrQLSnQkmRcxoip6oEIuLcueam3IbUpdzaV+0OBPR9VeSV1WyrjYPgFP7JKfARU5FL6tCi1yjto5p3GjPv4P9Dz/+0LUyzvUwRhUwY2Mbq1rPxWq3o0OvPOPkBa/8dkaWu+hsp63ecH7F8I1KGEyqes1hYBWrGWQZ5kqIqrGu/e/qb/dPDSctW3f2lG55qkWnmP5CI/XQpSbtxM1tt+w0R0RGc2hQq2IPmRKEnzAz7ZTcaRMVTdQySXX2pOUI+rQ7pjx94a8SZyUzW3SX2+0sMiC6ljL07RbmKMQgz72hMR0fP9okVQakE7U1hT60B2Ei5BRJcGZJz0qmVOc7WySmJfZQI66ddbiZKc4up0AVwi7pz2Pigkckha+uWVrL3Iey2wKXTu6HXp/TMNAzbnrw0xZWd93NbvEdURI8uhoRGkFwzbzp85bf9YJ8ycu8IQfXbngthu3yCoNKq7dcM8oj3rPCHZWqRy2DXWFlQ2Vw4IRbhkZni6a0dZCUmPt8xxq/BMC151rqKTkxth0AnJ+iUfjgL6IHZ1Ye7tHvijWLEqnS3p5vIksyS9DHNWWJBSmWLC9ZLBQVRohVsC5O4Sq45szDoqIPSWzKWGUxFTQvfXIr1lqosCYSFtI9ofLnPKEqXRvF0nV9vuv6MshhNmwHkFX63oJFlFPRulWp1xxr11y0k4ywV4jldpLyvPVvaS11g1qSqn7UCzCt/RKAOPmuZ0N4ZfHjZ7dTnFXGvdJtH1UDPWv1jgXDfHqD0frzQhhFtDdguGlganDmQ8fPd1ZIFZ34YevvX7R3H+8NQkyW8ZUxhkIaVe+5ZpBr3nPdq64Z6Hr4o4/Bj9afM7XdnZeLTm9cHhd5GmIBqCBAhQ8y6qLWKfGoG1zxSv2pmuvnAB4alwvt8aQjcX0ZjBdHGOqlJ6Osl7LwE2vAJRKUOzuS8qTlqetPuQf1rxi6PvH1J4PlUonL7b+bAyKdZ4UuZNzFTrk9ZVduaZi07JTSNKZz/8Nu5jXRzq0a6Bk3PfgOMqxpr+ZZ6BwEAPwCkweGdh4/Uzdq123w5vs/pkRbLb5cSwg2whixf6vGnxuGux7+qIR9UyfPX3s6dGP75hHwCIwSAjmbVKRurzVKUxs3w9QM9Kotl4ZW3TWiEW8WXa5mr1tj0HEaXcvvwD0DU/sWb33RvNLe6oNr7v86jRdW48rykuUxNxnmWlIwMt5NXnX93/R7UKm8/mdn9/ckqTVurrSfqEegAwSi5OgXJYAPIKtgp6X3HN699iyUFkzXX9gdLGlcnVIz0Ku3fDus7baQrM1OljJfUjgAAAQISURBVA62LjDKGSLApkqAUx478YisDGzb4AzcfP+HQPtIIxEog1tlcLQa6riH3Rz+qKDyhrXL+7/S9uD+BI/AQY4AyS+bmYpYZFRVsv73ebu3kJT2yTciOYE0BK8GMGG3tyvzlqka6OlrNn+Rw6yJdcdJGnkGWknCQLQXLH7ipIWqOiq1TV+36Zjh/ftvDYhD6iGMqjEejhKCVa+6xtyoG+7mUEg1Hg2ce/PyKT8odWK+M4/ABEeArNoEec/NTclXyQV8P7azuNhBUqzT9l1ZVZc9qT6dqJeiZqBXbb6AYFW8KCkfmiglbNnhKgiCxwLDkp0nLXTSh7oF79CbNy6zYftOhZhSp9PVQhgR97meIGxwoetsDikC9T0WVPqPXrsMWbsZdztFf75HYEIhQFIl2GKIZGmciDmjcKYShdJDKdLemcYDL3LiwXhM1UAfsXrL1P+yYbE45rbDc4ZhtwXB6U+8ZKFTPLssUGev3Xx8uI9XBWGwoCVZ2FSoMlK0UqmxOkTBs8oH1p0zOXPX5bLm6PvxCEwEBKJ9GFUmnid21O5y5XVLy9y3ggg0eNCHrtl4YRgyUf4a3zFlhGZnT/dVbNnjJx4lIZlRaXPWbZ+Lp5/5DoiTmmPS6clDUfEqNx4yOOXM64eg+JlvHgGPQA4CEX1OpdSiDpbZlJvS7jGFN4koc/Dx2ldLyeqhazZeHIZUqWhDvS4egq6dgN2oBH/4xAmLrh7thavi8bEdD306sODtlWGgaqijisIG/1nMDlS+OWXG1DesOalVhHy05+vH8wiMJwQiHWdVAXa0Ka9jrdrs4VUAsqoZxxNMozbXhKbAtNWbzjfwEqvt4Zag2QWG1aH1vW1PD2PORVa/YMXWEysWXBSEOLMS4rAoUfhkYMF1kxB84dazprl2ZCjSvT/GI3BQIxBV9KnIpGjFaRpeyvtId+SjQPcVxQfjBUkVfZGXunn3puUWhkMGzjdi2GD3Igh+uOuEo9aMJaBUzXXsjbtn9w+jcueSQQmAdy3KNJbW5+fiEThQCEQcaFXhqrT7d82Uo8oVc1I48ZZoV3Jpk2dqfByotY2XcTtV5Rov6/Pz9Ah4BEpCIFLFk9qcBPy1RZb+pL4nQST9SSZA0gAq/fatBAS8gS4BRN+FR8Aj4BHoBQLeQPcCVd+nR8Aj4BEoAQFvoEsA0XfhEfAIeAR6gYA30L1A1ffpEfAIeARKQMAb6BJA9F14BDwCHoFeIOANdC9Q9X16BDwCHoESEPAGugQQfRceAY+AR6AXCHgD3QtUfZ8eAY+AR6AEBLyBLgFE34VHwCPgEegFAt5A9wJV36dHwCPgESgBAW+gSwDRd+ER8Ah4BHqBgDfQvUDV9+kR8Ah4BEpA4L8B8hlqGFfX5eAAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIzMHB4IiBoZWlnaHQ9IjMwcHgiIHZpZXdCb3g9IjAgMCAzOCA0OCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4NCiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQwICgzMzc2MikgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+DQogICAgPHRpdGxlPlNoYXBlIENvcHk8L3RpdGxlPg0KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPg0KICAgIDxkZWZzPjwvZGVmcz4NCiAgICA8ZyBpZD0idjIuMi4wIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4NCiAgICAgICAgPGcgaWQ9IummlumhtS3pu5jorqTmlYjmnpwtY29weS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNzAuMDAwMDAwLCAtMTkuMDAwMDAwKSIgZmlsbD0iIzQwOUVGRiI+DQogICAgICAgICAgICA8cGF0aCBkPSJNMjEyLjEzNTQ0MSw0NS4xNTc4MDc3IFogTTEwMy40MTY1MDIsNDYuMjE3NTUxMSBDMTAzLjQwNzAwOCw0Ny43OTQ1NjgyIDEwMi41ODc4NDEsNDguMTQ2MzQ3NCAxMDIuNTg3ODQxLDQ4LjE0NjM0NzQgQzEwMi41ODc4NDEsNDguMTQ2MzQ3NCA4OC40NTIwNDc4LDU2LjMxNDUwODcgODcuNTMyOTk1Niw1Ni44MjYyNzUxIEM4Ni42MjIzMzYsNTcuMjE3MTU2MSA4Ni4wMTM2NzAzLDU2LjgyNjI3NTEgODYuMDEzNjcwMyw1Ni44MjYyNzUxIEM4Ni4wMTM2NzAzLDU2LjgyNjI3NTEgNzEuMjIyNTcwNiw0OC4yNDc5NTcyIDcwLjY4MjY5NjIsNDcuODcwODQ0NCBDNzAuMTQyNjg0Myw0Ny40OTM3MzE2IDcwLjEzMDE2NDMsNDYuOTA2Mzc3NCA3MC4xMzAxNjQzLDQ2LjkwNjM3NzQgQzcwLjEzMDE2NDMsNDYuOTA2Mzc3NCA3MC4xNDUwMjMyLDI5LjkxOTkxNzQgNzAuMTMwMTY0MywyOS4xMzMzMzY0IEM3MC4xMTUzMDUzLDI4LjM0NjYxNzcgNzEuMDk2OTU3NiwyNy43NTU1NDYxIDcxLjA5Njk1NzYsMjcuNzU1NTQ2MSBMODUuODc1NTM3MywxOS4yMTM0Mzg3IEM4Ni43ODUzNzE0LDE4LjczMzIwMTYgODcuNjcxMTI4NiwxOS4yMTM0Mzg3IDg3LjY3MTEyODYsMTkuMjEzNDM4NyBDODcuNjcxMTI4NiwxOS4yMTM0Mzg3IDEwMC43MjY2MjMsMjYuODAyMDkzNyAxMDIuMTczNDQyLDI3LjYxNzcyNTcgQzEwMy41OTE1MDcsMjguMjkxOTU3NyAxMDMuNDE2NTAyLDI5LjY4NDM0MjQgMTAzLjQxNjUwMiwyOS42ODQzNDI0IEMxMDMuNDE2NTAyLDI5LjY4NDM0MjQgMTAzLjQyNTMwNyw0NC43NTE5MTkyIDEwMy40MTY1MDIsNDYuMjE3NTUxMSBMMTAzLjQxNjUwMiw0Ni4yMTc1NTExIFogTTk3LjUxNjAxMDUsMjkuMTY5MTMzOSBDOTQuNDkwMDE3MywyNy40Mjc0NDgzIDg3LjM2MTU4NDIsMjMuMjk3MTA2MyA4Ny4zNjE1ODQyLDIzLjI5NzEwNjMgQzg3LjM2MTU4NDIsMjMuMjk3MTA2MyA4Ni42NjYxMDM5LDIyLjkyMTIzMjYgODUuOTUxNzc0NywyMy4yOTcxMDYzIEw3NC4zNDg3NDA2LDI5Ljk4MjE1IEM3NC4zNDg3NDA2LDI5Ljk4MjE1IDczLjU3ODAwMjUsMzAuNDQ0OTAxNCA3My41ODk2OTcsMzEuMDYwNDgwNSBDNzMuNjAxMzkxNSwzMS42NzYwNTk3IDczLjU4OTY5Nyw0NC45Njk4NzA4IDczLjU4OTY5Nyw0NC45Njk4NzA4IEM3My41ODk2OTcsNDQuOTY5ODcwOCA3My41OTk0NjU0LDQ1LjQyOTU5MzIgNzQuMDIzNDk1MSw0NS43MjQ2NDcyIEM3NC40NDczODczLDQ2LjAxOTcwMTEgODYuMDYwMTg5OCw1Mi43MzMyNDUxIDg2LjA2MDE4OTgsNTIuNzMzMjQ1MSBDODYuMDYwMTg5OCw1Mi43MzMyNDUxIDg2LjUzODE1Miw1My4wMzkxNzU5IDg3LjI1MzAzMTUsNTIuNzMzMjQ1MSBDODcuOTc0NjUyNiw1Mi4zMzI3MjYyIDk5LjA3MzAzMzUsNDUuOTQwMjU4MiA5OS4wNzMwMzM1LDQ1Ljk0MDI1ODIgQzk5LjA3MzAzMzUsNDUuOTQwMjU4MiA5OS43MTYyMzI1LDQ1LjY2NDg5MjkgOTkuNzIzNjYxOSw0NC40MzA3MDU2IEM5OS43MjU3MjU3LDQ0LjA3NDc5NTkgOTkuNzI2NTUxMiw0Mi42OTMyODgxIDk5LjcyNjY4ODcsNDAuOTU3NTIyOSBMODYuNjYwMDUwMiw0OC44NzUyMzk0IEw4Ni42NjAwNTAyLDQ1Ljg0NjIyMSBDODYuNjYwMDUwMiw0NC42MDIxMjA1IDg3LjYyMzEyODksNDMuNzgwOTgxMSA4Ny42MjMxMjg5LDQzLjc4MDk4MTEgTDk5LjE4MDc2MDcsMzYuODE2NTc5MyBDOTkuNjE2ODk3OCwzNi4zNjExMjUxIDk5LjcwNjg3NjgsMzUuNjMxNTQ0NyA5OS43MjU0NTA1LDM1LjM1NTYyODcgQzk5LjcyNTAzNzgsMzQuMDkwNDYyNyA5OS43MjQ0ODc0LDMyLjk4NTI4NDEgOTkuNzI0MDc0NywzMi4yODUxNjc4IEw4Ni42NjAwNTAyLDQwLjIwMTIzMjEgTDg2LjY2MDA1MDIsMzcuMDM0NTMxIEM4Ni42NjAwNTAyLDM1Ljc5MDQzMDUgODcuNDg1NTQ2MiwzNS4yNDQ2NTY0IDg3LjQ4NTU0NjIsMzUuMjQ0NjU2NCBMOTcuNTE2MDEwNSwyOS4xNjkxMzM5IFoiIGlkPSJTaGFwZS1Db3B5Ij48L3BhdGg+DQogICAgICAgIDwvZz4NCiAgICA8L2c+DQo8L3N2Zz4="},function(e,t,n){"use strict";n(422)},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTMwIDE4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjx0aXRsZT5zZWFyY2gtYnktYWxnb2xpYTwvdGl0bGU+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzYuODY4JSIgeTE9IjEzNC45MzYlIiB4Mj0iMTI5LjQzMiUiIHkyPSItMjcuNyUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjMDBBRUZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzMzNjlFNyIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNTkuMzk5LjAyMmgxMy4yOTlhMi4zNzIgMi4zNzIgMCAwIDEgMi4zNzcgMi4zNjRWMTUuNjJhMi4zNzIgMi4zNzIgMCAwIDEtMi4zNzcgMi4zNjRINTkuMzk5YTIuMzcyIDIuMzcyIDAgMCAxLTIuMzc3LTIuMzY0VjIuMzgxQTIuMzY4IDIuMzY4IDAgMCAxIDU5LjM5OS4wMjJ6IiBmaWxsPSJ1cmwoI2EpIi8+PHBhdGggZD0iTTY2LjI1NyA0LjU2Yy0yLjgxNSAwLTUuMSAyLjI3Mi01LjEgNS4wNzggMCAyLjgwNiAyLjI4NCA1LjA3MiA1LjEgNS4wNzIgMi44MTUgMCA1LjEtMi4yNzIgNS4xLTUuMDc4IDAtMi44MDYtMi4yNzktNS4wNzItNS4xLTUuMDcyem0wIDguNjUyYy0xLjk4MyAwLTMuNTkzLTEuNjAyLTMuNTkzLTMuNTc0IDAtMS45NzIgMS42MS0zLjU3NCAzLjU5My0zLjU3NCAxLjk4MyAwIDMuNTkzIDEuNjAyIDMuNTkzIDMuNTc0YTMuNTgyIDMuNTgyIDAgMCAxLTMuNTkzIDMuNTc0em0wLTYuNDE4djIuNjY0YzAgLjA3Ni4wODIuMTMxLjE1My4wOTNsMi4zNzctMS4yMjZjLjA1NS0uMDI3LjA3MS0uMDkzLjA0NC0uMTQ3YTIuOTYgMi45NiAwIDAgMC0yLjQ2NS0xLjQ4N2MtLjA1NSAwLS4xMS4wNDQtLjExLjEwNGwuMDAxLS4wMDF6bS0zLjMzLTEuOTU2bC0uMzEyLS4zMTFhLjc4My43ODMgMCAwIDAtMS4xMDYgMGwtLjM3Mi4zN2EuNzczLjc3MyAwIDAgMCAwIDEuMTAxbC4zMDcuMzA1Yy4wNDkuMDQ5LjEyMS4wMzguMTY0LS4wMTEuMTgxLS4yNDUuMzc4LS40NzkuNTk3LS42OTcuMjI1LS4yMjMuNDU1LS40Mi43MDctLjU5OS4wNTUtLjAzMy4wNi0uMTA5LjAxNi0uMTU4aC0uMDAxem01LjAwMS0uODA2di0uNjE2YS43ODEuNzgxIDAgMCAwLS43ODMtLjc3OWgtMS44MjRhLjc4Ljc4IDAgMCAwLS43ODMuNzc5di42MzJjMCAuMDcxLjA2Ni4xMi4xMzcuMTA0YTUuNzM2IDUuNzM2IDAgMCAxIDEuNTg4LS4yMjNjLjUyIDAgMS4wMzUuMDcxIDEuNTM0LjIwN2EuMTA2LjEwNiAwIDAgMCAuMTMxLS4xMDR6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTEwMi4xNjIgMTMuNzYyYzAgMS40NTUtLjM3MiAyLjUxNy0xLjEyMyAzLjE5My0uNzUuNjc2LTEuODk1IDEuMDEzLTMuNDQgMS4wMTMtLjU2NCAwLTEuNzM2LS4xMDktMi42NzMtLjMxNmwuMzQ1LTEuNjg5Yy43ODMuMTYzIDEuODE5LjIwNyAyLjM2MS4yMDcuODYgMCAxLjQ3My0uMTc0IDEuODQtLjUyMy4zNjctLjM0OS41NDgtLjg2Ni41NDgtMS41NTN2LS4zNDlhNi4zNzQgNi4zNzQgMCAwIDEtLjgzOC4zMTYgNC4xNTEgNC4xNTEgMCAwIDEtMS4xOTQuMTU4IDQuNTE1IDQuNTE1IDAgMCAxLTEuNjE2LS4yNzggMy4zODUgMy4zODUgMCAwIDEtMS4yNTQtLjgxNyAzLjc0NCAzLjc0NCAwIDAgMS0uODExLTEuMzUxYy0uMTkyLS41MzktLjI5LTEuNTA0LS4yOS0yLjIxMiAwLS42NjUuMTA0LTEuNDk4LjMwNy0yLjA1NGEzLjkyNSAzLjkyNSAwIDAgMSAuOTA0LTEuNDMzIDQuMTI0IDQuMTI0IDAgMCAxIDEuNDQxLS45MjYgNS4zMSA1LjMxIDAgMCAxIDEuOTQ1LS4zNjVjLjY5NiAwIDEuMzM3LjA4NyAxLjk2MS4xOTFhMTUuODYgMTUuODYgMCAwIDEgMS41ODguMzMydjguNDU2aC0uMDAxem0tNS45NTQtNC4yMDZjMCAuODkzLjE5NyAxLjg4NS41OTIgMi4yOTkuMzk0LjQxNC45MDQuNjIxIDEuNTI4LjYyMS4zNCAwIC42NjMtLjA0OS45NjQtLjE0MmEyLjc1IDIuNzUgMCAwIDAgLjczNC0uMzMydi01LjI5YTguNTMxIDguNTMxIDAgMCAwLTEuNDEzLS4xOGMtLjc3OC0uMDIyLTEuMzY5LjI5NC0xLjc4Ni44MDEtLjQxMS41MDctLjYxOSAxLjM5NS0uNjE5IDIuMjIzem0xNi4xMiAwYzAgLjcxOS0uMTA0IDEuMjY0LS4zMTggMS44NThhNC4zODkgNC4zODkgMCAwIDEtLjkwNCAxLjUyYy0uMzg5LjQyLS44NTQuNzQ2LTEuNDAyLjk3NS0uNTQ4LjIyOS0xLjM5MS4zNi0xLjgxMy4zNi0uNDIyLS4wMDUtMS4yNi0uMTI1LTEuODAyLS4zNmE0LjA4OCA0LjA4OCAwIDAgMS0xLjM5Ny0uOTc1IDQuNDg2IDQuNDg2IDAgMCAxLS45MDktMS41MiA1LjAzNyA1LjAzNyAwIDAgMS0uMzI5LTEuODU4YzAtLjcxOS4wOTktMS40MTEuMzE4LTEuOTk5LjIxOS0uNTg4LjUyNi0xLjA5LjkyLTEuNTA5LjM5NC0uNDIuODY1LS43NDEgMS40MDItLjk3YTQuNTQ3IDQuNTQ3IDAgMCAxIDEuNzg2LS4zMzggNC42OSA0LjY5IDAgMCAxIDEuNzkxLjMzOGMuNTQ4LjIyOSAxLjAxOS41NSAxLjQwMi45Ny4zODkuNDIuNjkuOTIxLjkwOSAxLjUwOS4yMy41ODguMzQ1IDEuMjguMzQ1IDEuOTk5aC4wMDF6bS0yLjE5MS4wMDVjMC0uOTIxLS4yMDMtMS42ODktLjU5Ny0yLjIyMy0uMzk0LS41MzktLjk0OC0uODA2LTEuNjU0LS44MDYtLjcwNyAwLTEuMjYuMjY3LTEuNjU0LjgwNi0uMzk0LjUzOS0uNTg2IDEuMzAyLS41ODYgMi4yMjMgMCAuOTMyLjE5NyAxLjU1OC41OTIgMi4wOTguMzk0LjU0NS45NDguODEyIDEuNjU0LjgxMi43MDcgMCAxLjI2LS4yNzIgMS42NTQtLjgxMi4zOTQtLjU0NS41OTItMS4xNjYuNTkyLTIuMDk4aC0uMDAxem02Ljk2MiA0LjcwN2MtMy41MTEuMDE2LTMuNTExLTIuODIyLTMuNTExLTMuMjc0TDExMy41ODMuOTI2bDIuMTQyLS4zMzh2MTAuMDAzYzAgLjI1NiAwIDEuODggMS4zNzUgMS44ODV2MS43OTJoLS4wMDF6bTMuNzc0IDBoLTIuMTUzVjUuMDcybDIuMTUzLS4zMzh2OS41MzR6bS0xLjA3OS0xMC41NDJjLjcxOCAwIDEuMzA0LS41NzggMS4zMDQtMS4yOTEgMC0uNzE0LS41ODEtMS4yOTEtMS4zMDQtMS4yOTEtLjcyMyAwLTEuMzA0LjU3OC0xLjMwNCAxLjI5MSAwIC43MTQuNTg2IDEuMjkxIDEuMzA0IDEuMjkxem02LjQzMSAxLjAxM2MuNzA3IDAgMS4zMDQuMDg3IDEuNzg2LjI2Mi40ODIuMTc0Ljg3MS40MiAxLjE1Ni43My4yODUuMzExLjQ4OC43MzUuNjA4IDEuMTgyLjEyNi40NDcuMTg2LjkzNy4xODYgMS40NzZ2NS40ODFhMjUuMjQgMjUuMjQgMCAwIDEtMS40OTUuMjUxYy0uNjY4LjA5OC0xLjQxOS4xNDctMi4yNTEuMTQ3YTYuODI5IDYuODI5IDAgMCAxLTEuNTE3LS4xNTggMy4yMTMgMy4yMTMgMCAwIDEtMS4xNzgtLjUwNyAyLjQ1NSAyLjQ1NSAwIDAgMS0uNzYxLS45MDRjLS4xODEtLjM3LS4yNzQtLjg5My0uMjc0LTEuNDM4IDAtLjUyMy4xMDQtLjg1NS4zMDctMS4yMTUuMjA4LS4zNi40ODctLjY1NC44MzgtLjg4M2EzLjYwOSAzLjYwOSAwIDAgMSAxLjIyNy0uNDkgNy4wNzMgNy4wNzMgMCAwIDEgMi4yMDItLjEwM2MuMjYzLjAyNy41MzcuMDc2LjgzMy4xNDd2LS4zNDljMC0uMjQ1LS4wMjctLjQ3OS0uMDg4LS42OTdhMS40ODYgMS40ODYgMCAwIDAtLjMwNy0uNTgzYy0uMTQ4LS4xNjktLjM0LS4zLS41ODEtLjM5MmEyLjUzNiAyLjUzNiAwIDAgMC0uOTE1LS4xNjNjLS40OTMgMC0uOTQyLjA2LTEuMzUzLjEzMS0uNDExLjA3MS0uNzUuMTUzLTEuMDA4LjI0NWwtLjI1Ny0xLjc0OWMuMjY4LS4wOTMuNjY4LS4xODUgMS4xODMtLjI3OGE5LjMzNSA5LjMzNSAwIDAgMSAxLjY2LS4xNDJsLS4wMDEtLjAwMXptLjE4MSA3LjczMWMuNjU3IDAgMS4xNDUtLjAzOCAxLjQ4NC0uMTA0di0yLjE2OGE1LjA5NyA1LjA5NyAwIDAgMC0xLjk3OC0uMTA0Yy0uMjQxLjAzMy0uNDYuMDk4LS42NTIuMTkxYTEuMTY3IDEuMTY3IDAgMCAwLS40NjYuMzkyYy0uMTIxLjE2OS0uMTc1LjI2Ny0uMTc1LjUyMyAwIC41MDEuMTc1Ljc5LjQ5My45ODEuMzIzLjE5Ni43NS4yODkgMS4yOTMuMjg5aC4wMDF6TTg0LjEwOSA0Ljc5NGMuNzA3IDAgMS4zMDQuMDg3IDEuNzg2LjI2Mi40ODIuMTc0Ljg3MS40MiAxLjE1Ni43My4yOS4zMTYuNDg3LjczNS42MDggMS4xODIuMTI2LjQ0Ny4xODYuOTM3LjE4NiAxLjQ3NnY1LjQ4MWEyNS4yNCAyNS4yNCAwIDAgMS0xLjQ5NS4yNTFjLS42NjguMDk4LTEuNDE5LjE0Ny0yLjI1MS4xNDdhNi44MjkgNi44MjkgMCAwIDEtMS41MTctLjE1OCAzLjIxMyAzLjIxMyAwIDAgMS0xLjE3OC0uNTA3IDIuNDU1IDIuNDU1IDAgMCAxLS43NjEtLjkwNGMtLjE4MS0uMzctLjI3NC0uODkzLS4yNzQtMS40MzggMC0uNTIzLjEwNC0uODU1LjMwNy0xLjIxNS4yMDgtLjM2LjQ4Ny0uNjU0LjgzOC0uODgzYTMuNjA5IDMuNjA5IDAgMCAxIDEuMjI3LS40OSA3LjA3MyA3LjA3MyAwIDAgMSAyLjIwMi0uMTAzYy4yNTcuMDI3LjUzNy4wNzYuODMzLjE0N3YtLjM0OWMwLS4yNDUtLjAyNy0uNDc5LS4wODgtLjY5N2ExLjQ4NiAxLjQ4NiAwIDAgMC0uMzA3LS41ODNjLS4xNDgtLjE2OS0uMzQtLjMtLjU4MS0uMzkyYTIuNTM2IDIuNTM2IDAgMCAwLS45MTUtLjE2M2MtLjQ5MyAwLS45NDIuMDYtMS4zNTMuMTMxLS40MTEuMDcxLS43NS4xNTMtMS4wMDguMjQ1bC0uMjU3LTEuNzQ5Yy4yNjgtLjA5My42NjgtLjE4NSAxLjE4My0uMjc4YTguODkgOC44OSAwIDAgMSAxLjY2LS4xNDJsLS4wMDEtLjAwMXptLjE4NiA3LjczNmMuNjU3IDAgMS4xNDUtLjAzOCAxLjQ4NC0uMTA0di0yLjE2OGE1LjA5NyA1LjA5NyAwIDAgMC0xLjk3OC0uMTA0Yy0uMjQxLjAzMy0uNDYuMDk4LS42NTIuMTkxYTEuMTY3IDEuMTY3IDAgMCAwLS40NjYuMzkyYy0uMTIxLjE2OS0uMTc1LjI2Ny0uMTc1LjUyMyAwIC41MDEuMTc1Ljc5LjQ5My45ODEuMzE4LjE5MS43NS4yODkgMS4yOTMuMjg5aC4wMDF6bTguNjgyIDEuNzM4Yy0zLjUxMS4wMTYtMy41MTEtMi44MjItMy41MTEtMy4yNzRMODkuNDYxLjkyNmwyLjE0Mi0uMzM4djEwLjAwM2MwIC4yNTYgMCAxLjg4IDEuMzc1IDEuODg1djEuNzkyaC0uMDAxeiIgZmlsbD0iIzE4MjM1OSIvPjxwYXRoIGQ9Ik01LjAyNyAxMS4wMjVjMCAuNjk4LS4yNTIgMS4yNDYtLjc1NyAxLjY0NC0uNTA1LjM5Ny0xLjIwMS41OTYtMi4wODkuNTk2LS44ODggMC0xLjYxNS0uMTM4LTIuMTgxLS40MTR2LTEuMjE0Yy4zNTguMTY4LjczOS4zMDEgMS4xNDEuMzk3LjQwMy4wOTcuNzc4LjE0NSAxLjEyNS4xNDUuNTA4IDAgLjg4NC0uMDk3IDEuMTI1LS4yOWEuOTQ1Ljk0NSAwIDAgMCAuMzYzLS43NzkuOTc4Ljk3OCAwIDAgMC0uMzMzLS43NDdjLS4yMjItLjIwNC0uNjgtLjQ0Ni0xLjM3NS0uNzI1LS43MTYtLjI5LTEuMjIxLS42MjEtMS41MTUtLjk5NC0uMjk0LS4zNzItLjQ0LS44Mi0uNDQtMS4zNDMgMC0uNjU1LjIzMy0xLjE3MS42OTgtMS41NDcuNDY2LS4zNzYgMS4wOS0uNTY0IDEuODc1LS41NjQuNzUyIDAgMS41LjE2NSAyLjI0NS40OTRsLS40MDggMS4wNDdjLS42OTgtLjI5NC0xLjMyMS0uNDQtMS44NjktLjQ0LS40MTUgMC0uNzMuMDktLjk0NS4yNzFhLjg5Ljg5IDAgMCAwLS4zMjIuNzE3YzAgLjIwNC4wNDMuMzc5LjEyOS41MjQuMDg2LjE0NS4yMjcuMjgyLjQyNC40MTEuMTk3LjEyOS41NTEuMjk5IDEuMDYzLjUxLjU3Ny4yNC45OTkuNDY0IDEuMjY4LjY3MS4yNjkuMjA4LjQ2Ni40NDIuNTkxLjcwNC4xMjUuMjYxLjE4OC41NjkuMTg4LjkyNGwtLjAwMS4wMDJ6bTMuOTggMi4yNGMtLjkyNCAwLTEuNjQ2LS4yNjktMi4xNjctLjgwOC0uNTIxLS41MzktLjc4Mi0xLjI4MS0uNzgyLTIuMjI2IDAtLjk3LjI0Mi0xLjczMy43MjUtMi4yODguNDgzLS41NTUgMS4xNDgtLjgzMyAxLjk5My0uODMzLjc4NCAwIDEuNDA0LjIzOCAxLjg1OC43MTQuNDU1LjQ3Ni42ODIgMS4xMzIuNjgyIDEuOTY2di42ODJINy4zNTdjLjAxOC41NzcuMTc0IDEuMDIuNDY3IDEuMzI5LjI5NC4zMS43MDcuNDY1IDEuMjQxLjQ2NS4zNTEgMCAuNjc4LS4wMzMuOTgtLjA5OWE1LjEgNS4xIDAgMCAwIC45NzUtLjMzdjEuMDI2YTMuODY1IDMuODY1IDAgMCAxLS45MzUuMzEyIDUuNzIzIDUuNzIzIDAgMCAxLTEuMDguMDkxbC4wMDItLjAwMXptLS4yMzEtNS4xOTljLS40MDEgMC0uNzIyLjEyNy0uOTY0LjM4MXMtLjM4Ni42MjUtLjQzMiAxLjExMmgyLjY5NmMtLjAwNy0uNDkxLS4xMjUtLjg2Mi0uMzU0LTEuMTE1LS4yMjktLjI1Mi0uNTQ0LS4zNzktLjk0NS0uMzc5bC0uMDAxLjAwMXptNy42OTIgNS4wOTJsLS4yNTItLjgyN2gtLjA0M2MtLjI4Ni4zNjItLjU3NS42MDgtLjg2NS43MzktLjI5LjEzMS0uNjYyLjE5Ni0xLjExNy4xOTYtLjU4NCAwLTEuMDM5LS4xNTgtMS4zNjctLjQ3My0uMzI4LS4zMTUtLjQ5MS0uNzYxLS40OTEtMS4zMzcgMC0uNjEyLjIyNy0xLjA3NC42ODItMS4zODYuNDU1LS4zMTIgMS4xNDgtLjQ4MiAyLjA3OS0uNTFsMS4wMjYtLjAzMnYtLjMxN2MwLS4zOC0uMDg5LS42NjMtLjI2Ni0uODUxLS4xNzctLjE4OC0uNDUyLS4yODItLjgyNC0uMjgyLS4zMDQgMC0uNTk2LjA0NS0uODc2LjEzNGE2LjY4IDYuNjggMCAwIDAtLjgwNi4zMTdsLS40MDgtLjkwMmE0LjQxNCA0LjQxNCAwIDAgMSAxLjA1OC0uMzg0IDQuODU2IDQuODU2IDAgMCAxIDEuMDg1LS4xMzJjLjc1NiAwIDEuMzI2LjE2NSAxLjcxMS40OTQuMzg1LjMyOS41NzcuODQ3LjU3NyAxLjU1MnY0LjAwMmgtLjkwMmwtLjAwMS0uMDAxem0tMS44OC0uODU5Yy40NTggMCAuODI2LS4xMjggMS4xMDQtLjM4NC4yNzgtLjI1Ni40MTYtLjYxNS40MTYtMS4wNzd2LS41MTZsLS43NjMuMDMyYy0uNTk0LjAyMS0xLjAyNy4xMjEtMS4yOTcuMjk4cy0uNDA2LjQ0OC0uNDA2LjgxNGMwIC4yNjUuMDc5LjQ3LjIzNi42MTUuMTU4LjE0NS4zOTQuMjE4LjcwOS4yMThoLjAwMXptNy41NTctNS4xODljLjI1NCAwIC40NjQuMDE4LjYyOC4wNTRsLS4xMjQgMS4xNzZhMi4zODMgMi4zODMgMCAwIDAtLjU1OS0uMDY0Yy0uNTA1IDAtLjkxNC4xNjUtMS4yMjcuNDk0LS4zMTMuMzI5LS40Ny43NTctLjQ3IDEuMjg0djMuMTA1aC0xLjI2MlY3LjIxOGguOTg4bC4xNjcgMS4wNDdoLjA2NGMuMTk3LS4zNTQuNDU0LS42MzYuNzcxLS44NDNhMS44MyAxLjgzIDAgMCAxIDEuMDIzLS4zMTJoLjAwMXptNC4xMjUgNi4xNTVjLS44OTkgMC0xLjU4Mi0uMjYyLTIuMDQ5LS43ODctLjQ2Ny0uNTI1LS43MDEtMS4yNzctLjcwMS0yLjI1OSAwLS45OTkuMjQ0LTEuNzY3LjczMy0yLjMwNC40ODktLjUzNyAxLjE5NS0uODA2IDIuMTE5LS44MDYuNjI3IDAgMS4xOTEuMTE2IDEuNjkyLjM0OWwtLjM4MSAxLjAxNWMtLjUzNC0uMjA4LS45NzQtLjMxMi0xLjMyMS0uMzEyLTEuMDI4IDAtMS41NDIuNjgyLTEuNTQyIDIuMDQ2IDAgLjY2Ni4xMjggMS4xNjYuMzg0IDEuNTAxLjI1Ni4zMzUuNjMxLjUwMiAxLjEyNS41MDJhMy4yMyAzLjIzIDAgMCAwIDEuNTk1LS40MTl2MS4xMDFhMi41MyAyLjUzIDAgMCAxLS43MjIuMjg1IDQuMzU2IDQuMzU2IDAgMCAxLS45MzIuMDg2di4wMDJ6bTguMjc3LS4xMDdoLTEuMjY4VjkuNTA2YzAtLjQ1OC0uMDkyLS44LS4yNzctMS4wMjYtLjE4NC0uMjI2LS40NzctLjMzOC0uODc4LS4zMzgtLjUzIDAtLjkxOS4xNTgtMS4xNjguNDc1LS4yNDkuMzE3LS4zNzMuODQ4LS4zNzMgMS41OTN2Mi45NDloLTEuMjYyVjQuODAxaDEuMjYydjIuMTIyYzAgLjM0LS4wMjEuNzA0LS4wNjQgMS4wOWguMDgxYTEuNzYgMS43NiAwIDAgMSAuNzE3LS42NjZjLjMwNi0uMTU4LjY2My0uMjM2IDEuMDcyLS4yMzYgMS40MzkgMCAyLjE1OS43MjUgMi4xNTkgMi4xNzV2My44NzNsLS4wMDEtLjAwMXptNy42NDktNi4wNDhjLjc0MSAwIDEuMzE5LjI2OSAxLjczMi44MDYuNDE0LjUzNy42MiAxLjI5MS42MiAyLjI2MSAwIC45NzQtLjIwOSAxLjczMi0uNjI4IDIuMjc1LS40MTkuNTQyLTEuMDAxLjgxNC0xLjc0Ni44MTQtLjc1MiAwLTEuMzM2LS4yNy0xLjc1MS0uODExaC0uMDg2bC0uMjMxLjcwNGgtLjk0NVY0LjgwMWgxLjI2MnYxLjk4N2wtLjAyMS42NTUtLjAzMi41NTNoLjA1NGMuNDAxLS41OTEuOTkyLS44ODYgMS43NzItLjg4NnptLS4zMjggMS4wMzFjLS41MDggMC0uODc1LjE0OS0xLjA5OC40NDgtLjIyNC4yOTktLjMzOS43OTktLjM0NiAxLjUwMXYuMDg2YzAgLjcyMy4xMTUgMS4yNDcuMzQ0IDEuNTcxLjIyOS4zMjQuNjAzLjQ4NiAxLjEyMy40ODYuNDQ4IDAgLjc4Ny0uMTc3IDEuMDE4LS41MzIuMjMxLS4zNTQuMzQ2LS44NjcuMzQ2LTEuNTM2IDAtMS4zNS0uNDYyLTIuMDI1LTEuMzg2LTIuMDI1bC0uMDAxLjAwMXptMy4yNDQtLjkyNGgxLjM3NWwxLjIwOSAzLjM2OGMuMTgzLjQ4LjMwNC45MzEuMzY1IDEuMzU0aC4wNDNjLjAzMi0uMTk3LjA5MS0uNDM2LjE3Ny0uNzE3LjA4Ni0uMjgxLjU0MS0xLjYxNiAxLjM2NC00LjAwNGgxLjM2NGwtMi41NDEgNi43M2MtLjQ2MiAxLjIzNS0xLjIzMiAxLjg1My0yLjMxIDEuODUzLS4yNzkgMC0uNTUxLS4wMy0uODE2LS4wOTF2LS45OTljLjE5LjA0My40MDYuMDY0LjY1LjA2NC42MDkgMCAxLjAzNy0uMzUzIDEuMjg0LTEuMDU4bC4yMi0uNTU5LTIuMzg1LTUuOTQxaC4wMDF6IiBmaWxsPSIjMUQzNjU3Ii8+PC9nPjwvc3ZnPg=="},function(e,t,o){e.exports=l;var n=o(879),i=o(236),r=o(237),a=o(884),e=o(135),s=o(109);function l(){a.apply(this,arguments)}function u(){throw new s.AlgoliaSearchError("Not implemented in this environment.\nIf you feel this is a mistake, write to support@algolia.com")}e(l,a),l.prototype.deleteIndex=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(e),hostType:"write",callback:t})},l.prototype.moveIndex=function(e,t,n){t={operation:"move",destination:t};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:t,hostType:"write",callback:n})},l.prototype.copyIndex=function(e,t,n,i){t={operation:"copy",destination:t};if("function"==typeof n)i=n;else if(Array.isArray(n)&&0<n.length)t.scope=n;else if(void 0!==n)throw new Error("the scope given to `copyIndex` was not an array with settings, synonyms or rules");return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:t,hostType:"write",callback:i})},l.prototype.getLogs=function(e,t,n){var i=o(71),r={};return"object"==typeof e?(r=i(e),n=t):0===arguments.length||"function"==typeof e?n=e:1===arguments.length||"function"==typeof t?(n=t,r.offset=e):(r.offset=e,r.length=t),void 0===r.offset&&(r.offset=0),void 0===r.length&&(r.length=10),this._jsonRequest({method:"GET",url:"/1/logs?"+this._getSearchParams(r,""),hostType:"read",callback:n})},l.prototype.listIndexes=function(e,t){var n="";return void 0===e||"function"==typeof e?t=e:n="?page="+e,this._jsonRequest({method:"GET",url:"/1/indexes"+n,hostType:"read",callback:t})},l.prototype.initIndex=function(e){return new n(this,e)},l.prototype.initAnalytics=function(e){return o(888)(this.applicationID,this.apiKey,e)},l.prototype.listUserKeys=i(function(e){return this.listApiKeys(e)},r("client.listUserKeys()","client.listApiKeys()")),l.prototype.listApiKeys=function(e){return this._jsonRequest({method:"GET",url:"/1/keys",hostType:"read",callback:e})},l.prototype.getUserKeyACL=i(function(e,t){return this.getApiKey(e,t)},r("client.getUserKeyACL()","client.getApiKey()")),l.prototype.getApiKey=function(e,t){return this._jsonRequest({method:"GET",url:"/1/keys/"+e,hostType:"read",callback:t})},l.prototype.deleteUserKey=i(function(e,t){return this.deleteApiKey(e,t)},r("client.deleteUserKey()","client.deleteApiKey()")),l.prototype.deleteApiKey=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/keys/"+e,hostType:"write",callback:t})},l.prototype.restoreApiKey=function(e,t){return this._jsonRequest({method:"POST",url:"/1/keys/"+e+"/restore",hostType:"write",callback:t})},l.prototype.addUserKey=i(function(e,t,n){return this.addApiKey(e,t,n)},r("client.addUserKey()","client.addApiKey()")),l.prototype.addApiKey=function(e,t,n){if(!o(44)(e))throw new Error("Usage: client.addApiKey(arrayOfAcls[, params, callback])");1!==arguments.length&&"function"!=typeof t||(n=t,t=null);var i={acl:e};return t&&(i.validity=t.validity,i.maxQueriesPerIPPerHour=t.maxQueriesPerIPPerHour,i.maxHitsPerQuery=t.maxHitsPerQuery,i.indexes=t.indexes,i.description=t.description,t.queryParameters&&(i.queryParameters=this._getSearchParams(t.queryParameters,"")),i.referers=t.referers),this._jsonRequest({method:"POST",url:"/1/keys",body:i,hostType:"write",callback:n})},l.prototype.addUserKeyWithValidity=i(function(e,t,n){return this.addApiKey(e,t,n)},r("client.addUserKeyWithValidity()","client.addApiKey()")),l.prototype.updateUserKey=i(function(e,t,n,i){return this.updateApiKey(e,t,n,i)},r("client.updateUserKey()","client.updateApiKey()")),l.prototype.updateApiKey=function(e,t,n,i){if(!o(44)(t))throw new Error("Usage: client.updateApiKey(key, arrayOfAcls[, params, callback])");2!==arguments.length&&"function"!=typeof n||(i=n,n=null);var r={acl:t};return n&&(r.validity=n.validity,r.maxQueriesPerIPPerHour=n.maxQueriesPerIPPerHour,r.maxHitsPerQuery=n.maxHitsPerQuery,r.indexes=n.indexes,r.description=n.description,n.queryParameters&&(r.queryParameters=this._getSearchParams(n.queryParameters,"")),r.referers=n.referers),this._jsonRequest({method:"PUT",url:"/1/keys/"+e,body:r,hostType:"write",callback:i})},l.prototype.startQueriesBatch=i(function(){this._batch=[]},r("client.startQueriesBatch()","client.search()")),l.prototype.addQueryInBatch=i(function(e,t,n){this._batch.push({indexName:e,query:t,params:n})},r("client.addQueryInBatch()","client.search()")),l.prototype.sendQueriesBatch=i(function(e){return this.search(this._batch,e)},r("client.sendQueriesBatch()","client.search()")),l.prototype.batch=function(e,t){if(!o(44)(e))throw new Error("Usage: client.batch(operations[, callback])");return this._jsonRequest({method:"POST",url:"/1/indexes/*/batch",body:{requests:e},hostType:"write",callback:t})},l.prototype.assignUserID=function(e,t){if(!e.userID||!e.cluster)throw new s.AlgoliaSearchError("You have to provide both a userID and cluster",e);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping",hostType:"write",body:{cluster:e.cluster},callback:t,headers:{"x-algolia-user-id":e.userID}})},l.prototype.assignUserIDs=function(e,t){if(!e.userIDs||!e.cluster)throw new s.AlgoliaSearchError("You have to provide both an array of userIDs and cluster",e);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/batch",hostType:"write",body:{cluster:e.cluster,users:e.userIDs},callback:t})},l.prototype.getTopUserID=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/top",hostType:"read",callback:e})},l.prototype.getUserID=function(e,t){if(!e.userID)throw new s.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/"+e.userID,hostType:"read",callback:t})},l.prototype.listClusters=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters",hostType:"read",callback:e})},l.prototype.listUserIDs=function(e,t){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping",body:e,hostType:"read",callback:t})},l.prototype.removeUserID=function(e,t){if(!e.userID)throw new s.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"DELETE",url:"/1/clusters/mapping",hostType:"write",callback:t,headers:{"x-algolia-user-id":e.userID}})},l.prototype.searchUserIDs=function(e,t){return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/search",body:e,hostType:"read",callback:t})},l.prototype.setPersonalizationStrategy=function(e,t){return this._jsonRequest({method:"POST",url:"/1/recommendation/personalization/strategy",body:e,hostType:"write",callback:t})},l.prototype.getPersonalizationStrategy=function(e){return this._jsonRequest({method:"GET",url:"/1/recommendation/personalization/strategy",hostType:"read",callback:e})},l.prototype.destroy=u,l.prototype.enableRateLimitForward=u,l.prototype.disableRateLimitForward=u,l.prototype.useSecuredAPIKey=u,l.prototype.disableSecuredAPIKey=u,l.prototype.generateSecuredApiKey=u,l.prototype.getSecuredApiKeyRemainingValidity=u},function(e,t,u){var n=u(135),i=u(423),r=u(236),o=u(237),c=u(428),h=u(109),a=r(function(){},o("forwardToSlaves","forwardToReplicas"));function s(){i.apply(this,arguments)}function l(o,a,t){return function n(e,t){var i={page:e||0,hitsPerPage:a||100},r=t||[];return o(i).then(function(e){var t=e.hits,e=e.nbHits,t=t.map(function(e){return delete e._highlightResult,e}),t=r.concat(t);return t.length<e?n(i.page+1,t):t})}().then(function(e){return"function"!=typeof t?e:void t(e)})}n(e.exports=s,i),s.prototype.addObject=function(e,t,n){return 1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0),this.as._jsonRequest({method:void 0!==t?"PUT":"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+(void 0!==t?"/"+encodeURIComponent(t):""),body:e,hostType:"write",callback:n})},s.prototype.addObjects=function(e,t){if(!u(44)(e))throw new Error("Usage: index.addObjects(arrayOfObjects[, callback])");for(var n={requests:[]},i=0;i<e.length;++i){var r={action:"addObject",body:e[i]};n.requests.push(r)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:n,hostType:"write",callback:t})},s.prototype.partialUpdateObject=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0);var i="/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e.objectID)+"/partial";return!1===t&&(i+="?createIfNotExists=false"),this.as._jsonRequest({method:"POST",url:i,body:e,hostType:"write",callback:n})},s.prototype.partialUpdateObjects=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t=!0);if(!u(44)(e))throw new Error("Usage: index.partialUpdateObjects(arrayOfObjects[, callback])");for(var i={requests:[]},r=0;r<e.length;++r){var o={action:!0===t?"partialUpdateObject":"partialUpdateObjectNoCreate",objectID:e[r].objectID,body:e[r]};i.requests.push(o)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:i,hostType:"write",callback:n})},s.prototype.saveObject=function(e,t){return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e.objectID),body:e,hostType:"write",callback:t})},s.prototype.saveObjects=function(e,t){if(!u(44)(e))throw new Error("Usage: index.saveObjects(arrayOfObjects[, callback])");for(var n={requests:[]},i=0;i<e.length;++i){var r={action:"updateObject",objectID:e[i].objectID,body:e[i]};n.requests.push(r)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:n,hostType:"write",callback:t})},s.prototype.deleteObject=function(e,t){if("function"==typeof e||"string"!=typeof e&&"number"!=typeof e){var n=new h.AlgoliaSearchError(e&&"function"!=typeof e?"ObjectID must be a string":"Cannot delete an object without an objectID");return"function"==typeof(t=e)?t(n):this.as._promise.reject(n)}return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e),hostType:"write",callback:t})},s.prototype.deleteObjects=function(e,t){var n=u(44),i=u(111);if(!n(e))throw new Error("Usage: index.deleteObjects(arrayOfObjectIDs[, callback])");e={requests:i(e,function(e){return{action:"deleteObject",objectID:e,body:{objectID:e}}})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:e,hostType:"write",callback:t})},s.prototype.deleteByQuery=r(function(e,t,n){var i=u(71),r=u(111),o=this,a=o.as;(t=1===arguments.length||"function"==typeof t?(n=t,{}):i(t)).attributesToRetrieve="objectID",t.hitsPerPage=1e3,t.distinct=!1,this.clearCache();i=this.search(e,t).then(function(e){if(0===e.nbHits)return e;e=r(e.hits,function(e){return e.objectID});return o.deleteObjects(e).then(s).then(l)});function s(e){return o.waitTask(e.taskID)}function l(){return o.deleteByQuery(e,t)}if(!n)return i;i.then(function(){c(function(){n(null)},a._setTimeout||setTimeout)},function(e){c(function(){n(e)},a._setTimeout||setTimeout)})},o("index.deleteByQuery()","index.deleteBy()")),s.prototype.deleteBy=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/deleteByQuery",body:{params:this.as._getSearchParams(e,"")},hostType:"write",callback:t})},s.prototype.browseAll=function(e,t){"object"==typeof e&&(t=e,e=void 0);var n=u(425),i=new(u(882)),r=this.as,o=this,a=r._getSearchParams(n({},t||{},{query:e}),"");function s(e){i._stopped||(e=void 0!==e?{cursor:e}:{params:a},r._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(o.indexName)+"/browse",hostType:"read",body:e,callback:l}))}function l(e,t){i._stopped||(e?i._error(e):(i._result(t),void 0!==t.cursor?s(t.cursor):i._end()))}return s(),i},s.prototype.ttAdapter=r(function(r){var o=this;return function(e,t,n){var i="function"==typeof n?n:t;o.search(e,r,function(e,t){i(e||t.hits)})}},"ttAdapter is not necessary anymore and will be removed in the next version,\nhave a look at autocomplete.js (https://github.com/algolia/autocomplete.js)"),s.prototype.waitTask=function(e,t){var i=100,r=5e3,o=0,a=this,s=a.as,n=function n(){return s._jsonRequest({method:"GET",hostType:"read",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/task/"+e}).then(function(e){var t=i*++o*o;return r<t&&(t=r),"published"!==e.status?s._promise.delay(t).then(n):e})}();if(!t)return n;n.then(function(e){c(function(){t(null,e)},s._setTimeout||setTimeout)},function(e){c(function(){t(e)},s._setTimeout||setTimeout)})},s.prototype.clearIndex=function(e){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/clear",hostType:"write",callback:e})},s.prototype.getSettings=function(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={}),e=e||{};var n=encodeURIComponent(this.indexName);return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+n+"/settings?getVersion=2"+(e.advanced?"&advanced="+e.advanced:""),hostType:"read",callback:t})},s.prototype.searchSynonyms=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/search",body:e,hostType:"read",callback:t})},s.prototype.exportSynonyms=function(e,t){return l(this.searchSynonyms.bind(this),e,t)},s.prototype.saveSynonym=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&a();t=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+t,body:e,hostType:"write",callback:n})},s.prototype.getSynonym=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e),hostType:"read",callback:t})},s.prototype.deleteSynonym=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&a();t=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e)+"?forwardToReplicas="+t,hostType:"write",callback:n})},s.prototype.clearSynonyms=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),void 0!==e.forwardToSlaves&&a();e=e.forwardToSlaves||e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/clear?forwardToReplicas="+e,hostType:"write",callback:t})},s.prototype.batchSynonyms=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&a();var i=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/batch?forwardToReplicas="+i+"&replaceExistingSynonyms="+(t.replaceExistingSynonyms?"true":"false"),hostType:"write",body:e,callback:n})},s.prototype.searchRules=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/search",body:e,hostType:"read",callback:t})},s.prototype.exportRules=function(e,t){return l(this.searchRules.bind(this),e,t)},s.prototype.saveRule=function(e,t,n){if("function"==typeof t?(n=t,t={}):void 0===t&&(t={}),!e.objectID)throw new h.AlgoliaSearchError("Missing or empty objectID field for rule");t=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+t,body:e,hostType:"write",callback:n})},s.prototype.getRule=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e),hostType:"read",callback:t})},s.prototype.deleteRule=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={});t=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e)+"?forwardToReplicas="+t,hostType:"write",callback:n})},s.prototype.clearRules=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={});e=!0===e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/clear?forwardToReplicas="+e,hostType:"write",callback:t})},s.prototype.batchRules=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={});var i=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/batch?forwardToReplicas="+i+"&clearExistingRules="+(!0===t.clearExistingRules?"true":"false"),hostType:"write",body:e,callback:n})},s.prototype.exists=function(t){var e=this.getSettings().then(function(){return!0}).catch(function(e){if(e instanceof h.AlgoliaSearchError&&404===e.statusCode)return!1;throw e});if("function"!=typeof t)return e;e.then(function(e){t(null,e)}).catch(function(e){t(e)})},s.prototype.findObject=function(r,e,t){var o=void 0===(e=void 0===e?{}:e).paginate||e.paginate,n=void 0!==e.query?e.query:"",i=this,a=0,s=function(){return e.page=a,i.search(n,e).then(function(e){for(var t=e.hits,n=0;n<t.length;n++){var i=t[n];if(r(i))return{object:i,position:n,page:a}}if(a+=1,!o||a>=e.nbPages)throw new h.ObjectNotFound("Object not found");return s()})},l=s(a);if(void 0===t)return l;l.then(function(e){t(null,e)}).catch(function(e){t(e)})},s.prototype.getObjectPosition=function(e,t){for(var n=e.hits,i=0;i<n.length;i++)if(n[i].objectID===t)return i;return-1},s.prototype.setSettings=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t={}),void 0!==t.forwardToSlaves&&a();var i=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/settings?forwardToReplicas="+i,hostType:"write",body:e,callback:n})},s.prototype.listUserKeys=r(function(e){return this.listApiKeys(e)},o("index.listUserKeys()","client.listApiKeys()")),s.prototype.listApiKeys=r(function(e){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",hostType:"read",callback:e})},o("index.listApiKeys()","client.listApiKeys()")),s.prototype.getUserKeyACL=r(function(e,t){return this.getApiKey(e,t)},o("index.getUserKeyACL()","client.getApiKey()")),s.prototype.getApiKey=r(function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+e,hostType:"read",callback:t})},o("index.getApiKey()","client.getApiKey()")),s.prototype.deleteUserKey=r(function(e,t){return this.deleteApiKey(e,t)},o("index.deleteUserKey()","client.deleteApiKey()")),s.prototype.deleteApiKey=r(function(e,t){return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+e,hostType:"write",callback:t})},o("index.deleteApiKey()","client.deleteApiKey()")),s.prototype.addUserKey=r(function(e,t,n){return this.addApiKey(e,t,n)},o("index.addUserKey()","client.addApiKey()")),s.prototype.addApiKey=r(function(e,t,n){if(!u(44)(e))throw new Error("Usage: index.addApiKey(arrayOfAcls[, params, callback])");1!==arguments.length&&"function"!=typeof t||(n=t,t=null);var i={acl:e};return t&&(i.validity=t.validity,i.maxQueriesPerIPPerHour=t.maxQueriesPerIPPerHour,i.maxHitsPerQuery=t.maxHitsPerQuery,i.description=t.description,t.queryParameters&&(i.queryParameters=this.as._getSearchParams(t.queryParameters,"")),i.referers=t.referers),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",body:i,hostType:"write",callback:n})},o("index.addApiKey()","client.addApiKey()")),s.prototype.addUserKeyWithValidity=r(function(e,t,n){return this.addApiKey(e,t,n)},o("index.addUserKeyWithValidity()","client.addApiKey()")),s.prototype.updateUserKey=r(function(e,t,n,i){return this.updateApiKey(e,t,n,i)},o("index.updateUserKey()","client.updateApiKey()")),s.prototype.updateApiKey=r(function(e,t,n,i){if(!u(44)(t))throw new Error("Usage: index.updateApiKey(key, arrayOfAcls[, params, callback])");2!==arguments.length&&"function"!=typeof n||(i=n,n=null);var r={acl:t};return n&&(r.validity=n.validity,r.maxQueriesPerIPPerHour=n.maxQueriesPerIPPerHour,r.maxHitsPerQuery=n.maxHitsPerQuery,r.description=n.description,n.queryParameters&&(r.queryParameters=this.as._getSearchParams(n.queryParameters,"")),r.referers=n.referers),this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+e,body:r,hostType:"write",callback:i})},o("index.updateApiKey()","client.updateApiKey()"))},function(e,t,n){"use strict";var i=Array.prototype.slice,r=n(427),o=Object.keys,a=o?function(e){return o(e)}:n(881),s=Object.keys;a.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return r(e)?s(i.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},function(e,t,n){"use strict";var d,p,f,m,g,v,y,i,x,r;Object.keys||(d=Object.prototype.hasOwnProperty,p=Object.prototype.toString,f=n(427),r=Object.prototype.propertyIsEnumerable,m=!r.call({toString:null},"toString"),g=r.call(function(){},"prototype"),v=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],y=function(e){var t=e.constructor;return t&&t.prototype===e},i={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},x=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!i["$"+e]&&d.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{y(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===p.call(e),i=f(e),r=t&&"[object String]"===p.call(e),o=[];if(!t&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var a=g&&n;if(r&&0<e.length&&!d.call(e,0))for(var s=0;s<e.length;++s)o.push(String(s));if(i&&0<e.length)for(var l=0;l<e.length;++l)o.push(String(l));else for(var u in e)a&&"prototype"===u||!d.call(e,u)||o.push(String(u));if(m)for(var c=function(e){if("undefined"==typeof window||!x)return y(e);try{return y(e)}catch(e){return!1}}(e),h=0;h<v.length;++h)c&&"constructor"===v[h]||!d.call(e,v[h])||o.push(v[h]);return o}),e.exports=r},function(e,t,n){"use strict";function i(){}e.exports=i,n(135)(i,n(883).EventEmitter),i.prototype.stop=function(){this._stopped=!0,this._clean()},i.prototype._end=function(){this.emit("end"),this._clean()},i.prototype._error=function(e){this.emit("error",e),this._clean()},i.prototype._result=function(e){this.emit("result",e)},i.prototype._clean=function(){this.removeAllListeners("stop"),this.removeAllListeners("end"),this.removeAllListeners("error"),this.removeAllListeners("result")}},function(e,t,n){"use strict";var i="object"==typeof Reflect?Reflect:null,l=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};var r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(s,l){return new Promise(function(e,t){function n(e){s.removeListener(l,i),t(e)}function i(){"function"==typeof s.removeListener&&s.removeListener("error",n),e([].slice.call(arguments))}var r,o,a;g(s,l,i,{once:!0}),"error"!==l&&(o=n,a={once:!0},"function"==typeof(r=s).on&&g(r,"error",o,a))})},(a.EventEmitter=a).prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function h(e,t,n,i){var r,o;return u(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener||n),r=e._events),o=r[t]),void 0===o?(o=r[t]=n,++e._eventsCount):("function"==typeof o?o=r[t]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),0<(n=c(e))&&o.length>n&&!o.warned&&(o.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=e,n.type=t,n.count=o.length,n=n,console&&console.warn&&console.warn(n))),e}function d(e,t,n){e={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e);return t.listener=n,e.wrapFn=t}function p(e,t,n){e=e._events;if(void 0===e)return[];t=e[t];return void 0===t?[]:"function"==typeof t?n?[t.listener||t]:[t]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):m(t,t.length)}function f(e){var t=this._events;if(void 0!==t){e=t[e];if("function"==typeof e)return 1;if(void 0!==e)return e.length}return 0}function m(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function g(n,i,r,o){if("function"==typeof n.on)o.once?n.once(i,r):n.on(i,r);else{if("function"!=typeof n.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof n);n.addEventListener(i,function e(t){o.once&&n.removeEventListener(i,e),r(t)})}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i,r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){if((i=0<t.length?t[0]:i)instanceof Error)throw i;r=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw r.context=i,r}e=o[e];if(void 0===e)return!1;if("function"==typeof e)l(e,this,t);else for(var a=e.length,s=m(e,a),n=0;n<a;++n)l(s[n],this,t);return!0},a.prototype.addListener=function(e,t){return h(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return h(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,i,r,o,a;if(u(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;0<=o;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n=this._events;if(void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){for(var i,r=Object.keys(n),o=0;o<r.length;++o)"removeListener"!==(i=r[o])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;0<=o;o--)this.removeListener(e,t[o]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},a.prototype.listenerCount=f,a.prototype.eventNames=function(){return 0<this._eventsCount?r(this._events):[]}},function(a,e,S){!function(e){a.exports=o;var _=S(109),n=S(428),t=S(423),i=S(885),r=e.env.RESET_APP_DATA_TIMER&&parseInt(e.env.RESET_APP_DATA_TIMER,10)||12e4;function o(t,e,n){var i=S(169)("algoliasearch"),r=S(71),o=S(44),a=S(111),s="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==n._allowEmptyCredentials&&!t)throw new _.AlgoliaSearchError("Please provide an application ID. "+s);if(!0!==n._allowEmptyCredentials&&!e)throw new _.AlgoliaSearchError("Please provide an API key. "+s);this.applicationID=t,this.apiKey=e,this.hosts={read:[],write:[]},this._timeouts=(n=n||{}).timeouts||{connect:1e3,read:2e3,write:3e4},n.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=n.timeout);e=n.protocol||"https:";if(/:$/.test(e)||(e+=":"),"http:"!==e&&"https:"!==e)throw new _.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+n.protocol+"`)");this._checkAppIdData(),n.hosts?o(n.hosts)?(this.hosts.read=r(n.hosts),this.hosts.write=r(n.hosts)):(this.hosts.read=r(n.hosts.read),this.hosts.write=r(n.hosts.write)):(o=a(this._shuffleResult,function(e){return t+"-"+e+".algolianet.com"}),r=(!1===n.dsn?"":"-dsn")+".algolia.net",this.hosts.read=[this.applicationID+r].concat(o),this.hosts.write=[this.applicationID+".algolia.net"].concat(o)),this.hosts.read=a(this.hosts.read,l(e)),this.hosts.write=a(this.hosts.write,l(e)),this.extraHeaders={},this.cache=n._cache||{},this._ua=n._ua,this._useCache=!(void 0!==n._useCache&&!n._cache)||n._useCache,this._useRequestCache=this._useCache&&n._useRequestCache,this._useFallback=void 0===n.useFallback||n.useFallback,this._setTimeout=n._setTimeout,i("init done, %j",this)}function l(t){return function(e){return t+"//"+e.toLowerCase()}}function w(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;e=JSON.stringify(e);return Array.prototype.toJSON=t,e}function C(e){var t,n,i={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n="x-algolia-api-key"===t||"x-algolia-application-id"===t?"**hidden for security purposes**":e[t],i[t]=n);return i}o.prototype.initIndex=function(e){return new t(this,e)},o.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},o.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},o.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},o.prototype.addAlgoliaAgent=function(e){e="; "+e;-1===this._ua.indexOf(e)&&(this._ua+=e)},o.prototype._jsonRequest=function(l){this._checkAppIdData();var u,c,h=S(169)("algoliasearch:"+l.url),d=l.additionalUA||"",p=l.cache,f=this,m=0,g=!1,v=f._useFallback&&f._request.fallback&&l.fallback,y=500<this.apiKey.length&&void 0!==l.body&&(void 0!==l.body.params||void 0!==l.body.requests)?(l.body.apiKey=this.apiKey,this._computeRequestHeaders({additionalUA:d,withApiKey:!1,headers:l.headers})):this._computeRequestHeaders({additionalUA:d,headers:l.headers});void 0!==l.body&&(u=w(l.body)),h("request start");var x=[];function b(e,t,n){return f._useCache&&e&&t&&void 0!==t[n]}function e(e,t){if(b(f._useRequestCache,p,c)&&e.catch(function(){delete p[c]}),"function"!=typeof l.callback)return e.then(t);e.then(function(e){n(function(){l.callback(null,t(e))},f._setTimeout||setTimeout)},function(e){n(function(){l.callback(e)},f._setTimeout||setTimeout)})}if(f._useCache&&f._useRequestCache&&(c=l.url),f._useCache&&f._useRequestCache&&u&&(c+="_body_"+u),b(f._useRequestCache,p,c)){h("serving request from cache");var t=p[c];return e("function"!=typeof t.then?f._promise.resolve({responseText:t}):t,function(e){return JSON.parse(e.responseText)})}t=function n(i,r){f._checkAppIdData();var o=new Date;if(f._useCache&&!f._useRequestCache&&(c=l.url),f._useCache&&!f._useRequestCache&&u&&(c+="_body_"+r.body),b(!f._useRequestCache,p,c)){h("serving response from cache");var e=p[c];return f._promise.resolve({body:JSON.parse(e),responseText:e})}if(m>=f.hosts[l.hostType].length)return!v||g?(h("could not get any response"),f._promise.reject(new _.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+f.applicationID,{debugData:x}))):(h("switching to fallback"),m=0,r.method=l.fallback.method,r.url=l.fallback.url,r.jsonBody=l.fallback.body,r.jsonBody&&(r.body=w(r.jsonBody)),y=f._computeRequestHeaders({additionalUA:d,headers:l.headers}),r.timeouts=f._getTimeoutsForRequest(l.hostType),f._setHostIndexByType(0,l.hostType),g=!0,n(f._request.fallback,r));var a=f._getHostByType(l.hostType),t=a+r.url,e={body:r.body,jsonBody:r.jsonBody,method:r.method,headers:y,timeouts:r.timeouts,debug:h,forceAuthHeaders:r.forceAuthHeaders};return h("method: %s, url: %s, headers: %j, timeouts: %d",e.method,t,e.headers,e.timeouts),i===f._request.fallback&&h("using fallback"),i.call(f,t,e).then(function(e){var t=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;h("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,t,e.headers);var n=2===Math.floor(t/100),i=new Date;return x.push({currentHost:a,headers:C(y),content:u||null,contentLength:void 0!==u?u.length:null,method:r.method,timeouts:r.timeouts,url:r.url,startTime:o,endTime:i,duration:i-o,statusCode:t}),n?(f._useCache&&!f._useRequestCache&&p&&(p[c]=e.responseText),{responseText:e.responseText,body:e.body}):4!==Math.floor(t/100)?(m+=1,s()):(h("unrecoverable error"),t=new _.AlgoliaSearchError(e.body&&e.body.message,{debugData:x,statusCode:t}),f._promise.reject(t))},function(e){h("error: %s, stack: %s",e.message,e.stack);var t=new Date;return x.push({currentHost:a,headers:C(y),content:u||null,contentLength:void 0!==u?u.length:null,method:r.method,timeouts:r.timeouts,url:r.url,startTime:o,endTime:t,duration:t-o}),e instanceof _.AlgoliaSearchError||(e=new _.Unknown(e&&e.message,e)),m+=1,e instanceof _.Unknown||e instanceof _.UnparsableJSON||m>=f.hosts[l.hostType].length&&(g||!v)?(e.debugData=x,f._promise.reject(e)):e instanceof _.RequestTimeout?(h("retrying request with higher timeout"),f._incrementHostIndex(l.hostType),f._incrementTimeoutMultipler(),r.timeouts=f._getTimeoutsForRequest(l.hostType),n(i,r)):s()});function s(){return h("retrying request"),f._incrementHostIndex(l.hostType),n(i,r)}}(f._request,{url:l.url,method:l.method,body:u,jsonBody:l.body,timeouts:f._getTimeoutsForRequest(l.hostType),forceAuthHeaders:l.forceAuthHeaders});return f._useCache&&f._useRequestCache&&p&&(p[c]=t),e(t,function(e){return e.body})},o.prototype._getSearchParams=function(e,t){if(null==e)return t;for(var n in e)null!==n&&void 0!==e[n]&&e.hasOwnProperty(n)&&(t+=""===t?"":"&",t+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[n])?w(e[n]):e[n]));return t},o.prototype._computeRequestHeaders=function(e){var t=S(110),n={"x-algolia-agent":e.additionalUA?this._ua+"; "+e.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==e.withApiKey&&(n["x-algolia-api-key"]=this.apiKey),this.userToken&&(n["x-algolia-usertoken"]=this.userToken),this.securityTags&&(n["x-algolia-tagfilters"]=this.securityTags),t(this.extraHeaders,function(e,t){n[t]=e}),e.headers&&t(e.headers,function(e,t){n[t]=e}),n},o.prototype.search=function(e,t,n){var i=S(44),r=S(111);if(!i(e))throw new Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof t?(n=t,t={}):void 0===t&&(t={});var o=this,e={requests:r(e,function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:o._getSearchParams(e.params,t)}})},r=r(e.requests,function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)}).join("&");return void 0!==t.strategy&&(e.strategy=t.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:e,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:r}},callback:n})},o.prototype.searchForFacetValues=function(e){var t=S(44),n=S(111),o="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!t(e))throw new Error(o);var a=this;return a._promise.all(n(e,function(e){if(!e||void 0===e.indexName||void 0===e.params.facetName||void 0===e.params.facetQuery)throw new Error(o);var t=S(71),n=S(426),i=e.indexName,r=e.params,e=r.facetName,r=n(t(r),function(e){return"facetName"===e}),r=a._getSearchParams(r,"");return a._jsonRequest({cache:a.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(i)+"/facets/"+encodeURIComponent(e)+"/query",hostType:"read",body:{params:r}})}))},o.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],n=0;n<e.length;++n)if("[object Array]"===Object.prototype.toString.call(e[n])){for(var i=[],r=0;r<e[n].length;++r)i.push(e[n][r]);t.push("("+i.join(",")+")")}else t.push(e[n]);e=t.join(",")}this.securityTags=e},o.prototype.setUserToken=function(e){this.userToken=e},o.prototype.clearCache=function(){this.cache={}},o.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},o.prototype.setTimeouts=function(e){this._timeouts=e},o.prototype.getTimeouts=function(){return this._timeouts},o.prototype._getAppIdData=function(){var e=i.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},o.prototype._setAppIdData=function(e){return e.lastChange=(new Date).getTime(),this._cacheAppIdData(e),i.set(this.applicationID,e)},o.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=(new Date).getTime();return null===e||t-e.lastChange>r?this._resetInitialAppIdData(e):e},o.prototype._resetInitialAppIdData=function(e){e=e||{};return e.hostIndexes={read:0,write:0},e.timeoutMultiplier=1,e.shuffleResult=e.shuffleResult||function(e){var t,n,i=e.length;for(;0!==i;)n=Math.floor(Math.random()*i),t=e[--i],e[i]=e[n],e[n]=t;return e}([1,2,3]),this._setAppIdData(e)},o.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},o.prototype._partialAppIdDataUpdate=function(e){var t=S(110),n=this._getAppIdData();return t(e,function(e,t){n[t]=e}),this._setAppIdData(n)},o.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},o.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},o.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},o.prototype._setHostIndexByType=function(e,t){var n=S(71)(this._hostIndexes);return n[t]=e,this._partialAppIdDataUpdate({hostIndexes:n}),e},o.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},o.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},o.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}}.call(this,S(238))},function(u,e,c){!function(i){var n,r=c(169)("algoliasearch:src/hostIndexState.js"),o="algoliasearch-client-js",a={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}},e={set:function(t,e){a.set(t,e);try{var n=JSON.parse(i.localStorage[o]);return n[t]=e,i.localStorage[o]=JSON.stringify(n),n[t]}catch(e){return s(t,e)}},get:function(t){try{return JSON.parse(i.localStorage[o])[t]||null}catch(e){return s(t,e)}}};function s(e,t){return r("localStorage failed with",t),function(){try{i.localStorage.removeItem(o)}catch(e){}}(),(n=a).get(e)}function t(e,t){return 1===arguments.length?n.get(e):n.set(e,t)}function l(){try{return"localStorage"in i&&null!==i.localStorage?(i.localStorage[o]||i.localStorage.setItem(o,JSON.stringify({})),!0):!1}catch(e){return!1}}n=l()?e:a,u.exports={get:t,set:t,supportsLocalStorage:l}}.call(this,c(90))},function(e,a,t){var s;function n(e){function n(){if(n.enabled){var i=n,e=+new Date;i.diff=e-(s||e),i.prev=s,i.curr=e,s=e;for(var r=new Array(arguments.length),t=0;t<r.length;t++)r[t]=arguments[t];r[0]=a.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var o=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,function(e,t){if("%%"===e)return e;o++;var n=a.formatters[t];return"function"==typeof n&&(t=r[o],e=n.call(i,t),r.splice(o,1),o--),e}),a.formatArgs.call(i,r),(n.log||a.log||console.log.bind(console)).apply(i,r)}}return n.namespace=e,n.enabled=a.enabled(e),n.useColors=a.useColors(),n.color=function(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return a.colors[Math.abs(n)%a.colors.length]}(e),"function"==typeof a.init&&a.init(n),n}(a=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},a.disable=function(){a.enable("")},a.enable=function(e){a.save(e),a.names=[],a.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),n=t.length,i=0;i<n;i++)t[i]&&("-"===(e=t[i].replace(/\*/g,".*?"))[0]?a.skips.push(new RegExp("^"+e.substr(1)+"$")):a.names.push(new RegExp("^"+e+"$")))},a.enabled=function(e){var t,n;for(t=0,n=a.skips.length;t<n;t++)if(a.skips[t].test(e))return!1;for(t=0,n=a.names.length;t<n;t++)if(a.names[t].test(e))return!0;return!1},a.humanize=t(887),a.names=[],a.skips=[],a.formatters={}},function(e,t){function i(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"==n&&0<e.length)return function(e){if(!(100<(e=String(e)).length)){e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(e){var t=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"days":case"day":case"d":return 864e5*t;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*t;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*t;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"==n&&!1===isNaN(e))return t.long?i(t=e,864e5,"day")||i(t,36e5,"hour")||i(t,6e4,"minute")||i(t,1e3,"second")||t+" ms":function(e){if(864e5<=e)return Math.round(e/864e5)+"d";if(36e5<=e)return Math.round(e/36e5)+"h";if(6e4<=e)return Math.round(e/6e4)+"m";if(1e3<=e)return Math.round(e/1e3)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){e.exports=function(e,t,n){var i={};return(n=n||{}).hosts=n.hosts||["analytics.algolia.com","analytics.algolia.com","analytics.algolia.com","analytics.algolia.com"],n.protocol=n.protocol||"https:",i.as=r(e,t,n),i.getABTests=function(e,t){var n={},i=n.limit||10;return this.as._jsonRequest({method:"GET",url:"/2/abtests?offset="+encodeURIComponent(n.offset||0)+"&limit="+encodeURIComponent(i),hostType:"read",forceAuthHeaders:!0,callback:t})},i.getABTest=function(e,t){return this.as._jsonRequest({method:"GET",url:"/2/abtests/"+encodeURIComponent(e),hostType:"read",forceAuthHeaders:!0,callback:t})},i.addABTest=function(e,t){return this.as._jsonRequest({method:"POST",url:"/2/abtests",body:e,hostType:"read",forceAuthHeaders:!0,callback:t})},i.stopABTest=function(e,t){return this.as._jsonRequest({method:"POST",url:"/2/abtests/"+encodeURIComponent(e)+"/stop",hostType:"read",forceAuthHeaders:!0,callback:t})},i.deleteABTest=function(e,t){return this.as._jsonRequest({method:"DELETE",url:"/2/abtests/"+encodeURIComponent(e),hostType:"write",forceAuthHeaders:!0,callback:t})},i.waitTask=function(e,t,n){return this.as.initIndex(e).waitTask(t,n)},i};var r=n(239)},function(e,t,s){"use strict";var l=s(890),f=l.Promise||s(891).Promise;e.exports=function(e,t){var n=s(135),h=s(109),d=s(892),r=s(893),i=s(894);function o(e,t,n){return(n=s(71)(n||{}))._ua=n._ua||o.ua,new a(e,t,n)}t=t||"",o.version=s(897),o.ua="Algolia for JavaScript ("+o.version+"); "+t,o.initPlaces=i(o),l.__algolia={debug:s(169),algoliasearch:o};var p={hasXMLHttpRequest:"XMLHttpRequest"in l,hasXDomainRequest:"XDomainRequest"in l};function a(){e.apply(this,arguments)}return p.hasXMLHttpRequest&&(p.cors="withCredentials"in new XMLHttpRequest),n(a,e),(a.prototype._request=function(u,c){return new f(function(e,n){var t,i,r,o,a;function s(){r=!0,i.abort(),n(new h.RequestTimeout)}function l(){o=!0,clearTimeout(a),a=setTimeout(s,c.timeouts.complete)}p.cors||p.hasXDomainRequest?(u=d(u,c.headers),t=c.body,i=new(p.cors?XMLHttpRequest:XDomainRequest),o=!1,a=setTimeout(s,c.timeouts.connect),i.onprogress=function(){o||l()},"onreadystatechange"in i&&(i.onreadystatechange=function(){!o&&1<i.readyState&&l()}),i.onload=function(){if(!r){var t;clearTimeout(a);try{t={body:JSON.parse(i.responseText),responseText:i.responseText,statusCode:i.status,headers:i.getAllResponseHeaders&&i.getAllResponseHeaders()||{}}}catch(e){t=new h.UnparsableJSON({more:i.responseText})}(t instanceof h.UnparsableJSON?n:e)(t)}},i.onerror=function(e){r||(clearTimeout(a),n(new h.Network({more:e})))},i instanceof XMLHttpRequest?(i.open(c.method,u,!0),c.forceAuthHeaders&&(i.setRequestHeader("x-algolia-application-id",c.headers["x-algolia-application-id"]),i.setRequestHeader("x-algolia-api-key",c.headers["x-algolia-api-key"]))):i.open(c.method,u),p.cors&&(t&&("POST"===c.method?i.setRequestHeader("content-type","application/x-www-form-urlencoded"):i.setRequestHeader("content-type","application/json")),i.setRequestHeader("accept","application/json")),t?i.send(t):i.send()):n(new h.Network("CORS not supported"))})}).fallback=function(e,t){return e=d(e,t.headers),new f(function(n,i){r(e,t,function(e,t){e?i(e):n(t)})})},a.prototype._promise={reject:function(e){return f.reject(e)},resolve:function(e){return f.resolve(e)},delay:function(t){return new f(function(e){setTimeout(e,t)})},all:function(e){return f.all(e)}},o}},function(t,e,n){!function(e){e="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};t.exports=e}.call(this,n(90))},function(e,t,n){!function(ie,re){
|
|
/*!
|
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
* @license Licensed under MIT license
|
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
* @version v4.2.8+1e68dce6
|
|
*/
|
|
e.exports=function(){"use strict";function i(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function l(e){return typeof e==="function"}var e=void 0;if(Array.isArray)e=Array.isArray;else e=function(e){return Object.prototype.toString.call(e)==="[object Array]"};var n=e,r=0,t=void 0,o=void 0,a=function e(t,n){b[r]=t;b[r+1]=n;r+=2;if(r===2)if(o)o(_);else C()};function s(e){o=e}function u(e){a=e}var c=typeof window!=="undefined"?window:undefined,h=c||{},d=h.MutationObserver||h.WebKitMutationObserver,p=typeof self==="undefined"&&typeof ie!=="undefined"&&{}.toString.call(ie)==="[object process]",f=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function m(){return function(){return ie.nextTick(_)}}function g(){if(typeof t!=="undefined")return function(){t(_)};return x()}function v(){var e=0;var t=new d(_);var n=document.createTextNode("");t.observe(n,{characterData:true});return function(){n.data=e=++e%2}}function y(){var e=new MessageChannel;e.port1.onmessage=_;return function(){return e.port2.postMessage(0)}}function x(){var e=setTimeout;return function(){return e(_,1)}}var b=new Array(1e3);function _(){for(var e=0;e<r;e+=2){var t=b[e];var n=b[e+1];t(n);b[e]=undefined;b[e+1]=undefined}r=0}function w(){try{var e=Function("return this")().require("vertx");t=e.runOnLoop||e.runOnContext;return g()}catch(e){return x()}}var C=void 0;if(p)C=m();else if(d)C=v();else if(f)C=y();else if(c===undefined&&"function"==="function")C=w();else C=x();function S(e,t){var n=this;var i=new this.constructor(T);if(i[M]===undefined)G(i);var r=n._state;if(r){var o=arguments[r-1];a(function(){return $(r,i,o,n._result)})}else F(n,i,e,t);return i}function A(e){var t=this;if(e&&typeof e==="object"&&e.constructor===t)return e;var n=new t(T);z(n,e);return n}var M=Math.random().toString(36).substring(2);function T(){}var k=void 0,D=1,I=2;function O(){return new TypeError("You cannot resolve a promise with itself")}function N(){return new TypeError("A promises callback cannot return that same promise.")}function L(e,t,n,i){try{e.call(t,n,i)}catch(e){return e}}function P(e,i,r){a(function(t){var n=false;var e=L(r,i,function(e){if(n)return;n=true;if(i!==e)z(t,e);else j(t,e)},function(e){if(n)return;n=true;B(t,e)},"Settle: "+(t._label||" unknown promise"));if(!n&&e){n=true;B(t,e)}},e)}function E(t,e){if(e._state===D)j(t,e._result);else if(e._state===I)B(t,e._result);else F(e,undefined,function(e){return z(t,e)},function(e){return B(t,e)})}function H(e,t,n){if(t.constructor===e.constructor&&n===S&&t.constructor.resolve===A)E(e,t);else if(n===undefined)j(e,t);else if(l(n))P(e,t,n);else j(e,t)}function z(t,e){if(t===e)B(t,O());else if(i(e)){var n=void 0;try{n=e.then}catch(e){B(t,e);return}H(t,e,n)}else j(t,e)}function R(e){if(e._onerror)e._onerror(e._result);V(e)}function j(e,t){if(e._state!==k)return;e._result=t;e._state=D;if(e._subscribers.length!==0)a(V,e)}function B(e,t){if(e._state!==k)return;e._state=I;e._result=t;a(R,e)}function F(e,t,n,i){var r=e._subscribers;var o=r.length;e._onerror=null;r[o]=t;r[o+D]=n;r[o+I]=i;if(o===0&&e._state)a(V,e)}function V(e){var t=e._subscribers;var n=e._state;if(t.length===0)return;var i=void 0,r=void 0,o=e._result;for(var a=0;a<t.length;a+=3){i=t[a];r=t[a+n];if(i)$(n,i,r,o);else r(o)}e._subscribers.length=0}function $(e,t,n,i){var r=l(n),o=void 0,a=void 0,s=true;if(r){try{o=n(i)}catch(e){s=false;a=e}if(t===o){B(t,N());return}}else o=i;if(t._state!==k);else if(r&&s)z(t,o);else if(s===false)B(t,a);else if(e===D)j(t,o);else if(e===I)B(t,o)}function Y(n,e){try{e(function e(t){z(n,t)},function e(t){B(n,t)})}catch(e){B(n,e)}}var W=0;function X(){return W++}function G(e){e[M]=W++;e._state=undefined;e._result=undefined;e._subscribers=[]}function U(){return new Error("Array Methods must be provided an Array")}var q=function(){function e(e,t){this._instanceConstructor=e;this.promise=new e(T);if(!this.promise[M])G(this.promise);if(n(t)){this.length=t.length;this._remaining=t.length;this._result=new Array(this.length);if(this.length===0)j(this.promise,this._result);else{this.length=this.length||0;this._enumerate(t);if(this._remaining===0)j(this.promise,this._result)}}else B(this.promise,U())}e.prototype._enumerate=function e(t){for(var n=0;this._state===k&&n<t.length;n++)this._eachEntry(t[n],n)};e.prototype._eachEntry=function e(t,n){var i=this._instanceConstructor;var r=i.resolve;if(r===A){var o=void 0;var a=void 0;var s=false;try{o=t.then}catch(e){s=true;a=e}if(o===S&&t._state!==k)this._settledAt(t._state,n,t._result);else if(typeof o!=="function"){this._remaining--;this._result[n]=t}else if(i===te){var l=new i(T);if(s)B(l,a);else H(l,t,o);this._willSettleAt(l,n)}else this._willSettleAt(new i(function(e){return e(t)}),n)}else this._willSettleAt(r(t),n)};e.prototype._settledAt=function e(t,n,i){var r=this.promise;if(r._state===k){this._remaining--;if(t===I)B(r,i);else this._result[n]=i}if(this._remaining===0)j(r,this._result)};e.prototype._willSettleAt=function e(t,n){var i=this;F(t,undefined,function(e){return i._settledAt(D,n,e)},function(e){return i._settledAt(I,n,e)})};return e}();function Z(e){return new q(this,e).promise}function K(r){var o=this;if(!n(r))return new o(function(e,t){return t(new TypeError("You must pass an array to race."))});else return new o(function(e,t){var n=r.length;for(var i=0;i<n;i++)o.resolve(r[i]).then(e,t)})}function Q(e){var t=this;var n=new t(T);B(n,e);return n}function J(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ee(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var te=function(){function t(e){this[M]=X();this._result=this._state=undefined;this._subscribers=[];if(T!==e){typeof e!=="function"&&J();this instanceof t?Y(this,e):ee()}}t.prototype.catch=function e(t){return this.then(null,t)};t.prototype.finally=function e(t){var n=this;var i=n.constructor;if(l(t))return n.then(function(e){return i.resolve(t()).then(function(){return e})},function(e){return i.resolve(t()).then(function(){throw e})});return n.then(t,t)};return t}();function ne(){var e=void 0;if(typeof re!=="undefined")e=re;else if(typeof self!=="undefined")e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if(n==="[object Promise]"&&!t.cast)return}e.Promise=te}return te.prototype.then=S,te.all=Z,te.race=K,te.resolve=A,te.reject=Q,te._setScheduler=s,te._setAsap=u,te._asap=a,te.polyfill=ne,te.Promise=te}()}.call(this,n(238),n(90))},function(e,t,n){"use strict";e.exports=function(e,t){/\?/.test(e)?e+="&":e+="?";return e+i(t)};var i=n(429)},function(e,t,n){"use strict";e.exports=function(e,t,n){var i,r,o,a,s,l,u;function c(){t.debug("JSONP: success"),l||r||(l=!0,i||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),h(),n(new d.JSONPScriptFail)))}function h(){clearTimeout(u),a.onload=null,a.onreadystatechange=null,a.onerror=null,o.removeChild(a)}"GET"===t.method?(t.debug("JSONP: start"),r=i=!1,p+=1,o=document.getElementsByTagName("head")[0],a=document.createElement("script"),s="algoliaJSONP_"+p,l=!1,window[s]=function(e){!function(){try{delete window[s],delete window[s+"_loaded"]}catch(e){window[s]=window[s+"_loaded"]=void 0}}(),r?t.debug("JSONP: Late answer, ignoring"):(i=!0,h(),n(null,{body:e,responseText:JSON.stringify(e)}))},e+="&callback="+s,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params),u=setTimeout(function(){t.debug("JSONP: Script timeout"),r=!0,h(),n(new d.RequestTimeout)},t.timeouts.complete),a.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||c()},a.onload=c,a.onerror=function(){t.debug("JSONP: Script error"),l||r||(h(),n(new d.JSONPScriptError))},a.async=!0,a.defer=!0,a.src=e,o.appendChild(a)):n(new Error("Method "+t.method+" "+e+" is not supported by JSONP."))};var d=n(109),p=0},function(e,t,o){e.exports=function(r){return function(e,t,n){var i=o(71);(n=n&&i(n)||{}).hosts=n.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof e&&void 0!==e||(n._allowEmptyCredentials=!(t=e=""));i=r(e,t,n).initIndex("places");return i.search=s("query","/1/places/query"),i.reverse=function(e,t){e=a.encode(e);return this.as._jsonRequest({method:"GET",url:"/1/places/reverse?"+e,hostType:"read",callback:t})},i.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},i}};var a=o(895),s=o(424)},function(e,t,n){"use strict";t.decode=t.parse=n(896),t.encode=t.stringify=n(429)},function(e,t,n){"use strict";e.exports=function(e,t,n,i){n=n||"=";var r={};if("string"!=typeof e||0===e.length)return r;var o=/\+/g;e=e.split(t=t||"&");t=1e3;i&&"number"==typeof i.maxKeys&&(t=i.maxKeys);var a=e.length;0<t&&t<a&&(a=t);for(var s=0;s<a;++s){var l,u=e[s].replace(o,"%20"),c=u.indexOf(n),h=0<=c?(l=u.substr(0,c),u.substr(c+1)):(l=u,""),d=decodeURIComponent(l),c=decodeURIComponent(h);u=r,h=d,Object.prototype.hasOwnProperty.call(u,h)?p(r[d])?r[d].push(c):r[d]=[r[d],c]:r[d]=c}return r};var p=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports="3.35.1"},function(e,t,n){"use strict";n(430)},function(e,t,n){"use strict";n(431)},function(e,t,n){"use strict";n(432)},function(e,t,n){"use strict";n(433)},function(e,t,n){"use strict";n(434)},function(e,t,n){"use strict";n(435)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var i={data:function(){return{input:"Hello Element UI!"}}},n=n(0),i=Object(n.a)(i,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{staticStyle:{margin:"20px"}},[e("tis-input",{attrs:{placeholder:"请输入内容"},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}})],1)},[],!1,null,null,null);t.default=i.exports},function(e,t,n){"use strict";n.r(t);var i=[function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("section",{staticClass:"content element-doc"},[t("h2",{attrs:{id:"tis-app"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#tis-app"}},[e._v("¶")]),e._v(" tis-app")]),t("h3",{attrs:{id:"shi-me-shi-tis-app"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#shi-me-shi-tis-app"}},[e._v("¶")]),e._v(" 什么是tis-app")]),t("p",[e._v("tis-app 是一个使用 Vue.js 开发所有tis应用的框架,开发者使用此框架编写代码,构建打包,即可生成符合tis宿主框架规范的应用,可嵌入运行在tis宿主框架中.")]),t("h3",{attrs:{id:"kuai-su-kai-shi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#kuai-su-kai-shi"}},[e._v("¶")]),e._v(" 快速开始")]),t("h4",{attrs:{id:"huan-jing-zhun-bei"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#huan-jing-zhun-bei"}},[e._v("¶")]),e._v(" 环境准备")]),t("p",[e._v("tis-app项目基于 node,并确保 node 版本是 10.13 或以上。推荐使用 nvm 来管理 node 版本,这样不仅可以很方便地切换 node 版本,而且全局安装时候也不用加 sudo 了。")]),t("p",[e._v("$ node -v\nv10.13.0")]),t("p",[e._v("推荐使用 yarn 管理 npm 依赖,并使用国内源")]),t("h4",{attrs:{id:"guo-nei-yuan"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#guo-nei-yuan"}},[e._v("¶")]),e._v(" 国内源")]),t("p",[e._v("npm i yarn tyarn -g")]),t("h4",{attrs:{id:"hou-mian-wen-dang-li-de-yarn-huan-cheng-tyarn"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hou-mian-wen-dang-li-de-yarn-huan-cheng-tyarn"}},[e._v("¶")]),e._v(" 后面文档里的 yarn 换成 tyarn")]),t("p",[e._v("tyarn -v")]),t("p",[e._v("下载模版")]),t("p",[e._v("请下载项目模版zip包,然后解压后,会看到tis-app文件夹,请以此目录作为项目根目录,当然你可以根据自己的需求修改文件夹名称。\n安装依赖")]),t("h4",{attrs:{id:"qie-huan-dao-xiang-mu-gen-mu-lu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#qie-huan-dao-xiang-mu-gen-mu-lu"}},[e._v("¶")]),e._v(" 切换到项目根目录")]),t("p",[e._v("cd tis-app/")]),t("h4",{attrs:{id:"an-zhuang-yi-lai"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#an-zhuang-yi-lai"}},[e._v("¶")]),e._v(" 安装依赖")]),t("p",[e._v("yarn")]),t("p",[e._v("启动项目\nyarn serve")]),t("p",[e._v("执行完上方命令后,会看到类似如下结果:")]),t("p",[e._v("yarn run v1.22.10\n$ vue-cli-service serve\nINFO Starting development server...\n98% after emitting CopyPlugin")]),t("p",[e._v("DONE Compiled successfully in 968ms 10:49:43")]),t("p",[e._v("App running at:")]),t("ul",[t("li",[e._v("Local: http://localhost:7000/")]),t("li",[e._v("Network: http://192.168.1.5:7000/")])]),t("p",[e._v("Note that the development build is not optimized.\nTo create a production build, run yarn build.")]),t("p",[e._v("在浏览器里打开 http://localhost:7000/,能看到以下界面,")]),t("p",[t("img",{attrs:{src:n(407),alt:"img"}})]),t("h4",{attrs:{id:"kuang-jia-zhong-yun-xing"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#kuang-jia-zhong-yun-xing"}},[e._v("¶")]),e._v(" 框架中运行")]),t("p",[e._v("tis-app是可以独立运行的,如上方介绍,我们已经成功在浏览器里打开 http://localhost:7000/。但通常我们需要让应用运行在框架中。")]),t("p",[e._v("首先在浏览器中,我们打开发版tis框架测试地址 http://tis-dev.com,如下图")]),t("p",[t("img",{attrs:{src:n(408),alt:"img"}})]),t("p",[e._v("然后点击左上角绿色Devtool按钮,并填入如下信息:")]),t("ul",[t("li",[e._v("应用唯一id:应用的唯一标识符,可以由英文字母、阿拉伯数字、下划线构成,长度在1-32个字符之间,这个字段在界面不可见,只用于程序内部区分不同应用。可以把它想象成人的身份证号。")]),t("li",[e._v("应用名称:应用显示的名称,可以由任意字符组成,长度在1到16个字符之间,用于在界面中显示,可以把它想象成人的姓名。")]),t("li",[e._v("应用入口地址:访问应用地址的URL,本地开发时,是yarn serve之后得到的地址,例如 http://localhost:7100")]),t("li",[e._v("应用图标地址:地应用图标地址URL,一般推荐将图标放到public/目录下,并且命名为icon.png, 这样本地开发时,可以直接通过 http://localhost:7000/icon.png 访问到。")])]),t("p",[t("img",{attrs:{src:n(409),alt:"img"}})]),t("p",[e._v("填写完成后,保存确认,再次点击左上角Devtool,关闭Devtool窗口,然后点击左侧菜单栏第一个,打开所有应用列表窗口:")]),t("p",[t("img",{attrs:{src:n(410),alt:"img"}})]),t("p",[e._v("可以看到刚刚添加的本地应用在最后一个:")]),t("p",[t("img",{attrs:{src:n(411),alt:"img"}})]),t("p",[e._v("我们点击应用图标,即可在框架中打开本地开发应用:")]),t("p",[t("img",{attrs:{src:n(412),alt:"img"}})]),t("h4",{attrs:{id:"re-chong-zai-hot-reload"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#re-chong-zai-hot-reload"}},[e._v("¶")]),e._v(" 热重载 (Hot reload)")]),t("p",[e._v("tis-app的热重载功能可帮助您在修改代码保存后,无需重新启动项目,无需刷新浏览器的情况下,浏览器界面中即可实时显示修改后的结果。")]),t("p",[e._v("实时预览\n一起试一下,打开编辑器,在src/App.vue文件中,插入一行标签代码,然后保存:")]),t("p",[t("img",{attrs:{src:n(413),alt:"img"}})]),t("p",[e._v("然后返回浏览器界面,即可实时看到修改后的结果:")]),t("p",[t("img",{attrs:{src:n(414),alt:"img"}})]),t("h4",{attrs:{id:"zhuang-tai-bao-liu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zhuang-tai-bao-liu"}},[e._v("¶")]),e._v(" 状态保留")]),t("p",[e._v("“热重载”不只是当你修改文件的时候简单重新加载页面。启用热重载后,当你修改 .vue 文件时,该组件的所有实例将在不刷新页面的情况下被替换。它甚至保持了应用程序和被替换组件的当前状态!当你调整模版或者修改样式时,这极大地提高了开发体验。")]),t("p",[e._v('再来试试,我们在浏览器中,点击“计数器+1”的按钮8次,然后界面中已变成:"我的计数器数值:8"字样:')]),t("p",[t("img",{attrs:{src:n(415),alt:"img"}})]),t("p",[e._v("此时再去修改下src/App.vue文件,保存")]),t("p",[t("img",{attrs:{src:n(416),alt:"img"}})]),t("p",[e._v('返回浏览器,可以看到,新加的一段文本已经显示出来了,而且计数器状态还是显示的为"8",说明我们应用状态并没有因为代码的修改,而导致被清空,这极大的提高了开发效率。')]),t("p",[t("img",{attrs:{src:n(417),alt:"img"}})]),t("h4",{attrs:{id:"cuo-wu-ti-shi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#cuo-wu-ti-shi"}},[e._v("¶")]),e._v(" 错误提示")]),t("p",[e._v("我们在编写代码中,难免会失误出错,但是不用担心,代码出错后,会有友好的界面提示出错在哪里了")]),t("p",[e._v("试一下,我们故意在代码中删除h1的闭合标签")]),t("p",[t("img",{attrs:{src:n(418),alt:"img"}})]),t("p",[e._v("保存代码后,返回浏览器可以即可立即看到出错提示:")]),t("p",[t("img",{attrs:{src:n(419),alt:"img"}})]),t("h4",{attrs:{id:"bu-shu-fa-bu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bu-shu-fa-bu"}},[e._v("¶")]),e._v(" 部署发布")]),t("p",[e._v("本地构建\nyarn build")]),t("p",[e._v("执行完上方命令后,会看到类似如下结果:\nyarn run v1.22.10\n$ vue-cli-service build")]),t("p",[e._v("⠏ Building for production...")]),t("p",[e._v("DONE Compiled successfully in 2414ms 11:02:18")]),t("p",[e._v("File Size Gzipped")]),t("p",[e._v("dist/static/js/chunk-vendors.113302c8.js 96.53 KiB 34.33 KiB\ndist/static/js/app.eb1f39ab.js 5.00 KiB 1.98 KiB\ndist/static/css/app.c1528f44.css 0.15 KiB 0.14 KiB")]),t("p",[e._v("Images and other types of assets omitted.")]),t("p",[e._v("DONE Build complete. The dist directory is ready to be deployed.\nINFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html")]),t("p",[e._v("✨ Done in 4.98s.")]),t("p",[e._v("构建产物默认生成到 ./dist 下,然后通过 tree 命令查看,\ntree ./dist")]),t("p",[e._v("执行完上方命令后,会看到类似如下结果:")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v("dist\n├── favicon.ico\n├── index.html\n└── static\n ├── css\n │ └── app.c1528f44.css\n └── js\n ├── app.eb1f39ab.js\n ├── app.eb1f39ab.js.map\n ├── chunk-vendors.113302c8.js\n └── chunk-vendors.113302c8.js.map\n\n3 directories, 7 files\n")])]),t("p",[e._v("本地验证\n发布之前,可以通过 serve 做本地验证,\nyarn global add serve\nserve ./dist")]),t("p",[e._v("执行完上方命令后,会看到类似如下结果:")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v(" \n │ Serving! │\n │ │\n │ - Local: http://localhost:5000 │\n │ - On Your Network: http://192.168.1.5:5000 │\n │ │\n │ Copied local address to clipboard! │\n")])]),t("p",[e._v("访问 http://localhost:5000,正常情况下应该是和执行 yarn start 时是一致的。")]),t("p",[e._v("线上部署\n本地验证完,就可以部署了。你需要把 dist 目录部署到服务器上。")]),t("h3",{attrs:{id:"mu-lu-jie-gou"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#mu-lu-jie-gou"}},[e._v("¶")]),e._v(" 目录结构")]),t("p",[e._v("一个基础的 tis-app 项目大致是这样的,")]),t("pre",[t("code",{staticClass:"language-bash"},[e._v(".\n├── babel.config.js\n├── dist\n├── package.json\n├── public\n│ ├── favicon.ico\n│ ├── icon.png\n│ └── index.html\n├── src\n│ ├── App.vue\n│ ├── assets\n│ │ └── logo.png\n│ ├── components\n│ │ └── HelloWorld.vue\n│ ├── main.js\n│ └── tis\n│ └── index.js\n├── vue.config.js\n")])]),t("h4",{attrs:{id:"gen-mu-lu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#gen-mu-lu"}},[e._v("¶")]),e._v(" 根目录")]),t("p",[e._v("package.json\n项目基本配置信息,项目开发所需要模块,版本,需要哪些npm包来参与到项目中来,yarn命令根据这个配置文件增减来管理本地的安装包。")]),t("pre",[t("code",{staticClass:"language-json"},[e._v('{\n "name": "tis-app",\n "version": "0.1.0",\n "private": true,\n "scripts": {\n // 本地开发运行脚本命令\n "serve": "vue-cli-service serve",\n // 打包构建命令\n "build": "vue-cli-service build",\n // lint检查命令\n "lint": "vue-cli-service lint"\n },\n // 项目生产环境依赖的第三方包\n "dependencies": {\n "core-js": "^3.6.5",\n "vue": "^2.6.11"\n },\n // 项目开发环境依赖的第三方包\n "devDependencies": {\n "@vue/cli-plugin-babel": "~4.5.0",\n "@vue/cli-plugin-eslint": "~4.5.0",\n "@vue/cli-service": "~4.5.0",\n "@vue/eslint-config-prettier": "^6.0.0",\n "babel-eslint": "^10.1.0",\n "eslint": "^6.7.2",\n "eslint-plugin-prettier": "^3.1.3",\n "eslint-plugin-vue": "^6.2.2",\n "lint-staged": "^9.5.0",\n "prettier": "^1.19.1",\n "sass": "^1.26.5",\n "sass-loader": "^8.0.2",\n "vue-template-compiler": "^2.6.11"\n },\n // git的一些hook\n "gitHooks": {\n // 每次commit前,会自动进行代码格式化检查\n "pre-commit": "lint-staged"\n },\n "lint-staged": {\n "*.{js,jsx,vue}": [\n "vue-cli-service lint",\n "git add"\n ]\n }\n}\n')])]),t("p",[e._v("vue.config.js\nvue.config.js 是一个配置文件,用于自定义webpack,devServer,outputDir,assetsDir等信息的配置,一般不需要修改,如有高级自定义需求,可参见https://cli.vuejs.org/zh/config/#vue-config-js 进行配置修改。\nbabel.config.js\n可以通过 babel.config.js 进行配置Babel,一般不需要修改,如有高级自定义需求,可参见https://www.babeljs.cn/docs/configuration进行配置修改。\n.eslintrc.js\n可以通过 .eslintrc.js 进行配置ESlint,一般不需要修改,如有高级自定义需求,可参见https://cn.eslint.org/docs/user-guide/configuring进行配置修改。\n/dist 目录\n存放打包构建后的产物,无需手动维护,每次打包构建后,这个目录的内容都会重新生成。\n/public 目录\n存放各种静态资源,例如:图片,音频,视频等,这个目录下的所有内容,在打包构建时,会自动被复制到/dist的根目录。\nindex.html\n生成项目的入口文件,webpack打包的js,css也会自动注入到该页面中,一般无需修改,使用默认模版即可。\n/src 目录\n项目源码目录,你的大多数编码工作都是在该目录下进行。\nsrc/assets/\n用于存放各种静态文件,如图片,css\nsrc/compnents/\n用于存放我们的Vue组件\nsrc/tis/\n存放tis核心模块相关的所有内容,请勿擅自修改。\nsrc/App.vue\n主vue组件,引入其他组件,App.vue是项目的主组件。\nsrc/main.js\n项目入口文件,可以理解为项目运行起来,是从整个文件的第一行代码开始执行,作用是初始化tis应用,添加应用生命周期函数钩子,也可以在此文件中引用组件库等。")]),t("p",[e._v('下方是项目模版中默认的main.js文件示例:\nimport tis, { setup } from "./tis";\nimport App from "./App.vue";')]),t("p",[e._v("// 定义应用生命周期函数")]),t("p",[e._v("// bootstrap 只会在应用初始化的时候调用一次,下次应用重新进入时会直接调用 mount 钩子,不会再重复触发 bootstrap。通常我们可以在这里做一些全局变量的初始化,比如不会在 unmount 阶段被销毁的应用级别的缓存等。\nfunction bootstrap(params) {\nconsole.log("),t("code",[e._v("[App: ${tis.appId}] boostrap")]),e._v(", params);\n}\n// 应用在框架中被打开时触发,此时应用会初始化渲染构建自己的DOM树。\nfunction mount(params) {\nconsole.log("),t("code",[e._v("[App: ${tis.appId}] mount")]),e._v(", params);\n}\n// 应用在框架中从隐藏态(后台)切换到显示态(前台)时触发。\nfunction show(params) {\nconsole.log("),t("code",[e._v("[App: ${tis.appId}] show")]),e._v(", params);\n}\n// 应用在框架中被隐藏时触发,此时应用依然在框架中后台运行,而且DOM树没有被销毁。\nfunction hide(params) {\nconsole.log("),t("code",[e._v("[App: ${tis.appId}] hide")]),e._v(", params);\n}\n// 应用在框架中被关闭时触发,此时应用DOM树已被卸载销毁。\nfunction unmount(params) {\nconsole.log("),t("code",[e._v("[App: ${tis.appId}] unmount")]),e._v(", params);\n}")]),t("p",[e._v("// 必须要执行setup方法\n// 第一个参数是入口vue组件\n// 第二个参数是一个对象,用于传入定义好的生命周期函数钩子\nsetup(App, {\nbootstrap,\nmount,\nhide,\nshow,\nunmount\n});")]),t("p",[e._v('// 注意,下方这句代码是为主框架使用,必须保留,请勿删除\nexport * from "./tis";')]),t("h3",{attrs:{id:"sheng-ming-zhou-qi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#sheng-ming-zhou-qi"}},[e._v("¶")]),e._v(" 生命周期")]),t("p",[e._v("tis-app拥有完整的生命周期,具体如下,应用生命周期可在src/main.js中定义,然后通过 setup 函数入参传入。\nbootstrap\nbootstrap 只会在应用初始化的时候调用一次,下次应用重新进入时会直接调用 mount 钩子,不会再重复触发 bootstrap。通常我们可以在这里做一些全局变量的初始化,比如不会在 unmount 阶段被销毁的应用级别的缓存等。\nmount\n应用在框架中被打开时触发,此时应用会初始化渲染构建自己的DOM树。\nshow\n应用在框架中从隐藏态(后台)切换到显示态(前台)时触发\nhide\n应用在框架中被隐藏时触发,此时应用依然在框架中后台运行,而且DOM树没有被销毁。\nunmount\n应用在框架中被关闭时触发,此时应用DOM树已被卸载销毁。")]),t("h3",{attrs:{id:"tis-de-api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#tis-de-api"}},[e._v("¶")]),e._v(" $tis的API")]),t("p",[e._v("如果应用是在tis宿主框架中运行(非独立模式运行),则可以通过Vue.prototype.$tis访问到所有tis的API。(如果是在Vue组件中,可以直接通过this.$tis访问到),具体各个API介绍如下:")]),t("h4",{attrs:{id:"quan-ju-bian-liang"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#quan-ju-bian-liang"}},[e._v("¶")]),e._v(" 全局变量")]),t("p",[e._v("全局变量是一种key-value的存储模式(key为字符串,value是任意数据类型),所有应用均可读取和修改。\nAPI\ngetGlobalState( key ): value")]),t("ul",[t("li",[e._v("参数:\n"),t("ul",[t("li",[e._v("{string} key")])])]),t("li",[e._v("返回值:\n"),t("ul",[t("li",[e._v("{any} value")])])]),t("li",[e._v("用法:\n,获取全局变量key的值\nsetGlobalState( key, value )")]),t("li",[e._v("参数:\n"),t("ul",[t("li",[e._v("{string} key")]),t("li",[e._v("{any} value")])])]),t("li",[e._v("用法:\n,设置全局变量key的值\n使用示例")])]),t("pre",[t("code",{staticClass:"language-html"},[e._v('<template>\n <div>\n <h2>读取/设置 全局变量示例</h2>\n <div>请在输入框里填写全局变量key: <input v-model="key" /></div>\n <br />\n <button @click="onSetValue">设置全局变量</button>\n <button @click="onGetValue">获取全局变量</button>\n </div>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n key: "some_key",\n };\n },\n methods: {\n onSetValue() {\n const value = prompt(`请输入全局变量${this.key}的值:`);\n this.$tis.setGlobalState(this.key, value);\n },\n onGetValue() {\n const value = this.$tis.getGlobalState(this.key);\n alert(`全局变量${this.key}的值为:${value}`);\n },\n },\n};\n<\/script>\n')])]),t("h4",{attrs:{id:"ying-yong-xiang-guan"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ying-yong-xiang-guan"}},[e._v("¶")]),e._v(" 应用相关")]),t("p",[e._v("通过getApps, openApp, getCurrentApp, closeCurrentApp,可以获取/打开/关闭 tis宿主框架中的应用。\nAPI\ngetApps(): apps")]),t("ul",[t("li",[e._v("返回值:\n"),t("ul",[t("li",[e._v("Array<应用对象> apps")]),t("li",[e._v("{应用对象} app\n"),t("ul",[t("li",[e._v("{string} id: 应用唯一ID")]),t("li",[e._v("{string} name:应用显示名称")]),t("li",[e._v("{string} icon:应用图标URL")]),t("li",[e._v("{string} entry:应用入口URL(即应用独立访问的URL)")]),t("li",[e._v("{boolean} default:是否默认应用")]),t("li",[e._v("{boolean} opened:当前是否已打开在前台")])])])])]),t("li",[e._v("用法:\n获取所有已注册在tis宿主框架中的应用列表")])]),t("p",[e._v("openApp( appId, params )")]),t("ul",[t("li",[e._v("返回值:\n"),t("ul",[t("li",[e._v("{string} appid 应用id")]),t("li",[e._v("{any} params 传入参数,应用可在show生命周期接收到的该参数")])])]),t("li",[e._v("用法:\n根据应用唯一ID,将某应用在宿主框架打开")])]),t("p",[e._v("getCurrentApp(): app")]),t("ul",[t("li",[e._v("返回值:\n"),t("ul",[t("li",[e._v("{应用对象} app\n"),t("ul",[t("li",[e._v("{string} id: 应用唯一ID")]),t("li",[e._v("{string} name:应用显示名称")]),t("li",[e._v("{string} icon:应用图标URL")]),t("li",[e._v("{string} entry:应用入口URL(即应用独立访问的URL)")]),t("li",[e._v("{boolean} default:是否默认应用")]),t("li",[e._v("{boolean} opened:当前是否已打开在前台(此时一定是true)")])])])])]),t("li",[e._v("用法:\n获取所有已注册在tis宿主框架中的应用列表")])]),t("p",[e._v("closeCurrentApp()")]),t("ul",[t("li",[e._v("用法:\n关闭当前前台打开的应用")])]),t("h4",{attrs:{id:"fu-chuang-xiang-guan"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#fu-chuang-xiang-guan"}},[e._v("¶")]),e._v(" 浮窗相关")]),t("p",[e._v("通过getApps, openApp, getCurrentApp, closeCurrentApp,可以获取/打开/关闭 tis宿主框架中的应用。\nAPI\ngetWidgets(): widgets")]),t("ul",[t("li",[e._v("返回值:\n"),t("ul",[t("li",[e._v("Array<浮窗对象> widgets")]),t("li",[e._v("{浮窗对象} widget\n"),t("ul",[t("li",[e._v("{string} id: 浮窗唯一ID")]),t("li",[e._v("{string} name:浮窗显示名称")]),t("li",[e._v("{string} icon:浮窗图标URL")]),t("li",[e._v("{Vue Component} comp:浮窗Vue组件对象")]),t("li",[e._v("{boolean} opened:当前是否已打开")])])])])]),t("li",[e._v("用法:\n获取所有已注册在tis宿主框架中的浮窗列表\ngetOpenedWidgets : widgets")]),t("li",[e._v("返回值:\n"),t("ul",[t("li",[e._v("Array<浮窗对象> widgets")]),t("li",[e._v("{浮窗对象} widget\n"),t("ul",[t("li",[e._v("{string} id: 浮窗唯一ID")]),t("li",[e._v("{string} name:浮窗显示名称")]),t("li",[e._v("{string} icon:浮窗图标URL")]),t("li",[e._v("{Vue Component} comp:浮窗Vue组件对象")]),t("li",[e._v("{boolean} opened:当前是否已打开")])])])])]),t("li",[e._v("用法:\n获取所有在tis宿主框架中,当前已打开的浮窗列表\nopenWidget( widgetId, params )")]),t("li",[e._v("返回值:\n"),t("ul",[t("li",[e._v("{string} widgetId浮窗id")]),t("li",[e._v("{any} params 传入的参数,会当作浮窗的props传入给浮窗组件")])])]),t("li",[e._v("用法:\n根据浮窗唯一ID,打开显示某浮窗\ncloseWidget( widgetId )")]),t("li",[e._v("用法:\n根据浮窗唯一ID,在tis宿主框架中,关闭某浮窗")])]),t("h4",{attrs:{id:"tong-xin-mo-kuai"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#tong-xin-mo-kuai"}},[e._v("¶")]),e._v(" 通信模块")]),t("p",[e._v("tis提供一套完整的“发布-订阅模式”的事件通信机制,而且提供“系统级”,“应用级”, 自定义事件的区分,应用/框架之间可借助该模块,进行相互通信。\nAPI\n$emit( eventName, […args] )")]),t("ul",[t("li",[e._v("参数:\n"),t("ul",[t("li",[e._v("{string} eventName 自定义事件名")]),t("li",[e._v("[...args]\n触发事件。附加参数都会传给监听器回调。")])])]),t("li",[e._v("示例:\n// 只配合一个事件名使用 $emit:\nthis.$emit('welcome')\n// 配合额外的参数使用 $emit:\nthis.$emit('welcome', ['Mike','Alice'])")])]),t("p",[e._v("$on( eventName, { appIds, system }, callback )")]),t("ul",[t("li",[e._v("参数:\n"),t("ul",[t("li",[e._v("{string} eventName 监听的自定义事件名")]),t("li",[e._v("{Array<string>} appIds 每个应用都可以发出同名自定义事件,因此我们需要传入监听哪些app发出的该事件")]),t("li",[e._v("{boolean} system tis宿主框架也可以和应用一样,发出同名自定义事件,如果想同时监听tis宿主发出的该事件,请将该字段设置为true,")]),t("li",[e._v("{Function} callback")])])]),t("li",[e._v("用法:\n监听事件总线上的自定义事件,而且可限定事件触发者的应用id以及是否为宿主框架发出,回调函数会接收所有传入事件触发函数的额外参数以及发出者信息")]),t("li",[e._v('示例:\n// 监听应用id为app_1,app_2以及tis宿主框架发出的名为"message"的事件')])]),t("p",[e._v("this.$on('message', {\nappIds: ['app_1', 'app_2'],\nsystem: true\n}, function(payload, {\nappId,\nsystem\n}) {\nif (system) {\nconsole.log('收到了系统级事件(由宿主框架发出)')\n} else {\nconsole.log("),t("code",[e._v("收到了应用级事件(由应用发出),发送事件方的appId为: ${appId}")]),e._v(")\n}\nconsole.log('事件参数为', payload)\n})")]),t("p",[e._v("$off( eventName, { appIds, system }, callback )")]),t("ul",[t("li",[e._v("参数:\n"),t("ul",[t("li",[e._v("{string} eventName 取消监听的自定义事件名")]),t("li",[e._v("{Array<string>} appIds 每个应用都可以发出同名自定义事件,因此我们需要传入取消监听哪些app发出的该事件")]),t("li",[e._v("{boolean} system tis宿主框架也可以和应用一样,发出同名自定义事件,如果想同时取消监听tis宿主发出的该事件,请将该字段设置为true,")]),t("li",[e._v("{Function} callback")])])]),t("li",[e._v("用法:\n移除事件监听器。")])])])}],r=n(0),i=Object(r.a)({},function(){var e=this.$createElement;this._self._c;return this._m(0)},i,!1,null,null,null);t.default=i.exports}]);
|