From 385ba6c2a1ff46b6ea6a3f9bcdb0f7484e1006e4 Mon Sep 17 00:00:00 2001
From: Zack Spear
Date: Tue, 22 Mar 2022 17:16:32 -0700
Subject: [PATCH 1/2] chore: upc logs
---
plugins/dynamix.my.servers/include/myservers1.php | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/plugins/dynamix.my.servers/include/myservers1.php b/plugins/dynamix.my.servers/include/myservers1.php
index 0f3e37d0e..ba392ca63 100644
--- a/plugins/dynamix.my.servers/include/myservers1.php
+++ b/plugins/dynamix.my.servers/include/myservers1.php
@@ -31,6 +31,7 @@ if (file_exists('/boot/config/plugins/dynamix.my.servers/myservers.cfg')) { // c
$ALLOWED_UPC_ENV_VALS = [
'production',
'staging',
+ 'stagingLogs',
'development',
'local',
];
@@ -51,6 +52,9 @@ switch ($UPC_ENV) {
case 'staging':
$upcSrc = 'https://registration-dev.unraid.net/webComps/unraid.min.js';
break;
+ case 'stagingLogs':
+ $upcSrc = 'https://registration-dev-logs.unraid.net/webComps/unraid.min.js';
+ break;
case 'development':
$upcSrc = 'https://launchpad.unraid.test:6969/webComps/unraid.js';
break;
From 7e83a2208c2a4fabd306def7437cc06ff53ffed1 Mon Sep 17 00:00:00 2001
From: Zack Spear
Date: Tue, 22 Mar 2022 17:26:32 -0700
Subject: [PATCH 2/2] fix(upc): v0.1.35 os gui firefox
---
plugins/dynamix.my.servers/webComps/unraid.min.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/plugins/dynamix.my.servers/webComps/unraid.min.js b/plugins/dynamix.my.servers/webComps/unraid.min.js
index cf0d5ba99..1f81575e1 100644
--- a/plugins/dynamix.my.servers/webComps/unraid.min.js
+++ b/plugins/dynamix.my.servers/webComps/unraid.min.js
@@ -1,5 +1,5 @@
/*! UPC
-* vuejs-regwiz v0.1.24
+* vuejs-regwiz v0.1.35
* Licenses @ licenses.txt
*
* Unraid is a registered trademark of Lime Technology, Inc.
@@ -20,13 +20,13 @@
* (c) 2014-2021 Evan You
* Released under the MIT License.
*/
-var r=Object.freeze({});function n(e){return null==e}function i(e){return null!=e}function o(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(r,1)}}var v=Object.prototype.hasOwnProperty;function b(e,t){return v.call(e,t)}function y(e){var t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}var w=/-(\w)/g,x=y((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),_=y((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),E=/\B([A-Z])/g,S=y((function(e){return e.replace(E,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r};function O(e,t){t=t||0;for(var r=e.length-t,n=new Array(r);r--;)n[r]=e[r+t];return n}function T(e,t){for(var r in t)e[r]=t[r];return e}function I(e){for(var t={},r=0;r0,K=Q&&Q.indexOf("edge/")>0,X=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===q),J=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),Z={}.watch,ee=!1;if(B)try{var te={};Object.defineProperty(te,"passive",{get:function(){ee=!0}}),window.addEventListener("test-passive",null,te)}catch(e){}var re=function(){return void 0===G&&(G=!B&&!W&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),G},ne=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ie(e){return"function"==typeof e&&/native code/.test(e.toString())}var oe,ae="undefined"!=typeof Symbol&&ie(Symbol)&&"undefined"!=typeof Reflect&&ie(Reflect.ownKeys);oe="undefined"!=typeof Set&&ie(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var se=A,ce=0,ue=function(){this.id=ce++,this.subs=[]};ue.prototype.addSub=function(e){this.subs.push(e)},ue.prototype.removeSub=function(e){g(this.subs,e)},ue.prototype.depend=function(){ue.target&&ue.target.addDep(this)},ue.prototype.notify=function(){for(var e=this.subs.slice(),t=0,r=e.length;t-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===S(e)){var c=Ve(String,i.type);(c<0||s0&&(lt((c=e(c,(r||"")+"_"+s))[0])&<(l)&&(p[u]=ge(l.text+c[0].text),c.shift()),p.push.apply(p,c)):a(c)?lt(l)?p[u]=ge(l.text+c):""!==c&&p.push(ge(c)):lt(c)&<(l)?p[u]=ge(l.text+c.text):(o(t._isVList)&&i(c.tag)&&n(c.key)&&i(r)&&(c.key="__vlist"+r+"_"+s+"__"),p.push(c)));return p}(e):void 0}function lt(e){return i(e)&&i(e.text)&&function(e){return!1===e}(e.isComment)}function pt(e,t){if(e){for(var r=Object.create(null),n=ae?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=gt(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=vt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),$(i,"$stable",a),$(i,"$key",s),$(i,"$hasNormal",o),i}function gt(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ut(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!ht(t))?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function vt(e,t){return function(){return e[t]}}function bt(e,t){var r,n,o,a,c;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),n=0,o=e.length;ndocument.createEvent("Event").timeStamp&&(fr=function(){return hr.now()})}function mr(){var e,t;for(dr=fr(),lr=!0,ar.sort((function(e,t){return e.id-t.id})),pr=0;prpr&&ar[r].id>e.id;)r--;ar.splice(r+1,0,e)}else ar.push(e);ur||(ur=!0,tt(mr))}}(this)},vr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user){var r='callback for watcher "'+this.expression+'"';ze(this.cb,this.vm,[e,t],this.vm,r)}else this.cb.call(this.vm,e,t)}}},vr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vr.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},vr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var br={enumerable:!0,configurable:!0,get:A,set:A};function yr(e,t,r){br.get=function(){return this[t][r]},br.set=function(e){this[t][r]=e},Object.defineProperty(e,r,br)}function wr(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[];!e.$parent||_e(!1);var o=function(o){i.push(o);var a=Ue(o,t,r,e);ke(n,o,a),o in e||yr(e,"_props",o)};for(var a in t)o(a);_e(!0)}(e,t.props),t.methods&&function(e,t){for(var r in e.$options.props,t)e[r]="function"!=typeof t[r]?A:k(t[r],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return Ge(e,t,"data()"),{}}finally{de()}}(t,e):t||{})||(t={});var r=Object.keys(t),n=e.$options.props,i=(e.$options.methods,r.length);for(;i--;){var o=r[i];n&&b(n,o)||F(o)||yr(e,"_data",o)}Se(t,!0)}(e):Se(e._data={},!0),t.computed&&function(e,t){var r=e._computedWatchers=Object.create(null),n=re();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;n||(r[i]=new vr(e,a||A,A,xr)),i in e||_r(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===c.call(e)}(e)&&e.test(t)}function Nr(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var o in r){var a=r[o];if(a){var s=a.name;s&&!t(s)&&Dr(r,o,n,i)}}}function Dr(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,g(r,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=Or++,t._isVue=!0,e&&e._isComponent?function(e,t){var r=e.$options=Object.create(e.constructor.options),n=t._parentVnode;r.parent=t.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,t.render&&(r.render=t.render,r.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Me(Tr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,r=t.parent;if(r&&!t.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(e)}e.$parent=r,e.$root=r?r.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Zt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=dt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,r,n,i){return Vt(e,t,r,n,i,!1)},e.$createElement=function(t,r,n,i){return Vt(e,t,r,n,i,!0)};var o=n&&n.data;ke(e,"$attrs",o&&o.attrs||r,null,!0),ke(e,"$listeners",t._parentListeners||r,null,!0)}(t),or(t,"beforeCreate"),function(e){var t=pt(e.$options.inject,e);t&&(_e(!1),Object.keys(t).forEach((function(r){ke(e,r,t[r])})),_e(!0))}(t),wr(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),or(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(Ir),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Oe,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,r){var n=this;if(u(t))return kr(n,e,t,r);(r=r||{}).user=!0;var i=new vr(n,e,t,r);if(r.immediate){var o='callback for immediate watcher "'+i.expression+'"';pe(),ze(t,n,[i.value],n,o),de()}return function(){i.teardown()}}}(Ir),function(e){var t=/^hook:/;e.prototype.$on=function(e,r){var n=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?O(r):r;for(var n=O(arguments,1),i='event handler for "'+e+'"',o=0,a=r.length;oparseInt(this.max)&&Dr(t,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Dr(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Nr(e,(function(e){return Cr(t,e)}))})),this.$watch("exclude",(function(t){Nr(e,(function(e){return!Cr(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Yt(e),r=t&&t.componentOptions;if(r){var n=Rr(r),i=this.include,o=this.exclude;if(i&&(!n||!Cr(i,n))||o&&n&&Cr(o,n))return t;var a=this.cache,s=this.keys,c=null==t.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,g(s,c),s.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}}};(function(e){var t={get:function(){return j}};Object.defineProperty(e,"config",t),e.util={warn:se,extend:T,mergeOptions:Me,defineReactive:ke},e.set=Oe,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Se(e),e},e.options=Object.create(null),L.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Mr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=O(arguments,1);return r.unshift(this),"function"==typeof e.install?e.install.apply(e,r):"function"==typeof e&&e.apply(null,r),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Me(this.options,e),this}}(e),Ar(e),function(e){L.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&u(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"==typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}(e)})(Ir),Object.defineProperty(Ir.prototype,"$isServer",{get:re}),Object.defineProperty(Ir.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ir,"FunctionalRenderContext",{value:Dt}),Ir.version="2.6.14";var Lr=h("style,class"),Ur=h("input,textarea,option,select,progress"),jr=h("contenteditable,draggable,spellcheck"),Fr=h("events,caret,typing,plaintext-only"),$r=h("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,truespeed,typemustmatch,visible"),Vr="http://www.w3.org/1999/xlink",Gr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},zr=function(e){return Gr(e)?e.slice(6,e.length):""},Br=function(e){return null==e||!1===e};function Wr(e){for(var t=e.data,r=e,n=e;i(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(t=qr(n.data,t));for(;i(r=r.parent);)r&&r.data&&(t=qr(t,r.data));return function(e,t){return i(e)||i(t)?Qr(e,Hr(t)):""}(t.staticClass,t.class)}function qr(e,t){return{staticClass:Qr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Qr(e,t){return e?t?e+" "+t:e:t||""}function Hr(e){return Array.isArray(e)?function(e){for(var t,r="",n=0,o=e.length;n-1?bn(e,t,r):$r(t)?Br(r)?e.removeAttribute(t):(r="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,r)):jr(t)?e.setAttribute(t,function(e,t){return Br(t)||"false"===t?"false":"contenteditable"===e&&Fr(t)?t:"true"}(t,r)):Gr(t)?Br(r)?e.removeAttributeNS(Vr,zr(t)):e.setAttributeNS(Vr,t,r):bn(e,t,r)}function bn(e,t,r){if(Br(r))e.removeAttribute(t);else{if(H&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==r&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,r)}}var yn={create:gn,update:gn};function wn(e,t){var r=t.elm,o=t.data,a=e.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=Wr(t),c=r._transitionClasses;i(c)&&(s=Qr(s,Hr(c))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var xn,_n={create:wn,update:wn};function En(e){if(i(e.__r)){var t=H?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}i(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}function Sn(e,t,r){var n=xn;return function i(){var o=t.apply(null,arguments);null!==o&&Tn(e,i,r,n)}}var kn=Qe&&!(J&&Number(J[1])<=53);function On(e,t,r,n){if(kn){var i=dr,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}xn.addEventListener(e,t,ee?{capture:r,passive:n}:r)}function Tn(e,t,r,n){(n||xn).removeEventListener(e,t._wrapper||t,r)}function In(e,t){if(!n(e.data.on)||!n(t.data.on)){var r=t.data.on||{},i=e.data.on||{};xn=t.elm,En(r),at(r,i,On,Tn,Sn,t.context),xn=void 0}}var An,Rn={create:In,update:In};function Cn(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var r,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(r in i(c.__ob__)&&(c=t.data.domProps=T({},c)),s)r in c||(a[r]="");for(r in c){if(o=c[r],"textContent"===r||"innerHTML"===r){if(t.children&&(t.children.length=0),o===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=o;var u=n(o)?"":String(o);Nn(a,u)&&(a.value=u)}else if("innerHTML"===r&&Xr(a.tagName)&&n(a.innerHTML)){(An=An||document.createElement("div")).innerHTML="";for(var l=An.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[r])try{a[r]=o}catch(e){}}}}function Nn(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var r=!0;try{r=document.activeElement!==e}catch(e){}return r&&e.value!==t}(e,t)||function(e,t){var r=e.value,n=e._vModifiers;if(i(n)){if(n.number)return f(r)!==f(t);if(n.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var Dn={create:Cn,update:Cn},Pn=y((function(e){var t={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Mn(e){var t=Ln(e.style);return e.staticStyle?T(e.staticStyle,t):t}function Ln(e){return Array.isArray(e)?I(e):"string"==typeof e?Pn(e):e}var Un,jn=/^--/,Fn=/\s*!important$/,$n=function(e,t,r){if(jn.test(t))e.style.setProperty(t,r);else if(Fn.test(r))e.style.setProperty(S(t),r.replace(Fn,""),"important");else{var n=Gn(t);if(Array.isArray(r))for(var i=0,o=r.length;i-1?t.split(Wn).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var r=" "+(e.getAttribute("class")||"")+" ";r.indexOf(" "+t+" ")<0&&e.setAttribute("class",(r+t).trim())}}function Qn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Wn).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var r=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?e.setAttribute("class",r):e.removeAttribute("class")}}function Hn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,Yn(e.name||"v")),T(t,e),t}return"string"==typeof e?Yn(e):void 0}}var Yn=y((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Kn=B&&!Y,Xn="transition",Jn="animation",Zn="transition",ei="transitionend",ti="animation",ri="animationend";Kn&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Zn="WebkitTransition",ei="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ti="WebkitAnimation",ri="webkitAnimationEnd"));var ni=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ii(e){ni((function(){ni(e)}))}function oi(e,t){var r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(t)<0&&(r.push(t),qn(e,t))}function ai(e,t){e._transitionClasses&&g(e._transitionClasses,t),Qn(e,t)}function si(e,t,r){var n=ui(e,t),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s=i===Xn?ei:ri,c=0,u=function(){e.removeEventListener(s,l),r()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c0&&(r=Xn,l=a,p=o.length):t===Jn?u>0&&(r=Jn,l=u,p=c.length):p=(r=(l=Math.max(a,u))>0?a>u?Xn:Jn:null)?r===Xn?o.length:c.length:0,{type:r,timeout:l,propCount:p,hasTransform:r===Xn&&ci.test(n[Zn+"Property"])}}function li(e,t){for(;e.length1}function gi(e,t){!0!==t.data.show&&di(t)}var vi=function(e){var t,r,s={},c=e.modules,u=e.nodeOps;for(t=0;th?w(e,n(r[v+1])?null:r[v+1].elm,r,f,v,o):f>v&&_(t,d,h)}function k(e,t,r,n){for(var o=r;o-1,a.selected!==o&&(a.selected=o);else if(N(_i(a),n))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function xi(e,t){return t.every((function(t){return!N(t,e)}))}function _i(e){return"_value"in e?e._value:e.value}function Ei(e){e.target.composing=!0}function Si(e){e.target.composing&&(e.target.composing=!1,ki(e.target,"input"))}function ki(e,t){var r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}function Oi(e){return!e.componentInstance||e.data&&e.data.transition?e:Oi(e.componentInstance._vnode)}var Ti={model:bi,show:{bind:function(e,t,r){var n=t.value,i=(r=Oi(r)).data&&r.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&i?(r.data.show=!0,di(r,(function(){e.style.display=o}))):e.style.display=n?o:"none"},update:function(e,t,r){var n=t.value;!n!=!t.oldValue&&((r=Oi(r)).data&&r.data.transition?(r.data.show=!0,n?di(r,(function(){e.style.display=e.__vOriginalDisplay})):fi(r,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,r,n,i){i||(e.style.display=e.__vOriginalDisplay)}}},Ii={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 Ai(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ai(Yt(t.children)):e}function Ri(e){var t={},r=e.$options;for(var n in r.propsData)t[n]=e[n];var i=r._parentListeners;for(var o in i)t[x(o)]=i[o];return t}function Ci(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Ni=function(e){return e.tag||ht(e)},Di=function(e){return"show"===e.name},Pi={name:"transition",props:Ii,abstract:!0,render:function(e){var t=this,r=this.$slots.default;if(r&&(r=r.filter(Ni)).length){var n=this.mode,i=r[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Ai(i);if(!o)return i;if(this._leaving)return Ci(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ri(this),u=this._vnode,l=Ai(u);if(o.data.directives&&o.data.directives.some(Di)&&(o.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,l)&&!ht(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var p=l.data.transition=T({},c);if("out-in"===n)return this._leaving=!0,st(p,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ci(e,i);if("in-out"===n){if(ht(o))return u;var d,f=function(){d()};st(c,"afterEnter",f),st(c,"enterCancelled",f),st(p,"delayLeave",(function(e){d=e}))}}return i}}},Mi=T({tag:String,moveClass:String},Ii);function Li(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ui(e){e.data.newPos=e.elm.getBoundingClientRect()}function ji(e){var t=e.data.pos,r=e.data.newPos,n=t.left-r.left,i=t.top-r.top;if(n||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+i+"px)",o.transitionDuration="0s"}}delete Mi.mode;var Fi={Transition:Pi,TransitionGroup:{props:Mi,beforeMount:function(){var e=this,t=this._update;this._update=function(r,n){var i=tr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,r,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ri(this),s=0;s-1?Zr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Zr[e]=/HTMLUnknownElement/.test(t.toString())},T(Ir.options.directives,Ti),T(Ir.options.components,Fi),Ir.prototype.__patch__=B?vi:A,Ir.prototype.$mount=function(e,t){return function(e,t,r){var n;return e.$el=t,e.$options.render||(e.$options.render=me),or(e,"beforeMount"),n=function(){e._update(e._render(),r)},new vr(e,n,A,{before:function(){e._isMounted&&!e._isDestroyed&&or(e,"beforeUpdate")}},!0),r=!1,null==e.$vnode&&(e._isMounted=!0,or(e,"mounted")),e}(this,e=e&&B?function(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}(e):void 0,t)},B&&setTimeout((function(){j.devtools&&ne&&ne.emit("init",Ir)}),0),t.default=Ir}.call(this,r("c8ba"))},"2f62":function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return S})),r.d(t,"c",(function(){return E})),r.d(t,"d",(function(){return _})),r.d(t,"e",(function(){return x}));var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){n.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){n.emit("vuex:action",e,t)}),{prepend:!0}))}function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var r=function(e,t){return e.filter(t)[0]}(t,(function(t){return t.original===e}));if(r)return r.copy;var n=Array.isArray(e)?[]:{};return t.push({original:e,copy:n}),Object.keys(e).forEach((function(r){n[r]=o(e[r],t)})),n}function a(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function s(e){return null!==e&&"object"==typeof e}var c=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"==typeof r?r():r)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},c.prototype.addChild=function(e,t){this._children[e]=t},c.prototype.removeChild=function(e){delete this._children[e]},c.prototype.getChild=function(e){return this._children[e]},c.prototype.hasChild=function(e){return e in this._children},c.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},c.prototype.forEachChild=function(e){a(this._children,e)},c.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},c.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},c.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(c.prototype,u);var l,p=function(e){this.register([],e,!1)};p.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},p.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return e+((t=t.getChild(r)).namespaced?r+"/":"")}),"")},p.prototype.update=function(e){!function e(t,r,n){if(r.update(n),n.modules)for(var i in n.modules){if(!r.getChild(i))return;e(t.concat(i),r.getChild(i),n.modules[i])}}([],this.root,e)},p.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var i=new c(t,r);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&a(t.modules,(function(t,i){n.register(e.concat(i),t,r)}))},p.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n&&n.runtime&&t.removeChild(r)},p.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var d=function(e){var t=this;void 0===e&&(e={}),!l&&"undefined"!=typeof window&&window.Vue&&w(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,r){return s.call(o,e,t,r)},this.strict=n;var c=this._modules.root.state;v(this,c,[],this._modules.root),g(this,c),r.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:l.config.devtools)&&i(this)},f={state:{configurable:!0}};function h(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function m(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;v(e,r,[],e._modules.root,!0),g(e,r,t)}function g(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};a(i,(function(t,r){o[r]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,e._vm=new l({data:{$$state:t},computed:o}),l.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),l.nextTick((function(){return n.$destroy()})))}function v(e,t,r,n,i){var o=!r.length,a=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=n),!o&&!i){var s=b(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit((function(){l.set(s,c,n.state)}))}var u=n.context=function(e,t,r){var n=""===t,i={dispatch:n?e.dispatch:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:n?e.commit:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return b(e.state,r)}}}),i}(e,a,r);n.forEachMutation((function(t,r){!function(e,t,r,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){r.call(e,n.state,t)}))}(e,a+r,t,u)})),n.forEachAction((function(t,r){var n=t.root?r:a+r,i=t.handler||t;!function(e,t,r,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return function(e){return e&&"function"==typeof e.then}(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}(e,n,i,u)})),n.forEachGetter((function(t,r){!function(e,t,r,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)})}(e,a+r,t,u)})),n.forEachChild((function(n,o){v(e,t,r.concat(o),n,i)}))}function b(e,t){return t.reduce((function(e,t){return e[t]}),e)}function y(e,t,r){return s(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}function w(e){l&&e===l||
+var r=Object.freeze({});function n(e){return null==e}function i(e){return null!=e}function o(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(r,1)}}var v=Object.prototype.hasOwnProperty;function b(e,t){return v.call(e,t)}function y(e){var t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}var w=/-(\w)/g,x=y((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),_=y((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),E=/\B([A-Z])/g,S=y((function(e){return e.replace(E,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r};function O(e,t){t=t||0;for(var r=e.length-t,n=new Array(r);r--;)n[r]=e[r+t];return n}function T(e,t){for(var r in t)e[r]=t[r];return e}function I(e){for(var t={},r=0;r0,K=Q&&Q.indexOf("edge/")>0,X=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===q),J=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),Z={}.watch,ee=!1;if(B)try{var te={};Object.defineProperty(te,"passive",{get:function(){ee=!0}}),window.addEventListener("test-passive",null,te)}catch(e){}var re=function(){return void 0===G&&(G=!B&&!W&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),G},ne=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ie(e){return"function"==typeof e&&/native code/.test(e.toString())}var oe,ae="undefined"!=typeof Symbol&&ie(Symbol)&&"undefined"!=typeof Reflect&&ie(Reflect.ownKeys);oe="undefined"!=typeof Set&&ie(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var se=R,ce=0,ue=function(){this.id=ce++,this.subs=[]};ue.prototype.addSub=function(e){this.subs.push(e)},ue.prototype.removeSub=function(e){g(this.subs,e)},ue.prototype.depend=function(){ue.target&&ue.target.addDep(this)},ue.prototype.notify=function(){for(var e=this.subs.slice(),t=0,r=e.length;t-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===S(e)){var c=Ve(String,i.type);(c<0||s0&&(lt((c=e(c,(r||"")+"_"+s))[0])&<(l)&&(p[u]=ge(l.text+c[0].text),c.shift()),p.push.apply(p,c)):a(c)?lt(l)?p[u]=ge(l.text+c):""!==c&&p.push(ge(c)):lt(c)&<(l)?p[u]=ge(l.text+c.text):(o(t._isVList)&&i(c.tag)&&n(c.key)&&i(r)&&(c.key="__vlist"+r+"_"+s+"__"),p.push(c)));return p}(e):void 0}function lt(e){return i(e)&&i(e.text)&&function(e){return!1===e}(e.isComment)}function pt(e,t){if(e){for(var r=Object.create(null),n=ae?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=gt(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=vt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),$(i,"$stable",a),$(i,"$key",s),$(i,"$hasNormal",o),i}function gt(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ut(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!ht(t))?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function vt(e,t){return function(){return e[t]}}function bt(e,t){var r,n,o,a,c;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),n=0,o=e.length;ndocument.createEvent("Event").timeStamp&&(fr=function(){return hr.now()})}function mr(){var e,t;for(dr=fr(),lr=!0,ar.sort((function(e,t){return e.id-t.id})),pr=0;prpr&&ar[r].id>e.id;)r--;ar.splice(r+1,0,e)}else ar.push(e);ur||(ur=!0,tt(mr))}}(this)},vr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user){var r='callback for watcher "'+this.expression+'"';ze(this.cb,this.vm,[e,t],this.vm,r)}else this.cb.call(this.vm,e,t)}}},vr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vr.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},vr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var br={enumerable:!0,configurable:!0,get:R,set:R};function yr(e,t,r){br.get=function(){return this[t][r]},br.set=function(e){this[t][r]=e},Object.defineProperty(e,r,br)}function wr(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[];!e.$parent||_e(!1);var o=function(o){i.push(o);var a=Ue(o,t,r,e);ke(n,o,a),o in e||yr(e,"_props",o)};for(var a in t)o(a);_e(!0)}(e,t.props),t.methods&&function(e,t){for(var r in e.$options.props,t)e[r]="function"!=typeof t[r]?R:k(t[r],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return Ge(e,t,"data()"),{}}finally{de()}}(t,e):t||{})||(t={});var r=Object.keys(t),n=e.$options.props,i=(e.$options.methods,r.length);for(;i--;){var o=r[i];n&&b(n,o)||F(o)||yr(e,"_data",o)}Se(t,!0)}(e):Se(e._data={},!0),t.computed&&function(e,t){var r=e._computedWatchers=Object.create(null),n=re();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;n||(r[i]=new vr(e,a||R,R,xr)),i in e||_r(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===c.call(e)}(e)&&e.test(t)}function Nr(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var o in r){var a=r[o];if(a){var s=a.name;s&&!t(s)&&Pr(r,o,n,i)}}}function Pr(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,g(r,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=Or++,t._isVue=!0,e&&e._isComponent?function(e,t){var r=e.$options=Object.create(e.constructor.options),n=t._parentVnode;r.parent=t.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,t.render&&(r.render=t.render,r.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Me(Tr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,r=t.parent;if(r&&!t.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(e)}e.$parent=r,e.$root=r?r.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Zt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=dt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,r,n,i){return Vt(e,t,r,n,i,!1)},e.$createElement=function(t,r,n,i){return Vt(e,t,r,n,i,!0)};var o=n&&n.data;ke(e,"$attrs",o&&o.attrs||r,null,!0),ke(e,"$listeners",t._parentListeners||r,null,!0)}(t),or(t,"beforeCreate"),function(e){var t=pt(e.$options.inject,e);t&&(_e(!1),Object.keys(t).forEach((function(r){ke(e,r,t[r])})),_e(!0))}(t),wr(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),or(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(Ir),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Oe,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,r){var n=this;if(u(t))return kr(n,e,t,r);(r=r||{}).user=!0;var i=new vr(n,e,t,r);if(r.immediate){var o='callback for immediate watcher "'+i.expression+'"';pe(),ze(t,n,[i.value],n,o),de()}return function(){i.teardown()}}}(Ir),function(e){var t=/^hook:/;e.prototype.$on=function(e,r){var n=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?O(r):r;for(var n=O(arguments,1),i='event handler for "'+e+'"',o=0,a=r.length;oparseInt(this.max)&&Pr(t,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Pr(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Nr(e,(function(e){return Cr(t,e)}))})),this.$watch("exclude",(function(t){Nr(e,(function(e){return!Cr(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Yt(e),r=t&&t.componentOptions;if(r){var n=Ar(r),i=this.include,o=this.exclude;if(i&&(!n||!Cr(i,n))||o&&n&&Cr(o,n))return t;var a=this.cache,s=this.keys,c=null==t.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,g(s,c),s.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}}};(function(e){var t={get:function(){return j}};Object.defineProperty(e,"config",t),e.util={warn:se,extend:T,mergeOptions:Me,defineReactive:ke},e.set=Oe,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Se(e),e},e.options=Object.create(null),L.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Mr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=O(arguments,1);return r.unshift(this),"function"==typeof e.install?e.install.apply(e,r):"function"==typeof e&&e.apply(null,r),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Me(this.options,e),this}}(e),Rr(e),function(e){L.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&u(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"==typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}(e)})(Ir),Object.defineProperty(Ir.prototype,"$isServer",{get:re}),Object.defineProperty(Ir.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ir,"FunctionalRenderContext",{value:Pt}),Ir.version="2.6.14";var Lr=h("style,class"),Ur=h("input,textarea,option,select,progress"),jr=h("contenteditable,draggable,spellcheck"),Fr=h("events,caret,typing,plaintext-only"),$r=h("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,truespeed,typemustmatch,visible"),Vr="http://www.w3.org/1999/xlink",Gr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},zr=function(e){return Gr(e)?e.slice(6,e.length):""},Br=function(e){return null==e||!1===e};function Wr(e){for(var t=e.data,r=e,n=e;i(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(t=qr(n.data,t));for(;i(r=r.parent);)r&&r.data&&(t=qr(t,r.data));return function(e,t){return i(e)||i(t)?Qr(e,Hr(t)):""}(t.staticClass,t.class)}function qr(e,t){return{staticClass:Qr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Qr(e,t){return e?t?e+" "+t:e:t||""}function Hr(e){return Array.isArray(e)?function(e){for(var t,r="",n=0,o=e.length;n-1?bn(e,t,r):$r(t)?Br(r)?e.removeAttribute(t):(r="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,r)):jr(t)?e.setAttribute(t,function(e,t){return Br(t)||"false"===t?"false":"contenteditable"===e&&Fr(t)?t:"true"}(t,r)):Gr(t)?Br(r)?e.removeAttributeNS(Vr,zr(t)):e.setAttributeNS(Vr,t,r):bn(e,t,r)}function bn(e,t,r){if(Br(r))e.removeAttribute(t);else{if(H&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==r&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,r)}}var yn={create:gn,update:gn};function wn(e,t){var r=t.elm,o=t.data,a=e.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=Wr(t),c=r._transitionClasses;i(c)&&(s=Qr(s,Hr(c))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var xn,_n={create:wn,update:wn};function En(e){if(i(e.__r)){var t=H?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}i(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}function Sn(e,t,r){var n=xn;return function i(){var o=t.apply(null,arguments);null!==o&&Tn(e,i,r,n)}}var kn=Qe&&!(J&&Number(J[1])<=53);function On(e,t,r,n){if(kn){var i=dr,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}xn.addEventListener(e,t,ee?{capture:r,passive:n}:r)}function Tn(e,t,r,n){(n||xn).removeEventListener(e,t._wrapper||t,r)}function In(e,t){if(!n(e.data.on)||!n(t.data.on)){var r=t.data.on||{},i=e.data.on||{};xn=t.elm,En(r),at(r,i,On,Tn,Sn,t.context),xn=void 0}}var Rn,An={create:In,update:In};function Cn(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var r,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(r in i(c.__ob__)&&(c=t.data.domProps=T({},c)),s)r in c||(a[r]="");for(r in c){if(o=c[r],"textContent"===r||"innerHTML"===r){if(t.children&&(t.children.length=0),o===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=o;var u=n(o)?"":String(o);Nn(a,u)&&(a.value=u)}else if("innerHTML"===r&&Xr(a.tagName)&&n(a.innerHTML)){(Rn=Rn||document.createElement("div")).innerHTML="";for(var l=Rn.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[r])try{a[r]=o}catch(e){}}}}function Nn(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var r=!0;try{r=document.activeElement!==e}catch(e){}return r&&e.value!==t}(e,t)||function(e,t){var r=e.value,n=e._vModifiers;if(i(n)){if(n.number)return f(r)!==f(t);if(n.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var Pn={create:Cn,update:Cn},Dn=y((function(e){var t={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Mn(e){var t=Ln(e.style);return e.staticStyle?T(e.staticStyle,t):t}function Ln(e){return Array.isArray(e)?I(e):"string"==typeof e?Dn(e):e}var Un,jn=/^--/,Fn=/\s*!important$/,$n=function(e,t,r){if(jn.test(t))e.style.setProperty(t,r);else if(Fn.test(r))e.style.setProperty(S(t),r.replace(Fn,""),"important");else{var n=Gn(t);if(Array.isArray(r))for(var i=0,o=r.length;i-1?t.split(Wn).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var r=" "+(e.getAttribute("class")||"")+" ";r.indexOf(" "+t+" ")<0&&e.setAttribute("class",(r+t).trim())}}function Qn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Wn).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var r=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?e.setAttribute("class",r):e.removeAttribute("class")}}function Hn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,Yn(e.name||"v")),T(t,e),t}return"string"==typeof e?Yn(e):void 0}}var Yn=y((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Kn=B&&!Y,Xn="transition",Jn="animation",Zn="transition",ei="transitionend",ti="animation",ri="animationend";Kn&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Zn="WebkitTransition",ei="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ti="WebkitAnimation",ri="webkitAnimationEnd"));var ni=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ii(e){ni((function(){ni(e)}))}function oi(e,t){var r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(t)<0&&(r.push(t),qn(e,t))}function ai(e,t){e._transitionClasses&&g(e._transitionClasses,t),Qn(e,t)}function si(e,t,r){var n=ui(e,t),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s=i===Xn?ei:ri,c=0,u=function(){e.removeEventListener(s,l),r()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c0&&(r=Xn,l=a,p=o.length):t===Jn?u>0&&(r=Jn,l=u,p=c.length):p=(r=(l=Math.max(a,u))>0?a>u?Xn:Jn:null)?r===Xn?o.length:c.length:0,{type:r,timeout:l,propCount:p,hasTransform:r===Xn&&ci.test(n[Zn+"Property"])}}function li(e,t){for(;e.length1}function gi(e,t){!0!==t.data.show&&di(t)}var vi=function(e){var t,r,s={},c=e.modules,u=e.nodeOps;for(t=0;th?w(e,n(r[v+1])?null:r[v+1].elm,r,f,v,o):f>v&&_(t,d,h)}function k(e,t,r,n){for(var o=r;o-1,a.selected!==o&&(a.selected=o);else if(N(_i(a),n))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function xi(e,t){return t.every((function(t){return!N(t,e)}))}function _i(e){return"_value"in e?e._value:e.value}function Ei(e){e.target.composing=!0}function Si(e){e.target.composing&&(e.target.composing=!1,ki(e.target,"input"))}function ki(e,t){var r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}function Oi(e){return!e.componentInstance||e.data&&e.data.transition?e:Oi(e.componentInstance._vnode)}var Ti={model:bi,show:{bind:function(e,t,r){var n=t.value,i=(r=Oi(r)).data&&r.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&i?(r.data.show=!0,di(r,(function(){e.style.display=o}))):e.style.display=n?o:"none"},update:function(e,t,r){var n=t.value;!n!=!t.oldValue&&((r=Oi(r)).data&&r.data.transition?(r.data.show=!0,n?di(r,(function(){e.style.display=e.__vOriginalDisplay})):fi(r,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,r,n,i){i||(e.style.display=e.__vOriginalDisplay)}}},Ii={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 Ri(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ri(Yt(t.children)):e}function Ai(e){var t={},r=e.$options;for(var n in r.propsData)t[n]=e[n];var i=r._parentListeners;for(var o in i)t[x(o)]=i[o];return t}function Ci(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Ni=function(e){return e.tag||ht(e)},Pi=function(e){return"show"===e.name},Di={name:"transition",props:Ii,abstract:!0,render:function(e){var t=this,r=this.$slots.default;if(r&&(r=r.filter(Ni)).length){var n=this.mode,i=r[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Ri(i);if(!o)return i;if(this._leaving)return Ci(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ai(this),u=this._vnode,l=Ri(u);if(o.data.directives&&o.data.directives.some(Pi)&&(o.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,l)&&!ht(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var p=l.data.transition=T({},c);if("out-in"===n)return this._leaving=!0,st(p,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ci(e,i);if("in-out"===n){if(ht(o))return u;var d,f=function(){d()};st(c,"afterEnter",f),st(c,"enterCancelled",f),st(p,"delayLeave",(function(e){d=e}))}}return i}}},Mi=T({tag:String,moveClass:String},Ii);function Li(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ui(e){e.data.newPos=e.elm.getBoundingClientRect()}function ji(e){var t=e.data.pos,r=e.data.newPos,n=t.left-r.left,i=t.top-r.top;if(n||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+i+"px)",o.transitionDuration="0s"}}delete Mi.mode;var Fi={Transition:Di,TransitionGroup:{props:Mi,beforeMount:function(){var e=this,t=this._update;this._update=function(r,n){var i=tr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,r,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ai(this),s=0;s-1?Zr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Zr[e]=/HTMLUnknownElement/.test(t.toString())},T(Ir.options.directives,Ti),T(Ir.options.components,Fi),Ir.prototype.__patch__=B?vi:R,Ir.prototype.$mount=function(e,t){return function(e,t,r){var n;return e.$el=t,e.$options.render||(e.$options.render=me),or(e,"beforeMount"),n=function(){e._update(e._render(),r)},new vr(e,n,R,{before:function(){e._isMounted&&!e._isDestroyed&&or(e,"beforeUpdate")}},!0),r=!1,null==e.$vnode&&(e._isMounted=!0,or(e,"mounted")),e}(this,e=e&&B?function(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}(e):void 0,t)},B&&setTimeout((function(){j.devtools&&ne&&ne.emit("init",Ir)}),0),t.default=Ir}.call(this,r("c8ba"))},"2f62":function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return S})),r.d(t,"c",(function(){return E})),r.d(t,"d",(function(){return _})),r.d(t,"e",(function(){return x}));var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){n.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){n.emit("vuex:action",e,t)}),{prepend:!0}))}function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var r=function(e,t){return e.filter(t)[0]}(t,(function(t){return t.original===e}));if(r)return r.copy;var n=Array.isArray(e)?[]:{};return t.push({original:e,copy:n}),Object.keys(e).forEach((function(r){n[r]=o(e[r],t)})),n}function a(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function s(e){return null!==e&&"object"==typeof e}var c=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"==typeof r?r():r)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},c.prototype.addChild=function(e,t){this._children[e]=t},c.prototype.removeChild=function(e){delete this._children[e]},c.prototype.getChild=function(e){return this._children[e]},c.prototype.hasChild=function(e){return e in this._children},c.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},c.prototype.forEachChild=function(e){a(this._children,e)},c.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},c.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},c.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(c.prototype,u);var l,p=function(e){this.register([],e,!1)};p.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},p.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return e+((t=t.getChild(r)).namespaced?r+"/":"")}),"")},p.prototype.update=function(e){!function e(t,r,n){if(r.update(n),n.modules)for(var i in n.modules){if(!r.getChild(i))return;e(t.concat(i),r.getChild(i),n.modules[i])}}([],this.root,e)},p.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var i=new c(t,r);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&a(t.modules,(function(t,i){n.register(e.concat(i),t,r)}))},p.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n&&n.runtime&&t.removeChild(r)},p.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var d=function(e){var t=this;void 0===e&&(e={}),!l&&"undefined"!=typeof window&&window.Vue&&w(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,r){return s.call(o,e,t,r)},this.strict=n;var c=this._modules.root.state;v(this,c,[],this._modules.root),g(this,c),r.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:l.config.devtools)&&i(this)},f={state:{configurable:!0}};function h(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function m(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;v(e,r,[],e._modules.root,!0),g(e,r,t)}function g(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};a(i,(function(t,r){o[r]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,e._vm=new l({data:{$$state:t},computed:o}),l.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),l.nextTick((function(){return n.$destroy()})))}function v(e,t,r,n,i){var o=!r.length,a=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=n),!o&&!i){var s=b(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit((function(){l.set(s,c,n.state)}))}var u=n.context=function(e,t,r){var n=""===t,i={dispatch:n?e.dispatch:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:n?e.commit:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return b(e.state,r)}}}),i}(e,a,r);n.forEachMutation((function(t,r){!function(e,t,r,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){r.call(e,n.state,t)}))}(e,a+r,t,u)})),n.forEachAction((function(t,r){var n=t.root?r:a+r,i=t.handler||t;!function(e,t,r,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return function(e){return e&&"function"==typeof e.then}(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}(e,n,i,u)})),n.forEachGetter((function(t,r){!function(e,t,r,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)})}(e,a+r,t,u)})),n.forEachChild((function(n,o){v(e,t,r.concat(o),n,i)}))}function b(e,t){return t.reduce((function(e,t){return e[t]}),e)}function y(e,t,r){return s(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}function w(e){l&&e===l||
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
-function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,t.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(l=e)}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(e){},d.prototype.commit=function(e,t,r){var n=this,i=y(e,t,r),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,n.state)})))},d.prototype.dispatch=function(e,t){var r=this,n=y(e,t),i=n.type,o=n.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,r.state)}))}catch(e){}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,r.state)}))}catch(e){}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,r.state,e)}))}catch(e){}t(e)}))}))}},d.prototype.subscribe=function(e,t){return h(e,this._subscribers,t)},d.prototype.subscribeAction=function(e,t){return h("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},d.prototype.watch=function(e,t,r){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)},d.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},d.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),r.preserveState),g(this,this.state)},d.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var r=b(t.state,e.slice(0,-1));l.delete(r,e[e.length-1])})),m(this)},d.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},d.prototype.hotUpdate=function(e){this._modules.update(e),m(this,!0)},d.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(d.prototype,f);var x=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=T(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"==typeof i?i.call(this,t,r):t[i]},r[n].vuex=!0})),r})),_=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.commit;if(e){var o=T(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r})),E=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;i=e+i,r[n]=function(){if(!e||T(this.$store,"mapGetters",e))return this.$store.getters[i]},r[n].vuex=!0})),r})),S=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var o=T(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r}));function k(e){return function(e){return Array.isArray(e)||s(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function O(e){return function(t,r){return"string"!=typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function T(e,t,r){return e._modulesNamespaceMap[r]}function I(e,t,r){var n=r?e.groupCollapsed:e.group;try{n.call(e,t)}catch(r){e.log(t)}}function A(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function R(){var e=new Date;return" @ "+C(e.getHours(),2)+":"+C(e.getMinutes(),2)+":"+C(e.getSeconds(),2)+"."+C(e.getMilliseconds(),3)}function C(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var N={Store:d,install:w,version:"3.6.2",mapState:x,mapMutations:_,mapGetters:E,mapActions:S,createNamespacedHelpers:function(e){return{mapState:x.bind(null,e),mapGetters:E.bind(null,e),mapMutations:_.bind(null,e),mapActions:S.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var r=e.filter;void 0===r&&(r=function(e,t,r){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var u=e.logActions;void 0===u&&(u=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var p=o(e.state);void 0!==l&&(c&&e.subscribe((function(e,a){var s=o(a);if(r(e,p,s)){var c=R(),u=i(e),d="mutation "+e.type+c;I(l,d,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(p)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),A(l)}p=s})),u&&e.subscribeAction((function(e,r){if(a(e,r)){var n=R(),i=s(e),o="action "+e.type+n;I(l,o,t),l.log("%c action","color: #03A9F4; font-weight: bold",i),A(l)}})))}}};t.a=N}).call(this,r("c8ba"))},"2f6c":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var n=r("ad67"),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,u=Array.isArray(e),l=[e],p=-1,d=[],f=void 0,h=void 0,m=void 0,g=[],v=[],b=e;do{var y=++p===l.length,w=y&&0!==d.length;if(y){if(h=0===v.length?void 0:g[g.length-1],f=m,m=v.pop(),w){if(u)f=f.slice();else{for(var x={},_=0,E=Object.keys(f);_0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i=t,o={};return n.forEach((function(e){o[e]=i[e]})),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var a=e;if(t){var c=s()(t);a+="("+c+")"}return r&&Object.keys(r).forEach((function(e){-1===l.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@"+e+"("+JSON.stringify(r[e])+")":a+="@"+e)})),a}function d(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return c(r,n,i,t)})),r}return null}function f(e){return e.alias?e.alias.value:e.name.value}function h(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}function g(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function v(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function b(e){return null!=e&&"object"==typeof e&&"json"===e.type}function y(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach((function(e){r[e.name.value]=d(e,t)})),r}return null}function w(e,t){return void 0===t&&(t={}),function(e){return e?e.filter(E).map((function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,14);var r=t[0];Object(i.b)(r.name&&"if"===r.name.value,15);var n=r.value;return Object(i.b)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:e,ifArgument:r}})):[]}(e.directives).every((function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t[n.value.name.value],Object(i.b)(void 0!==o,13)):o=n.value.value,"skip"===r.name.value?!o:o}))}function x(e,t){return function(e){var t=[];return Object(n.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function _(e){return e&&x(["client"],e)&&x(["export"],e)}function E(e){var t=e.name.value;return"skip"===t||"include"===t}function S(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(11);"FragmentDefinition"===e.kind&&n.push(e)})),void 0===r&&(Object(i.b)(1===n.length,12),r=n[0].name.value),Object(o.a)(Object(o.a)({},e),{definitions:Object(o.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function k(e){for(var t=[],r=1;r1){var n=[];t=ae(t,n);for(var i=1;iYour Trial key includes all the functionality and device support of a Pro key.
After your Trial has reached expiration, your server still functions normally until the next time you Stop the array or reboot your server.
At that point you may either purchase a license key or request a Trial extension.
","_extraMsg":"You have {parsedExpireTime} remaining on your Trial key.
"},"EEXPIRED":{"humanReadable":"Trial Expired","heading":"Your Trial has expired","message":{"base":"To continue using Unraid OS you may purchase a license key.","extensionNotEligible":"You have used all your Trial extensions. @:stateData.EEXPIRED.message.base","extensionEligible":"@:stateData.EEXPIRED.message.base Alternately, you may request a Trial extension."}},"BASIC":{"humanReadable":"Basic"},"PLUS":{"humanReadable":"Plus"},"PRO":{"humanReadable":"Pro"},"EGUID":{"humanReadable":"GUID Error","error":{"heading":"Registration key / GUID mismatch","message":{"default":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key.","replacementIneligible":"Your Unraid registration key is ineligible for replacement as it has been replaced within the last 12 months.","replacementEligible":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key or Replace Key."}}},"ENOKEYFILE2":{"humanReadable":"Missing key file","error":{"heading":"@:stateData.ENOKEYFILE2.humanReadable","message":"It appears that your license key file is corrupted or missing. The key file should be located in the /config directory on your USB Flash boot device. If you do not have a backup copy of your license key file you may attempt to recover your key. If this was a Trial installation, you may purchase a license key."}},"ETRIAL":{"humanReadable":"Invalid installation","error":{"heading":"@:stateData.ETRIAL.humanReadable","message":"It is not possible to use a Trial key with an existing Unraid OS installation. You may purchase a license key corresponding to this USB Flash device to continue using this installation."}},"ENOKEYFILE1":{"humanReadable":"No Keyfile","error":{"heading":"No USB flash configuration data","message":"There is a problem with your USB Flash device"}},"ENOFLASH":{"humanReadable":"No Flash","error":{"heading":"Cannot access your USB Flash boot device","message":"There is a physical problem accessing your USB Flash boot device"}},"EGUID1":{"humanReadable":"Multiple License Keys Present","error":{"heading":"@:stateData.EGUID1.humanReadable","message":"There are multiple license key files present on your USB flash device and none of them correspond to the USB Flash boot device. Please remove all key files, except the one you want to replace, from the /config directory on your USB Flash boot device. Alternately you may purchase a license key for this USB flash device. If you want to replace one of your license keys with a new key bound to this USB Flash device, please first remove all other key files first."}},"EBLACKLISTED":{"humanReadable":"BLACKLISTED","error":{"heading":"Blacklisted USB Flash GUID","message":"This USB Flash boot device has been blacklisted. This can occur as a result of transferring your license key to a replacement USB Flash device, and you are currently booted from your old USB Flash device. A USB Flash device may also be blacklisted if we discover the serial number is not unique – this is common with USB card readers."}},"EBLACKLISTED1":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash device error","message":"This USB Flash device has an invalid GUID. Please try a different USB Flash device"}},"EBLACKLISTED2":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash has no serial number","message":"@:stateData.EBLACKLISTED.error.message"}},"ENOCONN":{"humanReadable":"Trial Requires Internet Connection","error":{"heading":"Cannot validate Unraid Trial key","message":"Your Trial key requires an internet connection. Please check Settings > Network"}},"STALE":{"humanReadable":"Stale","error":{"heading":"Stale Server","message":"Please refresh the page to ensure you load your latest configuration"}}},"upc":{"avatarAlt":"{0}\'s Avatar","confirmClosure":"Confirm closure then continue to webGUI","closeDropdown":"Close dropdown","openDropdown":"Open dropdown","pleaseConfirmClosureYouHaveOpenPopUp":"Please confirm closure. You have an open pop-up.","trialHasExpiredSeeOptions":"Trial has expired, see options below","errorCertRequiresSignIn":"Sign In before your Unraid.net SSL certificate expires","noRemoteApikeyRegisteredWithPlg":{"heading":"My Servers Error","msg":"Unraid.net re-authentication required"},"errorTooManyDisks":{"heading":"Too many devices","msg":{"base":"You must upgrade your key to support more devices.","basic":"Your Basic key supports 6 devices.","plus":"Your Plus key supports 12 devices."}},"extraLinks":{"newTab":"Opens {0} in new tab","myServers":"My Servers Dashboard","forums":"Unraid Forums","settings":{"text":"Settings","title":"Settings > Management Access • Unraid.net"}},"meta":{"trial":{"active":{"date":"Trial key expires at {date}","timeDiff":"Trial expires in {timeDiff}"},"expired":{"date":"Trial key expired at {date}","timeDiff":"Trial expired {timeDiff}"}},"uptime":{"date":"Server up since {date}","readable":"Uptime {timeDiff}"}},"myServers":{"heading":"My Servers","beta":"beta","errors":{"unraidApi":{"heading":"Unraid API Error","message":"Failed to connect to Unraid API."},"myServers":{"heading":"My Servers Error","message":"Please wait a moment and reload the page."}},"closeDetails":"Close Details","loading":"Loading My Servers data","displayingLastKnown":"Displaying last known server data","mothership":{"connected":"Connected to Mothership","notConnected":"Not Connected to Mothership"},"accessLabels":{"current":"Current server","local":"Local access","offline":"Server Offline","remote":"Remote access","unavailable":"Access unavailable"},"api":{"start":"Restart unraid-api","startTitle":"Executes `unraid-api start`; no terminal needed","stop":"Stop unraid-api"}},"opensNewHttpsWindow":{"base":"Opens new HTTPS window to {0}","signIn":"@:upc.opensNewHttpsWindow.base @:signIn","signOut":"@:upc.opensNewHttpsWindow.base @:signOut","purchase":"@:upc.opensNewHttpsWindow.base @:actions.purchase","upgrade":"@:upc.opensNewHttpsWindow.base @:actions.upgrade"},"signInActions":{"resolve":"@:signIn to resolve","purchaseKey":"@:signIn to @:actions.purchase","purchaseKeyOrExtendTrial":"@:upc.signInActions.purchaseKey or @:actions.extend"}},"wanIpCheck":{"checking":"Checking Wan IPs","avatarAlt":"{0}\'s Avatar","match":"Remark: your WAN IPv4 is {0}","mismatch":"Remark: Unraid\'s WAN IPv4 {0} does not match your client\'s WAN IPv4 {1}. This may indicate a complex network that will not work with this Remote Access solution. Ignore this message if you are currently connected via Remote Access or VPN","resolveError":"DNS issue, unable to resolve wanip4.unraid.net"}}')},"5a0c":function(e,t,r){e.exports=function(){"use strict";var e=6e4,t=36e5,r="millisecond",n="second",i="minute",o="hour",a="day",s="week",c="month",u="quarter",l="year",p="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function e(t,r){if(t.date()e.replace(o,(e,t)=>t?t.toUpperCase():""),s=/\B([A-Z])/g,c=e=>e.replace(s,"-$1").toLowerCase();function u(e,t,r){e[t]=[].concat(e[t]||[]),e[t].unshift(r)}function l(e,t){if(e){(e.$options[t]||[]).forEach(t=>{t.call(e)})}}function p(e,t,{type:r}={}){if((e=>/function Boolean/.test(String(e)))(r))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e||e;if((e=>/function Number/.test(String(e)))(r)){const t=parseFloat(e,10);return isNaN(t)?e:t}return e}function d(e,t){const r=[];for(let n=0,i=t.length;n(e[t]=l[r[n]],e),{}),u(t,"beforeCreate",(function(){const e=this.$emit;this.$emit=(t,...r)=>(this.$root.$options.customElement.dispatchEvent(function(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}(t,r)),e.call(this,t,...r))})),u(t,"created",(function(){i.forEach(e=>{this.$root.props[e]=this[e]})})),i.forEach(e=>{Object.defineProperty(m.prototype,e,{get(){return this._wrapper.props[e]},set(t){this._wrapper.props[e]=t},enumerable:!1,configurable:!0})}),s=!0}function h(e,t){const r=a(t),n=e.hasAttribute(t)?e.getAttribute(t):void 0;e._wrapper.props[r]=p(n,t,o[r])}class m extends HTMLElement{constructor(){const r=super();r.attachShadow({mode:"open"});const n=r._wrapper=new e({name:"shadow-root",customElement:r,shadowRoot:r.shadowRoot,data:()=>({props:{},slotChildren:[]}),render(e){return e(t,{ref:"inner",props:this.props},this.slotChildren)}});new MutationObserver(e=>{let t=!1;for(let n=0;n{e.props=function(e){const t={};return e.forEach(e=>{t[e]=void 0}),t}(i),n.forEach(e=>{h(this,e)})};s?r():t().then(e=>{(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),f(e),r()}),e.slotChildren=Object.freeze(d(e.$createElement,this.childNodes)),e.$mount(),this.shadowRoot.appendChild(e.$el)}}disconnectedCallback(){l(this.vueComponent,"deactivated")}}return r||f(t),m};function g(e,t,r,n,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:u}}r("24fb"),r("35d6");var v=r("2f62"),b=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function y(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var w=Array.isArray;function x(e){return null!==e&&"object"==typeof e}function _(e){return"boolean"==typeof e}function E(e){return"string"==typeof e}var S=Object.prototype.toString;function k(e){return"[object Object]"===S.call(e)}function O(e){return null==e}function T(e){return"function"==typeof e}function I(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=null,n=null;return 1===e.length?x(e[0])||w(e[0])?n=e[0]:"string"==typeof e[0]&&(r=e[0]):2===e.length&&("string"==typeof e[0]&&(r=e[0]),(x(e[1])||w(e[1]))&&(n=e[1])),{locale:r,params:n}}function A(e){return JSON.parse(JSON.stringify(e))}function R(e,t){return!!~e.indexOf(t)}var C=Object.prototype.hasOwnProperty;function N(e,t){return C.call(e,t)}function D(e){for(var t=arguments,r=Object(e),n=1;n/g,">").replace(/"/g,""").replace(/'/g,"'")}(e[t]))})),e}var L={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var r=t.data,n=t.parent,i=t.props,o=t.slots,a=n.$i18n;if(a){var s=i.path,c=i.locale,u=i.places,l=o(),p=a.i(s,c,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(l)||u?function(e,t){var r=t?function(e){return Array.isArray(e)?e.reduce(j,{}):Object.assign({},e)}(t):{};if(!e)return r;var n=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every(F);return e.reduce(n?U:j,r)}(l.default,u):l),d=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return d?e(d,r,p):p}}};function U(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function j(e,t,r){return e[r]=t,e}function F(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var $,V={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var r=t.props,n=t.parent,i=t.data,o=n.$i18n;if(!o)return null;var a=null,s=null;E(r.format)?a=r.format:x(r.format)&&(r.format.key&&(a=r.format.key),s=Object.keys(r.format).reduce((function(e,t){var n;return R(b,t)?Object.assign({},e,((n={})[t]=r.format[t],n)):e}),null));var c=r.locale||o.locale,u=o._ntp(r.value,c,a,s),l=u.map((function(e,t){var r,n=i.scopedSlots&&i.scopedSlots[e.type];return n?n(((r={})[e.type]=e.value,r.index=t,r.parts=u,r)):e.value})),p=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return p?e(p,{attrs:i.attrs,class:i.class,staticClass:i.staticClass},l):l}};function G(e,t,r){W(e,r)&&q(e,t,r)}function z(e,t,r,n){if(W(e,r)){var i=r.context.$i18n;(function(e,t){var r=t.context;return e._locale===r.$i18n.locale})(e,r)&&P(t.value,t.oldValue)&&P(e._localeMessage,i.getLocaleMessage(i.locale))||q(e,t,r)}}function B(e,t,r,n){if(r.context){var i=r.context.$i18n||{};t.modifiers.preserve||i.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}else y("Vue instance does not exists in VNode context")}function W(e,t){var r=t.context;return r?!!r.$i18n||(y("VueI18n instance does not exists in Vue instance"),!1):(y("Vue instance does not exists in VNode context"),!1)}function q(e,t,r){var n,i,o=function(e){var t,r,n,i;return E(e)?t=e:k(e)&&(t=e.path,r=e.locale,n=e.args,i=e.choice),{path:t,locale:r,args:n,choice:i}}(t.value),a=o.path,s=o.locale,c=o.args,u=o.choice;if(a||s||c)if(a){var l=r.context;e._vt=e.textContent=null!=u?(n=l.$i18n).tc.apply(n,[a,u].concat(Q(s,c))):(i=l.$i18n).t.apply(i,[a].concat(Q(s,c))),e._locale=l.$i18n.locale,e._localeMessage=l.$i18n.getLocaleMessage(l.$i18n.locale)}else y("`path` is required in v-t directive");else y("value type not supported")}function Q(e,t){var r=[];return e&&r.push(e),t&&(Array.isArray(t)||k(t))&&r.push(t),r}function H(e,t){void 0===t&&(t={bridge:!1}),H.installed=!0,($=e).version&&Number($.version.split(".")[0]),function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var n=this.$i18n;return n._t.apply(n,[e,n.locale,n._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(r))},e.prototype.$te=function(e,t){var r=this.$i18n;return r._te(e,r.locale,r._getMessages(),t)},e.prototype.$d=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this.$i18n).d.apply(t,[e].concat(r))},e.prototype.$n=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this.$i18n).n.apply(t,[e].concat(r))}}($),$.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n){if(e.i18n instanceof le){if(e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){t=D(t,JSON.parse(e))})),Object.keys(t).forEach((function(r){e.i18n.mergeLocaleMessage(r,t[r])}))}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(k(e.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof le?this.$root.$i18n:null;if(r&&(e.i18n.root=this.$root,e.i18n.formatter=r.formatter,e.i18n.fallbackLocale=r.fallbackLocale,e.i18n.formatFallbackMessages=r.formatFallbackMessages,e.i18n.silentTranslationWarn=r.silentTranslationWarn,e.i18n.silentFallbackWarn=r.silentFallbackWarn,e.i18n.pluralizationRules=r.pluralizationRules,e.i18n.preserveDirectiveContent=r.preserveDirectiveContent),e.__i18n)try{var n=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){n=D(n,JSON.parse(e))})),e.i18n.messages=n}catch(e){}var i=e.i18n.sharedMessages;i&&k(i)&&(e.i18n.messages=D(e.i18n.messages,i)),this._i18n=new le(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof le?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof le&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n?(e.i18n instanceof le||k(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof le||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof le)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}(t.bridge)),$.directive("t",{bind:G,update:z,unbind:B}),$.component(L.name,L),$.component(V.name,V),$.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var Y=function(){this._caches=Object.create(null)};Y.prototype.interpolate=function(e,t){if(!t)return[e];var r=this._caches[e];return r||(r=function(e){var t=[],r=0,n="";for(;r0)p--,l=4,d[0]();else{if(p=0,void 0===r)return!1;if(!1===(r=te(r)))return!1;d[1]()}};null!==l;)if(u++,"\\"!==(t=e[u])||!f()){if(i=ee(t),8===(o=(s=J[l])[i]||s.else||8))return;if(l=o[0],(a=d[o[1]])&&(n=void 0===(n=o[2])?t:n,!1===a()))return;if(7===l)return c}}(e))&&(this._cache[e]=t),t||[]},re.prototype.getPathValue=function(e,t){if(!x(e))return null;var r=this.parsePath(t);if(0===r.length)return null;for(var n=r.length,i=e,o=0;o/,oe=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|./]+|\([\w\-_|./]+\)))/g,ae=/^@(?:\.([a-z]+))?:/,se=/[()]/g,ce={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},ue=new Y,le=function(e){var t=this;void 0===e&&(e={}),!$&&"undefined"!=typeof window&&window.Vue&&H(window.Vue);var r=e.locale||"en-US",n=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),i=e.messages||{},o=e.dateTimeFormats||e.datetimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||ue,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new re,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,this.getChoiceIndex=function(e,r){var n=Object.getPrototypeOf(t);if(n&&n.getChoiceIndex)return n.getChoiceIndex.call(t,e,r);return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,r]):function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}(e,r)},this._exist=function(e,r){return!(!e||!r||O(t._path.getPathValue(e,r))&&!e[r])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])})),this._initVM({locale:r,fallbackLocale:n,messages:i,dateTimeFormats:o,numberFormats:a})},pe={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};le.prototype._checkLocaleMessage=function(e,t,r){var n=function(e,t,r,i){if(k(r))Object.keys(r).forEach((function(o){var a=r[o];k(a)?(i.push(o),i.push("."),n(e,t,a,i),i.pop(),i.pop()):(i.push(o),n(e,t,a,i),i.pop())}));else if(w(r))r.forEach((function(r,o){k(r)?(i.push("["+o+"]"),i.push("."),n(e,t,r,i),i.pop(),i.pop()):(i.push("["+o+"]"),n(e,t,r,i),i.pop())}));else if(E(r)){if(ie.test(r)){var o="Detected HTML in message '"+r+"' of keypath '"+i.join("")+"' at '"+t+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?y(o):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(o)}}};n(t,e,r,[])},le.prototype._initVM=function(e){var t=$.config.silent;$.config.silent=!0,this._vm=new $({data:e,__VUE18N__INSTANCE__:!0}),$.config.silent=t},le.prototype.destroyVM=function(){this._vm.$destroy()},le.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},le.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.delete(t));}(this._dataListeners,e)},le.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}(e._dataListeners),r=t.length;r--;)$.nextTick((function(){t[r]&&t[r].$forceUpdate()}))}),{deep:!0})},le.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},le.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},pe.vm.get=function(){return this._vm},pe.messages.get=function(){return A(this._getMessages())},pe.dateTimeFormats.get=function(){return A(this._getDateTimeFormats())},pe.numberFormats.get=function(){return A(this._getNumberFormats())},pe.availableLocales.get=function(){return Object.keys(this.messages).sort()},pe.locale.get=function(){return this._vm.locale},pe.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},pe.fallbackLocale.get=function(){return this._vm.fallbackLocale},pe.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},pe.formatFallbackMessages.get=function(){return this._formatFallbackMessages},pe.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},pe.missing.get=function(){return this._missing},pe.missing.set=function(e){this._missing=e},pe.formatter.get=function(){return this._formatter},pe.formatter.set=function(e){this._formatter=e},pe.silentTranslationWarn.get=function(){return this._silentTranslationWarn},pe.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},pe.silentFallbackWarn.get=function(){return this._silentFallbackWarn},pe.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},pe.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},pe.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},pe.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},pe.warnHtmlInMessage.set=function(e){var t=this,r=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,r!==e&&("warn"===e||"error"===e)){var n=this._getMessages();Object.keys(n).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,n[e])}))}},pe.postTranslation.get=function(){return this._postTranslation},pe.postTranslation.set=function(e){this._postTranslation=e},pe.sync.get=function(){return this._sync},pe.sync.set=function(e){this._sync=e},le.prototype._getMessages=function(){return this._vm.messages},le.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},le.prototype._getNumberFormats=function(){return this._vm.numberFormats},le.prototype._warnDefault=function(e,t,r,n,i,o){if(!O(r))return r;if(this._missing){var a=this._missing.apply(null,[e,t,n,i]);if(E(a))return a}if(this._formatFallbackMessages){var s=I.apply(void 0,i);return this._render(t,o,s.params,t)}return t},le.prototype._isFallbackRoot=function(e){return!e&&!O(this._root)&&this._fallbackRoot},le.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},le.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},le.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},le.prototype._interpolate=function(e,t,r,n,i,o,a){if(!t)return null;var s,c=this._path.getPathValue(t,r);if(w(c)||k(c))return c;if(O(c)){if(!k(t))return null;if(!E(s=t[r])&&!T(s))return null}else{if(!E(c)&&!T(c))return null;s=c}return E(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(e,t,s,n,"raw",o,a)),this._render(s,i,o,r)},le.prototype._link=function(e,t,r,n,i,o,a){var s=r,c=s.match(oe);for(var u in c)if(c.hasOwnProperty(u)){var l=c[u],p=l.match(ae),d=p[0],f=p[1],h=l.replace(d,"").replace(se,"");if(R(a,h))return s;a.push(h);var m=this._interpolate(e,t,h,n,"raw"===i?"string":i,"raw"===i?void 0:o,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;m=g._translate(g._getMessages(),g.locale,g.fallbackLocale,h,n,i,o)}m=this._warnDefault(e,h,m,n,w(o)?o:[o],i),this._modifiers.hasOwnProperty(f)?m=this._modifiers[f](m):ce.hasOwnProperty(f)&&(m=ce[f](m)),a.pop(),s=m?s.replace(l,m):s}return s},le.prototype._createMessageContext=function(e,t,r,n){var i=this,o=w(e)?e:[],a=x(e)?e:{},s=this._getMessages(),c=this.locale;return{list:function(e){return o[e]},named:function(e){return a[e]},values:e,formatter:t,path:r,messages:s,locale:c,linked:function(e){return i._interpolate(c,s[c]||{},e,null,n,void 0,[e])}}},le.prototype._render=function(e,t,r,n){if(T(e))return e(this._createMessageContext(r,this._formatter||ue,n,t));var i=this._formatter.interpolate(e,r,n);return i||(i=ue.interpolate(e,r,n)),"string"!==t||E(i)?i:i.join("")},le.prototype._appendItemToChain=function(e,t,r){var n=!1;return R(e,t)||(n=!0,t&&(n="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),r&&r[t]&&(n=r[t]))),n},le.prototype._appendLocaleToChain=function(e,t,r){var n,i=t.split("-");do{var o=i.join("-");n=this._appendItemToChain(e,o,r),i.splice(-1,1)}while(i.length&&!0===n);return n},le.prototype._appendBlockToChain=function(e,t,r){for(var n=!0,i=0;i0;)o[a]=arguments[a+4];if(!e)return"";var s=I.apply(void 0,o);this._escapeParameterHtml&&(s.params=M(s.params));var c=s.locale||t,u=this._translate(r,c,this.fallbackLocale,e,n,"string",s.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(o))}return u=this._warnDefault(c,e,u,n,o,"string"),this._postTranslation&&null!=u&&(u=this._postTranslation(u,e)),u},le.prototype.t=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(r))},le.prototype._i=function(e,t,r,n,i){var o=this._translate(r,t,this.fallbackLocale,e,n,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}return this._warnDefault(t,e,o,n,[i],"raw")},le.prototype.i=function(e,t,r){return e?(E(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,r)):""},le.prototype._tc=function(e,t,r,n,i){for(var o,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!e)return"";void 0===i&&(i=1);var c={count:i,n:i},u=I.apply(void 0,a);return u.params=Object.assign(c,u.params),a=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((o=this)._t.apply(o,[e,t,r,n].concat(a)),i)},le.prototype.fetchChoice=function(e,t){if(!e||!E(e))return null;var r=e.split("|");return r[t=this.getChoiceIndex(t,r.length)]?r[t].trim():e},le.prototype.tc=function(e,t){for(var r,n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];return(r=this)._tc.apply(r,[e,this.locale,this._getMessages(),null,t].concat(n))},le.prototype._te=function(e,t,r){for(var n=[],i=arguments.length-3;i-- >0;)n[i]=arguments[i+3];var o=I.apply(void 0,n).locale||t;return this._exist(r[o],e)},le.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},le.prototype.getLocaleMessage=function(e){return A(this._vm.messages[e]||{})},le.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},le.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,D(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},le.prototype.getDateTimeFormat=function(e){return A(this._vm.dateTimeFormats[e]||{})},le.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},le.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,D(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},le.prototype._clearDateTimeFormat=function(e,t){for(var r in t){var n=e+"__"+r;this._dateTimeFormatters.hasOwnProperty(n)&&delete this._dateTimeFormatters[n]}},le.prototype._localizeDateTime=function(e,t,r,n,i){for(var o=t,a=n[o],s=this._getLocaleChain(t,r),c=0;c0;)t[r]=arguments[r+1];var n=this.locale,i=null;return 1===t.length?E(t[0])?i=t[0]:x(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key)):2===t.length&&(E(t[0])&&(i=t[0]),E(t[1])&&(n=t[1])),this._d(e,n,i)},le.prototype.getNumberFormat=function(e){return A(this._vm.numberFormats[e]||{})},le.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},le.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,D(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},le.prototype._clearNumberFormat=function(e,t){for(var r in t){var n=e+"__"+r;this._numberFormatters.hasOwnProperty(n)&&delete this._numberFormatters[n]}},le.prototype._getNumberFormatter=function(e,t,r,n,i,o){for(var a=t,s=n[a],c=this._getLocaleChain(t,r),u=0;u0;)t[r]=arguments[r+1];var n=this.locale,i=null,o=null;return 1===t.length?E(t[0])?i=t[0]:x(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key),o=Object.keys(t[0]).reduce((function(e,r){var n;return R(b,r)?Object.assign({},e,((n={})[r]=t[0][r],n)):e}),null)):2===t.length&&(E(t[0])&&(i=t[0]),E(t[1])&&(n=t[1])),this._n(e,n,i,o)},le.prototype._ntp=function(e,t,r,n){if(!le.availabilities.numberFormat)return[];if(!r)return(n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t)).formatToParts(e);var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),r,n),o=i&&i.formatToParts(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,r,n)}return o||[]},Object.defineProperties(le.prototype,pe),Object.defineProperty(le,"availabilities",{get:function(){if(!ne){var e="undefined"!=typeof Intl;ne={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return ne}}),le.install=H,le.version="8.26.1";var de=le;i.default.use(de);var fe=new de({locale:"en_US",fallbackLocale:"en_US",messages:function(){const e=r("4b3b"),t={};return e.keys().forEach(r=>{const n=r.match(/([A-Za-z0-9-_]+)\./i);if(n&&n.length>1){const i=n[1];t[i]=e(r)}}),t}()});const he="production",me="https://registration.unraid.net",ge="https://unraid.net/preflight",ve=Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_GRAPH_URL||null,be=(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_APIKEY,{url:me,name:"UnraidRegistrationWizard",width:600,height:810}),ye={errorMessage:"",errorMessageSubtext:"",loading:!0,submissionFrom:null,darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"},csrf:null,postMessageError:null,isLaunchpadOpen:!1,triggerUPC:!1,ts:null,deviceCount:0,flashproduct:null,flashvendor:null,guid:"",regGuid:"",keyfile:null,servername:null,serverdesc:null,wanip:sessionStorage.getItem("upc_wanip")||null,site:null,wanFQDN:null,state:"",reggen:0,registered:null,internalip:null,internalport:null,protocol:null,license:"",expiretime:null,regWizTime:null,rawServerState:null,plgPath:null,guidRegistered:!1,guidValid:null,guidValidationRunning:!1,replaceable:null,guidForValidation:null,guidBlacklisted:null,id:null,isPopUpOpen:!1,popUpWindow:"",regAtOpen:null,forumaccount:null,userEmail:"",username:"",avatar:"",userPassword:"",apikey:"",ipsValidated:!1,accountAction:null,keyServerAction:"",licenseAction:null,receivedSuccessNewServerState:null,purchaseWindow:{url:new URL(ge),name:"UnraidPurchaseLicense",width:1198,height:900,sendSessionToPopUp:!0},redeemWindow:{url:new URL(ge+"?r=1"),name:"UnraidPurchaseLicense",width:1198,height:900,sendSessionToPopUp:!0},wizardWindow:be,signInPayload:{...be,url:be.url+"/#/sign-in"},signUpPayload:{...be,url:be.url+"/#/sign-up"},signOutPayload:{...be,url:be.url+"/#/sign-out",width:600,height:500},extendTrialPayload:{...be,url:be.url+"/#/extend-trial"},recoverKeyPayload:{...be,url:be.url+"/#/recover-key"},replaceKeyPayload:{...be,url:be.url+"/#/replace-key"},troubleshootPayload:{...be,url:be.url+"/#/troubleshoot"},locale:"en_US",messages:null,graphOnline:!1,graphReconnected:!1,myServers:[],myServersLoading:!1,myServersError:null,myServersErrorShowSupportBtn:!1,myServersEnv:null,apiVersion:null,myServersCloud:null,hideMyServers:!1,osVersion:null,plgVersion:null,hasRemoteApikey:null,config:null,hasUnraidNetSSL:!1,flashBackupEnabled:!1,extraOrigins:[],myServersOutage:{enabled:!0,message:{heading:"My Servers Update",main:"Please update to the latest version of the My Servers plugin",link:"/Plugins",linkSameTab:!0}},devEnv:!1,signOutTriggered:!1,apiReport:null};var we=r("6ddc"),xe=r.n(we);const _e="GUID_NOT_RECEIVED",Ee=!(!window.opener||window.opener===window),Se=Ee?window.opener.parent:window.parent,ke=[ge,me,"https://launchpad.unraid.test:8081","https://launchpad.unraid.test:6969","https://registration.unraid.net","https://registration-dev.unraid.net","https://unraid.net","https://staging.unraid.net","https://craft.unraid.test"],Oe='API error unexpected response for "owner".',Te=e=>{try{return[null,JSON.parse(e)]}catch(e){return[e]}},Ie={actions:[],humanReadable:"",heading:"",message:"",messageCenter:!1,error:!1,withKey:!1},Ae={...Ie,humanReadable:fe.tc("stateData.ENOFLASH.humanReadable"),error:{heading:fe.tc("stateData.ENOFLASH.error.heading"),message:fe.tc("stateData.ENOFLASH.error.message"),signInToFix:!1}};let Re="";const Ce={statePhpPath:e=>`/plugins/${e.plgPath||"dynamix.unraid.net"}/include/state.php`,myServersCfgPath:e=>(e.plgPath||"Unraid.net")+"/myservers.cfg",requireGuidValidation:e=>!Ee||e.guidRegistered,validApiKeyLength:e=>64===e.apikey.length,validApiKeyForUpc:e=>!!e.apikey&&e.apikey.startsWith("unupc_"),showExpiretime:e=>("TRIAL"===e.state||"EEXPIRED"===e.state)&&e.expiretime>0,trialExtensionEligible:e=>!(e.reggen&&!(e.reggen<2)),signedOutWithKey:(e,t)=>!(!t.stateData.withKey||e.registered),stateData:(e,t)=>{switch(e.state){case"ENOKEYFILE":return{...Ie,actions:[e.registered?"signOut":"register"],humanReadable:fe.tc("stateData.ENOKEYFILE.humanReadable"),heading:e.registered?fe.tc("stateData.ENOKEYFILE.heading.registered"):fe.tc("stateData.ENOKEYFILE.heading.notRegistered"),message:e.registered?fe.tc("stateData.ENOKEYFILE.message.registered"):fe.tc("stateData.ENOKEYFILE.message.notRegistered"),messageCenter:!0};case"TRIAL":return{...Ie,actions:[e.registered?"signOut":"register",e.registered?"purchase":null,e.registered?"continueTrial":null],humanReadable:fe.tc("stateData.TRIAL.humanReadable"),heading:fe.tc("stateData.TRIAL.heading"),message:fe.tc("stateData.TRIAL.message"),withKey:!0};case"EEXPIRED":return{...Ie,actions:[e.registered?"signOut":"register",e.registered&&t.trialExtensionEligible?"extend":null,e.registered?"purchase":null],humanReadable:fe.tc("stateData.EEXPIRED.humanReadable"),error:{heading:fe.tc("stateData.EEXPIRED.heading"),message:t.trialExtensionEligible?fe.tc("stateData.EEXPIRED.message.extensionEligible"):fe.tc("stateData.EEXPIRED.message.extensionNotEligible")},withKey:!0};case"BASIC":return{...Ie,actions:[e.registered?"signOut":"register",e.registered&&t.requireGuidValidation?"upgrade":null],humanReadable:fe.tc("stateData.BASIC.humanReadable"),heading:fe.tc("basicPlusPro.heading"),message:e.registered?e.guidRegistered?fe.tc("basicPlusPro.message.upgradeEligible"):"":fe.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"PLUS":return{...Ie,actions:[e.registered?"signOut":"register",e.registered&&t.requireGuidValidation?"upgrade":null],humanReadable:fe.tc("stateData.PLUS.humanReadable"),heading:fe.tc("basicPlusPro.heading"),message:e.registered?e.guidRegistered?fe.tc("basicPlusPro.message.upgradeEligible"):"":fe.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"PRO":return{...Ie,actions:[e.registered?"signOut":"register",e.registered?"close":null],humanReadable:fe.tc("stateData.PRO.humanReadable"),heading:fe.tc("basicPlusPro.heading"),message:e.registered?"":fe.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"EGUID":return null===e.replaceable&&(Re=fe.tc("stateData.EGUID.error.message.replacementEligible")),e.replaceable&&(Re=fe.tc("stateData.EGUID.error.message.replacementEligible")),!1===e.replaceable&&e.guidBlacklisted&&(Re=fe.tc("stateData.EGUID.error.message.default")+'
Your Unraid registration key is ineligible for replacement as it is blacklisted.'),!1===e.replaceable&&!1===e.guidBlacklisted&&(Re=`${fe.tc("stateData.EGUID.error.message.default")}
${fe.tc("stateData.EGUID.error.message.replacementIneligible")}`),{...Ie,actions:[e.registered?"signOut":"register",e.registered?"purchase":null,e.registered?"replace":null],humanReadable:fe.tc("stateData.EGUID.humanReadable"),error:{heading:fe.tc("stateData.EGUID.error.heading"),message:Re,signInToFix:!0}};case"EGUID1":return{...Ie,actions:[e.registered?"signOut":"register",e.registered?"purchase":null],humanReadable:fe.tc("stateData.EGUID1.humanReadable"),error:{heading:fe.tc("stateData.EGUID1.error.heading"),message:fe.tc("stateData.EGUID1.error.message"),signInToFix:!0}};case"ENOKEYFILE2":return{...Ie,actions:[e.registered?"signOut":"register",e.registered?"purchase":null,e.registered&&t.requireGuidValidation?"recover":null],humanReadable:fe.tc("stateData.ENOKEYFILE2.humanReadable"),error:{heading:fe.tc("stateData.ENOKEYFILE2.error.heading"),message:fe.tc("stateData.ENOKEYFILE2.error.message"),signInToFix:!0}};case"ETRIAL":return{...Ie,actions:[e.registered?"signOut":"register",e.registered&&t.requireGuidValidation?"purchase":null],humanReadable:fe.tc("stateData.ETRIAL.humanReadable"),error:{heading:fe.tc("stateData.ETRIAL.error.heading"),message:fe.tc("stateData.ETRIAL.error.message"),signInToFix:!0}};case"ENOKEYFILE1":return{...Ie,humanReadable:fe.tc("stateData.ENOKEYFILE1.humanReadable"),error:{heading:fe.tc("stateData.ENOKEYFILE1.error.heading"),message:fe.tc("stateData.ENOKEYFILE1.error.message"),signInToFix:!1}};case"ENOFLASH":case"ENOFLASH1":case"ENOFLASH2":case"ENOFLASH3":case"ENOFLASH4":case"ENOFLASH5":case"ENOFLASH6":case"ENOFLASH7":return Ae;case"EBLACKLISTED":return{...Ie,humanReadable:fe.tc("stateData.EBLACKLISTED.humanReadable"),error:{heading:fe.tc("stateData.EBLACKLISTED.error.heading"),message:fe.tc("stateData.EBLACKLISTED.error.message"),signInToFix:!1}};case"EBLACKLISTED1":return{...Ie,humanReadable:fe.tc("stateData.EBLACKLISTED1.humanReadable"),error:{heading:fe.tc("stateData.EBLACKLISTED1.error.heading"),message:fe.tc("stateData.EBLACKLISTED1.error.message"),signInToFix:!1}};case"EBLACKLISTED2":return{...Ie,humanReadable:fe.tc("stateData.EBLACKLISTED2.humanReadable"),error:{heading:fe.tc("stateData.EBLACKLISTED2.error.heading"),message:fe.tc("stateData.EBLACKLISTED2.error.message"),signInToFix:!1}};case"ENOCONN":return{...Ie,humanReadable:fe.tc("stateData.ENOCONN.humanReadable"),error:{heading:fe.tc("stateData.ENOCONN.error.heading"),message:fe.tc("stateData.ENOCONN.error.message"),signInToFix:!1}};case"STALE":return{...Ie,humanReadable:fe.tc("stateData.STALE.humanReadable"),error:{heading:fe.tc("stateData.STALE.error.heading"),message:fe.tc("stateData.STALE.error.message"),signInToFix:!1}};default:return{...Ie}}},stateDataKeyActions:(e,t)=>!!(t.stateData.actions.includes("purchase")||t.stateData.actions.includes("upgrade")||t.stateData.actions.includes("recover")||t.stateData.actions.includes("replace")||t.stateData.actions.includes("extend")),keyTypeForPurchase:e=>{switch(e.state){case"BASIC":return"Basic";case"PLUS":return"Plus";case"PRO":return"Pro";default:return"Trial"}},isRemoteAccess:e=>e.wanFQDN||e.site&&e.site.includes("www.")&&e.site.includes("unraid.net"),noRemoteApikeyRegisteredWithPlg:e=>!(!e.registered||e.hideMyServers||"boolean"!=typeof e.hasRemoteApikey||e.hasRemoteApikey),errorTooManyDisks:e=>!(!e.config||e.config.valid||"INVALID"!==e.config.error),errorCertRequiresSignIn:(e,t)=>!(!(e.osVersion&&e.osVersion.includes("6.10.")&&e.hasUnraidNetSSL)||e.registered||t.stateData.error||"ENOKEYFILE"===e.state),allowedOrigins:e=>[...ke,...e.extraOrigins],myServersOutage:e=>({...e.apiVersion&&xe()(e.apiVersion,"2.36.3")&&!e.devMode&&!e.hideMyServers?e.myServersOutage:{enabled:!1}}),server:(e,t)=>({guid:e.guid||_e,regGuid:e.regGuid,guidRegistered:e.guidRegistered||e.regWizTime,guidValid:e.guidValid,hasRemoteApikey:e.hasRemoteApikey,regWizTime:e.regWizTime,keyfile:e.keyfile,keyTypeForPurchase:t.keyTypeForPurchase,flashproduct:e.flashproduct,flashvendor:e.flashvendor,servername:e.servername,serverdesc:e.serverdesc,internalip:e.internalip,site:e.site,wanFQDN:e.wanFQDN,state:e.state,internalport:e.internalport,protocol:e.protocol,registered:e.registered,reggen:e.reggen,userEmail:e.userEmail,expiretime:e.expiretime,ts:e.ts,locale:e.locale,deviceCount:e.deviceCount,plgPath:e.plgPath,plgVersion:e.plgVersion,osVersion:e.osVersion,apiVersion:e.apiVersion,extraOrigins:e.extraOrigins,errorMessage:!t.stateData.error&&e.myServersErrorShowSupportBtn?e.myServersError:null,apiReport:e.apiReport})};var Ne=r("786a"),De=r.n(Ne),Pe=r("626e");const Me=((e,t)=>{void 0===t&&(t={keys:[],values:[]});const r=t.keys,n=void 0===r?[]:r,i=t.values,o=void 0===i?[]:i,a=(e,t)=>{const r=Pe.key(e)||Pe.value(t),i=n.some(t=>t.test(e))||o.some(e=>e.test(t));return r||i};return{map:t=>De.a.default(t).map(t=>!!a((void 0).key,t)&&(void 0).update(e)),forEach:t=>{De.a.default(t).forEach(t=>{a((void 0).key,t)&&(void 0).update(e)})}}})("[REDACTED]",{keys:["guid"],values:[]}),Le={...Object.fromEntries(Object.entries(console).map(([e,t])=>{if("debug"===e)return[e,()=>{}];if("function"==typeof method){const r=t.bind(console);return[e,(e,...t)=>t.length>=1?r(e,...t.map(e=>Me.map(e))):r(e)]}return[e,t]}))},Ue={SET_APP_ERROR_MESSAGE(e,t){const[r,n]=Te(t);n&&!r||!t||(e.errorMessage=t),n||!1!==t&&""!==t||(e.errorMessage=""),n&&n.error&&(e.errorMessage=n.error),e.errorMessage&&Le.error("[APP_ERROR]: %s",e.errorMessage)},SET_APP_ERROR_MESSAGE_SUBTEXT(e,t){e.errorMessageSubtext=t,e.errorMessageSubtext&&Le.error("[APP_ERROR]: %s",e.errorMessageSubtext)},SET_LOADING_STATE(e,t){Le.debug("[SET_LOADING_STATE]: %o",t),e.loading=t},SET_IS_LAUNCHPAD_OPEN(e,t){Le.debug("[SET_IS_LAUNCHPAD_OPEN]: %o",t),e.isLaunchpadOpen=t},SET_STATE(e,t){Le.debug("[SET_STATE]: %o",t),e.state=t},SET_CONFIG(e,t){Le.debug("[SET_CONFIG]: %o",t),e.config=t},CHANGE_GUID_REGISTERED(e,t){Le.debug("[CHANGE_GUID_REGISTERED]: %o",t),e.guidRegistered=t},CHANGE_GUID_VALID(e,t){Le.debug("[CHANGE_GUID_VALID]: %o",t),e.guidValid=t},CHANGE_GUID_VALIDATION_RUNNING(e,t){Le.debug("[CHANGE_GUID_VALIDATION_RUNNING]: %o",t),e.guidValidationRunning=t},CHANGE_GUID_FOR_VALIDATION(e,t){Le.debug("[CHANGE_GUID_FOR_VALIDATION]: %o",t),e.guidForValidation=t},CHANGE_GUID_BLACKLISTED(e,t){Le.debug("[CHANGE_GUID_BLACKLISTED]: %o",t),e.guidBlacklisted=t},CHANGE_REPLACEABLE(e,t){Le.debug("[CHANGE_REPLACEABLE]: %o",t),e.replaceable=t},CHANGE_POP_UP_WINDOW(e,t){Le.debug("[CHANGE_POP_UP_WINDOW]: %o",t),e.popUpWindow=t,e.isPopUpOpen=!!t,e.regAtOpen=null},STATE_AT_OPEN(e,t){e.regAtOpen=t},MUTATE_KEYSERVER_RESPONSE(e,t){Le.debug("[MUTATE_KEYSERVER_RESPONSE]: %o",t),t.license&&(e.license=t.license),t.trial&&(e.keyfile=t.trial),t.apikey&&(e.apikey=t.apikey),t.validated&&(e.ipsValidated=t.validated),t.email&&(e.userEmail=t.email),t.password&&(e.userPassword=t.password),(t.action||t.keyServerAction)&&(e.keyServerAction=t.action||t.keyServerAction),t.username&&(e.username=t.username),t.avatar&&(e.avatar=t.avatar)},SET_TRIAL(e,t){Le.debug("[SET_TRIAL]: %o",t),e.license=t.license,e.keyfile=t.trial,e.keyServerAction="extendTrial"},SET_USER_EMAIL(e,t){Le.debug("[SET_USER_EMAIL]: %s",t),e.userEmail=t},SET_FULL_SERVER_STATE(e,t){if(Le.debug("[SET_FULL_SERVER_STATE] start %o",t),!t)return Le.error("[SET_FULL_SERVER_STATE] No state data…🤬");let r=t;return(r.registered||0===r.registered)&&(r.registered=Boolean(Number(r.registered))),(r.hasRemoteApikey||0===r.hasRemoteApikey)&&(r.hasRemoteApikey=Boolean(Number(r.hasRemoteApikey))),r.email&&(r={...r,userEmail:r.email},delete r.email),Le.debug("[SET_FULL_SERVER_STATE] ✨ mutateData ✨ %o",{state:e,mutateData:r}),e=Object.assign(e,r),!0},SET_RAW_SERVER_STATE:(e,t)=>Ee?(e.rawServerState=t,Le.debug("[SET_RAW_SERVER_STATE] %o",t)):Le.debug("[SET_RAW_SERVER_STATE] ❌ skipped not needed in non-pop-up ❌ %o",{CAN_POST_MESSAGE:Ee}),SIGN_OUT(e){Le.debug("[SIGN_OUT]: %s","✨"),e.registered=!1,e.license="",e.keyfile="",e.apikey="",e.ipsValidated=!1,e.userEmail="",e.userPassword="",e.username="",e.avatar=""},SUBMISSION_FROM(e,t){Le.debug("[SUBMISSION_FROM]: %s",t),e.submissionFrom=t},SET_WANIP(e,t){Le.debug("[SET_WANIP]: %s",t),e.wanip=t,sessionStorage.setItem("upc_wanip",t)},SET_SERVERDESC(e,t){Le.debug("[SET_SERVERDESC]: %s",t),e.serverdesc=t},SET_SITE(e,t){Le.debug("[SET_SITE]: %s",t),e.site=t},SET_CSRF(e,t){Le.debug("[SET_CSRF]: %s",t),e.csrf=t},LICENSE_PINGBACK(e,t){Le.debug("[LICENSE_PINGBACK]: %o",t),e.licenseAction=t},ACCOUNT_PINGBACK(e,t){Le.debug("[ACCOUNT_PINGBACK]: %o",t),e.accountAction=t},RECEIVED_SUCCESS_NEW_SERVERSTATE(e,t){Le.debug("[RECEIVED_SUCCESS_NEW_SERVERSTATE]: %o",t),e.receivedSuccessNewServerState=t},SET_UPTIME(e,t){Le.debug("[SET_UPTIME]: %s",t),e.uptime=t},SET_EXPIRE_TIME(e,t){Le.debug("[SET_EXPIRE_TIME]: %s",t),e.expiretime=t},SET_REGWIZ_TIME(e,t){Le.debug("[SET_REGWIZ_TIME]: %s",t),e.regWizTime=t},CHANGE_GUID_FORUMACCOUNT(e,t){Le.debug("[CHANGE_GUID_FORUMACCOUNT]: %s",t),e.forumaccount=t},SET_LOCALE(e,t){Le.debug("[SET_LOCALE]: %s",t),e.locale=t},LOCALE_MESSAGES(e,t){const[r,n]=Te(decodeURIComponent(t));r?Le.warn("[LOCALE_MESSAGES]: %o",r):(Le.debug("[LOCALE_MESSAGES]: %o",n),e.messages=n)},SET_API_KEY(e,t){Le.debug("[SET_API_KEY]: %s",t),e.apikey=t},SET_GRAPH_ONLINE(e,t){Le.debug("[SET_GRAPH_ONLINE]: %o",t),e.graphOnline=t},SET_GRAPH_RECONNECTED(e,t){Le.debug("[SET_GRAPH_RECONNECTED]: %o",t),e.graphReconnected=t},SET_MY_SERVERS(e,t){Le.debug("[SET_MY_SERVERS]: %o",t),e.myServers=[...t]},SET_MY_SERVERS_LOADING(e,t){Le.debug("[SET_MY_SERVERS_LOADING]: %o",t),e.myServersLoading=t},SET_MY_SERVERS_ERROR(e,t){t?Le.error("[SET_MY_SERVERS_ERROR]: %o",t):Le.debug("[SET_MY_SERVERS_ERROR] unset"),e.myServersError=t?t.replace("Graphql","unraid-api").replace("offline","stopped"):null},SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN(e,t){Le.debug("[SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN]",t),e.myServersErrorShowSupportBtn=t},SET_MY_SERVERS_ENV(e,t){Le.debug("[SET_MY_SERVERS_ENV]: %o",t),e.myServersEnv=t},SET_MY_SERVERS_API_VERSION(e,t){Le.debug("[SET_MY_SERVERS_API_VERSION]: %o",t),e.apiVersion=t},TRIGGER_UPC(e,t){Le.debug("[TRIGGER_UPC]: %o",t),e.triggerUPC=t},SET_HIDE_MY_SERVERS(e,t){Le.debug("[SET_HIDE_MY_SERVERS]: %o",t),e.hideMyServers=!!t},SET_PLG_PATH:(e,t)=>"dynamix.my.servers"!==t?Le.warn("[SET_PLG_PATH] value not allowed",t):(Le.debug("[SET_PLG_PATH]: %o",t),e.plgPath=t,!0),SET_POST_MESSAGE_ERROR(e,t){e.postMessageError=t,e.postMessageError&&Le.error("[SET_POST_MESSAGE_ERROR]: %o",e.postMessageError)},SET_OWNER(e,t){Le.debug("[SET_OWNER]: %o",t),e.username=t&&t.username?t.username:"",e.avatar=t&&t.avatar?t.avatar:"",e.registered=!(!t||!t.username)},SET_REGISTRATION_SUB(e,t){Le.debug("[SET_REGISTRATION_SUB]: %o",t),t.keyfile&&(e.keyfile=t.keyFile.contents),t.expiration&&(e.expiretime=t.expiration)},SET_DEV_MODE(e,t){Le.debug("[SET_DEV_MODE]: %o",t),e.devEnv=t},SET_SIGN_OUT_TRIGGERED(e,t){Le.debug("[SET_SIGN_OUT_TRIGGERED]: %o",t),e.signOutTriggered=t},SET_API_EXECUTE_RESPONSE(e,t){Le.debug("[SET_API_EXECUTE_RESPONSE]: %o",t),e.apiReport=t},SET_MY_SERVERS_CLOUD(e,t){Le.debug("[SET_MY_SERVERS_CLOUD]: %o",t),e.myServersCloud=t}};var je=function(){return(je=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,Ve.a&&(e.prototype[Ve.a]=t)}function ze(e){return(ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Be(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index120){for(var d=Math.floor(c/80),f=c%80,h=[],m=0;m0||$e(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||$e(0,"column in locationOffset is 1-indexed and must be positive")};!function(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}(Je);var Ze=r("04b4"),et=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function tt(){return this.lastToken=this.token,this.token=this.lookahead()}function rt(){var e=this.token;if(e.kind!==et.EOF)do{e=e.next||(e.next=ot(this,e))}while(e.kind===et.COMMENT);return e}function nt(e,t,r,n,i,o,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=o,this.next=null}function it(e){return isNaN(e)?et.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function ot(e,t){var r=e.source,n=r.body,i=n.length,o=function(e,t,r){var n=e.length,i=t;for(;i=i)return new nt(et.EOF,i,i,a,s,t);var c=n.charCodeAt(o);switch(c){case 33:return new nt(et.BANG,o,o+1,a,s,t);case 35:return function(e,t,r,n,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new nt(et.COMMENT,t,s,r,n,i,a.slice(t+1,s))}(r,o,a,s,t);case 36:return new nt(et.DOLLAR,o,o+1,a,s,t);case 38:return new nt(et.AMP,o,o+1,a,s,t);case 40:return new nt(et.PAREN_L,o,o+1,a,s,t);case 41:return new nt(et.PAREN_R,o,o+1,a,s,t);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new nt(et.SPREAD,o,o+3,a,s,t);break;case 58:return new nt(et.COLON,o,o+1,a,s,t);case 61:return new nt(et.EQUALS,o,o+1,a,s,t);case 64:return new nt(et.AT,o,o+1,a,s,t);case 91:return new nt(et.BRACKET_L,o,o+1,a,s,t);case 93:return new nt(et.BRACKET_R,o,o+1,a,s,t);case 123:return new nt(et.BRACE_L,o,o+1,a,s,t);case 124:return new nt(et.PIPE,o,o+1,a,s,t);case 125:return new nt(et.BRACE_R,o,o+1,a,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,r,n,i){var o=e.body,a=o.length,s=t+1,c=0;for(;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new nt(et.NAME,t,s,r,n,i,o.slice(t,s))}(r,o,a,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,n,i,o){var a=e.body,s=r,c=t,u=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw Ke(e,c,"Invalid number, unexpected digit after 0: ".concat(it(s),"."))}else c=at(e,c,s),s=a.charCodeAt(c);if(46===s&&(u=!0,s=a.charCodeAt(++c),c=at(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=at(e,c,s),s=a.charCodeAt(c)),46===s||69===s||101===s)throw Ke(e,c,"Invalid number, expected digit but got: ".concat(it(s),"."));return new nt(u?et.FLOAT:et.INT,t,c,n,i,o,a.slice(t,c))}(r,o,c,a,s,t);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?function(e,t,r,n,i,o){var a=e.body,s=t+3,c=s,u=0,l="";for(;s=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw Ke(e,i,"Invalid number, expected digit but got: ".concat(it(o),"."))}function st(e,t,r,n){return ct(e)<<12|ct(t)<<8|ct(r)<<4|ct(n)}function ct(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}Ge(nt,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));var ut=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});var lt=function(){function e(e,t){var r="string"==typeof e?new Je(e):e;r instanceof Je||$e(0,"Must provide Source. Received: ".concat(Object(Fe.a)(r))),this._lexer=function(e,t){var r=new nt(et.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:r,token:r,line:1,lineStart:0,advance:tt,lookahead:rt}}(r),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(et.NAME);return{kind:Xe.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:Xe.a.DOCUMENT,definitions:this.many(et.SOF,this.parseDefinition,et.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(et.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(et.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(et.BRACE_L))return{kind:Xe.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,r=this.parseOperationType();return this.peek(et.NAME)&&(t=this.parseName()),{kind:Xe.a.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(et.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(et.PAREN_L,this.parseVariableDefinition,et.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:Xe.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(et.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(et.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(et.DOLLAR),{kind:Xe.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:Xe.a.SELECTION_SET,selections:this.many(et.BRACE_L,this.parseSelection,et.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(et.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(et.COLON)?(e=n,t=this.parseName()):t=n,{kind:Xe.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(et.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(et.PAREN_L,t,et.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(et.COLON),{kind:Xe.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:Xe.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(et.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(et.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(et.NAME)?{kind:Xe.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:Xe.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:Xe.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:Xe.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case et.BRACKET_L:return this.parseList(e);case et.BRACE_L:return this.parseObject(e);case et.INT:return this._lexer.advance(),{kind:Xe.a.INT,value:t.value,loc:this.loc(t)};case et.FLOAT:return this._lexer.advance(),{kind:Xe.a.FLOAT,value:t.value,loc:this.loc(t)};case et.STRING:case et.BLOCK_STRING:return this.parseStringLiteral();case et.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:Xe.a.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:Xe.a.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:Xe.a.ENUM,value:t.value,loc:this.loc(t)});case et.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:Xe.a.STRING,value:e.value,block:e.kind===et.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:Xe.a.LIST,values:this.any(et.BRACKET_L,(function(){return t.parseValueLiteral(e)}),et.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:Xe.a.OBJECT,fields:this.any(et.BRACE_L,(function(){return t.parseObjectField(e)}),et.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(et.COLON),{kind:Xe.a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(et.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(et.AT),{kind:Xe.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(et.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(et.BRACKET_R),e={kind:Xe.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(et.BANG)?{kind:Xe.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:Xe.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===et.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(et.STRING)||this.peek(et.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.many(et.BRACE_L,this.parseOperationTypeDefinition,et.BRACE_R);return{kind:Xe.a.SCHEMA_DEFINITION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(et.COLON);var r=this.parseNamedType();return{kind:Xe.a.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:Xe.a.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Xe.a.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(et.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(et.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(et.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(et.BRACE_L)&&this._lexer.lookahead().kind===et.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(et.BRACE_L,this.parseFieldDefinition,et.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(et.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:Xe.a.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(et.PAREN_L,this.parseInputValueDef,et.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(et.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(et.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:Xe.a.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:Xe.a.INTERFACE_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:Xe.a.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(et.EQUALS)){this.expectOptionalToken(et.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(et.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:Xe.a.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(et.BRACE_L,this.parseEnumValueDefinition,et.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:Xe.a.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:Xe.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(et.BRACE_L,this.parseInputValueDef,et.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===et.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(et.BRACE_L,this.parseOperationTypeDefinition,et.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:Xe.a.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:Xe.a.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:Xe.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Xe.a.INTERFACE_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Xe.a.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Xe.a.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Xe.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(et.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:Xe.a.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(et.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(et.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==ut[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new pt(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw Ke(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(dt(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==et.NAME||t.value!==e)throw Ke(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(dt(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===et.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return Ke(this._lexer.source,t.start,"Unexpected ".concat(dt(t)))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n},e}();function pt(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function dt(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}Ge(pt,(function(){return{start:this.start,end:this.end}}));var ft=new Map,ht=new Map,mt=!0,gt=!1;function vt(e){return e.replace(/[\s,]+/g," ").trim()}function bt(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=function(e){return vt(e.source.body.substring(e.start,e.end))}(e.loc),o=ht.get(n);o&&!o.has(i)?mt&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||ht.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e)})),je(je({},e),{definitions:r})}function yt(e){var t=vt(e);if(!ft.has(t)){var r=function(e,t){return new lt(e,t).parseDocument()}(e,{experimentalFragmentVariables:gt});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");ft.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(bt(r)))}return ft.get(t)}function wt(e){for(var t=[],r=1;r0}var Xt,Jt=function(e){function t(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,a=r.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,s.message=o||function(e){var t="";return Kt(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"})),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=t.prototype,s}return Object(At.c)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(Xt||(Xt={}));var Zt=function(e){function t(t){var r=t.queryManager,n=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=n,a.variables=n.variables||{},a.queryId=r.generateQueryId(),a.shouldSubscribe=o;var s=Object(Rt.m)(n.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=r,a}return Object(At.c)(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=e.subscribe(n)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:Wt.error}}var t,r=this.queryManager.getCurrentQueryResult(this),n=r.data,i=r.partial,o=this.queryManager.queryStore.get(this.queryId),a=this.options.fetchPolicy,s="network-only"===a||"no-cache"===a;if(o){var c=o.networkStatus;if(function(e,t){return void 0===t&&(t="none"),e&&(e.networkError||"none"===t&&Kt(e.graphQLErrors))}(o,this.options.errorPolicy))return{data:void 0,loading:!1,networkStatus:c,error:new Jt({graphQLErrors:o.graphQLErrors,networkError:o.networkError})};o.variables&&(this.options.variables=Object(At.a)(Object(At.a)({},this.options.variables),o.variables),this.variables=this.options.variables),t={data:n,loading:Ht(c),networkStatus:c},o.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=o.graphQLErrors)}else{var u=s||i&&"cache-only"!==a;t={data:n,loading:u,networkStatus:u?Wt.loading:Wt.ready}}return i||this.updateLastResult(Object(At.a)(Object(At.a)({},t),{stale:!1})),Object(At.a)(Object(At.a)({},t),{partial:i})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(Ct.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new Pt.a(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(Ct.a)(this.variables,e)||(this.variables=Object(At.a)(Object(At.a)({},this.variables),e)),Object(Ct.a)(this.options.variables,this.variables)||(this.options.variables=Object(At.a)(Object(At.a)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(At.a)(Object(At.a)({},this.options),{fetchPolicy:t}),Xt.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(Pt.b)(e.updateQuery,2);var r=Object(At.a)(Object(At.a)({},e.query?e:Object(At.a)(Object(At.a)(Object(At.a)({},this.options),e),{variables:Object(At.a)(Object(At.a)({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,Xt.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:r.variables})})),t.queryManager.stopQuery(n),i}),(function(e){throw t.queryManager.stopQuery(n),e}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(At.a)(Object(At.a)({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r=e.fetchPolicy;return this.setVariables(this.options.variables,t!==r&&("cache-only"===t||"standby"===t||"network-only"===r),e.fetchResults)},t.prototype.setVariables=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(Ct.a)(e,this.variables)?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,o=r.document,a=Object(Rt.I)((function(){return e(n,{variables:i})}));a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){rr(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(Rt.f)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;r&&!r.error&&(r.error=er)}catch(e){}var n=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),n&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,r=this.queryId;this.shouldSubscribe&&t.addObservableQuery(r,this),this.options.pollInterval&&(rr(this),t.startPollingQuery(this.options,r));var n=function(t){e.updateLastResult(Object(At.a)(Object(At.a)({},e.lastResult),{errors:t.graphQLErrors,networkStatus:Wt.error,loading:!1})),tr(e.observers,"error",e.lastError=t)};t.observeQuery(r,this.options,{next:function(r){if(e.lastError||e.isDifferentFromLastResult(r)){var n=e.updateLastResult(r),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then((function(i){var a=e.variables;e.variables=e.options.variables=i,!r.loading&&n&&"cache-only"!==s&&t.transform(o).serverQuery&&!Object(Ct.a)(a,i)?e.refetch():tr(e.observers,"next",r)})):tr(e.observers,"next",r)}},error:n}).catch(n)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(Yt);function er(e){}function tr(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function rr(e){var t=e.options.fetchPolicy;Object(Pt.b)("cache-first"!==t&&"cache-only"!==t,3)}var nr=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),ir=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(Pt.b)(!t||t.document===e.document||Object(Ct.a)(t.document,e.document),19);var r,n=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==Wt.loading&&(Object(Ct.a)(t.variables,e.variables)||(n=!0,i=t.variables)),r=n?Wt.setVariables:e.isPoll?Wt.poll:e.isRefetch?Wt.refetch:Wt.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:r,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=Wt.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=Kt(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=Wt.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=Wt.ready))},e.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=Wt.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},e.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];r&&(r.networkError=null,r.previousVariables=null,t&&(r.networkStatus=Wt.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(r){e.indexOf(r)<0?t.stopQuery(r):t.store[r].networkStatus=Wt.loading}))},e}();var or=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(Rt.A)(t.resolvers,e)})):this.resolvers=Object(Rt.A)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return Object(At.b)(this,void 0,void 0,(function(){return Object(At.d)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then((function(e){return Object(At.a)(Object(At.a)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(Rt.s)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(Rt.C)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(At.a)(Object(At.a)({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(Pt.b)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(At.b)(this,void 0,void 0,(function(){return Object(At.d)(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(At.a)(Object(At.a)({},t),e.exportedVariables)}))]:[2,Object(At.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(Qt.b)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return Qt.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(Rt.d)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,i,o){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Object(At.b)(this,void 0,void 0,(function(){var a,s,c,u,l,p,d,f,h;return Object(At.d)(this,(function(m){return a=Object(Rt.l)(e),s=Object(Rt.j)(e),c=Object(Rt.g)(s),u=a.operation,l=u?function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(u):"Query",d=(p=this).cache,f=p.client,h={fragmentMap:c,context:Object(At.a)(Object(At.a)({},r),{cache:d,client:f}),variables:n,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return Object(At.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c=this;return Object(At.d)(this,(function(u){return n=r.fragmentMap,i=r.context,o=r.variables,a=[t],s=function(e){return Object(At.b)(c,void 0,void 0,(function(){var s,c;return Object(At.d)(this,(function(u){return Object(Rt.F)(e,o)?Object(Rt.t)(e)?[2,this.resolveField(e,t,r).then((function(t){var r;void 0!==t&&a.push(((r={})[Object(Rt.E)(e)]=t,r))}))]:(Object(Rt.v)(e)?s=e:(s=n[e.name.value],Object(Pt.b)(s,7)),s&&s.typeCondition&&(c=s.typeCondition.name.value,r.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(s.selectionSet,t,r).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Object(Rt.B)(a)}))]}))}))},e.prototype.resolveField=function(e,t,r){return Object(At.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c,u,l,p,d=this;return Object(At.d)(this,(function(f){return n=r.variables,i=e.name.value,o=Object(Rt.E)(e),a=i!==o,s=t[o]||t[i],c=Promise.resolve(s),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=t.__typename||r.defaultOperationType,(l=this.resolvers&&this.resolvers[u])&&((p=l[a?i:o])&&(c=Promise.resolve(p(t,Object(Rt.b)(e,n),r.context,{field:e,fragmentMap:r.fragmentMap}))))),[2,c.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?d.resolveSubSelectedArray(e,t,r):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t,r):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0})))},e}();function ar(e){var t=new Set,r=null;return new Yt((function(n){return t.add(n),r=r||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(n)&&!t.size&&r&&(r.unsubscribe(),r=null)}}))}var sr=Object.prototype.hasOwnProperty,cr=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=void 0!==r&&r,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,c=void 0!==s&&s,u=e.clientAwareness,l=void 0===u?{}:u,p=e.localState,d=e.assumeImmutableResults;this.mutationStore=new nr,this.queryStore=new ir,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(Rt.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=n,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=l,this.localState=p||new or({cache:i.getCache()}),this.ssrMode=c,this.assumeImmutableResults=!!d}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(e){e(new Pt.a(8))}))},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,c=void 0!==s&&s,u=e.update,l=e.errorPolicy,p=void 0===l?"none":l,d=e.fetchPolicy,f=e.context,h=void 0===f?{}:f;return Object(At.b)(this,void 0,void 0,(function(){var e,o,s,l=this;return Object(At.d)(this,(function(f){switch(f.label){case 0:return Object(Pt.b)(t,9),Object(Pt.b)(!d||"no-cache"===d,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,h)]:[3,2];case 1:r=f.sent(),f.label=2;case 2:return o=function(){var e={};return i&&l.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var o=n.queryName;o&&sr.call(i,o)&&(e[r]={updater:i[o],query:l.queryStore.get(r)})}})),e},this.mutationStore.initMutation(e,t,r),this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:o(),update:u,optimisticResponse:n}),this.broadcastQueries(),s=this,[2,new Promise((function(i,l){var f,m;s.getObservableFromLink(t,Object(At.a)(Object(At.a)({},h),{optimisticResponse:n}),r,!1).subscribe({next:function(n){Object(Rt.q)(n)&&"none"===p?m=new Jt({graphQLErrors:n.errors}):(s.mutationStore.markMutationResult(e),"no-cache"!==d&&s.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:o(),update:u}),f=n)},error:function(t){s.mutationStore.markMutationError(e,t),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),s.setQuery(e,(function(){return{document:null}})),l(new Jt({networkError:t}))},complete:function(){if(m&&s.mutationStore.markMutationError(e,m),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),m)l(m);else{"function"==typeof a&&(a=a(f));var t=[];Kt(a)&&a.forEach((function(e){if("string"==typeof e)s.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())}));else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(s.query(r))}})),Promise.all(c?t:[]).then((function(){s.setQuery(e,(function(){return{document:null}})),"ignore"===p&&f&&Object(Rt.q)(f)&&delete f.errors,i(f)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,r,n){return Object(At.b)(this,void 0,void 0,(function(){var i,o,a,s,c,u,l,p,d,f,h,m,g,v,b,y,w,x,_=this;return Object(At.d)(this,(function(E){switch(E.label){case 0:return i=t.metadata,o=void 0===i?null:i,a=t.fetchPolicy,s=void 0===a?"cache-first":a,c=t.context,u=void 0===c?{}:c,l=this.transform(t.query).document,p=this.getVariables(l,t.variables),this.transform(l).hasClientExports?[4,this.localState.addExportedVariables(l,p,u)]:[3,2];case 1:p=E.sent(),E.label=2;case 2:if(t=Object(At.a)(Object(At.a)({},t),{variables:p}),h=f="network-only"===s||"no-cache"===s,f||(m=this.dataStore.getCache().diff({query:l,variables:p,returnPartialData:!0,optimistic:!1}),g=m.complete,v=m.result,h=!g||"cache-and-network"===s,d=v),b=h&&"cache-only"!==s&&"standby"!==s,Object(Rt.s)(["live"],l)&&(b=!0),y=this.idCounter++,w="no-cache"!==s?this.updateQueryWatch(e,l,t):void 0,this.setQuery(e,(function(){return{document:l,lastRequestId:y,invalidated:!0,cancel:w}})),this.invalidate(n),this.queryStore.initQuery({queryId:e,document:l,storePreviousVariables:b,variables:p,isPoll:r===Xt.poll,isRefetch:r===Xt.refetch,metadata:o,fetchMoreForQueryId:n}),this.broadcastQueries(),b){if(x=this.fetchRequest({requestId:y,queryId:e,document:l,options:t,fetchMoreForQueryId:n}).catch((function(t){throw function(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:(y>=_.getQuery(e).lastRequestId&&(_.queryStore.markQueryError(e,t,n),_.invalidate(e),_.invalidate(n),_.broadcastQueries()),new Jt({networkError:t}))})),"cache-and-network"!==s)return[2,x];x.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!b),this.invalidate(e),this.invalidate(n),this.transform(l).hasForcedResolvers?[2,this.localState.runResolvers({document:l,remoteResult:{data:d},context:u,variables:p,onlyRunForcedResolvers:!0}).then((function(r){return _.markQueryResult(e,r,t,n),_.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:d}])}}))}))},e.prototype.markQueryResult=function(e,t,r,n){var i=r.fetchPolicy,o=r.variables,a=r.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,n,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,r){var n=this;function i(e,t){if(r[e])try{r[e](t)}catch(e){}}return function(r,o){if(n.invalidate(e,!1),r){var a=n.getQuery(e),s=a.observableQuery,c=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var l=Ht(r.networkStatus),p=s&&s.getLastResult(),d=!(!p||p.networkStatus===r.networkStatus),f=t.returnPartialData||!o&&r.previousVariables||d&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!l||f){var h=Kt(r.graphQLErrors),m=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===m&&h||r.networkError)return i("error",new Jt({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var g=void 0,v=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&n.setQuery(e,(function(){return{newData:null}})),g=o.result,v=!o.complete;else{var b=s&&s.getLastError(),y="none"!==m&&(b&&b.graphQLErrors)!==r.graphQLErrors;if(p&&p.data&&!y)g=p.data,v=!1;else{var w=n.dataStore.getCache().diff({query:c,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});g=w.result,v=!w.complete}}var x=v&&!(t.returnPartialData||"cache-only"===u),_={data:x?p&&p.data:g,loading:l,networkStatus:r.networkStatus,stale:x};"all"===m&&h&&(_.errors=r.graphQLErrors),i("next",_)}catch(e){i("error",new Jt({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache(),n=r.transformDocument(e),i=Object(Rt.D)(r.transformForLink(n)),o=this.localState.clientQuery(n),a=this.localState.serverQuery(i),s={document:n,hasClientExports:Object(Rt.r)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:Object(Rt.h)(Object(Rt.m)(n))},c=function(e){e&&!t.has(e)&&t.set(e,s)};c(e),c(n),c(o),c(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(At.a)(Object(At.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(Pt.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=Object(At.a)({},e);return new Zt({queryManager:this,options:r,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(Pt.b)(e.query,12),Object(Pt.b)("Document"===e.query.kind,13),Object(Pt.b)(!e.returnPartialData,14),Object(Pt.b)(!e.pollInterval,15),new Promise((function(r,n){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,n),i.result().then(r,n).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,r){var n=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();i&&(t=i.data)}return t},callback:function(t){n.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new Pt.a(16))}));var e=[];return this.queries.forEach((function(t,r){t.observableQuery&&e.push(r)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(r)},e.prototype.observeQuery=function(e,t,r){return this.addQueryListener(e,this.queryListenerForObserver(e,t,r)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.variables;r=this.transform(r).document,i=this.getVariables(r,i);var o=function(e){return t.getObservableFromLink(r,{},e,!1).map((function(i){if(n&&"no-cache"===n||(t.dataStore.markSubscriptionResult(i,r,e),t.broadcastQueries()),Object(Rt.q)(i))throw new Jt({graphQLErrors:i.errors});return i}))};if(this.transform(r).hasClientExports){var a=this.localState.addExportedVariables(r,i).then(o);return new Yt((function(e){var t=null;return a.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,n=r.variables,i=r.query,o=r.fetchPolicy,a=r.returnPartialData,s=e.getLastResult(),c=this.getQuery(e.queryId).newData;if(c&&c.complete)return{data:c.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:n,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),l=u.result,p=u.complete;return{data:p||a?l:void 0,partial:!p}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var r=this.getQuery(e).observableQuery;Object(Pt.b)(r,17),t=r}else t=e;var n=t.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,r){t.invalidated&&t.listeners.forEach((function(n){n&&n(e.queryStore.get(r),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var i,o=this;void 0===n&&(n=this.queryDeduplication);var a=this.transform(e).serverQuery;if(a){var s=this.inFlightLinkObservables,c=this.link,u={query:a,variables:r,operationName:Object(Rt.n)(a)||void 0,context:this.prepareContext(Object(At.a)(Object(At.a)({},t),{forceFetch:!n}))};if(t=u.context,n){var l=s.get(a)||new Map;s.set(a,l);var p=JSON.stringify(r);if(!(i=l.get(p))){l.set(p,i=ar(Bt(c,u)));var d=function(){l.delete(p),l.size||s.delete(a),f.unsubscribe()},f=i.subscribe({next:d,error:d,complete:d})}}else i=ar(Bt(c,u))}else i=Yt.of({data:{}}),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(i=function(e,t){return new Yt((function(r){var n=r.next,i=r.error,o=r.complete,a=0,s=!1,c={next:function(e){++a,new Promise((function(r){r(t(e))})).then((function(e){--a,n&&n.call(r,e),s&&c.complete()}),(function(e){--a,i&&i.call(r,e)}))},error:function(e){i&&i.call(r,e)},complete:function(){s=!0,a||o&&o.call(r)}},u=e.subscribe(c);return function(){return u.unsubscribe()}}))}(i,(function(e){return o.localState.runResolvers({document:h,remoteResult:e,context:t,variables:r})}))),i},e.prototype.fetchRequest=function(e){var t,r,n=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,c=e.fetchMoreForQueryId,u=s.variables,l=s.errorPolicy,p=void 0===l?"none":l,d=s.fetchPolicy;return new Promise((function(e,l){var f=n.getObservableFromLink(a,s.context,u),h="fetchRequest:"+o;n.fetchQueryRejectFns.set(h,l);var m=function(){n.fetchQueryRejectFns.delete(h),n.setQuery(o,(function(e){e.subscriptions.delete(g)}))},g=f.map((function(e){if(i>=n.getQuery(o).lastRequestId&&(n.markQueryResult(o,e,s,c),n.queryStore.markQueryResult(o,e,c),n.invalidate(o),n.invalidate(c),n.broadcastQueries()),"none"===p&&Kt(e.errors))return l(new Jt({graphQLErrors:e.errors}));if("all"===p&&(r=e.errors),c||"no-cache"===d)t=e.data;else{var f=n.dataStore.getCache().diff({variables:u,query:a,optimistic:!1,returnPartialData:!0}),h=f.result;(f.complete||s.returnPartialData)&&(t=h)}})).subscribe({error:function(e){m(),l(e)},complete:function(){m(),e({data:t,errors:r,loading:!1,networkStatus:Wt.ready,stale:!1})}});n.setQuery(o,(function(e){e.subscriptions.add(g)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),n=Object(At.a)(Object(At.a)({},r),t(r));this.queries.set(e,n)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(At.a)(Object(At.a)({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==Wt.ready&&t.networkStatus!==Wt.error},e.prototype.startPollingQuery=function(e,t,r){var n=this,i=e.pollInterval;if(Object(Pt.b)(i,18),!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);o||this.pollingInfoByQueryId.set(t,o={}),o.interval=i,o.options=Object(At.a)(Object(At.a)({},e),{fetchPolicy:"network-only"});var a=function(){var e=n.pollingInfoByQueryId.get(t);e&&(n.checkInFlight(t)?s():n.fetchQuery(t,e.options,Xt.poll).then(s,s))},s=function(){var e=n.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(a,e.interval))};r&&this.addQueryListener(t,r),s()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),ur=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,n,i){void 0===i&&(i=!1);var o=!Object(Rt.q)(e);i&&Object(Rt.q)(e)&&e.data&&(o=!0),!n&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){Object(Rt.q)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t,r=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(n){var i=r.cache;r.cache=n;try{r.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{r.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(Rt.q)(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.updateQueries;n&&Object.keys(n).forEach((function(i){var o=n[i],a=o.query,s=o.updater,c=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),u=c.result;if(c.complete){var l=Object(Rt.I)((function(){return s(u,{mutationResult:e.result,queryName:Object(Rt.n)(a.document)||void 0,queryVariables:a.variables})}));l&&r.push({result:l,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&Object(Rt.I)((function(){return n(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),lr=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,i=void 0!==n&&n,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,c=e.queryDeduplication,u=void 0===c||c,l=e.defaultOptions,p=e.assumeImmutableResults,d=void 0!==p&&p,f=e.resolvers,h=e.typeDefs,m=e.fragmentMatcher,g=e.name,v=e.version,b=e.link;if(!b&&f&&(b=zt.empty()),!b||!r)throw new Pt.a(4);this.link=b,this.cache=r,this.store=new ur(r),this.disableNetworkFetches=i||a>0,this.queryDeduplication=u,this.defaultOptions=l||{},this.typeDefs=h,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new or({cache:r,client:this,resolvers:f,fragmentMatcher:m}),this.queryManager=new cr({link:this.link,store:this.store,queryDeduplication:u,ssrMode:i,clientAwareness:{name:g,version:v},localState:this.localState,assumeImmutableResults:d,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(At.a)(Object(At.a)({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(At.a)(Object(At.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(At.a)(Object(At.a)({},this.defaultOptions.query),e)),Object(Pt.b)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(At.a)(Object(At.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(At.a)(Object(At.a)({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Bt(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();var pr=r("7506"),dr={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},fr=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},hr=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=new Pt.a(2);throw n.parseError=e,n}return r},mr=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.includeExtensions,o=e.useGETForQueries,a=Object(At.e)(e,["uri","fetch","includeExtensions","useGETForQueries"]);(function(e){if(!e&&"undefined"==typeof fetch)throw new Pt.a(1)})(n),n||(n=fetch);var s={http:{includeExtensions:i},options:a.fetchOptions,credentials:a.credentials,headers:a.headers};return new zt((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,r),i=e.getContext(),a={};if(i.clientAwareness){var c=i.clientAwareness,u=c.name,l=c.version;u&&(a["apollographql-client-name"]=u),l&&(a["apollographql-client-version"]=l)}var p,d=Object(At.a)({},a,i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},h=function(e,t){for(var r=[],n=2;n=300&&fr(t,r,"Response not successful: Received status code "+t.status),Array.isArray(r)||r.hasOwnProperty("data")||r.hasOwnProperty("errors")||fr(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),r}))}}(e)).then((function(e){return r.next(e),r.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))})),function(){p&&p.abort()}}))}))};var gr=function(e){function t(t){return e.call(this,mr(t).request)||this}return Object(At.c)(t,e),t}(zt);function vr(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:yr(e)}]}}function br(e,t){return{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:yr(e)}]}}function yr(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return yr(e[0]);var t=[];return Object.keys(e).forEach((function(r){var n={kind:"Field",name:{kind:"Name",value:r},selectionSet:yr(e[r])||void 0};t.push(n)})),{kind:"SelectionSet",selections:t}}var wr,xr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},_r=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(Rt.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(Rt.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t=e.id,r=e.data;if(void 0!==t){var n=null;try{n=this.read({rootId:t,optimistic:!1,query:xr})}catch(e){}var i=n&&n.__typename||"__ClientData",o=Object.assign({__typename:i},r);this.writeFragment({id:t,fragment:br(o,i),data:o})}else this.writeQuery({query:vr(r),data:r})},e}();wr||(wr={});var Er=null,Sr={},kr=1,Or="@wry/context:Slot",Tr=Array,Ir=Tr[Or]||function(){var e=function(){function e(){this.id=["slot",kr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Er;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Sr)break;return e!==Er&&(Er.slots[this.id]=t),!0}return Er&&(Er.slots[this.id]=Sr),!1},e.prototype.getValue=function(){if(this.hasValue())return Er.slots[this.id]},e.prototype.withValue=function(e,t,r,n){var i,o=((i={__proto__:null})[this.id]=e,i),a=Er;Er={parent:a,slots:o};try{return t.apply(n,r)}finally{Er=a}},e.bind=function(e){var t=Er;return function(){var r=Er;try{return Er=t,e.apply(this,arguments)}finally{Er=r}}},e.noContext=function(e,t,r){if(!Er)return e.apply(r,t);var n=Er;try{return Er=null,e.apply(r,t)}finally{Er=n}},e}();try{Object.defineProperty(Tr,Or,{value:Tr[Or]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function Ar(){}Ir.bind,Ir.noContext;var Rr=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Ar),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getEntry(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),Cr=new Ir,Nr=[],Dr=[];function Pr(e,t){if(!e)throw new Error(t||"assertion failure")}function Mr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Lr=function(){function e(t,r){this.fn=t,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(Pr(!this.recomputing,"already recomputing"),function(e){var t=Cr.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),jr(e)?Vr(t,e):Gr(t,e),t}(this)||!Br(this))return jr(this)?function(e){var t=Wr(e);return Cr.withValue(e,Ur,[e]),function(e){if("function"==typeof e.subscribe)try{Qr(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){e.dirty=!1,jr(e)||$r(e)}(e),t.forEach(Br),Mr(e.value)}(this):Mr(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Fr(this),Qr(this))},e.prototype.dispose=function(){var e=this;Wr(this).forEach(Br),Qr(this),this.parents.forEach((function(t){t.setDirty(),qr(t,e)}))},e.count=0,e}();function Ur(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function jr(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Fr(e){e.parents.forEach((function(t){return Vr(t,e)}))}function $r(e){e.parents.forEach((function(t){return Gr(t,e)}))}function Vr(e,t){if(Pr(e.childValues.has(t)),Pr(jr(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Dr.pop()||new Set;e.dirtyChildren.add(t),Fr(e)}function Gr(e,t){Pr(e.childValues.has(t)),Pr(!jr(t));var r=e.childValues.get(t);0===r.length?e.childValues.set(t,function(e){return e.slice(0)}(t.value)):function(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)||e.setDirty(),zr(e,t),jr(e)||$r(e)}function zr(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(Dr.length<100&&Dr.push(r),e.dirtyChildren=null))}function Br(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function Wr(e){var t=Nr;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(r,n){qr(e,n),t.push(n)}))),Pr(null===e.dirtyChildren),t}function qr(e,t){t.parents.delete(e),e.childValues.delete(t),zr(e,t)}function Qr(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Hr=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t}}(),Object.prototype.hasOwnProperty),rn=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=Jr((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){tn.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(r){t.set(r,e[r])})),Object.keys(this.data).forEach((function(r){tn.call(e,r)||t.delete(r)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function nn(e){return new rn(e)}var on=function(){function e(e){var t=this,r=void 0===e?{}:e,n=r.cacheKeyRoot,i=void 0===n?new Hr(Rt.e):n,o=r.freezeResults,a=void 0!==o&&o,s=this,c=s.executeStoreQuery,u=s.executeSelectionSet,l=s.executeSubSelectedArray;this.freezeResults=a,this.executeStoreQuery=Jr((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.query,r=e.rootValue,n=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(n.store instanceof rn)return i.lookup(n.store,t,a,JSON.stringify(o),r.id)}}),this.executeSelectionSet=Jr((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,r=e.rootValue,n=e.execContext;if(n.contextValue.store instanceof rn)return i.lookup(n.contextValue.store,t,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=Jr((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.execContext;if(n.contextValue.store instanceof rn)return i.lookup(n.contextValue.store,t,r,JSON.stringify(n.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(At.a)(Object(At.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,i=e.previousResult,o=e.returnPartialData,a=void 0===o||o,s=e.rootId,c=void 0===s?"ROOT_QUERY":s,u=e.fragmentMatcherFunction,l=e.config,p=Object(Rt.o)(r);n=Object(Rt.c)({},Object(Rt.h)(p),n);var d={store:t,dataIdFromObject:l&&l.dataIdFromObject,cacheRedirects:l&&l.cacheRedirects||{}},f=this.executeStoreQuery({query:r,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:d,variableValues:n,fragmentMatcher:u}),h=f.missing&&f.missing.length>0;return h&&!a&&f.missing.forEach((function(e){if(!e.tolerable)throw new Pt.a(8)})),i&&Object(Ct.a)(i,f.result)&&(f.result=i),{result:f.result,complete:!h}},e.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,a=void 0===o?sn:o,s=Object(Rt.l)(t),c=Object(Rt.j)(t),u={query:t,fragmentMap:Object(Rt.g)(c),contextValue:n,variableValues:i,fragmentMatcher:a};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:r,execContext:u})},e.prototype.executeSelectionSet=function(e){var t=this,r=e.selectionSet,n=e.rootValue,i=e.execContext,o=i.fragmentMap,a=i.contextValue,s=i.variableValues,c={result:null},u=[],l=a.store.get(n.id),p=l&&l.__typename||"ROOT_QUERY"===n.id&&"Query"||void 0;function d(e){var t;return e.missing&&(c.missing=c.missing||[],(t=c.missing).push.apply(t,e.missing)),e.result}return r.selections.forEach((function(e){var r;if(Object(Rt.F)(e,s))if(Object(Rt.t)(e)){var c=d(t.executeField(l,p,e,i));void 0!==c&&u.push(((r={})[Object(Rt.E)(e)]=c,r))}else{var f=void 0;if(Object(Rt.v)(e))f=e;else if(!(f=o[e.name.value]))throw new Pt.a(9);var h=f.typeCondition&&f.typeCondition.name.value,m=!h||i.fragmentMatcher(n,h,a);if(m){var g=t.executeSelectionSet({selectionSet:f.selectionSet,rootValue:n,execContext:i});"heuristic"===m&&g.missing&&(g=Object(At.a)(Object(At.a)({},g),{missing:g.missing.map((function(e){return Object(At.a)(Object(At.a)({},e),{tolerable:!0})}))})),u.push(d(g))}}})),c.result=Object(Rt.B)(u),this.freezeResults,c},e.prototype.executeField=function(e,t,r,n){var i=n.variableValues,o=n.contextValue,a=function(e,t,r,n,i,o){o.resultKey;var a=o.directives,s=r;(n||a)&&(s=Object(Rt.p)(s,n,a));var c=void 0;if(e&&void 0===(c=e[s])&&i.cacheRedirects&&"string"==typeof t){var u=i.cacheRedirects[t];if(u){var l=u[r];l&&(c=l(e,n,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&Object(Rt.H)({id:t,typename:e.__typename})}}))}}return void 0===c?{result:c,missing:[{object:e,fieldName:s,tolerable:!1}]}:(Object(Rt.w)(c)&&(c=c.json),{result:c})}(e,t,r.name.value,Object(Rt.b)(r,i),o,{resultKey:Object(Rt.E)(r),directives:Object(Rt.i)(r,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:r,array:a.result,execContext:n})):r.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:a.result,execContext:n})):(an(r,a.result),this.freezeResults,a)},e.prototype.combineExecResults=function(){for(var e,t=[],r=0;r=0)return!0;r[e].push(t)}else r[e]=[t];return!1}var fn={fragmentMatcher:new en,dataIdFromObject:function(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var hn=Object.prototype.hasOwnProperty,mn=function(e){function t(t,r,n){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=r,i.transaction=n,i}return Object(At.c)(t,e),t.prototype.toObject=function(){return Object(At.a)(Object(At.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return hn.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(cn),gn=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new Hr(Rt.e),r.silenceBroadcast=!1,r.config=Object(At.a)(Object(At.a)({},fn),t),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new rn:new cn,r.optimisticData=r.data,r.storeWriter=new ln,r.storeReader=new on({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var n=r,i=n.maybeBroadcastWatch;return r.maybeBroadcastWatch=Jr((function(e){return i.call(r,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return n.data instanceof rn?n.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),r}return Object(At.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:r,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:r,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new Pt.a(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],r=0,n=this.optimisticData;n instanceof mn;)n.optimisticId===e?++r:t.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new mn(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(Rt.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(_r),vn=r("633a"),bn=function(e){function t(t){var r=e.call(this)||this;return t instanceof vn.SubscriptionClient?r.subscriptionClient=t:r.subscriptionClient=new vn.SubscriptionClient(t.uri,t.options,t.webSocketImpl),r}return Object(At.c)(t,e),t.prototype.request=function(e){return this.subscriptionClient.request(e)},t}(zt);function yn(e){return new zt((function(t,r){return new Dt((function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var r=e.call(this)||this;return r.link=yn(t),r}Object(At.c)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(zt);var wn=function(){function e(e,t,r,n){var i=this;this.operation=e,this.nextLink=t,this.delayFor=r,this.retryIf=n,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(e){i.values.push(e);for(var t=0,r=i.observers;t=i)&&(r?r(n,t):!!n)}}(i),r}return Object(At.c)(t,e),t.prototype.request=function(e,t){var r=new wn(e,t,this.delayFor,this.retryIf);return r.start(),new Dt((function(e){return r.subscribe(e),function(){r.unsubscribe(e)}}))},t}(zt);const _n=new URL(ve||window.location.origin),En={},Sn=e=>{Le.debug("[createGraphqlClient]");const t=new zt((t,r)=>r(t).map(r=>{const{response:{headers:n}}=t.getContext();if(n){const t=n.get("x-environment")||null,r=n.get("x-unraid-api-version")||null;t&&e.commit("SET_MY_SERVERS_ENV",t),r&&e.commit("SET_MY_SERVERS_API_VERSION",r)}return r})).concat(new gr({uri:`${_n.protocol}//${_n.host}/graphql`})),r=`${_n.protocol.includes("https")?"wss://":"ws://"}${_n.host}/graphql`,n=new bn({uri:r,options:{timeout:65e3,reconnect:!0,connectionParams:{"x-api-key":e.state.apikey}}});let i;n.subscriptionClient.maxConnectTimeGenerator.setMin(3e3),n.subscriptionClient.onConnected(()=>{Le.debug("[🚀 wslink.onConnected 🚀]"),e.commit("SET_GRAPH_ONLINE",!0),e.state.myServersError&&e.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onReconnected(()=>{Le.debug("[🚀 wslink.onReconnected 🚀]"),e.commit("SET_GRAPH_ONLINE",!0),e.commit("SET_GRAPH_RECONNECTED",!0),e.state.myServersError&&e.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onDisconnected(()=>{Le.debug("[🚀 wslink.onDisconnected 🚀] 01"),e.state.graphOnline&&(clearTimeout(i),i=setTimeout(()=>{Le.debug("[🚀 wslink.onDisconnected 🚀] 02"),e.commit("SET_GRAPH_ONLINE",!1),e.state.myServersError||e.commit("SET_MY_SERVERS_ERROR","Disconnected from Unraid API")},150))});const o=Gt(({query:e})=>{const t=Object(Rt.l)(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation},n,t),a=function(e){return new zt((function(t,r){var n=Object(At.e)(t,[]);return new Dt((function(i){var o;return Promise.resolve(n).then((function(r){return e(r,t.getContext())})).then(t.setContext).then((function(){o=r(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)})})).catch(i.error.bind(i)),function(){o&&o.unsubscribe()}}))}))}((t,{headers:r})=>({headers:{...r,"x-api-key":e.state.apikey}})),s=yn(({graphQLErrors:t,networkError:r})=>{if(t){Le.error("[GraphQL error] %o",t);const r=t[0].message||t[0].error.message||"No error object - [UNRAID]";e.commit("SET_MY_SERVERS_ERROR",r)}if(r){Le.error("[Network error]",r);const t=r.message?r.message:r;e.commit("SET_MY_SERVERS_ERROR",t.includes("Unexpected token < in JSON at position 0")?"Unraid API • CORS Error":t)}e.commit("SET_MY_SERVERS_LOADING",!1)}),c=new xn({delay:{initial:300,max:1/0,jitter:!0},attempts:{max:1/0,retryIf:(t,r)=>(Le.debug("[retryLink - retryIf]",{error:t,_operation:r}),e.commit("SET_GRAPH_ONLINE",!1),!!t)}});return new lr({link:zt.from([c,s,a,o]),connectToDevTools:!1,cache:new gn,defaultOptions:{watchQuery:{fetchPolicy:"no-cache"},query:{fetchPolicy:"no-cache"},mutate:{fetchPolicy:"no-cache"},subscribe:{fetchPolicy:"no-cache",shouldResubscribe:!1}}})},kn=e=>{if(!e.state.apikey)return Le.debug("[getGraphqlClient] NO API KEY");if(Object.keys(En).includes(e.state.apikey))return Le.debug("[getGraphqlClient] found existing client %o",En[e.state.apikey]),En[e.state.apikey];const t=Sn(e);return En[e.state.apikey]=t,Le.debug("[getGraphqlClient] new client inbound %o",t),t},On=(e,t)=>{Le.debug("[detectOwnersResponseError]",{context:e,response:t}),(t.data.owner&&"root"===t.data.owner.username||!e.state.signOutTriggered&&!t.data.owner)&&(t.data.owner&&"root"===t.data.owner.username&&Le.error(Oe,t.data.owner),e.commit("SET_MY_SERVERS_ERROR",`${Oe} ${It()(e.state.apiVersion,"2.40.0")?"Please update your My Servers plugin to potentially fix this error. Thanks for working with us as we try to solve this bug.":"Please sign out and then sign back in to potentially fix this error. If you have already tried this please contact support. Thanks for working with us as we try to solve this bug."}`),e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!0)),t.data.owner&&"root"!==t.data.owner.username&&e.state.myServersError&&e.state.myServersError.includes(Oe)&&(e.commit("SET_MY_SERVERS_ERROR",""),e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!1))};var Tn=function(){return(Tn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&(r(i.reverse()[0]),n.clearMeasures&&n.clearMeasures(t),Nn.callbacks.delete(t),Nn.callbacks.size<1&&(Nn.observer.disconnect(),n.clearResourceTimings&&n.clearResourceTimings()),!0)},Nn={callbacks:new Map,observer:null,observe:function(e,t){if(e&&t){var r=Rn.a.polyfill("performance",{doThrow:!1});(function(e,t){return!Nn.observer&&e&&t&&(Nn.observer=new t((function(t){Nn.callbacks.forEach((function(r,n){Cn(t,n,r,e)}))})),e.clearResourceTimings&&e.clearResourceTimings()),Nn.observer})(r,Rn.a.polyfill("PerformanceObserver",{doThrow:!1}))&&(Cn(r,e,t,r)||(Nn.callbacks.size<1&&Nn.observer.observe({entryTypes:["resource","measure"]}),Nn.callbacks.set(e,t)))}}},Dn=Nn,Pn=function(e){this.error=e},Mn=function(){return(Mn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?r[0]+e+"?"+r[1]:this._url+e})},e.prototype.options=function(e,t){return void 0===t&&(t=!0),this.selfFactory({options:t?An(this._options,e):e})},e.prototype.query=function(e,t){return void 0===t&&(t=!1),this.selfFactory({url:$n(this._url,e,t)})},e.prototype.headers=function(e){return this.selfFactory({options:An(this._options,{headers:e||{}})})},e.prototype.accept=function(e){return this.headers({Accept:e})},e.prototype.content=function(e){var t;return this.headers(((t={})[jn]=e,t))},e.prototype.auth=function(e){return this.headers({Authorization:e})},e.prototype.catcher=function(e,t){var r=new Map(this._catchers);return r.set(e,t),this.selfFactory({catchers:r})},e.prototype.signal=function(e){return this.selfFactory({options:Mn(Mn({},this._options),{signal:e.signal})})},e.prototype.resolve=function(e,t){return void 0===t&&(t=!1),this.selfFactory({resolvers:t?[e]:Ln(Ln([],this._resolvers),[e])})},e.prototype.defer=function(e,t){return void 0===t&&(t=!1),this.selfFactory({deferredChain:t?[e]:Ln(Ln([],this._deferredChain),[e])})},e.prototype.middlewares=function(e,t){return void 0===t&&(t=!1),this.selfFactory({middlewares:t?e:Ln(Ln([],this._middlewares),e)})},e.prototype.method=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=null);var n=this.options(Mn(Mn({},t),{method:e})),i=n._options.headers;return function(e){var t=e._url,r=e._catchers,n=e._resolvers,i=e._middlewares,o=e._options,a=new Map(r),s=An(Rn.a.defaults,o),c=Rn.a.polyfill("AbortController",{doThrow:!1,instance:!0});!s.signal&&c&&(s.signal=c.signal);var u={ref:null,clear:function(){u.ref&&(clearTimeout(u.ref),u.ref=null)}},l=function(e){return function(t){return 0===e.length?t:1===e.length?e[0](t):e.reduceRight((function(r,n,i){return i===e.length-2?n(r(t)):n(r)}))}}(i)(Rn.a.polyfill("fetch"))(t,s),p=l.catch((function(e){throw new Pn(e)})).then((function(e){return u.clear(),e.ok?e:e[Rn.a.errorType||"text"]().then((function(t){var r=new Error(t);throw r[Rn.a.errorType||"text"]=t,r.status=e.status,r.response=e,r}))})),d=function(t){return t.catch((function(t){u.clear();var r=t instanceof Pn?t.error:t;if(t instanceof Pn&&a.has("__fromFetch"))return a.get("__fromFetch")(r,e);if(a.has(r.status))return a.get(r.status)(r,e);if(a.has(r.name))return a.get(r.name)(r,e);throw r}))},f=function(e){return function(t){return d(e?p.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e})):p.then((function(e){return t?t(e):e})))}},h={res:f(null),json:f("json"),blob:f("blob"),formData:f("formData"),arrayBuffer:f("arrayBuffer"),text:f("text"),perfs:function(e){return l.then((function(t){return Dn.observe(t.url,e)})),h},setTimeout:function(e,t){return void 0===t&&(t=c),u.clear(),u.ref=setTimeout((function(){return t.abort()}),e),h},controller:function(){return[c,h]},error:function(e,t){return a.set(e,t),h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return n.reduce((function(t,r){return r(t,e)}),h)}((n=r?"object"!=typeof r||i&&!Object.entries(i).every((function(e){var t=e[0],r=e[1];return t.toLowerCase()!==jn.toLowerCase()||r.startsWith(Un)}))?n.body(r):n.json(r):n)._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),n))},e.prototype.get=function(e){return this.method("GET",e)},e.prototype.delete=function(e){return this.method("DELETE",e)},e.prototype.put=function(e,t){return this.method("PUT",t,e)},e.prototype.post=function(e,t){return this.method("POST",t,e)},e.prototype.patch=function(e,t){return this.method("PATCH",t,e)},e.prototype.head=function(e){return this.method("HEAD",e)},e.prototype.opts=function(e){return this.method("OPTIONS",e)},e.prototype.replay=function(e){return this.method(this._options.method,e)},e.prototype.body=function(e){return this.selfFactory({options:Mn(Mn({},this._options),{body:e})})},e.prototype.json=function(e){var t,r=null===(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],r=e[1];return t.toLowerCase()===jn.toLowerCase()&&r.startsWith(Un)})))||void 0===t?void 0:t[1];return this.content(r||Un).body(JSON.stringify(e))},e.prototype.formData=function(e,t){return void 0===t&&(t=!1),this.body(function e(t,r,n,i){return void 0===r&&(r=!1),void 0===n&&(n=Rn.a.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(t).forEach((function(t){var o=t[0],a=t[1],s=i.reduce((function(e,t){return e?e+"["+t+"]":t}),null);if(s=s?s+"["+o+"]":o,a instanceof Array)for(var c=0,u=a;cLe.error(e));const Bn=zn("https://keys.lime-technology.com").catcher(e=>Le.error(e)),Wn=zn("https://wanip4.unraid.net/").catcher(e=>Le.error(e)),qn=zn("/webGui/include/InstallKey.php").catcher(e=>Le.error(e)),Qn=zn().catcher(e=>Le.error(e)),Hn=zn("/update.php").catcher(e=>Le.error(e)),Yn=zn("/webGui/include/UpdateDNS.php").catcher(e=>Le.error(e)),Kn=zn("/plugins/dynamix.my.servers/include/unraid-api.php").catcher(e=>Le.error(e));let Xn=0;const Jn=e=>{setTimeout(()=>{Yn.formUrl({csrf_token:e}).post().res(e=>Le.debug("[WebguiUpdateDns] %o",e)).catch(e=>Le.error("[WebguiUpdateDns] %o",e))},500)},Zn={openPopUp({commit:e,dispatch:t,state:r},n){if(Le.debug("[openPopUp] %o",n||"focus existing pop-up"),r.popUpWindow)return r.popUpWindow.focus();const i=((e,t,r,n)=>{const i=void 0!==window.screenLeft?window.screenLeft:window.screenX,o=void 0!==window.screenTop?window.screenTop:window.screenY,a=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,s=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,c=a/window.screen.availWidth>1?a/window.screen.availWidth:1,u=(a-r)/2/c+i,l=(s-n)/2/c+o,p=Object.entries({toolbar:"no",location:"yes",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",width:r/c,height:n/c,top:l,left:u}).reduce((e,t)=>e+`${t[0]}=${t[1]},`,"");return window.open(e,t,p)})(n.url,n.name,n.width,n.height),o=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,a=n.url.toString().includes("/preflight")?"#fff":"linear-gradient(to right, #E22828 0%, #ff8c2f 100%)";i.document.body.style.background=o?"#222":a;try{i.focus(),e("CHANGE_POP_UP_WINDOW",i),e("STATE_AT_OPEN",r.registered);const n=setInterval(()=>{r.popUpWindow||clearInterval(n),r.popUpWindow&&r.popUpWindow.closed&&(clearInterval(n),t("resetPopUp",{reloadWebGUI:!1}))},250);return window.onunload=()=>{r.popUpWindow&&!r.popUpWindow.closed&&r.popUpWindow.close()},!0}catch(e){return alert("Pop-up blocker detected.\nTo continue successfully please add this website to your browser's exeception list then refresh.")}},resetPopUp({commit:e,dispatch:t},r={reloadWebGUI:!0}){Le.debug("[resetPopUp] %o",r),e("CHANGE_POP_UP_WINDOW",null),t("updateServerState"),r.reloadWebGUI&&t("reloadWebGUI")},closePopUp({dispatch:e,state:t},r={reloadWebGUI:!1}){Le.debug("[closePopUp] %o",r),t.popUpWindow&&(t.popUpWindow.close(),e("resetPopUp",{reloadWebGUI:r.reloadWebGUI}))},reloadWebGUI(){Le.debug("[reloadWebGUI] %s","✨"),window.location.reload()},closePopUpFromPopUp({dispatch:e}){Le.debug("[closePopUpFromPopUp] %o"),e("resetPopUp"),window.close()},sendDataPostMessageToServer({state:e}){const t="SignOut"===e.submissionFrom?{event:"MYSERVERS_UNREGISTER"}:{event:"REG_WIZARD",keyfile:e.keyfile,license:e.license,email:e.userEmail,apikey:e.apikey,avatar:e.avatar,username:e.username,guid:e.guid};Le.debug("[sendDataPostMessageToServer] %o",t);try{return Se.postMessage(JSON.stringify(t),"*")}catch(e){return Ee||Le.warn("[sendDataPostMessageToServer] !CAN_POST_MESSAGE",t),Le.error("[sendDataPostMessageToServer] %o",e)}},requestUpdatedServerStateFromUpc({state:e}){Le.debug("[requestUpdatedServerStateFromUpc]");try{return Se.postMessage(JSON.stringify({event:"SUCCESS_NEW_STATE"}),e.site)}catch(e){return Ee||Le.warn("[requestUpdatedServerStateFromUpc] !CAN_POST_MESSAGE",Ee),Le.error("[requestUpdatedServerStateFromUpc] %o",e)}},receivePostMessage({commit:e,dispatch:t,getters:r,state:n},i={event:null}){if(!i.event)return void Le.error("postMessage no event");const[o,a]=Te(i.event.data);if(o)return;Le.log("[receivePostMessage] payload.event.data.event %o",a.event);const s=i.event.origin,c=s===me,u=ge.includes(s),l=!!(a&&a.server&&a.server.site)&&s===a.server.site,p=s===n.site,d=!!(a&&a.server&&a.server.extraOrigins)&&a.server.extraOrigins.includes(s),f="SESSION"===a.event?l||d:p,h=c||u||f,m={"data.server.extraOrigins":a&&a.server?a.server.extraOrigins:"","data.server.site":a&&a.server?a.server.site:"","payload.event.origin":s,"state.site":n.site,pmOriginMatchesDataServerUrl:l,pmOriginMatchesStateSite:p,pmOriginIncludedInExtraOrigins:d,fromRegWiz:c,fromPurchase:u,fromWebGui:f,originAllowed:h};if(!h)return Le.error("[receivePostMessage] ❌ postMessage origin not allowed ❌ %o",m),e("SET_POST_MESSAGE_ERROR",m),void e("SET_RAW_SERVER_STATE",a.server);Le.debug("[receivePostMessage] originAllowed %o",m);const g=e=>{Le.log("[receivePostMessage.sendBackPostMessage] %o",e.event);try{return i.event.source.postMessage(JSON.stringify(e),s)}catch(t){return Le.error("[sendBackPostMessage.catch] %o",{error:t,message:e})}},v=async e=>{if(!e)return Le.error("[installKey] missing license data: %s",e);let t=e.split("/");if(t=t[t.length-1].slice(0,-4).toUpperCase(),t===n.state)return g({event:"LICENSE_PINGBACK",message:"Failed to license new key – duplicate install detected",license:e,success:!1}),Le.error("[installKey] duplicate install detected",{state:n.state,keyType:t});Le.debug("[receivePostMessage.installKey] %o",e);return await qn.query({url:e}).get().res(t=>{Le.debug("[receivePostMessage.installKey] SUCCESS %o",t),setTimeout(()=>{Jn(n.csrf)},1e3),g({event:"LICENSE_PINGBACK",message:"New license key installed",license:e,success:!0})}).catch(t=>{Le.error("[receivePostMessage.installKey] FAILED: "+e,t),g({event:"LICENSE_PINGBACK",message:"Failed to license new key",license:e,success:!1})})},b=async()=>{Le.debug("[receivePostMessage.signOutUnraidNet] 👋");return await Hn.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",apikey:"",avatar:"",email:"",username:"",wanaccess:"no",...!n.hideMyServers&&{"#command":"/plugins/dynamix.my.servers/scripts/.nginx_reload"}}).post().res(t=>{Le.debug("[receivePostMessage.signOutUnraidNet] WebguiUpdate.res %o",t),e("SET_SIGN_OUT_TRIGGERED",!0),g({event:"ACCOUNT_PINGBACK",success:!0,type:"signOut",webGuiPathname:window.location.pathname})}).catch(e=>{Le.error(`[receivePostMessage.signOutUnraidNet] WebguiUpdate.catch Sign out ${n.servername} from Unraid.net failed 😢 %o`,e),g({event:"ACCOUNT_PINGBACK",success:!1,type:"signOut",webGuiPathname:window.location.pathname})})};switch(a.event){case"SESSION":Le.debug("[receivePostMessage] SESSION"),e("SET_FULL_SERVER_STATE",a.server),e("SET_RAW_SERVER_STATE",a.server),fe.mergeLocaleMessage(a.locale,a.messages),fe.locale=a.locale,Le.debug(`[receivePostMessage] SESSION ${fe.locale} locale & messages set`,fe.messages);break;case"PREFLIGHT_REQUEST":if(Le.debug("[receivePostMessage] PREFLIGHT_REQUEST"),!r.allowedOrigins.includes(s)){Le.error("[🙅♂️ ACCESS DENIED]");break}Le.debug("[receivePostMessage] SUCCESS_NEW_STATE");try{t("updateServerState").then(e=>{Le.debug("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.then %o",{res:e,"getters.server":r.server}),g({event:"SESSION",server:{...r.server},locale:fe.locale,messages:{...fe.messages[fe.locale]}})}).catch(e=>{Le.error("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.catch %o",e),g({event:"DELIVER_NEW_STATE",success:!1})})}catch(e){Le.error("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.trycatch %o",e),g({event:"DELIVER_NEW_STATE",success:!1})}break;case"LICENSE_PINGBACK":Le.debug("[receivePostMessage] LICENSE_PINGBACK"),e("LICENSE_PINGBACK",a);break;case"ACCOUNT_PINGBACK":Le.debug("[receivePostMessage] ACCOUNT_PINGBACK"),e("ACCOUNT_PINGBACK",a);break;case"DELIVER_NEW_STATE":Le.debug("[receivePostMessage] DELIVER_NEW_STATE %o",a);const i=!!n.license,o=n.licenseAction&&!n.licenseAction.success,c=n.state,u=a&&a.state?a.state:null,l=c===u;if(Le.debug("[receivePostMessage] DELIVER_NEW_STATE %o",{keyToInstall:i,failedKeyInstall:o,oldState:c,newState:u,potentiallyStaleState:l,deliverNewStateRetryCounter:Xn}),o){e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}if(i&&l&&Xn<6){setTimeout(()=>{Le.debug("[potentiallyStaleState] %o",{potentiallyStaleState:l}),Le.debug("[deliverNewStateRetryCounter] %o",{deliverNewStateRetryCounter:Xn}),t("requestUpdatedServerStateFromUpc"),Xn+=1},350*Xn);break}if(i&&l&&Xn>=6){e("SET_APP_ERROR_MESSAGE",`Failed to receive latest server info${n.licenseAction&&n.licenseAction.success?" after successful key install":""}. Please close this pop-up and refresh the webGUI.`),e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}e("SET_FULL_SERVER_STATE",a),e("SET_RAW_SERVER_STATE",a),e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now()),Xn=0;break;case"KEY_PURCHASE":Le.debug("[receivePostMessage] KEY_PURCHASE"),v(a.license),a.oem&&b();break;case"MYSERVERS_UNREGISTER":Le.debug("[receivePostMessage] MYSERVERS_UNREGISTER WebguiUpdate"),b();break;case"REG_WIZARD":Le.debug("[receivePostMessage] REG_WIZARD"),a.license&&v(a.license),Le.debug("[receivePostMessage] REG_WIZARD WebguiUpdate %o"),Hn.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",regWizTime:`${Date.now()}_${a.guid}`,...a.apikey&&{apikey:a.apikey},...a.email&&{email:a.email},...a.username&&{username:a.username},...a.avatar&&{avatar:a.avatar}}).post().res(t=>{Le.debug("[receivePostMessage] REG_WIZARD WebguiUpdate.res %o",t),a.license||Jn(n.csrf),e("SET_SIGN_OUT_TRIGGERED",!1),g({event:"ACCOUNT_PINGBACK",success:!0,type:"signIn",webGuiPathname:window.location.pathname})}).catch(e=>{Le.error("[WebguiUpdate] %o",e),g({event:"ACCOUNT_PINGBACK",success:!1,type:"signIn",webGuiPathname:window.location.pathname})});break;case"RELOAD":Le.debug("[receivePostMessage] RELOAD"),window.location.reload();break;case"SUCCESS_NEW_STATE":Le.debug("[receivePostMessage] SUCCESS_NEW_STATE");try{t("updateServerState").then(e=>{Le.debug("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.then"),g({...e,event:"DELIVER_NEW_STATE",success:!0})}).catch(e=>{Le.error("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.catch %o",e),g({event:"DELIVER_NEW_STATE",success:!1})})}catch(e){Le.error("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.trycatch %o",e),g({event:"DELIVER_NEW_STATE",success:!1})}break;case"REDIRECT_MAIN":Le.debug("[receivePostMessage] REDIRECT_MAIN"),window.location.href="/Main";break;case"REQUEST_API_REPORT":Le.debug("[receivePostMessage] REQUEST_API_REPORT");try{Kn.formUrl({csrf_token:n.csrf,command:"report",params:"-v"}).post().json(t=>{Le.debug("👼 [receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.json %o",t),e("SET_API_EXECUTE_RESPONSE",t.result),g({event:"API_EXECUTE_PINGBACK",result:t.result})}).catch(e=>{Le.error("[receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.catch failed to execute `unraid-api` report 😢 %o",e),g({event:"API_EXECUTE_PINGBACK",error:e})})}catch(e){Le.error("[receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.catch failed to execute `unraid-api` report 😢 %o",e),g({event:"API_EXECUTE_PINGBACK",error:e})}break;case"API_EXECUTE_PINGBACK":Le.debug("[receivePostMessage] API_EXECUTE_PINGBACK"),a&&a.result&&e("SET_API_EXECUTE_RESPONSE",a.result);break;default:Le.debug("[receivePostMessage] UNHANDLED_MESSAGE")}},setStateFromWebComponentProp({commit:e},t){Le.debug("[setStateFromWebComponentProp]");const[r,n]=Te(decodeURIComponent(t));return r?Le.error("[setStateFromWebComponentProp] %o",t):e("SET_FULL_SERVER_STATE",n)},async updateServerState({commit:e,dispatch:t,getters:r,state:n}){if(Le.debug("[updateServerState]"),me===window.location.origin)return Le.debug("[SKIPPED] updateServerState()");Le.debug("[updateServerState]",{"state.hideMyServers":n.hideMyServers,"!state.graphOnline":!n.graphOnline,"!getters.validApiKeyLength":!r.validApiKeyLength,"!getters.validApiKeyForUpc":!r.validApiKeyForUpc}),!n.hideMyServers&&n.graphOnline&&r.validApiKeyLength&&r.validApiKeyForUpc?(Le.debug("[updateServerState] via serverStateFromApi"),await t("serverStateFromApi")):(Le.debug("[updateServerState] via ",r.statePhpPath),await Qn.url(r.statePhpPath).get().json().then(t=>t?e("SET_FULL_SERVER_STATE",t):Le.error("[updateUpcFromStatePhp] no `res` skipping `SET_FULL_SERVER_STATE`")).catch(e=>{Le.error("[updateUpcFromStatePhp WebguiState.catch] %o",e),(e.toString().includes("Unexpected token")||e.toString().includes("503"))&&(window.location.href="/")}));const i=r.server;return Le.debug("[updateServerState] newState %o",i),i},async validateGuid({commit:e,getters:t,state:r}){await new Promise((n,i)=>{if(r.guidValidationRunning)return Le.debug("[validateGuid] already validating");e("CHANGE_GUID_VALIDATION_RUNNING",!0);const o=r.regWizTime?r.regWizTime.split("_")[1]:null,a=!!o&&o===r.guid;Le.debug("[validateGuid] %o",{guid:r.guid,regGuid:r.regGuid,regWizTimeGuid:o,previouslyRegistered:a});let s="GUID Invalid";if(!r.guid||r.guid===_e)return Le.debug(`[validateGuid] ${s} %o`,{"!state.guid":!r.guid,GUID_NOT_RECEIVED:_e}),s+=": not present",e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1),e("SET_STATE","EBLACKLISTED1"),e("SET_APP_ERROR_MESSAGE",s),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),n(!1);if(a&&!t.stateData.error)return Le.debug("[validateGuid] previouslyRegistered %s",r.guid),e("CHANGE_GUID_REGISTERED",!0),e("CHANGE_GUID_VALID",!0),e("CHANGE_GUID_FORUMACCOUNT",!0),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),n(!0);const c=r.guid.includes("000000000000");if(r.guid&&r.guid!==_e&&(c||27!==r.guid.length))return c?(s+=": Too many consecutive zeros",e("SET_STATE","EBLACKLISTED2")):(s+=": Not long enough",e("SET_STATE","EBLACKLISTED1")),e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1),e("SET_APP_ERROR_MESSAGE",s),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),i(new Error(s));r.regGuid||Le.warn("[validateGuid] state.regGuid empty. Getting regGuid from state.regWizTime.");const u=r.regGuid||o||"";e("CHANGE_GUID_FOR_VALIDATION","EGUID"===r.state?u:r.guid),e("CHANGE_GUID_BLACKLISTED",null);try{const t=Bn.url("/validate/guid").formUrl({guid:r.guidForValidation}).post().forbidden(t=>{let n;const[i,o]=Te(t.message);o&&!i||!t.message||(n=t.message),o&&o.error&&(n=o.error),Le.error("[validateGuid] POST.forbidden %o",n),n.includes("blacklisted")?(e("CHANGE_GUID_BLACKLISTED",!0),"EGUID"!==r.state?(e("SET_STATE","EBLACKLISTED"),e("SET_APP_ERROR_MESSAGE",n)):Le.warn("[validateGuid] skip EBLACKLISTED state overwrite")):n.includes("invalid GUID")&&("EGUID"!==r.state?(e("SET_STATE","EBLACKLISTED1"),e("SET_APP_ERROR_MESSAGE",n)):Le.warn("[validateGuid] skip EBLACKLISTED state overwrite")),e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1)}).json(t=>{Le.debug("[validateGuid] POST.json %o",t),t.registered&&e("CHANGE_GUID_REGISTERED",t.registered),e("CHANGE_GUID_FORUMACCOUNT",t.forumaccount||!1),e("CHANGE_GUID_VALID",!0),e("CHANGE_REPLACEABLE",t.replaceable)}).catch(t=>{Le.error("[validateGuid] POST.catch %o",t),e("SET_APP_ERROR_MESSAGE",t.message),i(new Error(t))}).finally(()=>{Le.debug("[validateGuid] POST.finally"),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1)});return n(t)}catch(t){return Le.error("[validateGuid] try/catch %o",t),e("SET_APP_ERROR_MESSAGE",t),e("CHANGE_GUID_VALIDATION_RUNNING",!1),i(new Error(t))}})},jumpToUpc({commit:e}){window.scrollTo({top:0,behavior:"smooth"}),e("TRIGGER_UPC",!0),setTimeout(()=>{e("TRIGGER_UPC",!1)},500)},async getWanIp({commit:e,state:t}){if(Le.debug("[getWanIp]"),t.wanip)return Le.debug("[getWanIp] SKIPPED",t.wanip);try{return e("SET_WANIP",await Wn.get().text())}catch(e){return Le.error("[getWanIp] Unable to get WAN IP")}},async executeUnraidApi({commit:e,state:t},r={command:"",param1:null}){Le.debug("[executeUnraidApi]",r);const{command:n,param1:i}=r;"start"===n&&e("SET_MY_SERVERS_LOADING",!0);return await Kn.formUrl({csrf_token:t.csrf,command:n,param1:i}).post().json(e=>{Le.debug("👼 [executeUnraidApi] json %o",e)}).catch(e=>{Le.error(`[executeUnraidApi] catch failed to execute unraid-api ${n} 😢 %o`,e)})},fetchServers:async e=>{Le.debug("[fetchServers]"),e.commit("SET_MY_SERVERS_LOADING",!0);const t=await kn(e).query({query:_t`query initialGetServers {
+function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,t.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(l=e)}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(e){},d.prototype.commit=function(e,t,r){var n=this,i=y(e,t,r),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,n.state)})))},d.prototype.dispatch=function(e,t){var r=this,n=y(e,t),i=n.type,o=n.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,r.state)}))}catch(e){}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,r.state)}))}catch(e){}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,r.state,e)}))}catch(e){}t(e)}))}))}},d.prototype.subscribe=function(e,t){return h(e,this._subscribers,t)},d.prototype.subscribeAction=function(e,t){return h("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},d.prototype.watch=function(e,t,r){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)},d.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},d.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),r.preserveState),g(this,this.state)},d.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var r=b(t.state,e.slice(0,-1));l.delete(r,e[e.length-1])})),m(this)},d.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},d.prototype.hotUpdate=function(e){this._modules.update(e),m(this,!0)},d.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(d.prototype,f);var x=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=T(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"==typeof i?i.call(this,t,r):t[i]},r[n].vuex=!0})),r})),_=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.commit;if(e){var o=T(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r})),E=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;i=e+i,r[n]=function(){if(!e||T(this.$store,"mapGetters",e))return this.$store.getters[i]},r[n].vuex=!0})),r})),S=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var o=T(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r}));function k(e){return function(e){return Array.isArray(e)||s(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function O(e){return function(t,r){return"string"!=typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function T(e,t,r){return e._modulesNamespaceMap[r]}function I(e,t,r){var n=r?e.groupCollapsed:e.group;try{n.call(e,t)}catch(r){e.log(t)}}function R(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function A(){var e=new Date;return" @ "+C(e.getHours(),2)+":"+C(e.getMinutes(),2)+":"+C(e.getSeconds(),2)+"."+C(e.getMilliseconds(),3)}function C(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var N={Store:d,install:w,version:"3.6.2",mapState:x,mapMutations:_,mapGetters:E,mapActions:S,createNamespacedHelpers:function(e){return{mapState:x.bind(null,e),mapGetters:E.bind(null,e),mapMutations:_.bind(null,e),mapActions:S.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var r=e.filter;void 0===r&&(r=function(e,t,r){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var u=e.logActions;void 0===u&&(u=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var p=o(e.state);void 0!==l&&(c&&e.subscribe((function(e,a){var s=o(a);if(r(e,p,s)){var c=A(),u=i(e),d="mutation "+e.type+c;I(l,d,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(p)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),R(l)}p=s})),u&&e.subscribeAction((function(e,r){if(a(e,r)){var n=A(),i=s(e),o="action "+e.type+n;I(l,o,t),l.log("%c action","color: #03A9F4; font-weight: bold",i),R(l)}})))}}};t.a=N}).call(this,r("c8ba"))},"2f6c":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var n=r("ad67"),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,u=Array.isArray(e),l=[e],p=-1,d=[],f=void 0,h=void 0,m=void 0,g=[],v=[],b=e;do{var y=++p===l.length,w=y&&0!==d.length;if(y){if(h=0===v.length?void 0:g[g.length-1],f=m,m=v.pop(),w){if(u)f=f.slice();else{for(var x={},_=0,E=Object.keys(f);_0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i=t,o={};return n.forEach((function(e){o[e]=i[e]})),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var a=e;if(t){var c=s()(t);a+="("+c+")"}return r&&Object.keys(r).forEach((function(e){-1===l.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@"+e+"("+JSON.stringify(r[e])+")":a+="@"+e)})),a}function d(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return c(r,n,i,t)})),r}return null}function f(e){return e.alias?e.alias.value:e.name.value}function h(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}function g(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function v(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function b(e){return null!=e&&"object"==typeof e&&"json"===e.type}function y(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach((function(e){r[e.name.value]=d(e,t)})),r}return null}function w(e,t){return void 0===t&&(t={}),function(e){return e?e.filter(E).map((function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,14);var r=t[0];Object(i.b)(r.name&&"if"===r.name.value,15);var n=r.value;return Object(i.b)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:e,ifArgument:r}})):[]}(e.directives).every((function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t[n.value.name.value],Object(i.b)(void 0!==o,13)):o=n.value.value,"skip"===r.name.value?!o:o}))}function x(e,t){return function(e){var t=[];return Object(n.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function _(e){return e&&x(["client"],e)&&x(["export"],e)}function E(e){var t=e.name.value;return"skip"===t||"include"===t}function S(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(11);"FragmentDefinition"===e.kind&&n.push(e)})),void 0===r&&(Object(i.b)(1===n.length,12),r=n[0].name.value),Object(o.a)(Object(o.a)({},e),{definitions:Object(o.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function k(e){for(var t=[],r=1;r1){var n=[];t=ae(t,n);for(var i=1;iYour Trial key includes all the functionality and device support of a Pro key.After your Trial has reached expiration, your server still functions normally until the next time you Stop the array or reboot your server.
At that point you may either purchase a license key or request a Trial extension.
","_extraMsg":"You have {parsedExpireTime} remaining on your Trial key.
"},"EEXPIRED":{"humanReadable":"Trial Expired","heading":"Your Trial has expired","message":{"base":"To continue using Unraid OS you may purchase a license key.","extensionNotEligible":"You have used all your Trial extensions. @:stateData.EEXPIRED.message.base","extensionEligible":"@:stateData.EEXPIRED.message.base Alternately, you may request a Trial extension."}},"BASIC":{"humanReadable":"Basic"},"PLUS":{"humanReadable":"Plus"},"PRO":{"humanReadable":"Pro"},"EGUID":{"humanReadable":"GUID Error","error":{"heading":"Registration key / GUID mismatch","message":{"default":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key.","replacementIneligible":"Your Unraid registration key is ineligible for replacement as it has been replaced within the last 12 months.","replacementEligible":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key or Replace Key."}}},"ENOKEYFILE2":{"humanReadable":"Missing key file","error":{"heading":"@:stateData.ENOKEYFILE2.humanReadable","message":"It appears that your license key file is corrupted or missing. The key file should be located in the /config directory on your USB Flash boot device. If you do not have a backup copy of your license key file you may attempt to recover your key. If this was a Trial installation, you may purchase a license key."}},"ETRIAL":{"humanReadable":"Invalid installation","error":{"heading":"@:stateData.ETRIAL.humanReadable","message":"It is not possible to use a Trial key with an existing Unraid OS installation. You may purchase a license key corresponding to this USB Flash device to continue using this installation."}},"ENOKEYFILE1":{"humanReadable":"No Keyfile","error":{"heading":"No USB flash configuration data","message":"There is a problem with your USB Flash device"}},"ENOFLASH":{"humanReadable":"No Flash","error":{"heading":"Cannot access your USB Flash boot device","message":"There is a physical problem accessing your USB Flash boot device"}},"EGUID1":{"humanReadable":"Multiple License Keys Present","error":{"heading":"@:stateData.EGUID1.humanReadable","message":"There are multiple license key files present on your USB flash device and none of them correspond to the USB Flash boot device. Please remove all key files, except the one you want to replace, from the /config directory on your USB Flash boot device. Alternately you may purchase a license key for this USB flash device. If you want to replace one of your license keys with a new key bound to this USB Flash device, please first remove all other key files first."}},"EBLACKLISTED":{"humanReadable":"BLACKLISTED","error":{"heading":"Blacklisted USB Flash GUID","message":"This USB Flash boot device has been blacklisted. This can occur as a result of transferring your license key to a replacement USB Flash device, and you are currently booted from your old USB Flash device. A USB Flash device may also be blacklisted if we discover the serial number is not unique – this is common with USB card readers."}},"EBLACKLISTED1":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash device error","message":"This USB Flash device has an invalid GUID. Please try a different USB Flash device"}},"EBLACKLISTED2":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash has no serial number","message":"@:stateData.EBLACKLISTED.error.message"}},"ENOCONN":{"humanReadable":"Trial Requires Internet Connection","error":{"heading":"Cannot validate Unraid Trial key","message":"Your Trial key requires an internet connection. Please check Settings > Network"}},"STALE":{"humanReadable":"Stale","error":{"heading":"Stale Server","message":"Please refresh the page to ensure you load your latest configuration"}}},"upc":{"avatarAlt":"{0}\'s Avatar","confirmClosure":"Confirm closure then continue to webGUI","closeDropdown":"Close dropdown","openDropdown":"Open dropdown","pleaseConfirmClosureYouHaveOpenPopUp":"Please confirm closure. You have an open pop-up.","trialHasExpiredSeeOptions":"Trial has expired, see options below","errorCertRequiresSignIn":"Sign In before your Unraid.net SSL certificate expires","noRemoteApikeyRegisteredWithPlg":{"heading":"My Servers Error","msg":"Unraid.net re-authentication required"},"errorTooManyDisks":{"heading":"Too many devices","msg":{"base":"You must upgrade your key to support more devices.","basic":"Your Basic key supports 6 devices.","plus":"Your Plus key supports 12 devices."}},"extraLinks":{"newTab":"Opens {0} in new tab","myServers":"My Servers Dashboard","forums":"Unraid Forums","settings":{"text":"Settings","title":"Settings > Management Access • Unraid.net"}},"meta":{"trial":{"active":{"date":"Trial key expires at {date}","timeDiff":"Trial expires in {timeDiff}"},"expired":{"date":"Trial key expired at {date}","timeDiff":"Trial expired {timeDiff}"}},"uptime":{"date":"Server up since {date}","readable":"Uptime {timeDiff}"}},"myServers":{"heading":"My Servers","beta":"beta","errors":{"unraidApi":{"heading":"Unraid API Error","message":"Failed to connect to Unraid API."},"myServers":{"heading":"My Servers Error","message":"Please wait a moment and reload the page."}},"closeDetails":"Close Details","loading":"Loading My Servers data","displayingLastKnown":"Displaying last known server data","mothership":{"connected":"Connected to Mothership","notConnected":"Not Connected to Mothership"},"accessLabels":{"current":"Current server","local":"Local access","offline":"Server Offline","remote":"Remote access","unavailable":"Access unavailable"},"api":{"start":"Restart unraid-api","startTitle":"Executes `unraid-api start`; no terminal needed","stop":"Stop unraid-api"}},"opensNewHttpsWindow":{"base":"Opens new HTTPS window to {0}","signIn":"@:upc.opensNewHttpsWindow.base @:signIn","signOut":"@:upc.opensNewHttpsWindow.base @:signOut","purchase":"@:upc.opensNewHttpsWindow.base @:actions.purchase","upgrade":"@:upc.opensNewHttpsWindow.base @:actions.upgrade"},"signInActions":{"resolve":"@:signIn to resolve","purchaseKey":"@:signIn to @:actions.purchase","purchaseKeyOrExtendTrial":"@:upc.signInActions.purchaseKey or @:actions.extend"}},"wanIpCheck":{"checking":"Checking Wan IPs","avatarAlt":"{0}\'s Avatar","match":"Remark: your WAN IPv4 is {0}","mismatch":"Remark: Unraid\'s WAN IPv4 {0} does not match your client\'s WAN IPv4 {1}. This may indicate a complex network that will not work with this Remote Access solution. Ignore this message if you are currently connected via Remote Access or VPN","resolveError":"DNS issue, unable to resolve wanip4.unraid.net"}}')},"5a0c":function(e,t,r){e.exports=function(){"use strict";var e=6e4,t=36e5,r="millisecond",n="second",i="minute",o="hour",a="day",s="week",c="month",u="quarter",l="year",p="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function e(t,r){if(t.date()e.replace(o,(e,t)=>t?t.toUpperCase():""),s=/\B([A-Z])/g,c=e=>e.replace(s,"-$1").toLowerCase();function u(e,t,r){e[t]=[].concat(e[t]||[]),e[t].unshift(r)}function l(e,t){if(e){(e.$options[t]||[]).forEach(t=>{t.call(e)})}}function p(e,t,{type:r}={}){if((e=>/function Boolean/.test(String(e)))(r))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e||e;if((e=>/function Number/.test(String(e)))(r)){const t=parseFloat(e,10);return isNaN(t)?e:t}return e}function d(e,t){const r=[];for(let n=0,i=t.length;n(e[t]=l[r[n]],e),{}),u(t,"beforeCreate",(function(){const e=this.$emit;this.$emit=(t,...r)=>(this.$root.$options.customElement.dispatchEvent(function(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}(t,r)),e.call(this,t,...r))})),u(t,"created",(function(){i.forEach(e=>{this.$root.props[e]=this[e]})})),i.forEach(e=>{Object.defineProperty(m.prototype,e,{get(){return this._wrapper.props[e]},set(t){this._wrapper.props[e]=t},enumerable:!1,configurable:!0})}),s=!0}function h(e,t){const r=a(t),n=e.hasAttribute(t)?e.getAttribute(t):void 0;e._wrapper.props[r]=p(n,t,o[r])}class m extends HTMLElement{constructor(){const r=super();r.attachShadow({mode:"open"});const n=r._wrapper=new e({name:"shadow-root",customElement:r,shadowRoot:r.shadowRoot,data:()=>({props:{},slotChildren:[]}),render(e){return e(t,{ref:"inner",props:this.props},this.slotChildren)}});new MutationObserver(e=>{let t=!1;for(let n=0;n{e.props=function(e){const t={};return e.forEach(e=>{t[e]=void 0}),t}(i),n.forEach(e=>{h(this,e)})};s?r():t().then(e=>{(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),f(e),r()}),e.slotChildren=Object.freeze(d(e.$createElement,this.childNodes)),e.$mount(),this.shadowRoot.appendChild(e.$el)}}disconnectedCallback(){l(this.vueComponent,"deactivated")}}return r||f(t),m};function g(e,t,r,n,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:u}}r("24fb"),r("35d6");var v=r("2f62"),b=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function y(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var w=Array.isArray;function x(e){return null!==e&&"object"==typeof e}function _(e){return"boolean"==typeof e}function E(e){return"string"==typeof e}var S=Object.prototype.toString;function k(e){return"[object Object]"===S.call(e)}function O(e){return null==e}function T(e){return"function"==typeof e}function I(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=null,n=null;return 1===e.length?x(e[0])||w(e[0])?n=e[0]:"string"==typeof e[0]&&(r=e[0]):2===e.length&&("string"==typeof e[0]&&(r=e[0]),(x(e[1])||w(e[1]))&&(n=e[1])),{locale:r,params:n}}function R(e){return JSON.parse(JSON.stringify(e))}function A(e,t){return!!~e.indexOf(t)}var C=Object.prototype.hasOwnProperty;function N(e,t){return C.call(e,t)}function P(e){for(var t=arguments,r=Object(e),n=1;n/g,">").replace(/"/g,""").replace(/'/g,"'")}(e[t]))})),e}var L={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var r=t.data,n=t.parent,i=t.props,o=t.slots,a=n.$i18n;if(a){var s=i.path,c=i.locale,u=i.places,l=o(),p=a.i(s,c,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(l)||u?function(e,t){var r=t?function(e){return Array.isArray(e)?e.reduce(j,{}):Object.assign({},e)}(t):{};if(!e)return r;var n=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every(F);return e.reduce(n?U:j,r)}(l.default,u):l),d=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return d?e(d,r,p):p}}};function U(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function j(e,t,r){return e[r]=t,e}function F(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var $,V={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var r=t.props,n=t.parent,i=t.data,o=n.$i18n;if(!o)return null;var a=null,s=null;E(r.format)?a=r.format:x(r.format)&&(r.format.key&&(a=r.format.key),s=Object.keys(r.format).reduce((function(e,t){var n;return A(b,t)?Object.assign({},e,((n={})[t]=r.format[t],n)):e}),null));var c=r.locale||o.locale,u=o._ntp(r.value,c,a,s),l=u.map((function(e,t){var r,n=i.scopedSlots&&i.scopedSlots[e.type];return n?n(((r={})[e.type]=e.value,r.index=t,r.parts=u,r)):e.value})),p=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return p?e(p,{attrs:i.attrs,class:i.class,staticClass:i.staticClass},l):l}};function G(e,t,r){W(e,r)&&q(e,t,r)}function z(e,t,r,n){if(W(e,r)){var i=r.context.$i18n;(function(e,t){var r=t.context;return e._locale===r.$i18n.locale})(e,r)&&D(t.value,t.oldValue)&&D(e._localeMessage,i.getLocaleMessage(i.locale))||q(e,t,r)}}function B(e,t,r,n){if(r.context){var i=r.context.$i18n||{};t.modifiers.preserve||i.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}else y("Vue instance does not exists in VNode context")}function W(e,t){var r=t.context;return r?!!r.$i18n||(y("VueI18n instance does not exists in Vue instance"),!1):(y("Vue instance does not exists in VNode context"),!1)}function q(e,t,r){var n,i,o=function(e){var t,r,n,i;return E(e)?t=e:k(e)&&(t=e.path,r=e.locale,n=e.args,i=e.choice),{path:t,locale:r,args:n,choice:i}}(t.value),a=o.path,s=o.locale,c=o.args,u=o.choice;if(a||s||c)if(a){var l=r.context;e._vt=e.textContent=null!=u?(n=l.$i18n).tc.apply(n,[a,u].concat(Q(s,c))):(i=l.$i18n).t.apply(i,[a].concat(Q(s,c))),e._locale=l.$i18n.locale,e._localeMessage=l.$i18n.getLocaleMessage(l.$i18n.locale)}else y("`path` is required in v-t directive");else y("value type not supported")}function Q(e,t){var r=[];return e&&r.push(e),t&&(Array.isArray(t)||k(t))&&r.push(t),r}function H(e,t){void 0===t&&(t={bridge:!1}),H.installed=!0,($=e).version&&Number($.version.split(".")[0]),function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var n=this.$i18n;return n._t.apply(n,[e,n.locale,n._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(r))},e.prototype.$te=function(e,t){var r=this.$i18n;return r._te(e,r.locale,r._getMessages(),t)},e.prototype.$d=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this.$i18n).d.apply(t,[e].concat(r))},e.prototype.$n=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this.$i18n).n.apply(t,[e].concat(r))}}($),$.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n){if(e.i18n instanceof le){if(e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){t=P(t,JSON.parse(e))})),Object.keys(t).forEach((function(r){e.i18n.mergeLocaleMessage(r,t[r])}))}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(k(e.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof le?this.$root.$i18n:null;if(r&&(e.i18n.root=this.$root,e.i18n.formatter=r.formatter,e.i18n.fallbackLocale=r.fallbackLocale,e.i18n.formatFallbackMessages=r.formatFallbackMessages,e.i18n.silentTranslationWarn=r.silentTranslationWarn,e.i18n.silentFallbackWarn=r.silentFallbackWarn,e.i18n.pluralizationRules=r.pluralizationRules,e.i18n.preserveDirectiveContent=r.preserveDirectiveContent),e.__i18n)try{var n=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){n=P(n,JSON.parse(e))})),e.i18n.messages=n}catch(e){}var i=e.i18n.sharedMessages;i&&k(i)&&(e.i18n.messages=P(e.i18n.messages,i)),this._i18n=new le(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof le?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof le&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n?(e.i18n instanceof le||k(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof le||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof le)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}(t.bridge)),$.directive("t",{bind:G,update:z,unbind:B}),$.component(L.name,L),$.component(V.name,V),$.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var Y=function(){this._caches=Object.create(null)};Y.prototype.interpolate=function(e,t){if(!t)return[e];var r=this._caches[e];return r||(r=function(e){var t=[],r=0,n="";for(;r0)p--,l=4,d[0]();else{if(p=0,void 0===r)return!1;if(!1===(r=te(r)))return!1;d[1]()}};null!==l;)if(u++,"\\"!==(t=e[u])||!f()){if(i=ee(t),8===(o=(s=J[l])[i]||s.else||8))return;if(l=o[0],(a=d[o[1]])&&(n=void 0===(n=o[2])?t:n,!1===a()))return;if(7===l)return c}}(e))&&(this._cache[e]=t),t||[]},re.prototype.getPathValue=function(e,t){if(!x(e))return null;var r=this.parsePath(t);if(0===r.length)return null;for(var n=r.length,i=e,o=0;o/,oe=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|./]+|\([\w\-_|./]+\)))/g,ae=/^@(?:\.([a-z]+))?:/,se=/[()]/g,ce={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},ue=new Y,le=function(e){var t=this;void 0===e&&(e={}),!$&&"undefined"!=typeof window&&window.Vue&&H(window.Vue);var r=e.locale||"en-US",n=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),i=e.messages||{},o=e.dateTimeFormats||e.datetimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||ue,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new re,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,this.getChoiceIndex=function(e,r){var n=Object.getPrototypeOf(t);if(n&&n.getChoiceIndex)return n.getChoiceIndex.call(t,e,r);return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,r]):function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}(e,r)},this._exist=function(e,r){return!(!e||!r||O(t._path.getPathValue(e,r))&&!e[r])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])})),this._initVM({locale:r,fallbackLocale:n,messages:i,dateTimeFormats:o,numberFormats:a})},pe={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};le.prototype._checkLocaleMessage=function(e,t,r){var n=function(e,t,r,i){if(k(r))Object.keys(r).forEach((function(o){var a=r[o];k(a)?(i.push(o),i.push("."),n(e,t,a,i),i.pop(),i.pop()):(i.push(o),n(e,t,a,i),i.pop())}));else if(w(r))r.forEach((function(r,o){k(r)?(i.push("["+o+"]"),i.push("."),n(e,t,r,i),i.pop(),i.pop()):(i.push("["+o+"]"),n(e,t,r,i),i.pop())}));else if(E(r)){if(ie.test(r)){var o="Detected HTML in message '"+r+"' of keypath '"+i.join("")+"' at '"+t+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?y(o):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(o)}}};n(t,e,r,[])},le.prototype._initVM=function(e){var t=$.config.silent;$.config.silent=!0,this._vm=new $({data:e,__VUE18N__INSTANCE__:!0}),$.config.silent=t},le.prototype.destroyVM=function(){this._vm.$destroy()},le.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},le.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.delete(t));}(this._dataListeners,e)},le.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}(e._dataListeners),r=t.length;r--;)$.nextTick((function(){t[r]&&t[r].$forceUpdate()}))}),{deep:!0})},le.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},le.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},pe.vm.get=function(){return this._vm},pe.messages.get=function(){return R(this._getMessages())},pe.dateTimeFormats.get=function(){return R(this._getDateTimeFormats())},pe.numberFormats.get=function(){return R(this._getNumberFormats())},pe.availableLocales.get=function(){return Object.keys(this.messages).sort()},pe.locale.get=function(){return this._vm.locale},pe.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},pe.fallbackLocale.get=function(){return this._vm.fallbackLocale},pe.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},pe.formatFallbackMessages.get=function(){return this._formatFallbackMessages},pe.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},pe.missing.get=function(){return this._missing},pe.missing.set=function(e){this._missing=e},pe.formatter.get=function(){return this._formatter},pe.formatter.set=function(e){this._formatter=e},pe.silentTranslationWarn.get=function(){return this._silentTranslationWarn},pe.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},pe.silentFallbackWarn.get=function(){return this._silentFallbackWarn},pe.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},pe.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},pe.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},pe.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},pe.warnHtmlInMessage.set=function(e){var t=this,r=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,r!==e&&("warn"===e||"error"===e)){var n=this._getMessages();Object.keys(n).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,n[e])}))}},pe.postTranslation.get=function(){return this._postTranslation},pe.postTranslation.set=function(e){this._postTranslation=e},pe.sync.get=function(){return this._sync},pe.sync.set=function(e){this._sync=e},le.prototype._getMessages=function(){return this._vm.messages},le.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},le.prototype._getNumberFormats=function(){return this._vm.numberFormats},le.prototype._warnDefault=function(e,t,r,n,i,o){if(!O(r))return r;if(this._missing){var a=this._missing.apply(null,[e,t,n,i]);if(E(a))return a}if(this._formatFallbackMessages){var s=I.apply(void 0,i);return this._render(t,o,s.params,t)}return t},le.prototype._isFallbackRoot=function(e){return!e&&!O(this._root)&&this._fallbackRoot},le.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},le.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},le.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},le.prototype._interpolate=function(e,t,r,n,i,o,a){if(!t)return null;var s,c=this._path.getPathValue(t,r);if(w(c)||k(c))return c;if(O(c)){if(!k(t))return null;if(!E(s=t[r])&&!T(s))return null}else{if(!E(c)&&!T(c))return null;s=c}return E(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(e,t,s,n,"raw",o,a)),this._render(s,i,o,r)},le.prototype._link=function(e,t,r,n,i,o,a){var s=r,c=s.match(oe);for(var u in c)if(c.hasOwnProperty(u)){var l=c[u],p=l.match(ae),d=p[0],f=p[1],h=l.replace(d,"").replace(se,"");if(A(a,h))return s;a.push(h);var m=this._interpolate(e,t,h,n,"raw"===i?"string":i,"raw"===i?void 0:o,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;m=g._translate(g._getMessages(),g.locale,g.fallbackLocale,h,n,i,o)}m=this._warnDefault(e,h,m,n,w(o)?o:[o],i),this._modifiers.hasOwnProperty(f)?m=this._modifiers[f](m):ce.hasOwnProperty(f)&&(m=ce[f](m)),a.pop(),s=m?s.replace(l,m):s}return s},le.prototype._createMessageContext=function(e,t,r,n){var i=this,o=w(e)?e:[],a=x(e)?e:{},s=this._getMessages(),c=this.locale;return{list:function(e){return o[e]},named:function(e){return a[e]},values:e,formatter:t,path:r,messages:s,locale:c,linked:function(e){return i._interpolate(c,s[c]||{},e,null,n,void 0,[e])}}},le.prototype._render=function(e,t,r,n){if(T(e))return e(this._createMessageContext(r,this._formatter||ue,n,t));var i=this._formatter.interpolate(e,r,n);return i||(i=ue.interpolate(e,r,n)),"string"!==t||E(i)?i:i.join("")},le.prototype._appendItemToChain=function(e,t,r){var n=!1;return A(e,t)||(n=!0,t&&(n="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),r&&r[t]&&(n=r[t]))),n},le.prototype._appendLocaleToChain=function(e,t,r){var n,i=t.split("-");do{var o=i.join("-");n=this._appendItemToChain(e,o,r),i.splice(-1,1)}while(i.length&&!0===n);return n},le.prototype._appendBlockToChain=function(e,t,r){for(var n=!0,i=0;i0;)o[a]=arguments[a+4];if(!e)return"";var s=I.apply(void 0,o);this._escapeParameterHtml&&(s.params=M(s.params));var c=s.locale||t,u=this._translate(r,c,this.fallbackLocale,e,n,"string",s.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(o))}return u=this._warnDefault(c,e,u,n,o,"string"),this._postTranslation&&null!=u&&(u=this._postTranslation(u,e)),u},le.prototype.t=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(r))},le.prototype._i=function(e,t,r,n,i){var o=this._translate(r,t,this.fallbackLocale,e,n,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}return this._warnDefault(t,e,o,n,[i],"raw")},le.prototype.i=function(e,t,r){return e?(E(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,r)):""},le.prototype._tc=function(e,t,r,n,i){for(var o,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!e)return"";void 0===i&&(i=1);var c={count:i,n:i},u=I.apply(void 0,a);return u.params=Object.assign(c,u.params),a=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((o=this)._t.apply(o,[e,t,r,n].concat(a)),i)},le.prototype.fetchChoice=function(e,t){if(!e||!E(e))return null;var r=e.split("|");return r[t=this.getChoiceIndex(t,r.length)]?r[t].trim():e},le.prototype.tc=function(e,t){for(var r,n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];return(r=this)._tc.apply(r,[e,this.locale,this._getMessages(),null,t].concat(n))},le.prototype._te=function(e,t,r){for(var n=[],i=arguments.length-3;i-- >0;)n[i]=arguments[i+3];var o=I.apply(void 0,n).locale||t;return this._exist(r[o],e)},le.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},le.prototype.getLocaleMessage=function(e){return R(this._vm.messages[e]||{})},le.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},le.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,P(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},le.prototype.getDateTimeFormat=function(e){return R(this._vm.dateTimeFormats[e]||{})},le.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},le.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,P(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},le.prototype._clearDateTimeFormat=function(e,t){for(var r in t){var n=e+"__"+r;this._dateTimeFormatters.hasOwnProperty(n)&&delete this._dateTimeFormatters[n]}},le.prototype._localizeDateTime=function(e,t,r,n,i){for(var o=t,a=n[o],s=this._getLocaleChain(t,r),c=0;c0;)t[r]=arguments[r+1];var n=this.locale,i=null;return 1===t.length?E(t[0])?i=t[0]:x(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key)):2===t.length&&(E(t[0])&&(i=t[0]),E(t[1])&&(n=t[1])),this._d(e,n,i)},le.prototype.getNumberFormat=function(e){return R(this._vm.numberFormats[e]||{})},le.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},le.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,P(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},le.prototype._clearNumberFormat=function(e,t){for(var r in t){var n=e+"__"+r;this._numberFormatters.hasOwnProperty(n)&&delete this._numberFormatters[n]}},le.prototype._getNumberFormatter=function(e,t,r,n,i,o){for(var a=t,s=n[a],c=this._getLocaleChain(t,r),u=0;u0;)t[r]=arguments[r+1];var n=this.locale,i=null,o=null;return 1===t.length?E(t[0])?i=t[0]:x(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key),o=Object.keys(t[0]).reduce((function(e,r){var n;return A(b,r)?Object.assign({},e,((n={})[r]=t[0][r],n)):e}),null)):2===t.length&&(E(t[0])&&(i=t[0]),E(t[1])&&(n=t[1])),this._n(e,n,i,o)},le.prototype._ntp=function(e,t,r,n){if(!le.availabilities.numberFormat)return[];if(!r)return(n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t)).formatToParts(e);var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),r,n),o=i&&i.formatToParts(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,r,n)}return o||[]},Object.defineProperties(le.prototype,pe),Object.defineProperty(le,"availabilities",{get:function(){if(!ne){var e="undefined"!=typeof Intl;ne={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return ne}}),le.install=H,le.version="8.26.1";var de=le;i.default.use(de);var fe=new de({locale:"en_US",fallbackLocale:"en_US",messages:function(){const e=r("4b3b"),t={};return e.keys().forEach(r=>{const n=r.match(/([A-Za-z0-9-_]+)\./i);if(n&&n.length>1){const i=n[1];t[i]=e(r)}}),t}()});const he="production",me="https://registration.unraid.net",ge="https://unraid.net/preflight",ve=Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_GRAPH_URL||null,be=(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_APIKEY,{url:me,name:"UnraidRegistrationWizard",width:600,height:810}),ye={errorMessage:"",errorMessageSubtext:"",loading:!0,submissionFrom:null,darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"},csrf:null,postMessageError:null,isLaunchpadOpen:!1,triggerUPC:!1,ts:null,deviceCount:0,flashproduct:null,flashvendor:null,guid:"",regGuid:"",keyfile:null,servername:null,serverdesc:null,wanip:sessionStorage.getItem("upc_wanip")||null,site:null,wanFQDN:null,state:"",reggen:0,registered:null,internalip:null,internalport:null,protocol:null,license:"",expiretime:null,regWizTime:null,rawServerState:null,plgPath:null,guidRegistered:!1,guidValid:null,guidValidationRunning:!1,replaceable:null,guidForValidation:null,guidBlacklisted:null,id:null,isPopUpOpen:!1,popUpWindow:"",regAtOpen:null,forumaccount:null,userEmail:"",username:"",avatar:"",userPassword:"",apikey:"",ipsValidated:!1,accountAction:null,keyServerAction:"",licenseAction:null,receivedSuccessNewServerState:null,purchaseWindow:{url:new URL(ge),name:"UnraidPurchaseLicense",width:1198,height:900,sendSessionToPopUp:!0},redeemWindow:{url:new URL(ge+"?r=1"),name:"UnraidPurchaseLicense",width:1198,height:900,sendSessionToPopUp:!0},wizardWindow:be,signInPayload:{...be,url:be.url+"/#/sign-in"},signUpPayload:{...be,url:be.url+"/#/sign-up"},signOutPayload:{...be,url:be.url+"/#/sign-out",width:600,height:500},extendTrialPayload:{...be,url:be.url+"/#/extend-trial"},recoverKeyPayload:{...be,url:be.url+"/#/recover-key"},replaceKeyPayload:{...be,url:be.url+"/#/replace-key"},troubleshootPayload:{...be,url:be.url+"/#/troubleshoot"},locale:"en_US",messages:null,graphOnline:!1,graphReconnected:!1,myServers:[],myServersLoading:!1,myServersError:null,myServersErrorShowSupportBtn:!1,myServersEnv:null,apiVersion:null,cloud:null,hideMyServers:!1,osVersion:null,plgVersion:null,hasRemoteApikey:null,config:null,hasUnraidNetSSL:!1,flashBackupEnabled:!1,extraOrigins:[],myServersOutage:{enabled:!0,message:{heading:"My Servers Update",main:"Please update to the latest version of the My Servers plugin",link:"/Plugins",linkSameTab:!0}},devEnv:!1,signOutTriggered:!1,apiReport:null,osGui:!0};var we=r("6ddc"),xe=r.n(we);const _e="GUID_NOT_RECEIVED",Ee=!(!window.opener||window.opener===window),Se=Ee?window.opener.parent:window.parent,ke=[ge,me,"https://launchpad.unraid.test:8081","https://launchpad.unraid.test:6969","https://registration.unraid.net","https://registration-dev.unraid.net","https://registration-dev-logs.unraid.net","https://unraid.net","https://staging.unraid.net","https://craft.unraid.test"],Oe='API error unexpected response for "owner".',Te=e=>{try{return[null,JSON.parse(e)]}catch(e){return[e]}},Ie={actions:[],humanReadable:"",heading:"",message:"",messageCenter:!1,error:!1,withKey:!1},Re={...Ie,humanReadable:fe.tc("stateData.ENOFLASH.humanReadable"),error:{heading:fe.tc("stateData.ENOFLASH.error.heading"),message:fe.tc("stateData.ENOFLASH.error.message"),signInToFix:!1}};let Ae="";const Ce={statePhpPath:e=>`/plugins/${e.plgPath||"dynamix.unraid.net"}/include/state.php`,myServersCfgPath:e=>(e.plgPath||"Unraid.net")+"/myservers.cfg",requireGuidValidation:e=>!Ee||e.guidRegistered,validApiKeyLength:e=>64===e.apikey.length,validApiKeyForUpc:e=>!!e.apikey&&e.apikey.startsWith("unupc_"),showExpiretime:e=>("TRIAL"===e.state||"EEXPIRED"===e.state)&&e.expiretime>0,trialExtensionEligible:e=>!(e.reggen&&!(e.reggen<2)),signedOutWithKey:(e,t)=>!(!t.stateData.withKey||e.registered),stateData:(e,t)=>{switch(e.state){case"ENOKEYFILE":return{...Ie,actions:[e.registered?"signOut":"register"],humanReadable:fe.tc("stateData.ENOKEYFILE.humanReadable"),heading:e.registered?fe.tc("stateData.ENOKEYFILE.heading.registered"):fe.tc("stateData.ENOKEYFILE.heading.notRegistered"),message:e.registered?fe.tc("stateData.ENOKEYFILE.message.registered"):fe.tc("stateData.ENOKEYFILE.message.notRegistered"),messageCenter:!0};case"TRIAL":return{...Ie,actions:[e.registered?"signOut":"register",e.registered?"purchase":null,e.registered?"continueTrial":null],humanReadable:fe.tc("stateData.TRIAL.humanReadable"),heading:fe.tc("stateData.TRIAL.heading"),message:fe.tc("stateData.TRIAL.message"),withKey:!0};case"EEXPIRED":return{...Ie,actions:[e.registered?"signOut":"register",e.registered&&t.trialExtensionEligible?"extend":null,e.registered?"purchase":null],humanReadable:fe.tc("stateData.EEXPIRED.humanReadable"),error:{heading:fe.tc("stateData.EEXPIRED.heading"),message:t.trialExtensionEligible?fe.tc("stateData.EEXPIRED.message.extensionEligible"):fe.tc("stateData.EEXPIRED.message.extensionNotEligible")},withKey:!0};case"BASIC":return{...Ie,actions:[e.registered?"signOut":"register",e.registered&&t.requireGuidValidation?"upgrade":null],humanReadable:fe.tc("stateData.BASIC.humanReadable"),heading:fe.tc("basicPlusPro.heading"),message:e.registered?e.guidRegistered?fe.tc("basicPlusPro.message.upgradeEligible"):"":fe.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"PLUS":return{...Ie,actions:[e.registered?"signOut":"register",e.registered&&t.requireGuidValidation?"upgrade":null],humanReadable:fe.tc("stateData.PLUS.humanReadable"),heading:fe.tc("basicPlusPro.heading"),message:e.registered?e.guidRegistered?fe.tc("basicPlusPro.message.upgradeEligible"):"":fe.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"PRO":return{...Ie,actions:[e.registered?"signOut":"register",e.registered?"close":null],humanReadable:fe.tc("stateData.PRO.humanReadable"),heading:fe.tc("basicPlusPro.heading"),message:e.registered?"":fe.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"EGUID":return null===e.replaceable&&(Ae=fe.tc("stateData.EGUID.error.message.replacementEligible")),e.replaceable&&(Ae=fe.tc("stateData.EGUID.error.message.replacementEligible")),!1===e.replaceable&&e.guidBlacklisted&&(Ae=fe.tc("stateData.EGUID.error.message.default")+'
Your Unraid registration key is ineligible for replacement as it is blacklisted.'),!1===e.replaceable&&!1===e.guidBlacklisted&&(Ae=`${fe.tc("stateData.EGUID.error.message.default")}
${fe.tc("stateData.EGUID.error.message.replacementIneligible")}`),{...Ie,actions:[e.registered?"signOut":"register",e.registered?"purchase":null,e.registered?"replace":null],humanReadable:fe.tc("stateData.EGUID.humanReadable"),error:{heading:fe.tc("stateData.EGUID.error.heading"),message:Ae,signInToFix:!0}};case"EGUID1":return{...Ie,actions:[e.registered?"signOut":"register",e.registered?"purchase":null],humanReadable:fe.tc("stateData.EGUID1.humanReadable"),error:{heading:fe.tc("stateData.EGUID1.error.heading"),message:fe.tc("stateData.EGUID1.error.message"),signInToFix:!0}};case"ENOKEYFILE2":return{...Ie,actions:[e.registered?"signOut":"register",e.registered?"purchase":null,e.registered&&t.requireGuidValidation?"recover":null],humanReadable:fe.tc("stateData.ENOKEYFILE2.humanReadable"),error:{heading:fe.tc("stateData.ENOKEYFILE2.error.heading"),message:fe.tc("stateData.ENOKEYFILE2.error.message"),signInToFix:!0}};case"ETRIAL":return{...Ie,actions:[e.registered?"signOut":"register",e.registered&&t.requireGuidValidation?"purchase":null],humanReadable:fe.tc("stateData.ETRIAL.humanReadable"),error:{heading:fe.tc("stateData.ETRIAL.error.heading"),message:fe.tc("stateData.ETRIAL.error.message"),signInToFix:!0}};case"ENOKEYFILE1":return{...Ie,humanReadable:fe.tc("stateData.ENOKEYFILE1.humanReadable"),error:{heading:fe.tc("stateData.ENOKEYFILE1.error.heading"),message:fe.tc("stateData.ENOKEYFILE1.error.message"),signInToFix:!1}};case"ENOFLASH":case"ENOFLASH1":case"ENOFLASH2":case"ENOFLASH3":case"ENOFLASH4":case"ENOFLASH5":case"ENOFLASH6":case"ENOFLASH7":return Re;case"EBLACKLISTED":return{...Ie,humanReadable:fe.tc("stateData.EBLACKLISTED.humanReadable"),error:{heading:fe.tc("stateData.EBLACKLISTED.error.heading"),message:fe.tc("stateData.EBLACKLISTED.error.message"),signInToFix:!1}};case"EBLACKLISTED1":return{...Ie,humanReadable:fe.tc("stateData.EBLACKLISTED1.humanReadable"),error:{heading:fe.tc("stateData.EBLACKLISTED1.error.heading"),message:fe.tc("stateData.EBLACKLISTED1.error.message"),signInToFix:!1}};case"EBLACKLISTED2":return{...Ie,humanReadable:fe.tc("stateData.EBLACKLISTED2.humanReadable"),error:{heading:fe.tc("stateData.EBLACKLISTED2.error.heading"),message:fe.tc("stateData.EBLACKLISTED2.error.message"),signInToFix:!1}};case"ENOCONN":return{...Ie,humanReadable:fe.tc("stateData.ENOCONN.humanReadable"),error:{heading:fe.tc("stateData.ENOCONN.error.heading"),message:fe.tc("stateData.ENOCONN.error.message"),signInToFix:!1}};case"STALE":return{...Ie,humanReadable:fe.tc("stateData.STALE.humanReadable"),error:{heading:fe.tc("stateData.STALE.error.heading"),message:fe.tc("stateData.STALE.error.message"),signInToFix:!1}};default:return{...Ie}}},stateDataKeyActions:(e,t)=>!!(t.stateData.actions.includes("purchase")||t.stateData.actions.includes("upgrade")||t.stateData.actions.includes("recover")||t.stateData.actions.includes("replace")||t.stateData.actions.includes("extend")),keyTypeForPurchase:e=>{switch(e.state){case"BASIC":return"Basic";case"PLUS":return"Plus";case"PRO":return"Pro";default:return"Trial"}},isRemoteAccess:e=>e.wanFQDN||e.site&&e.site.includes("www.")&&e.site.includes("unraid.net"),noRemoteApikeyRegisteredWithPlg:e=>!(!e.registered||e.hideMyServers||"boolean"!=typeof e.hasRemoteApikey||e.hasRemoteApikey),errorTooManyDisks:e=>!(!e.config||e.config.valid||"INVALID"!==e.config.error),errorCertRequiresSignIn:(e,t)=>!(!(e.osVersion&&e.osVersion.includes("6.10.")&&e.hasUnraidNetSSL)||e.registered||t.stateData.error||"ENOKEYFILE"===e.state),allowedOrigins:e=>[...ke,...e.extraOrigins],myServersOutage:e=>({...e.apiVersion&&xe()(e.apiVersion,"2.36.3")&&!e.devMode&&!e.hideMyServers?e.myServersOutage:{enabled:!1}}),server:(e,t)=>({guid:e.guid||_e,regGuid:e.regGuid,guidRegistered:e.guidRegistered||e.regWizTime,guidValid:e.guidValid,hasRemoteApikey:e.hasRemoteApikey,regWizTime:e.regWizTime,keyfile:e.keyfile,keyTypeForPurchase:t.keyTypeForPurchase,flashproduct:e.flashproduct,flashvendor:e.flashvendor,servername:e.servername,serverdesc:e.serverdesc,internalip:e.internalip,site:e.site,wanFQDN:e.wanFQDN,state:e.state,internalport:e.internalport,protocol:e.protocol,registered:e.registered,reggen:e.reggen,userEmail:e.userEmail,expiretime:e.expiretime,ts:e.ts,locale:e.locale,deviceCount:e.deviceCount,plgPath:e.plgPath,plgVersion:e.plgVersion,osVersion:e.osVersion,apiVersion:e.apiVersion,extraOrigins:e.extraOrigins,errorMessage:()=>!t.stateData.error&&e.myServersError&&e.myServersErrorShowSupportBtn?e.myServersError:!t.stateData.error&&e.cloud&&e.cloud.error&&e.myServersErrorShowSupportBtn?e.cloud.error:null,apiReport:e.apiReport,osGui:e.osGui})};var Ne=r("786a"),Pe=r.n(Ne),De=r("626e");const Me=((e,t)=>{void 0===t&&(t={keys:[],values:[]});const r=t.keys,n=void 0===r?[]:r,i=t.values,o=void 0===i?[]:i,a=(e,t)=>{const r=De.key(e)||De.value(t),i=n.some(t=>t.test(e))||o.some(e=>e.test(t));return r||i};return{map:t=>Pe.a.default(t).map(t=>!!a((void 0).key,t)&&(void 0).update(e)),forEach:t=>{Pe.a.default(t).forEach(t=>{a((void 0).key,t)&&(void 0).update(e)})}}})("[REDACTED]",{keys:["guid"],values:[]}),Le={...Object.fromEntries(Object.entries(console).map(([e,t])=>{if("debug"===e)return[e,()=>{}];if("function"==typeof method){const r=t.bind(console);return[e,(e,...t)=>t.length>=1?r(e,...t.map(e=>Me.map(e))):r(e)]}return[e,t]}))},Ue={SET_APP_ERROR_MESSAGE(e,t){const[r,n]=Te(t);n&&!r||!t||(e.errorMessage=t),n||!1!==t&&""!==t||(e.errorMessage=""),n&&n.error&&(e.errorMessage=n.error),e.errorMessage&&Le.error("[APP_ERROR]: %s",e.errorMessage)},SET_APP_ERROR_MESSAGE_SUBTEXT(e,t){e.errorMessageSubtext=t,e.errorMessageSubtext&&Le.error("[APP_ERROR]: %s",e.errorMessageSubtext)},SET_LOADING_STATE(e,t){Le.debug("[SET_LOADING_STATE]: %o",t),e.loading=t},SET_IS_LAUNCHPAD_OPEN(e,t){Le.debug("[SET_IS_LAUNCHPAD_OPEN]: %o",t),e.isLaunchpadOpen=t},SET_STATE(e,t){Le.debug("[SET_STATE]: %o",t),e.state=t},SET_CONFIG(e,t){Le.debug("[SET_CONFIG]: %o",t),e.config=t},CHANGE_GUID_REGISTERED(e,t){Le.debug("[CHANGE_GUID_REGISTERED]: %o",t),e.guidRegistered=t},CHANGE_GUID_VALID(e,t){Le.debug("[CHANGE_GUID_VALID]: %o",t),e.guidValid=t},CHANGE_GUID_VALIDATION_RUNNING(e,t){Le.debug("[CHANGE_GUID_VALIDATION_RUNNING]: %o",t),e.guidValidationRunning=t},CHANGE_GUID_FOR_VALIDATION(e,t){Le.debug("[CHANGE_GUID_FOR_VALIDATION]: %o",t),e.guidForValidation=t},CHANGE_GUID_BLACKLISTED(e,t){Le.debug("[CHANGE_GUID_BLACKLISTED]: %o",t),e.guidBlacklisted=t},CHANGE_REPLACEABLE(e,t){Le.debug("[CHANGE_REPLACEABLE]: %o",t),e.replaceable=t},CHANGE_POP_UP_WINDOW(e,t){Le.debug("[CHANGE_POP_UP_WINDOW]: %o",t),e.popUpWindow=t,e.isPopUpOpen=!!t,e.regAtOpen=null},STATE_AT_OPEN(e,t){e.regAtOpen=t},MUTATE_KEYSERVER_RESPONSE(e,t){Le.debug("[MUTATE_KEYSERVER_RESPONSE]: %o",t),t.license&&(e.license=t.license),t.trial&&(e.keyfile=t.trial),t.apikey&&(e.apikey=t.apikey),t.validated&&(e.ipsValidated=t.validated),t.email&&(e.userEmail=t.email),t.password&&(e.userPassword=t.password),(t.action||t.keyServerAction)&&(e.keyServerAction=t.action||t.keyServerAction),t.username&&(e.username=t.username),t.avatar&&(e.avatar=t.avatar)},SET_TRIAL(e,t){Le.debug("[SET_TRIAL]: %o",t),e.license=t.license,e.keyfile=t.trial,e.keyServerAction="extendTrial"},SET_USER_EMAIL(e,t){Le.debug("[SET_USER_EMAIL]: %s",t),e.userEmail=t},SET_FULL_SERVER_STATE(e,t){if(Le.debug("[SET_FULL_SERVER_STATE] start %o",t),!t)return Le.error("[SET_FULL_SERVER_STATE] No state data…🤬");let r=t;return(r.registered||0===r.registered)&&(r.registered=Boolean(Number(r.registered))),(r.hasRemoteApikey||0===r.hasRemoteApikey)&&(r.hasRemoteApikey=Boolean(Number(r.hasRemoteApikey))),r.email&&(r={...r,userEmail:r.email},delete r.email),Le.debug("[SET_FULL_SERVER_STATE] ✨ mutateData ✨ %o",{state:e,mutateData:r}),e=Object.assign(e,r),!0},SET_RAW_SERVER_STATE:(e,t)=>Ee?(e.rawServerState=t,Le.debug("[SET_RAW_SERVER_STATE] %o",t)):Le.debug("[SET_RAW_SERVER_STATE] ❌ skipped not needed in non-pop-up ❌ %o",{CAN_POST_MESSAGE:Ee}),SIGN_OUT(e){Le.debug("[SIGN_OUT]: %s","✨"),e.registered=!1,e.license="",e.keyfile="",e.apikey="",e.ipsValidated=!1,e.userEmail="",e.userPassword="",e.username="",e.avatar=""},SUBMISSION_FROM(e,t){Le.debug("[SUBMISSION_FROM]: %s",t),e.submissionFrom=t},SET_WANIP(e,t){Le.debug("[SET_WANIP]: %s",t),e.wanip=t,sessionStorage.setItem("upc_wanip",t)},SET_SERVERDESC(e,t){Le.debug("[SET_SERVERDESC]: %s",t),e.serverdesc=t},SET_SITE(e,t){Le.debug("[SET_SITE]: %s",t),e.site=t},SET_CSRF(e,t){Le.debug("[SET_CSRF]: %s",t),e.csrf=t},LICENSE_PINGBACK(e,t){Le.debug("[LICENSE_PINGBACK]: %o",t),e.licenseAction=t},ACCOUNT_PINGBACK(e,t){Le.debug("[ACCOUNT_PINGBACK]: %o",t),e.accountAction=t},RECEIVED_SUCCESS_NEW_SERVERSTATE(e,t){Le.debug("[RECEIVED_SUCCESS_NEW_SERVERSTATE]: %o",t),e.receivedSuccessNewServerState=t},SET_UPTIME(e,t){Le.debug("[SET_UPTIME]: %s",t),e.uptime=t},SET_EXPIRE_TIME(e,t){Le.debug("[SET_EXPIRE_TIME]: %s",t),e.expiretime=t},SET_REGWIZ_TIME(e,t){Le.debug("[SET_REGWIZ_TIME]: %s",t),e.regWizTime=t},CHANGE_GUID_FORUMACCOUNT(e,t){Le.debug("[CHANGE_GUID_FORUMACCOUNT]: %s",t),e.forumaccount=t},SET_LOCALE(e,t){Le.debug("[SET_LOCALE]: %s",t),e.locale=t},LOCALE_MESSAGES(e,t){const[r,n]=Te(decodeURIComponent(t));r?Le.warn("[LOCALE_MESSAGES]: %o",r):(Le.debug("[LOCALE_MESSAGES]: %o",n),e.messages=n)},SET_API_KEY(e,t){Le.debug("[SET_API_KEY]: %s",t),e.apikey=t},SET_GRAPH_ONLINE(e,t){Le.debug("[SET_GRAPH_ONLINE]: %o",t),e.graphOnline=t},SET_GRAPH_RECONNECTED(e,t){Le.debug("[SET_GRAPH_RECONNECTED]: %o",t),e.graphReconnected=t},SET_MY_SERVERS(e,t){Le.debug("[SET_MY_SERVERS]: %o",t),e.myServers=[...t]},SET_MY_SERVERS_LOADING(e,t){Le.debug("[SET_MY_SERVERS_LOADING]: %o",t),e.myServersLoading=t},SET_MY_SERVERS_ERROR(e,t){t?Le.error("[SET_MY_SERVERS_ERROR]: %o",t):Le.debug("[SET_MY_SERVERS_ERROR] unset"),e.myServersError=t?t.replace("Graphql","unraid-api").replace("offline","stopped"):null},SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN(e,t){Le.debug("[SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN]",t),e.myServersErrorShowSupportBtn=t},SET_MY_SERVERS_ENV(e,t){Le.debug("[SET_MY_SERVERS_ENV]: %o",t),e.myServersEnv=t},SET_MY_SERVERS_API_VERSION(e,t){Le.debug("[SET_MY_SERVERS_API_VERSION]: %o",t),e.apiVersion=t},TRIGGER_UPC(e,t){Le.debug("[TRIGGER_UPC]: %o",t),e.triggerUPC=t},SET_HIDE_MY_SERVERS(e,t){Le.debug("[SET_HIDE_MY_SERVERS]: %o",t),e.hideMyServers=!!t},SET_PLG_PATH:(e,t)=>"dynamix.my.servers"!==t?Le.warn("[SET_PLG_PATH] value not allowed",t):(Le.debug("[SET_PLG_PATH]: %o",t),e.plgPath=t,!0),SET_POST_MESSAGE_ERROR(e,t){e.postMessageError=t,e.postMessageError&&Le.error("[SET_POST_MESSAGE_ERROR]: %o",e.postMessageError)},SET_OWNER(e,t){Le.debug("[SET_OWNER]: %o",t),e.username=t&&t.username?t.username:"",e.avatar=t&&t.avatar?t.avatar:"",e.registered=!(!t||!t.username)},SET_REGISTRATION_SUB(e,t){Le.debug("[SET_REGISTRATION_SUB]: %o",t),t.keyfile&&(e.keyfile=t.keyFile.contents),t.expiration&&(e.expiretime=t.expiration)},SET_DEV_MODE(e,t){Le.debug("[SET_DEV_MODE]: %o",t),e.devEnv=t},SET_SIGN_OUT_TRIGGERED(e,t){Le.debug("[SET_SIGN_OUT_TRIGGERED]: %o",t),e.signOutTriggered=t},SET_API_EXECUTE_RESPONSE(e,t){Le.debug("[SET_API_EXECUTE_RESPONSE]: %o",t),e.apiReport=t},SET_MY_SERVERS_CLOUD(e,t){Le.debug("[SET_MY_SERVERS_CLOUD]: %o",t),e.cloud=t}};var je=function(){return(je=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,Ve.a&&(e.prototype[Ve.a]=t)}function ze(e){return(ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Be(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index120){for(var d=Math.floor(c/80),f=c%80,h=[],m=0;m0||$e(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||$e(0,"column in locationOffset is 1-indexed and must be positive")};!function(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}(Je);var Ze=r("04b4"),et=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function tt(){return this.lastToken=this.token,this.token=this.lookahead()}function rt(){var e=this.token;if(e.kind!==et.EOF)do{e=e.next||(e.next=ot(this,e))}while(e.kind===et.COMMENT);return e}function nt(e,t,r,n,i,o,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=o,this.next=null}function it(e){return isNaN(e)?et.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function ot(e,t){var r=e.source,n=r.body,i=n.length,o=function(e,t,r){var n=e.length,i=t;for(;i=i)return new nt(et.EOF,i,i,a,s,t);var c=n.charCodeAt(o);switch(c){case 33:return new nt(et.BANG,o,o+1,a,s,t);case 35:return function(e,t,r,n,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new nt(et.COMMENT,t,s,r,n,i,a.slice(t+1,s))}(r,o,a,s,t);case 36:return new nt(et.DOLLAR,o,o+1,a,s,t);case 38:return new nt(et.AMP,o,o+1,a,s,t);case 40:return new nt(et.PAREN_L,o,o+1,a,s,t);case 41:return new nt(et.PAREN_R,o,o+1,a,s,t);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new nt(et.SPREAD,o,o+3,a,s,t);break;case 58:return new nt(et.COLON,o,o+1,a,s,t);case 61:return new nt(et.EQUALS,o,o+1,a,s,t);case 64:return new nt(et.AT,o,o+1,a,s,t);case 91:return new nt(et.BRACKET_L,o,o+1,a,s,t);case 93:return new nt(et.BRACKET_R,o,o+1,a,s,t);case 123:return new nt(et.BRACE_L,o,o+1,a,s,t);case 124:return new nt(et.PIPE,o,o+1,a,s,t);case 125:return new nt(et.BRACE_R,o,o+1,a,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,r,n,i){var o=e.body,a=o.length,s=t+1,c=0;for(;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new nt(et.NAME,t,s,r,n,i,o.slice(t,s))}(r,o,a,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,n,i,o){var a=e.body,s=r,c=t,u=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw Ke(e,c,"Invalid number, unexpected digit after 0: ".concat(it(s),"."))}else c=at(e,c,s),s=a.charCodeAt(c);if(46===s&&(u=!0,s=a.charCodeAt(++c),c=at(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=at(e,c,s),s=a.charCodeAt(c)),46===s||69===s||101===s)throw Ke(e,c,"Invalid number, expected digit but got: ".concat(it(s),"."));return new nt(u?et.FLOAT:et.INT,t,c,n,i,o,a.slice(t,c))}(r,o,c,a,s,t);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?function(e,t,r,n,i,o){var a=e.body,s=t+3,c=s,u=0,l="";for(;s=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw Ke(e,i,"Invalid number, expected digit but got: ".concat(it(o),"."))}function st(e,t,r,n){return ct(e)<<12|ct(t)<<8|ct(r)<<4|ct(n)}function ct(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}Ge(nt,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));var ut=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});var lt=function(){function e(e,t){var r="string"==typeof e?new Je(e):e;r instanceof Je||$e(0,"Must provide Source. Received: ".concat(Object(Fe.a)(r))),this._lexer=function(e,t){var r=new nt(et.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:r,token:r,line:1,lineStart:0,advance:tt,lookahead:rt}}(r),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(et.NAME);return{kind:Xe.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:Xe.a.DOCUMENT,definitions:this.many(et.SOF,this.parseDefinition,et.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(et.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(et.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(et.BRACE_L))return{kind:Xe.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,r=this.parseOperationType();return this.peek(et.NAME)&&(t=this.parseName()),{kind:Xe.a.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(et.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(et.PAREN_L,this.parseVariableDefinition,et.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:Xe.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(et.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(et.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(et.DOLLAR),{kind:Xe.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:Xe.a.SELECTION_SET,selections:this.many(et.BRACE_L,this.parseSelection,et.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(et.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(et.COLON)?(e=n,t=this.parseName()):t=n,{kind:Xe.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(et.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(et.PAREN_L,t,et.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(et.COLON),{kind:Xe.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:Xe.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(et.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(et.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(et.NAME)?{kind:Xe.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:Xe.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:Xe.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:Xe.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case et.BRACKET_L:return this.parseList(e);case et.BRACE_L:return this.parseObject(e);case et.INT:return this._lexer.advance(),{kind:Xe.a.INT,value:t.value,loc:this.loc(t)};case et.FLOAT:return this._lexer.advance(),{kind:Xe.a.FLOAT,value:t.value,loc:this.loc(t)};case et.STRING:case et.BLOCK_STRING:return this.parseStringLiteral();case et.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:Xe.a.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:Xe.a.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:Xe.a.ENUM,value:t.value,loc:this.loc(t)});case et.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:Xe.a.STRING,value:e.value,block:e.kind===et.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:Xe.a.LIST,values:this.any(et.BRACKET_L,(function(){return t.parseValueLiteral(e)}),et.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:Xe.a.OBJECT,fields:this.any(et.BRACE_L,(function(){return t.parseObjectField(e)}),et.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(et.COLON),{kind:Xe.a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(et.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(et.AT),{kind:Xe.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(et.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(et.BRACKET_R),e={kind:Xe.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(et.BANG)?{kind:Xe.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:Xe.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===et.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(et.STRING)||this.peek(et.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.many(et.BRACE_L,this.parseOperationTypeDefinition,et.BRACE_R);return{kind:Xe.a.SCHEMA_DEFINITION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(et.COLON);var r=this.parseNamedType();return{kind:Xe.a.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:Xe.a.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Xe.a.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(et.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(et.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(et.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(et.BRACE_L)&&this._lexer.lookahead().kind===et.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(et.BRACE_L,this.parseFieldDefinition,et.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(et.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:Xe.a.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(et.PAREN_L,this.parseInputValueDef,et.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(et.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(et.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:Xe.a.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:Xe.a.INTERFACE_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:Xe.a.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(et.EQUALS)){this.expectOptionalToken(et.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(et.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:Xe.a.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(et.BRACE_L,this.parseEnumValueDefinition,et.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:Xe.a.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:Xe.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(et.BRACE_L,this.parseInputValueDef,et.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===et.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(et.BRACE_L,this.parseOperationTypeDefinition,et.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:Xe.a.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:Xe.a.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:Xe.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Xe.a.INTERFACE_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Xe.a.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Xe.a.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Xe.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(et.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:Xe.a.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(et.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(et.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==ut[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new pt(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw Ke(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(dt(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==et.NAME||t.value!==e)throw Ke(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(dt(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===et.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return Ke(this._lexer.source,t.start,"Unexpected ".concat(dt(t)))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n},e}();function pt(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function dt(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}Ge(pt,(function(){return{start:this.start,end:this.end}}));var ft=new Map,ht=new Map,mt=!0,gt=!1;function vt(e){return e.replace(/[\s,]+/g," ").trim()}function bt(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=function(e){return vt(e.source.body.substring(e.start,e.end))}(e.loc),o=ht.get(n);o&&!o.has(i)?mt&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||ht.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e)})),je(je({},e),{definitions:r})}function yt(e){var t=vt(e);if(!ft.has(t)){var r=function(e,t){return new lt(e,t).parseDocument()}(e,{experimentalFragmentVariables:gt});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");ft.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(bt(r)))}return ft.get(t)}function wt(e){for(var t=[],r=1;r0}var Xt,Jt=function(e){function t(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,a=r.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,s.message=o||function(e){var t="";return Kt(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"})),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=t.prototype,s}return Object(Rt.c)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(Xt||(Xt={}));var Zt=function(e){function t(t){var r=t.queryManager,n=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=n,a.variables=n.variables||{},a.queryId=r.generateQueryId(),a.shouldSubscribe=o;var s=Object(At.m)(n.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=r,a}return Object(Rt.c)(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=e.subscribe(n)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:Wt.error}}var t,r=this.queryManager.getCurrentQueryResult(this),n=r.data,i=r.partial,o=this.queryManager.queryStore.get(this.queryId),a=this.options.fetchPolicy,s="network-only"===a||"no-cache"===a;if(o){var c=o.networkStatus;if(function(e,t){return void 0===t&&(t="none"),e&&(e.networkError||"none"===t&&Kt(e.graphQLErrors))}(o,this.options.errorPolicy))return{data:void 0,loading:!1,networkStatus:c,error:new Jt({graphQLErrors:o.graphQLErrors,networkError:o.networkError})};o.variables&&(this.options.variables=Object(Rt.a)(Object(Rt.a)({},this.options.variables),o.variables),this.variables=this.options.variables),t={data:n,loading:Ht(c),networkStatus:c},o.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=o.graphQLErrors)}else{var u=s||i&&"cache-only"!==a;t={data:n,loading:u,networkStatus:u?Wt.loading:Wt.ready}}return i||this.updateLastResult(Object(Rt.a)(Object(Rt.a)({},t),{stale:!1})),Object(Rt.a)(Object(Rt.a)({},t),{partial:i})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(Ct.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new Dt.a(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(Ct.a)(this.variables,e)||(this.variables=Object(Rt.a)(Object(Rt.a)({},this.variables),e)),Object(Ct.a)(this.options.variables,this.variables)||(this.options.variables=Object(Rt.a)(Object(Rt.a)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(Rt.a)(Object(Rt.a)({},this.options),{fetchPolicy:t}),Xt.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(Dt.b)(e.updateQuery,2);var r=Object(Rt.a)(Object(Rt.a)({},e.query?e:Object(Rt.a)(Object(Rt.a)(Object(Rt.a)({},this.options),e),{variables:Object(Rt.a)(Object(Rt.a)({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,Xt.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:r.variables})})),t.queryManager.stopQuery(n),i}),(function(e){throw t.queryManager.stopQuery(n),e}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(Rt.a)(Object(Rt.a)({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r=e.fetchPolicy;return this.setVariables(this.options.variables,t!==r&&("cache-only"===t||"standby"===t||"network-only"===r),e.fetchResults)},t.prototype.setVariables=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(Ct.a)(e,this.variables)?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,o=r.document,a=Object(At.I)((function(){return e(n,{variables:i})}));a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){rr(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(At.f)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;r&&!r.error&&(r.error=er)}catch(e){}var n=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),n&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,r=this.queryId;this.shouldSubscribe&&t.addObservableQuery(r,this),this.options.pollInterval&&(rr(this),t.startPollingQuery(this.options,r));var n=function(t){e.updateLastResult(Object(Rt.a)(Object(Rt.a)({},e.lastResult),{errors:t.graphQLErrors,networkStatus:Wt.error,loading:!1})),tr(e.observers,"error",e.lastError=t)};t.observeQuery(r,this.options,{next:function(r){if(e.lastError||e.isDifferentFromLastResult(r)){var n=e.updateLastResult(r),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then((function(i){var a=e.variables;e.variables=e.options.variables=i,!r.loading&&n&&"cache-only"!==s&&t.transform(o).serverQuery&&!Object(Ct.a)(a,i)?e.refetch():tr(e.observers,"next",r)})):tr(e.observers,"next",r)}},error:n}).catch(n)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(Yt);function er(e){}function tr(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function rr(e){var t=e.options.fetchPolicy;Object(Dt.b)("cache-first"!==t&&"cache-only"!==t,3)}var nr=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),ir=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(Dt.b)(!t||t.document===e.document||Object(Ct.a)(t.document,e.document),19);var r,n=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==Wt.loading&&(Object(Ct.a)(t.variables,e.variables)||(n=!0,i=t.variables)),r=n?Wt.setVariables:e.isPoll?Wt.poll:e.isRefetch?Wt.refetch:Wt.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:r,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=Wt.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=Kt(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=Wt.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=Wt.ready))},e.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=Wt.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},e.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];r&&(r.networkError=null,r.previousVariables=null,t&&(r.networkStatus=Wt.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(r){e.indexOf(r)<0?t.stopQuery(r):t.store[r].networkStatus=Wt.loading}))},e}();var or=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(At.A)(t.resolvers,e)})):this.resolvers=Object(At.A)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return Object(Rt.b)(this,void 0,void 0,(function(){return Object(Rt.d)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then((function(e){return Object(Rt.a)(Object(Rt.a)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(At.s)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(At.C)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(Rt.a)(Object(Rt.a)({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(Dt.b)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(Rt.b)(this,void 0,void 0,(function(){return Object(Rt.d)(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(Rt.a)(Object(Rt.a)({},t),e.exportedVariables)}))]:[2,Object(Rt.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(Qt.b)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return Qt.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(At.d)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,i,o){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Object(Rt.b)(this,void 0,void 0,(function(){var a,s,c,u,l,p,d,f,h;return Object(Rt.d)(this,(function(m){return a=Object(At.l)(e),s=Object(At.j)(e),c=Object(At.g)(s),u=a.operation,l=u?function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(u):"Query",d=(p=this).cache,f=p.client,h={fragmentMap:c,context:Object(Rt.a)(Object(Rt.a)({},r),{cache:d,client:f}),variables:n,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return Object(Rt.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c=this;return Object(Rt.d)(this,(function(u){return n=r.fragmentMap,i=r.context,o=r.variables,a=[t],s=function(e){return Object(Rt.b)(c,void 0,void 0,(function(){var s,c;return Object(Rt.d)(this,(function(u){return Object(At.F)(e,o)?Object(At.t)(e)?[2,this.resolveField(e,t,r).then((function(t){var r;void 0!==t&&a.push(((r={})[Object(At.E)(e)]=t,r))}))]:(Object(At.v)(e)?s=e:(s=n[e.name.value],Object(Dt.b)(s,7)),s&&s.typeCondition&&(c=s.typeCondition.name.value,r.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(s.selectionSet,t,r).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Object(At.B)(a)}))]}))}))},e.prototype.resolveField=function(e,t,r){return Object(Rt.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c,u,l,p,d=this;return Object(Rt.d)(this,(function(f){return n=r.variables,i=e.name.value,o=Object(At.E)(e),a=i!==o,s=t[o]||t[i],c=Promise.resolve(s),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=t.__typename||r.defaultOperationType,(l=this.resolvers&&this.resolvers[u])&&((p=l[a?i:o])&&(c=Promise.resolve(p(t,Object(At.b)(e,n),r.context,{field:e,fragmentMap:r.fragmentMap}))))),[2,c.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?d.resolveSubSelectedArray(e,t,r):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t,r):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0})))},e}();function ar(e){var t=new Set,r=null;return new Yt((function(n){return t.add(n),r=r||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(n)&&!t.size&&r&&(r.unsubscribe(),r=null)}}))}var sr=Object.prototype.hasOwnProperty,cr=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=void 0!==r&&r,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,c=void 0!==s&&s,u=e.clientAwareness,l=void 0===u?{}:u,p=e.localState,d=e.assumeImmutableResults;this.mutationStore=new nr,this.queryStore=new ir,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(At.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=n,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=l,this.localState=p||new or({cache:i.getCache()}),this.ssrMode=c,this.assumeImmutableResults=!!d}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(e){e(new Dt.a(8))}))},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,c=void 0!==s&&s,u=e.update,l=e.errorPolicy,p=void 0===l?"none":l,d=e.fetchPolicy,f=e.context,h=void 0===f?{}:f;return Object(Rt.b)(this,void 0,void 0,(function(){var e,o,s,l=this;return Object(Rt.d)(this,(function(f){switch(f.label){case 0:return Object(Dt.b)(t,9),Object(Dt.b)(!d||"no-cache"===d,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,h)]:[3,2];case 1:r=f.sent(),f.label=2;case 2:return o=function(){var e={};return i&&l.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var o=n.queryName;o&&sr.call(i,o)&&(e[r]={updater:i[o],query:l.queryStore.get(r)})}})),e},this.mutationStore.initMutation(e,t,r),this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:o(),update:u,optimisticResponse:n}),this.broadcastQueries(),s=this,[2,new Promise((function(i,l){var f,m;s.getObservableFromLink(t,Object(Rt.a)(Object(Rt.a)({},h),{optimisticResponse:n}),r,!1).subscribe({next:function(n){Object(At.q)(n)&&"none"===p?m=new Jt({graphQLErrors:n.errors}):(s.mutationStore.markMutationResult(e),"no-cache"!==d&&s.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:o(),update:u}),f=n)},error:function(t){s.mutationStore.markMutationError(e,t),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),s.setQuery(e,(function(){return{document:null}})),l(new Jt({networkError:t}))},complete:function(){if(m&&s.mutationStore.markMutationError(e,m),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),m)l(m);else{"function"==typeof a&&(a=a(f));var t=[];Kt(a)&&a.forEach((function(e){if("string"==typeof e)s.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())}));else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(s.query(r))}})),Promise.all(c?t:[]).then((function(){s.setQuery(e,(function(){return{document:null}})),"ignore"===p&&f&&Object(At.q)(f)&&delete f.errors,i(f)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,r,n){return Object(Rt.b)(this,void 0,void 0,(function(){var i,o,a,s,c,u,l,p,d,f,h,m,g,v,b,y,w,x,_=this;return Object(Rt.d)(this,(function(E){switch(E.label){case 0:return i=t.metadata,o=void 0===i?null:i,a=t.fetchPolicy,s=void 0===a?"cache-first":a,c=t.context,u=void 0===c?{}:c,l=this.transform(t.query).document,p=this.getVariables(l,t.variables),this.transform(l).hasClientExports?[4,this.localState.addExportedVariables(l,p,u)]:[3,2];case 1:p=E.sent(),E.label=2;case 2:if(t=Object(Rt.a)(Object(Rt.a)({},t),{variables:p}),h=f="network-only"===s||"no-cache"===s,f||(m=this.dataStore.getCache().diff({query:l,variables:p,returnPartialData:!0,optimistic:!1}),g=m.complete,v=m.result,h=!g||"cache-and-network"===s,d=v),b=h&&"cache-only"!==s&&"standby"!==s,Object(At.s)(["live"],l)&&(b=!0),y=this.idCounter++,w="no-cache"!==s?this.updateQueryWatch(e,l,t):void 0,this.setQuery(e,(function(){return{document:l,lastRequestId:y,invalidated:!0,cancel:w}})),this.invalidate(n),this.queryStore.initQuery({queryId:e,document:l,storePreviousVariables:b,variables:p,isPoll:r===Xt.poll,isRefetch:r===Xt.refetch,metadata:o,fetchMoreForQueryId:n}),this.broadcastQueries(),b){if(x=this.fetchRequest({requestId:y,queryId:e,document:l,options:t,fetchMoreForQueryId:n}).catch((function(t){throw function(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:(y>=_.getQuery(e).lastRequestId&&(_.queryStore.markQueryError(e,t,n),_.invalidate(e),_.invalidate(n),_.broadcastQueries()),new Jt({networkError:t}))})),"cache-and-network"!==s)return[2,x];x.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!b),this.invalidate(e),this.invalidate(n),this.transform(l).hasForcedResolvers?[2,this.localState.runResolvers({document:l,remoteResult:{data:d},context:u,variables:p,onlyRunForcedResolvers:!0}).then((function(r){return _.markQueryResult(e,r,t,n),_.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:d}])}}))}))},e.prototype.markQueryResult=function(e,t,r,n){var i=r.fetchPolicy,o=r.variables,a=r.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,n,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,r){var n=this;function i(e,t){if(r[e])try{r[e](t)}catch(e){}}return function(r,o){if(n.invalidate(e,!1),r){var a=n.getQuery(e),s=a.observableQuery,c=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var l=Ht(r.networkStatus),p=s&&s.getLastResult(),d=!(!p||p.networkStatus===r.networkStatus),f=t.returnPartialData||!o&&r.previousVariables||d&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!l||f){var h=Kt(r.graphQLErrors),m=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===m&&h||r.networkError)return i("error",new Jt({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var g=void 0,v=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&n.setQuery(e,(function(){return{newData:null}})),g=o.result,v=!o.complete;else{var b=s&&s.getLastError(),y="none"!==m&&(b&&b.graphQLErrors)!==r.graphQLErrors;if(p&&p.data&&!y)g=p.data,v=!1;else{var w=n.dataStore.getCache().diff({query:c,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});g=w.result,v=!w.complete}}var x=v&&!(t.returnPartialData||"cache-only"===u),_={data:x?p&&p.data:g,loading:l,networkStatus:r.networkStatus,stale:x};"all"===m&&h&&(_.errors=r.graphQLErrors),i("next",_)}catch(e){i("error",new Jt({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache(),n=r.transformDocument(e),i=Object(At.D)(r.transformForLink(n)),o=this.localState.clientQuery(n),a=this.localState.serverQuery(i),s={document:n,hasClientExports:Object(At.r)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:Object(At.h)(Object(At.m)(n))},c=function(e){e&&!t.has(e)&&t.set(e,s)};c(e),c(n),c(o),c(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(Rt.a)(Object(Rt.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(Dt.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=Object(Rt.a)({},e);return new Zt({queryManager:this,options:r,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(Dt.b)(e.query,12),Object(Dt.b)("Document"===e.query.kind,13),Object(Dt.b)(!e.returnPartialData,14),Object(Dt.b)(!e.pollInterval,15),new Promise((function(r,n){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,n),i.result().then(r,n).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,r){var n=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();i&&(t=i.data)}return t},callback:function(t){n.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new Dt.a(16))}));var e=[];return this.queries.forEach((function(t,r){t.observableQuery&&e.push(r)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(r)},e.prototype.observeQuery=function(e,t,r){return this.addQueryListener(e,this.queryListenerForObserver(e,t,r)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.variables;r=this.transform(r).document,i=this.getVariables(r,i);var o=function(e){return t.getObservableFromLink(r,{},e,!1).map((function(i){if(n&&"no-cache"===n||(t.dataStore.markSubscriptionResult(i,r,e),t.broadcastQueries()),Object(At.q)(i))throw new Jt({graphQLErrors:i.errors});return i}))};if(this.transform(r).hasClientExports){var a=this.localState.addExportedVariables(r,i).then(o);return new Yt((function(e){var t=null;return a.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,n=r.variables,i=r.query,o=r.fetchPolicy,a=r.returnPartialData,s=e.getLastResult(),c=this.getQuery(e.queryId).newData;if(c&&c.complete)return{data:c.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:n,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),l=u.result,p=u.complete;return{data:p||a?l:void 0,partial:!p}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var r=this.getQuery(e).observableQuery;Object(Dt.b)(r,17),t=r}else t=e;var n=t.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,r){t.invalidated&&t.listeners.forEach((function(n){n&&n(e.queryStore.get(r),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var i,o=this;void 0===n&&(n=this.queryDeduplication);var a=this.transform(e).serverQuery;if(a){var s=this.inFlightLinkObservables,c=this.link,u={query:a,variables:r,operationName:Object(At.n)(a)||void 0,context:this.prepareContext(Object(Rt.a)(Object(Rt.a)({},t),{forceFetch:!n}))};if(t=u.context,n){var l=s.get(a)||new Map;s.set(a,l);var p=JSON.stringify(r);if(!(i=l.get(p))){l.set(p,i=ar(Bt(c,u)));var d=function(){l.delete(p),l.size||s.delete(a),f.unsubscribe()},f=i.subscribe({next:d,error:d,complete:d})}}else i=ar(Bt(c,u))}else i=Yt.of({data:{}}),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(i=function(e,t){return new Yt((function(r){var n=r.next,i=r.error,o=r.complete,a=0,s=!1,c={next:function(e){++a,new Promise((function(r){r(t(e))})).then((function(e){--a,n&&n.call(r,e),s&&c.complete()}),(function(e){--a,i&&i.call(r,e)}))},error:function(e){i&&i.call(r,e)},complete:function(){s=!0,a||o&&o.call(r)}},u=e.subscribe(c);return function(){return u.unsubscribe()}}))}(i,(function(e){return o.localState.runResolvers({document:h,remoteResult:e,context:t,variables:r})}))),i},e.prototype.fetchRequest=function(e){var t,r,n=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,c=e.fetchMoreForQueryId,u=s.variables,l=s.errorPolicy,p=void 0===l?"none":l,d=s.fetchPolicy;return new Promise((function(e,l){var f=n.getObservableFromLink(a,s.context,u),h="fetchRequest:"+o;n.fetchQueryRejectFns.set(h,l);var m=function(){n.fetchQueryRejectFns.delete(h),n.setQuery(o,(function(e){e.subscriptions.delete(g)}))},g=f.map((function(e){if(i>=n.getQuery(o).lastRequestId&&(n.markQueryResult(o,e,s,c),n.queryStore.markQueryResult(o,e,c),n.invalidate(o),n.invalidate(c),n.broadcastQueries()),"none"===p&&Kt(e.errors))return l(new Jt({graphQLErrors:e.errors}));if("all"===p&&(r=e.errors),c||"no-cache"===d)t=e.data;else{var f=n.dataStore.getCache().diff({variables:u,query:a,optimistic:!1,returnPartialData:!0}),h=f.result;(f.complete||s.returnPartialData)&&(t=h)}})).subscribe({error:function(e){m(),l(e)},complete:function(){m(),e({data:t,errors:r,loading:!1,networkStatus:Wt.ready,stale:!1})}});n.setQuery(o,(function(e){e.subscriptions.add(g)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),n=Object(Rt.a)(Object(Rt.a)({},r),t(r));this.queries.set(e,n)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(Rt.a)(Object(Rt.a)({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==Wt.ready&&t.networkStatus!==Wt.error},e.prototype.startPollingQuery=function(e,t,r){var n=this,i=e.pollInterval;if(Object(Dt.b)(i,18),!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);o||this.pollingInfoByQueryId.set(t,o={}),o.interval=i,o.options=Object(Rt.a)(Object(Rt.a)({},e),{fetchPolicy:"network-only"});var a=function(){var e=n.pollingInfoByQueryId.get(t);e&&(n.checkInFlight(t)?s():n.fetchQuery(t,e.options,Xt.poll).then(s,s))},s=function(){var e=n.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(a,e.interval))};r&&this.addQueryListener(t,r),s()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),ur=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,n,i){void 0===i&&(i=!1);var o=!Object(At.q)(e);i&&Object(At.q)(e)&&e.data&&(o=!0),!n&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){Object(At.q)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t,r=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(n){var i=r.cache;r.cache=n;try{r.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{r.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(At.q)(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.updateQueries;n&&Object.keys(n).forEach((function(i){var o=n[i],a=o.query,s=o.updater,c=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),u=c.result;if(c.complete){var l=Object(At.I)((function(){return s(u,{mutationResult:e.result,queryName:Object(At.n)(a.document)||void 0,queryVariables:a.variables})}));l&&r.push({result:l,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&Object(At.I)((function(){return n(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),lr=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,i=void 0!==n&&n,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,c=e.queryDeduplication,u=void 0===c||c,l=e.defaultOptions,p=e.assumeImmutableResults,d=void 0!==p&&p,f=e.resolvers,h=e.typeDefs,m=e.fragmentMatcher,g=e.name,v=e.version,b=e.link;if(!b&&f&&(b=zt.empty()),!b||!r)throw new Dt.a(4);this.link=b,this.cache=r,this.store=new ur(r),this.disableNetworkFetches=i||a>0,this.queryDeduplication=u,this.defaultOptions=l||{},this.typeDefs=h,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new or({cache:r,client:this,resolvers:f,fragmentMatcher:m}),this.queryManager=new cr({link:this.link,store:this.store,queryDeduplication:u,ssrMode:i,clientAwareness:{name:g,version:v},localState:this.localState,assumeImmutableResults:d,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(Rt.a)(Object(Rt.a)({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(Rt.a)(Object(Rt.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(Rt.a)(Object(Rt.a)({},this.defaultOptions.query),e)),Object(Dt.b)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(Rt.a)(Object(Rt.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(Rt.a)(Object(Rt.a)({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Bt(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();var pr=r("7506"),dr={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},fr=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},hr=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=new Dt.a(2);throw n.parseError=e,n}return r},mr=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.includeExtensions,o=e.useGETForQueries,a=Object(Rt.e)(e,["uri","fetch","includeExtensions","useGETForQueries"]);(function(e){if(!e&&"undefined"==typeof fetch)throw new Dt.a(1)})(n),n||(n=fetch);var s={http:{includeExtensions:i},options:a.fetchOptions,credentials:a.credentials,headers:a.headers};return new zt((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,r),i=e.getContext(),a={};if(i.clientAwareness){var c=i.clientAwareness,u=c.name,l=c.version;u&&(a["apollographql-client-name"]=u),l&&(a["apollographql-client-version"]=l)}var p,d=Object(Rt.a)({},a,i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},h=function(e,t){for(var r=[],n=2;n=300&&fr(t,r,"Response not successful: Received status code "+t.status),Array.isArray(r)||r.hasOwnProperty("data")||r.hasOwnProperty("errors")||fr(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),r}))}}(e)).then((function(e){return r.next(e),r.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))})),function(){p&&p.abort()}}))}))};var gr=function(e){function t(t){return e.call(this,mr(t).request)||this}return Object(Rt.c)(t,e),t}(zt);function vr(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:yr(e)}]}}function br(e,t){return{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:yr(e)}]}}function yr(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return yr(e[0]);var t=[];return Object.keys(e).forEach((function(r){var n={kind:"Field",name:{kind:"Name",value:r},selectionSet:yr(e[r])||void 0};t.push(n)})),{kind:"SelectionSet",selections:t}}var wr,xr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},_r=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(At.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(At.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t=e.id,r=e.data;if(void 0!==t){var n=null;try{n=this.read({rootId:t,optimistic:!1,query:xr})}catch(e){}var i=n&&n.__typename||"__ClientData",o=Object.assign({__typename:i},r);this.writeFragment({id:t,fragment:br(o,i),data:o})}else this.writeQuery({query:vr(r),data:r})},e}();wr||(wr={});var Er=null,Sr={},kr=1,Or="@wry/context:Slot",Tr=Array,Ir=Tr[Or]||function(){var e=function(){function e(){this.id=["slot",kr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Er;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Sr)break;return e!==Er&&(Er.slots[this.id]=t),!0}return Er&&(Er.slots[this.id]=Sr),!1},e.prototype.getValue=function(){if(this.hasValue())return Er.slots[this.id]},e.prototype.withValue=function(e,t,r,n){var i,o=((i={__proto__:null})[this.id]=e,i),a=Er;Er={parent:a,slots:o};try{return t.apply(n,r)}finally{Er=a}},e.bind=function(e){var t=Er;return function(){var r=Er;try{return Er=t,e.apply(this,arguments)}finally{Er=r}}},e.noContext=function(e,t,r){if(!Er)return e.apply(r,t);var n=Er;try{return Er=null,e.apply(r,t)}finally{Er=n}},e}();try{Object.defineProperty(Tr,Or,{value:Tr[Or]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function Rr(){}Ir.bind,Ir.noContext;var Ar=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Rr),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getEntry(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),Cr=new Ir,Nr=[],Pr=[];function Dr(e,t){if(!e)throw new Error(t||"assertion failure")}function Mr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Lr=function(){function e(t,r){this.fn=t,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(Dr(!this.recomputing,"already recomputing"),function(e){var t=Cr.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),jr(e)?Vr(t,e):Gr(t,e),t}(this)||!Br(this))return jr(this)?function(e){var t=Wr(e);return Cr.withValue(e,Ur,[e]),function(e){if("function"==typeof e.subscribe)try{Qr(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){e.dirty=!1,jr(e)||$r(e)}(e),t.forEach(Br),Mr(e.value)}(this):Mr(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Fr(this),Qr(this))},e.prototype.dispose=function(){var e=this;Wr(this).forEach(Br),Qr(this),this.parents.forEach((function(t){t.setDirty(),qr(t,e)}))},e.count=0,e}();function Ur(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function jr(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Fr(e){e.parents.forEach((function(t){return Vr(t,e)}))}function $r(e){e.parents.forEach((function(t){return Gr(t,e)}))}function Vr(e,t){if(Dr(e.childValues.has(t)),Dr(jr(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Pr.pop()||new Set;e.dirtyChildren.add(t),Fr(e)}function Gr(e,t){Dr(e.childValues.has(t)),Dr(!jr(t));var r=e.childValues.get(t);0===r.length?e.childValues.set(t,function(e){return e.slice(0)}(t.value)):function(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)||e.setDirty(),zr(e,t),jr(e)||$r(e)}function zr(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(Pr.length<100&&Pr.push(r),e.dirtyChildren=null))}function Br(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function Wr(e){var t=Nr;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(r,n){qr(e,n),t.push(n)}))),Dr(null===e.dirtyChildren),t}function qr(e,t){t.parents.delete(e),e.childValues.delete(t),zr(e,t)}function Qr(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Hr=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t}}(),Object.prototype.hasOwnProperty),rn=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=Jr((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){tn.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(r){t.set(r,e[r])})),Object.keys(this.data).forEach((function(r){tn.call(e,r)||t.delete(r)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function nn(e){return new rn(e)}var on=function(){function e(e){var t=this,r=void 0===e?{}:e,n=r.cacheKeyRoot,i=void 0===n?new Hr(At.e):n,o=r.freezeResults,a=void 0!==o&&o,s=this,c=s.executeStoreQuery,u=s.executeSelectionSet,l=s.executeSubSelectedArray;this.freezeResults=a,this.executeStoreQuery=Jr((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.query,r=e.rootValue,n=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(n.store instanceof rn)return i.lookup(n.store,t,a,JSON.stringify(o),r.id)}}),this.executeSelectionSet=Jr((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,r=e.rootValue,n=e.execContext;if(n.contextValue.store instanceof rn)return i.lookup(n.contextValue.store,t,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=Jr((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.execContext;if(n.contextValue.store instanceof rn)return i.lookup(n.contextValue.store,t,r,JSON.stringify(n.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(Rt.a)(Object(Rt.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,i=e.previousResult,o=e.returnPartialData,a=void 0===o||o,s=e.rootId,c=void 0===s?"ROOT_QUERY":s,u=e.fragmentMatcherFunction,l=e.config,p=Object(At.o)(r);n=Object(At.c)({},Object(At.h)(p),n);var d={store:t,dataIdFromObject:l&&l.dataIdFromObject,cacheRedirects:l&&l.cacheRedirects||{}},f=this.executeStoreQuery({query:r,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:d,variableValues:n,fragmentMatcher:u}),h=f.missing&&f.missing.length>0;return h&&!a&&f.missing.forEach((function(e){if(!e.tolerable)throw new Dt.a(8)})),i&&Object(Ct.a)(i,f.result)&&(f.result=i),{result:f.result,complete:!h}},e.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,a=void 0===o?sn:o,s=Object(At.l)(t),c=Object(At.j)(t),u={query:t,fragmentMap:Object(At.g)(c),contextValue:n,variableValues:i,fragmentMatcher:a};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:r,execContext:u})},e.prototype.executeSelectionSet=function(e){var t=this,r=e.selectionSet,n=e.rootValue,i=e.execContext,o=i.fragmentMap,a=i.contextValue,s=i.variableValues,c={result:null},u=[],l=a.store.get(n.id),p=l&&l.__typename||"ROOT_QUERY"===n.id&&"Query"||void 0;function d(e){var t;return e.missing&&(c.missing=c.missing||[],(t=c.missing).push.apply(t,e.missing)),e.result}return r.selections.forEach((function(e){var r;if(Object(At.F)(e,s))if(Object(At.t)(e)){var c=d(t.executeField(l,p,e,i));void 0!==c&&u.push(((r={})[Object(At.E)(e)]=c,r))}else{var f=void 0;if(Object(At.v)(e))f=e;else if(!(f=o[e.name.value]))throw new Dt.a(9);var h=f.typeCondition&&f.typeCondition.name.value,m=!h||i.fragmentMatcher(n,h,a);if(m){var g=t.executeSelectionSet({selectionSet:f.selectionSet,rootValue:n,execContext:i});"heuristic"===m&&g.missing&&(g=Object(Rt.a)(Object(Rt.a)({},g),{missing:g.missing.map((function(e){return Object(Rt.a)(Object(Rt.a)({},e),{tolerable:!0})}))})),u.push(d(g))}}})),c.result=Object(At.B)(u),this.freezeResults,c},e.prototype.executeField=function(e,t,r,n){var i=n.variableValues,o=n.contextValue,a=function(e,t,r,n,i,o){o.resultKey;var a=o.directives,s=r;(n||a)&&(s=Object(At.p)(s,n,a));var c=void 0;if(e&&void 0===(c=e[s])&&i.cacheRedirects&&"string"==typeof t){var u=i.cacheRedirects[t];if(u){var l=u[r];l&&(c=l(e,n,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&Object(At.H)({id:t,typename:e.__typename})}}))}}return void 0===c?{result:c,missing:[{object:e,fieldName:s,tolerable:!1}]}:(Object(At.w)(c)&&(c=c.json),{result:c})}(e,t,r.name.value,Object(At.b)(r,i),o,{resultKey:Object(At.E)(r),directives:Object(At.i)(r,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:r,array:a.result,execContext:n})):r.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:a.result,execContext:n})):(an(r,a.result),this.freezeResults,a)},e.prototype.combineExecResults=function(){for(var e,t=[],r=0;r=0)return!0;r[e].push(t)}else r[e]=[t];return!1}var fn={fragmentMatcher:new en,dataIdFromObject:function(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var hn=Object.prototype.hasOwnProperty,mn=function(e){function t(t,r,n){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=r,i.transaction=n,i}return Object(Rt.c)(t,e),t.prototype.toObject=function(){return Object(Rt.a)(Object(Rt.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return hn.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(cn),gn=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new Hr(At.e),r.silenceBroadcast=!1,r.config=Object(Rt.a)(Object(Rt.a)({},fn),t),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new rn:new cn,r.optimisticData=r.data,r.storeWriter=new ln,r.storeReader=new on({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var n=r,i=n.maybeBroadcastWatch;return r.maybeBroadcastWatch=Jr((function(e){return i.call(r,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return n.data instanceof rn?n.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),r}return Object(Rt.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:r,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:r,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new Dt.a(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],r=0,n=this.optimisticData;n instanceof mn;)n.optimisticId===e?++r:t.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new mn(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(At.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(_r),vn=r("633a"),bn=function(e){function t(t){var r=e.call(this)||this;return t instanceof vn.SubscriptionClient?r.subscriptionClient=t:r.subscriptionClient=new vn.SubscriptionClient(t.uri,t.options,t.webSocketImpl),r}return Object(Rt.c)(t,e),t.prototype.request=function(e){return this.subscriptionClient.request(e)},t}(zt);function yn(e){return new zt((function(t,r){return new Pt((function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var r=e.call(this)||this;return r.link=yn(t),r}Object(Rt.c)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(zt);var wn=function(){function e(e,t,r,n){var i=this;this.operation=e,this.nextLink=t,this.delayFor=r,this.retryIf=n,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(e){i.values.push(e);for(var t=0,r=i.observers;t=i)&&(r?r(n,t):!!n)}}(i),r}return Object(Rt.c)(t,e),t.prototype.request=function(e,t){var r=new wn(e,t,this.delayFor,this.retryIf);return r.start(),new Pt((function(e){return r.subscribe(e),function(){r.unsubscribe(e)}}))},t}(zt);const _n=new URL(ve||window.location.origin),En={},Sn=e=>{Le.debug("[createGraphqlClient]");const t=new zt((t,r)=>r(t).map(r=>{const{response:{headers:n}}=t.getContext();if(n){const t=n.get("x-environment")||null,r=n.get("x-unraid-api-version")||null;t&&e.commit("SET_MY_SERVERS_ENV",t),r&&e.commit("SET_MY_SERVERS_API_VERSION",r)}return r})).concat(new gr({uri:`${_n.protocol}//${_n.host}/graphql`})),r=`${_n.protocol.includes("https")?"wss://":"ws://"}${_n.host}/graphql`,n=new bn({uri:r,options:{timeout:65e3,reconnect:!0,connectionParams:{"x-api-key":e.state.apikey}}});let i;n.subscriptionClient.maxConnectTimeGenerator.setMin(3e3),n.subscriptionClient.onConnected(()=>{Le.debug("[🚀 wslink.onConnected 🚀]"),e.commit("SET_GRAPH_ONLINE",!0),e.state.myServersError&&e.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onReconnected(()=>{Le.debug("[🚀 wslink.onReconnected 🚀]"),e.commit("SET_GRAPH_ONLINE",!0),e.commit("SET_GRAPH_RECONNECTED",!0),e.state.myServersError&&e.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onDisconnected(()=>{Le.debug("[🚀 wslink.onDisconnected 🚀] 01"),e.state.graphOnline&&(clearTimeout(i),i=setTimeout(()=>{Le.debug("[🚀 wslink.onDisconnected 🚀] 02"),e.commit("SET_GRAPH_ONLINE",!1),e.state.myServersError||e.commit("SET_MY_SERVERS_ERROR","Disconnected from Unraid API")},150))});const o=Gt(({query:e})=>{const t=Object(At.l)(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation},n,t),a=function(e){return new zt((function(t,r){var n=Object(Rt.e)(t,[]);return new Pt((function(i){var o;return Promise.resolve(n).then((function(r){return e(r,t.getContext())})).then(t.setContext).then((function(){o=r(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)})})).catch(i.error.bind(i)),function(){o&&o.unsubscribe()}}))}))}((t,{headers:r})=>({headers:{...r,"x-api-key":e.state.apikey}})),s=yn(({graphQLErrors:t,networkError:r})=>{if(t){Le.error("[GraphQL error] %o",t);const r=t[0].message||t[0].error.message||"No error object - [UNRAID]";e.commit("SET_MY_SERVERS_ERROR",r)}if(r){Le.error("[Network error]",r);const t=r.message?r.message:r;e.commit("SET_MY_SERVERS_ERROR",t.includes("Unexpected token < in JSON at position 0")?"Unraid API • CORS Error":t)}e.commit("SET_MY_SERVERS_LOADING",!1)}),c=new xn({delay:{initial:300,max:1/0,jitter:!0},attempts:{max:1/0,retryIf:(t,r)=>(Le.debug("[retryLink - retryIf]",{error:t,_operation:r}),e.commit("SET_GRAPH_ONLINE",!1),!!t)}});return new lr({link:zt.from([c,s,a,o]),connectToDevTools:!1,cache:new gn,defaultOptions:{watchQuery:{fetchPolicy:"no-cache"},query:{fetchPolicy:"no-cache"},mutate:{fetchPolicy:"no-cache"},subscribe:{fetchPolicy:"no-cache",shouldResubscribe:!1}}})},kn=e=>{if(!e.state.apikey)return Le.debug("[getGraphqlClient] NO API KEY");if(Object.keys(En).includes(e.state.apikey))return Le.debug("[getGraphqlClient] found existing client %o",En[e.state.apikey]),En[e.state.apikey];const t=Sn(e);return En[e.state.apikey]=t,Le.debug("[getGraphqlClient] new client inbound %o",t),t},On=(e,t)=>{Le.debug("[detectOwnersResponseError]",{context:e,response:t}),(t.data.owner&&"root"===t.data.owner.username||!e.state.signOutTriggered&&!t.data.owner)&&(t.data.owner&&"root"===t.data.owner.username&&Le.error(Oe,t.data.owner),e.commit("SET_MY_SERVERS_ERROR",`${Oe} ${It()(e.state.apiVersion,"2.40.0")?"Please update your My Servers plugin to potentially fix this error. Thanks for working with us as we try to solve this bug.":"Please sign out and then sign back in to potentially fix this error. If you have already tried this please contact support. Thanks for working with us as we try to solve this bug."}`),e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!0)),t.data.owner&&"root"!==t.data.owner.username&&e.state.myServersError&&e.state.myServersError.includes(Oe)&&(e.commit("SET_MY_SERVERS_ERROR",""),e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!1))};var Tn=function(){return(Tn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&(r(i.reverse()[0]),n.clearMeasures&&n.clearMeasures(t),Nn.callbacks.delete(t),Nn.callbacks.size<1&&(Nn.observer.disconnect(),n.clearResourceTimings&&n.clearResourceTimings()),!0)},Nn={callbacks:new Map,observer:null,observe:function(e,t){if(e&&t){var r=An.a.polyfill("performance",{doThrow:!1});(function(e,t){return!Nn.observer&&e&&t&&(Nn.observer=new t((function(t){Nn.callbacks.forEach((function(r,n){Cn(t,n,r,e)}))})),e.clearResourceTimings&&e.clearResourceTimings()),Nn.observer})(r,An.a.polyfill("PerformanceObserver",{doThrow:!1}))&&(Cn(r,e,t,r)||(Nn.callbacks.size<1&&Nn.observer.observe({entryTypes:["resource","measure"]}),Nn.callbacks.set(e,t)))}}},Pn=Nn,Dn=function(e){this.error=e},Mn=function(){return(Mn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?r[0]+e+"?"+r[1]:this._url+e})},e.prototype.options=function(e,t){return void 0===t&&(t=!0),this.selfFactory({options:t?Rn(this._options,e):e})},e.prototype.query=function(e,t){return void 0===t&&(t=!1),this.selfFactory({url:$n(this._url,e,t)})},e.prototype.headers=function(e){return this.selfFactory({options:Rn(this._options,{headers:e||{}})})},e.prototype.accept=function(e){return this.headers({Accept:e})},e.prototype.content=function(e){var t;return this.headers(((t={})[jn]=e,t))},e.prototype.auth=function(e){return this.headers({Authorization:e})},e.prototype.catcher=function(e,t){var r=new Map(this._catchers);return r.set(e,t),this.selfFactory({catchers:r})},e.prototype.signal=function(e){return this.selfFactory({options:Mn(Mn({},this._options),{signal:e.signal})})},e.prototype.resolve=function(e,t){return void 0===t&&(t=!1),this.selfFactory({resolvers:t?[e]:Ln(Ln([],this._resolvers),[e])})},e.prototype.defer=function(e,t){return void 0===t&&(t=!1),this.selfFactory({deferredChain:t?[e]:Ln(Ln([],this._deferredChain),[e])})},e.prototype.middlewares=function(e,t){return void 0===t&&(t=!1),this.selfFactory({middlewares:t?e:Ln(Ln([],this._middlewares),e)})},e.prototype.method=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=null);var n=this.options(Mn(Mn({},t),{method:e})),i=n._options.headers;return function(e){var t=e._url,r=e._catchers,n=e._resolvers,i=e._middlewares,o=e._options,a=new Map(r),s=Rn(An.a.defaults,o),c=An.a.polyfill("AbortController",{doThrow:!1,instance:!0});!s.signal&&c&&(s.signal=c.signal);var u={ref:null,clear:function(){u.ref&&(clearTimeout(u.ref),u.ref=null)}},l=function(e){return function(t){return 0===e.length?t:1===e.length?e[0](t):e.reduceRight((function(r,n,i){return i===e.length-2?n(r(t)):n(r)}))}}(i)(An.a.polyfill("fetch"))(t,s),p=l.catch((function(e){throw new Dn(e)})).then((function(e){return u.clear(),e.ok?e:e[An.a.errorType||"text"]().then((function(t){var r=new Error(t);throw r[An.a.errorType||"text"]=t,r.status=e.status,r.response=e,r}))})),d=function(t){return t.catch((function(t){u.clear();var r=t instanceof Dn?t.error:t;if(t instanceof Dn&&a.has("__fromFetch"))return a.get("__fromFetch")(r,e);if(a.has(r.status))return a.get(r.status)(r,e);if(a.has(r.name))return a.get(r.name)(r,e);throw r}))},f=function(e){return function(t){return d(e?p.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e})):p.then((function(e){return t?t(e):e})))}},h={res:f(null),json:f("json"),blob:f("blob"),formData:f("formData"),arrayBuffer:f("arrayBuffer"),text:f("text"),perfs:function(e){return l.then((function(t){return Pn.observe(t.url,e)})),h},setTimeout:function(e,t){return void 0===t&&(t=c),u.clear(),u.ref=setTimeout((function(){return t.abort()}),e),h},controller:function(){return[c,h]},error:function(e,t){return a.set(e,t),h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return n.reduce((function(t,r){return r(t,e)}),h)}((n=r?"object"!=typeof r||i&&!Object.entries(i).every((function(e){var t=e[0],r=e[1];return t.toLowerCase()!==jn.toLowerCase()||r.startsWith(Un)}))?n.body(r):n.json(r):n)._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),n))},e.prototype.get=function(e){return this.method("GET",e)},e.prototype.delete=function(e){return this.method("DELETE",e)},e.prototype.put=function(e,t){return this.method("PUT",t,e)},e.prototype.post=function(e,t){return this.method("POST",t,e)},e.prototype.patch=function(e,t){return this.method("PATCH",t,e)},e.prototype.head=function(e){return this.method("HEAD",e)},e.prototype.opts=function(e){return this.method("OPTIONS",e)},e.prototype.replay=function(e){return this.method(this._options.method,e)},e.prototype.body=function(e){return this.selfFactory({options:Mn(Mn({},this._options),{body:e})})},e.prototype.json=function(e){var t,r=null===(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],r=e[1];return t.toLowerCase()===jn.toLowerCase()&&r.startsWith(Un)})))||void 0===t?void 0:t[1];return this.content(r||Un).body(JSON.stringify(e))},e.prototype.formData=function(e,t){return void 0===t&&(t=!1),this.body(function e(t,r,n,i){return void 0===r&&(r=!1),void 0===n&&(n=An.a.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(t).forEach((function(t){var o=t[0],a=t[1],s=i.reduce((function(e,t){return e?e+"["+t+"]":t}),null);if(s=s?s+"["+o+"]":o,a instanceof Array)for(var c=0,u=a;cLe.error(e));const Bn=zn("https://keys.lime-technology.com").catcher(e=>Le.error(e)),Wn=zn("https://wanip4.unraid.net/").catcher(e=>Le.error(e)),qn=zn("/webGui/include/InstallKey.php").catcher(e=>Le.error(e)),Qn=zn().catcher(e=>Le.error(e)),Hn=zn("/update.php").catcher(e=>Le.error(e)),Yn=zn("/webGui/include/UpdateDNS.php").catcher(e=>Le.error(e)),Kn=zn("/plugins/dynamix.my.servers/include/unraid-api.php").catcher(e=>Le.error(e));let Xn=0;const Jn=e=>{setTimeout(()=>{Yn.formUrl({csrf_token:e}).post().res(e=>Le.debug("[WebguiUpdateDns] %o",e)).catch(e=>Le.error("[WebguiUpdateDns] %o",e))},500)},Zn={openPopUp({commit:e,dispatch:t,state:r},n){if(Le.debug("[openPopUp] %o",n||"focus existing pop-up"),r.popUpWindow)return r.popUpWindow.focus();const i=((e,t,r,n)=>{const i=void 0!==window.screenLeft?window.screenLeft:window.screenX,o=void 0!==window.screenTop?window.screenTop:window.screenY,a=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,s=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,c=a/window.screen.availWidth>1?a/window.screen.availWidth:1,u=(a-r)/2/c+i,l=(s-n)/2/c+o,p=Object.entries({toolbar:"no",location:"yes",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",width:r/c,height:n/c,top:l,left:u}).reduce((e,t)=>e+`${t[0]}=${t[1]},`,"");return window.open(e,t,p)})(n.url,n.name,n.width,n.height),o=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,a=n.url.toString().includes("/preflight")?"#fff":"linear-gradient(to right, #E22828 0%, #ff8c2f 100%)";i.document.body.style.background=o?"#222":a;try{i.focus(),e("CHANGE_POP_UP_WINDOW",i),e("STATE_AT_OPEN",r.registered);const n=setInterval(()=>{r.popUpWindow||clearInterval(n),r.popUpWindow&&r.popUpWindow.closed&&(clearInterval(n),t("resetPopUp",{reloadWebGUI:!1}))},250);return window.onunload=()=>{r.popUpWindow&&!r.popUpWindow.closed&&r.popUpWindow.close()},!0}catch(e){return alert("Pop-up blocker detected.\nTo continue successfully please add this website to your browser's exeception list then refresh.")}},resetPopUp({commit:e,dispatch:t},r={reloadWebGUI:!0}){Le.debug("[resetPopUp] %o",r),e("CHANGE_POP_UP_WINDOW",null),t("updateServerState"),r.reloadWebGUI&&t("reloadWebGUI")},closePopUp({dispatch:e,state:t},r={reloadWebGUI:!1}){Le.debug("[closePopUp] %o",r),t.popUpWindow&&(t.popUpWindow.close(),e("resetPopUp",{reloadWebGUI:r.reloadWebGUI}))},reloadWebGUI(){Le.debug("[reloadWebGUI] %s","✨"),window.location.reload()},closePopUpFromPopUp({dispatch:e}){Le.debug("[closePopUpFromPopUp] %o"),e("resetPopUp"),window.close()},sendDataPostMessageToServer({state:e}){const t="SignOut"===e.submissionFrom?{event:"MYSERVERS_UNREGISTER"}:{event:"REG_WIZARD",keyfile:e.keyfile,license:e.license,email:e.userEmail,apikey:e.apikey,avatar:e.avatar,username:e.username,guid:e.guid};Le.debug("[sendDataPostMessageToServer] %o",t);try{return Se.postMessage(JSON.stringify(t),e.osGui?"*":e.site)}catch(e){return Ee||Le.warn("[sendDataPostMessageToServer] !CAN_POST_MESSAGE",t),Le.error("[sendDataPostMessageToServer] %o",e)}},requestUpdatedServerStateFromUpc({state:e}){Le.debug("[requestUpdatedServerStateFromUpc]");try{return Se.postMessage(JSON.stringify({event:"SUCCESS_NEW_STATE"}),e.osGui?"*":e.site)}catch(e){return Ee||Le.warn("[requestUpdatedServerStateFromUpc] !CAN_POST_MESSAGE",Ee),Le.error("[requestUpdatedServerStateFromUpc] %o",e)}},receivePostMessage({commit:e,dispatch:t,getters:r,state:n},i={event:null}){if(!i.event)return void Le.error("postMessage no event");Le.debug("[receivePostMessage] payload.event %o",i.event);const[o,a]=Te(i.event.data);if(o)return;Le.log("[receivePostMessage] payload.event.data.event %o",a.event);const s=i.event.origin,c=s===me,u=ge.includes(s),l=!!(a&&a.server&&a.server.site)&&s===a.server.site,p=s===n.site,d=!!(a&&a.server&&a.server.extraOrigins)&&a.server.extraOrigins.includes(s),f="SESSION"===a.event?l||d:p,h=c||u||f,m={"data.server.extraOrigins":a&&a.server?a.server.extraOrigins:"","data.server.site":a&&a.server?a.server.site:"","payload.event.origin":s,"state.site":n.site,pmOriginMatchesDataServerUrl:l,pmOriginMatchesStateSite:p,pmOriginIncludedInExtraOrigins:d,fromRegWiz:c,fromPurchase:u,fromWebGui:f,originAllowed:h};if(!h)return Le.error("[receivePostMessage] ❌ postMessage origin not allowed ❌ %o",m),e("SET_POST_MESSAGE_ERROR",m),void e("SET_RAW_SERVER_STATE",a.server);Le.debug("[receivePostMessage] originAllowed %o",m);const g=e=>{try{return Le.log("[receivePostMessage.sendBackPostMessage] %o",e.event),i.event.source.postMessage(JSON.stringify(e),n.osGui?"*":s)}catch(t){return Le.error("[sendBackPostMessage.catch] %o",{error:t,message:e})}},v=async e=>{if(!e)return Le.error("[installKey] missing license data: %s",e);let t=e.split("/");if(t=t[t.length-1].slice(0,-4).toUpperCase(),t===n.state)return g({event:"LICENSE_PINGBACK",message:"Failed to license new key – duplicate install detected",license:e,success:!1}),Le.error("[installKey] duplicate install detected",{state:n.state,keyType:t});Le.debug("[receivePostMessage.installKey] %o",e);return await qn.query({url:e}).get().res(t=>{Le.debug("[receivePostMessage.installKey] SUCCESS %o",t),setTimeout(()=>{Jn(n.csrf)},1e3),g({event:"LICENSE_PINGBACK",message:"New license key installed",license:e,success:!0})}).catch(t=>{Le.error("[receivePostMessage.installKey] FAILED: "+e,t),g({event:"LICENSE_PINGBACK",message:"Failed to license new key",license:e,success:!1})})},b=async()=>{Le.debug("[receivePostMessage.signOutUnraidNet] 👋");return await Hn.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",apikey:"",avatar:"",email:"",username:"",wanaccess:"no",...!n.hideMyServers&&{"#command":"/plugins/dynamix.my.servers/scripts/.nginx_reload"}}).post().res(t=>{Le.debug("[receivePostMessage.signOutUnraidNet] WebguiUpdate.res %o",t),e("SET_SIGN_OUT_TRIGGERED",!0),g({event:"ACCOUNT_PINGBACK",success:!0,type:"signOut",webGuiPathname:window.location.pathname})}).catch(e=>{Le.error(`[receivePostMessage.signOutUnraidNet] WebguiUpdate.catch Sign out ${n.servername} from Unraid.net failed 😢 %o`,e),g({event:"ACCOUNT_PINGBACK",success:!1,type:"signOut",webGuiPathname:window.location.pathname})})};switch(a.event){case"SESSION":Le.debug("[receivePostMessage] SESSION"),e("SET_FULL_SERVER_STATE",a.server),e("SET_RAW_SERVER_STATE",a.server),fe.mergeLocaleMessage(a.locale,a.messages),fe.locale=a.locale,Le.debug(`[receivePostMessage] SESSION ${fe.locale} locale & messages set`,fe.messages);break;case"PREFLIGHT_REQUEST":if(Le.debug("[receivePostMessage] PREFLIGHT_REQUEST"),!r.allowedOrigins.includes(s)){Le.error("[🙅♂️ ACCESS DENIED]");break}try{t("updateServerState").then(e=>{Le.debug("[receivePostMessage] PREFLIGHT_REQUEST.updateServerState.then %o",{res:e,"getters.server":r.server}),g({event:"SESSION",server:{...r.server},locale:fe.locale,messages:{...fe.messages[fe.locale]}})}).catch(e=>{Le.error("[receivePostMessage] PREFLIGHT_REQUEST.updateServerState.catch %o",e),g({event:"DELIVER_NEW_STATE",success:!1})})}catch(e){Le.error("[receivePostMessage] PREFLIGHT_REQUEST.updateServerState.trycatch %o",e),g({event:"DELIVER_NEW_STATE",success:!1})}break;case"LICENSE_PINGBACK":Le.debug("[receivePostMessage] LICENSE_PINGBACK"),e("LICENSE_PINGBACK",a);break;case"ACCOUNT_PINGBACK":Le.debug("[receivePostMessage] ACCOUNT_PINGBACK"),e("ACCOUNT_PINGBACK",a);break;case"DELIVER_NEW_STATE":Le.debug("[receivePostMessage] DELIVER_NEW_STATE %o",a);const i=!!n.license,o=n.licenseAction&&!n.licenseAction.success,c=n.state,u=a&&a.state?a.state:null,l=c===u;if(Le.debug("[receivePostMessage] DELIVER_NEW_STATE %o",{keyToInstall:i,failedKeyInstall:o,oldState:c,newState:u,potentiallyStaleState:l,deliverNewStateRetryCounter:Xn}),o){e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}if(i&&l&&Xn<6){setTimeout(()=>{Le.debug("[potentiallyStaleState] %o",{potentiallyStaleState:l}),Le.debug("[deliverNewStateRetryCounter] %o",{deliverNewStateRetryCounter:Xn}),t("requestUpdatedServerStateFromUpc"),Xn+=1},350*Xn);break}if(i&&l&&Xn>=6){e("SET_APP_ERROR_MESSAGE",`Failed to receive latest server info${n.licenseAction&&n.licenseAction.success?" after successful key install":""}. Please close this pop-up and refresh the webGUI.`),e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}e("SET_FULL_SERVER_STATE",a),e("SET_RAW_SERVER_STATE",a),e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now()),Xn=0;break;case"KEY_PURCHASE":Le.debug("[receivePostMessage] KEY_PURCHASE"),v(a.license),a.oem&&b();break;case"MYSERVERS_UNREGISTER":Le.debug("[receivePostMessage] MYSERVERS_UNREGISTER WebguiUpdate"),b();break;case"REG_WIZARD":Le.debug("[receivePostMessage] REG_WIZARD"),a.license&&v(a.license),Le.debug("[receivePostMessage] REG_WIZARD WebguiUpdate %o"),Hn.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",regWizTime:`${Date.now()}_${a.guid}`,...a.apikey&&{apikey:a.apikey},...a.email&&{email:a.email},...a.username&&{username:a.username},...a.avatar&&{avatar:a.avatar}}).post().res(t=>{Le.debug("[receivePostMessage] REG_WIZARD WebguiUpdate.res %o",t),a.license||Jn(n.csrf),e("SET_SIGN_OUT_TRIGGERED",!1),g({event:"ACCOUNT_PINGBACK",success:!0,type:"signIn",webGuiPathname:window.location.pathname})}).catch(e=>{Le.error("[WebguiUpdate] %o",e),g({event:"ACCOUNT_PINGBACK",success:!1,type:"signIn",webGuiPathname:window.location.pathname})});break;case"RELOAD":Le.debug("[receivePostMessage] RELOAD"),window.location.reload();break;case"SUCCESS_NEW_STATE":Le.debug("[receivePostMessage] SUCCESS_NEW_STATE");try{t("updateServerState").then(e=>{Le.debug("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.then"),g({...e,event:"DELIVER_NEW_STATE",success:!0})}).catch(e=>{Le.error("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.catch %o",e),g({event:"DELIVER_NEW_STATE",success:!1})})}catch(e){Le.error("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.trycatch %o",e),g({event:"DELIVER_NEW_STATE",success:!1})}break;case"REDIRECT_MAIN":Le.debug("[receivePostMessage] REDIRECT_MAIN"),window.location.href="/Main";break;case"REQUEST_API_REPORT":Le.debug("[receivePostMessage] REQUEST_API_REPORT");try{Kn.formUrl({csrf_token:n.csrf,command:"report",params:"-v"}).post().json(t=>{Le.debug("👼 [receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.json %o",t),e("SET_API_EXECUTE_RESPONSE",t.result),g({event:"API_EXECUTE_PINGBACK",result:t.result})}).catch(e=>{Le.error("[receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.catch failed to execute `unraid-api` report 😢 %o",e),g({event:"API_EXECUTE_PINGBACK",error:e})})}catch(e){Le.error("[receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.catch failed to execute `unraid-api` report 😢 %o",e),g({event:"API_EXECUTE_PINGBACK",error:e})}break;case"API_EXECUTE_PINGBACK":Le.debug("[receivePostMessage] API_EXECUTE_PINGBACK"),a&&a.result&&e("SET_API_EXECUTE_RESPONSE",a.result);break;default:Le.debug("[receivePostMessage] UNHANDLED_MESSAGE")}},setStateFromWebComponentProp({commit:e},t){Le.debug("[setStateFromWebComponentProp]");const[r,n]=Te(decodeURIComponent(t));return r?Le.error("[setStateFromWebComponentProp] %o",t):e("SET_FULL_SERVER_STATE",n)},async updateServerState({commit:e,dispatch:t,getters:r,state:n}){if(Le.debug("[updateServerState]"),me===window.location.origin)return Le.debug("[SKIPPED] updateServerState()");Le.debug("[updateServerState]",{"state.hideMyServers":n.hideMyServers,"!state.graphOnline":!n.graphOnline,"!getters.validApiKeyLength":!r.validApiKeyLength,"!getters.validApiKeyForUpc":!r.validApiKeyForUpc}),!n.hideMyServers&&n.graphOnline&&r.validApiKeyLength&&r.validApiKeyForUpc?(Le.debug("[updateServerState] via serverStateFromApi"),await t("serverStateFromApi")):(Le.debug("[updateServerState] via ",r.statePhpPath),await Qn.url(r.statePhpPath).get().json().then(t=>t?e("SET_FULL_SERVER_STATE",t):Le.error("[updateUpcFromStatePhp] no `res` skipping `SET_FULL_SERVER_STATE`")).catch(e=>{Le.error("[updateUpcFromStatePhp WebguiState.catch] %o",e),(e.toString().includes("Unexpected token")||e.toString().includes("503"))&&(window.location.href="/")}));const i=r.server;return Le.debug("[updateServerState] newState %o",i),i},async validateGuid({commit:e,getters:t,state:r}){await new Promise((n,i)=>{if(r.guidValidationRunning)return Le.debug("[validateGuid] already validating");e("CHANGE_GUID_VALIDATION_RUNNING",!0);const o=r.regWizTime?r.regWizTime.split("_")[1]:null,a=!!o&&o===r.guid;Le.debug("[validateGuid] %o",{guid:r.guid,regGuid:r.regGuid,regWizTimeGuid:o,previouslyRegistered:a});let s="GUID Invalid";if(!r.guid||r.guid===_e)return Le.debug(`[validateGuid] ${s} %o`,{"!state.guid":!r.guid,GUID_NOT_RECEIVED:_e}),s+=": not present",e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1),e("SET_STATE","EBLACKLISTED1"),e("SET_APP_ERROR_MESSAGE",s),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),n(!1);if(a&&!t.stateData.error)return Le.debug("[validateGuid] previouslyRegistered %s",r.guid),e("CHANGE_GUID_REGISTERED",!0),e("CHANGE_GUID_VALID",!0),e("CHANGE_GUID_FORUMACCOUNT",!0),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),n(!0);const c=r.guid.includes("000000000000");if(r.guid&&r.guid!==_e&&(c||27!==r.guid.length))return c?(s+=": Too many consecutive zeros",e("SET_STATE","EBLACKLISTED2")):(s+=": Not long enough",e("SET_STATE","EBLACKLISTED1")),e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1),e("SET_APP_ERROR_MESSAGE",s),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),i(new Error(s));r.regGuid||Le.warn("[validateGuid] state.regGuid empty. Getting regGuid from state.regWizTime.");const u=r.regGuid||o||"";e("CHANGE_GUID_FOR_VALIDATION","EGUID"===r.state?u:r.guid),e("CHANGE_GUID_BLACKLISTED",null);try{const t=Bn.url("/validate/guid").formUrl({guid:r.guidForValidation}).post().forbidden(t=>{let n;const[i,o]=Te(t.message);o&&!i||!t.message||(n=t.message),o&&o.error&&(n=o.error),Le.error("[validateGuid] POST.forbidden %o",n),n.includes("blacklisted")?(e("CHANGE_GUID_BLACKLISTED",!0),"EGUID"!==r.state?(e("SET_STATE","EBLACKLISTED"),e("SET_APP_ERROR_MESSAGE",n)):Le.warn("[validateGuid] skip EBLACKLISTED state overwrite")):n.includes("invalid GUID")&&("EGUID"!==r.state?(e("SET_STATE","EBLACKLISTED1"),e("SET_APP_ERROR_MESSAGE",n)):Le.warn("[validateGuid] skip EBLACKLISTED state overwrite")),e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1)}).json(t=>{Le.debug("[validateGuid] POST.json %o",t),t.registered&&e("CHANGE_GUID_REGISTERED",t.registered),e("CHANGE_GUID_FORUMACCOUNT",t.forumaccount||!1),e("CHANGE_GUID_VALID",!0),e("CHANGE_REPLACEABLE",t.replaceable)}).catch(t=>{Le.error("[validateGuid] POST.catch %o",t),e("SET_APP_ERROR_MESSAGE",t.message),i(new Error(t))}).finally(()=>{Le.debug("[validateGuid] POST.finally"),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1)});return n(t)}catch(t){return Le.error("[validateGuid] try/catch %o",t),e("SET_APP_ERROR_MESSAGE",t),e("CHANGE_GUID_VALIDATION_RUNNING",!1),i(new Error(t))}})},jumpToUpc({commit:e}){window.scrollTo({top:0,behavior:"smooth"}),e("TRIGGER_UPC",!0),setTimeout(()=>{e("TRIGGER_UPC",!1)},500)},async getWanIp({commit:e,state:t}){if(Le.debug("[getWanIp]"),t.wanip)return Le.debug("[getWanIp] SKIPPED",t.wanip);try{return e("SET_WANIP",await Wn.get().text())}catch(e){return Le.error("[getWanIp] Unable to get WAN IP")}},async executeUnraidApi({commit:e,state:t},r={command:"",param1:null}){Le.debug("[executeUnraidApi]",r);const{command:n,param1:i}=r;"start"===n&&e("SET_MY_SERVERS_LOADING",!0);return await Kn.formUrl({csrf_token:t.csrf,command:n,param1:i}).post().json(e=>{Le.debug("👼 [executeUnraidApi] json %o",e)}).catch(e=>{Le.error(`[executeUnraidApi] catch failed to execute unraid-api ${n} 😢 %o`,e)})},fetchServers:async e=>{Le.debug("[fetchServers]"),e.commit("SET_MY_SERVERS_LOADING",!0);const t=await kn(e).query({query:_t`query initialGetServers {
servers {
name
guid
@@ -86,7 +86,7 @@ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else
}
${St()(e.state.apiVersion,"2.27.0")?"config { error valid }":""}
${Ot()(e.state.apiVersion,"2.41.1")?"\n cloud {\n error\n apiKey {\n valid\n error\n }\n relay {\n status\n error\n }\n mothership {\n status\n error\n }\n }":""}
- }`,r=await kn(e).query({errorPolicy:"all",query:t});return Le.debug("[🪐 serverStateFromApi] response %o",r,e),On(e,r),e.commit("SET_MY_SERVERS_LOADING",!1),e.commit("SET_FULL_SERVER_STATE",((e,t)=>{const{data:r}=t;if(!r)return Le.error("[🪐 serverStateFromApi] response %o",t);const n={...r.owner&&"root"!==r.owner.username&&{avatar:r.owner.avatar,username:r.owner.username,registered:!0},...e.state.signOutTriggered&&{username:"",avatar:"",registered:!1},servername:r.info&&r.info.os?r.info.os.hostname:null,guid:r.flash?r.flash.guid:null,keyfile:r.registration&&r.registration.keyFile?r.registration.keyFile.contents:null,flashProduct:r.flash?r.flash.product:null,flashvendor:r.flash?r.flash.vendor:null,sendCrashInfo:r.crashReportingEnabled,reggen:r.vars?r.vars.regGen:null,state:r.vars?r.vars.regState:null,config:r.config?r.config:{error:r.vars?r.vars.configError:null,valid:!r.vars||r.vars.configValid},expiretime:r.registration&&r.registration.expiration?r.registration.expiration:0,...r.cloud&&{myServersCloud:r.cloud}};return Le.debug("[🪐 serverStateFromApi] mutated response %o",n),n})(e,r)),Le.debug("[🪐 serverStateFromApi] subscriptions %o",{skip:e.state.graphReconnected}),e.state.graphReconnected||(Le.debug("[🪐 serverStateFromApi] serverVarsSub"),kn(e).subscribe({query:_t`subscription serverVarsSub {
+ }`,r=await kn(e).query({errorPolicy:"all",query:t});return Le.debug("[🪐 serverStateFromApi] response %o",r,e),On(e,r),Ot()(e.state.apiVersion,"2.41.1")&&e.state.cloud&&e.state.cloud.error&&e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!0),e.commit("SET_MY_SERVERS_LOADING",!1),e.commit("SET_FULL_SERVER_STATE",((e,t)=>{const{data:r}=t;if(!r)return Le.error("[🪐 serverStateFromApi] response %o",t);const n={...r.owner&&"root"!==r.owner.username&&{avatar:r.owner.avatar,username:r.owner.username,registered:!0},...e.state.signOutTriggered&&{username:"",avatar:"",registered:!1},servername:r.info&&r.info.os?r.info.os.hostname:null,guid:r.flash?r.flash.guid:null,keyfile:r.registration&&r.registration.keyFile?r.registration.keyFile.contents:null,flashProduct:r.flash?r.flash.product:null,flashvendor:r.flash?r.flash.vendor:null,sendCrashInfo:r.crashReportingEnabled,reggen:r.vars?r.vars.regGen:null,state:r.vars?r.vars.regState:null,config:r.config?r.config:{error:r.vars?r.vars.configError:null,valid:!r.vars||r.vars.configValid},expiretime:r.registration&&r.registration.expiration?r.registration.expiration:0,...r.cloud&&{cloud:r.cloud}};return Le.debug("[🪐 serverStateFromApi] mutated response %o",n),n})(e,r)),Le.debug("[🪐 serverStateFromApi] subscriptions %o",{skip:e.state.graphReconnected}),e.state.graphReconnected||(Le.debug("[🪐 serverStateFromApi] serverVarsSub"),kn(e).subscribe({query:_t`subscription serverVarsSub {
vars {
regGen
regState
@@ -110,7 +110,7 @@ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else
contents
}
}
- }`}).subscribe({next(t){Le.debug("[🪐 serverStateFromApi] serverRegistrationSub res %o",t),e.commit("SET_REGISTRATION_SUB",t.data.registration)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}))),Le.debug("[🪐 serverStateFromApi] DONE %o",r.data),r.data},stopGraphqlClient:e=>Object.keys(En).includes(e)?(Le.debug("[stopGraphqlClient] found existing client & stopping it"),En[e]):Le.debug("[stopGraphqlClient] client does not exist for apikey %s",e)};i.default.use(v.a);var ei=new v.a.Store({state:ye,getters:Ce,mutations:Ue,actions:Zn});var ti=g({i18n:fe,store:ei,name:"Authed",props:["propRegistered"],data:()=>({regChanged:!1,popUpClosedTimer:null}),computed:{...Object(v.e)(["state","registered","isPopUpOpen","signOutPayload","wizardWindow"]),...Object(v.c)(["stateData"]),computedReg(){return null===this.registered?!!this.propRegistered:this.registered},buttonPayload(){return this.stateData.error?this.wizardWindow:this.computedReg?this.signOutPayload:this.wizardWindow},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.computedReg?this.$t("signOut"):this.$t("signIn")},buttonTitle(){return this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},watch:{isPopUpOpen(e){!e&&this.regChanged&&(Le.debug("[REGISTERED CHANGED] 🔥 reload webGUI settings"),window.location.reload())},registered(e,t){null!==t&&e!==this.propRegistered&&(Le.debug("[REGISTERED CHANGED]",{newVal:e,oldVal:t}),this.regChanged=!0,this.isPopUpOpen||(Le.debug("[REGISTERED CHANGED] 🔥🔥 reload webGUI settings"),window.location.reload()))}},methods:{...Object(v.b)(["closePopUp","openPopUp"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[r("div",[r("button",{attrs:{type:"button",title:e.buttonTitle},on:{click:function(t){return e.openPopUp(e.buttonPayload)}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)])}),[],!1,(function(e){var t=r("dfd4");t.__inject__&&t.__inject__(e)}),"5e5ba4da",null,!0).exports,ri=(g({name:"keyline",props:{color:{type:String,default:"grey"}},computed:{computedClass(){return"gradient"===this.color?"h-2px bg-gradient-r-red-orange":"h-1px bg-grey"}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("hr",{staticClass:"w-full shadow-none border-none rounded-none",class:e.computedClass})}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{staticClass:"unraid_sc_loader",style:e.styles,attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97",height:e.height+"px",role:"img"}},[r("title",[e._v(e._s(e.title))]),r("desc",[e._v("Unraid logo animating with a wave like effect")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{staticClass:"unraid_sc_loader_9",attrs:{d:"m70,19.24zm57,0l6.54,0l0,38.49l-6.54,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_8",attrs:{d:"m70,19.24zm47.65,11.9l-6.55,0l0,-23.79l6.55,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_7",attrs:{d:"m70,19.24zm31.77,-4.54l-6.54,0l0,-14.7l6.54,0l0,14.7z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_6",attrs:{d:"m70,19.24zm15.9,11.9l-6.54,0l0,-23.79l6.54,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_5",attrs:{d:"m63.49,19.24l6.51,0l0,38.49l-6.51,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_4",attrs:{d:"m70,19.24zm-22.38,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_3",attrs:{d:"m70,19.24zm-38.26,43.03l6.55,0l0,14.73l-6.55,0l0,-14.73z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_2",attrs:{d:"m70,19.24zm-54.13,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_1",attrs:{d:"m70,19.24zm-63.46,38.49l-6.54,0l0,-38.49l6.54,0l0,38.49z",fill:"url(#"+e.random+")"}})])});var ni=g({name:"loading",props:{height:{type:Number,default:64},styles:{type:Object,default:()=>({})},gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"},title:{type:String,default:"Loading"}},data:()=>({random:Math.random().toString(36).substring(7)})},ri,[],!1,(function(e){var t=r("ef7a");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,ii=(g({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 222.36 39.04"}},[r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"47.53",y1:"79.1",x2:"170.71",y2:"-44.08",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("title",[e._v("Unraid Logo")]),r("path",{attrs:{d:"M146.7,29.47H135l-3,9h-6.49L138.93,0h8l13.41,38.49h-7.09L142.62,6.93l-5.83,16.88h8ZM29.69,0V25.4c0,8.91-5.77,13.64-14.9,13.64S0,34.31,0,25.4V0H6.54V25.4c0,5.17,3.19,7.92,8.25,7.92s8.36-2.75,8.36-7.92V0ZM50.86,12v26.5H44.31V0h6.11l17,26.5V0H74V38.49H67.9ZM171.29,0h6.54V38.49h-6.54Zm51.07,24.69c0,9-5.88,13.8-15.17,13.8H192.67V0H207.3c9.18,0,15.06,4.78,15.06,13.8ZM215.82,13.8c0-5.28-3.3-8.14-8.52-8.14h-8.08V32.77h8c5.33,0,8.63-2.8,8.63-8.08ZM108.31,23.92c4.34-1.6,6.93-5.28,6.93-11.55C115.24,3.68,110.18,0,102.48,0H88.84V38.49h6.55V5.66h6.87c3.8,0,6.21,1.82,6.21,6.71s-2.41,6.76-6.21,6.76H98.88l9.21,19.36h7.53Z",fill:"url(#"+e.random+")"}})])}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97"}},[r("title",[e._v("unraid-mark")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{attrs:{fill:"url(#"+e.random+")",d:"M63.49,19.24H70V57.73H63.49ZM6.54,57.73H0V19.24H6.54Zm25.2,4.54h6.55V77H31.74ZM15.87,45.84h6.54V69.62H15.87Zm31.75,0h6.54V69.62H47.62ZM127,19.24h6.54V57.73H127ZM101.77,14.7H95.23V0h6.54Zm15.88,16.44H111.1V7.35h6.55Zm-31.75,0H79.36V7.35H85.9Z"}})])}),oi=g({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},ii,[],!1,null,null,null,!0).exports,ai=r("5d74"),si=r.n(ai);i.default.use(si.a,{url:(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX?Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX:"")+"/assets/svg/sprite.svg",class:"svg-icon"});var ci=(g({name:"svg-icon",props:{symbol:{type:String,required:!0},symbolClass:String}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("svg",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"unraid-svg-icon",class:e.symbolClass,attrs:{symbol:e.symbol,title:e.symbol,role:"presentation"}})}),[],!1,(function(e){var t=r("39a1");t.__inject__&&t.__inject__(e)}),"3b60bb54",null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-center w-full"},[r("header",[r("h2",{staticClass:"text-24px md:text-30px",domProps:{innerHTML:e._s(e.stateData.heading?e.stateData.heading:e.stateData.error.heading)}}),r("div",{staticClass:"text-14px opacity-90 mt-12px mx-auto",class:{"text-center":e.stateData.messageCenter,"text-left":!e.stateData.messageCenter,"prose-2xl":!e.CAN_POST_MESSAGE,prose:e.CAN_POST_MESSAGE}},[r("div",{domProps:{innerHTML:e._s(e.stateData.message?e.stateData.message:e.stateData.error.message)}}),e.showExpiretime?r("HelperTimeConvert",{staticClass:"italic text-center font-semibold mt-16px"}):e._e()],1)]),r("div",{staticClass:"ActionRequired flex flex-col justify-center mt-16px"},[e.isPopUpOpen?[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("backToPopUp")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{text:e.$t("closePopUp")},on:{"btn-click":function(t){return e.closePopUp()}}})]:[e.stateData.actions.includes("register")?[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignIn":null,text:e.$t("signIn")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),e.guidRegistered||e.forumaccount?e._e():r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignUp":null,text:e.$t("signUp")},on:{"btn-click":function(t){return e.openPopUp(e.signUpPayload)}}})]:e._e(),e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.purchase")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.redeemWindow.url:null,text:"Redeem Activation Code"},on:{"btn-click":function(t){return e.openPopUp(e.redeemWindow)}}}):e._e(),e.stateData.actions.includes("upgrade")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.upgrade")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("replace")&&e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ReplaceKey":null,text:e.$t("actions.replace")},on:{"btn-click":function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")&&!e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("actions.replaceIneligible"),title:e.guidBlacklisted?"Your Unraid registration key is ineligible for replacement as it is blacklisted.":e.$t("stateData.EGUID.error.message.replacementIneligible"),disabled:""},on:{"btn-click":function(t){return e.niceTry()}}}):e._e(),e.stateData.actions.includes("recover")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"RecoverKey":null,text:e.$t("actions.recover")},on:{"btn-click":function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("continueTrial")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("regWizPopUp.continueTrial")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("extend")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ExtendTrial":null,text:e.$t("actions.extend")},on:{"btn-click":function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e(),e.stateData.actions.includes("close")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("continueToUnraid")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("signOut")&&e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignOut":null,text:e.$t("signOut")},on:{"btn-click":function(t){return e.openPopUp(e.signOutPayload)}}}):e._e()]],2)])}),ui=r("5a0c"),li=r.n(ui);const pi=(e,t,r,n,i,o,a)=>({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a});var di=(e,t,r)=>{let n,i=li()(e),o=li()(t);if(i.isSame(o))return r?pi(0,0,0,0,0,0,!1):"";if(i.isAfter(o)){const e=i;i=o,o=e,n=!0}else n=!1;let a=o.year()-i.year(),s=o.month()-i.month(),c=o.date()-i.date(),u=o.hour()-i.hour(),l=o.minute()-i.minute(),p=o.second()-i.second();if(p<0&&(p=60+p,l-=1),l<0&&(l=60+l,u-=1),u<0&&(u=24+u,c-=1),c<0){const e=li()(`${o.year()}-${o.month()+1}`).subtract(1,"M").daysInMonth();c=e{const r=e?li()(parseInt(e,10)):li()(),n=t?li()(parseInt(t,10)):li()();return di(r,n,!0)};var hi=(e,t)=>t?fi(e,""):fi("",e),mi=r("23ad"),gi=r.n(mi);r("e072"),r("6210"),r("e5b7");const vi=document.getElementsByTagName("unraid-user-profile")[0];if(vi){const e=vi.getAttribute("locale").slice(0,2);li.a.locale(e),Le.debug("[formatDate] dayjs.locale()",li.a.locale())}li.a.extend(gi.a);var bi=e=>li()(parseInt(e,10)).format("llll"),yi=g({data:()=>({parsedUptime:"",parsedExpireTime:""}),computed:{...Object(v.c)(["showExpiretime"]),...Object(v.e)(["state","expiretime","uptime"]),formattedUptime(){return bi(this.uptime)},formattedExpireTime(){return bi(this.expiretime)},timeCopy(){return this.showExpiretime?{title:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.date",{date:this.formattedExpireTime}):this.$t("upc.meta.trial.active.date",{date:this.formattedExpireTime}),text:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.timeDiff",{timeDiff:this.parsedExpireTime}):this.$t("upc.meta.trial.active.timeDiff",{timeDiff:this.parsedExpireTime})}:{title:this.$t("upc.meta.uptime.date",{date:this.formattedUptime}),text:this.$t("upc.meta.uptime.readable",{timeDiff:this.parsedUptime})}}},methods:{buildStringFromValues({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a,displaySecondsInStringReturn:s}){const c=[],u={year:this.$t("year"),years:this.$t("years"),month:this.$t("month"),months:this.$t("months"),day:this.$t("day"),days:this.$t("days"),hour:this.$t("hour"),hours:this.$t("hours"),minute:this.$t("minute"),minutes:this.$t("minutes"),second:this.$t("second"),seconds:this.$t("seconds"),firstDateWasLater:this.$t("ago"),delimiter:" "},l=(e,t)=>`${e} ${u[t+(1===e?"":"s")]}`;return e&&c.push(l(e,"year")),t&&c.push(l(t,"month")),r&&c.push(l(r,"day")),n&&c.push(l(n,"hour")),i&&c.push(l(i,"minute")),!o||(e||t||r||n||i)&&!s||c.push(l(o,"second")),a&&c.push(u.firstDateWasLater),c.join(u.delimiter)},runTimeDiff(){this.uptime&&(this.parsedUptime=this.buildStringFromValues(hi(this.uptime,!0))),this.expiretime&&(this.parsedExpireTime=this.buildStringFromValues(hi(this.expiretime,!1)))},letsGo(){this.runTimeDiff(),this.interval=setInterval(()=>{this.runTimeDiff()},1e3)}},created(){this.letsGo()},beforeDestroy(){clearInterval(this.interval)}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("p",{staticClass:"select-all",attrs:{title:e.timeCopy.title}},[e._v(e._s(e.timeCopy.text))])}),[],!1,null,null,null,!0).exports,wi=g({props:{hrefUrl:{type:[Boolean,URL],default:!1},routeName:{type:String},text:{type:String,required:!0}},computed:{}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.routeName?r("router-link",{attrs:{to:{name:e.routeName}}},[e._v(e._s(e.text))]):e.hrefUrl?r("a",{attrs:{href:e.hrefUrl}},[e._v(e._s(e.text))]):r("button",{on:{click:function(t){return e.$emit("btn-click")}}},[e._v(e._s(e.text))])}),[],!1,null,null,null,!0);var xi=g({components:{HelperTimeConvert:yi,UiButton:wi.exports},data:()=>({CAN_POST_MESSAGE:Ee}),computed:{...Object(v.c)(["stateData","showExpiretime"]),...Object(v.e)(["isPopUpOpen","purchaseWindow","redeemWindow","forumaccount","guidBlacklisted","guidRegistered","extendTrialPayload","recoverKeyPayload","registered","replaceable","replaceKeyPayload","signOutPayload","signInPayload","signUpPayload","state","wizardWindow","messages"])},methods:{...Object(v.b)(["openPopUp","closePopUp","closePopUpFromPopUp"]),...Object(v.d)(["SET_IS_LAUNCHPAD_OPEN"]),niceTry(){alert("❌ Nice try you little sneak ❌")}}},ci,[],!1,(function(e){var t=r("2251");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var _i=g({i18n:fe,store:ei,name:"Launchpad",props:["serverstate","webguiTranslations"],components:{UnraidLoading:ni,LaunchpadActionRequired:xi},computed:{...Object(v.e)(["guid","isLaunchpadOpen","loading"]),...Object(v.c)(["server"])},methods:{...Object(v.b)(["setStateFromWebComponentProp","validateGuid"]),...Object(v.d)(["SET_IS_LAUNCHPAD_OPEN"])},watch:{signedOutWithKey(e,t){e&&!t&&this.validateGuid()}},created(){if(this.serverstate&&this.setStateFromWebComponentProp(this.serverstate),this.guid)this.validateGuid();else{const e=setInterval(()=>{this.guid&&(clearInterval(e),this.validateGuid())},250)}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"absolute inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:e.$t("closeLaunchpad")},on:{click:function(t){return e.SET_IS_LAUNCHPAD_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("main",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-4xl mr-8px p-24px md:p-32px lg:px-40px shadow-md rounded-lg"},[e.loading?r("UnraidLoading",{staticClass:"mx-auto",attrs:{height:64}}):r("LaunchpadActionRequired")],1)])],1)])}),[],!1,(function(e){var t=r("f153");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Ei=g({i18n:fe,store:ei,name:"UpcTrigger",props:[],data:()=>({}),computed:{...Object(v.c)(["stateData","stateDataKeyActions"]),...Object(v.e)(["isPopUpOpen","registered","state","triggerUPC","wizardWindow"]),copy(){return this.registered?"BASIC"===this.state||"PLUS"===this.state?"To support more storage devices as your server grows, click Upgrade Key in the User Profile located at the top right of the webGUI on every page.":"Key actions are done in the User Profile located at the top right of the webGUI on every page.":"You must be signed in to Unraid.net to perform key actions."},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.registered?this.stateDataKeyActions?"Open User Profile":"":this.$t("signIn")},buttonTitle(){return this.stateDataKeyActions?"Open User Profile":this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},methods:{...Object(v.b)(["jumpToUpc","closePopUp","openPopUp"]),btnClick(){return!this.registered||this.isPopUpOpen?this.openPopUp(this.wizardWindow):this.jumpToUpc()}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[null!==e.registered&&e.buttonText?r("div",{staticClass:"flex flex-wrap pl-12px"},[r("p",{staticClass:"w-7/20 pr-12px"},[e._v(e._s(e.copy))]),r("div",{staticClass:"w-13/20 inline-flex flex-row"},[r("button",{attrs:{type:"button",title:e.buttonTitle,disabled:e.triggerUPC},on:{click:function(t){return e.btnClick()}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)]):e._e()])}),[],!1,(function(e){var t=r("22c9");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Si=r("ab14"),ki=r.n(Si),Oi=r("c7db"),Ti=r("b692"),Ii=r.n(Ti),Ai=r("a3b3"),Ri=r.n(Ai),Ci=r("8a86"),Ni=r.n(Ci),Di=r("b2a0"),Pi=r.n(Di),Mi=r("45b7"),Li=r.n(Mi),Ui=r("381c"),ji=r.n(Ui),Fi=g({props:{payload:{type:Object},text:{type:String},emphasize:{type:Boolean,default:!1},external:{type:Boolean,default:!0}},components:{UnraidSvgUiKey:ji.a,UnraidSvgUtilNewWindow:Ri.a}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("button",{staticClass:"group flex flex-row items-center justify-between",class:{"btn-emphasize":e.emphasize},attrs:{title:e.external?""+e.$t("upc.opensNewHttpsWindow.base",[e.text]):null},on:{click:function(t){return e.$emit("click")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiKey",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.text)+" ")],1),e.external?r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):e._e()],1)}),[],!1,null,null,null,!0).exports,$i=r("a190"),Vi=r.n($i),Gi=r("a313"),zi=r.n(Gi),Bi=r("94d0"),Wi=r.n(Bi),qi=r("973e"),Qi=r.n(qi),Hi=r("b045"),Yi=r.n(Hi),Ki=r("44f2"),Xi=r.n(Ki);var Ji=g({components:{UnraidLoading:ni,UnraidSvgUiWarningFill:Vi.a,UnraidSvgUtilCheck:zi.a,UnraidSvgUtilDelete:Wi.a,UnraidSvgUtilHelp:Qi.a,UnraidSvgUtilInfo:Yi.a,UnraidSvgUtilNewWindow:Ri.a,UnraidSvgUtilTerminal:Xi.a},props:["errorStateMessageVisible","hideotherservers","hideMyServers"],data:()=>({offlineTimer:sessionStorage.getItem("offlineTimer")||!1,restartTriggered:!1}),watch:{apikey(e,t){t||!e||this.hideMyServers||(Le.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz()),!t||e||this.hideMyServers||(Le.debug("[apikey removed] disconnect from unraid-api",{newVal:e,oldVal:t}),this.stopGraphqlClient(t))},noRemoteApikeyRegisteredWithPlg(e,t){t||!e||this.hideMyServers||(Le.debug("[watch.noRemoteApikeyRegisteredWithPlg] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz()),!t||e||this.hideMyServers||(Le.debug("[noRemoteApikeyRegisteredWithPlg removed] disconnect from unraid-api",{newVal:e,oldVal:t}),this.stopGraphqlClient(this.apikey))},registered(e,t){t||!e||this.hideMyServers||(Le.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},myServersError(e,t){!t||e||this.myServers.length||(Le.debug("[watch.myServersError] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},graphOnline(e,t){t&&!1===e&&this.timer("watch.graphOnline")}},computed:{...Object(v.c)(["errorTooManyDisks","keyTypeForPurchase","myServersOutage","noRemoteApikeyRegisteredWithPlg","stateData","validApiKeyLength"]),...Object(v.e)(["apikey","apiVersion","deviceCount","graphOnline","guid","hasRemoteApikey","myServers","myServersError","myServersErrorShowSupportBtn","myServersLoading","registered","servername","signInPayload","state","wanip"]),currentServer(){return this.myServers?this.myServers.filter(e=>e.guid===this.guid?e:null)[0]:{name:this.servername,status:"offline"}},currentServerStatus(){return this.currentServer?this.currentServer.status:"offline"},filteredServers(){return this.myServers?this.hideotherservers?[]:this.myServers.filter(e=>e.guid!==this.guid?e:null).sort((e,t)=>e.name.localeCompare(t.name,"en",{numeric:!0,sensitivity:"base"})):[]},errorToggleText(){return this.stateData.error.message?"EEXPIRED"===this.state?this.stateData.error.heading:this.$t("fixError"):this.myServersError||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks||this.myServersOutage&&this.myServersOutage.enabled?this.computedErrorHeading:""},errorToggleTitle(){if(this.stateData.error||this.stateData.message||this.myServersError||this.myServersOutage&&this.myServersOutage.enabled){return`${!this.stateData.error.message&&!this.stateData.message||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks?this.computedErrorHeading:this.stateData.humanReadable} • ${this.errorStateMessageVisible?this.$t("upc.myServers.closeDetails"):this.$t("learnMore")}`}return""},computedErrorHeading(){return this.noRemoteApikeyRegisteredWithPlg?this.$t("upc.noRemoteApikeyRegisteredWithPlg.heading"):this.stateData.error.heading?this.stateData.error.heading:this.myServersLoading&&this.restartTriggered?"Unraid API":this.myServersError?this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.heading"):this.$t("upc.myServers.errors.myServers.heading"):this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.myServersOutage.enabled?this.myServersOutage.message.heading:""},computedError(){if(this.noRemoteApikeyRegisteredWithPlg)return this.$t("upc.noRemoteApikeyRegisteredWithPlg.msg");if(this.stateData.error.message)return this.stateData.error.message;if(this.myServersLoading&&this.restartTriggered)return"Restarting…";if(this.myServersError)return this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.message"):this.myServersError;if(this.errorTooManyDisks){const e=this.$t("upc.errorTooManyDisks.msg.base");return"Basic"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.basic")} ${e}`:"Plus"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.plus")} ${e}`:e}return this.myServersOutage.enabled?this.myServersOutage.message.main:""},myServersOverflow(){return this.filteredServers.length>8},apiEnableRestartButton(){return this.offlineTimer&&!this.hideMyServers&&!this.graphOnline&&!this.myServersLoading&&!this.stateData.error&&this.myServersError&&(this.myServersError.includes("unraid-api is stopped")||this.myServersError.includes("Disconnected from Unraid API"))}},methods:{...Object(v.b)(["executeUnraidApi","fetchServers","openPopUp","stopGraphqlClient"]),serversPlz(){return Le.debug("[serversPlz]",{apikey:this.apikey,noRemoteApikeyRegisteredWithPlg:this.noRemoteApikeyRegisteredWithPlg,validApiKeyLength:this.validApiKeyLength,myServersOutage:this.myServersOutage}),this.myServersOutage&&this.myServersOutage.enabled?Le.error(this.myServersOutage.message.main):this.noRemoteApikeyRegisteredWithPlg?Le.error("[MyServers] remote apikey does not exist"):this.validApiKeyLength?(this.fetchServers(),this.timer("serversPlz()")):Le.error("[MyServers] invalid apikey")},timer(e=""){Le.debug("[timer] %s",e),setTimeout(()=>{this.graphOnline||(this.offlineTimer=!0,sessionStorage.setItem("offlineTimer",Date.now()))},3e4)},triggerRestart(){this.executeUnraidApi({command:"start"}),this.offlineTimer=!1,this.restartTriggered=!0,sessionStorage.removeItem("offlineTimer")}},created(){!this.hideMyServers&&this.registered&&this.serversPlz()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"relative"},[r("ul",{staticClass:"relative"},[e.filteredServers.length&&e.myServersError&&!e.stateData.error?r("li",{staticClass:"text-red text-12px font-semibold px-16px pb-4px"},[r("em",[e._v(e._s(e.$t("upc.myServers.displayingLastKnown")))])]):e._e(),e.computedError?r("li",{key:"current-server-error",staticClass:"w-full"},[r("button",{staticClass:"btn-error group py-8px px-16px flex flex-col",attrs:{title:e.errorToggleTitle},on:{click:function(t){return e.$emit("toggle-error")}}},[r("div",{staticClass:"w-full flex flex-row justify-between items-center"},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"font-semibold mx-8px"},[e._v(" "+e._s(e.servername)+" ")])],1),e.computedError&&e.errorStateMessageVisible?r("UnraidSvgUtilDelete",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):r("UnraidSvgUtilInfo",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&e.errorStateMessageVisible?r("div",{staticClass:"UnraidUPC-serverError"},[r("div",{staticClass:"text-14px font-semibold pt-4px"},[r("h3",{staticClass:"text-16px mb-4px"},[e._v(e._s(e.errorToggleText))]),r("p",{domProps:{innerHTML:e._s(e.computedError)}})])]):e._e()])],1)]):e._e(),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&!e.stateData.error&&e.errorStateMessageVisible&&e.myServersOutage&&e.myServersOutage.enabled&&e.myServersOutage.message.link?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:e.myServersOutage.message.link,title:e.myServersOutage.message.linkSameTab?"":e.$t("upc.opensNewHttpsWindow.base",[this.myServersOutage.message.heading]),target:e.myServersOutage.message.linkSameTab?"":"_blank",rel:"noreferrer noopener"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.myServersOutage.message.linkSameTab?"Go to Plugins":e.$t("learnMore"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},["EEXPIRED"!==e.state&&e.stateData.error&&e.errorStateMessageVisible||!e.stateData.error&&e.myServersErrorShowSupportBtn?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("contactSupport")])},on:{click:function(t){return e.$emit("contact-support")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("contactSupport"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.noRemoteApikeyRegisteredWithPlg&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("signIn")])},on:{click:function(t){return e.openPopUp(e.signInPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.signInActions.resolve"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.apiEnableRestartButton?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.myServers.api.startTitle")},on:{click:function(t){return e.triggerRestart()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilTerminal",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.myServers.api.start"))+" ")],1)])]):e._e()]),r("div",{staticClass:"relative z-0",class:{"custom-scrollbar":e.myServersOverflow}},[r("div",{class:{"overflow-y-scroll max-h-310px":e.myServersOverflow}},[r("transition-group",{attrs:{name:"fade",mode:"out-in"}},[e.myServersLoading?r("UnraidLoading",{key:"gql-loading",staticClass:"w-36px my-8px mx-auto",attrs:{height:21,title:e.$t("upc.myServers.loading")}}):e._e(),e.filteredServers?r("div",{key:"filteredServers"},[r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError?e._e():r("li",{key:"current-server",staticClass:"w-full py-8px px-16px flex flex-row items-center",class:{"text-beta":"online"===e.currentServerStatus,"text-orange cursor-not-allowed":"online"!==e.currentServerStatus},attrs:{title:e.$t("upc.myServers.accessLabels.current")+" • "+("online"!==e.currentServerStatus?e.$t("upc.myServers.mothership.notConnected"):e.$t("upc.myServers.mothership.connected"))}},["online"!==e.currentServerStatus?r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}):r("UnraidSvgUtilCheck",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"ml-8px select-all"},[e._v(e._s(e.currentServer?e.currentServer.name:e.servername))])],1)]),e._l(e.filteredServers,(function(t,n){return r("li",{key:"filteredServer_"+n},["online"===t.status&&e.wanip!==t.wanip&&t.remoteurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.remoteurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.remote")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"online"===t.status&&t.localurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.localurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.local")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"never_connected"!==t.status?r("span",{staticClass:"w-full flex flex-row items-center px-16px py-8px opacity-50 cursor-not-allowed",attrs:{title:"online"===t.status?e.$t("upc.myServers.accessLabels.unavailable"):e.$t("upc.myServers.accessLabels.offline")}},[r("span",{staticClass:"text-red text-14px w-12px mr-8px"},[e._v("×")]),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):e._e()])}))],2):e._e()],1)],1)])],1)])}),[],!1,(function(e){var t=r("dce8");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Zi=g({components:{HelperTimeConvert:yi},computed:{...Object(v.e)(["registered","state"]),...Object(v.c)(["stateData"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-gamma text-12px text-right font-semibold leading-normal flex flex-row items-baseline justify-end pr-16px pt-4px"},[r("HelperTimeConvert"),r("span",{staticClass:"px-12px"},[e._v("•")]),e.registered&&e.stateData.actions.includes("upgrade")?r("button",{staticClass:"text-12px text-gamma hover:text-alpha focus:text-alpha font-semibold transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.upgrade")},on:{click:function(t){return e.$emit("upgrade")}}},[r("h5",[e._v("Unraid OS "),r("em",[r("strong",[e._v(e._s(e.stateData.humanReadable))])])])]):r("h5",[e._v("Unraid OS "),r("em",{class:{"text-red":e.stateData.error||"EEXPIRED"===e.state}},[r("strong",[e._v(e._s(e.stateData.humanReadable))])])]),e.registered&&e.stateData.actions.includes("purchase")?r("button",{staticClass:"text-12px text-orange-dark font-semibold hover:text-alpha focus:text-alpha ml-12px transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.purchase")},on:{click:function(t){return e.$emit("purchase")}}},[e._v(e._s(e.$t("actions.purchase")))]):e._e()],1)}),[],!1,null,null,null,!0).exports;var eo=g({i18n:fe,store:ei,name:"UserProfile",mixins:[Oi.mixin],components:{UnraidLogoMark:oi,KeyAction:Fi,MetaInfo:Zi,MyServers:Ji,UnraidSvgUtilLogout:Ii.a,UnraidSvgUtilNewWindow:Ri.a,UnraidSvgUtilSelect:Ni.a,UnraidSvgUtilEdit:Pi.a,UnraidSvgUiWarning:Li.a},props:{serverstate:String,banner:{type:String,default:""},showBannerGradient:{type:String,default:"yes"},bgcolor:[String,Number],displaydesc:{type:String,default:""},locale:String,localeMessages:String,metacolor:String,textcolor:String,theme:{type:String,default:"black"},hideotherservers:{type:String,default:""},apikey:String,apiVersion:String,csrf:String,expiretime:[Number,String],hideMyServers:{type:String,default:null},plgPath:String,regWizTime:String,sendCrashInfo:String,serverdesc:String,servermodel:String,serverupdate:Boolean,uptime:[Number,String]},data:()=>({NODE_ENV:he,avatarFail:!1,copyingIp:!1,dropdownTimeout:"",dropdownVisible:!1,errorStateMessageVisible:!0}),computed:{...Object(v.e)(["avatar","isLaunchpadOpen","isPopUpOpen","guid","guidRegistered","popUpWindow","regAtOpen","purchaseWindow","redeemWindow","registered","servername","internalip","state","username","darkTheme","lightTheme","extendTrialPayload","recoverKeyPayload","replaceKeyPayload","signInPayload","signUpPayload","signOutPayload","troubleshootPayload","wizardWindow","messages","myServersEnv","triggerUPC","graphOnline"]),...Object(v.c)(["errorTooManyDisks","noRemoteApikeyRegisteredWithPlg","signedOutWithKey","stateData","myServersOutage"]),darkMode(){return"black"===this.theme||"azure"===this.theme},usernameButtonText(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):this.stateData.error&&this.stateData.error.signInToFix&&!this.registered?this.$t("signIn"):this.stateData.error&&!this.stateData.error.signInToFix&&"EEXPIRED"===!this.state?this.$t("fixError"):this.registered?this.username:this.$t("signIn")},usernameButtonTitle(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):this.stateData.error&&this.stateData.error.signInToFix&&!this.registered?this.$t("upc.signInActions.resolve"):this.stateData.error&&!this.stateData.error.signInToFix?this.$t("learnMore"):this.isPopUpOpen&&this.isLaunchpadOpen?this.$t("upc.confirmClosure"):this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.isLaunchpadOpen?this.$t("closeLaunchpad"):"EEXPIRED"===this.state?this.registered?this.$t("upc.trialHasExpiredSeeOptions"):this.stateData.actions.includes("extend")?this.$t("upc.signInActions.purchaseKeyOrExtendTrial"):this.$t("upc.signInActions.purchaseKey"):this.registered&&this.dropdownVisible?this.$t("upc.closeDropdown"):this.registered&&!this.dropdownVisible?this.$t("upc.openDropdown"):this.$t("upc.opensNewHttpsWindow.signIn")},displayKeylineBelowActions(){return!!(this.stateData.actions.includes("purchase")||this.stateData.actions.includes("upgrade")||this.stateData.actions.includes("recover")||this.stateData.actions.includes("replace")||this.stateData.actions.includes("extend"))},extraLinks(){return[...!this.hideMyServers||this.stateData.error.message||this.errorTooManyDisks?[{url:"",text:"",external:!1}]:[],...this.hideMyServers?[{url:"https://wiki.unraid.net/My_Servers",text:"Install My Servers Beta",external:!0,title:this.$t("upc.extraLinks.newTab",["Install My Servers Beta"])}]:[{url:this.myServersEnv?"https://forums.unraid.net/my-servers-staging/":"https://forums.unraid.net/my-servers/",text:this.$t("upc.extraLinks.myServers"),external:!0,title:this.$t("upc.extraLinks.newTab",[this.$t("upc.extraLinks.myServers")])},{url:"/Settings/ManagementAccess#"+(this.plgPath?"MyServersSettings":"UnraidNetSettings"),text:this.$t("upc.extraLinks.settings.text"),settings:!0,title:this.$t("upc.extraLinks.settings.title")}]]},devEnv(){let e=he;const t="UPC_ENV=",r=document.cookie.split(";");for(let n=0;n{this.dropdownVisible=!1},1e3)},autoTriggerLaunchpad(){setTimeout(()=>{const e=`${this.servername}_${this.guid?this.guid.slice(-12):"NO_GUID"}`;sessionStorage.getItem(e)||"ENOKEYFILE"!==this.state||(sessionStorage.setItem(e,"またね"),this.isLaunchpadOpen||this.toggleLaunchpad())},100)},toggleLaunchpad(){const e="unraid-launchpad";if(!document.getElementsByTagName(e).length){const t=document.getElementsByTagName("body")[0],r=document.createElement(e);t.appendChild(r)}const t=()=>{this.dropdownVisible&&(this.dropdownVisible=!1),this.isPopUpOpen&&this.closePopUp(),this.SET_IS_LAUNCHPAD_OPEN(!this.isLaunchpadOpen)};this.isPopUpOpen&&this.isLaunchpadOpen?window.confirm(this.$t("upc.pleaseConfirmClosureYouHaveOpenPopUp"))&&t():t()},onAvatarError(){Le.error("Avatar failed to load %s",this.avatar),this.avatarFail=!0},async initUserProfile(){if(Le.debug("[initUserProfile]"),this.setStateFromWebComponentProp(this.serverstate),this.apikey&&this.SET_API_KEY(this.apikey),this.apiVersion&&this.SET_MY_SERVERS_API_VERSION(this.apiVersion),this.csrf&&this.SET_CSRF(this.csrf),this.expiretime&&this.SET_EXPIRE_TIME(this.expiretime),this.hideMyServers&&this.SET_HIDE_MY_SERVERS(this.hideMyServers),this.plgPath&&this.SET_PLG_PATH(this.plgPath),this.regWizTime&&this.SET_REGWIZ_TIME(this.regWizTime),this.serverdesc&&this.SET_SERVERDESC(this.serverdesc),this.uptime&&this.SET_UPTIME(this.uptime),this.devEnv&&this.SET_DEV_MODE(this.devEnv),!this.registered){const e=`Sign In to your Unraid.net account to perform license key actions${this.hideMyServers?"":" and to receive real-time server monitoring with My Servers"}.`,t="Learn more at https://wiki.unraid.net/My_Servers.",r=["color: white","background: linear-gradient(to right, #E22828 0%, #FF8C2F 100%)","font-size: 10px","padding: 4px"].join(";");Le.log("%c"+e,r),Le.log("%c"+t,r)}if(this.localeMessages){Le.debug("[this.locale] %o",this.locale);const[e,t]=Te(decodeURIComponent(this.localeMessages));e&&Le.error("[initUserProfile.localeMessages] %s","Unable to set locale and locale messages"),this.$i18n.locale=this.locale,this.$i18n.setLocaleMessage(this.locale,t[this.locale]),Le.debug(`[initUserProfile.$i18n] ${this.$i18n.locale} locale & messages set %o`,t[this.locale]),this.SET_LOCALE(this.locale)}this.signedOutWithKey&&this.regWizTime?(Le.debug("[initUserProfile] %o",{signedOutWithKey:this.signedOutWithKey,regWizTime:this.regWizTime}),await this.validateGuid()):this.autoTriggerLaunchpad(),window.addEventListener("message",e=>{this.receivePostMessage({inject:!1,event:e})},!1)},copyIP(){if(Le.debug("[copyIP] %s",this.internalip),!navigator.clipboard)return Le.error("Unable to copy IP: %s",this.internalip);const e=()=>{this.copyingIp=!this.copyingIp,setTimeout(()=>{this.copyingIp=!this.copyingIp},750)};try{return navigator.clipboard.writeText(this.internalip),e()}catch(e){return Le.error(`Unable to copy IP: ${this.internalip} %o`,e)}}},watch:{signedOutWithKey(e,t){Le.debug("[signedOutWithKey]",{newVal:e,oldVal:t,regWizTime:this.regWizTime}),e&&!t&&this.regWizTime&&this.validateGuid()},isPopUpOpen(e,t){this.isLaunchpadOpen&&!e&&t&&!this.regAtOpen&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)},triggerUPC(e){e&&setTimeout(()=>{this.dropdownVisible=!0},150)},graphOnline(e,t){e&&!t&&this.updateServerState()}},created(){this.initUserProfile()},beforeMount(){const e=document.getElementsByTagName("body")[0],t={darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"}};let{alpha:r,beta:n,gamma:i}=this.darkMode?t.darkTheme:t.lightTheme;this.textcolor&&(r=this.textcolor),this.bgcolor&&(n=this.bgcolor,e.style.setProperty("--color-customgradient-start",ki()(n,0)),e.style.setProperty("--color-customgradient-end",ki()(n,.9))),this.metacolor&&(i=this.metacolor),e.style.setProperty("--color-alpha",r),e.style.setProperty("--color-beta",n),e.style.setProperty("--color-gamma",i),e.style.setProperty("--shadow-beta","0 25px 50px -12px "+ki()(n,.15)),e.style.setProperty("--ring-offset-shadow","0 0 "+n),e.style.setProperty("--ring-shadow","0 0 "+n)}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"UnraidUPC",class:{"--hasBanner-default":e.banner&&"no"!==e.showBannerGradient&&!e.bgcolor,"--hasBanner-custom":e.banner&&"no"!==e.showBannerGradient&&e.bgcolor},attrs:{id:"UnraidUPC"}},[e.isPopUpOpen&&!e.isLaunchpadOpen?r("div",{staticClass:"absolute z-10 inset-0 flex flex-col items-end justify-center pr-6"},[r("div",{staticClass:"text-center inline-flex flex-col items-center justify-center"},[r("button",{staticClass:"text-14px button button-alt",on:{click:function(t){return e.openPopUp()}}},[e._v(e._s(e.$t("backToPopUp")))]),r("button",{staticClass:"hover:underline text-12px mt-4px",on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))])])]):e._e(),r("MetaInfo",{class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen},on:{purchase:function(t){return e.openPopUp(e.purchaseWindow)},upgrade:function(t){return e.openPopUp(e.purchaseWindow)},signin:function(t){return e.openPopUp(e.signInPayload)}}}),r("div",{staticClass:"relative z-0 flex flex-row items-center justify-end h-full",class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen}},[r("h1",{staticClass:"relative text-18px border-t-0 border-r-0 border-l-0 border-b-2 border-transparent"},[e.displaydesc?[r("span",{attrs:{title:e.servermodel}},[e._v(e._s(e.serverdesc))]),r("span",{staticClass:"text-grey-mid px-8px"},[e._v("•")])]:e._e(),r("span",{staticClass:"cursor-pointer",attrs:{title:e.$t("lanIp",[e.internalip])},on:{click:function(t){return e.copyIP()}}},[e._v(e._s(e.servername))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.copyingIp?r("span",{staticClass:"text-12px absolute right-0 bg-gradient-to-r from-red to-orange text-center block w-100px rounded"},[e._v(e._s("LAN IP Copied"))]):e._e()])],2),r("div",{staticClass:"block w-2px h-24px ml-16px bg-grey-mid"}),r("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeDropdown,expression:"closeDropdown"}],staticClass:"relative flex items-center justify-end h-full",on:{mouseenter:function(t){return e.dropdownMouseEnter()},mouseleave:function(t){return e.dropdownMouseLeave()}}},[r("button",{staticClass:"UnraidUPC-username group text-18px hover:text-alpha focus:text-alpha border border-transparent flex flex-row justify-end items-center h-full px-16px outline-none focus:outline-none",class:{"text-orange-dark":e.isLaunchpadOpen||!e.username&&!e.stateData.error,"text-alpha":e.username&&!e.isLaunchpadOpen,"text-red":e.stateData.error},attrs:{title:e.usernameButtonTitle},on:{click:function(t){return e.usernameAvatarButton()}}},[e.stateData.error||"EEXPIRED"===e.state||e.noRemoteApikeyRegisteredWithPlg||e.errorTooManyDisks?r("UnraidSvgUiWarning",{staticClass:"text-red fill-current relative w-24px h-24px mr-8px"}):e._e(),r("span",{staticClass:"inline-flex items-center bg-transparent border-t-0 border-l-0 border-r-0 border-b-2 border-transparent group-hover:border-orange-dark group-focus:border-orange-dark transition-colors duration-150 ease-in-out"},[e._v(" "+e._s(e.usernameButtonText)+" "),e.registered&&!e.isLaunchpadOpen?r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"}):e._e()],1),r("span",{staticClass:"relative z-0 flex items-center justify-center w-36px h-36px ml-8px rounded-full",class:{"bg-transparent":e.registered&&!e.avatarFail,"bg-gradient-to-r from-red to-orange":!e.registered||e.avatarFail}},[e.registered&&!e.avatarFail?r("img",{staticClass:"absolute z-10 inset-0 w-36px h-36px rounded-full overflow-hidden",attrs:{src:e.avatar,alt:""+e.$t("upc.avatarAlt",[e.username])},on:{error:e.onAvatarError}}):r("UnraidLogoMark",{staticClass:"relative z-0 w-28px",attrs:{"gradient-start":"#fff","gradient-stop":"#fff"}})],1)],1),r("transition",{attrs:{name:"slideVerticalFade",mode:"out-in"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.dropdownVisible&&e.registered,expression:"dropdownVisible && registered"}],staticClass:"UnraidUPC-dropdown",class:{"border-grey-darkest":e.darkMode,"border-grey-light":!e.darkMode}},[e.hideMyServers?e._e():r("header",{staticClass:"text-14px pt-16px px-16px rounded-t"},[r("h5",{staticClass:"text-18px leading-none inline-flex flex-row items-center"},[r("span",{staticClass:"font-semibold"},[e._v(e._s(e.$t("upc.myServers.heading")))]),r("span",{staticClass:"text-grey-mid text-10px uppercase ml-8px py-4px px-6px border-2 border-grey-mid rounded-full"},[e._v(e._s(e.$t("upc.myServers.beta")))]),e.myServersEnv?r("span",{staticClass:"ml-8px",attrs:{title:"API • "+e.myServersEnv}},[e._v("⚙️")]):e._e(),e.devEnv?r("span",{staticClass:"ml-8px",attrs:{title:e.devEnv}},[e._v("⚠️")]):e._e()])]),r("ul",{staticClass:"list-reset my-8px p-0"},["development"===e.NODE_ENV?[r("li",[r("KeyAction",{attrs:{text:"[DEV] Launchpad",external:!1},on:{click:function(t){return e.toggleLaunchpad()}}})],1),r("li",[r("KeyAction",{attrs:{text:"[DEV] Pop-up"},on:{click:function(t){return e.openPopUp(e.wizardWindow)}}})],1)]:e._e(),e.displayKeylineBelowActions?[r("li",[e.stateData.actions.includes("purchase")?[r("KeyAction",{attrs:{text:e.$t("actions.purchase")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}),r("KeyAction",{attrs:{text:"Redeem Activation Code"},on:{click:function(t){return e.openPopUp(e.redeemWindow)}}})]:e._e(),e.stateData.actions.includes("upgrade")?r("KeyAction",{attrs:{text:e.$t("actions.upgrade")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("recover")?r("KeyAction",{attrs:{text:e.$t("actions.recover")},on:{click:function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")?r("KeyAction",{attrs:{text:e.$t("actions.replace")},on:{click:function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("extend")?r("KeyAction",{attrs:{text:e.$t("actions.extend")},on:{click:function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e()],2),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]:e._e(),!e.hideMyServers||e.stateData.error.message||e.errorTooManyDisks||e.myServersOutage.enabled?r("MyServers",{attrs:{hideMyServers:e.hideMyServers,errorStateMessageVisible:e.errorStateMessageVisible,hideotherservers:e.hideotherservers},on:{"contact-support":function(t){return e.openPopUp(e.troubleshootPayload)},"toggle-error":function(t){e.errorStateMessageVisible=!e.errorStateMessageVisible}}}):e._e(),e._l(e.extraLinks,(function(t,n){return[t.url?r("li",{key:n},[r("a",{staticClass:"flex flex-row items-center",attrs:{href:t.url,target:t.external?"_blank":"",rel:t.external?"noopener noreferrer":"",title:t.title}},[t.external?r("UnraidSvgUtilNewWindow",{staticClass:"fill-current w-12px h-12px mr-8px"}):e._e(),t.settings?r("UnraidSvgUtilEdit",{staticClass:"fill-current w-12px h-12px mr-8px"}):e._e(),e._v(" "+e._s(t.text)+" ")],1)]):r("div",{key:n,staticClass:"mx-12px"},[r("hr",{staticClass:"w-full h-2px my-8px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]})),r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",["Sign Out of Unraid.net"])},on:{click:function(t){return e.openPopUp(e.signOutPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilLogout",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s("Sign Out of Unraid.net")+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)])],2)])])],1)])],1)}),[],!1,(function(e){var t=r("e519");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var to=g({i18n:fe,store:ei,name:"WanIpCheck",props:{phpWanIp:{type:String,default:""}},computed:{...Object(v.e)(["wanip","site"]),...Object(v.c)(["isRemoteAccess"]),loading(){return!this.wanip}},methods:{...Object(v.b)(["getWanIp"])},created(){Le.debug("[🍣 WanIpCheck 🍣]"),this.wanip||this.getWanIp()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[e.loading?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.checking")+"…")}}):[e.phpWanIp?[e.isRemoteAccess?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.phpWanIp]))}}):e.phpWanIp!==e.wanip||e.isRemoteAccess?r("span",{staticClass:"mismatch",domProps:{innerHTML:e._s(e.$t("wanIpCheck.mismatch",[e.phpWanIp,e.wanip]))}}):r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.wanip]))}})]:r("span",{staticClass:"error",domProps:{innerHTML:e._s(e.$t("wanIpCheck.resolveError"))}})]],2)}),[],!1,(function(e){var t=r("6e03");t.__inject__&&t.__inject__(e)}),"4ca8352c",null,!0).exports;window.customElements.define("unraid-authed",m(i.default,ti)),window.customElements.define("unraid-launchpad",m(i.default,_i)),window.customElements.define("unraid-upc-trigger",m(i.default,Ei)),window.customElements.define("unraid-user-profile",m(i.default,eo)),window.customElements.define("unraid-wan-ip-check",m(i.default,to))},"5d74":function(e,t,r){e.exports={options:{},ssr:function(e,t){var r=e.data,n=r.attrs,i=n.symbol,o=n.size,a=this.getAttributes(o);a&&(r.attrs=Object.assign({},r.attrs,a)),o&&delete r.attrs.size,i&&delete r.attrs.symbol;var s=r.class,c=r.staticClass||"";c+=s?Object.keys(s).join(" "):"",this.hasClass(c)||(r.staticClass=r.staticClass?r.staticClass+" "+this.options.class:this.options.class);var u=e.context.$createElement("use",{attrs:{href:this.getHref(i)}});Array.isArray(e.children)?e.children.push(u):e.children=[u]},install:function(e,t){void 0===t&&(t={}),this.options.class=t.class||"icon",this.options.url=void 0===t.url?"/assets/svg/sprite.svg":t.url;var r=this;e.directive("svg",{bind:function(e,t,n){var i=t.value||n.data.attrs.symbol,o=n.data.attrs&&n.data.attrs.size,a=r.getAttributes(o);a&&(e.setAttribute("viewBox",a.viewBox),e.setAttribute("width",a.width),e.setAttribute("height",a.height)),i&&e.removeAttribute("symbol"),o&&e.removeAttribute("size");var s=e.getAttribute("class");if(r.hasClass(s)||e.setAttribute("class",s?s+" "+r.options.class:r.options.class),!e||null===e.querySelector("use")){var c=document.createElementNS("http://www.w3.org/2000/svg","use"),u=r.getHref(i);c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u),c.setAttribute("href",u),e.appendChild(c)}},update:function(e,t,n){var i=r.getHref(t.value||n.data.attrs.symbol),o=e&&e.querySelector("use");if(o){if(o.getAttribute("href")===i)return!1;var a=document.createElementNS("http://www.w3.org/2000/svg","use");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttribute("href",i),e.replaceChild(a,o)}}})},getAttributes:function(e){if(!e)return null;var t=e.toString().replace(/( |, |,)/g," ").split(" "),r=t.length;if(3===r||r>4)return console.warn('[vue-svg-sprite] size: "'+e+'" is not valid'),null;var n=[];n[0]=r<4?0:t[0],n[1]=r<4?0:t[1];var i=n[2]=r<4?t[0]:t[2];return{height:n[3]=t[r-1],viewBox:n.join(" "),width:i}},hasClass:function(e){var t=this.options.class;return!!e&&e.split(" ").some((function(e){var r=e.split(/(-|_)/)[0];return-1!==r.indexOf(t)&&r.length===t.length}))},getHref:function(e){return""===this.options.url?"#"+e:this.options.url+"#"+e}}},6210:function(e,t,r){e.exports=function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)}var i={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan_Feb_März_Apr_Mai_Juni_Juli_Aug_Sept_Okt_Nov_Dez".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(i,null,!0),i}(r("5a0c"))},"626e":function(e,t,r){"use strict";var n=[/passw(or)?d/i,/^pw$/,/^pass$/i,/secret/i,/token/i,/api[-._]?key/i,/session[-._]?id/i,/^connect\.sid$/],i=[/^\d{4}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}$/];t.key=function(e){return n.some((function(t){return t.test(e)}))},t.value=function(e){return i.some((function(t){return t.test(e)}))}},"633a":function(e,t,r){"use strict";(function(e){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=t.shift();s&&s.applyMiddleware.apply(i,[e,o])}else r(e)};o()}(a(t.middlewares),t)}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,r){if("function"==typeof e)try{return t(e.call(null))}catch(e){return r(e)}t(e)}))}},e.prototype.executeOperation=function(e,t){var r=this;null===this.client&&this.connect();var n=this.generateOperationId();return this.operations[n]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){r.checkOperationOptions(e,t),r.operations[n]&&(r.operations[n]={options:e,handler:t},r.sendMessage(n,b.default.GQL_START,e))})).catch((function(e){r.unsubscribe(n),t(r.formatErrors(e))})),n},e.prototype.getObserver=function(e,t,r){return"function"==typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return r&&r()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new u({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var r=e.query,n=e.variables,i=e.operationName;if(!r)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!p.default(r)&&!h.getOperationAST(r,i)||i&&!p.default(i)||n&&!d.default(n))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,r){return{id:e,type:t,payload:r&&r.query?n(n({},r),{query:"string"==typeof r.query?r.query:f.print(r.query)}):r}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,r){this.sendMessageRaw(this.buildMessage(e,t,r))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(t){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,b.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var r=e.data;t.processReceivedData(r)}},e.prototype.processReceivedData=function(e){var t,r;try{r=(t=JSON.parse(e)).id}catch(t){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(t.type)||this.operations[r])switch(t.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var i=this.operations[r].handler;delete this.operations[r],i.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[r].handler(this.formatErrors(t.payload),null),delete this.operations[r];break;case b.default.GQL_DATA:var o=t.payload.errors?n(n({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[r].handler(null,o);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var a=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(r)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,b.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=y}).call(this,r("c8ba"))},"6c20":function(e,t,r){"use strict";r.r(t),function(e,n){var i,o=r("48b5");i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(o.a)(i);t.default=a}.call(this,r("c8ba"),r("dd40")(e))},"6ddc":function(e,t,r){const n=r("f06c");e.exports=(e,t,r)=>n(e,t,r)<=0},"6e03":function(e,t,r){"use strict";r.r(t);var n=r("9c76");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},7506:function(e,t,r){"use strict";r.r(t),r.d(t,"print",(function(){return o}));var n=r("2f6c"),i=r("04b4");function o(e){return Object(n.b)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return c(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=l("(",c(e.variableDefinitions,", "),")"),i=c(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?c([t,c([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+l(" = ",n)+l(" ",c(i," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet;return c([l("",t,": ")+r+l("(",c(n,", "),")"),c(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",c(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return c(["...",l("on ",t),c(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(l("(",c(n,", "),")")," ")+"on ".concat(r," ").concat(l("",c(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?Object(i.b)(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+c(e.values,", ")+"]"},ObjectValue:function(e){return"{"+c(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",c(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,r=e.operationTypes;return c(["schema",c(t," "),u(r)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return c(["scalar",e.name,c(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return c(["type",t,l("implements ",c(r," & ")),c(n," "),u(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(f(r)?l("(\n",p(c(r,"\n")),"\n)"):l("(",c(r,", "),")"))+": "+n+l(" ",c(i," "))})),InputValueDefinition:s((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return c([t+": "+r,l("= ",n),c(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.fields;return c(["interface",t,c(r," "),u(n)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.types;return c(["union",t,c(r," "),n&&0!==n.length?"= "+c(n," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.values;return c(["enum",t,c(r," "),u(n)]," ")})),EnumValueDefinition:s((function(e){return c([e.name,c(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.fields;return c(["input",t,c(r," "),u(n)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(f(r)?l("(\n",p(c(r,"\n")),"\n)"):l("(",c(r,", "),")"))+(n?" repeatable":"")+" on "+c(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return c(["extend schema",c(t," "),u(r)]," ")},ScalarTypeExtension:function(e){return c(["extend scalar",e.name,c(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return c(["extend type",t,l("implements ",c(r," & ")),c(n," "),u(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return c(["extend interface",t,c(r," "),u(n)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return c(["extend union",t,c(r," "),n&&0!==n.length?"= "+c(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return c(["extend enum",t,c(r," "),u(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return c(["extend input",t,c(r," "),u(n)]," ")}};function s(e){return function(t){return c([t.description,e(t)],"\n")}}function c(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function u(e){return e&&0!==e.length?"{\n"+p(c(e,"\n"))+"\n}":""}function l(e,t,r){return t?e+t+(r||""):""}function p(e){return e&&" "+e.replace(/\n/g,"\n ")}function d(e){return-1!==e.indexOf("\n")}function f(e){return e&&e.some(d)}},"786a":function(e,t){var r=e.exports=function(e){return new n(e)};function n(e){this.value=e}function i(e,t,r){var n=[],i=[],s=!0;return function e(p){var d=r?o(p):p,f={},h=!0,m={node:d,node_:p,path:[].concat(n),parent:i[i.length-1],parents:i,key:n.slice(-1)[0],isRoot:0===n.length,level:n.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(h=!1)},delete:function(e){delete m.parent.node[m.key],e&&(h=!1)},remove:function(e){c(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(h=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){s=!1},block:function(){h=!1}};if(!s)return m;function g(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=a(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}))),Le.debug("[🪐 serverStateFromApi] DONE %o",r.data),r.data},stopGraphqlClient:e=>Object.keys(En).includes(e)?(Le.debug("[stopGraphqlClient] found existing client & stopping it"),En[e]):Le.debug("[stopGraphqlClient] client does not exist for apikey %s",e)};i.default.use(v.a);var ei=new v.a.Store({state:ye,getters:Ce,mutations:Ue,actions:Zn});var ti=g({i18n:fe,store:ei,name:"Authed",props:["propRegistered"],data:()=>({regChanged:!1,popUpClosedTimer:null}),computed:{...Object(v.e)(["state","registered","isPopUpOpen","signOutPayload","wizardWindow"]),...Object(v.c)(["stateData"]),computedReg(){return null===this.registered?!!this.propRegistered:this.registered},buttonPayload(){return this.stateData.error?this.wizardWindow:this.computedReg?this.signOutPayload:this.wizardWindow},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.computedReg?this.$t("signOut"):this.$t("signIn")},buttonTitle(){return this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},watch:{isPopUpOpen(e){!e&&this.regChanged&&(Le.debug("[REGISTERED CHANGED] 🔥 reload webGUI settings"),window.location.reload())},registered(e,t){null!==t&&e!==this.propRegistered&&(Le.debug("[REGISTERED CHANGED]",{newVal:e,oldVal:t}),this.regChanged=!0,this.isPopUpOpen||(Le.debug("[REGISTERED CHANGED] 🔥🔥 reload webGUI settings"),window.location.reload()))}},methods:{...Object(v.b)(["closePopUp","openPopUp"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[r("div",[r("button",{attrs:{type:"button",title:e.buttonTitle},on:{click:function(t){return e.openPopUp(e.buttonPayload)}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)])}),[],!1,(function(e){var t=r("dfd4");t.__inject__&&t.__inject__(e)}),"5e5ba4da",null,!0).exports,ri=(g({name:"keyline",props:{color:{type:String,default:"grey"}},computed:{computedClass(){return"gradient"===this.color?"h-2px bg-gradient-r-red-orange":"h-1px bg-grey"}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("hr",{staticClass:"w-full shadow-none border-none rounded-none",class:e.computedClass})}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{staticClass:"unraid_sc_loader",style:e.styles,attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97",height:e.height+"px",role:"img"}},[r("title",[e._v(e._s(e.title))]),r("desc",[e._v("Unraid logo animating with a wave like effect")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{staticClass:"unraid_sc_loader_9",attrs:{d:"m70,19.24zm57,0l6.54,0l0,38.49l-6.54,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_8",attrs:{d:"m70,19.24zm47.65,11.9l-6.55,0l0,-23.79l6.55,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_7",attrs:{d:"m70,19.24zm31.77,-4.54l-6.54,0l0,-14.7l6.54,0l0,14.7z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_6",attrs:{d:"m70,19.24zm15.9,11.9l-6.54,0l0,-23.79l6.54,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_5",attrs:{d:"m63.49,19.24l6.51,0l0,38.49l-6.51,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_4",attrs:{d:"m70,19.24zm-22.38,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_3",attrs:{d:"m70,19.24zm-38.26,43.03l6.55,0l0,14.73l-6.55,0l0,-14.73z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_2",attrs:{d:"m70,19.24zm-54.13,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_1",attrs:{d:"m70,19.24zm-63.46,38.49l-6.54,0l0,-38.49l6.54,0l0,38.49z",fill:"url(#"+e.random+")"}})])});var ni=g({name:"loading",props:{height:{type:Number,default:64},styles:{type:Object,default:()=>({})},gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"},title:{type:String,default:"Loading"}},data:()=>({random:Math.random().toString(36).substring(7)})},ri,[],!1,(function(e){var t=r("ef7a");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,ii=(g({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 222.36 39.04"}},[r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"47.53",y1:"79.1",x2:"170.71",y2:"-44.08",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("title",[e._v("Unraid Logo")]),r("path",{attrs:{d:"M146.7,29.47H135l-3,9h-6.49L138.93,0h8l13.41,38.49h-7.09L142.62,6.93l-5.83,16.88h8ZM29.69,0V25.4c0,8.91-5.77,13.64-14.9,13.64S0,34.31,0,25.4V0H6.54V25.4c0,5.17,3.19,7.92,8.25,7.92s8.36-2.75,8.36-7.92V0ZM50.86,12v26.5H44.31V0h6.11l17,26.5V0H74V38.49H67.9ZM171.29,0h6.54V38.49h-6.54Zm51.07,24.69c0,9-5.88,13.8-15.17,13.8H192.67V0H207.3c9.18,0,15.06,4.78,15.06,13.8ZM215.82,13.8c0-5.28-3.3-8.14-8.52-8.14h-8.08V32.77h8c5.33,0,8.63-2.8,8.63-8.08ZM108.31,23.92c4.34-1.6,6.93-5.28,6.93-11.55C115.24,3.68,110.18,0,102.48,0H88.84V38.49h6.55V5.66h6.87c3.8,0,6.21,1.82,6.21,6.71s-2.41,6.76-6.21,6.76H98.88l9.21,19.36h7.53Z",fill:"url(#"+e.random+")"}})])}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97"}},[r("title",[e._v("unraid-mark")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{attrs:{fill:"url(#"+e.random+")",d:"M63.49,19.24H70V57.73H63.49ZM6.54,57.73H0V19.24H6.54Zm25.2,4.54h6.55V77H31.74ZM15.87,45.84h6.54V69.62H15.87Zm31.75,0h6.54V69.62H47.62ZM127,19.24h6.54V57.73H127ZM101.77,14.7H95.23V0h6.54Zm15.88,16.44H111.1V7.35h6.55Zm-31.75,0H79.36V7.35H85.9Z"}})])}),oi=g({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},ii,[],!1,null,null,null,!0).exports,ai=r("5d74"),si=r.n(ai);i.default.use(si.a,{url:(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX?Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX:"")+"/assets/svg/sprite.svg",class:"svg-icon"});var ci=(g({name:"svg-icon",props:{symbol:{type:String,required:!0},symbolClass:String}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("svg",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"unraid-svg-icon",class:e.symbolClass,attrs:{symbol:e.symbol,title:e.symbol,role:"presentation"}})}),[],!1,(function(e){var t=r("39a1");t.__inject__&&t.__inject__(e)}),"3b60bb54",null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-center w-full"},[r("header",[r("h2",{staticClass:"text-24px md:text-30px",domProps:{innerHTML:e._s(e.stateData.heading?e.stateData.heading:e.stateData.error.heading)}}),r("div",{staticClass:"text-14px opacity-90 mt-12px mx-auto",class:{"text-center":e.stateData.messageCenter,"text-left":!e.stateData.messageCenter,"prose-2xl":!e.CAN_POST_MESSAGE,prose:e.CAN_POST_MESSAGE}},[r("div",{domProps:{innerHTML:e._s(e.stateData.message?e.stateData.message:e.stateData.error.message)}}),e.showExpiretime?r("HelperTimeConvert",{staticClass:"italic text-center font-semibold mt-16px"}):e._e()],1)]),r("div",{staticClass:"ActionRequired flex flex-col justify-center mt-16px"},[e.isPopUpOpen?[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("backToPopUp")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{text:e.$t("closePopUp")},on:{"btn-click":function(t){return e.closePopUp()}}})]:[e.stateData.actions.includes("register")?[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignIn":null,text:e.$t("signIn")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),e.guidRegistered||e.forumaccount?e._e():r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignUp":null,text:e.$t("signUp")},on:{"btn-click":function(t){return e.openPopUp(e.signUpPayload)}}})]:e._e(),e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.purchase")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.redeemWindow.url:null,text:"Redeem Activation Code"},on:{"btn-click":function(t){return e.openPopUp(e.redeemWindow)}}}):e._e(),e.stateData.actions.includes("upgrade")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.upgrade")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("replace")&&e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ReplaceKey":null,text:e.$t("actions.replace")},on:{"btn-click":function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")&&!e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("actions.replaceIneligible"),title:e.guidBlacklisted?"Your Unraid registration key is ineligible for replacement as it is blacklisted.":e.$t("stateData.EGUID.error.message.replacementIneligible"),disabled:""},on:{"btn-click":function(t){return e.niceTry()}}}):e._e(),e.stateData.actions.includes("recover")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"RecoverKey":null,text:e.$t("actions.recover")},on:{"btn-click":function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("continueTrial")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("regWizPopUp.continueTrial")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("extend")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ExtendTrial":null,text:e.$t("actions.extend")},on:{"btn-click":function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e(),e.stateData.actions.includes("close")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("continueToUnraid")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("signOut")&&e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignOut":null,text:e.$t("signOut")},on:{"btn-click":function(t){return e.openPopUp(e.signOutPayload)}}}):e._e()]],2)])}),ui=r("5a0c"),li=r.n(ui);const pi=(e,t,r,n,i,o,a)=>({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a});var di=(e,t,r)=>{let n,i=li()(e),o=li()(t);if(i.isSame(o))return r?pi(0,0,0,0,0,0,!1):"";if(i.isAfter(o)){const e=i;i=o,o=e,n=!0}else n=!1;let a=o.year()-i.year(),s=o.month()-i.month(),c=o.date()-i.date(),u=o.hour()-i.hour(),l=o.minute()-i.minute(),p=o.second()-i.second();if(p<0&&(p=60+p,l-=1),l<0&&(l=60+l,u-=1),u<0&&(u=24+u,c-=1),c<0){const e=li()(`${o.year()}-${o.month()+1}`).subtract(1,"M").daysInMonth();c=e{const r=e?li()(parseInt(e,10)):li()(),n=t?li()(parseInt(t,10)):li()();return di(r,n,!0)};var hi=(e,t)=>t?fi(e,""):fi("",e),mi=r("23ad"),gi=r.n(mi);r("e072"),r("6210"),r("e5b7");const vi=document.getElementsByTagName("unraid-user-profile")[0];if(vi){const e=vi.getAttribute("locale").slice(0,2);li.a.locale(e),Le.debug("[formatDate] dayjs.locale()",li.a.locale())}li.a.extend(gi.a);var bi=e=>li()(parseInt(e,10)).format("llll"),yi=g({data:()=>({parsedUptime:"",parsedExpireTime:""}),computed:{...Object(v.c)(["showExpiretime"]),...Object(v.e)(["state","expiretime","uptime"]),formattedUptime(){return bi(this.uptime)},formattedExpireTime(){return bi(this.expiretime)},timeCopy(){return this.showExpiretime?{title:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.date",{date:this.formattedExpireTime}):this.$t("upc.meta.trial.active.date",{date:this.formattedExpireTime}),text:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.timeDiff",{timeDiff:this.parsedExpireTime}):this.$t("upc.meta.trial.active.timeDiff",{timeDiff:this.parsedExpireTime})}:{title:this.$t("upc.meta.uptime.date",{date:this.formattedUptime}),text:this.$t("upc.meta.uptime.readable",{timeDiff:this.parsedUptime})}}},methods:{buildStringFromValues({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a,displaySecondsInStringReturn:s}){const c=[],u={year:this.$t("year"),years:this.$t("years"),month:this.$t("month"),months:this.$t("months"),day:this.$t("day"),days:this.$t("days"),hour:this.$t("hour"),hours:this.$t("hours"),minute:this.$t("minute"),minutes:this.$t("minutes"),second:this.$t("second"),seconds:this.$t("seconds"),firstDateWasLater:this.$t("ago"),delimiter:" "},l=(e,t)=>`${e} ${u[t+(1===e?"":"s")]}`;return e&&c.push(l(e,"year")),t&&c.push(l(t,"month")),r&&c.push(l(r,"day")),n&&c.push(l(n,"hour")),i&&c.push(l(i,"minute")),!o||(e||t||r||n||i)&&!s||c.push(l(o,"second")),a&&c.push(u.firstDateWasLater),c.join(u.delimiter)},runTimeDiff(){this.uptime&&(this.parsedUptime=this.buildStringFromValues(hi(this.uptime,!0))),this.expiretime&&(this.parsedExpireTime=this.buildStringFromValues(hi(this.expiretime,!1)))},letsGo(){this.runTimeDiff(),this.interval=setInterval(()=>{this.runTimeDiff()},1e3)}},created(){this.letsGo()},beforeDestroy(){clearInterval(this.interval)}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("p",{staticClass:"select-all",attrs:{title:e.timeCopy.title}},[e._v(e._s(e.timeCopy.text))])}),[],!1,null,null,null,!0).exports,wi=g({props:{hrefUrl:{type:[Boolean,URL],default:!1},routeName:{type:String},text:{type:String,required:!0}},computed:{}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.routeName?r("router-link",{attrs:{to:{name:e.routeName}}},[e._v(e._s(e.text))]):e.hrefUrl?r("a",{attrs:{href:e.hrefUrl}},[e._v(e._s(e.text))]):r("button",{on:{click:function(t){return e.$emit("btn-click")}}},[e._v(e._s(e.text))])}),[],!1,null,null,null,!0);var xi=g({components:{HelperTimeConvert:yi,UiButton:wi.exports},data:()=>({CAN_POST_MESSAGE:Ee}),computed:{...Object(v.c)(["stateData","showExpiretime"]),...Object(v.e)(["isPopUpOpen","purchaseWindow","redeemWindow","forumaccount","guidBlacklisted","guidRegistered","extendTrialPayload","recoverKeyPayload","registered","replaceable","replaceKeyPayload","signOutPayload","signInPayload","signUpPayload","state","wizardWindow","messages"])},methods:{...Object(v.b)(["openPopUp","closePopUp","closePopUpFromPopUp"]),...Object(v.d)(["SET_IS_LAUNCHPAD_OPEN"]),niceTry(){alert("❌ Nice try you little sneak ❌")}}},ci,[],!1,(function(e){var t=r("2251");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var _i=g({i18n:fe,store:ei,name:"Launchpad",props:["serverstate","webguiTranslations"],components:{UnraidLoading:ni,LaunchpadActionRequired:xi},computed:{...Object(v.e)(["guid","isLaunchpadOpen","loading"]),...Object(v.c)(["server"])},methods:{...Object(v.b)(["setStateFromWebComponentProp","validateGuid"]),...Object(v.d)(["SET_IS_LAUNCHPAD_OPEN"])},watch:{signedOutWithKey(e,t){e&&!t&&this.validateGuid()}},created(){if(this.serverstate&&this.setStateFromWebComponentProp(this.serverstate),this.guid)this.validateGuid();else{const e=setInterval(()=>{this.guid&&(clearInterval(e),this.validateGuid())},250)}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"absolute inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:e.$t("closeLaunchpad")},on:{click:function(t){return e.SET_IS_LAUNCHPAD_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("main",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-4xl mr-8px p-24px md:p-32px lg:px-40px shadow-md rounded-lg"},[e.loading?r("UnraidLoading",{staticClass:"mx-auto",attrs:{height:64}}):r("LaunchpadActionRequired")],1)])],1)])}),[],!1,(function(e){var t=r("f153");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Ei=g({i18n:fe,store:ei,name:"UpcTrigger",props:[],data:()=>({}),computed:{...Object(v.c)(["stateData","stateDataKeyActions"]),...Object(v.e)(["isPopUpOpen","registered","state","triggerUPC","wizardWindow"]),copy(){return this.registered?"BASIC"===this.state||"PLUS"===this.state?"To support more storage devices as your server grows, click Upgrade Key in the User Profile located at the top right of the webGUI on every page.":"Key actions are done in the User Profile located at the top right of the webGUI on every page.":"You must be signed in to Unraid.net to perform key actions."},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.registered?this.stateDataKeyActions?"Open User Profile":"":this.$t("signIn")},buttonTitle(){return this.stateDataKeyActions?"Open User Profile":this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},methods:{...Object(v.b)(["jumpToUpc","closePopUp","openPopUp"]),btnClick(){return!this.registered||this.isPopUpOpen?this.openPopUp(this.wizardWindow):this.jumpToUpc()}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[null!==e.registered&&e.buttonText?r("div",{staticClass:"flex flex-wrap pl-12px"},[r("p",{staticClass:"w-7/20 pr-12px"},[e._v(e._s(e.copy))]),r("div",{staticClass:"w-13/20 inline-flex flex-row"},[r("button",{attrs:{type:"button",title:e.buttonTitle,disabled:e.triggerUPC},on:{click:function(t){return e.btnClick()}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)]):e._e()])}),[],!1,(function(e){var t=r("22c9");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Si=r("ab14"),ki=r.n(Si),Oi=r("c7db"),Ti=r("b692"),Ii=r.n(Ti),Ri=r("a3b3"),Ai=r.n(Ri),Ci=r("8a86"),Ni=r.n(Ci),Pi=r("b2a0"),Di=r.n(Pi),Mi=r("45b7"),Li=r.n(Mi),Ui=r("381c"),ji=r.n(Ui),Fi=g({props:{payload:{type:Object},text:{type:String},emphasize:{type:Boolean,default:!1},external:{type:Boolean,default:!0}},components:{UnraidSvgUiKey:ji.a,UnraidSvgUtilNewWindow:Ai.a}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("button",{staticClass:"group flex flex-row items-center justify-between",class:{"btn-emphasize":e.emphasize},attrs:{title:e.external?""+e.$t("upc.opensNewHttpsWindow.base",[e.text]):null},on:{click:function(t){return e.$emit("click")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiKey",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.text)+" ")],1),e.external?r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):e._e()],1)}),[],!1,null,null,null,!0).exports,$i=r("a190"),Vi=r.n($i),Gi=r("a313"),zi=r.n(Gi),Bi=r("94d0"),Wi=r.n(Bi),qi=r("973e"),Qi=r.n(qi),Hi=r("b045"),Yi=r.n(Hi),Ki=r("44f2"),Xi=r.n(Ki);var Ji=g({components:{UnraidLoading:ni,UnraidSvgUiWarningFill:Vi.a,UnraidSvgUtilCheck:zi.a,UnraidSvgUtilDelete:Wi.a,UnraidSvgUtilHelp:Qi.a,UnraidSvgUtilInfo:Yi.a,UnraidSvgUtilNewWindow:Ai.a,UnraidSvgUtilTerminal:Xi.a},props:["errorStateMessageVisible","hideotherservers","hideMyServers"],data:()=>({offlineTimer:sessionStorage.getItem("offlineTimer")||!1,restartTriggered:!1}),watch:{apikey(e,t){t||!e||this.hideMyServers||(Le.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz()),!t||e||this.hideMyServers||(Le.debug("[apikey removed] disconnect from unraid-api",{newVal:e,oldVal:t}),this.stopGraphqlClient(t))},noRemoteApikeyRegisteredWithPlg(e,t){t||!e||this.hideMyServers||(Le.debug("[watch.noRemoteApikeyRegisteredWithPlg] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz()),!t||e||this.hideMyServers||(Le.debug("[noRemoteApikeyRegisteredWithPlg removed] disconnect from unraid-api",{newVal:e,oldVal:t}),this.stopGraphqlClient(this.apikey))},registered(e,t){t||!e||this.hideMyServers||(Le.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},myServersError(e,t){!t||e||this.myServers.length||(Le.debug("[watch.myServersError] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},graphOnline(e,t){t&&!1===e&&this.timer("watch.graphOnline")}},computed:{...Object(v.c)(["errorTooManyDisks","keyTypeForPurchase","myServersOutage","noRemoteApikeyRegisteredWithPlg","stateData","validApiKeyLength"]),...Object(v.e)(["apikey","apiVersion","cloud","deviceCount","graphOnline","guid","hasRemoteApikey","myServers","myServersError","myServersErrorShowSupportBtn","myServersLoading","registered","servername","signInPayload","state","wanip"]),currentServer(){return this.myServers?this.myServers.filter(e=>e.guid===this.guid?e:null)[0]:{name:this.servername,status:"offline"}},currentServerStatus(){return this.currentServer?this.currentServer.status:"offline"},filteredServers(){return this.myServers?this.hideotherservers?[]:this.myServers.filter(e=>e.guid!==this.guid?e:null).sort((e,t)=>e.name.localeCompare(t.name,"en",{numeric:!0,sensitivity:"base"})):[]},errorToggleText(){return this.stateData.error.message?"EEXPIRED"===this.state?this.stateData.error.heading:this.$t("fixError"):this.myServersError||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks||this.myServersOutage&&this.myServersOutage.enabled||this.cloud&&this.cloud.error?this.computedErrorHeading:""},errorToggleTitle(){if(this.stateData.error||this.stateData.message||this.myServersError||this.myServersOutage&&this.myServersOutage.enabled||this.cloud&&this.cloud.error){return`${!this.stateData.error.message&&!this.stateData.message||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks||!this.cloud||this.cloud.error?this.computedErrorHeading:this.stateData.humanReadable} • ${this.errorStateMessageVisible?this.$t("upc.myServers.closeDetails"):this.$t("learnMore")}`}return""},computedErrorHeading(){return this.noRemoteApikeyRegisteredWithPlg?this.$t("upc.noRemoteApikeyRegisteredWithPlg.heading"):this.stateData.error.heading?this.stateData.error.heading:this.myServersLoading&&this.restartTriggered?"Unraid API":this.myServersError?this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.heading"):this.$t("upc.myServers.errors.myServers.heading"):this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.myServersOutage.enabled?this.myServersOutage.message.heading:this.cloud&&this.cloud.error?this.$t("upc.myServers.errors.unraidApi.heading"):""},computedError(){if(this.noRemoteApikeyRegisteredWithPlg)return this.$t("upc.noRemoteApikeyRegisteredWithPlg.msg");if(this.stateData.error.message)return this.stateData.error.message;if(this.myServersLoading&&this.restartTriggered)return"Restarting…";if(this.myServersError)return this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.message"):this.myServersError;if(this.errorTooManyDisks){const e=this.$t("upc.errorTooManyDisks.msg.base");return"Basic"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.basic")} ${e}`:"Plus"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.plus")} ${e}`:e}return this.myServersOutage.enabled?this.myServersOutage.message.main:this.cloud&&this.cloud.error?this.cloud.error:""},myServersOverflow(){return this.filteredServers.length>8},apiEnableRestartButton(){return this.offlineTimer&&!this.hideMyServers&&!this.graphOnline&&!this.myServersLoading&&!this.stateData.error&&this.myServersError&&(this.myServersError.includes("unraid-api is stopped")||this.myServersError.includes("Disconnected from Unraid API"))}},methods:{...Object(v.b)(["executeUnraidApi","fetchServers","openPopUp","stopGraphqlClient"]),serversPlz(){return Le.debug("[serversPlz]",{apikey:this.apikey,noRemoteApikeyRegisteredWithPlg:this.noRemoteApikeyRegisteredWithPlg,validApiKeyLength:this.validApiKeyLength,myServersOutage:this.myServersOutage}),this.myServersOutage&&this.myServersOutage.enabled?Le.error(this.myServersOutage.message.main):this.noRemoteApikeyRegisteredWithPlg?Le.error("[MyServers] remote apikey does not exist"):this.validApiKeyLength?(this.fetchServers(),this.timer("serversPlz()")):Le.error("[MyServers] invalid apikey")},timer(e=""){Le.debug("[timer] %s",e),setTimeout(()=>{this.graphOnline||(this.offlineTimer=!0,sessionStorage.setItem("offlineTimer",Date.now()))},3e4)},triggerRestart(){this.executeUnraidApi({command:"start"}),this.offlineTimer=!1,this.restartTriggered=!0,sessionStorage.removeItem("offlineTimer")}},created(){!this.hideMyServers&&this.registered&&this.serversPlz()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"relative"},[r("ul",{staticClass:"relative"},[e.filteredServers.length&&e.myServersError&&!e.stateData.error?r("li",{staticClass:"text-red text-12px font-semibold px-16px pb-4px"},[r("em",[e._v(e._s(e.$t("upc.myServers.displayingLastKnown")))])]):e._e(),e.computedError?r("li",{key:"current-server-error",staticClass:"w-full"},[r("button",{staticClass:"btn-error group py-8px px-16px flex flex-col",attrs:{title:e.errorToggleTitle},on:{click:function(t){return e.$emit("toggle-error")}}},[r("div",{staticClass:"w-full flex flex-row justify-between items-center"},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"font-semibold mx-8px"},[e._v(" "+e._s(e.servername)+" ")])],1),e.computedError&&e.errorStateMessageVisible?r("UnraidSvgUtilDelete",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):r("UnraidSvgUtilInfo",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&e.errorStateMessageVisible?r("div",{staticClass:"UnraidUPC-serverError"},[r("div",{staticClass:"text-14px font-semibold pt-4px"},[r("h3",{staticClass:"text-16px mb-4px"},[e._v(e._s(e.errorToggleText))]),r("p",{domProps:{innerHTML:e._s(e.computedError)}})])]):e._e()])],1)]):e._e(),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&!e.stateData.error&&e.errorStateMessageVisible&&e.myServersOutage&&e.myServersOutage.enabled&&e.myServersOutage.message.link?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:e.myServersOutage.message.link,title:e.myServersOutage.message.linkSameTab?"":e.$t("upc.opensNewHttpsWindow.base",[this.myServersOutage.message.heading]),target:e.myServersOutage.message.linkSameTab?"":"_blank",rel:"noreferrer noopener"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.myServersOutage.message.linkSameTab?"Go to Plugins":e.$t("learnMore"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},["EEXPIRED"!==e.state&&e.stateData.error&&e.errorStateMessageVisible||!e.stateData.error&&e.myServersErrorShowSupportBtn||this.cloud&&this.cloud.error?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("contactSupport")])},on:{click:function(t){return e.$emit("contact-support")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("contactSupport"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.noRemoteApikeyRegisteredWithPlg&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("signIn")])},on:{click:function(t){return e.openPopUp(e.signInPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.signInActions.resolve"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.apiEnableRestartButton?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.myServers.api.startTitle")},on:{click:function(t){return e.triggerRestart()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilTerminal",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.myServers.api.start"))+" ")],1)])]):e._e()]),r("div",{staticClass:"relative z-0",class:{"custom-scrollbar":e.myServersOverflow}},[r("div",{class:{"overflow-y-scroll max-h-310px":e.myServersOverflow}},[r("transition-group",{attrs:{name:"fade",mode:"out-in"}},[e.myServersLoading?r("UnraidLoading",{key:"gql-loading",staticClass:"w-36px my-8px mx-auto",attrs:{height:21,title:e.$t("upc.myServers.loading")}}):e._e(),e.filteredServers?r("div",{key:"filteredServers"},[r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError?e._e():r("li",{key:"current-server",staticClass:"w-full py-8px px-16px flex flex-row items-center",class:{"text-beta":"online"===e.currentServerStatus,"text-orange cursor-not-allowed":"online"!==e.currentServerStatus},attrs:{title:e.$t("upc.myServers.accessLabels.current")+" • "+("online"!==e.currentServerStatus?e.$t("upc.myServers.mothership.notConnected"):e.$t("upc.myServers.mothership.connected"))}},["online"!==e.currentServerStatus?r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}):r("UnraidSvgUtilCheck",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"ml-8px select-all"},[e._v(e._s(e.currentServer?e.currentServer.name:e.servername))])],1)]),e._l(e.filteredServers,(function(t,n){return r("li",{key:"filteredServer_"+n},["online"===t.status&&e.wanip!==t.wanip&&t.remoteurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.remoteurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.remote")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"online"===t.status&&t.localurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.localurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.local")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"never_connected"!==t.status?r("span",{staticClass:"w-full flex flex-row items-center px-16px py-8px opacity-50 cursor-not-allowed",attrs:{title:"online"===t.status?e.$t("upc.myServers.accessLabels.unavailable"):e.$t("upc.myServers.accessLabels.offline")}},[r("span",{staticClass:"text-red text-14px w-12px mr-8px"},[e._v("×")]),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):e._e()])}))],2):e._e()],1)],1)])],1)])}),[],!1,(function(e){var t=r("dce8");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Zi=g({components:{HelperTimeConvert:yi},computed:{...Object(v.e)(["registered","state"]),...Object(v.c)(["stateData"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-gamma text-12px text-right font-semibold leading-normal flex flex-row items-baseline justify-end pr-16px pt-4px"},[r("HelperTimeConvert"),r("span",{staticClass:"px-12px"},[e._v("•")]),e.registered&&e.stateData.actions.includes("upgrade")?r("button",{staticClass:"text-12px text-gamma hover:text-alpha focus:text-alpha font-semibold transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.upgrade")},on:{click:function(t){return e.$emit("upgrade")}}},[r("h5",[e._v("Unraid OS "),r("em",[r("strong",[e._v(e._s(e.stateData.humanReadable))])])])]):r("h5",[e._v("Unraid OS "),r("em",{class:{"text-red":e.stateData.error||"EEXPIRED"===e.state}},[r("strong",[e._v(e._s(e.stateData.humanReadable))])])]),e.registered&&e.stateData.actions.includes("purchase")?r("button",{staticClass:"text-12px text-orange-dark font-semibold hover:text-alpha focus:text-alpha ml-12px transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.purchase")},on:{click:function(t){return e.$emit("purchase")}}},[e._v(e._s(e.$t("actions.purchase")))]):e._e()],1)}),[],!1,null,null,null,!0).exports;var eo=g({i18n:fe,store:ei,name:"UserProfile",mixins:[Oi.mixin],components:{UnraidLogoMark:oi,KeyAction:Fi,MetaInfo:Zi,MyServers:Ji,UnraidSvgUtilLogout:Ii.a,UnraidSvgUtilNewWindow:Ai.a,UnraidSvgUtilSelect:Ni.a,UnraidSvgUtilEdit:Di.a,UnraidSvgUiWarning:Li.a},props:{serverstate:String,banner:{type:String,default:""},showBannerGradient:{type:String,default:"yes"},bgcolor:[String,Number],displaydesc:{type:String,default:""},locale:String,localeMessages:String,metacolor:String,textcolor:String,theme:{type:String,default:"black"},hideotherservers:{type:String,default:""},apikey:String,apiVersion:String,csrf:String,expiretime:[Number,String],hideMyServers:{type:String,default:null},plgPath:String,regWizTime:String,sendCrashInfo:String,serverdesc:String,servermodel:String,serverupdate:Boolean,uptime:[Number,String]},data:()=>({NODE_ENV:he,avatarFail:!1,copyingIp:!1,dropdownTimeout:"",dropdownVisible:!1,errorStateMessageVisible:!0}),computed:{...Object(v.e)(["avatar","isLaunchpadOpen","isPopUpOpen","guid","guidRegistered","popUpWindow","regAtOpen","purchaseWindow","redeemWindow","registered","servername","internalip","state","username","darkTheme","lightTheme","extendTrialPayload","recoverKeyPayload","replaceKeyPayload","signInPayload","signUpPayload","signOutPayload","troubleshootPayload","wizardWindow","messages","myServersEnv","triggerUPC","graphOnline","myServersError","cloud"]),...Object(v.c)(["errorTooManyDisks","noRemoteApikeyRegisteredWithPlg","signedOutWithKey","stateData","myServersOutage","allowedOrigins","server"]),darkMode(){return"black"===this.theme||"azure"===this.theme},usernameButtonText(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):this.stateData.error&&this.stateData.error.signInToFix&&!this.registered?this.$t("signIn"):this.stateData.error&&!this.stateData.error.signInToFix&&"EEXPIRED"===!this.state?this.$t("fixError"):this.registered?this.username:this.$t("signIn")},usernameButtonTitle(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):this.stateData.error&&this.stateData.error.signInToFix&&!this.registered?this.$t("upc.signInActions.resolve"):this.stateData.error&&!this.stateData.error.signInToFix?this.$t("learnMore"):this.isPopUpOpen&&this.isLaunchpadOpen?this.$t("upc.confirmClosure"):this.cloud&&this.cloud.error?`${this.$t("upc.myServers.errors.unraidApi.heading")}: ${this.cloud.error}`:this.myServersError?`${this.$t("upc.myServers.errors.unraidApi.heading")}: ${this.myServersError}`:this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.isLaunchpadOpen?this.$t("closeLaunchpad"):"EEXPIRED"===this.state?this.registered?this.$t("upc.trialHasExpiredSeeOptions"):this.stateData.actions.includes("extend")?this.$t("upc.signInActions.purchaseKeyOrExtendTrial"):this.$t("upc.signInActions.purchaseKey"):this.registered&&this.dropdownVisible?this.$t("upc.closeDropdown"):this.registered&&!this.dropdownVisible?this.$t("upc.openDropdown"):this.$t("upc.opensNewHttpsWindow.signIn")},displayKeylineBelowActions(){return!!(this.stateData.actions.includes("purchase")||this.stateData.actions.includes("upgrade")||this.stateData.actions.includes("recover")||this.stateData.actions.includes("replace")||this.stateData.actions.includes("extend"))},extraLinks(){return[...!this.hideMyServers||this.stateData.error.message||this.errorTooManyDisks?[{url:"",text:"",external:!1}]:[],...this.hideMyServers?[{url:"https://wiki.unraid.net/My_Servers",text:"Install My Servers Beta",external:!0,title:this.$t("upc.extraLinks.newTab",["Install My Servers Beta"])}]:[{url:this.myServersEnv?"https://forums.unraid.net/my-servers-staging/":"https://forums.unraid.net/my-servers/",text:this.$t("upc.extraLinks.myServers"),external:!0,title:this.$t("upc.extraLinks.newTab",[this.$t("upc.extraLinks.myServers")])},{url:"/Settings/ManagementAccess#"+(this.plgPath?"MyServersSettings":"UnraidNetSettings"),text:this.$t("upc.extraLinks.settings.text"),settings:!0,title:this.$t("upc.extraLinks.settings.title")}]]},devEnv(){let e=he;const t="UPC_ENV=",r=document.cookie.split(";");for(let n=0;n{this.dropdownVisible=!1},1e3)},autoTriggerLaunchpad(){setTimeout(()=>{const e=`${this.servername}_${this.guid?this.guid.slice(-12):"NO_GUID"}`;sessionStorage.getItem(e)||"ENOKEYFILE"!==this.state||(sessionStorage.setItem(e,"またね"),this.isLaunchpadOpen||this.toggleLaunchpad())},100)},toggleLaunchpad(){const e="unraid-launchpad";if(!document.getElementsByTagName(e).length){const t=document.getElementsByTagName("body")[0],r=document.createElement(e);t.appendChild(r)}const t=()=>{this.dropdownVisible&&(this.dropdownVisible=!1),this.isPopUpOpen&&this.closePopUp(),this.SET_IS_LAUNCHPAD_OPEN(!this.isLaunchpadOpen)};this.isPopUpOpen&&this.isLaunchpadOpen?window.confirm(this.$t("upc.pleaseConfirmClosureYouHaveOpenPopUp"))&&t():t()},onAvatarError(){Le.error("Avatar failed to load %s",this.avatar),this.avatarFail=!0},async initUserProfile(){if(Le.debug("[initUserProfile]"),this.setStateFromWebComponentProp(this.serverstate),this.apikey&&this.SET_API_KEY(this.apikey),this.apiVersion&&this.SET_MY_SERVERS_API_VERSION(this.apiVersion),this.csrf&&this.SET_CSRF(this.csrf),this.expiretime&&this.SET_EXPIRE_TIME(this.expiretime),this.hideMyServers&&this.SET_HIDE_MY_SERVERS(this.hideMyServers),this.plgPath&&this.SET_PLG_PATH(this.plgPath),this.regWizTime&&this.SET_REGWIZ_TIME(this.regWizTime),this.serverdesc&&this.SET_SERVERDESC(this.serverdesc),this.uptime&&this.SET_UPTIME(this.uptime),this.devEnv&&this.SET_DEV_MODE(this.devEnv),!this.registered){const e=`Sign In to your Unraid.net account to perform license key actions${this.hideMyServers?"":" and to receive real-time server monitoring with My Servers"}.`,t="Learn more at https://wiki.unraid.net/My_Servers.",r=["color: white","background: linear-gradient(to right, #E22828 0%, #FF8C2F 100%)","font-size: 10px","padding: 4px"].join(";");Le.log("%c"+e,r),Le.log("%c"+t,r)}if(this.localeMessages){Le.debug("[this.locale] %o",this.locale);const[e,t]=Te(decodeURIComponent(this.localeMessages));e&&Le.error("[initUserProfile.localeMessages] %s","Unable to set locale and locale messages"),this.$i18n.locale=this.locale,this.$i18n.setLocaleMessage(this.locale,t[this.locale]),Le.debug(`[initUserProfile.$i18n] ${this.$i18n.locale} locale & messages set %o`,t[this.locale]),this.SET_LOCALE(this.locale)}this.signedOutWithKey&&this.regWizTime?(Le.debug("[initUserProfile] %o",{signedOutWithKey:this.signedOutWithKey,regWizTime:this.regWizTime}),await this.validateGuid()):this.autoTriggerLaunchpad(),window.addEventListener("message",e=>{this.receivePostMessage({inject:!1,event:e})},!1)},copyIP(){if(Le.debug("[copyIP] %s",this.internalip),!navigator.clipboard)return Le.error("Unable to copy IP: %s",this.internalip);const e=()=>{this.copyingIp=!this.copyingIp,setTimeout(()=>{this.copyingIp=!this.copyingIp},750)};try{return navigator.clipboard.writeText(this.internalip),e()}catch(e){return Le.error(`Unable to copy IP: ${this.internalip} %o`,e)}}},watch:{signedOutWithKey(e,t){Le.debug("[signedOutWithKey]",{newVal:e,oldVal:t,regWizTime:this.regWizTime}),e&&!t&&this.regWizTime&&this.validateGuid()},isPopUpOpen(e,t){this.isLaunchpadOpen&&!e&&t&&!this.regAtOpen&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)},triggerUPC(e){e&&setTimeout(()=>{this.dropdownVisible=!0},150)},graphOnline(e,t){e&&!t&&this.updateServerState()}},created(){this.initUserProfile()},beforeMount(){const e=document.getElementsByTagName("body")[0],t={darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"}};let{alpha:r,beta:n,gamma:i}=this.darkMode?t.darkTheme:t.lightTheme;this.textcolor&&(r=this.textcolor),this.bgcolor&&(n=this.bgcolor,e.style.setProperty("--color-customgradient-start",ki()(n,0)),e.style.setProperty("--color-customgradient-end",ki()(n,.9))),this.metacolor&&(i=this.metacolor),e.style.setProperty("--color-alpha",r),e.style.setProperty("--color-beta",n),e.style.setProperty("--color-gamma",i),e.style.setProperty("--shadow-beta","0 25px 50px -12px "+ki()(n,.15)),e.style.setProperty("--ring-offset-shadow","0 0 "+n),e.style.setProperty("--ring-shadow","0 0 "+n)}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"UnraidUPC",class:{"--hasBanner-default":e.banner&&"no"!==e.showBannerGradient&&!e.bgcolor,"--hasBanner-custom":e.banner&&"no"!==e.showBannerGradient&&e.bgcolor},attrs:{id:"UnraidUPC"}},[e.isPopUpOpen&&!e.isLaunchpadOpen?r("div",{staticClass:"absolute z-10 inset-0 flex flex-col items-end justify-center pr-6"},[r("div",{staticClass:"text-center inline-flex flex-col items-center justify-center"},[r("button",{staticClass:"text-14px button button-alt",on:{click:function(t){return e.openPopUp()}}},[e._v(e._s(e.$t("backToPopUp")))]),r("button",{staticClass:"hover:underline text-12px mt-4px",on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))])])]):e._e(),r("MetaInfo",{class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen},on:{purchase:function(t){return e.openPopUp(e.purchaseWindow)},upgrade:function(t){return e.openPopUp(e.purchaseWindow)},signin:function(t){return e.openPopUp(e.signInPayload)}}}),r("div",{staticClass:"relative z-0 flex flex-row items-center justify-end h-full",class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen}},[r("h1",{staticClass:"relative text-18px border-t-0 border-r-0 border-l-0 border-b-2 border-transparent"},[e.displaydesc?[r("span",{attrs:{title:e.servermodel}},[e._v(e._s(e.serverdesc))]),r("span",{staticClass:"text-grey-mid px-8px"},[e._v("•")])]:e._e(),r("span",{staticClass:"cursor-pointer",attrs:{title:e.$t("lanIp",[e.internalip])},on:{click:function(t){return e.copyIP()}}},[e._v(e._s(e.servername))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.copyingIp?r("span",{staticClass:"text-12px absolute right-0 bg-gradient-to-r from-red to-orange text-center block w-100px rounded"},[e._v(e._s("LAN IP Copied"))]):e._e()])],2),r("div",{staticClass:"block w-2px h-24px ml-16px bg-grey-mid"}),r("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeDropdown,expression:"closeDropdown"}],staticClass:"relative flex items-center justify-end h-full",on:{mouseenter:function(t){return e.dropdownMouseEnter()},mouseleave:function(t){return e.dropdownMouseLeave()}}},[r("button",{staticClass:"UnraidUPC-username group text-18px hover:text-alpha focus:text-alpha border border-transparent flex flex-row justify-end items-center h-full px-16px outline-none focus:outline-none",class:{"text-orange-dark":e.isLaunchpadOpen||!e.username&&!e.stateData.error,"text-alpha":e.username&&!e.isLaunchpadOpen,"text-red":e.stateData.error},attrs:{title:e.usernameButtonTitle},on:{click:function(t){return e.usernameAvatarButton()}}},[e.stateData.error||"EEXPIRED"===e.state||e.noRemoteApikeyRegisteredWithPlg||e.errorTooManyDisks||e.cloud&&e.cloud.error?r("UnraidSvgUiWarning",{staticClass:"text-red fill-current relative w-24px h-24px mr-8px"}):e._e(),r("span",{staticClass:"inline-flex items-center bg-transparent border-t-0 border-l-0 border-r-0 border-b-2 border-transparent group-hover:border-orange-dark group-focus:border-orange-dark transition-colors duration-150 ease-in-out"},[e._v(" "+e._s(e.usernameButtonText)+" "),e.registered&&!e.isLaunchpadOpen?r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"}):e._e()],1),r("span",{staticClass:"relative z-0 flex items-center justify-center w-36px h-36px ml-8px rounded-full",class:{"bg-transparent":e.registered&&!e.avatarFail,"bg-gradient-to-r from-red to-orange":!e.registered||e.avatarFail}},[e.registered&&!e.avatarFail?r("img",{staticClass:"absolute z-10 inset-0 w-36px h-36px rounded-full overflow-hidden",attrs:{src:e.avatar,alt:""+e.$t("upc.avatarAlt",[e.username])},on:{error:e.onAvatarError}}):r("UnraidLogoMark",{staticClass:"relative z-0 w-28px",attrs:{"gradient-start":"#fff","gradient-stop":"#fff"}})],1)],1),r("transition",{attrs:{name:"slideVerticalFade",mode:"out-in"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.dropdownVisible&&e.registered,expression:"dropdownVisible && registered"}],staticClass:"UnraidUPC-dropdown",class:{"border-grey-darkest":e.darkMode,"border-grey-light":!e.darkMode}},[e.hideMyServers?e._e():r("header",{staticClass:"text-14px pt-16px px-16px rounded-t"},[r("h5",{staticClass:"text-18px leading-none inline-flex flex-row items-center"},[r("span",{staticClass:"font-semibold"},[e._v(e._s(e.$t("upc.myServers.heading")))]),r("span",{staticClass:"text-grey-mid text-10px uppercase ml-8px py-4px px-6px border-2 border-grey-mid rounded-full"},[e._v(e._s(e.$t("upc.myServers.beta")))]),e.myServersEnv?r("span",{staticClass:"ml-8px",attrs:{title:"API • "+e.myServersEnv}},[e._v("⚙️")]):e._e(),e.devEnv?r("span",{staticClass:"ml-8px",attrs:{title:e.devEnv}},[e._v("⚠️")]):e._e()])]),r("ul",{staticClass:"list-reset my-8px p-0"},["development"===e.NODE_ENV?[r("li",[r("KeyAction",{attrs:{text:"[DEV] Launchpad",external:!1},on:{click:function(t){return e.toggleLaunchpad()}}})],1),r("li",[r("KeyAction",{attrs:{text:"[DEV] Pop-up"},on:{click:function(t){return e.openPopUp(e.wizardWindow)}}})],1)]:e._e(),e.displayKeylineBelowActions?[r("li",[e.stateData.actions.includes("purchase")?[r("KeyAction",{attrs:{text:e.$t("actions.purchase")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}),r("KeyAction",{attrs:{text:"Redeem Activation Code"},on:{click:function(t){return e.openPopUp(e.redeemWindow)}}})]:e._e(),e.stateData.actions.includes("upgrade")?r("KeyAction",{attrs:{text:e.$t("actions.upgrade")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("recover")?r("KeyAction",{attrs:{text:e.$t("actions.recover")},on:{click:function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")?r("KeyAction",{attrs:{text:e.$t("actions.replace")},on:{click:function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("extend")?r("KeyAction",{attrs:{text:e.$t("actions.extend")},on:{click:function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e()],2),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]:e._e(),!e.hideMyServers||e.stateData.error.message||e.errorTooManyDisks||e.myServersOutage.enabled?r("MyServers",{attrs:{hideMyServers:e.hideMyServers,errorStateMessageVisible:e.errorStateMessageVisible,hideotherservers:e.hideotherservers},on:{"contact-support":function(t){return e.openPopUp(e.troubleshootPayload)},"toggle-error":function(t){e.errorStateMessageVisible=!e.errorStateMessageVisible}}}):e._e(),e._l(e.extraLinks,(function(t,n){return[t.url?r("li",{key:n},[r("a",{staticClass:"flex flex-row items-center",attrs:{href:t.url,target:t.external?"_blank":"",rel:t.external?"noopener noreferrer":"",title:t.title}},[t.external?r("UnraidSvgUtilNewWindow",{staticClass:"fill-current w-12px h-12px mr-8px"}):e._e(),t.settings?r("UnraidSvgUtilEdit",{staticClass:"fill-current w-12px h-12px mr-8px"}):e._e(),e._v(" "+e._s(t.text)+" ")],1)]):r("div",{key:n,staticClass:"mx-12px"},[r("hr",{staticClass:"w-full h-2px my-8px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]})),r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",["Sign Out of Unraid.net"])},on:{click:function(t){return e.openPopUp(e.signOutPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilLogout",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s("Sign Out of Unraid.net")+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)])],2)])])],1)])],1)}),[],!1,(function(e){var t=r("e519");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var to=g({i18n:fe,store:ei,name:"WanIpCheck",props:{phpWanIp:{type:String,default:""}},computed:{...Object(v.e)(["wanip","site"]),...Object(v.c)(["isRemoteAccess"]),loading(){return!this.wanip}},methods:{...Object(v.b)(["getWanIp"])},created(){Le.debug("[🍣 WanIpCheck 🍣]"),this.wanip||this.getWanIp()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[e.loading?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.checking")+"…")}}):[e.phpWanIp?[e.isRemoteAccess?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.phpWanIp]))}}):e.phpWanIp!==e.wanip||e.isRemoteAccess?r("span",{staticClass:"mismatch",domProps:{innerHTML:e._s(e.$t("wanIpCheck.mismatch",[e.phpWanIp,e.wanip]))}}):r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.wanip]))}})]:r("span",{staticClass:"error",domProps:{innerHTML:e._s(e.$t("wanIpCheck.resolveError"))}})]],2)}),[],!1,(function(e){var t=r("6e03");t.__inject__&&t.__inject__(e)}),"4ca8352c",null,!0).exports;window.customElements.define("unraid-authed",m(i.default,ti)),window.customElements.define("unraid-launchpad",m(i.default,_i)),window.customElements.define("unraid-upc-trigger",m(i.default,Ei)),window.customElements.define("unraid-user-profile",m(i.default,eo)),window.customElements.define("unraid-wan-ip-check",m(i.default,to))},"5d74":function(e,t,r){e.exports={options:{},ssr:function(e,t){var r=e.data,n=r.attrs,i=n.symbol,o=n.size,a=this.getAttributes(o);a&&(r.attrs=Object.assign({},r.attrs,a)),o&&delete r.attrs.size,i&&delete r.attrs.symbol;var s=r.class,c=r.staticClass||"";c+=s?Object.keys(s).join(" "):"",this.hasClass(c)||(r.staticClass=r.staticClass?r.staticClass+" "+this.options.class:this.options.class);var u=e.context.$createElement("use",{attrs:{href:this.getHref(i)}});Array.isArray(e.children)?e.children.push(u):e.children=[u]},install:function(e,t){void 0===t&&(t={}),this.options.class=t.class||"icon",this.options.url=void 0===t.url?"/assets/svg/sprite.svg":t.url;var r=this;e.directive("svg",{bind:function(e,t,n){var i=t.value||n.data.attrs.symbol,o=n.data.attrs&&n.data.attrs.size,a=r.getAttributes(o);a&&(e.setAttribute("viewBox",a.viewBox),e.setAttribute("width",a.width),e.setAttribute("height",a.height)),i&&e.removeAttribute("symbol"),o&&e.removeAttribute("size");var s=e.getAttribute("class");if(r.hasClass(s)||e.setAttribute("class",s?s+" "+r.options.class:r.options.class),!e||null===e.querySelector("use")){var c=document.createElementNS("http://www.w3.org/2000/svg","use"),u=r.getHref(i);c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u),c.setAttribute("href",u),e.appendChild(c)}},update:function(e,t,n){var i=r.getHref(t.value||n.data.attrs.symbol),o=e&&e.querySelector("use");if(o){if(o.getAttribute("href")===i)return!1;var a=document.createElementNS("http://www.w3.org/2000/svg","use");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttribute("href",i),e.replaceChild(a,o)}}})},getAttributes:function(e){if(!e)return null;var t=e.toString().replace(/( |, |,)/g," ").split(" "),r=t.length;if(3===r||r>4)return console.warn('[vue-svg-sprite] size: "'+e+'" is not valid'),null;var n=[];n[0]=r<4?0:t[0],n[1]=r<4?0:t[1];var i=n[2]=r<4?t[0]:t[2];return{height:n[3]=t[r-1],viewBox:n.join(" "),width:i}},hasClass:function(e){var t=this.options.class;return!!e&&e.split(" ").some((function(e){var r=e.split(/(-|_)/)[0];return-1!==r.indexOf(t)&&r.length===t.length}))},getHref:function(e){return""===this.options.url?"#"+e:this.options.url+"#"+e}}},6210:function(e,t,r){e.exports=function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)}var i={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan_Feb_März_Apr_Mai_Juni_Juli_Aug_Sept_Okt_Nov_Dez".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(i,null,!0),i}(r("5a0c"))},"626e":function(e,t,r){"use strict";var n=[/passw(or)?d/i,/^pw$/,/^pass$/i,/secret/i,/token/i,/api[-._]?key/i,/session[-._]?id/i,/^connect\.sid$/],i=[/^\d{4}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}$/];t.key=function(e){return n.some((function(t){return t.test(e)}))},t.value=function(e){return i.some((function(t){return t.test(e)}))}},"633a":function(e,t,r){"use strict";(function(e){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=t.shift();s&&s.applyMiddleware.apply(i,[e,o])}else r(e)};o()}(a(t.middlewares),t)}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,r){if("function"==typeof e)try{return t(e.call(null))}catch(e){return r(e)}t(e)}))}},e.prototype.executeOperation=function(e,t){var r=this;null===this.client&&this.connect();var n=this.generateOperationId();return this.operations[n]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){r.checkOperationOptions(e,t),r.operations[n]&&(r.operations[n]={options:e,handler:t},r.sendMessage(n,b.default.GQL_START,e))})).catch((function(e){r.unsubscribe(n),t(r.formatErrors(e))})),n},e.prototype.getObserver=function(e,t,r){return"function"==typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return r&&r()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new u({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var r=e.query,n=e.variables,i=e.operationName;if(!r)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!p.default(r)&&!h.getOperationAST(r,i)||i&&!p.default(i)||n&&!d.default(n))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,r){return{id:e,type:t,payload:r&&r.query?n(n({},r),{query:"string"==typeof r.query?r.query:f.print(r.query)}):r}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,r){this.sendMessageRaw(this.buildMessage(e,t,r))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(t){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,b.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var r=e.data;t.processReceivedData(r)}},e.prototype.processReceivedData=function(e){var t,r;try{r=(t=JSON.parse(e)).id}catch(t){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(t.type)||this.operations[r])switch(t.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var i=this.operations[r].handler;delete this.operations[r],i.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[r].handler(this.formatErrors(t.payload),null),delete this.operations[r];break;case b.default.GQL_DATA:var o=t.payload.errors?n(n({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[r].handler(null,o);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var a=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(r)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,b.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=y}).call(this,r("c8ba"))},"6c20":function(e,t,r){"use strict";r.r(t),function(e,n){var i,o=r("48b5");i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(o.a)(i);t.default=a}.call(this,r("c8ba"),r("dd40")(e))},"6ddc":function(e,t,r){const n=r("f06c");e.exports=(e,t,r)=>n(e,t,r)<=0},"6e03":function(e,t,r){"use strict";r.r(t);var n=r("9c76");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},7506:function(e,t,r){"use strict";r.r(t),r.d(t,"print",(function(){return o}));var n=r("2f6c"),i=r("04b4");function o(e){return Object(n.b)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return c(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=l("(",c(e.variableDefinitions,", "),")"),i=c(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?c([t,c([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+l(" = ",n)+l(" ",c(i," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet;return c([l("",t,": ")+r+l("(",c(n,", "),")"),c(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",c(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return c(["...",l("on ",t),c(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(l("(",c(n,", "),")")," ")+"on ".concat(r," ").concat(l("",c(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?Object(i.b)(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+c(e.values,", ")+"]"},ObjectValue:function(e){return"{"+c(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",c(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,r=e.operationTypes;return c(["schema",c(t," "),u(r)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return c(["scalar",e.name,c(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return c(["type",t,l("implements ",c(r," & ")),c(n," "),u(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(f(r)?l("(\n",p(c(r,"\n")),"\n)"):l("(",c(r,", "),")"))+": "+n+l(" ",c(i," "))})),InputValueDefinition:s((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return c([t+": "+r,l("= ",n),c(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.fields;return c(["interface",t,c(r," "),u(n)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.types;return c(["union",t,c(r," "),n&&0!==n.length?"= "+c(n," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.values;return c(["enum",t,c(r," "),u(n)]," ")})),EnumValueDefinition:s((function(e){return c([e.name,c(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.fields;return c(["input",t,c(r," "),u(n)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(f(r)?l("(\n",p(c(r,"\n")),"\n)"):l("(",c(r,", "),")"))+(n?" repeatable":"")+" on "+c(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return c(["extend schema",c(t," "),u(r)]," ")},ScalarTypeExtension:function(e){return c(["extend scalar",e.name,c(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return c(["extend type",t,l("implements ",c(r," & ")),c(n," "),u(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return c(["extend interface",t,c(r," "),u(n)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return c(["extend union",t,c(r," "),n&&0!==n.length?"= "+c(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return c(["extend enum",t,c(r," "),u(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return c(["extend input",t,c(r," "),u(n)]," ")}};function s(e){return function(t){return c([t.description,e(t)],"\n")}}function c(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function u(e){return e&&0!==e.length?"{\n"+p(c(e,"\n"))+"\n}":""}function l(e,t,r){return t?e+t+(r||""):""}function p(e){return e&&" "+e.replace(/\n/g,"\n ")}function d(e){return-1!==e.indexOf("\n")}function f(e){return e&&e.some(d)}},"786a":function(e,t){var r=e.exports=function(e){return new n(e)};function n(e){this.value=e}function i(e,t,r){var n=[],i=[],s=!0;return function e(p){var d=r?o(p):p,f={},h=!0,m={node:d,node_:p,path:[].concat(n),parent:i[i.length-1],parents:i,key:n.slice(-1)[0],isRoot:0===n.length,level:n.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(h=!1)},delete:function(e){delete m.parent.node[m.key],e&&(h=!1)},remove:function(e){c(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(h=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){s=!1},block:function(){h=!1}};if(!s)return m;function g(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=a(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e