From fb0d0cab38b44396507f090c2cfe87c13236739a Mon Sep 17 00:00:00 2001 From: liukai <659801@qq.com> Date: Wed, 21 Jun 2017 12:41:03 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E6=8F=92=E4=BB=B6=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0badge=E6=98=BE=E7=A4=BA=E6=AD=A3=E5=9C=A8?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=BB=BB=E5=8A=A1=E6=95=B0=202.=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=99=BE=E5=BA=A6=E4=BA=91=E5=A4=A7=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=EF=BC=88=E9=9C=80=E8=A6=81=E4=BD=BF=E7=94=A8?= =?UTF-8?q?wap=E7=89=88=E7=99=BE=E5=BA=A6=E4=BA=91:[wap=E7=99=BE=E5=BA=A6?= =?UTF-8?q?=E4=BA=91](https://pan.baidu.com/wap/home)=EF=BC=89=203.=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E9=80=9A=E4=BF=A1=E9=80=BB=E8=BE=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 +- README.md | 3 +- build/webpack.prod.conf.js | 18 +-- package.json | 3 +- safari2aria.safariextension/Info.plist | 7 +- safari2aria.safariextension/global.html | 2 +- safari2aria.safariextension/options.html | 2 +- safari2aria.safariextension/popover.html | 2 +- .../static/js/global.0f5ed04e5bb8ca01b993.js | 1 - .../static/js/global.ed886d46523a268a49f6.js | 1 + .../static/js/manifest.js | 2 +- .../static/js/options.576f289ab1f061754dec.js | 1 - .../static/js/options.a05384552c46ff4627d9.js | 1 + .../static/js/popover.2ebf69b15ae9a5309c2c.js | 1 + .../static/js/popover.f52620ba98e63674ef88.js | 1 - .../static/js/startscript.js | 1 + ...44b5.js => vendor.c45c6a5d207bec568155.js} | 10 +- safari2aria.safariextz | Bin 231096 -> 231160 bytes src/js/endscript/index.js | 2 - src/js/startscript/index.js | 37 ++++++ src/pages/global/index.js | 118 +++++------------- src/pages/popover/components/index.vue | 40 ++++-- src/pages/popover/components/taskLine.vue | 7 +- src/pages/popover/config/index.js | 52 +++++++- src/pages/popover/index.js | 3 + src/pages/popover/store/index.js | 40 +++--- 26 files changed, 209 insertions(+), 152 deletions(-) delete mode 100644 safari2aria.safariextension/static/js/global.0f5ed04e5bb8ca01b993.js create mode 100644 safari2aria.safariextension/static/js/global.ed886d46523a268a49f6.js delete mode 100644 safari2aria.safariextension/static/js/options.576f289ab1f061754dec.js create mode 100644 safari2aria.safariextension/static/js/options.a05384552c46ff4627d9.js create mode 100644 safari2aria.safariextension/static/js/popover.2ebf69b15ae9a5309c2c.js delete mode 100644 safari2aria.safariextension/static/js/popover.f52620ba98e63674ef88.js create mode 100644 safari2aria.safariextension/static/js/startscript.js rename safari2aria.safariextension/static/js/{vendor.48f962ed222e6e9444b5.js => vendor.c45c6a5d207bec568155.js} (74%) create mode 100644 src/js/startscript/index.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 2805d6c..78da3b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ +### v2.1: +1. 插件按钮增加badge显示正在进行任务数 +2. 增加百度云大文件支持(需要使用wap版百度云:[wap百度云](https://pan.baidu.com/wap/home)) +3. 组件通信逻辑优化 + ### v2.0: 1. **下载队列列表** 2. **下载状态控制:开始、暂停、删除** 3. **aria2全局速度配置** - ## v1.5: 1. 增加推送,下载成功后推送成功通知 2. aria2支持ws diff --git a/README.md b/README.md index b389f19..3eb02f5 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,13 @@ 1. 拦截指定后缀文件下载 2. 多aria2c服务支持 3. 右键菜单指定aria2c服务 -4. 支持百度云和迅雷离线导出 +4. 支持百度云([wap](https://pan.baidu.com/wap/home))和迅雷离线导出 5. 全局拦截模式 6. 可配置下载成功后是否推送通知提醒 7. **下载队列列表** 8. **下载状态控制:开始、暂停、删除** 9. **aria2全局速度配置** +10. 扩展按钮展示正在下载任务数量 ### 全局捷键: diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index de99ed2..960c1e8 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -30,12 +30,6 @@ var webpackConfig = merge(baseWebpackConfig, { new webpack.DefinePlugin({ 'process.env': env }), - new webpack.optimize.UglifyJsPlugin({ - compress: { - warnings: false - }, - sourceMap: true - }), // extract css into its own file new ExtractTextPlugin({ filename: utils.assetsPath('css/[name].[contenthash].css') @@ -105,6 +99,17 @@ var webpackConfig = merge(baseWebpackConfig, { ] }) +if(!process.env.npm_config_big){ + webpackConfig.plugins.push( + new webpack.optimize.UglifyJsPlugin({ + compress: { + warnings: false + }, + sourceMap: true + }) + ) +} + if(config.build.pages){ config.build.pages.forEach(function (page) { webpackConfig.plugins.push( @@ -126,7 +131,6 @@ if(config.build.pages){ ) }) } - if(config.build.js){ config.build.js.forEach(function (js) { webpackConfig.plugins.push( diff --git a/package.json b/package.json index 62d6b4f..ae6b96c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "private": true, "scripts": { "dev": "node build/dev-server.js", - "build": "node build/build.js" + "build": "node build/build.js", + "build_big": "npm run build --big" }, "dependencies": { "fastclick": "^1.0.6", diff --git a/safari2aria.safariextension/Info.plist b/safari2aria.safariextension/Info.plist index fc09c2d..e7f8104 100644 --- a/safari2aria.safariextension/Info.plist +++ b/safari2aria.safariextension/Info.plist @@ -13,9 +13,9 @@ CFBundleInfoDictionaryVersion 1.0 CFBundleShortVersionString - 2.0 + 2.1 CFBundleVersion - 2.0 + 2.1 Chrome Database Quota @@ -64,6 +64,7 @@ Start static/js/manifest.js + static/js/startscript.js @@ -86,7 +87,7 @@ Update From Gallery Update Manifest URL - https://miniers.github.io/safari2aria/update.plist?t=2.0 + https://miniers.github.io/safari2aria/update.plist?t=2.1 Website https://github.com/miniers/safari2aria diff --git a/safari2aria.safariextension/global.html b/safari2aria.safariextension/global.html index 5d257ba..6f60d59 100644 --- a/safari2aria.safariextension/global.html +++ b/safari2aria.safariextension/global.html @@ -8,5 +8,5 @@
- + diff --git a/safari2aria.safariextension/options.html b/safari2aria.safariextension/options.html index 80ac094..3ce53e6 100644 --- a/safari2aria.safariextension/options.html +++ b/safari2aria.safariextension/options.html @@ -8,5 +8,5 @@
- + diff --git a/safari2aria.safariextension/popover.html b/safari2aria.safariextension/popover.html index 0a41992..9c1b9bc 100644 --- a/safari2aria.safariextension/popover.html +++ b/safari2aria.safariextension/popover.html @@ -8,5 +8,5 @@
- + diff --git a/safari2aria.safariextension/static/js/global.0f5ed04e5bb8ca01b993.js b/safari2aria.safariextension/static/js/global.0f5ed04e5bb8ca01b993.js deleted file mode 100644 index 7485d02..0000000 --- a/safari2aria.safariextension/static/js/global.0f5ed04e5bb8ca01b993.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([3],{156:function(t,e,n){"use strict";function o(t){if(t&&D.enableTypefiles?!E:E){var e=t.substr(t.lastIndexOf(".")+1);e=e.toLowerCase();for(var n=0;n=0){var n=t.userInfo;n&&n.length&&n[0]||(t.target.disabled=!0)}}function g(t){o(t.url)&&(t.preventDefault(),d("getCookie",function(e){c([P[D.defaultRpcIndex],t.url,t.target.url,e.cookie])}))}function w(t){P.forEach(function(e,n){t.contextMenu.appendContextMenuItem(["DownloadWithAria2",n].join("."),["下载至",e.name].join(""))})}Object.defineProperty(e,"__esModule",{value:!0});var y=n(18),b=n.n(y),k=n(36),x=n.n(k),S=n(113),A=n.n(S),C=n(112),I=n.n(C),O=n(35),D={defaultRpcIndex:0},E=void 0,R=void 0,L=void 0,j=[],P=[],T={},M=void 0,W={updateSafari2Aria:function(t){localStorage.setItem("safari2aria",x()(t)),f()},keyPress:function(t){h(t)},getConfig:function(){d("receiveConfig",D)},downloadFromIframe:function(t,e){if(o(t.url)){c([P[D.defaultRpcIndex],t.url,e.target.url,t.cookie])}}},_={success:function(t,e){_.show("success",t,e)},error:function(t,e){_.show("error",t,e)},show:function(t,e,n){e instanceof Array&&(e=e.join("")),n instanceof Array&&(n=n.join("")),d("showMassage",{action:t||"success",text:e,title:n})}};window.s2a={aria2Connects:T,config:D,changeServer:function(t){var e=void 0;I()(P,function(n,o){n.url===t&&(e=o)}),D.defaultRpcIndex=e,p({name:"updateSafari2Aria",message:D}),d("changeRpc",P[D.defaultRpcIndex].name)},openOptions:u,getConfig:function(){window.s2a.aria2Connects=T,window.s2a.config=D}},document.addEventListener("DOMContentLoaded",f),safari.application.addEventListener("message",p,!1),safari.extension.settings.addEventListener("change",l,!1),safari.application.addEventListener("command",m,!1),safari.application.addEventListener("validate",v,!1),safari.application.addEventListener("beforeNavigate",g,!1),safari.application.addEventListener("contextmenu",w,!1)},35:function(t,e,n){"use strict";(function(t){var e=n(36),o=n.n(e),a=n(20),i=n.n(a),s=n(118),r=n.n(s),c=n(140),l=n.n(c);!function(e){var n=void 0!==t&&t.exports,a=function t(e){this.callbacks=r()(null),this.lastId=0;for(var n in t.options)this[n]="object"===(void 0===e?"undefined":i()(e))&&n in e?e[n]:t.options[n]};a.prototype.http=function(t,e){var n=this,a={method:t.method,id:t.id};Array.isArray(t.params)&&t.params.length>0&&(a.params=t.params);var i="http"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path;fetch(i,{method:"POST",body:o()(a),headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(t){return t.json()}).then(function(t){n._onmessage(t)}).catch(e)},a.prototype.send=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof e[e.length-1]?e.pop():null;return this.exec(t,e,n)},a.prototype.exec=function(t,e,n){if("string"!=typeof t)throw new TypeError(t+" is not a string");0!==t.indexOf("system.")&&0!==t.indexOf("aria2.")&&(t="aria2."+t);var a={method:t,"json-rpc":"2.0",id:this.lastId++},i=this.secret?["token:"+this.secret]:[];Array.isArray(e)&&("system.multicall"===t?(Array.isArray(e[0])&&e[0].forEach(function(t){t.params||(t.params=[]),t.params=i.concat(t.params)}),i=e):i=i.concat(e)),i.length>0&&(a.params=i),this.onsend(a);var s=this;return this.socket&&1===this.socket.readyState?this.socket.send(o()(a)):this.http(a,function(t){s.callbacks[a.id](t),delete s.callbacks[a.id]}),l()(function(t){s.callbacks[a.id]=t},n)},a.prototype._onmessage=function(t){if(this.onmessage(t),void 0!==t.id){var e=this.callbacks[t.id];e&&(t.error?e(t.error):e(null,t.result),delete this.callbacks[t.id])}else if(t.method){var n=t.method.split("aria2.")[1];0===n.indexOf("on")&&"function"==typeof this[n]&&a.notifications.indexOf(n)>-1&&this[n].apply(this,t.params)}},a.prototype.open=function(t){var e="ws"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path,n=this.socket=new WebSocket(e),o=this,a=!1;return n.onmessage=function(t){o._onmessage(JSON.parse(t.data))},l()(function(t){n.onopen=function(){a||(t(),a=!0),o.onopen()},n.onclose=function(e){o.onclose(),1006==e.code&&(a||(t(e),a=!0))},n.onerror=function(e){a||(t(e),a=!0)}},t)},a.prototype.close=function(t){var e=this.socket;return l()(function(t){e?(e.addEventListener("close",function(){t()}),e.close()):t()},t)},a.methods=["addUri","addTorrent","addMetalink","remove","forceRemove","pause","pauseAll","forcePause","forcePauseAll","unpause","unpauseAll","tellStatus","getUris","getFiles","getPeers","getServers","tellActive","tellWaiting","tellStopped","changePosition","changeUri","getOption","changeOption","getGlobalOption","changeGlobalOption","getGlobalStat","purgeDownloadResult","removeDownloadResult","getVersion","getSessionInfo","shutdown","forceShutdown","saveSession","system.multicall","system.listMethods","system.listNotifications"],a.notifications=["onDownloadStart","onDownloadPause","onDownloadStop","onDownloadComplete","onDownloadError","onBtDownloadComplete"],a.events=["onopen","onclose","onsend","onmessage"],a.options={secure:!1,host:"localhost",port:6800,secret:"",path:"/jsonrpc"},a.methods.forEach(function(t){var e=t.indexOf(".")>-1?t.split(".")[1]:t;a.prototype[e]=function(){return this.send.apply(this,[t].concat(Array.prototype.slice.call(arguments)))}}),a.notifications.forEach(function(t){a.prototype[t]=function(){}}),a.events.forEach(function(t){a.prototype[t]=function(){}}),n?t.exports=a:e.Aria2=a}(this)}).call(e,n(145)(t))}},[156]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/global.ed886d46523a268a49f6.js b/safari2aria.safariextension/static/js/global.ed886d46523a268a49f6.js new file mode 100644 index 0000000..2dfe330 --- /dev/null +++ b/safari2aria.safariextension/static/js/global.ed886d46523a268a49f6.js @@ -0,0 +1 @@ +webpackJsonp([3],{157:function(e,t,n){"use strict";function o(e){if(e&&E.enableTypefiles?!L:L){var t=e.substr(e.lastIndexOf(".")+1);t=t.toLowerCase();for(var n=0;n=0){var n=e.userInfo;n&&n.length&&n[0]||(e.target.disabled=!0)}}function w(e){o(e.url)&&(e.preventDefault(),h("getCookie",function(t){f([P[E.defaultRpcIndex],e.url,e.target.url,t.cookie])}))}function y(e){P.forEach(function(t,n){e.contextMenu.appendContextMenuItem(["DownloadWithAria2",n].join("."),["下载至",t.name].join(""))})}Object.defineProperty(t,"__esModule",{value:!0});var b=n(18),k=n.n(b),x=n(35),S=n.n(x),A=n(113),C=n.n(A),I=n(56),D=n.n(I),O=n(55),E={defaultRpcIndex:0},L=void 0,R=void 0,j=void 0,T=[],P=[],W={},M=void 0,_={updateSafari2Aria:function(e){localStorage.setItem("safari2aria",S()(e)),p()},keyPress:function(e){m(e)},getConfig:function(){h("receiveConfig",E)},downloadFromIframe:function(e,t){if(o(e.url)){f([P[E.defaultRpcIndex],e.url,t.target.url,e.cookie])}}},B={success:function(e,t){B.show("success",e,t)},error:function(e,t){B.show("error",e,t)},show:function(e,t,n){t instanceof Array&&(t=t.join("")),n instanceof Array&&(n=n.join("")),h("showMassage",{action:e||"success",text:t,title:n})}};window.s2a={aria2Connects:W,config:E,changeServer:function(e){var t=void 0;D()(P,function(n,o){n.url===e&&(t=o)}),E.defaultRpcIndex=t,d({name:"updateSafari2Aria",message:E})},openOptions:u,getConfig:function(){window.s2a.aria2Connects=W,window.s2a.config=E}},document.addEventListener("DOMContentLoaded",p),safari.application.addEventListener("message",d,!1),safari.extension.settings.addEventListener("change",l,!1),safari.application.addEventListener("command",v,!1),safari.application.addEventListener("validate",g,!1),safari.application.addEventListener("beforeNavigate",w,!1),safari.application.addEventListener("contextmenu",y,!1)},55:function(e,t,n){"use strict";(function(e){var t=n(35),o=n.n(t),a=n(20),i=n.n(a),s=n(118),r=n.n(s),c=n(140),f=n.n(c);!function(t){var n=void 0!==e&&e.exports,a=function e(t){this.callbacks=r()(null),this.lastId=0;for(var n in e.options)this[n]="object"===(void 0===t?"undefined":i()(t))&&n in t?t[n]:e.options[n]};a.prototype.http=function(e,t){var n=this,a={method:e.method,id:e.id};Array.isArray(e.params)&&e.params.length>0&&(a.params=e.params);var i="http"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path;fetch(i,{method:"POST",body:o()(a),headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){n._onmessage(e)}).catch(t)},a.prototype.send=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"==typeof t[t.length-1]?t.pop():null;return this.exec(e,t,n)},a.prototype.exec=function(e,t,n){if("string"!=typeof e)throw new TypeError(e+" is not a string");0!==e.indexOf("system.")&&0!==e.indexOf("aria2.")&&(e="aria2."+e);var a={method:e,"json-rpc":"2.0",id:this.lastId++},i=this.secret?["token:"+this.secret]:[];Array.isArray(t)&&("system.multicall"===e?(Array.isArray(t[0])&&t[0].forEach(function(e){e.params||(e.params=[]),e.params=i.concat(e.params)}),i=t):i=i.concat(t)),i.length>0&&(a.params=i),this.onsend(a);var s=this;return this.socket&&1===this.socket.readyState?this.socket.send(o()(a)):this.http(a,function(e){s.callbacks[a.id](e),delete s.callbacks[a.id]}),f()(function(e){s.callbacks[a.id]=e},n)},a.prototype._onmessage=function(e){if(this.onmessage(e),void 0!==e.id){var t=this.callbacks[e.id];t&&(e.error?t(e.error):t(null,e.result),delete this.callbacks[e.id])}else if(e.method){var n=e.method.split("aria2.")[1];0===n.indexOf("on")&&"function"==typeof this[n]&&a.notifications.indexOf(n)>-1&&this[n].apply(this,e.params)}},a.prototype.open=function(e){var t="ws"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path,n=this.socket=new WebSocket(t),o=this,a=!1;return n.onmessage=function(e){o._onmessage(JSON.parse(e.data))},f()(function(e){n.onopen=function(){a||(e(),a=!0),o.onopen()},n.onclose=function(t){o.onclose(),1006==t.code&&(a||(e(t),a=!0))},n.onerror=function(t){a||(e(t),a=!0)}},e)},a.prototype.close=function(e){var t=this.socket;return f()(function(e){t?(t.addEventListener("close",function(){e()}),t.close()):e()},e)},a.methods=["addUri","addTorrent","addMetalink","remove","forceRemove","pause","pauseAll","forcePause","forcePauseAll","unpause","unpauseAll","tellStatus","getUris","getFiles","getPeers","getServers","tellActive","tellWaiting","tellStopped","changePosition","changeUri","getOption","changeOption","getGlobalOption","changeGlobalOption","getGlobalStat","purgeDownloadResult","removeDownloadResult","getVersion","getSessionInfo","shutdown","forceShutdown","saveSession","system.multicall","system.listMethods","system.listNotifications"],a.notifications=["onDownloadStart","onDownloadPause","onDownloadStop","onDownloadComplete","onDownloadError","onBtDownloadComplete"],a.events=["onopen","onclose","onsend","onmessage"],a.options={secure:!1,host:"localhost",port:6800,secret:"",path:"/jsonrpc"},a.methods.forEach(function(e){var t=e.indexOf(".")>-1?e.split(".")[1]:e;a.prototype[t]=function(){return this.send.apply(this,[e].concat(Array.prototype.slice.call(arguments)))}}),a.notifications.forEach(function(e){a.prototype[e]=function(){}}),a.events.forEach(function(e){a.prototype[e]=function(){}}),n?e.exports=a:t.Aria2=a}(this)}).call(t,n(145)(e))}},[157]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/manifest.js b/safari2aria.safariextension/static/js/manifest.js index f0645db..2867be4 100644 --- a/safari2aria.safariextension/static/js/manifest.js +++ b/safari2aria.safariextension/static/js/manifest.js @@ -1 +1 @@ -!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var i,u,f,s=0,l=[];s-1:e.currentValue},on:{__c:function(t){var i=e.currentValue,n=t.target,a=!!n.checked;if(Array.isArray(i)){var r=e._i(i,null);a?r<0&&(e.currentValue=i.concat(null)):r>-1&&(e.currentValue=i.slice(0,r).concat(i.slice(r+1)))}else e.currentValue=a}}})])])},staticRenderFns:[]}},104:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"vux-flexbox-item",style:e.style},[e._t("default")],2)},staticRenderFns:[]}},105:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-check-icon",on:{click:e.updateValue}},[i("icon",{directives:[{name:"show",rawName:"v-show",value:"default"===e.type&&e.value,expression:"type === 'default' && value"}],attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:"plain"===e.type&&e.value,expression:"type === 'plain' && value"}],attrs:{type:"success_circle"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.value,expression:"!value"}],attrs:{type:"circle"}}),e._v(" "),i("span",[e._t("default")],2)],1)},staticRenderFns:[]}},106:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-x-input weui-cell",class:{"weui-cell_warn":e.showWarn}},[i("div",{staticClass:"weui-cell__hd"},[e.hasRestrictedLabel?i("div",{style:e.labelStyles},[e._t("restricted-label")],2):e._e(),e._v(" "),e._t("label",[e.title?i("label",{staticClass:"weui-label",style:{width:e.labelWidth||e.$parent.labelWidth||e.labelWidthComputed,textAlign:e.$parent.labelAlign,marginRight:e.$parent.labelMarginRight},domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),e.inlineDesc?i("inline-desc",[e._v(e._s(e.inlineDesc))]):e._e()])],2),e._v(" "),i("div",{staticClass:"weui-cell__bd weui-cell__primary",class:e.placeholderAlign?"vux-x-input-placeholder-"+e.placeholderAlign:""},[e.type&&"text"!==e.type?e._e():i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"text",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e._v(" "),"number"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"number",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:[e.onBlur,function(t){e.$forceUpdate()}],keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"email"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"email",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"password"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"password",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"tel"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"tel",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e()]),e._v(" "),i("div",{staticClass:"weui-cell__ft"},[i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.equalWith&&e.showClear&&e.currentValue&&!e.readonly&&!e.disabled,expression:"!equalWith && showClear && currentValue && !readonly && !disabled"}],attrs:{type:"clear"},nativeOn:{click:function(t){e.clear(t)}}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.showWarn,expression:"showWarn"}],staticClass:"vux-input-icon",attrs:{type:"warn",title:e.valid?"":e.firstError}}),e._v(" "),!e.novalidate&&e.hasLengthEqual&&e.dirty&&e.equalWith&&!e.valid?i("icon",{staticClass:"vux-input-icon",attrs:{type:"warn"}}):e._e(),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.novalidate&&e.equalWith&&e.equalWith===e.currentValue&&e.valid,expression:"!novalidate && equalWith && equalWith === currentValue && valid"}],attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.novalidate&&"success"===e.iconType,expression:"novalidate && iconType === 'success'"}],staticClass:"vux-input-icon",attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.novalidate&&"error"===e.iconType,expression:"novalidate && iconType === 'error'"}],staticClass:"vux-input-icon",attrs:{type:"warn"}}),e._v(" "),e._t("right")],2)])},staticRenderFns:[]}},107:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"vux-label-desc"},[e._t("default")],2)},staticRenderFns:[]}},108:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{class:[e.className,e.isMsg?"weui-icon_msg":""]})},staticRenderFns:[]}},109:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.title?i("div",{staticClass:"weui-cells__title",style:{color:e.titleColor},domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),i("div",{staticClass:"weui-cells",class:{"vux-no-group-title":!e.title},style:{marginTop:"number"==typeof e.gutter?e.gutter+"px":e.gutter}},[e._t("after-title"),e._v(" "),e._t("default")],2)])},staticRenderFns:[]}},110:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"weui-cell vux-x-textarea"},[i("div",{staticClass:"weui-cell__hd"},[e.hasRestrictedLabel?i("div",{style:e.labelStyles},[e._t("restricted-label")],2):e._e(),e._v(" "),e._t("label",[e.title?i("label",{staticClass:"weui-label",style:{width:e.$parent.labelWidth||e.labelWidth+"em",textAlign:e.$parent.labelAlign,marginRight:e.$parent.labelMarginRight},domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),e.inlineDesc?i("inline-desc",[e._v(e._s(e.inlineDesc))]):e._e()])],2),e._v(" "),i("div",{staticClass:"weui-cell__bd"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"textarea",staticClass:"weui-textarea",style:e.textareaStyle,attrs:{autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,placeholder:e.placeholder,readonly:e.readonly,name:e.name,rows:e.rows,cols:e.cols,maxlength:e.max},domProps:{value:e.currentValue},on:{focus:function(t){e.$emit("on-focus")},blur:function(t){e.$emit("on-blur")},input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showCounter&&e.max,expression:"showCounter && max"}],staticClass:"weui-textarea-counter",on:{click:e.focus}},[i("span",[e._v(e._s(e.count))]),e._v("/"+e._s(e.max)+"\n ")])])])},staticRenderFns:[]}},111:function(e,t,i){i(88);var n=i(0)(i(68),i(102),null,null);e.exports=n.exports},13:function(e,t,i){i(93);var n=i(0)(i(62),i(108),null,null);e.exports=n.exports},147:function(e,t,i){"use strict";var n=i(14),a=i(144),r=i(324),l=i.n(r);n.a.use(a.a),t.a=new a.a({routes:[{path:"/",name:"options",component:l.a}]})},153:function(e,t,i){i(233);var n=i(0)(i(164),i(311),null,null);e.exports=n.exports},157:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(14),a=i(153),r=i.n(a),l=i(147);n.a.config.productionTip=!1,new n.a({router:l.a,render:function(e){return e(r.a)}}).$mount("#app-box")},164:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"app"}},165:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(36),a=i.n(n),r=i(18),l=i.n(r),s=i(111),o=i.n(s),u=i(31),c=i.n(u),d=i(29),p=i.n(d),h=i(32),f=i.n(h),v=i(34),m=i.n(v),_=i(26),x=i.n(_),b=i(28),g=i.n(b),y=i(27),w=i.n(y),k=i(30),C=i.n(k),S=i(33),V=i.n(S),$=i(25),W=i.n($);t.default={components:{XHeader:c.a,Group:p.a,XInput:f.a,XTextarea:m.a,CheckIcon:x.a,Flexbox:g.a,FlexboxItem:w.a,XButton:C.a,XSwitch:V.a,Cell:W.a,Radio:o.a},data:function(){var e=localStorage.getItem("safari2aria");try{e=JSON.parse(e||"{}")}catch(t){e={}}return l()({enableCookie:!0,userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4",catchIframe:!0,enableTypefiles:!0,baidupanAutoRestart:!1,baidupanLimitSpeed:1e3,defaultRpcIndex:0,refreshTime:5,filetypes:"mp4 flv m4v asf mpeg mkv mpg divx div 3gp wmv avi mov vob ogg ogv webm flac m4a mp3 aac wma wav ape exe app pkg zip rar dmg iso 7z jpg png jpeg tiff gif bmp pdf epub pages pptx keynote rtf doc docx",rpcList:[{name:"localhost",push:!1,url:"http://127.0.0.1:6800/jsonrpc"}]},e)},methods:{addRpc:function(){this.rpcList.push({name:"localhost",push:!1,url:"http://127.0.0.1:6800/jsonrpc"})},delRpc:function(e){this.rpcList.splice(e,1)},save:function(){var e=JSON.parse(a()(this.$data));safari.self.tab.dispatchMessage("updateSafari2Aria",e),window.close()}}}},233:function(e,t){},236:function(e,t){},25:function(e,t,i){i(87);var n=i(0)(i(57),i(101),null,null);e.exports=n.exports},26:function(e,t,i){i(90);var n=i(0)(i(58),i(105),null,null);e.exports=n.exports},27:function(e,t,i){var n=i(0)(i(59),i(104),null,null);e.exports=n.exports},28:function(e,t,i){i(85);var n=i(0)(i(60),i(99),null,null);e.exports=n.exports},29:function(e,t,i){i(94);var n=i(0)(i(61),i(109),null,null);e.exports=n.exports},30:function(e,t,i){i(84);var n=i(0)(i(63),i(98),null,null);e.exports=n.exports},31:function(e,t,i){i(86);var n=i(0)(i(64),i(100),null,null);e.exports=n.exports},311:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"app"}},[i("router-view")],1)},staticRenderFns:[]}},314:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("x-header",{attrs:{"left-options":{showBack:!1}}},[e._v("设置")]),e._v(" "),i("group",[i("x-switch",{attrs:{title:"自动拦截"},model:{value:e.enableTypefiles,callback:function(t){e.enableTypefiles=t},expression:"enableTypefiles"}}),e._v(" "),i("x-textarea",{directives:[{name:"show",rawName:"v-show",value:e.enableTypefiles,expression:"enableTypefiles"}],attrs:{title:"文件类型"},model:{value:e.filetypes,callback:function(t){e.filetypes=t},expression:"filetypes"}})],1),e._v(" "),i("group",[i("cell",{attrs:{title:"aria2服务器地址:"}},[i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.addRpc(t)}}},[e._v("增加")])],1),e._v(" "),i("div",{staticClass:"cell rpcList"},[i("flexbox",{staticClass:"header"},[i("flexbox-item",{attrs:{span:.05}},[e._v("\n 默认\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.05}},[e._v("\n 推送\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.25}},[e._v("\n 名称\n ")]),e._v(" "),i("flexbox-item",[e._v("\n 地址\n ")]),e._v(" "),i("div",{staticClass:"action"},[e._v("操作")])],1),e._v(" "),e._l(e.rpcList,function(t,n){return i("flexbox",{key:n},[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:n,value:e.defaultRpcIndex},on:{"update:value":function(t){e.defaultRpcIndex=t}}})],1),e._v(" "),i("flexbox-item",{attrs:{span:.05}},[i("check-icon",{attrs:{value:t.push},on:{"update:value":function(e){t.push=e}}})],1),e._v(" "),i("flexbox-item",{staticClass:"name",attrs:{span:.2}},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.name,callback:function(e){t.name=e},expression:"rpc.name"}})],1),e._v(" "),i("flexbox-item",{staticClass:"url"},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.url,callback:function(e){t.url=e},expression:"rpc.url"}})],1),e._v(" "),e.rpcList.length>1?i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.delRpc(n)}}},[e._v("删除")]):e._e()],1)})],2)],1),e._v(" "),i("group",[i("x-switch",{attrs:{title:"启用cookie"},model:{value:e.enableCookie,callback:function(t){e.enableCookie=t},expression:"enableCookie"}}),e._v(" "),i("x-switch",{attrs:{title:"启用iframe拦截"},model:{value:e.catchIframe,callback:function(t){e.catchIframe=t},expression:"catchIframe"}}),e._v(" "),i("x-textarea",{attrs:{title:"user-agent","show-clear":!1},model:{value:e.userAgent,callback:function(t){e.userAgent=t},expression:"userAgent"}})],1),e._v(" "),i("group",[i("x-input",{attrs:{title:"列表刷新间隔",type:"number","show-clear":!1},model:{value:e.refreshTime,callback:function(t){e.refreshTime=t},expression:"refreshTime"}},[i("span",{slot:"right"},[e._v("秒")])])],1),e._v(" "),i("group",[i("x-button",{nativeOn:{click:function(t){e.save(e.index)}}},[e._v("保存")])],1)],1)},staticRenderFns:[]}},32:function(e,t,i){i(91);var n=i(0)(i(65),i(106),null,null);e.exports=n.exports},324:function(e,t,i){i(236);var n=i(0)(i(165),i(314),null,null);e.exports=n.exports},33:function(e,t,i){i(89);var n=i(0)(i(66),i(103),null,null);e.exports=n.exports},34:function(e,t,i){i(95);var n=i(0)(i(67),i(110),null,null);e.exports=n.exports},57:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6),a=i.n(n),r=i(19),l=i(116);t.default={components:{InlineDesc:a.a},props:i.i(l.a)(),beforeMount:function(){this.hasTitleSlot=!!this.$slots.title},computed:{valueClass:function(){return{"vux-cell-primary":"content"===this.primary||"left"===this.valueAlign,"vux-cell-align-left":"left"===this.valueAlign,"vux-cell-arrow-transition":!!this.arrowDirection,"vux-cell-arrow-up":"up"===this.arrowDirection,"vux-cell-arrow-down":"down"===this.arrowDirection}}},methods:{getLabelStyles:function(){return{width:this.$parent.labelWidth||this.$parent.$parent.labelWidth,textAlign:this.$parent.labelAlign||this.$parent.$parent.labelAlign,marginRight:this.$parent.labelMarginRight||this.$parent.$parent.labelMarginRight}},onClick:function(){!this.disabled&&i.i(r.a)(this.link,this.$router)}},data:function(){return{hasTitleSlot:!1}}}},58:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(13),a=i.n(n);t.default={components:{Icon:a.a},methods:{updateValue:function(){this.$emit("update:value",!this.value)}},props:{value:{type:Boolean,default:!1},type:{type:String,default:"default"}}}},59:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["-moz-box-","-webkit-box-",""];t.default={props:{span:[Number,String],order:[Number,String]},beforeMount:function(){this.bodyWidth=document.documentElement.offsetWidth},methods:{buildWidth:function(e){return"number"==typeof e?e<1?e:e/12:"string"==typeof e?e.replace("px","")/this.bodyWidth:void 0}},computed:{style:function(){var e={};if(e["horizontal"===this.$parent.orient?"marginLeft":"marginTop"]=this.$parent.gutter+"px",this.span)for(var t=0;t=2&&e.length<=6},msg:"中文姓名"}};t.default={created:function(){var e=this;this.currentValue=this.value||"",this.title||this.placeholder||this.currentValue||console.warn("no title and no placeholder?"),this.required&&!this.currentValue&&(this.valid=!1),this.handleChangeEvent=!0,this.debounce&&(this._debounce=i.i(f.a)(function(){e.$emit("on-change",e.currentValue)},this.debounce))},mounted:function(){this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0)},beforeDestroy:function(){this._debounce&&this._debounce.cancel()},mixins:[r.a],components:{Icon:s.a,InlineDesc:u.a},props:{title:{type:String,default:""},type:{type:String,default:"text"},placeholder:String,value:[String,Number],name:String,readonly:Boolean,disabled:Boolean,keyboard:String,inlineDesc:String,isType:[String,Function],min:Number,max:Number,showClear:{type:Boolean,default:!0},equalWith:String,textAlign:String,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},novalidate:{type:Boolean,default:!1},iconType:String,debounce:Number,placeholderAlign:String,labelWidth:String},computed:{labelStyles:function(){return{width:this.labelWidthComputed||this.$parent.labelWidth||this.labelWidthComputed,textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},pattern:function(){if("number"===this.keyboard||"china-mobile"===this.isType)return"[0-9]*"},labelWidthComputed:function(){var e=this.title.replace(/[^x00-xff]/g,"00").length/2+1;if(e<10)return e+"em"},hasErrors:function(){return a()(this.errors).length>0},inputStyle:function(){if(this.textAlign)return{textAlign:this.textAlign}},showWarn:function(){return!this.novalidate&&!this.equalWith&&!this.valid&&this.firstError&&(this.touched||this.forceShowError)}},methods:{reset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dirty=!1,this.currentValue=e,this.firstError="",this.valid=!0},clear:function(){this.currentValue="",this.focus()},focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},focusHandler:function(){this.$emit("on-focus",this.currentValue)},onBlur:function(){this.setTouched(),this.validate(),this.$emit("on-blur",this.currentValue)},onKeyUp:function(e){"Enter"===e.key&&(e.target.blur(),this.$emit("on-enter",this.currentValue))},getError:function(){var e=a()(this.errors)[0];this.firstError=this.errors[e]},validate:function(){if(void 0!==this.equalWith)return void this.validateEqual();if(this.errors={},!this.currentValue&&!this.required)return void(this.valid=!0);if(!this.currentValue&&this.required)return this.valid=!1,this.errors.required="必填哦",void this.getError();if("string"==typeof this.isType){var e=v[this.isType];if(e){if(this.valid=e.fn(this.currentValue),!this.valid)return void(this.errors.format=e.msg+"格式不对哦~");delete this.errors.format}}if("function"==typeof this.isType){var t=this.isType(this.currentValue);if(this.valid=t.valid,!this.valid)return this.errors.format=t.msg,this.forceShowError=!0,void(this.firstError||this.getError());delete this.errors.format}if(this.min){if(this.currentValue.lengththis.max)return this.errors.max="最多可以输入"+this.max+"个字符哦",this.valid=!1,void(this.forceShowError=!0);this.forceShowError=!1,delete this.errors.max}this.valid=!0},validateEqual:function(){return!this.equalWith&&this.currentValue?(this.valid=!1,void(this.errors.equal="输入不一致")):(this.dirty||this.currentValue.length>=this.equalWith.length)&&this.currentValue!==this.equalWith?(this.valid=!1,void(this.errors.equal="输入不一致")):void(!this.currentValue&&this.required?this.valid=!1:(this.valid=!0,delete this.errors.equal))}},data:function(){return{hasRestrictedLabel:!1,firstError:"",forceShowError:!1,hasLengthEqual:!1,valid:!0,currentValue:""}},watch:{valid:function(){this.getError()},value:function(e){this.currentValue=e},equalWith:function(e){e&&this.equalWith?(e.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate()},currentValue:function(e){!this.equalWith&&e&&this.validateEqual(),e&&this.equalWith?(e.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate(),this.$emit("input",e),this._debounce?this._debounce():this.$emit("on-change",e)}}}},66:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6),a=i.n(n);t.default={components:{InlineDesc:a.a},computed:{labelStyle:function(){var e=/<\/?[^>]*>/.test(this.title);return{display:"block",width:Math.min(e?5:this.title.length+1,14)+"em"}}},props:{title:{type:String,required:!0},disabled:Boolean,value:{type:Boolean,default:!1},inlineDesc:[String,Boolean,Number]},data:function(){return{currentValue:this.value}},watch:{currentValue:function(e){this.$emit("input",e),this.$emit("on-change",e)},value:function(e){this.currentValue=e}}}},67:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(37),a=i(6),r=i.n(a),l=i(114),s=i.n(l);t.default={minxins:[n.a],mounted:function(){var e=this;this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0),this.$nextTick(function(){e.autosize&&e.bindAutosize()})},components:{InlineDesc:r.a},props:{title:String,inlineDesc:String,showCounter:{type:Boolean,default:!0},max:Number,value:String,name:String,placeholder:String,readonly:Boolean,rows:{type:Number,default:3},cols:{type:Number,default:30},height:Number,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},autosize:Boolean},created:function(){this.currentValue=this.value},watch:{autosize:function(e){this.unbindAutosize(),e&&this.bindAutosize()},value:function(e){this.currentValue=e},currentValue:function(e){this.max&&e&&e.length>this.max&&(this.currentValue=e.slice(0,this.max)),this.$emit("input",this.currentValue),this.$emit("on-change",this.currentValue)}},data:function(){return{hasRestrictedLabel:!1,currentValue:""}},computed:{count:function(){var e=0;return this.currentValue&&(e=this.currentValue.replace(/\n/g,"aa").length),e>this.max?this.max:e},textareaStyle:function(){if(this.height)return{height:this.height+"px"}},labelStyles:function(){return{width:this.$parent.labelWidth||this.labelWidth+"em",textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},labelWidth:function(){return this.title.replace(/[^x00-xff]/g,"00").length/2+1}},methods:{bindAutosize:function(){s()(this.$refs.textarea)},unbindAutosize:function(){s.a.destroy(this.$refs.textarea)},focus:function(){this.$refs.textarea.focus()}},beforeDestroy:function(){this.unbindAutosize()}}},68:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(13),a=i.n(n);t.default={components:{Icon:a.a},methods:{updateValue:function(){this.$emit("update:value",this.val)}},props:{value:[String,Number],val:[String,Number],type:{type:String,default:"default"}}}},84:function(e,t){},85:function(e,t){},86:function(e,t){},87:function(e,t){},88:function(e,t){},89:function(e,t){},90:function(e,t){},91:function(e,t){},92:function(e,t){},93:function(e,t){},94:function(e,t){},95:function(e,t){},98:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",{staticClass:"weui-btn",class:e.classes,attrs:{disabled:e.disabled,type:e.actionType},on:{click:e.onClick}},[e.showLoading?i("i",{staticClass:"weui-loading"}):e._e(),e._v(" "),e._t("default",[e._v(e._s(e.text))])],2)},staticRenderFns:[]}},99:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"vux-flexbox",class:{"vux-flex-col":"vertical"===e.orient,"vux-flex-row":"horizontal"===e.orient},style:e.styles},[e._t("default")],2)},staticRenderFns:[]}}},[157]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/options.a05384552c46ff4627d9.js b/safari2aria.safariextension/static/js/options.a05384552c46ff4627d9.js new file mode 100644 index 0000000..4f7d43c --- /dev/null +++ b/safari2aria.safariextension/static/js/options.a05384552c46ff4627d9.js @@ -0,0 +1 @@ +webpackJsonp([2],{100:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"vux-flexbox",class:{"vux-flex-col":"vertical"===e.orient,"vux-flex-row":"horizontal"===e.orient},style:e.styles},[e._t("default")],2)},staticRenderFns:[]}},101:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-header"},[i("div",{staticClass:"vux-header-left"},[e._t("overwrite-left",[i("transition",{attrs:{name:e.transition}},[i("a",{directives:[{name:"show",rawName:"v-show",value:e._leftOptions.showBack,expression:"_leftOptions.showBack"}],staticClass:"vux-header-back",on:{click:[function(t){if(!("button"in t)&&e._k(t.keyCode,"preventDefault"))return null},e.onClickBack]}},[e._v(e._s(void 0===e._leftOptions.backText?"返回":e._leftOptions.backText))])]),e._v(" "),i("transition",{attrs:{name:e.transition}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e._leftOptions.showBack,expression:"_leftOptions.showBack"}],staticClass:"left-arrow",on:{click:e.onClickBack}})])]),e._v(" "),e._t("left")],2),e._v(" "),i("h1",{staticClass:"vux-header-title",on:{click:function(t){e.$emit("on-click-title")}}},[e._t("default",[i("transition",{attrs:{name:e.transition}},[i("span",{directives:[{name:"show",rawName:"v-show",value:e.title,expression:"title"}]},[e._v(e._s(e.title))])])])],2),e._v(" "),i("div",{staticClass:"vux-header-right"},[e.rightOptions.showMore?i("a",{staticClass:"vux-header-more",on:{click:[function(t){if(!("button"in t)&&e._k(t.keyCode,"preventDefault"))return null},function(t){e.$emit("on-click-more")}]}}):e._e(),e._v(" "),e._t("right")],2)])},staticRenderFns:[]}},102:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"weui-cell",class:{"vux-tap-active":e.isLink||!!e.link,"weui-cell_access":e.isLink||!!e.link,"vux-cell-no-border-intent":!e.borderIntent,"vux-cell-disabled":e.disabled},on:{click:e.onClick}},[i("div",{staticClass:"weui-cell__hd"},[e._t("icon")],2),e._v(" "),i("div",{staticClass:"vux-cell-bd",class:{"vux-cell-primary":"title"===e.primary&&"left"!==e.valueAlign}},[i("p",[e.title||e.hasTitleSlot?i("label",{staticClass:"vux-label",style:e.getLabelStyles()},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e._v(" "),e._t("after-title")],2),e._v(" "),i("inline-desc",[e._t("inline-desc",[e._v(e._s(e.inlineDesc))])],2)],1),e._v(" "),i("div",{staticClass:"weui-cell__ft",class:e.valueClass},[e._t("value"),e._v(" "),e._t("default",[e._v(e._s(e.value))]),e._v(" "),e.isLoading?i("i",{staticClass:"weui-loading"}):e._e()],2),e._v(" "),e._t("child")],2)},staticRenderFns:[]}},103:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-check-icon",on:{click:e.updateValue}},[i("icon",{directives:[{name:"show",rawName:"v-show",value:"default"===e.type&&e.value===e.val,expression:"type === 'default' && value === val"}],attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:"plain"===e.type&&e.value===e.val,expression:"type === 'plain' && value === val"}],attrs:{type:"success_circle"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.value!==e.val,expression:"value !== val"}],attrs:{type:"circle"}}),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"radio",attrs:{type:"radio"},domProps:{value:e.val,checked:e._q(e.value,e.val)},on:{__c:function(t){e.value=e.val}}}),e._v(" "),i("span",[e._t("default")],2)],1)},staticRenderFns:[]}},104:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-x-switch weui-cell weui-cell_switch"},[i("div",{staticClass:"weui-cell__bd"},[i("label",{staticClass:"weui-label",style:e.labelStyle,domProps:{innerHTML:e._s(e.title)}}),e._v(" "),e.inlineDesc?i("inline-desc",[e._v(e._s(e.inlineDesc))]):e._e()],1),e._v(" "),i("div",{staticClass:"weui-cell__ft"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"weui-switch",attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:Array.isArray(e.currentValue)?e._i(e.currentValue,null)>-1:e.currentValue},on:{__c:function(t){var i=e.currentValue,n=t.target,a=!!n.checked;if(Array.isArray(i)){var r=e._i(i,null);a?r<0&&(e.currentValue=i.concat(null)):r>-1&&(e.currentValue=i.slice(0,r).concat(i.slice(r+1)))}else e.currentValue=a}}})])])},staticRenderFns:[]}},105:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"vux-flexbox-item",style:e.style},[e._t("default")],2)},staticRenderFns:[]}},106:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-check-icon",on:{click:e.updateValue}},[i("icon",{directives:[{name:"show",rawName:"v-show",value:"default"===e.type&&e.value,expression:"type === 'default' && value"}],attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:"plain"===e.type&&e.value,expression:"type === 'plain' && value"}],attrs:{type:"success_circle"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.value,expression:"!value"}],attrs:{type:"circle"}}),e._v(" "),i("span",[e._t("default")],2)],1)},staticRenderFns:[]}},107:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-x-input weui-cell",class:{"weui-cell_warn":e.showWarn}},[i("div",{staticClass:"weui-cell__hd"},[e.hasRestrictedLabel?i("div",{style:e.labelStyles},[e._t("restricted-label")],2):e._e(),e._v(" "),e._t("label",[e.title?i("label",{staticClass:"weui-label",style:{width:e.labelWidth||e.$parent.labelWidth||e.labelWidthComputed,textAlign:e.$parent.labelAlign,marginRight:e.$parent.labelMarginRight},domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),e.inlineDesc?i("inline-desc",[e._v(e._s(e.inlineDesc))]):e._e()])],2),e._v(" "),i("div",{staticClass:"weui-cell__bd weui-cell__primary",class:e.placeholderAlign?"vux-x-input-placeholder-"+e.placeholderAlign:""},[e.type&&"text"!==e.type?e._e():i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"text",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e._v(" "),"number"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"number",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:[e.onBlur,function(t){e.$forceUpdate()}],keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"email"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"email",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"password"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"password",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"tel"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"tel",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e()]),e._v(" "),i("div",{staticClass:"weui-cell__ft"},[i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.equalWith&&e.showClear&&e.currentValue&&!e.readonly&&!e.disabled,expression:"!equalWith && showClear && currentValue && !readonly && !disabled"}],attrs:{type:"clear"},nativeOn:{click:function(t){e.clear(t)}}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.showWarn,expression:"showWarn"}],staticClass:"vux-input-icon",attrs:{type:"warn",title:e.valid?"":e.firstError}}),e._v(" "),!e.novalidate&&e.hasLengthEqual&&e.dirty&&e.equalWith&&!e.valid?i("icon",{staticClass:"vux-input-icon",attrs:{type:"warn"}}):e._e(),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.novalidate&&e.equalWith&&e.equalWith===e.currentValue&&e.valid,expression:"!novalidate && equalWith && equalWith === currentValue && valid"}],attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.novalidate&&"success"===e.iconType,expression:"novalidate && iconType === 'success'"}],staticClass:"vux-input-icon",attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.novalidate&&"error"===e.iconType,expression:"novalidate && iconType === 'error'"}],staticClass:"vux-input-icon",attrs:{type:"warn"}}),e._v(" "),e._t("right")],2)])},staticRenderFns:[]}},108:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"vux-label-desc"},[e._t("default")],2)},staticRenderFns:[]}},109:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{class:[e.className,e.isMsg?"weui-icon_msg":""]})},staticRenderFns:[]}},110:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.title?i("div",{staticClass:"weui-cells__title",style:{color:e.titleColor},domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),i("div",{staticClass:"weui-cells",class:{"vux-no-group-title":!e.title},style:{marginTop:"number"==typeof e.gutter?e.gutter+"px":e.gutter}},[e._t("after-title"),e._v(" "),e._t("default")],2)])},staticRenderFns:[]}},111:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"weui-cell vux-x-textarea"},[i("div",{staticClass:"weui-cell__hd"},[e.hasRestrictedLabel?i("div",{style:e.labelStyles},[e._t("restricted-label")],2):e._e(),e._v(" "),e._t("label",[e.title?i("label",{staticClass:"weui-label",style:{width:e.$parent.labelWidth||e.labelWidth+"em",textAlign:e.$parent.labelAlign,marginRight:e.$parent.labelMarginRight},domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),e.inlineDesc?i("inline-desc",[e._v(e._s(e.inlineDesc))]):e._e()])],2),e._v(" "),i("div",{staticClass:"weui-cell__bd"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"textarea",staticClass:"weui-textarea",style:e.textareaStyle,attrs:{autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,placeholder:e.placeholder,readonly:e.readonly,name:e.name,rows:e.rows,cols:e.cols,maxlength:e.max},domProps:{value:e.currentValue},on:{focus:function(t){e.$emit("on-focus")},blur:function(t){e.$emit("on-blur")},input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showCounter&&e.max,expression:"showCounter && max"}],staticClass:"weui-textarea-counter",on:{click:e.focus}},[i("span",[e._v(e._s(e.count))]),e._v("/"+e._s(e.max)+"\n ")])])])},staticRenderFns:[]}},112:function(e,t,i){i(89);var n=i(0)(i(69),i(103),null,null);e.exports=n.exports},13:function(e,t,i){i(94);var n=i(0)(i(63),i(109),null,null);e.exports=n.exports},147:function(e,t,i){"use strict";var n=i(14),a=i(144),r=i(325),l=i.n(r);n.a.use(a.a),t.a=new a.a({routes:[{path:"/",name:"options",component:l.a}]})},153:function(e,t,i){i(234);var n=i(0)(i(165),i(312),null,null);e.exports=n.exports},158:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(14),a=i(153),r=i.n(a),l=i(147);n.a.config.productionTip=!1,new n.a({router:l.a,render:function(e){return e(r.a)}}).$mount("#app-box")},165:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"app"}},166:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(35),a=i.n(n),r=i(18),l=i.n(r),s=i(112),o=i.n(s),u=i(31),c=i.n(u),d=i(29),p=i.n(d),h=i(32),f=i.n(h),v=i(34),m=i.n(v),_=i(26),x=i.n(_),b=i(28),g=i.n(b),y=i(27),w=i.n(y),k=i(30),C=i.n(k),S=i(33),V=i.n(S),$=i(25),W=i.n($);t.default={components:{XHeader:c.a,Group:p.a,XInput:f.a,XTextarea:m.a,CheckIcon:x.a,Flexbox:g.a,FlexboxItem:w.a,XButton:C.a,XSwitch:V.a,Cell:W.a,Radio:o.a},data:function(){var e=localStorage.getItem("safari2aria");try{e=JSON.parse(e||"{}")}catch(t){e={}}return l()({enableCookie:!0,userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4",catchIframe:!0,enableTypefiles:!0,baidupanAutoRestart:!1,baidupanLimitSpeed:1e3,defaultRpcIndex:0,refreshTime:5,filetypes:"mp4 flv m4v asf mpeg mkv mpg divx div 3gp wmv avi mov vob ogg ogv webm flac m4a mp3 aac wma wav ape exe app pkg zip rar dmg iso 7z jpg png jpeg tiff gif bmp pdf epub pages pptx keynote rtf doc docx",rpcList:[{name:"localhost",push:!1,url:"http://127.0.0.1:6800/jsonrpc"}]},e)},methods:{addRpc:function(){this.rpcList.push({name:"localhost",push:!1,url:"http://127.0.0.1:6800/jsonrpc"})},delRpc:function(e){this.rpcList.splice(e,1)},save:function(){var e=JSON.parse(a()(this.$data));safari.self.tab.dispatchMessage("updateSafari2Aria",e),window.close()}}}},234:function(e,t){},237:function(e,t){},25:function(e,t,i){i(88);var n=i(0)(i(58),i(102),null,null);e.exports=n.exports},26:function(e,t,i){i(91);var n=i(0)(i(59),i(106),null,null);e.exports=n.exports},27:function(e,t,i){var n=i(0)(i(60),i(105),null,null);e.exports=n.exports},28:function(e,t,i){i(86);var n=i(0)(i(61),i(100),null,null);e.exports=n.exports},29:function(e,t,i){i(95);var n=i(0)(i(62),i(110),null,null);e.exports=n.exports},30:function(e,t,i){i(85);var n=i(0)(i(64),i(99),null,null);e.exports=n.exports},31:function(e,t,i){i(87);var n=i(0)(i(65),i(101),null,null);e.exports=n.exports},312:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"app"}},[i("router-view")],1)},staticRenderFns:[]}},315:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("x-header",{attrs:{"left-options":{showBack:!1}}},[e._v("设置")]),e._v(" "),i("group",[i("x-switch",{attrs:{title:"自动拦截"},model:{value:e.enableTypefiles,callback:function(t){e.enableTypefiles=t},expression:"enableTypefiles"}}),e._v(" "),i("x-textarea",{directives:[{name:"show",rawName:"v-show",value:e.enableTypefiles,expression:"enableTypefiles"}],attrs:{title:"文件类型"},model:{value:e.filetypes,callback:function(t){e.filetypes=t},expression:"filetypes"}})],1),e._v(" "),i("group",[i("cell",{attrs:{title:"aria2服务器地址:"}},[i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.addRpc(t)}}},[e._v("增加")])],1),e._v(" "),i("div",{staticClass:"cell rpcList"},[i("flexbox",{staticClass:"header"},[i("flexbox-item",{attrs:{span:.05}},[e._v("\n 默认\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.05}},[e._v("\n 推送\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.25}},[e._v("\n 名称\n ")]),e._v(" "),i("flexbox-item",[e._v("\n 地址\n ")]),e._v(" "),i("div",{staticClass:"action"},[e._v("操作")])],1),e._v(" "),e._l(e.rpcList,function(t,n){return i("flexbox",{key:n},[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:n,value:e.defaultRpcIndex},on:{"update:value":function(t){e.defaultRpcIndex=t}}})],1),e._v(" "),i("flexbox-item",{attrs:{span:.05}},[i("check-icon",{attrs:{value:t.push},on:{"update:value":function(e){t.push=e}}})],1),e._v(" "),i("flexbox-item",{staticClass:"name",attrs:{span:.2}},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.name,callback:function(e){t.name=e},expression:"rpc.name"}})],1),e._v(" "),i("flexbox-item",{staticClass:"url"},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.url,callback:function(e){t.url=e},expression:"rpc.url"}})],1),e._v(" "),e.rpcList.length>1?i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.delRpc(n)}}},[e._v("删除")]):e._e()],1)})],2)],1),e._v(" "),i("group",[i("x-switch",{attrs:{title:"启用cookie"},model:{value:e.enableCookie,callback:function(t){e.enableCookie=t},expression:"enableCookie"}}),e._v(" "),i("x-switch",{attrs:{title:"启用iframe拦截"},model:{value:e.catchIframe,callback:function(t){e.catchIframe=t},expression:"catchIframe"}}),e._v(" "),i("x-textarea",{attrs:{title:"user-agent","show-clear":!1},model:{value:e.userAgent,callback:function(t){e.userAgent=t},expression:"userAgent"}})],1),e._v(" "),i("group",[i("x-input",{attrs:{title:"列表刷新间隔",type:"number","show-clear":!1},model:{value:e.refreshTime,callback:function(t){e.refreshTime=t},expression:"refreshTime"}},[i("span",{slot:"right"},[e._v("秒")])])],1),e._v(" "),i("group",[i("x-button",{nativeOn:{click:function(t){e.save(e.index)}}},[e._v("保存")])],1)],1)},staticRenderFns:[]}},32:function(e,t,i){i(92);var n=i(0)(i(66),i(107),null,null);e.exports=n.exports},325:function(e,t,i){i(237);var n=i(0)(i(166),i(315),null,null);e.exports=n.exports},33:function(e,t,i){i(90);var n=i(0)(i(67),i(104),null,null);e.exports=n.exports},34:function(e,t,i){i(96);var n=i(0)(i(68),i(111),null,null);e.exports=n.exports},58:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6),a=i.n(n),r=i(19),l=i(116);t.default={components:{InlineDesc:a.a},props:i.i(l.a)(),beforeMount:function(){this.hasTitleSlot=!!this.$slots.title},computed:{valueClass:function(){return{"vux-cell-primary":"content"===this.primary||"left"===this.valueAlign,"vux-cell-align-left":"left"===this.valueAlign,"vux-cell-arrow-transition":!!this.arrowDirection,"vux-cell-arrow-up":"up"===this.arrowDirection,"vux-cell-arrow-down":"down"===this.arrowDirection}}},methods:{getLabelStyles:function(){return{width:this.$parent.labelWidth||this.$parent.$parent.labelWidth,textAlign:this.$parent.labelAlign||this.$parent.$parent.labelAlign,marginRight:this.$parent.labelMarginRight||this.$parent.$parent.labelMarginRight}},onClick:function(){!this.disabled&&i.i(r.a)(this.link,this.$router)}},data:function(){return{hasTitleSlot:!1}}}},59:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(13),a=i.n(n);t.default={components:{Icon:a.a},methods:{updateValue:function(){this.$emit("update:value",!this.value)}},props:{value:{type:Boolean,default:!1},type:{type:String,default:"default"}}}},6:function(e,t,i){i(93);var n=i(0)(null,i(108),null,null);e.exports=n.exports},60:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["-moz-box-","-webkit-box-",""];t.default={props:{span:[Number,String],order:[Number,String]},beforeMount:function(){this.bodyWidth=document.documentElement.offsetWidth},methods:{buildWidth:function(e){return"number"==typeof e?e<1?e:e/12:"string"==typeof e?e.replace("px","")/this.bodyWidth:void 0}},computed:{style:function(){var e={};if(e["horizontal"===this.$parent.orient?"marginLeft":"marginTop"]=this.$parent.gutter+"px",this.span)for(var t=0;t=2&&e.length<=6},msg:"中文姓名"}};t.default={created:function(){var e=this;this.currentValue=this.value||"",this.title||this.placeholder||this.currentValue||console.warn("no title and no placeholder?"),this.required&&!this.currentValue&&(this.valid=!1),this.handleChangeEvent=!0,this.debounce&&(this._debounce=i.i(f.a)(function(){e.$emit("on-change",e.currentValue)},this.debounce))},mounted:function(){this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0)},beforeDestroy:function(){this._debounce&&this._debounce.cancel()},mixins:[r.a],components:{Icon:s.a,InlineDesc:u.a},props:{title:{type:String,default:""},type:{type:String,default:"text"},placeholder:String,value:[String,Number],name:String,readonly:Boolean,disabled:Boolean,keyboard:String,inlineDesc:String,isType:[String,Function],min:Number,max:Number,showClear:{type:Boolean,default:!0},equalWith:String,textAlign:String,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},novalidate:{type:Boolean,default:!1},iconType:String,debounce:Number,placeholderAlign:String,labelWidth:String},computed:{labelStyles:function(){return{width:this.labelWidthComputed||this.$parent.labelWidth||this.labelWidthComputed,textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},pattern:function(){if("number"===this.keyboard||"china-mobile"===this.isType)return"[0-9]*"},labelWidthComputed:function(){var e=this.title.replace(/[^x00-xff]/g,"00").length/2+1;if(e<10)return e+"em"},hasErrors:function(){return a()(this.errors).length>0},inputStyle:function(){if(this.textAlign)return{textAlign:this.textAlign}},showWarn:function(){return!this.novalidate&&!this.equalWith&&!this.valid&&this.firstError&&(this.touched||this.forceShowError)}},methods:{reset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dirty=!1,this.currentValue=e,this.firstError="",this.valid=!0},clear:function(){this.currentValue="",this.focus()},focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},focusHandler:function(){this.$emit("on-focus",this.currentValue)},onBlur:function(){this.setTouched(),this.validate(),this.$emit("on-blur",this.currentValue)},onKeyUp:function(e){"Enter"===e.key&&(e.target.blur(),this.$emit("on-enter",this.currentValue))},getError:function(){var e=a()(this.errors)[0];this.firstError=this.errors[e]},validate:function(){if(void 0!==this.equalWith)return void this.validateEqual();if(this.errors={},!this.currentValue&&!this.required)return void(this.valid=!0);if(!this.currentValue&&this.required)return this.valid=!1,this.errors.required="必填哦",void this.getError();if("string"==typeof this.isType){var e=v[this.isType];if(e){if(this.valid=e.fn(this.currentValue),!this.valid)return void(this.errors.format=e.msg+"格式不对哦~");delete this.errors.format}}if("function"==typeof this.isType){var t=this.isType(this.currentValue);if(this.valid=t.valid,!this.valid)return this.errors.format=t.msg,this.forceShowError=!0,void(this.firstError||this.getError());delete this.errors.format}if(this.min){if(this.currentValue.lengththis.max)return this.errors.max="最多可以输入"+this.max+"个字符哦",this.valid=!1,void(this.forceShowError=!0);this.forceShowError=!1,delete this.errors.max}this.valid=!0},validateEqual:function(){return!this.equalWith&&this.currentValue?(this.valid=!1,void(this.errors.equal="输入不一致")):(this.dirty||this.currentValue.length>=this.equalWith.length)&&this.currentValue!==this.equalWith?(this.valid=!1,void(this.errors.equal="输入不一致")):void(!this.currentValue&&this.required?this.valid=!1:(this.valid=!0,delete this.errors.equal))}},data:function(){return{hasRestrictedLabel:!1,firstError:"",forceShowError:!1,hasLengthEqual:!1,valid:!0,currentValue:""}},watch:{valid:function(){this.getError()},value:function(e){this.currentValue=e},equalWith:function(e){e&&this.equalWith?(e.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate()},currentValue:function(e){!this.equalWith&&e&&this.validateEqual(),e&&this.equalWith?(e.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate(),this.$emit("input",e),this._debounce?this._debounce():this.$emit("on-change",e)}}}},67:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6),a=i.n(n);t.default={components:{InlineDesc:a.a},computed:{labelStyle:function(){var e=/<\/?[^>]*>/.test(this.title);return{display:"block",width:Math.min(e?5:this.title.length+1,14)+"em"}}},props:{title:{type:String,required:!0},disabled:Boolean,value:{type:Boolean,default:!1},inlineDesc:[String,Boolean,Number]},data:function(){return{currentValue:this.value}},watch:{currentValue:function(e){this.$emit("input",e),this.$emit("on-change",e)},value:function(e){this.currentValue=e}}}},68:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(36),a=i(6),r=i.n(a),l=i(114),s=i.n(l);t.default={minxins:[n.a],mounted:function(){var e=this;this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0),this.$nextTick(function(){e.autosize&&e.bindAutosize()})},components:{InlineDesc:r.a},props:{title:String,inlineDesc:String,showCounter:{type:Boolean,default:!0},max:Number,value:String,name:String,placeholder:String,readonly:Boolean,rows:{type:Number,default:3},cols:{type:Number,default:30},height:Number,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},autosize:Boolean},created:function(){this.currentValue=this.value},watch:{autosize:function(e){this.unbindAutosize(),e&&this.bindAutosize()},value:function(e){this.currentValue=e},currentValue:function(e){this.max&&e&&e.length>this.max&&(this.currentValue=e.slice(0,this.max)),this.$emit("input",this.currentValue),this.$emit("on-change",this.currentValue)}},data:function(){return{hasRestrictedLabel:!1,currentValue:""}},computed:{count:function(){var e=0;return this.currentValue&&(e=this.currentValue.replace(/\n/g,"aa").length),e>this.max?this.max:e},textareaStyle:function(){if(this.height)return{height:this.height+"px"}},labelStyles:function(){return{width:this.$parent.labelWidth||this.labelWidth+"em",textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},labelWidth:function(){return this.title.replace(/[^x00-xff]/g,"00").length/2+1}},methods:{bindAutosize:function(){s()(this.$refs.textarea)},unbindAutosize:function(){s.a.destroy(this.$refs.textarea)},focus:function(){this.$refs.textarea.focus()}},beforeDestroy:function(){this.unbindAutosize()}}},69:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(13),a=i.n(n);t.default={components:{Icon:a.a},methods:{updateValue:function(){this.$emit("update:value",this.val)}},props:{value:[String,Number],val:[String,Number],type:{type:String,default:"default"}}}},85:function(e,t){},86:function(e,t){},87:function(e,t){},88:function(e,t){},89:function(e,t){},90:function(e,t){},91:function(e,t){},92:function(e,t){},93:function(e,t){},94:function(e,t){},95:function(e,t){},96:function(e,t){},99:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",{staticClass:"weui-btn",class:e.classes,attrs:{disabled:e.disabled,type:e.actionType},on:{click:e.onClick}},[e.showLoading?i("i",{staticClass:"weui-loading"}):e._e(),e._v(" "),e._t("default",[e._v(e._s(e.text))])],2)},staticRenderFns:[]}}},[158]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/popover.2ebf69b15ae9a5309c2c.js b/safari2aria.safariextension/static/js/popover.2ebf69b15ae9a5309c2c.js new file mode 100644 index 0000000..d519b40 --- /dev/null +++ b/safari2aria.safariextension/static/js/popover.2ebf69b15ae9a5309c2c.js @@ -0,0 +1 @@ +webpackJsonp([1],[,,,,,,function(t,e,n){n(93);var i=n(0)(null,n(108),null,null);t.exports=i.exports},,,,,,,function(t,e,n){n(94);var i=n(0)(n(63),n(109),null,null);t.exports=i.exports},,,,,,,,,,,,function(t,e,n){n(88);var i=n(0)(n(58),n(102),null,null);t.exports=i.exports},function(t,e,n){n(91);var i=n(0)(n(59),n(106),null,null);t.exports=i.exports},function(t,e,n){var i=n(0)(n(60),n(105),null,null);t.exports=i.exports},function(t,e,n){n(86);var i=n(0)(n(61),n(100),null,null);t.exports=i.exports},function(t,e,n){n(95);var i=n(0)(n(62),n(110),null,null);t.exports=i.exports},function(t,e,n){n(85);var i=n(0)(n(64),n(99),null,null);t.exports=i.exports},function(t,e,n){n(87);var i=n(0)(n(65),n(101),null,null);t.exports=i.exports},function(t,e,n){n(92);var i=n(0)(n(66),n(107),null,null);t.exports=i.exports},function(t,e,n){n(90);var i=n(0)(n(67),n(104),null,null);t.exports=i.exports},function(t,e,n){n(96);var i=n(0)(n(68),n(111),null,null);t.exports=i.exports},,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";(function(t){var e=n(35),i=n.n(e),a=n(20),s=n.n(a),o=n(118),r=n.n(o),l=n(140),u=n.n(l);!function(e){var n=void 0!==t&&t.exports,a=function t(e){this.callbacks=r()(null),this.lastId=0;for(var n in t.options)this[n]="object"===(void 0===e?"undefined":s()(e))&&n in e?e[n]:t.options[n]};a.prototype.http=function(t,e){var n=this,a={method:t.method,id:t.id};Array.isArray(t.params)&&t.params.length>0&&(a.params=t.params);var s="http"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path;fetch(s,{method:"POST",body:i()(a),headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(t){return t.json()}).then(function(t){n._onmessage(t)}).catch(e)},a.prototype.send=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof e[e.length-1]?e.pop():null;return this.exec(t,e,n)},a.prototype.exec=function(t,e,n){if("string"!=typeof t)throw new TypeError(t+" is not a string");0!==t.indexOf("system.")&&0!==t.indexOf("aria2.")&&(t="aria2."+t);var a={method:t,"json-rpc":"2.0",id:this.lastId++},s=this.secret?["token:"+this.secret]:[];Array.isArray(e)&&("system.multicall"===t?(Array.isArray(e[0])&&e[0].forEach(function(t){t.params||(t.params=[]),t.params=s.concat(t.params)}),s=e):s=s.concat(e)),s.length>0&&(a.params=s),this.onsend(a);var o=this;return this.socket&&1===this.socket.readyState?this.socket.send(i()(a)):this.http(a,function(t){o.callbacks[a.id](t),delete o.callbacks[a.id]}),u()(function(t){o.callbacks[a.id]=t},n)},a.prototype._onmessage=function(t){if(this.onmessage(t),void 0!==t.id){var e=this.callbacks[t.id];e&&(t.error?e(t.error):e(null,t.result),delete this.callbacks[t.id])}else if(t.method){var n=t.method.split("aria2.")[1];0===n.indexOf("on")&&"function"==typeof this[n]&&a.notifications.indexOf(n)>-1&&this[n].apply(this,t.params)}},a.prototype.open=function(t){var e="ws"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path,n=this.socket=new WebSocket(e),i=this,a=!1;return n.onmessage=function(t){i._onmessage(JSON.parse(t.data))},u()(function(t){n.onopen=function(){a||(t(),a=!0),i.onopen()},n.onclose=function(e){i.onclose(),1006==e.code&&(a||(t(e),a=!0))},n.onerror=function(e){a||(t(e),a=!0)}},t)},a.prototype.close=function(t){var e=this.socket;return u()(function(t){e?(e.addEventListener("close",function(){t()}),e.close()):t()},t)},a.methods=["addUri","addTorrent","addMetalink","remove","forceRemove","pause","pauseAll","forcePause","forcePauseAll","unpause","unpauseAll","tellStatus","getUris","getFiles","getPeers","getServers","tellActive","tellWaiting","tellStopped","changePosition","changeUri","getOption","changeOption","getGlobalOption","changeGlobalOption","getGlobalStat","purgeDownloadResult","removeDownloadResult","getVersion","getSessionInfo","shutdown","forceShutdown","saveSession","system.multicall","system.listMethods","system.listNotifications"],a.notifications=["onDownloadStart","onDownloadPause","onDownloadStop","onDownloadComplete","onDownloadError","onBtDownloadComplete"],a.events=["onopen","onclose","onsend","onmessage"],a.options={secure:!1,host:"localhost",port:6800,secret:"",path:"/jsonrpc"},a.methods.forEach(function(t){var e=t.indexOf(".")>-1?t.split(".")[1]:t;a.prototype[e]=function(){return this.send.apply(this,[t].concat(Array.prototype.slice.call(arguments)))}}),a.notifications.forEach(function(t){a.prototype[t]=function(){}}),a.events.forEach(function(t){a.prototype[t]=function(){}}),n?t.exports=a:e.Aria2=a}(this)}).call(e,n(145)(t))},,function(t,e,n){"use strict";function i(t){var e="";return e=t.bittorrent?t.bittorrent.info.name:t.files[0].path.replace(/^.*[\\\/]/,""),e||(e=t.files[0].uris[0].uri),e||"..."}function a(t,e){t=Number(t);var n=["Bytes","KB","MB","GB","TB"];if(0===t)return"0 KB";var i=parseInt(Math.floor(Math.log(t)/Math.log(1e3)),10);if(0===i)return t+" "+n[i];var a=[1,1,10,100,100][i];return u()(e)&&(a=Math.pow(10,e)),Math.floor(100*t/Math.pow(1024,i)*a)/(100*a)+" "+n[i]}function s(t,e){function n(t,e){return(new Array(e+1).join("0")+t).slice(-e)}var i=/((?:[^ydhms']+)|(?:'(?:[^']|'')*')|(?:y+|d+|h+|m+|s+))(.*)/,a={y:{value:31536e6},yy:{value:"y",pad:2},d:{value:864e5},dd:{value:"d",pad:2},h:{value:36e5},hh:{value:"h",pad:2},m:{value:6e4},mm:{value:"m",pad:2},s:{value:1e3},ss:{value:"s",pad:2},sss:{value:1},ssss:{value:"sss",pad:4}},s=parseFloat(t,10),o=function(t){for(var e=[],n=t?t.toString():"";n;){var a=i.exec(n);a?(e=e.concat(a.slice(1)),n=e.pop()):(e.push(n),n=null)}return e}(e);return isNaN(s)||0===o.length?t:function(t,e){var i="",s={};e.filter(function(t){return a.hasOwnProperty(t)}).map(function(t){var e=a[t];return e.hasOwnProperty("pad")?e.value:t}).filter(function(t,e,n){return n.indexOf(t)===e}).map(function(t){return r()({name:t},a[t])}).sort(function(t,e){return e.value-t.value}).forEach(function(e){var n=s[e.name]=Math.floor(t/e.value);t-=n*e.value});for(var o=0;o=2&&t.length<=6},msg:"中文姓名"}};e.default={created:function(){var t=this;this.currentValue=this.value||"",this.title||this.placeholder||this.currentValue||console.warn("no title and no placeholder?"),this.required&&!this.currentValue&&(this.valid=!1),this.handleChangeEvent=!0,this.debounce&&(this._debounce=n.i(f.a)(function(){t.$emit("on-change",t.currentValue)},this.debounce))},mounted:function(){this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0)},beforeDestroy:function(){this._debounce&&this._debounce.cancel()},mixins:[s.a],components:{Icon:r.a,InlineDesc:u.a},props:{title:{type:String,default:""},type:{type:String,default:"text"},placeholder:String,value:[String,Number],name:String,readonly:Boolean,disabled:Boolean,keyboard:String,inlineDesc:String,isType:[String,Function],min:Number,max:Number,showClear:{type:Boolean,default:!0},equalWith:String,textAlign:String,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},novalidate:{type:Boolean,default:!1},iconType:String,debounce:Number,placeholderAlign:String,labelWidth:String},computed:{labelStyles:function(){return{width:this.labelWidthComputed||this.$parent.labelWidth||this.labelWidthComputed,textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},pattern:function(){if("number"===this.keyboard||"china-mobile"===this.isType)return"[0-9]*"},labelWidthComputed:function(){var t=this.title.replace(/[^x00-xff]/g,"00").length/2+1;if(t<10)return t+"em"},hasErrors:function(){return a()(this.errors).length>0},inputStyle:function(){if(this.textAlign)return{textAlign:this.textAlign}},showWarn:function(){return!this.novalidate&&!this.equalWith&&!this.valid&&this.firstError&&(this.touched||this.forceShowError)}},methods:{reset:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dirty=!1,this.currentValue=t,this.firstError="",this.valid=!0},clear:function(){this.currentValue="",this.focus()},focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},focusHandler:function(){this.$emit("on-focus",this.currentValue)},onBlur:function(){this.setTouched(),this.validate(),this.$emit("on-blur",this.currentValue)},onKeyUp:function(t){"Enter"===t.key&&(t.target.blur(),this.$emit("on-enter",this.currentValue))},getError:function(){var t=a()(this.errors)[0];this.firstError=this.errors[t]},validate:function(){if(void 0!==this.equalWith)return void this.validateEqual();if(this.errors={},!this.currentValue&&!this.required)return void(this.valid=!0);if(!this.currentValue&&this.required)return this.valid=!1,this.errors.required="必填哦",void this.getError();if("string"==typeof this.isType){var t=v[this.isType];if(t){if(this.valid=t.fn(this.currentValue),!this.valid)return void(this.errors.format=t.msg+"格式不对哦~");delete this.errors.format}}if("function"==typeof this.isType){var e=this.isType(this.currentValue);if(this.valid=e.valid,!this.valid)return this.errors.format=e.msg,this.forceShowError=!0,void(this.firstError||this.getError());delete this.errors.format}if(this.min){if(this.currentValue.lengththis.max)return this.errors.max="最多可以输入"+this.max+"个字符哦",this.valid=!1,void(this.forceShowError=!0);this.forceShowError=!1,delete this.errors.max}this.valid=!0},validateEqual:function(){return!this.equalWith&&this.currentValue?(this.valid=!1,void(this.errors.equal="输入不一致")):(this.dirty||this.currentValue.length>=this.equalWith.length)&&this.currentValue!==this.equalWith?(this.valid=!1,void(this.errors.equal="输入不一致")):void(!this.currentValue&&this.required?this.valid=!1:(this.valid=!0,delete this.errors.equal))}},data:function(){return{hasRestrictedLabel:!1,firstError:"",forceShowError:!1,hasLengthEqual:!1,valid:!0,currentValue:""}},watch:{valid:function(){this.getError()},value:function(t){this.currentValue=t},equalWith:function(t){t&&this.equalWith?(t.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate()},currentValue:function(t){!this.equalWith&&t&&this.validateEqual(),t&&this.equalWith?(t.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate(),this.$emit("input",t),this._debounce?this._debounce():this.$emit("on-change",t)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),a=n.n(i);e.default={components:{InlineDesc:a.a},computed:{labelStyle:function(){var t=/<\/?[^>]*>/.test(this.title);return{display:"block",width:Math.min(t?5:this.title.length+1,14)+"em"}}},props:{title:{type:String,required:!0},disabled:Boolean,value:{type:Boolean,default:!1},inlineDesc:[String,Boolean,Number]},data:function(){return{currentValue:this.value}},watch:{currentValue:function(t){this.$emit("input",t),this.$emit("on-change",t)},value:function(t){this.currentValue=t}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(36),a=n(6),s=n.n(a),o=n(114),r=n.n(o);e.default={minxins:[i.a],mounted:function(){var t=this;this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0),this.$nextTick(function(){t.autosize&&t.bindAutosize()})},components:{InlineDesc:s.a},props:{title:String,inlineDesc:String,showCounter:{type:Boolean,default:!0},max:Number,value:String,name:String,placeholder:String,readonly:Boolean,rows:{type:Number,default:3},cols:{type:Number,default:30},height:Number,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},autosize:Boolean},created:function(){this.currentValue=this.value},watch:{autosize:function(t){this.unbindAutosize(),t&&this.bindAutosize()},value:function(t){this.currentValue=t},currentValue:function(t){this.max&&t&&t.length>this.max&&(this.currentValue=t.slice(0,this.max)),this.$emit("input",this.currentValue),this.$emit("on-change",this.currentValue)}},data:function(){return{hasRestrictedLabel:!1,currentValue:""}},computed:{count:function(){var t=0;return this.currentValue&&(t=this.currentValue.replace(/\n/g,"aa").length),t>this.max?this.max:t},textareaStyle:function(){if(this.height)return{height:this.height+"px"}},labelStyles:function(){return{width:this.$parent.labelWidth||this.labelWidth+"em",textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},labelWidth:function(){return this.title.replace(/[^x00-xff]/g,"00").length/2+1}},methods:{bindAutosize:function(){r()(this.$refs.textarea)},unbindAutosize:function(){r.a.destroy(this.$refs.textarea)},focus:function(){this.$refs.textarea.focus()}},beforeDestroy:function(){this.unbindAutosize()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),a=n.n(i);e.default={components:{Icon:a.a},methods:{updateValue:function(){this.$emit("update:value",this.val)}},props:{value:[String,Number],val:[String,Number],type:{type:String,default:"default"}}}},,,,,,,,,,,,,,,,function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},,,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"weui-btn",class:t.classes,attrs:{disabled:t.disabled,type:t.actionType},on:{click:t.onClick}},[t.showLoading?n("i",{staticClass:"weui-loading"}):t._e(),t._v(" "),t._t("default",[t._v(t._s(t.text))])],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"vux-flexbox",class:{"vux-flex-col":"vertical"===t.orient,"vux-flex-row":"horizontal"===t.orient},style:t.styles},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-header"},[n("div",{staticClass:"vux-header-left"},[t._t("overwrite-left",[n("transition",{attrs:{name:t.transition}},[n("a",{directives:[{name:"show",rawName:"v-show",value:t._leftOptions.showBack,expression:"_leftOptions.showBack"}],staticClass:"vux-header-back",on:{click:[function(e){if(!("button"in e)&&t._k(e.keyCode,"preventDefault"))return null},t.onClickBack]}},[t._v(t._s(void 0===t._leftOptions.backText?"返回":t._leftOptions.backText))])]),t._v(" "),n("transition",{attrs:{name:t.transition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t._leftOptions.showBack,expression:"_leftOptions.showBack"}],staticClass:"left-arrow",on:{click:t.onClickBack}})])]),t._v(" "),t._t("left")],2),t._v(" "),n("h1",{staticClass:"vux-header-title",on:{click:function(e){t.$emit("on-click-title")}}},[t._t("default",[n("transition",{attrs:{name:t.transition}},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.title,expression:"title"}]},[t._v(t._s(t.title))])])])],2),t._v(" "),n("div",{staticClass:"vux-header-right"},[t.rightOptions.showMore?n("a",{staticClass:"vux-header-more",on:{click:[function(e){if(!("button"in e)&&t._k(e.keyCode,"preventDefault"))return null},function(e){t.$emit("on-click-more")}]}}):t._e(),t._v(" "),t._t("right")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"weui-cell",class:{"vux-tap-active":t.isLink||!!t.link,"weui-cell_access":t.isLink||!!t.link,"vux-cell-no-border-intent":!t.borderIntent,"vux-cell-disabled":t.disabled},on:{click:t.onClick}},[n("div",{staticClass:"weui-cell__hd"},[t._t("icon")],2),t._v(" "),n("div",{staticClass:"vux-cell-bd",class:{"vux-cell-primary":"title"===t.primary&&"left"!==t.valueAlign}},[n("p",[t.title||t.hasTitleSlot?n("label",{staticClass:"vux-label",style:t.getLabelStyles()},[t._t("title",[t._v(t._s(t.title))])],2):t._e(),t._v(" "),t._t("after-title")],2),t._v(" "),n("inline-desc",[t._t("inline-desc",[t._v(t._s(t.inlineDesc))])],2)],1),t._v(" "),n("div",{staticClass:"weui-cell__ft",class:t.valueClass},[t._t("value"),t._v(" "),t._t("default",[t._v(t._s(t.value))]),t._v(" "),t.isLoading?n("i",{staticClass:"weui-loading"}):t._e()],2),t._v(" "),t._t("child")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-check-icon",on:{click:t.updateValue}},[n("icon",{directives:[{name:"show",rawName:"v-show",value:"default"===t.type&&t.value===t.val,expression:"type === 'default' && value === val"}],attrs:{type:"success"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:"plain"===t.type&&t.value===t.val,expression:"type === 'plain' && value === val"}],attrs:{type:"success_circle"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:t.value!==t.val,expression:"value !== val"}],attrs:{type:"circle"}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"radio",attrs:{type:"radio"},domProps:{value:t.val,checked:t._q(t.value,t.val)},on:{__c:function(e){t.value=t.val}}}),t._v(" "),n("span",[t._t("default")],2)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-x-switch weui-cell weui-cell_switch"},[n("div",{staticClass:"weui-cell__bd"},[n("label",{staticClass:"weui-label",style:t.labelStyle,domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t.inlineDesc?n("inline-desc",[t._v(t._s(t.inlineDesc))]):t._e()],1),t._v(" "),n("div",{staticClass:"weui-cell__ft"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"weui-switch",attrs:{type:"checkbox",disabled:t.disabled},domProps:{checked:Array.isArray(t.currentValue)?t._i(t.currentValue,null)>-1:t.currentValue},on:{__c:function(e){var n=t.currentValue,i=e.target,a=!!i.checked;if(Array.isArray(n)){var s=t._i(n,null);a?s<0&&(t.currentValue=n.concat(null)):s>-1&&(t.currentValue=n.slice(0,s).concat(n.slice(s+1)))}else t.currentValue=a}}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"vux-flexbox-item",style:t.style},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-check-icon",on:{click:t.updateValue}},[n("icon",{directives:[{name:"show",rawName:"v-show",value:"default"===t.type&&t.value,expression:"type === 'default' && value"}],attrs:{type:"success"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:"plain"===t.type&&t.value,expression:"type === 'plain' && value"}],attrs:{type:"success_circle"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:!t.value,expression:"!value"}],attrs:{type:"circle"}}),t._v(" "),n("span",[t._t("default")],2)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-x-input weui-cell",class:{"weui-cell_warn":t.showWarn}},[n("div",{staticClass:"weui-cell__hd"},[t.hasRestrictedLabel?n("div",{style:t.labelStyles},[t._t("restricted-label")],2):t._e(),t._v(" "),t._t("label",[t.title?n("label",{staticClass:"weui-label",style:{width:t.labelWidth||t.$parent.labelWidth||t.labelWidthComputed,textAlign:t.$parent.labelAlign,marginRight:t.$parent.labelMarginRight},domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),t.inlineDesc?n("inline-desc",[t._v(t._s(t.inlineDesc))]):t._e()])],2),t._v(" "),n("div",{staticClass:"weui-cell__bd weui-cell__primary",class:t.placeholderAlign?"vux-x-input-placeholder-"+t.placeholderAlign:""},[t.type&&"text"!==t.type?t._e():n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:t.inputStyle,attrs:{maxlength:t.max,autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,type:"text",name:t.name,pattern:t.pattern,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled},domProps:{value:t.currentValue},on:{focus:t.focusHandler,blur:t.onBlur,keyup:t.onKeyUp,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}),t._v(" "),"number"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:t.inputStyle,attrs:{maxlength:t.max,autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,type:"number",name:t.name,pattern:t.pattern,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled},domProps:{value:t.currentValue},on:{focus:t.focusHandler,blur:[t.onBlur,function(e){t.$forceUpdate()}],keyup:t.onKeyUp,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}):t._e(),t._v(" "),"email"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:t.inputStyle,attrs:{maxlength:t.max,autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,type:"email",name:t.name,pattern:t.pattern,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled},domProps:{value:t.currentValue},on:{focus:t.focusHandler,blur:t.onBlur,keyup:t.onKeyUp,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}):t._e(),t._v(" "),"password"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:t.inputStyle,attrs:{maxlength:t.max,autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,type:"password",name:t.name,pattern:t.pattern,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled},domProps:{value:t.currentValue},on:{focus:t.focusHandler,blur:t.onBlur,keyup:t.onKeyUp,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}):t._e(),t._v(" "),"tel"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:t.inputStyle,attrs:{maxlength:t.max,autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,type:"tel",name:t.name,pattern:t.pattern,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled},domProps:{value:t.currentValue},on:{focus:t.focusHandler,blur:t.onBlur,keyup:t.onKeyUp,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}):t._e()]),t._v(" "),n("div",{staticClass:"weui-cell__ft"},[n("icon",{directives:[{name:"show",rawName:"v-show",value:!t.equalWith&&t.showClear&&t.currentValue&&!t.readonly&&!t.disabled,expression:"!equalWith && showClear && currentValue && !readonly && !disabled"}],attrs:{type:"clear"},nativeOn:{click:function(e){t.clear(e)}}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:t.showWarn,expression:"showWarn"}],staticClass:"vux-input-icon",attrs:{type:"warn",title:t.valid?"":t.firstError}}),t._v(" "),!t.novalidate&&t.hasLengthEqual&&t.dirty&&t.equalWith&&!t.valid?n("icon",{staticClass:"vux-input-icon",attrs:{type:"warn"}}):t._e(),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:!t.novalidate&&t.equalWith&&t.equalWith===t.currentValue&&t.valid,expression:"!novalidate && equalWith && equalWith === currentValue && valid"}],attrs:{type:"success"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:t.novalidate&&"success"===t.iconType,expression:"novalidate && iconType === 'success'"}],staticClass:"vux-input-icon",attrs:{type:"success"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:t.novalidate&&"error"===t.iconType,expression:"novalidate && iconType === 'error'"}],staticClass:"vux-input-icon",attrs:{type:"warn"}}),t._v(" "),t._t("right")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{staticClass:"vux-label-desc"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{class:[t.className,t.isMsg?"weui-icon_msg":""]})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.title?n("div",{staticClass:"weui-cells__title",style:{color:t.titleColor},domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),n("div",{staticClass:"weui-cells",class:{"vux-no-group-title":!t.title},style:{marginTop:"number"==typeof t.gutter?t.gutter+"px":t.gutter}},[t._t("after-title"),t._v(" "),t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"weui-cell vux-x-textarea"},[n("div",{staticClass:"weui-cell__hd"},[t.hasRestrictedLabel?n("div",{style:t.labelStyles},[t._t("restricted-label")],2):t._e(),t._v(" "),t._t("label",[t.title?n("label",{staticClass:"weui-label",style:{width:t.$parent.labelWidth||t.labelWidth+"em",textAlign:t.$parent.labelAlign,marginRight:t.$parent.labelMarginRight},domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),t.inlineDesc?n("inline-desc",[t._v(t._s(t.inlineDesc))]):t._e()])],2),t._v(" "),n("div",{staticClass:"weui-cell__bd"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"textarea",staticClass:"weui-textarea",style:t.textareaStyle,attrs:{autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,placeholder:t.placeholder,readonly:t.readonly,name:t.name,rows:t.rows,cols:t.cols,maxlength:t.max},domProps:{value:t.currentValue},on:{focus:function(e){t.$emit("on-focus")},blur:function(e){t.$emit("on-blur")},input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showCounter&&t.max,expression:"showCounter && max"}],staticClass:"weui-textarea-counter",on:{click:t.focus}},[n("span",[t._v(t._s(t.count))]),t._v("/"+t._s(t.max)+"\n ")])])])},staticRenderFns:[]}},function(t,e,n){n(89);var i=n(0)(n(69),n(103),null,null);t.exports=i.exports},,,function(t,e,n){"use strict";var i=n(56);n.n(i),n(55);e.a={getConfig:function(){var t=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],safari.extension.globalPage.contentWindow.s2a);return t}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i=n(14),a=n(144),s=n(326),o=n.n(s);i.a.use(a.a),e.a=new a.a({routes:[{path:"/",name:"Index",component:o.a}]})},function(t,e,n){"use strict";var i=n(18),a=n.n(i),s=n(37),o=n.n(s),r=n(182),l=n.n(r),u=n(38),c=n.n(u),d=n(179),p=n.n(d),h=n(183),f=n.n(h),v=n(299),m=n.n(v),g=n(113),w=n.n(g),_=n(56),x=n.n(_),b=n(14),y=n(53),S=n(57),k=n(115);b.a.use(y.a);var C=k.a.getConfig()||{},O={getServer:function(t){return C.aria2Connects[t]},getServerList:function(){var t={};return x()(C.aria2Connects,function(e,n){t[n]=e.rpc}),t},sendCall:function(t){if(t){for(var e,n=O.getServer(t),i=arguments.length,a=Array(i>1?i-1:0),s=1;s1?e-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{}),s=w()(a,"gids",n.selectedGids),o=i.taskLists.filter(function(t){return~s.indexOf(t.gid)}),r={active:[],paused:[]};o.map(function(t){r[t.status]=r[t.status]||[],r[t.status].push(t.gid)});var l=r.active.length>=r.paused.length?"active":"paused",u=r.active.length>=r.paused.length?"pause":"unpause";return r.active.length||r.paused.length?O.mutilCall(n.currentServerUrl,r[l].map(function(t){return{methodName:"aria2."+u,params:[t]}})).then(function(){return e("getTaskList")}):p.a.resolve("no change")},saveOptions:function(t){var e=t.dispatch,n=t.state,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return O.sendCall(n.currentServerUrl,"aria2.changeGlobalOption",c()({},i.options)).then(function(){return e("getTaskList",{loadOptions:!0})}).catch(function(t){console.log(t)})},startSelectedDownloads:function(t){var e=t.dispatch,n=t.state,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=w()(i,"gids",n.selectedGids);return O.mutilCall(n.currentServerUrl,a.map(function(t){return{methodName:"aria2.unpause",params:[t]}})).then(function(){return e("getTaskList")})},pauseSelectedDownloads:function(t){var e=t.dispatch,n=t.state,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=w()(i,"gids",n.selectedGids);return O.mutilCall(n.currentServerUrl,a.map(function(t){return{methodName:"aria2.pause",params:[t]}})).then(function(){return e("getTaskList")})},removeSelectedDownloads:function(t){var e=t.dispatch,n=t.state,i=t.getters,a=t.commit,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=w()(s,"gids",n.selectedGids),r=i.taskLists.filter(function(t){return~o.indexOf(t.gid)});return O.mutilCall(n.currentServerUrl,r.map(function(t){return{methodName:"aria2."+(~["active","paused"].indexOf(t.status)?"remove":"removeDownloadResult"),params:[t.gid]}})).then(function(){return a("setSelected",{selected:[]}),e("getTaskList")})},getTaskList:function(t){var e=t.commit,n=t.state,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(C&&C.getConfig||(C=k.a.getConfig(),C.getConfig)))return p.a.reject("获取global变量错误");n.currentServerUrl||e("refreshServerList");var a=[{methodName:"aria2.tellActive",params:[]},{methodName:"aria2.tellWaiting",params:[0,1e3]},{methodName:"aria2.tellStopped",params:[0,1e3]},{methodName:"aria2.getGlobalStat",params:null}];return i.loadOptions&&a.push({methodName:"aria2.getGlobalOption",params:null}),n.currentServerUrl?O.sendCall(n.currentServerUrl,"system.multicall",a).then(function(t){if(e("setTaskList",{list:m()(t[0][0]||[],t[1][0]||[],t[2][0]||[]),url:n.currentServerUrl}),e("setGlobalStat",{globalStat:t[3][0]}),w()(window.safari||{},"extension.toolbarItems")&&(t[3][0]&&t[3][0].numActive?safari.extension.toolbarItems[0].badge=t[3][0].numActive:safari.extension.toolbarItems[0].badge=0),i.loadOptions&&e("setGlobalOption",{globalOption:t[4][0]}),t[3]&&t[3].code)return p.a.reject(t[3])}).catch(function(t){e("setGlobalStat",{globalStat:!1}),console.log("获取列表失败",t)}):p.a.reject("no server url")}},T={serverList:function(t){return t.serverList},getAllTaskGid:function(t,e){return e.taskLists.map(function(t){return t.gid})},getGlobalStat:function(t){var e=a()({},t.globalStat);return e.downloadSpeedText=S.a(e.downloadSpeed||0)+"/s",e.uploadSpeedText=S.a(e.uploadSpeed||0)+"/s",e},taskLists:function(t){var e=["complete","error","paused","waiting","active"],n=[],i=t.currentServerUrl;return t.taskList[i]&&(n=t.taskList[i].slice(0).sort(function(t,n){return t.status===n.status?S.b(n)>S.b(t)?1:-1:e.indexOf(n.status)>e.indexOf(t.status)?1:-1})),n},selectedTasks:function(t,e){return e.taskLists.filter(function(e){return~t.selectedGids.indexOf(e.gid)})}};e.a=new y.a.Store({state:$,getters:T,actions:V,mutations:L})},function(t,e,n){"use strict";var i=n(176),a=n.n(i),s=n(37),o=n.n(s),r=n(160),l=function(t){return o()(t).map(function(e){var i={};return e.split("+").forEach(function(t){switch(t.toLowerCase()){case"ctrl":case"alt":case"shift":case"meta":i[t]=!0;break;default:i.keyCode=n.i(r.a)(t)}}),i.callback=t[e],i})};e.a={install:function(t){t.directive("hotkey",{bind:function(t,e,n,i){t._keymap=l(e.value),t._keyHandler=function(e){var n=!0,i=!1,s=void 0;try{for(var o,r=a()(t._keymap);!(n=(o=r.next()).done);n=!0){var l=o.value;l.keyCode===e.keyCode&&!!l.ctrl===e.ctrlKey&&!!l.alt===e.altKey&&!!l.shift===e.shiftKey&&!!l.meta===e.metaKey&&l.callback(e)}}catch(t){i=!0,s=t}finally{try{!n&&r.return&&r.return()}finally{if(i)throw s}}},document.addEventListener("keydown",t._keyHandler)},unbind:function(t,e,n,i){document.removeEventListener("keydown",t._keyHandler)}})}}},,,,function(t,e,n){n(232);var i=n(0)(n(167),n(310),null,null);t.exports=i.exports},,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),a=n(154),s=n.n(a),o=n(148),r=n(149),l=n(150),u=n(151);i.a.use(u.a),i.a.use(l.a),new i.a({router:o.a,store:r.a,render:function(t){return t(s.a)}}).$mount("#app-box"),window.tlwin={refreshServerList:function(){r.a.commit("refreshServerList")},refreshTaskList:function(){r.a.dispatch("getTaskList",{loadOptions:!0})}}},function(t,e,n){"use strict";var i=n(20),a=n.n(i);e.a=function(t){if(t&&"object"===(void 0===t?"undefined":a()(t))){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return names[t];var n=String(t),i=s[n.toLowerCase()];if(i)return i;var i=o[n.toLowerCase()];return i||(1===n.length?n.charCodeAt(0):void 0)};var s={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(r=97;r<123;r++)s[String.fromCharCode(r)]=r-32;for(var r=48;r<58;r++)s[r-48]=r;for(r=1;r<13;r++)s["f"+r]=r+111;for(r=0;r<10;r++)s["numpad "+r]=r+96},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(19);e.default={props:{isLink:Boolean,link:[String,Object],borderIntent:{type:Boolean,default:!0}},methods:{onClick:function(){this.link&&n.i(i.a)(this.link,this.$router)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(174);e.default={mixins:[i.a],props:{value:Boolean,time:{type:Number,default:2e3},type:{type:String,default:"success"},transition:String,width:{type:String,default:"7.6em"},isShowMask:{type:Boolean,default:!1},text:String,position:String},data:function(){return{show:!1}},created:function(){this.value&&(this.show=!0)},computed:{currentTransition:function(){return this.transition?this.transition:"top"===this.position?"vux-slide-from-top":"bottom"===this.position?"vux-slide-from-bottom":"vux-fade"},toastClass:function(){return{"weui-toast_forbidden":"warn"===this.type,"weui-toast_cancel":"cancel"===this.type,"weui-toast_success":"success"===this.type,"weui-toast_text":"text"===this.type,"vux-toast-top":"top"===this.position,"vux-toast-bottom":"bottom"===this.position,"vux-toast-middle":"middle"===this.position}},style:function(){if("text"===this.type&&"auto"===this.width)return{padding:"10px"}}},watch:{show:function(t){var e=this;t&&(this.$emit("input",!0),this.$emit("on-show"),this.fixSafariOverflowScrolling("auto"),clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.show=!1,e.$emit("input",!1),e.$emit("on-hide"),e.fixSafariOverflowScrolling("touch")},this.time))},value:function(t){this.show=t}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{value:{type:Boolean,default:!1},maskTransition:{type:String,default:"vux-mask"},dialogTransition:{type:String,default:"vux-dialog"},dialogClass:{type:String,default:"weui-dialog"},hideOnBlur:Boolean,dialogStyle:Object,scroll:{type:Boolean,default:!0}},watch:{value:{handler:function(t){this.currentValue=t},immediate:!0},currentValue:function(t){this.$emit(t?"on-show":"on-hide"),this.$emit("input",t)}},data:function(){return{currentValue:!1}},methods:{onTouchMove:function(t){!this.scroll&&t.preventDefault()}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(171);e.default={mounted:function(){var t=this;this.$nextTick(function(){t.show=!1,t.updatePosition()})},directives:{ClickOutside:i.a},props:{content:String,placement:String,gutter:{type:Number,default:5}},methods:{onClickedOutside:function(){this.show&&(this.show=!1,this.$emit("on-hide"))},toggle:function(){var t=this;this.show=!this.show,this.$emit("on-"+(!0===this.show?"show":"hide")),this.show&&this.$nextTick(function(){t.updatePosition()})},updatePosition:function(){var t=this.$refs.trigger.children[0],e=this.$refs.popover;switch(this.placement){case"top":this.position.left=t.offsetLeft-e.offsetWidth/2+t.offsetWidth/2,this.position.top=t.getBoundingClientRect().top-e.offsetHeight-this.gutter;break;case"left":this.position.left=t.offsetLeft-e.offsetWidth-this.gutter,this.position.top=t.getBoundingClientRect().top+t.offsetHeight/2-e.offsetHeight/2;break;case"right":this.position.left=t.offsetLeft+t.offsetWidth+this.gutter,this.position.top=t.getBoundingClientRect().top+t.offsetHeight/2-e.offsetHeight/2;break;case"bottom":this.position.left=t.offsetLeft-e.offsetWidth/2+t.offsetWidth/2,this.position.top=t.getBoundingClientRect().top+t.offsetHeight+this.gutter;break;default:console.warn("Wrong placement prop")}this.popoverStyle={top:this.position.top+"px",left:this.position.left+"px",display:"none"}}},data:function(){return{position:{top:0,left:0},show:!0,popoverStyle:{}}},computed:{arrowClass:function(){return{"vux-popover-arrow":!0,"vux-popover-arrow-up":"bottom"===this.placement,"vux-popover-arrow-right":"left"===this.placement,"vux-popover-arrow-left":"right"===this.placement,"vux-popover-arrow-down":"top"===this.placement}}}}},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"app"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(38),a=n.n(i),s=n(112),o=n.n(s),r=n(31),l=n.n(r),u=n(29),c=n.n(u),d=n(323),p=n.n(d),h=n(32),f=n.n(h),v=n(34),m=n.n(v),g=n(26),w=n.n(g),_=n(28),x=n.n(_),b=n(27),y=n.n(b),S=n(30),k=n.n(S),C=n(33),O=n.n(C),$=n(25),L=n.n($),V=n(324),T=n.n(V),A=n(328),N=n.n(A),D=(n(57),n(53)),E=n(115),P=E.a.getConfig({not_connect:!0});e.default={components:{XHeader:l.a,Group:c.a,Popmenu:T.a,XInput:f.a,XTextarea:m.a,CheckIcon:w.a,Flexbox:x.a,XDialog:p.a,FlexboxItem:y.a,TaskList:N.a,XButton:k.a,XSwitch:O.a,Cell:L.a,Radio:o.a},computed:a()({currenServerName:function(){return this.serverList&&this.currentServerUrl&&this.serverList[this.currentServerUrl]?this.serverList[this.currentServerUrl].name:"请添加aria2服务地址"},keymap:function(){var t=this;return{"meta+a":function(e){e.preventDefault(),t.setSelected({selected:t.getAllTaskGid})},"alt+p":function(e){e.preventDefault(),t.pauseSelectedDownloads()},"alt+s":function(e){e.preventDefault(),t.startSelectedDownloads()},"alt+d":function(e){e.preventDefault(),t.removeSelectedDownloads()},"alt+shift+l":function(t){t.preventDefault(),safari.extension.toolbarItems[0].popover.visible?safari.extension.toolbarItems[0].popover.hide():safari.extension.toolbarItems[0].showPopover()},space:function(e){e.preventDefault(),t.toggleSelectedStatus()}}}},n.i(D.b)(["taskLists","selectedTasks","getAllTaskGid","getGlobalStat"]),n.i(D.c)(["serverList","selectedGids","currentServerUrl","config","globalStat","globalOption","taskList"])),data:function(){return{listTimer:!1,popmenuIsShow:!1,showOptions:!1,change2GlobalOptions:{}}},created:function(){this.init()},watch:{"config.refreshTime":function(t){this.init()}},methods:a()({init:function(){var t=this;this.listTimer&&clearInterval(this.listTimer),this.getTaskList(),this.listTimer=setInterval(function(){(P.isDebug||safari.extension.popovers[0].visible)&&t.getTaskList({loadOptions:!t.globalOption})},this.config.refreshTime?1e3*this.config.refreshTime:5e3)},openOptions:function(){P.openOptions()},saveAria2Options:function(){var t=this;this.saveOptions({options:{"max-overall-download-limit":1024*this.change2GlobalOptions["max-overall-download-limit"]+"","max-overall-upload-limit":1024*this.change2GlobalOptions["max-overall-upload-limit"]+"","max-concurrent-downloads":this.change2GlobalOptions["max-concurrent-downloads"]}}).then(function(){t.showOptions=!1,t.$vux.toast.show({text:"设置保存成功"})})},openAria2Options:function(){this.showOptions=!0,this.change2GlobalOptions={"max-overall-download-limit":this.globalOption["max-overall-download-limit"]/1024,"max-overall-upload-limit":this.globalOption["max-overall-upload-limit"]/1024,"max-concurrent-downloads":this.globalOption["max-concurrent-downloads"]}},popmenuHide:function(){this.popmenuIsShow=!1},popmenuShow:function(){this.popmenuIsShow=!0},changeList:function(t){this.$refs.popmenu.toggle(),this.setCurrentServer(t),this.getTaskList()}},n.i(D.d)(["refreshServerList","setSelected"]),n.i(D.d)({setCurrentServer:"changeList"}),n.i(D.e)(["startSelectedDownloads","pauseSelectedDownloads","removeSelectedDownloads","toggleSelectedStatus","saveOptions","getTaskList"]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(38),a=n.n(i),s=n(31),o=n.n(s),r=n(29),l=n.n(r),u=n(32),c=n.n(u),d=n(34),p=n.n(d),h=n(321),f=n.n(h),v=n(26),m=n.n(v),g=n(28),w=n.n(g),_=n(27),x=n.n(_),b=n(30),y=n.n(b),S=n(33),k=n.n(S),C=n(25),O=(n.n(C),n(57)),$=n(53);e.default={components:{XHeader:o.a,Group:l.a,XInput:c.a,XTextarea:p.a,CheckIcon:m.a,Flexbox:w.a,FlexboxItem:x.a,XButton:y.a,XSwitch:k.a,CellBox:f.a},data:function(){return{showAction:!1}},props:["download","selected"],computed:{eta:function(){var t=(this.download.totalLength-this.download.completedLength)/(this.download.downloadSpeed||1);return O.c(1e3*t,"d[天] hh[时]mm[分]ss[秒]")},getStatus:function(){return{active:"下载中",waiting:"等待中",paused:"已暂停",error:"错误",complete:"已完成",removed:"已删除"}[this.download.status]||""},name:function(){return O.b(this.download)},progress:function(){return[100*("0"===this.download.totalLength?0:this.download.completedLength/this.download.totalLength),"%"].join("")},completedSize:function(){return O.a(this.download.completedLength)},size:function(){return O.a(this.download.totalLength)},isDownloading:function(){return"active"===this.download.status&&"0"!==this.download.downloadSpeed},isUploading:function(){return"active"===this.download.status&&"0"!==this.download.uploadSpeed},downloadSpeed:function(){return O.a(this.download.downloadSpeed||0)+"/s"},uploadSpeed:function(){return O.a(this.download.uploadSpeed||0)+"/s"}},methods:a()({showAction:function(){this.showAction=!0},hideAction:function(){this.showAction=!0}},n.i($.e)(["startSelectedDownloads","pauseSelectedDownloads","removeSelectedDownloads"]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(38),a=n.n(i),s=n(31),o=n.n(s),r=n(29),l=n.n(r),u=n(32),c=n.n(u),d=n(34),p=n.n(d),h=n(26),f=n.n(h),v=n(28),m=n.n(v),g=n(27),w=n.n(g),_=n(30),x=n.n(_),b=n(33),y=n.n(b),S=n(25),k=n.n(S),C=n(327),O=n.n(C),$=n(53);e.default={components:{XHeader:o.a,Group:l.a,XInput:c.a,XTextarea:p.a,CheckIcon:f.a,Flexbox:m.a,FlexboxItem:w.a,XButton:x.a,XSwitch:y.a,Cell:k.a,TaskLine:O.a},props:{list:Array,selected:Array},computed:a()({gids:function(){return this.list.map(function(t){return t?t.gid:""})}},n.i($.c)(["selectedGids"])),methods:a()({select:function(t,e){var n=this.selectedGids;if(e.ctrlKey||e.metaKey||e.shiftKey?n.push(t):n=[t],e.shiftKey&&n.length){var i=n[0],a=n[n.length-1],s=[this.gids.indexOf(i),this.gids.indexOf(a)];s[0]>s[1]&&s.reverse(),n=this.gids.slice(s[0],s[1]+1)}this.setSelected({selected:n})},startOrPause:function(t){"paused"===t.status?this.$store.dispatch("startSelectedDownloads"):"active"===t.status&&this.$store.dispatch("pauseSelectedDownloads")}},n.i($.d)(["setSelected"]))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){},function(t,e){},,function(t,e){},function(t,e){},,function(t,e){},function(t,e){},function(t,e){},function(t,e){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.keymap,expression:"keymap"}],staticClass:"pop_wrapper"},[n("x-header",{staticClass:"pop_header",attrs:{"left-options":{showBack:!1},"right-options":{showMore:!0}},on:{"on-click-more":t.openOptions}},[n("popmenu",{ref:"popmenu",attrs:{placement:"bottom"},on:{"on-show":t.popmenuShow,"on-hide":t.popmenuHide}},[n("div",{staticClass:"selectRpcServer",slot:"content"},[n("group",t._l(t.serverList,function(e){return n("cell",{key:e.url,class:{acitve:e.url===t.currentServerUrl},attrs:{title:e.name},nativeOn:{click:function(n){t.changeList({url:e.url})}}})}))],1),t._v(" "),n("div",{staticClass:"rpcServer"},[n("button",[t._v(t._s(t.currenServerName)+t._s(t.globalStat?"":"(未连接)"))]),t._v(" "),n("i",{staticClass:"material-icons"},[t._v(t._s(t.popmenuIsShow?"keyboard_arrow_up":"keyboard_arrow_down"))])])])],1),t._v(" "),n("div",{staticClass:"globalStatus"},[n("div",{staticClass:"control"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.selectedGids.length>0,expression:"selectedGids.length>0"}],staticClass:"inner"},[n("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(e){e.stopPropagation(),t.startSelectedDownloads()}}},[t._v("开始")]),t._v(" "),n("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(e){e.stopPropagation(),t.pauseSelectedDownloads()}}},[t._v("暂停")]),t._v(" "),n("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(e){e.stopPropagation(),t.removeSelectedDownloads()}}},[t._v("删除")])],1)]),t._v(" "),n("div",{staticClass:"speed",attrs:{title:"点击设置全局限速"},on:{click:function(e){if(!("button"in e)&&t._k(e.keyCode,"nativ"))return null;e.stopPropagation(),t.openAria2Options()}}},[t.getGlobalStat.uploadSpeed>0?n("div",{staticClass:"up"},[n("i",{staticClass:"material-icons"},[t._v("arrow_upward")]),t._v("\n "+t._s(t.getGlobalStat.uploadSpeedText)+"\n ")]):t._e(),t._v(" "),n("div",{staticClass:"down"},[n("i",{staticClass:"material-icons"},[t._v("arrow_downward")]),t._v("\n "+t._s(t.getGlobalStat.downloadSpeedText)+"\n ")])])]),t._v(" "),n("task-list",{staticClass:"pop_list",attrs:{list:t.taskLists},nativeOn:{click:function(e){e.stopPropagation(),t.setSelected({selected:[]})}}}),t._v(" "),n("x-dialog",{staticClass:"dialog-options",attrs:{"hide-on-blur":"",scroll:!1},model:{value:t.showOptions,callback:function(e){t.showOptions=e},expression:"showOptions"}},[n("group",[n("x-input",{attrs:{title:"全局最大下载速度",type:"number","show-clear":!1,min:0},model:{value:t.change2GlobalOptions["max-overall-download-limit"],callback:function(e){var n=t.change2GlobalOptions;Array.isArray(n)?n.splice("max-overall-download-limit",1,e):t.change2GlobalOptions["max-overall-download-limit"]=e},expression:"change2GlobalOptions['max-overall-download-limit']"}},[n("span",{slot:"right"},[t._v("KB")])]),t._v(" "),n("x-input",{attrs:{title:"全局最大上传速度",type:"number","show-clear":!1,min:0},model:{value:t.change2GlobalOptions["max-overall-upload-limit"],callback:function(e){var n=t.change2GlobalOptions;Array.isArray(n)?n.splice("max-overall-upload-limit",1,e):t.change2GlobalOptions["max-overall-upload-limit"]=e},expression:"change2GlobalOptions['max-overall-upload-limit']"}},[n("span",{slot:"right"},[t._v("KB")])]),t._v(" "),n("x-input",{attrs:{title:"同时任务数量",type:"number","show-clear":!1,min:1},model:{value:t.change2GlobalOptions["max-concurrent-downloads"],callback:function(e){var n=t.change2GlobalOptions;Array.isArray(n)?n.splice("max-concurrent-downloads",1,e):t.change2GlobalOptions["max-concurrent-downloads"]=e},expression:"change2GlobalOptions['max-concurrent-downloads']"}},[n("span",{slot:"right"},[t._v("个")])])],1),t._v(" "),n("group",{staticClass:"buttonGroup"},[n("x-button",{nativeOn:{click:function(e){t.saveAria2Options()}}},[t._v("保存")]),t._v(" "),n("x-button",{nativeOn:{click:function(e){t.showOptions=!1}}},[t._v("取消")])],1)],1)],1)},staticRenderFns:[]}},,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-x-dialog",on:{touchmove:t.onTouchMove}},[n("transition",{attrs:{name:t.maskTransition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.currentValue,expression:"currentValue"}],staticClass:"weui-mask",on:{click:function(e){t.hideOnBlur&&(t.currentValue=!1)}}})]),t._v(" "),n("transition",{attrs:{name:t.dialogTransition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.currentValue,expression:"currentValue"}],class:t.dialogClass,style:t.dialogStyle},[t._t("default")],2)])],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.onClickedOutside,expression:"onClickedOutside"}]},[n("span",{ref:"trigger",on:{click:t.toggle}},[t._t("default")],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],ref:"popover",staticClass:"vux-popover",style:t.popoverStyle},[n("div",{class:t.arrowClass}),t._v(" "),n("div",{on:{click:function(e){t.$emit("on-click-content")}}},[t._t("content",[n("div",{domProps:{innerHTML:t._s(t.content)}})])],2)])])},staticRenderFns:[]}},,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("group",[n("div",{staticClass:"download-list"},[t._l(t.list,function(e){return n("task-line",{key:e.gid,attrs:{download:e,selected:~t.selectedGids.indexOf(e.gid)},nativeOn:{click:function(n){n.stopPropagation(),t.select(e.gid,n)},dblclick:function(n){n.stopPropagation(),t.startOrPause(e)}}})}),t._v(" "),t.list.length<1?n("cell",{staticClass:"empty",attrs:{title:"暂无下载任务"}}):t._e()],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("cell-box",{staticClass:"download",class:{selected:t.selected},nativeOn:{mouseenter:function(e){t.showAction=!0},mouseleave:function(e){t.showAction=!1}}},[n("div",{staticClass:"progress",style:{width:t.progress}}),t._v(" "),n("div",{staticClass:"info"},[n("div",{staticClass:"left"},[n("div",{staticClass:"name"},[t._v("\n "+t._s(t.name)+"\n ")]),t._v(" "),n("div",{staticClass:"status"},[t.download.errorMessage?n("div",[t._v(t._s(t.download.errorMessage))]):t._e(),t._v(" "),t.download.errorMessage?t._e():n("div",["active"!=t.download.status?n("span",[t._v(t._s(t.getStatus))]):t._e(),t._v(" "),"0"!==t.download.totalLength?n("span",{staticClass:"size"},[t._v(t._s(t.isDownloading?t.completedSize+"/":"")+t._s(t.size))]):t._e(),t._v(" "),t.isDownloading?n("span",{staticClass:"speed"},[t._v(t._s(t.downloadSpeed))]):t._e(),t._v(" "),t.isUploading?n("span",{staticClass:"speed upload"},[t._v(t._s(t.uploadSpeed))]):t._e(),t._v(" "),t.isDownloading?n("span",{staticClass:"eta"},[t._v("剩余: "+t._s(t.eta))]):t._e()])])]),t._v(" "),n("div",{staticClass:"right"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showAction,expression:"showAction"}],staticClass:"action"},[n("i",{directives:[{name:"show",rawName:"v-show",value:"active"===t.download.status,expression:"download.status === 'active'"}],staticClass:"material-icons",attrs:{title:"暂停"},on:{click:function(e){e.stopPropagation(),t.pauseSelectedDownloads({gids:[t.download.gid]})}}},[t._v("pause_circle_outline")]),t._v(" "),n("i",{directives:[{name:"show",rawName:"v-show",value:"paused"===t.download.status,expression:"download.status === 'paused'"}],staticClass:"material-icons",attrs:{title:"开始"},on:{click:function(e){e.stopPropagation(),t.startSelectedDownloads({gids:[t.download.gid]})}}},[t._v("play_circle_outline")]),t._v(" "),n("i",{staticClass:"material-icons",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.removeSelectedDownloads({gids:[t.download.gid]})}}},[t._v("delete_forever")])])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-toast"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowMask&&t.show,expression:"isShowMask && show"}],staticClass:"weui-mask_transparent"}),t._v(" "),n("transition",{attrs:{name:t.currentTransition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"weui-toast",class:t.toastClass,style:{width:t.width}},[n("i",{directives:[{name:"show",rawName:"v-show",value:"text"!==t.type,expression:"type !== 'text'"}],staticClass:"weui-icon-success-no-circle weui-icon_toast"}),t._v(" "),t.text?n("p",{staticClass:"weui-toast__content",style:t.style,domProps:{innerHTML:t._s(t.text)}}):n("p",{staticClass:"weui-toast__content"},[t._t("default")],2)])])],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-cell-box weui-cell",class:{"vux-tap-active":t.isLink||!!t.link,"weui-cell_access":t.isLink||!!t.link,"vux-cell-no-border-intent":!t.borderIntent},on:{click:t.onClick}},[n("div",[t._t("default")],2)])},staticRenderFns:[]}},,function(t,e,n){n(241);var i=n(0)(n(161),n(319),null,null);t.exports=i.exports},function(t,e,n){n(240);var i=n(0)(n(162),n(318),null,null);t.exports=i.exports},function(t,e,n){n(235);var i=n(0)(n(163),n(313),null,null);t.exports=i.exports},function(t,e,n){n(236);var i=n(0)(n(164),n(314),null,null);t.exports=i.exports},,function(t,e,n){n(233);var i=n(0)(n(168),n(311),null,null);t.exports=i.exports},function(t,e,n){n(239);var i=n(0)(n(169),n(317),null,null);t.exports=i.exports},function(t,e,n){n(238);var i=n(0)(n(170),n(316),null,null);t.exports=i.exports}],[159]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/popover.f52620ba98e63674ef88.js b/safari2aria.safariextension/static/js/popover.f52620ba98e63674ef88.js deleted file mode 100644 index 48bbfd8..0000000 --- a/safari2aria.safariextension/static/js/popover.f52620ba98e63674ef88.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([1],[,,,,,,function(t,e,n){n(92);var i=n(0)(null,n(107),null,null);t.exports=i.exports},,,,,,,function(t,e,n){n(93);var i=n(0)(n(62),n(108),null,null);t.exports=i.exports},,,,,,,,,,,,function(t,e,n){n(87);var i=n(0)(n(57),n(101),null,null);t.exports=i.exports},function(t,e,n){n(90);var i=n(0)(n(58),n(105),null,null);t.exports=i.exports},function(t,e,n){var i=n(0)(n(59),n(104),null,null);t.exports=i.exports},function(t,e,n){n(85);var i=n(0)(n(60),n(99),null,null);t.exports=i.exports},function(t,e,n){n(94);var i=n(0)(n(61),n(109),null,null);t.exports=i.exports},function(t,e,n){n(84);var i=n(0)(n(63),n(98),null,null);t.exports=i.exports},function(t,e,n){n(86);var i=n(0)(n(64),n(100),null,null);t.exports=i.exports},function(t,e,n){n(91);var i=n(0)(n(65),n(106),null,null);t.exports=i.exports},function(t,e,n){n(89);var i=n(0)(n(66),n(103),null,null);t.exports=i.exports},function(t,e,n){n(95);var i=n(0)(n(67),n(110),null,null);t.exports=i.exports},function(t,e,n){"use strict";(function(t){var e=n(36),i=n.n(e),a=n(20),s=n.n(a),o=n(118),r=n.n(o),l=n(140),u=n.n(l);!function(e){var n=void 0!==t&&t.exports,a=function t(e){this.callbacks=r()(null),this.lastId=0;for(var n in t.options)this[n]="object"===(void 0===e?"undefined":s()(e))&&n in e?e[n]:t.options[n]};a.prototype.http=function(t,e){var n=this,a={method:t.method,id:t.id};Array.isArray(t.params)&&t.params.length>0&&(a.params=t.params);var s="http"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path;fetch(s,{method:"POST",body:i()(a),headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(t){return t.json()}).then(function(t){n._onmessage(t)}).catch(e)},a.prototype.send=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof e[e.length-1]?e.pop():null;return this.exec(t,e,n)},a.prototype.exec=function(t,e,n){if("string"!=typeof t)throw new TypeError(t+" is not a string");0!==t.indexOf("system.")&&0!==t.indexOf("aria2.")&&(t="aria2."+t);var a={method:t,"json-rpc":"2.0",id:this.lastId++},s=this.secret?["token:"+this.secret]:[];Array.isArray(e)&&("system.multicall"===t?(Array.isArray(e[0])&&e[0].forEach(function(t){t.params||(t.params=[]),t.params=s.concat(t.params)}),s=e):s=s.concat(e)),s.length>0&&(a.params=s),this.onsend(a);var o=this;return this.socket&&1===this.socket.readyState?this.socket.send(i()(a)):this.http(a,function(t){o.callbacks[a.id](t),delete o.callbacks[a.id]}),u()(function(t){o.callbacks[a.id]=t},n)},a.prototype._onmessage=function(t){if(this.onmessage(t),void 0!==t.id){var e=this.callbacks[t.id];e&&(t.error?e(t.error):e(null,t.result),delete this.callbacks[t.id])}else if(t.method){var n=t.method.split("aria2.")[1];0===n.indexOf("on")&&"function"==typeof this[n]&&a.notifications.indexOf(n)>-1&&this[n].apply(this,t.params)}},a.prototype.open=function(t){var e="ws"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path,n=this.socket=new WebSocket(e),i=this,a=!1;return n.onmessage=function(t){i._onmessage(JSON.parse(t.data))},u()(function(t){n.onopen=function(){a||(t(),a=!0),i.onopen()},n.onclose=function(e){i.onclose(),1006==e.code&&(a||(t(e),a=!0))},n.onerror=function(e){a||(t(e),a=!0)}},t)},a.prototype.close=function(t){var e=this.socket;return u()(function(t){e?(e.addEventListener("close",function(){t()}),e.close()):t()},t)},a.methods=["addUri","addTorrent","addMetalink","remove","forceRemove","pause","pauseAll","forcePause","forcePauseAll","unpause","unpauseAll","tellStatus","getUris","getFiles","getPeers","getServers","tellActive","tellWaiting","tellStopped","changePosition","changeUri","getOption","changeOption","getGlobalOption","changeGlobalOption","getGlobalStat","purgeDownloadResult","removeDownloadResult","getVersion","getSessionInfo","shutdown","forceShutdown","saveSession","system.multicall","system.listMethods","system.listNotifications"],a.notifications=["onDownloadStart","onDownloadPause","onDownloadStop","onDownloadComplete","onDownloadError","onBtDownloadComplete"],a.events=["onopen","onclose","onsend","onmessage"],a.options={secure:!1,host:"localhost",port:6800,secret:"",path:"/jsonrpc"},a.methods.forEach(function(t){var e=t.indexOf(".")>-1?t.split(".")[1]:t;a.prototype[e]=function(){return this.send.apply(this,[t].concat(Array.prototype.slice.call(arguments)))}}),a.notifications.forEach(function(t){a.prototype[t]=function(){}}),a.events.forEach(function(t){a.prototype[t]=function(){}}),n?t.exports=a:e.Aria2=a}(this)}).call(e,n(145)(t))},,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function i(t){var e="";return e=t.bittorrent?t.bittorrent.info.name:t.files[0].path.replace(/^.*[\\\/]/,""),e||(e=t.files[0].uris[0].uri),e||"..."}function a(t,e){t=Number(t);var n=["Bytes","KB","MB","GB","TB"];if(0===t)return"0 KB";var i=parseInt(Math.floor(Math.log(t)/Math.log(1e3)),10);if(0===i)return t+" "+n[i];var a=[1,1,10,100,100][i];return u()(e)&&(a=Math.pow(10,e)),Math.floor(100*t/Math.pow(1024,i)*a)/(100*a)+" "+n[i]}function s(t,e){function n(t,e){return(new Array(e+1).join("0")+t).slice(-e)}var i=/((?:[^ydhms']+)|(?:'(?:[^']|'')*')|(?:y+|d+|h+|m+|s+))(.*)/,a={y:{value:31536e6},yy:{value:"y",pad:2},d:{value:864e5},dd:{value:"d",pad:2},h:{value:36e5},hh:{value:"h",pad:2},m:{value:6e4},mm:{value:"m",pad:2},s:{value:1e3},ss:{value:"s",pad:2},sss:{value:1},ssss:{value:"sss",pad:4}},s=parseFloat(t,10),o=function(t){for(var e=[],n=t?t.toString():"";n;){var a=i.exec(n);a?(e=e.concat(a.slice(1)),n=e.pop()):(e.push(n),n=null)}return e}(e);return isNaN(s)||0===o.length?t:function(t,e){var i="",s={};e.filter(function(t){return a.hasOwnProperty(t)}).map(function(t){var e=a[t];return e.hasOwnProperty("pad")?e.value:t}).filter(function(t,e,n){return n.indexOf(t)===e}).map(function(t){return r()({name:t},a[t])}).sort(function(t,e){return e.value-t.value}).forEach(function(e){var n=s[e.name]=Math.floor(t/e.value);t-=n*e.value});for(var o=0;o=2&&t.length<=6},msg:"中文姓名"}};e.default={created:function(){var t=this;this.currentValue=this.value||"",this.title||this.placeholder||this.currentValue||console.warn("no title and no placeholder?"),this.required&&!this.currentValue&&(this.valid=!1),this.handleChangeEvent=!0,this.debounce&&(this._debounce=n.i(f.a)(function(){t.$emit("on-change",t.currentValue)},this.debounce))},mounted:function(){this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0)},beforeDestroy:function(){this._debounce&&this._debounce.cancel()},mixins:[s.a],components:{Icon:r.a,InlineDesc:u.a},props:{title:{type:String,default:""},type:{type:String,default:"text"},placeholder:String,value:[String,Number],name:String,readonly:Boolean,disabled:Boolean,keyboard:String,inlineDesc:String,isType:[String,Function],min:Number,max:Number,showClear:{type:Boolean,default:!0},equalWith:String,textAlign:String,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},novalidate:{type:Boolean,default:!1},iconType:String,debounce:Number,placeholderAlign:String,labelWidth:String},computed:{labelStyles:function(){return{width:this.labelWidthComputed||this.$parent.labelWidth||this.labelWidthComputed,textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},pattern:function(){if("number"===this.keyboard||"china-mobile"===this.isType)return"[0-9]*"},labelWidthComputed:function(){var t=this.title.replace(/[^x00-xff]/g,"00").length/2+1;if(t<10)return t+"em"},hasErrors:function(){return a()(this.errors).length>0},inputStyle:function(){if(this.textAlign)return{textAlign:this.textAlign}},showWarn:function(){return!this.novalidate&&!this.equalWith&&!this.valid&&this.firstError&&(this.touched||this.forceShowError)}},methods:{reset:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dirty=!1,this.currentValue=t,this.firstError="",this.valid=!0},clear:function(){this.currentValue="",this.focus()},focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},focusHandler:function(){this.$emit("on-focus",this.currentValue)},onBlur:function(){this.setTouched(),this.validate(),this.$emit("on-blur",this.currentValue)},onKeyUp:function(t){"Enter"===t.key&&(t.target.blur(),this.$emit("on-enter",this.currentValue))},getError:function(){var t=a()(this.errors)[0];this.firstError=this.errors[t]},validate:function(){if(void 0!==this.equalWith)return void this.validateEqual();if(this.errors={},!this.currentValue&&!this.required)return void(this.valid=!0);if(!this.currentValue&&this.required)return this.valid=!1,this.errors.required="必填哦",void this.getError();if("string"==typeof this.isType){var t=v[this.isType];if(t){if(this.valid=t.fn(this.currentValue),!this.valid)return void(this.errors.format=t.msg+"格式不对哦~");delete this.errors.format}}if("function"==typeof this.isType){var e=this.isType(this.currentValue);if(this.valid=e.valid,!this.valid)return this.errors.format=e.msg,this.forceShowError=!0,void(this.firstError||this.getError());delete this.errors.format}if(this.min){if(this.currentValue.lengththis.max)return this.errors.max="最多可以输入"+this.max+"个字符哦",this.valid=!1,void(this.forceShowError=!0);this.forceShowError=!1,delete this.errors.max}this.valid=!0},validateEqual:function(){return!this.equalWith&&this.currentValue?(this.valid=!1,void(this.errors.equal="输入不一致")):(this.dirty||this.currentValue.length>=this.equalWith.length)&&this.currentValue!==this.equalWith?(this.valid=!1,void(this.errors.equal="输入不一致")):void(!this.currentValue&&this.required?this.valid=!1:(this.valid=!0,delete this.errors.equal))}},data:function(){return{hasRestrictedLabel:!1,firstError:"",forceShowError:!1,hasLengthEqual:!1,valid:!0,currentValue:""}},watch:{valid:function(){this.getError()},value:function(t){this.currentValue=t},equalWith:function(t){t&&this.equalWith?(t.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate()},currentValue:function(t){!this.equalWith&&t&&this.validateEqual(),t&&this.equalWith?(t.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate(),this.$emit("input",t),this._debounce?this._debounce():this.$emit("on-change",t)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),a=n.n(i);e.default={components:{InlineDesc:a.a},computed:{labelStyle:function(){var t=/<\/?[^>]*>/.test(this.title);return{display:"block",width:Math.min(t?5:this.title.length+1,14)+"em"}}},props:{title:{type:String,required:!0},disabled:Boolean,value:{type:Boolean,default:!1},inlineDesc:[String,Boolean,Number]},data:function(){return{currentValue:this.value}},watch:{currentValue:function(t){this.$emit("input",t),this.$emit("on-change",t)},value:function(t){this.currentValue=t}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(37),a=n(6),s=n.n(a),o=n(114),r=n.n(o);e.default={minxins:[i.a],mounted:function(){var t=this;this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0),this.$nextTick(function(){t.autosize&&t.bindAutosize()})},components:{InlineDesc:s.a},props:{title:String,inlineDesc:String,showCounter:{type:Boolean,default:!0},max:Number,value:String,name:String,placeholder:String,readonly:Boolean,rows:{type:Number,default:3},cols:{type:Number,default:30},height:Number,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},autosize:Boolean},created:function(){this.currentValue=this.value},watch:{autosize:function(t){this.unbindAutosize(),t&&this.bindAutosize()},value:function(t){this.currentValue=t},currentValue:function(t){this.max&&t&&t.length>this.max&&(this.currentValue=t.slice(0,this.max)),this.$emit("input",this.currentValue),this.$emit("on-change",this.currentValue)}},data:function(){return{hasRestrictedLabel:!1,currentValue:""}},computed:{count:function(){var t=0;return this.currentValue&&(t=this.currentValue.replace(/\n/g,"aa").length),t>this.max?this.max:t},textareaStyle:function(){if(this.height)return{height:this.height+"px"}},labelStyles:function(){return{width:this.$parent.labelWidth||this.labelWidth+"em",textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},labelWidth:function(){return this.title.replace(/[^x00-xff]/g,"00").length/2+1}},methods:{bindAutosize:function(){r()(this.$refs.textarea)},unbindAutosize:function(){r.a.destroy(this.$refs.textarea)},focus:function(){this.$refs.textarea.focus()}},beforeDestroy:function(){this.unbindAutosize()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),a=n.n(i);e.default={components:{Icon:a.a},methods:{updateValue:function(){this.$emit("update:value",this.val)}},props:{value:[String,Number],val:[String,Number],type:{type:String,default:"default"}}}},,,,,,,,,,,,,,,,function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},,,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"weui-btn",class:t.classes,attrs:{disabled:t.disabled,type:t.actionType},on:{click:t.onClick}},[t.showLoading?n("i",{staticClass:"weui-loading"}):t._e(),t._v(" "),t._t("default",[t._v(t._s(t.text))])],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"vux-flexbox",class:{"vux-flex-col":"vertical"===t.orient,"vux-flex-row":"horizontal"===t.orient},style:t.styles},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-header"},[n("div",{staticClass:"vux-header-left"},[t._t("overwrite-left",[n("transition",{attrs:{name:t.transition}},[n("a",{directives:[{name:"show",rawName:"v-show",value:t._leftOptions.showBack,expression:"_leftOptions.showBack"}],staticClass:"vux-header-back",on:{click:[function(e){if(!("button"in e)&&t._k(e.keyCode,"preventDefault"))return null},t.onClickBack]}},[t._v(t._s(void 0===t._leftOptions.backText?"返回":t._leftOptions.backText))])]),t._v(" "),n("transition",{attrs:{name:t.transition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t._leftOptions.showBack,expression:"_leftOptions.showBack"}],staticClass:"left-arrow",on:{click:t.onClickBack}})])]),t._v(" "),t._t("left")],2),t._v(" "),n("h1",{staticClass:"vux-header-title",on:{click:function(e){t.$emit("on-click-title")}}},[t._t("default",[n("transition",{attrs:{name:t.transition}},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.title,expression:"title"}]},[t._v(t._s(t.title))])])])],2),t._v(" "),n("div",{staticClass:"vux-header-right"},[t.rightOptions.showMore?n("a",{staticClass:"vux-header-more",on:{click:[function(e){if(!("button"in e)&&t._k(e.keyCode,"preventDefault"))return null},function(e){t.$emit("on-click-more")}]}}):t._e(),t._v(" "),t._t("right")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"weui-cell",class:{"vux-tap-active":t.isLink||!!t.link,"weui-cell_access":t.isLink||!!t.link,"vux-cell-no-border-intent":!t.borderIntent,"vux-cell-disabled":t.disabled},on:{click:t.onClick}},[n("div",{staticClass:"weui-cell__hd"},[t._t("icon")],2),t._v(" "),n("div",{staticClass:"vux-cell-bd",class:{"vux-cell-primary":"title"===t.primary&&"left"!==t.valueAlign}},[n("p",[t.title||t.hasTitleSlot?n("label",{staticClass:"vux-label",style:t.getLabelStyles()},[t._t("title",[t._v(t._s(t.title))])],2):t._e(),t._v(" "),t._t("after-title")],2),t._v(" "),n("inline-desc",[t._t("inline-desc",[t._v(t._s(t.inlineDesc))])],2)],1),t._v(" "),n("div",{staticClass:"weui-cell__ft",class:t.valueClass},[t._t("value"),t._v(" "),t._t("default",[t._v(t._s(t.value))]),t._v(" "),t.isLoading?n("i",{staticClass:"weui-loading"}):t._e()],2),t._v(" "),t._t("child")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-check-icon",on:{click:t.updateValue}},[n("icon",{directives:[{name:"show",rawName:"v-show",value:"default"===t.type&&t.value===t.val,expression:"type === 'default' && value === val"}],attrs:{type:"success"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:"plain"===t.type&&t.value===t.val,expression:"type === 'plain' && value === val"}],attrs:{type:"success_circle"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:t.value!==t.val,expression:"value !== val"}],attrs:{type:"circle"}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"radio",attrs:{type:"radio"},domProps:{value:t.val,checked:t._q(t.value,t.val)},on:{__c:function(e){t.value=t.val}}}),t._v(" "),n("span",[t._t("default")],2)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-x-switch weui-cell weui-cell_switch"},[n("div",{staticClass:"weui-cell__bd"},[n("label",{staticClass:"weui-label",style:t.labelStyle,domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t.inlineDesc?n("inline-desc",[t._v(t._s(t.inlineDesc))]):t._e()],1),t._v(" "),n("div",{staticClass:"weui-cell__ft"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"weui-switch",attrs:{type:"checkbox",disabled:t.disabled},domProps:{checked:Array.isArray(t.currentValue)?t._i(t.currentValue,null)>-1:t.currentValue},on:{__c:function(e){var n=t.currentValue,i=e.target,a=!!i.checked;if(Array.isArray(n)){var s=t._i(n,null);a?s<0&&(t.currentValue=n.concat(null)):s>-1&&(t.currentValue=n.slice(0,s).concat(n.slice(s+1)))}else t.currentValue=a}}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"vux-flexbox-item",style:t.style},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-check-icon",on:{click:t.updateValue}},[n("icon",{directives:[{name:"show",rawName:"v-show",value:"default"===t.type&&t.value,expression:"type === 'default' && value"}],attrs:{type:"success"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:"plain"===t.type&&t.value,expression:"type === 'plain' && value"}],attrs:{type:"success_circle"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:!t.value,expression:"!value"}],attrs:{type:"circle"}}),t._v(" "),n("span",[t._t("default")],2)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-x-input weui-cell",class:{"weui-cell_warn":t.showWarn}},[n("div",{staticClass:"weui-cell__hd"},[t.hasRestrictedLabel?n("div",{style:t.labelStyles},[t._t("restricted-label")],2):t._e(),t._v(" "),t._t("label",[t.title?n("label",{staticClass:"weui-label",style:{width:t.labelWidth||t.$parent.labelWidth||t.labelWidthComputed,textAlign:t.$parent.labelAlign,marginRight:t.$parent.labelMarginRight},domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),t.inlineDesc?n("inline-desc",[t._v(t._s(t.inlineDesc))]):t._e()])],2),t._v(" "),n("div",{staticClass:"weui-cell__bd weui-cell__primary",class:t.placeholderAlign?"vux-x-input-placeholder-"+t.placeholderAlign:""},[t.type&&"text"!==t.type?t._e():n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:t.inputStyle,attrs:{maxlength:t.max,autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,type:"text",name:t.name,pattern:t.pattern,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled},domProps:{value:t.currentValue},on:{focus:t.focusHandler,blur:t.onBlur,keyup:t.onKeyUp,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}),t._v(" "),"number"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:t.inputStyle,attrs:{maxlength:t.max,autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,type:"number",name:t.name,pattern:t.pattern,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled},domProps:{value:t.currentValue},on:{focus:t.focusHandler,blur:[t.onBlur,function(e){t.$forceUpdate()}],keyup:t.onKeyUp,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}):t._e(),t._v(" "),"email"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:t.inputStyle,attrs:{maxlength:t.max,autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,type:"email",name:t.name,pattern:t.pattern,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled},domProps:{value:t.currentValue},on:{focus:t.focusHandler,blur:t.onBlur,keyup:t.onKeyUp,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}):t._e(),t._v(" "),"password"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:t.inputStyle,attrs:{maxlength:t.max,autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,type:"password",name:t.name,pattern:t.pattern,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled},domProps:{value:t.currentValue},on:{focus:t.focusHandler,blur:t.onBlur,keyup:t.onKeyUp,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}):t._e(),t._v(" "),"tel"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:t.inputStyle,attrs:{maxlength:t.max,autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,type:"tel",name:t.name,pattern:t.pattern,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled},domProps:{value:t.currentValue},on:{focus:t.focusHandler,blur:t.onBlur,keyup:t.onKeyUp,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}):t._e()]),t._v(" "),n("div",{staticClass:"weui-cell__ft"},[n("icon",{directives:[{name:"show",rawName:"v-show",value:!t.equalWith&&t.showClear&&t.currentValue&&!t.readonly&&!t.disabled,expression:"!equalWith && showClear && currentValue && !readonly && !disabled"}],attrs:{type:"clear"},nativeOn:{click:function(e){t.clear(e)}}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:t.showWarn,expression:"showWarn"}],staticClass:"vux-input-icon",attrs:{type:"warn",title:t.valid?"":t.firstError}}),t._v(" "),!t.novalidate&&t.hasLengthEqual&&t.dirty&&t.equalWith&&!t.valid?n("icon",{staticClass:"vux-input-icon",attrs:{type:"warn"}}):t._e(),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:!t.novalidate&&t.equalWith&&t.equalWith===t.currentValue&&t.valid,expression:"!novalidate && equalWith && equalWith === currentValue && valid"}],attrs:{type:"success"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:t.novalidate&&"success"===t.iconType,expression:"novalidate && iconType === 'success'"}],staticClass:"vux-input-icon",attrs:{type:"success"}}),t._v(" "),n("icon",{directives:[{name:"show",rawName:"v-show",value:t.novalidate&&"error"===t.iconType,expression:"novalidate && iconType === 'error'"}],staticClass:"vux-input-icon",attrs:{type:"warn"}}),t._v(" "),t._t("right")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{staticClass:"vux-label-desc"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{class:[t.className,t.isMsg?"weui-icon_msg":""]})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.title?n("div",{staticClass:"weui-cells__title",style:{color:t.titleColor},domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),n("div",{staticClass:"weui-cells",class:{"vux-no-group-title":!t.title},style:{marginTop:"number"==typeof t.gutter?t.gutter+"px":t.gutter}},[t._t("after-title"),t._v(" "),t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"weui-cell vux-x-textarea"},[n("div",{staticClass:"weui-cell__hd"},[t.hasRestrictedLabel?n("div",{style:t.labelStyles},[t._t("restricted-label")],2):t._e(),t._v(" "),t._t("label",[t.title?n("label",{staticClass:"weui-label",style:{width:t.$parent.labelWidth||t.labelWidth+"em",textAlign:t.$parent.labelAlign,marginRight:t.$parent.labelMarginRight},domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),t.inlineDesc?n("inline-desc",[t._v(t._s(t.inlineDesc))]):t._e()])],2),t._v(" "),n("div",{staticClass:"weui-cell__bd"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"textarea",staticClass:"weui-textarea",style:t.textareaStyle,attrs:{autocomplete:t.autocomplete,autocapitalize:t.autocapitalize,autocorrect:t.autocorrect,spellcheck:t.spellcheck,placeholder:t.placeholder,readonly:t.readonly,name:t.name,rows:t.rows,cols:t.cols,maxlength:t.max},domProps:{value:t.currentValue},on:{focus:function(e){t.$emit("on-focus")},blur:function(e){t.$emit("on-blur")},input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showCounter&&t.max,expression:"showCounter && max"}],staticClass:"weui-textarea-counter",on:{click:t.focus}},[n("span",[t._v(t._s(t.count))]),t._v("/"+t._s(t.max)+"\n ")])])])},staticRenderFns:[]}},function(t,e,n){n(88);var i=n(0)(n(68),n(102),null,null);t.exports=i.exports},,,,function(t,e,n){"use strict";e.a={getConfig:function(){return safari.extension.globalPage.contentWindow.s2a}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i=n(14),a=n(144),s=n(325),o=n.n(s);i.a.use(a.a),e.a=new a.a({routes:[{path:"/",name:"Index",component:o.a}]})},function(t,e,n){"use strict";var i=n(18),a=n.n(i),s=n(38),o=n.n(s),r=n(181),l=n.n(r),u=n(39),c=n.n(u),d=n(178),p=n.n(d),h=n(182),f=n.n(h),v=n(298),m=n.n(v),g=n(113),w=n.n(g),_=n(112),y=n.n(_),x=n(14),b=n(54),S=n(35),k=n(56),C=n(115);x.a.use(b.a);var O=C.a.getConfig()||{};O.isDebug&&y()(O.aria2Connects,function(t,e){var n=e.match(/^(http|ws)(s)?(?:\:\/\/)(token\:[^@]*)?@?([^\:\/]*)\:?(\d*)(\/[^\/]*)/),i={host:n[4],port:n[5]||6800,secure:!(!n||!n[2]),secret:n[3]?n[3].split(":")[1]:"",path:n[6]||"/jsonrpc"};t.aria2=new S.Aria2(i),t.push&&t.aria2.open()});var $={getServer:function(t){return O.aria2Connects[t]},getServerList:function(){var t={};return y()(O.aria2Connects,function(e,n){t[n]=e.rpc}),t},sendCall:function(t){if(t){for(var e,n=$.getServer(t),i=arguments.length,a=Array(i>1?i-1:0),s=1;s1?e-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{}),s=w()(a,"gids",n.selectedGids),o=i.taskLists.filter(function(t){return~s.indexOf(t.gid)}),r={active:[],paused:[]};o.map(function(t){r[t.status]=r[t.status]||[],r[t.status].push(t.gid)});var l=r.active.length>=r.paused.length?"active":"paused",u=r.active.length>=r.paused.length?"pause":"unpause";return r.active.length||r.paused.length?$.mutilCall(n.currentServerUrl,r[l].map(function(t){return{methodName:"aria2."+u,params:[t]}})).then(function(){return e("getTaskList")}):p.a.resolve("no change")},saveOptions:function(t){var e=t.dispatch,n=t.state,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $.sendCall(n.currentServerUrl,"aria2.changeGlobalOption",c()({},i.options)).then(function(){return e("getTaskList",{loadOptions:!0})}).catch(function(t){console.log(t)})},startSelectedDownloads:function(t){var e=t.dispatch,n=t.state,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=w()(i,"gids",n.selectedGids);return $.mutilCall(n.currentServerUrl,a.map(function(t){return{methodName:"aria2.unpause",params:[t]}})).then(function(){return e("getTaskList")})},pauseSelectedDownloads:function(t){var e=t.dispatch,n=t.state,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=w()(i,"gids",n.selectedGids);return $.mutilCall(n.currentServerUrl,a.map(function(t){return{methodName:"aria2.pause",params:[t]}})).then(function(){return e("getTaskList")})},removeSelectedDownloads:function(t){var e=t.dispatch,n=t.state,i=t.getters,a=t.commit,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=w()(s,"gids",n.selectedGids),r=i.taskLists.filter(function(t){return~o.indexOf(t.gid)});return $.mutilCall(n.currentServerUrl,r.map(function(t){return{methodName:"aria2."+(~["active","paused"].indexOf(t.status)?"remove":"removeDownloadResult"),params:[t.gid]}})).then(function(){return a("setSelected",{selected:[]}),e("getTaskList")})},getTaskList:function(t){var e=t.commit,n=t.state,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.currentServerUrl||e("refreshServerList");var a=[{methodName:"aria2.tellActive",params:[]},{methodName:"aria2.tellWaiting",params:[0,1e3]},{methodName:"aria2.tellStopped",params:[0,1e3]},{methodName:"aria2.getGlobalStat",params:null}];return i.loadOptions&&a.push({methodName:"aria2.getGlobalOption",params:null}),n.currentServerUrl?$.sendCall(n.currentServerUrl,"system.multicall",a).then(function(t){if(e("setTaskList",{list:m()(t[0][0]||[],t[1][0]||[],t[2][0]||[]),url:n.currentServerUrl}),e("setGlobalStat",{globalStat:t[3][0]}),i.loadOptions&&e("setGlobalOption",{globalOption:t[4][0]}),t[3]&&t[3].code)return p.a.reject(t[3])}).catch(function(t){console.log("获取列表失败",t)}):p.a.reject("no server url")}},A={serverList:function(t){return t.serverList},getAllTaskGid:function(t,e){return e.taskLists.map(function(t){return t.gid})},getGlobalStat:function(t){var e=a()({},t.globalStat);return e.downloadSpeedText=k.a(e.downloadSpeed||0)+"/s",e.uploadSpeedText=k.a(e.uploadSpeed||0)+"/s",e},taskLists:function(t){var e=["complete","error","paused","waiting","active"],n=[],i=t.currentServerUrl;return t.taskList[i]&&(n=t.taskList[i].slice(0).sort(function(t,n){return t.status===n.status?k.b(n)>k.b(t)?1:-1:e.indexOf(n.status)>e.indexOf(t.status)?1:-1})),n},selectedTasks:function(t,e){return e.taskLists.filter(function(e){return~t.selectedGids.indexOf(e.gid)})}};e.a=new b.a.Store({state:L,getters:A,actions:T,mutations:V})},function(t,e,n){"use strict";var i=n(175),a=n.n(i),s=n(38),o=n.n(s),r=n(159),l=function(t){return o()(t).map(function(e){var i={};return e.split("+").forEach(function(t){switch(t.toLowerCase()){case"ctrl":case"alt":case"shift":case"meta":i[t]=!0;break;default:i.keyCode=n.i(r.a)(t)}}),i.callback=t[e],i})};e.a={install:function(t){t.directive("hotkey",{bind:function(t,e,n,i){t._keymap=l(e.value),t._keyHandler=function(e){var n=!0,i=!1,s=void 0;try{for(var o,r=a()(t._keymap);!(n=(o=r.next()).done);n=!0){var l=o.value;l.keyCode===e.keyCode&&!!l.ctrl===e.ctrlKey&&!!l.alt===e.altKey&&!!l.shift===e.shiftKey&&!!l.meta===e.metaKey&&l.callback(e)}}catch(t){i=!0,s=t}finally{try{!n&&r.return&&r.return()}finally{if(i)throw s}}},document.addEventListener("keydown",t._keyHandler)},unbind:function(t,e,n,i){document.removeEventListener("keydown",t._keyHandler)}})}}},,,,function(t,e,n){n(231);var i=n(0)(n(166),n(309),null,null);t.exports=i.exports},,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),a=n(154),s=n.n(a),o=n(148),r=n(149),l=n(150),u=n(151);i.a.use(u.a),i.a.use(l.a),new i.a({router:o.a,store:r.a,render:function(t){return t(s.a)}}).$mount("#app-box"),window.tlwin={refreshServerList:function(){r.a.commit("refreshServerList")}}},function(t,e,n){"use strict";var i=n(20),a=n.n(i);e.a=function(t){if(t&&"object"===(void 0===t?"undefined":a()(t))){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return names[t];var n=String(t),i=s[n.toLowerCase()];if(i)return i;var i=o[n.toLowerCase()];return i||(1===n.length?n.charCodeAt(0):void 0)};var s={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(r=97;r<123;r++)s[String.fromCharCode(r)]=r-32;for(var r=48;r<58;r++)s[r-48]=r;for(r=1;r<13;r++)s["f"+r]=r+111;for(r=0;r<10;r++)s["numpad "+r]=r+96},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(19);e.default={props:{isLink:Boolean,link:[String,Object],borderIntent:{type:Boolean,default:!0}},methods:{onClick:function(){this.link&&n.i(i.a)(this.link,this.$router)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(173);e.default={mixins:[i.a],props:{value:Boolean,time:{type:Number,default:2e3},type:{type:String,default:"success"},transition:String,width:{type:String,default:"7.6em"},isShowMask:{type:Boolean,default:!1},text:String,position:String},data:function(){return{show:!1}},created:function(){this.value&&(this.show=!0)},computed:{currentTransition:function(){return this.transition?this.transition:"top"===this.position?"vux-slide-from-top":"bottom"===this.position?"vux-slide-from-bottom":"vux-fade"},toastClass:function(){return{"weui-toast_forbidden":"warn"===this.type,"weui-toast_cancel":"cancel"===this.type,"weui-toast_success":"success"===this.type,"weui-toast_text":"text"===this.type,"vux-toast-top":"top"===this.position,"vux-toast-bottom":"bottom"===this.position,"vux-toast-middle":"middle"===this.position}},style:function(){if("text"===this.type&&"auto"===this.width)return{padding:"10px"}}},watch:{show:function(t){var e=this;t&&(this.$emit("input",!0),this.$emit("on-show"),this.fixSafariOverflowScrolling("auto"),clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.show=!1,e.$emit("input",!1),e.$emit("on-hide"),e.fixSafariOverflowScrolling("touch")},this.time))},value:function(t){this.show=t}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{value:{type:Boolean,default:!1},maskTransition:{type:String,default:"vux-mask"},dialogTransition:{type:String,default:"vux-dialog"},dialogClass:{type:String,default:"weui-dialog"},hideOnBlur:Boolean,dialogStyle:Object,scroll:{type:Boolean,default:!0}},watch:{value:{handler:function(t){this.currentValue=t},immediate:!0},currentValue:function(t){this.$emit(t?"on-show":"on-hide"),this.$emit("input",t)}},data:function(){return{currentValue:!1}},methods:{onTouchMove:function(t){!this.scroll&&t.preventDefault()}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(170);e.default={mounted:function(){var t=this;this.$nextTick(function(){t.show=!1,t.updatePosition()})},directives:{ClickOutside:i.a},props:{content:String,placement:String,gutter:{type:Number,default:5}},methods:{onClickedOutside:function(){this.show&&(this.show=!1,this.$emit("on-hide"))},toggle:function(){var t=this;this.show=!this.show,this.$emit("on-"+(!0===this.show?"show":"hide")),this.show&&this.$nextTick(function(){t.updatePosition()})},updatePosition:function(){var t=this.$refs.trigger.children[0],e=this.$refs.popover;switch(this.placement){case"top":this.position.left=t.offsetLeft-e.offsetWidth/2+t.offsetWidth/2,this.position.top=t.getBoundingClientRect().top-e.offsetHeight-this.gutter;break;case"left":this.position.left=t.offsetLeft-e.offsetWidth-this.gutter,this.position.top=t.getBoundingClientRect().top+t.offsetHeight/2-e.offsetHeight/2;break;case"right":this.position.left=t.offsetLeft+t.offsetWidth+this.gutter,this.position.top=t.getBoundingClientRect().top+t.offsetHeight/2-e.offsetHeight/2;break;case"bottom":this.position.left=t.offsetLeft-e.offsetWidth/2+t.offsetWidth/2,this.position.top=t.getBoundingClientRect().top+t.offsetHeight+this.gutter;break;default:console.warn("Wrong placement prop")}this.popoverStyle={top:this.position.top+"px",left:this.position.left+"px",display:"none"}}},data:function(){return{position:{top:0,left:0},show:!0,popoverStyle:{}}},computed:{arrowClass:function(){return{"vux-popover-arrow":!0,"vux-popover-arrow-up":"bottom"===this.placement,"vux-popover-arrow-right":"left"===this.placement,"vux-popover-arrow-left":"right"===this.placement,"vux-popover-arrow-down":"top"===this.placement}}}}},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"app"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(39),a=n.n(i),s=n(111),o=n.n(s),r=n(31),l=n.n(r),u=n(29),c=n.n(u),d=n(322),p=n.n(d),h=n(32),f=n.n(h),v=n(34),m=n.n(v),g=n(26),w=n.n(g),_=n(28),y=n.n(_),x=n(27),b=n.n(x),S=n(30),k=n.n(S),C=n(33),O=n.n(C),$=n(25),L=n.n($),V=(n(35),n(323)),T=n.n(V),A=n(327),N=n.n(A),D=(n(56),n(54)),E=n(115),M=E.a.getConfig();e.default={components:{XHeader:l.a,Group:c.a,Popmenu:T.a,XInput:f.a,XTextarea:m.a,CheckIcon:w.a,Flexbox:y.a,XDialog:p.a,FlexboxItem:b.a,TaskList:N.a,XButton:k.a,XSwitch:O.a,Cell:L.a,Radio:o.a},computed:a()({currenServerName:function(){return this.serverList&&this.currentServerUrl&&this.serverList[this.currentServerUrl]?this.serverList[this.currentServerUrl].name:"请添加aria2服务地址"},keymap:function(){var t=this;return{"meta+a":function(e){e.preventDefault(),t.setSelected({selected:t.getAllTaskGid})},"alt+p":function(e){e.preventDefault(),t.pauseSelectedDownloads()},"alt+s":function(e){e.preventDefault(),t.startSelectedDownloads()},"alt+d":function(e){e.preventDefault(),t.removeSelectedDownloads()},space:function(e){e.preventDefault(),t.toggleSelectedStatus()}}}},n.i(D.b)(["taskLists","selectedTasks","getAllTaskGid","getGlobalStat"]),n.i(D.c)(["serverList","selectedGids","currentServerUrl","config","globalStat","globalOption","taskList"])),data:function(){return{listTimer:!1,popmenuIsShow:!1,showOptions:!1,change2GlobalOptions:{}}},created:function(){this.init()},watch:{"config.refreshTime":function(t){this.init()}},methods:a()({init:function(){var t=this;this.listTimer&&clearInterval(this.listTimer),this.getTaskList(),this.listTimer=setInterval(function(){(M.isDebug||safari.extension.popovers[0].visible)&&t.getTaskList({loadOptions:!t.globalOption})},this.config.refreshTime?1e3*this.config.refreshTime:5e3)},openOptions:function(){M.openOptions()},saveAria2Options:function(){var t=this;this.saveOptions({options:this.change2GlobalOptions}).then(function(){t.showOptions=!1,t.$vux.toast.show({text:"设置保存成功"})})},openAria2Options:function(){this.showOptions=!0,this.change2GlobalOptions=this.globalOption},popmenuHide:function(){this.popmenuIsShow=!1},popmenuShow:function(){this.popmenuIsShow=!0},changeList:function(t){this.$refs.popmenu.toggle(),this.setCurrentServer(t),this.getTaskList()}},n.i(D.d)(["refreshServerList","setSelected"]),n.i(D.d)({setCurrentServer:"changeList"}),n.i(D.e)(["startSelectedDownloads","pauseSelectedDownloads","removeSelectedDownloads","toggleSelectedStatus","saveOptions","getTaskList"]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(39),a=n.n(i),s=n(31),o=n.n(s),r=n(29),l=n.n(r),u=n(32),c=n.n(u),d=n(34),p=n.n(d),h=n(320),f=n.n(h),v=n(26),m=n.n(v),g=n(28),w=n.n(g),_=n(27),y=n.n(_),x=n(30),b=n.n(x),S=n(33),k=n.n(S),C=n(25),O=(n.n(C),n(56)),$=n(54);e.default={components:{XHeader:o.a,Group:l.a,XInput:c.a,XTextarea:p.a,CheckIcon:m.a,Flexbox:w.a,FlexboxItem:y.a,XButton:b.a,XSwitch:k.a,CellBox:f.a},data:function(){return{showAction:!1}},props:["download","selected"],computed:{eta:function(){var t=(this.download.totalLength-this.download.completedLength)/(this.download.downloadSpeed||1);return O.c(1e3*t,"d[天] hh[时]mm[分]ss[秒]")},getStatus:function(){return{active:"下载中",waiting:"等待中",paused:"已暂停",error:"错误",complete:"已完成",removed:"已删除"}[this.download.status]||""},name:function(){return O.b(this.download)},progress:function(){return[100*("0"===this.download.totalLength?0:this.download.completedLength/this.download.totalLength),"%"].join("")},size:function(){return O.a(this.download.totalLength)},isDownloading:function(){return"active"===this.download.status&&"0"!==this.download.downloadSpeed},isUploading:function(){return"active"===this.download.status&&"0"!==this.download.uploadSpeed},downloadSpeed:function(){return O.a(this.download.downloadSpeed||0)+"/s"},uploadSpeed:function(){return O.a(this.download.uploadSpeed||0)+"/s"}},methods:a()({showAction:function(){this.showAction=!0},hideAction:function(){this.showAction=!0}},n.i($.e)(["startSelectedDownloads","pauseSelectedDownloads","removeSelectedDownloads"]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(39),a=n.n(i),s=n(31),o=n.n(s),r=n(29),l=n.n(r),u=n(32),c=n.n(u),d=n(34),p=n.n(d),h=n(26),f=n.n(h),v=n(28),m=n.n(v),g=n(27),w=n.n(g),_=n(30),y=n.n(_),x=n(33),b=n.n(x),S=n(25),k=n.n(S),C=n(326),O=n.n(C),$=n(54);e.default={components:{XHeader:o.a,Group:l.a,XInput:c.a,XTextarea:p.a,CheckIcon:f.a,Flexbox:m.a,FlexboxItem:w.a,XButton:y.a,XSwitch:b.a,Cell:k.a,TaskLine:O.a},props:{list:Array,selected:Array},computed:a()({gids:function(){return this.list.map(function(t){return t?t.gid:""})}},n.i($.c)(["selectedGids"])),methods:a()({select:function(t,e){var n=this.selectedGids;if(e.ctrlKey||e.metaKey||e.shiftKey?n.push(t):n=[t],e.shiftKey&&n.length){var i=n[0],a=n[n.length-1],s=[this.gids.indexOf(i),this.gids.indexOf(a)];s[0]>s[1]&&s.reverse(),n=this.gids.slice(s[0],s[1]+1)}this.setSelected({selected:n})},startOrPause:function(t){"paused"===t.status?this.$store.dispatch("startSelectedDownloads"):"active"===t.status&&this.$store.dispatch("pauseSelectedDownloads")}},n.i($.d)(["setSelected"]))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){},function(t,e){},,function(t,e){},function(t,e){},,function(t,e){},function(t,e){},function(t,e){},function(t,e){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.keymap,expression:"keymap"}],staticClass:"pop_wrapper"},[n("x-header",{staticClass:"pop_header",attrs:{"left-options":{showBack:!1},"right-options":{showMore:!0}},on:{"on-click-more":t.openOptions}},[n("popmenu",{ref:"popmenu",attrs:{placement:"bottom"},on:{"on-show":t.popmenuShow,"on-hide":t.popmenuHide}},[n("div",{staticClass:"selectRpcServer",slot:"content"},[n("group",t._l(t.serverList,function(e){return n("cell",{key:e.url,class:{acitve:e.url===t.currentServerUrl},attrs:{title:e.name},nativeOn:{click:function(n){t.changeList({url:e.url})}}})}))],1),t._v(" "),n("div",{staticClass:"rpcServer"},[n("button",[t._v(t._s(t.currenServerName)+t._s(t.globalStat?"":"(未连接)"))]),t._v(" "),n("i",{staticClass:"material-icons"},[t._v(t._s(t.popmenuIsShow?"keyboard_arrow_up":"keyboard_arrow_down"))])])])],1),t._v(" "),n("div",{staticClass:"globalStatus"},[n("div",{staticClass:"control"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.selectedGids.length>0,expression:"selectedGids.length>0"}],staticClass:"inner"},[n("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(e){e.stopPropagation(),t.startSelectedDownloads()}}},[t._v("开始")]),t._v(" "),n("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(e){e.stopPropagation(),t.pauseSelectedDownloads()}}},[t._v("暂停")]),t._v(" "),n("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(e){e.stopPropagation(),t.removeSelectedDownloads()}}},[t._v("删除")])],1)]),t._v(" "),n("div",{staticClass:"speed",attrs:{title:"点击设置全局限速"},on:{click:function(e){if(!("button"in e)&&t._k(e.keyCode,"nativ"))return null;e.stopPropagation(),t.openAria2Options()}}},[n("div",{staticClass:"up"},[n("i",{staticClass:"material-icons"},[t._v("arrow_upward")]),t._v("\n "+t._s(t.getGlobalStat.uploadSpeedText)+"\n ")]),t._v(" "),n("div",{staticClass:"down"},[n("i",{staticClass:"material-icons"},[t._v("arrow_downward")]),t._v("\n "+t._s(t.getGlobalStat.downloadSpeedText)+"\n ")])])]),t._v(" "),n("task-list",{staticClass:"pop_list",attrs:{list:t.taskLists},nativeOn:{click:function(e){e.stopPropagation(),t.setSelected({selected:[]})}}}),t._v(" "),n("x-dialog",{staticClass:"dialog-options",attrs:{"hide-on-blur":"",scroll:!1},model:{value:t.showOptions,callback:function(e){t.showOptions=e},expression:"showOptions"}},[n("group",[n("x-input",{attrs:{title:"全局最大下载速度",type:"number","show-clear":!1},model:{value:t.change2GlobalOptions["max-overall-download-limit"],callback:function(e){var n=t.change2GlobalOptions;Array.isArray(n)?n.splice("max-overall-download-limit",1,e):t.change2GlobalOptions["max-overall-download-limit"]=e},expression:"change2GlobalOptions['max-overall-download-limit']"}},[n("span",{slot:"right"},[t._v("B")])]),t._v(" "),n("x-input",{attrs:{title:"全局最大上传速度",type:"number","show-clear":!1},model:{value:t.change2GlobalOptions["max-overall-upload-limit"],callback:function(e){var n=t.change2GlobalOptions;Array.isArray(n)?n.splice("max-overall-upload-limit",1,e):t.change2GlobalOptions["max-overall-upload-limit"]=e},expression:"change2GlobalOptions['max-overall-upload-limit']"}},[n("span",{slot:"right"},[t._v("B")])]),t._v(" "),n("x-input",{attrs:{title:"同时任务数量",type:"number","show-clear":!1},model:{value:t.change2GlobalOptions["max-concurrent-downloads"],callback:function(e){var n=t.change2GlobalOptions;Array.isArray(n)?n.splice("max-concurrent-downloads",1,e):t.change2GlobalOptions["max-concurrent-downloads"]=e},expression:"change2GlobalOptions['max-concurrent-downloads']"}},[n("span",{slot:"right"},[t._v("个")])])],1),t._v(" "),n("group",{staticClass:"buttonGroup"},[n("x-button",{nativeOn:{click:function(e){t.saveAria2Options()}}},[t._v("保存")]),t._v(" "),n("x-button",{nativeOn:{click:function(e){t.showOptions=!1}}},[t._v("取消")])],1)],1)],1)},staticRenderFns:[]}},,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-x-dialog",on:{touchmove:t.onTouchMove}},[n("transition",{attrs:{name:t.maskTransition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.currentValue,expression:"currentValue"}],staticClass:"weui-mask",on:{click:function(e){t.hideOnBlur&&(t.currentValue=!1)}}})]),t._v(" "),n("transition",{attrs:{name:t.dialogTransition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.currentValue,expression:"currentValue"}],class:t.dialogClass,style:t.dialogStyle},[t._t("default")],2)])],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.onClickedOutside,expression:"onClickedOutside"}]},[n("span",{ref:"trigger",on:{click:t.toggle}},[t._t("default")],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],ref:"popover",staticClass:"vux-popover",style:t.popoverStyle},[n("div",{class:t.arrowClass}),t._v(" "),n("div",{on:{click:function(e){t.$emit("on-click-content")}}},[t._t("content",[n("div",{domProps:{innerHTML:t._s(t.content)}})])],2)])])},staticRenderFns:[]}},,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("group",[n("div",{staticClass:"download-list"},[t._l(t.list,function(e){return n("task-line",{key:e.gid,attrs:{download:e,selected:~t.selectedGids.indexOf(e.gid)},nativeOn:{click:function(n){n.stopPropagation(),t.select(e.gid,n)},dblclick:function(n){n.stopPropagation(),t.startOrPause(e)}}})}),t._v(" "),t.list.length<1?n("cell",{staticClass:"empty",attrs:{title:"暂无下载任务"}}):t._e()],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("cell-box",{staticClass:"download",class:{selected:t.selected},nativeOn:{mouseenter:function(e){t.showAction=!0},mouseleave:function(e){t.showAction=!1}}},[n("div",{staticClass:"progress",style:{width:t.progress}}),t._v(" "),n("div",{staticClass:"info"},[n("div",{staticClass:"left"},[n("div",{staticClass:"name"},[t._v("\n "+t._s(t.name)+"\n ")]),t._v(" "),n("div",{staticClass:"status"},[t.download.errorMessage?n("div",[t._v(t._s(t.download.errorMessage))]):t._e(),t._v(" "),t.download.errorMessage?t._e():n("div",["active"!=t.download.status?n("span",[t._v(t._s(t.getStatus))]):t._e(),t._v(" "),"0"!==t.download.totalLength?n("span",{staticClass:"size"},[t._v(t._s(t.size))]):t._e(),t._v(" "),t.isDownloading?n("span",{staticClass:"speed"},[t._v(t._s(t.downloadSpeed))]):t._e(),t._v(" "),t.isUploading?n("span",{staticClass:"speed upload"},[t._v(t._s(t.uploadSpeed))]):t._e(),t._v(" "),t.isDownloading?n("span",{staticClass:"eta"},[t._v("剩余时间: "+t._s(t.eta))]):t._e()])])]),t._v(" "),n("div",{staticClass:"right"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showAction,expression:"showAction"}],staticClass:"action"},[n("i",{directives:[{name:"show",rawName:"v-show",value:"active"===t.download.status,expression:"download.status === 'active'"}],staticClass:"material-icons",attrs:{title:"暂停"},on:{click:function(e){e.stopPropagation(),t.pauseSelectedDownloads({gids:[t.download.gid]})}}},[t._v("pause_circle_outline")]),t._v(" "),n("i",{directives:[{name:"show",rawName:"v-show",value:"paused"===t.download.status,expression:"download.status === 'paused'"}],staticClass:"material-icons",attrs:{title:"开始"},on:{click:function(e){e.stopPropagation(),t.startSelectedDownloads({gids:[t.download.gid]})}}},[t._v("play_circle_outline")]),t._v(" "),n("i",{staticClass:"material-icons",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.removeSelectedDownloads({gids:[t.download.gid]})}}},[t._v("delete_forever")])])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-toast"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowMask&&t.show,expression:"isShowMask && show"}],staticClass:"weui-mask_transparent"}),t._v(" "),n("transition",{attrs:{name:t.currentTransition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"weui-toast",class:t.toastClass,style:{width:t.width}},[n("i",{directives:[{name:"show",rawName:"v-show",value:"text"!==t.type,expression:"type !== 'text'"}],staticClass:"weui-icon-success-no-circle weui-icon_toast"}),t._v(" "),t.text?n("p",{staticClass:"weui-toast__content",style:t.style,domProps:{innerHTML:t._s(t.text)}}):n("p",{staticClass:"weui-toast__content"},[t._t("default")],2)])])],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vux-cell-box weui-cell",class:{"vux-tap-active":t.isLink||!!t.link,"weui-cell_access":t.isLink||!!t.link,"vux-cell-no-border-intent":!t.borderIntent},on:{click:t.onClick}},[n("div",[t._t("default")],2)])},staticRenderFns:[]}},,function(t,e,n){n(240);var i=n(0)(n(160),n(318),null,null);t.exports=i.exports},function(t,e,n){n(239);var i=n(0)(n(161),n(317),null,null);t.exports=i.exports},function(t,e,n){n(234);var i=n(0)(n(162),n(312),null,null);t.exports=i.exports},function(t,e,n){n(235);var i=n(0)(n(163),n(313),null,null);t.exports=i.exports},,function(t,e,n){n(232);var i=n(0)(n(167),n(310),null,null);t.exports=i.exports},function(t,e,n){n(238);var i=n(0)(n(168),n(316),null,null);t.exports=i.exports},function(t,e,n){n(237);var i=n(0)(n(169),n(315),null,null);t.exports=i.exports}],[158]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/startscript.js b/safari2aria.safariextension/static/js/startscript.js new file mode 100644 index 0000000..fa9cce7 --- /dev/null +++ b/safari2aria.safariextension/static/js/startscript.js @@ -0,0 +1 @@ +webpackJsonp([5],{156:function(n,o){function t(){if(location.href.match(/baidu/)){var n="浏览器window.navigator属性修改失败,自动尝试方案2。",o="无法修改浏览器window.navigator,这将影响屏蔽功能。";try{Object.defineProperty(window.navigator,"platform",{get:function(){return"Android"}})}catch(n){}!function(){if("Android"!=window.navigator.platform){console.log(n);try{window.navigator.__defineGetter__("platform",function(){return"Android"})}catch(n){}"Android"!=window.navigator.platform&&console.log(o)}}()}}var i=document.createElement("script");i.type="text/javascript",i.innerHTML=[t.toString(),[t.name,"()"].join("")].join(";"),document.documentElement.appendChild(i)}},[156]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/vendor.48f962ed222e6e9444b5.js b/safari2aria.safariextension/static/js/vendor.c45c6a5d207bec568155.js similarity index 74% rename from safari2aria.safariextension/static/js/vendor.48f962ed222e6e9444b5.js rename to safari2aria.safariextension/static/js/vendor.c45c6a5d207bec568155.js index c7e389f..2195625 100644 --- a/safari2aria.safariextension/static/js/vendor.48f962ed222e6e9444b5.js +++ b/safari2aria.safariextension/static/js/vendor.c45c6a5d207bec568155.js @@ -1,21 +1,21 @@ -webpackJsonp([0],[function(t,e){t.exports=function(t,e,n,r){var o,i=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(o=t,i=t.default);var s="function"==typeof i?i.options:i;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),r){var u=Object.create(s.computed||null);Object.keys(r).forEach(function(t){var e=r[t];u[t]=function(){return e}}),s.computed=u}return{esModule:o,exports:i,options:s}}},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(76)("wks"),o=n(44),i=n(3).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(3),o=n(1),i=n(22),a=n(10),s=function(t,e,n){var u,c,f,l=t&s.F,p=t&s.G,d=t&s.S,v=t&s.P,h=t&s.B,y=t&s.W,m=p?o:o[e]||(o[e]={}),g=m.prototype,_=p?r:d?r[e]:(r[e]||{}).prototype;p&&(n=e);for(u in n)(c=!l&&_&&void 0!==_[u])&&u in m||(f=c?_[u]:n[u],m[u]=p&&"function"!=typeof _[u]?n[u]:h&&c?i(f,r):y&&_[u]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[u]=f,t&s.R&&g&&!g[u]&&a(g,u,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(7),o=n(121),i=n(79),a=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},,function(t,e,n){var r=n(16);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(5),o=n(24);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(122),o=n(70);t.exports=function(t){return r(o(t))}},function(t,e){var n=Array.isArray;t.exports=n},,function(t,e,n){"use strict";(function(t){/*! +webpackJsonp([0],[function(t,e){t.exports=function(t,e,n,r){var o,i=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(o=t,i=t.default);var s="function"==typeof i?i.options:i;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),r){var u=Object.create(s.computed||null);Object.keys(r).forEach(function(t){var e=r[t];u[t]=function(){return e}}),s.computed=u}return{esModule:o,exports:i,options:s}}},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(77)("wks"),o=n(43),i=n(3).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(3),o=n(1),i=n(22),a=n(10),s=function(t,e,n){var u,c,f,l=t&s.F,p=t&s.G,d=t&s.S,v=t&s.P,h=t&s.B,y=t&s.W,m=p?o:o[e]||(o[e]={}),g=m.prototype,_=p?r:d?r[e]:(r[e]||{}).prototype;p&&(n=e);for(u in n)(c=!l&&_&&void 0!==_[u])&&u in m||(f=c?_[u]:n[u],m[u]=p&&"function"!=typeof _[u]?n[u]:h&&c?i(f,r):y&&_[u]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[u]=f,t&s.R&&g&&!g[u]&&a(g,u,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(7),o=n(121),i=n(80),a=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},,function(t,e,n){var r=n(16);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(5),o=n(24);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(122),o=n(71);t.exports=function(t){return r(o(t))}},function(t,e){var n=Array.isArray;t.exports=n},,function(t,e,n){"use strict";(function(t){/*! * Vue.js v2.3.4 * (c) 2014-2017 Evan You * Released under the MIT License. */ -function n(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function o(t){return!0===t}function i(t){return!1===t}function a(t){return"string"==typeof t||"number"==typeof t}function s(t){return null!==t&&"object"==typeof t}function u(t){return"[object Object]"===Po.call(t)}function c(t){return"[object RegExp]"===Po.call(t)}function f(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function l(t){var e=parseFloat(t);return isNaN(e)?t:e}function p(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(n,1)}}function v(t,e){return No.call(t,e)}function h(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function y(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function m(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function g(t,e){for(var n in e)t[n]=e[n];return t}function _(t){for(var e={},n=0;nMi&&Ai[n].id>t.id;)n--;Ai.splice(n+1,0,t)}else Ai.push(t);Ti||(Ti=!0,li(jt))}}function Et(t){Li.clear(),Tt(t,Li)}function Tt(t,e){var n,r,o=Array.isArray(t);if((o||s(t))&&Object.isExtensible(t)){if(t.__ob__){var i=t.__ob__.dep.id;if(e.has(i))return;e.add(i)}if(o)for(n=t.length;n--;)Tt(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)Tt(t[r[n]],e)}}function Pt(t,e,n){Ri.get=function(){return this[e][n]},Ri.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Ri)}function Mt(t){t._watchers=[];var e=t.$options;e.props&&Nt(t,e.props),e.methods&&zt(t,e.methods),e.data?Ft(t):M(t._data={},!0),e.computed&&Rt(t,e.computed),e.watch&&Ut(t,e.watch)}function Nt(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[],i=!t.$parent;gi.shouldConvert=i;for(var a in e)!function(i){o.push(i);var a=V(i,e,n,t);N(r,i,a),i in t||Pt(t,"_props",i)}(a);gi.shouldConvert=!0}function Ft(t){var e=t.$options.data;e=t._data="function"==typeof e?Lt(e,t):e||{},u(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,o=n.length;o--;)r&&v(r,n[o])||O(n[o])||Pt(t,"_data",n[o]);M(e,!0)}function Lt(t,e){try{return t.call(e)}catch(t){return k(t,e,"data()"),{}}}function Rt(t,e){var n=t._computedWatchers=Object.create(null);for(var r in e){var o=e[r],i="function"==typeof o?o:o.get;n[r]=new Fi(t,i,b,Ii),r in t||It(t,r,o)}}function It(t,e,n){"function"==typeof n?(Ri.get=Dt(e),Ri.set=b):(Ri.get=n.get?!1!==n.cache?Dt(e):n.get:b,Ri.set=n.set?n.set:b),Object.defineProperty(t,e,Ri)}function Dt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),di.target&&e.depend(),e.value}}function zt(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?b:y(e[n],t)}function Ut(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o=0||n.indexOf(t[o])<0)&&r.push(t[o]);return r}return t}function ye(t){this._init(t)}function me(t){t.use=function(t){if(t.installed)return this;var e=m(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):"function"==typeof t&&t.apply(null,e),t.installed=!0,this}}function ge(t){t.mixin=function(t){return this.options=H(this.options,t),this}}function _e(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||n.options.name,a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=H(n.options,t),a.super=n,a.options.props&&be(a),a.options.computed&&xe(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Ho.forEach(function(t){a[t]=n[t]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=g({},a.options),o[r]=a,a}}function be(t){var e=t.options.props;for(var n in e)Pt(t.prototype,"_props",n)}function xe(t){var e=t.options.computed;for(var n in e)It(t.prototype,n,e[n])}function we(t){Ho.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function $e(t){return t&&(t.Ctor.options.name||t.tag)}function Oe(t,e){return"string"==typeof t?t.split(",").indexOf(e)>-1:!!c(t)&&t.test(e)}function je(t,e,n){for(var r in t){var o=t[r];if(o){var i=$e(o.componentOptions);i&&!n(i)&&(o!==e&&Ce(o),t[r]=null)}}}function Ce(t){t&&t.componentInstance.$destroy()}function ke(t){for(var e=t.data,n=t,o=t;r(o.componentInstance);)o=o.componentInstance._vnode,o.data&&(e=Ae(o.data,e));for(;r(n=n.parent);)n.data&&(e=Ae(e,n.data));return Se(e)}function Ae(t,e){return{staticClass:Ee(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Se(t){var e=t.class,n=t.staticClass;return r(n)||r(e)?Ee(n,Te(e)):""}function Ee(t,e){return t?e?t+" "+e:t:e||""}function Te(t){if(n(t))return"";if("string"==typeof t)return t;var e="";if(Array.isArray(t)){for(var o,i=0,a=t.length;i-1?ya[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ya[t]=/HTMLUnknownElement/.test(e.toString())}function Ne(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function Fe(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Le(t,e){return document.createElementNS(la[t],e)}function Re(t){return document.createTextNode(t)}function Ie(t){return document.createComment(t)}function De(t,e,n){t.insertBefore(e,n)}function ze(t,e){t.removeChild(e)}function Ue(t,e){t.appendChild(e)}function Be(t){return t.parentNode}function He(t){return t.nextSibling}function qe(t){return t.tagName}function Ve(t,e){t.textContent=e}function We(t,e,n){t.setAttribute(e,n)}function Ke(t,e){var n=t.data.ref;if(n){var r=t.context,o=t.componentInstance||t.elm,i=r.$refs;e?Array.isArray(i[n])?d(i[n],o):i[n]===o&&(i[n]=void 0):t.data.refInFor?Array.isArray(i[n])&&i[n].indexOf(o)<0?i[n].push(o):i[n]=[o]:i[n]=o}}function Je(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&Ge(t,e)}function Ge(t,e){if("input"!==t.tag)return!0;var n;return(r(n=t.data)&&r(n=n.attrs)&&n.type)===(r(n=e.data)&&r(n=n.attrs)&&n.type)}function Ye(t,e,n){var o,i,a={};for(o=e;o<=n;++o)i=t[o].key,r(i)&&(a[i]=o);return a}function Ze(t,e){(t.data.directives||e.data.directives)&&Xe(t,e)}function Xe(t,e){var n,r,o,i=t===_a,a=e===_a,s=Qe(t.data.directives,t.context),u=Qe(e.data.directives,e.context),c=[],f=[];for(n in u)r=s[n],o=u[n],r?(o.oldValue=r.value,en(o,"update",e,t),o.def&&o.def.componentUpdated&&f.push(o)):(en(o,"bind",e,t),o.def&&o.def.inserted&&c.push(o));if(c.length){var l=function(){for(var n=0;n=0&&" "===(y=t.charAt(h));h--);y&&Ca.test(y)||(f=!0)}}else void 0===i?(v=o+1,i=t.slice(0,o).trim()):e();if(void 0===i?i=t.slice(0,o).trim():0!==v&&e(),a)for(o=0;o=Ki}function xn(t){return 34===t||39===t}function wn(t){var e=1;for(Zi=Yi;!bn();)if(t=_n(),xn(t))$n(t);else if(91===t&&e++,93===t&&e--,0===e){Xi=Yi;break}}function $n(t){for(var e=t;!bn()&&(t=_n())!==e;);}function On(t,e,n){Qi=n;var r=e.value,o=e.modifiers,i=t.tag,a=t.attrsMap.type;if("select"===i)kn(t,r,o);else if("input"===i&&"checkbox"===a)jn(t,r,o);else if("input"===i&&"radio"===a)Cn(t,r,o);else if("input"===i||"textarea"===i)An(t,r,o);else if(!Vo.isReservedTag(i))return yn(t,r,o),!1;return!0}function jn(t,e,n){var r=n&&n.number,o=vn(t,"value")||"null",i=vn(t,"true-value")||"true",a=vn(t,"false-value")||"false";fn(t,"checked","Array.isArray("+e+")?_i("+e+","+o+")>-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),dn(t,Aa,"var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+mn(e,"$$c")+"}",null,!0)}function Cn(t,e,n){var r=n&&n.number,o=vn(t,"value")||"null";o=r?"_n("+o+")":o,fn(t,"checked","_q("+e+","+o+")"),dn(t,Aa,mn(e,o),null,!0)}function kn(t,e,n){var r=n&&n.number,o='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",i="var $$selectedVal = "+o+";";i=i+" "+mn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),dn(t,"change",i,null,!0)}function An(t,e,n){var r=t.attrsMap.type,o=n||{},i=o.lazy,a=o.number,s=o.trim,u=!i&&"range"!==r,c=i?"change":"range"===r?ka:"input",f="$event.target.value";s&&(f="$event.target.value.trim()"),a&&(f="_n("+f+")");var l=mn(e,f);u&&(l="if($event.target.composing)return;"+l),fn(t,"value","("+e+")"),dn(t,c,l,null,!0),(s||a||"number"===r)&&dn(t,"blur","$forceUpdate()")}function Sn(t){var e;r(t[ka])&&(e=Xo?"change":"input",t[e]=[].concat(t[ka],t[e]||[]),delete t[ka]),r(t[Aa])&&(e=ri?"click":"change",t[e]=[].concat(t[Aa],t[e]||[]),delete t[Aa])}function En(t,e,n,r,o){if(n){var i=e,a=ta;e=function(n){null!==(1===arguments.length?i(n):i.apply(null,arguments))&&Tn(t,e,r,a)}}ta.addEventListener(t,e,oi?{capture:r,passive:o}:r)}function Tn(t,e,n,r){(r||ta).removeEventListener(t,e,n)}function Pn(t,e){if(!n(t.data.on)||!n(e.data.on)){var r=e.data.on||{},o=t.data.on||{};ta=e.elm,Sn(r),Q(r,o,En,Tn,e.context)}}function Mn(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var o,i,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};r(u.__ob__)&&(u=e.data.domProps=g({},u));for(o in s)n(u[o])&&(a[o]="");for(o in u)if(i=u[o],"textContent"!==o&&"innerHTML"!==o||(e.children&&(e.children.length=0),i!==s[o]))if("value"===o){a._value=i;var c=n(i)?"":String(i);Nn(a,e,c)&&(a.value=c)}else a[o]=i}}function Nn(t,e,n){return!t.composing&&("option"===e.tag||Fn(t,n)||Ln(t,n))}function Fn(t,e){return document.activeElement!==t&&t.value!==e}function Ln(t,e){var n=t.value,o=t._vModifiers;return r(o)&&o.number||"number"===t.type?l(n)!==l(e):r(o)&&o.trim?n.trim()!==e.trim():n!==e}function Rn(t){var e=In(t.style);return t.staticStyle?g(t.staticStyle,e):e}function In(t){return Array.isArray(t)?_(t):"string"==typeof t?Ta(t):t}function Dn(t,e){var n,r={};if(e)for(var o=t;o.componentInstance;)o=o.componentInstance._vnode,o.data&&(n=Rn(o.data))&&g(r,n);(n=Rn(t.data))&&g(r,n);for(var i=t;i=i.parent;)i.data&&(n=Rn(i.data))&&g(r,n);return r}function zn(t,e){var o=e.data,i=t.data;if(!(n(o.staticStyle)&&n(o.style)&&n(i.staticStyle)&&n(i.style))){var a,s,u=e.elm,c=i.staticStyle,f=i.normalizedStyle||i.style||{},l=c||f,p=In(e.data.style)||{};e.data.normalizedStyle=r(p.__ob__)?g({},p):p;var d=Dn(e,!0);for(s in l)n(d[s])&&Na(u,s,"");for(s in d)(a=d[s])!==l[s]&&Na(u,s,null==a?"":a)}}function Un(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Bn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function Hn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&g(e,Ia(t.name||"v")),g(e,t),e}return"string"==typeof t?Ia(t):void 0}}function qn(t){Wa(function(){Wa(t)})}function Vn(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),Un(t,e)}function Wn(t,e){t._transitionClasses&&d(t._transitionClasses,e),Bn(t,e)}function Kn(t,e,n){var r=Jn(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===za?Ha:Va,u=0,c=function(){t.removeEventListener(s,f),n()},f=function(e){e.target===t&&++u>=a&&c()};setTimeout(function(){u0&&(n=za,f=a,l=i.length):e===Ua?c>0&&(n=Ua,f=c,l=u.length):(f=Math.max(a,c),n=f>0?a>c?za:Ua:null,l=n?n===za?i.length:u.length:0),{type:n,timeout:f,propCount:l,hasTransform:n===za&&Ka.test(r[Ba+"Property"])}}function Gn(t,e){for(;t.length1}function er(t,e){!0!==e.data.show&&Zn(e)}function nr(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,u=t.options.length;s-1,a.selected!==i&&(a.selected=i);else if(x(or(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function rr(t,e){for(var n=0,r=e.length;n=0&&a[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var u=a.length-1;u>=o;u--)e.end&&e.end(a[u].tag,n,r);a.length=o,i=o&&a[o-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,r):"p"===s&&(e.start&&e.start(t,[],!1,n,r),e.end&&e.end(t,n,r))}for(var o,i,a=[],s=e.expectHTML,u=e.isUnaryTag||zo,c=e.canBeLeftOpenTag||zo,f=0;t;){if(o=t,i&&Bs(i)){var l=i.toLowerCase(),p=Hs[l]||(Hs[l]=new RegExp("([\\s\\S]*?)(]*>)","i")),d=0,v=t.replace(p,function(t,n,r){return d=r.length,Bs(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),e.chars&&e.chars(n),""});f+=t.length-v.length,t=v,r(l,f-d,f)}else{var h=t.indexOf("<");if(0===h){if(xs.test(t)){var y=t.indexOf("--\x3e");if(y>=0){n(y+3);continue}}if(ws.test(t)){var m=t.indexOf("]>");if(m>=0){n(m+2);continue}}var g=t.match(bs);if(g){n(g[0].length);continue}var _=t.match(_s);if(_){var b=f;n(_[0].length),r(_[1],b,f);continue}var x=function(){var e=t.match(ms);if(e){var r={tagName:e[1],attrs:[],start:f};n(e[0].length);for(var o,i;!(o=t.match(gs))&&(i=t.match(vs));)n(i[0].length),r.attrs.push(i);if(o)return r.unarySlash=o[1],n(o[0].length),r.end=f,r}}();if(x){!function(t){var n=t.tagName,o=t.unarySlash;s&&("p"===i&&fs(n)&&r(i),c(n)&&i===n&&r(n));for(var f=u(n)||"html"===n&&"head"===i||!!o,l=t.attrs.length,p=new Array(l),d=0;d=0){for($=t.slice(h);!(_s.test($)||ms.test($)||xs.test($)||ws.test($)||(O=$.indexOf("<",1))<0);)h+=O,$=t.slice(h);w=t.substring(0,h),n(h)}h<0&&(w=t,t=""),e.chars&&w&&e.chars(w)}if(t===o){e.chars&&e.chars(t);break}}r()}function br(t,e){var n=e?Gs(e):Ks;if(n.test(t)){for(var r,o,i=[],a=n.lastIndex=0;r=n.exec(t);){o=r.index,o>a&&i.push(JSON.stringify(t.slice(a,o)));var s=an(r[1].trim());i.push("_s("+s+")"),a=o+r[0].length}return a0,ti=Zo&&Zo.indexOf("edge/")>0,ei=Zo&&Zo.indexOf("android")>0,ni=Zo&&/iphone|ipad|ipod|ios/.test(Zo),ri=Zo&&/chrome\/\d+/.test(Zo)&&!ti,oi=!1;if(Yo)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){oi=!0}}),window.addEventListener("test-passive",null,ii)}catch(t){}var ai,si,ui=function(){return void 0===ai&&(ai=!Yo&&void 0!==t&&"server"===t.process.env.VUE_ENV),ai},ci=Yo&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,fi="undefined"!=typeof Symbol&&A(Symbol)&&"undefined"!=typeof Reflect&&A(Reflect.ownKeys),li=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1?m(n):n;for(var r=m(arguments,1),o=0,i=n.length;o1&&(e[n[0].trim()]=n[1].trim())}}),e}),Pa=/^--/,Ma=/\s*!important$/,Na=function(t,e,n){if(Pa.test(e))t.style.setProperty(e,n);else if(Ma.test(n))t.style.setProperty(e,n.replace(Ma,""),"important");else{var r=La(e);if(Array.isArray(n))for(var o=0,i=n.length;ov?(l=n(o[m+1])?null:o[m+1].elm,g(t,l,o,d,m,i)):d>m&&b(t,e,p,v)}function $(t,e,i,a){if(t!==e){if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))return e.elm=t.elm,void(e.componentInstance=t.componentInstance);var s,u=e.data;r(u)&&r(s=u.hook)&&r(s=s.prepatch)&&s(t,e);var c=e.elm=t.elm,f=t.children,l=e.children;if(r(u)&&h(e)){for(s=0;s',n.innerHTML.indexOf(e)>0}("\n"," "),us=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),cs=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),fs=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ls=/([^\s"'<>\/=]+)/,ps=/(?:=)/,ds=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],vs=new RegExp("^\\s*"+ls.source+"(?:\\s*("+ps.source+")\\s*(?:"+ds.join("|")+"))?"),hs="[a-zA-Z_][\\w\\-\\.]*",ys="((?:"+hs+"\\:)?"+hs+")",ms=new RegExp("^<"+ys),gs=/^\s*(\/?)>/,_s=new RegExp("^<\\/"+ys+"[^>]*>"),bs=/^]+>/i,xs=/^/g,"$1").replace(//g,"$1")),e.chars&&e.chars(n),""});f+=t.length-v.length,t=v,r(l,f-d,f)}else{var h=t.indexOf("<");if(0===h){if(xs.test(t)){var y=t.indexOf("--\x3e");if(y>=0){n(y+3);continue}}if(ws.test(t)){var m=t.indexOf("]>");if(m>=0){n(m+2);continue}}var g=t.match(bs);if(g){n(g[0].length);continue}var _=t.match(_s);if(_){var b=f;n(_[0].length),r(_[1],b,f);continue}var x=function(){var e=t.match(ms);if(e){var r={tagName:e[1],attrs:[],start:f};n(e[0].length);for(var o,i;!(o=t.match(gs))&&(i=t.match(vs));)n(i[0].length),r.attrs.push(i);if(o)return r.unarySlash=o[1],n(o[0].length),r.end=f,r}}();if(x){!function(t){var n=t.tagName,o=t.unarySlash;s&&("p"===i&&fs(n)&&r(i),c(n)&&i===n&&r(n));for(var f=u(n)||"html"===n&&"head"===i||!!o,l=t.attrs.length,p=new Array(l),d=0;d=0){for($=t.slice(h);!(_s.test($)||ms.test($)||xs.test($)||ws.test($)||(O=$.indexOf("<",1))<0);)h+=O,$=t.slice(h);w=t.substring(0,h),n(h)}h<0&&(w=t,t=""),e.chars&&w&&e.chars(w)}if(t===o){e.chars&&e.chars(t);break}}r()}function br(t,e){var n=e?Gs(e):Ks;if(n.test(t)){for(var r,o,i=[],a=n.lastIndex=0;r=n.exec(t);){o=r.index,o>a&&i.push(JSON.stringify(t.slice(a,o)));var s=an(r[1].trim());i.push("_s("+s+")"),a=o+r[0].length}return a0,ti=Zo&&Zo.indexOf("edge/")>0,ei=Zo&&Zo.indexOf("android")>0,ni=Zo&&/iphone|ipad|ipod|ios/.test(Zo),ri=Zo&&/chrome\/\d+/.test(Zo)&&!ti,oi=!1;if(Yo)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){oi=!0}}),window.addEventListener("test-passive",null,ii)}catch(t){}var ai,si,ui=function(){return void 0===ai&&(ai=!Yo&&void 0!==t&&"server"===t.process.env.VUE_ENV),ai},ci=Yo&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,fi="undefined"!=typeof Symbol&&A(Symbol)&&"undefined"!=typeof Reflect&&A(Reflect.ownKeys),li=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1?m(n):n;for(var r=m(arguments,1),o=0,i=n.length;o1&&(e[n[0].trim()]=n[1].trim())}}),e}),Pa=/^--/,Ma=/\s*!important$/,Na=function(t,e,n){if(Pa.test(e))t.style.setProperty(e,n);else if(Ma.test(n))t.style.setProperty(e,n.replace(Ma,""),"important");else{var r=La(e);if(Array.isArray(n))for(var o=0,i=n.length;ov?(l=n(o[m+1])?null:o[m+1].elm,g(t,l,o,d,m,i)):d>m&&b(t,e,p,v)}function $(t,e,i,a){if(t!==e){if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))return e.elm=t.elm,void(e.componentInstance=t.componentInstance);var s,u=e.data;r(u)&&r(s=u.hook)&&r(s=s.prepatch)&&s(t,e);var c=e.elm=t.elm,f=t.children,l=e.children;if(r(u)&&h(e)){for(s=0;s',n.innerHTML.indexOf(e)>0}("\n"," "),us=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),cs=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),fs=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ls=/([^\s"'<>\/=]+)/,ps=/(?:=)/,ds=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],vs=new RegExp("^\\s*"+ls.source+"(?:\\s*("+ps.source+")\\s*(?:"+ds.join("|")+"))?"),hs="[a-zA-Z_][\\w\\-\\.]*",ys="((?:"+hs+"\\:)?"+hs+")",ms=new RegExp("^<"+ys),gs=/^\s*(\/?)>/,_s=new RegExp("^<\\/"+ys+"[^>]*>"),bs=/^]+>/i,xs=/^