(s, o)
| 52922 | refractToSchemaElement.cache = new WeakMap() |
| 52923 | const maybeRefractToSchemaElement = (s) => |
| 52924 | isPrimitiveElement(s) ? refractToSchemaElement(s) : s, |
| 52925 | uri_evaluate = (s, o) => { |
| 52926 | const { cache: i } = uri_evaluate, |
| 52927 | a = stripHash(s), |
| 52928 | isSchemaElementWith$id = (s) => uE(s) && void 0 !== s.$id |
| 52929 | if (!i.has(o)) { |
| 52930 | const s = traversal_filter(isSchemaElementWith$id, o) |
| 52931 | i.set(o, Array.from(s)) |
| 52932 | } |
| 52933 | const u = i.get(o).find((s) => { |
| 52934 | const o = ((s, o) => { |
| 52935 | if (void 0 === o.$id) return |
| 52936 | const i = serializers_value(o.meta.get('ancestorsSchemaIdentifiers')) |
| 52937 | return Aa((s, o) => resolve(s, sanitize(stripHash(o))), s, i) |
| 52938 | })(a, s) |
| 52939 | return o === a |
| 52940 | }) |
| 52941 | if (bc(u)) throw new tx(`Evaluation failed on URI: "${s}"`) |
| 52942 | return isAnchor(uriToAnchor(s)) |
| 52943 | ? $anchor_evaluate(uriToAnchor(s), u) |
| 52944 | : apidom_evaluate(u, fromURIReference(s)) |
| 52945 | } |
| 52946 | uri_evaluate.cache = new WeakMap() |
| 52947 | const rx = class MaximumDereferenceDepthError extends Ow {} |
no test coverage detected