UNPKG

swagger-client

Version:

SwaggerJS - a collection of interfaces for OAI specs

1,371 lines (1,186 loc) 2.15 MB
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["SwaggerClient"] = factory(); else root["SwaggerClient"] = factory(); })(window, () => { return /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ 14: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18499); /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24445); /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67924); /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34610); /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(95532); /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(43319); /* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95573); /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62287); /** * This is a base Type for every visitor that does * internal look-ups to retrieve other child visitors. * @public */ /** * @public */ class SpecificationVisitor extends _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] { specObj; passingOptionsNames = ['specObj', 'parent']; constructor({ specObj, ...rest }) { super({ ...rest }); this.specObj = specObj; } retrievePassingOptions() { return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.passingOptionsNames, this); } retrieveFixedFields(specPath) { const fixedFields = (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath, 'fixedFields'], this.specObj); if (typeof fixedFields === 'object' && fixedFields !== null) { return Object.keys(fixedFields); } return []; } retrieveVisitor(specPath) { if ((0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"], ['visitors', ...specPath], this.specObj)) { return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath], this.specObj); } return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath, '$visitor'], this.specObj); } retrieveVisitorInstance(specPath, options = {}) { const passingOpts = this.retrievePassingOptions(); const VisitorClz = this.retrieveVisitor(specPath); const visitorOpts = { ...passingOpts, ...options }; return new VisitorClz(visitorOpts); } toRefractedElement(specPath, element, options = {}) { /** * This is `Visitor shortcut`: mechanism for short-circuiting the traversal and replacing * it by basic node cloning. * * Visiting the element is equivalent to cloning it if the prototype of a visitor * is the same as the prototype of FallbackVisitor. If that's the case, we can avoid * bootstrapping the traversal cycle for fields that don't require any special visiting. */ const visitor = this.retrieveVisitorInstance(specPath, options); if (visitor instanceof _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__["default"] && (visitor === null || visitor === void 0 ? void 0 : visitor.constructor) === _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]) { return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(element); } (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.visit)(element, visitor, options); return visitor.element; } } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SpecificationVisitor); /***/ }), /***/ 210: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _swagger_api_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(83400); /** * @public */ class Encoding extends _swagger_api_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_MODULE_0__.EncodingElement {} /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Encoding); /***/ }), /***/ 291: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28276); /* harmony import */ var _isRegExp_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66127); /* harmony import */ var _escapeRegExp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49408); var checkArguments = function checkArguments(searchValue, replaceValue, str) { if (str == null || searchValue == null || replaceValue == null) { throw TypeError('Input values must not be `null` or `undefined`'); } }; var checkValue = function checkValue(value, valueName) { if (typeof value !== 'string') { if (!(value instanceof String)) { throw TypeError("`".concat(valueName, "` must be a string")); } } }; var checkSearchValue = function checkSearchValue(searchValue) { if (typeof searchValue !== 'string' && !(searchValue instanceof String) && !(searchValue instanceof RegExp)) { throw TypeError('`searchValue` must be a string or an regexp'); } }; var replaceAll = function replaceAll(searchValue, replaceValue, str) { checkArguments(searchValue, replaceValue, str); checkValue(str, 'str'); checkValue(replaceValue, 'replaceValue'); checkSearchValue(searchValue); var regexp = new RegExp((0,_isRegExp_js__WEBPACK_IMPORTED_MODULE_0__["default"])(searchValue) ? searchValue : (0,_escapeRegExp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(searchValue), 'g'); return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(regexp, replaceValue, str); }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (replaceAll); /***/ }), /***/ 371: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6993); /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11892); /* harmony import */ var _generics_AlternatingVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84193); /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5051); /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39633); /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9748); /** * @public */ /** * @public */ class SchemaVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_AlternatingVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) { constructor(options) { super(options); this.alternator = [{ predicate: _predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isReferenceLikeElement, specPath: ['document', 'objects', 'Reference'] }, { predicate: ramda__WEBPACK_IMPORTED_MODULE_4__["default"], specPath: ['document', 'objects', 'Schema'] }]; } ObjectElement(objectElement) { const result = _generics_AlternatingVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"].prototype.enter.call(this, objectElement); if ((0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_5__.isReferenceElement)(this.element)) { this.element.setMetaProperty('referenced-element', 'schema'); } return result; } } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SchemaVisitor); /***/ }), /***/ 498: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1908); /** * @public */ class Security extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ArrayElement { static primaryClass = 'security'; constructor(content, meta, attributes) { super(content, meta, attributes); this.classes.push(Security.primaryClass); } } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Security); /***/ }), /***/ 526: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3579); /* harmony import */ var _internal_reduced_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30259); /** * Returns a value wrapped to indicate that it is the final value of the reduce * and transduce functions. The returned value should be considered a black * box: the internal structure is not guaranteed to be stable. * * This optimization is available to the below functions: * - [`reduce`](#reduce) * - [`reduceWhile`](#reduceWhile) * - [`reduceBy`](#reduceBy) * - [`reduceRight`](#reduceRight) * - [`transduce`](#transduce) * * @func * @memberOf R * @since v0.15.0 * @category List * @sig a -> * * @param {*} x The final value of the reduce. * @return {*} The wrapped value. * @see R.reduce, R.reduceWhile, R.reduceBy, R.reduceRight, R.transduce * @example * * R.reduce( * (acc, item) => item > 3 ? R.reduced(acc) : acc.concat(item), * [], * [1, 2, 3, 4, 5]) // [1, 2, 3] */ var reduced = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_internal_reduced_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reduced); /***/ }), /***/ 545: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _swagger_api_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(83400); /** * @public */ class Example extends _swagger_api_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_MODULE_0__.ExampleElement {} /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Example); /***/ }), /***/ 636: /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _swagger_api_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35731); /* harmony import */ var _swagger_api_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(97618); /* harmony import */ var _helpers_fetch_polyfill_node_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29641); /* harmony import */ var _helpers_abortcontroller_polyfill_node_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34399); /* harmony import */ var _http_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51670); class HTTPResolverSwaggerClient extends _swagger_api_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_3__["default"] { swaggerHTTPClient = _http_index_js__WEBPACK_IMPORTED_MODULE_2__["default"]; swaggerHTTPClientConfig; constructor({ swaggerHTTPClient = _http_index_js__WEBPACK_IMPORTED_MODULE_2__["default"], swaggerHTTPClientConfig = {}, ...rest } = {}) { super({ ...rest, name: 'http-swagger-client' }); this.swaggerHTTPClient = swaggerHTTPClient; this.swaggerHTTPClientConfig = swaggerHTTPClientConfig; } getHttpClient() { return this.swaggerHTTPClient; } async read(file) { const client = this.getHttpClient(); const controller = new AbortController(); const { signal } = controller; const timeoutID = setTimeout(() => { controller.abort(); }, this.timeout); const credentials = this.getHttpClient().withCredentials || this.withCredentials ? 'include' : 'same-origin'; const redirect = this.redirects === 0 ? 'error' : 'follow'; const follow = this.redirects > 0 ? this.redirects : undefined; try { const response = await client({ url: file.uri, signal, userFetch: async (resource, options) => { let res = await fetch(resource, options); try { // undici supports mutations res.headers.delete('Content-Type'); } catch { // Fetch API has guards which prevent mutations res = new Response(res.body, { ...res, headers: new Headers(res.headers) }); res.headers.delete('Content-Type'); } return res; }, credentials, redirect, follow, ...this.swaggerHTTPClientConfig }); return response.text.arrayBuffer(); } catch (error) { throw new _swagger_api_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_4__["default"](`Error downloading "${file.uri}"`, { cause: error }); } finally { clearTimeout(timeoutID); } } } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HTTPResolverSwaggerClient); /***/ }), /***/ 659: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var Symbol = __webpack_require__(51873); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } module.exports = getRawTag; /***/ }), /***/ 694: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; // TODO: remove from `core-js@4` __webpack_require__(91599); var parent = __webpack_require__(37257); __webpack_require__(12560); module.exports = parent; /***/ }), /***/ 730: /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ clearCache: () => (/* reexport safe */ _generic_index_js__WEBPACK_IMPORTED_MODULE_1__.clearCache), /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _resolve_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40278); /* harmony import */ var _normalize_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12757); /* harmony import */ var _helpers_openapi_predicates_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50918); /* harmony import */ var _generic_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52398); const openApi30Strategy = { name: 'openapi-3-0', match(spec) { return (0,_helpers_openapi_predicates_js__WEBPACK_IMPORTED_MODULE_2__.isOpenAPI30)(spec); }, normalize(spec) { const { spec: normalized } = (0,_normalize_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ spec }); return normalized; }, async resolve(options) { return (0,_resolve_js__WEBPACK_IMPORTED_MODULE_0__["default"])(options); } }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (openApi30Strategy); /***/ }), /***/ 844: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ BaseLicenseVisitor: () => (/* binding */ BaseLicenseVisitor), /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _swagger_api_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2086); /* harmony import */ var _elements_License_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50406); /** * @public */ const BaseLicenseVisitor = _swagger_api_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_MODULE_0__["default"].visitors.document.objects.License.$visitor; /** * @public */ class LicenseVisitor extends BaseLicenseVisitor { constructor(options) { super(options); this.element = new _elements_License_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](); } } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LicenseVisitor); /***/ }), /***/ 954: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2173); /** * Removes the sub-list of `list` starting at index `start` and containing * `count` elements. _Note that this is not destructive_: it returns a copy of * the list with the changes. * <small>No lists have been harmed in the application of this function.</small> * * @func * @memberOf R * @since v0.2.2 * @category List * @sig Number -> Number -> [a] -> [a] * @param {Number} start The position to start removing elements * @param {Number} count The number of elements to remove * @param {Array} list The list to remove from * @return {Array} A new Array with `count` elements from `start` removed. * @see R.without * @example * * R.remove(2, 3, [1,2,3,4,5,6,7,8]); //=> [1,2,6,7,8] */ var remove = /*#__PURE__*/(0,_internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function remove(start, count, list) { var result = Array.prototype.slice.call(list, 0); result.splice(start, count); return result; }); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (remove); /***/ }), /***/ 1185: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6993); /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11892); /* harmony import */ var _generics_AlternatingVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84193); /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5051); /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39633); /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9748); /** * @public */ /** * @public */ class SchemaVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_AlternatingVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) { constructor(options) { super(options); this.alternator = [{ predicate: _predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isReferenceLikeElement, specPath: ['document', 'objects', 'Reference'] }, { predicate: ramda__WEBPACK_IMPORTED_MODULE_4__["default"], specPath: ['document', 'objects', 'Schema'] }]; } ObjectElement(objectElement) { const result = _generics_AlternatingVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"].prototype.enter.call(this, objectElement); if ((0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_5__.isReferenceElement)(this.element)) { this.element.setMetaProperty('referenced-element', 'schema'); } return result; } } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SchemaVisitor); /***/ }), /***/ 1322: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3579); /** * Gives a single-word string description of the (native) type of a value, * returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not * attempt to distinguish user Object types any further, reporting them all as * 'Object'. * * @func * @memberOf R * @since v0.8.0 * @category Type * @sig * -> String * @param {*} val The value to test * @return {String} * @example * * R.type({}); //=> "Object" * R.type(1); //=> "Number" * R.type(false); //=> "Boolean" * R.type('s'); //=> "String" * R.type(null); //=> "Null" * R.type([]); //=> "Array" * R.type(/[A-z]/); //=> "RegExp" * R.type(() => {}); //=> "Function" * R.type(async () => {}); //=> "AsyncFunction" * R.type(undefined); //=> "Undefined" * R.type(BigInt(123)); //=> "BigInt" */ var type = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function type(val) { return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1); }); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (type); /***/ }), /***/ 1413: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _swagger_api_apidom_ns_json_schema_draft_6__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57270); /* harmony import */ var _elements_JSONSchema_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76708); /** * @public */ class JSONSchemaVisitor extends _swagger_api_apidom_ns_json_schema_draft_6__WEBPACK_IMPORTED_MODULE_0__["default"] { constructor(options) { super(options); this.element = new _elements_JSONSchema_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](); } // eslint-disable-next-line class-methods-use-this get defaultDialectIdentifier() { return 'http://json-schema.org/draft-07/schema#'; } } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JSONSchemaVisitor); /***/ }), /***/ 1538: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36315); const testJSONPointer = jsonPointer => { try { const parseResult = (0,_parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(jsonPointer, { translator: null }); return parseResult.result.success; } catch { return false; } }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (testJSONPointer); /***/ }), /***/ 1650: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23557); /* harmony import */ var _util_url_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(96664); /* harmony import */ var _File_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(38396); /* harmony import */ var _util_plugins_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17955); /* harmony import */ var _errors_ParseError_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58155); /* harmony import */ var _errors_UnmatchedResolverError_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12207); /* harmony import */ var _resolve_util_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(84494); /** * Parses the given file's contents, using the configured parser plugins. */ const parseFile = async (file, options) => { const optsBoundParsers = options.parse.parsers.map(parser => { const clonedParser = Object.create(parser); return Object.assign(clonedParser, options.parse.parserOpts); }); const parsers = await _util_plugins_mjs__WEBPACK_IMPORTED_MODULE_0__.filter('canParse', [file, options], optsBoundParsers); // we couldn't find any parser for this File if ((0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(parsers)) { throw new _errors_UnmatchedResolverError_mjs__WEBPACK_IMPORTED_MODULE_2__["default"](file.uri); } try { const { plugin, result } = await _util_plugins_mjs__WEBPACK_IMPORTED_MODULE_0__.run('parse', [file, options], parsers); // empty files handling if (!plugin.allowEmpty && result.isEmpty) { return Promise.reject(new _errors_ParseError_mjs__WEBPACK_IMPORTED_MODULE_3__["default"](`Error while parsing file "${file.uri}". File is empty.`)); } return result; } catch (error) { throw new _errors_ParseError_mjs__WEBPACK_IMPORTED_MODULE_3__["default"](`Error while parsing file "${file.uri}"`, { cause: error }); } }; /** * Parses a file into ApiDOM. */ const parse = async (uri, options) => { /** * If the path is a filesystem path, then convert it to a URL. * * NOTE: According to the JSON Reference spec, these should already be URLs, * but, in practice, many people use local filesystem paths instead. * So we're being generous here and doing the conversion automatically. * This is not intended to be a 100% bulletproof solution. * If it doesn't work for your use-case, then use a URL instead. */ const file = new _File_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]({ uri: _util_url_mjs__WEBPACK_IMPORTED_MODULE_5__.sanitize(_util_url_mjs__WEBPACK_IMPORTED_MODULE_5__.stripHash(uri)), mediaType: options.parse.mediaType }); const data = await (0,_resolve_util_mjs__WEBPACK_IMPORTED_MODULE_6__.readFile)(file, options); return parseFile(new _File_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]({ ...file, data }), options); }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse); /***/ }), /***/ 1679: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25845); /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11182); /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1322); /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85883); /** * Checks if input value is `String`. * * @func isString * @memberOf RA * @since {@link https://char0n.github.io/ramda-adjunct/0.4.0|v0.4.0} * @category Type * @sig * -> Boolean * @param {*} val The value to test * @return {boolean} * @see {@link RA.isNotString|isNotString} * @example * * RA.isString('abc'); //=> true * RA.isString(1); //=> false */ var isString = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(ramda__WEBPACK_IMPORTED_MODULE_2__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])('String'))); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isString); /***/ }), /***/ 1704: /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ SpecMap: () => (/* binding */ SpecMap), /* harmony export */ "default": () => (/* binding */ mapSpec), /* harmony export */ plugins: () => (/* binding */ plugins) /* harmony export */ }); /* harmony import */ var _lib_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10692); /* harmony import */ var _lib_refs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65084); /* harmony import */ var _lib_all_of_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48301); /* harmony import */ var _lib_parameters_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(34438); /* harmony import */ var _lib_properties_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67783); /* harmony import */ var _lib_context_tree_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(21664); /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3832); const PLUGIN_DISPATCH_LIMIT = 100; const noop = () => {}; class SpecMap { static getPluginName(plugin) { return plugin.pluginName; } static getPatchesOfType(patches, fn) { return patches.filter(fn); } constructor(opts) { Object.assign(this, { spec: '', debugLevel: 'info', plugins: [], pluginHistory: {}, errors: [], mutations: [], promisedPatches: [], state: {}, patches: [], context: {}, contextTree: new _lib_context_tree_js__WEBPACK_IMPORTED_MODULE_6__["default"](), showDebug: false, allPatches: [], // only populated if showDebug is true pluginProp: 'specMap', libMethods: Object.assign(Object.create(this), _lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"], { getInstance: () => this }), allowMetaPatches: false }, opts); // Lib methods bound this.get = this._get.bind(this); // eslint-disable-line no-underscore-dangle this.getContext = this._getContext.bind(this); // eslint-disable-line no-underscore-dangle this.hasRun = this._hasRun.bind(this); // eslint-disable-line no-underscore-dangle this.wrappedPlugins = this.plugins.map(this.wrapPlugin.bind(this)).filter(_lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction); // Initial patch(s) this.patches.push(_lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].add([], this.spec)); this.patches.push(_lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].context([], this.context)); this.updatePatches(this.patches); } debug(level, ...args) { if (this.debugLevel === level) { console.log(...args); // eslint-disable-line no-console } } verbose(header, ...args) { if (this.debugLevel === 'verbose') { console.log(`[${header}] `, ...args); // eslint-disable-line no-console } } wrapPlugin(plugin, name) { const { pathDiscriminator } = this; let ctx = null; let fn; if (plugin[this.pluginProp]) { ctx = plugin; fn = plugin[this.pluginProp]; } else if (_lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(plugin)) { fn = plugin; } else if (_lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(plugin)) { fn = createKeyBasedPlugin(plugin); } return Object.assign(fn.bind(ctx), { pluginName: plugin.name || name, isGenerator: _lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isGenerator(fn) }); // Expected plugin interface: {key: string, plugin: fn*} // This traverses depth-first and immediately applies yielded patches. // This strategy should work well for most plugins (including the built-ins). // We might consider making this (traversing & application) configurable later. function createKeyBasedPlugin(pluginObj) { const isSubPath = (path, tested) => { if (!Array.isArray(path)) { return true; } return path.every((val, i) => val === tested[i]); }; return function* generator(patches, specmap) { const refCache = {}; // eslint-disable-next-line no-restricted-syntax for (const [i, patch] of patches.filter(_lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isAdditiveMutation).entries()) { if (i < _constants_js__WEBPACK_IMPORTED_MODULE_5__.TRAVERSE_LIMIT) { yield* traverse(patch.value, patch.path, patch); } else { return; } } function* traverse(obj, path, patch) { if (!_lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(obj)) { if (pluginObj.key === path[path.length - 1]) { yield pluginObj.plugin(obj, pluginObj.key, path, specmap); } } else { const parentIndex = path.length - 1; const parent = path[parentIndex]; const indexOfFirstProperties = path.indexOf('properties'); const isRootProperties = parent === 'properties' && parentIndex === indexOfFirstProperties; const traversed = specmap.allowMetaPatches && refCache[obj.$$ref]; // eslint-disable-next-line no-restricted-syntax for (const key of Object.keys(obj)) { const val = obj[key]; const updatedPath = path.concat(key); const isObj = _lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(val); const objRef = obj.$$ref; if (!traversed) { if (isObj) { // Only store the ref if it exists if (specmap.allowMetaPatches && objRef && isSubPath(pathDiscriminator, updatedPath)) { refCache[objRef] = true; } yield* traverse(val, updatedPath, patch); } } if (!isRootProperties && key === pluginObj.key) { const isWithinPathDiscriminator = isSubPath(pathDiscriminator, path); if (!pathDiscriminator || isWithinPathDiscriminator) { yield pluginObj.plugin(val, key, updatedPath, specmap, patch); } } } } } }; } } nextPlugin() { return this.wrappedPlugins.find(plugin => { const mutations = this.getMutationsForPlugin(plugin); return mutations.length > 0; }); } nextPromisedPatch() { if (this.promisedPatches.length > 0) { return Promise.race(this.promisedPatches.map(patch => patch.value)); } return undefined; } getPluginHistory(plugin) { const name = this.constructor.getPluginName(plugin); return this.pluginHistory[name] || []; } getPluginRunCount(plugin) { return this.getPluginHistory(plugin).length; } getPluginHistoryTip(plugin) { const history = this.getPluginHistory(plugin); const val = history && history[history.length - 1]; return val || {}; } getPluginMutationIndex(plugin) { const mi = this.getPluginHistoryTip(plugin).mutationIndex; return typeof mi !== 'number' ? -1 : mi; } updatePluginHistory(plugin, val) { const name = this.constructor.getPluginName(plugin); this.pluginHistory[name] = this.pluginHistory[name] || []; this.pluginHistory[name].push(val); } updatePatches(patches) { _lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].normalizeArray(patches).forEach(patch => { if (patch instanceof Error) { this.errors.push(patch); return; } try { if (!_lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(patch)) { this.debug('updatePatches', 'Got a non-object patch', patch); return; } if (this.showDebug) { this.allPatches.push(patch); } if (_lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPromise(patch.value)) { this.promisedPatches.push(patch); this.promisedPatchThen(patch); return; } if (_lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isContextPatch(patch)) { this.setContext(patch.path, patch.value); return; } if (_lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isMutation(patch)) { this.updateMutations(patch); } } catch (e) { console.error(e); // eslint-disable-line no-console this.errors.push(e); } }); } updateMutations(patch) { if (typeof patch.value === 'object' && !Array.isArray(patch.value) && this.allowMetaPatches) { patch.value = { ...patch.value }; } const result = _lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].applyPatch(this.state, patch, { allowMetaPatches: this.allowMetaPatches }); if (result) { this.mutations.push(patch); this.state = result; } } removePromisedPatch(patch) { const index = this.promisedPatches.indexOf(patch); if (index < 0) { this.debug("Tried to remove a promisedPatch that isn't there!"); return; } this.promisedPatches.splice(index, 1); } promisedPatchThen(patch) { patch.value = patch.value.then(val => { const promisedPatch = { ...patch, value: val }; this.removePromisedPatch(patch); this.updatePatches(promisedPatch); }).catch(e => { this.removePromisedPatch(patch); this.updatePatches(e); }); return patch.value; } getMutations(from, to) { from = from || 0; if (typeof to !== 'number') { to = this.mutations.length; } return this.mutations.slice(from, to); } getCurrentMutations() { return this.getMutationsForPlugin(this.getCurrentPlugin()); } getMutationsForPlugin(plugin) { const tip = this.getPluginMutationIndex(plugin); return this.getMutations(tip + 1); } getCurrentPlugin() { return this.currentPlugin; } getLib() { return this.libMethods; } // eslint-disable-next-line no-underscore-dangle _get(path) { return _lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].getIn(this.state, path); } // eslint-disable-next-line no-underscore-dangle _getContext(path) { return this.contextTree.get(path); } setContext(path, value) { return this.contextTree.set(path, value); } // eslint-disable-next-line no-underscore-dangle _hasRun(count) { const times = this.getPluginRunCount(this.getCurrentPlugin()); return times > (count || 0); } dispatch() { const that = this; const plugin = this.nextPlugin(); if (!plugin) { const nextPromise = this.nextPromisedPatch(); if (nextPromise) { return nextPromise.then(() => this.dispatch()).catch(() => this.dispatch()); } // We're done! const result = { spec: this.state, errors: this.errors }; if (this.showDebug) { result.patches = this.allPatches; } return Promise.resolve(result); } // Makes sure plugin isn't running an endless loop that.pluginCount = that.pluginCount || new WeakMap(); that.pluginCount.set(plugin, (that.pluginCount.get(plugin) || 0) + 1); if (that.pluginCount[plugin] > PLUGIN_DISPATCH_LIMIT) { return Promise.resolve({ spec: that.state, errors: that.errors.concat(new Error(`We've reached a hard limit of ${PLUGIN_DISPATCH_LIMIT} plugin runs`)) }); } // A different plugin runs, wait for all promises to resolve, then retry if (plugin !== this.currentPlugin && this.promisedPatches.length) { const promises = this.promisedPatches.map(p => p.value); // Waits for all to settle instead of Promise.all which stops on rejection return Promise.all(promises.map(promise => promise.then(noop, noop))).then(() => this.dispatch()); } // Ok, run the plugin return executePlugin(); function executePlugin() { that.currentPlugin = plugin; const mutations = that.getCurrentMutations(); const lastMutationIndex = that.mutations.length - 1; try { if (plugin.isGenerator) { // eslint-disable-next-line no-restricted-syntax for (const yieldedPatches of plugin(mutations, that.getLib())) { updatePatches(yieldedPatches); } } else { const newPatches = plugin(mutations, that.getLib()); updatePatches(newPatches); } } catch (e) { console.error(e); // eslint-disable-line no-console updatePatches([Object.assign(Object.create(e), { plugin })]); } finally { that.updatePluginHistory(plugin, { mutationIndex: lastMutationIndex }); } return that.dispatch(); } function updatePatches(patches) { if (patches) { patches = _lib_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].fullyNormalizeArray(patches); that.updatePatches(patches, plugin); } } } } function mapSpec(opts) { return new SpecMap(opts).dispatch(); } const plugins = { refs: _lib_refs_js__WEBPACK_IMPORTED_MODULE_1__["default"], allOf: _lib_all_of_js__WEBPACK_IMPORTED_MODULE_2__["default"], parameters: _lib_parameters_js__WEBPACK_IMPORTED_MODULE_3__["default"], properties: _lib_properties_js__WEBPACK_IMPORTED_MODULE_4__["default"] }; /***/ }), /***/ 1824: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _BundleError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41412); /** * @public */ class UnmatchedBundleStrategyError extends _BundleError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {} /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UnmatchedBundleStrategyError); /***/ }), /***/ 1843: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1908); /** * @public */ class RequestBody extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ObjectElement { constructor(content, meta, attributes) { super(content, meta, attributes); this.element = 'requestBody'; } get description() { return this.get('description'); } set description(description) { this.set('description', description); } get contentProp() { return this.get('content'); } set contentProp(content) { this.set('content', content); } get required() { if (this.hasKey('required')) { return this.get('required'); } return new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.BooleanElement(false); } set required(required) { this.set('required', required); } } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RequestBody); /***/ }), /***/ 1882: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var baseGetTag = __webpack_require__(72552), isObject = __webpack_require__(23805); /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', proxyTag = '[object Proxy]'; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { if (!isObject(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 9 which returns 'object' for typed arrays and other constructors. var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } module.exports = isFunction; /***/ }), /***/ 1907: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; var NATIVE_BIND = __webpack_require__(41505); var FunctionPrototype = Function.prototype; var call = FunctionPrototype.call; // eslint-disable-next-line es/no-function-prototype-bind -- safe var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) { return function () { return call.apply(fn, arguments); }; }; /***/ }), /***/ 1908: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ AnnotationElement: () => (/* reexport safe */ _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]), /* harmony export */ ArrayElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement), /* harmony export */ BooleanElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.BooleanElement), /* harmony export */ CommentElement: () => (/* reexport safe */ _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]), /* harmony export */ LinkElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.LinkElement), /* harmony export */ NullElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.NullElement), /* harmony export */ NumberElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.NumberElement), /* harmony export */ ObjectElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement), /* harmony export */ ParseResultElement: () => (/* reexport safe */ _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]), /* harmony export */ RefElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.RefElement), /* harmony export */ SourceMapElement: () => (/* reexport safe */ _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]), /* harmony export */ StringElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.StringElement) /* harmony export */ }); /* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34035); /* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5443); /* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6127); /* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(59110); /* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36863); /* harmony import */ var _index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5869); minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODU