diff --git a/Gopkg.lock b/Gopkg.lock new file mode 100644 index 0000000000..9fa53e9770 --- /dev/null +++ b/Gopkg.lock @@ -0,0 +1,173 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + name = "github.com/armon/go-socks5" + packages = ["."] + revision = "e75332964ef517daa070d7c38a9466a0d687e0a5" + +[[projects]] + name = "github.com/davecgh/go-spew" + packages = ["spew"] + revision = "346938d642f2ec3594ed81d874461961cd0faa76" + version = "v1.1.0" + +[[projects]] + name = "github.com/fatedier/beego" + packages = ["logs"] + revision = "6c6a4f5bd5eb5a39f7e289b8f345b55f75e7e3e8" + +[[projects]] + branch = "master" + name = "github.com/fatedier/golib" + packages = [ + "control/shutdown", + "crypto", + "errors", + "io", + "msg/json", + "net", + "net/mux", + "pool" + ] + revision = "354693cdd7fd9fa4f207c2f91ec2534615d3e5e5" + +[[projects]] + branch = "frp" + name = "github.com/fatedier/kcp-go" + packages = ["."] + revision = "cd167d2f15f451b0f33780ce862fca97adc0331e" + +[[projects]] + name = "github.com/golang/snappy" + packages = ["."] + revision = "553a641470496b2327abcac10b36396bd98e45c9" + +[[projects]] + name = "github.com/gorilla/websocket" + packages = ["."] + revision = "ea4d1f681babbce9545c9c5f3d5194a789c89f5b" + version = "v1.2.0" + +[[projects]] + name = "github.com/hashicorp/yamux" + packages = ["."] + revision = "2658be15c5f05e76244154714161f17e3e77de2e" + +[[projects]] + name = "github.com/inconshreveable/mousetrap" + packages = ["."] + revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75" + version = "v1.0" + +[[projects]] + name = "github.com/julienschmidt/httprouter" + packages = ["."] + revision = "8c199fb6259ffc1af525cc3ad52ee60ba8359669" + version = "v1.1" + +[[projects]] + name = "github.com/pkg/errors" + packages = ["."] + revision = "645ef00459ed84a119197bfb8d8205042c6df63d" + version = "v0.8.0" + +[[projects]] + name = "github.com/pmezard/go-difflib" + packages = ["difflib"] + revision = "792786c7400a136282c1664665ae0a8db921c6c2" + version = "v1.0.0" + +[[projects]] + name = "github.com/rakyll/statik" + packages = ["fs"] + revision = "fd36b3595eb2ec8da4b8153b107f7ea08504899d" + version = "v0.1.1" + +[[projects]] + name = "github.com/rodaine/table" + packages = ["."] + revision = "212a2ad1c462ed4d5b5511ea2b480a573281dbbd" + version = "v1.0.0" + +[[projects]] + name = "github.com/spf13/cobra" + packages = ["."] + revision = "a1f051bc3eba734da4772d60e2d677f47cf93ef4" + version = "v0.0.2" + +[[projects]] + name = "github.com/spf13/pflag" + packages = ["."] + revision = "583c0c0531f06d5278b7d917446061adc344b5cd" + version = "v1.0.1" + +[[projects]] + name = "github.com/stretchr/testify" + packages = ["assert"] + revision = "12b6f73e6084dad08a7c6e575284b177ecafbc71" + version = "v1.2.1" + +[[projects]] + branch = "master" + name = "github.com/templexxx/cpufeat" + packages = ["."] + revision = "3794dfbfb04749f896b521032f69383f24c3687e" + +[[projects]] + name = "github.com/templexxx/reedsolomon" + packages = ["."] + revision = "5e06b81a1c7628d9c8d4fb7c3c4e401e37db39b4" + version = "0.1.1" + +[[projects]] + name = "github.com/templexxx/xor" + packages = ["."] + revision = "0af8e873c554da75f37f2049cdffda804533d44c" + version = "0.1.2" + +[[projects]] + name = "github.com/tjfoc/gmsm" + packages = ["sm4"] + revision = "98aa888b79d8de04afe0fccf45ed10594efc858b" + version = "v1.1" + +[[projects]] + name = "github.com/vaughan0/go-ini" + packages = ["."] + revision = "a98ad7ee00ec53921f08832bc06ecf7fd600e6a1" + +[[projects]] + name = "golang.org/x/crypto" + packages = [ + "blowfish", + "cast5", + "pbkdf2", + "salsa20", + "salsa20/salsa", + "tea", + "twofish", + "xtea" + ] + revision = "4ec37c66abab2c7e02ae775328b2ff001c3f025a" + +[[projects]] + branch = "master" + name = "golang.org/x/net" + packages = [ + "bpf", + "context", + "internal/iana", + "internal/socket", + "internal/socks", + "ipv4", + "proxy" + ] + revision = "d11bb6cd8e3c4e60239c9cb20ef68586d74500d0" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "d934d16928772cfb22c55a39964c7ca364d02fe1ab680a90cdb5c3c8be256273" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml new file mode 100644 index 0000000000..f33c2f63c4 --- /dev/null +++ b/Gopkg.toml @@ -0,0 +1,70 @@ +# Gopkg.toml example +# +# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md +# for detailed Gopkg.toml documentation. +# +# required = ["github.com/user/thing/cmd/thing"] +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" +# +# [prune] +# non-go = false +# go-tests = true +# unused-packages = true + + +[[constraint]] + name = "github.com/armon/go-socks5" + revision = "e75332964ef517daa070d7c38a9466a0d687e0a5" + +[[constraint]] + name = "github.com/fatedier/beego" + revision = "6c6a4f5bd5eb5a39f7e289b8f345b55f75e7e3e8" + +[[constraint]] + name = "github.com/fatedier/golib" + branch = "master" + +[[constraint]] + branch = "frp" + name = "github.com/fatedier/kcp-go" + +[[constraint]] + name = "github.com/gorilla/websocket" + version = "1.2.0" + +[[constraint]] + name = "github.com/hashicorp/yamux" + revision = "2658be15c5f05e76244154714161f17e3e77de2e" + +[[constraint]] + name = "github.com/rakyll/statik" + version = "0.1.0" + +[[constraint]] + name = "github.com/rodaine/table" + version = "1.0.0" + +[[constraint]] + name = "github.com/spf13/cobra" + version = "0.0.2" + +[[constraint]] + name = "github.com/vaughan0/go-ini" + revision = "a98ad7ee00ec53921f08832bc06ecf7fd600e6a1" + +[prune] + go-tests = true + unused-packages = true diff --git a/Makefile b/Makefile index 263ab35f1b..488e57a128 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ export PATH := $(GOPATH)/bin:$(PATH) -export GO15VENDOREXPERIMENT := 1 all: fmt build diff --git a/Makefile.cross-compiles b/Makefile.cross-compiles index c5dda4d457..ef243efa8b 100644 --- a/Makefile.cross-compiles +++ b/Makefile.cross-compiles @@ -1,5 +1,4 @@ export PATH := $(GOPATH)/bin:$(PATH) -export GO15VENDOREXPERIMENT := 1 LDFLAGS := -s -w all: build diff --git a/README.md b/README.md index ca1ed5cea6..faac9d1d53 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ frp is a fast reverse proxy to help you expose a local server behind a NAT or fi * [Expose a simple http file server](#expose-a-simple-http-file-server) * [Expose your service in security](#expose-your-service-in-security) * [P2P Mode](#p2p-mode) - * [Connect website through frpc's network](#connect-website-through-frpcs-network) * [Features](#features) * [Configuration File](#configuration-file) * [Dashboard](#dashboard) @@ -32,6 +31,7 @@ frp is a fast reverse proxy to help you expose a local server behind a NAT or fi * [Hot-Reload frpc configuration](#hot-reload-frpc-configuration) * [Get proxy status from client](#get-proxy-status-from-client) * [Port White List](#port-white-list) + * [Port Reuse](#port-reuse) * [TCP Stream Multiplexing](#tcp-stream-multiplexing) * [Support KCP Protocol](#support-kcp-protocol) * [Connection Pool](#connection-pool) @@ -333,26 +333,6 @@ Now it can't penetrate all types of NAT devices. You can try **stcp** if **xtcp* `ssh -oPort=6000 test@127.0.0.1` -### Connect website through frpc's network - -Configure frps same as above. - -1. Start frpc with configurations: - - ```ini - # frpc.ini - [common] - server_addr = x.x.x.x - server_port = 7000 - - [http_proxy] - type = tcp - remote_port = 6000 - plugin = http_proxy # or socks5 - ``` - -2. Set http proxy or socks5 proxy `x.x.x.x:6000` in your browser and visit website through frpc's network. - ## Features ### Configuration File @@ -434,6 +414,12 @@ allow_ports = 2000-3000,3001,3003,4000-50000 `allow_ports` consists of a specific port or a range of ports divided by `,`. +### Port Reuse + +Now `vhost_http_port` and `vhost_https_port` in frps can use same port with `bind_port`. frps will detect connection's protocol and handle it correspondingly. + +We would like to try to allow multiple proxies bind a same remote port with different protocols in the future. + ### TCP Stream Multiplexing frp support tcp stream multiplexing since v0.10.0 like HTTP2 Multiplexing. All user requests to same frpc can use only one tcp connection. diff --git a/README_zh.md b/README_zh.md index ee11011fbd..a4f95feef6 100644 --- a/README_zh.md +++ b/README_zh.md @@ -21,7 +21,6 @@ frp 是一个可用于内网穿透的高性能的反向代理应用,支持 tcp * [对外提供简单的文件访问服务](#对外提供简单的文件访问服务) * [安全地暴露内网服务](#安全地暴露内网服务) * [点对点内网穿透](#点对点内网穿透) - * [通过 frpc 所在机器访问外网](#通过-frpc-所在机器访问外网) * [功能说明](#功能说明) * [配置文件](#配置文件) * [Dashboard](#dashboard) @@ -30,6 +29,7 @@ frp 是一个可用于内网穿透的高性能的反向代理应用,支持 tcp * [客户端热加载配置文件](#客户端热加载配置文件) * [客户端查看代理状态](#客户端查看代理状态) * [端口白名单](#端口白名单) + * [端口复用](#端口复用) * [TCP 多路复用](#tcp-多路复用) * [底层通信可选 kcp 协议](#底层通信可选-kcp-协议) * [连接池](#连接池) @@ -348,28 +348,6 @@ frp 提供了一种新的代理类型 **xtcp** 用于应对在希望传输大量 `ssh -oPort=6000 test@127.0.0.1` -### 通过 frpc 所在机器访问外网 - -frpc 内置了 http proxy 和 socks5 插件,可以使其他机器通过 frpc 的网络访问互联网。 - -frps 的部署步骤同上。 - -1. 启动 frpc,启用 http_proxy 或 socks5 插件(plugin 换为 socks5 即可), 配置如下: - - ```ini - # frpc.ini - [common] - server_addr = x.x.x.x - server_port = 7000 - - [http_proxy] - type = tcp - remote_port = 6000 - plugin = http_proxy - ``` - -2. 浏览器设置 http 或 socks5 代理地址为 `x.x.x.x:6000`,通过 frpc 机器的网络访问互联网。 - ## 功能说明 ### 配置文件 @@ -461,6 +439,14 @@ allow_ports = 2000-3000,3001,3003,4000-50000 `allow_ports` 可以配置允许使用的某个指定端口或者是一个范围内的所有端口,以 `,` 分隔,指定的范围以 `-` 分隔。 +### 端口复用 + +目前 frps 中的 `vhost_http_port` 和 `vhost_https_port` 支持配置成和 `bind_port` 为同一个端口,frps 会对连接的协议进行分析,之后进行不同的处理。 + +例如在某些限制较严格的网络环境中,可以将 `bind_port` 和 `vhost_https_port` 都设置为 443。 + +后续会尝试允许多个 proxy 绑定同一个远端端口的不同协议。 + ### TCP 多路复用 从 v0.10.0 版本开始,客户端和服务器端之间的连接支持多路复用,不再需要为每一个用户请求创建一个连接,使连接建立的延迟降低,并且避免了大量文件描述符的占用,使 frp 可以承载更高的并发数。 diff --git a/assets/static/index.html b/assets/static/index.html index b2436b5280..47c06cb596 100644 --- a/assets/static/index.html +++ b/assets/static/index.html @@ -1 +1 @@ -
=0){var r="touchend"!=n?t.targetTouches[0]:t.changedTouches[0];r&&o(e,r,t,i)}else o(e,t,t,i),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var a=t.button;return null==t.which&&void 0!==a&&p.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function l(e,t,i){d?e.addEventListener(t,i):e.attachEvent("on"+t,i)}function s(e,t,i){d?e.removeEventListener(t,i):e.detachEvent("on"+t,i)}function c(e){return e.which>1}var u=i(44);t.Dispatcher=u;var h=i(14),d="undefined"!=typeof window&&!!window.addEventListener,p=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,f=d?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};t.clientToLocal=o,t.normalizeEvent=a,t.addEventListener=l,t.removeEventListener=s,t.stop=f,t.notLeftMouse=c},function(e,t,i){function n(e){return e=Math.round(e),e<0?0:e>255?255:e}function o(e){return e=Math.round(e),e<0?0:e>360?360:e}function r(e){return e<0?0:e>1?1:e}function a(e){return n(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function l(e){return r(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function s(e,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function c(e,t,i){return e+(t-e)*i}function u(e,t,i,n,o){return e[0]=t,e[1]=i,e[2]=n,e[3]=o,e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function d(e,t){k&&h(k,t),k=M.put(e,k||t.slice())}function p(e,t){if(e){t=t||[];var i=M.get(e);if(i)return h(t,i);e+="";var n=e.replace(/ /g,"").toLowerCase();if(n in A)return h(t,A[n]),d(e,t),t;if("#"!==n.charAt(0)){var o=n.indexOf("("),r=n.indexOf(")");if(-1!==o&&r+1===n.length){var s=n.substr(0,o),c=n.substr(o+1,r-(o+1)).split(","),p=1;switch(s){case"rgba":if(4!==c.length)return void u(t,0,0,0,1);p=l(c.pop());case"rgb":return 3!==c.length?void u(t,0,0,0,1):(u(t,a(c[0]),a(c[1]),a(c[2]),p),d(e,t),t);case"hsla":return 4!==c.length?void u(t,0,0,0,1):(c[3]=l(c[3]),f(c,t),d(e,t),t);case"hsl":return 3!==c.length?void u(t,0,0,0,1):(f(c,t),d(e,t),t);default:return}}u(t,0,0,0,1)}else{if(4===n.length){var g=parseInt(n.substr(1),16);return g>=0&&g<=4095?(u(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),d(e,t),t):void u(t,0,0,0,1)}if(7===n.length){var g=parseInt(n.substr(1),16);return g>=0&&g<=16777215?(u(t,(16711680&g)>>16,(65280&g)>>8,255&g,1),d(e,t),t):void u(t,0,0,0,1)}}}}function f(e,t){var i=(parseFloat(e[0])%360+360)%360/360,o=l(e[1]),r=l(e[2]),a=r<=.5?r*(o+1):r+o-r*o,c=2*r-a;return t=t||[],u(t,n(255*s(c,a,i+1/3)),n(255*s(c,a,i)),n(255*s(c,a,i-1/3)),1),4===e.length&&(t[3]=e[3]),t}function g(e){if(e){var t,i,n=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(n,o,r),l=Math.max(n,o,r),s=l-a,c=(l+a)/2;if(0===s)t=0,i=0;else{i=c<.5?s/(l+a):s/(2-l-a);var u=((l-n)/6+s/2)/s,h=((l-o)/6+s/2)/s,d=((l-r)/6+s/2)/s;n===l?t=d-h:o===l?t=1/3+u-d:r===l&&(t=2/3+h-u),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,i,c];return null!=e[3]&&p.push(e[3]),p}}function m(e,t){var i=p(e);if(i){for(var n=0;n<3;n++)i[n]=t<0?i[n]*(1-t)|0:(255-i[n])*t+i[n]|0;return w(i,4===i.length?"rgba":"rgb")}}function v(e){var t=p(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function x(e,t,i){if(t&&t.length&&e>=0&&e<=1){i=i||[];var o=e*(t.length-1),a=Math.floor(o),l=Math.ceil(o),s=t[a],u=t[l],h=o-a;return i[0]=n(c(s[0],u[0],h)),i[1]=n(c(s[1],u[1],h)),i[2]=n(c(s[2],u[2],h)),i[3]=r(c(s[3],u[3],h)),i}}function y(e,t,i){if(t&&t.length&&e>=0&&e<=1){var o=e*(t.length-1),a=Math.floor(o),l=Math.ceil(o),s=p(t[a]),u=p(t[l]),h=o-a,d=w([n(c(s[0],u[0],h)),n(c(s[1],u[1],h)),n(c(s[2],u[2],h)),r(c(s[3],u[3],h))],"rgba");return i?{color:d,leftIndex:a,rightIndex:l,value:o}:d}}function b(e,t,i,n){if(e=p(e))return e=g(e),null!=t&&(e[0]=o(t)),null!=i&&(e[1]=l(i)),null!=n&&(e[2]=l(n)),w(f(e),"rgba")}function _(e,t){if((e=p(e))&&null!=t)return e[3]=r(t),w(e,"rgba")}function w(e,t){if(e&&e.length){var i=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(i+=","+e[3]),t+"("+i+")"}}var S=i(228),A={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]},M=new S(20),k=null,I=x,T=y;t.parse=p,t.lift=m,t.toHex=v,t.fastLerp=x,t.fastMapToColor=I,t.lerp=y,t.mapToColor=T,t.modifyHSL=b,t.modifyAlpha=_,t.stringify=w},,function(e,t,i){function n(e){for(var t=0;t s&&(h=i+n,i*=s/h,n*=s/h),o+r>s&&(h=o+r,o*=s/h,r*=s/h),n+o>c&&(h=n+o,n*=c/h,o*=c/h),i+r>c&&(h=i+r,i*=c/h,r*=c/h),e.moveTo(a+i,l),e.lineTo(a+s-n,l),0!==n&&e.quadraticCurveTo(a+s,l,a+s,l+n),e.lineTo(a+s,l+c-o),0!==o&&e.quadraticCurveTo(a+s,l+c,a+s-o,l+c),e.lineTo(a+r,l+c),0!==r&&e.quadraticCurveTo(a,l+c,a,l+c-r),e.lineTo(a,l+i),0!==i&&e.quadraticCurveTo(a,l,a+i,l)}t.buildPath=i},function(e,t,i){var n=i(96),o=i(9),r=new o,a=function(){};a.prototype={constructor:a,drawRectText:function(e,t){var i=this.style;t=i.textRect||t,this.__dirty&&n.normalizeTextStyle(i,!0);var o=i.text;if(null!=o&&(o+=""),n.needDrawText(o,i)){e.save();var a=this.transform;i.transformText?this.setTransform(e):a&&(r.copy(t),r.applyTransform(a),t=r),n.renderText(this,e,o,i,t),e.restore()}}};var l=a;e.exports=l},function(e,t,i){function n(e,t,i){this._svgRoot=e,this._tagNames="string"==typeof t?[t]:t,this._markLabel=i,this.nextId=0}var o=i(139),r=o.createElement,a=i(0),l=i(15),s=i(69),c=i(70),u=i(140),h=u.path,d=u.image,p=u.text;n.prototype.createElement=r,n.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),i.contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),i):null:i[0]},n.prototype.update=function(e,t){if(e){var i=this.getDefs(!1);if(e._dom&&i.contains(e._dom))"function"==typeof t&&t();else{var n=this.add(e);n&&(e._dom=n)}}},n.prototype.addDom=function(e){this.getDefs(!0).appendChild(e)},n.prototype.removeDom=function(e){this.getDefs(!1).removeChild(e._dom)},n.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return a.each(this._tagNames,function(i){var n=e.getElementsByTagName(i);t=t.concat([].slice.call(n))}),t},n.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;a.each(e,function(e){e[t._markLabel]="0"})},n.prototype.markUsed=function(e){e&&(e[this._markLabel]="1")},n.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),i=this;a.each(t,function(t){"1"!==t[i._markLabel]&&e.removeChild(t)})}},n.prototype.getSvgProxy=function(e){return e instanceof l?h:e instanceof s?d:e instanceof c?p:h},n.prototype.getTextSvgElement=function(e){return e.__textSvgEl},n.prototype.getSvgElement=function(e){return e.__svgEl};var f=n;e.exports=f},function(e,t,i){function n(e){return r(e)}function o(){if(!c&&u){c=!0;var e=u.styleSheets;e.length<31?u.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}var r,a=i(14),l="urn:schemas-microsoft-com:vml",s="undefined"==typeof window?null:window,c=!1,u=s&&s.document;if(u&&!a.canvasSupported)try{!u.namespaces.zrvml&&u.namespaces.add("zrvml",l),r=function(e){return u.createElement(" =0){var r="touchend"!=n?t.targetTouches[0]:t.changedTouches[0];r&&o(e,r,t,i)}else o(e,t,t,i),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var a=t.button;return null==t.which&&void 0!==a&&p.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function l(e,t,i){d?e.addEventListener(t,i):e.attachEvent("on"+t,i)}function s(e,t,i){d?e.removeEventListener(t,i):e.detachEvent("on"+t,i)}function c(e){return e.which>1}var u=i(44);t.Dispatcher=u;var h=i(14),d="undefined"!=typeof window&&!!window.addEventListener,p=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,f=d?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};t.clientToLocal=o,t.normalizeEvent=a,t.addEventListener=l,t.removeEventListener=s,t.stop=f,t.notLeftMouse=c},function(e,t,i){function n(e){return e=Math.round(e),e<0?0:e>255?255:e}function o(e){return e=Math.round(e),e<0?0:e>360?360:e}function r(e){return e<0?0:e>1?1:e}function a(e){return n(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function l(e){return r(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function s(e,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function c(e,t,i){return e+(t-e)*i}function u(e,t,i,n,o){return e[0]=t,e[1]=i,e[2]=n,e[3]=o,e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function d(e,t){I&&h(I,t),I=M.put(e,I||t.slice())}function p(e,t){if(e){t=t||[];var i=M.get(e);if(i)return h(t,i);e+="";var n=e.replace(/ /g,"").toLowerCase();if(n in A)return h(t,A[n]),d(e,t),t;if("#"!==n.charAt(0)){var o=n.indexOf("("),r=n.indexOf(")");if(-1!==o&&r+1===n.length){var s=n.substr(0,o),c=n.substr(o+1,r-(o+1)).split(","),p=1;switch(s){case"rgba":if(4!==c.length)return void u(t,0,0,0,1);p=l(c.pop());case"rgb":return 3!==c.length?void u(t,0,0,0,1):(u(t,a(c[0]),a(c[1]),a(c[2]),p),d(e,t),t);case"hsla":return 4!==c.length?void u(t,0,0,0,1):(c[3]=l(c[3]),f(c,t),d(e,t),t);case"hsl":return 3!==c.length?void u(t,0,0,0,1):(f(c,t),d(e,t),t);default:return}}u(t,0,0,0,1)}else{if(4===n.length){var g=parseInt(n.substr(1),16);return g>=0&&g<=4095?(u(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),d(e,t),t):void u(t,0,0,0,1)}if(7===n.length){var g=parseInt(n.substr(1),16);return g>=0&&g<=16777215?(u(t,(16711680&g)>>16,(65280&g)>>8,255&g,1),d(e,t),t):void u(t,0,0,0,1)}}}}function f(e,t){var i=(parseFloat(e[0])%360+360)%360/360,o=l(e[1]),r=l(e[2]),a=r<=.5?r*(o+1):r+o-r*o,c=2*r-a;return t=t||[],u(t,n(255*s(c,a,i+1/3)),n(255*s(c,a,i)),n(255*s(c,a,i-1/3)),1),4===e.length&&(t[3]=e[3]),t}function g(e){if(e){var t,i,n=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(n,o,r),l=Math.max(n,o,r),s=l-a,c=(l+a)/2;if(0===s)t=0,i=0;else{i=c<.5?s/(l+a):s/(2-l-a);var u=((l-n)/6+s/2)/s,h=((l-o)/6+s/2)/s,d=((l-r)/6+s/2)/s;n===l?t=d-h:o===l?t=1/3+u-d:r===l&&(t=2/3+h-u),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,i,c];return null!=e[3]&&p.push(e[3]),p}}function m(e,t){var i=p(e);if(i){for(var n=0;n<3;n++)i[n]=t<0?i[n]*(1-t)|0:(255-i[n])*t+i[n]|0;return w(i,4===i.length?"rgba":"rgb")}}function v(e){var t=p(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function x(e,t,i){if(t&&t.length&&e>=0&&e<=1){i=i||[];var o=e*(t.length-1),a=Math.floor(o),l=Math.ceil(o),s=t[a],u=t[l],h=o-a;return i[0]=n(c(s[0],u[0],h)),i[1]=n(c(s[1],u[1],h)),i[2]=n(c(s[2],u[2],h)),i[3]=r(c(s[3],u[3],h)),i}}function y(e,t,i){if(t&&t.length&&e>=0&&e<=1){var o=e*(t.length-1),a=Math.floor(o),l=Math.ceil(o),s=p(t[a]),u=p(t[l]),h=o-a,d=w([n(c(s[0],u[0],h)),n(c(s[1],u[1],h)),n(c(s[2],u[2],h)),r(c(s[3],u[3],h))],"rgba");return i?{color:d,leftIndex:a,rightIndex:l,value:o}:d}}function _(e,t,i,n){if(e=p(e))return e=g(e),null!=t&&(e[0]=o(t)),null!=i&&(e[1]=l(i)),null!=n&&(e[2]=l(n)),w(f(e),"rgba")}function b(e,t){if((e=p(e))&&null!=t)return e[3]=r(t),w(e,"rgba")}function w(e,t){if(e&&e.length){var i=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(i+=","+e[3]),t+"("+i+")"}}var S=i(228),A={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]},M=new S(20),I=null,T=x,k=y;t.parse=p,t.lift=m,t.toHex=v,t.fastLerp=x,t.fastMapToColor=T,t.lerp=y,t.mapToColor=k,t.modifyHSL=_,t.modifyAlpha=b,t.stringify=w},,function(e,t,i){function n(e){for(var t=0;t s&&(h=i+n,i*=s/h,n*=s/h),o+r>s&&(h=o+r,o*=s/h,r*=s/h),n+o>c&&(h=n+o,n*=c/h,o*=c/h),i+r>c&&(h=i+r,i*=c/h,r*=c/h),e.moveTo(a+i,l),e.lineTo(a+s-n,l),0!==n&&e.quadraticCurveTo(a+s,l,a+s,l+n),e.lineTo(a+s,l+c-o),0!==o&&e.quadraticCurveTo(a+s,l+c,a+s-o,l+c),e.lineTo(a+r,l+c),0!==r&&e.quadraticCurveTo(a,l+c,a,l+c-r),e.lineTo(a,l+i),0!==i&&e.quadraticCurveTo(a,l,a+i,l)}t.buildPath=i},function(e,t,i){var n=i(96),o=i(9),r=new o,a=function(){};a.prototype={constructor:a,drawRectText:function(e,t){var i=this.style;t=i.textRect||t,this.__dirty&&n.normalizeTextStyle(i,!0);var o=i.text;if(null!=o&&(o+=""),n.needDrawText(o,i)){e.save();var a=this.transform;i.transformText?this.setTransform(e):a&&(r.copy(t),r.applyTransform(a),t=r),n.renderText(this,e,o,i,t),e.restore()}}};var l=a;e.exports=l},function(e,t,i){function n(e,t,i){this._svgRoot=e,this._tagNames="string"==typeof t?[t]:t,this._markLabel=i,this.nextId=0}var o=i(139),r=o.createElement,a=i(0),l=i(15),s=i(69),c=i(70),u=i(140),h=u.path,d=u.image,p=u.text;n.prototype.createElement=r,n.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),i.contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),i):null:i[0]},n.prototype.update=function(e,t){if(e){var i=this.getDefs(!1);if(e._dom&&i.contains(e._dom))"function"==typeof t&&t();else{var n=this.add(e);n&&(e._dom=n)}}},n.prototype.addDom=function(e){this.getDefs(!0).appendChild(e)},n.prototype.removeDom=function(e){this.getDefs(!1).removeChild(e._dom)},n.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return a.each(this._tagNames,function(i){var n=e.getElementsByTagName(i);t=t.concat([].slice.call(n))}),t},n.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;a.each(e,function(e){e[t._markLabel]="0"})},n.prototype.markUsed=function(e){e&&(e[this._markLabel]="1")},n.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),i=this;a.each(t,function(t){"1"!==t[i._markLabel]&&e.removeChild(t)})}},n.prototype.getSvgProxy=function(e){return e instanceof l?h:e instanceof s?d:e instanceof c?p:h},n.prototype.getTextSvgElement=function(e){return e.__textSvgEl},n.prototype.getSvgElement=function(e){return e.__svgEl};var f=n;e.exports=f},function(e,t,i){function n(e){return r(e)}function o(){if(!c&&u){c=!0;var e=u.styleSheets;e.length<31?u.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}var r,a=i(14),l="urn:schemas-microsoft-com:vml",s="undefined"==typeof window?null:window,c=!1,u=s&&s.document;if(u&&!a.canvasSupported)try{!u.namespaces.zrvml&&u.namespaces.add("zrvml",l),r=function(e){return u.createElement("s||h>0&&m
":arguments[1];return e.replace(/\n/g,t)},br2nl:function(e){var t=arguments.length<=1||void 0===arguments[1]?"\r\n":arguments[1];return e.replace(/\
/g,t)},capitalize:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return""+e.charAt(0).toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))},capitalizeAll:function(e){return e.replace(/(?:^|\s)\S/g,function(e){return e.toUpperCase()})},titleCase:function(e){var t=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,i=/\S+[A-Z]+\S*/,n=/\s+/,o=/-/,r=void 0;return(r=function(e){for(var a=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],s=arguments.length<=2||void 0===arguments[2]||arguments[2],c=[],u=e.split(a?o:n),h=0;h0?1.1:1/1.1;c.call(this,e,t,e.offsetX,e.offsetY)}}function s(e){if(!f.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;c.call(this,e,t,e.pinchX,e.pinchY)}}function c(e,t,i,n){this.pointerChecker&&this.pointerChecker(e,i,n)&&(p.stop(e.event),this.trigger("zoom",t,i,n))}function u(e,t,i){var n=e._opt[t];return n&&(!h.isString(n)||i.event[n+"Key"])}var h=i(0),d=i(44),p=i(27),f=i(182);h.mixin(n,d);var g=n;e.exports=g},function(e,t,i){function n(e,t,i,n){o.each(u,function(a){t.extend({type:e+"Axis."+a,mergeDefaultAndTheme:function(t,n){var r=this.layoutMode,l=r?s(t):{},u=n.getTheme();o.merge(t,u.get(a+"Axis")),o.merge(t,this.getDefaultOption()),t.type=i(e,t),r&&c(t,l,r)},defaultOption:o.mergeAll([{},r[a+"Axis"],n],!0)})}),a.registerSubTypeDefaulter(e+"Axis",o.curry(i,e))}var o=i(0),r=i(199),a=i(13),l=i(6),s=l.getLayoutParams,c=l.mergeLayoutParam,u=["value","category","time","log"];e.exports=n},function(e,t,i){function n(e,t){var i=e.get("boundingCoords");if(null!=i){var n=i[0],o=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(o[0])||isNaN(o[1])||this.setBoundingRect(n[0],n[1],o[0]-n[0],o[1]-n[1])}var r,a=this.getBoundingRect(),l=e.get("layoutCenter"),s=e.get("layoutSize"),h=t.getWidth(),d=t.getHeight(),p=e.get("aspectScale")||.75,f=a.width/a.height*p,g=!1;l&&s&&(l=[u.parsePercent(l[0],h),u.parsePercent(l[1],d)],s=u.parsePercent(s,Math.min(h,d)),isNaN(l[0])||isNaN(l[1])||isNaN(s)||(g=!0));var m;if(g){var m={};f>1?(m.width=s,m.height=s/f):(m.height=s,m.width=s*f),m.y=l[1]-m.height/2,m.x=l[0]-m.width/2}else r=e.getBoxLayoutParams(),r.aspect=f,m=c.getLayoutRect(r,{width:h,height:d});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function o(e,t){l.each(t.get("geoCoord"),function(t,i){e.addGeoCoord(i,t)})}var r=i(4),a=(r.__DEV__,i(1)),l=i(0),s=i(523),c=i(6),u=i(3),h={dimensions:s.prototype.dimensions,create:function(e,t){var i=[];e.eachComponent("geo",function(e,r){var l=e.get("map"),c=a.getMap(l),u=new s(l+r,l,c&&c.geoJson,c&&c.specialAreas,e.get("nameMap"));u.zoomLimit=e.get("scaleLimit"),i.push(u),o(u,e),e.coordinateSystem=u,u.model=e,u.resize=n,u.resize(e,t)}),e.eachSeries(function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=i[t]}});var r={};return e.eachSeriesByType("map",function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}}),l.each(r,function(e,r){var c=a.getMap(r),u=l.map(e,function(e){return e.get("nameMap")}),h=new s(r,r,c&&c.geoJson,c&&c.specialAreas,l.mergeAll(u));h.zoomLimit=l.retrieve.apply(null,l.map(e,function(e){return e.get("scaleLimit")})),i.push(h),h.resize=n,h.resize(e[0],t),l.each(e,function(e){e.coordinateSystem=h,o(h,e)})}),i},getFilledRegions:function(e,t,i){var n=(e||[]).slice();i=i||{};var o=a.getMap(t),r=o&&o.geoJson;if(!r)return e;for(var s=l.createHashMap(),c=r.features,u=0;u.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||g,textAlign:n.__textAlign||f},position:p,scale:[o,o]})}}}}function s(e,t,i){p.Group.call(this),this._createLine(e,t,i)}var c=i(0),u=i(7),h=i(20),d=i(371),p=i(2),f=i(3),g=f.round,m=["fromSymbol","toSymbol"],v=s.prototype;v.beforeUpdate=l,v._createLine=function(e,t,i){var a=e.hostModel,l=e.getItemLayout(t),s=r(l);s.shape.percent=0,p.initProps(s,{shape:{percent:1}},a,t),this.add(s);var u=new p.Text({name:"label"});this.add(u),c.each(m,function(i){var r=o(i,e,t);this.add(r),this[n(i)]=e.getItemVisual(t,i)},this),this._updateCommonStl(e,t,i)},v.updateData=function(e,t,i){var r=e.hostModel,l=this.childOfName("line"),s=e.getItemLayout(t),u={shape:{}};a(u.shape,s),p.updateProps(l,u,r,t),c.each(m,function(i){var r=e.getItemVisual(t,i),a=n(i);if(this[a]!==r){this.remove(this.childOfName(i));var l=o(i,e,t);this.add(l)}this[a]=r},this),this._updateCommonStl(e,t,i)},v._updateCommonStl=function(e,t,i){var n=e.hostModel,o=this.childOfName("line"),r=i&&i.lineStyle,a=i&&i.hoverLineStyle,l=i&&i.labelModel,s=i&&i.hoverLabelModel;if(!i||e.hasItemOption){var u=e.getItemModel(t);r=u.getModel("lineStyle.normal").getLineStyle(),a=u.getModel("lineStyle.emphasis").getLineStyle(),l=u.getModel("label.normal"),s=u.getModel("label.emphasis")}var h=e.getItemVisual(t,"color"),d=c.retrieve3(e.getItemVisual(t,"opacity"),r.opacity,1);o.useStyle(c.defaults({strokeNoScale:!0,fill:"none",stroke:h,opacity:d},r)),o.hoverStyle=a,c.each(m,function(e){var t=this.childOfName(e);t&&(t.setColor(h),t.setStyle({opacity:d}))},this);var f,v,x,y,b=l.getShallow("show"),_=s.getShallow("show"),w=this.childOfName("label");if(b||_){var S=n.getRawValue(t);v=null==S?v=e.getName(t):isFinite(S)?g(S):S,f=h||"#000",x=c.retrieve2(n.getFormattedLabel(t,"normal",e.dataType),v),y=c.retrieve2(n.getFormattedLabel(t,"emphasis",e.dataType),x)}if(b){var A=p.setTextStyle(w.style,l,{text:x},{autoColor:f});w.__textAlign=A.textAlign,w.__verticalAlign=A.textVerticalAlign,w.__position=l.get("position")||"middle"}else w.setStyle("text",null);w.hoverStyle=_?{text:y,textFill:s.getTextColor(!0),fontStyle:s.getShallow("fontStyle"),fontWeight:s.getShallow("fontWeight"),fontSize:s.getShallow("fontSize"),fontFamily:s.getShallow("fontFamily")}:{text:null},w.ignore=!b&&!_,p.setHoverStyle(this)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},v.setLinePoints=function(e){var t=this.childOfName("line");a(t.shape,e),t.dirty()},c.inherits(s,p.Group);var x=s;e.exports=x},function(e,t,i){function n(e){return isNaN(e[0])||isNaN(e[1])}function o(e){return!n(e[0])&&!n(e[1])}function r(e){this._ctor=e||l,this.group=new a.Group}var a=i(2),l=i(112),s=r.prototype;s.updateData=function(e){var t=this._lineData,i=this.group,n=this._ctor,r=e.hostModel,a={lineStyle:r.getModel("lineStyle.normal").getLineStyle(),hoverLineStyle:r.getModel("lineStyle.emphasis").getLineStyle(),labelModel:r.getModel("label.normal"),hoverLabelModel:r.getModel("label.emphasis")};e.diff(t).add(function(t){if(o(e.getItemLayout(t))){var r=new n(e,t,a);e.setItemGraphicEl(t,r),i.add(r)}}).update(function(r,l){var s=t.getItemGraphicEl(l);if(!o(e.getItemLayout(r)))return void i.remove(s);s?s.updateData(e,r,a):s=new n(e,r,a),e.setItemGraphicEl(r,s),i.add(s)}).remove(function(e){i.remove(t.getItemGraphicEl(e))}).execute(),this._lineData=e},s.updateLayout=function(){var e=this._lineData;e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},s.remove=function(){this.group.removeAll()};var c=r;e.exports=c},function(e,t,i){function n(){}function o(e,t,i,n){r(m(i).lastProp,n)||(m(i).lastProp=n,t?h.updateProps(i,n,e):(i.stopAnimation(),i.attr(n)))}function r(e,t){if(c.isObject(e)&&c.isObject(t)){var i=!0;return c.each(t,function(t,n){i=i&&r(e[n],t)}),!!i}return e===t}function a(e,t){e[t.get("label.show")?"show":"hide"]()}function l(e){return{position:e.position.slice(),rotation:e.rotation||0}}function s(e,t,i){var n=t.get("z"),o=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=o&&(e.zlevel=o),e.silent=i)})}var c=i(0),u=i(26),h=i(2),d=i(81),p=i(27),f=i(39),g=i(5),m=g.makeGetter(),v=c.clone,x=c.bind;n.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,i,n){var r=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,n||this._lastValue!==r||this._lastStatus!==a){this._lastValue=r,this._lastStatus=a;var l=this._group,u=this._handle;if(!a||"hide"===a)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var d={};this.makeElOption(d,r,e,t,i);var p=d.graphicKey;p!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=p;var f=this._moveAnimation=this.determineAnimation(e,t);if(l){var g=c.curry(o,t,f);this.updatePointerEl(l,d,g,t),this.updateLabelEl(l,d,g,t)}else l=this._group=new h.Group,this.createPointerEl(l,d,e,t),this.createLabelEl(l,d,e,t),i.getZr().add(l);s(l,t,!0),this._renderHandle(r)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var i=t.get("animation"),n=e.axis,o="category"===n.type,r=t.get("snap");if(!r&&!o)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(o&&n.getBandWidth()>a)return!0;if(r){var l=d.getAxisInfo(e).seriesDataCount,s=n.getExtent();return Math.abs(s[0]-s[1])/l>a}return!1}return!0===i},makeElOption:function(e,t,i,n,o){},createPointerEl:function(e,t,i,n){var o=t.pointer;if(o){var r=m(e).pointerEl=new h[o.type](v(t.pointer));e.add(r)}},createLabelEl:function(e,t,i,n){if(t.label){var o=m(e).labelEl=new h.Rect(v(t.label));e.add(o),a(o,n)}},updatePointerEl:function(e,t,i){var n=m(e).pointerEl;n&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,i,n){var o=m(e).labelEl;o&&(o.setStyle(t.label.style),i(o,{shape:t.label.shape,position:t.label.position}),a(o,n))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,i=this._api.getZr(),n=this._handle,o=t.getModel("handle"),r=t.get("status");if(!o.get("show")||!r||"hide"===r)return n&&i.remove(n),void(this._handle=null);var a;this._handle||(a=!0,n=this._handle=h.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){p.stop(e.event)},onmousedown:x(this._onHandleDragMove,this,0,0),drift:x(this._onHandleDragMove,this),ondragend:x(this._onHandleDragEnd,this)}),i.add(n)),s(n,t,!1);var l=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];n.setStyle(o.getItemStyle(null,l));var u=o.get("size");c.isArray(u)||(u=[u,u]),n.attr("scale",[u[0]/2,u[1]/2]),f.createOrUpdate(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,a)}},_moveHandleToValue:function(e,t){o(this._axisPointerModel,!t&&this._moveAnimation,this._handle,l(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(l(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(l(n)),m(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var 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){if(this._dragging=!1,this._handle){var 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(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}}},n.prototype.constructor=n,u.enableClassExtend(n);var y=n;e.exports=y},function(e,t,i){function n(e){return a.indexOf(c,e)>=0}function o(e,t){e=e.slice();var i=a.map(e,l.capitalFirst);t=(t||[]).slice();var n=a.map(t,l.capitalFirst);return function(o,r){a.each(e,function(e,a){for(var l={name:e,capital:i[a]},s=0;s>>1);r(e,t[i+u])>0?a=u+1:s=u}return s}function l(e,t,i,n,o,r){var a=0,l=0,s=1;if(r(e,t[i+o])<0){for(l=o+1;s>>1);r(e,t[i+u])<0?s=u:a=u+1}return s}function s(e,t){function i(e,t){u[g]=e,d[g]=t,g+=1}function n(){for(;g>1;){var e=g-2;if(e>=1&&d[e-1]<=d[e]+d[e+1]||e>=2&&d[e-2]<=d[e]+d[e-1])d[e-1]
");var i=!0,n=!1,o=void 0;try{for(var r,a=e[Symbol.iterator]();!(i=(r=a.next()).done);i=!0){var s=r.value;t+=''+s.seriesName+": "+l.a.fileSize(s.value)+"
"}}catch(e){n=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw o}}return t}},legend:{data:["Traffic In","Traffic Out"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:a}],yAxis:[{type:"value",axisLabel:{formatter:function(e){return l.a.fileSize(e)}}}],series:[{name:"Traffic In",type:"bar",data:t},{name:"Traffic Out",type:"bar",data:i}]};o.setOption(u),o.hideLoading()}i.d(t,"b",function(){return n}),i.d(t,"c",function(){return o}),i.d(t,"a",function(){return r});var a=i(66),l=i.n(a),s=i(1),c=i.n(s),u=i(569),h=(i.n(u),i(157)),d=(i.n(h),i(167)),p=(i.n(d),i(190)),f=(i.n(p),i(189));i.n(f)},,,,,,,,,,,,function(e,t,i){function n(e,t){r.each(t,function(t){t.update="updateView",o.registerAction(t,function(i,n){var o={};return n.eachComponent({mainType:"series",subType:e,query:i},function(e){e[t.method]&&e[t.method](i.name,i.dataIndex);var n=e.getData();n.each(function(t){var i=n.getName(t);o[i]=e.isSelected(i)||!1})}),{name:i.name,selected:o}})})}var o=i(1),r=i(0);e.exports=n},function(e,t,i){var n=i(1),o=i(0),r=i(156),a=r.updateCenterAndZoom;n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateLayout"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(t){var n=t.coordinateSystem;if("geo"===n.type){var r=a(n,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom),"series"===i&&o.each(t.seriesGroup,function(e){e.setCenter(r.center),e.setZoom(r.zoom)})}})})},function(e,t){function i(e,t,i){var n=e.getZoom(),o=e.getCenter(),r=t.zoom,a=e.dataToPoint(o);if(null!=t.dx&&null!=t.dy){a[0]-=t.dx,a[1]-=t.dy;var o=e.pointToData(a);e.setCenter(o)}if(null!=r){if(i){var l=i.min||0,s=i.max||1/0;r=Math.max(Math.min(n*r,s),l)/n}e.scale[0]*=r,e.scale[1]*=r;var c=e.position,u=(t.originX-c[0])*(r-1),h=(t.originY-c[1])*(r-1);c[0]-=u,c[1]-=h,e.updateTransform();var o=e.pointToData(a);e.setCenter(o),e.setZoom(r*n)}return{center:e.getCenter(),zoom:e.getZoom()}}t.updateCenterAndZoom=i},function(e,t,i){var n=i(1),o=i(0),r=i(124);i(122),i(322),i(323),i(64),n.registerLayout(o.curry(r,"bar")),n.registerVisual(function(e){e.eachSeriesByType("bar",function(e){e.getData().setVisual("legendSymbol","roundRect")})})},function(e,t,i){var n=i(16),o=i(30),r=n.extend({type:"series.__base_bar__",getInitialData:function(e,t){return o(e.data,this,t)},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var i=t.dataToPoint(e,!0),n=this.getData(),o=n.getLayout("offset"),r=n.getLayout("size");return i[t.getBaseAxis().isHorizontal()?0:1]+=o+r/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,itemStyle:{}}});e.exports=r},function(e,t,i){function n(e,t,i,n,a,l,s){var c=i.getModel("label.normal"),u=i.getModel("label.emphasis");r.setLabelStyle(e,t,c,u,{labelFetcher:a,labelDataIndex:l,defaultText:a.getRawValue(l),isRectText:!0,autoColor:n}),o(e),o(t)}function o(e,t){"outside"===e.textPosition&&(e.textPosition=t)}var r=i(2);t.setLabel=n},function(e,t,i){function n(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var i=t.getBoundingRect(),n=e.getData(),r=n.graph,a=0,l=n.getSum("value"),s=2*Math.PI/(l||n.count()),c=i.width/2+i.x,u=i.height/2+i.y,h=Math.min(i.width,i.height)/2;r.eachNode(function(e){var t=e.getValue("value");a+=s*(l?t:1)/2,e.setLayout([h*Math.cos(a)+c,h*Math.sin(a)+u]),a+=s*(l?t:1)/2}),n.setLayout({cx:c,cy:u}),r.eachEdge(function(e){var t,i=e.getModel().get("lineStyle.normal.curveness")||0,n=o.clone(e.node1.getLayout()),r=o.clone(e.node2.getLayout()),a=(n[0]+r[0])/2,l=(n[1]+r[1])/2;+i&&(i*=3,t=[c*i+a*(1-i),u*i+l*(1-i)]),e.setLayout([n,r,t])})}}var o=i(7);t.circularLayout=n},function(e,t,i){function n(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var i=e.getGraph();i.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])}),o(i)}}function o(e){e.eachEdge(function(e){var t=e.getModel().get("lineStyle.normal.curveness")||0,i=r.clone(e.node1.getLayout()),n=r.clone(e.node2.getLayout()),o=[i,n];+t&&o.push([(i[0]+n[0])/2-(i[1]-n[1])*t,(i[1]+n[1])/2-(n[0]-i[0])*t]),e.setLayout(o)})}var r=i(7);t.simpleLayout=n,t.simpleLayoutEdge=o},function(e,t,i){function n(e,t,i){o.Group.call(this),this.add(this.createLine(e,t,i)),this._updateEffectSymbol(e,t)}var o=i(2),r=i(112),a=i(0),l=i(20),s=l.createSymbol,c=i(7),u=i(35),h=n.prototype;h.createLine=function(e,t,i){return new r(e,t,i)},h._updateEffectSymbol=function(e,t){var i=e.getItemModel(t),n=i.getModel("effect"),o=n.get("symbolSize"),r=n.get("symbol");a.isArray(o)||(o=[o,o]);var l=n.get("color")||e.getItemVisual(t,"color"),c=this.childAt(1);this._symbolType!==r&&(this.remove(c),c=s(r,-.5,-.5,1,1,l),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",l),c.setStyle(n.getItemStyle(["color"])),c.attr("scale",o),c.setColor(l),c.attr("scale",o),this._symbolType=r,this._updateEffectAnimation(e,n,t))},h._updateEffectAnimation=function(e,t,i){var n=this.childAt(1);if(n){var o=this,r=e.getItemLayout(i),l=1e3*t.get("period"),s=t.get("loop"),c=t.get("constantSpeed"),u=a.retrieve(t.get("delay"),function(t){return t/e.count()*l/3}),h="function"==typeof u;if(n.ignore=!0,this.updateAnimationPoints(n,r),c>0&&(l=this.getLineLength(n)/c*1e3),l!==this._period||s!==this._loop){n.stopAnimation();var d=u;h&&(d=u(i)),n.__t>0&&(d=-l*n.__t),n.__t=0;var p=n.animate("",s).when(l,{__t:1}).delay(d).during(function(){o.updateSymbolPosition(n)});s||p.done(function(){o.remove(n)}),p.start()}this._period=l,this._loop=s}},h.getLineLength=function(e){return c.dist(e.__p1,e.__cp1)+c.dist(e.__cp1,e.__p2)},h.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]},h.updateData=function(e,t,i){this.childAt(0).updateData(e,t,i),this._updateEffectSymbol(e,t)},h.updateSymbolPosition=function(e){var t=e.__p1,i=e.__p2,n=e.__cp1,o=e.__t,r=e.position,a=u.quadraticAt,l=u.quadraticDerivativeAt;r[0]=a(t[0],n[0],i[0],o),r[1]=a(t[1],n[1],i[1],o);var s=l(t[0],n[0],i[0],o),c=l(t[1],n[1],i[1],o);e.rotation=-Math.atan2(c,s)-Math.PI/2,e.ignore=!1},h.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var i=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,i,t)},a.inherits(n,o.Group);var d=n;e.exports=d},function(e,t,i){function n(e,t,i){o.Group.call(this),this._createPolyline(e,t,i)}var o=i(2),r=i(0),a=n.prototype;a._createPolyline=function(e,t,i){var n=e.getItemLayout(t),r=new o.Polyline({shape:{points:n}});this.add(r),this._updateCommonStl(e,t,i)},a.updateData=function(e,t,i){var n=e.hostModel,r=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};o.updateProps(r,a,n,t),this._updateCommonStl(e,t,i)},a._updateCommonStl=function(e,t,i){var n=this.childAt(0),a=e.getItemModel(t),l=e.getItemVisual(t,"color"),s=i&&i.lineStyle,c=i&&i.hoverLineStyle;i&&!e.hasItemOption||(s=a.getModel("lineStyle.normal").getLineStyle(),c=a.getModel("lineStyle.emphasis").getLineStyle()),n.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:l},s)),n.hoverStyle=c,o.setHoverStyle(this)},a.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},r.inherits(n,o.Group);var l=n;e.exports=l},function(e,t,i){function n(e,t,i,n,h){for(var d=new a(n),p=0;px.getLayout().x&&(x=e),e.depth>y.depth&&(y=e)});var b=v===x?1:f(v,x)/2,_=b-v.getLayout().x,w=0,S=0,A=0,M=0;"radial"===n?(w=o/(x.getLayout().x+b+_),S=l/(y.depth-1||1),a(m,function(e){A=(e.getLayout().x+_)*w,M=(e.depth-1)*S;var t=d(A,M);e.setLayout({x:t.x,y:t.y,rawX:A,rawY:M},!0)})):"horizontal"===e.get("orient")?(S=l/(x.getLayout().x+b+_),w=o/(y.depth-1||1),a(m,function(e){M=(e.getLayout().x+_)*S,A=(e.depth-1)*w,e.setLayout({x:A,y:M},!0)})):(w=o/(x.getLayout().x+b+_),S=l/(y.depth-1||1),a(m,function(e){A=(e.getLayout().x+_)*w,M=(e.depth-1)*S,e.setLayout({x:A,y:M},!0)}))}var o=i(421),r=o.eachAfter,a=o.eachBefore,l=i(169),s=l.init,c=l.firstWalk,u=l.secondWalk,h=l.separation,d=l.radialCoordinate,p=l.getViewRect;e.exports=n},function(e,t,i){function n(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t,i,n=[e];t=n.pop();)if(i=t.children,t.isExpand&&i.length)for(var o=i.length,r=o-1;r>=0;r--){var a=i[r];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},n.push(a)}}function o(e,t){var i=e.isExpand?e.children:[],n=e.parentNode.children,o=e.hierNode.i?n[e.hierNode.i-1]:null;if(i.length){c(e);var r=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;o?(e.hierNode.prelim=o.hierNode.prelim+t(e,o),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else o&&(e.hierNode.prelim=o.hierNode.prelim+t(e,o));e.parentNode.hierNode.defaultAncestor=u(e,o,e.parentNode.hierNode.defaultAncestor||n[0],t)}function r(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function a(e){return arguments.length?e:g}function l(e,t){var i={};return e-=Math.PI/2,i.x=t*Math.cos(e),i.y=t*Math.sin(e),i}function s(e,t){return m.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e){for(var t=e.children,i=t.length,n=0,o=0;--i>=0;){var r=t[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,o+=r.hierNode.change,n+=r.hierNode.shift+o}}function u(e,t,i,n){if(t){for(var o=e,r=e,a=r.parentNode.children[0],l=t,s=o.hierNode.modifier,c=r.hierNode.modifier,u=a.hierNode.modifier,g=l.hierNode.modifier;l=h(l),r=d(r),l&&r;){o=h(o),a=d(a),o.hierNode.ancestor=e;var m=l.hierNode.prelim+g-r.hierNode.prelim-c+n(l,r);m>0&&(f(p(l,e,i),e,m),c+=m,s+=m),g+=l.hierNode.modifier,c+=r.hierNode.modifier,s+=o.hierNode.modifier,u+=a.hierNode.modifier}l&&!h(o)&&(o.hierNode.thread=l,o.hierNode.modifier+=g-s),r&&!d(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=c-u,i=e)}return i}function h(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function d(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function p(e,t,i){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:i}function f(e,t,i){var n=i/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=i,t.hierNode.modifier+=i,t.hierNode.prelim+=i,e.hierNode.change+=n}function g(e,t){return e.parentNode===t.parentNode?1:2}var m=i(6);t.init=n,t.firstWalk=o,t.secondWalk=r,t.separation=a,t.radialCoordinate=l,t.getViewRect=s},function(e,t,i){function n(e,t,i){i=i||{};var n=e.coordinateSystem,r=t.axis,a={},l=r.position,s=r.onZero?"onZero":l,c=r.dim,u=n.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,f="x"===c?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(r.onZero){var g=n.getAxis("x"===c?"y":"x",r.onZeroAxisIndex),m=g.toGlobalCoord(g.dataToCoord(0));f[d.onZero]=Math.max(Math.min(m,f[1]),f[0])}a.position=["y"===c?f[d[s]]:h[0],"x"===c?f[d[s]]:h[3]],a.rotation=Math.PI/2*("x"===c?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[l],a.labelOffset=r.onZero?f[d[l]]-f[d.onZero]:0,t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),o.retrieve(i.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var x=t.get("axisLabel.rotate");return a.labelRotate="top"===s?-x:x,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var o=i(0);t.layout=n},function(e,t,i){function n(e,t){t=t||{};var i=e.coordinateSystem,n=e.axis,r={},a=n.position,l=n.orient,s=i.getRect(),c=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};r.position=["vertical"===l?u.vertical[a]:c[0],"horizontal"===l?u.horizontal[a]:c[3]];var h={horizontal:0,vertical:1};r.rotation=Math.PI/2*h[l];var d={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=d[a],e.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),o.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var p=t.rotate;return null==p&&(p=e.get("axisLabel.rotate")),r.labelRotation="top"===a?-p:p,r.labelInterval=n.getLabelInterval(),r.z2=1,r}var o=i(0);t.layout=n},function(e,t,i){function n(e,t){var i={};return i[t.dim+"AxisIndex"]=t.index,e.getCartesian(i)}function o(e){return"x"===e.dim?0:1}var r=i(2),a=i(114),l=i(82),s=i(170),c=i(38),u=a.extend({makeElOption:function(e,t,i,o,r){var a=i.axis,c=a.grid,u=o.get("type"),d=n(c,a).getOtherAxis(a).getGlobalExtent(),p=a.toGlobalCoord(a.dataToCoord(t,!0));if(u&&"none"!==u){var f=l.buildElStyle(o),g=h[u](a,p,d,f);g.style=f,e.graphicKey=g.type,e.pointer=g}var m=s.layout(c.model,i);l.buildCartesianSingleLabelElOption(t,e,m,i,o,r)},getHandleTransform:function(e,t,i){var n=s.layout(t.axis.grid.model,t,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:l.getTransformedPosition(t.axis,e,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,i,o){var r=i.axis,a=r.grid,l=r.getGlobalExtent(!0),s=n(a,r).getOtherAxis(r).getGlobalExtent(),c="x"===r.dim?0:1,u=e.position;u[c]+=t[c],u[c]=Math.min(l[1],u[c]),u[c]=Math.max(l[0],u[c]);var h=(s[1]+s[0])/2,d=[h,h];d[c]=u[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{position:u,rotation:e.rotation,cursorPoint:d,tooltipOption:p[c]}}}),h={line:function(e,t,i,n){var a=l.makeLineShape([t,i[0]],[t,i[1]],o(e));return r.subPixelOptimizeLine({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(e,t,i,n){var r=e.getBandWidth(),a=i[1]-i[0];return{type:"Rect",shape:l.makeRectShape([t-r/2,i[0]],[r,a],o(e))}}};c.registerAxisPointerClass("CartesianAxisPointer",u);var d=u;e.exports=d},function(e,t,i){function n(e,t){var i,n=[],a=e.seriesIndex;if(null==a||!(i=t.getSeriesByIndex(a)))return{point:[]};var l=i.getData(),s=r.queryDataIndex(l,e);if(null==s||o.isArray(s))return{point:[]};var c=l.getItemGraphicEl(s),u=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(s)||[];else if(u&&u.dataToPoint)n=u.dataToPoint(l.getValues(o.map(u.dimensions,function(e){return i.coordDimToDataDim(e)[0]}),s,!0))||[];else if(c){var h=c.getBoundingRect().clone();h.applyTransform(c.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:c}}var o=i(0),r=i(5);e.exports=n},function(e,t,i){function n(e,t,i){if(!h.node){var n=t.getZr();p(n).records||(p(n).records={}),o(n,t);(p(n).records[e]||(p(n).records[e]={})).handler=i}}function o(e,t){function i(i,n){e.on(i,function(i){var o=s(t);f(p(e).records,function(e){e&&n(e,i,o.dispatchAction)}),r(o.pendings,t)})}p(e).initialized||(p(e).initialized=!0,i("click",u.curry(l,"click")),i("mousemove",u.curry(l,"mousemove")),i("globalout",a))}function r(e,t){var i,n=e.showTip.length,o=e.hideTip.length;n?i=e.showTip[n-1]:o&&(i=e.hideTip[o-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function a(e,t,i){e.handler("leave",null,i)}function l(e,t,i,n){t.handler(e,i,n)}function s(e){var t={showTip:[],hideTip:[]},i=function(n){var o=t[n.type];o?o.push(n):(n.dispatchAction=i,e.dispatchAction(n))};return{dispatchAction:i,pendings:t}}function c(e,t){if(!h.node){var i=t.getZr();(p(i).records||{})[e]&&(p(i).records[e]=null)}}var u=i(0),h=i(14),d=i(5),p=d.makeGetter(),f=u.each;t.register=n,t.unregister=c},function(e,t,i){var n=i(1),o=i(0),r=i(115);n.registerAction("dataZoom",function(e,t){var i=r.createLinkedNodesFinder(o.bind(t.eachComponent,t,"dataZoom"),r.eachAxisDim,function(e,t){return e.get(t.axisIndex)}),n=[];t.eachComponent({mainType:"dataZoom",query:e},function(e,t){n.push.apply(n,i(e).nodes)}),o.each(n,function(t,i){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})},function(e,t,i){function n(e,t,i){i.getAxisProxy(e.name,t).reset(i)}function o(e,t,i){i.getAxisProxy(e.name,t).filterData(i)}i(1).registerProcessor(function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(n),e.eachTargetAxis(o)}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy(),i=t.getDataPercentWindow(),n=t.getDataValueWindow();e.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)})})},function(e,t,i){function n(e,t){var i=l(e);c(t,function(t,n){for(var o=i.length-1;o>=0;o--){if(i[o][n])break}if(o<0){var r=e.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var a=r.getPercentRange();i[0][n]={dataZoomId:n,start:a[0],end:a[1]}}}}),i.push(t)}function o(e){var t=l(e),i=t[t.length-1];t.length>1&&t.pop();var n={};return c(i,function(e,i){for(var o=t.length-1;o>=0;o--){var e=t[o][i];if(e){n[i]=e;break}}}),n}function r(e){e[u]=null}function a(e){return l(e).length}function l(e){var t=e[u];return t||(t=e[u]=[{}]),t}var s=i(0),c=s.each,u="\0_ec_hist_store";t.push=n,t.pop=o,t.clear=r,t.count=a},function(e,t,i){i(13).registerSubTypeDefaulter("dataZoom",function(){return"slider"})},function(e,t,i){function n(e,t,i){var n=this._targetInfoList=[],o={},a=r(t,e);g(_,function(e,t){(!i||!i.include||m(i.include,t)>=0)&&e(a,n,o)})}function o(e){return e[0]>e[1]&&e.reverse(),e}function r(e,t){return p.parseFinder(e,t,{includeMainTypes:y})}function a(e,t,i,n){var r=i.getAxis(["x","y"][e]),a=o(h.map([0,1],function(e){return t?r.coordToData(r.toLocalCoord(n[e])):r.toGlobalCoord(r.dataToCoord(n[e]))})),l=[];return l[e]=a,l[1-e]=[NaN,NaN],{values:a,xyMinMax:l}}function l(e,t,i,n){return[t[0]-n[e]*i[0],t[1]-n[e]*i[1]]}function s(e,t){var i=c(e),n=c(t),o=[i[0]/n[0],i[1]/n[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function c(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var u=i(4),h=(u.__DEV__,i(0)),d=i(2),p=i(5),f=i(181),g=h.each,m=h.indexOf,v=h.curry,x=["dataToPoint","pointToData"],y=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],b=n.prototype;b.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,function(e,t,i){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var n=A[e.brushType](0,i,t);e.__rangeOffset={offset:M[e.brushType](n.values,e.range,[1,1]),xyMinMax:n.xyMinMax}}})},b.matchOutputRanges=function(e,t,i){g(e,function(e){var n=this.findTargetInfo(e,t);n&&!0!==n&&h.each(n.coordSyses,function(n){var o=A[e.brushType](1,n,e.range);i(e,o.values,n,t)})},this)},b.setInputRanges=function(e,t){g(e,function(e){var i=this.findTargetInfo(e,t);if(e.range=e.range||[],i&&!0!==i){e.panelId=i.panelId;var n=A[e.brushType](0,i.coordSys,e.coordRange),o=e.__rangeOffset;e.range=o?M[e.brushType](n.values,o.offset,s(n.xyMinMax,o.xyMinMax)):n.values}},this)},b.makePanelOpts=function(e,t){return h.map(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t&&t(i),clipPath:f.makeRectPanelClipPath(n),isTargetByCursor:f.makeRectIsTargetByCursor(n,e,i.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(n)}})},b.controlSeries=function(e,t,i){var n=this.findTargetInfo(e,i);return!0===n||n&&m(n.coordSyses,t.coordinateSystem)>=0},b.findTargetInfo=function(e,t){for(var i=this._targetInfoList,n=r(t,e),o=0;oo&&(n=o):n=o;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var a=0;a
":", ")}(r):s(c(r)),h=n.getName(e),d=n.getItemVisual(e,"color");o.isObject(d)&&d.colorStops&&(d=(d.colorStops[0]||{}).color),d=d||"transparent";var g=u(d),m=this.name;return"\0-"===m&&(m=""),m=m?s(m)+(t?": ":"
"):"",t?g+m+a:m+g+(h?s(h)+": "+a:a)},isAnimationEnabled:function(){if(r.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){d(this,"data",p(this,"dataBeforeProcessed").cloneShallow())},getColorFromPalette:function(e,t){var i=this.ecModel,n=m.getColorFromPalette.call(this,e,t);return n||(n=i.getColorFromPalette(e,t)),n},getAxisTooltipData:null,getTooltipPosition:null});o.mixin(_,f.dataFormatMixin),o.mixin(_,m);var b=_;e.exports=b},,,function(e,t,i){function n(e,t){var i,n,o,r=e.type,a=t.getMin(),l=t.getMax(),s=null!=a,c=null!=l,u=e.getExtent();return"ordinal"===r?i=(t.get("data")||[]).length:(n=t.get("boundaryGap"),h.isArray(n)||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(n=[0,0]),n[0]=m.parsePercent(n[0],1),n[1]=m.parsePercent(n[1],1),o=u[1]-u[0]||Math.abs(u[0])),null==a&&(a="ordinal"===r?i?0:NaN:u[0]-n[0]*o),null==l&&(l="ordinal"===r?i?i-1:NaN:u[1]+n[1]*o),"dataMin"===a?a=u[0]:"function"==typeof a&&(a=a({min:u[0],max:u[1]})),"dataMax"===l?l=u[1]:"function"==typeof l&&(l=l({min:u[0],max:u[1]})),(null==a||!isFinite(a))&&(a=NaN),(null==l||!isFinite(l))&&(l=NaN),e.setBlank(h.eqNaN(a)||h.eqNaN(l)),t.getNeedCrossZero()&&(a>0&&l>0&&!s&&(a=0),a<0&&l<0&&!c&&(l=0)),[a,l]}function o(e,t){var i=n(e,t),o=null!=t.getMin(),r=null!=t.getMax(),a=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var l=e.type;e.setExtent(i[0],i[1]),e.niceExtent({splitNumber:a,fixMin:o,fixMax:r,minInterval:"interval"===l||"time"===l?t.get("minInterval"):null,maxInterval:"interval"===l||"time"===l?t.get("maxInterval"):null});var s=t.get("interval");null!=s&&e.setInterval&&e.setInterval(s)}function r(e,t){if(t=t||e.get("type"))switch(t){case"category":return new p(e.getCategories(),[1/0,-1/0]);case"value":return new f;default:return(g.getClass(t)||f).create(e)}}function a(e){var t=e.scale.getExtent(),i=t[0],n=t[1];return!(i>0&&n>0||i<0&&n<0)}function l(e,t,i,n,o){var r,a=0,l=0,s=(n-o)/180*Math.PI,c=1;t.length>40&&(c=Math.floor(t.length/40));for(var u=0;us||h>0&&m
":arguments[1];return e.replace(/\n/g,t)},br2nl:function(e){var t=arguments.length<=1||void 0===arguments[1]?"\r\n":arguments[1];return e.replace(/\
/g,t)},capitalize:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return""+e.charAt(0).toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))},capitalizeAll:function(e){return e.replace(/(?:^|\s)\S/g,function(e){return e.toUpperCase()})},titleCase:function(e){var t=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,i=/\S+[A-Z]+\S*/,n=/\s+/,o=/-/,r=void 0;return(r=function(e){for(var a=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],s=arguments.length<=2||void 0===arguments[2]||arguments[2],c=[],u=e.split(a?o:n),h=0;h0?1.1:1/1.1;c.call(this,e,t,e.offsetX,e.offsetY)}}function s(e){if(!f.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;c.call(this,e,t,e.pinchX,e.pinchY)}}function c(e,t,i,n){this.pointerChecker&&this.pointerChecker(e,i,n)&&(p.stop(e.event),this.trigger("zoom",t,i,n))}function u(e,t,i){var n=e._opt[t];return n&&(!h.isString(n)||i.event[n+"Key"])}var h=i(0),d=i(44),p=i(27),f=i(182);h.mixin(n,d);var g=n;e.exports=g},function(e,t,i){function n(e,t,i,n){o.each(u,function(a){t.extend({type:e+"Axis."+a,mergeDefaultAndTheme:function(t,n){var r=this.layoutMode,l=r?s(t):{},u=n.getTheme();o.merge(t,u.get(a+"Axis")),o.merge(t,this.getDefaultOption()),t.type=i(e,t),r&&c(t,l,r)},defaultOption:o.mergeAll([{},r[a+"Axis"],n],!0)})}),a.registerSubTypeDefaulter(e+"Axis",o.curry(i,e))}var o=i(0),r=i(199),a=i(13),l=i(6),s=l.getLayoutParams,c=l.mergeLayoutParam,u=["value","category","time","log"];e.exports=n},function(e,t,i){function n(e,t){var i=e.get("boundingCoords");if(null!=i){var n=i[0],o=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(o[0])||isNaN(o[1])||this.setBoundingRect(n[0],n[1],o[0]-n[0],o[1]-n[1])}var r,a=this.getBoundingRect(),l=e.get("layoutCenter"),s=e.get("layoutSize"),h=t.getWidth(),d=t.getHeight(),p=e.get("aspectScale")||.75,f=a.width/a.height*p,g=!1;l&&s&&(l=[u.parsePercent(l[0],h),u.parsePercent(l[1],d)],s=u.parsePercent(s,Math.min(h,d)),isNaN(l[0])||isNaN(l[1])||isNaN(s)||(g=!0));var m;if(g){var m={};f>1?(m.width=s,m.height=s/f):(m.height=s,m.width=s*f),m.y=l[1]-m.height/2,m.x=l[0]-m.width/2}else r=e.getBoxLayoutParams(),r.aspect=f,m=c.getLayoutRect(r,{width:h,height:d});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function o(e,t){l.each(t.get("geoCoord"),function(t,i){e.addGeoCoord(i,t)})}var r=i(4),a=(r.__DEV__,i(1)),l=i(0),s=i(524),c=i(6),u=i(3),h={dimensions:s.prototype.dimensions,create:function(e,t){var i=[];e.eachComponent("geo",function(e,r){var l=e.get("map"),c=a.getMap(l),u=new s(l+r,l,c&&c.geoJson,c&&c.specialAreas,e.get("nameMap"));u.zoomLimit=e.get("scaleLimit"),i.push(u),o(u,e),e.coordinateSystem=u,u.model=e,u.resize=n,u.resize(e,t)}),e.eachSeries(function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=i[t]}});var r={};return e.eachSeriesByType("map",function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}}),l.each(r,function(e,r){var c=a.getMap(r),u=l.map(e,function(e){return e.get("nameMap")}),h=new s(r,r,c&&c.geoJson,c&&c.specialAreas,l.mergeAll(u));h.zoomLimit=l.retrieve.apply(null,l.map(e,function(e){return e.get("scaleLimit")})),i.push(h),h.resize=n,h.resize(e[0],t),l.each(e,function(e){e.coordinateSystem=h,o(h,e)})}),i},getFilledRegions:function(e,t,i){var n=(e||[]).slice();i=i||{};var o=a.getMap(t),r=o&&o.geoJson;if(!r)return e;for(var s=l.createHashMap(),c=r.features,u=0;u.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||g,textAlign:n.__textAlign||f},position:p,scale:[o,o]})}}}}function s(e,t,i){p.Group.call(this),this._createLine(e,t,i)}var c=i(0),u=i(7),h=i(20),d=i(372),p=i(2),f=i(3),g=f.round,m=["fromSymbol","toSymbol"],v=s.prototype;v.beforeUpdate=l,v._createLine=function(e,t,i){var a=e.hostModel,l=e.getItemLayout(t),s=r(l);s.shape.percent=0,p.initProps(s,{shape:{percent:1}},a,t),this.add(s);var u=new p.Text({name:"label"});this.add(u),c.each(m,function(i){var r=o(i,e,t);this.add(r),this[n(i)]=e.getItemVisual(t,i)},this),this._updateCommonStl(e,t,i)},v.updateData=function(e,t,i){var r=e.hostModel,l=this.childOfName("line"),s=e.getItemLayout(t),u={shape:{}};a(u.shape,s),p.updateProps(l,u,r,t),c.each(m,function(i){var r=e.getItemVisual(t,i),a=n(i);if(this[a]!==r){this.remove(this.childOfName(i));var l=o(i,e,t);this.add(l)}this[a]=r},this),this._updateCommonStl(e,t,i)},v._updateCommonStl=function(e,t,i){var n=e.hostModel,o=this.childOfName("line"),r=i&&i.lineStyle,a=i&&i.hoverLineStyle,l=i&&i.labelModel,s=i&&i.hoverLabelModel;if(!i||e.hasItemOption){var u=e.getItemModel(t);r=u.getModel("lineStyle.normal").getLineStyle(),a=u.getModel("lineStyle.emphasis").getLineStyle(),l=u.getModel("label.normal"),s=u.getModel("label.emphasis")}var h=e.getItemVisual(t,"color"),d=c.retrieve3(e.getItemVisual(t,"opacity"),r.opacity,1);o.useStyle(c.defaults({strokeNoScale:!0,fill:"none",stroke:h,opacity:d},r)),o.hoverStyle=a,c.each(m,function(e){var t=this.childOfName(e);t&&(t.setColor(h),t.setStyle({opacity:d}))},this);var f,v,x,y,_=l.getShallow("show"),b=s.getShallow("show"),w=this.childOfName("label");if(_||b){var S=n.getRawValue(t);v=null==S?v=e.getName(t):isFinite(S)?g(S):S,f=h||"#000",x=c.retrieve2(n.getFormattedLabel(t,"normal",e.dataType),v),y=c.retrieve2(n.getFormattedLabel(t,"emphasis",e.dataType),x)}if(_){var A=p.setTextStyle(w.style,l,{text:x},{autoColor:f});w.__textAlign=A.textAlign,w.__verticalAlign=A.textVerticalAlign,w.__position=l.get("position")||"middle"}else w.setStyle("text",null);w.hoverStyle=b?{text:y,textFill:s.getTextColor(!0),fontStyle:s.getShallow("fontStyle"),fontWeight:s.getShallow("fontWeight"),fontSize:s.getShallow("fontSize"),fontFamily:s.getShallow("fontFamily")}:{text:null},w.ignore=!_&&!b,p.setHoverStyle(this)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},v.setLinePoints=function(e){var t=this.childOfName("line");a(t.shape,e),t.dirty()},c.inherits(s,p.Group);var x=s;e.exports=x},function(e,t,i){function n(e){return isNaN(e[0])||isNaN(e[1])}function o(e){return!n(e[0])&&!n(e[1])}function r(e){this._ctor=e||l,this.group=new a.Group}var a=i(2),l=i(112),s=r.prototype;s.updateData=function(e){var t=this._lineData,i=this.group,n=this._ctor,r=e.hostModel,a={lineStyle:r.getModel("lineStyle.normal").getLineStyle(),hoverLineStyle:r.getModel("lineStyle.emphasis").getLineStyle(),labelModel:r.getModel("label.normal"),hoverLabelModel:r.getModel("label.emphasis")};e.diff(t).add(function(t){if(o(e.getItemLayout(t))){var r=new n(e,t,a);e.setItemGraphicEl(t,r),i.add(r)}}).update(function(r,l){var s=t.getItemGraphicEl(l);if(!o(e.getItemLayout(r)))return void i.remove(s);s?s.updateData(e,r,a):s=new n(e,r,a),e.setItemGraphicEl(r,s),i.add(s)}).remove(function(e){i.remove(t.getItemGraphicEl(e))}).execute(),this._lineData=e},s.updateLayout=function(){var e=this._lineData;e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},s.remove=function(){this.group.removeAll()};var c=r;e.exports=c},function(e,t,i){function n(){}function o(e,t,i,n){r(m(i).lastProp,n)||(m(i).lastProp=n,t?h.updateProps(i,n,e):(i.stopAnimation(),i.attr(n)))}function r(e,t){if(c.isObject(e)&&c.isObject(t)){var i=!0;return c.each(t,function(t,n){i=i&&r(e[n],t)}),!!i}return e===t}function a(e,t){e[t.get("label.show")?"show":"hide"]()}function l(e){return{position:e.position.slice(),rotation:e.rotation||0}}function s(e,t,i){var n=t.get("z"),o=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=o&&(e.zlevel=o),e.silent=i)})}var c=i(0),u=i(26),h=i(2),d=i(81),p=i(27),f=i(39),g=i(5),m=g.makeGetter(),v=c.clone,x=c.bind;n.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,i,n){var r=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,n||this._lastValue!==r||this._lastStatus!==a){this._lastValue=r,this._lastStatus=a;var l=this._group,u=this._handle;if(!a||"hide"===a)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var d={};this.makeElOption(d,r,e,t,i);var p=d.graphicKey;p!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=p;var f=this._moveAnimation=this.determineAnimation(e,t);if(l){var g=c.curry(o,t,f);this.updatePointerEl(l,d,g,t),this.updateLabelEl(l,d,g,t)}else l=this._group=new h.Group,this.createPointerEl(l,d,e,t),this.createLabelEl(l,d,e,t),i.getZr().add(l);s(l,t,!0),this._renderHandle(r)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var i=t.get("animation"),n=e.axis,o="category"===n.type,r=t.get("snap");if(!r&&!o)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(o&&n.getBandWidth()>a)return!0;if(r){var l=d.getAxisInfo(e).seriesDataCount,s=n.getExtent();return Math.abs(s[0]-s[1])/l>a}return!1}return!0===i},makeElOption:function(e,t,i,n,o){},createPointerEl:function(e,t,i,n){var o=t.pointer;if(o){var r=m(e).pointerEl=new h[o.type](v(t.pointer));e.add(r)}},createLabelEl:function(e,t,i,n){if(t.label){var o=m(e).labelEl=new h.Rect(v(t.label));e.add(o),a(o,n)}},updatePointerEl:function(e,t,i){var n=m(e).pointerEl;n&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,i,n){var o=m(e).labelEl;o&&(o.setStyle(t.label.style),i(o,{shape:t.label.shape,position:t.label.position}),a(o,n))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,i=this._api.getZr(),n=this._handle,o=t.getModel("handle"),r=t.get("status");if(!o.get("show")||!r||"hide"===r)return n&&i.remove(n),void(this._handle=null);var a;this._handle||(a=!0,n=this._handle=h.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){p.stop(e.event)},onmousedown:x(this._onHandleDragMove,this,0,0),drift:x(this._onHandleDragMove,this),ondragend:x(this._onHandleDragEnd,this)}),i.add(n)),s(n,t,!1);var l=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];n.setStyle(o.getItemStyle(null,l));var u=o.get("size");c.isArray(u)||(u=[u,u]),n.attr("scale",[u[0]/2,u[1]/2]),f.createOrUpdate(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,a)}},_moveHandleToValue:function(e,t){o(this._axisPointerModel,!t&&this._moveAnimation,this._handle,l(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(l(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(l(n)),m(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var 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){if(this._dragging=!1,this._handle){var 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(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}}},n.prototype.constructor=n,u.enableClassExtend(n);var y=n;e.exports=y},function(e,t,i){function n(e){return a.indexOf(c,e)>=0}function o(e,t){e=e.slice();var i=a.map(e,l.capitalFirst);t=(t||[]).slice();var n=a.map(t,l.capitalFirst);return function(o,r){a.each(e,function(e,a){for(var l={name:e,capital:i[a]},s=0;s>>1);r(e,t[i+u])>0?a=u+1:s=u}return s}function l(e,t,i,n,o,r){var a=0,l=0,s=1;if(r(e,t[i+o])<0){for(l=o+1;s>>1);r(e,t[i+u])<0?s=u:a=u+1}return s}function s(e,t){function i(e,t){u[g]=e,d[g]=t,g+=1}function n(){for(;g>1;){var e=g-2;if(e>=1&&d[e-1]<=d[e]+d[e+1]||e>=2&&d[e-2]<=d[e]+d[e-1])d[e-1]
");var i=!0,n=!1,o=void 0;try{for(var r,a=e[Symbol.iterator]();!(i=(r=a.next()).done);i=!0){var s=r.value;t+=''+s.seriesName+": "+l.a.fileSize(s.value)+"
"}}catch(e){n=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw o}}return t}},legend:{data:["Traffic In","Traffic Out"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:a}],yAxis:[{type:"value",axisLabel:{formatter:function(e){return l.a.fileSize(e)}}}],series:[{name:"Traffic In",type:"bar",data:t},{name:"Traffic Out",type:"bar",data:i}]};o.setOption(u),o.hideLoading()}i.d(t,"b",function(){return n}),i.d(t,"c",function(){return o}),i.d(t,"a",function(){return r});var a=i(67),l=i.n(a),s=i(1),c=i.n(s),u=i(570),h=(i.n(u),i(157)),d=(i.n(h),i(167)),p=(i.n(d),i(190)),f=(i.n(p),i(189));i.n(f)},,,,,,,,,,,,function(e,t,i){function n(e,t){r.each(t,function(t){t.update="updateView",o.registerAction(t,function(i,n){var o={};return n.eachComponent({mainType:"series",subType:e,query:i},function(e){e[t.method]&&e[t.method](i.name,i.dataIndex);var n=e.getData();n.each(function(t){var i=n.getName(t);o[i]=e.isSelected(i)||!1})}),{name:i.name,selected:o}})})}var o=i(1),r=i(0);e.exports=n},function(e,t,i){var n=i(1),o=i(0),r=i(156),a=r.updateCenterAndZoom;n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateLayout"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(t){var n=t.coordinateSystem;if("geo"===n.type){var r=a(n,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom),"series"===i&&o.each(t.seriesGroup,function(e){e.setCenter(r.center),e.setZoom(r.zoom)})}})})},function(e,t){function i(e,t,i){var n=e.getZoom(),o=e.getCenter(),r=t.zoom,a=e.dataToPoint(o);if(null!=t.dx&&null!=t.dy){a[0]-=t.dx,a[1]-=t.dy;var o=e.pointToData(a);e.setCenter(o)}if(null!=r){if(i){var l=i.min||0,s=i.max||1/0;r=Math.max(Math.min(n*r,s),l)/n}e.scale[0]*=r,e.scale[1]*=r;var c=e.position,u=(t.originX-c[0])*(r-1),h=(t.originY-c[1])*(r-1);c[0]-=u,c[1]-=h,e.updateTransform();var o=e.pointToData(a);e.setCenter(o),e.setZoom(r*n)}return{center:e.getCenter(),zoom:e.getZoom()}}t.updateCenterAndZoom=i},function(e,t,i){var n=i(1),o=i(0),r=i(124);i(122),i(323),i(324),i(65),n.registerLayout(o.curry(r,"bar")),n.registerVisual(function(e){e.eachSeriesByType("bar",function(e){e.getData().setVisual("legendSymbol","roundRect")})})},function(e,t,i){var n=i(16),o=i(30),r=n.extend({type:"series.__base_bar__",getInitialData:function(e,t){return o(e.data,this,t)},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var i=t.dataToPoint(e,!0),n=this.getData(),o=n.getLayout("offset"),r=n.getLayout("size");return i[t.getBaseAxis().isHorizontal()?0:1]+=o+r/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,itemStyle:{}}});e.exports=r},function(e,t,i){function n(e,t,i,n,a,l,s){var c=i.getModel("label.normal"),u=i.getModel("label.emphasis");r.setLabelStyle(e,t,c,u,{labelFetcher:a,labelDataIndex:l,defaultText:a.getRawValue(l),isRectText:!0,autoColor:n}),o(e),o(t)}function o(e,t){"outside"===e.textPosition&&(e.textPosition=t)}var r=i(2);t.setLabel=n},function(e,t,i){function n(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var i=t.getBoundingRect(),n=e.getData(),r=n.graph,a=0,l=n.getSum("value"),s=2*Math.PI/(l||n.count()),c=i.width/2+i.x,u=i.height/2+i.y,h=Math.min(i.width,i.height)/2;r.eachNode(function(e){var t=e.getValue("value");a+=s*(l?t:1)/2,e.setLayout([h*Math.cos(a)+c,h*Math.sin(a)+u]),a+=s*(l?t:1)/2}),n.setLayout({cx:c,cy:u}),r.eachEdge(function(e){var t,i=e.getModel().get("lineStyle.normal.curveness")||0,n=o.clone(e.node1.getLayout()),r=o.clone(e.node2.getLayout()),a=(n[0]+r[0])/2,l=(n[1]+r[1])/2;+i&&(i*=3,t=[c*i+a*(1-i),u*i+l*(1-i)]),e.setLayout([n,r,t])})}}var o=i(7);t.circularLayout=n},function(e,t,i){function n(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var i=e.getGraph();i.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])}),o(i)}}function o(e){e.eachEdge(function(e){var t=e.getModel().get("lineStyle.normal.curveness")||0,i=r.clone(e.node1.getLayout()),n=r.clone(e.node2.getLayout()),o=[i,n];+t&&o.push([(i[0]+n[0])/2-(i[1]-n[1])*t,(i[1]+n[1])/2-(n[0]-i[0])*t]),e.setLayout(o)})}var r=i(7);t.simpleLayout=n,t.simpleLayoutEdge=o},function(e,t,i){function n(e,t,i){o.Group.call(this),this.add(this.createLine(e,t,i)),this._updateEffectSymbol(e,t)}var o=i(2),r=i(112),a=i(0),l=i(20),s=l.createSymbol,c=i(7),u=i(35),h=n.prototype;h.createLine=function(e,t,i){return new r(e,t,i)},h._updateEffectSymbol=function(e,t){var i=e.getItemModel(t),n=i.getModel("effect"),o=n.get("symbolSize"),r=n.get("symbol");a.isArray(o)||(o=[o,o]);var l=n.get("color")||e.getItemVisual(t,"color"),c=this.childAt(1);this._symbolType!==r&&(this.remove(c),c=s(r,-.5,-.5,1,1,l),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",l),c.setStyle(n.getItemStyle(["color"])),c.attr("scale",o),c.setColor(l),c.attr("scale",o),this._symbolType=r,this._updateEffectAnimation(e,n,t))},h._updateEffectAnimation=function(e,t,i){var n=this.childAt(1);if(n){var o=this,r=e.getItemLayout(i),l=1e3*t.get("period"),s=t.get("loop"),c=t.get("constantSpeed"),u=a.retrieve(t.get("delay"),function(t){return t/e.count()*l/3}),h="function"==typeof u;if(n.ignore=!0,this.updateAnimationPoints(n,r),c>0&&(l=this.getLineLength(n)/c*1e3),l!==this._period||s!==this._loop){n.stopAnimation();var d=u;h&&(d=u(i)),n.__t>0&&(d=-l*n.__t),n.__t=0;var p=n.animate("",s).when(l,{__t:1}).delay(d).during(function(){o.updateSymbolPosition(n)});s||p.done(function(){o.remove(n)}),p.start()}this._period=l,this._loop=s}},h.getLineLength=function(e){return c.dist(e.__p1,e.__cp1)+c.dist(e.__cp1,e.__p2)},h.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]},h.updateData=function(e,t,i){this.childAt(0).updateData(e,t,i),this._updateEffectSymbol(e,t)},h.updateSymbolPosition=function(e){var t=e.__p1,i=e.__p2,n=e.__cp1,o=e.__t,r=e.position,a=u.quadraticAt,l=u.quadraticDerivativeAt;r[0]=a(t[0],n[0],i[0],o),r[1]=a(t[1],n[1],i[1],o);var s=l(t[0],n[0],i[0],o),c=l(t[1],n[1],i[1],o);e.rotation=-Math.atan2(c,s)-Math.PI/2,e.ignore=!1},h.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var i=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,i,t)},a.inherits(n,o.Group);var d=n;e.exports=d},function(e,t,i){function n(e,t,i){o.Group.call(this),this._createPolyline(e,t,i)}var o=i(2),r=i(0),a=n.prototype;a._createPolyline=function(e,t,i){var n=e.getItemLayout(t),r=new o.Polyline({shape:{points:n}});this.add(r),this._updateCommonStl(e,t,i)},a.updateData=function(e,t,i){var n=e.hostModel,r=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};o.updateProps(r,a,n,t),this._updateCommonStl(e,t,i)},a._updateCommonStl=function(e,t,i){var n=this.childAt(0),a=e.getItemModel(t),l=e.getItemVisual(t,"color"),s=i&&i.lineStyle,c=i&&i.hoverLineStyle;i&&!e.hasItemOption||(s=a.getModel("lineStyle.normal").getLineStyle(),c=a.getModel("lineStyle.emphasis").getLineStyle()),n.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:l},s)),n.hoverStyle=c,o.setHoverStyle(this)},a.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},r.inherits(n,o.Group);var l=n;e.exports=l},function(e,t,i){function n(e,t,i,n,h){for(var d=new a(n),p=0;px.getLayout().x&&(x=e),e.depth>y.depth&&(y=e)});var _=v===x?1:f(v,x)/2,b=_-v.getLayout().x,w=0,S=0,A=0,M=0;"radial"===n?(w=o/(x.getLayout().x+_+b),S=l/(y.depth-1||1),a(m,function(e){A=(e.getLayout().x+b)*w,M=(e.depth-1)*S;var t=d(A,M);e.setLayout({x:t.x,y:t.y,rawX:A,rawY:M},!0)})):"horizontal"===e.get("orient")?(S=l/(x.getLayout().x+_+b),w=o/(y.depth-1||1),a(m,function(e){M=(e.getLayout().x+b)*S,A=(e.depth-1)*w,e.setLayout({x:A,y:M},!0)})):(w=o/(x.getLayout().x+_+b),S=l/(y.depth-1||1),a(m,function(e){A=(e.getLayout().x+b)*w,M=(e.depth-1)*S,e.setLayout({x:A,y:M},!0)}))}var o=i(422),r=o.eachAfter,a=o.eachBefore,l=i(169),s=l.init,c=l.firstWalk,u=l.secondWalk,h=l.separation,d=l.radialCoordinate,p=l.getViewRect;e.exports=n},function(e,t,i){function n(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t,i,n=[e];t=n.pop();)if(i=t.children,t.isExpand&&i.length)for(var o=i.length,r=o-1;r>=0;r--){var a=i[r];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},n.push(a)}}function o(e,t){var i=e.isExpand?e.children:[],n=e.parentNode.children,o=e.hierNode.i?n[e.hierNode.i-1]:null;if(i.length){c(e);var r=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;o?(e.hierNode.prelim=o.hierNode.prelim+t(e,o),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else o&&(e.hierNode.prelim=o.hierNode.prelim+t(e,o));e.parentNode.hierNode.defaultAncestor=u(e,o,e.parentNode.hierNode.defaultAncestor||n[0],t)}function r(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function a(e){return arguments.length?e:g}function l(e,t){var i={};return e-=Math.PI/2,i.x=t*Math.cos(e),i.y=t*Math.sin(e),i}function s(e,t){return m.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e){for(var t=e.children,i=t.length,n=0,o=0;--i>=0;){var r=t[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,o+=r.hierNode.change,n+=r.hierNode.shift+o}}function u(e,t,i,n){if(t){for(var o=e,r=e,a=r.parentNode.children[0],l=t,s=o.hierNode.modifier,c=r.hierNode.modifier,u=a.hierNode.modifier,g=l.hierNode.modifier;l=h(l),r=d(r),l&&r;){o=h(o),a=d(a),o.hierNode.ancestor=e;var m=l.hierNode.prelim+g-r.hierNode.prelim-c+n(l,r);m>0&&(f(p(l,e,i),e,m),c+=m,s+=m),g+=l.hierNode.modifier,c+=r.hierNode.modifier,s+=o.hierNode.modifier,u+=a.hierNode.modifier}l&&!h(o)&&(o.hierNode.thread=l,o.hierNode.modifier+=g-s),r&&!d(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=c-u,i=e)}return i}function h(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function d(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function p(e,t,i){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:i}function f(e,t,i){var n=i/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=i,t.hierNode.modifier+=i,t.hierNode.prelim+=i,e.hierNode.change+=n}function g(e,t){return e.parentNode===t.parentNode?1:2}var m=i(6);t.init=n,t.firstWalk=o,t.secondWalk=r,t.separation=a,t.radialCoordinate=l,t.getViewRect=s},function(e,t,i){function n(e,t,i){i=i||{};var n=e.coordinateSystem,r=t.axis,a={},l=r.position,s=r.onZero?"onZero":l,c=r.dim,u=n.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,f="x"===c?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(r.onZero){var g=n.getAxis("x"===c?"y":"x",r.onZeroAxisIndex),m=g.toGlobalCoord(g.dataToCoord(0));f[d.onZero]=Math.max(Math.min(m,f[1]),f[0])}a.position=["y"===c?f[d[s]]:h[0],"x"===c?f[d[s]]:h[3]],a.rotation=Math.PI/2*("x"===c?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[l],a.labelOffset=r.onZero?f[d[l]]-f[d.onZero]:0,t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),o.retrieve(i.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var x=t.get("axisLabel.rotate");return a.labelRotate="top"===s?-x:x,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var o=i(0);t.layout=n},function(e,t,i){function n(e,t){t=t||{};var i=e.coordinateSystem,n=e.axis,r={},a=n.position,l=n.orient,s=i.getRect(),c=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};r.position=["vertical"===l?u.vertical[a]:c[0],"horizontal"===l?u.horizontal[a]:c[3]];var h={horizontal:0,vertical:1};r.rotation=Math.PI/2*h[l];var d={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=d[a],e.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),o.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var p=t.rotate;return null==p&&(p=e.get("axisLabel.rotate")),r.labelRotation="top"===a?-p:p,r.labelInterval=n.getLabelInterval(),r.z2=1,r}var o=i(0);t.layout=n},function(e,t,i){function n(e,t){var i={};return i[t.dim+"AxisIndex"]=t.index,e.getCartesian(i)}function o(e){return"x"===e.dim?0:1}var r=i(2),a=i(114),l=i(82),s=i(170),c=i(38),u=a.extend({makeElOption:function(e,t,i,o,r){var a=i.axis,c=a.grid,u=o.get("type"),d=n(c,a).getOtherAxis(a).getGlobalExtent(),p=a.toGlobalCoord(a.dataToCoord(t,!0));if(u&&"none"!==u){var f=l.buildElStyle(o),g=h[u](a,p,d,f);g.style=f,e.graphicKey=g.type,e.pointer=g}var m=s.layout(c.model,i);l.buildCartesianSingleLabelElOption(t,e,m,i,o,r)},getHandleTransform:function(e,t,i){var n=s.layout(t.axis.grid.model,t,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:l.getTransformedPosition(t.axis,e,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,i,o){var r=i.axis,a=r.grid,l=r.getGlobalExtent(!0),s=n(a,r).getOtherAxis(r).getGlobalExtent(),c="x"===r.dim?0:1,u=e.position;u[c]+=t[c],u[c]=Math.min(l[1],u[c]),u[c]=Math.max(l[0],u[c]);var h=(s[1]+s[0])/2,d=[h,h];d[c]=u[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{position:u,rotation:e.rotation,cursorPoint:d,tooltipOption:p[c]}}}),h={line:function(e,t,i,n){var a=l.makeLineShape([t,i[0]],[t,i[1]],o(e));return r.subPixelOptimizeLine({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(e,t,i,n){var r=e.getBandWidth(),a=i[1]-i[0];return{type:"Rect",shape:l.makeRectShape([t-r/2,i[0]],[r,a],o(e))}}};c.registerAxisPointerClass("CartesianAxisPointer",u);var d=u;e.exports=d},function(e,t,i){function n(e,t){var i,n=[],a=e.seriesIndex;if(null==a||!(i=t.getSeriesByIndex(a)))return{point:[]};var l=i.getData(),s=r.queryDataIndex(l,e);if(null==s||o.isArray(s))return{point:[]};var c=l.getItemGraphicEl(s),u=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(s)||[];else if(u&&u.dataToPoint)n=u.dataToPoint(l.getValues(o.map(u.dimensions,function(e){return i.coordDimToDataDim(e)[0]}),s,!0))||[];else if(c){var h=c.getBoundingRect().clone();h.applyTransform(c.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:c}}var o=i(0),r=i(5);e.exports=n},function(e,t,i){function n(e,t,i){if(!h.node){var n=t.getZr();p(n).records||(p(n).records={}),o(n,t);(p(n).records[e]||(p(n).records[e]={})).handler=i}}function o(e,t){function i(i,n){e.on(i,function(i){var o=s(t);f(p(e).records,function(e){e&&n(e,i,o.dispatchAction)}),r(o.pendings,t)})}p(e).initialized||(p(e).initialized=!0,i("click",u.curry(l,"click")),i("mousemove",u.curry(l,"mousemove")),i("globalout",a))}function r(e,t){var i,n=e.showTip.length,o=e.hideTip.length;n?i=e.showTip[n-1]:o&&(i=e.hideTip[o-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function a(e,t,i){e.handler("leave",null,i)}function l(e,t,i,n){t.handler(e,i,n)}function s(e){var t={showTip:[],hideTip:[]},i=function(n){var o=t[n.type];o?o.push(n):(n.dispatchAction=i,e.dispatchAction(n))};return{dispatchAction:i,pendings:t}}function c(e,t){if(!h.node){var i=t.getZr();(p(i).records||{})[e]&&(p(i).records[e]=null)}}var u=i(0),h=i(14),d=i(5),p=d.makeGetter(),f=u.each;t.register=n,t.unregister=c},function(e,t,i){var n=i(1),o=i(0),r=i(115);n.registerAction("dataZoom",function(e,t){var i=r.createLinkedNodesFinder(o.bind(t.eachComponent,t,"dataZoom"),r.eachAxisDim,function(e,t){return e.get(t.axisIndex)}),n=[];t.eachComponent({mainType:"dataZoom",query:e},function(e,t){n.push.apply(n,i(e).nodes)}),o.each(n,function(t,i){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})},function(e,t,i){function n(e,t,i){i.getAxisProxy(e.name,t).reset(i)}function o(e,t,i){i.getAxisProxy(e.name,t).filterData(i)}i(1).registerProcessor(function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(n),e.eachTargetAxis(o)}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy(),i=t.getDataPercentWindow(),n=t.getDataValueWindow();e.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)})})},function(e,t,i){function n(e,t){var i=l(e);c(t,function(t,n){for(var o=i.length-1;o>=0;o--){if(i[o][n])break}if(o<0){var r=e.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var a=r.getPercentRange();i[0][n]={dataZoomId:n,start:a[0],end:a[1]}}}}),i.push(t)}function o(e){var t=l(e),i=t[t.length-1];t.length>1&&t.pop();var n={};return c(i,function(e,i){for(var o=t.length-1;o>=0;o--){var e=t[o][i];if(e){n[i]=e;break}}}),n}function r(e){e[u]=null}function a(e){return l(e).length}function l(e){var t=e[u];return t||(t=e[u]=[{}]),t}var s=i(0),c=s.each,u="\0_ec_hist_store";t.push=n,t.pop=o,t.clear=r,t.count=a},function(e,t,i){i(13).registerSubTypeDefaulter("dataZoom",function(){return"slider"})},function(e,t,i){function n(e,t,i){var n=this._targetInfoList=[],o={},a=r(t,e);g(b,function(e,t){(!i||!i.include||m(i.include,t)>=0)&&e(a,n,o)})}function o(e){return e[0]>e[1]&&e.reverse(),e}function r(e,t){return p.parseFinder(e,t,{includeMainTypes:y})}function a(e,t,i,n){var r=i.getAxis(["x","y"][e]),a=o(h.map([0,1],function(e){return t?r.coordToData(r.toLocalCoord(n[e])):r.toGlobalCoord(r.dataToCoord(n[e]))})),l=[];return l[e]=a,l[1-e]=[NaN,NaN],{values:a,xyMinMax:l}}function l(e,t,i,n){return[t[0]-n[e]*i[0],t[1]-n[e]*i[1]]}function s(e,t){var i=c(e),n=c(t),o=[i[0]/n[0],i[1]/n[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function c(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var u=i(4),h=(u.__DEV__,i(0)),d=i(2),p=i(5),f=i(181),g=h.each,m=h.indexOf,v=h.curry,x=["dataToPoint","pointToData"],y=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],_=n.prototype;_.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,function(e,t,i){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var n=A[e.brushType](0,i,t);e.__rangeOffset={offset:M[e.brushType](n.values,e.range,[1,1]),xyMinMax:n.xyMinMax}}})},_.matchOutputRanges=function(e,t,i){g(e,function(e){var n=this.findTargetInfo(e,t);n&&!0!==n&&h.each(n.coordSyses,function(n){var o=A[e.brushType](1,n,e.range);i(e,o.values,n,t)})},this)},_.setInputRanges=function(e,t){g(e,function(e){var i=this.findTargetInfo(e,t);if(e.range=e.range||[],i&&!0!==i){e.panelId=i.panelId;var n=A[e.brushType](0,i.coordSys,e.coordRange),o=e.__rangeOffset;e.range=o?M[e.brushType](n.values,o.offset,s(n.xyMinMax,o.xyMinMax)):n.values}},this)},_.makePanelOpts=function(e,t){return h.map(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t&&t(i),clipPath:f.makeRectPanelClipPath(n),isTargetByCursor:f.makeRectIsTargetByCursor(n,e,i.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(n)}})},_.controlSeries=function(e,t,i){var n=this.findTargetInfo(e,i);return!0===n||n&&m(n.coordSyses,t.coordinateSystem)>=0},_.findTargetInfo=function(e,t){for(var i=this._targetInfoList,n=r(t,e),o=0;oo&&(n=o):n=o;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var a=0;ao)&&(i=o),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return _(this,e,t,i);case"utf8":case"utf-8":return w(this,e,t,i);case"ascii":return S(this,e,t,i);case"latin1":case"binary":return A(this,e,t,i);case"base64":return M(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;r.prototype.slice=function(e,t){var i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t