@jigowatts/jigowatts-ui 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/assets/index10.css +1 -1
  2. package/dist/assets/index11.css +1 -1
  3. package/dist/assets/index12.css +1 -1
  4. package/dist/assets/index13.css +1 -1
  5. package/dist/assets/index14.css +1 -1
  6. package/dist/assets/index15.css +1 -1
  7. package/dist/assets/index16.css +1 -1
  8. package/dist/assets/index17.css +1 -1
  9. package/dist/assets/index18.css +1 -1
  10. package/dist/assets/index19.css +1 -1
  11. package/dist/assets/index20.css +1 -1
  12. package/dist/assets/index21.css +1 -1
  13. package/dist/assets/index22.css +1 -1
  14. package/dist/assets/index23.css +1 -1
  15. package/dist/assets/index24.css +1 -1
  16. package/dist/assets/index25.css +1 -1
  17. package/dist/assets/index26.css +1 -1
  18. package/dist/assets/index27.css +1 -1
  19. package/dist/assets/index28.css +1 -0
  20. package/dist/assets/index6.css +1 -1
  21. package/dist/assets/index7.css +1 -1
  22. package/dist/assets/index8.css +1 -1
  23. package/dist/assets/index9.css +1 -1
  24. package/dist/components/CustomLink/index.js +16 -1661
  25. package/dist/components/DataTable/index.js +2 -2
  26. package/dist/components/DataTable/index.test.js +19 -2976
  27. package/dist/components/DatePickerController/index.js +1 -1
  28. package/dist/components/ErrorMessage/index.js +1 -1
  29. package/dist/components/EvseStateLabel/index.js +1 -1
  30. package/dist/components/FlexButtons/index.js +1 -1
  31. package/dist/components/Form/index.js +1 -1
  32. package/dist/components/FormItem/index.js +1 -1
  33. package/dist/components/FormTitle/index.js +1 -1
  34. package/dist/components/Input/index.js +1 -1
  35. package/dist/components/InputGroup/index.js +1 -1
  36. package/dist/components/Label/index.js +1 -1
  37. package/dist/components/LabeledContent/index.js +4 -4
  38. package/dist/components/LoadingOverlay/index.js +1 -1
  39. package/dist/components/Map/index.js +1 -1
  40. package/dist/components/MaxWidthContainer/index.js +1 -1
  41. package/dist/components/OfflineLabel/index.js +4 -4
  42. package/dist/components/PageSizeSelector/index.js +2 -2
  43. package/dist/components/Pagination/index.js +1 -1
  44. package/dist/components/Pagination/index.test.js +1 -1
  45. package/dist/components/RadioButton/index.js +1 -1
  46. package/dist/components/RadioButton/index.test.js +1 -1
  47. package/dist/components/RangeDatePicker/index.js +1 -1
  48. package/dist/components/RangeDatePickerController/index.js +1 -1
  49. package/dist/components/ReportChart/index.js +1 -1
  50. package/dist/components/SearchForm/index.js +1 -1
  51. package/dist/components/SelectBox/index.js +1 -1
  52. package/dist/components/SelectBox/index.test.js +1 -1
  53. package/dist/components/SideMenu/index.d.ts +19 -0
  54. package/dist/components/SideMenu/index.js +102 -0
  55. package/dist/components/SideMenu/index.test.d.ts +1 -0
  56. package/dist/components/SideMenu/index.test.js +44 -0
  57. package/dist/{index-BOjtnFU5.js → index-0O6z6pEj.js} +2 -2
  58. package/dist/index-BqWHRIKL.js +2963 -0
  59. package/dist/{index-CQDJfJT1.js → index-BzzM70NU.js} +7 -7
  60. package/dist/{index-C_i0-R5C.js → index-Ng1Gk0N9.js} +1 -1
  61. package/dist/index.d.ts +1 -0
  62. package/dist/index.js +78 -73
  63. package/dist/link-DKxv6PwW.js +1646 -0
  64. package/dist/navigation-lUua5mCE.js +2205 -0
  65. package/package.json +7 -1
@@ -1,1670 +1,25 @@
1
- import $t, { jsx as Bt } from "react/jsx-runtime";
2
- import { g as Kt } from "../../_commonjsHelpers-CT_km90n.js";
3
- import ce from "react";
4
- import { c as Ft } from "../../index-DWRHnq8_.js";
5
- import '../../assets/index26.css';var ze = { exports: {} }, F = {};
6
- F._ = F._interop_require_default = Gt;
7
- function Gt(a) {
8
- return a && a.__esModule ? a : { default: a };
9
- }
10
- var Y = { exports: {} }, me = {}, Qe;
11
- function Ct() {
12
- return Qe || (Qe = 1, function(a) {
13
- Object.defineProperty(a, "__esModule", {
14
- value: !0
15
- });
16
- function e(i, r) {
17
- for (var o in r)
18
- Object.defineProperty(i, o, {
19
- enumerable: !0,
20
- get: r[o]
21
- });
22
- }
23
- e(a, {
24
- assign: function() {
25
- return n;
26
- },
27
- searchParamsToUrlQuery: function() {
28
- return u;
29
- },
30
- urlQueryToSearchParams: function() {
31
- return t;
32
- }
33
- });
34
- function u(i) {
35
- const r = {};
36
- return i.forEach((o, c) => {
37
- typeof r[c] > "u" ? r[c] = o : Array.isArray(r[c]) ? r[c].push(o) : r[c] = [
38
- r[c],
39
- o
40
- ];
41
- }), r;
42
- }
43
- function s(i) {
44
- return typeof i == "string" || typeof i == "number" && !isNaN(i) || typeof i == "boolean" ? String(i) : "";
45
- }
46
- function t(i) {
47
- const r = new URLSearchParams();
48
- return Object.entries(i).forEach((o) => {
49
- let [c, d] = o;
50
- Array.isArray(d) ? d.forEach((h) => r.append(c, s(h))) : r.set(c, s(d));
51
- }), r;
52
- }
53
- function n(i) {
54
- for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), c = 1; c < r; c++)
55
- o[c - 1] = arguments[c];
56
- return o.forEach((d) => {
57
- Array.from(d.keys()).forEach((h) => i.delete(h)), d.forEach((h, m) => i.append(m, h));
58
- }), i;
59
- }
60
- }(me)), me;
61
- }
62
- var _e = {}, Z = {}, Ye;
63
- function Vt() {
64
- if (Ye)
65
- return Z;
66
- Ye = 1;
67
- function a(u) {
68
- if (typeof WeakMap != "function")
69
- return null;
70
- var s = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
71
- return (a = function(n) {
72
- return n ? t : s;
73
- })(u);
74
- }
75
- Z._ = Z._interop_require_wildcard = e;
76
- function e(u, s) {
77
- if (!s && u && u.__esModule)
78
- return u;
79
- if (u === null || typeof u != "object" && typeof u != "function")
80
- return { default: u };
81
- var t = a(s);
82
- if (t && t.has(u))
83
- return t.get(u);
84
- var n = { __proto__: null }, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
85
- for (var r in u)
86
- if (r !== "default" && Object.prototype.hasOwnProperty.call(u, r)) {
87
- var o = i ? Object.getOwnPropertyDescriptor(u, r) : null;
88
- o && (o.get || o.set) ? Object.defineProperty(n, r, o) : n[r] = u[r];
89
- }
90
- return n.default = u, t && t.set(u, n), n;
91
- }
92
- return Z;
93
- }
94
- var Ze;
95
- function It() {
96
- return Ze || (Ze = 1, function(a) {
97
- Object.defineProperty(a, "__esModule", {
98
- value: !0
99
- });
100
- function e(o, c) {
101
- for (var d in c)
102
- Object.defineProperty(o, d, {
103
- enumerable: !0,
104
- get: c[d]
105
- });
106
- }
107
- e(a, {
108
- formatUrl: function() {
109
- return n;
110
- },
111
- formatWithValidation: function() {
112
- return r;
113
- },
114
- urlObjectKeys: function() {
115
- return i;
116
- }
117
- });
118
- const s = /* @__PURE__ */ Vt()._(Ct()), t = /https?|ftp|gopher|file/;
119
- function n(o) {
120
- let { auth: c, hostname: d } = o, h = o.protocol || "", m = o.pathname || "", p = o.hash || "", b = o.query || "", l = !1;
121
- c = c ? encodeURIComponent(c).replace(/%3A/i, ":") + "@" : "", o.host ? l = c + o.host : d && (l = c + (~d.indexOf(":") ? "[" + d + "]" : d), o.port && (l += ":" + o.port)), b && typeof b == "object" && (b = String(s.urlQueryToSearchParams(b)));
122
- let _ = o.search || b && "?" + b || "";
123
- return h && !h.endsWith(":") && (h += ":"), o.slashes || (!h || t.test(h)) && l !== !1 ? (l = "//" + (l || ""), m && m[0] !== "/" && (m = "/" + m)) : l || (l = ""), p && p[0] !== "#" && (p = "#" + p), _ && _[0] !== "?" && (_ = "?" + _), m = m.replace(/[?#]/g, encodeURIComponent), _ = _.replace("#", "%23"), "" + h + l + m + _ + p;
124
- }
125
- const i = [
126
- "auth",
127
- "hash",
128
- "host",
129
- "hostname",
130
- "href",
131
- "path",
132
- "pathname",
133
- "port",
134
- "protocol",
135
- "query",
136
- "search",
137
- "slashes"
138
- ];
139
- function r(o) {
140
- return process.env.NODE_ENV === "development" && o !== null && typeof o == "object" && Object.keys(o).forEach((c) => {
141
- i.includes(c) || console.warn("Unknown key passed via urlObject into url.format: " + c);
142
- }), n(o);
143
- }
144
- }(_e)), _e;
145
- }
146
- var ge = {}, Je;
147
- function Xt() {
148
- return Je || (Je = 1, function(a) {
149
- Object.defineProperty(a, "__esModule", {
150
- value: !0
151
- }), Object.defineProperty(a, "omit", {
152
- enumerable: !0,
153
- get: function() {
154
- return e;
155
- }
156
- });
157
- function e(u, s) {
158
- const t = {};
159
- return Object.keys(u).forEach((n) => {
160
- s.includes(n) || (t[n] = u[n]);
161
- }), t;
162
- }
163
- }(ge)), ge;
164
- }
165
- var ye = {}, et;
166
- function le() {
167
- return et || (et = 1, function(a) {
168
- Object.defineProperty(a, "__esModule", {
169
- value: !0
170
- });
171
- function e(f, v) {
172
- for (var E in v)
173
- Object.defineProperty(f, E, {
174
- enumerable: !0,
175
- get: v[E]
176
- });
177
- }
178
- e(a, {
179
- DecodeError: function() {
180
- return b;
181
- },
182
- MiddlewareNotFoundError: function() {
183
- return T;
184
- },
185
- MissingStaticPage: function() {
186
- return y;
187
- },
188
- NormalizeError: function() {
189
- return l;
190
- },
191
- PageNotFoundError: function() {
192
- return _;
193
- },
194
- SP: function() {
195
- return m;
196
- },
197
- ST: function() {
198
- return p;
199
- },
200
- WEB_VITALS: function() {
201
- return u;
202
- },
203
- execOnce: function() {
204
- return s;
205
- },
206
- getDisplayName: function() {
207
- return o;
208
- },
209
- getLocationOrigin: function() {
210
- return i;
211
- },
212
- getURL: function() {
213
- return r;
214
- },
215
- isAbsoluteUrl: function() {
216
- return n;
217
- },
218
- isResSent: function() {
219
- return c;
220
- },
221
- loadGetInitialProps: function() {
222
- return h;
223
- },
224
- normalizeRepeatedSlashes: function() {
225
- return d;
226
- },
227
- stringifyError: function() {
228
- return R;
229
- }
230
- });
231
- const u = [
232
- "CLS",
233
- "FCP",
234
- "FID",
235
- "INP",
236
- "LCP",
237
- "TTFB"
238
- ];
239
- function s(f) {
240
- let v = !1, E;
241
- return function() {
242
- for (var P = arguments.length, g = new Array(P), N = 0; N < P; N++)
243
- g[N] = arguments[N];
244
- return v || (v = !0, E = f(...g)), E;
245
- };
246
- }
247
- const t = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, n = (f) => t.test(f);
248
- function i() {
249
- const { protocol: f, hostname: v, port: E } = window.location;
250
- return f + "//" + v + (E ? ":" + E : "");
251
- }
252
- function r() {
253
- const { href: f } = window.location, v = i();
254
- return f.substring(v.length);
255
- }
256
- function o(f) {
257
- return typeof f == "string" ? f : f.displayName || f.name || "Unknown";
258
- }
259
- function c(f) {
260
- return f.finished || f.headersSent;
261
- }
262
- function d(f) {
263
- const v = f.split("?");
264
- return v[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (v[1] ? "?" + v.slice(1).join("?") : "");
265
- }
266
- async function h(f, v) {
267
- if (process.env.NODE_ENV !== "production") {
268
- var E;
269
- if ((E = f.prototype) != null && E.getInitialProps) {
270
- const N = '"' + o(f) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
271
- throw new Error(N);
272
- }
273
- }
274
- const P = v.res || v.ctx && v.ctx.res;
275
- if (!f.getInitialProps)
276
- return v.ctx && v.Component ? {
277
- pageProps: await h(v.Component, v.ctx)
278
- } : {};
279
- const g = await f.getInitialProps(v);
280
- if (P && c(P))
281
- return g;
282
- if (!g) {
283
- const N = '"' + o(f) + '.getInitialProps()" should resolve to an object. But found "' + g + '" instead.';
284
- throw new Error(N);
285
- }
286
- return process.env.NODE_ENV !== "production" && Object.keys(g).length === 0 && !v.ctx && console.warn("" + o(f) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"), g;
287
- }
288
- const m = typeof performance < "u", p = m && [
289
- "mark",
290
- "measure",
291
- "getEntriesByName"
292
- ].every((f) => typeof performance[f] == "function");
293
- class b extends Error {
294
- }
295
- class l extends Error {
296
- }
297
- class _ extends Error {
298
- constructor(v) {
299
- super(), this.code = "ENOENT", this.name = "PageNotFoundError", this.message = "Cannot find module for page: " + v;
300
- }
301
- }
302
- class y extends Error {
303
- constructor(v, E) {
304
- super(), this.message = "Failed to load static file for page: " + v + " " + E;
305
- }
306
- }
307
- class T extends Error {
308
- constructor() {
309
- super(), this.code = "ENOENT", this.message = "Cannot find the middleware module";
310
- }
311
- }
312
- function R(f) {
313
- return JSON.stringify({
314
- message: f.message,
315
- stack: f.stack
316
- });
317
- }
318
- }(ye)), ye;
319
- }
320
- var J = { exports: {} }, ve = {}, tt;
321
- function At() {
322
- return tt || (tt = 1, function(a) {
323
- Object.defineProperty(a, "__esModule", {
324
- value: !0
325
- }), Object.defineProperty(a, "removeTrailingSlash", {
326
- enumerable: !0,
327
- get: function() {
328
- return e;
329
- }
330
- });
331
- function e(u) {
332
- return u.replace(/\/$/, "") || "/";
333
- }
334
- }(ve)), ve;
335
- }
336
- var Pe = {}, rt;
337
- function He() {
338
- return rt || (rt = 1, function(a) {
339
- Object.defineProperty(a, "__esModule", {
340
- value: !0
341
- }), Object.defineProperty(a, "parsePath", {
342
- enumerable: !0,
343
- get: function() {
344
- return e;
345
- }
346
- });
347
- function e(u) {
348
- const s = u.indexOf("#"), t = u.indexOf("?"), n = t > -1 && (s < 0 || t < s);
349
- return n || s > -1 ? {
350
- pathname: u.substring(0, n ? t : s),
351
- query: n ? u.substring(t, s > -1 ? s : void 0) : "",
352
- hash: s > -1 ? u.slice(s) : ""
353
- } : {
354
- pathname: u,
355
- query: "",
356
- hash: ""
357
- };
358
- }
359
- }(Pe)), Pe;
360
- }
361
- var nt;
362
- function fe() {
363
- return nt || (nt = 1, function(a, e) {
364
- Object.defineProperty(e, "__esModule", {
365
- value: !0
366
- }), Object.defineProperty(e, "normalizePathTrailingSlash", {
367
- enumerable: !0,
368
- get: function() {
369
- return t;
370
- }
371
- });
372
- const u = At(), s = He(), t = (n) => {
373
- if (!n.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH)
374
- return n;
375
- const { pathname: i, query: r, hash: o } = (0, s.parsePath)(n);
376
- return process.env.__NEXT_TRAILING_SLASH ? /\.[^/]+\/?$/.test(i) ? "" + (0, u.removeTrailingSlash)(i) + r + o : i.endsWith("/") ? "" + i + r + o : i + "/" + r + o : "" + (0, u.removeTrailingSlash)(i) + r + o;
377
- };
378
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
379
- }(J, J.exports)), J.exports;
380
- }
381
- var Re = {}, ee = { exports: {} }, be = {}, ot;
382
- function Ut() {
383
- return ot || (ot = 1, function(a) {
384
- Object.defineProperty(a, "__esModule", {
385
- value: !0
386
- }), Object.defineProperty(a, "pathHasPrefix", {
387
- enumerable: !0,
388
- get: function() {
389
- return u;
390
- }
391
- });
392
- const e = He();
393
- function u(s, t) {
394
- if (typeof s != "string")
395
- return !1;
396
- const { pathname: n } = (0, e.parsePath)(s);
397
- return n === t || n.startsWith(t + "/");
398
- }
399
- }(be)), be;
400
- }
401
- var it;
402
- function Qt() {
403
- return it || (it = 1, function(a, e) {
404
- Object.defineProperty(e, "__esModule", {
405
- value: !0
406
- }), Object.defineProperty(e, "hasBasePath", {
407
- enumerable: !0,
408
- get: function() {
409
- return t;
410
- }
411
- });
412
- const u = Ut(), s = process.env.__NEXT_ROUTER_BASEPATH || "";
413
- function t(n) {
414
- return (0, u.pathHasPrefix)(n, s);
415
- }
416
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
417
- }(ee, ee.exports)), ee.exports;
418
- }
419
- var at;
420
- function xt() {
421
- return at || (at = 1, function(a) {
422
- Object.defineProperty(a, "__esModule", {
423
- value: !0
424
- }), Object.defineProperty(a, "isLocalURL", {
425
- enumerable: !0,
426
- get: function() {
427
- return s;
428
- }
429
- });
430
- const e = le(), u = Qt();
431
- function s(t) {
432
- if (!(0, e.isAbsoluteUrl)(t))
433
- return !0;
434
- try {
435
- const n = (0, e.getLocationOrigin)(), i = new URL(t, n);
436
- return i.origin === n && (0, u.hasBasePath)(i.pathname);
437
- } catch {
438
- return !1;
439
- }
440
- }
441
- }(Re)), Re;
442
- }
443
- var Ee = {}, Oe = {}, ut;
444
- function Yt() {
445
- return ut || (ut = 1, function(a) {
446
- Object.defineProperty(a, "__esModule", {
447
- value: !0
448
- }), Object.defineProperty(a, "getSortedRoutes", {
449
- enumerable: !0,
450
- get: function() {
451
- return u;
452
- }
453
- });
454
- class e {
455
- insert(t) {
456
- this._insert(t.split("/").filter(Boolean), [], !1);
457
- }
458
- smoosh() {
459
- return this._smoosh();
460
- }
461
- _smoosh(t) {
462
- t === void 0 && (t = "/");
463
- const n = [
464
- ...this.children.keys()
465
- ].sort();
466
- this.slugName !== null && n.splice(n.indexOf("[]"), 1), this.restSlugName !== null && n.splice(n.indexOf("[...]"), 1), this.optionalRestSlugName !== null && n.splice(n.indexOf("[[...]]"), 1);
467
- const i = n.map((r) => this.children.get(r)._smoosh("" + t + r + "/")).reduce((r, o) => [
468
- ...r,
469
- ...o
470
- ], []);
471
- if (this.slugName !== null && i.push(...this.children.get("[]")._smoosh(t + "[" + this.slugName + "]/")), !this.placeholder) {
472
- const r = t === "/" ? "/" : t.slice(0, -1);
473
- if (this.optionalRestSlugName != null)
474
- throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + r + '" and "' + r + "[[..." + this.optionalRestSlugName + ']]").');
475
- i.unshift(r);
476
- }
477
- return this.restSlugName !== null && i.push(...this.children.get("[...]")._smoosh(t + "[..." + this.restSlugName + "]/")), this.optionalRestSlugName !== null && i.push(...this.children.get("[[...]]")._smoosh(t + "[[..." + this.optionalRestSlugName + "]]/")), i;
478
- }
479
- _insert(t, n, i) {
480
- if (t.length === 0) {
481
- this.placeholder = !1;
482
- return;
483
- }
484
- if (i)
485
- throw new Error("Catch-all must be the last part of the URL.");
486
- let r = t[0];
487
- if (r.startsWith("[") && r.endsWith("]")) {
488
- let d = function(h, m) {
489
- if (h !== null && h !== m)
490
- throw new Error("You cannot use different slug names for the same dynamic path ('" + h + "' !== '" + m + "').");
491
- n.forEach((p) => {
492
- if (p === m)
493
- throw new Error('You cannot have the same slug name "' + m + '" repeat within a single dynamic path');
494
- if (p.replace(/\W/g, "") === r.replace(/\W/g, ""))
495
- throw new Error('You cannot have the slug names "' + p + '" and "' + m + '" differ only by non-word symbols within a single dynamic path');
496
- }), n.push(m);
497
- }, o = r.slice(1, -1), c = !1;
498
- if (o.startsWith("[") && o.endsWith("]") && (o = o.slice(1, -1), c = !0), o.startsWith("...") && (o = o.substring(3), i = !0), o.startsWith("[") || o.endsWith("]"))
499
- throw new Error("Segment names may not start or end with extra brackets ('" + o + "').");
500
- if (o.startsWith("."))
501
- throw new Error("Segment names may not start with erroneous periods ('" + o + "').");
502
- if (i)
503
- if (c) {
504
- if (this.restSlugName != null)
505
- throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + t[0] + '" ).');
506
- d(this.optionalRestSlugName, o), this.optionalRestSlugName = o, r = "[[...]]";
507
- } else {
508
- if (this.optionalRestSlugName != null)
509
- throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + t[0] + '").');
510
- d(this.restSlugName, o), this.restSlugName = o, r = "[...]";
511
- }
512
- else {
513
- if (c)
514
- throw new Error('Optional route parameters are not yet supported ("' + t[0] + '").');
515
- d(this.slugName, o), this.slugName = o, r = "[]";
516
- }
517
- }
518
- this.children.has(r) || this.children.set(r, new e()), this.children.get(r)._insert(t.slice(1), n, i);
519
- }
520
- constructor() {
521
- this.placeholder = !0, this.children = /* @__PURE__ */ new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null;
522
- }
523
- }
524
- function u(s) {
525
- const t = new e();
526
- return s.forEach((n) => t.insert(n)), t.smoosh();
527
- }
528
- }(Oe)), Oe;
529
- }
530
- var we = {}, Ne = {}, Te = {}, Se = {}, st;
531
- function Zt() {
532
- return st || (st = 1, function(a) {
533
- Object.defineProperty(a, "__esModule", {
534
- value: !0
535
- }), Object.defineProperty(a, "ensureLeadingSlash", {
536
- enumerable: !0,
537
- get: function() {
538
- return e;
539
- }
540
- });
541
- function e(u) {
542
- return u.startsWith("/") ? u : "/" + u;
543
- }
544
- }(Se)), Se;
545
- }
546
- var Le = {}, ct;
547
- function Jt() {
548
- return ct || (ct = 1, function(a) {
549
- Object.defineProperty(a, "__esModule", {
550
- value: !0
551
- });
552
- function e(n, i) {
553
- for (var r in i)
554
- Object.defineProperty(n, r, {
555
- enumerable: !0,
556
- get: i[r]
557
- });
558
- }
559
- e(a, {
560
- DEFAULT_SEGMENT_KEY: function() {
561
- return t;
562
- },
563
- PAGE_SEGMENT_KEY: function() {
564
- return s;
565
- },
566
- isGroupSegment: function() {
567
- return u;
568
- }
569
- });
570
- function u(n) {
571
- return n[0] === "(" && n.endsWith(")");
572
- }
573
- const s = "__PAGE__", t = "__DEFAULT__";
574
- }(Le)), Le;
575
- }
576
- var lt;
577
- function er() {
578
- return lt || (lt = 1, function(a) {
579
- Object.defineProperty(a, "__esModule", {
580
- value: !0
581
- });
582
- function e(i, r) {
583
- for (var o in r)
584
- Object.defineProperty(i, o, {
585
- enumerable: !0,
586
- get: r[o]
587
- });
588
- }
589
- e(a, {
590
- normalizeAppPath: function() {
591
- return t;
592
- },
593
- normalizeRscURL: function() {
594
- return n;
595
- }
596
- });
597
- const u = Zt(), s = Jt();
598
- function t(i) {
599
- return (0, u.ensureLeadingSlash)(i.split("/").reduce((r, o, c, d) => !o || (0, s.isGroupSegment)(o) || o[0] === "@" || (o === "page" || o === "route") && c === d.length - 1 ? r : r + "/" + o, ""));
600
- }
601
- function n(i) {
602
- return i.replace(
603
- /\.rsc($|\?)/,
604
- // $1 ensures `?` is preserved
605
- "$1"
606
- );
607
- }
608
- }(Te)), Te;
609
- }
610
- var ft;
611
- function Dt() {
612
- return ft || (ft = 1, function(a) {
613
- Object.defineProperty(a, "__esModule", {
614
- value: !0
615
- });
616
- function e(i, r) {
617
- for (var o in r)
618
- Object.defineProperty(i, o, {
619
- enumerable: !0,
620
- get: r[o]
621
- });
622
- }
623
- e(a, {
624
- INTERCEPTION_ROUTE_MARKERS: function() {
625
- return s;
626
- },
627
- extractInterceptionRouteInformation: function() {
628
- return n;
629
- },
630
- isInterceptionRouteAppPath: function() {
631
- return t;
632
- }
633
- });
634
- const u = er(), s = [
635
- "(..)(..)",
636
- "(.)",
637
- "(..)",
638
- "(...)"
639
- ];
640
- function t(i) {
641
- return i.split("/").find((r) => s.find((o) => r.startsWith(o))) !== void 0;
642
- }
643
- function n(i) {
644
- let r, o, c;
645
- for (const d of i.split("/"))
646
- if (o = s.find((h) => d.startsWith(h)), o) {
647
- [r, c] = i.split(o, 2);
648
- break;
649
- }
650
- if (!r || !o || !c)
651
- throw new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);
652
- switch (r = (0, u.normalizeAppPath)(r), o) {
653
- case "(.)":
654
- r === "/" ? c = `/${c}` : c = r + "/" + c;
655
- break;
656
- case "(..)":
657
- if (r === "/")
658
- throw new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`);
659
- c = r.split("/").slice(0, -1).concat(c).join("/");
660
- break;
661
- case "(...)":
662
- c = "/" + c;
663
- break;
664
- case "(..)(..)":
665
- const d = r.split("/");
666
- if (d.length <= 2)
667
- throw new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`);
668
- c = d.slice(0, -2).concat(c).join("/");
669
- break;
670
- default:
671
- throw new Error("Invariant: unexpected marker");
672
- }
673
- return {
674
- interceptingRoute: r,
675
- interceptedRoute: c
676
- };
677
- }
678
- }(Ne)), Ne;
679
- }
680
- var dt;
681
- function tr() {
682
- return dt || (dt = 1, function(a) {
683
- Object.defineProperty(a, "__esModule", {
684
- value: !0
685
- }), Object.defineProperty(a, "isDynamicRoute", {
686
- enumerable: !0,
687
- get: function() {
688
- return s;
689
- }
690
- });
691
- const e = Dt(), u = /\/\[[^/]+?\](?=\/|$)/;
692
- function s(t) {
693
- return (0, e.isInterceptionRouteAppPath)(t) && (t = (0, e.extractInterceptionRouteInformation)(t).interceptedRoute), u.test(t);
694
- }
695
- }(we)), we;
696
- }
697
- var ht;
698
- function rr() {
699
- return ht || (ht = 1, function(a) {
700
- Object.defineProperty(a, "__esModule", {
701
- value: !0
702
- });
703
- function e(t, n) {
704
- for (var i in n)
705
- Object.defineProperty(t, i, {
706
- enumerable: !0,
707
- get: n[i]
708
- });
709
- }
710
- e(a, {
711
- getSortedRoutes: function() {
712
- return u.getSortedRoutes;
713
- },
714
- isDynamicRoute: function() {
715
- return s.isDynamicRoute;
716
- }
717
- });
718
- const u = Yt(), s = tr();
719
- }(Ee)), Ee;
720
- }
721
- var je = {}, Me = {}, pt;
722
- function nr() {
723
- return pt || (pt = 1, function(a) {
724
- Object.defineProperty(a, "__esModule", {
725
- value: !0
726
- }), Object.defineProperty(a, "getRouteMatcher", {
727
- enumerable: !0,
728
- get: function() {
729
- return u;
730
- }
731
- });
732
- const e = le();
733
- function u(s) {
734
- let { re: t, groups: n } = s;
735
- return (i) => {
736
- const r = t.exec(i);
737
- if (!r)
738
- return !1;
739
- const o = (d) => {
740
- try {
741
- return decodeURIComponent(d);
742
- } catch {
743
- throw new e.DecodeError("failed to decode param");
744
- }
745
- }, c = {};
746
- return Object.keys(n).forEach((d) => {
747
- const h = n[d], m = r[h.pos];
748
- m !== void 0 && (c[d] = ~m.indexOf("/") ? m.split("/").map((p) => o(p)) : h.repeat ? [
749
- o(m)
750
- ] : o(m));
751
- }), c;
752
- };
753
- }
754
- }(Me)), Me;
755
- }
756
- var qe = {}, Ce = {}, mt;
757
- function or() {
758
- return mt || (mt = 1, function(a) {
759
- Object.defineProperty(a, "__esModule", {
760
- value: !0
761
- }), Object.defineProperty(a, "escapeStringRegexp", {
762
- enumerable: !0,
763
- get: function() {
764
- return s;
765
- }
766
- });
767
- const e = /[|\\{}()[\]^$+*?.-]/, u = /[|\\{}()[\]^$+*?.-]/g;
768
- function s(t) {
769
- return e.test(t) ? t.replace(u, "\\$&") : t;
770
- }
771
- }(Ce)), Ce;
772
- }
773
- var _t;
774
- function ir() {
775
- return _t || (_t = 1, function(a) {
776
- Object.defineProperty(a, "__esModule", {
777
- value: !0
778
- });
779
- function e(l, _) {
780
- for (var y in _)
781
- Object.defineProperty(l, y, {
782
- enumerable: !0,
783
- get: _[y]
784
- });
785
- }
786
- e(a, {
787
- getNamedMiddlewareRegex: function() {
788
- return b;
789
- },
790
- getNamedRouteRegex: function() {
791
- return p;
792
- },
793
- getRouteRegex: function() {
794
- return c;
795
- }
796
- });
797
- const u = Dt(), s = or(), t = At(), n = "nxtP", i = "nxtI";
798
- function r(l) {
799
- const _ = l.startsWith("[") && l.endsWith("]");
800
- _ && (l = l.slice(1, -1));
801
- const y = l.startsWith("...");
802
- return y && (l = l.slice(3)), {
803
- key: l,
804
- repeat: y,
805
- optional: _
806
- };
807
- }
808
- function o(l) {
809
- const _ = (0, t.removeTrailingSlash)(l).slice(1).split("/"), y = {};
810
- let T = 1;
811
- return {
812
- parameterizedRoute: _.map((R) => {
813
- const f = u.INTERCEPTION_ROUTE_MARKERS.find((E) => R.startsWith(E)), v = R.match(/\[((?:\[.*\])|.+)\]/);
814
- if (f && v) {
815
- const { key: E, optional: P, repeat: g } = r(v[1]);
816
- return y[E] = {
817
- pos: T++,
818
- repeat: g,
819
- optional: P
820
- }, "/" + (0, s.escapeStringRegexp)(f) + "([^/]+?)";
821
- } else if (v) {
822
- const { key: E, repeat: P, optional: g } = r(v[1]);
823
- return y[E] = {
824
- pos: T++,
825
- repeat: P,
826
- optional: g
827
- }, P ? g ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
828
- } else
829
- return "/" + (0, s.escapeStringRegexp)(R);
830
- }).join(""),
831
- groups: y
832
- };
833
- }
834
- function c(l) {
835
- const { parameterizedRoute: _, groups: y } = o(l);
836
- return {
837
- re: new RegExp("^" + _ + "(?:/)?$"),
838
- groups: y
839
- };
840
- }
841
- function d() {
842
- let l = 0;
843
- return () => {
844
- let _ = "", y = ++l;
845
- for (; y > 0; )
846
- _ += String.fromCharCode(97 + (y - 1) % 26), y = Math.floor((y - 1) / 26);
847
- return _;
848
- };
849
- }
850
- function h(l) {
851
- let { interceptionMarker: _, getSafeRouteKey: y, segment: T, routeKeys: R, keyPrefix: f } = l;
852
- const { key: v, optional: E, repeat: P } = r(T);
853
- let g = v.replace(/\W/g, "");
854
- f && (g = "" + f + g);
855
- let N = !1;
856
- (g.length === 0 || g.length > 30) && (N = !0), isNaN(parseInt(g.slice(0, 1))) || (N = !0), N && (g = y()), f ? R[g] = "" + f + v : R[g] = v;
857
- const S = _ ? (0, s.escapeStringRegexp)(_) : "";
858
- return P ? E ? "(?:/" + S + "(?<" + g + ">.+?))?" : "/" + S + "(?<" + g + ">.+?)" : "/" + S + "(?<" + g + ">[^/]+?)";
859
- }
860
- function m(l, _) {
861
- const y = (0, t.removeTrailingSlash)(l).slice(1).split("/"), T = d(), R = {};
862
- return {
863
- namedParameterizedRoute: y.map((f) => {
864
- const v = u.INTERCEPTION_ROUTE_MARKERS.some((P) => f.startsWith(P)), E = f.match(/\[((?:\[.*\])|.+)\]/);
865
- if (v && E) {
866
- const [P] = f.split(E[0]);
867
- return h({
868
- getSafeRouteKey: T,
869
- interceptionMarker: P,
870
- segment: E[1],
871
- routeKeys: R,
872
- keyPrefix: _ ? i : void 0
873
- });
874
- } else
875
- return E ? h({
876
- getSafeRouteKey: T,
877
- segment: E[1],
878
- routeKeys: R,
879
- keyPrefix: _ ? n : void 0
880
- }) : "/" + (0, s.escapeStringRegexp)(f);
881
- }).join(""),
882
- routeKeys: R
883
- };
884
- }
885
- function p(l, _) {
886
- const y = m(l, _);
887
- return {
888
- ...c(l),
889
- namedRegex: "^" + y.namedParameterizedRoute + "(?:/)?$",
890
- routeKeys: y.routeKeys
891
- };
892
- }
893
- function b(l, _) {
894
- const { parameterizedRoute: y } = o(l), { catchAll: T = !0 } = _;
895
- if (y === "/")
896
- return {
897
- namedRegex: "^/" + (T ? ".*" : "") + "$"
898
- };
899
- const { namedParameterizedRoute: R } = m(l, !1);
900
- let f = T ? "(?:(/.*)?)" : "";
901
- return {
902
- namedRegex: "^" + R + f + "$"
903
- };
904
- }
905
- }(qe)), qe;
906
- }
907
- var gt;
908
- function ar() {
909
- return gt || (gt = 1, function(a) {
910
- Object.defineProperty(a, "__esModule", {
911
- value: !0
912
- }), Object.defineProperty(a, "interpolateAs", {
913
- enumerable: !0,
914
- get: function() {
915
- return s;
916
- }
917
- });
918
- const e = nr(), u = ir();
919
- function s(t, n, i) {
920
- let r = "";
921
- const o = (0, u.getRouteRegex)(t), c = o.groups, d = (
922
- // Try to match the dynamic route against the asPath
923
- (n !== t ? (0, e.getRouteMatcher)(o)(n) : "") || // Fall back to reading the values from the href
924
- // TODO: should this take priority; also need to change in the router.
925
- i
926
- );
927
- r = t;
928
- const h = Object.keys(c);
929
- return h.every((m) => {
930
- let p = d[m] || "";
931
- const { repeat: b, optional: l } = c[m];
932
- let _ = "[" + (b ? "..." : "") + m + "]";
933
- return l && (_ = (p ? "" : "/") + "[" + _ + "]"), b && !Array.isArray(p) && (p = [
934
- p
935
- ]), (l || m in d) && // Interpolate group into data URL if present
936
- (r = r.replace(_, b ? p.map(
937
- // these values should be fully encoded instead of just
938
- // path delimiter escaped since they are being inserted
939
- // into the URL and we expect URL encoded segments
940
- // when parsing dynamic route params
941
- (y) => encodeURIComponent(y)
942
- ).join("/") : encodeURIComponent(p)) || "/");
943
- }) || (r = ""), {
944
- params: h,
945
- result: r
946
- };
947
- }
948
- }(je)), je;
949
- }
950
- var yt;
951
- function ur() {
952
- return yt || (yt = 1, function(a, e) {
953
- Object.defineProperty(e, "__esModule", {
954
- value: !0
955
- }), Object.defineProperty(e, "resolveHref", {
956
- enumerable: !0,
957
- get: function() {
958
- return d;
959
- }
960
- });
961
- const u = Ct(), s = It(), t = Xt(), n = le(), i = fe(), r = xt(), o = rr(), c = ar();
962
- function d(h, m, p) {
963
- let b, l = typeof m == "string" ? m : (0, s.formatWithValidation)(m);
964
- const _ = l.match(/^[a-zA-Z]{1,}:\/\//), y = _ ? l.slice(_[0].length) : l;
965
- if ((y.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
966
- console.error("Invalid href '" + l + "' passed to next/router in page: '" + h.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
967
- const R = (0, n.normalizeRepeatedSlashes)(y);
968
- l = (_ ? _[0] : "") + R;
969
- }
970
- if (!(0, r.isLocalURL)(l))
971
- return p ? [
972
- l
973
- ] : l;
974
- try {
975
- b = new URL(l.startsWith("#") ? h.asPath : h.pathname, "http://n");
976
- } catch {
977
- b = new URL("/", "http://n");
978
- }
979
- try {
980
- const R = new URL(l, b);
981
- R.pathname = (0, i.normalizePathTrailingSlash)(R.pathname);
982
- let f = "";
983
- if ((0, o.isDynamicRoute)(R.pathname) && R.searchParams && p) {
984
- const E = (0, u.searchParamsToUrlQuery)(R.searchParams), { result: P, params: g } = (0, c.interpolateAs)(R.pathname, R.pathname, E);
985
- P && (f = (0, s.formatWithValidation)({
986
- pathname: P,
987
- hash: R.hash,
988
- query: (0, t.omit)(E, g)
989
- }));
990
- }
991
- const v = R.origin === b.origin ? R.href.slice(R.origin.length) : R.href;
992
- return p ? [
993
- v,
994
- f || v
995
- ] : v;
996
- } catch {
997
- return p ? [
998
- l
999
- ] : l;
1000
- }
1001
- }
1002
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
1003
- }(Y, Y.exports)), Y.exports;
1004
- }
1005
- var te = { exports: {} }, Ie = {}, Ae = {}, vt;
1006
- function kt() {
1007
- return vt || (vt = 1, function(a) {
1008
- Object.defineProperty(a, "__esModule", {
1009
- value: !0
1010
- }), Object.defineProperty(a, "addPathPrefix", {
1011
- enumerable: !0,
1012
- get: function() {
1013
- return u;
1014
- }
1015
- });
1016
- const e = He();
1017
- function u(s, t) {
1018
- if (!s.startsWith("/") || !t)
1019
- return s;
1020
- const { pathname: n, query: i, hash: r } = (0, e.parsePath)(s);
1021
- return "" + t + n + i + r;
1022
- }
1023
- }(Ae)), Ae;
1024
- }
1025
- var Pt;
1026
- function sr() {
1027
- return Pt || (Pt = 1, function(a) {
1028
- Object.defineProperty(a, "__esModule", {
1029
- value: !0
1030
- }), Object.defineProperty(a, "addLocale", {
1031
- enumerable: !0,
1032
- get: function() {
1033
- return s;
1034
- }
1035
- });
1036
- const e = kt(), u = Ut();
1037
- function s(t, n, i, r) {
1038
- if (!n || n === i)
1039
- return t;
1040
- const o = t.toLowerCase();
1041
- return !r && ((0, u.pathHasPrefix)(o, "/api") || (0, u.pathHasPrefix)(o, "/" + n.toLowerCase())) ? t : (0, e.addPathPrefix)(t, "/" + n);
1042
- }
1043
- }(Ie)), Ie;
1044
- }
1045
- var Rt;
1046
- function cr() {
1047
- return Rt || (Rt = 1, function(a, e) {
1048
- Object.defineProperty(e, "__esModule", {
1049
- value: !0
1050
- }), Object.defineProperty(e, "addLocale", {
1051
- enumerable: !0,
1052
- get: function() {
1053
- return s;
1054
- }
1055
- });
1056
- const u = fe(), s = function(t) {
1057
- for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
1058
- i[r - 1] = arguments[r];
1059
- return process.env.__NEXT_I18N_SUPPORT ? (0, u.normalizePathTrailingSlash)(sr().addLocale(t, ...i)) : t;
1060
- };
1061
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
1062
- }(te, te.exports)), te.exports;
1063
- }
1064
- var Ue = {}, bt;
1065
- function lr() {
1066
- return bt || (bt = 1, function(a) {
1067
- Object.defineProperty(a, "__esModule", {
1068
- value: !0
1069
- }), Object.defineProperty(a, "RouterContext", {
1070
- enumerable: !0,
1071
- get: function() {
1072
- return s;
1073
- }
1074
- });
1075
- const s = (/* @__PURE__ */ F._(ce)).default.createContext(null);
1076
- process.env.NODE_ENV !== "production" && (s.displayName = "RouterContext");
1077
- }(Ue)), Ue;
1078
- }
1079
- var xe = {}, Et;
1080
- function fr() {
1081
- return Et || (Et = 1, function(a) {
1082
- "use client";
1083
- Object.defineProperty(a, "__esModule", {
1084
- value: !0
1085
- });
1086
- function e(c, d) {
1087
- for (var h in d)
1088
- Object.defineProperty(c, h, {
1089
- enumerable: !0,
1090
- get: d[h]
1091
- });
1092
- }
1093
- e(a, {
1094
- AppRouterContext: function() {
1095
- return t;
1096
- },
1097
- GlobalLayoutRouterContext: function() {
1098
- return i;
1099
- },
1100
- LayoutRouterContext: function() {
1101
- return n;
1102
- },
1103
- MissingSlotContext: function() {
1104
- return o;
1105
- },
1106
- TemplateContext: function() {
1107
- return r;
1108
- }
1109
- });
1110
- const s = /* @__PURE__ */ F._(ce), t = s.default.createContext(null), n = s.default.createContext(null), i = s.default.createContext(null), r = s.default.createContext(null);
1111
- process.env.NODE_ENV !== "production" && (t.displayName = "AppRouterContext", n.displayName = "LayoutRouterContext", i.displayName = "GlobalLayoutRouterContext", r.displayName = "TemplateContext");
1112
- const o = s.default.createContext(/* @__PURE__ */ new Set());
1113
- }(xe)), xe;
1114
- }
1115
- var re = { exports: {} }, ne = { exports: {} }, Ot;
1116
- function dr() {
1117
- return Ot || (Ot = 1, function(a, e) {
1118
- Object.defineProperty(e, "__esModule", {
1119
- value: !0
1120
- });
1121
- function u(n, i) {
1122
- for (var r in i)
1123
- Object.defineProperty(n, r, {
1124
- enumerable: !0,
1125
- get: i[r]
1126
- });
1127
- }
1128
- u(e, {
1129
- cancelIdleCallback: function() {
1130
- return t;
1131
- },
1132
- requestIdleCallback: function() {
1133
- return s;
1134
- }
1135
- });
1136
- const s = typeof self < "u" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(n) {
1137
- let i = Date.now();
1138
- return self.setTimeout(function() {
1139
- n({
1140
- didTimeout: !1,
1141
- timeRemaining: function() {
1142
- return Math.max(0, 50 - (Date.now() - i));
1143
- }
1144
- });
1145
- }, 1);
1146
- }, t = typeof self < "u" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(n) {
1147
- return clearTimeout(n);
1148
- };
1149
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
1150
- }(ne, ne.exports)), ne.exports;
1151
- }
1152
- var wt;
1153
- function hr() {
1154
- return wt || (wt = 1, function(a, e) {
1155
- Object.defineProperty(e, "__esModule", {
1156
- value: !0
1157
- }), Object.defineProperty(e, "useIntersection", {
1158
- enumerable: !0,
1159
- get: function() {
1160
- return c;
1161
- }
1162
- });
1163
- const u = ce, s = dr(), t = typeof IntersectionObserver == "function", n = /* @__PURE__ */ new Map(), i = [];
1164
- function r(d) {
1165
- const h = {
1166
- root: d.root || null,
1167
- margin: d.rootMargin || ""
1168
- }, m = i.find((_) => _.root === h.root && _.margin === h.margin);
1169
- let p;
1170
- if (m && (p = n.get(m), p))
1171
- return p;
1172
- const b = /* @__PURE__ */ new Map(), l = new IntersectionObserver((_) => {
1173
- _.forEach((y) => {
1174
- const T = b.get(y.target), R = y.isIntersecting || y.intersectionRatio > 0;
1175
- T && R && T(R);
1176
- });
1177
- }, d);
1178
- return p = {
1179
- id: h,
1180
- observer: l,
1181
- elements: b
1182
- }, i.push(h), n.set(h, p), p;
1183
- }
1184
- function o(d, h, m) {
1185
- const { id: p, observer: b, elements: l } = r(m);
1186
- return l.set(d, h), b.observe(d), function() {
1187
- if (l.delete(d), b.unobserve(d), l.size === 0) {
1188
- b.disconnect(), n.delete(p);
1189
- const y = i.findIndex((T) => T.root === p.root && T.margin === p.margin);
1190
- y > -1 && i.splice(y, 1);
1191
- }
1192
- };
1193
- }
1194
- function c(d) {
1195
- let { rootRef: h, rootMargin: m, disabled: p } = d;
1196
- const b = p || !t, [l, _] = (0, u.useState)(!1), y = (0, u.useRef)(null), T = (0, u.useCallback)((f) => {
1197
- y.current = f;
1198
- }, []);
1199
- (0, u.useEffect)(() => {
1200
- if (t) {
1201
- if (b || l)
1202
- return;
1203
- const f = y.current;
1204
- if (f && f.tagName)
1205
- return o(f, (E) => E && _(E), {
1206
- root: h == null ? void 0 : h.current,
1207
- rootMargin: m
1208
- });
1209
- } else if (!l) {
1210
- const f = (0, s.requestIdleCallback)(() => _(!0));
1211
- return () => (0, s.cancelIdleCallback)(f);
1212
- }
1213
- }, [
1214
- b,
1215
- m,
1216
- h,
1217
- l,
1218
- y.current
1219
- ]);
1220
- const R = (0, u.useCallback)(() => {
1221
- _(!1);
1222
- }, []);
1223
- return [
1224
- T,
1225
- l,
1226
- R
1227
- ];
1228
- }
1229
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
1230
- }(re, re.exports)), re.exports;
1231
- }
1232
- var oe = { exports: {} }, ie = { exports: {} }, De = {}, Nt;
1233
- function pr() {
1234
- return Nt || (Nt = 1, function(a) {
1235
- Object.defineProperty(a, "__esModule", {
1236
- value: !0
1237
- }), Object.defineProperty(a, "normalizeLocalePath", {
1238
- enumerable: !0,
1239
- get: function() {
1240
- return e;
1241
- }
1242
- });
1243
- function e(u, s) {
1244
- let t;
1245
- const n = u.split("/");
1246
- return (s || []).some((i) => n[1] && n[1].toLowerCase() === i.toLowerCase() ? (t = i, n.splice(1, 1), u = n.join("/") || "/", !0) : !1), {
1247
- pathname: u,
1248
- detectedLocale: t
1249
- };
1250
- }
1251
- }(De)), De;
1252
- }
1253
- var Tt;
1254
- function mr() {
1255
- return Tt || (Tt = 1, function(a, e) {
1256
- Object.defineProperty(e, "__esModule", {
1257
- value: !0
1258
- }), Object.defineProperty(e, "normalizeLocalePath", {
1259
- enumerable: !0,
1260
- get: function() {
1261
- return u;
1262
- }
1263
- });
1264
- const u = (s, t) => process.env.__NEXT_I18N_SUPPORT ? pr().normalizeLocalePath(s, t) : {
1265
- pathname: s,
1266
- detectedLocale: void 0
1267
- };
1268
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
1269
- }(ie, ie.exports)), ie.exports;
1270
- }
1271
- var ae = { exports: {} }, ke = {}, St;
1272
- function _r() {
1273
- return St || (St = 1, function(a) {
1274
- Object.defineProperty(a, "__esModule", {
1275
- value: !0
1276
- }), Object.defineProperty(a, "detectDomainLocale", {
1277
- enumerable: !0,
1278
- get: function() {
1279
- return e;
1280
- }
1281
- });
1282
- function e(u, s, t) {
1283
- if (u) {
1284
- t && (t = t.toLowerCase());
1285
- for (const r of u) {
1286
- var n, i;
1287
- const o = (n = r.domain) == null ? void 0 : n.split(":", 1)[0].toLowerCase();
1288
- if (s === o || t === r.defaultLocale.toLowerCase() || (i = r.locales) != null && i.some((c) => c.toLowerCase() === t))
1289
- return r;
1290
- }
1291
- }
1292
- }
1293
- }(ke)), ke;
1294
- }
1295
- var Lt;
1296
- function gr() {
1297
- return Lt || (Lt = 1, function(a, e) {
1298
- Object.defineProperty(e, "__esModule", {
1299
- value: !0
1300
- }), Object.defineProperty(e, "detectDomainLocale", {
1301
- enumerable: !0,
1302
- get: function() {
1303
- return u;
1304
- }
1305
- });
1306
- const u = function() {
1307
- for (var s = arguments.length, t = new Array(s), n = 0; n < s; n++)
1308
- t[n] = arguments[n];
1309
- if (process.env.__NEXT_I18N_SUPPORT)
1310
- return _r().detectDomainLocale(...t);
1311
- };
1312
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
1313
- }(ae, ae.exports)), ae.exports;
1314
- }
1315
- var jt;
1316
- function yr() {
1317
- return jt || (jt = 1, function(a, e) {
1318
- Object.defineProperty(e, "__esModule", {
1319
- value: !0
1320
- }), Object.defineProperty(e, "getDomainLocale", {
1321
- enumerable: !0,
1322
- get: function() {
1323
- return t;
1324
- }
1325
- });
1326
- const u = fe(), s = process.env.__NEXT_ROUTER_BASEPATH || "";
1327
- function t(n, i, r, o) {
1328
- if (process.env.__NEXT_I18N_SUPPORT) {
1329
- const c = mr().normalizeLocalePath, d = gr().detectDomainLocale, h = i || c(n, r).detectedLocale, m = d(o, void 0, h);
1330
- if (m) {
1331
- const p = "http" + (m.http ? "" : "s") + "://", b = h === m.defaultLocale ? "" : "/" + h;
1332
- return "" + p + m.domain + (0, u.normalizePathTrailingSlash)("" + s + b + n);
1333
- }
1334
- return !1;
1335
- } else
1336
- return !1;
1337
- }
1338
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
1339
- }(oe, oe.exports)), oe.exports;
1340
- }
1341
- var ue = { exports: {} }, Mt;
1342
- function vr() {
1343
- return Mt || (Mt = 1, function(a, e) {
1344
- Object.defineProperty(e, "__esModule", {
1345
- value: !0
1346
- }), Object.defineProperty(e, "addBasePath", {
1347
- enumerable: !0,
1348
- get: function() {
1349
- return n;
1350
- }
1351
- });
1352
- const u = kt(), s = fe(), t = process.env.__NEXT_ROUTER_BASEPATH || "";
1353
- function n(i, r) {
1354
- return (0, s.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !r ? i : (0, u.addPathPrefix)(i, t));
1355
- }
1356
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
1357
- }(ue, ue.exports)), ue.exports;
1358
- }
1359
- var se = { exports: {} }, qt;
1360
- function Pr() {
1361
- return qt || (qt = 1, function(a, e) {
1362
- Object.defineProperty(e, "__esModule", {
1363
- value: !0
1364
- });
1365
- function u(p, b) {
1366
- for (var l in b)
1367
- Object.defineProperty(p, l, {
1368
- enumerable: !0,
1369
- get: b[l]
1370
- });
1371
- }
1372
- u(e, {
1373
- ACTION_FAST_REFRESH: function() {
1374
- return o;
1375
- },
1376
- ACTION_NAVIGATE: function() {
1377
- return t;
1378
- },
1379
- ACTION_PREFETCH: function() {
1380
- return r;
1381
- },
1382
- ACTION_REFRESH: function() {
1383
- return s;
1384
- },
1385
- ACTION_RESTORE: function() {
1386
- return n;
1387
- },
1388
- ACTION_SERVER_ACTION: function() {
1389
- return c;
1390
- },
1391
- ACTION_SERVER_PATCH: function() {
1392
- return i;
1393
- },
1394
- PrefetchCacheEntryStatus: function() {
1395
- return h;
1396
- },
1397
- PrefetchKind: function() {
1398
- return d;
1399
- },
1400
- isThenable: function() {
1401
- return m;
1402
- }
1403
- });
1404
- const s = "refresh", t = "navigate", n = "restore", i = "server-patch", r = "prefetch", o = "fast-refresh", c = "server-action";
1405
- var d;
1406
- (function(p) {
1407
- p.AUTO = "auto", p.FULL = "full", p.TEMPORARY = "temporary";
1408
- })(d || (d = {}));
1409
- var h;
1410
- (function(p) {
1411
- p.fresh = "fresh", p.reusable = "reusable", p.expired = "expired", p.stale = "stale";
1412
- })(h || (h = {}));
1413
- function m(p) {
1414
- return p && (typeof p == "object" || typeof p == "function") && typeof p.then == "function";
1415
- }
1416
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
1417
- }(se, se.exports)), se.exports;
1418
- }
1419
- (function(a, e) {
1420
- "use client";
1421
- Object.defineProperty(e, "__esModule", {
1422
- value: !0
1423
- }), Object.defineProperty(e, "default", {
1424
- enumerable: !0,
1425
- get: function() {
1426
- return E;
1427
- }
1428
- });
1429
- const u = F, s = $t, t = /* @__PURE__ */ u._(ce), n = ur(), i = xt(), r = It(), o = le(), c = cr(), d = lr(), h = fr(), m = hr(), p = yr(), b = vr(), l = Pr(), _ = /* @__PURE__ */ new Set();
1430
- function y(P, g, N, S, j, C) {
1431
- if (typeof window > "u" || !C && !(0, i.isLocalURL)(g))
1432
- return;
1433
- if (!S.bypassPrefetchedCheck) {
1434
- const z = (
1435
- // Let the link's locale prop override the default router locale.
1436
- typeof S.locale < "u" ? S.locale : "locale" in P ? P.locale : void 0
1437
- ), W = g + "%" + N + "%" + z;
1438
- if (_.has(W))
1439
- return;
1440
- _.add(W);
1441
- }
1442
- const $ = C ? P.prefetch(g, j) : P.prefetch(g, N, S);
1443
- Promise.resolve($).catch((z) => {
1444
- if (process.env.NODE_ENV !== "production")
1445
- throw z;
1446
- });
1447
- }
1448
- function T(P) {
1449
- const N = P.currentTarget.getAttribute("target");
1450
- return N && N !== "_self" || P.metaKey || P.ctrlKey || P.shiftKey || P.altKey || // triggers resource download
1451
- P.nativeEvent && P.nativeEvent.which === 2;
1452
- }
1453
- function R(P, g, N, S, j, C, $, z, W) {
1454
- const { nodeName: de } = P.currentTarget;
1455
- if (de.toUpperCase() === "A" && (T(P) || // app-router supports external urls out of the box so it shouldn't short-circuit here as support for e.g. `replace` is added in the app-router.
1456
- !W && !(0, i.isLocalURL)(N)))
1457
- return;
1458
- P.preventDefault();
1459
- const G = () => {
1460
- const A = $ ?? !0;
1461
- "beforePopState" in g ? g[j ? "replace" : "push"](N, S, {
1462
- shallow: C,
1463
- locale: z,
1464
- scroll: A
1465
- }) : g[j ? "replace" : "push"](S || N, {
1466
- scroll: A
1467
- });
1468
- };
1469
- W ? t.default.startTransition(G) : G();
1470
- }
1471
- function f(P) {
1472
- return typeof P == "string" ? P : (0, r.formatUrl)(P);
1473
- }
1474
- const E = /* @__PURE__ */ t.default.forwardRef(function(g, N) {
1475
- let S;
1476
- const { href: j, as: C, children: $, prefetch: z = null, passHref: W, replace: de, shallow: We, scroll: G, locale: A, onClick: he, onMouseEnter: pe, onTouchStart: $e, legacyBehavior: I = !1, ...zt } = g;
1477
- S = $, I && (typeof S == "string" || typeof S == "number") && (S = /* @__PURE__ */ (0, s.jsx)("a", {
1478
- children: S
1479
- }));
1480
- const L = t.default.useContext(d.RouterContext), Ht = t.default.useContext(h.AppRouterContext), U = L ?? Ht, x = !L, V = z !== !1, X = z === null ? l.PrefetchKind.AUTO : l.PrefetchKind.FULL;
1481
- if (process.env.NODE_ENV !== "production") {
1482
- let O = function(w) {
1483
- return new Error("Failed prop type: The prop `" + w.key + "` expects a " + w.expected + " in `<Link>`, but got `" + w.actual + "` instead." + (typeof window < "u" ? `
1484
- Open your browser's console to view the Component stack trace.` : ""));
1485
- };
1486
- Object.keys({
1487
- href: !0
1488
- }).forEach((w) => {
1489
- if (w === "href" && (g[w] == null || typeof g[w] != "string" && typeof g[w] != "object"))
1490
- throw O({
1491
- key: w,
1492
- expected: "`string` or `object`",
1493
- actual: g[w] === null ? "null" : typeof g[w]
1494
- });
1495
- }), Object.keys({
1496
- as: !0,
1497
- replace: !0,
1498
- scroll: !0,
1499
- shallow: !0,
1500
- passHref: !0,
1501
- prefetch: !0,
1502
- locale: !0,
1503
- onClick: !0,
1504
- onMouseEnter: !0,
1505
- onTouchStart: !0,
1506
- legacyBehavior: !0
1507
- }).forEach((w) => {
1508
- const k = typeof g[w];
1509
- if (w === "as") {
1510
- if (g[w] && k !== "string" && k !== "object")
1511
- throw O({
1512
- key: w,
1513
- expected: "`string` or `object`",
1514
- actual: k
1515
- });
1516
- } else if (w === "locale") {
1517
- if (g[w] && k !== "string")
1518
- throw O({
1519
- key: w,
1520
- expected: "`string`",
1521
- actual: k
1522
- });
1523
- } else if (w === "onClick" || w === "onMouseEnter" || w === "onTouchStart") {
1524
- if (g[w] && k !== "function")
1525
- throw O({
1526
- key: w,
1527
- expected: "`function`",
1528
- actual: k
1529
- });
1530
- } else if ((w === "replace" || w === "scroll" || w === "shallow" || w === "passHref" || w === "prefetch" || w === "legacyBehavior") && g[w] != null && k !== "boolean")
1531
- throw O({
1532
- key: w,
1533
- expected: "`boolean`",
1534
- actual: k
1535
- });
1536
- });
1537
- const Xe = t.default.useRef(!1);
1538
- g.prefetch && !Xe.current && !x && (Xe.current = !0, console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"));
1539
- }
1540
- if (process.env.NODE_ENV !== "production" && x && !C) {
1541
- let O;
1542
- if (typeof j == "string" ? O = j : typeof j == "object" && typeof j.pathname == "string" && (O = j.pathname), O && O.split("/").some((K) => K.startsWith("[") && K.endsWith("]")))
1543
- throw new Error("Dynamic href `" + O + "` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href");
1544
- }
1545
- const { href: D, as: q } = t.default.useMemo(() => {
1546
- if (!L) {
1547
- const K = f(j);
1548
- return {
1549
- href: K,
1550
- as: C ? f(C) : K
1551
- };
1552
- }
1553
- const [O, H] = (0, n.resolveHref)(L, j, !0);
1554
- return {
1555
- href: O,
1556
- as: C ? (0, n.resolveHref)(L, C) : H || O
1557
- };
1558
- }, [
1559
- L,
1560
- j,
1561
- C
1562
- ]), Be = t.default.useRef(D), Ke = t.default.useRef(q);
1563
- let M;
1564
- if (I)
1565
- if (process.env.NODE_ENV === "development") {
1566
- he && console.warn('"onClick" was passed to <Link> with `href` of `' + j + '` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'), pe && console.warn('"onMouseEnter" was passed to <Link> with `href` of `' + j + '` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');
1567
- try {
1568
- M = t.default.Children.only(S);
1569
- } catch {
1570
- throw S ? new Error("Multiple children were passed to <Link> with `href` of `" + j + "` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children" + (typeof window < "u" ? `
1571
- Open your browser's console to view the Component stack trace.` : "")) : new Error("No children were passed to <Link> with `href` of `" + j + "` but one child is required https://nextjs.org/docs/messages/link-no-children");
1572
- }
1573
- } else
1574
- M = t.default.Children.only(S);
1575
- else if (process.env.NODE_ENV === "development" && (S == null ? void 0 : S.type) === "a")
1576
- throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
1577
- Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);
1578
- const B = I ? M && typeof M == "object" && M.ref : N, [Fe, Ge, Ve] = (0, m.useIntersection)({
1579
- rootMargin: "200px"
1580
- }), Wt = t.default.useCallback((O) => {
1581
- (Ke.current !== q || Be.current !== D) && (Ve(), Ke.current = q, Be.current = D), Fe(O), B && (typeof B == "function" ? B(O) : typeof B == "object" && (B.current = O));
1582
- }, [
1583
- q,
1584
- B,
1585
- D,
1586
- Ve,
1587
- Fe
1588
- ]);
1589
- t.default.useEffect(() => {
1590
- process.env.NODE_ENV === "production" && U && (!Ge || !V || y(U, D, q, {
1591
- locale: A
1592
- }, {
1593
- kind: X
1594
- }, x));
1595
- }, [
1596
- q,
1597
- D,
1598
- Ge,
1599
- A,
1600
- V,
1601
- L == null ? void 0 : L.locale,
1602
- U,
1603
- x,
1604
- X
1605
- ]);
1606
- const Q = {
1607
- ref: Wt,
1608
- onClick(O) {
1609
- if (process.env.NODE_ENV !== "production" && !O)
1610
- throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');
1611
- !I && typeof he == "function" && he(O), I && M.props && typeof M.props.onClick == "function" && M.props.onClick(O), U && (O.defaultPrevented || R(O, U, D, q, de, We, G, A, x));
1612
- },
1613
- onMouseEnter(O) {
1614
- !I && typeof pe == "function" && pe(O), I && M.props && typeof M.props.onMouseEnter == "function" && M.props.onMouseEnter(O), U && ((!V || process.env.NODE_ENV === "development") && x || y(U, D, q, {
1615
- locale: A,
1616
- priority: !0,
1617
- // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
1618
- bypassPrefetchedCheck: !0
1619
- }, {
1620
- kind: X
1621
- }, x));
1622
- },
1623
- onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function(H) {
1624
- !I && typeof $e == "function" && $e(H), I && M.props && typeof M.props.onTouchStart == "function" && M.props.onTouchStart(H), U && (!V && x || y(U, D, q, {
1625
- locale: A,
1626
- priority: !0,
1627
- // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
1628
- bypassPrefetchedCheck: !0
1629
- }, {
1630
- kind: X
1631
- }, x));
1632
- }
1633
- };
1634
- if ((0, o.isAbsoluteUrl)(q))
1635
- Q.href = q;
1636
- else if (!I || W || M.type === "a" && !("href" in M.props)) {
1637
- const O = typeof A < "u" ? A : L == null ? void 0 : L.locale, H = (L == null ? void 0 : L.isLocaleDomain) && (0, p.getDomainLocale)(q, O, L == null ? void 0 : L.locales, L == null ? void 0 : L.domainLocales);
1638
- Q.href = H || (0, b.addBasePath)((0, c.addLocale)(q, O, L == null ? void 0 : L.defaultLocale));
1639
- }
1640
- return I ? /* @__PURE__ */ t.default.cloneElement(M, Q) : /* @__PURE__ */ (0, s.jsx)("a", {
1641
- ...zt,
1642
- ...Q,
1643
- children: S
1644
- });
1645
- });
1646
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
1647
- })(ze, ze.exports);
1648
- var Rr = ze.exports, br = Rr;
1649
- const Er = /* @__PURE__ */ Kt(br), Or = "_link_1e6wm_1", wr = {
1650
- link: Or
1651
- }, qr = (a) => {
1652
- const { children: e, href: u, isStyled: s = !1, target: t, rel: n } = a;
1653
- return /* @__PURE__ */ Bt(
1654
- Er,
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { L as a } from "../../link-DKxv6PwW.js";
3
+ import { c as m } from "../../index-DWRHnq8_.js";
4
+ import '../../assets/index6.css';const c = "_link_1e6wm_1", k = {
5
+ link: c
6
+ }, u = (s) => {
7
+ const { children: t, href: o, isStyled: n = !1, target: r, rel: e } = s;
8
+ return /* @__PURE__ */ l(
9
+ a,
1655
10
  {
1656
- href: u,
1657
- className: Ft({ [wr.link]: s }),
1658
- target: t,
1659
- rel: n,
11
+ href: o,
12
+ className: m({ [k.link]: n }),
13
+ target: r,
14
+ rel: e,
1660
15
  onClick: (i) => {
1661
16
  i.stopPropagation();
1662
17
  },
1663
- children: e
18
+ children: t
1664
19
  }
1665
20
  );
1666
21
  };
1667
22
  export {
1668
- qr as CustomLink,
1669
- qr as default
23
+ u as CustomLink,
24
+ u as default
1670
25
  };