@swagger-api/apidom-parser-adapter-api-design-systems-yaml 0.92.0 → 0.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6799,38 +6799,6 @@ var isUndefined = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_stubUnde
|
|
|
6799
6799
|
|
|
6800
6800
|
/***/ }),
|
|
6801
6801
|
|
|
6802
|
-
/***/ 71329:
|
|
6803
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6804
|
-
|
|
6805
|
-
"use strict";
|
|
6806
|
-
__webpack_require__.r(__webpack_exports__);
|
|
6807
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6808
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
6809
|
-
/* harmony export */ });
|
|
6810
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16360);
|
|
6811
|
-
/* harmony import */ var _stubUndefined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72031);
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
/**
|
|
6816
|
-
* A function that performs no operations.
|
|
6817
|
-
*
|
|
6818
|
-
* @func noop
|
|
6819
|
-
* @memberOf RA
|
|
6820
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/1.0.0|v1.0.0}
|
|
6821
|
-
* @category Function
|
|
6822
|
-
* @sig ... -> undefined
|
|
6823
|
-
* @return {undefined}
|
|
6824
|
-
* @example
|
|
6825
|
-
*
|
|
6826
|
-
* RA.noop(); //=> undefined
|
|
6827
|
-
* RA.noop(1, 2, 3); //=> undefined
|
|
6828
|
-
*/
|
|
6829
|
-
var noop = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_stubUndefined__WEBPACK_IMPORTED_MODULE_1__["default"])());
|
|
6830
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (noop);
|
|
6831
|
-
|
|
6832
|
-
/***/ }),
|
|
6833
|
-
|
|
6834
6802
|
/***/ 68612:
|
|
6835
6803
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6836
6804
|
|
|
@@ -7023,10 +6991,383 @@ var trimStart = (0,_isFunction__WEBPACK_IMPORTED_MODULE_2__["default"])(String.p
|
|
|
7023
6991
|
|
|
7024
6992
|
/***/ }),
|
|
7025
6993
|
|
|
7026
|
-
/***/
|
|
7027
|
-
/***/ ((
|
|
6994
|
+
/***/ 96252:
|
|
6995
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6996
|
+
|
|
6997
|
+
"use strict";
|
|
6998
|
+
__webpack_require__.r(__webpack_exports__);
|
|
6999
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7000
|
+
/* harmony export */ Mixin: () => (/* binding */ Mixin),
|
|
7001
|
+
/* harmony export */ decorate: () => (/* binding */ decorate),
|
|
7002
|
+
/* harmony export */ hasMixin: () => (/* binding */ hasMixin),
|
|
7003
|
+
/* harmony export */ mix: () => (/* binding */ mix),
|
|
7004
|
+
/* harmony export */ settings: () => (/* binding */ settings)
|
|
7005
|
+
/* harmony export */ });
|
|
7006
|
+
/**
|
|
7007
|
+
* Utility function that works like `Object.apply`, but copies getters and setters properly as well. Additionally gives
|
|
7008
|
+
* the option to exclude properties by name.
|
|
7009
|
+
*/
|
|
7010
|
+
const copyProps = (dest, src, exclude = []) => {
|
|
7011
|
+
const props = Object.getOwnPropertyDescriptors(src);
|
|
7012
|
+
for (let prop of exclude)
|
|
7013
|
+
delete props[prop];
|
|
7014
|
+
Object.defineProperties(dest, props);
|
|
7015
|
+
};
|
|
7016
|
+
/**
|
|
7017
|
+
* Returns the full chain of prototypes up until Object.prototype given a starting object. The order of prototypes will
|
|
7018
|
+
* be closest to farthest in the chain.
|
|
7019
|
+
*/
|
|
7020
|
+
const protoChain = (obj, currentChain = [obj]) => {
|
|
7021
|
+
const proto = Object.getPrototypeOf(obj);
|
|
7022
|
+
if (proto === null)
|
|
7023
|
+
return currentChain;
|
|
7024
|
+
return protoChain(proto, [...currentChain, proto]);
|
|
7025
|
+
};
|
|
7026
|
+
/**
|
|
7027
|
+
* Identifies the nearest ancestor common to all the given objects in their prototype chains. For most unrelated
|
|
7028
|
+
* objects, this function should return Object.prototype.
|
|
7029
|
+
*/
|
|
7030
|
+
const nearestCommonProto = (...objs) => {
|
|
7031
|
+
if (objs.length === 0)
|
|
7032
|
+
return undefined;
|
|
7033
|
+
let commonProto = undefined;
|
|
7034
|
+
const protoChains = objs.map(obj => protoChain(obj));
|
|
7035
|
+
while (protoChains.every(protoChain => protoChain.length > 0)) {
|
|
7036
|
+
const protos = protoChains.map(protoChain => protoChain.pop());
|
|
7037
|
+
const potentialCommonProto = protos[0];
|
|
7038
|
+
if (protos.every(proto => proto === potentialCommonProto))
|
|
7039
|
+
commonProto = potentialCommonProto;
|
|
7040
|
+
else
|
|
7041
|
+
break;
|
|
7042
|
+
}
|
|
7043
|
+
return commonProto;
|
|
7044
|
+
};
|
|
7045
|
+
/**
|
|
7046
|
+
* Creates a new prototype object that is a mixture of the given prototypes. The mixing is achieved by first
|
|
7047
|
+
* identifying the nearest common ancestor and using it as the prototype for a new object. Then all properties/methods
|
|
7048
|
+
* downstream of this prototype (ONLY downstream) are copied into the new object.
|
|
7049
|
+
*
|
|
7050
|
+
* The resulting prototype is more performant than softMixProtos(...), as well as ES5 compatible. However, it's not as
|
|
7051
|
+
* flexible as updates to the source prototypes aren't captured by the mixed result. See softMixProtos for why you may
|
|
7052
|
+
* want to use that instead.
|
|
7053
|
+
*/
|
|
7054
|
+
const hardMixProtos = (ingredients, constructor, exclude = []) => {
|
|
7055
|
+
var _a;
|
|
7056
|
+
const base = (_a = nearestCommonProto(...ingredients)) !== null && _a !== void 0 ? _a : Object.prototype;
|
|
7057
|
+
const mixedProto = Object.create(base);
|
|
7058
|
+
// Keeps track of prototypes we've already visited to avoid copying the same properties multiple times. We init the
|
|
7059
|
+
// list with the proto chain below the nearest common ancestor because we don't want any of those methods mixed in
|
|
7060
|
+
// when they will already be accessible via prototype access.
|
|
7061
|
+
const visitedProtos = protoChain(base);
|
|
7062
|
+
for (let prototype of ingredients) {
|
|
7063
|
+
let protos = protoChain(prototype);
|
|
7064
|
+
// Apply the prototype chain in reverse order so that old methods don't override newer ones.
|
|
7065
|
+
for (let i = protos.length - 1; i >= 0; i--) {
|
|
7066
|
+
let newProto = protos[i];
|
|
7067
|
+
if (visitedProtos.indexOf(newProto) === -1) {
|
|
7068
|
+
copyProps(mixedProto, newProto, ['constructor', ...exclude]);
|
|
7069
|
+
visitedProtos.push(newProto);
|
|
7070
|
+
}
|
|
7071
|
+
}
|
|
7072
|
+
}
|
|
7073
|
+
mixedProto.constructor = constructor;
|
|
7074
|
+
return mixedProto;
|
|
7075
|
+
};
|
|
7076
|
+
const unique = (arr) => arr.filter((e, i) => arr.indexOf(e) == i);
|
|
7077
|
+
|
|
7078
|
+
/**
|
|
7079
|
+
* Finds the ingredient with the given prop, searching in reverse order and breadth-first if searching ingredient
|
|
7080
|
+
* prototypes is required.
|
|
7081
|
+
*/
|
|
7082
|
+
const getIngredientWithProp = (prop, ingredients) => {
|
|
7083
|
+
const protoChains = ingredients.map(ingredient => protoChain(ingredient));
|
|
7084
|
+
// since we search breadth-first, we need to keep track of our depth in the prototype chains
|
|
7085
|
+
let protoDepth = 0;
|
|
7086
|
+
// not all prototype chains are the same depth, so this remains true as long as at least one of the ingredients'
|
|
7087
|
+
// prototype chains has an object at this depth
|
|
7088
|
+
let protosAreLeftToSearch = true;
|
|
7089
|
+
while (protosAreLeftToSearch) {
|
|
7090
|
+
// with the start of each horizontal slice, we assume this is the one that's deeper than any of the proto chains
|
|
7091
|
+
protosAreLeftToSearch = false;
|
|
7092
|
+
// scan through the ingredients right to left
|
|
7093
|
+
for (let i = ingredients.length - 1; i >= 0; i--) {
|
|
7094
|
+
const searchTarget = protoChains[i][protoDepth];
|
|
7095
|
+
if (searchTarget !== undefined && searchTarget !== null) {
|
|
7096
|
+
// if we find something, this is proof that this horizontal slice potentially more objects to search
|
|
7097
|
+
protosAreLeftToSearch = true;
|
|
7098
|
+
// eureka, we found it
|
|
7099
|
+
if (Object.getOwnPropertyDescriptor(searchTarget, prop) != undefined) {
|
|
7100
|
+
return protoChains[i][0];
|
|
7101
|
+
}
|
|
7102
|
+
}
|
|
7103
|
+
}
|
|
7104
|
+
protoDepth++;
|
|
7105
|
+
}
|
|
7106
|
+
return undefined;
|
|
7107
|
+
};
|
|
7108
|
+
/**
|
|
7109
|
+
* "Mixes" ingredients by wrapping them in a Proxy. The optional prototype argument allows the mixed object to sit
|
|
7110
|
+
* downstream of an existing prototype chain. Note that "properties" cannot be added, deleted, or modified.
|
|
7111
|
+
*/
|
|
7112
|
+
const proxyMix = (ingredients, prototype = Object.prototype) => new Proxy({}, {
|
|
7113
|
+
getPrototypeOf() {
|
|
7114
|
+
return prototype;
|
|
7115
|
+
},
|
|
7116
|
+
setPrototypeOf() {
|
|
7117
|
+
throw Error('Cannot set prototype of Proxies created by ts-mixer');
|
|
7118
|
+
},
|
|
7119
|
+
getOwnPropertyDescriptor(_, prop) {
|
|
7120
|
+
return Object.getOwnPropertyDescriptor(getIngredientWithProp(prop, ingredients) || {}, prop);
|
|
7121
|
+
},
|
|
7122
|
+
defineProperty() {
|
|
7123
|
+
throw new Error('Cannot define new properties on Proxies created by ts-mixer');
|
|
7124
|
+
},
|
|
7125
|
+
has(_, prop) {
|
|
7126
|
+
return getIngredientWithProp(prop, ingredients) !== undefined || prototype[prop] !== undefined;
|
|
7127
|
+
},
|
|
7128
|
+
get(_, prop) {
|
|
7129
|
+
return (getIngredientWithProp(prop, ingredients) || prototype)[prop];
|
|
7130
|
+
},
|
|
7131
|
+
set(_, prop, val) {
|
|
7132
|
+
const ingredientWithProp = getIngredientWithProp(prop, ingredients);
|
|
7133
|
+
if (ingredientWithProp === undefined)
|
|
7134
|
+
throw new Error('Cannot set new properties on Proxies created by ts-mixer');
|
|
7135
|
+
ingredientWithProp[prop] = val;
|
|
7136
|
+
return true;
|
|
7137
|
+
},
|
|
7138
|
+
deleteProperty() {
|
|
7139
|
+
throw new Error('Cannot delete properties on Proxies created by ts-mixer');
|
|
7140
|
+
},
|
|
7141
|
+
ownKeys() {
|
|
7142
|
+
return ingredients
|
|
7143
|
+
.map(Object.getOwnPropertyNames)
|
|
7144
|
+
.reduce((prev, curr) => curr.concat(prev.filter(key => curr.indexOf(key) < 0)));
|
|
7145
|
+
},
|
|
7146
|
+
});
|
|
7147
|
+
/**
|
|
7148
|
+
* Creates a new proxy-prototype object that is a "soft" mixture of the given prototypes. The mixing is achieved by
|
|
7149
|
+
* proxying all property access to the ingredients. This is not ES5 compatible and less performant. However, any
|
|
7150
|
+
* changes made to the source prototypes will be reflected in the proxy-prototype, which may be desirable.
|
|
7151
|
+
*/
|
|
7152
|
+
const softMixProtos = (ingredients, constructor) => proxyMix([...ingredients, { constructor }]);
|
|
7153
|
+
|
|
7154
|
+
const settings = {
|
|
7155
|
+
initFunction: null,
|
|
7156
|
+
staticsStrategy: 'copy',
|
|
7157
|
+
prototypeStrategy: 'copy',
|
|
7158
|
+
decoratorInheritance: 'deep',
|
|
7159
|
+
};
|
|
7160
|
+
|
|
7161
|
+
// Keeps track of constituent classes for every mixin class created by ts-mixer.
|
|
7162
|
+
const mixins = new Map();
|
|
7163
|
+
const getMixinsForClass = (clazz) => mixins.get(clazz);
|
|
7164
|
+
const registerMixins = (mixedClass, constituents) => mixins.set(mixedClass, constituents);
|
|
7165
|
+
const hasMixin = (instance, mixin) => {
|
|
7166
|
+
if (instance instanceof mixin)
|
|
7167
|
+
return true;
|
|
7168
|
+
const constructor = instance.constructor;
|
|
7169
|
+
const visited = new Set();
|
|
7170
|
+
let frontier = new Set();
|
|
7171
|
+
frontier.add(constructor);
|
|
7172
|
+
while (frontier.size > 0) {
|
|
7173
|
+
// check if the frontier has the mixin we're looking for. if not, we can say we visited every item in the frontier
|
|
7174
|
+
if (frontier.has(mixin))
|
|
7175
|
+
return true;
|
|
7176
|
+
frontier.forEach(item => visited.add(item));
|
|
7177
|
+
// build a new frontier based on the associated mixin classes and prototype chains of each frontier item
|
|
7178
|
+
const newFrontier = new Set();
|
|
7179
|
+
frontier.forEach(item => {
|
|
7180
|
+
var _a;
|
|
7181
|
+
const itemConstituents = (_a = mixins.get(item)) !== null && _a !== void 0 ? _a : protoChain(item.prototype).map(proto => proto.constructor).filter(item => item !== null);
|
|
7182
|
+
if (itemConstituents)
|
|
7183
|
+
itemConstituents.forEach(constituent => {
|
|
7184
|
+
if (!visited.has(constituent) && !frontier.has(constituent))
|
|
7185
|
+
newFrontier.add(constituent);
|
|
7186
|
+
});
|
|
7187
|
+
});
|
|
7188
|
+
// we have a new frontier, now search again
|
|
7189
|
+
frontier = newFrontier;
|
|
7190
|
+
}
|
|
7191
|
+
// if we get here, we couldn't find the mixin anywhere in the prototype chain or associated mixin classes
|
|
7192
|
+
return false;
|
|
7193
|
+
};
|
|
7194
|
+
|
|
7195
|
+
const mergeObjectsOfDecorators = (o1, o2) => {
|
|
7196
|
+
var _a, _b;
|
|
7197
|
+
const allKeys = unique([...Object.getOwnPropertyNames(o1), ...Object.getOwnPropertyNames(o2)]);
|
|
7198
|
+
const mergedObject = {};
|
|
7199
|
+
for (let key of allKeys)
|
|
7200
|
+
mergedObject[key] = unique([...((_a = o1 === null || o1 === void 0 ? void 0 : o1[key]) !== null && _a !== void 0 ? _a : []), ...((_b = o2 === null || o2 === void 0 ? void 0 : o2[key]) !== null && _b !== void 0 ? _b : [])]);
|
|
7201
|
+
return mergedObject;
|
|
7202
|
+
};
|
|
7203
|
+
const mergePropertyAndMethodDecorators = (d1, d2) => {
|
|
7204
|
+
var _a, _b, _c, _d;
|
|
7205
|
+
return ({
|
|
7206
|
+
property: mergeObjectsOfDecorators((_a = d1 === null || d1 === void 0 ? void 0 : d1.property) !== null && _a !== void 0 ? _a : {}, (_b = d2 === null || d2 === void 0 ? void 0 : d2.property) !== null && _b !== void 0 ? _b : {}),
|
|
7207
|
+
method: mergeObjectsOfDecorators((_c = d1 === null || d1 === void 0 ? void 0 : d1.method) !== null && _c !== void 0 ? _c : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.method) !== null && _d !== void 0 ? _d : {}),
|
|
7208
|
+
});
|
|
7209
|
+
};
|
|
7210
|
+
const mergeDecorators = (d1, d2) => {
|
|
7211
|
+
var _a, _b, _c, _d, _e, _f;
|
|
7212
|
+
return ({
|
|
7213
|
+
class: unique([...(_a = d1 === null || d1 === void 0 ? void 0 : d1.class) !== null && _a !== void 0 ? _a : [], ...(_b = d2 === null || d2 === void 0 ? void 0 : d2.class) !== null && _b !== void 0 ? _b : []]),
|
|
7214
|
+
static: mergePropertyAndMethodDecorators((_c = d1 === null || d1 === void 0 ? void 0 : d1.static) !== null && _c !== void 0 ? _c : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.static) !== null && _d !== void 0 ? _d : {}),
|
|
7215
|
+
instance: mergePropertyAndMethodDecorators((_e = d1 === null || d1 === void 0 ? void 0 : d1.instance) !== null && _e !== void 0 ? _e : {}, (_f = d2 === null || d2 === void 0 ? void 0 : d2.instance) !== null && _f !== void 0 ? _f : {}),
|
|
7216
|
+
});
|
|
7217
|
+
};
|
|
7218
|
+
const decorators = new Map();
|
|
7219
|
+
const findAllConstituentClasses = (...classes) => {
|
|
7220
|
+
var _a;
|
|
7221
|
+
const allClasses = new Set();
|
|
7222
|
+
const frontier = new Set([...classes]);
|
|
7223
|
+
while (frontier.size > 0) {
|
|
7224
|
+
for (let clazz of frontier) {
|
|
7225
|
+
const protoChainClasses = protoChain(clazz.prototype).map(proto => proto.constructor);
|
|
7226
|
+
const mixinClasses = (_a = getMixinsForClass(clazz)) !== null && _a !== void 0 ? _a : [];
|
|
7227
|
+
const potentiallyNewClasses = [...protoChainClasses, ...mixinClasses];
|
|
7228
|
+
const newClasses = potentiallyNewClasses.filter(c => !allClasses.has(c));
|
|
7229
|
+
for (let newClass of newClasses)
|
|
7230
|
+
frontier.add(newClass);
|
|
7231
|
+
allClasses.add(clazz);
|
|
7232
|
+
frontier.delete(clazz);
|
|
7233
|
+
}
|
|
7234
|
+
}
|
|
7235
|
+
return [...allClasses];
|
|
7236
|
+
};
|
|
7237
|
+
const deepDecoratorSearch = (...classes) => {
|
|
7238
|
+
const decoratorsForClassChain = findAllConstituentClasses(...classes)
|
|
7239
|
+
.map(clazz => decorators.get(clazz))
|
|
7240
|
+
.filter(decorators => !!decorators);
|
|
7241
|
+
if (decoratorsForClassChain.length == 0)
|
|
7242
|
+
return {};
|
|
7243
|
+
if (decoratorsForClassChain.length == 1)
|
|
7244
|
+
return decoratorsForClassChain[0];
|
|
7245
|
+
return decoratorsForClassChain.reduce((d1, d2) => mergeDecorators(d1, d2));
|
|
7246
|
+
};
|
|
7247
|
+
const directDecoratorSearch = (...classes) => {
|
|
7248
|
+
const classDecorators = classes.map(clazz => getDecoratorsForClass(clazz));
|
|
7249
|
+
if (classDecorators.length === 0)
|
|
7250
|
+
return {};
|
|
7251
|
+
if (classDecorators.length === 1)
|
|
7252
|
+
return classDecorators[0];
|
|
7253
|
+
return classDecorators.reduce((d1, d2) => mergeDecorators(d1, d2));
|
|
7254
|
+
};
|
|
7255
|
+
const getDecoratorsForClass = (clazz) => {
|
|
7256
|
+
let decoratorsForClass = decorators.get(clazz);
|
|
7257
|
+
if (!decoratorsForClass) {
|
|
7258
|
+
decoratorsForClass = {};
|
|
7259
|
+
decorators.set(clazz, decoratorsForClass);
|
|
7260
|
+
}
|
|
7261
|
+
return decoratorsForClass;
|
|
7262
|
+
};
|
|
7263
|
+
const decorateClass = (decorator) => ((clazz) => {
|
|
7264
|
+
const decoratorsForClass = getDecoratorsForClass(clazz);
|
|
7265
|
+
let classDecorators = decoratorsForClass.class;
|
|
7266
|
+
if (!classDecorators) {
|
|
7267
|
+
classDecorators = [];
|
|
7268
|
+
decoratorsForClass.class = classDecorators;
|
|
7269
|
+
}
|
|
7270
|
+
classDecorators.push(decorator);
|
|
7271
|
+
return decorator(clazz);
|
|
7272
|
+
});
|
|
7273
|
+
const decorateMember = (decorator) => ((object, key, ...otherArgs) => {
|
|
7274
|
+
var _a, _b, _c;
|
|
7275
|
+
const decoratorTargetType = typeof object === 'function' ? 'static' : 'instance';
|
|
7276
|
+
const decoratorType = typeof object[key] === 'function' ? 'method' : 'property';
|
|
7277
|
+
const clazz = decoratorTargetType === 'static' ? object : object.constructor;
|
|
7278
|
+
const decoratorsForClass = getDecoratorsForClass(clazz);
|
|
7279
|
+
const decoratorsForTargetType = (_a = decoratorsForClass === null || decoratorsForClass === void 0 ? void 0 : decoratorsForClass[decoratorTargetType]) !== null && _a !== void 0 ? _a : {};
|
|
7280
|
+
decoratorsForClass[decoratorTargetType] = decoratorsForTargetType;
|
|
7281
|
+
let decoratorsForType = (_b = decoratorsForTargetType === null || decoratorsForTargetType === void 0 ? void 0 : decoratorsForTargetType[decoratorType]) !== null && _b !== void 0 ? _b : {};
|
|
7282
|
+
decoratorsForTargetType[decoratorType] = decoratorsForType;
|
|
7283
|
+
let decoratorsForKey = (_c = decoratorsForType === null || decoratorsForType === void 0 ? void 0 : decoratorsForType[key]) !== null && _c !== void 0 ? _c : [];
|
|
7284
|
+
decoratorsForType[key] = decoratorsForKey;
|
|
7285
|
+
// @ts-ignore: array is type `A[] | B[]` and item is type `A | B`, so technically a type error, but it's fine
|
|
7286
|
+
decoratorsForKey.push(decorator);
|
|
7287
|
+
// @ts-ignore
|
|
7288
|
+
return decorator(object, key, ...otherArgs);
|
|
7289
|
+
});
|
|
7290
|
+
const decorate = (decorator) => ((...args) => {
|
|
7291
|
+
if (args.length === 1)
|
|
7292
|
+
return decorateClass(decorator)(args[0]);
|
|
7293
|
+
return decorateMember(decorator)(...args);
|
|
7294
|
+
});
|
|
7295
|
+
|
|
7296
|
+
function Mixin(...constructors) {
|
|
7297
|
+
var _a, _b, _c;
|
|
7298
|
+
const prototypes = constructors.map(constructor => constructor.prototype);
|
|
7299
|
+
// Here we gather up the init functions of the ingredient prototypes, combine them into one init function, and
|
|
7300
|
+
// attach it to the mixed class prototype. The reason we do this is because we want the init functions to mix
|
|
7301
|
+
// similarly to constructors -- not methods, which simply override each other.
|
|
7302
|
+
const initFunctionName = settings.initFunction;
|
|
7303
|
+
if (initFunctionName !== null) {
|
|
7304
|
+
const initFunctions = prototypes
|
|
7305
|
+
.map(proto => proto[initFunctionName])
|
|
7306
|
+
.filter(func => typeof func === 'function');
|
|
7307
|
+
const combinedInitFunction = function (...args) {
|
|
7308
|
+
for (let initFunction of initFunctions)
|
|
7309
|
+
initFunction.apply(this, args);
|
|
7310
|
+
};
|
|
7311
|
+
const extraProto = { [initFunctionName]: combinedInitFunction };
|
|
7312
|
+
prototypes.push(extraProto);
|
|
7313
|
+
}
|
|
7314
|
+
function MixedClass(...args) {
|
|
7315
|
+
for (const constructor of constructors)
|
|
7316
|
+
// @ts-ignore: potentially abstract class
|
|
7317
|
+
copyProps(this, new constructor(...args));
|
|
7318
|
+
if (initFunctionName !== null && typeof this[initFunctionName] === 'function')
|
|
7319
|
+
this[initFunctionName].apply(this, args);
|
|
7320
|
+
}
|
|
7321
|
+
MixedClass.prototype = settings.prototypeStrategy === 'copy'
|
|
7322
|
+
? hardMixProtos(prototypes, MixedClass)
|
|
7323
|
+
: softMixProtos(prototypes, MixedClass);
|
|
7324
|
+
Object.setPrototypeOf(MixedClass, settings.staticsStrategy === 'copy'
|
|
7325
|
+
? hardMixProtos(constructors, null, ['prototype'])
|
|
7326
|
+
: proxyMix(constructors, Function.prototype));
|
|
7327
|
+
let DecoratedMixedClass = MixedClass;
|
|
7328
|
+
if (settings.decoratorInheritance !== 'none') {
|
|
7329
|
+
const classDecorators = settings.decoratorInheritance === 'deep'
|
|
7330
|
+
? deepDecoratorSearch(...constructors)
|
|
7331
|
+
: directDecoratorSearch(...constructors);
|
|
7332
|
+
for (let decorator of (_a = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.class) !== null && _a !== void 0 ? _a : []) {
|
|
7333
|
+
const result = decorator(DecoratedMixedClass);
|
|
7334
|
+
if (result) {
|
|
7335
|
+
DecoratedMixedClass = result;
|
|
7336
|
+
}
|
|
7337
|
+
}
|
|
7338
|
+
applyPropAndMethodDecorators((_b = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.static) !== null && _b !== void 0 ? _b : {}, DecoratedMixedClass);
|
|
7339
|
+
applyPropAndMethodDecorators((_c = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.instance) !== null && _c !== void 0 ? _c : {}, DecoratedMixedClass.prototype);
|
|
7340
|
+
}
|
|
7341
|
+
registerMixins(DecoratedMixedClass, constructors);
|
|
7342
|
+
return DecoratedMixedClass;
|
|
7343
|
+
}
|
|
7344
|
+
const applyPropAndMethodDecorators = (propAndMethodDecorators, target) => {
|
|
7345
|
+
const propDecorators = propAndMethodDecorators.property;
|
|
7346
|
+
const methodDecorators = propAndMethodDecorators.method;
|
|
7347
|
+
if (propDecorators)
|
|
7348
|
+
for (let key in propDecorators)
|
|
7349
|
+
for (let decorator of propDecorators[key])
|
|
7350
|
+
decorator(target, key);
|
|
7351
|
+
if (methodDecorators)
|
|
7352
|
+
for (let key in methodDecorators)
|
|
7353
|
+
for (let decorator of methodDecorators[key])
|
|
7354
|
+
decorator(target, key, Object.getOwnPropertyDescriptor(target, key));
|
|
7355
|
+
};
|
|
7356
|
+
/**
|
|
7357
|
+
* A decorator version of the `Mixin` function. You'll want to use this instead of `Mixin` for mixing generic classes.
|
|
7358
|
+
*/
|
|
7359
|
+
const mix = (...ingredients) => decoratedClass => {
|
|
7360
|
+
// @ts-ignore
|
|
7361
|
+
const mixedClass = Mixin(...ingredients.concat([decoratedClass]));
|
|
7362
|
+
Object.defineProperty(mixedClass, 'name', {
|
|
7363
|
+
value: decoratedClass.name,
|
|
7364
|
+
writable: false,
|
|
7365
|
+
});
|
|
7366
|
+
return mixedClass;
|
|
7367
|
+
};
|
|
7368
|
+
|
|
7369
|
+
|
|
7028
7370
|
|
|
7029
|
-
!function(){"use strict";var u,c,a,s,f,y="properties",l="deepProperties",b="propertyDescriptors",d="staticProperties",O="staticDeepProperties",h="staticPropertyDescriptors",g="configuration",m="deepConfiguration",P="deepProps",A="deepStatics",j="deepConf",v="initializers",_="methods",w="composers",D="compose";function S(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[])}function r(r,t){return Array.prototype.slice.call(arguments,2).reduce(r,t)}var x=r.bind(0,function r(t,e){if(e)for(var n=S(e),o=0;o<n.length;o+=1)Object.defineProperty(t,n[o],Object.getOwnPropertyDescriptor(e,n[o]));return t});function C(r){return"function"==typeof r}function N(r){return r&&"object"==typeof r||C(r)}function z(r){return r&&"object"==typeof r&&r.__proto__==Object.prototype}var E=r.bind(0,function r(t,e){if(e===u)return t;if(Array.isArray(e))return(Array.isArray(t)?t:[]).concat(e);if(!z(e))return e;for(var n,o,i=S(e),p=0;p<i.length;)n=i[p++],(o=Object.getOwnPropertyDescriptor(e,n)).hasOwnProperty("value")?o.value!==u&&(t[n]=r(z(t[n])||Array.isArray(e[n])?t[n]:{},e[n])):Object.defineProperty(t,n,o);return t});function I(){return(c=Array.prototype.concat.apply([],arguments).filter(function(r,t,e){return C(r)&&e.indexOf(r)===t})).length?c:u}function t(r){return c=function r(){return function r(t){var e,n,o=r[D]||{},i={__proto__:o[_]},p=o[v],c=Array.prototype.slice.apply(arguments),a=o[l];if(a&&E(i,a),(a=o[y])&&x(i,a),(a=o[b])&&Object.defineProperties(i,a),!p||!p.length)return i;for(t===u&&(t={}),o=0;o<p.length;)C(e=p[o++])&&(i=(n=e.call(i,t,{instance:i,stamp:r,args:c}))===u?i:n);return i}}(),(a=r[O])&&E(c,a),(a=r[d])&&x(c,a),(a=r[h])&&Object.defineProperties(c,a),a=C(c[D])?c[D]:R,x(c[D]=function(){return a.apply(this,arguments)},r),c}function e(e,n){function r(r,t){N(n[r])&&(N(e[r])||(e[r]={}),(t||x)(e[r],n[r]))}function t(r){(c=I(e[r],n[r]))&&(e[r]=c)}return n&&N(n=n[D]||n)&&(r(_),r(y),r(l,E),r(b),r(d),r(O,E),r(h),r(g),r(m,E),t(v),t(w)),e}function R(){return t(Array.prototype.concat.apply([this],arguments).reduce(e,{}))}function V(r){return C(r)&&C(r[D])}var n={};function o(r,t){return function(){return(s={})[r]=t.apply(u,Array.prototype.concat.apply([{}],arguments)),((c=this)&&c[D]||a).call(c,s)}}n[_]=o(_,x),n[y]=n.props=o(y,x),n[v]=n.init=o(v,I),n[w]=o(w,I),n[l]=n[P]=o(l,E),n[d]=n.statics=o(d,x),n[O]=n[A]=o(O,E),n[g]=n.conf=o(g,x),n[m]=n[j]=o(m,E),n[b]=o(b,x),n[h]=o(h,x),a=n[D]=x(function r(){for(var t,e,n=0,o=[],i=arguments,p=this;n<i.length;)N(t=i[n++])&&o.push(V(t)?t:((s={})[_]=(e=t)[_]||u,a=e.props,s[y]=N((c=e[y])||a)?x({},a,c):u,s[v]=I(e.init,e[v]),s[w]=I(e[w]),a=e[P],s[l]=N((c=e[l])||a)?E({},a,c):u,s[b]=e[b],a=e.statics,s[d]=N((c=e[d])||a)?x({},a,c):u,a=e[A],s[O]=N((c=e[O])||a)?E({},a,c):u,c=e[h],s[h]=N((a=e.name&&{name:{value:e.name}})||c)?x({},c,a):u,a=e.conf,s[g]=N((c=e[g])||a)?x({},a,c):u,a=e[j],s[m]=N((c=e[m])||a)?E({},a,c):u,s));if(t=R.apply(p||f,o),p&&o.unshift(p),Array.isArray(i=t[D][w]))for(n=0;n<i.length;)t=V(p=i[n++]({stamp:t,composables:o}))?p:t;return t},n),n.create=function(){return this.apply(u,arguments)},(s={})[d]=n,f=R(s),a[D]=a.bind(),a.version="4.3.2",typeof u!="object"?module.exports=a:self.stampit=a}();
|
|
7030
7371
|
|
|
7031
7372
|
/***/ }),
|
|
7032
7373
|
|
|
@@ -15911,26 +16252,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15911
16252
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15912
16253
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15913
16254
|
/* harmony export */ });
|
|
15914
|
-
/* harmony import */ var
|
|
15915
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
15916
|
-
|
|
16255
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
15917
16256
|
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
|
|
15922
|
-
|
|
15923
|
-
|
|
15924
|
-
isUnexpected: false
|
|
15925
|
-
},
|
|
15926
|
-
init({
|
|
15927
|
-
value = null,
|
|
15928
|
-
isUnexpected = false
|
|
16257
|
+
class Error extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
16258
|
+
static type = 'error';
|
|
16259
|
+
constructor({
|
|
16260
|
+
value,
|
|
16261
|
+
isUnexpected = false,
|
|
16262
|
+
...rest
|
|
15929
16263
|
} = {}) {
|
|
16264
|
+
super({
|
|
16265
|
+
...rest
|
|
16266
|
+
});
|
|
15930
16267
|
this.value = value;
|
|
15931
16268
|
this.isUnexpected = isUnexpected;
|
|
15932
16269
|
}
|
|
15933
|
-
}
|
|
16270
|
+
}
|
|
15934
16271
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Error);
|
|
15935
16272
|
|
|
15936
16273
|
/***/ }),
|
|
@@ -15943,23 +16280,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15943
16280
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15944
16281
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15945
16282
|
/* harmony export */ });
|
|
15946
|
-
/* harmony import */ var
|
|
15947
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
16283
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
15948
16284
|
|
|
15949
|
-
|
|
15950
|
-
|
|
15951
|
-
|
|
15952
|
-
|
|
15953
|
-
|
|
15954
|
-
props: {
|
|
15955
|
-
value: null
|
|
15956
|
-
},
|
|
15957
|
-
init({
|
|
15958
|
-
value = null
|
|
16285
|
+
class Literal extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
16286
|
+
static type = 'literal';
|
|
16287
|
+
constructor({
|
|
16288
|
+
value,
|
|
16289
|
+
...rest
|
|
15959
16290
|
} = {}) {
|
|
16291
|
+
super({
|
|
16292
|
+
...rest
|
|
16293
|
+
});
|
|
15960
16294
|
this.value = value;
|
|
15961
16295
|
}
|
|
15962
|
-
}
|
|
16296
|
+
}
|
|
15963
16297
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Literal);
|
|
15964
16298
|
|
|
15965
16299
|
/***/ }),
|
|
@@ -15972,45 +16306,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15972
16306
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15973
16307
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15974
16308
|
/* harmony export */ });
|
|
15975
|
-
|
|
15976
|
-
|
|
15977
|
-
|
|
15978
|
-
|
|
15979
|
-
type: null,
|
|
15980
|
-
position: null,
|
|
15981
|
-
children: []
|
|
15982
|
-
},
|
|
15983
|
-
// eslint-disable-next-line @typescript-eslint/default-param-last
|
|
15984
|
-
init({
|
|
16309
|
+
class Node {
|
|
16310
|
+
static type = 'node';
|
|
16311
|
+
type = 'node';
|
|
16312
|
+
constructor({
|
|
15985
16313
|
children = [],
|
|
15986
|
-
position
|
|
16314
|
+
position,
|
|
15987
16315
|
isMissing = false
|
|
15988
|
-
} = {}
|
|
15989
|
-
|
|
15990
|
-
}) {
|
|
15991
|
-
this.type = stamp.type;
|
|
16316
|
+
} = {}) {
|
|
16317
|
+
this.type = this.constructor.type;
|
|
15992
16318
|
this.isMissing = isMissing;
|
|
15993
16319
|
this.children = children;
|
|
15994
16320
|
this.position = position;
|
|
15995
|
-
},
|
|
15996
|
-
methods: {
|
|
15997
|
-
// creates shallow clone of node
|
|
15998
|
-
clone() {
|
|
15999
|
-
// 1. copy has same prototype as orig
|
|
16000
|
-
const copy = Object.create(Object.getPrototypeOf(this));
|
|
16001
|
-
|
|
16002
|
-
// 2. copy has all of orig’s properties
|
|
16003
|
-
Object.getOwnPropertyNames(this) // (1)
|
|
16004
|
-
.forEach(propKey => {
|
|
16005
|
-
// (2)
|
|
16006
|
-
const descriptor = Object.getOwnPropertyDescriptor(this, propKey); // (3)
|
|
16007
|
-
// @ts-ignore
|
|
16008
|
-
Object.defineProperty(copy, propKey, descriptor); // (4)
|
|
16009
|
-
});
|
|
16010
|
-
return copy;
|
|
16011
|
-
}
|
|
16012
16321
|
}
|
|
16013
|
-
|
|
16322
|
+
|
|
16323
|
+
// creates shallow clone of node
|
|
16324
|
+
clone() {
|
|
16325
|
+
// 1. copy has same prototype as orig
|
|
16326
|
+
const copy = Object.create(Object.getPrototypeOf(this));
|
|
16327
|
+
|
|
16328
|
+
// 2. copy has all of orig’s properties
|
|
16329
|
+
Object.getOwnPropertyNames(this) // (1)
|
|
16330
|
+
.forEach(propKey => {
|
|
16331
|
+
// (2)
|
|
16332
|
+
const descriptor = Object.getOwnPropertyDescriptor(this, propKey); // (3)
|
|
16333
|
+
// @ts-ignore
|
|
16334
|
+
Object.defineProperty(copy, propKey, descriptor); // (4)
|
|
16335
|
+
});
|
|
16336
|
+
return copy;
|
|
16337
|
+
}
|
|
16338
|
+
}
|
|
16014
16339
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Node);
|
|
16015
16340
|
|
|
16016
16341
|
/***/ }),
|
|
@@ -16023,24 +16348,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16023
16348
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16024
16349
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16025
16350
|
/* harmony export */ });
|
|
16026
|
-
/* harmony import */ var
|
|
16027
|
-
/* harmony import */ var
|
|
16028
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
16351
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87018);
|
|
16352
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
16029
16353
|
|
|
16030
16354
|
|
|
16031
|
-
|
|
16032
|
-
|
|
16033
|
-
|
|
16034
|
-
|
|
16035
|
-
},
|
|
16036
|
-
methods: {
|
|
16037
|
-
// @ts-ignore
|
|
16038
|
-
get rootNode() {
|
|
16039
|
-
// @ts-ignore
|
|
16040
|
-
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(this.children);
|
|
16041
|
-
}
|
|
16355
|
+
class ParseResult extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
16356
|
+
static type = 'parseResult';
|
|
16357
|
+
get rootNode() {
|
|
16358
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.children);
|
|
16042
16359
|
}
|
|
16043
|
-
}
|
|
16360
|
+
}
|
|
16044
16361
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ParseResult);
|
|
16045
16362
|
|
|
16046
16363
|
/***/ }),
|
|
@@ -16054,45 +16371,32 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16054
16371
|
/* harmony export */ Point: () => (/* binding */ Point),
|
|
16055
16372
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16056
16373
|
/* harmony export */ });
|
|
16057
|
-
/*
|
|
16374
|
+
/* eslint-disable max-classes-per-file */
|
|
16058
16375
|
|
|
16059
|
-
|
|
16060
|
-
|
|
16061
|
-
|
|
16062
|
-
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
char: null
|
|
16068
|
-
},
|
|
16069
|
-
init({
|
|
16070
|
-
row = null,
|
|
16071
|
-
column = null,
|
|
16072
|
-
char = null
|
|
16073
|
-
} = {}) {
|
|
16376
|
+
class Point {
|
|
16377
|
+
static type = 'point';
|
|
16378
|
+
type = Point.type;
|
|
16379
|
+
constructor({
|
|
16380
|
+
row,
|
|
16381
|
+
column,
|
|
16382
|
+
char
|
|
16383
|
+
}) {
|
|
16074
16384
|
this.row = row;
|
|
16075
16385
|
this.column = column;
|
|
16076
16386
|
this.char = char;
|
|
16077
16387
|
}
|
|
16078
|
-
}
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
|
|
16082
|
-
|
|
16083
|
-
|
|
16084
|
-
|
|
16085
|
-
|
|
16086
|
-
end: null
|
|
16087
|
-
},
|
|
16088
|
-
init({
|
|
16089
|
-
start = null,
|
|
16090
|
-
end = null
|
|
16091
|
-
} = {}) {
|
|
16388
|
+
}
|
|
16389
|
+
class Position {
|
|
16390
|
+
static type = 'position';
|
|
16391
|
+
type = Position.type;
|
|
16392
|
+
constructor({
|
|
16393
|
+
start,
|
|
16394
|
+
end
|
|
16395
|
+
}) {
|
|
16092
16396
|
this.start = start;
|
|
16093
16397
|
this.end = end;
|
|
16094
16398
|
}
|
|
16095
|
-
}
|
|
16399
|
+
}
|
|
16096
16400
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Position);
|
|
16097
16401
|
|
|
16098
16402
|
/***/ }),
|
|
@@ -16109,11 +16413,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16109
16413
|
/* harmony export */ isPoint: () => (/* binding */ isPoint),
|
|
16110
16414
|
/* harmony export */ isPosition: () => (/* binding */ isPosition)
|
|
16111
16415
|
/* harmony export */ });
|
|
16112
|
-
const isNodeType = (type, node) =>
|
|
16113
|
-
const isLiteral = isNodeType
|
|
16114
|
-
const isPosition = isNodeType
|
|
16115
|
-
const isPoint = isNodeType
|
|
16116
|
-
const isParseResult = isNodeType
|
|
16416
|
+
const isNodeType = (type, node) => node != null && typeof node === 'object' && 'type' in node && node.type === type;
|
|
16417
|
+
const isLiteral = node => isNodeType('literal', node);
|
|
16418
|
+
const isPosition = node => isNodeType('position', node);
|
|
16419
|
+
const isPoint = node => isNodeType('point', node);
|
|
16420
|
+
const isParseResult = node => isNodeType('parseResult', node);
|
|
16117
16421
|
|
|
16118
16422
|
/***/ }),
|
|
16119
16423
|
|
|
@@ -16688,23 +16992,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16688
16992
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16689
16993
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16690
16994
|
/* harmony export */ });
|
|
16691
|
-
/* harmony import */ var
|
|
16692
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
16693
|
-
|
|
16995
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
16694
16996
|
|
|
16695
|
-
|
|
16696
|
-
|
|
16697
|
-
|
|
16698
|
-
|
|
16699
|
-
|
|
16700
|
-
|
|
16701
|
-
|
|
16702
|
-
|
|
16703
|
-
|
|
16704
|
-
} = {}) {
|
|
16997
|
+
class YamlAnchor extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
16998
|
+
static type = 'anchor';
|
|
16999
|
+
constructor({
|
|
17000
|
+
name,
|
|
17001
|
+
...rest
|
|
17002
|
+
}) {
|
|
17003
|
+
super({
|
|
17004
|
+
...rest
|
|
17005
|
+
});
|
|
16705
17006
|
this.name = name;
|
|
16706
17007
|
}
|
|
16707
|
-
}
|
|
17008
|
+
}
|
|
16708
17009
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlAnchor);
|
|
16709
17010
|
|
|
16710
17011
|
/***/ }),
|
|
@@ -16717,11 +17018,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16717
17018
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16718
17019
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16719
17020
|
/* harmony export */ });
|
|
16720
|
-
/* harmony import */ var
|
|
16721
|
-
/* harmony import */ var _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(96815);
|
|
17021
|
+
/* harmony import */ var _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96815);
|
|
16722
17022
|
|
|
16723
|
-
|
|
16724
|
-
const YamlCollection = stampit__WEBPACK_IMPORTED_MODULE_0__(_YamlNode_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {});
|
|
17023
|
+
class YamlCollection extends _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
16725
17024
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlCollection);
|
|
16726
17025
|
|
|
16727
17026
|
/***/ }),
|
|
@@ -16734,23 +17033,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16734
17033
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16735
17034
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16736
17035
|
/* harmony export */ });
|
|
16737
|
-
/* harmony import */ var
|
|
16738
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
16739
|
-
|
|
17036
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
16740
17037
|
|
|
16741
|
-
|
|
16742
|
-
|
|
16743
|
-
|
|
16744
|
-
|
|
16745
|
-
|
|
16746
|
-
|
|
16747
|
-
|
|
16748
|
-
|
|
16749
|
-
|
|
16750
|
-
} = {}) {
|
|
17038
|
+
class YamlComment extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17039
|
+
static type = 'comment';
|
|
17040
|
+
constructor({
|
|
17041
|
+
content,
|
|
17042
|
+
...rest
|
|
17043
|
+
}) {
|
|
17044
|
+
super({
|
|
17045
|
+
...rest
|
|
17046
|
+
});
|
|
16751
17047
|
this.content = content;
|
|
16752
17048
|
}
|
|
16753
|
-
}
|
|
17049
|
+
}
|
|
16754
17050
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlComment);
|
|
16755
17051
|
|
|
16756
17052
|
/***/ }),
|
|
@@ -16763,32 +17059,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16763
17059
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16764
17060
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16765
17061
|
/* harmony export */ });
|
|
16766
|
-
/* harmony import */ var
|
|
16767
|
-
/* harmony import */ var
|
|
16768
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
17062
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89627);
|
|
17063
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
16769
17064
|
|
|
16770
17065
|
|
|
16771
|
-
|
|
16772
|
-
|
|
16773
|
-
|
|
16774
|
-
|
|
16775
|
-
|
|
16776
|
-
|
|
16777
|
-
|
|
16778
|
-
|
|
16779
|
-
|
|
16780
|
-
|
|
16781
|
-
name = null,
|
|
16782
|
-
parameters = {}
|
|
16783
|
-
} = {}) {
|
|
17066
|
+
class YamlDirective extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17067
|
+
static type = 'directive';
|
|
17068
|
+
constructor({
|
|
17069
|
+
name,
|
|
17070
|
+
parameters,
|
|
17071
|
+
...rest
|
|
17072
|
+
}) {
|
|
17073
|
+
super({
|
|
17074
|
+
...rest
|
|
17075
|
+
});
|
|
16784
17076
|
this.name = name;
|
|
16785
|
-
this.parameters = (0,
|
|
16786
|
-
version:
|
|
16787
|
-
handle:
|
|
16788
|
-
prefix:
|
|
17077
|
+
this.parameters = (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
17078
|
+
version: undefined,
|
|
17079
|
+
handle: undefined,
|
|
17080
|
+
prefix: undefined
|
|
16789
17081
|
}, parameters);
|
|
16790
17082
|
}
|
|
16791
|
-
}
|
|
17083
|
+
}
|
|
16792
17084
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlDirective);
|
|
16793
17085
|
|
|
16794
17086
|
/***/ }),
|
|
@@ -16801,15 +17093,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16801
17093
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16802
17094
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16803
17095
|
/* harmony export */ });
|
|
16804
|
-
/* harmony import */ var
|
|
16805
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
16806
|
-
|
|
17096
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
16807
17097
|
|
|
16808
|
-
|
|
16809
|
-
|
|
16810
|
-
|
|
16811
|
-
}
|
|
16812
|
-
});
|
|
17098
|
+
class YamlDocument extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17099
|
+
static type = 'document';
|
|
17100
|
+
}
|
|
16813
17101
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlDocument);
|
|
16814
17102
|
|
|
16815
17103
|
/***/ }),
|
|
@@ -16822,41 +17110,40 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16822
17110
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16823
17111
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16824
17112
|
/* harmony export */ });
|
|
16825
|
-
/* harmony import */ var
|
|
16826
|
-
/* harmony import */ var
|
|
16827
|
-
/* harmony import */ var _YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4314);
|
|
16828
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23320);
|
|
16829
|
-
|
|
17113
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
17114
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23320);
|
|
16830
17115
|
|
|
16831
17116
|
|
|
16832
|
-
|
|
16833
|
-
|
|
16834
|
-
|
|
16835
|
-
|
|
17117
|
+
class YamlKeyValuePair extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17118
|
+
static type = 'keyValuePair';
|
|
17119
|
+
constructor({
|
|
17120
|
+
styleGroup,
|
|
17121
|
+
...rest
|
|
17122
|
+
}) {
|
|
17123
|
+
super({
|
|
17124
|
+
...rest
|
|
17125
|
+
});
|
|
17126
|
+
this.styleGroup = styleGroup;
|
|
17127
|
+
}
|
|
17128
|
+
}
|
|
17129
|
+
Object.defineProperties(YamlKeyValuePair.prototype, {
|
|
17130
|
+
key: {
|
|
17131
|
+
get() {
|
|
17132
|
+
return this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isScalar)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isMapping)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isSequence)(node))[0];
|
|
17133
|
+
},
|
|
17134
|
+
enumerable: true
|
|
16836
17135
|
},
|
|
16837
|
-
|
|
16838
|
-
|
|
16839
|
-
|
|
16840
|
-
|
|
16841
|
-
|
|
16842
|
-
}
|
|
16843
|
-
|
|
17136
|
+
value: {
|
|
17137
|
+
get() {
|
|
17138
|
+
const {
|
|
17139
|
+
key,
|
|
17140
|
+
children
|
|
17141
|
+
} = this;
|
|
17142
|
+
const excludeKeyPredicate = node => node !== key;
|
|
17143
|
+
const valuePredicate = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isScalar)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isMapping)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isSequence)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isAlias)(node);
|
|
17144
|
+
return children.filter(node => excludeKeyPredicate(node) && valuePredicate(node))[0];
|
|
16844
17145
|
},
|
|
16845
|
-
|
|
16846
|
-
get() {
|
|
16847
|
-
// @ts-ignore
|
|
16848
|
-
const {
|
|
16849
|
-
key,
|
|
16850
|
-
children
|
|
16851
|
-
} = this;
|
|
16852
|
-
const excludeKeyPredicate = node => node !== key;
|
|
16853
|
-
const valuePredicate = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isScalar)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isMapping)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isSequence)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isAlias)(node);
|
|
16854
|
-
|
|
16855
|
-
// @ts-ignore
|
|
16856
|
-
return children.filter(node => excludeKeyPredicate(node) && valuePredicate(node))[0];
|
|
16857
|
-
},
|
|
16858
|
-
enumerable: true
|
|
16859
|
-
}
|
|
17146
|
+
enumerable: true
|
|
16860
17147
|
}
|
|
16861
17148
|
});
|
|
16862
17149
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlKeyValuePair);
|
|
@@ -16871,25 +17158,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16871
17158
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16872
17159
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16873
17160
|
/* harmony export */ });
|
|
16874
|
-
/* harmony import */ var
|
|
16875
|
-
/* harmony import */ var
|
|
16876
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23320);
|
|
17161
|
+
/* harmony import */ var _YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64509);
|
|
17162
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23320);
|
|
16877
17163
|
|
|
16878
17164
|
|
|
16879
|
-
|
|
16880
|
-
|
|
16881
|
-
|
|
16882
|
-
|
|
17165
|
+
class YamlMapping extends _YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17166
|
+
static type = 'mapping';
|
|
17167
|
+
}
|
|
17168
|
+
Object.defineProperty(YamlMapping.prototype, 'content', {
|
|
17169
|
+
get() {
|
|
17170
|
+
return Array.isArray(this.children) ? this.children.filter(_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isKeyValuePair) : [];
|
|
16883
17171
|
},
|
|
16884
|
-
|
|
16885
|
-
content: {
|
|
16886
|
-
get() {
|
|
16887
|
-
// @ts-ignore
|
|
16888
|
-
return Array.isArray(this.children) ? this.children.filter(_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isKeyValuePair) : [];
|
|
16889
|
-
},
|
|
16890
|
-
enumerable: true
|
|
16891
|
-
}
|
|
16892
|
-
}
|
|
17172
|
+
enumerable: true
|
|
16893
17173
|
});
|
|
16894
17174
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlMapping);
|
|
16895
17175
|
|
|
@@ -16903,29 +17183,25 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16903
17183
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16904
17184
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16905
17185
|
/* harmony export */ });
|
|
16906
|
-
/* harmony import */ var
|
|
16907
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
17186
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
16908
17187
|
|
|
16909
|
-
|
|
16910
|
-
|
|
16911
|
-
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
}
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
style = null,
|
|
16921
|
-
styleGroup = null
|
|
16922
|
-
} = {}) {
|
|
17188
|
+
class YamlNode extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17189
|
+
constructor({
|
|
17190
|
+
anchor,
|
|
17191
|
+
tag,
|
|
17192
|
+
style,
|
|
17193
|
+
styleGroup,
|
|
17194
|
+
...rest
|
|
17195
|
+
}) {
|
|
17196
|
+
super({
|
|
17197
|
+
...rest
|
|
17198
|
+
});
|
|
16923
17199
|
this.anchor = anchor;
|
|
16924
17200
|
this.tag = tag;
|
|
16925
17201
|
this.style = style;
|
|
16926
17202
|
this.styleGroup = styleGroup;
|
|
16927
17203
|
}
|
|
16928
|
-
}
|
|
17204
|
+
}
|
|
16929
17205
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlNode);
|
|
16930
17206
|
|
|
16931
17207
|
/***/ }),
|
|
@@ -16938,23 +17214,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16938
17214
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16939
17215
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16940
17216
|
/* harmony export */ });
|
|
16941
|
-
/* harmony import */ var
|
|
16942
|
-
/* harmony import */ var _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(96815);
|
|
17217
|
+
/* harmony import */ var _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96815);
|
|
16943
17218
|
|
|
16944
|
-
|
|
16945
|
-
|
|
16946
|
-
|
|
16947
|
-
|
|
16948
|
-
|
|
16949
|
-
|
|
16950
|
-
|
|
16951
|
-
|
|
16952
|
-
|
|
16953
|
-
content
|
|
16954
|
-
} = {}) {
|
|
17219
|
+
class YamlScalar extends _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17220
|
+
static type = 'scalar';
|
|
17221
|
+
constructor({
|
|
17222
|
+
content,
|
|
17223
|
+
...rest
|
|
17224
|
+
}) {
|
|
17225
|
+
super({
|
|
17226
|
+
...rest
|
|
17227
|
+
});
|
|
16955
17228
|
this.content = content;
|
|
16956
17229
|
}
|
|
16957
|
-
}
|
|
17230
|
+
}
|
|
16958
17231
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlScalar);
|
|
16959
17232
|
|
|
16960
17233
|
/***/ }),
|
|
@@ -16967,28 +17240,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16967
17240
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16968
17241
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16969
17242
|
/* harmony export */ });
|
|
16970
|
-
/* harmony import */ var
|
|
16971
|
-
/* harmony import */ var
|
|
16972
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23320);
|
|
16973
|
-
|
|
17243
|
+
/* harmony import */ var _YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64509);
|
|
17244
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23320);
|
|
16974
17245
|
|
|
16975
17246
|
|
|
16976
|
-
|
|
16977
|
-
|
|
16978
|
-
|
|
17247
|
+
class YamlSequence extends _YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17248
|
+
static type = 'sequence';
|
|
17249
|
+
}
|
|
17250
|
+
Object.defineProperty(YamlSequence.prototype, 'content', {
|
|
17251
|
+
get() {
|
|
17252
|
+
const {
|
|
17253
|
+
children
|
|
17254
|
+
} = this;
|
|
17255
|
+
return Array.isArray(children) ? children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isSequence)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isMapping)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isScalar)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isAlias)(node)) : [];
|
|
16979
17256
|
},
|
|
16980
|
-
|
|
16981
|
-
content: {
|
|
16982
|
-
get() {
|
|
16983
|
-
// @ts-ignore
|
|
16984
|
-
const {
|
|
16985
|
-
children
|
|
16986
|
-
} = this;
|
|
16987
|
-
return Array.isArray(children) ? children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isSequence)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isMapping)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isScalar)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isAlias)(node)) : [];
|
|
16988
|
-
},
|
|
16989
|
-
enumerable: true
|
|
16990
|
-
}
|
|
16991
|
-
}
|
|
17257
|
+
enumerable: true
|
|
16992
17258
|
});
|
|
16993
17259
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlSequence);
|
|
16994
17260
|
|
|
@@ -17002,27 +17268,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17002
17268
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17003
17269
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17004
17270
|
/* harmony export */ });
|
|
17005
|
-
/* harmony import */ var
|
|
17006
|
-
/* harmony import */ var
|
|
17007
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23320);
|
|
17008
|
-
|
|
17271
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
17272
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23320);
|
|
17009
17273
|
|
|
17010
17274
|
|
|
17011
|
-
|
|
17012
|
-
|
|
17013
|
-
|
|
17275
|
+
class YamlStream extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17276
|
+
static type = 'stream';
|
|
17277
|
+
}
|
|
17278
|
+
Object.defineProperty(YamlStream.prototype, 'content', {
|
|
17279
|
+
get() {
|
|
17280
|
+
return Array.isArray(this.children) ? this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isDocument)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isComment)(node)) : [];
|
|
17014
17281
|
},
|
|
17015
|
-
|
|
17016
|
-
content: {
|
|
17017
|
-
get() {
|
|
17018
|
-
// @ts-ignore
|
|
17019
|
-
return Array.isArray(this.children) ?
|
|
17020
|
-
// @ts-ignore
|
|
17021
|
-
this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isDocument)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isComment)(node)) : [];
|
|
17022
|
-
},
|
|
17023
|
-
enumerable: true
|
|
17024
|
-
}
|
|
17025
|
-
}
|
|
17282
|
+
enumerable: true
|
|
17026
17283
|
});
|
|
17027
17284
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlStream);
|
|
17028
17285
|
|
|
@@ -17035,11 +17292,8 @@ const YamlStream = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPOR
|
|
|
17035
17292
|
__webpack_require__.r(__webpack_exports__);
|
|
17036
17293
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17037
17294
|
/* harmony export */ YamlStyle: () => (/* binding */ YamlStyle),
|
|
17038
|
-
/* harmony export */ YamlStyleGroup: () => (/* binding */ YamlStyleGroup)
|
|
17039
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17295
|
+
/* harmony export */ YamlStyleGroup: () => (/* binding */ YamlStyleGroup)
|
|
17040
17296
|
/* harmony export */ });
|
|
17041
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
|
|
17042
|
-
|
|
17043
17297
|
let YamlStyle = /*#__PURE__*/function (YamlStyle) {
|
|
17044
17298
|
YamlStyle["Plain"] = "Plain";
|
|
17045
17299
|
YamlStyle["SingleQuoted"] = "SingleQuoted";
|
|
@@ -17057,13 +17311,6 @@ let YamlStyleGroup = /*#__PURE__*/function (YamlStyleGroup) {
|
|
|
17057
17311
|
YamlStyleGroup["Block"] = "Block";
|
|
17058
17312
|
return YamlStyleGroup;
|
|
17059
17313
|
}({});
|
|
17060
|
-
const YamlStyleModel = stampit__WEBPACK_IMPORTED_MODULE_0__({
|
|
17061
|
-
props: {
|
|
17062
|
-
styleGroup: null,
|
|
17063
|
-
style: null
|
|
17064
|
-
}
|
|
17065
|
-
});
|
|
17066
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlStyleModel);
|
|
17067
17314
|
|
|
17068
17315
|
/***/ }),
|
|
17069
17316
|
|
|
@@ -17076,9 +17323,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17076
17323
|
/* harmony export */ YamlNodeKind: () => (/* binding */ YamlNodeKind),
|
|
17077
17324
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17078
17325
|
/* harmony export */ });
|
|
17079
|
-
/* harmony import */ var
|
|
17080
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
17081
|
-
|
|
17326
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
17082
17327
|
|
|
17083
17328
|
let YamlNodeKind = /*#__PURE__*/function (YamlNodeKind) {
|
|
17084
17329
|
YamlNodeKind["Scalar"] = "Scalar";
|
|
@@ -17086,22 +17331,20 @@ let YamlNodeKind = /*#__PURE__*/function (YamlNodeKind) {
|
|
|
17086
17331
|
YamlNodeKind["Mapping"] = "Mapping";
|
|
17087
17332
|
return YamlNodeKind;
|
|
17088
17333
|
}({});
|
|
17089
|
-
|
|
17090
|
-
|
|
17091
|
-
|
|
17092
|
-
},
|
|
17093
|
-
props: {
|
|
17094
|
-
explicitName: '',
|
|
17095
|
-
kind: null
|
|
17096
|
-
},
|
|
17097
|
-
init({
|
|
17334
|
+
class YamlTag extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17335
|
+
static type = 'tag';
|
|
17336
|
+
constructor({
|
|
17098
17337
|
explicitName,
|
|
17099
|
-
kind
|
|
17100
|
-
|
|
17338
|
+
kind,
|
|
17339
|
+
...rest
|
|
17340
|
+
}) {
|
|
17341
|
+
super({
|
|
17342
|
+
...rest
|
|
17343
|
+
});
|
|
17101
17344
|
this.explicitName = explicitName;
|
|
17102
17345
|
this.kind = kind;
|
|
17103
17346
|
}
|
|
17104
|
-
}
|
|
17347
|
+
}
|
|
17105
17348
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlTag);
|
|
17106
17349
|
|
|
17107
17350
|
/***/ }),
|
|
@@ -17125,16 +17368,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17125
17368
|
/* harmony export */ });
|
|
17126
17369
|
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62771);
|
|
17127
17370
|
|
|
17128
|
-
const isStream = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
17129
|
-
const isDocument = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
17130
|
-
const isMapping = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
17131
|
-
const isSequence = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
17132
|
-
const isKeyValuePair = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
17133
|
-
const isTag = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
17134
|
-
const isScalar = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
17135
|
-
const isAlias = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
17136
|
-
const isDirective = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
17137
|
-
const isComment = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
17371
|
+
const isStream = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('stream', node);
|
|
17372
|
+
const isDocument = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('document', node);
|
|
17373
|
+
const isMapping = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('mapping', node);
|
|
17374
|
+
const isSequence = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('sequence', node);
|
|
17375
|
+
const isKeyValuePair = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('keyValuePair', node);
|
|
17376
|
+
const isTag = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('tag', node);
|
|
17377
|
+
const isScalar = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('scalar', node);
|
|
17378
|
+
const isAlias = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('alias', node);
|
|
17379
|
+
const isDirective = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('directive', node);
|
|
17380
|
+
const isComment = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('comment', node);
|
|
17138
17381
|
|
|
17139
17382
|
/***/ }),
|
|
17140
17383
|
|
|
@@ -17146,46 +17389,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17146
17389
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17147
17390
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17148
17391
|
/* harmony export */ });
|
|
17149
|
-
/* harmony import */ var
|
|
17150
|
-
/* harmony import */ var
|
|
17151
|
-
/* harmony import */ var
|
|
17152
|
-
/* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37837);
|
|
17153
|
-
|
|
17392
|
+
/* harmony import */ var _canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81001);
|
|
17393
|
+
/* harmony import */ var _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4314);
|
|
17394
|
+
/* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37837);
|
|
17154
17395
|
|
|
17155
17396
|
|
|
17156
17397
|
|
|
17157
|
-
|
|
17158
|
-
|
|
17159
|
-
|
|
17160
|
-
|
|
17161
|
-
|
|
17162
|
-
|
|
17163
|
-
|
|
17164
|
-
|
|
17165
|
-
|
|
17166
|
-
|
|
17167
|
-
|
|
17168
|
-
|
|
17169
|
-
|
|
17170
|
-
|
|
17171
|
-
|
|
17172
|
-
|
|
17173
|
-
|
|
17174
|
-
} else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_2__.YamlStyle.Literal) {
|
|
17175
|
-
// @ts-ignore
|
|
17176
|
-
canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_3__.formatBlockLiteral)(node.content);
|
|
17177
|
-
} else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_2__.YamlStyle.Folded) {
|
|
17178
|
-
// @ts-ignore
|
|
17179
|
-
canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_3__.formatBlockFolded)(node.content);
|
|
17180
|
-
}
|
|
17181
|
-
nodeClone.content = canonicalForm;
|
|
17182
|
-
return nodeClone;
|
|
17183
|
-
},
|
|
17184
|
-
resolve(node) {
|
|
17185
|
-
return node;
|
|
17398
|
+
class ScalarTag {
|
|
17399
|
+
static test(node) {
|
|
17400
|
+
return node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_0__.YamlNodeKind.Scalar && typeof node.content === 'string';
|
|
17401
|
+
}
|
|
17402
|
+
static canonicalFormat(node) {
|
|
17403
|
+
let canonicalForm = node.content;
|
|
17404
|
+
const nodeClone = node.clone();
|
|
17405
|
+
if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlStyle.Plain) {
|
|
17406
|
+
canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__.formatFlowPlain)(node.content);
|
|
17407
|
+
} else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlStyle.SingleQuoted) {
|
|
17408
|
+
canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__.formatFlowSingleQuoted)(node.content);
|
|
17409
|
+
} else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlStyle.DoubleQuoted) {
|
|
17410
|
+
canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__.formatFlowDoubleQuoted)(node.content);
|
|
17411
|
+
} else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlStyle.Literal) {
|
|
17412
|
+
canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__.formatBlockLiteral)(node.content);
|
|
17413
|
+
} else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlStyle.Folded) {
|
|
17414
|
+
canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__.formatBlockFolded)(node.content);
|
|
17186
17415
|
}
|
|
17416
|
+
nodeClone.content = canonicalForm;
|
|
17417
|
+
return nodeClone;
|
|
17187
17418
|
}
|
|
17188
|
-
|
|
17419
|
+
static resolve(node) {
|
|
17420
|
+
return node;
|
|
17421
|
+
}
|
|
17422
|
+
}
|
|
17189
17423
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScalarTag);
|
|
17190
17424
|
|
|
17191
17425
|
/***/ }),
|
|
@@ -17198,15 +17432,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17198
17432
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17199
17433
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17200
17434
|
/* harmony export */ });
|
|
17201
|
-
/*
|
|
17202
|
-
|
|
17203
|
-
|
|
17435
|
+
/* eslint-disable class-methods-use-this */
|
|
17436
|
+
class Tag {
|
|
17437
|
+
static uri = '';
|
|
17438
|
+
tag = '';
|
|
17439
|
+
constructor() {
|
|
17440
|
+
this.tag = this.constructor.uri;
|
|
17441
|
+
}
|
|
17204
17442
|
|
|
17205
|
-
|
|
17206
|
-
|
|
17207
|
-
|
|
17443
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17444
|
+
test(node) {
|
|
17445
|
+
return true;
|
|
17208
17446
|
}
|
|
17209
|
-
|
|
17447
|
+
resolve(node) {
|
|
17448
|
+
return node;
|
|
17449
|
+
}
|
|
17450
|
+
}
|
|
17451
|
+
/* eslint-enable class-methods-use-this */
|
|
17452
|
+
|
|
17210
17453
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tag);
|
|
17211
17454
|
|
|
17212
17455
|
/***/ }),
|
|
@@ -17376,31 +17619,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17376
17619
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17377
17620
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17378
17621
|
/* harmony export */ });
|
|
17379
|
-
/* harmony import */ var
|
|
17380
|
-
/* harmony import */ var
|
|
17381
|
-
/* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37837);
|
|
17382
|
-
|
|
17622
|
+
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
|
|
17623
|
+
/* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37837);
|
|
17383
17624
|
|
|
17384
17625
|
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
|
|
17389
|
-
|
|
17390
|
-
stamp
|
|
17391
|
-
}) {
|
|
17392
|
-
this.tag = stamp.uri;
|
|
17393
|
-
},
|
|
17394
|
-
methods: {
|
|
17395
|
-
test(node) {
|
|
17396
|
-
// @ts-ignore
|
|
17397
|
-
return node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Mapping;
|
|
17398
|
-
},
|
|
17399
|
-
resolve(node) {
|
|
17400
|
-
return node;
|
|
17401
|
-
}
|
|
17626
|
+
/* eslint-disable class-methods-use-this */
|
|
17627
|
+
class GenericMapping extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17628
|
+
static uri = 'tag:yaml.org,2002:map';
|
|
17629
|
+
test(node) {
|
|
17630
|
+
return node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlNodeKind.Mapping;
|
|
17402
17631
|
}
|
|
17403
|
-
}
|
|
17632
|
+
}
|
|
17633
|
+
/* eslint-enable class-methods-use-this */
|
|
17634
|
+
|
|
17404
17635
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GenericMapping);
|
|
17405
17636
|
|
|
17406
17637
|
/***/ }),
|
|
@@ -17413,31 +17644,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17413
17644
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17414
17645
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17415
17646
|
/* harmony export */ });
|
|
17416
|
-
/* harmony import */ var
|
|
17417
|
-
/* harmony import */ var
|
|
17418
|
-
/* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37837);
|
|
17419
|
-
|
|
17647
|
+
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
|
|
17648
|
+
/* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37837);
|
|
17420
17649
|
|
|
17421
17650
|
|
|
17422
|
-
|
|
17423
|
-
|
|
17424
|
-
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
stamp
|
|
17428
|
-
}) {
|
|
17429
|
-
this.tag = stamp.uri;
|
|
17430
|
-
},
|
|
17431
|
-
methods: {
|
|
17432
|
-
test(node) {
|
|
17433
|
-
// @ts-ignore
|
|
17434
|
-
return node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Sequence;
|
|
17435
|
-
},
|
|
17436
|
-
resolve(node) {
|
|
17437
|
-
return node;
|
|
17438
|
-
}
|
|
17651
|
+
/* eslint-disable class-methods-use-this */
|
|
17652
|
+
class GenericSequence extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17653
|
+
static uri = 'tag:yaml.org,2002:seq';
|
|
17654
|
+
test(node) {
|
|
17655
|
+
return node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlNodeKind.Sequence;
|
|
17439
17656
|
}
|
|
17440
|
-
}
|
|
17657
|
+
}
|
|
17658
|
+
/* eslint-enable class-methods-use-this */
|
|
17659
|
+
|
|
17441
17660
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GenericSequence);
|
|
17442
17661
|
|
|
17443
17662
|
/***/ }),
|
|
@@ -17450,25 +17669,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17450
17669
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17451
17670
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17452
17671
|
/* harmony export */ });
|
|
17453
|
-
/* harmony import */ var
|
|
17454
|
-
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
|
|
17672
|
+
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
|
|
17455
17673
|
|
|
17456
|
-
|
|
17457
|
-
|
|
17458
|
-
|
|
17459
|
-
uri: 'tag:yaml.org,2002:str'
|
|
17460
|
-
},
|
|
17461
|
-
init(args, {
|
|
17462
|
-
stamp
|
|
17463
|
-
}) {
|
|
17464
|
-
this.tag = stamp.uri;
|
|
17465
|
-
},
|
|
17466
|
-
methods: {
|
|
17467
|
-
resolve(node) {
|
|
17468
|
-
return node;
|
|
17469
|
-
}
|
|
17470
|
-
}
|
|
17471
|
-
});
|
|
17674
|
+
class GenericString extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17675
|
+
static uri = 'tag:yaml.org,2002:str';
|
|
17676
|
+
}
|
|
17472
17677
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GenericString);
|
|
17473
17678
|
|
|
17474
17679
|
/***/ }),
|
|
@@ -17481,14 +17686,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17481
17686
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17482
17687
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17483
17688
|
/* harmony export */ });
|
|
17484
|
-
/* harmony import */ var
|
|
17485
|
-
/* harmony import */ var
|
|
17486
|
-
/* harmony import */ var
|
|
17487
|
-
/* harmony import */ var
|
|
17488
|
-
/* harmony import */ var
|
|
17489
|
-
/* harmony import */ var
|
|
17490
|
-
/* harmony import */ var
|
|
17491
|
-
/* harmony import */ var _ScalarTag_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4449);
|
|
17689
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(20302);
|
|
17690
|
+
/* harmony import */ var _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77469);
|
|
17691
|
+
/* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37837);
|
|
17692
|
+
/* harmony import */ var _GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(39565);
|
|
17693
|
+
/* harmony import */ var _GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(92844);
|
|
17694
|
+
/* harmony import */ var _GenericString_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58314);
|
|
17695
|
+
/* harmony import */ var _ScalarTag_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4449);
|
|
17492
17696
|
|
|
17493
17697
|
|
|
17494
17698
|
|
|
@@ -17496,103 +17700,97 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17496
17700
|
|
|
17497
17701
|
|
|
17498
17702
|
|
|
17499
|
-
|
|
17500
|
-
|
|
17501
|
-
props: {
|
|
17502
|
-
tags: [],
|
|
17503
|
-
tagDirectives: []
|
|
17504
|
-
},
|
|
17505
|
-
init() {
|
|
17703
|
+
class FailsafeSchema {
|
|
17704
|
+
constructor() {
|
|
17506
17705
|
this.tags = [];
|
|
17507
17706
|
this.tagDirectives = [];
|
|
17508
|
-
this.registerTag(
|
|
17509
|
-
this.registerTag(
|
|
17510
|
-
this.registerTag(
|
|
17511
|
-
}
|
|
17512
|
-
|
|
17513
|
-
|
|
17514
|
-
|
|
17515
|
-
|
|
17516
|
-
|
|
17517
|
-
|
|
17518
|
-
|
|
17519
|
-
|
|
17520
|
-
|
|
17521
|
-
|
|
17522
|
-
|
|
17523
|
-
|
|
17524
|
-
// @ts-ignore
|
|
17525
|
-
specificTagName = _GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_1__["default"].uri;
|
|
17526
|
-
}
|
|
17527
|
-
} else if (node.tag.explicitName.startsWith('!<')) {
|
|
17528
|
-
// verbatim form
|
|
17529
|
-
specificTagName = node.tag.explicitName.replace(/^!</, '').replace(/>$/, '');
|
|
17530
|
-
} else if (node.tag.explicitName.startsWith('!!')) {
|
|
17531
|
-
// shorthand notation
|
|
17532
|
-
specificTagName = `tag:yaml.org,2002:${node.tag.explicitName.replace(/^!!/, '')}`;
|
|
17533
|
-
}
|
|
17534
|
-
return specificTagName;
|
|
17535
|
-
},
|
|
17536
|
-
registerTagDirective(tagDirective) {
|
|
17537
|
-
this.tagDirectives.push({
|
|
17538
|
-
handle: tagDirective.parameters.handle,
|
|
17539
|
-
prefix: tagDirective.parameters.prefix
|
|
17540
|
-
});
|
|
17541
|
-
},
|
|
17542
|
-
registerTag(tag, beginning = false) {
|
|
17543
|
-
if (beginning) {
|
|
17544
|
-
this.tags.unshift(tag);
|
|
17545
|
-
} else {
|
|
17546
|
-
this.tags.push(tag);
|
|
17707
|
+
this.registerTag(new _GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]());
|
|
17708
|
+
this.registerTag(new _GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]());
|
|
17709
|
+
this.registerTag(new _GenericString_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]());
|
|
17710
|
+
}
|
|
17711
|
+
|
|
17712
|
+
// eslint-disable-next-line class-methods-use-this
|
|
17713
|
+
toSpecificTagName(node) {
|
|
17714
|
+
let specificTagName = node.tag.explicitName;
|
|
17715
|
+
if (node.tag.explicitName === '!') {
|
|
17716
|
+
// non-specific tag; we assume tag by kind
|
|
17717
|
+
if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar) {
|
|
17718
|
+
specificTagName = _GenericString_mjs__WEBPACK_IMPORTED_MODULE_2__["default"].uri;
|
|
17719
|
+
} else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Sequence) {
|
|
17720
|
+
specificTagName = _GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_1__["default"].uri;
|
|
17721
|
+
} else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Mapping) {
|
|
17722
|
+
specificTagName = _GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_0__["default"].uri;
|
|
17547
17723
|
}
|
|
17548
|
-
|
|
17549
|
-
|
|
17550
|
-
|
|
17551
|
-
|
|
17724
|
+
} else if (node.tag.explicitName.startsWith('!<')) {
|
|
17725
|
+
// verbatim form
|
|
17726
|
+
specificTagName = node.tag.explicitName.replace(/^!</, '').replace(/>$/, '');
|
|
17727
|
+
} else if (node.tag.explicitName.startsWith('!!')) {
|
|
17728
|
+
// shorthand notation
|
|
17729
|
+
specificTagName = `tag:yaml.org,2002:${node.tag.explicitName.replace(/^!!/, '')}`;
|
|
17730
|
+
}
|
|
17731
|
+
return specificTagName;
|
|
17732
|
+
}
|
|
17733
|
+
registerTagDirective(tagDirective) {
|
|
17734
|
+
this.tagDirectives.push({
|
|
17735
|
+
// @ts-ignore
|
|
17736
|
+
handle: tagDirective.parameters.handle,
|
|
17737
|
+
// @ts-ignore
|
|
17738
|
+
prefix: tagDirective.parameters.prefix
|
|
17739
|
+
});
|
|
17740
|
+
}
|
|
17741
|
+
registerTag(tag, beginning = false) {
|
|
17742
|
+
if (beginning) {
|
|
17743
|
+
this.tags.unshift(tag);
|
|
17744
|
+
} else {
|
|
17552
17745
|
this.tags.push(tag);
|
|
17553
|
-
|
|
17554
|
-
|
|
17555
|
-
|
|
17556
|
-
|
|
17746
|
+
}
|
|
17747
|
+
return this;
|
|
17748
|
+
}
|
|
17749
|
+
overrideTag(tag) {
|
|
17750
|
+
this.tags = this.tags.filter(itag => itag.tag === tag.tag);
|
|
17751
|
+
this.tags.push(tag);
|
|
17752
|
+
return this;
|
|
17753
|
+
}
|
|
17754
|
+
resolve(node) {
|
|
17755
|
+
const specificTagName = this.toSpecificTagName(node);
|
|
17557
17756
|
|
|
17558
|
-
|
|
17559
|
-
|
|
17560
|
-
|
|
17561
|
-
|
|
17757
|
+
// leave this node unresolved
|
|
17758
|
+
if (specificTagName === '?') {
|
|
17759
|
+
return node;
|
|
17760
|
+
}
|
|
17562
17761
|
|
|
17563
|
-
|
|
17564
|
-
|
|
17565
|
-
|
|
17566
|
-
|
|
17567
|
-
|
|
17568
|
-
|
|
17569
|
-
|
|
17570
|
-
// mechanism for resolving node (tag implementation) not found
|
|
17571
|
-
if (typeof tag === 'undefined') {
|
|
17572
|
-
throw new _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_6__["default"](`Tag "${specificTagName}" was not recognized.`, {
|
|
17573
|
-
specificTagName,
|
|
17574
|
-
explicitTagName: node.tag.explicitName,
|
|
17575
|
-
tagKind: node.tag.kind,
|
|
17576
|
-
tagPosition: (0,ramda__WEBPACK_IMPORTED_MODULE_7__["default"])(node.tag.position),
|
|
17577
|
-
node: node.clone()
|
|
17578
|
-
});
|
|
17579
|
-
}
|
|
17762
|
+
// turn scalar nodes into canonical format before resolving
|
|
17763
|
+
let canonicalNode = node;
|
|
17764
|
+
if (_ScalarTag_mjs__WEBPACK_IMPORTED_MODULE_4__["default"].test(node)) {
|
|
17765
|
+
canonicalNode = _ScalarTag_mjs__WEBPACK_IMPORTED_MODULE_4__["default"].canonicalFormat(node);
|
|
17766
|
+
}
|
|
17767
|
+
const tag = this.tags.find(itag => (itag === null || itag === void 0 ? void 0 : itag.tag) === specificTagName);
|
|
17580
17768
|
|
|
17581
|
-
|
|
17582
|
-
|
|
17583
|
-
|
|
17584
|
-
|
|
17585
|
-
|
|
17586
|
-
|
|
17587
|
-
|
|
17588
|
-
|
|
17589
|
-
|
|
17590
|
-
});
|
|
17591
|
-
}
|
|
17592
|
-
return tag.resolve(canonicalNode);
|
|
17769
|
+
// mechanism for resolving node (tag implementation) not found
|
|
17770
|
+
if (typeof tag === 'undefined') {
|
|
17771
|
+
throw new _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_5__["default"](`Tag "${specificTagName}" was not recognized.`, {
|
|
17772
|
+
specificTagName,
|
|
17773
|
+
explicitTagName: node.tag.explicitName,
|
|
17774
|
+
tagKind: node.tag.kind,
|
|
17775
|
+
tagPosition: (0,ramda__WEBPACK_IMPORTED_MODULE_6__["default"])(node.tag.position),
|
|
17776
|
+
node: node.clone()
|
|
17777
|
+
});
|
|
17593
17778
|
}
|
|
17779
|
+
|
|
17780
|
+
// node content is not compatible with resolving mechanism (tag implementation)
|
|
17781
|
+
if (!tag.test(canonicalNode)) {
|
|
17782
|
+
throw new _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_5__["default"](`Node couldn't be resolved against the tag "${specificTagName}"`, {
|
|
17783
|
+
specificTagName,
|
|
17784
|
+
explicitTagName: node.tag.explicitName,
|
|
17785
|
+
tagKind: node.tag.kind,
|
|
17786
|
+
tagPosition: (0,ramda__WEBPACK_IMPORTED_MODULE_6__["default"])(node.tag.position),
|
|
17787
|
+
nodeCanonicalContent: canonicalNode.content,
|
|
17788
|
+
node: node.clone()
|
|
17789
|
+
});
|
|
17790
|
+
}
|
|
17791
|
+
return tag.resolve(canonicalNode);
|
|
17594
17792
|
}
|
|
17595
|
-
}
|
|
17793
|
+
}
|
|
17596
17794
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FailsafeSchema);
|
|
17597
17795
|
|
|
17598
17796
|
/***/ }),
|
|
@@ -17605,31 +17803,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17605
17803
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17606
17804
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17607
17805
|
/* harmony export */ });
|
|
17608
|
-
/* harmony import */ var
|
|
17609
|
-
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
|
|
17806
|
+
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
|
|
17610
17807
|
|
|
17611
|
-
|
|
17612
|
-
|
|
17613
|
-
|
|
17614
|
-
|
|
17615
|
-
|
|
17616
|
-
init(args, {
|
|
17617
|
-
stamp
|
|
17618
|
-
}) {
|
|
17619
|
-
this.tag = stamp.uri;
|
|
17620
|
-
},
|
|
17621
|
-
methods: {
|
|
17622
|
-
test(node) {
|
|
17623
|
-
return /^(true|false)$/.test(node.content);
|
|
17624
|
-
},
|
|
17625
|
-
resolve(node) {
|
|
17626
|
-
const content = node.content === 'true';
|
|
17627
|
-
const nodeClone = node.clone();
|
|
17628
|
-
nodeClone.content = content;
|
|
17629
|
-
return nodeClone;
|
|
17630
|
-
}
|
|
17808
|
+
/* eslint-disable class-methods-use-this */
|
|
17809
|
+
class Boolean extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17810
|
+
static uri = 'tag:yaml.org,2002:bool';
|
|
17811
|
+
test(node) {
|
|
17812
|
+
return /^(true|false)$/.test(node.content);
|
|
17631
17813
|
}
|
|
17632
|
-
|
|
17814
|
+
resolve(node) {
|
|
17815
|
+
const content = node.content === 'true';
|
|
17816
|
+
const nodeClone = node.clone();
|
|
17817
|
+
nodeClone.content = content;
|
|
17818
|
+
return nodeClone;
|
|
17819
|
+
}
|
|
17820
|
+
}
|
|
17821
|
+
/* eslint-enable class-methods-use-this */
|
|
17822
|
+
|
|
17633
17823
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Boolean);
|
|
17634
17824
|
|
|
17635
17825
|
/***/ }),
|
|
@@ -17642,31 +17832,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17642
17832
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17643
17833
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17644
17834
|
/* harmony export */ });
|
|
17645
|
-
/* harmony import */ var
|
|
17646
|
-
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
|
|
17647
|
-
|
|
17835
|
+
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
|
|
17648
17836
|
|
|
17649
|
-
|
|
17650
|
-
|
|
17651
|
-
|
|
17652
|
-
|
|
17653
|
-
|
|
17654
|
-
stamp
|
|
17655
|
-
}) {
|
|
17656
|
-
this.tag = stamp.uri;
|
|
17657
|
-
},
|
|
17658
|
-
methods: {
|
|
17659
|
-
test(node) {
|
|
17660
|
-
return /^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(node.content);
|
|
17661
|
-
},
|
|
17662
|
-
resolve(node) {
|
|
17663
|
-
const content = parseFloat(node.content);
|
|
17664
|
-
const nodeClone = node.clone();
|
|
17665
|
-
nodeClone.content = content;
|
|
17666
|
-
return nodeClone;
|
|
17667
|
-
}
|
|
17837
|
+
/* eslint-disable class-methods-use-this */
|
|
17838
|
+
class FloatingPoint extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17839
|
+
static uri = 'tag:yaml.org,2002:float';
|
|
17840
|
+
test(node) {
|
|
17841
|
+
return /^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(node.content);
|
|
17668
17842
|
}
|
|
17669
|
-
|
|
17843
|
+
resolve(node) {
|
|
17844
|
+
const content = parseFloat(node.content);
|
|
17845
|
+
const nodeClone = node.clone();
|
|
17846
|
+
nodeClone.content = content;
|
|
17847
|
+
return nodeClone;
|
|
17848
|
+
}
|
|
17849
|
+
}
|
|
17850
|
+
/* eslint-enable class-methods-use-this */
|
|
17851
|
+
|
|
17670
17852
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FloatingPoint);
|
|
17671
17853
|
|
|
17672
17854
|
/***/ }),
|
|
@@ -17679,31 +17861,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17679
17861
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17680
17862
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17681
17863
|
/* harmony export */ });
|
|
17682
|
-
/* harmony import */ var
|
|
17683
|
-
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
|
|
17684
|
-
|
|
17864
|
+
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
|
|
17685
17865
|
|
|
17686
|
-
|
|
17687
|
-
|
|
17688
|
-
|
|
17689
|
-
|
|
17690
|
-
|
|
17691
|
-
stamp
|
|
17692
|
-
}) {
|
|
17693
|
-
this.tag = stamp.uri;
|
|
17694
|
-
},
|
|
17695
|
-
methods: {
|
|
17696
|
-
test(node) {
|
|
17697
|
-
return /^-?(0|[1-9][0-9]*)$/.test(node.content);
|
|
17698
|
-
},
|
|
17699
|
-
resolve(node) {
|
|
17700
|
-
const content = parseInt(node.content, 10);
|
|
17701
|
-
const nodeClone = node.clone();
|
|
17702
|
-
nodeClone.content = content;
|
|
17703
|
-
return nodeClone;
|
|
17704
|
-
}
|
|
17866
|
+
/* eslint-disable class-methods-use-this */
|
|
17867
|
+
class Integer extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17868
|
+
static uri = 'tag:yaml.org,2002:int';
|
|
17869
|
+
test(node) {
|
|
17870
|
+
return /^-?(0|[1-9][0-9]*)$/.test(node.content);
|
|
17705
17871
|
}
|
|
17706
|
-
|
|
17872
|
+
resolve(node) {
|
|
17873
|
+
const content = parseInt(node.content, 10);
|
|
17874
|
+
const nodeClone = node.clone();
|
|
17875
|
+
nodeClone.content = content;
|
|
17876
|
+
return nodeClone;
|
|
17877
|
+
}
|
|
17878
|
+
}
|
|
17879
|
+
/* eslint-enable class-methods-use-this */
|
|
17880
|
+
|
|
17707
17881
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Integer);
|
|
17708
17882
|
|
|
17709
17883
|
/***/ }),
|
|
@@ -17716,30 +17890,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17716
17890
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17717
17891
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17718
17892
|
/* harmony export */ });
|
|
17719
|
-
/* harmony import */ var
|
|
17720
|
-
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
|
|
17893
|
+
/* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
|
|
17721
17894
|
|
|
17722
|
-
|
|
17723
|
-
|
|
17724
|
-
|
|
17725
|
-
|
|
17726
|
-
|
|
17727
|
-
init(args, {
|
|
17728
|
-
stamp
|
|
17729
|
-
}) {
|
|
17730
|
-
this.tag = stamp.uri;
|
|
17731
|
-
},
|
|
17732
|
-
methods: {
|
|
17733
|
-
test(node) {
|
|
17734
|
-
return /^null$/.test(node.content);
|
|
17735
|
-
},
|
|
17736
|
-
resolve(node) {
|
|
17737
|
-
const nodeClone = node.clone();
|
|
17738
|
-
nodeClone.content = null;
|
|
17739
|
-
return nodeClone;
|
|
17740
|
-
}
|
|
17895
|
+
/* eslint-disable class-methods-use-this */
|
|
17896
|
+
class Null extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17897
|
+
static uri = 'tag:yaml.org,2002:null';
|
|
17898
|
+
test(node) {
|
|
17899
|
+
return /^null$/.test(node.content);
|
|
17741
17900
|
}
|
|
17742
|
-
|
|
17901
|
+
resolve(node) {
|
|
17902
|
+
const nodeClone = node.clone();
|
|
17903
|
+
nodeClone.content = null;
|
|
17904
|
+
return nodeClone;
|
|
17905
|
+
}
|
|
17906
|
+
}
|
|
17907
|
+
/* eslint-enable class-methods-use-this */
|
|
17908
|
+
|
|
17743
17909
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Null);
|
|
17744
17910
|
|
|
17745
17911
|
/***/ }),
|
|
@@ -17752,15 +17918,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17752
17918
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17753
17919
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17754
17920
|
/* harmony export */ });
|
|
17755
|
-
/* harmony import */ var
|
|
17756
|
-
/* harmony import */ var
|
|
17757
|
-
/* harmony import */ var
|
|
17758
|
-
/* harmony import */ var
|
|
17759
|
-
/* harmony import */ var
|
|
17760
|
-
/* harmony import */ var
|
|
17761
|
-
/* harmony import */ var
|
|
17762
|
-
/* harmony import */ var
|
|
17763
|
-
/* harmony import */ var _failsafe_GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(39565);
|
|
17921
|
+
/* harmony import */ var _failsafe_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59870);
|
|
17922
|
+
/* harmony import */ var _Boolean_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89949);
|
|
17923
|
+
/* harmony import */ var _FloatingPoint_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39170);
|
|
17924
|
+
/* harmony import */ var _Integer_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4267);
|
|
17925
|
+
/* harmony import */ var _Null_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71416);
|
|
17926
|
+
/* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37837);
|
|
17927
|
+
/* harmony import */ var _failsafe_GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(92844);
|
|
17928
|
+
/* harmony import */ var _failsafe_GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(39565);
|
|
17764
17929
|
|
|
17765
17930
|
|
|
17766
17931
|
|
|
@@ -17769,38 +17934,32 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17769
17934
|
|
|
17770
17935
|
|
|
17771
17936
|
|
|
17772
|
-
|
|
17773
|
-
|
|
17774
|
-
|
|
17937
|
+
class JsonSchema extends _failsafe_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17938
|
+
constructor() {
|
|
17939
|
+
super();
|
|
17775
17940
|
/**
|
|
17776
17941
|
* We're registering more specific tags before more generic ones from Failsafe schema.
|
|
17777
17942
|
*/
|
|
17778
|
-
this.registerTag(
|
|
17779
|
-
this.registerTag(
|
|
17780
|
-
this.registerTag(
|
|
17781
|
-
this.registerTag(
|
|
17782
|
-
}
|
|
17783
|
-
|
|
17784
|
-
toSpecificTagName(node)
|
|
17785
|
-
|
|
17786
|
-
|
|
17787
|
-
|
|
17788
|
-
|
|
17789
|
-
|
|
17790
|
-
|
|
17791
|
-
|
|
17792
|
-
|
|
17793
|
-
specificTagName = _failsafe_GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_8__["default"].uri;
|
|
17794
|
-
} else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_6__.YamlNodeKind.Scalar) {
|
|
17795
|
-
// @ts-ignore
|
|
17796
|
-
const foundTag = this.tags.find(tag => tag.test(node));
|
|
17797
|
-
specificTagName = (foundTag === null || foundTag === void 0 ? void 0 : foundTag.tag) || '?';
|
|
17798
|
-
}
|
|
17943
|
+
this.registerTag(new _Boolean_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](), true);
|
|
17944
|
+
this.registerTag(new _FloatingPoint_mjs__WEBPACK_IMPORTED_MODULE_2__["default"](), true);
|
|
17945
|
+
this.registerTag(new _Integer_mjs__WEBPACK_IMPORTED_MODULE_3__["default"](), true);
|
|
17946
|
+
this.registerTag(new _Null_mjs__WEBPACK_IMPORTED_MODULE_4__["default"](), true);
|
|
17947
|
+
}
|
|
17948
|
+
toSpecificTagName(node) {
|
|
17949
|
+
let specificTagName = super.toSpecificTagName(node);
|
|
17950
|
+
if (specificTagName === '?') {
|
|
17951
|
+
if (node.tag.vkind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_5__.YamlNodeKind.Sequence) {
|
|
17952
|
+
specificTagName = _failsafe_GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_6__["default"].uri;
|
|
17953
|
+
} else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_5__.YamlNodeKind.Mapping) {
|
|
17954
|
+
specificTagName = _failsafe_GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_7__["default"].uri;
|
|
17955
|
+
} else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_5__.YamlNodeKind.Scalar) {
|
|
17956
|
+
const foundTag = this.tags.find(tag => tag.test(node));
|
|
17957
|
+
specificTagName = (foundTag === null || foundTag === void 0 ? void 0 : foundTag.tag) || '?';
|
|
17799
17958
|
}
|
|
17800
|
-
return specificTagName;
|
|
17801
17959
|
}
|
|
17960
|
+
return specificTagName;
|
|
17802
17961
|
}
|
|
17803
|
-
}
|
|
17962
|
+
}
|
|
17804
17963
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonSchema);
|
|
17805
17964
|
|
|
17806
17965
|
/***/ }),
|
|
@@ -18140,7 +18299,7 @@ class SourceMap extends minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement {
|
|
|
18140
18299
|
return this.children.filter(item => item.classes.contains('position')).get(1);
|
|
18141
18300
|
}
|
|
18142
18301
|
set position(position) {
|
|
18143
|
-
if (position ===
|
|
18302
|
+
if (typeof position === 'undefined') {
|
|
18144
18303
|
return;
|
|
18145
18304
|
}
|
|
18146
18305
|
const start = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.start.row, position.start.column, position.start.char]);
|
|
@@ -18655,77 +18814,73 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18655
18814
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18656
18815
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18657
18816
|
/* harmony export */ });
|
|
18658
|
-
/* harmony import */ var
|
|
18659
|
-
/* harmony import */ var
|
|
18660
|
-
/* harmony import */ var
|
|
18661
|
-
/* harmony import */ var
|
|
18662
|
-
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36903);
|
|
18663
|
-
|
|
18817
|
+
/* harmony import */ var _visitor_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(62056);
|
|
18818
|
+
/* harmony import */ var _ast_ephemeral_array_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86353);
|
|
18819
|
+
/* harmony import */ var _ast_ephemeral_object_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34575);
|
|
18820
|
+
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36903);
|
|
18664
18821
|
|
|
18665
18822
|
|
|
18666
18823
|
|
|
18667
18824
|
|
|
18668
|
-
/* eslint-disable
|
|
18669
|
-
|
|
18670
|
-
|
|
18671
|
-
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
this.NumberElement = function _NumberElement(element) {
|
|
18675
|
-
return element.toValue();
|
|
18676
|
-
};
|
|
18677
|
-
this.StringElement = function _StringElement(element) {
|
|
18678
|
-
return element.toValue();
|
|
18679
|
-
};
|
|
18680
|
-
this.NullElement = function _NullElement() {
|
|
18681
|
-
return null;
|
|
18682
|
-
};
|
|
18683
|
-
this.ObjectElement = {
|
|
18684
|
-
enter(element) {
|
|
18685
|
-
if (references.has(element)) {
|
|
18686
|
-
return references.get(element).toReference();
|
|
18825
|
+
/* eslint-disable class-methods-use-this */
|
|
18826
|
+
class Visitor {
|
|
18827
|
+
ObjectElement = {
|
|
18828
|
+
enter: element => {
|
|
18829
|
+
if (this.references.has(element)) {
|
|
18830
|
+
return this.references.get(element).toReference();
|
|
18687
18831
|
}
|
|
18688
|
-
const ephemeral = new
|
|
18689
|
-
references.set(element, ephemeral);
|
|
18832
|
+
const ephemeral = new _ast_ephemeral_object_mjs__WEBPACK_IMPORTED_MODULE_0__["default"](element.content);
|
|
18833
|
+
this.references.set(element, ephemeral);
|
|
18690
18834
|
return ephemeral;
|
|
18691
18835
|
}
|
|
18692
18836
|
};
|
|
18693
|
-
|
|
18694
|
-
leave
|
|
18837
|
+
EphemeralObject = {
|
|
18838
|
+
leave: ephemeral => {
|
|
18695
18839
|
return ephemeral.toObject();
|
|
18696
18840
|
}
|
|
18697
18841
|
};
|
|
18698
|
-
|
|
18699
|
-
enter
|
|
18842
|
+
MemberElement = {
|
|
18843
|
+
enter: element => {
|
|
18700
18844
|
return [element.key, element.value];
|
|
18701
18845
|
}
|
|
18702
18846
|
};
|
|
18703
|
-
|
|
18704
|
-
enter
|
|
18705
|
-
if (references.has(element)) {
|
|
18706
|
-
return references.get(element).toReference();
|
|
18847
|
+
ArrayElement = {
|
|
18848
|
+
enter: element => {
|
|
18849
|
+
if (this.references.has(element)) {
|
|
18850
|
+
return this.references.get(element).toReference();
|
|
18707
18851
|
}
|
|
18708
|
-
const ephemeral = new
|
|
18709
|
-
references.set(element, ephemeral);
|
|
18852
|
+
const ephemeral = new _ast_ephemeral_array_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](element.content);
|
|
18853
|
+
this.references.set(element, ephemeral);
|
|
18710
18854
|
return ephemeral;
|
|
18711
18855
|
}
|
|
18712
18856
|
};
|
|
18713
|
-
|
|
18714
|
-
leave
|
|
18857
|
+
EphemeralArray = {
|
|
18858
|
+
leave: ephemeral => {
|
|
18715
18859
|
return ephemeral.toArray();
|
|
18716
18860
|
}
|
|
18717
18861
|
};
|
|
18718
|
-
|
|
18719
|
-
|
|
18720
|
-
|
|
18862
|
+
references = new WeakMap();
|
|
18863
|
+
BooleanElement(element) {
|
|
18864
|
+
return element.toValue();
|
|
18865
|
+
}
|
|
18866
|
+
NumberElement(element) {
|
|
18867
|
+
return element.toValue();
|
|
18868
|
+
}
|
|
18869
|
+
StringElement(element) {
|
|
18870
|
+
return element.toValue();
|
|
18871
|
+
}
|
|
18872
|
+
NullElement() {
|
|
18873
|
+
return null;
|
|
18874
|
+
}
|
|
18875
|
+
}
|
|
18721
18876
|
const serializer = element => {
|
|
18722
|
-
if (!(0,
|
|
18877
|
+
if (!(0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isElement)(element)) return element;
|
|
18723
18878
|
|
|
18724
18879
|
// shortcut optimization for certain element types
|
|
18725
|
-
if ((0,
|
|
18880
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isStringElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isNumberElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isBooleanElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isNullElement)(element)) {
|
|
18726
18881
|
return element.toValue();
|
|
18727
18882
|
}
|
|
18728
|
-
return (0,
|
|
18883
|
+
return (0,_visitor_mjs__WEBPACK_IMPORTED_MODULE_3__.visit)(element, new Visitor());
|
|
18729
18884
|
};
|
|
18730
18885
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (serializer);
|
|
18731
18886
|
|
|
@@ -18799,23 +18954,21 @@ visit[Symbol.for('nodejs.util.promisify.custom')] = async (root, {
|
|
|
18799
18954
|
"use strict";
|
|
18800
18955
|
__webpack_require__.r(__webpack_exports__);
|
|
18801
18956
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18802
|
-
/* harmony export */ BREAK: () => (/* reexport safe */
|
|
18957
|
+
/* harmony export */ BREAK: () => (/* reexport safe */ _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.BREAK),
|
|
18803
18958
|
/* harmony export */ PredicateVisitor: () => (/* binding */ PredicateVisitor),
|
|
18804
18959
|
/* harmony export */ cloneNode: () => (/* binding */ cloneNode),
|
|
18805
18960
|
/* harmony export */ getNodeType: () => (/* binding */ getNodeType),
|
|
18806
18961
|
/* harmony export */ isNode: () => (/* binding */ isNode),
|
|
18807
18962
|
/* harmony export */ keyMapDefault: () => (/* binding */ keyMapDefault),
|
|
18808
|
-
/* harmony export */ mergeAllVisitors: () => (/* reexport safe */
|
|
18963
|
+
/* harmony export */ mergeAllVisitors: () => (/* reexport safe */ _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.mergeAll),
|
|
18809
18964
|
/* harmony export */ visit: () => (/* binding */ visit)
|
|
18810
18965
|
/* harmony export */ });
|
|
18811
|
-
/* harmony import */ var
|
|
18812
|
-
/* harmony import */ var
|
|
18813
|
-
/* harmony import */ var
|
|
18814
|
-
/* harmony import */ var
|
|
18815
|
-
/* harmony import */ var
|
|
18816
|
-
/* harmony import */ var
|
|
18817
|
-
/* harmony import */ var _clone_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82434);
|
|
18818
|
-
|
|
18966
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(64205);
|
|
18967
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25561);
|
|
18968
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25992);
|
|
18969
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51394);
|
|
18970
|
+
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36903);
|
|
18971
|
+
/* harmony import */ var _clone_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82434);
|
|
18819
18972
|
|
|
18820
18973
|
|
|
18821
18974
|
|
|
@@ -18832,19 +18985,19 @@ const getNodeType = element => {
|
|
|
18832
18985
|
*
|
|
18833
18986
|
* There is a problem with naming visitor methods described here: https://github.com/babel/babel/discussions/12874
|
|
18834
18987
|
*/
|
|
18835
|
-
return (0,
|
|
18988
|
+
return (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isObjectElement)(element) ? 'ObjectElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(element) ? 'ArrayElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isMemberElement)(element) ? 'MemberElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(element) ? 'StringElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isBooleanElement)(element) ? 'BooleanElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumberElement)(element) ? 'NumberElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isNullElement)(element) ? 'NullElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isLinkElement)(element) ? 'LinkElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isRefElement)(element) ? 'RefElement' : undefined;
|
|
18836
18989
|
};
|
|
18837
18990
|
|
|
18838
18991
|
// cloneNode :: a -> a
|
|
18839
18992
|
const cloneNode = node => {
|
|
18840
|
-
if ((0,
|
|
18841
|
-
return (0,
|
|
18993
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(node)) {
|
|
18994
|
+
return (0,_clone_index_mjs__WEBPACK_IMPORTED_MODULE_2__.cloneShallow)(node);
|
|
18842
18995
|
}
|
|
18843
|
-
return (0,
|
|
18996
|
+
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.cloneNode)(node);
|
|
18844
18997
|
};
|
|
18845
18998
|
|
|
18846
18999
|
// isNode :: Node -> Boolean
|
|
18847
|
-
const isNode = (0,
|
|
19000
|
+
const isNode = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(getNodeType, ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
18848
19001
|
const keyMapDefault = {
|
|
18849
19002
|
ObjectElement: ['content'],
|
|
18850
19003
|
ArrayElement: ['content'],
|
|
@@ -18860,38 +19013,25 @@ const keyMapDefault = {
|
|
|
18860
19013
|
ParseResultElement: ['content'],
|
|
18861
19014
|
SourceMap: ['content']
|
|
18862
19015
|
};
|
|
18863
|
-
|
|
18864
|
-
|
|
18865
|
-
|
|
18866
|
-
|
|
18867
|
-
|
|
18868
|
-
returnOnFalse: undefined
|
|
18869
|
-
},
|
|
18870
|
-
init({
|
|
18871
|
-
// @ts-ignore
|
|
18872
|
-
predicate = this.predicate,
|
|
18873
|
-
// @ts-ignore
|
|
18874
|
-
returnOnTrue = this.returnOnTrue,
|
|
18875
|
-
// @ts-ignore
|
|
18876
|
-
returnOnFalse = this.returnOnFalse
|
|
19016
|
+
class PredicateVisitor {
|
|
19017
|
+
constructor({
|
|
19018
|
+
predicate = ramda__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
19019
|
+
returnOnTrue,
|
|
19020
|
+
returnOnFalse
|
|
18877
19021
|
} = {}) {
|
|
18878
19022
|
this.result = [];
|
|
18879
19023
|
this.predicate = predicate;
|
|
18880
19024
|
this.returnOnTrue = returnOnTrue;
|
|
18881
19025
|
this.returnOnFalse = returnOnFalse;
|
|
18882
|
-
}
|
|
18883
|
-
|
|
18884
|
-
|
|
18885
|
-
|
|
18886
|
-
|
|
18887
|
-
return this.returnOnTrue;
|
|
18888
|
-
}
|
|
18889
|
-
return this.returnOnFalse;
|
|
19026
|
+
}
|
|
19027
|
+
enter(element) {
|
|
19028
|
+
if (this.predicate(element)) {
|
|
19029
|
+
this.result.push(element);
|
|
19030
|
+
return this.returnOnTrue;
|
|
18890
19031
|
}
|
|
19032
|
+
return this.returnOnFalse;
|
|
18891
19033
|
}
|
|
18892
|
-
}
|
|
18893
|
-
|
|
18894
|
-
// @ts-ignore
|
|
19034
|
+
}
|
|
18895
19035
|
const visit = (root,
|
|
18896
19036
|
// @ts-ignore
|
|
18897
19037
|
visitor, {
|
|
@@ -18899,7 +19039,7 @@ visitor, {
|
|
|
18899
19039
|
...rest
|
|
18900
19040
|
} = {}) => {
|
|
18901
19041
|
// @ts-ignore
|
|
18902
|
-
return (0,
|
|
19042
|
+
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.visit)(root, visitor, {
|
|
18903
19043
|
// @ts-ignore
|
|
18904
19044
|
keyMap,
|
|
18905
19045
|
// @ts-ignore
|
|
@@ -18918,7 +19058,7 @@ visitor, {
|
|
|
18918
19058
|
...rest
|
|
18919
19059
|
} = {}) => {
|
|
18920
19060
|
// @ts-ignore
|
|
18921
|
-
return
|
|
19061
|
+
return _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.visit[Symbol.for('nodejs.util.promisify.custom')](root, visitor, {
|
|
18922
19062
|
// @ts-ignore
|
|
18923
19063
|
keyMap,
|
|
18924
19064
|
// @ts-ignore
|
|
@@ -19598,7 +19738,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19598
19738
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55416);
|
|
19599
19739
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50821);
|
|
19600
19740
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77541);
|
|
19601
|
-
/* harmony import */ var
|
|
19741
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79154);
|
|
19602
19742
|
/* harmony import */ var _specification_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24899);
|
|
19603
19743
|
/* harmony import */ var _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(32364);
|
|
19604
19744
|
/* harmony import */ var _toolbox_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33628);
|
|
@@ -19619,7 +19759,9 @@ const refract = (value, {
|
|
|
19619
19759
|
* We don't allow consumers to hook into this translation.
|
|
19620
19760
|
* Though we allow consumers to define their onw plugins on already transformed ApiDOM.
|
|
19621
19761
|
*/
|
|
19622
|
-
const
|
|
19762
|
+
const RootVisitorClass = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(specPath, resolvedSpec);
|
|
19763
|
+
const rootVisitor = new RootVisitorClass();
|
|
19764
|
+
|
|
19623
19765
|
// @ts-ignore
|
|
19624
19766
|
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.visit)(element, rootVisitor, {
|
|
19625
19767
|
state: {
|
|
@@ -19691,7 +19833,7 @@ _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_3__["default"].refract = (0,_in
|
|
|
19691
19833
|
_elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Requirement', '$visitor']);
|
|
19692
19834
|
_elements_RequirementLevel_mjs__WEBPACK_IMPORTED_MODULE_5__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'RequirementLevel', '$visitor']);
|
|
19693
19835
|
_elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_6__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Scenario', '$visitor']);
|
|
19694
|
-
_elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_7__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', '
|
|
19836
|
+
_elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_7__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Standard', '$visitor']);
|
|
19695
19837
|
_elements_StandardIdentifier_mjs__WEBPACK_IMPORTED_MODULE_8__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'StandardIdentifier', '$visitor']);
|
|
19696
19838
|
|
|
19697
19839
|
|
|
@@ -19838,8 +19980,12 @@ const specification = {
|
|
|
19838
19980
|
follows: _visitors_api_design_systems_requirement_FollowsVisitor_mjs__WEBPACK_IMPORTED_MODULE_22__["default"]
|
|
19839
19981
|
}
|
|
19840
19982
|
},
|
|
19841
|
-
StandardIdentifier:
|
|
19842
|
-
|
|
19983
|
+
StandardIdentifier: {
|
|
19984
|
+
$visitor: _visitors_api_design_systems_standard_identifier_index_mjs__WEBPACK_IMPORTED_MODULE_23__["default"]
|
|
19985
|
+
},
|
|
19986
|
+
RequirementLevel: {
|
|
19987
|
+
$visitor: _visitors_api_design_systems_requirement_level_index_mjs__WEBPACK_IMPORTED_MODULE_24__["default"]
|
|
19988
|
+
}
|
|
19843
19989
|
}
|
|
19844
19990
|
}
|
|
19845
19991
|
}
|
|
@@ -19886,11 +20032,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19886
20032
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19887
20033
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
19888
20034
|
/* harmony export */ });
|
|
19889
|
-
/* harmony import */ var
|
|
19890
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
19891
|
-
/* harmony import */ var
|
|
19892
|
-
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80592);
|
|
19893
|
-
|
|
20035
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82434);
|
|
20036
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51394);
|
|
20037
|
+
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80592);
|
|
19894
20038
|
|
|
19895
20039
|
|
|
19896
20040
|
/**
|
|
@@ -19899,14 +20043,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19899
20043
|
* different Element is provided FallBackVisitor is responsible to assigning
|
|
19900
20044
|
* this Element as current element.
|
|
19901
20045
|
*/
|
|
19902
|
-
|
|
19903
|
-
|
|
19904
|
-
|
|
19905
|
-
|
|
19906
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.BREAK;
|
|
19907
|
-
}
|
|
20046
|
+
class FallbackVisitor extends _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
20047
|
+
enter(element) {
|
|
20048
|
+
this.element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(element);
|
|
20049
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.BREAK;
|
|
19908
20050
|
}
|
|
19909
|
-
}
|
|
20051
|
+
}
|
|
19910
20052
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FallbackVisitor);
|
|
19911
20053
|
|
|
19912
20054
|
/***/ }),
|
|
@@ -19919,16 +20061,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19919
20061
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19920
20062
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
19921
20063
|
/* harmony export */ });
|
|
19922
|
-
/* harmony import */ var
|
|
19923
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
19924
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
19925
|
-
/* harmony import */ var
|
|
19926
|
-
/* harmony import */ var
|
|
19927
|
-
/* harmony import */ var
|
|
19928
|
-
/* harmony import */ var
|
|
19929
|
-
/* harmony import */ var
|
|
19930
|
-
/* harmony import */ var
|
|
19931
|
-
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80592);
|
|
20064
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3060);
|
|
20065
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79154);
|
|
20066
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(34465);
|
|
20067
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(79028);
|
|
20068
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(82434);
|
|
20069
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50821);
|
|
20070
|
+
/* harmony import */ var _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(32364);
|
|
20071
|
+
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80592);
|
|
20072
|
+
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7447);
|
|
19932
20073
|
|
|
19933
20074
|
|
|
19934
20075
|
|
|
@@ -19936,72 +20077,65 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19936
20077
|
|
|
19937
20078
|
|
|
19938
20079
|
/**
|
|
19939
|
-
* This is a base
|
|
20080
|
+
* This is a base class for every visitor that does
|
|
19940
20081
|
* internal look-ups to retrieve other child visitors.
|
|
19941
20082
|
*/
|
|
19942
|
-
|
|
19943
|
-
|
|
19944
|
-
|
|
19945
|
-
|
|
19946
|
-
|
|
19947
|
-
|
|
19948
|
-
|
|
19949
|
-
|
|
19950
|
-
}
|
|
19951
|
-
|
|
19952
|
-
|
|
19953
|
-
|
|
19954
|
-
|
|
19955
|
-
|
|
19956
|
-
|
|
19957
|
-
|
|
19958
|
-
|
|
19959
|
-
|
|
19960
|
-
|
|
19961
|
-
|
|
19962
|
-
|
|
19963
|
-
|
|
19964
|
-
|
|
19965
|
-
|
|
19966
|
-
|
|
19967
|
-
|
|
19968
|
-
|
|
19969
|
-
|
|
19970
|
-
|
|
19971
|
-
const passingOpts = this.retrievePassingOptions();
|
|
19972
|
-
return this.retrieveVisitor(specPath)({
|
|
19973
|
-
...passingOpts,
|
|
19974
|
-
...options
|
|
19975
|
-
});
|
|
19976
|
-
},
|
|
19977
|
-
toRefractedElement(specPath, element, options = {}) {
|
|
19978
|
-
/**
|
|
19979
|
-
* This is `Visitor shortcut`: mechanism for short circuiting the traversal and replacing
|
|
19980
|
-
* it by basic node cloning.
|
|
19981
|
-
*
|
|
19982
|
-
* Visiting the element is equivalent to cloning it if the prototype of a visitor
|
|
19983
|
-
* is the same as the prototype of FallbackVisitor. If that's the case, we can avoid
|
|
19984
|
-
* bootstrapping the traversal cycle for fields that don't require any special visiting.
|
|
19985
|
-
*/
|
|
19986
|
-
const visitor = this.retrieveVisitorInstance(specPath, options);
|
|
19987
|
-
const visitorPrototype = Object.getPrototypeOf(visitor);
|
|
19988
|
-
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(this.fallbackVisitorPrototype)) {
|
|
19989
|
-
this.fallbackVisitorPrototype = Object.getPrototypeOf(this.retrieveVisitorInstance(['value']));
|
|
19990
|
-
}
|
|
19991
|
-
if (this.fallbackVisitorPrototype === visitorPrototype) {
|
|
19992
|
-
return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.cloneDeep)(element);
|
|
19993
|
-
}
|
|
20083
|
+
class SpecificationVisitor extends _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
20084
|
+
passingOptionsNames = ['specObj'];
|
|
20085
|
+
constructor(options = {}) {
|
|
20086
|
+
super();
|
|
20087
|
+
Object.assign(this, options);
|
|
20088
|
+
}
|
|
20089
|
+
retrievePassingOptions() {
|
|
20090
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.passingOptionsNames, this);
|
|
20091
|
+
}
|
|
20092
|
+
retrieveFixedFields(specPath) {
|
|
20093
|
+
const fixedFields = (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath, 'fixedFields'], this.specObj);
|
|
20094
|
+
if (typeof fixedFields === 'object' && fixedFields !== null) {
|
|
20095
|
+
return Object.keys(fixedFields);
|
|
20096
|
+
}
|
|
20097
|
+
return [];
|
|
20098
|
+
}
|
|
20099
|
+
retrieveVisitor(specPath) {
|
|
20100
|
+
if ((0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"], ['visitors', ...specPath], this.specObj)) {
|
|
20101
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath], this.specObj);
|
|
20102
|
+
}
|
|
20103
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath, '$visitor'], this.specObj);
|
|
20104
|
+
}
|
|
20105
|
+
retrieveVisitorInstance(specPath, options = {}) {
|
|
20106
|
+
const passingOpts = this.retrievePassingOptions();
|
|
20107
|
+
const VisitorClz = this.retrieveVisitor(specPath);
|
|
20108
|
+
const visitorOpts = {
|
|
20109
|
+
...passingOpts,
|
|
20110
|
+
...options
|
|
20111
|
+
};
|
|
19994
20112
|
|
|
19995
|
-
|
|
19996
|
-
|
|
19997
|
-
|
|
19998
|
-
|
|
19999
|
-
|
|
20000
|
-
|
|
20001
|
-
|
|
20113
|
+
// @ts-ignore
|
|
20114
|
+
return new VisitorClz(visitorOpts);
|
|
20115
|
+
}
|
|
20116
|
+
toRefractedElement(specPath, element, options = {}) {
|
|
20117
|
+
/**
|
|
20118
|
+
* This is `Visitor shortcut`: mechanism for short circuiting the traversal and replacing
|
|
20119
|
+
* it by basic node cloning.
|
|
20120
|
+
*
|
|
20121
|
+
* Visiting the element is equivalent to cloning it if the prototype of a visitor
|
|
20122
|
+
* is the same as the prototype of FallbackVisitor. If that's the case, we can avoid
|
|
20123
|
+
* bootstrapping the traversal cycle for fields that don't require any special visiting.
|
|
20124
|
+
*/
|
|
20125
|
+
const visitor = this.retrieveVisitorInstance(specPath, options);
|
|
20126
|
+
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"]) {
|
|
20127
|
+
return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(element);
|
|
20002
20128
|
}
|
|
20129
|
+
|
|
20130
|
+
// @ts-ignore
|
|
20131
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.visit)(element, visitor, {
|
|
20132
|
+
keyMap: _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__.keyMap,
|
|
20133
|
+
...options,
|
|
20134
|
+
nodeTypeGetter: _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__.getNodeType
|
|
20135
|
+
});
|
|
20136
|
+
return visitor.element;
|
|
20003
20137
|
}
|
|
20004
|
-
}
|
|
20138
|
+
}
|
|
20005
20139
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SpecificationVisitor);
|
|
20006
20140
|
|
|
20007
20141
|
/***/ }),
|
|
@@ -20014,23 +20148,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20014
20148
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20015
20149
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20016
20150
|
/* harmony export */ });
|
|
20017
|
-
/* harmony import */ var
|
|
20018
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36903);
|
|
20019
|
-
|
|
20151
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36903);
|
|
20020
20152
|
|
|
20021
|
-
|
|
20022
|
-
|
|
20023
|
-
|
|
20024
|
-
|
|
20025
|
-
|
|
20026
|
-
|
|
20027
|
-
// copy sourcemaps
|
|
20028
|
-
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(from)) {
|
|
20029
|
-
to.meta.set('sourceMap', from.meta.get('sourceMap'));
|
|
20030
|
-
}
|
|
20153
|
+
class Visitor {
|
|
20154
|
+
// eslint-disable-next-line class-methods-use-this
|
|
20155
|
+
copyMetaAndAttributes(from, to) {
|
|
20156
|
+
// copy sourcemaps
|
|
20157
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.hasElementSourceMap)(from)) {
|
|
20158
|
+
to.meta.set('sourceMap', from.meta.get('sourceMap'));
|
|
20031
20159
|
}
|
|
20032
20160
|
}
|
|
20033
|
-
}
|
|
20161
|
+
}
|
|
20034
20162
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Visitor);
|
|
20035
20163
|
|
|
20036
20164
|
/***/ }),
|
|
@@ -20073,8 +20201,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20073
20201
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20074
20202
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20075
20203
|
/* harmony export */ });
|
|
20076
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
|
|
20077
20204
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
|
|
20205
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20078
20206
|
/* harmony import */ var _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2189);
|
|
20079
20207
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
20080
20208
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94627);
|
|
@@ -20083,14 +20211,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20083
20211
|
|
|
20084
20212
|
|
|
20085
20213
|
|
|
20086
|
-
|
|
20087
|
-
|
|
20088
|
-
|
|
20089
|
-
|
|
20090
|
-
init() {
|
|
20214
|
+
class InfoVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20215
|
+
constructor(options = {}) {
|
|
20216
|
+
super(options);
|
|
20217
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Info']);
|
|
20091
20218
|
this.element = new _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
20092
20219
|
}
|
|
20093
|
-
}
|
|
20220
|
+
}
|
|
20094
20221
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InfoVisitor);
|
|
20095
20222
|
|
|
20096
20223
|
/***/ }),
|
|
@@ -20103,7 +20230,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20103
20230
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20104
20231
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20105
20232
|
/* harmony export */ });
|
|
20106
|
-
/* harmony import */ var
|
|
20233
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20107
20234
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48355);
|
|
20108
20235
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51394);
|
|
20109
20236
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -20112,23 +20239,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20112
20239
|
|
|
20113
20240
|
|
|
20114
20241
|
|
|
20115
|
-
|
|
20116
|
-
|
|
20242
|
+
class PrinciplesVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20243
|
+
constructor(options = {}) {
|
|
20244
|
+
super(options);
|
|
20117
20245
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
20118
20246
|
this.element.classes.push('main-principles');
|
|
20119
|
-
},
|
|
20120
|
-
methods: {
|
|
20121
|
-
ArrayElement(arrayElement) {
|
|
20122
|
-
arrayElement.forEach(item => {
|
|
20123
|
-
const specPath = ['document', 'objects', 'Principle'];
|
|
20124
|
-
const element = this.toRefractedElement(specPath, item);
|
|
20125
|
-
this.element.push(element);
|
|
20126
|
-
});
|
|
20127
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
20128
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
20129
|
-
}
|
|
20130
20247
|
}
|
|
20131
|
-
|
|
20248
|
+
ArrayElement(arrayElement) {
|
|
20249
|
+
arrayElement.forEach(item => {
|
|
20250
|
+
const specPath = ['document', 'objects', 'Principle'];
|
|
20251
|
+
const element = this.toRefractedElement(specPath, item);
|
|
20252
|
+
this.element.push(element);
|
|
20253
|
+
});
|
|
20254
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
20255
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
20256
|
+
}
|
|
20257
|
+
}
|
|
20132
20258
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PrinciplesVisitor);
|
|
20133
20259
|
|
|
20134
20260
|
/***/ }),
|
|
@@ -20141,7 +20267,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20141
20267
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20142
20268
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20143
20269
|
/* harmony export */ });
|
|
20144
|
-
/* harmony import */ var
|
|
20270
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20145
20271
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48355);
|
|
20146
20272
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51394);
|
|
20147
20273
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -20150,23 +20276,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20150
20276
|
|
|
20151
20277
|
|
|
20152
20278
|
|
|
20153
|
-
|
|
20154
|
-
|
|
20279
|
+
class ScenariosVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20280
|
+
constructor(options = {}) {
|
|
20281
|
+
super(options);
|
|
20155
20282
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
20156
20283
|
this.element.classes.push('main-scenarios');
|
|
20157
|
-
},
|
|
20158
|
-
methods: {
|
|
20159
|
-
ArrayElement(arrayElement) {
|
|
20160
|
-
arrayElement.forEach(item => {
|
|
20161
|
-
const specPath = ['document', 'objects', 'Scenario'];
|
|
20162
|
-
const element = this.toRefractedElement(specPath, item);
|
|
20163
|
-
this.element.push(element);
|
|
20164
|
-
});
|
|
20165
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
20166
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
20167
|
-
}
|
|
20168
20284
|
}
|
|
20169
|
-
|
|
20285
|
+
ArrayElement(arrayElement) {
|
|
20286
|
+
arrayElement.forEach(item => {
|
|
20287
|
+
const specPath = ['document', 'objects', 'Scenario'];
|
|
20288
|
+
const element = this.toRefractedElement(specPath, item);
|
|
20289
|
+
this.element.push(element);
|
|
20290
|
+
});
|
|
20291
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
20292
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
20293
|
+
}
|
|
20294
|
+
}
|
|
20170
20295
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScenariosVisitor);
|
|
20171
20296
|
|
|
20172
20297
|
/***/ }),
|
|
@@ -20179,32 +20304,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20179
20304
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20180
20305
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20181
20306
|
/* harmony export */ });
|
|
20182
|
-
/* harmony import */ var
|
|
20307
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20183
20308
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48355);
|
|
20184
20309
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51394);
|
|
20185
|
-
/* harmony import */ var
|
|
20186
|
-
/* harmony import */ var
|
|
20310
|
+
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7447);
|
|
20311
|
+
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49894);
|
|
20187
20312
|
|
|
20188
20313
|
|
|
20189
20314
|
|
|
20190
20315
|
|
|
20191
|
-
|
|
20192
|
-
|
|
20316
|
+
class StandardsVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20317
|
+
constructor(options = {}) {
|
|
20318
|
+
super(options);
|
|
20193
20319
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
20194
20320
|
this.element.classes.push('main-standards');
|
|
20195
|
-
},
|
|
20196
|
-
methods: {
|
|
20197
|
-
ArrayElement(arrayElement) {
|
|
20198
|
-
arrayElement.forEach(item => {
|
|
20199
|
-
const specPath = ['document', 'objects', 'Standard'];
|
|
20200
|
-
const element = this.toRefractedElement(specPath, item);
|
|
20201
|
-
this.element.push(element);
|
|
20202
|
-
});
|
|
20203
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
20204
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
20205
|
-
}
|
|
20206
20321
|
}
|
|
20207
|
-
|
|
20322
|
+
ArrayElement(arrayElement) {
|
|
20323
|
+
arrayElement.forEach(item => {
|
|
20324
|
+
const specPath = ['document', 'objects', 'Standard'];
|
|
20325
|
+
const element = this.toRefractedElement(specPath, item);
|
|
20326
|
+
this.element.push(element);
|
|
20327
|
+
});
|
|
20328
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
20329
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
20330
|
+
}
|
|
20331
|
+
}
|
|
20208
20332
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardsVisitor);
|
|
20209
20333
|
|
|
20210
20334
|
/***/ }),
|
|
@@ -20232,7 +20356,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20232
20356
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20233
20357
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20234
20358
|
/* harmony export */ });
|
|
20235
|
-
/* harmony import */ var
|
|
20359
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20236
20360
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
|
|
20237
20361
|
/* harmony import */ var _elements_Main_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34783);
|
|
20238
20362
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -20242,14 +20366,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20242
20366
|
|
|
20243
20367
|
|
|
20244
20368
|
|
|
20245
|
-
|
|
20246
|
-
|
|
20247
|
-
|
|
20248
|
-
|
|
20249
|
-
init() {
|
|
20369
|
+
class MainVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20370
|
+
constructor(options = {}) {
|
|
20371
|
+
super(options);
|
|
20372
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Main']);
|
|
20250
20373
|
this.element = new _elements_Main_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
20251
20374
|
}
|
|
20252
|
-
}
|
|
20375
|
+
}
|
|
20253
20376
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MainVisitor);
|
|
20254
20377
|
|
|
20255
20378
|
/***/ }),
|
|
@@ -20307,8 +20430,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20307
20430
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20308
20431
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20309
20432
|
/* harmony export */ });
|
|
20310
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
|
|
20311
20433
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
|
|
20434
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20312
20435
|
/* harmony import */ var _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4028);
|
|
20313
20436
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
20314
20437
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94627);
|
|
@@ -20317,14 +20440,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20317
20440
|
|
|
20318
20441
|
|
|
20319
20442
|
|
|
20320
|
-
|
|
20321
|
-
|
|
20322
|
-
|
|
20323
|
-
|
|
20324
|
-
init() {
|
|
20443
|
+
class PrincipleVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20444
|
+
constructor(options = {}) {
|
|
20445
|
+
super(options);
|
|
20446
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Principle']);
|
|
20325
20447
|
this.element = new _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
20326
20448
|
}
|
|
20327
|
-
}
|
|
20449
|
+
}
|
|
20328
20450
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PrincipleVisitor);
|
|
20329
20451
|
|
|
20330
20452
|
/***/ }),
|
|
@@ -20337,7 +20459,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20337
20459
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20338
20460
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20339
20461
|
/* harmony export */ });
|
|
20340
|
-
/* harmony import */ var
|
|
20462
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20341
20463
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(83130);
|
|
20342
20464
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(51394);
|
|
20343
20465
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -20348,16 +20470,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20348
20470
|
|
|
20349
20471
|
|
|
20350
20472
|
|
|
20351
|
-
|
|
20352
|
-
|
|
20353
|
-
|
|
20354
|
-
|
|
20355
|
-
|
|
20356
|
-
|
|
20357
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
|
|
20358
|
-
}
|
|
20473
|
+
class RequirementLevelVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20474
|
+
StringElement(stringElement) {
|
|
20475
|
+
const requirementLevelElement = new _elements_RequirementLevel_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(stringElement));
|
|
20476
|
+
this.copyMetaAndAttributes(stringElement, requirementLevelElement);
|
|
20477
|
+
this.element = requirementLevelElement;
|
|
20478
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
|
|
20359
20479
|
}
|
|
20360
|
-
}
|
|
20480
|
+
}
|
|
20361
20481
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RequirementLevelVisitor);
|
|
20362
20482
|
|
|
20363
20483
|
/***/ }),
|
|
@@ -20400,8 +20520,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20400
20520
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20401
20521
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20402
20522
|
/* harmony export */ });
|
|
20403
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
|
|
20404
20523
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
|
|
20524
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20405
20525
|
/* harmony import */ var _elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49618);
|
|
20406
20526
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
20407
20527
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94627);
|
|
@@ -20410,14 +20530,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20410
20530
|
|
|
20411
20531
|
|
|
20412
20532
|
|
|
20413
|
-
|
|
20414
|
-
|
|
20415
|
-
|
|
20416
|
-
|
|
20417
|
-
init() {
|
|
20533
|
+
class RequirementVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20534
|
+
constructor(options = {}) {
|
|
20535
|
+
super(options);
|
|
20536
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Requirement']);
|
|
20418
20537
|
this.element = new _elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
20419
20538
|
}
|
|
20420
|
-
}
|
|
20539
|
+
}
|
|
20421
20540
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RequirementVisitor);
|
|
20422
20541
|
|
|
20423
20542
|
/***/ }),
|
|
@@ -20445,7 +20564,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20445
20564
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20446
20565
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20447
20566
|
/* harmony export */ });
|
|
20448
|
-
/* harmony import */ var
|
|
20567
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20449
20568
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48355);
|
|
20450
20569
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51394);
|
|
20451
20570
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -20454,23 +20573,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20454
20573
|
|
|
20455
20574
|
|
|
20456
20575
|
|
|
20457
|
-
|
|
20458
|
-
|
|
20576
|
+
class ThenVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20577
|
+
constructor(options = {}) {
|
|
20578
|
+
super(options);
|
|
20459
20579
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
20460
20580
|
this.element.classes.push('scenario-then');
|
|
20461
|
-
},
|
|
20462
|
-
methods: {
|
|
20463
|
-
ArrayElement(arrayElement) {
|
|
20464
|
-
arrayElement.forEach(item => {
|
|
20465
|
-
const specPath = ['document', 'objects', 'Requirement'];
|
|
20466
|
-
const element = this.toRefractedElement(specPath, item);
|
|
20467
|
-
this.element.push(element);
|
|
20468
|
-
});
|
|
20469
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
20470
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
20471
|
-
}
|
|
20472
20581
|
}
|
|
20473
|
-
|
|
20582
|
+
ArrayElement(arrayElement) {
|
|
20583
|
+
arrayElement.forEach(item => {
|
|
20584
|
+
const specPath = ['document', 'objects', 'Requirement'];
|
|
20585
|
+
const element = this.toRefractedElement(specPath, item);
|
|
20586
|
+
this.element.push(element);
|
|
20587
|
+
});
|
|
20588
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
20589
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
20590
|
+
}
|
|
20591
|
+
}
|
|
20474
20592
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ThenVisitor);
|
|
20475
20593
|
|
|
20476
20594
|
/***/ }),
|
|
@@ -20483,8 +20601,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20483
20601
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20484
20602
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20485
20603
|
/* harmony export */ });
|
|
20486
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
|
|
20487
20604
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
|
|
20605
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20488
20606
|
/* harmony import */ var _elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60075);
|
|
20489
20607
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
20490
20608
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94627);
|
|
@@ -20493,14 +20611,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20493
20611
|
|
|
20494
20612
|
|
|
20495
20613
|
|
|
20496
|
-
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
20500
|
-
init() {
|
|
20614
|
+
class ScenarioVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20615
|
+
constructor(options = {}) {
|
|
20616
|
+
super(options);
|
|
20617
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Scenario']);
|
|
20501
20618
|
this.element = new _elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
20502
20619
|
}
|
|
20503
|
-
}
|
|
20620
|
+
}
|
|
20504
20621
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScenarioVisitor);
|
|
20505
20622
|
|
|
20506
20623
|
/***/ }),
|
|
@@ -20513,7 +20630,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20513
20630
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20514
20631
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20515
20632
|
/* harmony export */ });
|
|
20516
|
-
/* harmony import */ var
|
|
20633
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20517
20634
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51394);
|
|
20518
20635
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
20519
20636
|
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49894);
|
|
@@ -20523,22 +20640,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20523
20640
|
|
|
20524
20641
|
|
|
20525
20642
|
|
|
20526
|
-
|
|
20527
|
-
|
|
20643
|
+
class StandardIdentifierVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20644
|
+
constructor(options = {}) {
|
|
20645
|
+
super(options);
|
|
20528
20646
|
this.element = new _elements_StandardIdentifier_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]();
|
|
20529
|
-
},
|
|
20530
|
-
methods: {
|
|
20531
|
-
ArrayElement(arrayElement) {
|
|
20532
|
-
arrayElement.forEach(item => {
|
|
20533
|
-
const specPath = ['document', 'objects', 'StandardIdentifier'];
|
|
20534
|
-
const element = this.toRefractedElement(specPath, item);
|
|
20535
|
-
this.element.push(element);
|
|
20536
|
-
});
|
|
20537
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
20538
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
20539
|
-
}
|
|
20540
20647
|
}
|
|
20541
|
-
|
|
20648
|
+
ArrayElement(arrayElement) {
|
|
20649
|
+
arrayElement.forEach(item => {
|
|
20650
|
+
const specPath = ['document', 'objects', 'StandardIdentifier'];
|
|
20651
|
+
const element = this.toRefractedElement(specPath, item);
|
|
20652
|
+
this.element.push(element);
|
|
20653
|
+
});
|
|
20654
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
20655
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
20656
|
+
}
|
|
20657
|
+
}
|
|
20542
20658
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardIdentifierVisitor);
|
|
20543
20659
|
|
|
20544
20660
|
/***/ }),
|
|
@@ -20596,8 +20712,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20596
20712
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20597
20713
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20598
20714
|
/* harmony export */ });
|
|
20599
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
|
|
20600
20715
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
|
|
20716
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
|
|
20601
20717
|
/* harmony import */ var _elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10734);
|
|
20602
20718
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
20603
20719
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94627);
|
|
@@ -20606,14 +20722,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20606
20722
|
|
|
20607
20723
|
|
|
20608
20724
|
|
|
20609
|
-
|
|
20610
|
-
|
|
20611
|
-
|
|
20612
|
-
|
|
20613
|
-
init() {
|
|
20725
|
+
class StandardVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
20726
|
+
constructor(options = {}) {
|
|
20727
|
+
super(options);
|
|
20728
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Standard']);
|
|
20614
20729
|
this.element = new _elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
20615
20730
|
}
|
|
20616
|
-
}
|
|
20731
|
+
}
|
|
20617
20732
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardVisitor);
|
|
20618
20733
|
|
|
20619
20734
|
/***/ }),
|
|
@@ -20626,52 +20741,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20626
20741
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20627
20742
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20628
20743
|
/* harmony export */ });
|
|
20629
|
-
/* harmony import */ var
|
|
20630
|
-
/* harmony import */ var
|
|
20631
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
20632
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
20633
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
20634
|
-
/* harmony import */ var
|
|
20635
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(51394);
|
|
20636
|
-
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49894);
|
|
20637
|
-
|
|
20744
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36903);
|
|
20745
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83130);
|
|
20746
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67952);
|
|
20747
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82434);
|
|
20748
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(51394);
|
|
20749
|
+
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49894);
|
|
20638
20750
|
|
|
20639
20751
|
|
|
20752
|
+
class FixedFieldsVisitor extends _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
20753
|
+
ignoredFields = [];
|
|
20754
|
+
ObjectElement(objectElement) {
|
|
20755
|
+
const specPath = this.specPath(objectElement);
|
|
20756
|
+
const fields = this.retrieveFixedFields(specPath);
|
|
20640
20757
|
|
|
20641
|
-
const FixedFieldsVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
20642
|
-
props: {
|
|
20643
|
-
specPath: ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
20644
|
-
ignoredFields: []
|
|
20645
|
-
},
|
|
20646
|
-
init({
|
|
20647
|
-
// @ts-ignore
|
|
20648
|
-
specPath = this.specPath,
|
|
20649
20758
|
// @ts-ignore
|
|
20650
|
-
|
|
20651
|
-
|
|
20652
|
-
|
|
20653
|
-
|
|
20654
|
-
|
|
20655
|
-
|
|
20656
|
-
|
|
20657
|
-
|
|
20658
|
-
|
|
20659
|
-
|
|
20660
|
-
|
|
20661
|
-
|
|
20662
|
-
|
|
20663
|
-
newMemberElement.classes.push('fixed-field');
|
|
20664
|
-
this.copyMetaAndAttributes(memberElement, newMemberElement);
|
|
20665
|
-
this.element.content.push(newMemberElement);
|
|
20666
|
-
} else if (!this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(key))) {
|
|
20667
|
-
this.element.content.push((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(memberElement));
|
|
20668
|
-
}
|
|
20669
|
-
});
|
|
20670
|
-
this.copyMetaAndAttributes(objectElement, this.element);
|
|
20671
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.BREAK;
|
|
20672
|
-
}
|
|
20759
|
+
objectElement.forEach((value, key, memberElement) => {
|
|
20760
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(key) && fields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key)) && !this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key))) {
|
|
20761
|
+
const fixedFieldElement = this.toRefractedElement([...specPath, 'fixedFields', (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key)], value);
|
|
20762
|
+
const newMemberElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.MemberElement((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.cloneDeep)(key), fixedFieldElement);
|
|
20763
|
+
newMemberElement.classes.push('fixed-field');
|
|
20764
|
+
this.copyMetaAndAttributes(memberElement, newMemberElement);
|
|
20765
|
+
this.element.content.push(newMemberElement);
|
|
20766
|
+
} else if (!this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key))) {
|
|
20767
|
+
this.element.content.push((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.cloneDeep)(memberElement));
|
|
20768
|
+
}
|
|
20769
|
+
});
|
|
20770
|
+
this.copyMetaAndAttributes(objectElement, this.element);
|
|
20771
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
|
|
20673
20772
|
}
|
|
20674
|
-
}
|
|
20773
|
+
}
|
|
20675
20774
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FixedFieldsVisitor);
|
|
20676
20775
|
|
|
20677
20776
|
/***/ }),
|
|
@@ -21086,7 +21185,7 @@ const analyze = (cst, {
|
|
|
21086
21185
|
const [rootNode] = Array.from(iterator);
|
|
21087
21186
|
const cstVisitor = new _visitors_CstVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]();
|
|
21088
21187
|
const astVisitor = new _visitors_YamlAstVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]();
|
|
21089
|
-
const schema =
|
|
21188
|
+
const schema = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]();
|
|
21090
21189
|
const yamlAst = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__.visit)(rootNode, cstVisitor, {
|
|
21091
21190
|
// @ts-ignore
|
|
21092
21191
|
keyMap: _visitors_CstVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__.keyMap,
|
|
@@ -21159,17 +21258,17 @@ class CstVisitor {
|
|
|
21159
21258
|
return node => node != null && typeof node === 'object' && 'type' in node && typeof node.type === 'string' && node.type.endsWith(ending);
|
|
21160
21259
|
}
|
|
21161
21260
|
static toPosition(node) {
|
|
21162
|
-
const start =
|
|
21261
|
+
const start = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
21163
21262
|
row: node.startPosition.row,
|
|
21164
21263
|
column: node.startPosition.column,
|
|
21165
21264
|
char: node.startIndex
|
|
21166
21265
|
});
|
|
21167
|
-
const end =
|
|
21266
|
+
const end = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
21168
21267
|
row: node.endPosition.row,
|
|
21169
21268
|
column: node.endPosition.column,
|
|
21170
21269
|
char: node.endIndex
|
|
21171
21270
|
});
|
|
21172
|
-
return
|
|
21271
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
21173
21272
|
start,
|
|
21174
21273
|
end
|
|
21175
21274
|
});
|
|
@@ -21194,8 +21293,8 @@ class CstVisitor {
|
|
|
21194
21293
|
} = node;
|
|
21195
21294
|
const explicitName = (tagNode === null || tagNode === void 0 ? void 0 : tagNode.text) || (node.type === 'plain_scalar' ? '?' : '!');
|
|
21196
21295
|
const kind = node.type.endsWith('mapping') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Mapping : node.type.endsWith('sequence') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Sequence : _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar;
|
|
21197
|
-
const position = tagNode ? CstVisitor.toPosition(tagNode) :
|
|
21198
|
-
return
|
|
21296
|
+
const position = tagNode ? CstVisitor.toPosition(tagNode) : undefined;
|
|
21297
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
21199
21298
|
explicitName,
|
|
21200
21299
|
kind,
|
|
21201
21300
|
position
|
|
@@ -21205,14 +21304,14 @@ class CstVisitor {
|
|
|
21205
21304
|
const {
|
|
21206
21305
|
anchor: anchorNode
|
|
21207
21306
|
} = node;
|
|
21208
|
-
if (typeof anchorNode === 'undefined') return
|
|
21209
|
-
return
|
|
21307
|
+
if (typeof anchorNode === 'undefined') return undefined;
|
|
21308
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
21210
21309
|
name: anchorNode.text,
|
|
21211
21310
|
position: CstVisitor.toPosition(anchorNode)
|
|
21212
21311
|
});
|
|
21213
21312
|
}
|
|
21214
21313
|
static createKeyValuePairEmptyKey(node) {
|
|
21215
|
-
const emptyPoint =
|
|
21314
|
+
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
21216
21315
|
row: node.startPosition.row,
|
|
21217
21316
|
column: node.startPosition.column,
|
|
21218
21317
|
char: node.startIndex
|
|
@@ -21223,21 +21322,21 @@ class CstVisitor {
|
|
|
21223
21322
|
const children = (keyNode === null || keyNode === void 0 ? void 0 : keyNode.children) || [];
|
|
21224
21323
|
const tagNode = children.find(CstVisitor.isKind('tag'));
|
|
21225
21324
|
const anchorNode = children.find(CstVisitor.isKind('anchor'));
|
|
21226
|
-
const tag = typeof tagNode !== 'undefined' ?
|
|
21325
|
+
const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
21227
21326
|
explicitName: tagNode.text,
|
|
21228
21327
|
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar,
|
|
21229
21328
|
position: CstVisitor.toPosition(tagNode)
|
|
21230
|
-
}) :
|
|
21329
|
+
}) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
21231
21330
|
explicitName: '?',
|
|
21232
21331
|
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar
|
|
21233
21332
|
});
|
|
21234
|
-
const anchor = typeof anchorNode !== 'undefined' ?
|
|
21333
|
+
const anchor = typeof anchorNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
21235
21334
|
name: anchorNode.text,
|
|
21236
21335
|
position: CstVisitor.toPosition(anchorNode)
|
|
21237
|
-
}) :
|
|
21238
|
-
return
|
|
21336
|
+
}) : undefined;
|
|
21337
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
21239
21338
|
content: '',
|
|
21240
|
-
position:
|
|
21339
|
+
position: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
21241
21340
|
start: emptyPoint,
|
|
21242
21341
|
end: emptyPoint
|
|
21243
21342
|
}),
|
|
@@ -21248,7 +21347,7 @@ class CstVisitor {
|
|
|
21248
21347
|
});
|
|
21249
21348
|
}
|
|
21250
21349
|
static createKeyValuePairEmptyValue(node) {
|
|
21251
|
-
const emptyPoint =
|
|
21350
|
+
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
21252
21351
|
row: node.endPosition.row,
|
|
21253
21352
|
column: node.endPosition.column,
|
|
21254
21353
|
char: node.endIndex
|
|
@@ -21259,21 +21358,21 @@ class CstVisitor {
|
|
|
21259
21358
|
const children = (valueNode === null || valueNode === void 0 ? void 0 : valueNode.children) || [];
|
|
21260
21359
|
const tagNode = children.find(CstVisitor.isKind('tag'));
|
|
21261
21360
|
const anchorNode = children.find(CstVisitor.isKind('anchor'));
|
|
21262
|
-
const tag = typeof tagNode !== 'undefined' ?
|
|
21361
|
+
const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
21263
21362
|
explicitName: tagNode.text,
|
|
21264
21363
|
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar,
|
|
21265
21364
|
position: CstVisitor.toPosition(tagNode)
|
|
21266
|
-
}) :
|
|
21365
|
+
}) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
21267
21366
|
explicitName: '?',
|
|
21268
21367
|
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar
|
|
21269
21368
|
});
|
|
21270
|
-
const anchor = typeof anchorNode !== 'undefined' ?
|
|
21369
|
+
const anchor = typeof anchorNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
21271
21370
|
name: anchorNode.text,
|
|
21272
21371
|
position: CstVisitor.toPosition(anchorNode)
|
|
21273
|
-
}) :
|
|
21274
|
-
return
|
|
21372
|
+
}) : undefined;
|
|
21373
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
21275
21374
|
content: '',
|
|
21276
|
-
position:
|
|
21375
|
+
position: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
21277
21376
|
start: emptyPoint,
|
|
21278
21377
|
end: emptyPoint
|
|
21279
21378
|
}),
|
|
@@ -21289,14 +21388,14 @@ class CstVisitor {
|
|
|
21289
21388
|
stream = {
|
|
21290
21389
|
enter: node => {
|
|
21291
21390
|
const position = CstVisitor.toPosition(node);
|
|
21292
|
-
return
|
|
21391
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
|
|
21293
21392
|
children: node.children,
|
|
21294
21393
|
position,
|
|
21295
21394
|
isMissing: node.isMissing
|
|
21296
21395
|
});
|
|
21297
21396
|
},
|
|
21298
21397
|
leave: stream => {
|
|
21299
|
-
return
|
|
21398
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
21300
21399
|
children: [stream]
|
|
21301
21400
|
});
|
|
21302
21401
|
}
|
|
@@ -21305,8 +21404,8 @@ class CstVisitor {
|
|
|
21305
21404
|
enter: node => {
|
|
21306
21405
|
var _node$firstNamedChild;
|
|
21307
21406
|
const position = CstVisitor.toPosition(node);
|
|
21308
|
-
const version =
|
|
21309
|
-
return
|
|
21407
|
+
const version = node === null || node === void 0 || (_node$firstNamedChild = node.firstNamedChild) === null || _node$firstNamedChild === void 0 ? void 0 : _node$firstNamedChild.text;
|
|
21408
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
21310
21409
|
position,
|
|
21311
21410
|
name: '%YAML',
|
|
21312
21411
|
parameters: {
|
|
@@ -21320,12 +21419,12 @@ class CstVisitor {
|
|
|
21320
21419
|
const position = CstVisitor.toPosition(node);
|
|
21321
21420
|
const tagHandleNode = node.children[0];
|
|
21322
21421
|
const tagPrefixNode = node.children[1];
|
|
21323
|
-
const tagDirective =
|
|
21422
|
+
const tagDirective = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
21324
21423
|
position,
|
|
21325
21424
|
name: '%TAG',
|
|
21326
21425
|
parameters: {
|
|
21327
|
-
handle:
|
|
21328
|
-
prefix:
|
|
21426
|
+
handle: tagHandleNode === null || tagHandleNode === void 0 ? void 0 : tagHandleNode.text,
|
|
21427
|
+
prefix: tagPrefixNode === null || tagPrefixNode === void 0 ? void 0 : tagPrefixNode.text
|
|
21329
21428
|
}
|
|
21330
21429
|
});
|
|
21331
21430
|
this.schema.registerTagDirective(tagDirective);
|
|
@@ -21338,12 +21437,12 @@ class CstVisitor {
|
|
|
21338
21437
|
const directiveNameNode = node.children[0];
|
|
21339
21438
|
const directiveParameter1Node = node.children[1];
|
|
21340
21439
|
const directiveParameter2Node = node.children[2];
|
|
21341
|
-
return
|
|
21440
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
21342
21441
|
position,
|
|
21343
|
-
name:
|
|
21442
|
+
name: directiveNameNode === null || directiveNameNode === void 0 ? void 0 : directiveNameNode.text,
|
|
21344
21443
|
parameters: {
|
|
21345
|
-
handle:
|
|
21346
|
-
prefix:
|
|
21444
|
+
handle: directiveParameter1Node === null || directiveParameter1Node === void 0 ? void 0 : directiveParameter1Node.text,
|
|
21445
|
+
prefix: directiveParameter2Node === null || directiveParameter2Node === void 0 ? void 0 : directiveParameter2Node.text
|
|
21347
21446
|
}
|
|
21348
21447
|
});
|
|
21349
21448
|
}
|
|
@@ -21351,7 +21450,7 @@ class CstVisitor {
|
|
|
21351
21450
|
document = {
|
|
21352
21451
|
enter: node => {
|
|
21353
21452
|
const position = CstVisitor.toPosition(node);
|
|
21354
|
-
return
|
|
21453
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__["default"]({
|
|
21355
21454
|
children: node.children,
|
|
21356
21455
|
position,
|
|
21357
21456
|
isMissing: node.isMissing
|
|
@@ -21376,16 +21475,16 @@ class CstVisitor {
|
|
|
21376
21475
|
}
|
|
21377
21476
|
|
|
21378
21477
|
// kind node not present in flow node, creating empty node
|
|
21379
|
-
const emptyPoint =
|
|
21478
|
+
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
21380
21479
|
row: kindCandidate.endPosition.row,
|
|
21381
21480
|
column: kindCandidate.endPosition.column,
|
|
21382
21481
|
char: kindCandidate.endIndex
|
|
21383
21482
|
});
|
|
21384
|
-
const emptyScalarNode =
|
|
21483
|
+
const emptyScalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
21385
21484
|
content: '',
|
|
21386
21485
|
anchor: CstVisitor.kindNodeToYamlAnchor(kindCandidate),
|
|
21387
21486
|
tag: CstVisitor.kindNodeToYamlTag(kindCandidate),
|
|
21388
|
-
position:
|
|
21487
|
+
position: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
21389
21488
|
start: emptyPoint,
|
|
21390
21489
|
end: emptyPoint
|
|
21391
21490
|
}),
|
|
@@ -21410,7 +21509,7 @@ class CstVisitor {
|
|
|
21410
21509
|
const position = CstVisitor.toPosition(node);
|
|
21411
21510
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
21412
21511
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
21413
|
-
const mappingNode =
|
|
21512
|
+
const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
|
|
21414
21513
|
children: node.children,
|
|
21415
21514
|
position,
|
|
21416
21515
|
anchor,
|
|
@@ -21434,7 +21533,7 @@ class CstVisitor {
|
|
|
21434
21533
|
const valueNode = CstVisitor.createKeyValuePairEmptyValue(node);
|
|
21435
21534
|
children.push(valueNode);
|
|
21436
21535
|
}
|
|
21437
|
-
return
|
|
21536
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
|
|
21438
21537
|
children,
|
|
21439
21538
|
position,
|
|
21440
21539
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Block,
|
|
@@ -21447,7 +21546,7 @@ class CstVisitor {
|
|
|
21447
21546
|
const position = CstVisitor.toPosition(node);
|
|
21448
21547
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
21449
21548
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
21450
|
-
const mappingNode =
|
|
21549
|
+
const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
|
|
21451
21550
|
children: node.children,
|
|
21452
21551
|
position,
|
|
21453
21552
|
anchor,
|
|
@@ -21471,7 +21570,7 @@ class CstVisitor {
|
|
|
21471
21570
|
const valueNode = CstVisitor.createKeyValuePairEmptyValue(node);
|
|
21472
21571
|
children.push(valueNode);
|
|
21473
21572
|
}
|
|
21474
|
-
return
|
|
21573
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
|
|
21475
21574
|
children,
|
|
21476
21575
|
position,
|
|
21477
21576
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Flow,
|
|
@@ -21489,7 +21588,7 @@ class CstVisitor {
|
|
|
21489
21588
|
const position = CstVisitor.toPosition(node);
|
|
21490
21589
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
21491
21590
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
21492
|
-
const sequenceNode =
|
|
21591
|
+
const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
|
|
21493
21592
|
children: node.children,
|
|
21494
21593
|
position,
|
|
21495
21594
|
anchor,
|
|
@@ -21508,19 +21607,18 @@ class CstVisitor {
|
|
|
21508
21607
|
}
|
|
21509
21608
|
|
|
21510
21609
|
// create empty node
|
|
21511
|
-
const emptyPoint =
|
|
21610
|
+
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
21512
21611
|
row: node.endPosition.row,
|
|
21513
21612
|
column: node.endPosition.column,
|
|
21514
21613
|
char: node.endIndex
|
|
21515
21614
|
});
|
|
21516
|
-
const emptyScalarNode =
|
|
21615
|
+
const emptyScalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
21517
21616
|
content: '',
|
|
21518
|
-
|
|
21519
|
-
tag: (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"])({
|
|
21617
|
+
tag: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
21520
21618
|
explicitName: '?',
|
|
21521
21619
|
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar
|
|
21522
21620
|
}),
|
|
21523
|
-
position:
|
|
21621
|
+
position: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
21524
21622
|
start: emptyPoint,
|
|
21525
21623
|
end: emptyPoint
|
|
21526
21624
|
}),
|
|
@@ -21535,7 +21633,7 @@ class CstVisitor {
|
|
|
21535
21633
|
const position = CstVisitor.toPosition(node);
|
|
21536
21634
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
21537
21635
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
21538
|
-
const sequenceNode =
|
|
21636
|
+
const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
|
|
21539
21637
|
children: node.children.flat(),
|
|
21540
21638
|
position,
|
|
21541
21639
|
anchor,
|
|
@@ -21556,7 +21654,7 @@ class CstVisitor {
|
|
|
21556
21654
|
const position = CstVisitor.toPosition(node);
|
|
21557
21655
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
21558
21656
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
21559
|
-
const scalarNode =
|
|
21657
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
21560
21658
|
content: node.text,
|
|
21561
21659
|
anchor,
|
|
21562
21660
|
tag,
|
|
@@ -21572,7 +21670,7 @@ class CstVisitor {
|
|
|
21572
21670
|
const position = CstVisitor.toPosition(node);
|
|
21573
21671
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
21574
21672
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
21575
|
-
const scalarNode =
|
|
21673
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
21576
21674
|
content: node.text,
|
|
21577
21675
|
anchor,
|
|
21578
21676
|
tag,
|
|
@@ -21588,7 +21686,7 @@ class CstVisitor {
|
|
|
21588
21686
|
const position = CstVisitor.toPosition(node);
|
|
21589
21687
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
21590
21688
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
21591
|
-
const scalarNode =
|
|
21689
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
21592
21690
|
content: node.text,
|
|
21593
21691
|
anchor,
|
|
21594
21692
|
tag,
|
|
@@ -21604,8 +21702,8 @@ class CstVisitor {
|
|
|
21604
21702
|
const position = CstVisitor.toPosition(node);
|
|
21605
21703
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
21606
21704
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
21607
|
-
const style = node.text.startsWith('|') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Literal : node.text.startsWith('>') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Folded :
|
|
21608
|
-
const scalarNode =
|
|
21705
|
+
const style = node.text.startsWith('|') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Literal : node.text.startsWith('>') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Folded : _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Plain;
|
|
21706
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
21609
21707
|
content: node.text,
|
|
21610
21708
|
anchor,
|
|
21611
21709
|
tag,
|
|
@@ -21618,7 +21716,7 @@ class CstVisitor {
|
|
|
21618
21716
|
};
|
|
21619
21717
|
comment = {
|
|
21620
21718
|
enter: node => {
|
|
21621
|
-
return
|
|
21719
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__["default"]({
|
|
21622
21720
|
content: node.text
|
|
21623
21721
|
});
|
|
21624
21722
|
}
|
|
@@ -21638,7 +21736,7 @@ class CstVisitor {
|
|
|
21638
21736
|
const {
|
|
21639
21737
|
isMissing
|
|
21640
21738
|
} = node;
|
|
21641
|
-
return
|
|
21739
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__["default"]({
|
|
21642
21740
|
value,
|
|
21643
21741
|
position,
|
|
21644
21742
|
isMissing
|
|
@@ -21650,7 +21748,7 @@ class CstVisitor {
|
|
|
21650
21748
|
// eslint-disable-next-line class-methods-use-this
|
|
21651
21749
|
ERROR(node, key, parent, path) {
|
|
21652
21750
|
const position = CstVisitor.toPosition(node);
|
|
21653
|
-
const errorNode =
|
|
21751
|
+
const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_16__["default"]({
|
|
21654
21752
|
children: node.children,
|
|
21655
21753
|
position,
|
|
21656
21754
|
isUnexpected: !node.hasError,
|
|
@@ -21658,7 +21756,7 @@ class CstVisitor {
|
|
|
21658
21756
|
value: node.text
|
|
21659
21757
|
});
|
|
21660
21758
|
if (path.length === 0) {
|
|
21661
|
-
return
|
|
21759
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
21662
21760
|
children: [errorNode]
|
|
21663
21761
|
});
|
|
21664
21762
|
}
|