[];a.listeners[b].push({callback:h,_listener:c})}elseconsole.log("Failed to _attach event:"+b+" on "+a)};g=function(a,b,c){if(typeofa.detachEvent!=="undefined"){varf=a.KIS_0_6_0;if(f&&f.listeners&&f.listeners[b])for(vare=f.listeners[b],g=e.length,i=0;i<g;i++)if(e[i].callback===c){a.detachEvent("on"+b,e[i]._listener);e.splice(i,1);e.length===0&&deletef.listeners[b];break}}}}e=function(a,b,h,f){varj,k;if(typeofa==="undefined"){console.log(arguments);console.log(b);returnfalse}if(b.match(/^([\w\-]+)$/))f===
"undefined"!==typeofdocument&&!("classList"indocument.createElement("a"))&&function(c){varc=(c.HTMLElement||c.Element).prototype,g=Object,e=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},b=Array.prototype.indexOf||function(a){for(varb=0,d=this.length;b<d;b++)if(binthis&&this[b]===a)returnb;return-1},a=function(a,b){this.name=a;this.code=DOMException[a];this.message=b},d=function(d,c){if(c==="")thrownewa("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(c))thrownewa("INVALID_CHARACTER_ERR",
"String contains an invalid character");returnb.call(d,c)},h=function(a){for(varb=e.call(a.className),b=b?b.split(/\s+/):[],d=0,c=b.length;d<c;d++)this.push(b[d]);this._updateClassName=function(){a.className=this.toString()}},f=h.prototype=[],j=function(){returnnewh(this)};a.prototype=Error.prototype;f.item=function(a){returnthis[a]||null};f.contains=function(a){returnd(this,a+"")!==-1};f.add=function(a){a=a+"";if(d(this,a)===-1){this.push(a);this._updateClassName()}};f.remove=function(a){a=
(function(){functionc(b,a,d){varc,e;if(typeofb.hasAttribute!=="undefined"){b.hasAttribute(a)&&(c=b.getAttribute(a));e=true}elseif(typeofb[a]!=="undefined"){c=b[a];e=false}elseif(a==="class"&&typeofb.className!=="undefined"){a="className";c=b.className;e=false}if(typeofc==="undefined"&&(typeofd==="undefined"||d===null)){console.log(d);console.log(b);console.log("Element does not have the selected attribute");returnnull}if(typeofd==="undefined")returnc;typeofd!=="undefined"&&d!==null?e===
c;returnnull}if(b.style[e[a]]){b.style[e[a]]=c;returnnull}console.log("Property "+a+" nor an equivalent seems to exist")}$_.ext("dom",{addClass:function(b){$_.each(function(a){a.classList.add(b)})},removeClass:function(b){$_.each(function(a){a.classList.remove(b)})},hide:function(){this.css("display","none")},show:function(b){typeofb==="undefined"&&(b="block");this.css("display",b)},attr:function(b,a){vard=this.el;if(d.length>1&&typeofa==="undefined"){console.log(d);console.log("Must be a singular element")}elseif(d.length>