typeofdocument!=="undefined"&&!("classList"indocument.createElement("a"))&&function(c){varc=(c.HTMLElement||c.Element).prototype,e=Object,g=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},a=Array.prototype.indexOf||function(a){for(vard=0,b=this.length;d<b;d++)if(dinthis&&this[d]===a)returnd;return-1},b=function(a,d){this.name=a;this.code=DOMException[a];this.message=d},d=function(d,f){if(f==="")thrownewb("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(f))thrownewb("INVALID_CHARACTER_ERR",
"String contains an invalid character");returna.call(d,f)},f=function(a){for(vard=g.call(a.className),d=d?d.split(/\s+/):[],b=0,f=d.length;b<f;b++)this.push(d[b]);this._updateClassName=function(){a.className=this.toString()}},h=f.prototype=[],j=function(){returnnewf(this)};b.prototype=Error.prototype;h.item=function(a){returnthis[a]||null};h.contains=function(a){a+="";returnd(this,a)!==-1};h.add=function(a){a+="";d(this,a)===-1&&(this.push(a),this._updateClassName())};h.remove=function(a){a+=
(function(){functionc(a,b,d){varf,h;if(typeofa.hasAttribute!=="undefined")a.hasAttribute(b)&&(f=a.getAttribute(b)),h=true;elseif(typeofa[b]!=="undefined")f=a[b],h=false;elseif(b==="class"&&typeofa.className!=="undefined")b="className",f=a.className,h=false;if(typeoff==="undefined"&&(typeofd==="undefined"||d===null))console.log(d),console.log(a),console.log("Element does not have the selected attribute");else{if(typeofd==="undefined")returnf;typeofd!=="undefined"&&d!==null?h===true?a.setAttribute(b,
a.style[f[b]]=d:console.log("Property "+b+" nor an equivalent seems to exist")}$_.ext("dom",{addClass:function(a){$_.each(function(b){b.classList.add(a)})},removeClass:function(a){$_.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){vard=this.el;if(d.length>1&&typeofb==="undefined")console.log(d),console.log("Must be a singular element");elseif(d.length>1&&typeofb!==
f=0;$_.type(c)!=="array"&&(c=this.object_values(c));$_.type(a)!=="array"&&(a=this.object_values(a));d=c.length;if(d!==a.length)returnconsole.log("Object combine requires two arrays of the same size"),false;for(f=0;f<d;f++)b[c[f]]=a[f];returnb},object_merge:function(){varc=Array.prototype.slice.call(arguments),a=c.length,b={},d,f=0,h,e,i;d=true;for(h=0;h<a;h++)if($_.type(c[h])!=="array"){d=false;break}if(d){b=[];for(h=0;h<a;h++)b=b.contact(c[h]);returnb}for(h=0,i=0;h<a;h++)if(d=c[h],$_.type(d)==
a.listeners[b]||[],a.listeners[b].push({callback:c,listener:g})):console.log("Failed to attach event:"+b+" on "+a)},e=function(a,b,c){if(typeofa.detachEvent!=="undefined"){vare=a.KIS_0_3_0;if(e&&e.listeners&&e.listeners[b])for(varg=e.listeners[b],l=g.length,k=0;k<l;k++)if(g[k].callback===c){a.detachEvent("on"+b,g[k].listener);g.splice(k,1);g.length===0&&deletee.listeners[b];break}}});g=function(a,b,h,j){vari,l;if(typeofa==="undefined")returnconsole.log(arguments),console.log(b),false;if(b.match(/^([\w\-]+)$/))j===