class o extends Error {
  constructor(r = "Missing implementation") {
    super(r), this.name = "MissingImplementationError";
  }
}
const n = (e) => s(e).split("_").join(" "), s = (e) => (e = e.replace(/::/g, "/"), e = e.replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2"), e = e.replace(/([a-z\d])([A-Z])/g, "$1_$2"), e = e.replace(/-/g, "_"), e.toLowerCase()), a = (e) => e.substring(0, 1).toUpperCase() + e.substring(1), t = (e) => {
  if (typeof Buffer < "u")
    return Buffer.from(e, "base64").toString("utf8");
  if (typeof atob < "u")
    return atob(e);
  throw new o(
    "No implementation found for base64 decoding"
  );
};
export {
  t as $,
  a as _,
  n as g
};
