diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 09bb857..0000000 --- a/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM alpine:3.11.6 - -WORKDIR /root -RUN wget https://raw.githubusercontent.com/helloxz/ccaa/master/docker-ccaa.sh && sh docker-ccaa.sh install -VOLUME /data/ccaaDown -EXPOSE 6080 6081 6800 51413 \ No newline at end of file diff --git a/README.md b/README.md index 33a226d..c538686 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,29 @@ +# 一键安装 +``` +bash <(curl -L git.io/ccaasudo.sh) +``` + +# 我的改动 +- 某些VPS上没有安装sudo,脚本跑出来结果是不能运行的。此repo添加了自动判断并安装sudo的功能 +- 本来就没有安装caddy,卸载时不需要杀caddy进程 +- 把ccaa_web放到repo里 +- 去掉Docker相关文件,想用Docker请去原repo https://github.com/helloxz/ccaa +- 支持选择IPv4或IPv6 +- 生成默认RPC 密钥 +- 生成一条URL设置服务端参数(地址,端口,path,协议,RPC密钥) +![image](https://github.com/crazypeace/ccaa/assets/665889/77d91798-f39d-4a88-8b18-cc11bf25fb87) + + +# Aria2 下载完成后自动转移到rclone挂载的网盘 +https://github.com/crazypeace/aria2_auto_rclone + +## 用你的STAR告诉我这个Repo对你有用 Welcome STARs! :) + +[![Stargazers over time](https://starchart.cc/crazypeace/ccaa.svg)](https://starchart.cc/crazypeace/ccaa) + +
+ 原项目readme (点击展开) + # CCAA 原为`CentOS + Caddy + AriaNg + Aria2`,故命名为CCAA,不过现在不仅仅支持CentOS,主流的Debian、Ubuntu也已经支持,自2.0版本已移除Caddy,改用Golang写了一个简单的webserver来运行AriaNg @@ -24,10 +50,7 @@ 一键安装脚本(使用root用户): ```bash -#海外 -bash <(curl -Lsk https://raw.githubusercontent.com/helloxz/ccaa/master/ccaa.sh) -#国内 -bash <(curl -Lsk https://raw.githubusercontent.com/helloxz/ccaa/master/ccaa.sh) cdn +bash <(curl -L git.io/ccaasudo.sh) ``` 如果出现`-bash: curl: command not found`错误,说明`curl`命令没安装,请输入下面的命令先安装`curl`,再回过头来执行上面的命令再来一次。 @@ -38,20 +61,6 @@ apt-get -y install curl yum -y install curl ``` -### Docker安装 -```bash -docker run --name="ccaa" -d -p 6080:6080 -p 6081:6081 -p 6800:6800 -p 51413:51413 \ - -v /data/ccaaDown:/data/ccaaDown \ - -e PASS="xiaoz.me" \ - helloz/ccaa \ - sh -c "dccaa pass && dccaa start" -``` - -* 第一个`/data/ccaaDown`为本地目录,CCAA下载后的内容会保存在此目录,请根据自身情况设置 -* `xiaoz.me`为Aria2密钥,运行的时候请修改为自己的密码 -* 文件管理默认用户名为`ccaa`,密码为`admin`,登录后可在后台修改 - - ### 常用命令 * ccaa:进入CCAA操作界面 @@ -59,20 +68,11 @@ docker run --name="ccaa" -d -p 6080:6080 -p 6081:6081 -p 6800:6800 -p 51413:5141 * ccaa stop:停止CCAA * ccaa start:启动CCAA * ccaa restart:重启CCAA -* ccaa -v:查看CCAA版本(2.0开始支持) - -### 部分截图 - -![](https://imgurl.org/upload/1810/e8bf5842058b46c5.png) - -![](https://imgurl.org/upload/1810/1180fb03eb3117ce.png) - -### 联系我 - -* Blog: [https://www.xiaoz.me/](https://www.xiaoz.me/) -* QQ: 337003006 -* 技术交流群: 147687134 +* ccaa -v:查看CCAA版本 -### 请我喝一杯咖啡 +### 注意 本脚本使用的不是官方的 Aria2 +而是一个编译的成品. Github 上面的版本只更新到 v1.36.0 后续新版本(v1.37.0及以后)转到Gitlab上面了. +https://gitlab.com/q3aql/aria2-static-builds/ +我搬了一个到本Repo, 脚本里使用的也是本Repo的url. -![](https://imgurl.org/upload/1712/cb349aa4a1b95997.png) \ No newline at end of file +
diff --git a/aria2-1.37.0-linux-gnu-64bit-build1.tar.bz2 b/aria2-1.37.0-linux-gnu-64bit-build1.tar.bz2 new file mode 100644 index 0000000..1123ac4 Binary files /dev/null and b/aria2-1.37.0-linux-gnu-64bit-build1.tar.bz2 differ diff --git a/ccaa b/ccaa index bc4a852..f78e8c2 100644 --- a/ccaa +++ b/ccaa @@ -2,6 +2,11 @@ ##### CCAA管理脚本 ##### ##### Author:xiaoz.me ##### ##### Update:2020-02-27 ##### +############################################################# +##### use service ##### +##### 优化: crazypeace ##### +##### Github: https://github.com/crazypeace/ccaa ##### +############################################################# #导入环境变量 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin @@ -14,30 +19,41 @@ filebrowser_pid=$(pgrep 'filebrowser') #如果变量不存在 if [ ! $1 ] then - bash <(curl -Lsk https://raw.githubusercontent.com/helloxz/ccaa/master/ccaa.sh) + +echo '...CCAA管理脚本用法... +#查看ccaa状态 + ccaa status +#启动ccaa + ccaa start +#停止ccaa + ccaa stop +#重启ccaa + ccaa restart +#查看当前版本 + ccaa -v' + + bash <(curl -Lsk https://raw.githubusercontent.com/crazypeace/ccaa/master/ccaa.sh) exit fi case $1 in 'start') - nohup sudo -u ccaa aria2c --conf-path=/etc/ccaa/aria2.conf > /var/log/aria2.log 2>&1 & - nohup sudo -u ccaa /usr/sbin/ccaa_web > /var/log/ccaa_web.log 2>&1 & - nohup sudo -u ccaa filebrowser -c /etc/ccaa/config.json > /var/log/fbrun.log 2>&1 & + service aria2 start + service ccaa_web start + service filebrowser start exit ;; 'stop') - kill -9 ${aria2pid} - kill -9 ${ccaa_web_pid} - kill -9 ${filebrowser_pid} + service aria2 stop + service ccaa_web stop + service filebrowser stop + exit ;; 'restart') - kill -9 ${aria2pid} - kill -9 ${ccaa_web_pid} - kill -9 ${filebrowser_pid} - nohup sudo -u ccaa aria2c --conf-path=/etc/ccaa/aria2.conf > /var/log/aria2.log 2>&1 & - nohup sudo -u ccaa /usr/sbin/ccaa_web > /var/log/ccaa_web.log 2>&1 & - nohup sudo -u ccaa filebrowser -c /etc/ccaa/config.json > /var/log/fbrun.log 2>&1 & - exit; + service aria2 restart + service ccaa_web restart + service filebrowser restart + exit ;; 'status') if [ "$aria2pid" == "" ] @@ -45,9 +61,11 @@ case $1 in echo "Not running!" else echo '-----------------------------------------------' + cat /etc/ccaa/aria2.conf | grep 'rpc-secret=' echo "Aria2 is running,pid is ${aria2pid}." echo "AriaNg is running,pid is ${ccaa_web_pid}." echo "Filebrowser is running,pid is ${filebrowser_pid}." + echo '原版帮助文档: https://dwz.ovh/ccaa (必看)' echo '-----------------------------------------------' fi ;; diff --git a/ccaa.sh b/ccaa.sh index 5fbb108..55e71fd 100644 --- a/ccaa.sh +++ b/ccaa.sh @@ -1,36 +1,68 @@ #!/bin/bash ##### 一键安装File Browser + Aria2 + AriaNg ##### -##### 作者:xiaoz.me ##### -##### 更新时间:2020-02-27 ##### +##### 作者: xiaoz.me 更新时间: 2020-02-27 ##### +############################################################# +##### remove cdn option ##### +##### add default_secret ##### +##### improve status display ##### +##### improve ip detect ##### +##### support IPv6 ##### +##### use service ##### +##### choose bt-tracker source ##### +##### 优化: crazypeace ##### +##### Github: https://github.com/crazypeace/ccaa ##### +############################################################# + + + +red='\e[91m' +green='\e[92m' +yellow='\e[93m' +magenta='\e[95m' +cyan='\e[96m' +none='\e[0m' #导入环境变量 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin export PATH -#CDN域名设置 -if [ $1 = 'cdn' ] +# root +[[ $(id -u) != 0 ]] && -e "\n 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}\n" && exit 1 + +# sudo +if [[ -e "/usr/bin/yum" ]] +then + if [[ -z "$(rpm -qa | grep sudo)" ]] then - aria2_url='http://soft.xiaoz.top/linux/aria2-1.35.0-linux-gnu-64bit-build1.tar.bz2' - filebrowser_url='http://soft.xiaoz.top/linux/linux-amd64-filebrowser.tar.gz' - master_url='https://github.com/helloxz/ccaa/archive/master.zip' - ccaa_web_url='http://soft.xiaoz.top/linux/ccaa_web.tar.gz' - else - aria2_url='https://github.com/q3aql/aria2-static-builds/releases/download/v1.35.0/aria2-1.35.0-linux-gnu-64bit-build1.tar.bz2' - filebrowser_url='https://github.com/filebrowser/filebrowser/releases/download/v2.0.16/linux-amd64-filebrowser.tar.gz' - master_url='https://github.com/helloxz/ccaa/archive/master.zip' - ccaa_web_url='http://soft.xiaoz.org/linux/ccaa_web.tar.gz' + echo -e "你的小鸡${red}没有安装${none}${yellow}sudo${none},下面开始安装${yellow}sudo${none}" + yum update + yum install -y sudo + fi +else + if [[ -z "$(dpkg -l | grep sudo)" ]] + then + echo -e "你的小鸡${red}没有安装${none}${yellow}sudo${none},下面开始安装${yellow}sudo${none}" + apt-get update + apt-get install -y sudo + fi fi +# aria2_url='https://github.com/q3aql/aria2-static-builds/releases/download/v1.36.0/aria2-1.36.0-linux-gnu-64bit-build1.tar.bz2' +aria2_url='https://github.com/crazypeace/ccaa/raw/master/aria2-1.37.0-linux-gnu-64bit-build1.tar.bz2' +filebrowser_url='https://github.com/filebrowser/filebrowser/releases/download/v2.31.2/linux-amd64-filebrowser.tar.gz' +master_url='https://github.com/crazypeace/ccaa/archive/master.zip' + #安装前的检查 function check(){ + echo echo '-------------------------------------------------------------' if [ -e "/etc/ccaa" ] then - echo 'CCAA已经安装,若需要重新安装,请先卸载再安装!' + echo -e "${red}CCAA已经安装, 若需要重新安装, 请先卸载再安装!${none}" echo '-------------------------------------------------------------' exit else - echo '检测通过,即将开始安装。' + echo -e "${green}检测通过, 即将开始安装. ${none}" echo '-------------------------------------------------------------' fi } @@ -47,11 +79,13 @@ function setout(){ fi #创建临时目录 cd + rm -rf ./ccaa_tmp mkdir ./ccaa_tmp #创建用户和用户组 groupadd ccaa useradd -M -g ccaa ccaa -s /sbin/nologin } + #安装Aria2 function install_aria2(){ #进入临时目录 @@ -59,8 +93,8 @@ function install_aria2(){ #yum -y update #安装aria2静态编译版本,来源于https://github.com/q3aql/aria2-static-builds/ wget -c ${aria2_url} - tar jxvf aria2-1.35.0-linux-gnu-64bit-build1.tar.bz2 - cd aria2-1.35.0-linux-gnu-64bit-build1 + tar jxvf aria2-1.37.0-linux-gnu-64bit-build1.tar.bz2 + cd aria2-1.37.0-linux-gnu-64bit-build1 make install cd } @@ -76,6 +110,7 @@ function install_file_browser(){ mv filebrowser /usr/sbin cd } + #处理配置文件 function dealconf(){ cd ./ccaa_tmp @@ -93,6 +128,7 @@ function dealconf(){ cp ccaa-master/ccaa /usr/sbin cd } + #自动放行端口 function chk_firewall(){ if [ -e "/etc/sysconfig/iptables" ] @@ -121,6 +157,7 @@ function chk_firewall(){ sudo ufw allow 51413/tcp fi } + #删除端口 function del_post() { if [ -e "/etc/sysconfig/iptables" ] @@ -149,61 +186,106 @@ function del_post() { sudo ufw delete 51413/tcp fi } + #添加服务 function add_service() { if [ -d "/etc/systemd/system" ] then cp /etc/ccaa/services/* /etc/systemd/system systemctl daemon-reload + + file_list=$(ls /etc/ccaa/services) + for file in $file_list; do + systemctl enable $file + done fi } + +#启动服务 +function start_service() { + file_list=$(ls /etc/ccaa/services) + for file in $file_list; do + systemctl start $file + done +} + #设置账号密码 function setting(){ cd cd ./ccaa_tmp + echo echo '-------------------------------------------------------------' - read -p "设置下载路径(请填写绝对地址,默认/data/ccaaDown):" downpath - read -p "Aria2 RPC 密钥:(字母或数字组合,不要含有特殊字符):" secret - #如果Aria2密钥为空 - while [ -z "${secret}" ] - do - read -p "Aria2 RPC 密钥:(字母或数字组合,不要含有特殊字符):" secret - done - + read -p "$(echo -e "设置下载路径 (请填写绝对地址,默认${green}/data/ccaaDown${none}): ")" downpath #如果下载路径为空,设置默认下载路径 if [ -z "${downpath}" ] then downpath='/data/ccaaDown' fi + default_secret=$(echo $(cat /proc/sys/kernel/random/uuid) | sed 's/.*\([a-z0-9]\{12\}\)$/\1/g') + + read -p "$(echo -e "Aria2 RPC 密钥:(字母或数字组合, 不要含有特殊字符 默认 ${green}${default_secret}${none}): ")" secret + #如果Aria2密钥为空 + if [ -z "${secret}" ] + then + secret=$default_secret + fi + # 生成密钥的BASE64URL + secret_base64url=$(echo -n ${secret} | base64 -w 0 | tr '+/' '-_' | tr -d '=') + #获取ip - osip=$(curl -4s https://api.ip.sb/ip) + echo -e "如果你的小鸡是${magenta}双栈(同时有IPv4和IPv6的IP)${none},请选择你准备用哪个'网口'" + echo "如果你不懂这段话是什么意思, 请直接回车" + read -p "$(echo -e "Input ${cyan}4${none} for IPv4, ${cyan}6${none} for IPv6: ")" netstack + if [[ $netstack = "4" ]]; then + osip=$(curl -4s https://www.cloudflare.com/cdn-cgi/trace | grep ip= | sed -e "s/ip=//g") + elif [[ $netstack = "6" ]]; then + osip=$(curl -6s https://www.cloudflare.com/cdn-cgi/trace | grep ip= | sed -e "s/ip=//g") + else + osip=$(curl -4s --connect-timeout 3 https://www.cloudflare.com/cdn-cgi/trace | grep ip= | sed -e "s/ip=//g") + if [[ -z $osip ]]; then + osip=$(curl -6s https://www.cloudflare.com/cdn-cgi/trace | grep ip= | sed -e "s/ip=//g") + netstack=6 + else + netstack=4 + fi + fi - #执行替换操作 + # 如果是IPV6环境 + if [[ $netstack = "6" ]]; then + # IP地址要用[]包起来 + osip="[${osip}]" + # 监听IPv6需要打开aria2.conf设置 + sed -i "s/disable-ipv6=.*$/disable-ipv6=false/g" /etc/ccaa/aria2.conf + fi + + default_user="ccaa" + + read -p "$(echo -e "filebrowser 用户名: (这是防止别人扫描的手段 建议自定义 默认 ${green}${default_user}${none}): ")" filebrowserUser + #如果filebrowser用户名为空 + if [ -z "${filebrowserUser}" ] + then + filebrowserUser=$default_user + fi + + #修改配置文件中的参数 mkdir -p ${downpath} sed -i "s%dir=%dir=${downpath}%g" /etc/ccaa/aria2.conf sed -i "s/rpc-secret=/rpc-secret=${secret}/g" /etc/ccaa/aria2.conf #替换filebrowser读取路径 - sed -i "s%ccaaDown%${downpath}%g" /etc/ccaa/config.json + sed -i "s%_ccaaDown_%${downpath}%g" /etc/ccaa/config.json + #替换filebrowser用户名 + sed -i "s%_ccaaUser_%${filebrowserUser}%g" /etc/ccaa/config.json #替换AriaNg服务器链接 sed -i "s/server_ip/${osip}/g" /etc/ccaa/AriaNg/index.html #更新tracker bash /etc/ccaa/upbt.sh - #安装AriaNg - wget ${ccaa_web_url} - tar -zxvf ccaa_web.tar.gz - cp ccaa_web /usr/sbin/ + #安装ccaa_web + cp ccaa-master/ccaa_web /usr/sbin/ chmod +x /usr/sbin/ccaa_web - #启动服务 - nohup sudo -u ccaa aria2c --conf-path=/etc/ccaa/aria2.conf > /var/log/aria2.log 2>&1 & - #nohup caddy -conf="/etc/ccaa/caddy.conf" > /etc/ccaa/caddy.log 2>&1 & - nohup sudo -u ccaa /usr/sbin/ccaa_web > /var/log/ccaa_web.log 2>&1 & - #运行filebrowser - nohup sudo -u ccaa filebrowser -c /etc/ccaa/config.json > /var/log/fbrun.log 2>&1 & - #重置权限 chown -R ccaa:ccaa /etc/ccaa/ chown -R ccaa:ccaa ${downpath} @@ -211,13 +293,22 @@ function setting(){ #注册服务 add_service + #启动服务 + start_service + + echo echo '-------------------------------------------------------------' - echo "大功告成,请访问: http://${osip}:6080/" - echo 'File Browser 用户名:ccaa' - echo 'File Browser 密码:admin' - echo 'Aria2 RPC 密钥:' ${secret} - echo '帮助文档: https://dwz.ovh/ccaa (必看)' + echo > ~/_ccaa_info_ + echo -e "大功告成,请访问: ${green}http://${osip}:6080/#!/settings/rpc/set/ws/${osip}/6800/jsonrpc/${secret_base64url}${none}" + echo "大功告成,请访问: http://${osip}:6080/#!/settings/rpc/set/ws/${osip}/6800/jsonrpc/${secret_base64url}" >> ~/_ccaa_info_ + echo -e "File Browser 用户名:${green}${filebrowserUser}${none}" + ehco "File Browser 用户名:${filebrowserUser}" >> ~/_ccaa_info_ + echo -e "File Browser 密码:${green}admin${none} (防止别人扫描 建议第一次登录后修改)" + echo "File Browser 密码:admin (防止别人扫描 建议第一次登录后修改)" >> ~/_ccaa_info_ + echo -e "Aria2 RPC 密钥: ${green}${secret}${none}" + echo "Aria2 RPC 密钥: ${secret}" >> ~/_ccaa_info_ echo '-------------------------------------------------------------' + echo "以上信息保存在 ~/_ccaa_info_ 中" } #清理工作 function cleanup(){ @@ -229,17 +320,24 @@ function cleanup(){ #卸载 function uninstall(){ - wget -O ccaa-uninstall.sh https://raw.githubusercontent.com/helloxz/ccaa/master/uninstall.sh + wget -O ccaa-uninstall.sh https://raw.githubusercontent.com/crazypeace/ccaa/master/uninstall.sh bash ccaa-uninstall.sh } #选择安装方式 -echo "------------------------------------------------" -echo "Linux + File Browser + Aria2 + AriaNg一键安装脚本(CCAA)" -echo "1) 安装CCAA" -echo "2) 卸载CCAA" -echo "3) 更新bt-tracker" -echo "q) 退出!" +echo +echo "........... Linux + File Browser + Aria2 + AriaNg一键安装脚本(CCAA) ..........." +echo "教程 https://zelikk.blogspot.com/2022/01/vmess-websocket-tls-caddy-nginx-aria2-ariang-filebrowser.html" +echo "有问题进群交流 https://t.me/+ISuvkzFGZPBhMzE1" +echo +echo -e "${yellow}1)${none} 安装CCAA" +echo +echo -e "${yellow}2)${none} 卸载CCAA" +echo +echo -e "${yellow}3)${none} 更新bt-tracker" +echo +echo -e "${yellow}q)${none} 退出!" +echo read -p ":" istype case $istype in 1) @@ -263,3 +361,5 @@ case $istype in ;; *) echo '参数错误!' esac + + diff --git a/ccaa_dir/AriaNg/LICENSE b/ccaa_dir/AriaNg/LICENSE index ca61fb4..51c85a0 100644 --- a/ccaa_dir/AriaNg/LICENSE +++ b/ccaa_dir/AriaNg/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016-2020 MaysWind (i@mayswind.net) +Copyright (c) 2016-2023 MaysWind (i@mayswind.net) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/ccaa_dir/AriaNg/css/aria-ng-57ba6760db.min.css b/ccaa_dir/AriaNg/css/aria-ng-57ba6760db.min.css new file mode 100644 index 0000000..0910159 --- /dev/null +++ b/ccaa_dir/AriaNg/css/aria-ng-57ba6760db.min.css @@ -0,0 +1,4 @@ +/*! + * AriaNg + * https://github.com/mayswind/AriaNg + */body,html{margin:0;padding:0}body{-webkit-user-select:none;-moz-user-select:none;user-select:none}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23555555%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E")!important;background-repeat:no-repeat,repeat!important;background-position:right .7em top 50%,0 0!important;background-size:.65em auto,100%!important;border:none;border-radius:0;padding:0 0 0 .35em}select::-ms-expand{display:none}td{vertical-align:middle!important}.modal textarea{resize:none}.blur{-moz-filter:blur(5px);-ms-filter:blur(5px);filter:blur(5px);filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=5,MakeShadow=false)}.disable-overlay{position:fixed;left:0;top:0;right:0;bottom:0;z-index:9999;cursor:not-allowed}.main-header .logo{overflow:visible}.main-header .logo .dropdown-menu{z-index:2000}.main-header .navbar .nav>li{display:inline-block}.main-header .navbar .nav>li>a{padding-left:10px;padding-right:10px}.main-header .navbar .nav>li.disabled>a{pointer-events:none!important}.main-header .navbar .navbar-nav{margin-left:5px}.main-header .navbar .navbar-searchbar{padding-top:8px;padding-right:20px;float:right}.main-header .logo .logo-mini{font-size:14px!important}.main-header .logo .logo-lg{cursor:pointer}.main-header .rpcselect-dropdown{max-height:200px;overflow-x:hidden}@media (min-height:360px){.main-header .rpcselect-dropdown{max-height:260px}}@media (min-height:480px){.main-header .rpcselect-dropdown{max-height:360px}}@media (min-height:600px){.main-header .rpcselect-dropdown{max-height:480px}}@media (min-height:720px){.main-header .rpcselect-dropdown{max-height:600px}}.main-sidebar{z-index:1010}.main-sidebar .sidebar-menu>li.treeview>ul.treeview-menu>li>a{padding:6px 5px 6px 41px}@supports (padding-left:max(15px,0px)){@media screen and (orientation:landscape){.main-sidebar ul.sidebar-menu>li.header,.main-sidebar ul.sidebar-menu>li>a{padding-left:max(15px,env(safe-area-inset-left))}.main-sidebar ul.sidebar-menu>li.treeview>ul.treeview-menu>li>a{padding-left:max(41px,calc(26px + env(safe-area-inset-left)))}}}.content-wrapper{min-height:calc(100vh - 48px)}.content-wrapper,.right-side{background-color:#fff}.content-wrapper>.content-body{overflow-y:scroll}@media screen and (orientation:portrait){.main-footer{padding-bottom:calc(15px + env(safe-area-inset-bottom))}}.main-footer>.navbar{margin-bottom:0;min-height:inherit}.main-footer>.navbar>.navbar-toolbar>.nav{float:left;margin:0}.main-footer>.navbar>.navbar-toolbar>.nav>li{display:inline-block;float:left}.main-footer>.navbar>.navbar-toolbar>.nav>li>a{padding:0 10px}.main-footer>.navbar>.navbar-toolbar>.nav>li:first-child>a{padding-left:0}.dropdown-menu.right-align{left:inherit;right:0}.default-cursor{cursor:default!important}.pointer-cursor{cursor:pointer!important}.text-cursor{cursor:text!important}.allow-word-break{word-wrap:break-word;word-break:break-all}.auto-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:absolute;border:1px solid #eee;background-color:#fff}.main-footer>.navbar>.navbar-toolbar>.nav>li>a{padding-left:8px;padding-right:8px}}.toolbar{cursor:pointer}.toolbar:active{box-shadow:inset 0 2px 6px rgba(0,0,0,.125)}.dropdown-menu small{color:#999}.dropdown-submenu{position:relative}.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;border-radius:0 6px 6px 6px}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#ccc;margin-top:5px;margin-right:-10px}.dropdown-menu>li.dropdown-submenu:hover{background-color:#e1e3e9}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;border-radius:6px 0 6px 6px}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#c4d2db;min-height:28px}::-webkit-scrollbar-track{background-color:#fff}::-webkit-scrollbar-thumb:active,::-webkit-scrollbar-thumb:hover{background-color:#d4dfe7}@media (max-width:767px){::-webkit-scrollbar{width:6px}}.fade-in.ng-enter{transition:all .3s linear;opacity:0}.fade-in.ng-enter.ng-enter-active{opacity:1}.keyboard-key{font-size:.85em;padding:1px 3px;border-radius:2px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:none!important}.btn-group+.btn{margin-left:4px}.btn-sm.promise-btn-style{padding-top:6px;padding-bottom:6px}.btn.btn-xs:not(.is-loading) .btn-spinner:not(:required){margin-left:-21px}.progress-bar{transition:initial!important}.input-group-addon-compact{padding:0 4px}.nav-tabs-custom .nav-tabs>li>a{display:inline-block}.nav-tabs-custom .nav-tabs>li>a.nav-tab-close{padding-left:0;margin-left:-12px}.nav-tabs-custom .nav-tabs>li.nav-tab-title-rpcname>a{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}@media (max-width:991px){.nav-tabs-custom .nav-tabs>li.nav-tab-title-rpcname>a{max-width:150px}}@media (max-width:767px){.nav-tabs-custom .nav-tabs>li.nav-tab-title-rpcname>a{max-width:120px}}.input-group.input-group-multiple>.input-group-addon{border-left:0;border-right:0}.input-group.input-group-multiple>.input-group-addon-container:first-child,.input-group.input-group-multiple>.input-group-addon:first-child{border-left:1px solid #d2d6de}.input-group .input-group-addon-container{width:1%;display:table-cell}.label{font-size:85%}.fa-half{font-size:.5em}.fa-1_1x{font-size:1.1em}.fa-rotate-45{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(45deg);filter:none}.fa-right-bottom{position:relative;right:0;bottom:-6px}.fa-display-order{margin-left:3px}.fa-order-asc,.fa-order-desc{position:relative}.fa-order-asc{bottom:-2px}.fa-order-desc{bottom:2px}.checkbox input[type=checkbox]:focus+label:before,.checkbox input[type=radio]:focus+label:before{outline:none!important}.checkbox.checkbox-hide{padding-left:0}.checkbox.checkbox-hide>input,.checkbox.checkbox-hide>input+label:after,.checkbox.checkbox-hide>input+label:before{display:none!important}.checkbox.checkbox-hide>label{padding-left:0}.checkbox-compact{margin-top:2px;margin-bottom:2px}.checkbox-inline{display:inline-block}.icon-dir-expand+.checkbox{margin-left:6px}input-dropdown[input-class-name=form-control]>.input-dropdown{width:100%}.input-dropdown ul{border:1px solid #888}.input-dropdown ul>li.active{background-color:#e1e3e9}.input-dropdown ul>li{padding:2px 14px}.gu-mirror{cursor:grabbing;cursor:-webkit-grabbing}.global-status{cursor:pointer}.global-status>.realtime-speed{padding:0 15px}.global-status>.realtime-speed:first-child{padding-left:5px}.global-status>.realtime-speed:last-child{padding-right:5px}.global-status span.realtime-speed>i{padding-right:2px}.task-table{margin-left:15px;margin-right:15px}@media screen and (orientation:landscape){.content>.task-table,.tab-pane>.task-table{margin-right:calc(15px + env(safe-area-inset-right))}}.task-table .task-table-title{font-size:12px;padding-top:4px;padding-bottom:4px}.task-table .task-table-title a{color:#000;cursor:pointer}.task-table>.task-table-body.draggable{cursor:move;cursor:grab;cursor:-webkit-grab}@media screen and (orientation:landscape){.content>.task-table div.row,.tab-pane>.task-table div.row{margin-right:calc(-1 * (15px + env(safe-area-inset-right)));padding-right:env(safe-area-inset-right)}}.task-table>.task-table-body>div.row{padding-top:8px;padding-bottom:8px;border-top:1px solid #ddd}.task-table>div.row:first-child{border-top:inherit}@media (max-width:767px){.task-table>.task-table-title{display:none!important}.task-table>.task-table-body>div.row:first-child{border-top:inherit}}.task-table .task-name{font-size:14px;display:block}.task-table .peer-name-wrapper{display:inline-block;width:100%}.task-table .task-files,.task-table .task-size{font-size:12px;display:block}.task-table .progress{margin-bottom:0}.task-table .task-last-time,.task-table .task-last-time+.task-download-speed,.task-table .task-seeders{color:#888;font-size:12px}.task-table .task-last-time+.task-download-speed,.task-table .task-seeders{margin-top:1px}.task-table .task-last-time+.task-download-speed{padding-left:20px}.task-table .task-download-speed,.task-table .task-peer-download-speed{font-size:12px}.task-table .checkbox,.task-table .radio{margin-top:0;margin-bottom:0}.task-table .progress{position:relative}.task-table .progress span{position:absolute;display:block;width:100%}.task-table .progress span.progress-lower{color:#000}@media (max-width:767px){.task-table .task-peer-download-speed{float:right}}.task-table .task-right-arrow{visibility:hidden;position:absolute;right:14px;margin-top:-12px}.task-table .row:hover .task-right-arrow,.task-table .row[data-selected=true] .task-right-arrow{visibility:visible}.task-table .task-right-arrow i{color:#c8c8c8;font-size:60px}.task-table .task-right-arrow i:hover{color:#d8d8d8}.settings-table{margin-left:15px;margin-right:15px}@media screen and (orientation:landscape){.content>.settings-table,.tab-pane>.settings-table{margin-right:calc(15px + env(safe-area-inset-right))}}.settings-table .settings-table-title{font-size:12px;padding-top:4px;padding-bottom:4px}.settings-table .settings-table-title a{color:#000;cursor:pointer}.settings-table .settings-table-title .settings-table-title-toolbar{display:inline-block;margin-left:10px}.settings-table>div.row{padding-top:8px;padding-bottom:8px;border-top:1px solid #ddd}@media screen and (orientation:landscape){.content>.settings-table>div.row,.tab-pane>.settings-table>div.row{margin-right:calc(-1 * (15px + env(safe-area-inset-right)));padding-right:env(safe-area-inset-right)}}.settings-table>div.row:first-child{border-top:inherit}.settings-table+.settings-table>div.row:first-child{border-top:1px solid #ddd}.settings-table .input-group-addon{background-color:#eee}.settings-table .asterisk{color:red}.settings-table .description,.settings-table .description-inline{color:#888;font-size:12px;font-weight:400;font-style:normal}.settings-table .description{display:block}.settings-table .description-inline{display:inline-block}.settings-table em{color:#888;font-size:12px;font-weight:400}.settings-table .setting-value .form-group{margin-bottom:0}.settings-table .setting-value .form-group .form-control-icon{color:#3c8dbc}.settings-table .setting-value .form-group select.form-control+.form-control-icon>.form-control-feedback{right:10px}.settings-table .setting-value .input-group .form-group .form-control:focus{z-index:inherit}.settings-table .setting-value .input-group .form-control-rpcport{min-width:70px}.settings-table .setting-value .input-group .form-control-rpcinterface{min-width:100px}@media (max-width:991px){.settings-table .setting-value .input-group .form-control-rpcinterface,.settings-table .setting-value .input-group .form-control-rpcport{min-width:60px}}.settings-table .tip{font-size:12px;padding:4px 8px}.settings-table .multi-line{display:block}@media (max-width:767px){.settings-table .setting-key{font-weight:700}.settings-table .description{display:inline-block}}@media (min-width:768px){.settings-table .setting-key-without-desc{padding-top:6px}}.new-task-table{margin-left:15px;margin-right:15px}@media screen and (orientation:landscape){.content>.new-task-table,.tab-pane>.new-task-table{margin-right:calc(15px + env(safe-area-inset-right))}}.new-task-table>div.row{padding-top:8px;padding-bottom:8px}@media screen and (orientation:landscape){.content>.new-task-table>div.row,.tab-pane>.new-task-table>div.row{margin-right:calc(-1 * (15px + env(safe-area-inset-right)));padding-right:env(safe-area-inset-right)}}.new-task-table>div.row:first-child{border-top:inherit}.new-task-table .new-task-toollink>a{margin-right:20px}@media (max-width:767px){.new-task-table .new-task-toollink>a{display:block}}.settings-table .new-task-filter-title{padding-top:6px}.piece-bar-wrapper{height:20px}.piece-bar{width:100%}.piece-map{padding-left:6px;padding-right:2px;line-height:11px}@media screen and (orientation:landscape){.tab-pane>.piece-map{padding-right:calc(2px + env(safe-area-inset-right))}}.piece-legends{text-align:center;margin-top:4px;margin-bottom:4px}@media screen and (orientation:landscape){.tab-pane>.piece-legends{padding-right:env(safe-area-inset-right)}}.piece-legend{display:inline-block;margin-right:4px}.piece-legend>.piece,.piece-map .piece{width:10px;height:10px;background-color:#eef2f4;border:1px solid #dee2e5;display:inline-block;margin-right:1px}.piece-legend>.piece.piece-completed,.piece-map .piece.piece-completed{background-color:#b8dd69;border-color:#b8dd69}.piece-legend>.piece{margin-right:4px}.chart-popover{max-width:320px}.chart-popover .popover-content{padding:0}.chart-pop-wrapper{padding-left:4px;padding-right:4px;overflow-x:hidden}.chart-pop{display:table}.chart-pop .loading{width:100%;height:100%;display:table-cell;text-align:center;vertical-align:middle}.global-status-chart{width:312px;height:200px}.task-status-chart-wrapper{overflow-x:hidden}@keyframes three-quarters{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.btn-spinner{font-family:sans-serif;font-weight:100}.btn-spinner:not(:required){animation:three-quarters 1.25s infinite linear;border:3px solid #8c8c8c;border-right-color:transparent;border-radius:100%;box-sizing:border-box;display:inline-block;position:relative;vertical-align:middle;overflow:hidden;text-indent:-9999px;width:18px;height:18px}.btn-danger .btn-spinner:not(:required),.btn-primary .btn-spinner:not(:required){border:3px solid #efefef;border-right-color:transparent}.btn-spinner:not(:required){margin-left:-17px;opacity:0;transition:margin .4s ease-out,opacity .2s ease-out}.is-loading .btn-spinner{transition:margin .2s ease-in,opacity .4s ease-in;margin-left:5px;opacity:1}.skin-aria-ng{overflow-y:hidden}.skin-aria-ng,.skin-aria-ng .h1,.skin-aria-ng .h2,.skin-aria-ng .h3,.skin-aria-ng .h4,.skin-aria-ng .h5,.skin-aria-ng .h6,.skin-aria-ng .main-header .logo,.skin-aria-ng .popover,.skin-aria-ng .sweet-alert,.skin-aria-ng .tooltip,.skin-aria-ng h1,.skin-aria-ng h2,.skin-aria-ng h3,.skin-aria-ng h4,.skin-aria-ng h5,.skin-aria-ng h6{font-family:Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif}.skin-aria-ng .main-header .navbar{background-color:#f6f6f6;border-bottom:1px solid #ddd}.skin-aria-ng .main-header .navbar .nav>li>a{color:#707070;font-size:16px}.skin-aria-ng .main-header .navbar .nav .open>a,.skin-aria-ng .main-header .navbar .nav .open>a:focus,.skin-aria-ng .main-header .navbar .nav .open>a:hover,.skin-aria-ng .main-header .navbar .nav>.active>a,.skin-aria-ng .main-header .navbar .nav>li>a:active,.skin-aria-ng .main-header .navbar .nav>li>a:focus,.skin-aria-ng .main-header .navbar .nav>li>a:hover{color:#0080ff}.skin-aria-ng .main-header .navbar .nav>li.disabled>a{color:#ccc!important}.skin-aria-ng .main-header .navbar .nav>li.divider{padding:10px 0;margin-left:4px;margin-right:4px;border-right:1px solid #ccc;position:relative;top:15px}.skin-aria-ng .main-header .navbar .navbar-searchbar .form-control-icon{color:#999}@media (max-width:767px){.skin-aria-ng .main-header .navbar{padding-left:20px}.skin-aria-ng .main-header .navbar .navbar-nav{margin-left:-10px}.skin-aria-ng .main-header .navbar .nav>li.divider{margin-left:0;margin-right:0;top:5px}}.skin-aria-ng .main-header .logo{background-color:#3c4852;color:#fff;border-bottom:1px solid #59636b}.skin-aria-ng .main-header .logo .logo-lg:hover{color:#ccc}.skin-aria-ng .main-header .logo .logo-lg .logo-lg-title{margin-right:6px}.skin-aria-ng .main-header .logo .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.skin-aria-ng .main-header .logo .dropdown-menu>li.active>a{color:#777;background-color:#fff}.skin-aria-ng .main-header .logo .dropdown-menu>li.active:hover>a{color:#333;background-color:#e1e3e9}.skin-aria-ng .content-header{background:transparent}.skin-aria-ng .left-side,.skin-aria-ng .main-sidebar,.skin-aria-ng .wrapper{background-color:#3c4852}.skin-aria-ng .sidebar-menu>li.header{color:#707070;background-color:#2e343c;padding-top:3px;padding-bottom:3px}.skin-aria-ng .sidebar-menu>li>a{border-left:3px solid transparent;padding-top:9px;padding-bottom:9px}.skin-aria-ng .sidebar-menu>li:hover>a{color:#dfdfdf;background-color:#313a42}.skin-aria-ng .sidebar-menu>li.active>a{color:#5399e8;background-color:#252c30}.skin-aria-ng .sidebar-menu>li.treeview:hover>a{color:#a2b5b9;background-color:#3c4852}.skin-aria-ng .sidebar-menu>li.treeview.active:hover>a,.skin-aria-ng .sidebar-menu>li.treeview.active>a{color:#5399e8;background-color:#3c4852}.skin-aria-ng .sidebar-menu>li.treeview>a:hover{color:#dfdfdf;background-color:#313a42}.skin-aria-ng .sidebar-menu>li.treeview>ul.treeview-menu{margin:0;padding:0;background-color:#3c4852}.skin-aria-ng .sidebar-menu>li.treeview>ul.treeview-menu>li>a{color:#8aa4af}.skin-aria-ng .sidebar-menu>li.treeview>ul.treeview-menu>li>a:hover{color:#dfdfdf;background-color:#313a42}.skin-aria-ng .sidebar-menu>li.treeview>ul.treeview-menu>li.active>a{color:#5399e8;background-color:#252c30}.skin-aria-ng .sidebar-menu i.fa{font-size:18px;margin-right:2px}.skin-aria-ng .sidebar a{color:#a2b5b9}.skin-aria-ng .sidebar a:hover{text-decoration:none}@media (max-width:767px){.skin-aria-ng .main-sidebar{margin-top:5px}}.skin-aria-ng .sidebar .status-label{max-width:95px}.right-side,.skin-aria-ng .content-wrapper{background-color:#fff}.skin-aria-ng .content-wrapper .form-control[type=text]{padding-left:14px}@media screen and (max-width:767px){.skin-aria-ng .content-wrapper .content{margin-top:5px}}.skin-aria-ng .main-footer{font-size:12px}.skin-aria-ng .main-footer>.navbar{border:0}.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li.divider{padding-top:16px;margin-left:4px;margin-right:4px;border-right:1px solid #ccc;position:relative;top:0}.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li>a{color:#707070;line-height:17px}.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li.open>a,.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li>a:active,.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li>a:focus,.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li>a:hover{color:#0080ff;background:none}.skin-aria-ng .global-status{margin-right:10px;color:inherit}.skin-aria-ng .global-status:hover{border:1px solid #ccc;margin-right:9px;margin-top:-1px}.skin-aria-ng .progress-bar-primary{background-color:#208fe5}.skin-aria-ng .progress-bar-warning{background-color:#f39c12}.skin-aria-ng .icon-primary{color:#3c8dbc}.skin-aria-ng .icon-download{color:#3a89e9}.skin-aria-ng .icon-upload{color:#74a329}.skin-aria-ng .icon-seeder{margin-left:4px;color:#74a329}.skin-aria-ng .icon-error{margin-left:4px;color:#dd4b39}.skin-aria-ng .icon-expand{color:#5399e8}.skin-aria-ng .icon-dir-expand{color:#999}.skin-aria-ng .nav-tabs-custom{box-shadow:none;margin-bottom:0}.skin-aria-ng .nav-tabs-custom>.nav-tabs{border-bottom:1px dotted #ddd}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li{border-top:0;margin-top:1px;margin-right:2px}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.active{border-bottom:2px solid #208fe5}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.slim>a{padding-left:5px;padding-right:5px}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.slim.active{margin-bottom:-1px;border-bottom:inherit}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.divider{padding:10px 0;margin-left:4px;margin-right:4px;margin-top:11px;border-right:1px solid #ccc}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.nav-toolbar{margin-left:15px;margin-right:5px}@media (max-width:767px){.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.nav-toolbar{float:right}}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.nav-toolbar>.btn-group{margin-right:4px}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li>a{color:#aaa;border:0}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.active>a,.skin-aria-ng .nav-tabs-custom>.nav-tabs>li>a:active,.skin-aria-ng .nav-tabs-custom>.nav-tabs>li>a:hover{color:#208fe5}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li>a.nav-tab-close:hover{color:#dd4b39!important;margin-left:-14px}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li>a.nav-tab-close:hover>.fa-times:before{content:"\f057";font-size:1.1em}.skin-aria-ng .nav-tabs-custom>.nav-tabs>li>div.btn-group{padding-top:5px;padding-bottom:5px}.skin-aria-ng .tooltip.tooltip-error.in,.skin-aria-ng .tooltip.tooltip-success.in,.skin-aria-ng .tooltip.tooltip-warning.in{filter:alpha(opacity=95);opacity:.95}.skin-aria-ng .tooltip.tooltip-success.top-left .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-success.top-right .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-success.top .tooltip-arrow{border-top-color:#00a65a}.skin-aria-ng .tooltip.tooltip-warning.top-left .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-warning.top-right .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-warning.top .tooltip-arrow{border-top-color:#f39c12}.skin-aria-ng .tooltip.tooltip-error.top-left .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-error.top-right .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-error.top .tooltip-arrow{border-top-color:#dd4b39}.skin-aria-ng .tooltip.tooltip-success.left .tooltip-arrow{border-left-color:#00a65a}.skin-aria-ng .tooltip.tooltip-warning.left .tooltip-arrow{border-left-color:#f39c12}.skin-aria-ng .tooltip.tooltip-error.left .tooltip-arrow{border-left-color:#dd4b39}.skin-aria-ng .tooltip.tooltip-success.right .tooltip-arrow{border-right-color:#00a65a}.skin-aria-ng .tooltip.tooltip-warning.right .tooltip-arrow{border-right-color:#f39c12}.skin-aria-ng .tooltip.tooltip-error.right .tooltip-arrow{border-right-color:#dd4b39}.skin-aria-ng .tooltip.tooltip-success.bottom-left .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-success.bottom-right .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-success.bottom .tooltip-arrow{border-bottom-color:#00a65a}.skin-aria-ng .tooltip.tooltip-warning.bottom-left .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-warning.bottom-right .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-warning.bottom .tooltip-arrow{border-bottom-color:#f39c12}.skin-aria-ng .tooltip.tooltip-error.bottom-left .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-error.bottom-right .tooltip-arrow,.skin-aria-ng .tooltip.tooltip-error.bottom .tooltip-arrow{border-bottom-color:#dd4b39}.skin-aria-ng .tooltip.tooltip-success .tooltip-inner{background-color:#00a65a}.skin-aria-ng .tooltip.tooltip-warning .tooltip-inner{background-color:#f39c12}.skin-aria-ng .tooltip.tooltip-error .tooltip-inner{background-color:#dd4b39}.skin-aria-ng .input-group .form-group.has-success+.input-group-addon{border-color:#00a65a;background-color:#00a65a;color:#fff}.skin-aria-ng .input-group .form-group.has-warning+.input-group-addon{border-color:#f39c12;background-color:#f39c12;color:#fff}.skin-aria-ng .input-group .form-group.has-error+.input-group-addon{border-color:#dd4b39;background-color:#dd4b39;color:#fff}.skin-aria-ng input:-moz-placeholder,.skin-aria-ng input:-ms-input-placeholder,.skin-aria-ng input::-moz-placeholder,.skin-aria-ng input::-webkit-input-placeholder{color:#999}.skin-aria-ng select.placeholder{color:#999}.skin-aria-ng .checkbox-primary input[type=checkbox]:checked+label:before,.skin-aria-ng .checkbox-primary input[type=checkbox]:indeterminate+label:before,.skin-aria-ng .checkbox-primary input[type=radio]:checked+label:before,.skin-aria-ng .checkbox-primary input[type=radio]:indeterminate+label:before{background-color:#208fe5;border-color:#208fe5}.skin-aria-ng .task-table{background-color:#fff}.skin-aria-ng .task-table>.task-table-body>div.row:nth-of-type(odd){background-color:#f9f9f9}.skin-aria-ng .task-table>.task-table-body>div.row:hover{background-color:#f5f5f5}.skin-aria-ng .task-table .peer-client{color:#888;font-size:12px}.skin-aria-ng .settings-table{background-color:#fff}.skin-aria-ng .settings-table.striped>div.row:nth-of-type(odd){background-color:#f9f9f9}.skin-aria-ng .settings-table.striped>div.row.no-background{background-color:inherit}.skin-aria-ng .settings-table.hoverable>div.row:hover{background-color:#f5f5f5}.skin-aria-ng .settings-table.hoverable>div.row.no-hover:hover{background-color:inherit}.skin-aria-ng .settings-table.hoverable>div.row:nth-of-type(odd).no-hover:hover{background-color:#f9f9f9}.skin-aria-ng .new-task-table{background-color:#fff}.skin-aria-ng .keyboard-key{border:1px solid #aaa;background-color:#f8f8f8;box-shadow:1px 2px 2px #ddd}.theme-dark.skin-aria-ng{color:#eee;background-color:#1a1a1a}.theme-dark.skin-aria-ng select{background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23cccccc%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E")!important}.theme-dark.skin-aria-ng .cg-busy-backdrop{background-color:#1a1a1a}.theme-dark.skin-aria-ng .btn-default{color:#eee;border-color:#3f3f3f;background-color:#333}.theme-dark.skin-aria-ng .btn-default.hover,.theme-dark.skin-aria-ng .btn-default:active,.theme-dark.skin-aria-ng .btn-default:hover{color:#fff;background-color:#444}.theme-dark.skin-aria-ng .close{color:#eee}.theme-dark.skin-aria-ng .form-control,.theme-dark.skin-aria-ng pre{background-color:#121212;border-color:#666;color:#eee}.theme-dark.skin-aria-ng .form-control:focus{border-color:#5399e8}.theme-dark.skin-aria-ng .form-control[disabled],.theme-dark.skin-aria-ng .form-control[readonly],.theme-dark.skin-aria-ng fieldset[disabled] .form-control{background-color:#333}.theme-dark.skin-aria-ng .input-group-addon{color:#eee;border-color:#666;background-color:#333}.theme-dark.skin-aria-ng .input-group.input-group-multiple>.input-group-addon-container:first-child,.theme-dark.skin-aria-ng .input-group.input-group-multiple>.input-group-addon:first-child{border-color:#666}.theme-dark.skin-aria-ng .progress{background-color:#444}.theme-dark.skin-aria-ng .nav-tabs-custom{background-color:#1a1a1a}.theme-dark.skin-aria-ng .nav-tabs-custom>.nav-tabs{border-color:#333}.theme-dark.skin-aria-ng .nav-tabs-custom>.nav-tabs>li>a{color:#ddd}.theme-dark.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.active:hover>a,.theme-dark.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.active>a{background-color:#1a1a1a}.theme-dark.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.active>a,.theme-dark.skin-aria-ng .nav-tabs-custom>.nav-tabs>li>a:active,.theme-dark.skin-aria-ng .nav-tabs-custom>.nav-tabs>li>a:hover{color:#208fe5}.theme-dark.skin-aria-ng .nav-tabs-custom>.nav-tabs>li.divider{border-color:#666}.theme-dark.skin-aria-ng .nav-tabs-custom>.tab-content{background-color:#1a1a1a}.theme-dark.skin-aria-ng .popover{background-color:#1a1a1a;border-color:rgba(0,0,0,.6)}.theme-dark.skin-aria-ng .popover.top .arrow:after{border-top-color:#1a1a1a}.theme-dark.skin-aria-ng .popover.right .arrow:after{border-right-color:#1a1a1a}.theme-dark.skin-aria-ng .popover.bottom .arrow:after{border-bottom-color:#1a1a1a}.theme-dark.skin-aria-ng .popover.left .arrow:after{border-left-color:#1a1a1a}.theme-dark.skin-aria-ng .modal-header{border-color:#333}.theme-dark.skin-aria-ng .modal-content{background-color:#1a1a1a;border-color:rgba(0,0,0,.6)}.theme-dark.skin-aria-ng .modal-footer{border-color:#333}.theme-dark.skin-aria-ng .dropdown-menu{background-color:#1a1a1a;border-color:#333}.theme-dark.skin-aria-ng .dropdown-menu>li>a{color:#eee}.theme-dark.skin-aria-ng .dropdown-menu>li>a:hover{color:#fff;background-color:#333}.theme-dark.skin-aria-ng .dropdown-menu>li.dropdown-submenu:hover{background-color:#333}.theme-dark.skin-aria-ng .dropdown-menu>.divider{background-color:#666}.theme-dark.skin-aria-ng .sweet-overlay{background-color:rgba(0,0,0,.6)}.theme-dark.skin-aria-ng .sweet-alert{background-color:#222}.theme-dark.skin-aria-ng .sweet-alert h2,.theme-dark.skin-aria-ng .sweet-alert p{color:#ddd}.theme-dark.skin-aria-ng .sweet-alert .sa-icon.sa-success .sa-fix,.theme-dark.skin-aria-ng .sweet-alert .sa-icon.sa-success:after,.theme-dark.skin-aria-ng .sweet-alert .sa-icon.sa-success:before{background-color:#222}.theme-dark.skin-aria-ng .main-header .navbar{background-color:#121212;border-color:#333}.theme-dark.skin-aria-ng .main-header .navbar .nav>li>a{color:#eee}.theme-dark.skin-aria-ng .main-header .navbar .nav .open>a,.theme-dark.skin-aria-ng .main-header .navbar .nav .open>a:focus,.theme-dark.skin-aria-ng .main-header .navbar .nav .open>a:hover,.theme-dark.skin-aria-ng .main-header .navbar .nav>.active>a,.theme-dark.skin-aria-ng .main-header .navbar .nav>li>a:active,.theme-dark.skin-aria-ng .main-header .navbar .nav>li>a:focus,.theme-dark.skin-aria-ng .main-header .navbar .nav>li>a:hover{color:#0080ff;background-color:transparent}.theme-dark.skin-aria-ng .main-header .navbar .nav .open>a,.theme-dark.skin-aria-ng .main-header .navbar .nav .open>a:focus,.theme-dark.skin-aria-ng .main-header .navbar .nav .open>a:hover,.theme-dark.skin-aria-ng .main-header .navbar .nav>li>a:active{background-color:#444}.theme-dark.skin-aria-ng .main-header .navbar .nav>li.disabled>a{color:#8f8f8f!important}.theme-dark.skin-aria-ng .main-header .navbar .nav>li.divider{border-color:#666}.theme-dark.skin-aria-ng .main-header .logo{background-color:#282828;border-color:#222}.theme-dark.skin-aria-ng .main-header .logo .dropdown-menu>li.active>a{color:#eee;background-color:#1a1a1a}.theme-dark.skin-aria-ng .main-header .logo .dropdown-menu>li.active:hover>a{color:#fff;background-color:#333}.theme-dark.skin-aria-ng .left-side,.theme-dark.skin-aria-ng .main-sidebar,.theme-dark.skin-aria-ng .wrapper{background-color:#282828}.theme-dark.skin-aria-ng .sidebar-menu>li.header{color:#ccc;background-color:#3c3c3c}.theme-dark.skin-aria-ng .sidebar-menu>li:hover>a{color:#fff;background-color:#444}.theme-dark.skin-aria-ng .sidebar-menu>li.active>a{color:#5399e8;background-color:#333}.theme-dark.skin-aria-ng .sidebar-menu>li.treeview:hover>a{color:#fff;background-color:#282828}.theme-dark.skin-aria-ng .sidebar-menu>li.treeview.active:hover>a,.theme-dark.skin-aria-ng .sidebar-menu>li.treeview.active>a{color:#5399e8;background-color:#282828}.theme-dark.skin-aria-ng .sidebar-menu>li.treeview>a:hover{color:#fff;background-color:#444}.theme-dark.skin-aria-ng .sidebar-menu>li.treeview>ul.treeview-menu{background-color:#282828}.theme-dark.skin-aria-ng .sidebar-menu>li.treeview>ul.treeview-menu>li>a{color:#eee}.theme-dark.skin-aria-ng .sidebar-menu>li.treeview>ul.treeview-menu>li>a:hover{color:#fff;background-color:#444}.theme-dark.skin-aria-ng .sidebar-menu>li.treeview>ul.treeview-menu>li.active>a{color:#5399e8;background-color:#333}.theme-dark.skin-aria-ng .sidebar a{color:#eee}.theme-dark.right-side,.theme-dark.skin-aria-ng .content-wrapper{background-color:#1a1a1a}.theme-dark.skin-aria-ng .main-footer{background-color:#1a1a1a;border-color:#383838}.theme-dark.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li>a{color:#eee}.theme-dark.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li.open>a,.theme-dark.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li>a:active,.theme-dark.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li>a:focus,.theme-dark.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li>a:hover{color:#0080ff;background:none}.theme-dark.skin-aria-ng .main-footer>.navbar>.navbar-toolbar>.nav>li.divider{border-color:#666}.theme-dark.skin-aria-ng .global-status{color:#eee}.theme-dark.skin-aria-ng input:-moz-placeholder,.theme-dark.skin-aria-ng input:-ms-input-placeholder,.theme-dark.skin-aria-ng input::-moz-placeholder,.theme-dark.skin-aria-ng input::-webkit-input-placeholder{color:#aaa}.theme-dark.skin-aria-ng select.placeholder{color:#aaa}.theme-dark.skin-aria-ng .input-dropdown ul>li{background-color:#121212}.theme-dark.skin-aria-ng .input-dropdown ul>li.active{background-color:#333}.theme-dark.skin-aria-ng .cg-busy-default-sign{color:#eee;border-color:#666;background-color:#444;text-shadow:0 1px 1px #000}.theme-dark.skin-aria-ng .cg-busy-default-text{color:#eee}.theme-dark.skin-aria-ng .cg-busy-default-spinner div{background-color:#eee}.theme-dark.skin-aria-ng ::-webkit-scrollbar-track{background-color:#1a1a1a}.theme-dark.skin-aria-ng ::-webkit-scrollbar-thumb{background-color:#3c4144}.theme-dark.skin-aria-ng .piece-legend>.piece,.theme-dark.skin-aria-ng .piece-map .piece{background-color:#242424;border-color:#3c3d3e}.theme-dark.skin-aria-ng .piece-legend>.piece.piece-completed,.theme-dark.skin-aria-ng .piece-map .piece.piece-completed{background-color:#b8dd69;border-color:#b8dd69}.theme-dark.skin-aria-ng .task-table{background-color:#1a1a1a}.theme-dark.skin-aria-ng .task-table .task-table-title a{color:#eee}.theme-dark.skin-aria-ng .task-table>.task-table-body>div.row{border-color:#333}.theme-dark.skin-aria-ng .task-table>.task-table-body>div.row:nth-of-type(odd){background-color:#262626}.theme-dark.skin-aria-ng .task-table>.task-table-body>div.row:hover{background-color:#2a2a2a}.theme-dark.skin-aria-ng .task-table .progress span.progress-lower{color:#eee}.theme-dark.skin-aria-ng .settings-table{background-color:#1a1a1a}.theme-dark.skin-aria-ng .settings-table .settings-table-title a{color:#eee}.theme-dark.skin-aria-ng .settings-table>div.row{border-color:#333}.theme-dark.skin-aria-ng .settings-table.striped>div.row:nth-of-type(odd){background-color:#202020}.theme-dark.skin-aria-ng .settings-table.hoverable>div.row:hover{background-color:#242424}.theme-dark.skin-aria-ng .settings-table.hoverable>div.row:nth-of-type(odd).no-hover:hover{background-color:#202020}.theme-dark.skin-aria-ng .new-task-table{background-color:#1a1a1a}.theme-dark.skin-aria-ng .keyboard-key{border:1px solid #666;background-color:#282828;box-shadow:1px 2px 2px #333} \ No newline at end of file diff --git a/ccaa_dir/AriaNg/dindex.html b/ccaa_dir/AriaNg/dindex.html deleted file mode 100644 index a676389..0000000 --- a/ccaa_dir/AriaNg/dindex.html +++ /dev/null @@ -1,14 +0,0 @@ -AriaNg
- - \ No newline at end of file diff --git a/ccaa_dir/AriaNg/index.html b/ccaa_dir/AriaNg/index.html index eba5a31..a4bcfe4 100644 --- a/ccaa_dir/AriaNg/index.html +++ b/ccaa_dir/AriaNg/index.html @@ -1,7 +1,7 @@ -AriaNg
\ No newline at end of file diff --git a/ccaa_dir/AriaNg/index.manifest b/ccaa_dir/AriaNg/index.manifest deleted file mode 100644 index dbb3a2f..0000000 --- a/ccaa_dir/AriaNg/index.manifest +++ /dev/null @@ -1,23 +0,0 @@ -CACHE MANIFEST - -CACHE: -css/aria-ng-70e1362684.min.css -css/bootstrap-3.4.1.min.css -css/plugins-ccac6fc3fc.min.css -js/angular-packages-1.6.10.min.js -js/aria-ng-da5356c403.min.js -js/bootstrap-3.4.1.min.js -js/echarts-common-3.8.5.min.js -js/jquery-3.3.1.min.js -js/moment-with-locales-2.24.0.min.js -js/plugins-cc1df97b8f.min.js -fonts/fontawesome-webfont.woff2 -index.html - -NETWORK: -* - -SETTINGS: -prefer-online - -# hash: fa5a7f64f538edccc1eecff90ab96dffcbfa73bf7317501f6f3d3023e3a96b2b \ No newline at end of file diff --git a/ccaa_dir/AriaNg/js/aria-ng-b48666dae5.min.js b/ccaa_dir/AriaNg/js/aria-ng-b48666dae5.min.js new file mode 100644 index 0000000..e9812f0 --- /dev/null +++ b/ccaa_dir/AriaNg/js/aria-ng-b48666dae5.min.js @@ -0,0 +1,5 @@ +/*! + * AriaNg + * https://github.com/mayswind/AriaNg + */ +!function(){"use strict";var e,t,a;if(e=navigator.appName,t=navigator.appVersion.split(";"),a=t&&1 ul li").removeClass("active"),angular.element("section.sidebar > ul > li[data-href-match]").each(function(e,t){var a=angular.element(t).attr("data-href-match");p(a,n)&&angular.element(t).addClass("active")}),angular.element("section.sidebar > ul > li.treeview > ul.treeview-menu > li[data-href-match]").each(function(e,t){var a=angular.element(t).attr("data-href-match");p(a,n)&&angular.element(t).addClass("active").parent().parent().addClass("active")}),o.unbind("keypress")}),c.isBrowserSupportDarkMode())&&a.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",function(e){l.info("[root] system switches to "+(e.matches?"dark":"light")+" theme"),"system"===c.getTheme()&&(e.matches?f():g())});n.$on("$locationChangeSuccess",function(e,t){u&&a.location.reload()}),"system"===c.getTheme()?m():"dark"===c.getTheme()?f():g(),function(){var e=c.getBrowserFeatures();if(e.localStroage||l.warn("[root.initCheck] LocalStorage is not supported!"),e.cookies||l.warn("[root.initCheck] Cookies is not supported!"),!c.isBrowserSupportStorage())throw angular.element("body").prepend('
'),angular.element(".main-sidebar").addClass("blur"),angular.element(".navbar").addClass("blur"),angular.element(".content-body").addClass("blur"),r.notifyInPage("","You cannot use AriaNg because this browser does not meet the minimum requirements for data storage.",{type:"error",delay:!1}),new Error("You cannot use AriaNg because this browser does not meet the minimum requirements for data storage.")}(),angular.element("section.sidebar > ul > li[data-href-match] > a").click(function(){angular.element("section.sidebar > ul li").removeClass("active"),angular.element(this).parent().addClass("active")}),angular.element("section.sidebar > ul > li.treeview > ul.treeview-menu > li[data-href-match] > a").click(function(){angular.element("section.sidebar > ul li").removeClass("active"),angular.element(this).parent().addClass("active").parent().parent().addClass("active")})}])}(),function(){"use strict";angular.module("ariaNg").constant("ariaNgConstants",{title:"AriaNg",appPrefix:"AriaNg",optionStorageKey:"Options",browserNotificationHistoryStorageKey:"Notifications",languageStorageKeyPrefix:"Language",settingHistoryKeyPrefix:"History",languagePath:"langs",languageFileExtension:".txt",defaultLanguage:"en",defaultHost:"localhost",defaultSecureProtocol:"https",defaultPathSeparator:"/",httpRequestTimeout:2e4,globalStatStorageCapacity:120,taskStatStorageCapacity:300,lazySaveTimeout:500,errorTooltipDelay:500,notificationInPageTimeout:2e3,historyMaxStoreCount:10,cachedDebugLogsLimit:100}).constant("ariaNgDefaultOptions",{language:"en",theme:"light",title:"${downspeed}, ${upspeed} - ${title}",titleRefreshInterval:5e3,browserNotification:!1,browserNotificationSound:!0,browserNotificationFrequency:"unlimited",rpcAlias:"",rpcHost:"",rpcPort:"6800",rpcInterface:"jsonrpc",protocol:"http",httpMethod:"POST",rpcRequestHeaders:"",secret:"",extendRpcServers:[],webSocketReconnectInterval:5e3,globalStatRefreshInterval:1e3,downloadTaskRefreshInterval:1e3,keyboardShortcuts:!0,swipeGesture:!0,dragAndDropTasks:!0,rpcListDisplayOrder:"recentlyUsed",afterCreatingNewTask:"task-list",removeOldTaskAfterRetrying:!1,confirmTaskRemoval:!0,includePrefixWhenCopyingFromTaskDetails:!0,showPiecesInfoInTaskDetailPage:"le10240",afterRetryingTask:"task-list-downloading",taskListIndependentDisplayOrder:!1,displayOrder:"default:asc",waitingTaskListPageDisplayOrder:"default:asc",stoppedTaskListPageDisplayOrder:"default:asc",fileListDisplayOrder:"default:asc",peerListDisplayOrder:"default:asc"})}(),function(){"use strict";angular.module("ariaNg").constant("ariaNgBuildConfiguration",{buildVersion:"v1.3.7",buildCommit:"1d253b4"})}(),function(){"use strict";angular.module("ariaNg").config(["$qProvider","$translateProvider","localStorageServiceProvider","NotificationProvider","ariaNgConstants","ariaNgLanguages",function(e,t,a,n,i,s){e.errorOnUnhandledRejections(!1),a.setPrefix(i.appPrefix).setStorageType("localStorage").setStorageCookie(365,"/");var o=[],r={};for(var l in s)if(s.hasOwnProperty(l)){var c=s[l].aliases;if(o.push(l),angular.isArray(c)&&!(c.length<1))for(var d=0;d= 2, of course). If SIZE is 15M, since 2*15M > 20MiB, aria2 does not split file and download it using 1 source. You can append K or M (1K = 1024, 1M = 1024K). Possible Values: 1M-1024M.","netrc-path.name":".netrc Path","netrc-path.description":"","no-netrc.name":"Disable netrc","no-netrc.description":"","no-proxy.name":"No Proxy List","no-proxy.description":"Specify a comma separated list of host names, domains and network addresses with or without a subnet mask where no proxy should be used.","out.name":"File Name","out.description":"The file name of the downloaded file. It is always relative to the directory given in --dir option. When the --force-sequential option is used, this option is ignored.","proxy-method.name":"Proxy Method","proxy-method.description":"Set the method to use in proxy request. METHOD is either GET or TUNNEL. HTTPS downloads always use TUNNEL regardless of this option.","remote-time.name":"Remote File Timestamp","remote-time.description":"Retrieve timestamp of the remote file from the remote HTTP/FTP server and if it is available, apply it to the local file.","reuse-uri.name":"Reuse Uri","reuse-uri.description":"Reuse already used URIs if no unused URIs are left.","retry-wait.name":"Retry Wait","retry-wait.description":"Set the seconds to wait between retries. When SEC > 0, aria2 will retry downloads when the HTTP server returns a 503 response.","server-stat-of.name":"Server Stat Output","server-stat-of.description":"Specify the file name to which performance profile of the servers is saved. You can load saved data using --server-stat-if option.","server-stat-timeout.name":"Server Stat Timeout","server-stat-timeout.description":"Specifies timeout in seconds to invalidate performance profile of the servers since the last contact to them.","split.name":"Split Count","split.description":"Download a file using N connections. If more than N URIs are given, first N URIs are used and remaining URIs are used for backup. If less than N URIs are given, those URIs are used more than once so that N connections total are made simultaneously. The number of connections to the same host is restricted by the --max-connection-per-server option.","stream-piece-selector.name":"Piece Selection Algorithm","stream-piece-selector.description":"Specify piece selection algorithm used in HTTP/FTP download. Piece means fixed length segment which is downloaded in parallel in segmented download. If default is given, aria2 selects piece so that it reduces the number of establishing connection. This is reasonable default behavior because establishing connection is an expensive operation. If inorder is given, aria2 selects piece which has minimum index. Index=0 means first of the file. This will be useful to view movie while downloading it. --enable-http-pipelining option may be useful to reduce re-connection overhead. Please note that aria2 honors --min-split-size option, so it will be necessary to specify a reasonable value to --min-split-size option. If random is given, aria2 selects piece randomly. Like inorder, --min-split-size option is honored. If geom is given, at the beginning aria2 selects piece which has minimum index like inorder, but it exponentially increasingly keeps space from previously selected piece. This will reduce the number of establishing connection and at the same time it will download the beginning part of the file first. This will be useful to view movie while downloading it.","timeout.name":"Timeout","timeout.description":"","uri-selector.name":"URI Selection Algorithm","uri-selector.description":"Specify URI selection algorithm. The possible values are inorder, feedback and adaptive. If inorder is given, URI is tried in the order appeared in the URI list. If feedback is given, aria2 uses download speed observed in the previous downloads and choose fastest server in the URI list. This also effectively skips dead mirrors. The observed download speed is a part of performance profile of servers mentioned in --server-stat-of and --server-stat-if If adaptive is given, selects one of the best mirrors for the first and reserved connections. For supplementary ones, it returns mirrors which has not been tested yet, and if each of them has already been tested, returns mirrors which has to be tested again. Otherwise, it doesn't select anymore mirrors. Like feedback, it uses a performance profile of servers.","check-certificate.name":"Check Certificate","check-certificate.description":"","http-accept-gzip.name":"Accept GZip","http-accept-gzip.description":"Send Accept: deflate, gzip request header and inflate response if remote server responds with Content-Encoding: gzip or Content-Encoding: deflate.","http-auth-challenge.name":"Auth Challenge","http-auth-challenge.description":"Send HTTP authorization header only when it is requested by the server. If false is set, then authorization header is always sent to the server. There is an exception: if user name and password are embedded in URI, authorization header is always sent to the server regardless of this option.","http-no-cache.name":"No Cache","http-no-cache.description":"Send Cache-Control: no-cache and Pragma: no-cache header to avoid cached content. If false is given, these headers are not sent and you can add Cache-Control header with a directive you like using --header option.","http-user.name":"HTTP Default User Name","http-user.description":"","http-passwd.name":"HTTP Default Password","http-passwd.description":"","http-proxy.name":"HTTP Proxy Server","http-proxy.description":"","http-proxy-user.name":"HTTP Proxy User Name","http-proxy-user.description":"","http-proxy-passwd.name":"HTTP Proxy Password","http-proxy-passwd.description":"","https-proxy.name":"HTTPS Proxy Server","https-proxy.description":"","https-proxy-user.name":"HTTPS Proxy User Name","https-proxy-user.description":"","https-proxy-passwd.name":"HTTPS Proxy Password","https-proxy-passwd.description":"","referer.name":"Referer","referer.description":"Set an http referrer (Referer). This affects all http/https downloads. If * is given, the download URI is also used as the referrer. This may be useful when used together with the --parameterized-uri option.","enable-http-keep-alive.name":"Enable Persistent Connection","enable-http-keep-alive.description":"Enable HTTP/1.1 persistent connection.","enable-http-pipelining.name":"Enable HTTP Pipelining","enable-http-pipelining.description":"Enable HTTP/1.1 pipelining.","header.name":"Custom Header","header.description":'Append HEADER to HTTP request header. Put one item per line, each item containing "header name: header value".',"save-cookies.name":"Cookies Path","save-cookies.description":"Save Cookies to FILE in Mozilla/Firefox(1.x/2.x)/ Netscape format. If FILE already exists, it is overwritten. Session Cookies are also saved and their expiry values are treated as 0.","use-head.name":"Use HEAD Method","use-head.description":"Use HEAD method for the first request to the HTTP server.","user-agent.name":"Custom User Agent","user-agent.description":"","ftp-user.name":"FTP Default User Name","ftp-user.description":"","ftp-passwd.name":"FTP Default Password","ftp-passwd.description":"If user name is embedded but password is missing in URI, aria2 tries to resolve password using .netrc. If password is found in .netrc, then use it as password. If not, use the password specified in this option.","ftp-pasv.name":"Passive Mode","ftp-pasv.description":"Use the passive mode in FTP. If false is given, the active mode will be used. This option is ignored for SFTP transfer.","ftp-proxy.name":"FTP Proxy Server","ftp-proxy.description":"","ftp-proxy-user.name":"FTP Proxy User Name","ftp-proxy-user.description":"","ftp-proxy-passwd.name":"FTP Proxy Password","ftp-proxy-passwd.description":"","ftp-type.name":"Transfer Type","ftp-type.description":"","ftp-reuse-connection.name":"Reuse Connection","ftp-reuse-connection.description":"","ssh-host-key-md.name":"SSH Public Key Checksum","ssh-host-key-md.description":"Set checksum for SSH host public key. The option value format is TYPE=DIGEST. TYPE is hash type. The supported hash type is sha-1 or md5. DIGEST is hex digest. For example: sha-1=b030503d4de4539dc7885e6f0f5e256704edf4c3. This option can be used to validate server's public key when SFTP is used. If this option is not set, which is default, no validation takes place.","bt-detach-seed-only.name":"Detach Seed Only","bt-detach-seed-only.description":"Exclude seed only downloads when counting concurrent active downloads (See -j option). This means that if -j3 is given and this option is turned on and 3 downloads are active and one of those enters seed mode, then it is excluded from active download count (thus it becomes 2), and the next download waiting in queue gets started. But be aware that seeding item is still recognized as active download in RPC method.","bt-enable-hook-after-hash-check.name":"Enable Hook After Hash Check","bt-enable-hook-after-hash-check.description":"Allow hook command invocation after hash check (see -V option) in BitTorrent download. By default, when hash check succeeds, the command given by --on-bt-download-complete is executed. To disable this action, give false to this option.","bt-enable-lpd.name":"Enable Local Peer Discovery (LPD)","bt-enable-lpd.description":"Enable Local Peer Discovery. If a private flag is set in a torrent, aria2 doesn't use this feature for that download even if true is given.","bt-exclude-tracker.name":"BitTorrent Exclude Trackers","bt-exclude-tracker.description":"Comma separated list of BitTorrent tracker's announce URI to remove. You can use special value * which matches all URIs, thus removes all announce URIs. When specifying * in shell command-line, don't forget to escape or quote it.","bt-external-ip.name":"External IP","bt-external-ip.description":"Specify the external IP address to use in BitTorrent download and DHT. It may be sent to BitTorrent tracker. For DHT, this option should be set to report that local node is downloading a particular torrent. This is critical to use DHT in a private network. Although this function is named external, it can accept any kind of IP addresses.","bt-force-encryption.name":"Force Encryption","bt-force-encryption.description":"Requires BitTorrent message payload encryption with arc4. This is a shorthand of --bt-require-crypto --bt-min-crypto-level=arc4. This option does not change the option value of those options. If true is given, deny legacy BitTorrent handshake and only use Obfuscation handshake and always encrypt message payload.","bt-hash-check-seed.name":"Hash Check Before Seeding","bt-hash-check-seed.description":"If true is given, after hash check using --check-integrity option and file is complete, continue to seed file. If you want to check file and download it only when it is damaged or incomplete, set this option to false. This option has effect only on BitTorrent download.","bt-load-saved-metadata.name":"Load Saved Metadata File","bt-load-saved-metadata.description":"Before getting torrent metadata from DHT when downloading with magnet link, first try to read file saved by --bt-save-metadata option. If it is successful, then skip downloading metadata from DHT.","bt-max-open-files.name":"Max Open Files","bt-max-open-files.description":"Specify maximum number of files to open in multi-file BitTorrent/Metalink download globally.","bt-max-peers.name":"Max Peers","bt-max-peers.description":"Specify the maximum number of peers per torrent. 0 means unlimited.","bt-metadata-only.name":"Download Metadata Only","bt-metadata-only.description":"Download meta data only. The file(s) described in meta data will not be downloaded. This option has effect only when BitTorrent Magnet URI is used.","bt-min-crypto-level.name":"Min Crypto Level","bt-min-crypto-level.description":"Set minimum level of encryption method. If several encryption methods are provided by a peer, aria2 chooses the lowest one which satisfies the given level.","bt-prioritize-piece.name":"Prioritize Piece","bt-prioritize-piece.description":"Try to download first and last pieces of each file first. This is useful for previewing files. The argument can contain 2 keywords: head and tail. To include both keywords, they must be separated by comma. These keywords can take one parameter, SIZE. For example, if head=SIZE is specified, pieces in the range of first SIZE bytes of each file get higher priority. tail=SIZE means the range of last SIZE bytes of each file. SIZE can include K or M (1K = 1024, 1M = 1024K).","bt-remove-unselected-file.name":"Remove Unselected File","bt-remove-unselected-file.description":"Removes the unselected files when download is completed in BitTorrent. To select files, use --select-file option. If it is not used, all files are assumed to be selected. Please use this option with care because it will actually remove files from your disk.","bt-require-crypto.name":"Require Crypto","bt-require-crypto.description":"If true is given, aria2 doesn't accept and establish connection with legacy BitTorrent handshake(\\19BitTorrent protocol). Thus aria2 always uses Obfuscation handshake.","bt-request-peer-speed-limit.name":"Preferred Download Speed","bt-request-peer-speed-limit.description":"If the whole download speed of every torrent is lower than SPEED, aria2 temporarily increases the number of peers to try for more download speed. Configuring this option with your preferred download speed can increase your download speed in some cases. You can append K or M (1K = 1024, 1M = 1024K).","bt-save-metadata.name":"Save Metadata","bt-save-metadata.description":'Save meta data as ".torrent" file. This option has effect only when BitTorrent Magnet URI is used. The file name is hex encoded info hash with suffix ".torrent". The directory to be saved is the same directory where download file is saved. If the same file already exists, meta data is not saved.',"bt-seed-unverified.name":"Not Verify Downloaded Fileds","bt-seed-unverified.description":"Seed previously downloaded files without verifying piece hashes.","bt-stop-timeout.name":"Stop Timeout","bt-stop-timeout.description":"Stop BitTorrent download if download speed is 0 in consecutive SEC seconds. If 0 is given, this feature is disabled.","bt-tracker.name":"BitTorrent Trackers","bt-tracker.description":"Comma separated list of additional BitTorrent tracker's announce URI. These URIs are not affected by --bt-exclude-tracker option because they are added after URIs in --bt-exclude-tracker option are removed.","bt-tracker-connect-timeout.name":"BitTorrent Tracker Connect Timeout","bt-tracker-connect-timeout.description":"Set the connect timeout in seconds to establish connection to tracker. After the connection is established, this option makes no effect and --bt-tracker-timeout option is used instead.","bt-tracker-interval.name":"BitTorrent Tracker Connect Interval","bt-tracker-interval.description":"Set the interval in seconds between tracker requests. This completely overrides interval value and aria2 just uses this value and ignores the min interval and interval value in the response of tracker. If 0 is set, aria2 determines interval based on the response of tracker and the download progress.","bt-tracker-timeout.name":"BitTorrent Tracker Timeout","bt-tracker-timeout.description":"","dht-file-path.name":"DHT (IPv4) File","dht-file-path.description":"Change the IPv4 DHT routing table file to PATH.","dht-file-path6.name":"DHT (IPv6) File","dht-file-path6.description":"Change the IPv6 DHT routing table file to PATH.","dht-listen-port.name":"DHT Listen Port","dht-listen-port.description":"Set UDP listening port used by DHT(IPv4, IPv6) and UDP tracker. Multiple ports can be specified by using ,, for example: 6881,6885. You can also use - to specify a range: 6881-6999. , and - can be used together.","dht-message-timeout.name":"DHT Message Timeout","dht-message-timeout.description":"","enable-dht.name":"Enable DHT (IPv4)","enable-dht.description":"Enable IPv4 DHT functionality. It also enables UDP tracker support. If a private flag is set in a torrent, aria2 doesn't use DHT for that download even if true is given.","enable-dht6.name":"Enable DHT (IPv6)","enable-dht6.description":"Enable IPv6 DHT functionality. If a private flag is set in a torrent, aria2 doesn't use DHT for that download even if true is given. Use --dht-listen-port option to specify port number to listen on.","enable-peer-exchange.name":"Enable Peer Exchange","enable-peer-exchange.description":"Enable Peer Exchange extension. If a private flag is set in a torrent, this feature is disabled for that download even if true is given.","follow-torrent.name":"Follow Torrent","follow-torrent.description":"If true or mem is specified, when a file whose suffix is .torrent or content type is application/x-bittorrent is downloaded, aria2 parses it as a torrent file and downloads files mentioned in it. If mem is specified, a torrent file is not written to the disk, but is just kept in memory. If false is specified, the .torrent file is downloaded to the disk, but is not parsed as a torrent and its contents are not downloaded.","listen-port.name":"Listen Port","listen-port.description":"Set TCP port number for BitTorrent downloads. Multiple ports can be specified by using ,, for example: 6881,6885. You can also use - to specify a range: 6881-6999. , and - can be used together: 6881-6889,6999.","max-overall-upload-limit.name":"Global Max Upload Limit","max-overall-upload-limit.description":"Set max overall upload speed in bytes/sec. 0 means unrestricted. You can append K or M (1K = 1024, 1M = 1024K).","max-upload-limit.name":"Max Upload Limit","max-upload-limit.description":"Set max upload speed per each torrent in bytes/sec. 0 means unrestricted. You can append K or M (1K = 1024, 1M = 1024K).","peer-id-prefix.name":"Peer ID Prefix","peer-id-prefix.description":"Specify the prefix of peer ID. The peer ID in BitTorrent is 20 byte length. If more than 20 bytes are specified, only first 20 bytes are used. If less than 20 bytes are specified, random byte data are added to make its length 20 bytes.","peer-agent.name":"Peer Agent","peer-agent.description":"Specify the string used during the bitorrent extended handshake for the peer’s client version.","seed-ratio.name":"Min Share Ratio","seed-ratio.description":"Specify share ratio. Seed completed torrents until share ratio reaches RATIO. You are strongly encouraged to specify equals or more than 1.0 here. Specify 0.0 if you intend to do seeding regardless of share ratio. If --seed-time option is specified along with this option, seeding ends when at least one of the conditions is satisfied.","seed-time.name":"Min Seed Time","seed-time.description":"Specify seeding time in (fractional) minutes. Specifying --seed-time=0 disables seeding after download completed.","follow-metalink.name":"Follow Metalink","follow-metalink.description":"If true or mem is specified, when a file whose suffix is .meta4 or .metalink or content type of application/metalink4+xml or application/metalink+xml is downloaded, aria2 parses it as a metalink file and downloads files mentioned in it. If mem is specified, a metalink file is not written to the disk, but is just kept in memory. If false is specified, the .metalink file is downloaded to the disk, but is not parsed as a metalink file and its contents are not downloaded.","metalink-base-uri.name":"Base URI","metalink-base-uri.description":"Specify base URI to resolve relative URI in metalink:url and metalink:metaurl element in a metalink file stored in local disk. If URI points to a directory, URI must end with /.","metalink-language.name":"Language","metalink-language.description":"","metalink-location.name":"Preferred Server Location","metalink-location.description":"The location of the preferred server. A comma-delimited list of locations is acceptable, for example, jp,us.","metalink-os.name":"Operation System","metalink-os.description":"The operating system of the file to download.","metalink-version.name":"Version","metalink-version.description":"The version of the file to download.","metalink-preferred-protocol.name":"Preferred Protocol","metalink-preferred-protocol.description":"Specify preferred protocol. The possible values are http, https, ftp and none. Specify none to disable this feature.","metalink-enable-unique-protocol.name":"Enable Unique Protocol","metalink-enable-unique-protocol.description":"If true is given and several protocols are available for a mirror in a metalink file, aria2 uses one of them. Use --metalink-preferred-protocol option to specify the preference of protocol.","enable-rpc.name":"Enable JSON-RPC/XML-RPC Server","enable-rpc.description":"","pause-metadata.name":"Pause After Metadata Downloaded","pause-metadata.description":"Pause downloads created as a result of metadata download. There are 3 types of metadata downloads in aria2: (1) downloading .torrent file. (2) downloading torrent metadata using magnet link. (3) downloading metalink file. These metadata downloads will generate downloads using their metadata. This option pauses these subsequent downloads. This option is effective only when --enable-rpc=true is given.","rpc-allow-origin-all.name":"Allow All Origin Request","rpc-allow-origin-all.description":"Add Access-Control-Allow-Origin header field with value * to the RPC response.","rpc-listen-all.name":"Listen on All Network Interfaces","rpc-listen-all.description":"Listen incoming JSON-RPC/XML-RPC requests on all network interfaces. If false is given, listen only on local loopback interface.","rpc-listen-port.name":"Listen Port","rpc-listen-port.description":"","rpc-max-request-size.name":"Max Request Size","rpc-max-request-size.description":"Set max size of JSON-RPC/XML-RPC request. If aria2 detects the request is more than SIZE bytes, it drops connection.","rpc-save-upload-metadata.name":"Save Upload Metadata","rpc-save-upload-metadata.description":"Save the uploaded torrent or metalink meta data in the directory specified by --dir option. The file name consists of SHA-1 hash hex string of meta data plus extension. For torrent, the extension is '.torrent'. For metalink, it is '.meta4'. If false is given to this option, the downloads added by aria2.addTorrent() or aria2.addMetalink() will not be saved by --save-session option.","rpc-secure.name":"Enable SSL/TLS","rpc-secure.description":"RPC transport will be encrypted by SSL/TLS. The RPC clients must use https scheme to access the server. For WebSocket client, use wss scheme. Use --rpc-certificate and --rpc-private-key options to specify the server certificate and private key.","allow-overwrite.name":"Allow Overwrite","allow-overwrite.description":"Restart download from scratch if the corresponding control file doesn't exist. See also --auto-file-renaming option.","allow-piece-length-change.name":"Allow Piece Length Change","allow-piece-length-change.description":"If false is given, aria2 aborts download when a piece length is different from one in a control file. If true is given, you can proceed but some download progress will be lost.","always-resume.name":"Always Resume Download","always-resume.description":"Always resume download. If true is given, aria2 always tries to resume download and if resume is not possible, aborts download. If false is given, when all given URIs do not support resume or aria2 encounters N URIs which does not support resume (N is the value specified using --max-resume-failure-tries option), aria2 downloads file from scratch. See --max-resume-failure-tries option.","async-dns.name":"Asynchronous DNS","async-dns.description":"","auto-file-renaming.name":"Auto File Renaming","auto-file-renaming.description":"Rename file name if the same file already exists. This option works only in HTTP(S)/FTP download. The new file name has a dot and a number(1..9999) appended after the name, but before the file extension, if any.","auto-save-interval.name":"Auto Save Interval","auto-save-interval.description":"Save a control file(*.aria2) every SEC seconds. If 0 is given, a control file is not saved during download. aria2 saves a control file when it stops regardless of the value. The possible values are between 0 to 600.","conditional-get.name":"Conditional Download","conditional-get.description":"Download file only when the local file is older than remote file. This function only works with HTTP(S) downloads only. It does not work if file size is specified in Metalink. It also ignores Content-Disposition header. If a control file exists, this option will be ignored. This function uses If-Modified-Since header to get only newer file conditionally. When getting modification time of local file, it uses user supplied file name (see --out option) or file name part in URI if --out is not specified. To overwrite existing file, --allow-overwrite is required.","conf-path.name":"Configuration File","conf-path.description":"","console-log-level.name":"Console Log Level","console-log-level.description":"","content-disposition-default-utf8.name":"Use UTF-8 to Handle Content-Disposition","content-disposition-default-utf8.description":"Handle quoted string in Content-Disposition header as UTF-8 instead of ISO-8859-1, for example, the filename parameter, but not the extended version filename.","daemon.name":"Enable Daemon","daemon.description":"","deferred-input.name":"Deferred Load","deferred-input.description":"If true is given, aria2 does not read all URIs and options from file specified by --input-file option at startup, but it reads one by one when it needs later. This may reduce memory usage if input file contains a lot of URIs to download. If false is given, aria2 reads all URIs and options at startup. --deferred-input option will be disabled when --save-session is used together.","disable-ipv6.name":"Disable IPv6","disable-ipv6.description":"","disk-cache.name":"Disk Cache","disk-cache.description":"Enable disk cache. If SIZE is 0, the disk cache is disabled. This feature caches the downloaded data in memory, which grows to at most SIZE bytes. The cache storage is created for aria2 instance and shared by all downloads. The one advantage of the disk cache is reduce the disk I/O because the data are written in larger unit and it is reordered by the offset of the file. If hash checking is involved and the data are cached in memory, we don't need to read them from the disk. SIZE can include K or M (1K = 1024, 1M = 1024K).","download-result.name":"Download Result","download-result.description":"This option changes the way Download Results is formatted. If OPT is default, print GID, status, average download speed and path/URI. If multiple files are involved, path/URI of first requested file is printed and remaining ones are omitted. If OPT is full, print GID, status, average download speed, percentage of progress and path/URI. The percentage of progress and path/URI are printed for each requested file in each row. If OPT is hide, Download Results is hidden.","dscp.name":"DSCP","dscp.description":"Set DSCP value in outgoing IP packets of BitTorrent traffic for QoS. This parameter sets only DSCP bits in TOS field of IP packets, not the whole field. If you take values from /usr/include/netinet/ip.h divide them by 4 (otherwise values would be incorrect, e.g. your CS1 class would turn into CS4). If you take commonly used values from RFC, network vendors' documentation, Wikipedia or any other source, use them as they are.","rlimit-nofile.name":"Soft Limit of Open File Descriptors","rlimit-nofile.description":"Set the soft limit of open file descriptors. This open will only have effect when: a. The system supports it (posix). b. The limit does not exceed the hard limit. c. The specified limit is larger than the current soft limit. This is equivalent to setting nofile via ulimit, except that it will never decrease the limit. This option is only available on systems supporting the rlimit API.","enable-color.name":"Enable Color in Terminal","enable-color.description":"","enable-mmap.name":"Enable MMap","enable-mmap.description":"Map files into memory. This option may not work if the file space is not pre-allocated. See --file-allocation.","event-poll.name":"Event Polling Method","event-poll.description":"Specify the method for polling events. The possible values are epoll, kqueue, port, poll and select. For each epoll, kqueue, port and poll, it is available if system supports it. epoll is available on recent Linux. kqueue is available on various *BSD systems including Mac OS X. port is available on Open Solaris. The default value may vary depending on the system you use.","file-allocation.name":"File Allocation Method","file-allocation.description":"Specify file allocation method. none doesn't pre-allocate file space. prealloc pre-allocates file space before download begins. This may take some time depending on the size of the file. If you are using newer file systems such as ext4 (with extents support), btrfs, xfs or NTFS(MinGW build only), falloc is your best choice. It allocates large(few GiB) files almost instantly. Don't use falloc with legacy file systems such as ext3 and FAT32 because it takes almost same time as prealloc and it blocks aria2 entirely until allocation finishes. falloc may not be available if your system doesn't have posix_fallocate(3) function. trunc uses ftruncate(2) system call or platform-specific counterpart to truncate a file to a specified length. In multi file torrent downloads, the files adjacent forward to the specified files are also allocated if they share the same piece.","force-save.name":"Force Save","force-save.description":"Save download with --save-session option even if the download is completed or removed. This option also saves control file in that situations. This may be useful to save BitTorrent seeding which is recognized as completed state.","save-not-found.name":"Save Not Found File","save-not-found.description":"Save download with --save-session option even if the file was not found on the server. This option also saves control file in that situations.","hash-check-only.name":"Hash Check Only","hash-check-only.description":"If true is given, after hash check using --check-integrity option, abort download whether or not download is complete.","human-readable.name":"Console Human Readable Output","human-readable.description":"Print sizes and speed in human readable format (e.g., 1.2Ki, 3.4Mi) in the console readout.","keep-unfinished-download-result.name":"Keep Unfinished Download Result","keep-unfinished-download-result.description":"Keep unfinished download results even if doing so exceeds --max-download-result. This is useful if all unfinished downloads must be saved in session file (see --save-session option). Please keep in mind that there is no upper bound to the number of unfinished download result to keep. If that is undesirable, turn this option off.","max-download-result.name":"Max Download Result","max-download-result.description":"Set maximum number of download result kept in memory. The download results are completed/error/removed downloads. The download results are stored in FIFO queue and it can store at most NUM download results. When queue is full and new download result is created, oldest download result is removed from the front of the queue and new one is pushed to the back. Setting big number in this option may result high memory consumption after thousands of downloads. Specifying 0 means no download result is kept. Note that unfinished downloads are kept in memory regardless of this option value. See --keep-unfinished-download-result option.","max-mmap-limit.name":"Max MMap Limit","max-mmap-limit.description":"Set the maximum file size to enable mmap (see --enable-mmap option). The file size is determined by the sum of all files contained in one download. For example, if a download contains 5 files, then file size is the total size of those files. If file size is strictly greater than the size specified in this option, mmap will be disabled.","max-resume-failure-tries.name":"Max Resume Failure Try Times","max-resume-failure-tries.description":"When used with --always-resume=false, aria2 downloads file from scratch when aria2 detects N number of URIs that does not support resume. If N is 0, aria2 downloads file from scratch when all given URIs do not support resume. See --always-resume option.","min-tls-version.name":"Min TLS Version","min-tls-version.description":"Specify minimum SSL/TLS version to enable.","log-level.name":"Log Level","log-level.description":"","optimize-concurrent-downloads.name":"Optimize Concurrent Downloads","optimize-concurrent-downloads.description":"Optimizes the number of concurrent downloads according to the bandwidth available. aria2 uses the download speed observed in the previous downloads to adapt the number of downloads launched in parallel according to the rule N = A + B Log10(speed in Mbps). The coefficients A and B can be customized in the option arguments with A and B separated by a colon. The default values (A=5, B=25) lead to using typically 5 parallel downloads on 1Mbps networks and above 50 on 100Mbps networks. The number of parallel downloads remains constrained under the maximum defined by the --max-concurrent-downloads parameter.","piece-length.name":"Piece Length","piece-length.description":"Set a piece length for HTTP/FTP downloads. This is the boundary when aria2 splits a file. All splits occur at multiple of this length. This option will be ignored in BitTorrent downloads. It will be also ignored if Metalink file contains piece hashes.","show-console-readout.name":"Show Console Output","show-console-readout.description":"","summary-interval.name":"Download Summary Output Interval","summary-interval.description":"Set interval in seconds to output download progress summary. Setting 0 suppresses the output.","max-overall-download-limit.name":"Global Max Download Limit","max-overall-download-limit.description":"Set max overall download speed in bytes/sec. 0 means unrestricted. You can append K or M (1K = 1024, 1M = 1024K).","max-download-limit.name":"Max Download Limit","max-download-limit.description":"Set max download speed per each download in bytes/sec. 0 means unrestricted. You can append K or M (1K = 1024, 1M = 1024K).","no-conf.name":"Disable Configuration File","no-conf.description":"","no-file-allocation-limit.name":"No File Allocation Limit","no-file-allocation-limit.description":"No file allocation is made for files whose size is smaller than SIZE. You can append K or M (1K = 1024, 1M = 1024K).","parameterized-uri.name":"Enable Parameterized URI","parameterized-uri.description":"Enable parameterized URI support. You can specify set of parts: http://{sv1,sv2,sv3}/foo.iso. Also you can specify numeric sequences with step counter: http://host/image[000-100:2].img. A step counter can be omitted. If all URIs do not point to the same file, such as the second example above, -Z option is required.","quiet.name":"Disable Console Output","quiet.description":"","realtime-chunk-checksum.name":"Realtime Data Chunk Validation","realtime-chunk-checksum.description":"Validate chunk of data by calculating checksum while downloading a file if chunk checksums are provided.","remove-control-file.name":"Remove Control File","remove-control-file.description":"Remove control file before download. Using with --allow-overwrite=true, download always starts from scratch. This will be useful for users behind proxy server which disables resume.","save-session.name":"Session Save File","save-session.description":"Save error/unfinished downloads to FILE on exit. You can pass this output file to aria2c with --input-file option on restart. If you like the output to be gzipped append a .gz extension to the file name. Please note that downloads added by aria2.addTorrent() and aria2.addMetalink() RPC method and whose meta data could not be saved as a file are not saved. Downloads removed using aria2.remove() and aria2.forceRemove() will not be saved.","save-session-interval.name":"Save Session Interval","save-session-interval.description":"Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits.","socket-recv-buffer-size.name":"Socket Receive Buffer Size","socket-recv-buffer-size.description":"Set the maximum socket receive buffer in bytes. Specifing 0 will disable this option. This value will be set to socket file descriptor using SO_RCVBUF socket option with setsockopt() call.","stop.name":"Auto Shutdown Time","stop.description":"Stop application after SEC seconds has passed. If 0 is given, this feature is disabled.","truncate-console-readout.name":"Truncate Console Output","truncate-console-readout.description":"Truncate console readout to fit in a single line."}})}])}(),function(){"use strict";angular.module("ariaNg").constant("aria2AllOptions",{gid:{type:"string",readonly:!0,required:!0},dir:{type:"string",required:!0},log:{type:"string",required:!0},"max-concurrent-downloads":{type:"integer",defaultValue:"5",required:!0,min:1},"check-integrity":{type:"boolean",defaultValue:"false",required:!0},continue:{type:"boolean",required:!0},"all-proxy":{type:"string"},"all-proxy-user":{type:"string"},"all-proxy-passwd":{type:"string"},checksum:{type:"string",required:!0,pattern:"^(md5|sha-(1|224|256|384|512))=[a-zA-Z0-9]+$"},"connect-timeout":{type:"integer",suffix:"Seconds",defaultValue:"60",required:!0,min:1,max:600},"dry-run":{type:"boolean",defaultValue:"false",required:!0},"lowest-speed-limit":{type:"string",suffix:"Bytes",defaultValue:"0",required:!0,pattern:"^(0|[1-9]\\d*(K|k|M|m)?)$"},"max-connection-per-server":{type:"integer",defaultValue:"1",required:!0,min:1,max:16},"max-file-not-found":{type:"integer",defaultValue:"0",required:!0,min:0},"max-tries":{type:"integer",defaultValue:"5",required:!0,min:0},"min-split-size":{type:"string",suffix:"Bytes",defaultValue:"20M",required:!0,pattern:"^(0|[1-9]\\d*(K|k|M|m)?)$"},"netrc-path":{type:"string",readonly:!0,defaultValue:"$(HOME)/.netrc"},"no-netrc":{type:"boolean",required:!0},"no-proxy":{type:"text",separator:",",showCount:!0},out:{type:"string"},"proxy-method":{type:"option",options:["get","tunnel"],defaultValue:"get",required:!0},"remote-time":{type:"boolean",defaultValue:"false",required:!0},"reuse-uri":{type:"boolean",defaultValue:"true",required:!0},"retry-wait":{type:"integer",suffix:"Seconds",defaultValue:"0",required:!0,min:0,max:600},"server-stat-of":{type:"string"},"server-stat-timeout":{type:"integer",suffix:"Seconds",readonly:!0,defaultValue:"86400"},split:{type:"integer",defaultValue:"5",required:!0,min:1},"stream-piece-selector":{type:"option",options:["default","inorder","random","geom"],defaultValue:"default",required:!0},timeout:{type:"integer",suffix:"Seconds",defaultValue:"60",required:!0,min:1,max:600},"uri-selector":{type:"option",options:["inorder","feedback","adaptive"],defaultValue:"feedback",required:!0},"check-certificate":{type:"boolean",readonly:!0,defaultValue:"true"},"http-accept-gzip":{type:"boolean",defaultValue:"false",required:!0},"http-auth-challenge":{type:"boolean",defaultValue:"false",required:!0},"http-no-cache":{type:"boolean",defaultValue:"false",required:!0},"http-user":{type:"string"},"http-passwd":{type:"string"},"http-proxy":{type:"string"},"http-proxy-user":{type:"string"},"http-proxy-passwd":{type:"string"},"https-proxy":{type:"string"},"https-proxy-user":{type:"string"},"https-proxy-passwd":{type:"string"},referer:{type:"string"},"enable-http-keep-alive":{type:"boolean",defaultValue:"true",required:!0},"enable-http-pipelining":{type:"boolean",defaultValue:"false",required:!0},header:{type:"text",separator:"\n",overrideMode:"append",submitFormat:"array",showCount:!0,trimCount:!0},"save-cookies":{type:"string"},"use-head":{type:"boolean",defaultValue:"false",required:!0},"user-agent":{type:"string",defaultValue:"aria2/$VERSION"},"ftp-user":{type:"string",defaultValue:"anonymous"},"ftp-passwd":{type:"string",defaultValue:"ARIA2USER@"},"ftp-pasv":{type:"boolean",defaultValue:"true",required:!0},"ftp-proxy":{type:"string"},"ftp-proxy-user":{type:"string"},"ftp-proxy-passwd":{type:"string"},"ftp-type":{type:"option",options:["binary","ascii"],defaultValue:"binary",required:!0},"ftp-reuse-connection":{type:"boolean",defaultValue:"true",required:!0},"ssh-host-key-md":{type:"string"},"show-files":{type:"boolean",readonly:!0},"bt-detach-seed-only":{type:"boolean",readonly:!0,defaultValue:"false"},"bt-enable-hook-after-hash-check":{since:"1.19.3",type:"boolean",defaultValue:"true",required:!0},"bt-enable-lpd":{type:"boolean",defaultValue:"false",required:!0},"bt-exclude-tracker":{type:"text",separator:",",showCount:!0},"bt-external-ip":{type:"string"},"bt-force-encryption":{type:"boolean",defaultValue:"false",required:!0},"bt-hash-check-seed":{type:"boolean",defaultValue:"true",required:!0},"bt-load-saved-metadata":{since:"1.33.0",type:"boolean",defaultValue:"false",required:!0},"bt-max-open-files":{type:"integer",defaultValue:"100",required:!0,min:1},"bt-max-peers":{type:"integer",defaultValue:"55",required:!0,min:0},"bt-metadata-only":{type:"boolean",defaultValue:"false",required:!0},"bt-min-crypto-level":{type:"option",options:["plain","arc4"],defaultValue:"plain",required:!0},"bt-prioritize-piece":{type:"string"},"bt-remove-unselected-file":{type:"boolean",defaultValue:"false",required:!0},"bt-require-crypto":{type:"boolean",defaultValue:"false",required:!0},"bt-request-peer-speed-limit":{type:"string",suffix:"Bytes",defaultValue:"50K",required:!0,pattern:"^(0|[1-9]\\d*(K|k|M|m)?)$"},"bt-save-metadata":{type:"boolean",defaultValue:"false",required:!0},"bt-seed-unverified":{type:"boolean",defaultValue:"false",required:!0},"bt-stop-timeout":{type:"integer",suffix:"Seconds",defaultValue:"0",required:!0,min:0},"bt-tracker":{type:"text",separator:",",showCount:!0},"bt-tracker-connect-timeout":{type:"integer",suffix:"Seconds",defaultValue:"60",required:!0,min:1,max:600},"bt-tracker-interval":{type:"integer",suffix:"Seconds",defaultValue:"0",required:!0,min:0},"bt-tracker-timeout":{type:"integer",suffix:"Seconds",defaultValue:"60",required:!0,min:1,max:600},"dht-file-path":{type:"string",readonly:!0,defaultValue:"$HOME/.aria2/dht.dat"},"dht-file-path6":{type:"string",readonly:!0,defaultValue:"$HOME/.aria2/dht6.dat"},"dht-listen-port":{type:"string",readonly:!0,defaultValue:"6881-6999"},"dht-message-timeout":{type:"integer",suffix:"Seconds",readonly:!0,defaultValue:"10"},"enable-dht":{type:"boolean",readonly:!0,defaultValue:"true"},"enable-dht6":{type:"boolean",readonly:!0},"enable-peer-exchange":{type:"boolean",defaultValue:"true",required:!0},"follow-torrent":{type:"option",options:["true","false","mem"],defaultValue:"true",required:!0},"listen-port":{type:"integer",readonly:!0,defaultValue:"6881-6999"},"max-overall-upload-limit":{type:"string",suffix:"Bytes",defaultValue:"0",required:!0,pattern:"^(0|[1-9]\\d*(K|k|M|m)?)$"},"max-upload-limit":{type:"string",suffix:"Bytes",defaultValue:"0",required:!0,pattern:"^(0|[1-9]\\d*(K|k|M|m)?)$"},"peer-id-prefix":{type:"string",readonly:!0,defaultValue:"A2-$MAJOR-$MINOR-$PATCH-"},"peer-agent":{since:"1.33.0",type:"string",defaultValue:"aria2/$MAJOR.$MINOR.$PATCH",readonly:!0},"seed-ratio":{type:"float",defaultValue:"1.0",required:!0,min:0},"seed-time":{type:"float",suffix:"Minutes",required:!0,min:0},"follow-metalink":{type:"option",options:["true","false","mem"],defaultValue:"true",required:!0},"metalink-base-uri":{type:"string"},"metalink-language":{type:"string"},"metalink-location":{type:"string"},"metalink-os":{type:"string"},"metalink-version":{type:"string"},"metalink-preferred-protocol":{type:"option",options:["http","https","ftp","none"],defaultValue:"none",required:!0},"metalink-enable-unique-protocol":{type:"boolean",defaultValue:"true",required:!0},"enable-rpc":{type:"boolean",readonly:!0,defaultValue:"false"},"pause-metadata":{type:"boolean",defaultValue:"false",required:!0},"rpc-allow-origin-all":{type:"boolean",readonly:!0,defaultValue:"false"},"rpc-listen-all":{type:"boolean",readonly:!0,defaultValue:"false"},"rpc-listen-port":{type:"integer",readonly:!0,defaultValue:"6800"},"rpc-max-request-size":{type:"string",suffix:"Bytes",readonly:!0,defaultValue:"2M"},"rpc-save-upload-metadata":{type:"boolean",defaultValue:"true",required:!0},"rpc-secure":{type:"boolean",readonly:!0},"allow-overwrite":{type:"boolean",defaultValue:"false",required:!0},"allow-piece-length-change":{type:"boolean",defaultValue:"false",required:!0},"always-resume":{type:"boolean",defaultValue:"true",required:!0},"async-dns":{type:"boolean",defaultValue:"true",required:!0},"auto-file-renaming":{type:"boolean",defaultValue:"true",required:!0},"auto-save-interval":{type:"integer",suffix:"Seconds",readonly:!0,defaultValue:"60"},"conditional-get":{type:"boolean",defaultValue:"false",required:!0},"conf-path":{type:"string",readonly:!0,defaultValue:"$HOME/.aria2/aria2.conf"},"console-log-level":{type:"option",options:["debug","info","notice","warn","error"],readonly:!0,defaultValue:"notice"},"content-disposition-default-utf8":{since:"1.31.0",type:"boolean",defaultValue:"false"},daemon:{type:"boolean",readonly:!0,defaultValue:"false"},"deferred-input":{type:"boolean",readonly:!0,defaultValue:"false"},"disable-ipv6":{type:"boolean",readonly:!0,defaultValue:"false"},"disk-cache":{type:"string",suffix:"Bytes",readonly:!0,defaultValue:"16M"},"download-result":{type:"option",options:["default","full","hide"],defaultValue:"default",required:!0},dscp:{type:"string",readonly:!0},"rlimit-nofile":{type:"string",readonly:!0},"enable-color":{type:"boolean",readonly:!0,defaultValue:"true"},"enable-mmap":{type:"boolean",defaultValue:"false",required:!0},"event-poll":{type:"option",options:["epoll","kqueue","port","poll","select"],readonly:!0},"file-allocation":{type:"option",options:["none","prealloc","trunc","falloc"],defaultValue:"prealloc",required:!0},"force-save":{type:"boolean",defaultValue:"false",required:!0},"save-not-found":{since:"1.27.0",type:"boolean",defaultValue:"true",required:!0},"hash-check-only":{type:"boolean",defaultValue:"false",required:!0},"human-readable":{type:"boolean",readonly:!0,defaultValue:"true"},"keep-unfinished-download-result":{type:"boolean",defaultValue:"true",required:!0},"max-download-result":{type:"integer",defaultValue:"1000",required:!0,min:0},"max-mmap-limit":{since:"1.20.0",type:"string",suffix:"Bytes",defaultValue:"9223372036854775807",required:!0,pattern:"^(0|[1-9]\\d*(K|k|M|m)?)$"},"max-resume-failure-tries":{type:"integer",defaultValue:"0",required:!0,min:0},"min-tls-version":{type:"option",options:["SSLv3","TLSv1","TLSv1.1","TLSv1.2"],readonly:!0,defaultValue:"TLSv1"},"log-level":{type:"option",options:["debug","info","notice","warn","error"],defaultValue:"debug",required:!0},"optimize-concurrent-downloads":{since:"1.22.0",type:"string",defaultValue:"false"},"piece-length":{type:"string",suffix:"Bytes",defaultValue:"1M",required:!0,pattern:"^(0|[1-9]\\d*(M|m)?)$"},"show-console-readout":{type:"boolean",readonly:!0,defaultValue:"true"},"summary-interval":{type:"integer",suffix:"Seconds",readonly:!0,defaultValue:"60"},"max-overall-download-limit":{type:"string",suffix:"Bytes",defaultValue:"0",required:!0,pattern:"^(0|[1-9]\\d*(K|k|M|m)?)$"},"max-download-limit":{type:"string",suffix:"Bytes",defaultValue:"0",required:!0,pattern:"^(0|[1-9]\\d*(K|k|M|m)?)$"},"no-conf":{type:"boolean",readonly:!0},"no-file-allocation-limit":{type:"string",suffix:"Bytes",defaultValue:"5M",required:!0,pattern:"^(0|[1-9]\\d*(K|k|M|m)?)$"},"parameterized-uri":{type:"boolean",defaultValue:"false",required:!0},quiet:{type:"boolean",readonly:!0,defaultValue:"false"},"realtime-chunk-checksum":{type:"boolean",defaultValue:"true",required:!0},"remove-control-file":{type:"boolean",required:!0},"save-session":{type:"string"},"save-session-interval":{type:"integer",suffix:"Seconds",readonly:!0,defaultValue:"0"},"socket-recv-buffer-size":{since:"1.19.3",type:"string",suffix:"Bytes",readonly:!0,defaultValue:"0"},stop:{type:"integer",suffix:"Seconds",readonly:!0,defaultValue:"0"},"truncate-console-readout":{type:"boolean",readonly:!0,defaultValue:"true"}}).constant("aria2GlobalAvailableOptions",{basicOptions:["dir","log","max-concurrent-downloads","check-integrity","continue"],httpFtpSFtpOptions:["all-proxy","all-proxy-user","all-proxy-passwd","connect-timeout","dry-run","lowest-speed-limit","max-connection-per-server","max-file-not-found","max-tries","min-split-size","netrc-path","no-netrc","no-proxy","proxy-method","remote-time","reuse-uri","retry-wait","server-stat-of","server-stat-timeout","split","stream-piece-selector","timeout","uri-selector"],httpOptions:["check-certificate","http-accept-gzip","http-auth-challenge","http-no-cache","http-user","http-passwd","http-proxy","http-proxy-user","http-proxy-passwd","https-proxy","https-proxy-user","https-proxy-passwd","referer","enable-http-keep-alive","enable-http-pipelining","header","save-cookies","use-head","user-agent"],ftpSFtpOptions:["ftp-user","ftp-passwd","ftp-pasv","ftp-proxy","ftp-proxy-user","ftp-proxy-passwd","ftp-type","ftp-reuse-connection","ssh-host-key-md"],btOptions:["bt-detach-seed-only","bt-enable-hook-after-hash-check","bt-enable-lpd","bt-exclude-tracker","bt-external-ip","bt-force-encryption","bt-hash-check-seed","bt-load-saved-metadata","bt-max-open-files","bt-max-peers","bt-metadata-only","bt-min-crypto-level","bt-prioritize-piece","bt-remove-unselected-file","bt-require-crypto","bt-request-peer-speed-limit","bt-save-metadata","bt-seed-unverified","bt-stop-timeout","bt-tracker","bt-tracker-connect-timeout","bt-tracker-interval","bt-tracker-timeout","dht-file-path","dht-file-path6","dht-listen-port","dht-message-timeout","enable-dht","enable-dht6","enable-peer-exchange","follow-torrent","listen-port","max-overall-upload-limit","max-upload-limit","peer-id-prefix","peer-agent","seed-ratio","seed-time"],metalinkOptions:["follow-metalink","metalink-base-uri","metalink-language","metalink-location","metalink-os","metalink-version","metalink-preferred-protocol","metalink-enable-unique-protocol"],rpcOptions:["enable-rpc","pause-metadata","rpc-allow-origin-all","rpc-listen-all","rpc-listen-port","rpc-max-request-size","rpc-save-upload-metadata","rpc-secure"],advancedOptions:["allow-overwrite","allow-piece-length-change","always-resume","async-dns","auto-file-renaming","auto-save-interval","conditional-get","conf-path","console-log-level","content-disposition-default-utf8","daemon","deferred-input","disable-ipv6","disk-cache","download-result","dscp","rlimit-nofile","enable-color","enable-mmap","event-poll","file-allocation","force-save","save-not-found","hash-check-only","human-readable","keep-unfinished-download-result","max-download-result","max-mmap-limit","max-resume-failure-tries","min-tls-version","log-level","optimize-concurrent-downloads","piece-length","show-console-readout","summary-interval","max-overall-download-limit","max-download-limit","no-conf","no-file-allocation-limit","parameterized-uri","quiet","realtime-chunk-checksum","remove-control-file","save-session","save-session-interval","socket-recv-buffer-size","stop","truncate-console-readout"]}).constant("aria2QuickSettingsAvailableOptions",{globalSpeedLimitOptions:["max-overall-download-limit","max-overall-upload-limit"]}).constant("aria2TaskAvailableOptions",{taskOptions:[{key:"dir",category:"global",canUpdate:"new",showHistory:!0},{key:"out",category:"http",canUpdate:"new"},{key:"allow-overwrite",category:"global",canShow:"new"},{key:"max-download-limit",category:"global"},{key:"max-upload-limit",category:"bittorrent"},{key:"split",category:"http",canUpdate:"new|waiting|paused"},{key:"min-split-size",category:"http",canUpdate:"new|waiting|paused"},{key:"max-connection-per-server",category:"http",canUpdate:"new|waiting|paused"},{key:"lowest-speed-limit",category:"http",canUpdate:"new|waiting|paused"},{key:"stream-piece-selector",category:"http",canUpdate:"new|waiting|paused"},{key:"http-user",category:"http",canUpdate:"new|waiting|paused"},{key:"http-passwd",category:"http",canUpdate:"new|waiting|paused"},{key:"all-proxy",category:"http",canUpdate:"new|waiting|paused"},{key:"all-proxy-user",category:"http",canUpdate:"new|waiting|paused"},{key:"all-proxy-passwd",category:"http",canUpdate:"new|waiting|paused"},{key:"checksum",category:"http"},{key:"referer",category:"http",canUpdate:"new"},{key:"header",category:"http",canUpdate:"new"},{key:"bt-max-peers",category:"bittorrent"},{key:"bt-request-peer-speed-limit",category:"bittorrent"},{key:"bt-remove-unselected-file",category:"bittorrent"},{key:"bt-stop-timeout",category:"bittorrent",canUpdate:"new|waiting|paused"},{key:"bt-tracker",category:"bittorrent",canUpdate:"new|waiting|paused"},{key:"seed-ratio",category:"bittorrent",canUpdate:"new|waiting|paused"},{key:"seed-time",category:"bittorrent",canUpdate:"new|waiting|paused"},{key:"conditional-get",category:"global",canShow:"new"},{key:"check-integrity",category:"global"},{key:"file-allocation",category:"global",canShow:"new"},{key:"parameterized-uri",category:"global",canShow:"new"},{key:"force-save",category:"global"}]})}(),function(){"use strict";angular.module("ariaNg").constant("aria2Errors",{1:{descriptionKey:"error.unknown"},2:{descriptionKey:"error.operation.timeout"},3:{descriptionKey:"error.resource.notfound"},4:{descriptionKey:"error.resource.notfound.max-file-not-found"},5:{descriptionKey:"error.download.aborted.lowest-speed-limit"},6:{descriptionKey:"error.network.problem"},8:{descriptionKey:"error.resume.notsupported"},9:{descriptionKey:"error.space.notenough"},10:{descriptionKey:"error.piece.length.different"},11:{descriptionKey:"error.download.sametime"},12:{descriptionKey:"error.download.torrent.sametime"},13:{descriptionKey:"error.file.exists"},14:{descriptionKey:"error.file.rename.failed"},15:{descriptionKey:"error.file.open.failed"},16:{descriptionKey:"error.file.create.failed"},17:{descriptionKey:"error.io.error"},18:{descriptionKey:"error.directory.create.failed"},19:{descriptionKey:"error.name.resolution.failed"},20:{descriptionKey:"error.metalink.file.parse.failed"},21:{descriptionKey:"error.ftp.command.failed"},22:{descriptionKey:"error.http.response.header.bad"},23:{descriptionKey:"error.redirects.toomany"},24:{descriptionKey:"error.http.authorization.failed"},25:{descriptionKey:"error.bencoded.file.parse.failed"},26:{descriptionKey:"error.torrent.file.corrupted"},27:{descriptionKey:"error.magnet.uri.bad"},28:{descriptionKey:"error.option.bad"},29:{descriptionKey:"error.server.overload"},30:{descriptionKey:"error.rpc.request.parse.failed"},32:{descriptionKey:"error.checksum.failed"}})}(),function(){"use strict";angular.module("ariaNg").constant("aria2RpcConstants",{rpcServiceVersion:"2.0",rpcServiceName:"aria2",rpcSystemServiceName:"system",rpcTokenPrefix:"token:"}).constant("aria2RpcErrors",{Unauthorized:{message:"Unauthorized",tipTextKey:"rpc.error.unauthorized"}})}(),function(){"use strict";angular.module("ariaNg").controller("CommandController",["$rootScope","$window","$location","$routeParams","ariaNgDefaultOptions","ariaNgCommonService","ariaNgLogService","ariaNgSettingService","aria2TaskService","aria2SettingService",function(s,o,r,e,l,c,d,u,p,g){var t,a,n=r.path(),i=angular.extend({},e,r.search());a=i,(0===(t=n).indexOf("/new")?function(e,t){try{e=c.base64UrlDecode(e)}catch(e){return c.showError("URL is not base64 encoded!"),!1}var a={},n=!1;if(t){for(var i in t)t.hasOwnProperty(i)&&g.isOptionKeyValid(i)&&(a[i]=t[i]);"true"===t.pause&&(n=!0)}return s.loadPromise=p.newUriTask({urls:[e],options:a},n,function(e){if(!e.success)return!1;n?r.path("/waiting"):r.path("/downloading")}),d.info("[CommandController] new download: "+e),!0}(a.url,a):0===t.indexOf("/settings/rpc/set")?function(e,t,a,n,i){if(a=a||l.rpcPort,n=n||l.rpcInterface,i=i||l.secret,d.info("[CommandController] set rpc: "+e+"://"+t+":"+a+"/"+n+", secret: "+i),!e||"http"!==e&&"https"!==e&&"ws"!==e&&"wss"!==e)return c.showError("Protocol is invalid!"),!1;if(!t)return c.showError("RPC host cannot be empty!"),!1;if(i)try{i=c.base64UrlDecode(i)}catch(e){return c.showError("RPC secret is not base64 encoded!"),!1}var s={rpcAlias:"",rpcHost:t,rpcPort:a,rpcInterface:n,protocol:e,httpMethod:l.httpMethod,rpcRequestHeaders:"",secret:i};return u.isRpcSettingEqualsDefault(s)?r.path("/downloading"):(u.setDefaultRpcSetting(s,{keepCurrent:!1,forceSet:!0}),r.path("/downloading"),o.location.reload()),!0}(a.protocol,a.host,a.port,a.interface,a.secret):(c.showError("Parameter is invalid!"),0))||r.path("/downloading")}])}(),function(){"use strict";angular.module("ariaNg").controller("AriaNgDebugController",["$rootScope","$scope","$location","$interval","$timeout","$filter","ariaNgConstants","ariaNgCommonService","ariaNgLocalizationService","ariaNgLogService","ariaNgKeyboardService","ariaNgSettingService","aria2RpcService",function(t,s,e,a,n,o,i,r,l,c,d,u,p){var g=[{name:"logs",show:!0},{name:"rpc",show:!0}],f=null,m=function(){for(var e=[],t=0;t span").text().trim(),a="";if(p.find(".setting-value > span").each(function(e,t){0=n.context.rpcSettings.length?n.changeRpcTab(n.context.rpcSettings.length-1):e<=0||e<=t||n.changeRpcTab(e-1)},!1,{textParams:{rpcName:e}})},n.showExportCommandAPIModal=function(e){n.context.exportCommandApiOptions={type:"setting",data:e}},n.setDefaultRpcSetting=function(e){e.isDefault||(h.setDefaultRpcSetting(e),a.location.reload())},n.resetSettings=function(){c.confirm("Confirm Reset","Are you sure you want to reset all settings?","warning",function(){h.resetSettings(),a.location.reload()})},n.clearHistory=function(){c.confirm("Confirm Clear","Are you sure you want to clear all settings history?","warning",function(){b.clearSettingsHistorys(),a.location.reload()})},angular.element('[data-toggle="popover"]').popover(),t.loadPromise=s(function(){},100)}])}(),function(){"use strict";angular.module("ariaNg").controller("Aria2SettingsController",["$rootScope","$scope","$location","ariaNgConstants","ariaNgCommonService","aria2SettingService",function(e,t,a,n,i,s){var o=a.path().substring(a.path().lastIndexOf("/")+1);t.context={availableOptions:function(e){var t=s.getAvailableGlobalOptionsKeys(e);if(t)return s.getSpecifiedOptions(t);i.showError("Type is illegal!")}(o),globalOptions:[]},t.setGlobalOption=function(e,t,a){return s.setGlobalOption(e,t,function(e){e.success&&"OK"===e.data?a.setSuccess():a.setFailed(e.data.message)},!0)},e.loadPromise=s.getGlobalOption(function(e){e.success&&(t.context.globalOptions=e.data)})}])}(),function(){"use strict";angular.module("ariaNg").controller("Aria2StatusController",["$rootScope","$scope","$timeout","ariaNgCommonService","ariaNgSettingService","aria2SettingService",function(e,t,a,n,i,s){t.context={host:i.getCurrentRpcUrl(),serverStatus:null,isSupportReconnect:s.canReconnect()},t.reconnect=function(){!t.context.isSupportReconnect||"Disconnected"!==e.taskContext.rpcStatus&&"Waiting to reconnect"!==e.taskContext.rpcStatus||s.reconnect()},t.saveSession=function(){return s.saveSession(function(e){e.success&&"OK"===e.data&&n.showOperationSucceeded("Session has been saved successfully.")})},t.shutdown=function(){n.confirm("Confirm Shutdown","Are you sure you want to shutdown aria2?","warning",function(e){return s.shutdown(function(e){e.success&&"OK"===e.data&&n.showOperationSucceeded("Aria2 has been shutdown successfully.")})},!0)},e.$watch("taskContext.rpcStatus",function(e){"Connected"===e?s.getAria2Status(function(e){e.success&&(t.context.serverStatus=e.data)}):t.context.serverStatus=null}),e.loadPromise=a(function(){},100)}])}(),function(){"use strict";angular.module("ariaNg").directive("ngAutoFocus",["$timeout",function(a){return{restrict:"A",link:function(e,t){a(function(){t[0].focus()})}}}])}(),function(){"use strict";angular.module("ariaNg").directive("ngPieceBar",["aria2TaskService",function(u){return{restrict:"E",template:'',replace:!0,scope:{bitField:"=",pieceCount:"=",color:"@"},link:function(c,d){var e=function(){var e=d[0],t=u.getCombinedPieces(c.bitField,c.pieceCount),a=e.getContext("2d");a.fillStyle=c.color||"#000",a.clearRect(0,0,e.width,e.height);for(var n=0,i=e.width,s=e.height,o=0;o',replace:!0,scope:{bitField:"=",pieceCount:"="},link:function(n,i){var s=[],o=[],a=function(){o=r.getPieceStatus(n.bitField,n.pieceCount),s.length=0,i.empty();for(var e=Math.max(1,o.length),t=0;t');s.push(a),i.append(a)}};n.$watch("bitField",function(){!function(){var e=r.getPieceStatus(n.bitField,n.pieceCount);if(o&&e&&o.length===e.length&&e.length===s.length){for(var t=0;t",scope:{options:"=ngData",theme:"=ngTheme"},link:function(e,t,a){angular.extend({},a);var n=t.find("div"),i=t.parent().height(),s=parseInt(a.height)||i||200;n.css("height",s+"px");var o=echarts.init(n[0],l.get(e.theme));angular.element(r).on("resize",function(){o.resize(),e.$apply()}),e.$watch("options",function(e){var t;e&&(t=e,o.setOption(t))},!0),e.$on("$destroy",function(){o&&!o.isDisposed()&&o.dispose()})}}}]).directive("ngPopChart",["$window","chartTheme",function(e,o){return{restrict:"A",scope:{options:"=ngData",theme:"=ngTheme"},link:function(n,e,i){var t={ngPopoverClass:"",ngContainer:"body",ngTrigger:"click",ngPlacement:"top"};angular.extend(t,i);var s=null,a='
';e.popover({container:t.ngContainer,content:'
'+a+"
",html:!0,placement:t.ngPlacement,template:'',trigger:t.ngTrigger}).on("shown.bs.popover",function(){var e=angular.element(".chart-pop"),t=e.parent().height();e.empty();var a=parseInt(i.height)||t||200;e.css("height",a+"px"),s=echarts.init(e[0],o.get(n.theme))}).on("hide.bs.popover",function(){s&&!s.isDisposed()&&s.dispose()}).on("hidden.bs.popover",function(){angular.element(".chart-pop").empty().append(a)});n.$watch("options",function(e){var t;e&&(t=e,s&&!s.isDisposed()&&s.setOption(t))},!0)}}}]).factory("chartTheme",["chartDefaultTheme","chartDarkTheme",function(e,t){var a={defaultTheme:e,darkTheme:t};return{get:function(e){return"default"!==e&&a[e+"Theme"]?angular.extend({},a.defaultTheme,a[e+"Theme"]):a.defaultTheme}}}]).factory("chartDefaultTheme",function(){return{color:["#74a329","#3a89e9"],legend:{top:"bottom"},toolbox:{show:!1},tooltip:{show:!0,trigger:"axis",backgroundColor:"rgba(0, 0, 0, 0.7)",axisPointer:{type:"line",lineStyle:{color:"#233333",type:"dashed",width:1},crossStyle:{color:"#008acd",width:1},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},grid:{x:40,y:20,x2:30,y2:50},categoryAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"#f3f3f3"}}},valueAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"#f3f3f3"}},splitArea:{show:!1}},line:{itemStyle:{normal:{lineStyle:{width:2,type:"solid"}}},smooth:!0,symbolSize:6},textStyle:{fontFamily:"Hiragino Sans GB, Microsoft YaHei, STHeiti, Helvetica Neue, Helvetica, Arial, sans-serif"},animationDuration:500}}).factory("chartDarkTheme",function(){return{tooltip:{show:!0,trigger:"axis",backgroundColor:"rgba(0, 0, 0, 0.7)",axisPointer:{type:"line",lineStyle:{color:"#ddd",type:"dashed",width:1},crossStyle:{color:"#ddd",width:1},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},categoryAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"#333"}}},valueAxis:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!0,textStyle:{color:"#eee"}},splitLine:{lineStyle:{color:"#333"}},splitArea:{show:!1}}}})}(),function(){"use strict";angular.module("ariaNg").directive("ngExportCommandApiDialog",["clipboard","ariaNgCommonService",function(a,o){return{restrict:"E",templateUrl:"views/export-command-api-dialog.html",replace:!0,scope:{options:"="},link:function(n,t,e){n.context={trueFalseOptions:[{name:"Enabled",value:!0},{name:"Disabled",value:!1}],baseUrl:o.getFullPageUrl(),commandAPIUrl:null,pauseOnAdded:!0,isCopied:!1};var i=function(){var e=n.context.baseUrl;return 0<=e.indexOf("#")&&(e=e.substring(0,e.indexOf("#"))),e},s=function(e){var t=i()+"#!/new/task?url="+o.base64UrlEncode(e.urls[0]);if(n.context.pauseOnAdded&&(t+="&pause=true"),e.options)for(var a in e.options)e.options.hasOwnProperty(a)&&(t+="&"+a+"="+e.options[a]);return t};n.generateCommandAPIUrl=function(){var e,t;n.options&&("new-task"===n.options.type?n.context.commandAPIUrl=function(e){for(var t="",a=0;a
'}).tooltip("show")},r.errorTooltipDelay)},d=function(e,t,a){if(!e||!t||!angular.isString(e))return 0;var n=e.split(t),i=n.length;if(a)for(var s=0;ss.option.max)return void s.optionStatus.setError("Input number is above max value!",{value:s.option.max})}if(""===e||!angular.isDefined(s.option.pattern)||new RegExp(s.option.pattern).test(e)){var n={key:s.option.key,value:e,optionStatus:s.optionStatus},i=function(){s.optionStatus.setSaving(),s.onChangeValue(n)};s.onChangeValue&&(t?(s.optionStatus.setPending(),o=p(function(){i()},r.lazySaveTimeout)):i())}else s.optionStatus.setError("Input value is invalid!")}else s.optionStatus.setError("Input number is invalid!");else s.optionStatus.setError("Input number is invalid!")},s.inputKeyUp=function(e,t){if((!0===r.deleteKeyAlwaysChangeValue||"true"===r.deleteKeyAlwaysChangeValue)&&(h.isBackspacePressed(e)||h.isDeletePressed(e))){if(s.optionValue&&""!==s.optionValue)return;s.changeValue("",t)}},s.filterHistory=function(e){var t=[];if(s.history&&e)for(var a=0;a=o.cachedDebugLogsLimit&&c.shift(),c.push((n=e,i=t,s=a,{id:++r,time:new Date,level:i,content:n,attachment:s})))};return{setEnableDebugLog:function(e){l=e},compareLogLevel:function(e,t){var a=i[e],n=i[t];return a||(a=0),n||(n=0),n')),s.data("options",e),e.fileFilter&&s.attr("accept",e.fileFilter),s.val(""),"true"!==s.attr("data-ariang-file-initialized")&&s.change(function(){if(this.files&&!(this.files.length<1)){var t=s.data("options"),e=function(e){var t=[];if(!e||e.length<1)return t.push(/.+$/),t;for(var a=e.split(","),n=0;n')),t.attr("href",i),a.fileName&&t.attr("download",a.fileName),a.autoTrigger&&t.trigger("click"),a.autoRevoke&&URL.revokeObjectURL(i)}}}}])}(),function(){"use strict";angular.module("ariaNg").factory("ariaNgSettingService",["$window","$location","$filter","ariaNgConstants","ariaNgDefaultOptions","ariaNgLanguages","ariaNgCommonService","ariaNgLogService","ariaNgStorageService",function(n,t,e,i,o,s,r,l,c){var a={localStroage:c.isLocalStorageSupported(),cookies:c.isCookiesSupported()},d=a.localStroage||a.cookies,u=!!n.matchMedia&&n.matchMedia("(prefers-color-scheme: dark)")&&"not all"!==n.matchMedia("(prefers-color-scheme: dark)").media&&angular.isFunction(n.matchMedia("(prefers-color-scheme: dark)").addEventListener),p=[],g=!1,f={debugMode:!1},m=function(){return"https"===t.protocol()},h=function(e){for(var t in s)if(s.hasOwnProperty(t)){if(t.toLowerCase()===e.toLowerCase())return t;var a=s[t].aliases;if(angular.isArray(a)&&!(a.length<1))for(var n=0;n"+r.getLocalizedText("No Data")+"";var t=l.getLongTimeFromUnixTime(e[0].name),a=o("readableVolume")(e[0].value)+"/s";return'
'+t+'
'+(o("readableVolume")(e[1].value)+"/s")+'
'+a+"
"}},xAxis:{data:[],type:"category",boundaryGap:!1,axisLabel:{show:!1}},yAxis:{type:"value",axisLabel:{formatter:function(e){return o("readableVolume")(e,"auto")}}},series:[{type:"line",areaStyle:{normal:{opacity:.1}},smooth:!0,symbolSize:6,showAllSymbol:!1,data:[]},{type:"line",areaStyle:{normal:{opacity:.1}},smooth:!0,symbolSize:6,showAllSymbol:!1,data:[]}]},a=t.xAxis.data,n=t.series[0].data,i=t.series[1].data,s=0;s=d(a)&&(s.shift(),o.shift(),r.shift()),s.push(n.time),o.push(n.uploadSpeed),r.push(n.downloadSpeed)},getStatsData:function(e){return p(e)||u(e),c[e]},getEmptyStatsData:function(e){return p(e)&&delete c[e],this.getStatsData(e)},recordGlobalStat:function(e){this.recordStat(n,e),a=e},getGlobalStatsData:function(){return this.getStatsData(n)},getCurrentGlobalStat:function(){return a}}}])}(),function(){"use strict";angular.module("ariaNg").factory("ariaNgTitleService",["$filter","ariaNgConstants","ariaNgLocalizationService","ariaNgSettingService",function(d,f,m,h){var u=function(e){if(!e)return{};for(var t=e.substring(2,e.length-1).split(":"),a={oldValue:e},n=1;ni&&(i=o.completePercent)}var u=0;if(0'),e.put("views/export-command-api-dialog.html",''),e.put("views/list.html",'
'),e.put("views/new.html",'
'),e.put("views/notification-reloadable.html",''),e.put("views/setting-dialog.html",'\x3c!-- /.modal --\x3e'),e.put("views/setting.html",'
 
'),e.put("views/settings-aria2.html",'
'),e.put("views/settings-ariang.html",'
'),e.put("views/status.html",'
Aria2 RPC Address
Aria2 Status
Aria2 Version
-
Enabled Features
-
Operations
'),e.put("views/task-detail.html",'
\x3c!-- /.nav-tabs-custom --\x3e
')}]); \ No newline at end of file diff --git a/ccaa_dir/AriaNg/js/moment-with-locales-2.29.4.min.js b/ccaa_dir/AriaNg/js/moment-with-locales-2.29.4.min.js new file mode 100644 index 0000000..d6d2860 --- /dev/null +++ b/ccaa_dir/AriaNg/js/moment-with-locales-2.29.4.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e;function g(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function u(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(w(e,t))return;return 1}function a(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){for(var n=[],s=e.length,i=0;i>>0,s=0;sCe(e)?(r=e+1,t-Ce(e)):(r=e,t);return{year:r,dayOfYear:n}}function Ge(e,t,n){var s,i,r=Ve(e.year(),t,n);return(r=Math.floor((e.dayOfYear()-r-1)/7)+1)<1?s=r+Ae(i=e.year()-1,t,n):r>Ae(e.year(),t,n)?(s=r-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=r),{week:s,year:i}}function Ae(e,t,n){var s=Ve(e,t,n);t=Ve(e+1,t,n);return(Ce(e)-s+t)/7}function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),A("week",5),A("isoWeek",5),he("w",ee),he("ww",ee,J),he("W",ee),he("WW",ee,J),ye(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=z(e)}),R("d",0,"do","day"),R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),A("day",11),A("weekday",11),A("isoWeekday",11),he("d",ee),he("e",ee),he("E",ee),he("dd",function(e,t){return t.weekdaysMinRegex(e)}),he("ddd",function(e,t){return t.weekdaysShortRegex(e)}),he("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,s){null!=(s=n._locale.weekdaysParse(e,s,n._strict))?t.d=s:p(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,s){t[s]=z(e)});var Ie="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=de,$e=de,Be=de;function Je(){function e(e,t){return t.length-e.length}for(var t,n,s,i=[],r=[],a=[],o=[],u=0;u<7;u++)s=m([2e3,1]).day(u),t=ce(this.weekdaysMin(s,"")),n=ce(this.weekdaysShort(s,"")),s=ce(this.weekdays(s,"")),i.push(t),r.push(n),a.push(s),o.push(t),o.push(n),o.push(s);i.sort(e),r.sort(e),a.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Xe(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Qe),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+Qe.apply(this)+x(this.minutes(),2)}),R("hmmss",0,0,function(){return""+Qe.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+x(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)}),Xe("a",!0),Xe("A",!1),F("hour","h"),A("hour",13),he("a",Ke),he("A",Ke),he("H",ee),he("h",ee),he("k",ee),he("HH",ee,J),he("hh",ee,J),he("kk",ee,J),he("hmm",te),he("hmmss",ne),he("Hmm",te),he("Hmmss",ne),_e(["H","HH"],Me),_e(["k","kk"],function(e,t,n){e=z(e),t[Me]=24===e?0:e}),_e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_e(["h","hh"],function(e,t,n){t[Me]=z(e),p(n).bigHour=!0}),_e("hmm",function(e,t,n){var s=e.length-2;t[Me]=z(e.substr(0,s)),t[De]=z(e.substr(s)),p(n).bigHour=!0}),_e("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Me]=z(e.substr(0,s)),t[De]=z(e.substr(s,2)),t[ke]=z(e.substr(i)),p(n).bigHour=!0}),_e("Hmm",function(e,t,n){var s=e.length-2;t[Me]=z(e.substr(0,s)),t[De]=z(e.substr(s))}),_e("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Me]=z(e.substr(0,s)),t[De]=z(e.substr(s,2)),t[ke]=z(e.substr(i))}),de=Z("Hours",!0);var et,tt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Te,monthsShort:xe,week:{dow:0,doy:6},weekdays:Ie,weekdaysMin:Ze,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},nt={},st={};function it(e){return e&&e.toLowerCase().replace("_","-")}function rt(e){var t;if(void 0===nt[e]&&"undefined"!=typeof module&&module&&module.exports&&null!=e.match("^[^/\\\\]*$"))try{t=et._abbr,require("./locale/"+e),at(t)}catch(t){nt[e]=null}return nt[e]}function at(e,t){return e&&((t=a(t)?ut(e):ot(e,t))?et=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),et._abbr}function ot(e,t){if(null===t)return delete nt[e],null;var n,s=tt;if(t.abbr=e,null!=nt[e])r("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=nt[e]._config;else if(null!=t.parentLocale)if(null!=nt[t.parentLocale])s=nt[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;s=n._config}return nt[e]=new b(O(s,t)),st[e]&&st[e].forEach(function(e){ot(e.name,e.config)}),at(e),nt[e]}function ut(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return et;if(!o(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r=t&&function(e,t){for(var n=Math.min(e.length,t.length),s=0;s=t-1)break;t--}r++}return et}(e)}function lt(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[pe]<0||11be(t[we],t[pe])?Ye:t[Me]<0||24Ae(r,u,l)?p(s)._overflowWeeks=!0:null!=d?p(s)._overflowWeekday=!0:(h=Ee(r,a,o,u,l),s._a[we]=h.year,s._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(i=Yt(e._a[we],n[we]),(e._dayOfYear>Ce(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),d=Fe(i,0,e._dayOfYear),e._a[pe]=d.getUTCMonth(),e._a[Ye]=d.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=n[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Me]&&0===e._a[De]&&0===e._a[ke]&&0===e._a[ve]&&(e._nextDay=!0,e._a[Me]=0),e._d=(e._useUTC?Fe:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,c),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Me]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function Dt(e){if(e._f===g.ISO_8601)wt(e);else if(e._f===g.RFC_2822)pt(e);else{e._a=[],p(e).empty=!0;for(var t,n,s,i,r,a=""+e._i,o=a.length,u=0,l=C(e._f,e._locale).match(N)||[],d=l.length,h=0;he.valueOf():e.valueOf()"}),B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},B.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},B.eraName=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},B.isLocal=function(){return!!this.isValid()&&!this._isUTC},B.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},B.isUtc=Ct,B.isUTC=Ct,B.zoneAbbr=function(){return this._isUTC?"UTC":""},B.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},B.dates=n("dates accessor is deprecated. Use date instead.",ie),B.months=n("months accessor is deprecated. Use month instead",Re),B.years=n("years accessor is deprecated. Use year instead",Ue),B.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),B.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return M(t,this),(t=kt(t))._a?(e=(t._isUTC?m:St)(t._a),this._isDSTShifted=this.isValid()&&0 +* @version v2.4.18 +* @repository git://github.com/ColorlibHQ/AdminLTE.git +* @license MIT +*/ +if("undefined"==typeof jQuery)throw new Error("AdminLTE requires jQuery");!function(o){"use strict";var i="lte.boxrefresh",a={source:"",params:{},trigger:".refresh-btn",content:".box-body",loadInContent:!0,responseType:"",overlayTemplate:'
',onLoadStart:function(){},onLoadDone:function(e){return e}},e='[data-widget="box-refresh"]',s=function(e,t){if(this.element=e,this.options=t,this.$overlay=o(t.overlayTemplate),""===t.source)throw new Error("Source url was not defined. Please specify a url in your BoxRefresh source option.");this._setUpListeners(),this.load()};function t(r){return this.each(function(){var e=o(this),t=e.data(i);if(!t){var n=o.extend({},a,e.data(),"object"==typeof r&&r);e.data(i,t=new s(e,n))}if("string"==typeof t){if(void 0===t[r])throw new Error("No method named "+r);t[r]()}})}s.prototype.load=function(){this._addOverlay(),this.options.onLoadStart.call(o(this)),o.get(this.options.source,this.options.params,function(e){this.options.loadInContent&&o(this.element).find(this.options.content).html(e),this.options.onLoadDone.call(o(this),e),this._removeOverlay()}.bind(this),""!==this.options.responseType&&this.options.responseType)},s.prototype._setUpListeners=function(){o(this.element).on("click",this.options.trigger,function(e){e&&e.preventDefault(),this.load()}.bind(this))},s.prototype._addOverlay=function(){o(this.element).append(this.$overlay)},s.prototype._removeOverlay=function(){o(this.$overlay).remove()};var n=o.fn.boxRefresh;o.fn.boxRefresh=t,o.fn.boxRefresh.Constructor=s,o.fn.boxRefresh.noConflict=function(){return o.fn.boxRefresh=n,this},o(window).on("load",function(){o(e).each(function(){t.call(o(this))})})}(jQuery),function(o){"use strict";var i="lte.boxwidget",a={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},e=".box",t=".collapsed-box",s=".box-header",l=".box-body",u=".box-footer",c=".box-tools",d="collapsed-box",f="collapsing.boxwidget",p="collapsed.boxwidget",h="expanding.boxwidget",g="expanded.boxwidget",n="removing.boxwidget",r="removed.boxwidget",m=function(e,t){this.element=e,this.options=t,this._setUpListeners()};function v(r){return this.each(function(){var e=o(this),t=e.data(i);if(!t){var n=o.extend({},a,e.data(),"object"==typeof r&&r);e.data(i,t=new m(e,n))}if("string"==typeof r){if(void 0===t[r])throw new Error("No method named "+r);t[r]()}})}m.prototype.toggle=function(){!o(this.element).is(t)?this.collapse():this.expand()},m.prototype.expand=function(){var e=o.Event(g),t=o.Event(h),n=this.options.collapseIcon,r=this.options.expandIcon;o(this.element).removeClass(d),o(this.element).children(s+", "+l+", "+u).children(c).find("."+r).removeClass(r).addClass(n),o(this.element).children(l+", "+u).slideDown(this.options.animationSpeed,function(){o(this.element).trigger(e)}.bind(this)).trigger(t)},m.prototype.collapse=function(){var e=o.Event(p),t=o.Event(f),n=this.options.collapseIcon,r=this.options.expandIcon;o(this.element).children(s+", "+l+", "+u).children(c).find("."+n).removeClass(n).addClass(r),o(this.element).children(l+", "+u).slideUp(this.options.animationSpeed,function(){o(this.element).addClass(d),o(this.element).trigger(e)}.bind(this)).trigger(t)},m.prototype.remove=function(){var e=o.Event(r),t=o.Event(n);o(this.element).slideUp(this.options.animationSpeed,function(){o(this.element).trigger(e),o(this.element).remove()}.bind(this)).trigger(t)},m.prototype._setUpListeners=function(){var t=this;o(this.element).on("click",this.options.collapseTrigger,function(e){return e&&e.preventDefault(),t.toggle(o(this)),!1}),o(this.element).on("click",this.options.removeTrigger,function(e){return e&&e.preventDefault(),t.remove(o(this)),!1})};var y=o.fn.boxWidget;o.fn.boxWidget=v,o.fn.boxWidget.Constructor=m,o.fn.boxWidget.noConflict=function(){return o.fn.boxWidget=y,this},o(window).on("load",function(){o(e).each(function(){v.call(o(this))})})}(jQuery),function(o){"use strict";var i="lte.controlsidebar",a={controlsidebarSlide:!0},t=".control-sidebar",e='[data-toggle="control-sidebar"]',n=".control-sidebar-open",r=".control-sidebar-bg",s=".wrapper",l=".layout-boxed",u="control-sidebar-open",c="control-sidebar-hold-transition",d="collapsed.controlsidebar",f="expanded.controlsidebar",p=function(e,t){this.element=e,this.options=t,this.hasBindedResize=!1,this.init()};function h(r){return this.each(function(){var e=o(this),t=e.data(i);if(!t){var n=o.extend({},a,e.data(),"object"==typeof r&&r);e.data(i,t=new p(e,n))}"string"==typeof r&&t.toggle()})}p.prototype.init=function(){o(this.element).is(e)||o(this).on("click",this.toggle),this.fix(),o(window).resize(function(){this.fix()}.bind(this))},p.prototype.toggle=function(e){e&&e.preventDefault(),this.fix(),o(t).is(n)||o("body").is(n)?this.collapse():this.expand()},p.prototype.expand=function(){o(t).show(),this.options.controlsidebarSlide?o(t).addClass(u):o("body").addClass(c).addClass(u).delay(50).queue(function(){o("body").removeClass(c),o(this).dequeue()}),o(this.element).trigger(o.Event(f))},p.prototype.collapse=function(){this.options.controlsidebarSlide?o(t).removeClass(u):o("body").addClass(c).removeClass(u).delay(50).queue(function(){o("body").removeClass(c),o(this).dequeue()}),o(t).fadeOut(),o(this.element).trigger(o.Event(d))},p.prototype.fix=function(){o("body").is(l)&&this._fixForBoxed(o(r))},p.prototype._fixForBoxed=function(e){e.css({position:"absolute",height:o(s).height()})};var g=o.fn.controlSidebar;o.fn.controlSidebar=h,o.fn.controlSidebar.Constructor=p,o.fn.controlSidebar.noConflict=function(){return o.fn.controlSidebar=g,this},o(document).on("click",e,function(e){e&&e.preventDefault(),h.call(o(this),"toggle")})}(jQuery),function(r){"use strict";var o="lte.directchat",e='[data-widget="chat-pane-toggle"]',t=".direct-chat",n="direct-chat-contacts-open",i=function(e){this.element=e};function a(n){return this.each(function(){var e=r(this),t=e.data(o);t||e.data(o,t=new i(e)),"string"==typeof n&&t.toggle(e)})}i.prototype.toggle=function(e){e.parents(t).first().toggleClass(n)};var s=r.fn.directChat;r.fn.directChat=a,r.fn.directChat.Constructor=i,r.fn.directChat.noConflict=function(){return r.fn.directChat=s,this},r(document).on("click",e,function(e){e&&e.preventDefault(),a.call(r(this),"toggle")})}(jQuery),function(o){"use strict";var i="lte.pushmenu",a={collapseScreenSize:767,expandOnHover:!1,expandTransitionDelay:200},e=".sidebar-collapse",t=".main-sidebar",n=".content-wrapper",r=".sidebar-form .form-control",s='[data-toggle="push-menu"]',l=".sidebar-mini",u=".sidebar-expanded-on-hover",c=".fixed",d="sidebar-collapse",f="sidebar-open",p="sidebar-expanded-on-hover",h="sidebar-mini-expand-feature",g="expanded.pushMenu",m="collapsed.pushMenu",v=function(e){this.options=e,this.init()};function y(r){return this.each(function(){var e=o(this),t=e.data(i);if(!t){var n=o.extend({},a,e.data(),"object"==typeof r&&r);e.data(i,t=new v(n))}"toggle"===r&&t.toggle()})}v.prototype.init=function(){(this.options.expandOnHover||o("body").is(l+c))&&(this.expandOnHover(),o("body").addClass(h)),o(n).click(function(){o(window).width()<=this.options.collapseScreenSize&&o("body").hasClass(f)&&this.close()}.bind(this)),o(r).click(function(e){e.stopPropagation()})},v.prototype.toggle=function(){var e=o(window).width(),t=!o("body").hasClass(d);e<=this.options.collapseScreenSize&&(t=o("body").hasClass(f)),t?this.close():this.open()},v.prototype.open=function(){o(window).width()>this.options.collapseScreenSize?o("body").removeClass(d).trigger(o.Event(g)):o("body").addClass(f).trigger(o.Event(g))},v.prototype.close=function(){o(window).width()>this.options.collapseScreenSize?o("body").addClass(d).trigger(o.Event(m)):o("body").removeClass(f+" "+d).trigger(o.Event(m))},v.prototype.expandOnHover=function(){o(t).hover(function(){o("body").is(l+e)&&o(window).width()>this.options.collapseScreenSize&&this.expand()}.bind(this),function(){o("body").is(u)&&this.collapse()}.bind(this))},v.prototype.expand=function(){setTimeout(function(){o("body").removeClass(d).addClass(p)},this.options.expandTransitionDelay)},v.prototype.collapse=function(){setTimeout(function(){o("body").removeClass(p).addClass(d)},this.options.expandTransitionDelay)};var b=o.fn.pushMenu;o.fn.pushMenu=y,o.fn.pushMenu.Constructor=v,o.fn.pushMenu.noConflict=function(){return o.fn.pushMenu=b,this},o(document).on("click",s,function(e){e.preventDefault(),y.call(o(this),"toggle")}),o(window).on("load",function(){y.call(o(s))})}(jQuery),function(o){"use strict";var i="lte.todolist",a={onCheck:function(e){return e},onUnCheck:function(e){return e}},t={data:'[data-widget="todo-list"]'},n="done",s=function(e,t){this.element=e,this.options=t,this._setUpListeners()};function e(r){return this.each(function(){var e=o(this),t=e.data(i);if(!t){var n=o.extend({},a,e.data(),"object"==typeof r&&r);e.data(i,t=new s(e,n))}if("string"==typeof t){if(void 0===t[r])throw new Error("No method named "+r);t[r]()}})}s.prototype.toggle=function(e){e.parents(t.li).first().toggleClass(n),e.prop("checked")?this.check(e):this.unCheck(e)},s.prototype.check=function(e){this.options.onCheck.call(e)},s.prototype.unCheck=function(e){this.options.onUnCheck.call(e)},s.prototype._setUpListeners=function(){var e=this;o(this.element).on("change ifChanged","input:checkbox",function(){e.toggle(o(this))})};var r=o.fn.todoList;o.fn.todoList=e,o.fn.todoList.Constructor=s,o.fn.todoList.noConflict=function(){return o.fn.todoList=r,this},o(window).on("load",function(){o(t.data).each(function(){e.call(o(this))})})}(jQuery),function(i){"use strict";var r="lte.tree",o={animationSpeed:500,accordion:!0,followLink:!1,trigger:".treeview a"},a=".treeview",s=".treeview-menu",l=".menu-open, .active",e='[data-widget="tree"]',n=".active",u="menu-open",c="tree",d="collapsed.tree",f="expanded.tree",p=function(e,t){this.element=e,this.options=t,i(this.element).addClass(c),i(a+n,this.element).addClass(u),this._setUpListeners()};function t(n){return this.each(function(){var e=i(this);if(!e.data(r)){var t=i.extend({},o,e.data(),"object"==typeof n&&n);e.data(r,new p(e,t))}})}p.prototype.toggle=function(e,t){var n=e.next(s),r=e.parent(),o=r.hasClass(u);r.is(a)&&(this.options.followLink&&"#"!==e.attr("href")||t.preventDefault(),o?this.collapse(n,r):this.expand(n,r))},p.prototype.expand=function(e,t){var n=i.Event(f);if(this.options.accordion){var r=t.siblings(l),o=r.children(s);this.collapse(o,r)}t.addClass(u),e.stop().slideDown(this.options.animationSpeed,function(){i(this.element).trigger(n),t.height("auto")}.bind(this))},p.prototype.collapse=function(e,t){var n=i.Event(d);t.removeClass(u),e.stop().slideUp(this.options.animationSpeed,function(){i(this.element).trigger(n),t.find(a).removeClass(u).find(s).hide()}.bind(this))},p.prototype._setUpListeners=function(){var t=this;i(this.element).on("click",this.options.trigger,function(e){t.toggle(i(this),e)})};var h=i.fn.tree;i.fn.tree=t,i.fn.tree.Constructor=p,i.fn.tree.noConflict=function(){return i.fn.tree=h,this},i(window).on("load",function(){i(e).each(function(){t.call(i(this))})})}(jQuery),function(s){"use strict";var o="lte.layout",i={slimscroll:!0,resetHeight:!0},l=".wrapper",u=".content-wrapper",c=".layout-boxed",d=".main-footer",f=".main-header",e=".main-sidebar",t="slimScrollDiv",p=".sidebar",h=".control-sidebar",n=".sidebar-menu",r=".main-header .logo",g="fixed",a="hold-transition",m=function(e){this.options=e,this.bindedResize=!1,this.activate()};function v(r){return this.each(function(){var e=s(this),t=e.data(o);if(!t){var n=s.extend({},i,e.data(),"object"==typeof r&&r);e.data(o,t=new m(n))}if("string"==typeof r){if(void 0===t[r])throw new Error("No method named "+r);t[r]()}})}m.prototype.activate=function(){this.fix(),this.fixSidebar(),s("body").removeClass(a),this.options.resetHeight&&s("body, html, "+l).css({height:"auto","min-height":"100%"}),this.bindedResize||(s(window).resize(function(){this.fix(),this.fixSidebar(),s(r+", "+p).one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){this.fix(),this.fixSidebar()}.bind(this))}.bind(this)),this.bindedResize=!0),s(n).on("expanded.tree",function(){this.fix(),this.fixSidebar()}.bind(this)),s(n).on("collapsed.tree",function(){this.fix(),this.fixSidebar()}.bind(this))},m.prototype.fix=function(){s(c+" > "+l).css("overflow","hidden");var e=s(d).outerHeight()||0,t=s(f).outerHeight()||0,n=t+e,r=s(window).height(),o=s(p).outerHeight()||0;if(s("body").hasClass(g))s(u).css("min-height",r-e);else{var i;i=o+t<=r?(s(u).css("min-height",r-n),r-n):(s(u).css("min-height",o),o);var a=s(h);void 0!==a&&a.height()>i&&s(u).css("min-height",a.height())}},m.prototype.fixSidebar=function(){s("body").hasClass(g)?this.options.slimscroll&&void 0!==s.fn.slimScroll&&0===s(e).find(t).length&&s(p).slimScroll({height:s(window).height()-s(f).height()+"px"}):void 0!==s.fn.slimScroll&&s(p).slimScroll({destroy:!0}).height("auto")};var y=s.fn.layout;s.fn.layout=v,s.fn.layout.Constuctor=m,s.fn.layout.noConflict=function(){return s.fn.layout=y,this},s(window).on("load",function(){v.call(s("body"))})}(jQuery), +/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) + * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) + * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. + * + * Version: 1.3.8 + * + */ +function(S){S.fn.extend({slimScroll:function(w){var C=S.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},w);return this.each(function(){function e(e){if(a){var t=0;(e=e||window.event).wheelDelta&&(t=-e.wheelDelta/120),e.detail&&(t=e.detail/3),S(e.target||e.srcTarget||e.srcElement).closest("."+C.wrapperClass).is(g.parent())&&r(t,!0),e.preventDefault&&!h&&e.preventDefault(),h||(e.returnValue=!1)}}function r(e,t,n){h=!1;var r=g.outerHeight()-v.outerHeight();t&&(t=parseInt(v.css("top"))+e*parseInt(C.wheelStep)/100*v.outerHeight(),t=Math.min(Math.max(t,0),r),t=0=g.outerHeight()?h=!0:(v.stop(!0,!0).fadeIn("fast"),C.railVisible&&y.stop(!0,!0).fadeIn("fast"))}function i(){C.alwaysVisible||(u=setTimeout(function(){C.disableFadeOut&&a||s||l||(v.fadeOut("slow"),y.fadeOut("slow"))},1e3))}var a,s,l,u,c,d,f,p,h=!1,g=S(this);if(g.parent().hasClass(C.wrapperClass)){var m=g.scrollTop(),v=g.siblings("."+C.barClass),y=g.siblings("."+C.railClass);if(n(),S.isPlainObject(w)){if("height"in w&&"auto"==w.height){g.parent().css("height","auto"),g.css("height","auto");var b=g.parent().parent().height();g.parent().css("height",b),g.css("height",b)}else"height"in w&&(b=w.height,g.parent().css("height",b),g.css("height",b));if("scrollTo"in w)m=parseInt(C.scrollTo);else if("scrollBy"in w)m+=parseInt(C.scrollBy);else if("destroy"in w)return v.remove(),y.remove(),void g.unwrap();r(m,!1,!0)}}else if(!(S.isPlainObject(w)&&"destroy"in w)){C.height="auto"==C.height?g.parent().height():C.height,m=S("
").addClass(C.wrapperClass).css({position:"relative",overflow:"hidden",width:C.width,height:C.height}),g.css({overflow:"hidden",width:C.width,height:C.height});y=S("
").addClass(C.railClass).css({width:C.size,height:"100%",position:"absolute",top:0,display:C.alwaysVisible&&C.railVisible?"block":"none","border-radius":C.railBorderRadius,background:C.railColor,opacity:C.railOpacity,zIndex:90}),v=S("
").addClass(C.barClass).css({background:C.color,width:C.size,position:"absolute",top:0,opacity:C.opacity,display:C.alwaysVisible?"block":"none","border-radius":C.borderRadius,BorderRadius:C.borderRadius,MozBorderRadius:C.borderRadius,WebkitBorderRadius:C.borderRadius,zIndex:99}),b="right"==C.position?{right:C.distance}:{left:C.distance};y.css(b),v.css(b),g.wrap(m),g.parent().append(v),g.parent().append(y),C.railDraggable&&v.bind("mousedown",function(e){var n=S(document);return l=!0,t=parseFloat(v.css("top")),pageY=e.pageY,n.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,v.css("top",currTop),r(0,v.position().top,!1)}),n.bind("mouseup.slimscroll",function(e){l=!1,i(),n.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(e){return e.stopPropagation(),e.preventDefault(),!1}),y.hover(function(){o()},function(){i()}),v.hover(function(){s=!0},function(){s=!1}),g.hover(function(){a=!0,o(),i()},function(){a=!1,i()}),g.bind("touchstart",function(e,t){e.originalEvent.touches.length&&(c=e.originalEvent.touches[0].pageY)}),g.bind("touchmove",function(e){h||e.originalEvent.preventDefault(),e.originalEvent.touches.length&&(r((c-e.originalEvent.touches[0].pageY)/C.touchScrollStep,!0),c=e.originalEvent.touches[0].pageY)}),n(),"bottom"===C.start?(v.css({top:g.outerHeight()-v.outerHeight()}),r(0,!0)):"top"!==C.start&&(r(S(C.start).position().top,null,!0),C.alwaysVisible||v.hide()),window.addEventListener?(this.addEventListener("DOMMouseScroll",e,!1),this.addEventListener("mousewheel",e,!1)):document.attachEvent("onmousewheel",e)}}),this}}),S.fn.extend({slimscroll:S.fn.slimScroll})}(jQuery),function(C,S,x){"use strict";!function i(a,s,l){function u(n,e){if(!s[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var o=s[n]={exports:{}};a[n][0].call(o.exports,function(e){var t=a[n][1][e];return u(t||e)},o,o.exports,i,a,s,l)}return s[n].exports}for(var c="function"==typeof require&&require,e=0;e
\n \n \n \n \n
\n \n \n
\n \n \n\n
\n
\n

Title

\n

Text

\n
\n \n
\n
\n
!
\n

Not valid!

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
',t.exports=n.default},{}],8:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var g=e("./utils"),m=e("./handle-swal-dom"),v=e("./handle-dom"),y=["error","warning","info","success","input","prompt"];n.default=function(o){var i=m.getModal(),e=i.querySelector("h2"),t=i.querySelector("p"),n=i.querySelector("button.cancel"),r=i.querySelector("button.confirm");if(e.innerHTML=o.html?o.title:v.escapeHtml(o.title).split("\n").join("
"),t.innerHTML=o.html?o.text:v.escapeHtml(o.text||"").split("\n").join("
"),o.text&&v.show(t),o.customClass)v.addClass(i,o.customClass),i.setAttribute("data-custom-class",o.customClass);else{var a=i.getAttribute("data-custom-class");v.removeClass(i,a),i.setAttribute("data-custom-class","")}if(v.hide(i.querySelectorAll(".sa-icon")),o.type&&!g.isIE8()){var s=function(){for(var e=!1,t=0;t>2,l[1]=(3&n)<<4|r>>4,isNaN(r)?l[2]=l[3]=64:(o=i[++a],l[2]=(15&r)<<2|o>>6,l[3]=isNaN(o)?64:63&o),t.push(u.alphabet.charAt(l[0]),u.alphabet.charAt(l[1]),u.alphabet.charAt(l[2]),u.alphabet.charAt(l[3]));return t.join("")}for(t="";++a>2,l[1]=(3&n)<<4|r>>4,isNaN(r)?l[2]=l[3]=64:(o=i[++a],l[2]=(15&r)<<2|o>>6,l[3]=isNaN(o)?64:63&o),t+=u.alphabet[l[0]]+u.alphabet[l[1]]+u.alphabet[l[2]]+u.alphabet[l[3]];return t},decode:function(e){if((e=e.replace(/\s/g,"")).length%4)throw new Error("InvalidLengthError: decode failed: The string to be decoded is not the correct length for a base64 encoded string.");if(/[^A-Za-z0-9+\/=\s]/g.test(e))throw new Error("InvalidCharacterError: decode failed: The string contains characters invalid in a base64 encoded string.");var t,n=u.fromUtf8(e),r=0,o=n.length;if(u.ieo){for(t=[];r>6|192,63&t|128):o.push(t>>12|224,t>>6&63|128,63&t|128);return o},fromUtf8:function(e){var t,n=-1,r=[],o=[,,,];if(!u.lookup){for(t=u.alphabet.length,u.lookup={};++n>4),o[2]=u.lookup[e.charAt(++n)],64!==o[2])&&(r.push((15&o[1])<<4|o[2]>>2),o[3]=u.lookup[e.charAt(++n)],64!==o[3]);)r.push((3&o[2])<<6|o[3]);return r}},e={decode:function(e){var t=(e=e.replace(/-/g,"+").replace(/_/g,"/")).length%4;if(t){if(1===t)throw new Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");e+=new Array(5-t).join("=")}return u.decode(e)},encode:function(e){return u.encode(e).replace(/\+/g,"-").replace(/\//g,"_").split("=",1)[0]}},{decode:u.decode,encode:u.encode,urldecode:e.decode,urlencode:e.encode}))}!function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof module&&module.exports?module.exports=t():t()}(0,function(){function e(t){"use strict";var n=t.storageKey(),r=t.storage(),e=function(){var e=t.preferredLanguage();angular.isString(e)?t.use(e):r.put(n,t.use())};e.displayName="fallbackFromIncorrectStorageValue",r?r.get(n)?t.use(r.get(n)).catch(e):e():angular.isString(t.preferredLanguage())&&t.use(t.preferredLanguage())}function t(e,o,t,i){"use strict";var L,c,M,P,N,D,_,n,j,R,z,F,U,q,V,H,W={},X=[],G=e,K=[],Y="translate-cloak",Q=!1,Z=!1,J=!0,ee=".",te=!1,ne=!1,re=0,oe=!0,r="default",a={default:function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return 1");return t.text(e),t.html()},i=function(e){if(!n)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return n(e)},a=function(e){if(!r)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return r.trustAsHtml(e)},s=function(e,n,r){if(angular.isDate(e))return e;if(angular.isObject(e)){var o=angular.isArray(e)?[]:{};if(r){if(-1>>0,n=Number(arguments[1])||0;for((n=n<0?Math.ceil(n):Math.floor(n))<0&&(n+=t);n + * @license MIT License, http://www.opensource.org/licenses/MIT + */,function(e,t){var E=t.isDefined,A=t.isUndefined,O=t.isNumber,I=t.isObject,B=t.isArray,L=t.isString,M=t.extend,P=t.toJson;t.module("LocalStorageModule",[]).provider("localStorageService",function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/",secure:!1},this.defaultToCookie=!0,this.notify={setItem:!0,removeItem:!1},this.setPrefix=function(e){return this.prefix=e,this},this.setStorageType=function(e){return this.storageType=e,this},this.setDefaultToCookie=function(e){return this.defaultToCookie=!!e,this},this.setStorageCookie=function(e,t,n){return this.cookie.expiry=e,this.cookie.path=t,this.cookie.secure=n,this},this.setStorageCookieDomain=function(e){return this.cookie.domain=e,this},this.setNotify=function(e,t){return this.notify={setItem:e,removeItem:t},this},this.$get=["$rootScope","$window","$document","$parse","$timeout",function(l,i,u,a,n){function e(e){if(e||(e=i.event),o.setItem&&L(e.key)&&g(e.key)){var t=r(e.key);n(function(){l.$broadcast("LocalStorageModule.notification.changed",{key:t,newvalue:e.newValue,storageType:c.storageType})})}}var s,c=this,d=c.prefix,f=c.cookie,o=c.notify,p=c.storageType;u?u[0]&&(u=u[0]):u=document,"."!==d.substr(-1)&&(d=d?d+".":"");var h=function(e){return d+e},r=function(e){return e.replace(new RegExp("^"+d,"g"),"")},g=function(e){return 0===e.indexOf(d)},t=function(){try{var e=p in i&&null!==i[p],t=h("__"+Math.round(1e7*Math.random()));return e&&((s=i[p]).setItem(t,""),s.removeItem(t)),e}catch(e){return c.defaultToCookie&&(p="cookie"),l.$broadcast("LocalStorageModule.notification.error",e.message),!1}},m=t(),v=function(t,n,e){var r=k();try{if($(e),n=A(n)?null:P(n),!m&&c.defaultToCookie||"cookie"===c.storageType)return m||l.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),o.setItem&&l.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"}),C(t,n);try{s&&s.setItem(h(t),n),o.setItem&&l.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:c.storageType})}catch(e){return l.$broadcast("LocalStorageModule.notification.error",e.message),C(t,n)}return!0}finally{$(r)}},y=function(e,t){var n=k();try{if($(t),!m&&c.defaultToCookie||"cookie"===c.storageType)return m||l.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),S(e);var r=s?s.getItem(h(e)):null;if(!r||"null"===r)return null;try{return JSON.parse(r)}catch(e){return r}}finally{$(n)}},b=function(){var e=k();try{var t,n,r=0;for(1<=arguments.length&&("localStorage"===arguments[arguments.length-1]||"sessionStorage"===arguments[arguments.length-1])&&(r=1,$(arguments[arguments.length-1])),t=0;twindow.innerHeight&&(l=v,t++,e=0);var u=l?0===e?l:l+b:v,c=n+t*(w+s);i.css(i._positionY,u+"px"),"center"==i._positionX?i.css("left",parseInt(window.innerWidth/2-s/2)+"px"):i.css(i._positionX,c+"px"),r[i._positionY+i._positionX]=u+a,0m.maxCount&&0===o&&i.scope().kill(!0),e++}}},o=c(e)(n);o._positionY=p.positionY,o._positionX=p.positionX,o._priority=p.priority,o.addClass(p.type);var i=function(e){("click"===(e=e.originalEvent||e).type||"opacity"===e.propertyName&&1<=e.elapsedTime)&&(n.onClose&&n.$apply(n.onClose(o)),o.remove(),C.splice(C.indexOf(o),1),n.$destroy(),r())};p.closeOnClick&&(o.addClass("clickable"),o.bind("click",i)),o.bind("webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd",i),angular.isNumber(p.delay)&&u(function(){o.addClass("killed")},p.delay),t("none"),angular.element(document.querySelector(p.container)).append(o);var a=-(parseInt(o[0].offsetHeight)+50);if(o.css(o._positionY,a+"px"),C.push(o),"center"==p.positionX){var s=parseInt(o[0].offsetWidth);o.css("left",parseInt(window.innerWidth/2-s/2)+"px")}u(function(){t("")}),n._templateElement=o,n.kill=function(e){e?(n.onClose&&n.$apply(n.onClose(n._templateElement)),C.splice(C.indexOf(n._templateElement),1),n._templateElement.remove(),n.$destroy(),u(r)):n._templateElement.addClass("killed")},u(r),S||(angular.element(g).bind("resize",function(e){u(r)}),S=!0),l.resolve(n)}var l=a.defer();"object"==typeof p&&null!==p||(p={message:p}),p.scope=p.scope?p.scope:i,p.template=p.templateUrl?p.templateUrl:m.templateUrl,p.delay=angular.isUndefined(p.delay)?s:p.delay,p.type=e||p.type||m.type||"",p.positionY=p.positionY?p.positionY:m.positionY,p.positionX=p.positionX?p.positionX:m.positionX,p.replaceMessage=p.replaceMessage?p.replaceMessage:m.replaceMessage,p.onClose=p.onClose?p.onClose:m.onClose,p.closeOnClick=null!==p.closeOnClick&&void 0!==p.closeOnClick?p.closeOnClick:m.closeOnClick,p.container=p.container?p.container:m.container,p.priority=p.priority?p.priority:m.priority;var n=o.get(p.template);return n?t(n):r.get(p.template,{cache:!0}).then(function(e){t(e.data)}).catch(function(e){throw new Error("Template ("+p.template+") could not be loaded. "+e)}),l.promise};return t.primary=function(e){return this(e,"primary")},t.error=function(e){return this(e,"error")},t.success=function(e){return this(e,"success")},t.info=function(e){return this(e,"info")},t.warning=function(e){return this(e,"warning")},t.clearAll=function(){angular.forEach(C,function(e){e.addClass("killed")})},t}]}),angular.module("ui-notification").run(["$templateCache",function(e){e.put("angular-ui-notification.html",'

')}]),angular.module("angularBittorrentPeerid",[]),angular.module("angularBittorrentPeerid").run(function(){"function"!=typeof String.prototype.endsWith&&(String.prototype.endsWith=function(e){return this.slice(-e.length)===e}),"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(e,t){return t=t||0,this.slice(t,t+e.length)===e})}),angular.module("angularBittorrentPeerid").factory("peeridUtils",function(){function i(e){var t=e.charCodeAt(0);return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)}function a(e){var t=e.toLowerCase().charCodeAt(0);return t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)}function s(e,t){t=t||0;for(var n=""+(255&e);n.length>6|192,63&r|128):t.push(r>>12|224,r>>6&63|128,63&r|128)}return t},isAzStyle:function(e){return"-"===e.charAt(0)&&("-"===e.charAt(7)||!!["FG","LH","NE","KT","SP"].includes(e.substring(1,3)))},isShadowStyle:function(e){if("-"!==e.charAt(5))return!1;if(!a(e.charAt(0)))return!1;if(!i(e.charAt(1))&&"-"!==e.charAt(1))return!1;for(var t,n=4;0')(s),r.append(i)}var t='
'+e.data+"
";o=d(t)(s),angular.element(o.children()[0]).css("position","absolute").css("top",0).css("left",0).css("right",0).css("bottom",0),r.append(o)},function(e){throw new Error("Template specified for cgBusy ("+n.templateUrl+") could not be loaded. "+e)}))},!0)}}}]),angular.module("cgBusy").run(["$templateCache",function(e){"use strict";e.put("angular-busy.html",'
\n\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
{{$message}}
\n\n
\n\n
')}]),angular.module("angularPromiseButtons",[]),angular.module("angularPromiseButtons").directive("promiseBtn",["angularPromiseButtons","$parse","$timeout","$compile",function(m,v,y,b){"use strict";return{restrict:"EA",priority:m.config.priority,scope:{promiseBtn:"=",promiseBtnOptions:"=?",ngDisabled:"=?"},link:function(i,a,n){function r(e){h.btnLoadingClass&&!h.addClassToCurrentBtnOnly&&e.addClass(h.btnLoadingClass),h.disableBtn&&!h.disableCurrentBtnOnly&&e.attr("disabled","disabled")}function o(e){h.minDuration&&!f||!p||(h.btnLoadingClass&&e.removeClass(h.btnLoadingClass),h.disableBtn&&!i.ngDisabled&&e.removeAttr("disabled"))}function s(e,t){i.$watch(e,function(e){p=f=!1,h.minDuration&&(d=y(function(){f=!0,o(t)},h.minDuration)),e&&e.then?(r(t),e.finally?e.finally(function(){p=!0,o(t)}):e.then(function(){p=!0,o(t)}).catch(function(){p=!0,o(t)})):e&&e.$promise&&(r(t),e.$promise.finally(function(){p=!0,o(t)}))})}function e(e){e.append(b(h.spinnerTpl)(i))}function t(e){h.addClassToCurrentBtnOnly&&e.on(h.CLICK_EVENT,function(){e.addClass(h.btnLoadingClass)}),h.disableCurrentBtnOnly&&e.on(h.CLICK_EVENT,function(){e.attr("disabled","disabled")})}function l(e,t,r){var o=n[t].split(";").map(function(e){return v(e)});a.off(e),a.on(e,function(n){i.$apply(function(){o.forEach(function(e){var t=e(i.$parent,{$event:n});c||(c=s(function(){return t},r))})})})}function u(e,t,n){0',priority:10,disableBtn:!0,btnLoadingClass:"is-loading",addClassToCurrentBtnOnly:!1,disableCurrentBtnOnly:!1,minDuration:!1,CLICK_EVENT:"click",CLICK_ATTR:"ngClick",SUBMIT_EVENT:"submit",SUBMIT_ATTR:"ngSubmit",BTN_SELECTOR:"button"};return{extendConfig:function(e){t=angular.extend(t,e)},$get:function(){return{config:t}}}}),function(e,t){"function"==typeof define&&define.amd?define(["angular"],t):"object"==typeof module&&module.exports?module.exports=t(require("angular")):e.angularClipboard=t(e.angular)}(this,function(o){return o.module("angular-clipboard",[]).factory("clipboard",["$document","$window",function(l,u){return{copyText:function(e,t){var n,r,o=u.pageXOffset||l[0].documentElement.scrollLeft,i=u.pageYOffset||l[0].documentElement.scrollTop,a=t&&t.container||l[0].body,s=(n=e,(r=l[0].createElement("textarea")).style.position="absolute",r.style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.left="-10000px",r.style.top=(u.pageYOffset||l[0].documentElement.scrollTop)+"px",r.textContent=n,r);a.appendChild(s),function(e){try{l[0].body.style.webkitUserSelect="initial";var t=l[0].getSelection();t.removeAllRanges();var n=document.createRange();n.selectNodeContents(e),t.addRange(n),e.select(),e.setSelectionRange(0,999999);try{if(!l[0].execCommand("copy"))throw"failure copy"}finally{t.removeAllRanges()}}finally{l[0].body.style.webkitUserSelect=""}}(s),u.scrollTo(o,i),a.removeChild(s)},supported:"queryCommandSupported"in l[0]&&l[0].queryCommandSupported("copy")}}]).directive("clipboard",["clipboard",function(r){return{restrict:"A",scope:{onCopied:"&",onError:"&",text:"=",supported:"=?"},link:function(t,n){t.supported=r.supported,n.on("click",function(e){try{r.copyText(t.text,n[0]),o.isFunction(t.onCopied)&&t.$evalAsync(t.onCopied())}catch(e){o.isFunction(t.onError)&&t.$evalAsync(t.onError({err:e}))}})}}}])}),angular.module("inputDropdown",[]).directive("inputDropdown",[function(){return{restrict:"E",scope:{defaultDropdownItems:"=",selectedItem:"=",allowCustomInput:"=",inputRequired:"=",disabled:"=",inputName:"@",inputClassName:"@",inputPlaceholder:"@",onlyShowNonEmptyDropdown:"@",filterListMethod:"&",valueChangedMethod:"&",itemSelectedMethod:"&"},template:'
  • {{item.readableName}}{{item}}
',controller:["$scope",function(e){this.getSelectedItem=function(){return e.selectedItem},this.isRequired=function(){return e.inputRequired},this.customInputAllowed=function(){return e.allowCustomInput},this.getInput=function(){return e.inputValue}}],link:function(n,e){var t=!1,r=e.find("input").isolateScope();n.activeItemIndex=0,n.inputValue="",n.dropdownVisible=!1,n.dropdownItems=n.defaultDropdownItems||[],n.$watch("dropdownItems",function(e,t){angular.equals(e,t)||(n.allowCustomInput?n.setInputActive():n.setActive(0))}),n.$watch("selectedItem",function(e,t){r.updateInputValidity(),angular.equals(e,t)||e&&(n.inputValue="string"==typeof e?e:e.readableName)}),n.setInputActive=function(){n.setActive(-1)},n.setActive=function(e){n.activeItemIndex=e},n.inputChange=function(){if(n.selectedItem=null,o(),u(n.inputValue,"input"),n.inputValue){if(n.allowCustomInput&&r.updateInputValidity(),n.filterListMethod){var e=n.filterListMethod({userInput:n.inputValue});e&&e.then(function(e){n.dropdownItems=e})}}else n.dropdownItems=n.defaultDropdownItems||[]},n.inputFocus=function(){n.allowCustomInput?n.setInputActive():n.setActive(0),o()},n.inputBlur=function(e){t?t=!1:i()},n.dropdownPressed=function(){t=!0},n.selectItem=function(e){n.selectedItem=e,i(),n.dropdownItems=[e],u(e,"select"),n.itemSelectedMethod&&n.itemSelectedMethod({item:e})};var o=function(){(!n.onlyShowNonEmptyDropdown||n.dropdownItems&&n.dropdownItems.length)&&(n.dropdownVisible=!0)},i=function(){n.dropdownVisible=!1},a=function(){var e=n.activeItemIndex-1;0<=e?n.setActive(e):n.allowCustomInput&&n.setInputActive()},s=function(){var e=n.activeItemIndex+1;et.left+V(t)/2:a>t.top+H(t)/2)?G(e):e):function(){var e,t,n,r=o.children.length;for(e=0;ei)return t;if(!s&&n.top+n.height/2>a)return t}return null}()}1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var x,T,k,$,E,A,O,I,B,L,M,P,N=null,D=t||{};void 0===D.moves&&(D.moves=q),void 0===D.accepts&&(D.accepts=q),void 0===D.invalid&&(D.invalid=function(){return!1}),void 0===D.containers&&(D.containers=e||[]),void 0===D.isContainer&&(D.isContainer=U),void 0===D.copy&&(D.copy=!1),void 0===D.copySortSource&&(D.copySortSource=!1),void 0===D.revertOnSpill&&(D.revertOnSpill=!1),void 0===D.removeOnSpill&&(D.removeOnSpill=!1),void 0===D.direction&&(D.direction="vertical"),void 0===D.ignoreInputTextSelection&&(D.ignoreInputTextSelection=!0),void 0===D.mirrorContainer&&(D.mirrorContainer=J.body);var _=Y({containers:D.containers,start:function(e){var t=u(e);t&&c(t)},end:d,cancel:m,remove:g,destroy:function(){n(!0),p({})},canMove:function(e){return!!u(e)},dragging:!1});return!0===D.removeOnSpill&&_.on("over",function(e){Z.rm(e,"gu-hide")}).on("out",function(e){_.dragging&&Z.add(e,"gu-hide")}),n(),_}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":9,"contra/emitter":5,crossvent:6}],11:[function(e,t,n){var r;r="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},t.exports=r},{}],12:[function(e,t,n){"use strict";var i=e("atoa"),a=["cancel","cloned","drag","dragend","drop","out","over","remove","shadow","drop-model","remove-model"];t.exports=function(t,n,r){function o(e){return t.isElement(e)?t.element(e):e}a.forEach(function(t){n.drake.on(t,function(){var e=i(arguments).map(o);e.unshift(n.name+"."+t),r.$emit.apply(r,e)})})}},{atoa:3}],13:[function(e,t,n){"use strict";var s=e("dragula"),l="$$dragula",u=e("./replicate-events");t.exports=function(f){return[function(){function o(n,a){var s,l,u,c;a.registered||(a.on("remove",function(e,t){a.models&&(c=a.models[a.containers.indexOf(t)],n.$applyAsync(function(){c.splice(l,1),a.emit("remove-model",e,t)}))}),a.on("drag",function(e,t){l=d(s=e,t)}),a.on("drop",function(r,o,i){a.models&&(u=d(r,o),n.$applyAsync(function(){if(c=a.models[a.containers.indexOf(i)],o===i)c.splice(u,0,c.splice(l,1)[0]);else{var e=s===r,t=a.models[a.containers.indexOf(o)],n=e?c[l]:f.copy(c[l]);e&&c.splice(l,1),t.splice(u,0,n),o.removeChild(r)}a.emit("drop-model",r,o,i)}))}),a.registered=!0)}function i(e){var t=e[l];return t||(t=e[l]={bags:[]}),t}function d(e,t){return Array.prototype.indexOf.call(f.element(t).children(),e)}function r(e,t,n){var r=a(e,t);if(r)throw new Error('Bag named: "'+t+'" already exists in same angular scope.');return r={name:t,drake:n},i(e).bags.push(r),u(f,r,e),n.models&&o(e,n),r}function a(e,t){for(var n=i(e).bags,r=0;r /var/log/aria2.log 2>&1 & - nohup /usr/sbin/ccaa_web > /var/log/ccaa_web.log 2>&1 & - nohup filebrowser -c /etc/ccaa/config.json > /var/log/fbrun.log 2>&1 & - sleep 3600d -} - -case $1 in - 'start') - ccaa_start - ;; - 'stop') - kill -9 ${aria2pid} - kill -9 ${ccaa_web_pid} - kill -9 ${filebrowser_pid} - ;; - 'restart') - kill -9 ${aria2pid} - kill -9 ${ccaa_web_pid} - kill -9 ${filebrowser_pid} - ccaa_start - ;; - 'status') - if [ "$aria2pid" == "" ] - then - echo "Not running!" - else - echo '-----------------------------------------------' - echo "Aria2 is running,pid is ${aria2pid}." - echo "AriaNg is running,pid is ${ccaa_web_pid}." - echo "Filebrowser is running,pid is ${filebrowser_pid}." - echo '-----------------------------------------------' - fi - ;; - '-v') - cat /etc/ccaa/version.txt && echo '' - ;; - 'pass') - pass $2 - ;; - *) - echo '参数错误!' - exit - ;; -esac \ No newline at end of file diff --git a/docker-ccaa.sh b/docker-ccaa.sh deleted file mode 100644 index 6fc90aa..0000000 --- a/docker-ccaa.sh +++ /dev/null @@ -1,168 +0,0 @@ -#!/bin/sh -##### 一键安装File Browser + Aria2 + AriaNg ##### -##### 作者:xiaoz.me ##### -##### 更新时间:2020-02-27 ##### - -#导入环境变量 -PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin -export PATH - -#各种路径设置 -aria2_url='https://github.com/q3aql/aria2-static-builds/releases/download/v1.35.0/aria2-1.35.0-linux-gnu-64bit-build1.tar.bz2' -filebrowser_url='https://github.com/filebrowser/filebrowser/releases/download/v2.0.16/linux-amd64-filebrowser.tar.gz' -master_url='https://github.com/helloxz/ccaa/archive/master.zip' -ccaa_web_url='http://soft.xiaoz.org/linux/ccaa_web' - -#安装前的检查 -function check(){ - echo '-------------------------------------------------------------' - if [ -e "/etc/ccaa" ] - then - echo 'CCAA已经安装,若需要重新安装,请先卸载再安装!' - echo '-------------------------------------------------------------' - exit - else - echo '检测通过,即将开始安装。' - echo '-------------------------------------------------------------' - fi -} - -#安装之前的准备 -function setout(){ - #安装需要的软件 - apk add curl wget zip tar make bzip2 unzip - #创建临时目录 - cd - mkdir ./ccaa_tmp - #创建用户和用户组 -} -#安装Aria2 -function install_aria2(){ - #进入临时目录 - cd ./ccaa_tmp - #yum -y update - #安装aria2静态编译版本,来源于https://github.com/q3aql/aria2-static-builds/ - wget -c ${aria2_url} - tar jxvf aria2-1.35.0-linux-gnu-64bit-build1.tar.bz2 - cd aria2-1.35.0-linux-gnu-64bit-build1 - make install - cd -} - -#安装File Browser文件管理器 -function install_file_browser(){ - cd ./ccaa_tmp - #下载File Browser - wget ${filebrowser_url} - #解压 - tar -zxvf linux-amd64-filebrowser.tar.gz - #移动位置 - mv filebrowser /usr/sbin - cd -} -#处理配置文件 -function dealconf(){ - cd ./ccaa_tmp - #下载CCAA项目 - wget ${master_url} - #解压 - unzip master.zip - #复制CCAA核心目录 - mv ccaa-master/ccaa_dir /etc/ccaa - #创建aria2日志文件 - touch /var/log/aria2.log - #upbt增加执行权限 - chmod +x /etc/ccaa/upbt.sh - chmod +x ccaa-master/ccaa - cp ccaa-master/dccaa /usr/sbin - chmod +x /usr/sbin/dccaa - cd -} - -#设置账号密码 -function setting(){ - cd - cd ./ccaa_tmp - echo '-------------------------------------------------------------' - - #获取ip - osip=$(curl -4s https://api.ip.sb/ip) - - #执行替换操作 - downpath='/data/ccaaDown' - mkdir -p ${downpath} - sed -i "s%dir=%dir=${downpath}%g" /etc/ccaa/aria2.conf - sed -ir "s/rpc-secret=.*/rpc-secret=$PASS/g" /etc/ccaa/aria2.conf - #替换filebrowser读取路径 - sed -i "s%ccaaDown%${downpath}%g" /etc/ccaa/config.json - #替换AriaNg服务器链接 - #sed -i "s/server_ip/${osip}/g" /etc/ccaa/AriaNg/index.html - rm -rf /etc/ccaa/AriaNg/index.html - mv /etc/ccaa/AriaNg/dindex.html /etc/ccaa/AriaNg/index.html - #更新tracker - sh /etc/ccaa/upbt.sh - - #安装AriaNg - wget ${ccaa_web_url} - #tar -zxvf ccaa_web.tar.gz - cp ccaa_web /usr/sbin/ - chmod +x /usr/sbin/ccaa_web - - #启动服务 - #nohup aria2c --conf-path=/etc/ccaa/aria2.conf > /var/log/aria2.log 2>&1 & - #nohup caddy -conf="/etc/ccaa/caddy.conf" > /etc/ccaa/caddy.log 2>&1 & - #nohup /usr/sbin/ccaa_web > /var/log/ccaa_web.log 2>&1 & - #运行filebrowser - #nohup filebrowser -c /etc/ccaa/config.json > /var/log/fbrun.log 2>&1 & - - echo '-------------------------------------------------------------' - echo "大功告成,请访问: http://${osip}:6080/" - echo 'File Browser 用户名:ccaa' - echo 'File Browser 密码:admin' - echo 'Aria2 RPC 密钥:' $PASS - echo '帮助文档: https://dwz.ovh/ccaa (必看)' - echo '-------------------------------------------------------------' -} -#清理工作 -function cleanup(){ - cd - rm -rf ccaa_tmp - #rm -rf *.conf - #rm -rf init -} - -#卸载 -function uninstall(){ - wget -O ccaa-uninstall.sh https://raw.githubusercontent.com/helloxz/ccaa/master/uninstall.sh - sh ccaa-uninstall.sh -} - -#选择安装方式 -echo "------------------------------------------------" -echo "Linux + File Browser + Aria2 + AriaNg一键安装脚本(CCAA)" -echo "1) 安装CCAA" -echo "2) 卸载CCAA" -echo "3) 更新bt-tracker" -echo "q) 退出!" -#read -p ":" istype -case $1 in - 'install') - check - setout - install_aria2 && \ - install_file_browser && \ - dealconf && \ - setting && \ - cleanup - ;; - 'uninstall') - uninstall - ;; - 'upbt') - sh /etc/ccaa/upbt.sh - ;; - 'q') - exit - ;; - *) echo '参数错误!' -esac diff --git a/new_ccaa_web b/new_ccaa_web new file mode 100644 index 0000000..b157edf Binary files /dev/null and b/new_ccaa_web differ diff --git a/new_ccaa_web.go b/new_ccaa_web.go new file mode 100644 index 0000000..29bfbcc --- /dev/null +++ b/new_ccaa_web.go @@ -0,0 +1,28 @@ +//Golang实现一个简单的WebServer +package main + +import ( + "flag" + "strconv" + "net/http" +) + +var ( + dir string + host string + port int +) + +func init() { + // 定义命令行参数(参数名,默认值,参数说明) + flag.StringVar(&dir, "d", "/etc/ccaa/AriaNg", "Web directory") + flag.StringVar(&host, "h", "", "Listening host (default listen *)") + flag.IntVar(&port, "p", 6080, "Listening port") +} + +func main() { + // 解析命令行参数 + flag.Parse() + + panic(http.ListenAndServe(host + ":" + strconv.Itoa(port), http.FileServer(http.Dir(dir)))) +} \ No newline at end of file diff --git a/uninstall.sh b/uninstall.sh index 1595a0c..e6c4e07 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -37,10 +37,12 @@ function del_post() { } #停止所有服务 +service aria2 stop +service ccaa_web stop +service filebrowser stop kill -9 $(pgrep 'aria2c') kill -9 $(pgrep 'ccaa_web') kill -9 $(pgrep 'filebrowser') -kill -9 $(pgrep 'caddy') systemctl disable aria2 systemctl disable ccaa_web systemctl disable filebrowser @@ -49,7 +51,6 @@ systemctl disable filebrowser rm -rf /etc/ccaa rm -rf /usr/sbin/ccaa_web rm -rf /usr/sbin/ccaa -rm -rf /usr/sbin/ccaa rm -rf /usr/bin/aria2c rm -rf aria2-1.* rm -rf AriaNg* @@ -79,4 +80,4 @@ echo '卸载完成!' echo "------------------------------------------------" #删除自身 -rm -rf ccaa-uninstall.sh \ No newline at end of file +rm -rf ccaa-uninstall.sh