function n(e) {
  var r = null;
  return function() {
    var l = function() {
      r = null;
    };
    return r === null ? (r = e, l) : !1;
  };
}
var t = n("dragHorizontal"), f = n("dragVertical");
function a(e) {
  var r = !1;
  if (e === "y")
    r = f();
  else if (e === "x")
    r = t();
  else {
    var l = t(), u = f();
    l && u ? r = function() {
      l(), u();
    } : (l && l(), u && u());
  }
  return r;
}
function c() {
  var e = a(!0);
  return e ? (e(), !1) : !0;
}
export {
  n as createLock,
  a as getGlobalLock,
  c as isDragActive
};
//# sourceMappingURL=lock.es.js.map
