!function(t){function n(n){for(var e,o,i=n[0],a=n[1],s=0,c=[];s=0&&Math.floor(n)===n&&isFinite(t)}function d(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function h(t){var n=parseFloat(t);return isNaN(n)?t:n}function v(t,n){for(var e=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(e,1)}}var g=Object.prototype.hasOwnProperty;function _(t,n){return g.call(t,n)}function b(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var w=/-(\w)/g,A=b(function(t){return t.replace(w,function(t,n){return n?n.toUpperCase():""})}),C=b(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),O=/\B([A-Z])/g,x=b(function(t){return t.replace(O,"-$1").toLowerCase()});var E=Function.prototype.bind?function(t,n){return t.bind(n)}:function(t,n){function e(e){var r=arguments.length;return r?r>1?t.apply(n,arguments):t.call(n,e):t.call(n)}return e._length=t.length,e};function T(t,n){n=n||0;for(var e=t.length-n,r=new Array(e);e--;)r[e]=t[e+n];return r}function S(t,n){for(var e in n)t[e]=n[e];return t}function I(t){for(var n={},e=0;e0,Y=J&&J.indexOf("edge/")>0,Z=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===z),V=(J&&/chrome\/\d+/.test(J),{}.watch),Q=!1;if(X)try{var tt={};Object.defineProperty(tt,"passive",{get:function(){Q=!0}}),window.addEventListener("test-passive",null,tt)}catch(t){}var nt=function(){return void 0===H&&(H=!X&&!W&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),H},et=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function rt(t){return"function"==typeof t&&/native code/.test(t.toString())}var ot,it="undefined"!=typeof Symbol&&rt(Symbol)&&"undefined"!=typeof Reflect&&rt(Reflect.ownKeys);ot="undefined"!=typeof Set&&rt(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 at=L,st=0,ut=function(){this.id=st++,this.subs=[]};ut.prototype.addSub=function(t){this.subs.push(t)},ut.prototype.removeSub=function(t){y(this.subs,t)},ut.prototype.depend=function(){ut.target&&ut.target.addDep(this)},ut.prototype.notify=function(){var t=this.subs.slice();for(var n=0,e=t.length;n-1)if(i&&!_(o,"default"))a=!1;else if(""===a||a===x(t)){var u=Rt(String,o.type);(u<0||s0&&(un((c=t(c,(e||"")+"_"+u))[0])&&un(p)&&(r[f]=vt(p.text+c[0].text),c.shift()),r.push.apply(r,c)):s(c)?un(p)?r[f]=vt(p.text+c):""!==c&&r.push(vt(c)):un(c)&&un(p)?r[f]=vt(p.text+c.text):(a(n._isVList)&&i(c.tag)&&o(c.key)&&i(e)&&(c.key="__vlist"+e+"_"+u+"__"),r.push(c)));return r}(t):void 0}function un(t){return i(t)&&i(t.text)&&!1===t.isComment}function cn(t,n){return(t.__esModule||it&&"Module"===t[Symbol.toStringTag])&&(t=t.default),u(t)?n.extend(t):t}function fn(t){return t.isComment&&t.asyncFactory}function pn(t){if(Array.isArray(t))for(var n=0;nIn&&On[e].id>t.id;)e--;On.splice(e+1,0,t)}else On.push(t);Tn||(Tn=!0,Zt(Ln))}}(this)},Un.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var n=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,n)}catch(t){kt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,n)}}},Un.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Un.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Un.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Pn={enumerable:!0,configurable:!0,get:L,set:L};function jn(t,n,e){Pn.get=function(){return this[n][e]},Pn.set=function(t){this[n][e]=t},Object.defineProperty(t,e,Pn)}function Mn(t){t._watchers=[];var n=t.$options;n.props&&function(t,n){var e=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[];t.$parent&&wt(!1);var i=function(i){o.push(i);var a=Mt(i,n,e,t);Ot(r,i,a),i in t||jn(t,"_props",i)};for(var a in n)i(a);wt(!0)}(t,n.props),n.methods&&function(t,n){t.$options.props;for(var e in n)t[e]="function"!=typeof n[e]?L:E(n[e],t)}(t,n.methods),n.data?function(t){var n=t.$options.data;f(n=t._data="function"==typeof n?function(t,n){ft();try{return t.call(n,n)}catch(t){return kt(t,n,"data()"),{}}finally{pt()}}(n,t):n||{})||(n={});var e=Object.keys(n),r=t.$options.props,o=(t.$options.methods,e.length);for(;o--;){var i=e[o];0,r&&_(r,i)||(a=void 0,36!==(a=(i+"").charCodeAt(0))&&95!==a&&jn(t,"_data",i))}var a;Ct(n,!0)}(t):Ct(t._data={},!0),n.computed&&function(t,n){var e=t._computedWatchers=Object.create(null),r=nt();for(var o in n){var i=n[o],a="function"==typeof i?i:i.get;0,r||(e[o]=new Un(t,a||L,L,qn)),o in t||Fn(t,o,i)}}(t,n.computed),n.watch&&n.watch!==V&&function(t,n){for(var e in n){var r=n[e];if(Array.isArray(r))for(var o=0;o=0||e.indexOf(t[o])<0)&&r.push(t[o]);return r}return t}function de(t){this._init(t)}function he(t){t.cid=0;var n=1;t.extend=function(t){t=t||{};var e=this,r=e.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||e.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(e.prototype)).constructor=a,a.cid=n++,a.options=Pt(e.options,t),a.super=e,a.options.props&&function(t){var n=t.options.props;for(var e in n)jn(t.prototype,"_props",e)}(a),a.options.computed&&function(t){var n=t.options.computed;for(var e in n)Fn(t.prototype,e,n[e])}(a),a.extend=e.extend,a.mixin=e.mixin,a.use=e.use,F.forEach(function(t){a[t]=e[t]}),i&&(a.options.components[i]=a),a.superOptions=e.options,a.extendOptions=t,a.sealedOptions=S({},a.options),o[r]=a,a}}function ve(t){return t&&(t.Ctor.options.name||t.tag)}function me(t,n){return Array.isArray(t)?t.indexOf(n)>-1:"string"==typeof t?t.split(",").indexOf(n)>-1:!!p(t)&&t.test(n)}function ye(t,n){var e=t.cache,r=t.keys,o=t._vnode;for(var i in e){var a=e[i];if(a){var s=ve(a.componentOptions);s&&!n(s)&&ge(e,i,r,o)}}}function ge(t,n,e,r){var o=t[n];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[n]=null,y(e,n)}!function(t){t.prototype._init=function(t){var n=this;n._uid=fe++,n._isVue=!0,t&&t._isComponent?function(t,n){var e=t.$options=Object.create(t.constructor.options),r=n._parentVnode;e.parent=n.parent,e._parentVnode=r;var o=r.componentOptions;e.propsData=o.propsData,e._parentListeners=o.listeners,e._renderChildren=o.children,e._componentTag=o.tag,n.render&&(e.render=n.render,e.staticRenderFns=n.staticRenderFns)}(n,t):n.$options=Pt(pe(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(t){var n=t.$options,e=n.parent;if(e&&!n.abstract){for(;e.$options.abstract&&e.$parent;)e=e.$parent;e.$children.push(t)}t.$parent=e,t.$root=e?e.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(n),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var n=t.$options._parentListeners;n&&vn(t,n)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,e=t.$vnode=n._parentVnode,o=e&&e.context;t.$slots=mn(n._renderChildren,o),t.$scopedSlots=r,t._c=function(n,e,r,o){return ce(t,n,e,r,o,!1)},t.$createElement=function(n,e,r,o){return ce(t,n,e,r,o,!0)};var i=e&&e.data;Ot(t,"$attrs",i&&i.attrs||r,null,!0),Ot(t,"$listeners",n._parentListeners||r,null,!0)}(n),Cn(n,"beforeCreate"),function(t){var n=Dn(t.$options.inject,t);n&&(wt(!1),Object.keys(n).forEach(function(e){Ot(t,e,n[e])}),wt(!0))}(n),Mn(n),function(t){var n=t.$options.provide;n&&(t._provided="function"==typeof n?n.call(t):n)}(n),Cn(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(de),function(t){var n={get:function(){return this._data}},e={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",n),Object.defineProperty(t.prototype,"$props",e),t.prototype.$set=xt,t.prototype.$delete=Et,t.prototype.$watch=function(t,n,e){if(f(n))return Bn(this,t,n,e);(e=e||{}).user=!0;var r=new Un(this,t,n,e);if(e.immediate)try{n.call(this,r.value)}catch(t){kt(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(de),function(t){var n=/^hook:/;t.prototype.$on=function(t,e){var r=this;if(Array.isArray(t))for(var o=0,i=t.length;o1?T(n):n;for(var e=T(arguments,1),r=0,o=n.length;rparseInt(this.max)&&ge(a,s[0],s,this._vnode)),n.data.keepAlive=!0}return n||t&&t[0]}}};!function(t){var n={get:function(){return k}};Object.defineProperty(t,"config",n),t.util={warn:at,extend:S,mergeOptions:Pt,defineReactive:Ot},t.set=xt,t.delete=Et,t.nextTick=Zt,t.options=Object.create(null),F.forEach(function(n){t.options[n+"s"]=Object.create(null)}),t.options._base=t,S(t.options.components,be),function(t){t.use=function(t){var n=this._installedPlugins||(this._installedPlugins=[]);if(n.indexOf(t)>-1)return this;var e=T(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):"function"==typeof t&&t.apply(null,e),n.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Pt(this.options,t),this}}(t),he(t),function(t){F.forEach(function(n){t[n]=function(t,e){return e?("component"===n&&f(e)&&(e.name=e.name||t,e=this.options._base.extend(e)),"directive"===n&&"function"==typeof e&&(e={bind:e,update:e}),this.options[n+"s"][t]=e,e):this.options[n+"s"][t]}})}(t)}(de),Object.defineProperty(de.prototype,"$isServer",{get:nt}),Object.defineProperty(de.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(de,"FunctionalRenderContext",{value:te}),de.version="2.5.21";var we=v("style,class"),Ae=v("input,textarea,option,select,progress"),Ce=v("contenteditable,draggable,spellcheck"),Oe=v("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"),xe="http://www.w3.org/1999/xlink",Ee=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Te=function(t){return Ee(t)?t.slice(6,t.length):""},Se=function(t){return null==t||!1===t};function Ie(t){for(var n=t.data,e=t,r=t;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(n=Le(r.data,n));for(;i(e=e.parent);)e&&e.data&&(n=Le(n,e.data));return function(t,n){if(i(t)||i(n))return $e(t,Ue(n));return""}(n.staticClass,n.class)}function Le(t,n){return{staticClass:$e(t.staticClass,n.staticClass),class:i(t.class)?[t.class,n.class]:n.class}}function $e(t,n){return t?n?t+" "+n:t:n||""}function Ue(t){return Array.isArray(t)?function(t){for(var n,e="",r=0,o=t.length;r-1?nr(t,n,e):Oe(n)?Se(e)?t.removeAttribute(n):(e="allowfullscreen"===n&&"EMBED"===t.tagName?"true":n,t.setAttribute(n,e)):Ce(n)?t.setAttribute(n,Se(e)||"false"===e?"false":"true"):Ee(n)?Se(e)?t.removeAttributeNS(xe,Te(n)):t.setAttributeNS(xe,n,e):nr(t,n,e)}function nr(t,n,e){if(Se(e))t.removeAttribute(n);else{if(N&&!K&&("TEXTAREA"===t.tagName||"INPUT"===t.tagName)&&"placeholder"===n&&!t.__ieph){var r=function(n){n.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(n,e)}}var er={create:Qe,update:Qe};function rr(t,n){var e=n.elm,r=n.data,a=t.data;if(!(o(r.staticClass)&&o(r.class)&&(o(a)||o(a.staticClass)&&o(a.class)))){var s=Ie(n),u=e._transitionClasses;i(u)&&(s=$e(s,Ue(u))),s!==e._prevClass&&(e.setAttribute("class",s),e._prevClass=s)}}var or,ir={create:rr,update:rr},ar="__r",sr="__c";function ur(t,n,e){var r=or;return function o(){null!==n.apply(null,arguments)&&fr(t,o,e,r)}}function cr(t,n,e,r){var o;n=(o=n)._withTask||(o._withTask=function(){Jt=!0;try{return o.apply(null,arguments)}finally{Jt=!1}}),or.addEventListener(t,n,Q?{capture:e,passive:r}:e)}function fr(t,n,e,r){(r||or).removeEventListener(t,n._withTask||n,e)}function pr(t,n){if(!o(t.data.on)||!o(n.data.on)){var e=n.data.on||{},r=t.data.on||{};or=n.elm,function(t){if(i(t[ar])){var n=N?"change":"input";t[n]=[].concat(t[ar],t[n]||[]),delete t[ar]}i(t[sr])&&(t.change=[].concat(t[sr],t.change||[]),delete t[sr])}(e),rn(e,r,cr,fr,ur,n.context),or=void 0}}var lr={create:pr,update:pr};function dr(t,n){if(!o(t.data.domProps)||!o(n.data.domProps)){var e,r,a=n.elm,s=t.data.domProps||{},u=n.data.domProps||{};for(e in i(u.__ob__)&&(u=n.data.domProps=S({},u)),s)o(u[e])&&(a[e]="");for(e in u){if(r=u[e],"textContent"===e||"innerHTML"===e){if(n.children&&(n.children.length=0),r===s[e])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===e){a._value=r;var c=o(r)?"":String(r);hr(a,c)&&(a.value=c)}else a[e]=r}}}function hr(t,n){return!t.composing&&("OPTION"===t.tagName||function(t,n){var e=!0;try{e=document.activeElement!==t}catch(t){}return e&&t.value!==n}(t,n)||function(t,n){var e=t.value,r=t._vModifiers;if(i(r)){if(r.lazy)return!1;if(r.number)return h(e)!==h(n);if(r.trim)return e.trim()!==n.trim()}return e!==n}(t,n))}var vr={create:dr,update:dr},mr=b(function(t){var n={},e=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(e);r.length>1&&(n[r[0].trim()]=r[1].trim())}}),n});function yr(t){var n=gr(t.style);return t.staticStyle?S(t.staticStyle,n):n}function gr(t){return Array.isArray(t)?I(t):"string"==typeof t?mr(t):t}var _r,br=/^--/,wr=/\s*!important$/,Ar=function(t,n,e){if(br.test(n))t.style.setProperty(n,e);else if(wr.test(e))t.style.setProperty(n,e.replace(wr,""),"important");else{var r=Or(n);if(Array.isArray(e))for(var o=0,i=e.length;o-1?n.split(Tr).forEach(function(n){return t.classList.add(n)}):t.classList.add(n);else{var e=" "+(t.getAttribute("class")||"")+" ";e.indexOf(" "+n+" ")<0&&t.setAttribute("class",(e+n).trim())}}function Ir(t,n){if(n&&(n=n.trim()))if(t.classList)n.indexOf(" ")>-1?n.split(Tr).forEach(function(n){return t.classList.remove(n)}):t.classList.remove(n),t.classList.length||t.removeAttribute("class");else{for(var e=" "+(t.getAttribute("class")||"")+" ",r=" "+n+" ";e.indexOf(r)>=0;)e=e.replace(r," ");(e=e.trim())?t.setAttribute("class",e):t.removeAttribute("class")}}function Lr(t){if(t){if("object"==typeof t){var n={};return!1!==t.css&&S(n,$r(t.name||"v")),S(n,t),n}return"string"==typeof t?$r(t):void 0}}var $r=b(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"}}),Ur=X&&!K,Pr="transition",jr="animation",Mr="transition",qr="transitionend",Fr="animation",Rr="animationend";Ur&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Mr="WebkitTransition",qr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Fr="WebkitAnimation",Rr="webkitAnimationEnd"));var kr=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Br(t){kr(function(){kr(t)})}function Dr(t,n){var e=t._transitionClasses||(t._transitionClasses=[]);e.indexOf(n)<0&&(e.push(n),Sr(t,n))}function Hr(t,n){t._transitionClasses&&y(t._transitionClasses,n),Ir(t,n)}function Gr(t,n,e){var r=Wr(t,n),o=r.type,i=r.timeout,a=r.propCount;if(!o)return e();var s=o===Pr?qr:Rr,u=0,c=function(){t.removeEventListener(s,f),e()},f=function(n){n.target===t&&++u>=a&&c()};setTimeout(function(){u0&&(e=Pr,f=a,p=i.length):n===jr?c>0&&(e=jr,f=c,p=u.length):p=(e=(f=Math.max(a,c))>0?a>c?Pr:jr:null)?e===Pr?i.length:u.length:0,{type:e,timeout:f,propCount:p,hasTransform:e===Pr&&Xr.test(r[Mr+"Property"])}}function zr(t,n){for(;t.length1}function Vr(t,n){!0!==n.data.show&&Nr(n)}var Qr=function(t){var n,e,r={},u=t.modules,c=t.nodeOps;for(n=0;nh?_(t,o(e[y+1])?null:e[y+1].elm,e,d,y,r):d>y&&w(0,n,l,h)}(l,v,y,e,f):i(y)?(i(t.text)&&c.setTextContent(l,""),_(l,null,y,0,y.length-1,e)):i(v)?w(0,v,0,v.length-1):i(t.text)&&c.setTextContent(l,""):t.text!==n.text&&c.setTextContent(l,n.text),i(h)&&i(d=h.hook)&&i(d=d.postpatch)&&d(t,n)}}}function x(t,n,e){if(a(e)&&i(t.parent))t.parent.data.pendingInsert=n;else for(var r=0;r-1,a.selected!==i&&(a.selected=i);else if(P(oo(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function ro(t,n){return n.every(function(n){return!P(n,t)})}function oo(t){return"_value"in t?t._value:t.value}function io(t){t.target.composing=!0}function ao(t){t.target.composing&&(t.target.composing=!1,so(t.target,"input"))}function so(t,n){var e=document.createEvent("HTMLEvents");e.initEvent(n,!0,!0),t.dispatchEvent(e)}function uo(t){return!t.componentInstance||t.data&&t.data.transition?t:uo(t.componentInstance._vnode)}var co={model:to,show:{bind:function(t,n,e){var r=n.value,o=(e=uo(e)).data&&e.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(e.data.show=!0,Nr(e,function(){t.style.display=i})):t.style.display=r?i:"none"},update:function(t,n,e){var r=n.value;!r!=!n.oldValue&&((e=uo(e)).data&&e.data.transition?(e.data.show=!0,r?Nr(e,function(){t.style.display=t.__vOriginalDisplay}):Kr(e,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,n,e,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},fo={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 po(t){var n=t&&t.componentOptions;return n&&n.Ctor.options.abstract?po(pn(n.children)):t}function lo(t){var n={},e=t.$options;for(var r in e.propsData)n[r]=t[r];var o=e._parentListeners;for(var i in o)n[A(i)]=o[i];return n}function ho(t,n){if(/\d-keep-alive$/.test(n.tag))return t("keep-alive",{props:n.componentOptions.propsData})}var vo=function(t){return t.tag||fn(t)},mo=function(t){return"show"===t.name},yo={name:"transition",props:fo,abstract:!0,render:function(t){var n=this,e=this.$slots.default;if(e&&(e=e.filter(vo)).length){0;var r=this.mode;0;var o=e[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=po(o);if(!i)return o;if(this._leaving)return ho(t,o);var a="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?a+"comment":a+i.tag:s(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var u=(i.data||(i.data={})).transition=lo(this),c=this._vnode,f=po(c);if(i.data.directives&&i.data.directives.some(mo)&&(i.data.show=!0),f&&f.data&&!function(t,n){return n.key===t.key&&n.tag===t.tag}(i,f)&&!fn(f)&&(!f.componentInstance||!f.componentInstance._vnode.isComment)){var p=f.data.transition=S({},u);if("out-in"===r)return this._leaving=!0,on(p,"afterLeave",function(){n._leaving=!1,n.$forceUpdate()}),ho(t,o);if("in-out"===r){if(fn(i))return c;var l,d=function(){l()};on(u,"afterEnter",d),on(u,"enterCancelled",d),on(p,"delayLeave",function(t){l=t})}}return o}}},go=S({tag:String,moveClass:String},fo);function _o(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function bo(t){t.data.newPos=t.elm.getBoundingClientRect()}function wo(t){var n=t.data.pos,e=t.data.newPos,r=n.left-e.left,o=n.top-e.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}delete go.mode;var Ao={Transition:yo,TransitionGroup:{props:go,beforeMount:function(){var t=this,n=this._update;this._update=function(e,r){var o=bn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),n.call(t,e,r)}},render:function(t){for(var n=this.tag||this.$vnode.data.tag||"span",e=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=lo(this),s=0;s-1?Fe[t]=n.constructor===window.HTMLUnknownElement||n.constructor===window.HTMLElement:Fe[t]=/HTMLUnknownElement/.test(n.toString())},S(de.options.directives,co),S(de.options.components,Ao),de.prototype.__patch__=X?Qr:L,de.prototype.$mount=function(t,n){return function(t,n,e){var r;return t.$el=n,t.$options.render||(t.$options.render=ht),Cn(t,"beforeMount"),r=function(){t._update(t._render(),e)},new Un(t,r,L,{before:function(){t._isMounted&&!t._isDestroyed&&Cn(t,"beforeUpdate")}},!0),e=!1,null==t.$vnode&&(t._isMounted=!0,Cn(t,"mounted")),t}(this,t=t&&X?function(t){if("string"==typeof t){var n=document.querySelector(t);return n||document.createElement("div")}return t}(t):void 0,n)},X&&setTimeout(function(){k.devtools&&et&&et.emit("init",de)},0),n.a=de}).call(this,e(4),e(15).setImmediate)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(17).default.create({headers:{requesttoken:OC.requestToken}});n.default=r},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";(function(n){var r=e(1),o=e(21),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,n){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=n)}var s,u={adapter:("undefined"!=typeof XMLHttpRequest?s=e(9):void 0!==n&&(s=e(9)),s),transformRequest:[function(t,n){return o(n,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(n,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){u.headers[t]={}}),r.forEach(["post","put","patch"],function(t){u.headers[t]=r.merge(i)}),t.exports=u}).call(this,e(7))},function(t,n,e){"use strict";function r(t,n,e,r,o,i,a,s){var u,c="function"==typeof t?t.options:t;if(n&&(c.render=n,c.staticRenderFns=e,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(u=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(a)},c._ssrRegister=u):o&&(u=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var f=c.render;c.render=function(t,n){return u.call(n),f(t,n)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,u):[u]}return{exports:t,options:c}}e.d(n,"a",function(){return r})},function(t,n){var e,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],f=!1,p=-1;function l(){f&&u&&(f=!1,u.length?c=u.concat(c):p=-1,c.length&&d())}function d(){if(!f){var t=s(l);f=!0;for(var n=c.length;n;){for(u=c,c=[];++p1)for(var e=1;e=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},n))},e(16),n.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,n.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,e(4))},function(t,n,e){(function(t,n){!function(t,e){"use strict";if(!t.setImmediate){var r,o,i,a,s,u=1,c={},f=!1,p=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?r=function(t){n.nextTick(function(){h(t)})}:!function(){if(t.postMessage&&!t.importScripts){var n=!0,e=t.onmessage;return t.onmessage=function(){n=!1},t.postMessage("","*"),t.onmessage=e,n}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){i.port2.postMessage(t)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,r=function(t){var n=p.createElement("script");n.onreadystatechange=function(){h(t),n.onreadystatechange=null,o.removeChild(n),n=null},o.appendChild(n)}):r=function(t){setTimeout(h,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(a)&&h(+n.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(n){t.postMessage(a+n,"*")}),l.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),e=0;e * @license MIT */ t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,n,e){"use strict";var r=e(5),o=e(1),i=e(29),a=e(30);function s(t){this.defaults=t,this.interceptors={request:new i,response:new i}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var n=[a,void 0],e=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){n.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){n.push(t.fulfilled,t.rejected)});n.length;)e=e.then(n.shift(),n.shift());return e},o.forEach(["delete","get","head","options"],function(t){s.prototype[t]=function(n,e){return this.request(o.merge(e||{},{method:t,url:n}))}}),o.forEach(["post","put","patch"],function(t){s.prototype[t]=function(n,e,r){return this.request(o.merge(r||{},{method:t,url:n,data:e}))}}),t.exports=s},function(t,n,e){"use strict";var r=e(1);t.exports=function(t,n){r.forEach(t,function(e,r){r!==n&&r.toUpperCase()===n.toUpperCase()&&(t[n]=e,delete t[r])})}},function(t,n,e){"use strict";var r=e(10);t.exports=function(t,n,e){var o=e.config.validateStatus;e.status&&o&&!o(e.status)?n(r("Request failed with status code "+e.status,e.config,null,e.request,e)):t(e)}},function(t,n,e){"use strict";t.exports=function(t,n,e,r,o){return t.config=n,e&&(t.code=e),t.request=r,t.response=o,t}},function(t,n,e){"use strict";var r=e(1);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,n,e){if(!n)return t;var i;if(e)i=e(n);else if(r.isURLSearchParams(n))i=n.toString();else{var a=[];r.forEach(n,function(t,n){null!=t&&(r.isArray(t)?n+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(n)+"="+o(t))}))}),i=a.join("&")}return i&&(t+=(-1===t.indexOf("?")?"?":"&")+i),t}},function(t,n,e){"use strict";var r=e(1),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var n,e,i,a={};return t?(r.forEach(t.split("\n"),function(t){if(i=t.indexOf(":"),n=r.trim(t.substr(0,i)).toLowerCase(),e=r.trim(t.substr(i+1)),n){if(a[n]&&o.indexOf(n)>=0)return;a[n]="set-cookie"===n?(a[n]?a[n]:[]).concat([e]):a[n]?a[n]+", "+e:e}}),a):a}},function(t,n,e){"use strict";var r=e(1);t.exports=r.isStandardBrowserEnv()?function(){var t,n=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");function o(t){var r=t;return n&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return t=o(window.location.href),function(n){var e=r.isString(n)?o(n):n;return e.protocol===t.protocol&&e.host===t.host}}():function(){return!0}},function(t,n,e){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function o(){this.message="String contains an invalid character"}o.prototype=new Error,o.prototype.code=5,o.prototype.name="InvalidCharacterError",t.exports=function(t){for(var n,e,i=String(t),a="",s=0,u=r;i.charAt(0|s)||(u="=",s%1);a+=u.charAt(63&n>>8-s%1*8)){if((e=i.charCodeAt(s+=.75))>255)throw new o;n=n<<8|e}return a}},function(t,n,e){"use strict";var r=e(1);t.exports=r.isStandardBrowserEnv()?{write:function(t,n,e,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(n)),r.isNumber(e)&&s.push("expires="+new Date(e).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,n,e){"use strict";var r=e(1);function o(){this.handlers=[]}o.prototype.use=function(t,n){return this.handlers.push({fulfilled:t,rejected:n}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,function(n){null!==n&&t(n)})},t.exports=o},function(t,n,e){"use strict";var r=e(1),o=e(31),i=e(11),a=e(5),s=e(32),u=e(33);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!s(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(n){delete t.headers[n]}),(t.adapter||a.adapter)(t).then(function(n){return c(t),n.data=o(n.data,n.headers,t.transformResponse),n},function(n){return i(n)||(c(t),n&&n.response&&(n.response.data=o(n.response.data,n.response.headers,t.transformResponse))),Promise.reject(n)})}},function(t,n,e){"use strict";var r=e(1);t.exports=function(t,n,e){return r.forEach(e,function(e){t=e(t,n)}),t}},function(t,n,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,n,e){"use strict";t.exports=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}},function(t,n,e){"use strict";var r=e(12);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(t){n=t});var e=this;t(function(t){e.reason||(e.reason=new r(t),n(e.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o(function(n){t=n}),cancel:t}},t.exports=o},function(t,n,e){"use strict";t.exports=function(t){return function(n){return t.apply(null,n)}}},,function(t,n){function e(t,n){var r={name:t.name,path:t.path,hash:t.hash,query:t.query,params:t.params,fullPath:t.fullPath,meta:t.meta};return n&&(r.from=e(n)),Object.freeze(r)}n.sync=function(t,n,r){var o=(r||{}).moduleName||"route";t.registerModule(o,{namespaced:!0,state:e(n.currentRoute),mutations:{ROUTE_CHANGED:function(n,r){t.state[o]=e(r.to,r.from)}}});var i,a=!1,s=t.watch(function(t){return t[o]},function(t){var e=t.fullPath;e!==i&&(null!=i&&(a=!0,n.push(t)),i=e)},{sync:!0}),u=n.afterEach(function(n,e){a?a=!1:(i=n.fullPath,t.commit(o+"/ROUTE_CHANGED",{to:n,from:e}))});return function(){null!=u&&u(),null!=s&&s(),t.unregisterModule(o)}}},function(t,n,e){window,t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=0)}([function(t,n,e){"use strict";function r(){return"undefined"==typeof OC?Promise.reject(new Error("OC not defined")):void 0===OC.PasswordConfirmation?Promise.reject(new Error("OC.PasswordConfirmation not defined")):OC.PasswordConfirmation.requiresPasswordConfirmation()?new Promise(function(t,n){OC.PasswordConfirmation.requirePasswordConfirmation(t,{},n)}):Promise.resolve()}e.r(n),e.d(n,"default",function(){return r})}])},,,,,function(n,e,r){"use strict";r.r(e);var o=r(2),i=r(37),a=function(){var t=this.$createElement;return(this._self._c||t)("router-view")};a._withStripped=!0;var s={name:"App",beforeMount:function(){null!==document.getElementById("serverData")&&this.$store.commit("setServerData",JSON.parse(document.getElementById("serverData").dataset.server))}},u=r(6),c=Object(u.a)(s,a,[],!1,null,null,null);c.options.__file="src/App.vue";var f=c.exports; /*! * vue-router v3.0.2 * (c) 2018 Evan You * @license MIT */function p(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function l(t,n){for(var e in n)t[e]=n[e];return t}var d={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,n){var e=n.props,r=n.children,o=n.parent,i=n.data;i.routerView=!0;for(var a=o.$createElement,s=e.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),f=0,p=!1;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&f++,o._inactive&&(p=!0),o=o.$parent;if(i.routerViewDepth=f,p)return a(c[s],i,r);var d=u.matched[f];if(!d)return c[s]=null,a();var h=c[s]=d.components[s];i.registerRouteInstance=function(t,n){var e=d.instances[s];(n&&e!==t||!n&&e===t)&&(d.instances[s]=n)},(i.hook||(i.hook={})).prepatch=function(t,n){d.instances[s]=n.componentInstance};var v=i.props=function(t,n){switch(typeof n){case"undefined":return;case"object":return n;case"function":return n(t);case"boolean":return n?t.params:void 0;default:0}}(u,d.props&&d.props[s]);if(v){v=i.props=l({},v);var m=i.attrs=i.attrs||{};for(var y in v)h.props&&y in h.props||(m[y]=v[y],delete v[y])}return a(h,i,r)}};var h=/[!'()*]/g,v=function(t){return"%"+t.charCodeAt(0).toString(16)},m=/%2C/g,y=function(t){return encodeURIComponent(t).replace(h,v).replace(m,",")},g=decodeURIComponent;function _(t){var n={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),r=g(e.shift()),o=e.length>0?g(e.join("=")):null;void 0===n[r]?n[r]=o:Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]}),n):n}function b(t){var n=t?Object.keys(t).map(function(n){var e=t[n];if(void 0===e)return"";if(null===e)return y(n);if(Array.isArray(e)){var r=[];return e.forEach(function(t){void 0!==t&&(null===t?r.push(y(n)):r.push(y(n)+"="+y(t)))}),r.join("&")}return y(n)+"="+y(e)}).filter(function(t){return t.length>0}).join("&"):null;return n?"?"+n:""}var w=/\/?$/;function A(t,n,e,r){var o=r&&r.options.stringifyQuery,i=n.query||{};try{i=C(i)}catch(t){}var a={name:n.name||t&&t.name,meta:t&&t.meta||{},path:n.path||"/",hash:n.hash||"",query:i,params:n.params||{},fullPath:E(n,o),matched:t?x(t):[]};return e&&(a.redirectedFrom=E(e,o)),Object.freeze(a)}function C(t){if(Array.isArray(t))return t.map(C);if(t&&"object"==typeof t){var n={};for(var e in t)n[e]=C(t[e]);return n}return t}var O=A(null,{path:"/"});function x(t){for(var n=[];t;)n.unshift(t),t=t.parent;return n}function E(t,n){var e=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;return void 0===o&&(o=""),(e||"/")+(n||b)(r)+o}function T(t,n){return n===O?t===n:!!n&&(t.path&&n.path?t.path.replace(w,"")===n.path.replace(w,"")&&t.hash===n.hash&&S(t.query,n.query):!(!t.name||!n.name)&&(t.name===n.name&&t.hash===n.hash&&S(t.query,n.query)&&S(t.params,n.params)))}function S(t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),!t||!n)return t===n;var e=Object.keys(t),r=Object.keys(n);return e.length===r.length&&e.every(function(e){var r=t[e],o=n[e];return"object"==typeof r&&"object"==typeof o?S(r,o):String(r)===String(o)})}var I,L=[String,Object],$=[String,Array],U={name:"RouterLink",props:{to:{type:L,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:$,default:"click"}},render:function(t){var n=this,e=this.$router,r=this.$route,o=e.resolve(this.to,r,this.append),i=o.location,a=o.route,s=o.href,u={},c=e.options.linkActiveClass,f=e.options.linkExactActiveClass,p=null==c?"router-link-active":c,d=null==f?"router-link-exact-active":f,h=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,m=i.path?A(null,i,null,e):a;u[v]=T(r,m),u[h]=this.exact?u[v]:function(t,n){return 0===t.path.replace(w,"/").indexOf(n.path.replace(w,"/"))&&(!n.hash||t.hash===n.hash)&&function(t,n){for(var e in n)if(!(e in t))return!1;return!0}(t.query,n.query)}(r,m);var y=function(t){P(t)&&(n.replace?e.replace(i):e.push(i))},g={click:P};Array.isArray(this.event)?this.event.forEach(function(t){g[t]=y}):g[this.event]=y;var _={class:u};if("a"===this.tag)_.on=g,_.attrs={href:s};else{var b=function t(n){if(n)for(var e,r=0;r=0&&(n=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(e=t.slice(o+1),t=t.slice(0,o)),{path:t,query:e,hash:n}}(o.path||""),u=n&&n.path||"/",c=s.path?M(s.path,u,e||o.append):u,f=function(t,n,e){void 0===n&&(n={});var r,o=e||_;try{r=o(t||"")}catch(t){r={}}for(var i in n)r[i]=n[i];return r}(s.query,o.query,r&&r.options.parseQuery),p=o.hash||s.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:c,query:f,hash:p}}function ot(t,n){var e=nt(t),r=e.pathList,o=e.pathMap,i=e.nameMap;function a(t,e,a){var s=rt(t,e,!1,n),c=s.name;if(c){var f=i[c];if(!f)return u(null,s);var p=f.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof s.params&&(s.params={}),e&&"object"==typeof e.params)for(var l in e.params)!(l in s.params)&&p.indexOf(l)>-1&&(s.params[l]=e.params[l]);if(f)return s.path=tt(f.path,s.params),u(f,s,a)}else if(s.path){s.params={};for(var d=0;d=t.length?e():t[o]?n(t[o],function(){r(o+1)}):r(o+1)};r(0)}function Ct(t){return function(n,e,r){var o=!1,i=0,a=null;Ot(t,function(t,n,e,s){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var u,c=Tt(function(n){var o;((o=n).__esModule||Et&&"Module"===o[Symbol.toStringTag])&&(n=n.default),t.resolved="function"==typeof n?n:I.extend(n),e.components[s]=n,--i<=0&&r()}),f=Tt(function(t){var n="Failed to resolve async component "+s+": "+t;a||(a=p(t)?t:new Error(n),r(a))});try{u=t(c,f)}catch(t){f(t)}if(u)if("function"==typeof u.then)u.then(c,f);else{var l=u.component;l&&"function"==typeof l.then&&l.then(c,f)}}}),o||r()}}function Ot(t,n){return xt(t.map(function(t){return Object.keys(t.components).map(function(e){return n(t.components[e],t.instances[e],t,e)})}))}function xt(t){return Array.prototype.concat.apply([],t)}var Et="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Tt(t){var n=!1;return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(!n)return n=!0,t.apply(this,e)}}var St=function(t,n){this.router=t,this.base=function(t){if(!t)if(j){var n=document.querySelector("base");t=(t=n&&n.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(n),this.current=O,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function It(t,n,e,r){var o=Ot(t,function(t,r,o,i){var a=function(t,n){"function"!=typeof t&&(t=I.extend(t));return t.options[n]}(t,n);if(a)return Array.isArray(a)?a.map(function(t){return e(t,r,o,i)}):e(a,r,o,i)});return xt(r?o.reverse():o)}function Lt(t,n){if(n)return function(){return t.apply(n,arguments)}}St.prototype.listen=function(t){this.cb=t},St.prototype.onReady=function(t,n){this.ready?t():(this.readyCbs.push(t),n&&this.readyErrorCbs.push(n))},St.prototype.onError=function(t){this.errorCbs.push(t)},St.prototype.transitionTo=function(t,n,e){var r=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){r.updateRoute(o),n&&n(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(o)}))},function(t){e&&e(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(n){n(t)}))})},St.prototype.confirmTransition=function(t,n,e){var r=this,o=this.current,i=function(t){p(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(n){n(t)}):console.error(t)),e&&e(t)};if(T(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),i();var a=function(t,n){var e,r=Math.max(t.length,n.length);for(e=0;e=0?n.slice(0,e):n)+"#"+t}function Ft(t){vt?bt(qt(t)):window.location.hash=t}function Rt(t){vt?wt(qt(t)):window.location.replace(qt(t))}var kt=function(t){function n(n,e){t.call(this,n,e),this.stack=[],this.index=-1}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.push=function(t,n,e){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,n&&n(t)},e)},n.prototype.replace=function(t,n,e){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),n&&n(t)},e)},n.prototype.go=function(t){var n=this,e=this.index+t;if(!(e<0||e>=this.stack.length)){var r=this.stack[e];this.confirmTransition(r,function(){n.index=e,n.updateRoute(r)})}},n.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},n.prototype.ensureURL=function(){},n}(St),Bt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ot(t.routes||[],this);var n=t.mode||"hash";switch(this.fallback="history"===n&&!vt&&!1!==t.fallback,this.fallback&&(n="hash"),j||(n="abstract"),this.mode=n,n){case"history":this.history=new $t(this,t.base);break;case"hash":this.history=new Pt(this,t.base,this.fallback);break;case"abstract":this.history=new kt(this,t.base);break;default:0}},Dt={currentRoute:{configurable:!0}};function Ht(t,n){return t.push(n),function(){var e=t.indexOf(n);e>-1&&t.splice(e,1)}}Bt.prototype.match=function(t,n,e){return this.matcher.match(t,n,e)},Dt.currentRoute.get=function(){return this.history&&this.history.current},Bt.prototype.init=function(t){var n=this;if(this.apps.push(t),!this.app){this.app=t;var e=this.history;if(e instanceof $t)e.transitionTo(e.getCurrentLocation());else if(e instanceof Pt){var r=function(){e.setupListeners()};e.transitionTo(e.getCurrentLocation(),r,r)}e.listen(function(t){n.apps.forEach(function(n){n._route=t})})}},Bt.prototype.beforeEach=function(t){return Ht(this.beforeHooks,t)},Bt.prototype.beforeResolve=function(t){return Ht(this.resolveHooks,t)},Bt.prototype.afterEach=function(t){return Ht(this.afterHooks,t)},Bt.prototype.onReady=function(t,n){this.history.onReady(t,n)},Bt.prototype.onError=function(t){this.history.onError(t)},Bt.prototype.push=function(t,n,e){this.history.push(t,n,e)},Bt.prototype.replace=function(t,n,e){this.history.replace(t,n,e)},Bt.prototype.go=function(t){this.history.go(t)},Bt.prototype.back=function(){this.go(-1)},Bt.prototype.forward=function(){this.go(1)},Bt.prototype.getMatchedComponents=function(t){var n=t?t.matched?t:this.resolve(t).route:this.currentRoute;return n?[].concat.apply([],n.matched.map(function(t){return Object.keys(t.components).map(function(n){return t.components[n]})})):[]},Bt.prototype.resolve=function(t,n,e){var r=rt(t,n||this.history.current,e,this),o=this.match(r,n),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,n,e){var r="hash"===e?"#"+n:n;return t?q(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},Bt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==O&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Bt.prototype,Dt),Bt.install=function t(n){if(!t.installed||I!==n){t.installed=!0,I=n;var e=function(t){return void 0!==t},r=function(t,n){var r=t.$options._parentVnode;e(r)&&e(r=r.data)&&e(r=r.registerRouteInstance)&&r(t,n)};n.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),n.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(n.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(n.prototype,"$route",{get:function(){return this._routerRoot._route}}),n.component("RouterView",d),n.component("RouterLink",U);var o=n.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Bt.version="3.0.2",j&&window.Vue&&window.Vue.use(Bt);var Gt=Bt,Xt=function(){return Promise.all([r.e(0),r.e(3),r.e(5)]).then(r.bind(null,52))},Wt=function(){return Promise.all([r.e(0),r.e(4)]).then(r.bind(null,51))}; /* * @copyright Copyright (c) 2018 John Molakvoæ * * @author John Molakvoæ * @author Julius Härtl * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * */o.a.use(Gt);var zt=new Gt({mode:"history",base:OC.generateUrl(""),linkActiveClass:"active",routes:[{path:"/:index(index.php/)?settings/users",component:Xt,props:!0,name:"users",children:[{path:":selectedGroup(.*)",name:"group",component:Xt}]},{path:"/:index(index.php/)?settings/apps",component:Wt,props:!0,name:"apps",children:[{path:":category",name:"apps-category",component:Wt,children:[{path:":id",name:"apps-details",component:Wt}]}]}]}),Jt=function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}function e(){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)}},Nt="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__; /** * vuex v3.0.1 * (c) 2017 Evan You * @license MIT */function Kt(t,n){Object.keys(t).forEach(function(e){return n(t[e],e)})}var Yt=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var e=t.state;this.state=("function"==typeof e?e():e)||{}},Zt={namespaced:{configurable:!0}};Zt.namespaced.get=function(){return!!this._rawModule.namespaced},Yt.prototype.addChild=function(t,n){this._children[t]=n},Yt.prototype.removeChild=function(t){delete this._children[t]},Yt.prototype.getChild=function(t){return this._children[t]},Yt.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Yt.prototype.forEachChild=function(t){Kt(this._children,t)},Yt.prototype.forEachGetter=function(t){this._rawModule.getters&&Kt(this._rawModule.getters,t)},Yt.prototype.forEachAction=function(t){this._rawModule.actions&&Kt(this._rawModule.actions,t)},Yt.prototype.forEachMutation=function(t){this._rawModule.mutations&&Kt(this._rawModule.mutations,t)},Object.defineProperties(Yt.prototype,Zt);var Vt=function(t){this.register([],t,!1)};Vt.prototype.get=function(t){return t.reduce(function(t,n){return t.getChild(n)},this.root)},Vt.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(t,e){return t+((n=n.getChild(e)).namespaced?e+"/":"")},"")},Vt.prototype.update=function(t){!function t(n,e,r){0;e.update(r);if(r.modules)for(var o in r.modules){if(!e.getChild(o))return void 0;t(n.concat(o),e.getChild(o),r.modules[o])}}([],this.root,t)},Vt.prototype.register=function(t,n,e){var r=this;void 0===e&&(e=!0);var o=new Yt(n,e);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);n.modules&&Kt(n.modules,function(n,o){r.register(t.concat(o),n,e)})},Vt.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),e=t[t.length-1];n.getChild(e).runtime&&n.removeChild(e)};var Qt;var tn=function(t){var n=this;void 0===t&&(t={}),!Qt&&"undefined"!=typeof window&&window.Vue&&cn(window.Vue);var e=t.plugins;void 0===e&&(e=[]);var r=t.strict;void 0===r&&(r=!1);var o=t.state;void 0===o&&(o={}),"function"==typeof o&&(o=o()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Vt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Qt;var i=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,n){return a.call(i,t,n)},this.commit=function(t,n,e){return s.call(i,t,n,e)},this.strict=r,an(this,o,[],this._modules.root),on(this,o),e.forEach(function(t){return t(n)}),Qt.config.devtools&&function(t){Nt&&(t._devtoolHook=Nt,Nt.emit("vuex:init",t),Nt.on("vuex:travel-to-state",function(n){t.replaceState(n)}),t.subscribe(function(t,n){Nt.emit("vuex:mutation",t,n)}))}(this)},nn={state:{configurable:!0}};function en(t,n){return n.indexOf(t)<0&&n.push(t),function(){var e=n.indexOf(t);e>-1&&n.splice(e,1)}}function rn(t,n){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var e=t.state;an(t,e,[],t._modules.root,!0),on(t,e,n)}function on(t,n,e){var r=t._vm;t.getters={};var o=t._wrappedGetters,i={};Kt(o,function(n,e){i[e]=function(){return n(t)},Object.defineProperty(t.getters,e,{get:function(){return t._vm[e]},enumerable:!0})});var a=Qt.config.silent;Qt.config.silent=!0,t._vm=new Qt({data:{$$state:n},computed:i}),Qt.config.silent=a,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(t),r&&(e&&t._withCommit(function(){r._data.$$state=null}),Qt.nextTick(function(){return r.$destroy()}))}function an(t,n,e,r,o){var i=!e.length,a=t._modules.getNamespace(e);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!i&&!o){var s=sn(n,e.slice(0,-1)),u=e[e.length-1];t._withCommit(function(){Qt.set(s,u,r.state)})}var c=r.context=function(t,n,e){var r=""===n,o={dispatch:r?t.dispatch:function(e,r,o){var i=un(e,r,o),a=i.payload,s=i.options,u=i.type;return s&&s.root||(u=n+u),t.dispatch(u,a)},commit:r?t.commit:function(e,r,o){var i=un(e,r,o),a=i.payload,s=i.options,u=i.type;s&&s.root||(u=n+u),t.commit(u,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return function(t,n){var e={},r=n.length;return Object.keys(t.getters).forEach(function(o){if(o.slice(0,r)===n){var i=o.slice(r);Object.defineProperty(e,i,{get:function(){return t.getters[o]},enumerable:!0})}}),e}(t,n)}},state:{get:function(){return sn(t.state,e)}}}),o}(t,a,e);r.forEachMutation(function(n,e){!function(t,n,e,r){(t._mutations[n]||(t._mutations[n]=[])).push(function(n){e.call(t,r.state,n)})}(t,a+e,n,c)}),r.forEachAction(function(n,e){var r=n.root?e:a+e,o=n.handler||n;!function(t,n,e,r){(t._actions[n]||(t._actions[n]=[])).push(function(n,o){var i,a=e.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},n,o);return(i=a)&&"function"==typeof i.then||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(n){throw t._devtoolHook.emit("vuex:error",n),n}):a})}(t,r,o,c)}),r.forEachGetter(function(n,e){!function(t,n,e,r){if(t._wrappedGetters[n])return void 0;t._wrappedGetters[n]=function(t){return e(r.state,r.getters,t.state,t.getters)}}(t,a+e,n,c)}),r.forEachChild(function(r,i){an(t,n,e.concat(i),r,o)})}function sn(t,n){return n.length?n.reduce(function(t,n){return t[n]},t):t}function un(t,n,e){var r;return null!==(r=t)&&"object"==typeof r&&t.type&&(e=n,n=t,t=t.type),{type:t,payload:n,options:e}}function cn(t){Qt&&t===Qt||Jt(Qt=t)}nn.state.get=function(){return this._vm._data.$$state},nn.state.set=function(t){0},tn.prototype.commit=function(t,n,e){var r=this,o=un(t,n,e),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),u=this._mutations[i];u&&(this._withCommit(function(){u.forEach(function(t){t(a)})}),this._subscribers.forEach(function(t){return t(s,r.state)}))},tn.prototype.dispatch=function(t,n){var e=this,r=un(t,n),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s)return this._actionSubscribers.forEach(function(t){return t(a,e.state)}),s.length>1?Promise.all(s.map(function(t){return t(i)})):s[0](i)},tn.prototype.subscribe=function(t){return en(t,this._subscribers)},tn.prototype.subscribeAction=function(t){return en(t,this._actionSubscribers)},tn.prototype.watch=function(t,n,e){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},n,e)},tn.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._vm._data.$$state=t})},tn.prototype.registerModule=function(t,n,e){void 0===e&&(e={}),"string"==typeof t&&(t=[t]),this._modules.register(t,n),an(this,this.state,t,this._modules.get(t),e.preserveState),on(this,this.state)},tn.prototype.unregisterModule=function(t){var n=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var e=sn(n.state,t.slice(0,-1));Qt.delete(e,t[t.length-1])}),rn(this)},tn.prototype.hotUpdate=function(t){this._modules.update(t),rn(this,!0)},tn.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n},Object.defineProperties(tn.prototype,nn);var fn=vn(function(t,n){var e={};return hn(n).forEach(function(n){var r=n.key,o=n.val;e[r]=function(){var n=this.$store.state,e=this.$store.getters;if(t){var r=mn(this.$store,"mapState",t);if(!r)return;n=r.context.state,e=r.context.getters}return"function"==typeof o?o.call(this,n,e):n[o]},e[r].vuex=!0}),e}),pn=vn(function(t,n){var e={};return hn(n).forEach(function(n){var r=n.key,o=n.val;e[r]=function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];var r=this.$store.commit;if(t){var i=mn(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(n)):r.apply(this.$store,[o].concat(n))}}),e}),ln=vn(function(t,n){var e={};return hn(n).forEach(function(n){var r=n.key,o=n.val;o=t+o,e[r]=function(){if(!t||mn(this.$store,"mapGetters",t))return this.$store.getters[o]},e[r].vuex=!0}),e}),dn=vn(function(t,n){var e={};return hn(n).forEach(function(n){var r=n.key,o=n.val;e[r]=function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];var r=this.$store.dispatch;if(t){var i=mn(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(n)):r.apply(this.$store,[o].concat(n))}}),e});function hn(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(n){return{key:n,val:t[n]}})}function vn(t){return function(n,e){return"string"!=typeof n?(e=n,n=""):"/"!==n.charAt(n.length-1)&&(n+="/"),t(n,e)}}function mn(t,n,e){return t._modulesNamespaceMap[e]}var yn={Store:tn,install:cn,version:"3.0.1",mapState:fn,mapMutations:pn,mapGetters:ln,mapActions:dn,createNamespacedHelpers:function(t){return{mapState:fn.bind(null,t),mapGetters:ln.bind(null,t),mapMutations:pn.bind(null,t),mapActions:dn.bind(null,t)}}},gn=r(0),_n=function(t,n){return 1===n?t.sort(function(t,n){return t.usercount-t.disabled=0&&t.groups.splice(e,1)},addUserGroup:function(t,n){var e=n.userid,r=n.gid,o=t.groups.find(function(t){return t.id==r}),i=t.users.find(function(t){return t.id==e});o&&i.enabled&&o.usercount++,i.groups.push(r),t.groups=_n(t.groups,t.orderBy)},removeUserGroup:function(t,n){var e=n.userid,r=n.gid,o=t.groups.find(function(t){return t.id==r}),i=t.users.find(function(t){return t.id==e});o&&i.enabled&&o.usercount--;var a=i.groups;a.splice(a.indexOf(r),1),t.groups=_n(t.groups,t.orderBy)},addUserSubAdmin:function(t,n){var e=n.userid,r=n.gid;t.users.find(function(t){return t.id==e}).subadmin.push(r)},removeUserSubAdmin:function(t,n){var e=n.userid,r=n.gid,o=t.users.find(function(t){return t.id==e}).subadmin;o.splice(o.indexOf(r),1)},deleteUser:function(t,n){var e=t.users.findIndex(function(t){return t.id==n});t.users.splice(e,1)},addUserData:function(t,n){t.users.push(n.data.ocs.data)},enableDisableUser:function(t,n){var e=n.userid,r=n.enabled,o=t.users.find(function(t){return t.id==e});o.enabled=r,t.groups.find(function(t){return"disabled"==t.id}).usercount+=r?-1:1,t.userCount+=r?1:-1,o.groups.forEach(function(n){t.groups.find(function(t){return t.id==n}).disabled+=r?-1:1})},setUserData:function(t,n){var e=n.userid,r=n.key,o=n.value;if("quota"===r){var i=OC.Util.computerFileSize(o);t.users.find(function(t){return t.id==e})[r][r]=null!==i?i:o}else t.users.find(function(t){return t.id==e})[r]=o},resetUsers:function(t){t.users=[],t.usersOffset=0}},getters:{getUsers:function(t){return t.users},getGroups:function(t){return t.groups},getSubadminGroups:function(t){return t.groups.filter(function(t){return"admin"!==t.id&&"disabled"!==t.id})},getPasswordPolicyMinLength:function(t){return t.minPasswordLength},getUsersOffset:function(t){return t.usersOffset},getUsersLimit:function(t){return t.usersLimit},getUserCount:function(t){return t.userCount}},actions:{getUsers:function(t,n){var e=n.offset,r=n.limit,o=n.search,i=n.group;return o="string"==typeof o?o:"",""!==(i="string"==typeof i?i:"")?gn.a.get(OC.linkToOCS("cloud/groups/".concat(i,"/users/details?offset=").concat(e,"&limit=").concat(r,"&search=").concat(o),2)).then(function(n){return Object.keys(n.data.ocs.data.users).length>0&&(t.commit("appendUsers",n.data.ocs.data.users),!0)}).catch(function(n){return t.commit("API_FAILURE",n)}):gn.a.get(OC.linkToOCS("cloud/users/details?offset=".concat(e,"&limit=").concat(r,"&search=").concat(o),2)).then(function(n){return Object.keys(n.data.ocs.data.users).length>0&&(t.commit("appendUsers",n.data.ocs.data.users),!0)}).catch(function(n){return t.commit("API_FAILURE",n)})},getGroups:function(t,n){var e=n.offset,r=n.limit,o=n.search;o="string"==typeof o?o:"";var i=-1===r?"":"&limit=".concat(r);return gn.a.get(OC.linkToOCS("cloud/groups?offset=".concat(e,"&search=").concat(o).concat(i),2)).then(function(n){return Object.keys(n.data.ocs.data.groups).length>0&&(n.data.ocs.data.groups.forEach(function(n){t.commit("addGroup",{gid:n,displayName:n})}),!0)}).catch(function(n){return t.commit("API_FAILURE",n)})},getUsersFromList:function(t,n){var e=n.offset,r=n.limit,o=n.search;return o="string"==typeof o?o:"",gn.a.get(OC.linkToOCS("cloud/users/details?offset=".concat(e,"&limit=").concat(r,"&search=").concat(o),2)).then(function(n){return Object.keys(n.data.ocs.data.users).length>0&&(t.commit("appendUsers",n.data.ocs.data.users),!0)}).catch(function(n){return t.commit("API_FAILURE",n)})},getUsersFromGroup:function(t,n){var e=n.groupid,r=n.offset,o=n.limit;return gn.a.get(OC.linkToOCS("cloud/users/".concat(e,"/details?offset=").concat(r,"&limit=").concat(o),2)).then(function(n){return t.commit("getUsersFromList",n.data.ocs.data.users)}).catch(function(n){return t.commit("API_FAILURE",n)})},getPasswordPolicyMinLength:function(t){return!(!oc_capabilities.password_policy||!oc_capabilities.password_policy.minLength)&&(t.commit("setPasswordPolicyMinLength",oc_capabilities.password_policy.minLength),oc_capabilities.password_policy.minLength)},addGroup:function(t,n){return gn.a.requireAdmin().then(function(e){return gn.a.post(OC.linkToOCS("cloud/groups",2),{groupid:n}).then(function(e){return t.commit("addGroup",{gid:n,displayName:n}),{gid:n,displayName:n}}).catch(function(t){throw t})}).catch(function(e){throw t.commit("API_FAILURE",{gid:n,error:e}),e})},removeGroup:function(t,n){return gn.a.requireAdmin().then(function(e){return gn.a.delete(OC.linkToOCS("cloud/groups/".concat(n),2)).then(function(e){return t.commit("removeGroup",n)}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{gid:n,error:e})})},addUserGroup:function(t,n){var e=n.userid,r=n.gid;return gn.a.requireAdmin().then(function(n){return gn.a.post(OC.linkToOCS("cloud/users/".concat(e,"/groups"),2),{groupid:r}).then(function(n){return t.commit("addUserGroup",{userid:e,gid:r})}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{userid:e,error:n})})},removeUserGroup:function(t,n){var e=n.userid,r=n.gid;return gn.a.requireAdmin().then(function(n){return gn.a.delete(OC.linkToOCS("cloud/users/".concat(e,"/groups"),2),{groupid:r}).then(function(n){return t.commit("removeUserGroup",{userid:e,gid:r})}).catch(function(t){throw t})}).catch(function(n){throw t.commit("API_FAILURE",{userid:e,error:n}),n})},addUserSubAdmin:function(t,n){var e=n.userid,r=n.gid;return gn.a.requireAdmin().then(function(n){return gn.a.post(OC.linkToOCS("cloud/users/".concat(e,"/subadmins"),2),{groupid:r}).then(function(n){return t.commit("addUserSubAdmin",{userid:e,gid:r})}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{userid:e,error:n})})},removeUserSubAdmin:function(t,n){var e=n.userid,r=n.gid;return gn.a.requireAdmin().then(function(n){return gn.a.delete(OC.linkToOCS("cloud/users/".concat(e,"/subadmins"),2),{groupid:r}).then(function(n){return t.commit("removeUserSubAdmin",{userid:e,gid:r})}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{userid:e,error:n})})},deleteUser:function(t,n){return gn.a.requireAdmin().then(function(e){return gn.a.delete(OC.linkToOCS("cloud/users/".concat(n),2)).then(function(e){return t.commit("deleteUser",n)}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},addUser:function(t,n){var e=t.commit,r=t.dispatch,o=n.userid,i=n.password,a=n.displayName,s=n.email,u=n.groups,c=n.subadmin,f=n.quota,p=n.language;return gn.a.requireAdmin().then(function(t){return gn.a.post(OC.linkToOCS("cloud/users",2),{userid:o,password:i,displayName:a,email:s,groups:u,subadmin:c,quota:f,language:p}).then(function(t){return r("addUserData",o)}).catch(function(t){throw t})}).catch(function(t){throw e("API_FAILURE",{userid:o,error:t}),t})},addUserData:function(t,n){return gn.a.requireAdmin().then(function(e){return gn.a.get(OC.linkToOCS("cloud/users/".concat(n),2)).then(function(n){return t.commit("addUserData",n)}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},enableDisableUser:function(t,n){var e=n.userid,r=n.enabled,o=void 0===r||r,i=o?"enable":"disable";return gn.a.requireAdmin().then(function(n){return gn.a.put(OC.linkToOCS("cloud/users/".concat(e,"/").concat(i),2)).then(function(n){return t.commit("enableDisableUser",{userid:e,enabled:o})}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{userid:e,error:n})})},setUserData:function(t,n){var e=n.userid,r=n.key,o=n.value,i=["email","displayname"];return-1!==["email","language","quota","displayname","password"].indexOf(r)&&"string"==typeof o&&(-1===i.indexOf(r)&&o.length>0||-1!==i.indexOf(r))?gn.a.requireAdmin().then(function(n){return gn.a.put(OC.linkToOCS("cloud/users/".concat(e),2),{key:r,value:o}).then(function(n){return t.commit("setUserData",{userid:e,key:r,value:o})}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{userid:e,error:n})}):Promise.reject(new Error("Invalid request data"))},sendWelcomeMail:function(t,n){return gn.a.requireAdmin().then(function(t){return gn.a.post(OC.linkToOCS("cloud/users/".concat(n,"/welcome"),2)).then(function(t){return!0}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})}}},An={state:{apps:[],categories:[],updateCount:0,loading:{},loadingList:!1},mutations:{APPS_API_FAILURE:function(n,e){OC.Notification.showHtml(t("settings","An error occured during the request. Unable to proceed.")+"
"+e.error.response.data.data.message,{timeout:7}),console.log(n,e)},initCategories:function(t,n){var e=n.categories,r=n.updateCount;t.categories=e,t.updateCount=r},setUpdateCount:function(t,n){t.updateCount=n},addCategory:function(t,n){t.categories.push(n)},appendCategories:function(t,n){t.categories=n},setAllApps:function(t,n){t.apps=n},setError:function(t,n){var e=n.appId,r=n.error;Array.isArray(e)||(e=[e]),e.forEach(function(n){t.apps.find(function(t){return t.id===n}).error=r})},clearError:function(t,n){var e=n.appId;n.error;t.apps.find(function(t){return t.id===e}).error=null},enableApp:function(t,n){var e=n.appId,r=n.groups,o=t.apps.find(function(t){return t.id===e});o.active=!0,o.groups=r},disableApp:function(t,n){var e=t.apps.find(function(t){return t.id===n});e.active=!1,e.groups=[],e.removable&&(e.canUnInstall=!0)},uninstallApp:function(t,n){t.apps.find(function(t){return t.id===n}).active=!1,t.apps.find(function(t){return t.id===n}).groups=[],t.apps.find(function(t){return t.id===n}).needsDownload=!0,t.apps.find(function(t){return t.id===n}).installed=!1,t.apps.find(function(t){return t.id===n}).canUnInstall=!1,t.apps.find(function(t){return t.id===n}).canInstall=!0},updateApp:function(t,n){var e=t.apps.find(function(t){return t.id===n}),r=e.update;e.update=null,e.version=r,t.updateCount--},resetApps:function(t){t.apps=[]},reset:function(t){t.apps=[],t.categories=[],t.updateCount=0},startLoading:function(t,n){Array.isArray(n)?n.forEach(function(n){o.a.set(t.loading,n,!0)}):o.a.set(t.loading,n,!0)},stopLoading:function(t,n){Array.isArray(n)?n.forEach(function(n){o.a.set(t.loading,n,!1)}):o.a.set(t.loading,n,!1)}},getters:{loading:function(t){return function(n){return t.loading[n]}},getCategories:function(t){return t.categories},getAllApps:function(t){return t.apps},getUpdateCount:function(t){return t.updateCount}},actions:{enableApp:function(n,e){var r,o=e.appId,i=e.groups;return r=Array.isArray(o)?o:[o],gn.a.requireAdmin().then(function(e){return n.commit("startLoading",r),n.commit("startLoading","install"),gn.a.post(OC.generateUrl("settings/apps/enable"),{appIds:r,groups:i}).then(function(e){return n.commit("stopLoading",r),n.commit("stopLoading","install"),r.forEach(function(t){n.commit("enableApp",{appId:t,groups:i})}),gn.a.get(OC.generateUrl("apps/files")).then(function(){e.data.update_required&&(OC.dialogs.info(t("settings","The app has been enabled but needs to be updated. You will be redirected to the update page in 5 seconds."),t("settings","App update"),function(){window.location.reload()},!0),setTimeout(function(){location.reload()},5e3))}).catch(function(e){Array.isArray(o)||n.commit("setError",{appId:r,error:t("settings","Error: This app can not be enabled because it makes the server unstable")})})}).catch(function(t){n.commit("stopLoading",r),n.commit("stopLoading","install"),n.commit("setError",{appId:r,error:t.response.data.data.message}),n.commit("APPS_API_FAILURE",{appId:o,error:t})})}).catch(function(t){return n.commit("API_FAILURE",{appId:o,error:t})})},disableApp:function(t,n){var e,r=n.appId;return e=Array.isArray(r)?r:[r],gn.a.requireAdmin().then(function(n){return t.commit("startLoading",e),gn.a.post(OC.generateUrl("settings/apps/disable"),{appIds:e}).then(function(n){return t.commit("stopLoading",e),e.forEach(function(n){t.commit("disableApp",n)}),!0}).catch(function(n){t.commit("stopLoading",e),t.commit("APPS_API_FAILURE",{appId:r,error:n})})}).catch(function(n){return t.commit("API_FAILURE",{appId:r,error:n})})},uninstallApp:function(t,n){var e=n.appId;return gn.a.requireAdmin().then(function(n){return t.commit("startLoading",e),gn.a.get(OC.generateUrl("settings/apps/uninstall/".concat(e))).then(function(n){return t.commit("stopLoading",e),t.commit("uninstallApp",e),!0}).catch(function(n){t.commit("stopLoading",e),t.commit("APPS_API_FAILURE",{appId:e,error:n})})}).catch(function(n){return t.commit("API_FAILURE",{appId:e,error:n})})},updateApp:function(t,n){var e=n.appId;return gn.a.requireAdmin().then(function(n){return t.commit("startLoading",e),t.commit("startLoading","install"),gn.a.get(OC.generateUrl("settings/apps/update/".concat(e))).then(function(n){return t.commit("stopLoading","install"),t.commit("stopLoading",e),t.commit("updateApp",e),!0}).catch(function(n){t.commit("stopLoading",e),t.commit("stopLoading","install"),t.commit("APPS_API_FAILURE",{appId:e,error:n})})}).catch(function(n){return t.commit("API_FAILURE",{appId:e,error:n})})},getAllApps:function(t){return t.commit("startLoading","list"),gn.a.get(OC.generateUrl("settings/apps/list")).then(function(n){return t.commit("setAllApps",n.data.apps),t.commit("stopLoading","list"),!0}).catch(function(n){return t.commit("API_FAILURE",n)})},getCategories:function(t){return t.commit("startLoading","categories"),gn.a.get(OC.generateUrl("settings/apps/categories")).then(function(n){return n.data.length>0&&(t.commit("appendCategories",n.data),t.commit("stopLoading","categories"),!0)}).catch(function(n){return t.commit("API_FAILURE",n)})}}},Cn={state:{serverData:{}},mutations:{setServerData:function(t,n){t.serverData=n}},getters:{getServerData:function(t){return t.serverData}},actions:{}},On={state:{},mutations:{},getters:{},actions:{setAppConfig:function(t,n){var e=n.app,r=n.key,o=n.value;return gn.a.requireAdmin().then(function(t){return gn.a.post(OC.linkToOCS("apps/provisioning_api/api/v1/config/apps/".concat(e,"/").concat(r),2),{value:o}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{app:e,key:r,value:o,error:n})})}}}; /* * @copyright Copyright (c) 2018 John Molakvoæ * * @author John Molakvoæ * @author Julius Härtl * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * */ o.a.use(yn);var xn={API_FAILURE:function(n,e){try{var r=e.error.response.data.ocs.meta.message;OC.Notification.showHtml(t("settings","An error occured during the request. Unable to proceed.")+"
"+r,{timeout:7})}catch(n){OC.Notification.showTemporary(t("settings","An error occured during the request. Unable to proceed."))}console.log(n,e)}},En=new yn.Store({modules:{users:wn,apps:An,settings:Cn,oc:On},strict:!1,mutations:xn});r.d(e,"app",function(){return Tn}),r.d(e,"router",function(){return zt}),r.d(e,"store",function(){return En}), /** * @copyright Copyright (c) 2018 John Molakvoæ * * @author John Molakvoæ * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * */ Object(i.sync)(En,zt),r.nc=btoa(OC.requestToken),r.p=OC.linkTo("settings","js/"),o.a.prototype.t=t,o.a.prototype.OC=OC,o.a.prototype.OCA=OCA,o.a.prototype.oc_userconfig=oc_userconfig,o.a.prototype.oc_current_user=oc_current_user;var Tn=new o.a({router:zt,store:En,render:function(t){return t(f)}}).$mount("#content")}]); //# sourceMappingURL=settings-vue.js.map