st lazy = {};

// We want these to be lazily loaded, which helps performance and also tests
// to not have these loaded before they are ready.
ChromeUtils.defineESModuleGetters(lazy, {
  Service: "resource://services-sync/service.sys.mjs",
  Status: "resource://services-sync/status.sys.mjs",
  Svc: "resource://services-sync/util.sys.mjs",
  Utils: "resource://services-sync/util.sys.mjs",
});

ChromeUtils.defineLazyGetter(lazy, "Crypto", () => {
  let { WeaveCrypto } = ChromeUtils.importESModule(
    "moz-src:///services/crypto/modules/WeaveCrypto.sys.mjs"
  );
  return new WeaveCrypto();
});
PK