{I" class:ETI"BundledAsset;FI"logical_path;TI"application.js;TI" pathname;TI"0$root/app/assets/javascripts/application.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+‹Š—RI" length;Ti¸I" digest;TI"%516b48fa1b64143e6dda489dae6a055c;FI" source;TI"¸(function() { var Settings, handlers, lena; if (window.lena !== void 0) { throw new Error('Lena has already been loaded!'); } Settings = (function() { var elements, read; elements = document.getElementsByTagName('script'); read = function(attribute) { var attributes, el; attributes = (function() { var _i, _len, _results; _results = []; for (_i = 0, _len = elements.length; _i < _len; _i++) { el = elements[_i]; _results.push(el.getAttribute(attribute)); } return _results; })(); attributes = (function() { var _i, _len, _results; _results = []; for (_i = 0, _len = attributes.length; _i < _len; _i++) { attribute = attributes[_i]; if (attribute) { _results.push(attribute); } } return _results; })(); return attributes[0]; }; return { destination: read('data-lena-destination'), submitURL: read('data-lena-remote-url') }; })(); handlers = { remote: function(data) { var img, key, query, value; query = (function() { var _results; _results = []; for (key in data) { value = data[key]; if (value) { _results.push("" + key + "=" + (encodeURIComponent(value))); } } return _results; })(); img = new Image(); return img.src = "" + Settings.submitURL + "?" + (query.join('&')); }, local: function(data) { var message; message = data.message; if (data.stacktrace) { message = "" + message + "\n" + data.stacktrace; } if (typeof console !== "undefined" && console !== null ? console.warn : void 0) { return console.warn(message); } else if (typeof console !== "undefined" && console !== null ? console.log : void 0) { return console.log(message); } else { return alert(message); } } }; lena = function(message, stacktrace, destinations) { var d, data, e, _i, _len, _results; if (destinations == null) { destinations = []; } if (stacktrace === void 0) { try { throw new Error(''); } catch (_error) { e = _error; stacktrace = e.stack; } try { stacktrace = stacktrace.split("\n").slice(2).join("\n"); } catch (_error) {} try { stacktrace || (stacktrace = 'unsupported'); } catch (_error) {} } data = { message: message, stacktrace: stacktrace }; _results = []; for (_i = 0, _len = destinations.length; _i < _len; _i++) { d = destinations[_i]; _results.push(handlers[d](data)); } return _results; }; lena.log = function(message, stacktrace) { var destinations; destinations = []; switch (Settings.destination) { case 'local': destinations = ['local']; break; case 'remote': destinations = ['remote']; break; default: destinations = ['local', 'remote']; } return lena(message, stacktrace, destinations); }; lena.remote = function(message, stacktrace) { return lena(message, stacktrace, ['remote']); }; lena.local = function(message, stacktrace) { return lena(message, stacktrace, ['local']); }; window.lena = lena; window.lena.onerror = window.onerror; window.onerror = function(exception, url, linenum) { lena.log("" + exception + "\nResource: " + url + ":" + linenum, null); if (lena.onerror) { return lena.onerror(); } else { return true; } }; }).call(this); // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // compiled file. // // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details // about supported directives. // ; ;TI"required_assets_digest;TI"%af248b400b76257e46930abf9b6f212e;FI" _version;TI"%ad5851230fbdd4f8a862674697158df2;F