var n = (l, e, t) => new Promise((f, a) => {
  var h = (s) => {
    try {
      i(t.next(s));
    } catch (o) {
      a(o);
    }
  }, u = (s) => {
    try {
      i(t.throw(s));
    } catch (o) {
      a(o);
    }
  }, i = (s) => s.done ? f(s.value) : Promise.resolve(s.value).then(h, u);
  i((t = t.apply(l, e)).next());
});
import { B as g } from "./buffer-9GjOvOok.js";
class d extends g {
  getSession() {
    return this._isLoaded ? this._bufferCall("getSession", []) : null;
  }
  start(e) {
    return n(this, null, function* () {
      return this._bufferCall("start", [e]);
    });
  }
  stop(e) {
    return this._bufferCall("stop", [e]);
  }
  getRecordingState() {
    return this._isLoaded ? this._bufferCall("getRecordingState", []) : "NotRecording";
  }
  snapshot(e) {
    return this._isLoaded ? this._bufferCall("snapshot", [e]) : Promise.resolve(void 0);
  }
  register(e, t) {
    return this._bufferCall("register", [e, t]);
  }
}
let r;
typeof globalThis != "undefined" ? globalThis.LDRecord ? r = globalThis.LDRecord : (r = new d(), globalThis.LDRecord = r) : r = new d();
export {
  r as LDRecord
};
//# sourceMappingURL=LDRecord.js.map
