diff --git a/Tubio/HttpServer.cpp b/Tubio/HttpServer.cpp index 9311806..0771402 100644 --- a/Tubio/HttpServer.cpp +++ b/Tubio/HttpServer.cpp @@ -90,7 +90,8 @@ void HttpServer::EventHandler(mg_connection* pNc, int ev, void* p) peer_addr = buf; } - if (IsConnectionAllowed(peer_addr)) + std::string denialReason; + if (IsConnectionAllowed(peer_addr, denialReason)) { try { @@ -126,7 +127,7 @@ void HttpServer::EventHandler(mg_connection* pNc, int ev, void* p) else // Client is not allowed, serve error json { Json j; - j.CloneFrom(RestResponseTemplates::GetByCode(UNAUTHORIZED, "Only localhost allowed!")); + j.CloneFrom(RestResponseTemplates::GetByCode(UNAUTHORIZED, denialReason)); ServeStringToConnection(pNc, j.Render(), UNAUTHORIZED); } } @@ -200,13 +201,17 @@ void HttpServer::ServeDownloadeableResource(mg_connection* pNc, int ev, void* p, return; } -bool HttpServer::IsConnectionAllowed(std::string peer_address) +bool HttpServer::IsConnectionAllowed(std::string peer_address, std::string& denialReason) { // Localhost is always allowed! if (peer_address == "127.0.0.1") return true; // Peer is not localhost, but only localhost is allowed! - else if (XGConfig::access.only_allow_localhost) return false; + else if (XGConfig::access.only_allow_localhost) + { + denialReason = "Only localhost allowed!"; + return false; + } // Let's check if the whitelist is active else if (XGConfig::access.enable_whitelist) @@ -219,6 +224,7 @@ bool HttpServer::IsConnectionAllowed(std::string peer_address) } // Whitelist is enabled, but peer is NOT whitelisted + denialReason = "Not whitelisted!"; return false; } else // Whitelist is NOT enabled and only_allow_localhost is FALSE! @@ -227,6 +233,7 @@ bool HttpServer::IsConnectionAllowed(std::string peer_address) } // Should never come to this point + denialReason = "Access denied"; return false; } diff --git a/Tubio/HttpServer.h b/Tubio/HttpServer.h index 0a66d75..5a8c1d6 100644 --- a/Tubio/HttpServer.h +++ b/Tubio/HttpServer.h @@ -29,7 +29,7 @@ namespace Rest static void ServeStringToConnection(struct mg_connection* c, std::string str, int httpStatusCode = 200); static std::string FixUnterminatedString(const char* cstr, const std::size_t len); - static bool IsConnectionAllowed(std::string peer_address); + static bool IsConnectionAllowed(std::string peer_address, std::string& denialReason); struct mg_mgr* pMgr; diff --git a/Tubio/RestQueryHandler.cpp b/Tubio/RestQueryHandler.cpp index 4413bf8..36d83e0 100644 --- a/Tubio/RestQueryHandler.cpp +++ b/Tubio/RestQueryHandler.cpp @@ -43,6 +43,7 @@ bool RestQueryHandler::ProcessQuery(const std::string clientAdress, const Json& else if (requestName == "update_dep_youtubedl") return UpdateYoutubeDL(requestBody, responseBody, responseCode); else if (requestName == "remove_download_entry") return RemoveDownloadEntry(requestBody, responseBody, responseCode); else if (requestName == "update_config") return UpdateConfig(requestBody, responseBody, responseCode); + else if (requestName == "reset_config_to_default_values") return ResetConfigDefaults(requestBody, responseBody, responseCode); @@ -440,7 +441,11 @@ bool RestQueryHandler::RemoveDownloadEntry(const JsonBlock& request, JsonBlock& bool RestQueryHandler::UpdateConfig(const JsonBlock& request, JsonBlock& responseBody, HTTP_STATUS_CODE& responseCode) { - if (ValidateField("config", JDType::JSON, request, responseBody)) + responseCode = OK; + responseBody.CloneFrom(RestResponseTemplates::GetByCode(OK)); + + JsonBlock dummy; + if (ValidateField("config", JDType::JSON, request, dummy)) { bool prevStateConsole = XGConfig::general.show_console; XGConfig::LoadFromJson(request.Get("config").AsJson); @@ -456,19 +461,38 @@ bool RestQueryHandler::UpdateConfig(const JsonBlock& request, JsonBlock& respons log->Flush(); XGConfig::Save(); - responseBody.Set("message") = "Updated no settings"; + responseBody.Set("message") = "Updated settings"; } else { responseBody.Set("message") = "Updated no settings"; } - responseCode = OK; - responseBody.CloneFrom(RestResponseTemplates::GetByCode(OK)); - responseBody.Set("settings") = XGConfig::GetSavefileBuffer(); + responseBody.Set("config") = XGConfig::GetSavefileBuffer(); return true; } +bool RestQueryHandler::ResetConfigDefaults(const JsonBlock& request, JsonBlock& responseBody, HTTP_STATUS_CODE& responseCode) +{ + log->cout << "Reset config values to default..."; + log->Flush(); + + bool prevStateConsole = XGConfig::general.show_console; + XGConfig::LoadDefaultValues(); + XGConfig::Save(); + // Update console, if necessary + if (XGConfig::general.show_console != prevStateConsole) + { + if (XGConfig::general.show_console) ConsoleManager::ShowConsole(); + else ConsoleManager::HideConsole(); + } + + responseCode = OK; + responseBody.CloneFrom(RestResponseTemplates::GetByCode(OK)); + responseBody.Set("message") = "Reset config to default..."; + responseBody.Set("config") = XGConfig::GetSavefileBuffer(); + return true; +} diff --git a/Tubio/RestQueryHandler.h b/Tubio/RestQueryHandler.h index 0331b44..ab9ed12 100644 --- a/Tubio/RestQueryHandler.h +++ b/Tubio/RestQueryHandler.h @@ -35,6 +35,7 @@ namespace Rest static bool UpdateYoutubeDL(const JasonPP::JsonBlock& request, JasonPP::JsonBlock& responseBody, HTTP_STATUS_CODE& responseCode); static bool RemoveDownloadEntry(const JasonPP::JsonBlock& request, JasonPP::JsonBlock& responseBody, HTTP_STATUS_CODE& responseCode); static bool UpdateConfig(const JasonPP::JsonBlock& request, JasonPP::JsonBlock& responseBody, HTTP_STATUS_CODE& responseCode); + static bool ResetConfigDefaults(const JasonPP::JsonBlock& request, JasonPP::JsonBlock& responseBody, HTTP_STATUS_CODE& responseCode); static bool ValidateField(const std::string name, const JasonPP::JDType type, const JasonPP::Json& checkThat, JasonPP::JsonBlock& putErrorResponseHere); diff --git a/Tubio/XGConfig.cpp b/Tubio/XGConfig.cpp index 243f143..7e75cf0 100644 --- a/Tubio/XGConfig.cpp +++ b/Tubio/XGConfig.cpp @@ -6,7 +6,7 @@ void XGConfig::PreInit() { log = new ::Logging::Logger("Config"); - InitializeDefaultValues(); + LoadDefaultValues(); if (FileSystem::Exists(XGCONFIG_FILE)) { @@ -30,7 +30,7 @@ bool XGConfig::IsJsonFieldValid(const JsonBlock& json, const std::string key, co return ((json.DoesShorthandExist(key)) && (json.ShorthandGet(key).GetDataType() == type)); } -void XGConfig::InitializeDefaultValues() +void XGConfig::LoadDefaultValues() { httpServer.port = "6969"; httpServer.polling_rate = 100; @@ -46,11 +46,14 @@ void XGConfig::InitializeDefaultValues() general.show_console = true; - access.only_allow_localhost = true; - access.enable_whitelist = true; + access.only_allow_localhost = false; + access.enable_whitelist = false; access.whitelist = std::vector(); access.whitelist.push_back("127.0.0.1"); // Add localhost to whitelist + savefileBuffer.Clear(); + savefileBuffer.CloneFrom(CreateJson()); + return; } diff --git a/Tubio/XGConfig.h b/Tubio/XGConfig.h index 36a88f2..c2c8248 100644 --- a/Tubio/XGConfig.h +++ b/Tubio/XGConfig.h @@ -44,6 +44,7 @@ public: static void PostExit(); static void LoadFromJson(const JasonPP::JsonBlock& json); + static void LoadDefaultValues(); static XGConfig::HttpServer httpServer; static XGConfig::Logging logging; @@ -60,7 +61,6 @@ private: static JasonPP::JsonBlock savefileBuffer; static bool IsJsonFieldValid(const JasonPP::JsonBlock& json, const std::string key, const JasonPP::JDType type); - static void InitializeDefaultValues(); static JasonPP::JsonBlock CreateJson(); static void Load(); }; diff --git a/Tubio/frontend/200.html b/Tubio/frontend/200.html index 8541a0b..210ecb5 100644 --- a/Tubio/frontend/200.html +++ b/Tubio/frontend/200.html @@ -1,9 +1,9 @@ - Tubio - Video downloader + Tubio - Video downloader -
Loading...
- +
Loading...
+ diff --git a/Tubio/frontend/_nuxt/b2cccba.js b/Tubio/frontend/_nuxt/2b1a86c.js similarity index 95% rename from Tubio/frontend/_nuxt/b2cccba.js rename to Tubio/frontend/_nuxt/2b1a86c.js index 7860bbf..9e837e0 100644 --- a/Tubio/frontend/_nuxt/b2cccba.js +++ b/Tubio/frontend/_nuxt/2b1a86c.js @@ -1,2 +1,2 @@ /*! For license information please see LICENSES */ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[,function(t,e,n){"use strict";(function(t,n){var r=Object.freeze({});function o(t){return null==t}function c(t){return null!=t}function f(t){return!0===t}function l(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function d(t){return null!==t&&"object"==typeof t}var h=Object.prototype.toString;function v(t){return"[object Object]"===h.call(t)}function y(t){return"[object RegExp]"===h.call(t)}function m(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function _(t){return c(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function w(t){return null==t?"":Array.isArray(t)||v(t)&&t.toString===h?JSON.stringify(t,null,2):String(t)}function x(t){var e=parseFloat(t);return isNaN(e)?t:e}function S(t,e){for(var map=Object.create(null),n=t.split(","),i=0;i-1)return t.splice(n,1)}}var E=Object.prototype.hasOwnProperty;function C(t,e){return E.call(t,e)}function k(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var $=/-(\w)/g,j=k((function(t){return t.replace($,(function(t,e){return e?e.toUpperCase():""}))})),T=k((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),I=/\B([A-Z])/g,N=k((function(t){return t.replace(I,"-$1").toLowerCase()}));var P=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(a){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,a):t.call(e)}return n._length=t.length,n};function M(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function R(t,e){for(var n in e)t[n]=e[n];return t}function L(t){for(var e={},i=0;i0,at=nt&&nt.indexOf("edge/")>0,st=(nt&&nt.indexOf("android"),nt&&/iphone|ipad|ipod|ios/.test(nt)||"ios"===et),ct=(nt&&/chrome\/\d+/.test(nt),nt&&/phantomjs/.test(nt),nt&&nt.match(/firefox\/(\d+)/)),ut={}.watch,ft=!1;if(Z)try{var lt={};Object.defineProperty(lt,"passive",{get:function(){ft=!0}}),window.addEventListener("test-passive",null,lt)}catch(t){}var pt=function(){return void 0===Y&&(Y=!Z&&!tt&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),Y},ht=Z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function vt(t){return"function"==typeof t&&/native code/.test(t.toString())}var yt,mt="undefined"!=typeof Symbol&&vt(Symbol)&&"undefined"!=typeof Reflect&&vt(Reflect.ownKeys);yt="undefined"!=typeof Set&&vt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var gt=D,bt=0,_t=function(){this.id=bt++,this.subs=[]};_t.prototype.addSub=function(sub){this.subs.push(sub)},_t.prototype.removeSub=function(sub){A(this.subs,sub)},_t.prototype.depend=function(){_t.target&&_t.target.addDep(this)},_t.prototype.notify=function(){var t=this.subs.slice();for(var i=0,e=t.length;i-1)if(c&&!C(o,"default"))f=!1;else if(""===f||f===N(t)){var d=Jt(String,o.type);(d<0||l0&&(ge((r=t(r,(n||"")+"_"+i))[0])&&ge(h)&&(v[d]=Ct(h.text+r[0].text),r.shift()),v.push.apply(v,r)):l(r)?ge(h)?v[d]=Ct(h.text+r):""!==r&&v.push(Ct(r)):ge(r)&&ge(h)?v[d]=Ct(h.text+r.text):(f(e._isVList)&&c(r.tag)&&o(r.key)&&c(n)&&(r.key="__vlist"+n+"_"+i+"__"),v.push(r)));return v}(t):void 0}function ge(t){return c(t)&&c(t.text)&&!1===t.isComment}function be(t,e){if(t){for(var n=Object.create(null),r=mt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,f=t?!!t.$stable:!c,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(f&&n&&n!==r&&l===n.$key&&!c&&!n.$hasNormal)return n;for(var d in o={},t)t[d]&&"$"!==d[0]&&(o[d]=Se(e,d,t[d]))}else o={};for(var h in e)h in o||(o[h]=Oe(e,h));return t&&Object.isExtensible(t)&&(t._normalized=o),X(o,"$stable",f),X(o,"$key",l),X(o,"$hasNormal",c),o}function Se(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:me(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Oe(t,e){return function(){return t[e]}}function Ae(t,e){var n,i,r,o,f;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,r=t.length;idocument.createEvent("Event").timeStamp&&(yn=function(){return mn.now()})}function gn(){var t,e;for(vn=yn(),dn=!0,un.sort((function(a,b){return a.id-b.id})),hn=0;hnhn&&un[i].id>t.id;)i--;un.splice(i+1,0,t)}else un.push(t);pn||(pn=!0,ue(gn))}}(this)},_n.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||d(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Yt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},_n.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},_n.prototype.depend=function(){for(var i=this.deps.length;i--;)this.deps[i].depend()},_n.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||A(this.vm._watchers,this);for(var i=this.deps.length;i--;)this.deps[i].removeSub(this);this.active=!1}};var wn={enumerable:!0,configurable:!0,get:D,set:D};function xn(t,e,n){wn.get=function(){return this[e][n]},wn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,wn)}function Sn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[];t.$parent&&Nt(!1);var c=function(c){o.push(c);var f=Kt(c,e,n,t);Rt(r,c,f),c in t||xn(t,"_props",c)};for(var f in e)c(f);Nt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?D:P(e[n],t)}(t,e.methods),e.data?function(t){var data=t.$options.data;v(data=t._data="function"==typeof data?function(data,t){xt();try{return data.call(t,t)}catch(e){return Yt(e,t,"data()"),{}}finally{St()}}(data,t):data||{})||(data={});var e=Object.keys(data),n=t.$options.props,i=(t.$options.methods,e.length);for(;i--;){var r=e[i];0,n&&C(n,r)||(o=void 0,36!==(o=(r+"").charCodeAt(0))&&95!==o&&xn(t,"_data",r))}var o;Mt(data,!0)}(t):Mt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=pt();for(var o in e){var c=e[o],f="function"==typeof c?c:c.get;0,r||(n[o]=new _n(t,f||D,D,On)),o in t||An(t,o,c)}}(t,e.computed),e.watch&&e.watch!==ut&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof pattern?pattern.split(",").indexOf(t)>-1:!!y(pattern)&&pattern.test(t)}function Mn(t,filter){var e=t.cache,n=t.keys,r=t._vnode;for(var o in e){var c=e[o];if(c){var f=Nn(c.componentOptions);f&&!filter(f)&&Rn(e,o,n,r)}}}function Rn(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,A(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=$n++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=zt(jn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&nn(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=_e(e._renderChildren,o),t.$scopedSlots=r,t._c=function(a,b,e,n){return Ke(t,a,b,e,n,!1)},t.$createElement=function(a,b,e,n){return Ke(t,a,b,e,n,!0)};var c=n&&n.data;Rt(t,"$attrs",c&&c.attrs||r,null,!0),Rt(t,"$listeners",e._parentListeners||r,null,!0)}(e),cn(e,"beforeCreate"),function(t){var e=be(t.$options.inject,t);e&&(Nt(!1),Object.keys(e).forEach((function(n){Rt(t,n,e[n])})),Nt(!0))}(e),Sn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),cn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Tn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Lt,t.prototype.$delete=del,t.prototype.$watch=function(t,e,n){if(v(e))return kn(this,t,e,n);(n=n||{}).user=!0;var r=new _n(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Yt(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(Tn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?M(n):n;for(var r=M(arguments,1),o='event handler for "'+t+'"',i=0,c=n.length;iparseInt(this.max)&&Rn(c,f[0],f,this._vnode)),t.data.keepAlive=!0}return t||slot&&slot[0]}}};!function(t){var e={get:function(){return K}};Object.defineProperty(t,"config",e),t.util={warn:gt,extend:R,mergeOptions:zt,defineReactive:Rt},t.set=Lt,t.delete=del,t.nextTick=ue,t.observable=function(t){return Mt(t),t},t.options=Object.create(null),z.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,R(t.options.components,Dn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=M(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=zt(this.options,t),this}}(t),In(t),function(t){z.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&v(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(Tn),Object.defineProperty(Tn.prototype,"$isServer",{get:pt}),Object.defineProperty(Tn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Tn,"FunctionalRenderContext",{value:Ue}),Tn.version="2.6.12";var Fn=S("style,class"),Un=S("input,textarea,option,select,progress"),Bn=S("contenteditable,draggable,spellcheck"),Vn=S("events,caret,typing,plaintext-only"),Hn=S("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qn="http://www.w3.org/1999/xlink",zn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Gn=function(t){return zn(t)?t.slice(6,t.length):""},Kn=function(t){return null==t||!1===t};function Wn(t){for(var data=t.data,e=t,n=t;c(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(data=Xn(n.data,data));for(;c(e=e.parent);)e&&e.data&&(data=Xn(data,e.data));return function(t,e){if(c(t)||c(e))return Jn(t,Yn(e));return""}(data.staticClass,data.class)}function Xn(t,e){return{staticClass:Jn(t.staticClass,e.staticClass),class:c(t.class)?[t.class,e.class]:e.class}}function Jn(a,b){return a?b?a+" "+b:a:b||""}function Yn(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,r=t.length;i-1?Sr(t,e,n):Hn(e)?Kn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Bn(e)?t.setAttribute(e,function(t,e){return Kn(e)||"false"===e?"false":"contenteditable"===t&&Vn(e)?e:"true"}(e,n)):zn(e)?Kn(n)?t.removeAttributeNS(qn,Gn(e)):t.setAttributeNS(qn,e,n):Sr(t,e,n)}function Sr(t,e,n){if(Kn(n))t.removeAttribute(e);else{if(ot&&!it&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Or={create:wr,update:wr};function Ar(t,e){var n=e.elm,data=e.data,r=t.data;if(!(o(data.staticClass)&&o(data.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var f=Wn(e),l=n._transitionClasses;c(l)&&(f=Jn(f,Yn(l))),f!==n._prevClass&&(n.setAttribute("class",f),n._prevClass=f)}}var Er,Cr={create:Ar,update:Ar};function kr(t,e,n){var r=Er;return function o(){var c=e.apply(null,arguments);null!==c&&Tr(t,o,n,r)}}var $r=ne&&!(ct&&Number(ct[1])<=53);function jr(t,e,n,r){if($r){var o=vn,c=e;e=c._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return c.apply(this,arguments)}}Er.addEventListener(t,e,ft?{capture:n,passive:r}:n)}function Tr(t,e,n,r){(r||Er).removeEventListener(t,e._wrapper||e,n)}function Ir(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Er=e.elm,function(t){if(c(t.__r)){var e=ot?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}c(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),he(n,r,jr,Tr,kr,e.context),Er=void 0}}var Nr,Pr={create:Ir,update:Ir};function Mr(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,r,f=e.elm,l=t.data.domProps||{},d=e.data.domProps||{};for(n in c(d.__ob__)&&(d=e.data.domProps=R({},d)),l)n in d||(f[n]="");for(n in d){if(r=d[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===l[n])continue;1===f.childNodes.length&&f.removeChild(f.childNodes[0])}if("value"===n&&"PROGRESS"!==f.tagName){f._value=r;var h=o(r)?"":String(r);Rr(f,h)&&(f.value=h)}else if("innerHTML"===n&&er(f.tagName)&&o(f.innerHTML)){(Nr=Nr||document.createElement("div")).innerHTML=""+r+"";for(var svg=Nr.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;svg.firstChild;)f.appendChild(svg.firstChild)}else if(r!==l[n])try{f[n]=r}catch(t){}}}}function Rr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(c(r)){if(r.number)return x(n)!==x(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Lr={create:Mr,update:Mr},Dr=k((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Fr(data){var style=Ur(data.style);return data.staticStyle?R(data.staticStyle,style):style}function Ur(t){return Array.isArray(t)?L(t):"string"==typeof t?Dr(t):t}var Br,Vr=/^--/,Hr=/\s*!important$/,qr=function(t,e,n){if(Vr.test(e))t.style.setProperty(e,n);else if(Hr.test(n))t.style.setProperty(N(e),n.replace(Hr,""),"important");else{var r=Gr(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(Wr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Jr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Wr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Yr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&R(e,Qr(t.name||"v")),R(e,t),e}return"string"==typeof t?Qr(t):void 0}}var Qr=k((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Zr=Z&&!it,to="transition",eo="transitionend",no="animation",ro="animationend";Zr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(to="WebkitTransition",eo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(no="WebkitAnimation",ro="webkitAnimationEnd"));var oo=Z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function io(t){oo((function(){oo(t)}))}function ao(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Xr(t,e))}function so(t,e){t._transitionClasses&&A(t._transitionClasses,e),Jr(t,e)}function co(t,e,n){var r=fo(t,e),o=r.type,c=r.timeout,f=r.propCount;if(!o)return n();var l="transition"===o?eo:ro,d=0,h=function(){t.removeEventListener(l,v),n()},v=function(e){e.target===t&&++d>=f&&h()};setTimeout((function(){d0&&(n="transition",v=f,y=c.length):"animation"===e?h>0&&(n="animation",v=h,y=d.length):y=(n=(v=Math.max(f,h))>0?f>h?"transition":"animation":null)?"transition"===n?c.length:d.length:0,{type:n,timeout:v,propCount:y,hasTransform:"transition"===n&&uo.test(r[to+"Property"])}}function lo(t,e){for(;t.length1}function go(t,e){!0!==e.data.show&&ho(e)}var bo=function(t){var i,e,n={},r=t.modules,d=t.nodeOps;for(i=0;iw?A(t,o(n[O+1])?null:n[O+1].elm,n,_,O,r):_>O&&C(e,m,w)}(m,_,x,r,y):c(x)?(c(t.text)&&d.setTextContent(m,""),A(m,null,x,0,x.length-1,r)):c(_)?C(_,0,_.length-1):c(t.text)&&d.setTextContent(m,""):t.text!==e.text&&d.setTextContent(m,e.text),c(data)&&c(i=data.hook)&&c(i=i.postpatch)&&i(t,e)}}}function T(t,e,n){if(f(n)&&c(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i-1,option.selected!==c&&(option.selected=c);else if(B(Oo(option),r))return void(t.selectedIndex!==i&&(t.selectedIndex=i));o||(t.selectedIndex=-1)}}function So(t,e){return e.every((function(e){return!B(e,t)}))}function Oo(option){return"_value"in option?option._value:option.value}function Ao(t){t.target.composing=!0}function Eo(t){t.target.composing&&(t.target.composing=!1,Co(t.target,"input"))}function Co(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ko(t){return!t.componentInstance||t.data&&t.data.transition?t:ko(t.componentInstance._vnode)}var $o={model:_o,show:{bind:function(t,e,n){var r=e.value,o=(n=ko(n)).data&&n.data.transition,c=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,ho(n,(function(){t.style.display=c}))):t.style.display=r?c:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=ko(n)).data&&n.data.transition?(n.data.show=!0,r?ho(n,(function(){t.style.display=t.__vOriginalDisplay})):vo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},jo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function To(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?To(Qe(e.children)):t}function Io(t){var data={},e=t.$options;for(var n in e.propsData)data[n]=t[n];var r=e._parentListeners;for(var o in r)data[j(o)]=r[o];return data}function No(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Po=function(t){return t.tag||Ye(t)},Mo=function(t){return"show"===t.name},Ro={name:"transition",props:jo,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Po)).length){0;var r=this.mode;0;var o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var c=To(o);if(!c)return o;if(this._leaving)return No(t,o);var f="__transition-"+this._uid+"-";c.key=null==c.key?c.isComment?f+"comment":f+c.tag:l(c.key)?0===String(c.key).indexOf(f)?c.key:f+c.key:c.key;var data=(c.data||(c.data={})).transition=Io(this),d=this._vnode,h=To(d);if(c.data.directives&&c.data.directives.some(Mo)&&(c.data.show=!0),h&&h.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(c,h)&&!Ye(h)&&(!h.componentInstance||!h.componentInstance._vnode.isComment)){var v=h.data.transition=R({},data);if("out-in"===r)return this._leaving=!0,ve(v,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),No(t,o);if("in-out"===r){if(Ye(c))return d;var y,m=function(){y()};ve(data,"afterEnter",m),ve(data,"enterCancelled",m),ve(v,"delayLeave",(function(t){y=t}))}}return o}}},Lo=R({tag:String,moveClass:String},jo);function Do(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Fo(t){t.data.newPos=t.elm.getBoundingClientRect()}function Uo(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var s=t.elm.style;s.transform=s.WebkitTransform="translate("+r+"px,"+o+"px)",s.transitionDuration="0s"}}delete Lo.mode;var Bo={Transition:Ro,TransitionGroup:{props:Lo,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=on(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",map=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],c=Io(this),i=0;i-1?rr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:rr[t]=/HTMLUnknownElement/.test(e.toString())},R(Tn.options.directives,$o),R(Tn.options.components,Bo),Tn.prototype.__patch__=Z?bo:D,Tn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=Et),cn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new _n(t,r,D,{before:function(){t._isMounted&&!t._isDestroyed&&cn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,cn(t,"mounted")),t}(this,t=t&&Z?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},Z&&setTimeout((function(){K.devtools&&ht&&ht.emit("init",Tn)}),0),e.a=Tn}).call(this,n(28),n(198).setImmediate)},function(t,e,n){var r=n(3),o=n(23).f,c=n(22),f=n(18),l=n(89),d=n(116),h=n(66);t.exports=function(t,source){var e,n,v,y,m,_=t.target,w=t.global,x=t.stat;if(e=w?r:x?r[_]||l(_,{}):(r[_]||{}).prototype)for(n in source){if(y=source[n],v=t.noTargetGet?(m=o(e,n))&&m.value:e[n],!h(w?n:_+(x?".":"#")+n,t.forced)&&void 0!==v){if(typeof y==typeof v)continue;d(y,v)}(t.sham||v&&v.sham)&&c(y,"sham",!0),f(e,n,y,t)}}},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(28))},function(t,e,n){var r=n(3),o=n(91),c=n(11),f=n(92),l=n(96),d=n(121),h=o("wks"),v=r.Symbol,y=d?v:v&&v.withoutSetter||f;t.exports=function(t){return c(h,t)||(l&&c(v,t)?h[t]=v[t]:h[t]=y("Symbol."+t)),h[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function r(t,e,n,r,o,c,f){try{var l=t[c](f),d=l.value}catch(t){return void n(t)}l.done?e(d):Promise.resolve(d).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,c){var f=t.apply(e,n);function l(t){r(f,o,c,l,d,"next",t)}function d(t){r(f,o,c,l,d,"throw",t)}l(void 0)}))}}n.d(e,"a",(function(){return o}))},function(t,e,n){var r=n(10);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(5);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){"use strict";function r(t,e,n,r,o,c,f,l){var d,h="function"==typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=n,h._compiled=!0),r&&(h.functional=!0),c&&(h._scopeId="data-v-"+c),f?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(f)},h._ssrRegister=d):o&&(d=l?function(){o.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(h.functional){h._injectStyles=d;var v=h.render;h.render=function(t,e){return d.call(e),v(t,e)}}else{var y=h.beforeCreate;h.beforeCreate=y?[].concat(y,d):[d]}return{exports:t,options:h}}n.d(e,"a",(function(){return r}))},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(8),o=n(114),c=n(7),f=n(52),l=Object.defineProperty;e.f=r?l:function(t,e,n){if(c(t),e=f(e,!0),c(n),o)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";var r=n(152),o=Object.prototype.toString;function c(t){return"[object Array]"===o.call(t)}function f(t){return void 0===t}function l(t){return null!==t&&"object"==typeof t}function d(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function h(t){return"[object Function]"===o.call(t)}function v(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),c(t))for(var i=0,n=t.length;i0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(99),o=n(18),c=n(174);r||o(Object.prototype,"toString",c,{unsafe:!0})},function(t,e,n){var r=n(3),o=n(22),c=n(11),f=n(89),l=n(90),d=n(36),h=d.get,v=d.enforce,y=String(String).split("String");(t.exports=function(t,e,n,l){var d=!!l&&!!l.unsafe,h=!!l&&!!l.enumerable,m=!!l&&!!l.noTargetGet;"function"==typeof n&&("string"!=typeof e||c(n,"name")||o(n,"name",e),v(n).source=y.join("string"==typeof e?e:"")),t!==r?(d?!m&&t[e]&&(h=!0):delete t[e],h?t[e]=n:o(t,e,n)):h?t[e]=n:f(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&h(this).source||l(this)}))},,,function(t,e,n){var r=n(51),o=n(15);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(8),o=n(12),c=n(50);t.exports=r?function(object,t,e){return o.f(object,t,c(1,e))}:function(object,t,e){return object[t]=e,object}},function(t,e,n){var r=n(8),o=n(87),c=n(50),f=n(21),l=n(52),d=n(11),h=n(114),v=Object.getOwnPropertyDescriptor;e.f=r?v:function(t,e){if(t=f(t),e=l(e,!0),h)try{return v(t,e)}catch(t){}if(d(t,e))return c(!o.f.call(t,e),t[e])}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(15);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(8),o=n(5),c=n(11),f=Object.defineProperty,l={},d=function(t){throw t};t.exports=function(t,e){if(c(l,t))return l[t];e||(e={});var n=[][t],h=!!c(e,"ACCESSORS")&&e.ACCESSORS,v=c(e,0)?e[0]:d,y=c(e,1)?e[1]:void 0;return l[t]=!!n&&!o((function(){if(h&&!r)return!0;var t={length:-1};h?f(t,1,{enumerable:!0,get:d}):t[1]=1,n.call(t,v,y)}))}},,function(t,e){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(t){"object"==typeof window&&(g=window)}t.exports=g},function(t,e){t.exports=!1},function(t,e,n){var r=n(8),o=n(12).f,c=Function.prototype,f=c.toString,l=/^\s*function ([^ (]*)/;r&&!("name"in c)&&o(c,"name",{configurable:!0,get:function(){try{return f.call(this).match(l)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(2),o=n(3),c=n(32),f=n(29),l=n(8),d=n(96),h=n(121),v=n(5),y=n(11),m=n(67),_=n(10),w=n(7),x=n(25),S=n(21),O=n(52),A=n(50),E=n(68),C=n(69),k=n(53),$=n(172),j=n(95),T=n(23),I=n(12),N=n(87),P=n(22),M=n(18),R=n(91),L=n(64),D=n(65),F=n(92),U=n(4),B=n(123),V=n(124),H=n(70),z=n(36),G=n(37).forEach,K=L("hidden"),W=U("toPrimitive"),X=z.set,J=z.getterFor("Symbol"),Y=Object.prototype,Q=o.Symbol,Z=c("JSON","stringify"),tt=T.f,et=I.f,nt=$.f,ot=N.f,it=R("symbols"),at=R("op-symbols"),st=R("string-to-symbol-registry"),ct=R("symbol-to-string-registry"),ut=R("wks"),ft=o.QObject,lt=!ft||!ft.prototype||!ft.prototype.findChild,pt=l&&v((function(){return 7!=E(et({},"a",{get:function(){return et(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=tt(Y,e);r&&delete Y[e],et(t,e,n),r&&t!==Y&&et(Y,e,r)}:et,ht=function(t,e){var symbol=it[t]=E(Q.prototype);return X(symbol,{type:"Symbol",tag:t,description:e}),l||(symbol.description=e),symbol},vt=h?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Q},yt=function(t,e,n){t===Y&&yt(at,e,n),w(t);var r=O(e,!0);return w(n),y(it,r)?(n.enumerable?(y(t,K)&&t[K][r]&&(t[K][r]=!1),n=E(n,{enumerable:A(0,!1)})):(y(t,K)||et(t,K,A(1,{})),t[K][r]=!0),pt(t,r,n)):et(t,r,n)},mt=function(t,e){w(t);var n=S(e),r=C(n).concat(wt(n));return G(r,(function(e){l&&!gt.call(n,e)||yt(t,e,n[e])})),t},gt=function(t){var e=O(t,!0),n=ot.call(this,e);return!(this===Y&&y(it,e)&&!y(at,e))&&(!(n||!y(this,e)||!y(it,e)||y(this,K)&&this[K][e])||n)},bt=function(t,e){var n=S(t),r=O(e,!0);if(n!==Y||!y(it,r)||y(at,r)){var o=tt(n,r);return!o||!y(it,r)||y(n,K)&&n[K][r]||(o.enumerable=!0),o}},_t=function(t){var e=nt(S(t)),n=[];return G(e,(function(t){y(it,t)||y(D,t)||n.push(t)})),n},wt=function(t){var e=t===Y,n=nt(e?at:S(t)),r=[];return G(n,(function(t){!y(it,t)||e&&!y(Y,t)||r.push(it[t])})),r};(d||(M((Q=function(){if(this instanceof Q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=F(t),n=function(t){this===Y&&n.call(at,t),y(this,K)&&y(this[K],e)&&(this[K][e]=!1),pt(this,e,A(1,t))};return l&<&&pt(Y,e,{configurable:!0,set:n}),ht(e,t)}).prototype,"toString",(function(){return J(this).tag})),M(Q,"withoutSetter",(function(t){return ht(F(t),t)})),N.f=gt,I.f=yt,T.f=bt,k.f=$.f=_t,j.f=wt,B.f=function(t){return ht(U(t),t)},l&&(et(Q.prototype,"description",{configurable:!0,get:function(){return J(this).description}}),f||M(Y,"propertyIsEnumerable",gt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:Q}),G(C(ut),(function(t){V(t)})),r({target:"Symbol",stat:!0,forced:!d},{for:function(t){var e=String(t);if(y(st,e))return st[e];var symbol=Q(e);return st[e]=symbol,ct[symbol]=e,symbol},keyFor:function(t){if(!vt(t))throw TypeError(t+" is not a symbol");if(y(ct,t))return ct[t]},useSetter:function(){lt=!0},useSimple:function(){lt=!1}}),r({target:"Object",stat:!0,forced:!d,sham:!l},{create:function(t,e){return void 0===e?E(t):mt(E(t),e)},defineProperty:yt,defineProperties:mt,getOwnPropertyDescriptor:bt}),r({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:_t,getOwnPropertySymbols:wt}),r({target:"Object",stat:!0,forced:v((function(){j.f(1)}))},{getOwnPropertySymbols:function(t){return j.f(x(t))}}),Z)&&r({target:"JSON",stat:!0,forced:!d||v((function(){var symbol=Q();return"[null]"!=Z([symbol])||"{}"!=Z({a:symbol})||"{}"!=Z(Object(symbol))}))},{stringify:function(t,e,n){for(var r,o=[t],c=1;arguments.length>c;)o.push(arguments[c++]);if(r=e,(_(e)||void 0!==t)&&!vt(t))return m(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!vt(e))return e}),o[1]=e,Z.apply(null,o)}});Q.prototype[W]||P(Q.prototype,W,Q.prototype.valueOf),H(Q,"Symbol"),D[K]=!0},function(t,e,n){var path=n(118),r=n(3),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(path[t])||o(r[t]):path[t]&&path[t][e]||r[t]&&r[t][e]}},function(t,e,n){"use strict";var r=n(18),o=n(7),c=n(5),f=n(100),l=RegExp.prototype,d=l.toString,h=c((function(){return"/a/b"!=d.call({source:"a",flags:"b"})})),v="toString"!=d.name;(h||v)&&r(RegExp.prototype,"toString",(function(){var t=o(this),p=String(t.source),e=t.flags;return"/"+p+"/"+String(void 0===e&&t instanceof RegExp&&!("flags"in l)?f.call(t):e)}),{unsafe:!0})},function(t,e,n){"use strict";var r=n(2),o=n(76);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,n){"use strict";var r=n(2),o=n(10),c=n(67),f=n(120),l=n(16),d=n(21),h=n(72),v=n(4),y=n(73),m=n(26),_=y("slice"),w=m("slice",{ACCESSORS:!0,0:0,1:2}),x=v("species"),S=[].slice,O=Math.max;r({target:"Array",proto:!0,forced:!_||!w},{slice:function(t,e){var n,r,v,y=d(this),m=l(y.length),_=f(t,m),w=f(void 0===e?m:e,m);if(c(y)&&("function"!=typeof(n=y.constructor)||n!==Array&&!c(n.prototype)?o(n)&&null===(n=n[x])&&(n=void 0):n=void 0,n===Array||void 0===n))return S.call(y,_,w);for(r=new(void 0===n?Array:n)(O(w-_,0)),v=0;_j;j++)if((m||j in C)&&(A=k(O=C[j],j,E),t))if(e)I[j]=A;else if(A)switch(t){case 3:return!0;case 5:return O;case 6:return j;case 2:d.call(I,O)}else if(v)return!1;return y?-1:h||v?v:I}};t.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},function(t,e,n){"use strict";var r=n(2),o=n(8),c=n(3),f=n(11),l=n(10),d=n(12).f,h=n(116),v=c.Symbol;if(o&&"function"==typeof v&&(!("description"in v.prototype)||void 0!==v().description)){var y={},m=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof m?new v(t):void 0===t?v():v(t);return""===t&&(y[e]=!0),e};h(m,v);var _=m.prototype=v.prototype;_.constructor=m;var w=_.toString,x="Symbol(test)"==String(v("test")),S=/^Symbol\((.*)\)[^)]+$/;d(_,"description",{configurable:!0,get:function(){var symbol=l(this)?this.valueOf():this,t=w.call(symbol);if(f(y,symbol))return"";var desc=x?t.slice(7,-1):t.replace(S,"$1");return""===desc?void 0:desc}}),r({global:!0,forced:!0},{Symbol:m})}},function(t,e,n){n(124)("iterator")},function(t,e,n){"use strict";var r=n(2),o=n(127);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){"use strict";var r=n(5);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(2),o=n(173);r({target:"Array",stat:!0,forced:!n(132)((function(t){Array.from(t)}))},{from:o})},function(t,e,n){"use strict";var r=n(136).charAt,o=n(36),c=n(137),f=o.set,l=o.getterFor("String Iterator");c(String,"String",(function(t){f(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=l(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(3),o=n(141),c=n(127),f=n(22);for(var l in o){var d=r[l],h=d&&d.prototype;if(h&&h.forEach!==c)try{f(h,"forEach",c)}catch(t){h.forEach=c}}},function(t,e,n){var r=n(3),o=n(141),c=n(142),f=n(22),l=n(4),d=l("iterator"),h=l("toStringTag"),v=c.values;for(var y in o){var m=r[y],_=m&&m.prototype;if(_){if(_[d]!==v)try{f(_,d,v)}catch(t){_[d]=v}if(_[h]||f(_,h,y),o[y])for(var w in c)if(_[w]!==c[w])try{f(_,w,c[w])}catch(t){_[w]=c[w]}}}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(2),o=n(3),c=n(98),f=[].slice,l=function(t){return function(e,n){var r=arguments.length>2,o=r?f.call(arguments,2):void 0;return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(c)},{setTimeout:l(o.setTimeout),setInterval:l(o.setInterval)})},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(5),o=n(24),c="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?c.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(10);t.exports=function(input,t){if(!r(input))return input;var e,n;if(t&&"function"==typeof(e=input.toString)&&!r(n=e.call(input)))return n;if("function"==typeof(e=input.valueOf)&&!r(n=e.call(input)))return n;if(!t&&"function"==typeof(e=input.toString)&&!r(n=e.call(input)))return n;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(119),o=n(94).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){"use strict";var r=n(2),o=n(37).filter,c=n(73),f=n(26),l=c("filter"),d=f("filter");r({target:"Array",proto:!0,forced:!l||!d},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(2),o=n(37).map,c=n(73),f=n(26),l=c("map"),d=f("map");r({target:"Array",proto:!0,forced:!l||!d},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e){!function(e){"use strict";var n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",f=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",d="object"==typeof t,h=e.regeneratorRuntime;if(h)d&&(t.exports=h);else{(h=e.regeneratorRuntime=d?t.exports:{}).wrap=x;var v={},y={};y[c]=function(){return this};var m=Object.getPrototypeOf,_=m&&m(m(N([])));_&&_!==n&&r.call(_,c)&&(y=_);var w=E.prototype=O.prototype=Object.create(y);A.prototype=w.constructor=E,E.constructor=A,E[l]=A.displayName="GeneratorFunction",h.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},h.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create(w),t},h.awrap=function(t){return{__await:t}},C(k.prototype),k.prototype[f]=function(){return this},h.AsyncIterator=k,h.async=function(t,e,n,r){var o=new k(x(t,e,n,r));return h.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},C(w),w[l]="Generator",w[c]=function(){return this},w.toString=function(){return"[object Generator]"},h.keys=function(object){var t=[];for(var e in object)t.push(e);return t.reverse(),function e(){for(;t.length;){var n=t.pop();if(n in object)return e.value=n,e.done=!1,e}return e.done=!0,e}},h.values=N,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return c.type="throw",c.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var f=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(f&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--i){var e=this.tryEntries[i];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),T(e),v}},catch:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var r=n.arg;T(e)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}}}function x(t,e,n,r){var o=e&&e.prototype instanceof O?e:O,c=Object.create(o.prototype),f=new I(r||[]);return c._invoke=function(t,e,n){var r="suspendedStart";return function(o,c){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw c;return P()}for(n.method=o,n.arg=c;;){var f=n.delegate;if(f){var l=$(f,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var d=S(t,e,n);if("normal"===d.type){if(r=n.done?"completed":"suspendedYield",d.arg===v)continue;return{value:d.arg,done:n.done}}"throw"===d.type&&(r="completed",n.method="throw",n.arg=d.arg)}}}(t,n,f),c}function S(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function O(){}function A(){}function E(){}function C(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function k(t){var e;this._invoke=function(n,o){function c(){return new Promise((function(e,c){!function e(n,o,c,f){var l=S(t[n],t,o);if("throw"!==l.type){var d=l.arg,h=d.value;return h&&"object"==typeof h&&r.call(h,"__await")?Promise.resolve(h.__await).then((function(t){e("next",t,c,f)}),(function(t){e("throw",t,c,f)})):Promise.resolve(h).then((function(t){d.value=t,c(d)}),(function(t){return e("throw",t,c,f)}))}f(l.arg)}(n,o,e,c)}))}return e=e?e.then(c,c):c()}}function $(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,$(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=S(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,v;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function e(){for(;++i-1&&e.splice(i,1)}}function _(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;x(t,n,[],t._modules.root,!0),w(t,n,e)}function w(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var c=t._wrappedGetters,f={};o(c,(function(e,n){f[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var l=h.config.silent;h.config.silent=!0,t._vm=new h({data:{$$state:e},computed:f}),h.config.silent=l,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),h.nextTick((function(){return r.$destroy()})))}function x(t,e,path,n,r){var o=!path.length,c=t._modules.getNamespace(path);if(n.namespaced&&(t._modulesNamespaceMap[c],t._modulesNamespaceMap[c]=n),!o&&!r){var f=S(e,path.slice(0,-1)),l=path[path.length-1];t._withCommit((function(){h.set(f,l,n.state)}))}var d=n.context=function(t,e,path){var n=""===e,r={dispatch:n?t.dispatch:function(n,r,o){var c=O(n,r,o),f=c.payload,l=c.options,d=c.type;return l&&l.root||(d=e+d),t.dispatch(d,f)},commit:n?t.commit:function(n,r,o){var c=O(n,r,o),f=c.payload,l=c.options,d=c.type;l&&l.root||(d=e+d),t.commit(d,f,l)}};return Object.defineProperties(r,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===e){var c=o.slice(r);Object.defineProperty(n,c,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return S(t.state,path)}}}),r}(t,c,path);n.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,c+n,e,d)})),n.forEachAction((function(e,n){var r=e.root?n:c+n,o=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e){var o,c=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(o=c)&&"function"==typeof o.then||(c=Promise.resolve(c)),t._devtoolHook?c.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):c}))}(t,r,o,d)})),n.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,c+n,e,d)})),n.forEachChild((function(n,o){x(t,e,path.concat(o),n,r)}))}function S(t,path){return path.reduce((function(t,e){return t[e]}),t)}function O(t,e,n){return c(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function A(t){h&&t===h||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(h=t)}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(t){0},v.prototype.commit=function(t,e,n){var r=this,o=O(t,e,n),c=o.type,f=o.payload,l=(o.options,{type:c,payload:f}),d=this._mutations[c];d&&(this._withCommit((function(){d.forEach((function(t){t(f)}))})),this._subscribers.slice().forEach((function(sub){return sub(l,r.state)})))},v.prototype.dispatch=function(t,e){var n=this,r=O(t,e),o=r.type,c=r.payload,f={type:o,payload:c},l=this._actions[o];if(l){try{this._actionSubscribers.slice().filter((function(sub){return sub.before})).forEach((function(sub){return sub.before(f,n.state)}))}catch(t){0}var d=l.length>1?Promise.all(l.map((function(t){return t(c)}))):l[0](c);return new Promise((function(t,e){d.then((function(e){try{n._actionSubscribers.filter((function(sub){return sub.after})).forEach((function(sub){return sub.after(f,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(sub){return sub.error})).forEach((function(sub){return sub.error(f,n.state,t)}))}catch(t){0}e(t)}))}))}},v.prototype.subscribe=function(t,e){return m(t,this._subscribers,e)},v.prototype.subscribeAction=function(t,e){return m("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},v.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},v.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},v.prototype.registerModule=function(path,t,e){void 0===e&&(e={}),"string"==typeof path&&(path=[path]),this._modules.register(path,t),x(this,this.state,path,this._modules.get(path),e.preserveState),w(this,this.state)},v.prototype.unregisterModule=function(path){var t=this;"string"==typeof path&&(path=[path]),this._modules.unregister(path),this._withCommit((function(){var e=S(t.state,path.slice(0,-1));h.delete(e,path[path.length-1])})),_(this)},v.prototype.hasModule=function(path){return"string"==typeof path&&(path=[path]),this._modules.isRegistered(path)},v.prototype.hotUpdate=function(t){this._modules.update(t),_(this,!0)},v.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(v.prototype,y);var E=T((function(t,e){var n={};return j(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=I(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),C=T((function(t,e){var n={};return j(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var c=I(this.$store,"mapMutations",t);if(!c)return;r=c.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),k=T((function(t,e){var n={};return j(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||I(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),$=T((function(t,e){var n={};return j(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var c=I(this.$store,"mapActions",t);if(!c)return;r=c.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n}));function j(map){return function(map){return Array.isArray(map)||c(map)}(map)?Array.isArray(map)?map.map((function(t){return{key:t,val:t}})):Object.keys(map).map((function(t){return{key:t,val:map[t]}})):[]}function T(t){return function(e,map){return"string"!=typeof e?(map=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,map)}}function I(t,e,n){return t._modulesNamespaceMap[n]}function N(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function P(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function M(){var time=new Date;return" @ "+R(time.getHours(),2)+":"+R(time.getMinutes(),2)+":"+R(time.getSeconds(),2)+"."+R(time.getMilliseconds(),3)}function R(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var L={Store:v,install:A,version:"3.5.1",mapState:E,mapMutations:C,mapGetters:k,mapActions:$,createNamespacedHelpers:function(t){return{mapState:E.bind(null,t),mapGetters:k.bind(null,t),mapMutations:C.bind(null,t),mapActions:$.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var filter=t.filter;void 0===filter&&(filter=function(t,e,n){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var c=t.actionFilter;void 0===c&&(c=function(t,e){return!0});var f=t.actionTransformer;void 0===f&&(f=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var d=t.logActions;void 0===d&&(d=!0);var h=t.logger;return void 0===h&&(h=console),function(t){var v=r(t.state);void 0!==h&&(l&&t.subscribe((function(t,c){var f=r(c);if(filter(t,v,f)){var l=M(),d=o(t),y="mutation "+t.type+l;N(h,y,e),h.log("%c prev state","color: #9E9E9E; font-weight: bold",n(v)),h.log("%c mutation","color: #03A9F4; font-weight: bold",d),h.log("%c next state","color: #4CAF50; font-weight: bold",n(f)),P(h)}v=f})),d&&t.subscribeAction((function(t,n){if(c(t,n)){var r=M(),o=f(t),l="action "+t.type+r;N(h,l,e),h.log("%c action","color: #03A9F4; font-weight: bold",o),P(h)}})))}}};e.a=L}).call(this,n(28))},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i=0&&(t=path.slice(n),path=path.slice(0,n));var r=path.indexOf("?");return r>=0&&(e=path.slice(r+1),path=path.slice(0,r)),{path:path,query:e,hash:t}}(c.path||""),v=e&&e.path||"/",path=h.path?$(h.path,v,n||c.append):v,_=function(t,e,n){void 0===e&&(e={});var r,o=n||m;try{r=o(t||"")}catch(t){r={}}for(var c in e){var f=e[c];r[c]=Array.isArray(f)?f.map(y):y(f)}return r}(h.query,c.query,o&&o.options.parseQuery),w=c.hash||h.hash;return w&&"#"!==w.charAt(0)&&(w="#"+w),{_normalized:!0,path:path,query:_,hash:w}}var Y,Q=function(){},Z={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,o=this.$route,c=n.resolve(this.to,o,this.append),f=c.location,l=c.route,d=c.href,h={},v=n.options.linkActiveClass,y=n.options.linkExactActiveClass,m=null==v?"router-link-active":v,_=null==y?"router-link-exact-active":y,S=null==this.activeClass?m:this.activeClass,O=null==this.exactActiveClass?_:this.exactActiveClass,A=l.redirectedFrom?x(null,J(l.redirectedFrom),null,n):l;h[O]=C(o,A),h[S]=this.exact?h[O]:function(t,e){return 0===t.path.replace(w,"/").indexOf(e.path.replace(w,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(o,A);var E=h[O]?this.ariaCurrentValue:null,k=function(t){tt(t)&&(e.replace?n.replace(f,Q):n.push(f,Q))},$={click:tt};Array.isArray(this.event)?this.event.forEach((function(t){$[t]=k})):$[this.event]=k;var data={class:h},j=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:d,route:l,navigate:k,isActive:h[S],isExactActive:h[O]});if(j){if(1===j.length)return j[0];if(j.length>1||!j.length)return 0===j.length?t():t("span",{},j)}if("a"===this.tag)data.on=$,data.attrs={href:d,"aria-current":E};else{var a=function t(e){var n;if(e)for(var i=0;i-1&&(l.params[m]=n.params[m]);return l.path=X(v.path,l.params),d(v,l,f)}if(l.path){l.params={};for(var i=0;i=t.length?n():t[o]?e(t[o],(function(){r(o+1)})):r(o+1)};r(0)}var kt={redirected:2,aborted:4,cancelled:8,duplicated:16};function $t(t,e){return Tt(t,e,kt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return It.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function jt(t,e){return Tt(t,e,kt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Tt(t,e,n,r){var o=new Error(r);return o._isRouter=!0,o.from=t,o.to=e,o.type=n,o}var It=["params","query","hash"];function Nt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Pt(t,e){return Nt(t)&&t._isRouter&&(null==e||t.type===e)}function Mt(t){return function(e,n,r){var o=!1,c=0,f=null;Rt(t,(function(t,e,n,l){if("function"==typeof t&&void 0===t.cid){o=!0,c++;var d,h=Ft((function(e){var o;((o=e).__esModule||Dt&&"Module"===o[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Y.extend(e),n.components[l]=e,--c<=0&&r()})),v=Ft((function(t){var e="Failed to resolve async component "+l+": "+t;f||(f=Nt(t)?t:new Error(e),r(f))}));try{d=t(h,v)}catch(t){v(t)}if(d)if("function"==typeof d.then)d.then(h,v);else{var y=d.component;y&&"function"==typeof y.then&&y.then(h,v)}}})),o||r()}}function Rt(t,e){return Lt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Lt(t){return Array.prototype.concat.apply([],t)}var Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Ft(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Ut=function(t,base){this.router=t,this.base=function(base){if(!base)if(et){var t=document.querySelector("base");base=(base=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else base="/";"/"!==base.charAt(0)&&(base="/"+base);return base.replace(/\/$/,"")}(base),this.current=O,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Bt(t,e,n,r){var o=Rt(t,(function(t,r,o,c){var f=function(t,e){"function"!=typeof t&&(t=Y.extend(t));return t.options[e]}(t,e);if(f)return Array.isArray(f)?f.map((function(t){return n(t,r,o,c)})):n(f,r,o,c)}));return Lt(r?o.reverse():o)}function Vt(t,e){if(e)return function(){return t.apply(e,arguments)}}Ut.prototype.listen=function(t){this.cb=t},Ut.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Ut.prototype.onError=function(t){this.errorCbs.push(t)},Ut.prototype.transitionTo=function(t,e,n){var r,o=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var c=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),e&&e(r),o.ensureURL(),o.router.afterHooks.forEach((function(t){t&&t(r,c)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!o.ready&&(Pt(t,kt.redirected)&&c===O||(o.ready=!0,o.readyErrorCbs.forEach((function(e){e(t)}))))}))},Ut.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current;this.pending=t;var c,f,l=function(t){!Pt(t)&&Nt(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},d=t.matched.length-1,h=o.matched.length-1;if(C(t,o)&&d===h&&t.matched[d]===o.matched[h])return this.ensureURL(),l(((f=Tt(c=o,t,kt.duplicated,'Avoided redundant navigation to current location: "'+c.fullPath+'".')).name="NavigationDuplicated",f));var v=function(t,e){var i,n=Math.max(t.length,e.length);for(i=0;i0)){var e=this.router,n=e.options.scrollBehavior,r=Ot&&n;r&&this.listeners.push(ht());var o=function(){var n=t.current,o=qt(t.base);t.current===O&&o===t._startLocation||t.transitionTo(o,(function(t){r&&vt(e,t,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){At(j(r.base+t.fullPath)),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Et(j(r.base+t.fullPath)),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(qt(this.base)!==this.current.fullPath){var e=j(this.base+this.current.fullPath);t?At(e):Et(e)}},e.prototype.getCurrentLocation=function(){return qt(this.base)},e}(Ut);function qt(base){var path=decodeURI(window.location.pathname);return base&&0===path.toLowerCase().indexOf(base.toLowerCase())&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash}var zt=function(t){function e(e,base,n){t.call(this,e,base),n&&function(base){var t=qt(base);if(!/^\/#/.test(t))return window.location.replace(j(base+"/#"+t)),!0}(this.base)||Gt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=Ot&&e;n&&this.listeners.push(ht());var r=function(){var e=t.current;Gt()&&t.transitionTo(Kt(),(function(r){n&&vt(t.router,r,e,!0),Ot||Jt(r.fullPath)}))},o=Ot?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Xt(t.fullPath),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Jt(t.fullPath),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Kt()!==e&&(t?Xt(e):Jt(e))},e.prototype.getCurrentLocation=function(){return Kt()},e}(Ut);function Gt(){var path=Kt();return"/"===path.charAt(0)||(Jt("/"+path),!1)}function Kt(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var n=(t=t.slice(e+1)).indexOf("?");if(n<0){var r=t.indexOf("#");t=r>-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else t=decodeURI(t.slice(0,n))+t.slice(n);return t}function Wt(path){var t=window.location.href,i=t.indexOf("#");return(i>=0?t.slice(0,i):t)+"#"+path}function Xt(path){Ot?At(Wt(path)):window.location.hash=path}function Jt(path){Ot?Et(Wt(path)):window.location.replace(Wt(path))}var Yt=function(t){function e(e,base){t.call(this,e,base),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Pt(t,kt.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Ut),Qt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=it(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Ot&&!1!==t.fallback,this.fallback&&(e="hash"),et||(e="abstract"),this.mode=e,e){case"history":this.history=new Ht(this,t.base);break;case"hash":this.history=new zt(this,t.base,this.fallback);break;case"abstract":this.history=new Yt(this,t.base);break;default:0}},Zt={currentRoute:{configurable:!0}};function te(t,e){return t.push(e),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}Qt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Zt.currentRoute.get=function(){return this.history&&this.history.current},Qt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Ht||n instanceof zt){var r=function(t){n.setupListeners(),function(t){var r=n.current,o=e.options.scrollBehavior;Ot&&o&&"fullPath"in t&&vt(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Qt.prototype.beforeEach=function(t){return te(this.beforeHooks,t)},Qt.prototype.beforeResolve=function(t){return te(this.resolveHooks,t)},Qt.prototype.afterEach=function(t){return te(this.afterHooks,t)},Qt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Qt.prototype.onError=function(t){this.history.onError(t)},Qt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Qt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Qt.prototype.go=function(t){this.history.go(t)},Qt.prototype.back=function(){this.go(-1)},Qt.prototype.forward=function(){this.go(1)},Qt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Qt.prototype.resolve=function(t,e,n){var r=J(t,e=e||this.history.current,n,this),o=this.match(r,e),c=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(base,t,e){var path="hash"===e?"#"+t:t;return base?j(base+"/"+path):path}(this.history.base,c,this.mode),normalizedTo:r,resolved:o}},Qt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==O&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Qt.prototype,Zt),Qt.install=function t(e){if(!t.installed||Y!==e){t.installed=!0,Y=e;var n=function(t){return void 0!==t},r=function(t,e){var i=t.$options._parentVnode;n(i)&&n(i=i.data)&&n(i=i.registerRouteInstance)&&i(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",o),e.component("RouterLink",Z);var c=e.config.optionMergeStrategies;c.beforeRouteEnter=c.beforeRouteLeave=c.beforeRouteUpdate=c.created}},Qt.version="3.4.5",Qt.isNavigationFailure=Pt,Qt.NavigationFailureType=kt,et&&window.Vue&&window.Vue.use(Qt),e.a=Qt},function(t,e,n){"use strict";var r=n(77),o=n(7),c=n(25),f=n(16),l=n(54),d=n(15),h=n(105),v=n(78),y=Math.max,m=Math.min,_=Math.floor,w=/\$([$&'`]|\d\d?|<[^>]*>)/g,x=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,e,n,r){var S=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,O=r.REPLACE_KEEPS_$0,A=S?"$":"$0";return[function(n,r){var o=d(this),c=null==n?void 0:n[t];return void 0!==c?c.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!S&&O||"string"==typeof r&&-1===r.indexOf(A)){var c=n(e,t,this,r);if(c.done)return c.value}var d=o(t),_=String(this),w="function"==typeof r;w||(r=String(r));var x=d.global;if(x){var C=d.unicode;d.lastIndex=0}for(var k=[];;){var $=v(d,_);if(null===$)break;if(k.push($),!x)break;""===String($[0])&&(d.lastIndex=h(_,f(d.lastIndex),C))}for(var j,T="",I=0,i=0;i=I&&(T+=_.slice(I,P)+F,I=P+N.length)}return T+_.slice(I)}];function E(t,n,r,o,f,l){var d=r+t.length,h=o.length,v=x;return void 0!==f&&(f=c(f),v=w),e.call(l,v,(function(e,c){var l;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(d);case"<":l=f[c.slice(1,-1)];break;default:var v=+c;if(0===v)return e;if(v>h){var y=_(v/10);return 0===y?e:y<=h?void 0===o[y-1]?c.charAt(1):o[y-1]+c.charAt(1):e}l=o[v-1]}return void 0===l?"":l}))}}))},function(t,e,n){var r=n(91),o=n(92),c=r("keys");t.exports=function(t){return c[t]||(c[t]=o(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(5),o=/#|\.prototype\./,c=function(t,e){var n=data[f(t)];return n==d||n!=l&&("function"==typeof e?r(e):!!e)},f=c.normalize=function(t){return String(t).replace(o,".").toLowerCase()},data=c.data={},l=c.NATIVE="N",d=c.POLYFILL="P";t.exports=c},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r,o=n(7),c=n(171),f=n(94),l=n(65),html=n(122),d=n(88),h=n(64),v=h("IE_PROTO"),y=function(){},m=function(content){return" +
diff --git a/Tubio/frontend/mstile-150x150.png b/Tubio/frontend/mstile-150x150.png new file mode 100644 index 0000000..a2acbd4 Binary files /dev/null and b/Tubio/frontend/mstile-150x150.png differ diff --git a/Tubio/frontend/safari-pinned-tab.svg b/Tubio/frontend/safari-pinned-tab.svg new file mode 100644 index 0000000..65a547f --- /dev/null +++ b/Tubio/frontend/safari-pinned-tab.svg @@ -0,0 +1,15 @@ + + + + +Created by potrace 1.11, written by Peter Selinger 2001-2013 + + + + + diff --git a/Tubio/frontend/settings/index.html b/Tubio/frontend/settings/index.html index 842c945..e8b6669 100644 --- a/Tubio/frontend/settings/index.html +++ b/Tubio/frontend/settings/index.html @@ -1,11 +1,11 @@ - Tubio - Video downloader + Tubio - Video downloader -

Settings

Limit speed

Max speed

Download threads

Disk usage

Downloads:

NaN mb

Logs:

NaN mb

Dependencies:

NaN mb

Misc:

NaN mb

Total:

NaN mb

Clear downloads
Clear logs
Kill server

Logs

diff --git a/Tubio/frontend/site.webmanifest b/Tubio/frontend/site.webmanifest new file mode 100644 index 0000000..b20abb7 --- /dev/null +++ b/Tubio/frontend/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/tubio-frontend-nuxt-app/components/DownloadBox.vue b/tubio-frontend-nuxt-app/components/DownloadBox.vue index 4a4dcdd..1e91933 100644 --- a/tubio-frontend-nuxt-app/components/DownloadBox.vue +++ b/tubio-frontend-nuxt-app/components/DownloadBox.vue @@ -30,9 +30,9 @@ export default { mounted() { const that = this; - this.$store.dispatch("dlcache/update", this); + this.$store.dispatch("dlcache/update"); setInterval(function(){ - that.$store.dispatch("dlcache/update", that); + that.$store.dispatch("dlcache/update"); }, 1000); return; } diff --git a/tubio-frontend-nuxt-app/components/LogBox.vue b/tubio-frontend-nuxt-app/components/LogBox.vue index b2ffa73..5a13428 100644 --- a/tubio-frontend-nuxt-app/components/LogBox.vue +++ b/tubio-frontend-nuxt-app/components/LogBox.vue @@ -23,9 +23,9 @@ export default { mounted() { const that = this; - this.$store.dispatch("logs/update", this); + this.$store.dispatch("logs/update"); setInterval(function(){ - that.$store.dispatch("logs/update", that); + that.$store.dispatch("logs/update"); }, 1000); return; } diff --git a/tubio-frontend-nuxt-app/nuxt.config.js b/tubio-frontend-nuxt-app/nuxt.config.js index ecfb046..7dcdacd 100644 --- a/tubio-frontend-nuxt-app/nuxt.config.js +++ b/tubio-frontend-nuxt-app/nuxt.config.js @@ -16,10 +16,16 @@ export default { meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, - { hid: 'description', name: 'description', content: '' } + { hid: 'description', name: 'description', content: '' }, + { name: 'msapplication-TileColor', content: '#031934' }, + { name: 'theme-color', content: '#031934' }, ], link: [ - { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } + { rel: 'apple-touch-icon', sizes: "180x180", href: '/apple-touch-icon.png' }, + { rel: 'icon', type: "image/png", sizes: "32x32", href: '/favicon-32x32.png' }, + { rel: 'icon', type: "image/png", sizes: "16x16", href: '/favicon-16x16.png' }, + { rel: 'manifest', href: '/site.webmanifest' }, + { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#031934' }, ] }, diff --git a/tubio-frontend-nuxt-app/pages/index.vue b/tubio-frontend-nuxt-app/pages/index.vue index 595a9d4..ae96bbe 100644 --- a/tubio-frontend-nuxt-app/pages/index.vue +++ b/tubio-frontend-nuxt-app/pages/index.vue @@ -2,13 +2,20 @@
- +
@@ -47,7 +54,7 @@ export default { }, methods: { - downloadButtonClicked: function(){ + downloadButtonClicked: function() { const that = this; if (this.$refs.video_url.value.match(/(https?:\/\/)?[a-zA-Z0-9-_.]+\.[a-zA-Z-_.]+/)) { @@ -63,7 +70,13 @@ export default { } }); } + return; + }, + keyMonitor: function(event) { + if (event.key == "Enter") { + this.downloadButtonClicked(); + } return; } } diff --git a/tubio-frontend-nuxt-app/pages/settings.vue b/tubio-frontend-nuxt-app/pages/settings.vue index 701e03e..6e4b832 100644 --- a/tubio-frontend-nuxt-app/pages/settings.vue +++ b/tubio-frontend-nuxt-app/pages/settings.vue @@ -9,26 +9,70 @@
-
-

Show console

- -
+
+
+

Show console

+
+ +
+
-
-

Max speed

- -
+
+

Max speed

+ +
-
-

Download threads

- -
+
+

Download threads

+ +
+ +
+

Only allow localhost

+
+ +
+

Enable whitelist

- +
+ +
+
+ + +
+

Whitelist

+