export var makeBackdropPath = function makeBackdropPath(_ref) {
  var width = _ref.width,
    height = _ref.height,
    _ref$left = _ref.left,
    left = _ref$left === void 0 ? 0 : _ref$left,
    _ref$top = _ref.top,
    top = _ref$top === void 0 ? 0 : _ref$top;
  var padding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  var isCircular = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  var px = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
  var py = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
  var _window = window,
    innerWidth = _window.innerWidth,
    innerHeight = _window.innerHeight;
  var horizontalPadding = +px || padding;
  var verticalPadding = +py || padding;
  var w = width + horizontalPadding * 2;
  var h = height + verticalPadding * 2;
  var x = left - horizontalPadding;
  var y = top - verticalPadding;
  var r = 0;
  var circleSize = Math.max(w, h);
  if (isCircular) {
    return "M0,0h".concat(innerWidth, "v").concat(innerHeight, "h-").concat(innerWidth, " M").concat(left + width / 2 + circleSize / 2, ",").concat(top + height / 2, "a10,10 0 0 0 -").concat(circleSize, ",0a10,10 0 0 0 ").concat(circleSize, ",0");
  }
  return "M".concat(innerWidth, ",").concat(innerHeight, "H0V0H").concat(innerWidth, "V").concat(innerHeight, "ZM").concat(x + r, ",").concat(y, "a").concat(r, ",").concat(r, ",0,0,0-").concat(r, ",").concat(r, "V").concat(h + y - r, "a").concat(r, ",").concat(r, ",0,0,0,").concat(r, ",").concat(r, "H").concat(w + x - r, "a").concat(r, ",").concat(r, ",0,0,0,").concat(r, "-").concat(r, "V").concat(y + r, "a").concat(r, ",").concat(r, ",0,0,0-").concat(r, "-").concat(r, "Z\n  ");
};