&& (n || o(a))), s(p, t); } } if (!r) throw new Error( \`discriminator: "\${c}" must be required\` ); return t; function o({ required: e }) { return Array.isArray(e) && e.includes(c); } function s(e, t) { if (e.const) u(e.const, t); else { if (!e.enum) throw new Error( \`discriminator: "properties/\${c}" must have "const" or "enum"\` ); for (const n of e.enum) u(n, t); } } function u(e, n) { if ('string' != typeof e || e in t) throw new Error( \`discriminator: "\${c}" values must be unique strings\` ); t[e] = n; } })(); t.if(!1); for (const e in n) t.elseIf(r._\`\${p} === \${e}\`), t.assign(u, d(n[e])); t.else(), e.error(!1, { discrError: o.DiscrError.Mapping, tag: p, tagName: c }), t.endIf(); })(), () => e.error(!1, { discrError: o.DiscrError.Tag, tag: p, tagName: c }) ), e.ok(u); } }; t.default = i; }, 6545: function (e, t) { 'use strict'; var n; Object.defineProperty(t, '__esModule', { value: !0 }), (t.DiscrError = void 0), ((n = t.DiscrError || (t.DiscrError = {})).Tag = 'tag'), (n.Mapping = 'mapping'); }, 6479: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(8223), o = n(3799), i = n(9616), a = n(3815), s = n(4826), l = [ r.default, o.default, i.default(), a.default, s.metadataVocabulary, s.contentVocabulary ]; t.default = l; }, 157: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(4475), o = { keyword: 'format', type: ['number', 'string'], schemaType: 'string', $data: !0, error: { message: ({ schemaCode: e }) => r.str\`must match format "\${e}"\`, params: ({ schemaCode: e }) => r._\`{format: \${e}}\` }, code(e, t) { const { gen: n, data: o, $data: i, schema: a, schemaCode: s, it: l } = e, { opts: c, errSchemaPath: u, schemaEnv: p, self: d } = l; c.validateFormats && (i ? (function () { const i = n.scopeValue('formats', { ref: d.formats, code: c.code.formats }), a = n.const('fDef', r._\`\${i}[\${s}]\`), l = n.let('fType'), u = n.let('format'); n.if( r._\`typeof \${a} == "object" && !(\${a} instanceof RegExp)\`, () => n .assign(l, r._\`\${a}.type || "string"\`) .assign(u, r._\`\${a}.validate\`), () => n.assign(l, r._\`"string"\`).assign(u, a) ), e.fail$data( r.or( !1 === c.strictSchema ? r.nil : r._\`\${s} && !\${u}\`, (function () { const e = p.$async ? r._\`(\${a}.async ? await \${u}(\${o}) : \${u}(\${o}))\` : r._\`\${u}(\${o})\`, n = r._\`(typeof \${u} == "function" ? \${e} : \${u}.test(\${o}))\`; return r._\`\${u} && \${u} !== true && \${l} === \${t} && !\${n}\`; })() ) ); })() : (function () { const i = d.formats[a]; if (!i) return void (function () { if (!1 !== c.strictSchema) throw new Error(e()); function e() { return \`unknown format "\${a}" ignored in schema at path "\${u}"\`; } d.logger.warn(e()); })(); if (!0 === i) return; const [s, l, f] = (function (e) { const t = e instanceof RegExp ? r.regexpCode(e) : c.code.formats ? r._\`\${c.code.formats}\${r.getProperty(a)}\` : void 0, o = n.scopeValue('formats', { key: a, ref: e, code: t }); return 'object' != typeof e || e instanceof RegExp ? ['string', e, o] : [ e.type || 'string', e.validate, r._\`\${o}.validate\` ]; })(i); s === t && e.pass( (function () { if ( 'object' == typeof i && !(i instanceof RegExp) && i.async ) { if (!p.$async) throw new Error( 'async format in sync schema' ); return r._\`await \${f}(\${o})\`; } return 'function' == typeof l ? r._\`\${f}(\${o})\` : r._\`\${f}.test(\${o})\`; })() ); })()); } }; t.default = o; }, 3815: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = [n(157).default]; t.default = r; }, 4826: function (e, t) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.contentVocabulary = t.metadataVocabulary = void 0), (t.metadataVocabulary = [ 'title', 'description', 'default', 'deprecated', 'readOnly', 'writeOnly', 'examples' ]), (t.contentVocabulary = [ 'contentMediaType', 'contentEncoding', 'contentSchema' ]); }, 7535: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(4475), o = n(6124), i = n(412), a = { keyword: 'const', $data: !0, error: { message: 'must be equal to constant', params: ({ schemaCode: e }) => r._\`{allowedValue: \${e}}\` }, code(e) { const { gen: t, data: n, $data: a, schemaCode: s, schema: l } = e; a || (l && 'object' == typeof l) ? e.fail$data(r._\`!\${o.useFunc(t, i.default)}(\${n}, \${s})\`) : e.fail(r._\`\${l} !== \${n}\`); } }; t.default = a; }, 4147: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(4475), o = n(6124), i = n(412), a = { keyword: 'enum', schemaType: 'array', $data: !0, error: { message: 'must be equal to one of the allowed values', params: ({ schemaCode: e }) => r._\`{allowedValues: \${e}}\` }, code(e) { const { gen: t, data: n, $data: a, schema: s, schemaCode: l, it: c } = e; if (!a && 0 === s.length) throw new Error('enum must have non-empty array'); const u = s.length >= c.opts.loopEnum, p = o.useFunc(t, i.default); let d; if (u || a) (d = t.let('valid')), e.block$data(d, function () { t.assign(d, !1), t.forOf('v', l, e => t.if(r._\`\${p}(\${n}, \${e})\`, () => t.assign(d, !0).break() ) ); }); else { if (!Array.isArray(s)) throw new Error('ajv implementation error'); const e = t.const('vSchema', l); d = r.or( ...s.map((t, o) => (function (e, t) { const o = s[t]; return 'object' == typeof o && null !== o ? r._\`\${p}(\${n}, \${e}[\${t}])\` : r._\`\${n} === \${o}\`; })(e, o) ) ); } e.pass(d); } }; t.default = a; }, 3799: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(9640), o = n(7692), i = n(3765), a = n(8582), s = n(6711), l = n(7835), c = n(8950), u = n(7326), p = n(7535), d = n(4147), f = [ r.default, o.default, i.default, a.default, s.default, l.default, c.default, u.default, { keyword: 'type', schemaType: ['string', 'array'] }, { keyword: 'nullable', schemaType: 'boolean' }, p.default, d.default ]; t.default = f; }, 8950: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(4475), o = { keyword: ['maxItems', 'minItems'], type: 'array', schemaType: 'number', $data: !0, error: { message({ keyword: e, schemaCode: t }) { const n = 'maxItems' === e ? 'more' : 'fewer'; return r.str\`must NOT have \${n} than \${t} items\`; }, params: ({ schemaCode: e }) => r._\`{limit: \${e}}\` }, code(e) { const { keyword: t, data: n, schemaCode: o } = e, i = 'maxItems' === t ? r.operators.GT : r.operators.LT; e.fail$data(r._\`\${n}.length \${i} \${o}\`); } }; t.default = o; }, 3765: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(4475), o = n(6124), i = n(5872), a = { keyword: ['maxLength', 'minLength'], type: 'string', schemaType: 'number', $data: !0, error: { message({ keyword: e, schemaCode: t }) { const n = 'maxLength' === e ? 'more' : 'fewer'; return r.str\`must NOT have \${n} than \${t} characters\`; }, params: ({ schemaCode: e }) => r._\`{limit: \${e}}\` }, code(e) { const { keyword: t, data: n, schemaCode: a, it: s } = e, l = 'maxLength' === t ? r.operators.GT : r.operators.LT, c = !1 === s.opts.unicode ? r._\`\${n}.length\` : r._\`\${o.useFunc(e.gen, i.default)}(\${n})\`; e.fail$data(r._\`\${c} \${l} \${a}\`); } }; t.default = a; }, 9640: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(4475), o = r.operators, i = { maximum: { okStr: '<=', ok: o.LTE, fail: o.GT }, minimum: { okStr: '>=', ok: o.GTE, fail: o.LT }, exclusiveMaximum: { okStr: '<', ok: o.LT, fail: o.GTE }, exclusiveMinimum: { okStr: '>', ok: o.GT, fail: o.LTE } }, a = { message: ({ keyword: e, schemaCode: t }) => r.str\`must be \${i[e].okStr} \${t}\`, params: ({ keyword: e, schemaCode: t }) => r._\`{comparison: \${i[e].okStr}, limit: \${t}}\` }, s = { keyword: Object.keys(i), type: 'number', schemaType: 'number', $data: !0, error: a, code(e) { const { keyword: t, data: n, schemaCode: o } = e; e.fail$data(r._\`\${n} \${i[t].fail} \${o} || isNaN(\${n})\`); } }; t.default = s; }, 6711: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(4475), o = { keyword: ['maxProperties', 'minProperties'], type: 'object', schemaType: 'number', $data: !0, error: { message({ keyword: e, schemaCode: t }) { const n = 'maxProperties' === e ? 'more' : 'fewer'; return r.str\`must NOT have \${n} than \${t} items\`; }, params: ({ schemaCode: e }) => r._\`{limit: \${e}}\` }, code(e) { const { keyword: t, data: n, schemaCode: o } = e, i = 'maxProperties' === t ? r.operators.GT : r.operators.LT; e.fail$data(r._\`Object.keys(\${n}).length \${i} \${o}\`); } }; t.default = o; }, 7692: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(4475), o = { keyword: 'multipleOf', type: 'number', schemaType: 'number', $data: !0, error: { message: ({ schemaCode: e }) => r.str\`must be multiple of \${e}\`, params: ({ schemaCode: e }) => r._\`{multipleOf: \${e}}\` }, code(e) { const { gen: t, data: n, schemaCode: o, it: i } = e, a = i.opts.multipleOfPrecision, s = t.let('res'), l = a ? r._\`Math.abs(Math.round(\${s}) - \${s}) > 1e-\${a}\` : r._\`\${s} !== parseInt(\${s})\`; e.fail$data(r._\`(\${o} === 0 || (\${s} = \${n}/\${o}, \${l}))\`); } }; t.default = o; }, 8582: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(8619), o = n(4475), i = { keyword: 'pattern', type: 'string', schemaType: 'string', $data: !0, error: { message: ({ schemaCode: e }) => o.str\`must match pattern "\${e}"\`, params: ({ schemaCode: e }) => o._\`{pattern: \${e}}\` }, code(e) { const { data: t, $data: n, schema: i, schemaCode: a, it: s } = e, l = s.opts.unicodeRegExp ? 'u' : '', c = n ? o._\`(new RegExp(\${a}, \${l}))\` : r.usePattern(e, i); e.fail$data(o._\`!\${c}.test(\${t})\`); } }; t.default = i; }, 7835: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(8619), o = n(4475), i = n(6124), a = { keyword: 'required', type: 'object', schemaType: 'array', $data: !0, error: { message: ({ params: { missingProperty: e } }) => o.str\`must have required property '\${e}'\`, params: ({ params: { missingProperty: e } }) => o._\`{missingProperty: \${e}}\` }, code(e) { const { gen: t, schema: n, schemaCode: a, data: s, $data: l, it: c } = e, { opts: u } = c; if (!l && 0 === n.length) return; const p = n.length >= u.loopRequired; if ( (c.allErrors ? (function () { if (p || l) e.block$data(o.nil, d); else for (const t of n) r.checkReportMissingProp(e, t); })() : (function () { const i = t.let('missing'); if (p || l) { const n = t.let('valid', !0); e.block$data(n, () => (function (n, i) { e.setParams({ missingProperty: n }), t.forOf( n, a, () => { t.assign( i, r.propertyInData(t, s, n, u.ownProperties) ), t.if(o.not(i), () => { e.error(), t.break(); }); }, o.nil ); })(i, n) ), e.ok(n); } else t.if(r.checkMissingProp(e, n, i)), r.reportMissingProp(e, i), t.else(); })(), u.strictRequired) ) { const t = e.parentSchema.properties, { definedProperties: r } = e.it; for (const e of n) if (void 0 === (null == t ? void 0 : t[e]) && !r.has(e)) { const t = \`required property "\${e}" is not defined at "\${ c.schemaEnv.baseId + c.errSchemaPath }" (strictRequired)\`; i.checkStrictMode(c, t, c.opts.strictRequired); } } function d() { t.forOf('prop', a, n => { e.setParams({ missingProperty: n }), t.if(r.noPropertyInData(t, s, n, u.ownProperties), () => e.error() ); }); } } }; t.default = a; }, 7326: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); const r = n(7927), o = n(4475), i = n(6124), a = n(412), s = { keyword: 'uniqueItems', type: 'array', schemaType: 'boolean', $data: !0, error: { message: ({ params: { i: e, j: t } }) => o.str\`must NOT have duplicate items (items ## \${t} and \${e} are identical)\`, params: ({ params: { i: e, j: t } }) => o._\`{i: \${e}, j: \${t}}\` }, code(e) { const { gen: t, data: n, $data: s, schema: l, parentSchema: c, schemaCode: u, it: p } = e; if (!s && !l) return; const d = t.let('valid'), f = c.items ? r.getSchemaTypes(c.items) : []; function h(i, a) { const s = t.name('item'), l = r.checkDataTypes( f, s, p.opts.strictNumbers, r.DataType.Wrong ), c = t.const('indices', o._\`{}\`); t.for(o._\`;\${i}--;\`, () => { t.let(s, o._\`\${n}[\${i}]\`), t.if(l, o._\`continue\`), f.length > 1 && t.if(o._\`typeof \${s} == "string"\`, o._\`\${s} += "_"\`), t .if(o._\`typeof \${c}[\${s}] == "number"\`, () => { t.assign(a, o._\`\${c}[\${s}]\`), e.error(), t.assign(d, !1).break(); }) .code(o._\`\${c}[\${s}] = \${i}\`); }); } function m(r, s) { const l = i.useFunc(t, a.default), c = t.name('outer'); t.label(c).for(o._\`;\${r}--;\`, () => t.for(o._\`\${s} = \${r}; \${s}--;\`, () => t.if(o._\`\${l}(\${n}[\${r}], \${n}[\${s}])\`, () => { e.error(), t.assign(d, !1).break(c); }) ) ); } e.block$data( d, function () { const r = t.let('i', o._\`\${n}.length\`), i = t.let('j'); e.setParams({ i: r, j: i }), t.assign(d, !0), t.if(o._\`\${r} > 1\`, () => (f.length > 0 && !f.some(e => 'object' === e || 'array' === e) ? h : m)(r, i) ); }, o._\`\${u} === false\` ), e.ok(d); } }; t.default = s; }, 4029: function (e) { 'use strict'; var t = (e.exports = function (e, t, r) { 'function' == typeof t && ((r = t), (t = {})), n( t, 'function' == typeof (r = t.cb || r) ? r : r.pre || function () {}, r.post || function () {}, e, '', e ); }); function n(e, r, o, i, a, s, l, c, u, p) { if (i && 'object' == typeof i && !Array.isArray(i)) { for (var d in (r(i, a, s, l, c, u, p), i)) { var f = i[d]; if (Array.isArray(f)) { if (d in t.arrayKeywords) for (var h = 0; h < f.length; h++) n(e, r, o, f[h], a + '/' + d + '/' + h, s, a, d, i, h); } else if (d in t.propsKeywords) { if (f && 'object' == typeof f) for (var m in f) n( e, r, o, f[m], a + '/' + d + '/' + m.replace(/~/g, '~0').replace(/\\//g, '~1'), s, a, d, i, m ); } else (d in t.keywords || (e.allKeys && !(d in t.skipKeywords))) && n(e, r, o, f, a + '/' + d, s, a, d, i); } o(i, a, s, l, c, u, p); } } (t.keywords = { additionalItems: !0, items: !0, contains: !0, additionalProperties: !0, propertyNames: !0, not: !0, if: !0, then: !0, else: !0 }), (t.arrayKeywords = { items: !0, allOf: !0, anyOf: !0, oneOf: !0 }), (t.propsKeywords = { $defs: !0, definitions: !0, properties: !0, patternProperties: !0, dependencies: !0 }), (t.skipKeywords = { default: !0, enum: !0, const: !0, required: !0, maximum: !0, minimum: !0, exclusiveMaximum: !0, exclusiveMinimum: !0, multipleOf: !0, maxLength: !0, minLength: !0, pattern: !0, format: !0, maxItems: !0, minItems: !0, uniqueItems: !0, maxProperties: !0, minProperties: !0 }); }, 3675: function (e, t, n) { 'use strict'; var r = (this && this.__awaiter) || function (e, t, n, r) { return new (n || (n = Promise))(function (o, i) { function a(e) { try { l(r.next(e)); } catch (e) { i(e); } } function s(e) { try { l(r.throw(e)); } catch (e) { i(e); } } function l(e) { var t; e.done ? o(e.value) : ((t = e.value), t instanceof n ? t : new n(function (e) { e(t); })).then(a, s); } l((r = r.apply(e, t || [])).next()); }); }; Object.defineProperty(t, '__esModule', { value: !0 }), (t.mapTypeToComponent = t.bundleDocument = t.bundle = t.OasVersion = void 0); const o = n(2307), i = n(4182), a = n(8065), s = n(5241), l = n(388), c = n(2608), u = n(5220), p = n(9443), d = n(1510), f = n(7468), h = n(5030), m = n(348), g = n(771), y = n(1094), v = n(4508), b = n(6350); var w; function x(e) { return r(this, void 0, void 0, function* () { const { document: t, config: n, customTypes: r, externalRefResolver: o, dereference: f = !1, skipRedoclyRegistryRefs: m = !1, removeUnusedComponents: g = !1, keepUrlRefs: y = !1 } = e, x = d.detectOpenAPI(t.parsed), k = d.openAPIMajor(x), O = n.getRulesForOasVersion(k), S = u.normalizeTypes( n.extendTypes( (null != r ? r : k === d.OasMajorVersion.Version3) ? x === w.Version3_1 ? c.Oas3_1Types : s.Oas3Types : l.Oas2Types, x ), n ), E = h.initRules(O, n, 'preprocessors', x), P = h.initRules(O, n, 'decorators', x), A = { problems: [], oasVersion: x, refTypes: new Map(), visitorsData: {} }; g && P.push({ severity: 'error', ruleId: 'remove-unused-components', visitor: k === d.OasMajorVersion.Version2 ? v.RemoveUnusedComponents({}) : b.RemoveUnusedComponents({}) }); const $ = yield i.resolveDocument({ rootDocument: t, rootType: S.DefinitionRoot, externalRefResolver: o }), C = a.normalizeVisitors( [ ...E, { severity: 'error', ruleId: 'bundler', visitor: _(k, f, m, t, $, y) }, ...P ], S ); return ( p.walkDocument({ document: t, rootType: S.DefinitionRoot, normalizedVisitors: C, resolvedRefMap: $, ctx: A }), { bundle: t, problems: A.problems.map(e => n.addProblemToIgnore(e)), fileDependencies: o.getFiles(), rootType: S.DefinitionRoot, refTypes: A.refTypes, visitorsData: A.visitorsData } ); }); } function k(e, t) { switch (t) { case d.OasMajorVersion.Version3: switch (e) { case 'Schema': return 'schemas'; case 'Parameter': return 'parameters'; case 'Response': return 'responses'; case 'Example': return 'examples'; case 'RequestBody': return 'requestBodies'; case 'Header': return 'headers'; case 'SecuritySchema': return 'securitySchemes'; case 'Link': return 'links'; case 'Callback': return 'callbacks'; default: return null; } case d.OasMajorVersion.Version2: switch (e) { case 'Schema': return 'definitions'; case 'Parameter': return 'parameters'; case 'Response': return 'responses'; default: return null; } } } function _(e, t, n, r, a, s) { let l; const c = { ref: { leave(o, l, c) { if (!c.location || void 0 === c.node) return void m.reportUnresolvedRef(c, l.report, l.location); if ( c.location.source === r.source && c.location.source === l.location.source && 'scalar' !== l.type.name && !t ) return; if (n && y.isRedoclyRegistryURL(o.$ref)) return; if (s && f.isAbsoluteUrl(o.$ref)) return; const d = k(l.type.name, e); d ? t ? (p(d, c, l), u(o, c, l)) : ((o.$ref = p(d, c, l)), (function (e, t, n) { const o = i.makeRefId( n.location.source.absoluteRef, e.$ref ); a.set(o, { document: r, isRemote: !1, node: t.node, nodePointer: e.$ref, resolved: !0 }); })(o, c, l)) : u(o, c, l); } }, DefinitionRoot: { enter(t) { e === d.OasMajorVersion.Version3 ? (l = t.components = t.components || {}) : e === d.OasMajorVersion.Version2 && (l = t); } } }; function u(e, t, n) { g.isPlainObject(t.node) ? (delete e.$ref, Object.assign(e, t.node)) : (n.parent[n.key] = t.node); } function p(t, n, r) { l[t] = l[t] || {}; const o = (function (e, t, n) { const [r, o] = [ e.location.source.absoluteRef, e.location.pointer ], i = l[t]; let a = ''; const s = o.slice(2).split('/').filter(Boolean); for (; s.length > 0; ) if ( ((a = s.pop() + (a ? \`-\${a}\` : '')), !i || !i[a] || h(i[a], e, n)) ) return a; if ( ((a = f.refBaseName(r) + (a ? \`_\${a}\` : '')), !i[a] || h(i[a], e, n)) ) return a; const c = a; let u = 2; for (; i[a] && !h(i[a], e, n); ) (a = \`\${c}-\${u}\`), u++; return ( i[a] || n.report({ message: \`Two schemas are referenced with the same name but different content. Renamed \${c} to \${a}.\`, location: n.location, forceSeverity: 'warn' }), a ); })(n, t, r); return ( (l[t][o] = n.node), e === d.OasMajorVersion.Version3 ? \`#/components/\${t}/\${o}\` : \`#/\${t}/\${o}\` ); } function h(e, t, n) { var r; return ( !( !f.isRef(e) || (null === (r = n.resolve(e).location) || void 0 === r ? void 0 : r.absolutePointer) !== t.location.absolutePointer ) || o(e, t.node) ); } return ( e === d.OasMajorVersion.Version3 && (c.DiscriminatorMapping = { leave(n, r) { for (const o of Object.keys(n)) { const i = n[o], a = r.resolve({ $ref: i }); if (!a.location || void 0 === a.node) return void m.reportUnresolvedRef( a, r.report, r.location.child(o) ); const s = k('Schema', e); t ? p(s, a, r) : (n[o] = p(s, a, r)); } } }), c ); } !(function (e) { (e.Version2 = 'oas2'), (e.Version3_0 = 'oas3_0'), (e.Version3_1 = 'oas3_1'); })((w = t.OasVersion || (t.OasVersion = {}))), (t.bundle = function (e) { return r(this, void 0, void 0, function* () { const { ref: t, doc: n, externalRefResolver: r = new i.BaseResolver(e.config.resolve), base: o = null } = e; if (!t && !n) throw new Error('Document or reference is required.\\n'); const a = void 0 !== n ? n : yield r.resolveDocument(o, t, !0); if (a instanceof Error) throw a; return x( Object.assign(Object.assign({ document: a }, e), { config: e.config.lint, externalRefResolver: r }) ); }); }), (t.bundleDocument = x), (t.mapTypeToComponent = k); }, 6877: function (e, t) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = { rules: { 'info-description': 'error', 'info-contact': 'error', 'info-license': 'error', 'info-license-url': 'error', 'tag-description': 'error', 'tags-alphabetical': 'error', 'parameter-description': 'error', 'no-identical-paths': 'error', 'no-ambiguous-paths': 'error', 'no-path-trailing-slash': 'error', 'path-segment-plural': 'error', 'path-declaration-must-exist': 'error', 'path-not-include-query': 'error', 'path-parameters-defined': 'error', 'operation-description': 'error', 'operation-2xx-response': 'error', 'operation-4xx-response': 'error', assertions: 'error', 'operation-operationId': 'error', 'operation-summary': 'error', 'operation-operationId-unique': 'error', 'operation-operationId-url-safe': 'error', 'operation-parameters-unique': 'error', 'operation-tag-defined': 'error', 'operation-security-defined': 'error', 'operation-singular-tag': 'error', 'no-unresolved-refs': 'error', 'no-enum-type-mismatch': 'error', 'boolean-parameter-prefixes': 'error', 'paths-kebab-case': 'error', 'no-http-verbs-in-paths': 'error', 'path-excludes-patterns': { severity: 'error', patterns: [] }, 'request-mime-type': 'error', spec: 'error', 'no-invalid-schema-examples': 'error', 'no-invalid-parameter-examples': 'error', 'scalar-property-missing-example': 'error' }, oas3_0Rules: { 'no-invalid-media-type-examples': 'error', 'no-server-example.com': 'error', 'no-server-trailing-slash': 'error', 'no-empty-servers': 'error', 'no-example-value-and-externalValue': 'error', 'no-unused-components': 'error', 'no-undefined-server-variable': 'error', 'no-servers-empty-enum': 'error' }, oas3_1Rules: { 'no-server-example.com': 'error', 'no-server-trailing-slash': 'error', 'no-empty-servers': 'error', 'no-example-value-and-externalValue': 'error', 'no-unused-components': 'error', 'no-undefined-server-variable': 'error', 'no-servers-empty-enum': 'error' } }); }, 6242: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.defaultPlugin = t.builtInConfigs = void 0); const r = n(8057), o = n(6877), i = n(9016), a = n(226), s = n(7523), l = n(226), c = n(7523), u = n(1753), p = n(7060); (t.builtInConfigs = { recommended: r.default, minimal: i.default, all: o.default, 'redocly-registry': { decorators: { 'registry-dependencies': 'on' } } }), (t.defaultPlugin = { id: '', rules: { oas3: a.rules, oas2: s.rules }, preprocessors: { oas3: l.preprocessors, oas2: c.preprocessors }, decorators: { oas3: u.decorators, oas2: p.decorators }, configs: t.builtInConfigs }); }, 7040: function (e, t, n) { 'use strict'; var r = (this && this.__awaiter) || function (e, t, n, r) { return new (n || (n = Promise))(function (o, i) { function a(e) { try { l(r.next(e)); } catch (e) { i(e); } } function s(e) { try { l(r.throw(e)); } catch (e) { i(e); } } function l(e) { var t; e.done ? o(e.value) : ((t = e.value), t instanceof n ? t : new n(function (e) { e(t); })).then(a, s); } l((r = r.apply(e, t || [])).next()); }); }, o = (this && this.__rest) || function (e, t) { var n = {}; for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]); if ( null != e && 'function' == typeof Object.getOwnPropertySymbols ) { var o = 0; for (r = Object.getOwnPropertySymbols(e); o < r.length; o++) t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]); } return n; }; Object.defineProperty(t, '__esModule', { value: !0 }), (t.resolvePreset = t.resolveLint = t.resolveApis = t.resolvePlugins = t.resolveConfig = void 0); const i = n(6470), a = n(6212), s = n(7468), l = n(4182), c = n(6242), u = n(2565), p = n(771), d = n(3777); function f(e, t = '') { if (!e) return []; const n = require, r = new Map(); return e .map(e => { if (p.isString(e) && s.isAbsoluteUrl(e)) throw new Error( a.red("We don't support remote plugins yet.") ); const o = p.isString(e) ? n(i.resolve(i.dirname(t), e)) : e, l = o.id; if ('string' != typeof l) throw new Error( a.red( \`Plugin must define \\\`id\\\` property in \${a.blue( e.toString() )}.\` ) ); if (r.has(l)) { const t = r.get(l); throw new Error( a.red( \`Plugin "id" must be unique. Plugin \${a.blue( e.toString() )} uses id "\${a.blue(l)}" already seen in \${a.blue(t)}\` ) ); } r.set(l, e.toString()); const c = Object.assign( Object.assign( { id: l }, o.configs ? { configs: o.configs } : {} ), o.typeExtension ? { typeExtension: o.typeExtension } : {} ); if (o.rules) { if (!o.rules.oas3 && !o.rules.oas2) throw new Error( \`Plugin rules must have \\\`oas3\\\` or \\\`oas2\\\` rules "\${e}.\` ); (c.rules = {}), o.rules.oas3 && (c.rules.oas3 = u.prefixRules(o.rules.oas3, l)), o.rules.oas2 && (c.rules.oas2 = u.prefixRules(o.rules.oas2, l)); } if (o.preprocessors) { if (!o.preprocessors.oas3 && !o.preprocessors.oas2) throw new Error( \`Plugin \\\`preprocessors\\\` must have \\\`oas3\\\` or \\\`oas2\\\` preprocessors "\${e}.\` ); (c.preprocessors = {}), o.preprocessors.oas3 && (c.preprocessors.oas3 = u.prefixRules( o.preprocessors.oas3, l )), o.preprocessors.oas2 && (c.preprocessors.oas2 = u.prefixRules( o.preprocessors.oas2, l )); } if (o.decorators) { if (!o.decorators.oas3 && !o.decorators.oas2) throw new Error( \`Plugin \\\`decorators\\\` must have \\\`oas3\\\` or \\\`oas2\\\` decorators "\${e}.\` ); (c.decorators = {}), o.decorators.oas3 && (c.decorators.oas3 = u.prefixRules(o.decorators.oas3, l)), o.decorators.oas2 && (c.decorators.oas2 = u.prefixRules(o.decorators.oas2, l)); } return c; }) .filter(p.notUndefined); } function h({ rawConfig: e, configPath: t = '', resolver: n }) { var o, i; return r(this, void 0, void 0, function* () { const { apis: r = {}, lint: a = {} } = e; let s = {}; for (const [e, l] of Object.entries(r || {})) { if ( null === (i = null === (o = l.lint) || void 0 === o ? void 0 : o.extends) || void 0 === i ? void 0 : i.some(p.isNotString) ) throw new Error( 'Error configuration format not detected in extends value must contain strings' ); const r = v(a, l.lint), c = yield g({ lintConfig: r, configPath: t, resolver: n }); s[e] = Object.assign(Object.assign({}, l), { lint: c }); } return s; }); } function m( { lintConfig: e, configPath: t = '', resolver: n = new l.BaseResolver() }, a = [], d = [] ) { var h, g, v; return r(this, void 0, void 0, function* () { if (a.includes(t)) throw new Error(\`Circular dependency in config file: "\${t}"\`); const l = u.getUniquePlugins( f( [ ...((null == e ? void 0 : e.plugins) || []), c.defaultPlugin ], t ) ), b = null === (h = null == e ? void 0 : e.plugins) || void 0 === h ? void 0 : h.filter(p.isString).map(e => i.resolve(i.dirname(t), e)), w = s.isAbsoluteUrl(t) ? t : t && i.resolve(t), x = yield Promise.all( (null === (g = null == e ? void 0 : e.extends) || void 0 === g ? void 0 : g.map(e => r(this, void 0, void 0, function* () { if (!s.isAbsoluteUrl(e) && !i.extname(e)) return y(e, l); const o = s.isAbsoluteUrl(e) ? e : s.isAbsoluteUrl(t) ? new URL(e, t).href : i.resolve(i.dirname(t), e), c = yield (function (e, t) { return r(this, void 0, void 0, function* () { try { const n = yield t.loadExternalRef(e), r = u.transformConfig(p.parseYaml(n.body)); if (!r.lint) throw new Error( \`Lint configuration format not detected: "\${e}"\` ); return r.lint; } catch (t) { throw new Error( \`Failed to load "\${e}": \${t.message}\` ); } }); })(o, n); return yield m( { lintConfig: c, configPath: o, resolver: n }, [...a, w], d ); }) )) || [] ), k = u.mergeExtends([ ...x, Object.assign(Object.assign({}, e), { plugins: l, extends: void 0, extendPaths: [...a, w], pluginPaths: b }) ]), { plugins: _ = [] } = k, O = o(k, ['plugins']); return Object.assign(Object.assign({}, O), { extendPaths: null === (v = O.extendPaths) || void 0 === v ? void 0 : v.filter(e => e && !s.isAbsoluteUrl(e)), plugins: u.getUniquePlugins(_), recommendedFallback: null == e ? void 0 : e.recommendedFallback, doNotResolveExamples: null == e ? void 0 : e.doNotResolveExamples }); }); } function g(e, t = [], n = []) { return r(this, void 0, void 0, function* () { const r = yield m(e, t, n); return Object.assign(Object.assign({}, r), { rules: r.rules && b(r.rules) }); }); } function y(e, t) { var n; const { pluginId: r, configName: o } = u.parsePresetName(e), i = t.find(e => e.id === r); if (!i) throw new Error( \`Invalid config \${a.red(e)}: plugin \${r} is not included.\` ); const s = null === (n = i.configs) || void 0 === n ? void 0 : n[o]; if (!s) throw new Error( r ? \`Invalid config \${a.red( e )}: plugin \${r} doesn't export config with name \${o}.\` : \`Invalid config \${a.red( e )}: there is no such built-in config.\` ); return s; } function v(e, t) { return Object.assign(Object.assign(Object.assign({}, e), t), { rules: Object.assign( Object.assign({}, null == e ? void 0 : e.rules), null == t ? void 0 : t.rules ), oas2Rules: Object.assign( Object.assign({}, null == e ? void 0 : e.oas2Rules), null == t ? void 0 : t.oas2Rules ), oas3_0Rules: Object.assign( Object.assign({}, null == e ? void 0 : e.oas3_0Rules), null == t ? void 0 : t.oas3_0Rules ), oas3_1Rules: Object.assign( Object.assign({}, null == e ? void 0 : e.oas3_1Rules), null == t ? void 0 : t.oas3_1Rules ), preprocessors: Object.assign( Object.assign({}, null == e ? void 0 : e.preprocessors), null == t ? void 0 : t.preprocessors ), oas2Preprocessors: Object.assign( Object.assign({}, null == e ? void 0 : e.oas2Preprocessors), null == t ? void 0 : t.oas2Preprocessors ), oas3_0Preprocessors: Object.assign( Object.assign({}, null == e ? void 0 : e.oas3_0Preprocessors), null == t ? void 0 : t.oas3_0Preprocessors ), oas3_1Preprocessors: Object.assign( Object.assign({}, null == e ? void 0 : e.oas3_1Preprocessors), null == t ? void 0 : t.oas3_1Preprocessors ), decorators: Object.assign( Object.assign({}, null == e ? void 0 : e.decorators), null == t ? void 0 : t.decorators ), oas2Decorators: Object.assign( Object.assign({}, null == e ? void 0 : e.oas2Decorators), null == t ? void 0 : t.oas2Decorators ), oas3_0Decorators: Object.assign( Object.assign({}, null == e ? void 0 : e.oas3_0Decorators), null == t ? void 0 : t.oas3_0Decorators ), oas3_1Decorators: Object.assign( Object.assign({}, null == e ? void 0 : e.oas3_1Decorators), null == t ? void 0 : t.oas3_1Decorators ), recommendedFallback: !(null == t ? void 0 : t.extends) && e.recommendedFallback }); } function b(e) { if (!e) return e; const t = {}, n = []; for (const [r, o] of Object.entries(e)) if ( r.startsWith('assert/') && 'object' == typeof o && null !== o ) { const e = o; n.push( Object.assign(Object.assign({}, e), { assertionId: r.replace('assert/', '') }) ); } else t[r] = o; return n.length > 0 && (t.assertions = n), t; } (t.resolveConfig = function (e, t) { var n, o, i, a, s; return r(this, void 0, void 0, function* () { if ( null === (o = null === (n = e.lint) || void 0 === n ? void 0 : n.extends) || void 0 === o ? void 0 : o.some(p.isNotString) ) throw new Error( 'Error configuration format not detected in extends value must contain strings' ); const r = new l.BaseResolver(u.getResolveConfig(e.resolve)), c = null !== (a = null === (i = null == e ? void 0 : e.lint) || void 0 === i ? void 0 : i.extends) && void 0 !== a ? a : ['recommended'], f = !(null === (s = null == e ? void 0 : e.lint) || void 0 === s ? void 0 : s.extends), m = Object.assign( Object.assign({}, null == e ? void 0 : e.lint), { extends: c, recommendedFallback: f } ), y = yield h({ rawConfig: Object.assign(Object.assign({}, e), { lint: m }), configPath: t, resolver: r }), v = yield g({ lintConfig: m, configPath: t, resolver: r }); return new d.Config( Object.assign(Object.assign({}, e), { apis: y, lint: v }), t ); }); }), (t.resolvePlugins = f), (t.resolveApis = h), (t.resolveLint = g), (t.resolvePreset = y); }, 3777: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.Config = t.LintConfig = t.AVAILABLE_REGIONS = t.DOMAINS = t.DEFAULT_REGION = t.IGNORE_FILE = t.env = void 0); const r = n(5101), o = n(6470), i = n(5273), a = n(771), s = n(1510), l = n(2565); (t.env = ('undefined' != typeof process && {}) || {}), (t.IGNORE_FILE = '.redocly.lint-ignore.yaml'), (t.DEFAULT_REGION = 'us'), (t.DOMAINS = (function () { const e = { us: 'redocly.com', eu: 'eu.redocly.com' }, n = t.env.REDOCLY_DOMAIN; return ( (null == n ? void 0 : n.endsWith('.redocly.host')) && (e[n.split('.')[0]] = n), 'redoc.online' === n && (e[n] = n), e ); })()), (t.AVAILABLE_REGIONS = Object.keys(t.DOMAINS)); class c { constructor(e, n) { (this.rawConfig = e), (this.configFile = n), (this.ignore = {}), (this._usedRules = new Set()), (this._usedVersions = new Set()), (this.plugins = e.plugins || []), (this.doNotResolveExamples = !!e.doNotResolveExamples), (this.recommendedFallback = e.recommendedFallback || !1), (this.rules = { [s.OasVersion.Version2]: Object.assign( Object.assign({}, e.rules), e.oas2Rules ), [s.OasVersion.Version3_0]: Object.assign( Object.assign({}, e.rules), e.oas3_0Rules ), [s.OasVersion.Version3_1]: Object.as