this&&this[b]===a)returnb;return-1},a=function(a,b){this.name=a;this.code=DOMException[a];this.message=b},b=function(b,e){if(e==="")thrownewa("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))thrownewa("INVALID_CHARACTER_ERR","String contains an invalid character");returnc.call(b,e)},e=function(a){for(varb=d.call(a.className),b=b?b.split(/\s+/):[],c=0,e=b.length;c<e;c++)this.push(b[c]);this._updateClassName=function(){a.className=this.toString()}},f=e.prototype=[],
(function(){functiong(c,a,b){vare,f;if(typeofc.hasAttribute!=="undefined")c.hasAttribute(a)&&(e=c.getAttribute(a)),f=true;elseif(typeofc[a]!=="undefined")e=c[a],f=false;elseif(a==="class"&&typeofc.className!=="undefined")a="className",e=c.className,f=false;if(typeofe==="undefined"&&(typeofb==="undefined"||b===null))console.log(b),console.log(c),console.log("Element does not have the selected attribute");else{if(typeofb==="undefined")returne;typeofb!=="undefined"&&b!==null?f===true?c.setAttribute(a,
c.style[e[a]]=b:console.log("Property "+a+" nor an equivalent seems to exist")}$_.ext("dom",{addClass:function(c){$_.each(function(a){a.classList.add(c)})},removeClass:function(c){$_.each(function(a){a.classList.remove(c)})},hide:function(){this.css("display","none")},show:function(c){typeofc==="undefined"&&(c="block");this.css("display",c)},attr:function(c,a){varb=this.el;if(b.length>1&&typeofa==="undefined")console.log(b),console.log("Must be a singular element");elseif(b.length>1&&typeofa!==
e=0;$_.type(d)!=="array"&&(d=this.object_values(d));$_.type(c)!=="array"&&(c=this.object_values(c));b=d.length;if(b!==c.length)returnconsole.log("Object combine requires two arrays of the same size"),false;for(e=0;e<b;e++)a[d[e]]=c[e];returna},object_merge:function(){vard=Array.prototype.slice.call(arguments),c=d.length,a={},b,e=0,f,g,h;b=true;for(f=0;f<c;f++)if($_.type(d[f])!=="array"){b=false;break}if(b){a=[];for(f=0;f<c;f++)a=a.contact(d[f]);returna}for(f=0,h=0;f<c;f++)if(b=d[f],$_.type(b)==
[],a.listeners[b].push({callback:c,_listener:d})):console.log("Failed to _attach event:"+b+" on "+a)},h=function(a,b,c){if(typeofa.detachEvent!=="undefined"){vard=a.KIS_0_5_0;if(d&&d.listeners&&d.listeners[b])for(varg=d.listeners[b],h=g.length,j=0;j<h;j++)if(g[j].callback===c){a.detachEvent("on"+b,g[j]._listener);g.splice(j,1);g.length===0&&deleted.listeners[b];break}}});d=function(a,b,c,f){vark,i;if(typeofa==="undefined")returnconsole.log(arguments),console.log(b),false;if(b.match(/^([\w\-]+)$/))f===
(function(){if($_.ajax!=="undefined"){varg,h;g={};h={};$_.ext("template",{get:function(d){varc;c=this.el.innerHTML;if(c==="")console.log("Template is empty or cannot be found");elsereturng[d]=c},parse:function(d,c){vara=g[d],b=[],b=[],e=0,f=e=0,k=0,i="",j={},m="",l,a=String(a).replace(/\s+/gim," "),a=a.replace(/>\s+</gim,"><"),a=a.replace(/>\s+\{/gim,">{"),a=a.replace(/\}\s+</gim,"}<"),b=a.match(/\{([A-Z0-9_\-]+)\}(.*)\{\/\1\}/gim);if(b!=null){e=b.length;for(f=0;f<e;f++){a=a.replace(b[f],"{"+
f=f.querySelectorAll("section")[0];f.innerHTML=a;f=f.querySelectorAll('[src=""], [href=""]');for(linf)f[l].parentNode&&f[l].parentNode.removeChild(f[l]);returnh[d]=a},apply:function(d,c,a){typeofc==="undefined"&&typeofa==="undefined"?this.el.innerHTML=typeofh[d]!=="undefined"?h[d]:d:$_.get(c,{},function(b){b===""?console.log("Template is empty or can not be found"):(g[d]=b,b=this.parse(d,a),h[d]=b,this.el.innerHTML=b)})}})}})();