typeofdocument!=="undefined"&&!("classList"indocument.createElement("a"))&&function(c){varc=(c.HTMLElement||c.Element).prototype,d=Object,e=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},b=Array.prototype.indexOf||function(a){for(varb=0,f=this.length;b<f;b++)if(binthis&&this[b]===a)returnb;return-1},a=function(a,b){this.name=a;this.code=DOMException[a];this.message=b},f=function(f,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(f,c)},h=function(a){for(varb=e.call(a.className),b=b?b.split(/\s+/):[],f=0,c=b.length;f<c;f++)this.push(b[f]);this._updateClassName=function(){a.className=this.toString()}},g=h.prototype=[],l=function(){returnnewh(this)};a.prototype=Error.prototype;g.item=function(a){returnthis[a]||null};g.contains=function(a){a+="";returnf(this,a)!==-1};g.add=function(a){a+="";f(this,a)===-1&&(this.push(a),this._updateClassName())};g.remove=function(a){a+=
(function(){functionc(b,a,f){varc,d;if(typeofb.hasAttribute!=="undefined")b.hasAttribute(a)&&(c=b.getAttribute(a)),d=true;elseif(typeofb[a]!=="undefined")c=b[a],d=false;elseif(a==="class"&&typeofb.className!=="undefined")a="className",c=b.className,d=false;if(typeofc==="undefined"&&(typeoff==="undefined"||f===null))console.log(f),console.log(b),console.log("Element does not have the selected attribute");else{if(typeoff==="undefined")returnc;typeoff!=="undefined"&&f!==null?d===true?b.setAttribute(a,
b.style[c[a]]=f: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){varf=this.el;if(f.length>1&&typeofa==="undefined")console.log(f),console.log("Must be a singular element");elseif(f.length>1&&typeofa!==
d){vare={},b,a=0;$_.type(c)!=="array"&&(c=this.object_values(c));$_.type(d)!=="array"&&(d=this.object_values(d));b=c.length;if(b!==d.length)returnconsole.log("Object combine requires two arrays of the same size"),false;for(a=0;a<b;a++)e[c[a]]=d[a];returne},object_merge:function(){varc=Array.prototype.slice.call(arguments),d=c.length,e={},b,a=0,f,h,g;b=true;for(f=0;f<d;f++)if($_.type(c[f])!=="array"){b=false;break}if(b){e=[];for(f=0;f<d;f++)e=e.contact(c[f]);returne}for(f=0,g=0;f<d;f++)if(b=c[f],
a.listeners[b]||[],a.listeners[b].push({callback:c,listener:e})):console.log("Failed to attach event:"+b+" on "+a)},d=function(a,b,c){if(typeofa.detachEvent!=="undefined"){vard=a.KIS_0_3_0;if(d&&d.listeners&&d.listeners[b])for(vare=d.listeners[b],i=e.length,k=0;k<i;k++)if(e[k].callback===c){a.detachEvent("on"+b,e[k].listener);e.splice(k,1);e.length===0&&deleted.listeners[b];break}}});e=function(a,b,g,l){varj,i;if(typeofa==="undefined")returnconsole.log(arguments),console.log(b),false;if(b.match(/^([\w\-]+)$/))l===