"undefined"!==typeofdocument&&!("classList"indocument.createElement("a"))&&function(f){varf=(f.HTMLElement||f.Element).prototype,g=Object,d=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},a=Array.prototype.indexOf||function(b){for(vara=0,c=this.length;a<c;a++)if(ainthis&&this[a]===b)returna;return-1},b=function(b,a){this.name=b;this.code=DOMException[b];this.message=a},c=function(c,e){if(""===e)thrownewb("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))thrownewb("INVALID_CHARACTER_ERR",
"String contains an invalid character");returna.call(c,e)},e=function(b){for(vara=d.call(b.className),a=a?a.split(/\s+/):[],c=0,e=a.length;c<e;c++)this.push(a[c]);this._updateClassName=function(){b.className=this.toString()}},i=e.prototype=[],h=function(){returnnewe(this)};b.prototype=Error.prototype;i.item=function(b){returnthis[b]||null};i.contains=function(b){return-1!==c(this,b+"")};i.add=function(b){b+="";-1===c(this,b)&&(this.push(b),this._updateClassName())};i.remove=function(b){b=c(this,
(function(){functionf(a,b,c){vare,d;"undefined"!==typeofa.hasAttribute?(a.hasAttribute(b)&&(e=a.getAttribute(b)),d=!0):"undefined"!==typeofa[b]?(e=a[b],d=!1):"class"===b&&"undefined"!==typeofa.className&&(b="className",e=a.className,d=!1);if("undefined"===typeofe&&("undefined"===typeofc||null===c))returnconsole.log(c),console.log(a),console.log("Element does not have the selected attribute"),null;if("undefined"===typeofc)returne;"undefined"!==typeofc&&null!==c?!0===d?a.setAttribute(b,c):
c,null;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){"undefined"===typeofa&&(a="block");this.css("display",a)},attr:function(a,b){varc=this.el;if(1<c.length&&"undefined"===typeofb)console.log(c),console.log("Must be a singular element");elseif(1<c.length&&"undefined"!==typeofb)$_.each(function(c){returnf(c,
_listener:d})):console.log("Failed to _attach event:"+a+" on "+b)},g=function(b,a,d){if("undefined"!==typeofb.detachEvent){varf=b.KIS_0_6_0;if(f&&f.listeners&&f.listeners[a])for(varh=f.listeners[a],g=h.length,k=0;k<g;k++)if(h[k].callback===d){b.detachEvent("on"+a,h[k]._listener);h.splice(k,1);0===h.length&&deletef.listeners[a];break}}});d=function(b,a,e,i){varh,j;if(typeofb==="undefined"){console.log(arguments);console.log(a);returnfalse}if(a.match(/^([\w\-]+)$/))i===true?f(b,a,e):g(b,a,e);
"array"!==$_.type(a)&&(a=this.object_values(a));c=d.length;if(c!==a.length)returnconsole.log("Object combine requires two arrays of the same size"),!1;for(e=0;e<c;e++)b[d[e]]=a[e];returnb},object_merge:function(){vard=Array.prototype.slice.call(arguments),a=d.length,b={},c,e=0,f,g,j;c=!0;for(f=0;f<a;f++)if("array"!==$_.type(d[f])){c=!1;break}if(c){b=[];for(f=0;f<a;f++)b=b.contact(d[f]);returnb}for(j=f=0;f<a;f++)if(c=d[f],"array"==$_.type(c)){g=0;for(e=c.length;g<e;g++)b[j++]=c[g]}elsefor(ginc)c.hasOwnProperty(g)&&