// Metro module 12139 (f12140). import * as _classCallCheck from "./_classCallCheck"; import * as __createClass from "./_createClass"; let c8371_1; let _ZodRegistry; let env8371 = {}; export function registry() { return new c8371_1(); } exports.$output = Symbol("ZodOutput"); exports.$input = Symbol("ZodInput"); _ZodRegistry = function() { _classCallCheck(this, _ZodRegistry); this._map = new WeakMap(); this._idmap = new Map(); }; c8371_1 = __createClass(_ZodRegistry, [{ key: "add", value: function add(a0) { const r9 = Array.prototype.slice.call(arguments, 1)[0]; this._map.set(a0, r9); if (r9 && typeof r9 === "object" && "id" in r9) { this._idmap.set(r9.id, a0); } return this; } }, { key: "clear", value: function clear() { this._map = new WeakMap(); this._idmap = new Map(); return this; } }, { key: "remove", value: function remove(a0) { const r6 = this._map.get(a0); if (r6 && typeof r6 === "object" && "id" in r6) { this._idmap.delete(r6.id); } this._map.delete(a0); return this; } }, { key: "get", value: function get(a0) { const parent = a0._zod.parent; if (parent) { let r11 = this.get(parent); if (r11 == null) { r11 = {}; } const r12 = { ...r11 }; delete r12["id"]; const r16 = { ...r12, ...this._map.get(a0) }; return Object.keys(r16).length ? r16 : void 0; } return this._map.get(a0); } }, { key: "has", value: function has(a0) { return this._map.has(a0); } }]); export { c8371_1 as $ZodRegistry }; const globalThis2 = globalThis.globalThis; if (globalThis2.__zod_globalRegistry == null) { globalThis2.__zod_globalRegistry = new c8371_1(); } export const globalRegistry = globalThis.globalThis.__zod_globalRegistry;