quirk-ui 0.0.310 → 0.0.312
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-Dc6Lwt_I.js +2033 -0
- package/dist/main.d.ts +1 -1
- package/dist/next/blocks/HeroBlock/index.js +158 -125
- package/dist/next/ui/PortableTextRenderer/index.js +11 -2031
- package/dist/next.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,2033 @@
|
|
|
1
|
+
import pt, { jsx as Z, jsxs as Ge, Fragment as Rt } from "react/jsx-runtime";
|
|
2
|
+
import _e, { useRef as yt, useEffect as bt, useMemo as Et } from "react";
|
|
3
|
+
import { PortableText as vt } from "@portabletext/react";
|
|
4
|
+
import { AnimatedSpan as wt } from "./next/ui/AnimatedSpan/index.js";
|
|
5
|
+
import './assets/colors.css';import './assets/index.css';import './assets/index48.css';/* empty css */
|
|
6
|
+
import { Heading as ye } from "./core/components/Heading/index.js";
|
|
7
|
+
import { Text as dt } from "./core/components/Text/index.js";
|
|
8
|
+
import xt from "react-dom";
|
|
9
|
+
import "./core/components/Tabs/index.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import { g as Ot } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
12
|
+
import { useMediaQuery as Ct } from "./next/hooks/useMediaQuery.js";
|
|
13
|
+
var xe = {}, Oe = {}, Xe;
|
|
14
|
+
function Re() {
|
|
15
|
+
if (Xe) return Oe;
|
|
16
|
+
Xe = 1;
|
|
17
|
+
function m(f) {
|
|
18
|
+
return f && f.__esModule ? f : { default: f };
|
|
19
|
+
}
|
|
20
|
+
return Oe._ = m, Oe;
|
|
21
|
+
}
|
|
22
|
+
var Ce = {}, Ae = {}, Fe;
|
|
23
|
+
function Be() {
|
|
24
|
+
return Fe || (Fe = 1, function(m) {
|
|
25
|
+
Object.defineProperty(m, "__esModule", {
|
|
26
|
+
value: !0
|
|
27
|
+
}), Object.defineProperty(m, "warnOnce", {
|
|
28
|
+
enumerable: !0,
|
|
29
|
+
get: function() {
|
|
30
|
+
return f;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
let f = (l) => {
|
|
34
|
+
};
|
|
35
|
+
if (process.env.NODE_ENV !== "production") {
|
|
36
|
+
const l = /* @__PURE__ */ new Set();
|
|
37
|
+
f = (S) => {
|
|
38
|
+
l.has(S) || console.warn(S), l.add(S);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}(Ae)), Ae;
|
|
42
|
+
}
|
|
43
|
+
var Se = {}, We;
|
|
44
|
+
function At() {
|
|
45
|
+
return We || (We = 1, function(m) {
|
|
46
|
+
Object.defineProperty(m, "__esModule", {
|
|
47
|
+
value: !0
|
|
48
|
+
}), Object.defineProperty(m, "getImageBlurSvg", {
|
|
49
|
+
enumerable: !0,
|
|
50
|
+
get: function() {
|
|
51
|
+
return f;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
function f(l) {
|
|
55
|
+
let { widthInt: S, heightInt: E, blurWidth: r, blurHeight: u, blurDataURL: a, objectFit: s } = l;
|
|
56
|
+
const w = 20, x = r ? r * 40 : S, p = u ? u * 40 : E, _ = x && p ? "viewBox='0 0 " + x + " " + p + "'" : "", c = _ ? "none" : s === "contain" ? "xMidYMid" : s === "cover" ? "xMidYMid slice" : "none";
|
|
57
|
+
return "%3Csvg xmlns='http://www.w3.org/2000/svg' " + _ + "%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='" + w + "'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='" + w + "'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='" + c + "' style='filter: url(%23b);' href='" + a + "'/%3E%3C/svg%3E";
|
|
58
|
+
}
|
|
59
|
+
}(Se)), Se;
|
|
60
|
+
}
|
|
61
|
+
var Ie = {}, Ke;
|
|
62
|
+
function ze() {
|
|
63
|
+
return Ke || (Ke = 1, function(m) {
|
|
64
|
+
Object.defineProperty(m, "__esModule", {
|
|
65
|
+
value: !0
|
|
66
|
+
});
|
|
67
|
+
function f(E, r) {
|
|
68
|
+
for (var u in r) Object.defineProperty(E, u, {
|
|
69
|
+
enumerable: !0,
|
|
70
|
+
get: r[u]
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
f(m, {
|
|
74
|
+
VALID_LOADERS: function() {
|
|
75
|
+
return l;
|
|
76
|
+
},
|
|
77
|
+
imageConfigDefault: function() {
|
|
78
|
+
return S;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
const l = [
|
|
82
|
+
"default",
|
|
83
|
+
"imgix",
|
|
84
|
+
"cloudinary",
|
|
85
|
+
"akamai",
|
|
86
|
+
"custom"
|
|
87
|
+
], S = {
|
|
88
|
+
deviceSizes: [
|
|
89
|
+
640,
|
|
90
|
+
750,
|
|
91
|
+
828,
|
|
92
|
+
1080,
|
|
93
|
+
1200,
|
|
94
|
+
1920,
|
|
95
|
+
2048,
|
|
96
|
+
3840
|
|
97
|
+
],
|
|
98
|
+
imageSizes: [
|
|
99
|
+
16,
|
|
100
|
+
32,
|
|
101
|
+
48,
|
|
102
|
+
64,
|
|
103
|
+
96,
|
|
104
|
+
128,
|
|
105
|
+
256,
|
|
106
|
+
384
|
|
107
|
+
],
|
|
108
|
+
path: "/_next/image",
|
|
109
|
+
loader: "default",
|
|
110
|
+
loaderFile: "",
|
|
111
|
+
domains: [],
|
|
112
|
+
disableStaticImages: !1,
|
|
113
|
+
minimumCacheTTL: 60,
|
|
114
|
+
formats: [
|
|
115
|
+
"image/webp"
|
|
116
|
+
],
|
|
117
|
+
dangerouslyAllowSVG: !1,
|
|
118
|
+
contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;",
|
|
119
|
+
contentDispositionType: "attachment",
|
|
120
|
+
localPatterns: void 0,
|
|
121
|
+
remotePatterns: [],
|
|
122
|
+
qualities: void 0,
|
|
123
|
+
unoptimized: !1
|
|
124
|
+
};
|
|
125
|
+
}(Ie)), Ie;
|
|
126
|
+
}
|
|
127
|
+
var Ve;
|
|
128
|
+
function ht() {
|
|
129
|
+
return Ve || (Ve = 1, function(m) {
|
|
130
|
+
Object.defineProperty(m, "__esModule", {
|
|
131
|
+
value: !0
|
|
132
|
+
}), Object.defineProperty(m, "getImgProps", {
|
|
133
|
+
enumerable: !0,
|
|
134
|
+
get: function() {
|
|
135
|
+
return b;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
const f = Be(), l = At(), S = ze(), E = [
|
|
139
|
+
"lazy",
|
|
140
|
+
"eager",
|
|
141
|
+
void 0
|
|
142
|
+
], r = [
|
|
143
|
+
"-moz-initial",
|
|
144
|
+
"fill",
|
|
145
|
+
"none",
|
|
146
|
+
"scale-down",
|
|
147
|
+
void 0
|
|
148
|
+
];
|
|
149
|
+
function u(y) {
|
|
150
|
+
return y.default !== void 0;
|
|
151
|
+
}
|
|
152
|
+
function a(y) {
|
|
153
|
+
return y.src !== void 0;
|
|
154
|
+
}
|
|
155
|
+
function s(y) {
|
|
156
|
+
return !!y && typeof y == "object" && (u(y) || a(y));
|
|
157
|
+
}
|
|
158
|
+
const w = /* @__PURE__ */ new Map();
|
|
159
|
+
let x;
|
|
160
|
+
function p(y) {
|
|
161
|
+
return typeof y > "u" ? y : typeof y == "number" ? Number.isFinite(y) ? y : NaN : typeof y == "string" && /^[0-9]+$/.test(y) ? parseInt(y, 10) : NaN;
|
|
162
|
+
}
|
|
163
|
+
function _(y, $, i) {
|
|
164
|
+
let { deviceSizes: D, allSizes: e } = y;
|
|
165
|
+
if (i) {
|
|
166
|
+
const d = /(^|\s)(1?\d?\d)vw/g, C = [];
|
|
167
|
+
for (let R; R = d.exec(i); R)
|
|
168
|
+
C.push(parseInt(R[2]));
|
|
169
|
+
if (C.length) {
|
|
170
|
+
const R = Math.min(...C) * 0.01;
|
|
171
|
+
return {
|
|
172
|
+
widths: e.filter((P) => P >= D[0] * R),
|
|
173
|
+
kind: "w"
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
return {
|
|
177
|
+
widths: e,
|
|
178
|
+
kind: "w"
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
return typeof $ != "number" ? {
|
|
182
|
+
widths: D,
|
|
183
|
+
kind: "w"
|
|
184
|
+
} : {
|
|
185
|
+
widths: [
|
|
186
|
+
...new Set(
|
|
187
|
+
// > This means that most OLED screens that say they are 3x resolution,
|
|
188
|
+
// > are actually 3x in the green color, but only 1.5x in the red and
|
|
189
|
+
// > blue colors. Showing a 3x resolution image in the app vs a 2x
|
|
190
|
+
// > resolution image will be visually the same, though the 3x image
|
|
191
|
+
// > takes significantly more data. Even true 3x resolution screens are
|
|
192
|
+
// > wasteful as the human eye cannot see that level of detail without
|
|
193
|
+
// > something like a magnifying glass.
|
|
194
|
+
// https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html
|
|
195
|
+
[
|
|
196
|
+
$,
|
|
197
|
+
$ * 2
|
|
198
|
+
/*, width * 3*/
|
|
199
|
+
].map((d) => e.find((C) => C >= d) || e[e.length - 1])
|
|
200
|
+
)
|
|
201
|
+
],
|
|
202
|
+
kind: "x"
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
function c(y) {
|
|
206
|
+
let { config: $, src: i, unoptimized: D, width: e, quality: O, sizes: d, loader: C } = y;
|
|
207
|
+
if (D)
|
|
208
|
+
return {
|
|
209
|
+
src: i,
|
|
210
|
+
srcSet: void 0,
|
|
211
|
+
sizes: void 0
|
|
212
|
+
};
|
|
213
|
+
const { widths: R, kind: P } = _($, e, d), X = R.length - 1;
|
|
214
|
+
return {
|
|
215
|
+
sizes: !d && P === "w" ? "100vw" : d,
|
|
216
|
+
srcSet: R.map((T, M) => C({
|
|
217
|
+
config: $,
|
|
218
|
+
src: i,
|
|
219
|
+
quality: O,
|
|
220
|
+
width: T
|
|
221
|
+
}) + " " + (P === "w" ? T : M + 1) + P).join(", "),
|
|
222
|
+
// It's intended to keep `src` the last attribute because React updates
|
|
223
|
+
// attributes in order. If we keep `src` the first one, Safari will
|
|
224
|
+
// immediately start to fetch `src`, before `sizes` and `srcSet` are even
|
|
225
|
+
// updated by React. That causes multiple unnecessary requests if `srcSet`
|
|
226
|
+
// and `sizes` are defined.
|
|
227
|
+
// This bug cannot be reproduced in Chrome or Firefox.
|
|
228
|
+
src: C({
|
|
229
|
+
config: $,
|
|
230
|
+
src: i,
|
|
231
|
+
quality: O,
|
|
232
|
+
width: R[X]
|
|
233
|
+
})
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
function b(y, $) {
|
|
237
|
+
let { src: i, sizes: D, unoptimized: e = !1, priority: O = !1, loading: d, className: C, quality: R, width: P, height: X, fill: T = !1, style: M, overrideSrc: L, onLoad: te, onLoadingComplete: j, placeholder: U = "empty", blurDataURL: H, fetchPriority: se, decoding: V = "async", layout: k, objectFit: F, objectPosition: oe, lazyBoundary: re, lazyRoot: ie, ...z } = y;
|
|
238
|
+
const { imgConf: de, showAltText: K, blurComplete: n, defaultLoader: ee } = $;
|
|
239
|
+
let Q, Y = de || S.imageConfigDefault;
|
|
240
|
+
if ("allSizes" in Y)
|
|
241
|
+
Q = Y;
|
|
242
|
+
else {
|
|
243
|
+
var t;
|
|
244
|
+
const v = [
|
|
245
|
+
...Y.deviceSizes,
|
|
246
|
+
...Y.imageSizes
|
|
247
|
+
].sort((pe, fe) => pe - fe), B = Y.deviceSizes.sort((pe, fe) => pe - fe), W = (t = Y.qualities) == null ? void 0 : t.sort((pe, fe) => pe - fe);
|
|
248
|
+
Q = {
|
|
249
|
+
...Y,
|
|
250
|
+
allSizes: v,
|
|
251
|
+
deviceSizes: B,
|
|
252
|
+
qualities: W
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
if (typeof ee > "u")
|
|
256
|
+
throw Object.defineProperty(new Error(`images.loaderFile detected but the file is missing default export.
|
|
257
|
+
Read more: https://nextjs.org/docs/messages/invalid-images-config`), "__NEXT_ERROR_CODE", {
|
|
258
|
+
value: "E163",
|
|
259
|
+
enumerable: !1,
|
|
260
|
+
configurable: !0
|
|
261
|
+
});
|
|
262
|
+
let o = z.loader || ee;
|
|
263
|
+
delete z.loader, delete z.srcSet;
|
|
264
|
+
const me = "__next_img_default" in o;
|
|
265
|
+
if (me) {
|
|
266
|
+
if (Q.loader === "custom")
|
|
267
|
+
throw Object.defineProperty(new Error('Image with src "' + i + `" is missing "loader" prop.
|
|
268
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`), "__NEXT_ERROR_CODE", {
|
|
269
|
+
value: "E252",
|
|
270
|
+
enumerable: !1,
|
|
271
|
+
configurable: !0
|
|
272
|
+
});
|
|
273
|
+
} else {
|
|
274
|
+
const v = o;
|
|
275
|
+
o = (B) => {
|
|
276
|
+
const { config: W, ...pe } = B;
|
|
277
|
+
return v(pe);
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
if (k) {
|
|
281
|
+
k === "fill" && (T = !0);
|
|
282
|
+
const v = {
|
|
283
|
+
intrinsic: {
|
|
284
|
+
maxWidth: "100%",
|
|
285
|
+
height: "auto"
|
|
286
|
+
},
|
|
287
|
+
responsive: {
|
|
288
|
+
width: "100%",
|
|
289
|
+
height: "auto"
|
|
290
|
+
}
|
|
291
|
+
}, B = {
|
|
292
|
+
responsive: "100vw",
|
|
293
|
+
fill: "100vw"
|
|
294
|
+
}, W = v[k];
|
|
295
|
+
W && (M = {
|
|
296
|
+
...M,
|
|
297
|
+
...W
|
|
298
|
+
});
|
|
299
|
+
const pe = B[k];
|
|
300
|
+
pe && !D && (D = pe);
|
|
301
|
+
}
|
|
302
|
+
let A = "", N = p(P), J = p(X), he, ae;
|
|
303
|
+
if (s(i)) {
|
|
304
|
+
const v = u(i) ? i.default : i;
|
|
305
|
+
if (!v.src)
|
|
306
|
+
throw Object.defineProperty(new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received " + JSON.stringify(v)), "__NEXT_ERROR_CODE", {
|
|
307
|
+
value: "E460",
|
|
308
|
+
enumerable: !1,
|
|
309
|
+
configurable: !0
|
|
310
|
+
});
|
|
311
|
+
if (!v.height || !v.width)
|
|
312
|
+
throw Object.defineProperty(new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received " + JSON.stringify(v)), "__NEXT_ERROR_CODE", {
|
|
313
|
+
value: "E48",
|
|
314
|
+
enumerable: !1,
|
|
315
|
+
configurable: !0
|
|
316
|
+
});
|
|
317
|
+
if (he = v.blurWidth, ae = v.blurHeight, H = H || v.blurDataURL, A = v.src, !T) {
|
|
318
|
+
if (!N && !J)
|
|
319
|
+
N = v.width, J = v.height;
|
|
320
|
+
else if (N && !J) {
|
|
321
|
+
const B = N / v.width;
|
|
322
|
+
J = Math.round(v.height * B);
|
|
323
|
+
} else if (!N && J) {
|
|
324
|
+
const B = J / v.height;
|
|
325
|
+
N = Math.round(v.width * B);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
i = typeof i == "string" ? i : A;
|
|
330
|
+
let ne = !O && (d === "lazy" || typeof d > "u");
|
|
331
|
+
(!i || i.startsWith("data:") || i.startsWith("blob:")) && (e = !0, ne = !1), Q.unoptimized && (e = !0), me && !Q.dangerouslyAllowSVG && i.split("?", 1)[0].endsWith(".svg") && (e = !0);
|
|
332
|
+
const ge = p(R);
|
|
333
|
+
if (process.env.NODE_ENV !== "production") {
|
|
334
|
+
var le;
|
|
335
|
+
if (Q.output === "export" && me && !e)
|
|
336
|
+
throw Object.defineProperty(new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api"), "__NEXT_ERROR_CODE", {
|
|
337
|
+
value: "E500",
|
|
338
|
+
enumerable: !1,
|
|
339
|
+
configurable: !0
|
|
340
|
+
});
|
|
341
|
+
if (!i)
|
|
342
|
+
e = !0;
|
|
343
|
+
else if (T) {
|
|
344
|
+
if (P)
|
|
345
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" has both "width" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
|
|
346
|
+
value: "E96",
|
|
347
|
+
enumerable: !1,
|
|
348
|
+
configurable: !0
|
|
349
|
+
});
|
|
350
|
+
if (X)
|
|
351
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" has both "height" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
|
|
352
|
+
value: "E115",
|
|
353
|
+
enumerable: !1,
|
|
354
|
+
configurable: !0
|
|
355
|
+
});
|
|
356
|
+
if (M != null && M.position && M.position !== "absolute")
|
|
357
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.'), "__NEXT_ERROR_CODE", {
|
|
358
|
+
value: "E216",
|
|
359
|
+
enumerable: !1,
|
|
360
|
+
configurable: !0
|
|
361
|
+
});
|
|
362
|
+
if (M != null && M.width && M.width !== "100%")
|
|
363
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.'), "__NEXT_ERROR_CODE", {
|
|
364
|
+
value: "E73",
|
|
365
|
+
enumerable: !1,
|
|
366
|
+
configurable: !0
|
|
367
|
+
});
|
|
368
|
+
if (M != null && M.height && M.height !== "100%")
|
|
369
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.'), "__NEXT_ERROR_CODE", {
|
|
370
|
+
value: "E404",
|
|
371
|
+
enumerable: !1,
|
|
372
|
+
configurable: !0
|
|
373
|
+
});
|
|
374
|
+
} else {
|
|
375
|
+
if (typeof N > "u")
|
|
376
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" is missing required "width" property.'), "__NEXT_ERROR_CODE", {
|
|
377
|
+
value: "E451",
|
|
378
|
+
enumerable: !1,
|
|
379
|
+
configurable: !0
|
|
380
|
+
});
|
|
381
|
+
if (isNaN(N))
|
|
382
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" has invalid "width" property. Expected a numeric value in pixels but received "' + P + '".'), "__NEXT_ERROR_CODE", {
|
|
383
|
+
value: "E66",
|
|
384
|
+
enumerable: !1,
|
|
385
|
+
configurable: !0
|
|
386
|
+
});
|
|
387
|
+
if (typeof J > "u")
|
|
388
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" is missing required "height" property.'), "__NEXT_ERROR_CODE", {
|
|
389
|
+
value: "E397",
|
|
390
|
+
enumerable: !1,
|
|
391
|
+
configurable: !0
|
|
392
|
+
});
|
|
393
|
+
if (isNaN(J))
|
|
394
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" has invalid "height" property. Expected a numeric value in pixels but received "' + X + '".'), "__NEXT_ERROR_CODE", {
|
|
395
|
+
value: "E444",
|
|
396
|
+
enumerable: !1,
|
|
397
|
+
configurable: !0
|
|
398
|
+
});
|
|
399
|
+
if (/^[\x00-\x20]/.test(i))
|
|
400
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" cannot start with a space or control character. Use src.trimStart() to remove it or encodeURIComponent(src) to keep it.'), "__NEXT_ERROR_CODE", {
|
|
401
|
+
value: "E176",
|
|
402
|
+
enumerable: !1,
|
|
403
|
+
configurable: !0
|
|
404
|
+
});
|
|
405
|
+
if (/[\x00-\x20]$/.test(i))
|
|
406
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" cannot end with a space or control character. Use src.trimEnd() to remove it or encodeURIComponent(src) to keep it.'), "__NEXT_ERROR_CODE", {
|
|
407
|
+
value: "E21",
|
|
408
|
+
enumerable: !1,
|
|
409
|
+
configurable: !0
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
if (!E.includes(d))
|
|
413
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" has invalid "loading" property. Provided "' + d + '" should be one of ' + E.map(String).join(",") + "."), "__NEXT_ERROR_CODE", {
|
|
414
|
+
value: "E357",
|
|
415
|
+
enumerable: !1,
|
|
416
|
+
configurable: !0
|
|
417
|
+
});
|
|
418
|
+
if (O && d === "lazy")
|
|
419
|
+
throw Object.defineProperty(new Error('Image with src "' + i + `" has both "priority" and "loading='lazy'" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
|
|
420
|
+
value: "E218",
|
|
421
|
+
enumerable: !1,
|
|
422
|
+
configurable: !0
|
|
423
|
+
});
|
|
424
|
+
if (U !== "empty" && U !== "blur" && !U.startsWith("data:image/"))
|
|
425
|
+
throw Object.defineProperty(new Error('Image with src "' + i + '" has invalid "placeholder" property "' + U + '".'), "__NEXT_ERROR_CODE", {
|
|
426
|
+
value: "E431",
|
|
427
|
+
enumerable: !1,
|
|
428
|
+
configurable: !0
|
|
429
|
+
});
|
|
430
|
+
if (U !== "empty" && N && J && N * J < 1600 && (0, f.warnOnce)('Image with src "' + i + '" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'), ge && ge !== 75 && !Q.qualities && (0, f.warnOnce)('Image with src "' + i + '" is using quality "' + ge + `" which is not configured in images.qualities. This config will be required starting in Next.js 16.
|
|
431
|
+
Read more: https://nextjs.org/docs/messages/next-image-unconfigured-qualities`), i.startsWith("/") && i.includes("?") && (!(!(Q == null || (le = Q.localPatterns) == null) && le.length) || Q.localPatterns.length === 1 && Q.localPatterns[0].pathname === "/_next/static/media/**") && (0, f.warnOnce)('Image with src "' + i + `" is using a query string which is not configured in images.localPatterns. This config will be required starting in Next.js 16.
|
|
432
|
+
Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`), U === "blur" && !H) {
|
|
433
|
+
const v = [
|
|
434
|
+
"jpeg",
|
|
435
|
+
"png",
|
|
436
|
+
"webp",
|
|
437
|
+
"avif"
|
|
438
|
+
];
|
|
439
|
+
throw Object.defineProperty(new Error('Image with src "' + i + `" has "placeholder='blur'" property but is missing the "blurDataURL" property.
|
|
440
|
+
Possible solutions:
|
|
441
|
+
- Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
|
|
442
|
+
- Change the "src" property to a static import with one of the supported file types: ` + v.join(",") + ` (animated images not supported)
|
|
443
|
+
- Remove the "placeholder" property, effectively no blur effect
|
|
444
|
+
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`), "__NEXT_ERROR_CODE", {
|
|
445
|
+
value: "E371",
|
|
446
|
+
enumerable: !1,
|
|
447
|
+
configurable: !0
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
if ("ref" in z && (0, f.warnOnce)('Image with src "' + i + '" is using unsupported "ref" property. Consider using the "onLoad" property instead.'), !e && !me) {
|
|
451
|
+
const v = o({
|
|
452
|
+
config: Q,
|
|
453
|
+
src: i,
|
|
454
|
+
width: N || 400,
|
|
455
|
+
quality: ge || 75
|
|
456
|
+
});
|
|
457
|
+
let B;
|
|
458
|
+
try {
|
|
459
|
+
B = new URL(v);
|
|
460
|
+
} catch {
|
|
461
|
+
}
|
|
462
|
+
(v === i || B && B.pathname === i && !B.search) && (0, f.warnOnce)('Image with src "' + i + `" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
|
|
463
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`);
|
|
464
|
+
}
|
|
465
|
+
j && (0, f.warnOnce)('Image with src "' + i + '" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.');
|
|
466
|
+
for (const [v, B] of Object.entries({
|
|
467
|
+
layout: k,
|
|
468
|
+
objectFit: F,
|
|
469
|
+
objectPosition: oe,
|
|
470
|
+
lazyBoundary: re,
|
|
471
|
+
lazyRoot: ie
|
|
472
|
+
}))
|
|
473
|
+
B && (0, f.warnOnce)('Image with src "' + i + '" has legacy prop "' + v + `". Did you forget to run the codemod?
|
|
474
|
+
Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);
|
|
475
|
+
if (typeof window < "u" && !x && window.PerformanceObserver) {
|
|
476
|
+
x = new PerformanceObserver((v) => {
|
|
477
|
+
for (const W of v.getEntries()) {
|
|
478
|
+
var B;
|
|
479
|
+
const pe = (W == null || (B = W.element) == null ? void 0 : B.src) || "", fe = w.get(pe);
|
|
480
|
+
fe && !fe.priority && fe.placeholder === "empty" && !fe.src.startsWith("data:") && !fe.src.startsWith("blob:") && (0, f.warnOnce)('Image with src "' + fe.src + `" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
|
|
481
|
+
Read more: https://nextjs.org/docs/api-reference/next/image#priority`);
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
try {
|
|
485
|
+
x.observe({
|
|
486
|
+
type: "largest-contentful-paint",
|
|
487
|
+
buffered: !0
|
|
488
|
+
});
|
|
489
|
+
} catch (v) {
|
|
490
|
+
console.error(v);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
const I = Object.assign(T ? {
|
|
495
|
+
position: "absolute",
|
|
496
|
+
height: "100%",
|
|
497
|
+
width: "100%",
|
|
498
|
+
left: 0,
|
|
499
|
+
top: 0,
|
|
500
|
+
right: 0,
|
|
501
|
+
bottom: 0,
|
|
502
|
+
objectFit: F,
|
|
503
|
+
objectPosition: oe
|
|
504
|
+
} : {}, K ? {} : {
|
|
505
|
+
color: "transparent"
|
|
506
|
+
}, M), ue = !n && U !== "empty" ? U === "blur" ? 'url("data:image/svg+xml;charset=utf-8,' + (0, l.getImageBlurSvg)({
|
|
507
|
+
widthInt: N,
|
|
508
|
+
heightInt: J,
|
|
509
|
+
blurWidth: he,
|
|
510
|
+
blurHeight: ae,
|
|
511
|
+
blurDataURL: H || "",
|
|
512
|
+
objectFit: I.objectFit
|
|
513
|
+
}) + '")' : 'url("' + U + '")' : null, ce = r.includes(I.objectFit) ? I.objectFit === "fill" ? "100% 100%" : "cover" : I.objectFit;
|
|
514
|
+
let g = ue ? {
|
|
515
|
+
backgroundSize: ce,
|
|
516
|
+
backgroundPosition: I.objectPosition || "50% 50%",
|
|
517
|
+
backgroundRepeat: "no-repeat",
|
|
518
|
+
backgroundImage: ue
|
|
519
|
+
} : {};
|
|
520
|
+
process.env.NODE_ENV === "development" && g.backgroundImage && U === "blur" && H != null && H.startsWith("/") && (g.backgroundImage = 'url("' + H + '")');
|
|
521
|
+
const G = c({
|
|
522
|
+
config: Q,
|
|
523
|
+
src: i,
|
|
524
|
+
unoptimized: e,
|
|
525
|
+
width: N,
|
|
526
|
+
quality: ge,
|
|
527
|
+
sizes: D,
|
|
528
|
+
loader: o
|
|
529
|
+
});
|
|
530
|
+
if (process.env.NODE_ENV !== "production" && typeof window < "u") {
|
|
531
|
+
let v;
|
|
532
|
+
try {
|
|
533
|
+
v = new URL(G.src);
|
|
534
|
+
} catch {
|
|
535
|
+
v = new URL(G.src, window.location.href);
|
|
536
|
+
}
|
|
537
|
+
w.set(v.href, {
|
|
538
|
+
src: i,
|
|
539
|
+
priority: O,
|
|
540
|
+
placeholder: U
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
return {
|
|
544
|
+
props: {
|
|
545
|
+
...z,
|
|
546
|
+
loading: ne ? "lazy" : d,
|
|
547
|
+
fetchPriority: se,
|
|
548
|
+
width: N,
|
|
549
|
+
height: J,
|
|
550
|
+
decoding: V,
|
|
551
|
+
className: C,
|
|
552
|
+
style: {
|
|
553
|
+
...I,
|
|
554
|
+
...g
|
|
555
|
+
},
|
|
556
|
+
sizes: G.sizes,
|
|
557
|
+
srcSet: G.srcSet,
|
|
558
|
+
src: L || G.src
|
|
559
|
+
},
|
|
560
|
+
meta: {
|
|
561
|
+
unoptimized: e,
|
|
562
|
+
priority: O,
|
|
563
|
+
placeholder: U,
|
|
564
|
+
fill: T
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
}(Ce)), Ce;
|
|
569
|
+
}
|
|
570
|
+
var be = { exports: {} }, Pe = {}, Qe;
|
|
571
|
+
function gt() {
|
|
572
|
+
if (Qe) return Pe;
|
|
573
|
+
Qe = 1;
|
|
574
|
+
function m(l) {
|
|
575
|
+
if (typeof WeakMap != "function") return null;
|
|
576
|
+
var S = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
|
|
577
|
+
return (m = function(r) {
|
|
578
|
+
return r ? E : S;
|
|
579
|
+
})(l);
|
|
580
|
+
}
|
|
581
|
+
function f(l, S) {
|
|
582
|
+
if (!S && l && l.__esModule) return l;
|
|
583
|
+
if (l === null || typeof l != "object" && typeof l != "function") return { default: l };
|
|
584
|
+
var E = m(S);
|
|
585
|
+
if (E && E.has(l)) return E.get(l);
|
|
586
|
+
var r = { __proto__: null }, u = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
587
|
+
for (var a in l)
|
|
588
|
+
if (a !== "default" && Object.prototype.hasOwnProperty.call(l, a)) {
|
|
589
|
+
var s = u ? Object.getOwnPropertyDescriptor(l, a) : null;
|
|
590
|
+
s && (s.get || s.set) ? Object.defineProperty(r, a, s) : r[a] = l[a];
|
|
591
|
+
}
|
|
592
|
+
return r.default = l, E && E.set(l, r), r;
|
|
593
|
+
}
|
|
594
|
+
return Pe._ = f, Pe;
|
|
595
|
+
}
|
|
596
|
+
var Ee = { exports: {} }, Te = {}, Ye;
|
|
597
|
+
function St() {
|
|
598
|
+
return Ye || (Ye = 1, function(m) {
|
|
599
|
+
Object.defineProperty(m, "__esModule", {
|
|
600
|
+
value: !0
|
|
601
|
+
}), Object.defineProperty(m, "default", {
|
|
602
|
+
enumerable: !0,
|
|
603
|
+
get: function() {
|
|
604
|
+
return r;
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
const f = _e, l = typeof window > "u", S = l ? () => {
|
|
608
|
+
} : f.useLayoutEffect, E = l ? () => {
|
|
609
|
+
} : f.useEffect;
|
|
610
|
+
function r(u) {
|
|
611
|
+
const { headManager: a, reduceComponentsToState: s } = u;
|
|
612
|
+
function w() {
|
|
613
|
+
if (a && a.mountedInstances) {
|
|
614
|
+
const p = f.Children.toArray(Array.from(a.mountedInstances).filter(Boolean));
|
|
615
|
+
a.updateHead(s(p, u));
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
if (l) {
|
|
619
|
+
var x;
|
|
620
|
+
a == null || (x = a.mountedInstances) == null || x.add(u.children), w();
|
|
621
|
+
}
|
|
622
|
+
return S(() => {
|
|
623
|
+
var p;
|
|
624
|
+
return a == null || (p = a.mountedInstances) == null || p.add(u.children), () => {
|
|
625
|
+
var _;
|
|
626
|
+
a == null || (_ = a.mountedInstances) == null || _.delete(u.children);
|
|
627
|
+
};
|
|
628
|
+
}), S(() => (a && (a._pendingUpdate = w), () => {
|
|
629
|
+
a && (a._pendingUpdate = w);
|
|
630
|
+
})), E(() => (a && a._pendingUpdate && (a._pendingUpdate(), a._pendingUpdate = null), () => {
|
|
631
|
+
a && a._pendingUpdate && (a._pendingUpdate(), a._pendingUpdate = null);
|
|
632
|
+
})), null;
|
|
633
|
+
}
|
|
634
|
+
}(Te)), Te;
|
|
635
|
+
}
|
|
636
|
+
var Le = {}, Ze;
|
|
637
|
+
function It() {
|
|
638
|
+
return Ze || (Ze = 1, function(m) {
|
|
639
|
+
Object.defineProperty(m, "__esModule", {
|
|
640
|
+
value: !0
|
|
641
|
+
}), Object.defineProperty(m, "AmpStateContext", {
|
|
642
|
+
enumerable: !0,
|
|
643
|
+
get: function() {
|
|
644
|
+
return S;
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
const S = (/* @__PURE__ */ (/* @__PURE__ */ Re())._(_e)).default.createContext({});
|
|
648
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "AmpStateContext");
|
|
649
|
+
}(Le)), Le;
|
|
650
|
+
}
|
|
651
|
+
var Ne = {}, Je;
|
|
652
|
+
function Pt() {
|
|
653
|
+
return Je || (Je = 1, function(m) {
|
|
654
|
+
Object.defineProperty(m, "__esModule", {
|
|
655
|
+
value: !0
|
|
656
|
+
}), Object.defineProperty(m, "HeadManagerContext", {
|
|
657
|
+
enumerable: !0,
|
|
658
|
+
get: function() {
|
|
659
|
+
return S;
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
const S = (/* @__PURE__ */ (/* @__PURE__ */ Re())._(_e)).default.createContext({});
|
|
663
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "HeadManagerContext");
|
|
664
|
+
}(Ne)), Ne;
|
|
665
|
+
}
|
|
666
|
+
var $e = {}, et;
|
|
667
|
+
function Tt() {
|
|
668
|
+
return et || (et = 1, function(m) {
|
|
669
|
+
Object.defineProperty(m, "__esModule", {
|
|
670
|
+
value: !0
|
|
671
|
+
}), Object.defineProperty(m, "isInAmpMode", {
|
|
672
|
+
enumerable: !0,
|
|
673
|
+
get: function() {
|
|
674
|
+
return f;
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
function f(l) {
|
|
678
|
+
let { ampFirst: S = !1, hybrid: E = !1, hasQuery: r = !1 } = l === void 0 ? {} : l;
|
|
679
|
+
return S || E && r;
|
|
680
|
+
}
|
|
681
|
+
}($e)), $e;
|
|
682
|
+
}
|
|
683
|
+
var tt;
|
|
684
|
+
function Lt() {
|
|
685
|
+
return tt || (tt = 1, function(m, f) {
|
|
686
|
+
"use client";
|
|
687
|
+
Object.defineProperty(f, "__esModule", {
|
|
688
|
+
value: !0
|
|
689
|
+
});
|
|
690
|
+
function l(e, O) {
|
|
691
|
+
for (var d in O) Object.defineProperty(e, d, {
|
|
692
|
+
enumerable: !0,
|
|
693
|
+
get: O[d]
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
l(f, {
|
|
697
|
+
default: function() {
|
|
698
|
+
return D;
|
|
699
|
+
},
|
|
700
|
+
defaultHead: function() {
|
|
701
|
+
return _;
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
const S = /* @__PURE__ */ Re(), E = /* @__PURE__ */ gt(), r = pt, u = /* @__PURE__ */ E._(_e), a = /* @__PURE__ */ S._(St()), s = It(), w = Pt(), x = Tt(), p = Be();
|
|
705
|
+
function _(e) {
|
|
706
|
+
e === void 0 && (e = !1);
|
|
707
|
+
const O = [
|
|
708
|
+
/* @__PURE__ */ (0, r.jsx)("meta", {
|
|
709
|
+
charSet: "utf-8"
|
|
710
|
+
}, "charset")
|
|
711
|
+
];
|
|
712
|
+
return e || O.push(/* @__PURE__ */ (0, r.jsx)("meta", {
|
|
713
|
+
name: "viewport",
|
|
714
|
+
content: "width=device-width"
|
|
715
|
+
}, "viewport")), O;
|
|
716
|
+
}
|
|
717
|
+
function c(e, O) {
|
|
718
|
+
return typeof O == "string" || typeof O == "number" ? e : O.type === u.default.Fragment ? e.concat(
|
|
719
|
+
// @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
|
|
720
|
+
u.default.Children.toArray(O.props.children).reduce(
|
|
721
|
+
// @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
|
|
722
|
+
(d, C) => typeof C == "string" || typeof C == "number" ? d : d.concat(C),
|
|
723
|
+
[]
|
|
724
|
+
)
|
|
725
|
+
) : e.concat(O);
|
|
726
|
+
}
|
|
727
|
+
const b = [
|
|
728
|
+
"name",
|
|
729
|
+
"httpEquiv",
|
|
730
|
+
"charSet",
|
|
731
|
+
"itemProp"
|
|
732
|
+
];
|
|
733
|
+
function y() {
|
|
734
|
+
const e = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set(), C = {};
|
|
735
|
+
return (R) => {
|
|
736
|
+
let P = !0, X = !1;
|
|
737
|
+
if (R.key && typeof R.key != "number" && R.key.indexOf("$") > 0) {
|
|
738
|
+
X = !0;
|
|
739
|
+
const T = R.key.slice(R.key.indexOf("$") + 1);
|
|
740
|
+
e.has(T) ? P = !1 : e.add(T);
|
|
741
|
+
}
|
|
742
|
+
switch (R.type) {
|
|
743
|
+
case "title":
|
|
744
|
+
case "base":
|
|
745
|
+
O.has(R.type) ? P = !1 : O.add(R.type);
|
|
746
|
+
break;
|
|
747
|
+
case "meta":
|
|
748
|
+
for (let T = 0, M = b.length; T < M; T++) {
|
|
749
|
+
const L = b[T];
|
|
750
|
+
if (R.props.hasOwnProperty(L))
|
|
751
|
+
if (L === "charSet")
|
|
752
|
+
d.has(L) ? P = !1 : d.add(L);
|
|
753
|
+
else {
|
|
754
|
+
const te = R.props[L], j = C[L] || /* @__PURE__ */ new Set();
|
|
755
|
+
(L !== "name" || !X) && j.has(te) ? P = !1 : (j.add(te), C[L] = j);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
break;
|
|
759
|
+
}
|
|
760
|
+
return P;
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
function $(e, O) {
|
|
764
|
+
const { inAmpMode: d } = O;
|
|
765
|
+
return e.reduce(c, []).reverse().concat(_(d).reverse()).filter(y()).reverse().map((C, R) => {
|
|
766
|
+
const P = C.key || R;
|
|
767
|
+
if (process.env.NODE_ENV === "development")
|
|
768
|
+
if (C.type === "script" && C.props.type !== "application/ld+json") {
|
|
769
|
+
const X = C.props.src ? '<script> tag with src="' + C.props.src + '"' : "inline <script>";
|
|
770
|
+
(0, p.warnOnce)("Do not add <script> tags using next/head (see " + X + `). Use next/script instead.
|
|
771
|
+
See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`);
|
|
772
|
+
} else C.type === "link" && C.props.rel === "stylesheet" && (0, p.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="' + C.props.href + `"). Use Document instead.
|
|
773
|
+
See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);
|
|
774
|
+
return /* @__PURE__ */ u.default.cloneElement(C, {
|
|
775
|
+
key: P
|
|
776
|
+
});
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
function i(e) {
|
|
780
|
+
let { children: O } = e;
|
|
781
|
+
const d = (0, u.useContext)(s.AmpStateContext), C = (0, u.useContext)(w.HeadManagerContext);
|
|
782
|
+
return /* @__PURE__ */ (0, r.jsx)(a.default, {
|
|
783
|
+
reduceComponentsToState: $,
|
|
784
|
+
headManager: C,
|
|
785
|
+
inAmpMode: (0, x.isInAmpMode)(d),
|
|
786
|
+
children: O
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
const D = i;
|
|
790
|
+
(typeof f.default == "function" || typeof f.default == "object" && f.default !== null) && typeof f.default.__esModule > "u" && (Object.defineProperty(f.default, "__esModule", { value: !0 }), Object.assign(f.default, f), m.exports = f.default);
|
|
791
|
+
}(Ee, Ee.exports)), Ee.exports;
|
|
792
|
+
}
|
|
793
|
+
var Me = {}, rt;
|
|
794
|
+
function Nt() {
|
|
795
|
+
return rt || (rt = 1, function(m) {
|
|
796
|
+
Object.defineProperty(m, "__esModule", {
|
|
797
|
+
value: !0
|
|
798
|
+
}), Object.defineProperty(m, "ImageConfigContext", {
|
|
799
|
+
enumerable: !0,
|
|
800
|
+
get: function() {
|
|
801
|
+
return E;
|
|
802
|
+
}
|
|
803
|
+
});
|
|
804
|
+
const l = /* @__PURE__ */ (/* @__PURE__ */ Re())._(_e), S = ze(), E = l.default.createContext(S.imageConfigDefault);
|
|
805
|
+
process.env.NODE_ENV !== "production" && (E.displayName = "ImageConfigContext");
|
|
806
|
+
}(Me)), Me;
|
|
807
|
+
}
|
|
808
|
+
var He = {}, nt;
|
|
809
|
+
function $t() {
|
|
810
|
+
return nt || (nt = 1, function(m) {
|
|
811
|
+
Object.defineProperty(m, "__esModule", {
|
|
812
|
+
value: !0
|
|
813
|
+
}), Object.defineProperty(m, "RouterContext", {
|
|
814
|
+
enumerable: !0,
|
|
815
|
+
get: function() {
|
|
816
|
+
return S;
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
const S = (/* @__PURE__ */ (/* @__PURE__ */ Re())._(_e)).default.createContext(null);
|
|
820
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "RouterContext");
|
|
821
|
+
}(He)), He;
|
|
822
|
+
}
|
|
823
|
+
var ke = {}, De = {}, je = { exports: {} }, ot;
|
|
824
|
+
function mt() {
|
|
825
|
+
return ot || (ot = 1, (() => {
|
|
826
|
+
var m = { 170: (E, r, u) => {
|
|
827
|
+
const a = u(510), s = () => {
|
|
828
|
+
if (typeof navigator < "u" && navigator.platform) {
|
|
829
|
+
const x = navigator.platform.toLowerCase();
|
|
830
|
+
return x === "win32" || x === "windows";
|
|
831
|
+
}
|
|
832
|
+
return typeof process < "u" && process.platform ? process.platform === "win32" : !1;
|
|
833
|
+
};
|
|
834
|
+
function w(x, p, _ = !1) {
|
|
835
|
+
return p && (p.windows === null || p.windows === void 0) && (p = { ...p, windows: s() }), a(x, p, _);
|
|
836
|
+
}
|
|
837
|
+
Object.assign(w, a), E.exports = w;
|
|
838
|
+
}, 154: (E) => {
|
|
839
|
+
const r = "\\\\/", u = `[^${r}]`, a = "\\.", s = "\\+", w = "\\?", x = "\\/", p = "(?=.)", _ = "[^/]", c = `(?:${x}|$)`, b = `(?:^|${x})`, y = `${a}{1,2}${c}`, $ = `(?!${a})`, i = `(?!${b}${y})`, D = `(?!${a}{0,1}${c})`, e = `(?!${y})`, O = `[^.${x}]`, d = `${_}*?`, R = { DOT_LITERAL: a, PLUS_LITERAL: s, QMARK_LITERAL: w, SLASH_LITERAL: x, ONE_CHAR: p, QMARK: _, END_ANCHOR: c, DOTS_SLASH: y, NO_DOT: $, NO_DOTS: i, NO_DOT_SLASH: D, NO_DOTS_SLASH: e, QMARK_NO_DOT: O, STAR: d, START_ANCHOR: b, SEP: "/" }, P = { ...R, SLASH_LITERAL: `[${r}]`, QMARK: u, STAR: `${u}*?`, DOTS_SLASH: `${a}{1,2}(?:[${r}]|$)`, NO_DOT: `(?!${a})`, NO_DOTS: `(?!(?:^|[${r}])${a}{1,2}(?:[${r}]|$))`, NO_DOT_SLASH: `(?!${a}{0,1}(?:[${r}]|$))`, NO_DOTS_SLASH: `(?!${a}{1,2}(?:[${r}]|$))`, QMARK_NO_DOT: `[^.${r}]`, START_ANCHOR: `(?:^|[${r}])`, END_ANCHOR: `(?:[${r}]|$)`, SEP: "\\" }, X = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
|
|
840
|
+
E.exports = { MAX_LENGTH: 65536, POSIX_REGEX_SOURCE: X, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, extglobChars(T) {
|
|
841
|
+
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${T.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
842
|
+
}, globChars(T) {
|
|
843
|
+
return T === !0 ? P : R;
|
|
844
|
+
} };
|
|
845
|
+
}, 697: (E, r, u) => {
|
|
846
|
+
const a = u(154), s = u(96), { MAX_LENGTH: w, POSIX_REGEX_SOURCE: x, REGEX_NON_SPECIAL_CHARS: p, REGEX_SPECIAL_CHARS_BACKREF: _, REPLACEMENTS: c } = a, b = (i, D) => {
|
|
847
|
+
if (typeof D.expandRange == "function")
|
|
848
|
+
return D.expandRange(...i, D);
|
|
849
|
+
i.sort();
|
|
850
|
+
const e = `[${i.join("-")}]`;
|
|
851
|
+
try {
|
|
852
|
+
new RegExp(e);
|
|
853
|
+
} catch {
|
|
854
|
+
return i.map((d) => s.escapeRegex(d)).join("..");
|
|
855
|
+
}
|
|
856
|
+
return e;
|
|
857
|
+
}, y = (i, D) => `Missing ${i}: "${D}" - use "\\\\${D}" to match literal characters`, $ = (i, D) => {
|
|
858
|
+
if (typeof i != "string")
|
|
859
|
+
throw new TypeError("Expected a string");
|
|
860
|
+
i = c[i] || i;
|
|
861
|
+
const e = { ...D }, O = typeof e.maxLength == "number" ? Math.min(w, e.maxLength) : w;
|
|
862
|
+
let d = i.length;
|
|
863
|
+
if (d > O)
|
|
864
|
+
throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${O}`);
|
|
865
|
+
const C = { type: "bos", value: "", output: e.prepend || "" }, R = [C], P = e.capture ? "" : "?:", X = a.globChars(e.windows), T = a.extglobChars(X), { DOT_LITERAL: M, PLUS_LITERAL: L, SLASH_LITERAL: te, ONE_CHAR: j, DOTS_SLASH: U, NO_DOT: H, NO_DOT_SLASH: se, NO_DOTS_SLASH: V, QMARK: k, QMARK_NO_DOT: F, STAR: oe, START_ANCHOR: re } = X, ie = (g) => `(${P}(?:(?!${re}${g.dot ? U : M}).)*?)`, z = e.dot ? "" : H, de = e.dot ? k : F;
|
|
866
|
+
let K = e.bash === !0 ? ie(e) : oe;
|
|
867
|
+
e.capture && (K = `(${K})`), typeof e.noext == "boolean" && (e.noextglob = e.noext);
|
|
868
|
+
const n = { input: i, index: -1, start: 0, dot: e.dot === !0, consumed: "", output: "", prefix: "", backtrack: !1, negated: !1, brackets: 0, braces: 0, parens: 0, quotes: 0, globstar: !1, tokens: R };
|
|
869
|
+
i = s.removePrefix(i, n), d = i.length;
|
|
870
|
+
const ee = [], Q = [], Y = [];
|
|
871
|
+
let t = C, o;
|
|
872
|
+
const me = () => n.index === d - 1, A = n.peek = (g = 1) => i[n.index + g], N = n.advance = () => i[++n.index] || "", J = () => i.slice(n.index + 1), he = (g = "", G = 0) => {
|
|
873
|
+
n.consumed += g, n.index += G;
|
|
874
|
+
}, ae = (g) => {
|
|
875
|
+
n.output += g.output != null ? g.output : g.value, he(g.value);
|
|
876
|
+
}, ne = () => {
|
|
877
|
+
let g = 1;
|
|
878
|
+
for (; A() === "!" && (A(2) !== "(" || A(3) === "?"); )
|
|
879
|
+
N(), n.start++, g++;
|
|
880
|
+
return g % 2 === 0 ? !1 : (n.negated = !0, n.start++, !0);
|
|
881
|
+
}, ge = (g) => {
|
|
882
|
+
n[g]++, Y.push(g);
|
|
883
|
+
}, le = (g) => {
|
|
884
|
+
n[g]--, Y.pop();
|
|
885
|
+
}, I = (g) => {
|
|
886
|
+
if (t.type === "globstar") {
|
|
887
|
+
const G = n.braces > 0 && (g.type === "comma" || g.type === "brace"), h = g.extglob === !0 || ee.length && (g.type === "pipe" || g.type === "paren");
|
|
888
|
+
g.type !== "slash" && g.type !== "paren" && !G && !h && (n.output = n.output.slice(0, -t.output.length), t.type = "star", t.value = "*", t.output = K, n.output += t.output);
|
|
889
|
+
}
|
|
890
|
+
if (ee.length && g.type !== "paren" && (ee[ee.length - 1].inner += g.value), (g.value || g.output) && ae(g), t && t.type === "text" && g.type === "text") {
|
|
891
|
+
t.output = (t.output || t.value) + g.value, t.value += g.value;
|
|
892
|
+
return;
|
|
893
|
+
}
|
|
894
|
+
g.prev = t, R.push(g), t = g;
|
|
895
|
+
}, ue = (g, G) => {
|
|
896
|
+
const h = { ...T[G], conditions: 1, inner: "" };
|
|
897
|
+
h.prev = t, h.parens = n.parens, h.output = n.output;
|
|
898
|
+
const q = (e.capture ? "(" : "") + h.open;
|
|
899
|
+
ge("parens"), I({ type: g, value: G, output: n.output ? "" : j }), I({ type: "paren", extglob: !0, value: N(), output: q }), ee.push(h);
|
|
900
|
+
}, ce = (g) => {
|
|
901
|
+
let G = g.close + (e.capture ? ")" : ""), h;
|
|
902
|
+
if (g.type === "negate") {
|
|
903
|
+
let q = K;
|
|
904
|
+
if (g.inner && g.inner.length > 1 && g.inner.includes("/") && (q = ie(e)), (q !== K || me() || /^\)+$/.test(J())) && (G = g.close = `)$))${q}`), g.inner.includes("*") && (h = J()) && /^\.[^\\/.]+$/.test(h)) {
|
|
905
|
+
const v = $(h, { ...D, fastpaths: !1 }).output;
|
|
906
|
+
G = g.close = `)${v})${q})`;
|
|
907
|
+
}
|
|
908
|
+
g.prev.type === "bos" && (n.negatedExtglob = !0);
|
|
909
|
+
}
|
|
910
|
+
I({ type: "paren", extglob: !0, value: o, output: G }), le("parens");
|
|
911
|
+
};
|
|
912
|
+
if (e.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(i)) {
|
|
913
|
+
let g = !1, G = i.replace(_, (h, q, v, B, W, pe) => B === "\\" ? (g = !0, h) : B === "?" ? q ? q + B + (W ? k.repeat(W.length) : "") : pe === 0 ? de + (W ? k.repeat(W.length) : "") : k.repeat(v.length) : B === "." ? M.repeat(v.length) : B === "*" ? q ? q + B + (W ? K : "") : K : q ? h : `\\${h}`);
|
|
914
|
+
return g === !0 && (e.unescape === !0 ? G = G.replace(/\\/g, "") : G = G.replace(/\\+/g, (h) => h.length % 2 === 0 ? "\\\\" : h ? "\\" : "")), G === i && e.contains === !0 ? (n.output = i, n) : (n.output = s.wrapOutput(G, n, D), n);
|
|
915
|
+
}
|
|
916
|
+
for (; !me(); ) {
|
|
917
|
+
if (o = N(), o === "\0")
|
|
918
|
+
continue;
|
|
919
|
+
if (o === "\\") {
|
|
920
|
+
const h = A();
|
|
921
|
+
if (h === "/" && e.bash !== !0 || h === "." || h === ";")
|
|
922
|
+
continue;
|
|
923
|
+
if (!h) {
|
|
924
|
+
o += "\\", I({ type: "text", value: o });
|
|
925
|
+
continue;
|
|
926
|
+
}
|
|
927
|
+
const q = /^\\+/.exec(J());
|
|
928
|
+
let v = 0;
|
|
929
|
+
if (q && q[0].length > 2 && (v = q[0].length, n.index += v, v % 2 !== 0 && (o += "\\")), e.unescape === !0 ? o = N() : o += N(), n.brackets === 0) {
|
|
930
|
+
I({ type: "text", value: o });
|
|
931
|
+
continue;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
if (n.brackets > 0 && (o !== "]" || t.value === "[" || t.value === "[^")) {
|
|
935
|
+
if (e.posix !== !1 && o === ":") {
|
|
936
|
+
const h = t.value.slice(1);
|
|
937
|
+
if (h.includes("[") && (t.posix = !0, h.includes(":"))) {
|
|
938
|
+
const q = t.value.lastIndexOf("["), v = t.value.slice(0, q), B = t.value.slice(q + 2), W = x[B];
|
|
939
|
+
if (W) {
|
|
940
|
+
t.value = v + W, n.backtrack = !0, N(), !C.output && R.indexOf(t) === 1 && (C.output = j);
|
|
941
|
+
continue;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
(o === "[" && A() !== ":" || o === "-" && A() === "]") && (o = `\\${o}`), o === "]" && (t.value === "[" || t.value === "[^") && (o = `\\${o}`), e.posix === !0 && o === "!" && t.value === "[" && (o = "^"), t.value += o, ae({ value: o });
|
|
946
|
+
continue;
|
|
947
|
+
}
|
|
948
|
+
if (n.quotes === 1 && o !== '"') {
|
|
949
|
+
o = s.escapeRegex(o), t.value += o, ae({ value: o });
|
|
950
|
+
continue;
|
|
951
|
+
}
|
|
952
|
+
if (o === '"') {
|
|
953
|
+
n.quotes = n.quotes === 1 ? 0 : 1, e.keepQuotes === !0 && I({ type: "text", value: o });
|
|
954
|
+
continue;
|
|
955
|
+
}
|
|
956
|
+
if (o === "(") {
|
|
957
|
+
ge("parens"), I({ type: "paren", value: o });
|
|
958
|
+
continue;
|
|
959
|
+
}
|
|
960
|
+
if (o === ")") {
|
|
961
|
+
if (n.parens === 0 && e.strictBrackets === !0)
|
|
962
|
+
throw new SyntaxError(y("opening", "("));
|
|
963
|
+
const h = ee[ee.length - 1];
|
|
964
|
+
if (h && n.parens === h.parens + 1) {
|
|
965
|
+
ce(ee.pop());
|
|
966
|
+
continue;
|
|
967
|
+
}
|
|
968
|
+
I({ type: "paren", value: o, output: n.parens ? ")" : "\\)" }), le("parens");
|
|
969
|
+
continue;
|
|
970
|
+
}
|
|
971
|
+
if (o === "[") {
|
|
972
|
+
if (e.nobracket === !0 || !J().includes("]")) {
|
|
973
|
+
if (e.nobracket !== !0 && e.strictBrackets === !0)
|
|
974
|
+
throw new SyntaxError(y("closing", "]"));
|
|
975
|
+
o = `\\${o}`;
|
|
976
|
+
} else
|
|
977
|
+
ge("brackets");
|
|
978
|
+
I({ type: "bracket", value: o });
|
|
979
|
+
continue;
|
|
980
|
+
}
|
|
981
|
+
if (o === "]") {
|
|
982
|
+
if (e.nobracket === !0 || t && t.type === "bracket" && t.value.length === 1) {
|
|
983
|
+
I({ type: "text", value: o, output: `\\${o}` });
|
|
984
|
+
continue;
|
|
985
|
+
}
|
|
986
|
+
if (n.brackets === 0) {
|
|
987
|
+
if (e.strictBrackets === !0)
|
|
988
|
+
throw new SyntaxError(y("opening", "["));
|
|
989
|
+
I({ type: "text", value: o, output: `\\${o}` });
|
|
990
|
+
continue;
|
|
991
|
+
}
|
|
992
|
+
le("brackets");
|
|
993
|
+
const h = t.value.slice(1);
|
|
994
|
+
if (t.posix !== !0 && h[0] === "^" && !h.includes("/") && (o = `/${o}`), t.value += o, ae({ value: o }), e.literalBrackets === !1 || s.hasRegexChars(h))
|
|
995
|
+
continue;
|
|
996
|
+
const q = s.escapeRegex(t.value);
|
|
997
|
+
if (n.output = n.output.slice(0, -t.value.length), e.literalBrackets === !0) {
|
|
998
|
+
n.output += q, t.value = q;
|
|
999
|
+
continue;
|
|
1000
|
+
}
|
|
1001
|
+
t.value = `(${P}${q}|${t.value})`, n.output += t.value;
|
|
1002
|
+
continue;
|
|
1003
|
+
}
|
|
1004
|
+
if (o === "{" && e.nobrace !== !0) {
|
|
1005
|
+
ge("braces");
|
|
1006
|
+
const h = { type: "brace", value: o, output: "(", outputIndex: n.output.length, tokensIndex: n.tokens.length };
|
|
1007
|
+
Q.push(h), I(h);
|
|
1008
|
+
continue;
|
|
1009
|
+
}
|
|
1010
|
+
if (o === "}") {
|
|
1011
|
+
const h = Q[Q.length - 1];
|
|
1012
|
+
if (e.nobrace === !0 || !h) {
|
|
1013
|
+
I({ type: "text", value: o, output: o });
|
|
1014
|
+
continue;
|
|
1015
|
+
}
|
|
1016
|
+
let q = ")";
|
|
1017
|
+
if (h.dots === !0) {
|
|
1018
|
+
const v = R.slice(), B = [];
|
|
1019
|
+
for (let W = v.length - 1; W >= 0 && (R.pop(), v[W].type !== "brace"); W--)
|
|
1020
|
+
v[W].type !== "dots" && B.unshift(v[W].value);
|
|
1021
|
+
q = b(B, e), n.backtrack = !0;
|
|
1022
|
+
}
|
|
1023
|
+
if (h.comma !== !0 && h.dots !== !0) {
|
|
1024
|
+
const v = n.output.slice(0, h.outputIndex), B = n.tokens.slice(h.tokensIndex);
|
|
1025
|
+
h.value = h.output = "\\{", o = q = "\\}", n.output = v;
|
|
1026
|
+
for (const W of B)
|
|
1027
|
+
n.output += W.output || W.value;
|
|
1028
|
+
}
|
|
1029
|
+
I({ type: "brace", value: o, output: q }), le("braces"), Q.pop();
|
|
1030
|
+
continue;
|
|
1031
|
+
}
|
|
1032
|
+
if (o === "|") {
|
|
1033
|
+
ee.length > 0 && ee[ee.length - 1].conditions++, I({ type: "text", value: o });
|
|
1034
|
+
continue;
|
|
1035
|
+
}
|
|
1036
|
+
if (o === ",") {
|
|
1037
|
+
let h = o;
|
|
1038
|
+
const q = Q[Q.length - 1];
|
|
1039
|
+
q && Y[Y.length - 1] === "braces" && (q.comma = !0, h = "|"), I({ type: "comma", value: o, output: h });
|
|
1040
|
+
continue;
|
|
1041
|
+
}
|
|
1042
|
+
if (o === "/") {
|
|
1043
|
+
if (t.type === "dot" && n.index === n.start + 1) {
|
|
1044
|
+
n.start = n.index + 1, n.consumed = "", n.output = "", R.pop(), t = C;
|
|
1045
|
+
continue;
|
|
1046
|
+
}
|
|
1047
|
+
I({ type: "slash", value: o, output: te });
|
|
1048
|
+
continue;
|
|
1049
|
+
}
|
|
1050
|
+
if (o === ".") {
|
|
1051
|
+
if (n.braces > 0 && t.type === "dot") {
|
|
1052
|
+
t.value === "." && (t.output = M);
|
|
1053
|
+
const h = Q[Q.length - 1];
|
|
1054
|
+
t.type = "dots", t.output += o, t.value += o, h.dots = !0;
|
|
1055
|
+
continue;
|
|
1056
|
+
}
|
|
1057
|
+
if (n.braces + n.parens === 0 && t.type !== "bos" && t.type !== "slash") {
|
|
1058
|
+
I({ type: "text", value: o, output: M });
|
|
1059
|
+
continue;
|
|
1060
|
+
}
|
|
1061
|
+
I({ type: "dot", value: o, output: M });
|
|
1062
|
+
continue;
|
|
1063
|
+
}
|
|
1064
|
+
if (o === "?") {
|
|
1065
|
+
if (!(t && t.value === "(") && e.noextglob !== !0 && A() === "(" && A(2) !== "?") {
|
|
1066
|
+
ue("qmark", o);
|
|
1067
|
+
continue;
|
|
1068
|
+
}
|
|
1069
|
+
if (t && t.type === "paren") {
|
|
1070
|
+
const q = A();
|
|
1071
|
+
let v = o;
|
|
1072
|
+
(t.value === "(" && !/[!=<:]/.test(q) || q === "<" && !/<([!=]|\w+>)/.test(J())) && (v = `\\${o}`), I({ type: "text", value: o, output: v });
|
|
1073
|
+
continue;
|
|
1074
|
+
}
|
|
1075
|
+
if (e.dot !== !0 && (t.type === "slash" || t.type === "bos")) {
|
|
1076
|
+
I({ type: "qmark", value: o, output: F });
|
|
1077
|
+
continue;
|
|
1078
|
+
}
|
|
1079
|
+
I({ type: "qmark", value: o, output: k });
|
|
1080
|
+
continue;
|
|
1081
|
+
}
|
|
1082
|
+
if (o === "!") {
|
|
1083
|
+
if (e.noextglob !== !0 && A() === "(" && (A(2) !== "?" || !/[!=<:]/.test(A(3)))) {
|
|
1084
|
+
ue("negate", o);
|
|
1085
|
+
continue;
|
|
1086
|
+
}
|
|
1087
|
+
if (e.nonegate !== !0 && n.index === 0) {
|
|
1088
|
+
ne();
|
|
1089
|
+
continue;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
if (o === "+") {
|
|
1093
|
+
if (e.noextglob !== !0 && A() === "(" && A(2) !== "?") {
|
|
1094
|
+
ue("plus", o);
|
|
1095
|
+
continue;
|
|
1096
|
+
}
|
|
1097
|
+
if (t && t.value === "(" || e.regex === !1) {
|
|
1098
|
+
I({ type: "plus", value: o, output: L });
|
|
1099
|
+
continue;
|
|
1100
|
+
}
|
|
1101
|
+
if (t && (t.type === "bracket" || t.type === "paren" || t.type === "brace") || n.parens > 0) {
|
|
1102
|
+
I({ type: "plus", value: o });
|
|
1103
|
+
continue;
|
|
1104
|
+
}
|
|
1105
|
+
I({ type: "plus", value: L });
|
|
1106
|
+
continue;
|
|
1107
|
+
}
|
|
1108
|
+
if (o === "@") {
|
|
1109
|
+
if (e.noextglob !== !0 && A() === "(" && A(2) !== "?") {
|
|
1110
|
+
I({ type: "at", extglob: !0, value: o, output: "" });
|
|
1111
|
+
continue;
|
|
1112
|
+
}
|
|
1113
|
+
I({ type: "text", value: o });
|
|
1114
|
+
continue;
|
|
1115
|
+
}
|
|
1116
|
+
if (o !== "*") {
|
|
1117
|
+
(o === "$" || o === "^") && (o = `\\${o}`);
|
|
1118
|
+
const h = p.exec(J());
|
|
1119
|
+
h && (o += h[0], n.index += h[0].length), I({ type: "text", value: o });
|
|
1120
|
+
continue;
|
|
1121
|
+
}
|
|
1122
|
+
if (t && (t.type === "globstar" || t.star === !0)) {
|
|
1123
|
+
t.type = "star", t.star = !0, t.value += o, t.output = K, n.backtrack = !0, n.globstar = !0, he(o);
|
|
1124
|
+
continue;
|
|
1125
|
+
}
|
|
1126
|
+
let g = J();
|
|
1127
|
+
if (e.noextglob !== !0 && /^\([^?]/.test(g)) {
|
|
1128
|
+
ue("star", o);
|
|
1129
|
+
continue;
|
|
1130
|
+
}
|
|
1131
|
+
if (t.type === "star") {
|
|
1132
|
+
if (e.noglobstar === !0) {
|
|
1133
|
+
he(o);
|
|
1134
|
+
continue;
|
|
1135
|
+
}
|
|
1136
|
+
const h = t.prev, q = h.prev, v = h.type === "slash" || h.type === "bos", B = q && (q.type === "star" || q.type === "globstar");
|
|
1137
|
+
if (e.bash === !0 && (!v || g[0] && g[0] !== "/")) {
|
|
1138
|
+
I({ type: "star", value: o, output: "" });
|
|
1139
|
+
continue;
|
|
1140
|
+
}
|
|
1141
|
+
const W = n.braces > 0 && (h.type === "comma" || h.type === "brace"), pe = ee.length && (h.type === "pipe" || h.type === "paren");
|
|
1142
|
+
if (!v && h.type !== "paren" && !W && !pe) {
|
|
1143
|
+
I({ type: "star", value: o, output: "" });
|
|
1144
|
+
continue;
|
|
1145
|
+
}
|
|
1146
|
+
for (; g.slice(0, 3) === "/**"; ) {
|
|
1147
|
+
const fe = i[n.index + 4];
|
|
1148
|
+
if (fe && fe !== "/")
|
|
1149
|
+
break;
|
|
1150
|
+
g = g.slice(3), he("/**", 3);
|
|
1151
|
+
}
|
|
1152
|
+
if (h.type === "bos" && me()) {
|
|
1153
|
+
t.type = "globstar", t.value += o, t.output = ie(e), n.output = t.output, n.globstar = !0, he(o);
|
|
1154
|
+
continue;
|
|
1155
|
+
}
|
|
1156
|
+
if (h.type === "slash" && h.prev.type !== "bos" && !B && me()) {
|
|
1157
|
+
n.output = n.output.slice(0, -(h.output + t.output).length), h.output = `(?:${h.output}`, t.type = "globstar", t.output = ie(e) + (e.strictSlashes ? ")" : "|$)"), t.value += o, n.globstar = !0, n.output += h.output + t.output, he(o);
|
|
1158
|
+
continue;
|
|
1159
|
+
}
|
|
1160
|
+
if (h.type === "slash" && h.prev.type !== "bos" && g[0] === "/") {
|
|
1161
|
+
const fe = g[1] !== void 0 ? "|$" : "";
|
|
1162
|
+
n.output = n.output.slice(0, -(h.output + t.output).length), h.output = `(?:${h.output}`, t.type = "globstar", t.output = `${ie(e)}${te}|${te}${fe})`, t.value += o, n.output += h.output + t.output, n.globstar = !0, he(o + N()), I({ type: "slash", value: "/", output: "" });
|
|
1163
|
+
continue;
|
|
1164
|
+
}
|
|
1165
|
+
if (h.type === "bos" && g[0] === "/") {
|
|
1166
|
+
t.type = "globstar", t.value += o, t.output = `(?:^|${te}|${ie(e)}${te})`, n.output = t.output, n.globstar = !0, he(o + N()), I({ type: "slash", value: "/", output: "" });
|
|
1167
|
+
continue;
|
|
1168
|
+
}
|
|
1169
|
+
n.output = n.output.slice(0, -t.output.length), t.type = "globstar", t.output = ie(e), t.value += o, n.output += t.output, n.globstar = !0, he(o);
|
|
1170
|
+
continue;
|
|
1171
|
+
}
|
|
1172
|
+
const G = { type: "star", value: o, output: K };
|
|
1173
|
+
if (e.bash === !0) {
|
|
1174
|
+
G.output = ".*?", (t.type === "bos" || t.type === "slash") && (G.output = z + G.output), I(G);
|
|
1175
|
+
continue;
|
|
1176
|
+
}
|
|
1177
|
+
if (t && (t.type === "bracket" || t.type === "paren") && e.regex === !0) {
|
|
1178
|
+
G.output = o, I(G);
|
|
1179
|
+
continue;
|
|
1180
|
+
}
|
|
1181
|
+
(n.index === n.start || t.type === "slash" || t.type === "dot") && (t.type === "dot" ? (n.output += se, t.output += se) : e.dot === !0 ? (n.output += V, t.output += V) : (n.output += z, t.output += z), A() !== "*" && (n.output += j, t.output += j)), I(G);
|
|
1182
|
+
}
|
|
1183
|
+
for (; n.brackets > 0; ) {
|
|
1184
|
+
if (e.strictBrackets === !0) throw new SyntaxError(y("closing", "]"));
|
|
1185
|
+
n.output = s.escapeLast(n.output, "["), le("brackets");
|
|
1186
|
+
}
|
|
1187
|
+
for (; n.parens > 0; ) {
|
|
1188
|
+
if (e.strictBrackets === !0) throw new SyntaxError(y("closing", ")"));
|
|
1189
|
+
n.output = s.escapeLast(n.output, "("), le("parens");
|
|
1190
|
+
}
|
|
1191
|
+
for (; n.braces > 0; ) {
|
|
1192
|
+
if (e.strictBrackets === !0) throw new SyntaxError(y("closing", "}"));
|
|
1193
|
+
n.output = s.escapeLast(n.output, "{"), le("braces");
|
|
1194
|
+
}
|
|
1195
|
+
if (e.strictSlashes !== !0 && (t.type === "star" || t.type === "bracket") && I({ type: "maybe_slash", value: "", output: `${te}?` }), n.backtrack === !0) {
|
|
1196
|
+
n.output = "";
|
|
1197
|
+
for (const g of n.tokens)
|
|
1198
|
+
n.output += g.output != null ? g.output : g.value, g.suffix && (n.output += g.suffix);
|
|
1199
|
+
}
|
|
1200
|
+
return n;
|
|
1201
|
+
};
|
|
1202
|
+
$.fastpaths = (i, D) => {
|
|
1203
|
+
const e = { ...D }, O = typeof e.maxLength == "number" ? Math.min(w, e.maxLength) : w, d = i.length;
|
|
1204
|
+
if (d > O)
|
|
1205
|
+
throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${O}`);
|
|
1206
|
+
i = c[i] || i;
|
|
1207
|
+
const { DOT_LITERAL: C, SLASH_LITERAL: R, ONE_CHAR: P, DOTS_SLASH: X, NO_DOT: T, NO_DOTS: M, NO_DOTS_SLASH: L, STAR: te, START_ANCHOR: j } = a.globChars(e.windows), U = e.dot ? M : T, H = e.dot ? L : T, se = e.capture ? "" : "?:", V = { negated: !1, prefix: "" };
|
|
1208
|
+
let k = e.bash === !0 ? ".*?" : te;
|
|
1209
|
+
e.capture && (k = `(${k})`);
|
|
1210
|
+
const F = (z) => z.noglobstar === !0 ? k : `(${se}(?:(?!${j}${z.dot ? X : C}).)*?)`, oe = (z) => {
|
|
1211
|
+
switch (z) {
|
|
1212
|
+
case "*":
|
|
1213
|
+
return `${U}${P}${k}`;
|
|
1214
|
+
case ".*":
|
|
1215
|
+
return `${C}${P}${k}`;
|
|
1216
|
+
case "*.*":
|
|
1217
|
+
return `${U}${k}${C}${P}${k}`;
|
|
1218
|
+
case "*/*":
|
|
1219
|
+
return `${U}${k}${R}${P}${H}${k}`;
|
|
1220
|
+
case "**":
|
|
1221
|
+
return U + F(e);
|
|
1222
|
+
case "**/*":
|
|
1223
|
+
return `(?:${U}${F(e)}${R})?${H}${P}${k}`;
|
|
1224
|
+
case "**/*.*":
|
|
1225
|
+
return `(?:${U}${F(e)}${R})?${H}${k}${C}${P}${k}`;
|
|
1226
|
+
case "**/.*":
|
|
1227
|
+
return `(?:${U}${F(e)}${R})?${C}${P}${k}`;
|
|
1228
|
+
default: {
|
|
1229
|
+
const de = /^(.*?)\.(\w+)$/.exec(z);
|
|
1230
|
+
if (!de) return;
|
|
1231
|
+
const K = oe(de[1]);
|
|
1232
|
+
return K ? K + C + de[2] : void 0;
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
}, re = s.removePrefix(i, V);
|
|
1236
|
+
let ie = oe(re);
|
|
1237
|
+
return ie && e.strictSlashes !== !0 && (ie += `${R}?`), ie;
|
|
1238
|
+
}, E.exports = $;
|
|
1239
|
+
}, 510: (E, r, u) => {
|
|
1240
|
+
const a = u(716), s = u(697), w = u(96), x = u(154), p = (c) => c && typeof c == "object" && !Array.isArray(c), _ = (c, b, y = !1) => {
|
|
1241
|
+
if (Array.isArray(c)) {
|
|
1242
|
+
const R = c.map((X) => _(X, b, y));
|
|
1243
|
+
return (X) => {
|
|
1244
|
+
for (const T of R) {
|
|
1245
|
+
const M = T(X);
|
|
1246
|
+
if (M) return M;
|
|
1247
|
+
}
|
|
1248
|
+
return !1;
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1251
|
+
const $ = p(c) && c.tokens && c.input;
|
|
1252
|
+
if (c === "" || typeof c != "string" && !$)
|
|
1253
|
+
throw new TypeError("Expected pattern to be a non-empty string");
|
|
1254
|
+
const i = b || {}, D = i.windows, e = $ ? _.compileRe(c, b) : _.makeRe(c, b, !1, !0), O = e.state;
|
|
1255
|
+
delete e.state;
|
|
1256
|
+
let d = () => !1;
|
|
1257
|
+
if (i.ignore) {
|
|
1258
|
+
const R = { ...b, ignore: null, onMatch: null, onResult: null };
|
|
1259
|
+
d = _(i.ignore, R, y);
|
|
1260
|
+
}
|
|
1261
|
+
const C = (R, P = !1) => {
|
|
1262
|
+
const { isMatch: X, match: T, output: M } = _.test(R, e, b, { glob: c, posix: D }), L = { glob: c, state: O, regex: e, posix: D, input: R, output: M, match: T, isMatch: X };
|
|
1263
|
+
return typeof i.onResult == "function" && i.onResult(L), X === !1 ? (L.isMatch = !1, P ? L : !1) : d(R) ? (typeof i.onIgnore == "function" && i.onIgnore(L), L.isMatch = !1, P ? L : !1) : (typeof i.onMatch == "function" && i.onMatch(L), P ? L : !0);
|
|
1264
|
+
};
|
|
1265
|
+
return y && (C.state = O), C;
|
|
1266
|
+
};
|
|
1267
|
+
_.test = (c, b, y, { glob: $, posix: i } = {}) => {
|
|
1268
|
+
if (typeof c != "string")
|
|
1269
|
+
throw new TypeError("Expected input to be a string");
|
|
1270
|
+
if (c === "")
|
|
1271
|
+
return { isMatch: !1, output: "" };
|
|
1272
|
+
const D = y || {}, e = D.format || (i ? w.toPosixSlashes : null);
|
|
1273
|
+
let O = c === $, d = O && e ? e(c) : c;
|
|
1274
|
+
return O === !1 && (d = e ? e(c) : c, O = d === $), (O === !1 || D.capture === !0) && (D.matchBase === !0 || D.basename === !0 ? O = _.matchBase(c, b, y, i) : O = b.exec(d)), { isMatch: !!O, match: O, output: d };
|
|
1275
|
+
}, _.matchBase = (c, b, y) => (b instanceof RegExp ? b : _.makeRe(b, y)).test(w.basename(c)), _.isMatch = (c, b, y) => _(b, y)(c), _.parse = (c, b) => Array.isArray(c) ? c.map((y) => _.parse(y, b)) : s(c, { ...b, fastpaths: !1 }), _.scan = (c, b) => a(c, b), _.compileRe = (c, b, y = !1, $ = !1) => {
|
|
1276
|
+
if (y === !0)
|
|
1277
|
+
return c.output;
|
|
1278
|
+
const i = b || {}, D = i.contains ? "" : "^", e = i.contains ? "" : "$";
|
|
1279
|
+
let O = `${D}(?:${c.output})${e}`;
|
|
1280
|
+
c && c.negated === !0 && (O = `^(?!${O}).*$`);
|
|
1281
|
+
const d = _.toRegex(O, b);
|
|
1282
|
+
return $ === !0 && (d.state = c), d;
|
|
1283
|
+
}, _.makeRe = (c, b = {}, y = !1, $ = !1) => {
|
|
1284
|
+
if (!c || typeof c != "string")
|
|
1285
|
+
throw new TypeError("Expected a non-empty string");
|
|
1286
|
+
let i = { negated: !1, fastpaths: !0 };
|
|
1287
|
+
return b.fastpaths !== !1 && (c[0] === "." || c[0] === "*") && (i.output = s.fastpaths(c, b)), i.output || (i = s(c, b)), _.compileRe(i, b, y, $);
|
|
1288
|
+
}, _.toRegex = (c, b) => {
|
|
1289
|
+
try {
|
|
1290
|
+
const y = b || {};
|
|
1291
|
+
return new RegExp(c, y.flags || (y.nocase ? "i" : ""));
|
|
1292
|
+
} catch (y) {
|
|
1293
|
+
if (b && b.debug === !0) throw y;
|
|
1294
|
+
return /$^/;
|
|
1295
|
+
}
|
|
1296
|
+
}, _.constants = x, E.exports = _;
|
|
1297
|
+
}, 716: (E, r, u) => {
|
|
1298
|
+
const a = u(96), { CHAR_ASTERISK: s, CHAR_AT: w, CHAR_BACKWARD_SLASH: x, CHAR_COMMA: p, CHAR_DOT: _, CHAR_EXCLAMATION_MARK: c, CHAR_FORWARD_SLASH: b, CHAR_LEFT_CURLY_BRACE: y, CHAR_LEFT_PARENTHESES: $, CHAR_LEFT_SQUARE_BRACKET: i, CHAR_PLUS: D, CHAR_QUESTION_MARK: e, CHAR_RIGHT_CURLY_BRACE: O, CHAR_RIGHT_PARENTHESES: d, CHAR_RIGHT_SQUARE_BRACKET: C } = u(154), R = (T) => T === b || T === x, P = (T) => {
|
|
1299
|
+
T.isPrefix !== !0 && (T.depth = T.isGlobstar ? 1 / 0 : 1);
|
|
1300
|
+
}, X = (T, M) => {
|
|
1301
|
+
const L = M || {}, te = T.length - 1, j = L.parts === !0 || L.scanToEnd === !0, U = [], H = [], se = [];
|
|
1302
|
+
let V = T, k = -1, F = 0, oe = 0, re = !1, ie = !1, z = !1, de = !1, K = !1, n = !1, ee = !1, Q = !1, Y = !1, t = !1, o = 0, me, A, N = { value: "", depth: 0, isGlob: !1 };
|
|
1303
|
+
const J = () => k >= te, he = () => V.charCodeAt(k + 1), ae = () => (me = A, V.charCodeAt(++k));
|
|
1304
|
+
for (; k < te; ) {
|
|
1305
|
+
A = ae();
|
|
1306
|
+
let ue;
|
|
1307
|
+
if (A === x) {
|
|
1308
|
+
ee = N.backslashes = !0, A = ae(), A === y && (n = !0);
|
|
1309
|
+
continue;
|
|
1310
|
+
}
|
|
1311
|
+
if (n === !0 || A === y) {
|
|
1312
|
+
for (o++; J() !== !0 && (A = ae()); ) {
|
|
1313
|
+
if (A === x) {
|
|
1314
|
+
ee = N.backslashes = !0, ae();
|
|
1315
|
+
continue;
|
|
1316
|
+
}
|
|
1317
|
+
if (A === y) {
|
|
1318
|
+
o++;
|
|
1319
|
+
continue;
|
|
1320
|
+
}
|
|
1321
|
+
if (n !== !0 && A === _ && (A = ae()) === _) {
|
|
1322
|
+
if (re = N.isBrace = !0, z = N.isGlob = !0, t = !0, j === !0)
|
|
1323
|
+
continue;
|
|
1324
|
+
break;
|
|
1325
|
+
}
|
|
1326
|
+
if (n !== !0 && A === p) {
|
|
1327
|
+
if (re = N.isBrace = !0, z = N.isGlob = !0, t = !0, j === !0)
|
|
1328
|
+
continue;
|
|
1329
|
+
break;
|
|
1330
|
+
}
|
|
1331
|
+
if (A === O && (o--, o === 0)) {
|
|
1332
|
+
n = !1, re = N.isBrace = !0, t = !0;
|
|
1333
|
+
break;
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
if (j === !0)
|
|
1337
|
+
continue;
|
|
1338
|
+
break;
|
|
1339
|
+
}
|
|
1340
|
+
if (A === b) {
|
|
1341
|
+
if (U.push(k), H.push(N), N = { value: "", depth: 0, isGlob: !1 }, t === !0) continue;
|
|
1342
|
+
if (me === _ && k === F + 1) {
|
|
1343
|
+
F += 2;
|
|
1344
|
+
continue;
|
|
1345
|
+
}
|
|
1346
|
+
oe = k + 1;
|
|
1347
|
+
continue;
|
|
1348
|
+
}
|
|
1349
|
+
if (L.noext !== !0 && (A === D || A === w || A === s || A === e || A === c) === !0 && he() === $) {
|
|
1350
|
+
if (z = N.isGlob = !0, de = N.isExtglob = !0, t = !0, A === c && k === F && (Y = !0), j === !0) {
|
|
1351
|
+
for (; J() !== !0 && (A = ae()); ) {
|
|
1352
|
+
if (A === x) {
|
|
1353
|
+
ee = N.backslashes = !0, A = ae();
|
|
1354
|
+
continue;
|
|
1355
|
+
}
|
|
1356
|
+
if (A === d) {
|
|
1357
|
+
z = N.isGlob = !0, t = !0;
|
|
1358
|
+
break;
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
continue;
|
|
1362
|
+
}
|
|
1363
|
+
break;
|
|
1364
|
+
}
|
|
1365
|
+
if (A === s) {
|
|
1366
|
+
if (me === s && (K = N.isGlobstar = !0), z = N.isGlob = !0, t = !0, j === !0)
|
|
1367
|
+
continue;
|
|
1368
|
+
break;
|
|
1369
|
+
}
|
|
1370
|
+
if (A === e) {
|
|
1371
|
+
if (z = N.isGlob = !0, t = !0, j === !0)
|
|
1372
|
+
continue;
|
|
1373
|
+
break;
|
|
1374
|
+
}
|
|
1375
|
+
if (A === i) {
|
|
1376
|
+
for (; J() !== !0 && (ue = ae()); ) {
|
|
1377
|
+
if (ue === x) {
|
|
1378
|
+
ee = N.backslashes = !0, ae();
|
|
1379
|
+
continue;
|
|
1380
|
+
}
|
|
1381
|
+
if (ue === C) {
|
|
1382
|
+
ie = N.isBracket = !0, z = N.isGlob = !0, t = !0;
|
|
1383
|
+
break;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
if (j === !0)
|
|
1387
|
+
continue;
|
|
1388
|
+
break;
|
|
1389
|
+
}
|
|
1390
|
+
if (L.nonegate !== !0 && A === c && k === F) {
|
|
1391
|
+
Q = N.negated = !0, F++;
|
|
1392
|
+
continue;
|
|
1393
|
+
}
|
|
1394
|
+
if (L.noparen !== !0 && A === $) {
|
|
1395
|
+
if (z = N.isGlob = !0, j === !0) {
|
|
1396
|
+
for (; J() !== !0 && (A = ae()); ) {
|
|
1397
|
+
if (A === $) {
|
|
1398
|
+
ee = N.backslashes = !0, A = ae();
|
|
1399
|
+
continue;
|
|
1400
|
+
}
|
|
1401
|
+
if (A === d) {
|
|
1402
|
+
t = !0;
|
|
1403
|
+
break;
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
continue;
|
|
1407
|
+
}
|
|
1408
|
+
break;
|
|
1409
|
+
}
|
|
1410
|
+
if (z === !0) {
|
|
1411
|
+
if (t = !0, j === !0)
|
|
1412
|
+
continue;
|
|
1413
|
+
break;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
L.noext === !0 && (de = !1, z = !1);
|
|
1417
|
+
let ne = V, ge = "", le = "";
|
|
1418
|
+
F > 0 && (ge = V.slice(0, F), V = V.slice(F), oe -= F), ne && z === !0 && oe > 0 ? (ne = V.slice(0, oe), le = V.slice(oe)) : z === !0 ? (ne = "", le = V) : ne = V, ne && ne !== "" && ne !== "/" && ne !== V && R(ne.charCodeAt(ne.length - 1)) && (ne = ne.slice(0, -1)), L.unescape === !0 && (le && (le = a.removeBackslashes(le)), ne && ee === !0 && (ne = a.removeBackslashes(ne)));
|
|
1419
|
+
const I = { prefix: ge, input: T, start: F, base: ne, glob: le, isBrace: re, isBracket: ie, isGlob: z, isExtglob: de, isGlobstar: K, negated: Q, negatedExtglob: Y };
|
|
1420
|
+
if (L.tokens === !0 && (I.maxDepth = 0, R(A) || H.push(N), I.tokens = H), L.parts === !0 || L.tokens === !0) {
|
|
1421
|
+
let ue;
|
|
1422
|
+
for (let ce = 0; ce < U.length; ce++) {
|
|
1423
|
+
const g = ue ? ue + 1 : F, G = U[ce], h = T.slice(g, G);
|
|
1424
|
+
L.tokens && (ce === 0 && F !== 0 ? (H[ce].isPrefix = !0, H[ce].value = ge) : H[ce].value = h, P(H[ce]), I.maxDepth += H[ce].depth), (ce !== 0 || h !== "") && se.push(h), ue = G;
|
|
1425
|
+
}
|
|
1426
|
+
if (ue && ue + 1 < T.length) {
|
|
1427
|
+
const ce = T.slice(ue + 1);
|
|
1428
|
+
se.push(ce), L.tokens && (H[H.length - 1].value = ce, P(H[H.length - 1]), I.maxDepth += H[H.length - 1].depth);
|
|
1429
|
+
}
|
|
1430
|
+
I.slashes = U, I.parts = se;
|
|
1431
|
+
}
|
|
1432
|
+
return I;
|
|
1433
|
+
};
|
|
1434
|
+
E.exports = X;
|
|
1435
|
+
}, 96: (E, r, u) => {
|
|
1436
|
+
const { REGEX_BACKSLASH: a, REGEX_REMOVE_BACKSLASH: s, REGEX_SPECIAL_CHARS: w, REGEX_SPECIAL_CHARS_GLOBAL: x } = u(154);
|
|
1437
|
+
r.isObject = (p) => p !== null && typeof p == "object" && !Array.isArray(p), r.hasRegexChars = (p) => w.test(p), r.isRegexChar = (p) => p.length === 1 && r.hasRegexChars(p), r.escapeRegex = (p) => p.replace(x, "\\$1"), r.toPosixSlashes = (p) => p.replace(a, "/"), r.removeBackslashes = (p) => p.replace(s, (_) => _ === "\\" ? "" : _), r.escapeLast = (p, _, c) => {
|
|
1438
|
+
const b = p.lastIndexOf(_, c);
|
|
1439
|
+
return b === -1 ? p : p[b - 1] === "\\" ? r.escapeLast(p, _, b - 1) : `${p.slice(0, b)}\\${p.slice(b)}`;
|
|
1440
|
+
}, r.removePrefix = (p, _ = {}) => {
|
|
1441
|
+
let c = p;
|
|
1442
|
+
return c.startsWith("./") && (c = c.slice(2), _.prefix = "./"), c;
|
|
1443
|
+
}, r.wrapOutput = (p, _ = {}, c = {}) => {
|
|
1444
|
+
const b = c.contains ? "" : "^", y = c.contains ? "" : "$";
|
|
1445
|
+
let $ = `${b}(?:${p})${y}`;
|
|
1446
|
+
return _.negated === !0 && ($ = `(?:^(?!${$}).*$)`), $;
|
|
1447
|
+
}, r.basename = (p, { windows: _ } = {}) => {
|
|
1448
|
+
const c = p.split(_ ? /[\\/]/ : "/"), b = c[c.length - 1];
|
|
1449
|
+
return b === "" ? c[c.length - 2] : b;
|
|
1450
|
+
};
|
|
1451
|
+
} }, f = {};
|
|
1452
|
+
function l(E) {
|
|
1453
|
+
var r = f[E];
|
|
1454
|
+
if (r !== void 0)
|
|
1455
|
+
return r.exports;
|
|
1456
|
+
var u = f[E] = { exports: {} }, a = !0;
|
|
1457
|
+
try {
|
|
1458
|
+
m[E](u, u.exports, l), a = !1;
|
|
1459
|
+
} finally {
|
|
1460
|
+
a && delete f[E];
|
|
1461
|
+
}
|
|
1462
|
+
return u.exports;
|
|
1463
|
+
}
|
|
1464
|
+
typeof l < "u" && (l.ab = __dirname + "/");
|
|
1465
|
+
var S = l(170);
|
|
1466
|
+
je.exports = S;
|
|
1467
|
+
})()), je.exports;
|
|
1468
|
+
}
|
|
1469
|
+
var it;
|
|
1470
|
+
function Mt() {
|
|
1471
|
+
return it || (it = 1, function(m) {
|
|
1472
|
+
Object.defineProperty(m, "__esModule", {
|
|
1473
|
+
value: !0
|
|
1474
|
+
});
|
|
1475
|
+
function f(r, u) {
|
|
1476
|
+
for (var a in u) Object.defineProperty(r, a, {
|
|
1477
|
+
enumerable: !0,
|
|
1478
|
+
get: u[a]
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
f(m, {
|
|
1482
|
+
hasLocalMatch: function() {
|
|
1483
|
+
return E;
|
|
1484
|
+
},
|
|
1485
|
+
matchLocalPattern: function() {
|
|
1486
|
+
return S;
|
|
1487
|
+
}
|
|
1488
|
+
});
|
|
1489
|
+
const l = mt();
|
|
1490
|
+
function S(r, u) {
|
|
1491
|
+
if (r.search !== void 0 && r.search !== u.search)
|
|
1492
|
+
return !1;
|
|
1493
|
+
var a;
|
|
1494
|
+
return !!(0, l.makeRe)((a = r.pathname) != null ? a : "**", {
|
|
1495
|
+
dot: !0
|
|
1496
|
+
}).test(u.pathname);
|
|
1497
|
+
}
|
|
1498
|
+
function E(r, u) {
|
|
1499
|
+
if (!r)
|
|
1500
|
+
return !0;
|
|
1501
|
+
const a = new URL(u, "http://n");
|
|
1502
|
+
return r.some((s) => S(s, a));
|
|
1503
|
+
}
|
|
1504
|
+
}(De)), De;
|
|
1505
|
+
}
|
|
1506
|
+
var qe = {}, at;
|
|
1507
|
+
function Ht() {
|
|
1508
|
+
return at || (at = 1, function(m) {
|
|
1509
|
+
Object.defineProperty(m, "__esModule", {
|
|
1510
|
+
value: !0
|
|
1511
|
+
});
|
|
1512
|
+
function f(r, u) {
|
|
1513
|
+
for (var a in u) Object.defineProperty(r, a, {
|
|
1514
|
+
enumerable: !0,
|
|
1515
|
+
get: u[a]
|
|
1516
|
+
});
|
|
1517
|
+
}
|
|
1518
|
+
f(m, {
|
|
1519
|
+
hasRemoteMatch: function() {
|
|
1520
|
+
return E;
|
|
1521
|
+
},
|
|
1522
|
+
matchRemotePattern: function() {
|
|
1523
|
+
return S;
|
|
1524
|
+
}
|
|
1525
|
+
});
|
|
1526
|
+
const l = mt();
|
|
1527
|
+
function S(r, u) {
|
|
1528
|
+
if (r.protocol !== void 0 && r.protocol.replace(/:$/, "") !== u.protocol.replace(/:$/, "") || r.port !== void 0 && r.port !== u.port)
|
|
1529
|
+
return !1;
|
|
1530
|
+
if (r.hostname === void 0)
|
|
1531
|
+
throw Object.defineProperty(new Error(`Pattern should define hostname but found
|
|
1532
|
+
` + JSON.stringify(r)), "__NEXT_ERROR_CODE", {
|
|
1533
|
+
value: "E410",
|
|
1534
|
+
enumerable: !1,
|
|
1535
|
+
configurable: !0
|
|
1536
|
+
});
|
|
1537
|
+
if (!(0, l.makeRe)(r.hostname).test(u.hostname) || r.search !== void 0 && r.search !== u.search)
|
|
1538
|
+
return !1;
|
|
1539
|
+
var a;
|
|
1540
|
+
return !!(0, l.makeRe)((a = r.pathname) != null ? a : "**", {
|
|
1541
|
+
dot: !0
|
|
1542
|
+
}).test(u.pathname);
|
|
1543
|
+
}
|
|
1544
|
+
function E(r, u, a) {
|
|
1545
|
+
return r.some((s) => a.hostname === s) || u.some((s) => S(s, a));
|
|
1546
|
+
}
|
|
1547
|
+
}(qe)), qe;
|
|
1548
|
+
}
|
|
1549
|
+
var st;
|
|
1550
|
+
function _t() {
|
|
1551
|
+
return st || (st = 1, function(m) {
|
|
1552
|
+
Object.defineProperty(m, "__esModule", {
|
|
1553
|
+
value: !0
|
|
1554
|
+
}), Object.defineProperty(m, "default", {
|
|
1555
|
+
enumerable: !0,
|
|
1556
|
+
get: function() {
|
|
1557
|
+
return S;
|
|
1558
|
+
}
|
|
1559
|
+
});
|
|
1560
|
+
const f = 75;
|
|
1561
|
+
function l(E) {
|
|
1562
|
+
let { config: r, src: u, width: a, quality: s } = E;
|
|
1563
|
+
var w;
|
|
1564
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1565
|
+
const p = [];
|
|
1566
|
+
if (u || p.push("src"), a || p.push("width"), p.length > 0)
|
|
1567
|
+
throw Object.defineProperty(new Error("Next Image Optimization requires " + p.join(", ") + " to be provided. Make sure you pass them as props to the `next/image` component. Received: " + JSON.stringify({
|
|
1568
|
+
src: u,
|
|
1569
|
+
width: a,
|
|
1570
|
+
quality: s
|
|
1571
|
+
})), "__NEXT_ERROR_CODE", {
|
|
1572
|
+
value: "E188",
|
|
1573
|
+
enumerable: !1,
|
|
1574
|
+
configurable: !0
|
|
1575
|
+
});
|
|
1576
|
+
if (u.startsWith("//"))
|
|
1577
|
+
throw Object.defineProperty(new Error('Failed to parse src "' + u + '" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)'), "__NEXT_ERROR_CODE", {
|
|
1578
|
+
value: "E360",
|
|
1579
|
+
enumerable: !1,
|
|
1580
|
+
configurable: !0
|
|
1581
|
+
});
|
|
1582
|
+
if (u.startsWith("/") && r.localPatterns && process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
|
|
1583
|
+
process.env.NEXT_RUNTIME !== "edge") {
|
|
1584
|
+
const { hasLocalMatch: _ } = Mt();
|
|
1585
|
+
if (!_(r.localPatterns, u))
|
|
1586
|
+
throw Object.defineProperty(new Error("Invalid src prop (" + u + ") on `next/image` does not match `images.localPatterns` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns"), "__NEXT_ERROR_CODE", {
|
|
1587
|
+
value: "E426",
|
|
1588
|
+
enumerable: !1,
|
|
1589
|
+
configurable: !0
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
if (!u.startsWith("/") && (r.domains || r.remotePatterns)) {
|
|
1593
|
+
let _;
|
|
1594
|
+
try {
|
|
1595
|
+
_ = new URL(u);
|
|
1596
|
+
} catch (c) {
|
|
1597
|
+
throw console.error(c), Object.defineProperty(new Error('Failed to parse src "' + u + '" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)'), "__NEXT_ERROR_CODE", {
|
|
1598
|
+
value: "E63",
|
|
1599
|
+
enumerable: !1,
|
|
1600
|
+
configurable: !0
|
|
1601
|
+
});
|
|
1602
|
+
}
|
|
1603
|
+
if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
|
|
1604
|
+
process.env.NEXT_RUNTIME !== "edge") {
|
|
1605
|
+
const { hasRemoteMatch: c } = Ht();
|
|
1606
|
+
if (!c(r.domains, r.remotePatterns, _))
|
|
1607
|
+
throw Object.defineProperty(new Error("Invalid src prop (" + u + ') on `next/image`, hostname "' + _.hostname + '" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host'), "__NEXT_ERROR_CODE", {
|
|
1608
|
+
value: "E231",
|
|
1609
|
+
enumerable: !1,
|
|
1610
|
+
configurable: !0
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
if (s && r.qualities && !r.qualities.includes(s))
|
|
1615
|
+
throw Object.defineProperty(new Error("Invalid quality prop (" + s + ") on `next/image` does not match `images.qualities` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-qualities"), "__NEXT_ERROR_CODE", {
|
|
1616
|
+
value: "E623",
|
|
1617
|
+
enumerable: !1,
|
|
1618
|
+
configurable: !0
|
|
1619
|
+
});
|
|
1620
|
+
}
|
|
1621
|
+
const x = s || ((w = r.qualities) == null ? void 0 : w.reduce((p, _) => Math.abs(_ - f) < Math.abs(p - f) ? _ : p)) || f;
|
|
1622
|
+
return r.path + "?url=" + encodeURIComponent(u) + "&w=" + a + "&q=" + x + (u.startsWith("/_next/static/media/") && process.env.NEXT_DEPLOYMENT_ID ? "&dpl=" + process.env.NEXT_DEPLOYMENT_ID : "");
|
|
1623
|
+
}
|
|
1624
|
+
l.__next_img_default = !0;
|
|
1625
|
+
const S = l;
|
|
1626
|
+
}(ke)), ke;
|
|
1627
|
+
}
|
|
1628
|
+
var ve = { exports: {} }, ut;
|
|
1629
|
+
function kt() {
|
|
1630
|
+
return ut || (ut = 1, function(m, f) {
|
|
1631
|
+
Object.defineProperty(f, "__esModule", {
|
|
1632
|
+
value: !0
|
|
1633
|
+
}), Object.defineProperty(f, "useMergedRef", {
|
|
1634
|
+
enumerable: !0,
|
|
1635
|
+
get: function() {
|
|
1636
|
+
return S;
|
|
1637
|
+
}
|
|
1638
|
+
});
|
|
1639
|
+
const l = _e;
|
|
1640
|
+
function S(r, u) {
|
|
1641
|
+
const a = (0, l.useRef)(null), s = (0, l.useRef)(null);
|
|
1642
|
+
return (0, l.useCallback)((w) => {
|
|
1643
|
+
if (w === null) {
|
|
1644
|
+
const x = a.current;
|
|
1645
|
+
x && (a.current = null, x());
|
|
1646
|
+
const p = s.current;
|
|
1647
|
+
p && (s.current = null, p());
|
|
1648
|
+
} else
|
|
1649
|
+
r && (a.current = E(r, w)), u && (s.current = E(u, w));
|
|
1650
|
+
}, [
|
|
1651
|
+
r,
|
|
1652
|
+
u
|
|
1653
|
+
]);
|
|
1654
|
+
}
|
|
1655
|
+
function E(r, u) {
|
|
1656
|
+
if (typeof r == "function") {
|
|
1657
|
+
const a = r(u);
|
|
1658
|
+
return typeof a == "function" ? a : () => r(null);
|
|
1659
|
+
} else
|
|
1660
|
+
return r.current = u, () => {
|
|
1661
|
+
r.current = null;
|
|
1662
|
+
};
|
|
1663
|
+
}
|
|
1664
|
+
(typeof f.default == "function" || typeof f.default == "object" && f.default !== null) && typeof f.default.__esModule > "u" && (Object.defineProperty(f.default, "__esModule", { value: !0 }), Object.assign(f.default, f), m.exports = f.default);
|
|
1665
|
+
}(ve, ve.exports)), ve.exports;
|
|
1666
|
+
}
|
|
1667
|
+
var ct;
|
|
1668
|
+
function Dt() {
|
|
1669
|
+
return ct || (ct = 1, function(m, f) {
|
|
1670
|
+
"use client";
|
|
1671
|
+
Object.defineProperty(f, "__esModule", {
|
|
1672
|
+
value: !0
|
|
1673
|
+
}), Object.defineProperty(f, "Image", {
|
|
1674
|
+
enumerable: !0,
|
|
1675
|
+
get: function() {
|
|
1676
|
+
return O;
|
|
1677
|
+
}
|
|
1678
|
+
});
|
|
1679
|
+
const l = /* @__PURE__ */ Re(), S = /* @__PURE__ */ gt(), E = pt, r = /* @__PURE__ */ S._(_e), u = /* @__PURE__ */ l._(xt), a = /* @__PURE__ */ l._(Lt()), s = ht(), w = ze(), x = Nt(), p = Be(), _ = $t(), c = /* @__PURE__ */ l._(_t()), b = kt(), y = process.env.__NEXT_IMAGE_OPTS;
|
|
1680
|
+
typeof window > "u" && (globalThis.__NEXT_IMAGE_IMPORTED = !0);
|
|
1681
|
+
function $(d, C, R, P, X, T, M) {
|
|
1682
|
+
const L = d == null ? void 0 : d.src;
|
|
1683
|
+
if (!d || d["data-loaded-src"] === L)
|
|
1684
|
+
return;
|
|
1685
|
+
d["data-loaded-src"] = L, ("decode" in d ? d.decode() : Promise.resolve()).catch(() => {
|
|
1686
|
+
}).then(() => {
|
|
1687
|
+
if (!(!d.parentElement || !d.isConnected)) {
|
|
1688
|
+
if (C !== "empty" && X(!0), R != null && R.current) {
|
|
1689
|
+
const j = new Event("load");
|
|
1690
|
+
Object.defineProperty(j, "target", {
|
|
1691
|
+
writable: !1,
|
|
1692
|
+
value: d
|
|
1693
|
+
});
|
|
1694
|
+
let U = !1, H = !1;
|
|
1695
|
+
R.current({
|
|
1696
|
+
...j,
|
|
1697
|
+
nativeEvent: j,
|
|
1698
|
+
currentTarget: d,
|
|
1699
|
+
target: d,
|
|
1700
|
+
isDefaultPrevented: () => U,
|
|
1701
|
+
isPropagationStopped: () => H,
|
|
1702
|
+
persist: () => {
|
|
1703
|
+
},
|
|
1704
|
+
preventDefault: () => {
|
|
1705
|
+
U = !0, j.preventDefault();
|
|
1706
|
+
},
|
|
1707
|
+
stopPropagation: () => {
|
|
1708
|
+
H = !0, j.stopPropagation();
|
|
1709
|
+
}
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
if (P != null && P.current && P.current(d), process.env.NODE_ENV !== "production") {
|
|
1713
|
+
const j = new URL(L, "http://n").searchParams.get("url") || L;
|
|
1714
|
+
if (d.getAttribute("data-nimg") === "fill") {
|
|
1715
|
+
if (!T && (!M || M === "100vw") && d.getBoundingClientRect().width / window.innerWidth < 0.6 && (M === "100vw" ? (0, p.warnOnce)('Image with src "' + j + '" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes') : (0, p.warnOnce)('Image with src "' + j + '" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes')), d.parentElement) {
|
|
1716
|
+
const { position: se } = window.getComputedStyle(d.parentElement), V = [
|
|
1717
|
+
"absolute",
|
|
1718
|
+
"fixed",
|
|
1719
|
+
"relative"
|
|
1720
|
+
];
|
|
1721
|
+
V.includes(se) || (0, p.warnOnce)('Image with src "' + j + '" has "fill" and parent element with invalid "position". Provided "' + se + '" should be one of ' + V.map(String).join(",") + ".");
|
|
1722
|
+
}
|
|
1723
|
+
d.height === 0 && (0, p.warnOnce)('Image with src "' + j + '" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.');
|
|
1724
|
+
}
|
|
1725
|
+
const U = d.height.toString() !== d.getAttribute("height"), H = d.width.toString() !== d.getAttribute("width");
|
|
1726
|
+
(U && !H || !U && H) && (0, p.warnOnce)('Image with src "' + j + `" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`);
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
});
|
|
1730
|
+
}
|
|
1731
|
+
function i(d) {
|
|
1732
|
+
return r.use ? {
|
|
1733
|
+
fetchPriority: d
|
|
1734
|
+
} : {
|
|
1735
|
+
fetchpriority: d
|
|
1736
|
+
};
|
|
1737
|
+
}
|
|
1738
|
+
const D = /* @__PURE__ */ (0, r.forwardRef)((d, C) => {
|
|
1739
|
+
let { src: R, srcSet: P, sizes: X, height: T, width: M, decoding: L, className: te, style: j, fetchPriority: U, placeholder: H, loading: se, unoptimized: V, fill: k, onLoadRef: F, onLoadingCompleteRef: oe, setBlurComplete: re, setShowAltText: ie, sizesInput: z, onLoad: de, onError: K, ...n } = d;
|
|
1740
|
+
const ee = (0, r.useCallback)((Y) => {
|
|
1741
|
+
Y && (K && (Y.src = Y.src), process.env.NODE_ENV !== "production" && (R || console.error('Image is missing required "src" property:', Y), Y.getAttribute("alt") === null && console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')), Y.complete && $(Y, H, F, oe, re, V, z));
|
|
1742
|
+
}, [
|
|
1743
|
+
R,
|
|
1744
|
+
H,
|
|
1745
|
+
F,
|
|
1746
|
+
oe,
|
|
1747
|
+
re,
|
|
1748
|
+
K,
|
|
1749
|
+
V,
|
|
1750
|
+
z
|
|
1751
|
+
]), Q = (0, b.useMergedRef)(C, ee);
|
|
1752
|
+
return /* @__PURE__ */ (0, E.jsx)("img", {
|
|
1753
|
+
...n,
|
|
1754
|
+
...i(U),
|
|
1755
|
+
// It's intended to keep `loading` before `src` because React updates
|
|
1756
|
+
// props in order which causes Safari/Firefox to not lazy load properly.
|
|
1757
|
+
// See https://github.com/facebook/react/issues/25883
|
|
1758
|
+
loading: se,
|
|
1759
|
+
width: M,
|
|
1760
|
+
height: T,
|
|
1761
|
+
decoding: L,
|
|
1762
|
+
"data-nimg": k ? "fill" : "1",
|
|
1763
|
+
className: te,
|
|
1764
|
+
style: j,
|
|
1765
|
+
// It's intended to keep `src` the last attribute because React updates
|
|
1766
|
+
// attributes in order. If we keep `src` the first one, Safari will
|
|
1767
|
+
// immediately start to fetch `src`, before `sizes` and `srcSet` are even
|
|
1768
|
+
// updated by React. That causes multiple unnecessary requests if `srcSet`
|
|
1769
|
+
// and `sizes` are defined.
|
|
1770
|
+
// This bug cannot be reproduced in Chrome or Firefox.
|
|
1771
|
+
sizes: X,
|
|
1772
|
+
srcSet: P,
|
|
1773
|
+
src: R,
|
|
1774
|
+
ref: Q,
|
|
1775
|
+
onLoad: (Y) => {
|
|
1776
|
+
const t = Y.currentTarget;
|
|
1777
|
+
$(t, H, F, oe, re, V, z);
|
|
1778
|
+
},
|
|
1779
|
+
onError: (Y) => {
|
|
1780
|
+
ie(!0), H !== "empty" && re(!0), K && K(Y);
|
|
1781
|
+
}
|
|
1782
|
+
});
|
|
1783
|
+
});
|
|
1784
|
+
function e(d) {
|
|
1785
|
+
let { isAppRouter: C, imgAttributes: R } = d;
|
|
1786
|
+
const P = {
|
|
1787
|
+
as: "image",
|
|
1788
|
+
imageSrcSet: R.srcSet,
|
|
1789
|
+
imageSizes: R.sizes,
|
|
1790
|
+
crossOrigin: R.crossOrigin,
|
|
1791
|
+
referrerPolicy: R.referrerPolicy,
|
|
1792
|
+
...i(R.fetchPriority)
|
|
1793
|
+
};
|
|
1794
|
+
return C && u.default.preload ? (u.default.preload(R.src, P), null) : /* @__PURE__ */ (0, E.jsx)(a.default, {
|
|
1795
|
+
children: /* @__PURE__ */ (0, E.jsx)("link", {
|
|
1796
|
+
rel: "preload",
|
|
1797
|
+
// Note how we omit the `href` attribute, as it would only be relevant
|
|
1798
|
+
// for browsers that do not support `imagesrcset`, and in those cases
|
|
1799
|
+
// it would cause the incorrect image to be preloaded.
|
|
1800
|
+
//
|
|
1801
|
+
// https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
|
|
1802
|
+
href: R.srcSet ? void 0 : R.src,
|
|
1803
|
+
...P
|
|
1804
|
+
}, "__nimg-" + R.src + R.srcSet + R.sizes)
|
|
1805
|
+
});
|
|
1806
|
+
}
|
|
1807
|
+
const O = /* @__PURE__ */ (0, r.forwardRef)((d, C) => {
|
|
1808
|
+
const P = !(0, r.useContext)(_.RouterContext), X = (0, r.useContext)(x.ImageConfigContext), T = (0, r.useMemo)(() => {
|
|
1809
|
+
var oe;
|
|
1810
|
+
const re = y || X || w.imageConfigDefault, ie = [
|
|
1811
|
+
...re.deviceSizes,
|
|
1812
|
+
...re.imageSizes
|
|
1813
|
+
].sort((K, n) => K - n), z = re.deviceSizes.sort((K, n) => K - n), de = (oe = re.qualities) == null ? void 0 : oe.sort((K, n) => K - n);
|
|
1814
|
+
return {
|
|
1815
|
+
...re,
|
|
1816
|
+
allSizes: ie,
|
|
1817
|
+
deviceSizes: z,
|
|
1818
|
+
qualities: de
|
|
1819
|
+
};
|
|
1820
|
+
}, [
|
|
1821
|
+
X
|
|
1822
|
+
]), { onLoad: M, onLoadingComplete: L } = d, te = (0, r.useRef)(M);
|
|
1823
|
+
(0, r.useEffect)(() => {
|
|
1824
|
+
te.current = M;
|
|
1825
|
+
}, [
|
|
1826
|
+
M
|
|
1827
|
+
]);
|
|
1828
|
+
const j = (0, r.useRef)(L);
|
|
1829
|
+
(0, r.useEffect)(() => {
|
|
1830
|
+
j.current = L;
|
|
1831
|
+
}, [
|
|
1832
|
+
L
|
|
1833
|
+
]);
|
|
1834
|
+
const [U, H] = (0, r.useState)(!1), [se, V] = (0, r.useState)(!1), { props: k, meta: F } = (0, s.getImgProps)(d, {
|
|
1835
|
+
defaultLoader: c.default,
|
|
1836
|
+
imgConf: T,
|
|
1837
|
+
blurComplete: U,
|
|
1838
|
+
showAltText: se
|
|
1839
|
+
});
|
|
1840
|
+
return /* @__PURE__ */ (0, E.jsxs)(E.Fragment, {
|
|
1841
|
+
children: [
|
|
1842
|
+
/* @__PURE__ */ (0, E.jsx)(D, {
|
|
1843
|
+
...k,
|
|
1844
|
+
unoptimized: F.unoptimized,
|
|
1845
|
+
placeholder: F.placeholder,
|
|
1846
|
+
fill: F.fill,
|
|
1847
|
+
onLoadRef: te,
|
|
1848
|
+
onLoadingCompleteRef: j,
|
|
1849
|
+
setBlurComplete: H,
|
|
1850
|
+
setShowAltText: V,
|
|
1851
|
+
sizesInput: d.sizes,
|
|
1852
|
+
ref: C
|
|
1853
|
+
}),
|
|
1854
|
+
F.priority ? /* @__PURE__ */ (0, E.jsx)(e, {
|
|
1855
|
+
isAppRouter: P,
|
|
1856
|
+
imgAttributes: k
|
|
1857
|
+
}) : null
|
|
1858
|
+
]
|
|
1859
|
+
});
|
|
1860
|
+
});
|
|
1861
|
+
(typeof f.default == "function" || typeof f.default == "object" && f.default !== null) && typeof f.default.__esModule > "u" && (Object.defineProperty(f.default, "__esModule", { value: !0 }), Object.assign(f.default, f), m.exports = f.default);
|
|
1862
|
+
}(be, be.exports)), be.exports;
|
|
1863
|
+
}
|
|
1864
|
+
var lt;
|
|
1865
|
+
function jt() {
|
|
1866
|
+
return lt || (lt = 1, function(m) {
|
|
1867
|
+
Object.defineProperty(m, "__esModule", {
|
|
1868
|
+
value: !0
|
|
1869
|
+
});
|
|
1870
|
+
function f(s, w) {
|
|
1871
|
+
for (var x in w) Object.defineProperty(s, x, {
|
|
1872
|
+
enumerable: !0,
|
|
1873
|
+
get: w[x]
|
|
1874
|
+
});
|
|
1875
|
+
}
|
|
1876
|
+
f(m, {
|
|
1877
|
+
default: function() {
|
|
1878
|
+
return a;
|
|
1879
|
+
},
|
|
1880
|
+
getImageProps: function() {
|
|
1881
|
+
return u;
|
|
1882
|
+
}
|
|
1883
|
+
});
|
|
1884
|
+
const l = /* @__PURE__ */ Re(), S = ht(), E = Dt(), r = /* @__PURE__ */ l._(_t());
|
|
1885
|
+
function u(s) {
|
|
1886
|
+
const { props: w } = (0, S.getImgProps)(s, {
|
|
1887
|
+
defaultLoader: r.default,
|
|
1888
|
+
// This is replaced by webpack define plugin
|
|
1889
|
+
imgConf: process.env.__NEXT_IMAGE_OPTS
|
|
1890
|
+
});
|
|
1891
|
+
for (const [x, p] of Object.entries(w))
|
|
1892
|
+
p === void 0 && delete w[x];
|
|
1893
|
+
return {
|
|
1894
|
+
props: w
|
|
1895
|
+
};
|
|
1896
|
+
}
|
|
1897
|
+
const a = E.Image;
|
|
1898
|
+
}(xe)), xe;
|
|
1899
|
+
}
|
|
1900
|
+
var Ue, ft;
|
|
1901
|
+
function qt() {
|
|
1902
|
+
return ft || (ft = 1, Ue = jt()), Ue;
|
|
1903
|
+
}
|
|
1904
|
+
var Ut = qt();
|
|
1905
|
+
const Bt = /* @__PURE__ */ Ot(Ut), zt = "_container_1yh99_1", Gt = "_divider_1yh99_12", Xt = "_richTextImage_1yh99_26", Ft = "_richTextLink_1yh99_34", we = {
|
|
1906
|
+
container: zt,
|
|
1907
|
+
divider: Gt,
|
|
1908
|
+
richTextImage: Xt,
|
|
1909
|
+
richTextLink: Ft
|
|
1910
|
+
}, Wt = (m) => ({
|
|
1911
|
+
normal: ({ children: l }) => /* @__PURE__ */ Z(dt, { className: m, children: l }),
|
|
1912
|
+
h1: ({ children: l }) => /* @__PURE__ */ Z(ye, { className: m, level: 1, children: l }),
|
|
1913
|
+
h2: ({ children: l }) => /* @__PURE__ */ Z(ye, { className: m, level: 2, children: l }),
|
|
1914
|
+
h3: ({ children: l }) => /* @__PURE__ */ Z(ye, { className: m, level: 3, children: l }),
|
|
1915
|
+
h4: ({ children: l }) => /* @__PURE__ */ Z(ye, { className: m, level: 4, children: l }),
|
|
1916
|
+
h5: ({ children: l }) => /* @__PURE__ */ Z(ye, { className: m, level: 5, children: l }),
|
|
1917
|
+
h6: ({ children: l }) => /* @__PURE__ */ Z(ye, { className: m, level: 6, children: l }),
|
|
1918
|
+
quote: ({ children: l }) => /* @__PURE__ */ Z("blockquote", { className: m, children: l })
|
|
1919
|
+
}), Kt = (m, f, l, S, E) => {
|
|
1920
|
+
const r = Wt(m);
|
|
1921
|
+
return {
|
|
1922
|
+
marks: {
|
|
1923
|
+
coloredText: ({
|
|
1924
|
+
children: s,
|
|
1925
|
+
value: w
|
|
1926
|
+
}) => {
|
|
1927
|
+
if (!w) return /* @__PURE__ */ Z(Rt, { children: s });
|
|
1928
|
+
const { colorClass: x } = w, p = f == null ? void 0 : f.current;
|
|
1929
|
+
return S && l ? /* @__PURE__ */ Z(
|
|
1930
|
+
wt,
|
|
1931
|
+
{
|
|
1932
|
+
className: x,
|
|
1933
|
+
text: l,
|
|
1934
|
+
prevText: p
|
|
1935
|
+
},
|
|
1936
|
+
"animated-span"
|
|
1937
|
+
) : /* @__PURE__ */ Z("span", { className: x, children: s });
|
|
1938
|
+
},
|
|
1939
|
+
strong: ({ children: s }) => /* @__PURE__ */ Z("strong", { children: s }),
|
|
1940
|
+
em: ({ children: s }) => /* @__PURE__ */ Z("em", { children: s }),
|
|
1941
|
+
number: ({ children: s }) => /* @__PURE__ */ Z("span", { className: "inlineNumber", children: s }),
|
|
1942
|
+
left: ({ children: s }) => /* @__PURE__ */ Z("span", { className: "textLeft", children: s }),
|
|
1943
|
+
center: ({ children: s }) => /* @__PURE__ */ Z("span", { className: "textCenter", children: s }),
|
|
1944
|
+
right: ({ children: s }) => /* @__PURE__ */ Z("span", { className: "textRight", children: s }),
|
|
1945
|
+
link: ({ children: s, value: w }) => {
|
|
1946
|
+
var $;
|
|
1947
|
+
const { linkType: x, internalUrl: p, externalUrl: _, blank: c } = w;
|
|
1948
|
+
let b = "#";
|
|
1949
|
+
return x === "external" && _ ? b = _ : x === "internal" && (($ = p == null ? void 0 : p.slug) != null && $.current) && (b = `/${p == null ? void 0 : p.slug.current}`), /* @__PURE__ */ Z(
|
|
1950
|
+
"a",
|
|
1951
|
+
{
|
|
1952
|
+
href: b,
|
|
1953
|
+
target: c ? "_blank" : void 0,
|
|
1954
|
+
rel: x === "external" ? "noopener noreferrer" : void 0,
|
|
1955
|
+
className: we.richTextLink,
|
|
1956
|
+
children: s
|
|
1957
|
+
}
|
|
1958
|
+
);
|
|
1959
|
+
},
|
|
1960
|
+
textSize: ({ children: s, value: w }) => {
|
|
1961
|
+
const x = w != null && w.size ? `text-${w.size}` : "";
|
|
1962
|
+
return /* @__PURE__ */ Z("span", { className: x, children: s });
|
|
1963
|
+
}
|
|
1964
|
+
},
|
|
1965
|
+
block: r,
|
|
1966
|
+
list: {
|
|
1967
|
+
bullet: ({ children: s = [] }) => {
|
|
1968
|
+
const w = _e.Children.count(s);
|
|
1969
|
+
return /* @__PURE__ */ Z(
|
|
1970
|
+
"ul",
|
|
1971
|
+
{
|
|
1972
|
+
style: {
|
|
1973
|
+
columnCount: E ? 1 : w > 5 ? 2 : 1
|
|
1974
|
+
},
|
|
1975
|
+
className: m,
|
|
1976
|
+
children: s
|
|
1977
|
+
}
|
|
1978
|
+
);
|
|
1979
|
+
}
|
|
1980
|
+
},
|
|
1981
|
+
types: {
|
|
1982
|
+
image: ({ value: s }) => {
|
|
1983
|
+
var x, p, _, c, b, y, $;
|
|
1984
|
+
if (!(s != null && s.imageUrl)) return null;
|
|
1985
|
+
const w = ((x = s.asset) == null ? void 0 : x.altText) || "Content image";
|
|
1986
|
+
return /* @__PURE__ */ Ge("figure", { className: `${m} ${we.richTextImage}`, children: [
|
|
1987
|
+
/* @__PURE__ */ Z(
|
|
1988
|
+
Bt,
|
|
1989
|
+
{
|
|
1990
|
+
src: s.imageUrl,
|
|
1991
|
+
alt: w,
|
|
1992
|
+
width: 1e3,
|
|
1993
|
+
height: 800,
|
|
1994
|
+
style: { maxWidth: "100%", height: "auto" }
|
|
1995
|
+
}
|
|
1996
|
+
),
|
|
1997
|
+
(((p = s.asset) == null ? void 0 : p.title) || ((_ = s.asset) == null ? void 0 : _.description)) && /* @__PURE__ */ Ge("figcaption", { children: [
|
|
1998
|
+
((c = s.asset) == null ? void 0 : c.title) && /* @__PURE__ */ Z("strong", { children: (b = s.asset) == null ? void 0 : b.title }),
|
|
1999
|
+
((y = s.asset) == null ? void 0 : y.description) && /* @__PURE__ */ Z("p", { children: ($ = s.asset) == null ? void 0 : $.description })
|
|
2000
|
+
] })
|
|
2001
|
+
] });
|
|
2002
|
+
},
|
|
2003
|
+
divider: () => /* @__PURE__ */ Z("hr", { className: we.divider })
|
|
2004
|
+
}
|
|
2005
|
+
};
|
|
2006
|
+
}, sr = ({
|
|
2007
|
+
blocks: m,
|
|
2008
|
+
className: f,
|
|
2009
|
+
textOverride: l,
|
|
2010
|
+
animateText: S
|
|
2011
|
+
}) => {
|
|
2012
|
+
const E = Ct("(max-width: 767px)"), r = yt(l);
|
|
2013
|
+
bt(() => {
|
|
2014
|
+
r.current = l;
|
|
2015
|
+
}, [l]);
|
|
2016
|
+
const u = Et(
|
|
2017
|
+
() => Kt(
|
|
2018
|
+
f,
|
|
2019
|
+
r,
|
|
2020
|
+
l,
|
|
2021
|
+
S,
|
|
2022
|
+
E
|
|
2023
|
+
),
|
|
2024
|
+
[f, r, l, S, E]
|
|
2025
|
+
);
|
|
2026
|
+
return m ? typeof m == "string" ? (console.warn(
|
|
2027
|
+
"RichText component received a string. Expected PortableTextBlock[]"
|
|
2028
|
+
), /* @__PURE__ */ Z(dt, { className: f, children: m })) : /* @__PURE__ */ Z("div", { className: `${we.container} portableTextContainer`, children: /* @__PURE__ */ Z(vt, { value: m, components: u }) }) : null;
|
|
2029
|
+
};
|
|
2030
|
+
export {
|
|
2031
|
+
Bt as I,
|
|
2032
|
+
sr as R
|
|
2033
|
+
};
|