diff --git a/assets/css/style.scss b/assets/css/style.scss index ea335db1..6d22c098 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -30,7 +30,10 @@ .api-key-control { padding: 0; } - + .is-vertical-center { + display: flex; + align-items: center; + } .api-key-field .button.is-danger { padding-left: 20px; padding-right: 20px; diff --git a/assets/js/bundle.min.js b/assets/js/bundle.min.js index 750e3225..d01682ab 100755 --- a/assets/js/bundle.min.js +++ b/assets/js/bundle.min.js @@ -1,26 +1,26 @@ -!function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=7)}([function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&g.splice(e,1)}function r(t){var e=document.createElement("style");return e.type="text/css",i(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",i(t,e),e}function l(t,e){var n,o,i;if(e.singleton){var l=v++;n=b||(b=r(e)),o=p.bind(null,n,l,!1),i=p.bind(null,n,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),o=d.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=r(e),o=c.bind(null,n),i=function(){a(n)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else i()}}function p(t,e,n,o){var i=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=x(e,i);else{var a=document.createTextNode(i),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function c(t,e){var n=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function d(t,e){var n=e.css,o=e.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var i=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(i),a&&URL.revokeObjectURL(a)}var m={},u=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},f=u(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),h=u(function(){return document.head||document.getElementsByTagName("head")[0]}),b=null,v=0,g=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},void 0===e.singleton&&(e.singleton=f()),void 0===e.insertAt&&(e.insertAt="bottom");var i=o(t);return n(i,e),function(t){for(var a=[],r=0;r=0&&Math.floor(e)===e&&isFinite(t)}function m(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function u(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===Ca?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var n=Object.create(null),o=t.split(","),i=0;i-1)return t.splice(n,1)}}function v(t,e){return za.call(t,e)}function g(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function x(t,e){function n(n){var o=arguments.length;return o?o>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function y(t,e){return t.bind(e)}function w(t,e){e=e||0;for(var n=t.length-e,o=new Array(n);n--;)o[n]=t[n+e];return o}function k(t,e){for(var n in e)t[n]=e[n];return t}function _(t){for(var e={},n=0;n-1)if(a&&!v(i,"default"))r=!1;else if(""===r||r===Ta(t)){var l=it(String,i.type);(l<0||s0&&(r=wt(r,(e||"")+"_"+n),yt(r[0])&&yt(p)&&(c[l]=P(p.text+r[0].text),r.shift()),c.push.apply(c,r)):s(r)?yt(p)?c[l]=P(p.text+r):""!==r&&c.push(P(r)):yt(r)&&yt(p)?c[l]=P(p.text+r.text):(a(t._isVList)&&i(r.tag)&&o(r.key)&&i(e)&&(r.key="__vlist"+e+"_"+n+"__"),c.push(r)));return c}function kt(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}function _t(t){var e=Ct(t.$options.inject,t);e&&(M(!1),Object.keys(e).forEach(function(n){F(t,n,e[n])}),M(!0))}function Ct(t,e){if(t){for(var n=Object.create(null),o=ar?Reflect.ownKeys(t):Object.keys(t),i=0;iUr&&Ir[n].id>t.id;)n--;Ir.splice(n+1,0,t)}else Ir.push(t);Fr||(Fr=!0,ct(Ce))}}function je(t,e,n){Wr.get=function(){return this[e][n]},Wr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Wr)}function $e(t){t._watchers=[];var e=t.$options;e.props&&Ee(t,e.props),e.methods&&Ne(t,e.methods),e.data?Te(t):L(t._data={},!0),e.computed&&Pe(t,e.computed),e.watch&&e.watch!==Za&&Le(t,e.watch)}function Ee(t,e){var n=t.$options.propsData||{},o=t._props={},i=t.$options._propKeys=[],a=!t.$parent;a||M(!1);for(var r in e)!function(a){i.push(a);var r=tt(a,e,n,t);F(o,a,r),a in t||je(t,"_props",a)}(r);M(!0)}function Te(t){var e=t.$options.data;e=t._data="function"==typeof e?De(e,t):e||{},p(e)||(e={});for(var n=Object.keys(e),o=t.$options.props,i=(t.$options.methods,n.length);i--;){var a=n[i];o&&v(o,a)||A(a)||je(t,"_data",a)}L(e,!0)}function De(t,e){T();try{return t.call(e,e)}catch(t){return at(t,e,"data()"),{}}finally{D()}}function Pe(t,e){var n=t._computedWatchers=Object.create(null),o=or();for(var i in e){var a=e[i],r="function"==typeof a?a:a.get;o||(n[i]=new qr(t,r||C,C,Kr)),i in t||Re(t,i,a)}}function Re(t,e,n){var o=!or();"function"==typeof n?(Wr.get=o?Me(e):Ie(n),Wr.set=C):(Wr.get=n.get?o&&!1!==n.cache?Me(e):Ie(n.get):C,Wr.set=n.set||C),Object.defineProperty(t,e,Wr)}function Me(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),lr.target&&e.depend(),e.value}}function Ie(t){return function(){return t.call(this,this)}}function Ne(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?C:Da(e[n],t)}function Le(t,e){for(var n in e){var o=e[n];if(Array.isArray(o))for(var i=0;i-1)return this;var n=w(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function qe(t){t.mixin=function(t){return this.options=Z(this.options,t),this}}function We(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,o=n.cid,i=t._Ctor||(t._Ctor={});if(i[o])return i[o];var a=t.name||n.options.name,r=function(t){this._init(t)};return r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.cid=e++,r.options=Z(n.options,t),r.super=n,r.options.props&&Ke(r),r.options.computed&&Xe(r),r.extend=n.extend,r.mixin=n.mixin,r.use=n.use,Ia.forEach(function(t){r[t]=n[t]}),a&&(r.options.components[a]=r),r.superOptions=n.options,r.extendOptions=t,r.sealedOptions=k({},r.options),i[o]=r,r}}function Ke(t){var e=t.options.props;for(var n in e)je(t.prototype,"_props",n)}function Xe(t){var e=t.options.computed;for(var n in e)Re(t.prototype,n,e[n])}function Je(t){Ia.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&p(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Ye(t){return t&&(t.Ctor.options.name||t.tag)}function Ze(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!c(t)&&t.test(e)}function Qe(t,e){var n=t.cache,o=t.keys,i=t._vnode;for(var a in n){var r=n[a];if(r){var s=Ye(r.componentOptions);s&&!e(s)&&tn(n,a,o,i)}}}function tn(t,e,n,o){var i=t[e];!i||o&&i.tag===o.tag||i.componentInstance.$destroy(),t[e]=null,b(n,e)}function en(t){for(var e=t.data,n=t,o=t;i(o.componentInstance);)(o=o.componentInstance._vnode)&&o.data&&(e=nn(o.data,e));for(;i(n=n.parent);)n&&n.data&&(e=nn(e,n.data));return on(e.staticClass,e.class)}function nn(t,e){return{staticClass:an(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function on(t,e){return i(t)||i(e)?an(t,rn(e)):""}function an(t,e){return t?e?t+" "+e:t:e||""}function rn(t){return Array.isArray(t)?sn(t):l(t)?ln(t):"string"==typeof t?t:""}function sn(t){for(var e,n="",o=0,a=t.length;o-1?Os[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Os[t]=/HTMLUnknownElement/.test(e.toString())}function dn(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function mn(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function un(t,e){return document.createElementNS(ys[t],e)}function fn(t){return document.createTextNode(t)}function hn(t){return document.createComment(t)}function bn(t,e,n){t.insertBefore(e,n)}function vn(t,e){t.removeChild(e)}function gn(t,e){t.appendChild(e)}function xn(t){return t.parentNode}function yn(t){return t.nextSibling}function wn(t){return t.tagName}function kn(t,e){t.textContent=e}function _n(t,e){t.setAttribute(e,"")}function Cn(t,e){var n=t.data.ref;if(i(n)){var o=t.context,a=t.componentInstance||t.elm,r=o.$refs;e?Array.isArray(r[n])?b(r[n],a):r[n]===a&&(r[n]=void 0):t.data.refInFor?Array.isArray(r[n])?r[n].indexOf(a)<0&&r[n].push(a):r[n]=[a]:r[n]=a}}function On(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Sn(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&o(e.asyncFactory.error))}function Sn(t,e){if("input"!==t.tag)return!0;var n,o=i(n=t.data)&&i(n=n.attrs)&&n.type,a=i(n=e.data)&&i(n=n.attrs)&&n.type;return o===a||Ss(o)&&Ss(a)}function zn(t,e,n){var o,a,r={};for(o=e;o<=n;++o)a=t[o].key,i(a)&&(r[a]=o);return r}function An(t,e){(t.data.directives||e.data.directives)&&jn(t,e)}function jn(t,e){var n,o,i,a=t===js,r=e===js,s=$n(t.data.directives,t.context),l=$n(e.data.directives,e.context),p=[],c=[];for(n in l)o=s[n],i=l[n],o?(i.oldValue=o.value,i.oldArg=o.arg,Tn(i,"update",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(Tn(i,"bind",e,t),i.def&&i.def.inserted&&p.push(i));if(p.length){var d=function(){for(var n=0;n-1?Rn(t,e,n):hs(e)?xs(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):ms(e)?t.setAttribute(e,fs(e,n)):vs(e)?xs(n)?t.removeAttributeNS(bs,gs(e)):t.setAttributeNS(bs,e,n):Rn(t,e,n)}function Rn(t,e,n){if(xs(n))t.removeAttribute(e);else{if(Wa&&!Ka&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var o=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",o)};t.addEventListener("input",o),t.__ieph=!0}t.setAttribute(e,n)}}function Mn(t,e){var n=e.elm,a=e.data,r=t.data;if(!(o(a.staticClass)&&o(a.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var s=en(e),l=n._transitionClasses;i(l)&&(s=an(s,rn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}function In(t){function e(){(r||(r=[])).push(t.slice(f,i).trim()),f=i+1}var n,o,i,a,r,s=!1,l=!1,p=!1,c=!1,d=0,m=0,u=0,f=0;for(i=0;i=0&&" "===(b=t.charAt(h));h--);b&&Ms.test(b)||(c=!0)}}else void 0===a?(f=i+1,a=t.slice(0,i).trim()):e();if(void 0===a?a=t.slice(0,i).trim():0!==f&&e(),r)for(i=0;i-1?{exp:t.slice(0,ns),key:'"'+t.slice(ns+1)+'"'}:{exp:t,key:null};for(ts=t,ns=os=is=0;!no();)es=eo(),oo(es)?ao(es):91===es&&io(es);return{exp:t.slice(0,os),key:t.slice(os+1,is)}}function eo(){return ts.charCodeAt(++ns)}function no(){return ns>=Qr}function oo(t){return 34===t||39===t}function io(t){var e=1;for(os=ns;!no();)if(t=eo(),oo(t))ao(t);else if(91===t&&e++,93===t&&e--,0===e){is=ns;break}}function ao(t){for(var e=t;!no()&&(t=eo())!==e;);}function ro(t,e,n){as=n;var o=e.value,i=e.modifiers,a=t.tag,r=t.attrsMap.type;if(t.component)return Zn(t,o,i),!1;if("select"===a)po(t,o,i);else if("input"===a&&"checkbox"===r)so(t,o,i);else if("input"===a&&"radio"===r)lo(t,o,i);else if("input"===a||"textarea"===a)co(t,o,i);else if(!La.isReservedTag(a))return Zn(t,o,i),!1;return!0}function so(t,e,n){var o=n&&n.number,i=Kn(t,"value")||"null",a=Kn(t,"true-value")||"true",r=Kn(t,"false-value")||"false";Bn(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1"+("true"===a?":("+e+")":":_q("+e+","+a+")")),qn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+r+");if(Array.isArray($$a)){var $$v="+(o?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Qn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Qn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Qn(e,"$$c")+"}",null,!0)}function lo(t,e,n){var o=n&&n.number,i=Kn(t,"value")||"null";i=o?"_n("+i+")":i,Bn(t,"checked","_q("+e+","+i+")"),qn(t,"change",Qn(e,i),null,!0)}function po(t,e,n){var o=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(o?"_n(val)":"val")+"})",a="var $$selectedVal = "+i+";";a=a+" "+Qn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),qn(t,"change",a,null,!0)}function co(t,e,n){var o=t.attrsMap.type,i=n||{},a=i.lazy,r=i.number,s=i.trim,l=!a&&"range"!==o,p=a?"change":"range"===o?Is:"input",c="$event.target.value";s&&(c="$event.target.value.trim()"),r&&(c="_n("+c+")");var d=Qn(e,c);l&&(d="if($event.target.composing)return;"+d),Bn(t,"value","("+e+")"),qn(t,p,d,null,!0),(s||r)&&qn(t,"blur","$forceUpdate()")}function mo(t){if(i(t[Is])){var e=Wa?"change":"input";t[e]=[].concat(t[Is],t[e]||[]),delete t[Is]}i(t[Ns])&&(t.change=[].concat(t[Ns],t.change||[]),delete t[Ns])}function uo(t,e,n){var o=rs;return function i(){null!==e.apply(null,arguments)&&ho(t,i,n,o)}}function fo(t,e,n,o){if(Ls){var i=Gr,a=e;e=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||0===t.timeStamp||t.target.ownerDocument!==document)return a.apply(this,arguments)}}rs.addEventListener(t,e,Qa?{capture:n,passive:o}:n)}function ho(t,e,n,o){(o||rs).removeEventListener(t,e._wrapper||e,n)}function bo(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},i=t.data.on||{};rs=e.elm,mo(n),ft(n,i,fo,ho,uo,e.context),rs=void 0}}function vo(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,a,r=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};i(l.__ob__)&&(l=e.data.domProps=k({},l));for(n in s)o(l[n])&&(r[n]="");for(n in l){if(a=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),a===s[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n||a!==s[n])if("value"===n){r._value=a;var p=o(a)?"":String(a);go(r,p)&&(r.value=p)}else if("innerHTML"===n&&ks(r.tagName)&&o(r.innerHTML)){ss=ss||document.createElement("div"),ss.innerHTML=""+a+"";for(var c=ss.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;c.firstChild;)r.appendChild(c.firstChild)}else r[n]=a}}}function go(t,e){return!t.composing&&("OPTION"===t.tagName||xo(t,e)||yo(t,e))}function xo(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function yo(t,e){var n=t.value,o=t._vModifiers;if(i(o)){if(o.number)return f(n)!==f(e);if(o.trim)return n.trim()!==e.trim()}return n!==e}function wo(t){var e=ko(t.style);return t.staticStyle?k(t.staticStyle,e):e}function ko(t){return Array.isArray(t)?_(t):"string"==typeof t?Us(t):t}function _o(t,e){var n,o={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=wo(i.data))&&k(o,n);(n=wo(t.data))&&k(o,n);for(var a=t;a=a.parent;)a.data&&(n=wo(a.data))&&k(o,n);return o}function Co(t,e){var n=e.data,a=t.data;if(!(o(n.staticStyle)&&o(n.style)&&o(a.staticStyle)&&o(a.style))){var r,s,l=e.elm,p=a.staticStyle,c=a.normalizedStyle||a.style||{},d=p||c,m=ko(e.data.style)||{};e.data.normalizedStyle=i(m.__ob__)?k({},m):m;var u=_o(e,!0);for(s in d)o(u[s])&&Vs(l,s,"");for(s in u)(r=u[s])!==d[s]&&Vs(l,s,null==r?"":r)}}function Oo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Xs).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function So(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Xs).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",o=" "+e+" ";n.indexOf(o)>=0;)n=n.replace(o," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function zo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&k(e,Js(t.name||"v")),k(e,t),e}return"string"==typeof t?Js(t):void 0}}function Ao(t){il(function(){il(t)})}function jo(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Oo(t,e))}function $o(t,e){t._transitionClasses&&b(t._transitionClasses,e),So(t,e)}function Eo(t,e,n){var o=To(t,e),i=o.type,a=o.timeout,r=o.propCount;if(!i)return n();var s=i===Zs?el:ol,l=0,p=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=r&&p()};setTimeout(function(){l0&&(n=Zs,c=r,d=a.length):e===Qs?p>0&&(n=Qs,c=p,d=l.length):(c=Math.max(r,p),n=c>0?r>p?Zs:Qs:null,d=n?n===Zs?a.length:l.length:0),{type:n,timeout:c,propCount:d,hasTransform:n===Zs&&al.test(o[tl+"Property"])}}function Do(t,e){for(;t.length1}function Lo(t,e){!0!==e.data.show&&Ro(e)}function Fo(t,e,n){Bo(t,e,n),(Wa||Xa)&&setTimeout(function(){Bo(t,e,n)},0)}function Bo(t,e,n){var o=e.value,i=t.multiple;if(!i||Array.isArray(o)){for(var a,r,s=0,l=t.options.length;s-1,r.selected!==a&&(r.selected=a);else if(O(Go(r),o))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Uo(t,e){return e.every(function(e){return!O(e,t)})}function Go(t){return"_value"in t?t._value:t.value}function Ho(t){t.target.composing=!0}function Vo(t){t.target.composing&&(t.target.composing=!1,qo(t.target,"input"))}function qo(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Wo(t){return!t.componentInstance||t.data&&t.data.transition?t:Wo(t.componentInstance._vnode)}function Ko(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ko(pe(e.children)):t}function Xo(t){var e={},n=t.$options;for(var o in n.propsData)e[o]=t[o];var i=n._parentListeners;for(var a in i)e[ja(a)]=i[a];return e}function Jo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Yo(t){for(;t=t.parent;)if(t.data.transition)return!0}function Zo(t,e){return e.key===t.key&&e.tag===t.tag}function Qo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ti(t){t.data.newPos=t.elm.getBoundingClientRect()}function ei(t){var e=t.data.pos,n=t.data.newPos,o=e.left-n.left,i=e.top-n.top;if(o||i){t.data.moved=!0;var a=t.elm.style;a.transform=a.WebkitTransform="translate("+o+"px,"+i+"px)",a.transitionDuration="0s"}}function ni(t,e){var n=e?Rl(e):Dl;if(n.test(t)){for(var o,i,a,r=[],s=[],l=n.lastIndex=0;o=n.exec(t);){i=o.index,i>l&&(s.push(a=t.slice(l,i)),r.push(JSON.stringify(a)));var p=In(o[1].trim());r.push("_s("+p+")"),s.push({"@binding":p}),l=i+o[0].length}return l=0&&r[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var l=r.length-1;l>=i;l--)e.end&&e.end(r[l].tag,n,o);r.length=i,a=i&&r[i-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}for(var i,a,r=[],s=e.expectHTML,l=e.isUnaryTag||Pa,p=e.canBeLeftOpenTag||Pa,c=0;t;){if(i=t,a&&Zl(a)){var d=0,m=a.toLowerCase(),u=Ql[m]||(Ql[m]=new RegExp("([\\s\\S]*?)(]*>)","i")),f=t.replace(u,function(t,n,o){return d=o.length,Zl(m)||"noscript"===m||(n=n.replace(//g,"$1").replace(//g,"$1")),ip(m,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});c+=t.length-f.length,t=f,o(m,c-d,c)}else{var h=t.indexOf("<");if(0===h){if(Jl.test(t)){var b=t.indexOf("--\x3e");if(b>=0){e.shouldKeepComment&&e.comment(t.substring(4,b),c,c+b+3),n(b+3);continue}}if(Yl.test(t)){var v=t.indexOf("]>");if(v>=0){n(v+2);continue}}var g=t.match(Xl);if(g){n(g[0].length);continue}var x=t.match(Kl);if(x){var y=c;n(x[0].length),o(x[1],y,c);continue}var w=function(){var e=t.match(ql);if(e){var o={tagName:e[1],attrs:[],start:c};n(e[0].length);for(var i,a;!(i=t.match(Wl))&&(a=t.match(Gl)||t.match(Ul));)a.start=c,n(a[0].length),a.end=c,o.attrs.push(a);if(i)return o.unarySlash=i[1],n(i[0].length),o.end=c,o}}();if(w){!function(t){var n=t.tagName,i=t.unarySlash;s&&("p"===a&&Bl(n)&&o(a),p(n)&&a===n&&o(n));for(var c=l(n)||!!i,d=t.attrs.length,m=new Array(d),u=0;u=0){for(_=t.slice(h);!(Kl.test(_)||ql.test(_)||Jl.test(_)||Yl.test(_)||(C=_.indexOf("<",1))<0);)h+=C,_=t.slice(h);k=t.substring(0,h)}h<0&&(k=t),k&&n(k.length),e.chars&&k&&e.chars(k,c-k.length,c)}if(t===i){e.chars&&e.chars(t);break}}o()}function pi(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:$i(e),rawAttrsMap:{},parent:n,children:[]}}function ci(t,e){function n(t){if(o(t),c||t.processed||(t=ui(t,e)),s.length||t===a||a.if&&(t.elseif||t.else)&&wi(a,{exp:t.elseif,block:t}),r&&!t.forbidden)if(t.elseif||t.else)xi(t,r);else{if(t.slotScope){var n=t.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=t}r.children.push(t),t.parent=r}t.children=t.children.filter(function(t){return!t.slotScope}),o(t),t.pre&&(c=!1),Sl(t.tag)&&(d=!1);for(var i=0;i':'
',Tl.innerHTML.indexOf(" ")>0}function ka(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}/*! +!function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=7)}([function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&g.splice(e,1)}function r(t){var e=document.createElement("style");return e.type="text/css",i(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",i(t,e),e}function l(t,e){var n,o,i;if(e.singleton){var l=v++;n=b||(b=r(e)),o=p.bind(null,n,l,!1),i=p.bind(null,n,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),o=d.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=r(e),o=c.bind(null,n),i=function(){a(n)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else i()}}function p(t,e,n,o){var i=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=x(e,i);else{var a=document.createTextNode(i),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function c(t,e){var n=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function d(t,e){var n=e.css,o=e.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var i=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(i),a&&URL.revokeObjectURL(a)}var m={},u=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},f=u(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),h=u(function(){return document.head||document.getElementsByTagName("head")[0]}),b=null,v=0,g=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},void 0===e.singleton&&(e.singleton=f()),void 0===e.insertAt&&(e.insertAt="bottom");var i=o(t);return n(i,e),function(t){for(var a=[],r=0;r=0&&Math.floor(e)===e&&isFinite(t)}function m(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function u(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===Ca?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var n=Object.create(null),o=t.split(","),i=0;i-1)return t.splice(n,1)}}function v(t,e){return za.call(t,e)}function g(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function x(t,e){function n(n){var o=arguments.length;return o?o>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function y(t,e){return t.bind(e)}function w(t,e){e=e||0;for(var n=t.length-e,o=new Array(n);n--;)o[n]=t[n+e];return o}function k(t,e){for(var n in e)t[n]=e[n];return t}function _(t){for(var e={},n=0;n-1)if(a&&!v(i,"default"))r=!1;else if(""===r||r===Ta(t)){var l=it(String,i.type);(l<0||s0&&(r=wt(r,(e||"")+"_"+n),yt(r[0])&&yt(p)&&(c[l]=P(p.text+r[0].text),r.shift()),c.push.apply(c,r)):s(r)?yt(p)?c[l]=P(p.text+r):""!==r&&c.push(P(r)):yt(r)&&yt(p)?c[l]=P(p.text+r.text):(a(t._isVList)&&i(r.tag)&&o(r.key)&&i(e)&&(r.key="__vlist"+e+"_"+n+"__"),c.push(r)));return c}function kt(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}function _t(t){var e=Ct(t.$options.inject,t);e&&(M(!1),Object.keys(e).forEach(function(n){F(t,n,e[n])}),M(!0))}function Ct(t,e){if(t){for(var n=Object.create(null),o=ar?Reflect.ownKeys(t):Object.keys(t),i=0;iUr&&Ir[n].id>t.id;)n--;Ir.splice(n+1,0,t)}else Ir.push(t);Fr||(Fr=!0,ct(Ce))}}function je(t,e,n){Wr.get=function(){return this[e][n]},Wr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Wr)}function $e(t){t._watchers=[];var e=t.$options;e.props&&Ee(t,e.props),e.methods&&Le(t,e.methods),e.data?Te(t):N(t._data={},!0),e.computed&&Pe(t,e.computed),e.watch&&e.watch!==Za&&Ne(t,e.watch)}function Ee(t,e){var n=t.$options.propsData||{},o=t._props={},i=t.$options._propKeys=[],a=!t.$parent;a||M(!1);for(var r in e)!function(a){i.push(a);var r=tt(a,e,n,t);F(o,a,r),a in t||je(t,"_props",a)}(r);M(!0)}function Te(t){var e=t.$options.data;e=t._data="function"==typeof e?De(e,t):e||{},p(e)||(e={});for(var n=Object.keys(e),o=t.$options.props,i=(t.$options.methods,n.length);i--;){var a=n[i];o&&v(o,a)||A(a)||je(t,"_data",a)}N(e,!0)}function De(t,e){T();try{return t.call(e,e)}catch(t){return at(t,e,"data()"),{}}finally{D()}}function Pe(t,e){var n=t._computedWatchers=Object.create(null),o=or();for(var i in e){var a=e[i],r="function"==typeof a?a:a.get;o||(n[i]=new qr(t,r||C,C,Kr)),i in t||Re(t,i,a)}}function Re(t,e,n){var o=!or();"function"==typeof n?(Wr.get=o?Me(e):Ie(n),Wr.set=C):(Wr.get=n.get?o&&!1!==n.cache?Me(e):Ie(n.get):C,Wr.set=n.set||C),Object.defineProperty(t,e,Wr)}function Me(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),lr.target&&e.depend(),e.value}}function Ie(t){return function(){return t.call(this,this)}}function Le(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?C:Da(e[n],t)}function Ne(t,e){for(var n in e){var o=e[n];if(Array.isArray(o))for(var i=0;i-1)return this;var n=w(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function qe(t){t.mixin=function(t){return this.options=Z(this.options,t),this}}function We(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,o=n.cid,i=t._Ctor||(t._Ctor={});if(i[o])return i[o];var a=t.name||n.options.name,r=function(t){this._init(t)};return r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.cid=e++,r.options=Z(n.options,t),r.super=n,r.options.props&&Ke(r),r.options.computed&&Xe(r),r.extend=n.extend,r.mixin=n.mixin,r.use=n.use,Ia.forEach(function(t){r[t]=n[t]}),a&&(r.options.components[a]=r),r.superOptions=n.options,r.extendOptions=t,r.sealedOptions=k({},r.options),i[o]=r,r}}function Ke(t){var e=t.options.props;for(var n in e)je(t.prototype,"_props",n)}function Xe(t){var e=t.options.computed;for(var n in e)Re(t.prototype,n,e[n])}function Je(t){Ia.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&p(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Ye(t){return t&&(t.Ctor.options.name||t.tag)}function Ze(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!c(t)&&t.test(e)}function Qe(t,e){var n=t.cache,o=t.keys,i=t._vnode;for(var a in n){var r=n[a];if(r){var s=Ye(r.componentOptions);s&&!e(s)&&tn(n,a,o,i)}}}function tn(t,e,n,o){var i=t[e];!i||o&&i.tag===o.tag||i.componentInstance.$destroy(),t[e]=null,b(n,e)}function en(t){for(var e=t.data,n=t,o=t;i(o.componentInstance);)(o=o.componentInstance._vnode)&&o.data&&(e=nn(o.data,e));for(;i(n=n.parent);)n&&n.data&&(e=nn(e,n.data));return on(e.staticClass,e.class)}function nn(t,e){return{staticClass:an(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function on(t,e){return i(t)||i(e)?an(t,rn(e)):""}function an(t,e){return t?e?t+" "+e:t:e||""}function rn(t){return Array.isArray(t)?sn(t):l(t)?ln(t):"string"==typeof t?t:""}function sn(t){for(var e,n="",o=0,a=t.length;o-1?Os[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Os[t]=/HTMLUnknownElement/.test(e.toString())}function dn(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function mn(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function un(t,e){return document.createElementNS(ys[t],e)}function fn(t){return document.createTextNode(t)}function hn(t){return document.createComment(t)}function bn(t,e,n){t.insertBefore(e,n)}function vn(t,e){t.removeChild(e)}function gn(t,e){t.appendChild(e)}function xn(t){return t.parentNode}function yn(t){return t.nextSibling}function wn(t){return t.tagName}function kn(t,e){t.textContent=e}function _n(t,e){t.setAttribute(e,"")}function Cn(t,e){var n=t.data.ref;if(i(n)){var o=t.context,a=t.componentInstance||t.elm,r=o.$refs;e?Array.isArray(r[n])?b(r[n],a):r[n]===a&&(r[n]=void 0):t.data.refInFor?Array.isArray(r[n])?r[n].indexOf(a)<0&&r[n].push(a):r[n]=[a]:r[n]=a}}function On(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Sn(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&o(e.asyncFactory.error))}function Sn(t,e){if("input"!==t.tag)return!0;var n,o=i(n=t.data)&&i(n=n.attrs)&&n.type,a=i(n=e.data)&&i(n=n.attrs)&&n.type;return o===a||Ss(o)&&Ss(a)}function zn(t,e,n){var o,a,r={};for(o=e;o<=n;++o)a=t[o].key,i(a)&&(r[a]=o);return r}function An(t,e){(t.data.directives||e.data.directives)&&jn(t,e)}function jn(t,e){var n,o,i,a=t===js,r=e===js,s=$n(t.data.directives,t.context),l=$n(e.data.directives,e.context),p=[],c=[];for(n in l)o=s[n],i=l[n],o?(i.oldValue=o.value,i.oldArg=o.arg,Tn(i,"update",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(Tn(i,"bind",e,t),i.def&&i.def.inserted&&p.push(i));if(p.length){var d=function(){for(var n=0;n-1?Rn(t,e,n):hs(e)?xs(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):ms(e)?t.setAttribute(e,fs(e,n)):vs(e)?xs(n)?t.removeAttributeNS(bs,gs(e)):t.setAttributeNS(bs,e,n):Rn(t,e,n)}function Rn(t,e,n){if(xs(n))t.removeAttribute(e);else{if(Wa&&!Ka&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var o=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",o)};t.addEventListener("input",o),t.__ieph=!0}t.setAttribute(e,n)}}function Mn(t,e){var n=e.elm,a=e.data,r=t.data;if(!(o(a.staticClass)&&o(a.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var s=en(e),l=n._transitionClasses;i(l)&&(s=an(s,rn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}function In(t){function e(){(r||(r=[])).push(t.slice(f,i).trim()),f=i+1}var n,o,i,a,r,s=!1,l=!1,p=!1,c=!1,d=0,m=0,u=0,f=0;for(i=0;i=0&&" "===(b=t.charAt(h));h--);b&&Ms.test(b)||(c=!0)}}else void 0===a?(f=i+1,a=t.slice(0,i).trim()):e();if(void 0===a?a=t.slice(0,i).trim():0!==f&&e(),r)for(i=0;i-1?{exp:t.slice(0,ns),key:'"'+t.slice(ns+1)+'"'}:{exp:t,key:null};for(ts=t,ns=os=is=0;!no();)es=eo(),oo(es)?ao(es):91===es&&io(es);return{exp:t.slice(0,os),key:t.slice(os+1,is)}}function eo(){return ts.charCodeAt(++ns)}function no(){return ns>=Qr}function oo(t){return 34===t||39===t}function io(t){var e=1;for(os=ns;!no();)if(t=eo(),oo(t))ao(t);else if(91===t&&e++,93===t&&e--,0===e){is=ns;break}}function ao(t){for(var e=t;!no()&&(t=eo())!==e;);}function ro(t,e,n){as=n;var o=e.value,i=e.modifiers,a=t.tag,r=t.attrsMap.type;if(t.component)return Zn(t,o,i),!1;if("select"===a)po(t,o,i);else if("input"===a&&"checkbox"===r)so(t,o,i);else if("input"===a&&"radio"===r)lo(t,o,i);else if("input"===a||"textarea"===a)co(t,o,i);else if(!Na.isReservedTag(a))return Zn(t,o,i),!1;return!0}function so(t,e,n){var o=n&&n.number,i=Kn(t,"value")||"null",a=Kn(t,"true-value")||"true",r=Kn(t,"false-value")||"false";Bn(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1"+("true"===a?":("+e+")":":_q("+e+","+a+")")),qn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+r+");if(Array.isArray($$a)){var $$v="+(o?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Qn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Qn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Qn(e,"$$c")+"}",null,!0)}function lo(t,e,n){var o=n&&n.number,i=Kn(t,"value")||"null";i=o?"_n("+i+")":i,Bn(t,"checked","_q("+e+","+i+")"),qn(t,"change",Qn(e,i),null,!0)}function po(t,e,n){var o=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(o?"_n(val)":"val")+"})",a="var $$selectedVal = "+i+";";a=a+" "+Qn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),qn(t,"change",a,null,!0)}function co(t,e,n){var o=t.attrsMap.type,i=n||{},a=i.lazy,r=i.number,s=i.trim,l=!a&&"range"!==o,p=a?"change":"range"===o?Is:"input",c="$event.target.value";s&&(c="$event.target.value.trim()"),r&&(c="_n("+c+")");var d=Qn(e,c);l&&(d="if($event.target.composing)return;"+d),Bn(t,"value","("+e+")"),qn(t,p,d,null,!0),(s||r)&&qn(t,"blur","$forceUpdate()")}function mo(t){if(i(t[Is])){var e=Wa?"change":"input";t[e]=[].concat(t[Is],t[e]||[]),delete t[Is]}i(t[Ls])&&(t.change=[].concat(t[Ls],t.change||[]),delete t[Ls])}function uo(t,e,n){var o=rs;return function i(){null!==e.apply(null,arguments)&&ho(t,i,n,o)}}function fo(t,e,n,o){if(Ns){var i=Gr,a=e;e=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||0===t.timeStamp||t.target.ownerDocument!==document)return a.apply(this,arguments)}}rs.addEventListener(t,e,Qa?{capture:n,passive:o}:n)}function ho(t,e,n,o){(o||rs).removeEventListener(t,e._wrapper||e,n)}function bo(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},i=t.data.on||{};rs=e.elm,mo(n),ft(n,i,fo,ho,uo,e.context),rs=void 0}}function vo(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,a,r=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};i(l.__ob__)&&(l=e.data.domProps=k({},l));for(n in s)o(l[n])&&(r[n]="");for(n in l){if(a=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),a===s[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n||a!==s[n])if("value"===n){r._value=a;var p=o(a)?"":String(a);go(r,p)&&(r.value=p)}else if("innerHTML"===n&&ks(r.tagName)&&o(r.innerHTML)){ss=ss||document.createElement("div"),ss.innerHTML=""+a+"";for(var c=ss.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;c.firstChild;)r.appendChild(c.firstChild)}else r[n]=a}}}function go(t,e){return!t.composing&&("OPTION"===t.tagName||xo(t,e)||yo(t,e))}function xo(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function yo(t,e){var n=t.value,o=t._vModifiers;if(i(o)){if(o.number)return f(n)!==f(e);if(o.trim)return n.trim()!==e.trim()}return n!==e}function wo(t){var e=ko(t.style);return t.staticStyle?k(t.staticStyle,e):e}function ko(t){return Array.isArray(t)?_(t):"string"==typeof t?Us(t):t}function _o(t,e){var n,o={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=wo(i.data))&&k(o,n);(n=wo(t.data))&&k(o,n);for(var a=t;a=a.parent;)a.data&&(n=wo(a.data))&&k(o,n);return o}function Co(t,e){var n=e.data,a=t.data;if(!(o(n.staticStyle)&&o(n.style)&&o(a.staticStyle)&&o(a.style))){var r,s,l=e.elm,p=a.staticStyle,c=a.normalizedStyle||a.style||{},d=p||c,m=ko(e.data.style)||{};e.data.normalizedStyle=i(m.__ob__)?k({},m):m;var u=_o(e,!0);for(s in d)o(u[s])&&Vs(l,s,"");for(s in u)(r=u[s])!==d[s]&&Vs(l,s,null==r?"":r)}}function Oo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Xs).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function So(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Xs).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",o=" "+e+" ";n.indexOf(o)>=0;)n=n.replace(o," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function zo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&k(e,Js(t.name||"v")),k(e,t),e}return"string"==typeof t?Js(t):void 0}}function Ao(t){il(function(){il(t)})}function jo(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Oo(t,e))}function $o(t,e){t._transitionClasses&&b(t._transitionClasses,e),So(t,e)}function Eo(t,e,n){var o=To(t,e),i=o.type,a=o.timeout,r=o.propCount;if(!i)return n();var s=i===Zs?el:ol,l=0,p=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=r&&p()};setTimeout(function(){l0&&(n=Zs,c=r,d=a.length):e===Qs?p>0&&(n=Qs,c=p,d=l.length):(c=Math.max(r,p),n=c>0?r>p?Zs:Qs:null,d=n?n===Zs?a.length:l.length:0),{type:n,timeout:c,propCount:d,hasTransform:n===Zs&&al.test(o[tl+"Property"])}}function Do(t,e){for(;t.length1}function No(t,e){!0!==e.data.show&&Ro(e)}function Fo(t,e,n){Bo(t,e,n),(Wa||Xa)&&setTimeout(function(){Bo(t,e,n)},0)}function Bo(t,e,n){var o=e.value,i=t.multiple;if(!i||Array.isArray(o)){for(var a,r,s=0,l=t.options.length;s-1,r.selected!==a&&(r.selected=a);else if(O(Go(r),o))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Uo(t,e){return e.every(function(e){return!O(e,t)})}function Go(t){return"_value"in t?t._value:t.value}function Ho(t){t.target.composing=!0}function Vo(t){t.target.composing&&(t.target.composing=!1,qo(t.target,"input"))}function qo(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Wo(t){return!t.componentInstance||t.data&&t.data.transition?t:Wo(t.componentInstance._vnode)}function Ko(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ko(pe(e.children)):t}function Xo(t){var e={},n=t.$options;for(var o in n.propsData)e[o]=t[o];var i=n._parentListeners;for(var a in i)e[ja(a)]=i[a];return e}function Jo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Yo(t){for(;t=t.parent;)if(t.data.transition)return!0}function Zo(t,e){return e.key===t.key&&e.tag===t.tag}function Qo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ti(t){t.data.newPos=t.elm.getBoundingClientRect()}function ei(t){var e=t.data.pos,n=t.data.newPos,o=e.left-n.left,i=e.top-n.top;if(o||i){t.data.moved=!0;var a=t.elm.style;a.transform=a.WebkitTransform="translate("+o+"px,"+i+"px)",a.transitionDuration="0s"}}function ni(t,e){var n=e?Rl(e):Dl;if(n.test(t)){for(var o,i,a,r=[],s=[],l=n.lastIndex=0;o=n.exec(t);){i=o.index,i>l&&(s.push(a=t.slice(l,i)),r.push(JSON.stringify(a)));var p=In(o[1].trim());r.push("_s("+p+")"),s.push({"@binding":p}),l=i+o[0].length}return l=0&&r[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var l=r.length-1;l>=i;l--)e.end&&e.end(r[l].tag,n,o);r.length=i,a=i&&r[i-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}for(var i,a,r=[],s=e.expectHTML,l=e.isUnaryTag||Pa,p=e.canBeLeftOpenTag||Pa,c=0;t;){if(i=t,a&&Zl(a)){var d=0,m=a.toLowerCase(),u=Ql[m]||(Ql[m]=new RegExp("([\\s\\S]*?)(]*>)","i")),f=t.replace(u,function(t,n,o){return d=o.length,Zl(m)||"noscript"===m||(n=n.replace(//g,"$1").replace(//g,"$1")),ip(m,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});c+=t.length-f.length,t=f,o(m,c-d,c)}else{var h=t.indexOf("<");if(0===h){if(Jl.test(t)){var b=t.indexOf("--\x3e");if(b>=0){e.shouldKeepComment&&e.comment(t.substring(4,b),c,c+b+3),n(b+3);continue}}if(Yl.test(t)){var v=t.indexOf("]>");if(v>=0){n(v+2);continue}}var g=t.match(Xl);if(g){n(g[0].length);continue}var x=t.match(Kl);if(x){var y=c;n(x[0].length),o(x[1],y,c);continue}var w=function(){var e=t.match(ql);if(e){var o={tagName:e[1],attrs:[],start:c};n(e[0].length);for(var i,a;!(i=t.match(Wl))&&(a=t.match(Gl)||t.match(Ul));)a.start=c,n(a[0].length),a.end=c,o.attrs.push(a);if(i)return o.unarySlash=i[1],n(i[0].length),o.end=c,o}}();if(w){!function(t){var n=t.tagName,i=t.unarySlash;s&&("p"===a&&Bl(n)&&o(a),p(n)&&a===n&&o(n));for(var c=l(n)||!!i,d=t.attrs.length,m=new Array(d),u=0;u=0){for(_=t.slice(h);!(Kl.test(_)||ql.test(_)||Jl.test(_)||Yl.test(_)||(C=_.indexOf("<",1))<0);)h+=C,_=t.slice(h);k=t.substring(0,h)}h<0&&(k=t),k&&n(k.length),e.chars&&k&&e.chars(k,c-k.length,c)}if(t===i){e.chars&&e.chars(t);break}}o()}function pi(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:$i(e),rawAttrsMap:{},parent:n,children:[]}}function ci(t,e){function n(t){if(o(t),c||t.processed||(t=ui(t,e)),s.length||t===a||a.if&&(t.elseif||t.else)&&wi(a,{exp:t.elseif,block:t}),r&&!t.forbidden)if(t.elseif||t.else)xi(t,r);else{if(t.slotScope){var n=t.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=t}r.children.push(t),t.parent=r}t.children=t.children.filter(function(t){return!t.slotScope}),o(t),t.pre&&(c=!1),Sl(t.tag)&&(d=!1);for(var i=0;i':'
',Tl.innerHTML.indexOf(" ")>0}function ka(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}/*! * Vue.js v2.6.6 * (c) 2014-2019 Evan You * Released under the MIT License. */ -var _a=Object.freeze({}),Ca=Object.prototype.toString,Oa=h("slot,component",!0),Sa=h("key,ref,slot,slot-scope,is"),za=Object.prototype.hasOwnProperty,Aa=/-(\w)/g,ja=g(function(t){return t.replace(Aa,function(t,e){return e?e.toUpperCase():""})}),$a=g(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),Ea=/\B([A-Z])/g,Ta=g(function(t){return t.replace(Ea,"-$1").toLowerCase()}),Da=Function.prototype.bind?y:x,Pa=function(t,e,n){return!1},Ra=function(t){return t},Ma="data-server-rendered",Ia=["component","directive","filter"],Na=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],La={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Pa,isReservedAttr:Pa,isUnknownElement:Pa,getTagNamespace:C,parsePlatformTagName:Ra,mustUseProp:Pa,async:!0,_lifecycleHooks:Na},Fa="a-zA-Z·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�",Ba=new RegExp("[^"+Fa+".$_\\d]"),Ua="__proto__"in{},Ga="undefined"!=typeof window,Ha="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Va=Ha&&WXEnvironment.platform.toLowerCase(),qa=Ga&&window.navigator.userAgent.toLowerCase(),Wa=qa&&/msie|trident/.test(qa),Ka=qa&&qa.indexOf("msie 9.0")>0,Xa=qa&&qa.indexOf("edge/")>0,Ja=(qa&&qa.indexOf("android"),qa&&/iphone|ipad|ipod|ios/.test(qa)||"ios"===Va),Ya=(qa&&/chrome\/\d+/.test(qa),qa&&/phantomjs/.test(qa),qa&&qa.match(/firefox\/(\d+)/)),Za={}.watch,Qa=!1;if(Ga)try{var tr={};Object.defineProperty(tr,"passive",{get:function(){Qa=!0}}),window.addEventListener("test-passive",null,tr)}catch(t){}var er,nr,or=function(){return void 0===er&&(er=!Ga&&!Ha&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),er},ir=Ga&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,ar="undefined"!=typeof Symbol&&E(Symbol)&&"undefined"!=typeof Reflect&&E(Reflect.ownKeys);nr="undefined"!=typeof Set&&E(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var rr=C,sr=0,lr=function(){this.id=sr++,this.subs=[]};lr.prototype.addSub=function(t){this.subs.push(t)},lr.prototype.removeSub=function(t){b(this.subs,t)},lr.prototype.depend=function(){lr.target&&lr.target.addDep(this)},lr.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;edocument.createEvent("Event").timeStamp&&(Hr=function(){return performance.now()});var Vr=0,qr=function(t,e,n,o,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Vr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new nr,this.newDepIds=new nr,this.expression="","function"==typeof e?this.getter=e:(this.getter=$(e),this.getter||(this.getter=C)),this.value=this.lazy?void 0:this.get()};qr.prototype.get=function(){T(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;at(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&dt(t),D(),this.cleanupDeps()}return t},qr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},qr.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},qr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Ae(this)},qr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){at(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},qr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},qr.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},qr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Wr={enumerable:!0,configurable:!0,get:C,set:C},Kr={lazy:!0},Xr=0;!function(t){t.prototype._init=function(t){var e=this;e._uid=Xr++,e._isVue=!0,t&&t._isComponent?Be(e,t):e.$options=Z(Ue(e.constructor),t||{},e),e._renderProxy=e,e._self=e,be(e),ce(e),ie(e),ke(e,"beforeCreate"),_t(e),$e(e),kt(e),ke(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(He),function(t){var e={};e.get=function(){return this._data};var n={};n.get=function(){return this._props},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=B,t.prototype.$delete=U,t.prototype.$watch=function(t,e,n){var o=this;if(p(e))return Fe(o,t,e,n);n=n||{},n.user=!0;var i=new qr(o,t,e,n);if(n.immediate)try{e.call(o,i.value)}catch(t){at(t,o,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(He),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var o=this;if(Array.isArray(t))for(var i=0,a=t.length;i1?w(n):n;for(var o=w(arguments,1),i='event handler for "'+t+'"',a=0,r=n.length;aparseInt(this.max)&&tn(l,p[0],p,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Zr={KeepAlive:Yr};!function(t){var e={};e.get=function(){return La},Object.defineProperty(t,"config",e),t.util={warn:rr,extend:k,mergeOptions:Z,defineReactive:F},t.set=B,t.delete=U,t.nextTick=ct,t.observable=function(t){return L(t),t},t.options=Object.create(null),Ia.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,k(t.options.components,Zr),Ve(t),qe(t),We(t),Je(t)}(He),Object.defineProperty(He.prototype,"$isServer",{get:or}),Object.defineProperty(He.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(He,"FunctionalRenderContext",{value:Vt}),He.version="2.6.6";var Qr,ts,es,ns,os,is,as,rs,ss,ls,ps=h("style,class"),cs=h("input,textarea,option,select,progress"),ds=function(t,e,n){return"value"===n&&cs(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},ms=h("contenteditable,draggable,spellcheck"),us=h("events,caret,typing,plaintext-only"),fs=function(t,e){return xs(e)||"false"===e?"false":"contenteditable"===t&&us(e)?e:"true"},hs=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,translate,truespeed,typemustmatch,visible"),bs="http://www.w3.org/1999/xlink",vs=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},gs=function(t){return vs(t)?t.slice(6,t.length):""},xs=function(t){return null==t||!1===t},ys={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ws=h("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ks=h("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),_s=function(t){return"pre"===t},Cs=function(t){return ws(t)||ks(t)},Os=Object.create(null),Ss=h("text,number,password,search,email,tel,url"),zs=Object.freeze({createElement:mn,createElementNS:un,createTextNode:fn,createComment:hn,insertBefore:bn,removeChild:vn,appendChild:gn,parentNode:xn,nextSibling:yn,tagName:wn,setTextContent:kn,setStyleScope:_n}),As={create:function(t,e){Cn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Cn(t,!0),Cn(e))},destroy:function(t){Cn(t,!0)}},js=new cr("",{},[]),$s=["create","activate","update","remove","destroy"],Es={create:An,update:An,destroy:function(t){An(t,js)}},Ts=Object.create(null),Ds=[As,Es],Ps={create:Dn,update:Dn},Rs={create:Mn,update:Mn},Ms=/[\w).+\-_$\]]/,Is="__r",Ns="__c",Ls=wr&&!(Ya&&Number(Ya[1])<=53),Fs={create:bo,update:bo},Bs={create:vo,update:vo},Us=g(function(t){var e={},n=/;(?![^(]*\))/g,o=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(o);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}),Gs=/^--/,Hs=/\s*!important$/,Vs=function(t,e,n){if(Gs.test(e))t.style.setProperty(e,n);else if(Hs.test(n))t.style.setProperty(Ta(e),n.replace(Hs,""),"important");else{var o=Ws(e);if(Array.isArray(n))for(var i=0,a=n.length;if?(d=o(n[v+1])?null:n[v+1].elm,g(t,d,n,u,v,a)):u>v&&y(t,e,m,f)}function _(t,e,n,o){for(var a=n;a\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Gl=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Hl="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+Fa+"]*",Vl="((?:"+Hl+"\\:)?"+Hl+")",ql=new RegExp("^<"+Vl),Wl=/^\s*(\/?)>/,Kl=new RegExp("^<\\/"+Vl+"[^>]*>"),Xl=/^]+>/i,Jl=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},ep=/&(?:lt|gt|quot|amp|#39);/g,np=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,op=h("pre,textarea",!0),ip=function(t,e){return t&&op(t)&&"\n"===e[0]},ap=/^@|^v-on:/,rp=/^v-|^@|^:/,sp=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,lp=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,pp=/^\(|\)$/g,cp=/^\[.*\]$/,dp=/:(.*)$/,mp=/^:|^\.|^v-bind:/,up=/\.[^.]+/g,fp=/^v-slot(:|$)|^#/,hp=/[\r\n]/,bp=/\s+/g,vp=g(Nl.decode),gp="_empty_",xp=/^xmlns:NS\d+/,yp=/^NS\d+:/,wp={preTransformNode:Pi},kp=[Ml,Il,wp],_p={model:ro,text:Mi,html:Ii},Cp={expectHTML:!0,modules:kp,directives:_p,isPreTag:_s,isUnaryTag:Ll,mustUseProp:ds,canBeLeftOpenTag:Fl,isReservedTag:Cs,getTagNamespace:pn,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(kp)},Op=g(Li),Sp=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,zp=/\([^)]*?\);*$/,Ap=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,jp={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},$p={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ep=function(t){return"if("+t+")return null;"},Tp={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ep("$event.target !== $event.currentTarget"),ctrl:Ep("!$event.ctrlKey"),shift:Ep("!$event.shiftKey"),alt:Ep("!$event.altKey"),meta:Ep("!$event.metaKey"),left:Ep("'button' in $event && $event.button !== 0"),middle:Ep("'button' in $event && $event.button !== 1"),right:Ep("'button' in $event && $event.button !== 2")},Dp={on:Ki,bind:Xi,cloak:C},Pp=function(t){this.options=t,this.warn=t.warn||Ln,this.transforms=Fn(t.modules,"transformCode"),this.dataGenFns=Fn(t.modules,"genData"),this.directives=k(k({},Dp),t.directives);var e=t.isReservedTag||Pa;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1},Rp=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(t){return function(e){function n(n,o){var i=Object.create(e),a=[],r=[],s=function(t,e,n){(n?r:a).push(t)};if(o){o.modules&&(i.modules=(e.modules||[]).concat(o.modules)),o.directives&&(i.directives=k(Object.create(e.directives||null),o.directives));for(var l in o)"modules"!==l&&"directives"!==l&&(i[l]=o[l])}i.warn=s;var p=t(n.trim(),i);return p.errors=a,p.tips=r,p}return{compile:n,compileToFunctions:ya(n)}}}(function(t,e){var n=ci(t.trim(),e);!1!==e.optimize&&Ni(n,e);var o=Ji(n,e);return{ast:n,render:o.render,staticRenderFns:o.staticRenderFns}})),Mp=Rp(Cp),Ip=(Mp.compile,Mp.compileToFunctions),Np=!!Ga&&wa(!1),Lp=!!Ga&&wa(!0),Fp=g(function(t){var e=dn(t);return e&&e.innerHTML}),Bp=He.prototype.$mount;He.prototype.$mount=function(t,e){if((t=t&&dn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var o=n.template;if(o)if("string"==typeof o)"#"===o.charAt(0)&&(o=Fp(o));else{if(!o.nodeType)return this;o=o.innerHTML}else t&&(o=ka(t));if(o){var i=Ip(o,{outputSourceRange:!1,shouldDecodeNewlines:Np,shouldDecodeNewlinesForHref:Lp,delimiters:n.delimiters,comments:n.comments},this),a=i.render,r=i.staticRenderFns;n.render=a,n.staticRenderFns=r}}return Bp.call(this,t,e)},He.compile=Ip,e.default=He}.call(e,n(3),n(8).setImmediate)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var o,i;o=n(29),i=n(30),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o,i;n(69),o=n(71),i=n(73),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){"use strict";function o(t){this.state=st,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}function i(t,e){t instanceof Promise?this.promise=t:this.promise=new Promise(t.bind(e)),this.context=e}function a(t){var e=t.config,n=t.nextTick;ct=n,ht=e.debug||!e.silent}function r(t){"undefined"!=typeof console&&ht&&console.warn("[VueResource warn]: "+t)}function s(t){"undefined"!=typeof console&&console.error(t)}function l(t,e){return ct(t,e)}function p(t){return t?t.replace(/^\s*|\s*$/g,""):""}function c(t,e){return t&&void 0===e?t.replace(/\s+$/,""):t&&e?t.replace(new RegExp("["+e+"]+$"),""):t}function d(t){return t?t.toLowerCase():""}function m(t){return t?t.toUpperCase():""}function u(t){return"string"==typeof t}function f(t){return"function"==typeof t}function h(t){return null!==t&&"object"==typeof t}function b(t){return h(t)&&Object.getPrototypeOf(t)==Object.prototype}function v(t){return"undefined"!=typeof Blob&&t instanceof Blob}function g(t){return"undefined"!=typeof FormData&&t instanceof FormData}function x(t,e,n){var o=i.resolve(t);return arguments.length<2?o:o.then(e,n)}function y(t,e,n){return n=n||{},f(n)&&(n=n.call(e)),k(t.bind({$vm:e,$options:n}),t,{$options:n})}function w(t,e){var n,o;if(vt(t))for(n=0;n0,Xa=qa&&qa.indexOf("edge/")>0,Ja=(qa&&qa.indexOf("android"),qa&&/iphone|ipad|ipod|ios/.test(qa)||"ios"===Va),Ya=(qa&&/chrome\/\d+/.test(qa),qa&&/phantomjs/.test(qa),qa&&qa.match(/firefox\/(\d+)/)),Za={}.watch,Qa=!1;if(Ga)try{var tr={};Object.defineProperty(tr,"passive",{get:function(){Qa=!0}}),window.addEventListener("test-passive",null,tr)}catch(t){}var er,nr,or=function(){return void 0===er&&(er=!Ga&&!Ha&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),er},ir=Ga&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,ar="undefined"!=typeof Symbol&&E(Symbol)&&"undefined"!=typeof Reflect&&E(Reflect.ownKeys);nr="undefined"!=typeof Set&&E(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var rr=C,sr=0,lr=function(){this.id=sr++,this.subs=[]};lr.prototype.addSub=function(t){this.subs.push(t)},lr.prototype.removeSub=function(t){b(this.subs,t)},lr.prototype.depend=function(){lr.target&&lr.target.addDep(this)},lr.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;edocument.createEvent("Event").timeStamp&&(Hr=function(){return performance.now()});var Vr=0,qr=function(t,e,n,o,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Vr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new nr,this.newDepIds=new nr,this.expression="","function"==typeof e?this.getter=e:(this.getter=$(e),this.getter||(this.getter=C)),this.value=this.lazy?void 0:this.get()};qr.prototype.get=function(){T(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;at(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&dt(t),D(),this.cleanupDeps()}return t},qr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},qr.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},qr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Ae(this)},qr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){at(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},qr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},qr.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},qr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Wr={enumerable:!0,configurable:!0,get:C,set:C},Kr={lazy:!0},Xr=0;!function(t){t.prototype._init=function(t){var e=this;e._uid=Xr++,e._isVue=!0,t&&t._isComponent?Be(e,t):e.$options=Z(Ue(e.constructor),t||{},e),e._renderProxy=e,e._self=e,be(e),ce(e),ie(e),ke(e,"beforeCreate"),_t(e),$e(e),kt(e),ke(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(He),function(t){var e={};e.get=function(){return this._data};var n={};n.get=function(){return this._props},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=B,t.prototype.$delete=U,t.prototype.$watch=function(t,e,n){var o=this;if(p(e))return Fe(o,t,e,n);n=n||{},n.user=!0;var i=new qr(o,t,e,n);if(n.immediate)try{e.call(o,i.value)}catch(t){at(t,o,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(He),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var o=this;if(Array.isArray(t))for(var i=0,a=t.length;i1?w(n):n;for(var o=w(arguments,1),i='event handler for "'+t+'"',a=0,r=n.length;aparseInt(this.max)&&tn(l,p[0],p,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Zr={KeepAlive:Yr};!function(t){var e={};e.get=function(){return Na},Object.defineProperty(t,"config",e),t.util={warn:rr,extend:k,mergeOptions:Z,defineReactive:F},t.set=B,t.delete=U,t.nextTick=ct,t.observable=function(t){return N(t),t},t.options=Object.create(null),Ia.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,k(t.options.components,Zr),Ve(t),qe(t),We(t),Je(t)}(He),Object.defineProperty(He.prototype,"$isServer",{get:or}),Object.defineProperty(He.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(He,"FunctionalRenderContext",{value:Vt}),He.version="2.6.6";var Qr,ts,es,ns,os,is,as,rs,ss,ls,ps=h("style,class"),cs=h("input,textarea,option,select,progress"),ds=function(t,e,n){return"value"===n&&cs(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},ms=h("contenteditable,draggable,spellcheck"),us=h("events,caret,typing,plaintext-only"),fs=function(t,e){return xs(e)||"false"===e?"false":"contenteditable"===t&&us(e)?e:"true"},hs=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,translate,truespeed,typemustmatch,visible"),bs="http://www.w3.org/1999/xlink",vs=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},gs=function(t){return vs(t)?t.slice(6,t.length):""},xs=function(t){return null==t||!1===t},ys={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ws=h("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ks=h("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),_s=function(t){return"pre"===t},Cs=function(t){return ws(t)||ks(t)},Os=Object.create(null),Ss=h("text,number,password,search,email,tel,url"),zs=Object.freeze({createElement:mn,createElementNS:un,createTextNode:fn,createComment:hn,insertBefore:bn,removeChild:vn,appendChild:gn,parentNode:xn,nextSibling:yn,tagName:wn,setTextContent:kn,setStyleScope:_n}),As={create:function(t,e){Cn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Cn(t,!0),Cn(e))},destroy:function(t){Cn(t,!0)}},js=new cr("",{},[]),$s=["create","activate","update","remove","destroy"],Es={create:An,update:An,destroy:function(t){An(t,js)}},Ts=Object.create(null),Ds=[As,Es],Ps={create:Dn,update:Dn},Rs={create:Mn,update:Mn},Ms=/[\w).+\-_$\]]/,Is="__r",Ls="__c",Ns=wr&&!(Ya&&Number(Ya[1])<=53),Fs={create:bo,update:bo},Bs={create:vo,update:vo},Us=g(function(t){var e={},n=/;(?![^(]*\))/g,o=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(o);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}),Gs=/^--/,Hs=/\s*!important$/,Vs=function(t,e,n){if(Gs.test(e))t.style.setProperty(e,n);else if(Hs.test(n))t.style.setProperty(Ta(e),n.replace(Hs,""),"important");else{var o=Ws(e);if(Array.isArray(n))for(var i=0,a=n.length;if?(d=o(n[v+1])?null:n[v+1].elm,g(t,d,n,u,v,a)):u>v&&y(t,e,m,f)}function _(t,e,n,o){for(var a=n;a\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Gl=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Hl="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+Fa+"]*",Vl="((?:"+Hl+"\\:)?"+Hl+")",ql=new RegExp("^<"+Vl),Wl=/^\s*(\/?)>/,Kl=new RegExp("^<\\/"+Vl+"[^>]*>"),Xl=/^]+>/i,Jl=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},ep=/&(?:lt|gt|quot|amp|#39);/g,np=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,op=h("pre,textarea",!0),ip=function(t,e){return t&&op(t)&&"\n"===e[0]},ap=/^@|^v-on:/,rp=/^v-|^@|^:/,sp=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,lp=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,pp=/^\(|\)$/g,cp=/^\[.*\]$/,dp=/:(.*)$/,mp=/^:|^\.|^v-bind:/,up=/\.[^.]+/g,fp=/^v-slot(:|$)|^#/,hp=/[\r\n]/,bp=/\s+/g,vp=g(Ll.decode),gp="_empty_",xp=/^xmlns:NS\d+/,yp=/^NS\d+:/,wp={preTransformNode:Pi},kp=[Ml,Il,wp],_p={model:ro,text:Mi,html:Ii},Cp={expectHTML:!0,modules:kp,directives:_p,isPreTag:_s,isUnaryTag:Nl,mustUseProp:ds,canBeLeftOpenTag:Fl,isReservedTag:Cs,getTagNamespace:pn,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(kp)},Op=g(Ni),Sp=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,zp=/\([^)]*?\);*$/,Ap=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,jp={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},$p={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ep=function(t){return"if("+t+")return null;"},Tp={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ep("$event.target !== $event.currentTarget"),ctrl:Ep("!$event.ctrlKey"),shift:Ep("!$event.shiftKey"),alt:Ep("!$event.altKey"),meta:Ep("!$event.metaKey"),left:Ep("'button' in $event && $event.button !== 0"),middle:Ep("'button' in $event && $event.button !== 1"),right:Ep("'button' in $event && $event.button !== 2")},Dp={on:Ki,bind:Xi,cloak:C},Pp=function(t){this.options=t,this.warn=t.warn||Nn,this.transforms=Fn(t.modules,"transformCode"),this.dataGenFns=Fn(t.modules,"genData"),this.directives=k(k({},Dp),t.directives);var e=t.isReservedTag||Pa;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1},Rp=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(t){return function(e){function n(n,o){var i=Object.create(e),a=[],r=[],s=function(t,e,n){(n?r:a).push(t)};if(o){o.modules&&(i.modules=(e.modules||[]).concat(o.modules)),o.directives&&(i.directives=k(Object.create(e.directives||null),o.directives));for(var l in o)"modules"!==l&&"directives"!==l&&(i[l]=o[l])}i.warn=s;var p=t(n.trim(),i);return p.errors=a,p.tips=r,p}return{compile:n,compileToFunctions:ya(n)}}}(function(t,e){var n=ci(t.trim(),e);!1!==e.optimize&&Li(n,e);var o=Ji(n,e);return{ast:n,render:o.render,staticRenderFns:o.staticRenderFns}})),Mp=Rp(Cp),Ip=(Mp.compile,Mp.compileToFunctions),Lp=!!Ga&&wa(!1),Np=!!Ga&&wa(!0),Fp=g(function(t){var e=dn(t);return e&&e.innerHTML}),Bp=He.prototype.$mount;He.prototype.$mount=function(t,e){if((t=t&&dn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var o=n.template;if(o)if("string"==typeof o)"#"===o.charAt(0)&&(o=Fp(o));else{if(!o.nodeType)return this;o=o.innerHTML}else t&&(o=ka(t));if(o){var i=Ip(o,{outputSourceRange:!1,shouldDecodeNewlines:Lp,shouldDecodeNewlinesForHref:Np,delimiters:n.delimiters,comments:n.comments},this),a=i.render,r=i.staticRenderFns;n.render=a,n.staticRenderFns=r}}return Bp.call(this,t,e)},He.compile=Ip,e.default=He}.call(e,n(3),n(8).setImmediate)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var o,i;o=n(29),i=n(30),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o,i;n(69),o=n(71),i=n(73),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){"use strict";function o(t){this.state=st,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}function i(t,e){t instanceof Promise?this.promise=t:this.promise=new Promise(t.bind(e)),this.context=e}function a(t){var e=t.config,n=t.nextTick;ct=n,ht=e.debug||!e.silent}function r(t){"undefined"!=typeof console&&ht&&console.warn("[VueResource warn]: "+t)}function s(t){"undefined"!=typeof console&&console.error(t)}function l(t,e){return ct(t,e)}function p(t){return t?t.replace(/^\s*|\s*$/g,""):""}function c(t,e){return t&&void 0===e?t.replace(/\s+$/,""):t&&e?t.replace(new RegExp("["+e+"]+$"),""):t}function d(t){return t?t.toLowerCase():""}function m(t){return t?t.toUpperCase():""}function u(t){return"string"==typeof t}function f(t){return"function"==typeof t}function h(t){return null!==t&&"object"==typeof t}function b(t){return h(t)&&Object.getPrototypeOf(t)==Object.prototype}function v(t){return"undefined"!=typeof Blob&&t instanceof Blob}function g(t){return"undefined"!=typeof FormData&&t instanceof FormData}function x(t,e,n){var o=i.resolve(t);return arguments.length<2?o:o.then(e,n)}function y(t,e,n){return n=n||{},f(n)&&(n=n.call(e)),k(t.bind({$vm:e,$options:n}),t,{$options:n})}function w(t,e){var n,o;if(vt(t))for(n=0;n=200&&i<300,this.status=i||0,this.statusText=a||"",this.headers=new yt(o),this.body=t,u(t)?this.bodyText=t:v(t)&&(this.bodyBlob=t,nt(t)&&(this.bodyText=et(t)))};wt.prototype.blob=function(){return x(this.bodyBlob)},wt.prototype.text=function(){return x(this.bodyText)},wt.prototype.json=function(){return x(this.text(),function(t){return JSON.parse(t)})},Object.defineProperty(wt.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var kt=function(t){this.body=null,this.params={},gt(this,t,{method:m(t.method||"GET")}),this.headers instanceof yt||(this.headers=new yt(this.headers))};kt.prototype.getUrl=function(){return M(this)},kt.prototype.getBody=function(){return this.body},kt.prototype.respondWith=function(t,e){return new wt(t,gt(e||{},{url:this.getUrl()}))};var _t={Accept:"application/json, text/plain, */*"},Ct={"Content-Type":"application/json;charset=utf-8"};ot.options={},ot.headers={put:Ct,post:Ct,patch:Ct,delete:Ct,common:_t,custom:{}},ot.interceptor={before:q,method:W,jsonp:V,json:U,form:B,header:K,cors:F},ot.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach(function(t){ot[t]=function(e,n){return this(gt(n||{},{url:e,method:t}))}}),["post","put","patch"].forEach(function(t){ot[t]=function(e,n,o){return this(gt(o||{},{url:e,method:t,body:n}))}}),it.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&window.Vue.use(rt),e.default=rt},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var i=n(2),a=o(i),r=n(11),s=o(r),l=n(91),p=o(l),c=n(96),d=o(c),m=n(97),u=o(m);a.default.use(u.default),a.default.use(d.default),window.addEventListener("load",function(){new a.default({el:"#optimole-app",store:p.default,components:{App:s.default}})})},function(t,e,n){(function(t){function o(t,e){this._id=t,this._clearFn=e}var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;e.setTimeout=function(){return new o(a.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(a.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(9),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(3))},function(t,e,n){(function(t,e){!function(t,n){"use strict";function o(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;n
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t{{strings.status}}\n\t\t\t\t\t{{strings.connected}}\n\t\t\t\t\t{{strings.not_connected}}\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t
\n\t\t
\n\t\n'},function(t,e,n){var o,i;n(21),o=n(23),i=n(24),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(22);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\t#optimole-app .label[_v-30ad1667] {\n\t\tmargin-top: 0;\n\t}\n\t.optml-refresh-wrapper i.dashicons[_v-30ad1667]{\n\t\twidth:auto;\n\t\theight:auto;\n\t}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"cdn-details",data:function(){return{strings:optimoleDashboardApp.strings}},computed:{userData:function(){return this.$store.state.userData}},methods:{computedPercentage:function(){return(this.userData.usage/this.userData.quota*100).toFixed(2)},requestUpdate:function(){this.$store.dispatch("requestStatsUpdate",{waitTime:0,component:null})}}}},function(t,e){t.exports='\n\t
\n\t\t
\n\t\t\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{{strings.usage}}:\n\t\t\t\t\t\t{{this.userData.usage_pretty}}\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t

\n\t\t\t\t{{computedPercentage()}}%\n\t\t\t

\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{{strings.quota}}:\n\t\t\t\t\t\t{{this.userData.quota_pretty}}\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t\t\n\t\t\n\t\t
\n\t\t60%\n\t\n\t
\n'},function(t,e,n){var o,i;n(26),o=n(28),i=n(31),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(27);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\tinput[_v-32d52390], .notification .delete[_v-32d52390], button[_v-32d52390] {\n\t\tbox-sizing: border-box !important;\n\t}\n\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default={name:"connect-layout",components:{ApiKeyForm:i.default},data:function(){return{email:optimoleDashboardApp.current_user.email,strings:optimoleDashboardApp.strings,showApiKey:!1,error:!1,showRegisterField:!1,from_register:!1}},computed:{isLoading:function(){return this.$store.state.loading},isRestApiWorking:function(){return this.$store.state.apiError}},methods:{toggleApiForm:function(){this.error=!1,this.from_register=!1,this.showApiKey=!this.showApiKey},registerAccount:function(){var t=this;if(!this.showRegisterField)return void(this.showRegisterField=!0);this.error=!1,this.$store.dispatch("registerOptimole",{email:this.email}).then(function(e){"success"===e.code?(t.showApiKey=!0,t.from_register=!0):t.error=!0})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"api-key-form",data:function(){return{apiKey:this.$store.state.apiKey?this.$store.state.apiKey:"",connected:this.$store.state.connected,strings:optimoleDashboardApp.strings,isLoading:!1}},mounted:function(){},computed:{validKey:function(){return this.$store.state.apiKeyValidity},connectionError:function(){return this.$store.state.connectError},isConnected:function(){return this.$store.state.connected}},methods:{connect:function(){this.$store.dispatch("connectOptimole",{apiKey:this.apiKey})},disconnect:function(){this.apiKey="",this.$store.dispatch("disconnectOptimole",{})}}}},function(t,e){t.exports='\n\t
\n\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t\t

\n\t\t\t{{connectionError}}\n\t\t

\n\t
\n'},function(t,e){t.exports='\n\t
\n\t\t\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t{{strings.notification_message_register}}\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t

1. {{strings.step_one_api_title}}

\n\t\t\t\t\t\t

\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t

2. {{strings.step_two_api_title}}

\n\t\t\t\t\t\t

{{strings.step_two_api_desc}}

\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t

{{strings.account_needed_heading}}

\n\t\t\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t
\n'},function(t,e,n){var o,i;n(33),o=n(35),i=n(36),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(34);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\t.loader[_v-61f73658] {\n\t\tmargin: 0 auto;\n\t\tfont-size: 10em;\n\t\tborder-left: 2px solid #888 !important;\n\t\tborder-bottom: 2px solid #888 !important;\n\t\tmargin-top: 0.2em;\n\t}\n\t\n\t.progress[_v-61f73658]::-webkit-progress-value {\n\t\ttransition: width 0.5s ease;\n\t}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"last-images",data:function(){return{loading:!0,startTime:0,maxTime:20,noImages:!1,home_url:optimoleDashboardApp.home_url,strings:optimoleDashboardApp.strings.latest_images}},props:{status:status},mounted:function(){if(this.$store.state.optimizedImages.length>0)return void(this.loading=!1);this.doProgressBar(),this.$store.dispatch("retrieveOptimizedImages",{waitTime:1e3*this.maxTime,component:this})},watch:{imageData:function(){var t=this;this.imageData.length>0&&(this.startTime=this.maxTime,setTimeout(function(){t.loading=!1},1e3))}},computed:{imageData:function(){return null!==this.$store.state.optimizedImages?this.$store.state.optimizedImages:[]}},methods:{doProgressBar:function(){this.startTime!==this.maxTime&&(this.startTime++,setTimeout(this.doProgressBar,1e3))},compressionRate:function(t,e){var n=(parseFloat(t/e*100)-100).toFixed(1);return n<1?this.strings.same_size:n>1&&n<25?this.strings.small_optimization.replace("{ratio}",n.toString()+"%"):n>25&&n<100?this.strings.medium_optimization.replace("{ratio}",n.toString()+"%"):n>100?this.strings.big_optimization.replace("{ratio}",(Math.floor(n/10+10)/10).toFixed(1).toString()+"x"):void 0}}}},function(t,e){t.exports='\n\t
\n\t\t
\n\t\t\t
\n\t\t\t\t

{{strings.last}} {{strings.optimized_images}}

\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
{{strings.image}}{{strings.compression}}

\n\t\t\t\t\t\t
\n\t\t\t
\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t
{{strings.loading_latest_images}}
\n\t\t\t\n\t\t
\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t
\n\t
\n'},function(t,e,n){var o,i;o=n(38),i=n(44),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(39),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default={name:"conflicts",components:{ConflictItem:i.default},data:function(){return{home_url:optimoleDashboardApp.home_url,strings:optimoleDashboardApp.strings.conflicts}},computed:{noConflicts:function(){return 0===this.$store.state.conflicts.count},conflictData:function(){return null!==this.$store.state.conflicts.conflicts?this.$store.state.conflicts.conflicts:[]}}}},function(t,e,n){var o,i;n(40),o=n(42),i=n(43),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(41);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\t#optimole-app .optml-conflict-done.button.is-link.is-outlined.is-loading[_v-20fe44b3]::after {\n\t\tborder-color: transparent transparent #fff #fff !important;\n\t}\n\n\t.optml-conflict-done[_v-20fe44b3]:hover {\n\t\tbackground-color: transparent !important;\n\t\tcolor: #fff !important;\n\t\tborder-color: transparent !important;\n\t}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"conflict-item",props:{item:{type:Object},is_loading:{type:Boolean,default:!1}},data:function(){return{home_url:optimoleDashboardApp.home_url,strings:optimoleDashboardApp.strings.conflicts}},methods:{conflictClass:function(t){return"high"===t?"is-danger":"medium"===t?"is-info":"is-primary"},dismissConflict:function(t){this.is_loading=!0,this.$store.dispatch("dismissConflict",{conflictID:t,component:this})}}}},function(t,e){t.exports='\n\t
\n\t\t
\n\n\t\t{{strings.conflict_close}}\n\t\t
\n\t
\n'},function(t,e){t.exports='\n\t
\n\t\t
\n\t\t\t
{{strings.title}}
\n\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t
\n'},function(t,e,n){var o,i;n(46),o=n(48),i=n(89),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(47);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\n #optml-settings-menu > ul.menu-list.optml-settings-submenu[_v-5bec84e3] {\n list-style: none;\n }\n\n #optml-settings-menu li a span.tag.optml-beta[_v-5bec84e3] {\n border-radius: 2px;\n font-family: Verdana;\n font-size: .5rem;\n height: 2.25em;\n margin-left: .5em;\n vertical-align: text-bottom;\n }\n\n #optml-settings-menu > ul.menu-list > li > ul[_v-5bec84e3] {\n margin-top: 10px;\n padding-top: 10px;\n border: none;\n font-size: 0.8rem;\n list-style: none;\n }\n\n .subtab-content[_v-5bec84e3] {\n\n padding: 0.5em 0.75em;\n }\n\n #optml-settings-menu[_v-5bec84e3] {\n padding-top: 23px;\n }\n\n .subtab-content[_v-5bec84e3] {\n padding-top: 10px;\n }\n\n .advanced-link[_v-5bec84e3] {\n font-size: 100%;\n line-height: 20px;\n }\n\n #optimole-app .is-menu-disabled > ul > li > a[_v-5bec84e3] {\n cursor: not-allowed;\n }\n\n .is-tab-disabled[_v-5bec84e3]:not(.is-tab-general),\n .is-menu-disabled[_v-5bec84e3] {\n opacity: 0.4;\n cursor: not-allowed;\n }\n",""])},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(49),a=o(i),r=n(54),s=o(r),l=n(5),p=o(l),c=n(74),d=o(c),m=n(79),u=o(m);e.default={name:"options",components:{Exclusions:u.default,Resize:d.default,Watermarks:p.default,Compression:s.default,General:a.default},data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showNotification:!1,tab:"general",isDisabled:!1,advancedOpen:!1}},mounted:function(){},methods:{ToggleAdvanced:function(){this.advancedOpen=!this.advancedOpen},changeTab:function(t){this.tab=t},updateGlobalState:function(t){this.isDisabled=!t}},computed:{}}},function(t,e,n){var o,i;n(50),o=n(52),i=n(53),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(51);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n .is-field-disabled[_v-b6be5ba6] {\n opacity: 0.5;\n }\n\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"general",components:{},data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showNotification:!1,showSave:!1,isReplacerOff:!1,new_data:{}}},mounted:function(){this.isReplacerOff="disabled"===this.site_settings.image_replacer,this.$emit("update-status",!this.isReplacerOff)},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.new_data})}},computed:{site_settings:function(){return this.$store.state.site_settings},getReplacerStatus:{get:function(){return!("disabled"===this.site_settings.image_replacer)},set:function(t){this.showSave=!0,this.isReplacerOff=!t,this.$emit("update-status",t),this.new_data.image_replacer=t?"enabled":"disabled"}},lazyLoadStatus:{set:function(t){this.showSave=!0,this.new_data.lazyload=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.lazyload)}}}}},function(t,e){t.exports='\n
\n
\n \n
\n \n
\n\n
\n
\n \n\n
\n \n
\n
\n
\n
\n \n
\n
\n\n
\n'},function(t,e,n){var o,i;n(55),o=n(57),i=n(68),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(56);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n .sample-image[_v-45cad5aa]{\n margin-top:30px;\n }\n .view-sample-image[_v-45cad5aa]{\n\n line-height: 32px;\n margin-left: 20px;\n }\n",""])},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){return 90===t?optimoleDashboardApp.strings.options_strings.high_q_title:75===t?optimoleDashboardApp.strings.options_strings.medium_q_title:55===t?optimoleDashboardApp.strings.options_strings.low_q_title:t}function a(t){return"number"==typeof t?t:"auto"===t?90:"high_c"===t?90:"medium_c"===t?75:"low_c"===t?55:90}Object.defineProperty(e,"__esModule",{value:!0});var r=n(58),s=o(r),l=n(59),p=o(l);n(64),e.default={name:"compression",components:{VueSlider:s.default,Image_diff:p.default},data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showSave:!1,showSample:!1,loading_images:!1,showComparison:!1,new_data:{quality:a(this.$store.state.site_settings.quality),network_optimization:this.$store.state.site_settings.network_optimization},sliderOptions:{processStyle:{backgroundColor:"#3273dc"},contained:!0,dotStyle:{borderColor:"#3273dc"},min:1,max:100,tooltipFormatter:function(t){return i(t)},marks:function(t){var e={width:"12px",height:"12px",display:"block",backgroundColor:"#3273dc",borderColor:"#3273dc",boxShadow:"none",transform:"translate(-4px, -4px)"},n=i(t);return"number"!=typeof n&&{label:n,style:e}}}}},mounted:function(){},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.new_data})},newSample:function(t){return!0!==this.showComparison&&(this.showComparison=!0),this.updateSampleImage(this.new_data.quality,t?"yes":"no"),!1},updateSampleImage:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"no";this.$store.dispatch("sampleRate",{quality:t,force:n,component:this}).then(function(t){setTimeout(function(){e.showNotification=!1},1e3)},function(t){})}},computed:{site_settings:function(){return this.$store.state.site_settings},compressionRatio:function(){return(100*parseFloat(this.sample_images.optimized_size/this.sample_images.original_size)).toFixed(0)},sample_images:function(){return this.$store.state.sample_rate},networkStatus:{set:function(t){this.showSave=!0,this.new_data.network_optimization=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.network_optimization)}}}}},function(t,e,n){!function(e,o){t.exports=o(n(2))}("undefined"!=typeof self&&self,function(t){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(o,i,function(e){return t[e]}.bind(null,i));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s="fb15")}({2350:function(t,e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var a=o(i);return[n].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([a]).join("\n")}return[n].join("\n")}function o(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o=n(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},i=0;in.parts.length&&(o.parts.length=n.parts.length)}else{var a=[];for(i=0;i-1)e[t]=n[t];else{var o=Object.getOwnPropertyDescriptor(n,t);void 0!==o.value?"function"==typeof o.value?(e.methods||(e.methods={}))[t]=o.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return e={},e[t]=o.value,e}}):(o.get||o.set)&&((e.computed||(e.computed={}))[t]={get:o.get,set:o.set})}}),(e.mixins||(e.mixins=[])).push({data:function(){return l(this,t)}});var i=t.__decorators__;i&&(i.forEach(function(t){return t(e)}),delete t.__decorators__);var a=Object.getPrototypeOf(t.prototype),r=a instanceof m?a.constructor:m,s=r.extend(e);return c(s,t,r),u&&o(s,t),s}function c(t,e,n){Object.getOwnPropertyNames(e).forEach(function(o){if("prototype"!==o){var i=Object.getOwnPropertyDescriptor(t,o);if(!i||i.configurable){var a=Object.getOwnPropertyDescriptor(e,o);if(!h){if("cid"===o)return;var r=Object.getOwnPropertyDescriptor(n,o);if(!s(a.value)&&r&&r.value===a.value)return}Object.defineProperty(t,o,a)}}})}function d(t){return"function"==typeof t?p(t):function(e){return p(e,t)}}Object.defineProperty(e,"__esModule",{value:!0});var m=/** * vue-class-component v7.0.1 * (c) 2015-present Evan You * @license MIT */ -function(t){return t&&"object"==typeof t&&"default"in t?t.default:t}(n("8bbf")),u="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys,f={__proto__:[]},h=f instanceof Array,b=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];d.registerHooks=function(t){b.push.apply(b,t)},e.default=d,e.createDecorator=a,e.mixins=r},"8bbf":function(e,n){e.exports=t},ae61:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider-dot{position:absolute;will-change:transform;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""])},d5ac:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""])},df80:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-ms-touch-action:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-disabled{pointer-events:none}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}.vue-slider-sr-only{clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden;position:absolute!important}",""])},fb15:function(t,e,n){"use strict";function o(t,e,n,o){var i,a=arguments.length,r=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(r=(a<3?i(r):a>3?i(e,n,r):i(e,n))||r);return a>3&&r&&Object.defineProperty(e,n,r),r}function i(t,e,n){ut&&(Array.isArray(t)||"function"==typeof t||void 0!==t.type||(t.type=Reflect.getMetadata("design:type",e,n)))}function a(t){return void 0===t&&(t={}),function(e,n){i(t,e,n),Object(dt.createDecorator)(function(e,n){(e.props||(e.props={}))[n]=t})(e,n)}}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n-1},required:!0})],ft.prototype,"tooltipPlacement",void 0),o([a({type:[String,Function]})],ft.prototype,"tooltipFormatter",void 0),o([a({type:Boolean,default:!1})],ft.prototype,"focus",void 0),o([a({default:!1})],ft.prototype,"disabled",void 0),ft=o([mt.a],ft);var ht=ft;n("556c");var bt=function(t){function e(){return b(this,e),x(this,w(e).apply(this,arguments))}return k(e,t),g(e,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle,e.style,e.active?this.stepActiveStyle:null,e.active?e.activeStyle:null]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle,e.labelStyle,e.active?this.labelActiveStyle:null,e.active?e.labelActiveStyle:null],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),e}(ct.a);o([a({required:!0})],bt.prototype,"mark",void 0),o([a(Boolean)],bt.prototype,"hideLabel",void 0),o([a()],bt.prototype,"stepStyle",void 0),o([a()],bt.prototype,"stepActiveStyle",void 0),o([a()],bt.prototype,"labelStyle",void 0),o([a()],bt.prototype,"labelActiveStyle",void 0),bt=o([mt.a],bt);var vt,gt=bt,xt=function(t){return"number"==typeof t?"".concat(t,"px"):t},yt=function(t){var e=document.documentElement,n=document.body,o=t.getBoundingClientRect();return{y:o.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||n.clientTop||0),x:o.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}},wt=function(t,e,n){var o="targetTouches"in t?t.targetTouches[0]:t,i=yt(e),a={x:o.pageX-i.x,y:o.pageY-i.y};return{x:n?e.offsetWidth-a.x:a.x,y:n?e.offsetHeight-a.y:a.y}};!function(t){t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(vt||(vt={}));var kt,_t,Ct=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case vt.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case vt.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case vt.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case vt.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case vt.END:return function(){return e.max};case vt.HOME:return function(){return e.min};case vt.PAGE_UP:return function(t){return t+10};case vt.PAGE_DOWN:return function(t){return t-10};default:return null}},Ot=function(){function t(e){C(this,t),this.num=e}return S(t,[{key:"decimal",value:function(t,e){var n=this.num,o=this.getDecimalLen(n),i=this.getDecimalLen(t),a=0;switch(e){case"+":a=this.getExponent(o,i),this.num=(this.safeRoundUp(n,a)+this.safeRoundUp(t,a))/a;break;case"-":a=this.getExponent(o,i),this.num=(this.safeRoundUp(n,a)-this.safeRoundUp(t,a))/a;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(o)),this.safeRoundUp(t,this.getExponent(i)))/this.getExponent(o+i);break;case"/":a=this.getExponent(o,i),this.num=this.safeRoundUp(n,a)/this.safeRoundUp(t,a);break;case"%":a=this.getExponent(o,i),this.num=this.safeRoundUp(n,a)%this.safeRoundUp(t,a)/a}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){return("".concat(t).split(".")[1]||"").length}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();!function(t){t[t.VALUE=1]="VALUE",t[t.INTERVAL=2]="INTERVAL",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX",t[t.ORDER=5]="ORDER"}(_t||(_t={}));var St=(kt={},L(kt,_t.VALUE,'The type of the "value" is illegal'),L(kt,_t.INTERVAL,'The prop "interval" is invalid, "(max - min)" cannot be divisible by "interval"'),L(kt,_t.MIN,'The "value" cannot be less than the minimum.'),L(kt,_t.MAX,'The "value" cannot be greater than the maximum.'),L(kt,_t.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),kt),zt=function(){function t(e){M(this,t),this.dotsPos=[],this.dotsValue=[],this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(_t.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return N(t,[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?T(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,n=this.order?T(t).sort(function(t,e){return t-e}):t;this.dotsPos=n,this.setDotsValue(n.map(function(t){return e.getValueByPos(t)}),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var n=100;this.markList.forEach(function(o){var i=Math.abs(o.pos-t);ithis.total&&(t=this.total),this.data?this.data[t]:new Ot(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){t=this.getValidPos(t,e).pos;var n=t-this.dotsPos[e];if(n){var o=new Array(this.dotsPos.length);this.fixed?o=this.getFixedChangePosArr(n,e):this.minRange||this.maxRange?o=this.getLimitRangeChangePosArr(t,n,e):o[e]=n,this.setDotsPos(this.dotsPos.map(function(t,e){return t+(o[e]||0)}))}}},{key:"getFixedChangePosArr",value:function(t,e){var n=this;return this.dotsPos.forEach(function(o,i){if(i!==e){var a=n.getValidPos(o+t,i),r=a.pos;a.inRange||(t=Math.min(Math.abs(r-o),Math.abs(t))*(t<0?-1:1))}}),this.dotsPos.map(function(e){return t})}},{key:"getLimitRangeChangePosArr",value:function(t,e,n){var o=this,i=[{index:n,changePos:e}],a=e;return[this.minRange,this.maxRange].forEach(function(r,s){if(!r)return!1;var l=0===s,p=e>0,c=0;c=l?p?1:-1:p?-1:1;for(var d=n+c,m=o.dotsPos[d],u=t;o.isPos(m)&&function(t,e){var n=Math.abs(t-e);return l?no.maxRangeDir}(m,u);){var f=o.getValidPos(m+a,d),h=f.pos;i.push({index:d,changePos:h-m}),d+=c,u=h,m=o.dotsPos[d]}}),this.dotsPos.map(function(t,e){var n=i.filter(function(t){return t.index===e});return n.length?n[0].changePos:0})}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e],o=!0;return tn[1]&&(t=n[1],o=!1),{pos:t,inRange:o}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)this.max)return this.emitError(_t.MAX),0;if("number"!=typeof t||t!==t)return this.emitError(_t.VALUE),0;t=new Ot(t).minus(this.min).divide(this.interval).toNumber()}var e=new Ot(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some(function(e){var n=A(e,2),o=n[0],i=n[1];return t>=o&&t<=i})}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new Ot(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"emitError",value:function(t){this.onError&&this.onError(t,St[t])}},{key:"getDotRange",value:function(t,e,n){if(!this.dotOptions)return n;var o=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return o&&void 0!==o[e]?this.parseValue(o[e]):n}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,n){var o=t.parseValue(e);return z({pos:o,value:e,label:e,active:t.isActiveByPos(o)},n)};return!0===this.marks?this.getValues().map(function(t){return e(t)}):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort(function(t,e){return+t-+e}).map(function(n){var o=t.marks[n];return e(n,"string"!=typeof o?o:{label:o})}):Array.isArray(this.marks)?this.marks.map(function(t){return e(t)}):"function"==typeof this.marks?this.getValues().map(function(e){return{value:e,result:t.marks(e)}}).filter(function(t){return!!t.result}).map(function(t){var n=t.value,o=t.result;return e(n,o)}):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,T(this.dotsPos)),Math.max.apply(Math,T(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return t=this.data?this.data.length-1:new Ot(this.max).minus(this.min).divide(this.interval).toNumber(),t-Math.floor(t)!=0?(this.emitError(_t.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.minRange?this.minRange*this.gap:0}},{key:"maxRangeDir",get:function(){return this.maxRange?this.maxRange*this.gap:100}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,n=[];return e.forEach(function(o,i){n.push([Math.max(t.minRange?t.minRangeDir*i:0,t.enableCross?0:e[i-1]||0,t.getDotRange(i,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-i):100,t.enableCross?100:e[i+1]||100,t.getDotRange(i,"max",100))])}),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map(function(e){return t.getIndexByValue(e)})}}]),t}(),At=function(){function t(e){F(this,t),this.states=0,this.map=e}return U(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();n("4abb");var jt={None:0,Drag:2,Focus:4},$t=function(t){function e(){var t;return tt(this,e),t=ot(this,at(e).apply(this,arguments)),t.states=new At(jt),t.scale=1,t.focusDotIndex=0,t}return rt(e,t),nt(e,[{key:"onValueChanged",value:function(){!this.states.has(jt.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new Ot(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new zt({value:this.value,data:this.data,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.marks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach(function(e){t.$watch(e,function(n){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(n)&&t.control.data.length===n.length&&n.every(function(e,n){return e===t.control.data[n]}))return!1;t.control[e]=n,["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()})})}},{key:"isDisabledByDotIndex",value:function(t){return this.dots[t].disabled}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:J(t))}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some(function(t,n){return t!==e[n]})}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(jt.Drag),this.states.add(jt.Focus),this.$emit("drag-start")}},{key:"dragMove",value:function(t){if(!this.states.has(jt.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:J(n))}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,n=t;n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(jt.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(jt.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?J(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,n=Array.isArray(t)?t.map(function(t){return e.control.getValueByIndex(t)}):this.control.getValueByIndex(t);this.setValue(n)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.isDisabledByDotIndex(n))return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(jt.Focus),setTimeout(function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()})}},{key:"keydownHandle",value:function(t){if(!this.useKeyboard||!this.states.has(jt.Focus))return!1;var e=Ct(t,{direction:this.direction,max:this.control.total,min:0,hook:this.keydownHook});if(e){t.preventDefault();var n=this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex]),o=e(n),i=this.control.parseValue(this.control.getValueByIndex(o));this.isCrossDot(i),this.control.setDotPos(i,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return wt(t,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,o){var i=this.$createElement,a=this.$scopedSlots[t];return a?o?a(e):i("template",{slot:t},[a(e)]):n}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",{ref:"container",class:this.containerClasses,style:this.containerStyles,attrs:{"aria-hidden":!0},on:{click:this.clickHandle}},[e("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map(function(n,o){return t.renderSlot("process",n,e("div",{class:"vue-slider-process",key:"process-".concat(o),style:n.style}),!0)}),this.marks?e("div",{class:"vue-slider-marks"},[this.control.markList.map(function(n,o){var i;return t.renderSlot("mark",n,e("vue-slider-mark",{key:"mark-".concat(o),attrs:{mark:n,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(i={},X(i,t.isHorizontal?"height":"width","100%"),X(i,t.isHorizontal?"width":"height",t.tailSize),X(i,t.mainDirection,"".concat(n.pos,"%")),i),on:{pressLabel:function(e){return t.setValueByPos(e)}}},[t.renderSlot("step",n,null),t.renderSlot("label",n,null)]),!0)})]):null,this.dots.map(function(n,o){var i;return e("vue-slider-dot",{ref:"dot-".concat(o),key:"dot-".concat(o),attrs:{value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.tooltipFormatter)?t.tooltipFormatter[o]:t.tooltipFormatter,"tooltip-placement":t.tooltipDirections[o]},style:[t.dotBaseStyle,(i={},X(i,t.mainDirection,"".concat(n.pos,"%")),X(i,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),i)],on:{"drag-start":function(){return t.dragStart(o)}}},[t.renderSlot("dot",n,null),t.renderSlot("tooltip",n,null)])})]),1!==this.dots.length||this.data?null:e("input",{class:"vue-slider-sr-only",attrs:{type:"range",min:this.min,max:this.max},domProps:{value:this.value}})])}},{key:"tailSize",get:function(){return xt((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],e=V(t,2),n=e[0],o=e[1],i=this.width?xt(this.width):this.isHorizontal?"auto":xt(4),a=this.height?xt(this.height):this.isHorizontal?xt(4):"auto";return{padding:this.contained?"".concat(o/2,"px ").concat(n/2,"px"):this.isHorizontal?"".concat(o/2,"px 0"):"0 ".concat(n/2,"px"),width:i,height:a}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map(function(e){var n,o=V(e,3),i=o[0],a=o[1],r=o[2];if(i>a){var s=[a,i];i=s[0],a=s[1]}var l=t.isHorizontal?"width":"height";return{start:i,end:a,style:H((n={},X(n,t.isHorizontal?"height":"width","100%"),X(n,t.isHorizontal?"top":"left",0),X(n,t.mainDirection,"".concat(i,"%")),X(n,l,"".concat(a-i,"%")),X(n,"transitionProperty","".concat(l,",").concat(t.mainDirection)),X(n,"transitionDuration","".concat(t.animateTime,"s")),n),t.processStyle,r)}})}},{key:"dotBaseStyle",get:function(){var t,e=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],n=V(e,2),o=n[0],i=n[1];return t=this.isHorizontal?X({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):X({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),H({width:"".concat(o,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map(function(){return t})}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map(function(e,n){return H({pos:e,index:n,value:t.control.dotsValue[n],focus:t.states.has(jt.Focus)&&t.focusDotIndex===n,disabled:!1,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[n]:t.dotOptions)||{})})}},{key:"animateTime",get:function(){return this.states.has(jt.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some(function(e,n){return e!==t[n]}):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),e}(ct.a);o([function(t,e){return void 0===e&&(e={}),function(n,o){i(e,n,o),Object(dt.createDecorator)(function(n,o){(n.props||(n.props={}))[o]=e,n.model={prop:o,event:t||o}})(n,o)}}("change",{default:0})],$t.prototype,"value",void 0),o([a({type:Boolean,default:!1})],$t.prototype,"silent",void 0),o([a({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],$t.prototype,"direction",void 0),o([a({type:[Number,String]})],$t.prototype,"width",void 0),o([a({type:[Number,String]})],$t.prototype,"height",void 0),o([a({default:14})],$t.prototype,"dotSize",void 0),o([a({default:!1})],$t.prototype,"contained",void 0),o([a({type:Number,default:0})],$t.prototype,"min",void 0),o([a({type:Number,default:100})],$t.prototype,"max",void 0),o([a({type:Number,default:1})],$t.prototype,"interval",void 0),o([a({type:Boolean,default:!1})],$t.prototype,"disabled",void 0),o([a({type:Boolean,default:!0})],$t.prototype,"clickable",void 0),o([a({type:Number,default:.5})],$t.prototype,"duration",void 0),o([a(Array)],$t.prototype,"data",void 0),o([a({type:Boolean,default:!1})],$t.prototype,"lazy",void 0),o([a({type:String,validator:function(t){return["none","always","focus"].indexOf(t)>-1},default:"focus"})],$t.prototype,"tooltip",void 0),o([a({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every(function(t){return["top","right","bottom","left"].indexOf(t)>-1})}})],$t.prototype,"tooltipPlacement",void 0),o([a({type:[String,Array,Function]})],$t.prototype,"tooltipFormatter",void 0),o([a({type:Boolean,default:!1})],$t.prototype,"useKeyboard",void 0),o([a({type:Function,default:function(){return!1}})],$t.prototype,"keydownHook",void 0),o([a({type:Boolean,default:!0})],$t.prototype,"enableCross",void 0),o([a({type:Boolean,default:!1})],$t.prototype,"fixed",void 0),o([a({type:Boolean,default:!0})],$t.prototype,"order",void 0),o([a(Number)],$t.prototype,"minRange",void 0),o([a(Number)],$t.prototype,"maxRange",void 0),o([a({type:[Boolean,Object,Array,Function],default:!1})],$t.prototype,"marks",void 0),o([a({type:[Boolean,Function],default:!0})],$t.prototype,"process",void 0),o([a(Boolean)],$t.prototype,"included",void 0),o([a(Boolean)],$t.prototype,"adsorb",void 0),o([a(Boolean)],$t.prototype,"hideLabel",void 0),o([a()],$t.prototype,"dotOptions",void 0),o([a()],$t.prototype,"railStyle",void 0),o([a()],$t.prototype,"processStyle",void 0),o([a()],$t.prototype,"dotStyle",void 0),o([a()],$t.prototype,"tooltipStyle",void 0),o([a()],$t.prototype,"stepStyle",void 0),o([a()],$t.prototype,"stepActiveStyle",void 0),o([a()],$t.prototype,"labelStyle",void 0),o([a()],$t.prototype,"labelActiveStyle",void 0),o([function(t,e){void 0===e&&(e={});var n=e.deep,o=void 0!==n&&n,i=e.immediate,a=void 0!==i&&i;return Object(dt.createDecorator)(function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var i=e.watch;"object"!=typeof i[t]||Array.isArray(i[t])?void 0===i[t]&&(i[t]=[]):i[t]=[i[t]],i[t].push({handler:n,deep:o,immediate:a})})}("value")],$t.prototype,"onValueChanged",null),$t=o([mt()({data:function(){return{control:null}},components:{VueSliderDot:ht,VueSliderMark:gt},inheritAttrs:!1})],$t);var Et=$t,Tt=Et;n.d(e,"ERROR_TYPE",function(){return _t}),e.default=Tt}}).default})},function(t,e,n){var o,i;n(60),o=n(62),i=n(63),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(61);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\t:root {\n\t\t--handle-bg: #4a4a4a;\n\t\t--handle-width: 30px;\n\t\t--handle-height: 30px;\n\t\t--handle-chevron-size: 20px;\n\t\t\n\t\t--handle-line-bg: #4a4a4a;\n\t\t--handle-line-width: 2px;\n\t\t--handle-line-height: 100%;\n\t\t\n\t\t--z-index-handle: 5;\n\t\t--z-index-handle-line: 4;\n\t\t--z-index-range-input: 6;\n\t}\n\t\n\t.compare-wrapper {\n\t\tposition: relative;\n\t}\n\t\n\t.compare,\n\t.compare__content {\n\t\tposition: relative;\n\t\theight: 100%;\n\t}\n\t\n\t.compare-overlay.initial,\n\t.compare__content.initial {\n\t\topacity: 0.2;\n\t}\n\t\n\t.compare-overlay,\n\t.compare__content {\n\t\ttransition: opacity .3s ease-in-out;\n\t}\n\t\n\t.compare-overlay {\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t\n\t.compare-overlay__content {\n\t\tposition: relative;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t\n\t.handle__arrow {\n\t\tposition: absolute;\n\t\twidth: var(--handle-chevron-size);\n\t}\n\t\n\t.handle__arrow--l {\n\t\tleft: 0;\n\t}\n\t\n\t.handle__arrow--r {\n\t\tright: 0;\n\t}\n\t\n\t.handle-wrap {\n\t\tdisplay: -ms-flexbox;\n\t\tdisplay: flex;\n\t\t-ms-flex-align: center;\n\t\t align-items: center;\n\t\t-ms-flex-pack: center;\n\t\t justify-content: center;\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\theight: 100%;\n\t\ttransform: translate(-50%, -50%);\n\t\tz-index: var(--z-index-handle);\n\t}\n\t\n\t.handle-icon {\n\t\tdisplay: -ms-flexbox;\n\t\tdisplay: flex;\n\t\t-ms-flex-align: center;\n\t\t align-items: center;\n\t\t-ms-flex-pack: center;\n\t\t justify-content: center;\n\t\tcolor: white;\n\t\tbackground: var(--handle-bg);\n\t\tborder-radius: 50%;\n\t\twidth: var(--handle-width);\n\t\theight: var(--handle-height);\n\t}\n\t\n\t.handle-line {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\twidth: var(--handle-line-width);\n\t\theight: 100%;\n\t\tbackground: var(--handle-line-bg);\n\t\tz-index: var(--z-index-handle-line);\n\t\tpointer-events: none;\n\t\t-webkit-user-select: none;\n\t\t -moz-user-select: none;\n\t\t -ms-user-select: none;\n\t\t user-select: none;\n\t}\n\t\n\t.compare__range {\n\t\tposition: absolute;\n\t\tcursor: ew-resize;\n\t\tleft: calc(var(--handle-width) / -2);\n\t\twidth: calc(100% + var(--handle-width));\n\t\ttransform: translatey(-50%);\n\t\ttop: calc(50%);\n\t\tz-index: var(--z-index-range-input);\n\t\t-webkit-appearance: none;\n\t\theight: var(--handle-height);\n\t\t/* debugging purposes only */\n\t\tbackground: rgba(0, 0, 0, .4);\n\t\topacity: .0;\n\t}\n\t\n\t.object-fit-cover {\n\t\t-o-object-fit: cover;\n\t\t object-fit: cover;\n\t}\n\t\n\t.compare_optimized {\n\t\tright: 5px;\n\t}\n\t\n\t.compare_original {\n\t\tleft: 5px;\n\t}\n\t\n\t.compare_label {\n\t\tposition: absolute;\n\t\tz-index: 999;\n\t\tbackground: #444;\n\t\topacity: 0.6;\n\t\tpadding: 0.5rem;\n\t\tborder-radius: 0.2rem;\n\t\tcolor: #fff;\n\t\ttop: 10px;\n\t\t\n\t}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"image_diff",props:{value:{default:50},first_label:{type:String,default:""},second_label:{type:String,default:""},step:{default:".1"}},data:function(){return{width:null,initial:!1,compareWidth:this.value}},watch:{value:function(){this.compareWidth=this.value}},mounted:function(){this.width=this.getContainerWidth()},methods:{removeInitial:function(){this.initial=!0},handleInput:function(t){this.compareWidth=t.target.value,this.$emit("input",t.target.value)},handleResize:function(){var t=this.getContainerWidth();t!==this.width&&(this.width=t)},getContainerWidth:function(){return window.getComputedStyle(this.$el,null).getPropertyValue("width")}}}},function(t,e){t.exports='\n\t
\n\t\t
\n\t\t\t\n\t\t\t{{this.first_label}}\n\t\t\t{{this.second_label}}\n\t\t\t
\n\t\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t\t
\n\t\t\n\t\n\t
\n'},function(t,e,n){var o=n(65);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n(66).default;i("39e86696",o,!1,{})},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,'/* component style */\n.vue-slider-disabled .vue-slider-process {\n background-color: #a7a7a7; }\n\n.vue-slider-disabled .vue-slider-dot-handle {\n border-color: #a7a7a7; }\n\n.vue-slider-disabled .vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #a7a7a7; }\n\n/* rail style */\n.vue-slider-rail {\n background-color: whitesmoke;\n border-radius: 15px;\n transition: background-color 0.3s; }\n\n.vue-slider:hover .vue-slider-rail {\n background-color: #e1e1e1; }\n\n/* process style */\n.vue-slider-process {\n background-color: #9cd5ff;\n border-radius: 15px;\n transition: background-color 0.3s; }\n\n.vue-slider:hover .vue-slider-process {\n background-color: #69c0ff; }\n\n/* mark style */\n.vue-slider-mark-step {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n box-shadow: 0 0 0 2px #e8e8e8;\n background-color: #fff; }\n\n.vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #9cd5ff; }\n\n.vue-slider:hover .vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #69c0ff; }\n\n.vue-slider-mark-label {\n font-size: 12px;\n white-space: nowrap; }\n\n/* dot style */\n.vue-slider-dot-handle {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #fff;\n border: 2px solid #9cd5ff;\n box-sizing: border-box;\n transition: box-shadow 0.3s, border-color 0.3s; }\n\n.vue-slider:hover .vue-slider-dot-handle {\n border-color: #69c0ff; }\n\n.vue-slider-dot-handle-focus {\n border-color: #36abff;\n box-shadow: 0 0 0 5px rgba(54, 171, 255, 0.2); }\n\n.vue-slider:hover .vue-slider-dot-handle-focus {\n border-color: #36abff; }\n\n.vue-slider-dot-handle:hover {\n border-color: #36abff; }\n\n.vue-slider:hover .vue-slider-dot-handle:hover {\n border-color: #36abff; }\n\n.vue-slider-dot-handle-disabled {\n cursor: not-allowed;\n border-color: #ddd !important; }\n\n.vue-slider-dot-tooltip {\n opacity: 0;\n visibility: hidden;\n transition: all 0.3s; }\n\n.vue-slider-dot-tooltip-inner {\n font-size: 14px;\n white-space: nowrap;\n padding: 6px 8px;\n color: #fff;\n border-radius: 5px;\n border-color: rgba(0, 0, 0, 0.75);\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n transform: scale(0.9);\n transition: transform 0.3s; }\n\n.vue-slider-dot-tooltip-inner::after {\n content: "";\n position: absolute; }\n\n.vue-slider-dot-tooltip-inner-top::after {\n top: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-top-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-bottom::after {\n bottom: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-bottom-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-left::after {\n left: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-left-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-right::after {\n right: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-right-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-top {\n transform-origin: 50% 100%; }\n\n.vue-slider-dot-tooltip-inner-bottom {\n transform-origin: 50% 0; }\n\n.vue-slider-dot-tooltip-inner-left {\n transform-origin: 100% 50%; }\n\n.vue-slider-dot-tooltip-inner-right {\n transform-origin: 0% 50%; }\n\n.vue-slider-dot:hover .vue-slider-dot-tooltip, .vue-slider-dot-tooltip-show {\n opacity: 1;\n visibility: visible; }\n\n.vue-slider-dot:hover .vue-slider-dot-tooltip .vue-slider-dot-tooltip-inner, .vue-slider-dot-tooltip-show .vue-slider-dot-tooltip-inner {\n transform: scale(1); }\n\n/*# sourceMappingURL=antd.css.map */\n',""])},function(t,e,n){"use strict";function o(t,e,n,o){h=n,v=o||{};var a=Object(p.a)(t,e);return i(a),function(e){for(var n=[],o=0;on.parts.length&&(o.parts.length=n.parts.length)}else{for(var a=[],i=0;i\n
\n \n
\n
\n \n
\n\n
\n
\n \n\n\n
\n
\n
\n \n
\n
\n
\n
\n \n {{strings.view_sample_image}}\n \n
\n
\n
\n
{{strings.sample_image_loading}}\n
\n
\n
\n \n \n \n
\n
\n

\n {{( 100 - compressionRatio )}}% smaller

\n

\n {{all_strings.latest_images.same_size}}\n

\n \n \n
\n
\n \n \n \n \n
\n
\n

{{strings.quality_slider_desc}}

\n
\n
\n

{{strings.no_images_found}}

\n
\n
\n\n \n'},function(t,e,n){var o=n(70);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\t.optml-layout-grid .grid-button.is-selected[_v-00c7dc4c] {\n\t\tbackground: #4a4a4a;\n\t}\n\t\n\t.optml-layout-grid .grid-button[_v-00c7dc4c] {\n\t\twidth: 50px;\n\t\theight: 50px;\n\t\tdisplay: inline-block;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tborder-radius: 9px;\n\t\tborder: 5px solid #4a4a4a;\n\t}\n\t\n\t.optml-layout-grid[_v-00c7dc4c] {\n\t\twidth: 200px;\n\t\t\n\t}\n\t#optimole-app .input.is-small.is-tiny[_v-00c7dc4c]{\n\t\twidth:60px;\n\t}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(72),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default={name:"watermarks",components:{FileUpload:i.default},data:function(){return{global:optimoleDashboardApp,startTime:0,maxTime:20,noImages:!0,files:[],is_error:!1,error_message:"",home_url:optimoleDashboardApp.home_url,strings:optimoleDashboardApp.strings.watermarks,watermarkData:[{ID:1,guid:""}],watermarkSettings:this.$store.state.site_settings.watermark,newData:{}}},mounted:function(){this.$store.state.optimizedImages.length>0||(this.selectedWatermark=this.watermarkSettings.id,this.$store.dispatch("retrieveWatermarks",{component:this}))},computed:{watermarkOpacity:{set:function(t){return parseInt(t)<0?(this.$store.commit("updateWatermark",{opacity:0}),void(this.newData.wm_opacity=this.watermarkSettings.opacity)):parseInt(t)>100?(opacity=1,this.$store.commit("updateWatermark",{opacity:1}),void(this.newData.wm_opacity=this.watermarkSettings.opacity)):(this.$store.commit("updateWatermark",{opacity:parseFloat(parseInt(t)/100)}),void(this.newData.wm_opacity=this.watermarkSettings.opacity))},get:function(){return Math.round(100*this.watermarkSettings.opacity)}},watermarkScale:{set:function(t){return parseInt(t)<0?(this.$store.commit("updateWatermark",{scale:0}),void(this.newData.wm_scale=this.watermarkSettings.scale)):parseInt(t)>300?(this.$store.commit("updateWatermark",{scale:3}),void(this.newData.wm_scale=this.watermarkSettings.scale)):(this.$store.commit("updateWatermark",{scale:parseFloat(parseInt(t)/100)}),void(this.newData.wm_scale=this.watermarkSettings.scale))},get:function(){return Math.round(100*this.watermarkSettings.scale)}},watermarkX:{set:function(t){this.$store.commit("updateWatermark",{x_offset:parseInt(t)}),this.newData.wm_x=this.watermarkSettings.x_offset},get:function(){return this.watermarkSettings.x_offset}},watermarkY:{set:function(t){this.$store.commit("updateWatermark",{y_offset:parseInt(t)}),this.newData.wm_y=this.watermarkSettings.y_offset},get:function(){return this.watermarkSettings.y_offset}},selectedWatermark:{set:function(t){this.$store.commit("updateWatermark",{id:parseInt(t)}),this.newData.wm_id=this.watermarkSettings.id},get:function(){return this.watermarkSettings.id}},loading:function(){return this.$store.state.loading}},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.newData})},changePosition:function(t){this.$store.commit("updateWatermark",{position:t}),this.newData.wm_position=this.watermarkSettings.position},isSelectedWatermark:function(t){return this.$store.state.site_settings.watermark.id===t},isActivePosition:function(t){return this.watermarkSettings.position===t},inputFilter:function(t,e,n){if(t&&!e){if(/(\/|^)(Thumbs\.db|desktop\.ini|\..+)$/.test(t.name))return n();if(/\.(php5?|html?|jsx?)$/i.test(t.name))return n()}},inputFile:function(t,e){if(t&&!e&&(this.is_error=!1,this.error_message="",this.$refs.upload.active=!0),t&&e){if(t.response.code&&"error"===t.response.code)return this.is_error=!0,void(this.error_message=t.response.data);this.$store.dispatch("retrieveWatermarks",{component:this})}t&&e&&t.success!==e.success&&this.$refs.upload.clear()},removeWatermark:function(t){this.$store.dispatch("removeWatermark",{postID:t,component:this})}}}},function(t,e,n){/*! +function(t){return t&&"object"==typeof t&&"default"in t?t.default:t}(n("8bbf")),u="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys,f={__proto__:[]},h=f instanceof Array,b=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];d.registerHooks=function(t){b.push.apply(b,t)},e.default=d,e.createDecorator=a,e.mixins=r},"8bbf":function(e,n){e.exports=t},ae61:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider-dot{position:absolute;will-change:transform;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""])},d5ac:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""])},df80:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-ms-touch-action:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-disabled{pointer-events:none}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}.vue-slider-sr-only{clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden;position:absolute!important}",""])},fb15:function(t,e,n){"use strict";function o(t,e,n,o){var i,a=arguments.length,r=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(r=(a<3?i(r):a>3?i(e,n,r):i(e,n))||r);return a>3&&r&&Object.defineProperty(e,n,r),r}function i(t,e,n){ut&&(Array.isArray(t)||"function"==typeof t||void 0!==t.type||(t.type=Reflect.getMetadata("design:type",e,n)))}function a(t){return void 0===t&&(t={}),function(e,n){i(t,e,n),Object(dt.createDecorator)(function(e,n){(e.props||(e.props={}))[n]=t})(e,n)}}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n-1},required:!0})],ft.prototype,"tooltipPlacement",void 0),o([a({type:[String,Function]})],ft.prototype,"tooltipFormatter",void 0),o([a({type:Boolean,default:!1})],ft.prototype,"focus",void 0),o([a({default:!1})],ft.prototype,"disabled",void 0),ft=o([mt.a],ft);var ht=ft;n("556c");var bt=function(t){function e(){return b(this,e),x(this,w(e).apply(this,arguments))}return k(e,t),g(e,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle,e.style,e.active?this.stepActiveStyle:null,e.active?e.activeStyle:null]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle,e.labelStyle,e.active?this.labelActiveStyle:null,e.active?e.labelActiveStyle:null],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),e}(ct.a);o([a({required:!0})],bt.prototype,"mark",void 0),o([a(Boolean)],bt.prototype,"hideLabel",void 0),o([a()],bt.prototype,"stepStyle",void 0),o([a()],bt.prototype,"stepActiveStyle",void 0),o([a()],bt.prototype,"labelStyle",void 0),o([a()],bt.prototype,"labelActiveStyle",void 0),bt=o([mt.a],bt);var vt,gt=bt,xt=function(t){return"number"==typeof t?"".concat(t,"px"):t},yt=function(t){var e=document.documentElement,n=document.body,o=t.getBoundingClientRect();return{y:o.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||n.clientTop||0),x:o.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}},wt=function(t,e,n){var o="targetTouches"in t?t.targetTouches[0]:t,i=yt(e),a={x:o.pageX-i.x,y:o.pageY-i.y};return{x:n?e.offsetWidth-a.x:a.x,y:n?e.offsetHeight-a.y:a.y}};!function(t){t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(vt||(vt={}));var kt,_t,Ct=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case vt.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case vt.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case vt.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case vt.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case vt.END:return function(){return e.max};case vt.HOME:return function(){return e.min};case vt.PAGE_UP:return function(t){return t+10};case vt.PAGE_DOWN:return function(t){return t-10};default:return null}},Ot=function(){function t(e){C(this,t),this.num=e}return S(t,[{key:"decimal",value:function(t,e){var n=this.num,o=this.getDecimalLen(n),i=this.getDecimalLen(t),a=0;switch(e){case"+":a=this.getExponent(o,i),this.num=(this.safeRoundUp(n,a)+this.safeRoundUp(t,a))/a;break;case"-":a=this.getExponent(o,i),this.num=(this.safeRoundUp(n,a)-this.safeRoundUp(t,a))/a;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(o)),this.safeRoundUp(t,this.getExponent(i)))/this.getExponent(o+i);break;case"/":a=this.getExponent(o,i),this.num=this.safeRoundUp(n,a)/this.safeRoundUp(t,a);break;case"%":a=this.getExponent(o,i),this.num=this.safeRoundUp(n,a)%this.safeRoundUp(t,a)/a}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){return("".concat(t).split(".")[1]||"").length}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();!function(t){t[t.VALUE=1]="VALUE",t[t.INTERVAL=2]="INTERVAL",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX",t[t.ORDER=5]="ORDER"}(_t||(_t={}));var St=(kt={},N(kt,_t.VALUE,'The type of the "value" is illegal'),N(kt,_t.INTERVAL,'The prop "interval" is invalid, "(max - min)" cannot be divisible by "interval"'),N(kt,_t.MIN,'The "value" cannot be less than the minimum.'),N(kt,_t.MAX,'The "value" cannot be greater than the maximum.'),N(kt,_t.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),kt),zt=function(){function t(e){M(this,t),this.dotsPos=[],this.dotsValue=[],this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(_t.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return L(t,[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?T(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,n=this.order?T(t).sort(function(t,e){return t-e}):t;this.dotsPos=n,this.setDotsValue(n.map(function(t){return e.getValueByPos(t)}),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var n=100;this.markList.forEach(function(o){var i=Math.abs(o.pos-t);ithis.total&&(t=this.total),this.data?this.data[t]:new Ot(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){t=this.getValidPos(t,e).pos;var n=t-this.dotsPos[e];if(n){var o=new Array(this.dotsPos.length);this.fixed?o=this.getFixedChangePosArr(n,e):this.minRange||this.maxRange?o=this.getLimitRangeChangePosArr(t,n,e):o[e]=n,this.setDotsPos(this.dotsPos.map(function(t,e){return t+(o[e]||0)}))}}},{key:"getFixedChangePosArr",value:function(t,e){var n=this;return this.dotsPos.forEach(function(o,i){if(i!==e){var a=n.getValidPos(o+t,i),r=a.pos;a.inRange||(t=Math.min(Math.abs(r-o),Math.abs(t))*(t<0?-1:1))}}),this.dotsPos.map(function(e){return t})}},{key:"getLimitRangeChangePosArr",value:function(t,e,n){var o=this,i=[{index:n,changePos:e}],a=e;return[this.minRange,this.maxRange].forEach(function(r,s){if(!r)return!1;var l=0===s,p=e>0,c=0;c=l?p?1:-1:p?-1:1;for(var d=n+c,m=o.dotsPos[d],u=t;o.isPos(m)&&function(t,e){var n=Math.abs(t-e);return l?no.maxRangeDir}(m,u);){var f=o.getValidPos(m+a,d),h=f.pos;i.push({index:d,changePos:h-m}),d+=c,u=h,m=o.dotsPos[d]}}),this.dotsPos.map(function(t,e){var n=i.filter(function(t){return t.index===e});return n.length?n[0].changePos:0})}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e],o=!0;return tn[1]&&(t=n[1],o=!1),{pos:t,inRange:o}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)this.max)return this.emitError(_t.MAX),0;if("number"!=typeof t||t!==t)return this.emitError(_t.VALUE),0;t=new Ot(t).minus(this.min).divide(this.interval).toNumber()}var e=new Ot(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some(function(e){var n=A(e,2),o=n[0],i=n[1];return t>=o&&t<=i})}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new Ot(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"emitError",value:function(t){this.onError&&this.onError(t,St[t])}},{key:"getDotRange",value:function(t,e,n){if(!this.dotOptions)return n;var o=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return o&&void 0!==o[e]?this.parseValue(o[e]):n}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,n){var o=t.parseValue(e);return z({pos:o,value:e,label:e,active:t.isActiveByPos(o)},n)};return!0===this.marks?this.getValues().map(function(t){return e(t)}):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort(function(t,e){return+t-+e}).map(function(n){var o=t.marks[n];return e(n,"string"!=typeof o?o:{label:o})}):Array.isArray(this.marks)?this.marks.map(function(t){return e(t)}):"function"==typeof this.marks?this.getValues().map(function(e){return{value:e,result:t.marks(e)}}).filter(function(t){return!!t.result}).map(function(t){var n=t.value,o=t.result;return e(n,o)}):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,T(this.dotsPos)),Math.max.apply(Math,T(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return t=this.data?this.data.length-1:new Ot(this.max).minus(this.min).divide(this.interval).toNumber(),t-Math.floor(t)!=0?(this.emitError(_t.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.minRange?this.minRange*this.gap:0}},{key:"maxRangeDir",get:function(){return this.maxRange?this.maxRange*this.gap:100}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,n=[];return e.forEach(function(o,i){n.push([Math.max(t.minRange?t.minRangeDir*i:0,t.enableCross?0:e[i-1]||0,t.getDotRange(i,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-i):100,t.enableCross?100:e[i+1]||100,t.getDotRange(i,"max",100))])}),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map(function(e){return t.getIndexByValue(e)})}}]),t}(),At=function(){function t(e){F(this,t),this.states=0,this.map=e}return U(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();n("4abb");var jt={None:0,Drag:2,Focus:4},$t=function(t){function e(){var t;return tt(this,e),t=ot(this,at(e).apply(this,arguments)),t.states=new At(jt),t.scale=1,t.focusDotIndex=0,t}return rt(e,t),nt(e,[{key:"onValueChanged",value:function(){!this.states.has(jt.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new Ot(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new zt({value:this.value,data:this.data,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.marks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach(function(e){t.$watch(e,function(n){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(n)&&t.control.data.length===n.length&&n.every(function(e,n){return e===t.control.data[n]}))return!1;t.control[e]=n,["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()})})}},{key:"isDisabledByDotIndex",value:function(t){return this.dots[t].disabled}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:J(t))}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some(function(t,n){return t!==e[n]})}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(jt.Drag),this.states.add(jt.Focus),this.$emit("drag-start")}},{key:"dragMove",value:function(t){if(!this.states.has(jt.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:J(n))}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,n=t;n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(jt.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(jt.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?J(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,n=Array.isArray(t)?t.map(function(t){return e.control.getValueByIndex(t)}):this.control.getValueByIndex(t);this.setValue(n)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.isDisabledByDotIndex(n))return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(jt.Focus),setTimeout(function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()})}},{key:"keydownHandle",value:function(t){if(!this.useKeyboard||!this.states.has(jt.Focus))return!1;var e=Ct(t,{direction:this.direction,max:this.control.total,min:0,hook:this.keydownHook});if(e){t.preventDefault();var n=this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex]),o=e(n),i=this.control.parseValue(this.control.getValueByIndex(o));this.isCrossDot(i),this.control.setDotPos(i,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return wt(t,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,o){var i=this.$createElement,a=this.$scopedSlots[t];return a?o?a(e):i("template",{slot:t},[a(e)]):n}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",{ref:"container",class:this.containerClasses,style:this.containerStyles,attrs:{"aria-hidden":!0},on:{click:this.clickHandle}},[e("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map(function(n,o){return t.renderSlot("process",n,e("div",{class:"vue-slider-process",key:"process-".concat(o),style:n.style}),!0)}),this.marks?e("div",{class:"vue-slider-marks"},[this.control.markList.map(function(n,o){var i;return t.renderSlot("mark",n,e("vue-slider-mark",{key:"mark-".concat(o),attrs:{mark:n,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(i={},X(i,t.isHorizontal?"height":"width","100%"),X(i,t.isHorizontal?"width":"height",t.tailSize),X(i,t.mainDirection,"".concat(n.pos,"%")),i),on:{pressLabel:function(e){return t.setValueByPos(e)}}},[t.renderSlot("step",n,null),t.renderSlot("label",n,null)]),!0)})]):null,this.dots.map(function(n,o){var i;return e("vue-slider-dot",{ref:"dot-".concat(o),key:"dot-".concat(o),attrs:{value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.tooltipFormatter)?t.tooltipFormatter[o]:t.tooltipFormatter,"tooltip-placement":t.tooltipDirections[o]},style:[t.dotBaseStyle,(i={},X(i,t.mainDirection,"".concat(n.pos,"%")),X(i,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),i)],on:{"drag-start":function(){return t.dragStart(o)}}},[t.renderSlot("dot",n,null),t.renderSlot("tooltip",n,null)])})]),1!==this.dots.length||this.data?null:e("input",{class:"vue-slider-sr-only",attrs:{type:"range",min:this.min,max:this.max},domProps:{value:this.value}})])}},{key:"tailSize",get:function(){return xt((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],e=V(t,2),n=e[0],o=e[1],i=this.width?xt(this.width):this.isHorizontal?"auto":xt(4),a=this.height?xt(this.height):this.isHorizontal?xt(4):"auto";return{padding:this.contained?"".concat(o/2,"px ").concat(n/2,"px"):this.isHorizontal?"".concat(o/2,"px 0"):"0 ".concat(n/2,"px"),width:i,height:a}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map(function(e){var n,o=V(e,3),i=o[0],a=o[1],r=o[2];if(i>a){var s=[a,i];i=s[0],a=s[1]}var l=t.isHorizontal?"width":"height";return{start:i,end:a,style:H((n={},X(n,t.isHorizontal?"height":"width","100%"),X(n,t.isHorizontal?"top":"left",0),X(n,t.mainDirection,"".concat(i,"%")),X(n,l,"".concat(a-i,"%")),X(n,"transitionProperty","".concat(l,",").concat(t.mainDirection)),X(n,"transitionDuration","".concat(t.animateTime,"s")),n),t.processStyle,r)}})}},{key:"dotBaseStyle",get:function(){var t,e=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],n=V(e,2),o=n[0],i=n[1];return t=this.isHorizontal?X({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):X({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),H({width:"".concat(o,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map(function(){return t})}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map(function(e,n){return H({pos:e,index:n,value:t.control.dotsValue[n],focus:t.states.has(jt.Focus)&&t.focusDotIndex===n,disabled:!1,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[n]:t.dotOptions)||{})})}},{key:"animateTime",get:function(){return this.states.has(jt.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some(function(e,n){return e!==t[n]}):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),e}(ct.a);o([function(t,e){return void 0===e&&(e={}),function(n,o){i(e,n,o),Object(dt.createDecorator)(function(n,o){(n.props||(n.props={}))[o]=e,n.model={prop:o,event:t||o}})(n,o)}}("change",{default:0})],$t.prototype,"value",void 0),o([a({type:Boolean,default:!1})],$t.prototype,"silent",void 0),o([a({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],$t.prototype,"direction",void 0),o([a({type:[Number,String]})],$t.prototype,"width",void 0),o([a({type:[Number,String]})],$t.prototype,"height",void 0),o([a({default:14})],$t.prototype,"dotSize",void 0),o([a({default:!1})],$t.prototype,"contained",void 0),o([a({type:Number,default:0})],$t.prototype,"min",void 0),o([a({type:Number,default:100})],$t.prototype,"max",void 0),o([a({type:Number,default:1})],$t.prototype,"interval",void 0),o([a({type:Boolean,default:!1})],$t.prototype,"disabled",void 0),o([a({type:Boolean,default:!0})],$t.prototype,"clickable",void 0),o([a({type:Number,default:.5})],$t.prototype,"duration",void 0),o([a(Array)],$t.prototype,"data",void 0),o([a({type:Boolean,default:!1})],$t.prototype,"lazy",void 0),o([a({type:String,validator:function(t){return["none","always","focus"].indexOf(t)>-1},default:"focus"})],$t.prototype,"tooltip",void 0),o([a({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every(function(t){return["top","right","bottom","left"].indexOf(t)>-1})}})],$t.prototype,"tooltipPlacement",void 0),o([a({type:[String,Array,Function]})],$t.prototype,"tooltipFormatter",void 0),o([a({type:Boolean,default:!1})],$t.prototype,"useKeyboard",void 0),o([a({type:Function,default:function(){return!1}})],$t.prototype,"keydownHook",void 0),o([a({type:Boolean,default:!0})],$t.prototype,"enableCross",void 0),o([a({type:Boolean,default:!1})],$t.prototype,"fixed",void 0),o([a({type:Boolean,default:!0})],$t.prototype,"order",void 0),o([a(Number)],$t.prototype,"minRange",void 0),o([a(Number)],$t.prototype,"maxRange",void 0),o([a({type:[Boolean,Object,Array,Function],default:!1})],$t.prototype,"marks",void 0),o([a({type:[Boolean,Function],default:!0})],$t.prototype,"process",void 0),o([a(Boolean)],$t.prototype,"included",void 0),o([a(Boolean)],$t.prototype,"adsorb",void 0),o([a(Boolean)],$t.prototype,"hideLabel",void 0),o([a()],$t.prototype,"dotOptions",void 0),o([a()],$t.prototype,"railStyle",void 0),o([a()],$t.prototype,"processStyle",void 0),o([a()],$t.prototype,"dotStyle",void 0),o([a()],$t.prototype,"tooltipStyle",void 0),o([a()],$t.prototype,"stepStyle",void 0),o([a()],$t.prototype,"stepActiveStyle",void 0),o([a()],$t.prototype,"labelStyle",void 0),o([a()],$t.prototype,"labelActiveStyle",void 0),o([function(t,e){void 0===e&&(e={});var n=e.deep,o=void 0!==n&&n,i=e.immediate,a=void 0!==i&&i;return Object(dt.createDecorator)(function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var i=e.watch;"object"!=typeof i[t]||Array.isArray(i[t])?void 0===i[t]&&(i[t]=[]):i[t]=[i[t]],i[t].push({handler:n,deep:o,immediate:a})})}("value")],$t.prototype,"onValueChanged",null),$t=o([mt()({data:function(){return{control:null}},components:{VueSliderDot:ht,VueSliderMark:gt},inheritAttrs:!1})],$t);var Et=$t,Tt=Et;n.d(e,"ERROR_TYPE",function(){return _t}),e.default=Tt}}).default})},function(t,e,n){var o,i;n(60),o=n(62),i=n(63),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(61);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\t:root {\n\t\t--handle-bg: #4a4a4a;\n\t\t--handle-width: 30px;\n\t\t--handle-height: 30px;\n\t\t--handle-chevron-size: 20px;\n\t\t\n\t\t--handle-line-bg: #4a4a4a;\n\t\t--handle-line-width: 2px;\n\t\t--handle-line-height: 100%;\n\t\t\n\t\t--z-index-handle: 5;\n\t\t--z-index-handle-line: 4;\n\t\t--z-index-range-input: 6;\n\t}\n\t\n\t.compare-wrapper {\n\t\tposition: relative;\n\t}\n\t\n\t.compare,\n\t.compare__content {\n\t\tposition: relative;\n\t\theight: 100%;\n\t}\n\t\n\t.compare-overlay.initial,\n\t.compare__content.initial {\n\t\topacity: 0.2;\n\t}\n\t\n\t.compare-overlay,\n\t.compare__content {\n\t\ttransition: opacity .3s ease-in-out;\n\t}\n\t\n\t.compare-overlay {\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t\n\t.compare-overlay__content {\n\t\tposition: relative;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t\n\t.handle__arrow {\n\t\tposition: absolute;\n\t\twidth: var(--handle-chevron-size);\n\t}\n\t\n\t.handle__arrow--l {\n\t\tleft: 0;\n\t}\n\t\n\t.handle__arrow--r {\n\t\tright: 0;\n\t}\n\t\n\t.handle-wrap {\n\t\tdisplay: -ms-flexbox;\n\t\tdisplay: flex;\n\t\t-ms-flex-align: center;\n\t\t align-items: center;\n\t\t-ms-flex-pack: center;\n\t\t justify-content: center;\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\theight: 100%;\n\t\ttransform: translate(-50%, -50%);\n\t\tz-index: var(--z-index-handle);\n\t}\n\t\n\t.handle-icon {\n\t\tdisplay: -ms-flexbox;\n\t\tdisplay: flex;\n\t\t-ms-flex-align: center;\n\t\t align-items: center;\n\t\t-ms-flex-pack: center;\n\t\t justify-content: center;\n\t\tcolor: white;\n\t\tbackground: var(--handle-bg);\n\t\tborder-radius: 50%;\n\t\twidth: var(--handle-width);\n\t\theight: var(--handle-height);\n\t}\n\t\n\t.handle-line {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\twidth: var(--handle-line-width);\n\t\theight: 100%;\n\t\tbackground: var(--handle-line-bg);\n\t\tz-index: var(--z-index-handle-line);\n\t\tpointer-events: none;\n\t\t-webkit-user-select: none;\n\t\t -moz-user-select: none;\n\t\t -ms-user-select: none;\n\t\t user-select: none;\n\t}\n\t\n\t.compare__range {\n\t\tposition: absolute;\n\t\tcursor: ew-resize;\n\t\tleft: calc(var(--handle-width) / -2);\n\t\twidth: calc(100% + var(--handle-width));\n\t\ttransform: translatey(-50%);\n\t\ttop: calc(50%);\n\t\tz-index: var(--z-index-range-input);\n\t\t-webkit-appearance: none;\n\t\theight: var(--handle-height);\n\t\t/* debugging purposes only */\n\t\tbackground: rgba(0, 0, 0, .4);\n\t\topacity: .0;\n\t}\n\t\n\t.object-fit-cover {\n\t\t-o-object-fit: cover;\n\t\t object-fit: cover;\n\t}\n\t\n\t.compare_optimized {\n\t\tright: 5px;\n\t}\n\t\n\t.compare_original {\n\t\tleft: 5px;\n\t}\n\t\n\t.compare_label {\n\t\tposition: absolute;\n\t\tz-index: 999;\n\t\tbackground: #444;\n\t\topacity: 0.6;\n\t\tpadding: 0.5rem;\n\t\tborder-radius: 0.2rem;\n\t\tcolor: #fff;\n\t\ttop: 10px;\n\t\t\n\t}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"image_diff",props:{value:{default:50},first_label:{type:String,default:""},second_label:{type:String,default:""},step:{default:".1"}},data:function(){return{width:null,initial:!1,compareWidth:this.value}},watch:{value:function(){this.compareWidth=this.value}},mounted:function(){this.width=this.getContainerWidth()},methods:{removeInitial:function(){this.initial=!0},handleInput:function(t){this.compareWidth=t.target.value,this.$emit("input",t.target.value)},handleResize:function(){var t=this.getContainerWidth();t!==this.width&&(this.width=t)},getContainerWidth:function(){return window.getComputedStyle(this.$el,null).getPropertyValue("width")}}}},function(t,e){t.exports='\n\t
\n\t\t
\n\t\t\t\n\t\t\t{{this.first_label}}\n\t\t\t{{this.second_label}}\n\t\t\t
\n\t\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t\t
\n\t\t\n\t\n\t
\n'},function(t,e,n){var o=n(65);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n(66).default;i("39e86696",o,!1,{})},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,'/* component style */\n.vue-slider-disabled .vue-slider-process {\n background-color: #a7a7a7; }\n\n.vue-slider-disabled .vue-slider-dot-handle {\n border-color: #a7a7a7; }\n\n.vue-slider-disabled .vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #a7a7a7; }\n\n/* rail style */\n.vue-slider-rail {\n background-color: whitesmoke;\n border-radius: 15px;\n transition: background-color 0.3s; }\n\n.vue-slider:hover .vue-slider-rail {\n background-color: #e1e1e1; }\n\n/* process style */\n.vue-slider-process {\n background-color: #9cd5ff;\n border-radius: 15px;\n transition: background-color 0.3s; }\n\n.vue-slider:hover .vue-slider-process {\n background-color: #69c0ff; }\n\n/* mark style */\n.vue-slider-mark-step {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n box-shadow: 0 0 0 2px #e8e8e8;\n background-color: #fff; }\n\n.vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #9cd5ff; }\n\n.vue-slider:hover .vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #69c0ff; }\n\n.vue-slider-mark-label {\n font-size: 12px;\n white-space: nowrap; }\n\n/* dot style */\n.vue-slider-dot-handle {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #fff;\n border: 2px solid #9cd5ff;\n box-sizing: border-box;\n transition: box-shadow 0.3s, border-color 0.3s; }\n\n.vue-slider:hover .vue-slider-dot-handle {\n border-color: #69c0ff; }\n\n.vue-slider-dot-handle-focus {\n border-color: #36abff;\n box-shadow: 0 0 0 5px rgba(54, 171, 255, 0.2); }\n\n.vue-slider:hover .vue-slider-dot-handle-focus {\n border-color: #36abff; }\n\n.vue-slider-dot-handle:hover {\n border-color: #36abff; }\n\n.vue-slider:hover .vue-slider-dot-handle:hover {\n border-color: #36abff; }\n\n.vue-slider-dot-handle-disabled {\n cursor: not-allowed;\n border-color: #ddd !important; }\n\n.vue-slider-dot-tooltip {\n opacity: 0;\n visibility: hidden;\n transition: all 0.3s; }\n\n.vue-slider-dot-tooltip-inner {\n font-size: 14px;\n white-space: nowrap;\n padding: 6px 8px;\n color: #fff;\n border-radius: 5px;\n border-color: rgba(0, 0, 0, 0.75);\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n transform: scale(0.9);\n transition: transform 0.3s; }\n\n.vue-slider-dot-tooltip-inner::after {\n content: "";\n position: absolute; }\n\n.vue-slider-dot-tooltip-inner-top::after {\n top: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-top-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-bottom::after {\n bottom: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-bottom-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-left::after {\n left: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-left-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-right::after {\n right: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-right-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-top {\n transform-origin: 50% 100%; }\n\n.vue-slider-dot-tooltip-inner-bottom {\n transform-origin: 50% 0; }\n\n.vue-slider-dot-tooltip-inner-left {\n transform-origin: 100% 50%; }\n\n.vue-slider-dot-tooltip-inner-right {\n transform-origin: 0% 50%; }\n\n.vue-slider-dot:hover .vue-slider-dot-tooltip, .vue-slider-dot-tooltip-show {\n opacity: 1;\n visibility: visible; }\n\n.vue-slider-dot:hover .vue-slider-dot-tooltip .vue-slider-dot-tooltip-inner, .vue-slider-dot-tooltip-show .vue-slider-dot-tooltip-inner {\n transform: scale(1); }\n\n/*# sourceMappingURL=antd.css.map */\n',""])},function(t,e,n){"use strict";function o(t,e,n,o){h=n,v=o||{};var a=Object(p.a)(t,e);return i(a),function(e){for(var n=[],o=0;on.parts.length&&(o.parts.length=n.parts.length)}else{for(var a=[],i=0;i\n
\n \n
\n
\n \n
\n\n
\n
\n \n\n\n
\n
\n
\n \n
\n
\n
\n
\n \n {{strings.view_sample_image}}\n \n
\n
\n
\n
{{strings.sample_image_loading}}\n
\n
\n
\n \n \n \n
\n
\n

\n {{( 100 - compressionRatio )}}% smaller

\n

\n {{all_strings.latest_images.same_size}}\n

\n \n \n
\n
\n \n \n \n \n
\n
\n

{{strings.quality_slider_desc}}

\n
\n
\n

{{strings.no_images_found}}

\n
\n
\n\n \n'},function(t,e,n){var o=n(70);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\t.optml-layout-grid .grid-button.is-selected[_v-00c7dc4c] {\n\t\tbackground: #4a4a4a;\n\t}\n\t\n\t.optml-layout-grid .grid-button[_v-00c7dc4c] {\n\t\twidth: 50px;\n\t\theight: 50px;\n\t\tdisplay: inline-block;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tborder-radius: 9px;\n\t\tborder: 5px solid #4a4a4a;\n\t}\n\t\n\t.optml-layout-grid[_v-00c7dc4c] {\n\t\twidth: 200px;\n\t\t\n\t}\n\t#optimole-app .input.is-small.is-tiny[_v-00c7dc4c]{\n\t\twidth:60px;\n\t}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(72),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default={name:"watermarks",components:{FileUpload:i.default},data:function(){return{global:optimoleDashboardApp,startTime:0,maxTime:20,noImages:!0,files:[],is_error:!1,error_message:"",home_url:optimoleDashboardApp.home_url,strings:optimoleDashboardApp.strings.watermarks,watermarkData:[{ID:1,guid:""}],watermarkSettings:this.$store.state.site_settings.watermark,newData:{}}},mounted:function(){this.$store.state.optimizedImages.length>0||(this.selectedWatermark=this.watermarkSettings.id,this.$store.dispatch("retrieveWatermarks",{component:this}))},computed:{watermarkOpacity:{set:function(t){return parseInt(t)<0?(this.$store.commit("updateWatermark",{opacity:0}),void(this.newData.wm_opacity=this.watermarkSettings.opacity)):parseInt(t)>100?(opacity=1,this.$store.commit("updateWatermark",{opacity:1}),void(this.newData.wm_opacity=this.watermarkSettings.opacity)):(this.$store.commit("updateWatermark",{opacity:parseFloat(parseInt(t)/100)}),void(this.newData.wm_opacity=this.watermarkSettings.opacity))},get:function(){return Math.round(100*this.watermarkSettings.opacity)}},watermarkScale:{set:function(t){return parseInt(t)<0?(this.$store.commit("updateWatermark",{scale:0}),void(this.newData.wm_scale=this.watermarkSettings.scale)):parseInt(t)>300?(this.$store.commit("updateWatermark",{scale:3}),void(this.newData.wm_scale=this.watermarkSettings.scale)):(this.$store.commit("updateWatermark",{scale:parseFloat(parseInt(t)/100)}),void(this.newData.wm_scale=this.watermarkSettings.scale))},get:function(){return Math.round(100*this.watermarkSettings.scale)}},watermarkX:{set:function(t){this.$store.commit("updateWatermark",{x_offset:parseInt(t)}),this.newData.wm_x=this.watermarkSettings.x_offset},get:function(){return this.watermarkSettings.x_offset}},watermarkY:{set:function(t){this.$store.commit("updateWatermark",{y_offset:parseInt(t)}),this.newData.wm_y=this.watermarkSettings.y_offset},get:function(){return this.watermarkSettings.y_offset}},selectedWatermark:{set:function(t){this.$store.commit("updateWatermark",{id:parseInt(t)}),this.newData.wm_id=this.watermarkSettings.id},get:function(){return this.watermarkSettings.id}},loading:function(){return this.$store.state.loading}},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.newData})},changePosition:function(t){this.$store.commit("updateWatermark",{position:t}),this.newData.wm_position=this.watermarkSettings.position},isSelectedWatermark:function(t){return this.$store.state.site_settings.watermark.id===t},isActivePosition:function(t){return this.watermarkSettings.position===t},inputFilter:function(t,e,n){if(t&&!e){if(/(\/|^)(Thumbs\.db|desktop\.ini|\..+)$/.test(t.name))return n();if(/\.(php5?|html?|jsx?)$/i.test(t.name))return n()}},inputFile:function(t,e){if(t&&!e&&(this.is_error=!1,this.error_message="",this.$refs.upload.active=!0),t&&e){if(t.response.code&&"error"===t.response.code)return this.is_error=!0,void(this.error_message=t.response.data);this.$store.dispatch("retrieveWatermarks",{component:this})}t&&e&&t.success!==e.success&&this.$refs.upload.clear()},removeWatermark:function(t){this.$store.dispatch("removeWatermark",{postID:t,component:this})}}}},function(t,e,n){/*! * Name: vue-upload-component * Version: 2.8.19 * Author: LianYue */ -!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){var e=a(t);return r(e,t.body)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(){var t=document.head||document.getElementsByTagName("head")[0],e=n.styles||(n.styles={}),o="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(n,i){if(!document.querySelector('style[data-vue-ssr-id~="'+n+'"]')){var a=o?i.media||"default":n,r=e[a]||(e[a]={ids:[],parts:[],element:void 0});if(!r.ids.includes(n)){var s=i.source,l=r.ids.length;if(r.ids.push(n),i.map&&(s+="\n/*# sourceURL="+i.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),o&&(r.element=r.element||document.querySelector("style[data-group="+a+"]")),!r.element){var p=r.element=document.createElement("style");p.type="text/css",i.media&&p.setAttribute("media",i.media),o&&(p.setAttribute("data-group",a),p.setAttribute("data-next-index","0")),t.appendChild(p)}if(o&&(l=parseInt(r.element.getAttribute("data-next-index")),r.element.setAttribute("data-next-index",l+1)),r.element.styleSheet)r.parts.push(s),r.element.styleSheet.cssText=r.parts.filter(Boolean).join("\n");else{var c=document.createTextNode(s),d=r.element.childNodes;d[l]&&r.element.removeChild(d[l]),d.length?r.element.insertBefore(c,d[l]):r.element.appendChild(c)}}}}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=200&&t.status<300){var e;try{e=JSON.parse(t.response)}catch(n){e=t.response}n(e)}else o(t.response)},t.onerror=function(){return o(t.response)},t.send(JSON.stringify(e))})},s=function(t,e){var n=new FormData;for(var o in e)n.append(o,e[o]);return new Promise(function(e,o){t.onload=function(){if(t.status>=200&&t.status<300){var n;try{n=JSON.parse(t.response)}catch(e){n=t.response}e(n)}else o(t.response)},t.onerror=function(){return o(t.response)},t.send(n)})},l=function(){function t(t,e){for(var n=0;n0}},{key:"chunksUploading",get:function(){return this.chunks.filter(function(t){return!!t.xhr&&!!t.active})}},{key:"chunksUploaded",get:function(){return this.chunks.filter(function(t){return!!t.uploaded})}}]),n}(),c={methods:{change:function(t){this.$parent.addInputFile(t.target),t.target.files?(t.target.value="",/safari/i.test(navigator.userAgent)||(t.target.type="",t.target.type="file")):(this.$destroy(),new this.constructor({parent:this.$parent,el:this.$el}))}}},d=c,m=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"file",name:t.$parent.name,id:t.$parent.inputId||t.$parent.name,accept:t.$parent.accept,capture:t.$parent.capture,disabled:t.$parent.disabled,webkitdirectory:t.$parent.directory&&t.$parent.features.directory,directory:t.$parent.directory&&t.$parent.features.directory,multiple:t.$parent.multiple&&t.$parent.features.html5},on:{change:t.change}})},u=[],f=function(t,e,n,o,i,a,r,s){var l=("function"==typeof n?n.options:n)||{};return l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=o,l}({render:m,staticRenderFns:u},void 0,d,void 0,!1,void 0,n,void 0),h=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this.addIndex,n=t,o=n instanceof Array;o||(n=[n]);for(var i=[],a=0;a1&&i.length+this.files.length>=this.maximum)break;if(i.push(r),1===this.maximum)break}}if(!i.length)return!1;1===this.maximum&&this.clear();var l=void 0;if(!0===e||0===e)l=i.concat(this.files);else if(e){var p;l=this.files.concat([]),(p=l).splice.apply(p,[e,0].concat(i))}else l=this.files.concat(i);this.files=l;for(var c=0;c0&&n.length>=e.maximum)return t(e.add(n));e.getEntry(s).then(function(t){n.push.apply(n,o(t)),a(r+1)})}(0)})}if(t.files.length){for(var s=0;s0&&n.length>=this.maximum));s++);return Promise.resolve(this.add(n))}return Promise.resolve([])},getEntry:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise(function(i,a){if(t.isFile)t.file(function(t){i([{size:t.size,name:n+t.name,type:t.type,file:t}])});else if(t.isDirectory&&e.dropDirectory){var r=[],s=t.createReader();!function a(){s.readEntries(function(s){!function l(p){return!s[p]&&0===p||e.maximum>0&&r.length>=e.maximum?i(r):s[p]?void e.getEntry(s[p],n+t.name+"/").then(function(t){r.push.apply(r,o(t)),l(p+1)}):a()}(0)})}()}else i([])})},replace:function(t,e){var n=this.get(t),o=this.get(e);if(!n||!o||n===o)return!1;var i=this.files.concat([]),a=i.indexOf(n),r=i.indexOf(o);return-1!==a&&-1!==r&&(i[a]=o,i[r]=n,this.files=i,this.emitInput(),!0)},remove:function(t){var e=this.get(t);if(e){if(this.emitFilter(void 0,e))return!1;var n=this.files.concat([]),o=n.indexOf(e);if(-1===o)return console.error("remove",e),!1;n.splice(o,1),this.files=n,delete this.maps[e.id],this.emitInput(),this.emitFile(void 0,e)}return e},update:function(t,e){var n=this.get(t);if(n){var o=h({},n,e);if(!n.fileObject||!n.active||o.active||o.error||o.success||(o.error="abort"),this.emitFilter(o,n))return!1;var i=this.files.concat([]),a=i.indexOf(n);return-1===a?(console.error("update",n),!1):(i.splice(a,1,o),this.files=i,delete this.maps[n.id],this.maps[o.id]=o,this.emitInput(),this.emitFile(o,n),o)}return!1},emitFilter:function(t,e){var n=!1;return this.$emit("input-filter",t,e,function(){return n=!0}),n},emitFile:function(t,e){this.$emit("input-file",t,e),!(t&&t.fileObject&&t.active)||e&&e.active?t&&t.fileObject&&t.active||!e||!e.fileObject||!e.active||this.uploading--:(this.uploading++,this.$nextTick(function(){var e=this;setTimeout(function(){e.upload(t).then(function(){(t=e.get(t))&&t.fileObject&&e.update(t,{active:!1,success:!t.error})}).catch(function(n){e.update(t,{active:!1,success:!1,error:n.code||n.error||n.message||n})})},parseInt(50*Math.random()+50,10))})),!this.active||Boolean(t)===Boolean(e)&&t.active===e.active||this.watchActive(!0)},emitInput:function(){this.$emit("input",this.files)},upload:function(t){var e=this.get(t);if(!e)return Promise.reject("not_exists");if(!e.fileObject)return Promise.reject("file_object");if(e.error)return Promise.reject(e.error);if(e.success)return Promise.resolve(e);var n=this.extensions;if(n&&(n.length||void 0===n.length)&&("object"===(void 0===n?"undefined":b(n))&&n instanceof RegExp||("string"==typeof n&&(n=n.split(",").map(function(t){return t.trim()}).filter(function(t){return t})),n=new RegExp("\\.("+n.join("|").replace(/\./g,"\\.")+")$","i")),-1===e.name.search(n)))return Promise.reject("extension");if(this.size>0&&e.size>=0&&e.size>this.size)return Promise.reject("size");if(this.customAction)return this.customAction(e,this);if(this.features.html5){if(this.shouldUseChunkUpload(e))return this.uploadChunk(e);if(e.putAction)return this.uploadPut(e);if(e.postAction)return this.uploadHtml5(e)}return e.postAction?this.uploadHtml4(e):Promise.reject("No action configured")},shouldUseChunkUpload:function(t){return this.chunkEnabled&&!!this.chunkOptions.handler&&t.size>this.chunkOptions.minSize},uploadChunk:function(t){var e=this.chunkOptions.handler;return t.chunk=new e(t,this.chunkOptions),t.chunk.upload()},uploadPut:function(t){var e=[],n=void 0;for(var o in t.data)null!==(n=t.data[o])&&void 0!==n&&e.push(encodeURIComponent(o)+"="+encodeURIComponent(n));var i=e.length?(-1===t.putAction.indexOf("?")?"?":"&")+e.join("&"):"",a=new XMLHttpRequest;return a.open("PUT",t.putAction+i),this.uploadXhr(a,t,t.file)},uploadHtml5:function(t){var e=new window.FormData,n=void 0;for(var o in t.data)n=t.data[o],n&&"object"===(void 0===n?"undefined":b(n))&&"function"!=typeof n.toString?n instanceof File?e.append(o,n,n.name):e.append(o,JSON.stringify(n)):null!==n&&void 0!==n&&e.append(o,n);e.append(this.name,t.file,t.file.filename||t.name);var i=new XMLHttpRequest;return i.open("POST",t.postAction),this.uploadXhr(i,t,e)},uploadXhr:function(t,e,n){var o=this,i=e,a=0,r=0;t.upload.onprogress=function(t){if(i=o.get(i),t.lengthComputable&&i&&i.fileObject&&i.active){var e=Math.round(Date.now()/1e3);e!==a&&(a=e,i=o.update(i,{progress:(t.loaded/t.total*100).toFixed(2),speed:t.loaded-r}),r=t.loaded)}};var s=setInterval(function(){if(!(i=o.get(i))||!i.fileObject||i.success||i.error||!i.active){s&&(clearInterval(s),s=!1);try{t.abort(),t.timeout=1}catch(t){}}},100);return new Promise(function(e,a){var r=void 0,l=function(n){if(!r){if(r=!0,s&&(clearInterval(s),s=!1),!(i=o.get(i)))return a("not_exists");if(!i.fileObject)return a("file_object");if(i.error)return a(i.error);if(!i.active)return a("abort");if(i.success)return e(i);var l={};switch(n.type){case"timeout":case"abort":l.error=n.type;break;case"error":t.status?t.status>=500?l.error="server":t.status>=400&&(l.error="denied"):l.error="network";break;default:t.status>=500?l.error="server":t.status>=400?l.error="denied":l.progress="100.00"}if(t.responseText){var p=t.getResponseHeader("Content-Type");p&&-1!==p.indexOf("/json")?l.response=JSON.parse(t.responseText):l.response=t.responseText}return i=o.update(i,l),i.error?a(i.error):e(i)}};t.onload=l,t.onerror=l,t.onabort=l,t.ontimeout=l,i.timeout&&(t.timeout=i.timeout);for(var p in i.headers)t.setRequestHeader(p,i.headers[p]);i=o.update(i,{xhr:t}),t.send(n)})},uploadHtml4:function(t){var e=this,n=t,o=function(t){27===t.keyCode&&t.preventDefault()},i=document.createElement("iframe");i.id="upload-iframe-"+n.id,i.name="upload-iframe-"+n.id,i.src="about:blank",i.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var a=document.createElement("form");a.action=n.postAction,a.name="upload-form-"+n.id,a.setAttribute("method","POST"),a.setAttribute("target","upload-iframe-"+n.id),a.setAttribute("enctype","multipart/form-data");var r=void 0,s=void 0;for(var l in n.data)r=n.data[l],r&&"object"===(void 0===r?"undefined":b(r))&&"function"!=typeof r.toString&&(r=JSON.stringify(r)),null!==r&&void 0!==r&&(s=document.createElement("input"),s.type="hidden",s.name=l,s.value=r,a.appendChild(s));a.appendChild(n.el),document.body.appendChild(i).appendChild(a);var p=function(){var t=void 0;try{i.contentWindow&&(t=i.contentWindow.document)}catch(t){}if(!t)try{t=i.contentDocument?i.contentDocument:i.document}catch(e){t=i.document}return t&&t.body?t.body.innerHTML:null};return new Promise(function(t,r){setTimeout(function(){if(!(n=e.update(n,{iframe:i})))return r("not_exists");var s=setInterval(function(){(n=e.get(n))&&n.fileObject&&!n.success&&!n.error&&n.active||(s&&(clearInterval(s),s=!1),i.onabort({type:n?"abort":"not_exists"}))},100),l=void 0,c=function(i){if(!l){if(l=!0,s&&(clearInterval(s),s=!1),document.body.removeEventListener("keydown",o),!(n=e.get(n)))return r("not_exists");if(!n.fileObject)return r("file_object");if(n.error)return r(n.error);if(!n.active)return r("abort");if(n.success)return t(n);var a=p(),c={};switch(i.type){case"abort":c.error="abort";break;case"error":n.error?c.error=n.error:c.error=null===a?"network":"denied";break;default:n.error?c.error=n.error:null===c?c.error="network":c.progress="100.00"}if(null!==a){if(a&&"{"===a.substr(0,1)&&"}"===a.substr(a.length-1,1))try{a=JSON.parse(a)}catch(t){}c.response=a}return n=e.update(n,c),n.error?r(n.error):t(n)}};i.onload=c,i.onerror=c,i.onabort=c,document.body.addEventListener("keydown",o),a.submit()},50)}).then(function(t){return i.parentNode&&i.parentNode.removeChild(i),t}).catch(function(t){return i.parentNode&&i.parentNode.removeChild(i),t})},watchActive:function(t){for(var e=void 0,n=0;e=this.files[n];)if(n++,e.fileObject)if(t&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;e.active||e.error||e.success||this.update(e,{active:!0})}else e.active&&this.update(e,{active:!1});else;0===this.uploading&&(this.active=!1)},watchDrop:function(t){var e=t;if(this.features.drop){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(t){}e?"string"==typeof e?e=document.querySelector(e)||this.$root.$el.querySelector(e):!0===e&&(e=this.$parent.$el):e=!1,this.dropElement=e,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(t){if(t.preventDefault(),!this.dropActive&&t.dataTransfer){var e=t.dataTransfer;e.files&&e.files.length?this.dropActive=!0:e.types?e.types.indexOf&&-1!==e.types.indexOf("Files")?this.dropActive=!0:e.types.contains&&e.types.contains("Files")&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(t){t.preventDefault(),this.dropActive&&("HTML"===t.target.nodeName||t.target===t.explicitOriginalTarget||!t.fromElement&&(t.clientX<=0||t.clientY<=0||t.clientX>=window.innerWidth||t.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(t){t.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(t){t.preventDefault(),this.addDataTransfer(t.dataTransfer)}}},x=g,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:t.className},[t._t("default"),t._v(" "),n("label",{attrs:{for:t.inputId||t.name}}),t._v(" "),n("input-file")],2)},w=[],k=function(t){t&&t("data-v-595958af_0",{source:"\n.file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block\n}\n.file-uploads.file-uploads-html4 input,.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%\n}\n.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0\n}",map:void 0,media:void 0})},_=function(t,e,n,o,i,a,r,s){var l=("function"==typeof n?n.options:n)||{};l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=o;var p=void 0;if(e&&(p=function(t){e.call(this,r(t))}),void 0!==p)if(l.functional){var c=l.render;l.render=function(t,e){return p.call(e),c(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,p):[p]}return l}({render:y,staticRenderFns:w},k,x,void 0,!1,void 0,i,void 0),C=Object.freeze({default:_});return C&&_||C})},function(t,e){t.exports='\n\t
\n\t\t

{{strings.add_desc}}

\n\t\t
\n\t\t\t
\n \n {{file.name}}\n \n \n \n \n \n\t\t\t
\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t{{strings.upload}}\n\t\t\t\n\t\t\t

{{error_message}}\n\t\t
\n\t\t
\n\t\t
\n\t\t\t

{{strings.list_header}}

\n\t\t\t{{strings.max_allowed}}\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

{{strings.last}} {{strings.optimized_images}}

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
{{strings.id}}{{strings.image}}{{strings.action}}
#{{item.ID}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{{strings.loading_remove_watermark}}\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t

{{strings.settings_header}}

\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{{strings.opacity_field}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{{strings.offset_x_field}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{{strings.offset_y_field}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{{strings.scale_field}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t

\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{{strings.save_changes}}\n\t\t\t\t\n\t\t\t

\n\t\t
\n\t
\n'},function(t,e,n){var o,i;n(75),o=n(77),i=n(78),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(76);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"resize",data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showSave:!1,new_data:{}}},mounted:function(){},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.new_data})}},computed:{site_settings:function(){return this.$store.state.site_settings},widthStatus:{set:function(t){this.showSave=!0,this.new_data.max_width=t},get:function(){return this.site_settings.max_width}},heightStatus:{set:function(t){this.showSave=!0,this.new_data.max_height=t},get:function(){return this.site_settings.max_height}},resizeSmart:{set:function(t){this.showSave=!0,this.new_data.resize_smart=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.resize_smart)}}}}},function(t,e){t.exports='\n
\n
\n \n
\n \n
\n\n
\n
\n \n\n
\n
\n
\n

\n \n {{strings.width_field}}\n \n

\n

\n \n

\n
\n
\n

\n \n {{strings.height_field}}\n \n

\n

\n \n

\n
\n
\n
\n
\n
\n
\n \n
\n
\n\n
\n'},function(t,e,n){var o,i;n(80),o=n(82),i=n(88),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(81);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(83),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default={name:"exclusions",components:{FilterControl:i.default},data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,new_data:{}}},mounted:function(){},methods:{},computed:{site_settings:function(){return this.$store.state.site_settings}}}},function(t,e,n){var o,i;n(84),o=n(86),i=n(87),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(85);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2);!function(t){t&&t.__esModule}(o);e.default={name:"filter-control",props:["type"],data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showSave:!1,selected_filter:"filename",selected_value:"",filter_operator:optimoleDashboardApp.strings.options_strings.filter_operator_contains,FILTER_TYPES:{EXT:"extension",URL:"page_url",FILENAME:"filename"}}},mounted:function(){},methods:{saveRule:function(){var t={};t[this.type]={},t[this.type][this.selected_filter]={},t[this.type][this.selected_filter][this.selected_value]=!0,this.selected_value.length<3||this.$store.dispatch("saveSettings",{settings:{filters:t}})},removeRule:function(t,e){var n={};n[this.type]={},n[this.type][t]={},n[this.type][t][e]="false",this.$store.dispatch("saveSettings",{settings:{filters:n}})},changeFilterType:function(t){this.selected_value="",t.target.value===this.FILTER_TYPES.EXT&&(this.selected_value="svg",this.filter_operator=this.strings.filter_operator_is),t.target.value===this.FILTER_TYPES.URL&&(this.filter_operator=this.strings.filter_operator_contains),t.target.value===this.FILTER_TYPES.FILENAME&&(this.filter_operator=this.strings.filter_operator_contains),this.selected_filter=t.target.value},getFilterOperator:function(){return this.filter_operator}},computed:{filters:function(){return this.$store.state.site_settings.filters[this.type]}}}},function(t,e){t.exports='\n
\n
\n \n
\n
\n \n\n
\n
\n
\n

\n \n \n \n

\n

\n \n {{getFilterOperator()}}\n \n

\n

\n \n \n \n \n

\n

\n \n {{strings.add_filter}}\n \n

\n
\n
\n

\n For homepage use home keyword.\n

\n
\n'},function(t,e){t.exports='\n
\n
\n
\n \n
\n
\n \n
\n
\n\n
\n'},function(t,e){t.exports='\n \n'},function(t,e){t.exports='\n\t
\n\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n
\n \n
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t

Optimole\n\t\t\t\t\t\tv{{strings.version}}

\n\t\t\t\t\t

{{strings.terms_menu}}

\n\t\t\t\t\t

{{strings.privacy_menu}}\n\t\t\t\t\t

\n\t\t\t\t\t

{{strings.testdrive_menu}}\n\t\t\t\t\t

\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

{{strings.upgrade.title}}

\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
    \n\t\t\t\t\t\t
  • {{strings.upgrade.reason_1}}
  • \n\t\t\t\t\t\t
  • {{strings.upgrade.reason_2}}
  • \n\t\t\t\t\t\t
  • {{strings.upgrade.reason_3}}
  • \n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t
\n'},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),a=o(i),r=n(92),s=o(r),l=n(6),p=o(l),c=n(94),d=o(c),m=n(95),u=o(m);a.default.use(s.default),a.default.use(p.default);var f=new s.default.Store({strict:!0,state:{isConnecting:!1,loading:!1,site_settings:optimoleDashboardApp.site_settings,connected:"yes"===optimoleDashboardApp.connection_status,apiKey:optimoleDashboardApp.api_key?optimoleDashboardApp.api_key:"",apiKeyValidity:!0,connectError:"",sample_rate:{},apiError:!1,userData:optimoleDashboardApp.user_data?optimoleDashboardApp.user_data:null,optimizedImages:[],watermarks:[],conflicts:[]},mutations:d.default,actions:u.default});e.default=f},function(t,e,n){"use strict";function o(t){O&&(t._devtoolHook=O,O.emit("vuex:init",t),O.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){O.emit("vuex:mutation",t,e)}))}function i(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function a(t){return null!==t&&"object"==typeof t}function r(t){return t&&"function"==typeof t.then}function s(t,e,n){if(e.update(n),n.modules)for(var o in n.modules){if(!e.getChild(o))return;s(t.concat(o),e.getChild(o),n.modules[o])}}function l(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function p(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;d(t,n,[],t._modules.root,!0),c(t,n,e)}function c(t,e,n){var o=t._vm;t.getters={};var a=t._wrappedGetters,r={};i(a,function(e,n){r[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var s=j.config.silent;j.config.silent=!0,t._vm=new j({data:{$$state:e},computed:r}),j.config.silent=s,t.strict&&v(t),o&&(n&&t._withCommit(function(){o._data.$$state=null}),j.nextTick(function(){return o.$destroy()}))}function d(t,e,n,o,i){var a=!n.length,r=t._modules.getNamespace(n);if(o.namespaced&&(t._modulesNamespaceMap[r]=o),!a&&!i){var s=g(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){j.set(s,l,o.state)})}var p=o.context=m(t,r,n);o.forEachMutation(function(e,n){f(t,r+n,e,p)}),o.forEachAction(function(e,n){var o=e.root?n:r+n,i=e.handler||e;h(t,o,i,p)}),o.forEachGetter(function(e,n){b(t,r+n,e,p)}),o.forEachChild(function(o,a){d(t,e,n.concat(a),o,i)})}function m(t,e,n){var o=""===e,i={dispatch:o?t.dispatch:function(n,o,i){var a=x(n,o,i),r=a.payload,s=a.options,l=a.type;return s&&s.root||(l=e+l),t.dispatch(l,r)},commit:o?t.commit:function(n,o,i){var a=x(n,o,i),r=a.payload,s=a.options,l=a.type;s&&s.root||(l=e+l),t.commit(l,r,s)}};return Object.defineProperties(i,{getters:{get:o?function(){return t.getters}:function(){return u(t,e)}},state:{get:function(){return g(t.state,n)}}}),i}function u(t,e){var n={},o=e.length;return Object.keys(t.getters).forEach(function(i){if(i.slice(0,o)===e){var a=i.slice(o);Object.defineProperty(n,a,{get:function(){return t.getters[i]},enumerable:!0})}}),n}function f(t,e,n,o){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,o.state,e)})}function h(t,e,n,o){(t._actions[e]||(t._actions[e]=[])).push(function(e,i){var a=n.call(t,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:t.getters,rootState:t.state},e,i);return r(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):a})}function b(t,e,n,o){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(o.state,o.getters,t.state,t.getters)})}function v(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function g(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function x(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){j&&t===j||(j=t,C(j))}function w(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function k(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function _(t,e,n){return t._modulesNamespaceMap[n]}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Store",function(){return $}),n.d(e,"install",function(){return y}),n.d(e,"mapState",function(){return T}),n.d(e,"mapMutations",function(){return D}),n.d(e,"mapGetters",function(){return P}),n.d(e,"mapActions",function(){return R}),n.d(e,"createNamespacedHelpers",function(){return M});/** +!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){var e=a(t);return r(e,t.body)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(){var t=document.head||document.getElementsByTagName("head")[0],e=n.styles||(n.styles={}),o="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(n,i){if(!document.querySelector('style[data-vue-ssr-id~="'+n+'"]')){var a=o?i.media||"default":n,r=e[a]||(e[a]={ids:[],parts:[],element:void 0});if(!r.ids.includes(n)){var s=i.source,l=r.ids.length;if(r.ids.push(n),i.map&&(s+="\n/*# sourceURL="+i.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),o&&(r.element=r.element||document.querySelector("style[data-group="+a+"]")),!r.element){var p=r.element=document.createElement("style");p.type="text/css",i.media&&p.setAttribute("media",i.media),o&&(p.setAttribute("data-group",a),p.setAttribute("data-next-index","0")),t.appendChild(p)}if(o&&(l=parseInt(r.element.getAttribute("data-next-index")),r.element.setAttribute("data-next-index",l+1)),r.element.styleSheet)r.parts.push(s),r.element.styleSheet.cssText=r.parts.filter(Boolean).join("\n");else{var c=document.createTextNode(s),d=r.element.childNodes;d[l]&&r.element.removeChild(d[l]),d.length?r.element.insertBefore(c,d[l]):r.element.appendChild(c)}}}}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=200&&t.status<300){var e;try{e=JSON.parse(t.response)}catch(n){e=t.response}n(e)}else o(t.response)},t.onerror=function(){return o(t.response)},t.send(JSON.stringify(e))})},s=function(t,e){var n=new FormData;for(var o in e)n.append(o,e[o]);return new Promise(function(e,o){t.onload=function(){if(t.status>=200&&t.status<300){var n;try{n=JSON.parse(t.response)}catch(e){n=t.response}e(n)}else o(t.response)},t.onerror=function(){return o(t.response)},t.send(n)})},l=function(){function t(t,e){for(var n=0;n0}},{key:"chunksUploading",get:function(){return this.chunks.filter(function(t){return!!t.xhr&&!!t.active})}},{key:"chunksUploaded",get:function(){return this.chunks.filter(function(t){return!!t.uploaded})}}]),n}(),c={methods:{change:function(t){this.$parent.addInputFile(t.target),t.target.files?(t.target.value="",/safari/i.test(navigator.userAgent)||(t.target.type="",t.target.type="file")):(this.$destroy(),new this.constructor({parent:this.$parent,el:this.$el}))}}},d=c,m=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"file",name:t.$parent.name,id:t.$parent.inputId||t.$parent.name,accept:t.$parent.accept,capture:t.$parent.capture,disabled:t.$parent.disabled,webkitdirectory:t.$parent.directory&&t.$parent.features.directory,directory:t.$parent.directory&&t.$parent.features.directory,multiple:t.$parent.multiple&&t.$parent.features.html5},on:{change:t.change}})},u=[],f=function(t,e,n,o,i,a,r,s){var l=("function"==typeof n?n.options:n)||{};return l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=o,l}({render:m,staticRenderFns:u},void 0,d,void 0,!1,void 0,n,void 0),h=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this.addIndex,n=t,o=n instanceof Array;o||(n=[n]);for(var i=[],a=0;a1&&i.length+this.files.length>=this.maximum)break;if(i.push(r),1===this.maximum)break}}if(!i.length)return!1;1===this.maximum&&this.clear();var l=void 0;if(!0===e||0===e)l=i.concat(this.files);else if(e){var p;l=this.files.concat([]),(p=l).splice.apply(p,[e,0].concat(i))}else l=this.files.concat(i);this.files=l;for(var c=0;c0&&n.length>=e.maximum)return t(e.add(n));e.getEntry(s).then(function(t){n.push.apply(n,o(t)),a(r+1)})}(0)})}if(t.files.length){for(var s=0;s0&&n.length>=this.maximum));s++);return Promise.resolve(this.add(n))}return Promise.resolve([])},getEntry:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise(function(i,a){if(t.isFile)t.file(function(t){i([{size:t.size,name:n+t.name,type:t.type,file:t}])});else if(t.isDirectory&&e.dropDirectory){var r=[],s=t.createReader();!function a(){s.readEntries(function(s){!function l(p){return!s[p]&&0===p||e.maximum>0&&r.length>=e.maximum?i(r):s[p]?void e.getEntry(s[p],n+t.name+"/").then(function(t){r.push.apply(r,o(t)),l(p+1)}):a()}(0)})}()}else i([])})},replace:function(t,e){var n=this.get(t),o=this.get(e);if(!n||!o||n===o)return!1;var i=this.files.concat([]),a=i.indexOf(n),r=i.indexOf(o);return-1!==a&&-1!==r&&(i[a]=o,i[r]=n,this.files=i,this.emitInput(),!0)},remove:function(t){var e=this.get(t);if(e){if(this.emitFilter(void 0,e))return!1;var n=this.files.concat([]),o=n.indexOf(e);if(-1===o)return console.error("remove",e),!1;n.splice(o,1),this.files=n,delete this.maps[e.id],this.emitInput(),this.emitFile(void 0,e)}return e},update:function(t,e){var n=this.get(t);if(n){var o=h({},n,e);if(!n.fileObject||!n.active||o.active||o.error||o.success||(o.error="abort"),this.emitFilter(o,n))return!1;var i=this.files.concat([]),a=i.indexOf(n);return-1===a?(console.error("update",n),!1):(i.splice(a,1,o),this.files=i,delete this.maps[n.id],this.maps[o.id]=o,this.emitInput(),this.emitFile(o,n),o)}return!1},emitFilter:function(t,e){var n=!1;return this.$emit("input-filter",t,e,function(){return n=!0}),n},emitFile:function(t,e){this.$emit("input-file",t,e),!(t&&t.fileObject&&t.active)||e&&e.active?t&&t.fileObject&&t.active||!e||!e.fileObject||!e.active||this.uploading--:(this.uploading++,this.$nextTick(function(){var e=this;setTimeout(function(){e.upload(t).then(function(){(t=e.get(t))&&t.fileObject&&e.update(t,{active:!1,success:!t.error})}).catch(function(n){e.update(t,{active:!1,success:!1,error:n.code||n.error||n.message||n})})},parseInt(50*Math.random()+50,10))})),!this.active||Boolean(t)===Boolean(e)&&t.active===e.active||this.watchActive(!0)},emitInput:function(){this.$emit("input",this.files)},upload:function(t){var e=this.get(t);if(!e)return Promise.reject("not_exists");if(!e.fileObject)return Promise.reject("file_object");if(e.error)return Promise.reject(e.error);if(e.success)return Promise.resolve(e);var n=this.extensions;if(n&&(n.length||void 0===n.length)&&("object"===(void 0===n?"undefined":b(n))&&n instanceof RegExp||("string"==typeof n&&(n=n.split(",").map(function(t){return t.trim()}).filter(function(t){return t})),n=new RegExp("\\.("+n.join("|").replace(/\./g,"\\.")+")$","i")),-1===e.name.search(n)))return Promise.reject("extension");if(this.size>0&&e.size>=0&&e.size>this.size)return Promise.reject("size");if(this.customAction)return this.customAction(e,this);if(this.features.html5){if(this.shouldUseChunkUpload(e))return this.uploadChunk(e);if(e.putAction)return this.uploadPut(e);if(e.postAction)return this.uploadHtml5(e)}return e.postAction?this.uploadHtml4(e):Promise.reject("No action configured")},shouldUseChunkUpload:function(t){return this.chunkEnabled&&!!this.chunkOptions.handler&&t.size>this.chunkOptions.minSize},uploadChunk:function(t){var e=this.chunkOptions.handler;return t.chunk=new e(t,this.chunkOptions),t.chunk.upload()},uploadPut:function(t){var e=[],n=void 0;for(var o in t.data)null!==(n=t.data[o])&&void 0!==n&&e.push(encodeURIComponent(o)+"="+encodeURIComponent(n));var i=e.length?(-1===t.putAction.indexOf("?")?"?":"&")+e.join("&"):"",a=new XMLHttpRequest;return a.open("PUT",t.putAction+i),this.uploadXhr(a,t,t.file)},uploadHtml5:function(t){var e=new window.FormData,n=void 0;for(var o in t.data)n=t.data[o],n&&"object"===(void 0===n?"undefined":b(n))&&"function"!=typeof n.toString?n instanceof File?e.append(o,n,n.name):e.append(o,JSON.stringify(n)):null!==n&&void 0!==n&&e.append(o,n);e.append(this.name,t.file,t.file.filename||t.name);var i=new XMLHttpRequest;return i.open("POST",t.postAction),this.uploadXhr(i,t,e)},uploadXhr:function(t,e,n){var o=this,i=e,a=0,r=0;t.upload.onprogress=function(t){if(i=o.get(i),t.lengthComputable&&i&&i.fileObject&&i.active){var e=Math.round(Date.now()/1e3);e!==a&&(a=e,i=o.update(i,{progress:(t.loaded/t.total*100).toFixed(2),speed:t.loaded-r}),r=t.loaded)}};var s=setInterval(function(){if(!(i=o.get(i))||!i.fileObject||i.success||i.error||!i.active){s&&(clearInterval(s),s=!1);try{t.abort(),t.timeout=1}catch(t){}}},100);return new Promise(function(e,a){var r=void 0,l=function(n){if(!r){if(r=!0,s&&(clearInterval(s),s=!1),!(i=o.get(i)))return a("not_exists");if(!i.fileObject)return a("file_object");if(i.error)return a(i.error);if(!i.active)return a("abort");if(i.success)return e(i);var l={};switch(n.type){case"timeout":case"abort":l.error=n.type;break;case"error":t.status?t.status>=500?l.error="server":t.status>=400&&(l.error="denied"):l.error="network";break;default:t.status>=500?l.error="server":t.status>=400?l.error="denied":l.progress="100.00"}if(t.responseText){var p=t.getResponseHeader("Content-Type");p&&-1!==p.indexOf("/json")?l.response=JSON.parse(t.responseText):l.response=t.responseText}return i=o.update(i,l),i.error?a(i.error):e(i)}};t.onload=l,t.onerror=l,t.onabort=l,t.ontimeout=l,i.timeout&&(t.timeout=i.timeout);for(var p in i.headers)t.setRequestHeader(p,i.headers[p]);i=o.update(i,{xhr:t}),t.send(n)})},uploadHtml4:function(t){var e=this,n=t,o=function(t){27===t.keyCode&&t.preventDefault()},i=document.createElement("iframe");i.id="upload-iframe-"+n.id,i.name="upload-iframe-"+n.id,i.src="about:blank",i.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var a=document.createElement("form");a.action=n.postAction,a.name="upload-form-"+n.id,a.setAttribute("method","POST"),a.setAttribute("target","upload-iframe-"+n.id),a.setAttribute("enctype","multipart/form-data");var r=void 0,s=void 0;for(var l in n.data)r=n.data[l],r&&"object"===(void 0===r?"undefined":b(r))&&"function"!=typeof r.toString&&(r=JSON.stringify(r)),null!==r&&void 0!==r&&(s=document.createElement("input"),s.type="hidden",s.name=l,s.value=r,a.appendChild(s));a.appendChild(n.el),document.body.appendChild(i).appendChild(a);var p=function(){var t=void 0;try{i.contentWindow&&(t=i.contentWindow.document)}catch(t){}if(!t)try{t=i.contentDocument?i.contentDocument:i.document}catch(e){t=i.document}return t&&t.body?t.body.innerHTML:null};return new Promise(function(t,r){setTimeout(function(){if(!(n=e.update(n,{iframe:i})))return r("not_exists");var s=setInterval(function(){(n=e.get(n))&&n.fileObject&&!n.success&&!n.error&&n.active||(s&&(clearInterval(s),s=!1),i.onabort({type:n?"abort":"not_exists"}))},100),l=void 0,c=function(i){if(!l){if(l=!0,s&&(clearInterval(s),s=!1),document.body.removeEventListener("keydown",o),!(n=e.get(n)))return r("not_exists");if(!n.fileObject)return r("file_object");if(n.error)return r(n.error);if(!n.active)return r("abort");if(n.success)return t(n);var a=p(),c={};switch(i.type){case"abort":c.error="abort";break;case"error":n.error?c.error=n.error:c.error=null===a?"network":"denied";break;default:n.error?c.error=n.error:null===c?c.error="network":c.progress="100.00"}if(null!==a){if(a&&"{"===a.substr(0,1)&&"}"===a.substr(a.length-1,1))try{a=JSON.parse(a)}catch(t){}c.response=a}return n=e.update(n,c),n.error?r(n.error):t(n)}};i.onload=c,i.onerror=c,i.onabort=c,document.body.addEventListener("keydown",o),a.submit()},50)}).then(function(t){return i.parentNode&&i.parentNode.removeChild(i),t}).catch(function(t){return i.parentNode&&i.parentNode.removeChild(i),t})},watchActive:function(t){for(var e=void 0,n=0;e=this.files[n];)if(n++,e.fileObject)if(t&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;e.active||e.error||e.success||this.update(e,{active:!0})}else e.active&&this.update(e,{active:!1});else;0===this.uploading&&(this.active=!1)},watchDrop:function(t){var e=t;if(this.features.drop){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(t){}e?"string"==typeof e?e=document.querySelector(e)||this.$root.$el.querySelector(e):!0===e&&(e=this.$parent.$el):e=!1,this.dropElement=e,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(t){if(t.preventDefault(),!this.dropActive&&t.dataTransfer){var e=t.dataTransfer;e.files&&e.files.length?this.dropActive=!0:e.types?e.types.indexOf&&-1!==e.types.indexOf("Files")?this.dropActive=!0:e.types.contains&&e.types.contains("Files")&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(t){t.preventDefault(),this.dropActive&&("HTML"===t.target.nodeName||t.target===t.explicitOriginalTarget||!t.fromElement&&(t.clientX<=0||t.clientY<=0||t.clientX>=window.innerWidth||t.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(t){t.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(t){t.preventDefault(),this.addDataTransfer(t.dataTransfer)}}},x=g,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:t.className},[t._t("default"),t._v(" "),n("label",{attrs:{for:t.inputId||t.name}}),t._v(" "),n("input-file")],2)},w=[],k=function(t){t&&t("data-v-595958af_0",{source:"\n.file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block\n}\n.file-uploads.file-uploads-html4 input,.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%\n}\n.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0\n}",map:void 0,media:void 0})},_=function(t,e,n,o,i,a,r,s){var l=("function"==typeof n?n.options:n)||{};l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=o;var p=void 0;if(e&&(p=function(t){e.call(this,r(t))}),void 0!==p)if(l.functional){var c=l.render;l.render=function(t,e){return p.call(e),c(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,p):[p]}return l}({render:y,staticRenderFns:w},k,x,void 0,!1,void 0,i,void 0),C=Object.freeze({default:_});return C&&_||C})},function(t,e){t.exports='\n\t
\n\t\t

{{strings.add_desc}}

\n\t\t
\n\t\t\t
\n \n {{file.name}}\n \n \n \n \n \n\t\t\t
\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t{{strings.upload}}\n\t\t\t\n\t\t\t

{{error_message}}\n\t\t
\n\t\t
\n\t\t
\n\t\t\t

{{strings.list_header}}

\n\t\t\t{{strings.max_allowed}}\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

{{strings.last}} {{strings.optimized_images}}

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
{{strings.id}}{{strings.image}}{{strings.action}}
#{{item.ID}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{{strings.loading_remove_watermark}}\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t

{{strings.settings_header}}

\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{{strings.opacity_field}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{{strings.offset_x_field}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{{strings.offset_y_field}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{{strings.scale_field}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t

\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{{strings.save_changes}}\n\t\t\t\t\n\t\t\t

\n\t\t
\n\t
\n'},function(t,e,n){var o,i;n(75),o=n(77),i=n(78),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(76);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"resize",data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showSave:!1,new_data:{}}},mounted:function(){},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.new_data})}},computed:{site_settings:function(){return this.$store.state.site_settings},widthStatus:{set:function(t){this.showSave=!0,this.new_data.max_width=t},get:function(){return this.site_settings.max_width}},heightStatus:{set:function(t){this.showSave=!0,this.new_data.max_height=t},get:function(){return this.site_settings.max_height}},resizeSmart:{set:function(t){this.showSave=!0,this.new_data.resize_smart=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.resize_smart)}}}}},function(t,e){t.exports='\n
\n
\n \n
\n \n
\n\n
\n
\n \n\n
\n
\n
\n

\n \n {{strings.width_field}}\n \n

\n

\n \n

\n
\n
\n

\n \n {{strings.height_field}}\n \n

\n

\n \n

\n
\n
\n
\n
\n
\n
\n \n
\n
\n\n
\n'},function(t,e,n){var o,i;n(80),o=n(82),i=n(88),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(81);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(83),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default={name:"exclusions",components:{FilterControl:i.default},data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,new_data:{}}},mounted:function(){},methods:{},computed:{site_settings:function(){return this.$store.state.site_settings}}}},function(t,e,n){var o,i;n(84),o=n(86),i=n(87),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(85);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2);!function(t){t&&t.__esModule}(o);e.default={name:"filter-control",props:["type"],data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showSave:!1,selected_filter:"filename",selected_value:"",filter_operator:optimoleDashboardApp.strings.options_strings.filter_operator_contains,FILTER_TYPES:{EXT:"extension",URL:"page_url",FILENAME:"filename"}}},mounted:function(){},methods:{saveRule:function(){var t={};t[this.type]={},t[this.type][this.selected_filter]={},t[this.type][this.selected_filter][this.selected_value]=!0,this.selected_value.length<3||this.$store.dispatch("saveSettings",{settings:{filters:t}})},removeRule:function(t,e){var n={};n[this.type]={},n[this.type][t]={},n[this.type][t][e]="false",this.$store.dispatch("saveSettings",{settings:{filters:n}})},changeFilterType:function(t){this.selected_value="",t.target.value===this.FILTER_TYPES.EXT&&(this.selected_value="svg",this.filter_operator=this.strings.filter_operator_is),t.target.value===this.FILTER_TYPES.URL&&(this.filter_operator=this.strings.filter_operator_contains),t.target.value===this.FILTER_TYPES.FILENAME&&(this.filter_operator=this.strings.filter_operator_contains),this.selected_filter=t.target.value},getFilterOperator:function(){return this.filter_operator}},computed:{filters:function(){return this.$store.state.site_settings.filters[this.type]}}}},function(t,e){t.exports='\n
\n
\n \n
\n
\n \n\n
\n
\n
\n

\n \n \n \n

\n

\n \n {{getFilterOperator()}}\n \n

\n

\n \n \n \n \n

\n

\n \n {{strings.add_filter}}\n \n

\n
\n
\n

\n For homepage use home keyword.\n

\n
\n'},function(t,e){t.exports='\n
\n
\n
\n \n
\n
\n \n
\n
\n\n
\n'},function(t,e){t.exports='\n \n'},function(t,e){t.exports='\n
\n\n
\n
\n \n
\n
\n \n\n \n
\n
\n
\n\n \n

{{this.getProgressMessage()}}

\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n \n \n\n
\n
\n\n \n
\n
\n
\n
\n
\n

\n {{strings.upgrade.title}}

\n
\n
\n
    \n
  • {{strings.upgrade.reason_1}}
  • \n
  • {{strings.upgrade.reason_2}}
  • \n
  • {{strings.upgrade.reason_3}}
  • \n
  • {{strings.upgrade.reason_4}}
  • \n
\n
\n \n
\n
\n
\n'},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),a=o(i),r=n(92),s=o(r),l=n(6),p=o(l),c=n(94),d=o(c),m=n(95),u=o(m);a.default.use(s.default),a.default.use(p.default);var f=new s.default.Store({strict:!0,state:{isConnecting:!1,loading:!1,site_settings:optimoleDashboardApp.site_settings,connected:"yes"===optimoleDashboardApp.connection_status,is_loaded:"yes"===optimoleDashboardApp.connection_status,apiKey:optimoleDashboardApp.api_key?optimoleDashboardApp.api_key:"",apiKeyValidity:!0,connectError:"",sample_rate:{},apiError:!1,userData:optimoleDashboardApp.user_data?optimoleDashboardApp.user_data:null,optimizedImages:[],watermarks:[],conflicts:[]},mutations:d.default,actions:u.default});e.default=f},function(t,e,n){"use strict";function o(t){O&&(t._devtoolHook=O,O.emit("vuex:init",t),O.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){O.emit("vuex:mutation",t,e)}))}function i(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function a(t){return null!==t&&"object"==typeof t}function r(t){return t&&"function"==typeof t.then}function s(t,e,n){if(e.update(n),n.modules)for(var o in n.modules){if(!e.getChild(o))return;s(t.concat(o),e.getChild(o),n.modules[o])}}function l(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function p(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;d(t,n,[],t._modules.root,!0),c(t,n,e)}function c(t,e,n){var o=t._vm;t.getters={};var a=t._wrappedGetters,r={};i(a,function(e,n){r[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var s=j.config.silent;j.config.silent=!0,t._vm=new j({data:{$$state:e},computed:r}),j.config.silent=s,t.strict&&v(t),o&&(n&&t._withCommit(function(){o._data.$$state=null}),j.nextTick(function(){return o.$destroy()}))}function d(t,e,n,o,i){var a=!n.length,r=t._modules.getNamespace(n);if(o.namespaced&&(t._modulesNamespaceMap[r]=o),!a&&!i){var s=g(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){j.set(s,l,o.state)})}var p=o.context=m(t,r,n);o.forEachMutation(function(e,n){f(t,r+n,e,p)}),o.forEachAction(function(e,n){var o=e.root?n:r+n,i=e.handler||e;h(t,o,i,p)}),o.forEachGetter(function(e,n){b(t,r+n,e,p)}),o.forEachChild(function(o,a){d(t,e,n.concat(a),o,i)})}function m(t,e,n){var o=""===e,i={dispatch:o?t.dispatch:function(n,o,i){var a=x(n,o,i),r=a.payload,s=a.options,l=a.type;return s&&s.root||(l=e+l),t.dispatch(l,r)},commit:o?t.commit:function(n,o,i){var a=x(n,o,i),r=a.payload,s=a.options,l=a.type;s&&s.root||(l=e+l),t.commit(l,r,s)}};return Object.defineProperties(i,{getters:{get:o?function(){return t.getters}:function(){return u(t,e)}},state:{get:function(){return g(t.state,n)}}}),i}function u(t,e){var n={},o=e.length;return Object.keys(t.getters).forEach(function(i){if(i.slice(0,o)===e){var a=i.slice(o);Object.defineProperty(n,a,{get:function(){return t.getters[i]},enumerable:!0})}}),n}function f(t,e,n,o){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,o.state,e)})}function h(t,e,n,o){(t._actions[e]||(t._actions[e]=[])).push(function(e,i){var a=n.call(t,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:t.getters,rootState:t.state},e,i);return r(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):a})}function b(t,e,n,o){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(o.state,o.getters,t.state,t.getters)})}function v(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function g(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function x(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){j&&t===j||(j=t,C(j))}function w(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function k(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function _(t,e,n){return t._modulesNamespaceMap[n]}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Store",function(){return $}),n.d(e,"install",function(){return y}),n.d(e,"mapState",function(){return T}),n.d(e,"mapMutations",function(){return D}),n.d(e,"mapGetters",function(){return P}),n.d(e,"mapActions",function(){return R}),n.d(e,"createNamespacedHelpers",function(){return M});/** * vuex v2.5.0 * (c) 2017 Evan You * @license MIT */ -var C=function(t){function e(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}},O="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,S=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},z={namespaced:{configurable:!0}};z.namespaced.get=function(){return!!this._rawModule.namespaced},S.prototype.addChild=function(t,e){this._children[t]=e},S.prototype.removeChild=function(t){delete this._children[t]},S.prototype.getChild=function(t){return this._children[t]},S.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},S.prototype.forEachChild=function(t){i(this._children,t)},S.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},S.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},S.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(S.prototype,z);var A=function(t){this.register([],t,!1)};A.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},A.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},A.prototype.update=function(t){s([],this.root,t)},A.prototype.register=function(t,e,n){var o=this;void 0===n&&(n=!0);var a=new S(e,n);if(0===t.length)this.root=a;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],a)}e.modules&&i(e.modules,function(e,i){o.register(t.concat(i),e,n)})},A.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var j,$=function(t){var e=this;void 0===t&&(t={}),!j&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1);var a=t.state;void 0===a&&(a={}),"function"==typeof a&&(a=a()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new A(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new j;var r=this,s=this,l=s.dispatch,p=s.commit;this.dispatch=function(t,e){return l.call(r,t,e)},this.commit=function(t,e,n){return p.call(r,t,e,n)},this.strict=i,d(this,a,[],this._modules.root),c(this,a),n.forEach(function(t){return t(e)}),j.config.devtools&&o(this)},E={state:{configurable:!0}};E.state.get=function(){return this._vm._data.$$state},E.state.set=function(t){},$.prototype.commit=function(t,e,n){var o=this,i=x(t,e,n),a=i.type,r=i.payload,s=(i.options,{type:a,payload:r}),l=this._mutations[a];l&&(this._withCommit(function(){l.forEach(function(t){t(r)})}),this._subscribers.forEach(function(t){return t(s,o.state)}))},$.prototype.dispatch=function(t,e){var n=this,o=x(t,e),i=o.type,a=o.payload,r={type:i,payload:a},s=this._actions[i];if(s)return this._actionSubscribers.forEach(function(t){return t(r,n.state)}),s.length>1?Promise.all(s.map(function(t){return t(a)})):s[0](a)},$.prototype.subscribe=function(t){return l(t,this._subscribers)},$.prototype.subscribeAction=function(t){return l(t,this._actionSubscribers)},$.prototype.watch=function(t,e,n){var o=this;return this._watcherVM.$watch(function(){return t(o.state,o.getters)},e,n)},$.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},$.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),d(this,this.state,t,this._modules.get(t),n.preserveState),c(this,this.state)},$.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=g(e.state,t.slice(0,-1));j.delete(n,t[t.length-1])}),p(this)},$.prototype.hotUpdate=function(t){this._modules.update(t),p(this,!0)},$.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties($.prototype,E);var T=k(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,i=e.val;n[o]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var o=_(this.$store,"mapState",t);if(!o)return;e=o.context.state,n=o.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[o].vuex=!0}),n}),D=k(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,i=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.commit;if(t){var a=_(this.$store,"mapMutations",t);if(!a)return;o=a.context.commit}return"function"==typeof i?i.apply(this,[o].concat(e)):o.apply(this.$store,[i].concat(e))}}),n}),P=k(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,i=e.val;i=t+i,n[o]=function(){if(!t||_(this.$store,"mapGetters",t))return this.$store.getters[i]},n[o].vuex=!0}),n}),R=k(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,i=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.dispatch;if(t){var a=_(this.$store,"mapActions",t);if(!a)return;o=a.context.dispatch}return"function"==typeof i?i.apply(this,[o].concat(e)):o.apply(this.$store,[i].concat(e))}}),n}),M=function(t){return{mapState:T.bind(null,t),mapGetters:P.bind(null,t),mapMutations:D.bind(null,t),mapActions:R.bind(null,t)}},I={Store:$,install:y,version:"2.5.0",mapState:T,mapMutations:D,mapGetters:P,mapActions:R,createNamespacedHelpers:M};e.default=I},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){t.loading=e},i=function(t,e){t.isConnecting=e},a=function(t,e){t.apiKeyValidity=e},r=function(t,e){t.connected=e},s=function(t,e){t.userData=e},l=function(t,e){t.connectError=e},p=function(t,e){t.apiKey=e},c=function(t,e){t.optimizedImages=e.body.data},d=function(t,e){t.sample_rate=e},m=function(t,e){t.apiError=e},u=function(t,e){for(var n in e)t.site_settings[n]=e[n]},f=function(t,e){for(var n in e)t.site_settings.watermark[n]=e[n]},h=function(t,e){t.conflicts=e.body.data};e.default={toggleLoading:o,toggleConnecting:i,toggleKeyValidity:a,toggleConnectedToOptml:r,updateUserData:s,updateApiKey:p,updateSampleRate:d,restApiNotWorking:m,updateSettings:u,updateServiceError:l,updateWatermark:f,updateConflicts:h,updateOptimizedImages:c}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),a=o(i),r=n(6),s=o(r);a.default.use(s.default);var l=function(t,e){var n=t.commit;t.state;n("toggleConnecting",!0),n("restApiNotWorking",!1),a.default.http({url:optimoleDashboardApp.root+"/connect",method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},body:{api_key:e.apiKey},responseType:"json",emulateJSON:!0}).then(function(t){n("toggleConnecting",!1),"success"===t.body.code?(n("toggleKeyValidity",!0),n("toggleConnectedToOptml",!0),n("updateApiKey",e.apiKey),n("updateUserData",t.body.data),console.log("%c OptiMole API connection successful.","color: #59B278")):(n("toggleKeyValidity",!1),n("updateServiceError",t.body.data),console.log("%c Invalid API Key.","color: #E7602A"))},function(){n("toggleConnecting",!1),n("restApiNotWorking",!0)})},p=function(t,e){var n=t.commit;t.state;return n("restApiNotWorking",!1),n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/register",method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},body:{email:e.email},emulateJSON:!0,responseType:"json"}).then(function(t){return n("toggleLoading",!1),t.data},function(t){return n("toggleLoading",!1),n("restApiNotWorking",!0),t.data})},c=function(t,e){var n=t.commit;t.state;n("toggleLoading",!0,"loading"),a.default.http({url:optimoleDashboardApp.root+"/disconnect",method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,responseType:"json"}).then(function(t){n("updateUserData",null),n("toggleLoading",!1),n("updateApiKey",""),t.ok?(n("toggleConnectedToOptml",!1),console.log("%c Disconnected from OptiMole API.","color: #59B278")):console.error(t)})},d=function(t,e){var n=t.commit;t.state;return n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/update_option",method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,body:{settings:e.settings},responseType:"json"}).then(function(t){"success"===t.body.code&&n("updateSettings",t.body.data),n("toggleLoading",!1)})},m=function(t,e){var n=t.commit;t.state;return e.component.loading_images=!0,a.default.http({url:optimoleDashboardApp.root+"/images-sample-rate",method:"POST",emulateJSON:!0,headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{quality:e.quality,force:e.force},responseType:"json"}).then(function(t){e.component.loading_images=!1,"success"===t.body.code&&n("updateSampleRate",t.body.data)})},u=function(t,e){var n=t.commit,o=(t.state,this);setTimeout(function(){if(o.state.optimizedImages.length>0)return console.log("%c Images already exsist.","color: #59B278"),!1;a.default.http({url:optimoleDashboardApp.root+"/poll_optimized_images",method:"GET",emulateJSON:!0,headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json",timeout:1e4}).then(function(t){"success"===t.body.code?(n("updateOptimizedImages",t),null!==e.component&&(e.component.loading=!1,e.component.startTime=e.component.maxTime,0===t.body.data.length&&(e.component.noImages=!0)),console.log("%c Images Fetched.","color: #59B278")):(component.noImages=!0,e.component.loading=!1,console.log("%c No images available.","color: #E7602A"))})},e.waitTime)},f=function(t,e){var n=t.commit;t.state;n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/poll_watermarks",method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){if(n("toggleLoading",!1),200===t.status){e.component.watermarkData=[];for(var o in t.data.data){var i=t.data.data[o],a={ID:i.ID,post_title:i.post_title,post_mime_type:i.post_mime_type,guid:i.post_content||i.guid};e.component.watermarkData.push(a),e.component.noImages=!1}}})},h=function(t,e){var n=t.commit,o=t.state;n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/remove_watermark",method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{postID:e.postID},responseType:"json"}).then(function(t){n("toggleLoading",!1),f({commit:n,state:o},e)})},b=function(t,e){var n=t.commit;t.state;n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/request_update",method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){n("toggleLoading",!1),200===t.status&&n("updateUserData",t.body.data)})},v=function(t,e){var n=t.commit;t.state;n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/poll_conflicts",method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){n("toggleLoading",!1),200===t.status&&(console.log(t),n("updateConflicts",t))})},g=function(t,e){var n=t.commit;t.state;n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/dismiss_conflict",method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{conflictID:e.conflictID},responseType:"json"}).then(function(t){n("toggleLoading",!1),200===t.status&&(console.log(t),n("updateConflicts",t))})};e.default={connectOptimole:l,registerOptimole:p,disconnectOptimole:c,saveSettings:d,sampleRate:m,retrieveOptimizedImages:u,retrieveWatermarks:f,removeWatermark:h,requestStatsUpdate:b,retrieveConflicts:v,dismissConflict:g}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function o(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var o=t.indexOf("Edge/");return o>0?parseInt(t.substring(o+5,t.indexOf(".",o)),10):-1}function i(){i.init||(i.init=!0,r=-1!==o())}function a(t){t.component("resize-observer",s),t.component("ResizeObserver",s)}n.d(e,"install",function(){return a}),n.d(e,"ResizeObserver",function(){return s});var r=void 0,s={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var t=this;i(),this.$nextTick(function(){t._w=t.$el.offsetWidth,t._h=t.$el.offsetHeight});var e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",r&&this.$el.appendChild(e),e.data="about:blank",r||this.$el.appendChild(e)},beforeDestroy:function(){this.removeResizeHandlers()}},l={version:"0.4.5",install:a},p=null;"undefined"!=typeof window?p=window.Vue:void 0!==t&&(p=t.Vue),p&&p.use(l),e.default=l}.call(e,n(3))},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,n){n(7);var o=n(5)(n(1),n(6),"data-v-25adc6c0",null);t.exports=o.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){return"object"===(void 0===t?"undefined":o(t))&&t.hasOwnProperty(e)},a=function(t){return t+"px"};e.default={name:"ToggleButton",props:{value:{type:Boolean,default:!1},name:{type:String},disabled:{type:Boolean,default:!1},sync:{type:Boolean,default:!1},speed:{type:Number,default:300},color:{type:[String,Object],validator:function(t){return"object"===(void 0===t?"undefined":o(t))?t.checked||t.unchecked||t.disabled:"string"==typeof t}},switchColor:{type:[String,Object],validator:function(t){return"object"===(void 0===t?"undefined":o(t))?t.checked||t.unchecked:"string"==typeof t}},cssColors:{type:Boolean,default:!1},labels:{type:[Boolean,Object],default:!1,validator:function(t){return"object"===(void 0===t?"undefined":o(t))?t.checked||t.unchecked:"boolean"==typeof t}},height:{type:Number,default:22},width:{type:Number,default:50},fontSize:{type:Number}},computed:{className:function(){return["vue-js-switch",{toggled:this.toggled,disabled:this.disabled}]},coreStyle:function(){return{width:a(this.width),height:a(this.height),backgroundColor:this.cssColors?null:this.disabled?this.colorDisabled:this.colorCurrent,borderRadius:a(Math.round(this.height/2))}},buttonRadius:function(){return this.height-6},distance:function(){return a(this.width-this.height+3)},buttonStyle:function(){var t="transform "+this.speed+"ms",e=this.toggled?"translate3d("+this.distance+", 3px, 0px)":null,n=this.switchColor?this.switchColorCurrent:null;return{width:a(this.buttonRadius),height:a(this.buttonRadius),transition:t,transform:e,background:n}},labelStyle:function(){return{lineHeight:a(this.height),fontSize:this.fontSize?a(this.fontSize):null}},colorChecked:function(){var t=this.color;return"object"!==(void 0===t?"undefined":o(t))?t||"#75c791":i(t,"checked")?t.checked:"#75c791"},colorUnchecked:function(){var t=this.color;return i(t,"unchecked")?t.unchecked:"#bfcbd9"},colorDisabled:function(){var t=this.color;return i(t,"disabled")?t.disabled:this.colorCurrent},colorCurrent:function(){return this.toggled?this.colorChecked:this.colorUnchecked},labelChecked:function(){var t=this.labels;return i(t,"checked")?t.checked:"on"},labelUnchecked:function(){var t=this.labels;return i(t,"unchecked")?t.unchecked:"off"},switchColorChecked:function(){var t=this.switchColor;return i(t,"checked")?t.checked:"#fff"},switchColorUnchecked:function(){var t=this.switchColor;return i(t,"unchecked")?t.unchecked:"#fff"},switchColorCurrent:function(){var t=this.switchColor;return"object"!==(void 0===t?"undefined":o(t))?t||"#fff":this.toggled?this.switchColorChecked:this.switchColorUnchecked}},watch:{value:function(t){this.sync&&(this.toggled=!!t)}},data:function(){return{toggled:!!this.value}},methods:{toggle:function(t){this.toggled=!this.toggled,this.$emit("input",this.toggled),this.$emit("change",{value:this.toggled,srcEvent:t})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n.n(o);n.d(e,"ToggleButton",function(){return i.a});var a=!1;e.default={install:function(t){a||(t.component("ToggleButton",i.a),a=!0)}}},function(t,e,n){e=t.exports=n(4)(),e.push([t.i,".vue-js-switch[data-v-25adc6c0]{display:inline-block;position:relative;overflow:hidden;vertical-align:middle;user-select:none;font-size:10px;cursor:pointer}.vue-js-switch .v-switch-input[data-v-25adc6c0]{opacity:0;position:absolute;width:1px;height:1px}.vue-js-switch .v-switch-label[data-v-25adc6c0]{position:absolute;top:0;font-weight:600;color:#fff;z-index:1}.vue-js-switch .v-switch-label.v-left[data-v-25adc6c0]{left:10px}.vue-js-switch .v-switch-label.v-right[data-v-25adc6c0]{right:10px}.vue-js-switch .v-switch-core[data-v-25adc6c0]{display:block;position:relative;box-sizing:border-box;outline:0;margin:0;transition:border-color .3s,background-color .3s;user-select:none}.vue-js-switch .v-switch-core .v-switch-button[data-v-25adc6c0]{display:block;position:absolute;overflow:hidden;top:0;left:0;transform:translate3d(3px,3px,0);border-radius:100%;background-color:#fff;z-index:2}.vue-js-switch.disabled[data-v-25adc6c0]{pointer-events:none;opacity:.6}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;en.parts.length&&(o.parts.length=n.parts.length)}else{for(var r=[],i=0;i=2)t.mixin({beforeCreate:e});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}},O="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,S=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},z={namespaced:{configurable:!0}};z.namespaced.get=function(){return!!this._rawModule.namespaced},S.prototype.addChild=function(t,e){this._children[t]=e},S.prototype.removeChild=function(t){delete this._children[t]},S.prototype.getChild=function(t){return this._children[t]},S.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},S.prototype.forEachChild=function(t){i(this._children,t)},S.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},S.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},S.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(S.prototype,z);var A=function(t){this.register([],t,!1)};A.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},A.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},A.prototype.update=function(t){s([],this.root,t)},A.prototype.register=function(t,e,n){var o=this;void 0===n&&(n=!0);var a=new S(e,n);if(0===t.length)this.root=a;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],a)}e.modules&&i(e.modules,function(e,i){o.register(t.concat(i),e,n)})},A.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var j,$=function(t){var e=this;void 0===t&&(t={}),!j&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1);var a=t.state;void 0===a&&(a={}),"function"==typeof a&&(a=a()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new A(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new j;var r=this,s=this,l=s.dispatch,p=s.commit;this.dispatch=function(t,e){return l.call(r,t,e)},this.commit=function(t,e,n){return p.call(r,t,e,n)},this.strict=i,d(this,a,[],this._modules.root),c(this,a),n.forEach(function(t){return t(e)}),j.config.devtools&&o(this)},E={state:{configurable:!0}};E.state.get=function(){return this._vm._data.$$state},E.state.set=function(t){},$.prototype.commit=function(t,e,n){var o=this,i=x(t,e,n),a=i.type,r=i.payload,s=(i.options,{type:a,payload:r}),l=this._mutations[a];l&&(this._withCommit(function(){l.forEach(function(t){t(r)})}),this._subscribers.forEach(function(t){return t(s,o.state)}))},$.prototype.dispatch=function(t,e){var n=this,o=x(t,e),i=o.type,a=o.payload,r={type:i,payload:a},s=this._actions[i];if(s)return this._actionSubscribers.forEach(function(t){return t(r,n.state)}),s.length>1?Promise.all(s.map(function(t){return t(a)})):s[0](a)},$.prototype.subscribe=function(t){return l(t,this._subscribers)},$.prototype.subscribeAction=function(t){return l(t,this._actionSubscribers)},$.prototype.watch=function(t,e,n){var o=this;return this._watcherVM.$watch(function(){return t(o.state,o.getters)},e,n)},$.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},$.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),d(this,this.state,t,this._modules.get(t),n.preserveState),c(this,this.state)},$.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=g(e.state,t.slice(0,-1));j.delete(n,t[t.length-1])}),p(this)},$.prototype.hotUpdate=function(t){this._modules.update(t),p(this,!0)},$.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties($.prototype,E);var T=k(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,i=e.val;n[o]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var o=_(this.$store,"mapState",t);if(!o)return;e=o.context.state,n=o.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[o].vuex=!0}),n}),D=k(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,i=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.commit;if(t){var a=_(this.$store,"mapMutations",t);if(!a)return;o=a.context.commit}return"function"==typeof i?i.apply(this,[o].concat(e)):o.apply(this.$store,[i].concat(e))}}),n}),P=k(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,i=e.val;i=t+i,n[o]=function(){if(!t||_(this.$store,"mapGetters",t))return this.$store.getters[i]},n[o].vuex=!0}),n}),R=k(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,i=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.dispatch;if(t){var a=_(this.$store,"mapActions",t);if(!a)return;o=a.context.dispatch}return"function"==typeof i?i.apply(this,[o].concat(e)):o.apply(this.$store,[i].concat(e))}}),n}),M=function(t){return{mapState:T.bind(null,t),mapGetters:P.bind(null,t),mapMutations:D.bind(null,t),mapActions:R.bind(null,t)}},I={Store:$,install:y,version:"2.5.0",mapState:T,mapMutations:D,mapGetters:P,mapActions:R,createNamespacedHelpers:M};e.default=I},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){t.loading=e},i=function(t,e){t.isConnecting=e},a=function(t,e){t.apiKeyValidity=e},r=function(t,e){t.connected=e},s=function(t,e){t.is_loaded=e},l=function(t,e){t.userData=e},p=function(t,e){t.connectError=e},c=function(t,e){t.apiKey=e},d=function(t,e){t.optimizedImages=e.body.data},m=function(t,e){t.sample_rate=e},u=function(t,e){t.apiError=e},f=function(t,e){for(var n in e)t.site_settings[n]=e[n]},h=function(t,e){for(var n in e)t.site_settings.watermark[n]=e[n]},b=function(t,e){t.conflicts=e.body.data};e.default={toggleLoading:o,toggleConnecting:i,toggleKeyValidity:a,toggleConnectedToOptml:r,toggleIsServiceLoaded:s,updateUserData:l,updateApiKey:c,updateSampleRate:m,restApiNotWorking:u,updateSettings:f,updateServiceError:p,updateWatermark:h,updateConflicts:b,updateOptimizedImages:d}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),a=o(i),r=n(6),s=o(r);a.default.use(s.default);var l=function(t,e){var n=t.commit;t.state;n("toggleConnecting",!0),n("restApiNotWorking",!1),a.default.http({url:optimoleDashboardApp.root+"/connect",method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},body:{api_key:e.apiKey},responseType:"json",emulateJSON:!0}).then(function(t){n("toggleConnecting",!1),"success"===t.body.code?(n("toggleKeyValidity",!0),n("toggleConnectedToOptml",!0),n("updateApiKey",e.apiKey),n("updateUserData",t.body.data),console.log("%c OptiMole API connection successful.","color: #59B278")):(n("toggleKeyValidity",!1),n("updateServiceError",t.body.data),console.log("%c Invalid API Key.","color: #E7602A"))},function(){n("toggleConnecting",!1),n("restApiNotWorking",!0)})},p=function(t,e){var n=t.commit;t.state;return n("restApiNotWorking",!1),n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/register",method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},body:{email:e.email},emulateJSON:!0,responseType:"json"}).then(function(t){return n("toggleLoading",!1),t.data},function(t){return n("toggleLoading",!1),n("restApiNotWorking",!0),t.data})},c=function(t,e){var n=t.commit;t.state;n("toggleLoading",!0,"loading"),a.default.http({url:optimoleDashboardApp.root+"/disconnect",method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,responseType:"json"}).then(function(t){n("updateUserData",null),n("toggleLoading",!1),n("updateApiKey",""),t.ok?(n("toggleConnectedToOptml",!1),n("toggleIsServiceLoaded",!1),console.log("%c Disconnected from OptiMole API.","color: #59B278")):console.error(t)})},d=function(t,e){var n=t.commit;t.state;return n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/update_option",method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,body:{settings:e.settings},responseType:"json"}).then(function(t){"success"===t.body.code&&n("updateSettings",t.body.data),n("toggleLoading",!1)})},m=function(t,e){var n=t.commit;t.state;return e.component.loading_images=!0,a.default.http({url:optimoleDashboardApp.root+"/images-sample-rate",method:"POST",emulateJSON:!0,headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{quality:e.quality,force:e.force},responseType:"json"}).then(function(t){e.component.loading_images=!1,"success"===t.body.code&&n("updateSampleRate",t.body.data)})},u=function(t,e){var n=t.commit,o=(t.state,this);setTimeout(function(){if(o.state.optimizedImages.length>0)return console.log("%c Images already exsist.","color: #59B278"),!1;a.default.http({url:optimoleDashboardApp.root+"/poll_optimized_images",method:"GET",emulateJSON:!0,headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json",timeout:1e4}).then(function(t){"success"===t.body.code?(n("updateOptimizedImages",t),null!==e.component&&(e.component.loading=!1,e.component.startTime=e.component.maxTime,0===t.body.data.length&&(e.component.noImages=!0)),console.log("%c Images Fetched.","color: #59B278")):(component.noImages=!0,e.component.loading=!1,console.log("%c No images available.","color: #E7602A"))})},e.waitTime)},f=function(t,e){var n=t.commit;t.state;n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/poll_watermarks",method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){if(n("toggleLoading",!1),200===t.status){e.component.watermarkData=[];for(var o in t.data.data){var i=t.data.data[o],a={ID:i.ID,post_title:i.post_title,post_mime_type:i.post_mime_type,guid:i.post_content||i.guid};e.component.watermarkData.push(a),e.component.noImages=!1}}})},h=function(t,e){var n=t.commit,o=t.state;n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/remove_watermark",method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{postID:e.postID},responseType:"json"}).then(function(t){n("toggleLoading",!1),f({commit:n,state:o},e)})},b=function(t,e){var n=t.commit;t.state;n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/request_update",method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){n("toggleLoading",!1),200===t.status&&n("updateUserData",t.body.data)})},v=function(t,e){var n=t.commit;t.state;n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/poll_conflicts",method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){n("toggleLoading",!1),200===t.status&&(console.log(t),n("updateConflicts",t))})},g=function(t,e){var n=t.commit;t.state;n("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.root+"/dismiss_conflict",method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{conflictID:e.conflictID},responseType:"json"}).then(function(t){n("toggleLoading",!1),200===t.status&&(console.log(t),n("updateConflicts",t))})};e.default={connectOptimole:l,registerOptimole:p,disconnectOptimole:c,saveSettings:d,sampleRate:m,retrieveOptimizedImages:u,retrieveWatermarks:f,removeWatermark:h,requestStatsUpdate:b,retrieveConflicts:v,dismissConflict:g}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function o(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var o=t.indexOf("Edge/");return o>0?parseInt(t.substring(o+5,t.indexOf(".",o)),10):-1}function i(){i.init||(i.init=!0,r=-1!==o())}function a(t){t.component("resize-observer",s),t.component("ResizeObserver",s)}n.d(e,"install",function(){return a}),n.d(e,"ResizeObserver",function(){return s});var r=void 0,s={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var t=this;i(),this.$nextTick(function(){t._w=t.$el.offsetWidth,t._h=t.$el.offsetHeight});var e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",r&&this.$el.appendChild(e),e.data="about:blank",r||this.$el.appendChild(e)},beforeDestroy:function(){this.removeResizeHandlers()}},l={version:"0.4.5",install:a},p=null;"undefined"!=typeof window?p=window.Vue:void 0!==t&&(p=t.Vue),p&&p.use(l),e.default=l}.call(e,n(3))},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,n){n(7);var o=n(5)(n(1),n(6),"data-v-25adc6c0",null);t.exports=o.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){return"object"===(void 0===t?"undefined":o(t))&&t.hasOwnProperty(e)},a=function(t){return t+"px"};e.default={name:"ToggleButton",props:{value:{type:Boolean,default:!1},name:{type:String},disabled:{type:Boolean,default:!1},sync:{type:Boolean,default:!1},speed:{type:Number,default:300},color:{type:[String,Object],validator:function(t){return"object"===(void 0===t?"undefined":o(t))?t.checked||t.unchecked||t.disabled:"string"==typeof t}},switchColor:{type:[String,Object],validator:function(t){return"object"===(void 0===t?"undefined":o(t))?t.checked||t.unchecked:"string"==typeof t}},cssColors:{type:Boolean,default:!1},labels:{type:[Boolean,Object],default:!1,validator:function(t){return"object"===(void 0===t?"undefined":o(t))?t.checked||t.unchecked:"boolean"==typeof t}},height:{type:Number,default:22},width:{type:Number,default:50},fontSize:{type:Number}},computed:{className:function(){return["vue-js-switch",{toggled:this.toggled,disabled:this.disabled}]},coreStyle:function(){return{width:a(this.width),height:a(this.height),backgroundColor:this.cssColors?null:this.disabled?this.colorDisabled:this.colorCurrent,borderRadius:a(Math.round(this.height/2))}},buttonRadius:function(){return this.height-6},distance:function(){return a(this.width-this.height+3)},buttonStyle:function(){var t="transform "+this.speed+"ms",e=this.toggled?"translate3d("+this.distance+", 3px, 0px)":null,n=this.switchColor?this.switchColorCurrent:null;return{width:a(this.buttonRadius),height:a(this.buttonRadius),transition:t,transform:e,background:n}},labelStyle:function(){return{lineHeight:a(this.height),fontSize:this.fontSize?a(this.fontSize):null}},colorChecked:function(){var t=this.color;return"object"!==(void 0===t?"undefined":o(t))?t||"#75c791":i(t,"checked")?t.checked:"#75c791"},colorUnchecked:function(){var t=this.color;return i(t,"unchecked")?t.unchecked:"#bfcbd9"},colorDisabled:function(){var t=this.color;return i(t,"disabled")?t.disabled:this.colorCurrent},colorCurrent:function(){return this.toggled?this.colorChecked:this.colorUnchecked},labelChecked:function(){var t=this.labels;return i(t,"checked")?t.checked:"on"},labelUnchecked:function(){var t=this.labels;return i(t,"unchecked")?t.unchecked:"off"},switchColorChecked:function(){var t=this.switchColor;return i(t,"checked")?t.checked:"#fff"},switchColorUnchecked:function(){var t=this.switchColor;return i(t,"unchecked")?t.unchecked:"#fff"},switchColorCurrent:function(){var t=this.switchColor;return"object"!==(void 0===t?"undefined":o(t))?t||"#fff":this.toggled?this.switchColorChecked:this.switchColorUnchecked}},watch:{value:function(t){this.sync&&(this.toggled=!!t)}},data:function(){return{toggled:!!this.value}},methods:{toggle:function(t){this.toggled=!this.toggled,this.$emit("input",this.toggled),this.$emit("change",{value:this.toggled,srcEvent:t})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n.n(o);n.d(e,"ToggleButton",function(){return i.a});var a=!1;e.default={install:function(t){a||(t.component("ToggleButton",i.a),a=!0)}}},function(t,e,n){e=t.exports=n(4)(),e.push([t.i,".vue-js-switch[data-v-25adc6c0]{display:inline-block;position:relative;overflow:hidden;vertical-align:middle;user-select:none;font-size:10px;cursor:pointer}.vue-js-switch .v-switch-input[data-v-25adc6c0]{opacity:0;position:absolute;width:1px;height:1px}.vue-js-switch .v-switch-label[data-v-25adc6c0]{position:absolute;top:0;font-weight:600;color:#fff;z-index:1}.vue-js-switch .v-switch-label.v-left[data-v-25adc6c0]{left:10px}.vue-js-switch .v-switch-label.v-right[data-v-25adc6c0]{right:10px}.vue-js-switch .v-switch-core[data-v-25adc6c0]{display:block;position:relative;box-sizing:border-box;outline:0;margin:0;transition:border-color .3s,background-color .3s;user-select:none}.vue-js-switch .v-switch-core .v-switch-button[data-v-25adc6c0]{display:block;position:absolute;overflow:hidden;top:0;left:0;transform:translate3d(3px,3px,0);border-radius:100%;background-color:#fff;z-index:2}.vue-js-switch.disabled[data-v-25adc6c0]{pointer-events:none;opacity:.6}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;en.parts.length&&(o.parts.length=n.parts.length)}else{for(var r=[],i=0;i -
- -
-
- -
-
- - -
- - -
-
- - -
- -
-
- -
+
+ +
+ -
-
-
-
-

{{strings.upgrade.title}}

-
-
-
    -
  • {{strings.upgrade.reason_1}}
  • -
  • {{strings.upgrade.reason_2}}
  • -
  • {{strings.upgrade.reason_3}}
  • -
  • {{strings.upgrade.reason_4}}
  • -
-
- -
-
-
+
+
+ +
+
+ + +
+
+
+
+
+

+ {{strings.upgrade.title}}

+
+
+
    +
  • {{strings.upgrade.reason_1}}
  • +
  • {{strings.upgrade.reason_2}}
  • +
  • {{strings.upgrade.reason_3}}
  • +
  • {{strings.upgrade.reason_4}}
  • +
+
+ +
+
+
diff --git a/assets/vue/store/actions.js b/assets/vue/store/actions.js index 1f6d945f..04521a2a 100644 --- a/assets/vue/store/actions.js +++ b/assets/vue/store/actions.js @@ -88,6 +88,7 @@ const disconnectOptimole = function ( {commit, state}, data ) { commit( 'updateApiKey', '' ); if ( response.ok ) { commit( 'toggleConnectedToOptml', false ); + commit( 'toggleIsServiceLoaded', false ); console.log( '%c Disconnected from OptiMole API.', 'color: #59B278' ); } else { console.error( response ); diff --git a/assets/vue/store/mutations.js b/assets/vue/store/mutations.js index 2a66e8bb..9a6f60ae 100644 --- a/assets/vue/store/mutations.js +++ b/assets/vue/store/mutations.js @@ -11,6 +11,9 @@ const toggleKeyValidity = ( state, data ) => { const toggleConnectedToOptml = ( state, data ) => { state.connected = data; }; +const toggleIsServiceLoaded = ( state, data ) => { + state.is_loaded = data; +}; const updateUserData = ( state, data ) => { state.userData = data; }; @@ -52,6 +55,7 @@ export default { toggleConnecting, toggleKeyValidity, toggleConnectedToOptml, + toggleIsServiceLoaded, updateUserData, updateApiKey, updateSampleRate, diff --git a/assets/vue/store/store.js b/assets/vue/store/store.js index c6891f53..a6979e83 100644 --- a/assets/vue/store/store.js +++ b/assets/vue/store/store.js @@ -17,6 +17,7 @@ const store = new Vuex.Store( loading: false, site_settings: optimoleDashboardApp.site_settings, connected: optimoleDashboardApp.connection_status === 'yes', + is_loaded: optimoleDashboardApp.connection_status === 'yes', apiKey: optimoleDashboardApp.api_key ? optimoleDashboardApp.api_key : '', apiKeyValidity: true, connectError:'', diff --git a/inc/admin.php b/inc/admin.php index fd0306a7..98cd1f45 100755 --- a/inc/admin.php +++ b/inc/admin.php @@ -513,7 +513,7 @@ private function get_dashboard_strings() { __( 'Bonus, if you dont use a CDN, we got you covered, we will serve the images using our default CDN.', 'optimole-wp' ) ), 'notice_just_activated' => ! $this->settings->is_connected() ? - sprintf( __( '%1$sImage optimisation is currently running.%2$s Your visitors will now view the best image for their device automatically, all served from the Optimole Cloud Service on the fly. You can relax, we\'ll take it from here', 'optimole-wp' ), '', '' ) + sprintf( __( '%1$sImage optimisation is currently running.%2$s Your visitors will now view the best image for their device automatically, all served from the Optimole Cloud Service on the fly. You can relax, we\'ll take it from here. %3$s You can read more about this process %4$shere%5$s', 'optimole-wp' ), '', '', '
', '', '' ) : '', 'notice_api_not_working' => __( 'It seems there is an issue with your WordPress configuration and the core REST API functionality is not available. This is crucial as Optimole relies on this functionality in order to work.