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