(function(e){functionk(a,b,c){vard,g;if(typeofa.hasAttribute!=="undefined"){a.hasAttribute(b)&&(d=a.getAttribute(b));g=true}elseif(typeofa[b]!=="undefined"){d=a[b];g=false}elseif(b==="class"&&typeofa.className!=="undefined"){b="className";d=a.className;g=false}if(typeofd==="undefined"&&(typeofc==="undefined"||c===null)){console.log(c);console.log(a);console.log("Element does not have the selected attribute");returnnull}if(typeofc==="undefined")returnd;typeofc!=="undefined"&&c!==null?
c;returnnull}if(a.style[d[b]]){a.style[d[b]]=c;returnnull}console.log("Property "+b+" nor an equivalent seems to exist")}typeofdocument!=="undefined"&&!("classList"indocument.createElement("a"))&&function(a){vara=(a.HTMLElement||a.Element).prototype,b=Object,c=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},d=Array.prototype.indexOf||function(a){for(varb=0,c=this.length;b<c;b++)if(binthis&&this[b]===a)returnb;return-1},g=function(a,b){this.name=a;this.code=DOMException[a];
this.message=b},e=function(a,b){if(b==="")thrownewg("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(b))thrownewg("INVALID_CHARACTER_ERR","String contains an invalid character");returnd.call(a,b)},n=function(a){for(varb=c.call(a.className),b=b?b.split(/\s+/):[],d=0,g=b.length;d<g;d++)this.push(b[d]);this._updateClassName=function(){a.className=this.toString()}},f=n.prototype=[],h=function(){returnnewn(this)};g.prototype=Error.prototype;f.item=function(a){returnthis[a]||
b.defineProperty(a,"classList",f)}}}elseb.prototype.__defineGetter__&&a.__defineGetter__("classList",h)}(self);e.ext("dom",{addClass:function(a){e.each(function(b){b.classList.add(a)})},removeClass:function(a){e.each(function(b){b.classList.remove(a)})},hide:function(){this.css("display","none")},show:function(a){typeofa==="undefined"&&(a="block");this.css("display",a)},attr:function(a,b){varc=this.el;if(c.length>1&&typeofb==="undefined"){console.log(c);console.log("Must be a singular element")}elseif(c.length>
function(a,b,c){functiond(a){c.apply(a)}if(typeofa.attachEvent!=="undefined"){l(b,c);a.attachEvent("on"+b,d);a=a.KIS_0_6_0=a.KIS_0_6_0||{};a.listeners=a.listeners||{};a.listeners[b]=a.listeners[b]||[];a.listeners[b].push({callback:c,_listener:d})}elseconsole.log("Failed to _attach event:"+b+" on "+a)};l=function(a,b,c){if(typeofa.detachEvent!=="undefined"){vard=a.KIS_0_6_0;if(d&&d.listeners&&d.listeners[b])for(varg=d.listeners[b],e=g.length,f=0;f<e;f++)if(g[f].callback===c){a.detachEvent("on"+
[],c;for(cina)b.push(a[c]);returnb},array_combine:function(a,b){varc={},d,g=0;e.type(a)!=="array"&&(a=this.object_values(a));e.type(b)!=="array"&&(b=this.object_values(b));d=a.length;if(d!==b.length){console.log("Object combine requires two arrays of the same size");returnfalse}for(g=0;g<d;g++)c[a[g]]=b[g];returnc},object_merge:function(){vara=Array.prototype.slice.call(arguments),b=a.length,c={},d,g=0,f,h,i;d=true;for(f=0;f<b;f++)if(e.type(a[f])!=="array"){d=false;break}if(d){c=[];for(f=0;f<