From 131b5f1c12716ebe609f4b65ba841cbe5333d487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=83=E4=BA=AE=E6=96=8C?= <1129525450@qq.com> Date: Mon, 14 Mar 2022 15:10:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BC=96=E8=AF=91=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=20(#14)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update sdk; use external git source; remove some feeds; support build all apps; multi-threads building; * update README --- .github/workflows/main.yml | 100 ++- README.md | 4 +- applications/linkease/Makefile | 66 -- applications/linkease/files/aria2.sh | 134 ---- applications/linkease/files/linkease.config | 3 - applications/linkease/files/linkease.init | 23 - .../linkease/files/linkease.uci-default | 22 - applications/luci-app-linkease/Makefile | 17 - .../luasrc/controller/linkease.lua | 25 - .../luasrc/model/cbi/linkease.lua | 20 - .../view/admin_status/index/linkease.htm | 1 - .../luasrc/view/linkease_status.htm | 27 - .../luci-app-linkease/po/zh-cn/linkease.po | 27 - .../root/etc/uci-defaults/50_luci-linkease | 4 - applications/luci-app-quickstart/Makefile | 17 - .../luasrc/controller/istore_backend.lua | 172 ----- .../luasrc/controller/quickstart.lua | 23 - .../luasrc/view/quickstart/main.htm | 13 - .../po/zh-cn/quickstart.po | 7 - .../root/etc/uci-defaults/50_luci-quickstart | 4 - .../root/www/luci-static/quickstart/index.js | 1 - .../root/www/luci-static/quickstart/style.css | 1 - .../root/www/luci-static/quickstart/vendor.js | 49 -- applications/luci-app-store/API.md | 141 ---- applications/luci-app-store/Makefile | 36 - applications/luci-app-store/README.md | 3 - .../luasrc/controller/store.lua | 626 ------------------ .../luci-app-store/luasrc/view/store/main.htm | 24 - .../luci-app-store/root/bin/ipkg-build | 200 ------ applications/luci-app-store/root/bin/is-opkg | 477 ------------- .../luci-app-store/root/etc/init.d/istore | 25 - .../root/etc/uci-defaults/luci-app-store | 5 - .../root/usr/share/opkg/intercept/rm | 7 - applications/luci-app-store/src/Makefile | 8 - applications/quickstart/Makefile | 61 -- applications/quickstart/files/quickstart.init | 13 - .../quickstart/files/quickstart.uci-default | 6 - feeds.conf | 3 + 38 files changed, 85 insertions(+), 2310 deletions(-) delete mode 100755 applications/linkease/Makefile delete mode 100755 applications/linkease/files/aria2.sh delete mode 100755 applications/linkease/files/linkease.config delete mode 100755 applications/linkease/files/linkease.init delete mode 100755 applications/linkease/files/linkease.uci-default delete mode 100755 applications/luci-app-linkease/Makefile delete mode 100755 applications/luci-app-linkease/luasrc/controller/linkease.lua delete mode 100755 applications/luci-app-linkease/luasrc/model/cbi/linkease.lua delete mode 100755 applications/luci-app-linkease/luasrc/view/admin_status/index/linkease.htm delete mode 100755 applications/luci-app-linkease/luasrc/view/linkease_status.htm delete mode 100755 applications/luci-app-linkease/po/zh-cn/linkease.po delete mode 100755 applications/luci-app-linkease/root/etc/uci-defaults/50_luci-linkease delete mode 100755 applications/luci-app-quickstart/Makefile delete mode 100755 applications/luci-app-quickstart/luasrc/controller/istore_backend.lua delete mode 100755 applications/luci-app-quickstart/luasrc/controller/quickstart.lua delete mode 100755 applications/luci-app-quickstart/luasrc/view/quickstart/main.htm delete mode 100755 applications/luci-app-quickstart/po/zh-cn/quickstart.po delete mode 100755 applications/luci-app-quickstart/root/etc/uci-defaults/50_luci-quickstart delete mode 100755 applications/luci-app-quickstart/root/www/luci-static/quickstart/index.js delete mode 100755 applications/luci-app-quickstart/root/www/luci-static/quickstart/style.css delete mode 100755 applications/luci-app-quickstart/root/www/luci-static/quickstart/vendor.js delete mode 100755 applications/luci-app-store/API.md delete mode 100755 applications/luci-app-store/Makefile delete mode 100755 applications/luci-app-store/README.md delete mode 100755 applications/luci-app-store/luasrc/controller/store.lua delete mode 100755 applications/luci-app-store/luasrc/view/store/main.htm delete mode 100755 applications/luci-app-store/root/bin/ipkg-build delete mode 100755 applications/luci-app-store/root/bin/is-opkg delete mode 100755 applications/luci-app-store/root/etc/init.d/istore delete mode 100755 applications/luci-app-store/root/etc/uci-defaults/luci-app-store delete mode 100755 applications/luci-app-store/root/usr/share/opkg/intercept/rm delete mode 100755 applications/luci-app-store/src/Makefile delete mode 100755 applications/quickstart/Makefile delete mode 100755 applications/quickstart/files/quickstart.init delete mode 100755 applications/quickstart/files/quickstart.uci-default create mode 100644 feeds.conf diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9d3f4dc..37912fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,17 +1,17 @@ -name: Build Meta +name: Build IPKs on: repository_dispatch: workflow_dispatch: inputs: applications: - description: 'build applications' + description: 'build applications, eg: "luci-app-store luci-app-ddnsto". "all" means build all' required: true - default: 'luci-app-jellyfin luci-app-kodexplorer' + default: 'all' env: - SDK_NAME: openwrt-sdk-21.02.0-mvebu-cortexa53_gcc-8.4.0_musl.Linux-x86_64 - SDK_URL: https://downloads.openwrt.org/releases/21.02.0/targets/mvebu/cortexa53/ + SDK_NAME: openwrt-sdk-21.02.2-mvebu-cortexa53_gcc-8.4.0_musl.Linux-x86_64 + SDK_URL: https://downloads.openwrt.org/releases/21.02.2/targets/mvebu/cortexa53/ TZ: Asia/Shanghai jobs: @@ -19,6 +19,11 @@ jobs: runs-on: ubuntu-latest name: Build IPKs steps: + - name: Job Info + run: | + apps="${{ github.event.inputs.applications }}" + echo "::notice title=Apps::$apps" + - name: Checkout uses: actions/checkout@main with: @@ -45,7 +50,11 @@ jobs: run: tar -xJf ${SDK_NAME}.tar.xz - name: Clean Code - run: rm -f ${SDK_NAME}/package/linux/modules/* + run: | + rm -f ${SDK_NAME}/package/linux/modules/* + rm -f ${SDK_NAME}/package/kernel/linux/modules/* + grep 'src-git base ' ${SDK_NAME}/feeds.conf.default > ${SDK_NAME}/feeds.conf + grep 'src-git luci ' ${SDK_NAME}/feeds.conf.default >> ${SDK_NAME}/feeds.conf - name: Write Config run: | @@ -55,25 +64,69 @@ jobs: - name: Load custom feeds run: | - arr=("${{ github.event.inputs.applications }}") - cd apps - mkdir build - for var in ${arr[@]} - do - echo $var - cp -r applications/$var build/$var - done - cd .. - echo "src-link apps `pwd`/apps/build" >> ${SDK_NAME}/feeds.conf.default + echo "" >> ${SDK_NAME}/feeds.conf + arr="${{ github.event.inputs.applications }}" + if [ "$arr" = "all" ]; then + echo "src-link apps `pwd`/apps/applications" >> ${SDK_NAME}/feeds.conf + else + cd apps + mkdir build + for var in ${arr} + do + echo add app $var + cp -a applications/$var build/$var || true + done + ls -l build/ + cd .. + echo "src-link apps `pwd`/apps/build" >> ${SDK_NAME}/feeds.conf + fi + cat apps/feeds.conf >> ${SDK_NAME}/feeds.conf + echo "" >> ${SDK_NAME}/feeds.conf + echo "Final feeds.conf:" + cat ${SDK_NAME}/feeds.conf - name: Update feeds run: | + apps="${{ github.event.inputs.applications }}" cd ${SDK_NAME} ./scripts/feeds update -a - ./scripts/feeds install -a -p apps -d y + if [ "$apps" = "all" ]; then + ./scripts/feeds install -a -p apps -d y + for repo in `sed -e 's/src-[^ ]* \([^ ]*\) .*/\1/g' ../apps/feeds.conf` + do + echo add all in repo $repo + ./scripts/feeds install -a -p $repo -d y + done + else + ./scripts/feeds install ${apps} -d y + fi - - name: Compile IPKs + - name: Defconfig + id: defconfig + run: | + cd ${SDK_NAME} + make defconfig + echo "::set-output name=status::success" + + - name: Download sources + id: download + if: steps.defconfig.outputs.status == 'success' + run: | + cd ${SDK_NAME} + make -j4 download + echo "::set-output name=status::success" + + - name: PreCompile IPKs + id: precompile + if: steps.download.outputs.status == 'success' + run: | + cd ${SDK_NAME} + make -j4 package/compile + echo "::set-output name=status::success" + + - name: ReCompile IPKs id: compile + if: steps.download.outputs.status == 'success' && steps.precompile.outputs.status != 'success' run: | cd ${SDK_NAME} bash -c 'set -o pipefail ; make -j1 V=s defconfig package/compile 2>&1 | tee /tmp/openwrt-sdk-build.log' @@ -83,9 +136,16 @@ jobs: if: failure() run: tail -n 200 /tmp/openwrt-sdk-build.log + - name: PreUpload - Clean + id: preupload + if: steps.precompile.outputs.status == 'success' || steps.compile.outputs.status == 'success' + run: | + cd ${SDK_NAME}/bin/packages/aarch64_cortex-a53 + rm -rf base luci + - name: Upload bin directory uses: actions/upload-artifact@main - if: steps.compile.outputs.status == 'success' + if: steps.precompile.outputs.status == 'success' || steps.compile.outputs.status == 'success' with: name: apps - path: ${{ env.SDK_NAME }}/bin/packages/aarch64_cortex-a53/apps + path: ${{ env.SDK_NAME }}/bin/packages/aarch64_cortex-a53 diff --git a/README.md b/README.md index bd05579..2734ba6 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Openwrt-actions ## 使用步骤 -1. 选择actions标签,选择build meta![image](https://user-images.githubusercontent.com/1214708/153843131-615197e2-4ff4-4c0b-b30a-372e1c513158.png) +1. 选择actions标签,选择Build IPKs![image](https://user-images.githubusercontent.com/1214708/153843131-615197e2-4ff4-4c0b-b30a-372e1c513158.png) -2. 点击run workflow,输入要编译的插件名称,然后开始编译![image](https://user-images.githubusercontent.com/1214708/153843217-0591a7e6-4758-461e-8b2b-9bb830b87fb2.png) +2. 点击run workflow,输入要编译的插件名称,空格隔开,或者填“all”用来编译所有插件,然后开始编译![image](https://user-images.githubusercontent.com/1214708/153843217-0591a7e6-4758-461e-8b2b-9bb830b87fb2.png) 3. 等待编译完成,点击任务进入详情页 4. 在详情页下载插件压缩包![image](https://user-images.githubusercontent.com/1214708/153843272-81843b45-6dc8-4945-871f-a9a467f63c33.png) diff --git a/applications/linkease/Makefile b/applications/linkease/Makefile deleted file mode 100755 index b2cd5c1..0000000 --- a/applications/linkease/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -# -# Copyright (C) 2015-2016 OpenWrt.org -# Copyright (C) 2020 jjm2473@gmail.com -# -# This is free software, licensed under the GNU General Public License v3. -# - -include $(TOPDIR)/rules.mk - -PKG_ARCH_LINKEASE:=$(ARCH) - -PKG_NAME:=linkease -PKG_VERSION:=0.5.2 -PKG_RELEASE:=2 -PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=http://fw.koolcenter.com/binary/LinkEase/LinuxStorage/ -PKG_HASH:=82ebf3cc631885c92d82ace74830a54ad1a69b2224ff85dc298e6d9a591a4d56 - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION) - -PKG_BUILD_PARALLEL:=1 -PKG_USE_MIPS16:=0 - -include $(INCLUDE_DIR)/package.mk - -define Package/$(PKG_NAME) - SECTION:=net - CATEGORY:=Network - SUBMENU:=Web Servers/Proxies - TITLE:=LinkEase - the file cloud - DEPENDS:= - URL:=https://www.ddnsto.com/linkease/ -endef - -define Package/$(PKG_NAME)/description - LinkEase is a file cloud -endef - -define Package/$(PKG_NAME)/conffiles -/etc/config/linkease -endef - -define Package/$(PKG_NAME)/postinst -#!/bin/sh -if [ -z "$${IPKG_INSTROOT}" ]; then - [ -f /etc/uci-defaults/linkease ] && /etc/uci-defaults/linkease && rm -f /etc/uci-defaults/linkease -fi -endef - -define Build/Configure -endef - -define Build/Compile -endef - -define Package/$(PKG_NAME)/install - $(INSTALL_DIR) $(1)/usr/sbin/linkease-plugins $(1)/etc/config $(1)/etc/init.d $(1)/etc/uci-defaults - $(INSTALL_BIN) $(PKG_BUILD_DIR)/linkease.$(PKG_ARCH_LINKEASE) $(1)/usr/sbin/linkease - $(INSTALL_BIN) $(PKG_BUILD_DIR)/heif-converter.$(PKG_ARCH_LINKEASE) $(1)/usr/sbin/heif-converter - $(INSTALL_BIN) ./files/aria2.sh $(1)/usr/sbin/linkease-plugins/aria2.sh - $(INSTALL_CONF) ./files/linkease.config $(1)/etc/config/linkease - $(INSTALL_BIN) ./files/linkease.init $(1)/etc/init.d/linkease - $(INSTALL_BIN) ./files/linkease.uci-default $(1)/etc/uci-defaults/linkease -endef - -$(eval $(call BuildPackage,$(PKG_NAME))) diff --git a/applications/linkease/files/aria2.sh b/applications/linkease/files/aria2.sh deleted file mode 100755 index 73626c3..0000000 --- a/applications/linkease/files/aria2.sh +++ /dev/null @@ -1,134 +0,0 @@ -#!/bin/bash - -sh_ver="1.0.0" -export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/sbin:/bin -aria2_conf_dir=/var/etc/aria2/ -#替换成你设备aria2.conf路径 -aria2_conf=${aria2_conf_dir}/aria2.conf.main -#替换成你设备的aria2c路径 -aria2c=/usr/bin/aria2c -Green_font_prefix="\033[32m" -Red_font_prefix="\033[31m" -Green_background_prefix="\033[42;37m" -Red_background_prefix="\033[41;37m" -Font_color_suffix="\033[0m" -Info="[${Green_font_prefix}信息${Font_color_suffix}]" -Error="[${Red_font_prefix}错误${Font_color_suffix}]" -Tip="[${Green_font_prefix}注意${Font_color_suffix}]" -error_code=11 -success_code=0 - -return_error(){ - echo 'Content-Type:application/json;charset=utf-8' - echo - echo "{ - "\"success\"":$error_code, - "\"error\"":"\"$1\"", - "\"result"\":null - }" - exit 1 -} -return_ok(){ - echo 'Content-Type:application/json;charset=utf-8' - echo - echo "{ - "\"success\"":$success_code, - "\"error\"":"\"$1\"", - "\"result"\":null - }" - exit 0 -} -return_result(){ - echo 'Content-Type:application/json;charset=utf-8' - echo - echo "{ - "\"success\"":$success_code, - "\"error\"":"\"\"", - "\"result"\":$1 - }" - exit 0 -} - -#进程中是否运行aria2 -check_pid() { - PID=$(ps -ef | grep "aria2c" | grep -v grep | grep -v "aria2.sh" | grep -v "init.d" | grep -v "service" | awk '{print $2}') -} - -#aria2是否正在运行 -aria2_work_status(){ - check_pid -# [[ ! -z ${PID} ]] && echo -e "${Error} Aria2 正在运行,请检查 !" && exit 1 - [[ ! -z ${PID} ]] && return_ok "Aria2正在运行" - return_error "Aria2未运行" -} - -#检测设备是否安装aria2 -check_installed_status() { - [[ ! -e ${aria2c} ]] && return_error "Aria2 没有安装,请检查 !" - [[ ! -e ${aria2_conf} ]] && return_error "Aria2 配置文件不存在,请检查 !" -# return_ok "Aria2已安装" -} -#读取aria2配置信息 -read_config() { - check_installed_status - if [[ ! -e ${aria2_conf} ]]; then - return_error "Aria2 配置文件不存在,请检查 !" - else - conf_text=$(cat ${aria2_conf} | grep -v '#') - aria2_dir=$(echo -e "${conf_text}" | grep "^dir=" | awk -F "=" '{print $NF}') - aria2_port=$(echo -e "${conf_text}" | grep "^rpc-listen-port=" | awk -F "=" '{print $NF}') - aria2_passwd=$(echo -e "${conf_text}" | grep "^rpc-secret=" | awk -F "=" '{print $NF}') - aria2_bt_port=$(echo -e "${conf_text}" | grep "^listen-port=" | awk -F "=" '{print $NF}') - aria2_dht_port=$(echo -e "${conf_text}" | grep "^dht-listen-port=" | awk -F "=" '{print $NF}') - - return_result "{ - "\"dir"\":"\"$aria2_dir"\", - "\"rpc-listen-port"\":"\"$aria2_port"\", - "\"rpc-secret"\":"\"$aria2_passwd"\", - "\"listen-port"\":"\"$aria2_bt_port"\", - "\"dht-listen-port"\":"\"$aria2_dht_port"\"}" - fi -} - - -#"Content-Type:text/html;charset=utf-8" -#echo - -#SERVER_SOFTWARE = $SERVER_SOFTWARE #服务器软件 -#SERVER_NAME = $SERVER_NAME #服务器主机名 -#GATEWAY_INTERFACE = $GATEWAY_INTERFACE #CGI版本 -#SERVER_PROTOCOL = $SERVER_PROTOCOL #通信使用的协议 -#SERVER_PORT = $SERVER_PORT #服务器的端口号 -#REQUEST_METHOD = $REQUEST_METHOD #请求方法(GET/POST/PUT/DELETE..) -#HTTP_ACCEPT = $HTTP_ACCEPT #HTTP定义的浏览器能够接受的数据类型 -#SCRIPT_NAME = $SCRIPT_NAME #当前运行的脚本名称(包含路径) -#QUERY_STRING = $QUERY_STRING #地址栏中传的数据(get方式) -#REMOTE_ADDR = $REMOTE_ADDR #客户端的ip - -#根据url QUERY调不同方法 -query(){ - aria2Query=${QUERY_STRING} - parse(){ - echo $1 | sed 's/.*'$2'=\([[:alnum:]]*\).*/\1/' - } - value=$(parse $aria2Query "action") - - if [ ! -z = "$value" ] - then - if [ "$value" = "status" ] - then - check_installed_status - elif [ "$value" = "readConfig" ] - then - read_config - elif [ "$value" = "workStatus" ] - then - aria2_work_status - else - echo - fi - else - return_error "action不能为空" - fi -} -query diff --git a/applications/linkease/files/linkease.config b/applications/linkease/files/linkease.config deleted file mode 100755 index 77dca48..0000000 --- a/applications/linkease/files/linkease.config +++ /dev/null @@ -1,3 +0,0 @@ -config linkease - option 'port' '8897' - option 'enabled' '1' diff --git a/applications/linkease/files/linkease.init b/applications/linkease/files/linkease.init deleted file mode 100755 index 5224920..0000000 --- a/applications/linkease/files/linkease.init +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh /etc/rc.common - -START=99 -USE_PROCD=1 - -get_config() { - config_get_bool enabled $1 enabled 1 - config_get_bool logger $1 logger - config_get port $1 port 8897 -} - -start_service() { - config_load linkease - config_foreach get_config linkease - [ $enabled != 1 ] && return 1 - - procd_open_instance - procd_set_param command /usr/sbin/linkease - [ -n "$port" ] && procd_append_param command --deviceAddr ":$port" - [ "$logger" == 1 ] && procd_set_param stderr 1 - procd_set_param respawn - procd_close_instance -} diff --git a/applications/linkease/files/linkease.uci-default b/applications/linkease/files/linkease.uci-default deleted file mode 100755 index 716c58e..0000000 --- a/applications/linkease/files/linkease.uci-default +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -uci -q batch <<-EOF >/dev/null - delete ucitrack.@linkease[-1] - add ucitrack linkease - set ucitrack.@linkease[-1].init=linkease - commit ucitrack - - delete firewall.linkease - set firewall.linkease=rule - set firewall.linkease.name="linkease" - set firewall.linkease.target="ACCEPT" - set firewall.linkease.src="wan" - set firewall.linkease.proto="tcp" - set firewall.linkease.dest_port="8897" - commit firewall -EOF - -/etc/init.d/linkease enable -/etc/init.d/linkease start - -exit 0 \ No newline at end of file diff --git a/applications/luci-app-linkease/Makefile b/applications/luci-app-linkease/Makefile deleted file mode 100755 index d689040..0000000 --- a/applications/luci-app-linkease/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 2016 Openwrt.org -# -# This is free software, licensed under the Apache License, Version 2.0 . -# - -include $(TOPDIR)/rules.mk - -LUCI_TITLE:=LuCI support for linkease -LUCI_DEPENDS:=+linkease -LUCI_PKGARCH:=all -PKG_VERSION:=2.1.1 -PKG_RELEASE:=2 - -include $(TOPDIR)/feeds/luci/luci.mk - -# call BuildPackage - OpenWrt buildroot signature - diff --git a/applications/luci-app-linkease/luasrc/controller/linkease.lua b/applications/luci-app-linkease/luasrc/controller/linkease.lua deleted file mode 100755 index 8eec0ab..0000000 --- a/applications/luci-app-linkease/luasrc/controller/linkease.lua +++ /dev/null @@ -1,25 +0,0 @@ -module("luci.controller.linkease", package.seeall) - -function index() - if not nixio.fs.access("/etc/config/linkease") then - return - end - - entry({"admin", "services", "linkease"}, cbi("linkease"), _("LinkEase"), 20).dependent = true - - entry({"admin", "services", "linkease_status"}, call("linkease_status")) -end - -function linkease_status() - local sys = require "luci.sys" - local uci = require "luci.model.uci".cursor() - local port = tonumber(uci:get_first("linkease", "linkease", "port")) - - local status = { - running = (sys.call("pidof linkease >/dev/null") == 0), - port = (port or 8897) - } - - luci.http.prepare_content("application/json") - luci.http.write_json(status) -end diff --git a/applications/luci-app-linkease/luasrc/model/cbi/linkease.lua b/applications/luci-app-linkease/luasrc/model/cbi/linkease.lua deleted file mode 100755 index 2479603..0000000 --- a/applications/luci-app-linkease/luasrc/model/cbi/linkease.lua +++ /dev/null @@ -1,20 +0,0 @@ ---wulishui ,20200911 ---jjm2473 ,20210127 - -local m, s - -m = Map("linkease", translate("LinkEase"), translate("LinkEase is an efficient data transfer tool.")) - -m:section(SimpleSection).template = "linkease_status" - -s=m:section(TypedSection, "linkease", translate("Global settings")) -s.addremove=false -s.anonymous=true - -s:option(Flag, "enabled", translate("Enable")).rmempty=false - -s:option(Value, "port", translate("Port")).rmempty=false - -return m - - diff --git a/applications/luci-app-linkease/luasrc/view/admin_status/index/linkease.htm b/applications/luci-app-linkease/luasrc/view/admin_status/index/linkease.htm deleted file mode 100755 index 7ae5dd5..0000000 --- a/applications/luci-app-linkease/luasrc/view/admin_status/index/linkease.htm +++ /dev/null @@ -1 +0,0 @@ -<%+linkease_status%> diff --git a/applications/luci-app-linkease/luasrc/view/linkease_status.htm b/applications/luci-app-linkease/luasrc/view/linkease_status.htm deleted file mode 100755 index c170b80..0000000 --- a/applications/luci-app-linkease/luasrc/view/linkease_status.htm +++ /dev/null @@ -1,27 +0,0 @@ - - -
- <%:LinkEase Status%> -

- <%:Collecting data...%> -

-
diff --git a/applications/luci-app-linkease/po/zh-cn/linkease.po b/applications/luci-app-linkease/po/zh-cn/linkease.po deleted file mode 100755 index 3a4462e..0000000 --- a/applications/luci-app-linkease/po/zh-cn/linkease.po +++ /dev/null @@ -1,27 +0,0 @@ -msgid "LinkEase" -msgstr "易有云文件管理器" - -msgid "Running state" -msgstr "运行状态" - -msgid "Click to open LinkEase" -msgstr "点击打开易有云" - -msgid "LinkEase is an efficient data transfer tool." -msgstr "易有云是一个微型家庭数据服务中心,主要用于文件的集中存放、读取、备份及日常管理。释放用户终端设备空间,实现个人、家庭文件长久留存;支持家庭相册、视频文件随时随地多终端查看、播放,满足家庭文件的日常管理。" - -msgid "Port" -msgstr "端口" - -msgid "The LinkEase service is running." -msgstr "易有云服务已启动" - -msgid "The LinkEase service is not running." -msgstr "易有云服务未启动" - -msgid "LinkEase Status" -msgstr "易有云服务状态" - -msgid "Collecting data..." -msgstr "收集数据..." - diff --git a/applications/luci-app-linkease/root/etc/uci-defaults/50_luci-linkease b/applications/luci-app-linkease/root/etc/uci-defaults/50_luci-linkease deleted file mode 100755 index d7bfee2..0000000 --- a/applications/luci-app-linkease/root/etc/uci-defaults/50_luci-linkease +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -rm -f /tmp/luci-indexcache -exit 0 diff --git a/applications/luci-app-quickstart/Makefile b/applications/luci-app-quickstart/Makefile deleted file mode 100755 index 4df75b5..0000000 --- a/applications/luci-app-quickstart/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 2016 Openwrt.org -# -# This is free software, licensed under the Apache License, Version 2.0 . -# - -include $(TOPDIR)/rules.mk - -LUCI_TITLE:=LuCI support for quickstart -LUCI_DEPENDS:=+shadow-useradd -LUCI_PKGARCH:=all -PKG_VERSION:=0.0.1 -PKG_RELEASE:=1 - -include $(TOPDIR)/feeds/luci/luci.mk - -# call BuildPackage - OpenWrt buildroot signature - diff --git a/applications/luci-app-quickstart/luasrc/controller/istore_backend.lua b/applications/luci-app-quickstart/luasrc/controller/istore_backend.lua deleted file mode 100755 index d069849..0000000 --- a/applications/luci-app-quickstart/luasrc/controller/istore_backend.lua +++ /dev/null @@ -1,172 +0,0 @@ -local http = require "luci.http" -local nixio = require "nixio" -local ltn12 = require "luci.ltn12" -local table = require "table" -local util = require "luci.util" - -module("luci.controller.istore_backend", package.seeall) - -local BLOCKSIZE = 2048 -local ISTOREOS_PORT = 3000 - -function index() - entry({"istore"}, call("istore_backend")).leaf=true -end - -function sink_socket(sock, io_err) - if sock then - return function(chunk, err) - if not chunk then - return 1 - else - return sock:send(chunk) - end - end - else - return ltn12.sink.error(io_err or "unable to send socket") - end -end - -local function session_retrieve(sid, allowed_users) - local sdat = util.ubus("session", "get", { ubus_rpc_session = sid }) - if type(sdat) == "table" and - type(sdat.values) == "table" and - type(sdat.values.token) == "string" and - (not allowed_users or - util.contains(allowed_users, sdat.values.username)) - then - return sid, sdat.values - end - return nil, nil -end - -function istore_backend() - local sock = nixio.connect("127.0.0.1", ISTOREOS_PORT) - if not sock then - http.status(500, "connect failed") - return - end - local input = {} - input[#input+1] = http.getenv("REQUEST_METHOD") .. " " .. http.getenv("REQUEST_URI") .. " HTTP/1.1" - local req = http.context.request - local start = "HTTP_" - local start_len = string.len(start) - local ctype = http.getenv("CONTENT_TYPE") - if ctype then - input[#input+1] = "Content-Type: " .. ctype - end - for k, v in pairs(req.message.env) do - if string.sub(k, 1, start_len) == start and not string.find(k, "FORWARDED") then - input[#input+1] = string.sub(k, start_len+1, string.len(k)) .. ": " .. v - end - end - local sid = http.getcookie("sysauth") - if sid then - local sid, sdat = session_retrieve(sid, nil) - if sdat ~= nil then - input[#input+1] = "X-Forwarded-Sid: " .. sid - input[#input+1] = "X-Forwarded-Token: " .. sdat.token - end - end - input[#input+1] = "X-Forwarded-For: " .. http.getenv("REMOTE_HOST") ..":".. http.getenv("REMOTE_PORT") - local num = tonumber(http.getenv("CONTENT_LENGTH")) or 0 - input[#input+1] = "Content-Length: " .. tostring(num) - input[#input+1] = "\r\n" - local source = ltn12.source.cat(ltn12.source.string(table.concat(input, "\r\n")), http.source()) - local ret = ltn12.pump.all(source, sink_socket(sock, "write sock error")) - if ret ~= 1 then - sock:close() - http.status(500, "proxy error") - return - end - - local linesrc = sock:linesource() - local line, code, error = linesrc() - if not line then - sock:close() - http.status(500, "response parse failed") - return - end - - local protocol, status, msg = line:match("^([%w./]+) ([0-9]+) (.*)") - if not protocol then - sock:close() - http.status(500, "response protocol error") - return - end - num = tonumber(status) or 0 - http.status(num, msg) - - local chunked = 0 - line = linesrc() - while line and line ~= "" do - local key, val = line:match("^([%w-]+)%s?:%s?(.*)") - if key and key ~= "Status" then - if key == "Transfer-Encoding" and val == "chunked" then - chunked = 1 - end - if key ~= "Connection" and key ~= "Transfer-Encoding" then - http.header(key, val) - end - end - line = linesrc() - end - if not line then - sock:close() - http.status(500, "parse header failed") - return - end - - local body_buffer = linesrc(true) - if chunked == 1 then - ltn12.pump.all(chunksource(sock, body_buffer), http.write) - else - local body_source = ltn12.source.cat(ltn12.source.string(body_buffer), sock:blocksource()) - ltn12.pump.all(body_source, http.write) - end - - sock:close() -end - -function chunksource(sock, buffer) - buffer = buffer or "" - return function() - local output - local _, endp, count = buffer:find("^([0-9a-fA-F]+);?.-\r\n") - while not count and #buffer <= 1024 do - local newblock, code = sock:recv(1024 - #buffer) - if not newblock then - return nil, code - end - buffer = buffer .. newblock - _, endp, count = buffer:find("^([0-9a-fA-F]+);?.-\r\n") - end - count = tonumber(count, 16) - if not count then - return nil, -1, "invalid encoding" - elseif count == 0 then - return nil - elseif count + 2 <= #buffer - endp then - output = buffer:sub(endp+1, endp+count) - buffer = buffer:sub(endp+count+3) - return output - else - output = buffer:sub(endp+1, endp+count) - buffer = "" - if count - #output > 0 then - local remain, code = sock:recvall(count-#output) - if not remain then - return nil, code - end - output = output .. remain - count, code = sock:recvall(2) - else - count, code = sock:recvall(count+2-#buffer+endp) - end - if not count then - return nil, code - end - return output - end - end -end diff --git a/applications/luci-app-quickstart/luasrc/controller/quickstart.lua b/applications/luci-app-quickstart/luasrc/controller/quickstart.lua deleted file mode 100755 index 84ff131..0000000 --- a/applications/luci-app-quickstart/luasrc/controller/quickstart.lua +++ /dev/null @@ -1,23 +0,0 @@ -local http = require "luci.http" - -module("luci.controller.quickstart", package.seeall) - -local page_index = {"admin", "quickstart", "pages"} - -function index() - entry({"admin", "quickstart"}, call("redirect_index"), _("QuickStart"), 1) - entry({"admin", "network_guide"}, call("networkguide_index"), _("NetworkGuide"), 2) - entry({"admin", "quickstart", "pages"}, call("quickstart_index")).leaf = true -end - -function networkguide_index() - luci.http.redirect(luci.dispatcher.build_url("admin","quickstart","pages","network")) -end - -function redirect_index() - luci.http.redirect(luci.dispatcher.build_url(unpack(page_index))) -end - -function quickstart_index() - luci.template.render("quickstart/main", {prefix=luci.dispatcher.build_url(unpack(page_index))}) -end \ No newline at end of file diff --git a/applications/luci-app-quickstart/luasrc/view/quickstart/main.htm b/applications/luci-app-quickstart/luasrc/view/quickstart/main.htm deleted file mode 100755 index 6b92b3b..0000000 --- a/applications/luci-app-quickstart/luasrc/view/quickstart/main.htm +++ /dev/null @@ -1,13 +0,0 @@ -<%+header%> - -
-
- - - -<%+footer%> diff --git a/applications/luci-app-quickstart/po/zh-cn/quickstart.po b/applications/luci-app-quickstart/po/zh-cn/quickstart.po deleted file mode 100755 index 2395118..0000000 --- a/applications/luci-app-quickstart/po/zh-cn/quickstart.po +++ /dev/null @@ -1,7 +0,0 @@ -msgid "NetworkGuide" -msgstr "网络向导" - -msgid "QuickStart" -msgstr "首页" - - diff --git a/applications/luci-app-quickstart/root/etc/uci-defaults/50_luci-quickstart b/applications/luci-app-quickstart/root/etc/uci-defaults/50_luci-quickstart deleted file mode 100755 index d7bfee2..0000000 --- a/applications/luci-app-quickstart/root/etc/uci-defaults/50_luci-quickstart +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -rm -f /tmp/luci-indexcache -exit 0 diff --git a/applications/luci-app-quickstart/root/www/luci-static/quickstart/index.js b/applications/luci-app-quickstart/root/www/luci-static/quickstart/index.js deleted file mode 100755 index d543f06..0000000 --- a/applications/luci-app-quickstart/root/www/luci-static/quickstart/index.js +++ /dev/null @@ -1 +0,0 @@ -var Vt=Object.defineProperty,Ot=Object.defineProperties;var qt=Object.getOwnPropertyDescriptors;var Bt=Object.getOwnPropertySymbols;var Gt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var kt=(e,s,u)=>s in e?Vt(e,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[s]=u,H=(e,s)=>{for(var u in s||(s={}))Gt.call(s,u)&&kt(e,u,s[u]);if(Bt)for(var u of Bt(s))Ut.call(s,u)&&kt(e,u,s[u]);return e},Y=(e,s)=>Ot(e,qt(s));var _t=(e,s,u)=>(kt(e,typeof s!="symbol"?s+"":s,u),u);var B=(e,s,u)=>new Promise((a,n)=>{var o=r=>{try{p(u.next(r))}catch(i){n(i)}},v=r=>{try{p(u.throw(r))}catch(i){n(i)}},p=r=>r.done?a(r.value):Promise.resolve(r.value).then(o,v);p((u=u.apply(e,s)).next())});import{d as P,r as Z,o as l,c as d,a as x,b as t,e as V,t as f,n as it,f as Mt,u as w,g as vt,h as G,w as T,i as Wt,j as F,k as wt,l as Pt,m as C,p as Ht,q as jt,s as Rt,v as Jt,x as Zt,y as Kt,z as Xt,A as pt,F as j,B as at,C as N,D as L,T as K,E as tt,G as X,H as z,I as lt,J as U,K as Qt,L as q,M as Yt,N as te,O as ee}from"./vendor.js";const se=function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const o of n)if(o.type==="childList")for(const v of o.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&a(v)}).observe(document,{childList:!0,subtree:!0});function u(n){const o={};return n.integrity&&(o.integrity=n.integrity),n.referrerpolicy&&(o.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?o.credentials="include":n.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(n){if(n.ep)return;n.ep=!0;const o=u(n);fetch(n.href,o)}};se();var D=(e,s)=>{const u=e.__vccOpts||e;for(const[a,n]of s)u[a]=n;return u};const ue={id:"main"},ae=P({setup(e){return(s,u)=>{const a=Z("router-view");return l(),d("div",ue,[x(a)])}}});var ne=D(ae,[["__scopeId","data-v-22a6a33a"]]);const oe={},ie={t:"1640593669834",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"54870",width:"128",height:"128"},le=t("path",{d:"M148.7872 57.4464h177.152c64.9216 0 118.0672 53.1456 118.0672 118.0672v295.2192H148.7872C83.8656 470.7328 30.72 417.5872 30.72 352.5632v-177.152C30.72 110.592 83.8656 57.4464 148.7872 57.4464z m0 531.3536h295.2192v295.2192c0 64.9216-53.1456 118.0672-118.0672 118.0672h-177.152C83.8656 1001.984 30.72 948.9408 30.72 883.9168v-177.152C30.72 641.9456 83.8656 588.8 148.7872 588.8z m0 0M768.7168 559.2064L562.0736 346.7264c-23.6544-17.7152-35.4304-53.1456-35.4304-82.6368s11.776-59.0848 35.4304-82.6368L686.08 57.4464C733.2864 10.24 810.0864 10.24 851.3536 57.4464l124.0064 124.0064c23.6544 23.6544 35.4304 53.1456 35.4304 82.6368s-11.776 59.0848-35.4304 82.6368L768.7168 559.2064z m0-478.208c-17.7152 0-29.4912 5.9392-41.3696 17.7152l-123.904 124.0064c-11.776 11.776-17.7152 23.6544-17.7152 41.3696s5.9392 29.4912 17.7152 41.3696l165.2736 165.2736 165.2736-165.2736c11.776-11.776 17.7152-23.6544 17.7152-41.3696s-5.9392-29.4912-17.7152-41.3696L809.984 98.7136c-11.776-11.776-23.552-17.7152-41.2672-17.7152z m0 0","p-id":"54871"},null,-1),ce=t("path",{d:"M562.0736 588.8h295.2192c64.9216 0 118.0672 53.1456 118.0672 118.0672v177.152c0 64.9216-53.1456 118.0672-118.0672 118.0672h-177.152c-64.9216 0-118.0672-53.1456-118.0672-118.0672V588.8z m0 0","p-id":"54872"},null,-1),de=[le,ce];function re(e,s){return l(),d("svg",ie,de)}var _e=D(oe,[["render",re]]);const ve={},pe={t:"1640598743438",class:"icon",viewBox:"0 0 1036 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"65341",width:"128",height:"128"},he=t("path",{d:"M984.177778 432.355556l-45.511111 0c-22.755556 0-45.511111-17.066667-51.2-39.822222l-28.444444-68.266667C847.644444 312.888889 853.333333 284.444444 870.4 267.377778l34.133333-34.133333c17.066667-17.066667 17.066667-39.822222 0-56.888889l-56.888889-56.888889c-17.066667-17.066667-39.822222-17.066667-56.888889 0l-34.133333 34.133333C739.555556 170.666667 711.111111 176.355556 694.044444 164.977778L625.777778 136.533333c-22.755556-5.688889-39.822222-28.444444-39.822222-51.2L585.955556 39.822222c0-22.755556-17.066667-39.822222-39.822222-39.822222L472.177778 0C449.422222 0 432.355556 17.066667 432.355556 39.822222l0 45.511111c0 22.755556-17.066667 45.511111-39.822222 51.2L329.955556 164.977778C312.888889 176.355556 284.444444 170.666667 267.377778 153.6L233.244444 119.466667c-17.066667-17.066667-39.822222-17.066667-56.888889 0l-56.888889 56.888889c-17.066667 17.066667-17.066667 39.822222 0 56.888889l34.133333 34.133333C170.666667 284.444444 176.355556 312.888889 164.977778 329.955556L136.533333 398.222222C130.844444 415.288889 108.088889 432.355556 85.333333 432.355556l-45.511111 0C17.066667 432.355556 0 449.422222 0 472.177778l0 79.644444c0 22.755556 17.066667 39.822222 39.822222 39.822222l45.511111 0c22.755556 0 45.511111 17.066667 51.2 39.822222l28.444444 68.266667C176.355556 711.111111 170.666667 739.555556 153.6 756.622222l-34.133333 34.133333c-17.066667 17.066667-17.066667 39.822222 0 56.888889l56.888889 56.888889c17.066667 17.066667 39.822222 17.066667 56.888889 0l34.133333-34.133333C284.444444 853.333333 312.888889 847.644444 329.955556 859.022222L398.222222 887.466667c22.755556 5.688889 39.822222 28.444444 39.822222 51.2l0 45.511111c0 22.755556 17.066667 39.822222 39.822222 39.822222l79.644444 0c22.755556 0 39.822222-17.066667 39.822222-39.822222l0-45.511111c0-22.755556 17.066667-45.511111 39.822222-51.2l68.266667-28.444444c17.066667-11.377778 45.511111-5.688889 62.577778 11.377778l34.133333 34.133333c17.066667 17.066667 39.822222 17.066667 56.888889 0l56.888889-56.888889c17.066667-17.066667 17.066667-39.822222 0-56.888889l-34.133333-34.133333c-17.066667-17.066667-17.066667-45.511111-11.377778-62.577778l28.444444-68.266667c5.688889-22.755556 28.444444-39.822222 51.2-39.822222l45.511111 0c22.755556 0 39.822222-17.066667 39.822222-39.822222L1035.377778 472.177778C1024 449.422222 1006.933333 432.355556 984.177778 432.355556L984.177778 432.355556zM711.111111 512c0 108.088889-91.022222 199.111111-199.111111 199.111111-108.088889 0-199.111111-85.333333-199.111111-199.111111 0-108.088889 85.333333-199.111111 199.111111-199.111111C620.088889 312.888889 711.111111 403.911111 711.111111 512L711.111111 512zM711.111111 512","p-id":"65342"},null,-1),me=[he];function be(e,s){return l(),d("svg",pe,me)}var fe=D(ve,[["render",be]]);const $e={},ye={t:"1640599890701",class:"icon",viewBox:"0 0 1565 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"76947",width:"128",height:"128"},Fe=t("path",{d:"M1206.477959 299.331595c-27.357038 0-53.867311 3.354494-79.465683 9.151581C1078.518669 130.792698 916.428217 0 723.365689 0 492.068443 0 304.575027 187.493416 304.575027 418.790662c0 16.055976 1.074741 31.786273 2.865975 47.386299-9.184149-0.911901-18.400865-1.40042-27.812989-1.40042C125.191018 464.743973 0 589.934991 0 744.371987c0 154.469563 125.191018 279.628013 279.595446 279.628013 59.990077 0 221.233764 0 394.527575 0l0-302.295274L496.986197 721.704726l285.457668-339.031868 285.457668 339.031868-177.136823 0 0 302.295274c139.748871 0 262.204185 0 315.71325 0 197.947713 0 358.40977-168.34349 358.40977-366.291203S1404.425673 299.331595 1206.477959 299.331595z","p-id":"76948"},null,-1),ge=[Fe];function De(e,s){return l(),d("svg",ye,ge)}var Ee=D($e,[["render",De]]);const ke={},we={t:"1640599792937",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"68605",width:"128",height:"128"},Ce=t("path",{d:"M512 825.6c-211.2 0-377.6-57.6-377.6-128l0 0L134.4 896l0 0c6.4 70.4 172.8 128 377.6 128 204.8 0 371.2-57.6 377.6-128l0 0 0-204.8 0 0C889.6 768 723.2 825.6 512 825.6L512 825.6z","p-id":"68606"},null,-1),Se=t("path",{d:"M512 544c-211.2 0-377.6-57.6-377.6-128l0 0 0 204.8 0 0c6.4 70.4 172.8 128 377.6 128 204.8 0 371.2-57.6 377.6-128l0 0L889.6 416l0 0C889.6 486.4 723.2 544 512 544L512 544z","p-id":"68607"},null,-1),Ae=t("path",{d:"M889.6 128 889.6 128c0-70.4-166.4-128-377.6-128C300.8 0 134.4 57.6 134.4 128l0 0 0 0 0 204.8 0 0c6.4 70.4 172.8 128 377.6 128 204.8 0 371.2-57.6 377.6-128l0 0L889.6 128 889.6 128 889.6 128zM512 217.6c-153.6 0-281.6-44.8-281.6-96 0-51.2 128-96 281.6-96 153.6 0 281.6 44.8 281.6 96C793.6 179.2 665.6 217.6 512 217.6L512 217.6z","p-id":"68608"},null,-1),xe=[Ce,Se,Ae];function Be(e,s){return l(),d("svg",we,xe)}var Me=D(ke,[["render",Be]]);const Pe={},Te={t:"1640575557247",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4211",width:"128",height:"128"},Ie=t("path",{d:"M560 800l-10.464-416h-75.072L464 800h96z m-14.144-493.984c9.44-9.312 14.144-20.672 14.144-34.016 0-13.6-4.704-24.992-14.144-34.208A46.784 46.784 0 0 0 512 224c-13.12 0-24.448 4.608-33.856 13.792A45.856 45.856 0 0 0 464 272c0 13.344 4.704 24.704 14.144 34.016 9.408 9.312 20.704 13.984 33.856 13.984 13.12 0 24.448-4.672 33.856-13.984zM512 32C246.912 32 32 246.912 32 512c0 265.088 214.912 480 480 480 265.088 0 480-214.912 480-480 0-265.088-214.912-480-480-480z m0 64c229.76 0 416 186.24 416 416s-186.24 416-416 416S96 741.76 96 512 282.24 96 512 96z","p-id":"4212"},null,-1),ze=[Ie];function Ne(e,s){return l(),d("svg",Te,ze)}var Le=D(Pe,[["render",Ne]]);const Ve={},Oe={t:"1640681742480",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"80687",width:"128",height:"128"},qe=t("path",{d:"M899.892468 123.889088c0-44.342099-36.286708-80.620486-80.624646-80.620486H204.728017C160.385918 43.268602 124.107532 79.546988 124.107532 123.889088v802.847056c0 44.342099 36.278386 80.620486 80.620485 80.620486h614.539805c44.337938 0 80.624646-36.278386 80.624646-80.620486V123.889088z",fill:"#D0D0DB","p-id":"80688"},null,-1),Ge=t("path",{d:"M169.8768 977.7772V174.930143c0-44.342099 36.278386-80.620486 80.620486-80.620485h614.539804c9.936092 0 19.426974 1.905666 28.239639 5.23434-11.525534-30.507298-40.996782-52.389169-75.398629-52.389169H203.342457c-44.342099 0-80.620486 36.278386-80.620486 80.620486v802.851217c0 34.410168 21.881871 63.873094 52.385008 75.381985A79.730065 79.730065 0 0 1 169.8768 977.7772z",fill:"#FFFFFF","p-id":"80689"},null,-1),Ue=t("path",{d:"M820.657543 40.497481H206.117739c-44.342099 0-80.620486 36.278386-80.620486 80.620485v802.847057c0 44.342099 36.278386 80.620486 80.620486 80.620486h614.539804c44.337938 0 80.624646-36.278386 80.624647-80.620486V121.117966c0-44.342099-36.286708-80.620486-80.624647-80.620485z m19.60173 828.785749c0 40.846992-33.43237 74.279362-74.287684 74.279361H199.780776c-40.855313 0-74.279362-33.424048-74.279362-74.279361V129.593603c0-40.855313 33.424048-74.279362 74.279362-74.279362h566.203296c40.842831 0 74.283522 33.424048 74.283522 74.279362l-0.008321 739.689627z",fill:"#6E6E96","p-id":"80690"},null,-1),We=t("path",{d:"M815.106979 1024H200.567175C146.933914 1024 103.303319 980.369405 103.303319 926.736144V123.889088C103.303319 70.255827 146.933914 26.625232 200.567175 26.625232h614.539804c53.633261 0 97.268017 43.630595 97.268017 97.263856v802.847056c0 53.633261-43.634756 97.263856-97.268017 97.263856zM200.567175 59.911972C165.287391 59.911972 136.590059 88.609303 136.590059 123.889088v802.847056c0 35.279784 28.697331 63.977115 63.977116 63.977115h614.539804c35.279784 0 63.981276-28.697331 63.981276-63.977115V123.889088c0-35.279784-28.701492-63.977115-63.981276-63.977116H200.567175z",fill:"#6E6E96","p-id":"80691"},null,-1),He=t("path",{d:"M301.946104 941.515457h429.985632v65.841173H301.946104z",fill:"#8A8AA1","p-id":"80692"},null,-1),je=t("path",{d:"M731.931736 1024H301.946104a16.64337 16.64337 0 0 1-16.64337-16.64337V941.515457a16.64337 16.64337 0 0 1 16.64337-16.64337h429.985632a16.64337 16.64337 0 0 1 16.64337 16.64337v65.841173a16.64337 16.64337 0 0 1-16.64337 16.64337z m-413.342262-33.286741h396.698892v-32.554432H318.589474v32.554432z",fill:"#6E6E96","p-id":"80693"},null,-1),Re=t("path",{d:"M337.230049 960.318304h20.804213v47.038326h-20.804213zM386.565159 960.318304h20.804213v47.038326h-20.804213zM435.891948 960.318304h20.804213v47.038326h-20.804213zM485.231219 960.318304h20.804213v47.038326h-20.804213zM534.558008 960.318304h20.804213v47.038326h-20.804213zM583.897279 960.318304h20.804213v47.038326h-20.804213zM633.224068 960.318304h20.804213v47.038326h-20.804213zM682.563339 960.318304h20.804213v47.038326h-20.804213z",fill:"#FFE599","p-id":"80694"},null,-1),Je=t("path",{d:"M219.153659 140.794591m-26.874883 0a26.874882 26.874882 0 1 0 53.749765 0 26.874882 26.874882 0 1 0-53.749765 0Z",fill:"#ADADD1","p-id":"80695"},null,-1),Ze=t("path",{d:"M219.153659 184.312843c-23.995579 0-43.518252-19.522673-43.518253-43.518252s19.522673-43.518252 43.518253-43.518253 43.518252 19.522673 43.518252 43.518253-19.522673 43.518252-43.518252 43.518252z m0-53.749764c-5.642103 0-10.231512 4.589409-10.231512 10.231512s4.589409 10.231512 10.231512 10.231512 10.231512-4.589409 10.231511-10.231512-4.589409-10.231512-10.231511-10.231512z",fill:"#6E6E96","p-id":"80696"},null,-1),Ke=t("path",{d:"M801.28466 140.794591m-26.870721 0a26.870721 26.870721 0 1 0 53.741442 0 26.870721 26.870721 0 1 0-53.741442 0Z",fill:"#ADADD1","p-id":"80697"},null,-1),Xe=t("path",{d:"M801.28466 184.308683c-23.995579 0-43.514092-19.518512-43.514091-43.514092s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514092z m0-53.741443c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"80698"},null,-1),Qe=t("path",{d:"M801.280499 905.23291m-26.870721 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"80699"},null,-1),Ye=t("path",{d:"M801.280499 948.747001c-23.995579 0-43.514092-19.518512-43.514091-43.514091s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"80700"},null,-1),t1=t("path",{d:"M219.153659 905.23291m-26.870722 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"80701"},null,-1),e1=t("path",{d:"M219.153659 948.747001c-23.995579 0-43.514092-19.518512-43.514092-43.514091s19.518512-43.514092 43.514092-43.514092 43.514092 19.518512 43.514091 43.514092-19.522673 43.514092-43.514091 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"80702"},null,-1),s1=t("path",{d:"M520.972857 777.43263c-142.542145 0-258.508988-115.971004-258.508988-258.52147a16.64337 16.64337 0 0 1 33.28674 0c0 124.19699 101.033579 225.23473 225.222248 225.23473s225.222248-101.03774 225.222248-225.23473c0-124.188668-101.033579-225.218087-225.222248-225.218087a16.64337 16.64337 0 0 1 0-33.286741c142.542145 0 258.508988 115.966843 258.508988 258.504828 0 142.550466-115.966843 258.521471-258.508988 258.52147z",fill:"#6E6E96","p-id":"80703"},null,-1),u1=t("path",{d:"M520.968696 518.919481m-83.312551 0a83.312551 83.312551 0 1 0 166.625102 0 83.312551 83.312551 0 1 0-166.625102 0Z",fill:"#A9A9BA","p-id":"80704"},null,-1),a1=t("path",{d:"M520.968696 618.875402c-55.114521 0-99.955921-44.83724-99.955921-99.95176 0-55.118682 44.8414-99.955921 99.955921-99.955921s99.95176 44.8414 99.95176 99.955921c0 55.11036-44.83724 99.95176-99.95176 99.95176z m0-166.625101c-36.761044 0-66.669181 29.908136-66.66918 66.66918s29.908136 66.66502 66.66918 66.66502 66.66502-29.908136 66.66502-66.66502c0-36.761044-29.903976-66.669181-66.66502-66.66918z",fill:"#6E6E96","p-id":"80705"},null,-1),n1=t("path",{d:"M301.946104 941.515457h429.985632v36.977408H301.946104z",fill:"#6E6E96","p-id":"80706"},null,-1),o1=[qe,Ge,Ue,We,He,je,Re,Je,Ze,Ke,Xe,Qe,Ye,t1,e1,s1,u1,a1,n1];function i1(e,s){return l(),d("svg",Oe,o1)}var l1=D(Ve,[["render",i1]]);const c1={},d1={t:"1640775712185",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2996",width:"128",height:"128"},r1=t("path",{d:"M894.185422 128.023792 129.814578 445.743994 445.99982 577.744353 571.860343 893.929596Z","p-id":"2997"},null,-1),_1=[r1];function v1(e,s){return l(),d("svg",d1,_1)}var p1=D(c1,[["render",v1]]);const h1={class:"progress"},m1=P({props:{value:{type:Number,required:!0},text:{type:String}},setup(e){const s=e,u=V(()=>s.value>=80?"#e45e5e":s.value>=60?"rgb(41 127 243)":s.value>0?"#53c31b":"");return(a,n)=>(l(),d("div",h1,[t("div",{class:it(["progress-value",`${e.value>50}`]),style:Mt({width:`${e.value}%`,backgroundColor:w(u)})},[t("span",null,f(e.text),1)],6),vt(a.$slots,"default",{},void 0,!0)]))}});var b1=D(m1,[["__scopeId","data-v-7a820a37"]]);const f1={},$1={t:"1641369474206",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7685",width:"128",height:"128"},y1=t("path",{d:"M757.76 637.44l-218.88 245.76c-14.72 16.64-40.32 16.64-54.4 0L265.6 637.44C244.48 613.76 261.12 576 293.12 576l437.76 0C762.24 576 779.52 613.76 757.76 637.44z","p-id":"7686"},null,-1),F1=[y1];function g1(e,s){return l(),d("svg",$1,F1)}var D1=D(f1,[["render",g1]]);const E1={},k1={t:"1641369492518",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7831",width:"128",height:"128"},w1=t("path",{d:"M758.4 385.92 539.52 140.16c-14.72-16.64-40.32-16.64-54.4 0L266.24 385.92C244.48 409.6 261.76 448 293.12 448l437.76 0C762.88 448 779.52 409.6 758.4 385.92z","p-id":"7832"},null,-1),C1=[w1];function S1(e,s){return l(),d("svg",k1,C1)}var A1=D(E1,[["render",S1]]);const x1={};function B1(e,s){return l(),d("article",null,[vt(e.$slots,"default",{},void 0,!0)])}var M1=D(x1,[["render",B1],["__scopeId","data-v-bd286d4e"]]);const P1={class:"cover"},T1={class:"thumbnail"},I1=P({emits:["click"],setup(e,{emit:s}){const u=()=>{s("click")};return(a,n)=>(l(),G(M1,null,{default:T(()=>[t("a",{onClick:u},[t("div",P1,[t("div",T1,[vt(a.$slots,"default",{},void 0,!0)])])])]),_:3}))}});var z1=D(I1,[["__scopeId","data-v-123deb20"]]);const N1=(e,s)=>B(void 0,null,function*(){return new Promise((u,a)=>B(void 0,null,function*(){try{const n=yield fetch(e,s),o=H({},n);o.data=yield n.json(),u(o)}catch(n){a(n)}}))});class Ct{constructor(s){_t(this,"config",{baseURL:"",headers:{}});_t(this,"useRequest",s=>s);_t(this,"useResponse",s=>s);_t(this,"useError",s=>s);s.baseURL&&(this.config.baseURL=s.baseURL),s.headers&&(this.config.headers=s.headers)}static create(s){return new Ct(s)}Do(s,u){return B(this,null,function*(){return new Promise((a,n)=>B(this,null,function*(){try{const o=this.useRequest({baseURL:this.config.baseURL,headers:this.config.headers});s=`${o.baseURL||""}${s}`,u.headers==null&&(u.headers={}),o.headers&&(u.headers=H({},o.headers));const p=yield fetch(s,u),r=H({},p);r.data=yield p.json(),a(this.useResponse(r))}catch(o){this.useError(o),n(o)}}))})}TEXT(s,u){return B(this,null,function*(){return new Promise((a,n)=>B(this,null,function*(){try{const o=this.useRequest({baseURL:this.config.baseURL,headers:this.config.headers});s=`${o.baseURL||""}${s}`,u.headers==null&&(u.headers={}),o.headers&&(u.headers=H({},o.headers));const p=yield fetch(s,u),r=H({},p);r.data=yield p.text(),a(r)}catch(o){this.useError(o),n(o)}}))})}interceptors(){const s=this;return{requset:{use(u){s.useRequest=u}},response:{use(u,a){s.useResponse=u,a&&(s.useError=a)}}}}}const Tt=Ct.create({});Tt.interceptors().requset.use(e=>e);Tt.interceptors().response.use(e=>(e.data&&e.data.success==null&&e.data.success==0,e));const L1="/cgi-bin/luci/istore",I=(e,s)=>(e=`${L1}${e}`,N1(e,s)),V1={Statistics:{GET(){return I("/network/statistics/",{method:"GET"})}},Status:{GET(){return I("/network/status/",{method:"GET"})}},Device:{List:{GET(){return I("/network/device/list/",{method:"GET"})}}}},O1={Version:{GET(){return I("/system/version/",{method:"GET"})}},Time:{GET(){return I("/system/time/",{method:"GET"})}},CPU:{Status:{GET(){return I("/system/cpu/status/",{method:"GET"})}},Temperature:{GET(){return I("/system/cpu/temperature/",{method:"GET"})}}},Memery:{Status:{GET(){return I("/system/memery/status/",{method:"GET"})}}},CheckUpdate:{GET(){return I("/system/check-update/",{method:"GET"})}}},q1={Disk:{Status:{GET(){return I("/nas/disk/status/",{method:"GET"})}},Erase:{POST(e){return I("/nas/disk/erase",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Init:{POST:e=>I("/nas/disk/init",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})},Partition:{Format:{POST:e=>I("/nas/disk/partition/format",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},Service:{Status:{GET(){return I("/nas/service/status/",{method:"GET"})}}},Samba:{Create:{POST(e){return I("/nas/samba/create",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},Webdav:{Create:{POST(e){return I("/nas/webdav/create",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Status:{GET(){return I("/nas/webdav/status/",{method:"GET"})}}},Linkease:{Enable:{POST(){return I("/nas/linkease/enable",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"}})}}}},G1={Check:{POST(e){return I("/app/check/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},Install:{POST(e){return I("/app/install/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}},U1={Pppoe:{GET(){return I("/guide/pppoe/",{method:"GET"})},POST(e){return I("/guide/pppoe/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DnsConfig:{GET(){return I("/guide/dns-config/",{method:"GET"})},POST(e){return I("/guide/dns-config/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},DhcpClient:{POST(e){return I("/guide/dhcp-client/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},ClientModel:{GET(){return I("/guide/client-mode/",{method:"GET"})},POST(e){return I("/guide/client-mode/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}},GatewayRouter:{POST(e){return I("/guide/gateway-router/",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8"},body:JSON.stringify(e)})}}};var W1=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",Network:V1,System:O1,Nas:q1,App:G1,Guide:U1}),M=H({},W1);const H1=e=>{},j1=()=>new Date().getTime(),R1=e=>{const s=1e3;if(e=s;v/=s)u*=s,a++;let n=["/KB","/MB","/GB","/TB","/PB","/EB"];return(e/100/(u/100)).toFixed(1)+n[a]},J1=e=>{const s=1024;if(e=s;o/=s)u*=s,a++;let n=["M","G","T","P","E"];return(e/100/(u/100)).toFixed(2)+n[a]},Z1=e=>{if(e==null)return 0;if(e<1e4)return e;let u=parseInt(`${e/1e4}`),a=e%1e4;return`${u}\u4E07${a}`},K1=e=>{if(e)try{var s=new Date(e),u=s.getHours(),a=s.getMinutes(),n=s.getSeconds();return u<10&&(u=`0${u}`),a<10&&(a=`0${a}`),n<10&&(n=`0${n}`),`${u}:${a}:${n}`}catch(o){}return""},X1=e=>{if(e){let s=Math.floor(e/86400),u=Math.floor(e%86400/3600),a=Math.floor(e%86400%3600/60),n=Math.floor(e%86400%3600%60);return s+"\u5929"+u+"\u5C0F\u65F6"+(a>10?a:"0"+a)+"\u5206"+(n>10?n:"0"+n)+"\u79D2"}},Q1=e=>/^\d+\.\d+\.\d+\.\d+$/.test(e);var Y1=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",formatDate:H1,UnixDate:j1,byteToSize:R1,numberToSize:J1,numberToSum:Z1,dateForm:K1,stampForm:X1,checkIsIP:Q1}),ht=H({},Y1);const ts={class:"flow"},es={class:"flow-data"},ss={key:0},us={key:1},as=P({setup(e){Wt([Ht,jt,Rt,Jt,Zt,Kt]);const s=F(),u=()=>{var y;let $=[];return(y=s.value)==null||y.forEach(A=>{$.push({value:`${r(A.startTime*1e3)} - ${r(A.endTime*1e3)}`})}),$},a=V(()=>{var y;let $=[];return(y=s.value)==null||y.forEach(A=>{$.push({value:A.uploadSpeed})}),$}),n=V(()=>{var y;let $=[];return(y=s.value)==null||y.forEach(A=>{$.push({value:A.downloadSpeed})}),$}),o=V(()=>{var y;let $="";if(s.value){let A=((y=s.value)==null?void 0:y.length)||0;if(A>0){let S=s.value[A-1];$=i(S.uploadSpeed)}}return $}),v=V(()=>{var y;let $="";if(s.value){let A=((y=s.value)==null?void 0:y.length)||0;if(A>0){let S=s.value[A-1];$=i(S.downloadSpeed)}}return $});V(()=>{var y;let $=[];return(y=s.value)==null||y.forEach(A=>{$.push({value:A.downloadSpeed+A.uploadSpeed})}),$});const p=()=>B(this,null,function*(){var $;try{const y=yield M.Network.Statistics.GET();y.data&&(($=y.data.result)==null?void 0:$.items)&&(s.value=y.data.result.items)}catch(y){console.log(y)}}),r=ht.dateForm,i=ht.byteToSize,c=F();let _=null;const g=$=>(_=Xt($,"dark"),_.setOption({animation:!1,backgroundColor:"transparent",tooltip:{trigger:"axis",formatter:y=>{if(Array.isArray(y)){let A="";y.length>0&&(A=`${y[0].axisValue}`);for(let S=0;S${y[S].seriesName}: ${i(y[S].value)}`;return A.toString()}else{const A=y;return`${A.seriesName}: ${i(A.value)}`}}},xAxis:{type:"category",boundaryGap:!1,data:u(),splitLine:{lineStyle:{color:["#999"]},show:!1},name:"",show:!1,nameGap:0,nameTextStyle:{height:0,lineHeight:0,padding:0}},title:{text:"\u6D41\u91CF\u7EDF\u8BA1",textStyle:{fontSize:12},top:"10px",left:"10px"},yAxis:{type:"value",name:"",minInterval:1e5,interval:1e4,axisLabel:{formatter:function(y,A){return`${i(y)}`},color:"#fff",show:!1},nameTextStyle:{color:"#fff"},splitLine:{lineStyle:{color:["#999"]},show:!1}},series:[{name:"\u4E0B\u8F7D",data:n.value,type:"line",smooth:!0,areaStyle:{}},{name:"\u4E0A\u4F20",data:a.value,type:"line",smooth:!0,areaStyle:{}}],legend:{padding:0,align:"right",top:"10px",selected:{\u4E0A\u4F20:!0,\u4E0B\u8F7D:!0}},grid:{left:"2%",right:"2%",bottom:"2%",top:"10%",containLabel:!0}}),_);return wt(()=>B(this,null,function*(){if(yield p(),c.value){const $=g(c.value);$.appendData;const y=c.value;$.resize({width:y.clientWidth,height:y.clientHeight}),window.addEventListener("resize",()=>{$.resize({width:y.clientWidth,height:y.clientHeight})}),setInterval(()=>B(this,null,function*(){yield p(),$.setOption({series:[{name:"\u4E0B\u8F7D",data:n.value,type:"line",areaStyle:{},smooth:!0},{name:"\u4E0A\u4F20",data:a.value,type:"line",areaStyle:{},smooth:!0}]})}),5e3)}})),Pt(()=>{_!=null&&_.dispose()}),($,y)=>(l(),d("div",ts,[t("div",{ref_key:"el",ref:c,class:"echart"},null,512),t("div",es,[w(o)?(l(),d("span",ss,"\u4E0A\u4F20: "+f(w(o)),1)):C("",!0),w(v)?(l(),d("span",us,"\u4E0B\u8F7D: "+f(w(v)),1)):C("",!0)])]))}});var ns=D(as,[["__scopeId","data-v-803a3938"]]);pt("app",{});pt("guide",{});const os=pt("nas",{state:()=>({webdav:{}})}),It=pt("network",{state:()=>({status:{},statistics:{},devicelList:{}}),getters:{},actions:{requestNetworkStatus(){M.Network.Status.GET().then(e=>{if(e==null?void 0:e.data){const{result:s}=e==null?void 0:e.data;s&&(this.status=s,this.status.internetConnected===null&&(this.status.internetConnected=!1))}})},requestNetworkStatistics(){return B(this,null,function*(){try{const e=yield M.Network.Statistics.GET();(e==null?void 0:e.data)&&e.data.result&&(this.statistics=e.data.result)}catch(e){console.log(e)}})},requestDeviceList(){M.Network.Device.List.GET().then(e=>{if(e==null?void 0:e.data){const{result:s}=e==null?void 0:e.data;s&&(this.devicelList=s)}})},incrTime(){this.status.uptimeStamp&&this.status.uptimeStamp++}}}),St=pt("system",{state:()=>({version:{},time:{},cpuStatus:{},cpuTemperature:{},meneryStatus:{},checkUpdate:{}}),getters:{},actions:{incrTime(){var e;((e=this.time)==null?void 0:e.uptime)&&this.time.uptime++},requestVersion(){M.System.Version.GET().then(e=>{var s;((s=e==null?void 0:e.data)==null?void 0:s.result)&&(this.version=e.data.result)})},requestTime(){M.System.Time.GET().then(e=>{var s;((s=e==null?void 0:e.data)==null?void 0:s.result)&&(this.time=e.data.result)})},requestCpuStatus(){M.System.CPU.Status.GET().then(e=>{(e==null?void 0:e.data.result)&&(this.cpuStatus=e==null?void 0:e.data.result)})},requestCpuTemperature(){M.System.CPU.Temperature.GET().then(e=>{(e==null?void 0:e.data.result)&&(this.cpuTemperature=e==null?void 0:e.data.result)})},requestMeneryStatus(){M.System.Memery.Status.GET().then(e=>{(e==null?void 0:e.data.result)&&(this.meneryStatus=e==null?void 0:e.data.result)})},requestCheckUpdate(){M.System.CheckUpdate.GET().then(e=>{var s;((s=e==null?void 0:e.data)==null?void 0:s.result)&&(this.checkUpdate=e.data.result)})}}}),is=()=>{const e=It(),s=St();e.requestNetworkStatus(),e.requestDeviceList(),s.requestVersion(),s.requestTime(),s.requestCpuStatus(),s.requestCpuTemperature(),s.requestMeneryStatus(),s.requestCheckUpdate(),setInterval(()=>{s.requestCpuStatus(),s.requestCpuTemperature(),s.requestMeneryStatus()},3e3),setInterval(()=>{e.incrTime(),s.incrTime()},1e3)};const et=e=>(N("data-v-9f125f8e"),e=e(),L(),e),ls={class:"app-container_status-label"},cs={class:"app-container_status-label_item"},ds={class:"app-container_status-container",style:{height:"100%"}},rs={key:0,class:"app-container_status-container_body"},_s=et(()=>t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128"},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063"})],-1)),vs=et(()=>t("span",{class:"container_success"},"\u5DF2\u8FDE\u63A5\u4E92\u8054\u7F51",-1)),ps={class:"container_time"},hs={key:1,class:"app-container_status-container_body"},ms=et(()=>t("svg",{t:"1642063200324",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5898",width:"128",height:"128"},[t("path",{d:"M549.044706 512l166.189176-166.249412a26.383059 26.383059 0 0 0 0-36.98447 26.383059 26.383059 0 0 0-37.044706 0L512 475.015529l-166.249412-166.249411a26.383059 26.383059 0 0 0-36.98447 0 26.383059 26.383059 0 0 0 0 37.044706L475.015529 512l-166.249411 166.249412a26.383059 26.383059 0 0 0 0 36.98447 26.383059 26.383059 0 0 0 37.044706 0L512 548.984471l166.249412 166.249411a26.383059 26.383059 0 0 0 36.98447 0 26.383059 26.383059 0 0 0 0-37.044706L548.984471 512zM512 1024a512 512 0 1 1 0-1024 512 512 0 0 1 0 1024z",fill:"#E84335","p-id":"5899"})],-1)),bs=et(()=>t("span",{class:"container_failure"},"\u672A\u8FDE\u63A5\u4E92\u8054\u7F51",-1)),fs=[ms,bs],$s={key:1,class:"app-container_status-container_body"},ys=et(()=>t("svg",{t:"1642063200324",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5898",width:"128",height:"128"},[t("path",{d:"M549.044706 512l166.189176-166.249412a26.383059 26.383059 0 0 0 0-36.98447 26.383059 26.383059 0 0 0-37.044706 0L512 475.015529l-166.249412-166.249411a26.383059 26.383059 0 0 0-36.98447 0 26.383059 26.383059 0 0 0 0 37.044706L475.015529 512l-166.249411 166.249412a26.383059 26.383059 0 0 0 0 36.98447 26.383059 26.383059 0 0 0 37.044706 0L512 548.984471l166.249412 166.249411a26.383059 26.383059 0 0 0 36.98447 0 26.383059 26.383059 0 0 0 0-37.044706L548.984471 512zM512 1024a512 512 0 1 1 0-1024 512 512 0 0 1 0 1024z",fill:"#E84335","p-id":"5899"})],-1)),Fs={class:"container_failure"},gs={class:"app-container_status-label_item"},Ds={class:"app-container_status-container",style:{height:"100%"}},Es={class:"app-container_status-container_body"},ks=et(()=>t("svg",{t:"1642045422383",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"18766",width:"128",height:"128"},[t("path",{d:"M663.716 890.757a60.723 60.723 0 0 0 60.805 60.723h235.54a60.703 60.703 0 0 0 60.744-60.723V782.05h-357.09v108.708zM842.3 829.85c20.603 0 37.376 16.773 37.376 37.458a37.396 37.396 0 0 1-74.813 0c0-20.685 16.773-37.458 37.437-37.458z m178.504-576.226a60.703 60.703 0 0 0-60.744-60.764h-235.54a60.744 60.744 0 0 0-60.805 60.764v503.214h357.09V253.624z m-49.07 159.253a11.612 11.612 0 0 1-11.674 11.571h-235.54a11.633 11.633 0 0 1-11.653-11.571v-38.994c0-6.39 5.243-11.592 11.653-11.592h235.54c6.41 0 11.674 5.161 11.674 11.592v38.994z m0-115.2a11.674 11.674 0 0 1-11.674 11.612h-235.54a11.674 11.674 0 0 1-11.653-11.612v-38.974a11.674 11.674 0 0 1 11.653-11.653h235.54c6.41 0 11.674 5.243 11.674 11.653v38.974z",fill:"#1296db","p-id":"18767"}),t("path",{d:"M626.012 875.07h-76.185V763.473h76.185V660.582H62.3V150.323h856.494v13.169h58.553c1.27 0 2.457 0.287 3.747 0.368v-7.516a72.335 72.335 0 0 0-72.376-72.376H72.376A72.376 72.376 0 0 0 0 156.344v534.774a72.356 72.356 0 0 0 72.376 72.335h368.927V875.05H298.537a38.216 38.216 0 0 0 0 76.41h344.474a71.844 71.844 0 0 1-16.999-46.12v-30.27z",fill:"#1296db","p-id":"18768"})],-1)),ws={class:"container_content"},Cs=et(()=>t("em",null,null,-1)),Ss={class:"app-container_status-container"},As=et(()=>t("div",{class:"app-container_title"},[t("span",null,"IP\u5730\u5740")],-1)),xs={class:"app-container_status-label_block"},Bs={class:"app-container_status-label_block"},Ms={class:"app-container_title"},Ps={class:"app-container_status-label_block"},Ts=P({setup(e){const s=It(),u=V(()=>s.status),a=V(()=>s.devicelList),n=p=>{switch(p){case"pppoe":return"\u62E8\u53F7\u4E0A\u7F51";case"static":return"\u9759\u6001\u7F51\u7EDC";case"dhcp":return"DHCP"}},o=p=>{switch(p){case"manual":return"\u624B\u52A8\u914D\u7F6E";case"auto":return"\u81EA\u52A8\u83B7\u53D6";default:return""}},v=ht.stampForm;return(p,r)=>{var i,c;return l(),d(j,null,[t("div",ls,[t("div",cs,[t("div",ds,[w(u).internetConnected!=null?(l(),d(j,{key:0},[w(u).internetConnected?(l(),d("div",rs,[_s,vs,t("span",ps,f(w(v)(w(u).uptimeStamp)),1)])):(l(),d("div",hs,fs))],64)):C("",!0),w(u).networkInfo?(l(),d("div",$s,[ys,t("span",Fs,f(w(u).networkInfo),1)])):C("",!0)])]),t("div",gs,[t("div",Ds,[t("div",Es,[ks,t("span",ws,f(((c=(i=w(a))==null?void 0:i.devices)==null?void 0:c.length)||0)+"\u8BBE\u5907",1)])])])]),Cs,t("div",Ss,[As,t("div",xs,[t("span",null," IPv4\uFF1A "+f(w(u).ipv4addr)+" \uFF08"+f(n(w(u).proto||""))+"\uFF09 ",1)]),t("div",Bs,[t("span",null,"IPv6\uFF1A"+f(w(u).ipv6addr),1)]),t("div",Ms,[t("span",null,"DNS\uFF08"+f(o(w(u).dnsProto))+"\uFF09",1)]),(l(!0),d(j,null,at(w(u).dnsList,_=>(l(),d("div",Ps,[t("span",null,f(_),1)]))),256))])],64)}}});var Is=D(Ts,[["__scopeId","data-v-9f125f8e"]]);const zs={class:"network-container"},Ns={class:"network-container_flow"},Ls={class:"network-container_flow-container"},Vs={class:"network-container_status"},Os=P({setup(e){return(s,u)=>(l(),d("div",zs,[t("div",Ns,[t("div",Ls,[x(ns,{style:{height:"360px"}})])]),t("div",Vs,[x(Is)])]))}});var qs=D(Os,[["__scopeId","data-v-775eefb5"]]);const Gs={},Us={t:"1640746738262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1216",width:"128",height:"128"},Ws=t("path",{d:"M511.232 438.8352L112.9984 40.6016A51.2 51.2 0 0 0 40.6016 112.9984L438.784 511.232 40.6016 909.4656a51.2 51.2 0 1 0 72.3968 72.448l398.2336-398.2848 398.2336 398.2848a51.2 51.2 0 1 0 72.448-72.448l-398.2848-398.2336 398.2848-398.2336A51.2 51.2 0 0 0 909.4656 40.6016L511.232 438.784z","p-id":"1217"},null,-1),Hs=[Ws];function js(e,s){return l(),d("svg",Us,Hs)}var Rs=D(Gs,[["render",js]]);const Js=e=>(N("data-v-b164530a"),e=e(),L(),e),Zs={id:"actioner"},Ks={key:0,class:"action-container"},Xs={class:"action-container_header"},Qs=Js(()=>t("div",null,null,-1)),Ys={class:"title"},t2={class:"action-container_body"},e2=P({props:{Close:{type:Function},type:{type:Number},title:String},setup(e){const s=e,u=F(!1);wt(()=>{u.value=!0;let n=document.querySelector("html");n&&n.setAttribute("lock-scroll","true"),document.body.setAttribute("lock-scroll","true")}),Pt(()=>{let n=document.querySelector("html");n&&n.removeAttribute("lock-scroll"),document.body.removeAttribute("lock-scroll")});const a=()=>{s.Close&&(u.value=!1,setTimeout(()=>{s.Close&&s.Close()},300))};return(n,o)=>(l(),d("div",Zs,[t("div",{class:"bg",onClick:o[0]||(o[0]=v=>a())}),e.type!=null?(l(),G(K,{key:0,name:"dialog"},{default:T(()=>[u.value?vt(n.$slots,"default",{key:0},void 0,!0):C("",!0)]),_:3})):(l(),G(K,{key:1,name:"dialog"},{default:T(()=>[u.value?(l(),d("div",Ks,[t("div",Xs,[Qs,t("div",Ys,f(e.title),1),t("button",{class:"close",title:"\u5173\u95ED",onClick:o[1]||(o[1]=v=>a())},[x(Rs)])]),t("div",t2,[vt(n.$slots,"default",{},void 0,!0)])])):C("",!0)]),_:3}))]))}});var nt=D(e2,[["__scopeId","data-v-b164530a"]]);const s2={props:{type:String,message:String,Close:Function},data(){return{show:!1}},mounted(){setTimeout(()=>{this.show=!0},0)},methods:{Stop(){this.type!="loading"&&(this.show=!1,this.Close())}}},Ft=e=>(N("data-v-77fe4bee"),e=e(),L(),e),u2={key:0,class:"loading icon"},a2=Ft(()=>t("svg",{t:"1631799919469",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3453",width:"128",height:"128"},[t("path",{d:"M522.695111 1.991111c-26.339556 0.170667-47.416889 21.475556-47.672889 48.753778-0.284444 26.453333-0.056889 52.963556-0.056889 79.445333 0 27.249778-0.369778 54.528 0.113778 81.777778 0.483556 27.050667 22.016 47.132444 49.351111 46.904889a47.786667 47.786667 0 0 0 47.729778-47.445333c0.284444-53.76 0.284444-107.52-0.028444-161.251556-0.170667-27.676444-21.902222-48.355556-49.436445-48.184889m-195.896889 88.092445c-8.334222-14.222222-21.646222-21.276444-38.314666-21.333334-35.128889 0-56.576 36.949333-38.968889 68.152889a11616.995556 11616.995556 0 0 0 78.961777 137.614222 44.942222 44.942222 0 0 0 61.838223 16.896c21.304889-12.202667 29.667556-38.968889 17.379555-60.871111-26.453333-47.104-53.560889-93.866667-80.896-140.458666m-228.693333 234.524444c44.316444 25.799111 88.746667 51.342222 133.176889 76.970667 6.712889 3.896889 13.681778 6.912 21.703111 6.428444 20.138667 0.142222 35.953778-11.946667 41.301333-31.573333 5.006222-18.261333-2.673778-36.721778-20.224-46.990222-44.629333-26.026667-89.372444-51.882667-134.115555-77.710223-22.528-12.999111-47.815111-7.025778-59.818667 13.909334-12.231111 21.248-4.977778 45.624889 17.948444 58.965333m34.161778 235.975111c26.396444 0 52.821333 0.199111 79.217778-0.085333 23.409778-0.256 39.139556-16.412444 38.798222-39.139556-0.341333-21.617778-16.924444-37.347556-39.594666-37.376-51.655111-0.056889-103.310222-0.056889-154.965334 0.028445-24.177778 0.056889-40.704 15.985778-40.561778 38.684444 0.142222 22.186667 16.583111 37.745778 40.192 37.859556 25.656889 0.142222 51.285333 0.028444 76.913778 0m151.722667 100.238222a34.247111 34.247111 0 0 0-46.876445-12.942222 13764.778667 13764.778667 0 0 0-139.008 80.583111c-11.093333 6.485333-16.327111 16.867556-16.497777 25.372444 0.085333 30.549333 27.249778 47.957333 50.403555 35.072 47.160889-26.197333 93.724444-53.475556 140.145778-80.924444 17.180444-10.154667 21.504-30.378667 11.832889-47.160889m91.875555 101.660444c-14.250667-4.067556-27.619556 1.422222-35.84 15.644445a24375.466667 24375.466667 0 0 0-77.312 134.485333c-10.012444 17.550222-5.859556 35.669333 9.784889 45.027556 16.014222 9.557333 34.247111 4.039111 44.714667-13.994667 25.543111-44.088889 50.915556-88.263111 76.373333-132.352 3.299556-5.745778 5.688889-11.690667 5.745778-14.933333 0-17.834667-9.272889-29.866667-23.466667-33.877334m147.456 44.288c-16.384 0.085333-27.306667 11.918222-27.448888 30.151111-0.142222 25.372444-0.028444 50.716444-0.028445 76.060445h-0.085333c0 26.112-0.113778 52.252444 0.056889 78.364444 0.113778 18.261333 11.064889 30.065778 27.448889 30.208 16.952889 0.142222 28.046222-11.832889 28.103111-30.748444 0.113778-51.086222 0.142222-102.172444 0.056889-153.258667 0-18.773333-11.207111-30.862222-28.103112-30.776889m177.208889-26.112c-7.509333-12.8-21.902222-16.014222-33.792-8.874666a23.722667 23.722667 0 0 0-8.533333 32.995555c26.282667 46.279111 52.906667 92.330667 79.644444 138.353778 4.494222 7.765333 11.633778 11.946667 20.906667 11.804444 18.545778-0.142222 30.520889-19.342222 21.219556-35.868444-26.026667-46.392889-52.650667-92.444444-79.473778-138.410667m239.957333-41.187555c-45.283556-26.254222-90.595556-52.48-135.964444-78.648889-4.693333-2.702222-9.728-4.323556-15.36-2.958222-9.102222 2.247111-14.933333 8.049778-16.497778 17.095111-1.877333 10.894222 3.84 18.204444 12.885333 23.438222 29.809778 17.180444 59.562667 34.417778 89.344 51.598222 15.217778 8.789333 30.236444 17.976889 45.738667 26.225778 14.677333 7.793778 31.061333-2.048 31.061333-18.033778-0.056889-8.448-4.096-14.592-11.207111-18.716444m48.867556-234.638222c-24.888889-0.085333-49.749333 0-74.609778 0v-0.085334c-25.258667 0-50.517333-0.056889-75.776 0.028445-13.425778 0.056889-20.963556 6.343111-21.162667 17.294222-0.199111 11.150222 7.082667 17.521778 20.679111 17.550222 50.488889 0.113778 100.977778 0.142222 151.495112 0.085333 13.368889 0 21.191111-6.485333 21.390222-17.152 0.227556-10.808889-8.106667-17.664-22.016-17.720888m-187.960889-127.146667c45.084444-26.026667 90.140444-52.110222 135.168-78.222222 4.864-2.844444 8.248889-6.855111 8.135111-12.942223-0.142222-11.036444-11.207111-17.436444-21.504-11.548444-45.511111 26.055111-90.851556 52.394667-136.135111 78.819556-7.68 4.494222-10.524444 11.52-5.575111 19.569777 4.835556 7.850667 12.088889 8.817778 19.911111 4.323556m-122.311111-115.114667c5.205333-0.256 8.220444-3.413333 10.609778-7.651555 4.920889-8.647111 10.040889-17.208889 14.990222-25.827556 20.48-35.555556 40.931556-71.025778 61.297778-106.609778 5.091556-8.874667 3.015111-16.668444-4.778667-18.517333-7.68-1.848889-10.894222 3.697778-14.051556 9.159111l-68.778666 119.495111c-2.844444 4.977778-6.030222 9.870222-8.305778 15.104-3.128889 7.196444 1.678222 14.648889 9.045333 14.848","p-id":"3454"})],-1)),n2=[a2],o2={key:1,class:"success icon"},i2=Ft(()=>t("svg",{t:"1632451272305",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2204",width:"128",height:"128"},[t("path",{d:"M1001.305115 275.874141 431.461709 845.718571c-28.221762 28.221762-73.977875 28.221762-102.20066 0L22.661116 539.116591c-28.222785-28.221762-28.222785-73.979922 0-102.20066 28.221762-28.221762 73.977875-28.221762 102.20066 0l255.500115 255.502162 518.743588-518.743588c28.221762-28.221762 73.977875-28.221762 102.199637 0C1029.5279 201.89422 1029.5279 247.65238 1001.305115 275.874141z","p-id":"2205"})],-1)),l2=[i2],c2={key:2,class:"error icon"},d2=Ft(()=>t("svg",{t:"1632451325789",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2204",width:"128",height:"128"},[t("path",{d:"M823.04 840.32 524.16 540.16l296.32-294.4c12.8-12.8 12.8-33.28 0-45.44-12.8-12.8-33.28-12.8-46.08 0L478.08 494.08 184.96 200.32c-12.8-12.8-33.28-12.8-45.44 0s-12.8 33.28 0 45.44l292.48 293.76-302.72 300.8c-12.8 12.8-12.8 33.28 0 45.44 12.8 12.8 33.28 12.8 46.08 0l302.72-300.16 299.52 300.16c12.8 12.8 33.28 12.8 45.44 0C835.2 873.6 835.2 853.12 823.04 840.32z","p-id":"2205"})],-1)),r2=[d2],_2={key:3,class:"warning icon"},v2=Ft(()=>t("svg",{t:"1632451401172",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1638",width:"128",height:"128"},[t("path",{d:"M512 1021.45211835a60.32985613 60.32985613 0 1 1 60.32985613-60.32985611 60.32985613 60.32985613 0 0 1-60.32985613 60.32985611z m86.85823451-924.97400238L572.32985613 719.80283775a60.32985613 60.32985613 0 0 1-120.65971226 0l-26.52837838-623.32472178c-0.16758294-2.22885301-0.28489098-4.49122263-0.284891-6.78710881a87.14312551 87.14312551 0 0 1 174.28625102 0c0 2.2958862-0.11730806 4.5582558-0.284891 6.78710881z","p-id":"1639"})],-1)),p2=[v2];function h2(e,s,u,a,n,o){return l(),G(K,{name:"el-fade-in-linear"},{default:T(()=>[n.show?(l(),d("div",{key:0,class:"toast",onClick:s[1]||(s[1]=v=>o.Stop())},[u.type=="loading"?(l(),d("div",u2,n2)):u.type=="success"?(l(),d("div",o2,l2)):u.type=="error"?(l(),d("div",c2,r2)):u.type=="warning"?(l(),d("div",_2,p2)):C("",!0),t("div",{class:"message",onClick:s[0]||(s[0]=tt(()=>{},["stop"]))},f(u.message),1)])):C("",!0)]),_:1})}var m2=D(s2,[["render",h2],["__scopeId","data-v-77fe4bee"]]);const mt=new Map,ot=e=>{const s=X(m2,Y(H({},e),{Close:()=>{a()}})),u=document.createElement("div");document.body.append(u),s.mount(u);const a=()=>{u.remove(),mt.get(s._uid)&&mt.delete(s._uid)};return e.type=="loading"&&mt.set(s._uid,{Close:a}),(e==null?void 0:e.duration)==0||((e==null?void 0:e.duration)>0?setTimeout(()=>{a()},e==null?void 0:e.duration):setTimeout(()=>{a()},3e3)),{Close:a}},m=e=>ot(e);m.Loading=e=>ot({type:"loading",message:e||"\u52A0\u8F7D\u4E2D...",duration:0});m.Success=e=>ot({type:"success",message:e});m.Error=e=>ot({type:"error",message:e});m.Warning=e=>ot({type:"warning",message:e});m.Message=e=>ot({message:e});m.Message=e=>ot({message:e});m.Clear=()=>{mt.forEach((e,s)=>{e.Close(),mt.delete(s)})};const st=e=>(N("data-v-7b83d7cb"),e=e(),L(),e),b2=["onSubmit"],f2=st(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"\u786C\u76D8\u914D\u7F6E")],-1)),$2={class:"action-body"},y2={class:"disk-info"},F2=st(()=>t("div",{class:"disk-info_icon"},[t("svg",{t:"1642589762094",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11301",width:"128",height:"128"},[t("path",{d:"M899.892468 123.889088c0-44.342099-36.286708-80.620486-80.624646-80.620486H204.728017C160.385918 43.268602 124.107532 79.546988 124.107532 123.889088v802.847056c0 44.342099 36.278386 80.620486 80.620485 80.620486h614.539805c44.337938 0 80.624646-36.278386 80.624646-80.620486V123.889088z",fill:"#D0D0DB","p-id":"11302"}),t("path",{d:"M169.8768 977.7772V174.930143c0-44.342099 36.278386-80.620486 80.620486-80.620485h614.539804c9.936092 0 19.426974 1.905666 28.239639 5.23434-11.525534-30.507298-40.996782-52.389169-75.398629-52.389169H203.342457c-44.342099 0-80.620486 36.278386-80.620486 80.620486v802.851217c0 34.410168 21.881871 63.873094 52.385008 75.381985A79.730065 79.730065 0 0 1 169.8768 977.7772z",fill:"#FFFFFF","p-id":"11303"}),t("path",{d:"M820.657543 40.497481H206.117739c-44.342099 0-80.620486 36.278386-80.620486 80.620485v802.847057c0 44.342099 36.278386 80.620486 80.620486 80.620486h614.539804c44.337938 0 80.624646-36.278386 80.624647-80.620486V121.117966c0-44.342099-36.286708-80.620486-80.624647-80.620485z m19.60173 828.785749c0 40.846992-33.43237 74.279362-74.287684 74.279361H199.780776c-40.855313 0-74.279362-33.424048-74.279362-74.279361V129.593603c0-40.855313 33.424048-74.279362 74.279362-74.279362h566.203296c40.842831 0 74.283522 33.424048 74.283522 74.279362l-0.008321 739.689627z",fill:"#6E6E96","p-id":"11304"}),t("path",{d:"M815.106979 1024H200.567175C146.933914 1024 103.303319 980.369405 103.303319 926.736144V123.889088C103.303319 70.255827 146.933914 26.625232 200.567175 26.625232h614.539804c53.633261 0 97.268017 43.630595 97.268017 97.263856v802.847056c0 53.633261-43.634756 97.263856-97.268017 97.263856zM200.567175 59.911972C165.287391 59.911972 136.590059 88.609303 136.590059 123.889088v802.847056c0 35.279784 28.697331 63.977115 63.977116 63.977115h614.539804c35.279784 0 63.981276-28.697331 63.981276-63.977115V123.889088c0-35.279784-28.701492-63.977115-63.981276-63.977116H200.567175z",fill:"#6E6E96","p-id":"11305"}),t("path",{d:"M301.946104 941.515457h429.985632v65.841173H301.946104z",fill:"#8A8AA1","p-id":"11306"}),t("path",{d:"M731.931736 1024H301.946104a16.64337 16.64337 0 0 1-16.64337-16.64337V941.515457a16.64337 16.64337 0 0 1 16.64337-16.64337h429.985632a16.64337 16.64337 0 0 1 16.64337 16.64337v65.841173a16.64337 16.64337 0 0 1-16.64337 16.64337z m-413.342262-33.286741h396.698892v-32.554432H318.589474v32.554432z",fill:"#6E6E96","p-id":"11307"}),t("path",{d:"M337.230049 960.318304h20.804213v47.038326h-20.804213zM386.565159 960.318304h20.804213v47.038326h-20.804213zM435.891948 960.318304h20.804213v47.038326h-20.804213zM485.231219 960.318304h20.804213v47.038326h-20.804213zM534.558008 960.318304h20.804213v47.038326h-20.804213zM583.897279 960.318304h20.804213v47.038326h-20.804213zM633.224068 960.318304h20.804213v47.038326h-20.804213zM682.563339 960.318304h20.804213v47.038326h-20.804213z",fill:"#FFE599","p-id":"11308"}),t("path",{d:"M219.153659 140.794591m-26.874883 0a26.874882 26.874882 0 1 0 53.749765 0 26.874882 26.874882 0 1 0-53.749765 0Z",fill:"#ADADD1","p-id":"11309"}),t("path",{d:"M219.153659 184.312843c-23.995579 0-43.518252-19.522673-43.518253-43.518252s19.522673-43.518252 43.518253-43.518253 43.518252 19.522673 43.518252 43.518253-19.522673 43.518252-43.518252 43.518252z m0-53.749764c-5.642103 0-10.231512 4.589409-10.231512 10.231512s4.589409 10.231512 10.231512 10.231512 10.231512-4.589409 10.231511-10.231512-4.589409-10.231512-10.231511-10.231512z",fill:"#6E6E96","p-id":"11310"}),t("path",{d:"M801.28466 140.794591m-26.870721 0a26.870721 26.870721 0 1 0 53.741442 0 26.870721 26.870721 0 1 0-53.741442 0Z",fill:"#ADADD1","p-id":"11311"}),t("path",{d:"M801.28466 184.308683c-23.995579 0-43.514092-19.518512-43.514091-43.514092s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514092z m0-53.741443c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11312"}),t("path",{d:"M801.280499 905.23291m-26.870721 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"11313"}),t("path",{d:"M801.280499 948.747001c-23.995579 0-43.514092-19.518512-43.514091-43.514091s19.518512-43.514092 43.514091-43.514092 43.514092 19.518512 43.514092 43.514092-19.518512 43.514092-43.514092 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11314"}),t("path",{d:"M219.153659 905.23291m-26.870722 0a26.870721 26.870721 0 1 0 53.741443 0 26.870721 26.870721 0 1 0-53.741443 0Z",fill:"#ADADD1","p-id":"11315"}),t("path",{d:"M219.153659 948.747001c-23.995579 0-43.514092-19.518512-43.514092-43.514091s19.518512-43.514092 43.514092-43.514092 43.514092 19.518512 43.514091 43.514092-19.522673 43.514092-43.514091 43.514091z m0-53.741442c-5.637942 0-10.227351 4.589409-10.227351 10.227351s4.589409 10.227351 10.227351 10.227351 10.227351-4.589409 10.227351-10.227351-4.589409-10.227351-10.227351-10.227351z",fill:"#6E6E96","p-id":"11316"}),t("path",{d:"M520.972857 777.43263c-142.542145 0-258.508988-115.971004-258.508988-258.52147a16.64337 16.64337 0 0 1 33.28674 0c0 124.19699 101.033579 225.23473 225.222248 225.23473s225.222248-101.03774 225.222248-225.23473c0-124.188668-101.033579-225.218087-225.222248-225.218087a16.64337 16.64337 0 0 1 0-33.286741c142.542145 0 258.508988 115.966843 258.508988 258.504828 0 142.550466-115.966843 258.521471-258.508988 258.52147z",fill:"#6E6E96","p-id":"11317"}),t("path",{d:"M520.968696 518.919481m-83.312551 0a83.312551 83.312551 0 1 0 166.625102 0 83.312551 83.312551 0 1 0-166.625102 0Z",fill:"#A9A9BA","p-id":"11318"}),t("path",{d:"M520.968696 618.875402c-55.114521 0-99.955921-44.83724-99.955921-99.95176 0-55.118682 44.8414-99.955921 99.955921-99.955921s99.95176 44.8414 99.95176 99.955921c0 55.11036-44.83724 99.95176-99.95176 99.95176z m0-166.625101c-36.761044 0-66.669181 29.908136-66.66918 66.66918s29.908136 66.66502 66.66918 66.66502 66.66502-29.908136 66.66502-66.66502c0-36.761044-29.903976-66.669181-66.66502-66.66918z",fill:"#6E6E96","p-id":"11319"}),t("path",{d:"M301.946104 941.515457h429.985632v36.977408H301.946104z",fill:"#6E6E96","p-id":"11320"})])],-1)),g2={key:0,class:"disk-info_mount-name"},D2={key:1,class:"disk-info_mount-name"},E2={class:"label-item"},k2=st(()=>t("div",{class:"label-item_key"},[t("span",null,"\u683C\u5F0F\u5316\u9009\u9879")],-1)),w2={class:"label-item_value"},C2=st(()=>t("option",{value:""},"\u8BF7\u9009\u62E9\u9009\u9879",-1)),S2=st(()=>t("option",{value:"format"},"\u683C\u5F0F\u5316",-1)),A2={key:0,value:"default"},x2={class:"label-item_value"},B2={key:0,class:"msg"},M2={key:1,class:"msg"},P2={class:"action-footer"},T2=st(()=>t("div",{class:"auto"},null,-1)),I2=["disabled"],z2=["disabled"],N2={key:1,class:"action result"},L2={class:"action-body"},V2=st(()=>t("div",{class:"action-body_icon"},[t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""})])],-1)),O2=st(()=>t("div",{class:"action-body_msg"},"\u683C\u5F0F\u5316\u6210\u529F",-1)),q2={key:0,class:"action-body_info"},G2={key:1,class:"action-body_info"},U2=U(" \u5DF2\u7ECF\u6210\u529F\u521D\u59CB\u5316\u5206\u533A "),W2={class:"btns"},H2=P({props:{action:String,disk:{type:Object},mount:{type:Object},Close:{type:Function},Cancel:{type:Function},Next:{type:Function}},setup(e){const s=e,u=()=>{s.Close&&s.Close()},a=()=>{s.Cancel&&s.Cancel(),u()},n=h=>{s.Next&&s.Next(h),u()},o=F(!1),v=F(0),p=h=>{v.value=h},r=F(""),i=F(),c=F(),_=()=>{switch(r.value){case"format":$();return;case"default":g();return;default:m.Warning("\u8BF7\u9009\u62E9\u9009\u7EBF");return}},g=()=>{let h="";const b=s.mount;if(b!=null&&b.mountPoint!=null&&(h=b.mountPoint),h!=""){n(h);return}m.Warning("\u65E0\u6CD5\u8BC6\u522B\u8DEF\u5F84")},$=()=>{const h=s.disk,b=s.mount;if(b){if(!confirm(`\u8B66\u544A\uFF1A\u683C\u5F0F\u5316\u4F1A\u6E05\u7A7A ${b.mountPoint} \u5206\u533A\u6570\u636E\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm(`\u662F\u5426\u786E\u5B9A\u683C\u5F0F\u5316 ${b.mountPoint}?`))return;A(b);return}if(h){if(!confirm(`\u8B66\u544A\uFF1A\u8BE5\u64CD\u4F5C\u5C06\u521D\u59CB\u5316 ${h.venderModel} \u786C\u76D8\u5E76\u521B\u5EFA\u5206\u533A\uFF0C\u8BF7\u4F60\u8C28\u614E\u64CD\u4F5C`)||!confirm("\u662F\u5426\u786E\u5B9A\u521D\u59CB\u5316?"))return;y(h);return}m.Error("\u65E0\u6CD5\u8BC6\u522B\u6570\u636E")},y=h=>B(this,null,function*(){if(h.name==null||h.path==""){m.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u540D\u79F0");return}if(h.path==null||h.path==""){m.Warning("\u83B7\u53D6\u4E0D\u5230\u8BBE\u5907\u8DEF\u5F84");return}o.value=!0;const b=m.Loading("\u521D\u59CB\u5316\u4E2D...");try{const E=yield M.Nas.Disk.Init.POST({name:h.name,path:h.path});if(E==null?void 0:E.data){const{result:k,error:O}=E==null?void 0:E.data;O&&m.Warning(O),k&&(k.errorInfo?m.Warning(k.errorInfo):(m.Success("\u521D\u59CB\u5316\u6210\u529F"),k.childrens&&k.childrens.length>0&&(c.value=k.childrens[0]),i.value=k,p(1)))}}catch(E){m.Error(E)}b.Close(),o.value=!1}),A=h=>B(this,null,function*(){if(h.path==null||h.path==""){m.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u8DEF\u5F84");return}if(h.uuid==null||h.uuid==""){m.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533AID");return}if(h.mountPoint==null||h.mountPoint==""){m.Warning("\u83B7\u53D6\u4E0D\u5230\u5206\u533A\u6302\u8F7D\u70B9");return}o.value=!0;const b=m.Loading("\u683C\u5F0F\u5316\u4E2D...");try{const E=yield M.Nas.Disk.Partition.Format.POST({path:h.path,uuid:h.uuid,mountPoint:h.mountPoint});if(E==null?void 0:E.data){const{result:k,error:O}=E==null?void 0:E.data;O&&m.Warning(O),k&&(m.Success("\u683C\u5F0F\u5316\u6210\u529F"),c.value=k,p(1))}}catch(E){m.Error(E)}b.Close(),o.value=!1}),S=()=>{if(c.value&&c.value.mountPoint){n(c.value.mountPoint);return}m.Warning("\u8BFB\u53D6\u7ED3\u679C\u5931\u8D25")};return(h,b)=>(l(),G(nt,{type:1},{default:T(()=>[x(K,{name:"rotate",mode:"out-in"},{default:T(()=>{var E;return[v.value==0?(l(),d("form",{key:0,class:"action format",onSubmit:tt(_,["prevent"])},[f2,t("div",$2,[t("div",y2,[F2,e.mount?(l(),d("div",g2,[t("span",null,"\u3010"+f(e.mount.total)+"\u3011",1),t("span",null,f(e.mount.mountPoint),1)])):e.disk?(l(),d("div",D2,[t("span",null,"\u3010"+f(e.disk.size)+"\u3011",1),t("span",null,f(e.disk.venderModel),1)])):C("",!0)]),t("div",E2,[k2,t("div",w2,[z(t("select",{"onUpdate:modelValue":b[0]||(b[0]=k=>r.value=k),required:""},[C2,S2,e.mount!=null?(l(),d("option",A2,"\u4E0D\u683C\u5F0F\u5316,\u4F7F\u7528\u539F\u6587\u4EF6\u7CFB\u7EDF")):C("",!0)],512),[[lt,r.value]])]),t("div",x2,[r.value=="format"?(l(),d("p",B2,"\u683C\u5F0F\u5316\u4E3AEXT4\u6587\u4EF6\u7CFB\u7EDF\uFF0C\u4F20\u8F93\u901F\u5EA6\u66F4\u5FEB")):r.value=="default"?(l(),d("p",M2)):C("",!0)])])]),t("div",P2,[T2,t("button",{class:"cbi-button cbi-button-remove app-back",onClick:b[1]||(b[1]=k=>a()),type:"button",disabled:o.value},"\u8FD4\u56DE",8,I2),t("button",{class:"cbi-button cbi-button-apply cover-buttob app-next",disabled:o.value},"\u4E0B\u4E00\u6B65",8,z2)])],40,b2)):v.value==1?(l(),d("div",N2,[t("div",L2,[V2,O2,i.value?(l(),d("div",q2,[U(" \u5DF2\u7ECF\u6210\u529F\u683C\u5F0F\u5316\u78C1\u76D8 "+f(i.value.venderModel)+" \u5E76\u6302\u8F7D\u5230 ",1),t("a",null,f((E=c.value)==null?void 0:E.mountPoint),1)])):C("",!0),c.value?(l(),d("div",G2,[U2,t("a",null,f(c.value.mountPoint),1)])):C("",!0),t("div",W2,[t("button",{class:"cbi-button cbi-button-apply cover-buttob app-next",type:"button",onClick:S},f(e.action=="nas"?"\u5B8C\u6210":"\u4E0B\u4E00\u6B65"),1)])])])):C("",!0)]}),_:1})]),_:1}))}});var j2=D(H2,[["__scopeId","data-v-7b83d7cb"]]),zt=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=X(j2,Y(H({},e),{Close:()=>{a()}}));u.mount(s);const a=()=>{u.unmount(),s.remove()};return{Close:a}};const R2=e=>(N("data-v-61d717c0"),e=e(),L(),e),J2={key:0,class:"disk-item error"},Z2={class:"disk-item_name"},K2={class:"disk-item_value"},X2={class:"value-data"},Q2={class:"error"},Y2={key:1,class:"disk-item"},tu={class:"disk-item_name"},eu={class:"disk-item_value"},su={class:"value-data"},uu=R2(()=>t("div",{class:"disk-item-tooltip"},[t("span",null,"\u4EC5\u7EDF\u8BA1\u5DF2\u6302\u8F7D\u5206\u533A")],-1)),au={key:2,class:"disk-item load"},nu={class:"disk-item_name"},ou={class:"disk-item_value"},iu={class:"value-data"},lu=P({props:{disk:{type:Object,required:!0}},setup(e){const s=e,u=V(()=>s.disk.errorInfo?"error":s.disk.childrens==null||s.disk.childrens.length==0?"load":"success"),a=()=>{zt({action:"disk",disk:s.disk,Cancel:()=>{},Next:()=>{location.reload()}})};return(n,o)=>{const v=Z("progress-item");return w(u)=="error"?(l(),d("li",J2,[t("div",Z2,[t("span",null,f(e.disk.venderModel),1)]),t("div",K2,[t("div",X2,[t("span",Q2,f(e.disk.errorInfo),1)])])])):w(u)=="success"?(l(),d("li",Y2,[t("div",tu,[t("span",null,"\u3010"+f(e.disk.size)+"\u3011",1),t("span",null,f(e.disk.venderModel),1)]),t("div",eu,[t("div",su,[x(v,{value:e.disk.usage,text:`${e.disk.used}/${e.disk.total}`,style:{backgroundColor:"#767676",height:"100%"}},null,8,["value","text"])]),uu])])):w(u)=="load"?(l(),d("li",au,[t("div",nu,[t("span",null,f(e.disk.venderModel),1)]),t("div",ou,[t("div",iu,[t("button",{onClick:o[0]||(o[0]=p=>a())},"\u683C\u5F0F\u5316\u5E76\u6302\u8F7D")])])])):C("",!0)}}});var cu=D(lu,[["__scopeId","data-v-61d717c0"]]);const du=e=>(N("data-v-b4faa090"),e=e(),L(),e),ru={class:"app-container"},_u=du(()=>t("div",{class:"app-container_title"},[t("span",null,"\u5DF2\u6302\u8F7D\u78C1\u76D8")],-1)),vu={class:"app-container_body"},pu=P({setup(e){const s=F();return(()=>{M.Nas.Disk.Status.GET().then(a=>{(a==null?void 0:a.data.result)&&(s.value=a==null?void 0:a.data.result)})})(),(a,n)=>{var o;return l(),d("div",ru,[_u,t("div",vu,[(l(!0),d(j,null,at((o=s.value)==null?void 0:o.disks,v=>(l(),G(cu,{key:v.venderModel,disk:v},null,8,["disk"]))),128))])])}}});var hu=D(pu,[["__scopeId","data-v-b4faa090"]]);const mu={class:"app-container_samba"},bu={class:"samba-item"},fu={class:"samba-item_name"},$u=["title"],yu=P({props:{sambas:{type:Array}},setup(e){return(s,u)=>(l(),d("ul",mu,[(l(!0),d(j,null,at(e.sambas,a=>(l(),d("li",bu,[t("div",fu,[t("span",null,f(a.shareName),1)]),t("div",{class:"samba-item_value",title:a.path},[t("span",null,f(a.path),1)],8,$u)]))),256))]))}});var Fu=D(yu,[["__scopeId","data-v-a9ddce60"]]);const gt=e=>(N("data-v-6ab80352"),e=e(),L(),e),gu={class:"webdav-item"},Du=gt(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),Eu={class:"webdav-item_value"},ku={key:0,class:"webdav-item"},wu=gt(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u6302\u8F7D\u8DEF\u5F84:")],-1)),Cu={class:"webdav-item_value"},Su={key:1,class:"webdav-item"},Au=gt(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u670D\u52A1\u8DEF\u5F84:")],-1)),xu={class:"webdav-item_value"},Bu=["href"],Mu={key:2,class:"webdav-item"},Pu=gt(()=>t("div",{class:"webdav-item_name"},[t("span",null,"\u8D26\u53F7:")],-1)),Tu={class:"webdav-item_value"},Iu=P({props:{webdav:{type:Object}},setup(e){const s=e,u=V(()=>{var a;return`http://${location.host}:${(a=s.webdav)==null?void 0:a.port}`});return(a,n)=>{var o,v,p,r,i,c;return l(),d(j,null,[t("li",gu,[Du,t("div",Eu,[t("span",null,f(((o=e.webdav)==null?void 0:o.path)?"\u5DF2\u542F\u7528":"\u672A\u542F\u7528"),1)])]),((v=e.webdav)==null?void 0:v.path)?(l(),d("li",ku,[wu,t("div",Cu,[t("span",null,f((p=e.webdav)==null?void 0:p.path),1)])])):C("",!0),((r=e.webdav)==null?void 0:r.port)?(l(),d("li",Su,[Au,t("div",xu,[t("a",{href:w(u),target:"_blank",rel:"noopener noreferrer"},f(w(u)),9,Bu)])])):C("",!0),((i=e.webdav)==null?void 0:i.username)?(l(),d("li",Mu,[Pu,t("div",Tu,[t("span",null,f((c=e.webdav)==null?void 0:c.username),1)])])):C("",!0)],64)}}});var zu=D(Iu,[["__scopeId","data-v-6ab80352"]]);const Nt=e=>(N("data-v-9e9a3f14"),e=e(),L(),e),Nu={class:"app-container_linkease"},Lu={class:"linkease-item"},Vu=Nt(()=>t("div",{class:"linkease-item_name"},[t("span",null,"\u5F53\u524D\u72B6\u6001:")],-1)),Ou={class:"linkease-item_value"},qu={key:0,class:"linkease-item"},Gu=Nt(()=>t("div",{class:"linkease-item_name"},[t("span",null,"\u670D\u52A1\u5730\u5740:")],-1)),Uu={class:"linkease-item_value"},Wu=["href"],Hu=P({props:{linkease:{type:Object}},setup(e){const s=e,u=V(()=>{var a;return`http://${location.host}:${(a=s.linkease)==null?void 0:a.port}`});return(a,n)=>{var o,v;return l(),d("ul",Nu,[t("li",Lu,[Vu,t("div",Ou,[t("span",null,f(((o=e.linkease)==null?void 0:o.enabel)?"\u5DF2\u914D\u7F6E":"\u672A\u914D\u7F6E"),1)])]),((v=e.linkease)==null?void 0:v.port)?(l(),d("li",qu,[Gu,t("div",Uu,[t("a",{href:w(u),target:"_blank",rel:"noopener noreferrer"},f(w(u)),9,Wu)])])):C("",!0)])}}});var ju=D(Hu,[["__scopeId","data-v-9e9a3f14"]]);const At=e=>(N("data-v-7e21c965"),e=e(),L(),e),Ru={class:"disk-item"},Ju=At(()=>t("div",{class:"disk-item_icon"},[t("svg",{t:"1642563338465",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2216",width:"128",height:"128"},[t("path",{d:"M998.4 711.68l-119.467-512c-6.826-42.667-42.666-75.093-87.04-76.8H232.107c-44.374 1.707-80.214 35.84-87.04 78.507L25.6 711.68c-5.12 13.653-6.827 29.013-6.827 42.667 0 76.8 63.147 139.946 141.654 139.946H865.28c78.507 0 141.653-63.146 141.653-139.946 0-13.654-3.413-29.014-8.533-42.667zM394.24 366.933c1.707-51.2 56.32-92.16 124.587-92.16S640 315.733 640 365.227c44.373-1.707 81.92 23.893 83.627 58.026s-34.134 63.147-78.507 64.854h-6.827l-245.76 1.706c-44.373 0-80.213-27.306-80.213-59.733 0-35.84 37.547-63.147 81.92-63.147z m471.04 459.094H160.427c-39.254 0-69.974-30.72-69.974-69.974s32.427-69.973 69.974-69.973H865.28c39.253 0 69.973 30.72 69.973 69.973 1.707 37.547-30.72 69.974-69.973 69.974z m-35.84-92.16c-11.947 0-22.187 8.533-23.893 20.48 0 11.946 8.533 22.186 20.48 23.893h3.413c11.947 0 22.187-10.24 22.187-22.187 0-13.653-8.534-22.186-22.187-22.186z m-46.08 22.186c0-25.6 20.48-46.08 46.08-46.08s46.08 20.48 46.08 46.08-20.48 46.08-46.08 46.08-46.08-20.48-46.08-46.08z","p-id":"2217"})])],-1)),Zu={class:"disk-item_f"},Ku={class:"disk-item_venderModel"},Xu={class:"disk-item_used"},Qu=At(()=>t("div",{class:"auto"},null,-1)),Yu={class:"disk-item-r"},ta={class:"disk-children"},ea=["onClick"],sa=At(()=>t("div",{class:"disk-item_icon"},[t("svg",{t:"1642563581459",class:"icon",viewBox:"0 0 1228 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7132",width:"128",height:"128"},[t("path",{d:"M525.2096 145.3568c1.9968-45.568-35.6864-99.1232-57.4976-99.1232H57.4976C15.872 79.9232 17.8176 145.408 17.8176 145.408h507.392z",fill:"#ECC049","p-id":"7133"}),t("path",{d:"M21.8112 143.36L19.8144 825.1392c0 75.3152 75.3152 152.576 150.6304 152.576h887.9104c75.264 0 150.6304-75.264 150.6304-152.576V297.984c0-75.264-75.3152-152.576-150.6304-152.576h-434.0224L21.8112 143.36z",fill:"#FFD658","p-id":"7134"})])],-1)),ua={key:0},aa={key:1},na=P({props:{disk:{type:Object,required:!0},currDisk:{type:Object},currMountPoint:{type:Object},onDisk:{type:Function,required:!0}},setup(e){var n,o;const s=e,u=F(!1);s.currDisk!=null&&((n=s.currDisk)==null?void 0:n.venderModel)==((o=s.disk)==null?void 0:o.venderModel)&&(u.value=!0);const a=v=>{u.value=!u.value,s.onDisk(v,null)};return(v,p)=>{var r;return l(),d("ul",Ru,[t("li",{class:it(["disk-info",{on:e.disk.venderModel==((r=e.currDisk)==null?void 0:r.venderModel),nopoint:e.disk.childrens==null||e.disk.childrens.length==0}]),onClick:p[0]||(p[0]=i=>a(e.disk))},[Ju,t("div",Zu,[t("div",Ku,f(e.disk.venderModel),1),t("div",Xu,f(e.disk.used)+"/"+f(e.disk.size),1)]),Qu,t("div",Yu,f(e.disk.path),1)],2),z(t("div",ta,[(l(!0),d(j,null,at(e.disk.childrens,i=>{var c,_;return l(),d("li",{class:it(["disk-children_item",{on:i.uuid==((c=e.currMountPoint)==null?void 0:c.uuid)&&i.path==((_=e.currMountPoint)==null?void 0:_.path)}]),onClick:g=>e.onDisk(e.disk,i)},[sa,i.mountPoint?(l(),d("span",ua," \u3010"+f(i.filesystem)+"\u3011 "+f(i.mountPoint)+" \uFF08"+f(i.used)+"/"+f(i.total)+"\uFF09 ["+f(i.uuid)+"] ",1)):(l(),d("span",aa," \u3010"+f(i.filesystem)+"\u3011 "+f(i.mountPoint||i.path||"\u672A\u6302\u8F7D\u78C1\u76D8")+" ["+f(i.uuid)+"] ",1))],10,ea)}),256))],512),[[Qt,u.value]])])}}});var oa=D(na,[["__scopeId","data-v-7e21c965"]]);const xt=e=>(N("data-v-07a57e3f"),e=e(),L(),e),ia={class:"action list"},la=xt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"\u8BF7\u9009\u62E9\u4E00\u4E2A\u786C\u76D8\u6216\u5206\u533A")],-1)),ca={class:"action-body"},da={class:"disk-list"},ra=xt(()=>t("div",{class:"action-msg"},[t("span",null,[U(" \u60F3\u8981\u66F4\u7CBE\u786E\u7684\u914D\u7F6E\uFF1F\u8BF7\u524D\u5F80 "),t("a",{href:"/cgi-bin/luci/admin/system/diskman"},"\u9AD8\u7EA7\u8BBE\u7F6E")])],-1)),_a={class:"action-footer"},va=xt(()=>t("div",{class:"auto"},null,-1)),pa=P({props:{Cancel:{type:Function},Next:{type:Function},Close:{type:Function}},setup(e){const s=e,u=F(!0),a=F();(()=>{M.Nas.Disk.Status.GET().then(g=>{(g==null?void 0:g.data.result)&&(a.value=g==null?void 0:g.data.result.disks)})})();const o=F(),v=F(),p=(g,$)=>{o.value=g,v.value=$},r=()=>{s.Close&&s.Close()},i=()=>{s.Cancel&&s.Cancel(),r()},c=g=>{s.Next&&s.Next(g),r()},_=()=>{if(o.value==null){m.Warning("\u8BF7\u9009\u62E9\u76EE\u6807\u786C\u76D8");return}if(o.value.childrens!=null&&o.value.childrens.length>0&&v.value==null){m.Warning("\u8BF7\u9009\u62E9\u786C\u76D8\u5206\u533A");return}if(v.value!=null&&(v.value.mountPoint==null||v.value.mountPoint=="")){m.Warning("\u8BE5\u5206\u533A\u5C1A\u672A\u6302\u8F7D\uFF0C\u8BF7\u5148\u53BB\u6302\u8F7D");return}u.value=!1,zt({action:"nas",disk:o.value,mount:v.value,Cancel:()=>{u.value=!0},Next:g=>{c(g)}})};return(g,$)=>u.value?(l(),G(nt,{key:0,type:1},{default:T(()=>[x(K,{name:"rotate",mode:"out-in"},{default:T(()=>[t("div",ia,[la,t("div",ca,[t("div",da,[(l(!0),d(j,null,at(a.value,y=>(l(),G(oa,{disk:y,onDisk:p,currDisk:o.value,currMountPoint:v.value},null,8,["disk","currDisk","currMountPoint"]))),256))])]),ra,t("div",_a,[va,t("button",{class:"cbi-button cbi-button-remove app-back",onClick:$[0]||($[0]=y=>i()),type:"button"},"\u8FD4\u56DE"),t("button",{class:"cbi-button cbi-button-apply cover-buttob app-next",onClick:$[1]||($[1]=y=>_()),type:"button"},"\u4E0B\u4E00\u6B65")])])]),_:1})]),_:1})):C("",!0)}});var ha=D(pa,[["__scopeId","data-v-07a57e3f"]]),ma=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=X(ha,Y(H({},e),{Close:()=>{a()}}));u.mount(s);const a=()=>{u.unmount(),s.remove()};return{Close:a}};const Dt=e=>(N("data-v-32d52680"),e=e(),L(),e),ba={class:"action"},fa={class:"action-body"},$a=Dt(()=>t("div",{class:"icon"},[t("svg",{t:"1642063181211",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5062",width:"128",height:"128","data-v-cda444e0":""},[t("path",{d:"M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m-74.965333 550.4L346.453333 545.152a42.666667 42.666667 0 1 0-60.330666 60.330667l120.704 120.704a42.666667 42.666667 0 0 0 60.330666 0l301.653334-301.696a42.666667 42.666667 0 1 0-60.288-60.330667l-271.530667 271.488z",fill:"#52C41A","p-id":"5063","data-v-cda444e0":""})])],-1)),ya=Dt(()=>t("h2",{class:"title"},"\u670D\u52A1\u5DF2\u542F\u52A8",-1)),Fa={class:"info"},ga=Dt(()=>t("span",null,"\u524D\u5F80",-1)),Da=["href"],Ea=Dt(()=>t("span",null,"\u914D\u7F6E",-1)),ka=P({props:{Close:Function},setup(e){const s=e,u=F(""),a=V(()=>`http://${location.host}:${u.value}`);(()=>{M.Nas.Linkease.Enable.POST().then(v=>{var p,r;((p=v==null?void 0:v.data)==null?void 0:p.result)&&(u.value=((r=v.data.result)==null?void 0:r.port)||"")})})();const o=()=>{s.Close&&s.Close()};return(v,p)=>(l(),G(nt,{type:1},{default:T(()=>[x(K,{name:"rotate",mode:"out-in"},{default:T(()=>[t("div",ba,[t("div",fa,[$a,ya,t("div",Fa,[ga,t("a",{href:w(a),target:"_blank",rel:"noopener noreferrer"},f(w(a)),9,Da),Ea]),t("div",{class:"btns"},[t("button",{class:"cbi-button cbi-button-remove app-back",type:"button",onClick:o},"\u5173\u95ED")])])])]),_:1})]),_:1}))}});var wa=D(ka,[["__scopeId","data-v-32d52680"]]),Ca=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=X(wa,Y(H({},e),{Close:()=>{a()}}));u.mount(s);const a=()=>{u.unmount(),s.remove()};return{Close:a}};const bt=e=>(N("data-v-70ec1878"),e=e(),L(),e),Sa=["onSubmit"],Aa=bt(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"Webdav\u5171\u4EAB\u914D\u7F6E")],-1)),xa={class:"action-body"},Ba={class:"label-item"},Ma=bt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")],-1)),Pa={class:"label-item_value"},Ta=["value"],Ia={class:"label-item"},za=bt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D")],-1)),Na={class:"label-item_value"},La={class:"label-item"},Va=bt(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801")],-1)),Oa={class:"label-item_value"},qa={class:"action-footer"},Ga=bt(()=>t("div",{class:"auto"},null,-1)),Ua=["disabled"],Wa=["disabled"],Ha=P({props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const s=e,u=()=>{s.Close&&s.Close()},a=F(!1),n=F({username:"root",password:"",rootPath:s.rootPath});(()=>B(this,null,function*(){const r=m.Loading("\u52A0\u8F7D\u4E2D...");a.value=!0;try{const i=yield M.Nas.Webdav.Status.GET();if(i==null?void 0:i.data){const{result:c,error:_}=i.data;if(_){m.Warning(_);return}c&&(c.username&&(n.value.username=c.username),c.password&&(n.value.password=c.password))}}catch(i){m.Error(i)}a.value=!1,r.Close()}))();const v=()=>{const r=n.value;if(r.rootPath==""){m.Warning("\u5171\u4EAB\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A");return}if(r.username==""){m.Warning("\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}if(r.password==""){m.Warning("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}p(r)},p=r=>B(this,null,function*(){a.value=!0;const i=m.Loading("\u521B\u5EFA\u4E2D...");try{const c=yield M.Nas.Webdav.Create.POST(r);if(c==null?void 0:c.data){const{error:_,result:g}=c.data;_&&m.Warning(_),g&&(m.Success("\u521B\u5EFA\u6210\u529F"),setTimeout(()=>{location.reload()},1e3))}}catch(c){m.Error(c)}i.Close(),a.value=!1});return(r,i)=>(l(),G(nt,{type:1},{default:T(()=>[x(K,{name:"rotate",mode:"out-in"},{default:T(()=>[t("form",{class:"action",onSubmit:tt(v,["prevent"])},[Aa,t("div",xa,[t("div",Ba,[Ma,t("div",Pa,[t("input",{type:"text",value:n.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,Ta)])]),t("div",Ia,[za,t("div",Na,[z(t("input",{type:"text",required:"",placeholder:"\u8D26\u53F7\u7528\u6237\u540D","onUpdate:modelValue":i[0]||(i[0]=c=>n.value.username=c)},null,512),[[q,n.value.username,void 0,{trim:!0}]])])]),t("div",La,[Va,t("div",Oa,[z(t("input",{type:"password","onUpdate:modelValue":i[1]||(i[1]=c=>n.value.password=c)},null,512),[[q,n.value.password,void 0,{trim:!0}]])])])]),t("div",qa,[Ga,t("button",{class:"cbi-button cbi-button-remove app-back",type:"button",onClick:i[2]||(i[2]=c=>u()),disabled:a.value},"\u5173\u95ED",8,Ua),t("button",{class:"cbi-button cbi-button-apply cover-buttob app-next",disabled:a.value},"\u521B\u5EFA",8,Wa)])],40,Sa)]),_:1})]),_:1}))}});var ja=D(Ha,[["__scopeId","data-v-70ec1878"]]),Ra=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=X(ja,Y(H({},e),{Close:()=>{a()}}));u.mount(s);const a=()=>{u.unmount(),s.remove()};return{Close:a}};const ct=e=>(N("data-v-5e8b8884"),e=e(),L(),e),Ja=["onSubmit"],Za=ct(()=>t("div",{class:"action-header"},[t("div",{class:"action-header_title"},"Samba\u5171\u4EAB\u914D\u7F6E")],-1)),Ka={class:"action-body"},Xa={class:"label-item"},Qa=ct(()=>t("div",{class:"label-item_key"},[t("span",null,"\u670D\u52A1\u76EE\u5F55\u8DEF\u5F84")],-1)),Ya={class:"label-item_value"},tn=["value"],en={class:"label-item"},sn=ct(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5171\u4EAB\u540D\uFF08\u5EFA\u8BAE\u4F7F\u7528\u82F1\u6587\u5B57\u6BCD\uFF09")],-1)),un={class:"label-item_value"},an={class:"label-item"},nn=ct(()=>t("div",{class:"label-item_key"},[t("span",null,"\u7528\u6237\u540D")],-1)),on={class:"label-item_value"},ln={class:"label-item"},cn=ct(()=>t("div",{class:"label-item_key"},[t("span",null,"\u5BC6\u7801")],-1)),dn={class:"label-item_value"},rn={class:"action-footer"},_n=ct(()=>t("div",{class:"auto"},null,-1)),vn=["disabled"],pn=["disabled"],hn=P({props:{rootPath:{type:String,required:!0},Close:Function},setup(e){const s=e,u=()=>{s.Close&&s.Close()},a=F(!1),n=F({shareName:"",username:"root",password:"",rootPath:s.rootPath}),o=()=>{const p=n.value;if(p.rootPath==""){m.Warning("\u5171\u4EAB\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A");return}if(p.shareName==""){m.Warning("\u5171\u4EAB\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A");return}if(p.username==""){m.Warning("\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}if(p.password==""){m.Warning("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}v(p)},v=p=>B(this,null,function*(){a.value=!0;const r=m.Loading("\u521B\u5EFA\u4E2D...");try{const i=yield M.Nas.Samba.Create.POST(p);if(i==null?void 0:i.data){const{error:c,result:_}=i.data;c&&m.Warning(c),_&&(m.Success("\u521B\u5EFA\u6210\u529F"),setTimeout(()=>{location.reload()},1e3))}}catch(i){m.Error(i)}r.Close(),a.value=!1});return(p,r)=>(l(),G(nt,{type:1},{default:T(()=>[x(K,{name:"rotate",mode:"out-in"},{default:T(()=>[t("form",{class:"action",onSubmit:tt(o,["prevent"])},[Za,t("div",Ka,[t("div",Xa,[Qa,t("div",Ya,[t("input",{type:"text",value:n.value.rootPath,disabled:"",required:"",style:{backgroundColor:"#eee"}},null,8,tn)])]),t("div",en,[sn,t("div",un,[z(t("input",{type:"text","onUpdate:modelValue":r[0]||(r[0]=i=>n.value.shareName=i),required:"",placeholder:"\u5171\u4EAB\u540D\u79F0"},null,512),[[q,n.value.shareName,void 0,{trim:!0}]])])]),t("div",an,[nn,t("div",on,[z(t("input",{type:"text",required:"",placeholder:"\u8D26\u53F7\u7528\u6237\u540D","onUpdate:modelValue":r[1]||(r[1]=i=>n.value.username=i)},null,512),[[q,n.value.username,void 0,{trim:!0}]])])]),t("div",ln,[cn,t("div",dn,[z(t("input",{type:"password","onUpdate:modelValue":r[2]||(r[2]=i=>n.value.password=i)},null,512),[[q,n.value.password,void 0,{trim:!0}]])])])]),t("div",rn,[_n,t("button",{class:"cbi-button cbi-button-remove app-back",type:"button",onClick:r[3]||(r[3]=i=>u()),disabled:a.value},"\u5173\u95ED",8,vn),t("button",{class:"cbi-button cbi-button-apply cover-buttob app-next",disabled:a.value},"\u521B\u5EFA",8,pn)])],40,Ja)]),_:1})]),_:1}))}});var mn=D(hn,[["__scopeId","data-v-5e8b8884"]]),bn=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=X(mn,Y(H({},e),{Close:()=>{a()}}));u.mount(s);const a=()=>{u.unmount(),s.remove()};return{Close:a}};const ft=e=>(N("data-v-177121f2"),e=e(),L(),e),fn={key:0,class:"action"},$n=ft(()=>t("h2",{class:"title"},"\u6B22\u8FCE\u4F7F\u7528 NAS \u914D\u7F6E\u5411\u5BFC",-1)),yn=ft(()=>t("h3",{class:"desc"},"\u8BF7\u9009\u62E9\u9700\u8981\u6DFB\u52A0\u7684NAS\u670D\u52A1",-1)),Fn=ft(()=>t("option",{value:"linkease"},"\u8DE8\u8BBE\u5907\u5171\u4EAB\uFF08\u6613\u6709\u4E91\uFF09",-1)),gn=ft(()=>t("option",{value:"samba"},"\u5C40\u57DF\u7F51\u6587\u4EF6\u5171\u4EAB\uFF08Samba\uFF09",-1)),Dn=ft(()=>t("option",{value:"webdav"},"\u5C40\u57DF\u7F51\u6587\u4EF6\u5171\u4EAB\uFF08Webdav\uFF09",-1)),En=[Fn,gn,Dn],kn={class:"btns"},wn=["disabled"],Cn=P({props:{setup:Number,Close:{type:Function,required:!0}},setup(e){const s=e,u=F(!0),a=F("linkease"),n=F(!1),o=F(s.setup||0),v=()=>{s.Close&&s.Close()},p=()=>B(this,null,function*(){switch(a.value){case"webdav":yield r();break;case"samba":yield c();break;case"linkease":yield i();break}}),r=()=>B(this,null,function*(){n.value=!0;const S=m.Loading("\u914D\u7F6E\u4E2D...");try{const h=yield M.App.Check.POST({name:"gowebdav"});if(S.Close(),h==null?void 0:h.data){const{result:b,error:E}=h.data;if(E&&m.Warning(E),b){if(b.status=="installed"){g();return}if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 GoWebdav \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){const k=m.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D..."),O=yield _("app-meta-gowebdav");k.Close(),O?g():m.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(h){m.Error(h)}S.Close(),n.value=!1}),i=()=>B(this,null,function*(){n.value=!0;const S=m.Loading("\u914D\u7F6E\u4E2D...");try{const h=yield M.App.Check.POST({name:"linkease"});if(S.Close(),h==null?void 0:h.data){const{result:b,error:E}=h.data;if(E&&m.Warning(E),b){if(b.status=="installed"){$();return}if(confirm("\u68C0\u6D4B\u5230\u4F60\u5C1A\u672A\u5B89\u88C5 \u6613\u6709\u4E91 \u63D2\u4EF6,\u662F\u5426\u5B89\u88C5\uFF1F")){const k=m.Loading("\u6B63\u5728\u5B89\u88C5\u4E2D..."),O=yield _("app-meta-linkease");k.Close(),O?$():m.Warning("\u5B89\u88C5\u5931\u8D25")}}}}catch(h){m.Error(h)}S.Close(),n.value=!1}),c=()=>B(this,null,function*(){n.value=!0;const S=m.Loading("\u914D\u7F6E\u4E2D...");g(),S.Close(),n.value=!1}),_=S=>B(this,null,function*(){return M.App.Install.POST({name:S}).then(()=>{}),new Promise((h,b)=>B(this,null,function*(){let E=0;const k=setInterval(()=>B(this,null,function*(){if(E>3){clearInterval(k),b(!1);return}const O=yield M.App.Check.POST({name:S});if(O==null?void 0:O.data){const{result:rt}=O.data;if((rt==null?void 0:rt.status)=="installed"){clearInterval(k),h(!0);return}}E++}),3e3)}))}),g=()=>{n.value=!1,u.value=!1,ma({Cancel:()=>{u.value=!0},Next:S=>{switch(a.value){case"webdav":y(S);break;case"samba":A(S);break}}})},$=()=>{Ca({}),v()},y=S=>{Ra({rootPath:S}),v()},A=S=>{bn({rootPath:S}),v()};return(S,h)=>u.value?(l(),G(nt,{key:0,type:1},{default:T(()=>[x(K,{name:"rotate",mode:"out-in"},{default:T(()=>[o.value==0?(l(),d("div",fn,[$n,yn,t("form",null,[t("label",null,[z(t("select",{"onUpdate:modelValue":h[0]||(h[0]=b=>a.value=b)},En,512),[[lt,a.value]])])]),t("div",kn,[t("button",{class:"cbi-button cbi-button-apply cover-buttob app-next",onClick:h[1]||(h[1]=b=>p()),type:"button",disabled:n.value},"\u4E0B\u4E00\u6B65",8,wn),t("button",{class:"cbi-button cbi-button-remove app-back",onClick:h[2]||(h[2]=b=>e.Close()),type:"button"},"\u53D6\u6D88")])])):C("",!0)]),_:1})]),_:1})):C("",!0)}});var Sn=D(Cn,[["__scopeId","data-v-177121f2"]]),An=e=>{const s=document.createElement("div");document.body.appendChild(s);const u=X(Sn,Y(H({},e),{Close:()=>{a()}}));u.mount(s);const a=()=>{u.unmount(),s.remove()};return{Close:a}};const xn=e=>(N("data-v-7f29bdff"),e=e(),L(),e),Bn={class:"app-container"},Mn={class:"app-container_title"},Pn=xn(()=>t("span",null,"\u5B58\u50A8\u670D\u52A1",-1)),Tn={class:"app-container_body"},In={class:"app-container_nas-menu"},zn=P({setup(e){const s=F("linkease"),u=F(),a=os();(()=>{M.Nas.Service.Status.GET().then(v=>{var p;if((p=v==null?void 0:v.data)==null?void 0:p.result){const r=v.data.result;u.value=r,r.webdav&&(a.webdav=r.webdav)}})})();const o=()=>{An({setup:0})};return(v,p)=>{var r,i,c;return l(),d("div",Bn,[t("div",Mn,[Pn,t("button",{class:"app-btn cbi-button cbi-button-apply",onClick:p[0]||(p[0]=_=>o())},"\u5FEB\u901F\u914D\u7F6E")]),t("div",Tn,[t("ul",In,[t("button",{onClick:p[1]||(p[1]=_=>s.value="linkease"),class:it({on:s.value=="linkease"})},"\u6613\u6709\u4E91",2),t("button",{onClick:p[2]||(p[2]=_=>s.value="samba"),class:it({on:s.value=="samba"})},"SAMBA",2),t("button",{onClick:p[3]||(p[3]=_=>s.value="webdav"),class:it({on:s.value=="webdav"})},"WEBDAV",2)]),s.value=="samba"?(l(),G(Fu,{key:0,sambas:(r=u.value)==null?void 0:r.sambas},null,8,["sambas"])):s.value=="webdav"?(l(),G(zu,{key:1,webdav:(i=u.value)==null?void 0:i.webdav},null,8,["webdav"])):s.value=="linkease"?(l(),G(ju,{key:2,linkease:(c=u.value)==null?void 0:c.linkease},null,8,["linkease"])):C("",!0)])])}}});var Nn=D(zn,[["__scopeId","data-v-7f29bdff"]]);const Ln={class:"nas-container"},Vn={class:"nas-container_f"},On={class:"nas-container_r"},qn=P({setup(e){return(s,u)=>(l(),d("div",Ln,[t("div",Vn,[x(hu)]),t("div",On,[x(Nn)])]))}});var Gn=D(qn,[["__scopeId","data-v-3b9f5596"]]);const ut=e=>(N("data-v-0046e71a"),e=e(),L(),e),Un={class:"app-container"},Wn=ut(()=>t("div",{class:"app-container_title"},[t("span",null,"\u7CFB\u7EDF\u4FE1\u606F")],-1)),Hn={class:"item-label"},jn=ut(()=>t("div",{class:"item-label_key"},[t("span",null,"CPU\u6E29\u5EA6")],-1)),Rn={class:"item-label_value"},Jn={class:"item-label"},Zn=ut(()=>t("div",{class:"item-label_key"},[t("span",null,"CPU\u4F7F\u7528\u7387")],-1)),Kn={class:"item-label_value"},Xn={class:"item-label"},Qn=ut(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5185\u5B58\u4F7F\u7528\u7387")],-1)),Yn={class:"item-label_value"},t6={class:"item-label"},e6=ut(()=>t("div",{class:"item-label_key"},[t("span",null,"\u56FA\u4EF6\u7248\u672C")],-1)),s6={class:"item-label_value"},u6={class:"item-label"},a6=ut(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5185\u6838\u7248\u672C")],-1)),n6={class:"item-label_value"},o6={class:"item-label"},i6=ut(()=>t("div",{class:"item-label_key"},[t("span",null,"\u5DF2\u542F\u52A8")],-1)),l6={class:"item-label_value"},c6={class:"item-label"},d6=ut(()=>t("div",{class:"item-label_key"},[t("span",null,"\u7CFB\u7EDF\u65F6\u95F4")],-1)),r6={class:"item-label_value"},_6=P({setup(e){const s=St(),u=V(()=>s.version),a=V(()=>s.time),n=V(()=>s.cpuStatus),o=V(()=>s.cpuTemperature),v=V(()=>s.meneryStatus),p=V(()=>{var _;return((_=n==null?void 0:n.value)==null?void 0:_.usage)||0}),r=V(()=>{var _;return((_=o.value)==null?void 0:_.temperature)||0}),i=V(()=>{var g;const _=((g=v.value)==null?void 0:g.availablePercentage)||100;return 100-_}),c=ht.stampForm;return wt(()=>{}),(_,g)=>{var y,A,S,h;const $=Z("progress-item");return l(),d("div",Un,[Wn,t("div",Hn,[jn,t("div",Rn,[x($,{value:w(r)/2,text:`${w(r)}\u2103`},null,8,["value","text"])])]),t("div",Jn,[Zn,t("div",Kn,[x($,{value:w(p),text:`${w(p)}%`},null,8,["value","text"])])]),t("div",Xn,[Qn,t("div",Yn,[x($,{value:w(i),text:`${w(i)}%`},null,8,["value","text"])])]),t("div",t6,[e6,t("div",s6,[t("span",null,f((y=w(u))==null?void 0:y.firmwareVersion),1)])]),t("div",u6,[a6,t("div",n6,[t("span",null,f((A=w(u))==null?void 0:A.kernelVersion),1)])]),t("div",o6,[i6,t("div",l6,[t("span",null,f(w(c)((S=w(a))==null?void 0:S.uptime)),1)])]),t("div",c6,[d6,t("div",r6,[t("span",null,f((h=w(a))==null?void 0:h.localtime),1)])])])}}});var v6=D(_6,[["__scopeId","data-v-0046e71a"]]);const Q=e=>(N("data-v-56e3c5bb"),e=e(),L(),e),p6=["onSubmit"],h6=Q(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),m6={class:"actioner-dns_body"},b6={class:"label-item"},f6=Q(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u9009\u9879")],-1)),$6={class:"label-item_value"},y6=Q(()=>t("option",{value:"auto"},"\u4F7F\u7528\u8FD0\u8425\u5546\u63D0\u4F9B\u7684DNS",-1)),F6=Q(()=>t("option",{value:"manual"},"\u81EA\u5B9A\u4E49DNS",-1)),g6=[y6,F6],D6={class:"label-item"},E6=Q(()=>t("div",{class:"label-item_key"},"DNS\u670D\u52A1\u5668\u5730\u5740",-1)),k6={class:"label-item_value"},w6=["onUpdate:modelValue"],C6={class:"label-item"},S6=Q(()=>t("div",{class:"label-item_key"},[t("span",null,"DNS\u670D\u52A1\u5668\u5730\u5740")],-1)),A6={class:"label-item_value"},x6={class:"label-item"},B6=Q(()=>t("div",{class:"label-item_key"},"\u5907\u7528DNS\u670D\u52A1\u5668\u5730\u5740",-1)),M6={class:"label-item_value"},P6={key:1,class:"label-message"},T6={class:"actioner-dns_footer"},I6=["disabled"],z6={key:1,class:"actioner-dns"},N6=Q(()=>t("div",{class:"actioner-dns_header"},[t("span",null,"DNS\u914D\u7F6E")],-1)),L6=Q(()=>t("div",{class:"actioner-dns_body"},[t("div",{class:"config-message"},"DNS\u914D\u7F6E\u5DF2\u4FDD\u5B58")],-1)),V6={class:"actioner-dns_footer"},O6=P({props:{Close:{type:Function,required:!0}},setup(e){const s=F(0),u=F({interfaceName:"",dnsProto:"auto",manualDnsIp:[]}),a=F(""),n=F(""),o=F(""),v=F(!1);(()=>B(this,null,function*(){var i;v.value=!0;try{const c=yield M.Guide.DnsConfig.GET();((i=c==null?void 0:c.data)==null?void 0:i.result)&&(u.value=c.data.result)}catch(c){o.value=c}v.value=!1}))();const r=()=>B(this,null,function*(){o.value="";let i={};switch(u.value.dnsProto){case"auto":break;case"manual":i.manualDnsIp=[],u.value.manualDnsIp!=null&&u.value.manualDnsIp.length>0?i.manualDnsIp=u.value.manualDnsIp:(i.manualDnsIp.push(a.value),n.value&&i.manualDnsIp.push(n.value));break}i.dnsProto=u.value.dnsProto,i.interfaceName=u.value.interfaceName;const c=m.Loading("\u914D\u7F6E\u4E2D...");try{const _=yield M.Guide.DnsConfig.POST(i);if(_==null?void 0:_.data){const{success:g,error:$}=_==null?void 0:_.data;$&&(o.value=$),(g==null||g==0)&&(m.Success("\u914D\u7F6E\u6210\u529F"),s.value=1)}}catch(_){o.value=_}c.Close()});return(i,c)=>(l(),G(nt,{Close:e.Close,type:1},{default:T(()=>[s.value==0?(l(),d("form",{key:0,class:"actioner-dns",onSubmit:tt(r,["prevent"])},[h6,t("div",m6,[t("div",b6,[f6,t("div",$6,[z(t("select",{"onUpdate:modelValue":c[0]||(c[0]=_=>u.value.dnsProto=_)},g6,512),[[lt,u.value.dnsProto]])])]),u.value.dnsProto=="manual"?(l(),d(j,{key:0},[u.value.manualDnsIp!=null&&u.value.manualDnsIp.length>0?(l(!0),d(j,{key:0},at(u.value.manualDnsIp,(_,g)=>(l(),d("div",D6,[E6,t("div",k6,[z(t("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165DNS\u5730\u5740","onUpdate:modelValue":$=>u.value.manualDnsIp[g]=$},null,8,w6),[[q,u.value.manualDnsIp[g],void 0,{trim:!0}]])])]))),256)):(l(),d(j,{key:1},[t("div",C6,[S6,t("div",A6,[z(t("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165DNS\u5730\u5740",required:"","onUpdate:modelValue":c[1]||(c[1]=_=>a.value=_)},null,512),[[q,a.value,void 0,{trim:!0}]])])]),t("div",x6,[B6,t("div",M6,[z(t("input",{type:"text",placeholder:"\u5907\u7528DNS\u5730\u5740","onUpdate:modelValue":c[2]||(c[2]=_=>n.value=_)},null,512),[[q,n.value,void 0,{trim:!0}]])])])],64))],64)):C("",!0),o.value?(l(),d("div",P6,f(o.value),1)):C("",!0)]),t("div",T6,[t("button",{class:"cbi-button cbi-button-remove close",type:"button",onClick:c[3]||(c[3]=_=>e.Close())},"\u53D6\u6D88"),t("button",{class:"app-btn cbi-button cbi-button-apply sumbit",disabled:v.value},"\u786E\u8BA4",8,I6)])],40,p6)):s.value==1?(l(),d("div",z6,[N6,L6,t("div",V6,[t("button",{class:"cbi-button cbi-button-remove close",type:"button",onClick:c[4]||(c[4]=_=>e.Close())},"\u5B8C\u6210")])])):C("",!0)]),_:1},8,["Close"]))}});var q6=D(O6,[["__scopeId","data-v-56e3c5bb"]]);const G6=()=>{const e=document.createElement("div");document.body.appendChild(e);const s=X(q6,{Close:()=>{u()}});s.mount(e);const u=()=>{s.unmount(),e.remove()};return{Close:u}};const U6=e=>(N("data-v-236905e1"),e=e(),L(),e),W6={class:"nav-container"},H6=U("\u7F51\u7EDC\u5411\u5BFC"),j6={key:0,class:"cbi-button cbi-button-apply cover-buttob app-button",href:"/cgi-bin/luci/admin/system/ota"},R6=U(" \u56FA\u4EF6\u66F4\u65B0 "),J6=U6(()=>t("i",null,null,-1)),Z6=[R6,J6],K6=P({setup(e){const s=St(),u=V(()=>s.checkUpdate.needUpdate),a=()=>{G6()};return(n,o)=>{const v=Z("router-link");return l(),d("div",W6,[x(v,{class:"cbi-button cbi-button-apply cover-buttob",to:"/network"},{default:T(()=>[H6]),_:1}),t("a",{class:"cbi-button cbi-button-apply cover-buttob",onClick:o[0]||(o[0]=p=>a())},"DNS\u914D\u7F6E"),w(u)?(l(),d("a",j6,Z6)):C("",!0)])}}});var X6=D(K6,[["__scopeId","data-v-236905e1"]]);const $t=e=>(N("data-v-6850a035"),e=e(),L(),e),Q6={id:"page"},Y6=$t(()=>t("em",null,null,-1)),to=$t(()=>t("em",null,null,-1)),eo=$t(()=>t("em",null,null,-1)),so=$t(()=>t("em",null,null,-1)),uo=$t(()=>t("em",null,null,-1)),ao=P({setup(e){return is(),(s,u)=>(l(),d("div",Q6,[Y6,x(qs),to,x(X6),eo,x(Gn),so,x(v6),uo]))}});var no=D(ao,[["__scopeId","data-v-6850a035"]]);const oo={};function io(e,s){const u=Z("router-view");return l(),G(u)}var lo=D(oo,[["render",io]]);const co={},dt=e=>(N("data-v-25619e61"),e=e(),L(),e),ro={id:"page"},_o=dt(()=>t("h2",{class:"title"},"\u6B22\u8FCE\u4F7F\u7528\u7F51\u7EDC\u914D\u7F6E\u5411\u5BFC",-1)),vo=dt(()=>t("h3",{class:"desc"},"\u9009\u62E9\u4E00\u79CD\u8FDE\u63A5\u65B9\u5F0F\u4EE5\u5F00\u59CB",-1)),po={class:"network-containers"},ho={class:"network-container_item"},mo=dt(()=>t("div",{class:"cover"},[t("div",{class:"thumbnail"},[t("span",null,"\u5BBD\u5E26\u62E8\u53F7\u8FDE\u63A5")])],-1)),bo={class:"network-container_item"},fo=dt(()=>t("div",{class:"cover"},[t("div",{class:"thumbnail"},[t("span",null,"\u8FDE\u63A5\u73B0\u6709\u8DEF\u7531\u5668")])],-1)),$o={class:"network-container_item"},yo=dt(()=>t("div",{class:"cover"},[t("div",{class:"thumbnail"},[t("span",null,"\u914D\u7F6E\u4E3A\u65C1\u8DEF\u7531")])],-1)),Fo=dt(()=>t("div",{class:"info"},[U(" \u6CA1\u627E\u5230\u60F3\u8981\u7684\u914D\u7F6E\uFF1F\u8BF7\u4F7F\u7528 "),t("a",{href:"/cgi-bin/luci/admin/network/network"},"\u9AD8\u7EA7\u6A21\u5F0F")],-1));function go(e,s){const u=Z("router-link");return l(),d("div",ro,[_o,vo,t("div",po,[t("div",ho,[x(u,{to:"/network/pppoe"},{default:T(()=>[mo]),_:1})]),t("div",bo,[x(u,{to:"/network/dhcp"},{default:T(()=>[fo]),_:1})]),t("div",$o,[x(u,{to:"/network/gateway"},{default:T(()=>[yo]),_:1})])]),Fo])}var Do=D(co,[["render",go],["__scopeId","data-v-25619e61"]]);const yt=e=>(N("data-v-3c3d84a2"),e=e(),L(),e),Eo={key:0,id:"page"},ko=yt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u5BBD\u5E26\u8D26\u53F7",-1)),wo=yt(()=>t("h3",{class:"desc"},"\u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u8DEF\u7531 WAN \u53E3\u8FDE\u63A5\u5230\u5149\u732B",-1)),Co=["onSubmit"],So=yt(()=>t("div",{class:"label-key"},[t("span",null,"\u5BBD\u5E26\u8D26\u53F7")],-1)),Ao=["disabled"],xo=yt(()=>t("div",{class:"label-key"},[t("span",null,"\u5BC6\u7801")],-1)),Bo=["disabled"],Mo={key:0,class:"msg"},Po={class:"btns"},To=["disabled"],Io=U("\u8FD4\u56DE"),zo={key:1,id:"page"},No=yt(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),Lo={class:"btns"},Vo=["href"],Oo=U("\u8FD4\u56DE"),qo=P({setup(e){const s=F(Et()),u=F(0),a=F({account:"",password:""}),n=F(""),o=F(!1);(()=>B(this,null,function*(){var r;o.value=!0;try{const i=yield M.Guide.Pppoe.GET();((r=i==null?void 0:i.data)==null?void 0:r.result)&&(a.value=i.data.result)}catch(i){n.value=i}o.value=!1}))();const p=()=>B(this,null,function*(){const r=a.value.account||"",i=a.value.password||"";if(r==""){n.value="\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A";return}if(i==""){n.value="\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A";return}o.value=!0;const c=m.Loading("\u914D\u7F6E\u4E2D...");try{const _=yield M.Guide.Pppoe.POST({account:r,password:i});if(_==null?void 0:_.data){const{error:g,success:$}=_.data;g&&(n.value=g),($==null||$==0)&&(m.Success("\u914D\u7F6E\u6210\u529F"),u.value=1)}}catch(_){n.value=_}o.value=!1,c.Close()});return(r,i)=>{const c=Z("router-link");return u.value==0?(l(),d("div",Eo,[ko,wo,t("form",{onSubmit:tt(p,["prevent"])},[t("label",null,[So,z(t("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=_=>a.value.account=_),placeholder:"\u5BBD\u5E26\u8D26\u53F7",required:"",disabled:o.value},null,8,Ao),[[q,a.value.account,void 0,{trim:!0}]])]),t("label",null,[xo,z(t("input",{type:"password","onUpdate:modelValue":i[1]||(i[1]=_=>a.value.password=_),placeholder:"\u5BBD\u5E26\u5BC6\u7801",required:"",disabled:o.value},null,8,Bo),[[q,a.value.password,void 0,{trim:!0}]])]),n.value?(l(),d("div",Mo,f(n.value),1)):C("",!0),t("div",Po,[t("button",{class:"cbi-button cbi-button-apply cover-buttob app-next",disabled:o.value},"\u4FDD\u5B58\u914D\u7F6E",8,To),x(c,{class:"cbi-button cbi-button-remove app-back",to:"/network"},{default:T(()=>[Io]),_:1})])],40,Co)])):u.value==1?(l(),d("div",zo,[No,t("div",Lo,[t("a",{href:s.value,class:"cbi-button cbi-button-apply cover-buttob app-next"},"\u8FDB\u5165\u63A7\u5236\u53F0",8,Vo),x(c,{class:"cbi-button cbi-button-remove app-back",to:"/network"},{default:T(()=>[Oo]),_:1})])])):C("",!0)}}});var Go=D(qo,[["__scopeId","data-v-3c3d84a2"]]);const R=e=>(N("data-v-73a19314"),e=e(),L(),e),Uo={key:0,id:"page"},Wo=R(()=>t("h2",{class:"title"},"\u914D\u7F6E\u4E92\u8054\u7F51",-1)),Ho=R(()=>t("h3",{class:"desc"},"\u8BF7\u786E\u4FDD\u60A8\u5DF2\u5C06\u8DEF\u7531 WAN \u53E3\u8FDE\u63A5\u5230\u4E0A\u7EA7\u8DEF\u7531\u5C40\u57DF\u7F51\uFF08 LAN \uFF09\u63A5\u53E3",-1)),jo=["onSubmit"],Ro=R(()=>t("div",{class:"label-key"},[t("span",null,"WAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")],-1)),Jo=R(()=>t("option",{value:"dhcp"},"\u81EA\u52A8\u83B7\u53D6IP\u5730\u5740\uFF08DHCP\uFF09",-1)),Zo=R(()=>t("option",{value:"static"},"\u9759\u6001IP\u5730\u5740",-1)),Ko=[Jo,Zo],Xo=R(()=>t("div",{class:"label-key"},[t("span",null,"IP\u5730\u5740")],-1)),Qo=["disabled"],Yo={key:0,class:"msg"},t0=R(()=>t("div",{class:"label-key"},[t("span",null,"\u5B50\u7F51\u63A9\u7801")],-1)),e0=["disabled"],s0={key:1,class:"msg"},u0=R(()=>t("div",{class:"label-key"},[t("span",null,"\u7F51\u5173\u5730\u5740")],-1)),a0=["disabled"],n0=R(()=>t("div",{class:"label-key"},[t("span",null,"DNS \u914D\u7F6E\u65B9\u5F0F")],-1)),o0=R(()=>t("option",{value:"auto"},"\u81EA\u52A8\u83B7\u53D6\uFF08DHCP\uFF09",-1)),i0=R(()=>t("option",{value:"manual"},"\u624B\u5DE5\u914D\u7F6E",-1)),l0=[o0,i0],c0=R(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),d0=["onUpdate:modelValue","disabled"],r0=R(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),_0=["disabled"],v0=R(()=>t("div",{class:"label-key"},"\u5907\u7528DNS\u670D\u52A1\u5668",-1)),p0=["disabled"],h0={key:2,class:"msgs"},m0={class:"btns"},b0=["disabled"],f0=U("\u8FD4\u56DE"),$0={key:1,id:"page"},y0=R(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),F0={class:"btns"},g0=["href"],D0=U("\u8FD4\u56DE"),E0=P({setup(e){const s=F(Et()),u=F(0),a=F({}),n=F(""),o=F(""),v=F(""),p=F(!1),r=F(""),i=F(""),c=ht.checkIsIP;(()=>B(this,null,function*(){var h;p.value=!0;try{const b=yield M.Guide.ClientModel.GET();((h=b==null?void 0:b.data)==null?void 0:h.result)&&(a.value=b.data.result)}catch(b){n.value=b}p.value=!1}))();const g=h=>{h.target.value=="static"&&(a.value.subnetMask==null||a.value.subnetMask=="")&&(a.value.subnetMask="255.255.255.0")},$=h=>{h.target.value=="manual"},y=h=>{const b=h.target;if(b.value==""){r.value="";return}c(b.value)?r.value="":r.value="\u8BF7\u8F93\u5165\u5408\u6CD5\u7684IP\u5730\u5740"},A=h=>{const b=h.target;if(b.value==""){i.value="";return}c(b.value)?i.value="":i.value="\u8BF7\u8F93\u5165\u5408\u6CD5\u7684\u5730\u5740"},S=()=>B(this,null,function*(){const h={};switch(a.value.wanProto){case"dhcp":break;case"static":h.staticIp=a.value.staticIp,h.subnetMask=a.value.subnetMask,h.gateway=a.value.gateway;break}switch(a.value.dnsProto){case"auto":break;case"manual":h.manualDnsIp=[],a.value.manualDnsIp!=null&&a.value.manualDnsIp.length>0?h.manualDnsIp=a.value.manualDnsIp:(h.manualDnsIp.push(o.value),v.value&&h.manualDnsIp.push(v.value));break}h.dnsProto=a.value.dnsProto,h.wanProto=a.value.wanProto;const b=m.Loading("\u914D\u7F6E\u4E2D....");p.value=!0;try{const E=yield M.Guide.ClientModel.POST(h);if(E==null?void 0:E.data){const{success:k,error:O}=E==null?void 0:E.data;O&&(n.value=O),(k==null||k==0)&&(m.Success("\u914D\u7F6E\u6210\u529F"),u.value=1)}}catch(E){n.value=E}p.value=!1,b.Close()});return(h,b)=>{const E=Z("router-link");return u.value==0?(l(),d("div",Uo,[Wo,Ho,t("form",{onSubmit:tt(S,["prevent"])},[t("label",null,[Ro,z(t("select",{"onUpdate:modelValue":b[0]||(b[0]=k=>a.value.wanProto=k),onInput:g},Ko,544),[[lt,a.value.wanProto]])]),a.value.wanProto=="static"?(l(),d(j,{key:0},[t("label",null,[Xo,z(t("input",{type:"text","onUpdate:modelValue":b[1]||(b[1]=k=>a.value.staticIp=k),placeholder:"\u9759\u6001IP\u5730\u5740",required:"",disabled:p.value,onInput:y},null,40,Qo),[[q,a.value.staticIp,void 0,{trim:!0}]])]),r.value?(l(),d("p",Yo,f(r.value),1)):C("",!0),t("label",null,[t0,z(t("input",{type:"text","onUpdate:modelValue":b[2]||(b[2]=k=>a.value.subnetMask=k),placeholder:"\u5B50\u7F51\u63A9\u7801",required:"",disabled:p.value,onInput:A},null,40,e0),[[q,a.value.subnetMask,void 0,{trim:!0}]])]),i.value?(l(),d("p",s0,f(i.value),1)):C("",!0),t("label",null,[u0,z(t("input",{type:"text","onUpdate:modelValue":b[3]||(b[3]=k=>a.value.gateway=k),placeholder:"\u7F51\u5173\u5730\u5740",required:"",disabled:p.value},null,8,a0),[[q,a.value.gateway,void 0,{trim:!0}]])])],64)):C("",!0),t("label",null,[n0,z(t("select",{"onUpdate:modelValue":b[4]||(b[4]=k=>a.value.dnsProto=k),onInput:$},l0,544),[[lt,a.value.dnsProto]])]),a.value.dnsProto=="manual"?(l(),d(j,{key:1},[a.value.manualDnsIp!=null&&a.value.manualDnsIp.length>0?(l(!0),d(j,{key:0},at(a.value.manualDnsIp,(k,O)=>(l(),d("label",null,[c0,z(t("input",{type:"text","onUpdate:modelValue":rt=>a.value.manualDnsIp[O]=rt,placeholder:"DNS\u670D\u52A1\u5668",required:"",disabled:p.value},null,8,d0),[[q,a.value.manualDnsIp[O],void 0,{trim:!0}]])]))),256)):(l(),d(j,{key:1},[t("label",null,[r0,z(t("input",{type:"text","onUpdate:modelValue":b[5]||(b[5]=k=>o.value=k),placeholder:"DNS\u670D\u52A1\u5668",required:"",disabled:p.value},null,8,_0),[[q,o.value,void 0,{trim:!0}]])]),t("label",null,[v0,z(t("input",{type:"text","onUpdate:modelValue":b[6]||(b[6]=k=>v.value=k),placeholder:"\u5907\u7528DNS\u670D\u52A1\u5668",disabled:p.value},null,8,p0),[[q,v.value,void 0,{trim:!0}]])])],64))],64)):C("",!0),n.value?(l(),d("div",h0,f(n.value),1)):C("",!0),t("div",m0,[t("button",{class:"cbi-button cbi-button-apply cover-buttob app-next",disabled:p.value},"\u4FDD\u5B58\u914D\u7F6E",8,b0),x(E,{class:"cbi-button cbi-button-remove app-back",to:"/network"},{default:T(()=>[f0]),_:1})])],40,jo)])):u.value==1?(l(),d("div",$0,[y0,t("div",F0,[t("a",{href:s.value,class:"cbi-button cbi-button-apply cover-buttob app-next"},"\u8FDB\u5165\u63A7\u5236\u53F0",8,g0),x(E,{class:"cbi-button cbi-button-remove app-back",to:"/network"},{default:T(()=>[D0]),_:1})])])):C("",!0)}}});var k0=D(E0,[["__scopeId","data-v-73a19314"]]);const W=e=>(N("data-v-53f90130"),e=e(),L(),e),w0={key:0,id:"page"},C0=W(()=>t("h2",{class:"title"},"\u65C1\u8DEF\u7531\u914D\u7F6E\u524D\u7684\u51C6\u5907\u5DE5\u4F5C",-1)),S0=W(()=>t("code",null,[U(" \u65C1\u8DEF\u7531\u6A21\u5F0F\uFF0C\u4E5F\u53EB\u5355\u81C2\u8DEF\u7531\u6A21\u5F0F\u3002 "),t("br"),U("\u60A8\u53EF\u4EE5\u7528\u4E0A\u4E00\u7EA7\u8DEF\u7531\u62E8\u53F7\uFF0C\u7136\u540E\u7531ARS2\u6765\u5B9E\u73B0\u4E00\u4E9B\u9AD8\u7EA7\u529F\u80FD\u3002 ")],-1)),A0=W(()=>t("h3",{class:"desc"},"\u8BF7\u60A8\u83B7\u5F97\u4E3B\u8DEF\u7531\u5668\u7684IP\u5730\u5740\uFF08\u4F8B\u5982 192.168.2.1 \uFF09\uFF0C\u8BB0\u5F55\u4EE5\u5907\u4F7F\u7528",-1)),x0=W(()=>t("div",{class:"info"},[U(" \u4F60\u53EF\u4EE5\u67E5\u770B\u6211\u4EEC\u7684 "),t("a",{target:"_blank",href:"https://doc.linkease.com/zh/guide/easepi/common.html#%E7%BA%AF%E4%B8%BB%E6%9C%BA%E6%A8%A1%E5%BC%8F"},"\u914D\u7F6E\u6559\u7A0B")],-1)),B0={class:"btns"},M0=["disabled"],P0=U("\u8FD4\u56DE"),T0={key:1,id:"page"},I0=W(()=>t("h2",{class:"title"},"\u914D\u7F6E\u65C1\u8DEF\u7531\u7F51\u7EDC",-1)),z0=W(()=>t("h3",{class:"desc"},"\u73B0\u5728\uFF0C\u8BF7\u4F60\u914D\u7F6E\u65C1\u8DEF\u7531\u4FE1\u606F",-1)),N0=["onSubmit"],L0=W(()=>t("div",{class:"label-key"},[t("span",null,"LAN \u63A5\u53E3\u914D\u7F6E\u65B9\u5F0F")],-1)),V0={class:"label-value"},O0=W(()=>t("option",null,"\u65C1\u8DEF\u7531\u6A21\u5F0F\u4EC5\u652F\u6301\u9759\u6001IP\u5730\u5740",-1)),q0=[O0],G0=W(()=>t("div",{class:"label-key"},[t("span",null,"IP \u5730\u5740\uFF08\u8BF7\u548C\u4E0A\u4E00\u6B65\u8BB0\u5F55\u7684\u4E3B\u8DEF\u7531\u5730\u5740\u5728\u540C\u4E00\u7F51\u6BB5\uFF09")],-1)),U0=["disabled"],W0=W(()=>t("div",{class:"label-key"},[t("span",null,"\u5B50\u7F51\u63A9\u7801")],-1)),H0=["disabled"],j0=W(()=>t("div",{class:"label-key"},[t("span",null,"\u7F51\u5173\u5730\u5740")],-1)),R0=["disabled"],J0=W(()=>t("div",{class:"label-key"},[t("span",null,"DNS \u914D\u7F6E\u65B9\u5F0F")],-1)),Z0=W(()=>t("option",{value:"auto"},"\u81EA\u52A8\u83B7\u53D6",-1)),K0=W(()=>t("option",{value:"manual"},"\u624B\u5DE5\u914D\u7F6E",-1)),X0=[Z0,K0],Q0={key:0},Y0=W(()=>t("div",{class:"label-key"},[t("span",null,"DNS\u670D\u52A1\u5668")],-1)),t4=["disabled"],e4={key:1,class:"msgs"},s4={class:"btns"},u4=["disabled"],a4=U("\u8FD4\u56DE"),n4={key:2,id:"page"},o4=W(()=>t("h2",{class:"title"},"\u914D\u7F6E\u6210\u529F",-1)),i4={class:"btns"},l4=["href"],c4=U("\u8FD4\u56DE"),d4=P({setup(e){const s=F(Et()),u=F(0),a=F(!1),n=F(""),o=F({subnetMask:"255.255.255.0",dnsProto:"auto",staticDnsIp:"",staticLanIp:"",gateway:""}),v=r=>{u.value=r},p=()=>B(this,null,function*(){const r=o.value,i=m.Loading("\u914D\u7F6E\u4E2D...");try{const c=yield M.Guide.GatewayRouter.POST(r);if(c==null?void 0:c.data){const{success:_,error:g}=c==null?void 0:c.data;g&&(n.value=g),(_==null||_==0)&&(m.Success("\u914D\u7F6E\u6210\u529F"),u.value=2)}}catch(c){n.value=c}i.Close()});return(r,i)=>{const c=Z("router-link");return u.value==0?(l(),d("div",w0,[C0,S0,A0,x0,t("div",B0,[t("button",{class:"cbi-button cbi-button-apply cover-buttob app-next",disabled:a.value,onClick:i[0]||(i[0]=_=>v(1))},"\u4E0B\u4E00\u6B65",8,M0),x(c,{class:"cbi-button cbi-button-remove app-back",to:"/network"},{default:T(()=>[P0]),_:1})])])):u.value==1?(l(),d("div",T0,[I0,z0,t("form",{onSubmit:tt(p,["prevent"])},[t("label",null,[L0,t("div",V0,[t("select",{disabled:"",style:Mt({backgroundColor:"rgba(215, 215, 215, 1)",color:"#333"})},q0,4)])]),t("label",null,[G0,z(t("input",{type:"text","onUpdate:modelValue":i[1]||(i[1]=_=>o.value.staticLanIp=_),placeholder:"IP\u5730\u5740",required:"",disabled:a.value},null,8,U0),[[q,o.value.staticLanIp,void 0,{trim:!0}]])]),t("label",null,[W0,z(t("input",{type:"text","onUpdate:modelValue":i[2]||(i[2]=_=>o.value.subnetMask=_),placeholder:"\u5B50\u7F51\u63A9\u7801",required:"",disabled:a.value},null,8,H0),[[q,o.value.subnetMask,void 0,{trim:!0}]])]),t("label",null,[j0,z(t("input",{type:"text","onUpdate:modelValue":i[3]||(i[3]=_=>o.value.gateway=_),placeholder:"\u7F51\u5173\u5730\u5740",required:"",disabled:a.value},null,8,R0),[[q,o.value.gateway,void 0,{trim:!0}]])]),t("label",null,[J0,z(t("select",{"onUpdate:modelValue":i[4]||(i[4]=_=>o.value.dnsProto=_)},X0,512),[[lt,o.value.dnsProto]])]),o.value.dnsProto=="manual"?(l(),d("label",Q0,[Y0,z(t("input",{type:"text","onUpdate:modelValue":i[5]||(i[5]=_=>o.value.staticDnsIp=_),placeholder:"DNS\u670D\u52A1\u5668",required:"",disabled:a.value},null,8,t4),[[q,o.value.staticDnsIp,void 0,{trim:!0}]])])):C("",!0),n.value?(l(),d("div",e4,f(n.value),1)):C("",!0),t("div",s4,[t("button",{class:"cbi-button cbi-button-apply cover-buttob app-next",disabled:a.value},"\u4FDD\u5B58\u914D\u7F6E",8,u4),x(c,{class:"cbi-button cbi-button-remove app-back",to:"/network"},{default:T(()=>[a4]),_:1})])],40,N0)])):u.value==2?(l(),d("div",n4,[o4,t("div",i4,[t("a",{href:s.value,class:"cbi-button cbi-button-apply cover-buttob app-next"},"\u8FDB\u5165\u63A7\u5236\u53F0",8,l4),x(c,{class:"cbi-button cbi-button-remove app-back",to:"/network"},{default:T(()=>[c4]),_:1})])])):C("",!0)}}});var r4=D(d4,[["__scopeId","data-v-53f90130"]]);const Et=()=>window.vue_base||"/cgi-bin/luci/admin/quickstart/pages",Lt=Yt({history:te(Et()),routes:[{name:"IndexPage",path:"/",meta:{title:"\u63A7\u5236\u53F0"},component:no},{name:"NetworkPage",path:"/network",meta:{title:"\u7F51\u7EDC\u8BBE\u7F6E\u5411\u5BFC"},component:lo,children:[{path:"",component:Do},{path:"pppoe",component:Go},{path:"dhcp",component:k0},{path:"gateway",component:r4}]}]});Lt.beforeEach((e,s)=>(e.meta.title,!0));const J=X(ne);J.component("svg-menu",_e);J.component("svg-system",fe);J.component("svg-download",Ee);J.component("svg-store",Me);J.component("svg-info",Le);J.component("svg-disk",l1);J.component("svg-nav",p1);J.component("progress-item",b1);J.component("svg-view-show",D1);J.component("svg-view-hidden",A1);J.component("article-item",z1);J.use(Lt);J.use(ee());J.mount("#app"); diff --git a/applications/luci-app-quickstart/root/www/luci-static/quickstart/style.css b/applications/luci-app-quickstart/root/www/luci-static/quickstart/style.css deleted file mode 100755 index 9467ee7..0000000 --- a/applications/luci-app-quickstart/root/www/luci-static/quickstart/style.css +++ /dev/null @@ -1 +0,0 @@ -@keyframes bganimation-22a6a33a{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-22a6a33a{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-22a6a33a{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-22a6a33a]{animation:rotateEnter-22a6a33a .7s;position:relative}.rotate-leave-active[data-v-22a6a33a]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-22a6a33a]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}#main[data-v-22a6a33a]{width:100%}#main[data-v-22a6a33a],#main[data-v-22a6a33a] *{-webkit-box-sizing:border-box;-webkit-tap-highlight-color:transparent;box-sizing:border-box;word-wrap:break-word;outline:none}@keyframes bganimation-7a820a37{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-7a820a37{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-7a820a37{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-7a820a37]{animation:rotateEnter-7a820a37 .7s;position:relative}.rotate-leave-active[data-v-7a820a37]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-7a820a37]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.progress[data-v-7a820a37]{width:100%;display:block;position:relative;background-color:#eee;border-radius:1rem;height:20px;cursor:pointer;overflow:hidden}.progress .progress-value[data-v-7a820a37]{transition:.5s;position:absolute;left:0;top:0;bottom:0;height:100%;text-align:center;color:#fff;vertical-align:middle}article[data-v-bd286d4e]{flex:0 0 100%;max-width:20%;position:relative;border-radius:4px;padding:10px}@media screen and (max-width: 1080px){article[data-v-bd286d4e]{max-width:33.333%}}@keyframes bganimation-bd286d4e{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-bd286d4e{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-bd286d4e{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-bd286d4e]{animation:rotateEnter-bd286d4e .7s;position:relative}.rotate-leave-active[data-v-bd286d4e]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-bd286d4e]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}@media screen and (max-width: 768px){article[data-v-bd286d4e]{max-width:50%}}@keyframes bganimation-123deb20{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-123deb20{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-123deb20{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-123deb20]{animation:rotateEnter-123deb20 .7s;position:relative}.rotate-leave-active[data-v-123deb20]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-123deb20]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}a[data-v-123deb20]{position:relative;display:block;width:100%;transition:.4s;cursor:pointer}a[data-v-123deb20]:hover{transform:scale(1.07);transition:.4s;position:relative}a:hover .cover .thumbnail[data-v-123deb20]{box-shadow:0 6px 40px #1c67f2}a .cover[data-v-123deb20]{position:relative;padding-top:130%;z-index:1}a .cover[data-v-123deb20] .thumbnail{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain;border-radius:6px;overflow:hidden;z-index:1;background-color:#2dc8fd;display:flex;flex-wrap:wrap;align-items:center;align-content:center;justify-content:center}a .cover[data-v-123deb20] .thumbnail i{display:block;font-size:100px;color:#eee}a .cover[data-v-123deb20] .thumbnail span{display:block;text-align:center;width:100%;color:#eeee;font-size:28px;margin:1rem 0}article:nth-child(9n+1) a .cover .thumbnail[data-v-123deb20]{background-color:#ff9100}article:nth-child(9n+2) a .cover .thumbnail[data-v-123deb20]{background-color:#2dc8fd}article:nth-child(9n+3) a .cover .thumbnail[data-v-123deb20]{background-color:#f66a2c}article:nth-child(9n+4) a .cover .thumbnail[data-v-123deb20]{background-color:#9b58de}article:nth-child(9n+5) a .cover .thumbnail[data-v-123deb20]{background-color:#297ff3}article:nth-child(9n+6) a .cover .thumbnail[data-v-123deb20]{background-color:#27aa8f}article:nth-child(9n+7) a .cover .thumbnail[data-v-123deb20]{background-color:#f15a4a}article:nth-child(9n+8) a .cover .thumbnail[data-v-123deb20]{background-color:#439c07}@keyframes bganimation-803a3938{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-803a3938{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-803a3938{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-803a3938]{animation:rotateEnter-803a3938 .7s;position:relative}.rotate-leave-active[data-v-803a3938]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-803a3938]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.flow[data-v-803a3938]{position:relative}.flow .echart[data-v-803a3938]{width:100%;height:100%}.flow .flow-data[data-v-803a3938]{position:absolute;right:10px;top:10px}.flow .flow-data span[data-v-803a3938]{display:block;color:#eee;font-size:12px;margin-bottom:5px;font-weight:600}@keyframes bganimation-9f125f8e{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-9f125f8e{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-9f125f8e{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-9f125f8e]{animation:rotateEnter-9f125f8e .7s;position:relative}.rotate-leave-active[data-v-9f125f8e]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-9f125f8e]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}em[data-v-9f125f8e]{display:block;margin:.5rem 0;width:100%}.app-container_status-container[data-v-9f125f8e]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.app-container_status-container span.container_success[data-v-9f125f8e]{color:#67c23a;display:block;font-size:1.2em}.app-container_status-container span.container_failure[data-v-9f125f8e]{color:#ff0606;display:block;font-size:1.2em}.app-container_status-container span.container_title[data-v-9f125f8e]{font-size:1.25rem;color:#333;display:block}.app-container_status-container span.container_content[data-v-9f125f8e]{font-size:1.25rem;color:#666}.app-container_status-container span.container_time[data-v-9f125f8e]{font-size:12px;color:#1e1e1e;margin-top:3px;display:block}.app-container_status-label[data-v-9f125f8e]{width:100%;display:flex;flex-wrap:wrap;justify-content:space-between}.app-container_status-label .app-container_status-label_item[data-v-9f125f8e]{flex:0 0 100%;max-width:calc(50% - 10px);margin-bottom:1rem}.app-container_status-label_block[data-v-9f125f8e]{display:block}.app-container_status-container_body[data-v-9f125f8e]{width:100%;height:100%;text-align:center;display:flex;flex-wrap:wrap;align-items:center;align-content:center;justify-content:center}.app-container_status-container_body svg[data-v-9f125f8e]{width:50px;height:50px}.app-container_status-container_body span[data-v-9f125f8e]{width:100%;margin:5px 0}.network-container .network-container_flow .network-container_flow-container[data-v-775eefb5]:before{background:linear-gradient(to right,#02255f 0%,#0a2e38 50%,#101010 100%);background-size:400%!important;animation:bganimation-775eefb5 10s infinite!important}@keyframes bganimation-775eefb5{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-775eefb5{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-775eefb5{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-775eefb5]{animation:rotateEnter-775eefb5 .7s;position:relative}.rotate-leave-active[data-v-775eefb5]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-775eefb5]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.network-container[data-v-775eefb5]{width:100%;display:flex;flex-wrap:wrap}.network-container .network-container_flow[data-v-775eefb5]{flex:0 0 100%;max-width:60%;padding-right:10px}.network-container .network-container_flow .network-container_flow-container[data-v-775eefb5]{border-radius:6px;overflow:hidden;position:relative}.network-container .network-container_flow .network-container_flow-container[data-v-775eefb5]:before{content:"";position:absolute;inset:0;opacity:.8}.network-container .network-container_status[data-v-775eefb5]{flex:0 0 100%;max-width:40%;padding-left:10px;display:flex;flex-wrap:wrap}@keyframes bganimation-775eefb5{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-775eefb5{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-775eefb5{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-775eefb5]{animation:rotateEnter-775eefb5 .7s;position:relative}.rotate-leave-active[data-v-775eefb5]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-775eefb5]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}@media screen and (max-width: 992px){.network-container[data-v-775eefb5]{width:100%}.network-container .network-container_flow[data-v-775eefb5]{flex:0 0 100%;max-width:100%;padding-right:0}.network-container .network-container_status[data-v-775eefb5]{flex:0 0 100%;max-width:100%;padding-left:0;margin-top:1rem}}@keyframes bganimation{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active{animation:rotateEnter .7s;position:relative}.rotate-leave-active{opacity:0;display:none;position:relative;z-index:-999}.app-container{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}[lock-scroll=true]{overflow:hidden!important}@keyframes bganimation-b164530a{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-b164530a{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-b164530a{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-b164530a]{animation:rotateEnter-b164530a .7s;position:relative}.rotate-leave-active[data-v-b164530a]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-b164530a]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.bg[data-v-b164530a]{position:fixed;inset:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:999}#actioner[data-v-b164530a]{position:fixed;z-index:1000;width:100%;height:100%;inset:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;overflow:auto}#actioner[data-v-b164530a],#actioner[data-v-b164530a] *{-webkit-box-sizing:border-box;-webkit-tap-highlight-color:transparent;box-sizing:border-box;word-wrap:break-word;outline:none}.action-container[data-v-b164530a]{width:100%;height:100%;background-color:#fff;position:fixed;z-index:9999;inset:0;margin:auto;overflow:auto}.action-container .action-container_header[data-v-b164530a]{width:100%;height:36px;line-height:36px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:0 .625rem;position:absolute;top:0;left:0;right:0;border-bottom:1px solid #1e1e1e;background-color:#252526}.action-container .action-container_header .title[data-v-b164530a]{color:#eee;font-size:16px}.action-container .action-container_header button.close[data-v-b164530a]{width:36px;height:36px;margin:0;padding:10px;background:none;border:none;cursor:pointer;opacity:1}.action-container .action-container_header button.close[data-v-b164530a] svg.icon{width:100%;height:100%}.action-container .action-container_header button.close[data-v-b164530a] svg.icon path{fill:#eee}.action-container .action-container_header button.close[data-v-b164530a]:hover{opacity:.9}.action-container .action-container_body[data-v-b164530a]{width:100%;height:100%;padding-top:36px}@keyframes bganimation{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active{animation:rotateEnter .7s;position:relative}.rotate-leave-active{opacity:0;display:none;position:relative;z-index:-999}.app-container{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}@keyframes dialogEnter{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes dialogLeave{0%{transform:scale(1)}to{transform:scale(0)}}.dialog-enter-active{animation:dialogEnter .3s linear forwards}.dialog-leave-active{animation:dialogLeave .3s linear forwards}@keyframes bganimation-77fe4bee{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-77fe4bee{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-77fe4bee{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-77fe4bee]{animation:rotateEnter-77fe4bee .7s;position:relative}.rotate-leave-active[data-v-77fe4bee]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-77fe4bee]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}@keyframes turn-77fe4bee{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.toast[data-v-77fe4bee]{position:fixed;top:50%;left:50%;display:flex;flex-direction:column;align-items:center;justify-content:space-around;box-sizing:content-box;width:100px;max-width:70%;padding:16px;color:#fff;font-size:14px;text-align:center;background-color:#000000b3;border-radius:8px;transform:translate(-50%,-50%);z-index:9999;transition:.3s;cursor:pointer}.toast div.icon[data-v-77fe4bee]{width:50px;height:50px;margin:15px 0;background:none!important}.toast div.icon svg[data-v-77fe4bee]{width:100%;height:100%}.toast div.icon svg path[data-v-77fe4bee]{fill:#fff}.toast .loading[data-v-77fe4bee]{animation:turn-77fe4bee 5s linear infinite}@keyframes bganimation-7b83d7cb{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-7b83d7cb{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-7b83d7cb{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-7b83d7cb]{animation:rotateEnter-7b83d7cb .7s;position:relative}.rotate-leave-active[data-v-7b83d7cb]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-7b83d7cb]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.action.format[data-v-7b83d7cb]{width:700px;height:560px;max-height:90%;background-color:#fff;position:relative;z-index:1000;margin:auto;overflow:auto;padding:0 25px;border:1px solid #dfdfdf;border-radius:4px;background:#fff;box-shadow:0 1px 4px #0000004d}.action.format .action-header[data-v-7b83d7cb]{width:100%;height:70px;line-height:70px}.action.format .action-header .action-header_title[data-v-7b83d7cb]{margin:0;color:#333;font:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-moz-user-select:none;-webkit-user-select:none;user-select:none;font-size:20px}.action.format .action-body[data-v-7b83d7cb]{width:100%;height:calc(100% - 140px);overflow:auto}.action.format .action-footer[data-v-7b83d7cb]{width:100%;height:70px;line-height:70px;color:#333;display:flex;flex-wrap:wrap;align-items:center}.action.format .action-footer .auto[data-v-7b83d7cb]{flex:auto}.action.format .action-footer button[data-v-7b83d7cb]{display:inline-block;width:100px!important;height:36px;line-height:36px;margin:0;text-align:center;border:none;cursor:pointer;margin-left:1rem}.action.format .disk-list[data-v-7b83d7cb]{width:100%;height:100%;border:1px solid #dfe1e5;overflow:auto}.action.format .label-item[data-v-7b83d7cb]{width:100%;margin:1rem 0}.action.format .label-item .label-item_key[data-v-7b83d7cb]{width:100%;font-size:16px;color:#666}.action.format .label-item .label-item_key span[data-v-7b83d7cb]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.action.format .label-item .label-item_key span[data-v-7b83d7cb]:before{content:"*";color:#f56c6c;margin-right:4px}.action.format .label-item .label-item_value[data-v-7b83d7cb]{width:100%;margin-top:5px}.action.format .label-item .label-item_value select[data-v-7b83d7cb],.action.format .label-item .label-item_value input[data-v-7b83d7cb]{width:100%;height:36px}.action.format .auto[data-v-7b83d7cb]{flex:auto}.action.format p.msg[data-v-7b83d7cb]{margin:.5rem 0;color:red}.action.format .disk-info[data-v-7b83d7cb]{width:100%;text-align:center}.action.format .disk-info .disk-info_icon[data-v-7b83d7cb]{width:100px;height:100px;margin:0 auto}.action.format .disk-info .disk-info_icon svg[data-v-7b83d7cb]{width:100%;height:100%}.action.format .disk-info .disk-info_mount-name[data-v-7b83d7cb]{margin:1rem 0;font-size:1.5em;color:#333}@keyframes bganimation-7b83d7cb{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-7b83d7cb{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-7b83d7cb{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-7b83d7cb]{animation:rotateEnter-7b83d7cb .7s;position:relative}.rotate-leave-active[data-v-7b83d7cb]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-7b83d7cb]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.action.result[data-v-7b83d7cb]{width:700px;height:560px;max-height:90%;background-color:#fff;position:relative;z-index:1000;margin:auto;overflow:auto;padding:0 25px;border:1px solid #dfdfdf;border-radius:4px;background:#fff;box-shadow:0 1px 4px #0000004d}.action.result .action-body[data-v-7b83d7cb]{width:100%;height:100%;display:flex;flex-wrap:wrap;align-items:center;align-content:center;justify-content:center}.action.result .action-body .action-body_icon[data-v-7b83d7cb]{width:100px;height:100px}.action.result .action-body .action-body_icon svg.icon[data-v-7b83d7cb]{width:100%;height:100%}.action.result .action-body .action-body_msg[data-v-7b83d7cb]{font-size:2em;color:#666;text-align:center;width:100%;margin:1rem 0}.action.result .action-body .action-body_info[data-v-7b83d7cb]{margin:1rem 0;width:100%;text-align:center;color:#666;font-size:1.2em}.action.result .action-body .action-body_info a[data-v-7b83d7cb]{color:#0000fb}.action.result .btns[data-v-7b83d7cb]{width:100%;text-align:center;margin:1rem 0}.action.result .btns button[data-v-7b83d7cb]{display:inline-block;width:100px!important;height:36px;line-height:36px;margin:0;text-align:center;border:none;cursor:pointer;margin-left:1rem}@keyframes bganimation-61d717c0{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-61d717c0{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-61d717c0{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-61d717c0]{animation:rotateEnter-61d717c0 .7s;position:relative}.rotate-leave-active[data-v-61d717c0]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-61d717c0]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}li.disk-item.error[data-v-61d717c0]{color:red}li.disk-item[data-v-61d717c0]{width:100%;display:flex;flex-wrap:wrap;margin:1rem 0}li.disk-item .disk-item_name[data-v-61d717c0]{flex:0 0 100%;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:10px}li.disk-item .disk-item_value[data-v-61d717c0]{flex:0 0 100%;max-width:50%;padding-left:10px;position:relative}li.disk-item .disk-item_value .value-data[data-v-61d717c0]{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:100%}li.disk-item .disk-item_value button[data-v-61d717c0]{background:none;border:none;width:100%;text-align:right;color:#297ff3;cursor:pointer}li.disk-item .disk-item_value button[data-v-61d717c0]:hover{opacity:.7}li.disk-item .disk-item_value .disk-item-tooltip[data-v-61d717c0]{position:absolute;background:rgba(0,0,0,.7);z-index:10111;color:#fff;padding:.5rem 1rem;left:10px;right:0;top:-40px;text-align:center;font-size:1em;visibility:hidden;opacity:0}li.disk-item .disk-item_value .disk-item-tooltip[data-v-61d717c0]:after{content:"";position:absolute;bottom:-6px;border-color:#4c4c4c rgba(0,0,0,0) rgba(0,0,0,0);left:0;right:0;text-align:center;width:0;margin:0 auto;border-width:6px 8px 0;border-style:solid}li.disk-item .disk-item_value:hover .disk-item-tooltip[data-v-61d717c0]{visibility:visible;transition:.7s;opacity:1}@keyframes bganimation-b4faa090{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-b4faa090{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-b4faa090{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-b4faa090]{animation:rotateEnter-b4faa090 .7s;position:relative}.rotate-leave-active[data-v-b4faa090]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-b4faa090]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.app-container[data-v-b4faa090]{position:relative;display:flex;flex-wrap:wrap;width:100%;height:100%}.app-container .app-container_body[data-v-b4faa090]{width:100%;height:100%}@keyframes bganimation-a9ddce60{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-a9ddce60{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-a9ddce60{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-a9ddce60]{animation:rotateEnter-a9ddce60 .7s;position:relative}.rotate-leave-active[data-v-a9ddce60]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-a9ddce60]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}li.samba-item[data-v-a9ddce60]{width:100%;display:flex;flex-wrap:wrap;margin:1rem 0}li.samba-item .samba-item_name[data-v-a9ddce60]{flex:0 0 100%;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:10px}li.samba-item .samba-item_value[data-v-a9ddce60]{flex:0 0 100%;max-width:50%;padding-left:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}li.samba-item .samba-item_value button[data-v-a9ddce60]{background:none;border:none;width:100%;text-align:right;color:#297ff3;cursor:pointer}li.samba-item .samba-item_value button[data-v-a9ddce60]:hover{opacity:.7}@keyframes bganimation-6ab80352{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-6ab80352{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-6ab80352{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-6ab80352]{animation:rotateEnter-6ab80352 .7s;position:relative}.rotate-leave-active[data-v-6ab80352]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-6ab80352]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}li.webdav-item[data-v-6ab80352]{width:100%;display:flex;flex-wrap:wrap;margin:1rem 0}li.webdav-item .webdav-item_name[data-v-6ab80352]{flex:0 0 100%;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:10px}li.webdav-item .webdav-item_value[data-v-6ab80352]{flex:0 0 100%;max-width:50%;padding-left:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes bganimation-9e9a3f14{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-9e9a3f14{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-9e9a3f14{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-9e9a3f14]{animation:rotateEnter-9e9a3f14 .7s;position:relative}.rotate-leave-active[data-v-9e9a3f14]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-9e9a3f14]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}li.linkease-item[data-v-9e9a3f14]{width:100%;display:flex;flex-wrap:wrap;margin:1rem 0}li.linkease-item .linkease-item_name[data-v-9e9a3f14]{flex:0 0 100%;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:10px}li.linkease-item .linkease-item_value[data-v-9e9a3f14]{flex:0 0 100%;max-width:50%;padding-left:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes bganimation-7e21c965{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-7e21c965{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-7e21c965{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-7e21c965]{animation:rotateEnter-7e21c965 .7s;position:relative}.rotate-leave-active[data-v-7e21c965]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-7e21c965]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}ul.disk-item[data-v-7e21c965]{width:100%;margin-bottom:10px}ul.disk-item .auto[data-v-7e21c965]{flex:auto}ul.disk-item .disk-item_icon[data-v-7e21c965]{width:24px;height:24px;margin-right:.5rem}ul.disk-item .disk-item_icon svg[data-v-7e21c965]{width:100%;height:100%}ul.disk-item li.disk-info[data-v-7e21c965]{display:flex;flex-wrap:nowrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;padding:5px 1rem;height:50px;cursor:pointer;color:#666;font-size:12px;border-left:3px solid #89897f}ul.disk-item li.disk-info[data-v-7e21c965]:hover{background-color:#ecf5ff}ul.disk-item li.disk-info .disk-item_icon svg path[data-v-7e21c965]{fill:#09aaff}ul.disk-item li.disk-info .disk-item_f[data-v-7e21c965]{display:flex;flex-wrap:wrap}ul.disk-item li.disk-info .disk-item_f .disk-item_venderModel[data-v-7e21c965],ul.disk-item li.disk-info .disk-item_f .disk-item_used[data-v-7e21c965]{width:100%}ul.disk-item li.disk-info.on[data-v-7e21c965]{border-left:3px solid #ff9c08}ul.disk-item li.disk-info.on.nopoint[data-v-7e21c965]{background-color:#ecf5ff}ul.disk-item .disk-children[data-v-7e21c965]{width:100%;color:#666}ul.disk-item .disk-children li.disk-children_item[data-v-7e21c965]{width:100%;height:40px;line-height:40px;padding-left:2rem;font-size:12px;cursor:pointer;display:flex;flex-wrap:nowrap;align-items:center;border-left:3px solid #89897f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ul.disk-item .disk-children li.disk-children_item[data-v-7e21c965]:hover{background-color:#ecf5ff}ul.disk-item .disk-children li.disk-children_item span[data-v-7e21c965]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}ul.disk-item .disk-children li.disk-children_item.on.on[data-v-7e21c965]{border-left:3px solid #ff9c08;background-color:#ecf5ff}@keyframes bganimation-07a57e3f{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-07a57e3f{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-07a57e3f{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-07a57e3f]{animation:rotateEnter-07a57e3f .7s;position:relative}.rotate-leave-active[data-v-07a57e3f]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-07a57e3f]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.action.list[data-v-07a57e3f]{width:700px;height:560px;max-height:90%;background-color:#fff;position:relative;z-index:1000;margin:auto;overflow:auto;padding:0 25px;border:1px solid #dfdfdf;border-radius:4px;background:#fff;box-shadow:0 1px 4px #0000004d}.action.list .action-header[data-v-07a57e3f]{width:100%;height:70px;line-height:70px}.action.list .action-header .action-header_title[data-v-07a57e3f]{margin:0;color:#333;font:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-moz-user-select:none;-webkit-user-select:none;user-select:none;font-size:20px}.action.list .action-body[data-v-07a57e3f]{width:100%;height:calc(100% - 176px)}.action.list .action-msg[data-v-07a57e3f]{width:100%;height:36px;line-height:36px;text-align:center}.action.list .action-footer[data-v-07a57e3f]{width:100%;height:70px;line-height:70px;color:#333;display:flex;flex-wrap:wrap;align-items:center}.action.list .action-footer .auto[data-v-07a57e3f]{flex:auto}.action.list .action-footer button[data-v-07a57e3f]{display:inline-block;width:100px!important;height:36px;line-height:36px;margin:0;text-align:center;border:none;cursor:pointer;margin-left:1rem}.action.list .disk-list[data-v-07a57e3f]{width:100%;height:100%;border:1px solid #dfe1e5;overflow:auto}@keyframes bganimation-07a57e3f{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-07a57e3f{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-07a57e3f{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-07a57e3f]{animation:rotateEnter-07a57e3f .7s;position:relative}.rotate-leave-active[data-v-07a57e3f]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-07a57e3f]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.action.format[data-v-07a57e3f]{width:700px;height:560px;max-height:90%;background-color:#fff;position:relative;z-index:1000;margin:auto;overflow:auto;padding:0 25px;border:1px solid #dfdfdf;border-radius:4px;background:#fff;box-shadow:0 1px 4px #0000004d}.action.format .action-header[data-v-07a57e3f]{width:100%;height:70px;line-height:70px}.action.format .action-header .action-header_title[data-v-07a57e3f]{margin:0;color:#333;font:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-moz-user-select:none;-webkit-user-select:none;user-select:none;font-size:20px}.action.format .action-body[data-v-07a57e3f]{width:100%;height:calc(100% - 140px);overflow:auto}.action.format .action-footer[data-v-07a57e3f]{width:100%;height:70px;line-height:70px;color:#333;display:flex;flex-wrap:wrap;align-items:center}.action.format .action-footer .auto[data-v-07a57e3f]{flex:auto}.action.format .action-footer button[data-v-07a57e3f]{display:inline-block;width:100px!important;height:36px;line-height:36px;margin:0;text-align:center;border:none;cursor:pointer;margin-left:1rem}.action.format .disk-list[data-v-07a57e3f]{width:100%;height:100%;border:1px solid #dfe1e5;overflow:auto}.action.format .label-item[data-v-07a57e3f]{width:100%;margin:1rem 0}.action.format .label-item .label-item_key[data-v-07a57e3f]{width:100%;font-size:16px;color:#666}.action.format .label-item .label-item_key span[data-v-07a57e3f]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.action.format .label-item .label-item_key span[data-v-07a57e3f]:before{content:"*";color:#f56c6c;margin-right:4px}.action.format .label-item .label-item_value[data-v-07a57e3f]{width:100%;margin-top:5px}.action.format .label-item .label-item_value select[data-v-07a57e3f],.action.format .label-item .label-item_value input[data-v-07a57e3f]{width:100%;height:36px}.action.format .auto[data-v-07a57e3f]{flex:auto}.action.format p.msg[data-v-07a57e3f]{margin:.5rem 0;color:red}.action.format .disk-info[data-v-07a57e3f]{width:100%;text-align:center}.action.format .disk-info .disk-info_icon[data-v-07a57e3f]{width:100px;height:100px;margin:0 auto}.action.format .disk-info .disk-info_icon svg[data-v-07a57e3f]{width:100%;height:100%}.action.format .disk-info .disk-info_mount-name[data-v-07a57e3f]{margin:1rem 0;font-size:1.5em;color:#333}@keyframes bganimation-07a57e3f{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-07a57e3f{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-07a57e3f{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-07a57e3f]{animation:rotateEnter-07a57e3f .7s;position:relative}.rotate-leave-active[data-v-07a57e3f]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-07a57e3f]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.action.result[data-v-07a57e3f]{width:700px;height:560px;max-height:90%;background-color:#fff;position:relative;z-index:1000;margin:auto;overflow:auto;padding:0 25px;border:1px solid #dfdfdf;border-radius:4px;background:#fff;box-shadow:0 1px 4px #0000004d}.action.result .action-header[data-v-07a57e3f]{width:100%;height:70px;line-height:70px}.action.result .action-header .action-header_title[data-v-07a57e3f]{margin:0;color:#333;font:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-moz-user-select:none;-webkit-user-select:none;user-select:none;font-size:20px}.action.result .action-body[data-v-07a57e3f]{width:100%;height:calc(100% - 140px);overflow:auto}.action.result .action-body .format-result[data-v-07a57e3f]{width:100%;text-align:center;font-size:2em;color:#333;margin:1rem 0}.action.result .action-body .format-info[data-v-07a57e3f]{width:100%;text-align:center;font-size:1.3em}.action.result .action-body .format-info a[data-v-07a57e3f]{color:#f70324}.action.result .action-footer[data-v-07a57e3f]{width:100%;height:70px;line-height:70px;color:#333}.action.result .action-footer button[data-v-07a57e3f]{display:block;width:100%!important;height:36px;line-height:36px;margin:0;text-align:center;border:none;cursor:pointer}.action.result .auto[data-v-07a57e3f]{flex:auto}@keyframes bganimation-32d52680{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-32d52680{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-32d52680{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-32d52680]{animation:rotateEnter-32d52680 .7s;position:relative}.rotate-leave-active[data-v-32d52680]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-32d52680]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.action[data-v-32d52680]{width:700px;max-height:90%;background-color:#fff;position:relative;z-index:1000;margin:auto;overflow:auto;padding:1rem 10%;border-radius:6px}.action .action-body[data-v-32d52680]{width:100%;text-align:center;padding:3rem 0}.action .action-body h2.title[data-v-32d52680]{width:100%;display:block;color:#1e1e1e;font-size:3em;padding:0;margin:0;text-align:center}.action .action-body .info[data-v-32d52680]{color:#666;font-size:1.3em;margin:1rem 0}.action .action-body .btns[data-v-32d52680]{width:100%;margin-top:3rem}.action .action-body .btns button[data-v-32d52680]{display:block;width:100%!important;height:36px;line-height:36px;margin:1rem 0;background-color:#eee;text-align:center;border:none;cursor:pointer}@keyframes bganimation-70ec1878{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-70ec1878{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-70ec1878{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-70ec1878]{animation:rotateEnter-70ec1878 .7s;position:relative}.rotate-leave-active[data-v-70ec1878]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-70ec1878]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.action[data-v-70ec1878]{width:700px;height:560px;max-height:90%;background-color:#fff;position:relative;z-index:1000;margin:auto;overflow:auto;padding:0 25px;border:1px solid #dfdfdf;border-radius:4px;background:#fff;box-shadow:0 1px 4px #0000004d}.action .action-header[data-v-70ec1878]{width:100%;height:70px;line-height:70px}.action .action-header .action-header_title[data-v-70ec1878]{margin:0;color:#333;font:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-moz-user-select:none;-webkit-user-select:none;user-select:none;font-size:20px}.action .action-body[data-v-70ec1878]{width:100%;height:calc(100% - 140px);overflow:auto}.action .action-body .label-item[data-v-70ec1878]{width:100%;margin:1rem 0}.action .action-body .label-item .label-item_key[data-v-70ec1878]{width:100%;font-size:12px;color:#666}.action .action-body .label-item .label-item_key span[data-v-70ec1878]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.action .action-body .label-item .label-item_key span[data-v-70ec1878]:before{content:"*";color:#f56c6c;margin-right:4px}.action .action-body .label-item .label-item_value[data-v-70ec1878]{width:100%;margin-top:5px}.action .action-body .label-item .label-item_value select[data-v-70ec1878],.action .action-body .label-item .label-item_value input[data-v-70ec1878]{width:100%;height:36px}.action .action-footer[data-v-70ec1878]{width:100%;height:70px;line-height:70px;color:#333;display:flex;flex-wrap:wrap;align-items:center}.action .action-footer .auto[data-v-70ec1878]{flex:auto}.action .action-footer button[data-v-70ec1878]{display:inline-block;width:100px!important;height:36px;line-height:36px;margin:0;text-align:center;border:none;cursor:pointer;margin-left:1rem}@keyframes bganimation-5e8b8884{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-5e8b8884{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-5e8b8884{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-5e8b8884]{animation:rotateEnter-5e8b8884 .7s;position:relative}.rotate-leave-active[data-v-5e8b8884]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-5e8b8884]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.action[data-v-5e8b8884]{width:700px;height:560px;max-height:90%;background-color:#fff;position:relative;z-index:1000;margin:auto;overflow:auto;padding:0 25px;border:1px solid #dfdfdf;border-radius:4px;background:#fff;box-shadow:0 1px 4px #0000004d}.action .action-header[data-v-5e8b8884]{width:100%;height:70px;line-height:70px}.action .action-header .action-header_title[data-v-5e8b8884]{margin:0;color:#333;font:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-moz-user-select:none;-webkit-user-select:none;user-select:none;font-size:20px}.action .action-body[data-v-5e8b8884]{width:100%;height:calc(100% - 140px);overflow:auto}.action .action-body .label-item[data-v-5e8b8884]{width:100%;margin:1rem 0}.action .action-body .label-item .label-item_key[data-v-5e8b8884]{width:100%;font-size:12px;color:#666}.action .action-body .label-item .label-item_key span[data-v-5e8b8884]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.action .action-body .label-item .label-item_key span[data-v-5e8b8884]:before{content:"*";color:#f56c6c;margin-right:4px}.action .action-body .label-item .label-item_value[data-v-5e8b8884]{width:100%;margin-top:5px}.action .action-body .label-item .label-item_value select[data-v-5e8b8884],.action .action-body .label-item .label-item_value input[data-v-5e8b8884]{width:100%;height:36px}.action .action-footer[data-v-5e8b8884]{width:100%;height:70px;line-height:70px;color:#333;display:flex;flex-wrap:wrap;align-items:center}.action .action-footer .auto[data-v-5e8b8884]{flex:auto}.action .action-footer button[data-v-5e8b8884]{display:inline-block;width:100px!important;height:36px;line-height:36px;margin:0;text-align:center;border:none;cursor:pointer;margin-left:1rem}@keyframes bganimation-177121f2{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-177121f2{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-177121f2{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-177121f2]{animation:rotateEnter-177121f2 .7s;position:relative}.rotate-leave-active[data-v-177121f2]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-177121f2]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.action[data-v-177121f2]{width:860px;max-height:90%;background-color:#fff;position:relative;z-index:1000;margin:auto;overflow:auto;padding:1rem 10%;border-radius:6px}.action h2.title[data-v-177121f2]{width:100%;display:block;color:#1e1e1e;font-size:3em;padding:0;margin:0;text-align:center}.action h3.desc[data-v-177121f2]{width:100%;display:block;color:#666;font-size:1.2em;padding:0;margin:1rem 0;text-align:center}.action form[data-v-177121f2]{width:100%;display:block;padding:2rem 0}.action form label[data-v-177121f2]{width:100%;display:block;margin:1rem 0}.action form label input[data-v-177121f2],.action form label select[data-v-177121f2]{width:100%;display:block;height:42px}.action .btns[data-v-177121f2]{width:100%;margin-top:3rem}.action .btns button[data-v-177121f2]{display:block;width:100%!important;height:36px;line-height:36px;margin:1rem 0;background-color:#eee;text-align:center;border:none;cursor:pointer}.action li.disk-item[data-v-177121f2]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%;padding:5px 1rem;border-bottom:1px solid #eee;cursor:pointer}.action li.disk-item[data-v-177121f2]:hover{background-color:#eee}.action li.disk-item .disk-item_f[data-v-177121f2]{display:flex;flex-wrap:wrap}.action li.disk-item .disk-item_f .disk-item_venderModel[data-v-177121f2],.action li.disk-item .disk-item_f .disk-item_used[data-v-177121f2]{width:100%}@keyframes bganimation-7f29bdff{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-7f29bdff{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-7f29bdff{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-7f29bdff]{animation:rotateEnter-7f29bdff .7s;position:relative}.rotate-leave-active[data-v-7f29bdff]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-7f29bdff]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.app-container[data-v-7f29bdff]{position:relative;display:flex;flex-wrap:wrap;width:100%;height:100%}.app-container .app-container_title[data-v-7f29bdff]{width:100%;display:flex;flex-wrap:wrap;align-content:center}.app-container .app-container_title button[data-v-7f29bdff]{margin-left:10px;padding:.5rem 1rem}.app-container .app-container_body[data-v-7f29bdff]{width:100%;margin-top:1rem}.app-container ul.app-container_nas-menu[data-v-7f29bdff]{width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.app-container ul.app-container_nas-menu button[data-v-7f29bdff]{flex:0 0 100%;max-width:33.333%;height:30px;background:none;border:none;background-color:#eee;color:#333;cursor:pointer}.app-container ul.app-container_nas-menu button.on[data-v-7f29bdff],.app-container ul.app-container_nas-menu button[data-v-7f29bdff]:hover{color:#297ff3}.nas-container[data-v-3b9f5596]{width:100%;display:flex;flex-wrap:wrap}.nas-container .nas-container_f[data-v-3b9f5596]{flex:0 0 100%;max-width:50%;padding-right:10px}.nas-container .nas-container_r[data-v-3b9f5596]{flex:0 0 100%;max-width:50%;padding-left:10px}@keyframes bganimation-3b9f5596{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-3b9f5596{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-3b9f5596{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-3b9f5596]{animation:rotateEnter-3b9f5596 .7s;position:relative}.rotate-leave-active[data-v-3b9f5596]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-3b9f5596]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}@media screen and (max-width: 992px){.nas-container[data-v-3b9f5596]{width:100%}.nas-container .nas-container_f[data-v-3b9f5596]{flex:0 0 100%;max-width:100%;padding-right:0}.nas-container .nas-container_r[data-v-3b9f5596]{flex:0 0 100%;max-width:100%;padding-left:0;margin-top:1rem}}@keyframes bganimation-0046e71a{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-0046e71a{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-0046e71a{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-0046e71a]{animation:rotateEnter-0046e71a .7s;position:relative}.rotate-leave-active[data-v-0046e71a]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-0046e71a]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.item-label[data-v-0046e71a]{display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;width:100%;margin:1rem 0}.item-label .item-label_key[data-v-0046e71a]{flex:0 0 100%;max-width:100px;text-align:left}.item-label .item-label_key span[data-v-0046e71a]{font-size:14px;color:#333}.item-label .item-label_value[data-v-0046e71a]{flex:1;text-align:left}.item-label .item-label_value span[data-v-0046e71a]{font-size:14px;color:#333}.item-title span[data-v-0046e71a]{font-size:16px;font-weight:550;color:#555}.item-flex[data-v-0046e71a]{width:100%;display:flex;flex-wrap:wrap}.item-flex .auto[data-v-0046e71a]{flex:auto}.item-flex button.app-editor[data-v-0046e71a]{padding:8px 1.3rem}@keyframes bganimation-56e3c5bb{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-56e3c5bb{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-56e3c5bb{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-56e3c5bb]{animation:rotateEnter-56e3c5bb .7s;position:relative}.rotate-leave-active[data-v-56e3c5bb]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-56e3c5bb]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.actioner-dns[data-v-56e3c5bb]{width:860px;background-color:#fff;position:relative;z-index:99999;margin:auto;overflow:auto}.actioner-dns .actioner-dns_header[data-v-56e3c5bb]{width:100%;display:flex;flex-wrap:wrap;align-items:center;padding:1rem;font-size:2em;border-bottom:1px solid #eee}.actioner-dns .actioner-dns_body[data-v-56e3c5bb]{padding:1rem;min-height:50vh}.actioner-dns .actioner-dns_body .label-item[data-v-56e3c5bb]{width:100%;margin:1rem 0}.actioner-dns .actioner-dns_body .label-item .label-item_key[data-v-56e3c5bb]{width:100%;font-size:12px;color:#666}.actioner-dns .actioner-dns_body .label-item .label-item_key span[data-v-56e3c5bb]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.actioner-dns .actioner-dns_body .label-item .label-item_key span[data-v-56e3c5bb]:before{content:"*";color:#f56c6c;margin-right:4px}.actioner-dns .actioner-dns_body .label-item .label-item_value[data-v-56e3c5bb]{width:100%;margin-top:5px}.actioner-dns .actioner-dns_body .label-item .label-item_value select[data-v-56e3c5bb],.actioner-dns .actioner-dns_body .label-item .label-item_value input[data-v-56e3c5bb]{width:100%;height:36px}.actioner-dns .actioner-dns_body .label-message[data-v-56e3c5bb]{width:100%;text-align:left;font-size:14px;color:red;text-align:center}.actioner-dns .config-message[data-v-56e3c5bb]{width:100%;min-height:inherit;height:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;font-size:2em}.actioner-dns .actioner-dns_footer[data-v-56e3c5bb]{width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:1rem;font-size:2em;border-top:1px solid #eee}.actioner-dns .actioner-dns_footer button[data-v-56e3c5bb]{margin-left:1rem;padding:.5rem 1.5rem}@keyframes bganimation-236905e1{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-236905e1{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-236905e1{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-236905e1]{animation:rotateEnter-236905e1 .7s;position:relative}.rotate-leave-active[data-v-236905e1]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-236905e1]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}.nav-container[data-v-236905e1]{width:100%}.nav-container .app-button[data-v-236905e1]{position:relative}.nav-container .app-button i[data-v-236905e1]{display:inline-block;padding:3px;background-color:red;border-radius:50%}.nav-container a[data-v-236905e1]{padding:12px 1rem;margin-right:1rem;margin-bottom:1rem;display:inline-block;min-width:100px;text-align:center}.nav-container a[data-v-236905e1]:hover{box-shadow:0 0 10px 1px #c5c5c5;transition:.3s;transform:scale(1.1)}@keyframes bganimation-6850a035{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-6850a035{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-6850a035{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-6850a035]{animation:rotateEnter-6850a035 .7s;position:relative}.rotate-leave-active[data-v-6850a035]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-6850a035]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}em[data-v-6850a035]{margin:.3125rem 0;width:100%;display:block;height:1px;background-color:#eeeeee2e}[data-v-6850a035] .app-container_title{width:100%;height:34px;display:flex;flex-wrap:wrap;align-items:center;color:#1e1e1e;font-size:1.5em}@keyframes bganimation-25619e61{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-25619e61{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-25619e61{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-25619e61]{animation:rotateEnter-25619e61 .7s;position:relative}.rotate-leave-active[data-v-25619e61]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-25619e61]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}#page[data-v-25619e61]{width:100%;padding:1rem;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:flex-start;max-width:800px}#page h2.title[data-v-25619e61]{width:100%;display:block;color:#666;font-size:3em;padding:0;margin:0;text-align:center}#page h3.desc[data-v-25619e61]{width:100%;display:block;color:#333;font-size:2em;padding:0;margin:0;text-align:center}#page div.info[data-v-25619e61]{width:100%;display:block;margin:1rem 0;font-size:1.6em;text-align:center}#page .network-containers[data-v-25619e61]{width:100%;display:flex;flex-wrap:wrap;align-items:center;align-content:center;justify-content:center;margin:3rem 0}#page .network-containers .network-container_item[data-v-25619e61]{flex:0 0 100%;max-width:33.333%;position:relative;border-radius:4px;padding:10px;cursor:pointer}#page .network-containers .network-container_item a[data-v-25619e61]{position:relative;display:block;width:100%}#page .network-containers .network-container_item a[data-v-25619e61]:hover{transform:scale(1.05);transition:.4s;position:relative}#page .network-containers .network-container_item a:hover .cover .thumbnail[data-v-25619e61]{box-shadow:0 6px 40px #1c67f2}#page .network-containers .network-container_item a .cover[data-v-25619e61]{position:relative;padding-top:130%;z-index:1}#page .network-containers .network-container_item a .cover .thumbnail[data-v-25619e61]{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain;border-radius:6px;overflow:hidden;z-index:1;display:flex;flex-wrap:wrap;align-items:center;align-content:center;justify-content:center;background-color:#2dc8fd}#page .network-containers .network-container_item a .cover .thumbnail i[data-v-25619e61]{display:block;font-size:100px;color:#eee}#page .network-containers .network-container_item a .cover .thumbnail span[data-v-25619e61]{display:block;text-align:center;width:100%;color:#eeee;font-size:2em;line-height:1.5}#page .network-containers .network-container_item:nth-child(9n+1) a .cover .thumbnail[data-v-25619e61]{background-color:#ff9100}#page .network-containers .network-container_item:nth-child(9n+2) a .cover .thumbnail[data-v-25619e61]{background-color:#2dc8fd}#page .network-containers .network-container_item:nth-child(9n+3) a .cover .thumbnail[data-v-25619e61]{background-color:#f66a2c}#page .network-containers .network-container_item:nth-child(9n+4) a .cover .thumbnail[data-v-25619e61]{background-color:#9b58de}#page .network-containers .network-container_item:nth-child(9n+5) a .cover .thumbnail[data-v-25619e61]{background-color:#297ff3}#page .network-containers .network-container_item:nth-child(9n+6) a .cover .thumbnail[data-v-25619e61]{background-color:#27aa8f}#page .network-containers .network-container_item:nth-child(9n+7) a .cover .thumbnail[data-v-25619e61]{background-color:#f15a4a}#page .network-containers .network-container_item:nth-child(9n+8) a .cover .thumbnail[data-v-25619e61]{background-color:#439c07}@keyframes bganimation-3c3d84a2{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-3c3d84a2{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-3c3d84a2{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-3c3d84a2]{animation:rotateEnter-3c3d84a2 .7s;position:relative}.rotate-leave-active[data-v-3c3d84a2]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-3c3d84a2]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}#page[data-v-3c3d84a2]{width:100%;padding:1rem;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:flex-start;max-width:600px}#page h2.title[data-v-3c3d84a2]{width:100%;display:block;color:#1e1e1e;font-size:3em;padding:0;margin:0;text-align:left}#page h3.desc[data-v-3c3d84a2]{width:100%;display:block;color:#666;font-size:1.2em;padding:0;margin:0;text-align:left}#page form[data-v-3c3d84a2]{display:block;width:100%;margin:3rem 0}#page form label[data-v-3c3d84a2]{display:block;width:100%;margin:1rem 0}#page form label .label-key[data-v-3c3d84a2]{display:block;width:100%;font-size:1.3em;margin-bottom:.5rem}#page form label .label-key span[data-v-3c3d84a2]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#page form label .label-key span[data-v-3c3d84a2]:before{content:"*";color:#f56c6c;margin-right:4px}#page form label input[data-v-3c3d84a2]{width:100%;display:block;height:42px}#page .msg[data-v-3c3d84a2]{width:100%;display:block;height:36px;line-height:36px;color:red;font-size:1.3em}#page .btns[data-v-3c3d84a2]{width:100%;margin-top:3rem}#page .btns button[data-v-3c3d84a2]{display:block;width:100%!important;height:36px;line-height:36px;margin:1rem 0;background-color:#eee;text-align:center;border:none;cursor:pointer}#page .btns a[data-v-3c3d84a2]{cursor:pointer;display:block;width:100%!important;height:36px;line-height:36px;margin:1rem 0;background-color:#eee;text-align:center}@keyframes bganimation-73a19314{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-73a19314{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-73a19314{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-73a19314]{animation:rotateEnter-73a19314 .7s;position:relative}.rotate-leave-active[data-v-73a19314]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-73a19314]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}#page[data-v-73a19314]{width:100%;padding:1rem;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:flex-start;max-width:600px}#page h2.title[data-v-73a19314]{width:100%;display:block;color:#1e1e1e;font-size:3em;padding:0;margin:0;text-align:left}#page h3.desc[data-v-73a19314]{width:100%;display:block;color:#666;font-size:1.2em;padding:0;margin:0;text-align:left}#page form[data-v-73a19314]{display:block;width:100%;margin:3rem 0}#page form label[data-v-73a19314]{display:block;width:100%;margin:1rem 0}#page form label .label-key[data-v-73a19314]{display:block;width:100%;font-size:1.3em;margin-bottom:.5rem}#page form label .label-key span[data-v-73a19314]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#page form label .label-key span[data-v-73a19314]:before{content:"*";color:#f56c6c;margin-right:4px}#page form label input[data-v-73a19314],#page form label select[data-v-73a19314]{width:100%;display:block;height:42px}#page .msgs[data-v-73a19314]{width:100%;display:block;height:36px;line-height:36px;color:red;font-size:1.3em}#page p.msg[data-v-73a19314]{width:100%;display:block;color:red;font-size:1em}#page .btns[data-v-73a19314]{width:100%;margin-top:3rem}#page .btns button[data-v-73a19314]{display:block;width:100%!important;height:36px;line-height:36px;margin:1rem 0;background-color:#eee;text-align:center;border:none;cursor:pointer}#page .btns a[data-v-73a19314]{cursor:pointer;display:block;width:100%!important;height:36px;line-height:36px;margin:1rem 0;background-color:#eee;text-align:center}@keyframes bganimation-53f90130{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes rotateEnter-53f90130{0%{transform:rotateY(180deg)}10%{transform:rotateY(198deg)}20%{transform:rotateY(216deg)}30%{transform:rotateY(234deg)}40%{transform:rotateY(252deg)}50%{transform:rotateY(270deg)}60%{transform:rotateY(288deg)}70%{transform:rotateY(306deg)}80%{transform:rotateY(324deg)}90%{transform:rotateY(342deg)}to{transform:rotateY(360deg)}}@keyframes turns-53f90130{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.rotate-enter-active[data-v-53f90130]{animation:rotateEnter-53f90130 .7s;position:relative}.rotate-leave-active[data-v-53f90130]{opacity:0;display:none;position:relative;z-index:-999}.app-container[data-v-53f90130]{width:100%;background-color:#fff;box-shadow:0 0 10px 1px #373f6924;padding:10px 30px;border-radius:6px;position:relative}#page[data-v-53f90130]{width:100%;padding:1rem;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:flex-start;max-width:600px}#page h2.title[data-v-53f90130]{width:100%;display:block;color:#1e1e1e;font-size:3em;padding:0;margin:0;text-align:left}#page h3.desc[data-v-53f90130]{width:100%;display:block;color:#666;font-size:1.2em;padding:0;text-align:left}#page code[data-v-53f90130]{background-color:#eee;display:block;width:100%;font-size:1.3em;padding:1rem;line-height:2;margin:2rem 0}#page div.info[data-v-53f90130]{width:100%;display:block;margin:1rem 0;font-size:1.3em;text-align:left}#page .msgs[data-v-53f90130]{width:100%;display:block;height:36px;line-height:36px;color:red;font-size:1.3em}#page p.msg[data-v-53f90130]{width:100%;display:block;color:red;font-size:1em}#page .btns[data-v-53f90130]{width:100%;display:block;margin-top:3rem}#page .btns button[data-v-53f90130]{display:block;width:100%!important;height:36px;line-height:36px;margin:1rem 0;background-color:#eee;text-align:center;border:none;cursor:pointer}#page .btns a[data-v-53f90130]{cursor:pointer;display:block;width:100%!important;height:36px;line-height:36px;margin:1rem 0;background-color:#eee;text-align:center}#page form[data-v-53f90130]{display:block;width:100%;margin:3rem 0}#page form label[data-v-53f90130]{display:block;width:100%;margin:1rem 0}#page form label .label-key[data-v-53f90130]{display:block;width:100%;font-size:1.3em;margin-bottom:.5rem}#page form label .label-key span[data-v-53f90130]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#page form label .label-key span[data-v-53f90130]:before{content:"*";color:#f56c6c;margin-right:4px}#page form label input[data-v-53f90130],#page form label select[data-v-53f90130]{width:100%;display:block;height:42px} diff --git a/applications/luci-app-quickstart/root/www/luci-static/quickstart/vendor.js b/applications/luci-app-quickstart/root/www/luci-static/quickstart/vendor.js deleted file mode 100755 index 3087581..0000000 --- a/applications/luci-app-quickstart/root/www/luci-static/quickstart/vendor.js +++ /dev/null @@ -1,49 +0,0 @@ -function Ou(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i!!r[i.toLowerCase()]:i=>!!r[i]}const sw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lw=Ou(sw);function od(e){return!!e||e===""}function ku(e){if(at(e)){const t={};for(let r=0;r{if(r){const n=r.split(fw);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Bu(e){let t="";if(Qt(e))t=e;else if(at(e))for(let r=0;rJo(r,t))}const pF=e=>e==null?"":at(e)||Vt(e)&&(e.toString===fd||!vt(e.toString))?JSON.stringify(e,sd,2):String(e),sd=(e,t)=>t&&t.__v_isRef?sd(e,t.value):_i(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:es(t)?{[`Set(${t.size})`]:[...t.values()]}:Vt(t)&&!at(t)&&!cd(t)?String(t):t,It={},mi=[],qe=()=>{},dw=()=>!1,pw=/^on[^a-z]/,ts=e=>pw.test(e),Fu=e=>e.startsWith("onUpdate:"),jt=Object.assign,Nu=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},gw=Object.prototype.hasOwnProperty,_t=(e,t)=>gw.call(e,t),at=Array.isArray,_i=e=>rs(e)==="[object Map]",es=e=>rs(e)==="[object Set]",ld=e=>e instanceof Date,vt=e=>typeof e=="function",Qt=e=>typeof e=="string",zu=e=>typeof e=="symbol",Vt=e=>e!==null&&typeof e=="object",ud=e=>Vt(e)&&vt(e.then)&&vt(e.catch),fd=Object.prototype.toString,rs=e=>fd.call(e),yw=e=>rs(e).slice(8,-1),cd=e=>rs(e)==="[object Object]",Hu=e=>Qt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ns=Ou(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),is=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},mw=/-(\w)/g,ar=is(e=>e.replace(mw,(t,r)=>r?r.toUpperCase():"")),_w=/\B([A-Z])/g,Si=is(e=>e.replace(_w,"-$1").toLowerCase()),as=is(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vu=is(e=>e?`on${as(e)}`:""),ya=(e,t)=>!Object.is(e,t),os=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},ma=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hd;const Sw=()=>hd||(hd=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let mn;const ls=[];class vd{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&mn&&(this.parent=mn,this.index=(mn.scopes||(mn.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(ls.push(this),mn=this)}off(){this.active&&(ls.pop(),mn=ls[ls.length-1])}stop(t){if(this.active){if(this.effects.forEach(r=>r.stop()),this.cleanups.forEach(r=>r()),this.scopes&&this.scopes.forEach(r=>r.stop(!0)),this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function dd(e){return new vd(e)}function bw(e,t){t=t||mn,t&&t.active&&t.effects.push(e)}const Gu=e=>{const t=new Set(e);return t.w=0,t.n=0,t},pd=e=>(e.w&Vr)>0,gd=e=>(e.n&Vr)>0,ww=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n0?Sa[t-1]:void 0}}stop(){this.active&&(yd(this),this.onStop&&this.onStop(),this.active=!1)}}function yd(e){const{deps:t}=e;if(t.length){for(let r=0;r{(u==="length"||u>=n)&&s.push(l)});else switch(r!==void 0&&s.push(o.get(r)),t){case"add":at(e)?Hu(r)&&s.push(o.get("length")):(s.push(o.get(Sn)),_i(e)&&s.push(o.get(Wu)));break;case"delete":at(e)||(s.push(o.get(Sn)),_i(e)&&s.push(o.get(Wu)));break;case"set":_i(e)&&s.push(o.get(Sn));break}if(s.length===1)s[0]&&qu(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);qu(Gu(l))}}function qu(e,t){for(const r of at(e)?e:[...e])(r!==_n||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const Cw=Ou("__proto__,__v_isRef,__isVue"),Sd=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(zu)),Mw=Zu(),Dw=Zu(!1,!0),Aw=Zu(!0),bd=Pw();function Pw(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=St(this);for(let a=0,o=this.length;a{e[t]=function(...r){wi();const n=St(this)[t].apply(this,r);return bn(),n}}),e}function Zu(e=!1,t=!1){return function(n,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&a===(e?t?Ww:Id:t?Pd:Ad).get(n))return n;const o=at(n);if(!e&&o&&_t(bd,i))return Reflect.get(bd,i,a);const s=Reflect.get(n,i,a);return(zu(i)?Sd.has(i):Cw(i))||(e||Se(n,"get",i),t)?s:Wt(s)?!o||!Hu(i)?s.value:s:Vt(s)?e?Ld(s):xi(s):s}}const Iw=wd(),Lw=wd(!0);function wd(e=!1){return function(r,n,i,a){let o=r[n];if(!e&&!Ju(i)&&(i=St(i),o=St(o),!at(r)&&Wt(o)&&!Wt(i)))return o.value=i,!0;const s=at(r)&&Hu(n)?Number(n)e,us=e=>Reflect.getPrototypeOf(e);function fs(e,t,r=!1,n=!1){e=e.__v_raw;const i=St(e),a=St(t);t!==a&&!r&&Se(i,"get",t),!r&&Se(i,"get",a);const{has:o}=us(i),s=n?Ku:r?tf:ba;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function cs(e,t=!1){const r=this.__v_raw,n=St(r),i=St(e);return e!==i&&!t&&Se(n,"has",e),!t&&Se(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function hs(e,t=!1){return e=e.__v_raw,!t&&Se(St(e),"iterate",Sn),Reflect.get(e,"size",e)}function Td(e){e=St(e);const t=St(this);return us(t).has.call(t,e)||(t.add(e),wr(t,"add",e,e)),this}function Cd(e,t){t=St(t);const r=St(this),{has:n,get:i}=us(r);let a=n.call(r,e);a||(e=St(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?ya(t,o)&&wr(r,"set",e,t):wr(r,"add",e,t),this}function Md(e){const t=St(this),{has:r,get:n}=us(t);let i=r.call(t,e);i||(e=St(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&wr(t,"delete",e,void 0),a}function Dd(){const e=St(this),t=e.size!==0,r=e.clear();return t&&wr(e,"clear",void 0,void 0),r}function vs(e,t){return function(n,i){const a=this,o=a.__v_raw,s=St(o),l=t?Ku:e?tf:ba;return!e&&Se(s,"iterate",Sn),o.forEach((u,f)=>n.call(i,l(u),l(f),a))}}function ds(e,t,r){return function(...n){const i=this.__v_raw,a=St(i),o=_i(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),f=r?Ku:t?tf:ba;return!t&&Se(a,"iterate",l?Wu:Sn),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function Gr(e){return function(...t){return e==="delete"?!1:this}}function Fw(){const e={get(a){return fs(this,a)},get size(){return hs(this)},has:cs,add:Td,set:Cd,delete:Md,clear:Dd,forEach:vs(!1,!1)},t={get(a){return fs(this,a,!1,!0)},get size(){return hs(this)},has:cs,add:Td,set:Cd,delete:Md,clear:Dd,forEach:vs(!1,!0)},r={get(a){return fs(this,a,!0)},get size(){return hs(this,!0)},has(a){return cs.call(this,a,!0)},add:Gr("add"),set:Gr("set"),delete:Gr("delete"),clear:Gr("clear"),forEach:vs(!0,!1)},n={get(a){return fs(this,a,!0,!0)},get size(){return hs(this,!0)},has(a){return cs.call(this,a,!0)},add:Gr("add"),set:Gr("set"),delete:Gr("delete"),clear:Gr("clear"),forEach:vs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=ds(a,!1,!1),r[a]=ds(a,!0,!1),t[a]=ds(a,!1,!0),n[a]=ds(a,!0,!0)}),[e,r,t,n]}const[Nw,zw,Hw,Vw]=Fw();function ju(e,t){const r=t?e?Vw:Hw:e?zw:Nw;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(_t(r,i)&&i in n?r:n,i,a)}const Gw={get:ju(!1,!1)},$w={get:ju(!1,!0)},Uw={get:ju(!0,!1)},Ad=new WeakMap,Pd=new WeakMap,Id=new WeakMap,Ww=new WeakMap;function Yw(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xw(e){return e.__v_skip||!Object.isExtensible(e)?0:Yw(yw(e))}function xi(e){return e&&e.__v_isReadonly?e:Qu(e,!1,xd,Gw,Ad)}function qw(e){return Qu(e,!1,Bw,$w,Pd)}function Ld(e){return Qu(e,!0,kw,Uw,Id)}function Qu(e,t,r,n,i){if(!Vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=Xw(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function $r(e){return Ju(e)?$r(e.__v_raw):!!(e&&e.__v_isReactive)}function Ju(e){return!!(e&&e.__v_isReadonly)}function Ed(e){return $r(e)||Ju(e)}function St(e){const t=e&&e.__v_raw;return t?St(t):e}function Ti(e){return ss(e,"__v_skip",!0),e}const ba=e=>Vt(e)?xi(e):e,tf=e=>Vt(e)?Ld(e):e;function Rd(e){md()&&(e=St(e),e.dep||(e.dep=Gu()),_d(e.dep))}function Od(e,t){e=St(e),e.dep&&qu(e.dep)}function Wt(e){return Boolean(e&&e.__v_isRef===!0)}function ef(e){return kd(e,!1)}function Zw(e){return kd(e,!0)}function kd(e,t){return Wt(e)?e:new Kw(e,t)}class Kw{constructor(t,r){this._shallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:St(t),this._value=r?t:ba(t)}get value(){return Rd(this),this._value}set value(t){t=this._shallow?t:St(t),ya(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:ba(t),Od(this))}}function wa(e){return Wt(e)?e.value:e}const jw={get:(e,t,r)=>wa(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Wt(i)&&!Wt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function Bd(e){return $r(e)?e:new Proxy(e,jw)}function Qw(e){const t=at(e)?new Array(e.length):{};for(const r in e)t[r]=tx(e,r);return t}class Jw{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function tx(e,t,r){const n=e[t];return Wt(n)?n:new Jw(e,t,r)}class ex{constructor(t,r,n){this._setter=r,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Yu(t,()=>{this._dirty||(this._dirty=!0,Od(this))}),this.__v_isReadonly=n}get value(){const t=St(this);return Rd(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Ze(e,t){let r,n;const i=vt(e);return i?(r=e,n=qe):(r=e.get,n=e.set),new ex(r,n,i||!n)}Promise.resolve();function rx(e,t,...r){const n=e.vnode.props||It;let i=r;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in n){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:h}=n[f]||It;h?i=r.map(v=>v.trim()):c&&(i=r.map(ma))}let s,l=n[s=Vu(t)]||n[s=Vu(ar(t))];!l&&a&&(l=n[s=Vu(Si(t))]),l&&Ee(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ee(u,e,6,i)}}function Fd(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!vt(e)){const l=u=>{const f=Fd(u,t,!0);f&&(s=!0,jt(o,f))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(n.set(e,null),null):(at(a)?a.forEach(l=>o[l]=null):jt(o,a),n.set(e,o),o)}function rf(e,t){return!e||!ts(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,Si(t))||_t(e,t))}let be=null,ps=null;function gs(e){const t=be;return be=e,ps=e&&e.type.__scopeId||null,t}function gF(e){ps=e}function yF(){ps=null}function nx(e,t=be,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&cp(-1);const a=gs(t),o=e(...i);return gs(a),n._d&&cp(1),o};return n._n=!0,n._c=!0,n._d=!0,n}function nf(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:f,renderCache:c,data:h,setupState:v,ctx:d,inheritAttrs:y}=e;let p,g;const m=gs(e);try{if(r.shapeFlag&4){const S=i||n;p=or(f.call(S,S,c,a,v,h,d)),g=l}else{const S=t;p=or(S.length>1?S(a,{attrs:l,slots:s,emit:u}):S(a,null)),g=t.props?l:ix(l)}}catch(S){xa.length=0,Ds(S,e,1),p=ce(Ke)}let _=p;if(g&&y!==!1){const S=Object.keys(g),{shapeFlag:w}=_;S.length&&w&(1|6)&&(o&&S.some(Fu)&&(g=ax(g,o)),_=Ci(_,g))}return r.dirs&&(_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),p=_,gs(m),p}const ix=e=>{let t;for(const r in e)(r==="class"||r==="style"||ts(r))&&((t||(t={}))[r]=e[r]);return t},ax=(e,t)=>{const r={};for(const n in e)(!Fu(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function ox(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Nd(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;ce.__isSuspense;function ux(e,t){t&&t.pendingBranch?at(e)?t.effects.push(...e):t.effects.push(e):oT(e)}function ys(e,t){if(qt){let r=qt.provides;const n=qt.parent&&qt.parent.provides;n===r&&(r=qt.provides=Object.create(n)),r[e]=t}}function xr(e,t,r=!1){const n=qt||be;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&vt(t)?t.call(n.proxy):t}}function fx(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Wd(()=>{e.isMounted=!0}),Yd(()=>{e.isUnmounting=!0}),e}const Ie=[Function,Array],cx={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ie,onEnter:Ie,onAfterEnter:Ie,onEnterCancelled:Ie,onBeforeLeave:Ie,onLeave:Ie,onAfterLeave:Ie,onLeaveCancelled:Ie,onBeforeAppear:Ie,onAppear:Ie,onAfterAppear:Ie,onAppearCancelled:Ie},setup(e,{slots:t}){const r=_f(),n=fx();let i;return()=>{const a=t.default&&Gd(t.default(),!0);if(!a||!a.length)return;const o=St(e),{mode:s}=o,l=a[0];if(n.isLeaving)return of(l);const u=Vd(l);if(!u)return of(l);const f=af(u,o,n,r);sf(u,f);const c=r.subTree,h=c&&Vd(c);let v=!1;const{getTransitionKey:d}=u.type;if(d){const y=d();i===void 0?i=y:y!==i&&(i=y,v=!0)}if(h&&h.type!==Ke&&(!Mn(u,h)||v)){const y=af(h,o,n,r);if(sf(h,y),s==="out-in")return n.isLeaving=!0,y.afterLeave=()=>{n.isLeaving=!1,r.update()},of(l);s==="in-out"&&u.type!==Ke&&(y.delayLeave=(p,g,m)=>{const _=Hd(n,h);_[String(h.key)]=h,p._leaveCb=()=>{g(),p._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=m})}return l}}},zd=cx;function Hd(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function af(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:c,onLeave:h,onAfterLeave:v,onLeaveCancelled:d,onBeforeAppear:y,onAppear:p,onAfterAppear:g,onAppearCancelled:m}=t,_=String(e.key),S=Hd(r,e),w=(x,C)=>{x&&Ee(x,n,9,C)},b={mode:a,persisted:o,beforeEnter(x){let C=s;if(!r.isMounted)if(i)C=y||s;else return;x._leaveCb&&x._leaveCb(!0);const M=S[_];M&&Mn(e,M)&&M.el._leaveCb&&M.el._leaveCb(),w(C,[x])},enter(x){let C=l,M=u,L=f;if(!r.isMounted)if(i)C=p||l,M=g||u,L=m||f;else return;let I=!1;const P=x._enterCb=E=>{I||(I=!0,E?w(L,[x]):w(M,[x]),b.delayedLeave&&b.delayedLeave(),x._enterCb=void 0)};C?(C(x,P),C.length<=1&&P()):P()},leave(x,C){const M=String(e.key);if(x._enterCb&&x._enterCb(!0),r.isUnmounting)return C();w(c,[x]);let L=!1;const I=x._leaveCb=P=>{L||(L=!0,C(),P?w(d,[x]):w(v,[x]),x._leaveCb=void 0,S[M]===e&&delete S[M])};S[M]=e,h?(h(x,I),h.length<=1&&I()):I()},clone(x){return af(x,t,r,n)}};return b}function of(e){if(ms(e))return e=Ci(e),e.children=null,e}function Vd(e){return ms(e)?e.children?e.children[0]:void 0:e}function sf(e,t){e.shapeFlag&6&&e.component?sf(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Gd(e,t=!1){let r=[],n=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,ms=e=>e.type.__isKeepAlive;function hx(e,t){Ud(e,"a",t)}function vx(e,t){Ud(e,"da",t)}function Ud(e,t,r=qt){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(_s(t,n,r),r){let i=r.parent;for(;i&&i.parent;)ms(i.parent.vnode)&&dx(n,t,r,i),i=i.parent}}function dx(e,t,r,n){const i=_s(t,e,n,!0);uf(()=>{Nu(n[t],i)},r)}function _s(e,t,r=qt,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;wi(),Mi(r);const s=Ee(t,r,e,o);return Dn(),bn(),s});return n?i.unshift(a):i.push(a),a}}const Tr=e=>(t,r=qt)=>(!Ms||e==="sp")&&_s(e,t,r),px=Tr("bm"),Wd=Tr("m"),gx=Tr("bu"),yx=Tr("u"),Yd=Tr("bum"),uf=Tr("um"),mx=Tr("sp"),_x=Tr("rtg"),Sx=Tr("rtc");function bx(e,t=qt){_s("ec",e,t)}let ff=!0;function xx(e){const t=Zd(e),r=e.proxy,n=e.ctx;ff=!1,t.beforeCreate&&Xd(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:v,updated:d,activated:y,deactivated:p,beforeDestroy:g,beforeUnmount:m,destroyed:_,unmounted:S,render:w,renderTracked:b,renderTriggered:x,errorCaptured:C,serverPrefetch:M,expose:L,inheritAttrs:I,components:P,directives:E,filters:B}=t;if(u&&Tx(u,n,null,e.appContext.config.unwrapInjectedRef),o)for(const q in o){const U=o[q];vt(U)&&(n[q]=U.bind(r))}if(i){const q=i.call(r,r);Vt(q)&&(e.data=xi(q))}if(ff=!0,a)for(const q in a){const U=a[q],Q=vt(U)?U.bind(r,r):vt(U.get)?U.get.bind(r,r):qe,V=!vt(U)&&vt(U.set)?U.set.bind(r):qe,it=Ze({get:Q,set:V});Object.defineProperty(n,q,{enumerable:!0,configurable:!0,get:()=>it.value,set:Ot=>it.value=Ot})}if(s)for(const q in s)qd(s[q],n,r,q);if(l){const q=vt(l)?l.call(r):l;Reflect.ownKeys(q).forEach(U=>{ys(U,q[U])})}f&&Xd(f,e,"c");function Y(q,U){at(U)?U.forEach(Q=>q(Q.bind(r))):U&&q(U.bind(r))}if(Y(px,c),Y(Wd,h),Y(gx,v),Y(yx,d),Y(hx,y),Y(vx,p),Y(bx,C),Y(Sx,b),Y(_x,x),Y(Yd,m),Y(uf,S),Y(mx,M),at(L))if(L.length){const q=e.exposed||(e.exposed={});L.forEach(U=>{Object.defineProperty(q,U,{get:()=>r[U],set:Q=>r[U]=Q})})}else e.exposed||(e.exposed={});w&&e.render===qe&&(e.render=w),I!=null&&(e.inheritAttrs=I),P&&(e.components=P),E&&(e.directives=E)}function Tx(e,t,r=qe,n=!1){at(e)&&(e=cf(e));for(const i in e){const a=e[i];let o;Vt(a)?"default"in a?o=xr(a.from||i,a.default,!0):o=xr(a.from||i):o=xr(a),Wt(o)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function Xd(e,t,r){Ee(at(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function qd(e,t,r,n){const i=n.includes(".")?Pp(r,n):()=>r[n];if(Qt(e)){const a=t[e];vt(a)&&Aa(i,a)}else if(vt(e))Aa(i,e.bind(r));else if(Vt(e))if(at(e))e.forEach(a=>qd(a,t,r,n));else{const a=vt(e.handler)?e.handler.bind(r):t[e.handler];vt(a)&&Aa(i,a,e)}}function Zd(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>Ss(l,u,o,!0)),Ss(l,t,o)),a.set(t,l),l}function Ss(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Ss(e,a,r,!0),i&&i.forEach(o=>Ss(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=Cx[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const Cx={data:Kd,props:wn,emits:wn,methods:wn,computed:wn,beforeCreate:ne,created:ne,beforeMount:ne,mounted:ne,beforeUpdate:ne,updated:ne,beforeDestroy:ne,beforeUnmount:ne,destroyed:ne,unmounted:ne,activated:ne,deactivated:ne,errorCaptured:ne,serverPrefetch:ne,components:wn,directives:wn,watch:Dx,provide:Kd,inject:Mx};function Kd(e,t){return t?e?function(){return jt(vt(e)?e.call(this,this):e,vt(t)?t.call(this,this):t)}:t:e}function Mx(e,t){return wn(cf(e),cf(t))}function cf(e){if(at(e)){const t={};for(let r=0;r0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let c=0;c{l=!0;const[h,v]=Qd(c,t,!0);jt(o,h),v&&s.push(...v)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!l)return n.set(e,mi),mi;if(at(a))for(let f=0;f-1,v[1]=y<0||d-1||_t(v,"default"))&&s.push(c)}}}const u=[o,s];return n.set(e,u),u}function Jd(e){return e[0]!=="$"}function tp(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function ep(e,t){return tp(e)===tp(t)}function rp(e,t){return at(t)?t.findIndex(r=>ep(r,e)):vt(t)&&ep(t,e)?0:-1}const np=e=>e[0]==="_"||e==="$stable",vf=e=>at(e)?e.map(or):[or(e)],Ix=(e,t,r)=>{const n=nx((...i)=>vf(t(...i)),r);return n._c=!1,n},ip=(e,t,r)=>{const n=e._ctx;for(const i in e){if(np(i))continue;const a=e[i];if(vt(a))t[i]=Ix(i,a,n);else if(a!=null){const o=vf(a);t[i]=()=>o}}},ap=(e,t)=>{const r=vf(t);e.slots.default=()=>r},Lx=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=St(t),ss(t,"_",r)):ip(t,e.slots={})}else e.slots={},t&&ap(e,t);ss(e.slots,xs,1)},Ex=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=It;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(jt(i,t),!r&&s===1&&delete i._):(a=!t.$stable,ip(t,i)),o=t}else t&&(ap(e,t),o={default:1});if(a)for(const s in i)!np(s)&&!(s in o)&&delete i[s]};function mF(e,t){const r=be;if(r===null)return e;const n=r.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;adf(h,t&&(at(t)?t[v]:t),r,n,i));return}if(lf(n)&&!i)return;const a=n.shapeFlag&4?Sf(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,f=s.refs===It?s.refs={}:s.refs,c=s.setupState;if(u!=null&&u!==l&&(Qt(u)?(f[u]=null,_t(c,u)&&(c[u]=null)):Wt(u)&&(u.value=null)),vt(l))Wr(l,s,12,[o,f]);else{const h=Qt(l),v=Wt(l);if(h||v){const d=()=>{if(e.f){const y=h?f[l]:l.value;i?at(y)&&Nu(y,a):at(y)?y.includes(a)||y.push(a):h?f[l]=[a]:(l.value=[a],e.k&&(f[e.k]=l.value))}else h?(f[l]=o,_t(c,l)&&(c[l]=o)):Wt(l)&&(l.value=o,e.k&&(f[e.k]=o))};o?(d.id=-1,fe(d,r)):d()}}}const fe=ux;function kx(e){return Bx(e)}function Bx(e,t){const r=Sw();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:v=qe,cloneNode:d,insertStaticContent:y}=e,p=(T,A,R,F=null,N=null,$=null,X=!1,H=null,W=!!A.dynamicChildren)=>{if(T===A)return;T&&!Mn(T,A)&&(F=tt(T),pt(T,N,$,!0),T=null),A.patchFlag===-2&&(W=!1,A.dynamicChildren=null);const{type:z,ref:rt,shapeFlag:J}=A;switch(z){case pf:g(T,A,R,F);break;case Ke:m(T,A,R,F);break;case gf:T==null&&_(A,R,F,X);break;case Le:E(T,A,R,F,N,$,X,H,W);break;default:J&1?b(T,A,R,F,N,$,X,H,W):J&6?B(T,A,R,F,N,$,X,H,W):(J&64||J&128)&&z.process(T,A,R,F,N,$,X,H,W,gt)}rt!=null&&N&&df(rt,T&&T.ref,$,A||T,!A)},g=(T,A,R,F)=>{if(T==null)n(A.el=s(A.children),R,F);else{const N=A.el=T.el;A.children!==T.children&&u(N,A.children)}},m=(T,A,R,F)=>{T==null?n(A.el=l(A.children||""),R,F):A.el=T.el},_=(T,A,R,F)=>{[T.el,T.anchor]=y(T.children,A,R,F)},S=({el:T,anchor:A},R,F)=>{let N;for(;T&&T!==A;)N=h(T),n(T,R,F),T=N;n(A,R,F)},w=({el:T,anchor:A})=>{let R;for(;T&&T!==A;)R=h(T),i(T),T=R;i(A)},b=(T,A,R,F,N,$,X,H,W)=>{X=X||A.type==="svg",T==null?x(A,R,F,N,$,X,H,W):L(T,A,N,$,X,H,W)},x=(T,A,R,F,N,$,X,H)=>{let W,z;const{type:rt,props:J,shapeFlag:nt,transition:lt,patchFlag:mt,dirs:Ft}=T;if(T.el&&d!==void 0&&mt===-1)W=T.el=d(T.el);else{if(W=T.el=o(T.type,$,J&&J.is,J),nt&8?f(W,T.children):nt&16&&M(T.children,W,null,F,N,$&&rt!=="foreignObject",X,H),Ft&&xn(T,null,F,"created"),J){for(const Bt in J)Bt!=="value"&&!ns(Bt)&&a(W,Bt,null,J[Bt],$,T.children,F,N,G);"value"in J&&a(W,"value",null,J.value),(z=J.onVnodeBeforeMount)&&sr(z,F,T)}C(W,T,T.scopeId,X,F)}Ft&&xn(T,null,F,"beforeMount");const Pt=(!N||N&&!N.pendingBranch)&<&&!lt.persisted;Pt&<.beforeEnter(W),n(W,A,R),((z=J&&J.onVnodeMounted)||Pt||Ft)&&fe(()=>{z&&sr(z,F,T),Pt&<.enter(W),Ft&&xn(T,null,F,"mounted")},N)},C=(T,A,R,F,N)=>{if(R&&v(T,R),F)for(let $=0;${for(let z=W;z{const H=A.el=T.el;let{patchFlag:W,dynamicChildren:z,dirs:rt}=A;W|=T.patchFlag&16;const J=T.props||It,nt=A.props||It;let lt;R&&Tn(R,!1),(lt=nt.onVnodeBeforeUpdate)&&sr(lt,R,A,T),rt&&xn(A,T,R,"beforeUpdate"),R&&Tn(R,!0);const mt=N&&A.type!=="foreignObject";if(z?I(T.dynamicChildren,z,H,R,F,mt,$):X||Q(T,A,H,null,R,F,mt,$,!1),W>0){if(W&16)P(H,A,J,nt,R,F,N);else if(W&2&&J.class!==nt.class&&a(H,"class",null,nt.class,N),W&4&&a(H,"style",J.style,nt.style,N),W&8){const Ft=A.dynamicProps;for(let Pt=0;Pt{lt&&sr(lt,R,A,T),rt&&xn(A,T,R,"updated")},F)},I=(T,A,R,F,N,$,X)=>{for(let H=0;H{if(R!==F){for(const H in F){if(ns(H))continue;const W=F[H],z=R[H];W!==z&&H!=="value"&&a(T,H,z,W,X,A.children,N,$,G)}if(R!==It)for(const H in R)!ns(H)&&!(H in F)&&a(T,H,R[H],null,X,A.children,N,$,G);"value"in F&&a(T,"value",R.value,F.value)}},E=(T,A,R,F,N,$,X,H,W)=>{const z=A.el=T?T.el:s(""),rt=A.anchor=T?T.anchor:s("");let{patchFlag:J,dynamicChildren:nt,slotScopeIds:lt}=A;lt&&(H=H?H.concat(lt):lt),T==null?(n(z,R,F),n(rt,R,F),M(A.children,R,rt,N,$,X,H,W)):J>0&&J&64&&nt&&T.dynamicChildren?(I(T.dynamicChildren,nt,R,N,$,X,H),(A.key!=null||N&&A===N.subTree)&&sp(T,A,!0)):Q(T,A,R,rt,N,$,X,H,W)},B=(T,A,R,F,N,$,X,H,W)=>{A.slotScopeIds=H,T==null?A.shapeFlag&512?N.ctx.activate(A,R,F,X,W):k(A,R,F,N,$,X,W):Y(T,A,W)},k=(T,A,R,F,N,$,X)=>{const H=T.component=Zx(T,F,N);if(ms(T)&&(H.ctx.renderer=gt),Kx(H),H.asyncDep){if(N&&N.registerDep(H,q),!T.el){const W=H.subTree=ce(Ke);m(null,W,A,R)}return}q(H,T,A,R,N,$,X)},Y=(T,A,R)=>{const F=A.component=T.component;if(ox(T,A,R))if(F.asyncDep&&!F.asyncResolved){U(F,A,R);return}else F.next=A,iT(F.update),F.update();else A.component=T.component,A.el=T.el,F.vnode=A},q=(T,A,R,F,N,$,X)=>{const H=()=>{if(T.isMounted){let{next:rt,bu:J,u:nt,parent:lt,vnode:mt}=T,Ft=rt,Pt;Tn(T,!1),rt?(rt.el=mt.el,U(T,rt,X)):rt=mt,J&&os(J),(Pt=rt.props&&rt.props.onVnodeBeforeUpdate)&&sr(Pt,lt,rt,mt),Tn(T,!0);const Bt=nf(T),Xe=T.subTree;T.subTree=Bt,p(Xe,Bt,c(Xe.el),tt(Xe),T,N,$),rt.el=Bt.el,Ft===null&&sx(T,Bt.el),nt&&fe(nt,N),(Pt=rt.props&&rt.props.onVnodeUpdated)&&fe(()=>sr(Pt,lt,rt,mt),N)}else{let rt;const{el:J,props:nt}=A,{bm:lt,m:mt,parent:Ft}=T,Pt=lf(A);if(Tn(T,!1),lt&&os(lt),!Pt&&(rt=nt&&nt.onVnodeBeforeMount)&&sr(rt,Ft,A),Tn(T,!0),J&&ot){const Bt=()=>{T.subTree=nf(T),ot(J,T.subTree,T,N,null)};Pt?A.type.__asyncLoader().then(()=>!T.isUnmounted&&Bt()):Bt()}else{const Bt=T.subTree=nf(T);p(null,Bt,R,F,T,N,$),A.el=Bt.el}if(mt&&fe(mt,N),!Pt&&(rt=nt&&nt.onVnodeMounted)){const Bt=A;fe(()=>sr(rt,Ft,Bt),N)}A.shapeFlag&256&&T.a&&fe(T.a,N),T.isMounted=!0,A=R=F=null}},W=T.effect=new Yu(H,()=>wp(T.update),T.scope),z=T.update=W.run.bind(W);z.id=T.uid,Tn(T,!0),z()},U=(T,A,R)=>{A.component=T;const F=T.vnode.props;T.vnode=A,T.next=null,Px(T,A.props,F,R),Ex(T,A.children,R),wi(),Cf(void 0,T.update),bn()},Q=(T,A,R,F,N,$,X,H,W=!1)=>{const z=T&&T.children,rt=T?T.shapeFlag:0,J=A.children,{patchFlag:nt,shapeFlag:lt}=A;if(nt>0){if(nt&128){it(z,J,R,F,N,$,X,H,W);return}else if(nt&256){V(z,J,R,F,N,$,X,H,W);return}}lt&8?(rt&16&&G(z,N,$),J!==z&&f(R,J)):rt&16?lt&16?it(z,J,R,F,N,$,X,H,W):G(z,N,$,!0):(rt&8&&f(R,""),lt&16&&M(J,R,F,N,$,X,H,W))},V=(T,A,R,F,N,$,X,H,W)=>{T=T||mi,A=A||mi;const z=T.length,rt=A.length,J=Math.min(z,rt);let nt;for(nt=0;ntrt?G(T,N,$,!0,!1,J):M(A,R,F,N,$,X,H,W,J)},it=(T,A,R,F,N,$,X,H,W)=>{let z=0;const rt=A.length;let J=T.length-1,nt=rt-1;for(;z<=J&&z<=nt;){const lt=T[z],mt=A[z]=W?Ur(A[z]):or(A[z]);if(Mn(lt,mt))p(lt,mt,R,null,N,$,X,H,W);else break;z++}for(;z<=J&&z<=nt;){const lt=T[J],mt=A[nt]=W?Ur(A[nt]):or(A[nt]);if(Mn(lt,mt))p(lt,mt,R,null,N,$,X,H,W);else break;J--,nt--}if(z>J){if(z<=nt){const lt=nt+1,mt=ltnt)for(;z<=J;)pt(T[z],N,$,!0),z++;else{const lt=z,mt=z,Ft=new Map;for(z=mt;z<=nt;z++){const _e=A[z]=W?Ur(A[z]):or(A[z]);_e.key!=null&&Ft.set(_e.key,z)}let Pt,Bt=0;const Xe=nt-mt+1;let yi=!1,nd=0;const ga=new Array(Xe);for(z=0;z=Xe){pt(_e,N,$,!0);continue}let ir;if(_e.key!=null)ir=Ft.get(_e.key);else for(Pt=mt;Pt<=nt;Pt++)if(ga[Pt-mt]===0&&Mn(_e,A[Pt])){ir=Pt;break}ir===void 0?pt(_e,N,$,!0):(ga[ir-mt]=z+1,ir>=nd?nd=ir:yi=!0,p(_e,A[ir],R,null,N,$,X,H,W),Bt++)}const id=yi?Fx(ga):mi;for(Pt=id.length-1,z=Xe-1;z>=0;z--){const _e=mt+z,ir=A[_e],ad=_e+1{const{el:$,type:X,transition:H,children:W,shapeFlag:z}=T;if(z&6){Ot(T.component.subTree,A,R,F);return}if(z&128){T.suspense.move(A,R,F);return}if(z&64){X.move(T,A,R,gt);return}if(X===Le){n($,A,R);for(let J=0;JH.enter($),N);else{const{leave:J,delayLeave:nt,afterLeave:lt}=H,mt=()=>n($,A,R),Ft=()=>{J($,()=>{mt(),lt&<()})};nt?nt($,mt,Ft):Ft()}else n($,A,R)},pt=(T,A,R,F=!1,N=!1)=>{const{type:$,props:X,ref:H,children:W,dynamicChildren:z,shapeFlag:rt,patchFlag:J,dirs:nt}=T;if(H!=null&&df(H,null,R,T,!0),rt&256){A.ctx.deactivate(T);return}const lt=rt&1&&nt,mt=!lf(T);let Ft;if(mt&&(Ft=X&&X.onVnodeBeforeUnmount)&&sr(Ft,A,T),rt&6)j(T.component,R,F);else{if(rt&128){T.suspense.unmount(R,F);return}lt&&xn(T,null,A,"beforeUnmount"),rt&64?T.type.remove(T,A,R,N,gt,F):z&&($!==Le||J>0&&J&64)?G(z,A,R,!1,!0):($===Le&&J&(128|256)||!N&&rt&16)&&G(W,A,R),F&&dt(T)}(mt&&(Ft=X&&X.onVnodeUnmounted)||lt)&&fe(()=>{Ft&&sr(Ft,A,T),lt&&xn(T,null,A,"unmounted")},R)},dt=T=>{const{type:A,el:R,anchor:F,transition:N}=T;if(A===Le){O(R,F);return}if(A===gf){w(T);return}const $=()=>{i(R),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(T.shapeFlag&1&&N&&!N.persisted){const{leave:X,delayLeave:H}=N,W=()=>X(R,$);H?H(T.el,$,W):W()}else $()},O=(T,A)=>{let R;for(;T!==A;)R=h(T),i(T),T=R;i(A)},j=(T,A,R)=>{const{bum:F,scope:N,update:$,subTree:X,um:H}=T;F&&os(F),N.stop(),$&&($.active=!1,pt(X,T,A,R)),H&&fe(H,A),fe(()=>{T.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},G=(T,A,R,F=!1,N=!1,$=0)=>{for(let X=$;XT.shapeFlag&6?tt(T.component.subTree):T.shapeFlag&128?T.suspense.next():h(T.anchor||T.el),bt=(T,A,R)=>{T==null?A._vnode&&pt(A._vnode,null,null,!0):p(A._vnode||null,T,A,null,null,null,R),Cp(),A._vnode=T},gt={p,um:pt,m:Ot,r:dt,mt:k,mc:M,pc:Q,pbc:I,n:tt,o:e};let ct,ot;return t&&([ct,ot]=t(gt)),{render:bt,hydrate:ct,createApp:Ox(bt,ct)}}function Tn({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function sp(e,t,r=!1){const n=e.children,i=t.children;if(at(n)&&at(i))for(let a=0;a>1,e[r[s]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}const Nx=e=>e.__isTeleport,lp="components";function _F(e,t){return Hx(lp,e,!0,t)||e}const zx=Symbol();function Hx(e,t,r=!0,n=!1){const i=be||qt;if(i){const a=i.type;if(e===lp){const s=tT(a);if(s&&(s===t||s===ar(t)||s===as(ar(t))))return a}const o=up(i[e]||a[e],t)||up(i.appContext[e],t);return!o&&n?a:o}}function up(e,t){return e&&(e[t]||e[ar(t)]||e[as(ar(t))])}const Le=Symbol(void 0),pf=Symbol(void 0),Ke=Symbol(void 0),gf=Symbol(void 0),xa=[];let Cn=null;function fp(e=!1){xa.push(Cn=e?null:[])}function Vx(){xa.pop(),Cn=xa[xa.length-1]||null}let bs=1;function cp(e){bs+=e}function hp(e){return e.dynamicChildren=bs>0?Cn||mi:null,Vx(),bs>0&&Cn&&Cn.push(e),e}function SF(e,t,r,n,i,a){return hp(pp(e,t,r,n,i,a,!0))}function vp(e,t,r,n,i){return hp(ce(e,t,r,n,i,!0))}function ws(e){return e?e.__v_isVNode===!0:!1}function Mn(e,t){return e.type===t.type&&e.key===t.key}const xs="__vInternal",dp=({key:e})=>e!=null?e:null,Ts=({ref:e,ref_key:t,ref_for:r})=>e!=null?Qt(e)||Wt(e)||vt(e)?{i:be,r:e,k:t,f:!!r}:e:null;function pp(e,t=null,r=null,n=0,i=null,a=e===Le?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dp(t),ref:t&&Ts(t),scopeId:ps,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(yf(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Qt(r)?8:16),bs>0&&!o&&Cn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Cn.push(l),l}const ce=Gx;function Gx(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===zx)&&(e=Ke),ws(e)){const s=Ci(e,t,!0);return r&&yf(s,r),s}if(eT(e)&&(e=e.__vccOpts),t){t=$x(t);let{class:s,style:l}=t;s&&!Qt(s)&&(t.class=Bu(s)),Vt(l)&&(Ed(l)&&!at(l)&&(l=jt({},l)),t.style=ku(l))}const o=Qt(e)?1:lx(e)?128:Nx(e)?64:Vt(e)?4:vt(e)?2:0;return pp(e,t,r,n,i,o,a,!0)}function $x(e){return e?Ed(e)||xs in e?jt({},e):e:null}function Ci(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?Wx(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&dp(s),ref:t&&t.ref?r&&i?at(i)?i.concat(Ts(t)):[i,Ts(t)]:Ts(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ci(e.ssContent),ssFallback:e.ssFallback&&Ci(e.ssFallback),el:e.el,anchor:e.anchor}}function Ux(e=" ",t=0){return ce(pf,null,e,t)}function bF(e="",t=!1){return t?(fp(),vp(Ke,null,e)):ce(Ke,null,e)}function or(e){return e==null||typeof e=="boolean"?ce(Ke):at(e)?ce(Le,null,e.slice()):typeof e=="object"?Ur(e):ce(pf,null,String(e))}function Ur(e){return e.el===null||e.memo?e:Ci(e)}function yf(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(at(t))r=16;else if(typeof t=="object")if(n&(1|64)){const i=t.default;i&&(i._c&&(i._d=!1),yf(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!(xs in t)?t._ctx=be:i===3&&be&&(be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else vt(t)?(t={default:t,_ctx:be},r=32):(t=String(t),n&64?(r=16,t=[Ux(t)]):r=8);e.children=t,e.shapeFlag|=r}function Wx(...e){const t={};for(let r=0;rt(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);i=new Array(o.length);for(let s=0,l=o.length;sws(t)?!(t.type===Ke||t.type===Le&&!gp(t.children)):!0)?e:null}const mf=e=>e?yp(e)?Sf(e)||e.proxy:mf(e.parent):null,Cs=jt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>mf(e.parent),$root:e=>mf(e.root),$emit:e=>e.emit,$options:e=>Zd(e),$forceUpdate:e=>()=>wp(e.update),$nextTick:e=>Tf.bind(e.proxy),$watch:e=>sT.bind(e)}),Yx={get({_:e},t){const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(n!==It&&_t(n,t))return o[t]=1,n[t];if(i!==It&&_t(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&_t(u,t))return o[t]=3,a[t];if(r!==It&&_t(r,t))return o[t]=4,r[t];ff&&(o[t]=0)}}const f=Cs[t];let c,h;if(f)return t==="$attrs"&&Se(e,"get",t),f(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(r!==It&&_t(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,_t(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;if(i!==It&&_t(i,t))i[t]=r;else if(n!==It&&_t(n,t))n[t]=r;else if(_t(e.props,t))return!1;return t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==It&&_t(e,o)||t!==It&&_t(t,o)||(s=a[0])&&_t(s,o)||_t(n,o)||_t(Cs,o)||_t(i.config.globalProperties,o)}},Xx=op();let qx=0;function Zx(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||Xx,a={uid:qx++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new vd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qd(n,i),emitsOptions:Fd(n,i),emit:null,emitted:null,propsDefaults:It,inheritAttrs:n.inheritAttrs,ctx:It,data:It,props:It,attrs:It,slots:It,refs:It,setupState:It,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=rx.bind(null,a),e.ce&&e.ce(a),a}let qt=null;const _f=()=>qt||be,Mi=e=>{qt=e,e.scope.on()},Dn=()=>{qt&&qt.scope.off(),qt=null};function yp(e){return e.vnode.shapeFlag&4}let Ms=!1;function Kx(e,t=!1){Ms=t;const{props:r,children:n}=e.vnode,i=yp(e);Ax(e,r,i,t),Lx(e,n);const a=i?jx(e,t):void 0;return Ms=!1,a}function jx(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Ti(new Proxy(e.ctx,Yx));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?Jx(e):null;Mi(e),wi();const a=Wr(n,e,0,[e.props,i]);if(bn(),Dn(),ud(a)){if(a.then(Dn,Dn),t)return a.then(o=>{mp(e,o,t)}).catch(o=>{Ds(o,e,0)});e.asyncDep=a}else mp(e,a,t)}else Sp(e,t)}function mp(e,t,r){vt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Vt(t)&&(e.setupState=Bd(t)),Sp(e,r)}let _p;function Sp(e,t,r){const n=e.type;if(!e.render){if(!t&&_p&&!n.render){const i=n.template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=jt(jt({isCustomElement:a,delimiters:s},o),l);n.render=_p(i,u)}}e.render=n.render||qe}Mi(e),wi(),xx(e),bn(),Dn()}function Qx(e){return new Proxy(e.attrs,{get(t,r){return Se(e,"get","$attrs"),t[r]}})}function Jx(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=Qx(e))},slots:e.slots,emit:e.emit,expose:t}}function Sf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Bd(Ti(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Cs)return Cs[r](e)}}))}function tT(e){return vt(e)&&e.displayName||e.name}function eT(e){return vt(e)&&"__vccOpts"in e}function Wr(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){Ds(a,t,r)}return i}function Ee(e,t,r,n){if(vt(e)){const a=Wr(e,t,r,n);return a&&ud(a)&&a.catch(o=>{Ds(o,t,r)}),a}const i=[];for(let a=0;a>>1;Da(we[n])Cr&&we.splice(t,1)}function Tp(e,t,r,n){at(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&r.push(e),xp()}function aT(e){Tp(e,Ca,Ta,Di)}function oT(e){Tp(e,Yr,Ma,Ai)}function Cf(e,t=null){if(Ta.length){for(xf=t,Ca=[...new Set(Ta)],Ta.length=0,Di=0;DiDa(r)-Da(n)),Ai=0;Aie.id==null?1/0:e.id;function Mp(e){bf=!1,As=!0,Cf(e),we.sort((r,n)=>Da(r)-Da(n));const t=qe;try{for(Cr=0;Cre.value,u=!!e._shallow):$r(e)?(l=()=>e,n=!0):at(e)?(f=!0,u=e.some($r),l=()=>e.map(g=>{if(Wt(g))return g.value;if($r(g))return An(g);if(vt(g))return Wr(g,s,2)})):vt(e)?t?l=()=>Wr(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return c&&c(),Ee(e,s,3,[h])}:l=qe,t&&n){const g=l;l=()=>An(g())}let c,h=g=>{c=p.onStop=()=>{Wr(g,s,4)}};if(Ms)return h=qe,t?r&&Ee(t,s,3,[l(),f?[]:void 0,h]):l(),qe;let v=f?[]:Dp;const d=()=>{if(!!p.active)if(t){const g=p.run();(n||u||(f?g.some((m,_)=>ya(m,v[_])):ya(g,v)))&&(c&&c(),Ee(t,s,3,[g,v===Dp?void 0:v,h]),v=g)}else p.run()};d.allowRecurse=!!t;let y;i==="sync"?y=d:i==="post"?y=()=>fe(d,s&&s.suspense):y=()=>{!s||s.isMounted?aT(d):d()};const p=new Yu(l,y);return t?r?d():v=p.run():i==="post"?fe(p.run.bind(p),s&&s.suspense):p.run(),()=>{p.stop(),s&&s.scope&&Nu(s.scope.effects,p)}}function sT(e,t,r){const n=this.proxy,i=Qt(e)?e.includes(".")?Pp(n,e):()=>n[e]:e.bind(n,n);let a;vt(t)?a=t:(a=t.handler,r=t);const o=qt;Mi(this);const s=Ap(i,a.bind(n),r);return o?Mi(o):Dn(),s}function Pp(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i{An(r,t)});else if(cd(e))for(const r in e)An(e[r],t);return e}function Mf(e,t,r){const n=arguments.length;return n===2?Vt(t)&&!at(t)?ws(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&ws(r)&&(r=[r]),ce(e,t,r))}const lT="3.2.26",uT="http://www.w3.org/2000/svg",Pi=typeof document!="undefined"?document:null,Ip=new Map,fT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t?Pi.createElementNS(uT,e):Pi.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Pi.createTextNode(e),createComment:e=>Pi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,n){const i=r?r.previousSibling:t.lastChild;let a=Ip.get(e);if(!a){const o=Pi.createElement("template");if(o.innerHTML=n?`${e}`:e,a=o.content,n){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}Ip.set(e,a)}return t.insertBefore(a.cloneNode(!0),r),[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function cT(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function hT(e,t,r){const n=e.style,i=Qt(r);if(r&&!i){for(const a in r)Df(n,a,r[a]);if(t&&!Qt(t))for(const a in t)r[a]==null&&Df(n,a,"")}else{const a=n.display;i?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const Lp=/\s*!important$/;function Df(e,t,r){if(at(r))r.forEach(n=>Df(e,t,n));else if(t.startsWith("--"))e.setProperty(t,r);else{const n=vT(e,t);Lp.test(r)?e.setProperty(Si(n),r.replace(Lp,""),"important"):e[n]=r}}const Ep=["Webkit","Moz","ms"],Af={};function vT(e,t){const r=Af[t];if(r)return r;let n=ar(t);if(n!=="filter"&&n in e)return Af[t]=n;n=as(n);for(let i=0;idocument.createEvent("Event").timeStamp&&(Ps=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Op=!!(e&&Number(e[1])<=53)}let Pf=0;const gT=Promise.resolve(),yT=()=>{Pf=0},mT=()=>Pf||(gT.then(yT),Pf=Ps());function Pn(e,t,r,n){e.addEventListener(t,r,n)}function _T(e,t,r,n){e.removeEventListener(t,r,n)}function ST(e,t,r,n,i=null){const a=e._vei||(e._vei={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=bT(t);if(n){const u=a[t]=wT(n,i);Pn(e,s,u,l)}else o&&(_T(e,s,o,l),a[t]=void 0)}}const kp=/(?:Once|Passive|Capture)$/;function bT(e){let t;if(kp.test(e)){t={};let r;for(;r=e.match(kp);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Si(e.slice(2)),t]}function wT(e,t){const r=n=>{const i=n.timeStamp||Ps();(Op||i>=r.attached-1)&&Ee(xT(n,r.value),t,5,[n])};return r.value=e,r.attached=mT(),r}function xT(e,t){if(at(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n(i))}else return t}const Bp=/^on[a-z]/,TT=(e,t,r,n,i=!1,a,o,s,l)=>{t==="class"?cT(e,n,i):t==="style"?hT(e,r,n):ts(t)?Fu(t)||ST(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):CT(e,t,n,i))?pT(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),dT(e,t,n,i))};function CT(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&Bp.test(t)&&vt(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Bp.test(t)&&Qt(r)?!1:t in e}const Xr="transition",Pa="animation",Fp=(e,{slots:t})=>Mf(zd,MT(e),t);Fp.displayName="Transition";const Np={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Fp.props=jt({},zd.props,Np);const In=(e,t=[])=>{at(e)?e.forEach(r=>r(...t)):e&&e(...t)},zp=e=>e?at(e)?e.some(t=>t.length>1):e.length>1:!1;function MT(e){const t={};for(const P in e)P in Np||(t[P]=e[P]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:v=`${r}-leave-to`}=e,d=DT(i),y=d&&d[0],p=d&&d[1],{onBeforeEnter:g,onEnter:m,onEnterCancelled:_,onLeave:S,onLeaveCancelled:w,onBeforeAppear:b=g,onAppear:x=m,onAppearCancelled:C=_}=t,M=(P,E,B)=>{Ii(P,E?f:s),Ii(P,E?u:o),B&&B()},L=(P,E)=>{Ii(P,v),Ii(P,h),E&&E()},I=P=>(E,B)=>{const k=P?x:m,Y=()=>M(E,P,B);In(k,[E,Y]),Hp(()=>{Ii(E,P?l:a),qr(E,P?f:s),zp(k)||Vp(E,n,y,Y)})};return jt(t,{onBeforeEnter(P){In(g,[P]),qr(P,a),qr(P,o)},onBeforeAppear(P){In(b,[P]),qr(P,l),qr(P,u)},onEnter:I(!1),onAppear:I(!0),onLeave(P,E){const B=()=>L(P,E);qr(P,c),IT(),qr(P,h),Hp(()=>{Ii(P,c),qr(P,v),zp(S)||Vp(P,n,p,B)}),In(S,[P,B])},onEnterCancelled(P){M(P,!1),In(_,[P])},onAppearCancelled(P){M(P,!0),In(C,[P])},onLeaveCancelled(P){L(P),In(w,[P])}})}function DT(e){if(e==null)return null;if(Vt(e))return[If(e.enter),If(e.leave)];{const t=If(e);return[t,t]}}function If(e){return ma(e)}function qr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function Ii(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function Hp(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let AT=0;function Vp(e,t,r,n){const i=e._endId=++AT,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=PT(e,t);if(!o)return n();const u=o+"end";let f=0;const c=()=>{e.removeEventListener(u,h),a()},h=v=>{v.target===e&&++f>=l&&c()};setTimeout(()=>{f(r[d]||"").split(", "),i=n(Xr+"Delay"),a=n(Xr+"Duration"),o=Gp(i,a),s=n(Pa+"Delay"),l=n(Pa+"Duration"),u=Gp(s,l);let f=null,c=0,h=0;t===Xr?o>0&&(f=Xr,c=o,h=a.length):t===Pa?u>0&&(f=Pa,c=u,h=l.length):(c=Math.max(o,u),f=c>0?o>u?Xr:Pa:null,h=f?f===Xr?a.length:l.length:0);const v=f===Xr&&/\b(transform|all)(,|$)/.test(r[Xr+"Property"]);return{type:f,timeout:c,propCount:h,hasTransform:v}}function Gp(e,t){for(;e.length$p(r)+$p(e[n])))}function $p(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function IT(){return document.body.offsetHeight}const Is=e=>{const t=e.props["onUpdate:modelValue"];return at(t)?r=>os(t,r):t};function LT(e){e.target.composing=!0}function Up(e){const t=e.target;t.composing&&(t.composing=!1,ET(t,"input"))}function ET(e,t){const r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}const TF={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e._assign=Is(i);const a=n||i.props&&i.props.type==="number";Pn(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r?s=s.trim():a&&(s=ma(s)),e._assign(s)}),r&&Pn(e,"change",()=>{e.value=e.value.trim()}),t||(Pn(e,"compositionstart",LT),Pn(e,"compositionend",Up),Pn(e,"change",Up))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:i}},a){if(e._assign=Is(a),e.composing||document.activeElement===e&&(r||n&&e.value.trim()===t||(i||e.type==="number")&&ma(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},CF={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=es(t);Pn(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?ma(Ls(o)):Ls(o));e._assign(e.multiple?i?new Set(a):a:a[0])}),e._assign=Is(n)},mounted(e,{value:t}){Wp(e,t)},beforeUpdate(e,t,r){e._assign=Is(r)},updated(e,{value:t}){Wp(e,t)}};function Wp(e,t){const r=e.multiple;if(!(r&&!at(t)&&!es(t))){for(let n=0,i=e.options.length;n-1:a.selected=t.has(o);else if(Jo(Ls(a),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ls(e){return"_value"in e?e._value:e.value}const RT=["ctrl","shift","alt","meta"],OT={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>RT.some(r=>e[`${r}Key`]&&!t.includes(r))},MF=(e,t)=>(r,...n)=>{for(let i=0;i{Ia(e,!1)}):Ia(e,t))},beforeUnmount(e,{value:t}){Ia(e,t)}};function Ia(e,t){e.style.display=t?e._vod:"none"}const kT=jt({patchProp:TT},fT);let Yp;function BT(){return Yp||(Yp=kx(kT))}const AF=(...e)=>{const t=BT().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=FT(n);if(!i)return;const a=t._component;!vt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function FT(e){return Qt(e)?document.querySelector(e):e}var NT=!1;/*! - * pinia v2.0.9 - * (c) 2021 Eduardo San Martin Morote - * @license MIT - */let Xp;const Es=e=>Xp=e,qp=Symbol();function Lf(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var La;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(La||(La={}));function PF(){const e=dd(!0),t=e.run(()=>ef({}));let r=[],n=[];const i=Ti({install(a){Es(i),i._a=a,a.provide(qp,i),a.config.globalProperties.$pinia=i,n.forEach(o=>r.push(o)),n=[]},use(a){return!this._a&&!NT?n.push(a):r.push(a),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return i}const Zp=()=>{};function Kp(e,t,r,n=Zp){e.push(t);const i=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),n())};return!r&&_f()&&uf(i),i}function Li(e,...t){e.forEach(r=>{r(...t)})}function Ef(e,t){for(const r in t){const n=t[r],i=e[r];Lf(i)&&Lf(n)&&!Wt(n)&&!$r(n)?e[r]=Ef(i,n):e[r]=n}return e}const zT=Symbol();function HT(e){return!Lf(e)||!e.hasOwnProperty(zT)}const{assign:Mr}=Object;function VT(e){return!!(Wt(e)&&e.effect)}function GT(e,t,r,n){const{state:i,actions:a,getters:o}=t,s=r.state.value[e];let l;function u(){s||(r.state.value[e]=i?i():{});const f=Qw(r.state.value[e]);return Mr(f,a,Object.keys(o||{}).reduce((c,h)=>(c[h]=Ti(Ze(()=>{Es(r);const v=r._s.get(e);return o[h].call(v,v)})),c),{}))}return l=jp(e,u,t,r),l.$reset=function(){const c=i?i():{};this.$patch(h=>{Mr(h,c)})},l}function jp(e,t,r={},n,i){let a;const o=r.state,s=Mr({actions:{}},r),l={deep:!0};let u,f,c=Ti([]),h=Ti([]),v;const d=n.state.value[e];!o&&!d&&(n.state.value[e]={}),ef({});function y(b){let x;u=f=!1,typeof b=="function"?(b(n.state.value[e]),x={type:La.patchFunction,storeId:e,events:v}):(Ef(n.state.value[e],b),x={type:La.patchObject,payload:b,storeId:e,events:v}),Tf().then(()=>{u=!0}),f=!0,Li(c,x,n.state.value[e])}const p=Zp;function g(){a.stop(),c=[],h=[],n._s.delete(e)}function m(b,x){return function(){Es(n);const C=Array.from(arguments),M=[],L=[];function I(B){M.push(B)}function P(B){L.push(B)}Li(h,{args:C,name:b,store:S,after:I,onError:P});let E;try{E=x.apply(this&&this.$id===e?this:S,C)}catch(B){throw Li(L,B),B}return E instanceof Promise?E.then(B=>(Li(M,B),B)).catch(B=>(Li(L,B),Promise.reject(B))):(Li(M,E),E)}}const _={_p:n,$id:e,$onAction:Kp.bind(null,h),$patch:y,$reset:p,$subscribe(b,x={}){const C=Kp(c,b,x.detached,()=>M()),M=a.run(()=>Aa(()=>n.state.value[e],L=>{(x.flush==="sync"?f:u)&&b({storeId:e,type:La.direct,events:v},L)},Mr({},l,x)));return C},$dispose:g},S=xi(Mr({},_));n._s.set(e,S);const w=n._e.run(()=>(a=dd(),a.run(()=>t())));for(const b in w){const x=w[b];if(Wt(x)&&!VT(x)||$r(x))o||(d&&HT(x)&&(Wt(x)?x.value=d[b]:Ef(x,d[b])),n.state.value[e][b]=x);else if(typeof x=="function"){const C=m(b,x);w[b]=C,s.actions[b]=x}}return Mr(S,w),Mr(St(S),w),Object.defineProperty(S,"$state",{get:()=>n.state.value[e],set:b=>{y(x=>{Mr(x,b)})}}),n._p.forEach(b=>{Mr(S,a.run(()=>b({store:S,app:n._a,pinia:n,options:s})))}),d&&o&&r.hydrate&&r.hydrate(S.$state,d),u=!0,f=!0,S}function IF(e,t,r){let n,i;const a=typeof t=="function";typeof e=="string"?(n=e,i=a?r:t):(i=e,n=e.id);function o(s,l){const u=_f();return s=s||u&&xr(qp),s&&Es(s),s=Xp,s._s.has(n)||(a?jp(n,t,i,s):GT(n,i,s)),s._s.get(n)}return o.$id=n,o}/*! - * vue-router v4.0.12 - * (c) 2021 Eduardo San Martin Morote - * @license MIT - */const Qp=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ei=e=>Qp?Symbol(e):"_vr_"+e,$T=Ei("rvlm"),Jp=Ei("rvd"),Rf=Ei("r"),tg=Ei("rl"),Of=Ei("rvl"),Ri=typeof window!="undefined";function UT(e){return e.__esModule||Qp&&e[Symbol.toStringTag]==="Module"}const Lt=Object.assign;function kf(e,t){const r={};for(const n in t){const i=t[n];r[n]=Array.isArray(i)?i.map(e):e(i)}return r}const Ea=()=>{},WT=/\/$/,YT=e=>e.replace(WT,"");function Bf(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("?"),l=t.indexOf("#",s>-1?s:0);return s>-1&&(n=t.slice(0,s),a=t.slice(s+1,l>-1?l:t.length),i=e(a)),l>-1&&(n=n||t.slice(0,l),o=t.slice(l,t.length)),n=KT(n!=null?n:t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function XT(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function eg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function qT(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Oi(t.matched[n],r.matched[i])&&rg(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Oi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!ZT(e[r],t[r]))return!1;return!0}function ZT(e,t){return Array.isArray(e)?ng(e,t):Array.isArray(t)?ng(t,e):e===t}function ng(e,t){return Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function KT(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let i=r.length-1,a,o;for(a=0;a({left:window.pageXOffset,top:window.pageYOffset});function eC(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=tC(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ig(e,t){return(history.state?history.state.position-t:-1)+e}const Ff=new Map;function rC(e,t){Ff.set(e,t)}function nC(e){const t=Ff.get(e);return Ff.delete(e),t}let iC=()=>location.protocol+"//"+location.host;function ag(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),eg(l,"")}return eg(r,e)+n+i}function aC(e,t,r,n){let i=[],a=[],o=null;const s=({state:h})=>{const v=ag(e,location),d=r.value,y=t.value;let p=0;if(h){if(r.value=v,t.value=h,o&&o===d){o=null;return}p=y?h.position-y.position:0}else n(v);i.forEach(g=>{g(r.value,d,{delta:p,type:Ra.pop,direction:p?p>0?Oa.forward:Oa.back:Oa.unknown})})};function l(){o=r.value}function u(h){i.push(h);const v=()=>{const d=i.indexOf(h);d>-1&&i.splice(d,1)};return a.push(v),v}function f(){const{history:h}=window;!h.state||h.replaceState(Lt({},h.state,{scroll:Rs()}),"")}function c(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:u,destroy:c}}function og(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?Rs():null}}function oC(e){const{history:t,location:r}=window,n={value:ag(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=e.indexOf("#"),h=c>-1?(r.host&&document.querySelector("base")?e:e.slice(c))+l:iC()+e+l;try{t[f?"replaceState":"pushState"](u,"",h),i.value=u}catch(v){console.error(v),r[f?"replace":"assign"](h)}}function o(l,u){const f=Lt({},t.state,og(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,f,!0),n.value=l}function s(l,u){const f=Lt({},i.value,t.state,{forward:l,scroll:Rs()});a(f.current,f,!0);const c=Lt({},og(n.value,l,null),{position:f.position+1},u);a(l,c,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function LF(e){e=jT(e);const t=oC(e),r=aC(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=Lt({location:"",base:e,go:n,createHref:JT.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function sC(e){return typeof e=="string"||e&&typeof e=="object"}function sg(e){return typeof e=="string"||typeof e=="symbol"}const Zr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},lg=Ei("nf");var ug;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ug||(ug={}));function ki(e,t){return Lt(new Error,{type:e,[lg]:!0},t)}function Ln(e,t){return e instanceof Error&&lg in e&&(t==null||!!(e.type&t))}const fg="[^/]+?",lC={sensitive:!1,strict:!1,start:!0,end:!0},uC=/[.+*?^${}()[\]/\\]/g;function fC(e,t){const r=Lt({},lC,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const f=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let c=0;ct.length?t.length===1&&t[0]===40+40?1:-1:0}function hC(e,t){let r=0;const n=e.score,i=t.score;for(;r1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s{o(m)}:Ea}function o(f){if(sg(f)){const c=n.get(f);c&&(n.delete(f),r.splice(r.indexOf(c),1),c.children.forEach(o),c.alias.forEach(o))}else{const c=r.indexOf(f);c>-1&&(r.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){let c=0;for(;c=0;)c++;r.splice(c,0,f),f.record.name&&!cg(f)&&n.set(f.record.name,f)}function u(f,c){let h,v={},d,y;if("name"in f&&f.name){if(h=n.get(f.name),!h)throw ki(1,{location:f});y=h.record.name,v=Lt(mC(c.params,h.keys.filter(m=>!m.optional).map(m=>m.name)),f.params),d=h.stringify(v)}else if("path"in f)d=f.path,h=r.find(m=>m.re.test(d)),h&&(v=h.parse(d),y=h.record.name);else{if(h=c.name?n.get(c.name):r.find(m=>m.re.test(c.path)),!h)throw ki(1,{location:f,currentLocation:c});y=h.record.name,v=Lt({},c.params,f.params),d=h.stringify(v)}const p=[];let g=h;for(;g;)p.unshift(g.record),g=g.parent;return{name:y,path:d,params:v,matched:p,meta:bC(p)}}return e.forEach(f=>a(f)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function mC(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function _C(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:SC(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function SC(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function cg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bC(e){return e.reduce((t,r)=>Lt(t,r.meta),{})}function hg(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}const vg=/#/g,wC=/&/g,xC=/\//g,TC=/=/g,CC=/\?/g,dg=/\+/g,MC=/%5B/g,DC=/%5D/g,pg=/%5E/g,AC=/%60/g,gg=/%7B/g,PC=/%7C/g,yg=/%7D/g,IC=/%20/g;function Nf(e){return encodeURI(""+e).replace(PC,"|").replace(MC,"[").replace(DC,"]")}function LC(e){return Nf(e).replace(gg,"{").replace(yg,"}").replace(pg,"^")}function zf(e){return Nf(e).replace(dg,"%2B").replace(IC,"+").replace(vg,"%23").replace(wC,"%26").replace(AC,"`").replace(gg,"{").replace(yg,"}").replace(pg,"^")}function EC(e){return zf(e).replace(TC,"%3D")}function RC(e){return Nf(e).replace(vg,"%23").replace(CC,"%3F")}function OC(e){return e==null?"":RC(e).replace(xC,"%2F")}function Os(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function kC(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&zf(a)):[n&&zf(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function BC(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Array.isArray(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}function ka(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function Kr(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(ki(4,{from:r,to:t})):c instanceof Error?s(c):sC(c)?s(ki(2,{from:t,to:c})):(a&&n.enterCallbacks[i]===a&&typeof c=="function"&&a.push(c),o())},u=e.call(n&&n.instances[i],t,r,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function Hf(e,t,r,n){const i=[];for(const a of e)for(const o in a.components){let s=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(FC(s)){const u=(s.__vccOpts||s)[t];u&&i.push(Kr(u,r,n,a,o))}else{let l=s();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const f=UT(u)?u.default:u;a.components[o]=f;const h=(f.__vccOpts||f)[t];return h&&Kr(h,r,n,a,o)()}))}}return i}function FC(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _g(e){const t=xr(Rf),r=xr(tg),n=Ze(()=>t.resolve(wa(e.to))),i=Ze(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=r.matched;if(!f||!c.length)return-1;const h=c.findIndex(Oi.bind(null,f));if(h>-1)return h;const v=Sg(l[u-2]);return u>1&&Sg(f)===v&&c[c.length-1].path!==v?c.findIndex(Oi.bind(null,l[u-2])):h}),a=Ze(()=>i.value>-1&&VC(r.params,n.value.params)),o=Ze(()=>i.value>-1&&i.value===r.matched.length-1&&rg(r.params,n.value.params));function s(l={}){return HC(l)?t[wa(e.replace)?"replace":"push"](wa(e.to)).catch(Ea):Promise.resolve()}return{route:n,href:Ze(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const NC=$d({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:_g,setup(e,{slots:t}){const r=xi(_g(e)),{options:n}=xr(Rf),i=Ze(()=>({[bg(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[bg(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:Mf("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),zC=NC;function HC(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function VC(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Array.isArray(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function Sg(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const bg=(e,t,r)=>e!=null?e:t!=null?t:r,GC=$d({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:r}){const n=xr(Of),i=Ze(()=>e.route||n.value),a=xr(Jp,0),o=Ze(()=>i.value.matched[a]);ys(Jp,a+1),ys($T,o),ys(Of,i);const s=ef();return Aa(()=>[s.value,o.value,e.name],([l,u,f],[c,h,v])=>{u&&(u.instances[f]=l,h&&h!==u&&l&&l===c&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),l&&u&&(!h||!Oi(u,h)||!c)&&(u.enterCallbacks[f]||[]).forEach(d=>d(l))},{flush:"post"}),()=>{const l=i.value,u=o.value,f=u&&u.components[e.name],c=e.name;if(!f)return wg(r.default,{Component:f,route:l});const h=u.props[e.name],v=h?h===!0?l.params:typeof h=="function"?h(l):h:null,y=Mf(f,Lt({},v,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return wg(r.default,{Component:y,route:l})||y}}});function wg(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const $C=GC;function EF(e){const t=yC(e.routes,e),r=e.parseQuery||kC,n=e.stringifyQuery||mg,i=e.history,a=ka(),o=ka(),s=ka(),l=Zw(Zr);let u=Zr;Ri&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=kf.bind(null,O=>""+O),c=kf.bind(null,OC),h=kf.bind(null,Os);function v(O,j){let G,tt;return sg(O)?(G=t.getRecordMatcher(O),tt=j):tt=O,t.addRoute(tt,G)}function d(O){const j=t.getRecordMatcher(O);j&&t.removeRoute(j)}function y(){return t.getRoutes().map(O=>O.record)}function p(O){return!!t.getRecordMatcher(O)}function g(O,j){if(j=Lt({},j||l.value),typeof O=="string"){const ot=Bf(r,O,j.path),T=t.resolve({path:ot.path},j),A=i.createHref(ot.fullPath);return Lt(ot,T,{params:h(T.params),hash:Os(ot.hash),redirectedFrom:void 0,href:A})}let G;if("path"in O)G=Lt({},O,{path:Bf(r,O.path,j.path).path});else{const ot=Lt({},O.params);for(const T in ot)ot[T]==null&&delete ot[T];G=Lt({},O,{params:c(O.params)}),j.params=c(j.params)}const tt=t.resolve(G,j),bt=O.hash||"";tt.params=f(h(tt.params));const gt=XT(n,Lt({},O,{hash:LC(bt),path:tt.path})),ct=i.createHref(gt);return Lt({fullPath:gt,hash:bt,query:n===mg?BC(O.query):O.query||{}},tt,{redirectedFrom:void 0,href:ct})}function m(O){return typeof O=="string"?Bf(r,O,l.value.path):Lt({},O)}function _(O,j){if(u!==O)return ki(8,{from:j,to:O})}function S(O){return x(O)}function w(O){return S(Lt(m(O),{replace:!0}))}function b(O){const j=O.matched[O.matched.length-1];if(j&&j.redirect){const{redirect:G}=j;let tt=typeof G=="function"?G(O):G;return typeof tt=="string"&&(tt=tt.includes("?")||tt.includes("#")?tt=m(tt):{path:tt},tt.params={}),Lt({query:O.query,hash:O.hash,params:O.params},tt)}}function x(O,j){const G=u=g(O),tt=l.value,bt=O.state,gt=O.force,ct=O.replace===!0,ot=b(G);if(ot)return x(Lt(m(ot),{state:bt,force:gt,replace:ct}),j||G);const T=G;T.redirectedFrom=j;let A;return!gt&&qT(n,tt,G)&&(A=ki(16,{to:T,from:tt}),V(tt,tt,!0,!1)),(A?Promise.resolve(A):M(T,tt)).catch(R=>Ln(R)?R:q(R,T,tt)).then(R=>{if(R){if(Ln(R,2))return x(Lt(m(R.to),{state:bt,force:gt,replace:ct}),j||T)}else R=I(T,tt,!0,ct,bt);return L(T,tt,R),R})}function C(O,j){const G=_(O,j);return G?Promise.reject(G):Promise.resolve()}function M(O,j){let G;const[tt,bt,gt]=UC(O,j);G=Hf(tt.reverse(),"beforeRouteLeave",O,j);for(const ot of tt)ot.leaveGuards.forEach(T=>{G.push(Kr(T,O,j))});const ct=C.bind(null,O,j);return G.push(ct),Bi(G).then(()=>{G=[];for(const ot of a.list())G.push(Kr(ot,O,j));return G.push(ct),Bi(G)}).then(()=>{G=Hf(bt,"beforeRouteUpdate",O,j);for(const ot of bt)ot.updateGuards.forEach(T=>{G.push(Kr(T,O,j))});return G.push(ct),Bi(G)}).then(()=>{G=[];for(const ot of O.matched)if(ot.beforeEnter&&!j.matched.includes(ot))if(Array.isArray(ot.beforeEnter))for(const T of ot.beforeEnter)G.push(Kr(T,O,j));else G.push(Kr(ot.beforeEnter,O,j));return G.push(ct),Bi(G)}).then(()=>(O.matched.forEach(ot=>ot.enterCallbacks={}),G=Hf(gt,"beforeRouteEnter",O,j),G.push(ct),Bi(G))).then(()=>{G=[];for(const ot of o.list())G.push(Kr(ot,O,j));return G.push(ct),Bi(G)}).catch(ot=>Ln(ot,8)?ot:Promise.reject(ot))}function L(O,j,G){for(const tt of s.list())tt(O,j,G)}function I(O,j,G,tt,bt){const gt=_(O,j);if(gt)return gt;const ct=j===Zr,ot=Ri?history.state:{};G&&(tt||ct?i.replace(O.fullPath,Lt({scroll:ct&&ot&&ot.scroll},bt)):i.push(O.fullPath,bt)),l.value=O,V(O,j,G,ct),Q()}let P;function E(){P=i.listen((O,j,G)=>{const tt=g(O),bt=b(tt);if(bt){x(Lt(bt,{replace:!0}),tt).catch(Ea);return}u=tt;const gt=l.value;Ri&&rC(ig(gt.fullPath,G.delta),Rs()),M(tt,gt).catch(ct=>Ln(ct,4|8)?ct:Ln(ct,2)?(x(ct.to,tt).then(ot=>{Ln(ot,4|16)&&!G.delta&&G.type===Ra.pop&&i.go(-1,!1)}).catch(Ea),Promise.reject()):(G.delta&&i.go(-G.delta,!1),q(ct,tt,gt))).then(ct=>{ct=ct||I(tt,gt,!1),ct&&(G.delta?i.go(-G.delta,!1):G.type===Ra.pop&&Ln(ct,4|16)&&i.go(-1,!1)),L(tt,gt,ct)}).catch(Ea)})}let B=ka(),k=ka(),Y;function q(O,j,G){Q(O);const tt=k.list();return tt.length?tt.forEach(bt=>bt(O,j,G)):console.error(O),Promise.reject(O)}function U(){return Y&&l.value!==Zr?Promise.resolve():new Promise((O,j)=>{B.add([O,j])})}function Q(O){Y||(Y=!0,E(),B.list().forEach(([j,G])=>O?G(O):j()),B.reset())}function V(O,j,G,tt){const{scrollBehavior:bt}=e;if(!Ri||!bt)return Promise.resolve();const gt=!G&&nC(ig(O.fullPath,0))||(tt||!G)&&history.state&&history.state.scroll||null;return Tf().then(()=>bt(O,j,gt)).then(ct=>ct&&eC(ct)).catch(ct=>q(ct,O,j))}const it=O=>i.go(O);let Ot;const pt=new Set;return{currentRoute:l,addRoute:v,removeRoute:d,hasRoute:p,getRoutes:y,resolve:g,options:e,push:S,replace:w,go:it,back:()=>it(-1),forward:()=>it(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:k.add,isReady:U,install(O){const j=this;O.component("RouterLink",zC),O.component("RouterView",$C),O.config.globalProperties.$router=j,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>wa(l)}),Ri&&!Ot&&l.value===Zr&&(Ot=!0,S(i.location).catch(bt=>{}));const G={};for(const bt in Zr)G[bt]=Ze(()=>l.value[bt]);O.provide(Rf,j),O.provide(tg,xi(G)),O.provide(Of,l);const tt=O.unmount;pt.add(O),O.unmount=function(){pt.delete(O),pt.size<1&&(u=Zr,P&&P(),l.value=Zr,Ot=!1,Y=!1),tt()}}}}function Bi(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function UC(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oOi(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Oi(u,l))||i.push(l))}return[r,n,i]}/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Vf=function(e,t){return Vf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Vf(e,t)};function Z(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Vf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function WC(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n18),o&&(r.weChat=!0),t.canvasSupported=!!document.createElement("canvas").getContext,t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var ht=lr,xg={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},Tg={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},Ba=Object.prototype.toString,ks=Array.prototype,ZC=ks.forEach,KC=ks.filter,Gf=ks.slice,jC=ks.map,Cg=function(){}.constructor,Bs=Cg?Cg.prototype:null,$f="__proto__",Mg={},QC=2311;function Dg(){return QC++}function Fi(){for(var e=[],t=0;t>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function mM(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?Eg(s,o):Eg(o,s))}function Og(e){return e.nodeName.toUpperCase()==="CANVAS"}var tc=typeof window!="undefined"&&!!window.addEventListener,_M=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ec=[];function rc(e,t,r,n){return r=r||{},n||!ht.canvasSupported?kg(e,t,r):ht.browser.firefox&&ht.browser.version<"39"&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):kg(e,t,r),r}function kg(e,t,r){if(ht.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Og(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Jf(ec,e,n,i)){r.zrX=ec[0],r.zrY=ec[1];return}}r.zrX=r.zrY=0}function nc(e){return e||window.event}function Oe(e,t,r){if(t=nc(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&rc(e,o,t,r)}else{rc(e,t,t,r);var a=SM(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&_M.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function SM(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function bM(e,t,r,n){tc?e.addEventListener(t,r,n):e.attachEvent("on"+t,r)}function wM(e,t,r,n){tc?e.removeEventListener(t,r,n):e.detachEvent("on"+t,r)}var Bg=tc?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0},xM=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=Fg(n)/Fg(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=TM(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},Ng="silent";function CM(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:MM}}function MM(){Bg(this.event)}var DM=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(cr),Ha=function(){function e(t,r){this.x=t,this.y=r}return e}(),AM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],zg=function(e){Z(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o._hovered=new Ha(0,0),o.storage=r,o.painter=n,o.painterRoot=a,i=i||new DM,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new vM(o),o}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(AM,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Hg(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ha(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Ha(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=CM(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){for(var a=this.storage.getDisplayList(),o=new Ha(r,n),s=a.length-1;s>=0;s--){var l=void 0;if(a[s]!==i&&!a[s].ignore&&(l=PM(a[s],r,n))&&(!o.topTarget&&(o.topTarget=a[s]),l!==Ng)){o.target=a[s];break}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new xM);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Ha;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(cr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){zg.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=Hg(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||fM(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function PM(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?Ng:!0}return!1}function Hg(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var IM=zg,Vg=32,Va=7;function LM(e){for(var t=0;e>=Vg;)t|=e&1,e>>=1;return e+t}function Gg(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function EM(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function ac(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function oc(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function RM(e,t){var r=Va,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]=Va||x>=Va);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(g=0;g=0;g--)e[b+g]=e[w+g];e[S]=o[_];return}for(var x=r;;){var C=0,M=0,L=!1;do if(t(o[_],e[m])<0){if(e[S--]=e[m--],C++,M=0,--d==0){L=!0;break}}else if(e[S--]=o[_--],M++,C=0,--p==1){L=!0;break}while((C|M)=0;g--)e[b+g]=e[w+g];if(d===0){L=!0;break}}if(e[S--]=o[_--],--p==1){L=!0;break}if(M=p-ac(e[m],o,0,p,p-1,t),M!==0){for(S-=M,_-=M,p-=M,b=S+1,w=_+1,g=0;g=Va||M>=Va);if(L)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(S-=d,m-=d,b=S+1,w=m+1,g=d-1;g>=0;g--)e[b+g]=e[w+g];e[S]=o[_]}else{if(p===0)throw new Error;for(w=S-(p-1),g=0;gs&&(l=s),$g(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ce=1,Ga=2,Vi=4,Ug=!1;function lc(){Ug||(Ug=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Wg(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var OM=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Wg}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(lc(),f.z=0),isNaN(f.z2)&&(lc(),f.z2=0),isNaN(f.zlevel)&&(lc(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),kM=OM,Yg;Yg=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var uc=Yg,Vs={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Vs.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Vs.bounceIn(e*2)*.5:Vs.bounceOut(e*2-1)*.5+.5}},BM=Vs,FM=function(){function e(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop==null?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}return e.prototype.step=function(t,r){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused){this._pausedTime+=r;return}var n=(t-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var i=this.easing,a=typeof i=="string"?BM[i]:i,o=typeof a=="function"?a(n):n;if(this.onframe&&this.onframe(o),n===1)if(this.loop)this._restart(t),this.onrestart&&this.onrestart();else return!0;return!1},e.prototype._restart=function(t){var r=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-r+this.gap,this._pausedTime=0},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e}(),NM=FM,Xg=function(){function e(t){this.value=t}return e}(),zM=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Xg(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),HM=function(){function e(t){this._list=new zM,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Xg(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),$a=HM,qg={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function jr(e){return e=Math.round(e),e<0?0:e>255?255:e}function fc(e){return e<0?0:e>1?1:e}function cc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?jr(parseFloat(t)/100*255):jr(parseInt(t,10))}function Gs(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?fc(parseFloat(t)/100):fc(parseFloat(t))}function hc(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function $s(e,t,r){return e+(t-e)*r}function ke(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function vc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Zg=new $a(20),Us=null;function Gi(e,t){Us&&vc(Us,t),Us=Zg.put(e,Us||t.slice())}function hr(e,t){if(!!e){t=t||[];var r=Zg.get(e);if(r)return vc(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in qg)return vc(t,qg[n]),Gi(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ke(t,0,0,0,1);return}return ke(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Gi(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ke(t,0,0,0,1);return}return ke(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Gi(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ke(t,+u[0],+u[1],+u[2],1):ke(t,0,0,0,1);f=Gs(u.pop());case"rgb":if(u.length!==3){ke(t,0,0,0,1);return}return ke(t,cc(u[0]),cc(u[1]),cc(u[2]),f),Gi(e,t),t;case"hsla":if(u.length!==4){ke(t,0,0,0,1);return}return u[3]=Gs(u[3]),Kg(u,t),Gi(e,t),t;case"hsl":if(u.length!==3){ke(t,0,0,0,1);return}return Kg(u,t),Gi(e,t),t;default:return}}ke(t,0,0,0,1)}}function Kg(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Gs(e[1]),i=Gs(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ke(t,jr(hc(o,a,r+1/3)*255),jr(hc(o,a,r)*255),jr(hc(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function VM(e,t){var r=hr(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Ua(r,r.length===4?"rgba":"rgb")}}function GM(e){var t=hr(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function $M(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=hr(t[i]),s=hr(t[a]),l=n-i,u=Ua([jr($s(o[0],s[0],l)),jr($s(o[1],s[1],l)),jr($s(o[2],s[2],l)),fc($s(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Ua(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Ws(e,t){var r=hr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var dc=Array.prototype.slice;function Wa(e,t,r){return(t-e)*r+e}function UM(e,t,r){return r>.5?t:e}function jg(e,t,r,n){for(var i=t.length,a=0;ao;if(s)n.length=o;else for(var l=a;l=2&&this.interpolable&&this.maxTime>0},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(Re(r)){var a=qM(r);if(i>0&&this.arrDim!==a){this.interpolable=!1;return}if(a===1&&typeof r[0]!="number"||a===2&&typeof r[0][0]!="number"){this.interpolable=!1;return}if(i>0){var o=n[i-1];this._isAllValueEqual&&(a===1?Jg(r,o.value)||(this._isAllValueEqual=!1):this._isAllValueEqual=!1)}this.arrDim=a}else{if(this.arrDim>0){this.interpolable=!1;return}if(typeof r=="string"){var s=hr(r);s?(r=s,this.isValueColor=!0):this.interpolable=!1}else if(typeof r!="number"||isNaN(r)){this.interpolable=!1;return}if(this._isAllValueEqual&&i>0){var o=n[i-1];this.isValueColor&&!Jg(o.value,r)?this._isAllValueEqual=!1:o.value!==r&&(this._isAllValueEqual=!1)}}var l={time:t,value:r,percent:0};return this.keyframes.push(l),l},e.prototype.prepare=function(t){var r=this.keyframes;this._needsSort&&r.sort(function(l,u){return l.time-u.time});for(var n=this.arrDim,i=r.length,a=r[i-1],o=0;o0&&o!==i-1&&YM(r[o].value,a.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;for(var s=r[0].value,o=0;o=0&&!(a[f].percent<=r);f--);f=Math.min(f,o-2)}else{for(f=this._lastFrame;fr);f++);f=Math.min(f-1,o-2)}var h=a[f+1],v=a[f];if(!!(v&&h)){this._lastFrame=f,this._lastFramePercent=r;var d=h.percent-v.percent;if(d!==0){var y=(r-v.percent)/d,p=n?this._additiveValue:u?Xa:t[s];if((l>0||u)&&!p&&(p=this._additiveValue=[]),this.useSpline){var g=a[f][i],m=a[f===0?f:f-1][i],_=a[f>o-2?o-1:f+1][i],S=a[f>o-3?o-1:f+2][i];if(l>0)l===1?ty(p,m,g,_,S,y,y*y,y*y*y):XM(p,m,g,_,S,y,y*y,y*y*y);else if(u)ty(p,m,g,_,S,y,y*y,y*y*y),n||(t[s]=Ya(p));else{var w=void 0;this.interpolable?w=pc(m,g,_,S,y,y*y,y*y*y):w=_,n?this._additiveValue=w:t[s]=w}}else if(l>0)l===1?jg(p,v[i],h[i],y):WM(p,v[i],h[i],y);else if(u)jg(p,v[i],h[i],y),n||(t[s]=Ya(p));else{var w=void 0;this.interpolable?w=Wa(v[i],h[i],y):w=UM(v[i],h[i],y),n?this._additiveValue=w:t[s]=w}n&&this._addToTarget(t)}}}},e.prototype._addToTarget=function(t){var r=this.arrDim,n=this.propName,i=this._additiveValue;r===0?this.isValueColor?(hr(t[n],Xa),Ys(Xa,Xa,i,1),t[n]=Ya(Xa)):t[n]=t[n]+i:r===1?Ys(t[n],t[n],i,1):r===2&&Qg(t[n],t[n],i,1)},e}(),gc=function(){function e(t,r,n){if(this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){Fi("Can' use additive animation on looped animation.");return}this._additiveAnimators=n}return e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r){return this.whenWithKeys(t,r,Ht(r))},e.prototype.whenWithKeys=function(t,r,n){for(var i=this._tracks,a=0;a0)){this._started=1;for(var n=this,i=[],a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(a.getAdditiveTrack())}}}},e}(),KM=function(e){Z(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n.onframe=r.onframe||function(){},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._clipsHead?(this._clipsTail.next=r,r.prev=this._clipsTail,r.next=null,this._clipsTail=r):this._clipsHead=this._clipsTail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(!!r.animation){var n=r.prev,i=r.next;n?n.next=i:this._clipsHead=i,i?i.prev=n:this._clipsTail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=new Date().getTime()-this._pausedTime,i=n-this._time,a=this._clipsHead;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy&&a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(uc(n),!r._paused&&r.update())}uc(n)},t.prototype.start=function(){this._running||(this._time=new Date().getTime(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._clipsHead;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._clipsHead=this._clipsTail=null},t.prototype.isFinished=function(){return this._clipsHead==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new gc(r,n.loop);return this.addAnimator(i),i},t}(cr),jM=KM,QM=300,yc=ht.domSupported,mc=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ut(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),ey={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ry=!1;function _c(e){var t=e.pointerType;return t==="pen"||t==="touch"}function JM(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Sc(e){e&&(e.zrByTouch=!0)}function tD(e,t){return Oe(e.dom,new eD(e,t),!0)}function ny(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var eD=function(){function e(t,r){this.stopPropagation=Dr,this.stopImmediatePropagation=Dr,this.preventDefault=Dr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Qe={mousedown:function(e){e=Oe(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Oe(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Oe(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Oe(this.dom,e);var t=e.toElement||e.relatedTarget;ny(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){ry=!0,e=Oe(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){ry||(e=Oe(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Oe(this.dom,e),Sc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Qe.mousemove.call(this,e),Qe.mousedown.call(this,e)},touchmove:function(e){e=Oe(this.dom,e),Sc(e),this.handler.processGesture(e,"change"),Qe.mousemove.call(this,e)},touchend:function(e){e=Oe(this.dom,e),Sc(e),this.handler.processGesture(e,"end"),Qe.mouseup.call(this,e),+new Date-+this.__lastTouchMomently||e<-ly}var kn=[],Ui=[],Mc=$i(),Dc=Math.abs,lD=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return qa(this.rotation)||qa(this.x)||qa(this.y)||qa(this.scaleX-1)||qa(this.scaleY-1)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&sy(n);return}n=n||$i(),r?this.getLocalTransform(n):sy(n),t&&(r?Ar(n,t,n):sD(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(kn);var n=kn[0]<0?-1:1,i=kn[1]<0?-1:1,a=((kn[0]-n)*r+n)/kn[0]||0,o=((kn[1]-i)*r+i)/kn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||$i(),Js(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(!!t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(Ar(Ui,t.invTransform,r),r=Ui);var n=this.originX,i=this.originY;(n||i)&&(Mc[4]=n,Mc[5]=i,Ar(Ui,r,Mc),Ui[4]-=n,Ui[5]-=i,r=Ui),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&ie(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&ie(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Dc(t[0]-1)>1e-10&&Dc(t[3]-1)>1e-10?Math.sqrt(Dc(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){for(var r=this,n=0;nd&&(d=_,yd&&(d=S,g=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Bn.x=Nn.x=r.x,Bn.y=zn.y=r.y,Fn.x=zn.x=r.x+r.width,Fn.y=Nn.y=r.y+r.height,Bn.transform(n),zn.transform(n),Fn.transform(n),Nn.transform(n),t.x=tl(Bn.x,Fn.x,Nn.x,zn.x),t.y=tl(Bn.y,Fn.y,Nn.y,zn.y);var l=el(Bn.x,Fn.x,Nn.x,zn.x),u=el(Bn.y,Fn.y,Nn.y,zn.y);t.width=l-t.x,t.height=u-t.y},e}(),xt=fD,fy={},Wi="12px sans-serif",rl,cy;function cD(e,t){return rl||(rl=Fs().getContext("2d")),cy!==t&&(cy=rl.font=t||Wi),rl.measureText(e)}var hD={measureText:cD};function Me(e,t){t=t||Wi;var r=fy[t];r||(r=fy[t]=new $a(500));var n=r.get(e);return n==null&&(n=hD.measureText(e,t).width,r.put(e,n)),n}function hy(e,t,r,n){var i=Me(e,t),a=Ic(t),o=ja(0,i,r),s=Yi(0,a,n),l=new xt(o,s,i,a);return l}function Pc(e,t,r,n){var i=((e||"")+"").split(` -`),a=i.length;if(a===1)return hy(i[0],t,r,n);for(var o=new xt(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function vy(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=Hn(n[0],r.width),u+=Hn(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var Lc="__zr_normal__",Ec=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],vD={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Xi={},dD=new xt(0,0,0,0),Rc=function(){function e(t){this.id=Dg(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=dD;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Xi,n,f):vy(Xi,n,f),a.x=Xi.x,a.y=Xi.y,o=Xi.align,s=Xi.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=Hn(c[0],f.width),v=Hn(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var y=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,m=void 0,_=void 0;y&&this.canBeInsideText()?(g=n.insideFill,m=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(g),_=!0)):(g=n.outsideFill,m=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(g),_=!0)),g=g||"#000",(g!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=g,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=Ce,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cc:Tc},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&hr(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ua(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},K(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(st(t))for(var n=t,i=Ht(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Lc,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Lc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(At(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Fi("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,r,n,f),h&&h.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ce),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var y=this._textContent,p=this._textGuide;y&&y.useStates(t,r,h),p&&p.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ce)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=At(i,t),o=At(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();ur(Rc,cr);ur(Rc,Ac);function Oc(e,t,r,n,i){r=r||{};var a=[];dy(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,y){r.during(y)});for(var h=0;h0||i.force&&!o.length){for(var _=e.animators,S=[],w=0;w<_.length;w++)_[w].targetName===t&&S.push(_[w]);if(!v&&S.length)for(var w=0;w=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=At(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=At(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.addHover=function(t){},e.prototype.removeHover=function(t){},e.prototype.clearHover=function(){},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.pathToImage=function(t,r){if(this.painter.pathToImage)return this.painter.pathToImage(t,r)},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function he(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return typeof e=="string"?wD(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function ae(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Sy),e=(+e).toFixed(t),r?e:+e}function Pr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return xD(e)}function xD(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function TD(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function CD(e,t){var r=Math.max(Pr(e),Pr(t)),n=e+t;return r>Sy?n:ae(n,r)}function wy(e){var t=Math.PI*2;return(e%t+t)%t}function nl(e){return e>-_y&&e<_y}var MD=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ir(e){if(e instanceof Date)return e;if(typeof e=="string"){var t=MD.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function DD(e){return Math.pow(10,xy(e))}function xy(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Ty(e,t){var r=xy(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function il(e){var t=parseFloat(e);return t==e&&(t!==0||typeof e!="string"||e.indexOf("x")<=0)?t:NaN}function AD(e){return!isNaN(il(e))}function Cy(){return Math.round(Math.random()*9)}function My(e,t){return t===0?e:My(t,e%t)}function Dy(e,t){return e==null?t:t==null?e:e*t/My(e,t)}function ve(e){throw new Error(e)}var Ay="series\0",PD="\0_ec_\0";function oe(e){return e instanceof Array?e:e==null?[]:[e]}function Py(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n=0||a&&At(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var QD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],JD=no(QD),tA=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return JD(this,t,r)},e}(),Hc=new $a(50);function eA(e){if(typeof e=="string"){var t=Hc.get(e);return t&&t.image}else return e}function ky(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Hc.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!ol(t)&&a.pending.push(o)):(t=new Image,t.onload=t.onerror=rA,Hc.put(e,t.__cachedImgObj={image:t,pending:[o]}),t.src=t.__zrImageSrc=e),t}else return e;else return t}function rA(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Me(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function Fy(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Me(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?iA(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Me(e,n)}return e===""&&(e=t.placeholder),e}function iA(e,t,r,n){for(var i=0,a=0,o=e.length;ah&&l){var v=Math.floor(h/s);f=f.slice(0,v)}var d=h,y=u;if(n&&(d+=n[0]+n[2],y!=null&&(y+=n[1]+n[3])),e&&a&&y!=null)for(var p=By(u,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&Gc(r,e.substring(s,u),t,o),Gc(r,l[2],t,o,l[1]),s=Vc.lastIndex}si){w>0?(m.tokens=m.tokens.slice(0,w),p(m,S,_),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g);break t}var P=x.width,E=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")b.percentWidth=P,f.push(b),b.contentWidth=Me(b.text,L);else{if(E){var B=x.backgroundColor,k=B&&B.image;k&&(k=eA(k),ol(k)&&(b.width=Math.max(b.width,k.width*I/k.height)))}var Y=d&&n!=null?n-S:null;Y!=null&&Y0&&d+n.accumWidth>n.width&&(f=t.split(` -`),u=!0),n.accumWidth=d}else{var y=zy(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=y.accumWidth+v,c=y.linesWidths,f=y.lines}}else f=t.split(` -`);for(var p=0;p=33&&t<=255}var fA=Uf(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function cA(e){return uA(e)?!!fA[e]:!0}function zy(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;cr:i+f+v>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,f+=u,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var $c="__zr_style_"+Math.round(Math.random()*10),$n={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},sl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$n[$c]=!0;var Hy=["z","z2","invisible"],hA=["invisible"],vA=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Ht(r),i=0;i-ul&&eul||e<-ul}function Nt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Uy(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Yc(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Jr(f)&&Jr(c))if(Jr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=c*c-4*f*h;if(Jr(y)){var p=c/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(y>0){var m=Qr(y),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-ll(-_,fl):_=ll(_,fl),S<0?S=-ll(-S,fl):S=ll(S,fl);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*c)/(2*Qr(f*f*f)),b=Math.acos(w)/3,x=Qr(f),C=Math.cos(b),d=(-s-2*x*C)/(3*o),g=(-s+x*(C+Gy*Math.sin(b)))/(3*o),M=(-s+x*(C-Gy*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),M>=0&&M<=1&&(a[v++]=M)}}return v}function Wy(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Jr(o)){if($y(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Jr(f))i[0]=-a/(2*o);else if(f>0){var c=Qr(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function cl(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function pA(e,t,r,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,y,p,g;pr[0]=l,pr[1]=u;for(var m=0;m<1;m+=.05)Be[0]=Nt(e,r,i,o,m),Be[1]=Nt(t,n,a,s,m),p=zi(pr,Be),p=0&&p=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Jr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Qr(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Xy(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function hl(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function mA(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;pr[0]=o,pr[1]=s;for(var h=0;h<1;h+=.05){Be[0]=Jt(e,r,i,h),Be[1]=Jt(t,n,a,h);var v=zi(pr,Be);v=0&&v1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(vl[0]=qc(i)*r+e,vl[1]=Xc(i)*n+t,dl[0]=qc(a)*r+e,dl[1]=Xc(a)*n+t,u(s,vl,dl),f(l,vl,dl),i=i%Un,i<0&&(i=i+Un),a=a%Un,a<0&&(a=a+Un),i>a&&!o?a+=Un:ii&&(pl[0]=qc(v)*r+e,pl[1]=Xc(v)*n+t,u(s,pl,s),f(l,pl,l))}var Mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Wn=[],Yn=[],gr=[],tn=[],yr=[],mr=[],ao=Math.min,oo=Math.max,Xn=Math.cos,qn=Math.sin,gl=Math.sqrt,Lr=Math.abs,Zc=Math.PI,en=Zc*2,Kc=typeof Float32Array!="undefined",so=[];function jc(e){var t=Math.round(e/Zc*1e8)/1e8;return t%2*Zc}function jy(e,t){var r=jc(e[0]);r<0&&(r+=en);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=en?i=r+en:t&&r-i>=en?i=r-en:!t&&r>i?i=r+(en-jc(r-i)):t&&r0&&(this._ux=Lr(n/Zs/t)||0,this._uy=Lr(n/Zs/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(Mt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Lr(t-this._xi),i=Lr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Mt.L,t,r),this._ctx&&a&&(this._needsDash?this._dashedLineTo(t,r):this._ctx.lineTo(t,r)),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(Mt.C,t,r,n,i,a,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,r,n,i,a,o):this._ctx.bezierCurveTo(t,r,n,i,a,o)),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(Mt.Q,t,r,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,r,n,i):this._ctx.quadraticCurveTo(t,r,n,i)),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),so[0]=i,so[1]=a,jy(so,o),i=so[0],a=so[1];var s=a-i;return this.addData(Mt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Xn(a)*n+t,this._yi=qn(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(Mt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Mt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(r,n),t.closePath()),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var r=0,n=0;nf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r0&&h<=t||u<0&&h>=t||u===0&&(f>0&&v<=r||f<0&&v>=r);)p=this._dashIdx,y=i[p],h+=u*y,v+=f*y,this._dashIdx=(p+1)%d,!(u>0&&hs||f>0&&vl)&&a[p%2?"moveTo":"lineTo"](u>=0?ao(h,t):oo(h,t),f>=0?ao(v,r):oo(v,r));u=h-t,f=v-r,this._dashOffset=-gl(u*u+f*f)},e.prototype._dashedBezierTo=function(t,r,n,i,a,o){var s=this._ctx,l=this._dashSum,u=this._dashOffset,f=this._lineDash,c=this._xi,h=this._yi,v=0,d=this._dashIdx,y=f.length,p,g,m,_,S,w=0;for(u<0&&(u=l+u),u%=l,p=0;p<1;p+=.1)g=Nt(c,t,n,a,p+.1)-Nt(c,t,n,a,p),m=Nt(h,r,i,o,p+.1)-Nt(h,r,i,o,p),v+=gl(g*g+m*m);for(;du));d++);for(p=(w-u)/v;p<=1;)_=Nt(c,t,n,a,p),S=Nt(h,r,i,o,p),d%2?s.moveTo(_,S):s.lineTo(_,S),p+=f[d]/v,d=(d+1)%y;d%2!=0&&s.lineTo(a,o),g=a-_,m=o-S,this._dashOffset=-gl(g*g+m*m)},e.prototype._dashedQuadraticTo=function(t,r,n,i){var a=n,o=i;n=(n+2*t)/3,i=(i+2*r)/3,t=(this._xi+2*t)/3,r=(this._yi+2*r)/3,this._dashedBezierTo(t,r,n,i,a,o)},e.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Kc&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){gr[0]=gr[1]=yr[0]=yr[1]=Number.MAX_VALUE,tn[0]=tn[1]=mr[0]=mr[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Lr(_)>i||h===r-1)&&(y=Math.sqrt(m*m+_*_),a=p,o=g);break}case Mt.C:{var S=t[h++],w=t[h++],p=t[h++],g=t[h++],b=t[h++],x=t[h++];y=gA(a,o,S,w,p,g,b,x,10),a=b,o=x;break}case Mt.Q:{var S=t[h++],w=t[h++],p=t[h++],g=t[h++];y=_A(a,o,S,w,p,g,10),a=p,o=g;break}case Mt.A:var C=t[h++],M=t[h++],L=t[h++],I=t[h++],P=t[h++],E=t[h++],B=E+P;h+=1,t[h++],d&&(s=Xn(P)*L+C,l=qn(P)*I+M),y=oo(L,I)*ao(en,Math.abs(E)),a=Xn(B)*L+C,o=qn(B)*I+M;break;case Mt.R:{s=a=t[h++],l=o=t[h++];var k=t[h++],Y=t[h++];y=k*2+Y*2;break}case Mt.Z:{var m=s-a,_=l-o;y=Math.sqrt(m*m+_*_),a=s,o=l;break}}y>=0&&(u[c++]=y,f+=y)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,v=r<1,d,y,p=0,g=0,m,_=0,S,w;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,m=r*y,!m))return;t:for(var b=0;b0&&(t.lineTo(S,w),_=0),x){case Mt.M:s=u=n[b++],l=f=n[b++],t.moveTo(u,f);break;case Mt.L:{c=n[b++],h=n[b++];var M=Lr(c-u),L=Lr(h-f);if(M>i||L>a){if(v){var I=d[g++];if(p+I>m){var P=(m-p)/I;t.lineTo(u*(1-P)+c*P,f*(1-P)+h*P);break t}p+=I}t.lineTo(c,h),u=c,f=h,_=0}else{var E=M*M+L*L;E>_&&(S=c,w=h,_=E)}break}case Mt.C:{var B=n[b++],k=n[b++],Y=n[b++],q=n[b++],U=n[b++],Q=n[b++];if(v){var I=d[g++];if(p+I>m){var P=(m-p)/I;cl(u,B,Y,U,P,Wn),cl(f,k,q,Q,P,Yn),t.bezierCurveTo(Wn[1],Yn[1],Wn[2],Yn[2],Wn[3],Yn[3]);break t}p+=I}t.bezierCurveTo(B,k,Y,q,U,Q),u=U,f=Q;break}case Mt.Q:{var B=n[b++],k=n[b++],Y=n[b++],q=n[b++];if(v){var I=d[g++];if(p+I>m){var P=(m-p)/I;hl(u,B,Y,P,Wn),hl(f,k,q,P,Yn),t.quadraticCurveTo(Wn[1],Yn[1],Wn[2],Yn[2]);break t}p+=I}t.quadraticCurveTo(B,k,Y,q),u=Y,f=q;break}case Mt.A:var V=n[b++],it=n[b++],Ot=n[b++],pt=n[b++],dt=n[b++],O=n[b++],j=n[b++],G=!n[b++],tt=Ot>pt?Ot:pt,bt=Lr(Ot-pt)>.001,gt=dt+O,ct=!1;if(v){var I=d[g++];p+I>m&&(gt=dt+O*(m-p)/I,ct=!0),p+=I}if(bt&&t.ellipse?t.ellipse(V,it,Ot,pt,j,dt,gt,G):t.arc(V,it,tt,dt,gt,G),ct)break t;C&&(s=Xn(dt)*Ot+V,l=qn(dt)*pt+it),u=Xn(gt)*Ot+V,f=qn(gt)*pt+it;break;case Mt.R:s=u=n[b],l=f=n[b+1],c=n[b++],h=n[b++];var ot=n[b++],T=n[b++];if(v){var I=d[g++];if(p+I>m){var A=m-p;t.moveTo(c,h),t.lineTo(c+ao(A,ot),h),A-=ot,A>0&&t.lineTo(c+ot,h+ao(A,T)),A-=T,A>0&&t.lineTo(c+oo(ot-A,0),h+T),A-=ot,A>0&&t.lineTo(c,h+oo(T-A,0));break t}p+=I}t.rect(c,h,ot,T);break;case Mt.Z:if(v){var I=d[g++];if(p+I>m){var P=(m-p)/I;t.lineTo(u*(1-P)+s*P,f*(1-P)+l*P);break t}p+=I}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=Mt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._needsDash=!1,t._dashOffset=0,t._dashIdx=0,t._dashSum=0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),Zn=TA;function Zi(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+c&&f>n+c&&f>a+c&&f>s+c||fe+c&&u>r+c&&u>i+c&&u>o+c||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||f+ui&&(i+=lo);var h=Math.atan2(l,s);return h<0&&(h+=lo),h>=n&&h<=i||h+lo>=n&&h+lo<=i}function Er(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var rn=Zn.CMD,Kn=Math.PI*2,AA=1e-4;function PA(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&IA(),v=Nt(t,n,a,s,Fe[0]),h>1&&(d=Nt(t,n,a,s,Fe[1]))),h===2?pt&&s>n&&s>a||s=0&&u<=1){for(var f=0,c=Jt(t,n,a,u),h=0;hr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);se[0]=-l,se[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Kn-1e-4){n=0,i=Kn;var f=a?1:-1;return o>=se[0]+e&&o<=se[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Kn,i+=Kn);for(var h=0,v=0;v<2;v++){var d=se[v];if(d+e>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=Kn+y),(y>=n&&y<=i||y+Kn>=n&&y+Kn<=i)&&(y>Math.PI/2&&y1&&(r||(s+=Er(l,u,f,c,n,i))),p&&(l=a[d],u=a[d+1],f=l,c=u),y){case rn.M:f=a[d++],c=a[d++],l=f,u=c;break;case rn.L:if(r){if(Zi(l,u,a[d],a[d+1],t,n,i))return!0}else s+=Er(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.C:if(r){if(CA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=LA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.Q:if(r){if(MA(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=EA(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.A:var g=a[d++],m=a[d++],_=a[d++],S=a[d++],w=a[d++],b=a[d++];d+=1;var x=!!(1-a[d++]);h=Math.cos(w)*_+g,v=Math.sin(w)*S+m,p?(f=h,c=v):s+=Er(l,u,h,v,n,i);var C=(n-g)*S/_+g;if(r){if(DA(g,m,S,w,w+b,x,t,C,i))return!0}else s+=RA(g,m,S,w,w+b,x,C,i);l=Math.cos(w+b)*_+g,u=Math.sin(w+b)*S+m;break;case rn.R:f=l=a[d++],c=u=a[d++];var M=a[d++],L=a[d++];if(h=f+M,v=c+L,r){if(Zi(f,c,h,c,t,n,i)||Zi(h,c,h,v,t,n,i)||Zi(h,v,f,v,t,n,i)||Zi(f,v,f,c,t,n,i))return!0}else s+=Er(h,c,h,v,n,i),s+=Er(f,v,f,c,n,i);break;case rn.Z:if(r){if(Zi(l,u,f,c,t,n,i))return!0}else s+=Er(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!PA(u,c)&&(s+=Er(l,u,f,c,n,i)||0),s!==0}function OA(e,t,r){return Jy(e,0,!1,t,r)}function kA(e,t,r,n){return Jy(e,t,!0,r,n)}var tm=Ct({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},$n),BA={style:Ct({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},sl.style)},Qc=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],FA=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Tc:n>.2?oD:Cc}else if(r)return Cc}return Tc},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(wt(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ws(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Vi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectWithStroke||(this._rectWithStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),kA(s,l/u,r,n)))return!0}if(this.hasFill())return OA(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Vi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:K(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Vi)},t.prototype.createStyle=function(r){return za(tm,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=K({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=K({},i.shape),K(u,n.shape)):(u=K({},a?this.shape:i.shape),K(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=K({},this.shape);for(var f={},c=Ht(u),h=0;h0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return za(NA,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Pc(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(io);em.prototype.type="tspan";var ml=em,zA=Ct({x:0,y:0},$n),HA={style:Ct({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},sl.style)};function VA(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var rm=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return za(zA,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=VA(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return HA},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new xt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(io);rm.prototype.type="image";var Rr=rm;function GA(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Ki=Math.round;function nm(e,t,r){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Ki(n*2)===Ki(i*2)&&(e.x1=e.x2=jn(n,s,!0)),Ki(a*2)===Ki(o*2)&&(e.y1=e.y2=jn(a,s,!0))),e}}function im(e,t,r){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=jn(n,s,!0),e.y=jn(i,s,!0),e.width=Math.max(jn(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(jn(i+o,s,!1)-e.y,o===0?0:1)),e}}function jn(e,t,r){if(!t)return e;var n=Ki(e*2);return(n+Ki(t))%2==0?n/2:(n+(r?1:-1))/2}var $A=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),UA={},am=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $A},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=im(UA,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?GA(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Rt);am.prototype.type="rect";var Yt=am,om={fill:"#000"},sm=2,WA={style:Ct({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},sl.style)},lm=function(e){Z(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=om,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,E=0;E=0&&(B=b[E],B.align==="right");)this._placeToken(B,r,C,g,P,"right",_),M-=B.width,P-=B.width,E--;for(I+=(a-(I-p)-(m-P)-M)/2;L<=E;)B=b[L],this._placeToken(B,r,C,g,I+B.width/2,"center",_),I+=B.width,L++;g+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&Jc(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=hm(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var y=this._getOrCreateChild(ml),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,m=!1,_=0,S=cm("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,g.fill)),w=fm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!g.autoStroke||m)?(_=sm,g.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,b&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Wi,p.opacity=zs(u.opacity,n.opacity,1),w&&(p.lineWidth=zs(u.lineWidth,n.lineWidth,_),p.lineDash=Dt(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),S&&(p.fill=S);var x=r.contentWidth,C=r.contentHeight;y.setBoundingRect(new xt(ja(p.x,x,p.textAlign),Yi(p.y,C,p.textBaseline),x,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,v=r.borderRadius,d=this,y,p;if(h||r.lineHeight||u&&f){y=this._getOrCreateChild(Yt),y.useStyle(y.createStyle()),y.style.fill=null;var g=y.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=v,y.dirtyShape()}if(h){var m=y.style;m.fill=l||null,m.fillOpacity=Dt(r.fillOpacity,1)}else if(c){p=this._getOrCreateChild(Rr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=y.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=Dt(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(y||p).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=zs(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";if(r.fontSize||r.fontFamily||r.fontWeight){var i="";typeof r.fontSize=="string"&&(r.fontSize.indexOf("px")!==-1||r.fontSize.indexOf("rem")!==-1||r.fontSize.indexOf("em")!==-1)?i=r.fontSize:isNaN(+r.fontSize)?i="12px":i=r.fontSize+"px",n=[r.fontStyle,r.fontWeight,i,r.fontFamily||"sans-serif"].join(" ")}return n&&En(n)||r.textFont||r.font},t}(io),YA={left:!0,right:1,center:1},XA={top:1,bottom:1,middle:1};function qA(e){return um(e),D(e.rich,um),e}function um(e){if(e){e.font=lm.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||YA[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||XA[r]?r:"top";var n=e.padding;n&&(e.padding=Pg(e.padding))}}function fm(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function cm(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function hm(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function vm(e){var t=e.text;return t!=null&&(t+=""),t}function Jc(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var le=lm,kt=Kt(),ZA=function(e,t,r,n){if(n){var i=kt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=kt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},dm=1,pm={},gm=Kt(),th=0,_l=1,Sl=2,_r=["emphasis","blur","select"],ym=["normal","emphasis","blur","select"],KA=10,jA=9,Qn="highlight",bl="downplay",uo="select",wl="unselect",fo="toggleSelect";function ji(e){return e!=null&&e!=="none"}var mm=new $a(100);function _m(e){if(typeof e!="string")return e;var t=mm.get(e);return t||(t=VM(e,-.1),mm.put(e,t)),t}function xl(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Sm(e){xl(e,"emphasis",Sl)}function bm(e){e.hoverState===Sl&&xl(e,"normal",th)}function eh(e){xl(e,"blur",_l)}function wm(e){e.hoverState===_l&&xl(e,"normal",th)}function QA(e){e.selected=!0}function JA(e){e.selected=!1}function xm(e,t,r){t(e,r)}function Or(e,t,r){xm(e,t,r),e.isGroup&&e.traverse(function(n){xm(n,t,r)})}function Tm(e,t){switch(t){case"emphasis":e.hoverState=Sl;break;case"normal":e.hoverState=th;break;case"blur":e.hoverState=_l;break;case"select":e.selected=!0}}function tP(e,t,r,n){for(var i=e.style,a={},o=0;o=0,a=!1;if(e instanceof Rt){var o=gm(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ji(s)||ji(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=K({},n),u=K({},u),u.fill=s):!ji(u.fill)&&ji(s)?(a=!0,n=K({},n),u=K({},u),u.fill=_m(s)):!ji(u.stroke)&&ji(l)&&(a||(n=K({},n),u=K({},u)),u.stroke=_m(l)),n.style=u}}if(n&&n.z2==null){a||(n=K({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f!=null?f:KA)}return n}function rP(e,t,r){if(r&&r.z2==null){r=K({},r);var n=e.z2SelectLift;r.z2=e.z2+(n!=null?n:jA)}return r}function nP(e,t,r){var n=At(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:tP(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=K({},r),o=K({opacity:n?i:a.opacity*.1},o),r.style=o),r}function rh(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return eP(this,e,t,r);if(e==="blur")return nP(this,e,r);if(e==="select")return rP(this,e,r)}return r}function iP(e){e.stateProxy=rh;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=rh),r&&(r.stateProxy=rh)}function Cm(e,t){!Im(e,t)&&!e.__highByOuter&&Or(e,Sm)}function Mm(e,t){!Im(e,t)&&!e.__highByOuter&&Or(e,bm)}function Tl(e,t){e.__highByOuter|=1<<(t||0),Or(e,Sm)}function Cl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Or(e,bm)}function aP(e){Or(e,eh)}function Dm(e){Or(e,wm)}function Am(e){Or(e,QA)}function Pm(e){Or(e,JA)}function Im(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Lm(e){var t=e.getModel();t.eachComponent(function(r,n){var i=r==="series"?e.getViewOfSeriesModel(n):e.getViewOfComponentModel(n);i.group.traverse(function(a){wm(a)})})}function nh(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function co(e,t,r){vP(e,!0),Or(e,iP),cP(e,t,r)}function cP(e,t,r){var n=kt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Rm=["emphasis","blur","select"],hP={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Om(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=lh(d),s*=lh(d));var y=(i===a?-1:1)*lh((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,p=y*o*v/s,g=y*-s*h/o,m=(e+r)/2+Dl(c)*p-Ml(c)*g,_=(t+n)/2+Ml(c)*p+Dl(c)*g,S=Nm([1,0],[(h-p)/o,(v-g)/s]),w=[(h-p)/o,(v-g)/s],b=[(-1*h-p)/o,(-1*v-g)/s],x=Nm(w,b);if(uh(w,b)<=-1&&(x=ho),uh(w,b)>=1&&(x=0),x<0){var C=Math.round(x/ho*1e6)/1e6;x=ho*2+C%2*ho}f.addData(u,m,_,o,s,S,x,c,a)}var _P=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,SP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bP(e){var t=new Zn;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Zn.CMD,l=e.match(_P);if(!l)return t;for(var u=0;uB*B+k*k&&(C=L,M=I),{cx:C,cy:M,x01:-f,y01:-c,x11:C*(i/w-1),y11:M*(i/w-1)}}function PP(e,t){var r=ch(t.r,0),n=ch(t.r0||0,0),i=r>0,a=n>0;if(!(!i&&!a)){if(i||(r=n,n=0),n>r){var o=r;r=n,n=o}var s=!!t.clockwise,l=t.startAngle,u=t.endAngle,f;if(l===u)f=0;else{var c=[l,u];jy(c,!s),f=Xm(c[0]-c[1])}var h=t.cx,v=t.cy,d=t.cornerRadius||0,y=t.innerCornerRadius||0;if(!(r>tr))e.moveTo(h,v);else if(f>MP-tr)e.moveTo(h+r*Ji(l),v+r*Jn(l)),e.arc(h,v,r,l,u,!s),n>tr&&(e.moveTo(h+n*Ji(u),v+n*Jn(u)),e.arc(h,v,n,u,l,s));else{var p=Xm(r-n)/2,g=Pl(p,d),m=Pl(p,y),_=m,S=g,w=r*Ji(l),b=r*Jn(l),x=n*Ji(u),C=n*Jn(u),M=void 0,L=void 0,I=void 0,P=void 0;if((g>tr||m>tr)&&(M=r*Ji(u),L=r*Jn(u),I=n*Ji(l),P=n*Jn(l),ftr))e.moveTo(h+w,v+b);else if(S>tr){var V=Il(I,P,w,b,r,S,s),it=Il(M,L,x,C,r,S,s);e.moveTo(h+V.cx+V.x01,v+V.cy+V.y01),Str)||!(f>tr))e.lineTo(h+x,v+C);else if(_>tr){var V=Il(x,C,M,L,n,-_,s),it=Il(w,b,I,P,n,-_,s);e.lineTo(h+V.cx+V.x01,v+V.cy+V.y01),_r-2?r-1:l+1],v=e[l>r-3?r-1:l+2]);var d=u*u,y=u*d;n.push([jm(f[0],c[0],h[0],v[0],u,d,y),jm(f[1],c[1],h[1],v[1],u,d,y)])}return n}function RP(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=e.length;h=2){if(n&&n!=="spline"){var a=RP(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{n==="spline"&&(i=EP(i,r)),e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;sei[1]){if(s=!1,a)return s;var f=Math.abs(ei[0]-ti[1]),c=Math.abs(ti[0]-ei[1]);Math.min(f,c)>i.len()&&(f0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function an(e,t,r,n,i,a){yh("update",e,t,r,n,i,a)}function po(e,t,r,n,i,a){yh("init",e,t,r,n,i,a)}function go(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function v0(e){return!e.isGroup}function lI(e){return e.shape!=null}function d0(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){v0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return lI(o)&&(s.shape=K({},o.shape)),s}var a=n(e);t.traverse(function(o){if(v0(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),an(o,l,r,kt(o).dataIndex)}}})}function uI(e,t){return ut(e,function(r){var n=r[0];n=kl(n,t.x),n=Bl(n,t.x+t.width);var i=r[1];return i=kl(i,t.y),i=Bl(i,t.y+t.height),[n,i]})}function fI(e,t){var r=kl(e.x,t.x),n=Bl(e.x+e.width,t.x+t.width),i=kl(e.y,t.y),a=Bl(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function bh(e,t,r){var n=K({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Ct(i,r),new Rr(n)):_h(e.replace("path://",""),n,r,"center")}function cI(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var p=wh(v,d,f,c)/h;return!(p<0||p>1)}function wh(e,t,r,n){return e*n-r*t}function hI(e){return e<=1e-6&&e>=-1e-6}function xh(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=wt(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&D(Ht(l),function(f){je(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=kt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ct({content:n,formatterParams:s},i)}}er("circle",Al);er("ellipse",fh);er("sector",hh);er("ring",Km);er("polygon",vh);er("polyline",dh);er("rect",Yt);er("line",nn);er("bezierCurve",i0);er("arc",ph);var vI=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",updateProps:an,initProps:po,removeElement:Ol,removeElementWithFadeOut:KP,isElementRemoved:go,extendShape:QP,extendPath:tI,registerShape:er,getShapeClass:eI,makePath:_h,makeImage:f0,mergePath:rI,resizePath:h0,subPixelOptimizeLine:nI,subPixelOptimizeRect:iI,subPixelOptimize:aI,getTransform:oI,applyTransform:Sh,transformDirection:sI,groupTransition:d0,clipPointsByRect:uI,clipRectByRect:fI,createIcon:bh,linePolygonIntersect:cI,lineLineIntersect:p0,setTooltipConfig:xh,Group:$t,Image:Rr,Text:le,Circle:Al,Ellipse:fh,Sector:hh,Ring:Km,Polygon:vh,Polyline:dh,Rect:Yt,Line:nn,BezierCurve:i0,Arc:ph,IncrementalDisplayable:l0,CompoundPath:VP,LinearGradient:gh,RadialGradient:s0,BoundingRect:xt,OrientedBoundingRect:Rl,Point:Et,Path:Rt}),Fl={};function dI(e,t){for(var r=0;r<_r.length;r++){var n=_r[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function g0(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Xt(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<_r.length;u++){var f=_r[u],c=t[f];l[f]=Dt(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Th(e,t,r,n){r=r||Fl;for(var i=e instanceof le,a=!1,o=0;o=0&&s.push(l)}),s}}function AI(e,t){return Tt(Tt({},e,!0),t,!0)}var PI={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},II={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},zl="ZH",Dh="EN",yo=Dh,Hl={},Ah={},C0=ht.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(zl)>-1?zl:yo}():yo;function M0(e,t){e=e.toUpperCase(),Ah[e]=new ee(t),Hl[e]=t}function LI(e){if(wt(e)){var t=Hl[e.toUpperCase()]||{};return e===zl||e===Dh?yt(t):Tt(yt(t),yt(Hl[yo]),!1)}else return Tt(yt(e),yt(Hl[yo]),!1)}function EI(e){return Ah[e]}function RI(){return Ah[yo]}M0(Dh,PI);M0(zl,II);var Ph=1e3,Ih=Ph*60,mo=Ih*60,Ne=mo*24,D0=Ne*365,_o={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Vl="{yyyy}-{MM}-{dd}",A0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Vl,hour:Vl+" "+_o.hour,minute:Vl+" "+_o.minute,second:Vl+" "+_o.second,millisecond:_o.none},Lh=["year","month","day","hour","minute","second","millisecond"],P0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ni(e,t){return e+="","0000".substr(0,t-e.length)+e}function ta(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function OI(e){return e===ta(e)}function kI(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Gl(e,t,r,n){var i=Ir(e),a=i[Eh(r)](),o=i[ea(r)]()+1,s=Math.floor((o-1)/4)+1,l=i[$l(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[So(r)](),c=(f-1)%12+1,h=i[Ul(r)](),v=i[Wl(r)](),d=i[Yl(r)](),y=n instanceof ee?n:EI(n||C0)||RI(),p=y.getModel("time"),g=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,ni(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ni(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ni(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ni(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ni(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,ni(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,ni(d,3)).replace(/{S}/g,d+"")}function BI(e,t,r,n,i){var a=null;if(typeof r=="string")a=r;else if(typeof r=="function")a=r(e.value,t,{level:e.level});else{var o=K({},_o);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(et(a)){var c=e.level==null?0:e.level>=0?e.level:a.length+e.level;c=Math.min(c,a.length-1),a=a[c]}}return Gl(new Date(e.value),a,i,n)}function I0(e,t){var r=Ir(e),n=r[ea(t)]()+1,i=r[$l(t)](),a=r[So(t)](),o=r[Ul(t)](),s=r[Wl(t)](),l=r[Yl(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function L0(e,t,r){var n=typeof e=="number"?Ir(e):e;switch(t=t||I0(e,r),t){case"year":return n[Eh(r)]();case"half-year":return n[ea(r)]()>=6?1:0;case"quarter":return Math.floor((n[ea(r)]()+1)/4);case"month":return n[ea(r)]();case"day":return n[$l(r)]();case"half-day":return n[So(r)]()/24;case"hour":return n[So(r)]();case"minute":return n[Ul(r)]();case"second":return n[Wl(r)]();case"millisecond":return n[Yl(r)]()}}function Eh(e){return e?"getUTCFullYear":"getFullYear"}function ea(e){return e?"getUTCMonth":"getMonth"}function $l(e){return e?"getUTCDate":"getDate"}function So(e){return e?"getUTCHours":"getHours"}function Ul(e){return e?"getUTCMinutes":"getMinutes"}function Wl(e){return e?"getUTCSeconds":"getSeconds"}function Yl(e){return e?"getUTCMilliseconds":"getMilliseconds"}function FI(e){return e?"setUTCFullYear":"setFullYear"}function E0(e){return e?"setUTCMonth":"setMonth"}function R0(e){return e?"setUTCDate":"setDate"}function O0(e){return e?"setUTCHours":"setHours"}function k0(e){return e?"setUTCMinutes":"setMinutes"}function B0(e){return e?"setUTCSeconds":"setSeconds"}function F0(e){return e?"setUTCMilliseconds":"setMilliseconds"}function N0(e){if(!AD(e))return wt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function z0(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Xl=Pg,NI=/([&<>"'])/g,zI={"&":"&","<":"<",">":">",'"':""","'":"'"};function ze(e){return e==null?"":(e+"").replace(NI,function(t,r){return zI[r]})}function ql(e,t,r){var n="{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}";function i(f){return f&&En(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ir(e):e;if(isNaN(+l)){if(s)return"-"}else return Gl(l,n,r)}if(t==="ordinal")return Wf(e)?i(e):Yf(e)&&a(e)?e+"":"-";var u=il(e);return a(u)?N0(u):Wf(e)?i(e):typeof e=="boolean"?e+"":"-"}var H0=["a","b","c","d","e","f","g"],Rh=function(e,t){return"{"+e+(t==null?"":t)+"}"};function V0(e,t,r){et(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function ii(e,t){return t=t||"transparent",wt(e)?e:st(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function G0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Zl=D,VI=["left","right","top","bottom","width","height"],Kl=[["width","left","right"],["height","top","bottom"]];function Oh(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(e==="horizontal"){var y=f.width+(h?-h.x+f.x:0);v=a+y,v>n||l.newline?(a=0,v=y,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(h?-h.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var bo=Oh;Zt(Oh,"vertical");Zt(Oh,"horizontal");function wo(e,t,r){r=Xl(r||0);var n=t.width,i=t.height,a=he(e.left,n),o=he(e.top,i),s=he(e.right,n),l=he(e.bottom,i),u=he(e.width,n),f=he(e.height,i),c=r[2]+r[0],h=r[1]+r[3],v=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new xt(a+r[3],o+r[0],u,f);return d.margin=r,d}function xo(e){var t=e.layoutMode||e.constructor.layoutMode;return st(t)?t:t?{type:t}:null}function ra(e,t,r){var n=r&&r.ignoreSize;!et(n)&&(n=[n,n]);var i=o(Kl[0],0),a=o(Kl[1],1);u(Kl[0],e,i),u(Kl[1],e,a);function o(f,c){var h={},v=0,d={},y=0,p=2;if(Zl(f,function(_){d[_]=e[_]}),Zl(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&y++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(y===p||!v)return d;if(v>=p)return h;for(var g=0;g=0;l--)s=Tt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ro(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(ee);Oy(na,ee);al(na);MI(na);DI(na,UI);function UI(e){var t=[];return D(na.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=ut(t,function(r){return dr(r).main}),e!=="dataset"&&At(t,"dataset")<=0&&t.unshift("dataset"),t}var zt=na,$0="";typeof navigator!="undefined"&&($0=navigator.platform||"");var ia="rgba(0, 0, 0, 0.2)",WI={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ia,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ia,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ia,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ia,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ia,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ia,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$0.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},U0=ft(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),He="original",ye="arrayRows",Sr="objectRows",kr="keyedColumns",sn="typedArray",W0="unknown",Br="column",aa="row",De={Must:1,Might:2,Not:3},Y0=Kt();function YI(e){Y0(e).datasetMap=ft()}function XI(e,t,r){var n={},i=X0(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=Y0(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),D(e,function(y,p){var g=st(y)?y:e[p]={name:y};g.type==="ordinal"&&f==null&&(f=p,c=d(g)),n[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});D(e,function(y,p){var g=y.name,m=d(y);if(f==null){var _=h.valueWayDim;v(n[g],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===p)v(n[g],0,m),v(a,0,m);else{var _=h.categoryWayDim;v(n[g],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(y,p,g){for(var m=0;mt)return e[n];return e[r-1]}function JI(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:QI(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function tL(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ql,To,K0,j0="\0_ec_inner",eL=1,Q0=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new ee(a),this._locale=new ee(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=e_(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,e_(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?K0(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&D(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ft(),u=n&&n.replaceMergeMainTypeMap;YI(this),D(r,function(c,h){c!=null&&(zt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?yt(c):Tt(i[h],c,!0))}),u&&u.each(function(c,h){zt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),zt.topologicalTravel(s,zt.getAllClassMainTypes(),f,this);function f(c){var h=jI(this,c,oe(r[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",y=LD(v,h,d);ND(y,c,zt),i[c]=null,a.set(c,null),o.set(c,0);var p=[],g=[],m=0;D(y,function(_,S){var w=_.existing,b=_.newOption;if(!b)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var x=c==="series",C=zt.getClass(c,_.keyInfo.subType,!x);if(!C)return;if(w&&w.constructor===C)w.name=_.keyInfo.name,w.mergeOption(b,this),w.optionUpdated(b,!1);else{var M=K({componentIndex:S},_.keyInfo);w=new C(b,this,this,M),K(w,M),_.brandNew&&(w.__requireNewView=!0),w.init(b,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),g.push(w),m++):(p.push(void 0),g.push(void 0))},this),i[c]=p,a.set(c,g),o.set(c,m),c==="series"&&Ql(this)}this._seriesIndices||Ql(this)},t.prototype.getOption=function(){var r=yt(this.option);return D(r,function(n,i){if(zt.hasClass(i)){for(var a=oe(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!eo(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[j0],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function hL(e,t){return e.join(",")===t.join(",")}var vL=lL,rr=D,Co=st,i_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Nh(e){var t=e&&e.itemStyle;if(!!t)for(var r=0,n=i_.length;r=0;y--){var p=e[y];if(s||(v=p.data.rawIndexOf(p.stackedByDimension,h)),v>=0){var g=p.data.getByRawIndex(p.stackResultDimension,v);if(c>=0&&g>0||c<=0&&g<0){c=CD(c,g),d=g;break}}}return n[0]=c,n[1]=d,n})})}var Jl=function(){function e(t){this.data=t.data||(t.sourceFormat===kr?{}:[]),this.sourceFormat=t.sourceFormat||W0,this.seriesLayoutBy=t.seriesLayoutBy||Br,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;ny&&(y=_)}v[0]=d,v[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};p_=(t={},t[ye+"_"+Br]={pure:!0,appendData:a},t[ye+"_"+aa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Sr]={pure:!0,appendData:a},t[kr]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[He]={appendData:a},t[sn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(y=o.interpolatedValue[p])}return y!=null?y+"":""})}},e.prototype.getRawValue=function(t,r){return oa(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function x_(e){var t,r;return st(e)?e.type&&(r=e):t=e,{markupText:t,markupFragment:r}}function Ao(e){return new LL(e)}var LL=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return a;function o(){return t=e?null:lo?-this._resultLT:0},e}(),RL=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return tu(t,r)},e}();function OL(e,t){var r=new RL,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Br&&ve(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(y,p){var g=y.name,m={index:p,name:g,displayName:y.displayName};if(s.push(m),g!=null){var _="";je(l,g)&&ve(_),l[g]=m}});else for(var f=0;f65535?GL:$L}function sa(){return[1/0,-1/0]}function UL(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function P_(e,t,r,n,i){var a=A_[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;up[1]&&(p[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ut(o,function(m){return m.property}),f=0;fg[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=c&&m<=h||isNaN(m))&&(l[u++]=y),y++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],S=t[i[1]][0],w=t[i[1]][1],g=0;g=c&&m<=h||isNaN(m))&&(b>=S&&b<=w||isNaN(b))&&(l[u++]=y),y++}d=!0}}if(!d)if(a===1)for(var g=0;g=c&&m<=h||isNaN(m))&&(l[u++]=x)}else for(var g=0;gt[L][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(g))}return ug[1]&&(g[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,v=new(Po(this._rawCount))(Math.ceil(o/l)+2);v[s++]=u;for(var d=1;df&&(f=c,h=S))}v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=a._rawExtent[t]=sa(),h=new(Po(this._rawCount))(Math.ceil(f/l)),v=0,d=0;df-d&&(l=f-d,s.length=l);for(var y=0;yc[1]&&(c[1]=g),h[v++]=m}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return tu(r[a],this._dimensions[a])}Yh={arrayRows:t,objectRows:function(r,n,i,a){return tu(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return tu(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),WL=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(ru(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Te(s)?sn:He,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=Dt(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=Dt(c.sourceHeader,h.sourceHeader)||null,y=Dt(c.dimensions,h.dimensions),p=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||y;i=p?[Vh(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:y},l)]:[]}else{var g=t;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var _=g.get("source",!0);i=[Vh(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&I_(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&I_(c),s.push(f),l.push(u._getVersionSign())}),n?o=HL(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[xL(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||t>0&&!e.noHeader,n=0;D(e.blocks,function(i){qh(i).planLayout(i);var a=i.__gapLevelBetweenSubBlocks;a>=n&&(n=a+(r&&(!a||i.type==="section"&&!i.noHeader)?1:0))}),e.__gapLevelBetweenSubBlocks=n},build:function(e,t,r,n){var i=t.noHeader,a=k_(t),o=qL(e,t,i?r:a.html,n);if(i)return o;var s=ql(t.header,"ordinal",e.useUTC),l=E_(n,e.renderMode).nameStyle;return e.renderMode==="richText"?B_(e,s,l)+a.richText+o:Zh('
'+ze(s)+"
"+o,r)}},nameValue:{planLayout:function(e){e.__gapLevelBetweenSubBlocks=0},build:function(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=t.value,f=e.useUTC;if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":ql(l,"ordinal",f),v=t.valueType,d=o?[]:et(u)?ut(u,function(S,w){return ql(S,et(v)?v[w]:v,f)}):[ql(u,et(v)?v[0]:v,f)],y=!s||!a,p=!s&&a,g=E_(n,i),m=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":c)+(a?"":B_(e,h,m))+(o?"":jL(e,d,y,p,_)):Zh((s?"":c)+(a?"":ZL(h,!s,m))+(o?"":KL(d,y,p,_)),r)}}}};function qL(e,t,r,n){var i=[],a=t.blocks||[];fr(!a||et(a)),a=a||[];var o=e.orderMode;if(t.sortBlocks&&o){a=a.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(je(s,o)){var l=new EL(s[o],null);a.sort(function(f,c){return l.evaluate(f.sortParam,c.sortParam)})}else o==="seriesDesc"&&a.reverse()}var u=k_(t);if(D(a,function(f,c){var h=qh(f).build(e,f,c>0?u.html:0,n);h!=null&&i.push(h)}),!!i.length)return e.renderMode==="richText"?i.join(u.richText):Zh(i.join(""),r)}function O_(e,t,r,n,i,a){if(!!e){var o=qh(e);o.planLayout(e);var s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t};return o.build(s,e,0,a)}}function k_(e){var t=e.__gapLevelBetweenSubBlocks;return{html:YL[t],richText:XL[t]}}function Zh(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function ZL(e,t,r){var n=t?"margin-left:2px":"";return''+ze(e)+""}function KL(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return''+ut(e,function(o){return ze(o)}).join("  ")+""}function B_(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function jL(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(t.join(" "),a)}function QL(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return ii(n)}function F_(e,t){var r=e.get("padding");return r!=null?r:t==="richText"?[8,10]:10}var Kh=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Cy()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=HI({color:r,type:t,renderMode:n,markerId:i});return wt(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};et(r)?D(r,function(a){return K(n,a)}):K(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function JL(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=et(s),u=QL(t,r),f,c,h,v;if(o>1||l&&!o){var d=tE(s,t,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var y=i.getDimensionInfo(a[0]);v=f=oa(i,r,a[0]),c=y.type}else v=f=l?s[0]:s;var p=Bc(t),g=p&&t.name||"",m=i.getName(r),_=n?g:m;return Io("section",{header:g,noHeader:n||!p,sortParam:v,blocks:[Io("nameValue",{markerType:"item",markerColor:u,name:_,noName:!En(_),value:f,valueType:c})].concat(h||[])})}function tE(e,t,r,n,i){var a=t.getData(),o=Uf(e,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(c){f(oa(a,r,c),c)}):D(e,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Io("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ln=Kt();function nu(e,t){return e.getName(t)||e.getId(t)}var eE="__universalTransitionEnabled",iu=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ao({count:nE,reset:iE}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=ln(this).sourceManager=new WL(this);a.prepareSource();var o=this.getInitialData(r,i);z_(o,this),this.dataTask.context.data=o,ln(this).dataBeforeProcessed=o,N_(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=xo(this),a=i?jl(r):{},o=this.subType;zt.hasClass(o)&&(o+="Series"),Tt(r,n.getTheme().get(this.subType)),Tt(r,this.getDefaultOption()),Py(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&ra(r,a,i)},t.prototype.mergeOption=function(r,n){r=Tt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=xo(this);i&&ra(this.option,r,i);var a=ln(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);z_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ln(this).dataBeforeProcessed=o,N_(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Te(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=kh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(!!i)for(var a=this.getData(n),o=0;o=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n),o=nu(a,r);return i[o]||!1},t.prototype.isUniversalTransitionEnabled=function(){if(this[eE])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option.selectedMode,s=n.length;if(!(!o||!s)){if(o==="multiple")for(var l=this.option.selectedMap||(this.option.selectedMap={}),u=0;u0&&this._innerSelect(r,n)}},t.registerClass=function(r){return zt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(zt);ur(iu,IL);ur(iu,kh);Oy(iu,zt);function N_(e){var t=e.name;Bc(e)||(e.name=rE(e)||t)}function rE(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function nE(e){return e.model.getRawData().count()}function iE(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),aE}function aE(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function z_(e,t){D(iM(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Zt(oE,t))})}function oE(e,t){var r=jh(e);return r&&r.setOutputEnd((t||this).count()),t}function jh(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Lo=iu,Qh=function(){function e(){this.group=new $t,this.uid=Nl("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.blurSeries=function(t,r){},e}();zc(Qh);al(Qh);var Nr=Qh;function Jh(){var e=Kt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var H_=Kt(),sE=Jh(),tv=function(){function e(){this.group=new $t,this.uid=Nl("viewChart"),this.renderTask=Ao({plan:lE,reset:uE}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){G_(t.getData(),i,"emphasis")},e.prototype.downplay=function(t,r,n,i){G_(t.getData(),i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.markUpdateMethod=function(t,r){H_(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function V_(e,t,r){e&&(t==="emphasis"?Tl:Cl)(e,r)}function G_(e,t,r){var n=Vn(e,t),i=t&&t.highlightKey!=null?dP(t.highlightKey):null;n!=null?D(oe(n),function(a){V_(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){V_(a,r,i)})}zc(tv);al(tv);function lE(e){return sE(e.model)}function uE(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&H_(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),fE[l]}var fE={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},un=tv,$_="\0__throttleOriginMethod",U_="\0__throttleRate",W_="\0__throttleType";function ev(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function cE(e,t,r,n){var i=e[t];if(!!i){var a=i[$_]||i,o=i[W_],s=i[U_];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=ev(a,r,n==="debounce"),i[$_]=a,i[W_]=n,i[U_]=r}return i}}var Y_=Kt(),X_={itemStyle:no(T0,!0),lineStyle:no(x0,!0)},hE={lineStyle:"stroke",itemStyle:"fill"};function q_(e,t){var r=e.visualStyleMapper||X_[t];return r||(console.warn("Unkown style type '"+t+"'."),X_.itemStyle)}function Z_(e,t){var r=e.visualDrawType||hE[t];return r||(console.warn("Unkown style type '"+t+"'."),"fill")}var vE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=q_(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Z_(e,n),u=o[l],f=Xt(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||typeof o.fill=="function"?h:o.fill,o.stroke=o.stroke==="auto"||typeof o.stroke=="function"?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var y=e.getDataParams(d),p=K({},o);p[l]=f(y),v.setItemVisual(d,"style",p)}}}},Eo=new ee,dE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=q_(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Eo.option=l[n];var u=i(Eo),f=o.ensureUniqueItemVisual(s,"style");K(f,u),Eo.option.decal&&(o.setItemVisual(s,"decal",Eo.option.decal),Eo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},pE={performRawSeries:!0,overallReset:function(e){var t=ft();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Y_(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Y_(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Z_(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},au=Math.PI;function gE(e,t){t=t||{},Ct(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new $t,n=new Yt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new le({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Yt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new ph({shape:{startAngle:-au/2,endAngle:-au/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:au*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:au*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var yE=function(){function e(t,r,n,i){this._stageTaskMap=ft(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ft();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";fr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;D(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var y=o.getPerformArgs(h,i.block);d.each(function(p){p.perform(y)}),h.perform(y)&&(a=!0)}else c&&c.each(function(p,g){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ft(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Ao({plan:wE,reset:xE,count:CE}));v.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ao({reset:mE});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ft(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";fr(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,D(n.getSeries(),d));function d(y){var p=y.uid,g=l.set(p,s&&s.get(p)||(h=!0,Ao({reset:_E,onDirty:bE})));g.context={model:y,overallProgress:c},g.agent=o,g.__block=c,a._pipe(y,g)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return Xt(t)&&(t={overallReset:t,seriesType:ME(t)}),t.uid=Nl("stageHandler"),r&&(t.visualType=r),t},e}();function mE(e){e.overallReset(e.ecModel,e.api,e.payload)}function _E(e){return e.overallProgress&&SE}function SE(){this.agent.dirty(),this.getDownstream().dirty()}function bE(){this.agent&&this.agent.dirty()}function wE(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function xE(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=oe(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ut(t,function(r,n){return K_(n)}):TE}var TE=K_(0);function K_(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),IE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;var n=e.get("symbol"),i=e.get("symbolSize"),a=e.get("symbolKeepAspect"),o=e.get("symbolRotate"),s=e.get("symbolOffset"),l=Xt(n),u=Xt(i),f=Xt(o),c=Xt(s),h=l||u||f||c,v=!l&&n?n:e.defaultSymbol,d=u?null:i,y=f?null:o,p=c?null:s;if(r.setVisual({legendIcon:e.legendIcon||v,symbol:v,symbolSize:d,symbolKeepAspect:a,symbolRotate:y,symbolOffset:p}),t.isSeriesFiltered(e))return;function g(m,_){var S=e.getRawValue(_),w=e.getDataParams(_);l&&m.setItemVisual(_,"symbol",n(S,w)),u&&m.setItemVisual(_,"symbolSize",i(S,w)),f&&m.setItemVisual(_,"symbolRotate",o(S,w)),c&&m.setItemVisual(_,"symbolOffset",s(S,w))}return{dataEach:h?g:null}}},LE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){var o=i.getItemModel(a),s=o.getShallow("symbol",!0),l=o.getShallow("symbolSize",!0),u=o.getShallow("symbolRotate",!0),f=o.getShallow("symbolOffset",!0),c=o.getShallow("symbolKeepAspect",!0);s!=null&&i.setItemVisual(a,"symbol",s),l!=null&&i.setItemVisual(a,"symbolSize",l),u!=null&&i.setItemVisual(a,"symbolRotate",u),f!=null&&i.setItemVisual(a,"symbolOffset",f),c!=null&&i.setItemVisual(a,"symbolKeepAspect",c)}return{dataEach:r.hasItemOption?n:null}}};function EE(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function RE(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function la(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=i.selected,u=0;u0)?null:(t=t||1,e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Yf(e)?[e]:et(e)?e:null)}var jE=new Zn(!0);function lu(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function o1(e){return typeof e=="string"&&e!=="none"}function uu(e){var t=e.fill;return t!=null&&t!=="none"}function s1(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function l1(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function iv(e,t,r){var n=ky(t.image,t.__image,r);if(ol(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i.setTransform){var a=new DOMMatrix;a.rotateSelf(0,0,(t.rotation||0)/Math.PI*180),a.scaleSelf(t.scaleX||1,t.scaleY||1),a.translateSelf(t.x||0,t.y||0),i.setTransform(a)}return i}}function QE(e,t,r,n){var i=lu(r),a=uu(r),o=r.strokePercent,s=o<1,l=!t.path;(!t.silent||s)&&l&&t.createPathProxy();var u=t.path||jE;if(!n){var f=r.fill,c=r.stroke,h=a&&!!f.colorStops,v=i&&!!c.colorStops,d=a&&!!f.image,y=i&&!!c.image,p=void 0,g=void 0,m=void 0,_=void 0,S=void 0;(h||v)&&(S=t.getBoundingRect()),h&&(p=t.__dirty?nv(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=p),v&&(g=t.__dirty?nv(e,c,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=g),d&&(m=t.__dirty||!t.__canvasFillPattern?iv(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=m),y&&(_=t.__dirty||!t.__canvasStrokePattern?iv(e,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=m),h?e.fillStyle=p:d&&(m?e.fillStyle=m:a=!1),v?e.strokeStyle=g:y&&(_?e.strokeStyle=_:i=!1)}var w=r.lineDash&&r.lineWidth>0&&a1(r.lineDash,r.lineWidth),b=r.lineDashOffset,x=!!e.setLineDash,C=t.getGlobalScale();if(u.setScale(C[0],C[1],t.segmentIgnoreThreshold),w){var M=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;M&&M!==1&&(w=ut(w,function(I){return I/M}),b/=M)}var L=!0;(l||t.__dirty&Vi||w&&!x&&i)&&(u.setDPR(e.dpr),s?u.setContext(null):(u.setContext(e),L=!1),u.reset(),w&&!x&&(u.setLineDash(w),u.setLineDashOffset(b)),t.buildPath(u,t.shape,n),u.toStatic(),t.pathUpdated()),L&&u.rebuildPath(e,s?o:1),w&&x&&(e.setLineDash(w),e.lineDashOffset=b),n||(r.strokeFirst?(i&&l1(e,r),a&&s1(e,r)):(a&&s1(e,r),i&&l1(e,r))),w&&x&&e.setLineDash([])}function JE(e,t,r){var n=t.__image=ky(r.image,t.__image,t,t.onload);if(!(!n||!ol(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;e.drawImage(n,u,f,c,h,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function t2(e,t,r){var n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||Wi,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0;if(e.setLineDash){var a=r.lineDash&&r.lineWidth>0&&a1(r.lineDash,r.lineWidth),o=r.lineDashOffset;if(a){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&s!==1&&(a=ut(a,function(l){return l/s}),o/=s),e.setLineDash(a),e.lineDashOffset=o,i=!0}}r.strokeFirst?(lu(r)&&e.strokeText(n,r.x,r.y),uu(r)&&e.fillText(n,r.x,r.y)):(uu(r)&&e.fillText(n,r.x,r.y),lu(r)&&e.strokeText(n,r.x,r.y)),i&&e.setLineDash([])}}var u1=["shadowBlur","shadowOffsetX","shadowOffsetY"],f1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function c1(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){a||(me(e,i),a=!0);var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?$n.opacity:o}(n||t.blend!==r.blend)&&(a||(me(e,i),a=!0),e.globalCompositeOperation=t.blend||$n.blend);for(var s=0;s=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(c=k1(f,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var v=i;i=new $t,i.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Yt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var f=ov[s];if(f&&je(ov,s)){l=f.call(this,t,r);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var v=A1[s];if(v&&je(A1,s)){var d=v.call(this,t),y=t.getAttribute("id");y&&(this._defs[y]=d)}}if(l&&l.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,l,n,u,a,o):p.nodeType===3&&o&&this._parseText(p,l),p=p.nextSibling},e.prototype._parseText=function(t,r){var n=new ml({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),f2(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){ov={g:function(t,r){var n=new $t;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Yt;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new Al;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new nn;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new fh;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=L1(n));var a=new vh({shape:{points:i||[]},silent:!0});return Ge(r,a),Ae(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=L1(n));var a=new dh({shape:{points:i||[]},silent:!0});return Ge(r,a),Ae(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Rr;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new $t;return Ge(r,s),Ae(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new $t;return Ge(r,s),Ae(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=$m(n);return Ge(r,i),Ae(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),A1={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new gh(t,r,n,i);return P1(e,a),I1(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new s0(t,r,n);return P1(e,i),I1(e,i),i}};function P1(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function I1(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};O1(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Ge(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ct(t.__inheritedStyle,e.__inheritedStyle))}function L1(e){for(var t=hu(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=hu(o);switch(i=i||$i(),s){case"translate":js(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":oy(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Qs(i,i,-parseFloat(l[0])*sv);break;case"skewX":var u=Math.tan(parseFloat(l[0])*sv);Ar(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*sv);Ar(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var R1=/([^\s:;]+)\s*:\s*([^:;]+)/g;function O1(e,t,r){var n=e.getAttribute("style");if(!!n){R1.lastIndex=0;for(var i;(i=R1.exec(n))!=null;){var a=i[1],o=je(fu,a)?fu[a]:null;o&&(t[o]=i[2]);var s=je(cu,a)?cu[a]:null;s&&(r[s]=i[2])}}}function g2(e,t,r){for(var n=0;n>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function M2(e,t){return e=C2(e),ut(xe(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];if(i.type==="Polygon"){var o=i.coordinates;a.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if(i.type==="MultiPolygon"){var o=i.coordinates;D(o,function(u){u[0]&&a.push({type:"polygon",exterior:u[0],interiors:u.slice(1)})})}var s=new z1(n[t||"name"],a,n.cp);return s.properties=n,s})}var lv=[126,25],V1="\u5357\u6D77\u8BF8\u5C9B",li=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var ui=0;ui0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.setOption=function(r,n,i){if(this._disposed){Pe(this.id);return}var a,o,s;if(st(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[br]=!0,!this._model||n){var l=new vL(this._api),u=this._theme,f=this._model=new r_;f.scheduler=this._scheduler,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},_v);var c={seriesTransition:s,optionChanged:!0};i?(this[$e]={silent:a,updateParams:c},this[br]=!1,this.getZr().wakeUp()):(ca(this),cn.update.call(this,null,c),this._zr.flush(),this[$e]=null,this[br]=!1,Fo.call(this,a),No.call(this,a))},t.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||H2&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){if(!!ht.canvasSupported)return r=r||{},this._zr.painter.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.getSvgDataURL=function(){if(!!ht.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){Pe(this.id);return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;D(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){Pe(this.id);return}if(!!ht.canvasSupported){var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(oS[i]){var l=s,u=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();D(Vo,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.getRenderedCanvas(yt(r)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),h.push({dom:w,left:b.left,top:b.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,y=c-u,p=Fs(),g=my(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:y}),n){var m="";return D(h,function(_){var S=_.left-l,w=_.top-u;m+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Yt({shape:{x:0,y:0,width:d,height:y},style:{fill:r.connectedBackgroundColor}})),D(h,function(_){var S=new Rr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)}},t.prototype.convertToPixel=function(r,n){return vv(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return vv(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){Pe(this.id);return}var i=this._model,a,o=Fc(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Fc(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?EE(s,l,n):RE(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(eR,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Oo(s,function(d){var y=kt(d);if(y&&y.dataIndex!=null){var p=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return l=p&&p.getDataParams(y.dataIndex,y.dataType)||{},!0}else if(y.eventData)return l=K({},y.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),D(Ho,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),OE(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){Pe(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){Pe(this.id);return}this._disposed=!0,Ey(this.getDom(),bv,"");var r=this,n=r._api,i=r._model;D(r._componentsViews,function(a){a.dispose(i,n)}),D(r._chartsViews,function(a){a.dispose(i,n)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Vo[r.id]},t.prototype.resize=function(r){if(this._disposed){Pe(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[$e]&&(a==null&&(a=this[$e].silent),i=!0,this[$e]=null),this[br]=!0,i&&ca(this),cn.update.call(this,{type:"resize",animation:K({duration:0},r&&r.animation)}),this[br]=!1,Fo.call(this,a),No.call(this,a)}},t.prototype.showLoading=function(r,n){if(this._disposed){Pe(this.id);return}if(st(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Sv[r]){var i=Sv[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){Pe(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=K({},r);return n.type=Ho[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){Pe(this.id);return}if(st(n)||(n={silent:!!n}),!!gu[r.type]&&!!this._model){if(this[br]){this._pendingActions.push(r);return}var i=n.silent;pv.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ht.browser.weChat&&this._throttledZrFlush(),Fo.call(this,i),No.call(this,i)}},t.prototype.updateLabelLayout=function(){nr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){Pe(this.id);return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ca=function(u){var f=u._scheduler;f.restorePipelines(u._model),f.prepareStageTasks(),hv(u,!0),hv(u,!1),f.plan()},hv=function(u,f){for(var c=u._model,h=u._scheduler,v=f?u._componentsViews:u._chartsViews,d=f?u._componentsMap:u._chartsMap,y=u._zr,p=u._api,g=0;gf.get("hoverLayerThreshold")&&!ht.node&&!ht.worker&&f.eachSeries(function(d){if(!d.preventUsingHoverLayer){var y=u._chartsMap[d.__viewId];y.__alive&&y.group.traverse(function(p){p.states.emphasis&&(p.states.emphasis.hoverLayer=!0)})}})}function i(u,f){var c=u.get("blendMode")||null;f.group.traverse(function(h){h.isGroup||(h.style.blend=c),h.eachPendingDisplayable&&h.eachPendingDisplayable(function(v){v.style.blend=c})})}function a(u,f){u.preventAutoZ||o(f.group,u.get("z")||0,u.get("zlevel")||0,-1/0)}function o(u,f,c,h){var v=u.getTextContent(),d=u.getTextGuideLine(),y=u.isGroup;if(y)for(var p=u.childrenRef(),g=0;g0?{duration:v,delay:c.get("delay"),easing:c.get("easing")}:null;f.group.traverse(function(y){if(y.states&&y.states.emphasis){if(go(y))return;if(y instanceof Rt&&pP(y),y.__dirty){var p=y.prevStates;p&&y.useStates(p)}if(h){y.stateTransition=d;var g=y.getTextContent(),m=y.getTextGuideLine();g&&(g.stateTransition=d),m&&(m.stateTransition=d)}y.__dirty&&r(y)}})}eS=function(u){return new(function(f){Z(c,f);function c(){return f!==null&&f.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return u._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(h){for(;h;){var v=h.__ecComponentInfo;if(v!=null)return u._model.getComponent(v.mainType,v.index);h=h.parent}},c.prototype.enterEmphasis=function(h,v){Tl(h,v),Ue(u)},c.prototype.leaveEmphasis=function(h,v){Cl(h,v),Ue(u)},c.prototype.enterBlur=function(h){aP(h),Ue(u)},c.prototype.leaveBlur=function(h){Dm(h),Ue(u)},c.prototype.enterSelect=function(h){Am(h),Ue(u)},c.prototype.leaveSelect=function(h){Pm(h),Ue(u)},c.prototype.getModel=function(){return u.getModel()},c.prototype.getViewOfComponentModel=function(h){return u.getViewOfComponentModel(h)},c.prototype.getViewOfSeriesModel=function(h){return u.getViewOfSeriesModel(h)},c}(n_))(u)},rS=function(u){function f(c,h){for(var v=0;v=0)){fS.push(r);var a=J_.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function cS(e,t){Sv[e]=t}function lR(e,t,r){N2.registerMap(e,t,r)}var uR=zL;fi(uv,vE);fi(vu,dE);fi(vu,pE);fi(uv,IE);fi(vu,LE);fi(U1,l2);lS(f_);uS($2,bL);cS("default",gE);ha({type:Qn,event:Qn,update:Qn},Dr);ha({type:bl,event:bl,update:bl},Dr);ha({type:uo,event:uo,update:uo},Dr);ha({type:wl,event:wl,update:wl},Dr);ha({type:fo,event:fo,update:fo},Dr);sS("light",DE);sS("dark",AE);function Go(e){return e==null?0:e.length||1}function hS(e){return e}var fR=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||hS,this._newKeyGetter=i||hS,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var v=0;v1)for(var s=0;s30}var $o=st,hn=ut,_R=typeof Int32Array=="undefined"?Array:Int32Array,SR="e\0\0",mS=-1,bR=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],wR=["_approximateExtent"],_S,_u,Uo,Wo,Cv,Su,Mv,xR=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;dS(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===He;if(l&&!i.pure)for(var u=[],f=t;f0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),et(a)?a=a.slice():$o(a)&&(a=K({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,$o(r)?K(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){if($o(t)){for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);return}this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?K(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;ZA(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:hn(this.dimensions,this._getDimInfo,this),this.hostModel)),Cv(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];typeof n=="function"&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(qf(arguments)))})},e.internalField=function(){_S=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new _R(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[r]=l}}}(),e}(),TR=xR;function CR(e,t){Hh(e)||(e=Gh(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ft(),a=[],o=DR(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&yS(o),l=n===e.dimensionsDefine,u=l?gS(e):pS(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=ft(f),h=new M_(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function DR(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;st(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function AR(e,t,r){var n=t.data;if(r||n.hasOwnProperty(e)){for(var i=0;n.hasOwnProperty(e+i);)i++;e+=i}return t.set(e,!0),e}var PR=function(){function e(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return e}();function IR(e){var t=e.get("coordinateSystem"),r=new PR(t),n=LR[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var LR={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Je).models[0],a=e.getReferringComponents("yAxis",Je).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),va(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),va(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Je).models[0];t.coordSysDims=["single"],r.set("single",i),va(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Je).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),va(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),va(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),va(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function va(e){return e.get("type")==="category"}function ER(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;RR(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,h;if(D(a,function(m,_){wt(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,y=0;D(a,function(m){m.coordDim===v&&y++});var p={name:c,coordDim:v,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:h,coordDim:h,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function RR(e){return!dS(e.schema)}function Yo(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function OR(e,t){return Yo(e,t)?e.getCalculationInfo("stackResultDimension"):t}function kR(e,t){var r=e.get("coordinateSystem"),n=Fh.get(r),i;return t&&t.coordSysDims&&(i=ut(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=dR(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function BR(e,t,r){var n,i;return r&&D(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function FR(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=Gh(e)):(i=n.getSource(),a=i.sourceFormat===He);var o=IR(t),s=kR(t,o),l=r.useEncodeDefaulter,u=Xt(l)?l:l?Zt(XI,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=CR(i,f),h=BR(c.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=ER(t,{schema:c,store:v}),y=new TR(c,t);y.setCalculationInfo(d);var p=h!=null&&NR(i)?function(g,m,_,S){return S===h?_:this.defaultDimValueGetter(g,m,_,S)}:null;return y.hasItemOption=!1,y.initData(a?i:v,null,p),y}function NR(e){if(e.sourceFormat===He){var t=zR(e.data||[]);return t!=null&&!et(Ja(t))}}function zR(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();al(SS);var zr=SS,HR=0,VR=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++HR}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&ut(n,GR);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(typeof t!="string"&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},e}();function GR(e){return st(e)&&e.value!=null?e.value:e+""}var Dv=VR,bS=ae;function $R(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=Ty(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=wS(o),l=i.niceTickExtent=[bS(Math.ceil(e[0]/o)*o,s),bS(Math.floor(e[1]/o)*o,s)];return UR(l,e),i}function wS(e){return Pr(e)+2}function xS(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function UR(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),xS(e,0,t),xS(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function bu(e,t){return e>=t[0]&&e<=t[1]}function wu(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function xu(e,t){return e*(t[1]-t[0])+t[0]}var TS=function(e){Z(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Dv({})),et(i)&&(i=new Dv({categories:ut(i,function(a){return st(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return typeof r=="string"?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),bu(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),wu(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(xu(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.niceTicks=function(){},t.prototype.niceExtent=function(){},t.type="ordinal",t}(zr);zr.registerClass(TS);var CS=TS,ci=ae,MS=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return bu(r,this._extent)},t.prototype.normalize=function(r){return wu(r,this._extent)},t.prototype.scale=function(r){return xu(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=wS(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:ci(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function IS(e){var t=XR(e),r=[];return D(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=he(n.get("barWidth"),s),y=he(n.get("barMaxWidth"),s),p=he(n.get("barMinWidth")||1,s),g=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:p,barGap:g,barCategoryGap:m,axisKey:PS(a),stackId:AS(n)})}),qR(r)}function qR(e){var t={};D(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ht(a).length;s=Math.max(35-l*4,15)+"%"}var u=he(s,o),f=he(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),D(a,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,c-=S+f*S,h--}else{var S=v;m&&mS&&(S=_),S!==v&&(g.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,y;D(a,function(g,m){g.width||(g.width=v),y=g,d+=g.width*(1+f)}),y&&(d-=y.width*f);var p=-d/2;D(a,function(g,m){r[i][m]=r[i][m]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}function LS(e,t,r){if(e&&t){var n=e[PS(t)];return n!=null&&r!=null?n[AS(r)]:n}}Jh();function ES(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function RS(e){return e.pipelineContext&&e.pipelineContext.large}function ZR(e,t,r){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var KR=function(e,t,r,n){for(;r>>1;e[i][1]i&&(this._approxInterval=i);var s=Cu.length,l=Math.min(KR(Cu,this._approxInterval,0,s),s-1);this._interval=Cu[l][1],this._minLevelUnit=Cu[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return typeof r=="number"?r:+Ir(r)},t.prototype.contain=function(r){return bu(this.parse(r),this._extent)},t.prototype.normalize=function(r){return wu(this.parse(r),this._extent)},t.prototype.scale=function(r){return xu(r,this._extent)},t.type="time",t}(Tu),Cu=[["second",Ph],["minute",Ih],["hour",mo],["quarter-day",mo*6],["half-day",mo*12],["day",Ne*1.2],["half-week",Ne*3.5],["week",Ne*7],["month",Ne*31],["quarter",Ne*95],["half-year",D0/2],["year",D0]];function jR(e,t,r,n){var i=Ir(t),a=Ir(r),o=function(d){return L0(i,d,n)===L0(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function QR(e,t){return e/=Ne,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function JR(e){var t=30*Ne;return e/=t,e>6?6:e>3?3:e>2?2:1}function tO(e){return e/=mo,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function kS(e,t){return e/=t?Ih:Ph,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function eO(e){return Ty(e,!0)}function rO(e,t,r){var n=new Date(e);switch(ta(t)){case"year":case"month":n[E0(r)](0);case"day":n[R0(r)](1);case"hour":n[O0(r)](0);case"minute":n[k0(r)](0);case"second":n[B0(r)](0),n[F0(r)](0)}return n.getTime()}function nO(e,t,r,n){var i=1e4,a=P0,o=0;function s(L,I,P,E,B,k,Y){for(var q=new Date(I),U=I,Q=q[E]();U1&&k===0&&P.unshift({value:P[0].value-U})}}for(var k=0;k=n[0]&&m<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(p),c>_||e===a[v]))break}f=[]}}}for(var S=xe(ut(u,function(L){return xe(L,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(L){return L.length>0}),w=[],b=S.length-1,v=0;v0;)a*=10;var s=[ae(sO(n[0]/a)*a),ae(oO(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.niceExtent=function(r){Xo.niceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=We(r)/We(this.base),bu(r,this._extent)},t.prototype.normalize=function(r){return r=We(r)/We(this.base),wu(r,this._extent)},t.prototype.scale=function(r){return r=xu(r,this._extent),Mu(this.base,r)},t.type="log",t}(zr),FS=Pv.prototype;FS.getMinorTicks=Xo.getMinorTicks;FS.getLabel=Xo.getLabel;function Du(e,t){return aO(e,Pr(t))}zr.registerClass(Pv);var lO=Pv,uO=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[cO[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=fO[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),fO={min:"_determinedMin",max:"_determinedMax"},cO={min:"_dataMin",max:"_dataMax"};function hO(e,t,r){var n=e.rawExtentInfo;return n||(n=new uO(e,t,r),e.rawExtentInfo=n,n)}function Au(e,t){return t==null?null:Xf(t)?NaN:e.parse(t)}function vO(e,t){var r=e.type,n=hO(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=YR("bar",o),l=!1;if(D(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=IS(s),f=dO(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function dO(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=LS(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;D(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,h=f/c-f;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function NS(e,t){var r=t,n=vO(e,r),i=n.extent,a=r.get("splitNumber");e instanceof lO&&(e.base=r.get("logBase"));var o=e.type;e.setExtent(i[0],i[1]),e.niceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:o==="interval"||o==="time"?r.get("minInterval"):null,maxInterval:o==="interval"||o==="time"?r.get("maxInterval"):null});var s=r.get("interval");s!=null&&e.setInterval&&e.setInterval(s)}function pO(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new CS({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new iO({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(zr.getClass(t)||Tu)}}function gO(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function qo(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):typeof t=="string"?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):typeof t=="function"?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(Iv(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Iv(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function yO(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof CS?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=qo(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f=0||(HS.push(e),Xt(e)&&(e={install:e}),e.install(bO))}var Zo=Kt();function wO(e){return e.type==="category"?TO(e):MO(e)}function xO(e,t){return e.type==="category"?CO(e,t):{ticks:ut(e.scale.getTicks(),function(r){return r.value})}}function TO(e){var t=e.getLabelModel(),r=VS(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function VS(e,t){var r=GS(e,"labels"),n=Lv(t),i=$S(r,n);if(i)return i;var a,o;return Xt(n)?a=YS(e,n):(o=n==="auto"?DO(e):n,a=WS(e,o)),US(r,n,{labels:a,labelCategoryInterval:o})}function CO(e,t){var r=GS(e,"ticks"),n=Lv(t),i=$S(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Xt(n))a=YS(e,n,!0);else if(n==="auto"){var s=VS(e,e.getLabelModel());o=s.labelCategoryInterval,a=ut(s.labels,function(l){return l.tickValue})}else o=n,a=WS(e,o,!0);return US(r,n,{ticks:a,tickCategoryInterval:o})}function MO(e){var t=e.scale.getTicks(),r=qo(e);return{labels:ut(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function GS(e,t){return Zo(e)[t]||(Zo(e)[t]=[])}function $S(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,y=0,p=Pc(r({value:l}),t.font,"center","top");d=p.width*1.3,y=p.height*1.3,h=Math.max(h,d,7),v=Math.max(v,y,7)}var g=h/f,m=v/c;isNaN(g)&&(g=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(g,m))),S=Zo(e.model),w=e.getExtent(),b=S.lastAutoInterval,x=S.lastTickCount;return b!=null&&x!=null&&Math.abs(b-_)<=1&&Math.abs(x-o)<=1&&b>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function PO(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function WS(e,t,r){var n=qo(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=zS(e),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==a[0]&&y(a[0]);for(var d=u;d<=a[1];d+=l)y(d);v&&d-l!==a[1]&&y(a[1]);function y(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:p})}return s}function YS(e,t,r){var n=e.scale,i=qo(e),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var XS=[0,1],IO=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return TD(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),qS(n,i.count())),by(t,XS,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),qS(n,i.count()));var a=by(t,n,XS,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=xO(this,r),i=n.ticks,a=ut(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return LO(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=ut(n,function(a){return ut(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return wO(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return AO(this)},e}();function qS(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function LO(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;D(t,function(v){v.coord-=u/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var c=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(v,d){return v=ae(v),d=ae(d),c?v>d:vn[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(EO),XO=YO;function kv(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(y,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Fa(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function JS(e){return e.get("coordinateSystem")==="cartesian2d"}function tb(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Je).models[0];t[n]=a}),t}var qO=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ov,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model),D(n.x,function(a){NS(a.scale,a.model)}),D(n.y,function(a){NS(a.scale,a.model)});var i={};D(n.x,function(a){eb(n,"y",a,i)}),D(n.y,function(a){eb(n,"x",a,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=wo(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=yO(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),ZO(u,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}st(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):nl(i-vn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),nb={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0];o&&(ie(s,s,o),ie(l,l,o));var u=K({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new nn({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",r.add(f);var c=t.get(["axisLine","symbol"]);if(c!=null){var h=t.get(["axisLine","symbolSize"]);typeof c=="string"&&(c=[c,c]),(typeof h=="string"||typeof h=="number")&&(h=[h,h]);var v=i1(t.get(["axisLine","symbolOffset"])||0,h),d=h[0],y=h[1];D([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(p,g){if(c[g]!=="none"&&c[g]!=null){var m=ua(c[g],-d/2,-y/2,d,y,u.stroke,!0),_=p.r+p.offset;m.attr({rotation:p.rotate,x:s[0]+_*Math.cos(e.rotation),y:s[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),r.add(m)}})}}},axisTickLabel:function(e,t,r,n){var i=JO(r,n,t,e),a=ek(r,n,t,e);if(QO(t,a,i),tk(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=RO(ut(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));OO(o)}},axisName:function(e,t,r,n){var i=Fa(e.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,ab(a)?e.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*vn/180);var d;ab(a)?h=vi.innerTextLayout(e.rotation,v!=null?v:e.rotation,o):(h=jO(e.rotation,a,v||0,u),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var y=s.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,m=Fa(e.nameTruncateMaxWidth,p.maxWidth,d),_=new le({x:c[0],y:c[1],rotation:h.rotation,silent:vi.isLabelSilent(t),style:on(s,{text:i,font:y,overflow:"truncate",width:m,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(xh({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=vi.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,kt(_).eventData=S}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function jO(e,t,r,n){var i=wy(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return nl(i-vn/2)?(o=l?"bottom":"top",a="center"):nl(i-vn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ivn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function QO(e,t,r){if(!zS(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],f=r[1],c=r[r.length-1],h=r[r.length-2];n===!1?(Ye(a),Ye(u)):ib(a,o)&&(n?(Ye(o),Ye(f)):(Ye(a),Ye(u))),i===!1?(Ye(s),Ye(c)):ib(l,s)&&(i?(Ye(l),Ye(h)):(Ye(s),Ye(c)))}}function Ye(e){e&&(e.ignore=!0)}function ib(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Ks([]);return Qs(i,i,-e.rotation),r.applyTransform(Ar([],i,e.getLocalTransform())),n.applyTransform(Ar([],i,t.getLocalTransform())),r.intersect(n)}}function ab(e){return e==="middle"||e==="center"}function ob(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function sk(e){var t=Nv(e);if(!!t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=zv(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=Nv(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=di(t).pointerEl=new vI[a.type](vb(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=di(t).labelEl=new le(vb(r.label));t.add(a),gb(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=di(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=di(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),gb(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=bh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Bg(u.event)},onmousedown:Vv(this._onHandleDragMove,this,0,0),drift:Vv(this._onHandleDragMove,this),ondragend:Vv(this._onHandleDragEnd,this)}),n.add(i)),yb(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");et(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,cE(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){db(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Gv(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(Gv(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Gv(i)),di(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function db(e,t,r,n){pb(di(r).lastProp,n)||(di(r).lastProp=n,t?an(r,n,e):(r.stopAnimation(),r.attr(n)))}function pb(e,t){if(st(e)&&st(t)){var r=!0;return D(t,function(n,i){r=r&&pb(e[i],n)}),!!r}else return e===t}function gb(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Gv(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function yb(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}var _k=mk;function Sk(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function bk(e,t,r,n,i){var a=r.get("value"),o=mb(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Xl(s.get("padding")||0),u=s.getFont(),f=Pc(o,u),c=i.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var y=i.verticalAlign;y==="bottom"&&(c[1]-=v),y==="middle"&&(c[1]-=v/2),wk(c,h,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:on(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function wk(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function mb(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Iv(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),wt(o)?a=o.replace("{value}",a):Xt(o)&&(a=o(s))}return a}function _b(e,t,r){var n=$i();return Qs(n,n,r.rotation),js(n,n,r.position),Sh([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function xk(e,t,r,n,i,a){var o=sb.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),bk(t,n,i,a,{position:_b(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Tk(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function Ck(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var Mk=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=Sb(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Sk(a),v=Dk[u](s,c,f);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=kv(l.model,i);xk(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=kv(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=_b(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Sb(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(_k);function Sb(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var Dk={line:function(e,t,r){var n=Tk([t,r[0]],[t,r[1]],bb(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:Ck([t-n/2,r[0]],[n,i],bb(e))}}};function bb(e){return e.dim==="x"?0:1}var Ak=Mk,Pk=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(zt),Ik=Pk,Hr=Kt(),Lk=D;function wb(e,t,r){if(!ht.node){var n=t.getZr();Hr(n).records||(Hr(n).records={}),Ek(n,t);var i=Hr(n).records[e]||(Hr(n).records[e]={});i.handler=r}}function Ek(e,t){if(Hr(e).initialized)return;Hr(e).initialized=!0,r("click",Zt(xb,"click")),r("mousemove",Zt(xb,"mousemove")),r("globalout",Ok);function r(n,i){e.on(n,function(a){var o=kk(t);Lk(Hr(e).records,function(s){s&&i(s,a,o.dispatchAction)}),Rk(o.pendings,t)})}}function Rk(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Ok(e,t,r){e.handler("leave",null,r)}function xb(e,t,r,n){t.handler(e,r,n)}function kk(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function $v(e,t){if(!ht.node){var r=t.getZr(),n=(Hr(r).records||{})[e];n&&(Hr(r).records[e]=null)}}var Bk=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";wb("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){$v("axisPointer",n)},t.prototype.dispose=function(r,n){$v("axisPointer",n)},t.type="axisPointer",t}(Nr),Fk=Bk;function Tb(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Vn(a,e);if(o==null||o<0||et(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),y=[];y[v]=a.get(d,o),y[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(y)||[]}else r=l.dataToPoint(a.getValues(ut(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var Cb=Kt();function Nk(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Gt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Pu(i)&&(i=Tb({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Pu(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Pu(i),h={},v={},d={list:[],map:{}},y={showPointer:Zt(Hk,v),showTooltip:Zt(Vk,d)};D(s.coordSysMap,function(g,m){var _=l||g.containPoint(i);D(s.coordSysAxesInfo[m],function(S,w){var b=S.axis,x=Wk(u,S);if(!c&&_&&(!u||x)){var C=x&&x.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&Mb(S,C,y,!1,h)}})});var p={};return D(f,function(g,m){var _=g.linkGroup;_&&!v[m]&&D(_.axesInfo,function(S,w){var b=v[w];if(S!==g&&b){var x=b.value;_.mapper&&(x=g.axis.scale.parse(_.mapper(x,Db(S),Db(g)))),p[g.key]=x}})}),D(p,function(g,m){Mb(f[m],g,y,!0,h)}),Gk(v,f,h),$k(d,i,e,o),Uk(f,o,r),h}}function Mb(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=zk(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&K(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function zk(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,e,r);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=e-c,y=Math.abs(d);y<=o&&((y=0&&s<0)&&(o=y,s=d,i=c,a.length=0),D(h,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function Hk(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Vk(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Ko(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Gk(e,t,r){var n=r.axesInfo=[];D(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function $k(e,t,r,n){if(Pu(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Uk(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Cb(n)[i]||{},o=Cb(n)[i]={};D(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&D(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];D(a,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Wk(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Db(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Pu(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Ab(e){ub.registerAxisPointerClass("CartesianAxisPointer",Ak),e.registerComponentModel(Ik),e.registerComponentView(Fk),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!et(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=rk(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Nk)}function OF(e){hi(yk),hi(Ab)}function Yk(e,t){var r=Xl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Yt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var Xk=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(zt),qk=Xk;function Pb(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Ib(e){if(!!ht.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function eB(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=ht.transformSupported?","+Uv+n:",left"+n+",top"+n),jk+":"+i}function Rb(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!ht.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ht.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Uv+":"+o+";":[["top",0],["left",0],[Lb,o]]}function rB(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function nB(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),f=e.getModel("textStyle"),c=F_(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(eB(i,r)),a&&(ht.canvasSupported?n.push("background-color:"+a):(n.push("background-color:#"+GM(a)),n.push("filter:alpha(opacity=70)"))),D(["width","color","radius"],function(v){var d="border-"+v,y=z0(d),p=e.get(y);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(rB(f)),c!=null&&n.push("padding:"+Xl(c).join("px ")+"px"),n.join(";")+";"}function Ob(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&gM(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var iB=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,ht.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;Ob(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Oe(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=Kk(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=Qk+nB(t,!this._firstShow,this._longHide)+Rb(a[0],a[1],!0)+("border-color:"+ii(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(wt(a)&&n.get("trigger")==="item"&&!Pb(n)&&(s=tB(n,i,a)),wt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",et(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api;if(this._lastX!=null&&this._lastY!=null&&r.get("triggerOn")!=="none"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(r,n,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ht.node)){var o=Nb(a,i);this._ticket="";var s=a.dataByCoordSys,l=vB(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=lB;f.x=a.x,f.y=a.y,f.update(),kt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=Tb(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Nb(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var f=u.getData(),c=Iu([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(!!a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;Oo(i,function(u){if(kt(u).dataIndex!=null)return s=u,!0;if(kt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Gt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Iu([n.tooltipOption],a),l=this._renderMode,u=[],f=Io("section",{blocks:[],noHeader:!0}),c=[],h=new Kh;jo(r,function(m){jo(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var b=mb(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Io("section",{header:b,noHeader:!En(b),sortBlocks:!0,blocks:[]});f.blocks.push(x),D(_.seriesDataIndices,function(C){var M=i.getSeriesByIndex(C.seriesIndex),L=C.dataIndexInside,I=M.getDataParams(L);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=Iv(S.axis,{value:w}),I.axisValueLabel=b,I.marker=h.makeTooltipMarker("item",ii(I.color),l);var P=x_(M.formatTooltip(L,!0,null));P.markupFragment&&x.blocks.push(P.markupFragment),P.markupText&&c.push(P.markupText),u.push(I)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),y=O_(f,h,l,d,i.get("useUTC"),s.get("textStyle"));y&&c.unshift(y);var p=l==="richText"?` - -`:"
",g=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=kt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=r.positionDefault,y=Iu([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=y.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(f,c),m=new Kh;g.marker=m.makeTooltipMarker("item",ii(g.color),v);var _=x_(u.formatTooltip(f,!1,c)),S=y.get("order"),w=_.markupFragment?O_(_.markupFragment,m,v,S,a.get("useUTC"),y.get("textStyle")):_.markupText,b="item_"+u.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,w,g,b,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=kt(n),o=a.tooltipConfig,s=o.option||{};if(wt(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=r.positionDefault,h=Iu(u,this._tooltipModel,c?{position:c}:null),v=h.get("content"),d=Math.random()+"",y=new Kh;this._showOrMove(h,function(){var p=yt(h.get("formatterParams")||{});this._showTooltipContent(h,v,p,d,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent,h=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),y=d.color;if(h)if(wt(h)){var p=r.ecModel.get("useUTC"),g=et(i)?i[0]:i,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,m&&(v=Gl(g.axisValue,v,p)),v=V0(v,i,!0)}else if(Xt(h)){var _=Wv(function(S,w){S===this._ticket&&(c.setContent(w,f,r,y,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;c.setContent(v,f,r,y,l),c.show(r,y),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||et(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!et(n))return{color:a||n.color||n.borderColor}},t.prototype._doUpdatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Xt(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),et(n))i=Fb(n[0],u),a=Fb(n[1],f);else if(st(n)){var y=n;y.width=c[0],y.height=c[1];var p=wo(y,{width:u,height:f});i=p.x,a=p.y,h=null,v=null}else if(wt(n)&&l){var g=hB(n,d,c,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=fB(i,a,o,u,f,h?null:20,v?null:20);i=g[0],a=g[1]}if(h&&(i-=zb(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=zb(v)?c[1]/2:v==="bottom"?c[1]:0),Pb(r)){var g=cB(i,a,o,u,f);i=g[0],a=g[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&jo(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&jo(u,function(h,v){var d=c[v]||{},y=h.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&y.length===p.length,o&&jo(y,function(g,m){var _=p[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&D(h.seriesDataIndices,function(g){var m=g.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){ht.node||(this._tooltipContent.dispose(),$v("itemTooltip",n))},t.type="tooltip",t}(Nr);function Iu(e,t,r){var n=t.ecModel,i;r?(i=new ee(r,n,n),i=new ee(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof ee&&(o=o.get("tooltip",!0)),wt(o)&&(o={formatter:o}),o&&(i=new ee(o,i,n)))}return i}function Nb(e,t){return e.dispatchAction||Gt(t.dispatchAction,t)}function fB(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function cB(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function hB(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function zb(e){return e==="center"||e==="middle"}function vB(e,t,r){var n=Nc(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ro(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=kt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}var dB=uB;function kF(e){hi(Ab),e.registerComponentModel(qk),e.registerComponentView(dB),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}var pB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(zt),gB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Dt(r.get("textBaseline"),r.get("textVerticalAlign")),f=new le({style:on(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),v=new le({style:on(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),y=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!y&&!p,d&&f.on("click",function(){G0(d,"_"+r.get("target"))}),y&&v.on("click",function(){G0(y,"_"+r.get("subtarget"))}),kt(f).eventData=kt(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(v);var g=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=g.width,m.height=g.height;var _=wo(m,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),g=a.getBoundingRect();var w=_.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var x=new Yt({shape:{x:g.x-w[3],y:g.y-w[0],width:g.width+w[1]+w[3],height:g.height+w[0]+w[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t}(Nr);function BF(e){e.registerComponentModel(pB),e.registerComponentView(gB)}function Hb(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=oa(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var mB=function(e){Z(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=ua(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=_B,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Tl(this.childAt(0))},t.prototype.downplay=function(){Cl(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r){var n=this.childAt(0);n.draggable=r,n.cursor=r?"move":n.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):an(h,v,s,n),jP(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,po(h,v,s,n)}}f&&this.childAt(0).stopAnimation("remove"),this._seriesModel=s},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,h,v,d,y,p;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,d=a.labelStatesModels,y=a.hoverScale,p=a.cursorStyle),!a||r.hasItemOption){var g=a&&a.itemModel?a.itemModel:r.getItemModel(n),m=g.getModel("emphasis");u=m.getModel("itemStyle").getItemStyle(),c=g.getModel(["select","itemStyle"]).getItemStyle(),f=g.getModel(["blur","itemStyle"]).getItemStyle(),h=m.get("focus"),v=m.get("blurScope"),d=Ch(g),y=m.getShallow("scale"),p=g.getShallow("cursor")}var _=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var S=i1(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),p&&s.attr("cursor",p);var w=r.getItemVisual(n,"style"),b=w.fill;if(s instanceof Rr){var x=s.style;s.useStyle(K({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var L=o&&o.useNameLabel;Th(s,d,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:b,defaultOpacity:w.opacity});function I(B){return L?r.getName(B):Hb(r,B)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");if(P.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f,y){var E=Math.max(1.1,3/this._sizeY);P.scaleX=this._sizeX*E,P.scaleY=this._sizeY*E}this.setSymbolScale(1),co(this,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n){var i=this.childAt(0),a=this._seriesModel,o=kt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Ol(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ol(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return XE(r.getItemVisual(n,"symbolSize"))},t}($t);function _B(e,t){this.parent.drift(e,t)}var Yv=mB;function Xv(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function Vb(e){return e!=null&&!st(e)&&(e={isIgnore:e}),e||{}}function Gb(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),hoverScale:r.get("scale"),labelStatesModels:Ch(t),cursorStyle:t.get("cursor")}}var SB=function(){function e(t){this.group=new $t,this._SymbolCtor=t||Yv}return e.prototype.updateData=function(t,r){r=Vb(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Gb(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};a||n.removeAll(),t.diff(a).add(function(c){var h=f(c);if(Xv(t,h,c,r)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=a.getItemGraphicEl(h),d=f(c);if(!Xv(t,d,c,r)){n.remove(v);return}var y=t.getItemVisual(c,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==y)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):an(v,g,i)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)})}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.isPersistent=function(){return!0},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Gb(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){n=Vb(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(zt),qv=TB,da=Zt,Zv=D,Lu=$t,CB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Lu),this.group.add(this._selectorGroup=new Lu),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),v=wo(f,c,h),d=this.layoutInner(r,o,v,a,l,u),y=wo(Ct({width:d.width,height:d.height},f),c,h);this.group.x=y.x-d.x,this.group.y=y.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Yk(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=ft(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Zv(n.getData(),function(v,d){var y=v.get("name");if(!this.newlineDisabled&&(y===""||y===` -`)){var p=new Lu;p.newline=!0,u.add(p);return}var g=i.getSeriesByName(y)[0];if(!f.get(y))if(g){var m=g.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(g,y,d,v,n,r,_,w,S,c);b.on("click",da($b,y,null,a,h)).on("mouseover",da(Kv,g.name,null,a,h)).on("mouseout",da(jv,g.name,null,a,h)),f.set(y,!0)}else i.eachRawSeries(function(x){if(!f.get(y)&&x.legendVisualProvider){var C=x.legendVisualProvider;if(!C.containName(y))return;var M=C.indexOfName(y),L=C.getItemVisual(M,"style"),I=C.getItemVisual(M,"legendIcon"),P=hr(L.fill);P&&P[3]===0&&(P[3]=.2,L.fill=Ua(P,"rgba"));var E=this._createItem(x,y,d,v,n,r,{},L,I,c);E.on("click",da($b,null,y,a,h)).on("mouseover",da(Kv,null,y,a,h)).on("mouseout",da(jv,null,y,a,h)),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Zv(r,function(u){var f=u.type,c=new le({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Th(c,{normal:h,emphasis:v},{defaultText:u.title}),co(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c){var h=r.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),y=o.isSelected(n),p=a.get("symbolRotate"),g=a.get("symbolKeepAspect"),m=a.get("icon");f=m||f||"roundRect";var _=MB(f,a,l,u,h,y),S=new Lu,w=a.getModel("textStyle");if(typeof r.getLegendIcon=="function"&&(!m||m==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:p,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:g}));else{var b=m==="inherit"&&r.getData().getVisual("symbol")?p==="inherit"?r.getData().getVisual("symbolRotate"):p:0;S.add(DB({itemWidth:v,itemHeight:d,icon:f,iconRotate:b,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:g}))}var x=s==="left"?v+5:-5,C=s,M=o.get("formatter"),L=n;typeof M=="string"&&M?L=M.replace("{name}",n!=null?n:""):typeof M=="function"&&(L=M(n));var I=a.get("inactiveColor");S.add(new le({style:on(w,{text:L,x,y:d/2,fill:y?w.getTextColor():I,align:C,verticalAlign:"middle"})}));var P=new Yt({shape:S.getBoundingRect(),invisible:!0}),E=a.getModel("tooltip");return E.get("show")&&xh({el:P,componentModel:o,itemName:n,itemTooltipOption:E.option}),S.add(P),S.eachChild(function(B){B.silent=!0}),P.silent=!c,this.getContentGroup().add(S),co(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();bo(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){bo("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),y=r.getOrient().index,p=y===0?"width":"height",g=y===0?"height":"width",m=y===0?"y":"x";s==="end"?v[y]+=f[p]+d:c[y]+=h[p]+d,v[1-y]+=f[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[p]=f[p]+d+h[p],_[g]=Math.max(f[g],h[g]),_[m]=Math.min(0,h[m]+v[1-y]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Nr);function MB(e,t,r,n,i,a){function o(d,y){d.lineWidth==="auto"&&(d.lineWidth=y.lineWidth>0?2:0),Zv(d,function(p,g){d[g]==="inherit"&&(d[g]=y[g])})}var s=t.getModel("itemStyle"),l=s.getItemStyle(),u=e.lastIndexOf("empty",0)===0?"fill":"stroke";l.decal=n.decal,l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[u]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:r).opacity),o(l,n);var f=t.getModel("lineStyle"),c=f.getLineStyle();if(o(c,r),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var h=t.get("inactiveBorderWidth"),v=l[u];l.lineWidth=h==="auto"?n.lineWidth>0&&v?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),c.stroke=f.get("inactiveColor"),c.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:c}}function DB(e){var t=e.icon||"roundRect",r=ua(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function $b(e,t,r,n){jv(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e!=null?e:t}),Kv(e,t,r,n)}function Ub(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],p=[-v.x,-v.y];n||(p[a]=f[u]);var g=[0,0],m=[-d.x,-d.y],_=Dt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(y){var S=r.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:g[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),c.setPosition(g),h.setPosition(m);var w={x:0,y:0};if(w[o]=y?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[l]=Math.min(0,d[l]+m[1-a]),c.__rectSize=i[o],y){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=w[s],c.setClipPath(new Yt({shape:b})),c.__rectSize=b[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&an(f,{x:x.contentPosition[0],y:x.contentPosition[1]},y?r:null),this._updatePageInfoView(r,x),w},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",wt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Qv[o],l=Jv[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var y=S(c);d.contentPosition[o]=-y.s;for(var p=u+1,g=y,m=y,_=null;p<=h;++p)_=S(f[p]),(!_&&m.e>g.s+a||_&&!w(_,g.s))&&(m.i>g.i?g=m:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=_;for(var p=u-1,g=y,m=y,_=null;p>=-1;--p)_=S(f[p]),(!_||!w(m,_.s))&&g.i=x&&b.s<=x+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(Wb),RB=EB;function OB(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function kB(e){hi(Yb),e.registerComponentModel(LB),e.registerComponentView(RB),OB(e)}function FF(e){hi(Yb),hi(kB)}var BB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return FR(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new $t,i=ua("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=ua(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Lo),FB=BB;function Zb(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=NB(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=ut(e.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Yo(t,c[0])&&(h=!0,c[0]=v),Yo(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function NB(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Kb(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}var jb=typeof Float32Array!="undefined",zB=jb?Float32Array:Array;function pa(e){return et(e)?jb?new Float32Array(e):e:new zB(e)}function HB(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function VB(e,t,r,n,i,a,o,s){for(var l=HB(e,t),u=[],f=[],c=[],h=[],v=[],d=[],y=[],p=Zb(i,t,o),g=e.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=i||y<0)break;if(pi(g,m)){if(l){y+=a;continue}break}if(y===r)e[a>0?"moveTo":"lineTo"](g,m),c=g,h=m;else{var _=g-u,S=m-f;if(_*_+S*S<.5){y+=a;continue}if(o>0){for(var w=y+a,b=t[w*2],x=t[w*2+1];b===g&&x===m&&p=n||pi(b,x))v=g,d=m;else{L=b-u,I=x-f;var B=g-u,k=b-g,Y=m-f,q=x-m,U=void 0,Q=void 0;s==="x"?(U=Math.abs(B),Q=Math.abs(k),v=g-U*o,d=m,P=g+U*o,E=m):s==="y"?(U=Math.abs(Y),Q=Math.abs(q),v=g,d=m-U*o,P=g,E=m+U*o):(U=Math.sqrt(B*B+Y*Y),Q=Math.sqrt(k*k+q*q),M=Q/(Q+U),v=g-L*o*(1-M),d=m-I*o*(1-M),P=g+L*o*M,E=m+I*o*M,P=pn(P,gn(b,g)),E=pn(E,gn(x,m)),P=gn(P,pn(b,g)),E=gn(E,pn(x,m)),L=P-g,I=E-m,v=g-L*U/Q,d=m-I*U/Q,v=pn(v,gn(u,g)),d=pn(d,gn(f,m)),v=gn(v,pn(u,g)),d=gn(d,pn(f,m)),L=g-v,I=m-d,P=g+L*Q/U,E=m+I*Q/U)}e.bezierCurveTo(c,h,v,d,g,m),c=P,h=E}else e.lineTo(g,m)}u=g,f=m,y+=a}return p}var Qb=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),GB=function(e){Z(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Qb},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&pi(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[r,S]:[S,r]}s=v,l=d;break;case o.C:v=a[c++],d=a[c++],y=a[c++],p=a[c++],g=a[c++],m=a[c++];var w=u?Yc(s,v,y,g,r,f):Yc(l,d,p,m,r,f);if(w>0)for(var b=0;b=0){var S=u?Nt(l,d,p,m,x):Nt(s,v,y,g,x);return u?[r,S]:[S,r]}}s=g,l=m;break}}},t}(Rt),$B=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Qb),UB=function(e){Z(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new $B},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&pi(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function ZB(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!!a){var l=t.getAxis(i),u=ut(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=qB(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,y=h[0].coord-d,p=h[v-1].coord+d,g=p-y;if(g<.001)return"transparent";D(h,function(_){_.offset=(_.coord-y)/g}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new gh(0,0,0,0,h,!0);return m[i]=y,m[i+"2"]=p,m}}}function KB(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(!!a&&!(i&&jB(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function jB(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function QB(e,t){return isNaN(e)||isNaN(t)}function JB(e){for(var t=e.length/2;t>0&&QB(e[t*2-2],e[t*2-1]);t--);return t-1}function nw(e,t){return[e[t*2],e[t*2+1]]}function tF(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function iw(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<_r.length;t++)if(e.get([_r[t],"endLabel","show"]))return!0;return!1}function ed(e,t,r,n){if(wB(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=iw(n)?function(v,d){e._endLabelOnDuring(v,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=WB(t,r,n,function(){var v=e._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return YB(t,r,n)}function eF(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var rF=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new $t,n=new bB;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),f=r.getModel("areaStyle"),c=l.getLayout("points")||[],h=o.type==="polar",v=this._coordSys,d=this._symbolDraw,y=this._polyline,p=this._polygon,g=this._lineGroup,m=r.get("animation"),_=!f.isEmpty(),S=f.get("origin"),w=Zb(o,l,S),b=_&&XB(o,l,w),x=r.get("showSymbol"),C=x&&!h&&KB(r,l,o),M=this._data;M&&M.eachItemGraphicEl(function(dt,O){dt.__temp&&(s.remove(dt),M.setItemGraphicEl(O,null))}),x||d.remove(),s.add(g);var L=h?!1:r.get("step"),I;o&&o.getArea&&r.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var P=ZB(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(y&&v.type===o.type&&L===this._step))x&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(dt){return[c[dt*2],c[dt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),L&&(c=yn(c,o,L),b&&(b=yn(b,o,L))),y=this._newPolyline(c),_&&(p=this._newPolygon(c,b)),h||this._initOrUpdateEndLabel(r,o,ii(P)),g.setClipPath(ed(this,o,!0,r));else{_&&!p?p=this._newPolygon(c,b):p&&!_&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,ii(P));var E=g.getClipPath();if(E){var B=ed(this,o,!1,r);po(E,{shape:B.shape},r)}else g.setClipPath(ed(this,o,!0,r));x&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(dt){return[c[dt*2],c[dt*2+1]]}}),(!Jb(this._stackedOnPoints,b)||!Jb(this._points,c))&&(m?this._doUpdateAnimation(l,b,o,i,L,S):(L&&(c=yn(c,o,L),b&&(b=yn(b,o,L))),y.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:b})))}var k=r.get(["emphasis","focus"]),Y=r.get(["emphasis","blurScope"]);if(y.useStyle(Ct(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),Om(y,r,"lineStyle"),y.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var q=y.getState("emphasis").style;q.lineWidth=+y.style.lineWidth+1}kt(y).seriesIndex=r.seriesIndex,co(y,k,Y);var U=rw(r.get("smooth")),Q=r.get("smoothMonotone"),V=r.get("connectNulls");if(y.setShape({smooth:U,smoothMonotone:Q,connectNulls:V}),p){var it=l.getCalculationInfo("stackedOnSeries"),Ot=0;p.useStyle(Ct(f.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),it&&(Ot=rw(it.get("smooth"))),p.setShape({smooth:U,stackedOnSmooth:Ot,smoothMonotone:Q,connectNulls:V}),Om(p,r,"areaStyle"),kt(p).seriesIndex=r.seriesIndex,co(p,k,Y)}var pt=function(dt){a._changePolyState(dt)};l.eachItemGraphicEl(function(dt){dt&&(dt.onHoverStateChange=pt)}),this._polyline.onHoverStateChange=pt,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=c,this._step=L,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,y),p&&this.packEventData(r,p))},t.prototype.packEventData=function(r,n){kt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Vn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=r.get("zlevel"),v=r.get("z");u=new Yv(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else un.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Vn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else un.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;Tm(this._polyline,r),n&&Tm(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new GB({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new UB({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");typeof f=="function"&&(f=f(null));var c=u.get("animationDelay")||0,h=typeof c=="function"?c(null):c;r.eachItemGraphicEl(function(v,d){var y=v;if(y){var p=[v.x,v.y],g=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=n.pointToCoord(p);a?(g=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(g=S.r0,m=S.r,_=w[0])}else{var b=i;a?(g=b.x,m=b.x+b.width,_=v.x):(g=b.y+b.height,m=b.y,_=v.y)}var x=m===g?0:(_-g)/(m-g);l&&(x=1-x);var C=typeof c=="function"?c(d):f*x+h,M=y.getSymbolPath(),L=M.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:C}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(iw(r)){var o=r.getData(),s=this._polyline,l=this._endLabel;l||(l=this._endLabel=new le({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=JB(o.getLayout("points"));u>=0&&(Th(s,Ch(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:u,defaultText:function(f,c,h){return h!=null?yB(o,h):Hb(o,f)},enableTextSetter:!0},eF(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),y=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,_=n.shape,S=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,w=(g?y:0)*(m?-1:1),b=(g?0:-y)*(m?-1:1),x=g?"x":"y",C=tF(c,S,x),M=C.range,L=M[1]-M[0],I=void 0;if(L>=1){if(L>1&&!v){var P=nw(c,M[0]);u.attr({x:P[0]+w,y:P[1]+b}),o&&(I=h.getRawValue(M[0]))}else{var P=f.getPointOn(S,x);P&&u.attr({x:P[0]+w,y:P[1]+b});var E=h.getRawValue(M[0]),B=h.getRawValue(M[1]);o&&(I=$D(i,d,E,B,C.t))}a.lastFrameIndex=M[0]}else{var k=r===1||a.lastFrameIndex>0?M[0]:0,P=nw(c,k);o&&(I=h.getRawValue(k)),u.attr({x:P[0]+w,y:P[1]+b})}o&&w0(u).setLabelText(I)}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s){var l=this._polyline,u=this._polygon,f=r.hostModel,c=VB(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=c.current,v=c.stackedOnCurrent,d=c.next,y=c.stackedOnNext;if(o&&(h=yn(c.current,i,o),v=yn(c.stackedOnCurrent,i,o),d=yn(c.next,i,o),y=yn(c.stackedOnNext,i,o)),ew(h,d)>3e3||u&&ew(v,y)>3e3){l.stopAnimation(),l.setShape({points:d}),u&&(u.stopAnimation(),u.setShape({points:d,stackedOnPoints:y}));return}l.shape.__points=c.current,l.shape.points=h;var p={shape:{points:d}};c.current!==h&&(p.shape.__points=c.next),l.stopAnimation(),an(l,p,f),u&&(u.setShape({points:h,stackedOnPoints:v}),u.stopAnimation(),an(u,{shape:{stackedOnPoints:y}},f),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var g=[],m=c.status,_=0;_t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;typeof a=="string"?d=aF[a]:typeof a=="function"&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,oF))}}}}}function NF(e){e.registerChartView(nF),e.registerSeriesModel(FB),e.registerLayout(iF("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,sF("line"))}function lF(){return!1}function aw(e,t,r){var n=Fs(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var uF=function(e){Z(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Zs,typeof r=="string"?o=aw(r,n,i):st(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(o.onselectstart=lF,s.webkitUserSelect="none",s.userSelect="none",s.webkitTapHighlightColor="rgba(0,0,0,0)",s["-webkit-touch-callout"]="none",s.padding="0",s.margin="0",s.borderWidth="0"),a.domBack=null,a.ctxBack=null,a.painter=n,a.config=null,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=aw("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new xt(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new xt(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,w=1/0,b=0,x=0;x=s)}}for(var c=this.__startIndex;c15)break}}B.prevElClipPaths&&g.restore()};if(m)if(m.length===0)C=p.__endIndex;else for(var L=v.dpr,I=0;I0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?Eu:0),this._needsManuallyCompositing),f.__builtin__||Fi("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Ce&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Tt(n[t],r,!0):n[t]=r;for(var i=0;i 检查iStore自身更新接口返回code为200时才调用这个接口 - ``` - POST /cgi-bin/luci/admin/store/do_self_upgrade - token=xxx - - - {"code":0, "stdout":"", "stderr":""} - ``` diff --git a/applications/luci-app-store/Makefile b/applications/luci-app-store/Makefile deleted file mode 100755 index 9d126cd..0000000 --- a/applications/luci-app-store/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (C) 2016 Openwrt.org -# -# This is free software, licensed under the Apache License, Version 2.0 . -# - -include $(TOPDIR)/rules.mk - -LUCI_TITLE:=LuCI based ipk store -LUCI_DESCRIPTION:=luci-app-store is a ipk store developed by LinkEase team -LUCI_DEPENDS:=+curl +opkg +luci-lib-ipkg +tar +coreutils +coreutils-stat +libuci-lua +mount-utils -LUCI_PKGARCH:=all - -PKG_VERSION:=0.1.8 -PKG_RELEASE:=3 - -ISTORE_UI_VERSION:=1.0 -ISTORE_UI_RELEASE:=10-beta -PKG_HASH:=4c7e2e9d20fcb0fbc383a85d1d4dd99f796eb389263512879373dc826ef6b3d7 - -PKG_SOURCE_URL_FILE:=v$(ISTORE_UI_VERSION)-$(ISTORE_UI_RELEASE).tar.gz -PKG_SOURCE:=istore-ui-$(PKG_SOURCE_URL_FILE) -PKG_SOURCE_URL:=https://github.com/linkease/istore-ui/archive/refs/tags - -PKG_MAINTAINER:=jjm2473 - -TARGET_CONFIGURE_OPTS= FRONTEND_DIST="$(BUILD_DIR)/istore-ui-$(ISTORE_UI_VERSION)-$(ISTORE_UI_RELEASE)/app-store-ui/src/dist" APP_STORE_VERSION="$(PKG_VERSION)-$(PKG_RELEASE)" -TARGET_CONFIGURE_OPTS+= SED="$(SED)" - -define Package/luci-app-store/conffiles -/etc/.app_store.id -endef - -include $(TOPDIR)/feeds/luci/luci.mk - -# call BuildPackage - OpenWrt buildroot signature - diff --git a/applications/luci-app-store/README.md b/applications/luci-app-store/README.md deleted file mode 100755 index 9fd6857..0000000 --- a/applications/luci-app-store/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# luci-app-store -OpenWRT应用商店 - diff --git a/applications/luci-app-store/luasrc/controller/store.lua b/applications/luci-app-store/luasrc/controller/store.lua deleted file mode 100755 index 88cb886..0000000 --- a/applications/luci-app-store/luasrc/controller/store.lua +++ /dev/null @@ -1,626 +0,0 @@ -module("luci.controller.store", package.seeall) - -local myopkg = "is-opkg" -local page_index = {"admin", "store", "pages"} - -function index() - local function store_api(action, onlypost) - local e = entry({"admin", "store", action}, onlypost and post("store_action", {action = action}) or call("store_action", {action = action})) - e.dependent = false -- 父节点不是必须的 - e.leaf = true -- 没有子节点 - end - - local action - - entry({"admin", "store"}, call("redirect_index"), _("iStore"), 31) - entry({"admin", "store", "pages"}, call("store_index")).leaf = true - if nixio.fs.access("/usr/lib/lua/luci/view/store/main_dev.htm") then - entry({"admin", "store", "dev"}, call("store_dev")).leaf = true - end - entry({"admin", "store", "token"}, call("store_token")) - entry({"admin", "store", "log"}, call("store_log")) - entry({"admin", "store", "uid"}, call("action_user_id")) - entry({"admin", "store", "upload"}, post("store_upload")) - entry({"admin", "store", "check_self_upgrade"}, call("check_self_upgrade")) - entry({"admin", "store", "do_self_upgrade"}, post("do_self_upgrade")) - - entry({"admin", "store", "get_support_backup_features"}, call("get_support_backup_features")) - entry({"admin", "store", "light_backup"}, post("light_backup")) - entry({"admin", "store", "get_light_backup_file"}, call("get_light_backup_file")) - entry({"admin", "store", "local_backup"}, post("local_backup")) - entry({"admin", "store", "light_restore"}, post("light_restore")) - entry({"admin", "store", "local_restore"}, post("local_restore")) - entry({"admin", "store", "get_backup_app_list_file_path"}, call("get_backup_app_list_file_path")) - entry({"admin", "store", "get_backup_app_list"}, call("get_backup_app_list")) - entry({"admin", "store", "get_available_backup_file_list"}, call("get_available_backup_file_list")) - entry({"admin", "store", "set_local_backup_dir_path"}, post("set_local_backup_dir_path")) - entry({"admin", "store", "get_local_backup_dir_path"}, call("get_local_backup_dir_path")) - - for _, action in ipairs({"update", "install", "upgrade", "remove"}) do - store_api(action, true) - end - for _, action in ipairs({"status", "installed"}) do - store_api(action, false) - end -end - -local function user_id() - local jsonc = require "luci.jsonc" - local json_parse = jsonc.parse - local fs = require "nixio.fs" - local data = fs.readfile("/etc/.app_store.id") - - local id - if data ~= nil then - id = json_parse(data) - end - if id == nil then - fs.unlink("/etc/.app_store.id") - id = {arch="",uid=""} - end - - id.version = (fs.readfile("/etc/.app_store.version") or "?"):gsub("[\r\n]", "") - - return id -end - -local function is_exec(cmd) - local nixio = require "nixio" - local os = require "os" - local fs = require "nixio.fs" - local rshift = nixio.bit.rshift - - local oflags = nixio.open_flags("wronly", "creat") - local lock, code, msg = nixio.open("/var/lock/istore.lock", oflags) - if not lock then - return 255, "", "Open lock failed: " .. msg - end - - -- Acquire lock - local stat, code, msg = lock:lock("tlock") - if not stat then - lock:close() - return 255, "", "Lock failed: " .. msg - end - - local r = os.execute(cmd .. " >/var/log/istore.stdout 2>/var/log/istore.stderr") - local e = fs.readfile("/var/log/istore.stderr") - local o = fs.readfile("/var/log/istore.stdout") - - fs.unlink("/var/log/istore.stderr") - fs.unlink("/var/log/istore.stdout") - - lock:lock("ulock") - lock:close() - - e = e or "" - if r == 256 and e == "" then - e = "os.execute failed, is /var/log full or not existed?" - end - return rshift(r,8), o or "", e or "" -end - -function redirect_index() - luci.http.redirect(luci.dispatcher.build_url(unpack(page_index))) -end - -function store_index() - luci.template.render("store/main", {prefix=luci.dispatcher.build_url(unpack(page_index)),id=user_id()}) -end - -function store_dev() - luci.template.render("store/main_dev", {prefix=luci.dispatcher.build_url(unpack({"admin", "store", "dev"})),id=user_id()}) -end - -function store_log() - local fs = require "nixio.fs" - local code = 0 - local e = fs.readfile("/var/log/istore.stderr") - local o = fs.readfile("/var/log/istore.stdout") - if o ~= nil then - code = 206 - end - luci.http.prepare_content("application/json") - luci.http.write_json({code=code,stdout=o or "",stderr=e or ""}) -end - -function action_user_id() - luci.http.prepare_content("application/json") - luci.http.write_json(user_id()) -end - -function check_self_upgrade() - local ret = { - code = 500, - msg = "Unknown" - } - local r,o,e = is_exec(myopkg .. " check_self_upgrade") - if r ~= 0 then - ret.msg = e - else - ret.code = o == "" and 304 or 200 - ret.msg = o:gsub("[\r\n]", "") - end - luci.http.prepare_content("application/json") - luci.http.write_json(ret) -end - -function do_self_upgrade() - local code, out, err, ret - code,out,err = is_exec(myopkg .. " do_self_upgrade") - ret = { - code = code, - stdout = out, - stderr = err - } - luci.http.prepare_content("application/json") - luci.http.write_json(ret) -end - --- Internal action function -local function _action(exe, cmd, ...) - local os = require "os" - local fs = require "nixio.fs" - - local pkg = "" - for k, v in pairs({...}) do - pkg = pkg .. " '" .. v:gsub("'", "") .. "'" - end - - local c = "%s %s %s" %{ exe, cmd, pkg } - - return is_exec(c) -end - -function store_action(param) - local metadir = "/usr/lib/opkg/meta" - local metapkgpre = "app-meta-" - local code, out, err, ret, out0, err0 - local fs = require "nixio.fs" - local ipkg = require "luci.model.ipkg" - local jsonc = require "luci.jsonc" - local json_parse = jsonc.parse - local action = param.action or "" - - if action == "status" then - local pkg = luci.http.formvalue("package") - local metapkg = metapkgpre .. pkg - local meta = {} - local metadata = fs.readfile(metadir .. "/" .. pkg .. ".json") - - if metadata ~= nil then - meta = json_parse(metadata) - end - meta.installed = false - local status = ipkg.status(metapkg) - if next(status) ~= nil then - meta.installed=true - meta.time=tonumber(status[metapkg]["Installed-Time"]) - end - - ret = meta - elseif action == "installed" then - local itr = fs.dir(metadir) - local data = {} - if itr then - local pkg - for pkg in itr do - if pkg:match("^.*%.json$") then - local meta = json_parse(fs.readfile(metadir .. "/" .. pkg)) - local metapkg = metapkgpre .. meta.name - local status = ipkg.status(metapkg) - if next(status) ~= nil then - meta.time = tonumber(status[metapkg]["Installed-Time"]) - data[#data+1] = meta - end - end - end - end - ret = data - else - local pkg = luci.http.formvalue("package") - local metapkg = metapkgpre .. pkg - if action == "update" or pkg then - if action == "update" or action == "install" then - code, out, err = _action(myopkg, action, metapkg) - else - local meta = json_parse(fs.readfile(metadir .. "/" .. pkg .. ".json")) - local pkgs = meta.depends - table.insert(pkgs, metapkg) - if action == "upgrade" then - code, out, err = _action(myopkg, action, unpack(pkgs)) - else -- remove - code, out, err = _action(myopkg, action, unpack(pkgs)) - if code ~= 0 then - code, out0, err0 = _action(myopkg, action, unpack(pkgs)) - out = out .. out0 - err = err .. err0 - end - fs.unlink("/tmp/luci-indexcache") - end - end - else - code = 400 - err = "package is null" - end - - ret = { - code = code, - stdout = out, - stderr = err - } - end - - luci.http.prepare_content("application/json") - luci.http.write_json(ret) -end - -function store_token() - luci.http.prepare_content("application/json") - require "luci.template".render_string("{\"token\":\"<%=token%>\"}") -end - -function store_upload() - local fd - local path - local finished = false - local tmpdir = "/tmp/is-root/tmp" - luci.http.setfilehandler( - function(meta, chunk, eof) - if not fd then - path = tmpdir .. "/" .. meta.file - nixio.fs.mkdirr(tmpdir) - fd = io.open(path, "w") - end - if chunk then - fd:write(chunk) - end - if eof then - fd:close() - finished = true - end - end - ) - local code, out, err - out = "" - if finished then - if string.lower(string.sub(path, -4, -1)) == ".run" then - code, out, err = _action("sh", "-c", "chmod 755 \"%s\" && \"%s\"" %{ path, path }) - else - code, out, err = _action(myopkg, "install", path) - end - else - code = 500 - err = "upload failed!" - end - nixio.fs.unlink(path) - local ret = { - code = code, - stdout = out, - stderr = err - } - luci.http.prepare_content("application/json") - luci.http.write_json(ret) -end - -local function split(str,reps) - local resultStrList = {} - string.gsub(str,'[^'..reps..']+',function (w) - table.insert(resultStrList,w) - end) - return resultStrList -end - -local function ltn12_popen(command) - - local fdi, fdo = nixio.pipe() - local pid = nixio.fork() - - if pid > 0 then - fdo:close() - local close - return function() - local buffer = fdi:read(2048) - local wpid, stat = nixio.waitpid(pid, "nohang") - if not close and wpid and stat == "exited" then - close = true - end - - if buffer and #buffer > 0 then - return buffer - elseif close then - fdi:close() - return nil - end - end - elseif pid == 0 then - nixio.dup(fdo, nixio.stdout) - fdi:close() - fdo:close() - nixio.exec("/bin/sh", "-c", command) - end -end - --- call get_support_backup_features -function get_support_backup_features() - local jsonc = require "luci.jsonc" - local error_ret = {code = 500, msg = "Unknown"} - local success_ret = {code = 200,msg = "Unknown"} - local r,o,e = is_exec(myopkg .. " get_support_backup_features") - if r ~= 0 then - error_ret.msg = e - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - else - success_ret.code = 200 - success_ret.msg = jsonc.stringify(split(o,'\n')) - luci.http.prepare_content("application/json") - luci.http.write_json(success_ret) - end -end - --- post light_backup -function light_backup() - local jsonc = require "luci.jsonc" - local error_ret = {code = 500, msg = "Unknown"} - local success_ret = {code = 200,msg = "Unknown"} - local r,o,e = is_exec(myopkg .. " backup") - - if r ~= 0 then - error_ret.msg = e - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - else - success_ret.code = 200 - success_ret.msg = o:gsub("[\r\n]", "") - luci.http.prepare_content("application/json") - luci.http.write_json(success_ret) - end -end - --- call get_light_backup_file -function get_light_backup_file() - local light_backup_cmd = "tar -c %s | gzip 2>/dev/null" - local loght_backup_filelist = "/etc/istore/app.list" - local reader = ltn12_popen(light_backup_cmd:format(loght_backup_filelist)) - luci.http.header('Content-Disposition', 'attachment; filename="light-backup-%s-%s.tar.gz"' % { - luci.sys.hostname(), os.date("%Y-%m-%d")}) - luci.http.prepare_content("application/x-targz") - luci.ltn12.pump.all(reader, luci.http.write) -end - -local function update_local_backup_path(path) - local uci = require "uci" - local fs = require "nixio.fs" - local x = uci.cursor() - local local_backup_path - - if fs.access("/etc/config/istore") then - local_backup_path = x:get("istore","istore","local_backup_path") - else - --create config file - local f=io.open("/etc/config/istore","a+") - f:write("config istore \'istore\'\n\toption local_backup_path \'\'") - f:flush() - f:close() - end - - if path ~= local_backup_path then - -- set uci config - x:set("istore","istore","local_backup_path",path) - x:commit("istore") - end -end - --- post local_backup -function local_backup() - local code, out, err, ret - local error_ret - local path = luci.http.formvalue("path") - if path ~= "" then - -- judge path - code,out,err = is_exec("findmnt -T " .. path .. " -o TARGET|sed -n 2p") - if out:gsub("[\r\n]", "") == "/" or out:gsub("[\r\n]", "") == "/tmp" then - -- error - error_ret = {code = 500, msg = "Path Error,Can not be / or tmp."} - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - else - -- update local backup path - update_local_backup_path(path) - code,out,err = is_exec(myopkg .. " backup " .. path) - ret = { - code = code, - stdout = out, - stderr = err - } - luci.http.prepare_content("application/json") - luci.http.write_json(ret) - end - else - -- error - error_ret = {code = 500, msg = "Path Unknown"} - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - end -end - --- post light_restore -function light_restore() - local fd - local path - local finished = false - local tmpdir = "/tmp/" - luci.http.setfilehandler( - function(meta, chunk, eof) - if not fd then - path = tmpdir .. "/" .. meta.file - fd = io.open(path, "w") - end - if chunk then - fd:write(chunk) - end - if eof then - fd:close() - finished = true - end - end - ) - - local code, out, err, ret - - if finished then - is_exec("rm /etc/istore/app.list;tar -xzf " .. path .. " -C /") - if nixio.fs.access("/etc/istore/app.list") then - code,out,err = is_exec(myopkg .. " restore") - ret = { - code = code, - stdout = out, - stderr = err - } - luci.http.prepare_content("application/json") - luci.http.write_json(ret) - else - local error_ret = {code = 500, msg = "File is error!"} - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - end - -- remove file - is_exec("rm " .. path) - else - ret = {code = 500, msg = "upload failed!"} - luci.http.prepare_content("application/json") - luci.http.write_json(ret) - end -end - --- post local_restore -function local_restore() - local path = luci.http.formvalue("path") - local code, out, err, ret - if path ~= "" then - code,out,err = is_exec(myopkg .. " restore " .. path) - ret = { - code = code, - stdout = out, - stderr = err - } - luci.http.prepare_content("application/json") - luci.http.write_json(ret) - else - -- error - error_ret = {code = 500, msg = "Path Unknown"} - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - end -end - --- call get_backup_app_list_file_path -function get_backup_app_list_file_path() - local jsonc = require "luci.jsonc" - local error_ret = {code = 500, msg = "Unknown"} - local success_ret = {code = 200,msg = "Unknown"} - local r,o,e = is_exec(myopkg .. " get_backup_app_list_file_path") - if r ~= 0 then - error_ret.msg = e - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - else - success_ret.code = 200 - success_ret.msg = o:gsub("[\r\n]", "") - luci.http.prepare_content("application/json") - luci.http.write_json(success_ret) - end -end - --- call get_backup_app_list -function get_backup_app_list() - local jsonc = require "luci.jsonc" - local error_ret = {code = 500, msg = "Unknown"} - local success_ret = {code = 200,msg = "Unknown"} - local r,o,e = is_exec(myopkg .. " get_backup_app_list") - if r ~= 0 then - error_ret.msg = e - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - else - success_ret.code = 200 - success_ret.msg = jsonc.stringify(split(o,'\n')) - luci.http.prepare_content("application/json") - luci.http.write_json(success_ret) - end -end - --- call get_available_backup_file_list -function get_available_backup_file_list() - local jsonc = require "luci.jsonc" - local error_ret = {code = 500, msg = "Unknown"} - local success_ret = {code = 200,msg = "Unknown"} - local path = luci.http.formvalue("path") - local r,o,e - - if path ~= "" then - -- update local backup path - update_local_backup_path(path) - r,o,e = is_exec(myopkg .. " get_available_backup_file_list " .. path) - if r ~= 0 then - error_ret.msg = e - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - else - success_ret.code = 200 - success_ret.msg = jsonc.stringify(split(o,'\n')) - luci.http.prepare_content("application/json") - luci.http.write_json(success_ret) - end - else - -- set error code - error_ret.msg = "Path Unknown" - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - end -end - --- post set_local_backup_dir_path -function set_local_backup_dir_path() - local path = luci.http.formvalue("path") - local success_ret = {code = 200,msg = "Success"} - local error_ret = {code = 500, msg = "Unknown"} - - if path ~= "" then - -- update local backup path - update_local_backup_path(path) - luci.http.prepare_content("application/json") - luci.http.write_json(success_ret) - else - -- set error code - error_ret.msg = "Path Unknown" - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - end -end - --- call get_local_backup_dir_path -function get_local_backup_dir_path() - local uci = require "uci" - local fs = require "nixio.fs" - local x = uci.cursor() - local local_backup_path = nil - local success_ret = {code = 200,msg = "Unknown"} - local error_ret = {code = 500, msg = "Path Unknown"} - - if fs.access("/etc/config/istore") then - local_backup_path = x:get("istore","istore","local_backup_path") - if local_backup_path == nil then - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - else - success_ret.msg = local_backup_path:gsub("[\r\n]", "") - luci.http.prepare_content("application/json") - luci.http.write_json(success_ret) - end - else - luci.http.prepare_content("application/json") - luci.http.write_json(error_ret) - end -end diff --git a/applications/luci-app-store/luasrc/view/store/main.htm b/applications/luci-app-store/luasrc/view/store/main.htm deleted file mode 100755 index b1cd6e7..0000000 --- a/applications/luci-app-store/luasrc/view/store/main.htm +++ /dev/null @@ -1,24 +0,0 @@ -<%+header%> - - -

应用商店 v<%=id.version%>

-
-
- - -<%+footer%> \ No newline at end of file diff --git a/applications/luci-app-store/root/bin/ipkg-build b/applications/luci-app-store/root/bin/ipkg-build deleted file mode 100755 index 343aab6..0000000 --- a/applications/luci-app-store/root/bin/ipkg-build +++ /dev/null @@ -1,200 +0,0 @@ -#!/bin/sh - -# ipkg-build -- construct a .ipk from a directory -# Carl Worth -# based on a script by Steve Redler IV, steve@sr-tech.com 5-21-2001 -# 2003-04-25 rea@sr.unh.edu -# Updated to work on Familiar Pre0.7rc1, with busybox tar. -# Note it Requires: binutils-ar (since the busybox ar can't create) -# For UID debugging it needs a better "find". -set -e - -version=1.0 -FIND="$(command -v find)" -FIND="${FIND:-$(command -v gfind)}" -TAR="${TAR:-$(command -v tar)}" -GZIP="$(command -v gzip)" - -# try to use fixed source epoch -if [ -n "$PKG_SOURCE_DATE_EPOCH" ]; then - TIMESTAMP=$(date --date="@$PKG_SOURCE_DATE_EPOCH") -elif [ -n "$SOURCE_DATE_EPOCH" ]; then - TIMESTAMP=$(date --date="@$SOURCE_DATE_EPOCH") -else - TIMESTAMP=$(date) -fi - -ipkg_extract_value() { - sed -e "s/^[^:]*:[[:space:]]*//" -} - -required_field() { - field=$1 - - grep "^$field:" < $CONTROL/control | ipkg_extract_value -} - -pkg_appears_sane() { - local pkg_dir=$1 - - local owd=$PWD - cd $pkg_dir - - PKG_ERROR=0 - pkg=`required_field Package` - version=`required_field Version | sed 's/Version://; s/^.://g;'` - arch=`required_field Architecture` - - if echo $pkg | grep '[^a-zA-Z0-9_.+-]'; then - echo "*** Error: Package name $name contains illegal characters, (other than [a-z0-9.+-])" >&2 - PKG_ERROR=1; - fi - - if [ -f $CONTROL/conffiles ]; then - rm -f $CONTROL/conffiles.resolved - - for cf in `$FIND $(sed -e "s!^/!$pkg_dir/!" $CONTROL/conffiles) -type f`; do - echo "${cf#$pkg_dir}" >> $CONTROL/conffiles.resolved - done - - rm $CONTROL/conffiles - if [ -f $CONTROL/conffiles.resolved ]; then - mv $CONTROL/conffiles.resolved $CONTROL/conffiles - chmod 0644 $CONTROL/conffiles - fi - fi - - cd $owd - return $PKG_ERROR -} - -resolve_file_mode_id() { - local var=$1 type=$2 name=$3 id - - case "$name" in - root) - id=0 - ;; - *[!0-9]*) - id=$(sed -ne "s#^$type $name \\([0-9]\\+\\)\\b.*\$#\\1#p" "$TOPDIR/tmp/.packageusergroup" 2>/dev/null) - ;; - *) - id=$name - ;; - esac - - export "$var=$id" - - [ -n "$id" ] -} - -### -# ipkg-build "main" -### -file_modes="" -usage="Usage: $0 [-v] [-h] [-m] []" -while getopts "hvm:" opt; do - case $opt in - v ) echo $version - exit 0 - ;; - h ) echo $usage >&2 ;; - m ) file_modes=$OPTARG ;; - \? ) echo $usage >&2 - esac -done - - -shift $(($OPTIND - 1)) - -# continue on to process additional arguments - -case $# in -1) - dest_dir=$PWD - ;; -2) - dest_dir=$2 - if [ "$dest_dir" = "." -o "$dest_dir" = "./" ] ; then - dest_dir=$PWD - fi - ;; -*) - echo $usage >&2 - exit 1 - ;; -esac - -pkg_dir=$1 - -if [ ! -d $pkg_dir ]; then - echo "*** Error: Directory $pkg_dir does not exist" >&2 - exit 1 -fi - -# CONTROL is second so that it takes precedence -CONTROL= -[ -d $pkg_dir/CONTROL ] && CONTROL=CONTROL -if [ -z "$CONTROL" ]; then - echo "*** Error: Directory $pkg_dir has no CONTROL subdirectory." >&2 - exit 1 -fi - -if ! pkg_appears_sane $pkg_dir; then - echo >&2 - echo "ipkg-build: Please fix the above errors and try again." >&2 - exit 1 -fi - -tmp_dir=$dest_dir/IPKG_BUILD.$$ -mkdir $tmp_dir - -echo $CONTROL > $tmp_dir/tarX -cd $pkg_dir -for file_mode in $file_modes; do - case $file_mode in - /*:*:*:*) - ;; - *) - echo "ERROR: file modes must use absolute path and contain user:group:mode" - echo "$file_mode" - exit 1 - ;; - esac - - mode=${file_mode##*:}; path=${file_mode%:*} - group=${path##*:}; path=${path%:*} - user=${path##*:}; path=${path%:*} - - if ! resolve_file_mode_id uid user "$user"; then - echo "ERROR: unable to resolve uid of $user" >&2 - exit 1 - fi - - if ! resolve_file_mode_id gid group "$group"; then - echo "ERROR: unable to resolve gid of $group" >&2 - exit 1 - fi - - chown "$uid:$gid" "$pkg_dir/$path" - chmod "$mode" "$pkg_dir/$path" -done -$TAR -X $tmp_dir/tarX --format=gnu --sort=name -cpf - --mtime="$TIMESTAMP" . | $GZIP -n - > $tmp_dir/data.tar.gz - -installed_size=`stat -c "%s" $tmp_dir/data.tar.gz` -sed -i -e "s/^Installed-Size: .*/Installed-Size: $installed_size/" \ - $pkg_dir/$CONTROL/control - -( cd $pkg_dir/$CONTROL && $TAR --format=gnu --sort=name -cf - --mtime="$TIMESTAMP" . | $GZIP -n - > $tmp_dir/control.tar.gz ) -rm $tmp_dir/tarX - -echo "2.0" > $tmp_dir/debian-binary - -pkg_file=$dest_dir/${pkg}_${version}_${arch}.ipk -rm -f $pkg_file -( cd $tmp_dir && $TAR --format=gnu --sort=name -cf - --mtime="$TIMESTAMP" ./debian-binary ./data.tar.gz ./control.tar.gz | $GZIP -n - > $pkg_file ) - -rm $tmp_dir/debian-binary $tmp_dir/data.tar.gz $tmp_dir/control.tar.gz -rmdir $tmp_dir - -echo "Packaged contents of $pkg_dir into $pkg_file" diff --git a/applications/luci-app-store/root/bin/is-opkg b/applications/luci-app-store/root/bin/is-opkg deleted file mode 100755 index 9d6ad26..0000000 --- a/applications/luci-app-store/root/bin/is-opkg +++ /dev/null @@ -1,477 +0,0 @@ -#!/bin/sh -#set -x -#IS_DEBUG=1 - -IS_ROOT=/tmp/is-root -DL_DIR=${IS_ROOT}/tmp/dl -LISTS_DIR_O=/tmp/opkg-lists -LISTS_DIR=${IS_ROOT}${LISTS_DIR_O} -OPKG_CONF_DIR=${IS_ROOT}/etc/opkg -APP_LIST_FILE=/etc/istore/app.list -BACKUP_CONFIG_FILE=/etc/config/istore -FEEDS_SERVER=https://istore.linkease.com/repo -ARCH=`jsonfilter -i /etc/.app_store.id -e '$.arch'` - -# for istore self upgrade -ISTORE_PKG=luci-app-store -ISTORE_INDEX=https://istore.linkease.com/repo/all/store/Packages.gz - -action=${1} -shift - -is_init() { - mkdir -p ${DL_DIR} ${LISTS_DIR} ${IS_ROOT}/etc ${IS_ROOT}/var - - cat /etc/opkg.conf | grep -v lists_dir | grep -v check_signature > ${IS_ROOT}/etc/opkg.conf - - cp ${IS_ROOT}/etc/opkg.conf ${IS_ROOT}/etc/opkg_o.conf - - echo >> ${IS_ROOT}/etc/opkg.conf - echo "lists_dir ext ${LISTS_DIR}" >> ${IS_ROOT}/etc/opkg.conf - echo >> ${IS_ROOT}/etc/opkg_o.conf - echo "lists_dir ext ${LISTS_DIR_O}" >> ${IS_ROOT}/etc/opkg_o.conf - - cp -au /etc/opkg ${IS_ROOT}/etc/ - [ -e ${IS_ROOT}/var/lock ] || ln -s /var/lock ${IS_ROOT}/var/lock -} - -opkg_wrap() { - OPKG_CONF_DIR=${OPKG_CONF_DIR} opkg -f ${IS_ROOT}/etc/opkg.conf "$@" -} - -fcurl() { - curl --fail --show-error "$@" -} - -update() { - if [ -z "${ARCH}" ]; then - echo "Get architecture failed" >&2 - echo "/etc/.app_store.id:" >&2 - cat /etc/.app_store.id >&2 - return 1 - fi - - fcurl -o ${OPKG_CONF_DIR}/meta.conf "${FEEDS_SERVER}/all/meta.conf" && \ - fcurl -o ${OPKG_CONF_DIR}/all.conf "${FEEDS_SERVER}/all/isfeeds.conf" && \ - fcurl -o ${OPKG_CONF_DIR}/arch.conf "${FEEDS_SERVER}/${ARCH}/isfeeds.conf" || \ - return 1 - - opkg -f ${IS_ROOT}/etc/opkg_o.conf --offline-root ${IS_ROOT} update - - return 0 -} - -update_if_outdate() { - local idle_t=$((`date '+%s'` - `date -r ${IS_ROOT}/.last_force_ts '+%s' 2>/dev/null || echo '0'`)) - [ $idle_t -gt ${1:-120} ] || return 2 - update || return 1 - touch ${IS_ROOT}/.last_force_ts - return 0 -} - -check_self_upgrade() { - local newest=`curl --connect-timeout 2 --max-time 5 -s ${ISTORE_INDEX} | gunzip | grep -FA10 "Package: ${ISTORE_PKG}" | grep -Fm1 'Version: ' | sed 's/^Version: //'` - local current=`grep -Fm1 'Version: ' /usr/lib/opkg/info/${ISTORE_PKG}.control | sed 's/^Version: //'` - if [ "v$newest" = "v" -o "v$current" = "v" ]; then - echo "Check version failed!" >&2 - exit 255 - fi - if [ "$newest" != "$current" ]; then - echo "$newest" - fi - return 0 -} - -do_self_upgrade() { - check_mtime || return 1 - if opkg_wrap info ${ISTORE_PKG} | grep -qF not-installed ; then - true - else - update_if_outdate - local code=$? - [ "$code" = 1 ] && return 1 - if [ "$code" = 2 ] || ! opkg_wrap info ${ISTORE_PKG} | grep -qF not-installed; then - echo "already the latest version!" >&2 - return 1 - fi - fi - opkg_wrap upgrade ${ISTORE_PKG} -} - -check_mtime() { - find ${OPKG_CONF_DIR}/arch.conf -mtime -1 2>/dev/null | grep -q . || update -} - -wrapped_in_update() { - check_mtime || return 1 - opkg_wrap "$@" && return 0 - update_if_outdate || return 1 - opkg_wrap "$@" -} - -new_upgrade() { - check_mtime || return 1 - local metapkg=`echo "$@" | sed 's/ /\n/g' | grep -F app-meta-` - if [ -z "$metapkg" ] || opkg_wrap info $metapkg | grep -qF not-installed ; then - true - else - update_if_outdate - fi - wrapped_in_update upgrade "$@" -} - -opkg_list_installed_packages() { - target=$1 - case $target in - "preinstalled") - OPKG_INFO_DIR="/rom/usr/lib/opkg/info" - ;; - "userinstalled") - OPKG_INFO_DIR="/overlay/upper/usr/lib/opkg/info" - ;; - "allinstalled") - OPKG_INFO_DIR="/usr/lib/opkg/info" - ;; - *) - echo "invalid target" - exit - ;; - esac - - awk -v D="cd $OPKG_INFO_DIR &&" 'BEGIN { - C=D"ls *.list" - S="sort -n" - while(C|getline>0) { - P=substr(F=$1,1,length($1)-5) - J=D"du -sk $(cat "F")" - s=0 - while(J|getline>0) s+=$1 - close(J) - t+=s - print s" "P|S - } - close(S) - }' -} - -ipk_build() { - PKG_NAME_TEMP=$1 - IPK_OUTPUT_DIR=$2 - - UCI_BAK_DIR="/etc/istore/uci-defaults_bak/" - UCI_DEF_DIR="etc/uci-defaults" - OPKG_INFO_DIR="/usr/lib/opkg/info/" - - [ -n "${PKG_NAME_TEMP}" ] || exit 1 - #get real pkg name in opkg - PKG_NAME_TEMP=`cat ${IS_ROOT}/all_installed_package.list | sort -u | grep "^${PKG_NAME_TEMP}" | head -n 1` - [ -n "${PKG_NAME_TEMP}" ] || exit 1 - - PKG_NAME=`cat ${OPKG_INFO_DIR}${PKG_NAME_TEMP}.control | grep "^Package: " | cut -d ' ' -f2` - PKG_VER=`cat ${OPKG_INFO_DIR}${PKG_NAME}.control | grep "^Version: " | cut -d ' ' -f2` - PKG_ARCH=`cat ${OPKG_INFO_DIR}${PKG_NAME}.control | grep "^Architecture: " | cut -d ' ' -f2` - IPK_FILE_NAME="${PKG_NAME}_${PKG_VER}_${PKG_ARCH}" - - rm -rf ${IS_ROOT}/${IPK_FILE_NAME} - mkdir -p ${IS_ROOT}/${IPK_FILE_NAME} - - #(1)make CONTROL dir; (2)copy control file to dir - cd ${IS_ROOT}/${IPK_FILE_NAME} - mkdir -p CONTROL - for control_file in `ls ${OPKG_INFO_DIR}${PKG_NAME}.* | grep -v ".list$"`; do - file=${control_file##*/} - suffix=${file##*.} - cp ${control_file} CONTROL/${suffix} - done - - #(1)make DATA depend dir; (2)copy uci-defaults_bak file to dir; (3)copy other file to dir - for pkgfile in `cat ${OPKG_INFO_DIR}${PKG_NAME}.list | cut -b 2-`; do - file=${pkgfile##*/} - path=${pkgfile%/*} - mkdir -p ${path} - if [ `echo "${path}" | grep "^${UCI_DEF_DIR}"` ]; then - cp "${UCI_BAK_DIR}${file}" "${pkgfile}" - else - cp "/${pkgfile}" "${pkgfile}" - fi - done - - #call ipkg-build script to build ipk - ipkg-build ${IS_ROOT}/${IPK_FILE_NAME} ${IPK_OUTPUT_DIR} - echo "${IPK_FILE_NAME}.ipk" >> ${IPK_OUTPUT_DIR}/appdepipk.list - - [ -n "${IS_DEBUG}" ] || rm -rf ${IS_ROOT}/${IPK_FILE_NAME} -} - -# if arg is NULL, use light backup, otherwise use local backup -backup() { - [ -n "$1" ] && BACKUP_PATH=$1 - - #1.add all istore self data to sysupgrade config file, - #sysupgrade will backup/restore it auto when flash new firmware - echo "/etc/.app_store.id" > /lib/upgrade/keep.d/luci-app-store - cat /usr/lib/opkg/info/luci-app-store.list >> /lib/upgrade/keep.d/luci-app-store - echo "/etc/rc.d/S45istore" >> /lib/upgrade/keep.d/luci-app-store - echo "/etc/istore/uci-defaults_bak" >> /lib/upgrade/keep.d/luci-app-store - echo "${APP_LIST_FILE}" >> /lib/upgrade/keep.d/luci-app-store - echo "${BACKUP_CONFIG_FILE}" >> /lib/upgrade/keep.d/luci-app-store - - #2.backup all installed package lists to config file - update #if want not depend this, need record package list by istore to file when is-opkg update - - #get feed list - opkg_conf_list="meta all arch" - feed_name_list="" - for conf in ${opkg_conf_list}; do - feed_name=`cat ${OPKG_CONF_DIR}/${conf}.conf | cut -d ' ' -f2` - feed_name_list="${feed_name} ${feed_name_list}" - done - [ -n "${IS_DEBUG}" ] && echo ${feed_name_list} - - istore_package_list="" - #get istore package list - for feed_name in ${feed_name_list}; do - package_list=`cat ${LISTS_DIR}/${feed_name} | gunzip | grep "^Package: " | cut -d ' ' -f2` - istore_package_list="${package_list} ${istore_package_list}" - done - [ -n "${IS_DEBUG}" ] && echo ${istore_package_list} - - #write istore package list to file - echo ${istore_package_list} | tr " " "\n" | sort -n | uniq > ${IS_ROOT}/istore_support_package.list - - #write all installed package list to file - opkg_list_installed_packages "allinstalled" 2>/dev/null | cut -d ' ' -f2 | sort -u > ${IS_ROOT}/all_installed_package.list - - #write user installed package list to file - opkg_list_installed_packages "userinstalled" 2>/dev/null | cut -d ' ' -f2 | sort -u > ${IS_ROOT}/user_installed_package.list - - #write system pre installed package list to file - opkg_list_installed_packages "preinstalled" 2>/dev/null | cut -d ' ' -f2 | sort -u > ${IS_ROOT}/pre_installed_package.list - - #write installed package list by istore feed to file - cat ${IS_ROOT}/istore_support_package.list ${IS_ROOT}/user_installed_package.list | \ - sort -n | uniq -d > ${IS_ROOT}/istore_installed_package.list - - #if no input backup path, only back app.list - mkdir -p /etc/istore - cp ${IS_ROOT}/istore_installed_package.list ${APP_LIST_FILE} - echo "backup installed package list to ${APP_LIST_FILE}" - - if [ ! -n "${BACKUP_PATH}" ]; then - echo "backup success" - exit 0 - fi - - #write installed packages and depends list by istore feed to file by depend sequence - appdep_list="" - temp_list=`cat ${IS_ROOT}/istore_installed_package.list | sed 's/^/\t/'` - while [ -n "${temp_list}" ] - do - #get real pkg name - for PKG_NAME_TEMP in ${temp_list}; do - REAL_PKG_NAME=`cat ${IS_ROOT}/all_installed_package.list | sort -u | grep "^${PKG_NAME_TEMP}" | head -n 1` - if [ "${REAL_PKG_NAME}" != "${PKG_NAME_TEMP}" ]; then - temp_list=`echo "${temp_list}" | sed 's/^\t'"${PKG_NAME_TEMP}"'$/\t'"${REAL_PKG_NAME}"'/'` - fi - done - - appdep_list=`echo -e "${temp_list}\n${appdep_list}"` - [ -n "${IS_DEBUG}" ] && echo -e "temp_list:\n""${temp_list}" - [ -n "${IS_DEBUG}" ] && echo -e "appdep_list:\n""${appdep_list}" - - temp_list=`echo "${temp_list}" | xargs opkg depends | grep -v "depends on:" | grep -v " (>= " | grep -v " (= " | sort -u` - done - - appdep_list_all=`echo "${appdep_list}" | cut -f2 | grep -v "^$" | awk '!seen[$0]++'` - [ -n "${IS_DEBUG}" ] && echo -e "appdep_list_all:\n""${appdep_list_all}" - echo "${appdep_list_all}" > ${IS_ROOT}/appdep.list - - - #3.rebuild all istore installed package to ipk and backup to userdata partation - if [ ! -d "${BACKUP_PATH}" ];then - echo "invalid backup path, can not backup ipk" - exit 1 - fi - - # 4. create dir - date=$(date +%Y-%m%d-%H%M) - if [ ! -d "$BACKUP_PATH/backup_istore_$date" ];then - mkdir $BACKUP_PATH/backup_istore_$date - fi - cp ${IS_ROOT}/istore_installed_package.list $BACKUP_PATH/backup_istore_$date/app.list - cp ${IS_ROOT}/appdep.list $BACKUP_PATH/backup_istore_$date/appdep.list - - #only backup non pre installed ipk - cp ${IS_ROOT}/appdep.list ${IS_ROOT}/appdep_strip.list - for pre_installed_pkg in `cat ${IS_ROOT}/appdep.list ${IS_ROOT}/pre_installed_package.list | sort -n | uniq -d`; do - sed -i '/^'"$pre_installed_pkg"'$/d' ${IS_ROOT}/appdep_strip.list - done - - rm -f $BACKUP_PATH/backup_istore_$date/appdepipk.list - echo "build ipk" - for pkg_name in `cat ${IS_ROOT}/appdep_strip.list`; do - ipk_build ${pkg_name} $BACKUP_PATH/backup_istore_$date - done - - # 5. create tar.gz file,and remove fir - cd $BACKUP_PATH - echo "write backup file to $BACKUP_PATH/backup_istore_$date.backup.tar.gz" - tar -czf $BACKUP_PATH/backup_istore_$date.backup.tar.gz backup_istore_$date - rm -rf $BACKUP_PATH/backup_istore_$date - echo "backup success" -} - -# if arg is NULL, use light backup, otherwise use local backup -restore() { - if [ -n "$1" ]; then - BACKUP_PATH_FILE=$1 - else - echo "install package by ${APP_LIST_FILE}" - update - for app in `cat ${APP_LIST_FILE}`; do - #skip resotre istore self - [ "A${app}" == "A""luci-app-store" ] && continue - opkg_wrap install ${app} - done - exit 0 - fi - - if [ ! -f "${BACKUP_PATH_FILE}" ];then - echo "invalid backup file, can not restore ipk" - exit 1 - fi - - #1. Unzip file to dir - BACKUP_PATH_FILE_NAME=${BACKUP_PATH_FILE##*/} - BACKUP_PATH=/tmp/${BACKUP_PATH_FILE_NAME%.backup.tar.gz*} - if [ -d "$BACKUP_PATH" ];then - rm -rf $BACKUP_PATH - fi - mkdir -p $BACKUP_PATH - echo "unpack input file..." - # fix tar path error - tar -zxf ${BACKUP_PATH_FILE} -C /tmp/ - - echo "check file" - if [ ! -f "${BACKUP_PATH}/appdep.list" ];then - echo "no available appdep.list, can not restore ipk" - exit 1 - fi - echo "check success" - - #2. install ipk by backup path - echo "restore begin" - for app in `cat ${BACKUP_PATH}/appdepipk.list`; do - opkg_wrap install ${BACKUP_PATH}/${app} - done - - #3. rm dir - rm -rf ${BACKUP_PATH} - echo "restore success" -} - -get_support_backup_features() { - echo "light_backup" - #istore custom img mean support local_backup - if [ -f /etc/istore_img_flag ];then - echo "local_backup" - fi -} - -get_backup_app_list_file_path() { - echo "${APP_LIST_FILE}" -} - -get_backup_app_list() { - if [ ! -f "${APP_LIST_FILE}" ];then - echo "no app.list, can not get backup app list" - exit 1 - fi - cat ${APP_LIST_FILE} -} - -get_available_backup_file_list() { - if [ -n "$1" ]; then - for backup_file in `ls $1/*.backup.tar.gz`; do - filename=${backup_file##*/} - echo "${filename}" - done - else - echo "input backup path is null" - exit 1 - fi -} - -usage() { - echo "usage: is-opkg sub-command [arguments...]" - echo "where sub-command is one of:" - echo " update Update list of available packages" - echo " upgrade Upgrade package(s)" - echo " install Install package(s)" - echo " remove Remove package(s)" - echo " info [pkg|regexp] Display all info for " - echo " list-upgradable List installed and upgradable packages" - echo " check_self_upgrade Check iStore upgrade" - echo " do_self_upgrade Upgrade iStore" - echo " backup [dir] Backup all installed package(s) to [directory]" - echo " restore [dir] Restore package(s) by [directory]" - echo " get_support_backup_features get device support backup features" - echo " get_backup_app_list_file_path get light backup app list file path" - echo " get_backup_app_list get light backup app list" - echo " get_available_backup_file_list get local available backup file list" - echo " opkg sys opkg wrap" -} - -is_init >/dev/null 2>&1 - -case $action in - "update") - update - ;; - "install") - wrapped_in_update install "$@" - ;; - "upgrade") - new_upgrade "$@" - ;; - "remove") - opkg_wrap --autoremove --force-removal-of-dependent-packages remove "$@" - ;; - "info") - opkg_wrap info "$@" - ;; - "list-upgradable") - opkg_wrap list-upgradable - ;; - "check_self_upgrade") - check_self_upgrade - ;; - "do_self_upgrade") - do_self_upgrade - ;; - "get_support_backup_features") - get_support_backup_features - ;; - "backup") - backup "$@" - ;; - "restore") - restore "$@" - ;; - "get_backup_app_list_file_path") - get_backup_app_list_file_path - ;; - "get_backup_app_list") - get_backup_app_list - ;; - "get_available_backup_file_list") - get_available_backup_file_list "$@" - ;; - "opkg") - opkg_wrap "$@" - ;; - - *) - usage - ;; -esac diff --git a/applications/luci-app-store/root/etc/init.d/istore b/applications/luci-app-store/root/etc/init.d/istore deleted file mode 100755 index 4b50651..0000000 --- a/applications/luci-app-store/root/etc/init.d/istore +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh /etc/rc.common -# Copyright (C) 2016 OpenWrt.org - -START=45 - -boot() { - [ -s /etc/.app_store.id ] && return 0 - - mkdir -p /tmp/is-inst/var/lock - ARCH=`opkg -f /dev/null --offline-root /tmp/is-inst print-architecture | grep -v 'arch all' | grep -v 'arch noarch' | cut -d ' ' -f2` - rm -rf /tmp/is-inst - - for iface in eth0 br-lan; do - if [ -e /sys/class/net/$iface/address ]; then - HASH=`md5sum /sys/class/net/$iface/address | cut -d ' ' -f1` - break - fi - done - - if [ -z "$HASH" ]; then - HASH=`dd if=/dev/urandom bs=512 count=1 2>/dev/null | md5sum | cut -d ' ' -f1` - fi - - echo "{\"arch\":\"${ARCH}\", \"uid\":\"${HASH}\"}" > /etc/.app_store.id -} diff --git a/applications/luci-app-store/root/etc/uci-defaults/luci-app-store b/applications/luci-app-store/root/etc/uci-defaults/luci-app-store deleted file mode 100755 index 8e55ad9..0000000 --- a/applications/luci-app-store/root/etc/uci-defaults/luci-app-store +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -/etc/init.d/istore boot - -rm -rf /tmp/luci-indexcache /tmp/luci-modulecache diff --git a/applications/luci-app-store/root/usr/share/opkg/intercept/rm b/applications/luci-app-store/root/usr/share/opkg/intercept/rm deleted file mode 100755 index 9e50a80..0000000 --- a/applications/luci-app-store/root/usr/share/opkg/intercept/rm +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -for i in "$@"; do - echo "$i" | grep -s -q "/etc/uci-defaults/" \ - && mkdir -p /etc/istore/uci-defaults_bak \ - && cp -f "$i" /etc/istore/uci-defaults_bak/ -done -/bin/rm "$@" diff --git a/applications/luci-app-store/src/Makefile b/applications/luci-app-store/src/Makefile deleted file mode 100755 index 7ffd344..0000000 --- a/applications/luci-app-store/src/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -clean: -compile: -install: - mkdir -p "$(DESTDIR)/www/luci-static" - cp -a "$(FRONTEND_DIST)/luci-static/istore" "$(DESTDIR)/www/luci-static/" - $(SED) 's#\.js"#.js?v=$(APP_STORE_VERSION)"#g' "$(DESTDIR)/www/luci-static/istore/index.js" - mkdir -p "$(DESTDIR)/etc" - echo "$(APP_STORE_VERSION)" > "$(DESTDIR)/etc/.app_store.version" diff --git a/applications/quickstart/Makefile b/applications/quickstart/Makefile deleted file mode 100755 index bb13c6f..0000000 --- a/applications/quickstart/Makefile +++ /dev/null @@ -1,61 +0,0 @@ -# -# Copyright (C) 2015-2016 OpenWrt.org -# Copyright (C) 2020 jjm2473@gmail.com -# -# This is free software, licensed under the GNU General Public License v3. -# - -include $(TOPDIR)/rules.mk - -PKG_ARCH_quickstart:=$(ARCH) - -PKG_NAME:=quickstart -PKG_VERSION:=0.0.1 -PKG_RELEASE:=1 -PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://fw.koolcenter.com/binary/quickstart/ -PKG_HASH:=13018d6d166e58f25d42ae3e4bbf882a1ce30315f432246fc6627558aefd658f - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION) - -PKG_BUILD_PARALLEL:=1 -PKG_USE_MIPS16:=0 - -include $(INCLUDE_DIR)/package.mk - -define Package/$(PKG_NAME) - SECTION:=net - CATEGORY:=Network - SUBMENU:=Web Servers/Proxies - TITLE:=Quickstart, the quick start. - DEPENDS:= - URL:=https://easepi.linkease.com/ -endef - -define Package/$(PKG_NAME)/description - Quickstart is a dashboard & user guide -endef - - - -define Package/$(PKG_NAME)/postinst -#!/bin/sh -if [ -z "$${IPKG_INSTROOT}" ]; then - [ -f /etc/uci-defaults/quickstart ] && /etc/uci-defaults/quickstart && rm -f /etc/uci-defaults/quickstart -fi -endef - -define Build/Configure -endef - -define Build/Compile -endef - -define Package/$(PKG_NAME)/install - $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/uci-defaults - $(INSTALL_BIN) $(PKG_BUILD_DIR)/quickstart.$(PKG_ARCH_quickstart) $(1)/usr/sbin/quickstart - $(INSTALL_BIN) ./files/quickstart.init $(1)/etc/init.d/quickstart - $(INSTALL_BIN) ./files/quickstart.uci-default $(1)/etc/uci-defaults/quickstart -endef - -$(eval $(call BuildPackage,$(PKG_NAME))) diff --git a/applications/quickstart/files/quickstart.init b/applications/quickstart/files/quickstart.init deleted file mode 100755 index aa9bd36..0000000 --- a/applications/quickstart/files/quickstart.init +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh /etc/rc.common - -START=98 -USE_PROCD=1 - - -start_service() { - procd_open_instance - procd_set_param command /usr/sbin/quickstart - procd_set_param stderr 1 - procd_set_param respawn - procd_close_instance -} diff --git a/applications/quickstart/files/quickstart.uci-default b/applications/quickstart/files/quickstart.uci-default deleted file mode 100755 index c433b56..0000000 --- a/applications/quickstart/files/quickstart.uci-default +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -/etc/init.d/quickstart enable -/etc/init.d/quickstart start - -exit 0 \ No newline at end of file diff --git a/feeds.conf b/feeds.conf new file mode 100644 index 0000000..7fdeb7e --- /dev/null +++ b/feeds.conf @@ -0,0 +1,3 @@ +src-git nas https://github.com/linkease/nas-packages.git;master +src-git nas_luci https://github.com/linkease/nas-packages-luci.git;main +src-git istore https://github.com/linkease/istore.git;official-website-mod