@eleven-labs/design-system 0.29.0 → 0.30.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.
- package/dist/components/Atoms/Breadcrumb/Breadcrumb.d.ts +1 -0
- package/dist/components/Organisms/Blocks/LastArticlesBlock/index.d.ts +1 -0
- package/dist/components/Organisms/Blocks/LastTutorialsBlock/index.d.ts +1 -0
- package/dist/components/Organisms/Blocks/index.d.ts +2 -0
- package/dist/components/Organisms/index.d.ts +1 -0
- package/dist/constants/tokenVariables.d.ts +1 -1
- package/dist/constants/tokenVariablesDesktop.d.ts +284 -1
- package/dist/index.es.js +526 -517
- package/dist/index.umd.cjs +16 -16
- package/dist/pages/HomePage/HomePage.d.ts +1 -4
- package/dist/pages/PostPage/PostPage.d.ts +4 -0
- package/dist/pages/PostPage/PostPageContent.d.ts +2 -3
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/scss/abstracts/variables/_variables.scss +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -224,7 +224,7 @@ var mn = { exports: {} };
|
|
|
224
224
|
})();
|
|
225
225
|
})(mn);
|
|
226
226
|
var fi = mn.exports;
|
|
227
|
-
const
|
|
227
|
+
const re = /* @__PURE__ */ Re(fi), Ce = Fr;
|
|
228
228
|
const Ic = ["primary", "secondary", "accent"], Ke = Ce(
|
|
229
229
|
({ as: e = "button", variant: t = "primary", isChoiceChip: n = !1, className: i, children: o, ...r }, s) => /* @__PURE__ */ M(
|
|
230
230
|
F,
|
|
@@ -242,7 +242,7 @@ const Ic = ["primary", "secondary", "accent"], Ke = Ce(
|
|
|
242
242
|
fontWeight: "bold",
|
|
243
243
|
textTransform: "uppercase",
|
|
244
244
|
"data-text": typeof o == "string" ? o : "",
|
|
245
|
-
className:
|
|
245
|
+
className: re(
|
|
246
246
|
"button",
|
|
247
247
|
{
|
|
248
248
|
[`button--${t}`]: t,
|
|
@@ -713,10 +713,10 @@ const qe = {
|
|
|
713
713
|
},
|
|
714
714
|
[]
|
|
715
715
|
);
|
|
716
|
-
}, bn = (e) =>
|
|
716
|
+
}, bn = (e) => re({
|
|
717
717
|
[`bg-${e.bg}`]: e.bg,
|
|
718
718
|
[`color-${e.color}`]: e.color
|
|
719
|
-
}), Ni = (e) =>
|
|
719
|
+
}), Ni = (e) => re(
|
|
720
720
|
we({
|
|
721
721
|
propValue: e.display,
|
|
722
722
|
className: "display"
|
|
@@ -733,7 +733,7 @@ const qe = {
|
|
|
733
733
|
[`hidden-above@${e.hiddenAbove}`]: !!e.hiddenAbove,
|
|
734
734
|
[`hidden-below@${e.hiddenBelow}`]: !!e.hiddenBelow
|
|
735
735
|
}
|
|
736
|
-
), Si = (e) =>
|
|
736
|
+
), Si = (e) => re(
|
|
737
737
|
...we({
|
|
738
738
|
propValue: e.alignItems,
|
|
739
739
|
className: "items"
|
|
@@ -758,7 +758,7 @@ const qe = {
|
|
|
758
758
|
propValue: e.gapY,
|
|
759
759
|
className: "gap-y"
|
|
760
760
|
})
|
|
761
|
-
), Oi = (e) =>
|
|
761
|
+
), Oi = (e) => re(
|
|
762
762
|
we({
|
|
763
763
|
propValue: e.flexDirection,
|
|
764
764
|
className: "flex"
|
|
@@ -770,7 +770,7 @@ const qe = {
|
|
|
770
770
|
), Ri = (e) => we({
|
|
771
771
|
propValue: e.alignSelf,
|
|
772
772
|
className: "self"
|
|
773
|
-
}).join(" "), Ci = (e) =>
|
|
773
|
+
}).join(" "), Ci = (e) => re(
|
|
774
774
|
we({
|
|
775
775
|
propValue: e.flexBasis,
|
|
776
776
|
className: "basis"
|
|
@@ -779,7 +779,7 @@ const qe = {
|
|
|
779
779
|
propValue: e.flex,
|
|
780
780
|
className: "flex"
|
|
781
781
|
})
|
|
782
|
-
), yn = (e) =>
|
|
782
|
+
), yn = (e) => re(
|
|
783
783
|
Object.entries(e).filter(([t]) => Object.keys(vn).includes(t)).reduce((t, [n, i]) => (t.push(
|
|
784
784
|
...we({
|
|
785
785
|
className: n,
|
|
@@ -790,7 +790,7 @@ const qe = {
|
|
|
790
790
|
textAlign: e,
|
|
791
791
|
textSize: t,
|
|
792
792
|
...n
|
|
793
|
-
}) =>
|
|
793
|
+
}) => re(
|
|
794
794
|
...we({
|
|
795
795
|
propValue: e,
|
|
796
796
|
className: "text"
|
|
@@ -805,7 +805,7 @@ const qe = {
|
|
|
805
805
|
), it = (e) => typeof e.props == "object" ? Object.keys(e.props).reduce(
|
|
806
806
|
(t, n) => (e.systemPropNames.includes(n) || (t[n] = e.props[n]), t),
|
|
807
807
|
{}
|
|
808
|
-
) : {}, Ti = (e) =>
|
|
808
|
+
) : {}, Ti = (e) => re(
|
|
809
809
|
bn(e),
|
|
810
810
|
Ni(e),
|
|
811
811
|
yn(e),
|
|
@@ -818,7 +818,7 @@ const qe = {
|
|
|
818
818
|
r,
|
|
819
819
|
{
|
|
820
820
|
...it({ props: o, systemPropNames: [...Object.keys(hn), "color"] }),
|
|
821
|
-
className:
|
|
821
|
+
className: re(
|
|
822
822
|
"icon",
|
|
823
823
|
yn(o),
|
|
824
824
|
bn(o),
|
|
@@ -837,7 +837,7 @@ const xc = ["website", "blog"], _n = Ce(({ name: e, size: t, ...n }, i) => /* @_
|
|
|
837
837
|
ref: i,
|
|
838
838
|
justifyContent: "center",
|
|
839
839
|
alignItems: "center",
|
|
840
|
-
className:
|
|
840
|
+
className: re("logo", n.className),
|
|
841
841
|
style: { fontSize: t },
|
|
842
842
|
children: [
|
|
843
843
|
/* @__PURE__ */ c(pn, { height: "1em" }),
|
|
@@ -1009,9 +1009,9 @@ function In(e) {
|
|
|
1009
1009
|
if (l === "text")
|
|
1010
1010
|
return u;
|
|
1011
1011
|
if (d) {
|
|
1012
|
-
var
|
|
1012
|
+
var p = ji(n, r), I;
|
|
1013
1013
|
if (!r)
|
|
1014
|
-
|
|
1014
|
+
I = i0(i0({}, a), {}, {
|
|
1015
1015
|
className: Tt(a.className)
|
|
1016
1016
|
});
|
|
1017
1017
|
else {
|
|
@@ -1022,15 +1022,15 @@ function In(e) {
|
|
|
1022
1022
|
}, []), T = a.className && a.className.includes("token") ? ["token"] : [], R = a.className && T.concat(a.className.filter(function(A) {
|
|
1023
1023
|
return !N.includes(A);
|
|
1024
1024
|
}));
|
|
1025
|
-
|
|
1025
|
+
I = i0(i0({}, a), {}, {
|
|
1026
1026
|
className: Tt(R) || void 0,
|
|
1027
1027
|
style: Ui(a.className, Object.assign({}, a.style, o), n)
|
|
1028
1028
|
});
|
|
1029
1029
|
}
|
|
1030
|
-
var y =
|
|
1030
|
+
var y = p(t.children);
|
|
1031
1031
|
return /* @__PURE__ */ be.createElement(d, Y({
|
|
1032
1032
|
key: s
|
|
1033
|
-
},
|
|
1033
|
+
}, I), y);
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
1036
|
const Ki = function(e, t) {
|
|
@@ -1118,17 +1118,17 @@ function wn(e, t, n) {
|
|
|
1118
1118
|
return r;
|
|
1119
1119
|
}
|
|
1120
1120
|
function x0(e) {
|
|
1121
|
-
var t = e.children, n = e.lineNumber, i = e.lineNumberStyle, o = e.largestLineNumber, r = e.showInlineLineNumbers, s = e.lineProps, a = s === void 0 ? {} : s, l = e.className, d = l === void 0 ? [] : l, u = e.showLineNumbers,
|
|
1122
|
-
if (
|
|
1121
|
+
var t = e.children, n = e.lineNumber, i = e.lineNumberStyle, o = e.largestLineNumber, r = e.showInlineLineNumbers, s = e.lineProps, a = s === void 0 ? {} : s, l = e.className, d = l === void 0 ? [] : l, u = e.showLineNumbers, p = e.wrapLongLines, I = typeof a == "function" ? a(n) : a;
|
|
1122
|
+
if (I.className = d, n && r) {
|
|
1123
1123
|
var N = wn(i, n, o);
|
|
1124
1124
|
t.unshift(xn(n, N));
|
|
1125
1125
|
}
|
|
1126
|
-
return
|
|
1126
|
+
return p & u && (I.style = ze(ze({}, I.style), {}, {
|
|
1127
1127
|
display: "flex"
|
|
1128
1128
|
})), {
|
|
1129
1129
|
type: "element",
|
|
1130
1130
|
tagName: "span",
|
|
1131
|
-
properties:
|
|
1131
|
+
properties: I,
|
|
1132
1132
|
children: t
|
|
1133
1133
|
};
|
|
1134
1134
|
}
|
|
@@ -1150,11 +1150,11 @@ function Nn(e) {
|
|
|
1150
1150
|
return n;
|
|
1151
1151
|
}
|
|
1152
1152
|
function Zi(e, t, n, i, o, r, s, a, l) {
|
|
1153
|
-
var d, u = Nn(e.value),
|
|
1154
|
-
function T(
|
|
1153
|
+
var d, u = Nn(e.value), p = [], I = -1, N = 0;
|
|
1154
|
+
function T(f, w) {
|
|
1155
1155
|
var D = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
1156
1156
|
return x0({
|
|
1157
|
-
children:
|
|
1157
|
+
children: f,
|
|
1158
1158
|
lineNumber: w,
|
|
1159
1159
|
lineNumberStyle: a,
|
|
1160
1160
|
largestLineNumber: s,
|
|
@@ -1165,16 +1165,16 @@ function Zi(e, t, n, i, o, r, s, a, l) {
|
|
|
1165
1165
|
wrapLongLines: l
|
|
1166
1166
|
});
|
|
1167
1167
|
}
|
|
1168
|
-
function R(
|
|
1168
|
+
function R(f, w) {
|
|
1169
1169
|
if (i && w && o) {
|
|
1170
1170
|
var D = wn(a, w, s);
|
|
1171
|
-
|
|
1171
|
+
f.unshift(xn(w, D));
|
|
1172
1172
|
}
|
|
1173
|
-
return
|
|
1173
|
+
return f;
|
|
1174
1174
|
}
|
|
1175
|
-
function y(
|
|
1175
|
+
function y(f, w) {
|
|
1176
1176
|
var D = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
1177
|
-
return t || D.length > 0 ? T(
|
|
1177
|
+
return t || D.length > 0 ? T(f, w, D) : R(f, w);
|
|
1178
1178
|
}
|
|
1179
1179
|
for (var A = function() {
|
|
1180
1180
|
var w = u[N], D = w.children[0].value, P = Wi(D);
|
|
@@ -1182,17 +1182,17 @@ function Zi(e, t, n, i, o, r, s, a, l) {
|
|
|
1182
1182
|
var q = D.split(`
|
|
1183
1183
|
`);
|
|
1184
1184
|
q.forEach(function(U, G) {
|
|
1185
|
-
var X = i &&
|
|
1185
|
+
var X = i && p.length + r, ne = {
|
|
1186
1186
|
type: "text",
|
|
1187
1187
|
value: "".concat(U, `
|
|
1188
1188
|
`)
|
|
1189
1189
|
};
|
|
1190
1190
|
if (G === 0) {
|
|
1191
|
-
var Z = u.slice(
|
|
1191
|
+
var Z = u.slice(I + 1, N).concat(x0({
|
|
1192
1192
|
children: [ne],
|
|
1193
1193
|
className: w.properties.className
|
|
1194
|
-
})),
|
|
1195
|
-
|
|
1194
|
+
})), ie = y(Z, X);
|
|
1195
|
+
p.push(ie);
|
|
1196
1196
|
} else if (G === q.length - 1) {
|
|
1197
1197
|
var oe = u[N + 1] && u[N + 1].children && u[N + 1].children[0], W = {
|
|
1198
1198
|
type: "text",
|
|
@@ -1206,25 +1206,25 @@ function Zi(e, t, n, i, o, r, s, a, l) {
|
|
|
1206
1206
|
u.splice(N + 1, 0, pe);
|
|
1207
1207
|
} else {
|
|
1208
1208
|
var ge = [W], x = y(ge, X, w.properties.className);
|
|
1209
|
-
|
|
1209
|
+
p.push(x);
|
|
1210
1210
|
}
|
|
1211
1211
|
} else {
|
|
1212
1212
|
var k = [ne], K = y(k, X, w.properties.className);
|
|
1213
|
-
|
|
1213
|
+
p.push(K);
|
|
1214
1214
|
}
|
|
1215
|
-
}),
|
|
1215
|
+
}), I = N;
|
|
1216
1216
|
}
|
|
1217
1217
|
N++;
|
|
1218
1218
|
}; N < u.length; )
|
|
1219
1219
|
A();
|
|
1220
|
-
if (
|
|
1221
|
-
var h = u.slice(
|
|
1220
|
+
if (I !== u.length - 1) {
|
|
1221
|
+
var h = u.slice(I + 1, u.length);
|
|
1222
1222
|
if (h && h.length) {
|
|
1223
|
-
var m = i &&
|
|
1224
|
-
|
|
1223
|
+
var m = i && p.length + r, g = y(h, m);
|
|
1224
|
+
p.push(g);
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
-
return t ?
|
|
1227
|
+
return t ? p : (d = []).concat.apply(d, p);
|
|
1228
1228
|
}
|
|
1229
1229
|
function Qi(e) {
|
|
1230
1230
|
var t = e.rows, n = e.stylesheet, i = e.useInlineStyles;
|
|
@@ -1263,14 +1263,14 @@ function Ji(e) {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
function eo(e, t) {
|
|
1265
1265
|
return function(i) {
|
|
1266
|
-
var o = i.language, r = i.children, s = i.style, a = s === void 0 ? t : s, l = i.customStyle, d = l === void 0 ? {} : l, u = i.codeTagProps,
|
|
1266
|
+
var o = i.language, r = i.children, s = i.style, a = s === void 0 ? t : s, l = i.customStyle, d = l === void 0 ? {} : l, u = i.codeTagProps, p = u === void 0 ? {
|
|
1267
1267
|
className: o ? "language-".concat(o) : void 0,
|
|
1268
1268
|
style: ze(ze({}, a['code[class*="language-"]']), a['code[class*="language-'.concat(o, '"]')])
|
|
1269
|
-
} : u,
|
|
1269
|
+
} : u, I = i.useInlineStyles, N = I === void 0 ? !0 : I, T = i.showLineNumbers, R = T === void 0 ? !1 : T, y = i.showInlineLineNumbers, A = y === void 0 ? !0 : y, h = i.startingLineNumber, m = h === void 0 ? 1 : h, g = i.lineNumberContainerStyle, f = i.lineNumberStyle, w = f === void 0 ? {} : f, D = i.wrapLines, P = i.wrapLongLines, q = P === void 0 ? !1 : P, U = i.lineProps, G = U === void 0 ? {} : U, X = i.renderer, ne = i.PreTag, Z = ne === void 0 ? "pre" : ne, ie = i.CodeTag, oe = ie === void 0 ? "code" : ie, W = i.code, pe = W === void 0 ? (Array.isArray(r) ? r[0] : r) || "" : W, ge = i.astGenerator, x = Ai(i, Fi);
|
|
1270
1270
|
ge = ge || e;
|
|
1271
1271
|
var k = R ? /* @__PURE__ */ be.createElement(Yi, {
|
|
1272
1272
|
containerStyle: g,
|
|
1273
|
-
codeStyle:
|
|
1273
|
+
codeStyle: p.style || {},
|
|
1274
1274
|
numberStyle: w,
|
|
1275
1275
|
startingLineNumber: m,
|
|
1276
1276
|
codeString: pe
|
|
@@ -1282,25 +1282,25 @@ function eo(e, t) {
|
|
|
1282
1282
|
className: x.className ? "".concat(b, " ").concat(x.className) : b,
|
|
1283
1283
|
style: Object.assign({}, d)
|
|
1284
1284
|
});
|
|
1285
|
-
if (q ?
|
|
1285
|
+
if (q ? p.style = ze(ze({}, p.style), {}, {
|
|
1286
1286
|
whiteSpace: "pre-wrap"
|
|
1287
|
-
}) :
|
|
1287
|
+
}) : p.style = ze(ze({}, p.style), {}, {
|
|
1288
1288
|
whiteSpace: "pre"
|
|
1289
1289
|
}), !ge)
|
|
1290
|
-
return /* @__PURE__ */ be.createElement(Z, v, k, /* @__PURE__ */ be.createElement(oe,
|
|
1290
|
+
return /* @__PURE__ */ be.createElement(Z, v, k, /* @__PURE__ */ be.createElement(oe, p, pe));
|
|
1291
1291
|
(D === void 0 && X || q) && (D = !0), X = X || Qi;
|
|
1292
1292
|
var _ = [{
|
|
1293
1293
|
type: "text",
|
|
1294
1294
|
value: pe
|
|
1295
|
-
}],
|
|
1295
|
+
}], E = Ji({
|
|
1296
1296
|
astGenerator: ge,
|
|
1297
1297
|
language: o,
|
|
1298
1298
|
code: pe,
|
|
1299
1299
|
defaultCodeValue: _
|
|
1300
1300
|
});
|
|
1301
|
-
|
|
1302
|
-
var C =
|
|
1303
|
-
return /* @__PURE__ */ be.createElement(Z, v, /* @__PURE__ */ be.createElement(oe,
|
|
1301
|
+
E.language === null && (E.value = _);
|
|
1302
|
+
var C = E.value.length + m, z = Zi(E, D, G, R, A, m, C, w, q);
|
|
1303
|
+
return /* @__PURE__ */ be.createElement(Z, v, /* @__PURE__ */ be.createElement(oe, p, !A && k, X({
|
|
1304
1304
|
rows: z,
|
|
1305
1305
|
stylesheet: a,
|
|
1306
1306
|
useInlineStyles: N
|
|
@@ -1744,8 +1744,8 @@ function Vo(e, { plugins: t }) {
|
|
|
1744
1744
|
const d = this.matcherRe.exec(l);
|
|
1745
1745
|
if (!d)
|
|
1746
1746
|
return null;
|
|
1747
|
-
const u = d.findIndex((
|
|
1748
|
-
return d.splice(0, u), Object.assign(d,
|
|
1747
|
+
const u = d.findIndex((I, N) => N > 0 && I !== void 0), p = this.matchIndexes[u];
|
|
1748
|
+
return d.splice(0, u), Object.assign(d, p);
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
class o {
|
|
@@ -1757,7 +1757,7 @@ function Vo(e, { plugins: t }) {
|
|
|
1757
1757
|
if (this.multiRegexes[l])
|
|
1758
1758
|
return this.multiRegexes[l];
|
|
1759
1759
|
const d = new i();
|
|
1760
|
-
return this.rules.slice(l).forEach(([u,
|
|
1760
|
+
return this.rules.slice(l).forEach(([u, p]) => d.addRule(u, p)), d.compile(), this.multiRegexes[l] = d, d;
|
|
1761
1761
|
}
|
|
1762
1762
|
resumingScanAtSamePosition() {
|
|
1763
1763
|
return this.regexIndex !== 0;
|
|
@@ -1775,8 +1775,8 @@ function Vo(e, { plugins: t }) {
|
|
|
1775
1775
|
d.lastIndex = this.lastIndex;
|
|
1776
1776
|
let u = d.exec(l);
|
|
1777
1777
|
if (this.resumingScanAtSamePosition() && !(u && u.index === this.lastIndex)) {
|
|
1778
|
-
const
|
|
1779
|
-
|
|
1778
|
+
const p = this.getMatcher(0);
|
|
1779
|
+
p.lastIndex = this.lastIndex + 1, u = p.exec(l);
|
|
1780
1780
|
}
|
|
1781
1781
|
return u && (this.regexIndex += u.position + 1, this.regexIndex === this.count && this.considerAll()), u;
|
|
1782
1782
|
}
|
|
@@ -1796,26 +1796,26 @@ function Vo(e, { plugins: t }) {
|
|
|
1796
1796
|
// do this early so compiler extensions generally don't have to worry about
|
|
1797
1797
|
// the distinction between match/begin
|
|
1798
1798
|
Do
|
|
1799
|
-
].forEach((
|
|
1799
|
+
].forEach((p) => p(a, l)), e.compilerExtensions.forEach((p) => p(a, l)), a.__beforeBegin = null, [
|
|
1800
1800
|
To,
|
|
1801
1801
|
// do this later so compiler extensions that come earlier have access to the
|
|
1802
1802
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
1803
1803
|
Ao,
|
|
1804
1804
|
// default to 1 relevance if not specified
|
|
1805
1805
|
ko
|
|
1806
|
-
].forEach((
|
|
1806
|
+
].forEach((p) => p(a, l)), a.isCompiled = !0;
|
|
1807
1807
|
let u = null;
|
|
1808
1808
|
if (typeof a.keywords == "object" && (u = a.keywords.$pattern, delete a.keywords.$pattern), a.keywords && (a.keywords = An(a.keywords, e.case_insensitive)), a.lexemes && u)
|
|
1809
1809
|
throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");
|
|
1810
1810
|
return u = u || a.lexemes || /\w+/, d.keywordPatternRe = n(u, !0), l && (a.begin || (a.begin = /\B|\b/), d.beginRe = n(a.begin), a.endSameAsBegin && (a.end = a.begin), !a.end && !a.endsWithParent && (a.end = /\B|\b/), a.end && (d.endRe = n(a.end)), d.terminatorEnd = g0(a.end) || "", a.endsWithParent && l.terminatorEnd && (d.terminatorEnd += (a.end ? "|" : "") + l.terminatorEnd)), a.illegal && (d.illegalRe = n(
|
|
1811
1811
|
/** @type {RegExp | string} */
|
|
1812
1812
|
a.illegal
|
|
1813
|
-
)), a.contains || (a.contains = []), a.contains = [].concat(...a.contains.map(function(
|
|
1814
|
-
return Ho(
|
|
1815
|
-
})), a.contains.forEach(function(
|
|
1813
|
+
)), a.contains || (a.contains = []), a.contains = [].concat(...a.contains.map(function(p) {
|
|
1814
|
+
return Ho(p === "self" ? a : p);
|
|
1815
|
+
})), a.contains.forEach(function(p) {
|
|
1816
1816
|
s(
|
|
1817
1817
|
/** @type Mode */
|
|
1818
|
-
|
|
1818
|
+
p,
|
|
1819
1819
|
d
|
|
1820
1820
|
);
|
|
1821
1821
|
}), a.starts && s(a.starts, l), d.matcher = r(d), d;
|
|
@@ -1918,10 +1918,10 @@ function Fo(e, t, n) {
|
|
|
1918
1918
|
return !e.length || !t.length ? e.length ? e : t : e[0].offset !== t[0].offset ? e[0].offset < t[0].offset ? e : t : t[0].event === "start" ? e : t;
|
|
1919
1919
|
}
|
|
1920
1920
|
function a(u) {
|
|
1921
|
-
function
|
|
1922
|
-
return " " +
|
|
1921
|
+
function p(I) {
|
|
1922
|
+
return " " + I.nodeName + '="' + s0(I.value) + '"';
|
|
1923
1923
|
}
|
|
1924
|
-
o += "<" + G0(u) + [].map.call(u.attributes,
|
|
1924
|
+
o += "<" + G0(u) + [].map.call(u.attributes, p).join("") + ">";
|
|
1925
1925
|
}
|
|
1926
1926
|
function l(u) {
|
|
1927
1927
|
o += "</" + G0(u) + ">";
|
|
@@ -1971,24 +1971,24 @@ const Lt = {}, L0 = (e) => {
|
|
|
1971
1971
|
v += b.parentNode ? b.parentNode.className : "";
|
|
1972
1972
|
const _ = l.languageDetectRe.exec(v);
|
|
1973
1973
|
if (_) {
|
|
1974
|
-
const
|
|
1975
|
-
return
|
|
1974
|
+
const E = ie(_[1]);
|
|
1975
|
+
return E || ($t(s.replace("{}", _[1])), $t("Falling back to no-highlight mode for this block.", b)), E ? _[1] : "no-highlight";
|
|
1976
1976
|
}
|
|
1977
|
-
return v.split(/\s+/).find((
|
|
1977
|
+
return v.split(/\s+/).find((E) => d(E) || ie(E));
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function p(b, v, _, E) {
|
|
1980
1980
|
let C = "", z = "";
|
|
1981
|
-
typeof v == "object" ? (C = b, _ = v.ignoreIllegals, z = v.language,
|
|
1981
|
+
typeof v == "object" ? (C = b, _ = v.ignoreIllegals, z = v.language, E = void 0) : (Ae("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ae("10.7.0", `Please use highlight(code, options) instead.
|
|
1982
1982
|
https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
1983
1983
|
const H = {
|
|
1984
1984
|
code: C,
|
|
1985
1985
|
language: z
|
|
1986
1986
|
};
|
|
1987
1987
|
x("before:highlight", H);
|
|
1988
|
-
const B = H.result ? H.result :
|
|
1988
|
+
const B = H.result ? H.result : I(H.language, H.code, _, E);
|
|
1989
1989
|
return B.code = H.code, x("after:highlight", B), B;
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function I(b, v, _, E) {
|
|
1992
1992
|
function C($, j) {
|
|
1993
1993
|
const te = $e.case_insensitive ? j[0].toLowerCase() : j[0];
|
|
1994
1994
|
return Object.prototype.hasOwnProperty.call($.keywords, te) && $.keywords[te];
|
|
@@ -2027,7 +2027,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2027
2027
|
me.addText(fe);
|
|
2028
2028
|
return;
|
|
2029
2029
|
}
|
|
2030
|
-
$ =
|
|
2030
|
+
$ = I(J.subLanguage, fe, !0, Me[J.subLanguage]), Me[J.subLanguage] = /** @type {CompiledMode} */
|
|
2031
2031
|
$.top;
|
|
2032
2032
|
} else
|
|
2033
2033
|
$ = T(fe, J.subLanguage.length ? J.subLanguage : null);
|
|
@@ -2110,11 +2110,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2110
2110
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
2111
2111
|
return fe += te, te.length;
|
|
2112
2112
|
}
|
|
2113
|
-
const $e =
|
|
2113
|
+
const $e = ie(b);
|
|
2114
2114
|
if (!$e)
|
|
2115
2115
|
throw L0(s.replace("{}", b)), new Error('Unknown language: "' + b + '"');
|
|
2116
2116
|
const Be = Vo($e, { plugins: i });
|
|
2117
|
-
let Xe = "", J =
|
|
2117
|
+
let Xe = "", J = E || Be;
|
|
2118
2118
|
const Me = {}, me = new l.__emitter(l);
|
|
2119
2119
|
ve();
|
|
2120
2120
|
let fe = "", Fe = 0, Ne = 0, Ve = 0, Te = !1;
|
|
@@ -2176,17 +2176,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2176
2176
|
}
|
|
2177
2177
|
function T(b, v) {
|
|
2178
2178
|
v = v || l.languages || Object.keys(t);
|
|
2179
|
-
const _ = N(b),
|
|
2180
|
-
(Q) =>
|
|
2179
|
+
const _ = N(b), E = v.filter(ie).filter(W).map(
|
|
2180
|
+
(Q) => I(Q, b, !1)
|
|
2181
2181
|
);
|
|
2182
|
-
|
|
2183
|
-
const C =
|
|
2182
|
+
E.unshift(_);
|
|
2183
|
+
const C = E.sort((Q, S) => {
|
|
2184
2184
|
if (Q.relevance !== S.relevance)
|
|
2185
2185
|
return S.relevance - Q.relevance;
|
|
2186
2186
|
if (Q.language && S.language) {
|
|
2187
|
-
if (
|
|
2187
|
+
if (ie(Q.language).supersetOf === S.language)
|
|
2188
2188
|
return 1;
|
|
2189
|
-
if (
|
|
2189
|
+
if (ie(S.language).supersetOf === Q.language)
|
|
2190
2190
|
return -1;
|
|
2191
2191
|
}
|
|
2192
2192
|
return 0;
|
|
@@ -2198,8 +2198,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2198
2198
|
` ? l.useBR ? "<br>" : v : l.tabReplace ? v.replace(/\t/g, l.tabReplace) : v) : b;
|
|
2199
2199
|
}
|
|
2200
2200
|
function y(b, v, _) {
|
|
2201
|
-
const
|
|
2202
|
-
b.classList.add("hljs"),
|
|
2201
|
+
const E = v ? n[v] : _;
|
|
2202
|
+
b.classList.add("hljs"), E && b.classList.add(E);
|
|
2203
2203
|
}
|
|
2204
2204
|
const A = {
|
|
2205
2205
|
"before:highlightElement": ({ el: b }) => {
|
|
@@ -2226,8 +2226,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2226
2226
|
"before:highlightElement",
|
|
2227
2227
|
{ el: b, language: _ }
|
|
2228
2228
|
), v = b;
|
|
2229
|
-
const
|
|
2230
|
-
x("after:highlightElement", { el: b, result: C, text:
|
|
2229
|
+
const E = v.textContent, C = _ ? p(E, { language: _, ignoreIllegals: !0 }) : T(E);
|
|
2230
|
+
x("after:highlightElement", { el: b, result: C, text: E }), b.innerHTML = C.value, y(b, _, C.language), b.result = {
|
|
2231
2231
|
language: C.language,
|
|
2232
2232
|
// TODO: remove with version 11.0
|
|
2233
2233
|
re: C.relevance,
|
|
@@ -2239,7 +2239,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2239
2239
|
relavance: C.second_best.relevance
|
|
2240
2240
|
});
|
|
2241
2241
|
}
|
|
2242
|
-
function
|
|
2242
|
+
function f(b) {
|
|
2243
2243
|
b.useBR && (Ae("10.3.0", "'useBR' will be removed entirely in v11.0"), Ae("10.3.0", "Please see https://github.com/highlightjs/highlight.js/issues/2559")), l = Bt(l, b);
|
|
2244
2244
|
}
|
|
2245
2245
|
const w = () => {
|
|
@@ -2266,11 +2266,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2266
2266
|
let _ = null;
|
|
2267
2267
|
try {
|
|
2268
2268
|
_ = v(e);
|
|
2269
|
-
} catch (
|
|
2269
|
+
} catch (E) {
|
|
2270
2270
|
if (L0("Language definition for '{}' could not be registered.".replace("{}", b)), o)
|
|
2271
|
-
L0(
|
|
2271
|
+
L0(E);
|
|
2272
2272
|
else
|
|
2273
|
-
throw
|
|
2273
|
+
throw E;
|
|
2274
2274
|
_ = a;
|
|
2275
2275
|
}
|
|
2276
2276
|
_.name || (_.name = b), t[b] = _, _.rawDefinition = v.bind(null, e), _.aliases && oe(_.aliases, { languageName: b });
|
|
@@ -2285,12 +2285,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2285
2285
|
}
|
|
2286
2286
|
function Z(b) {
|
|
2287
2287
|
Ae("10.4.0", "requireLanguage will be removed entirely in v11."), Ae("10.4.0", "Please see https://github.com/highlightjs/highlight.js/pull/2844");
|
|
2288
|
-
const v =
|
|
2288
|
+
const v = ie(b);
|
|
2289
2289
|
if (v)
|
|
2290
2290
|
return v;
|
|
2291
2291
|
throw new Error("The '{}' language is required, but not loaded.".replace("{}", b));
|
|
2292
2292
|
}
|
|
2293
|
-
function
|
|
2293
|
+
function ie(b) {
|
|
2294
2294
|
return b = (b || "").toLowerCase(), t[b] || t[n[b]];
|
|
2295
2295
|
}
|
|
2296
2296
|
function oe(b, { languageName: v }) {
|
|
@@ -2299,7 +2299,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2299
2299
|
});
|
|
2300
2300
|
}
|
|
2301
2301
|
function W(b) {
|
|
2302
|
-
const v =
|
|
2302
|
+
const v = ie(b);
|
|
2303
2303
|
return v && !v.disableAutodetect;
|
|
2304
2304
|
}
|
|
2305
2305
|
function pe(b) {
|
|
@@ -2318,8 +2318,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2318
2318
|
}
|
|
2319
2319
|
function x(b, v) {
|
|
2320
2320
|
const _ = b;
|
|
2321
|
-
i.forEach(function(
|
|
2322
|
-
|
|
2321
|
+
i.forEach(function(E) {
|
|
2322
|
+
E[_] && E[_](v);
|
|
2323
2323
|
});
|
|
2324
2324
|
}
|
|
2325
2325
|
function k(b) {
|
|
@@ -2329,20 +2329,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2329
2329
|
return Ae("10.7.0", "highlightBlock will be removed entirely in v12.0"), Ae("10.7.0", "Please use highlightElement now."), g(b);
|
|
2330
2330
|
}
|
|
2331
2331
|
Object.assign(e, {
|
|
2332
|
-
highlight:
|
|
2332
|
+
highlight: p,
|
|
2333
2333
|
highlightAuto: T,
|
|
2334
2334
|
highlightAll: q,
|
|
2335
2335
|
fixMarkup: k,
|
|
2336
2336
|
highlightElement: g,
|
|
2337
2337
|
// TODO: Remove with v12 API
|
|
2338
2338
|
highlightBlock: K,
|
|
2339
|
-
configure:
|
|
2339
|
+
configure: f,
|
|
2340
2340
|
initHighlighting: w,
|
|
2341
2341
|
initHighlightingOnLoad: D,
|
|
2342
2342
|
registerLanguage: G,
|
|
2343
2343
|
unregisterLanguage: X,
|
|
2344
2344
|
listLanguages: ne,
|
|
2345
|
-
getLanguage:
|
|
2345
|
+
getLanguage: ie,
|
|
2346
2346
|
registerAliases: oe,
|
|
2347
2347
|
requireLanguage: Z,
|
|
2348
2348
|
autoDetection: W,
|
|
@@ -2371,15 +2371,15 @@ var Wo = qo({}), Go = Wo, kn = { exports: {} };
|
|
|
2371
2371
|
return o.apply(null, [r].concat(s));
|
|
2372
2372
|
}
|
|
2373
2373
|
function o(r) {
|
|
2374
|
-
for (var s = 1, a = [].slice.call(arguments), l = 0, d = r.length, u = "",
|
|
2374
|
+
for (var s = 1, a = [].slice.call(arguments), l = 0, d = r.length, u = "", p, I = !1, N, T, R = !1, y, A = function() {
|
|
2375
2375
|
return a[s++];
|
|
2376
2376
|
}, h = function() {
|
|
2377
2377
|
for (var m = ""; /\d/.test(r[l]); )
|
|
2378
|
-
m += r[l++],
|
|
2378
|
+
m += r[l++], p = r[l];
|
|
2379
2379
|
return m.length > 0 ? parseInt(m) : null;
|
|
2380
2380
|
}; l < d; ++l)
|
|
2381
|
-
if (
|
|
2382
|
-
switch (
|
|
2381
|
+
if (p = r[l], I)
|
|
2382
|
+
switch (I = !1, p == "." ? (R = !1, p = r[++l]) : p == "0" && r[l + 1] == "." ? (R = !0, l += 2, p = r[l]) : R = !0, y = h(), p) {
|
|
2383
2383
|
case "b":
|
|
2384
2384
|
u += parseInt(A(), 10).toString(2);
|
|
2385
2385
|
break;
|
|
@@ -2408,11 +2408,11 @@ var Wo = qo({}), Go = Wo, kn = { exports: {} };
|
|
|
2408
2408
|
u += "0x" + parseInt(A(), 10).toString(16).toUpperCase();
|
|
2409
2409
|
break;
|
|
2410
2410
|
default:
|
|
2411
|
-
u +=
|
|
2411
|
+
u += p;
|
|
2412
2412
|
break;
|
|
2413
2413
|
}
|
|
2414
2414
|
else
|
|
2415
|
-
|
|
2415
|
+
p === "%" ? I = !0 : u += p;
|
|
2416
2416
|
return u;
|
|
2417
2417
|
}
|
|
2418
2418
|
})();
|
|
@@ -2840,7 +2840,7 @@ function ma(e) {
|
|
|
2840
2840
|
], u = e.SHEBANG({
|
|
2841
2841
|
binary: `(${d.join("|")})`,
|
|
2842
2842
|
relevance: 10
|
|
2843
|
-
}),
|
|
2843
|
+
}), p = {
|
|
2844
2844
|
className: "function",
|
|
2845
2845
|
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
|
2846
2846
|
returnBegin: !0,
|
|
@@ -2865,7 +2865,7 @@ function ma(e) {
|
|
|
2865
2865
|
// to catch known shells and boost relevancy
|
|
2866
2866
|
e.SHEBANG(),
|
|
2867
2867
|
// to catch unknown shells but still highlight the shebang
|
|
2868
|
-
|
|
2868
|
+
p,
|
|
2869
2869
|
l,
|
|
2870
2870
|
e.HASH_COMMENT_MODE,
|
|
2871
2871
|
o,
|
|
@@ -3015,9 +3015,9 @@ function Y0(...e) {
|
|
|
3015
3015
|
return e.map((n) => Na(n)).join("");
|
|
3016
3016
|
}
|
|
3017
3017
|
function Sa(e) {
|
|
3018
|
-
const t = (g, { after:
|
|
3018
|
+
const t = (g, { after: f }) => {
|
|
3019
3019
|
const w = "</" + g[0].slice(1);
|
|
3020
|
-
return g.input.indexOf(w,
|
|
3020
|
+
return g.input.indexOf(w, f) !== -1;
|
|
3021
3021
|
}, n = zt, i = {
|
|
3022
3022
|
begin: "<>",
|
|
3023
3023
|
end: "</>"
|
|
@@ -3028,13 +3028,13 @@ function Sa(e) {
|
|
|
3028
3028
|
* @param {RegExpMatchArray} match
|
|
3029
3029
|
* @param {CallbackResponse} response
|
|
3030
3030
|
*/
|
|
3031
|
-
isTrulyOpeningTag: (g,
|
|
3031
|
+
isTrulyOpeningTag: (g, f) => {
|
|
3032
3032
|
const w = g[0].length + g.index, D = g.input[w];
|
|
3033
3033
|
if (D === "<") {
|
|
3034
|
-
|
|
3034
|
+
f.ignoreMatch();
|
|
3035
3035
|
return;
|
|
3036
3036
|
}
|
|
3037
|
-
D === ">" && (t(g, { after: w }) ||
|
|
3037
|
+
D === ">" && (t(g, { after: w }) || f.ignoreMatch());
|
|
3038
3038
|
}
|
|
3039
3039
|
}, r = {
|
|
3040
3040
|
$pattern: zt,
|
|
@@ -3065,7 +3065,7 @@ function Sa(e) {
|
|
|
3065
3065
|
keywords: r,
|
|
3066
3066
|
contains: []
|
|
3067
3067
|
// defined later
|
|
3068
|
-
},
|
|
3068
|
+
}, p = {
|
|
3069
3069
|
begin: "html`",
|
|
3070
3070
|
end: "",
|
|
3071
3071
|
starts: {
|
|
@@ -3077,7 +3077,7 @@ function Sa(e) {
|
|
|
3077
3077
|
],
|
|
3078
3078
|
subLanguage: "xml"
|
|
3079
3079
|
}
|
|
3080
|
-
},
|
|
3080
|
+
}, I = {
|
|
3081
3081
|
begin: "css`",
|
|
3082
3082
|
end: "",
|
|
3083
3083
|
starts: {
|
|
@@ -3139,8 +3139,8 @@ function Sa(e) {
|
|
|
3139
3139
|
}, y = [
|
|
3140
3140
|
e.APOS_STRING_MODE,
|
|
3141
3141
|
e.QUOTE_STRING_MODE,
|
|
3142
|
-
|
|
3143
|
-
|
|
3142
|
+
p,
|
|
3143
|
+
I,
|
|
3144
3144
|
N,
|
|
3145
3145
|
d,
|
|
3146
3146
|
e.REGEXP_MODE
|
|
@@ -3193,8 +3193,8 @@ function Sa(e) {
|
|
|
3193
3193
|
},
|
|
3194
3194
|
e.APOS_STRING_MODE,
|
|
3195
3195
|
e.QUOTE_STRING_MODE,
|
|
3196
|
-
|
|
3197
|
-
|
|
3196
|
+
p,
|
|
3197
|
+
I,
|
|
3198
3198
|
N,
|
|
3199
3199
|
R,
|
|
3200
3200
|
d,
|
|
@@ -3668,10 +3668,10 @@ function La(e) {
|
|
|
3668
3668
|
{ begin: /"/, end: /"/ },
|
|
3669
3669
|
{ begin: /[^\s,{}[\]]+/ }
|
|
3670
3670
|
]
|
|
3671
|
-
}), a = "[0-9]{4}(-[0-9][0-9]){0,2}", l = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", d = "(\\.[0-9]*)?", u = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",
|
|
3671
|
+
}), a = "[0-9]{4}(-[0-9][0-9]){0,2}", l = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", d = "(\\.[0-9]*)?", u = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", p = {
|
|
3672
3672
|
className: "number",
|
|
3673
3673
|
begin: "\\b" + a + l + d + u + "\\b"
|
|
3674
|
-
},
|
|
3674
|
+
}, I = {
|
|
3675
3675
|
end: ",",
|
|
3676
3676
|
endsWithParent: !0,
|
|
3677
3677
|
excludeEnd: !0,
|
|
@@ -3680,13 +3680,13 @@ function La(e) {
|
|
|
3680
3680
|
}, N = {
|
|
3681
3681
|
begin: /\{/,
|
|
3682
3682
|
end: /\}/,
|
|
3683
|
-
contains: [
|
|
3683
|
+
contains: [I],
|
|
3684
3684
|
illegal: "\\n",
|
|
3685
3685
|
relevance: 0
|
|
3686
3686
|
}, T = {
|
|
3687
3687
|
begin: "\\[",
|
|
3688
3688
|
end: "\\]",
|
|
3689
|
-
contains: [
|
|
3689
|
+
contains: [I],
|
|
3690
3690
|
illegal: "\\n",
|
|
3691
3691
|
relevance: 0
|
|
3692
3692
|
}, R = [
|
|
@@ -3757,7 +3757,7 @@ function La(e) {
|
|
|
3757
3757
|
beginKeywords: t,
|
|
3758
3758
|
keywords: { literal: t }
|
|
3759
3759
|
},
|
|
3760
|
-
|
|
3760
|
+
p,
|
|
3761
3761
|
// numbers are any valid C-style number that
|
|
3762
3762
|
// sit isolated from other words
|
|
3763
3763
|
{
|
|
@@ -3769,7 +3769,7 @@ function La(e) {
|
|
|
3769
3769
|
T,
|
|
3770
3770
|
r
|
|
3771
3771
|
], y = [...R];
|
|
3772
|
-
return y.pop(), y.push(s),
|
|
3772
|
+
return y.pop(), y.push(s), I.contains = y, {
|
|
3773
3773
|
name: "YAML",
|
|
3774
3774
|
case_insensitive: !0,
|
|
3775
3775
|
aliases: ["yml"],
|
|
@@ -3971,9 +3971,9 @@ function X0(...e) {
|
|
|
3971
3971
|
return e.map((n) => Fa(n)).join("");
|
|
3972
3972
|
}
|
|
3973
3973
|
function qa(e) {
|
|
3974
|
-
const t = (g, { after:
|
|
3974
|
+
const t = (g, { after: f }) => {
|
|
3975
3975
|
const w = "</" + g[0].slice(1);
|
|
3976
|
-
return g.input.indexOf(w,
|
|
3976
|
+
return g.input.indexOf(w, f) !== -1;
|
|
3977
3977
|
}, n = O0, i = {
|
|
3978
3978
|
begin: "<>",
|
|
3979
3979
|
end: "</>"
|
|
@@ -3984,13 +3984,13 @@ function qa(e) {
|
|
|
3984
3984
|
* @param {RegExpMatchArray} match
|
|
3985
3985
|
* @param {CallbackResponse} response
|
|
3986
3986
|
*/
|
|
3987
|
-
isTrulyOpeningTag: (g,
|
|
3987
|
+
isTrulyOpeningTag: (g, f) => {
|
|
3988
3988
|
const w = g[0].length + g.index, D = g.input[w];
|
|
3989
3989
|
if (D === "<") {
|
|
3990
|
-
|
|
3990
|
+
f.ignoreMatch();
|
|
3991
3991
|
return;
|
|
3992
3992
|
}
|
|
3993
|
-
D === ">" && (t(g, { after: w }) ||
|
|
3993
|
+
D === ">" && (t(g, { after: w }) || f.ignoreMatch());
|
|
3994
3994
|
}
|
|
3995
3995
|
}, r = {
|
|
3996
3996
|
$pattern: O0,
|
|
@@ -4021,7 +4021,7 @@ function qa(e) {
|
|
|
4021
4021
|
keywords: r,
|
|
4022
4022
|
contains: []
|
|
4023
4023
|
// defined later
|
|
4024
|
-
},
|
|
4024
|
+
}, p = {
|
|
4025
4025
|
begin: "html`",
|
|
4026
4026
|
end: "",
|
|
4027
4027
|
starts: {
|
|
@@ -4033,7 +4033,7 @@ function qa(e) {
|
|
|
4033
4033
|
],
|
|
4034
4034
|
subLanguage: "xml"
|
|
4035
4035
|
}
|
|
4036
|
-
},
|
|
4036
|
+
}, I = {
|
|
4037
4037
|
begin: "css`",
|
|
4038
4038
|
end: "",
|
|
4039
4039
|
starts: {
|
|
@@ -4095,8 +4095,8 @@ function qa(e) {
|
|
|
4095
4095
|
}, y = [
|
|
4096
4096
|
e.APOS_STRING_MODE,
|
|
4097
4097
|
e.QUOTE_STRING_MODE,
|
|
4098
|
-
|
|
4099
|
-
|
|
4098
|
+
p,
|
|
4099
|
+
I,
|
|
4100
4100
|
N,
|
|
4101
4101
|
d,
|
|
4102
4102
|
e.REGEXP_MODE
|
|
@@ -4149,8 +4149,8 @@ function qa(e) {
|
|
|
4149
4149
|
},
|
|
4150
4150
|
e.APOS_STRING_MODE,
|
|
4151
4151
|
e.QUOTE_STRING_MODE,
|
|
4152
|
-
|
|
4153
|
-
|
|
4152
|
+
p,
|
|
4153
|
+
I,
|
|
4154
4154
|
N,
|
|
4155
4155
|
R,
|
|
4156
4156
|
d,
|
|
@@ -4384,19 +4384,19 @@ function Wa(e) {
|
|
|
4384
4384
|
}, l = {
|
|
4385
4385
|
className: "meta",
|
|
4386
4386
|
begin: "@" + t
|
|
4387
|
-
}, d = (
|
|
4388
|
-
const R =
|
|
4387
|
+
}, d = (I, N, T) => {
|
|
4388
|
+
const R = I.contains.findIndex((y) => y.label === N);
|
|
4389
4389
|
if (R === -1)
|
|
4390
4390
|
throw new Error("can not find mode to replace");
|
|
4391
|
-
|
|
4391
|
+
I.contains.splice(R, 1, T);
|
|
4392
4392
|
}, u = qa(e);
|
|
4393
4393
|
Object.assign(u.keywords, a), u.exports.PARAMS_CONTAINS.push(l), u.contains = u.contains.concat([
|
|
4394
4394
|
l,
|
|
4395
4395
|
n,
|
|
4396
4396
|
i
|
|
4397
4397
|
]), d(u, "shebang", e.SHEBANG()), d(u, "use_strict", o);
|
|
4398
|
-
const
|
|
4399
|
-
return
|
|
4398
|
+
const p = u.contains.find((I) => I.className === "function");
|
|
4399
|
+
return p.relevance = 0, Object.assign(u, {
|
|
4400
4400
|
name: "TypeScript",
|
|
4401
4401
|
aliases: ["ts", "tsx"]
|
|
4402
4402
|
}), u;
|
|
@@ -4546,11 +4546,11 @@ const wc = ({ language: e, children: t, ...n }) => /* @__PURE__ */ c(
|
|
|
4546
4546
|
PreTag: "div",
|
|
4547
4547
|
children: t
|
|
4548
4548
|
}
|
|
4549
|
-
), ye = Ce(({ as: e = "p", size: t, children: n, className: i, ...o }, r) => /* @__PURE__ */ c(V, { ...o, as: e, ref: r, className:
|
|
4549
|
+
), ye = Ce(({ as: e = "p", size: t, children: n, className: i, ...o }, r) => /* @__PURE__ */ c(V, { ...o, as: e, ref: r, className: re({ [`heading-${t}`]: !!t }, i), children: n }));
|
|
4550
4550
|
ye.displayName = "Heading";
|
|
4551
|
-
const ee = Ce(({ as: e = "p", size: t, className: n, children: i, ...o }, r) => /* @__PURE__ */ c(V, { ...o, as: e, ref: r, className:
|
|
4551
|
+
const ee = Ce(({ as: e = "p", size: t, className: n, children: i, ...o }, r) => /* @__PURE__ */ c(V, { ...o, as: e, ref: r, className: re({ [`text-${t}`]: !!t }, n), children: i }));
|
|
4552
4552
|
ee.displayName = "Text";
|
|
4553
|
-
const Nc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ c(ee, { as: "blockquote", ...n, pl: "m", size: "m", italic: !0, className:
|
|
4553
|
+
const Nc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ c(ee, { as: "blockquote", ...n, pl: "m", size: "m", italic: !0, className: re("blockquote", t), children: e });
|
|
4554
4554
|
const We = Ce(({ as: e = "div", isLoading: t = !0, children: n, ...i }, o) => /* @__PURE__ */ c(Pe, { children: t ? /* @__PURE__ */ c(
|
|
4555
4555
|
V,
|
|
4556
4556
|
{
|
|
@@ -4558,7 +4558,7 @@ const We = Ce(({ as: e = "div", isLoading: t = !0, children: n, ...i }, o) => /*
|
|
|
4558
4558
|
as: e,
|
|
4559
4559
|
ref: o,
|
|
4560
4560
|
bg: "ultra-light-grey",
|
|
4561
|
-
className:
|
|
4561
|
+
className: re(t ? ["skeleton", "animate-pulse"] : void 0, i.className),
|
|
4562
4562
|
children: n ?? /* @__PURE__ */ c(V, { children: /* @__PURE__ */ c(Pe, { children: " " }) })
|
|
4563
4563
|
}
|
|
4564
4564
|
) : n }));
|
|
@@ -4576,7 +4576,7 @@ const Sc = ["primary", "secondary"], Gn = ({ variant: e, ...t }) => /* @__PURE__
|
|
|
4576
4576
|
...t,
|
|
4577
4577
|
flexDirection: "column",
|
|
4578
4578
|
gap: "xxs",
|
|
4579
|
-
className:
|
|
4579
|
+
className: re("close-button", { [`close-button--${e}`]: e }),
|
|
4580
4580
|
children: [
|
|
4581
4581
|
/* @__PURE__ */ c(V, { className: "close-button__line close-button__line--horizontal" }),
|
|
4582
4582
|
/* @__PURE__ */ c(V, { className: "close-button__line close-button__line--vertical" })
|
|
@@ -4592,7 +4592,7 @@ const Yn = ({ items: e, ...t }) => /* @__PURE__ */ c(
|
|
|
4592
4592
|
itemType: "https://schema.org/BreadcrumbList",
|
|
4593
4593
|
gap: "xxs-3",
|
|
4594
4594
|
fontWeight: "semi-bold",
|
|
4595
|
-
className: "breadcrumb",
|
|
4595
|
+
className: re("breadcrumb", t.className),
|
|
4596
4596
|
children: e.map(({ label: n, ...i }, o) => /* @__PURE__ */ M(rt, { children: [
|
|
4597
4597
|
/* @__PURE__ */ M("li", { itemProp: "itemListElement", itemScope: !0, itemType: "https://schema.org/ListItem", children: [
|
|
4598
4598
|
i.href ? /* @__PURE__ */ c(e0, { itemProp: "item", ...i, children: /* @__PURE__ */ c(ee, { as: "span", itemProp: "name", children: n }) }) : /* @__PURE__ */ c(ee, { as: "span", itemProp: "name", fontWeight: "regular", children: n }),
|
|
@@ -4612,13 +4612,13 @@ const e0 = Ce(
|
|
|
4612
4612
|
display: "inline-flex",
|
|
4613
4613
|
alignItems: "center",
|
|
4614
4614
|
color: "info",
|
|
4615
|
-
className:
|
|
4615
|
+
className: re("link", n),
|
|
4616
4616
|
children: [
|
|
4617
4617
|
t && /* @__PURE__ */ c(Ie, { name: t }),
|
|
4618
4618
|
/* @__PURE__ */ c(ee, { as: "span", children: i })
|
|
4619
4619
|
]
|
|
4620
4620
|
}
|
|
4621
|
-
) : /* @__PURE__ */ c(V, { ...o, ref: r, as: e, color: "info", className:
|
|
4621
|
+
) : /* @__PURE__ */ c(V, { ...o, ref: r, as: e, color: "info", className: re("link", n), children: i })
|
|
4622
4622
|
);
|
|
4623
4623
|
e0.displayName = "Link";
|
|
4624
4624
|
const Oc = [
|
|
@@ -4634,7 +4634,7 @@ const Oc = [
|
|
|
4634
4634
|
"bug",
|
|
4635
4635
|
"example",
|
|
4636
4636
|
"quote"
|
|
4637
|
-
], Rc = Ce(({ as: e = "div", variant: t, title: n, children: i, ...o }, r) => /* @__PURE__ */ M(V, { ...o, as: e, ref: r, bg: "white", className:
|
|
4637
|
+
], Rc = Ce(({ as: e = "div", variant: t, title: n, children: i, ...o }, r) => /* @__PURE__ */ M(V, { ...o, as: e, ref: r, bg: "white", className: re("reminder", `reminder--${t}`), children: [
|
|
4638
4638
|
/* @__PURE__ */ c(ee, { className: "reminder__title", children: n }),
|
|
4639
4639
|
/* @__PURE__ */ c(V, { p: "xxs", children: i })
|
|
4640
4640
|
] }));
|
|
@@ -4643,7 +4643,7 @@ const Xn = Ce(
|
|
|
4643
4643
|
V,
|
|
4644
4644
|
{
|
|
4645
4645
|
...o,
|
|
4646
|
-
className:
|
|
4646
|
+
className: re("search-field", { "search-field--has-value": !!e.value }, i),
|
|
4647
4647
|
ref: r,
|
|
4648
4648
|
children: [
|
|
4649
4649
|
/* @__PURE__ */ c(V, { as: "input", ...e, className: "search-field__input" }),
|
|
@@ -4664,15 +4664,15 @@ var Zn = { exports: {} };
|
|
|
4664
4664
|
})(gn, () => {
|
|
4665
4665
|
return n = { 772: (o, r, s) => {
|
|
4666
4666
|
const a = s(826).remove, l = /[.*+?^${}()|[\]\\]/g, d = /[a-z0-9_]/i, u = /\s+/;
|
|
4667
|
-
o.exports = function(
|
|
4667
|
+
o.exports = function(p, I, N) {
|
|
4668
4668
|
var T, R;
|
|
4669
4669
|
R = { insideWords: !1, findAllOccurrences: !1, requireMatchAll: !1 }, T = (T = N) || {}, Object.keys(T).forEach((h) => {
|
|
4670
4670
|
R[h] = !!T[h];
|
|
4671
4671
|
}), N = R;
|
|
4672
|
-
const y = Array.from(
|
|
4672
|
+
const y = Array.from(p).map((h) => a(h));
|
|
4673
4673
|
let A = y.join("");
|
|
4674
|
-
return (
|
|
4675
|
-
const g = m.length,
|
|
4674
|
+
return (I = a(I)).trim().split(u).filter((h) => h.length > 0).reduce((h, m) => {
|
|
4675
|
+
const g = m.length, f = !N.insideWords && d.test(m[0]) ? "\\b" : "", w = new RegExp(f + m.replace(l, "\\$&"), "i");
|
|
4676
4676
|
let D, P;
|
|
4677
4677
|
if (D = w.exec(A), N.requireMatchAll && D === null)
|
|
4678
4678
|
return A = "", [];
|
|
@@ -4688,8 +4688,8 @@ var Zn = { exports: {} };
|
|
|
4688
4688
|
};
|
|
4689
4689
|
}, 826: (o) => {
|
|
4690
4690
|
var r = { À: "A", Á: "A", Â: "A", Ã: "A", Ä: "A", Å: "A", Ấ: "A", Ắ: "A", Ẳ: "A", Ẵ: "A", Ặ: "A", Æ: "AE", Ầ: "A", Ằ: "A", Ȃ: "A", Ç: "C", Ḉ: "C", È: "E", É: "E", Ê: "E", Ë: "E", Ế: "E", Ḗ: "E", Ề: "E", Ḕ: "E", Ḝ: "E", Ȇ: "E", Ì: "I", Í: "I", Î: "I", Ï: "I", Ḯ: "I", Ȋ: "I", Ð: "D", Ñ: "N", Ò: "O", Ó: "O", Ô: "O", Õ: "O", Ö: "O", Ø: "O", Ố: "O", Ṍ: "O", Ṓ: "O", Ȏ: "O", Ù: "U", Ú: "U", Û: "U", Ü: "U", Ý: "Y", à: "a", á: "a", â: "a", ã: "a", ä: "a", å: "a", ấ: "a", ắ: "a", ẳ: "a", ẵ: "a", ặ: "a", æ: "ae", ầ: "a", ằ: "a", ȃ: "a", ç: "c", ḉ: "c", è: "e", é: "e", ê: "e", ë: "e", ế: "e", ḗ: "e", ề: "e", ḕ: "e", ḝ: "e", ȇ: "e", ì: "i", í: "i", î: "i", ï: "i", ḯ: "i", ȋ: "i", ð: "d", ñ: "n", ò: "o", ó: "o", ô: "o", õ: "o", ö: "o", ø: "o", ố: "o", ṍ: "o", ṓ: "o", ȏ: "o", ù: "u", ú: "u", û: "u", ü: "u", ý: "y", ÿ: "y", Ā: "A", ā: "a", Ă: "A", ă: "a", Ą: "A", ą: "a", Ć: "C", ć: "c", Ĉ: "C", ĉ: "c", Ċ: "C", ċ: "c", Č: "C", č: "c", C̆: "C", c̆: "c", Ď: "D", ď: "d", Đ: "D", đ: "d", Ē: "E", ē: "e", Ĕ: "E", ĕ: "e", Ė: "E", ė: "e", Ę: "E", ę: "e", Ě: "E", ě: "e", Ĝ: "G", Ǵ: "G", ĝ: "g", ǵ: "g", Ğ: "G", ğ: "g", Ġ: "G", ġ: "g", Ģ: "G", ģ: "g", Ĥ: "H", ĥ: "h", Ħ: "H", ħ: "h", Ḫ: "H", ḫ: "h", Ĩ: "I", ĩ: "i", Ī: "I", ī: "i", Ĭ: "I", ĭ: "i", Į: "I", į: "i", İ: "I", ı: "i", IJ: "IJ", ij: "ij", Ĵ: "J", ĵ: "j", Ķ: "K", ķ: "k", Ḱ: "K", ḱ: "k", K̆: "K", k̆: "k", Ĺ: "L", ĺ: "l", Ļ: "L", ļ: "l", Ľ: "L", ľ: "l", Ŀ: "L", ŀ: "l", Ł: "l", ł: "l", Ḿ: "M", ḿ: "m", M̆: "M", m̆: "m", Ń: "N", ń: "n", Ņ: "N", ņ: "n", Ň: "N", ň: "n", ʼn: "n", N̆: "N", n̆: "n", Ō: "O", ō: "o", Ŏ: "O", ŏ: "o", Ő: "O", ő: "o", Œ: "OE", œ: "oe", P̆: "P", p̆: "p", Ŕ: "R", ŕ: "r", Ŗ: "R", ŗ: "r", Ř: "R", ř: "r", R̆: "R", r̆: "r", Ȓ: "R", ȓ: "r", Ś: "S", ś: "s", Ŝ: "S", ŝ: "s", Ş: "S", Ș: "S", ș: "s", ş: "s", Š: "S", š: "s", Ţ: "T", ţ: "t", ț: "t", Ț: "T", Ť: "T", ť: "t", Ŧ: "T", ŧ: "t", T̆: "T", t̆: "t", Ũ: "U", ũ: "u", Ū: "U", ū: "u", Ŭ: "U", ŭ: "u", Ů: "U", ů: "u", Ű: "U", ű: "u", Ų: "U", ų: "u", Ȗ: "U", ȗ: "u", V̆: "V", v̆: "v", Ŵ: "W", ŵ: "w", Ẃ: "W", ẃ: "w", X̆: "X", x̆: "x", Ŷ: "Y", ŷ: "y", Ÿ: "Y", Y̆: "Y", y̆: "y", Ź: "Z", ź: "z", Ż: "Z", ż: "z", Ž: "Z", ž: "z", ſ: "s", ƒ: "f", Ơ: "O", ơ: "o", Ư: "U", ư: "u", Ǎ: "A", ǎ: "a", Ǐ: "I", ǐ: "i", Ǒ: "O", ǒ: "o", Ǔ: "U", ǔ: "u", Ǖ: "U", ǖ: "u", Ǘ: "U", ǘ: "u", Ǚ: "U", ǚ: "u", Ǜ: "U", ǜ: "u", Ứ: "U", ứ: "u", Ṹ: "U", ṹ: "u", Ǻ: "A", ǻ: "a", Ǽ: "AE", ǽ: "ae", Ǿ: "O", ǿ: "o", Þ: "TH", þ: "th", Ṕ: "P", ṕ: "p", Ṥ: "S", ṥ: "s", X́: "X", x́: "x", Ѓ: "Г", ѓ: "г", Ќ: "К", ќ: "к", A̋: "A", a̋: "a", E̋: "E", e̋: "e", I̋: "I", i̋: "i", Ǹ: "N", ǹ: "n", Ồ: "O", ồ: "o", Ṑ: "O", ṑ: "o", Ừ: "U", ừ: "u", Ẁ: "W", ẁ: "w", Ỳ: "Y", ỳ: "y", Ȁ: "A", ȁ: "a", Ȅ: "E", ȅ: "e", Ȉ: "I", ȉ: "i", Ȍ: "O", ȍ: "o", Ȑ: "R", ȑ: "r", Ȕ: "U", ȕ: "u", B̌: "B", b̌: "b", Č̣: "C", č̣: "c", Ê̌: "E", ê̌: "e", F̌: "F", f̌: "f", Ǧ: "G", ǧ: "g", Ȟ: "H", ȟ: "h", J̌: "J", ǰ: "j", Ǩ: "K", ǩ: "k", M̌: "M", m̌: "m", P̌: "P", p̌: "p", Q̌: "Q", q̌: "q", Ř̩: "R", ř̩: "r", Ṧ: "S", ṧ: "s", V̌: "V", v̌: "v", W̌: "W", w̌: "w", X̌: "X", x̌: "x", Y̌: "Y", y̌: "y", A̧: "A", a̧: "a", B̧: "B", b̧: "b", Ḑ: "D", ḑ: "d", Ȩ: "E", ȩ: "e", Ɛ̧: "E", ɛ̧: "e", Ḩ: "H", ḩ: "h", I̧: "I", i̧: "i", Ɨ̧: "I", ɨ̧: "i", M̧: "M", m̧: "m", O̧: "O", o̧: "o", Q̧: "Q", q̧: "q", U̧: "U", u̧: "u", X̧: "X", x̧: "x", Z̧: "Z", z̧: "z" }, s = Object.keys(r).join("|"), a = new RegExp(s, "g"), l = new RegExp(s, ""), d = function(u) {
|
|
4691
|
-
return u.replace(a, function(
|
|
4692
|
-
return r[
|
|
4691
|
+
return u.replace(a, function(p) {
|
|
4692
|
+
return r[p];
|
|
4693
4693
|
});
|
|
4694
4694
|
};
|
|
4695
4695
|
o.exports = d, o.exports.has = function(u) {
|
|
@@ -4716,8 +4716,8 @@ var Qn = { exports: {} };
|
|
|
4716
4716
|
o.exports = function(r, s) {
|
|
4717
4717
|
const a = [];
|
|
4718
4718
|
return s.length === 0 ? a.push({ text: r, highlight: !1 }) : s[0][0] > 0 && a.push({ text: r.slice(0, s[0][0]), highlight: !1 }), s.forEach((l, d) => {
|
|
4719
|
-
const u = l[0],
|
|
4720
|
-
a.push({ text: r.slice(u,
|
|
4719
|
+
const u = l[0], p = l[1];
|
|
4720
|
+
a.push({ text: r.slice(u, p), highlight: !0 }), d === s.length - 1 ? p < r.length && a.push({ text: r.slice(p, r.length), highlight: !1 }) : p < s[d + 1][0] && a.push({ text: r.slice(p, s[d + 1][0]), highlight: !1 });
|
|
4721
4721
|
}), a;
|
|
4722
4722
|
};
|
|
4723
4723
|
} }, i = {}, function o(r) {
|
|
@@ -4856,10 +4856,10 @@ const Cc = ["primary", "secondary"], lt = ({
|
|
|
4856
4856
|
style: { minWidth: 50, minHeight: 16 },
|
|
4857
4857
|
children: i && /* @__PURE__ */ M(F, { alignContent: "center", alignItems: "center", gap: "xxs", children: [
|
|
4858
4858
|
e === "secondary" && /* @__PURE__ */ c(Ie, { name: "person", size: "24px", color: "light-grey" }),
|
|
4859
|
-
i.map(({ username:
|
|
4860
|
-
N ? /* @__PURE__ */ c(e0, { ...N, children:
|
|
4859
|
+
i.map(({ username: p, name: I, link: N }, T) => /* @__PURE__ */ M(rt, { children: [
|
|
4860
|
+
N ? /* @__PURE__ */ c(e0, { ...N, children: I }) : /* @__PURE__ */ c(ee, { as: "span", children: I }),
|
|
4861
4861
|
T !== i.length - 1 && /* @__PURE__ */ c(ee, { as: "span", children: "&" })
|
|
4862
|
-
] },
|
|
4862
|
+
] }, p))
|
|
4863
4863
|
] })
|
|
4864
4864
|
},
|
|
4865
4865
|
d
|
|
@@ -4880,7 +4880,7 @@ const Cc = ["primary", "secondary"], lt = ({
|
|
|
4880
4880
|
textSize: "s",
|
|
4881
4881
|
flexWrap: "wrap",
|
|
4882
4882
|
gap: e === "secondary" ? "s" : "xxs",
|
|
4883
|
-
className:
|
|
4883
|
+
className: re("post-metadata", { [`post-metadata--${e}`]: e }),
|
|
4884
4884
|
children: a
|
|
4885
4885
|
}
|
|
4886
4886
|
);
|
|
@@ -4897,8 +4897,8 @@ const Mc = ["highlight-light", "highlight-dark", "side-image"], D0 = ({
|
|
|
4897
4897
|
link: l = {},
|
|
4898
4898
|
isLoading: d = !1,
|
|
4899
4899
|
tutorialLabel: u,
|
|
4900
|
-
...
|
|
4901
|
-
}) => /* @__PURE__ */ M(V, { as: "article", ...
|
|
4900
|
+
...p
|
|
4901
|
+
}) => /* @__PURE__ */ M(V, { as: "article", ...p, className: re("post-card", `post-card--${t}`), children: [
|
|
4902
4902
|
/* @__PURE__ */ c(We, { isLoading: d, children: /* @__PURE__ */ c("img", { className: "post-card__cover", ...n, alt: n == null ? void 0 : n.alt }) }),
|
|
4903
4903
|
/* @__PURE__ */ M(
|
|
4904
4904
|
V,
|
|
@@ -5005,7 +5005,7 @@ const Tc = ["primary", "secondary"], tr = ({
|
|
|
5005
5005
|
sectionActive: n,
|
|
5006
5006
|
sections: i,
|
|
5007
5007
|
...o
|
|
5008
|
-
}) => /* @__PURE__ */ M(V, { bg: "white", p: "m", className:
|
|
5008
|
+
}) => /* @__PURE__ */ M(V, { bg: "white", p: "m", className: re("summary-card", { [`summary-card--${e}`]: e }), ...o, children: [
|
|
5009
5009
|
/* @__PURE__ */ c(ye, { size: "m", color: "primary", children: t }),
|
|
5010
5010
|
/* @__PURE__ */ c(F, { flexDirection: "column", mt: "m", children: i.map(({ name: r, label: s, ...a }, l) => /* @__PURE__ */ M(be.Fragment, { children: [
|
|
5011
5011
|
/* @__PURE__ */ M(
|
|
@@ -5014,7 +5014,7 @@ const Tc = ["primary", "secondary"], tr = ({
|
|
|
5014
5014
|
as: "a",
|
|
5015
5015
|
gap: "s",
|
|
5016
5016
|
fontWeight: "semi-bold",
|
|
5017
|
-
className:
|
|
5017
|
+
className: re("summary-card__section", {
|
|
5018
5018
|
"summary-card__section--active": n === r
|
|
5019
5019
|
}),
|
|
5020
5020
|
...a,
|
|
@@ -5040,7 +5040,7 @@ const Ac = ["horizontal", "vertical"], ut = ({
|
|
|
5040
5040
|
p: "l",
|
|
5041
5041
|
bg: "primary",
|
|
5042
5042
|
color: "white",
|
|
5043
|
-
className:
|
|
5043
|
+
className: re("newsletter-card", `newsletter-card--${i}`),
|
|
5044
5044
|
children: [
|
|
5045
5045
|
/* @__PURE__ */ M(V, { className: "newsletter-card__intro", children: [
|
|
5046
5046
|
/* @__PURE__ */ c(ye, { size: "m", color: "accent", children: e }),
|
|
@@ -5079,7 +5079,7 @@ const Ac = ["horizontal", "vertical"], ut = ({
|
|
|
5079
5079
|
}, [t, e, n]);
|
|
5080
5080
|
const B0 = (e) => ({
|
|
5081
5081
|
...e.disabled ? { as: "span" } : { as: "a", ...e.getLink(e.currentPage) },
|
|
5082
|
-
className:
|
|
5082
|
+
className: re(
|
|
5083
5083
|
"pagination__item",
|
|
5084
5084
|
{ "pagination__item--disabled": e.disabled },
|
|
5085
5085
|
{ "pagination__item--active": e.active }
|
|
@@ -5105,7 +5105,7 @@ const B0 = (e) => ({
|
|
|
5105
5105
|
}
|
|
5106
5106
|
),
|
|
5107
5107
|
r.map((s, a) => /* @__PURE__ */ M(rt, { children: [
|
|
5108
|
-
s === o0 && /* @__PURE__ */ c(V, { className:
|
|
5108
|
+
s === o0 && /* @__PURE__ */ c(V, { className: re("pagination__item"), children: "..." }),
|
|
5109
5109
|
s !== o0 && /* @__PURE__ */ c(
|
|
5110
5110
|
V,
|
|
5111
5111
|
{
|
|
@@ -5151,28 +5151,28 @@ function ls() {
|
|
|
5151
5151
|
if (Ft)
|
|
5152
5152
|
return ae;
|
|
5153
5153
|
Ft = 1;
|
|
5154
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112,
|
|
5155
|
-
function m(
|
|
5156
|
-
if (typeof
|
|
5157
|
-
var w =
|
|
5154
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, I = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, h = e ? Symbol.for("react.scope") : 60119;
|
|
5155
|
+
function m(f) {
|
|
5156
|
+
if (typeof f == "object" && f !== null) {
|
|
5157
|
+
var w = f.$$typeof;
|
|
5158
5158
|
switch (w) {
|
|
5159
5159
|
case t:
|
|
5160
|
-
switch (
|
|
5160
|
+
switch (f = f.type, f) {
|
|
5161
5161
|
case l:
|
|
5162
5162
|
case d:
|
|
5163
5163
|
case i:
|
|
5164
5164
|
case r:
|
|
5165
5165
|
case o:
|
|
5166
|
-
case
|
|
5167
|
-
return
|
|
5166
|
+
case p:
|
|
5167
|
+
return f;
|
|
5168
5168
|
default:
|
|
5169
|
-
switch (
|
|
5169
|
+
switch (f = f && f.$$typeof, f) {
|
|
5170
5170
|
case a:
|
|
5171
5171
|
case u:
|
|
5172
5172
|
case T:
|
|
5173
5173
|
case N:
|
|
5174
5174
|
case s:
|
|
5175
|
-
return
|
|
5175
|
+
return f;
|
|
5176
5176
|
default:
|
|
5177
5177
|
return w;
|
|
5178
5178
|
}
|
|
@@ -5182,35 +5182,35 @@ function ls() {
|
|
|
5182
5182
|
}
|
|
5183
5183
|
}
|
|
5184
5184
|
}
|
|
5185
|
-
function g(
|
|
5186
|
-
return m(
|
|
5187
|
-
}
|
|
5188
|
-
return ae.AsyncMode = l, ae.ConcurrentMode = d, ae.ContextConsumer = a, ae.ContextProvider = s, ae.Element = t, ae.ForwardRef = u, ae.Fragment = i, ae.Lazy = T, ae.Memo = N, ae.Portal = n, ae.Profiler = r, ae.StrictMode = o, ae.Suspense =
|
|
5189
|
-
return g(
|
|
5190
|
-
}, ae.isConcurrentMode = g, ae.isContextConsumer = function(
|
|
5191
|
-
return m(
|
|
5192
|
-
}, ae.isContextProvider = function(
|
|
5193
|
-
return m(
|
|
5194
|
-
}, ae.isElement = function(
|
|
5195
|
-
return typeof
|
|
5196
|
-
}, ae.isForwardRef = function(
|
|
5197
|
-
return m(
|
|
5198
|
-
}, ae.isFragment = function(
|
|
5199
|
-
return m(
|
|
5200
|
-
}, ae.isLazy = function(
|
|
5201
|
-
return m(
|
|
5202
|
-
}, ae.isMemo = function(
|
|
5203
|
-
return m(
|
|
5204
|
-
}, ae.isPortal = function(
|
|
5205
|
-
return m(
|
|
5206
|
-
}, ae.isProfiler = function(
|
|
5207
|
-
return m(
|
|
5208
|
-
}, ae.isStrictMode = function(
|
|
5209
|
-
return m(
|
|
5210
|
-
}, ae.isSuspense = function(
|
|
5211
|
-
return m(
|
|
5212
|
-
}, ae.isValidElementType = function(
|
|
5213
|
-
return typeof
|
|
5185
|
+
function g(f) {
|
|
5186
|
+
return m(f) === d;
|
|
5187
|
+
}
|
|
5188
|
+
return ae.AsyncMode = l, ae.ConcurrentMode = d, ae.ContextConsumer = a, ae.ContextProvider = s, ae.Element = t, ae.ForwardRef = u, ae.Fragment = i, ae.Lazy = T, ae.Memo = N, ae.Portal = n, ae.Profiler = r, ae.StrictMode = o, ae.Suspense = p, ae.isAsyncMode = function(f) {
|
|
5189
|
+
return g(f) || m(f) === l;
|
|
5190
|
+
}, ae.isConcurrentMode = g, ae.isContextConsumer = function(f) {
|
|
5191
|
+
return m(f) === a;
|
|
5192
|
+
}, ae.isContextProvider = function(f) {
|
|
5193
|
+
return m(f) === s;
|
|
5194
|
+
}, ae.isElement = function(f) {
|
|
5195
|
+
return typeof f == "object" && f !== null && f.$$typeof === t;
|
|
5196
|
+
}, ae.isForwardRef = function(f) {
|
|
5197
|
+
return m(f) === u;
|
|
5198
|
+
}, ae.isFragment = function(f) {
|
|
5199
|
+
return m(f) === i;
|
|
5200
|
+
}, ae.isLazy = function(f) {
|
|
5201
|
+
return m(f) === T;
|
|
5202
|
+
}, ae.isMemo = function(f) {
|
|
5203
|
+
return m(f) === N;
|
|
5204
|
+
}, ae.isPortal = function(f) {
|
|
5205
|
+
return m(f) === n;
|
|
5206
|
+
}, ae.isProfiler = function(f) {
|
|
5207
|
+
return m(f) === r;
|
|
5208
|
+
}, ae.isStrictMode = function(f) {
|
|
5209
|
+
return m(f) === o;
|
|
5210
|
+
}, ae.isSuspense = function(f) {
|
|
5211
|
+
return m(f) === p;
|
|
5212
|
+
}, ae.isValidElementType = function(f) {
|
|
5213
|
+
return typeof f == "string" || typeof f == "function" || f === i || f === d || f === r || f === o || f === p || f === I || typeof f == "object" && f !== null && (f.$$typeof === T || f.$$typeof === N || f.$$typeof === s || f.$$typeof === a || f.$$typeof === u || f.$$typeof === y || f.$$typeof === A || f.$$typeof === h || f.$$typeof === R);
|
|
5214
5214
|
}, ae.typeOf = m, ae;
|
|
5215
5215
|
}
|
|
5216
5216
|
var se = {};
|
|
@@ -5225,10 +5225,10 @@ var se = {};
|
|
|
5225
5225
|
var qt;
|
|
5226
5226
|
function us() {
|
|
5227
5227
|
return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5228
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112,
|
|
5228
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, I = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, h = e ? Symbol.for("react.scope") : 60119;
|
|
5229
5229
|
function m(S) {
|
|
5230
5230
|
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
5231
|
-
S === i || S === d || S === r || S === o || S ===
|
|
5231
|
+
S === i || S === d || S === r || S === o || S === p || S === I || typeof S == "object" && S !== null && (S.$$typeof === T || S.$$typeof === N || S.$$typeof === s || S.$$typeof === a || S.$$typeof === u || S.$$typeof === y || S.$$typeof === A || S.$$typeof === h || S.$$typeof === R);
|
|
5232
5232
|
}
|
|
5233
5233
|
function g(S) {
|
|
5234
5234
|
if (typeof S == "object" && S !== null) {
|
|
@@ -5242,7 +5242,7 @@ function us() {
|
|
|
5242
5242
|
case i:
|
|
5243
5243
|
case r:
|
|
5244
5244
|
case o:
|
|
5245
|
-
case
|
|
5245
|
+
case p:
|
|
5246
5246
|
return L;
|
|
5247
5247
|
default:
|
|
5248
5248
|
var _e = L && L.$$typeof;
|
|
@@ -5262,7 +5262,7 @@ function us() {
|
|
|
5262
5262
|
}
|
|
5263
5263
|
}
|
|
5264
5264
|
}
|
|
5265
|
-
var
|
|
5265
|
+
var f = l, w = d, D = a, P = s, q = t, U = u, G = i, X = T, ne = N, Z = n, ie = r, oe = o, W = p, pe = !1;
|
|
5266
5266
|
function ge(S) {
|
|
5267
5267
|
return pe || (pe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(S) || g(S) === l;
|
|
5268
5268
|
}
|
|
@@ -5284,7 +5284,7 @@ function us() {
|
|
|
5284
5284
|
function _(S) {
|
|
5285
5285
|
return g(S) === i;
|
|
5286
5286
|
}
|
|
5287
|
-
function
|
|
5287
|
+
function E(S) {
|
|
5288
5288
|
return g(S) === T;
|
|
5289
5289
|
}
|
|
5290
5290
|
function C(S) {
|
|
@@ -5300,9 +5300,9 @@ function us() {
|
|
|
5300
5300
|
return g(S) === o;
|
|
5301
5301
|
}
|
|
5302
5302
|
function Q(S) {
|
|
5303
|
-
return g(S) ===
|
|
5303
|
+
return g(S) === p;
|
|
5304
5304
|
}
|
|
5305
|
-
se.AsyncMode =
|
|
5305
|
+
se.AsyncMode = f, se.ConcurrentMode = w, se.ContextConsumer = D, se.ContextProvider = P, se.Element = q, se.ForwardRef = U, se.Fragment = G, se.Lazy = X, se.Memo = ne, se.Portal = Z, se.Profiler = ie, se.StrictMode = oe, se.Suspense = W, se.isAsyncMode = ge, se.isConcurrentMode = x, se.isContextConsumer = k, se.isContextProvider = K, se.isElement = b, se.isForwardRef = v, se.isFragment = _, se.isLazy = E, se.isMemo = C, se.isPortal = z, se.isProfiler = H, se.isStrictMode = B, se.isSuspense = Q, se.isValidElementType = m, se.typeOf = g;
|
|
5306
5306
|
}()), se;
|
|
5307
5307
|
}
|
|
5308
5308
|
var Wt;
|
|
@@ -5350,12 +5350,12 @@ function ds() {
|
|
|
5350
5350
|
return V0 = o() ? Object.assign : function(r, s) {
|
|
5351
5351
|
for (var a, l = i(r), d, u = 1; u < arguments.length; u++) {
|
|
5352
5352
|
a = Object(arguments[u]);
|
|
5353
|
-
for (var
|
|
5354
|
-
t.call(a,
|
|
5353
|
+
for (var p in a)
|
|
5354
|
+
t.call(a, p) && (l[p] = a[p]);
|
|
5355
5355
|
if (e) {
|
|
5356
5356
|
d = e(a);
|
|
5357
|
-
for (var
|
|
5358
|
-
n.call(a, d[
|
|
5357
|
+
for (var I = 0; I < d.length; I++)
|
|
5358
|
+
n.call(a, d[I]) && (l[d[I]] = a[d[I]]);
|
|
5359
5359
|
}
|
|
5360
5360
|
}
|
|
5361
5361
|
return l;
|
|
@@ -5395,25 +5395,25 @@ function fs() {
|
|
|
5395
5395
|
if (process.env.NODE_ENV !== "production") {
|
|
5396
5396
|
for (var u in r)
|
|
5397
5397
|
if (i(r, u)) {
|
|
5398
|
-
var
|
|
5398
|
+
var p;
|
|
5399
5399
|
try {
|
|
5400
5400
|
if (typeof r[u] != "function") {
|
|
5401
|
-
var
|
|
5401
|
+
var I = Error(
|
|
5402
5402
|
(l || "React class") + ": " + a + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
5403
5403
|
);
|
|
5404
|
-
throw
|
|
5404
|
+
throw I.name = "Invariant Violation", I;
|
|
5405
5405
|
}
|
|
5406
|
-
|
|
5406
|
+
p = r[u](s, u, l, a, null, t);
|
|
5407
5407
|
} catch (T) {
|
|
5408
|
-
|
|
5408
|
+
p = T;
|
|
5409
5409
|
}
|
|
5410
|
-
if (
|
|
5411
|
-
(l || "React class") + ": type specification of " + a + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
5412
|
-
),
|
|
5413
|
-
n[
|
|
5410
|
+
if (p && !(p instanceof Error) && e(
|
|
5411
|
+
(l || "React class") + ": type specification of " + a + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
5412
|
+
), p instanceof Error && !(p.message in n)) {
|
|
5413
|
+
n[p.message] = !0;
|
|
5414
5414
|
var N = d ? d() : "";
|
|
5415
5415
|
e(
|
|
5416
|
-
"Failed " + a + " type: " +
|
|
5416
|
+
"Failed " + a + " type: " + p.message + (N ?? "")
|
|
5417
5417
|
);
|
|
5418
5418
|
}
|
|
5419
5419
|
}
|
|
@@ -5443,12 +5443,12 @@ function ps() {
|
|
|
5443
5443
|
}
|
|
5444
5444
|
return j0 = function(a, l) {
|
|
5445
5445
|
var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
5446
|
-
function
|
|
5446
|
+
function p(x) {
|
|
5447
5447
|
var k = x && (d && x[d] || x[u]);
|
|
5448
5448
|
if (typeof k == "function")
|
|
5449
5449
|
return k;
|
|
5450
5450
|
}
|
|
5451
|
-
var
|
|
5451
|
+
var I = "<<anonymous>>", N = {
|
|
5452
5452
|
array: A("array"),
|
|
5453
5453
|
bigint: A("bigint"),
|
|
5454
5454
|
bool: A("boolean"),
|
|
@@ -5460,7 +5460,7 @@ function ps() {
|
|
|
5460
5460
|
any: h(),
|
|
5461
5461
|
arrayOf: m,
|
|
5462
5462
|
element: g(),
|
|
5463
|
-
elementType:
|
|
5463
|
+
elementType: f(),
|
|
5464
5464
|
instanceOf: w,
|
|
5465
5465
|
node: U(),
|
|
5466
5466
|
objectOf: P,
|
|
@@ -5479,8 +5479,8 @@ function ps() {
|
|
|
5479
5479
|
function y(x) {
|
|
5480
5480
|
if (process.env.NODE_ENV !== "production")
|
|
5481
5481
|
var k = {}, K = 0;
|
|
5482
|
-
function b(_,
|
|
5483
|
-
if (z = z ||
|
|
5482
|
+
function b(_, E, C, z, H, B, Q) {
|
|
5483
|
+
if (z = z || I, B = B || C, Q !== n) {
|
|
5484
5484
|
if (l) {
|
|
5485
5485
|
var S = new Error(
|
|
5486
5486
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -5494,18 +5494,18 @@ function ps() {
|
|
|
5494
5494
|
), k[de] = !0, K++);
|
|
5495
5495
|
}
|
|
5496
5496
|
}
|
|
5497
|
-
return
|
|
5497
|
+
return E[C] == null ? _ ? E[C] === null ? new R("The " + H + " `" + B + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new R("The " + H + " `" + B + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : x(E, C, z, H, B);
|
|
5498
5498
|
}
|
|
5499
5499
|
var v = b.bind(null, !1);
|
|
5500
5500
|
return v.isRequired = b.bind(null, !0), v;
|
|
5501
5501
|
}
|
|
5502
5502
|
function A(x) {
|
|
5503
|
-
function k(K, b, v, _,
|
|
5503
|
+
function k(K, b, v, _, E, C) {
|
|
5504
5504
|
var z = K[b], H = oe(z);
|
|
5505
5505
|
if (H !== x) {
|
|
5506
5506
|
var B = W(z);
|
|
5507
5507
|
return new R(
|
|
5508
|
-
"Invalid " + _ + " `" +
|
|
5508
|
+
"Invalid " + _ + " `" + E + "` of type " + ("`" + B + "` supplied to `" + v + "`, expected ") + ("`" + x + "`."),
|
|
5509
5509
|
{ expectedType: x }
|
|
5510
5510
|
);
|
|
5511
5511
|
}
|
|
@@ -5517,16 +5517,16 @@ function ps() {
|
|
|
5517
5517
|
return y(s);
|
|
5518
5518
|
}
|
|
5519
5519
|
function m(x) {
|
|
5520
|
-
function k(K, b, v, _,
|
|
5520
|
+
function k(K, b, v, _, E) {
|
|
5521
5521
|
if (typeof x != "function")
|
|
5522
|
-
return new R("Property `" +
|
|
5522
|
+
return new R("Property `" + E + "` of component `" + v + "` has invalid PropType notation inside arrayOf.");
|
|
5523
5523
|
var C = K[b];
|
|
5524
5524
|
if (!Array.isArray(C)) {
|
|
5525
5525
|
var z = oe(C);
|
|
5526
|
-
return new R("Invalid " + _ + " `" +
|
|
5526
|
+
return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + z + "` supplied to `" + v + "`, expected an array."));
|
|
5527
5527
|
}
|
|
5528
5528
|
for (var H = 0; H < C.length; H++) {
|
|
5529
|
-
var B = x(C, H, v, _,
|
|
5529
|
+
var B = x(C, H, v, _, E + "[" + H + "]", n);
|
|
5530
5530
|
if (B instanceof Error)
|
|
5531
5531
|
return B;
|
|
5532
5532
|
}
|
|
@@ -5536,20 +5536,20 @@ function ps() {
|
|
|
5536
5536
|
}
|
|
5537
5537
|
function g() {
|
|
5538
5538
|
function x(k, K, b, v, _) {
|
|
5539
|
-
var
|
|
5540
|
-
if (!a(
|
|
5541
|
-
var C = oe(
|
|
5539
|
+
var E = k[K];
|
|
5540
|
+
if (!a(E)) {
|
|
5541
|
+
var C = oe(E);
|
|
5542
5542
|
return new R("Invalid " + v + " `" + _ + "` of type " + ("`" + C + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
5543
5543
|
}
|
|
5544
5544
|
return null;
|
|
5545
5545
|
}
|
|
5546
5546
|
return y(x);
|
|
5547
5547
|
}
|
|
5548
|
-
function
|
|
5548
|
+
function f() {
|
|
5549
5549
|
function x(k, K, b, v, _) {
|
|
5550
|
-
var
|
|
5551
|
-
if (!e.isValidElementType(
|
|
5552
|
-
var C = oe(
|
|
5550
|
+
var E = k[K];
|
|
5551
|
+
if (!e.isValidElementType(E)) {
|
|
5552
|
+
var C = oe(E);
|
|
5553
5553
|
return new R("Invalid " + v + " `" + _ + "` of type " + ("`" + C + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
5554
5554
|
}
|
|
5555
5555
|
return null;
|
|
@@ -5557,10 +5557,10 @@ function ps() {
|
|
|
5557
5557
|
return y(x);
|
|
5558
5558
|
}
|
|
5559
5559
|
function w(x) {
|
|
5560
|
-
function k(K, b, v, _,
|
|
5560
|
+
function k(K, b, v, _, E) {
|
|
5561
5561
|
if (!(K[b] instanceof x)) {
|
|
5562
|
-
var C = x.name ||
|
|
5563
|
-
return new R("Invalid " + _ + " `" +
|
|
5562
|
+
var C = x.name || I, z = ge(K[b]);
|
|
5563
|
+
return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + z + "` supplied to `" + v + "`, expected ") + ("instance of `" + C + "`."));
|
|
5564
5564
|
}
|
|
5565
5565
|
return null;
|
|
5566
5566
|
}
|
|
@@ -5571,7 +5571,7 @@ function ps() {
|
|
|
5571
5571
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
5572
5572
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
5573
5573
|
) : r("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
5574
|
-
function k(K, b, v, _,
|
|
5574
|
+
function k(K, b, v, _, E) {
|
|
5575
5575
|
for (var C = K[b], z = 0; z < x.length; z++)
|
|
5576
5576
|
if (T(C, x[z]))
|
|
5577
5577
|
return null;
|
|
@@ -5579,20 +5579,20 @@ function ps() {
|
|
|
5579
5579
|
var de = W(S);
|
|
5580
5580
|
return de === "symbol" ? String(S) : S;
|
|
5581
5581
|
});
|
|
5582
|
-
return new R("Invalid " + _ + " `" +
|
|
5582
|
+
return new R("Invalid " + _ + " `" + E + "` of value `" + String(C) + "` " + ("supplied to `" + v + "`, expected one of " + H + "."));
|
|
5583
5583
|
}
|
|
5584
5584
|
return y(k);
|
|
5585
5585
|
}
|
|
5586
5586
|
function P(x) {
|
|
5587
|
-
function k(K, b, v, _,
|
|
5587
|
+
function k(K, b, v, _, E) {
|
|
5588
5588
|
if (typeof x != "function")
|
|
5589
|
-
return new R("Property `" +
|
|
5589
|
+
return new R("Property `" + E + "` of component `" + v + "` has invalid PropType notation inside objectOf.");
|
|
5590
5590
|
var C = K[b], z = oe(C);
|
|
5591
5591
|
if (z !== "object")
|
|
5592
|
-
return new R("Invalid " + _ + " `" +
|
|
5592
|
+
return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + z + "` supplied to `" + v + "`, expected an object."));
|
|
5593
5593
|
for (var H in C)
|
|
5594
5594
|
if (i(C, H)) {
|
|
5595
|
-
var B = x(C, H, v, _,
|
|
5595
|
+
var B = x(C, H, v, _, E + "." + H, n);
|
|
5596
5596
|
if (B instanceof Error)
|
|
5597
5597
|
return B;
|
|
5598
5598
|
}
|
|
@@ -5610,15 +5610,15 @@ function ps() {
|
|
|
5610
5610
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(K) + " at index " + k + "."
|
|
5611
5611
|
), s;
|
|
5612
5612
|
}
|
|
5613
|
-
function b(v, _,
|
|
5613
|
+
function b(v, _, E, C, z) {
|
|
5614
5614
|
for (var H = [], B = 0; B < x.length; B++) {
|
|
5615
|
-
var Q = x[B], S = Q(v, _,
|
|
5615
|
+
var Q = x[B], S = Q(v, _, E, C, z, n);
|
|
5616
5616
|
if (S == null)
|
|
5617
5617
|
return null;
|
|
5618
5618
|
S.data && i(S.data, "expectedType") && H.push(S.data.expectedType);
|
|
5619
5619
|
}
|
|
5620
5620
|
var de = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
|
|
5621
|
-
return new R("Invalid " + C + " `" + z + "` supplied to " + ("`" +
|
|
5621
|
+
return new R("Invalid " + C + " `" + z + "` supplied to " + ("`" + E + "`" + de + "."));
|
|
5622
5622
|
}
|
|
5623
5623
|
return y(b);
|
|
5624
5624
|
}
|
|
@@ -5634,15 +5634,15 @@ function ps() {
|
|
|
5634
5634
|
);
|
|
5635
5635
|
}
|
|
5636
5636
|
function X(x) {
|
|
5637
|
-
function k(K, b, v, _,
|
|
5637
|
+
function k(K, b, v, _, E) {
|
|
5638
5638
|
var C = K[b], z = oe(C);
|
|
5639
5639
|
if (z !== "object")
|
|
5640
|
-
return new R("Invalid " + _ + " `" +
|
|
5640
|
+
return new R("Invalid " + _ + " `" + E + "` of type `" + z + "` " + ("supplied to `" + v + "`, expected `object`."));
|
|
5641
5641
|
for (var H in x) {
|
|
5642
5642
|
var B = x[H];
|
|
5643
5643
|
if (typeof B != "function")
|
|
5644
|
-
return G(v, _,
|
|
5645
|
-
var Q = B(C, H, v, _,
|
|
5644
|
+
return G(v, _, E, H, W(B));
|
|
5645
|
+
var Q = B(C, H, v, _, E + "." + H, n);
|
|
5646
5646
|
if (Q)
|
|
5647
5647
|
return Q;
|
|
5648
5648
|
}
|
|
@@ -5651,21 +5651,21 @@ function ps() {
|
|
|
5651
5651
|
return y(k);
|
|
5652
5652
|
}
|
|
5653
5653
|
function ne(x) {
|
|
5654
|
-
function k(K, b, v, _,
|
|
5654
|
+
function k(K, b, v, _, E) {
|
|
5655
5655
|
var C = K[b], z = oe(C);
|
|
5656
5656
|
if (z !== "object")
|
|
5657
|
-
return new R("Invalid " + _ + " `" +
|
|
5657
|
+
return new R("Invalid " + _ + " `" + E + "` of type `" + z + "` " + ("supplied to `" + v + "`, expected `object`."));
|
|
5658
5658
|
var H = t({}, K[b], x);
|
|
5659
5659
|
for (var B in H) {
|
|
5660
5660
|
var Q = x[B];
|
|
5661
5661
|
if (i(x, B) && typeof Q != "function")
|
|
5662
|
-
return G(v, _,
|
|
5662
|
+
return G(v, _, E, B, W(Q));
|
|
5663
5663
|
if (!Q)
|
|
5664
5664
|
return new R(
|
|
5665
|
-
"Invalid " + _ + " `" +
|
|
5665
|
+
"Invalid " + _ + " `" + E + "` key `" + B + "` supplied to `" + v + "`.\nBad object: " + JSON.stringify(K[b], null, " ") + `
|
|
5666
5666
|
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
5667
5667
|
);
|
|
5668
|
-
var S = Q(C, B, v, _,
|
|
5668
|
+
var S = Q(C, B, v, _, E + "." + B, n);
|
|
5669
5669
|
if (S)
|
|
5670
5670
|
return S;
|
|
5671
5671
|
}
|
|
@@ -5686,7 +5686,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
5686
5686
|
return x.every(Z);
|
|
5687
5687
|
if (x === null || a(x))
|
|
5688
5688
|
return !0;
|
|
5689
|
-
var k =
|
|
5689
|
+
var k = p(x);
|
|
5690
5690
|
if (k) {
|
|
5691
5691
|
var K = k.call(x), b;
|
|
5692
5692
|
if (k !== x.entries) {
|
|
@@ -5706,12 +5706,12 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
5706
5706
|
return !1;
|
|
5707
5707
|
}
|
|
5708
5708
|
}
|
|
5709
|
-
function
|
|
5709
|
+
function ie(x, k) {
|
|
5710
5710
|
return x === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
|
|
5711
5711
|
}
|
|
5712
5712
|
function oe(x) {
|
|
5713
5713
|
var k = typeof x;
|
|
5714
|
-
return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" :
|
|
5714
|
+
return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : ie(k, x) ? "symbol" : k;
|
|
5715
5715
|
}
|
|
5716
5716
|
function W(x) {
|
|
5717
5717
|
if (typeof x > "u" || x === null)
|
|
@@ -5740,7 +5740,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
5740
5740
|
}
|
|
5741
5741
|
}
|
|
5742
5742
|
function ge(x) {
|
|
5743
|
-
return !x.constructor || !x.constructor.name ?
|
|
5743
|
+
return !x.constructor || !x.constructor.name ? I : x.constructor.name;
|
|
5744
5744
|
}
|
|
5745
5745
|
return N.checkPropTypes = o, N.resetWarningCache = o.resetWarningCache, N.PropTypes = N, N;
|
|
5746
5746
|
}, j0;
|
|
@@ -5756,12 +5756,12 @@ function gs() {
|
|
|
5756
5756
|
function n() {
|
|
5757
5757
|
}
|
|
5758
5758
|
return n.resetWarningCache = t, K0 = function() {
|
|
5759
|
-
function i(s, a, l, d, u,
|
|
5760
|
-
if (
|
|
5761
|
-
var
|
|
5759
|
+
function i(s, a, l, d, u, p) {
|
|
5760
|
+
if (p !== e) {
|
|
5761
|
+
var I = new Error(
|
|
5762
5762
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
5763
5763
|
);
|
|
5764
|
-
throw
|
|
5764
|
+
throw I.name = "Invariant Violation", I;
|
|
5765
5765
|
}
|
|
5766
5766
|
}
|
|
5767
5767
|
i.isRequired = i;
|
|
@@ -5816,7 +5816,7 @@ function bs() {
|
|
|
5816
5816
|
if (en)
|
|
5817
5817
|
return ce;
|
|
5818
5818
|
en = 1;
|
|
5819
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"),
|
|
5819
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), T;
|
|
5820
5820
|
T = Symbol.for("react.module.reference");
|
|
5821
5821
|
function R(y) {
|
|
5822
5822
|
if (typeof y == "object" && y !== null) {
|
|
@@ -5835,8 +5835,8 @@ function bs() {
|
|
|
5835
5835
|
case a:
|
|
5836
5836
|
case s:
|
|
5837
5837
|
case l:
|
|
5838
|
-
case
|
|
5839
|
-
case
|
|
5838
|
+
case I:
|
|
5839
|
+
case p:
|
|
5840
5840
|
case r:
|
|
5841
5841
|
return y;
|
|
5842
5842
|
default:
|
|
@@ -5848,7 +5848,7 @@ function bs() {
|
|
|
5848
5848
|
}
|
|
5849
5849
|
}
|
|
5850
5850
|
}
|
|
5851
|
-
return ce.ContextConsumer = s, ce.ContextProvider = r, ce.Element = e, ce.ForwardRef = l, ce.Fragment = n, ce.Lazy =
|
|
5851
|
+
return ce.ContextConsumer = s, ce.ContextProvider = r, ce.Element = e, ce.ForwardRef = l, ce.Fragment = n, ce.Lazy = I, ce.Memo = p, ce.Portal = t, ce.Profiler = o, ce.StrictMode = i, ce.Suspense = d, ce.SuspenseList = u, ce.isAsyncMode = function() {
|
|
5852
5852
|
return !1;
|
|
5853
5853
|
}, ce.isConcurrentMode = function() {
|
|
5854
5854
|
return !1;
|
|
@@ -5863,9 +5863,9 @@ function bs() {
|
|
|
5863
5863
|
}, ce.isFragment = function(y) {
|
|
5864
5864
|
return R(y) === n;
|
|
5865
5865
|
}, ce.isLazy = function(y) {
|
|
5866
|
-
return R(y) ===
|
|
5866
|
+
return R(y) === I;
|
|
5867
5867
|
}, ce.isMemo = function(y) {
|
|
5868
|
-
return R(y) ===
|
|
5868
|
+
return R(y) === p;
|
|
5869
5869
|
}, ce.isPortal = function(y) {
|
|
5870
5870
|
return R(y) === t;
|
|
5871
5871
|
}, ce.isProfiler = function(y) {
|
|
@@ -5877,7 +5877,7 @@ function bs() {
|
|
|
5877
5877
|
}, ce.isSuspenseList = function(y) {
|
|
5878
5878
|
return R(y) === u;
|
|
5879
5879
|
}, ce.isValidElementType = function(y) {
|
|
5880
|
-
return typeof y == "string" || typeof y == "function" || y === n || y === o || y === i || y === d || y === u || y === N || typeof y == "object" && y !== null && (y.$$typeof ===
|
|
5880
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === o || y === i || y === d || y === u || y === N || typeof y == "object" && y !== null && (y.$$typeof === I || y.$$typeof === p || y.$$typeof === r || y.$$typeof === s || y.$$typeof === l || y.$$typeof === T || y.getModuleId !== void 0);
|
|
5881
5881
|
}, ce.typeOf = R, ce;
|
|
5882
5882
|
}
|
|
5883
5883
|
var le = {};
|
|
@@ -5893,16 +5893,16 @@ var le = {};
|
|
|
5893
5893
|
var tn;
|
|
5894
5894
|
function ys() {
|
|
5895
5895
|
return tn || (tn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5896
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"),
|
|
5896
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), T = !1, R = !1, y = !1, A = !1, h = !1, m;
|
|
5897
5897
|
m = Symbol.for("react.module.reference");
|
|
5898
5898
|
function g(L) {
|
|
5899
|
-
return !!(typeof L == "string" || typeof L == "function" || L === n || L === o || h || L === i || L === d || L === u || A || L === N || T || R || y || typeof L == "object" && L !== null && (L.$$typeof ===
|
|
5899
|
+
return !!(typeof L == "string" || typeof L == "function" || L === n || L === o || h || L === i || L === d || L === u || A || L === N || T || R || y || typeof L == "object" && L !== null && (L.$$typeof === I || L.$$typeof === p || L.$$typeof === r || L.$$typeof === s || L.$$typeof === l || // This needs to include all possible module reference object
|
|
5900
5900
|
// types supported by any Flight configuration anywhere since
|
|
5901
5901
|
// we don't know which Flight build this will end up being used
|
|
5902
5902
|
// with.
|
|
5903
5903
|
L.$$typeof === m || L.getModuleId !== void 0));
|
|
5904
5904
|
}
|
|
5905
|
-
function
|
|
5905
|
+
function f(L) {
|
|
5906
5906
|
if (typeof L == "object" && L !== null) {
|
|
5907
5907
|
var _e = L.$$typeof;
|
|
5908
5908
|
switch (_e) {
|
|
@@ -5921,8 +5921,8 @@ function ys() {
|
|
|
5921
5921
|
case a:
|
|
5922
5922
|
case s:
|
|
5923
5923
|
case l:
|
|
5924
|
-
case
|
|
5925
|
-
case
|
|
5924
|
+
case I:
|
|
5925
|
+
case p:
|
|
5926
5926
|
case r:
|
|
5927
5927
|
return Le;
|
|
5928
5928
|
default:
|
|
@@ -5934,7 +5934,7 @@ function ys() {
|
|
|
5934
5934
|
}
|
|
5935
5935
|
}
|
|
5936
5936
|
}
|
|
5937
|
-
var w = s, D = r, P = e, q = l, U = n, G =
|
|
5937
|
+
var w = s, D = r, P = e, q = l, U = n, G = I, X = p, ne = t, Z = o, ie = i, oe = d, W = u, pe = !1, ge = !1;
|
|
5938
5938
|
function x(L) {
|
|
5939
5939
|
return pe || (pe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
5940
5940
|
}
|
|
@@ -5942,42 +5942,42 @@ function ys() {
|
|
|
5942
5942
|
return ge || (ge = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
5943
5943
|
}
|
|
5944
5944
|
function K(L) {
|
|
5945
|
-
return
|
|
5945
|
+
return f(L) === s;
|
|
5946
5946
|
}
|
|
5947
5947
|
function b(L) {
|
|
5948
|
-
return
|
|
5948
|
+
return f(L) === r;
|
|
5949
5949
|
}
|
|
5950
5950
|
function v(L) {
|
|
5951
5951
|
return typeof L == "object" && L !== null && L.$$typeof === e;
|
|
5952
5952
|
}
|
|
5953
5953
|
function _(L) {
|
|
5954
|
-
return
|
|
5954
|
+
return f(L) === l;
|
|
5955
5955
|
}
|
|
5956
|
-
function
|
|
5957
|
-
return
|
|
5956
|
+
function E(L) {
|
|
5957
|
+
return f(L) === n;
|
|
5958
5958
|
}
|
|
5959
5959
|
function C(L) {
|
|
5960
|
-
return
|
|
5960
|
+
return f(L) === I;
|
|
5961
5961
|
}
|
|
5962
5962
|
function z(L) {
|
|
5963
|
-
return
|
|
5963
|
+
return f(L) === p;
|
|
5964
5964
|
}
|
|
5965
5965
|
function H(L) {
|
|
5966
|
-
return
|
|
5966
|
+
return f(L) === t;
|
|
5967
5967
|
}
|
|
5968
5968
|
function B(L) {
|
|
5969
|
-
return
|
|
5969
|
+
return f(L) === o;
|
|
5970
5970
|
}
|
|
5971
5971
|
function Q(L) {
|
|
5972
|
-
return
|
|
5972
|
+
return f(L) === i;
|
|
5973
5973
|
}
|
|
5974
5974
|
function S(L) {
|
|
5975
|
-
return
|
|
5975
|
+
return f(L) === d;
|
|
5976
5976
|
}
|
|
5977
5977
|
function de(L) {
|
|
5978
|
-
return
|
|
5978
|
+
return f(L) === u;
|
|
5979
5979
|
}
|
|
5980
|
-
le.ContextConsumer = w, le.ContextProvider = D, le.Element = P, le.ForwardRef = q, le.Fragment = U, le.Lazy = G, le.Memo = X, le.Portal = ne, le.Profiler = Z, le.StrictMode =
|
|
5980
|
+
le.ContextConsumer = w, le.ContextProvider = D, le.Element = P, le.ForwardRef = q, le.Fragment = U, le.Lazy = G, le.Memo = X, le.Portal = ne, le.Profiler = Z, le.StrictMode = ie, le.Suspense = oe, le.SuspenseList = W, le.isAsyncMode = x, le.isConcurrentMode = k, le.isContextConsumer = K, le.isContextProvider = b, le.isElement = v, le.isForwardRef = _, le.isFragment = E, le.isLazy = C, le.isMemo = z, le.isPortal = H, le.isProfiler = B, le.isStrictMode = Q, le.isSuspense = S, le.isSuspenseList = de, le.isValidElementType = g, le.typeOf = f;
|
|
5981
5981
|
}()), le;
|
|
5982
5982
|
}
|
|
5983
5983
|
process.env.NODE_ENV === "production" ? J0.exports = bs() : J0.exports = ys();
|
|
@@ -6006,41 +6006,41 @@ const rn = (e) => typeof e == "object" && e != null && e.nodeType === 1, on = (e
|
|
|
6006
6006
|
var n, i, o, r;
|
|
6007
6007
|
if (typeof document > "u")
|
|
6008
6008
|
return [];
|
|
6009
|
-
const { scrollMode: s, block: a, inline: l, boundary: d, skipOverflowHiddenElements: u } = t,
|
|
6009
|
+
const { scrollMode: s, block: a, inline: l, boundary: d, skipOverflowHiddenElements: u } = t, p = typeof d == "function" ? d : (oe) => oe !== d;
|
|
6010
6010
|
if (!rn(e))
|
|
6011
6011
|
throw new TypeError("Invalid target");
|
|
6012
|
-
const
|
|
6012
|
+
const I = document.scrollingElement || document.documentElement, N = [];
|
|
6013
6013
|
let T = e;
|
|
6014
|
-
for (; rn(T) &&
|
|
6015
|
-
if (T = _s(T), T ===
|
|
6014
|
+
for (; rn(T) && p(T); ) {
|
|
6015
|
+
if (T = _s(T), T === I) {
|
|
6016
6016
|
N.push(T);
|
|
6017
6017
|
break;
|
|
6018
6018
|
}
|
|
6019
6019
|
T != null && T === document.body && F0(T) && !F0(document.documentElement) || T != null && F0(T, u) && N.push(T);
|
|
6020
6020
|
}
|
|
6021
|
-
const R = (i = (n = window.visualViewport) == null ? void 0 : n.width) != null ? i : innerWidth, y = (r = (o = window.visualViewport) == null ? void 0 : o.height) != null ? r : innerHeight, { scrollX: A, scrollY: h } = window, { height: m, width: g, top:
|
|
6021
|
+
const R = (i = (n = window.visualViewport) == null ? void 0 : n.width) != null ? i : innerWidth, y = (r = (o = window.visualViewport) == null ? void 0 : o.height) != null ? r : innerHeight, { scrollX: A, scrollY: h } = window, { height: m, width: g, top: f, right: w, bottom: D, left: P } = e.getBoundingClientRect(), { top: q, right: U, bottom: G, left: X } = ((oe) => {
|
|
6022
6022
|
const W = window.getComputedStyle(oe);
|
|
6023
6023
|
return { top: parseFloat(W.scrollMarginTop) || 0, right: parseFloat(W.scrollMarginRight) || 0, bottom: parseFloat(W.scrollMarginBottom) || 0, left: parseFloat(W.scrollMarginLeft) || 0 };
|
|
6024
6024
|
})(e);
|
|
6025
|
-
let ne = a === "start" || a === "nearest" ?
|
|
6026
|
-
const
|
|
6025
|
+
let ne = a === "start" || a === "nearest" ? f - q : a === "end" ? D + G : f + m / 2 - q + G, Z = l === "center" ? P + g / 2 - X + U : l === "end" ? w + U : P - X;
|
|
6026
|
+
const ie = [];
|
|
6027
6027
|
for (let oe = 0; oe < N.length; oe++) {
|
|
6028
6028
|
const W = N[oe], { height: pe, width: ge, top: x, right: k, bottom: K, left: b } = W.getBoundingClientRect();
|
|
6029
|
-
if (s === "if-needed" &&
|
|
6030
|
-
return
|
|
6031
|
-
const v = getComputedStyle(W), _ = parseInt(v.borderLeftWidth, 10),
|
|
6029
|
+
if (s === "if-needed" && f >= 0 && P >= 0 && D <= y && w <= R && f >= x && D <= K && P >= b && w <= k)
|
|
6030
|
+
return ie;
|
|
6031
|
+
const v = getComputedStyle(W), _ = parseInt(v.borderLeftWidth, 10), E = parseInt(v.borderTopWidth, 10), C = parseInt(v.borderRightWidth, 10), z = parseInt(v.borderBottomWidth, 10);
|
|
6032
6032
|
let H = 0, B = 0;
|
|
6033
|
-
const Q = "offsetWidth" in W ? W.offsetWidth - W.clientWidth - _ - C : 0, S = "offsetHeight" in W ? W.offsetHeight - W.clientHeight -
|
|
6034
|
-
if (
|
|
6035
|
-
H = a === "start" ? ne : a === "end" ? ne - y : a === "nearest" ? E0(h, h + y, y,
|
|
6033
|
+
const Q = "offsetWidth" in W ? W.offsetWidth - W.clientWidth - _ - C : 0, S = "offsetHeight" in W ? W.offsetHeight - W.clientHeight - E - z : 0, de = "offsetWidth" in W ? W.offsetWidth === 0 ? 0 : ge / W.offsetWidth : 0, L = "offsetHeight" in W ? W.offsetHeight === 0 ? 0 : pe / W.offsetHeight : 0;
|
|
6034
|
+
if (I === W)
|
|
6035
|
+
H = a === "start" ? ne : a === "end" ? ne - y : a === "nearest" ? E0(h, h + y, y, E, z, h + ne, h + ne + m, m) : ne - y / 2, B = l === "start" ? Z : l === "center" ? Z - R / 2 : l === "end" ? Z - R : E0(A, A + R, R, _, C, A + Z, A + Z + g, g), H = Math.max(0, H + h), B = Math.max(0, B + A);
|
|
6036
6036
|
else {
|
|
6037
|
-
H = a === "start" ? ne - x -
|
|
6037
|
+
H = a === "start" ? ne - x - E : a === "end" ? ne - K + z + S : a === "nearest" ? E0(x, K, pe, E, z + S, ne, ne + m, m) : ne - (x + pe / 2) + S / 2, B = l === "start" ? Z - b - _ : l === "center" ? Z - (b + ge / 2) + Q / 2 : l === "end" ? Z - k + C + Q : E0(b, k, ge, _, C + Q, Z, Z + g, g);
|
|
6038
6038
|
const { scrollLeft: _e, scrollTop: ve } = W;
|
|
6039
6039
|
H = L === 0 ? 0 : Math.max(0, Math.min(ve + H / L, W.scrollHeight - pe / L + S)), B = de === 0 ? 0 : Math.max(0, Math.min(_e + B / de, W.scrollWidth - ge / de + Q)), ne += ve - H, Z += _e - B;
|
|
6040
6040
|
}
|
|
6041
|
-
|
|
6041
|
+
ie.push({ el: W, top: H, left: B });
|
|
6042
6042
|
}
|
|
6043
|
-
return
|
|
6043
|
+
return ie;
|
|
6044
6044
|
};
|
|
6045
6045
|
var c0 = function() {
|
|
6046
6046
|
return c0 = Object.assign || function(t) {
|
|
@@ -6241,8 +6241,8 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6241
6241
|
return r.id + "-item-" + h;
|
|
6242
6242
|
}, r.items = [], r.itemCount = null, r.previousResultCount = 0, r.timeoutIds = [], r.internalSetTimeout = function(h, m) {
|
|
6243
6243
|
var g = setTimeout(function() {
|
|
6244
|
-
r.timeoutIds = r.timeoutIds.filter(function(
|
|
6245
|
-
return
|
|
6244
|
+
r.timeoutIds = r.timeoutIds.filter(function(f) {
|
|
6245
|
+
return f !== g;
|
|
6246
6246
|
}), h();
|
|
6247
6247
|
}, m);
|
|
6248
6248
|
r.timeoutIds.push(g);
|
|
@@ -6272,30 +6272,30 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6272
6272
|
inputValue: r.props.itemToString(h)
|
|
6273
6273
|
}, m), g);
|
|
6274
6274
|
}, r.selectItemAtIndex = function(h, m, g) {
|
|
6275
|
-
var
|
|
6276
|
-
|
|
6275
|
+
var f = r.items[h];
|
|
6276
|
+
f != null && r.selectItem(f, m, g);
|
|
6277
6277
|
}, r.selectHighlightedItem = function(h, m) {
|
|
6278
6278
|
return r.selectItemAtIndex(r.getState().highlightedIndex, h, m);
|
|
6279
6279
|
}, r.internalSetState = function(h, m) {
|
|
6280
|
-
var g,
|
|
6280
|
+
var g, f, w = {}, D = typeof h == "function";
|
|
6281
6281
|
return !D && h.hasOwnProperty("inputValue") && r.props.onInputValueChange(h.inputValue, Y({}, r.getStateAndHelpers(), h)), r.setState(function(P) {
|
|
6282
6282
|
var q;
|
|
6283
6283
|
P = r.getState(P);
|
|
6284
6284
|
var U = D ? h(P) : h;
|
|
6285
6285
|
U = r.props.stateReducer(P, U), g = U.hasOwnProperty("selectedItem");
|
|
6286
6286
|
var G = {};
|
|
6287
|
-
return g && U.selectedItem !== P.selectedItem && (
|
|
6287
|
+
return g && U.selectedItem !== P.selectedItem && (f = U.selectedItem), (q = U).type || (q.type = dr), Object.keys(U).forEach(function(X) {
|
|
6288
6288
|
P[X] !== U[X] && (w[X] = U[X]), X !== "type" && (U[X], C0(r.props, X) || (G[X] = U[X]));
|
|
6289
6289
|
}), D && U.hasOwnProperty("inputValue") && r.props.onInputValueChange(U.inputValue, Y({}, r.getStateAndHelpers(), U)), G;
|
|
6290
6290
|
}, function() {
|
|
6291
6291
|
an(m)();
|
|
6292
6292
|
var P = Object.keys(w).length > 1;
|
|
6293
|
-
P && r.props.onStateChange(w, r.getStateAndHelpers()), g && r.props.onSelect(h.selectedItem, r.getStateAndHelpers()),
|
|
6293
|
+
P && r.props.onStateChange(w, r.getStateAndHelpers()), g && r.props.onSelect(h.selectedItem, r.getStateAndHelpers()), f !== void 0 && r.props.onChange(f, r.getStateAndHelpers()), r.props.onUserAction(w, r.getStateAndHelpers());
|
|
6294
6294
|
});
|
|
6295
6295
|
}, r.rootRef = function(h) {
|
|
6296
6296
|
return r._rootNode = h;
|
|
6297
6297
|
}, r.getRootProps = function(h, m) {
|
|
6298
|
-
var g,
|
|
6298
|
+
var g, f = h === void 0 ? {} : h, w = f.refKey, D = w === void 0 ? "ref" : w, P = f.ref, q = He(f, Rs), U = m === void 0 ? {} : m, G = U.suppressRefError, X = G === void 0 ? !1 : G;
|
|
6299
6299
|
r.getRootProps.called = !0, r.getRootProps.refKey = D, r.getRootProps.suppressRefError = X;
|
|
6300
6300
|
var ne = r.getState(), Z = ne.isOpen;
|
|
6301
6301
|
return Y((g = {}, g[D] = a0(P, r.rootRef), g.role = "combobox", g["aria-expanded"] = Z, g["aria-haspopup"] = "listbox", g["aria-owns"] = Z ? r.menuId : void 0, g["aria-labelledby"] = r.labelId, g), q);
|
|
@@ -6303,8 +6303,8 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6303
6303
|
ArrowDown: function(m) {
|
|
6304
6304
|
var g = this;
|
|
6305
6305
|
if (m.preventDefault(), this.getState().isOpen) {
|
|
6306
|
-
var
|
|
6307
|
-
this.moveHighlightedIndex(
|
|
6306
|
+
var f = m.shiftKey ? 5 : 1;
|
|
6307
|
+
this.moveHighlightedIndex(f, {
|
|
6308
6308
|
type: S0
|
|
6309
6309
|
});
|
|
6310
6310
|
} else
|
|
@@ -6326,8 +6326,8 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6326
6326
|
ArrowUp: function(m) {
|
|
6327
6327
|
var g = this;
|
|
6328
6328
|
if (m.preventDefault(), this.getState().isOpen) {
|
|
6329
|
-
var
|
|
6330
|
-
this.moveHighlightedIndex(
|
|
6329
|
+
var f = m.shiftKey ? -5 : -1;
|
|
6330
|
+
this.moveHighlightedIndex(f, {
|
|
6331
6331
|
type: N0
|
|
6332
6332
|
});
|
|
6333
6333
|
} else
|
|
@@ -6348,8 +6348,8 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6348
6348
|
},
|
|
6349
6349
|
Enter: function(m) {
|
|
6350
6350
|
if (m.which !== 229) {
|
|
6351
|
-
var g = this.getState(),
|
|
6352
|
-
if (
|
|
6351
|
+
var g = this.getState(), f = g.isOpen, w = g.highlightedIndex;
|
|
6352
|
+
if (f && w != null) {
|
|
6353
6353
|
m.preventDefault();
|
|
6354
6354
|
var D = this.items[w], P = this.getItemNodeFromIndex(w);
|
|
6355
6355
|
if (D == null || P && P.hasAttribute("disabled"))
|
|
@@ -6376,11 +6376,11 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6376
6376
|
}
|
|
6377
6377
|
}), r.inputKeyDownHandlers = Y({}, r.keyDownHandlers, {
|
|
6378
6378
|
Home: function(m) {
|
|
6379
|
-
var g = this.getState(),
|
|
6380
|
-
if (
|
|
6379
|
+
var g = this.getState(), f = g.isOpen;
|
|
6380
|
+
if (f) {
|
|
6381
6381
|
m.preventDefault();
|
|
6382
6382
|
var w = this.getItemCount();
|
|
6383
|
-
if (!(w <= 0 || !
|
|
6383
|
+
if (!(w <= 0 || !f)) {
|
|
6384
6384
|
var D = l0(0, !1, {
|
|
6385
6385
|
length: w
|
|
6386
6386
|
}, this.isItemDisabled);
|
|
@@ -6391,11 +6391,11 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6391
6391
|
}
|
|
6392
6392
|
},
|
|
6393
6393
|
End: function(m) {
|
|
6394
|
-
var g = this.getState(),
|
|
6395
|
-
if (
|
|
6394
|
+
var g = this.getState(), f = g.isOpen;
|
|
6395
|
+
if (f) {
|
|
6396
6396
|
m.preventDefault();
|
|
6397
6397
|
var w = this.getItemCount();
|
|
6398
|
-
if (!(w <= 0 || !
|
|
6398
|
+
if (!(w <= 0 || !f)) {
|
|
6399
6399
|
var D = l0(w - 1, !0, {
|
|
6400
6400
|
length: w
|
|
6401
6401
|
}, this.isItemDisabled);
|
|
@@ -6408,9 +6408,9 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6408
6408
|
}), r.getToggleButtonProps = function(h) {
|
|
6409
6409
|
var m = h === void 0 ? {} : h, g = m.onClick;
|
|
6410
6410
|
m.onPress;
|
|
6411
|
-
var
|
|
6411
|
+
var f = m.onKeyDown, w = m.onKeyUp, D = m.onBlur, P = He(m, Cs), q = r.getState(), U = q.isOpen, G = {
|
|
6412
6412
|
onClick: he(g, r.buttonHandleClick),
|
|
6413
|
-
onKeyDown: he(
|
|
6413
|
+
onKeyDown: he(f, r.buttonHandleKeyDown),
|
|
6414
6414
|
onKeyUp: he(w, r.buttonHandleKeyUp),
|
|
6415
6415
|
onBlur: he(D, r.buttonHandleBlur)
|
|
6416
6416
|
}, X = P.disabled ? {} : G;
|
|
@@ -6428,8 +6428,8 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6428
6428
|
r.buttonKeyDownHandlers[m] && r.buttonKeyDownHandlers[m].call(Kt(r), h);
|
|
6429
6429
|
}, r.buttonHandleClick = function(h) {
|
|
6430
6430
|
if (h.preventDefault(), r.props.environment) {
|
|
6431
|
-
var m = r.props.environment.document, g = m.body,
|
|
6432
|
-
g && g ===
|
|
6431
|
+
var m = r.props.environment.document, g = m.body, f = m.activeElement;
|
|
6432
|
+
g && g === f && h.target.focus();
|
|
6433
6433
|
}
|
|
6434
6434
|
process.env.NODE_ENV === "test" ? r.toggleMenu({
|
|
6435
6435
|
type: tt
|
|
@@ -6454,14 +6454,14 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6454
6454
|
id: r.labelId
|
|
6455
6455
|
}, h);
|
|
6456
6456
|
}, r.getInputProps = function(h) {
|
|
6457
|
-
var m = h === void 0 ? {} : h, g = m.onKeyDown,
|
|
6457
|
+
var m = h === void 0 ? {} : h, g = m.onKeyDown, f = m.onBlur, w = m.onChange, D = m.onInput;
|
|
6458
6458
|
m.onChangeText;
|
|
6459
6459
|
var P = He(m, Ms), q, U = {};
|
|
6460
6460
|
q = "onChange";
|
|
6461
6461
|
var G = r.getState(), X = G.inputValue, ne = G.isOpen, Z = G.highlightedIndex;
|
|
6462
6462
|
if (!P.disabled) {
|
|
6463
|
-
var
|
|
6464
|
-
U = (
|
|
6463
|
+
var ie;
|
|
6464
|
+
U = (ie = {}, ie[q] = he(w, D, r.inputHandleChange), ie.onKeyDown = he(g, r.inputHandleKeyDown), ie.onBlur = he(f, r.inputHandleBlur), ie);
|
|
6465
6465
|
}
|
|
6466
6466
|
return Y({
|
|
6467
6467
|
"aria-autocomplete": "list",
|
|
@@ -6497,10 +6497,10 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6497
6497
|
}, r.menuRef = function(h) {
|
|
6498
6498
|
r._menuNode = h;
|
|
6499
6499
|
}, r.getMenuProps = function(h, m) {
|
|
6500
|
-
var g,
|
|
6500
|
+
var g, f = h === void 0 ? {} : h, w = f.refKey, D = w === void 0 ? "ref" : w, P = f.ref, q = He(f, Ts), U = m === void 0 ? {} : m, G = U.suppressRefError, X = G === void 0 ? !1 : G;
|
|
6501
6501
|
return r.getMenuProps.called = !0, r.getMenuProps.refKey = D, r.getMenuProps.suppressRefError = X, Y((g = {}, g[D] = a0(P, r.menuRef), g.role = "listbox", g["aria-labelledby"] = q && q["aria-label"] ? void 0 : r.labelId, g.id = r.menuId, g), q);
|
|
6502
6502
|
}, r.getItemProps = function(h) {
|
|
6503
|
-
var m, g = h === void 0 ? {} : h,
|
|
6503
|
+
var m, g = h === void 0 ? {} : h, f = g.onMouseMove, w = g.onMouseDown, D = g.onClick;
|
|
6504
6504
|
g.onPress;
|
|
6505
6505
|
var P = g.index, q = g.item, U = q === void 0 ? process.env.NODE_ENV === "production" ? (
|
|
6506
6506
|
/* istanbul ignore next */
|
|
@@ -6511,7 +6511,7 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6511
6511
|
// onMouseMove is used over onMouseEnter here. onMouseMove
|
|
6512
6512
|
// is only triggered on actual mouse movement while onMouseEnter
|
|
6513
6513
|
// can fire on DOM changes, interrupting keyboard navigation
|
|
6514
|
-
onMouseMove: he(
|
|
6514
|
+
onMouseMove: he(f, function() {
|
|
6515
6515
|
P !== r.getState().highlightedIndex && (r.setHighlightedIndex(P, {
|
|
6516
6516
|
type: pr
|
|
6517
6517
|
}), r.avoidScrolling = !0, r.internalSetTimeout(function() {
|
|
@@ -6525,36 +6525,36 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6525
6525
|
r.selectItemAtIndex(P, {
|
|
6526
6526
|
type: br
|
|
6527
6527
|
});
|
|
6528
|
-
}), m),
|
|
6528
|
+
}), m), ie = G.disabled ? {
|
|
6529
6529
|
onMouseDown: Z.onMouseDown
|
|
6530
6530
|
} : Z;
|
|
6531
6531
|
return Y({
|
|
6532
6532
|
id: r.getItemId(P),
|
|
6533
6533
|
role: "option",
|
|
6534
6534
|
"aria-selected": r.getState().highlightedIndex === P
|
|
6535
|
-
},
|
|
6535
|
+
}, ie, G);
|
|
6536
6536
|
}, r.clearItems = function() {
|
|
6537
6537
|
r.items = [];
|
|
6538
6538
|
}, r.reset = function(h, m) {
|
|
6539
6539
|
h === void 0 && (h = {}), h = I0(h), r.internalSetState(function(g) {
|
|
6540
|
-
var
|
|
6540
|
+
var f = g.selectedItem;
|
|
6541
6541
|
return Y({
|
|
6542
6542
|
isOpen: r.props.defaultIsOpen,
|
|
6543
6543
|
highlightedIndex: r.props.defaultHighlightedIndex,
|
|
6544
|
-
inputValue: r.props.itemToString(
|
|
6544
|
+
inputValue: r.props.itemToString(f)
|
|
6545
6545
|
}, h);
|
|
6546
6546
|
}, m);
|
|
6547
6547
|
}, r.toggleMenu = function(h, m) {
|
|
6548
6548
|
h === void 0 && (h = {}), h = I0(h), r.internalSetState(function(g) {
|
|
6549
|
-
var
|
|
6549
|
+
var f = g.isOpen;
|
|
6550
6550
|
return Y({
|
|
6551
|
-
isOpen: !
|
|
6552
|
-
},
|
|
6551
|
+
isOpen: !f
|
|
6552
|
+
}, f && {
|
|
6553
6553
|
highlightedIndex: r.props.defaultHighlightedIndex
|
|
6554
6554
|
}, h);
|
|
6555
6555
|
}, function() {
|
|
6556
|
-
var g = r.getState(),
|
|
6557
|
-
|
|
6556
|
+
var g = r.getState(), f = g.isOpen, w = g.highlightedIndex;
|
|
6557
|
+
f && r.getItemCount() > 0 && typeof w == "number" && r.setHighlightedIndex(w, h), an(m)();
|
|
6558
6558
|
});
|
|
6559
6559
|
}, r.openMenu = function(h) {
|
|
6560
6560
|
r.internalSetState({
|
|
@@ -6567,18 +6567,18 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6567
6567
|
}, r.updateStatus = ft(function() {
|
|
6568
6568
|
var h;
|
|
6569
6569
|
if ((h = r.props) != null && (h = h.environment) != null && h.document) {
|
|
6570
|
-
var m = r.getState(), g = r.items[m.highlightedIndex],
|
|
6570
|
+
var m = r.getState(), g = r.items[m.highlightedIndex], f = r.getItemCount(), w = r.props.getA11yStatusMessage(Y({
|
|
6571
6571
|
itemToString: r.props.itemToString,
|
|
6572
6572
|
previousResultCount: r.previousResultCount,
|
|
6573
|
-
resultCount:
|
|
6573
|
+
resultCount: f,
|
|
6574
6574
|
highlightedItem: g
|
|
6575
6575
|
}, m));
|
|
6576
|
-
r.previousResultCount =
|
|
6576
|
+
r.previousResultCount = f, ur(w, r.props.environment.document);
|
|
6577
6577
|
}
|
|
6578
6578
|
}, 200);
|
|
6579
|
-
var s = r.props, a = s.defaultHighlightedIndex, l = s.initialHighlightedIndex, d = l === void 0 ? a : l, u = s.defaultIsOpen,
|
|
6579
|
+
var s = r.props, a = s.defaultHighlightedIndex, l = s.initialHighlightedIndex, d = l === void 0 ? a : l, u = s.defaultIsOpen, p = s.initialIsOpen, I = p === void 0 ? u : p, N = s.initialInputValue, T = N === void 0 ? "" : N, R = s.initialSelectedItem, y = R === void 0 ? null : R, A = r.getState({
|
|
6580
6580
|
highlightedIndex: d,
|
|
6581
|
-
isOpen:
|
|
6581
|
+
isOpen: I,
|
|
6582
6582
|
inputValue: T,
|
|
6583
6583
|
selectedItem: y
|
|
6584
6584
|
});
|
|
@@ -6610,10 +6610,10 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6610
6610
|
this.setHighlightedIndex(u, s);
|
|
6611
6611
|
}
|
|
6612
6612
|
}, i.getStateAndHelpers = function() {
|
|
6613
|
-
var r = this.getState(), s = r.highlightedIndex, a = r.inputValue, l = r.selectedItem, d = r.isOpen, u = this.props.itemToString,
|
|
6613
|
+
var r = this.getState(), s = r.highlightedIndex, a = r.inputValue, l = r.selectedItem, d = r.isOpen, u = this.props.itemToString, p = this.id, I = this.getRootProps, N = this.getToggleButtonProps, T = this.getLabelProps, R = this.getMenuProps, y = this.getInputProps, A = this.getItemProps, h = this.openMenu, m = this.closeMenu, g = this.toggleMenu, f = this.selectItem, w = this.selectItemAtIndex, D = this.selectHighlightedItem, P = this.setHighlightedIndex, q = this.clearSelection, U = this.clearItems, G = this.reset, X = this.setItemCount, ne = this.unsetItemCount, Z = this.internalSetState;
|
|
6614
6614
|
return {
|
|
6615
6615
|
// prop getters
|
|
6616
|
-
getRootProps:
|
|
6616
|
+
getRootProps: I,
|
|
6617
6617
|
getToggleButtonProps: N,
|
|
6618
6618
|
getLabelProps: T,
|
|
6619
6619
|
getMenuProps: R,
|
|
@@ -6624,7 +6624,7 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6624
6624
|
openMenu: h,
|
|
6625
6625
|
closeMenu: m,
|
|
6626
6626
|
toggleMenu: g,
|
|
6627
|
-
selectItem:
|
|
6627
|
+
selectItem: f,
|
|
6628
6628
|
selectItemAtIndex: w,
|
|
6629
6629
|
selectHighlightedItem: D,
|
|
6630
6630
|
setHighlightedIndex: P,
|
|
@@ -6636,7 +6636,7 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6636
6636
|
// props
|
|
6637
6637
|
itemToString: u,
|
|
6638
6638
|
// derived
|
|
6639
|
-
id:
|
|
6639
|
+
id: p,
|
|
6640
6640
|
// state
|
|
6641
6641
|
highlightedIndex: s,
|
|
6642
6642
|
inputValue: a,
|
|
@@ -6671,14 +6671,14 @@ var dr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6671
6671
|
}, function() {
|
|
6672
6672
|
return r.props.onOuterClick(r.getStateAndHelpers());
|
|
6673
6673
|
});
|
|
6674
|
-
},
|
|
6675
|
-
|
|
6676
|
-
r.internalClearTimeouts(), r.updateStatus.cancel(),
|
|
6674
|
+
}, p = this.props.environment;
|
|
6675
|
+
p.addEventListener("mousedown", s), p.addEventListener("mouseup", a), p.addEventListener("touchstart", l), p.addEventListener("touchmove", d), p.addEventListener("touchend", u), this.cleanup = function() {
|
|
6676
|
+
r.internalClearTimeouts(), r.updateStatus.cancel(), p.removeEventListener("mousedown", s), p.removeEventListener("mouseup", a), p.removeEventListener("touchstart", l), p.removeEventListener("touchmove", d), p.removeEventListener("touchend", u);
|
|
6677
6677
|
};
|
|
6678
6678
|
}
|
|
6679
6679
|
}, i.shouldScroll = function(r, s) {
|
|
6680
|
-
var a = this.props.highlightedIndex === void 0 ? this.getState() : this.props, l = a.highlightedIndex, d = s.highlightedIndex === void 0 ? r : s, u = d.highlightedIndex,
|
|
6681
|
-
return
|
|
6680
|
+
var a = this.props.highlightedIndex === void 0 ? this.getState() : this.props, l = a.highlightedIndex, d = s.highlightedIndex === void 0 ? r : s, u = d.highlightedIndex, p = l && this.getState().isOpen && !r.isOpen, I = l !== u;
|
|
6681
|
+
return p || I;
|
|
6682
6682
|
}, i.componentDidUpdate = function(r, s) {
|
|
6683
6683
|
process.env.NODE_ENV !== "production" && (pt(this.state, r, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && ln(this._menuNode, this.getMenuProps)), C0(this.props, "selectedItem") && this.props.selectedItemChanged(r.selectedItem, this.props.selectedItem) && this.internalSetState({
|
|
6684
6684
|
type: xr,
|
|
@@ -6862,15 +6862,15 @@ function Fs(e, t, n, i) {
|
|
|
6862
6862
|
changes: R
|
|
6863
6863
|
}));
|
|
6864
6864
|
return y;
|
|
6865
|
-
}, [e]), a = Yr(s, t, n), l = a[0], d = a[1], u = Sr(t),
|
|
6865
|
+
}, [e]), a = Yr(s, t, n), l = a[0], d = a[1], u = Sr(t), p = xe(function(N) {
|
|
6866
6866
|
return d(Y({
|
|
6867
6867
|
props: u.current
|
|
6868
6868
|
}, N));
|
|
6869
|
-
}, [u]),
|
|
6869
|
+
}, [u]), I = r.current;
|
|
6870
6870
|
return ke(function() {
|
|
6871
|
-
var N =
|
|
6872
|
-
N && Ls(
|
|
6873
|
-
}, [l,
|
|
6871
|
+
var N = I && o.current && !i(o.current, l);
|
|
6872
|
+
N && Ls(I, R0(o.current, I.props), l), o.current = l;
|
|
6873
|
+
}, [l, I, i]), [l, p];
|
|
6874
6874
|
}
|
|
6875
6875
|
var d0 = {
|
|
6876
6876
|
itemToString: Ks,
|
|
@@ -6917,17 +6917,17 @@ function Ws(e, t, n, i) {
|
|
|
6917
6917
|
if (n) {
|
|
6918
6918
|
var r = function() {
|
|
6919
6919
|
o.current.isMouseDown = !0;
|
|
6920
|
-
}, s = function(
|
|
6921
|
-
o.current.isMouseDown = !1, e && !M0(
|
|
6922
|
-
return
|
|
6920
|
+
}, s = function(p) {
|
|
6921
|
+
o.current.isMouseDown = !1, e && !M0(p.target, t.map(function(I) {
|
|
6922
|
+
return I.current;
|
|
6923
6923
|
}), n) && i();
|
|
6924
6924
|
}, a = function() {
|
|
6925
6925
|
o.current.isTouchMove = !1;
|
|
6926
6926
|
}, l = function() {
|
|
6927
6927
|
o.current.isTouchMove = !0;
|
|
6928
|
-
}, d = function(
|
|
6929
|
-
e && !o.current.isTouchMove && !M0(
|
|
6930
|
-
return
|
|
6928
|
+
}, d = function(p) {
|
|
6929
|
+
e && !o.current.isTouchMove && !M0(p.target, t.map(function(I) {
|
|
6930
|
+
return I.current;
|
|
6931
6931
|
}), n, !1) && i();
|
|
6932
6932
|
};
|
|
6933
6933
|
return n.addEventListener("mousedown", r), n.addEventListener("mouseup", s), n.addEventListener("touchstart", a), n.addEventListener("touchmove", l), n.addEventListener("touchend", d), function() {
|
|
@@ -6952,8 +6952,8 @@ process.env.NODE_ENV !== "production" && (Or = function() {
|
|
|
6952
6952
|
console.error("downshift: You forgot to call the " + a + " getter function on your component / element.");
|
|
6953
6953
|
return;
|
|
6954
6954
|
}
|
|
6955
|
-
var d = l.suppressRefError, u = l.refKey,
|
|
6956
|
-
(!
|
|
6955
|
+
var d = l.suppressRefError, u = l.refKey, p = l.elementRef;
|
|
6956
|
+
(!p || !p.current) && !d && console.error('downshift: The ref prop "' + u + '" from ' + a + " was not applied correctly on your element.");
|
|
6957
6957
|
}), t.current = !1;
|
|
6958
6958
|
});
|
|
6959
6959
|
var s = xe(function(a, l, d, u) {
|
|
@@ -7295,29 +7295,29 @@ var rc = ["onMouseLeave", "refKey", "ref"], ic = ["item", "index", "refKey", "re
|
|
|
7295
7295
|
Rt.stateChangeTypes = Hr;
|
|
7296
7296
|
function Rt(e) {
|
|
7297
7297
|
e === void 0 && (e = {}), zr(e, Rt);
|
|
7298
|
-
var t = Y({}, tc, e), n = t.items, i = t.scrollIntoView, o = t.environment, r = t.getA11yStatusMessage, s = t.getA11ySelectionMessage, a = t.itemToString, l = ec(nc, t, Qs, Ys), d = l[0], u = l[1],
|
|
7298
|
+
var t = Y({}, tc, e), n = t.items, i = t.scrollIntoView, o = t.environment, r = t.getA11yStatusMessage, s = t.getA11ySelectionMessage, a = t.itemToString, l = ec(nc, t, Qs, Ys), d = l[0], u = l[1], p = d.isOpen, I = d.highlightedIndex, N = d.selectedItem, T = d.inputValue, R = Ee(null), y = Ee({}), A = Ee(null), h = Ee(null), m = Ee(!0), g = Us(t), f = Ee(), w = Sr({
|
|
7299
7299
|
state: d,
|
|
7300
7300
|
props: t
|
|
7301
7301
|
}), D = xe(function(v) {
|
|
7302
7302
|
return y.current[g.getItemId(v)];
|
|
7303
7303
|
}, [g]);
|
|
7304
|
-
un(r, [
|
|
7304
|
+
un(r, [p, I, T, n], Y({
|
|
7305
7305
|
isInitialMount: m.current,
|
|
7306
|
-
previousResultCount:
|
|
7306
|
+
previousResultCount: f.current,
|
|
7307
7307
|
items: n,
|
|
7308
7308
|
environment: o,
|
|
7309
7309
|
itemToString: a
|
|
7310
7310
|
}, d)), un(s, [N], Y({
|
|
7311
7311
|
isInitialMount: m.current,
|
|
7312
|
-
previousResultCount:
|
|
7312
|
+
previousResultCount: f.current,
|
|
7313
7313
|
items: n,
|
|
7314
7314
|
environment: o,
|
|
7315
7315
|
itemToString: a
|
|
7316
7316
|
}, d));
|
|
7317
7317
|
var P = Gs({
|
|
7318
7318
|
menuElement: R.current,
|
|
7319
|
-
highlightedIndex:
|
|
7320
|
-
isOpen:
|
|
7319
|
+
highlightedIndex: I,
|
|
7320
|
+
isOpen: p,
|
|
7321
7321
|
itemRefs: y,
|
|
7322
7322
|
scrollIntoView: i,
|
|
7323
7323
|
getItemNodeFromIndex: D
|
|
@@ -7330,9 +7330,9 @@ function Rt(e) {
|
|
|
7330
7330
|
var v = u0(t, "isOpen");
|
|
7331
7331
|
v && A.current && A.current.focus();
|
|
7332
7332
|
}, []), ke(function() {
|
|
7333
|
-
m.current || (
|
|
7333
|
+
m.current || (f.current = n.length);
|
|
7334
7334
|
});
|
|
7335
|
-
var q = Ws(
|
|
7335
|
+
var q = Ws(p, [A, R, h], o, function() {
|
|
7336
7336
|
u({
|
|
7337
7337
|
type: T0,
|
|
7338
7338
|
selectItem: !1
|
|
@@ -7343,11 +7343,11 @@ function Rt(e) {
|
|
|
7343
7343
|
m.current = !0;
|
|
7344
7344
|
};
|
|
7345
7345
|
}, []), ke(function() {
|
|
7346
|
-
|
|
7347
|
-
}, [
|
|
7346
|
+
p || (y.current = {});
|
|
7347
|
+
}, [p]), ke(function() {
|
|
7348
7348
|
var v;
|
|
7349
|
-
!
|
|
7350
|
-
}, [
|
|
7349
|
+
!p || !(o != null && o.document) || !(A != null && (v = A.current) != null && v.focus) || o.document.activeElement !== A.current && A.current.focus();
|
|
7350
|
+
}, [p, o]);
|
|
7351
7351
|
var G = fn(function() {
|
|
7352
7352
|
return {
|
|
7353
7353
|
ArrowDown: function(_) {
|
|
@@ -7373,14 +7373,14 @@ function Rt(e) {
|
|
|
7373
7373
|
}));
|
|
7374
7374
|
},
|
|
7375
7375
|
Escape: function(_) {
|
|
7376
|
-
var
|
|
7377
|
-
(
|
|
7376
|
+
var E = w.current.state;
|
|
7377
|
+
(E.isOpen || E.inputValue || E.selectedItem || E.highlightedIndex > -1) && (_.preventDefault(), u({
|
|
7378
7378
|
type: vt
|
|
7379
7379
|
}));
|
|
7380
7380
|
},
|
|
7381
7381
|
Enter: function(_) {
|
|
7382
|
-
var
|
|
7383
|
-
!
|
|
7382
|
+
var E = w.current.state;
|
|
7383
|
+
!E.isOpen || _.which === 229 || (_.preventDefault(), u({
|
|
7384
7384
|
type: It
|
|
7385
7385
|
}));
|
|
7386
7386
|
},
|
|
@@ -7401,16 +7401,16 @@ function Rt(e) {
|
|
|
7401
7401
|
htmlFor: g.inputId
|
|
7402
7402
|
}, v);
|
|
7403
7403
|
}, [g]), ne = xe(function(v, _) {
|
|
7404
|
-
var
|
|
7405
|
-
return U("getMenuProps", _e, B, R), Y((
|
|
7404
|
+
var E, C = v === void 0 ? {} : v, z = C.onMouseLeave, H = C.refKey, B = H === void 0 ? "ref" : H, Q = C.ref, S = He(C, rc), de = _ === void 0 ? {} : _, L = de.suppressRefError, _e = L === void 0 ? !1 : L;
|
|
7405
|
+
return U("getMenuProps", _e, B, R), Y((E = {}, E[B] = a0(Q, function(ve) {
|
|
7406
7406
|
R.current = ve;
|
|
7407
|
-
}),
|
|
7407
|
+
}), E.id = g.menuId, E.role = "listbox", E["aria-labelledby"] = S && S["aria-label"] ? void 0 : "" + g.labelId, E.onMouseLeave = he(z, function() {
|
|
7408
7408
|
u({
|
|
7409
7409
|
type: Tr
|
|
7410
7410
|
});
|
|
7411
|
-
}),
|
|
7411
|
+
}), E), S);
|
|
7412
7412
|
}, [u, U, g]), Z = xe(function(v) {
|
|
7413
|
-
var _,
|
|
7413
|
+
var _, E, C = v === void 0 ? {} : v, z = C.item, H = C.index, B = C.refKey, Q = B === void 0 ? "ref" : B, S = C.ref, de = C.onMouseMove, L = C.onMouseDown, _e = C.onClick;
|
|
7414
7414
|
C.onPress;
|
|
7415
7415
|
var ve = C.disabled, Le = He(C, ic);
|
|
7416
7416
|
ve !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
|
|
@@ -7430,14 +7430,14 @@ function Rt(e) {
|
|
|
7430
7430
|
};
|
|
7431
7431
|
return Y((_ = {}, _[Q] = a0(S, function($) {
|
|
7432
7432
|
$ && (y.current[g.getItemId(Me)] = $);
|
|
7433
|
-
}), _["aria-disabled"] = me, _["aria-selected"] = "" + (Me === Be.highlightedIndex), _.id = g.getItemId(Me), _.role = "option", _), !me && (
|
|
7433
|
+
}), _["aria-disabled"] = me, _["aria-selected"] = "" + (Me === Be.highlightedIndex), _.id = g.getItemId(Me), _.role = "option", _), !me && (E = {}, E[fe] = he(Fe, Ve), E), {
|
|
7434
7434
|
onMouseMove: he(de, Ne),
|
|
7435
7435
|
onMouseDown: he(L, Te)
|
|
7436
7436
|
}, Le);
|
|
7437
|
-
}, [u, w, P, g]),
|
|
7438
|
-
var _,
|
|
7439
|
-
|
|
7440
|
-
var z =
|
|
7437
|
+
}, [u, w, P, g]), ie = xe(function(v) {
|
|
7438
|
+
var _, E = v === void 0 ? {} : v, C = E.onClick;
|
|
7439
|
+
E.onPress;
|
|
7440
|
+
var z = E.refKey, H = z === void 0 ? "ref" : z, B = E.ref, Q = He(E, oc), S = w.current.state, de = function() {
|
|
7441
7441
|
u({
|
|
7442
7442
|
type: Dr
|
|
7443
7443
|
});
|
|
@@ -7448,7 +7448,7 @@ function Rt(e) {
|
|
|
7448
7448
|
onClick: he(C, de)
|
|
7449
7449
|
}), Q);
|
|
7450
7450
|
}, [u, w, g]), oe = xe(function(v, _) {
|
|
7451
|
-
var
|
|
7451
|
+
var E, C = v === void 0 ? {} : v, z = C.onKeyDown, H = C.onChange, B = C.onInput, Q = C.onBlur;
|
|
7452
7452
|
C.onChangeText;
|
|
7453
7453
|
var S = C.onClick, de = C.refKey, L = de === void 0 ? "ref" : de, _e = C.ref, ve = He(C, ac), Le = _ === void 0 ? {} : _, Ye = Le.suppressRefError, $e = Ye === void 0 ? !1 : Ye;
|
|
7454
7454
|
U("getInputProps", $e, L, A);
|
|
@@ -7477,9 +7477,9 @@ function Rt(e) {
|
|
|
7477
7477
|
var Ne;
|
|
7478
7478
|
Fe = (Ne = {}, Ne[fe] = he(H, B, J), Ne.onKeyDown = he(z, Xe), Ne.onBlur = he(Q, Me), Ne.onClick = he(S, me), Ne);
|
|
7479
7479
|
}
|
|
7480
|
-
return Y((
|
|
7480
|
+
return Y((E = {}, E[L] = a0(_e, function(Ve) {
|
|
7481
7481
|
A.current = Ve;
|
|
7482
|
-
}),
|
|
7482
|
+
}), E["aria-activedescendant"] = Be.isOpen && Be.highlightedIndex > -1 ? g.getItemId(Be.highlightedIndex) : "", E["aria-autocomplete"] = "list", E["aria-controls"] = g.menuId, E["aria-expanded"] = Be.isOpen, E["aria-labelledby"] = ve && ve["aria-label"] ? void 0 : g.labelId, E.autoComplete = "off", E.id = g.inputId, E.role = "combobox", E.value = Be.inputValue, E), Fe, ve);
|
|
7483
7483
|
}, [U, w, g, G, u, q, o]), W = xe(function() {
|
|
7484
7484
|
u({
|
|
7485
7485
|
type: kr
|
|
@@ -7518,7 +7518,7 @@ function Rt(e) {
|
|
|
7518
7518
|
getLabelProps: X,
|
|
7519
7519
|
getMenuProps: ne,
|
|
7520
7520
|
getInputProps: oe,
|
|
7521
|
-
getToggleButtonProps:
|
|
7521
|
+
getToggleButtonProps: ie,
|
|
7522
7522
|
// actions.
|
|
7523
7523
|
toggleMenu: W,
|
|
7524
7524
|
openMenu: ge,
|
|
@@ -7528,8 +7528,8 @@ function Rt(e) {
|
|
|
7528
7528
|
selectItem: k,
|
|
7529
7529
|
reset: b,
|
|
7530
7530
|
// state.
|
|
7531
|
-
highlightedIndex:
|
|
7532
|
-
isOpen:
|
|
7531
|
+
highlightedIndex: I,
|
|
7532
|
+
isOpen: p,
|
|
7533
7533
|
selectedItem: N,
|
|
7534
7534
|
inputValue: T
|
|
7535
7535
|
};
|
|
@@ -7575,9 +7575,9 @@ const Ur = Ce(
|
|
|
7575
7575
|
searchNotFound: r,
|
|
7576
7576
|
highlightedIndex: s = 0,
|
|
7577
7577
|
...a
|
|
7578
|
-
}, l) => /* @__PURE__ */ M(V, { className:
|
|
7578
|
+
}, l) => /* @__PURE__ */ M(V, { className: re("autocomplete-result", a.className), ref: l, hidden: !e, children: [
|
|
7579
7579
|
t.length > 0 && /* @__PURE__ */ M(Pe, { children: [
|
|
7580
|
-
t.map(({ slug: d, title: u, date:
|
|
7580
|
+
t.map(({ slug: d, title: u, date: p, authors: I, link: N }, T) => {
|
|
7581
7581
|
const R = s === T;
|
|
7582
7582
|
return /* @__PURE__ */ c(be.Fragment, { children: /* @__PURE__ */ M(
|
|
7583
7583
|
F,
|
|
@@ -7587,7 +7587,7 @@ const Ur = Ce(
|
|
|
7587
7587
|
pt: { xs: "xxs" },
|
|
7588
7588
|
pb: { xs: "xs" },
|
|
7589
7589
|
px: { xs: "m" },
|
|
7590
|
-
className:
|
|
7590
|
+
className: re("autocomplete-result__item", {
|
|
7591
7591
|
"autocomplete-result__item--is-highlighted": R
|
|
7592
7592
|
}),
|
|
7593
7593
|
children: [
|
|
@@ -7602,7 +7602,7 @@ const Ur = Ce(
|
|
|
7602
7602
|
className: "autocomplete-result__link"
|
|
7603
7603
|
}
|
|
7604
7604
|
),
|
|
7605
|
-
/* @__PURE__ */ c(lt, { mt: "xxs-3", date:
|
|
7605
|
+
/* @__PURE__ */ c(lt, { mt: "xxs-3", date: p, authors: I, displayedFields: ["date", "authors"] })
|
|
7606
7606
|
]
|
|
7607
7607
|
}
|
|
7608
7608
|
) }, d);
|
|
@@ -7639,8 +7639,8 @@ const jr = Ce(
|
|
|
7639
7639
|
onEnter: l,
|
|
7640
7640
|
isOpen: d,
|
|
7641
7641
|
...u
|
|
7642
|
-
},
|
|
7643
|
-
const
|
|
7642
|
+
}, p) => {
|
|
7643
|
+
const I = (D) => {
|
|
7644
7644
|
l && D.key === "Enter" && l(D.currentTarget.value);
|
|
7645
7645
|
}, { getInputProps: N, getMenuProps: T, getItemProps: R, selectItem: y, toggleMenu: A, isOpen: h, inputValue: m, highlightedIndex: g } = Rt({
|
|
7646
7646
|
defaultInputValue: t,
|
|
@@ -7649,20 +7649,20 @@ const jr = Ce(
|
|
|
7649
7649
|
items: n,
|
|
7650
7650
|
itemToString: (D) => D ? D.title : "",
|
|
7651
7651
|
isOpen: d
|
|
7652
|
-
}),
|
|
7652
|
+
}), f = () => y(null), w = be.useMemo(
|
|
7653
7653
|
() => n.map((D, P) => ({
|
|
7654
7654
|
...D,
|
|
7655
7655
|
...R({ item: D, index: P })
|
|
7656
7656
|
})),
|
|
7657
7657
|
[n, R]
|
|
7658
7658
|
);
|
|
7659
|
-
return /* @__PURE__ */ M(V, { ...u, className:
|
|
7659
|
+
return /* @__PURE__ */ M(V, { ...u, className: re("autocomplete", u.className), ref: p, children: [
|
|
7660
7660
|
/* @__PURE__ */ c(
|
|
7661
7661
|
Xn,
|
|
7662
7662
|
{
|
|
7663
|
-
input: N({ placeholder: e, onKeyDown:
|
|
7663
|
+
input: N({ placeholder: e, onKeyDown: I }),
|
|
7664
7664
|
buttonSearch: { as: "a", ...o },
|
|
7665
|
-
buttonClose: { onClick:
|
|
7665
|
+
buttonClose: { onClick: f },
|
|
7666
7666
|
className: "autocomplete__input"
|
|
7667
7667
|
}
|
|
7668
7668
|
),
|
|
@@ -7697,8 +7697,8 @@ const kc = ({
|
|
|
7697
7697
|
menuIsOpen: d = !1
|
|
7698
7698
|
}) => /* @__PURE__ */ M(F, { as: "header", justifyContent: "between", alignItems: "center", bg: "white", p: "m", className: "header", children: [
|
|
7699
7699
|
/* @__PURE__ */ c(V, { as: "a", ...e, color: "primary", children: /* @__PURE__ */ c(_n, { name: "blog", className: "header__logo" }) }),
|
|
7700
|
-
/* @__PURE__ */ M(V, { className:
|
|
7701
|
-
t.map(({ label: u, ...
|
|
7700
|
+
/* @__PURE__ */ M(V, { className: re("header__menu", { "header__menu--is-open": d }), children: [
|
|
7701
|
+
t.map(({ label: u, ...p }, I) => /* @__PURE__ */ c(e0, { as: "a", ...p, "data-internal-link": "category", className: "header__menu-item", children: u }, I)),
|
|
7702
7702
|
n && /* @__PURE__ */ M(Pe, { children: [
|
|
7703
7703
|
/* @__PURE__ */ c(V, { className: "header__separator" }),
|
|
7704
7704
|
/* @__PURE__ */ c(V, { as: "a", ...o, "data-internal-link": "category", className: "header__menu-item", children: i })
|
|
@@ -7795,12 +7795,62 @@ const cc = ({
|
|
|
7795
7795
|
] })
|
|
7796
7796
|
]
|
|
7797
7797
|
}
|
|
7798
|
-
)
|
|
7798
|
+
);
|
|
7799
|
+
const lc = ({
|
|
7800
|
+
title: e,
|
|
7801
|
+
posts: t,
|
|
7802
|
+
linkSeeMore: { label: n, ...i },
|
|
7803
|
+
...o
|
|
7804
|
+
}) => /* @__PURE__ */ M(
|
|
7805
|
+
V,
|
|
7806
|
+
{
|
|
7807
|
+
...o,
|
|
7808
|
+
my: "xl",
|
|
7809
|
+
mx: { xs: "s", md: "auto" },
|
|
7810
|
+
width: { md: "content-container" },
|
|
7811
|
+
className: "last-articles-block",
|
|
7812
|
+
children: [
|
|
7813
|
+
/* @__PURE__ */ c(ye, { size: "m", color: "primary", children: e }),
|
|
7814
|
+
/* @__PURE__ */ c(F, { mt: "l", gap: "m", className: "last-articles-block__post-list", children: t.map((r, s) => /* @__PURE__ */ c(be.Fragment, { children: /* @__PURE__ */ c(D0, { variant: "highlight-light", ...r || {} }) }, (r == null ? void 0 : r.slug) ?? s)) }),
|
|
7815
|
+
/* @__PURE__ */ c(F, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ c(Ke, { mt: "l", as: "a", ...i, children: n }) })
|
|
7816
|
+
]
|
|
7817
|
+
}
|
|
7818
|
+
);
|
|
7819
|
+
const uc = ({
|
|
7820
|
+
title: e,
|
|
7821
|
+
description: t,
|
|
7822
|
+
tutorialLabel: n,
|
|
7823
|
+
posts: i,
|
|
7824
|
+
linkSeeMore: { label: o, ...r },
|
|
7825
|
+
...s
|
|
7826
|
+
}) => /* @__PURE__ */ c(V, { bg: "primary", color: "white", children: /* @__PURE__ */ M(
|
|
7827
|
+
F,
|
|
7828
|
+
{
|
|
7829
|
+
flexDirection: { xs: "column", md: "row" },
|
|
7830
|
+
justifyContent: "center",
|
|
7831
|
+
alignItems: "center",
|
|
7832
|
+
...s,
|
|
7833
|
+
py: "xl",
|
|
7834
|
+
mx: { xs: "s", md: "auto" },
|
|
7835
|
+
gap: "xl",
|
|
7836
|
+
width: { md: "content-container" },
|
|
7837
|
+
className: "last-tutorials-block",
|
|
7838
|
+
children: [
|
|
7839
|
+
/* @__PURE__ */ M(V, { className: "last-tutorials-block__content", children: [
|
|
7840
|
+
/* @__PURE__ */ c(ye, { size: "m", children: e }),
|
|
7841
|
+
/* @__PURE__ */ c(Ie, { name: "underline", color: "white", width: "56px" }),
|
|
7842
|
+
/* @__PURE__ */ c(ee, { mt: "l", children: t }),
|
|
7843
|
+
/* @__PURE__ */ c(Ke, { mt: "l", as: "a", variant: "accent", ...r, children: o })
|
|
7844
|
+
] }),
|
|
7845
|
+
/* @__PURE__ */ c(F, { gap: "l", className: "last-tutorials-block__post-list", children: i.map((a, l) => /* @__PURE__ */ c(be.Fragment, { children: /* @__PURE__ */ c(D0, { variant: "highlight-dark", tutorialLabel: n, ...a || {} }) }, (a == null ? void 0 : a.slug) ?? l)) })
|
|
7846
|
+
]
|
|
7847
|
+
}
|
|
7848
|
+
) }), V = Ce(({ as: e = "div", className: t, children: n, ...i }, o) => /* @__PURE__ */ c(
|
|
7799
7849
|
e,
|
|
7800
7850
|
{
|
|
7801
7851
|
...it({ props: i, systemPropNames: Object.keys(yi) }),
|
|
7802
7852
|
ref: o,
|
|
7803
|
-
className:
|
|
7853
|
+
className: re(Ti(i), t),
|
|
7804
7854
|
children: n
|
|
7805
7855
|
}
|
|
7806
7856
|
));
|
|
@@ -7813,7 +7863,7 @@ const F = Ce(
|
|
|
7813
7863
|
ref: r,
|
|
7814
7864
|
as: e,
|
|
7815
7865
|
display: t,
|
|
7816
|
-
className:
|
|
7866
|
+
className: re(Si(o), Oi(o), n),
|
|
7817
7867
|
children: i
|
|
7818
7868
|
}
|
|
7819
7869
|
)
|
|
@@ -7837,13 +7887,13 @@ const k0 = ({
|
|
|
7837
7887
|
my: "xl",
|
|
7838
7888
|
mx: { xs: "s", md: "auto" },
|
|
7839
7889
|
width: { md: "content-container" },
|
|
7840
|
-
className:
|
|
7890
|
+
className: re("layout-content-with-sidebar", n),
|
|
7841
7891
|
children: [
|
|
7842
7892
|
/* @__PURE__ */ c(F, { flexDirection: "column", as: "main", flex: "1", gap: "xl", className: "layout-content-with-sidebar__content", children: e }),
|
|
7843
7893
|
/* @__PURE__ */ c(F, { as: "aside", flexDirection: "column", gap: "xl", className: "layout-content-with-sidebar__sidebar", children: t })
|
|
7844
7894
|
]
|
|
7845
7895
|
}
|
|
7846
|
-
),
|
|
7896
|
+
), dc = ({
|
|
7847
7897
|
title: e,
|
|
7848
7898
|
postCardList: t,
|
|
7849
7899
|
categoryEndingBlock: n
|
|
@@ -7863,71 +7913,22 @@ const k0 = ({
|
|
|
7863
7913
|
/* @__PURE__ */ c(
|
|
7864
7914
|
k0,
|
|
7865
7915
|
{
|
|
7866
|
-
content: /* @__PURE__ */ c(
|
|
7916
|
+
content: /* @__PURE__ */ c(dc, { ...n }),
|
|
7867
7917
|
sidebar: /* @__PURE__ */ c(ut, { ...t })
|
|
7868
7918
|
}
|
|
7869
7919
|
)
|
|
7870
|
-
] })
|
|
7871
|
-
const uc = ({
|
|
7872
|
-
title: e,
|
|
7873
|
-
posts: t,
|
|
7874
|
-
linkSeeMore: { label: n, ...i },
|
|
7875
|
-
...o
|
|
7876
|
-
}) => /* @__PURE__ */ M(
|
|
7877
|
-
V,
|
|
7878
|
-
{
|
|
7879
|
-
...o,
|
|
7880
|
-
my: "xl",
|
|
7881
|
-
mx: { xs: "s", md: "auto" },
|
|
7882
|
-
width: { md: "content-container" },
|
|
7883
|
-
className: "last-articles-block",
|
|
7884
|
-
children: [
|
|
7885
|
-
/* @__PURE__ */ c(ye, { size: "m", color: "primary", children: e }),
|
|
7886
|
-
/* @__PURE__ */ c(F, { mt: "l", gap: "m", className: "last-articles-block__post-list", children: t.map((r, s) => /* @__PURE__ */ c(be.Fragment, { children: /* @__PURE__ */ c(D0, { variant: "highlight-light", ...r || {} }) }, (r == null ? void 0 : r.slug) ?? s)) }),
|
|
7887
|
-
/* @__PURE__ */ c(F, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ c(Ke, { mt: "l", as: "a", ...i, children: n }) })
|
|
7888
|
-
]
|
|
7889
|
-
}
|
|
7890
|
-
);
|
|
7891
|
-
const dc = ({
|
|
7892
|
-
title: e,
|
|
7893
|
-
description: t,
|
|
7894
|
-
tutorialLabel: n,
|
|
7895
|
-
posts: i,
|
|
7896
|
-
linkSeeMore: { label: o, ...r },
|
|
7897
|
-
...s
|
|
7898
|
-
}) => /* @__PURE__ */ c(V, { bg: "primary", color: "white", children: /* @__PURE__ */ M(
|
|
7899
|
-
F,
|
|
7900
|
-
{
|
|
7901
|
-
flexDirection: { xs: "column", md: "row" },
|
|
7902
|
-
justifyContent: "center",
|
|
7903
|
-
alignItems: "center",
|
|
7904
|
-
...s,
|
|
7905
|
-
py: "xl",
|
|
7906
|
-
mx: { xs: "s", md: "auto" },
|
|
7907
|
-
gap: "xl",
|
|
7908
|
-
width: { md: "content-container" },
|
|
7909
|
-
className: "last-tutorials-block",
|
|
7910
|
-
children: [
|
|
7911
|
-
/* @__PURE__ */ M(V, { className: "last-tutorials-block__content", children: [
|
|
7912
|
-
/* @__PURE__ */ c(ye, { size: "m", children: e }),
|
|
7913
|
-
/* @__PURE__ */ c(Ie, { name: "underline", color: "white", width: "56px" }),
|
|
7914
|
-
/* @__PURE__ */ c(ee, { mt: "l", children: t }),
|
|
7915
|
-
/* @__PURE__ */ c(Ke, { mt: "l", as: "a", variant: "accent", ...r, children: o })
|
|
7916
|
-
] }),
|
|
7917
|
-
/* @__PURE__ */ c(F, { gap: "l", className: "last-tutorials-block__post-list", children: i.map((a, l) => /* @__PURE__ */ c(be.Fragment, { children: /* @__PURE__ */ c(D0, { variant: "highlight-dark", tutorialLabel: n, ...a || {} }) }, (a == null ? void 0 : a.slug) ?? l)) })
|
|
7918
|
-
]
|
|
7919
|
-
}
|
|
7920
|
-
) }), $c = ({
|
|
7920
|
+
] }), $c = ({
|
|
7921
7921
|
homeIntroBlock: e,
|
|
7922
7922
|
lastArticlesBlock: t,
|
|
7923
7923
|
lastTutorialsBlock: n,
|
|
7924
7924
|
newsletterCard: i
|
|
7925
7925
|
}) => /* @__PURE__ */ M(Pe, { children: [
|
|
7926
7926
|
/* @__PURE__ */ c(ns, { py: { xs: "0", md: "xl" }, ...e }),
|
|
7927
|
-
/* @__PURE__ */ c(
|
|
7928
|
-
n && /* @__PURE__ */ c(
|
|
7927
|
+
/* @__PURE__ */ c(lc, { ...t }),
|
|
7928
|
+
n && /* @__PURE__ */ c(uc, { ...n }),
|
|
7929
7929
|
/* @__PURE__ */ c(V, { my: "xl", mx: { xs: "s", md: "auto" }, width: { md: "content-container" }, children: /* @__PURE__ */ c(ut, { variant: "horizontal", ...i }) })
|
|
7930
|
-
] })
|
|
7930
|
+
] });
|
|
7931
|
+
const fc = ({ title: e, authors: t, ...n }) => /* @__PURE__ */ M(V, { ...n, children: [
|
|
7931
7932
|
/* @__PURE__ */ c(ye, { mb: "xxs", size: "m", color: "primary", children: e }),
|
|
7932
7933
|
/* @__PURE__ */ c(F, { mt: "l", flexDirection: "column", gap: "s", children: t.map((i, o) => /* @__PURE__ */ c(is, { ...i }, o)) })
|
|
7933
7934
|
] });
|
|
@@ -7975,46 +7976,52 @@ const q0 = (e) => {
|
|
|
7975
7976
|
/* @__PURE__ */ c(lt, { variant: "secondary", date: t, readingTime: n, authors: i }),
|
|
7976
7977
|
/* @__PURE__ */ c(pc, { ...o })
|
|
7977
7978
|
] })
|
|
7978
|
-
] })
|
|
7979
|
-
const mc = ({ relatedPostListTitle: e, posts: t, ...n }) => /* @__PURE__ */ M(V, { ...n, children: [
|
|
7979
|
+
] }), mc = ({ relatedPostListTitle: e, posts: t, ...n }) => /* @__PURE__ */ M(V, { ...n, children: [
|
|
7980
7980
|
/* @__PURE__ */ c(ye, { mb: "m", size: "m", color: "primary", children: e }),
|
|
7981
7981
|
t.map((i, o) => /* @__PURE__ */ c(D0, { ...i, mt: "s" }, (i == null ? void 0 : i.slug) ?? o))
|
|
7982
7982
|
] }), Bc = ["article", "tutorial"], hc = ({
|
|
7983
7983
|
variant: e = "article",
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
previousLink: { label: d, ...u } = {},
|
|
7993
|
-
nextLink: { label: f, ...E } = {}
|
|
7984
|
+
summary: t,
|
|
7985
|
+
header: n,
|
|
7986
|
+
children: i,
|
|
7987
|
+
footer: o,
|
|
7988
|
+
relatedPostList: r,
|
|
7989
|
+
contactCard: s,
|
|
7990
|
+
previousLink: { label: a, ...l } = {},
|
|
7991
|
+
nextLink: { label: d, ...u } = {}
|
|
7994
7992
|
}) => /* @__PURE__ */ M(Pe, { children: [
|
|
7995
|
-
/* @__PURE__ */ M(V, {
|
|
7996
|
-
/* @__PURE__ */ c(
|
|
7997
|
-
/* @__PURE__ */ c("img", { className: "post-page-content__cover", ...n, alt: n.alt }),
|
|
7998
|
-
/* @__PURE__ */ c(gc, { mt: "m", ...o }),
|
|
7993
|
+
/* @__PURE__ */ M(V, { children: [
|
|
7994
|
+
/* @__PURE__ */ c(gc, { ...n }),
|
|
7999
7995
|
/* @__PURE__ */ c(h0, { mt: "m" }),
|
|
8000
|
-
/* @__PURE__ */ c(tr, { mt: "l", hiddenAbove: "md", variant: e === "tutorial" ? "secondary" : "primary", ...
|
|
8001
|
-
/* @__PURE__ */ c(V, { mt: { xs: "l", md: "m" }, children:
|
|
7996
|
+
/* @__PURE__ */ c(tr, { mt: "l", hiddenAbove: "md", variant: e === "tutorial" ? "secondary" : "primary", ...t }),
|
|
7997
|
+
/* @__PURE__ */ c(V, { mt: { xs: "l", md: "m" }, className: "post-page__content", children: i }),
|
|
8002
7998
|
e === "tutorial" && /* @__PURE__ */ c(Pe, { children: /* @__PURE__ */ M(F, { gap: "l", children: [
|
|
8003
|
-
|
|
8004
|
-
|
|
7999
|
+
a && l && /* @__PURE__ */ c(Ke, { as: "a", mt: "l", variant: "secondary", ...l, children: a }),
|
|
8000
|
+
d && u && /* @__PURE__ */ c(Ke, { as: "a", mt: "l", ...u, children: d })
|
|
8005
8001
|
] }) }),
|
|
8006
|
-
/* @__PURE__ */ c(fc, { mt: "l", ...
|
|
8002
|
+
/* @__PURE__ */ c(fc, { mt: "l", ...o })
|
|
8007
8003
|
] }),
|
|
8008
8004
|
/* @__PURE__ */ c(h0, {}),
|
|
8009
|
-
/* @__PURE__ */ c(os, { ...
|
|
8010
|
-
|
|
8011
|
-
] }), Vc = ({
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8005
|
+
/* @__PURE__ */ c(os, { ...s }),
|
|
8006
|
+
r.posts.length > 0 && /* @__PURE__ */ c(mc, { ...r })
|
|
8007
|
+
] }), Vc = ({
|
|
8008
|
+
variant: e = "article",
|
|
8009
|
+
breadcrumb: t,
|
|
8010
|
+
cover: n,
|
|
8011
|
+
summary: i,
|
|
8012
|
+
children: o,
|
|
8013
|
+
...r
|
|
8014
|
+
}) => /* @__PURE__ */ M(V, { mx: "auto", width: "content-container", className: "post-page", children: [
|
|
8015
|
+
/* @__PURE__ */ c(Yn, { ...t, className: "post-page__breadcrumb" }),
|
|
8016
|
+
/* @__PURE__ */ c("img", { className: "post-page__cover", ...n, alt: n.alt }),
|
|
8017
|
+
/* @__PURE__ */ c(
|
|
8018
|
+
k0,
|
|
8019
|
+
{
|
|
8020
|
+
content: /* @__PURE__ */ c(hc, { ...r, variant: e, summary: i, children: o }),
|
|
8021
|
+
sidebar: /* @__PURE__ */ c(tr, { hiddenBelow: "md", variant: e === "tutorial" ? "secondary" : "primary", ...i })
|
|
8022
|
+
}
|
|
8023
|
+
)
|
|
8024
|
+
] });
|
|
8018
8025
|
const Hc = ({ newsletterCard: e, ...t }) => /* @__PURE__ */ c(
|
|
8019
8026
|
k0,
|
|
8020
8027
|
{
|
|
@@ -8096,7 +8103,7 @@ export {
|
|
|
8096
8103
|
rs as CategoryEndingBlock,
|
|
8097
8104
|
ts as CategoryIntroBlock,
|
|
8098
8105
|
Lc as CategoryPage,
|
|
8099
|
-
|
|
8106
|
+
dc as CategoryPageContent,
|
|
8100
8107
|
Gn as CloseButton,
|
|
8101
8108
|
os as ContactCard,
|
|
8102
8109
|
h0 as Divider,
|
|
@@ -8107,6 +8114,8 @@ export {
|
|
|
8107
8114
|
ns as HomeIntroBlock,
|
|
8108
8115
|
$c as HomePage,
|
|
8109
8116
|
Ie as Icon,
|
|
8117
|
+
lc as LastArticlesBlock,
|
|
8118
|
+
uc as LastTutorialsBlock,
|
|
8110
8119
|
k0 as LayoutContentWithSidebar,
|
|
8111
8120
|
Pc as LayoutTemplate,
|
|
8112
8121
|
e0 as Link,
|