"undefined"!==typeofdocument&&!("classList"indocument.createElement("a"))&&function(g){varg=(g.HTMLElement||g.Element).prototype,f=Object,c=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,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");returnb.call(d,e)},e=function(a){for(varb=c.call(a.className),b=b?b.split(/\s+/):[],d=0,e=b.length;d<e;d++)this.push(b[d]);this._updateClassName=function(){a.className=this.toString()}},h=e.prototype=[],i=function(){returnnewe(this)};a.prototype=Error.prototype;h.item=function(a){returnthis[a]||null};h.contains=function(a){return-1!==d(this,a+"")};h.add=function(a){a+="";-1===d(this,a)&&(this.push(a),this._updateClassName())};h.remove=function(a){a=d(this,
(function(){functiong(b,a,d){vare,c;"undefined"!==typeofb.hasAttribute?(b.hasAttribute(a)&&(e=b.getAttribute(a)),c=!0):"undefined"!==typeofb[a]?(e=b[a],c=!1):"class"===a&&"undefined"!==typeofb.className&&(a="className",e=b.className,c=!1);if("undefined"===typeofe&&("undefined"===typeofd||null===d))returnconsole.log(d),console.log(b),console.log("Element does not have the selected attribute"),null;if("undefined"===typeofd)returne;"undefined"!==typeofd&&null!==d?!0===c?b.setAttribute(a,d):
d,null;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){"undefined"===typeofb&&(b="block");this.css("display",b)},attr:function(b,a){vard=this.el;if(1<d.length&&"undefined"===typeofa)console.log(d),console.log("Must be a singular element");elseif(1<d.length&&"undefined"!==typeofa)$_.each(function(d){returng(d,
_listener:h})):console.log("Failed to _attach event:"+b+" on "+a)},f=function(a,b,c){if("undefined"!==typeofa.detachEvent){varh=a.KIS_0_6_0;if(h&&h.listeners&&h.listeners[b])for(varf=h.listeners[b],g=f.length,k=0;k<g;k++)if(f[k].callback===c){a.detachEvent("on"+b,f[k]._listener);f.splice(k,1);0===f.length&&deleteh.listeners[b];break}}});c=function(a,b,e,h){vari,j;if(typeofa==="undefined"){console.log(arguments);console.log(b);returnfalse}if(b.match(/^([\w\-]+)$/))h===true?g(a,b,e):f(a,b,e);
"array"!==$_.type(b)&&(b=this.object_values(b));d=c.length;if(d!==b.length)returnconsole.log("Object combine requires two arrays of the same size"),!1;for(e=0;e<d;e++)a[c[e]]=b[e];returna},object_merge:function(){varc=Array.prototype.slice.call(arguments),b=c.length,a={},d,e=0,f,g,j;d=!0;for(f=0;f<b;f++)if("array"!==$_.type(c[f])){d=!1;break}if(d){a=[];for(f=0;f<b;f++)a=a.contact(c[f]);returna}for(j=f=0;f<b;f++)if(d=c[f],"array"==$_.type(d)){g=0;for(e=d.length;g<e;g++)a[j++]=d[g]}elsefor(gind)d.hasOwnProperty(g)&&