text: /**
   * --------------------------------------------------------------------------
   * TradeBotCoreUI Utilities (v2.0.3): get-style.js
   * Licensed under MIT
   * --------------------------------------------------------------------------
   */
  var getCssCustomProperties = function getCssCustomProperties() {
    var cssCustomProperties = {};
    var sheets = document.styleSheets;
    var cssText = '';
  
    for (var i = sheets.length - 1; i > -1; i--) {
      var rules = sheets[i].cssRules;
  
      for (var j = rules.length - 1; j > -1; j--) {
        if (rules[j].selectorText === '.ie-custom-properties') {
          cssText = rules[j].cssText;
          break;
        }
      }
  
      if (cssText) {
        break;
      }
    }
  
    cssText = cssText.substring(cssText.lastIndexOf('{') + 1, cssText.lastIndexOf('}'));
    cssText.split(';').forEach(function (property) {
      if (property) {
        var name = property.split(': ')[0];
        var value = property.split(': ')[1];
  
        if (name && value) {
          cssCustomProperties["--" + name.trim()] = value.trim();
        }
      }
    });
    return cssCustomProperties;
  };
  
  var minIEVersion = 10;
  
  var isIE1x = function isIE1x() {
    return Boolean(document.documentMode) && document.documentMode >= minIEVersion;
  };
  
  var isCustomProperty = function isCustomProperty(property) {
    return property.match(/^--.*/i);
  };
  
  var getStyle = function getStyle(property, element) {
    if (element === void 0) {
      element = document.body;
    }
  
    var style;
  
    if (isCustomProperty(property) && isIE1x()) {
      var cssCustomProperties = getCssCustomProperties();
      style = cssCustomProperties[property];
    } else {
      style = window.getComputedStyle(element, null).getPropertyValue(property).replace(/^\s/, '');
    }
  
    return style;
  };
  //# sourceMappingURL=get-style.js.map