@pioneer-platform/pioneer-react 0.2.47 → 0.2.49
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/dist/index.js +198340 -146844
- package/dist/{index_0e37f5ff.js → index_0652205a.js} +6 -6
- package/dist/{index_f9d1a3bf.js → index_096371b1.js} +3 -1
- package/dist/{index_ae6c3b10.js → index_0a5ed442.js} +3 -3
- package/dist/{index_e233a036.js → index_0a6e5811.js} +1 -1
- package/dist/{index_547d2868.js → index_0b5f5f6a.js} +4 -4
- package/dist/index_10812439.js +25 -0
- package/dist/{index_4a548214.js → index_1093b1b4.js} +8 -8
- package/dist/{index_3a6b0cd3.js → index_169417bf.js} +3 -3
- package/dist/{index_e168f4c0.js → index_1d5f0f00.js} +7 -7
- package/dist/{index_e57ba5a5.js → index_278505c5.js} +3 -3
- package/dist/{index_a4f5a15a.js → index_2845411a.js} +19 -19
- package/dist/{index_003befba.js → index_29be6ff5.js} +1122 -1312
- package/dist/{index_a6b45215.js → index_2dc95f2a.js} +7 -3
- package/dist/{index_6d2a3e5c.js → index_3402bab8.js} +6 -2
- package/dist/{index_310b7772.js → index_3c54e5ec.js} +9 -9
- package/dist/{index_f9d461d1.js → index_423ea09e.js} +3 -3
- package/dist/{index_37894947.js → index_4425b278.js} +3 -3
- package/dist/{index_61a33920.js → index_514c608b.js} +6 -6
- package/dist/index_51b338c1.js +121 -0
- package/dist/{index_0364269a.js → index_5d8426fb.js} +3 -3
- package/dist/index_628b22bc.js +11003 -0
- package/dist/index_63a883f7.js +446 -0
- package/dist/{index_d8e757ba.js → index_654fef3a.js} +3 -3
- package/dist/index_691fd636.js +12913 -0
- package/dist/{index_674ffbfa.js → index_69b0f47b.js} +9 -9
- package/dist/{index_a682c1a8.js → index_6cd7bc1a.js} +3 -1
- package/dist/{index_c8ebd6e3.js → index_6ebe4744.js} +900 -900
- package/dist/{index_7382dec1.js → index_7f735685.js} +5 -5
- package/dist/{index_b3022c1a.js → index_82348f63.js} +5 -5
- package/dist/index_849386d3.js +1115 -0
- package/dist/{index_85b01410.js → index_8610c3c4.js} +6 -6
- package/dist/index_8d6422b9.js +112 -0
- package/dist/{index_167c5f7a.js → index_8fd2c24a.js} +3 -3
- package/dist/{index_1990afbf.js → index_942c3b80.js} +4 -4
- package/dist/index_94b7968d.js +22872 -0
- package/dist/index_94d38802.js +2856 -0
- package/dist/{index_bd7e0d56.js → index_a5ca5cc4.js} +2 -2
- package/dist/{index_f80541a0.js → index_aa71379e.js} +307 -267
- package/dist/{index_354cce52.js → index_aa773d39.js} +3 -3
- package/dist/{index_29e62962.js → index_b022faaa.js} +4 -4
- package/dist/index_b1028d5f.js +65 -0
- package/dist/index_c232ca43.js +25 -0
- package/dist/{index_f19b5fe5.js → index_c9105338.js} +3 -3
- package/dist/{index_7c12bb44.js → index_cebbd50e.js} +1 -1
- package/dist/{index_ca633a1c.js → index_d477606a.js} +7 -7
- package/dist/index_d8a5e2ef.js +116 -0
- package/dist/{index_542dbb9a.js → index_de4af619.js} +4 -4
- package/dist/{index_7a1bb0b1.js → index_df47a9c6.js} +8 -8
- package/dist/{index_8b9255eb.js → index_e0b32f2f.js} +10 -10
- package/dist/{index_b21f58b7.js → index_e2794130.js} +4 -4
- package/dist/{index_2cbf1530.js → index_ecce7b22.js} +6 -6
- package/dist/{index_3891b298.js → index_f2d68730.js} +1 -1
- package/dist/index_f66728ba.js +130 -0
- package/dist/{index_f3922fc1.js → index_f8bc80e1.js} +3 -3
- package/package.json +19 -18
- package/src/lib/context/Pioneer/sdk/connect.ts +11 -11
|
@@ -0,0 +1,1115 @@
|
|
|
1
|
+
import { d as dist, g as getDefaultExportFromCjs } from "./index_94b7968d.js";
|
|
2
|
+
var Re = { exports: {} };
|
|
3
|
+
const $t = "2.0.0", Je = 256, mt = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
4
|
+
9007199254740991, vt = 16, Rt = Je - 6, gt = [
|
|
5
|
+
"major",
|
|
6
|
+
"premajor",
|
|
7
|
+
"minor",
|
|
8
|
+
"preminor",
|
|
9
|
+
"patch",
|
|
10
|
+
"prepatch",
|
|
11
|
+
"prerelease"
|
|
12
|
+
];
|
|
13
|
+
var ie = {
|
|
14
|
+
MAX_LENGTH: Je,
|
|
15
|
+
MAX_SAFE_COMPONENT_LENGTH: vt,
|
|
16
|
+
MAX_SAFE_BUILD_LENGTH: Rt,
|
|
17
|
+
MAX_SAFE_INTEGER: mt,
|
|
18
|
+
RELEASE_TYPES: gt,
|
|
19
|
+
SEMVER_SPEC_VERSION: $t,
|
|
20
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
21
|
+
FLAG_LOOSE: 2
|
|
22
|
+
};
|
|
23
|
+
const It = typeof dist.process == "object" && dist.process.env && dist.process.env.NODE_DEBUG && /\bsemver\b/i.test(dist.process.env.NODE_DEBUG) ? (...t) => console.error("SEMVER", ...t) : () => {
|
|
24
|
+
};
|
|
25
|
+
var ae = It;
|
|
26
|
+
(function(t, e) {
|
|
27
|
+
const {
|
|
28
|
+
MAX_SAFE_COMPONENT_LENGTH: r,
|
|
29
|
+
MAX_SAFE_BUILD_LENGTH: s,
|
|
30
|
+
MAX_LENGTH: n
|
|
31
|
+
} = ie, i = ae;
|
|
32
|
+
e = t.exports = {};
|
|
33
|
+
const f = e.re = [], $ = e.safeRe = [], a = e.src = [], l = e.t = {};
|
|
34
|
+
let c = 0;
|
|
35
|
+
const E = "[a-zA-Z0-9-]", L = [
|
|
36
|
+
["\\s", 1],
|
|
37
|
+
["\\d", n],
|
|
38
|
+
[E, s]
|
|
39
|
+
], p = (F) => {
|
|
40
|
+
for (const [x, X] of L)
|
|
41
|
+
F = F.split(`${x}*`).join(`${x}{0,${X}}`).split(`${x}+`).join(`${x}{1,${X}}`);
|
|
42
|
+
return F;
|
|
43
|
+
}, R = (F, x, X) => {
|
|
44
|
+
const y = p(x), V = c++;
|
|
45
|
+
i(F, V, x), l[F] = V, a[V] = x, f[V] = new RegExp(x, X ? "g" : void 0), $[V] = new RegExp(y, X ? "g" : void 0);
|
|
46
|
+
};
|
|
47
|
+
R("NUMERICIDENTIFIER", "0|[1-9]\\d*"), R("NUMERICIDENTIFIERLOOSE", "\\d+"), R("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${E}*`), R("MAINVERSION", `(${a[l.NUMERICIDENTIFIER]})\\.(${a[l.NUMERICIDENTIFIER]})\\.(${a[l.NUMERICIDENTIFIER]})`), R("MAINVERSIONLOOSE", `(${a[l.NUMERICIDENTIFIERLOOSE]})\\.(${a[l.NUMERICIDENTIFIERLOOSE]})\\.(${a[l.NUMERICIDENTIFIERLOOSE]})`), R("PRERELEASEIDENTIFIER", `(?:${a[l.NUMERICIDENTIFIER]}|${a[l.NONNUMERICIDENTIFIER]})`), R("PRERELEASEIDENTIFIERLOOSE", `(?:${a[l.NUMERICIDENTIFIERLOOSE]}|${a[l.NONNUMERICIDENTIFIER]})`), R("PRERELEASE", `(?:-(${a[l.PRERELEASEIDENTIFIER]}(?:\\.${a[l.PRERELEASEIDENTIFIER]})*))`), R("PRERELEASELOOSE", `(?:-?(${a[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[l.PRERELEASEIDENTIFIERLOOSE]})*))`), R("BUILDIDENTIFIER", `${E}+`), R("BUILD", `(?:\\+(${a[l.BUILDIDENTIFIER]}(?:\\.${a[l.BUILDIDENTIFIER]})*))`), R("FULLPLAIN", `v?${a[l.MAINVERSION]}${a[l.PRERELEASE]}?${a[l.BUILD]}?`), R("FULL", `^${a[l.FULLPLAIN]}$`), R("LOOSEPLAIN", `[v=\\s]*${a[l.MAINVERSIONLOOSE]}${a[l.PRERELEASELOOSE]}?${a[l.BUILD]}?`), R("LOOSE", `^${a[l.LOOSEPLAIN]}$`), R("GTLT", "((?:<|>)?=?)"), R("XRANGEIDENTIFIERLOOSE", `${a[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), R("XRANGEIDENTIFIER", `${a[l.NUMERICIDENTIFIER]}|x|X|\\*`), R("XRANGEPLAIN", `[v=\\s]*(${a[l.XRANGEIDENTIFIER]})(?:\\.(${a[l.XRANGEIDENTIFIER]})(?:\\.(${a[l.XRANGEIDENTIFIER]})(?:${a[l.PRERELEASE]})?${a[l.BUILD]}?)?)?`), R("XRANGEPLAINLOOSE", `[v=\\s]*(${a[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[l.XRANGEIDENTIFIERLOOSE]})(?:${a[l.PRERELEASELOOSE]})?${a[l.BUILD]}?)?)?`), R("XRANGE", `^${a[l.GTLT]}\\s*${a[l.XRANGEPLAIN]}$`), R("XRANGELOOSE", `^${a[l.GTLT]}\\s*${a[l.XRANGEPLAINLOOSE]}$`), R("COERCE", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`), R("COERCERTL", a[l.COERCE], true), R("LONETILDE", "(?:~>?)"), R("TILDETRIM", `(\\s*)${a[l.LONETILDE]}\\s+`, true), e.tildeTrimReplace = "$1~", R("TILDE", `^${a[l.LONETILDE]}${a[l.XRANGEPLAIN]}$`), R("TILDELOOSE", `^${a[l.LONETILDE]}${a[l.XRANGEPLAINLOOSE]}$`), R("LONECARET", "(?:\\^)"), R("CARETTRIM", `(\\s*)${a[l.LONECARET]}\\s+`, true), e.caretTrimReplace = "$1^", R("CARET", `^${a[l.LONECARET]}${a[l.XRANGEPLAIN]}$`), R("CARETLOOSE", `^${a[l.LONECARET]}${a[l.XRANGEPLAINLOOSE]}$`), R("COMPARATORLOOSE", `^${a[l.GTLT]}\\s*(${a[l.LOOSEPLAIN]})$|^$`), R("COMPARATOR", `^${a[l.GTLT]}\\s*(${a[l.FULLPLAIN]})$|^$`), R("COMPARATORTRIM", `(\\s*)${a[l.GTLT]}\\s*(${a[l.LOOSEPLAIN]}|${a[l.XRANGEPLAIN]})`, true), e.comparatorTrimReplace = "$1$2$3", R("HYPHENRANGE", `^\\s*(${a[l.XRANGEPLAIN]})\\s+-\\s+(${a[l.XRANGEPLAIN]})\\s*$`), R("HYPHENRANGELOOSE", `^\\s*(${a[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[l.XRANGEPLAINLOOSE]})\\s*$`), R("STAR", "(<|>)?=?\\s*\\*"), R("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), R("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
48
|
+
})(Re, Re.exports);
|
|
49
|
+
var Q = Re.exports;
|
|
50
|
+
const Nt = Object.freeze({ loose: true }), dt = Object.freeze({}), St = (t) => t ? typeof t != "object" ? Nt : t : dt;
|
|
51
|
+
var ge = St;
|
|
52
|
+
const Te = /^[0-9]+$/, Qe = (t, e) => {
|
|
53
|
+
const r = Te.test(t), s = Te.test(e);
|
|
54
|
+
return r && s && (t = +t, e = +e), t === e ? 0 : r && !s ? -1 : s && !r ? 1 : t < e ? -1 : 1;
|
|
55
|
+
}, Lt = (t, e) => Qe(e, t);
|
|
56
|
+
var ke = {
|
|
57
|
+
compareIdentifiers: Qe,
|
|
58
|
+
rcompareIdentifiers: Lt
|
|
59
|
+
};
|
|
60
|
+
const ee = ae, { MAX_LENGTH: ye, MAX_SAFE_INTEGER: te } = ie, { safeRe: we, t: Pe } = Q, At = ge, { compareIdentifiers: Y } = ke;
|
|
61
|
+
let Ot = class G {
|
|
62
|
+
constructor(e, r) {
|
|
63
|
+
if (r = At(r), e instanceof G) {
|
|
64
|
+
if (e.loose === !!r.loose && e.includePrerelease === !!r.includePrerelease)
|
|
65
|
+
return e;
|
|
66
|
+
e = e.version;
|
|
67
|
+
} else if (typeof e != "string")
|
|
68
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);
|
|
69
|
+
if (e.length > ye)
|
|
70
|
+
throw new TypeError(
|
|
71
|
+
`version is longer than ${ye} characters`
|
|
72
|
+
);
|
|
73
|
+
ee("SemVer", e, r), this.options = r, this.loose = !!r.loose, this.includePrerelease = !!r.includePrerelease;
|
|
74
|
+
const s = e.trim().match(r.loose ? we[Pe.LOOSE] : we[Pe.FULL]);
|
|
75
|
+
if (!s)
|
|
76
|
+
throw new TypeError(`Invalid Version: ${e}`);
|
|
77
|
+
if (this.raw = e, this.major = +s[1], this.minor = +s[2], this.patch = +s[3], this.major > te || this.major < 0)
|
|
78
|
+
throw new TypeError("Invalid major version");
|
|
79
|
+
if (this.minor > te || this.minor < 0)
|
|
80
|
+
throw new TypeError("Invalid minor version");
|
|
81
|
+
if (this.patch > te || this.patch < 0)
|
|
82
|
+
throw new TypeError("Invalid patch version");
|
|
83
|
+
s[4] ? this.prerelease = s[4].split(".").map((n) => {
|
|
84
|
+
if (/^[0-9]+$/.test(n)) {
|
|
85
|
+
const i = +n;
|
|
86
|
+
if (i >= 0 && i < te)
|
|
87
|
+
return i;
|
|
88
|
+
}
|
|
89
|
+
return n;
|
|
90
|
+
}) : this.prerelease = [], this.build = s[5] ? s[5].split(".") : [], this.format();
|
|
91
|
+
}
|
|
92
|
+
format() {
|
|
93
|
+
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
94
|
+
}
|
|
95
|
+
toString() {
|
|
96
|
+
return this.version;
|
|
97
|
+
}
|
|
98
|
+
compare(e) {
|
|
99
|
+
if (ee("SemVer.compare", this.version, this.options, e), !(e instanceof G)) {
|
|
100
|
+
if (typeof e == "string" && e === this.version)
|
|
101
|
+
return 0;
|
|
102
|
+
e = new G(e, this.options);
|
|
103
|
+
}
|
|
104
|
+
return e.version === this.version ? 0 : this.compareMain(e) || this.comparePre(e);
|
|
105
|
+
}
|
|
106
|
+
compareMain(e) {
|
|
107
|
+
return e instanceof G || (e = new G(e, this.options)), Y(this.major, e.major) || Y(this.minor, e.minor) || Y(this.patch, e.patch);
|
|
108
|
+
}
|
|
109
|
+
comparePre(e) {
|
|
110
|
+
if (e instanceof G || (e = new G(e, this.options)), this.prerelease.length && !e.prerelease.length)
|
|
111
|
+
return -1;
|
|
112
|
+
if (!this.prerelease.length && e.prerelease.length)
|
|
113
|
+
return 1;
|
|
114
|
+
if (!this.prerelease.length && !e.prerelease.length)
|
|
115
|
+
return 0;
|
|
116
|
+
let r = 0;
|
|
117
|
+
do {
|
|
118
|
+
const s = this.prerelease[r], n = e.prerelease[r];
|
|
119
|
+
if (ee("prerelease compare", r, s, n), s === void 0 && n === void 0)
|
|
120
|
+
return 0;
|
|
121
|
+
if (n === void 0)
|
|
122
|
+
return 1;
|
|
123
|
+
if (s === void 0)
|
|
124
|
+
return -1;
|
|
125
|
+
if (s === n)
|
|
126
|
+
continue;
|
|
127
|
+
return Y(s, n);
|
|
128
|
+
} while (++r);
|
|
129
|
+
}
|
|
130
|
+
compareBuild(e) {
|
|
131
|
+
e instanceof G || (e = new G(e, this.options));
|
|
132
|
+
let r = 0;
|
|
133
|
+
do {
|
|
134
|
+
const s = this.build[r], n = e.build[r];
|
|
135
|
+
if (ee("prerelease compare", r, s, n), s === void 0 && n === void 0)
|
|
136
|
+
return 0;
|
|
137
|
+
if (n === void 0)
|
|
138
|
+
return 1;
|
|
139
|
+
if (s === void 0)
|
|
140
|
+
return -1;
|
|
141
|
+
if (s === n)
|
|
142
|
+
continue;
|
|
143
|
+
return Y(s, n);
|
|
144
|
+
} while (++r);
|
|
145
|
+
}
|
|
146
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
147
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
148
|
+
inc(e, r, s) {
|
|
149
|
+
switch (e) {
|
|
150
|
+
case "premajor":
|
|
151
|
+
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", r, s);
|
|
152
|
+
break;
|
|
153
|
+
case "preminor":
|
|
154
|
+
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", r, s);
|
|
155
|
+
break;
|
|
156
|
+
case "prepatch":
|
|
157
|
+
this.prerelease.length = 0, this.inc("patch", r, s), this.inc("pre", r, s);
|
|
158
|
+
break;
|
|
159
|
+
case "prerelease":
|
|
160
|
+
this.prerelease.length === 0 && this.inc("patch", r, s), this.inc("pre", r, s);
|
|
161
|
+
break;
|
|
162
|
+
case "major":
|
|
163
|
+
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
164
|
+
break;
|
|
165
|
+
case "minor":
|
|
166
|
+
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
167
|
+
break;
|
|
168
|
+
case "patch":
|
|
169
|
+
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
170
|
+
break;
|
|
171
|
+
case "pre": {
|
|
172
|
+
const n = Number(s) ? 1 : 0;
|
|
173
|
+
if (!r && s === false)
|
|
174
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
175
|
+
if (this.prerelease.length === 0)
|
|
176
|
+
this.prerelease = [n];
|
|
177
|
+
else {
|
|
178
|
+
let i = this.prerelease.length;
|
|
179
|
+
for (; --i >= 0; )
|
|
180
|
+
typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
|
|
181
|
+
if (i === -1) {
|
|
182
|
+
if (r === this.prerelease.join(".") && s === false)
|
|
183
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
184
|
+
this.prerelease.push(n);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
if (r) {
|
|
188
|
+
let i = [r, n];
|
|
189
|
+
s === false && (i = [r]), Y(this.prerelease[0], r) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = i) : this.prerelease = i;
|
|
190
|
+
}
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
default:
|
|
194
|
+
throw new Error(`invalid increment argument: ${e}`);
|
|
195
|
+
}
|
|
196
|
+
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
var w = Ot;
|
|
200
|
+
const xe = w, Tt = (t, e, r = false) => {
|
|
201
|
+
if (t instanceof xe)
|
|
202
|
+
return t;
|
|
203
|
+
try {
|
|
204
|
+
return new xe(t, e);
|
|
205
|
+
} catch (s) {
|
|
206
|
+
if (!r)
|
|
207
|
+
return null;
|
|
208
|
+
throw s;
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
var B = Tt;
|
|
212
|
+
const yt = B, wt = (t, e) => {
|
|
213
|
+
const r = yt(t, e);
|
|
214
|
+
return r ? r.version : null;
|
|
215
|
+
};
|
|
216
|
+
var Pt = wt;
|
|
217
|
+
const xt = B, Ct = (t, e) => {
|
|
218
|
+
const r = xt(t.trim().replace(/^[=v]+/, ""), e);
|
|
219
|
+
return r ? r.version : null;
|
|
220
|
+
};
|
|
221
|
+
var Dt = Ct;
|
|
222
|
+
const Ce = w, _t = (t, e, r, s, n) => {
|
|
223
|
+
typeof r == "string" && (n = s, s = r, r = void 0);
|
|
224
|
+
try {
|
|
225
|
+
return new Ce(
|
|
226
|
+
t instanceof Ce ? t.version : t,
|
|
227
|
+
r
|
|
228
|
+
).inc(e, s, n).version;
|
|
229
|
+
} catch {
|
|
230
|
+
return null;
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
var Gt = _t;
|
|
234
|
+
const De = B, jt = (t, e) => {
|
|
235
|
+
const r = De(t, null, true), s = De(e, null, true), n = r.compare(s);
|
|
236
|
+
if (n === 0)
|
|
237
|
+
return null;
|
|
238
|
+
const i = n > 0, f = i ? r : s, $ = i ? s : r, a = !!f.prerelease.length;
|
|
239
|
+
if (!!$.prerelease.length && !a)
|
|
240
|
+
return !$.patch && !$.minor ? "major" : f.patch ? "patch" : f.minor ? "minor" : "major";
|
|
241
|
+
const c = a ? "pre" : "";
|
|
242
|
+
return r.major !== s.major ? c + "major" : r.minor !== s.minor ? c + "minor" : r.patch !== s.patch ? c + "patch" : "prerelease";
|
|
243
|
+
};
|
|
244
|
+
var bt = jt;
|
|
245
|
+
const Ft = w, Xt = (t, e) => new Ft(t, e).major;
|
|
246
|
+
var Vt = Xt;
|
|
247
|
+
const Ut = w, Ht = (t, e) => new Ut(t, e).minor;
|
|
248
|
+
var qt = Ht;
|
|
249
|
+
const Yt = w, Mt = (t, e) => new Yt(t, e).patch;
|
|
250
|
+
var Wt = Mt;
|
|
251
|
+
const Bt = B, zt = (t, e) => {
|
|
252
|
+
const r = Bt(t, e);
|
|
253
|
+
return r && r.prerelease.length ? r.prerelease : null;
|
|
254
|
+
};
|
|
255
|
+
var Zt = zt;
|
|
256
|
+
const _e = w, Kt = (t, e, r) => new _e(t, r).compare(new _e(e, r));
|
|
257
|
+
var D = Kt;
|
|
258
|
+
const Jt = D, Qt = (t, e, r) => Jt(e, t, r);
|
|
259
|
+
var kt = Qt;
|
|
260
|
+
const er = D, tr = (t, e) => er(t, e, true);
|
|
261
|
+
var rr = tr;
|
|
262
|
+
const Ge = w, sr = (t, e, r) => {
|
|
263
|
+
const s = new Ge(t, r), n = new Ge(e, r);
|
|
264
|
+
return s.compare(n) || s.compareBuild(n);
|
|
265
|
+
};
|
|
266
|
+
var Ie = sr;
|
|
267
|
+
const nr = Ie, ir = (t, e) => t.sort((r, s) => nr(r, s, e));
|
|
268
|
+
var ar = ir;
|
|
269
|
+
const lr = Ie, or = (t, e) => t.sort((r, s) => lr(s, r, e));
|
|
270
|
+
var cr = or;
|
|
271
|
+
const hr = D, ur = (t, e, r) => hr(t, e, r) > 0;
|
|
272
|
+
var le = ur;
|
|
273
|
+
const fr = D, Er = (t, e, r) => fr(t, e, r) < 0;
|
|
274
|
+
var Ne = Er;
|
|
275
|
+
const pr = D, $r = (t, e, r) => pr(t, e, r) === 0;
|
|
276
|
+
var et = $r;
|
|
277
|
+
const mr = D, vr = (t, e, r) => mr(t, e, r) !== 0;
|
|
278
|
+
var tt = vr;
|
|
279
|
+
const Rr = D, gr = (t, e, r) => Rr(t, e, r) >= 0;
|
|
280
|
+
var de = gr;
|
|
281
|
+
const Ir = D, Nr = (t, e, r) => Ir(t, e, r) <= 0;
|
|
282
|
+
var Se = Nr;
|
|
283
|
+
const dr = et, Sr = tt, Lr = le, Ar = de, Or = Ne, Tr = Se, yr = (t, e, r, s) => {
|
|
284
|
+
switch (e) {
|
|
285
|
+
case "===":
|
|
286
|
+
return typeof t == "object" && (t = t.version), typeof r == "object" && (r = r.version), t === r;
|
|
287
|
+
case "!==":
|
|
288
|
+
return typeof t == "object" && (t = t.version), typeof r == "object" && (r = r.version), t !== r;
|
|
289
|
+
case "":
|
|
290
|
+
case "=":
|
|
291
|
+
case "==":
|
|
292
|
+
return dr(t, r, s);
|
|
293
|
+
case "!=":
|
|
294
|
+
return Sr(t, r, s);
|
|
295
|
+
case ">":
|
|
296
|
+
return Lr(t, r, s);
|
|
297
|
+
case ">=":
|
|
298
|
+
return Ar(t, r, s);
|
|
299
|
+
case "<":
|
|
300
|
+
return Or(t, r, s);
|
|
301
|
+
case "<=":
|
|
302
|
+
return Tr(t, r, s);
|
|
303
|
+
default:
|
|
304
|
+
throw new TypeError(`Invalid operator: ${e}`);
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
var rt = yr;
|
|
308
|
+
const wr = w, Pr = B, { safeRe: re, t: se } = Q, xr = (t, e) => {
|
|
309
|
+
if (t instanceof wr)
|
|
310
|
+
return t;
|
|
311
|
+
if (typeof t == "number" && (t = String(t)), typeof t != "string")
|
|
312
|
+
return null;
|
|
313
|
+
e = e || {};
|
|
314
|
+
let r = null;
|
|
315
|
+
if (!e.rtl)
|
|
316
|
+
r = t.match(re[se.COERCE]);
|
|
317
|
+
else {
|
|
318
|
+
let s;
|
|
319
|
+
for (; (s = re[se.COERCERTL].exec(t)) && (!r || r.index + r[0].length !== t.length); )
|
|
320
|
+
(!r || s.index + s[0].length !== r.index + r[0].length) && (r = s), re[se.COERCERTL].lastIndex = s.index + s[1].length + s[2].length;
|
|
321
|
+
re[se.COERCERTL].lastIndex = -1;
|
|
322
|
+
}
|
|
323
|
+
return r === null ? null : Pr(`${r[2]}.${r[3] || "0"}.${r[4] || "0"}`, e);
|
|
324
|
+
};
|
|
325
|
+
var Cr = xr, he, je;
|
|
326
|
+
function Dr() {
|
|
327
|
+
return je || (je = 1, he = function(t) {
|
|
328
|
+
t.prototype[Symbol.iterator] = function* () {
|
|
329
|
+
for (let e = this.head; e; e = e.next)
|
|
330
|
+
yield e.value;
|
|
331
|
+
};
|
|
332
|
+
}), he;
|
|
333
|
+
}
|
|
334
|
+
var _r = d;
|
|
335
|
+
d.Node = q;
|
|
336
|
+
d.create = d;
|
|
337
|
+
function d(t) {
|
|
338
|
+
var e = this;
|
|
339
|
+
if (e instanceof d || (e = new d()), e.tail = null, e.head = null, e.length = 0, t && typeof t.forEach == "function")
|
|
340
|
+
t.forEach(function(n) {
|
|
341
|
+
e.push(n);
|
|
342
|
+
});
|
|
343
|
+
else if (arguments.length > 0)
|
|
344
|
+
for (var r = 0, s = arguments.length; r < s; r++)
|
|
345
|
+
e.push(arguments[r]);
|
|
346
|
+
return e;
|
|
347
|
+
}
|
|
348
|
+
d.prototype.removeNode = function(t) {
|
|
349
|
+
if (t.list !== this)
|
|
350
|
+
throw new Error("removing node which does not belong to this list");
|
|
351
|
+
var e = t.next, r = t.prev;
|
|
352
|
+
return e && (e.prev = r), r && (r.next = e), t === this.head && (this.head = e), t === this.tail && (this.tail = r), t.list.length--, t.next = null, t.prev = null, t.list = null, e;
|
|
353
|
+
};
|
|
354
|
+
d.prototype.unshiftNode = function(t) {
|
|
355
|
+
if (t !== this.head) {
|
|
356
|
+
t.list && t.list.removeNode(t);
|
|
357
|
+
var e = this.head;
|
|
358
|
+
t.list = this, t.next = e, e && (e.prev = t), this.head = t, this.tail || (this.tail = t), this.length++;
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
d.prototype.pushNode = function(t) {
|
|
362
|
+
if (t !== this.tail) {
|
|
363
|
+
t.list && t.list.removeNode(t);
|
|
364
|
+
var e = this.tail;
|
|
365
|
+
t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
d.prototype.push = function() {
|
|
369
|
+
for (var t = 0, e = arguments.length; t < e; t++)
|
|
370
|
+
jr(this, arguments[t]);
|
|
371
|
+
return this.length;
|
|
372
|
+
};
|
|
373
|
+
d.prototype.unshift = function() {
|
|
374
|
+
for (var t = 0, e = arguments.length; t < e; t++)
|
|
375
|
+
br(this, arguments[t]);
|
|
376
|
+
return this.length;
|
|
377
|
+
};
|
|
378
|
+
d.prototype.pop = function() {
|
|
379
|
+
if (this.tail) {
|
|
380
|
+
var t = this.tail.value;
|
|
381
|
+
return this.tail = this.tail.prev, this.tail ? this.tail.next = null : this.head = null, this.length--, t;
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
d.prototype.shift = function() {
|
|
385
|
+
if (this.head) {
|
|
386
|
+
var t = this.head.value;
|
|
387
|
+
return this.head = this.head.next, this.head ? this.head.prev = null : this.tail = null, this.length--, t;
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
d.prototype.forEach = function(t, e) {
|
|
391
|
+
e = e || this;
|
|
392
|
+
for (var r = this.head, s = 0; r !== null; s++)
|
|
393
|
+
t.call(e, r.value, s, this), r = r.next;
|
|
394
|
+
};
|
|
395
|
+
d.prototype.forEachReverse = function(t, e) {
|
|
396
|
+
e = e || this;
|
|
397
|
+
for (var r = this.tail, s = this.length - 1; r !== null; s--)
|
|
398
|
+
t.call(e, r.value, s, this), r = r.prev;
|
|
399
|
+
};
|
|
400
|
+
d.prototype.get = function(t) {
|
|
401
|
+
for (var e = 0, r = this.head; r !== null && e < t; e++)
|
|
402
|
+
r = r.next;
|
|
403
|
+
if (e === t && r !== null)
|
|
404
|
+
return r.value;
|
|
405
|
+
};
|
|
406
|
+
d.prototype.getReverse = function(t) {
|
|
407
|
+
for (var e = 0, r = this.tail; r !== null && e < t; e++)
|
|
408
|
+
r = r.prev;
|
|
409
|
+
if (e === t && r !== null)
|
|
410
|
+
return r.value;
|
|
411
|
+
};
|
|
412
|
+
d.prototype.map = function(t, e) {
|
|
413
|
+
e = e || this;
|
|
414
|
+
for (var r = new d(), s = this.head; s !== null; )
|
|
415
|
+
r.push(t.call(e, s.value, this)), s = s.next;
|
|
416
|
+
return r;
|
|
417
|
+
};
|
|
418
|
+
d.prototype.mapReverse = function(t, e) {
|
|
419
|
+
e = e || this;
|
|
420
|
+
for (var r = new d(), s = this.tail; s !== null; )
|
|
421
|
+
r.push(t.call(e, s.value, this)), s = s.prev;
|
|
422
|
+
return r;
|
|
423
|
+
};
|
|
424
|
+
d.prototype.reduce = function(t, e) {
|
|
425
|
+
var r, s = this.head;
|
|
426
|
+
if (arguments.length > 1)
|
|
427
|
+
r = e;
|
|
428
|
+
else if (this.head)
|
|
429
|
+
s = this.head.next, r = this.head.value;
|
|
430
|
+
else
|
|
431
|
+
throw new TypeError("Reduce of empty list with no initial value");
|
|
432
|
+
for (var n = 0; s !== null; n++)
|
|
433
|
+
r = t(r, s.value, n), s = s.next;
|
|
434
|
+
return r;
|
|
435
|
+
};
|
|
436
|
+
d.prototype.reduceReverse = function(t, e) {
|
|
437
|
+
var r, s = this.tail;
|
|
438
|
+
if (arguments.length > 1)
|
|
439
|
+
r = e;
|
|
440
|
+
else if (this.tail)
|
|
441
|
+
s = this.tail.prev, r = this.tail.value;
|
|
442
|
+
else
|
|
443
|
+
throw new TypeError("Reduce of empty list with no initial value");
|
|
444
|
+
for (var n = this.length - 1; s !== null; n--)
|
|
445
|
+
r = t(r, s.value, n), s = s.prev;
|
|
446
|
+
return r;
|
|
447
|
+
};
|
|
448
|
+
d.prototype.toArray = function() {
|
|
449
|
+
for (var t = new Array(this.length), e = 0, r = this.head; r !== null; e++)
|
|
450
|
+
t[e] = r.value, r = r.next;
|
|
451
|
+
return t;
|
|
452
|
+
};
|
|
453
|
+
d.prototype.toArrayReverse = function() {
|
|
454
|
+
for (var t = new Array(this.length), e = 0, r = this.tail; r !== null; e++)
|
|
455
|
+
t[e] = r.value, r = r.prev;
|
|
456
|
+
return t;
|
|
457
|
+
};
|
|
458
|
+
d.prototype.slice = function(t, e) {
|
|
459
|
+
e = e || this.length, e < 0 && (e += this.length), t = t || 0, t < 0 && (t += this.length);
|
|
460
|
+
var r = new d();
|
|
461
|
+
if (e < t || e < 0)
|
|
462
|
+
return r;
|
|
463
|
+
t < 0 && (t = 0), e > this.length && (e = this.length);
|
|
464
|
+
for (var s = 0, n = this.head; n !== null && s < t; s++)
|
|
465
|
+
n = n.next;
|
|
466
|
+
for (; n !== null && s < e; s++, n = n.next)
|
|
467
|
+
r.push(n.value);
|
|
468
|
+
return r;
|
|
469
|
+
};
|
|
470
|
+
d.prototype.sliceReverse = function(t, e) {
|
|
471
|
+
e = e || this.length, e < 0 && (e += this.length), t = t || 0, t < 0 && (t += this.length);
|
|
472
|
+
var r = new d();
|
|
473
|
+
if (e < t || e < 0)
|
|
474
|
+
return r;
|
|
475
|
+
t < 0 && (t = 0), e > this.length && (e = this.length);
|
|
476
|
+
for (var s = this.length, n = this.tail; n !== null && s > e; s--)
|
|
477
|
+
n = n.prev;
|
|
478
|
+
for (; n !== null && s > t; s--, n = n.prev)
|
|
479
|
+
r.push(n.value);
|
|
480
|
+
return r;
|
|
481
|
+
};
|
|
482
|
+
d.prototype.splice = function(t, e, ...r) {
|
|
483
|
+
t > this.length && (t = this.length - 1), t < 0 && (t = this.length + t);
|
|
484
|
+
for (var s = 0, n = this.head; n !== null && s < t; s++)
|
|
485
|
+
n = n.next;
|
|
486
|
+
for (var i = [], s = 0; n && s < e; s++)
|
|
487
|
+
i.push(n.value), n = this.removeNode(n);
|
|
488
|
+
n === null && (n = this.tail), n !== this.head && n !== this.tail && (n = n.prev);
|
|
489
|
+
for (var s = 0; s < r.length; s++)
|
|
490
|
+
n = Gr(this, n, r[s]);
|
|
491
|
+
return i;
|
|
492
|
+
};
|
|
493
|
+
d.prototype.reverse = function() {
|
|
494
|
+
for (var t = this.head, e = this.tail, r = t; r !== null; r = r.prev) {
|
|
495
|
+
var s = r.prev;
|
|
496
|
+
r.prev = r.next, r.next = s;
|
|
497
|
+
}
|
|
498
|
+
return this.head = e, this.tail = t, this;
|
|
499
|
+
};
|
|
500
|
+
function Gr(t, e, r) {
|
|
501
|
+
var s = e === t.head ? new q(r, null, e, t) : new q(r, e, e.next, t);
|
|
502
|
+
return s.next === null && (t.tail = s), s.prev === null && (t.head = s), t.length++, s;
|
|
503
|
+
}
|
|
504
|
+
function jr(t, e) {
|
|
505
|
+
t.tail = new q(e, t.tail, null, t), t.head || (t.head = t.tail), t.length++;
|
|
506
|
+
}
|
|
507
|
+
function br(t, e) {
|
|
508
|
+
t.head = new q(e, null, t.head, t), t.tail || (t.tail = t.head), t.length++;
|
|
509
|
+
}
|
|
510
|
+
function q(t, e, r, s) {
|
|
511
|
+
if (!(this instanceof q))
|
|
512
|
+
return new q(t, e, r, s);
|
|
513
|
+
this.list = s, this.value = t, e ? (e.next = this, this.prev = e) : this.prev = null, r ? (r.prev = this, this.next = r) : this.next = null;
|
|
514
|
+
}
|
|
515
|
+
try {
|
|
516
|
+
Dr()(d);
|
|
517
|
+
} catch {
|
|
518
|
+
}
|
|
519
|
+
const Fr = _r, U = Symbol("max"), b = Symbol("length"), M = Symbol("lengthCalculator"), J = Symbol("allowStale"), H = Symbol("maxAge"), j = Symbol("dispose"), be = Symbol("noDisposeOnSet"), T = Symbol("lruList"), C = Symbol("cache"), st = Symbol("updateAgeOnGet"), ue = () => 1;
|
|
520
|
+
class Xr {
|
|
521
|
+
constructor(e) {
|
|
522
|
+
if (typeof e == "number" && (e = { max: e }), e || (e = {}), e.max && (typeof e.max != "number" || e.max < 0))
|
|
523
|
+
throw new TypeError("max must be a non-negative number");
|
|
524
|
+
this[U] = e.max || 1 / 0;
|
|
525
|
+
const r = e.length || ue;
|
|
526
|
+
if (this[M] = typeof r != "function" ? ue : r, this[J] = e.stale || false, e.maxAge && typeof e.maxAge != "number")
|
|
527
|
+
throw new TypeError("maxAge must be a number");
|
|
528
|
+
this[H] = e.maxAge || 0, this[j] = e.dispose, this[be] = e.noDisposeOnSet || false, this[st] = e.updateAgeOnGet || false, this.reset();
|
|
529
|
+
}
|
|
530
|
+
// resize the cache when the max changes.
|
|
531
|
+
set max(e) {
|
|
532
|
+
if (typeof e != "number" || e < 0)
|
|
533
|
+
throw new TypeError("max must be a non-negative number");
|
|
534
|
+
this[U] = e || 1 / 0, Z(this);
|
|
535
|
+
}
|
|
536
|
+
get max() {
|
|
537
|
+
return this[U];
|
|
538
|
+
}
|
|
539
|
+
set allowStale(e) {
|
|
540
|
+
this[J] = !!e;
|
|
541
|
+
}
|
|
542
|
+
get allowStale() {
|
|
543
|
+
return this[J];
|
|
544
|
+
}
|
|
545
|
+
set maxAge(e) {
|
|
546
|
+
if (typeof e != "number")
|
|
547
|
+
throw new TypeError("maxAge must be a non-negative number");
|
|
548
|
+
this[H] = e, Z(this);
|
|
549
|
+
}
|
|
550
|
+
get maxAge() {
|
|
551
|
+
return this[H];
|
|
552
|
+
}
|
|
553
|
+
// resize the cache when the lengthCalculator changes.
|
|
554
|
+
set lengthCalculator(e) {
|
|
555
|
+
typeof e != "function" && (e = ue), e !== this[M] && (this[M] = e, this[b] = 0, this[T].forEach((r) => {
|
|
556
|
+
r.length = this[M](r.value, r.key), this[b] += r.length;
|
|
557
|
+
})), Z(this);
|
|
558
|
+
}
|
|
559
|
+
get lengthCalculator() {
|
|
560
|
+
return this[M];
|
|
561
|
+
}
|
|
562
|
+
get length() {
|
|
563
|
+
return this[b];
|
|
564
|
+
}
|
|
565
|
+
get itemCount() {
|
|
566
|
+
return this[T].length;
|
|
567
|
+
}
|
|
568
|
+
rforEach(e, r) {
|
|
569
|
+
r = r || this;
|
|
570
|
+
for (let s = this[T].tail; s !== null; ) {
|
|
571
|
+
const n = s.prev;
|
|
572
|
+
Fe(this, e, s, r), s = n;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
forEach(e, r) {
|
|
576
|
+
r = r || this;
|
|
577
|
+
for (let s = this[T].head; s !== null; ) {
|
|
578
|
+
const n = s.next;
|
|
579
|
+
Fe(this, e, s, r), s = n;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
keys() {
|
|
583
|
+
return this[T].toArray().map((e) => e.key);
|
|
584
|
+
}
|
|
585
|
+
values() {
|
|
586
|
+
return this[T].toArray().map((e) => e.value);
|
|
587
|
+
}
|
|
588
|
+
reset() {
|
|
589
|
+
this[j] && this[T] && this[T].length && this[T].forEach((e) => this[j](e.key, e.value)), this[C] = /* @__PURE__ */ new Map(), this[T] = new Fr(), this[b] = 0;
|
|
590
|
+
}
|
|
591
|
+
dump() {
|
|
592
|
+
return this[T].map((e) => ne(this, e) ? false : {
|
|
593
|
+
k: e.key,
|
|
594
|
+
v: e.value,
|
|
595
|
+
e: e.now + (e.maxAge || 0)
|
|
596
|
+
}).toArray().filter((e) => e);
|
|
597
|
+
}
|
|
598
|
+
dumpLru() {
|
|
599
|
+
return this[T];
|
|
600
|
+
}
|
|
601
|
+
set(e, r, s) {
|
|
602
|
+
if (s = s || this[H], s && typeof s != "number")
|
|
603
|
+
throw new TypeError("maxAge must be a number");
|
|
604
|
+
const n = s ? Date.now() : 0, i = this[M](r, e);
|
|
605
|
+
if (this[C].has(e)) {
|
|
606
|
+
if (i > this[U])
|
|
607
|
+
return W(this, this[C].get(e)), false;
|
|
608
|
+
const a = this[C].get(e).value;
|
|
609
|
+
return this[j] && (this[be] || this[j](e, a.value)), a.now = n, a.maxAge = s, a.value = r, this[b] += i - a.length, a.length = i, this.get(e), Z(this), true;
|
|
610
|
+
}
|
|
611
|
+
const f = new Vr(e, r, i, n, s);
|
|
612
|
+
return f.length > this[U] ? (this[j] && this[j](e, r), false) : (this[b] += f.length, this[T].unshift(f), this[C].set(e, this[T].head), Z(this), true);
|
|
613
|
+
}
|
|
614
|
+
has(e) {
|
|
615
|
+
if (!this[C].has(e))
|
|
616
|
+
return false;
|
|
617
|
+
const r = this[C].get(e).value;
|
|
618
|
+
return !ne(this, r);
|
|
619
|
+
}
|
|
620
|
+
get(e) {
|
|
621
|
+
return fe(this, e, true);
|
|
622
|
+
}
|
|
623
|
+
peek(e) {
|
|
624
|
+
return fe(this, e, false);
|
|
625
|
+
}
|
|
626
|
+
pop() {
|
|
627
|
+
const e = this[T].tail;
|
|
628
|
+
return e ? (W(this, e), e.value) : null;
|
|
629
|
+
}
|
|
630
|
+
del(e) {
|
|
631
|
+
W(this, this[C].get(e));
|
|
632
|
+
}
|
|
633
|
+
load(e) {
|
|
634
|
+
this.reset();
|
|
635
|
+
const r = Date.now();
|
|
636
|
+
for (let s = e.length - 1; s >= 0; s--) {
|
|
637
|
+
const n = e[s], i = n.e || 0;
|
|
638
|
+
if (i === 0)
|
|
639
|
+
this.set(n.k, n.v);
|
|
640
|
+
else {
|
|
641
|
+
const f = i - r;
|
|
642
|
+
f > 0 && this.set(n.k, n.v, f);
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
prune() {
|
|
647
|
+
this[C].forEach((e, r) => fe(this, r, false));
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
const fe = (t, e, r) => {
|
|
651
|
+
const s = t[C].get(e);
|
|
652
|
+
if (s) {
|
|
653
|
+
const n = s.value;
|
|
654
|
+
if (ne(t, n)) {
|
|
655
|
+
if (W(t, s), !t[J])
|
|
656
|
+
return;
|
|
657
|
+
} else
|
|
658
|
+
r && (t[st] && (s.value.now = Date.now()), t[T].unshiftNode(s));
|
|
659
|
+
return n.value;
|
|
660
|
+
}
|
|
661
|
+
}, ne = (t, e) => {
|
|
662
|
+
if (!e || !e.maxAge && !t[H])
|
|
663
|
+
return false;
|
|
664
|
+
const r = Date.now() - e.now;
|
|
665
|
+
return e.maxAge ? r > e.maxAge : t[H] && r > t[H];
|
|
666
|
+
}, Z = (t) => {
|
|
667
|
+
if (t[b] > t[U])
|
|
668
|
+
for (let e = t[T].tail; t[b] > t[U] && e !== null; ) {
|
|
669
|
+
const r = e.prev;
|
|
670
|
+
W(t, e), e = r;
|
|
671
|
+
}
|
|
672
|
+
}, W = (t, e) => {
|
|
673
|
+
if (e) {
|
|
674
|
+
const r = e.value;
|
|
675
|
+
t[j] && t[j](r.key, r.value), t[b] -= r.length, t[C].delete(r.key), t[T].removeNode(e);
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
class Vr {
|
|
679
|
+
constructor(e, r, s, n, i) {
|
|
680
|
+
this.key = e, this.value = r, this.length = s, this.now = n, this.maxAge = i || 0;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
const Fe = (t, e, r, s) => {
|
|
684
|
+
let n = r.value;
|
|
685
|
+
ne(t, n) && (W(t, r), t[J] || (n = void 0)), n && e.call(s, n.value, n.key, t);
|
|
686
|
+
};
|
|
687
|
+
var Ur = Xr, Ee, Xe;
|
|
688
|
+
function _() {
|
|
689
|
+
if (Xe)
|
|
690
|
+
return Ee;
|
|
691
|
+
Xe = 1;
|
|
692
|
+
class t {
|
|
693
|
+
constructor(o, g) {
|
|
694
|
+
if (g = s(g), o instanceof t)
|
|
695
|
+
return o.loose === !!g.loose && o.includePrerelease === !!g.includePrerelease ? o : new t(o.raw, g);
|
|
696
|
+
if (o instanceof n)
|
|
697
|
+
return this.raw = o.value, this.set = [[o]], this.format(), this;
|
|
698
|
+
if (this.options = g, this.loose = !!g.loose, this.includePrerelease = !!g.includePrerelease, this.raw = o.trim().split(/\s+/).join(" "), this.set = this.raw.split("||").map((m) => this.parseRange(m.trim())).filter((m) => m.length), !this.set.length)
|
|
699
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
700
|
+
if (this.set.length > 1) {
|
|
701
|
+
const m = this.set[0];
|
|
702
|
+
if (this.set = this.set.filter((v) => !R(v[0])), this.set.length === 0)
|
|
703
|
+
this.set = [m];
|
|
704
|
+
else if (this.set.length > 1) {
|
|
705
|
+
for (const v of this.set)
|
|
706
|
+
if (v.length === 1 && F(v[0])) {
|
|
707
|
+
this.set = [v];
|
|
708
|
+
break;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
this.format();
|
|
713
|
+
}
|
|
714
|
+
format() {
|
|
715
|
+
return this.range = this.set.map((o) => o.join(" ").trim()).join("||").trim(), this.range;
|
|
716
|
+
}
|
|
717
|
+
toString() {
|
|
718
|
+
return this.range;
|
|
719
|
+
}
|
|
720
|
+
parseRange(o) {
|
|
721
|
+
const m = ((this.options.includePrerelease && L) | (this.options.loose && p)) + ":" + o, v = r.get(m);
|
|
722
|
+
if (v)
|
|
723
|
+
return v;
|
|
724
|
+
const u = this.options.loose, I = u ? $[a.HYPHENRANGELOOSE] : $[a.HYPHENRANGE];
|
|
725
|
+
o = o.replace(I, ft(this.options.includePrerelease)), i("hyphen replace", o), o = o.replace($[a.COMPARATORTRIM], l), i("comparator trim", o), o = o.replace($[a.TILDETRIM], c), i("tilde trim", o), o = o.replace($[a.CARETTRIM], E), i("caret trim", o);
|
|
726
|
+
let S = o.split(" ").map((O) => X(O, this.options)).join(" ").split(/\s+/).map((O) => ut(O, this.options));
|
|
727
|
+
u && (S = S.filter((O) => (i("loose invalid filter", O, this.options), !!O.match($[a.COMPARATORLOOSE])))), i("range list", S);
|
|
728
|
+
const N = /* @__PURE__ */ new Map(), A = S.map((O) => new n(O, this.options));
|
|
729
|
+
for (const O of A) {
|
|
730
|
+
if (R(O))
|
|
731
|
+
return [O];
|
|
732
|
+
N.set(O.value, O);
|
|
733
|
+
}
|
|
734
|
+
N.size > 1 && N.has("") && N.delete("");
|
|
735
|
+
const P = [...N.values()];
|
|
736
|
+
return r.set(m, P), P;
|
|
737
|
+
}
|
|
738
|
+
intersects(o, g) {
|
|
739
|
+
if (!(o instanceof t))
|
|
740
|
+
throw new TypeError("a Range is required");
|
|
741
|
+
return this.set.some((m) => x(m, g) && o.set.some((v) => x(v, g) && m.every((u) => v.every((I) => u.intersects(I, g)))));
|
|
742
|
+
}
|
|
743
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
744
|
+
test(o) {
|
|
745
|
+
if (!o)
|
|
746
|
+
return false;
|
|
747
|
+
if (typeof o == "string")
|
|
748
|
+
try {
|
|
749
|
+
o = new f(o, this.options);
|
|
750
|
+
} catch {
|
|
751
|
+
return false;
|
|
752
|
+
}
|
|
753
|
+
for (let g = 0; g < this.set.length; g++)
|
|
754
|
+
if (Et(this.set[g], o, this.options))
|
|
755
|
+
return true;
|
|
756
|
+
return false;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
Ee = t;
|
|
760
|
+
const e = Ur, r = new e({ max: 1e3 }), s = ge, n = oe(), i = ae, f = w, {
|
|
761
|
+
safeRe: $,
|
|
762
|
+
t: a,
|
|
763
|
+
comparatorTrimReplace: l,
|
|
764
|
+
tildeTrimReplace: c,
|
|
765
|
+
caretTrimReplace: E
|
|
766
|
+
} = Q, { FLAG_INCLUDE_PRERELEASE: L, FLAG_LOOSE: p } = ie, R = (h) => h.value === "<0.0.0-0", F = (h) => h.value === "", x = (h, o) => {
|
|
767
|
+
let g = true;
|
|
768
|
+
const m = h.slice();
|
|
769
|
+
let v = m.pop();
|
|
770
|
+
for (; g && m.length; )
|
|
771
|
+
g = m.every((u) => v.intersects(u, o)), v = m.pop();
|
|
772
|
+
return g;
|
|
773
|
+
}, X = (h, o) => (i("comp", h, o), h = at(h, o), i("caret", h), h = V(h, o), i("tildes", h), h = ot(h, o), i("xrange", h), h = ht(h, o), i("stars", h), h), y = (h) => !h || h.toLowerCase() === "x" || h === "*", V = (h, o) => h.trim().split(/\s+/).map((g) => it(g, o)).join(" "), it = (h, o) => {
|
|
774
|
+
const g = o.loose ? $[a.TILDELOOSE] : $[a.TILDE];
|
|
775
|
+
return h.replace(g, (m, v, u, I, S) => {
|
|
776
|
+
i("tilde", h, m, v, u, I, S);
|
|
777
|
+
let N;
|
|
778
|
+
return y(v) ? N = "" : y(u) ? N = `>=${v}.0.0 <${+v + 1}.0.0-0` : y(I) ? N = `>=${v}.${u}.0 <${v}.${+u + 1}.0-0` : S ? (i("replaceTilde pr", S), N = `>=${v}.${u}.${I}-${S} <${v}.${+u + 1}.0-0`) : N = `>=${v}.${u}.${I} <${v}.${+u + 1}.0-0`, i("tilde return", N), N;
|
|
779
|
+
});
|
|
780
|
+
}, at = (h, o) => h.trim().split(/\s+/).map((g) => lt(g, o)).join(" "), lt = (h, o) => {
|
|
781
|
+
i("caret", h, o);
|
|
782
|
+
const g = o.loose ? $[a.CARETLOOSE] : $[a.CARET], m = o.includePrerelease ? "-0" : "";
|
|
783
|
+
return h.replace(g, (v, u, I, S, N) => {
|
|
784
|
+
i("caret", h, v, u, I, S, N);
|
|
785
|
+
let A;
|
|
786
|
+
return y(u) ? A = "" : y(I) ? A = `>=${u}.0.0${m} <${+u + 1}.0.0-0` : y(S) ? u === "0" ? A = `>=${u}.${I}.0${m} <${u}.${+I + 1}.0-0` : A = `>=${u}.${I}.0${m} <${+u + 1}.0.0-0` : N ? (i("replaceCaret pr", N), u === "0" ? I === "0" ? A = `>=${u}.${I}.${S}-${N} <${u}.${I}.${+S + 1}-0` : A = `>=${u}.${I}.${S}-${N} <${u}.${+I + 1}.0-0` : A = `>=${u}.${I}.${S}-${N} <${+u + 1}.0.0-0`) : (i("no pr"), u === "0" ? I === "0" ? A = `>=${u}.${I}.${S}${m} <${u}.${I}.${+S + 1}-0` : A = `>=${u}.${I}.${S}${m} <${u}.${+I + 1}.0-0` : A = `>=${u}.${I}.${S} <${+u + 1}.0.0-0`), i("caret return", A), A;
|
|
787
|
+
});
|
|
788
|
+
}, ot = (h, o) => (i("replaceXRanges", h, o), h.split(/\s+/).map((g) => ct(g, o)).join(" ")), ct = (h, o) => {
|
|
789
|
+
h = h.trim();
|
|
790
|
+
const g = o.loose ? $[a.XRANGELOOSE] : $[a.XRANGE];
|
|
791
|
+
return h.replace(g, (m, v, u, I, S, N) => {
|
|
792
|
+
i("xRange", h, m, v, u, I, S, N);
|
|
793
|
+
const A = y(u), P = A || y(I), O = P || y(S), z = O;
|
|
794
|
+
return v === "=" && z && (v = ""), N = o.includePrerelease ? "-0" : "", A ? v === ">" || v === "<" ? m = "<0.0.0-0" : m = "*" : v && z ? (P && (I = 0), S = 0, v === ">" ? (v = ">=", P ? (u = +u + 1, I = 0, S = 0) : (I = +I + 1, S = 0)) : v === "<=" && (v = "<", P ? u = +u + 1 : I = +I + 1), v === "<" && (N = "-0"), m = `${v + u}.${I}.${S}${N}`) : P ? m = `>=${u}.0.0${N} <${+u + 1}.0.0-0` : O && (m = `>=${u}.${I}.0${N} <${u}.${+I + 1}.0-0`), i("xRange return", m), m;
|
|
795
|
+
});
|
|
796
|
+
}, ht = (h, o) => (i("replaceStars", h, o), h.trim().replace($[a.STAR], "")), ut = (h, o) => (i("replaceGTE0", h, o), h.trim().replace($[o.includePrerelease ? a.GTE0PRE : a.GTE0], "")), ft = (h) => (o, g, m, v, u, I, S, N, A, P, O, z, $n) => (y(m) ? g = "" : y(v) ? g = `>=${m}.0.0${h ? "-0" : ""}` : y(u) ? g = `>=${m}.${v}.0${h ? "-0" : ""}` : I ? g = `>=${g}` : g = `>=${g}${h ? "-0" : ""}`, y(A) ? N = "" : y(P) ? N = `<${+A + 1}.0.0-0` : y(O) ? N = `<${A}.${+P + 1}.0-0` : z ? N = `<=${A}.${P}.${O}-${z}` : h ? N = `<${A}.${P}.${+O + 1}-0` : N = `<=${N}`, `${g} ${N}`.trim()), Et = (h, o, g) => {
|
|
797
|
+
for (let m = 0; m < h.length; m++)
|
|
798
|
+
if (!h[m].test(o))
|
|
799
|
+
return false;
|
|
800
|
+
if (o.prerelease.length && !g.includePrerelease) {
|
|
801
|
+
for (let m = 0; m < h.length; m++)
|
|
802
|
+
if (i(h[m].semver), h[m].semver !== n.ANY && h[m].semver.prerelease.length > 0) {
|
|
803
|
+
const v = h[m].semver;
|
|
804
|
+
if (v.major === o.major && v.minor === o.minor && v.patch === o.patch)
|
|
805
|
+
return true;
|
|
806
|
+
}
|
|
807
|
+
return false;
|
|
808
|
+
}
|
|
809
|
+
return true;
|
|
810
|
+
};
|
|
811
|
+
return Ee;
|
|
812
|
+
}
|
|
813
|
+
var pe, Ve;
|
|
814
|
+
function oe() {
|
|
815
|
+
if (Ve)
|
|
816
|
+
return pe;
|
|
817
|
+
Ve = 1;
|
|
818
|
+
const t = Symbol("SemVer ANY");
|
|
819
|
+
class e {
|
|
820
|
+
static get ANY() {
|
|
821
|
+
return t;
|
|
822
|
+
}
|
|
823
|
+
constructor(c, E) {
|
|
824
|
+
if (E = r(E), c instanceof e) {
|
|
825
|
+
if (c.loose === !!E.loose)
|
|
826
|
+
return c;
|
|
827
|
+
c = c.value;
|
|
828
|
+
}
|
|
829
|
+
c = c.trim().split(/\s+/).join(" "), f("comparator", c, E), this.options = E, this.loose = !!E.loose, this.parse(c), this.semver === t ? this.value = "" : this.value = this.operator + this.semver.version, f("comp", this);
|
|
830
|
+
}
|
|
831
|
+
parse(c) {
|
|
832
|
+
const E = this.options.loose ? s[n.COMPARATORLOOSE] : s[n.COMPARATOR], L = c.match(E);
|
|
833
|
+
if (!L)
|
|
834
|
+
throw new TypeError(`Invalid comparator: ${c}`);
|
|
835
|
+
this.operator = L[1] !== void 0 ? L[1] : "", this.operator === "=" && (this.operator = ""), L[2] ? this.semver = new $(L[2], this.options.loose) : this.semver = t;
|
|
836
|
+
}
|
|
837
|
+
toString() {
|
|
838
|
+
return this.value;
|
|
839
|
+
}
|
|
840
|
+
test(c) {
|
|
841
|
+
if (f("Comparator.test", c, this.options.loose), this.semver === t || c === t)
|
|
842
|
+
return true;
|
|
843
|
+
if (typeof c == "string")
|
|
844
|
+
try {
|
|
845
|
+
c = new $(c, this.options);
|
|
846
|
+
} catch {
|
|
847
|
+
return false;
|
|
848
|
+
}
|
|
849
|
+
return i(c, this.operator, this.semver, this.options);
|
|
850
|
+
}
|
|
851
|
+
intersects(c, E) {
|
|
852
|
+
if (!(c instanceof e))
|
|
853
|
+
throw new TypeError("a Comparator is required");
|
|
854
|
+
return this.operator === "" ? this.value === "" ? true : new a(c.value, E).test(this.value) : c.operator === "" ? c.value === "" ? true : new a(this.value, E).test(c.semver) : (E = r(E), E.includePrerelease && (this.value === "<0.0.0-0" || c.value === "<0.0.0-0") || !E.includePrerelease && (this.value.startsWith("<0.0.0") || c.value.startsWith("<0.0.0")) ? false : !!(this.operator.startsWith(">") && c.operator.startsWith(">") || this.operator.startsWith("<") && c.operator.startsWith("<") || this.semver.version === c.semver.version && this.operator.includes("=") && c.operator.includes("=") || i(this.semver, "<", c.semver, E) && this.operator.startsWith(">") && c.operator.startsWith("<") || i(this.semver, ">", c.semver, E) && this.operator.startsWith("<") && c.operator.startsWith(">")));
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
pe = e;
|
|
858
|
+
const r = ge, { safeRe: s, t: n } = Q, i = rt, f = ae, $ = w, a = _();
|
|
859
|
+
return pe;
|
|
860
|
+
}
|
|
861
|
+
const Hr = _(), qr = (t, e, r) => {
|
|
862
|
+
try {
|
|
863
|
+
e = new Hr(e, r);
|
|
864
|
+
} catch {
|
|
865
|
+
return false;
|
|
866
|
+
}
|
|
867
|
+
return e.test(t);
|
|
868
|
+
};
|
|
869
|
+
var ce = qr;
|
|
870
|
+
const Yr = _(), Mr = (t, e) => new Yr(t, e).set.map((r) => r.map((s) => s.value).join(" ").trim().split(" "));
|
|
871
|
+
var Wr = Mr;
|
|
872
|
+
const Br = w, zr = _(), Zr = (t, e, r) => {
|
|
873
|
+
let s = null, n = null, i = null;
|
|
874
|
+
try {
|
|
875
|
+
i = new zr(e, r);
|
|
876
|
+
} catch {
|
|
877
|
+
return null;
|
|
878
|
+
}
|
|
879
|
+
return t.forEach((f) => {
|
|
880
|
+
i.test(f) && (!s || n.compare(f) === -1) && (s = f, n = new Br(s, r));
|
|
881
|
+
}), s;
|
|
882
|
+
};
|
|
883
|
+
var Kr = Zr;
|
|
884
|
+
const Jr = w, Qr = _(), kr = (t, e, r) => {
|
|
885
|
+
let s = null, n = null, i = null;
|
|
886
|
+
try {
|
|
887
|
+
i = new Qr(e, r);
|
|
888
|
+
} catch {
|
|
889
|
+
return null;
|
|
890
|
+
}
|
|
891
|
+
return t.forEach((f) => {
|
|
892
|
+
i.test(f) && (!s || n.compare(f) === 1) && (s = f, n = new Jr(s, r));
|
|
893
|
+
}), s;
|
|
894
|
+
};
|
|
895
|
+
var es = kr;
|
|
896
|
+
const $e = w, ts = _(), Ue = le, rs = (t, e) => {
|
|
897
|
+
t = new ts(t, e);
|
|
898
|
+
let r = new $e("0.0.0");
|
|
899
|
+
if (t.test(r) || (r = new $e("0.0.0-0"), t.test(r)))
|
|
900
|
+
return r;
|
|
901
|
+
r = null;
|
|
902
|
+
for (let s = 0; s < t.set.length; ++s) {
|
|
903
|
+
const n = t.set[s];
|
|
904
|
+
let i = null;
|
|
905
|
+
n.forEach((f) => {
|
|
906
|
+
const $ = new $e(f.semver.version);
|
|
907
|
+
switch (f.operator) {
|
|
908
|
+
case ">":
|
|
909
|
+
$.prerelease.length === 0 ? $.patch++ : $.prerelease.push(0), $.raw = $.format();
|
|
910
|
+
case "":
|
|
911
|
+
case ">=":
|
|
912
|
+
(!i || Ue($, i)) && (i = $);
|
|
913
|
+
break;
|
|
914
|
+
case "<":
|
|
915
|
+
case "<=":
|
|
916
|
+
break;
|
|
917
|
+
default:
|
|
918
|
+
throw new Error(`Unexpected operation: ${f.operator}`);
|
|
919
|
+
}
|
|
920
|
+
}), i && (!r || Ue(r, i)) && (r = i);
|
|
921
|
+
}
|
|
922
|
+
return r && t.test(r) ? r : null;
|
|
923
|
+
};
|
|
924
|
+
var ss = rs;
|
|
925
|
+
const ns = _(), is = (t, e) => {
|
|
926
|
+
try {
|
|
927
|
+
return new ns(t, e).range || "*";
|
|
928
|
+
} catch {
|
|
929
|
+
return null;
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
var as = is;
|
|
933
|
+
const ls = w, nt = oe(), { ANY: os } = nt, cs = _(), hs = ce, He = le, qe = Ne, us = Se, fs = de, Es = (t, e, r, s) => {
|
|
934
|
+
t = new ls(t, s), e = new cs(e, s);
|
|
935
|
+
let n, i, f, $, a;
|
|
936
|
+
switch (r) {
|
|
937
|
+
case ">":
|
|
938
|
+
n = He, i = us, f = qe, $ = ">", a = ">=";
|
|
939
|
+
break;
|
|
940
|
+
case "<":
|
|
941
|
+
n = qe, i = fs, f = He, $ = "<", a = "<=";
|
|
942
|
+
break;
|
|
943
|
+
default:
|
|
944
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
945
|
+
}
|
|
946
|
+
if (hs(t, e, s))
|
|
947
|
+
return false;
|
|
948
|
+
for (let l = 0; l < e.set.length; ++l) {
|
|
949
|
+
const c = e.set[l];
|
|
950
|
+
let E = null, L = null;
|
|
951
|
+
if (c.forEach((p) => {
|
|
952
|
+
p.semver === os && (p = new nt(">=0.0.0")), E = E || p, L = L || p, n(p.semver, E.semver, s) ? E = p : f(p.semver, L.semver, s) && (L = p);
|
|
953
|
+
}), E.operator === $ || E.operator === a || (!L.operator || L.operator === $) && i(t, L.semver))
|
|
954
|
+
return false;
|
|
955
|
+
if (L.operator === a && f(t, L.semver))
|
|
956
|
+
return false;
|
|
957
|
+
}
|
|
958
|
+
return true;
|
|
959
|
+
};
|
|
960
|
+
var Le = Es;
|
|
961
|
+
const ps = Le, $s = (t, e, r) => ps(t, e, ">", r);
|
|
962
|
+
var ms = $s;
|
|
963
|
+
const vs = Le, Rs = (t, e, r) => vs(t, e, "<", r);
|
|
964
|
+
var gs = Rs;
|
|
965
|
+
const Ye = _(), Is = (t, e, r) => (t = new Ye(t, r), e = new Ye(e, r), t.intersects(e, r));
|
|
966
|
+
var Ns = Is;
|
|
967
|
+
const ds = ce, Ss = D;
|
|
968
|
+
var Ls = (t, e, r) => {
|
|
969
|
+
const s = [];
|
|
970
|
+
let n = null, i = null;
|
|
971
|
+
const f = t.sort((c, E) => Ss(c, E, r));
|
|
972
|
+
for (const c of f)
|
|
973
|
+
ds(c, e, r) ? (i = c, n || (n = c)) : (i && s.push([n, i]), i = null, n = null);
|
|
974
|
+
n && s.push([n, null]);
|
|
975
|
+
const $ = [];
|
|
976
|
+
for (const [c, E] of s)
|
|
977
|
+
c === E ? $.push(c) : !E && c === f[0] ? $.push("*") : E ? c === f[0] ? $.push(`<=${E}`) : $.push(`${c} - ${E}`) : $.push(`>=${c}`);
|
|
978
|
+
const a = $.join(" || "), l = typeof e.raw == "string" ? e.raw : String(e);
|
|
979
|
+
return a.length < l.length ? a : e;
|
|
980
|
+
};
|
|
981
|
+
const Me = _(), Ae = oe(), { ANY: me } = Ae, K = ce, Oe = D, As = (t, e, r = {}) => {
|
|
982
|
+
if (t === e)
|
|
983
|
+
return true;
|
|
984
|
+
t = new Me(t, r), e = new Me(e, r);
|
|
985
|
+
let s = false;
|
|
986
|
+
e:
|
|
987
|
+
for (const n of t.set) {
|
|
988
|
+
for (const i of e.set) {
|
|
989
|
+
const f = Ts(n, i, r);
|
|
990
|
+
if (s = s || f !== null, f)
|
|
991
|
+
continue e;
|
|
992
|
+
}
|
|
993
|
+
if (s)
|
|
994
|
+
return false;
|
|
995
|
+
}
|
|
996
|
+
return true;
|
|
997
|
+
}, Os = [new Ae(">=0.0.0-0")], We = [new Ae(">=0.0.0")], Ts = (t, e, r) => {
|
|
998
|
+
if (t === e)
|
|
999
|
+
return true;
|
|
1000
|
+
if (t.length === 1 && t[0].semver === me) {
|
|
1001
|
+
if (e.length === 1 && e[0].semver === me)
|
|
1002
|
+
return true;
|
|
1003
|
+
r.includePrerelease ? t = Os : t = We;
|
|
1004
|
+
}
|
|
1005
|
+
if (e.length === 1 && e[0].semver === me) {
|
|
1006
|
+
if (r.includePrerelease)
|
|
1007
|
+
return true;
|
|
1008
|
+
e = We;
|
|
1009
|
+
}
|
|
1010
|
+
const s = /* @__PURE__ */ new Set();
|
|
1011
|
+
let n, i;
|
|
1012
|
+
for (const p of t)
|
|
1013
|
+
p.operator === ">" || p.operator === ">=" ? n = Be(n, p, r) : p.operator === "<" || p.operator === "<=" ? i = ze(i, p, r) : s.add(p.semver);
|
|
1014
|
+
if (s.size > 1)
|
|
1015
|
+
return null;
|
|
1016
|
+
let f;
|
|
1017
|
+
if (n && i) {
|
|
1018
|
+
if (f = Oe(n.semver, i.semver, r), f > 0)
|
|
1019
|
+
return null;
|
|
1020
|
+
if (f === 0 && (n.operator !== ">=" || i.operator !== "<="))
|
|
1021
|
+
return null;
|
|
1022
|
+
}
|
|
1023
|
+
for (const p of s) {
|
|
1024
|
+
if (n && !K(p, String(n), r) || i && !K(p, String(i), r))
|
|
1025
|
+
return null;
|
|
1026
|
+
for (const R of e)
|
|
1027
|
+
if (!K(p, String(R), r))
|
|
1028
|
+
return false;
|
|
1029
|
+
return true;
|
|
1030
|
+
}
|
|
1031
|
+
let $, a, l, c, E = i && !r.includePrerelease && i.semver.prerelease.length ? i.semver : false, L = n && !r.includePrerelease && n.semver.prerelease.length ? n.semver : false;
|
|
1032
|
+
E && E.prerelease.length === 1 && i.operator === "<" && E.prerelease[0] === 0 && (E = false);
|
|
1033
|
+
for (const p of e) {
|
|
1034
|
+
if (c = c || p.operator === ">" || p.operator === ">=", l = l || p.operator === "<" || p.operator === "<=", n) {
|
|
1035
|
+
if (L && p.semver.prerelease && p.semver.prerelease.length && p.semver.major === L.major && p.semver.minor === L.minor && p.semver.patch === L.patch && (L = false), p.operator === ">" || p.operator === ">=") {
|
|
1036
|
+
if ($ = Be(n, p, r), $ === p && $ !== n)
|
|
1037
|
+
return false;
|
|
1038
|
+
} else if (n.operator === ">=" && !K(n.semver, String(p), r))
|
|
1039
|
+
return false;
|
|
1040
|
+
}
|
|
1041
|
+
if (i) {
|
|
1042
|
+
if (E && p.semver.prerelease && p.semver.prerelease.length && p.semver.major === E.major && p.semver.minor === E.minor && p.semver.patch === E.patch && (E = false), p.operator === "<" || p.operator === "<=") {
|
|
1043
|
+
if (a = ze(i, p, r), a === p && a !== i)
|
|
1044
|
+
return false;
|
|
1045
|
+
} else if (i.operator === "<=" && !K(i.semver, String(p), r))
|
|
1046
|
+
return false;
|
|
1047
|
+
}
|
|
1048
|
+
if (!p.operator && (i || n) && f !== 0)
|
|
1049
|
+
return false;
|
|
1050
|
+
}
|
|
1051
|
+
return !(n && l && !i && f !== 0 || i && c && !n && f !== 0 || L || E);
|
|
1052
|
+
}, Be = (t, e, r) => {
|
|
1053
|
+
if (!t)
|
|
1054
|
+
return e;
|
|
1055
|
+
const s = Oe(t.semver, e.semver, r);
|
|
1056
|
+
return s > 0 ? t : s < 0 || e.operator === ">" && t.operator === ">=" ? e : t;
|
|
1057
|
+
}, ze = (t, e, r) => {
|
|
1058
|
+
if (!t)
|
|
1059
|
+
return e;
|
|
1060
|
+
const s = Oe(t.semver, e.semver, r);
|
|
1061
|
+
return s < 0 ? t : s > 0 || e.operator === "<" && t.operator === "<=" ? e : t;
|
|
1062
|
+
};
|
|
1063
|
+
var ys = As;
|
|
1064
|
+
const ve = Q, Ze = ie, ws = w, Ke = ke, Ps = B, xs = Pt, Cs = Dt, Ds = Gt, _s = bt, Gs = Vt, js = qt, bs = Wt, Fs = Zt, Xs = D, Vs = kt, Us = rr, Hs = Ie, qs = ar, Ys = cr, Ms = le, Ws = Ne, Bs = et, zs = tt, Zs = de, Ks = Se, Js = rt, Qs = Cr, ks = oe(), en = _(), tn = ce, rn = Wr, sn = Kr, nn = es, an = ss, ln = as, on = Le, cn = ms, hn = gs, un = Ns, fn = Ls, En = ys;
|
|
1065
|
+
var pn = {
|
|
1066
|
+
parse: Ps,
|
|
1067
|
+
valid: xs,
|
|
1068
|
+
clean: Cs,
|
|
1069
|
+
inc: Ds,
|
|
1070
|
+
diff: _s,
|
|
1071
|
+
major: Gs,
|
|
1072
|
+
minor: js,
|
|
1073
|
+
patch: bs,
|
|
1074
|
+
prerelease: Fs,
|
|
1075
|
+
compare: Xs,
|
|
1076
|
+
rcompare: Vs,
|
|
1077
|
+
compareLoose: Us,
|
|
1078
|
+
compareBuild: Hs,
|
|
1079
|
+
sort: qs,
|
|
1080
|
+
rsort: Ys,
|
|
1081
|
+
gt: Ms,
|
|
1082
|
+
lt: Ws,
|
|
1083
|
+
eq: Bs,
|
|
1084
|
+
neq: zs,
|
|
1085
|
+
gte: Zs,
|
|
1086
|
+
lte: Ks,
|
|
1087
|
+
cmp: Js,
|
|
1088
|
+
coerce: Qs,
|
|
1089
|
+
Comparator: ks,
|
|
1090
|
+
Range: en,
|
|
1091
|
+
satisfies: tn,
|
|
1092
|
+
toComparators: rn,
|
|
1093
|
+
maxSatisfying: sn,
|
|
1094
|
+
minSatisfying: nn,
|
|
1095
|
+
minVersion: an,
|
|
1096
|
+
validRange: ln,
|
|
1097
|
+
outside: on,
|
|
1098
|
+
gtr: cn,
|
|
1099
|
+
ltr: hn,
|
|
1100
|
+
intersects: un,
|
|
1101
|
+
simplifyRange: fn,
|
|
1102
|
+
subset: En,
|
|
1103
|
+
SemVer: ws,
|
|
1104
|
+
re: ve.re,
|
|
1105
|
+
src: ve.src,
|
|
1106
|
+
tokens: ve.t,
|
|
1107
|
+
SEMVER_SPEC_VERSION: Ze.SEMVER_SPEC_VERSION,
|
|
1108
|
+
RELEASE_TYPES: Ze.RELEASE_TYPES,
|
|
1109
|
+
compareIdentifiers: Ke.compareIdentifiers,
|
|
1110
|
+
rcompareIdentifiers: Ke.rcompareIdentifiers
|
|
1111
|
+
};
|
|
1112
|
+
const vn = /* @__PURE__ */ getDefaultExportFromCjs(pn);
|
|
1113
|
+
export {
|
|
1114
|
+
vn as v
|
|
1115
|
+
};
|