"use strict" function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}define("client-app/app",["exports","@ember/application","ember-resolver","ember-load-initializers","client-app/config/environment"],(function(e,t,r,n,o){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;re.length)&&(t=e.length) for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,c=!1 return{s:function(){r=r.call(e)},n:function(){var e=r.next() return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r1?u:u[0]}}}catch(p){r.e(p)}finally{r.f()}return(0,i.htmlSafe)((0,n.buildHashString)(t,!1,this.expanded||[]))}},{key:"click",value:function(e){var t=e.target,r=t.dataset.key;(o.default.get("env_expandable_keys")||[]).includes(r)&&t.classList.contains("expand-list")&&(e.preventDefault(),this.expanded?this.expanded.pushObject(r):this.set("expanded",[r]))}}])&&p(t.prototype,r),a&&p(t,a),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.default),v(l.prototype,"currentEnv",[a],Object.getOwnPropertyDescriptor(l.prototype,"currentEnv"),l.prototype),v(l.prototype,"isEnvArray",[c],Object.getOwnPropertyDescriptor(l.prototype,"isEnvArray"),l.prototype),v(l.prototype,"html",[u],Object.getOwnPropertyDescriptor(l.prototype,"html"),l.prototype),l) e.default=b})),define("client-app/components/fa-icon",["exports","@fortawesome/ember-fontawesome/components/fa-icon"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("client-app/components/message-info",["exports","@ember/object/computed","@ember/component","@ember/object","client-app/lib/preload"],(function(e,t,r,n,o){var i,a,c,u,l function f(e,t){for(var r=0;rt||(this.divider.style.bottom="".concat(r-5,"px"),this.events.trigger("panelResized",r))}},{key:"performDrag",value:function(e){(0,o.throttle)(this,this.throttledPerformDrag,e,25)}},{key:"throttledPerformDrag",value:function(e){this.resizing&&this.divideView(e.clientY||e.touches&&e.touches[0]&&e.touches[0].clientY)}},{key:"endDrag",value:function(){var e=document.getElementById("overlay") e&&e.parentElement.removeChild(e),this.set("resizing",!1),localStorage&&(localStorage.logster_divider_bottom=parseInt(this.divider.style.bottom,10)) for(var t=0,r=b;t=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc") if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}function y(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void r(l)}c.done?t(u):Promise.resolve(u).then(n,o)}function d(e){return function(){var t=this,r=arguments return new Promise((function(n,o){var i=e.apply(t,r) function a(e){y(i,n,o,a,c,"next",e)}function c(e){y(i,n,o,a,c,"throw",e)}a(void 0)}))}}function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return if("string"==typeof e)return v(e,t) var r=Object.prototype.toString.call(e).slice(8,-1) "Object"===r&&e.constructor&&(r=e.constructor.name) if("Map"===r||"Set"===r)return Array.from(e) if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(e)||function(){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 v(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.method return delete e.method,(0,i.ajax)("/patterns/".concat(this.key,".json"),{method:t,data:e})}},{key:"finallyBlock",value:function(e){e.set("saving",!1)}},{key:"catchBlock",value:function(e,t){t.responseText?e.set("error",t.responseText):e.set("error","Unknown error occurred. Please see dev console.")}},{key:"requestInit",value:function(e){e.setProperties({saving:!0,error:null})}},{key:"create",value:function(){this.newPatterns||this.set("newPatterns",[]),this.newPatterns.pushObject(o.default.create({isNew:!0}))}},{key:"trash",value:(u=d(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isNew){e.next=4 break}return this.newPatterns.removeObject(t),t.destroy(),e.abrupt("return") case 4:return this.requestInit(t),e.prev=5,e.next=8,this.makeAPICall({method:"DELETE",pattern:t.value}) case 8:this.patterns.removeObject(t),t.destroy(),e.next=15 break case 12:e.prev=12,e.t0=e.catch(5),this.catchBlock(t,e.t0) case 15:return e.prev=15,this.finallyBlock(t),e.finish(15) case 18:case"end":return e.stop()}}),e,this,[[5,12,15,18]])}))),function(e){return u.apply(this,arguments)})},{key:"save",value:(c=d(p().mark((function e(t){var r,n return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.requestInit(t),e.prev=1,!t.isNew){e.next=12 break}return e.next=5,this.makeAPICall({method:"POST",pattern:t.valueBuffer,retroactive:!!t.retroactive}) case 5:r=e.sent,t.updateValue(r.pattern),t.set("isNew",!1),this.patterns.pushObject(t),this.newPatterns.removeObject(t),e.next=17 break case 12:return e.next=14,this.makeAPICall({method:"PUT",pattern:t.value,new_pattern:t.valueBuffer}) case 14:n=e.sent,t.updateValue(n.pattern),t.set("count",0) case 17:e.next=22 break case 19:e.prev=19,e.t0=e.catch(1),this.catchBlock(t,e.t0) case 22:return e.prev=22,this.finallyBlock(t),e.finish(22) case 25:case"end":return e.stop()}}),e,this,[[1,19,22,25]])}))),function(e){return c.apply(this,arguments)})},{key:"resetCount",value:(a=d(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.set("saving",!0),e.prev=1,e.next=4,(0,i.ajax)("/reset-count.json",{method:"PUT",data:{pattern:t.value,hard:!!t.hard}}) case 4:t.set("count",0),e.next=10 break case 7:e.prev=7,e.t0=e.catch(1),this.catchBlock(t,e.t0) case 10:return e.prev=10,this.finallyBlock(t),e.finish(10) case 13:case"end":return e.stop()}}),e,this,[[1,7,10,13]])}))),function(e){return a.apply(this,arguments)})},{key:"checkboxChanged",value:function(e){e.toggleProperty("retroactive")}}],r&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(r.default),f=x(l.prototype,"immutable",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=x(l.prototype,"showCounter",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x(l.prototype,"allPatterns",[u],Object.getOwnPropertyDescriptor(l.prototype,"allPatterns"),l.prototype),x(l.prototype,"create",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"create"),l.prototype),x(l.prototype,"trash",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"trash"),l.prototype),x(l.prototype,"save",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"save"),l.prototype),x(l.prototype,"resetCount",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"resetCount"),l.prototype),x(l.prototype,"checkboxChanged",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"checkboxChanged"),l.prototype),l) e.default=k})),define("client-app/components/tab-contents",["exports","@ember-decorators/component","@ember/component"],(function(e,t,r){var n function o(e,t){for(var r=0;r=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc") if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function l(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void r(l)}c.done?t(u):Promise.resolve(u).then(n,o)}function f(e){return function(){var t=this,r=arguments return new Promise((function(n,o){var i=e.apply(t,r) function a(e){l(i,n,o,a,c,"next",e)}function c(e){l(i,n,o,a,c,"throw",e)}a(void 0)}))}}function s(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{} this.model.selectRow(e,t)}},{key:"tabChangedAction",value:function(e){this.model.tabChanged(e)}},{key:"showMoreBefore",value:function(){this.model.showMoreBefore()}},{key:"loadMore",value:function(){return this.model.loadMore()}},{key:"clear",value:(l=f(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!confirm("Clear the logs?\n\nCancel = No, OK = Clear")){e.next=4 break}return e.next=3,(0,o.ajax)("/clear",{type:"POST"}) case 3:this.model.reload() case 4:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"removeMessage",value:function(e){var t=this.model.currentRow.group?this.model.currentRow:null,r=this.model.rows,n=t?r.indexOf(t):r.indexOf(e) e.destroy(),e.set("selected",!1),this.model.set("total",this.model.total-1) var o=!1,i=0 t?(i=t.messages.indexOf(e),t.messages.removeObject(e),i=Math.min(i,t.messages.length-1),0===t.messages.length&&(r.removeObject(t),o=!0)):(r.removeObject(e),o=!0),o?n>0?this.model.selectRow(r[n-1]):this.model.total>0?this.model.selectRow(r[0]):this.model.reload():t&&this.model.selectRow(r[n],{messageIndex:i})}},{key:"solveMessage",value:function(e){this.model.solve(e)}},{key:"groupedMessageChangedAction",value:function(e){this.model.groupedMessageChanged(e)}},{key:"envChangedAction",value:function(e){this.model.envChanged(e)}},{key:"updateFilter",value:(c=f(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.toggleProperty(t),this.model.set(t,this[t]),(0,o.setLocalStorage)(t,this[t]),e.next=5,this.model.reload() case 5:this.model.updateSelectedRow() case 6:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"updateSearch",value:function(e){var r=e.target.value r!==this.search&&(r&&1===r.length||(0,t.debounce)(this,this.doSearch,r,250))}}],n&&s(r.prototype,n),a&&s(r,a),Object.defineProperty(r,"prototype",{writable:!1}),m}(n.default),m(c.prototype,"showSettings",[r.computed],Object.getOwnPropertyDescriptor(c.prototype,"showSettings"),c.prototype),m(c.prototype,"searchTerm",[a],Object.getOwnPropertyDescriptor(c.prototype,"searchTerm"),c.prototype),m(c.prototype,"expandMessage",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"expandMessage"),c.prototype),m(c.prototype,"selectRowAction",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"selectRowAction"),c.prototype),m(c.prototype,"tabChangedAction",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"tabChangedAction"),c.prototype),m(c.prototype,"showMoreBefore",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"showMoreBefore"),c.prototype),m(c.prototype,"loadMore",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"loadMore"),c.prototype),m(c.prototype,"clear",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"clear"),c.prototype),m(c.prototype,"removeMessage",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"removeMessage"),c.prototype),m(c.prototype,"solveMessage",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"solveMessage"),c.prototype),m(c.prototype,"groupedMessageChangedAction",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"groupedMessageChangedAction"),c.prototype),m(c.prototype,"envChangedAction",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"envChangedAction"),c.prototype),m(c.prototype,"updateFilter",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"updateFilter"),c.prototype),m(c.prototype,"updateSearch",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"updateSearch"),c.prototype),c) e.default=g})),define("client-app/controllers/show",["exports","@ember/controller","@ember/object","@ember/service"],(function(e,t,r,n){var o,i,a,c function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e} var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag" function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(L){l=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new k(o||[]) return n(a,"_invoke",{value:j(e,r,c)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=f var p={} function y(){}function d(){}function h(){}var v={} l(v,i,(function(){return this})) var b=Object.getPrototypeOf,m=b&&b(b(S([]))) m&&m!==t&&r.call(m,i)&&(v=m) var g=h.prototype=y.prototype=Object.create(v) function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(n,i,a,c){var u=s(e[n],e,i) if("throw"!==u.type){var l=u.arg,f=l.value return f&&"object"==_typeof(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function j(e,t,r){var n="suspendedStart" return function(o,i){if("executing"===n)throw new Error("Generator is already running") if("completed"===n){if("throw"===o)throw i return E()}for(r.method=o,r.arg=i;;){var a=r.delegate if(a){var c=P(a,r) if(c){if(c===p)continue return c}}if("next"===r.method)r.sent=r._sent=r.arg else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg) n="executing" var u=s(e,t,r) if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function P(e,t){var r=t.method,n=e.iterator[r] if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p var o=s(n,e.iterator,t.arg) if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p var i=o.arg return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function _(e){var t={tryLoc:e[0]} 1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{} t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[i] if(t)return t.call(e) if("function"==typeof e.next)return e if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc") if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function l(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void r(l)}c.done?t(u):Promise.resolve(u).then(n,o)}function f(e){return function(){var t=this,r=arguments return new Promise((function(n,o){var i=e.apply(t,r) function a(e){l(i,n,o,a,c,"next",e)}function c(e){l(i,n,o,a,c,"throw",e)}a(void 0)}))}}function s(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function p(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},o=r.default.APP.version,i=t.versionOnly||t.hideSha,a=t.shaOnly||t.hideVersion,c=null return i&&(t.showExtended&&(c=o.match(n.versionExtendedRegExp)),c||(c=o.match(n.versionRegExp))),a&&(c=o.match(n.shaRegExp)),c?c[0]:o}Object.defineProperty(e,"__esModule",{value:!0}),e.appVersion=o,e.default=void 0 var i=(0,t.helper)(o) e.default=i})),define("client-app/helpers/ensure-safe-component",["exports","@embroider/util"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.EnsureSafeComponentHelper}})})),define("client-app/helpers/logster-url",["exports","@ember/component/helper","client-app/lib/preload"],(function(e,t,r){function n(e){var t=e[0] return"/"!==t[0]&&(t="/".concat(t)),(0,r.getRootPath)()+t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.logsterUrl=n var o=(0,t.helper)(n) e.default=o})),define("client-app/helpers/or",["exports","@ember/component/helper"],(function(e,t){function r(e){return e.some((function(e){return e}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.or=r var n=(0,t.helper)(r) e.default=n})),define("client-app/helpers/page-title",["exports","ember-page-title/helpers/page-title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var r=t.default e.default=r})),define("client-app/initializers/app-init",["exports","client-app/lib/utilities","client-app/lib/preload"],(function(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return e} var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag" function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(R){f=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),c=new S(n||[]) return i(a,"_invoke",{value:P(e,r,c)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(R){return{type:"throw",arg:R}}}e.wrap=s var y={} function d(){}function h(){}function v(){}var b={} f(b,c,(function(){return this})) var m=Object.getPrototypeOf,g=m&&m(m(E([]))) g&&g!==t&&r.call(g,c)&&(b=g) var w=v.prototype=d.prototype=Object.create(b) function O(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function o(i,a,c,u){var l=p(e[i],e,a) if("throw"!==l.type){var f=l.arg,s=f.value return s&&"object"==n(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,c,u)}),(function(e){o("throw",e,c,u)})):t.resolve(s).then((function(e){f.value=e,c(f)}),(function(e){return o("throw",e,c,u)}))}u(l.arg)}var a i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function P(e,t,r){var n="suspendedStart" return function(o,i){if("executing"===n)throw new Error("Generator is already running") if("completed"===n){if("throw"===o)throw i return L()}for(r.method=o,r.arg=i;;){var a=r.delegate if(a){var c=_(a,r) if(c){if(c===y)continue return c}}if("next"===r.method)r.sent=r._sent=r.arg else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg) n="executing" var u=p(e,t,r) if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===y)continue return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function _(e,t){var r=t.method,n=e.iterator[r] if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y var o=p(n,e.iterator,t.arg) if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,y var i=o.arg return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,y):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function x(e){var t={tryLoc:e[0]} 1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{} t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[c] if(t)return t.call(e) if("function"==typeof e.next)return e if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc") if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),y}},e}function i(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void r(l)}c.done?t(u):Promise.resolve(u).then(n,o)}function a(e){return c.apply(this,arguments)}function c(){var e return e=o().mark((function e(n){var i,a,c,u,l,f,s,p return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.resolveRegistration("config:environment"),(0,r.setRootPath)(i.rootURL.replace(/\/$/,"")),"development"!==i.environment){e.next=18 break}return n.deferReadiness(),e.prev=4,e.next=7,(0,t.ajax)("/development-preload.json") case 7:a=e.sent,document.getElementById("preloaded-data").setAttribute("data-preloaded",JSON.stringify(a)),e.next=15 break case 12:e.prev=12,e.t0=e.catch(4),console.error("Fetching preload data failed.",e.t0) case 15:return e.prev=15,n.advanceReadiness(),e.finish(15) case 18:moment.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"secs",m:"a min",mm:"%d mins",h:"an hr",hh:"%d hrs",d:"a day",dd:"%d days",M:"a mth",MM:"%d mths",y:"a yr",yy:"%d yrs"}}),l=0,f=["","webkit","ms","moz","ms"] case 20:if(!(l=0;--n){var i=this.tryEntries[n],a=i.completion if("root"===i.tryLoc)return r("end") if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc") if(c&&u){if(this.prev=0;--r){var n=this.tryEntries[r] if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),y}},e}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void r(l)}c.done?t(u):Promise.resolve(u).then(n,o)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] if(null!=r){var n,o,i,a,c=[],u=!0,l=!1 try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(f){l=!0,o=f}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return if("string"==typeof e)return a(e,t) var r=Object.prototype.toString.call(e).slice(8,-1) "Object"===r&&e.constructor&&(r=e.constructor.name) if("Map"===r||"Set"===r)return Array.from(e) if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){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 a(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:[] if(!r)return"" for(var c=[],u=[],l=t.default.get("env_expandable_keys")||[],f=0,p=Object.entries(r);f3?"".concat(s(b[0]),', ').concat(d,"").concat(w,""))}else c.push("".concat(s(d),"").concat(s(b),""))}for(var O=0,j=u;O"),c.push("")),c.push("
".concat(s(P),"").concat(e(_,!0),"
")}return"").concat(c.join("\n"),"
")},e.clone=function(e){for(var t={},r=0,n=Object.entries(e);r":">",'"':""","'":"'","/":"/"} function s(e){return String(e).replace(/[&<>"'/]/g,(function(e){return f[e]}))}function p(e,r){return new Promise((function(n,o){r||(r={}) var a=new XMLHttpRequest if(e=(0,t.getRootPath)()+e,r.data)for(var c=0,u=Object.entries(r.data);c=200&&e<300||304===e){var t=a.getResponseHeader("Content-Type"),r=a.responseText;/\bjson\b/.test(t)&&(r=JSON.parse(r)),n(r)}else o(a)}},a.send()}))}function y(){var e return e=r().mark((function e(n,o){var i return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=t.default.get(n.replace(".json","")))){e.next=5 break}return e.abrupt("return",i) case 5:return e.next=7,p(n,o) case 7:return e.abrupt("return",e.sent) case 8:case"end":return e.stop()}}),e)})),y=function(){var t=this,r=arguments return new Promise((function(n,i){var a=e.apply(t,r) function c(e){o(a,n,i,c,u,"next",e)}function u(e){o(a,n,i,c,u,"throw",e)}c(void 0)}))},y.apply(this,arguments)}function d(){return void 0!==c?document[c]:!document.hasFocus}function h(e){var t=moment(e),r=moment() return t.diff(r.startOf("day"))>0?t.format("h:mm a"):t.diff(r.startOf("week"))>0?t.format("dd h:mm a"):t.diff(r.startOf("year"))>0?t.format("D MMM h:mm a"):t.format("D MMM YY")}function v(e){return"["+e.map((function(e){return null===e?"null":Array.isArray(e)?v(e):s(e.toString())})).join(", ")+"]"}})),define("client-app/models/group",["exports","@ember/object/computed","client-app/models/message","@ember/object","client-app/lib/utilities"],(function(e,t,r,n,o){var i,a,c,u,l function f(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function s(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,c=!1 return{s:function(){r=r.call(e)},n:function(){var e=r.next() return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return e} var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag" function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(L){u=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new k(o||[]) return n(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=l var s={} function p(){}function y(){}function d(){}var v={} u(v,i,(function(){return this})) var b=Object.getPrototypeOf,m=b&&b(b(S([]))) m&&m!==t&&r.call(m,i)&&(v=m) var g=d.prototype=p.prototype=Object.create(v) function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(n,i,a,c){var u=f(e[n],e,i) if("throw"!==u.type){var l=u.arg,s=l.value return s&&"object"==_typeof(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function j(e,t,r){var n="suspendedStart" return function(o,i){if("executing"===n)throw new Error("Generator is already running") if("completed"===n){if("throw"===o)throw i return E()}for(r.method=o,r.arg=i;;){var a=r.delegate if(a){var c=P(a,r) if(c){if(c===s)continue return c}}if("next"===r.method)r.sent=r._sent=r.arg else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg) n="executing" var u=f(e,t,r) if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===s)continue return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function P(e,t){var r=t.method,n=e.iterator[r] if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),s var o=f(n,e.iterator,t.arg) if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,s var i=o.arg return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function _(e){var t={tryLoc:e[0]} 1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{} t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[i] if(t)return t.call(e) if("function"==typeof e.next)return e if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc") if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}function v(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void r(l)}c.done?t(u):Promise.resolve(u).then(n,o)}function b(e){return function(){var t=this,r=arguments return new Promise((function(n,o){var i=e.apply(t,r) function a(e){v(i,n,o,a,c,"next",e)}function c(e){v(i,n,o,a,c,"throw",e)}a(void 0)}))}}function m(e,t){for(var r=0;re.length)&&(t=e.length) for(var r=0,n=new Array(t);r0||e&&e.length<6}},{key:"moreBefore",get:function(){return this.rows.length>=50&&this.canLoadMore}},{key:"totalBefore",get:function(){return this.total-this.rows.length}},{key:"regexSearch",get:function(){var e=this.search if(e&&e.length>2&&"/"===e[0]){var t=e.match(/\/(.*)\/(.*)/) if(t&&3===t.length)try{return new RegExp(t[1],t[2])}catch(r){}}return null}},{key:"solve",value:(p=b(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.solve() case 2:this.reload() case 3:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"selectRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.currentRow r&&r.set("selected",!1),e.set("selected",!0) var n=t.messageIndex||0,o=n===this.currentGroupedMessagesPosition this.setProperties({currentRow:e,loadingEnv:!1,currentGroupedMessagesPosition:n,currentEnvPosition:0}),o&&this.notifyPropertyChange("currentGroupedMessagesPosition") var i=this.currentMessage&&!this.currentMessage.env this.fetchEnv({force:i})}},{key:"tabChanged",value:function(e){this.setProperties({currentTab:e,loadingEnv:!1}),this.fetchEnv()}},{key:"groupedMessageChanged",value:function(e){this.setProperties({currentGroupedMessagesPosition:e,currentEnvPosition:0}) var t=this.currentMessage&&!this.currentMessage.env this.fetchEnv({force:t})}},{key:"envChanged",value:function(e){this.set("currentEnvPosition",e),this.fetchEnv()}},{key:"fetchEnv",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this.currentMessage if(t.force||r&&!r.env&&"env"===this.currentTab)return this.set("loadingEnv",!0),r.fetchEnv().finally((function(){return e.set("loadingEnv",!1)}))}},{key:"findEquivalentMessageIndex",value:function(e){var t,r=0 return null!=e&&e.group&&null!==(t=this.currentRow)&&void 0!==t&&t.group&&e.key===this.currentRow.key&&(r=e.messages.mapBy("key").indexOf(this.currentMessage.key),r=Math.max(0,r)),r}},{key:"updateSelectedRow",value:function(){var e,t=null===(e=this.currentRow)||void 0===e?void 0:e.key if(t&&this.rows){var r=this.rows.find((function(e){return e.key===t})) if(r){var n=this.findEquivalentMessageIndex(r) this.selectRow(r,{messageIndex:n})}else this.setProperties({currentRow:null,currentEnvPosition:0,currentGroupedMessagesPosition:0})}}},{key:"load",value:(s=b(h().mark((function e(r){var n,i,a,c,u,l,f,s,p,y return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r||(r={}),n={filter:this.filter.join("_")},this.search&&this.search.length>0&&(n.search=this.search,this.regexSearch&&(n.regex_search="true")),r.before&&(n.before=r.before,r.knownGroups&&(n.known_groups=r.knownGroups)),r.after&&(n.after=r.after),this.set("loading",!0),e.prev=6,e.next=9,(0,t.ajax)("/messages.json",{data:n,method:"POST"}) case 9:if(i=e.sent,0===(0,o.compare)(i.filter,this.filter)){e.next=12 break}return e.abrupt("return") case 12:if(0===(0,o.compare)(i.search,this.search)){e.next=14 break}return e.abrupt("return") case 14:if(!(i.messages.length>0)){e.next=56 break}if(a=this.toObjects(i.messages),!r.before){e.next=20 break}this.rows.unshiftObjects(a),e.next=56 break case 20:c=d(a),e.prev=21,c.s() case 23:if((u=c.n()).done){e.next=46 break}l=u.value,f=d(this.rows),e.prev=26,f.s() case 28:if((s=f.n()).done){e.next=36 break}if((p=s.value).key===l.key){e.next=32 break}return e.abrupt("continue",34) case 32:this.rows.removeObject(p),this.currentRow===p&&(y=this.findEquivalentMessageIndex(l),this.selectRow(l,{messageIndex:y})) case 34:e.next=28 break case 36:e.next=41 break case 38:e.prev=38,e.t0=e.catch(26),f.e(e.t0) case 41:return e.prev=41,f.f(),e.finish(41) case 44:e.next=23 break case 46:e.next=51 break case 48:e.prev=48,e.t1=e.catch(21),c.e(e.t1) case 51:return e.prev=51,c.f(),e.finish(51) case 54:this.rows.addObjects(a),a.length>0&&(0,t.increaseTitleCount)(a.length) case 56:return this.set("total",i.total),e.abrupt("return",i) case 58:return e.prev=58,this.set("loading",!1),e.finish(58) case 61:case"end":return e.stop()}}),e,this,[[6,,58,61],[21,48,51,54],[26,38,41,44]])}))),function(e){return s.apply(this,arguments)})},{key:"reload",value:(f=b(h().mark((function e(){var t return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.set("total",0),this.rows.clear(),e.next=4,this.load() case 4:t=e.sent,this.updateCanLoadMore(t) case 6:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"updateCanLoadMore",value:function(e){e&&(e.messages.length<50?this.set("canLoadMore",!1):this.set("canLoadMore",!0))}},{key:"loadMore",value:function(){if(0!==this.rows.length){var e=this.rows[this.rows.length-1],t=e.group?e.row_id:e.key this.load({after:t})}else this.load({})}},{key:"showMoreBefore",value:(l=b(h().mark((function e(){var t,r,n,o return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.rows[0],r=t.group?t.row_id:t.key,n=this.rows.filterBy("group").mapBy("regex"),e.next=5,this.load({before:r,knownGroups:n}) case 5:o=e.sent,this.updateCanLoadMore(o) case 7:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"toObjects",value:function(e){return e.map((function(e){return e.group?n.default.create(e):r.default.create(e)}))}}],c&&m(i.prototype,c),u&&m(i,u),Object.defineProperty(i,"prototype",{writable:!1}),v}(i.default),x(y.prototype,"filter",[c],Object.getOwnPropertyDescriptor(y.prototype,"filter"),y.prototype),x(y.prototype,"currentMessage",[u],Object.getOwnPropertyDescriptor(y.prototype,"currentMessage"),y.prototype),x(y.prototype,"hideCountInLoadMore",[l],Object.getOwnPropertyDescriptor(y.prototype,"hideCountInLoadMore"),y.prototype),x(y.prototype,"moreBefore",[f],Object.getOwnPropertyDescriptor(y.prototype,"moreBefore"),y.prototype),x(y.prototype,"totalBefore",[s],Object.getOwnPropertyDescriptor(y.prototype,"totalBefore"),y.prototype),x(y.prototype,"regexSearch",[p],Object.getOwnPropertyDescriptor(y.prototype,"regexSearch"),y.prototype),y) e.default=R})) define("client-app/models/message",["exports","@ember/object/computed","@ember/object","client-app/lib/utilities","client-app/lib/preload"],(function(e,t,r,n,o){var i,a,c,u,l,f,s,p,y,d function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return e} var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag" function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(L){u=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new k(o||[]) return n(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=l var s={} function p(){}function y(){}function d(){}var v={} u(v,i,(function(){return this})) var b=Object.getPrototypeOf,m=b&&b(b(S([]))) m&&m!==t&&r.call(m,i)&&(v=m) var g=d.prototype=p.prototype=Object.create(v) function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(n,i,a,c){var u=f(e[n],e,i) if("throw"!==u.type){var l=u.arg,s=l.value return s&&"object"==_typeof(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function j(e,t,r){var n="suspendedStart" return function(o,i){if("executing"===n)throw new Error("Generator is already running") if("completed"===n){if("throw"===o)throw i return E()}for(r.method=o,r.arg=i;;){var a=r.delegate if(a){var c=P(a,r) if(c){if(c===s)continue return c}}if("next"===r.method)r.sent=r._sent=r.arg else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg) n="executing" var u=f(e,t,r) if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===s)continue return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function P(e,t){var r=t.method,n=e.iterator[r] if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),s var o=f(n,e.iterator,t.arg) if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,s var i=o.arg return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function _(e){var t={tryLoc:e[0]} 1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{} t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[i] if(t)return t.call(e) if("function"==typeof e.next)return e if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion if("root"===i.tryLoc)return n("end") if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc") if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n] if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t] if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t] if(r.tryLoc===e){var n=r.completion if("throw"===n.type){var o=n.arg x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}function v(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void r(l)}c.done?t(u):Promise.resolve(u).then(n,o)}function b(e,t){for(var r=0;rthis.MAX_LEN}},{key:"shareUrl",get:function(){return"".concat((0,o.getRootPath)(),"/show/").concat(this.key)}},{key:"displayMessage",get:function(){var e=this.message return!this.expanded&&this.message.length>this.MAX_LEN&&(e=this.message.substr(0,this.MAX_LEN)),e}},{key:"canSolve",get:function(){return(Array.isArray(this.env)?this.env.map((function(e){return e.application_version})).compact().join(""):this.env&&this.env.application_version)&&this.backtrace&&this.backtrace.length>0}},{key:"rowClass",get:function(){switch(this.severity){case 0:return"debug" case 1:return"info" case 2:return"warn" case 3:return"error" case 4:return"fatal" default:return"unknown"}}},{key:"glyph",get:function(){switch(this.severity){case 0:case 1:return"" case 2:return"exclamation-circle" case 3:case 4:return"times-circle" default:return"question-circle"}}},{key:"prefix",get:function(){return"fas"}},{key:"klass",get:function(){switch(this.severity){case 0:case 1:return"" case 2:return"warning" case 3:return"error" case 4:return"fatal" default:return"unknown"}}},{key:"fetchEnv",value:(a=h().mark((function e(){var t return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.ajax)("/fetch-env/".concat(this.key,".json")) case 2:t=e.sent,this.set("env",t) case 4:case"end":return e.stop()}}),e,this)})),c=function(){var e=this,t=arguments return new Promise((function(r,n){var o=a.apply(e,t) function i(e){v(o,r,n,i,c,"next",e)}function c(e){v(o,r,n,i,c,"throw",e)}i(void 0)}))},function(){return c.apply(this,arguments)})},{key:"expand",value:function(){this.set("expanded",!0)}},{key:"solve",value:function(){return(0,n.ajax)("/solve/".concat(this.key),{type:"PUT"})}},{key:"destroy",value:function(){return(0,n.ajax)("/message/".concat(this.key),{type:"DELETE"})}},{key:"protect",value:function(){return this.set("protected",!0),(0,n.ajax)("/protect/".concat(this.key),{type:"PUT"})}},{key:"unprotect",value:function(){return this.set("protected",!1),(0,n.ajax)("/unprotect/".concat(this.key),{type:"DELETE"})}}],r&&b(t.prototype,r),i&&b(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.default),d=P(y.prototype,"showCount",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P(y.prototype,"hasMore",[a],Object.getOwnPropertyDescriptor(y.prototype,"hasMore"),y.prototype),P(y.prototype,"shareUrl",[c],Object.getOwnPropertyDescriptor(y.prototype,"shareUrl"),y.prototype),P(y.prototype,"displayMessage",[u],Object.getOwnPropertyDescriptor(y.prototype,"displayMessage"),y.prototype),P(y.prototype,"canSolve",[l],Object.getOwnPropertyDescriptor(y.prototype,"canSolve"),y.prototype),P(y.prototype,"rowClass",[f],Object.getOwnPropertyDescriptor(y.prototype,"rowClass"),y.prototype),P(y.prototype,"glyph",[s],Object.getOwnPropertyDescriptor(y.prototype,"glyph"),y.prototype),P(y.prototype,"klass",[p],Object.getOwnPropertyDescriptor(y.prototype,"klass"),y.prototype),y) e.default=_})),define("client-app/models/pattern-item",["exports","@ember/object/computed","@ember/object"],(function(e,t,r){var n,o,i,a function c(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,c=!1 return{s:function(){r=r.call(e)},n:function(){var e=r.next() return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r0 e.setProperties({showCodedSuppression:l,codedSuppression:o,customSuppression:a,grouping:c})}}],l&&o(t.prototype,l),f&&o(t,f),Object.defineProperty(t,"prototype",{writable:!1}),p}(t.default) e.default=l})),define("client-app/routes/show",["exports","@ember/routing/route","client-app/models/message","client-app/lib/utilities"],(function(e,t,r,n){function o(e,t){for(var r=0;r