(function(window){"use strict";function classReg(s){return new RegExp("(^|\\s+)"+s+"(\\s+|$)")}function toggleClass(s,a){var e=hasClass(s,a)?removeClass:addClass;e(s,a)}var hasClass,addClass,removeClass;"classList"in document.documentElement?(hasClass=function(s,a){return s.classList.contains(a)},addClass=function(s,a){s.classList.add(a)},removeClass=function(s,a){s.classList.remove(a)}):(hasClass=function(s,a){return classReg(a).test(s.className)},addClass=function(s,a){hasClass(s,a)||(s.className=s.className+" "+a)},removeClass=function(s,a){s.className=s.className.replace(classReg(a)," ")});var classie={hasClass:hasClass,addClass:addClass,removeClass:removeClass,toggleClass:toggleClass,has:hasClass,add:addClass,remove:removeClass,toggle:toggleClass};"function"==typeof define&&define.amd?define(classie):window.classie=classie;})( window );
