"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.containsClassName = void 0;
/**
 * IE11 doesn't support classList to SVGElements
 **/
var containsClassName = exports.containsClassName = function containsClassName(node, className) {
  if (!node) {
    return false;
  }
  if (node.classList && node.classList.contains) {
    return node.classList.contains(className);
  }
  if (!node.className) {
    return false;
  }
  var classNames = typeof node.className.baseVal === 'string' ? node.className.baseVal : node.className;
  return classNames.split(' ').indexOf(className) !== -1;
};