@eleven-labs/design-system 0.32.0 → 0.34.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/Molecules/PostMetadata/PostMetadata.d.ts +2 -1
- package/dist/constants/tokenVariables.d.ts +1 -1
- package/dist/constants/tokenVariablesDesktop.d.ts +1 -1
- package/dist/index.es.js +547 -554
- package/dist/index.umd.cjs +12 -12
- 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/dist/types/SystemProps/TypographySystemProps.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as M, jsx as c, Fragment as
|
|
1
|
+
import { jsxs as M, jsx as c, Fragment as Pe } from "react/jsx-runtime";
|
|
2
2
|
import * as nt from "react";
|
|
3
|
-
import
|
|
3
|
+
import _e, { forwardRef as qr, Fragment as rt, useMemo as fn, useRef as Ee, useCallback as we, useEffect as De, cloneElement as Wr, Component as Gr, useLayoutEffect as Yr, useReducer as Xr } from "react";
|
|
4
4
|
const Zr = (e) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...e, children: [
|
|
5
5
|
/* @__PURE__ */ c(
|
|
6
6
|
"path",
|
|
@@ -224,8 +224,8 @@ var mn = { exports: {} };
|
|
|
224
224
|
})();
|
|
225
225
|
})(mn);
|
|
226
226
|
var pi = mn.exports;
|
|
227
|
-
const re = /* @__PURE__ */ Re(pi),
|
|
228
|
-
const xc = ["primary", "secondary", "accent"], Ke =
|
|
227
|
+
const re = /* @__PURE__ */ Re(pi), Ce = qr;
|
|
228
|
+
const xc = ["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,
|
|
231
231
|
{
|
|
@@ -251,9 +251,9 @@ const xc = ["primary", "secondary", "accent"], Ke = Me(
|
|
|
251
251
|
i
|
|
252
252
|
),
|
|
253
253
|
children: [
|
|
254
|
-
t === "secondary" && /* @__PURE__ */ c(
|
|
254
|
+
t === "secondary" && /* @__PURE__ */ c(xe, { name: "arrow", style: { transform: "scaleX(-1)" } }),
|
|
255
255
|
/* @__PURE__ */ c(ee, { as: "span", children: o }),
|
|
256
|
-
t !== "secondary" && /* @__PURE__ */ c(
|
|
256
|
+
t !== "secondary" && /* @__PURE__ */ c(xe, { name: "arrow" })
|
|
257
257
|
]
|
|
258
258
|
}
|
|
259
259
|
)
|
|
@@ -659,7 +659,7 @@ const qe = {
|
|
|
659
659
|
height: ["height"],
|
|
660
660
|
hiddenBelow: ["display"],
|
|
661
661
|
hiddenAbove: ["display"]
|
|
662
|
-
},
|
|
662
|
+
}, _i = {
|
|
663
663
|
textAlign: ["text-align"],
|
|
664
664
|
textSize: ["font-size", "line-height"],
|
|
665
665
|
fontWeight: ["font-weight"],
|
|
@@ -667,11 +667,11 @@ const qe = {
|
|
|
667
667
|
underline: ["text-decoration"],
|
|
668
668
|
textTransform: ["text-transform"],
|
|
669
669
|
lineClamp: ["-webkit-line-clamp"]
|
|
670
|
-
},
|
|
670
|
+
}, yi = {
|
|
671
671
|
...vn,
|
|
672
672
|
...vi,
|
|
673
673
|
...gi,
|
|
674
|
-
...
|
|
674
|
+
..._i,
|
|
675
675
|
...bi,
|
|
676
676
|
...hi
|
|
677
677
|
}, Ei = {
|
|
@@ -702,7 +702,7 @@ const qe = {
|
|
|
702
702
|
}
|
|
703
703
|
return `${e.className}@${e.defaultModifier}`;
|
|
704
704
|
}
|
|
705
|
-
},
|
|
705
|
+
}, Ie = (e) => {
|
|
706
706
|
if (e.propValue && ["string", "number"].includes(typeof e.propValue) || !e.propValue) {
|
|
707
707
|
const t = Ct({
|
|
708
708
|
className: e.className,
|
|
@@ -726,15 +726,15 @@ const qe = {
|
|
|
726
726
|
[`bg-${e.bg}`]: e.bg,
|
|
727
727
|
[`color-${e.color}`]: e.color
|
|
728
728
|
}), Si = (e) => re(
|
|
729
|
-
|
|
729
|
+
Ie({
|
|
730
730
|
propValue: e.display,
|
|
731
731
|
className: "display"
|
|
732
732
|
}),
|
|
733
|
-
|
|
733
|
+
Ie({
|
|
734
734
|
propValue: e.width,
|
|
735
735
|
className: "width"
|
|
736
736
|
}),
|
|
737
|
-
|
|
737
|
+
Ie({
|
|
738
738
|
propValue: e.height,
|
|
739
739
|
className: "height"
|
|
740
740
|
}),
|
|
@@ -743,54 +743,54 @@ const qe = {
|
|
|
743
743
|
[`hidden-below@${e.hiddenBelow}`]: !!e.hiddenBelow
|
|
744
744
|
}
|
|
745
745
|
), Oi = (e) => re(
|
|
746
|
-
...
|
|
746
|
+
...Ie({
|
|
747
747
|
propValue: e.alignItems,
|
|
748
748
|
className: "items"
|
|
749
749
|
}),
|
|
750
|
-
...
|
|
750
|
+
...Ie({
|
|
751
751
|
propValue: e.alignContent,
|
|
752
752
|
className: "content"
|
|
753
753
|
}),
|
|
754
|
-
...
|
|
754
|
+
...Ie({
|
|
755
755
|
propValue: e.justifyContent,
|
|
756
756
|
className: "justify"
|
|
757
757
|
}),
|
|
758
|
-
...
|
|
758
|
+
...Ie({
|
|
759
759
|
propValue: e.gap,
|
|
760
760
|
className: "gap"
|
|
761
761
|
}),
|
|
762
|
-
...
|
|
762
|
+
...Ie({
|
|
763
763
|
propValue: e.gapX,
|
|
764
764
|
className: "gap-x"
|
|
765
765
|
}),
|
|
766
|
-
...
|
|
766
|
+
...Ie({
|
|
767
767
|
propValue: e.gapY,
|
|
768
768
|
className: "gap-y"
|
|
769
769
|
})
|
|
770
770
|
), Ri = (e) => re(
|
|
771
|
-
|
|
771
|
+
Ie({
|
|
772
772
|
propValue: e.flexDirection,
|
|
773
773
|
className: "flex"
|
|
774
774
|
}),
|
|
775
|
-
|
|
775
|
+
Ie({
|
|
776
776
|
propValue: e.flexWrap,
|
|
777
777
|
className: "flex"
|
|
778
778
|
})
|
|
779
|
-
), Ci = (e) =>
|
|
779
|
+
), Ci = (e) => Ie({
|
|
780
780
|
propValue: e.alignSelf,
|
|
781
781
|
className: "self"
|
|
782
782
|
}).join(" "), Mi = (e) => re(
|
|
783
|
-
|
|
783
|
+
Ie({
|
|
784
784
|
propValue: e.flexBasis,
|
|
785
785
|
className: "basis"
|
|
786
786
|
}),
|
|
787
|
-
|
|
787
|
+
Ie({
|
|
788
788
|
propValue: e.flex,
|
|
789
789
|
className: "flex"
|
|
790
790
|
})
|
|
791
|
-
),
|
|
791
|
+
), _n = (e) => re(
|
|
792
792
|
Object.entries(e).filter(([t]) => Object.keys(vn).includes(t)).reduce((t, [n, i]) => (t.push(
|
|
793
|
-
...
|
|
793
|
+
...Ie({
|
|
794
794
|
className: n,
|
|
795
795
|
propValue: i
|
|
796
796
|
})
|
|
@@ -801,7 +801,7 @@ const qe = {
|
|
|
801
801
|
lineClamp: n,
|
|
802
802
|
...i
|
|
803
803
|
}) => re(
|
|
804
|
-
...
|
|
804
|
+
...Ie({
|
|
805
805
|
propValue: e,
|
|
806
806
|
className: "text"
|
|
807
807
|
}),
|
|
@@ -810,20 +810,23 @@ const qe = {
|
|
|
810
810
|
[`text-${i.textTransform}`]: i.textTransform,
|
|
811
811
|
"text-underline": i.underline,
|
|
812
812
|
"text-italic": i.italic,
|
|
813
|
-
[`text-${t}`]: t
|
|
814
|
-
|
|
815
|
-
|
|
813
|
+
[`text-${t}`]: t
|
|
814
|
+
},
|
|
815
|
+
...Ie({
|
|
816
|
+
propValue: n,
|
|
817
|
+
className: "line-clamp"
|
|
818
|
+
})
|
|
816
819
|
), it = (e) => typeof e.props == "object" ? Object.keys(e.props).reduce(
|
|
817
820
|
(t, n) => (e.systemPropNames.includes(n) || (t[n] = e.props[n]), t),
|
|
818
821
|
{}
|
|
819
822
|
) : {}, Ai = (e) => re(
|
|
820
823
|
bn(e),
|
|
821
824
|
Si(e),
|
|
822
|
-
|
|
825
|
+
_n(e),
|
|
823
826
|
Ci(e),
|
|
824
827
|
Mi(e),
|
|
825
828
|
Ti(e)
|
|
826
|
-
),
|
|
829
|
+
), xe = ({ name: e, size: t, width: n, height: i, ...o }) => {
|
|
827
830
|
const r = fi[Ni(e)];
|
|
828
831
|
return /* @__PURE__ */ c(
|
|
829
832
|
r,
|
|
@@ -831,7 +834,7 @@ const qe = {
|
|
|
831
834
|
...it({ props: o, systemPropNames: [...Object.keys(hn), "color"] }),
|
|
832
835
|
className: re(
|
|
833
836
|
"icon",
|
|
834
|
-
|
|
837
|
+
_n(o),
|
|
835
838
|
bn(o),
|
|
836
839
|
o == null ? void 0 : o.className
|
|
837
840
|
),
|
|
@@ -841,7 +844,7 @@ const qe = {
|
|
|
841
844
|
}
|
|
842
845
|
);
|
|
843
846
|
};
|
|
844
|
-
const wc = ["website", "blog"],
|
|
847
|
+
const wc = ["website", "blog"], yn = Ce(({ name: e, size: t, ...n }, i) => /* @__PURE__ */ M(
|
|
845
848
|
F,
|
|
846
849
|
{
|
|
847
850
|
...n,
|
|
@@ -1026,22 +1029,22 @@ function In(e) {
|
|
|
1026
1029
|
className: Tt(a.className)
|
|
1027
1030
|
});
|
|
1028
1031
|
else {
|
|
1029
|
-
var N = Object.keys(n).reduce(function(
|
|
1032
|
+
var N = Object.keys(n).reduce(function(A, h) {
|
|
1030
1033
|
return h.split(".").forEach(function(m) {
|
|
1031
|
-
|
|
1032
|
-
}),
|
|
1033
|
-
}, []),
|
|
1034
|
-
return !N.includes(
|
|
1034
|
+
A.includes(m) || A.push(m);
|
|
1035
|
+
}), A;
|
|
1036
|
+
}, []), T = a.className && a.className.includes("token") ? ["token"] : [], R = a.className && T.concat(a.className.filter(function(A) {
|
|
1037
|
+
return !N.includes(A);
|
|
1035
1038
|
}));
|
|
1036
1039
|
E = i0(i0({}, a), {}, {
|
|
1037
1040
|
className: Tt(R) || void 0,
|
|
1038
1041
|
style: ji(a.className, Object.assign({}, a.style, o), n)
|
|
1039
1042
|
});
|
|
1040
1043
|
}
|
|
1041
|
-
var
|
|
1042
|
-
return /* @__PURE__ */
|
|
1044
|
+
var _ = p(t.children);
|
|
1045
|
+
return /* @__PURE__ */ _e.createElement(d, Y({
|
|
1043
1046
|
key: s
|
|
1044
|
-
}, E),
|
|
1047
|
+
}, E), _);
|
|
1045
1048
|
}
|
|
1046
1049
|
}
|
|
1047
1050
|
const Fi = function(e, t) {
|
|
@@ -1078,7 +1081,7 @@ function Yi(e) {
|
|
|
1078
1081
|
var t = e.lines, n = e.startingLineNumber, i = e.style;
|
|
1079
1082
|
return t.map(function(o, r) {
|
|
1080
1083
|
var s = r + n;
|
|
1081
|
-
return /* @__PURE__ */
|
|
1084
|
+
return /* @__PURE__ */ _e.createElement("span", {
|
|
1082
1085
|
key: "line-".concat(r),
|
|
1083
1086
|
className: "react-syntax-highlighter-line-number",
|
|
1084
1087
|
style: typeof i == "function" ? i(s) : i
|
|
@@ -1091,7 +1094,7 @@ function Xi(e) {
|
|
|
1091
1094
|
float: "left",
|
|
1092
1095
|
paddingRight: "10px"
|
|
1093
1096
|
} : i, r = e.numberStyle, s = r === void 0 ? {} : r, a = e.startingLineNumber;
|
|
1094
|
-
return /* @__PURE__ */
|
|
1097
|
+
return /* @__PURE__ */ _e.createElement("code", {
|
|
1095
1098
|
style: Object.assign({}, n, o)
|
|
1096
1099
|
}, Yi({
|
|
1097
1100
|
lines: t.replace(/\n$/, "").split(`
|
|
@@ -1162,7 +1165,7 @@ function Nn(e) {
|
|
|
1162
1165
|
}
|
|
1163
1166
|
function Qi(e, t, n, i, o, r, s, a, l) {
|
|
1164
1167
|
var d, u = Nn(e.value), p = [], E = -1, N = 0;
|
|
1165
|
-
function
|
|
1168
|
+
function T(f, w) {
|
|
1166
1169
|
var k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
1167
1170
|
return x0({
|
|
1168
1171
|
children: f,
|
|
@@ -1183,11 +1186,11 @@ function Qi(e, t, n, i, o, r, s, a, l) {
|
|
|
1183
1186
|
}
|
|
1184
1187
|
return f;
|
|
1185
1188
|
}
|
|
1186
|
-
function
|
|
1189
|
+
function _(f, w) {
|
|
1187
1190
|
var k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
1188
|
-
return t || k.length > 0 ?
|
|
1191
|
+
return t || k.length > 0 ? T(f, w, k) : R(f, w);
|
|
1189
1192
|
}
|
|
1190
|
-
for (var
|
|
1193
|
+
for (var A = function() {
|
|
1191
1194
|
var w = u[N], k = w.children[0].value, P = Gi(k);
|
|
1192
1195
|
if (P) {
|
|
1193
1196
|
var q = k.split(`
|
|
@@ -1202,7 +1205,7 @@ function Qi(e, t, n, i, o, r, s, a, l) {
|
|
|
1202
1205
|
var Z = u.slice(E + 1, N).concat(x0({
|
|
1203
1206
|
children: [ne],
|
|
1204
1207
|
className: w.properties.className
|
|
1205
|
-
})), ie =
|
|
1208
|
+
})), ie = _(Z, X);
|
|
1206
1209
|
p.push(ie);
|
|
1207
1210
|
} else if (G === q.length - 1) {
|
|
1208
1211
|
var oe = u[N + 1] && u[N + 1].children && u[N + 1].children[0], W = {
|
|
@@ -1216,22 +1219,22 @@ function Qi(e, t, n, i, o, r, s, a, l) {
|
|
|
1216
1219
|
});
|
|
1217
1220
|
u.splice(N + 1, 0, pe);
|
|
1218
1221
|
} else {
|
|
1219
|
-
var ge = [W], x =
|
|
1222
|
+
var ge = [W], x = _(ge, X, w.properties.className);
|
|
1220
1223
|
p.push(x);
|
|
1221
1224
|
}
|
|
1222
1225
|
} else {
|
|
1223
|
-
var D = [ne], K =
|
|
1226
|
+
var D = [ne], K = _(D, X, w.properties.className);
|
|
1224
1227
|
p.push(K);
|
|
1225
1228
|
}
|
|
1226
1229
|
}), E = N;
|
|
1227
1230
|
}
|
|
1228
1231
|
N++;
|
|
1229
1232
|
}; N < u.length; )
|
|
1230
|
-
|
|
1233
|
+
A();
|
|
1231
1234
|
if (E !== u.length - 1) {
|
|
1232
1235
|
var h = u.slice(E + 1, u.length);
|
|
1233
1236
|
if (h && h.length) {
|
|
1234
|
-
var m = i && p.length + r, g =
|
|
1237
|
+
var m = i && p.length + r, g = _(h, m);
|
|
1235
1238
|
p.push(g);
|
|
1236
1239
|
}
|
|
1237
1240
|
}
|
|
@@ -1277,9 +1280,9 @@ function to(e, t) {
|
|
|
1277
1280
|
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 ? {
|
|
1278
1281
|
className: o ? "language-".concat(o) : void 0,
|
|
1279
1282
|
style: ze(ze({}, a['code[class*="language-"]']), a['code[class*="language-'.concat(o, '"]')])
|
|
1280
|
-
} : u, E = i.useInlineStyles, N = E === void 0 ? !0 : E,
|
|
1283
|
+
} : u, E = i.useInlineStyles, N = E === void 0 ? !0 : E, T = i.showLineNumbers, R = T === void 0 ? !1 : T, _ = i.showInlineLineNumbers, A = _ === void 0 ? !0 : _, h = i.startingLineNumber, m = h === void 0 ? 1 : h, g = i.lineNumberContainerStyle, f = i.lineNumberStyle, w = f === void 0 ? {} : f, k = 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 = ki(i, qi);
|
|
1281
1284
|
ge = ge || e;
|
|
1282
|
-
var D = R ? /* @__PURE__ */
|
|
1285
|
+
var D = R ? /* @__PURE__ */ _e.createElement(Xi, {
|
|
1283
1286
|
containerStyle: g,
|
|
1284
1287
|
codeStyle: p.style || {},
|
|
1285
1288
|
numberStyle: w,
|
|
@@ -1298,27 +1301,27 @@ function to(e, t) {
|
|
|
1298
1301
|
}) : p.style = ze(ze({}, p.style), {}, {
|
|
1299
1302
|
whiteSpace: "pre"
|
|
1300
1303
|
}), !ge)
|
|
1301
|
-
return /* @__PURE__ */
|
|
1304
|
+
return /* @__PURE__ */ _e.createElement(Z, v, D, /* @__PURE__ */ _e.createElement(oe, p, pe));
|
|
1302
1305
|
(k === void 0 && X || q) && (k = !0), X = X || Ji;
|
|
1303
|
-
var
|
|
1306
|
+
var y = [{
|
|
1304
1307
|
type: "text",
|
|
1305
1308
|
value: pe
|
|
1306
1309
|
}], I = eo({
|
|
1307
1310
|
astGenerator: ge,
|
|
1308
1311
|
language: o,
|
|
1309
1312
|
code: pe,
|
|
1310
|
-
defaultCodeValue:
|
|
1313
|
+
defaultCodeValue: y
|
|
1311
1314
|
});
|
|
1312
|
-
I.language === null && (I.value =
|
|
1313
|
-
var C = I.value.length + m, z = Qi(I, k, G, R,
|
|
1314
|
-
return /* @__PURE__ */
|
|
1315
|
+
I.language === null && (I.value = y);
|
|
1316
|
+
var C = I.value.length + m, z = Qi(I, k, G, R, A, m, C, w, q);
|
|
1317
|
+
return /* @__PURE__ */ _e.createElement(Z, v, /* @__PURE__ */ _e.createElement(oe, p, !A && D, X({
|
|
1315
1318
|
rows: z,
|
|
1316
1319
|
stylesheet: a,
|
|
1317
1320
|
useInlineStyles: N
|
|
1318
1321
|
})));
|
|
1319
1322
|
};
|
|
1320
1323
|
}
|
|
1321
|
-
var
|
|
1324
|
+
var r0 = {};
|
|
1322
1325
|
function ot(e) {
|
|
1323
1326
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
1324
1327
|
throw new Error("map is read-only");
|
|
@@ -1579,7 +1582,7 @@ const go = /\b\B/, Rn = "[a-zA-Z]\\w*", st = "[a-zA-Z_]\\w*", ct = "\\b\\d+(\\.\
|
|
|
1579
1582
|
begin: "(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",
|
|
1580
1583
|
relevance: 0
|
|
1581
1584
|
}), i;
|
|
1582
|
-
},
|
|
1585
|
+
}, _o = A0("//", "$"), yo = A0("/\\*", "\\*/"), Eo = A0("#", "$"), Io = {
|
|
1583
1586
|
className: "number",
|
|
1584
1587
|
begin: ct,
|
|
1585
1588
|
relevance: 0
|
|
@@ -1660,8 +1663,8 @@ var b0 = /* @__PURE__ */ Object.freeze({
|
|
|
1660
1663
|
QUOTE_STRING_MODE: bo,
|
|
1661
1664
|
PHRASAL_WORDS_MODE: Tn,
|
|
1662
1665
|
COMMENT: A0,
|
|
1663
|
-
C_LINE_COMMENT_MODE:
|
|
1664
|
-
C_BLOCK_COMMENT_MODE:
|
|
1666
|
+
C_LINE_COMMENT_MODE: _o,
|
|
1667
|
+
C_BLOCK_COMMENT_MODE: yo,
|
|
1665
1668
|
HASH_COMMENT_MODE: Eo,
|
|
1666
1669
|
NUMBER_MODE: Io,
|
|
1667
1670
|
C_NUMBER_MODE: xo,
|
|
@@ -1957,7 +1960,7 @@ const Lt = {}, L0 = (e) => {
|
|
|
1957
1960
|
console.error(e);
|
|
1958
1961
|
}, $t = (e, ...t) => {
|
|
1959
1962
|
console.log(`WARN: ${e}`, ...t);
|
|
1960
|
-
},
|
|
1963
|
+
}, Ae = (e, t) => {
|
|
1961
1964
|
Lt[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), Lt[`${e}/${t}`] = !0);
|
|
1962
1965
|
}, $0 = s0, Bt = Ze, Vt = Symbol("nomatch"), Wo = function(e) {
|
|
1963
1966
|
const t = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), i = [];
|
|
@@ -1980,26 +1983,26 @@ const Lt = {}, L0 = (e) => {
|
|
|
1980
1983
|
function u(b) {
|
|
1981
1984
|
let v = b.className + " ";
|
|
1982
1985
|
v += b.parentNode ? b.parentNode.className : "";
|
|
1983
|
-
const
|
|
1984
|
-
if (
|
|
1985
|
-
const I = ie(
|
|
1986
|
-
return I || ($t(s.replace("{}",
|
|
1986
|
+
const y = l.languageDetectRe.exec(v);
|
|
1987
|
+
if (y) {
|
|
1988
|
+
const I = ie(y[1]);
|
|
1989
|
+
return I || ($t(s.replace("{}", y[1])), $t("Falling back to no-highlight mode for this block.", b)), I ? y[1] : "no-highlight";
|
|
1987
1990
|
}
|
|
1988
1991
|
return v.split(/\s+/).find((I) => d(I) || ie(I));
|
|
1989
1992
|
}
|
|
1990
|
-
function p(b, v,
|
|
1993
|
+
function p(b, v, y, I) {
|
|
1991
1994
|
let C = "", z = "";
|
|
1992
|
-
typeof v == "object" ? (C = b,
|
|
1995
|
+
typeof v == "object" ? (C = b, y = v.ignoreIllegals, z = v.language, I = void 0) : (Ae("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ae("10.7.0", `Please use highlight(code, options) instead.
|
|
1993
1996
|
https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
1994
1997
|
const H = {
|
|
1995
1998
|
code: C,
|
|
1996
1999
|
language: z
|
|
1997
2000
|
};
|
|
1998
2001
|
x("before:highlight", H);
|
|
1999
|
-
const B = H.result ? H.result : E(H.language, H.code,
|
|
2002
|
+
const B = H.result ? H.result : E(H.language, H.code, y, I);
|
|
2000
2003
|
return B.code = H.code, x("after:highlight", B), B;
|
|
2001
2004
|
}
|
|
2002
|
-
function E(b, v,
|
|
2005
|
+
function E(b, v, y, I) {
|
|
2003
2006
|
function C($, j) {
|
|
2004
2007
|
const te = $e.case_insensitive ? j[0].toLowerCase() : j[0];
|
|
2005
2008
|
return Object.prototype.hasOwnProperty.call($.keywords, te) && $.keywords[te];
|
|
@@ -2038,10 +2041,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2038
2041
|
me.addText(fe);
|
|
2039
2042
|
return;
|
|
2040
2043
|
}
|
|
2041
|
-
$ = E(J.subLanguage, fe, !0,
|
|
2044
|
+
$ = E(J.subLanguage, fe, !0, Me[J.subLanguage]), Me[J.subLanguage] = /** @type {CompiledMode} */
|
|
2042
2045
|
$.top;
|
|
2043
2046
|
} else
|
|
2044
|
-
$ =
|
|
2047
|
+
$ = T(fe, J.subLanguage.length ? J.subLanguage : null);
|
|
2045
2048
|
J.relevance > 0 && (Fe += $.relevance), me.addSublanguage($.emitter, $.language);
|
|
2046
2049
|
}
|
|
2047
2050
|
function B() {
|
|
@@ -2067,7 +2070,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2067
2070
|
return S($.parent, j, te);
|
|
2068
2071
|
}
|
|
2069
2072
|
function de($) {
|
|
2070
|
-
return J.matcher.regexIndex === 0 ? (fe += $[0], 1) : (
|
|
2073
|
+
return J.matcher.regexIndex === 0 ? (fe += $[0], 1) : (Te = !0, 0);
|
|
2071
2074
|
}
|
|
2072
2075
|
function L($) {
|
|
2073
2076
|
const j = $[0], te = $.rule, ue = new kt(te), Oe = [te.__beforeBegin, te["on:begin"]];
|
|
@@ -2076,7 +2079,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2076
2079
|
return de(j);
|
|
2077
2080
|
return te && te.endSameAsBegin && (te.endRe = ao(j)), te.skip ? fe += j : (te.excludeBegin && (fe += j), B(), !te.returnBegin && !te.excludeBegin && (fe = j)), Q(te), te.returnBegin ? 0 : j.length;
|
|
2078
2081
|
}
|
|
2079
|
-
function
|
|
2082
|
+
function ye($) {
|
|
2080
2083
|
const j = $[0], te = v.substr($.index), ue = S(J, $, te);
|
|
2081
2084
|
if (!ue)
|
|
2082
2085
|
return Vt;
|
|
@@ -2107,11 +2110,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2107
2110
|
}
|
|
2108
2111
|
if (Le = j, j.type === "begin")
|
|
2109
2112
|
return L(j);
|
|
2110
|
-
if (j.type === "illegal" && !
|
|
2113
|
+
if (j.type === "illegal" && !y) {
|
|
2111
2114
|
const ue = new Error('Illegal lexeme "' + te + '" for mode "' + (J.className || "<unnamed>") + '"');
|
|
2112
2115
|
throw ue.mode = J, ue;
|
|
2113
2116
|
} else if (j.type === "end") {
|
|
2114
|
-
const ue =
|
|
2117
|
+
const ue = ye(j);
|
|
2115
2118
|
if (ue !== Vt)
|
|
2116
2119
|
return ue;
|
|
2117
2120
|
}
|
|
@@ -2126,12 +2129,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2126
2129
|
throw L0(s.replace("{}", b)), new Error('Unknown language: "' + b + '"');
|
|
2127
2130
|
const Be = Ho($e, { plugins: i });
|
|
2128
2131
|
let Xe = "", J = I || Be;
|
|
2129
|
-
const
|
|
2132
|
+
const Me = {}, me = new l.__emitter(l);
|
|
2130
2133
|
be();
|
|
2131
|
-
let fe = "", Fe = 0, Ne = 0, Ve = 0,
|
|
2134
|
+
let fe = "", Fe = 0, Ne = 0, Ve = 0, Te = !1;
|
|
2132
2135
|
try {
|
|
2133
2136
|
for (J.matcher.considerAll(); ; ) {
|
|
2134
|
-
Ve++,
|
|
2137
|
+
Ve++, Te ? Te = !1 : J.matcher.considerAll(), J.matcher.lastIndex = Ne;
|
|
2135
2138
|
const $ = J.matcher.exec(v);
|
|
2136
2139
|
if (!$)
|
|
2137
2140
|
break;
|
|
@@ -2185,12 +2188,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2185
2188
|
};
|
|
2186
2189
|
return v.emitter.addText(b), v;
|
|
2187
2190
|
}
|
|
2188
|
-
function
|
|
2191
|
+
function T(b, v) {
|
|
2189
2192
|
v = v || l.languages || Object.keys(t);
|
|
2190
|
-
const
|
|
2193
|
+
const y = N(b), I = v.filter(ie).filter(W).map(
|
|
2191
2194
|
(Q) => E(Q, b, !1)
|
|
2192
2195
|
);
|
|
2193
|
-
I.unshift(
|
|
2196
|
+
I.unshift(y);
|
|
2194
2197
|
const C = I.sort((Q, S) => {
|
|
2195
2198
|
if (Q.relevance !== S.relevance)
|
|
2196
2199
|
return S.relevance - Q.relevance;
|
|
@@ -2208,11 +2211,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2208
2211
|
return l.tabReplace || l.useBR ? b.replace(r, (v) => v === `
|
|
2209
2212
|
` ? l.useBR ? "<br>" : v : l.tabReplace ? v.replace(/\t/g, l.tabReplace) : v) : b;
|
|
2210
2213
|
}
|
|
2211
|
-
function
|
|
2212
|
-
const I = v ? n[v] :
|
|
2214
|
+
function _(b, v, y) {
|
|
2215
|
+
const I = v ? n[v] : y;
|
|
2213
2216
|
b.classList.add("hljs"), I && b.classList.add(I);
|
|
2214
2217
|
}
|
|
2215
|
-
const
|
|
2218
|
+
const A = {
|
|
2216
2219
|
"before:highlightElement": ({ el: b }) => {
|
|
2217
2220
|
l.useBR && (b.innerHTML = b.innerHTML.replace(/\n/g, "").replace(/<br[ /]*>/g, `
|
|
2218
2221
|
`));
|
|
@@ -2230,15 +2233,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2230
2233
|
};
|
|
2231
2234
|
function g(b) {
|
|
2232
2235
|
let v = null;
|
|
2233
|
-
const
|
|
2234
|
-
if (d(
|
|
2236
|
+
const y = u(b);
|
|
2237
|
+
if (d(y))
|
|
2235
2238
|
return;
|
|
2236
2239
|
x(
|
|
2237
2240
|
"before:highlightElement",
|
|
2238
|
-
{ el: b, language:
|
|
2241
|
+
{ el: b, language: y }
|
|
2239
2242
|
), v = b;
|
|
2240
|
-
const I = v.textContent, C =
|
|
2241
|
-
x("after:highlightElement", { el: b, result: C, text: I }), b.innerHTML = C.value,
|
|
2243
|
+
const I = v.textContent, C = y ? p(I, { language: y, ignoreIllegals: !0 }) : T(I);
|
|
2244
|
+
x("after:highlightElement", { el: b, result: C, text: I }), b.innerHTML = C.value, _(b, y, C.language), b.result = {
|
|
2242
2245
|
language: C.language,
|
|
2243
2246
|
// TODO: remove with version 11.0
|
|
2244
2247
|
re: C.relevance,
|
|
@@ -2251,15 +2254,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2251
2254
|
});
|
|
2252
2255
|
}
|
|
2253
2256
|
function f(b) {
|
|
2254
|
-
b.useBR && (
|
|
2257
|
+
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);
|
|
2255
2258
|
}
|
|
2256
2259
|
const w = () => {
|
|
2257
2260
|
if (w.called)
|
|
2258
2261
|
return;
|
|
2259
|
-
w.called = !0,
|
|
2262
|
+
w.called = !0, Ae("10.6.0", "initHighlighting() is deprecated. Use highlightAll() instead."), document.querySelectorAll("pre code").forEach(g);
|
|
2260
2263
|
};
|
|
2261
2264
|
function k() {
|
|
2262
|
-
|
|
2265
|
+
Ae("10.6.0", "initHighlightingOnLoad() is deprecated. Use highlightAll() instead."), P = !0;
|
|
2263
2266
|
}
|
|
2264
2267
|
let P = !1;
|
|
2265
2268
|
function q() {
|
|
@@ -2274,17 +2277,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2274
2277
|
}
|
|
2275
2278
|
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", U, !1);
|
|
2276
2279
|
function G(b, v) {
|
|
2277
|
-
let
|
|
2280
|
+
let y = null;
|
|
2278
2281
|
try {
|
|
2279
|
-
|
|
2282
|
+
y = v(e);
|
|
2280
2283
|
} catch (I) {
|
|
2281
2284
|
if (L0("Language definition for '{}' could not be registered.".replace("{}", b)), o)
|
|
2282
2285
|
L0(I);
|
|
2283
2286
|
else
|
|
2284
2287
|
throw I;
|
|
2285
|
-
|
|
2288
|
+
y = a;
|
|
2286
2289
|
}
|
|
2287
|
-
|
|
2290
|
+
y.name || (y.name = b), t[b] = y, y.rawDefinition = v.bind(null, e), y.aliases && oe(y.aliases, { languageName: b });
|
|
2288
2291
|
}
|
|
2289
2292
|
function X(b) {
|
|
2290
2293
|
delete t[b];
|
|
@@ -2295,7 +2298,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2295
2298
|
return Object.keys(t);
|
|
2296
2299
|
}
|
|
2297
2300
|
function Z(b) {
|
|
2298
|
-
|
|
2301
|
+
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");
|
|
2299
2302
|
const v = ie(b);
|
|
2300
2303
|
if (v)
|
|
2301
2304
|
return v;
|
|
@@ -2305,8 +2308,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2305
2308
|
return b = (b || "").toLowerCase(), t[b] || t[n[b]];
|
|
2306
2309
|
}
|
|
2307
2310
|
function oe(b, { languageName: v }) {
|
|
2308
|
-
typeof b == "string" && (b = [b]), b.forEach((
|
|
2309
|
-
n[
|
|
2311
|
+
typeof b == "string" && (b = [b]), b.forEach((y) => {
|
|
2312
|
+
n[y.toLowerCase()] = v;
|
|
2310
2313
|
});
|
|
2311
2314
|
}
|
|
2312
2315
|
function W(b) {
|
|
@@ -2328,20 +2331,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2328
2331
|
pe(b), i.push(b);
|
|
2329
2332
|
}
|
|
2330
2333
|
function x(b, v) {
|
|
2331
|
-
const
|
|
2334
|
+
const y = b;
|
|
2332
2335
|
i.forEach(function(I) {
|
|
2333
|
-
I[
|
|
2336
|
+
I[y] && I[y](v);
|
|
2334
2337
|
});
|
|
2335
2338
|
}
|
|
2336
2339
|
function D(b) {
|
|
2337
|
-
return
|
|
2340
|
+
return Ae("10.2.0", "fixMarkup will be removed entirely in v11.0"), Ae("10.2.0", "Please see https://github.com/highlightjs/highlight.js/issues/2534"), R(b);
|
|
2338
2341
|
}
|
|
2339
2342
|
function K(b) {
|
|
2340
|
-
return
|
|
2343
|
+
return Ae("10.7.0", "highlightBlock will be removed entirely in v12.0"), Ae("10.7.0", "Please use highlightElement now."), g(b);
|
|
2341
2344
|
}
|
|
2342
2345
|
Object.assign(e, {
|
|
2343
2346
|
highlight: p,
|
|
2344
|
-
highlightAuto:
|
|
2347
|
+
highlightAuto: T,
|
|
2345
2348
|
highlightAll: q,
|
|
2346
2349
|
fixMarkup: D,
|
|
2347
2350
|
highlightElement: g,
|
|
@@ -2368,7 +2371,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2368
2371
|
}, e.versionString = Uo;
|
|
2369
2372
|
for (const b in b0)
|
|
2370
2373
|
typeof b0[b] == "object" && On(b0[b]);
|
|
2371
|
-
return Object.assign(e, b0), e.addPlugin(
|
|
2374
|
+
return Object.assign(e, b0), e.addPlugin(A), e.addPlugin(Fo), e.addPlugin(m), e;
|
|
2372
2375
|
};
|
|
2373
2376
|
var Go = Wo({}), Yo = Go, Dn = { exports: {} };
|
|
2374
2377
|
(function(e) {
|
|
@@ -2382,7 +2385,7 @@ var Go = Wo({}), Yo = Go, Dn = { exports: {} };
|
|
|
2382
2385
|
return o.apply(null, [r].concat(s));
|
|
2383
2386
|
}
|
|
2384
2387
|
function o(r) {
|
|
2385
|
-
for (var s = 1, a = [].slice.call(arguments), l = 0, d = r.length, u = "", p, E = !1, N,
|
|
2388
|
+
for (var s = 1, a = [].slice.call(arguments), l = 0, d = r.length, u = "", p, E = !1, N, T, R = !1, _, A = function() {
|
|
2386
2389
|
return a[s++];
|
|
2387
2390
|
}, h = function() {
|
|
2388
2391
|
for (var m = ""; /\d/.test(r[l]); )
|
|
@@ -2390,33 +2393,33 @@ var Go = Wo({}), Yo = Go, Dn = { exports: {} };
|
|
|
2390
2393
|
return m.length > 0 ? parseInt(m) : null;
|
|
2391
2394
|
}; l < d; ++l)
|
|
2392
2395
|
if (p = r[l], E)
|
|
2393
|
-
switch (E = !1, p == "." ? (R = !1, p = r[++l]) : p == "0" && r[l + 1] == "." ? (R = !0, l += 2, p = r[l]) : R = !0,
|
|
2396
|
+
switch (E = !1, p == "." ? (R = !1, p = r[++l]) : p == "0" && r[l + 1] == "." ? (R = !0, l += 2, p = r[l]) : R = !0, _ = h(), p) {
|
|
2394
2397
|
case "b":
|
|
2395
|
-
u += parseInt(
|
|
2398
|
+
u += parseInt(A(), 10).toString(2);
|
|
2396
2399
|
break;
|
|
2397
2400
|
case "c":
|
|
2398
|
-
N =
|
|
2401
|
+
N = A(), typeof N == "string" || N instanceof String ? u += N : u += String.fromCharCode(parseInt(N, 10));
|
|
2399
2402
|
break;
|
|
2400
2403
|
case "d":
|
|
2401
|
-
u += parseInt(
|
|
2404
|
+
u += parseInt(A(), 10);
|
|
2402
2405
|
break;
|
|
2403
2406
|
case "f":
|
|
2404
|
-
|
|
2407
|
+
T = String(parseFloat(A()).toFixed(_ || 6)), u += R ? T : T.replace(/^0/, "");
|
|
2405
2408
|
break;
|
|
2406
2409
|
case "j":
|
|
2407
|
-
u += JSON.stringify(
|
|
2410
|
+
u += JSON.stringify(A());
|
|
2408
2411
|
break;
|
|
2409
2412
|
case "o":
|
|
2410
|
-
u += "0" + parseInt(
|
|
2413
|
+
u += "0" + parseInt(A(), 10).toString(8);
|
|
2411
2414
|
break;
|
|
2412
2415
|
case "s":
|
|
2413
|
-
u +=
|
|
2416
|
+
u += A();
|
|
2414
2417
|
break;
|
|
2415
2418
|
case "x":
|
|
2416
|
-
u += "0x" + parseInt(
|
|
2419
|
+
u += "0x" + parseInt(A(), 10).toString(16);
|
|
2417
2420
|
break;
|
|
2418
2421
|
case "X":
|
|
2419
|
-
u += "0x" + parseInt(
|
|
2422
|
+
u += "0x" + parseInt(A(), 10).toString(16).toUpperCase();
|
|
2420
2423
|
break;
|
|
2421
2424
|
default:
|
|
2422
2425
|
u += p;
|
|
@@ -2443,11 +2446,11 @@ function Je(e) {
|
|
|
2443
2446
|
}
|
|
2444
2447
|
}
|
|
2445
2448
|
var Ue = Yo, w0 = Qo;
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2449
|
+
r0.highlight = Pn;
|
|
2450
|
+
r0.highlightAuto = ea;
|
|
2451
|
+
r0.registerLanguage = ta;
|
|
2452
|
+
r0.listLanguages = na;
|
|
2453
|
+
r0.registerAlias = ra;
|
|
2451
2454
|
Ge.prototype.addText = aa;
|
|
2452
2455
|
Ge.prototype.addKeyword = ia;
|
|
2453
2456
|
Ge.prototype.addSublanguage = oa;
|
|
@@ -2535,19 +2538,19 @@ function $n(e) {
|
|
|
2535
2538
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
2536
2539
|
}
|
|
2537
2540
|
function Ht(e) {
|
|
2538
|
-
return
|
|
2541
|
+
return t0("(?=", e, ")");
|
|
2539
2542
|
}
|
|
2540
2543
|
function ua(e) {
|
|
2541
|
-
return
|
|
2544
|
+
return t0("(", e, ")?");
|
|
2542
2545
|
}
|
|
2543
|
-
function
|
|
2546
|
+
function t0(...e) {
|
|
2544
2547
|
return e.map((n) => $n(n)).join("");
|
|
2545
2548
|
}
|
|
2546
2549
|
function da(...e) {
|
|
2547
2550
|
return "(" + e.map((n) => $n(n)).join("|") + ")";
|
|
2548
2551
|
}
|
|
2549
2552
|
function fa(e) {
|
|
2550
|
-
const t =
|
|
2553
|
+
const t = t0(/[A-Z_]/, ua(/[A-Z0-9_.-]*:/), /[A-Z0-9_.-]*/), n = /[A-Za-z0-9._:-]+/, i = {
|
|
2551
2554
|
className: "symbol",
|
|
2552
2555
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
2553
2556
|
}, o = {
|
|
@@ -2717,9 +2720,9 @@ function fa(e) {
|
|
|
2717
2720
|
// open tag
|
|
2718
2721
|
{
|
|
2719
2722
|
className: "tag",
|
|
2720
|
-
begin:
|
|
2723
|
+
begin: t0(
|
|
2721
2724
|
/</,
|
|
2722
|
-
Ht(
|
|
2725
|
+
Ht(t0(
|
|
2723
2726
|
t,
|
|
2724
2727
|
// <tag/>
|
|
2725
2728
|
// <tag>
|
|
@@ -2740,9 +2743,9 @@ function fa(e) {
|
|
|
2740
2743
|
// close tag
|
|
2741
2744
|
{
|
|
2742
2745
|
className: "tag",
|
|
2743
|
-
begin:
|
|
2746
|
+
begin: t0(
|
|
2744
2747
|
/<\//,
|
|
2745
|
-
Ht(
|
|
2748
|
+
Ht(t0(
|
|
2746
2749
|
t,
|
|
2747
2750
|
/>/
|
|
2748
2751
|
))
|
|
@@ -2888,7 +2891,7 @@ function ha(e) {
|
|
|
2888
2891
|
};
|
|
2889
2892
|
}
|
|
2890
2893
|
var va = ha;
|
|
2891
|
-
const ba = /* @__PURE__ */ Re(va), zt = "[A-Za-z$_][0-9A-Za-z$_]*",
|
|
2894
|
+
const ba = /* @__PURE__ */ Re(va), zt = "[A-Za-z$_][0-9A-Za-z$_]*", _a = [
|
|
2892
2895
|
"as",
|
|
2893
2896
|
// for exports
|
|
2894
2897
|
"in",
|
|
@@ -2931,7 +2934,7 @@ const ba = /* @__PURE__ */ Re(va), zt = "[A-Za-z$_][0-9A-Za-z$_]*", ya = [
|
|
|
2931
2934
|
"from",
|
|
2932
2935
|
"export",
|
|
2933
2936
|
"extends"
|
|
2934
|
-
],
|
|
2937
|
+
], ya = [
|
|
2935
2938
|
"true",
|
|
2936
2939
|
"false",
|
|
2937
2940
|
"null",
|
|
@@ -3049,8 +3052,8 @@ function Oa(e) {
|
|
|
3049
3052
|
}
|
|
3050
3053
|
}, r = {
|
|
3051
3054
|
$pattern: zt,
|
|
3052
|
-
keyword:
|
|
3053
|
-
literal:
|
|
3055
|
+
keyword: _a,
|
|
3056
|
+
literal: ya,
|
|
3054
3057
|
built_in: Na
|
|
3055
3058
|
}, s = "[0-9](_?[0-9])*", a = `\\.(${s})`, l = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
|
|
3056
3059
|
className: "number",
|
|
@@ -3147,7 +3150,7 @@ function Oa(e) {
|
|
|
3147
3150
|
e.C_BLOCK_COMMENT_MODE,
|
|
3148
3151
|
e.C_LINE_COMMENT_MODE
|
|
3149
3152
|
]
|
|
3150
|
-
},
|
|
3153
|
+
}, _ = [
|
|
3151
3154
|
e.APOS_STRING_MODE,
|
|
3152
3155
|
e.QUOTE_STRING_MODE,
|
|
3153
3156
|
p,
|
|
@@ -3156,7 +3159,7 @@ function Oa(e) {
|
|
|
3156
3159
|
d,
|
|
3157
3160
|
e.REGEXP_MODE
|
|
3158
3161
|
];
|
|
3159
|
-
u.contains =
|
|
3162
|
+
u.contains = _.concat({
|
|
3160
3163
|
// we need to pair up {} inside our subst to prevent
|
|
3161
3164
|
// it from ending too early by matching another }
|
|
3162
3165
|
begin: /\{/,
|
|
@@ -3164,15 +3167,15 @@ function Oa(e) {
|
|
|
3164
3167
|
keywords: r,
|
|
3165
3168
|
contains: [
|
|
3166
3169
|
"self"
|
|
3167
|
-
].concat(
|
|
3170
|
+
].concat(_)
|
|
3168
3171
|
});
|
|
3169
|
-
const
|
|
3172
|
+
const A = [].concat(R, u.contains), h = A.concat([
|
|
3170
3173
|
// eat recursive parens in sub expressions
|
|
3171
3174
|
{
|
|
3172
3175
|
begin: /\(/,
|
|
3173
3176
|
end: /\)/,
|
|
3174
3177
|
keywords: r,
|
|
3175
|
-
contains: ["self"].concat(
|
|
3178
|
+
contains: ["self"].concat(A)
|
|
3176
3179
|
}
|
|
3177
3180
|
]), m = {
|
|
3178
3181
|
className: "params",
|
|
@@ -3694,7 +3697,7 @@ function $a(e) {
|
|
|
3694
3697
|
contains: [E],
|
|
3695
3698
|
illegal: "\\n",
|
|
3696
3699
|
relevance: 0
|
|
3697
|
-
},
|
|
3700
|
+
}, T = {
|
|
3698
3701
|
begin: "\\[",
|
|
3699
3702
|
end: "\\]",
|
|
3700
3703
|
contains: [E],
|
|
@@ -3777,10 +3780,10 @@ function $a(e) {
|
|
|
3777
3780
|
relevance: 0
|
|
3778
3781
|
},
|
|
3779
3782
|
N,
|
|
3780
|
-
|
|
3783
|
+
T,
|
|
3781
3784
|
r
|
|
3782
|
-
],
|
|
3783
|
-
return
|
|
3785
|
+
], _ = [...R];
|
|
3786
|
+
return _.pop(), _.push(s), E.contains = _, {
|
|
3784
3787
|
name: "YAML",
|
|
3785
3788
|
case_insensitive: !0,
|
|
3786
3789
|
aliases: ["yml"],
|
|
@@ -4103,7 +4106,7 @@ function Wa(e) {
|
|
|
4103
4106
|
e.C_BLOCK_COMMENT_MODE,
|
|
4104
4107
|
e.C_LINE_COMMENT_MODE
|
|
4105
4108
|
]
|
|
4106
|
-
},
|
|
4109
|
+
}, _ = [
|
|
4107
4110
|
e.APOS_STRING_MODE,
|
|
4108
4111
|
e.QUOTE_STRING_MODE,
|
|
4109
4112
|
p,
|
|
@@ -4112,7 +4115,7 @@ function Wa(e) {
|
|
|
4112
4115
|
d,
|
|
4113
4116
|
e.REGEXP_MODE
|
|
4114
4117
|
];
|
|
4115
|
-
u.contains =
|
|
4118
|
+
u.contains = _.concat({
|
|
4116
4119
|
// we need to pair up {} inside our subst to prevent
|
|
4117
4120
|
// it from ending too early by matching another }
|
|
4118
4121
|
begin: /\{/,
|
|
@@ -4120,15 +4123,15 @@ function Wa(e) {
|
|
|
4120
4123
|
keywords: r,
|
|
4121
4124
|
contains: [
|
|
4122
4125
|
"self"
|
|
4123
|
-
].concat(
|
|
4126
|
+
].concat(_)
|
|
4124
4127
|
});
|
|
4125
|
-
const
|
|
4128
|
+
const A = [].concat(R, u.contains), h = A.concat([
|
|
4126
4129
|
// eat recursive parens in sub expressions
|
|
4127
4130
|
{
|
|
4128
4131
|
begin: /\(/,
|
|
4129
4132
|
end: /\)/,
|
|
4130
4133
|
keywords: r,
|
|
4131
|
-
contains: ["self"].concat(
|
|
4134
|
+
contains: ["self"].concat(A)
|
|
4132
4135
|
}
|
|
4133
4136
|
]), m = {
|
|
4134
4137
|
className: "params",
|
|
@@ -4395,11 +4398,11 @@ function Ga(e) {
|
|
|
4395
4398
|
}, l = {
|
|
4396
4399
|
className: "meta",
|
|
4397
4400
|
begin: "@" + t
|
|
4398
|
-
}, d = (E, N,
|
|
4399
|
-
const R = E.contains.findIndex((
|
|
4401
|
+
}, d = (E, N, T) => {
|
|
4402
|
+
const R = E.contains.findIndex((_) => _.label === N);
|
|
4400
4403
|
if (R === -1)
|
|
4401
4404
|
throw new Error("can not find mode to replace");
|
|
4402
|
-
E.contains.splice(R, 1,
|
|
4405
|
+
E.contains.splice(R, 1, T);
|
|
4403
4406
|
}, u = Wa(e);
|
|
4404
4407
|
Object.assign(u.keywords, a), u.exports.PARAMS_CONTAINS.push(l), u.contains = u.contains.concat([
|
|
4405
4408
|
l,
|
|
@@ -4424,8 +4427,8 @@ function Kt(e) {
|
|
|
4424
4427
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4425
4428
|
return e;
|
|
4426
4429
|
}
|
|
4427
|
-
var qn = to(
|
|
4428
|
-
qn.registerLanguage =
|
|
4430
|
+
var qn = to(r0, {});
|
|
4431
|
+
qn.registerLanguage = r0.registerLanguage;
|
|
4429
4432
|
const Se = qn;
|
|
4430
4433
|
var Wn = {};
|
|
4431
4434
|
(function(e) {
|
|
@@ -4557,12 +4560,12 @@ const Nc = ({ language: e, children: t, ...n }) => /* @__PURE__ */ c(
|
|
|
4557
4560
|
PreTag: "div",
|
|
4558
4561
|
children: t
|
|
4559
4562
|
}
|
|
4560
|
-
), ve =
|
|
4563
|
+
), ve = 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 }));
|
|
4561
4564
|
ve.displayName = "Heading";
|
|
4562
|
-
const ee =
|
|
4565
|
+
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 }));
|
|
4563
4566
|
ee.displayName = "Text";
|
|
4564
4567
|
const Sc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ c(ee, { as: "blockquote", ...n, pl: "m", size: "m", italic: !0, className: re("blockquote", t), children: e });
|
|
4565
|
-
const We =
|
|
4568
|
+
const We = Ce(({ as: e = "div", isLoading: t = !0, children: n, ...i }, o) => /* @__PURE__ */ c(Pe, { children: t ? /* @__PURE__ */ c(
|
|
4566
4569
|
V,
|
|
4567
4570
|
{
|
|
4568
4571
|
...i,
|
|
@@ -4570,7 +4573,7 @@ const We = Me(({ as: e = "div", isLoading: t = !0, children: n, ...i }, o) => /*
|
|
|
4570
4573
|
ref: o,
|
|
4571
4574
|
bg: "ultra-light-grey",
|
|
4572
4575
|
className: re(t ? ["skeleton", "animate-pulse"] : void 0, i.className),
|
|
4573
|
-
children: n ?? /* @__PURE__ */ c(V, { children: /* @__PURE__ */ c(
|
|
4576
|
+
children: n ?? /* @__PURE__ */ c(V, { children: /* @__PURE__ */ c(Pe, { children: " " }) })
|
|
4574
4577
|
}
|
|
4575
4578
|
) : n }));
|
|
4576
4579
|
We.displayName = "Skeleton";
|
|
@@ -4607,7 +4610,7 @@ const Yn = ({ items: e, ...t }) => /* @__PURE__ */ c(
|
|
|
4607
4610
|
className: re("breadcrumb", t.className),
|
|
4608
4611
|
children: e.map(({ label: n, ...i }, o) => /* @__PURE__ */ M(rt, { children: [
|
|
4609
4612
|
/* @__PURE__ */ M("li", { itemProp: "itemListElement", itemScope: !0, itemType: "https://schema.org/ListItem", children: [
|
|
4610
|
-
i.href ? /* @__PURE__ */ c(
|
|
4613
|
+
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 }),
|
|
4611
4614
|
/* @__PURE__ */ c("meta", { itemProp: "position", content: (o + 1).toString() })
|
|
4612
4615
|
] }),
|
|
4613
4616
|
o < e.length - 1 && /* @__PURE__ */ c(ee, { as: "span", children: ">" })
|
|
@@ -4617,7 +4620,7 @@ const Yn = ({ items: e, ...t }) => /* @__PURE__ */ c(
|
|
|
4617
4620
|
t == null ? void 0 : t.map((i, o) => /* @__PURE__ */ c("source", { ...i }, o)),
|
|
4618
4621
|
/* @__PURE__ */ c("img", { ...e, alt: e.alt })
|
|
4619
4622
|
] });
|
|
4620
|
-
const
|
|
4623
|
+
const e0 = Ce(
|
|
4621
4624
|
({ as: e = "a", icon: t, className: n, children: i, ...o }, r) => t ? /* @__PURE__ */ M(
|
|
4622
4625
|
F,
|
|
4623
4626
|
{
|
|
@@ -4629,13 +4632,13 @@ const r0 = Me(
|
|
|
4629
4632
|
color: "info",
|
|
4630
4633
|
className: re("link", n),
|
|
4631
4634
|
children: [
|
|
4632
|
-
t && /* @__PURE__ */ c(
|
|
4635
|
+
t && /* @__PURE__ */ c(xe, { name: t }),
|
|
4633
4636
|
/* @__PURE__ */ c(ee, { as: "span", children: i })
|
|
4634
4637
|
]
|
|
4635
4638
|
}
|
|
4636
4639
|
) : /* @__PURE__ */ c(V, { ...o, ref: r, as: e, color: "info", className: re("link", n), children: i })
|
|
4637
4640
|
);
|
|
4638
|
-
|
|
4641
|
+
e0.displayName = "Link";
|
|
4639
4642
|
const Rc = [
|
|
4640
4643
|
"note",
|
|
4641
4644
|
"summary",
|
|
@@ -4649,26 +4652,18 @@ const Rc = [
|
|
|
4649
4652
|
"bug",
|
|
4650
4653
|
"example",
|
|
4651
4654
|
"quote"
|
|
4652
|
-
], Cc =
|
|
4655
|
+
], Cc = 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: [
|
|
4653
4656
|
/* @__PURE__ */ c(ee, { className: "reminder__title", children: n }),
|
|
4654
4657
|
/* @__PURE__ */ c(V, { p: "xxs", children: i })
|
|
4655
4658
|
] }));
|
|
4656
|
-
const Zn =
|
|
4657
|
-
({ input: e, buttonClose: t = {}, buttonSearch: n, className: i, ...o }, r) => /* @__PURE__ */ M(
|
|
4658
|
-
V,
|
|
4659
|
-
{
|
|
4660
|
-
...
|
|
4661
|
-
className:
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
/* @__PURE__ */ c(V, { as: "input", ...e, className: "search-field__input" }),
|
|
4665
|
-
/* @__PURE__ */ M(F, { justifyContent: "center", alignItems: "center", className: "search-field__actions-container", children: [
|
|
4666
|
-
!!e.value && /* @__PURE__ */ c(Gn, { ...t, variant: "secondary", className: "search-field__button-action" }),
|
|
4667
|
-
/* @__PURE__ */ c(V, { as: "button", ...n, className: "search-field__button-action", children: /* @__PURE__ */ c(Ie, { name: "search", color: "primary", size: "2.5rem", mx: "xs" }) })
|
|
4668
|
-
] })
|
|
4669
|
-
]
|
|
4670
|
-
}
|
|
4671
|
-
)
|
|
4659
|
+
const Zn = Ce(
|
|
4660
|
+
({ input: e, buttonClose: t = {}, buttonSearch: n, className: i, ...o }, r) => /* @__PURE__ */ M(V, { ...o, className: re("search-field", i), ref: r, children: [
|
|
4661
|
+
/* @__PURE__ */ c(V, { as: "input", ...e, className: "search-field__input" }),
|
|
4662
|
+
/* @__PURE__ */ M(F, { justifyContent: "center", alignItems: "center", className: "search-field__actions-container", children: [
|
|
4663
|
+
!!e.value && /* @__PURE__ */ c(Gn, { ...t, variant: "secondary", className: "search-field__button-action" }),
|
|
4664
|
+
/* @__PURE__ */ c(V, { as: "button", ...n, className: "search-field__button-action", children: /* @__PURE__ */ c(xe, { name: "search", color: "primary", size: "2.5rem", mx: "xs" }) })
|
|
4665
|
+
] })
|
|
4666
|
+
] })
|
|
4672
4667
|
);
|
|
4673
4668
|
Zn.displayName = "SearchField";
|
|
4674
4669
|
var Qn = { exports: {} };
|
|
@@ -4679,23 +4674,23 @@ var Qn = { exports: {} };
|
|
|
4679
4674
|
return n = { 772: (o, r, s) => {
|
|
4680
4675
|
const a = s(826).remove, l = /[.*+?^${}()|[\]\\]/g, d = /[a-z0-9_]/i, u = /\s+/;
|
|
4681
4676
|
o.exports = function(p, E, N) {
|
|
4682
|
-
var
|
|
4683
|
-
R = { insideWords: !1, findAllOccurrences: !1, requireMatchAll: !1 },
|
|
4684
|
-
R[h] = !!
|
|
4677
|
+
var T, R;
|
|
4678
|
+
R = { insideWords: !1, findAllOccurrences: !1, requireMatchAll: !1 }, T = (T = N) || {}, Object.keys(T).forEach((h) => {
|
|
4679
|
+
R[h] = !!T[h];
|
|
4685
4680
|
}), N = R;
|
|
4686
|
-
const
|
|
4687
|
-
let
|
|
4681
|
+
const _ = Array.from(p).map((h) => a(h));
|
|
4682
|
+
let A = _.join("");
|
|
4688
4683
|
return (E = a(E)).trim().split(u).filter((h) => h.length > 0).reduce((h, m) => {
|
|
4689
4684
|
const g = m.length, f = !N.insideWords && d.test(m[0]) ? "\\b" : "", w = new RegExp(f + m.replace(l, "\\$&"), "i");
|
|
4690
4685
|
let k, P;
|
|
4691
|
-
if (k = w.exec(
|
|
4692
|
-
return
|
|
4686
|
+
if (k = w.exec(A), N.requireMatchAll && k === null)
|
|
4687
|
+
return A = "", [];
|
|
4693
4688
|
for (; k; ) {
|
|
4694
4689
|
P = k.index;
|
|
4695
|
-
const q = g -
|
|
4696
|
-
if (G[0] !== G[1] && h.push(G),
|
|
4690
|
+
const q = g - _.slice(P, P + g).join("").length, U = P - _.slice(0, P).join("").length, G = [P + U, P + g + U + q];
|
|
4691
|
+
if (G[0] !== G[1] && h.push(G), A = A.slice(0, P) + new Array(g + 1).join(" ") + A.slice(P + g), !N.findAllOccurrences)
|
|
4697
4692
|
break;
|
|
4698
|
-
k = w.exec(
|
|
4693
|
+
k = w.exec(A);
|
|
4699
4694
|
}
|
|
4700
4695
|
return h;
|
|
4701
4696
|
}, []).sort((h, m) => h[0] - m[0]);
|
|
@@ -4745,7 +4740,7 @@ var Jn = { exports: {} };
|
|
|
4745
4740
|
});
|
|
4746
4741
|
})(Jn);
|
|
4747
4742
|
var es = Jn.exports;
|
|
4748
|
-
const ts = /* @__PURE__ */ Re(es), er =
|
|
4743
|
+
const ts = /* @__PURE__ */ Re(es), er = Ce(({ text: e, textQuery: t = "", ...n }, i) => {
|
|
4749
4744
|
const o = nt.useMemo(() => {
|
|
4750
4745
|
const r = Ja(e, t, { findAllOccurrences: !0 });
|
|
4751
4746
|
return ts(e, r);
|
|
@@ -4835,7 +4830,7 @@ const Mc = ["primary", "secondary"], lt = ({
|
|
|
4835
4830
|
display: "inline-block",
|
|
4836
4831
|
style: { minWidth: 60, minHeight: 16 },
|
|
4837
4832
|
children: /* @__PURE__ */ M(F, { alignContent: "center", alignItems: "center", gap: "xxs", className: "post-metadata__date", children: [
|
|
4838
|
-
e === "secondary" && /* @__PURE__ */ c(
|
|
4833
|
+
e === "secondary" && /* @__PURE__ */ c(xe, { name: "calendar", size: "24px", color: "light-grey" }),
|
|
4839
4834
|
t && /* @__PURE__ */ c(ee, { as: "span", children: t })
|
|
4840
4835
|
] })
|
|
4841
4836
|
},
|
|
@@ -4853,7 +4848,7 @@ const Mc = ["primary", "secondary"], lt = ({
|
|
|
4853
4848
|
display: "inline-block",
|
|
4854
4849
|
style: { minWidth: 26, minHeight: 16 },
|
|
4855
4850
|
children: /* @__PURE__ */ M(F, { alignContent: "center", alignItems: "center", gap: "xxs", children: [
|
|
4856
|
-
e === "secondary" && /* @__PURE__ */ c(
|
|
4851
|
+
e === "secondary" && /* @__PURE__ */ c(xe, { name: "access-time", size: "24px", color: "light-grey" }),
|
|
4857
4852
|
n && /* @__PURE__ */ c(ee, { as: "span", children: `${n}mn` })
|
|
4858
4853
|
] })
|
|
4859
4854
|
},
|
|
@@ -4870,11 +4865,11 @@ const Mc = ["primary", "secondary"], lt = ({
|
|
|
4870
4865
|
isLoading: o,
|
|
4871
4866
|
display: "inline-block",
|
|
4872
4867
|
style: { minWidth: 50, minHeight: 16 },
|
|
4873
|
-
children: i && /* @__PURE__ */ M(
|
|
4874
|
-
e === "secondary" && /* @__PURE__ */ c(
|
|
4875
|
-
i.map(({ username: p, name: E },
|
|
4876
|
-
/* @__PURE__ */ c(ee, { as: "span", children: E }),
|
|
4877
|
-
|
|
4868
|
+
children: i && /* @__PURE__ */ M(F, { alignContent: "center", alignItems: "center", gap: "xxs", className: "post-metadata__authors", children: [
|
|
4869
|
+
e === "secondary" && /* @__PURE__ */ c(xe, { name: "person", size: "24px", color: "light-grey" }),
|
|
4870
|
+
i.map(({ username: p, name: E, link: N }, T) => /* @__PURE__ */ M(rt, { children: [
|
|
4871
|
+
N ? /* @__PURE__ */ c(e0, { ...N, children: E }) : /* @__PURE__ */ c(ee, { as: "span", children: E }),
|
|
4872
|
+
T !== i.length - 1 && /* @__PURE__ */ c(ee, { as: "span", children: " & " })
|
|
4878
4873
|
] }, p))
|
|
4879
4874
|
] })
|
|
4880
4875
|
},
|
|
@@ -4924,18 +4919,16 @@ const Tc = ["highlight-light", "highlight-dark", "side-image"], k0 = ({
|
|
|
4924
4919
|
"post-card--with-tutorial": t === "tutorial"
|
|
4925
4920
|
}),
|
|
4926
4921
|
children: [
|
|
4927
|
-
/* @__PURE__ */ c(We, { isLoading: u, children: /* @__PURE__ */ c(Xn, { ...i, img: {
|
|
4928
|
-
/* @__PURE__ */ M(
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
children: [
|
|
4938
|
-
/* @__PURE__ */ c(We, { isLoading: u, children: /* @__PURE__ */ M(ve, { as: "h2", size: "xs", lineClamp: 2, className: "post-card__heading", children: [
|
|
4922
|
+
/* @__PURE__ */ c(We, { isLoading: u, children: /* @__PURE__ */ c(Xn, { ...i, img: { ...i == null ? void 0 : i.img, className: "post-card__cover" } }) }),
|
|
4923
|
+
/* @__PURE__ */ M(V, { my: { xs: "s", md: "m" }, pl: { xs: "s", md: "m" }, pr: { xs: "xs", md: "m" }, flex: "1", children: [
|
|
4924
|
+
/* @__PURE__ */ c(We, { isLoading: u, children: /* @__PURE__ */ M(
|
|
4925
|
+
ve,
|
|
4926
|
+
{
|
|
4927
|
+
as: "h2",
|
|
4928
|
+
size: "xs",
|
|
4929
|
+
lineClamp: { xs: n === "highlight-dark" ? 2 : 4, md: n === "highlight-light" ? 3 : 2 },
|
|
4930
|
+
className: "post-card__heading",
|
|
4931
|
+
children: [
|
|
4939
4932
|
/* @__PURE__ */ c(ee, { as: "a", ...d, size: "m", "data-internal-link": "post", className: "post-card__link", children: o }),
|
|
4940
4933
|
t === "tutorial" && /* @__PURE__ */ c(
|
|
4941
4934
|
ee,
|
|
@@ -4950,22 +4943,22 @@ const Tc = ["highlight-light", "highlight-dark", "side-image"], k0 = ({
|
|
|
4950
4943
|
children: p
|
|
4951
4944
|
}
|
|
4952
4945
|
)
|
|
4953
|
-
]
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
}
|
|
4968
|
-
)
|
|
4946
|
+
]
|
|
4947
|
+
}
|
|
4948
|
+
) }),
|
|
4949
|
+
/* @__PURE__ */ c(
|
|
4950
|
+
lt,
|
|
4951
|
+
{
|
|
4952
|
+
variant: "primary",
|
|
4953
|
+
mt: "xxs",
|
|
4954
|
+
date: s,
|
|
4955
|
+
readingTime: a,
|
|
4956
|
+
authors: l,
|
|
4957
|
+
isLoading: u
|
|
4958
|
+
}
|
|
4959
|
+
),
|
|
4960
|
+
n !== "highlight-dark" && /* @__PURE__ */ c(We, { isLoading: u, children: /* @__PURE__ */ c(ee, { mt: "xs", size: "s", hiddenBelow: "md", lineClamp: { xs: 4, md: 2 }, className: "post-card__excerpt", children: r }) })
|
|
4961
|
+
] })
|
|
4969
4962
|
]
|
|
4970
4963
|
}
|
|
4971
4964
|
);
|
|
@@ -4991,7 +4984,7 @@ const os = ({
|
|
|
4991
4984
|
/* @__PURE__ */ c(ee, { as: "div", size: "xs", mt: "xxs-3", italic: !0, children: n })
|
|
4992
4985
|
] }),
|
|
4993
4986
|
/* @__PURE__ */ c(
|
|
4994
|
-
|
|
4987
|
+
e0,
|
|
4995
4988
|
{
|
|
4996
4989
|
...o,
|
|
4997
4990
|
px: { xs: "0", md: "m" },
|
|
@@ -5035,7 +5028,7 @@ const Ac = ["primary", "secondary"], nr = ({
|
|
|
5035
5028
|
...o
|
|
5036
5029
|
}) => /* @__PURE__ */ M(V, { bg: "white", p: "m", className: re("summary-card", { [`summary-card--${e}`]: e }), ...o, children: [
|
|
5037
5030
|
/* @__PURE__ */ c(ve, { size: "m", color: "primary", children: t }),
|
|
5038
|
-
/* @__PURE__ */ c(F, { flexDirection: "column", mt: "m", children: i.map(({ name: r, label: s, ...a }, l) => /* @__PURE__ */ M(
|
|
5031
|
+
/* @__PURE__ */ c(F, { flexDirection: "column", mt: "m", children: i.map(({ name: r, label: s, ...a }, l) => /* @__PURE__ */ M(_e.Fragment, { children: [
|
|
5039
5032
|
/* @__PURE__ */ M(
|
|
5040
5033
|
F,
|
|
5041
5034
|
{
|
|
@@ -5072,29 +5065,29 @@ const kc = ["horizontal", "vertical"], ut = ({
|
|
|
5072
5065
|
children: [
|
|
5073
5066
|
/* @__PURE__ */ M(V, { className: "newsletter-card__intro", children: [
|
|
5074
5067
|
/* @__PURE__ */ c(ve, { size: "m", color: "accent", children: e }),
|
|
5075
|
-
/* @__PURE__ */ c(
|
|
5068
|
+
/* @__PURE__ */ c(xe, { name: "underline", color: "accent", width: "56px" }),
|
|
5076
5069
|
/* @__PURE__ */ c(ee, { mt: "m", children: t })
|
|
5077
5070
|
] }),
|
|
5078
5071
|
/* @__PURE__ */ c(V, { className: "newsletter-card__form", children: n })
|
|
5079
5072
|
]
|
|
5080
5073
|
}
|
|
5081
|
-
), o0 = -1,
|
|
5074
|
+
), o0 = -1, _0 = (e, t) => {
|
|
5082
5075
|
const n = t - e + 1;
|
|
5083
5076
|
return Array.from({ length: n }, (i, o) => o + e);
|
|
5084
5077
|
}, ss = ({ currentPage: e, totalPages: t, siblingCount: n = 2 }) => fn(() => {
|
|
5085
5078
|
if (n + 5 >= t)
|
|
5086
|
-
return
|
|
5079
|
+
return _0(1, t);
|
|
5087
5080
|
const o = Math.max(e - n, 1), r = Math.min(e + n, t), s = o > 2, a = r < t - 2;
|
|
5088
5081
|
if (!s && a) {
|
|
5089
|
-
const l = 3 + 2 * n, d =
|
|
5082
|
+
const l = 3 + 2 * n, d = _0(1, l);
|
|
5090
5083
|
return [...d, d.at(-1) === t - 1 ? t - 1 : o0, t];
|
|
5091
5084
|
}
|
|
5092
5085
|
if (s && !a) {
|
|
5093
|
-
const l = 3 + 2 * n, d =
|
|
5086
|
+
const l = 3 + 2 * n, d = _0(t - l + 1, t);
|
|
5094
5087
|
return [1, d[0] - 1 === 2 ? 2 : o0, ...d];
|
|
5095
5088
|
}
|
|
5096
5089
|
if (s && a) {
|
|
5097
|
-
const l =
|
|
5090
|
+
const l = _0(o, r);
|
|
5098
5091
|
return [
|
|
5099
5092
|
1,
|
|
5100
5093
|
l[0] - 1 === 2 ? 2 : o0,
|
|
@@ -5129,7 +5122,7 @@ const B0 = (e) => ({
|
|
|
5129
5122
|
disabled: e === 1,
|
|
5130
5123
|
getLink: n
|
|
5131
5124
|
}),
|
|
5132
|
-
children: /* @__PURE__ */ c(
|
|
5125
|
+
children: /* @__PURE__ */ c(xe, { name: "arrow" })
|
|
5133
5126
|
}
|
|
5134
5127
|
),
|
|
5135
5128
|
r.map((s, a) => /* @__PURE__ */ M(rt, { children: [
|
|
@@ -5154,18 +5147,18 @@ const B0 = (e) => ({
|
|
|
5154
5147
|
disabled: e === t,
|
|
5155
5148
|
getLink: n
|
|
5156
5149
|
}),
|
|
5157
|
-
children: /* @__PURE__ */ c(
|
|
5150
|
+
children: /* @__PURE__ */ c(xe, { name: "arrow" })
|
|
5158
5151
|
}
|
|
5159
5152
|
)
|
|
5160
5153
|
] });
|
|
5161
|
-
}, Dc = ({ posts: e, pagination: t, isLoading: n = !1 }) => /* @__PURE__ */ c(
|
|
5162
|
-
e.map((i, o) => /* @__PURE__ */ c(
|
|
5154
|
+
}, Dc = ({ posts: e, pagination: t, isLoading: n = !1 }) => /* @__PURE__ */ c(Pe, { children: /* @__PURE__ */ M(F, { flexDirection: "column", gap: "m", children: [
|
|
5155
|
+
e.map((i, o) => /* @__PURE__ */ c(_e.Fragment, { children: /* @__PURE__ */ c(k0, { ...i || {}, isLoading: n }) }, (i == null ? void 0 : i.slug) ?? o)),
|
|
5163
5156
|
t && (t == null ? void 0 : t.totalPages) > 1 && /* @__PURE__ */ c(cs, { mx: "auto", ...t })
|
|
5164
5157
|
] }) });
|
|
5165
5158
|
function ls(e, t) {
|
|
5166
5159
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Z0(e, t);
|
|
5167
5160
|
}
|
|
5168
|
-
var Q0 = { exports: {} },
|
|
5161
|
+
var Q0 = { exports: {} }, y0 = { exports: {} }, ae = {};
|
|
5169
5162
|
/** @license React v16.13.1
|
|
5170
5163
|
* react-is.production.min.js
|
|
5171
5164
|
*
|
|
@@ -5179,7 +5172,7 @@ function us() {
|
|
|
5179
5172
|
if (Ft)
|
|
5180
5173
|
return ae;
|
|
5181
5174
|
Ft = 1;
|
|
5182
|
-
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, E = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115,
|
|
5175
|
+
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, E = 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, _ = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, h = e ? Symbol.for("react.scope") : 60119;
|
|
5183
5176
|
function m(f) {
|
|
5184
5177
|
if (typeof f == "object" && f !== null) {
|
|
5185
5178
|
var w = f.$$typeof;
|
|
@@ -5197,7 +5190,7 @@ function us() {
|
|
|
5197
5190
|
switch (f = f && f.$$typeof, f) {
|
|
5198
5191
|
case a:
|
|
5199
5192
|
case u:
|
|
5200
|
-
case
|
|
5193
|
+
case T:
|
|
5201
5194
|
case N:
|
|
5202
5195
|
case s:
|
|
5203
5196
|
return f;
|
|
@@ -5213,7 +5206,7 @@ function us() {
|
|
|
5213
5206
|
function g(f) {
|
|
5214
5207
|
return m(f) === d;
|
|
5215
5208
|
}
|
|
5216
|
-
return ae.AsyncMode = l, ae.ConcurrentMode = d, ae.ContextConsumer = a, ae.ContextProvider = s, ae.Element = t, ae.ForwardRef = u, ae.Fragment = i, ae.Lazy =
|
|
5209
|
+
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) {
|
|
5217
5210
|
return g(f) || m(f) === l;
|
|
5218
5211
|
}, ae.isConcurrentMode = g, ae.isContextConsumer = function(f) {
|
|
5219
5212
|
return m(f) === a;
|
|
@@ -5226,7 +5219,7 @@ function us() {
|
|
|
5226
5219
|
}, ae.isFragment = function(f) {
|
|
5227
5220
|
return m(f) === i;
|
|
5228
5221
|
}, ae.isLazy = function(f) {
|
|
5229
|
-
return m(f) ===
|
|
5222
|
+
return m(f) === T;
|
|
5230
5223
|
}, ae.isMemo = function(f) {
|
|
5231
5224
|
return m(f) === N;
|
|
5232
5225
|
}, ae.isPortal = function(f) {
|
|
@@ -5238,7 +5231,7 @@ function us() {
|
|
|
5238
5231
|
}, ae.isSuspense = function(f) {
|
|
5239
5232
|
return m(f) === p;
|
|
5240
5233
|
}, ae.isValidElementType = function(f) {
|
|
5241
|
-
return typeof f == "string" || typeof f == "function" || f === i || f === d || f === r || f === o || f === p || f === E || typeof f == "object" && f !== null && (f.$$typeof ===
|
|
5234
|
+
return typeof f == "string" || typeof f == "function" || f === i || f === d || f === r || f === o || f === p || f === E || typeof f == "object" && f !== null && (f.$$typeof === T || f.$$typeof === N || f.$$typeof === s || f.$$typeof === a || f.$$typeof === u || f.$$typeof === _ || f.$$typeof === A || f.$$typeof === h || f.$$typeof === R);
|
|
5242
5235
|
}, ae.typeOf = m, ae;
|
|
5243
5236
|
}
|
|
5244
5237
|
var se = {};
|
|
@@ -5253,10 +5246,10 @@ var se = {};
|
|
|
5253
5246
|
var qt;
|
|
5254
5247
|
function ds() {
|
|
5255
5248
|
return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5256
|
-
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, E = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115,
|
|
5249
|
+
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, E = 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, _ = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, h = e ? Symbol.for("react.scope") : 60119;
|
|
5257
5250
|
function m(S) {
|
|
5258
5251
|
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
5259
|
-
S === i || S === d || S === r || S === o || S === p || S === E || typeof S == "object" && S !== null && (S.$$typeof ===
|
|
5252
|
+
S === i || S === d || S === r || S === o || S === p || S === E || typeof S == "object" && S !== null && (S.$$typeof === T || S.$$typeof === N || S.$$typeof === s || S.$$typeof === a || S.$$typeof === u || S.$$typeof === _ || S.$$typeof === A || S.$$typeof === h || S.$$typeof === R);
|
|
5260
5253
|
}
|
|
5261
5254
|
function g(S) {
|
|
5262
5255
|
if (typeof S == "object" && S !== null) {
|
|
@@ -5273,14 +5266,14 @@ function ds() {
|
|
|
5273
5266
|
case p:
|
|
5274
5267
|
return L;
|
|
5275
5268
|
default:
|
|
5276
|
-
var
|
|
5277
|
-
switch (
|
|
5269
|
+
var ye = L && L.$$typeof;
|
|
5270
|
+
switch (ye) {
|
|
5278
5271
|
case a:
|
|
5279
5272
|
case u:
|
|
5280
|
-
case
|
|
5273
|
+
case T:
|
|
5281
5274
|
case N:
|
|
5282
5275
|
case s:
|
|
5283
|
-
return
|
|
5276
|
+
return ye;
|
|
5284
5277
|
default:
|
|
5285
5278
|
return de;
|
|
5286
5279
|
}
|
|
@@ -5290,7 +5283,7 @@ function ds() {
|
|
|
5290
5283
|
}
|
|
5291
5284
|
}
|
|
5292
5285
|
}
|
|
5293
|
-
var f = l, w = d, k = a, P = s, q = t, U = u, G = i, X =
|
|
5286
|
+
var f = l, w = d, k = a, P = s, q = t, U = u, G = i, X = T, ne = N, Z = n, ie = r, oe = o, W = p, pe = !1;
|
|
5294
5287
|
function ge(S) {
|
|
5295
5288
|
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;
|
|
5296
5289
|
}
|
|
@@ -5309,11 +5302,11 @@ function ds() {
|
|
|
5309
5302
|
function v(S) {
|
|
5310
5303
|
return g(S) === u;
|
|
5311
5304
|
}
|
|
5312
|
-
function
|
|
5305
|
+
function y(S) {
|
|
5313
5306
|
return g(S) === i;
|
|
5314
5307
|
}
|
|
5315
5308
|
function I(S) {
|
|
5316
|
-
return g(S) ===
|
|
5309
|
+
return g(S) === T;
|
|
5317
5310
|
}
|
|
5318
5311
|
function C(S) {
|
|
5319
5312
|
return g(S) === N;
|
|
@@ -5330,12 +5323,12 @@ function ds() {
|
|
|
5330
5323
|
function Q(S) {
|
|
5331
5324
|
return g(S) === p;
|
|
5332
5325
|
}
|
|
5333
|
-
se.AsyncMode = f, se.ConcurrentMode = w, se.ContextConsumer = k, 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 = D, se.isContextProvider = K, se.isElement = b, se.isForwardRef = v, se.isFragment =
|
|
5326
|
+
se.AsyncMode = f, se.ConcurrentMode = w, se.ContextConsumer = k, 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 = D, se.isContextProvider = K, se.isElement = b, se.isForwardRef = v, se.isFragment = y, se.isLazy = I, se.isMemo = C, se.isPortal = z, se.isProfiler = H, se.isStrictMode = B, se.isSuspense = Q, se.isValidElementType = m, se.typeOf = g;
|
|
5334
5327
|
}()), se;
|
|
5335
5328
|
}
|
|
5336
5329
|
var Wt;
|
|
5337
5330
|
function rr() {
|
|
5338
|
-
return Wt || (Wt = 1, process.env.NODE_ENV === "production" ?
|
|
5331
|
+
return Wt || (Wt = 1, process.env.NODE_ENV === "production" ? y0.exports = us() : y0.exports = ds()), y0.exports;
|
|
5339
5332
|
}
|
|
5340
5333
|
/*
|
|
5341
5334
|
object-assign
|
|
@@ -5432,8 +5425,8 @@ function ps() {
|
|
|
5432
5425
|
throw E.name = "Invariant Violation", E;
|
|
5433
5426
|
}
|
|
5434
5427
|
p = r[u](s, u, l, a, null, t);
|
|
5435
|
-
} catch (
|
|
5436
|
-
p =
|
|
5428
|
+
} catch (T) {
|
|
5429
|
+
p = T;
|
|
5437
5430
|
}
|
|
5438
5431
|
if (p && !(p instanceof Error) && e(
|
|
5439
5432
|
(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)."
|
|
@@ -5477,14 +5470,14 @@ function gs() {
|
|
|
5477
5470
|
return D;
|
|
5478
5471
|
}
|
|
5479
5472
|
var E = "<<anonymous>>", N = {
|
|
5480
|
-
array:
|
|
5481
|
-
bigint:
|
|
5482
|
-
bool:
|
|
5483
|
-
func:
|
|
5484
|
-
number:
|
|
5485
|
-
object:
|
|
5486
|
-
string:
|
|
5487
|
-
symbol:
|
|
5473
|
+
array: A("array"),
|
|
5474
|
+
bigint: A("bigint"),
|
|
5475
|
+
bool: A("boolean"),
|
|
5476
|
+
func: A("function"),
|
|
5477
|
+
number: A("number"),
|
|
5478
|
+
object: A("object"),
|
|
5479
|
+
string: A("string"),
|
|
5480
|
+
symbol: A("symbol"),
|
|
5488
5481
|
any: h(),
|
|
5489
5482
|
arrayOf: m,
|
|
5490
5483
|
element: g(),
|
|
@@ -5497,17 +5490,17 @@ function gs() {
|
|
|
5497
5490
|
shape: X,
|
|
5498
5491
|
exact: ne
|
|
5499
5492
|
};
|
|
5500
|
-
function
|
|
5493
|
+
function T(x, D) {
|
|
5501
5494
|
return x === D ? x !== 0 || 1 / x === 1 / D : x !== x && D !== D;
|
|
5502
5495
|
}
|
|
5503
5496
|
function R(x, D) {
|
|
5504
5497
|
this.message = x, this.data = D && typeof D == "object" ? D : {}, this.stack = "";
|
|
5505
5498
|
}
|
|
5506
5499
|
R.prototype = Error.prototype;
|
|
5507
|
-
function
|
|
5500
|
+
function _(x) {
|
|
5508
5501
|
if (process.env.NODE_ENV !== "production")
|
|
5509
5502
|
var D = {}, K = 0;
|
|
5510
|
-
function b(
|
|
5503
|
+
function b(y, I, C, z, H, B, Q) {
|
|
5511
5504
|
if (z = z || E, B = B || C, Q !== n) {
|
|
5512
5505
|
if (l) {
|
|
5513
5506
|
var S = new Error(
|
|
@@ -5522,111 +5515,111 @@ function gs() {
|
|
|
5522
5515
|
), D[de] = !0, K++);
|
|
5523
5516
|
}
|
|
5524
5517
|
}
|
|
5525
|
-
return I[C] == null ?
|
|
5518
|
+
return I[C] == null ? y ? I[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(I, C, z, H, B);
|
|
5526
5519
|
}
|
|
5527
5520
|
var v = b.bind(null, !1);
|
|
5528
5521
|
return v.isRequired = b.bind(null, !0), v;
|
|
5529
5522
|
}
|
|
5530
|
-
function
|
|
5531
|
-
function D(K, b, v,
|
|
5523
|
+
function A(x) {
|
|
5524
|
+
function D(K, b, v, y, I, C) {
|
|
5532
5525
|
var z = K[b], H = oe(z);
|
|
5533
5526
|
if (H !== x) {
|
|
5534
5527
|
var B = W(z);
|
|
5535
5528
|
return new R(
|
|
5536
|
-
"Invalid " +
|
|
5529
|
+
"Invalid " + y + " `" + I + "` of type " + ("`" + B + "` supplied to `" + v + "`, expected ") + ("`" + x + "`."),
|
|
5537
5530
|
{ expectedType: x }
|
|
5538
5531
|
);
|
|
5539
5532
|
}
|
|
5540
5533
|
return null;
|
|
5541
5534
|
}
|
|
5542
|
-
return
|
|
5535
|
+
return _(D);
|
|
5543
5536
|
}
|
|
5544
5537
|
function h() {
|
|
5545
|
-
return
|
|
5538
|
+
return _(s);
|
|
5546
5539
|
}
|
|
5547
5540
|
function m(x) {
|
|
5548
|
-
function D(K, b, v,
|
|
5541
|
+
function D(K, b, v, y, I) {
|
|
5549
5542
|
if (typeof x != "function")
|
|
5550
5543
|
return new R("Property `" + I + "` of component `" + v + "` has invalid PropType notation inside arrayOf.");
|
|
5551
5544
|
var C = K[b];
|
|
5552
5545
|
if (!Array.isArray(C)) {
|
|
5553
5546
|
var z = oe(C);
|
|
5554
|
-
return new R("Invalid " +
|
|
5547
|
+
return new R("Invalid " + y + " `" + I + "` of type " + ("`" + z + "` supplied to `" + v + "`, expected an array."));
|
|
5555
5548
|
}
|
|
5556
5549
|
for (var H = 0; H < C.length; H++) {
|
|
5557
|
-
var B = x(C, H, v,
|
|
5550
|
+
var B = x(C, H, v, y, I + "[" + H + "]", n);
|
|
5558
5551
|
if (B instanceof Error)
|
|
5559
5552
|
return B;
|
|
5560
5553
|
}
|
|
5561
5554
|
return null;
|
|
5562
5555
|
}
|
|
5563
|
-
return
|
|
5556
|
+
return _(D);
|
|
5564
5557
|
}
|
|
5565
5558
|
function g() {
|
|
5566
|
-
function x(D, K, b, v,
|
|
5559
|
+
function x(D, K, b, v, y) {
|
|
5567
5560
|
var I = D[K];
|
|
5568
5561
|
if (!a(I)) {
|
|
5569
5562
|
var C = oe(I);
|
|
5570
|
-
return new R("Invalid " + v + " `" +
|
|
5563
|
+
return new R("Invalid " + v + " `" + y + "` of type " + ("`" + C + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
5571
5564
|
}
|
|
5572
5565
|
return null;
|
|
5573
5566
|
}
|
|
5574
|
-
return
|
|
5567
|
+
return _(x);
|
|
5575
5568
|
}
|
|
5576
5569
|
function f() {
|
|
5577
|
-
function x(D, K, b, v,
|
|
5570
|
+
function x(D, K, b, v, y) {
|
|
5578
5571
|
var I = D[K];
|
|
5579
5572
|
if (!e.isValidElementType(I)) {
|
|
5580
5573
|
var C = oe(I);
|
|
5581
|
-
return new R("Invalid " + v + " `" +
|
|
5574
|
+
return new R("Invalid " + v + " `" + y + "` of type " + ("`" + C + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
5582
5575
|
}
|
|
5583
5576
|
return null;
|
|
5584
5577
|
}
|
|
5585
|
-
return
|
|
5578
|
+
return _(x);
|
|
5586
5579
|
}
|
|
5587
5580
|
function w(x) {
|
|
5588
|
-
function D(K, b, v,
|
|
5581
|
+
function D(K, b, v, y, I) {
|
|
5589
5582
|
if (!(K[b] instanceof x)) {
|
|
5590
5583
|
var C = x.name || E, z = ge(K[b]);
|
|
5591
|
-
return new R("Invalid " +
|
|
5584
|
+
return new R("Invalid " + y + " `" + I + "` of type " + ("`" + z + "` supplied to `" + v + "`, expected ") + ("instance of `" + C + "`."));
|
|
5592
5585
|
}
|
|
5593
5586
|
return null;
|
|
5594
5587
|
}
|
|
5595
|
-
return
|
|
5588
|
+
return _(D);
|
|
5596
5589
|
}
|
|
5597
5590
|
function k(x) {
|
|
5598
5591
|
if (!Array.isArray(x))
|
|
5599
5592
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
5600
5593
|
"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])."
|
|
5601
5594
|
) : r("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
5602
|
-
function D(K, b, v,
|
|
5595
|
+
function D(K, b, v, y, I) {
|
|
5603
5596
|
for (var C = K[b], z = 0; z < x.length; z++)
|
|
5604
|
-
if (
|
|
5597
|
+
if (T(C, x[z]))
|
|
5605
5598
|
return null;
|
|
5606
5599
|
var H = JSON.stringify(x, function(Q, S) {
|
|
5607
5600
|
var de = W(S);
|
|
5608
5601
|
return de === "symbol" ? String(S) : S;
|
|
5609
5602
|
});
|
|
5610
|
-
return new R("Invalid " +
|
|
5603
|
+
return new R("Invalid " + y + " `" + I + "` of value `" + String(C) + "` " + ("supplied to `" + v + "`, expected one of " + H + "."));
|
|
5611
5604
|
}
|
|
5612
|
-
return
|
|
5605
|
+
return _(D);
|
|
5613
5606
|
}
|
|
5614
5607
|
function P(x) {
|
|
5615
|
-
function D(K, b, v,
|
|
5608
|
+
function D(K, b, v, y, I) {
|
|
5616
5609
|
if (typeof x != "function")
|
|
5617
5610
|
return new R("Property `" + I + "` of component `" + v + "` has invalid PropType notation inside objectOf.");
|
|
5618
5611
|
var C = K[b], z = oe(C);
|
|
5619
5612
|
if (z !== "object")
|
|
5620
|
-
return new R("Invalid " +
|
|
5613
|
+
return new R("Invalid " + y + " `" + I + "` of type " + ("`" + z + "` supplied to `" + v + "`, expected an object."));
|
|
5621
5614
|
for (var H in C)
|
|
5622
5615
|
if (i(C, H)) {
|
|
5623
|
-
var B = x(C, H, v,
|
|
5616
|
+
var B = x(C, H, v, y, I + "." + H, n);
|
|
5624
5617
|
if (B instanceof Error)
|
|
5625
5618
|
return B;
|
|
5626
5619
|
}
|
|
5627
5620
|
return null;
|
|
5628
5621
|
}
|
|
5629
|
-
return
|
|
5622
|
+
return _(D);
|
|
5630
5623
|
}
|
|
5631
5624
|
function q(x) {
|
|
5632
5625
|
if (!Array.isArray(x))
|
|
@@ -5638,9 +5631,9 @@ function gs() {
|
|
|
5638
5631
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(K) + " at index " + D + "."
|
|
5639
5632
|
), s;
|
|
5640
5633
|
}
|
|
5641
|
-
function b(v,
|
|
5634
|
+
function b(v, y, I, C, z) {
|
|
5642
5635
|
for (var H = [], B = 0; B < x.length; B++) {
|
|
5643
|
-
var Q = x[B], S = Q(v,
|
|
5636
|
+
var Q = x[B], S = Q(v, y, I, C, z, n);
|
|
5644
5637
|
if (S == null)
|
|
5645
5638
|
return null;
|
|
5646
5639
|
S.data && i(S.data, "expectedType") && H.push(S.data.expectedType);
|
|
@@ -5648,13 +5641,13 @@ function gs() {
|
|
|
5648
5641
|
var de = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
|
|
5649
5642
|
return new R("Invalid " + C + " `" + z + "` supplied to " + ("`" + I + "`" + de + "."));
|
|
5650
5643
|
}
|
|
5651
|
-
return
|
|
5644
|
+
return _(b);
|
|
5652
5645
|
}
|
|
5653
5646
|
function U() {
|
|
5654
|
-
function x(D, K, b, v,
|
|
5655
|
-
return Z(D[K]) ? null : new R("Invalid " + v + " `" +
|
|
5647
|
+
function x(D, K, b, v, y) {
|
|
5648
|
+
return Z(D[K]) ? null : new R("Invalid " + v + " `" + y + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
|
|
5656
5649
|
}
|
|
5657
|
-
return
|
|
5650
|
+
return _(x);
|
|
5658
5651
|
}
|
|
5659
5652
|
function G(x, D, K, b, v) {
|
|
5660
5653
|
return new R(
|
|
@@ -5662,44 +5655,44 @@ function gs() {
|
|
|
5662
5655
|
);
|
|
5663
5656
|
}
|
|
5664
5657
|
function X(x) {
|
|
5665
|
-
function D(K, b, v,
|
|
5658
|
+
function D(K, b, v, y, I) {
|
|
5666
5659
|
var C = K[b], z = oe(C);
|
|
5667
5660
|
if (z !== "object")
|
|
5668
|
-
return new R("Invalid " +
|
|
5661
|
+
return new R("Invalid " + y + " `" + I + "` of type `" + z + "` " + ("supplied to `" + v + "`, expected `object`."));
|
|
5669
5662
|
for (var H in x) {
|
|
5670
5663
|
var B = x[H];
|
|
5671
5664
|
if (typeof B != "function")
|
|
5672
|
-
return G(v,
|
|
5673
|
-
var Q = B(C, H, v,
|
|
5665
|
+
return G(v, y, I, H, W(B));
|
|
5666
|
+
var Q = B(C, H, v, y, I + "." + H, n);
|
|
5674
5667
|
if (Q)
|
|
5675
5668
|
return Q;
|
|
5676
5669
|
}
|
|
5677
5670
|
return null;
|
|
5678
5671
|
}
|
|
5679
|
-
return
|
|
5672
|
+
return _(D);
|
|
5680
5673
|
}
|
|
5681
5674
|
function ne(x) {
|
|
5682
|
-
function D(K, b, v,
|
|
5675
|
+
function D(K, b, v, y, I) {
|
|
5683
5676
|
var C = K[b], z = oe(C);
|
|
5684
5677
|
if (z !== "object")
|
|
5685
|
-
return new R("Invalid " +
|
|
5678
|
+
return new R("Invalid " + y + " `" + I + "` of type `" + z + "` " + ("supplied to `" + v + "`, expected `object`."));
|
|
5686
5679
|
var H = t({}, K[b], x);
|
|
5687
5680
|
for (var B in H) {
|
|
5688
5681
|
var Q = x[B];
|
|
5689
5682
|
if (i(x, B) && typeof Q != "function")
|
|
5690
|
-
return G(v,
|
|
5683
|
+
return G(v, y, I, B, W(Q));
|
|
5691
5684
|
if (!Q)
|
|
5692
5685
|
return new R(
|
|
5693
|
-
"Invalid " +
|
|
5686
|
+
"Invalid " + y + " `" + I + "` key `" + B + "` supplied to `" + v + "`.\nBad object: " + JSON.stringify(K[b], null, " ") + `
|
|
5694
5687
|
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
5695
5688
|
);
|
|
5696
|
-
var S = Q(C, B, v,
|
|
5689
|
+
var S = Q(C, B, v, y, I + "." + B, n);
|
|
5697
5690
|
if (S)
|
|
5698
5691
|
return S;
|
|
5699
5692
|
}
|
|
5700
5693
|
return null;
|
|
5701
5694
|
}
|
|
5702
|
-
return
|
|
5695
|
+
return _(D);
|
|
5703
5696
|
}
|
|
5704
5697
|
function Z(x) {
|
|
5705
5698
|
switch (typeof x) {
|
|
@@ -5840,39 +5833,39 @@ var J0 = { exports: {} }, ce = {};
|
|
|
5840
5833
|
* LICENSE file in the root directory of this source tree.
|
|
5841
5834
|
*/
|
|
5842
5835
|
var en;
|
|
5843
|
-
function
|
|
5836
|
+
function _s() {
|
|
5844
5837
|
if (en)
|
|
5845
5838
|
return ce;
|
|
5846
5839
|
en = 1;
|
|
5847
|
-
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"), E = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"),
|
|
5848
|
-
|
|
5849
|
-
function R(
|
|
5850
|
-
if (typeof
|
|
5851
|
-
var
|
|
5852
|
-
switch (
|
|
5840
|
+
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"), E = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), T;
|
|
5841
|
+
T = Symbol.for("react.module.reference");
|
|
5842
|
+
function R(_) {
|
|
5843
|
+
if (typeof _ == "object" && _ !== null) {
|
|
5844
|
+
var A = _.$$typeof;
|
|
5845
|
+
switch (A) {
|
|
5853
5846
|
case e:
|
|
5854
|
-
switch (
|
|
5847
|
+
switch (_ = _.type, _) {
|
|
5855
5848
|
case n:
|
|
5856
5849
|
case o:
|
|
5857
5850
|
case i:
|
|
5858
5851
|
case d:
|
|
5859
5852
|
case u:
|
|
5860
|
-
return
|
|
5853
|
+
return _;
|
|
5861
5854
|
default:
|
|
5862
|
-
switch (
|
|
5855
|
+
switch (_ = _ && _.$$typeof, _) {
|
|
5863
5856
|
case a:
|
|
5864
5857
|
case s:
|
|
5865
5858
|
case l:
|
|
5866
5859
|
case E:
|
|
5867
5860
|
case p:
|
|
5868
5861
|
case r:
|
|
5869
|
-
return
|
|
5862
|
+
return _;
|
|
5870
5863
|
default:
|
|
5871
|
-
return
|
|
5864
|
+
return A;
|
|
5872
5865
|
}
|
|
5873
5866
|
}
|
|
5874
5867
|
case t:
|
|
5875
|
-
return
|
|
5868
|
+
return A;
|
|
5876
5869
|
}
|
|
5877
5870
|
}
|
|
5878
5871
|
}
|
|
@@ -5880,32 +5873,32 @@ function ys() {
|
|
|
5880
5873
|
return !1;
|
|
5881
5874
|
}, ce.isConcurrentMode = function() {
|
|
5882
5875
|
return !1;
|
|
5883
|
-
}, ce.isContextConsumer = function(
|
|
5884
|
-
return R(
|
|
5885
|
-
}, ce.isContextProvider = function(
|
|
5886
|
-
return R(
|
|
5887
|
-
}, ce.isElement = function(
|
|
5888
|
-
return typeof
|
|
5889
|
-
}, ce.isForwardRef = function(
|
|
5890
|
-
return R(
|
|
5891
|
-
}, ce.isFragment = function(
|
|
5892
|
-
return R(
|
|
5893
|
-
}, ce.isLazy = function(
|
|
5894
|
-
return R(
|
|
5895
|
-
}, ce.isMemo = function(
|
|
5896
|
-
return R(
|
|
5897
|
-
}, ce.isPortal = function(
|
|
5898
|
-
return R(
|
|
5899
|
-
}, ce.isProfiler = function(
|
|
5900
|
-
return R(
|
|
5901
|
-
}, ce.isStrictMode = function(
|
|
5902
|
-
return R(
|
|
5903
|
-
}, ce.isSuspense = function(
|
|
5904
|
-
return R(
|
|
5905
|
-
}, ce.isSuspenseList = function(
|
|
5906
|
-
return R(
|
|
5907
|
-
}, ce.isValidElementType = function(
|
|
5908
|
-
return typeof
|
|
5876
|
+
}, ce.isContextConsumer = function(_) {
|
|
5877
|
+
return R(_) === s;
|
|
5878
|
+
}, ce.isContextProvider = function(_) {
|
|
5879
|
+
return R(_) === r;
|
|
5880
|
+
}, ce.isElement = function(_) {
|
|
5881
|
+
return typeof _ == "object" && _ !== null && _.$$typeof === e;
|
|
5882
|
+
}, ce.isForwardRef = function(_) {
|
|
5883
|
+
return R(_) === l;
|
|
5884
|
+
}, ce.isFragment = function(_) {
|
|
5885
|
+
return R(_) === n;
|
|
5886
|
+
}, ce.isLazy = function(_) {
|
|
5887
|
+
return R(_) === E;
|
|
5888
|
+
}, ce.isMemo = function(_) {
|
|
5889
|
+
return R(_) === p;
|
|
5890
|
+
}, ce.isPortal = function(_) {
|
|
5891
|
+
return R(_) === t;
|
|
5892
|
+
}, ce.isProfiler = function(_) {
|
|
5893
|
+
return R(_) === o;
|
|
5894
|
+
}, ce.isStrictMode = function(_) {
|
|
5895
|
+
return R(_) === i;
|
|
5896
|
+
}, ce.isSuspense = function(_) {
|
|
5897
|
+
return R(_) === d;
|
|
5898
|
+
}, ce.isSuspenseList = function(_) {
|
|
5899
|
+
return R(_) === u;
|
|
5900
|
+
}, ce.isValidElementType = function(_) {
|
|
5901
|
+
return typeof _ == "string" || typeof _ == "function" || _ === n || _ === o || _ === i || _ === d || _ === u || _ === N || typeof _ == "object" && _ !== null && (_.$$typeof === E || _.$$typeof === p || _.$$typeof === r || _.$$typeof === s || _.$$typeof === l || _.$$typeof === T || _.getModuleId !== void 0);
|
|
5909
5902
|
}, ce.typeOf = R, ce;
|
|
5910
5903
|
}
|
|
5911
5904
|
var le = {};
|
|
@@ -5919,12 +5912,12 @@ var le = {};
|
|
|
5919
5912
|
* LICENSE file in the root directory of this source tree.
|
|
5920
5913
|
*/
|
|
5921
5914
|
var tn;
|
|
5922
|
-
function
|
|
5915
|
+
function ys() {
|
|
5923
5916
|
return tn || (tn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5924
|
-
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"), E = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"),
|
|
5917
|
+
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"), E = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), T = !1, R = !1, _ = !1, A = !1, h = !1, m;
|
|
5925
5918
|
m = Symbol.for("react.module.reference");
|
|
5926
5919
|
function g(L) {
|
|
5927
|
-
return !!(typeof L == "string" || typeof L == "function" || L === n || L === o || h || L === i || L === d || L === u ||
|
|
5920
|
+
return !!(typeof L == "string" || typeof L == "function" || L === n || L === o || h || L === i || L === d || L === u || A || L === N || T || R || _ || typeof L == "object" && L !== null && (L.$$typeof === E || L.$$typeof === p || L.$$typeof === r || L.$$typeof === s || L.$$typeof === l || // This needs to include all possible module reference object
|
|
5928
5921
|
// types supported by any Flight configuration anywhere since
|
|
5929
5922
|
// we don't know which Flight build this will end up being used
|
|
5930
5923
|
// with.
|
|
@@ -5932,8 +5925,8 @@ function _s() {
|
|
|
5932
5925
|
}
|
|
5933
5926
|
function f(L) {
|
|
5934
5927
|
if (typeof L == "object" && L !== null) {
|
|
5935
|
-
var
|
|
5936
|
-
switch (
|
|
5928
|
+
var ye = L.$$typeof;
|
|
5929
|
+
switch (ye) {
|
|
5937
5930
|
case e:
|
|
5938
5931
|
var be = L.type;
|
|
5939
5932
|
switch (be) {
|
|
@@ -5954,11 +5947,11 @@ function _s() {
|
|
|
5954
5947
|
case r:
|
|
5955
5948
|
return Le;
|
|
5956
5949
|
default:
|
|
5957
|
-
return
|
|
5950
|
+
return ye;
|
|
5958
5951
|
}
|
|
5959
5952
|
}
|
|
5960
5953
|
case t:
|
|
5961
|
-
return
|
|
5954
|
+
return ye;
|
|
5962
5955
|
}
|
|
5963
5956
|
}
|
|
5964
5957
|
}
|
|
@@ -5978,7 +5971,7 @@ function _s() {
|
|
|
5978
5971
|
function v(L) {
|
|
5979
5972
|
return typeof L == "object" && L !== null && L.$$typeof === e;
|
|
5980
5973
|
}
|
|
5981
|
-
function
|
|
5974
|
+
function y(L) {
|
|
5982
5975
|
return f(L) === l;
|
|
5983
5976
|
}
|
|
5984
5977
|
function I(L) {
|
|
@@ -6005,10 +5998,10 @@ function _s() {
|
|
|
6005
5998
|
function de(L) {
|
|
6006
5999
|
return f(L) === u;
|
|
6007
6000
|
}
|
|
6008
|
-
le.ContextConsumer = w, le.ContextProvider = k, 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 = D, le.isContextConsumer = K, le.isContextProvider = b, le.isElement = v, le.isForwardRef =
|
|
6001
|
+
le.ContextConsumer = w, le.ContextProvider = k, 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 = D, le.isContextConsumer = K, le.isContextProvider = b, le.isElement = v, le.isForwardRef = y, le.isFragment = I, 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;
|
|
6009
6002
|
}()), le;
|
|
6010
6003
|
}
|
|
6011
|
-
process.env.NODE_ENV === "production" ? J0.exports =
|
|
6004
|
+
process.env.NODE_ENV === "production" ? J0.exports = _s() : J0.exports = ys();
|
|
6012
6005
|
var nn = J0.exports;
|
|
6013
6006
|
const rn = (e) => typeof e == "object" && e != null && e.nodeType === 1, on = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", F0 = (e, t) => {
|
|
6014
6007
|
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
|
|
@@ -6038,15 +6031,15 @@ const rn = (e) => typeof e == "object" && e != null && e.nodeType === 1, on = (e
|
|
|
6038
6031
|
if (!rn(e))
|
|
6039
6032
|
throw new TypeError("Invalid target");
|
|
6040
6033
|
const E = document.scrollingElement || document.documentElement, N = [];
|
|
6041
|
-
let
|
|
6042
|
-
for (; rn(
|
|
6043
|
-
if (
|
|
6044
|
-
N.push(
|
|
6034
|
+
let T = e;
|
|
6035
|
+
for (; rn(T) && p(T); ) {
|
|
6036
|
+
if (T = Es(T), T === E) {
|
|
6037
|
+
N.push(T);
|
|
6045
6038
|
break;
|
|
6046
6039
|
}
|
|
6047
|
-
|
|
6040
|
+
T != null && T === document.body && F0(T) && !F0(document.documentElement) || T != null && F0(T, u) && N.push(T);
|
|
6048
6041
|
}
|
|
6049
|
-
const R = (i = (n = window.visualViewport) == null ? void 0 : n.width) != null ? i : innerWidth,
|
|
6042
|
+
const R = (i = (n = window.visualViewport) == null ? void 0 : n.width) != null ? i : innerWidth, _ = (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: k, left: P } = e.getBoundingClientRect(), { top: q, right: U, bottom: G, left: X } = ((oe) => {
|
|
6050
6043
|
const W = window.getComputedStyle(oe);
|
|
6051
6044
|
return { top: parseFloat(W.scrollMarginTop) || 0, right: parseFloat(W.scrollMarginRight) || 0, bottom: parseFloat(W.scrollMarginBottom) || 0, left: parseFloat(W.scrollMarginLeft) || 0 };
|
|
6052
6045
|
})(e);
|
|
@@ -6054,17 +6047,17 @@ const rn = (e) => typeof e == "object" && e != null && e.nodeType === 1, on = (e
|
|
|
6054
6047
|
const ie = [];
|
|
6055
6048
|
for (let oe = 0; oe < N.length; oe++) {
|
|
6056
6049
|
const W = N[oe], { height: pe, width: ge, top: x, right: D, bottom: K, left: b } = W.getBoundingClientRect();
|
|
6057
|
-
if (s === "if-needed" && f >= 0 && P >= 0 && k <=
|
|
6050
|
+
if (s === "if-needed" && f >= 0 && P >= 0 && k <= _ && w <= R && f >= x && k <= K && P >= b && w <= D)
|
|
6058
6051
|
return ie;
|
|
6059
|
-
const v = getComputedStyle(W),
|
|
6052
|
+
const v = getComputedStyle(W), y = parseInt(v.borderLeftWidth, 10), I = parseInt(v.borderTopWidth, 10), C = parseInt(v.borderRightWidth, 10), z = parseInt(v.borderBottomWidth, 10);
|
|
6060
6053
|
let H = 0, B = 0;
|
|
6061
|
-
const Q = "offsetWidth" in W ? W.offsetWidth - W.clientWidth -
|
|
6054
|
+
const Q = "offsetWidth" in W ? W.offsetWidth - W.clientWidth - y - C : 0, S = "offsetHeight" in W ? W.offsetHeight - W.clientHeight - I - 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;
|
|
6062
6055
|
if (E === W)
|
|
6063
|
-
H = a === "start" ? ne : a === "end" ? ne -
|
|
6056
|
+
H = a === "start" ? ne : a === "end" ? ne - _ : a === "nearest" ? E0(h, h + _, _, I, z, h + ne, h + ne + m, m) : ne - _ / 2, B = l === "start" ? Z : l === "center" ? Z - R / 2 : l === "end" ? Z - R : E0(A, A + R, R, y, C, A + Z, A + Z + g, g), H = Math.max(0, H + h), B = Math.max(0, B + A);
|
|
6064
6057
|
else {
|
|
6065
|
-
H = a === "start" ? ne - x - I : a === "end" ? ne - K + z + S : a === "nearest" ? E0(x, K, pe, I, z + S, ne, ne + m, m) : ne - (x + pe / 2) + S / 2, B = l === "start" ? Z - b -
|
|
6066
|
-
const { scrollLeft:
|
|
6067
|
-
H = L === 0 ? 0 : Math.max(0, Math.min(be + H / L, W.scrollHeight - pe / L + S)), B = de === 0 ? 0 : Math.max(0, Math.min(
|
|
6058
|
+
H = a === "start" ? ne - x - I : a === "end" ? ne - K + z + S : a === "nearest" ? E0(x, K, pe, I, z + S, ne, ne + m, m) : ne - (x + pe / 2) + S / 2, B = l === "start" ? Z - b - y : l === "center" ? Z - (b + ge / 2) + Q / 2 : l === "end" ? Z - D + C + Q : E0(b, D, ge, y, C + Q, Z, Z + g, g);
|
|
6059
|
+
const { scrollLeft: ye, scrollTop: be } = W;
|
|
6060
|
+
H = L === 0 ? 0 : Math.max(0, Math.min(be + H / L, W.scrollHeight - pe / L + S)), B = de === 0 ? 0 : Math.max(0, Math.min(ye + B / de, W.scrollWidth - ge / de + Q)), ne += be - H, Z += ye - B;
|
|
6068
6061
|
}
|
|
6069
6062
|
ie.push({ el: W, top: H, left: B });
|
|
6070
6063
|
}
|
|
@@ -6082,9 +6075,9 @@ var c0 = function() {
|
|
|
6082
6075
|
};
|
|
6083
6076
|
var xs = 0;
|
|
6084
6077
|
function an(e) {
|
|
6085
|
-
return typeof e == "function" ? e :
|
|
6078
|
+
return typeof e == "function" ? e : ke;
|
|
6086
6079
|
}
|
|
6087
|
-
function
|
|
6080
|
+
function ke() {
|
|
6088
6081
|
}
|
|
6089
6082
|
function or(e, t) {
|
|
6090
6083
|
if (e) {
|
|
@@ -6182,7 +6175,7 @@ function et(e) {
|
|
|
6182
6175
|
function Ss(e) {
|
|
6183
6176
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
6184
6177
|
}
|
|
6185
|
-
function
|
|
6178
|
+
function n0(e, t, n, i, o) {
|
|
6186
6179
|
o === void 0 && (o = !1);
|
|
6187
6180
|
var r = n.length;
|
|
6188
6181
|
if (r === 0)
|
|
@@ -6212,7 +6205,7 @@ function M0(e, t, n, i) {
|
|
|
6212
6205
|
return o && (sn(o, e, n) || i && sn(o, n.document.activeElement, n));
|
|
6213
6206
|
});
|
|
6214
6207
|
}
|
|
6215
|
-
var pt =
|
|
6208
|
+
var pt = ke;
|
|
6216
6209
|
process.env.NODE_ENV !== "production" && (pt = function(t, n, i) {
|
|
6217
6210
|
var o = "This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";
|
|
6218
6211
|
Object.keys(t).forEach(function(r) {
|
|
@@ -6241,7 +6234,7 @@ function dr(e, t) {
|
|
|
6241
6234
|
n.textContent = e, Os(t);
|
|
6242
6235
|
}
|
|
6243
6236
|
}
|
|
6244
|
-
var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, pr = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, gr = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, N0 = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, S0 = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, mr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, hr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, vr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, br = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8,
|
|
6237
|
+
var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, pr = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, gr = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, N0 = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, S0 = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, mr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, hr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, vr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, br = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, _r = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, yr = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, Er = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, Ir = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, tt = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, xr = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, wr = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, Nr = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, Rs = /* @__PURE__ */ Object.freeze({
|
|
6245
6238
|
__proto__: null,
|
|
6246
6239
|
unknown: fr,
|
|
6247
6240
|
mouseUp: pr,
|
|
@@ -6252,8 +6245,8 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6252
6245
|
keyDownEnter: hr,
|
|
6253
6246
|
keyDownHome: vr,
|
|
6254
6247
|
keyDownEnd: br,
|
|
6255
|
-
clickItem:
|
|
6256
|
-
blurInput:
|
|
6248
|
+
clickItem: _r,
|
|
6249
|
+
blurInput: yr,
|
|
6257
6250
|
changeInput: Er,
|
|
6258
6251
|
keyDownSpaceButton: Ir,
|
|
6259
6252
|
clickButton: tt,
|
|
@@ -6342,7 +6335,7 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6342
6335
|
}, function() {
|
|
6343
6336
|
var w = g.getItemCount();
|
|
6344
6337
|
if (w > 0) {
|
|
6345
|
-
var k = g.getState(), P = k.highlightedIndex, q =
|
|
6338
|
+
var k = g.getState(), P = k.highlightedIndex, q = n0(P, 1, {
|
|
6346
6339
|
length: w
|
|
6347
6340
|
}, g.isItemDisabled, !0);
|
|
6348
6341
|
g.setHighlightedIndex(q, {
|
|
@@ -6365,7 +6358,7 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6365
6358
|
}, function() {
|
|
6366
6359
|
var w = g.getItemCount();
|
|
6367
6360
|
if (w > 0) {
|
|
6368
|
-
var k = g.getState(), P = k.highlightedIndex, q =
|
|
6361
|
+
var k = g.getState(), P = k.highlightedIndex, q = n0(P, -1, {
|
|
6369
6362
|
length: w
|
|
6370
6363
|
}, g.isItemDisabled, !0);
|
|
6371
6364
|
g.setHighlightedIndex(q, {
|
|
@@ -6518,7 +6511,7 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6518
6511
|
if (!(r.isMouseDown || !r.props.environment)) {
|
|
6519
6512
|
var m = r.props.environment.document.activeElement, g = (m == null || (h = m.dataset) == null ? void 0 : h.toggle) && r._rootNode && r._rootNode.contains(m);
|
|
6520
6513
|
g || r.reset({
|
|
6521
|
-
type:
|
|
6514
|
+
type: yr
|
|
6522
6515
|
});
|
|
6523
6516
|
}
|
|
6524
6517
|
});
|
|
@@ -6551,7 +6544,7 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6551
6544
|
})
|
|
6552
6545
|
}, m[X] = he(ne, function() {
|
|
6553
6546
|
r.selectItemAtIndex(P, {
|
|
6554
|
-
type:
|
|
6547
|
+
type: _r
|
|
6555
6548
|
});
|
|
6556
6549
|
}), m), ie = G.disabled ? {
|
|
6557
6550
|
onMouseDown: Z.onMouseDown
|
|
@@ -6604,13 +6597,13 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6604
6597
|
r.previousResultCount = f, dr(w, r.props.environment.document);
|
|
6605
6598
|
}
|
|
6606
6599
|
}, 200);
|
|
6607
|
-
var s = r.props, a = s.defaultHighlightedIndex, l = s.initialHighlightedIndex, d = l === void 0 ? a : l, u = s.defaultIsOpen, p = s.initialIsOpen, E = p === void 0 ? u : p, N = s.initialInputValue,
|
|
6600
|
+
var s = r.props, a = s.defaultHighlightedIndex, l = s.initialHighlightedIndex, d = l === void 0 ? a : l, u = s.defaultIsOpen, p = s.initialIsOpen, E = p === void 0 ? u : p, N = s.initialInputValue, T = N === void 0 ? "" : N, R = s.initialSelectedItem, _ = R === void 0 ? null : R, A = r.getState({
|
|
6608
6601
|
highlightedIndex: d,
|
|
6609
6602
|
isOpen: E,
|
|
6610
|
-
inputValue:
|
|
6611
|
-
selectedItem:
|
|
6603
|
+
inputValue: T,
|
|
6604
|
+
selectedItem: _
|
|
6612
6605
|
});
|
|
6613
|
-
return
|
|
6606
|
+
return A.selectedItem != null && r.props.initialInputValue === void 0 && (A.inputValue = r.props.itemToString(A.selectedItem)), r.state = A, r;
|
|
6614
6607
|
}
|
|
6615
6608
|
var i = n.prototype;
|
|
6616
6609
|
return i.internalClearTimeouts = function() {
|
|
@@ -6632,21 +6625,21 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6632
6625
|
}, i.moveHighlightedIndex = function(r, s) {
|
|
6633
6626
|
var a = this.getItemCount(), l = this.getState(), d = l.highlightedIndex;
|
|
6634
6627
|
if (a > 0) {
|
|
6635
|
-
var u =
|
|
6628
|
+
var u = n0(d, r, {
|
|
6636
6629
|
length: a
|
|
6637
6630
|
}, this.isItemDisabled, !0);
|
|
6638
6631
|
this.setHighlightedIndex(u, s);
|
|
6639
6632
|
}
|
|
6640
6633
|
}, i.getStateAndHelpers = function() {
|
|
6641
|
-
var r = this.getState(), s = r.highlightedIndex, a = r.inputValue, l = r.selectedItem, d = r.isOpen, u = this.props.itemToString, p = this.id, E = this.getRootProps, N = this.getToggleButtonProps,
|
|
6634
|
+
var r = this.getState(), s = r.highlightedIndex, a = r.inputValue, l = r.selectedItem, d = r.isOpen, u = this.props.itemToString, p = this.id, E = this.getRootProps, N = this.getToggleButtonProps, T = this.getLabelProps, R = this.getMenuProps, _ = this.getInputProps, A = this.getItemProps, h = this.openMenu, m = this.closeMenu, g = this.toggleMenu, f = this.selectItem, w = this.selectItemAtIndex, k = this.selectHighlightedItem, P = this.setHighlightedIndex, q = this.clearSelection, U = this.clearItems, G = this.reset, X = this.setItemCount, ne = this.unsetItemCount, Z = this.internalSetState;
|
|
6642
6635
|
return {
|
|
6643
6636
|
// prop getters
|
|
6644
6637
|
getRootProps: E,
|
|
6645
6638
|
getToggleButtonProps: N,
|
|
6646
|
-
getLabelProps:
|
|
6639
|
+
getLabelProps: T,
|
|
6647
6640
|
getMenuProps: R,
|
|
6648
|
-
getInputProps:
|
|
6649
|
-
getItemProps:
|
|
6641
|
+
getInputProps: _,
|
|
6642
|
+
getItemProps: A,
|
|
6650
6643
|
// actions
|
|
6651
6644
|
reset: G,
|
|
6652
6645
|
openMenu: h,
|
|
@@ -6682,8 +6675,8 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6682
6675
|
r.isMouseDown = !0;
|
|
6683
6676
|
}, a = function(N) {
|
|
6684
6677
|
r.isMouseDown = !1;
|
|
6685
|
-
var
|
|
6686
|
-
!
|
|
6678
|
+
var T = M0(N.target, [r._rootNode, r._menuNode], r.props.environment);
|
|
6679
|
+
!T && r.getState().isOpen && r.reset({
|
|
6687
6680
|
type: pr
|
|
6688
6681
|
}, function() {
|
|
6689
6682
|
return r.props.onOuterClick(r.getStateAndHelpers());
|
|
@@ -6693,8 +6686,8 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6693
6686
|
}, d = function() {
|
|
6694
6687
|
r.isTouchMove = !0;
|
|
6695
6688
|
}, u = function(N) {
|
|
6696
|
-
var
|
|
6697
|
-
!r.isTouchMove && !
|
|
6689
|
+
var T = M0(N.target, [r._rootNode, r._menuNode], r.props.environment, !1);
|
|
6690
|
+
!r.isTouchMove && !T && r.getState().isOpen && r.reset({
|
|
6698
6691
|
type: Nr
|
|
6699
6692
|
}, function() {
|
|
6700
6693
|
return r.props.onOuterClick(r.getStateAndHelpers());
|
|
@@ -6715,7 +6708,7 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6715
6708
|
}, i.componentWillUnmount = function() {
|
|
6716
6709
|
this.cleanup();
|
|
6717
6710
|
}, i.render = function() {
|
|
6718
|
-
var r = cn(this.props.children,
|
|
6711
|
+
var r = cn(this.props.children, ke);
|
|
6719
6712
|
this.clearItems(), this.getRootProps.called = !1, this.getRootProps.refKey = void 0, this.getRootProps.suppressRefError = void 0, this.getMenuProps.called = !1, this.getMenuProps.refKey = void 0, this.getMenuProps.suppressRefError = void 0, this.getLabelProps.called = !1, this.getInputProps.called = !1;
|
|
6720
6713
|
var s = cn(r(this.getStateAndHelpers()));
|
|
6721
6714
|
if (!s)
|
|
@@ -6735,12 +6728,12 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6735
6728
|
itemToString: function(n) {
|
|
6736
6729
|
return n == null ? "" : (process.env.NODE_ENV !== "production" && Ss(n) && !n.hasOwnProperty("toString") && console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.", "The object that was passed:", n), String(n));
|
|
6737
6730
|
},
|
|
6738
|
-
onStateChange:
|
|
6739
|
-
onInputValueChange:
|
|
6740
|
-
onUserAction:
|
|
6741
|
-
onChange:
|
|
6742
|
-
onSelect:
|
|
6743
|
-
onOuterClick:
|
|
6731
|
+
onStateChange: ke,
|
|
6732
|
+
onInputValueChange: ke,
|
|
6733
|
+
onUserAction: ke,
|
|
6734
|
+
onChange: ke,
|
|
6735
|
+
onSelect: ke,
|
|
6736
|
+
onOuterClick: ke,
|
|
6744
6737
|
selectedItemChanged: function(n, i) {
|
|
6745
6738
|
return n !== i;
|
|
6746
6739
|
},
|
|
@@ -6838,8 +6831,8 @@ function Hs(e) {
|
|
|
6838
6831
|
}
|
|
6839
6832
|
var zs = ft(function(e, t) {
|
|
6840
6833
|
dr(e(), t);
|
|
6841
|
-
}, 200), Us = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Yr :
|
|
6842
|
-
var n = t.id, i = t.labelId, o = t.menuId, r = t.getItemId, s = t.toggleButtonId, a = t.inputId, l = "downshift-" +
|
|
6834
|
+
}, 200), Us = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Yr : De, js = "useId" in _e ? function(t) {
|
|
6835
|
+
var n = t.id, i = t.labelId, o = t.menuId, r = t.getItemId, s = t.toggleButtonId, a = t.inputId, l = "downshift-" + _e.useId();
|
|
6843
6836
|
n || (n = l);
|
|
6844
6837
|
var d = Ee({
|
|
6845
6838
|
labelId: i || n + "-label",
|
|
@@ -6884,18 +6877,18 @@ function Or(e) {
|
|
|
6884
6877
|
return t.current = e, t;
|
|
6885
6878
|
}
|
|
6886
6879
|
function qs(e, t, n, i) {
|
|
6887
|
-
var o = Ee(), r = Ee(), s =
|
|
6888
|
-
r.current =
|
|
6889
|
-
var R = e(N,
|
|
6880
|
+
var o = Ee(), r = Ee(), s = we(function(N, T) {
|
|
6881
|
+
r.current = T, N = R0(N, T.props);
|
|
6882
|
+
var R = e(N, T), _ = T.props.stateReducer(N, Y({}, T, {
|
|
6890
6883
|
changes: R
|
|
6891
6884
|
}));
|
|
6892
|
-
return
|
|
6893
|
-
}, [e]), a = Xr(s, t, n), l = a[0], d = a[1], u = Or(t), p =
|
|
6885
|
+
return _;
|
|
6886
|
+
}, [e]), a = Xr(s, t, n), l = a[0], d = a[1], u = Or(t), p = we(function(N) {
|
|
6894
6887
|
return d(Y({
|
|
6895
6888
|
props: u.current
|
|
6896
6889
|
}, N));
|
|
6897
6890
|
}, [u]), E = r.current;
|
|
6898
|
-
return
|
|
6891
|
+
return De(function() {
|
|
6899
6892
|
var N = E && o.current && !i(o.current, l);
|
|
6900
6893
|
N && $s(E, R0(o.current, E.props), l), o.current = l;
|
|
6901
6894
|
}, [l, E, i]), [l, p];
|
|
@@ -6941,7 +6934,7 @@ function Gs(e, t, n, i) {
|
|
|
6941
6934
|
isMouseDown: !1,
|
|
6942
6935
|
isTouchMove: !1
|
|
6943
6936
|
});
|
|
6944
|
-
return
|
|
6937
|
+
return De(function() {
|
|
6945
6938
|
if (n) {
|
|
6946
6939
|
var r = function() {
|
|
6947
6940
|
o.current.isMouseDown = !0;
|
|
@@ -6965,7 +6958,7 @@ function Gs(e, t, n, i) {
|
|
|
6965
6958
|
}, [e, n]), o;
|
|
6966
6959
|
}
|
|
6967
6960
|
var Rr = function() {
|
|
6968
|
-
return
|
|
6961
|
+
return ke;
|
|
6969
6962
|
};
|
|
6970
6963
|
process.env.NODE_ENV !== "production" && (Rr = function() {
|
|
6971
6964
|
for (var t = Ee(!0), n = arguments.length, i = new Array(n), o = 0; o < n; o++)
|
|
@@ -6973,7 +6966,7 @@ process.env.NODE_ENV !== "production" && (Rr = function() {
|
|
|
6973
6966
|
var r = Ee(i.reduce(function(a, l) {
|
|
6974
6967
|
return a[l] = {}, a;
|
|
6975
6968
|
}, {}));
|
|
6976
|
-
|
|
6969
|
+
De(function() {
|
|
6977
6970
|
Object.keys(r.current).forEach(function(a) {
|
|
6978
6971
|
var l = r.current[a];
|
|
6979
6972
|
if (t.current && !Object.keys(l).length) {
|
|
@@ -6984,7 +6977,7 @@ process.env.NODE_ENV !== "production" && (Rr = function() {
|
|
|
6984
6977
|
(!p || !p.current) && !d && console.error('downshift: The ref prop "' + u + '" from ' + a + " was not applied correctly on your element.");
|
|
6985
6978
|
}), t.current = !1;
|
|
6986
6979
|
});
|
|
6987
|
-
var s =
|
|
6980
|
+
var s = we(function(a, l, d, u) {
|
|
6988
6981
|
r.current[a] = {
|
|
6989
6982
|
suppressRefError: l,
|
|
6990
6983
|
refKey: d,
|
|
@@ -6995,7 +6988,7 @@ process.env.NODE_ENV !== "production" && (Rr = function() {
|
|
|
6995
6988
|
});
|
|
6996
6989
|
function un(e, t, n) {
|
|
6997
6990
|
var i = n.isInitialMount, o = n.highlightedIndex, r = n.items, s = n.environment, a = He(n, Ls);
|
|
6998
|
-
|
|
6991
|
+
De(function() {
|
|
6999
6992
|
i || !(s != null && s.document) || zs(function() {
|
|
7000
6993
|
return e(Y({
|
|
7001
6994
|
highlightedIndex: o,
|
|
@@ -7011,10 +7004,10 @@ function Ys(e) {
|
|
|
7011
7004
|
t < 0 || !n || !Object.keys(i.current).length || (a.current === !1 ? a.current = !0 : s(o(t), r));
|
|
7012
7005
|
}, [t]), a;
|
|
7013
7006
|
}
|
|
7014
|
-
var Cr =
|
|
7007
|
+
var Cr = ke;
|
|
7015
7008
|
process.env.NODE_ENV !== "production" && (Cr = function(t) {
|
|
7016
7009
|
var n = t.isInitialMount, i = t.props, o = t.state, r = Ee(i);
|
|
7017
|
-
|
|
7010
|
+
De(function() {
|
|
7018
7011
|
n || (pt(o, r.current, i), r.current = i);
|
|
7019
7012
|
}, [o, i, n]);
|
|
7020
7013
|
});
|
|
@@ -7157,14 +7150,14 @@ process.env.NODE_ENV;
|
|
|
7157
7150
|
process.env.NODE_ENV;
|
|
7158
7151
|
process.env.NODE_ENV;
|
|
7159
7152
|
process.env.NODE_ENV;
|
|
7160
|
-
var mt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, ht = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, vt = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, bt = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3,
|
|
7153
|
+
var mt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, ht = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, vt = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, bt = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, _t = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, yt = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, Et = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, It = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, xt = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, T0 = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, wt = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, Ar = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, kr = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, Nt = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, Dr = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, Pr = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, Lr = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, $r = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, Br = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, St = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, Vr = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, Hr = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, Ot = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, zr = /* @__PURE__ */ Object.freeze({
|
|
7161
7154
|
__proto__: null,
|
|
7162
7155
|
InputKeyDownArrowDown: mt,
|
|
7163
7156
|
InputKeyDownArrowUp: ht,
|
|
7164
7157
|
InputKeyDownEscape: vt,
|
|
7165
7158
|
InputKeyDownHome: bt,
|
|
7166
|
-
InputKeyDownEnd:
|
|
7167
|
-
InputKeyDownPageUp:
|
|
7159
|
+
InputKeyDownEnd: _t,
|
|
7160
|
+
InputKeyDownPageUp: yt,
|
|
7168
7161
|
InputKeyDownPageDown: Et,
|
|
7169
7162
|
InputKeyDownEnter: It,
|
|
7170
7163
|
InputChange: xt,
|
|
@@ -7202,14 +7195,14 @@ var ec = Y({}, Tr, {
|
|
|
7202
7195
|
});
|
|
7203
7196
|
function tc(e, t, n, i) {
|
|
7204
7197
|
var o = Ee(), r = qs(e, t, n, i), s = r[0], a = r[1];
|
|
7205
|
-
return
|
|
7198
|
+
return De(function() {
|
|
7206
7199
|
C0(t, "selectedItem") && (t.selectedItemChanged(o.current, t.selectedItem) && a({
|
|
7207
7200
|
type: Ot,
|
|
7208
7201
|
inputValue: t.itemToString(t.selectedItem)
|
|
7209
7202
|
}), o.current = s.selectedItem === o.current ? t.selectedItem : s.selectedItem);
|
|
7210
7203
|
}, [s.selectedItem, t.selectedItem]), [R0(s, t), a];
|
|
7211
7204
|
}
|
|
7212
|
-
var Ur =
|
|
7205
|
+
var Ur = ke;
|
|
7213
7206
|
process.env.NODE_ENV !== "production" && (Ur = function(t, n) {
|
|
7214
7207
|
O.checkPropTypes(ec, t, "prop", n.name);
|
|
7215
7208
|
});
|
|
@@ -7235,7 +7228,7 @@ function rc(e, t) {
|
|
|
7235
7228
|
break;
|
|
7236
7229
|
case mt:
|
|
7237
7230
|
e.isOpen ? s = {
|
|
7238
|
-
highlightedIndex:
|
|
7231
|
+
highlightedIndex: n0(e.highlightedIndex, 1, o.items, o.isItemDisabled, !0)
|
|
7239
7232
|
} : s = {
|
|
7240
7233
|
highlightedIndex: r && e.selectedItem == null ? -1 : f0(o, e, 1),
|
|
7241
7234
|
isOpen: o.items.length >= 0
|
|
@@ -7243,7 +7236,7 @@ function rc(e, t) {
|
|
|
7243
7236
|
break;
|
|
7244
7237
|
case ht:
|
|
7245
7238
|
e.isOpen ? r ? s = dn(o, e.highlightedIndex) : s = {
|
|
7246
|
-
highlightedIndex:
|
|
7239
|
+
highlightedIndex: n0(e.highlightedIndex, -1, o.items, o.isItemDisabled, !0)
|
|
7247
7240
|
} : s = {
|
|
7248
7241
|
highlightedIndex: f0(o, e, -1),
|
|
7249
7242
|
isOpen: o.items.length >= 0
|
|
@@ -7261,14 +7254,14 @@ function rc(e, t) {
|
|
|
7261
7254
|
inputValue: ""
|
|
7262
7255
|
});
|
|
7263
7256
|
break;
|
|
7264
|
-
case
|
|
7257
|
+
case yt:
|
|
7265
7258
|
s = {
|
|
7266
|
-
highlightedIndex:
|
|
7259
|
+
highlightedIndex: n0(e.highlightedIndex, -10, o.items, o.isItemDisabled, !0)
|
|
7267
7260
|
};
|
|
7268
7261
|
break;
|
|
7269
7262
|
case Et:
|
|
7270
7263
|
s = {
|
|
7271
|
-
highlightedIndex:
|
|
7264
|
+
highlightedIndex: n0(e.highlightedIndex, 10, o.items, o.isItemDisabled, !0)
|
|
7272
7265
|
};
|
|
7273
7266
|
break;
|
|
7274
7267
|
case bt:
|
|
@@ -7276,7 +7269,7 @@ function rc(e, t) {
|
|
|
7276
7269
|
highlightedIndex: l0(0, !1, o.items, o.isItemDisabled)
|
|
7277
7270
|
};
|
|
7278
7271
|
break;
|
|
7279
|
-
case
|
|
7272
|
+
case _t:
|
|
7280
7273
|
s = {
|
|
7281
7274
|
highlightedIndex: l0(o.items.length - 1, !0, o.items, o.isItemDisabled)
|
|
7282
7275
|
};
|
|
@@ -7323,13 +7316,13 @@ var ic = ["onMouseLeave", "refKey", "ref"], oc = ["item", "index", "refKey", "re
|
|
|
7323
7316
|
Rt.stateChangeTypes = zr;
|
|
7324
7317
|
function Rt(e) {
|
|
7325
7318
|
e === void 0 && (e = {}), Ur(e, Rt);
|
|
7326
|
-
var t = Y({}, nc, e), n = t.items, i = t.scrollIntoView, o = t.environment, r = t.getA11yStatusMessage, s = t.getA11ySelectionMessage, a = t.itemToString, l = tc(rc, t, Js, Xs), d = l[0], u = l[1], p = d.isOpen, E = d.highlightedIndex, N = d.selectedItem,
|
|
7319
|
+
var t = Y({}, nc, e), n = t.items, i = t.scrollIntoView, o = t.environment, r = t.getA11yStatusMessage, s = t.getA11ySelectionMessage, a = t.itemToString, l = tc(rc, t, Js, Xs), d = l[0], u = l[1], p = d.isOpen, E = d.highlightedIndex, N = d.selectedItem, T = d.inputValue, R = Ee(null), _ = Ee({}), A = Ee(null), h = Ee(null), m = Ee(!0), g = js(t), f = Ee(), w = Or({
|
|
7327
7320
|
state: d,
|
|
7328
7321
|
props: t
|
|
7329
|
-
}), k =
|
|
7330
|
-
return
|
|
7322
|
+
}), k = we(function(v) {
|
|
7323
|
+
return _.current[g.getItemId(v)];
|
|
7331
7324
|
}, [g]);
|
|
7332
|
-
un(r, [p, E,
|
|
7325
|
+
un(r, [p, E, T, n], Y({
|
|
7333
7326
|
isInitialMount: m.current,
|
|
7334
7327
|
previousResultCount: f.current,
|
|
7335
7328
|
items: n,
|
|
@@ -7346,7 +7339,7 @@ function Rt(e) {
|
|
|
7346
7339
|
menuElement: R.current,
|
|
7347
7340
|
highlightedIndex: E,
|
|
7348
7341
|
isOpen: p,
|
|
7349
|
-
itemRefs:
|
|
7342
|
+
itemRefs: _,
|
|
7350
7343
|
scrollIntoView: i,
|
|
7351
7344
|
getItemNodeFromIndex: k
|
|
7352
7345
|
});
|
|
@@ -7354,143 +7347,143 @@ function Rt(e) {
|
|
|
7354
7347
|
isInitialMount: m.current,
|
|
7355
7348
|
props: t,
|
|
7356
7349
|
state: d
|
|
7357
|
-
}),
|
|
7350
|
+
}), De(function() {
|
|
7358
7351
|
var v = u0(t, "isOpen");
|
|
7359
|
-
v &&
|
|
7360
|
-
}, []),
|
|
7352
|
+
v && A.current && A.current.focus();
|
|
7353
|
+
}, []), De(function() {
|
|
7361
7354
|
m.current || (f.current = n.length);
|
|
7362
7355
|
});
|
|
7363
|
-
var q = Gs(p, [
|
|
7356
|
+
var q = Gs(p, [A, R, h], o, function() {
|
|
7364
7357
|
u({
|
|
7365
7358
|
type: T0,
|
|
7366
7359
|
selectItem: !1
|
|
7367
7360
|
});
|
|
7368
7361
|
}), U = Rr("getInputProps", "getMenuProps");
|
|
7369
|
-
|
|
7362
|
+
De(function() {
|
|
7370
7363
|
return m.current = !1, function() {
|
|
7371
7364
|
m.current = !0;
|
|
7372
7365
|
};
|
|
7373
|
-
}, []),
|
|
7374
|
-
p || (
|
|
7375
|
-
}, [p]),
|
|
7366
|
+
}, []), De(function() {
|
|
7367
|
+
p || (_.current = {});
|
|
7368
|
+
}, [p]), De(function() {
|
|
7376
7369
|
var v;
|
|
7377
|
-
!p || !(o != null && o.document) || !(
|
|
7370
|
+
!p || !(o != null && o.document) || !(A != null && (v = A.current) != null && v.focus) || o.document.activeElement !== A.current && A.current.focus();
|
|
7378
7371
|
}, [p, o]);
|
|
7379
7372
|
var G = fn(function() {
|
|
7380
7373
|
return {
|
|
7381
|
-
ArrowDown: function(
|
|
7382
|
-
|
|
7374
|
+
ArrowDown: function(y) {
|
|
7375
|
+
y.preventDefault(), u({
|
|
7383
7376
|
type: mt,
|
|
7384
|
-
altKey:
|
|
7377
|
+
altKey: y.altKey
|
|
7385
7378
|
});
|
|
7386
7379
|
},
|
|
7387
|
-
ArrowUp: function(
|
|
7388
|
-
|
|
7380
|
+
ArrowUp: function(y) {
|
|
7381
|
+
y.preventDefault(), u({
|
|
7389
7382
|
type: ht,
|
|
7390
|
-
altKey:
|
|
7383
|
+
altKey: y.altKey
|
|
7391
7384
|
});
|
|
7392
7385
|
},
|
|
7393
|
-
Home: function(
|
|
7394
|
-
w.current.state.isOpen && (
|
|
7386
|
+
Home: function(y) {
|
|
7387
|
+
w.current.state.isOpen && (y.preventDefault(), u({
|
|
7395
7388
|
type: bt
|
|
7396
7389
|
}));
|
|
7397
7390
|
},
|
|
7398
|
-
End: function(
|
|
7399
|
-
w.current.state.isOpen && (
|
|
7400
|
-
type:
|
|
7391
|
+
End: function(y) {
|
|
7392
|
+
w.current.state.isOpen && (y.preventDefault(), u({
|
|
7393
|
+
type: _t
|
|
7401
7394
|
}));
|
|
7402
7395
|
},
|
|
7403
|
-
Escape: function(
|
|
7396
|
+
Escape: function(y) {
|
|
7404
7397
|
var I = w.current.state;
|
|
7405
|
-
(I.isOpen || I.inputValue || I.selectedItem || I.highlightedIndex > -1) && (
|
|
7398
|
+
(I.isOpen || I.inputValue || I.selectedItem || I.highlightedIndex > -1) && (y.preventDefault(), u({
|
|
7406
7399
|
type: vt
|
|
7407
7400
|
}));
|
|
7408
7401
|
},
|
|
7409
|
-
Enter: function(
|
|
7402
|
+
Enter: function(y) {
|
|
7410
7403
|
var I = w.current.state;
|
|
7411
|
-
!I.isOpen ||
|
|
7404
|
+
!I.isOpen || y.which === 229 || (y.preventDefault(), u({
|
|
7412
7405
|
type: It
|
|
7413
7406
|
}));
|
|
7414
7407
|
},
|
|
7415
|
-
PageUp: function(
|
|
7416
|
-
w.current.state.isOpen && (
|
|
7417
|
-
type:
|
|
7408
|
+
PageUp: function(y) {
|
|
7409
|
+
w.current.state.isOpen && (y.preventDefault(), u({
|
|
7410
|
+
type: yt
|
|
7418
7411
|
}));
|
|
7419
7412
|
},
|
|
7420
|
-
PageDown: function(
|
|
7421
|
-
w.current.state.isOpen && (
|
|
7413
|
+
PageDown: function(y) {
|
|
7414
|
+
w.current.state.isOpen && (y.preventDefault(), u({
|
|
7422
7415
|
type: Et
|
|
7423
7416
|
}));
|
|
7424
7417
|
}
|
|
7425
7418
|
};
|
|
7426
|
-
}, [u, w]), X =
|
|
7419
|
+
}, [u, w]), X = we(function(v) {
|
|
7427
7420
|
return Y({
|
|
7428
7421
|
id: g.labelId,
|
|
7429
7422
|
htmlFor: g.inputId
|
|
7430
7423
|
}, v);
|
|
7431
|
-
}, [g]), ne =
|
|
7432
|
-
var I, C = v === void 0 ? {} : v, z = C.onMouseLeave, H = C.refKey, B = H === void 0 ? "ref" : H, Q = C.ref, S = He(C, ic), de =
|
|
7433
|
-
return U("getMenuProps",
|
|
7424
|
+
}, [g]), ne = we(function(v, y) {
|
|
7425
|
+
var I, C = v === void 0 ? {} : v, z = C.onMouseLeave, H = C.refKey, B = H === void 0 ? "ref" : H, Q = C.ref, S = He(C, ic), de = y === void 0 ? {} : y, L = de.suppressRefError, ye = L === void 0 ? !1 : L;
|
|
7426
|
+
return U("getMenuProps", ye, B, R), Y((I = {}, I[B] = a0(Q, function(be) {
|
|
7434
7427
|
R.current = be;
|
|
7435
7428
|
}), I.id = g.menuId, I.role = "listbox", I["aria-labelledby"] = S && S["aria-label"] ? void 0 : "" + g.labelId, I.onMouseLeave = he(z, function() {
|
|
7436
7429
|
u({
|
|
7437
7430
|
type: Ar
|
|
7438
7431
|
});
|
|
7439
7432
|
}), I), S);
|
|
7440
|
-
}, [u, U, g]), Z =
|
|
7441
|
-
var
|
|
7433
|
+
}, [u, U, g]), Z = we(function(v) {
|
|
7434
|
+
var y, I, 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, ye = C.onClick;
|
|
7442
7435
|
C.onPress;
|
|
7443
7436
|
var be = C.disabled, Le = He(C, oc);
|
|
7444
7437
|
be !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
|
|
7445
|
-
var Ye = w.current, $e = Ye.props, Be = Ye.state, Xe = Ks(z, H, $e.items, "Pass either item or index to getItemProps!"), J = Xe[0],
|
|
7446
|
-
|
|
7438
|
+
var Ye = w.current, $e = Ye.props, Be = Ye.state, Xe = Ks(z, H, $e.items, "Pass either item or index to getItemProps!"), J = Xe[0], Me = Xe[1], me = $e.isItemDisabled(J, Me), fe = "onClick", Fe = ye, Ne = function() {
|
|
7439
|
+
Me !== Be.highlightedIndex && (P.current = !1, u({
|
|
7447
7440
|
type: kr,
|
|
7448
|
-
index:
|
|
7441
|
+
index: Me,
|
|
7449
7442
|
disabled: me
|
|
7450
7443
|
}));
|
|
7451
7444
|
}, Ve = function() {
|
|
7452
7445
|
u({
|
|
7453
7446
|
type: Nt,
|
|
7454
|
-
index:
|
|
7447
|
+
index: Me
|
|
7455
7448
|
});
|
|
7456
|
-
},
|
|
7449
|
+
}, Te = function(j) {
|
|
7457
7450
|
return j.preventDefault();
|
|
7458
7451
|
};
|
|
7459
|
-
return Y((
|
|
7460
|
-
$ && (
|
|
7461
|
-
}),
|
|
7452
|
+
return Y((y = {}, y[Q] = a0(S, function($) {
|
|
7453
|
+
$ && (_.current[g.getItemId(Me)] = $);
|
|
7454
|
+
}), y["aria-disabled"] = me, y["aria-selected"] = "" + (Me === Be.highlightedIndex), y.id = g.getItemId(Me), y.role = "option", y), !me && (I = {}, I[fe] = he(Fe, Ve), I), {
|
|
7462
7455
|
onMouseMove: he(de, Ne),
|
|
7463
|
-
onMouseDown: he(L,
|
|
7456
|
+
onMouseDown: he(L, Te)
|
|
7464
7457
|
}, Le);
|
|
7465
|
-
}, [u, w, P, g]), ie =
|
|
7466
|
-
var
|
|
7458
|
+
}, [u, w, P, g]), ie = we(function(v) {
|
|
7459
|
+
var y, I = v === void 0 ? {} : v, C = I.onClick;
|
|
7467
7460
|
I.onPress;
|
|
7468
7461
|
var z = I.refKey, H = z === void 0 ? "ref" : z, B = I.ref, Q = He(I, ac), S = w.current.state, de = function() {
|
|
7469
7462
|
u({
|
|
7470
7463
|
type: Dr
|
|
7471
7464
|
});
|
|
7472
7465
|
};
|
|
7473
|
-
return Y((
|
|
7466
|
+
return Y((y = {}, y[H] = a0(B, function(L) {
|
|
7474
7467
|
h.current = L;
|
|
7475
|
-
}),
|
|
7468
|
+
}), y["aria-controls"] = g.menuId, y["aria-expanded"] = S.isOpen, y.id = g.toggleButtonId, y.tabIndex = -1, y), !Q.disabled && Y({}, {
|
|
7476
7469
|
onClick: he(C, de)
|
|
7477
7470
|
}), Q);
|
|
7478
|
-
}, [u, w, g]), oe =
|
|
7471
|
+
}, [u, w, g]), oe = we(function(v, y) {
|
|
7479
7472
|
var I, C = v === void 0 ? {} : v, z = C.onKeyDown, H = C.onChange, B = C.onInput, Q = C.onBlur;
|
|
7480
7473
|
C.onChangeText;
|
|
7481
|
-
var S = C.onClick, de = C.refKey, L = de === void 0 ? "ref" : de,
|
|
7482
|
-
U("getInputProps", $e, L,
|
|
7483
|
-
var Be = w.current.state, Xe = function(
|
|
7484
|
-
var $ = et(
|
|
7485
|
-
$ && G[$] && G[$](
|
|
7486
|
-
}, J = function(
|
|
7474
|
+
var S = C.onClick, de = C.refKey, L = de === void 0 ? "ref" : de, ye = C.ref, be = He(C, sc), Le = y === void 0 ? {} : y, Ye = Le.suppressRefError, $e = Ye === void 0 ? !1 : Ye;
|
|
7475
|
+
U("getInputProps", $e, L, A);
|
|
7476
|
+
var Be = w.current.state, Xe = function(Te) {
|
|
7477
|
+
var $ = et(Te);
|
|
7478
|
+
$ && G[$] && G[$](Te);
|
|
7479
|
+
}, J = function(Te) {
|
|
7487
7480
|
u({
|
|
7488
7481
|
type: xt,
|
|
7489
|
-
inputValue:
|
|
7482
|
+
inputValue: Te.target.value
|
|
7490
7483
|
});
|
|
7491
|
-
},
|
|
7484
|
+
}, Me = function(Te) {
|
|
7492
7485
|
if (o != null && o.document && Be.isOpen && !q.current.isMouseDown) {
|
|
7493
|
-
var $ =
|
|
7486
|
+
var $ = Te.relatedTarget === null && o.document.activeElement !== o.document.body;
|
|
7494
7487
|
u({
|
|
7495
7488
|
type: T0,
|
|
7496
7489
|
selectItem: !$
|
|
@@ -7503,39 +7496,39 @@ function Rt(e) {
|
|
|
7503
7496
|
}, fe = "onChange", Fe = {};
|
|
7504
7497
|
if (!be.disabled) {
|
|
7505
7498
|
var Ne;
|
|
7506
|
-
Fe = (Ne = {}, Ne[fe] = he(H, B, J), Ne.onKeyDown = he(z, Xe), Ne.onBlur = he(Q,
|
|
7499
|
+
Fe = (Ne = {}, Ne[fe] = he(H, B, J), Ne.onKeyDown = he(z, Xe), Ne.onBlur = he(Q, Me), Ne.onClick = he(S, me), Ne);
|
|
7507
7500
|
}
|
|
7508
|
-
return Y((I = {}, I[L] = a0(
|
|
7509
|
-
|
|
7501
|
+
return Y((I = {}, I[L] = a0(ye, function(Ve) {
|
|
7502
|
+
A.current = Ve;
|
|
7510
7503
|
}), I["aria-activedescendant"] = Be.isOpen && Be.highlightedIndex > -1 ? g.getItemId(Be.highlightedIndex) : "", I["aria-autocomplete"] = "list", I["aria-controls"] = g.menuId, I["aria-expanded"] = Be.isOpen, I["aria-labelledby"] = be && be["aria-label"] ? void 0 : g.labelId, I.autoComplete = "off", I.id = g.inputId, I.role = "combobox", I.value = Be.inputValue, I), Fe, be);
|
|
7511
|
-
}, [U, w, g, G, u, q, o]), W =
|
|
7504
|
+
}, [U, w, g, G, u, q, o]), W = we(function() {
|
|
7512
7505
|
u({
|
|
7513
7506
|
type: Pr
|
|
7514
7507
|
});
|
|
7515
|
-
}, [u]), pe =
|
|
7508
|
+
}, [u]), pe = we(function() {
|
|
7516
7509
|
u({
|
|
7517
7510
|
type: $r
|
|
7518
7511
|
});
|
|
7519
|
-
}, [u]), ge =
|
|
7512
|
+
}, [u]), ge = we(function() {
|
|
7520
7513
|
u({
|
|
7521
7514
|
type: Lr
|
|
7522
7515
|
});
|
|
7523
|
-
}, [u]), x =
|
|
7516
|
+
}, [u]), x = we(function(v) {
|
|
7524
7517
|
u({
|
|
7525
7518
|
type: Br,
|
|
7526
7519
|
highlightedIndex: v
|
|
7527
7520
|
});
|
|
7528
|
-
}, [u]), D =
|
|
7521
|
+
}, [u]), D = we(function(v) {
|
|
7529
7522
|
u({
|
|
7530
7523
|
type: St,
|
|
7531
7524
|
selectedItem: v
|
|
7532
7525
|
});
|
|
7533
|
-
}, [u]), K =
|
|
7526
|
+
}, [u]), K = we(function(v) {
|
|
7534
7527
|
u({
|
|
7535
7528
|
type: Vr,
|
|
7536
7529
|
inputValue: v
|
|
7537
7530
|
});
|
|
7538
|
-
}, [u]), b =
|
|
7531
|
+
}, [u]), b = we(function() {
|
|
7539
7532
|
u({
|
|
7540
7533
|
type: Hr
|
|
7541
7534
|
});
|
|
@@ -7559,7 +7552,7 @@ function Rt(e) {
|
|
|
7559
7552
|
highlightedIndex: E,
|
|
7560
7553
|
isOpen: p,
|
|
7561
7554
|
selectedItem: N,
|
|
7562
|
-
inputValue:
|
|
7555
|
+
inputValue: T
|
|
7563
7556
|
};
|
|
7564
7557
|
}
|
|
7565
7558
|
function cc(e) {
|
|
@@ -7594,7 +7587,7 @@ process.env.NODE_ENV;
|
|
|
7594
7587
|
process.env.NODE_ENV;
|
|
7595
7588
|
process.env.NODE_ENV;
|
|
7596
7589
|
process.env.NODE_ENV;
|
|
7597
|
-
const jr =
|
|
7590
|
+
const jr = Ce(
|
|
7598
7591
|
({
|
|
7599
7592
|
isOpen: e = !1,
|
|
7600
7593
|
items: t,
|
|
@@ -7604,10 +7597,10 @@ const jr = Me(
|
|
|
7604
7597
|
highlightedIndex: s = 0,
|
|
7605
7598
|
...a
|
|
7606
7599
|
}, l) => /* @__PURE__ */ M(V, { className: re("autocomplete-result", a.className), ref: l, hidden: !e, children: [
|
|
7607
|
-
t.length > 0 && /* @__PURE__ */ M(
|
|
7608
|
-
t.map(({ slug: d, title: u, date: p, authors: E, link: N },
|
|
7609
|
-
const R = s ===
|
|
7610
|
-
return /* @__PURE__ */ c(
|
|
7600
|
+
t.length > 0 && /* @__PURE__ */ M(Pe, { children: [
|
|
7601
|
+
t.map(({ slug: d, title: u, date: p, authors: E, link: N }, T) => {
|
|
7602
|
+
const R = s === T;
|
|
7603
|
+
return /* @__PURE__ */ c(_e.Fragment, { children: /* @__PURE__ */ M(
|
|
7611
7604
|
F,
|
|
7612
7605
|
{
|
|
7613
7606
|
alignItems: "center",
|
|
@@ -7627,7 +7620,7 @@ const jr = Me(
|
|
|
7627
7620
|
size: "s",
|
|
7628
7621
|
text: u,
|
|
7629
7622
|
textQuery: n,
|
|
7630
|
-
lineClamp: 2,
|
|
7623
|
+
lineClamp: { xs: 4, md: 2 },
|
|
7631
7624
|
className: "autocomplete-result__link"
|
|
7632
7625
|
}
|
|
7633
7626
|
),
|
|
@@ -7644,7 +7637,7 @@ const jr = Me(
|
|
|
7644
7637
|
textSize: "s",
|
|
7645
7638
|
fontWeight: "medium",
|
|
7646
7639
|
textAlign: "center",
|
|
7647
|
-
children: /* @__PURE__ */ c(
|
|
7640
|
+
children: /* @__PURE__ */ c(e0, { ...o, children: i })
|
|
7648
7641
|
}
|
|
7649
7642
|
)
|
|
7650
7643
|
] }),
|
|
@@ -7656,7 +7649,7 @@ const jr = Me(
|
|
|
7656
7649
|
] })
|
|
7657
7650
|
);
|
|
7658
7651
|
jr.displayName = "AutocompleteResult";
|
|
7659
|
-
const Kr =
|
|
7652
|
+
const Kr = Ce(
|
|
7660
7653
|
({
|
|
7661
7654
|
placeholder: e,
|
|
7662
7655
|
defaultValue: t,
|
|
@@ -7671,14 +7664,14 @@ const Kr = Me(
|
|
|
7671
7664
|
}, p) => {
|
|
7672
7665
|
const E = (k) => {
|
|
7673
7666
|
l && k.key === "Enter" && l(k.currentTarget.value);
|
|
7674
|
-
}, { getInputProps: N, getMenuProps:
|
|
7667
|
+
}, { getInputProps: N, getMenuProps: T, getItemProps: R, selectItem: _, toggleMenu: A, isOpen: h, inputValue: m, highlightedIndex: g } = Rt({
|
|
7675
7668
|
defaultInputValue: t,
|
|
7676
7669
|
onInputValueChange: s,
|
|
7677
7670
|
onSelectedItemChange: a,
|
|
7678
7671
|
items: n,
|
|
7679
7672
|
itemToString: (k) => k ? k.title : "",
|
|
7680
7673
|
isOpen: d
|
|
7681
|
-
}), f = () =>
|
|
7674
|
+
}), f = () => _(null), w = _e.useMemo(
|
|
7682
7675
|
() => n.map((k, P) => ({
|
|
7683
7676
|
...k,
|
|
7684
7677
|
...R({ item: k, index: P })
|
|
@@ -7699,14 +7692,14 @@ const Kr = Me(
|
|
|
7699
7692
|
jr,
|
|
7700
7693
|
{
|
|
7701
7694
|
isOpen: h && m.length > 0,
|
|
7702
|
-
...
|
|
7695
|
+
...T(),
|
|
7703
7696
|
items: w,
|
|
7704
7697
|
highlightedIndex: g === -1 ? 0 : g,
|
|
7705
7698
|
searchValue: m,
|
|
7706
7699
|
searchLink: {
|
|
7707
7700
|
label: i,
|
|
7708
7701
|
...o,
|
|
7709
|
-
onClick:
|
|
7702
|
+
onClick: A
|
|
7710
7703
|
},
|
|
7711
7704
|
searchNotFound: r
|
|
7712
7705
|
}
|
|
@@ -7725,10 +7718,10 @@ const Pc = ({
|
|
|
7725
7718
|
onToggleMenu: l,
|
|
7726
7719
|
menuIsOpen: d = !1
|
|
7727
7720
|
}) => /* @__PURE__ */ M(F, { as: "header", justifyContent: "between", alignItems: "center", bg: "white", p: "m", className: "header", children: [
|
|
7728
|
-
/* @__PURE__ */ c(V, { as: "a", ...e, color: "primary", children: /* @__PURE__ */ c(
|
|
7721
|
+
/* @__PURE__ */ c(V, { as: "a", ...e, color: "primary", children: /* @__PURE__ */ c(yn, { name: "blog", className: "header__logo" }) }),
|
|
7729
7722
|
/* @__PURE__ */ M(V, { className: re("header__menu", { "header__menu--is-open": d }), children: [
|
|
7730
|
-
t.map(({ label: u, ...p }, E) => /* @__PURE__ */ c(
|
|
7731
|
-
n && /* @__PURE__ */ M(
|
|
7723
|
+
t.map(({ label: u, ...p }, E) => /* @__PURE__ */ c(e0, { as: "a", ...p, "data-internal-link": "category", className: "header__menu-item", children: u }, E)),
|
|
7724
|
+
n && /* @__PURE__ */ M(Pe, { children: [
|
|
7732
7725
|
/* @__PURE__ */ c(V, { className: "header__separator" }),
|
|
7733
7726
|
/* @__PURE__ */ c(V, { as: "a", ...o, "data-internal-link": "category", className: "header__menu-item", children: i })
|
|
7734
7727
|
] }),
|
|
@@ -7780,7 +7773,7 @@ const lc = ({
|
|
|
7780
7773
|
pb: { xs: "l", md: "xl" },
|
|
7781
7774
|
mx: "s",
|
|
7782
7775
|
children: [
|
|
7783
|
-
/* @__PURE__ */ c(V, { mb: "xl", children: /* @__PURE__ */ c(F, { justifyContent: { xs: "center", md: "start" }, alignItems: "center", mb: "xxs", children: /* @__PURE__ */ c(
|
|
7776
|
+
/* @__PURE__ */ c(V, { mb: "xl", children: /* @__PURE__ */ c(F, { justifyContent: { xs: "center", md: "start" }, alignItems: "center", mb: "xxs", children: /* @__PURE__ */ c(yn, { name: "website", size: "2.5em" }) }) }),
|
|
7784
7777
|
/* @__PURE__ */ M(V, { children: [
|
|
7785
7778
|
/* @__PURE__ */ c(F, { flexDirection: { xs: "column", md: "row" }, gap: { md: "xl" }, children: o.map((a, l) => /* @__PURE__ */ M(V, { mb: "m", children: [
|
|
7786
7779
|
a.title && /* @__PURE__ */ c(ee, { fontWeight: "bold", mb: "xxs-2", children: a.title }),
|
|
@@ -7798,7 +7791,7 @@ const lc = ({
|
|
|
7798
7791
|
"data-social-link": a
|
|
7799
7792
|
},
|
|
7800
7793
|
children: /* @__PURE__ */ c(
|
|
7801
|
-
|
|
7794
|
+
xe,
|
|
7802
7795
|
{
|
|
7803
7796
|
name: a,
|
|
7804
7797
|
size: "36",
|
|
@@ -7816,9 +7809,9 @@ const lc = ({
|
|
|
7816
7809
|
}
|
|
7817
7810
|
),
|
|
7818
7811
|
/* @__PURE__ */ M(F, { py: "s", justifyContent: "center", alignItems: "center", className: "footer__language-links-container", children: [
|
|
7819
|
-
/* @__PURE__ */ c(V, { mr: "xxs", children: /* @__PURE__ */ c(
|
|
7820
|
-
s.map(({ label: a, isActive: l, ...d }, u) => /* @__PURE__ */ M(
|
|
7821
|
-
l ? /* @__PURE__ */ c(ee, { fontWeight: "bold", children: a }) : /* @__PURE__ */ c(
|
|
7812
|
+
/* @__PURE__ */ c(V, { mr: "xxs", children: /* @__PURE__ */ c(xe, { size: "28px", name: "language" }) }),
|
|
7813
|
+
s.map(({ label: a, isActive: l, ...d }, u) => /* @__PURE__ */ M(_e.Fragment, { children: [
|
|
7814
|
+
l ? /* @__PURE__ */ c(ee, { fontWeight: "bold", children: a }) : /* @__PURE__ */ c(e0, { ...d, "data-internal-link": "home", children: a }),
|
|
7822
7815
|
s.length - 1 !== u && /* @__PURE__ */ c(V, { mx: "s" })
|
|
7823
7816
|
] }, u))
|
|
7824
7817
|
] })
|
|
@@ -7832,7 +7825,7 @@ const uc = ({
|
|
|
7832
7825
|
...o
|
|
7833
7826
|
}) => /* @__PURE__ */ M(V, { ...o, my: "xl", className: "last-articles-block container-content", children: [
|
|
7834
7827
|
/* @__PURE__ */ c(ve, { size: "m", color: "primary", children: e }),
|
|
7835
|
-
/* @__PURE__ */ c(F, { mt: "l", gap: "m", className: "last-articles-block__post-list", children: t.map((r, s) => /* @__PURE__ */ c(
|
|
7828
|
+
/* @__PURE__ */ c(F, { mt: "l", gap: "m", className: "last-articles-block__post-list", children: t.map((r, s) => /* @__PURE__ */ c(_e.Fragment, { children: /* @__PURE__ */ c(k0, { variant: "highlight-light", ...r || {} }) }, (r == null ? void 0 : r.slug) ?? s)) }),
|
|
7836
7829
|
/* @__PURE__ */ c(F, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ c(Ke, { mt: "l", as: "a", ...i, children: n }) })
|
|
7837
7830
|
] });
|
|
7838
7831
|
const dc = ({
|
|
@@ -7856,24 +7849,24 @@ const dc = ({
|
|
|
7856
7849
|
children: [
|
|
7857
7850
|
/* @__PURE__ */ M(V, { className: "last-tutorials-block__content", children: [
|
|
7858
7851
|
/* @__PURE__ */ c(ve, { size: "m", children: e }),
|
|
7859
|
-
/* @__PURE__ */ c(
|
|
7852
|
+
/* @__PURE__ */ c(xe, { name: "underline", color: "white", width: "56px" }),
|
|
7860
7853
|
/* @__PURE__ */ c(ee, { mt: "l", children: t }),
|
|
7861
7854
|
/* @__PURE__ */ c(Ke, { mt: "l", as: "a", variant: "accent", ...r, children: o })
|
|
7862
7855
|
] }),
|
|
7863
|
-
/* @__PURE__ */ c(F, { gap: "l", className: "last-tutorials-block__post-list", children: i.map((a, l) => /* @__PURE__ */ c(
|
|
7856
|
+
/* @__PURE__ */ c(F, { gap: "l", className: "last-tutorials-block__post-list", children: i.map((a, l) => /* @__PURE__ */ c(_e.Fragment, { children: /* @__PURE__ */ c(k0, { variant: "highlight-dark", tutorialLabel: n, ...a || {} }) }, (a == null ? void 0 : a.slug) ?? l)) })
|
|
7864
7857
|
]
|
|
7865
7858
|
}
|
|
7866
|
-
) }), V =
|
|
7859
|
+
) }), V = Ce(({ as: e = "div", className: t, children: n, ...i }, o) => /* @__PURE__ */ c(
|
|
7867
7860
|
e,
|
|
7868
7861
|
{
|
|
7869
|
-
...it({ props: i, systemPropNames: Object.keys(
|
|
7862
|
+
...it({ props: i, systemPropNames: Object.keys(yi) }),
|
|
7870
7863
|
ref: o,
|
|
7871
7864
|
className: re(Ai(i), t),
|
|
7872
7865
|
children: n
|
|
7873
7866
|
}
|
|
7874
7867
|
));
|
|
7875
7868
|
V.displayName = "Box";
|
|
7876
|
-
const F =
|
|
7869
|
+
const F = Ce(
|
|
7877
7870
|
({ as: e = "div", display: t = "flex", className: n, children: i, ...o }, r) => /* @__PURE__ */ c(
|
|
7878
7871
|
V,
|
|
7879
7872
|
{
|
|
@@ -7917,7 +7910,7 @@ const D0 = ({
|
|
|
7917
7910
|
}) => /* @__PURE__ */ M(V, { children: [
|
|
7918
7911
|
/* @__PURE__ */ c(ve, { size: "m", mb: "l", color: "primary", children: e }),
|
|
7919
7912
|
t,
|
|
7920
|
-
n && /* @__PURE__ */ M(
|
|
7913
|
+
n && /* @__PURE__ */ M(Pe, { children: [
|
|
7921
7914
|
/* @__PURE__ */ c(h0, { mt: "m" }),
|
|
7922
7915
|
/* @__PURE__ */ c(is, { mt: "l", ...n })
|
|
7923
7916
|
] })
|
|
@@ -7925,7 +7918,7 @@ const D0 = ({
|
|
|
7925
7918
|
categoryIntroBlock: e,
|
|
7926
7919
|
newsletterCard: t,
|
|
7927
7920
|
...n
|
|
7928
|
-
}) => /* @__PURE__ */ M(
|
|
7921
|
+
}) => /* @__PURE__ */ M(Pe, { children: [
|
|
7929
7922
|
/* @__PURE__ */ c(ns, { ...e }),
|
|
7930
7923
|
/* @__PURE__ */ c(
|
|
7931
7924
|
D0,
|
|
@@ -7939,7 +7932,7 @@ const D0 = ({
|
|
|
7939
7932
|
lastArticlesBlock: t,
|
|
7940
7933
|
lastTutorialsBlock: n,
|
|
7941
7934
|
newsletterCard: i
|
|
7942
|
-
}) => /* @__PURE__ */ M(
|
|
7935
|
+
}) => /* @__PURE__ */ M(Pe, { children: [
|
|
7943
7936
|
/* @__PURE__ */ c(rs, { ...e }),
|
|
7944
7937
|
/* @__PURE__ */ c(uc, { ...t }),
|
|
7945
7938
|
n && /* @__PURE__ */ c(dc, { ...n }),
|
|
@@ -7960,7 +7953,7 @@ const q0 = (e) => {
|
|
|
7960
7953
|
target: "_blank",
|
|
7961
7954
|
rel: "noreferrer",
|
|
7962
7955
|
children: /* @__PURE__ */ c(
|
|
7963
|
-
|
|
7956
|
+
xe,
|
|
7964
7957
|
{
|
|
7965
7958
|
name: "twitter",
|
|
7966
7959
|
className: "share-links__social-media-icon share-links__social-media-icon--twitter",
|
|
@@ -7975,7 +7968,7 @@ const q0 = (e) => {
|
|
|
7975
7968
|
href: `https://www.facebook.com/sharer/sharer.php${q0({ u: e })}`,
|
|
7976
7969
|
target: "_blank",
|
|
7977
7970
|
rel: "noreferrer",
|
|
7978
|
-
children: /* @__PURE__ */ c(
|
|
7971
|
+
children: /* @__PURE__ */ c(xe, { name: "facebook", className: "share-links__social-media-icon", size: "36" })
|
|
7979
7972
|
}
|
|
7980
7973
|
),
|
|
7981
7974
|
t.linkedIn && /* @__PURE__ */ c(
|
|
@@ -7984,7 +7977,7 @@ const q0 = (e) => {
|
|
|
7984
7977
|
href: `https://linkedin.com/shareArticle${q0({ url: e, mini: "true" })}`,
|
|
7985
7978
|
target: "_blank",
|
|
7986
7979
|
rel: "noreferrer",
|
|
7987
|
-
children: /* @__PURE__ */ c(
|
|
7980
|
+
children: /* @__PURE__ */ c(xe, { name: "linkedin", className: "share-links__social-media-icon", size: "36" })
|
|
7988
7981
|
}
|
|
7989
7982
|
)
|
|
7990
7983
|
] }), mc = ({ title: e, date: t, readingTime: n, authors: i, shareLinks: o, ...r }) => /* @__PURE__ */ M(V, { ...r, textSize: "xs", children: [
|
|
@@ -8006,13 +7999,13 @@ const q0 = (e) => {
|
|
|
8006
7999
|
contactCard: s,
|
|
8007
8000
|
previousLink: { label: a, ...l } = {},
|
|
8008
8001
|
nextLink: { label: d, ...u } = {}
|
|
8009
|
-
}) => /* @__PURE__ */ M(
|
|
8002
|
+
}) => /* @__PURE__ */ M(Pe, { children: [
|
|
8010
8003
|
/* @__PURE__ */ M(V, { children: [
|
|
8011
8004
|
/* @__PURE__ */ c(mc, { ...n }),
|
|
8012
8005
|
/* @__PURE__ */ c(h0, { mt: "m" }),
|
|
8013
8006
|
/* @__PURE__ */ c(nr, { mt: "l", hiddenAbove: "md", variant: e === "tutorial" ? "secondary" : "primary", ...t }),
|
|
8014
8007
|
/* @__PURE__ */ c(V, { mt: { xs: "l", md: "m" }, className: "post-page__content", children: i }),
|
|
8015
|
-
e === "tutorial" && /* @__PURE__ */ c(
|
|
8008
|
+
e === "tutorial" && /* @__PURE__ */ c(Pe, { children: /* @__PURE__ */ M(F, { gap: "l", children: [
|
|
8016
8009
|
a && l && /* @__PURE__ */ c(Ke, { as: "a", mt: "l", variant: "secondary", ...l, children: a }),
|
|
8017
8010
|
d && u && /* @__PURE__ */ c(Ke, { as: "a", mt: "l", ...u, children: d })
|
|
8018
8011
|
] }) }),
|
|
@@ -8046,7 +8039,7 @@ const zc = ({ newsletterCard: e, ...t }) => /* @__PURE__ */ c(
|
|
|
8046
8039
|
content: /* @__PURE__ */ c(bc, { ...t }),
|
|
8047
8040
|
sidebar: /* @__PURE__ */ c(ut, { ...e })
|
|
8048
8041
|
}
|
|
8049
|
-
), bc = ({ author: e, title: t, postCardList: n }) => /* @__PURE__ */ M(
|
|
8042
|
+
), bc = ({ author: e, title: t, postCardList: n }) => /* @__PURE__ */ M(Pe, { children: [
|
|
8050
8043
|
/* @__PURE__ */ M(
|
|
8051
8044
|
F,
|
|
8052
8045
|
{
|
|
@@ -8069,11 +8062,11 @@ const zc = ({ newsletterCard: e, ...t }) => /* @__PURE__ */ c(
|
|
|
8069
8062
|
className: "author-page__social_networks",
|
|
8070
8063
|
children: e.socialNetworks.map((i, o) => {
|
|
8071
8064
|
var r;
|
|
8072
|
-
return /* @__PURE__ */ M(
|
|
8065
|
+
return /* @__PURE__ */ M(_e.Fragment, { children: [
|
|
8073
8066
|
/* @__PURE__ */ M(ee, { children: [
|
|
8074
|
-
/* @__PURE__ */ c(
|
|
8067
|
+
/* @__PURE__ */ c(xe, { name: i.name, size: "24px" }),
|
|
8075
8068
|
" ",
|
|
8076
|
-
/* @__PURE__ */ c(
|
|
8069
|
+
/* @__PURE__ */ c(e0, { href: i.url, target: "_blank", children: i.username })
|
|
8077
8070
|
] }),
|
|
8078
8071
|
o !== (((r = e.socialNetworks) == null ? void 0 : r.length) ?? 0) - 1 && /* @__PURE__ */ c(ee, { as: "span", mx: "xxs", children: "•" })
|
|
8079
8072
|
] }, i.name);
|
|
@@ -8087,7 +8080,7 @@ const zc = ({ newsletterCard: e, ...t }) => /* @__PURE__ */ c(
|
|
|
8087
8080
|
/* @__PURE__ */ c(h0, { className: "author-page__divider" }),
|
|
8088
8081
|
/* @__PURE__ */ c(ee, { size: "m", fontWeight: "medium", children: t }),
|
|
8089
8082
|
n
|
|
8090
|
-
] }), Uc = ({ title: e, description: t }) => /* @__PURE__ */ c(F, { justifyContent: "center", alignItems: "center", flex: "1", children: /* @__PURE__ */ c(tr, { m: "xxl", title: e, description: t }) }),
|
|
8083
|
+
] }), Uc = ({ title: e, description: t }) => /* @__PURE__ */ c(F, { justifyContent: "center", alignItems: "center", flex: "1", children: /* @__PURE__ */ c(tr, { m: "xxl", title: e, description: t }) }), _c = ({
|
|
8091
8084
|
title: e,
|
|
8092
8085
|
description: t,
|
|
8093
8086
|
postCardList: n,
|
|
@@ -8097,10 +8090,10 @@ const zc = ({ newsletterCard: e, ...t }) => /* @__PURE__ */ c(
|
|
|
8097
8090
|
/* @__PURE__ */ c(We, { isLoading: o, children: /* @__PURE__ */ c(ve, { size: "m", fontWeight: "medium", color: "primary", children: e }) }),
|
|
8098
8091
|
/* @__PURE__ */ c(We, { isLoading: o, children: /* @__PURE__ */ c(ve, { size: "s", mb: "l", children: t }) }),
|
|
8099
8092
|
n
|
|
8100
|
-
] }), jc = ({ sidebar: e, ...t }) => /* @__PURE__ */ c(
|
|
8093
|
+
] }), jc = ({ sidebar: e, ...t }) => /* @__PURE__ */ c(Pe, { children: /* @__PURE__ */ c(D0, { content: /* @__PURE__ */ c(_c, { ...t }), sidebar: e }) }), yc = typeof window > "u" ? () => {
|
|
8101
8094
|
} : nt.useLayoutEffect, Kc = (e) => {
|
|
8102
8095
|
const [t, n] = nt.useState(!1);
|
|
8103
|
-
return
|
|
8096
|
+
return yc(() => {
|
|
8104
8097
|
const i = window.matchMedia(xi[e]);
|
|
8105
8098
|
i.matches !== t && n(i.matches);
|
|
8106
8099
|
const o = () => n(i.matches);
|
|
@@ -8130,13 +8123,13 @@ export {
|
|
|
8130
8123
|
ve as Heading,
|
|
8131
8124
|
rs as HomeIntroBlock,
|
|
8132
8125
|
Bc as HomePage,
|
|
8133
|
-
|
|
8126
|
+
xe as Icon,
|
|
8134
8127
|
uc as LastArticlesBlock,
|
|
8135
8128
|
dc as LastTutorialsBlock,
|
|
8136
8129
|
D0 as LayoutContentWithSidebar,
|
|
8137
8130
|
Lc as LayoutTemplate,
|
|
8138
|
-
|
|
8139
|
-
|
|
8131
|
+
e0 as Link,
|
|
8132
|
+
yn as Logo,
|
|
8140
8133
|
ut as NewsletterCard,
|
|
8141
8134
|
tr as NotFoundBlock,
|
|
8142
8135
|
Uc as NotFoundPage,
|
|
@@ -8150,7 +8143,7 @@ export {
|
|
|
8150
8143
|
Cc as Reminder,
|
|
8151
8144
|
Zn as SearchField,
|
|
8152
8145
|
jc as SearchPage,
|
|
8153
|
-
|
|
8146
|
+
_c as SearchPageContent,
|
|
8154
8147
|
We as Skeleton,
|
|
8155
8148
|
nr as SummaryCard,
|
|
8156
8149
|
Ac as SummaryCardVariant,
|
|
@@ -8162,11 +8155,11 @@ export {
|
|
|
8162
8155
|
Oc as closeButtonVariant,
|
|
8163
8156
|
wc as logoName,
|
|
8164
8157
|
kc as newsletterCardVariant,
|
|
8165
|
-
|
|
8158
|
+
Ce as polyRef,
|
|
8166
8159
|
Tc as postCardVariant,
|
|
8167
8160
|
Mc as postMetadataVariant,
|
|
8168
8161
|
Vc as postPageVariant,
|
|
8169
8162
|
Rc as reminderVariantList,
|
|
8170
|
-
|
|
8163
|
+
yc as useLayoutEffect,
|
|
8171
8164
|
Kc as useMediaQuery
|
|
8172
8165
|
};
|