diff --git a/README.md b/README.md index 01492fb..09cb068 100644 --- a/README.md +++ b/README.md @@ -52,12 +52,17 @@ content-disposition-default-utf8=true ``` 下载列表: -![下载列表](https://user-images.githubusercontent.com/2039910/27314971-8d8f2a3a-55a9-11e7-90ad-a5751d30f38a.png) +![下载列表](https://user-images.githubusercontent.com/2039910/27525446-7d831888-5a70-11e7-9e2a-12d89f98cd1b.png) + + +切换UA: + +![切换UA](https://user-images.githubusercontent.com/2039910/27525463-ad48c45a-5a70-11e7-842c-f23cc53ae0cd.png) 设置: -![设置](https://user-images.githubusercontent.com/2039910/27327247-91090c1c-55e0-11e7-944f-5678760849ee.png) +![设置](https://user-images.githubusercontent.com/2039910/27525469-bf00a3ac-5a70-11e7-891a-d382b12b7587.png) 下载: diff --git a/safari2aria.safariextension/options.html b/safari2aria.safariextension/options.html index ec0fd3f..597c7c0 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 2c7a0dc..1f5b1b7 100644 --- a/safari2aria.safariextension/popover.html +++ b/safari2aria.safariextension/popover.html @@ -8,5 +8,5 @@
- + diff --git a/safari2aria.safariextension/static/js/manifest.js b/safari2aria.safariextension/static/js/manifest.js index 8fdffbd..70057da 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,a=t.target,n=!!a.checked;if(Array.isArray(i)){var l=e._i(i,null);n?l<0&&(e.currentValue=i.concat(null)):l>-1&&(e.currentValue=i.slice(0,l).concat(i.slice(l+1)))}else e.currentValue=n}}})])])},staticRenderFns:[]}},136: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:[]}},137: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:[]}},138: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:[]}},139: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:[]}},140: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:[]}},141: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:[]}},142: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:[]}},143:function(e,t,i){i(119);var a=i(1)(i(96),i(134),null,null);e.exports=a.exports},204:function(e,t,i){"use strict";var a=i(19),n=i(188),l=i(439),r=i.n(l);a.a.use(n.a),t.a=new n.a({routes:[{path:"/",name:"options",component:r.a}]})},210:function(e,t,i){i(341);var a=i(1)(i(227),i(419),null,null);e.exports=a.exports},216:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(19),n=i(210),l=i.n(n),r=i(204),s=i(83);a.a.use(s.a);var o=new s.a({locale:navigator.language});a.a.config.productionTip=!1,new a.a({router:r.a,i18n:o,render:function(e){return e(l.a)}}).$mount("#app-box")},223:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(20),n=i.n(a),l=i(212),r=i.n(l),s=i(239),o=function(e,t){var i=r()(t,function(t){return t.key===e});return i?i.value:e};t.default={mixins:[s.a],created:function(){void 0!==this.value&&(this.currentValue=this.value)},computed:{fixIos:function(){return!this.placeholder&&n()("undefined"===this.value||""===this.value)&&this.isIOS&&this.title},color:function(){return this.showPlaceholder?"#A9A9A9":""},processOptions:function(){return this.options.length&&{}.hasOwnProperty.call(this.options[0],"key")?this.options:this.options.map(function(e){return{key:e,value:e}})},showPlaceholder:function(){return!(void 0!==this.value&&""!==this.value||!this.placeholder)}},filters:{findByKey:o},watch:{value:function(e){this.currentValue=e},currentValue:function(e){this.$emit("input",e),this.$emit("on-change",e)}},props:{title:String,direction:String,options:{type:Array,required:!0},name:String,placeholder:String,readonly:Boolean,value:[Boolean,String,Number,Object]},data:function(){return{currentValue:"",isIOS:/iPad|iPhone|iPod/.test(window.navigator.userAgent)}}}},227:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"app"}},228:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(32),n=i.n(a),l=i(33),r=i.n(l),s=i(143),o=i.n(s),u=i(49),c=i.n(u),d=i(435),p=i.n(d),h=i(47),v=i.n(h),f=i(50),m=i.n(f),_=i(52),x=i.n(_),g=i(44),b=i.n(g),y=i(46),w=i.n(y),k=i(45),$=i.n(k),C=i(48),S=i.n(C),V=i(51),A=i.n(V),E=i(43),N=i.n(E);t.default={components:{XHeader:c.a,Group:v.a,Selector:p.a,XInput:m.a,XTextarea:x.a,CheckIcon:b.a,Flexbox:w.a,FlexboxItem:$.a,XButton:S.a,XSwitch:A.a,Cell:N.a,Radio:o.a},i18n:{messages:{"zh-CN":{Setting:"设置","Auto intercept":"自动拦截","File type":"文件类型","Aria2 Address":"aria2服务器地址",Add:"新增",Default:"默认",Push:"推送",Name:"名称",Url:"地址",Action:"操作",Delete:"删除","Auxiliary Settings":"辅助设置","Enable cookie":"启用cookie","Catch iframe":"启用iframe拦截","Download popover":"下载队列浮窗","Refresh interval":"列表刷新间隔",s:"秒",Save:"保存",xunlei:"迅雷离线",baidu:"百度离线","Offline download":"右键离线下载菜单","Enable bitfield chart":"启用文件分块图表"}}},data:function(){var e=localStorage.getItem("safari2aria");try{e=JSON.parse(e||"{}")}catch(t){e={}}return e.language&&(this.$i18n.locale=e.language),r()({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,enableXunleiLixian:!0,languageList:[{key:"en",value:"English"},{key:"zh-CN",value:"中文"}],language:navigator.language,enableBaiduLixian:!0,enableChart:!1,baidupanAutoRestart:!1,baidupanLimitSpeed:1e3,defaultRpcIndex:0,refreshTime:5,uaList:[{name:"safari 10",content:"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"}],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)},watch:{language:function(e){this.$i18n.locale=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)},addUa:function(){this.uaList.push({name:"",url:""})},delUa:function(e){this.uaList.splice(e,1)},save:function(){var e=JSON.parse(n()(this.$data));safari.self.tab.dispatchMessage("updateSafari2Aria",e),window.close()}}}},26:function(e,t,i){i(124);var a=i(1)(i(90),i(140),null,null);e.exports=a.exports},341:function(e,t){},346:function(e,t){},347:function(e,t){},419: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:[]}},424: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._s(e.$t("Setting")))]),e._v(" "),i("group",[i("selector",{attrs:{title:e.$t("Language"),options:e.languageList},model:{value:e.language,callback:function(t){e.language=t},expression:"language"}})],1),e._v(" "),i("group",[i("x-switch",{attrs:{title:e.$t("Auto intercept")},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:e.$t("File type")},model:{value:e.filetypes,callback:function(t){e.filetypes=t},expression:"filetypes"}})],1),e._v(" "),i("group",{attrs:{title:e.$t("Aria2 Address")}},[i("div",{staticClass:"cell rpcList"},[i("flexbox",{staticClass:"header"},[i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Default"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Push"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.1}},[e._v("\n "+e._s(e.$t("Name"))+"\n ")]),e._v(" "),i("flexbox-item",[e._v("\n "+e._s(e.$t("Url"))+"\n ")]),e._v(" "),i("div",{staticClass:"action"},[i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.addRpc(t)}}},[e._v(e._s(e.$t("Add")))])],1)],1),e._v(" "),e._l(e.rpcList,function(t,a){return i("flexbox",{key:a},[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:a,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:.1}},[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(a)}}},[e._v(e._s(e.$t("Delete")))]):e._e()],1)})],2)]),e._v(" "),i("group",{attrs:{title:e.$t("Auxiliary Settings")}},[i("x-switch",{attrs:{title:e.$t("Enable cookie")},model:{value:e.enableCookie,callback:function(t){e.enableCookie=t},expression:"enableCookie"}}),e._v(" "),i("x-switch",{attrs:{title:e.$t("Catch iframe")},model:{value:e.catchIframe,callback:function(t){e.catchIframe=t},expression:"catchIframe"}})],1),e._v(" "),i("group",{attrs:{title:"User-agent"}},[i("div",{staticClass:"cell rpcList"},[i("flexbox",{staticClass:"header"},[i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Default"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.1}},[e._v("\n "+e._s(e.$t("Name"))+"\n ")]),e._v(" "),i("flexbox-item",[e._v("\n User-agent\n ")]),e._v(" "),i("div",{staticClass:"action"},[i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.addUa(t)}}},[e._v(e._s(e.$t("Add")))])],1)],1),e._v(" "),e._l(e.uaList,function(t,a){return i("flexbox",{key:a},[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:t.content,value:e.userAgent},on:{"update:value":function(t){e.userAgent=t}}})],1),e._v(" "),i("flexbox-item",{staticClass:"name",attrs:{span:.1}},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.name,callback:function(e){t.name=e},expression:"ua.name"}})],1),e._v(" "),i("flexbox-item",{staticClass:"content"},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.content,callback:function(e){t.content=e},expression:"ua.content"}})],1),e._v(" "),e.uaList.length>1?i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.delUa(a)}}},[e._v(e._s(e.$t("Delete")))]):e._e()],1)})],2)]),e._v(" "),i("group",{attrs:{title:e.$t("Download popover")}},[i("x-input",{staticClass:"right_input",attrs:{title:e.$t("Refresh interval"),type:"number","show-clear":!1},model:{value:e.refreshTime,callback:function(t){e.refreshTime=t},expression:"refreshTime"}},[i("span",{slot:"right"},[e._v(e._s(e.$t("s")))])]),e._v(" "),i("x-switch",{attrs:{title:e.$t("Enable bitfield chart")},model:{value:e.enableChart,callback:function(t){e.enableChart=t},expression:"enableChart"}})],1),e._v(" "),i("group",{attrs:{title:e.$t("Offline download")}},[i("x-switch",{attrs:{title:e.$t("xunlei")},model:{value:e.enableXunleiLixian,callback:function(t){e.enableXunleiLixian=t},expression:"enableXunleiLixian"}}),e._v(" "),i("x-switch",{attrs:{title:e.$t("baidu")},model:{value:e.enableBaiduLixian,callback:function(t){e.enableBaiduLixian=t},expression:"enableBaiduLixian"}})],1),e._v(" "),i("group",[i("x-button",{nativeOn:{click:function(t){e.save(e.index)}}},[e._v(e._s(e.$t("Save")))])],1)],1)},staticRenderFns:[]}},425:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-selector weui-cell",class:{"weui-cell_select":!e.readonly,"weui-cell_select-after":e.title}},[e.title?i("div",{staticClass:"weui-cell__hd"},[i("label",{staticClass:"weui-label",style:{width:e.$parent.labelWidth,textAlign:e.$parent.labelAlign,marginRight:e.$parent.labelMarginRight},attrs:{for:"vux-selector-"+e.uuid}},[e._v(e._s(e.title))])]):e._e(),e._v(" "),e.readonly?i("div",{staticClass:"weui-cell__ft vux-selector-readonly"},[e._v("\n "+e._s(e._f("findByKey")(e.value,e.processOptions))+"\n ")]):i("div",{staticClass:"weui-cell__bd"},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"weui-select",staticStyle:{color:"red"},style:{direction:e.direction,color:e.color},attrs:{id:"vux-selector-"+e.uuid,ddd:e.color,name:e.name},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.currentValue=t.target.multiple?i:i[0]}}},[e.showPlaceholder?i("option",{attrs:{value:""},domProps:{selected:void 0===e.value&&e.placeholder}},[e._v(e._s(e.placeholder))]):e._e(),e._v(" "),e.fixIos?i("option",{attrs:{disabled:""}}):e._e(),e._v(" "),e._l(e.processOptions,function(t){return i("option",{domProps:{value:t.key}},[e._v(e._s(t.value))])})],2)])])},staticRenderFns:[]}},43:function(e,t,i){i(118);var a=i(1)(i(85),i(133),null,null);e.exports=a.exports},435:function(e,t,i){i(347);var a=i(1)(i(223),i(425),null,null);e.exports=a.exports},439:function(e,t,i){i(346);var a=i(1)(i(228),i(424),null,null);e.exports=a.exports},44:function(e,t,i){i(121);var a=i(1)(i(86),i(137),null,null);e.exports=a.exports},45:function(e,t,i){var a=i(1)(i(87),i(136),null,null);e.exports=a.exports},46:function(e,t,i){i(116);var a=i(1)(i(88),i(131),null,null);e.exports=a.exports},47:function(e,t,i){i(125);var a=i(1)(i(89),i(141),null,null);e.exports=a.exports},48:function(e,t,i){i(115);var a=i(1)(i(91),i(130),null,null);e.exports=a.exports},49:function(e,t,i){i(117);var a=i(1)(i(92),i(132),null,null);e.exports=a.exports},50:function(e,t,i){i(122);var a=i(1)(i(93),i(138),null,null);e.exports=a.exports},51:function(e,t,i){i(120);var a=i(1)(i(94),i(135),null,null);e.exports=a.exports},52:function(e,t,i){i(126);var a=i(1)(i(95),i(142),null,null);e.exports=a.exports},85:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(12),n=i.n(a),l=i(36),r=i(150);t.default={components:{InlineDesc:n.a},props:i.i(r.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(l.a)(this.link,this.$router)}},data:function(){return{hasTitleSlot:!1}}}},86:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(26),n=i.n(a);t.default={components:{Icon:n.a},methods:{updateValue:function(){this.$emit("update:value",!this.value)}},props:{value:{type:Boolean,default:!1},type:{type:String,default:"default"}}}},87:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=["-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(v.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:[l.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 n()(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=n()(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=f[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)}}}},94:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(12),n=i.n(a);t.default={components:{InlineDesc:n.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}}}},95:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(35),n=i(12),l=i.n(n),r=i(148),s=i.n(r);t.default={minxins:[a.a],mounted:function(){var e=this;this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0),this.$nextTick(function(){e.autosize&&e.bindAutosize()})},components:{InlineDesc:l.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()}}},96:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(26),n=i.n(a);t.default={components:{Icon:n.a},methods:{updateValue:function(){this.$emit("update:value",this.val)}},props:{value:[String,Number],val:[String,Number],type:{type:String,default:"default"}}}}},[216]); \ No newline at end of file +webpackJsonp([2],{115:function(e,t){},116:function(e,t){},117:function(e,t){},118:function(e,t){},119:function(e,t){},12:function(e,t,i){i(123);var a=i(1)(null,i(139),null,null);e.exports=a.exports},120:function(e,t){},121:function(e,t){},122:function(e,t){},123:function(e,t){},124:function(e,t){},125:function(e,t){},126:function(e,t){},130: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:[]}},131: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:[]}},132: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:[]}},133: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:[]}},134: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:[]}},135: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,a=t.target,n=!!a.checked;if(Array.isArray(i)){var l=e._i(i,null);n?l<0&&(e.currentValue=i.concat(null)):l>-1&&(e.currentValue=i.slice(0,l).concat(i.slice(l+1)))}else e.currentValue=n}}})])])},staticRenderFns:[]}},136: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:[]}},137: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:[]}},138: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:[]}},139: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:[]}},140: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:[]}},141: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:[]}},142: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:[]}},143:function(e,t,i){i(119);var a=i(1)(i(96),i(134),null,null);e.exports=a.exports},204:function(e,t,i){"use strict";var a=i(19),n=i(188),l=i(439),r=i.n(l);a.a.use(n.a),t.a=new n.a({routes:[{path:"/",name:"options",component:r.a}]})},210:function(e,t,i){i(341);var a=i(1)(i(227),i(419),null,null);e.exports=a.exports},216:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(19),n=i(210),l=i.n(n),r=i(204),s=i(83);a.a.use(s.a);var o=new s.a({locale:navigator.language});a.a.config.productionTip=!1,new a.a({router:r.a,i18n:o,render:function(e){return e(l.a)}}).$mount("#app-box")},223:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(20),n=i.n(a),l=i(212),r=i.n(l),s=i(239),o=function(e,t){var i=r()(t,function(t){return t.key===e});return i?i.value:e};t.default={mixins:[s.a],created:function(){void 0!==this.value&&(this.currentValue=this.value)},computed:{fixIos:function(){return!this.placeholder&&n()("undefined"===this.value||""===this.value)&&this.isIOS&&this.title},color:function(){return this.showPlaceholder?"#A9A9A9":""},processOptions:function(){return this.options.length&&{}.hasOwnProperty.call(this.options[0],"key")?this.options:this.options.map(function(e){return{key:e,value:e}})},showPlaceholder:function(){return!(void 0!==this.value&&""!==this.value||!this.placeholder)}},filters:{findByKey:o},watch:{value:function(e){this.currentValue=e},currentValue:function(e){this.$emit("input",e),this.$emit("on-change",e)}},props:{title:String,direction:String,options:{type:Array,required:!0},name:String,placeholder:String,readonly:Boolean,value:[Boolean,String,Number,Object]},data:function(){return{currentValue:"",isIOS:/iPad|iPhone|iPod/.test(window.navigator.userAgent)}}}},227:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"app"}},228:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(32),n=i.n(a),l=i(33),r=i.n(l),s=i(143),o=i.n(s),u=i(49),c=i.n(u),d=i(435),p=i.n(d),h=i(47),v=i.n(h),f=i(50),m=i.n(f),_=i(52),x=i.n(_),g=i(44),b=i.n(g),y=i(46),w=i.n(y),k=i(45),$=i.n(k),C=i(48),S=i.n(C),V=i(51),A=i.n(V),E=i(43),N=i.n(E);t.default={components:{XHeader:c.a,Group:v.a,Selector:p.a,XInput:m.a,XTextarea:x.a,CheckIcon:b.a,Flexbox:w.a,FlexboxItem:$.a,XButton:S.a,XSwitch:A.a,Cell:N.a,Radio:o.a},i18n:{messages:{"zh-CN":{Setting:"设置","Auto intercept":"自动拦截","File type":"文件类型","Aria2 Address":"aria2服务器地址",Add:"新增",Default:"默认",Push:"推送",Name:"名称",Url:"地址",Action:"操作",Delete:"删除","Auxiliary Settings":"辅助设置","Enable cookie":"启用cookie","Catch iframe":"启用iframe拦截","Download popover":"下载队列浮窗","Refresh interval":"列表刷新间隔",s:"秒",Save:"保存",xunlei:"迅雷离线",baidu:"百度离线","Offline download":"右键离线下载菜单","Enable bitfield chart":"启用文件分块图表"}}},data:function(){var e=localStorage.getItem("safari2aria");try{e=JSON.parse(e||"{}")}catch(t){e={}}return e.language&&(this.$i18n.locale=e.language),r()({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,enableXunleiLixian:!0,languageList:[{key:"en",value:"English"},{key:"zh-CN",value:"中文"}],language:navigator.language,enableBaiduLixian:!0,enableChart:!1,baidupanAutoRestart:!1,baidupanLimitSpeed:1e3,defaultRpcIndex:0,refreshTime:5,uaList:[{name:"safari 10",content:"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"}],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)},watch:{language:function(e){this.$i18n.locale=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)},addUa:function(){this.uaList.push({name:"",url:""})},delUa:function(e){this.uaList.splice(e,1)},save:function(){var e=JSON.parse(n()(this.$data));safari.self.tab.dispatchMessage("updateSafari2Aria",e),window.close()}}}},26:function(e,t,i){i(124);var a=i(1)(i(90),i(140),null,null);e.exports=a.exports},341:function(e,t){},346:function(e,t){},347:function(e,t){},419: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:[]}},424: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._s(e.$t("Setting")))]),e._v(" "),i("group",[i("selector",{attrs:{title:e.$t("Language"),options:e.languageList},model:{value:e.language,callback:function(t){e.language=t},expression:"language"}})],1),e._v(" "),i("group",[i("x-switch",{attrs:{title:e.$t("Auto intercept")},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:e.$t("File type")},model:{value:e.filetypes,callback:function(t){e.filetypes=t},expression:"filetypes"}})],1),e._v(" "),i("group",{attrs:{title:e.$t("Aria2 Address")}},[i("div",{staticClass:"cell rpcList"},[i("flexbox",{staticClass:"header"},[i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Default"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Push"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.1}},[e._v("\n "+e._s(e.$t("Name"))+"\n ")]),e._v(" "),i("flexbox-item",[e._v("\n "+e._s(e.$t("Url"))+"\n ")]),e._v(" "),i("div",{staticClass:"action"},[i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.addRpc(t)}}},[e._v(e._s(e.$t("Add")))])],1)],1),e._v(" "),e._l(e.rpcList,function(t,a){return i("flexbox",{key:a},[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:a,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:.1}},[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(a)}}},[e._v(e._s(e.$t("Delete")))]):e._e()],1)})],2)]),e._v(" "),i("group",{attrs:{title:e.$t("Auxiliary Settings")}},[i("x-switch",{attrs:{title:e.$t("Enable cookie")},model:{value:e.enableCookie,callback:function(t){e.enableCookie=t},expression:"enableCookie"}}),e._v(" "),i("x-switch",{attrs:{title:e.$t("Catch iframe")},model:{value:e.catchIframe,callback:function(t){e.catchIframe=t},expression:"catchIframe"}})],1),e._v(" "),i("group",{attrs:{title:"User-Agent"}},[i("div",{staticClass:"cell rpcList"},[i("flexbox",{staticClass:"header"},[i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Default"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.1}},[e._v("\n "+e._s(e.$t("Name"))+"\n ")]),e._v(" "),i("flexbox-item",[e._v("\n User-agent\n ")]),e._v(" "),i("div",{staticClass:"action"},[i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.addUa(t)}}},[e._v(e._s(e.$t("Add")))])],1)],1),e._v(" "),e._l(e.uaList,function(t,a){return i("flexbox",{key:a},[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:t.content,value:e.userAgent},on:{"update:value":function(t){e.userAgent=t}}})],1),e._v(" "),i("flexbox-item",{staticClass:"name",attrs:{span:.1}},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.name,callback:function(e){t.name=e},expression:"ua.name"}})],1),e._v(" "),i("flexbox-item",{staticClass:"content"},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.content,callback:function(e){t.content=e},expression:"ua.content"}})],1),e._v(" "),e.uaList.length>1?i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.delUa(a)}}},[e._v(e._s(e.$t("Delete")))]):e._e()],1)})],2)]),e._v(" "),i("group",{attrs:{title:e.$t("Download popover")}},[i("x-input",{staticClass:"right_input",attrs:{title:e.$t("Refresh interval"),type:"number","show-clear":!1},model:{value:e.refreshTime,callback:function(t){e.refreshTime=t},expression:"refreshTime"}},[i("span",{slot:"right"},[e._v(e._s(e.$t("s")))])]),e._v(" "),i("x-switch",{attrs:{title:e.$t("Enable bitfield chart")},model:{value:e.enableChart,callback:function(t){e.enableChart=t},expression:"enableChart"}})],1),e._v(" "),i("group",{attrs:{title:e.$t("Offline download")}},[i("x-switch",{attrs:{title:e.$t("xunlei")},model:{value:e.enableXunleiLixian,callback:function(t){e.enableXunleiLixian=t},expression:"enableXunleiLixian"}}),e._v(" "),i("x-switch",{attrs:{title:e.$t("baidu")},model:{value:e.enableBaiduLixian,callback:function(t){e.enableBaiduLixian=t},expression:"enableBaiduLixian"}})],1),e._v(" "),i("group",[i("x-button",{nativeOn:{click:function(t){e.save(e.index)}}},[e._v(e._s(e.$t("Save")))])],1)],1)},staticRenderFns:[]}},425:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-selector weui-cell",class:{"weui-cell_select":!e.readonly,"weui-cell_select-after":e.title}},[e.title?i("div",{staticClass:"weui-cell__hd"},[i("label",{staticClass:"weui-label",style:{width:e.$parent.labelWidth,textAlign:e.$parent.labelAlign,marginRight:e.$parent.labelMarginRight},attrs:{for:"vux-selector-"+e.uuid}},[e._v(e._s(e.title))])]):e._e(),e._v(" "),e.readonly?i("div",{staticClass:"weui-cell__ft vux-selector-readonly"},[e._v("\n "+e._s(e._f("findByKey")(e.value,e.processOptions))+"\n ")]):i("div",{staticClass:"weui-cell__bd"},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"weui-select",staticStyle:{color:"red"},style:{direction:e.direction,color:e.color},attrs:{id:"vux-selector-"+e.uuid,ddd:e.color,name:e.name},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.currentValue=t.target.multiple?i:i[0]}}},[e.showPlaceholder?i("option",{attrs:{value:""},domProps:{selected:void 0===e.value&&e.placeholder}},[e._v(e._s(e.placeholder))]):e._e(),e._v(" "),e.fixIos?i("option",{attrs:{disabled:""}}):e._e(),e._v(" "),e._l(e.processOptions,function(t){return i("option",{domProps:{value:t.key}},[e._v(e._s(t.value))])})],2)])])},staticRenderFns:[]}},43:function(e,t,i){i(118);var a=i(1)(i(85),i(133),null,null);e.exports=a.exports},435:function(e,t,i){i(347);var a=i(1)(i(223),i(425),null,null);e.exports=a.exports},439:function(e,t,i){i(346);var a=i(1)(i(228),i(424),null,null);e.exports=a.exports},44:function(e,t,i){i(121);var a=i(1)(i(86),i(137),null,null);e.exports=a.exports},45:function(e,t,i){var a=i(1)(i(87),i(136),null,null);e.exports=a.exports},46:function(e,t,i){i(116);var a=i(1)(i(88),i(131),null,null);e.exports=a.exports},47:function(e,t,i){i(125);var a=i(1)(i(89),i(141),null,null);e.exports=a.exports},48:function(e,t,i){i(115);var a=i(1)(i(91),i(130),null,null);e.exports=a.exports},49:function(e,t,i){i(117);var a=i(1)(i(92),i(132),null,null);e.exports=a.exports},50:function(e,t,i){i(122);var a=i(1)(i(93),i(138),null,null);e.exports=a.exports},51:function(e,t,i){i(120);var a=i(1)(i(94),i(135),null,null);e.exports=a.exports},52:function(e,t,i){i(126);var a=i(1)(i(95),i(142),null,null);e.exports=a.exports},85:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(12),n=i.n(a),l=i(36),r=i(150);t.default={components:{InlineDesc:n.a},props:i.i(r.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(l.a)(this.link,this.$router)}},data:function(){return{hasTitleSlot:!1}}}},86:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(26),n=i.n(a);t.default={components:{Icon:n.a},methods:{updateValue:function(){this.$emit("update:value",!this.value)}},props:{value:{type:Boolean,default:!1},type:{type:String,default:"default"}}}},87:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=["-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(v.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:[l.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 n()(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=n()(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=f[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)}}}},94:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(12),n=i.n(a);t.default={components:{InlineDesc:n.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}}}},95:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(35),n=i(12),l=i.n(n),r=i(148),s=i.n(r);t.default={minxins:[a.a],mounted:function(){var e=this;this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0),this.$nextTick(function(){e.autosize&&e.bindAutosize()})},components:{InlineDesc:l.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()}}},96:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(26),n=i.n(a);t.default={components:{Icon:n.a},methods:{updateValue:function(){this.$emit("update:value",this.val)}},props:{value:[String,Number],val:[String,Number],type:{type:String,default:"default"}}}}},[216]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/popover.2704b6110e917c748637.js b/safari2aria.safariextension/static/js/popover.f2fa40e3c74209f2ab5a.js similarity index 71% rename from safari2aria.safariextension/static/js/popover.2704b6110e917c748637.js rename to safari2aria.safariextension/static/js/popover.f2fa40e3c74209f2ab5a.js index 1f8fb5e..5b56129 100644 --- a/safari2aria.safariextension/static/js/popover.2704b6110e917c748637.js +++ b/safari2aria.safariextension/static/js/popover.f2fa40e3c74209f2ab5a.js @@ -1 +1 @@ -webpackJsonp([1],[,,,,,,,,,,,,function(e,t,i){i(123);var n=i(1)(null,i(139),null,null);e.exports=n.exports},,,,,,,,,,,,,,function(e,t,i){i(124);var n=i(1)(i(90),i(140),null,null);e.exports=n.exports},,,,,,,,,,,,,,,,,function(e,t,i){i(118);var n=i(1)(i(85),i(133),null,null);e.exports=n.exports},function(e,t,i){i(121);var n=i(1)(i(86),i(137),null,null);e.exports=n.exports},function(e,t,i){var n=i(1)(i(87),i(136),null,null);e.exports=n.exports},function(e,t,i){i(116);var n=i(1)(i(88),i(131),null,null);e.exports=n.exports},function(e,t,i){i(125);var n=i(1)(i(89),i(141),null,null);e.exports=n.exports},function(e,t,i){i(115);var n=i(1)(i(91),i(130),null,null);e.exports=n.exports},function(e,t,i){i(117);var n=i(1)(i(92),i(132),null,null);e.exports=n.exports},function(e,t,i){i(122);var n=i(1)(i(93),i(138),null,null);e.exports=n.exports},function(e,t,i){i(120);var n=i(1)(i(94),i(135),null,null);e.exports=n.exports},function(e,t,i){i(126);var n=i(1)(i(95),i(142),null,null);e.exports=n.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";(function(e){var t=i(32),n=i.n(t),a=i(20),s=i.n(a),o=i(152),r=i.n(o),l=i(184),c=i.n(l);!function(t){var i=void 0!==e&&e.exports,a=function e(t){this.callbacks=r()(null),this.lastId=0;for(var i in e.options)this[i]="object"===(void 0===t?"undefined":s()(t))&&i in t?t[i]:e.options[i]};a.prototype.http=function(e,t){var i=this,a={method:e.method,id:e.id};Array.isArray(e.params)&&e.params.length>0&&(a.params=e.params);var s="http"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path;fetch(s,{method:"POST",body:n()(a),headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){i._onmessage(e)}).catch(t)},a.prototype.send=function(e){var t=Array.prototype.slice.call(arguments,1),i="function"==typeof t[t.length-1]?t.pop():null;return this.exec(e,t,i)},a.prototype.exec=function(e,t,i){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++},s=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=s.concat(e.params)}),s=t):s=s.concat(t)),s.length>0&&(a.params=s),this.onsend(a);var o=this;return this.socket&&1===this.socket.readyState?this.socket.send(n()(a)):this.http(a,function(e){o.callbacks[a.id](e),delete o.callbacks[a.id]}),c()(function(e){o.callbacks[a.id]=e},i)},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 i=e.method.split("aria2.")[1];0===i.indexOf("on")&&"function"==typeof this[i]&&a.notifications.indexOf(i)>-1&&this[i].apply(this,e.params)}},a.prototype.open=function(e){var t="ws"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path,i=this.socket=new WebSocket(t),n=this,a=!1;return i.onmessage=function(e){n._onmessage(JSON.parse(e.data))},c()(function(e){i.onopen=function(){a||(e(),a=!0),n.onopen()},i.onclose=function(t){n.onclose(),1006==t.code&&(a||(e(t),a=!0))},i.onerror=function(t){a||(e(t),a=!0)}},e)},a.prototype.close=function(e){var t=this.socket;return c()(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(){}}),i?e.exports=a:t.Aria2=a}(this)}).call(t,i(189)(e))},,,function(e,t,i){"use strict";function n(e){var t="";return t=e.bittorrent?d()(e,"bittorrent.info.name",["BT:",e.infoHash].join("")):d()(e,"files[0].path","").replace(/^.*[\\\/]/,""),t||(t=d()(e,"files[0].uris[0].uri")),t||"..."}function a(e,t){e=Number(e);var i=["Bytes","KB","MB","GB","TB"];if(0===e)return"0 KB";var n=parseInt(Math.floor(Math.log(e)/Math.log(1e3)),10);if(0===n)return e+" "+i[n];var a=[1,1,10,100,100][n];return c()(t)&&(a=Math.pow(10,t)),""+Math.floor(100*e/Math.pow(1024,n)*a)/(100*a)+i[n]}function s(e,t){function i(e,t){return(new Array(t+1).join("0")+e).slice(-t)}var n=/((?:[^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(e,10),o=function(e){for(var t=[],i=e?e.toString():"";i;){var a=n.exec(i);a?(t=t.concat(a.slice(1)),i=t.pop()):(t.push(i),i=null)}return t}(t);return isNaN(s)||0===o.length?e:function(e,t){var n="",s={};t.filter(function(e){return a.hasOwnProperty(e)}).map(function(e){var t=a[e];return t.hasOwnProperty("pad")?t.value:e}).filter(function(e,t,i){return i.indexOf(e)===t}).map(function(e){return r()({name:e},a[e])}).sort(function(e,t){return t.value-e.value}).forEach(function(t){var i=s[t.name]=Math.floor(e/t.value);e-=i*t.value});for(var o=0;o=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:[s.a],components:{Icon:r.a,InlineDesc:c.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)}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(12),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}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(35),a=i(12),s=i.n(a),o=i(148),r=i.n(o);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: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(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(){r()(this.$refs.textarea)},unbindAutosize:function(){r.a.destroy(this.$refs.textarea)},focus:function(){this.$refs.textarea.focus()}},beforeDestroy:function(){this.unbindAutosize()}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(26),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"}}}},,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,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:[]}},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:[]}},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:[]}},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:[]}},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:[]}},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 s=e._i(i,null);a?s<0&&(e.currentValue=i.concat(null)):s>-1&&(e.currentValue=i.slice(0,s).concat(i.slice(s+1)))}else e.currentValue=a}}})])])},staticRenderFns:[]}},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:[]}},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:[]}},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:[]}},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:[]}},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:[]}},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:[]}},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:[]}},function(e,t,i){i(119);var n=i(1)(i(96),i(134),null,null);e.exports=n.exports},,,,,,function(e,t,i){"use strict";var n=i(82),a=(i.n(n),i(34)),s=i.n(a);i(81);t.a={getConfig:function(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],s()(safari,"extension.globalPage.contentWindow.s2a",{}));if(e.getConfig){var t=e.getConfig();t.aria2Connects}return e}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";var n=i(19),a=i(188),s=i(440),o=i.n(s);n.a.use(a.a),t.a=new a.a({routes:[{path:"/",name:"Index",component:o.a}]})},function(e,t,i){"use strict";var n=i(33),a=i.n(n),s=i(32),o=i.n(s),r=i(57),l=i.n(r),c=i(247),u=i.n(c),d=i(58),h=i.n(d),p=i(244),f=i.n(p),v=i(153),m=i.n(v),g=i(34),w=i.n(g),_=i(82),x=i.n(_),b=i(19),y=i(76),S=i(84),k=i(149);b.a.use(y.a);var C=void 0,O={get_s2a:function(){if(!C||!C.getConfig){for(var e=arguments.length,t=Array(e),i=0;i1?n-1:0),s=1;s1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:{config:{}},n=JSON.parse(o()(h()({},t.config,i.config)));C.dispatchMessage({name:"updateSafari2Aria",message:n})},toggleSelectedStatus:function(e){var t=e.dispatch,i=e.state,n=e.getters,a=(e.commit,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),s=w()(a,"gids",i.selectedGids),o=n.taskLists.filter(function(e){return~s.indexOf(e.gid)}),r={active:[],paused:[]};o.map(function(e){var t=e.status;t="waiting"===t?"active":t,r[t]=r[t]||[],r[t].push(e.gid)});var l=r.active.length>=r.paused.length?"active":"paused",c=r.active.length>=r.paused.length?"pause":"unpause";return r.active.length||r.paused.length?O.mutilCall(i.currentServerUrl,r[l].map(function(e){return{methodName:"aria2."+c,params:[e]}})).then(function(){return t("getTaskList")}):f.a.resolve("no change")},saveOptions:function(e){var t=e.dispatch,i=e.state,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return O.sendCall(i.currentServerUrl,"aria2.changeGlobalOption",h()({},n.options)).then(function(){return t("getTaskList",{loadOptions:!0})}).catch(function(e){console.log(e)})},startSelectedDownloads:function(e){var t=e.dispatch,i=e.state,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=w()(n,"gids",i.selectedGids);return O.mutilCall(i.currentServerUrl,a.map(function(e){return{methodName:"aria2.unpause",params:[e]}})).then(function(){return t("getTaskList")})},pauseSelectedDownloads:function(e){var t=e.dispatch,i=e.state,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=w()(n,"gids",i.selectedGids);return O.mutilCall(i.currentServerUrl,a.map(function(e){return{methodName:"aria2.pause",params:[e]}})).then(function(){return t("getTaskList")})},removeSelectedDownloads:function(e){var t=e.dispatch,i=e.state,n=e.getters,a=e.commit,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=w()(s,"gids",i.selectedGids),r=n.taskLists.filter(function(e){return~o.indexOf(e.gid)});return O.mutilCall(i.currentServerUrl,r.map(function(e){return{methodName:"aria2."+(~["active","paused","waiting"].indexOf(e.status)?"remove":"removeDownloadResult"),params:[e.gid]}})).then(function(){return a("setSelected",{selected:[]}),t("getTaskList")})},removeStoppedDownloads:function(e){var t=e.dispatch,i=e.state,n=(e.getters,e.commit);arguments.length>1&&void 0!==arguments[1]&&arguments[1];return O.sendCall(i.currentServerUrl,"aria2.purgeDownloadResult").then(function(){return n("setSelected",{selected:[]}),t("getTaskList")})},getTaskList:function(e){var t=e.commit,i=e.state,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!O.get_s2a())return f.a.reject("获取global变量错误");i.currentServerUrl||t("refreshServerList");var a=[{methodName:"aria2.tellActive",params:[]}];return n.activeList||a.push({methodName:"aria2.tellWaiting",params:[0,1e3]},{methodName:"aria2.tellStopped",params:[0,1e3]}),a.push({methodName:"aria2.getGlobalStat",params:null}),n.loadOptions&&a.push({methodName:"aria2.getGlobalOption",params:null}),i.currentServerUrl?O.sendCall(i.currentServerUrl,"system.multicall",a).then(function(e){var a=void 0;a=n.activeList?h()({},i.taskList[i.currentServerUrl],{active:e[0][0]||[]}):{active:e[0][0]||[],waiting:e[1][0]||[],stopped:e[2][0]||[]},t("setTaskList",{list:a,url:i.currentServerUrl});var s=n.activeList?1:3;if(t("setGlobalStat",{globalStat:e[s][0]}),w()(window.safari||{},"extension.toolbarItems")&&(a.active.length>0||a.waiting.length>0?safari.extension.toolbarItems[0].badge=a.active.length+a.waiting.length:safari.extension.toolbarItems[0].badge=0),n.loadOptions&&t("setGlobalOption",{globalOption:e[s+1][0]}),e[s]&&e[s].code)return f.a.reject(e[s])}).catch(function(e){t("setGlobalStat",{globalStat:!1}),console.log("获取列表失败",e)}):f.a.reject("no server url")}},T={isDebug:function(e){return!!O.get_s2a()&&C.isDebug},serverList:function(e){return e.serverList},getAllTaskGid:function(e,t){return t.taskLists.map(function(e){return e.gid})},getStoppedTaskGid:function(){var e=$.currentServerUrl;return w()($,["taskList",e,"stopped"],[]).map(function(e){return e?e.gid:null})},getGlobalStat:function(e){var t=a()({},e.globalStat);return t.downloadSpeedText=S.a(t.downloadSpeed||0)+"/s",t.uploadSpeedText=S.a(t.uploadSpeed||0)+"/s",t},taskLists:function(e){var t=["complete","error","paused","waiting","active"],i=e.currentServerUrl,n=[];return e.taskList[i]&&(n=[].concat(e.taskList[i].active||[],e.taskList[i].waiting||[],e.taskList[i].stopped||[]),n=n.slice(0).sort(function(e,i){return e.status===i.status?S.b(i)>S.b(e)?1:-1:t.indexOf(i.status)>t.indexOf(e.status)?1:-1})),n},selectedTasks:function(e,t){return t.taskLists.filter(function(t){return~e.selectedGids.indexOf(t.gid)})}};t.a=new y.a.Store({state:$,getters:T,actions:V,mutations:L})},function(e,t,i){"use strict";var n=i(241),a=i.n(n),s=i(57),o=i.n(s),r=i(218),l=function(e){return o()(e).map(function(t){var n={};return t.split("+").forEach(function(e){switch(e.toLowerCase()){case"ctrl":case"alt":case"shift":case"meta":n[e]=!0;break;default:n.keyCode=i.i(r.a)(e)}}),n.callback=e[t],n})};t.a={install:function(e){e.directive("hotkey",{bind:function(e,t,i,n){e._keymap=l(t.value),e._keyHandler=function(t){var i=!0,n=!1,s=void 0;try{for(var o,r=a()(e._keymap);!(i=(o=r.next()).done);i=!0){var l=o.value;l.keyCode===t.keyCode&&!!l.ctrl===t.ctrlKey&&!!l.alt===t.altKey&&!!l.shift===t.shiftKey&&!!l.meta===t.metaKey&&l.callback(t)}}catch(e){n=!0,s=e}finally{try{!i&&r.return&&r.return()}finally{if(n)throw s}}},document.addEventListener("keydown",e._keyHandler)},unbind:function(e,t,i,n){document.removeEventListener("keydown",e._keyHandler)}})}}},,,,function(e,t,i){i(338);var n=i(1)(i(229),i(416),null,null);e.exports=n.exports},,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(19),a=i(211),s=i.n(a),o=i(205),r=i(206),l=i(207),c=i(208),u=i(83);n.a.use(u.a);var d=new u.a({locale:navigator.language});n.a.use(c.a),n.a.use(l.a),new n.a({router:o.a,store:r.a,i18n:d,render:function(e){return e(s.a)}}).$mount("#app-box"),window.tlwin={refreshServerList:function(){r.a.commit("refreshServerList")},refreshTaskList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.a.dispatch("getTaskList",{loadOptions:!0,all:e.all})}}},function(e,t,i){"use strict";var n=i(20),a=i.n(n);t.a=function(e){if(e&&"object"===(void 0===e?"undefined":a()(e))){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return names[e];var i=String(e),n=s[i.toLowerCase()];if(n)return n;var n=o[i.toLowerCase()];return n||(1===i.length?i.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(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(153),a=i.n(n),s=i(41),o=i.n(s),r=i(177),l=i.n(r),c=i(19),u=["legendselectchanged","legendselected","legendunselected","datazoom","datarangeselected","timelinechanged","timelineplaychanged","restore","dataviewchanged","magictypechanged","geoselectchanged","geoselected","geounselected","pieselectchanged","pieselected","pieunselected","mapselectchanged","mapselected","mapunselected","axisareaselected","brush","brushselected"],d=["click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout"];t.default={props:{options:Object,theme:String,initOptions:Object,group:String,autoResize:Boolean},data:function(){return{chart:null}},computed:{width:{cache:!1,get:function(){return this._delegateGet("width","getWidth")}},height:{cache:!1,get:function(){return this._delegateGet("height","getHeight")}},isDisposed:{cache:!1,get:function(){return!!this._delegateGet("isDisposed","isDisposed")}},computedOptions:{cache:!1,get:function(){return this._delegateGet("computedOptions","getOption")}}},watch:{options:{handler:function(e){!this.chart&&e?this._init():this.chart.setOption(this.options,!0)},deep:!0},group:{handler:function(e){this.chart.group=e}}},methods:{mergeOptions:function(e){this._delegateMethod("setOption",e)},resize:function(e){this._delegateMethod("resize",e)},dispatchAction:function(e){this._delegateMethod("dispatchAction",e)},convertToPixel:function(e,t){return this._delegateMethod("convertToPixel",e,t)},convertFromPixel:function(e,t){return this._delegateMethod("convertFromPixel",e,t)},containPixel:function(e,t){return this._delegateMethod("containPixel",e,t)},showLoading:function(e,t){this._delegateMethod("showLoading",e,t)},hideLoading:function(){this._delegateMethod("hideLoading")},getDataURL:function(e){return this._delegateMethod("getDataURL",e)},getConnectedDataURL:function(e){return this._delegateMethod("getConnectedDataURL",e)},clear:function(){this._delegateMethod("clear")},dispose:function(){this._delegateMethod("dispose")},_delegateMethod:function(e){var t;if(!this.chart)return void c.a.util.warn("Cannot call ["+e+"] before the chart is initialized. Set prop [options] first.",this);for(var i=arguments.length,n=Array(i>1?i-1:0),s=1;s50){for(var n=[],a=0,s=parseInt(i.length/50)+1;a=i.length&&(s=i.length-a-1);for(var l=a;l<=a+s;l++)o+=i[l];o=parseInt(o*(r/s)),n.push(o),a+=s}t=16*(parseInt(i.length/50)+1),i=n,e.length=i.length}return{grid:{left:"0%",right:"0%",containLabel:!1},xAxis:{show:!1,data:e},yAxis:{show:!1,max:t},series:[{type:"bar",barGap:"0%",silent:!0,barCategoryGap:"0",itemStyle:{normal:{color:"#eeeeee"}},data:i}]}},getStatus:function(){return this.$t(this.download.status)||""},name:function(){return O.b(this.download)},path:function(){return["file://",this.download.dir].join("")},progress:function(){var e="0"===this.download.totalLength?0:this.download.completedLength/this.download.totalLength;return[parseInt(100*e),"%"].join("")},completedSize:function(){return O.a(this.download.completedLength,-1)},size:function(){return O.a(this.download.totalLength,-1)},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,-1),"/s"].join("")},downloadConnections:function(){return this.download.connections},uploadSpeed:function(){return O.a(this.download.uploadSpeed||0)+"/s"}},i.i($.c)({globalConfig:"config"})),methods:a()({showAction:function(){this.showAction=!0},hideAction:function(){this.showAction=!0}},i.i($.e)(["startSelectedDownloads","pauseSelectedDownloads","removeSelectedDownloads"]))}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(58),a=i.n(n),s=i(49),o=i.n(s),r=i(47),l=i.n(r),c=i(50),u=i.n(c),d=i(52),h=i.n(d),p=i(44),f=i.n(p),v=i(46),m=i.n(v),g=i(45),w=i.n(g),_=i(48),x=i.n(_),b=i(51),y=i.n(b),S=i(43),k=i.n(S),C=i(441),O=i.n(C),$=i(76);t.default={components:{XHeader:o.a,Group:l.a,XInput:u.a,XTextarea:h.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},i18n:{messages:{"zh-CN":{"No downloads":"暂无下载任务"}}},computed:a()({gids:function(){return this.list.map(function(e){return e?e.gid:""})}},i.i($.c)(["selectedGids"])),methods:a()({select:function(e,t){var i=this.selectedGids;if(t.ctrlKey||t.metaKey||t.shiftKey?i.push(e):i=[e],t.shiftKey&&i.length){var n=i[0],a=i[i.length-1],s=[this.gids.indexOf(n),this.gids.indexOf(a)];s[0]>s[1]&&s.reverse(),i=this.gids.slice(s[0],s[1]+1)}this.setSelected({selected:i})},startOrPause:function(e){"paused"===e.status?this.$store.dispatch("startSelectedDownloads"):"active"===e.status&&this.$store.dispatch("pauseSelectedDownloads")}},i.i($.d)(["setSelected"]))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},,function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-drawer"},[i("div",{staticClass:"vux-drawer-body",style:{transform:"translate3d("+e.translateX+"px, 0, 0)"}},[e._t("default"),e._v(" "),i("div",{staticClass:"drawer-mask",class:e.show?"vux-drawer-active":"",on:{click:e.hideMask}})],2),e._v(" "),i("div",{ref:"drawer",staticClass:"vux-drawer-content",class:["left"!==e.placement?"drawer-right":"drawer-left",e.show?"vux-drawer-active":""],style:e.drawerStyle},[e._t("drawer")],2)])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:e.keymap,expression:"keymap"}],staticClass:"pop_wrapper"},[i("drawer",{attrs:{width:"240px;",show:e.menuShow,"show-mode":"overlay",placement:"right","drawer-style":{"background-color":"#35495e",width:"240px"}},on:{"update:show":function(t){e.menuShow=t}}},[i("div",{slot:"drawer"},[i("group",{attrs:{title:e.$t("Options")}},[i("cell",{attrs:{title:e.$t("Open options panel"),"is-link":"true"},nativeOn:{click:function(t){e.menuShow=!1,e.openOptionsPanel()}}})],1),e._v(" "),e.uaList&&e.uaList.length>1?i("group",{attrs:{title:"User-agent"}},[i("radio",{attrs:{value:e.config.userAgent,options:e.uaList},on:{"on-change":e.changeUa}})],1):e._e()],1),e._v(" "),i("x-header",{staticClass:"pop_header",attrs:{"left-options":{showBack:!1},"right-options":{showMore:!0}},on:{"on-click-more":function(t){e.menuShow=!0}}},[i("popmenu",{ref:"popmenu",attrs:{placement:"bottom"},on:{"on-show":e.popmenuShow,"on-hide":e.popmenuHide}},[i("div",{staticClass:"selectRpcServer",slot:"content"},[i("group",e._l(e.serverList,function(t){return i("cell",{key:t.url,class:{acitve:t.url===e.currentServerUrl},attrs:{title:t.name},nativeOn:{click:function(i){e.changeList({url:t.url})}}})}))],1),e._v(" "),i("div",{staticClass:"rpcServer"},[i("button",[e._v(e._s(e.currenServerName)+e._s(e.globalStat?"":"("+e.$t("ununited")+")"))]),e._v(" "),i("i",{staticClass:"material-icons"},[e._v(e._s(e.popmenuIsShow?"keyboard_arrow_up":"keyboard_arrow_down"))])])])],1),e._v(" "),i("div",{staticClass:"globalStatus"},[i("div",{staticClass:"control"},[i("x-button",{directives:[{name:"show",rawName:"v-show",value:e.taskLists.length>0,expression:"taskLists.length>0"}],attrs:{mini:"",plain:""},nativeOn:{click:function(t){t.stopPropagation(),e.selecteAll()}}},[i("i",{directives:[{name:"show",rawName:"v-show",value:0===e.selectedGids.length,expression:"selectedGids.length===0"}],staticClass:"material-icons"},[e._v("done_all")]),e._v(" "),i("i",{directives:[{name:"show",rawName:"v-show",value:e.selectedGids.length>0,expression:"selectedGids.length>0"}],staticClass:"material-icons"},[e._v("cancel")])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.selectedGids.length>0,expression:"selectedGids.length>0"}],staticClass:"inner"},[i("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(t){t.stopPropagation(),e.startSelectedDownloads()}}},[i("i",{staticClass:"material-icons"},[e._v("play_arrow")])]),e._v(" "),i("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(t){t.stopPropagation(),e.pauseSelectedDownloads()}}},[i("i",{staticClass:"material-icons"},[e._v("pause")])]),e._v(" "),i("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(t){t.stopPropagation(),e.removeSelectedDownloads()}}},[i("i",{staticClass:"material-icons"},[e._v("delete_forever")])])],1),e._v(" "),i("x-button",{directives:[{name:"show",rawName:"v-show",value:e.getStoppedTaskGid.length>0&&0===e.selectedGids.length,expression:"getStoppedTaskGid.length>0 && selectedGids.length===0"}],attrs:{mini:"",plain:""},nativeOn:{click:function(t){t.stopPropagation(),e.removeStoppedDownloads()}}},[e._v(e._s(e.$t("Remove stopped"))+"\n ")])],1),e._v(" "),i("div",{staticClass:"speed",attrs:{title:e.$t("Click to set global speed limit")},on:{click:function(t){if(!("button"in t)&&e._k(t.keyCode,"nativ"))return null;t.stopPropagation(),e.openAria2Options()}}},[e.getGlobalStat.uploadSpeed>0?i("div",{staticClass:"up"},[i("i",{staticClass:"material-icons"},[e._v("arrow_upward")]),e._v("\n "+e._s(e.getGlobalStat.uploadSpeedText)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"down"},[i("i",{staticClass:"material-icons"},[e._v("arrow_downward")]),e._v("\n "+e._s(e.getGlobalStat.downloadSpeedText)+"\n ")])])]),e._v(" "),i("task-list",{staticClass:"pop_list",attrs:{list:e.taskLists},nativeOn:{click:function(t){t.stopPropagation(),e.setSelected({selected:[]})}}}),e._v(" "),i("x-dialog",{staticClass:"dialog-options",attrs:{"hide-on-blur":"",scroll:!1},model:{value:e.showOptions,callback:function(t){e.showOptions=t},expression:"showOptions"}},[i("group",[i("x-input",{attrs:{title:e.$t("max-overall-download-limit"),type:"number","show-clear":!1,min:0},model:{value:e.change2GlobalOptions["max-overall-download-limit"],callback:function(t){var i=e.change2GlobalOptions;Array.isArray(i)?i.splice("max-overall-download-limit",1,t):e.change2GlobalOptions["max-overall-download-limit"]=t},expression:"change2GlobalOptions['max-overall-download-limit']"}},[i("span",{slot:"right"},[e._v("KB")])]),e._v(" "),i("x-input",{attrs:{title:e.$t("max-overall-upload-limit"),type:"number","show-clear":!1,min:0},model:{value:e.change2GlobalOptions["max-overall-upload-limit"],callback:function(t){var i=e.change2GlobalOptions;Array.isArray(i)?i.splice("max-overall-upload-limit",1,t):e.change2GlobalOptions["max-overall-upload-limit"]=t},expression:"change2GlobalOptions['max-overall-upload-limit']"}},[i("span",{slot:"right"},[e._v("KB")])]),e._v(" "),i("x-input",{attrs:{title:e.$t("max-concurrent-downloads"),type:"number","show-clear":!1,min:1},model:{value:e.change2GlobalOptions["max-concurrent-downloads"],callback:function(t){var i=e.change2GlobalOptions;Array.isArray(i)?i.splice("max-concurrent-downloads",1,t):e.change2GlobalOptions["max-concurrent-downloads"]=t},expression:"change2GlobalOptions['max-concurrent-downloads']"}},[i("span",{slot:"right"},[e._v("个")])])],1),e._v(" "),i("group",{staticClass:"buttonGroup"},[i("x-button",{nativeOn:{click:function(t){e.saveAria2Options()}}},[e._v(e._s(e.$t("Save")))]),e._v(" "),i("x-button",{nativeOn:{click:function(t){e.showOptions=!1}}},[e._v(e._s(e.$t("Cancel")))])],1)],1)],1)],1)},staticRenderFns:[]}},,function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"weui-cells_radio",class:e.disabled?"vux-radio-disabled":""},[e._l(e.options,function(t,n){return i("label",{staticClass:"weui-cell weui-cell_radio weui-check__label",attrs:{for:"radio_"+e.uuid+"_"+n}},[i("div",{staticClass:"weui-cell__bd"},[e._t("each-item",[i("p",[i("img",{directives:[{name:"show",rawName:"v-show",value:t&&t.icon,expression:"one && one.icon"}],staticClass:"vux-radio-icon",attrs:{src:t.icon}}),e._v(" "),i("span",{staticClass:"vux-radio-label",style:e.currentValue===e.getKey(t)?e.selectedLabelStyle||"":""},[e._v(e._s(e._f("getValue")(t)))])])],{icon:t.icon,label:e.getValue(t),index:n,selected:e.currentValue===e.getKey(t)})],2),e._v(" "),i("div",{staticClass:"weui-cell__ft"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"weui-check",attrs:{type:"radio",id:e.disabled?"":"radio_"+e.uuid+"_"+n},domProps:{value:e.getKey(t),checked:e._q(e.currentValue,e.getKey(t))},on:{__c:function(i){e.currentValue=e.getKey(t)}}}),e._v(" "),i("span",{staticClass:"weui-icon-checked"})])])}),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.fillMode,expression:"fillMode"}],staticClass:"weui-cell"},[i("div",{staticClass:"weui-cell__hd"},[i("label",{staticClass:"weui-label",attrs:{for:""}},[e._v(e._s(e.fillLabel))])]),e._v(" "),i("div",{staticClass:"weui-cell__bd"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.fillValue,expression:"fillValue"}],staticClass:"weui-input needsclick",attrs:{type:"text",placeholder:e.fillPlaceholder},domProps:{value:e.fillValue},on:{blur:function(t){e.isFocus=!1},focus:function(t){e.onFocus()},input:function(t){t.target.composing||(e.fillValue=t.target.value)}}})]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:""===e.value&&!e.isFocus,expression:"value==='' && !isFocus"}],staticClass:"weui-cell__ft"},[i("i",{staticClass:"weui-icon-warn"})])])],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"echarts"})},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-x-dialog",on:{touchmove:e.onTouchMove}},[i("transition",{attrs:{name:e.maskTransition}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.currentValue,expression:"currentValue"}],staticClass:"weui-mask",on:{click:function(t){e.hideOnBlur&&(e.currentValue=!1)}}})]),e._v(" "),i("transition",{attrs:{name:e.dialogTransition}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.currentValue,expression:"currentValue"}],class:e.dialogClass,style:e.dialogStyle},[e._t("default")],2)])],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.onClickedOutside,expression:"onClickedOutside"}]},[i("span",{ref:"trigger",on:{click:e.toggle}},[e._t("default")],2),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],ref:"popover",staticClass:"vux-popover",style:e.popoverStyle},[i("div",{class:e.arrowClass}),e._v(" "),i("div",{on:{click:function(t){e.$emit("on-click-content")}}},[e._t("content",[i("div",{domProps:{innerHTML:e._s(e.content)}})])],2)])])},staticRenderFns:[]}},,,function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("group",[i("div",{staticClass:"download-list"},[e._l(e.list,function(t){return i("task-line",{key:t.gid,attrs:{download:t,selected:~e.selectedGids.indexOf(t.gid)},nativeOn:{click:function(i){i.stopPropagation(),e.select(t.gid,i)},dblclick:function(i){i.stopPropagation(),e.startOrPause(t)}}})}),e._v(" "),e.list.length<1?i("cell",{staticClass:"empty",attrs:{title:e.$t("No downloads")}}):e._e()],2)])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("cell-box",{staticClass:"download",class:{selected:e.selected},nativeOn:{mouseenter:function(t){e.showAction=!0},mouseleave:function(t){e.showAction=!1}}},[e.globalConfig.enableChart?i("chart",{staticClass:"chart",attrs:{autoResize:!0,options:e.char}}):e._e(),e._v(" "),i("div",{staticClass:"progress",style:{width:e.progress}},[i("span",{directives:[{name:"show",rawName:"v-show",value:e.showPercent,expression:"showPercent"}]},[e._v(e._s(parseInt(e.progress)))])]),e._v(" "),i("div",{staticClass:"info"},[i("div",{staticClass:"left"},[i("div",{staticClass:"name",attrs:{title:e.name}},[e._v("\n "+e._s(e.name)+"\n ")]),e._v(" "),i("div",{staticClass:"status"},[e.download.errorMessage?i("div",[e._v(e._s(e.download.errorMessage))]):e._e(),e._v(" "),e.download.errorMessage?e._e():i("div",["active"!=e.download.status?i("span",[e._v(e._s(e.getStatus))]):e._e(),e._v(" "),"0"!==e.download.totalLength?i("span",{staticClass:"size",on:{mouseenter:function(t){e.showPercent=!0},mouseleave:function(t){e.showPercent=!1}}},[e._v(e._s(e.isDownloading?e.completedSize+"/":"")+e._s(e.size))]):e._e(),e._v(" "),e.isDownloading?i("span",{staticClass:"speed"},[e._v(e._s(e.downloadSpeed))]):e._e(),e._v(" "),e.isDownloading?i("span",{staticClass:"connections",attrs:{title:e.$t("connections")}},[e._v(e._s(e.downloadConnections))]):e._e(),e._v(" "),e.isUploading?i("span",{staticClass:"speed upload"},[e._v(e._s(e.uploadSpeed))]):e._e(),e._v(" "),e.isDownloading?i("span",{staticClass:"eta"},[e._v(e._s(e.$t("eta"))+":"+e._s(e.eta))]):e._e()])])]),e._v(" "),i("div",{staticClass:"right"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showAction&&!e.showPercent,expression:"showAction&&!showPercent"}],staticClass:"action"},[i("i",{directives:[{name:"show",rawName:"v-show",value:"active"===e.download.status,expression:"download.status === 'active'"}],staticClass:"material-icons",attrs:{title:e.$t("pause")},on:{click:function(t){t.stopPropagation(),e.pauseSelectedDownloads({gids:[e.download.gid]})}}},[e._v("pause_circle_outline")]),e._v(" "),i("i",{directives:[{name:"show",rawName:"v-show",value:"paused"===e.download.status,expression:"download.status === 'paused'"}],staticClass:"material-icons",attrs:{title:e.$t("start")},on:{click:function(t){t.stopPropagation(),e.startSelectedDownloads({gids:[e.download.gid]})}}},[e._v("play_circle_outline")]),e._v(" "),i("i",{staticClass:"material-icons",attrs:{title:e.$t("delete")},on:{click:function(t){t.stopPropagation(),e.removeSelectedDownloads({gids:[e.download.gid]})}}},[e._v("delete_forever")])])])])],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-toast"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMask&&e.show,expression:"isShowMask && show"}],staticClass:"weui-mask_transparent"}),e._v(" "),i("transition",{attrs:{name:e.currentTransition}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"weui-toast",class:e.toastClass,style:{width:e.width}},[i("i",{directives:[{name:"show",rawName:"v-show",value:"text"!==e.type,expression:"type !== 'text'"}],staticClass:"weui-icon-success-no-circle weui-icon_toast"}),e._v(" "),e.text?i("p",{staticClass:"weui-toast__content",style:e.style,domProps:{innerHTML:e._s(e.text)}}):i("p",{staticClass:"weui-toast__content"},[e._t("default")],2)])])],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-cell-box weui-cell",class:{"vux-tap-active":e.isLink||!!e.link,"weui-cell_access":e.isLink||!!e.link,"vux-cell-no-border-intent":!e.borderIntent},on:{click:e.onClick}},[i("div",[e._t("default")],2)])},staticRenderFns:[]}},,function(e,t,i){i(343);var n=i(1)(i(219),i(421),null,null);e.exports=n.exports},function(e,t,i){i(351);var n=i(1)(i(220),i(429),null,null);e.exports=n.exports},function(e,t,i){i(339);var n=i(1)(i(221),i(417),null,null);e.exports=n.exports},function(e,t,i){i(342);var n=i(1)(i(222),i(420),null,null);e.exports=n.exports},,function(e,t,i){i(350);var n=i(1)(i(224),i(428),null,null);e.exports=n.exports},function(e,t,i){i(344);var n=i(1)(i(225),i(422),null,null);e.exports=n.exports},function(e,t,i){i(345);var n=i(1)(i(226),i(423),null,null);e.exports=n.exports},,function(e,t,i){i(340);var n=i(1)(i(230),i(418),null,null);e.exports=n.exports},function(e,t,i){i(349);var n=i(1)(i(231),i(427),null,null);e.exports=n.exports},function(e,t,i){i(348);var n=i(1)(i(232),i(426),null,null);e.exports=n.exports}],[217]); \ No newline at end of file +webpackJsonp([1],[,,,,,,,,,,,,function(e,t,i){i(123);var n=i(1)(null,i(139),null,null);e.exports=n.exports},,,,,,,,,,,,,,function(e,t,i){i(124);var n=i(1)(i(90),i(140),null,null);e.exports=n.exports},,,,,,,,,,,,,,,,,function(e,t,i){i(118);var n=i(1)(i(85),i(133),null,null);e.exports=n.exports},function(e,t,i){i(121);var n=i(1)(i(86),i(137),null,null);e.exports=n.exports},function(e,t,i){var n=i(1)(i(87),i(136),null,null);e.exports=n.exports},function(e,t,i){i(116);var n=i(1)(i(88),i(131),null,null);e.exports=n.exports},function(e,t,i){i(125);var n=i(1)(i(89),i(141),null,null);e.exports=n.exports},function(e,t,i){i(115);var n=i(1)(i(91),i(130),null,null);e.exports=n.exports},function(e,t,i){i(117);var n=i(1)(i(92),i(132),null,null);e.exports=n.exports},function(e,t,i){i(122);var n=i(1)(i(93),i(138),null,null);e.exports=n.exports},function(e,t,i){i(120);var n=i(1)(i(94),i(135),null,null);e.exports=n.exports},function(e,t,i){i(126);var n=i(1)(i(95),i(142),null,null);e.exports=n.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";(function(e){var t=i(32),n=i.n(t),a=i(20),s=i.n(a),o=i(152),r=i.n(o),l=i(184),c=i.n(l);!function(t){var i=void 0!==e&&e.exports,a=function e(t){this.callbacks=r()(null),this.lastId=0;for(var i in e.options)this[i]="object"===(void 0===t?"undefined":s()(t))&&i in t?t[i]:e.options[i]};a.prototype.http=function(e,t){var i=this,a={method:e.method,id:e.id};Array.isArray(e.params)&&e.params.length>0&&(a.params=e.params);var s="http"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path;fetch(s,{method:"POST",body:n()(a),headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){i._onmessage(e)}).catch(t)},a.prototype.send=function(e){var t=Array.prototype.slice.call(arguments,1),i="function"==typeof t[t.length-1]?t.pop():null;return this.exec(e,t,i)},a.prototype.exec=function(e,t,i){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++},s=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=s.concat(e.params)}),s=t):s=s.concat(t)),s.length>0&&(a.params=s),this.onsend(a);var o=this;return this.socket&&1===this.socket.readyState?this.socket.send(n()(a)):this.http(a,function(e){o.callbacks[a.id](e),delete o.callbacks[a.id]}),c()(function(e){o.callbacks[a.id]=e},i)},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 i=e.method.split("aria2.")[1];0===i.indexOf("on")&&"function"==typeof this[i]&&a.notifications.indexOf(i)>-1&&this[i].apply(this,e.params)}},a.prototype.open=function(e){var t="ws"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path,i=this.socket=new WebSocket(t),n=this,a=!1;return i.onmessage=function(e){n._onmessage(JSON.parse(e.data))},c()(function(e){i.onopen=function(){a||(e(),a=!0),n.onopen()},i.onclose=function(t){n.onclose(),1006==t.code&&(a||(e(t),a=!0))},i.onerror=function(t){a||(e(t),a=!0)}},e)},a.prototype.close=function(e){var t=this.socket;return c()(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(){}}),i?e.exports=a:t.Aria2=a}(this)}).call(t,i(189)(e))},,,function(e,t,i){"use strict";function n(e){var t="";return t=e.bittorrent?d()(e,"bittorrent.info.name",["BT:",e.infoHash].join("")):d()(e,"files[0].path","").replace(/^.*[\\\/]/,""),t||(t=d()(e,"files[0].uris[0].uri")),t||"..."}function a(e,t){e=Number(e);var i=["Bytes","KB","MB","GB","TB"];if(0===e)return"0 KB";var n=parseInt(Math.floor(Math.log(e)/Math.log(1e3)),10);if(0===n)return e+" "+i[n];var a=[1,1,10,100,100][n];return c()(t)&&(a=Math.pow(10,t)),""+Math.floor(100*e/Math.pow(1024,n)*a)/(100*a)+i[n]}function s(e,t){function i(e,t){return(new Array(t+1).join("0")+e).slice(-t)}var n=/((?:[^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(e,10),o=function(e){for(var t=[],i=e?e.toString():"";i;){var a=n.exec(i);a?(t=t.concat(a.slice(1)),i=t.pop()):(t.push(i),i=null)}return t}(t);return isNaN(s)||0===o.length?e:function(e,t){var n="",s={};t.filter(function(e){return a.hasOwnProperty(e)}).map(function(e){var t=a[e];return t.hasOwnProperty("pad")?t.value:e}).filter(function(e,t,i){return i.indexOf(e)===t}).map(function(e){return r()({name:e},a[e])}).sort(function(e,t){return t.value-e.value}).forEach(function(t){var i=s[t.name]=Math.floor(e/t.value);e-=i*t.value});for(var o=0;o=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:[s.a],components:{Icon:r.a,InlineDesc:c.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)}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(12),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}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(35),a=i(12),s=i.n(a),o=i(148),r=i.n(o);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: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(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(){r()(this.$refs.textarea)},unbindAutosize:function(){r.a.destroy(this.$refs.textarea)},focus:function(){this.$refs.textarea.focus()}},beforeDestroy:function(){this.unbindAutosize()}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(26),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"}}}},,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,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:[]}},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:[]}},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:[]}},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:[]}},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:[]}},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 s=e._i(i,null);a?s<0&&(e.currentValue=i.concat(null)):s>-1&&(e.currentValue=i.slice(0,s).concat(i.slice(s+1)))}else e.currentValue=a}}})])])},staticRenderFns:[]}},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:[]}},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:[]}},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:[]}},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:[]}},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:[]}},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:[]}},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:[]}},function(e,t,i){i(119);var n=i(1)(i(96),i(134),null,null);e.exports=n.exports},,,,,,function(e,t,i){"use strict";var n=i(82),a=(i.n(n),i(34)),s=i.n(a);i(81);t.a={getConfig:function(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],s()(safari,"extension.globalPage.contentWindow.s2a",{}));if(e.getConfig){var t=e.getConfig();t.aria2Connects}return e}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";var n=i(19),a=i(188),s=i(440),o=i.n(s);n.a.use(a.a),t.a=new a.a({routes:[{path:"/",name:"Index",component:o.a}]})},function(e,t,i){"use strict";var n=i(33),a=i.n(n),s=i(32),o=i.n(s),r=i(57),l=i.n(r),c=i(247),u=i.n(c),d=i(58),h=i.n(d),p=i(244),f=i.n(p),v=i(153),m=i.n(v),g=i(34),w=i.n(g),_=i(82),x=i.n(_),b=i(19),y=i(76),S=i(84),k=i(149);b.a.use(y.a);var C=void 0,O={get_s2a:function(){if(!C||!C.getConfig){for(var e=arguments.length,t=Array(e),i=0;i1?n-1:0),s=1;s1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:{config:{}},n=JSON.parse(o()(h()({},t.config,i.config)));C.dispatchMessage({name:"updateSafari2Aria",message:n})},toggleSelectedStatus:function(e){var t=e.dispatch,i=e.state,n=e.getters,a=(e.commit,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),s=w()(a,"gids",i.selectedGids),o=n.taskLists.filter(function(e){return~s.indexOf(e.gid)}),r={active:[],paused:[]};o.map(function(e){var t=e.status;t="waiting"===t?"active":t,r[t]=r[t]||[],r[t].push(e.gid)});var l=r.active.length>=r.paused.length?"active":"paused",c=r.active.length>=r.paused.length?"pause":"unpause";return r.active.length||r.paused.length?O.mutilCall(i.currentServerUrl,r[l].map(function(e){return{methodName:"aria2."+c,params:[e]}})).then(function(){return t("getTaskList")}):f.a.resolve("no change")},saveOptions:function(e){var t=e.dispatch,i=e.state,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return O.sendCall(i.currentServerUrl,"aria2.changeGlobalOption",h()({},n.options)).then(function(){return t("getTaskList",{loadOptions:!0})}).catch(function(e){console.log(e)})},startSelectedDownloads:function(e){var t=e.dispatch,i=e.state,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=w()(n,"gids",i.selectedGids);return O.mutilCall(i.currentServerUrl,a.map(function(e){return{methodName:"aria2.unpause",params:[e]}})).then(function(){return t("getTaskList")})},pauseSelectedDownloads:function(e){var t=e.dispatch,i=e.state,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=w()(n,"gids",i.selectedGids);return O.mutilCall(i.currentServerUrl,a.map(function(e){return{methodName:"aria2.pause",params:[e]}})).then(function(){return t("getTaskList")})},removeSelectedDownloads:function(e){var t=e.dispatch,i=e.state,n=e.getters,a=e.commit,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=w()(s,"gids",i.selectedGids),r=n.taskLists.filter(function(e){return~o.indexOf(e.gid)});return O.mutilCall(i.currentServerUrl,r.map(function(e){return{methodName:"aria2."+(~["active","paused","waiting"].indexOf(e.status)?"remove":"removeDownloadResult"),params:[e.gid]}})).then(function(){return a("setSelected",{selected:[]}),t("getTaskList")})},removeStoppedDownloads:function(e){var t=e.dispatch,i=e.state,n=(e.getters,e.commit);arguments.length>1&&void 0!==arguments[1]&&arguments[1];return O.sendCall(i.currentServerUrl,"aria2.purgeDownloadResult").then(function(){return n("setSelected",{selected:[]}),t("getTaskList")})},getTaskList:function(e){var t=e.commit,i=e.state,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!O.get_s2a())return f.a.reject("获取global变量错误");i.currentServerUrl||t("refreshServerList");var a=[{methodName:"aria2.tellActive",params:[]}];return n.activeList||a.push({methodName:"aria2.tellWaiting",params:[0,1e3]},{methodName:"aria2.tellStopped",params:[0,1e3]}),a.push({methodName:"aria2.getGlobalStat",params:null}),n.loadOptions&&a.push({methodName:"aria2.getGlobalOption",params:null}),i.currentServerUrl?O.sendCall(i.currentServerUrl,"system.multicall",a).then(function(e){var a=void 0;a=n.activeList?h()({},i.taskList[i.currentServerUrl],{active:e[0][0]||[]}):{active:e[0][0]||[],waiting:e[1][0]||[],stopped:e[2][0]||[]},t("setTaskList",{list:a,url:i.currentServerUrl});var s=n.activeList?1:3;if(t("setGlobalStat",{globalStat:e[s][0]}),w()(window.safari||{},"extension.toolbarItems")&&(a.active.length>0||a.waiting.length>0?safari.extension.toolbarItems[0].badge=a.active.length+a.waiting.length:safari.extension.toolbarItems[0].badge=0),n.loadOptions&&t("setGlobalOption",{globalOption:e[s+1][0]}),e[s]&&e[s].code)return f.a.reject(e[s])}).catch(function(e){t("setGlobalStat",{globalStat:!1}),console.log("获取列表失败",e)}):f.a.reject("no server url")}},T={isDebug:function(e){return!!O.get_s2a()&&C.isDebug},serverList:function(e){return e.serverList},getAllTaskGid:function(e,t){return t.taskLists.map(function(e){return e.gid})},getStoppedTaskGid:function(){var e=$.currentServerUrl;return w()($,["taskList",e,"stopped"],[]).map(function(e){return e?e.gid:null})},getGlobalStat:function(e){var t=a()({},e.globalStat);return t.downloadSpeedText=S.a(t.downloadSpeed||0)+"/s",t.uploadSpeedText=S.a(t.uploadSpeed||0)+"/s",t},taskLists:function(e){var t=["complete","error","paused","waiting","active"],i=e.currentServerUrl,n=[];return e.taskList[i]&&(n=[].concat(e.taskList[i].active||[],e.taskList[i].waiting||[],e.taskList[i].stopped||[]),n=n.slice(0).sort(function(e,i){return e.status===i.status?S.b(i)>S.b(e)?1:-1:t.indexOf(i.status)>t.indexOf(e.status)?1:-1})),n},selectedTasks:function(e,t){return t.taskLists.filter(function(t){return~e.selectedGids.indexOf(t.gid)})}};t.a=new y.a.Store({state:$,getters:T,actions:V,mutations:L})},function(e,t,i){"use strict";var n=i(241),a=i.n(n),s=i(57),o=i.n(s),r=i(218),l=function(e){return o()(e).map(function(t){var n={};return t.split("+").forEach(function(e){switch(e.toLowerCase()){case"ctrl":case"alt":case"shift":case"meta":n[e]=!0;break;default:n.keyCode=i.i(r.a)(e)}}),n.callback=e[t],n})};t.a={install:function(e){e.directive("hotkey",{bind:function(e,t,i,n){e._keymap=l(t.value),e._keyHandler=function(t){var i=!0,n=!1,s=void 0;try{for(var o,r=a()(e._keymap);!(i=(o=r.next()).done);i=!0){var l=o.value;l.keyCode===t.keyCode&&!!l.ctrl===t.ctrlKey&&!!l.alt===t.altKey&&!!l.shift===t.shiftKey&&!!l.meta===t.metaKey&&l.callback(t)}}catch(e){n=!0,s=e}finally{try{!i&&r.return&&r.return()}finally{if(n)throw s}}},document.addEventListener("keydown",e._keyHandler)},unbind:function(e,t,i,n){document.removeEventListener("keydown",e._keyHandler)}})}}},,,,function(e,t,i){i(338);var n=i(1)(i(229),i(416),null,null);e.exports=n.exports},,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(19),a=i(211),s=i.n(a),o=i(205),r=i(206),l=i(207),c=i(208),u=i(83);n.a.use(u.a);var d=new u.a({locale:navigator.language});n.a.use(c.a),n.a.use(l.a),new n.a({router:o.a,store:r.a,i18n:d,render:function(e){return e(s.a)}}).$mount("#app-box"),window.tlwin={refreshServerList:function(){r.a.commit("refreshServerList")},refreshTaskList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.a.dispatch("getTaskList",{loadOptions:!0,all:e.all})}}},function(e,t,i){"use strict";var n=i(20),a=i.n(n);t.a=function(e){if(e&&"object"===(void 0===e?"undefined":a()(e))){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return names[e];var i=String(e),n=s[i.toLowerCase()];if(n)return n;var n=o[i.toLowerCase()];return n||(1===i.length?i.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(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(153),a=i.n(n),s=i(41),o=i.n(s),r=i(177),l=i.n(r),c=i(19),u=["legendselectchanged","legendselected","legendunselected","datazoom","datarangeselected","timelinechanged","timelineplaychanged","restore","dataviewchanged","magictypechanged","geoselectchanged","geoselected","geounselected","pieselectchanged","pieselected","pieunselected","mapselectchanged","mapselected","mapunselected","axisareaselected","brush","brushselected"],d=["click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout"];t.default={props:{options:Object,theme:String,initOptions:Object,group:String,autoResize:Boolean},data:function(){return{chart:null}},computed:{width:{cache:!1,get:function(){return this._delegateGet("width","getWidth")}},height:{cache:!1,get:function(){return this._delegateGet("height","getHeight")}},isDisposed:{cache:!1,get:function(){return!!this._delegateGet("isDisposed","isDisposed")}},computedOptions:{cache:!1,get:function(){return this._delegateGet("computedOptions","getOption")}}},watch:{options:{handler:function(e){!this.chart&&e?this._init():this.chart.setOption(this.options,!0)},deep:!0},group:{handler:function(e){this.chart.group=e}}},methods:{mergeOptions:function(e){this._delegateMethod("setOption",e)},resize:function(e){this._delegateMethod("resize",e)},dispatchAction:function(e){this._delegateMethod("dispatchAction",e)},convertToPixel:function(e,t){return this._delegateMethod("convertToPixel",e,t)},convertFromPixel:function(e,t){return this._delegateMethod("convertFromPixel",e,t)},containPixel:function(e,t){return this._delegateMethod("containPixel",e,t)},showLoading:function(e,t){this._delegateMethod("showLoading",e,t)},hideLoading:function(){this._delegateMethod("hideLoading")},getDataURL:function(e){return this._delegateMethod("getDataURL",e)},getConnectedDataURL:function(e){return this._delegateMethod("getConnectedDataURL",e)},clear:function(){this._delegateMethod("clear")},dispose:function(){this._delegateMethod("dispose")},_delegateMethod:function(e){var t;if(!this.chart)return void c.a.util.warn("Cannot call ["+e+"] before the chart is initialized. Set prop [options] first.",this);for(var i=arguments.length,n=Array(i>1?i-1:0),s=1;s50){for(var n=[],a=0,s=parseInt(i.length/50)+1;a=i.length&&(s=i.length-a-1);for(var l=a;l<=a+s;l++)o+=i[l];o=parseInt(o*(r/s)),n.push(o),a+=s}t=16*(parseInt(i.length/50)+1),i=n,e.length=i.length}return{grid:{left:"0%",right:"0%",containLabel:!1},xAxis:{show:!1,data:e},yAxis:{show:!1,max:t},series:[{type:"bar",barGap:"0%",silent:!0,barCategoryGap:"0",itemStyle:{normal:{color:"#eeeeee"}},data:i}]}},getStatus:function(){return this.$t(this.download.status)||""},name:function(){return O.b(this.download)},path:function(){return["file://",this.download.dir].join("")},progress:function(){var e="0"===this.download.totalLength?0:this.download.completedLength/this.download.totalLength;return[parseInt(100*e),"%"].join("")},completedSize:function(){return O.a(this.download.completedLength,-1)},size:function(){return O.a(this.download.totalLength,-1)},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,-1),"/s"].join("")},downloadConnections:function(){return this.download.connections},uploadSpeed:function(){return O.a(this.download.uploadSpeed||0)+"/s"}},i.i($.c)({globalConfig:"config"})),methods:a()({showAction:function(){this.showAction=!0},hideAction:function(){this.showAction=!0}},i.i($.e)(["startSelectedDownloads","pauseSelectedDownloads","removeSelectedDownloads"]))}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(58),a=i.n(n),s=i(49),o=i.n(s),r=i(47),l=i.n(r),c=i(50),u=i.n(c),d=i(52),h=i.n(d),p=i(44),f=i.n(p),v=i(46),m=i.n(v),g=i(45),w=i.n(g),_=i(48),x=i.n(_),b=i(51),y=i.n(b),S=i(43),k=i.n(S),C=i(441),O=i.n(C),$=i(76);t.default={components:{XHeader:o.a,Group:l.a,XInput:u.a,XTextarea:h.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},i18n:{messages:{"zh-CN":{"No downloads":"暂无下载任务"}}},computed:a()({gids:function(){return this.list.map(function(e){return e?e.gid:""})}},i.i($.c)(["selectedGids"])),methods:a()({select:function(e,t){var i=this.selectedGids;if(t.ctrlKey||t.metaKey||t.shiftKey?i.push(e):i=[e],t.shiftKey&&i.length){var n=i[0],a=i[i.length-1],s=[this.gids.indexOf(n),this.gids.indexOf(a)];s[0]>s[1]&&s.reverse(),i=this.gids.slice(s[0],s[1]+1)}this.setSelected({selected:i})},startOrPause:function(e){"paused"===e.status?this.$store.dispatch("startSelectedDownloads"):"active"===e.status&&this.$store.dispatch("pauseSelectedDownloads")}},i.i($.d)(["setSelected"]))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},,function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-drawer"},[i("div",{staticClass:"vux-drawer-body",style:{transform:"translate3d("+e.translateX+"px, 0, 0)"}},[e._t("default"),e._v(" "),i("div",{staticClass:"drawer-mask",class:e.show?"vux-drawer-active":"",on:{click:e.hideMask}})],2),e._v(" "),i("div",{ref:"drawer",staticClass:"vux-drawer-content",class:["left"!==e.placement?"drawer-right":"drawer-left",e.show?"vux-drawer-active":""],style:e.drawerStyle},[e._t("drawer")],2)])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:e.keymap,expression:"keymap"}],staticClass:"pop_wrapper"},[i("drawer",{attrs:{width:"240px;",show:e.menuShow,"show-mode":"overlay",placement:"right","drawer-style":{"background-color":"#35495e",width:"240px"}},on:{"update:show":function(t){e.menuShow=t}}},[i("div",{slot:"drawer"},[i("group",{attrs:{title:e.$t("Options")}},[i("cell",{attrs:{title:e.$t("Open options panel"),"is-link":"true"},nativeOn:{click:function(t){e.menuShow=!1,e.openOptionsPanel()}}})],1),e._v(" "),e.uaList&&e.uaList.length>1?i("group",{attrs:{title:"User-Agent"}},[i("radio",{attrs:{value:e.config.userAgent,options:e.uaList},on:{"on-change":e.changeUa}})],1):e._e()],1),e._v(" "),i("x-header",{staticClass:"pop_header",attrs:{"left-options":{showBack:!1},"right-options":{showMore:!0}},on:{"on-click-more":function(t){e.menuShow=!0}}},[i("popmenu",{ref:"popmenu",attrs:{placement:"bottom"},on:{"on-show":e.popmenuShow,"on-hide":e.popmenuHide}},[i("div",{staticClass:"selectRpcServer",slot:"content"},[i("group",e._l(e.serverList,function(t){return i("cell",{key:t.url,class:{acitve:t.url===e.currentServerUrl},attrs:{title:t.name},nativeOn:{click:function(i){e.changeList({url:t.url})}}})}))],1),e._v(" "),i("div",{staticClass:"rpcServer"},[i("button",[e._v(e._s(e.currenServerName)+e._s(e.globalStat?"":"("+e.$t("ununited")+")"))]),e._v(" "),i("i",{staticClass:"material-icons"},[e._v(e._s(e.popmenuIsShow?"keyboard_arrow_up":"keyboard_arrow_down"))])])])],1),e._v(" "),i("div",{staticClass:"globalStatus"},[i("div",{staticClass:"control"},[i("x-button",{directives:[{name:"show",rawName:"v-show",value:e.taskLists.length>0,expression:"taskLists.length>0"}],attrs:{mini:"",plain:""},nativeOn:{click:function(t){t.stopPropagation(),e.selecteAll()}}},[i("i",{directives:[{name:"show",rawName:"v-show",value:0===e.selectedGids.length,expression:"selectedGids.length===0"}],staticClass:"material-icons"},[e._v("done_all")]),e._v(" "),i("i",{directives:[{name:"show",rawName:"v-show",value:e.selectedGids.length>0,expression:"selectedGids.length>0"}],staticClass:"material-icons"},[e._v("cancel")])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.selectedGids.length>0,expression:"selectedGids.length>0"}],staticClass:"inner"},[i("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(t){t.stopPropagation(),e.startSelectedDownloads()}}},[i("i",{staticClass:"material-icons"},[e._v("play_arrow")])]),e._v(" "),i("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(t){t.stopPropagation(),e.pauseSelectedDownloads()}}},[i("i",{staticClass:"material-icons"},[e._v("pause")])]),e._v(" "),i("x-button",{attrs:{mini:"",plain:""},nativeOn:{click:function(t){t.stopPropagation(),e.removeSelectedDownloads()}}},[i("i",{staticClass:"material-icons"},[e._v("delete_forever")])])],1),e._v(" "),i("x-button",{directives:[{name:"show",rawName:"v-show",value:e.getStoppedTaskGid.length>0&&0===e.selectedGids.length,expression:"getStoppedTaskGid.length>0 && selectedGids.length===0"}],attrs:{mini:"",plain:""},nativeOn:{click:function(t){t.stopPropagation(),e.removeStoppedDownloads()}}},[e._v(e._s(e.$t("Remove stopped"))+"\n ")])],1),e._v(" "),i("div",{staticClass:"speed",attrs:{title:e.$t("Click to set global speed limit")},on:{click:function(t){if(!("button"in t)&&e._k(t.keyCode,"nativ"))return null;t.stopPropagation(),e.openAria2Options()}}},[e.getGlobalStat.uploadSpeed>0?i("div",{staticClass:"up"},[i("i",{staticClass:"material-icons"},[e._v("arrow_upward")]),e._v("\n "+e._s(e.getGlobalStat.uploadSpeedText)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"down"},[i("i",{staticClass:"material-icons"},[e._v("arrow_downward")]),e._v("\n "+e._s(e.getGlobalStat.downloadSpeedText)+"\n ")])])]),e._v(" "),i("task-list",{staticClass:"pop_list",attrs:{list:e.taskLists},nativeOn:{click:function(t){t.stopPropagation(),e.setSelected({selected:[]})}}}),e._v(" "),i("x-dialog",{staticClass:"dialog-options",attrs:{"hide-on-blur":"",scroll:!1},model:{value:e.showOptions,callback:function(t){e.showOptions=t},expression:"showOptions"}},[i("group",[i("x-input",{attrs:{title:e.$t("max-overall-download-limit"),type:"number","show-clear":!1,min:0},model:{value:e.change2GlobalOptions["max-overall-download-limit"],callback:function(t){var i=e.change2GlobalOptions;Array.isArray(i)?i.splice("max-overall-download-limit",1,t):e.change2GlobalOptions["max-overall-download-limit"]=t},expression:"change2GlobalOptions['max-overall-download-limit']"}},[i("span",{slot:"right"},[e._v("KB")])]),e._v(" "),i("x-input",{attrs:{title:e.$t("max-overall-upload-limit"),type:"number","show-clear":!1,min:0},model:{value:e.change2GlobalOptions["max-overall-upload-limit"],callback:function(t){var i=e.change2GlobalOptions;Array.isArray(i)?i.splice("max-overall-upload-limit",1,t):e.change2GlobalOptions["max-overall-upload-limit"]=t},expression:"change2GlobalOptions['max-overall-upload-limit']"}},[i("span",{slot:"right"},[e._v("KB")])]),e._v(" "),i("x-input",{attrs:{title:e.$t("max-concurrent-downloads"),type:"number","show-clear":!1,min:1},model:{value:e.change2GlobalOptions["max-concurrent-downloads"],callback:function(t){var i=e.change2GlobalOptions;Array.isArray(i)?i.splice("max-concurrent-downloads",1,t):e.change2GlobalOptions["max-concurrent-downloads"]=t},expression:"change2GlobalOptions['max-concurrent-downloads']"}},[i("span",{slot:"right"},[e._v("个")])])],1),e._v(" "),i("group",{staticClass:"buttonGroup"},[i("x-button",{nativeOn:{click:function(t){e.saveAria2Options()}}},[e._v(e._s(e.$t("Save")))]),e._v(" "),i("x-button",{nativeOn:{click:function(t){e.showOptions=!1}}},[e._v(e._s(e.$t("Cancel")))])],1)],1)],1)],1)},staticRenderFns:[]}},,function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"weui-cells_radio",class:e.disabled?"vux-radio-disabled":""},[e._l(e.options,function(t,n){return i("label",{staticClass:"weui-cell weui-cell_radio weui-check__label",attrs:{for:"radio_"+e.uuid+"_"+n}},[i("div",{staticClass:"weui-cell__bd"},[e._t("each-item",[i("p",[i("img",{directives:[{name:"show",rawName:"v-show",value:t&&t.icon,expression:"one && one.icon"}],staticClass:"vux-radio-icon",attrs:{src:t.icon}}),e._v(" "),i("span",{staticClass:"vux-radio-label",style:e.currentValue===e.getKey(t)?e.selectedLabelStyle||"":""},[e._v(e._s(e._f("getValue")(t)))])])],{icon:t.icon,label:e.getValue(t),index:n,selected:e.currentValue===e.getKey(t)})],2),e._v(" "),i("div",{staticClass:"weui-cell__ft"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"weui-check",attrs:{type:"radio",id:e.disabled?"":"radio_"+e.uuid+"_"+n},domProps:{value:e.getKey(t),checked:e._q(e.currentValue,e.getKey(t))},on:{__c:function(i){e.currentValue=e.getKey(t)}}}),e._v(" "),i("span",{staticClass:"weui-icon-checked"})])])}),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.fillMode,expression:"fillMode"}],staticClass:"weui-cell"},[i("div",{staticClass:"weui-cell__hd"},[i("label",{staticClass:"weui-label",attrs:{for:""}},[e._v(e._s(e.fillLabel))])]),e._v(" "),i("div",{staticClass:"weui-cell__bd"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.fillValue,expression:"fillValue"}],staticClass:"weui-input needsclick",attrs:{type:"text",placeholder:e.fillPlaceholder},domProps:{value:e.fillValue},on:{blur:function(t){e.isFocus=!1},focus:function(t){e.onFocus()},input:function(t){t.target.composing||(e.fillValue=t.target.value)}}})]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:""===e.value&&!e.isFocus,expression:"value==='' && !isFocus"}],staticClass:"weui-cell__ft"},[i("i",{staticClass:"weui-icon-warn"})])])],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"echarts"})},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-x-dialog",on:{touchmove:e.onTouchMove}},[i("transition",{attrs:{name:e.maskTransition}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.currentValue,expression:"currentValue"}],staticClass:"weui-mask",on:{click:function(t){e.hideOnBlur&&(e.currentValue=!1)}}})]),e._v(" "),i("transition",{attrs:{name:e.dialogTransition}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.currentValue,expression:"currentValue"}],class:e.dialogClass,style:e.dialogStyle},[e._t("default")],2)])],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.onClickedOutside,expression:"onClickedOutside"}]},[i("span",{ref:"trigger",on:{click:e.toggle}},[e._t("default")],2),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],ref:"popover",staticClass:"vux-popover",style:e.popoverStyle},[i("div",{class:e.arrowClass}),e._v(" "),i("div",{on:{click:function(t){e.$emit("on-click-content")}}},[e._t("content",[i("div",{domProps:{innerHTML:e._s(e.content)}})])],2)])])},staticRenderFns:[]}},,,function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("group",[i("div",{staticClass:"download-list"},[e._l(e.list,function(t){return i("task-line",{key:t.gid,attrs:{download:t,selected:~e.selectedGids.indexOf(t.gid)},nativeOn:{click:function(i){i.stopPropagation(),e.select(t.gid,i)},dblclick:function(i){i.stopPropagation(),e.startOrPause(t)}}})}),e._v(" "),e.list.length<1?i("cell",{staticClass:"empty",attrs:{title:e.$t("No downloads")}}):e._e()],2)])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("cell-box",{staticClass:"download",class:{selected:e.selected},nativeOn:{mouseenter:function(t){e.showAction=!0},mouseleave:function(t){e.showAction=!1}}},[e.globalConfig.enableChart?i("chart",{staticClass:"chart",attrs:{autoResize:!0,options:e.char}}):e._e(),e._v(" "),i("div",{staticClass:"progress",style:{width:e.progress}},[i("span",{directives:[{name:"show",rawName:"v-show",value:e.showPercent,expression:"showPercent"}]},[e._v(e._s(parseInt(e.progress)))])]),e._v(" "),i("div",{staticClass:"info"},[i("div",{staticClass:"left"},[i("div",{staticClass:"name",attrs:{title:e.name}},[e._v("\n "+e._s(e.name)+"\n ")]),e._v(" "),i("div",{staticClass:"status"},[e.download.errorMessage?i("div",[e._v(e._s(e.download.errorMessage))]):e._e(),e._v(" "),e.download.errorMessage?e._e():i("div",["active"!=e.download.status?i("span",[e._v(e._s(e.getStatus))]):e._e(),e._v(" "),"0"!==e.download.totalLength?i("span",{staticClass:"size",on:{mouseenter:function(t){e.showPercent=!0},mouseleave:function(t){e.showPercent=!1}}},[e._v(e._s(e.isDownloading?e.completedSize+"/":"")+e._s(e.size))]):e._e(),e._v(" "),e.isDownloading?i("span",{staticClass:"speed"},[e._v(e._s(e.downloadSpeed))]):e._e(),e._v(" "),e.isDownloading?i("span",{staticClass:"connections",attrs:{title:e.$t("connections")}},[e._v(e._s(e.downloadConnections))]):e._e(),e._v(" "),e.isUploading?i("span",{staticClass:"speed upload"},[e._v(e._s(e.uploadSpeed))]):e._e(),e._v(" "),e.isDownloading?i("span",{staticClass:"eta"},[e._v(e._s(e.$t("eta"))+":"+e._s(e.eta))]):e._e()])])]),e._v(" "),i("div",{staticClass:"right"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showAction&&!e.showPercent,expression:"showAction&&!showPercent"}],staticClass:"action"},[i("i",{directives:[{name:"show",rawName:"v-show",value:"active"===e.download.status,expression:"download.status === 'active'"}],staticClass:"material-icons",attrs:{title:e.$t("pause")},on:{click:function(t){t.stopPropagation(),e.pauseSelectedDownloads({gids:[e.download.gid]})}}},[e._v("pause_circle_outline")]),e._v(" "),i("i",{directives:[{name:"show",rawName:"v-show",value:"paused"===e.download.status,expression:"download.status === 'paused'"}],staticClass:"material-icons",attrs:{title:e.$t("start")},on:{click:function(t){t.stopPropagation(),e.startSelectedDownloads({gids:[e.download.gid]})}}},[e._v("play_circle_outline")]),e._v(" "),i("i",{staticClass:"material-icons",attrs:{title:e.$t("delete")},on:{click:function(t){t.stopPropagation(),e.removeSelectedDownloads({gids:[e.download.gid]})}}},[e._v("delete_forever")])])])])],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-toast"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMask&&e.show,expression:"isShowMask && show"}],staticClass:"weui-mask_transparent"}),e._v(" "),i("transition",{attrs:{name:e.currentTransition}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"weui-toast",class:e.toastClass,style:{width:e.width}},[i("i",{directives:[{name:"show",rawName:"v-show",value:"text"!==e.type,expression:"type !== 'text'"}],staticClass:"weui-icon-success-no-circle weui-icon_toast"}),e._v(" "),e.text?i("p",{staticClass:"weui-toast__content",style:e.style,domProps:{innerHTML:e._s(e.text)}}):i("p",{staticClass:"weui-toast__content"},[e._t("default")],2)])])],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-cell-box weui-cell",class:{"vux-tap-active":e.isLink||!!e.link,"weui-cell_access":e.isLink||!!e.link,"vux-cell-no-border-intent":!e.borderIntent},on:{click:e.onClick}},[i("div",[e._t("default")],2)])},staticRenderFns:[]}},,function(e,t,i){i(343);var n=i(1)(i(219),i(421),null,null);e.exports=n.exports},function(e,t,i){i(351);var n=i(1)(i(220),i(429),null,null);e.exports=n.exports},function(e,t,i){i(339);var n=i(1)(i(221),i(417),null,null);e.exports=n.exports},function(e,t,i){i(342);var n=i(1)(i(222),i(420),null,null);e.exports=n.exports},,function(e,t,i){i(350);var n=i(1)(i(224),i(428),null,null);e.exports=n.exports},function(e,t,i){i(344);var n=i(1)(i(225),i(422),null,null);e.exports=n.exports},function(e,t,i){i(345);var n=i(1)(i(226),i(423),null,null);e.exports=n.exports},,function(e,t,i){i(340);var n=i(1)(i(230),i(418),null,null);e.exports=n.exports},function(e,t,i){i(349);var n=i(1)(i(231),i(427),null,null);e.exports=n.exports},function(e,t,i){i(348);var n=i(1)(i(232),i(426),null,null);e.exports=n.exports}],[217]); \ No newline at end of file diff --git a/safari2aria.safariextz b/safari2aria.safariextz index 19758b7..6fee92e 100644 Binary files a/safari2aria.safariextz and b/safari2aria.safariextz differ diff --git a/src/pages/popover/components/index.vue b/src/pages/popover/components/index.vue index 3ed7a21..227a2bc 100644 --- a/src/pages/popover/components/index.vue +++ b/src/pages/popover/components/index.vue @@ -255,6 +255,7 @@ }) } else { //console.log('stop getTaskList'); + this.menuShow=false; clearInterval(_this.listTimer) } }, this.config.refreshTime ? this.config.refreshTime * 1000 : 5000)