basic_67 1.0.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.
@@ -0,0 +1,1378 @@
1
+ import * as e from "react";
2
+ //#region \0rolldown/runtime.js
3
+ var t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), n = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
4
+ if (typeof require < "u") return require.apply(this, arguments);
5
+ throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
6
+ }), r = /* @__PURE__ */ t(((e) => {
7
+ var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
8
+ function r(e, n, r) {
9
+ var i = null;
10
+ if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
11
+ else r = n;
12
+ return n = r.ref, {
13
+ $$typeof: t,
14
+ type: e,
15
+ key: i,
16
+ ref: n === void 0 ? null : n,
17
+ props: r
18
+ };
19
+ }
20
+ e.Fragment = n, e.jsx = r, e.jsxs = r;
21
+ })), i = /* @__PURE__ */ t(((e) => {
22
+ process.env.NODE_ENV !== "production" && (function() {
23
+ function t(e) {
24
+ if (e == null) return null;
25
+ if (typeof e == "function") return e.$$typeof === O ? null : e.displayName || e.name || null;
26
+ if (typeof e == "string") return e;
27
+ switch (e) {
28
+ case v: return "Fragment";
29
+ case b: return "Profiler";
30
+ case y: return "StrictMode";
31
+ case w: return "Suspense";
32
+ case T: return "SuspenseList";
33
+ case ee: return "Activity";
34
+ case te: return "ViewTransition";
35
+ }
36
+ if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
37
+ case _: return "Portal";
38
+ case S: return e.displayName || "Context";
39
+ case x: return (e._context.displayName || "Context") + ".Consumer";
40
+ case C:
41
+ var n = e.render;
42
+ return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
43
+ case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
44
+ case D:
45
+ n = e._payload, e = e._init;
46
+ try {
47
+ return t(e(n));
48
+ } catch {}
49
+ }
50
+ return null;
51
+ }
52
+ function r(e) {
53
+ return "" + e;
54
+ }
55
+ function i(e) {
56
+ try {
57
+ r(e);
58
+ var t = !1;
59
+ } catch {
60
+ t = !0;
61
+ }
62
+ if (t) {
63
+ t = console;
64
+ var n = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
65
+ return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), r(e);
66
+ }
67
+ }
68
+ function a(e) {
69
+ if (e === v) return "<>";
70
+ if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
71
+ try {
72
+ var n = t(e);
73
+ return n ? "<" + n + ">" : "<...>";
74
+ } catch {
75
+ return "<...>";
76
+ }
77
+ }
78
+ function o() {
79
+ var e = k.A;
80
+ return e === null ? null : e.getOwner();
81
+ }
82
+ function s() {
83
+ return Error("react-stack-top-frame");
84
+ }
85
+ function c(e) {
86
+ if (A.call(e, "key")) {
87
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
88
+ if (t && t.isReactWarning) return !1;
89
+ }
90
+ return e.key !== void 0;
91
+ }
92
+ function l(e, t) {
93
+ function n() {
94
+ re || (re = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
95
+ }
96
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
97
+ get: n,
98
+ configurable: !0
99
+ });
100
+ }
101
+ function u() {
102
+ var e = t(this.type);
103
+ return M[e] || (M[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
104
+ }
105
+ function d(e, t, n, r, i, a) {
106
+ var o = n.ref;
107
+ return e = {
108
+ $$typeof: g,
109
+ type: e,
110
+ key: t,
111
+ props: n,
112
+ _owner: r
113
+ }, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
114
+ enumerable: !1,
115
+ value: null
116
+ }) : Object.defineProperty(e, "ref", {
117
+ enumerable: !1,
118
+ get: u
119
+ }), e._store = {}, Object.defineProperty(e._store, "validated", {
120
+ configurable: !1,
121
+ enumerable: !1,
122
+ writable: !0,
123
+ value: 0
124
+ }), Object.defineProperty(e, "_debugInfo", {
125
+ configurable: !1,
126
+ enumerable: !1,
127
+ writable: !0,
128
+ value: null
129
+ }), Object.defineProperty(e, "_debugStack", {
130
+ configurable: !1,
131
+ enumerable: !1,
132
+ writable: !0,
133
+ value: i
134
+ }), Object.defineProperty(e, "_debugTask", {
135
+ configurable: !1,
136
+ enumerable: !1,
137
+ writable: !0,
138
+ value: a
139
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
140
+ }
141
+ function f(e, n, r, a, s, u) {
142
+ var f = n.children;
143
+ if (f !== void 0) {
144
+ if (a) {
145
+ if (ne(f)) {
146
+ for (a = 0; a < f.length; a++) p(f[a]);
147
+ Object.freeze && Object.freeze(f);
148
+ } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
149
+ } else p(f);
150
+ }
151
+ if (A.call(n, "key")) {
152
+ f = t(e);
153
+ var m = Object.keys(n).filter(function(e) {
154
+ return e !== "key";
155
+ });
156
+ a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", P[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), P[f + a] = !0);
157
+ }
158
+ if (f = null, r !== void 0 && (i(r), f = "" + r), c(n) && (i(n.key), f = "" + n.key), "key" in n) for (var h in r = {}, n) h !== "key" && (r[h] = n[h]);
159
+ else r = n;
160
+ return f && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, r, o(), s, u);
161
+ }
162
+ function p(e) {
163
+ m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
164
+ }
165
+ function m(e) {
166
+ return typeof e == "object" && !!e && e.$$typeof === g;
167
+ }
168
+ var h = n("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), te = Symbol.for("react.view_transition"), O = Symbol.for("react.client.reference"), k = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, ne = Array.isArray, j = console.createTask ? console.createTask : function() {
169
+ return null;
170
+ };
171
+ h = { react_stack_bottom_frame: function(e) {
172
+ return e();
173
+ } };
174
+ var re, M = {}, N = h.react_stack_bottom_frame.bind(h, s)(), ie = j(a(s)), P = {};
175
+ e.Fragment = v, e.jsx = function(e, t, n) {
176
+ var r = 1e4 > k.recentlyCreatedOwnerStacks++;
177
+ if (r) {
178
+ var i = Error.stackTraceLimit;
179
+ Error.stackTraceLimit = 10;
180
+ var o = Error("react-stack-top-frame");
181
+ Error.stackTraceLimit = i;
182
+ } else o = N;
183
+ return f(e, t, n, !1, o, r ? j(a(e)) : ie);
184
+ }, e.jsxs = function(e, t, n) {
185
+ var r = 1e4 > k.recentlyCreatedOwnerStacks++;
186
+ if (r) {
187
+ var i = Error.stackTraceLimit;
188
+ Error.stackTraceLimit = 10;
189
+ var o = Error("react-stack-top-frame");
190
+ Error.stackTraceLimit = i;
191
+ } else o = N;
192
+ return f(e, t, n, !0, o, r ? j(a(e)) : ie);
193
+ };
194
+ })();
195
+ })), a = (/* @__PURE__ */ t(((e, t) => {
196
+ t.exports = process.env.NODE_ENV === "production" ? r() : i();
197
+ })))(), o = () => /* @__PURE__ */ (0, a.jsx)(a.Fragment, { children: /* @__PURE__ */ (0, a.jsx)("h1", { children: "About" }) }), s = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, c = /^[\\/]{2}/;
198
+ function l(e, t) {
199
+ return t + e.replace(/\\/g, "/");
200
+ }
201
+ function u(e, t) {
202
+ if (e === !1 || e == null) throw Error(t);
203
+ }
204
+ function d(e, t) {
205
+ if (!e) {
206
+ typeof console < "u" && console.warn(t);
207
+ try {
208
+ throw Error(t);
209
+ } catch {}
210
+ }
211
+ }
212
+ function f({ pathname: e = "/", search: t = "", hash: n = "" }) {
213
+ return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
214
+ }
215
+ function p(e) {
216
+ let t = {};
217
+ if (e) {
218
+ let n = e.indexOf("#");
219
+ n >= 0 && (t.hash = e.substring(n), e = e.substring(0, n));
220
+ let r = e.indexOf("?");
221
+ r >= 0 && (t.search = e.substring(r), e = e.substring(0, r)), e && (t.pathname = e);
222
+ }
223
+ return t;
224
+ }
225
+ function m(e, t, n = "/") {
226
+ return h(e, t, n, !1);
227
+ }
228
+ function h(e, t, n, r, i) {
229
+ let a = j((typeof t == "string" ? p(t) : t).pathname || "/", n);
230
+ if (a == null) return null;
231
+ let o = i ?? g(e), s = null, c = ne(a);
232
+ for (let e = 0; s == null && e < o.length; ++e) s = te(o[e], c, r);
233
+ return s;
234
+ }
235
+ function g(e) {
236
+ let t = _(e);
237
+ return y(t), t;
238
+ }
239
+ function _(e, t = [], n = [], r = "", i = !1) {
240
+ let a = (e, a, o = i, s) => {
241
+ let c = {
242
+ relativePath: s === void 0 ? e.path || "" : s,
243
+ caseSensitive: e.caseSensitive === !0,
244
+ childrenIndex: a,
245
+ route: e
246
+ };
247
+ if (c.relativePath.startsWith("/")) {
248
+ if (!c.relativePath.startsWith(r) && o) return;
249
+ u(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
250
+ }
251
+ let l = I([r, c.relativePath]), d = n.concat(c);
252
+ e.children && e.children.length > 0 && (u(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), _(e.children, t, d, l, o)), (e.path != null || e.index) && t.push({
253
+ path: l,
254
+ score: D(l, e.index),
255
+ routesMeta: d.map((e, t) => {
256
+ let [n, r] = A(e.relativePath, e.caseSensitive, t === d.length - 1);
257
+ return {
258
+ ...e,
259
+ matcher: n,
260
+ compiledParams: r
261
+ };
262
+ })
263
+ });
264
+ };
265
+ return e.forEach((e, t) => {
266
+ if (e.path === "" || !e.path?.includes("?")) a(e, t);
267
+ else for (let n of v(e.path)) a(e, t, !0, n);
268
+ }), t;
269
+ }
270
+ function v(e) {
271
+ let t = e.split("/");
272
+ if (t.length === 0) return [];
273
+ let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
274
+ if (r.length === 0) return i ? [a, ""] : [a];
275
+ let o = v(r.join("/")), s = [];
276
+ return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
277
+ }
278
+ function y(e) {
279
+ e.sort((e, t) => e.score === t.score ? ee(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
280
+ }
281
+ var b = /^:[\w-]+$/, x = 3, S = 2, C = 1, w = 10, T = -2, E = (e) => e === "*";
282
+ function D(e, t) {
283
+ let n = e.split("/"), r = n.length;
284
+ return n.some(E) && (r += T), t && (r += S), n.filter((e) => !E(e)).reduce((e, t) => e + (b.test(t) ? x : t === "" ? C : w), r);
285
+ }
286
+ function ee(e, t) {
287
+ return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
288
+ }
289
+ function te(e, t, n = !1) {
290
+ let { routesMeta: r } = e, i = {}, a = "/", o = [];
291
+ for (let e = 0; e < r.length; ++e) {
292
+ let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
293
+ path: s.relativePath,
294
+ caseSensitive: s.caseSensitive,
295
+ end: c
296
+ }, d = s.matcher && s.compiledParams ? k(u, l, s.matcher, s.compiledParams) : O(u, l), f = s.route;
297
+ if (!d && c && n && !r[r.length - 1].route.index && (d = O({
298
+ path: s.relativePath,
299
+ caseSensitive: s.caseSensitive,
300
+ end: !1
301
+ }, l)), !d) return null;
302
+ Object.assign(i, d.params), o.push({
303
+ params: i,
304
+ pathname: I([a, d.pathname]),
305
+ pathnameBase: oe(I([a, d.pathnameBase])),
306
+ route: f
307
+ }), d.pathnameBase !== "/" && (a = I([a, d.pathnameBase]));
308
+ }
309
+ return o;
310
+ }
311
+ function O(e, t) {
312
+ typeof e == "string" && (e = {
313
+ path: e,
314
+ caseSensitive: !1,
315
+ end: !0
316
+ });
317
+ let [n, r] = A(e.path, e.caseSensitive, e.end);
318
+ return k(e, t, n, r);
319
+ }
320
+ function k(e, t, n, r) {
321
+ let i = t.match(n);
322
+ if (!i) return null;
323
+ let a = i[0], o = L(a, 1), s = i.slice(1);
324
+ return {
325
+ params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
326
+ if (t === "*") {
327
+ let e = s[r] || "";
328
+ o = L(a.slice(0, a.length - e.length), 1);
329
+ }
330
+ let i = s[r];
331
+ return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
332
+ }, {}),
333
+ pathname: a,
334
+ pathnameBase: o,
335
+ pattern: e
336
+ };
337
+ }
338
+ function A(e, t = !1, n = !0) {
339
+ d(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
340
+ let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
341
+ if (r.push({
342
+ paramName: t,
343
+ isOptional: n != null
344
+ }), n) {
345
+ let t = a.charAt(i + e.length);
346
+ return t && t !== "/" ? "/([^\\/]*)" : "(?:/([^\\/]*))?";
347
+ }
348
+ return "/([^\\/]+)";
349
+ }).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
350
+ return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
351
+ }
352
+ function ne(e) {
353
+ try {
354
+ return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
355
+ } catch (t) {
356
+ return d(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
357
+ }
358
+ }
359
+ function j(e, t) {
360
+ if (t === "/") return e;
361
+ if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
362
+ let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
363
+ return r && r !== "/" ? null : e.slice(n) || "/";
364
+ }
365
+ function re(e, t = "/") {
366
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? p(e) : e, a;
367
+ return n ? (n = ae(n), a = n.startsWith("/") || n.startsWith("\\") ? M(n.substring(1), "/") : M(n, t)) : a = t, {
368
+ pathname: a,
369
+ search: se(r),
370
+ hash: ce(i)
371
+ };
372
+ }
373
+ function M(e, t) {
374
+ let n = L(t).split("/");
375
+ return e.split("/").forEach((e) => {
376
+ e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
377
+ }), n.length > 1 ? n.join("/") : "/";
378
+ }
379
+ function N(e, t, n, r) {
380
+ return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
381
+ }
382
+ function ie(e) {
383
+ return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
384
+ }
385
+ function P(e) {
386
+ let t = ie(e);
387
+ return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
388
+ }
389
+ function F(e, t, n, r = !1) {
390
+ let i;
391
+ typeof e == "string" ? i = p(e) : (i = { ...e }, u(!i.pathname || !i.pathname.includes("?"), N("?", "pathname", "search", i)), u(!i.pathname || !i.pathname.includes("#"), N("#", "pathname", "hash", i)), u(!i.search || !i.search.includes("#"), N("#", "search", "hash", i)));
392
+ let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
393
+ if (o == null) s = n;
394
+ else {
395
+ let e = t.length - 1;
396
+ if (!r && o.startsWith("..")) {
397
+ let t = o.split("/");
398
+ for (; t[0] === "..";) t.shift(), --e;
399
+ i.pathname = t.join("/");
400
+ }
401
+ s = e >= 0 ? t[e] : "/";
402
+ }
403
+ let c = re(i, s), l = o && o !== "/" && o.endsWith("/"), d = (a || o === ".") && n.endsWith("/");
404
+ return !c.pathname.endsWith("/") && (l || d) && (c.pathname += "/"), c;
405
+ }
406
+ var ae = (e) => e.replace(/[\\/]{2,}/g, "/"), I = (e) => ae(e.join("/"));
407
+ function L(e, t = 0) {
408
+ let n = e.length;
409
+ for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
410
+ return n === e.length ? e : e.slice(0, n);
411
+ }
412
+ var oe = (e) => L(e).replace(/^\/*/, "/"), se = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ce = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, le = class {
413
+ constructor(e, t, n, r = !1) {
414
+ this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
415
+ }
416
+ };
417
+ function ue(e) {
418
+ return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
419
+ }
420
+ function de(e) {
421
+ return I(e.map((e) => e.route.path).filter(Boolean)) || "/";
422
+ }
423
+ var fe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
424
+ function pe(e, t) {
425
+ let n = e;
426
+ if (typeof n != "string" || !s.test(n)) return {
427
+ absoluteURL: void 0,
428
+ isExternal: !1,
429
+ to: n
430
+ };
431
+ let r = n, i = !1;
432
+ if (fe) try {
433
+ let e = new URL(window.location.href), r = c.test(n) ? new URL(l(n, e.protocol)) : new URL(n), a = j(r.pathname, t);
434
+ r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
435
+ } catch {
436
+ d(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
437
+ }
438
+ return {
439
+ absoluteURL: r,
440
+ isExternal: i,
441
+ to: n
442
+ };
443
+ }
444
+ Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
445
+ var me = new URL("http://localhost");
446
+ function he(e) {
447
+ if (e.createURL) return e.createURL("/");
448
+ try {
449
+ return new URL(e.createHref("/"), me);
450
+ } catch {
451
+ return me;
452
+ }
453
+ }
454
+ function R(e, t) {
455
+ return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
456
+ }
457
+ function ge(e, t) {
458
+ if (e.startsWith("//")) return !0;
459
+ let n = t.protocol.toLowerCase();
460
+ return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
461
+ }
462
+ function _e(e, t, n, r) {
463
+ let i = null;
464
+ try {
465
+ i = e == null ? null : new URL(e, n);
466
+ } catch {}
467
+ let a = new URL(t, n), o = i != null && !R(i, n), s = !R(a, n);
468
+ if (r === "reject") {
469
+ if (o || s) throw Error("External navigation is not allowed");
470
+ } else if (s && (i == null || !ge(e, i) || !R(i, a))) throw Error("External navigation is not allowed");
471
+ }
472
+ var ve = [
473
+ "POST",
474
+ "PUT",
475
+ "PATCH",
476
+ "DELETE"
477
+ ];
478
+ new Set(ve);
479
+ var ye = ["GET", ...ve];
480
+ new Set(ye);
481
+ var be = [
482
+ "about:",
483
+ "blob:",
484
+ "chrome:",
485
+ "chrome-untrusted:",
486
+ "content:",
487
+ "data:",
488
+ "devtools:",
489
+ "file:",
490
+ "filesystem:",
491
+ "javascript:"
492
+ ];
493
+ function xe(e) {
494
+ try {
495
+ return be.includes(new URL(e).protocol);
496
+ } catch {
497
+ return !1;
498
+ }
499
+ }
500
+ var z = e.createContext(null);
501
+ z.displayName = "DataRouter";
502
+ var B = e.createContext(null);
503
+ B.displayName = "DataRouterState";
504
+ var Se = e.createContext(!1);
505
+ function Ce() {
506
+ return e.useContext(Se);
507
+ }
508
+ var we = e.createContext({ isTransitioning: !1 });
509
+ we.displayName = "ViewTransition";
510
+ var Te = e.createContext(/* @__PURE__ */ new Map());
511
+ Te.displayName = "Fetchers";
512
+ var Ee = e.createContext(null);
513
+ Ee.displayName = "Await";
514
+ var V = e.createContext(null);
515
+ V.displayName = "Navigation";
516
+ var H = e.createContext(null);
517
+ H.displayName = "Location";
518
+ var U = e.createContext({
519
+ outlet: null,
520
+ matches: [],
521
+ isDataRoute: !1
522
+ });
523
+ U.displayName = "Route";
524
+ var De = e.createContext(null);
525
+ De.displayName = "RouteError";
526
+ var Oe = "REACT_ROUTER_ERROR", ke = "REDIRECT", Ae = "ROUTE_ERROR_RESPONSE";
527
+ function je(e) {
528
+ if (e.startsWith(`${Oe}:${ke}:{`)) try {
529
+ let t = JSON.parse(e.slice(28));
530
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
531
+ } catch {}
532
+ }
533
+ function Me(e) {
534
+ if (e.startsWith(`${Oe}:${Ae}:{`)) try {
535
+ let t = JSON.parse(e.slice(40));
536
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new le(t.status, t.statusText, t.data);
537
+ } catch {}
538
+ }
539
+ function Ne(t, { relative: n } = {}) {
540
+ u(W(), "useHref() may be used only in the context of a <Router> component.");
541
+ let { basename: r, navigator: i } = e.useContext(V), { hash: a, pathname: o, search: s } = K(t, { relative: n }), c = o;
542
+ return r !== "/" && (c = o === "/" ? r : I([r, o])), i.createHref({
543
+ pathname: c,
544
+ search: s,
545
+ hash: a
546
+ });
547
+ }
548
+ function W() {
549
+ return e.useContext(H) != null;
550
+ }
551
+ function G() {
552
+ return u(W(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(H).location;
553
+ }
554
+ var Pe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
555
+ function Fe(t) {
556
+ e.useContext(V).static || e.useLayoutEffect(t);
557
+ }
558
+ function Ie() {
559
+ let { isDataRoute: t } = e.useContext(U);
560
+ return t ? $e() : Le();
561
+ }
562
+ function Le() {
563
+ u(W(), "useNavigate() may be used only in the context of a <Router> component.");
564
+ let t = e.useContext(z), { basename: n, navigator: r } = e.useContext(V), { matches: i } = e.useContext(U), { pathname: a } = G(), o = JSON.stringify(P(i)), s = e.useRef(!1);
565
+ return Fe(() => {
566
+ s.current = !0;
567
+ }), e.useCallback((e, i = {}) => {
568
+ if (d(s.current, Pe), !s.current) return;
569
+ if (typeof e == "number") {
570
+ r.go(e);
571
+ return;
572
+ }
573
+ let c = F(e, JSON.parse(o), a, i.relative === "path");
574
+ t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : I([n, c.pathname])), _e(typeof e == "string" ? e : f(e), r.createHref(c), he(r), "reject"), (i.replace ? r.replace : r.push)(c, i.state, i);
575
+ }, [
576
+ n,
577
+ r,
578
+ o,
579
+ a,
580
+ t
581
+ ]);
582
+ }
583
+ e.createContext(null);
584
+ function K(t, { relative: n } = {}) {
585
+ let { matches: r } = e.useContext(U), { pathname: i } = G(), a = JSON.stringify(P(r));
586
+ return e.useMemo(() => F(t, JSON.parse(a), i, n === "path"), [
587
+ t,
588
+ a,
589
+ i,
590
+ n
591
+ ]);
592
+ }
593
+ function Re(t, n, r) {
594
+ u(W(), "useRoutes() may be used only in the context of a <Router> component.");
595
+ let { navigator: i } = e.useContext(V), { matches: a } = e.useContext(U), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", f = o && o.route;
596
+ {
597
+ let e = f && f.path || "";
598
+ tt(c, !f || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
599
+
600
+ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
601
+ }
602
+ let h = G(), g;
603
+ if (n) {
604
+ let e = typeof n == "string" ? p(n) : n;
605
+ u(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), g = e;
606
+ } else g = h;
607
+ let _ = g.pathname || "/", v = _;
608
+ if (l !== "/") {
609
+ let e = l.replace(/^\//, "").split("/");
610
+ v = "/" + _.replace(/^\//, "").split("/").slice(e.length).join("/");
611
+ }
612
+ let y = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : m(t, { pathname: v });
613
+ d(f || y != null, `No routes matched location "${g.pathname}${g.search}${g.hash}" `), d(y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0, `Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
614
+ let b = Ge(y && y.map((e) => Object.assign({}, e, {
615
+ params: Object.assign({}, s, e.params),
616
+ pathname: I([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
617
+ pathnameBase: e.pathnameBase === "/" ? l : I([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
618
+ })), a, r);
619
+ return n && b ? /* @__PURE__ */ e.createElement(H.Provider, { value: {
620
+ location: {
621
+ pathname: "/",
622
+ search: "",
623
+ hash: "",
624
+ state: null,
625
+ key: "default",
626
+ mask: void 0,
627
+ ...g
628
+ },
629
+ navigationType: "POP"
630
+ } }, b) : b;
631
+ }
632
+ function ze() {
633
+ let t = Qe(), n = ue(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
634
+ padding: "0.5rem",
635
+ backgroundColor: i
636
+ }, o = {
637
+ padding: "2px 4px",
638
+ backgroundColor: i
639
+ }, s = null;
640
+ return console.error("Error handled by React Router default ErrorBoundary:", t), s = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ e.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ e.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ e.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ e.createElement("h3", { style: { fontStyle: "italic" } }, n), r ? /* @__PURE__ */ e.createElement("pre", { style: a }, r) : null, s);
641
+ }
642
+ var Be = /* @__PURE__ */ e.createElement(ze, null), Ve = class extends e.Component {
643
+ constructor(e) {
644
+ super(e), this.state = {
645
+ location: e.location,
646
+ revalidation: e.revalidation,
647
+ error: e.error
648
+ };
649
+ }
650
+ static getDerivedStateFromError(e) {
651
+ return { error: e };
652
+ }
653
+ static getDerivedStateFromProps(e, t) {
654
+ return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
655
+ error: e.error,
656
+ location: e.location,
657
+ revalidation: e.revalidation
658
+ } : {
659
+ error: e.error === void 0 ? t.error : e.error,
660
+ location: t.location,
661
+ revalidation: e.revalidation || t.revalidation
662
+ };
663
+ }
664
+ componentDidCatch(e, t) {
665
+ this.props.onError ? this.props.onError(e, t) : console.error("React Router caught the following error during render", e);
666
+ }
667
+ render() {
668
+ let t = this.state.error;
669
+ if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
670
+ let e = Me(t.digest);
671
+ e && (t = e);
672
+ }
673
+ let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(U.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(De.Provider, {
674
+ value: t,
675
+ children: this.props.component
676
+ }));
677
+ return this.context ? /* @__PURE__ */ e.createElement(Ue, { error: t }, n) : n;
678
+ }
679
+ };
680
+ Ve.contextType = Se;
681
+ var He = /* @__PURE__ */ new WeakMap();
682
+ function Ue({ children: t, error: n }) {
683
+ let { basename: r, navigator: i } = e.useContext(V);
684
+ if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
685
+ let t = je(n.digest);
686
+ if (t) {
687
+ let a = He.get(n);
688
+ if (a) throw a;
689
+ let o = pe(t.location, r), s = o.absoluteURL || o.to;
690
+ if (_e(t.location, s, he(i), "allow-explicit"), xe(s)) throw Error("Invalid redirect location");
691
+ if (fe && !He.get(n)) {
692
+ if (o.isExternal || t.reloadDocument) window.location.href = s;
693
+ else {
694
+ let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(o.to, { replace: t.replace }));
695
+ throw He.set(n, e), e;
696
+ }
697
+ }
698
+ return /* @__PURE__ */ e.createElement("meta", {
699
+ httpEquiv: "refresh",
700
+ content: `0;url=${s}`
701
+ });
702
+ }
703
+ }
704
+ return t;
705
+ }
706
+ function We({ routeContext: t, match: n, children: r }) {
707
+ let i = e.useContext(z);
708
+ return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(U.Provider, { value: t }, r);
709
+ }
710
+ function Ge(t, n = [], r) {
711
+ let i = r?.state;
712
+ if (t == null) {
713
+ if (!i) return null;
714
+ if (i.errors) t = i.matches;
715
+ else if (n.length === 0 && !i.initialized && i.matches.length > 0) t = i.matches;
716
+ else return null;
717
+ }
718
+ let a = t, o = i?.errors;
719
+ if (o != null) {
720
+ let e = a.findIndex((e) => e.route.id && o?.[e.route.id] !== void 0);
721
+ u(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
722
+ }
723
+ let s = !1, c = -1;
724
+ if (r && i) {
725
+ s = i.renderFallback;
726
+ for (let e = 0; e < a.length; e++) {
727
+ let t = a[e];
728
+ if ((t.route.HydrateFallback || t.route.hydrateFallbackElement) && (c = e), t.route.id) {
729
+ let { loaderData: e, errors: n } = i, o = t.route.loader && !e.hasOwnProperty(t.route.id) && (!n || n[t.route.id] === void 0);
730
+ if (t.route.lazy || o) {
731
+ r.isStatic && (s = !0), a = c >= 0 ? a.slice(0, c + 1) : [a[0]];
732
+ break;
733
+ }
734
+ }
735
+ }
736
+ }
737
+ let l = r?.onError, d = i && l ? (e, t) => {
738
+ l(e, {
739
+ location: i.location,
740
+ params: i.matches?.[0]?.params ?? {},
741
+ pattern: de(i.matches),
742
+ errorInfo: t
743
+ });
744
+ } : void 0;
745
+ return a.reduceRight((t, r, l) => {
746
+ let u, f = !1, p = null, m = null;
747
+ i && (u = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || Be, s && (c < 0 && l === 0 ? (tt("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : c === l && (f = !0, m = r.route.hydrateFallbackElement || null)));
748
+ let h = n.concat(a.slice(0, l + 1)), g = () => {
749
+ let n;
750
+ return n = u ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(We, {
751
+ match: r,
752
+ routeContext: {
753
+ outlet: t,
754
+ matches: h,
755
+ isDataRoute: i != null
756
+ },
757
+ children: n
758
+ });
759
+ };
760
+ return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(Ve, {
761
+ location: i.location,
762
+ revalidation: i.revalidation,
763
+ component: p,
764
+ error: u,
765
+ children: g(),
766
+ routeContext: {
767
+ outlet: null,
768
+ matches: h,
769
+ isDataRoute: !0
770
+ },
771
+ onError: d
772
+ }) : g();
773
+ }, null);
774
+ }
775
+ function Ke(e) {
776
+ return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
777
+ }
778
+ function qe(t) {
779
+ let n = e.useContext(z);
780
+ return u(n, Ke(t)), n;
781
+ }
782
+ function Je(t) {
783
+ let n = e.useContext(B);
784
+ return u(n, Ke(t)), n;
785
+ }
786
+ function Ye(t) {
787
+ let n = e.useContext(U);
788
+ return u(n, Ke(t)), n;
789
+ }
790
+ function Xe(e) {
791
+ let t = Ye(e), n = t.matches[t.matches.length - 1];
792
+ return u(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
793
+ }
794
+ function Ze() {
795
+ return Xe("useRouteId");
796
+ }
797
+ function Qe() {
798
+ let t = e.useContext(De), n = Je("useRouteError"), r = Xe("useRouteError");
799
+ return t === void 0 ? n.errors?.[r] : t;
800
+ }
801
+ function $e() {
802
+ let { router: t } = qe("useNavigate"), n = Xe("useNavigate"), r = e.useRef(!1);
803
+ return Fe(() => {
804
+ r.current = !0;
805
+ }), e.useCallback(async (e, i = {}) => {
806
+ d(r.current, Pe), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
807
+ fromRouteId: n,
808
+ ...i
809
+ }));
810
+ }, [t, n]);
811
+ }
812
+ var et = {};
813
+ function tt(e, t, n) {
814
+ !t && !et[e] && (et[e] = !0, d(!1, n));
815
+ }
816
+ e.memo(nt);
817
+ function nt({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
818
+ return Re(e, void 0, {
819
+ manifest: t,
820
+ state: r,
821
+ isStatic: i,
822
+ onError: a,
823
+ future: n
824
+ });
825
+ }
826
+ e.Component;
827
+ var q = "get", J = "application/x-www-form-urlencoded";
828
+ function Y(e) {
829
+ return typeof HTMLElement < "u" && e instanceof HTMLElement;
830
+ }
831
+ function rt(e) {
832
+ return Y(e) && e.tagName.toLowerCase() === "button";
833
+ }
834
+ function it(e) {
835
+ return Y(e) && e.tagName.toLowerCase() === "form";
836
+ }
837
+ function at(e) {
838
+ return Y(e) && e.tagName.toLowerCase() === "input";
839
+ }
840
+ function ot(e) {
841
+ return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
842
+ }
843
+ function st(e, t) {
844
+ return e.button === 0 && (!t || t === "_self") && !ot(e);
845
+ }
846
+ var X = null;
847
+ function ct() {
848
+ if (X === null) try {
849
+ new FormData(document.createElement("form"), 0), X = !1;
850
+ } catch {
851
+ X = !0;
852
+ }
853
+ return X;
854
+ }
855
+ var lt = /* @__PURE__ */ new Set([
856
+ "application/x-www-form-urlencoded",
857
+ "multipart/form-data",
858
+ "text/plain"
859
+ ]);
860
+ function ut(e) {
861
+ return e != null && !lt.has(e) ? (d(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${J}"`), null) : e;
862
+ }
863
+ function dt(e, t) {
864
+ let n, r, i, a, o;
865
+ if (it(e)) {
866
+ let o = e.getAttribute("action");
867
+ r = o ? j(o, t) : null, n = e.getAttribute("method") || q, i = ut(e.getAttribute("enctype")) || J, a = new FormData(e);
868
+ } else if (rt(e) || at(e) && (e.type === "submit" || e.type === "image")) {
869
+ let o = e.form;
870
+ if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
871
+ let s = e.getAttribute("formaction") || o.getAttribute("action");
872
+ if (r = s ? j(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || q, i = ut(e.getAttribute("formenctype")) || ut(o.getAttribute("enctype")) || J, a = new FormData(o, e), !ct()) {
873
+ let { name: t, type: n, value: r } = e;
874
+ if (n === "image") {
875
+ let e = t ? `${t}.` : "";
876
+ a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
877
+ } else t && a.append(t, r);
878
+ }
879
+ } else if (Y(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
880
+ else n = q, r = null, i = J, o = e;
881
+ return a && i === "text/plain" && (o = a, a = void 0), {
882
+ action: r,
883
+ method: n.toLowerCase(),
884
+ encType: i,
885
+ formData: a,
886
+ body: o
887
+ };
888
+ }
889
+ Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
890
+ function ft(e, t) {
891
+ if (e === !1 || e == null) throw Error(t);
892
+ }
893
+ function pt(e, t, n, r) {
894
+ let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
895
+ return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && j(i.pathname, t) === "/" ? `${L(t)}/_root.${r}` : `${L(i.pathname)}.${r}`, i;
896
+ }
897
+ async function mt(e, t) {
898
+ if (e.id in t) return t[e.id];
899
+ try {
900
+ let n = await import(
901
+ /* @vite-ignore */
902
+ /* webpackIgnore: true */
903
+ e.module
904
+ );
905
+ return t[e.id] = n, n;
906
+ } catch (t) {
907
+ return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
908
+ }
909
+ }
910
+ function ht(e) {
911
+ return e != null && typeof e.page == "string";
912
+ }
913
+ function gt(e) {
914
+ return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
915
+ }
916
+ async function _t(e, t, n) {
917
+ return St((await Promise.all(e.map(async (e) => {
918
+ let r = t.routes[e.route.id];
919
+ if (r) {
920
+ let e = await mt(r, n);
921
+ return e.links ? e.links() : [];
922
+ }
923
+ return [];
924
+ }))).flat(1).filter(gt).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
925
+ ...e,
926
+ rel: "prefetch",
927
+ as: "style"
928
+ } : {
929
+ ...e,
930
+ rel: "prefetch"
931
+ }));
932
+ }
933
+ function vt(e, t, n, r, i, a) {
934
+ let o = (e, t) => !n[t] || e.route.id !== n[t].route.id, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
935
+ return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
936
+ let c = r.routes[t.route.id];
937
+ if (!c || !c.hasLoader) return !1;
938
+ if (o(t, a) || s(t, a)) return !0;
939
+ if (t.route.shouldRevalidate) {
940
+ let r = t.route.shouldRevalidate({
941
+ currentUrl: new URL(i.pathname + i.search + i.hash, window.origin),
942
+ currentParams: n[0]?.params || {},
943
+ nextUrl: new URL(e, window.origin),
944
+ nextParams: t.params,
945
+ defaultShouldRevalidate: !0
946
+ });
947
+ if (typeof r == "boolean") return r;
948
+ }
949
+ return !0;
950
+ }) : [];
951
+ }
952
+ function yt(e, t, { includeHydrateFallback: n } = {}) {
953
+ return bt(e.map((e) => {
954
+ let r = t.routes[e.route.id];
955
+ if (!r) return [];
956
+ let i = [r.module];
957
+ return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
958
+ }).flat(1));
959
+ }
960
+ function bt(e) {
961
+ return [...new Set(e)];
962
+ }
963
+ function xt(e) {
964
+ let t = {}, n = Object.keys(e).sort();
965
+ for (let r of n) t[r] = e[r];
966
+ return t;
967
+ }
968
+ function St(e, t) {
969
+ let n = /* @__PURE__ */ new Set(), r = new Set(t);
970
+ return e.reduce((e, i) => {
971
+ if (t && !ht(i) && i.as === "script" && i.href && r.has(i.href)) return e;
972
+ let a = JSON.stringify(xt(i));
973
+ return n.has(a) || (n.add(a), e.push({
974
+ key: a,
975
+ link: i
976
+ })), e;
977
+ }, []);
978
+ }
979
+ function Ct() {
980
+ let t = e.useContext(z);
981
+ return ft(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
982
+ }
983
+ function wt() {
984
+ let t = e.useContext(B);
985
+ return ft(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
986
+ }
987
+ var Tt = e.createContext(void 0);
988
+ Tt.displayName = "FrameworkContext";
989
+ function Z() {
990
+ let t = e.useContext(Tt);
991
+ return ft(t, "You must render this element inside a <HydratedRouter> element"), t;
992
+ }
993
+ function Et(t, n) {
994
+ let r = e.useContext(Tt), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
995
+ e.useEffect(() => {
996
+ if (t === "render" && s(!0), t === "viewport") {
997
+ let e = new IntersectionObserver((e) => {
998
+ e.forEach((e) => {
999
+ s(e.isIntersecting);
1000
+ });
1001
+ }, { threshold: .5 });
1002
+ return p.current && e.observe(p.current), () => {
1003
+ e.disconnect();
1004
+ };
1005
+ }
1006
+ }, [t]), e.useEffect(() => {
1007
+ if (i) {
1008
+ let e = setTimeout(() => {
1009
+ s(!0);
1010
+ }, 100);
1011
+ return () => {
1012
+ clearTimeout(e);
1013
+ };
1014
+ }
1015
+ }, [i]);
1016
+ let m = () => {
1017
+ a(!0);
1018
+ }, h = () => {
1019
+ a(!1), s(!1);
1020
+ };
1021
+ return r ? t === "intent" ? [
1022
+ o,
1023
+ p,
1024
+ {
1025
+ onFocus: Q(c, m),
1026
+ onBlur: Q(l, h),
1027
+ onMouseEnter: Q(u, m),
1028
+ onMouseLeave: Q(d, h),
1029
+ onTouchStart: Q(f, m)
1030
+ }
1031
+ ] : [
1032
+ o,
1033
+ p,
1034
+ {}
1035
+ ] : [
1036
+ !1,
1037
+ p,
1038
+ {}
1039
+ ];
1040
+ }
1041
+ function Q(e, t) {
1042
+ return (n) => {
1043
+ e && e(n), n.defaultPrevented || t(n);
1044
+ };
1045
+ }
1046
+ function Dt({ page: t, ...n }) {
1047
+ let r = Ce(), { nonce: i } = Z(), { router: a } = Ct(), o = e.useMemo(() => m(a.routes, t, a.basename), [
1048
+ a.routes,
1049
+ t,
1050
+ a.basename
1051
+ ]);
1052
+ return o ? (n.nonce == null && i && (n = {
1053
+ ...n,
1054
+ nonce: i
1055
+ }), r ? /* @__PURE__ */ e.createElement(kt, {
1056
+ page: t,
1057
+ matches: o,
1058
+ ...n
1059
+ }) : /* @__PURE__ */ e.createElement(At, {
1060
+ page: t,
1061
+ matches: o,
1062
+ ...n
1063
+ })) : null;
1064
+ }
1065
+ function Ot(t) {
1066
+ let { manifest: n, routeModules: r } = Z(), [i, a] = e.useState([]);
1067
+ return e.useEffect(() => {
1068
+ let e = !1;
1069
+ return _t(t, n, r).then((t) => {
1070
+ e || a(t);
1071
+ }), () => {
1072
+ e = !0;
1073
+ };
1074
+ }, [
1075
+ t,
1076
+ n,
1077
+ r
1078
+ ]), i;
1079
+ }
1080
+ function kt({ page: t, matches: n, ...r }) {
1081
+ let i = G(), { future: a } = Z(), { basename: o } = Ct(), s = e.useMemo(() => {
1082
+ if (t === i.pathname + i.search + i.hash) return [];
1083
+ let e = pt(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
1084
+ for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
1085
+ return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
1086
+ }, [
1087
+ o,
1088
+ a.v8_trailingSlashAwareDataRequests,
1089
+ t,
1090
+ i,
1091
+ n
1092
+ ]);
1093
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, s.map((t) => /* @__PURE__ */ e.createElement("link", {
1094
+ key: t,
1095
+ rel: "prefetch",
1096
+ as: "fetch",
1097
+ href: t,
1098
+ ...r
1099
+ })));
1100
+ }
1101
+ function At({ page: t, matches: n, ...r }) {
1102
+ let i = G(), { future: a, manifest: o, routeModules: s } = Z(), { basename: c } = Ct(), { loaderData: l, matches: u } = wt(), d = e.useMemo(() => vt(t, n, u, o, i, "data"), [
1103
+ t,
1104
+ n,
1105
+ u,
1106
+ o,
1107
+ i
1108
+ ]), f = e.useMemo(() => vt(t, n, u, o, i, "assets"), [
1109
+ t,
1110
+ n,
1111
+ u,
1112
+ o,
1113
+ i
1114
+ ]), p = e.useMemo(() => {
1115
+ if (t === i.pathname + i.search + i.hash) return [];
1116
+ let e = /* @__PURE__ */ new Set(), r = !1;
1117
+ if (n.forEach((t) => {
1118
+ let n = o.routes[t.route.id];
1119
+ n && n.hasLoader && (!d.some((e) => e.route.id === t.route.id) && t.route.id in l && s[t.route.id]?.shouldRevalidate || n.hasClientLoader ? r = !0 : e.add(t.route.id));
1120
+ }), e.size === 0) return [];
1121
+ let u = pt(t, c, a.v8_trailingSlashAwareDataRequests, "data");
1122
+ return r && e.size > 0 && u.searchParams.set("_routes", n.filter((t) => e.has(t.route.id)).map((e) => e.route.id).join(",")), [u.pathname + u.search];
1123
+ }, [
1124
+ c,
1125
+ a.v8_trailingSlashAwareDataRequests,
1126
+ l,
1127
+ i,
1128
+ o,
1129
+ d,
1130
+ n,
1131
+ t,
1132
+ s
1133
+ ]), m = e.useMemo(() => yt(f, o), [f, o]), h = Ot(f);
1134
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
1135
+ key: t,
1136
+ rel: "prefetch",
1137
+ as: "fetch",
1138
+ href: t,
1139
+ ...r
1140
+ })), m.map((t) => /* @__PURE__ */ e.createElement("link", {
1141
+ key: t,
1142
+ rel: "modulepreload",
1143
+ href: t,
1144
+ ...r
1145
+ })), h.map(({ key: t, link: n }) => /* @__PURE__ */ e.createElement("link", {
1146
+ key: t,
1147
+ nonce: r.nonce,
1148
+ ...n,
1149
+ crossOrigin: n.crossOrigin ?? r.crossOrigin
1150
+ })));
1151
+ }
1152
+ function jt(...e) {
1153
+ return (t) => {
1154
+ e.forEach((e) => {
1155
+ typeof e == "function" ? e(t) : e != null && (e.current = t);
1156
+ });
1157
+ };
1158
+ }
1159
+ e.Component;
1160
+ var Mt = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
1161
+ try {
1162
+ Mt && (window.__reactRouterVersion = "7.18.3");
1163
+ } catch {}
1164
+ var Nt = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: c, state: l, target: u, to: d, preventScrollReset: f, viewTransition: p, defaultShouldRevalidate: m, ...h }, g) {
1165
+ let { basename: _, navigator: v, useTransitions: y } = e.useContext(V), b = typeof d == "string" && s.test(d), x = pe(d, _);
1166
+ d = x.to;
1167
+ let S = Ne(d, { relative: i }), C = G(), w = null;
1168
+ if (c) {
1169
+ let e = F(c, [], C.mask ? C.mask.pathname : "/", !0);
1170
+ _ !== "/" && (e.pathname = e.pathname === "/" ? _ : I([_, e.pathname])), w = v.createHref(e);
1171
+ }
1172
+ let [T, E, D] = Et(r, h), ee = Lt(d, {
1173
+ replace: o,
1174
+ mask: c,
1175
+ state: l,
1176
+ target: u,
1177
+ preventScrollReset: f,
1178
+ relative: i,
1179
+ viewTransition: p,
1180
+ defaultShouldRevalidate: m,
1181
+ useTransitions: y
1182
+ });
1183
+ function te(e) {
1184
+ t && t(e), e.defaultPrevented || ee(e);
1185
+ }
1186
+ let O = !(x.isExternal || a), k = /* @__PURE__ */ e.createElement("a", {
1187
+ ...h,
1188
+ ...D,
1189
+ href: (O ? w : void 0) || x.absoluteURL || S,
1190
+ onClick: O ? te : t,
1191
+ ref: jt(g, E),
1192
+ target: u,
1193
+ "data-discover": !b && n === "render" ? "true" : void 0
1194
+ });
1195
+ return T && !b ? /* @__PURE__ */ e.createElement(e.Fragment, null, k, /* @__PURE__ */ e.createElement(Dt, { page: S })) : k;
1196
+ });
1197
+ Nt.displayName = "Link";
1198
+ var $ = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
1199
+ let d = K(o, { relative: l.relative }), f = G(), p = e.useContext(B), { navigator: m, basename: h } = e.useContext(V), g = p != null && Ht(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1200
+ n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = j(y, h) || y);
1201
+ let b = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length, x = v === _ || !i && v.startsWith(_) && v.charAt(b) === "/", S = y != null && (y === _ || !i && y.startsWith(_) && y.charAt(_.length) === "/"), C = {
1202
+ isActive: x,
1203
+ isPending: S,
1204
+ isTransitioning: g
1205
+ }, w = x ? t : void 0, T;
1206
+ T = typeof r == "function" ? r(C) : [
1207
+ r,
1208
+ x ? "active" : null,
1209
+ S ? "pending" : null,
1210
+ g ? "transitioning" : null
1211
+ ].filter(Boolean).join(" ");
1212
+ let E = typeof a == "function" ? a(C) : a;
1213
+ return /* @__PURE__ */ e.createElement(Nt, {
1214
+ ...l,
1215
+ "aria-current": w,
1216
+ className: T,
1217
+ ref: u,
1218
+ style: E,
1219
+ to: o,
1220
+ viewTransition: s
1221
+ }, typeof c == "function" ? c(C) : c);
1222
+ });
1223
+ $.displayName = "NavLink";
1224
+ var Pt = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: c = q, action: l, onSubmit: u, relative: d, preventScrollReset: f, viewTransition: p, defaultShouldRevalidate: m, ...h }, g) => {
1225
+ let { useTransitions: _ } = e.useContext(V), v = Bt(), y = Vt(l, { relative: d }), b = c.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && s.test(l);
1226
+ return /* @__PURE__ */ e.createElement("form", {
1227
+ ref: g,
1228
+ method: b,
1229
+ action: y,
1230
+ onSubmit: i ? u : (t) => {
1231
+ if (u && u(t), t.defaultPrevented) return;
1232
+ t.preventDefault();
1233
+ let i = t.nativeEvent.submitter, s = i?.getAttribute("formmethod") || c, l = () => v(i || t.currentTarget, {
1234
+ fetcherKey: n,
1235
+ method: s,
1236
+ navigate: r,
1237
+ replace: a,
1238
+ state: o,
1239
+ relative: d,
1240
+ preventScrollReset: f,
1241
+ viewTransition: p,
1242
+ defaultShouldRevalidate: m
1243
+ });
1244
+ _ && r !== !1 ? e.startTransition(() => l()) : l();
1245
+ },
1246
+ ...h,
1247
+ "data-discover": !x && t === "render" ? "true" : void 0
1248
+ });
1249
+ });
1250
+ Pt.displayName = "Form";
1251
+ function Ft(e) {
1252
+ return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1253
+ }
1254
+ function It(t) {
1255
+ let n = e.useContext(z);
1256
+ return u(n, Ft(t)), n;
1257
+ }
1258
+ function Lt(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
1259
+ let d = Ie(), p = G(), m = K(t, { relative: s });
1260
+ return e.useCallback((h) => {
1261
+ if (st(h, n)) {
1262
+ h.preventDefault();
1263
+ let n = r === void 0 ? f(p) === f(m) : r, g = () => d(t, {
1264
+ replace: n,
1265
+ mask: i,
1266
+ state: a,
1267
+ preventScrollReset: o,
1268
+ relative: s,
1269
+ viewTransition: c,
1270
+ defaultShouldRevalidate: l
1271
+ });
1272
+ u ? e.startTransition(() => g()) : g();
1273
+ }
1274
+ }, [
1275
+ p,
1276
+ d,
1277
+ m,
1278
+ r,
1279
+ i,
1280
+ a,
1281
+ n,
1282
+ t,
1283
+ o,
1284
+ s,
1285
+ c,
1286
+ l,
1287
+ u
1288
+ ]);
1289
+ }
1290
+ var Rt = 0, zt = () => `__${String(++Rt)}__`;
1291
+ function Bt() {
1292
+ let { router: t } = It("useSubmit"), { basename: n } = e.useContext(V), r = Ze(), i = t.fetch, a = t.navigate;
1293
+ return e.useCallback(async (e, t = {}) => {
1294
+ let { action: o, method: s, encType: c, formData: l, body: u } = dt(e, n);
1295
+ if (t.navigate === !1) {
1296
+ let e = t.fetcherKey || zt();
1297
+ await i(e, r, t.action || o, {
1298
+ defaultShouldRevalidate: t.defaultShouldRevalidate,
1299
+ preventScrollReset: t.preventScrollReset,
1300
+ formData: l,
1301
+ body: u,
1302
+ formMethod: t.method || s,
1303
+ formEncType: t.encType || c,
1304
+ flushSync: t.flushSync
1305
+ });
1306
+ } else await a(t.action || o, {
1307
+ defaultShouldRevalidate: t.defaultShouldRevalidate,
1308
+ preventScrollReset: t.preventScrollReset,
1309
+ formData: l,
1310
+ body: u,
1311
+ formMethod: t.method || s,
1312
+ formEncType: t.encType || c,
1313
+ replace: t.replace,
1314
+ state: t.state,
1315
+ fromRouteId: r,
1316
+ flushSync: t.flushSync,
1317
+ viewTransition: t.viewTransition
1318
+ });
1319
+ }, [
1320
+ i,
1321
+ a,
1322
+ n,
1323
+ r
1324
+ ]);
1325
+ }
1326
+ function Vt(t, { relative: n } = {}) {
1327
+ let { basename: r } = e.useContext(V), i = e.useContext(U);
1328
+ u(i, "useFormAction must be used inside a RouteContext");
1329
+ let [a] = i.matches.slice(-1), o = { ...K(t || ".", { relative: n }) }, s = G();
1330
+ if (t == null) {
1331
+ o.search = s.search;
1332
+ let e = new URLSearchParams(o.search), t = e.getAll("index");
1333
+ if (t.some((e) => e === "")) {
1334
+ e.delete("index"), t.filter((e) => e).forEach((t) => e.append("index", t));
1335
+ let n = e.toString();
1336
+ o.search = n ? `?${n}` : "";
1337
+ }
1338
+ }
1339
+ return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : I([r, o.pathname])), f(o);
1340
+ }
1341
+ function Ht(t, { relative: n } = {}) {
1342
+ let r = e.useContext(we);
1343
+ u(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
1344
+ let { basename: i } = It("useViewTransitionState"), a = K(t, { relative: n });
1345
+ if (!r.isTransitioning) return !1;
1346
+ let o = j(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = j(r.nextLocation.pathname, i) || r.nextLocation.pathname;
1347
+ return O(a.pathname, s) != null || O(a.pathname, o) != null;
1348
+ }
1349
+ //#endregion
1350
+ //#region components/Navbar.jsx
1351
+ var Ut = () => /* @__PURE__ */ (0, a.jsx)(a.Fragment, { children: /* @__PURE__ */ (0, a.jsxs)("nav", {
1352
+ className: "navbar",
1353
+ children: [/* @__PURE__ */ (0, a.jsx)("div", {
1354
+ className: "navbar-logo",
1355
+ children: "SRKI"
1356
+ }), /* @__PURE__ */ (0, a.jsxs)("ul", {
1357
+ className: "navbar-menu",
1358
+ children: [
1359
+ /* @__PURE__ */ (0, a.jsx)("li", { children: /* @__PURE__ */ (0, a.jsx)($, {
1360
+ className: "nav-links",
1361
+ to: "/",
1362
+ children: "Home"
1363
+ }) }),
1364
+ /* @__PURE__ */ (0, a.jsx)("li", { children: /* @__PURE__ */ (0, a.jsx)($, {
1365
+ className: "nav-links",
1366
+ to: "/About",
1367
+ children: "About"
1368
+ }) }),
1369
+ /* @__PURE__ */ (0, a.jsx)("li", { children: /* @__PURE__ */ (0, a.jsx)($, {
1370
+ className: "nav-links",
1371
+ to: "/Students",
1372
+ children: "Students"
1373
+ }) })
1374
+ ]
1375
+ })]
1376
+ }) }), Wt = () => /* @__PURE__ */ (0, a.jsx)(a.Fragment, { children: /* @__PURE__ */ (0, a.jsx)("h1", { children: "Home" }) }), Gt = () => /* @__PURE__ */ (0, a.jsx)(a.Fragment, { children: /* @__PURE__ */ (0, a.jsx)("h1", { children: "Students" }) });
1377
+ //#endregion
1378
+ export { o as About, Ut as Header, Wt as Home, Gt as Students };