UNPKG

@dev-tool-kit/libs

Version:
1,634 lines (1,516 loc) 131 kB
(() => { var __defineProperty = Object.defineProperty; var __commonJS = (callback, module) => () => { if (!module) { module = {exports: {}}; callback(module.exports, module); } return module.exports; }; var __markAsModule = (target) => { return __defineProperty(target, "__esModule", {value: true}); }; var __export = (target, all5) => { __markAsModule(target); for (var name in all5) __defineProperty(target, name, {get: all5[name], enumerable: true}); }; // packages/libs/src/index.ts var require_src = __commonJS((exports) => { __export(exports, { add: () => add7, fp: () => es_exports }); function add7(a, b) { return a + b; } }); // node_modules/ramda/es/F.js var F = function() { return false; }; var F_default = F; // node_modules/ramda/es/T.js var T = function() { return true; }; var T_default = T; // node_modules/ramda/es/__.js var __default = { "@@functional/placeholder": true }; // node_modules/ramda/es/internal/_isPlaceholder.js function _isPlaceholder(a) { return a != null && typeof a === "object" && a["@@functional/placeholder"] === true; } // node_modules/ramda/es/internal/_curry1.js function _curry1(fn) { return function f1(a) { if (arguments.length === 0 || _isPlaceholder(a)) { return f1; } else { return fn.apply(this, arguments); } }; } // node_modules/ramda/es/internal/_curry2.js function _curry2(fn) { return function f2(a, b) { switch (arguments.length) { case 0: return f2; case 1: return _isPlaceholder(a) ? f2 : _curry1(function(_b) { return fn(a, _b); }); default: return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function(_a) { return fn(_a, b); }) : _isPlaceholder(b) ? _curry1(function(_b) { return fn(a, _b); }) : fn(a, b); } }; } // node_modules/ramda/es/add.js var add = /* @__PURE__ */ _curry2(function add2(a, b) { return Number(a) + Number(b); }); var add_default = add; // node_modules/ramda/es/internal/_concat.js function _concat(set1, set22) { set1 = set1 || []; set22 = set22 || []; var idx; var len1 = set1.length; var len2 = set22.length; var result = []; idx = 0; while (idx < len1) { result[result.length] = set1[idx]; idx += 1; } idx = 0; while (idx < len2) { result[result.length] = set22[idx]; idx += 1; } return result; } // node_modules/ramda/es/internal/_arity.js function _arity(n, fn) { switch (n) { case 0: return function() { return fn.apply(this, arguments); }; case 1: return function(a0) { return fn.apply(this, arguments); }; case 2: return function(a0, a1) { return fn.apply(this, arguments); }; case 3: return function(a0, a1, a2) { return fn.apply(this, arguments); }; case 4: return function(a0, a1, a2, a3) { return fn.apply(this, arguments); }; case 5: return function(a0, a1, a2, a3, a4) { return fn.apply(this, arguments); }; case 6: return function(a0, a1, a2, a3, a4, a5) { return fn.apply(this, arguments); }; case 7: return function(a0, a1, a2, a3, a4, a5, a6) { return fn.apply(this, arguments); }; case 8: return function(a0, a1, a2, a3, a4, a5, a6, a7) { return fn.apply(this, arguments); }; case 9: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8) { return fn.apply(this, arguments); }; case 10: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) { return fn.apply(this, arguments); }; default: throw new Error("First argument to _arity must be a non-negative integer no greater than ten"); } } // node_modules/ramda/es/internal/_curryN.js function _curryN(length5, received, fn) { return function() { var combined = []; var argsIdx = 0; var left = length5; var combinedIdx = 0; while (combinedIdx < received.length || argsIdx < arguments.length) { var result; if (combinedIdx < received.length && (!_isPlaceholder(received[combinedIdx]) || argsIdx >= arguments.length)) { result = received[combinedIdx]; } else { result = arguments[argsIdx]; argsIdx += 1; } combined[combinedIdx] = result; if (!_isPlaceholder(result)) { left -= 1; } combinedIdx += 1; } return left <= 0 ? fn.apply(this, combined) : _arity(left, _curryN(length5, combined, fn)); }; } // node_modules/ramda/es/curryN.js var curryN2 = /* @__PURE__ */ _curry2(function curryN3(length5, fn) { if (length5 === 1) { return _curry1(fn); } return _arity(length5, _curryN(length5, [], fn)); }); var curryN_default = curryN2; // node_modules/ramda/es/addIndex.js var addIndex = /* @__PURE__ */ _curry1(function addIndex2(fn) { return curryN_default(fn.length, function() { var idx = 0; var origFn = arguments[0]; var list = arguments[arguments.length - 1]; var args = Array.prototype.slice.call(arguments, 0); args[0] = function() { var result = origFn.apply(this, _concat(arguments, [idx, list])); idx += 1; return result; }; return fn.apply(this, args); }); }); var addIndex_default = addIndex; // node_modules/ramda/es/internal/_curry3.js function _curry3(fn) { return function f3(a, b, c) { switch (arguments.length) { case 0: return f3; case 1: return _isPlaceholder(a) ? f3 : _curry2(function(_b, _c) { return fn(a, _b, _c); }); case 2: return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2(function(_a, _c) { return fn(_a, b, _c); }) : _isPlaceholder(b) ? _curry2(function(_b, _c) { return fn(a, _b, _c); }) : _curry1(function(_c) { return fn(a, b, _c); }); default: return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function(_a, _b) { return fn(_a, _b, c); }) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function(_a, _c) { return fn(_a, b, _c); }) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function(_b, _c) { return fn(a, _b, _c); }) : _isPlaceholder(a) ? _curry1(function(_a) { return fn(_a, b, c); }) : _isPlaceholder(b) ? _curry1(function(_b) { return fn(a, _b, c); }) : _isPlaceholder(c) ? _curry1(function(_c) { return fn(a, b, _c); }) : fn(a, b, c); } }; } // node_modules/ramda/es/adjust.js var adjust = /* @__PURE__ */ _curry3(function adjust2(idx, fn, list) { if (idx >= list.length || idx < -list.length) { return list; } var start = idx < 0 ? list.length : 0; var _idx = start + idx; var _list = _concat(list); _list[_idx] = fn(list[_idx]); return _list; }); var adjust_default = adjust; // node_modules/ramda/es/internal/_isArray.js var isArray_default = Array.isArray || function _isArray(val) { return val != null && val.length >= 0 && Object.prototype.toString.call(val) === "[object Array]"; }; // node_modules/ramda/es/internal/_isTransformer.js function _isTransformer(obj) { return obj != null && typeof obj["@@transducer/step"] === "function"; } // node_modules/ramda/es/internal/_dispatchable.js function _dispatchable(methodNames, xf, fn) { return function() { if (arguments.length === 0) { return fn(); } var args = Array.prototype.slice.call(arguments, 0); var obj = args.pop(); if (!isArray_default(obj)) { var idx = 0; while (idx < methodNames.length) { if (typeof obj[methodNames[idx]] === "function") { return obj[methodNames[idx]].apply(obj, args); } idx += 1; } if (_isTransformer(obj)) { var transducer = xf.apply(null, args); return transducer(obj); } } return fn.apply(this, arguments); }; } // node_modules/ramda/es/internal/_reduced.js function _reduced(x) { return x && x["@@transducer/reduced"] ? x : { "@@transducer/value": x, "@@transducer/reduced": true }; } // node_modules/ramda/es/internal/_xfBase.js var xfBase_default = { init: function() { return this.xf["@@transducer/init"](); }, result: function(result) { return this.xf["@@transducer/result"](result); } }; // node_modules/ramda/es/internal/_xall.js var XAll = /* @__PURE__ */ function() { function XAll2(f, xf) { this.xf = xf; this.f = f; this.all = true; } XAll2.prototype["@@transducer/init"] = xfBase_default.init; XAll2.prototype["@@transducer/result"] = function(result) { if (this.all) { result = this.xf["@@transducer/step"](result, true); } return this.xf["@@transducer/result"](result); }; XAll2.prototype["@@transducer/step"] = function(result, input) { if (!this.f(input)) { this.all = false; result = _reduced(this.xf["@@transducer/step"](result, false)); } return result; }; return XAll2; }(); var _xall = /* @__PURE__ */ _curry2(function _xall2(f, xf) { return new XAll(f, xf); }); var xall_default = _xall; // node_modules/ramda/es/all.js var all = /* @__PURE__ */ _curry2(/* @__PURE__ */ _dispatchable(["all"], xall_default, function all2(fn, list) { var idx = 0; while (idx < list.length) { if (!fn(list[idx])) { return false; } idx += 1; } return true; })); var all_default = all; // node_modules/ramda/es/max.js var max = /* @__PURE__ */ _curry2(function max2(a, b) { return b > a ? b : a; }); var max_default = max; // node_modules/ramda/es/internal/_map.js function _map(fn, functor) { var idx = 0; var len = functor.length; var result = Array(len); while (idx < len) { result[idx] = fn(functor[idx]); idx += 1; } return result; } // node_modules/ramda/es/internal/_isString.js function _isString(x) { return Object.prototype.toString.call(x) === "[object String]"; } // node_modules/ramda/es/internal/_isArrayLike.js var _isArrayLike = /* @__PURE__ */ _curry1(function isArrayLike(x) { if (isArray_default(x)) { return true; } if (!x) { return false; } if (typeof x !== "object") { return false; } if (_isString(x)) { return false; } if (x.nodeType === 1) { return !!x.length; } if (x.length === 0) { return true; } if (x.length > 0) { return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1); } return false; }); var isArrayLike_default = _isArrayLike; // node_modules/ramda/es/internal/_xwrap.js var XWrap = /* @__PURE__ */ function() { function XWrap2(fn) { this.f = fn; } XWrap2.prototype["@@transducer/init"] = function() { throw new Error("init not implemented on XWrap"); }; XWrap2.prototype["@@transducer/result"] = function(acc) { return acc; }; XWrap2.prototype["@@transducer/step"] = function(acc, x) { return this.f(acc, x); }; return XWrap2; }(); function _xwrap(fn) { return new XWrap(fn); } // node_modules/ramda/es/bind.js var bind = /* @__PURE__ */ _curry2(function bind2(fn, thisObj) { return _arity(fn.length, function() { return fn.apply(thisObj, arguments); }); }); var bind_default = bind; // node_modules/ramda/es/internal/_reduce.js function _arrayReduce(xf, acc, list) { var idx = 0; var len = list.length; while (idx < len) { acc = xf["@@transducer/step"](acc, list[idx]); if (acc && acc["@@transducer/reduced"]) { acc = acc["@@transducer/value"]; break; } idx += 1; } return xf["@@transducer/result"](acc); } function _iterableReduce(xf, acc, iter) { var step = iter.next(); while (!step.done) { acc = xf["@@transducer/step"](acc, step.value); if (acc && acc["@@transducer/reduced"]) { acc = acc["@@transducer/value"]; break; } step = iter.next(); } return xf["@@transducer/result"](acc); } function _methodReduce(xf, acc, obj, methodName) { return xf["@@transducer/result"](obj[methodName](bind_default(xf["@@transducer/step"], xf), acc)); } var symIterator = typeof Symbol !== "undefined" ? Symbol.iterator : "@@iterator"; function _reduce(fn, acc, list) { if (typeof fn === "function") { fn = _xwrap(fn); } if (isArrayLike_default(list)) { return _arrayReduce(fn, acc, list); } if (typeof list["fantasy-land/reduce"] === "function") { return _methodReduce(fn, acc, list, "fantasy-land/reduce"); } if (list[symIterator] != null) { return _iterableReduce(fn, acc, list[symIterator]()); } if (typeof list.next === "function") { return _iterableReduce(fn, acc, list); } if (typeof list.reduce === "function") { return _methodReduce(fn, acc, list, "reduce"); } throw new TypeError("reduce: list must be array or iterable"); } // node_modules/ramda/es/internal/_xmap.js var XMap = /* @__PURE__ */ function() { function XMap2(f, xf) { this.xf = xf; this.f = f; } XMap2.prototype["@@transducer/init"] = xfBase_default.init; XMap2.prototype["@@transducer/result"] = xfBase_default.result; XMap2.prototype["@@transducer/step"] = function(result, input) { return this.xf["@@transducer/step"](result, this.f(input)); }; return XMap2; }(); var _xmap = /* @__PURE__ */ _curry2(function _xmap2(f, xf) { return new XMap(f, xf); }); var xmap_default = _xmap; // node_modules/ramda/es/internal/_has.js function _has(prop6, obj) { return Object.prototype.hasOwnProperty.call(obj, prop6); } // node_modules/ramda/es/internal/_isArguments.js var toString = Object.prototype.toString; var _isArguments = /* @__PURE__ */ function() { return toString.call(arguments) === "[object Arguments]" ? function _isArguments2(x) { return toString.call(x) === "[object Arguments]"; } : function _isArguments2(x) { return _has("callee", x); }; }(); var isArguments_default = _isArguments; // node_modules/ramda/es/keys.js var hasEnumBug = !/* @__PURE__ */ { toString: null }.propertyIsEnumerable("toString"); var nonEnumerableProps = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"]; var hasArgsEnumBug = /* @__PURE__ */ function() { "use strict"; return arguments.propertyIsEnumerable("length"); }(); var contains = function contains2(list, item) { var idx = 0; while (idx < list.length) { if (list[idx] === item) { return true; } idx += 1; } return false; }; var keys = typeof Object.keys === "function" && !hasArgsEnumBug ? /* @__PURE__ */ _curry1(function keys2(obj) { return Object(obj) !== obj ? [] : Object.keys(obj); }) : /* @__PURE__ */ _curry1(function keys3(obj) { if (Object(obj) !== obj) { return []; } var prop6, nIdx; var ks = []; var checkArgsLength = hasArgsEnumBug && isArguments_default(obj); for (prop6 in obj) { if (_has(prop6, obj) && (!checkArgsLength || prop6 !== "length")) { ks[ks.length] = prop6; } } if (hasEnumBug) { nIdx = nonEnumerableProps.length - 1; while (nIdx >= 0) { prop6 = nonEnumerableProps[nIdx]; if (_has(prop6, obj) && !contains(ks, prop6)) { ks[ks.length] = prop6; } nIdx -= 1; } } return ks; }); var keys_default = keys; // node_modules/ramda/es/map.js var map2 = /* @__PURE__ */ _curry2(/* @__PURE__ */ _dispatchable(["fantasy-land/map", "map"], xmap_default, function map3(fn, functor) { switch (Object.prototype.toString.call(functor)) { case "[object Function]": return curryN_default(functor.length, function() { return fn.call(this, functor.apply(this, arguments)); }); case "[object Object]": return _reduce(function(acc, key) { acc[key] = fn(functor[key]); return acc; }, {}, keys_default(functor)); default: return _map(fn, functor); } })); var map_default = map2; // node_modules/ramda/es/internal/_isInteger.js var isInteger_default = Number.isInteger || function _isInteger(n) { return n << 0 === n; }; // node_modules/ramda/es/nth.js var nth = /* @__PURE__ */ _curry2(function nth2(offset, list) { var idx = offset < 0 ? list.length + offset : offset; return _isString(list) ? list.charAt(idx) : list[idx]; }); var nth_default = nth; // node_modules/ramda/es/paths.js var paths = /* @__PURE__ */ _curry2(function paths2(pathsArray, obj) { return pathsArray.map(function(paths5) { var val = obj; var idx = 0; var p; while (idx < paths5.length) { if (val == null) { return; } p = paths5[idx]; val = isInteger_default(p) ? nth_default(p, val) : val[p]; idx += 1; } return val; }); }); var paths_default = paths; // node_modules/ramda/es/path.js var path = /* @__PURE__ */ _curry2(function path2(pathAr, obj) { return paths_default([pathAr], obj)[0]; }); var path_default = path; // node_modules/ramda/es/prop.js var prop = /* @__PURE__ */ _curry2(function prop2(p, obj) { return path_default([p], obj); }); var prop_default = prop; // node_modules/ramda/es/pluck.js var pluck = /* @__PURE__ */ _curry2(function pluck2(p, list) { return map_default(prop_default(p), list); }); var pluck_default = pluck; // node_modules/ramda/es/reduce.js var reduce3 = /* @__PURE__ */ _curry3(_reduce); var reduce_default = reduce3; // node_modules/ramda/es/allPass.js var allPass = /* @__PURE__ */ _curry1(function allPass2(preds) { return curryN_default(reduce_default(max_default, 0, pluck_default("length", preds)), function() { var idx = 0; var len = preds.length; while (idx < len) { if (!preds[idx].apply(this, arguments)) { return false; } idx += 1; } return true; }); }); var allPass_default = allPass; // node_modules/ramda/es/always.js var always = /* @__PURE__ */ _curry1(function always2(val) { return function() { return val; }; }); var always_default = always; // node_modules/ramda/es/and.js var and = /* @__PURE__ */ _curry2(function and2(a, b) { return a && b; }); var and_default = and; // node_modules/ramda/es/internal/_xany.js var XAny = /* @__PURE__ */ function() { function XAny2(f, xf) { this.xf = xf; this.f = f; this.any = false; } XAny2.prototype["@@transducer/init"] = xfBase_default.init; XAny2.prototype["@@transducer/result"] = function(result) { if (!this.any) { result = this.xf["@@transducer/step"](result, false); } return this.xf["@@transducer/result"](result); }; XAny2.prototype["@@transducer/step"] = function(result, input) { if (this.f(input)) { this.any = true; result = _reduced(this.xf["@@transducer/step"](result, true)); } return result; }; return XAny2; }(); var _xany = /* @__PURE__ */ _curry2(function _xany2(f, xf) { return new XAny(f, xf); }); var xany_default = _xany; // node_modules/ramda/es/any.js var any = /* @__PURE__ */ _curry2(/* @__PURE__ */ _dispatchable(["any"], xany_default, function any2(fn, list) { var idx = 0; while (idx < list.length) { if (fn(list[idx])) { return true; } idx += 1; } return false; })); var any_default = any; // node_modules/ramda/es/anyPass.js var anyPass = /* @__PURE__ */ _curry1(function anyPass2(preds) { return curryN_default(reduce_default(max_default, 0, pluck_default("length", preds)), function() { var idx = 0; var len = preds.length; while (idx < len) { if (preds[idx].apply(this, arguments)) { return true; } idx += 1; } return false; }); }); var anyPass_default = anyPass; // node_modules/ramda/es/ap.js var ap = /* @__PURE__ */ _curry2(function ap2(applyF, applyX) { return typeof applyX["fantasy-land/ap"] === "function" ? applyX["fantasy-land/ap"](applyF) : typeof applyF.ap === "function" ? applyF.ap(applyX) : typeof applyF === "function" ? function(x) { return applyF(x)(applyX(x)); } : _reduce(function(acc, f) { return _concat(acc, map_default(f, applyX)); }, [], applyF); }); var ap_default = ap; // node_modules/ramda/es/internal/_aperture.js function _aperture(n, list) { var idx = 0; var limit = list.length - (n - 1); var acc = new Array(limit >= 0 ? limit : 0); while (idx < limit) { acc[idx] = Array.prototype.slice.call(list, idx, idx + n); idx += 1; } return acc; } // node_modules/ramda/es/internal/_xaperture.js var XAperture = /* @__PURE__ */ function() { function XAperture2(n, xf) { this.xf = xf; this.pos = 0; this.full = false; this.acc = new Array(n); } XAperture2.prototype["@@transducer/init"] = xfBase_default.init; XAperture2.prototype["@@transducer/result"] = function(result) { this.acc = null; return this.xf["@@transducer/result"](result); }; XAperture2.prototype["@@transducer/step"] = function(result, input) { this.store(input); return this.full ? this.xf["@@transducer/step"](result, this.getCopy()) : result; }; XAperture2.prototype.store = function(input) { this.acc[this.pos] = input; this.pos += 1; if (this.pos === this.acc.length) { this.pos = 0; this.full = true; } }; XAperture2.prototype.getCopy = function() { return _concat(Array.prototype.slice.call(this.acc, this.pos), Array.prototype.slice.call(this.acc, 0, this.pos)); }; return XAperture2; }(); var _xaperture = /* @__PURE__ */ _curry2(function _xaperture2(n, xf) { return new XAperture(n, xf); }); var xaperture_default = _xaperture; // node_modules/ramda/es/aperture.js var aperture2 = /* @__PURE__ */ _curry2(/* @__PURE__ */ _dispatchable([], xaperture_default, _aperture)); var aperture_default = aperture2; // node_modules/ramda/es/append.js var append = /* @__PURE__ */ _curry2(function append2(el, list) { return _concat(list, [el]); }); var append_default = append; // node_modules/ramda/es/apply.js var apply = /* @__PURE__ */ _curry2(function apply2(fn, args) { return fn.apply(this, args); }); var apply_default = apply; // node_modules/ramda/es/values.js var values = /* @__PURE__ */ _curry1(function values2(obj) { var props4 = keys_default(obj); var len = props4.length; var vals = []; var idx = 0; while (idx < len) { vals[idx] = obj[props4[idx]]; idx += 1; } return vals; }); var values_default = values; // node_modules/ramda/es/applySpec.js function mapValues(fn, obj) { return keys_default(obj).reduce(function(acc, key) { acc[key] = fn(obj[key]); return acc; }, {}); } var applySpec = /* @__PURE__ */ _curry1(function applySpec2(spec) { spec = mapValues(function(v) { return typeof v == "function" ? v : applySpec2(v); }, spec); return curryN_default(reduce_default(max_default, 0, pluck_default("length", values_default(spec))), function() { var args = arguments; return mapValues(function(f) { return apply_default(f, args); }, spec); }); }); var applySpec_default = applySpec; // node_modules/ramda/es/applyTo.js var applyTo = /* @__PURE__ */ _curry2(function applyTo2(x, f) { return f(x); }); var applyTo_default = applyTo; // node_modules/ramda/es/ascend.js var ascend = /* @__PURE__ */ _curry3(function ascend2(fn, a, b) { var aa = fn(a); var bb = fn(b); return aa < bb ? -1 : aa > bb ? 1 : 0; }); var ascend_default = ascend; // node_modules/ramda/es/assoc.js var assoc = /* @__PURE__ */ _curry3(function assoc2(prop6, val, obj) { var result = {}; for (var p in obj) { result[p] = obj[p]; } result[prop6] = val; return result; }); var assoc_default = assoc; // node_modules/ramda/es/isNil.js var isNil = /* @__PURE__ */ _curry1(function isNil2(x) { return x == null; }); var isNil_default = isNil; // node_modules/ramda/es/assocPath.js var assocPath = /* @__PURE__ */ _curry3(function assocPath2(path10, val, obj) { if (path10.length === 0) { return val; } var idx = path10[0]; if (path10.length > 1) { var nextObj = !isNil_default(obj) && _has(idx, obj) ? obj[idx] : isInteger_default(path10[1]) ? [] : {}; val = assocPath2(Array.prototype.slice.call(path10, 1), val, nextObj); } if (isInteger_default(idx) && isArray_default(obj)) { var arr = [].concat(obj); arr[idx] = val; return arr; } else { return assoc_default(idx, val, obj); } }); var assocPath_default = assocPath; // node_modules/ramda/es/nAry.js var nAry = /* @__PURE__ */ _curry2(function nAry2(n, fn) { switch (n) { case 0: return function() { return fn.call(this); }; case 1: return function(a0) { return fn.call(this, a0); }; case 2: return function(a0, a1) { return fn.call(this, a0, a1); }; case 3: return function(a0, a1, a2) { return fn.call(this, a0, a1, a2); }; case 4: return function(a0, a1, a2, a3) { return fn.call(this, a0, a1, a2, a3); }; case 5: return function(a0, a1, a2, a3, a4) { return fn.call(this, a0, a1, a2, a3, a4); }; case 6: return function(a0, a1, a2, a3, a4, a5) { return fn.call(this, a0, a1, a2, a3, a4, a5); }; case 7: return function(a0, a1, a2, a3, a4, a5, a6) { return fn.call(this, a0, a1, a2, a3, a4, a5, a6); }; case 8: return function(a0, a1, a2, a3, a4, a5, a6, a7) { return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7); }; case 9: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8) { return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7, a8); }; case 10: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) { return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); }; default: throw new Error("First argument to nAry must be a non-negative integer no greater than ten"); } }); var nAry_default = nAry; // node_modules/ramda/es/binary.js var binary = /* @__PURE__ */ _curry1(function binary2(fn) { return nAry_default(2, fn); }); var binary_default = binary; // node_modules/ramda/es/internal/_isFunction.js function _isFunction(x) { var type6 = Object.prototype.toString.call(x); return type6 === "[object Function]" || type6 === "[object AsyncFunction]" || type6 === "[object GeneratorFunction]" || type6 === "[object AsyncGeneratorFunction]"; } // node_modules/ramda/es/liftN.js var liftN = /* @__PURE__ */ _curry2(function liftN2(arity12, fn) { var lifted = curryN_default(arity12, fn); return curryN_default(arity12, function() { return _reduce(ap_default, map_default(lifted, arguments[0]), Array.prototype.slice.call(arguments, 1)); }); }); var liftN_default = liftN; // node_modules/ramda/es/lift.js var lift = /* @__PURE__ */ _curry1(function lift2(fn) { return liftN_default(fn.length, fn); }); var lift_default = lift; // node_modules/ramda/es/both.js var both = /* @__PURE__ */ _curry2(function both2(f, g) { return _isFunction(f) ? function _both() { return f.apply(this, arguments) && g.apply(this, arguments); } : lift_default(and_default)(f, g); }); var both_default = both; // node_modules/ramda/es/curry.js var curry = /* @__PURE__ */ _curry1(function curry4(fn) { return curryN_default(fn.length, fn); }); var curry_default = curry; // node_modules/ramda/es/call.js var call = /* @__PURE__ */ curry_default(function call2(fn) { return fn.apply(this, Array.prototype.slice.call(arguments, 1)); }); var call_default = call; // node_modules/ramda/es/internal/_makeFlat.js function _makeFlat(recursive) { return function flatt(list) { var value, jlen, j; var result = []; var idx = 0; var ilen = list.length; while (idx < ilen) { if (isArrayLike_default(list[idx])) { value = recursive ? flatt(list[idx]) : list[idx]; j = 0; jlen = value.length; while (j < jlen) { result[result.length] = value[j]; j += 1; } } else { result[result.length] = list[idx]; } idx += 1; } return result; }; } // node_modules/ramda/es/internal/_forceReduced.js function _forceReduced(x) { return { "@@transducer/value": x, "@@transducer/reduced": true }; } // node_modules/ramda/es/internal/_flatCat.js var preservingReduced = function(xf) { return { "@@transducer/init": xfBase_default.init, "@@transducer/result": function(result) { return xf["@@transducer/result"](result); }, "@@transducer/step": function(result, input) { var ret = xf["@@transducer/step"](result, input); return ret["@@transducer/reduced"] ? _forceReduced(ret) : ret; } }; }; var _flatCat = function _xcat(xf) { var rxf = preservingReduced(xf); return { "@@transducer/init": xfBase_default.init, "@@transducer/result": function(result) { return rxf["@@transducer/result"](result); }, "@@transducer/step": function(result, input) { return !isArrayLike_default(input) ? _reduce(rxf, result, [input]) : _reduce(rxf, result, input); } }; }; var flatCat_default = _flatCat; // node_modules/ramda/es/internal/_xchain.js var _xchain = /* @__PURE__ */ _curry2(function _xchain2(f, xf) { return map_default(f, flatCat_default(xf)); }); var xchain_default = _xchain; // node_modules/ramda/es/chain.js var chain = /* @__PURE__ */ _curry2(/* @__PURE__ */ _dispatchable(["fantasy-land/chain", "chain"], xchain_default, function chain2(fn, monad) { if (typeof monad === "function") { return function(x) { return fn(monad(x))(x); }; } return _makeFlat(false)(map_default(fn, monad)); })); var chain_default = chain; // node_modules/ramda/es/clamp.js var clamp = /* @__PURE__ */ _curry3(function clamp2(min4, max9, value) { if (min4 > max9) { throw new Error("min must not be greater than max in clamp(min, max, value)"); } return value < min4 ? min4 : value > max9 ? max9 : value; }); var clamp_default = clamp; // node_modules/ramda/es/internal/_cloneRegExp.js function _cloneRegExp(pattern) { return new RegExp(pattern.source, (pattern.global ? "g" : "") + (pattern.ignoreCase ? "i" : "") + (pattern.multiline ? "m" : "") + (pattern.sticky ? "y" : "") + (pattern.unicode ? "u" : "")); } // node_modules/ramda/es/type.js var type = /* @__PURE__ */ _curry1(function type2(val) { return val === null ? "Null" : val === void 0 ? "Undefined" : Object.prototype.toString.call(val).slice(8, -1); }); var type_default = type; // node_modules/ramda/es/internal/_clone.js function _clone(value, refFrom, refTo, deep) { var copy = function copy2(copiedValue) { var len = refFrom.length; var idx = 0; while (idx < len) { if (value === refFrom[idx]) { return refTo[idx]; } idx += 1; } refFrom[idx + 1] = value; refTo[idx + 1] = copiedValue; for (var key in value) { copiedValue[key] = deep ? _clone(value[key], refFrom, refTo, true) : value[key]; } return copiedValue; }; switch (type_default(value)) { case "Object": return copy({}); case "Array": return copy([]); case "Date": return new Date(value.valueOf()); case "RegExp": return _cloneRegExp(value); default: return value; } } // node_modules/ramda/es/clone.js var clone2 = /* @__PURE__ */ _curry1(function clone3(value) { return value != null && typeof value.clone === "function" ? value.clone() : _clone(value, [], [], true); }); var clone_default = clone2; // node_modules/ramda/es/comparator.js var comparator = /* @__PURE__ */ _curry1(function comparator2(pred) { return function(a, b) { return pred(a, b) ? -1 : pred(b, a) ? 1 : 0; }; }); var comparator_default = comparator; // node_modules/ramda/es/not.js var not = /* @__PURE__ */ _curry1(function not2(a) { return !a; }); var not_default = not; // node_modules/ramda/es/complement.js var complement = /* @__PURE__ */ lift_default(not_default); var complement_default = complement; // node_modules/ramda/es/internal/_pipe.js function _pipe(f, g) { return function() { return g.call(this, f.apply(this, arguments)); }; } // node_modules/ramda/es/internal/_checkForMethod.js function _checkForMethod(methodname, fn) { return function() { var length5 = arguments.length; if (length5 === 0) { return fn(); } var obj = arguments[length5 - 1]; return isArray_default(obj) || typeof obj[methodname] !== "function" ? fn.apply(this, arguments) : obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length5 - 1)); }; } // node_modules/ramda/es/slice.js var slice = /* @__PURE__ */ _curry3(/* @__PURE__ */ _checkForMethod("slice", function slice2(fromIndex, toIndex, list) { return Array.prototype.slice.call(list, fromIndex, toIndex); })); var slice_default = slice; // node_modules/ramda/es/tail.js var tail = /* @__PURE__ */ _curry1(/* @__PURE__ */ _checkForMethod("tail", /* @__PURE__ */ slice_default(1, Infinity))); var tail_default = tail; // node_modules/ramda/es/pipe.js function pipe2() { if (arguments.length === 0) { throw new Error("pipe requires at least one argument"); } return _arity(arguments[0].length, reduce_default(_pipe, arguments[0], tail_default(arguments))); } // node_modules/ramda/es/reverse.js var reverse = /* @__PURE__ */ _curry1(function reverse2(list) { return _isString(list) ? list.split("").reverse().join("") : Array.prototype.slice.call(list, 0).reverse(); }); var reverse_default = reverse; // node_modules/ramda/es/compose.js function compose() { if (arguments.length === 0) { throw new Error("compose requires at least one argument"); } return pipe2.apply(this, reverse_default(arguments)); } // node_modules/ramda/es/composeK.js function composeK() { if (arguments.length === 0) { throw new Error("composeK requires at least one argument"); } var init3 = Array.prototype.slice.call(arguments); var last4 = init3.pop(); return compose(compose.apply(this, map_default(chain_default, init3)), last4); } // node_modules/ramda/es/internal/_pipeP.js function _pipeP(f, g) { return function() { var ctx = this; return f.apply(ctx, arguments).then(function(x) { return g.call(ctx, x); }); }; } // node_modules/ramda/es/pipeP.js function pipeP2() { if (arguments.length === 0) { throw new Error("pipeP requires at least one argument"); } return _arity(arguments[0].length, reduce_default(_pipeP, arguments[0], tail_default(arguments))); } // node_modules/ramda/es/composeP.js function composeP() { if (arguments.length === 0) { throw new Error("composeP requires at least one argument"); } return pipeP2.apply(this, reverse_default(arguments)); } // node_modules/ramda/es/head.js var head = /* @__PURE__ */ nth_default(0); var head_default = head; // node_modules/ramda/es/internal/_identity.js function _identity(x) { return x; } // node_modules/ramda/es/identity.js var identity2 = /* @__PURE__ */ _curry1(_identity); var identity_default = identity2; // node_modules/ramda/es/pipeWith.js var pipeWith = /* @__PURE__ */ _curry2(function pipeWith2(xf, list) { if (list.length <= 0) { return identity_default; } var headList = head_default(list); var tailList = tail_default(list); return _arity(headList.length, function() { return _reduce(function(result, f) { return xf.call(this, f, result); }, headList.apply(this, arguments), tailList); }); }); var pipeWith_default = pipeWith; // node_modules/ramda/es/composeWith.js var composeWith = /* @__PURE__ */ _curry2(function composeWith2(xf, list) { return pipeWith_default.apply(this, [xf, reverse_default(list)]); }); var composeWith_default = composeWith; // node_modules/ramda/es/internal/_arrayFromIterator.js function _arrayFromIterator(iter) { var list = []; var next; while (!(next = iter.next()).done) { list.push(next.value); } return list; } // node_modules/ramda/es/internal/_includesWith.js function _includesWith(pred, x, list) { var idx = 0; var len = list.length; while (idx < len) { if (pred(x, list[idx])) { return true; } idx += 1; } return false; } // node_modules/ramda/es/internal/_functionName.js function _functionName(f) { var match4 = String(f).match(/^function (\w*)/); return match4 == null ? "" : match4[1]; } // node_modules/ramda/es/internal/_objectIs.js function _objectIs(a, b) { if (a === b) { return a !== 0 || 1 / a === 1 / b; } else { return a !== a && b !== b; } } var objectIs_default = typeof Object.is === "function" ? Object.is : _objectIs; // node_modules/ramda/es/internal/_equals.js function _uniqContentEquals(aIterator, bIterator, stackA, stackB) { var a = _arrayFromIterator(aIterator); var b = _arrayFromIterator(bIterator); function eq(_a, _b) { return _equals(_a, _b, stackA.slice(), stackB.slice()); } return !_includesWith(function(b2, aItem) { return !_includesWith(eq, aItem, b2); }, b, a); } function _equals(a, b, stackA, stackB) { if (objectIs_default(a, b)) { return true; } var typeA = type_default(a); if (typeA !== type_default(b)) { return false; } if (a == null || b == null) { return false; } if (typeof a["fantasy-land/equals"] === "function" || typeof b["fantasy-land/equals"] === "function") { return typeof a["fantasy-land/equals"] === "function" && a["fantasy-land/equals"](b) && typeof b["fantasy-land/equals"] === "function" && b["fantasy-land/equals"](a); } if (typeof a.equals === "function" || typeof b.equals === "function") { return typeof a.equals === "function" && a.equals(b) && typeof b.equals === "function" && b.equals(a); } switch (typeA) { case "Arguments": case "Array": case "Object": if (typeof a.constructor === "function" && _functionName(a.constructor) === "Promise") { return a === b; } break; case "Boolean": case "Number": case "String": if (!(typeof a === typeof b && objectIs_default(a.valueOf(), b.valueOf()))) { return false; } break; case "Date": if (!objectIs_default(a.valueOf(), b.valueOf())) { return false; } break; case "Error": return a.name === b.name && a.message === b.message; case "RegExp": 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)) { return false; } break; } var idx = stackA.length - 1; while (idx >= 0) { if (stackA[idx] === a) { return stackB[idx] === b; } idx -= 1; } switch (typeA) { case "Map": if (a.size !== b.size) { return false; } return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b])); case "Set": if (a.size !== b.size) { return false; } return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b])); case "Arguments": case "Array": case "Object": case "Boolean": case "Number": case "String": case "Date": case "Error": case "RegExp": case "Int8Array": case "Uint8Array": case "Uint8ClampedArray": case "Int16Array": case "Uint16Array": case "Int32Array": case "Uint32Array": case "Float32Array": case "Float64Array": case "ArrayBuffer": break; default: return false; } var keysA = keys_default(a); if (keysA.length !== keys_default(b).length) { return false; } var extendedStackA = stackA.concat([a]); var extendedStackB = stackB.concat([b]); idx = keysA.length - 1; while (idx >= 0) { var key = keysA[idx]; if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) { return false; } idx -= 1; } return true; } // node_modules/ramda/es/equals.js var equals2 = /* @__PURE__ */ _curry2(function equals3(a, b) { return _equals(a, b, [], []); }); var equals_default = equals2; // node_modules/ramda/es/internal/_indexOf.js function _indexOf(list, a, idx) { var inf, item; if (typeof list.indexOf === "function") { switch (typeof a) { case "number": if (a === 0) { inf = 1 / a; while (idx < list.length) { item = list[idx]; if (item === 0 && 1 / item === inf) { return idx; } idx += 1; } return -1; } else if (a !== a) { while (idx < list.length) { item = list[idx]; if (typeof item === "number" && item !== item) { return idx; } idx += 1; } return -1; } return list.indexOf(a, idx); case "string": case "boolean": case "function": case "undefined": return list.indexOf(a, idx); case "object": if (a === null) { return list.indexOf(a, idx); } } } while (idx < list.length) { if (equals_default(list[idx], a)) { return idx; } idx += 1; } return -1; } // node_modules/ramda/es/internal/_includes.js function _includes(a, list) { return _indexOf(list, a, 0) >= 0; } // node_modules/ramda/es/internal/_quote.js function _quote(s) { var escaped = s.replace(/\\/g, "\\\\").replace(/[\b]/g, "\\b").replace(/\f/g, "\\f").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\v/g, "\\v").replace(/\0/g, "\\0"); return '"' + escaped.replace(/"/g, '\\"') + '"'; } // node_modules/ramda/es/internal/_toISOString.js var pad = function pad2(n) { return (n < 10 ? "0" : "") + n; }; var _toISOString = typeof Date.prototype.toISOString === "function" ? function _toISOString2(d) { return d.toISOString(); } : function _toISOString3(d) { return d.getUTCFullYear() + "-" + pad(d.getUTCMonth() + 1) + "-" + pad(d.getUTCDate()) + "T" + pad(d.getUTCHours()) + ":" + pad(d.getUTCMinutes()) + ":" + pad(d.getUTCSeconds()) + "." + (d.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z"; }; var toISOString_default = _toISOString; // node_modules/ramda/es/internal/_complement.js function _complement(f) { return function() { return !f.apply(this, arguments); }; } // node_modules/ramda/es/internal/_filter.js function _filter(fn, list) { var idx = 0; var len = list.length; var result = []; while (idx < len) { if (fn(list[idx])) { result[result.length] = list[idx]; } idx += 1; } return result; } // node_modules/ramda/es/internal/_isObject.js function _isObject(x) { return Object.prototype.toString.call(x) === "[object Object]"; } // node_modules/ramda/es/internal/_xfilter.js var XFilter = /* @__PURE__ */ function() { function XFilter2(f, xf) { this.xf = xf; this.f = f; } XFilter2.prototype["@@transducer/init"] = xfBase_default.init; XFilter2.prototype["@@transducer/result"] = xfBase_default.result; XFilter2.prototype["@@transducer/step"] = function(result, input) { return this.f(input) ? this.xf["@@transducer/step"](result, input) : result; }; return XFilter2; }(); var _xfilter = /* @__PURE__ */ _curry2(function _xfilter2(f, xf) { return new XFilter(f, xf); }); var xfilter_default = _xfilter; // node_modules/ramda/es/filter.js var filter2 = /* @__PURE__ */ _curry2(/* @__PURE__ */ _dispatchable(["filter"], xfilter_default, function(pred, filterable) { return _isObject(filterable) ? _reduce(function(acc, key) { if (pred(filterable[key])) { acc[key] = filterable[key]; } return acc; }, {}, keys_default(filterable)) : _filter(pred, filterable); })); var filter_default = filter2; // node_modules/ramda/es/reject.js var reject = /* @__PURE__ */ _curry2(function reject2(pred, filterable) { return filter_default(_complement(pred), filterable); }); var reject_default = reject; // node_modules/ramda/es/internal/_toString.js function _toString(x, seen) { var recur = function recur2(y) { var xs = seen.concat([x]); return _includes(y, xs) ? "<Circular>" : _toString(y, xs); }; var mapPairs = function(obj, keys15) { return _map(function(k) { return _quote(k) + ": " + recur(obj[k]); }, keys15.slice().sort()); }; switch (Object.prototype.toString.call(x)) { case "[object Arguments]": return "(function() { return arguments; }(" + _map(recur, x).join(", ") + "))"; case "[object Array]": return "[" + _map(recur, x).concat(mapPairs(x, reject_default(function(k) { return /^\d+$/.test(k); }, keys_default(x)))).join(", ") + "]"; case "[object Boolean]": return typeof x === "object" ? "new Boolean(" + recur(x.valueOf()) + ")" : x.toString(); case "[object Date]": return "new Date(" + (isNaN(x.valueOf()) ? recur(NaN) : _quote(toISOString_default(x))) + ")"; case "[object Null]": return "null"; case "[object Number]": return typeof x === "object" ? "new Number(" + recur(x.valueOf()) + ")" : 1 / x === -Infinity ? "-0" : x.toString(10); case "[object String]": return typeof x === "object" ? "new String(" + recur(x.valueOf()) + ")" : _quote(x); case "[object Undefined]": return "undefined"; default: if (typeof x.toString === "function") { var repr = x.toString(); if (repr !== "[object Object]") { return repr; } } return "{" + mapPairs(x, keys_default(x)).join(", ") + "}"; } } // node_modules/ramda/es/toString.js var toString3 = /* @__PURE__ */ _curry1(function toString4(val) { return _toString(val, []); }); var toString_default = toString3; // node_modules/ramda/es/concat.js var concat6 = /* @__PURE__ */ _curry2(function concat7(a, b) { if (isArray_default(a)) { if (isArray_default(b)) { return a.concat(b); } throw new TypeError(toString_default(b) + " is not an array"); } if (_isString(a)) { if (_isString(b)) { return a + b; } throw new TypeError(toString_default(b) + " is not a string"); } if (a != null && _isFunction(a["fantasy-land/concat"])) { return a["fantasy-land/concat"](b); } if (a != null && _isFunction(a.concat)) { return a.concat(b); } throw new TypeError(toString_default(a) + ' does not have a method named "concat" or "fantasy-land/concat"'); }); var concat_default = concat6; // node_modules/ramda/es/cond.js var cond = /* @__PURE__ */ _curry1(function cond2(pairs) { var arity12 = reduce_default(max_default, 0, map_default(function(pair4) { return pair4[0].length; }, pairs)); return _arity(arity12, function() { var idx = 0; while (idx < pairs.length) { if (pairs[idx][0].apply(this, arguments)) { return pairs[idx][1].apply(this, arguments); } idx += 1; } }); }); var cond_default = cond; // node_modules/ramda/es/constru