@cccsaurora/clue-ui 1.3.0-dev.403 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/ActionForm-CHOSKfvu.js +4403 -0
  2. package/AnnotationDetails-Bqq6Ymmg.js +160 -0
  3. package/AnnotationPreview-CqXmC-j8.js +140 -0
  4. package/ClueEnrichContext-DL6aGe1k.js +432 -0
  5. package/FlexOne-BXWFOd1T.js +6 -0
  6. package/_MapCache-DRK-s2eK.js +179 -0
  7. package/_Set-DrS_bbSV.js +6 -0
  8. package/_Uint8Array-D9R2N9Lp.js +98 -0
  9. package/_arrayIncludes-Dcl_29E6.js +25 -0
  10. package/_arrayPush-DBJIuK2V.js +8 -0
  11. package/_baseAssignValue-Bx1cxHj5.js +12 -0
  12. package/_baseClone-DRhywkxm.js +211 -0
  13. package/_baseExtremum-DodEaEyF.js +16 -0
  14. package/_baseFlatten-CD9NgrYE.js +72 -0
  15. package/_baseGet-bVwDaGrA.js +80 -0
  16. package/_baseGetTag-CxDaTem-.js +25 -0
  17. package/_baseIsEqual-C-FKsm1J.js +150 -0
  18. package/_baseIteratee-D0FhC5bC.js +95 -0
  19. package/_baseRest-D_eW2E0d.js +8 -0
  20. package/_baseSlice-M5RKzt1A.js +10 -0
  21. package/_baseSum-wEbgNeUs.js +10 -0
  22. package/_baseUniq-D3N8igOm.js +41 -0
  23. package/_cacheHas-Wgl-hw34.js +22 -0
  24. package/_commonjsHelpers-C6fGbg64.js +6 -0
  25. package/_createAggregator-BVj8IAuF.js +53 -0
  26. package/_defineProperty-BZU4WKA3.js +11 -0
  27. package/_getPrototype-BGBCg-aX.js +5 -0
  28. package/_getTag-B7R9qBo7.js +73 -0
  29. package/_isIterateeCall-Dm0VTAYy.js +13 -0
  30. package/_setToArray-Ck4YZu0Z.js +9 -0
  31. package/cloneDeep-fV59zwUf.js +8 -0
  32. package/components/AnnotationBody.js +35 -49
  33. package/components/AnnotationDetailPopover.js +30 -36
  34. package/components/AnnotationDetails.js +7 -7
  35. package/components/AnnotationEntry.js +35 -35
  36. package/components/AnnotationPreview.js +5 -5
  37. package/components/ClassificationChip.js +23 -44
  38. package/components/CountBadge.js +26 -31
  39. package/components/EnrichedCard.js +97 -110
  40. package/components/EnrichedChip.js +105 -130
  41. package/components/EnrichedTypography.js +107 -133
  42. package/components/ErrorBoundary.js +24 -28
  43. package/components/RetryFailedEnrichments.js +9 -10
  44. package/components/SourcePicker.js +49 -57
  45. package/components/actions/ActionForm.js +4 -4
  46. package/components/actions/ExecutePopover.js +59 -75
  47. package/components/actions/ResultModal.js +4 -4
  48. package/components/actions/form/schemaAdapter.js +23 -39
  49. package/components/actions/formats/FileResult.js +59 -86
  50. package/components/actions/formats/index.js +25 -29
  51. package/components/display/graph/ExpandMoreButton.js +10 -10
  52. package/components/display/graph/elements/NodeCard.js +91 -111
  53. package/components/display/graph/elements/NodeTag.js +13 -15
  54. package/components/display/graph/index.js +204 -262
  55. package/components/display/graph/visualizations/Leaf.js +70 -89
  56. package/components/display/graph/visualizations/cloud/index.js +81 -98
  57. package/components/display/graph/visualizations/icons/BaseIcon.js +21 -26
  58. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  59. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  60. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  61. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  62. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  63. package/components/display/graph/visualizations/icons/index.js +13 -14
  64. package/components/display/graph/visualizations/panels/NodePanel.js +8 -10
  65. package/components/display/graph/visualizations/tree/BundleLine.js +81 -108
  66. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  67. package/components/display/graph/visualizations/tree/index.js +306 -408
  68. package/components/display/icons/Iconified.js +12 -27
  69. package/components/display/json/index.js +4 -4
  70. package/components/display/markdown/index.js +5770 -8678
  71. package/components/enrichment/EnrichPopover.js +46 -54
  72. package/components/fetchers/Fetcher.js +123 -166
  73. package/components/fetchers/FetcherResultView.js +27 -31
  74. package/components/fetchers/PreviewModal.js +16 -17
  75. package/components/fetchers/StatusChip.js +17 -21
  76. package/components/group/Entry.js +11 -13
  77. package/components/group/Group.js +10 -13
  78. package/components/group/GroupControl.js +65 -76
  79. package/components/stats/QueryStatus.js +32 -45
  80. package/countBy-B3rNuG4T.js +8 -0
  81. package/data/event.js +4 -6
  82. package/database/globals.js +2 -2
  83. package/database/index.js +3 -3
  84. package/database/replication.js +4 -4
  85. package/en/translation.json +7 -0
  86. package/fr/translation.json +7 -0
  87. package/get-Bil3mzRD.js +8 -0
  88. package/groupBy-CrJC7sGa.js +8 -0
  89. package/hooks/ClueActionContext.js +6 -6
  90. package/hooks/ClueComponentContext.js +23 -29
  91. package/hooks/ClueConfigProvider.js +12 -14
  92. package/hooks/ClueDatabaseContext.js +23 -35
  93. package/hooks/ClueEnrichContext.js +11 -11
  94. package/hooks/ClueFetcherContext.js +56 -83
  95. package/hooks/ClueGroupContext.js +14 -17
  96. package/hooks/CluePopupContext.js +5 -5
  97. package/hooks/ClueProvider.js +11 -13
  98. package/hooks/ClueUIPluginContext.d.ts +5 -0
  99. package/hooks/ClueUIPluginContext.js +35 -47
  100. package/hooks/selectors.js +7 -7
  101. package/hooks/useActionResult.js +3 -3
  102. package/hooks/useAnnotations.js +32 -48
  103. package/hooks/useClue.js +4 -6
  104. package/hooks/useClueActions.js +3 -3
  105. package/hooks/useClueConfig.js +4 -6
  106. package/hooks/useClueTypeConfig.js +24 -49
  107. package/hooks/useClueUIPlugins.d.ts +4 -0
  108. package/hooks/useClueUIPlugins.js +11 -0
  109. package/hooks/useComparator.js +435 -722
  110. package/hooks/useErrors.js +18 -22
  111. package/hooks/useFetcherResult.js +24 -33
  112. package/hooks/useMyHighlights.js +36 -66
  113. package/hooks/useMyLocalStorage.js +37 -66
  114. package/iconify-Ptb5dTKy.js +1270 -0
  115. package/icons/Action.js +49 -66
  116. package/icons/Assessment.js +69 -85
  117. package/icons/Context.js +63 -77
  118. package/icons/Opinion.js +60 -76
  119. package/icons/iconMap.js +2 -2
  120. package/identity-ByMq8VxU.js +6 -0
  121. package/index-BH-gBhtO.js +2282 -0
  122. package/index-BM9Sve5T.js +571 -0
  123. package/index-Cj4d5cGz.js +357 -0
  124. package/index-Dh2PP9h8.js +11747 -0
  125. package/index-DoFpWPHo.js +975 -0
  126. package/index-DzVIklWY.js +6464 -0
  127. package/isArguments-BWcXOE6a.js +24 -0
  128. package/isArray-WzO_os3q.js +4 -0
  129. package/isEmpty-DKxrY-_M.js +22 -0
  130. package/isNil-CjWwlQS3.js +6 -0
  131. package/isObject-B53jY8Qg.js +7 -0
  132. package/isObjectLike-CYbdrIBr.js +6 -0
  133. package/isSymbol-DE1Kcy2M.js +9 -0
  134. package/last-7CdUxN0r.js +7 -0
  135. package/main.js +62 -62
  136. package/maxBy-BOWDkL_D.js +8 -0
  137. package/package.json +3 -2
  138. package/plugins/ClueUIPlugin.d.ts +5 -1
  139. package/plugins/ClueUIPlugin.js +124 -162
  140. package/plugins/file/index.js +15 -15
  141. package/plugins/graph/example/tree.json.d.ts +91 -0
  142. package/plugins/graph/index.d.ts +3 -0
  143. package/plugins/graph/index.js +34 -17
  144. package/plugins/image/index.d.ts +3 -0
  145. package/plugins/image/index.js +34 -18
  146. package/plugins/json/index.d.ts +3 -0
  147. package/plugins/json/index.js +29 -17
  148. package/plugins/markdown/index.d.ts +3 -0
  149. package/plugins/markdown/index.js +28 -17
  150. package/plugins/registry.js +6 -6
  151. package/plugins/store.d.ts +1 -0
  152. package/plugins/store.js +4 -4
  153. package/plugins/test/index.js +17 -17
  154. package/plugins/utils.d.ts +1 -0
  155. package/plugins/utils.js +19 -0
  156. package/replication-WkKbPdwG.js +8453 -0
  157. package/sessionStorage-DFMae61b.js +90 -0
  158. package/sortBy-BHe812lF.js +74 -0
  159. package/store-DClHBq7r.js +1169 -0
  160. package/sumBy-B7f_bP_k.js +8 -0
  161. package/text/Frequency.js +23 -42
  162. package/toFinite-CBrE65MP.js +14 -0
  163. package/toNumber-CxmWey0f.js +31 -0
  164. package/uniq-B4UZ671_.js +7 -0
  165. package/utils/chain.js +65 -92
  166. package/utils/classificationParser.js +256 -519
  167. package/utils/constants.js +11 -37
  168. package/utils/graph.js +45 -72
  169. package/utils/hashUtil.js +7 -7
  170. package/utils/line.js +81 -131
  171. package/utils/loggerUtil.js +3 -5
  172. package/utils/sessionStorage.js +7 -7
  173. package/utils/time.js +427 -447
  174. package/utils/utils.js +10 -10
  175. package/utils/window.js +10 -21
  176. package/utils-SpTOhPYl.js +147 -0
  177. package/ActionForm-CqKcnDWC.js +0 -6099
  178. package/AnnotationDetails-BlPd3T8k.js +0 -176
  179. package/AnnotationPreview-Bl447SKT.js +0 -188
  180. package/ClueEnrichContext-B3YrTCaJ.js +0 -567
  181. package/FlexOne-BSYAhhtG.js +0 -9
  182. package/_MapCache-kuEY_iOH.js +0 -220
  183. package/_Set-BrSMTlHn.js +0 -6
  184. package/_Uint8Array-OPpgYQj7.js +0 -123
  185. package/_arrayIncludes-BNqL-9ZP.js +0 -31
  186. package/_arrayPush-CBkQqaE_.js +0 -10
  187. package/_baseAssignValue-CNUVPOBW.js +0 -16
  188. package/_baseClone-9FaRd1R2.js +0 -287
  189. package/_baseExtremum-wOGT4Dgw.js +0 -18
  190. package/_baseFlatten-Co6QHDlG.js +0 -92
  191. package/_baseGet-Cmp6FztG.js +0 -109
  192. package/_baseGetTag-Hj-0NTYF.js +0 -44
  193. package/_baseIsEqual-1CpU47TZ.js +0 -211
  194. package/_baseIteratee-BN7Vbe5g.js +0 -126
  195. package/_baseRest-BZ_hQ9PC.js +0 -8
  196. package/_baseSlice-GAv_YFTT.js +0 -20
  197. package/_baseSum-D0WC1dN0.js +0 -13
  198. package/_baseUniq-BnvS3JHL.js +0 -63
  199. package/_cacheHas-_aF2y2Xv.js +0 -25
  200. package/_commonjsHelpers-CUmg6egw.js +0 -6
  201. package/_createAggregator-BUZrP_is.js +0 -63
  202. package/_defineProperty-DolZLKmv.js +0 -12
  203. package/_getPrototype-Bb4gm-5m.js +0 -5
  204. package/_getTag-CML_cXiN.js +0 -105
  205. package/_isIterateeCall-B1IFEqVv.js +0 -17
  206. package/_setToArray-CqyqC8ib.js +0 -10
  207. package/cloneDeep-l3UkXG5M.js +0 -8
  208. package/countBy-Bqcp3VCs.js +0 -14
  209. package/get-CdMThM8x.js +0 -8
  210. package/groupBy-BVV07EGQ.js +0 -14
  211. package/iconify-DJxl6dC-.js +0 -1789
  212. package/identity-CPGTqrE4.js +0 -6
  213. package/index-CAvu7vwt.js +0 -1172
  214. package/index-CVUD9o3t.js +0 -15768
  215. package/index-DUEubgWN.js +0 -464
  216. package/index-Dj1N4IQP.js +0 -9314
  217. package/index-DpJxD74E.js +0 -3272
  218. package/index-_gpzM2Px.js +0 -702
  219. package/isArguments-CuYlEuhP.js +0 -27
  220. package/isArray-RJPfgWqI.js +0 -4
  221. package/isEmpty-BE656RUK.js +0 -30
  222. package/isNil-CIubwp4T.js +0 -6
  223. package/isObject-FTY-5JQX.js +0 -7
  224. package/isObjectLike-CeENW9FN.js +0 -6
  225. package/isSymbol-D_H4HPZQ.js +0 -9
  226. package/last-CUCl67Im.js +0 -7
  227. package/maxBy-BjjQmX5t.js +0 -8
  228. package/replication--gLEZw8a.js +0 -11777
  229. package/sessionStorage-B68y-wnE.js +0 -140
  230. package/sortBy-B8JVsLQY.js +0 -95
  231. package/store-DMdRx9g0.js +0 -2156
  232. package/sumBy-D-HCzM2i.js +0 -8
  233. package/toFinite-meZTg4Su.js +0 -16
  234. package/toNumber-B5JaA1vX.js +0 -39
  235. package/uniq-CahZPAwp.js +0 -7
  236. package/utils-CEySTPtg.js +0 -224
@@ -0,0 +1,1169 @@
1
+ var Zr = Object.defineProperty;
2
+ var Jr = (a, s, t) => s in a ? Zr(a, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[s] = t;
3
+ var V = (a, s, t) => Jr(a, typeof s != "symbol" ? s + "" : s, t);
4
+ import { g as Qr } from "./_commonjsHelpers-C6fGbg64.js";
5
+ import Mr, { useContext as et } from "react";
6
+ import { u as rt } from "./uniq-B4UZ671_.js";
7
+ var H = { exports: {} }, re, Ze;
8
+ function k() {
9
+ if (Ze) return re;
10
+ Ze = 1;
11
+ const a = "2.0.0", s = 256, t = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
12
+ 9007199254740991, r = 16, n = s - 6;
13
+ return re = {
14
+ MAX_LENGTH: s,
15
+ MAX_SAFE_COMPONENT_LENGTH: r,
16
+ MAX_SAFE_BUILD_LENGTH: n,
17
+ MAX_SAFE_INTEGER: t,
18
+ RELEASE_TYPES: [
19
+ "major",
20
+ "premajor",
21
+ "minor",
22
+ "preminor",
23
+ "patch",
24
+ "prepatch",
25
+ "prerelease"
26
+ ],
27
+ SEMVER_SPEC_VERSION: a,
28
+ FLAG_INCLUDE_PRERELEASE: 1,
29
+ FLAG_LOOSE: 2
30
+ }, re;
31
+ }
32
+ var te, Je;
33
+ function W() {
34
+ return Je || (Je = 1, te = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...s) => console.error("SEMVER", ...s) : () => {
35
+ }), te;
36
+ }
37
+ var Qe;
38
+ function M() {
39
+ return Qe || (Qe = 1, (function(a, s) {
40
+ const {
41
+ MAX_SAFE_COMPONENT_LENGTH: t,
42
+ MAX_SAFE_BUILD_LENGTH: r,
43
+ MAX_LENGTH: n
44
+ } = k(), u = W();
45
+ s = a.exports = {};
46
+ const l = s.re = [], f = s.safeRe = [], o = s.src = [], i = s.safeSrc = [], e = s.t = {};
47
+ let c = 0;
48
+ const h = "[a-zA-Z0-9-]", R = [
49
+ ["\\s", 1],
50
+ ["\\d", n],
51
+ [h, r]
52
+ ], O = (S) => {
53
+ for (const [P, F] of R)
54
+ S = S.split(`${P}*`).join(`${P}{0,${F}}`).split(`${P}+`).join(`${P}{1,${F}}`);
55
+ return S;
56
+ }, p = (S, P, F) => {
57
+ const T = O(P), D = c++;
58
+ u(S, D, P), e[S] = D, o[D] = P, i[D] = T, l[D] = new RegExp(P, F ? "g" : void 0), f[D] = new RegExp(T, F ? "g" : void 0);
59
+ };
60
+ p("NUMERICIDENTIFIER", "0|[1-9]\\d*"), p("NUMERICIDENTIFIERLOOSE", "\\d+"), p("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${h}*`), p("MAINVERSION", `(${o[e.NUMERICIDENTIFIER]})\\.(${o[e.NUMERICIDENTIFIER]})\\.(${o[e.NUMERICIDENTIFIER]})`), p("MAINVERSIONLOOSE", `(${o[e.NUMERICIDENTIFIERLOOSE]})\\.(${o[e.NUMERICIDENTIFIERLOOSE]})\\.(${o[e.NUMERICIDENTIFIERLOOSE]})`), p("PRERELEASEIDENTIFIER", `(?:${o[e.NONNUMERICIDENTIFIER]}|${o[e.NUMERICIDENTIFIER]})`), p("PRERELEASEIDENTIFIERLOOSE", `(?:${o[e.NONNUMERICIDENTIFIER]}|${o[e.NUMERICIDENTIFIERLOOSE]})`), p("PRERELEASE", `(?:-(${o[e.PRERELEASEIDENTIFIER]}(?:\\.${o[e.PRERELEASEIDENTIFIER]})*))`), p("PRERELEASELOOSE", `(?:-?(${o[e.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[e.PRERELEASEIDENTIFIERLOOSE]})*))`), p("BUILDIDENTIFIER", `${h}+`), p("BUILD", `(?:\\+(${o[e.BUILDIDENTIFIER]}(?:\\.${o[e.BUILDIDENTIFIER]})*))`), p("FULLPLAIN", `v?${o[e.MAINVERSION]}${o[e.PRERELEASE]}?${o[e.BUILD]}?`), p("FULL", `^${o[e.FULLPLAIN]}$`), p("LOOSEPLAIN", `[v=\\s]*${o[e.MAINVERSIONLOOSE]}${o[e.PRERELEASELOOSE]}?${o[e.BUILD]}?`), p("LOOSE", `^${o[e.LOOSEPLAIN]}$`), p("GTLT", "((?:<|>)?=?)"), p("XRANGEIDENTIFIERLOOSE", `${o[e.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), p("XRANGEIDENTIFIER", `${o[e.NUMERICIDENTIFIER]}|x|X|\\*`), p("XRANGEPLAIN", `[v=\\s]*(${o[e.XRANGEIDENTIFIER]})(?:\\.(${o[e.XRANGEIDENTIFIER]})(?:\\.(${o[e.XRANGEIDENTIFIER]})(?:${o[e.PRERELEASE]})?${o[e.BUILD]}?)?)?`), p("XRANGEPLAINLOOSE", `[v=\\s]*(${o[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[e.XRANGEIDENTIFIERLOOSE]})(?:${o[e.PRERELEASELOOSE]})?${o[e.BUILD]}?)?)?`), p("XRANGE", `^${o[e.GTLT]}\\s*${o[e.XRANGEPLAIN]}$`), p("XRANGELOOSE", `^${o[e.GTLT]}\\s*${o[e.XRANGEPLAINLOOSE]}$`), p("COERCEPLAIN", `(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`), p("COERCE", `${o[e.COERCEPLAIN]}(?:$|[^\\d])`), p("COERCEFULL", o[e.COERCEPLAIN] + `(?:${o[e.PRERELEASE]})?(?:${o[e.BUILD]})?(?:$|[^\\d])`), p("COERCERTL", o[e.COERCE], !0), p("COERCERTLFULL", o[e.COERCEFULL], !0), p("LONETILDE", "(?:~>?)"), p("TILDETRIM", `(\\s*)${o[e.LONETILDE]}\\s+`, !0), s.tildeTrimReplace = "$1~", p("TILDE", `^${o[e.LONETILDE]}${o[e.XRANGEPLAIN]}$`), p("TILDELOOSE", `^${o[e.LONETILDE]}${o[e.XRANGEPLAINLOOSE]}$`), p("LONECARET", "(?:\\^)"), p("CARETTRIM", `(\\s*)${o[e.LONECARET]}\\s+`, !0), s.caretTrimReplace = "$1^", p("CARET", `^${o[e.LONECARET]}${o[e.XRANGEPLAIN]}$`), p("CARETLOOSE", `^${o[e.LONECARET]}${o[e.XRANGEPLAINLOOSE]}$`), p("COMPARATORLOOSE", `^${o[e.GTLT]}\\s*(${o[e.LOOSEPLAIN]})$|^$`), p("COMPARATOR", `^${o[e.GTLT]}\\s*(${o[e.FULLPLAIN]})$|^$`), p("COMPARATORTRIM", `(\\s*)${o[e.GTLT]}\\s*(${o[e.LOOSEPLAIN]}|${o[e.XRANGEPLAIN]})`, !0), s.comparatorTrimReplace = "$1$2$3", p("HYPHENRANGE", `^\\s*(${o[e.XRANGEPLAIN]})\\s+-\\s+(${o[e.XRANGEPLAIN]})\\s*$`), p("HYPHENRANGELOOSE", `^\\s*(${o[e.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[e.XRANGEPLAINLOOSE]})\\s*$`), p("STAR", "(<|>)?=?\\s*\\*"), p("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), p("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
61
+ })(H, H.exports)), H.exports;
62
+ }
63
+ var se, er;
64
+ function He() {
65
+ if (er) return se;
66
+ er = 1;
67
+ const a = Object.freeze({ loose: !0 }), s = Object.freeze({});
68
+ return se = (r) => r ? typeof r != "object" ? a : r : s, se;
69
+ }
70
+ var ne, rr;
71
+ function Hr() {
72
+ if (rr) return ne;
73
+ rr = 1;
74
+ const a = /^[0-9]+$/, s = (r, n) => {
75
+ const u = a.test(r), l = a.test(n);
76
+ return u && l && (r = +r, n = +n), r === n ? 0 : u && !l ? -1 : l && !u ? 1 : r < n ? -1 : 1;
77
+ };
78
+ return ne = {
79
+ compareIdentifiers: s,
80
+ rcompareIdentifiers: (r, n) => s(n, r)
81
+ }, ne;
82
+ }
83
+ var ie, tr;
84
+ function G() {
85
+ if (tr) return ie;
86
+ tr = 1;
87
+ const a = W(), { MAX_LENGTH: s, MAX_SAFE_INTEGER: t } = k(), { safeRe: r, t: n } = M(), u = He(), { compareIdentifiers: l } = Hr();
88
+ class f {
89
+ constructor(i, e) {
90
+ if (e = u(e), i instanceof f) {
91
+ if (i.loose === !!e.loose && i.includePrerelease === !!e.includePrerelease)
92
+ return i;
93
+ i = i.version;
94
+ } else if (typeof i != "string")
95
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof i}".`);
96
+ if (i.length > s)
97
+ throw new TypeError(
98
+ `version is longer than ${s} characters`
99
+ );
100
+ a("SemVer", i, e), this.options = e, this.loose = !!e.loose, this.includePrerelease = !!e.includePrerelease;
101
+ const c = i.trim().match(e.loose ? r[n.LOOSE] : r[n.FULL]);
102
+ if (!c)
103
+ throw new TypeError(`Invalid Version: ${i}`);
104
+ if (this.raw = i, this.major = +c[1], this.minor = +c[2], this.patch = +c[3], this.major > t || this.major < 0)
105
+ throw new TypeError("Invalid major version");
106
+ if (this.minor > t || this.minor < 0)
107
+ throw new TypeError("Invalid minor version");
108
+ if (this.patch > t || this.patch < 0)
109
+ throw new TypeError("Invalid patch version");
110
+ c[4] ? this.prerelease = c[4].split(".").map((h) => {
111
+ if (/^[0-9]+$/.test(h)) {
112
+ const R = +h;
113
+ if (R >= 0 && R < t)
114
+ return R;
115
+ }
116
+ return h;
117
+ }) : this.prerelease = [], this.build = c[5] ? c[5].split(".") : [], this.format();
118
+ }
119
+ format() {
120
+ return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
121
+ }
122
+ toString() {
123
+ return this.version;
124
+ }
125
+ compare(i) {
126
+ if (a("SemVer.compare", this.version, this.options, i), !(i instanceof f)) {
127
+ if (typeof i == "string" && i === this.version)
128
+ return 0;
129
+ i = new f(i, this.options);
130
+ }
131
+ return i.version === this.version ? 0 : this.compareMain(i) || this.comparePre(i);
132
+ }
133
+ compareMain(i) {
134
+ return i instanceof f || (i = new f(i, this.options)), l(this.major, i.major) || l(this.minor, i.minor) || l(this.patch, i.patch);
135
+ }
136
+ comparePre(i) {
137
+ if (i instanceof f || (i = new f(i, this.options)), this.prerelease.length && !i.prerelease.length)
138
+ return -1;
139
+ if (!this.prerelease.length && i.prerelease.length)
140
+ return 1;
141
+ if (!this.prerelease.length && !i.prerelease.length)
142
+ return 0;
143
+ let e = 0;
144
+ do {
145
+ const c = this.prerelease[e], h = i.prerelease[e];
146
+ if (a("prerelease compare", e, c, h), c === void 0 && h === void 0)
147
+ return 0;
148
+ if (h === void 0)
149
+ return 1;
150
+ if (c === void 0)
151
+ return -1;
152
+ if (c === h)
153
+ continue;
154
+ return l(c, h);
155
+ } while (++e);
156
+ }
157
+ compareBuild(i) {
158
+ i instanceof f || (i = new f(i, this.options));
159
+ let e = 0;
160
+ do {
161
+ const c = this.build[e], h = i.build[e];
162
+ if (a("build compare", e, c, h), c === void 0 && h === void 0)
163
+ return 0;
164
+ if (h === void 0)
165
+ return 1;
166
+ if (c === void 0)
167
+ return -1;
168
+ if (c === h)
169
+ continue;
170
+ return l(c, h);
171
+ } while (++e);
172
+ }
173
+ // preminor will bump the version up to the next minor release, and immediately
174
+ // down to pre-release. premajor and prepatch work the same way.
175
+ inc(i, e, c) {
176
+ if (i.startsWith("pre")) {
177
+ if (!e && c === !1)
178
+ throw new Error("invalid increment argument: identifier is empty");
179
+ if (e) {
180
+ const h = `-${e}`.match(this.options.loose ? r[n.PRERELEASELOOSE] : r[n.PRERELEASE]);
181
+ if (!h || h[1] !== e)
182
+ throw new Error(`invalid identifier: ${e}`);
183
+ }
184
+ }
185
+ switch (i) {
186
+ case "premajor":
187
+ this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", e, c);
188
+ break;
189
+ case "preminor":
190
+ this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", e, c);
191
+ break;
192
+ case "prepatch":
193
+ this.prerelease.length = 0, this.inc("patch", e, c), this.inc("pre", e, c);
194
+ break;
195
+ // If the input is a non-prerelease version, this acts the same as
196
+ // prepatch.
197
+ case "prerelease":
198
+ this.prerelease.length === 0 && this.inc("patch", e, c), this.inc("pre", e, c);
199
+ break;
200
+ case "release":
201
+ if (this.prerelease.length === 0)
202
+ throw new Error(`version ${this.raw} is not a prerelease`);
203
+ this.prerelease.length = 0;
204
+ break;
205
+ case "major":
206
+ (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
207
+ break;
208
+ case "minor":
209
+ (this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
210
+ break;
211
+ case "patch":
212
+ this.prerelease.length === 0 && this.patch++, this.prerelease = [];
213
+ break;
214
+ // This probably shouldn't be used publicly.
215
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
216
+ case "pre": {
217
+ const h = Number(c) ? 1 : 0;
218
+ if (this.prerelease.length === 0)
219
+ this.prerelease = [h];
220
+ else {
221
+ let R = this.prerelease.length;
222
+ for (; --R >= 0; )
223
+ typeof this.prerelease[R] == "number" && (this.prerelease[R]++, R = -2);
224
+ if (R === -1) {
225
+ if (e === this.prerelease.join(".") && c === !1)
226
+ throw new Error("invalid increment argument: identifier already exists");
227
+ this.prerelease.push(h);
228
+ }
229
+ }
230
+ if (e) {
231
+ let R = [e, h];
232
+ c === !1 && (R = [e]), l(this.prerelease[0], e) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = R) : this.prerelease = R;
233
+ }
234
+ break;
235
+ }
236
+ default:
237
+ throw new Error(`invalid increment argument: ${i}`);
238
+ }
239
+ return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
240
+ }
241
+ }
242
+ return ie = f, ie;
243
+ }
244
+ var ae, sr;
245
+ function x() {
246
+ if (sr) return ae;
247
+ sr = 1;
248
+ const a = G();
249
+ return ae = (t, r, n = !1) => {
250
+ if (t instanceof a)
251
+ return t;
252
+ try {
253
+ return new a(t, r);
254
+ } catch (u) {
255
+ if (!n)
256
+ return null;
257
+ throw u;
258
+ }
259
+ }, ae;
260
+ }
261
+ var oe, nr;
262
+ function tt() {
263
+ if (nr) return oe;
264
+ nr = 1;
265
+ const a = x();
266
+ return oe = (t, r) => {
267
+ const n = a(t, r);
268
+ return n ? n.version : null;
269
+ }, oe;
270
+ }
271
+ var le, ir;
272
+ function st() {
273
+ if (ir) return le;
274
+ ir = 1;
275
+ const a = x();
276
+ return le = (t, r) => {
277
+ const n = a(t.trim().replace(/^[=v]+/, ""), r);
278
+ return n ? n.version : null;
279
+ }, le;
280
+ }
281
+ var ce, ar;
282
+ function nt() {
283
+ if (ar) return ce;
284
+ ar = 1;
285
+ const a = G();
286
+ return ce = (t, r, n, u, l) => {
287
+ typeof n == "string" && (l = u, u = n, n = void 0);
288
+ try {
289
+ return new a(
290
+ t instanceof a ? t.version : t,
291
+ n
292
+ ).inc(r, u, l).version;
293
+ } catch {
294
+ return null;
295
+ }
296
+ }, ce;
297
+ }
298
+ var ue, or;
299
+ function it() {
300
+ if (or) return ue;
301
+ or = 1;
302
+ const a = x();
303
+ return ue = (t, r) => {
304
+ const n = a(t, null, !0), u = a(r, null, !0), l = n.compare(u);
305
+ if (l === 0)
306
+ return null;
307
+ const f = l > 0, o = f ? n : u, i = f ? u : n, e = !!o.prerelease.length;
308
+ if (!!i.prerelease.length && !e) {
309
+ if (!i.patch && !i.minor)
310
+ return "major";
311
+ if (i.compareMain(o) === 0)
312
+ return i.minor && !i.patch ? "minor" : "patch";
313
+ }
314
+ const h = e ? "pre" : "";
315
+ return n.major !== u.major ? h + "major" : n.minor !== u.minor ? h + "minor" : n.patch !== u.patch ? h + "patch" : "prerelease";
316
+ }, ue;
317
+ }
318
+ var fe, lr;
319
+ function at() {
320
+ if (lr) return fe;
321
+ lr = 1;
322
+ const a = G();
323
+ return fe = (t, r) => new a(t, r).major, fe;
324
+ }
325
+ var he, cr;
326
+ function ot() {
327
+ if (cr) return he;
328
+ cr = 1;
329
+ const a = G();
330
+ return he = (t, r) => new a(t, r).minor, he;
331
+ }
332
+ var Ee, ur;
333
+ function lt() {
334
+ if (ur) return Ee;
335
+ ur = 1;
336
+ const a = G();
337
+ return Ee = (t, r) => new a(t, r).patch, Ee;
338
+ }
339
+ var pe, fr;
340
+ function ct() {
341
+ if (fr) return pe;
342
+ fr = 1;
343
+ const a = x();
344
+ return pe = (t, r) => {
345
+ const n = a(t, r);
346
+ return n && n.prerelease.length ? n.prerelease : null;
347
+ }, pe;
348
+ }
349
+ var me, hr;
350
+ function b() {
351
+ if (hr) return me;
352
+ hr = 1;
353
+ const a = G();
354
+ return me = (t, r, n) => new a(t, n).compare(new a(r, n)), me;
355
+ }
356
+ var Re, Er;
357
+ function ut() {
358
+ if (Er) return Re;
359
+ Er = 1;
360
+ const a = b();
361
+ return Re = (t, r, n) => a(r, t, n), Re;
362
+ }
363
+ var de, pr;
364
+ function ft() {
365
+ if (pr) return de;
366
+ pr = 1;
367
+ const a = b();
368
+ return de = (t, r) => a(t, r, !0), de;
369
+ }
370
+ var ve, mr;
371
+ function ke() {
372
+ if (mr) return ve;
373
+ mr = 1;
374
+ const a = G();
375
+ return ve = (t, r, n) => {
376
+ const u = new a(t, n), l = new a(r, n);
377
+ return u.compare(l) || u.compareBuild(l);
378
+ }, ve;
379
+ }
380
+ var $e, Rr;
381
+ function ht() {
382
+ if (Rr) return $e;
383
+ Rr = 1;
384
+ const a = ke();
385
+ return $e = (t, r) => t.sort((n, u) => a(n, u, r)), $e;
386
+ }
387
+ var ge, dr;
388
+ function Et() {
389
+ if (dr) return ge;
390
+ dr = 1;
391
+ const a = ke();
392
+ return ge = (t, r) => t.sort((n, u) => a(u, n, r)), ge;
393
+ }
394
+ var Ie, vr;
395
+ function Y() {
396
+ if (vr) return Ie;
397
+ vr = 1;
398
+ const a = b();
399
+ return Ie = (t, r, n) => a(t, r, n) > 0, Ie;
400
+ }
401
+ var Le, $r;
402
+ function We() {
403
+ if ($r) return Le;
404
+ $r = 1;
405
+ const a = b();
406
+ return Le = (t, r, n) => a(t, r, n) < 0, Le;
407
+ }
408
+ var Se, gr;
409
+ function kr() {
410
+ if (gr) return Se;
411
+ gr = 1;
412
+ const a = b();
413
+ return Se = (t, r, n) => a(t, r, n) === 0, Se;
414
+ }
415
+ var Ne, Ir;
416
+ function Wr() {
417
+ if (Ir) return Ne;
418
+ Ir = 1;
419
+ const a = b();
420
+ return Ne = (t, r, n) => a(t, r, n) !== 0, Ne;
421
+ }
422
+ var Oe, Lr;
423
+ function Ye() {
424
+ if (Lr) return Oe;
425
+ Lr = 1;
426
+ const a = b();
427
+ return Oe = (t, r, n) => a(t, r, n) >= 0, Oe;
428
+ }
429
+ var Ae, Sr;
430
+ function ze() {
431
+ if (Sr) return Ae;
432
+ Sr = 1;
433
+ const a = b();
434
+ return Ae = (t, r, n) => a(t, r, n) <= 0, Ae;
435
+ }
436
+ var Pe, Nr;
437
+ function Yr() {
438
+ if (Nr) return Pe;
439
+ Nr = 1;
440
+ const a = kr(), s = Wr(), t = Y(), r = Ye(), n = We(), u = ze();
441
+ return Pe = (f, o, i, e) => {
442
+ switch (o) {
443
+ case "===":
444
+ return typeof f == "object" && (f = f.version), typeof i == "object" && (i = i.version), f === i;
445
+ case "!==":
446
+ return typeof f == "object" && (f = f.version), typeof i == "object" && (i = i.version), f !== i;
447
+ case "":
448
+ case "=":
449
+ case "==":
450
+ return a(f, i, e);
451
+ case "!=":
452
+ return s(f, i, e);
453
+ case ">":
454
+ return t(f, i, e);
455
+ case ">=":
456
+ return r(f, i, e);
457
+ case "<":
458
+ return n(f, i, e);
459
+ case "<=":
460
+ return u(f, i, e);
461
+ default:
462
+ throw new TypeError(`Invalid operator: ${o}`);
463
+ }
464
+ }, Pe;
465
+ }
466
+ var Te, Or;
467
+ function pt() {
468
+ if (Or) return Te;
469
+ Or = 1;
470
+ const a = G(), s = x(), { safeRe: t, t: r } = M();
471
+ return Te = (u, l) => {
472
+ if (u instanceof a)
473
+ return u;
474
+ if (typeof u == "number" && (u = String(u)), typeof u != "string")
475
+ return null;
476
+ l = l || {};
477
+ let f = null;
478
+ if (!l.rtl)
479
+ f = u.match(l.includePrerelease ? t[r.COERCEFULL] : t[r.COERCE]);
480
+ else {
481
+ const R = l.includePrerelease ? t[r.COERCERTLFULL] : t[r.COERCERTL];
482
+ let O;
483
+ for (; (O = R.exec(u)) && (!f || f.index + f[0].length !== u.length); )
484
+ (!f || O.index + O[0].length !== f.index + f[0].length) && (f = O), R.lastIndex = O.index + O[1].length + O[2].length;
485
+ R.lastIndex = -1;
486
+ }
487
+ if (f === null)
488
+ return null;
489
+ const o = f[2], i = f[3] || "0", e = f[4] || "0", c = l.includePrerelease && f[5] ? `-${f[5]}` : "", h = l.includePrerelease && f[6] ? `+${f[6]}` : "";
490
+ return s(`${o}.${i}.${e}${c}${h}`, l);
491
+ }, Te;
492
+ }
493
+ var we, Ar;
494
+ function mt() {
495
+ if (Ar) return we;
496
+ Ar = 1;
497
+ class a {
498
+ constructor() {
499
+ this.max = 1e3, this.map = /* @__PURE__ */ new Map();
500
+ }
501
+ get(t) {
502
+ const r = this.map.get(t);
503
+ if (r !== void 0)
504
+ return this.map.delete(t), this.map.set(t, r), r;
505
+ }
506
+ delete(t) {
507
+ return this.map.delete(t);
508
+ }
509
+ set(t, r) {
510
+ if (!this.delete(t) && r !== void 0) {
511
+ if (this.map.size >= this.max) {
512
+ const u = this.map.keys().next().value;
513
+ this.delete(u);
514
+ }
515
+ this.map.set(t, r);
516
+ }
517
+ return this;
518
+ }
519
+ }
520
+ return we = a, we;
521
+ }
522
+ var Ce, Pr;
523
+ function U() {
524
+ if (Pr) return Ce;
525
+ Pr = 1;
526
+ const a = /\s+/g;
527
+ class s {
528
+ constructor(E, $) {
529
+ if ($ = n($), E instanceof s)
530
+ return E.loose === !!$.loose && E.includePrerelease === !!$.includePrerelease ? E : new s(E.raw, $);
531
+ if (E instanceof u)
532
+ return this.raw = E.value, this.set = [[E]], this.formatted = void 0, this;
533
+ if (this.options = $, this.loose = !!$.loose, this.includePrerelease = !!$.includePrerelease, this.raw = E.trim().replace(a, " "), this.set = this.raw.split("||").map((d) => this.parseRange(d.trim())).filter((d) => d.length), !this.set.length)
534
+ throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
535
+ if (this.set.length > 1) {
536
+ const d = this.set[0];
537
+ if (this.set = this.set.filter((g) => !p(g[0])), this.set.length === 0)
538
+ this.set = [d];
539
+ else if (this.set.length > 1) {
540
+ for (const g of this.set)
541
+ if (g.length === 1 && S(g[0])) {
542
+ this.set = [g];
543
+ break;
544
+ }
545
+ }
546
+ }
547
+ this.formatted = void 0;
548
+ }
549
+ get range() {
550
+ if (this.formatted === void 0) {
551
+ this.formatted = "";
552
+ for (let E = 0; E < this.set.length; E++) {
553
+ E > 0 && (this.formatted += "||");
554
+ const $ = this.set[E];
555
+ for (let d = 0; d < $.length; d++)
556
+ d > 0 && (this.formatted += " "), this.formatted += $[d].toString().trim();
557
+ }
558
+ }
559
+ return this.formatted;
560
+ }
561
+ format() {
562
+ return this.range;
563
+ }
564
+ toString() {
565
+ return this.range;
566
+ }
567
+ parseRange(E) {
568
+ const d = ((this.options.includePrerelease && R) | (this.options.loose && O)) + ":" + E, g = r.get(d);
569
+ if (g)
570
+ return g;
571
+ const v = this.options.loose, I = v ? o[i.HYPHENRANGELOOSE] : o[i.HYPHENRANGE];
572
+ E = E.replace(I, Q(this.options.includePrerelease)), l("hyphen replace", E), E = E.replace(o[i.COMPARATORTRIM], e), l("comparator trim", E), E = E.replace(o[i.TILDETRIM], c), l("tilde trim", E), E = E.replace(o[i.CARETTRIM], h), l("caret trim", E);
573
+ let A = E.split(" ").map((q) => F(q, this.options)).join(" ").split(/\s+/).map((q) => J(q, this.options));
574
+ v && (A = A.filter((q) => (l("loose invalid filter", q, this.options), !!q.match(o[i.COMPARATORLOOSE])))), l("range list", A);
575
+ const N = /* @__PURE__ */ new Map(), w = A.map((q) => new u(q, this.options));
576
+ for (const q of w) {
577
+ if (p(q))
578
+ return [q];
579
+ N.set(q.value, q);
580
+ }
581
+ N.size > 1 && N.has("") && N.delete("");
582
+ const _ = [...N.values()];
583
+ return r.set(d, _), _;
584
+ }
585
+ intersects(E, $) {
586
+ if (!(E instanceof s))
587
+ throw new TypeError("a Range is required");
588
+ return this.set.some((d) => P(d, $) && E.set.some((g) => P(g, $) && d.every((v) => g.every((I) => v.intersects(I, $)))));
589
+ }
590
+ // if ANY of the sets match ALL of its comparators, then pass
591
+ test(E) {
592
+ if (!E)
593
+ return !1;
594
+ if (typeof E == "string")
595
+ try {
596
+ E = new f(E, this.options);
597
+ } catch {
598
+ return !1;
599
+ }
600
+ for (let $ = 0; $ < this.set.length; $++)
601
+ if (ee(this.set[$], E, this.options))
602
+ return !0;
603
+ return !1;
604
+ }
605
+ }
606
+ Ce = s;
607
+ const t = mt(), r = new t(), n = He(), u = z(), l = W(), f = G(), {
608
+ safeRe: o,
609
+ t: i,
610
+ comparatorTrimReplace: e,
611
+ tildeTrimReplace: c,
612
+ caretTrimReplace: h
613
+ } = M(), { FLAG_INCLUDE_PRERELEASE: R, FLAG_LOOSE: O } = k(), p = (m) => m.value === "<0.0.0-0", S = (m) => m.value === "", P = (m, E) => {
614
+ let $ = !0;
615
+ const d = m.slice();
616
+ let g = d.pop();
617
+ for (; $ && d.length; )
618
+ $ = d.every((v) => g.intersects(v, E)), g = d.pop();
619
+ return $;
620
+ }, F = (m, E) => (l("comp", m, E), m = C(m, E), l("caret", m), m = D(m, E), l("tildes", m), m = L(m, E), l("xrange", m), m = Z(m, E), l("stars", m), m), T = (m) => !m || m.toLowerCase() === "x" || m === "*", D = (m, E) => m.trim().split(/\s+/).map(($) => j($, E)).join(" "), j = (m, E) => {
621
+ const $ = E.loose ? o[i.TILDELOOSE] : o[i.TILDE];
622
+ return m.replace($, (d, g, v, I, A) => {
623
+ l("tilde", m, d, g, v, I, A);
624
+ let N;
625
+ return T(g) ? N = "" : T(v) ? N = `>=${g}.0.0 <${+g + 1}.0.0-0` : T(I) ? N = `>=${g}.${v}.0 <${g}.${+v + 1}.0-0` : A ? (l("replaceTilde pr", A), N = `>=${g}.${v}.${I}-${A} <${g}.${+v + 1}.0-0`) : N = `>=${g}.${v}.${I} <${g}.${+v + 1}.0-0`, l("tilde return", N), N;
626
+ });
627
+ }, C = (m, E) => m.trim().split(/\s+/).map(($) => y($, E)).join(" "), y = (m, E) => {
628
+ l("caret", m, E);
629
+ const $ = E.loose ? o[i.CARETLOOSE] : o[i.CARET], d = E.includePrerelease ? "-0" : "";
630
+ return m.replace($, (g, v, I, A, N) => {
631
+ l("caret", m, g, v, I, A, N);
632
+ let w;
633
+ return T(v) ? w = "" : T(I) ? w = `>=${v}.0.0${d} <${+v + 1}.0.0-0` : T(A) ? v === "0" ? w = `>=${v}.${I}.0${d} <${v}.${+I + 1}.0-0` : w = `>=${v}.${I}.0${d} <${+v + 1}.0.0-0` : N ? (l("replaceCaret pr", N), v === "0" ? I === "0" ? w = `>=${v}.${I}.${A}-${N} <${v}.${I}.${+A + 1}-0` : w = `>=${v}.${I}.${A}-${N} <${v}.${+I + 1}.0-0` : w = `>=${v}.${I}.${A}-${N} <${+v + 1}.0.0-0`) : (l("no pr"), v === "0" ? I === "0" ? w = `>=${v}.${I}.${A}${d} <${v}.${I}.${+A + 1}-0` : w = `>=${v}.${I}.${A}${d} <${v}.${+I + 1}.0-0` : w = `>=${v}.${I}.${A} <${+v + 1}.0.0-0`), l("caret return", w), w;
634
+ });
635
+ }, L = (m, E) => (l("replaceXRanges", m, E), m.split(/\s+/).map(($) => X($, E)).join(" ")), X = (m, E) => {
636
+ m = m.trim();
637
+ const $ = E.loose ? o[i.XRANGELOOSE] : o[i.XRANGE];
638
+ return m.replace($, (d, g, v, I, A, N) => {
639
+ l("xRange", m, d, g, v, I, A, N);
640
+ const w = T(v), _ = w || T(I), q = _ || T(A), B = q;
641
+ return g === "=" && B && (g = ""), N = E.includePrerelease ? "-0" : "", w ? g === ">" || g === "<" ? d = "<0.0.0-0" : d = "*" : g && B ? (_ && (I = 0), A = 0, g === ">" ? (g = ">=", _ ? (v = +v + 1, I = 0, A = 0) : (I = +I + 1, A = 0)) : g === "<=" && (g = "<", _ ? v = +v + 1 : I = +I + 1), g === "<" && (N = "-0"), d = `${g + v}.${I}.${A}${N}`) : _ ? d = `>=${v}.0.0${N} <${+v + 1}.0.0-0` : q && (d = `>=${v}.${I}.0${N} <${v}.${+I + 1}.0-0`), l("xRange return", d), d;
642
+ });
643
+ }, Z = (m, E) => (l("replaceStars", m, E), m.trim().replace(o[i.STAR], "")), J = (m, E) => (l("replaceGTE0", m, E), m.trim().replace(o[E.includePrerelease ? i.GTE0PRE : i.GTE0], "")), Q = (m) => (E, $, d, g, v, I, A, N, w, _, q, B) => (T(d) ? $ = "" : T(g) ? $ = `>=${d}.0.0${m ? "-0" : ""}` : T(v) ? $ = `>=${d}.${g}.0${m ? "-0" : ""}` : I ? $ = `>=${$}` : $ = `>=${$}${m ? "-0" : ""}`, T(w) ? N = "" : T(_) ? N = `<${+w + 1}.0.0-0` : T(q) ? N = `<${w}.${+_ + 1}.0-0` : B ? N = `<=${w}.${_}.${q}-${B}` : m ? N = `<${w}.${_}.${+q + 1}-0` : N = `<=${N}`, `${$} ${N}`.trim()), ee = (m, E, $) => {
644
+ for (let d = 0; d < m.length; d++)
645
+ if (!m[d].test(E))
646
+ return !1;
647
+ if (E.prerelease.length && !$.includePrerelease) {
648
+ for (let d = 0; d < m.length; d++)
649
+ if (l(m[d].semver), m[d].semver !== u.ANY && m[d].semver.prerelease.length > 0) {
650
+ const g = m[d].semver;
651
+ if (g.major === E.major && g.minor === E.minor && g.patch === E.patch)
652
+ return !0;
653
+ }
654
+ return !1;
655
+ }
656
+ return !0;
657
+ };
658
+ return Ce;
659
+ }
660
+ var qe, Tr;
661
+ function z() {
662
+ if (Tr) return qe;
663
+ Tr = 1;
664
+ const a = Symbol("SemVer ANY");
665
+ class s {
666
+ static get ANY() {
667
+ return a;
668
+ }
669
+ constructor(e, c) {
670
+ if (c = t(c), e instanceof s) {
671
+ if (e.loose === !!c.loose)
672
+ return e;
673
+ e = e.value;
674
+ }
675
+ e = e.trim().split(/\s+/).join(" "), l("comparator", e, c), this.options = c, this.loose = !!c.loose, this.parse(e), this.semver === a ? this.value = "" : this.value = this.operator + this.semver.version, l("comp", this);
676
+ }
677
+ parse(e) {
678
+ const c = this.options.loose ? r[n.COMPARATORLOOSE] : r[n.COMPARATOR], h = e.match(c);
679
+ if (!h)
680
+ throw new TypeError(`Invalid comparator: ${e}`);
681
+ this.operator = h[1] !== void 0 ? h[1] : "", this.operator === "=" && (this.operator = ""), h[2] ? this.semver = new f(h[2], this.options.loose) : this.semver = a;
682
+ }
683
+ toString() {
684
+ return this.value;
685
+ }
686
+ test(e) {
687
+ if (l("Comparator.test", e, this.options.loose), this.semver === a || e === a)
688
+ return !0;
689
+ if (typeof e == "string")
690
+ try {
691
+ e = new f(e, this.options);
692
+ } catch {
693
+ return !1;
694
+ }
695
+ return u(e, this.operator, this.semver, this.options);
696
+ }
697
+ intersects(e, c) {
698
+ if (!(e instanceof s))
699
+ throw new TypeError("a Comparator is required");
700
+ return this.operator === "" ? this.value === "" ? !0 : new o(e.value, c).test(this.value) : e.operator === "" ? e.value === "" ? !0 : new o(this.value, c).test(e.semver) : (c = t(c), c.includePrerelease && (this.value === "<0.0.0-0" || e.value === "<0.0.0-0") || !c.includePrerelease && (this.value.startsWith("<0.0.0") || e.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && e.operator.startsWith(">") || this.operator.startsWith("<") && e.operator.startsWith("<") || this.semver.version === e.semver.version && this.operator.includes("=") && e.operator.includes("=") || u(this.semver, "<", e.semver, c) && this.operator.startsWith(">") && e.operator.startsWith("<") || u(this.semver, ">", e.semver, c) && this.operator.startsWith("<") && e.operator.startsWith(">")));
701
+ }
702
+ }
703
+ qe = s;
704
+ const t = He(), { safeRe: r, t: n } = M(), u = Yr(), l = W(), f = G(), o = U();
705
+ return qe;
706
+ }
707
+ var ye, wr;
708
+ function K() {
709
+ if (wr) return ye;
710
+ wr = 1;
711
+ const a = U();
712
+ return ye = (t, r, n) => {
713
+ try {
714
+ r = new a(r, n);
715
+ } catch {
716
+ return !1;
717
+ }
718
+ return r.test(t);
719
+ }, ye;
720
+ }
721
+ var Fe, Cr;
722
+ function Rt() {
723
+ if (Cr) return Fe;
724
+ Cr = 1;
725
+ const a = U();
726
+ return Fe = (t, r) => new a(t, r).set.map((n) => n.map((u) => u.value).join(" ").trim().split(" ")), Fe;
727
+ }
728
+ var De, qr;
729
+ function dt() {
730
+ if (qr) return De;
731
+ qr = 1;
732
+ const a = G(), s = U();
733
+ return De = (r, n, u) => {
734
+ let l = null, f = null, o = null;
735
+ try {
736
+ o = new s(n, u);
737
+ } catch {
738
+ return null;
739
+ }
740
+ return r.forEach((i) => {
741
+ o.test(i) && (!l || f.compare(i) === -1) && (l = i, f = new a(l, u));
742
+ }), l;
743
+ }, De;
744
+ }
745
+ var _e, yr;
746
+ function vt() {
747
+ if (yr) return _e;
748
+ yr = 1;
749
+ const a = G(), s = U();
750
+ return _e = (r, n, u) => {
751
+ let l = null, f = null, o = null;
752
+ try {
753
+ o = new s(n, u);
754
+ } catch {
755
+ return null;
756
+ }
757
+ return r.forEach((i) => {
758
+ o.test(i) && (!l || f.compare(i) === 1) && (l = i, f = new a(l, u));
759
+ }), l;
760
+ }, _e;
761
+ }
762
+ var Ge, Fr;
763
+ function $t() {
764
+ if (Fr) return Ge;
765
+ Fr = 1;
766
+ const a = G(), s = U(), t = Y();
767
+ return Ge = (n, u) => {
768
+ n = new s(n, u);
769
+ let l = new a("0.0.0");
770
+ if (n.test(l) || (l = new a("0.0.0-0"), n.test(l)))
771
+ return l;
772
+ l = null;
773
+ for (let f = 0; f < n.set.length; ++f) {
774
+ const o = n.set[f];
775
+ let i = null;
776
+ o.forEach((e) => {
777
+ const c = new a(e.semver.version);
778
+ switch (e.operator) {
779
+ case ">":
780
+ c.prerelease.length === 0 ? c.patch++ : c.prerelease.push(0), c.raw = c.format();
781
+ /* fallthrough */
782
+ case "":
783
+ case ">=":
784
+ (!i || t(c, i)) && (i = c);
785
+ break;
786
+ case "<":
787
+ case "<=":
788
+ break;
789
+ /* istanbul ignore next */
790
+ default:
791
+ throw new Error(`Unexpected operation: ${e.operator}`);
792
+ }
793
+ }), i && (!l || t(l, i)) && (l = i);
794
+ }
795
+ return l && n.test(l) ? l : null;
796
+ }, Ge;
797
+ }
798
+ var je, Dr;
799
+ function gt() {
800
+ if (Dr) return je;
801
+ Dr = 1;
802
+ const a = U();
803
+ return je = (t, r) => {
804
+ try {
805
+ return new a(t, r).range || "*";
806
+ } catch {
807
+ return null;
808
+ }
809
+ }, je;
810
+ }
811
+ var be, _r;
812
+ function Ke() {
813
+ if (_r) return be;
814
+ _r = 1;
815
+ const a = G(), s = z(), { ANY: t } = s, r = U(), n = K(), u = Y(), l = We(), f = ze(), o = Ye();
816
+ return be = (e, c, h, R) => {
817
+ e = new a(e, R), c = new r(c, R);
818
+ let O, p, S, P, F;
819
+ switch (h) {
820
+ case ">":
821
+ O = u, p = f, S = l, P = ">", F = ">=";
822
+ break;
823
+ case "<":
824
+ O = l, p = o, S = u, P = "<", F = "<=";
825
+ break;
826
+ default:
827
+ throw new TypeError('Must provide a hilo val of "<" or ">"');
828
+ }
829
+ if (n(e, c, R))
830
+ return !1;
831
+ for (let T = 0; T < c.set.length; ++T) {
832
+ const D = c.set[T];
833
+ let j = null, C = null;
834
+ if (D.forEach((y) => {
835
+ y.semver === t && (y = new s(">=0.0.0")), j = j || y, C = C || y, O(y.semver, j.semver, R) ? j = y : S(y.semver, C.semver, R) && (C = y);
836
+ }), j.operator === P || j.operator === F || (!C.operator || C.operator === P) && p(e, C.semver))
837
+ return !1;
838
+ if (C.operator === F && S(e, C.semver))
839
+ return !1;
840
+ }
841
+ return !0;
842
+ }, be;
843
+ }
844
+ var Ue, Gr;
845
+ function It() {
846
+ if (Gr) return Ue;
847
+ Gr = 1;
848
+ const a = Ke();
849
+ return Ue = (t, r, n) => a(t, r, ">", n), Ue;
850
+ }
851
+ var Ve, jr;
852
+ function Lt() {
853
+ if (jr) return Ve;
854
+ jr = 1;
855
+ const a = Ke();
856
+ return Ve = (t, r, n) => a(t, r, "<", n), Ve;
857
+ }
858
+ var xe, br;
859
+ function St() {
860
+ if (br) return xe;
861
+ br = 1;
862
+ const a = U();
863
+ return xe = (t, r, n) => (t = new a(t, n), r = new a(r, n), t.intersects(r, n)), xe;
864
+ }
865
+ var Xe, Ur;
866
+ function Nt() {
867
+ if (Ur) return Xe;
868
+ Ur = 1;
869
+ const a = K(), s = b();
870
+ return Xe = (t, r, n) => {
871
+ const u = [];
872
+ let l = null, f = null;
873
+ const o = t.sort((h, R) => s(h, R, n));
874
+ for (const h of o)
875
+ a(h, r, n) ? (f = h, l || (l = h)) : (f && u.push([l, f]), f = null, l = null);
876
+ l && u.push([l, null]);
877
+ const i = [];
878
+ for (const [h, R] of u)
879
+ h === R ? i.push(h) : !R && h === o[0] ? i.push("*") : R ? h === o[0] ? i.push(`<=${R}`) : i.push(`${h} - ${R}`) : i.push(`>=${h}`);
880
+ const e = i.join(" || "), c = typeof r.raw == "string" ? r.raw : String(r);
881
+ return e.length < c.length ? e : r;
882
+ }, Xe;
883
+ }
884
+ var Be, Vr;
885
+ function Ot() {
886
+ if (Vr) return Be;
887
+ Vr = 1;
888
+ const a = U(), s = z(), { ANY: t } = s, r = K(), n = b(), u = (c, h, R = {}) => {
889
+ if (c === h)
890
+ return !0;
891
+ c = new a(c, R), h = new a(h, R);
892
+ let O = !1;
893
+ e: for (const p of c.set) {
894
+ for (const S of h.set) {
895
+ const P = o(p, S, R);
896
+ if (O = O || P !== null, P)
897
+ continue e;
898
+ }
899
+ if (O)
900
+ return !1;
901
+ }
902
+ return !0;
903
+ }, l = [new s(">=0.0.0-0")], f = [new s(">=0.0.0")], o = (c, h, R) => {
904
+ if (c === h)
905
+ return !0;
906
+ if (c.length === 1 && c[0].semver === t) {
907
+ if (h.length === 1 && h[0].semver === t)
908
+ return !0;
909
+ R.includePrerelease ? c = l : c = f;
910
+ }
911
+ if (h.length === 1 && h[0].semver === t) {
912
+ if (R.includePrerelease)
913
+ return !0;
914
+ h = f;
915
+ }
916
+ const O = /* @__PURE__ */ new Set();
917
+ let p, S;
918
+ for (const L of c)
919
+ L.operator === ">" || L.operator === ">=" ? p = i(p, L, R) : L.operator === "<" || L.operator === "<=" ? S = e(S, L, R) : O.add(L.semver);
920
+ if (O.size > 1)
921
+ return null;
922
+ let P;
923
+ if (p && S) {
924
+ if (P = n(p.semver, S.semver, R), P > 0)
925
+ return null;
926
+ if (P === 0 && (p.operator !== ">=" || S.operator !== "<="))
927
+ return null;
928
+ }
929
+ for (const L of O) {
930
+ if (p && !r(L, String(p), R) || S && !r(L, String(S), R))
931
+ return null;
932
+ for (const X of h)
933
+ if (!r(L, String(X), R))
934
+ return !1;
935
+ return !0;
936
+ }
937
+ let F, T, D, j, C = S && !R.includePrerelease && S.semver.prerelease.length ? S.semver : !1, y = p && !R.includePrerelease && p.semver.prerelease.length ? p.semver : !1;
938
+ C && C.prerelease.length === 1 && S.operator === "<" && C.prerelease[0] === 0 && (C = !1);
939
+ for (const L of h) {
940
+ if (j = j || L.operator === ">" || L.operator === ">=", D = D || L.operator === "<" || L.operator === "<=", p) {
941
+ if (y && L.semver.prerelease && L.semver.prerelease.length && L.semver.major === y.major && L.semver.minor === y.minor && L.semver.patch === y.patch && (y = !1), L.operator === ">" || L.operator === ">=") {
942
+ if (F = i(p, L, R), F === L && F !== p)
943
+ return !1;
944
+ } else if (p.operator === ">=" && !r(p.semver, String(L), R))
945
+ return !1;
946
+ }
947
+ if (S) {
948
+ if (C && L.semver.prerelease && L.semver.prerelease.length && L.semver.major === C.major && L.semver.minor === C.minor && L.semver.patch === C.patch && (C = !1), L.operator === "<" || L.operator === "<=") {
949
+ if (T = e(S, L, R), T === L && T !== S)
950
+ return !1;
951
+ } else if (S.operator === "<=" && !r(S.semver, String(L), R))
952
+ return !1;
953
+ }
954
+ if (!L.operator && (S || p) && P !== 0)
955
+ return !1;
956
+ }
957
+ return !(p && D && !S && P !== 0 || S && j && !p && P !== 0 || y || C);
958
+ }, i = (c, h, R) => {
959
+ if (!c)
960
+ return h;
961
+ const O = n(c.semver, h.semver, R);
962
+ return O > 0 ? c : O < 0 || h.operator === ">" && c.operator === ">=" ? h : c;
963
+ }, e = (c, h, R) => {
964
+ if (!c)
965
+ return h;
966
+ const O = n(c.semver, h.semver, R);
967
+ return O < 0 ? c : O > 0 || h.operator === "<" && c.operator === "<=" ? h : c;
968
+ };
969
+ return Be = u, Be;
970
+ }
971
+ var Me, xr;
972
+ function At() {
973
+ if (xr) return Me;
974
+ xr = 1;
975
+ const a = M(), s = k(), t = G(), r = Hr(), n = x(), u = tt(), l = st(), f = nt(), o = it(), i = at(), e = ot(), c = lt(), h = ct(), R = b(), O = ut(), p = ft(), S = ke(), P = ht(), F = Et(), T = Y(), D = We(), j = kr(), C = Wr(), y = Ye(), L = ze(), X = Yr(), Z = pt(), J = z(), Q = U(), ee = K(), m = Rt(), E = dt(), $ = vt(), d = $t(), g = gt(), v = Ke(), I = It(), A = Lt(), N = St(), w = Nt(), _ = Ot();
976
+ return Me = {
977
+ parse: n,
978
+ valid: u,
979
+ clean: l,
980
+ inc: f,
981
+ diff: o,
982
+ major: i,
983
+ minor: e,
984
+ patch: c,
985
+ prerelease: h,
986
+ compare: R,
987
+ rcompare: O,
988
+ compareLoose: p,
989
+ compareBuild: S,
990
+ sort: P,
991
+ rsort: F,
992
+ gt: T,
993
+ lt: D,
994
+ eq: j,
995
+ neq: C,
996
+ gte: y,
997
+ lte: L,
998
+ cmp: X,
999
+ coerce: Z,
1000
+ Comparator: J,
1001
+ Range: Q,
1002
+ satisfies: ee,
1003
+ toComparators: m,
1004
+ maxSatisfying: E,
1005
+ minSatisfying: $,
1006
+ minVersion: d,
1007
+ validRange: g,
1008
+ outside: v,
1009
+ gtr: I,
1010
+ ltr: A,
1011
+ intersects: N,
1012
+ simplifyRange: w,
1013
+ subset: _,
1014
+ SemVer: t,
1015
+ re: a.re,
1016
+ src: a.src,
1017
+ tokens: a.t,
1018
+ SEMVER_SPEC_VERSION: s.SEMVER_SPEC_VERSION,
1019
+ RELEASE_TYPES: s.RELEASE_TYPES,
1020
+ compareIdentifiers: r.compareIdentifiers,
1021
+ rcompareIdentifiers: r.rcompareIdentifiers
1022
+ }, Me;
1023
+ }
1024
+ var Pt = At();
1025
+ const Xr = /* @__PURE__ */ Qr(Pt);
1026
+ var Tt = /* @__PURE__ */ (function() {
1027
+ function a() {
1028
+ this.registry = /* @__PURE__ */ new Map();
1029
+ }
1030
+ var s = a.prototype;
1031
+ return s.addEventListener = function(r, n) {
1032
+ var u = this.registry.get(r);
1033
+ u ? u.push(n) : this.registry.set(r, [n]);
1034
+ }, s.removeEventListener = function(r, n) {
1035
+ var u = this.registry.get(r);
1036
+ if (u) {
1037
+ var l = u.indexOf(n);
1038
+ l > -1 && u.splice(l, 1);
1039
+ }
1040
+ }, s.dispatchEvent = function(r) {
1041
+ window.debug && console.log("DEBUG::", "Event:", r.name);
1042
+ var n = this.registry.get(r.name);
1043
+ for (var u in n)
1044
+ if (n[u](r), !r.propagate) break;
1045
+ }, a;
1046
+ })();
1047
+ function wt(a, s) {
1048
+ var t = Xr.diff(a, s);
1049
+ return (t === null || t === "patch" || t === "minor") && Xr.gte(a, s);
1050
+ }
1051
+ var zr = /* @__PURE__ */ (function() {
1052
+ function a() {
1053
+ this._eventCallableRegistry = new Tt(), this.functionArray = /* @__PURE__ */ new Map(), this.pluginMap = /* @__PURE__ */ new Map();
1054
+ }
1055
+ var s = a.prototype;
1056
+ return s.install = function(r) {
1057
+ var n = this, u = r.getPluginName(), l = u.split("@"), f = l[0], o = r.getDependencies() || [], i = [];
1058
+ o.forEach(function(e) {
1059
+ var c = e.split("@"), h = c[0], R = c[1], O = n.getInstalledPluginNameWithVersion(h), p = O ? O.split("@") : [null, ""], S = p[1];
1060
+ O ? wt(S, R) || i.push("Error installing " + u + `.
1061
+ ` + O + " doesn't satisfy the required dependency " + e + ".") : i.push("Error installing " + u + ". Could not find dependency " + e + ".");
1062
+ }), i.length === 0 ? (this.pluginMap.set(f, r), r.init(this), r.activate()) : i.forEach(function(e) {
1063
+ console.error(e);
1064
+ });
1065
+ }, s.getInstalledPluginNameWithVersion = function(r) {
1066
+ var n = this.pluginMap.get(r);
1067
+ return n ? n.getPluginName() : null;
1068
+ }, s.addFunction = function(r, n) {
1069
+ this.functionArray.set(r, n);
1070
+ }, s.executeFunction = function(r) {
1071
+ var n = this.functionArray.get(r);
1072
+ if (n) {
1073
+ for (var u = arguments.length, l = new Array(u > 1 ? u - 1 : 0), f = 1; f < u; f++)
1074
+ l[f - 1] = arguments[f];
1075
+ return n.apply(void 0, l);
1076
+ }
1077
+ console.error("No function added for the key " + r + ".");
1078
+ }, s.removeFunction = function(r) {
1079
+ this.functionArray.delete(r);
1080
+ }, s.uninstall = function(r) {
1081
+ var n = this.pluginMap.get(r);
1082
+ n && (n.deactivate(), this.pluginMap.delete(r));
1083
+ }, s.addEventListener = function(r, n) {
1084
+ this._eventCallableRegistry.addEventListener(r, n);
1085
+ }, s.removeEventListener = function(r, n) {
1086
+ this._eventCallableRegistry.removeEventListener(r, n);
1087
+ }, s.dispatchEvent = function(r) {
1088
+ this._eventCallableRegistry.dispatchEvent(r);
1089
+ }, a;
1090
+ })();
1091
+ function Br() {
1092
+ return new zr();
1093
+ }
1094
+ var Kr = /* @__PURE__ */ Mr.createContext(/* @__PURE__ */ new zr()), _t = function(s) {
1095
+ var t = s.pluginStore, r = s.children;
1096
+ return Mr.createElement(Kr.Provider, {
1097
+ value: t
1098
+ }, r);
1099
+ };
1100
+ function Gt() {
1101
+ return et(Kr);
1102
+ }
1103
+ class Ct {
1104
+ constructor() {
1105
+ V(this, "_pluginStore", Br());
1106
+ V(this, "plugins", []);
1107
+ V(this, "pluginsByFormat", {});
1108
+ V(this, "pluginsByActionId", {});
1109
+ V(this, "pluginsByFetcherId", {});
1110
+ V(this, "actionPlugins", []);
1111
+ V(this, "fetcherPlugins", []);
1112
+ }
1113
+ reset() {
1114
+ this._pluginStore = Br(), this.plugins = [], this.pluginsByFormat = {}, this.pluginsByActionId = {}, this.pluginsByFetcherId = {}, this.actionPlugins = [], this.fetcherPlugins = [];
1115
+ }
1116
+ install(s) {
1117
+ this.plugins.includes(s.name) || (console.log(`Installing plugin ${s.getPluginName()} by ${s.author}`), this.pluginStore.install(s), this.plugins.push(s.name), s.format && (this.pluginsByFormat[s.format] = [...this.pluginsByFormat[s.format] ?? [], s.name]), s.actionIds && s.actionResult && s.actionIds.forEach((t) => {
1118
+ this.pluginsByActionId[t] = [...this.pluginsByActionId[t] ?? [], s.name];
1119
+ }), s.fetcherIds && s.fetcherResult && s.fetcherIds.forEach((t) => {
1120
+ this.pluginsByFetcherId[t] = [...this.pluginsByFetcherId[t] ?? [], s.name];
1121
+ }), s.actionResult && this.actionPlugins.push(s.name), s.fetcherResult && this.fetcherPlugins.push(s.name));
1122
+ }
1123
+ /**
1124
+ * Get plugins based on the given criteria.
1125
+ *
1126
+ * Only plugins that match format and result type criteria will be returned, which could be an empty list.
1127
+ *
1128
+ * If no criteria is provided all available plugins are returned.
1129
+ *
1130
+ * The order of the plugins matters, for example if a plugin specifies an action ID, it will be ordered before a
1131
+ * plugin just specifies the format and result type.
1132
+ *
1133
+ * @param format filter plugins by this format
1134
+ * @param resultType filter plugins by the result type that they accept (action or fetcher)
1135
+ * @param actionId prefer plugins that specify this action ID
1136
+ * @param fetcherId prefer plugins that specify this fetcher ID
1137
+ * @returns an array of plugin names that match the given criteria
1138
+ */
1139
+ getPlugins(s, t, r, n) {
1140
+ let u, l = /* @__PURE__ */ new Set(), f = [], o;
1141
+ if (!s && !t && !r && !n)
1142
+ return this.plugins;
1143
+ if (r ? (u = this.pluginsByActionId[r], l = new Set(Object.values(this.pluginsByActionId).flat())) : n && (u = this.pluginsByFetcherId[n], l = new Set(Object.values(this.pluginsByFetcherId).flat())), o = t === "action" ? this.actionPlugins : t === "fetcher" ? this.fetcherPlugins : void 0, f = s ? this.pluginsByFormat[s] ?? [] : this.plugins, t && ((o == null ? void 0 : o.length) ?? 0) === 0)
1144
+ return [];
1145
+ let i = [];
1146
+ return (r || n) && (u != null && u.length) && (i = f.filter((e) => u.includes(e))), t ? i = [
1147
+ ...i,
1148
+ ...o != null && o.length ? f.filter((e) => o.includes(e) && !l.has(e)) ?? [] : []
1149
+ ] : s && (i = [...i, ...f.filter((e) => !l.has(e))]), rt(i);
1150
+ }
1151
+ getPlugin(s, t, r, n) {
1152
+ const u = this.getPlugins(s, t, r, n);
1153
+ return u.length > 0 ? u[0] : void 0;
1154
+ }
1155
+ getAvailableFormats(s) {
1156
+ const t = Object.keys(this.pluginsByFormat);
1157
+ return s ? t.filter((r) => this.pluginsByFormat[r].includes(s)) : t;
1158
+ }
1159
+ get pluginStore() {
1160
+ return this._pluginStore;
1161
+ }
1162
+ }
1163
+ const jt = new Ct();
1164
+ export {
1165
+ Ct as C,
1166
+ _t as P,
1167
+ jt as c,
1168
+ Gt as u
1169
+ };