From cf09bc1e9a6a9b05cf238220590d970536bb3ac4 Mon Sep 17 00:00:00 2001 From: Maurice Renck Date: Fri, 20 Aug 2021 11:47:39 +0200 Subject: [PATCH] Feature/issue 19 subfolder installation (#21) * fix: #19 slug detection for subfolder installations --- composer.json | 2 +- composer.lock | 2 +- index.js | 2 +- package.json | 2 +- utils/receiveKomment.php | 5 +++-- vendor/composer/installed.php | 8 ++++---- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index c1750d4..ecec365 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mauricerenck/komments", - "version": "0.10.4", + "version": "0.10.5", "description": "A comment and webmention plugin for Kirby 3", "type": "kirby-plugin", "license": "MIT", diff --git a/composer.lock b/composer.lock index 0641ee1..ff5bc06 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "3d43ac30a2afec2e575795f2ad1ac22e", + "content-hash": "9c388db3355de2081783a6a26a6ed444", "packages": [ { "name": "getkirby/composer-installer", diff --git a/index.js b/index.js index 2dc8b5f..6fc3311 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -(function () {function Na(a){return a&&a.__esModule?{d:a.default}:{d:a}}var L={data:function(){return{komments:[]}},created:function(){this.load()},methods:{load:function(){var t=this;this.$api.get("komments/queued").then(function(e){t.komments=e})}}};if(typeof L==="function"){L=L.options}Object.assign(L,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"k-komments"},[_c("k-list",{attrs:{"data-size":"medium"}},_vm._l(_vm.komments,function(komment){return _c("k-list-item",{key:komment.title,attrs:{"link":komment.url+"#komments","info":""+komment.author,"text":komment.title+" - "+komment.komment,"image":{ratio:"1/1",cover:true,back:"pattern",url:komment.image},"target":"_self"}})}),1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var M={data:function(){return{komments:[]}},created:function(){this.load()},methods:{load:function(){var t=this;this.$api.get("komments/spam").then(function(e){t.komments=e})}}};if(typeof M==="function"){M=M.options}Object.assign(M,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"k-spam-komments"},[_c("k-list",{attrs:{"data-size":"medium"}},_vm._l(_vm.komments,function(komment){return _c("k-list-item",{key:komment.title,attrs:{"link":komment.url+"#komments","info":""+komment.author,"text":komment.title+" - "+komment.komment,"image":{ratio:"1/1",cover:true,back:"pattern",url:komment.image},"target":"_self"}})}),1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var F={},Oa="2.0.0",Pa=256,Qa=Number.MAX_SAFE_INTEGER||9007199254740991,Ra=16;F={SEMVER_SPEC_VERSION:Oa,MAX_LENGTH:Pa,MAX_SAFE_INTEGER:Qa,MAX_SAFE_COMPONENT_LENGTH:Ra};var t,u,Z={},e=Z={};function _(){throw new Error("setTimeout has not been defined")}function aa(){throw new Error("clearTimeout has not been defined")}function ka($){if(t===setTimeout)return setTimeout($,0);if((t===_||!t)&&setTimeout)return t=setTimeout,setTimeout($,0);try{return t($,0)}catch(e){try{return t.call(null,$,0)}catch(e){return t.call(this,$,0)}}}function Sa($){if(u===clearTimeout)return clearTimeout($);if((u===aa||!u)&&clearTimeout)return u=clearTimeout,clearTimeout($);try{return u($)}catch(e){try{return u.call(null,$)}catch(e){return u.call(this,$)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:_}catch($){t=_}try{u="function"==typeof clearTimeout?clearTimeout:aa}catch($){u=aa}}();var G,n=[],ba=!1,la=-1;function Ta(){ba&&G&&(ba=!1,G.length?n=G.concat(n):la=-1,n.length&&ma())}function ma(){if(!ba){var $=ka(Ta);ba=!0;for(var e=n.length;e;){for(G=n,n=[];++la1)for(var r=1;r)?=?)"),a("XRANGEIDENTIFIERLOOSE","".concat(b[d.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),a("XRANGEIDENTIFIER","".concat(b[d.NUMERICIDENTIFIER],"|x|X|\\*")),a("XRANGEPLAIN","[v=\\s]*(".concat(b[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(b[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(b[d.XRANGEIDENTIFIER],")")+"(?:".concat(b[d.PRERELEASE],")?").concat(b[d.BUILD],"?")+")?)?"),a("XRANGEPLAINLOOSE","[v=\\s]*(".concat(b[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(b[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(b[d.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(b[d.PRERELEASELOOSE],")?").concat(b[d.BUILD],"?")+")?)?"),a("XRANGE","^".concat(b[d.GTLT],"\\s*").concat(b[d.XRANGEPLAIN],"$")),a("XRANGELOOSE","^".concat(b[d.GTLT],"\\s*").concat(b[d.XRANGEPLAINLOOSE],"$")),a("COERCE","".concat("(^|[^\\d])(\\d{1,").concat($,"})")+"(?:\\.(\\d{1,".concat($,"}))?")+"(?:\\.(\\d{1,".concat($,"}))?")+"(?:$|[^\\d])"),a("COERCERTL",b[d.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM","(\\s*)".concat(b[d.LONETILDE],"\\s+"),!0);var Za="$1~";a("TILDE","^".concat(b[d.LONETILDE]).concat(b[d.XRANGEPLAIN],"$")),a("TILDELOOSE","^".concat(b[d.LONETILDE]).concat(b[d.XRANGEPLAINLOOSE],"$")),a("LONECARET","(?:\\^)"),a("CARETTRIM","(\\s*)".concat(b[d.LONECARET],"\\s+"),!0);var $a="$1^";a("CARET","^".concat(b[d.LONECARET]).concat(b[d.XRANGEPLAIN],"$")),a("CARETLOOSE","^".concat(b[d.LONECARET]).concat(b[d.XRANGEPLAINLOOSE],"$")),a("COMPARATORLOOSE","^".concat(b[d.GTLT],"\\s*(").concat(b[d.LOOSEPLAIN],")$|^$")),a("COMPARATOR","^".concat(b[d.GTLT],"\\s*(").concat(b[d.FULLPLAIN],")$|^$")),a("COMPARATORTRIM","(\\s*)".concat(b[d.GTLT],"\\s*(").concat(b[d.LOOSEPLAIN],"|").concat(b[d.XRANGEPLAIN],")"),!0);var _a="$1$2$3";a("HYPHENRANGE","^\\s*(".concat(b[d.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(b[d.XRANGEPLAIN],")")+"\\s*$"),a("HYPHENRANGELOOSE","^\\s*(".concat(b[d.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(b[d.XRANGEPLAINLOOSE],")")+"\\s*$"),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0.0.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$");var ab={};var N={};function bb(o){return(bb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}var cb=["includePrerelease","loose","rtl"],db=function(o){return o?"object"!==bb(o)?{loose:!0}:cb.filter(function(t){return o[t]}).reduce(function(o,t){return o[t]=!0,o},{}):{}};N=db;var ca={},oa=/^[0-9]+$/,pa=function(r,e){var $=oa.test(r),q=oa.test(e);return $&&q&&(r=+r,e=+e),r===e?0:$&&!q?-1:q&&!$?1:rra)throw new TypeError("version is longer than ".concat(ra," characters"));f("SemVer",r,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;var t=r.trim().match(i.loose?sa[ta.LOOSE]:sa[ta.FULL]);if(!t)throw new TypeError("Invalid Version: ".concat(r));if(this.raw=r,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>O||this.major<0)throw new TypeError("Invalid major version");if(this.minor>O||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>O||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var r=+e;if(r>=0&&r=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);-1===i&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: ".concat(e));}return this.format(),this.raw=this.version,this}}]),e}();g=hb;var q={},ib=F.MAX_LENGTH,ua=y,va=A,jb=function(r,$){if($=N($),r instanceof g)return r;if("string"!=typeof r)return null;if(r.length>ib)return null;if(!($.loose?ua[va.LOOSE]:ua[va.FULL]).test(r))return null;try{return new g(r,$)}catch(e){return null}};q=jb;var kb={},lb=function($,r){var p=q($,r);return p?p.version:null};kb=lb;var mb={},nb=function(r,$){var e=q(r.trim().replace(/^[=v]+/,""),$);return e?e.version:null};mb=nb;var ob={},pb=function(r,n,$,e){"string"==typeof $&&(e=$,$=void 0);try{return new g(r,$).inc(n,e).version}catch(i){return null}};ob=pb;var z={},qb=function($,e,r){return new g($,r).compare(new g(e,r))};z=qb;var da={},rb=function($,r,e){return 0===z($,r,e)};da=rb;var sb={},tb=function(e,r){if(da(e,r))return null;var $=q(e),a=q(r),p=$.prerelease.length||a.prerelease.length,j=p?"pre":"",E=p?"prerelease":"";for(var M in $)if(("major"===M||"minor"===M||"patch"===M)&&$[M]!==a[M])return j+M;return E};sb=tb;var ub={},vb=function(r,$){return new g(r,$).major};ub=vb;var wb={},xb=function(r,$){return new g(r,$).minor};wb=xb;var yb={},zb=function($,r){return new g($,r).patch};yb=zb;var Ab={},Bb=function(e,r){var $=q(e,r);return $&&$.prerelease.length?$.prerelease:null};Ab=Bb;var Cb={},Db=function(r,$,m){return z($,r,m)};Cb=Db;var Eb={},Fb=function($,r){return z($,r,!0)};Eb=Fb;var ea={},Gb=function(r,e,$){var a=new g(r,$),i=new g(e,$);return a.compare(i)||a.compareBuild(i)};ea=Gb;var Hb={},Ib=function(r,$){return r.sort(function(r,p){return ea(r,p,$)})};Hb=Ib;var Jb={},Kb=function(r,$){return r.sort(function(r,e){return ea(e,r,$)})};Jb=Kb;var C={},Lb=function($,r,c){return z($,r,c)>0};C=Lb;var Q={},Mb=function($,r,a){return z($,r,a)<0};Q=Mb;var wa={},Nb=function($,r,e){return 0!==z($,r,e)};wa=Nb;var fa={},Ob=function($,r,e){return z($,r,e)>=0};fa=Ob;var ga={},Pb=function($,r,e){return z($,r,e)<=0};ga=Pb;var P={};function R(r){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var Qb=function(r,e,$,t){switch(e){case"===":return"object"===R(r)&&(r=r.version),"object"===R($)&&($=$.version),r===$;case"!==":return"object"===R(r)&&(r=r.version),"object"===R($)&&($=$.version),r!==$;case"":case"=":case"==":return da(r,$,t);case"!=":return wa(r,$,t);case">":return C(r,$,t);case">=":return fa(r,$,t);case"<":return Q(r,$,t);case"<=":return ga(r,$,t);default:throw new TypeError("Invalid operator: ".concat(e));}};P=Qb;var Rb={},S=y,T=A,Sb=function($,r){if($ instanceof g)return $;if("number"==typeof $&&($=String($)),"string"!=typeof $)return null;var e=null;if((r=r||{}).rtl){for(var a;(a=S[T.COERCERTL].exec($))&&(!e||e.index+e[0].length!==$.length);)e&&a.index+a[0].length===e.index+e[0].length||(e=a),S[T.COERCERTL].lastIndex=a.index+a[1].length+a[2].length;S[T.COERCERTL].lastIndex=-1}else e=$.match(S[T.COERCE]);return null===e?null:q("".concat(e[2],".").concat(e[3]||"0",".").concat(e[4]||"0"),r)};Rb=Sb;var Tb,Ub=false;function Vb(){if(Ub)return;Ub=true;Tb={};Tb=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}}var Wb={};function c(t){var l=this;if(l instanceof c||(l=new c),l.tail=null,l.head=null,l.length=0,t&&"function"==typeof t.forEach)t.forEach(function(t){l.push(t)});else if(arguments.length>0)for(var i=0,e=arguments.length;i1)i=l;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");e=this.head.next,i=this.head.value}for(var r=0;null!==e;r++)i=t(i,e.value,r),e=e.next;return i},c.prototype.reduceReverse=function(t,l){var i,e=this.tail;if(arguments.length>1)i=l;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");e=this.tail.prev,i=this.tail.value}for(var r=this.length-1;null!==e;r--)i=t(i,e.value,r),e=e.prev;return i},c.prototype.toArray=function(){for(var t=new Array(this.length),l=0,i=this.head;null!==i;l++)t[l]=i.value,i=i.next;return t},c.prototype.toArrayReverse=function(){for(var t=new Array(this.length),l=0,i=this.tail;null!==i;l++)t[l]=i.value,i=i.prev;return t},c.prototype.slice=function(t,l){(l=l||this.length)<0&&(l+=this.length),(t=t||0)<0&&(t+=this.length);var i=new c;if(lthis.length&&(l=this.length);for(var e=0,r=this.head;null!==r&&ethis.length&&(l=this.length);for(var e=this.length,r=this.tail;null!==r&&e>l;e--)r=r.prev;for(;null!==r&&e>t;e--,r=r.prev)i.push(r.value);return i},c.prototype.splice=function(t,l,...i){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var e=0,r=this.head;null!==r&&ethis[s])return E(this,this[i].get($)),!1;var u=this[i].get($).value;return this[p]&&(this[za]||this[p]($,u.value)),u.now=a,u.maxAge=e,u.value=r,this[o]+=t-u.length,u.length=t,this.get($),J(this),!0}var n=new bc($,r,t,a,e);return n.length>this[s]?(this[p]&&this[p]($,r),!1):(this[o]+=n.length,this[h].unshift(n),this[i].set($,this[h].head),J(this),!0)}},{key:"has",value:function($){if(!this[i].has($))return!1;var r=this[i].get($).value;return!U(this,r)}},{key:"get",value:function($){return ia(this,$,!0)}},{key:"peek",value:function($){return ia(this,$,!1)}},{key:"pop",value:function(){var $=this[h].tail;return $?(E(this,$),$.value):null}},{key:"del",value:function($){E(this,this[i].get($))}},{key:"load",value:function($){this.reset();for(var r=Date.now(),e=$.length-1;e>=0;e--){var a=$[e],t=a.e||0;if(0===t)this.set(a.k,a.v);else{var u=t-r;u>0&&this.set(a.k,a.v,u)}}}},{key:"prune",value:function(){var $=this;this[i].forEach(function(r,e){return ia($,e,!1)})}},{key:"max",set:function($){if("number"!=typeof $||$<0)throw new TypeError("max must be a non-negative number");this[s]=$||1/0,J(this)},get:function(){return this[s]}},{key:"allowStale",set:function($){this[I]=!!$},get:function(){return this[I]}},{key:"maxAge",set:function($){if("number"!=typeof $)throw new TypeError("maxAge must be a non-negative number");this[v]=$,J(this)},get:function(){return this[v]}},{key:"lengthCalculator",set:function($){var r=this;"function"!=typeof $&&($=ha),$!==this[D]&&(this[D]=$,this[o]=0,this[h].forEach(function($){$.length=r[D]($.value,$.key),r[o]+=$.length})),J(this)},get:function(){return this[D]}},{key:"length",get:function(){return this[o]}},{key:"itemCount",get:function(){return this[h].length}}]),$}(),ia=function($,r,e){var a=$[i].get(r);if(a){var t=a.value;if(U($,t)){if(E($,a),!$[I])return}else e&&($[Aa]&&(a.value.now=Date.now()),$[h].unshiftNode(a));return t.value}},U=function($,r){if(!r||!r.maxAge&&!$[v])return!1;var e=Date.now()-r.now;return r.maxAge?e>r.maxAge:$[v]&&e>$[v]},J=function($){if($[o]>$[s])for(var r=$[h].tail;$[o]>$[s]&&null!==r;){var e=r.prev;E($,r),r=e}},E=function($,r){if(r){var e=r.value;$[p]&&$[p](e.key,e.value),$[o]-=e.length,$[i].delete(e.key),$[h].removeNode(r)}},bc=function $(r,e,a,t,u){xa(this,$),this.key=r,this.value=e,this.length=a,this.now=t,this.maxAge=u||0},Ba=function($,r,e,a){var t=e.value;U($,t)&&(E($,e),$[I]||(t=void 0)),t&&r.call(a,t.value,t.key,$)};$b=ac;var x={};function cc(t){return fc(t)||ec(t)||dc()}function dc(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function ec(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function fc(t){if(Array.isArray(t)){for(var r=0,e=new Array(t.length);r1){var $=this.set[0];if(this.set=this.set.filter(function(t){return!Ea(t[0])}),0===this.set.length)this.set=[$];else if(this.set.length>1){var n=!0,c=!1,o=void 0;try{for(var i,d=this.set[Symbol.iterator]();!(n=(i=d.next()).done);n=!0){var s=i.value;if(1===s.length&&mc(s[0])){this.set=[s];break}}}catch(v){c=!0,o=v}finally{try{n||null==d.return||d.return()}finally{if(c)throw o}}}}this.format()}return hc(t,[{key:"format",value:function(){return this.range=this.set.map(function(t){return t.join(" ").trim()}).join("||").trim(),this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(t){var r=this;t=t.trim();var e=Object.keys(this.options).join(","),a="parseRange:".concat(e,":").concat(t),$=Da.get(a);if($)return $;var n=this.options.loose,c=n?k[j.HYPHENRANGELOOSE]:k[j.HYPHENRANGE];t=t.replace(c,wc(this.options.includePrerelease)),f("hyphen replace",t),t=t.replace(k[j.COMPARATORTRIM],jc),f("comparator trim",t,k[j.COMPARATORTRIM]),t=(t=(t=t.replace(k[j.TILDETRIM],kc)).replace(k[j.CARETTRIM],lc)).split(/\s+/).join(" ");var o=n?k[j.COMPARATORLOOSE]:k[j.COMPARATOR],i=t.split(" ").map(function(t){return nc(t,r.options)}).join(" ").split(/\s+/).map(function(t){return vc(t,r.options)}).filter(this.options.loose?function(t){return!!t.match(o)}:function(){return!0}).map(function(t){return new w(t,r.options)}),d=(i.length,new Map),s=!0,v=!1,l=void 0;try{for(var u,q=i[Symbol.iterator]();!(s=(u=q.next()).done);s=!0){var Y=u.value;if(Ea(Y))return[Y];d.set(Y.value,Y)}}catch(f){v=!0,l=f}finally{try{s||null==q.return||q.return()}finally{if(v)throw l}}d.size>1&&d.has("")&&d.delete("");var p=cc(d.values());return Da.set(a,p),p}},{key:"intersects",value:function(r,e){if(!(r instanceof t))throw new TypeError("a Range is required");return this.set.some(function(t){return Fa(t,e)&&r.set.some(function(r){return Fa(r,e)&&t.every(function(t){return r.every(function(r){return t.intersects(r,e)})})})})}},{key:"test",value:function(t){if(!t)return!1;if("string"==typeof t)try{t=new g(t,this.options)}catch(e){return!1}for(var r=0;r=".concat(e,".").concat($,".0").concat(a," <").concat(e,".").concat(+$+1,".0-0"):">=".concat(e,".").concat($,".0").concat(a," <").concat(+e+1,".0.0-0"):c?(f("replaceCaret pr",c),o="0"===e?"0"===$?">=".concat(e,".").concat($,".").concat(n,"-").concat(c," <").concat(e,".").concat($,".").concat(+n+1,"-0"):">=".concat(e,".").concat($,".").concat(n,"-").concat(c," <").concat(e,".").concat(+$+1,".0-0"):">=".concat(e,".").concat($,".").concat(n,"-").concat(c," <").concat(+e+1,".0.0-0")):(f("no pr"),o="0"===e?"0"===$?">=".concat(e,".").concat($,".").concat(n).concat(a," <").concat(e,".").concat($,".").concat(+n+1,"-0"):">=".concat(e,".").concat($,".").concat(n).concat(a," <").concat(e,".").concat(+$+1,".0-0"):">=".concat(e,".").concat($,".").concat(n," <").concat(+e+1,".0.0-0")),f("caret return",o),o})},sc=function(t,r){return f("replaceXRanges",t,r),t.split(/\s+/).map(function(t){return tc(t,r)}).join(" ")},tc=function(t,r){t=t.trim();var e=r.loose?k[j.XRANGELOOSE]:k[j.XRANGE];return t.replace(e,function(e,a,$,n,c,o){f("xRange",t,e,a,$,n,c,o);var i=m($),d=i||m(n),s=d||m(c),v=s;return"="===a&&v&&(a=""),o=r.includePrerelease?"-0":"",i?e=">"===a||"<"===a?"<0.0.0-0":"*":a&&v?(d&&(n=0),c=0,">"===a?(a=">=",d?($=+$+1,n=0,c=0):(n=+n+1,c=0)):"<="===a&&(a="<",d?$=+$+1:n=+n+1),"<"===a&&(o="-0"),e="".concat(a+$,".").concat(n,".").concat(c).concat(o)):d?e=">=".concat($,".0.0").concat(o," <").concat(+$+1,".0.0-0"):s&&(e=">=".concat($,".").concat(n,".0").concat(o," <").concat($,".").concat(+n+1,".0-0")),f("xRange return",e),e})},uc=function(t,r){return f("replaceStars",t,r),t.trim().replace(k[j.STAR],"")},vc=function(t,r){return f("replaceGTE0",t,r),t.trim().replace(k[r.includePrerelease?j.GTE0PRE:j.GTE0],"")},wc=function(t){return function(r,e,a,$,n,c,o,i,d,s,v,l,u){return e=m(a)?"":m($)?">=".concat(a,".0.0").concat(t?"-0":""):m(n)?">=".concat(a,".").concat($,".0").concat(t?"-0":""):c?">=".concat(e):">=".concat(e).concat(t?"-0":""),i=m(d)?"":m(s)?"<".concat(+d+1,".0.0-0"):m(v)?"<".concat(d,".").concat(+s+1,".0-0"):l?"<=".concat(d,".").concat(s,".").concat(v,"-").concat(l):t?"<".concat(d,".").concat(s,".").concat(+v+1,"-0"):"<=".concat(i),"".concat(e," ").concat(i).trim()}},xc=function(t,r,e){for(var a=0;a0){var n=t[$].semver;if(n.major===r.major&&n.minor===r.minor&&n.patch===r.patch)return!0}return!1}return!0};var w={};function yc(r){return(yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function zc(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Ga(r,e){for(var t=0;t="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,$=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),i=P(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),n=P(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return s||o||a&&$||i||n}}]),r}();w=Ac;var Ia=y,Ja=A;var B={},Bc=function(a,$,r){try{$=new x($,r)}catch(e){return!1}return $.test(a)};B=Bc;var Cc={},Dc=function(r,$){return new x(r,$).set.map(function(r){return r.map(function(r){return r.value}).join(" ").trim().split(" ")})};Cc=Dc;var Ec={},Fc=function(r,$,e){var a=null,n=null,h=null;try{h=new x($,e)}catch(l){return null}return r.forEach(function(r){h.test(r)&&(a&&-1!==n.compare(r)||(n=new g(a=r,e)))}),a};Ec=Fc;var Gc={},Hc=function(r,$,e){var a=null,c=null,n=null;try{n=new x($,e)}catch(l){return null}return r.forEach(function(r){n.test(r)&&(a&&1!==c.compare(r)||(c=new g(a=r,e)))}),a};Gc=Hc;var Ic={},Jc=function(e,r){e=new x(e,r);var $=new g("0.0.0");if(e.test($))return $;if($=new g("0.0.0-0"),e.test($))return $;$=null;for(var a=function(r){var a=e.set[r],w=null;a.forEach(function(e){var r=new g(e.semver.version);switch(e.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":w&&!C(r,w)||(w=r);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(e.operator));}}),!w||$&&!C($,w)||($=w)},w=0;w":t=C,a=ga,o=Q,m=">",n=">=";break;case"<":t=Q,a=fa,o=C,m="<",n="<=";break;default:throw new TypeError("Must provide a hilo val of \"<\" or \">\"");}if(B(r,e,v))return!1;for(var s=function($){var s=e.set[$],i=null,P=null;return s.forEach(function(r){r.semver===Nc&&(r=new w(">=0.0.0")),i=i||r,P=P||r,t(r.semver,i.semver,v)?i=r:o(r.semver,P.semver,v)&&(P=r)}),i.operator===m||i.operator===n?{v:!1}:P.operator&&P.operator!==m||!a(r,P.semver)?P.operator===n&&o(r,P.semver)?{v:!1}:void 0:{v:!1}},i=0;i",r)};Pc=Qc;var Rc={},Sc=function($,e,r){return ja($,e,"<",r)};Rc=Sc;var Tc={},Uc=function($,n,e){return $=new x($,e),n=new x(n,e),$.intersects(n)};Tc=Uc;var Vc={};function Wc(r,t){return Zc(r)||Yc(r,t)||Xc()}function Xc(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Yc(r,t){if(Symbol.iterator in Object(r)||"[object Arguments]"===Object.prototype.toString.call(r)){var a=[],e=!0,n=!1,o=void 0;try{for(var i,l=r[Symbol.iterator]();!(e=(i=l.next()).done)&&(a.push(i.value),!t||a.length!==t);e=!0);}catch($){n=!0,o=$}finally{try{e||null==l.return||l.return()}finally{if(n)throw o}}return a}}function Zc(r){if(Array.isArray(r))return r}Vc=function(r,t,a){var e=[],n=null,o=null,i=r.sort(function(r,t){return z(r,t,a)}),l=!0,$=!1,f=void 0;try{for(var u,s=i[Symbol.iterator]();!(l=(u=s.next()).done);l=!0){var c=u.value;B(c,t,a)?(o=c,n||(n=c)):(o&&e.push([n,o]),o=null,n=null)}}catch(d){$=!0,f=d}finally{try{l||null==s.return||s.return()}finally{if($)throw f}}n&&e.push([n,null]);for(var v=[],y=0,p=e;y=".concat(L)):v.push("*")}var b=v.join(" || "),m="string"==typeof t.raw?t.raw:String(t);return b.length"===s.operator||">="===s.operator?a=La(a,s,t):"<"===s.operator||"<="===s.operator?u=Ma(u,s,t):o.add(s.semver)}}catch(z){i=!0,l=z}finally{try{$||null==f.return||f.return()}finally{if(i)throw l}}if(o.size>1)return null;if(a&&u){if((n=z(a.semver,u.semver,t))>0)return null;if(0===n&&(">="!==a.operator||"<="!==u.operator))return null}var w,q,p,E,c=!0,y=!1,m=void 0;try{for(var h,d=o[Symbol.iterator]();!(c=(h=d.next()).done);c=!0){var g=h.value;if(a&&!B(g,String(a),t))return null;if(u&&!B(g,String(u),t))return null;var S=!0,b=!1,x=void 0;try{for(var T,j=e[Symbol.iterator]();!(S=(T=j.next()).done);S=!0){var A=T.value;if(!B(g,String(A),t))return!1}}catch(z){b=!0,x=z}finally{try{S||null==j.return||j.return()}finally{if(b)throw x}}return!0}}catch(z){y=!0,m=z}finally{try{c||null==d.return||d.return()}finally{if(y)throw m}}var N=!0,Y=!1,G=void 0;try{for(var L,R=e[Symbol.iterator]();!(N=(L=R.next()).done);N=!0){var _=L.value;if(E=E||">"===_.operator||">="===_.operator,p=p||"<"===_.operator||"<="===_.operator,a)if(">"===_.operator||">="===_.operator){if((w=La(a,_,t))===_&&w!==a)return!1}else if(">="===a.operator&&!B(a.semver,String(_),t))return!1;if(u)if("<"===_.operator||"<="===_.operator){if((q=Ma(u,_,t))===_&&q!==u)return!1}else if("<="===u.operator&&!B(u.semver,String(_),t))return!1;if(!_.operator&&(u||a)&&0!==n)return!1}}catch(z){Y=!0,G=z}finally{try{N||null==R.return||R.return()}finally{if(Y)throw G}}return!(a&&p&&!u&&0!==n)&&!(u&&E&&!a&&0!==n)},La=function(r,e,t){if(!r)return e;var a=z(r.semver,e.semver,t);return a>0?r:a<0?e:">"===e.operator&&">="===r.operator?e:r},Ma=function(r,e,t){if(!r)return e;var a=z(r.semver,e.semver,t);return a<0?r:a>0?e:"<"===e.operator&&"<="===r.operator?e:r};$c=_c;ab={re:y,src:Wa,tokens:A,SEMVER_SPEC_VERSION:F.SEMVER_SPEC_VERSION,SemVer:g,compareIdentifiers:ca.compareIdentifiers,rcompareIdentifiers:ca.rcompareIdentifiers,parse:q,valid:kb,clean:mb,inc:ob,diff:sb,major:ub,minor:wb,patch:yb,prerelease:Ab,compare:z,rcompare:Cb,compareLoose:Eb,compareBuild:ea,sort:Hb,rsort:Jb,gt:C,lt:Q,eq:da,neq:wa,gte:fa,lte:ga,cmp:P,coerce:Rb,Comparator:w,Range:x,satisfies:B,toComparators:Cc,maxSatisfying:Ec,minSatisfying:Gc,minVersion:Ic,validRange:Kc,outside:ja,gtr:Pc,ltr:Rc,intersects:Tc,simplifyRange:Vc,subset:$c};var V={data:function(){return{version:"",releaseInfo:0,hasVersionDiff:!1,hasError:!1}},created:function(){this.load()},computed:{},methods:{load:function(){var e=this;this.$api.get("komments/version").then(function(r){e.version=r.version}).then(function(){fetch("https://repo.packagist.org/p/mauricerenck/komments.json",{method:"GET"}).then(function(e){return e.json()}).then(function(r){"error"===r.status&&(e.hasError=!0),e.releaseInfo=e.version;var t=e.version;Object.keys(r.packages["mauricerenck/komments"]).sort().forEach(function(r){var $svGQ$$interop$default=Na(ab);if(!$svGQ$$interop$default.d.valid(r))return!1;$svGQ$$interop$default.d.gt(r,t)&&(e.hasVersionDiff=$svGQ$$interop$default.d.gt(r,t),e.releaseInfo=r.toString())})}).catch(function(r){console.log("catch",r),e.hasError=!0})})}}};if(typeof V==="function"){V=V.options}Object.assign(V,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"k-support"},[_vm.hasError?_c("div",{staticClass:"error"},[_c("k-info-field",{attrs:{"theme":"negative","label":"Ooops","text":"The current version could not be fetched. You may have reached an API limit"}})],1):_c("div",{staticClass:"versionBox"},[_vm.hasVersionDiff?_c("div",[_c("h4",{staticClass:"update-available"},[_vm._v("There is an update available")]),_vm._v(" "),_c("h3",{staticClass:"version"},[_vm._v(_vm._s(this.releaseInfo))])]):_c("div",[_c("h4",[_vm._v("Your Komments plugin is up to date")])]),_vm._v(" "),_c("small",{staticClass:"align-center"},[_vm._v("Your installed version is "+_vm._s(this.version))])])])};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var W={components:{QueuedKomments:L,SpamKomments:M,Support:V}};if(typeof W==="function"){W=W.options}Object.assign(W,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("k-view",{staticClass:"k-kommentviews-view"},[_c("k-header",[_vm._v("Komments")]),_vm._v(" "),_c("k-grid",{attrs:{"gutter":"large"}},[_c("k-column",{attrs:{"width":"2/4"}},[_c("k-headline-field",{attrs:{"label":"In moderation"}}),_vm._v(" "),_c("QueuedKomments")],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/4"}},[_c("k-headline-field",{attrs:{"label":"Marked as spam"}}),_vm._v(" "),_c("SpamKomments")],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/4"}},[_c("k-headline-field",{attrs:{"label":"Plugin"}}),_vm._v(" "),_c("Support")],1)],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var X={props:{label:String,value:String}};if(typeof X==="function"){X=X.options}Object.assign(X,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("img",{attrs:{"src":_vm.value}})};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var Y={data:function(){return{pendingKomments:"loading\u2026",interval:null}},created:function(){this.load()},props:{label:String},methods:{load:function(){var t=this;this.$api.get("komments/queued").then(function(e){t.pendingKomments=e.length})}}};if(typeof Y==="function"){Y=Y.options}Object.assign(Y,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"kommentsPendingCounter"},[_c("k-headline",[_vm._v(_vm._s(_vm.label))]),_vm._v(" "),_c("div",{staticClass:"count"},[_vm._v(_vm._s(_vm.pendingKomments))])],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());panel.plugin("mauricerenck/komments",{views:{queuedKommments:{component:W,icon:"chat",label:"Komments"}},fields:{gravatar:X,kommentsPending:Y}});})(); \ No newline at end of file +(function () {function tb(a){return a&&a.__esModule?{d:a.default}:{d:a}}var ma={data:function(){return{komments:[]}},created:function(){this.load()},methods:{load:function(){var t=this;this.$api.get("komments/queued").then(function(e){t.komments=e})}}};if(typeof ma==="function"){ma=ma.options}Object.assign(ma,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"k-komments"},[_c("k-list",{attrs:{"data-size":"medium"}},_vm._l(_vm.komments,function(komment){return _c("k-list-item",{key:komment.title,attrs:{"link":komment.url+"#komments","info":""+komment.author,"text":komment.title+" - "+komment.komment,"image":{ratio:"1/1",cover:true,back:"pattern",url:komment.image},"target":"_self"}})}),1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var na={data:function(){return{komments:[]}},created:function(){this.load()},methods:{load:function(){var t=this;this.$api.get("komments/spam").then(function(e){t.komments=e})}}};if(typeof na==="function"){na=na.options}Object.assign(na,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"k-spam-komments"},[_c("k-list",{attrs:{"data-size":"medium"}},_vm._l(_vm.komments,function(komment){return _c("k-list-item",{key:komment.title,attrs:{"link":komment.url+"#komments","info":""+komment.author,"text":komment.title+" - "+komment.komment,"image":{ratio:"1/1",cover:true,back:"pattern",url:komment.image},"target":"_self"}})}),1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var ga={},ub="2.0.0",vb=256,wb=Number.MAX_SAFE_INTEGER||9007199254740991,xb=16;ga={SEMVER_SPEC_VERSION:ub,MAX_LENGTH:vb,MAX_SAFE_INTEGER:wb,MAX_SAFE_COMPONENT_LENGTH:xb};var Z,_,Aa={},D=Aa={};function Ba(){throw new Error("setTimeout has not been defined")}function Ca(){throw new Error("clearTimeout has not been defined")}function Oa($){if(Z===setTimeout)return setTimeout($,0);if((Z===Ba||!Z)&&setTimeout)return Z=setTimeout,setTimeout($,0);try{return Z($,0)}catch(e){try{return Z.call(null,$,0)}catch(e){return Z.call(this,$,0)}}}function yb($){if(_===clearTimeout)return clearTimeout($);if((_===Ca||!_)&&clearTimeout)return _=clearTimeout,clearTimeout($);try{return _($)}catch(e){try{return _.call(null,$)}catch(e){return _.call(this,$)}}}!function(){try{Z="function"==typeof setTimeout?setTimeout:Ba}catch($){Z=Ba}try{_="function"==typeof clearTimeout?clearTimeout:Ca}catch($){_=Ca}}();var ha,T=[],Da=!1,Pa=-1;function zb(){Da&&ha&&(Da=!1,ha.length?T=ha.concat(T):Pa=-1,T.length&&Qa())}function Qa(){if(!Da){var $=Oa(zb);Da=!0;for(var e=T.length;e;){for(ha=T,T=[];++Pa1)for(var r=1;r)?=?)"),z("XRANGEIDENTIFIERLOOSE","".concat(k[x.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),z("XRANGEIDENTIFIER","".concat(k[x.NUMERICIDENTIFIER],"|x|X|\\*")),z("XRANGEPLAIN","[v=\\s]*(".concat(k[x.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(k[x.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(k[x.XRANGEIDENTIFIER],")")+"(?:".concat(k[x.PRERELEASE],")?").concat(k[x.BUILD],"?")+")?)?"),z("XRANGEPLAINLOOSE","[v=\\s]*(".concat(k[x.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(k[x.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(k[x.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(k[x.PRERELEASELOOSE],")?").concat(k[x.BUILD],"?")+")?)?"),z("XRANGE","^".concat(k[x.GTLT],"\\s*").concat(k[x.XRANGEPLAIN],"$")),z("XRANGELOOSE","^".concat(k[x.GTLT],"\\s*").concat(k[x.XRANGEPLAINLOOSE],"$")),z("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(Ea,"})")+"(?:\\.(\\d{1,".concat(Ea,"}))?")+"(?:\\.(\\d{1,".concat(Ea,"}))?")+"(?:$|[^\\d])"),z("COERCERTL",k[x.COERCE],!0),z("LONETILDE","(?:~>?)"),z("TILDETRIM","(\\s*)".concat(k[x.LONETILDE],"\\s+"),!0);var Fb="$1~";z("TILDE","^".concat(k[x.LONETILDE]).concat(k[x.XRANGEPLAIN],"$")),z("TILDELOOSE","^".concat(k[x.LONETILDE]).concat(k[x.XRANGEPLAINLOOSE],"$")),z("LONECARET","(?:\\^)"),z("CARETTRIM","(\\s*)".concat(k[x.LONECARET],"\\s+"),!0);var Gb="$1^";z("CARET","^".concat(k[x.LONECARET]).concat(k[x.XRANGEPLAIN],"$")),z("CARETLOOSE","^".concat(k[x.LONECARET]).concat(k[x.XRANGEPLAINLOOSE],"$")),z("COMPARATORLOOSE","^".concat(k[x.GTLT],"\\s*(").concat(k[x.LOOSEPLAIN],")$|^$")),z("COMPARATOR","^".concat(k[x.GTLT],"\\s*(").concat(k[x.FULLPLAIN],")$|^$")),z("COMPARATORTRIM","(\\s*)".concat(k[x.GTLT],"\\s*(").concat(k[x.LOOSEPLAIN],"|").concat(k[x.XRANGEPLAIN],")"),!0);var Hb="$1$2$3";z("HYPHENRANGE","^\\s*(".concat(k[x.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(k[x.XRANGEPLAIN],")")+"\\s*$"),z("HYPHENRANGELOOSE","^\\s*(".concat(k[x.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(k[x.XRANGEPLAINLOOSE],")")+"\\s*$"),z("STAR","(<|>)?=?\\s*\\*"),z("GTE0","^\\s*>=\\s*0.0.0\\s*$"),z("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$");var Ib={};var oa={};function Jb(o){return(Jb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}var Kb=["includePrerelease","loose","rtl"],Lb=function(o){return o?"object"!==Jb(o)?{loose:!0}:Kb.filter(function(t){return o[t]}).reduce(function(o,t){return o[t]=!0,o},{}):{}};oa=Lb;var Fa={},Sa=/^[0-9]+$/,Ta=function(r,e){var $=Sa.test(r),q=Sa.test(e);return $&&q&&(r=+r,e=+e),r===e?0:$&&!q?-1:q&&!$?1:rVa)throw new TypeError("version is longer than ".concat(Va," characters"));B("SemVer",r,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;var t=r.trim().match(i.loose?Wa[Xa.LOOSE]:Wa[Xa.FULL]);if(!t)throw new TypeError("Invalid Version: ".concat(r));if(this.raw=r,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>pa||this.major<0)throw new TypeError("Invalid major version");if(this.minor>pa||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>pa||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var r=+e;if(r>=0&&r=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);-1===i&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: ".concat(e));}return this.format(),this.raw=this.version,this}}]),e}();C=Pb;var U={},Qb=ga.MAX_LENGTH,Ya=aa,Za=ba,Rb=function(r,$){if($=oa($),r instanceof C)return r;if("string"!=typeof r)return null;if(r.length>Qb)return null;if(!($.loose?Ya[Za.LOOSE]:Ya[Za.FULL]).test(r))return null;try{return new C(r,$)}catch(e){return null}};U=Rb;var Sb={},Tb=function($,r){var p=U($,r);return p?p.version:null};Sb=Tb;var Ub={},Vb=function(r,$){var e=U(r.trim().replace(/^[=v]+/,""),$);return e?e.version:null};Ub=Vb;var Wb={},Xb=function(r,n,$,e){"string"==typeof $&&(e=$,$=void 0);try{return new C(r,$).inc(n,e).version}catch(i){return null}};Wb=Xb;var K={},Yb=function($,e,r){return new C($,r).compare(new C(e,r))};K=Yb;var Ga={},Zb=function($,r,e){return 0===K($,r,e)};Ga=Zb;var $b={},_b=function(e,r){if(Ga(e,r))return null;var $=U(e),a=U(r),p=$.prerelease.length||a.prerelease.length,j=p?"pre":"",E=p?"prerelease":"";for(var M in $)if(("major"===M||"minor"===M||"patch"===M)&&$[M]!==a[M])return j+M;return E};$b=_b;var ac={},bc=function(r,$){return new C(r,$).major};ac=bc;var cc={},dc=function(r,$){return new C(r,$).minor};cc=dc;var ec={},fc=function($,r){return new C($,r).patch};ec=fc;var gc={},hc=function(e,r){var $=U(e,r);return $&&$.prerelease.length?$.prerelease:null};gc=hc;var ic={},jc=function(r,$,m){return K($,r,m)};ic=jc;var kc={},lc=function($,r){return K($,r,!0)};kc=lc;var Ha={},mc=function(r,e,$){var a=new C(r,$),i=new C(e,$);return a.compare(i)||a.compareBuild(i)};Ha=mc;var nc={},oc=function(r,$){return r.sort(function(r,p){return Ha(r,p,$)})};nc=oc;var pc={},qc=function(r,$){return r.sort(function(r,e){return Ha(e,r,$)})};pc=qc;var ca={},rc=function($,r,c){return K($,r,c)>0};ca=rc;var qa={},sc=function($,r,a){return K($,r,a)<0};qa=sc;var $a={},tc=function($,r,e){return 0!==K($,r,e)};$a=tc;var Ia={},uc=function($,r,e){return K($,r,e)>=0};Ia=uc;var Ja={},vc=function($,r,e){return K($,r,e)<=0};Ja=vc;var ra={};function sa(r){return(sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var wc=function(r,e,$,t){switch(e){case"===":return"object"===sa(r)&&(r=r.version),"object"===sa($)&&($=$.version),r===$;case"!==":return"object"===sa(r)&&(r=r.version),"object"===sa($)&&($=$.version),r!==$;case"":case"=":case"==":return Ga(r,$,t);case"!=":return $a(r,$,t);case">":return ca(r,$,t);case">=":return Ia(r,$,t);case"<":return qa(r,$,t);case"<=":return Ja(r,$,t);default:throw new TypeError("Invalid operator: ".concat(e));}};ra=wc;var xc={},ta=aa,ua=ba,yc=function($,r){if($ instanceof C)return $;if("number"==typeof $&&($=String($)),"string"!=typeof $)return null;var e=null;if((r=r||{}).rtl){for(var a;(a=ta[ua.COERCERTL].exec($))&&(!e||e.index+e[0].length!==$.length);)e&&a.index+a[0].length===e.index+e[0].length||(e=a),ta[ua.COERCERTL].lastIndex=a.index+a[1].length+a[2].length;ta[ua.COERCERTL].lastIndex=-1}else e=$.match(ta[ua.COERCE]);return null===e?null:U("".concat(e[2],".").concat(e[3]||"0",".").concat(e[4]||"0"),r)};xc=yc;var zc,Ac=false;function Bc(){if(Ac)return;Ac=true;zc={};zc=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}}var Cc={};function A(t){var l=this;if(l instanceof A||(l=new A),l.tail=null,l.head=null,l.length=0,t&&"function"==typeof t.forEach)t.forEach(function(t){l.push(t)});else if(arguments.length>0)for(var i=0,e=arguments.length;i1)i=l;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");e=this.head.next,i=this.head.value}for(var r=0;null!==e;r++)i=t(i,e.value,r),e=e.next;return i},A.prototype.reduceReverse=function(t,l){var i,e=this.tail;if(arguments.length>1)i=l;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");e=this.tail.prev,i=this.tail.value}for(var r=this.length-1;null!==e;r--)i=t(i,e.value,r),e=e.prev;return i},A.prototype.toArray=function(){for(var t=new Array(this.length),l=0,i=this.head;null!==i;l++)t[l]=i.value,i=i.next;return t},A.prototype.toArrayReverse=function(){for(var t=new Array(this.length),l=0,i=this.tail;null!==i;l++)t[l]=i.value,i=i.prev;return t},A.prototype.slice=function(t,l){(l=l||this.length)<0&&(l+=this.length),(t=t||0)<0&&(t+=this.length);var i=new A;if(lthis.length&&(l=this.length);for(var e=0,r=this.head;null!==r&&ethis.length&&(l=this.length);for(var e=this.length,r=this.tail;null!==r&&e>l;e--)r=r.prev;for(;null!==r&&e>t;e--,r=r.prev)i.push(r.value);return i},A.prototype.splice=function(t,l,...i){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var e=0,r=this.head;null!==r&&ethis[W])return ea(this,this[N].get($)),!1;var u=this[N].get($).value;return this[R]&&(this[bb]||this[R]($,u.value)),u.now=a,u.maxAge=e,u.value=r,this[Q]+=t-u.length,u.length=t,this.get($),ka(this),!0}var n=new Jc($,r,t,a,e);return n.length>this[W]?(this[R]&&this[R]($,r),!1):(this[Q]+=n.length,this[F].unshift(n),this[N].set($,this[F].head),ka(this),!0)}},{key:"has",value:function($){if(!this[N].has($))return!1;var r=this[N].get($).value;return!va(this,r)}},{key:"get",value:function($){return La(this,$,!0)}},{key:"peek",value:function($){return La(this,$,!1)}},{key:"pop",value:function(){var $=this[F].tail;return $?(ea(this,$),$.value):null}},{key:"del",value:function($){ea(this,this[N].get($))}},{key:"load",value:function($){this.reset();for(var r=Date.now(),e=$.length-1;e>=0;e--){var a=$[e],t=a.e||0;if(0===t)this.set(a.k,a.v);else{var u=t-r;u>0&&this.set(a.k,a.v,u)}}}},{key:"prune",value:function(){var $=this;this[N].forEach(function(r,e){return La($,e,!1)})}}]),$}(),La=function($,r,e){var a=$[N].get(r);if(a){var t=a.value;if(va($,t)){if(ea($,a),!$[ja])return}else e&&($[cb]&&(a.value.now=Date.now()),$[F].unshiftNode(a));return t.value}},va=function($,r){if(!r||!r.maxAge&&!$[X])return!1;var e=Date.now()-r.now;return r.maxAge?e>r.maxAge:$[X]&&e>$[X]},ka=function($){if($[Q]>$[W])for(var r=$[F].tail;$[Q]>$[W]&&null!==r;){var e=r.prev;ea($,r),r=e}},ea=function($,r){if(r){var e=r.value;$[R]&&$[R](e.key,e.value),$[Q]-=e.length,$[N].delete(e.key),$[F].removeNode(r)}},Jc=function $(r,e,a,t,u){_a(this,$),this.key=r,this.value=e,this.length=a,this.now=t,this.maxAge=u||0},db=function($,r,e,a){var t=e.value;va($,t)&&(ea($,e),$[ja]||(t=void 0)),t&&r.call(a,t.value,t.key,$)};Gc=Ic;var J={};function Kc(t){return Nc(t)||Mc(t)||fb(t)||Lc()}function Lc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mc(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Nc(t){if(Array.isArray(t))return Ma(t)}function eb(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=fb(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var a=0,$=function(){};return{s:$,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,c=!0,o=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return c=t.done,t},e:function(t){o=!0,n=t},f:function(){try{c||null==e.return||e.return()}finally{if(o)throw n}}}}function fb(t,r){if(t){if("string"==typeof t)return Ma(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ma(t,r):void 0}}function Ma(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,a=new Array(r);e1){var $=this.set[0];if(this.set=this.set.filter(function(t){return!ib(t[0])}),0===this.set.length)this.set=[$];else if(this.set.length>1){var n,c=eb(this.set);try{for(c.s();!(n=c.n()).done;){var o=n.value;if(1===o.length&&Uc(o[0])){this.set=[o];break}}}catch(i){c.e(i)}finally{c.f()}}}this.format()}return Pc(t,[{key:"format",value:function(){return this.range=this.set.map(function(t){return t.join(" ").trim()}).join("||").trim(),this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(t){var r=this;t=t.trim();var e=Object.keys(this.options).join(","),a="parseRange:".concat(e,":").concat(t),$=hb.get(a);if($)return $;var n=this.options.loose,c=n?H[G.HYPHENRANGELOOSE]:H[G.HYPHENRANGE];t=t.replace(c,dd(this.options.includePrerelease)),B("hyphen replace",t),t=t.replace(H[G.COMPARATORTRIM],Rc),B("comparator trim",t,H[G.COMPARATORTRIM]),t=(t=(t=t.replace(H[G.TILDETRIM],Sc)).replace(H[G.CARETTRIM],Tc)).split(/\s+/).join(" ");var o,i=n?H[G.COMPARATORLOOSE]:H[G.COMPARATOR],d=t.split(" ").map(function(t){return Vc(t,r.options)}).join(" ").split(/\s+/).map(function(t){return cd(t,r.options)}).filter(this.options.loose?function(t){return!!t.match(i)}:function(){return!0}).map(function(t){return new Y(t,r.options)}),s=(d.length,new Map),u=eb(d);try{for(u.s();!(o=u.n()).done;){var v=o.value;if(ib(v))return[v];s.set(v.value,v)}}catch(q){u.e(q)}finally{u.f()}s.size>1&&s.has("")&&s.delete("");var l=Kc(s.values());return hb.set(a,l),l}},{key:"intersects",value:function(r,e){if(!(r instanceof t))throw new TypeError("a Range is required");return this.set.some(function(t){return jb(t,e)&&r.set.some(function(r){return jb(r,e)&&t.every(function(t){return r.every(function(r){return t.intersects(r,e)})})})})}},{key:"test",value:function(t){if(!t)return!1;if("string"==typeof t)try{t=new C(t,this.options)}catch(e){return!1}for(var r=0;r=".concat(e,".").concat($,".0").concat(a," <").concat(e,".").concat(+$+1,".0-0"):">=".concat(e,".").concat($,".0").concat(a," <").concat(+e+1,".0.0-0"):c?(B("replaceCaret pr",c),o="0"===e?"0"===$?">=".concat(e,".").concat($,".").concat(n,"-").concat(c," <").concat(e,".").concat($,".").concat(+n+1,"-0"):">=".concat(e,".").concat($,".").concat(n,"-").concat(c," <").concat(e,".").concat(+$+1,".0-0"):">=".concat(e,".").concat($,".").concat(n,"-").concat(c," <").concat(+e+1,".0.0-0")):(B("no pr"),o="0"===e?"0"===$?">=".concat(e,".").concat($,".").concat(n).concat(a," <").concat(e,".").concat($,".").concat(+n+1,"-0"):">=".concat(e,".").concat($,".").concat(n).concat(a," <").concat(e,".").concat(+$+1,".0-0"):">=".concat(e,".").concat($,".").concat(n," <").concat(+e+1,".0.0-0")),B("caret return",o),o})},$c=function(t,r){return B("replaceXRanges",t,r),t.split(/\s+/).map(function(t){return ad(t,r)}).join(" ")},ad=function(t,r){t=t.trim();var e=r.loose?H[G.XRANGELOOSE]:H[G.XRANGE];return t.replace(e,function(e,a,$,n,c,o){B("xRange",t,e,a,$,n,c,o);var i=I($),d=i||I(n),s=d||I(c),u=s;return"="===a&&u&&(a=""),o=r.includePrerelease?"-0":"",i?e=">"===a||"<"===a?"<0.0.0-0":"*":a&&u?(d&&(n=0),c=0,">"===a?(a=">=",d?($=+$+1,n=0,c=0):(n=+n+1,c=0)):"<="===a&&(a="<",d?$=+$+1:n=+n+1),"<"===a&&(o="-0"),e="".concat(a+$,".").concat(n,".").concat(c).concat(o)):d?e=">=".concat($,".0.0").concat(o," <").concat(+$+1,".0.0-0"):s&&(e=">=".concat($,".").concat(n,".0").concat(o," <").concat($,".").concat(+n+1,".0-0")),B("xRange return",e),e})},bd=function(t,r){return B("replaceStars",t,r),t.trim().replace(H[G.STAR],"")},cd=function(t,r){return B("replaceGTE0",t,r),t.trim().replace(H[r.includePrerelease?G.GTE0PRE:G.GTE0],"")},dd=function(t){return function(r,e,a,$,n,c,o,i,d,s,u,v,l){return e=I(a)?"":I($)?">=".concat(a,".0.0").concat(t?"-0":""):I(n)?">=".concat(a,".").concat($,".0").concat(t?"-0":""):c?">=".concat(e):">=".concat(e).concat(t?"-0":""),i=I(d)?"":I(s)?"<".concat(+d+1,".0.0-0"):I(u)?"<".concat(d,".").concat(+s+1,".0-0"):v?"<=".concat(d,".").concat(s,".").concat(u,"-").concat(v):t?"<".concat(d,".").concat(s,".").concat(+u+1,"-0"):"<=".concat(i),"".concat(e," ").concat(i).trim()}},ed=function(t,r,e){for(var a=0;a0){var n=t[$].semver;if(n.major===r.major&&n.minor===r.minor&&n.patch===r.patch)return!0}return!1}return!0};var Y={};function fd(r){return(fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function gd(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function kb(r,e){for(var t=0;t="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,$=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),i=ra(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),n=ra(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return o||s||a&&$||i||n}}],[{key:"ANY",get:function(){return la}}]),r}();Y=id;var lb=aa,mb=ba;var S={},jd=function(a,$,r){try{$=new J($,r)}catch(e){return!1}return $.test(a)};S=jd;var kd={},ld=function(r,$){return new J(r,$).set.map(function(r){return r.map(function(r){return r.value}).join(" ").trim().split(" ")})};kd=ld;var md={},nd=function(r,$,e){var a=null,n=null,h=null;try{h=new J($,e)}catch(l){return null}return r.forEach(function(r){h.test(r)&&(a&&-1!==n.compare(r)||(n=new C(a=r,e)))}),a};md=nd;var od={},pd=function(r,$,e){var a=null,c=null,n=null;try{n=new J($,e)}catch(l){return null}return r.forEach(function(r){n.test(r)&&(a&&1!==c.compare(r)||(c=new C(a=r,e)))}),a};od=pd;var qd={},rd=function(e,r){e=new J(e,r);var $=new C("0.0.0");if(e.test($))return $;if($=new C("0.0.0-0"),e.test($))return $;$=null;for(var a=function(r){var a=e.set[r],w=null;a.forEach(function(e){var r=new C(e.semver.version);switch(e.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":w&&!ca(r,w)||(w=r);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(e.operator));}}),!w||$&&!ca($,w)||($=w)},w=0;w":t=ca,a=Ja,o=qa,m=">",n=">=";break;case"<":t=qa,a=Ia,o=ca,m="<",n="<=";break;default:throw new TypeError("Must provide a hilo val of \"<\" or \">\"");}if(S(r,e,v))return!1;for(var s=function($){var s=e.set[$],i=null,P=null;return s.forEach(function(r){r.semver===vd&&(r=new Y(">=0.0.0")),i=i||r,P=P||r,t(r.semver,i.semver,v)?i=r:o(r.semver,P.semver,v)&&(P=r)}),i.operator===m||i.operator===n?{v:!1}:P.operator&&P.operator!==m||!a(r,P.semver)?P.operator===n&&o(r,P.semver)?{v:!1}:void 0:{v:!1}},i=0;i",r)};xd=yd;var zd={},Ad=function($,e,r){return Na($,e,"<",r)};zd=Ad;var Bd={},Cd=function($,n,e){return $=new J($,e),n=new J(n,e),$.intersects(n)};Bd=Cd;var Dd={};function Ed(r,t){return Hd(r)||Gd(r,t)||nb(r,t)||Fd()}function Fd(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Gd(r,t){var e=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=e){var n,a,o=[],i=!0,l=!1;try{for(e=e.call(r);!(i=(n=e.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(f){l=!0,a=f}finally{try{i||null==e.return||e.return()}finally{if(l)throw a}}return o}}function Hd(r){if(Array.isArray(r))return r}function Id(r,t){var e="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!e){if(Array.isArray(r)||(e=nb(r))||t&&r&&"number"==typeof r.length){e&&(r=e);var n=0,a=function(){};return{s:a,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){e=e.call(r)},n:function(){var r=e.next();return i=r.done,r},e:function(r){l=!0,o=r},f:function(){try{i||null==e.return||e.return()}finally{if(l)throw o}}}}function nb(r,t){if(r){if("string"==typeof r)return ob(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(r):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ob(r,t):void 0}}function ob(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e=".concat(v)):$.push("*")}var h=$.join(" || "),L="string"==typeof t.raw?t.raw:String(t);return h.length=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(r){throw r},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,$=!0,u=!1;return{s:function(){a=a.call(r)},n:function(){var r=a.next();return $=r.done,r},e:function(r){u=!0,o=r},f:function(){try{$||null==a.return||a.return()}finally{if(u)throw o}}}}function Kd(r,e){if(r){if("string"==typeof r)return pb(r,e);var a=Object.prototype.toString.call(r).slice(8,-1);return"Object"===a&&r.constructor&&(a=r.constructor.name),"Map"===a||"Set"===a?Array.from(r):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?pb(r,e):void 0}}function pb(r,e){(null==e||e>r.length)&&(e=r.length);for(var a=0,t=new Array(e);a"===f.operator||">="===f.operator?t=rb(t,f,a):"<"===f.operator||"<="===f.operator?n=sb(n,f,a):u.add(f.semver)}}catch(b){i.e(b)}finally{i.f()}if(u.size>1)return null;if(t&&n){if(($=K(t.semver,n.semver,a))>0)return null;if(0===$&&(">="!==t.operator||"<="!==n.operator))return null}var v,s,l,c,w,p=fa(u);try{for(p.s();!(v=p.n()).done;){var q=v.value;if(t&&!S(q,String(t),a))return null;if(n&&!S(q,String(n),a))return null;var E,y=fa(e);try{for(y.s();!(E=y.n()).done;){var m=E.value;if(!S(q,String(m),a))return!1}}catch(b){y.e(b)}finally{y.f()}return!0}}catch(b){p.e(b)}finally{p.f()}var h,g=fa(e);try{for(g.s();!(h=g.n()).done;){var d=h.value;if(w=w||">"===d.operator||">="===d.operator,c=c||"<"===d.operator||"<="===d.operator,t)if(">"===d.operator||">="===d.operator){if((s=rb(t,d,a))===d&&s!==t)return!1}else if(">="===t.operator&&!S(t.semver,String(d),a))return!1;if(n)if("<"===d.operator||"<="===d.operator){if((l=sb(n,d,a))===d&&l!==n)return!1}else if("<="===n.operator&&!S(n.semver,String(d),a))return!1;if(!d.operator&&(n||t)&&0!==$)return!1}}catch(b){g.e(b)}finally{g.f()}return!(t&&c&&!n&&0!==$)&&!(n&&w&&!t&&0!==$)},rb=function(r,e,a){if(!r)return e;var t=K(r.semver,e.semver,a);return t>0?r:t<0?e:">"===e.operator&&">="===r.operator?e:r},sb=function(r,e,a){if(!r)return e;var t=K(r.semver,e.semver,a);return t<0?r:t>0?e:"<"===e.operator&&"<="===r.operator?e:r};Jd=Ld;Ib={re:aa,src:Cb,tokens:ba,SEMVER_SPEC_VERSION:ga.SEMVER_SPEC_VERSION,SemVer:C,compareIdentifiers:Fa.compareIdentifiers,rcompareIdentifiers:Fa.rcompareIdentifiers,parse:U,valid:Sb,clean:Ub,inc:Wb,diff:$b,major:ac,minor:cc,patch:ec,prerelease:gc,compare:K,rcompare:ic,compareLoose:kc,compareBuild:Ha,sort:nc,rsort:pc,gt:ca,lt:qa,eq:Ga,neq:$a,gte:Ia,lte:Ja,cmp:ra,coerce:xc,Comparator:Y,Range:J,satisfies:S,toComparators:kd,maxSatisfying:md,minSatisfying:od,minVersion:qd,validRange:sd,outside:Na,gtr:xd,ltr:zd,intersects:Bd,simplifyRange:Dd,subset:Jd};var wa={data:function(){return{version:"",releaseInfo:0,hasVersionDiff:!1,hasError:!1}},created:function(){this.load()},computed:{},methods:{load:function(){var e=this;this.$api.get("komments/version").then(function(r){e.version=r.version}).then(function(){fetch("https://repo.packagist.org/p/mauricerenck/komments.json",{method:"GET"}).then(function(e){return e.json()}).then(function(r){"error"===r.status&&(e.hasError=!0),e.releaseInfo=e.version;var t=e.version;Object.keys(r.packages["mauricerenck/komments"]).sort().forEach(function(r){var $svGQ$$interop$default=tb(Ib);if(!$svGQ$$interop$default.d.valid(r))return!1;$svGQ$$interop$default.d.gt(r,t)&&(e.hasVersionDiff=$svGQ$$interop$default.d.gt(r,t),e.releaseInfo=r.toString())})}).catch(function(r){console.log("catch",r),e.hasError=!0})})}}};if(typeof wa==="function"){wa=wa.options}Object.assign(wa,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"k-support"},[_vm.hasError?_c("div",{staticClass:"error"},[_c("k-info-field",{attrs:{"theme":"negative","label":"Ooops","text":"The current version could not be fetched. You may have reached an API limit"}})],1):_c("div",{staticClass:"versionBox"},[_vm.hasVersionDiff?_c("div",[_c("h4",{staticClass:"update-available"},[_vm._v("There is an update available")]),_vm._v(" "),_c("h3",{staticClass:"version"},[_vm._v(_vm._s(this.releaseInfo))])]):_c("div",[_c("h4",[_vm._v("Your Komments plugin is up to date")])]),_vm._v(" "),_c("small",{staticClass:"align-center"},[_vm._v("Your installed version is "+_vm._s(this.version))])])])};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var xa={components:{QueuedKomments:ma,SpamKomments:na,Support:wa}};if(typeof xa==="function"){xa=xa.options}Object.assign(xa,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("k-view",{staticClass:"k-kommentviews-view"},[_c("k-header",[_vm._v("Komments")]),_vm._v(" "),_c("k-grid",{attrs:{"gutter":"large"}},[_c("k-column",{attrs:{"width":"2/4"}},[_c("k-headline-field",{attrs:{"label":"In moderation"}}),_vm._v(" "),_c("QueuedKomments")],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/4"}},[_c("k-headline-field",{attrs:{"label":"Marked as spam"}}),_vm._v(" "),_c("SpamKomments")],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/4"}},[_c("k-headline-field",{attrs:{"label":"Plugin"}}),_vm._v(" "),_c("Support")],1)],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var ya={props:{label:String,value:String}};if(typeof ya==="function"){ya=ya.options}Object.assign(ya,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("img",{attrs:{"src":_vm.value}})};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var za={data:function(){return{pendingKomments:"loading\u2026",interval:null}},created:function(){this.load()},props:{label:String},methods:{load:function(){var t=this;this.$api.get("komments/queued").then(function(e){t.pendingKomments=e.length})}}};if(typeof za==="function"){za=za.options}Object.assign(za,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"kommentsPendingCounter"},[_c("k-headline",[_vm._v(_vm._s(_vm.label))]),_vm._v(" "),_c("div",{staticClass:"count"},[_vm._v(_vm._s(_vm.pendingKomments))])],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());panel.plugin("mauricerenck/komments",{views:{queuedKommments:{component:xa,icon:"chat",label:"Komments"}},fields:{gravatar:ya,kommentsPending:za}});})(); \ No newline at end of file diff --git a/package.json b/package.json index 637abf0..880e633 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "komments", - "version": "0.10.4", + "version": "0.10.5", "description": "A comment and webmention plugin for Kirby 3", "main": "index.js", "author": "Maurice Renck", diff --git a/utils/receiveKomment.php b/utils/receiveKomment.php index a2230f0..2efc431 100644 --- a/utils/receiveKomment.php +++ b/utils/receiveKomment.php @@ -2,7 +2,6 @@ namespace mauricerenck\Komments; -use Kirby\Http\Url; use Kirby\Toolkit\V; use Kirby\Toolkit\Str; use Kirby\Data\yaml; @@ -46,7 +45,9 @@ public function createKomment($webmention, $spamlevel = 0, $isVerified = false) public function getPageFromUrl(string $url) { if (V::url($url)) { - $path = Url::path($url); + // use kirby->url because it includes the path of a possible subfolder install + $kirbyBaseUrl = kirby()->url(); + $path = substr($url, strlen($kirbyBaseUrl)); $languages = kirby()->languages(); if (empty($path)) { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 94cfdf7..8cc791e 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -1,7 +1,7 @@ array( - 'pretty_version' => '0.10.4', - 'version' => '0.10.4.0', + 'pretty_version' => '0.10.5', + 'version' => '0.10.5.0', 'type' => 'kirby-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -29,8 +29,8 @@ 'dev_requirement' => false, ), 'mauricerenck/komments' => array( - 'pretty_version' => '0.10.4', - 'version' => '0.10.4.0', + 'pretty_version' => '0.10.5', + 'version' => '0.10.5.0', 'type' => 'kirby-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(),