/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
var Resource;
((Resource2) => {
  Resource2.reference = /* @__PURE__ */ Symbol("reference");
  function isLocked(resource) {
    while (resource[Resource2.reference] !== void 0) {
      resource = resource[Resource2.reference];
    }
    return resource.lockedBy !== void 0;
  }
  Resource2.isLocked = isLocked;
})(Resource || (Resource = {}));
export {
  Resource
};
//# sourceMappingURL=Resource.js.map
