var o, w;
function l() {
  if (w) return o;
  w = 1;
  var g = {
    "": !0,
    up: !0
  };
  function h(r) {
    if (typeof r != "string")
      return !1;
    var t = g[r.toLowerCase()];
    return t ? r.toLowerCase() : !1;
  }
  function n(r) {
    return typeof r == "number" && r >= 0 && r <= 100;
  }
  function b() {
    var r = 100, t = 3, i = 0, u = 100, c = 0, s = 100, f = "";
    Object.defineProperties(this, {
      width: {
        enumerable: !0,
        get: function() {
          return r;
        },
        set: function(e) {
          if (!n(e))
            throw new Error("Width must be between 0 and 100.");
          r = e;
        }
      },
      lines: {
        enumerable: !0,
        get: function() {
          return t;
        },
        set: function(e) {
          if (typeof e != "number")
            throw new TypeError("Lines must be set to a number.");
          t = e;
        }
      },
      regionAnchorY: {
        enumerable: !0,
        get: function() {
          return u;
        },
        set: function(e) {
          if (!n(e))
            throw new Error("RegionAnchorX must be between 0 and 100.");
          u = e;
        }
      },
      regionAnchorX: {
        enumerable: !0,
        get: function() {
          return i;
        },
        set: function(e) {
          if (!n(e))
            throw new Error("RegionAnchorY must be between 0 and 100.");
          i = e;
        }
      },
      viewportAnchorY: {
        enumerable: !0,
        get: function() {
          return s;
        },
        set: function(e) {
          if (!n(e))
            throw new Error("ViewportAnchorY must be between 0 and 100.");
          s = e;
        }
      },
      viewportAnchorX: {
        enumerable: !0,
        get: function() {
          return c;
        },
        set: function(e) {
          if (!n(e))
            throw new Error("ViewportAnchorX must be between 0 and 100.");
          c = e;
        }
      },
      scroll: {
        enumerable: !0,
        get: function() {
          return f;
        },
        set: function(e) {
          var a = h(e);
          a === !1 ? console.warn("Scroll: an invalid or illegal string was specified.") : f = a;
        }
      }
    });
  }
  return o = b, o;
}
export {
  l as __require
};
//# sourceMappingURL=vttregion.js.map
