import { __module as m } from "../../../../../../_virtual/index10.js";
import { __require as p } from "./formats.js";
import { __require as y } from "./limit.js";
import { __require as N } from "../../../../ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js";
var c;
function P() {
  return c ? m.exports : (c = 1, function(q, a) {
    Object.defineProperty(a, "__esModule", { value: !0 });
    const e = p(), F = y(), u = N(), n = new u.Name("fullFormats"), w = new u.Name("fastFormats"), i = (r, t = { keywords: !0 }) => {
      if (Array.isArray(t))
        return l(r, t, e.fullFormats, n), r;
      const [f, o] = t.mode === "fast" ? [e.fastFormats, w] : [e.fullFormats, n], s = t.formats || e.formatNames;
      return l(r, s, f, o), t.keywords && (0, F.default)(r), r;
    };
    i.get = (r, t = "full") => {
      const o = (t === "fast" ? e.fastFormats : e.fullFormats)[r];
      if (!o)
        throw new Error(`Unknown format "${r}"`);
      return o;
    };
    function l(r, t, f, o) {
      var s, d;
      (s = (d = r.opts.code).formats) !== null && s !== void 0 || (d.formats = (0, u._)`require("ajv-formats/dist/formats").${o}`);
      for (const _ of t)
        r.addFormat(_, f[_]);
    }
    q.exports = a = i, Object.defineProperty(a, "__esModule", { value: !0 }), a.default = i;
  }(m, m.exports), m.exports);
}
export {
  P as __require
};
//# sourceMappingURL=index.js.map
