;
{
  try {
    let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
    n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1b45db25-e530-4076-9ec1-2e9652ae80b0", e._sentryDebugIdIdentifier = "sentry-dbid-1b45db25-e530-4076-9ec1-2e9652ae80b0");
  } catch (e) {
  }
}
;
import { useState } from "preact/hooks";
function uuidv4() {
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
    let r = Math.random() * 16 | 0, v = c == "x" ? r : r & 3 | 8;
    return v.toString(16);
  });
}
const useId = (prefix) => {
  const [uuid] = useState(uuidv4());
  return `${prefix}_${uuid}`;
};
export {
  useId as a,
  uuidv4 as u
};
