@speclynx/apidom-parser 1.12.1
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.
- package/CHANGELOG.md +82 -0
- package/LICENSE +202 -0
- package/LICENSES/AFL-3.0.txt +182 -0
- package/LICENSES/Apache-2.0.txt +202 -0
- package/LICENSES/BSD-3-Clause.txt +26 -0
- package/LICENSES/MIT.txt +9 -0
- package/NOTICE +65 -0
- package/README.md +139 -0
- package/dist/apidom-parser.browser.js +2983 -0
- package/dist/apidom-parser.browser.min.js +1 -0
- package/package.json +59 -0
- package/src/errors/ParserError.cjs +24 -0
- package/src/errors/ParserError.mjs +21 -0
- package/src/parser.cjs +101 -0
- package/src/parser.mjs +97 -0
- package/types/apidom-parser.d.ts +68 -0
|
@@ -0,0 +1,2983 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["apidomParser"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["apidomParser"] = factory();
|
|
10
|
+
})(self, () => {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 131:
|
|
16
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
17
|
+
|
|
18
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20
|
+
/* harmony export */ "default": () => (/* binding */ _isObject)
|
|
21
|
+
/* harmony export */ });
|
|
22
|
+
function _isObject(x) {
|
|
23
|
+
return Object.prototype.toString.call(x) === '[object Object]';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/***/ }),
|
|
27
|
+
|
|
28
|
+
/***/ 141:
|
|
29
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
30
|
+
|
|
31
|
+
__webpack_require__.r(__webpack_exports__);
|
|
32
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
33
|
+
/* harmony export */ "default": () => (/* binding */ _isString)
|
|
34
|
+
/* harmony export */ });
|
|
35
|
+
function _isString(x) {
|
|
36
|
+
return Object.prototype.toString.call(x) === '[object String]';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/***/ }),
|
|
40
|
+
|
|
41
|
+
/***/ 397:
|
|
42
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
43
|
+
|
|
44
|
+
__webpack_require__.r(__webpack_exports__);
|
|
45
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
47
|
+
/* harmony export */ });
|
|
48
|
+
/* harmony import */ var _internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4121);
|
|
49
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5959);
|
|
50
|
+
/* harmony import */ var _internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6738);
|
|
51
|
+
/* harmony import */ var _internal_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6584);
|
|
52
|
+
/* harmony import */ var _internal_xmap_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6390);
|
|
53
|
+
/* harmony import */ var _curryN_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9784);
|
|
54
|
+
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7783);
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Takes a function and
|
|
65
|
+
* a [functor](https://github.com/fantasyland/fantasy-land#functor),
|
|
66
|
+
* applies the function to each of the functor's values, and returns
|
|
67
|
+
* a functor of the same shape.
|
|
68
|
+
*
|
|
69
|
+
* Ramda provides suitable `map` implementations for `Array` and `Object`,
|
|
70
|
+
* so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
|
|
71
|
+
*
|
|
72
|
+
* Dispatches to the `map` method of the second argument, if present.
|
|
73
|
+
*
|
|
74
|
+
* Acts as a transducer if a transformer is given in list position.
|
|
75
|
+
*
|
|
76
|
+
* Also treats functions as functors and will compose them together.
|
|
77
|
+
*
|
|
78
|
+
* @func
|
|
79
|
+
* @memberOf R
|
|
80
|
+
* @since v0.1.0
|
|
81
|
+
* @category List
|
|
82
|
+
* @sig Functor f => (a -> b) -> f a -> f b
|
|
83
|
+
* @param {Function} fn The function to be called on every element of the input `list`.
|
|
84
|
+
* @param {Array} list The list to be iterated over.
|
|
85
|
+
* @return {Array} The new list.
|
|
86
|
+
* @see R.transduce, R.addIndex, R.pluck, R.project
|
|
87
|
+
* @example
|
|
88
|
+
*
|
|
89
|
+
* const double = x => x * 2;
|
|
90
|
+
*
|
|
91
|
+
* R.map(double, [1, 2, 3]); //=> [2, 4, 6]
|
|
92
|
+
*
|
|
93
|
+
* R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
|
|
94
|
+
* @symb R.map(f, [a, b]) = [f(a), f(b)]
|
|
95
|
+
* @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
|
|
96
|
+
* @symb R.map(f, functor_o) = functor_o.map(f)
|
|
97
|
+
*/
|
|
98
|
+
var map = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/(0,_internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_2__["default"])(['fantasy-land/map', 'map'], _internal_xmap_js__WEBPACK_IMPORTED_MODULE_4__["default"], function map(fn, functor) {
|
|
99
|
+
switch (Object.prototype.toString.call(functor)) {
|
|
100
|
+
case '[object Function]':
|
|
101
|
+
return (0,_curryN_js__WEBPACK_IMPORTED_MODULE_5__["default"])(functor.length, function () {
|
|
102
|
+
return fn.call(this, functor.apply(this, arguments));
|
|
103
|
+
});
|
|
104
|
+
case '[object Object]':
|
|
105
|
+
return (0,_internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (acc, key) {
|
|
106
|
+
acc[key] = fn(functor[key]);
|
|
107
|
+
return acc;
|
|
108
|
+
}, {}, (0,_keys_js__WEBPACK_IMPORTED_MODULE_6__["default"])(functor));
|
|
109
|
+
default:
|
|
110
|
+
return (0,_internal_map_js__WEBPACK_IMPORTED_MODULE_3__["default"])(fn, functor);
|
|
111
|
+
}
|
|
112
|
+
}));
|
|
113
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (map);
|
|
114
|
+
|
|
115
|
+
/***/ }),
|
|
116
|
+
|
|
117
|
+
/***/ 415:
|
|
118
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
119
|
+
|
|
120
|
+
__webpack_require__.r(__webpack_exports__);
|
|
121
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
122
|
+
/* harmony export */ "default": () => (/* binding */ _functionName)
|
|
123
|
+
/* harmony export */ });
|
|
124
|
+
function _functionName(f) {
|
|
125
|
+
// String(x => x) evaluates to "x => x", so the pattern may not match.
|
|
126
|
+
var match = String(f).match(/^function (\w*)/);
|
|
127
|
+
return match == null ? '' : match[1];
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/***/ }),
|
|
131
|
+
|
|
132
|
+
/***/ 497:
|
|
133
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
134
|
+
|
|
135
|
+
__webpack_require__.r(__webpack_exports__);
|
|
136
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
137
|
+
/* harmony export */ "default": () => (/* binding */ _equals)
|
|
138
|
+
/* harmony export */ });
|
|
139
|
+
/* harmony import */ var _arrayFromIterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1941);
|
|
140
|
+
/* harmony import */ var _includesWith_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4333);
|
|
141
|
+
/* harmony import */ var _functionName_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(415);
|
|
142
|
+
/* harmony import */ var _has_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5722);
|
|
143
|
+
/* harmony import */ var _objectIs_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1111);
|
|
144
|
+
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7783);
|
|
145
|
+
/* harmony import */ var _type_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(963);
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* private _uniqContentEquals function.
|
|
156
|
+
* That function is checking equality of 2 iterator contents with 2 assumptions
|
|
157
|
+
* - iterators lengths are the same
|
|
158
|
+
* - iterators values are unique
|
|
159
|
+
*
|
|
160
|
+
* false-positive result will be returned for comparison of, e.g.
|
|
161
|
+
* - [1,2,3] and [1,2,3,4]
|
|
162
|
+
* - [1,1,1] and [1,2,3]
|
|
163
|
+
* */
|
|
164
|
+
|
|
165
|
+
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
|
|
166
|
+
var a = (0,_arrayFromIterator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(aIterator);
|
|
167
|
+
var b = (0,_arrayFromIterator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(bIterator);
|
|
168
|
+
function eq(_a, _b) {
|
|
169
|
+
return _equals(_a, _b, stackA.slice(), stackB.slice());
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// if *a* array contains any element that is not included in *b*
|
|
173
|
+
return !(0,_includesWith_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (b, aItem) {
|
|
174
|
+
return !(0,_includesWith_js__WEBPACK_IMPORTED_MODULE_1__["default"])(eq, aItem, b);
|
|
175
|
+
}, b, a);
|
|
176
|
+
}
|
|
177
|
+
function _equals(a, b, stackA, stackB) {
|
|
178
|
+
if ((0,_objectIs_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a, b)) {
|
|
179
|
+
return true;
|
|
180
|
+
}
|
|
181
|
+
var typeA = (0,_type_js__WEBPACK_IMPORTED_MODULE_6__["default"])(a);
|
|
182
|
+
if (typeA !== (0,_type_js__WEBPACK_IMPORTED_MODULE_6__["default"])(b)) {
|
|
183
|
+
return false;
|
|
184
|
+
}
|
|
185
|
+
if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {
|
|
186
|
+
return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);
|
|
187
|
+
}
|
|
188
|
+
if (typeof a.equals === 'function' || typeof b.equals === 'function') {
|
|
189
|
+
return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);
|
|
190
|
+
}
|
|
191
|
+
switch (typeA) {
|
|
192
|
+
case 'Arguments':
|
|
193
|
+
case 'Array':
|
|
194
|
+
case 'Object':
|
|
195
|
+
if (typeof a.constructor === 'function' && (0,_functionName_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a.constructor) === 'Promise') {
|
|
196
|
+
return a === b;
|
|
197
|
+
}
|
|
198
|
+
break;
|
|
199
|
+
case 'Boolean':
|
|
200
|
+
case 'Number':
|
|
201
|
+
case 'String':
|
|
202
|
+
if (!(typeof a === typeof b && (0,_objectIs_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a.valueOf(), b.valueOf()))) {
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
205
|
+
break;
|
|
206
|
+
case 'Date':
|
|
207
|
+
if (!(0,_objectIs_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a.valueOf(), b.valueOf())) {
|
|
208
|
+
return false;
|
|
209
|
+
}
|
|
210
|
+
break;
|
|
211
|
+
case 'Error':
|
|
212
|
+
return a.name === b.name && a.message === b.message;
|
|
213
|
+
case 'RegExp':
|
|
214
|
+
if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {
|
|
215
|
+
return false;
|
|
216
|
+
}
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
var idx = stackA.length - 1;
|
|
220
|
+
while (idx >= 0) {
|
|
221
|
+
if (stackA[idx] === a) {
|
|
222
|
+
return stackB[idx] === b;
|
|
223
|
+
}
|
|
224
|
+
idx -= 1;
|
|
225
|
+
}
|
|
226
|
+
switch (typeA) {
|
|
227
|
+
case 'Map':
|
|
228
|
+
if (a.size !== b.size) {
|
|
229
|
+
return false;
|
|
230
|
+
}
|
|
231
|
+
return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));
|
|
232
|
+
case 'Set':
|
|
233
|
+
if (a.size !== b.size) {
|
|
234
|
+
return false;
|
|
235
|
+
}
|
|
236
|
+
return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));
|
|
237
|
+
case 'Arguments':
|
|
238
|
+
case 'Array':
|
|
239
|
+
case 'Object':
|
|
240
|
+
case 'Boolean':
|
|
241
|
+
case 'Number':
|
|
242
|
+
case 'String':
|
|
243
|
+
case 'Date':
|
|
244
|
+
case 'Error':
|
|
245
|
+
case 'RegExp':
|
|
246
|
+
case 'Int8Array':
|
|
247
|
+
case 'Uint8Array':
|
|
248
|
+
case 'Uint8ClampedArray':
|
|
249
|
+
case 'Int16Array':
|
|
250
|
+
case 'Uint16Array':
|
|
251
|
+
case 'Int32Array':
|
|
252
|
+
case 'Uint32Array':
|
|
253
|
+
case 'Float32Array':
|
|
254
|
+
case 'Float64Array':
|
|
255
|
+
case 'ArrayBuffer':
|
|
256
|
+
break;
|
|
257
|
+
default:
|
|
258
|
+
// Values of other types are only equal if identical.
|
|
259
|
+
return false;
|
|
260
|
+
}
|
|
261
|
+
var keysA = (0,_keys_js__WEBPACK_IMPORTED_MODULE_5__["default"])(a);
|
|
262
|
+
if (keysA.length !== (0,_keys_js__WEBPACK_IMPORTED_MODULE_5__["default"])(b).length) {
|
|
263
|
+
return false;
|
|
264
|
+
}
|
|
265
|
+
var extendedStackA = stackA.concat([a]);
|
|
266
|
+
var extendedStackB = stackB.concat([b]);
|
|
267
|
+
idx = keysA.length - 1;
|
|
268
|
+
while (idx >= 0) {
|
|
269
|
+
var key = keysA[idx];
|
|
270
|
+
if (!((0,_has_js__WEBPACK_IMPORTED_MODULE_3__["default"])(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
|
|
271
|
+
return false;
|
|
272
|
+
}
|
|
273
|
+
idx -= 1;
|
|
274
|
+
}
|
|
275
|
+
return true;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/***/ }),
|
|
279
|
+
|
|
280
|
+
/***/ 560:
|
|
281
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
282
|
+
|
|
283
|
+
__webpack_require__.r(__webpack_exports__);
|
|
284
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
285
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
286
|
+
/* harmony export */ });
|
|
287
|
+
/* harmony import */ var _internal_arity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3607);
|
|
288
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5959);
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Creates a function that is bound to a context.
|
|
294
|
+
* Note: `R.bind` does not provide the additional argument-binding capabilities of
|
|
295
|
+
* [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
|
|
296
|
+
*
|
|
297
|
+
* @func
|
|
298
|
+
* @memberOf R
|
|
299
|
+
* @since v0.6.0
|
|
300
|
+
* @category Function
|
|
301
|
+
* @category Object
|
|
302
|
+
* @sig (* -> *) -> {*} -> (* -> *)
|
|
303
|
+
* @param {Function} fn The function to bind to context
|
|
304
|
+
* @param {Object} thisObj The context to bind `fn` to
|
|
305
|
+
* @return {Function} A function that will execute in the context of `thisObj`.
|
|
306
|
+
* @see R.partial
|
|
307
|
+
* @example
|
|
308
|
+
*
|
|
309
|
+
* const log = R.bind(console.log, console);
|
|
310
|
+
* R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
|
|
311
|
+
* // logs {a: 2}
|
|
312
|
+
* @symb R.bind(f, o)(a, b) = f.call(o, a, b)
|
|
313
|
+
*/
|
|
314
|
+
var bind = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function bind(fn, thisObj) {
|
|
315
|
+
return (0,_internal_arity_js__WEBPACK_IMPORTED_MODULE_0__["default"])(fn.length, function () {
|
|
316
|
+
return fn.apply(thisObj, arguments);
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (bind);
|
|
320
|
+
|
|
321
|
+
/***/ }),
|
|
322
|
+
|
|
323
|
+
/***/ 746:
|
|
324
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
325
|
+
|
|
326
|
+
__webpack_require__.r(__webpack_exports__);
|
|
327
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
328
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
329
|
+
/* harmony export */ });
|
|
330
|
+
/* harmony import */ var _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6126);
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
335
|
+
class UnsupportedOperationError extends _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
336
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UnsupportedOperationError);
|
|
337
|
+
|
|
338
|
+
/***/ }),
|
|
339
|
+
|
|
340
|
+
/***/ 963:
|
|
341
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
342
|
+
|
|
343
|
+
__webpack_require__.r(__webpack_exports__);
|
|
344
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
345
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
346
|
+
/* harmony export */ });
|
|
347
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Gives a single-word string description of the (native) type of a value,
|
|
352
|
+
* returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not
|
|
353
|
+
* attempt to distinguish user Object types any further, reporting them all as
|
|
354
|
+
* 'Object'.
|
|
355
|
+
*
|
|
356
|
+
* @func
|
|
357
|
+
* @memberOf R
|
|
358
|
+
* @since v0.8.0
|
|
359
|
+
* @category Type
|
|
360
|
+
* @sig * -> String
|
|
361
|
+
* @param {*} val The value to test
|
|
362
|
+
* @return {String}
|
|
363
|
+
* @example
|
|
364
|
+
*
|
|
365
|
+
* R.type({}); //=> "Object"
|
|
366
|
+
* R.type(new Map); //=> "Map"
|
|
367
|
+
* R.type(new Set); //=> "Set"
|
|
368
|
+
* R.type(1); //=> "Number"
|
|
369
|
+
* R.type(false); //=> "Boolean"
|
|
370
|
+
* R.type('s'); //=> "String"
|
|
371
|
+
* R.type(null); //=> "Null"
|
|
372
|
+
* R.type([]); //=> "Array"
|
|
373
|
+
* R.type(/[A-z]/); //=> "RegExp"
|
|
374
|
+
* R.type(() => {}); //=> "Function"
|
|
375
|
+
* R.type(async () => {}); //=> "AsyncFunction"
|
|
376
|
+
* R.type(undefined); //=> "Undefined"
|
|
377
|
+
* R.type(BigInt(123)); //=> "BigInt"
|
|
378
|
+
*/
|
|
379
|
+
var type = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function type(val) {
|
|
380
|
+
return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
|
|
381
|
+
});
|
|
382
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (type);
|
|
383
|
+
|
|
384
|
+
/***/ }),
|
|
385
|
+
|
|
386
|
+
/***/ 1003:
|
|
387
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
388
|
+
|
|
389
|
+
__webpack_require__.r(__webpack_exports__);
|
|
390
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
391
|
+
/* harmony export */ "default": () => (/* binding */ _isPlaceholder)
|
|
392
|
+
/* harmony export */ });
|
|
393
|
+
function _isPlaceholder(a) {
|
|
394
|
+
return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/***/ }),
|
|
398
|
+
|
|
399
|
+
/***/ 1020:
|
|
400
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
401
|
+
|
|
402
|
+
__webpack_require__.r(__webpack_exports__);
|
|
403
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
404
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
405
|
+
/* harmony export */ });
|
|
406
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
407
|
+
/* harmony import */ var _curryN_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9784);
|
|
408
|
+
/* harmony import */ var _max_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4981);
|
|
409
|
+
/* harmony import */ var _pluck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9590);
|
|
410
|
+
/* harmony import */ var _reduce_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7797);
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Takes a list of predicates and returns a predicate that returns true for a
|
|
419
|
+
* given list of arguments if at least one of the provided predicates is
|
|
420
|
+
* satisfied by those arguments.
|
|
421
|
+
*
|
|
422
|
+
* The function returned is a curried function whose arity matches that of the
|
|
423
|
+
* highest-arity predicate.
|
|
424
|
+
*
|
|
425
|
+
* @func
|
|
426
|
+
* @memberOf R
|
|
427
|
+
* @since v0.9.0
|
|
428
|
+
* @category Logic
|
|
429
|
+
* @sig [(*... -> Boolean)] -> (*... -> Boolean)
|
|
430
|
+
* @param {Array} predicates An array of predicates to check
|
|
431
|
+
* @return {Function} The combined predicate
|
|
432
|
+
* @see R.allPass, R.either
|
|
433
|
+
* @example
|
|
434
|
+
*
|
|
435
|
+
* const isClub = R.propEq('♣', 'suit');
|
|
436
|
+
* const isSpade = R.propEq('♠', 'suit');
|
|
437
|
+
* const isBlackCard = R.anyPass([isClub, isSpade]);
|
|
438
|
+
*
|
|
439
|
+
* isBlackCard({rank: '10', suit: '♣'}); //=> true
|
|
440
|
+
* isBlackCard({rank: 'Q', suit: '♠'}); //=> true
|
|
441
|
+
* isBlackCard({rank: 'Q', suit: '♦'}); //=> false
|
|
442
|
+
*/
|
|
443
|
+
var anyPass = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function anyPass(preds) {
|
|
444
|
+
return (0,_curryN_js__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_reduce_js__WEBPACK_IMPORTED_MODULE_4__["default"])(_max_js__WEBPACK_IMPORTED_MODULE_2__["default"], 0, (0,_pluck_js__WEBPACK_IMPORTED_MODULE_3__["default"])('length', preds)), function () {
|
|
445
|
+
var idx = 0;
|
|
446
|
+
var len = preds.length;
|
|
447
|
+
while (idx < len) {
|
|
448
|
+
if (preds[idx].apply(this, arguments)) {
|
|
449
|
+
return true;
|
|
450
|
+
}
|
|
451
|
+
idx += 1;
|
|
452
|
+
}
|
|
453
|
+
return false;
|
|
454
|
+
});
|
|
455
|
+
});
|
|
456
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (anyPass);
|
|
457
|
+
|
|
458
|
+
/***/ }),
|
|
459
|
+
|
|
460
|
+
/***/ 1111:
|
|
461
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
462
|
+
|
|
463
|
+
__webpack_require__.r(__webpack_exports__);
|
|
464
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
465
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
466
|
+
/* harmony export */ });
|
|
467
|
+
// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
468
|
+
function _objectIs(a, b) {
|
|
469
|
+
// SameValue algorithm
|
|
470
|
+
if (a === b) {
|
|
471
|
+
// Steps 1-5, 7-10
|
|
472
|
+
// Steps 6.b-6.e: +0 != -0
|
|
473
|
+
return a !== 0 || 1 / a === 1 / b;
|
|
474
|
+
} else {
|
|
475
|
+
// Step 6.a: NaN == NaN
|
|
476
|
+
return a !== a && b !== b;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typeof Object.is === 'function' ? Object.is : _objectIs);
|
|
480
|
+
|
|
481
|
+
/***/ }),
|
|
482
|
+
|
|
483
|
+
/***/ 1941:
|
|
484
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
485
|
+
|
|
486
|
+
__webpack_require__.r(__webpack_exports__);
|
|
487
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
488
|
+
/* harmony export */ "default": () => (/* binding */ _arrayFromIterator)
|
|
489
|
+
/* harmony export */ });
|
|
490
|
+
function _arrayFromIterator(iter) {
|
|
491
|
+
var list = [];
|
|
492
|
+
var next;
|
|
493
|
+
while (!(next = iter.next()).done) {
|
|
494
|
+
list.push(next.value);
|
|
495
|
+
}
|
|
496
|
+
return list;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/***/ }),
|
|
500
|
+
|
|
501
|
+
/***/ 1950:
|
|
502
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
503
|
+
|
|
504
|
+
__webpack_require__.r(__webpack_exports__);
|
|
505
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
506
|
+
/* harmony export */ "default": () => (/* binding */ _quote)
|
|
507
|
+
/* harmony export */ });
|
|
508
|
+
function _quote(s) {
|
|
509
|
+
var escaped = s.replace(/\\/g, '\\\\').replace(/[\b]/g, '\\b') // \b matches word boundary; [\b] matches backspace
|
|
510
|
+
.replace(/\f/g, '\\f').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/\v/g, '\\v').replace(/\0/g, '\\0');
|
|
511
|
+
return '"' + escaped.replace(/"/g, '\\"') + '"';
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/***/ }),
|
|
515
|
+
|
|
516
|
+
/***/ 2098:
|
|
517
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
518
|
+
|
|
519
|
+
__webpack_require__.r(__webpack_exports__);
|
|
520
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
521
|
+
/* harmony export */ "default": () => (/* binding */ _filterMap)
|
|
522
|
+
/* harmony export */ });
|
|
523
|
+
function _filterMap(fn, map) {
|
|
524
|
+
var result = new Map();
|
|
525
|
+
var iterator = map.entries();
|
|
526
|
+
var current = iterator.next();
|
|
527
|
+
while (!current.done) {
|
|
528
|
+
if (fn(current.value[1])) {
|
|
529
|
+
result.set(current.value[0], current.value[1]);
|
|
530
|
+
}
|
|
531
|
+
current = iterator.next();
|
|
532
|
+
}
|
|
533
|
+
return result;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/***/ }),
|
|
537
|
+
|
|
538
|
+
/***/ 2243:
|
|
539
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
540
|
+
|
|
541
|
+
__webpack_require__.r(__webpack_exports__);
|
|
542
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
543
|
+
/* harmony export */ "default": () => (/* binding */ _indexOf)
|
|
544
|
+
/* harmony export */ });
|
|
545
|
+
/* harmony import */ var _equals_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3654);
|
|
546
|
+
|
|
547
|
+
function _indexOf(list, a, idx) {
|
|
548
|
+
var inf, item;
|
|
549
|
+
// Array.prototype.indexOf doesn't exist below IE9
|
|
550
|
+
if (typeof list.indexOf === 'function') {
|
|
551
|
+
switch (typeof a) {
|
|
552
|
+
case 'number':
|
|
553
|
+
if (a === 0) {
|
|
554
|
+
// manually crawl the list to distinguish between +0 and -0
|
|
555
|
+
inf = 1 / a;
|
|
556
|
+
while (idx < list.length) {
|
|
557
|
+
item = list[idx];
|
|
558
|
+
if (item === 0 && 1 / item === inf) {
|
|
559
|
+
return idx;
|
|
560
|
+
}
|
|
561
|
+
idx += 1;
|
|
562
|
+
}
|
|
563
|
+
return -1;
|
|
564
|
+
} else if (a !== a) {
|
|
565
|
+
// NaN
|
|
566
|
+
while (idx < list.length) {
|
|
567
|
+
item = list[idx];
|
|
568
|
+
if (typeof item === 'number' && item !== item) {
|
|
569
|
+
return idx;
|
|
570
|
+
}
|
|
571
|
+
idx += 1;
|
|
572
|
+
}
|
|
573
|
+
return -1;
|
|
574
|
+
}
|
|
575
|
+
// non-zero numbers can utilise Set
|
|
576
|
+
return list.indexOf(a, idx);
|
|
577
|
+
|
|
578
|
+
// all these types can utilise Set
|
|
579
|
+
case 'string':
|
|
580
|
+
case 'boolean':
|
|
581
|
+
case 'function':
|
|
582
|
+
case 'undefined':
|
|
583
|
+
return list.indexOf(a, idx);
|
|
584
|
+
case 'object':
|
|
585
|
+
if (a === null) {
|
|
586
|
+
// null can utilise Set
|
|
587
|
+
return list.indexOf(a, idx);
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
// anything else not covered above, defer to R.equals
|
|
592
|
+
while (idx < list.length) {
|
|
593
|
+
if ((0,_equals_js__WEBPACK_IMPORTED_MODULE_0__["default"])(list[idx], a)) {
|
|
594
|
+
return idx;
|
|
595
|
+
}
|
|
596
|
+
idx += 1;
|
|
597
|
+
}
|
|
598
|
+
return -1;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/***/ }),
|
|
602
|
+
|
|
603
|
+
/***/ 2275:
|
|
604
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
605
|
+
|
|
606
|
+
__webpack_require__.r(__webpack_exports__);
|
|
607
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
608
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
609
|
+
/* harmony export */ });
|
|
610
|
+
/* harmony import */ var _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8397);
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* @public
|
|
615
|
+
*/
|
|
616
|
+
class MediaTypes extends Array {
|
|
617
|
+
unknownMediaType = 'application/octet-stream';
|
|
618
|
+
filterByFormat() {
|
|
619
|
+
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('filterByFormat method in MediaTypes class is not yet implemented.');
|
|
620
|
+
}
|
|
621
|
+
findBy() {
|
|
622
|
+
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('findBy method in MediaTypes class is not yet implemented.');
|
|
623
|
+
}
|
|
624
|
+
latest() {
|
|
625
|
+
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('latest method in MediaTypes class is not yet implemented.');
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MediaTypes);
|
|
629
|
+
|
|
630
|
+
/***/ }),
|
|
631
|
+
|
|
632
|
+
/***/ 2420:
|
|
633
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
634
|
+
|
|
635
|
+
__webpack_require__.r(__webpack_exports__);
|
|
636
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
637
|
+
/* harmony export */ "default": () => (/* binding */ _toString)
|
|
638
|
+
/* harmony export */ });
|
|
639
|
+
/* harmony import */ var _includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6265);
|
|
640
|
+
/* harmony import */ var _map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6584);
|
|
641
|
+
/* harmony import */ var _quote_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1950);
|
|
642
|
+
/* harmony import */ var _toISOString_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8477);
|
|
643
|
+
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7783);
|
|
644
|
+
/* harmony import */ var _reject_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7444);
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
function _toString(x, seen) {
|
|
652
|
+
var recur = function recur(y) {
|
|
653
|
+
var xs = seen.concat([x]);
|
|
654
|
+
return (0,_includes_js__WEBPACK_IMPORTED_MODULE_0__["default"])(y, xs) ? '<Circular>' : _toString(y, xs);
|
|
655
|
+
};
|
|
656
|
+
|
|
657
|
+
// mapPairs :: (Object, [String]) -> [String]
|
|
658
|
+
var mapPairs = function (obj, keys) {
|
|
659
|
+
return (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (k) {
|
|
660
|
+
return (0,_quote_js__WEBPACK_IMPORTED_MODULE_2__["default"])(k) + ': ' + recur(obj[k]);
|
|
661
|
+
}, keys.slice().sort());
|
|
662
|
+
};
|
|
663
|
+
switch (Object.prototype.toString.call(x)) {
|
|
664
|
+
case '[object Arguments]':
|
|
665
|
+
return '(function() { return arguments; }(' + (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])(recur, x).join(', ') + '))';
|
|
666
|
+
case '[object Array]':
|
|
667
|
+
return '[' + (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])(recur, x).concat(mapPairs(x, (0,_reject_js__WEBPACK_IMPORTED_MODULE_5__["default"])(function (k) {
|
|
668
|
+
return /^\d+$/.test(k);
|
|
669
|
+
}, (0,_keys_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x)))).join(', ') + ']';
|
|
670
|
+
case '[object Boolean]':
|
|
671
|
+
return typeof x === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();
|
|
672
|
+
case '[object Date]':
|
|
673
|
+
return 'new Date(' + (isNaN(x.valueOf()) ? recur(NaN) : (0,_quote_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_toISOString_js__WEBPACK_IMPORTED_MODULE_3__["default"])(x))) + ')';
|
|
674
|
+
case '[object Map]':
|
|
675
|
+
return 'new Map(' + recur(Array.from(x)) + ')';
|
|
676
|
+
case '[object Null]':
|
|
677
|
+
return 'null';
|
|
678
|
+
case '[object Number]':
|
|
679
|
+
return typeof x === 'object' ? 'new Number(' + recur(x.valueOf()) + ')' : 1 / x === -Infinity ? '-0' : x.toString(10);
|
|
680
|
+
case '[object Set]':
|
|
681
|
+
return 'new Set(' + recur(Array.from(x).sort()) + ')';
|
|
682
|
+
case '[object String]':
|
|
683
|
+
return typeof x === 'object' ? 'new String(' + recur(x.valueOf()) + ')' : (0,_quote_js__WEBPACK_IMPORTED_MODULE_2__["default"])(x);
|
|
684
|
+
case '[object Undefined]':
|
|
685
|
+
return 'undefined';
|
|
686
|
+
default:
|
|
687
|
+
if (typeof x.toString === 'function') {
|
|
688
|
+
var repr = x.toString();
|
|
689
|
+
if (repr !== '[object Object]') {
|
|
690
|
+
return repr;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
return '{' + mapPairs(x, (0,_keys_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x)).join(', ') + '}';
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/***/ }),
|
|
698
|
+
|
|
699
|
+
/***/ 2459:
|
|
700
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
701
|
+
|
|
702
|
+
__webpack_require__.r(__webpack_exports__);
|
|
703
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
704
|
+
/* harmony export */ "default": () => (/* binding */ _curryN)
|
|
705
|
+
/* harmony export */ });
|
|
706
|
+
/* harmony import */ var _arity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3607);
|
|
707
|
+
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1003);
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Internal curryN function.
|
|
713
|
+
*
|
|
714
|
+
* @private
|
|
715
|
+
* @category Function
|
|
716
|
+
* @param {Number} length The arity of the curried function.
|
|
717
|
+
* @param {Array} received An array of arguments received thus far.
|
|
718
|
+
* @param {Function} fn The function to curry.
|
|
719
|
+
* @return {Function} The curried function.
|
|
720
|
+
*/
|
|
721
|
+
function _curryN(length, received, fn) {
|
|
722
|
+
return function () {
|
|
723
|
+
var combined = [];
|
|
724
|
+
var argsIdx = 0;
|
|
725
|
+
var left = length;
|
|
726
|
+
var combinedIdx = 0;
|
|
727
|
+
var hasPlaceholder = false;
|
|
728
|
+
while (combinedIdx < received.length || argsIdx < arguments.length) {
|
|
729
|
+
var result;
|
|
730
|
+
if (combinedIdx < received.length && (!(0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(received[combinedIdx]) || argsIdx >= arguments.length)) {
|
|
731
|
+
result = received[combinedIdx];
|
|
732
|
+
} else {
|
|
733
|
+
result = arguments[argsIdx];
|
|
734
|
+
argsIdx += 1;
|
|
735
|
+
}
|
|
736
|
+
combined[combinedIdx] = result;
|
|
737
|
+
if (!(0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(result)) {
|
|
738
|
+
left -= 1;
|
|
739
|
+
} else {
|
|
740
|
+
hasPlaceholder = true;
|
|
741
|
+
}
|
|
742
|
+
combinedIdx += 1;
|
|
743
|
+
}
|
|
744
|
+
return !hasPlaceholder && left <= 0 ? fn.apply(this, combined) : (0,_arity_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.max(0, left), _curryN(length, combined, fn));
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/***/ }),
|
|
749
|
+
|
|
750
|
+
/***/ 2572:
|
|
751
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
752
|
+
|
|
753
|
+
__webpack_require__.r(__webpack_exports__);
|
|
754
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
755
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
756
|
+
/* harmony export */ });
|
|
757
|
+
/* harmony import */ var _internal_objectIs_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1111);
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Returns true if its arguments are identical, false otherwise. Values are
|
|
762
|
+
* identical if they reference the same memory. `NaN` is identical to `NaN`;
|
|
763
|
+
* `0` and `-0` are not identical.
|
|
764
|
+
*
|
|
765
|
+
* Note this is merely a curried version of ES6 `Object.is`.
|
|
766
|
+
*
|
|
767
|
+
* `identical` does not support the `__` placeholder.
|
|
768
|
+
*
|
|
769
|
+
* @func
|
|
770
|
+
* @memberOf R
|
|
771
|
+
* @since v0.15.0
|
|
772
|
+
* @category Relation
|
|
773
|
+
* @sig a -> a -> Boolean
|
|
774
|
+
* @param {*} a
|
|
775
|
+
* @param {*} b
|
|
776
|
+
* @return {Boolean}
|
|
777
|
+
* @example
|
|
778
|
+
*
|
|
779
|
+
* const o = {};
|
|
780
|
+
* R.identical(o, o); //=> true
|
|
781
|
+
* R.identical(1, 1); //=> true
|
|
782
|
+
* R.identical(1, '1'); //=> false
|
|
783
|
+
* R.identical([], []); //=> false
|
|
784
|
+
* R.identical(0, -0); //=> false
|
|
785
|
+
* R.identical(NaN, NaN); //=> true
|
|
786
|
+
*/
|
|
787
|
+
var identical = function (a, b) {
|
|
788
|
+
switch (arguments.length) {
|
|
789
|
+
case 0:
|
|
790
|
+
return identical;
|
|
791
|
+
case 1:
|
|
792
|
+
return function () {
|
|
793
|
+
return function unaryIdentical(_b) {
|
|
794
|
+
switch (arguments.length) {
|
|
795
|
+
case 0:
|
|
796
|
+
return unaryIdentical;
|
|
797
|
+
default:
|
|
798
|
+
return (0,_internal_objectIs_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a, _b);
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
}();
|
|
802
|
+
default:
|
|
803
|
+
return (0,_internal_objectIs_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a, b);
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
// In order to support Cross-origin Window objects as arguments to identical,
|
|
808
|
+
// it cannot be implemented as _curry2(_objectIs).
|
|
809
|
+
// The reason is that _curry2 checks if a function argument is the placeholder __
|
|
810
|
+
// by accessing a paritcular property. However, across URL origins access
|
|
811
|
+
// to most properties of Window is forbidden.
|
|
812
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (identical);
|
|
813
|
+
|
|
814
|
+
/***/ }),
|
|
815
|
+
|
|
816
|
+
/***/ 2719:
|
|
817
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
818
|
+
|
|
819
|
+
__webpack_require__.r(__webpack_exports__);
|
|
820
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
821
|
+
/* harmony export */ "default": () => (/* binding */ _xArrayReduce)
|
|
822
|
+
/* harmony export */ });
|
|
823
|
+
function _xArrayReduce(xf, acc, list) {
|
|
824
|
+
var idx = 0;
|
|
825
|
+
var len = list.length;
|
|
826
|
+
while (idx < len) {
|
|
827
|
+
acc = xf['@@transducer/step'](acc, list[idx]);
|
|
828
|
+
if (acc && acc['@@transducer/reduced']) {
|
|
829
|
+
acc = acc['@@transducer/value'];
|
|
830
|
+
break;
|
|
831
|
+
}
|
|
832
|
+
idx += 1;
|
|
833
|
+
}
|
|
834
|
+
return xf['@@transducer/result'](acc);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/***/ }),
|
|
838
|
+
|
|
839
|
+
/***/ 3031:
|
|
840
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
841
|
+
|
|
842
|
+
__webpack_require__.r(__webpack_exports__);
|
|
843
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
844
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
845
|
+
/* harmony export */ });
|
|
846
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3654);
|
|
847
|
+
/* harmony import */ var _stubUndefined_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3387);
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Checks if input value is `undefined`.
|
|
853
|
+
*
|
|
854
|
+
* @func isUndefined
|
|
855
|
+
* @memberOf RA
|
|
856
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.0.1|v0.0.1}
|
|
857
|
+
* @category Type
|
|
858
|
+
* @sig * -> Boolean
|
|
859
|
+
* @param {*} val The value to test
|
|
860
|
+
* @return {boolean}
|
|
861
|
+
* @see {@link RA.isNotUndefined|isNotUndefined}
|
|
862
|
+
* @example
|
|
863
|
+
*
|
|
864
|
+
* RA.isUndefined(1); //=> false
|
|
865
|
+
* RA.isUndefined(undefined); //=> true
|
|
866
|
+
* RA.isUndefined(null); //=> false
|
|
867
|
+
*/
|
|
868
|
+
var isUndefined = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_stubUndefined_js__WEBPACK_IMPORTED_MODULE_1__["default"])());
|
|
869
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isUndefined);
|
|
870
|
+
|
|
871
|
+
/***/ }),
|
|
872
|
+
|
|
873
|
+
/***/ 3143:
|
|
874
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
875
|
+
|
|
876
|
+
__webpack_require__.r(__webpack_exports__);
|
|
877
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
878
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
879
|
+
/* harmony export */ });
|
|
880
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
881
|
+
init: function () {
|
|
882
|
+
return this.xf['@@transducer/init']();
|
|
883
|
+
},
|
|
884
|
+
result: function (result) {
|
|
885
|
+
return this.xf['@@transducer/result'](result);
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
|
|
889
|
+
/***/ }),
|
|
890
|
+
|
|
891
|
+
/***/ 3387:
|
|
892
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
893
|
+
|
|
894
|
+
__webpack_require__.r(__webpack_exports__);
|
|
895
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
896
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
897
|
+
/* harmony export */ });
|
|
898
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9498);
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* A function that returns `undefined`.
|
|
903
|
+
*
|
|
904
|
+
* @func stubUndefined
|
|
905
|
+
* @memberOf RA
|
|
906
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/1.0.0|v1.0.0}
|
|
907
|
+
* @category Function
|
|
908
|
+
* @sig ... -> undefined
|
|
909
|
+
* @return {undefined}
|
|
910
|
+
* @example
|
|
911
|
+
*
|
|
912
|
+
* RA.stubUndefined(); //=> undefined
|
|
913
|
+
* RA.stubUndefined(1, 2, 3); //=> undefined
|
|
914
|
+
*/
|
|
915
|
+
var stubUndefined = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(void 0);
|
|
916
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stubUndefined);
|
|
917
|
+
|
|
918
|
+
/***/ }),
|
|
919
|
+
|
|
920
|
+
/***/ 3437:
|
|
921
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
922
|
+
|
|
923
|
+
__webpack_require__.r(__webpack_exports__);
|
|
924
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
925
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
926
|
+
/* harmony export */ });
|
|
927
|
+
/**
|
|
928
|
+
* @public
|
|
929
|
+
*/
|
|
930
|
+
class ApiDOMAggregateError extends AggregateError {
|
|
931
|
+
constructor(errors, message, options) {
|
|
932
|
+
super(errors, message, options);
|
|
933
|
+
this.name = this.constructor.name;
|
|
934
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
935
|
+
Error.captureStackTrace(this, this.constructor);
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMAggregateError);
|
|
940
|
+
|
|
941
|
+
/***/ }),
|
|
942
|
+
|
|
943
|
+
/***/ 3607:
|
|
944
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
945
|
+
|
|
946
|
+
__webpack_require__.r(__webpack_exports__);
|
|
947
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
948
|
+
/* harmony export */ "default": () => (/* binding */ _arity)
|
|
949
|
+
/* harmony export */ });
|
|
950
|
+
function _arity(n, fn) {
|
|
951
|
+
/* eslint-disable no-unused-vars */
|
|
952
|
+
switch (n) {
|
|
953
|
+
case 0:
|
|
954
|
+
return function () {
|
|
955
|
+
return fn.apply(this, arguments);
|
|
956
|
+
};
|
|
957
|
+
case 1:
|
|
958
|
+
return function (a0) {
|
|
959
|
+
return fn.apply(this, arguments);
|
|
960
|
+
};
|
|
961
|
+
case 2:
|
|
962
|
+
return function (a0, a1) {
|
|
963
|
+
return fn.apply(this, arguments);
|
|
964
|
+
};
|
|
965
|
+
case 3:
|
|
966
|
+
return function (a0, a1, a2) {
|
|
967
|
+
return fn.apply(this, arguments);
|
|
968
|
+
};
|
|
969
|
+
case 4:
|
|
970
|
+
return function (a0, a1, a2, a3) {
|
|
971
|
+
return fn.apply(this, arguments);
|
|
972
|
+
};
|
|
973
|
+
case 5:
|
|
974
|
+
return function (a0, a1, a2, a3, a4) {
|
|
975
|
+
return fn.apply(this, arguments);
|
|
976
|
+
};
|
|
977
|
+
case 6:
|
|
978
|
+
return function (a0, a1, a2, a3, a4, a5) {
|
|
979
|
+
return fn.apply(this, arguments);
|
|
980
|
+
};
|
|
981
|
+
case 7:
|
|
982
|
+
return function (a0, a1, a2, a3, a4, a5, a6) {
|
|
983
|
+
return fn.apply(this, arguments);
|
|
984
|
+
};
|
|
985
|
+
case 8:
|
|
986
|
+
return function (a0, a1, a2, a3, a4, a5, a6, a7) {
|
|
987
|
+
return fn.apply(this, arguments);
|
|
988
|
+
};
|
|
989
|
+
case 9:
|
|
990
|
+
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {
|
|
991
|
+
return fn.apply(this, arguments);
|
|
992
|
+
};
|
|
993
|
+
case 10:
|
|
994
|
+
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
|
|
995
|
+
return fn.apply(this, arguments);
|
|
996
|
+
};
|
|
997
|
+
default:
|
|
998
|
+
throw new Error('First argument to _arity must be a non-negative integer no greater than ten');
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
/***/ }),
|
|
1003
|
+
|
|
1004
|
+
/***/ 3654:
|
|
1005
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1006
|
+
|
|
1007
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1008
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1009
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1010
|
+
/* harmony export */ });
|
|
1011
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5959);
|
|
1012
|
+
/* harmony import */ var _internal_equals_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(497);
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* Returns `true` if its arguments are equivalent, `false` otherwise. Handles
|
|
1018
|
+
* cyclical data structures.
|
|
1019
|
+
*
|
|
1020
|
+
* Dispatches symmetrically to the `equals` methods of both arguments, if
|
|
1021
|
+
* present.
|
|
1022
|
+
*
|
|
1023
|
+
* @func
|
|
1024
|
+
* @memberOf R
|
|
1025
|
+
* @since v0.15.0
|
|
1026
|
+
* @category Relation
|
|
1027
|
+
* @sig a -> b -> Boolean
|
|
1028
|
+
* @param {*} a
|
|
1029
|
+
* @param {*} b
|
|
1030
|
+
* @return {Boolean}
|
|
1031
|
+
* @example
|
|
1032
|
+
*
|
|
1033
|
+
* R.equals(1, 1); //=> true
|
|
1034
|
+
* R.equals(1, '1'); //=> false
|
|
1035
|
+
* R.equals([1, 2, 3], [1, 2, 3]); //=> true
|
|
1036
|
+
*
|
|
1037
|
+
* const a = {}; a.v = a;
|
|
1038
|
+
* const b = {}; b.v = b;
|
|
1039
|
+
* R.equals(a, b); //=> true
|
|
1040
|
+
*/
|
|
1041
|
+
var equals = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function equals(a, b) {
|
|
1042
|
+
return (0,_internal_equals_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a, b, [], []);
|
|
1043
|
+
});
|
|
1044
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (equals);
|
|
1045
|
+
|
|
1046
|
+
/***/ }),
|
|
1047
|
+
|
|
1048
|
+
/***/ 3834:
|
|
1049
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1050
|
+
|
|
1051
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1052
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1053
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1054
|
+
/* harmony export */ });
|
|
1055
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9784);
|
|
1056
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2572);
|
|
1057
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
1058
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
1059
|
+
/* harmony import */ var _isFunction_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6867);
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Checks if input value is `Array`.
|
|
1065
|
+
*
|
|
1066
|
+
* @func isArray
|
|
1067
|
+
* @memberOf RA
|
|
1068
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.3.0|v0.3.0}
|
|
1069
|
+
* @category Type
|
|
1070
|
+
* @sig * -> Boolean
|
|
1071
|
+
* @param {*} val The value to test
|
|
1072
|
+
* @return {boolean}
|
|
1073
|
+
* @see {@link RA.isNotArray|isNotArray}
|
|
1074
|
+
* @example
|
|
1075
|
+
*
|
|
1076
|
+
* RA.isArray([]); //=> true
|
|
1077
|
+
* RA.isArray(null); //=> false
|
|
1078
|
+
* RA.isArray({}); //=> false
|
|
1079
|
+
*/
|
|
1080
|
+
var isArray = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,_isFunction_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Array.isArray) ? Array.isArray : (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('Array')));
|
|
1081
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isArray);
|
|
1082
|
+
|
|
1083
|
+
/***/ }),
|
|
1084
|
+
|
|
1085
|
+
/***/ 4099:
|
|
1086
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1087
|
+
|
|
1088
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1089
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1090
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1091
|
+
/* harmony export */ });
|
|
1092
|
+
/**
|
|
1093
|
+
* Tests whether or not an object is an array.
|
|
1094
|
+
*
|
|
1095
|
+
* @private
|
|
1096
|
+
* @param {*} val The object to test.
|
|
1097
|
+
* @return {Boolean} `true` if `val` is an array, `false` otherwise.
|
|
1098
|
+
* @example
|
|
1099
|
+
*
|
|
1100
|
+
* _isArray([]); //=> true
|
|
1101
|
+
* _isArray(null); //=> false
|
|
1102
|
+
* _isArray({}); //=> false
|
|
1103
|
+
*/
|
|
1104
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Array.isArray || function _isArray(val) {
|
|
1105
|
+
return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';
|
|
1106
|
+
});
|
|
1107
|
+
|
|
1108
|
+
/***/ }),
|
|
1109
|
+
|
|
1110
|
+
/***/ 4121:
|
|
1111
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1112
|
+
|
|
1113
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1114
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1115
|
+
/* harmony export */ "default": () => (/* binding */ _arrayReduce)
|
|
1116
|
+
/* harmony export */ });
|
|
1117
|
+
function _arrayReduce(reducer, acc, list) {
|
|
1118
|
+
var index = 0;
|
|
1119
|
+
var length = list.length;
|
|
1120
|
+
while (index < length) {
|
|
1121
|
+
acc = reducer(acc, list[index]);
|
|
1122
|
+
index += 1;
|
|
1123
|
+
}
|
|
1124
|
+
return acc;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
/***/ }),
|
|
1128
|
+
|
|
1129
|
+
/***/ 4212:
|
|
1130
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1131
|
+
|
|
1132
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1133
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1134
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1135
|
+
/* harmony export */ });
|
|
1136
|
+
/* harmony import */ var _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4641);
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* @public
|
|
1141
|
+
*/
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* @public
|
|
1145
|
+
*/
|
|
1146
|
+
class ParserError extends _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
1147
|
+
source;
|
|
1148
|
+
parserOptions;
|
|
1149
|
+
constructor(message, structuredOptions) {
|
|
1150
|
+
super(message, structuredOptions);
|
|
1151
|
+
if (typeof structuredOptions !== 'undefined') {
|
|
1152
|
+
this.source = structuredOptions.source;
|
|
1153
|
+
this.parserOptions = structuredOptions.parserOptions;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ParserError);
|
|
1158
|
+
|
|
1159
|
+
/***/ }),
|
|
1160
|
+
|
|
1161
|
+
/***/ 4333:
|
|
1162
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1163
|
+
|
|
1164
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1165
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1166
|
+
/* harmony export */ "default": () => (/* binding */ _includesWith)
|
|
1167
|
+
/* harmony export */ });
|
|
1168
|
+
function _includesWith(pred, x, list) {
|
|
1169
|
+
var idx = 0;
|
|
1170
|
+
var len = list.length;
|
|
1171
|
+
while (idx < len) {
|
|
1172
|
+
if (pred(x, list[idx])) {
|
|
1173
|
+
return true;
|
|
1174
|
+
}
|
|
1175
|
+
idx += 1;
|
|
1176
|
+
}
|
|
1177
|
+
return false;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
/***/ }),
|
|
1181
|
+
|
|
1182
|
+
/***/ 4334:
|
|
1183
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1184
|
+
|
|
1185
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1186
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1187
|
+
/* harmony export */ "default": () => (/* binding */ _createReduce)
|
|
1188
|
+
/* harmony export */ });
|
|
1189
|
+
/* harmony import */ var _isArrayLike_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4620);
|
|
1190
|
+
|
|
1191
|
+
var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
|
|
1192
|
+
function _createReduce(arrayReduce, methodReduce, iterableReduce) {
|
|
1193
|
+
return function _reduce(xf, acc, list) {
|
|
1194
|
+
if ((0,_isArrayLike_js__WEBPACK_IMPORTED_MODULE_0__["default"])(list)) {
|
|
1195
|
+
return arrayReduce(xf, acc, list);
|
|
1196
|
+
}
|
|
1197
|
+
if (list == null) {
|
|
1198
|
+
return acc;
|
|
1199
|
+
}
|
|
1200
|
+
if (typeof list['fantasy-land/reduce'] === 'function') {
|
|
1201
|
+
return methodReduce(xf, acc, list, 'fantasy-land/reduce');
|
|
1202
|
+
}
|
|
1203
|
+
if (list[symIterator] != null) {
|
|
1204
|
+
return iterableReduce(xf, acc, list[symIterator]());
|
|
1205
|
+
}
|
|
1206
|
+
if (typeof list.next === 'function') {
|
|
1207
|
+
return iterableReduce(xf, acc, list);
|
|
1208
|
+
}
|
|
1209
|
+
if (typeof list.reduce === 'function') {
|
|
1210
|
+
return methodReduce(xf, acc, list, 'reduce');
|
|
1211
|
+
}
|
|
1212
|
+
throw new TypeError('reduce: list must be array or iterable');
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
/***/ }),
|
|
1217
|
+
|
|
1218
|
+
/***/ 4436:
|
|
1219
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1220
|
+
|
|
1221
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1222
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1223
|
+
/* harmony export */ "default": () => (/* binding */ _pipe)
|
|
1224
|
+
/* harmony export */ });
|
|
1225
|
+
function _pipe(f, g) {
|
|
1226
|
+
return function () {
|
|
1227
|
+
return g.call(this, f.apply(this, arguments));
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/***/ }),
|
|
1232
|
+
|
|
1233
|
+
/***/ 4514:
|
|
1234
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1235
|
+
|
|
1236
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1237
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1238
|
+
/* harmony export */ "default": () => (/* binding */ _xwrap)
|
|
1239
|
+
/* harmony export */ });
|
|
1240
|
+
var XWrap = /*#__PURE__*/function () {
|
|
1241
|
+
function XWrap(fn) {
|
|
1242
|
+
this.f = fn;
|
|
1243
|
+
}
|
|
1244
|
+
XWrap.prototype['@@transducer/init'] = function () {
|
|
1245
|
+
throw new Error('init not implemented on XWrap');
|
|
1246
|
+
};
|
|
1247
|
+
XWrap.prototype['@@transducer/result'] = function (acc) {
|
|
1248
|
+
return acc;
|
|
1249
|
+
};
|
|
1250
|
+
XWrap.prototype['@@transducer/step'] = function (acc, x) {
|
|
1251
|
+
return this.f(acc, x);
|
|
1252
|
+
};
|
|
1253
|
+
return XWrap;
|
|
1254
|
+
}();
|
|
1255
|
+
function _xwrap(fn) {
|
|
1256
|
+
return new XWrap(fn);
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
/***/ }),
|
|
1260
|
+
|
|
1261
|
+
/***/ 4620:
|
|
1262
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1263
|
+
|
|
1264
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1265
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1266
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1267
|
+
/* harmony export */ });
|
|
1268
|
+
/* harmony import */ var _curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
1269
|
+
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4099);
|
|
1270
|
+
/* harmony import */ var _isString_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(141);
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
/**
|
|
1276
|
+
* Tests whether or not an object is similar to an array.
|
|
1277
|
+
*
|
|
1278
|
+
* @private
|
|
1279
|
+
* @category Type
|
|
1280
|
+
* @category List
|
|
1281
|
+
* @sig * -> Boolean
|
|
1282
|
+
* @param {*} x The object to test.
|
|
1283
|
+
* @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
|
|
1284
|
+
* @example
|
|
1285
|
+
*
|
|
1286
|
+
* _isArrayLike([]); //=> true
|
|
1287
|
+
* _isArrayLike(true); //=> false
|
|
1288
|
+
* _isArrayLike({}); //=> false
|
|
1289
|
+
* _isArrayLike({length: 10}); //=> false
|
|
1290
|
+
* _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
|
|
1291
|
+
* _isArrayLike({nodeType: 1, length: 1}) // => false
|
|
1292
|
+
*/
|
|
1293
|
+
var _isArrayLike = /*#__PURE__*/(0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function isArrayLike(x) {
|
|
1294
|
+
if ((0,_isArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(x)) {
|
|
1295
|
+
return true;
|
|
1296
|
+
}
|
|
1297
|
+
if (!x) {
|
|
1298
|
+
return false;
|
|
1299
|
+
}
|
|
1300
|
+
if (typeof x !== 'object') {
|
|
1301
|
+
return false;
|
|
1302
|
+
}
|
|
1303
|
+
if ((0,_isString_js__WEBPACK_IMPORTED_MODULE_2__["default"])(x)) {
|
|
1304
|
+
return false;
|
|
1305
|
+
}
|
|
1306
|
+
if (x.length === 0) {
|
|
1307
|
+
return true;
|
|
1308
|
+
}
|
|
1309
|
+
if (x.length > 0) {
|
|
1310
|
+
return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
|
|
1311
|
+
}
|
|
1312
|
+
return false;
|
|
1313
|
+
});
|
|
1314
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_isArrayLike);
|
|
1315
|
+
|
|
1316
|
+
/***/ }),
|
|
1317
|
+
|
|
1318
|
+
/***/ 4641:
|
|
1319
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1320
|
+
|
|
1321
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1322
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1323
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1324
|
+
/* harmony export */ });
|
|
1325
|
+
/* harmony import */ var _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6126);
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* @public
|
|
1329
|
+
*/
|
|
1330
|
+
class ApiDOMStructuredError extends _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
1331
|
+
constructor(message, structuredOptions) {
|
|
1332
|
+
super(message, structuredOptions);
|
|
1333
|
+
if (structuredOptions != null && typeof structuredOptions === 'object') {
|
|
1334
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1335
|
+
const {
|
|
1336
|
+
cause,
|
|
1337
|
+
...causelessOptions
|
|
1338
|
+
} = structuredOptions;
|
|
1339
|
+
Object.assign(this, causelessOptions);
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMStructuredError);
|
|
1344
|
+
|
|
1345
|
+
/***/ }),
|
|
1346
|
+
|
|
1347
|
+
/***/ 4981:
|
|
1348
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1349
|
+
|
|
1350
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1351
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1352
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1353
|
+
/* harmony export */ });
|
|
1354
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5959);
|
|
1355
|
+
/* harmony import */ var _toString_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9271);
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Returns the larger of its two arguments.
|
|
1361
|
+
*
|
|
1362
|
+
* @func
|
|
1363
|
+
* @memberOf R
|
|
1364
|
+
* @since v0.1.0
|
|
1365
|
+
* @category Relation
|
|
1366
|
+
* @sig Ord a => a -> a -> a
|
|
1367
|
+
* @param {*} a
|
|
1368
|
+
* @param {*} b
|
|
1369
|
+
* @return {*}
|
|
1370
|
+
* @see R.maxBy, R.min
|
|
1371
|
+
* @example
|
|
1372
|
+
*
|
|
1373
|
+
* R.max(789, 123); //=> 789
|
|
1374
|
+
* R.max('a', 'b'); //=> 'b'
|
|
1375
|
+
*/
|
|
1376
|
+
var max = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function max(a, b) {
|
|
1377
|
+
if (a === b) {
|
|
1378
|
+
return b;
|
|
1379
|
+
}
|
|
1380
|
+
function safeMax(x, y) {
|
|
1381
|
+
if (x > y !== y > x) {
|
|
1382
|
+
return y > x ? y : x;
|
|
1383
|
+
}
|
|
1384
|
+
return undefined;
|
|
1385
|
+
}
|
|
1386
|
+
var maxByValue = safeMax(a, b);
|
|
1387
|
+
if (maxByValue !== undefined) {
|
|
1388
|
+
return maxByValue;
|
|
1389
|
+
}
|
|
1390
|
+
var maxByType = safeMax(typeof a, typeof b);
|
|
1391
|
+
if (maxByType !== undefined) {
|
|
1392
|
+
return maxByType === typeof a ? a : b;
|
|
1393
|
+
}
|
|
1394
|
+
var stringA = (0,_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a);
|
|
1395
|
+
var maxByStringValue = safeMax(stringA, (0,_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b));
|
|
1396
|
+
if (maxByStringValue !== undefined) {
|
|
1397
|
+
return maxByStringValue === stringA ? a : b;
|
|
1398
|
+
}
|
|
1399
|
+
return b;
|
|
1400
|
+
});
|
|
1401
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (max);
|
|
1402
|
+
|
|
1403
|
+
/***/ }),
|
|
1404
|
+
|
|
1405
|
+
/***/ 5102:
|
|
1406
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1407
|
+
|
|
1408
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1409
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1410
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1411
|
+
/* harmony export */ });
|
|
1412
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9784);
|
|
1413
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2572);
|
|
1414
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
1415
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* Checks if input value is `String`.
|
|
1420
|
+
*
|
|
1421
|
+
* @func isString
|
|
1422
|
+
* @memberOf RA
|
|
1423
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.4.0|v0.4.0}
|
|
1424
|
+
* @category Type
|
|
1425
|
+
* @sig * -> Boolean
|
|
1426
|
+
* @param {*} val The value to test
|
|
1427
|
+
* @return {boolean}
|
|
1428
|
+
* @see {@link RA.isNotString|isNotString}
|
|
1429
|
+
* @example
|
|
1430
|
+
*
|
|
1431
|
+
* RA.isString('abc'); //=> true
|
|
1432
|
+
* RA.isString(1); //=> false
|
|
1433
|
+
*/
|
|
1434
|
+
var isString = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('String')));
|
|
1435
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isString);
|
|
1436
|
+
|
|
1437
|
+
/***/ }),
|
|
1438
|
+
|
|
1439
|
+
/***/ 5121:
|
|
1440
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1441
|
+
|
|
1442
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1443
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1444
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1445
|
+
/* harmony export */ });
|
|
1446
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
1447
|
+
/* harmony import */ var _internal_nth_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5136);
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
* Returns the first element of the given list or string. In some libraries
|
|
1453
|
+
* this function is named `first`.
|
|
1454
|
+
*
|
|
1455
|
+
* @func
|
|
1456
|
+
* @memberOf R
|
|
1457
|
+
* @since v0.1.0
|
|
1458
|
+
* @category List
|
|
1459
|
+
* @sig [a] -> a | Undefined
|
|
1460
|
+
* @sig String -> String | Undefined
|
|
1461
|
+
* @param {Array|String} list
|
|
1462
|
+
* @return {*}
|
|
1463
|
+
* @see R.tail, R.init, R.last
|
|
1464
|
+
* @example
|
|
1465
|
+
*
|
|
1466
|
+
* R.head([1, 2, 3]); //=> 1
|
|
1467
|
+
* R.head([1]); //=> 1
|
|
1468
|
+
* R.head([]); //=> undefined
|
|
1469
|
+
*
|
|
1470
|
+
* R.head('abc'); //=> 'a'
|
|
1471
|
+
* R.head('a'); //=> 'a'
|
|
1472
|
+
* R.head(''); //=> undefined
|
|
1473
|
+
*/
|
|
1474
|
+
var head = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (list) {
|
|
1475
|
+
return (0,_internal_nth_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0, list);
|
|
1476
|
+
});
|
|
1477
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (head);
|
|
1478
|
+
|
|
1479
|
+
/***/ }),
|
|
1480
|
+
|
|
1481
|
+
/***/ 5136:
|
|
1482
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1483
|
+
|
|
1484
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1485
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1486
|
+
/* harmony export */ "default": () => (/* binding */ _nth)
|
|
1487
|
+
/* harmony export */ });
|
|
1488
|
+
function _nth(offset, list) {
|
|
1489
|
+
var idx = offset < 0 ? list.length + offset : offset;
|
|
1490
|
+
return list[idx];
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
/***/ }),
|
|
1494
|
+
|
|
1495
|
+
/***/ 5722:
|
|
1496
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1497
|
+
|
|
1498
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1499
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1500
|
+
/* harmony export */ "default": () => (/* binding */ _has)
|
|
1501
|
+
/* harmony export */ });
|
|
1502
|
+
function _has(prop, obj) {
|
|
1503
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
/***/ }),
|
|
1507
|
+
|
|
1508
|
+
/***/ 5855:
|
|
1509
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1510
|
+
|
|
1511
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1512
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1513
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1514
|
+
/* harmony export */ });
|
|
1515
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9784);
|
|
1516
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2572);
|
|
1517
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
1518
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* Checks if input value is `Async Function`.
|
|
1523
|
+
*
|
|
1524
|
+
* @func isAsyncFunction
|
|
1525
|
+
* @memberOf RA
|
|
1526
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
|
1527
|
+
* @category Type
|
|
1528
|
+
* @sig * -> Boolean
|
|
1529
|
+
* @param {*} val The value to test
|
|
1530
|
+
* @return {boolean}
|
|
1531
|
+
* @see {@link RA.isFunction|isFunction}, {@link RA.isNotAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
|
|
1532
|
+
* @example
|
|
1533
|
+
*
|
|
1534
|
+
* RA.isAsyncFunction(async function test() { }); //=> true
|
|
1535
|
+
* RA.isAsyncFunction(null); //=> false
|
|
1536
|
+
* RA.isAsyncFunction(function test() { }); //=> false
|
|
1537
|
+
* RA.isAsyncFunction(() => {}); //=> false
|
|
1538
|
+
*/
|
|
1539
|
+
var isAsyncFunction = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('AsyncFunction')));
|
|
1540
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isAsyncFunction);
|
|
1541
|
+
|
|
1542
|
+
/***/ }),
|
|
1543
|
+
|
|
1544
|
+
/***/ 5959:
|
|
1545
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1546
|
+
|
|
1547
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1548
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1549
|
+
/* harmony export */ "default": () => (/* binding */ _curry2)
|
|
1550
|
+
/* harmony export */ });
|
|
1551
|
+
/* harmony import */ var _curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
1552
|
+
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1003);
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* Optimized internal two-arity curry function.
|
|
1558
|
+
*
|
|
1559
|
+
* @private
|
|
1560
|
+
* @category Function
|
|
1561
|
+
* @param {Function} fn The function to curry.
|
|
1562
|
+
* @return {Function} The curried function.
|
|
1563
|
+
*/
|
|
1564
|
+
function _curry2(fn) {
|
|
1565
|
+
return function f2(a, b) {
|
|
1566
|
+
switch (arguments.length) {
|
|
1567
|
+
case 0:
|
|
1568
|
+
return f2;
|
|
1569
|
+
case 1:
|
|
1570
|
+
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a) ? f2 : (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_b) {
|
|
1571
|
+
return fn(a, _b);
|
|
1572
|
+
});
|
|
1573
|
+
default:
|
|
1574
|
+
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b) ? f2 : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_a) {
|
|
1575
|
+
return fn(_a, b);
|
|
1576
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_b) {
|
|
1577
|
+
return fn(a, _b);
|
|
1578
|
+
}) : fn(a, b);
|
|
1579
|
+
}
|
|
1580
|
+
};
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
/***/ }),
|
|
1584
|
+
|
|
1585
|
+
/***/ 5969:
|
|
1586
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1587
|
+
|
|
1588
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1589
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1590
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1591
|
+
/* harmony export */ });
|
|
1592
|
+
/* harmony import */ var _internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6122);
|
|
1593
|
+
/* harmony import */ var _internal_curry3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9088);
|
|
1594
|
+
|
|
1595
|
+
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* Returns the elements of the given list or string (or object with a `slice`
|
|
1599
|
+
* method) from `fromIndex` (inclusive) to `toIndex` (exclusive).
|
|
1600
|
+
*
|
|
1601
|
+
* Dispatches to the `slice` method of the third argument, if present.
|
|
1602
|
+
*
|
|
1603
|
+
* @func
|
|
1604
|
+
* @memberOf R
|
|
1605
|
+
* @since v0.1.4
|
|
1606
|
+
* @category List
|
|
1607
|
+
* @sig Number -> Number -> [a] -> [a]
|
|
1608
|
+
* @sig Number -> Number -> String -> String
|
|
1609
|
+
* @param {Number} fromIndex The start index (inclusive).
|
|
1610
|
+
* @param {Number} toIndex The end index (exclusive).
|
|
1611
|
+
* @param {*} list
|
|
1612
|
+
* @return {*}
|
|
1613
|
+
* @example
|
|
1614
|
+
*
|
|
1615
|
+
* R.slice(1, 3, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
|
|
1616
|
+
* R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']
|
|
1617
|
+
* R.slice(0, -1, ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c']
|
|
1618
|
+
* R.slice(-3, -1, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
|
|
1619
|
+
* R.slice(0, 3, 'ramda'); //=> 'ram'
|
|
1620
|
+
*/
|
|
1621
|
+
var slice = /*#__PURE__*/(0,_internal_curry3_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/(0,_internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_0__["default"])('slice', function slice(fromIndex, toIndex, list) {
|
|
1622
|
+
return Array.prototype.slice.call(list, fromIndex, toIndex);
|
|
1623
|
+
}));
|
|
1624
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (slice);
|
|
1625
|
+
|
|
1626
|
+
/***/ }),
|
|
1627
|
+
|
|
1628
|
+
/***/ 6122:
|
|
1629
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1630
|
+
|
|
1631
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1632
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1633
|
+
/* harmony export */ "default": () => (/* binding */ _checkForMethod)
|
|
1634
|
+
/* harmony export */ });
|
|
1635
|
+
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4099);
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* This checks whether a function has a [methodname] function. If it isn't an
|
|
1640
|
+
* array it will execute that function otherwise it will default to the ramda
|
|
1641
|
+
* implementation.
|
|
1642
|
+
*
|
|
1643
|
+
* @private
|
|
1644
|
+
* @param {Function} fn ramda implementation
|
|
1645
|
+
* @param {String} methodname property to check for a custom implementation
|
|
1646
|
+
* @return {Object} Whatever the return value of the method is.
|
|
1647
|
+
*/
|
|
1648
|
+
function _checkForMethod(methodname, fn) {
|
|
1649
|
+
return function () {
|
|
1650
|
+
var length = arguments.length;
|
|
1651
|
+
if (length === 0) {
|
|
1652
|
+
return fn();
|
|
1653
|
+
}
|
|
1654
|
+
var obj = arguments[length - 1];
|
|
1655
|
+
return (0,_isArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(obj) || typeof obj[methodname] !== 'function' ? fn.apply(this, arguments) : obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));
|
|
1656
|
+
};
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
/***/ }),
|
|
1660
|
+
|
|
1661
|
+
/***/ 6126:
|
|
1662
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1663
|
+
|
|
1664
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1665
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1666
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1667
|
+
/* harmony export */ });
|
|
1668
|
+
/* harmony import */ var _ApiDOMAggregateError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3437);
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* @public
|
|
1672
|
+
*/
|
|
1673
|
+
class ApiDOMError extends Error {
|
|
1674
|
+
static [Symbol.hasInstance](instance) {
|
|
1675
|
+
// we want to ApiDOMAggregateError to act as if ApiDOMError was its superclass
|
|
1676
|
+
return super[Symbol.hasInstance](instance) || Function.prototype[Symbol.hasInstance].call(_ApiDOMAggregateError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"], instance);
|
|
1677
|
+
}
|
|
1678
|
+
constructor(message, options) {
|
|
1679
|
+
super(message, options);
|
|
1680
|
+
this.name = this.constructor.name;
|
|
1681
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1682
|
+
Error.captureStackTrace(this, this.constructor);
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMError);
|
|
1687
|
+
|
|
1688
|
+
/***/ }),
|
|
1689
|
+
|
|
1690
|
+
/***/ 6265:
|
|
1691
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1692
|
+
|
|
1693
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1694
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1695
|
+
/* harmony export */ "default": () => (/* binding */ _includes)
|
|
1696
|
+
/* harmony export */ });
|
|
1697
|
+
/* harmony import */ var _indexOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2243);
|
|
1698
|
+
|
|
1699
|
+
function _includes(a, list) {
|
|
1700
|
+
return (0,_indexOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(list, a, 0) >= 0;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
/***/ }),
|
|
1704
|
+
|
|
1705
|
+
/***/ 6390:
|
|
1706
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1707
|
+
|
|
1708
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1709
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1710
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1711
|
+
/* harmony export */ });
|
|
1712
|
+
/* harmony import */ var _xfBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3143);
|
|
1713
|
+
|
|
1714
|
+
var XMap = /*#__PURE__*/function () {
|
|
1715
|
+
function XMap(f, xf) {
|
|
1716
|
+
this.xf = xf;
|
|
1717
|
+
this.f = f;
|
|
1718
|
+
}
|
|
1719
|
+
XMap.prototype['@@transducer/init'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].init;
|
|
1720
|
+
XMap.prototype['@@transducer/result'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].result;
|
|
1721
|
+
XMap.prototype['@@transducer/step'] = function (result, input) {
|
|
1722
|
+
return this.xf['@@transducer/step'](result, this.f(input));
|
|
1723
|
+
};
|
|
1724
|
+
return XMap;
|
|
1725
|
+
}();
|
|
1726
|
+
var _xmap = function _xmap(f) {
|
|
1727
|
+
return function (xf) {
|
|
1728
|
+
return new XMap(f, xf);
|
|
1729
|
+
};
|
|
1730
|
+
};
|
|
1731
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_xmap);
|
|
1732
|
+
|
|
1733
|
+
/***/ }),
|
|
1734
|
+
|
|
1735
|
+
/***/ 6561:
|
|
1736
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1737
|
+
|
|
1738
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1739
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1740
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1741
|
+
/* harmony export */ });
|
|
1742
|
+
/* harmony import */ var _internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6122);
|
|
1743
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8938);
|
|
1744
|
+
/* harmony import */ var _slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5969);
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* Returns all but the first element of the given list or string (or object
|
|
1751
|
+
* with a `tail` method).
|
|
1752
|
+
*
|
|
1753
|
+
* Dispatches to the `slice` method of the first argument, if present.
|
|
1754
|
+
*
|
|
1755
|
+
* @func
|
|
1756
|
+
* @memberOf R
|
|
1757
|
+
* @since v0.1.0
|
|
1758
|
+
* @category List
|
|
1759
|
+
* @sig [a] -> [a]
|
|
1760
|
+
* @sig String -> String
|
|
1761
|
+
* @param {*} list
|
|
1762
|
+
* @return {*}
|
|
1763
|
+
* @see R.head, R.init, R.last
|
|
1764
|
+
* @example
|
|
1765
|
+
*
|
|
1766
|
+
* R.tail([1, 2, 3]); //=> [2, 3]
|
|
1767
|
+
* R.tail([1, 2]); //=> [2]
|
|
1768
|
+
* R.tail([1]); //=> []
|
|
1769
|
+
* R.tail([]); //=> []
|
|
1770
|
+
*
|
|
1771
|
+
* R.tail('abc'); //=> 'bc'
|
|
1772
|
+
* R.tail('ab'); //=> 'b'
|
|
1773
|
+
* R.tail('a'); //=> ''
|
|
1774
|
+
* R.tail(''); //=> ''
|
|
1775
|
+
*/
|
|
1776
|
+
var tail = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/(0,_internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_0__["default"])('tail', /*#__PURE__*/(0,_slice_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, Infinity)));
|
|
1777
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (tail);
|
|
1778
|
+
|
|
1779
|
+
/***/ }),
|
|
1780
|
+
|
|
1781
|
+
/***/ 6574:
|
|
1782
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1783
|
+
|
|
1784
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1785
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1786
|
+
/* harmony export */ "default": () => (/* binding */ _filter)
|
|
1787
|
+
/* harmony export */ });
|
|
1788
|
+
function _filter(fn, list) {
|
|
1789
|
+
var idx = 0;
|
|
1790
|
+
var len = list.length;
|
|
1791
|
+
var result = [];
|
|
1792
|
+
while (idx < len) {
|
|
1793
|
+
if (fn(list[idx])) {
|
|
1794
|
+
result[result.length] = list[idx];
|
|
1795
|
+
}
|
|
1796
|
+
idx += 1;
|
|
1797
|
+
}
|
|
1798
|
+
return result;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
/***/ }),
|
|
1802
|
+
|
|
1803
|
+
/***/ 6584:
|
|
1804
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1805
|
+
|
|
1806
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1807
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1808
|
+
/* harmony export */ "default": () => (/* binding */ _map)
|
|
1809
|
+
/* harmony export */ });
|
|
1810
|
+
function _map(fn, functor) {
|
|
1811
|
+
var idx = 0;
|
|
1812
|
+
var len = functor.length;
|
|
1813
|
+
var result = Array(len);
|
|
1814
|
+
while (idx < len) {
|
|
1815
|
+
result[idx] = fn(functor[idx]);
|
|
1816
|
+
idx += 1;
|
|
1817
|
+
}
|
|
1818
|
+
return result;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
/***/ }),
|
|
1822
|
+
|
|
1823
|
+
/***/ 6590:
|
|
1824
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1825
|
+
|
|
1826
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1827
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1828
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1829
|
+
/* harmony export */ });
|
|
1830
|
+
/* harmony import */ var _has_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5722);
|
|
1831
|
+
|
|
1832
|
+
var toString = Object.prototype.toString;
|
|
1833
|
+
var _isArguments = /*#__PURE__*/function () {
|
|
1834
|
+
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
1835
|
+
return toString.call(x) === '[object Arguments]';
|
|
1836
|
+
} : function _isArguments(x) {
|
|
1837
|
+
return (0,_has_js__WEBPACK_IMPORTED_MODULE_0__["default"])('callee', x);
|
|
1838
|
+
};
|
|
1839
|
+
}();
|
|
1840
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_isArguments);
|
|
1841
|
+
|
|
1842
|
+
/***/ }),
|
|
1843
|
+
|
|
1844
|
+
/***/ 6738:
|
|
1845
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1846
|
+
|
|
1847
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1848
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1849
|
+
/* harmony export */ "default": () => (/* binding */ _dispatchable)
|
|
1850
|
+
/* harmony export */ });
|
|
1851
|
+
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4099);
|
|
1852
|
+
/* harmony import */ var _isTransformer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7117);
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* Returns a function that dispatches with different strategies based on the
|
|
1858
|
+
* object in list position (last argument). If it is an array, executes [fn].
|
|
1859
|
+
* Otherwise, if it has a function with one of the given method names, it will
|
|
1860
|
+
* execute that function (functor case). Otherwise, if it is a transformer,
|
|
1861
|
+
* uses transducer created by [transducerCreator] to return a new transformer
|
|
1862
|
+
* (transducer case).
|
|
1863
|
+
* Otherwise, it will default to executing [fn].
|
|
1864
|
+
*
|
|
1865
|
+
* @private
|
|
1866
|
+
* @param {Array} methodNames properties to check for a custom implementation
|
|
1867
|
+
* @param {Function} transducerCreator transducer factory if object is transformer
|
|
1868
|
+
* @param {Function} fn default ramda implementation
|
|
1869
|
+
* @return {Function} A function that dispatches on object in list position
|
|
1870
|
+
*/
|
|
1871
|
+
function _dispatchable(methodNames, transducerCreator, fn) {
|
|
1872
|
+
return function () {
|
|
1873
|
+
if (arguments.length === 0) {
|
|
1874
|
+
return fn();
|
|
1875
|
+
}
|
|
1876
|
+
var obj = arguments[arguments.length - 1];
|
|
1877
|
+
if (!(0,_isArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(obj)) {
|
|
1878
|
+
var idx = 0;
|
|
1879
|
+
while (idx < methodNames.length) {
|
|
1880
|
+
if (typeof obj[methodNames[idx]] === 'function') {
|
|
1881
|
+
return obj[methodNames[idx]].apply(obj, Array.prototype.slice.call(arguments, 0, -1));
|
|
1882
|
+
}
|
|
1883
|
+
idx += 1;
|
|
1884
|
+
}
|
|
1885
|
+
if ((0,_isTransformer_js__WEBPACK_IMPORTED_MODULE_1__["default"])(obj)) {
|
|
1886
|
+
var transducer = transducerCreator.apply(null, Array.prototype.slice.call(arguments, 0, -1));
|
|
1887
|
+
return transducer(obj);
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
return fn.apply(this, arguments);
|
|
1891
|
+
};
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/***/ }),
|
|
1895
|
+
|
|
1896
|
+
/***/ 6867:
|
|
1897
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1898
|
+
|
|
1899
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1900
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1901
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1902
|
+
/* harmony export */ });
|
|
1903
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1020);
|
|
1904
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2572);
|
|
1905
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
1906
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
1907
|
+
/* harmony import */ var _isGeneratorFunction_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9702);
|
|
1908
|
+
/* harmony import */ var _isAsyncFunction_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5855);
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
/**
|
|
1914
|
+
* Checks if input value is `Function`.
|
|
1915
|
+
*
|
|
1916
|
+
* @func isFunction
|
|
1917
|
+
* @memberOf RA
|
|
1918
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
|
1919
|
+
* @category Type
|
|
1920
|
+
* @sig * -> Boolean
|
|
1921
|
+
* @param {*} val The value to test
|
|
1922
|
+
* @return {boolean}
|
|
1923
|
+
* @see {@link RA.isNotFunction|isNotFunction}, {@link RA.isAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
|
|
1924
|
+
* @example
|
|
1925
|
+
*
|
|
1926
|
+
* RA.isFunction(function test() { }); //=> true
|
|
1927
|
+
* RA.isFunction(function* test() { }); //=> true
|
|
1928
|
+
* RA.isFunction(async function test() { }); //=> true
|
|
1929
|
+
* RA.isFunction(() => {}); //=> true
|
|
1930
|
+
* RA.isFunction(null); //=> false
|
|
1931
|
+
* RA.isFunction('abc'); //=> false
|
|
1932
|
+
*/
|
|
1933
|
+
var isFunction = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])([(0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('Function')), _isGeneratorFunction_js__WEBPACK_IMPORTED_MODULE_4__["default"], _isAsyncFunction_js__WEBPACK_IMPORTED_MODULE_5__["default"]]);
|
|
1934
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isFunction);
|
|
1935
|
+
|
|
1936
|
+
/***/ }),
|
|
1937
|
+
|
|
1938
|
+
/***/ 7057:
|
|
1939
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1940
|
+
|
|
1941
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1942
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1943
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1944
|
+
/* harmony export */ });
|
|
1945
|
+
/* harmony import */ var _isInteger_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7700);
|
|
1946
|
+
/* harmony import */ var _nth_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5136);
|
|
1947
|
+
|
|
1948
|
+
|
|
1949
|
+
function _prop(p, obj) {
|
|
1950
|
+
if (obj == null) {
|
|
1951
|
+
return;
|
|
1952
|
+
}
|
|
1953
|
+
return (0,_isInteger_js__WEBPACK_IMPORTED_MODULE_0__["default"])(p) ? (0,_nth_js__WEBPACK_IMPORTED_MODULE_1__["default"])(p, obj) : obj[p];
|
|
1954
|
+
}
|
|
1955
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_prop);
|
|
1956
|
+
|
|
1957
|
+
/***/ }),
|
|
1958
|
+
|
|
1959
|
+
/***/ 7117:
|
|
1960
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1961
|
+
|
|
1962
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1963
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1964
|
+
/* harmony export */ "default": () => (/* binding */ _isTransformer)
|
|
1965
|
+
/* harmony export */ });
|
|
1966
|
+
function _isTransformer(obj) {
|
|
1967
|
+
return obj != null && typeof obj['@@transducer/step'] === 'function';
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
/***/ }),
|
|
1971
|
+
|
|
1972
|
+
/***/ 7444:
|
|
1973
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1974
|
+
|
|
1975
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1976
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1977
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1978
|
+
/* harmony export */ });
|
|
1979
|
+
/* harmony import */ var _internal_complement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7940);
|
|
1980
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5959);
|
|
1981
|
+
/* harmony import */ var _filter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8481);
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* The complement of [`filter`](#filter).
|
|
1988
|
+
*
|
|
1989
|
+
* Acts as a transducer if a transformer is given in list position. Filterable
|
|
1990
|
+
* objects include plain objects or any object that has a filter method such
|
|
1991
|
+
* as `Array`.
|
|
1992
|
+
*
|
|
1993
|
+
* @func
|
|
1994
|
+
* @memberOf R
|
|
1995
|
+
* @since v0.1.0
|
|
1996
|
+
* @category List
|
|
1997
|
+
* @sig Filterable f => (a -> Boolean) -> f a -> f a
|
|
1998
|
+
* @param {Function} pred
|
|
1999
|
+
* @param {Array} filterable
|
|
2000
|
+
* @return {Array}
|
|
2001
|
+
* @see R.filter, R.transduce, R.addIndex
|
|
2002
|
+
* @example
|
|
2003
|
+
*
|
|
2004
|
+
* const isOdd = (n) => n % 2 !== 0;
|
|
2005
|
+
*
|
|
2006
|
+
* R.reject(isOdd, [1, 2, 3, 4]); //=> [2, 4]
|
|
2007
|
+
*
|
|
2008
|
+
* R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
|
2009
|
+
*/
|
|
2010
|
+
var reject = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function reject(pred, filterable) {
|
|
2011
|
+
return (0,_filter_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_internal_complement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(pred), filterable);
|
|
2012
|
+
});
|
|
2013
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reject);
|
|
2014
|
+
|
|
2015
|
+
/***/ }),
|
|
2016
|
+
|
|
2017
|
+
/***/ 7567:
|
|
2018
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2019
|
+
|
|
2020
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2021
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2022
|
+
/* harmony export */ "default": () => (/* binding */ pipe)
|
|
2023
|
+
/* harmony export */ });
|
|
2024
|
+
/* harmony import */ var _internal_arity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3607);
|
|
2025
|
+
/* harmony import */ var _internal_pipe_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4436);
|
|
2026
|
+
/* harmony import */ var _reduce_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7797);
|
|
2027
|
+
/* harmony import */ var _tail_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6561);
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
/**
|
|
2034
|
+
* Performs left-to-right function composition. The first argument may have
|
|
2035
|
+
* any arity; the remaining arguments must be unary.
|
|
2036
|
+
*
|
|
2037
|
+
* In some libraries this function is named `sequence`.
|
|
2038
|
+
*
|
|
2039
|
+
* **Note:** The result of pipe is not automatically curried.
|
|
2040
|
+
*
|
|
2041
|
+
* @func
|
|
2042
|
+
* @memberOf R
|
|
2043
|
+
* @since v0.1.0
|
|
2044
|
+
* @category Function
|
|
2045
|
+
* @sig (((a, b, ..., n) -> o), (o -> p), ..., (x -> y), (y -> z)) -> ((a, b, ..., n) -> z)
|
|
2046
|
+
* @param {...Function} functions
|
|
2047
|
+
* @return {Function}
|
|
2048
|
+
* @see R.compose
|
|
2049
|
+
* @example
|
|
2050
|
+
*
|
|
2051
|
+
* const f = R.pipe(Math.pow, R.negate, R.inc);
|
|
2052
|
+
*
|
|
2053
|
+
* f(3, 4); // -(3^4) + 1
|
|
2054
|
+
* @symb R.pipe(f, g, h)(a, b) = h(g(f(a, b)))
|
|
2055
|
+
* @symb R.pipe(f, g, h)(a)(b) = h(g(f(a)))(b)
|
|
2056
|
+
*/
|
|
2057
|
+
function pipe() {
|
|
2058
|
+
if (arguments.length === 0) {
|
|
2059
|
+
throw new Error('pipe requires at least one argument');
|
|
2060
|
+
}
|
|
2061
|
+
return (0,_internal_arity_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arguments[0].length, (0,_reduce_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_internal_pipe_js__WEBPACK_IMPORTED_MODULE_1__["default"], arguments[0], (0,_tail_js__WEBPACK_IMPORTED_MODULE_3__["default"])(arguments)));
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
/***/ }),
|
|
2065
|
+
|
|
2066
|
+
/***/ 7700:
|
|
2067
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2068
|
+
|
|
2069
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2070
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2071
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2072
|
+
/* harmony export */ });
|
|
2073
|
+
/**
|
|
2074
|
+
* Determine if the passed argument is an integer.
|
|
2075
|
+
*
|
|
2076
|
+
* @private
|
|
2077
|
+
* @param {*} n
|
|
2078
|
+
* @category Type
|
|
2079
|
+
* @return {Boolean}
|
|
2080
|
+
*/
|
|
2081
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Number.isInteger || function _isInteger(n) {
|
|
2082
|
+
return n << 0 === n;
|
|
2083
|
+
});
|
|
2084
|
+
|
|
2085
|
+
/***/ }),
|
|
2086
|
+
|
|
2087
|
+
/***/ 7783:
|
|
2088
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2089
|
+
|
|
2090
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2091
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2092
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2093
|
+
/* harmony export */ });
|
|
2094
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
2095
|
+
/* harmony import */ var _internal_has_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5722);
|
|
2096
|
+
/* harmony import */ var _internal_isArguments_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6590);
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
|
|
2101
|
+
// cover IE < 9 keys issues
|
|
2102
|
+
var hasEnumBug = ! /*#__PURE__*/{
|
|
2103
|
+
toString: null
|
|
2104
|
+
}.propertyIsEnumerable('toString');
|
|
2105
|
+
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
|
|
2106
|
+
// Safari bug
|
|
2107
|
+
var hasArgsEnumBug = /*#__PURE__*/function () {
|
|
2108
|
+
'use strict';
|
|
2109
|
+
|
|
2110
|
+
return arguments.propertyIsEnumerable('length');
|
|
2111
|
+
}();
|
|
2112
|
+
var contains = function contains(list, item) {
|
|
2113
|
+
var idx = 0;
|
|
2114
|
+
while (idx < list.length) {
|
|
2115
|
+
if (list[idx] === item) {
|
|
2116
|
+
return true;
|
|
2117
|
+
}
|
|
2118
|
+
idx += 1;
|
|
2119
|
+
}
|
|
2120
|
+
return false;
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* Returns a list containing the names of all the enumerable own properties of
|
|
2125
|
+
* the supplied object.
|
|
2126
|
+
* Note that the order of the output array is not guaranteed to be consistent
|
|
2127
|
+
* across different JS platforms.
|
|
2128
|
+
*
|
|
2129
|
+
* @func
|
|
2130
|
+
* @memberOf R
|
|
2131
|
+
* @since v0.1.0
|
|
2132
|
+
* @category Object
|
|
2133
|
+
* @sig {k: v} -> [k]
|
|
2134
|
+
* @param {Object} obj The object to extract properties from
|
|
2135
|
+
* @return {Array} An array of the object's own properties.
|
|
2136
|
+
* @see R.keysIn, R.values, R.toPairs
|
|
2137
|
+
* @example
|
|
2138
|
+
*
|
|
2139
|
+
* R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
|
|
2140
|
+
*/
|
|
2141
|
+
var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function keys(obj) {
|
|
2142
|
+
return Object(obj) !== obj ? [] : Object.keys(obj);
|
|
2143
|
+
}) : /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function keys(obj) {
|
|
2144
|
+
if (Object(obj) !== obj) {
|
|
2145
|
+
return [];
|
|
2146
|
+
}
|
|
2147
|
+
var prop, nIdx;
|
|
2148
|
+
var ks = [];
|
|
2149
|
+
var checkArgsLength = hasArgsEnumBug && (0,_internal_isArguments_js__WEBPACK_IMPORTED_MODULE_2__["default"])(obj);
|
|
2150
|
+
for (prop in obj) {
|
|
2151
|
+
if ((0,_internal_has_js__WEBPACK_IMPORTED_MODULE_1__["default"])(prop, obj) && (!checkArgsLength || prop !== 'length')) {
|
|
2152
|
+
ks[ks.length] = prop;
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
if (hasEnumBug) {
|
|
2156
|
+
nIdx = nonEnumerableProps.length - 1;
|
|
2157
|
+
while (nIdx >= 0) {
|
|
2158
|
+
prop = nonEnumerableProps[nIdx];
|
|
2159
|
+
if ((0,_internal_has_js__WEBPACK_IMPORTED_MODULE_1__["default"])(prop, obj) && !contains(ks, prop)) {
|
|
2160
|
+
ks[ks.length] = prop;
|
|
2161
|
+
}
|
|
2162
|
+
nIdx -= 1;
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
return ks;
|
|
2166
|
+
});
|
|
2167
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (keys);
|
|
2168
|
+
|
|
2169
|
+
/***/ }),
|
|
2170
|
+
|
|
2171
|
+
/***/ 7797:
|
|
2172
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2173
|
+
|
|
2174
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2175
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2176
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2177
|
+
/* harmony export */ });
|
|
2178
|
+
/* harmony import */ var _internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9088);
|
|
2179
|
+
/* harmony import */ var _internal_xReduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9728);
|
|
2180
|
+
/* harmony import */ var _internal_xwrap_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4514);
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
/**
|
|
2186
|
+
* Returns a single item by iterating through the list, successively calling
|
|
2187
|
+
* the iterator function and passing it an accumulator value and the current
|
|
2188
|
+
* value from the array, and then passing the result to the next call.
|
|
2189
|
+
*
|
|
2190
|
+
* The iterator function receives two values: *(acc, value)*. It may use
|
|
2191
|
+
* [`R.reduced`](#reduced) to shortcut the iteration.
|
|
2192
|
+
*
|
|
2193
|
+
* The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
|
|
2194
|
+
* is *(value, acc)*.
|
|
2195
|
+
*
|
|
2196
|
+
* Note: `R.reduce` does not skip deleted or unassigned indices (sparse
|
|
2197
|
+
* arrays), unlike the native `Array.prototype.reduce` method. For more details
|
|
2198
|
+
* on this behavior, see:
|
|
2199
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
|
|
2200
|
+
*
|
|
2201
|
+
* Be cautious of mutating and returning the accumulator. If you reuse it across
|
|
2202
|
+
* invocations, it will continue to accumulate onto the same value. The general
|
|
2203
|
+
* recommendation is to always return a new value. If you can't do so for
|
|
2204
|
+
* performance reasons, then be sure to reinitialize the accumulator on each
|
|
2205
|
+
* invocation.
|
|
2206
|
+
*
|
|
2207
|
+
* Dispatches to the `reduce` method of the third argument, if present. When
|
|
2208
|
+
* doing so, it is up to the user to handle the [`R.reduced`](#reduced)
|
|
2209
|
+
* shortcuting, as this is not implemented by `reduce`.
|
|
2210
|
+
*
|
|
2211
|
+
* @func
|
|
2212
|
+
* @memberOf R
|
|
2213
|
+
* @since v0.1.0
|
|
2214
|
+
* @category List
|
|
2215
|
+
* @sig ((a, b) -> a) -> a -> [b] -> a
|
|
2216
|
+
* @param {Function} fn The iterator function. Receives two values, the accumulator and the
|
|
2217
|
+
* current element from the array.
|
|
2218
|
+
* @param {*} acc The accumulator value.
|
|
2219
|
+
* @param {Array} list The list to iterate over.
|
|
2220
|
+
* @return {*} The final, accumulated value.
|
|
2221
|
+
* @see R.reduced, R.addIndex, R.reduceRight
|
|
2222
|
+
* @example
|
|
2223
|
+
*
|
|
2224
|
+
* R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
|
|
2225
|
+
* // - -10
|
|
2226
|
+
* // / \ / \
|
|
2227
|
+
* // - 4 -6 4
|
|
2228
|
+
* // / \ / \
|
|
2229
|
+
* // - 3 ==> -3 3
|
|
2230
|
+
* // / \ / \
|
|
2231
|
+
* // - 2 -1 2
|
|
2232
|
+
* // / \ / \
|
|
2233
|
+
* // 0 1 0 1
|
|
2234
|
+
*
|
|
2235
|
+
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
|
|
2236
|
+
*/
|
|
2237
|
+
var reduce = /*#__PURE__*/(0,_internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (xf, acc, list) {
|
|
2238
|
+
return (0,_internal_xReduce_js__WEBPACK_IMPORTED_MODULE_1__["default"])(typeof xf === 'function' ? (0,_internal_xwrap_js__WEBPACK_IMPORTED_MODULE_2__["default"])(xf) : xf, acc, list);
|
|
2239
|
+
});
|
|
2240
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reduce);
|
|
2241
|
+
|
|
2242
|
+
/***/ }),
|
|
2243
|
+
|
|
2244
|
+
/***/ 7940:
|
|
2245
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2246
|
+
|
|
2247
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2248
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2249
|
+
/* harmony export */ "default": () => (/* binding */ _complement)
|
|
2250
|
+
/* harmony export */ });
|
|
2251
|
+
function _complement(f) {
|
|
2252
|
+
return function () {
|
|
2253
|
+
return !f.apply(this, arguments);
|
|
2254
|
+
};
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
/***/ }),
|
|
2258
|
+
|
|
2259
|
+
/***/ 8080:
|
|
2260
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2261
|
+
|
|
2262
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2263
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2264
|
+
/* harmony export */ "default": () => (/* binding */ _xfilter)
|
|
2265
|
+
/* harmony export */ });
|
|
2266
|
+
/* harmony import */ var _xfBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3143);
|
|
2267
|
+
|
|
2268
|
+
var XFilter = /*#__PURE__*/function () {
|
|
2269
|
+
function XFilter(f, xf) {
|
|
2270
|
+
this.xf = xf;
|
|
2271
|
+
this.f = f;
|
|
2272
|
+
}
|
|
2273
|
+
XFilter.prototype['@@transducer/init'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].init;
|
|
2274
|
+
XFilter.prototype['@@transducer/result'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].result;
|
|
2275
|
+
XFilter.prototype['@@transducer/step'] = function (result, input) {
|
|
2276
|
+
return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
|
|
2277
|
+
};
|
|
2278
|
+
return XFilter;
|
|
2279
|
+
}();
|
|
2280
|
+
function _xfilter(f) {
|
|
2281
|
+
return function (xf) {
|
|
2282
|
+
return new XFilter(f, xf);
|
|
2283
|
+
};
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
/***/ }),
|
|
2287
|
+
|
|
2288
|
+
/***/ 8397:
|
|
2289
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2290
|
+
|
|
2291
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2292
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2293
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2294
|
+
/* harmony export */ });
|
|
2295
|
+
/* harmony import */ var _UnsupportedOperationError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(746);
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* @public
|
|
2299
|
+
*/
|
|
2300
|
+
class NotImplementedError extends _UnsupportedOperationError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
2301
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NotImplementedError);
|
|
2302
|
+
|
|
2303
|
+
/***/ }),
|
|
2304
|
+
|
|
2305
|
+
/***/ 8477:
|
|
2306
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2307
|
+
|
|
2308
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2309
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2310
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2311
|
+
/* harmony export */ });
|
|
2312
|
+
/**
|
|
2313
|
+
* Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
|
|
2314
|
+
*/
|
|
2315
|
+
var pad = function pad(n) {
|
|
2316
|
+
return (n < 10 ? '0' : '') + n;
|
|
2317
|
+
};
|
|
2318
|
+
var _toISOString = typeof Date.prototype.toISOString === 'function' ? function _toISOString(d) {
|
|
2319
|
+
return d.toISOString();
|
|
2320
|
+
} : function _toISOString(d) {
|
|
2321
|
+
return d.getUTCFullYear() + '-' + pad(d.getUTCMonth() + 1) + '-' + pad(d.getUTCDate()) + 'T' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds()) + '.' + (d.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z';
|
|
2322
|
+
};
|
|
2323
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_toISOString);
|
|
2324
|
+
|
|
2325
|
+
/***/ }),
|
|
2326
|
+
|
|
2327
|
+
/***/ 8481:
|
|
2328
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2329
|
+
|
|
2330
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2331
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2332
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2333
|
+
/* harmony export */ });
|
|
2334
|
+
/* harmony import */ var _internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4121);
|
|
2335
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5959);
|
|
2336
|
+
/* harmony import */ var _internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6738);
|
|
2337
|
+
/* harmony import */ var _internal_filter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6574);
|
|
2338
|
+
/* harmony import */ var _internal_filterMap_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2098);
|
|
2339
|
+
/* harmony import */ var _internal_isMap_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8772);
|
|
2340
|
+
/* harmony import */ var _internal_isObject_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(131);
|
|
2341
|
+
/* harmony import */ var _internal_xfilter_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8080);
|
|
2342
|
+
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7783);
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
|
|
2346
|
+
|
|
2347
|
+
|
|
2348
|
+
|
|
2349
|
+
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
/**
|
|
2354
|
+
* Takes a predicate and a `Filterable`, and returns a new filterable of the
|
|
2355
|
+
* same type containing the members of the given filterable which satisfy the
|
|
2356
|
+
* given predicate. Filterable objects include plain objects, Maps, or any object
|
|
2357
|
+
* that has a filter method such as `Array`.
|
|
2358
|
+
*
|
|
2359
|
+
* Dispatches to the `filter` method of the second argument, if present.
|
|
2360
|
+
*
|
|
2361
|
+
* Acts as a transducer if a transformer is given in list position.
|
|
2362
|
+
*
|
|
2363
|
+
* @func
|
|
2364
|
+
* @memberOf R
|
|
2365
|
+
* @since v0.1.0
|
|
2366
|
+
* @category List
|
|
2367
|
+
* @category Object
|
|
2368
|
+
* @sig Filterable f => (a -> Boolean) -> f a -> f a
|
|
2369
|
+
* @param {Function} pred
|
|
2370
|
+
* @param {Array} filterable
|
|
2371
|
+
* @return {Array} Filterable
|
|
2372
|
+
* @see R.reject, R.transduce, R.addIndex
|
|
2373
|
+
* @example
|
|
2374
|
+
*
|
|
2375
|
+
* const isEven = n => n % 2 === 0;
|
|
2376
|
+
*
|
|
2377
|
+
* R.filter(isEven, [1, 2, 3, 4]); //=> [2, 4]
|
|
2378
|
+
*
|
|
2379
|
+
* R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
|
2380
|
+
*/
|
|
2381
|
+
var filter = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/(0,_internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_2__["default"])(['fantasy-land/filter', 'filter'], _internal_xfilter_js__WEBPACK_IMPORTED_MODULE_7__["default"], function (pred, filterable) {
|
|
2382
|
+
return (0,_internal_isObject_js__WEBPACK_IMPORTED_MODULE_6__["default"])(filterable) ? (0,_internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (acc, key) {
|
|
2383
|
+
if (pred(filterable[key])) {
|
|
2384
|
+
acc[key] = filterable[key];
|
|
2385
|
+
}
|
|
2386
|
+
return acc;
|
|
2387
|
+
}, {}, (0,_keys_js__WEBPACK_IMPORTED_MODULE_8__["default"])(filterable)) : (0,_internal_isMap_js__WEBPACK_IMPORTED_MODULE_5__["default"])(filterable) ? (0,_internal_filterMap_js__WEBPACK_IMPORTED_MODULE_4__["default"])(pred, filterable) :
|
|
2388
|
+
// else
|
|
2389
|
+
(0,_internal_filter_js__WEBPACK_IMPORTED_MODULE_3__["default"])(pred, filterable);
|
|
2390
|
+
}));
|
|
2391
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (filter);
|
|
2392
|
+
|
|
2393
|
+
/***/ }),
|
|
2394
|
+
|
|
2395
|
+
/***/ 8772:
|
|
2396
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2397
|
+
|
|
2398
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2399
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2400
|
+
/* harmony export */ "default": () => (/* binding */ _isMap)
|
|
2401
|
+
/* harmony export */ });
|
|
2402
|
+
function _isMap(x) {
|
|
2403
|
+
return Object.prototype.toString.call(x) === '[object Map]';
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
/***/ }),
|
|
2407
|
+
|
|
2408
|
+
/***/ 8822:
|
|
2409
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2410
|
+
|
|
2411
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2412
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2413
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2414
|
+
/* harmony export */ });
|
|
2415
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5959);
|
|
2416
|
+
/* harmony import */ var _internal_prop_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7057);
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* Returns a function that when supplied an object returns the indicated
|
|
2422
|
+
* property of that object, if it exists.
|
|
2423
|
+
*
|
|
2424
|
+
* @func
|
|
2425
|
+
* @memberOf R
|
|
2426
|
+
* @since v0.1.0
|
|
2427
|
+
* @category Object
|
|
2428
|
+
* @typedefn Idx = String | Int | Symbol
|
|
2429
|
+
* @sig Idx -> {s: a} -> a | Undefined
|
|
2430
|
+
* @param {String|Number} p The property name or array index
|
|
2431
|
+
* @param {Object} obj The object to query
|
|
2432
|
+
* @return {*} The value at `obj.p`.
|
|
2433
|
+
* @see R.path, R.props, R.pluck, R.project, R.nth
|
|
2434
|
+
* @example
|
|
2435
|
+
*
|
|
2436
|
+
* R.prop('x', {x: 100}); //=> 100
|
|
2437
|
+
* R.prop('x', {}); //=> undefined
|
|
2438
|
+
* R.prop(0, [100]); //=> 100
|
|
2439
|
+
* R.compose(R.inc, R.prop('x'))({ x: 3 }) //=> 4
|
|
2440
|
+
*/
|
|
2441
|
+
|
|
2442
|
+
var prop = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_internal_prop_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
2443
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (prop);
|
|
2444
|
+
|
|
2445
|
+
/***/ }),
|
|
2446
|
+
|
|
2447
|
+
/***/ 8938:
|
|
2448
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2449
|
+
|
|
2450
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2451
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2452
|
+
/* harmony export */ "default": () => (/* binding */ _curry1)
|
|
2453
|
+
/* harmony export */ });
|
|
2454
|
+
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1003);
|
|
2455
|
+
|
|
2456
|
+
|
|
2457
|
+
/**
|
|
2458
|
+
* Optimized internal one-arity curry function.
|
|
2459
|
+
*
|
|
2460
|
+
* @private
|
|
2461
|
+
* @category Function
|
|
2462
|
+
* @param {Function} fn The function to curry.
|
|
2463
|
+
* @return {Function} The curried function.
|
|
2464
|
+
*/
|
|
2465
|
+
function _curry1(fn) {
|
|
2466
|
+
return function f1(a) {
|
|
2467
|
+
if (arguments.length === 0 || (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a)) {
|
|
2468
|
+
return f1;
|
|
2469
|
+
} else {
|
|
2470
|
+
return fn.apply(this, arguments);
|
|
2471
|
+
}
|
|
2472
|
+
};
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
/***/ }),
|
|
2476
|
+
|
|
2477
|
+
/***/ 9088:
|
|
2478
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2479
|
+
|
|
2480
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2481
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2482
|
+
/* harmony export */ "default": () => (/* binding */ _curry3)
|
|
2483
|
+
/* harmony export */ });
|
|
2484
|
+
/* harmony import */ var _curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
2485
|
+
/* harmony import */ var _curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5959);
|
|
2486
|
+
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1003);
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
|
|
2490
|
+
|
|
2491
|
+
/**
|
|
2492
|
+
* Optimized internal three-arity curry function.
|
|
2493
|
+
*
|
|
2494
|
+
* @private
|
|
2495
|
+
* @category Function
|
|
2496
|
+
* @param {Function} fn The function to curry.
|
|
2497
|
+
* @return {Function} The curried function.
|
|
2498
|
+
*/
|
|
2499
|
+
function _curry3(fn) {
|
|
2500
|
+
return function f3(a, b, c) {
|
|
2501
|
+
switch (arguments.length) {
|
|
2502
|
+
case 0:
|
|
2503
|
+
return f3;
|
|
2504
|
+
case 1:
|
|
2505
|
+
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) ? f3 : (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
|
2506
|
+
return fn(a, _b, _c);
|
|
2507
|
+
});
|
|
2508
|
+
case 2:
|
|
2509
|
+
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? f3 : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _c) {
|
|
2510
|
+
return fn(_a, b, _c);
|
|
2511
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
|
2512
|
+
return fn(a, _b, _c);
|
|
2513
|
+
}) : (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_c) {
|
|
2514
|
+
return fn(a, b, _c);
|
|
2515
|
+
});
|
|
2516
|
+
default:
|
|
2517
|
+
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? f3 : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _b) {
|
|
2518
|
+
return fn(_a, _b, c);
|
|
2519
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _c) {
|
|
2520
|
+
return fn(_a, b, _c);
|
|
2521
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
|
2522
|
+
return fn(a, _b, _c);
|
|
2523
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_a) {
|
|
2524
|
+
return fn(_a, b, c);
|
|
2525
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_b) {
|
|
2526
|
+
return fn(a, _b, c);
|
|
2527
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_c) {
|
|
2528
|
+
return fn(a, b, _c);
|
|
2529
|
+
}) : fn(a, b, c);
|
|
2530
|
+
}
|
|
2531
|
+
};
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
/***/ }),
|
|
2535
|
+
|
|
2536
|
+
/***/ 9271:
|
|
2537
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2538
|
+
|
|
2539
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2540
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2541
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2542
|
+
/* harmony export */ });
|
|
2543
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
2544
|
+
/* harmony import */ var _internal_toString_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2420);
|
|
2545
|
+
|
|
2546
|
+
|
|
2547
|
+
|
|
2548
|
+
/**
|
|
2549
|
+
* Returns the string representation of the given value. `eval`'ing the output
|
|
2550
|
+
* should result in a value equivalent to the input value. Many of the built-in
|
|
2551
|
+
* `toString` methods do not satisfy this requirement.
|
|
2552
|
+
*
|
|
2553
|
+
* If the given value is an `[object Object]` with a `toString` method other
|
|
2554
|
+
* than `Object.prototype.toString`, this method is invoked with no arguments
|
|
2555
|
+
* to produce the return value. This means user-defined constructor functions
|
|
2556
|
+
* can provide a suitable `toString` method. For example:
|
|
2557
|
+
*
|
|
2558
|
+
* function Point(x, y) {
|
|
2559
|
+
* this.x = x;
|
|
2560
|
+
* this.y = y;
|
|
2561
|
+
* }
|
|
2562
|
+
*
|
|
2563
|
+
* Point.prototype.toString = function() {
|
|
2564
|
+
* return 'new Point(' + this.x + ', ' + this.y + ')';
|
|
2565
|
+
* };
|
|
2566
|
+
*
|
|
2567
|
+
* R.toString(new Point(1, 2)); //=> 'new Point(1, 2)'
|
|
2568
|
+
*
|
|
2569
|
+
* @func
|
|
2570
|
+
* @memberOf R
|
|
2571
|
+
* @since v0.14.0
|
|
2572
|
+
* @category String
|
|
2573
|
+
* @sig * -> String
|
|
2574
|
+
* @param {*} val
|
|
2575
|
+
* @return {String}
|
|
2576
|
+
* @example
|
|
2577
|
+
*
|
|
2578
|
+
* R.toString(42); //=> '42'
|
|
2579
|
+
* R.toString('abc'); //=> '"abc"'
|
|
2580
|
+
* R.toString([1, 2, 3]); //=> '[1, 2, 3]'
|
|
2581
|
+
* R.toString({foo: 1, bar: 2, baz: 3}); //=> '{"bar": 2, "baz": 3, "foo": 1}'
|
|
2582
|
+
* R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
|
|
2583
|
+
*/
|
|
2584
|
+
var toString = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function toString(val) {
|
|
2585
|
+
return (0,_internal_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(val, []);
|
|
2586
|
+
});
|
|
2587
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (toString);
|
|
2588
|
+
|
|
2589
|
+
/***/ }),
|
|
2590
|
+
|
|
2591
|
+
/***/ 9498:
|
|
2592
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2593
|
+
|
|
2594
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2595
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2596
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2597
|
+
/* harmony export */ });
|
|
2598
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
2599
|
+
|
|
2600
|
+
|
|
2601
|
+
/**
|
|
2602
|
+
* Returns a function that always returns the given value. Note that for
|
|
2603
|
+
* non-primitives the value returned is a reference to the original value.
|
|
2604
|
+
*
|
|
2605
|
+
* This function is known as `const`, `constant`, or `K` (for K combinator) in
|
|
2606
|
+
* other languages and libraries.
|
|
2607
|
+
*
|
|
2608
|
+
* @func
|
|
2609
|
+
* @memberOf R
|
|
2610
|
+
* @since v0.1.0
|
|
2611
|
+
* @category Function
|
|
2612
|
+
* @sig a -> (* -> a)
|
|
2613
|
+
* @param {*} val The value to wrap in a function
|
|
2614
|
+
* @return {Function} A Function :: * -> val.
|
|
2615
|
+
* @example
|
|
2616
|
+
*
|
|
2617
|
+
* const t = R.always('Tee');
|
|
2618
|
+
* t(); //=> 'Tee'
|
|
2619
|
+
*/
|
|
2620
|
+
var always = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function always(val) {
|
|
2621
|
+
return function () {
|
|
2622
|
+
return val;
|
|
2623
|
+
};
|
|
2624
|
+
});
|
|
2625
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (always);
|
|
2626
|
+
|
|
2627
|
+
/***/ }),
|
|
2628
|
+
|
|
2629
|
+
/***/ 9590:
|
|
2630
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2631
|
+
|
|
2632
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2633
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2634
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2635
|
+
/* harmony export */ });
|
|
2636
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5959);
|
|
2637
|
+
/* harmony import */ var _map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(397);
|
|
2638
|
+
/* harmony import */ var _prop_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8822);
|
|
2639
|
+
|
|
2640
|
+
|
|
2641
|
+
|
|
2642
|
+
|
|
2643
|
+
/**
|
|
2644
|
+
* Returns a new list by plucking the same named property off all objects in
|
|
2645
|
+
* the list supplied.
|
|
2646
|
+
*
|
|
2647
|
+
* `pluck` will work on
|
|
2648
|
+
* any [functor](https://github.com/fantasyland/fantasy-land#functor) in
|
|
2649
|
+
* addition to arrays, as it is equivalent to `R.map(R.prop(k), f)`.
|
|
2650
|
+
*
|
|
2651
|
+
* @func
|
|
2652
|
+
* @memberOf R
|
|
2653
|
+
* @since v0.1.0
|
|
2654
|
+
* @category List
|
|
2655
|
+
* @sig Functor f => k -> f {k: v} -> f v
|
|
2656
|
+
* @param {Number|String} key The key name to pluck off of each object.
|
|
2657
|
+
* @param {Array} f The array or functor to consider.
|
|
2658
|
+
* @return {Array} The list of values for the given key.
|
|
2659
|
+
* @see R.project, R.prop, R.props
|
|
2660
|
+
* @example
|
|
2661
|
+
*
|
|
2662
|
+
* var getAges = R.pluck('age');
|
|
2663
|
+
* getAges([{name: 'fred', age: 29}, {name: 'wilma', age: 27}]); //=> [29, 27]
|
|
2664
|
+
*
|
|
2665
|
+
* R.pluck(0, [[1, 2], [3, 4]]); //=> [1, 3]
|
|
2666
|
+
* R.pluck('val', {a: {val: 3}, b: {val: 5}}); //=> {a: 3, b: 5}
|
|
2667
|
+
* @symb R.pluck('x', [{x: 1, y: 2}, {x: 3, y: 4}, {x: 5, y: 6}]) = [1, 3, 5]
|
|
2668
|
+
* @symb R.pluck(0, [[1, 2], [3, 4], [5, 6]]) = [1, 3, 5]
|
|
2669
|
+
*/
|
|
2670
|
+
var pluck = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function pluck(p, list) {
|
|
2671
|
+
return (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_prop_js__WEBPACK_IMPORTED_MODULE_2__["default"])(p), list);
|
|
2672
|
+
});
|
|
2673
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (pluck);
|
|
2674
|
+
|
|
2675
|
+
/***/ }),
|
|
2676
|
+
|
|
2677
|
+
/***/ 9702:
|
|
2678
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2679
|
+
|
|
2680
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2681
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2682
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2683
|
+
/* harmony export */ });
|
|
2684
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9784);
|
|
2685
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2572);
|
|
2686
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
2687
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
2688
|
+
|
|
2689
|
+
|
|
2690
|
+
/**
|
|
2691
|
+
* Checks if input value is `Generator Function`.
|
|
2692
|
+
*
|
|
2693
|
+
* @func isGeneratorFunction
|
|
2694
|
+
* @memberOf RA
|
|
2695
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
|
2696
|
+
* @category Type
|
|
2697
|
+
* @sig * -> Boolean
|
|
2698
|
+
* @param {*} val The value to test
|
|
2699
|
+
* @return {boolean}
|
|
2700
|
+
* @see {@link RA.isFunction|isFunction}, {@link RA.isAsyncFunction|isAsyncFunction}, {@link RA.isNotGeneratorFunction|isNotGeneratorFunction}
|
|
2701
|
+
* @example
|
|
2702
|
+
*
|
|
2703
|
+
* RA.isGeneratorFunction(function* test() { }); //=> true
|
|
2704
|
+
* RA.isGeneratorFunction(null); //=> false
|
|
2705
|
+
* RA.isGeneratorFunction(function test() { }); //=> false
|
|
2706
|
+
* RA.isGeneratorFunction(() => {}); //=> false
|
|
2707
|
+
*/
|
|
2708
|
+
var isGeneratorFunction = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('GeneratorFunction')));
|
|
2709
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isGeneratorFunction);
|
|
2710
|
+
|
|
2711
|
+
/***/ }),
|
|
2712
|
+
|
|
2713
|
+
/***/ 9728:
|
|
2714
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2715
|
+
|
|
2716
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2717
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2718
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2719
|
+
/* harmony export */ });
|
|
2720
|
+
/* harmony import */ var _createReduce_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4334);
|
|
2721
|
+
/* harmony import */ var _xArrayReduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2719);
|
|
2722
|
+
/* harmony import */ var _bind_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(560);
|
|
2723
|
+
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
function _xIterableReduce(xf, acc, iter) {
|
|
2727
|
+
var step = iter.next();
|
|
2728
|
+
while (!step.done) {
|
|
2729
|
+
acc = xf['@@transducer/step'](acc, step.value);
|
|
2730
|
+
if (acc && acc['@@transducer/reduced']) {
|
|
2731
|
+
acc = acc['@@transducer/value'];
|
|
2732
|
+
break;
|
|
2733
|
+
}
|
|
2734
|
+
step = iter.next();
|
|
2735
|
+
}
|
|
2736
|
+
return xf['@@transducer/result'](acc);
|
|
2737
|
+
}
|
|
2738
|
+
function _xMethodReduce(xf, acc, obj, methodName) {
|
|
2739
|
+
return xf['@@transducer/result'](obj[methodName]((0,_bind_js__WEBPACK_IMPORTED_MODULE_2__["default"])(xf['@@transducer/step'], xf), acc));
|
|
2740
|
+
}
|
|
2741
|
+
var _xReduce = /*#__PURE__*/(0,_createReduce_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_xArrayReduce_js__WEBPACK_IMPORTED_MODULE_1__["default"], _xMethodReduce, _xIterableReduce);
|
|
2742
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_xReduce);
|
|
2743
|
+
|
|
2744
|
+
/***/ }),
|
|
2745
|
+
|
|
2746
|
+
/***/ 9784:
|
|
2747
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2748
|
+
|
|
2749
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2750
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2751
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2752
|
+
/* harmony export */ });
|
|
2753
|
+
/* harmony import */ var _internal_arity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3607);
|
|
2754
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8938);
|
|
2755
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5959);
|
|
2756
|
+
/* harmony import */ var _internal_curryN_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2459);
|
|
2757
|
+
|
|
2758
|
+
|
|
2759
|
+
|
|
2760
|
+
|
|
2761
|
+
|
|
2762
|
+
/**
|
|
2763
|
+
* Returns a curried equivalent of the provided function, with the specified
|
|
2764
|
+
* arity. The curried function has two unusual capabilities. First, its
|
|
2765
|
+
* arguments needn't be provided one at a time. If `g` is `R.curryN(3, f)`, the
|
|
2766
|
+
* following are equivalent:
|
|
2767
|
+
*
|
|
2768
|
+
* - `g(1)(2)(3)`
|
|
2769
|
+
* - `g(1)(2, 3)`
|
|
2770
|
+
* - `g(1, 2)(3)`
|
|
2771
|
+
* - `g(1, 2, 3)`
|
|
2772
|
+
*
|
|
2773
|
+
* Secondly, the special placeholder value [`R.__`](#__) may be used to specify
|
|
2774
|
+
* "gaps", allowing partial application of any combination of arguments,
|
|
2775
|
+
* regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),
|
|
2776
|
+
* the following are equivalent:
|
|
2777
|
+
*
|
|
2778
|
+
* - `g(1, 2, 3)`
|
|
2779
|
+
* - `g(_, 2, 3)(1)`
|
|
2780
|
+
* - `g(_, _, 3)(1)(2)`
|
|
2781
|
+
* - `g(_, _, 3)(1, 2)`
|
|
2782
|
+
* - `g(_, 2)(1)(3)`
|
|
2783
|
+
* - `g(_, 2)(1, 3)`
|
|
2784
|
+
* - `g(_, 2)(_, 3)(1)`
|
|
2785
|
+
*
|
|
2786
|
+
* @func
|
|
2787
|
+
* @memberOf R
|
|
2788
|
+
* @since v0.5.0
|
|
2789
|
+
* @category Function
|
|
2790
|
+
* @sig Number -> (* -> a) -> (* -> a)
|
|
2791
|
+
* @param {Number} length The arity for the returned function.
|
|
2792
|
+
* @param {Function} fn The function to curry.
|
|
2793
|
+
* @return {Function} A new, curried function.
|
|
2794
|
+
* @see R.curry
|
|
2795
|
+
* @example
|
|
2796
|
+
*
|
|
2797
|
+
* const sumArgs = (...args) => R.sum(args);
|
|
2798
|
+
*
|
|
2799
|
+
* const curriedAddFourNumbers = R.curryN(4, sumArgs);
|
|
2800
|
+
* const f = curriedAddFourNumbers(1, 2);
|
|
2801
|
+
* const g = f(3);
|
|
2802
|
+
* g(4); //=> 10
|
|
2803
|
+
*/
|
|
2804
|
+
var curryN = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_2__["default"])(function curryN(length, fn) {
|
|
2805
|
+
if (length === 1) {
|
|
2806
|
+
return (0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fn);
|
|
2807
|
+
}
|
|
2808
|
+
return (0,_internal_arity_js__WEBPACK_IMPORTED_MODULE_0__["default"])(length, (0,_internal_curryN_js__WEBPACK_IMPORTED_MODULE_3__["default"])(length, [], fn));
|
|
2809
|
+
});
|
|
2810
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (curryN);
|
|
2811
|
+
|
|
2812
|
+
/***/ })
|
|
2813
|
+
|
|
2814
|
+
/******/ });
|
|
2815
|
+
/************************************************************************/
|
|
2816
|
+
/******/ // The module cache
|
|
2817
|
+
/******/ var __webpack_module_cache__ = {};
|
|
2818
|
+
/******/
|
|
2819
|
+
/******/ // The require function
|
|
2820
|
+
/******/ function __webpack_require__(moduleId) {
|
|
2821
|
+
/******/ // Check if module is in cache
|
|
2822
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
2823
|
+
/******/ if (cachedModule !== undefined) {
|
|
2824
|
+
/******/ return cachedModule.exports;
|
|
2825
|
+
/******/ }
|
|
2826
|
+
/******/ // Create a new module (and put it into the cache)
|
|
2827
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2828
|
+
/******/ // no module.id needed
|
|
2829
|
+
/******/ // no module.loaded needed
|
|
2830
|
+
/******/ exports: {}
|
|
2831
|
+
/******/ };
|
|
2832
|
+
/******/
|
|
2833
|
+
/******/ // Execute the module function
|
|
2834
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
2835
|
+
/******/
|
|
2836
|
+
/******/ // Return the exports of the module
|
|
2837
|
+
/******/ return module.exports;
|
|
2838
|
+
/******/ }
|
|
2839
|
+
/******/
|
|
2840
|
+
/************************************************************************/
|
|
2841
|
+
/******/ /* webpack/runtime/define property getters */
|
|
2842
|
+
/******/ (() => {
|
|
2843
|
+
/******/ // define getter functions for harmony exports
|
|
2844
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
2845
|
+
/******/ for(var key in definition) {
|
|
2846
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
2847
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
2848
|
+
/******/ }
|
|
2849
|
+
/******/ }
|
|
2850
|
+
/******/ };
|
|
2851
|
+
/******/ })();
|
|
2852
|
+
/******/
|
|
2853
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
2854
|
+
/******/ (() => {
|
|
2855
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
2856
|
+
/******/ })();
|
|
2857
|
+
/******/
|
|
2858
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
2859
|
+
/******/ (() => {
|
|
2860
|
+
/******/ // define __esModule on exports
|
|
2861
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
2862
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
2863
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2864
|
+
/******/ }
|
|
2865
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
2866
|
+
/******/ };
|
|
2867
|
+
/******/ })();
|
|
2868
|
+
/******/
|
|
2869
|
+
/************************************************************************/
|
|
2870
|
+
var __webpack_exports__ = {};
|
|
2871
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2872
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2873
|
+
/* harmony export */ ParserError: () => (/* reexport safe */ _errors_ParserError_ts__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
2874
|
+
/* harmony export */ "default": () => (parser)
|
|
2875
|
+
/* harmony export */ });
|
|
2876
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5121);
|
|
2877
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3031);
|
|
2878
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3834);
|
|
2879
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5102);
|
|
2880
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6867);
|
|
2881
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2275);
|
|
2882
|
+
/* harmony import */ var _errors_ParserError_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4212);
|
|
2883
|
+
|
|
2884
|
+
|
|
2885
|
+
|
|
2886
|
+
|
|
2887
|
+
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* @public
|
|
2891
|
+
*/
|
|
2892
|
+
class ApiDOMParser {
|
|
2893
|
+
adapters = [];
|
|
2894
|
+
async detectAdapterCandidates(source) {
|
|
2895
|
+
const candidates = [];
|
|
2896
|
+
for (const adapter of this.adapters) {
|
|
2897
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"])(adapter.detect) && (await adapter.detect(source))) {
|
|
2898
|
+
candidates.push(adapter);
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2901
|
+
return candidates;
|
|
2902
|
+
}
|
|
2903
|
+
async findAdapter(source, mediaType) {
|
|
2904
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__["default"])(mediaType)) {
|
|
2905
|
+
return this.adapters.find(adapter => {
|
|
2906
|
+
if (!(0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(adapter.mediaTypes)) return false;
|
|
2907
|
+
return adapter.mediaTypes.includes(mediaType);
|
|
2908
|
+
});
|
|
2909
|
+
}
|
|
2910
|
+
const candidates = await this.detectAdapterCandidates(source);
|
|
2911
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(candidates);
|
|
2912
|
+
}
|
|
2913
|
+
use(adapter) {
|
|
2914
|
+
this.adapters.push(adapter);
|
|
2915
|
+
return this;
|
|
2916
|
+
}
|
|
2917
|
+
async findNamespace(source, options = {}) {
|
|
2918
|
+
const adapter = await this.findAdapter(source, options.mediaType);
|
|
2919
|
+
return adapter?.namespace;
|
|
2920
|
+
}
|
|
2921
|
+
async findMediaType(source) {
|
|
2922
|
+
const adapter = await this.findAdapter(source, undefined);
|
|
2923
|
+
if (typeof adapter === 'undefined') {
|
|
2924
|
+
return new _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_5__["default"]().unknownMediaType;
|
|
2925
|
+
}
|
|
2926
|
+
if (typeof adapter.mediaTypes === 'undefined') {
|
|
2927
|
+
return new _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_5__["default"]().unknownMediaType;
|
|
2928
|
+
}
|
|
2929
|
+
if (typeof adapter.detectionRegExp === 'undefined') {
|
|
2930
|
+
return adapter.mediaTypes.latest();
|
|
2931
|
+
}
|
|
2932
|
+
const {
|
|
2933
|
+
detectionRegExp
|
|
2934
|
+
} = adapter;
|
|
2935
|
+
const matches = source.match(detectionRegExp);
|
|
2936
|
+
if (matches === null) {
|
|
2937
|
+
return new _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_5__["default"]().unknownMediaType;
|
|
2938
|
+
}
|
|
2939
|
+
const {
|
|
2940
|
+
groups
|
|
2941
|
+
} = matches;
|
|
2942
|
+
const version = groups?.version || groups?.version_json || groups?.version_yaml;
|
|
2943
|
+
const format = groups?.version_json ? 'json' : groups?.version_yaml ? 'yaml' : 'generic';
|
|
2944
|
+
if (typeof version === 'undefined') {
|
|
2945
|
+
return adapter.mediaTypes.latest();
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
// @ts-ignore
|
|
2949
|
+
return adapter.mediaTypes.findBy(version, format);
|
|
2950
|
+
}
|
|
2951
|
+
async parse(source, options = {}) {
|
|
2952
|
+
let adapter;
|
|
2953
|
+
try {
|
|
2954
|
+
adapter = await this.findAdapter(source, options.mediaType);
|
|
2955
|
+
} catch (error) {
|
|
2956
|
+
throw new _errors_ParserError_ts__WEBPACK_IMPORTED_MODULE_6__["default"]('Encountered an unexpected error while matching parser adapters against the source.', {
|
|
2957
|
+
source,
|
|
2958
|
+
parserOptions: options,
|
|
2959
|
+
cause: error
|
|
2960
|
+
});
|
|
2961
|
+
}
|
|
2962
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__["default"])(adapter)) {
|
|
2963
|
+
throw new _errors_ParserError_ts__WEBPACK_IMPORTED_MODULE_6__["default"]('Source did not match any registered parsers', {
|
|
2964
|
+
source,
|
|
2965
|
+
parserOptions: options
|
|
2966
|
+
});
|
|
2967
|
+
}
|
|
2968
|
+
try {
|
|
2969
|
+
return adapter.parse(source, options);
|
|
2970
|
+
} catch (error) {
|
|
2971
|
+
throw new _errors_ParserError_ts__WEBPACK_IMPORTED_MODULE_6__["default"]('Parsing encountered an unexpected error.', {
|
|
2972
|
+
source,
|
|
2973
|
+
parserOptions: options,
|
|
2974
|
+
cause: error
|
|
2975
|
+
});
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
/* harmony default export */ const parser = (ApiDOMParser);
|
|
2980
|
+
/******/ return __webpack_exports__;
|
|
2981
|
+
/******/ })()
|
|
2982
|
+
;
|
|
2983
|
+
});
|