{"version":3,"file":"app.min.js","sources":["app.js"],"sourcesContent":["if (typeof jQuery === \"undefined\") {\r\n throw new Error(\"jQuery plugins need to be before this file\");\r\n}\r\n\r\n/**\r\n * permite dar formato a un string\r\n * @example 'este es un {0}, con valor {1}'.formatter('ejemplo', '5')\r\n */\r\nString.prototype.formatter = function () {\r\n var s = this,\r\n i = arguments.length;\r\n\r\n while (i--) {\r\n s = s.replace(new RegExp(\"\\\\{\" + i + \"\\\\}\", \"gm\"), arguments[i]);\r\n }\r\n return s;\r\n};\r\n\r\nvar app = {\r\n //Tomada de underscore.js\r\n // Returns a function, that, as long as it continues to be invoked, will not\r\n // be triggered. The function will be called after it stops being called for\r\n // N milliseconds. If `immediate` is passed, trigger the function on the\r\n // leading edge, instead of the trailing.\r\n debounce: function (func, wait, immediate) {\r\n var timeout;\r\n return function () {\r\n var context = this,\r\n args = arguments;\r\n var later = function () {\r\n timeout = null;\r\n if (!immediate) func.apply(context, args);\r\n };\r\n var callNow = immediate && !timeout;\r\n clearTimeout(timeout);\r\n timeout = setTimeout(later, wait);\r\n if (callNow) func.apply(context, args);\r\n };\r\n },\r\n randomKey: function () {\r\n let array = new Uint32Array(1);\r\n window.crypto.getRandomValues(array);\r\n return array[0];\r\n },\r\n alertas: {\r\n warning: function (contenido, element) {\r\n let _mensaje =\r\n \"