ingeniuscliq-core 0.0.9 → 0.0.10

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 (140) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +31 -2729
  3. package/package.json +2 -12
  4. package/dist/core/classes/CoreBuilder.d.ts +0 -3
  5. package/dist/core/components/config.d.ts +0 -1
  6. package/dist/core/components/customs/carousel/CustomCarousel.d.ts +0 -7
  7. package/dist/core/components/customs/carousel/CustomCarouselSection.d.ts +0 -11
  8. package/dist/core/components/customs/form/CustomFormField.d.ts +0 -12
  9. package/dist/core/components/customs/form/FormInput.d.ts +0 -16
  10. package/dist/core/components/customs/form/FormTextArea.d.ts +0 -9
  11. package/dist/core/components/customs/form/FormWrapper.d.ts +0 -8
  12. package/dist/core/components/customs/logo/Logo.d.ts +0 -6
  13. package/dist/core/components/customs/pagination/CustomPagination.d.ts +0 -7
  14. package/dist/core/components/customs/select/CustomSelect.d.ts +0 -10
  15. package/dist/core/components/customs/spinner/Spinner.d.ts +0 -7
  16. package/dist/core/components/layouts/CoreBaseLayout.d.ts +0 -9
  17. package/dist/core/components/templates/CoreHomeLayout.d.ts +0 -5
  18. package/dist/core/components/templates/CorePreviewLayout.d.ts +0 -2
  19. package/dist/core/components/templates/partials/CoreFooter.d.ts +0 -1
  20. package/dist/core/components/templates/partials/CoreHeader.d.ts +0 -6
  21. package/dist/core/components/templates/partials/CoreMainSearch.d.ts +0 -8
  22. package/dist/core/components/templates/partials/CoreNavbar.d.ts +0 -8
  23. package/dist/core/components/templates/partials/CoreSubMenu.d.ts +0 -6
  24. package/dist/core/components/templates/partials/CoreSubMenuHeader.d.ts +0 -7
  25. package/dist/core/components/templates/partials/DynamicHeader.d.ts +0 -7
  26. package/dist/core/components/templates/partials/DynamicMain.d.ts +0 -5
  27. package/dist/core/components/ui/accordion.d.ts +0 -7
  28. package/dist/core/components/ui/alert-dialog.d.ts +0 -14
  29. package/dist/core/components/ui/alert.d.ts +0 -9
  30. package/dist/core/components/ui/avatar.d.ts +0 -6
  31. package/dist/core/components/ui/badge.d.ts +0 -9
  32. package/dist/core/components/ui/breadcrumb.d.ts +0 -11
  33. package/dist/core/components/ui/button.d.ts +0 -10
  34. package/dist/core/components/ui/calendar.d.ts +0 -4
  35. package/dist/core/components/ui/card.d.ts +0 -9
  36. package/dist/core/components/ui/carousel.d.ts +0 -19
  37. package/dist/core/components/ui/checkbox.d.ts +0 -4
  38. package/dist/core/components/ui/dialog.d.ts +0 -15
  39. package/dist/core/components/ui/drawer.d.ts +0 -13
  40. package/dist/core/components/ui/dropdown-menu.d.ts +0 -25
  41. package/dist/core/components/ui/form.d.ts +0 -24
  42. package/dist/core/components/ui/input.d.ts +0 -5
  43. package/dist/core/components/ui/label.d.ts +0 -4
  44. package/dist/core/components/ui/navigation-menu.d.ts +0 -14
  45. package/dist/core/components/ui/pagination.d.ts +0 -13
  46. package/dist/core/components/ui/popover.d.ts +0 -7
  47. package/dist/core/components/ui/radio-group.d.ts +0 -5
  48. package/dist/core/components/ui/select.d.ts +0 -15
  49. package/dist/core/components/ui/separator.d.ts +0 -4
  50. package/dist/core/components/ui/sheet.d.ts +0 -13
  51. package/dist/core/components/ui/sidebar.d.ts +0 -69
  52. package/dist/core/components/ui/skeleton.d.ts +0 -2
  53. package/dist/core/components/ui/slider.d.ts +0 -4
  54. package/dist/core/components/ui/sonner.d.ts +0 -3
  55. package/dist/core/components/ui/stepper.d.ts +0 -18
  56. package/dist/core/components/ui/switch.d.ts +0 -4
  57. package/dist/core/components/ui/table.d.ts +0 -10
  58. package/dist/core/components/ui/tabs.d.ts +0 -7
  59. package/dist/core/components/ui/textarea.d.ts +0 -3
  60. package/dist/core/components/ui/tooltip.d.ts +0 -7
  61. package/dist/core/constants/menu.d.ts +0 -2
  62. package/dist/core/helpers/axiosGlobal.d.ts +0 -7
  63. package/dist/core/helpers/strings.d.ts +0 -1
  64. package/dist/core/helpers/template.d.ts +0 -4
  65. package/dist/core/helpers/tenant.d.ts +0 -3
  66. package/dist/core/hooks/use-mobile.d.ts +0 -1
  67. package/dist/core/hooks/useI18n.d.ts +0 -5
  68. package/dist/core/hooks/useNotification.d.ts +0 -6
  69. package/dist/core/i18n/config.d.ts +0 -130
  70. package/dist/core/i18n/utils/loadModuleTranslations.d.ts +0 -8
  71. package/dist/core/modules/CoreAuth/components/layouts/partials/AuthDecorator.d.ts +0 -1
  72. package/dist/core/modules/CoreAuth/components/layouts/partials/AuthProfileDeleteAccountForm.d.ts +0 -1
  73. package/dist/core/modules/CoreAuth/components/layouts/partials/AuthProfileForm.d.ts +0 -1
  74. package/dist/core/modules/CoreAuth/components/layouts/partials/AuthProfileUpdatePassForm.d.ts +0 -1
  75. package/dist/core/modules/CoreAuth/components/layouts/partials/AuthUserMenu.d.ts +0 -1
  76. package/dist/core/modules/CoreAuth/constants/auth.d.ts +0 -5
  77. package/dist/core/modules/CoreAuth/hooks/useAuth.d.ts +0 -18
  78. package/dist/core/modules/CoreAuth/index.d.ts +0 -1
  79. package/dist/core/modules/CoreAuth/services/base.d.ts +0 -23
  80. package/dist/core/modules/CoreAuth/stores/authStore.d.ts +0 -22
  81. package/dist/core/modules/CoreAuth/types/CoreAuth.d.ts +0 -25
  82. package/dist/core/modules/CoreCustomization/classes/CoreCustomizationBuilder.d.ts +0 -30
  83. package/dist/core/modules/CoreCustomization/index.d.ts +0 -1
  84. package/dist/core/modules/CoreCustomization/services/base.d.ts +0 -10
  85. package/dist/core/modules/CoreCustomization/types/CoreCustomization.d.ts +0 -22
  86. package/dist/core/modules/CoreOrder/classes/CoreOrderBuilder.d.ts +0 -23
  87. package/dist/core/modules/CoreOrder/index.d.ts +0 -1
  88. package/dist/core/modules/CoreOrder/services/base.d.ts +0 -7
  89. package/dist/core/modules/CoreOrder/types/CoreOrder.d.ts +0 -41
  90. package/dist/core/modules/CoreOrder/types/interfaces/OrderActions.d.ts +0 -14
  91. package/dist/core/modules/CorePayForm/classes/CorePayFormBuilder.d.ts +0 -19
  92. package/dist/core/modules/CorePayForm/index.d.ts +0 -1
  93. package/dist/core/modules/CorePayForm/services/base.d.ts +0 -7
  94. package/dist/core/modules/CorePayForm/types/CorePayForm.d.ts +0 -19
  95. package/dist/core/modules/CoreProduct/classes/CoreProductBuilder.d.ts +0 -25
  96. package/dist/core/modules/CoreProduct/components/layouts/partials/TabHead.d.ts +0 -6
  97. package/dist/core/modules/CoreProduct/components/ui/cards/CoreProductCard.d.ts +0 -15
  98. package/dist/core/modules/CoreProduct/components/ui/cards/CoreProductCardActions.d.ts +0 -18
  99. package/dist/core/modules/CoreProduct/components/ui/cards/CoreProductCartItemAsideCard.d.ts +0 -7
  100. package/dist/core/modules/CoreProduct/components/ui/cards/CoreProductCartItemCard.d.ts +0 -8
  101. package/dist/core/modules/CoreProduct/components/ui/cards/CoreProductCartSummaryCard.d.ts +0 -7
  102. package/dist/core/modules/CoreProduct/components/ui/cards/addons/WarrantyLabel.d.ts +0 -10
  103. package/dist/core/modules/CoreProduct/components/ui/cards/skeletons/CoreProductCardSkeleton.d.ts +0 -5
  104. package/dist/core/modules/CoreProduct/components/ui/cards/skeletons/CoreProductCartItemCardSkeleton.d.ts +0 -1
  105. package/dist/core/modules/CoreProduct/components/ui/carousels/CoreProductImageCarousel.d.ts +0 -8
  106. package/dist/core/modules/CoreProduct/components/ui/containers/CoreProductGrid.d.ts +0 -19
  107. package/dist/core/modules/CoreProduct/index.d.ts +0 -1
  108. package/dist/core/modules/CoreProduct/services/base.d.ts +0 -7
  109. package/dist/core/modules/CoreProduct/types/CoreProduct.d.ts +0 -33
  110. package/dist/core/modules/CoreProduct/types/CoreProductCategory.d.ts +0 -10
  111. package/dist/core/modules/CoreShopCart/classes/CoreShopCartBuilder.d.ts +0 -25
  112. package/dist/core/modules/CoreShopCart/components/layouts/partials/CoreShopCartAside.d.ts +0 -12
  113. package/dist/core/modules/CoreShopCart/components/layouts/partials/CoreShopCartIcon.d.ts +0 -7
  114. package/dist/core/modules/CoreShopCart/components/ui/cards/CoreCartItemAsideCard.d.ts +0 -9
  115. package/dist/core/modules/CoreShopCart/components/ui/cards/skeletons/CoreCartItemAsideCardSkeleton.d.ts +0 -4
  116. package/dist/core/modules/CoreShopCart/components/ui/empty/EmptyCartItems.d.ts +0 -1
  117. package/dist/core/modules/CoreShopCart/components/ui/texts/CoreCartHintTitle.d.ts +0 -8
  118. package/dist/core/modules/CoreShopCart/components/ui/texts/CoreCartSubtotalText.d.ts +0 -7
  119. package/dist/core/modules/CoreShopCart/components/ui/texts/CoreCartSummaryHead.d.ts +0 -6
  120. package/dist/core/modules/CoreShopCart/components/ui/texts/CoreCartSummaryText.d.ts +0 -7
  121. package/dist/core/modules/CoreShopCart/constants/shopCart.d.ts +0 -6
  122. package/dist/core/modules/CoreShopCart/index.d.ts +0 -1
  123. package/dist/core/modules/CoreShopCart/services/base.d.ts +0 -16
  124. package/dist/core/modules/CoreShopCart/types/CoreShopCart.d.ts +0 -32
  125. package/dist/core/modules/CoreShopCart/types/interfaces/CartActions.d.ts +0 -23
  126. package/dist/core/modules/index.d.ts +0 -0
  127. package/dist/core/services/base.d.ts +0 -38
  128. package/dist/core/types/BaseStore.d.ts +0 -7
  129. package/dist/core/types/BaseType.d.ts +0 -5
  130. package/dist/core/types/CoreImage.d.ts +0 -5
  131. package/dist/core/types/CoreMenu.d.ts +0 -6
  132. package/dist/core/types/contracts/BaseApiResponse.d.ts +0 -7
  133. package/dist/core/types/contracts/BasePagination.d.ts +0 -9
  134. package/dist/core/types/interfaces/BaseImageType.d.ts +0 -7
  135. package/dist/core/types/interfaces/BaseSlugType.d.ts +0 -3
  136. package/dist/core/types/interfaces/BaseVisibleType.d.ts +0 -3
  137. package/dist/core/types/ui/carousel.d.ts +0 -5
  138. package/dist/core/types/ui/index.d.ts +0 -8
  139. package/dist/core/types/ui/template.d.ts +0 -19
  140. package/dist/index.cjs +0 -102
package/dist/index.js CHANGED
@@ -1,1656 +1,21 @@
1
- var Le = { exports: {} }, Re = {};
2
- /**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */
11
- var ot;
12
- function Mt() {
13
- if (ot) return Re;
14
- ot = 1;
15
- var r = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
16
- function s(f, p, d) {
17
- var R = null;
18
- if (d !== void 0 && (R = "" + d), p.key !== void 0 && (R = "" + p.key), "key" in p) {
19
- d = {};
20
- for (var D in p)
21
- D !== "key" && (d[D] = p[D]);
22
- } else d = p;
23
- return p = d.ref, {
24
- $$typeof: r,
25
- type: f,
26
- key: R,
27
- ref: p !== void 0 ? p : null,
28
- props: d
29
- };
30
- }
31
- return Re.Fragment = n, Re.jsx = s, Re.jsxs = s, Re;
32
- }
33
- var Te = {}, je = { exports: {} }, P = {};
34
- /**
35
- * @license React
36
- * react.production.js
37
- *
38
- * Copyright (c) Meta Platforms, Inc. and affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */
43
- var ut;
44
- function xt() {
45
- if (ut) return P;
46
- ut = 1;
47
- var r = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), d = Symbol.for("react.consumer"), R = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), a = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), i = Symbol.iterator;
48
- function o(t) {
49
- return t === null || typeof t != "object" ? null : (t = i && t[i] || t["@@iterator"], typeof t == "function" ? t : null);
50
- }
51
- var l = {
52
- isMounted: function() {
53
- return !1;
54
- },
55
- enqueueForceUpdate: function() {
56
- },
57
- enqueueReplaceState: function() {
58
- },
59
- enqueueSetState: function() {
60
- }
61
- }, E = Object.assign, O = {};
62
- function A(t, c, _) {
63
- this.props = t, this.context = c, this.refs = O, this.updater = _ || l;
64
- }
65
- A.prototype.isReactComponent = {}, A.prototype.setState = function(t, c) {
66
- if (typeof t != "object" && typeof t != "function" && t != null)
67
- throw Error(
68
- "takes an object of state variables to update or a function which returns an object of state variables."
69
- );
70
- this.updater.enqueueSetState(this, t, c, "setState");
71
- }, A.prototype.forceUpdate = function(t) {
72
- this.updater.enqueueForceUpdate(this, t, "forceUpdate");
73
- };
74
- function z() {
75
- }
76
- z.prototype = A.prototype;
77
- function V(t, c, _) {
78
- this.props = t, this.context = c, this.refs = O, this.updater = _ || l;
79
- }
80
- var U = V.prototype = new z();
81
- U.constructor = V, E(U, A.prototype), U.isPureReactComponent = !0;
82
- var H = Array.isArray, C = { H: null, A: null, T: null, S: null, V: null }, $ = Object.prototype.hasOwnProperty;
83
- function W(t, c, _, v, w, k) {
84
- return _ = k.ref, {
85
- $$typeof: r,
86
- type: t,
87
- key: c,
88
- ref: _ !== void 0 ? _ : null,
89
- props: k
90
- };
91
- }
92
- function x(t, c) {
93
- return W(
94
- t.type,
95
- c,
96
- void 0,
97
- void 0,
98
- void 0,
99
- t.props
100
- );
101
- }
102
- function F(t) {
103
- return typeof t == "object" && t !== null && t.$$typeof === r;
104
- }
105
- function K(t) {
106
- var c = { "=": "=0", ":": "=2" };
107
- return "$" + t.replace(/[=:]/g, function(_) {
108
- return c[_];
109
- });
110
- }
111
- var N = /\/+/g;
112
- function se(t, c) {
113
- return typeof t == "object" && t !== null && t.key != null ? K("" + t.key) : c.toString(36);
114
- }
115
- function ie() {
116
- }
117
- function ne(t) {
118
- switch (t.status) {
119
- case "fulfilled":
120
- return t.value;
121
- case "rejected":
122
- throw t.reason;
123
- default:
124
- switch (typeof t.status == "string" ? t.then(ie, ie) : (t.status = "pending", t.then(
125
- function(c) {
126
- t.status === "pending" && (t.status = "fulfilled", t.value = c);
127
- },
128
- function(c) {
129
- t.status === "pending" && (t.status = "rejected", t.reason = c);
130
- }
131
- )), t.status) {
132
- case "fulfilled":
133
- return t.value;
134
- case "rejected":
135
- throw t.reason;
136
- }
137
- }
138
- throw t;
139
- }
140
- function ee(t, c, _, v, w) {
141
- var k = typeof t;
142
- (k === "undefined" || k === "boolean") && (t = null);
143
- var T = !1;
144
- if (t === null) T = !0;
145
- else
146
- switch (k) {
147
- case "bigint":
148
- case "string":
149
- case "number":
150
- T = !0;
151
- break;
152
- case "object":
153
- switch (t.$$typeof) {
154
- case r:
155
- case n:
156
- T = !0;
157
- break;
158
- case g:
159
- return T = t._init, ee(
160
- T(t._payload),
161
- c,
162
- _,
163
- v,
164
- w
165
- );
166
- }
167
- }
168
- if (T)
169
- return w = w(t), T = v === "" ? "." + se(t, 0) : v, H(w) ? (_ = "", T != null && (_ = T.replace(N, "$&/") + "/"), ee(w, c, _, "", function(X) {
170
- return X;
171
- })) : w != null && (F(w) && (w = x(
172
- w,
173
- _ + (w.key == null || t && t.key === w.key ? "" : ("" + w.key).replace(
174
- N,
175
- "$&/"
176
- ) + "/") + T
177
- )), c.push(w)), 1;
178
- T = 0;
179
- var B = v === "" ? "." : v + ":";
180
- if (H(t))
181
- for (var b = 0; b < t.length; b++)
182
- v = t[b], k = B + se(v, b), T += ee(
183
- v,
184
- c,
185
- _,
186
- k,
187
- w
188
- );
189
- else if (b = o(t), typeof b == "function")
190
- for (t = b.call(t), b = 0; !(v = t.next()).done; )
191
- v = v.value, k = B + se(v, b++), T += ee(
192
- v,
193
- c,
194
- _,
195
- k,
196
- w
197
- );
198
- else if (k === "object") {
199
- if (typeof t.then == "function")
200
- return ee(
201
- ne(t),
202
- c,
203
- _,
204
- v,
205
- w
206
- );
207
- throw c = String(t), Error(
208
- "Objects are not valid as a React child (found: " + (c === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : c) + "). If you meant to render a collection of children, use an array instead."
209
- );
210
- }
211
- return T;
212
- }
213
- function oe(t, c, _) {
214
- if (t == null) return t;
215
- var v = [], w = 0;
216
- return ee(t, v, "", "", function(k) {
217
- return c.call(_, k, w++);
218
- }), v;
219
- }
220
- function fe(t) {
221
- if (t._status === -1) {
222
- var c = t._result;
223
- c = c(), c.then(
224
- function(_) {
225
- (t._status === 0 || t._status === -1) && (t._status = 1, t._result = _);
226
- },
227
- function(_) {
228
- (t._status === 0 || t._status === -1) && (t._status = 2, t._result = _);
229
- }
230
- ), t._status === -1 && (t._status = 0, t._result = c);
231
- }
232
- if (t._status === 1) return t._result.default;
233
- throw t._result;
234
- }
235
- var ce = typeof reportError == "function" ? reportError : function(t) {
236
- if (typeof window == "object" && typeof window.ErrorEvent == "function") {
237
- var c = new window.ErrorEvent("error", {
238
- bubbles: !0,
239
- cancelable: !0,
240
- message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
241
- error: t
242
- });
243
- if (!window.dispatchEvent(c)) return;
244
- } else if (typeof process == "object" && typeof process.emit == "function") {
245
- process.emit("uncaughtException", t);
246
- return;
247
- }
248
- console.error(t);
249
- };
250
- function de() {
251
- }
252
- return P.Children = {
253
- map: oe,
254
- forEach: function(t, c, _) {
255
- oe(
256
- t,
257
- function() {
258
- c.apply(this, arguments);
259
- },
260
- _
261
- );
262
- },
263
- count: function(t) {
264
- var c = 0;
265
- return oe(t, function() {
266
- c++;
267
- }), c;
268
- },
269
- toArray: function(t) {
270
- return oe(t, function(c) {
271
- return c;
272
- }) || [];
273
- },
274
- only: function(t) {
275
- if (!F(t))
276
- throw Error(
277
- "React.Children.only expected to receive a single React element child."
278
- );
279
- return t;
280
- }
281
- }, P.Component = A, P.Fragment = s, P.Profiler = p, P.PureComponent = V, P.StrictMode = f, P.Suspense = m, P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = C, P.__COMPILER_RUNTIME = {
282
- __proto__: null,
283
- c: function(t) {
284
- return C.H.useMemoCache(t);
285
- }
286
- }, P.cache = function(t) {
287
- return function() {
288
- return t.apply(null, arguments);
289
- };
290
- }, P.cloneElement = function(t, c, _) {
291
- if (t == null)
292
- throw Error(
293
- "The argument must be a React element, but you passed " + t + "."
294
- );
295
- var v = E({}, t.props), w = t.key, k = void 0;
296
- if (c != null)
297
- for (T in c.ref !== void 0 && (k = void 0), c.key !== void 0 && (w = "" + c.key), c)
298
- !$.call(c, T) || T === "key" || T === "__self" || T === "__source" || T === "ref" && c.ref === void 0 || (v[T] = c[T]);
299
- var T = arguments.length - 2;
300
- if (T === 1) v.children = _;
301
- else if (1 < T) {
302
- for (var B = Array(T), b = 0; b < T; b++)
303
- B[b] = arguments[b + 2];
304
- v.children = B;
305
- }
306
- return W(t.type, w, void 0, void 0, k, v);
307
- }, P.createContext = function(t) {
308
- return t = {
309
- $$typeof: R,
310
- _currentValue: t,
311
- _currentValue2: t,
312
- _threadCount: 0,
313
- Provider: null,
314
- Consumer: null
315
- }, t.Provider = t, t.Consumer = {
316
- $$typeof: d,
317
- _context: t
318
- }, t;
319
- }, P.createElement = function(t, c, _) {
320
- var v, w = {}, k = null;
321
- if (c != null)
322
- for (v in c.key !== void 0 && (k = "" + c.key), c)
323
- $.call(c, v) && v !== "key" && v !== "__self" && v !== "__source" && (w[v] = c[v]);
324
- var T = arguments.length - 2;
325
- if (T === 1) w.children = _;
326
- else if (1 < T) {
327
- for (var B = Array(T), b = 0; b < T; b++)
328
- B[b] = arguments[b + 2];
329
- w.children = B;
330
- }
331
- if (t && t.defaultProps)
332
- for (v in T = t.defaultProps, T)
333
- w[v] === void 0 && (w[v] = T[v]);
334
- return W(t, k, void 0, void 0, null, w);
335
- }, P.createRef = function() {
336
- return { current: null };
337
- }, P.forwardRef = function(t) {
338
- return { $$typeof: D, render: t };
339
- }, P.isValidElement = F, P.lazy = function(t) {
340
- return {
341
- $$typeof: g,
342
- _payload: { _status: -1, _result: t },
343
- _init: fe
344
- };
345
- }, P.memo = function(t, c) {
346
- return {
347
- $$typeof: a,
348
- type: t,
349
- compare: c === void 0 ? null : c
350
- };
351
- }, P.startTransition = function(t) {
352
- var c = C.T, _ = {};
353
- C.T = _;
354
- try {
355
- var v = t(), w = C.S;
356
- w !== null && w(_, v), typeof v == "object" && v !== null && typeof v.then == "function" && v.then(de, ce);
357
- } catch (k) {
358
- ce(k);
359
- } finally {
360
- C.T = c;
361
- }
362
- }, P.unstable_useCacheRefresh = function() {
363
- return C.H.useCacheRefresh();
364
- }, P.use = function(t) {
365
- return C.H.use(t);
366
- }, P.useActionState = function(t, c, _) {
367
- return C.H.useActionState(t, c, _);
368
- }, P.useCallback = function(t, c) {
369
- return C.H.useCallback(t, c);
370
- }, P.useContext = function(t) {
371
- return C.H.useContext(t);
372
- }, P.useDebugValue = function() {
373
- }, P.useDeferredValue = function(t, c) {
374
- return C.H.useDeferredValue(t, c);
375
- }, P.useEffect = function(t, c, _) {
376
- var v = C.H;
377
- if (typeof _ == "function")
378
- throw Error(
379
- "useEffect CRUD overload is not enabled in this build of React."
380
- );
381
- return v.useEffect(t, c);
382
- }, P.useId = function() {
383
- return C.H.useId();
384
- }, P.useImperativeHandle = function(t, c, _) {
385
- return C.H.useImperativeHandle(t, c, _);
386
- }, P.useInsertionEffect = function(t, c) {
387
- return C.H.useInsertionEffect(t, c);
388
- }, P.useLayoutEffect = function(t, c) {
389
- return C.H.useLayoutEffect(t, c);
390
- }, P.useMemo = function(t, c) {
391
- return C.H.useMemo(t, c);
392
- }, P.useOptimistic = function(t, c) {
393
- return C.H.useOptimistic(t, c);
394
- }, P.useReducer = function(t, c, _) {
395
- return C.H.useReducer(t, c, _);
396
- }, P.useRef = function(t) {
397
- return C.H.useRef(t);
398
- }, P.useState = function(t) {
399
- return C.H.useState(t);
400
- }, P.useSyncExternalStore = function(t, c, _) {
401
- return C.H.useSyncExternalStore(
402
- t,
403
- c,
404
- _
405
- );
406
- }, P.useTransition = function() {
407
- return C.H.useTransition();
408
- }, P.version = "19.1.1", P;
409
- }
410
- var Ce = { exports: {} };
411
- /**
412
- * @license React
413
- * react.development.js
414
- *
415
- * Copyright (c) Meta Platforms, Inc. and affiliates.
416
- *
417
- * This source code is licensed under the MIT license found in the
418
- * LICENSE file in the root directory of this source tree.
419
- */
420
- Ce.exports;
421
- var at;
422
- function It() {
423
- return at || (at = 1, (function(r, n) {
424
- process.env.NODE_ENV !== "production" && (function() {
425
- function s(e, u) {
426
- Object.defineProperty(d.prototype, e, {
427
- get: function() {
428
- console.warn(
429
- "%s(...) is deprecated in plain JavaScript React classes. %s",
430
- u[0],
431
- u[1]
432
- );
433
- }
434
- });
435
- }
436
- function f(e) {
437
- return e === null || typeof e != "object" ? null : (e = ue && e[ue] || e["@@iterator"], typeof e == "function" ? e : null);
438
- }
439
- function p(e, u) {
440
- e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
441
- var y = e + "." + u;
442
- Ae[y] || (console.error(
443
- "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
444
- u,
445
- e
446
- ), Ae[y] = !0);
447
- }
448
- function d(e, u, y) {
449
- this.props = e, this.context = u, this.refs = Se, this.updater = y || Ne;
450
- }
451
- function R() {
452
- }
453
- function D(e, u, y) {
454
- this.props = e, this.context = u, this.refs = Se, this.updater = y || Ne;
455
- }
456
- function m(e) {
457
- return "" + e;
458
- }
459
- function a(e) {
460
- try {
461
- m(e);
462
- var u = !1;
463
- } catch {
464
- u = !0;
465
- }
466
- if (u) {
467
- u = console;
468
- var y = u.error, h = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
469
- return y.call(
470
- u,
471
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
472
- h
473
- ), m(e);
474
- }
475
- }
476
- function g(e) {
477
- if (e == null) return null;
478
- if (typeof e == "function")
479
- return e.$$typeof === ve ? null : e.displayName || e.name || null;
480
- if (typeof e == "string") return e;
481
- switch (e) {
482
- case t:
483
- return "Fragment";
484
- case _:
485
- return "Profiler";
486
- case c:
487
- return "StrictMode";
488
- case T:
489
- return "Suspense";
490
- case B:
491
- return "SuspenseList";
492
- case le:
493
- return "Activity";
494
- }
495
- if (typeof e == "object")
496
- switch (typeof e.tag == "number" && console.error(
497
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
498
- ), e.$$typeof) {
499
- case de:
500
- return "Portal";
501
- case w:
502
- return (e.displayName || "Context") + ".Provider";
503
- case v:
504
- return (e._context.displayName || "Context") + ".Consumer";
505
- case k:
506
- var u = e.render;
507
- return e = e.displayName, e || (e = u.displayName || u.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
508
- case b:
509
- return u = e.displayName || null, u !== null ? u : g(e.type) || "Memo";
510
- case X:
511
- u = e._payload, e = e._init;
512
- try {
513
- return g(e(u));
514
- } catch {
515
- }
516
- }
517
- return null;
518
- }
519
- function i(e) {
520
- if (e === t) return "<>";
521
- if (typeof e == "object" && e !== null && e.$$typeof === X)
522
- return "<...>";
523
- try {
524
- var u = g(e);
525
- return u ? "<" + u + ">" : "<...>";
526
- } catch {
527
- return "<...>";
528
- }
529
- }
530
- function o() {
531
- var e = L.A;
532
- return e === null ? null : e.getOwner();
533
- }
534
- function l() {
535
- return Error("react-stack-top-frame");
536
- }
537
- function E(e) {
538
- if (ge.call(e, "key")) {
539
- var u = Object.getOwnPropertyDescriptor(e, "key").get;
540
- if (u && u.isReactWarning) return !1;
541
- }
542
- return e.key !== void 0;
543
- }
544
- function O(e, u) {
545
- function y() {
546
- Q || (Q = !0, console.error(
547
- "%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)",
548
- u
549
- ));
550
- }
551
- y.isReactWarning = !0, Object.defineProperty(e, "key", {
552
- get: y,
553
- configurable: !0
554
- });
555
- }
556
- function A() {
557
- var e = g(this.type);
558
- return $e[e] || ($e[e] = !0, console.error(
559
- "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."
560
- )), e = this.props.ref, e !== void 0 ? e : null;
561
- }
562
- function z(e, u, y, h, S, I, j, Y) {
563
- return y = I.ref, e = {
564
- $$typeof: ce,
565
- type: e,
566
- key: u,
567
- props: I,
568
- _owner: S
569
- }, (y !== void 0 ? y : null) !== null ? Object.defineProperty(e, "ref", {
570
- enumerable: !1,
571
- get: A
572
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
573
- configurable: !1,
574
- enumerable: !1,
575
- writable: !0,
576
- value: 0
577
- }), Object.defineProperty(e, "_debugInfo", {
578
- configurable: !1,
579
- enumerable: !1,
580
- writable: !0,
581
- value: null
582
- }), Object.defineProperty(e, "_debugStack", {
583
- configurable: !1,
584
- enumerable: !1,
585
- writable: !0,
586
- value: j
587
- }), Object.defineProperty(e, "_debugTask", {
588
- configurable: !1,
589
- enumerable: !1,
590
- writable: !0,
591
- value: Y
592
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
593
- }
594
- function V(e, u) {
595
- return u = z(
596
- e.type,
597
- u,
598
- void 0,
599
- void 0,
600
- e._owner,
601
- e.props,
602
- e._debugStack,
603
- e._debugTask
604
- ), e._store && (u._store.validated = e._store.validated), u;
605
- }
606
- function U(e) {
607
- return typeof e == "object" && e !== null && e.$$typeof === ce;
608
- }
609
- function H(e) {
610
- var u = { "=": "=0", ":": "=2" };
611
- return "$" + e.replace(/[=:]/g, function(y) {
612
- return u[y];
613
- });
614
- }
615
- function C(e, u) {
616
- return typeof e == "object" && e !== null && e.key != null ? (a(e.key), H("" + e.key)) : u.toString(36);
617
- }
618
- function $() {
619
- }
620
- function W(e) {
621
- switch (e.status) {
622
- case "fulfilled":
623
- return e.value;
624
- case "rejected":
625
- throw e.reason;
626
- default:
627
- switch (typeof e.status == "string" ? e.then($, $) : (e.status = "pending", e.then(
628
- function(u) {
629
- e.status === "pending" && (e.status = "fulfilled", e.value = u);
630
- },
631
- function(u) {
632
- e.status === "pending" && (e.status = "rejected", e.reason = u);
633
- }
634
- )), e.status) {
635
- case "fulfilled":
636
- return e.value;
637
- case "rejected":
638
- throw e.reason;
639
- }
640
- }
641
- throw e;
642
- }
643
- function x(e, u, y, h, S) {
644
- var I = typeof e;
645
- (I === "undefined" || I === "boolean") && (e = null);
646
- var j = !1;
647
- if (e === null) j = !0;
648
- else
649
- switch (I) {
650
- case "bigint":
651
- case "string":
652
- case "number":
653
- j = !0;
654
- break;
655
- case "object":
656
- switch (e.$$typeof) {
657
- case ce:
658
- case de:
659
- j = !0;
660
- break;
661
- case X:
662
- return j = e._init, x(
663
- j(e._payload),
664
- u,
665
- y,
666
- h,
667
- S
668
- );
669
- }
670
- }
671
- if (j) {
672
- j = e, S = S(j);
673
- var Y = h === "" ? "." + C(j, 0) : h;
674
- return ye(S) ? (y = "", Y != null && (y = Y.replace(et, "$&/") + "/"), x(S, u, y, "", function(pe) {
675
- return pe;
676
- })) : S != null && (U(S) && (S.key != null && (j && j.key === S.key || a(S.key)), y = V(
677
- S,
678
- y + (S.key == null || j && j.key === S.key ? "" : ("" + S.key).replace(
679
- et,
680
- "$&/"
681
- ) + "/") + Y
682
- ), h !== "" && j != null && U(j) && j.key == null && j._store && !j._store.validated && (y._store.validated = 2), S = y), u.push(S)), 1;
683
- }
684
- if (j = 0, Y = h === "" ? "." : h + ":", ye(e))
685
- for (var M = 0; M < e.length; M++)
686
- h = e[M], I = Y + C(h, M), j += x(
687
- h,
688
- u,
689
- y,
690
- I,
691
- S
692
- );
693
- else if (M = f(e), typeof M == "function")
694
- for (M === e.entries && (Ze || console.warn(
695
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
696
- ), Ze = !0), e = M.call(e), M = 0; !(h = e.next()).done; )
697
- h = h.value, I = Y + C(h, M++), j += x(
698
- h,
699
- u,
700
- y,
701
- I,
702
- S
703
- );
704
- else if (I === "object") {
705
- if (typeof e.then == "function")
706
- return x(
707
- W(e),
708
- u,
709
- y,
710
- h,
711
- S
712
- );
713
- throw u = String(e), Error(
714
- "Objects are not valid as a React child (found: " + (u === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : u) + "). If you meant to render a collection of children, use an array instead."
715
- );
716
- }
717
- return j;
718
- }
719
- function F(e, u, y) {
720
- if (e == null) return e;
721
- var h = [], S = 0;
722
- return x(e, h, "", "", function(I) {
723
- return u.call(y, I, S++);
724
- }), h;
725
- }
726
- function K(e) {
727
- if (e._status === -1) {
728
- var u = e._result;
729
- u = u(), u.then(
730
- function(y) {
731
- (e._status === 0 || e._status === -1) && (e._status = 1, e._result = y);
732
- },
733
- function(y) {
734
- (e._status === 0 || e._status === -1) && (e._status = 2, e._result = y);
735
- }
736
- ), e._status === -1 && (e._status = 0, e._result = u);
737
- }
738
- if (e._status === 1)
739
- return u = e._result, u === void 0 && console.error(
740
- `lazy: Expected the result of a dynamic import() call. Instead received: %s
741
-
742
- Your code should look like:
743
- const MyComponent = lazy(() => import('./MyComponent'))
744
-
745
- Did you accidentally put curly braces around the import?`,
746
- u
747
- ), "default" in u || console.error(
748
- `lazy: Expected the result of a dynamic import() call. Instead received: %s
749
-
750
- Your code should look like:
751
- const MyComponent = lazy(() => import('./MyComponent'))`,
752
- u
753
- ), u.default;
754
- throw e._result;
755
- }
756
- function N() {
757
- var e = L.H;
758
- return e === null && console.error(
759
- `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
760
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
761
- 2. You might be breaking the Rules of Hooks
762
- 3. You might have more than one copy of React in the same app
763
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
764
- ), e;
765
- }
766
- function se() {
767
- }
768
- function ie(e) {
769
- if (ke === null)
770
- try {
771
- var u = ("require" + Math.random()).slice(0, 7);
772
- ke = (r && r[u]).call(
773
- r,
774
- "timers"
775
- ).setImmediate;
776
- } catch {
777
- ke = function(h) {
778
- rt === !1 && (rt = !0, typeof MessageChannel > "u" && console.error(
779
- "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
780
- ));
781
- var S = new MessageChannel();
782
- S.port1.onmessage = h, S.port2.postMessage(void 0);
783
- };
784
- }
785
- return ke(e);
786
- }
787
- function ne(e) {
788
- return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
789
- }
790
- function ee(e, u) {
791
- u !== Pe - 1 && console.error(
792
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
793
- ), Pe = u;
794
- }
795
- function oe(e, u, y) {
796
- var h = L.actQueue;
797
- if (h !== null)
798
- if (h.length !== 0)
799
- try {
800
- fe(h), ie(function() {
801
- return oe(e, u, y);
802
- });
803
- return;
804
- } catch (S) {
805
- L.thrownErrors.push(S);
806
- }
807
- else L.actQueue = null;
808
- 0 < L.thrownErrors.length ? (h = ne(L.thrownErrors), L.thrownErrors.length = 0, y(h)) : u(e);
809
- }
810
- function fe(e) {
811
- if (!He) {
812
- He = !0;
813
- var u = 0;
814
- try {
815
- for (; u < e.length; u++) {
816
- var y = e[u];
817
- do {
818
- L.didUsePromise = !1;
819
- var h = y(!1);
820
- if (h !== null) {
821
- if (L.didUsePromise) {
822
- e[u] = y, e.splice(0, u);
823
- return;
824
- }
825
- y = h;
826
- } else break;
827
- } while (!0);
828
- }
829
- e.length = 0;
830
- } catch (S) {
831
- e.splice(0, u + 1), L.thrownErrors.push(S);
832
- } finally {
833
- He = !1;
834
- }
835
- }
836
- }
837
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
838
- var ce = Symbol.for("react.transitional.element"), de = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), w = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), X = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), ue = Symbol.iterator, Ae = {}, Ne = {
839
- isMounted: function() {
840
- return !1;
841
- },
842
- enqueueForceUpdate: function(e) {
843
- p(e, "forceUpdate");
844
- },
845
- enqueueReplaceState: function(e) {
846
- p(e, "replaceState");
847
- },
848
- enqueueSetState: function(e) {
849
- p(e, "setState");
850
- }
851
- }, Oe = Object.assign, Se = {};
852
- Object.freeze(Se), d.prototype.isReactComponent = {}, d.prototype.setState = function(e, u) {
853
- if (typeof e != "object" && typeof e != "function" && e != null)
854
- throw Error(
855
- "takes an object of state variables to update or a function which returns an object of state variables."
856
- );
857
- this.updater.enqueueSetState(this, e, u, "setState");
858
- }, d.prototype.forceUpdate = function(e) {
859
- this.updater.enqueueForceUpdate(this, e, "forceUpdate");
860
- };
861
- var te = {
862
- isMounted: [
863
- "isMounted",
864
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
865
- ],
866
- replaceState: [
867
- "replaceState",
868
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
869
- ]
870
- }, he;
871
- for (he in te)
872
- te.hasOwnProperty(he) && s(he, te[he]);
873
- R.prototype = d.prototype, te = D.prototype = new R(), te.constructor = D, Oe(te, d.prototype), te.isPureReactComponent = !0;
874
- var ye = Array.isArray, ve = Symbol.for("react.client.reference"), L = {
875
- H: null,
876
- A: null,
877
- T: null,
878
- S: null,
879
- V: null,
880
- actQueue: null,
881
- isBatchingLegacy: !1,
882
- didScheduleLegacyUpdate: !1,
883
- didUsePromise: !1,
884
- thrownErrors: [],
885
- getCurrentStack: null,
886
- recentlyCreatedOwnerStacks: 0
887
- }, ge = Object.prototype.hasOwnProperty, G = console.createTask ? console.createTask : function() {
888
- return null;
889
- };
890
- te = {
891
- react_stack_bottom_frame: function(e) {
892
- return e();
893
- }
894
- };
895
- var Q, ae, $e = {}, Pt = te.react_stack_bottom_frame.bind(
896
- te,
897
- l
898
- )(), Dt = G(i(l)), Ze = !1, et = /\/+/g, tt = typeof reportError == "function" ? reportError : function(e) {
899
- if (typeof window == "object" && typeof window.ErrorEvent == "function") {
900
- var u = new window.ErrorEvent("error", {
901
- bubbles: !0,
902
- cancelable: !0,
903
- message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
904
- error: e
905
- });
906
- if (!window.dispatchEvent(u)) return;
907
- } else if (typeof process == "object" && typeof process.emit == "function") {
908
- process.emit("uncaughtException", e);
909
- return;
910
- }
911
- console.error(e);
912
- }, rt = !1, ke = null, Pe = 0, De = !1, He = !1, nt = typeof queueMicrotask == "function" ? function(e) {
913
- queueMicrotask(function() {
914
- return queueMicrotask(e);
915
- });
916
- } : ie;
917
- te = Object.freeze({
918
- __proto__: null,
919
- c: function(e) {
920
- return N().useMemoCache(e);
921
- }
922
- }), n.Children = {
923
- map: F,
924
- forEach: function(e, u, y) {
925
- F(
926
- e,
927
- function() {
928
- u.apply(this, arguments);
929
- },
930
- y
931
- );
932
- },
933
- count: function(e) {
934
- var u = 0;
935
- return F(e, function() {
936
- u++;
937
- }), u;
938
- },
939
- toArray: function(e) {
940
- return F(e, function(u) {
941
- return u;
942
- }) || [];
943
- },
944
- only: function(e) {
945
- if (!U(e))
946
- throw Error(
947
- "React.Children.only expected to receive a single React element child."
948
- );
949
- return e;
950
- }
951
- }, n.Component = d, n.Fragment = t, n.Profiler = _, n.PureComponent = D, n.StrictMode = c, n.Suspense = T, n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = L, n.__COMPILER_RUNTIME = te, n.act = function(e) {
952
- var u = L.actQueue, y = Pe;
953
- Pe++;
954
- var h = L.actQueue = u !== null ? u : [], S = !1;
955
- try {
956
- var I = e();
957
- } catch (M) {
958
- L.thrownErrors.push(M);
959
- }
960
- if (0 < L.thrownErrors.length)
961
- throw ee(u, y), e = ne(L.thrownErrors), L.thrownErrors.length = 0, e;
962
- if (I !== null && typeof I == "object" && typeof I.then == "function") {
963
- var j = I;
964
- return nt(function() {
965
- S || De || (De = !0, console.error(
966
- "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
967
- ));
968
- }), {
969
- then: function(M, pe) {
970
- S = !0, j.then(
971
- function(Ee) {
972
- if (ee(u, y), y === 0) {
973
- try {
974
- fe(h), ie(function() {
975
- return oe(
976
- Ee,
977
- M,
978
- pe
979
- );
980
- });
981
- } catch (jt) {
982
- L.thrownErrors.push(jt);
983
- }
984
- if (0 < L.thrownErrors.length) {
985
- var Lt = ne(
986
- L.thrownErrors
987
- );
988
- L.thrownErrors.length = 0, pe(Lt);
989
- }
990
- } else M(Ee);
991
- },
992
- function(Ee) {
993
- ee(u, y), 0 < L.thrownErrors.length && (Ee = ne(
994
- L.thrownErrors
995
- ), L.thrownErrors.length = 0), pe(Ee);
996
- }
997
- );
998
- }
999
- };
1000
- }
1001
- var Y = I;
1002
- if (ee(u, y), y === 0 && (fe(h), h.length !== 0 && nt(function() {
1003
- S || De || (De = !0, console.error(
1004
- "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1005
- ));
1006
- }), L.actQueue = null), 0 < L.thrownErrors.length)
1007
- throw e = ne(L.thrownErrors), L.thrownErrors.length = 0, e;
1008
- return {
1009
- then: function(M, pe) {
1010
- S = !0, y === 0 ? (L.actQueue = h, ie(function() {
1011
- return oe(
1012
- Y,
1013
- M,
1014
- pe
1015
- );
1016
- })) : M(Y);
1017
- }
1018
- };
1019
- }, n.cache = function(e) {
1020
- return function() {
1021
- return e.apply(null, arguments);
1022
- };
1023
- }, n.captureOwnerStack = function() {
1024
- var e = L.getCurrentStack;
1025
- return e === null ? null : e();
1026
- }, n.cloneElement = function(e, u, y) {
1027
- if (e == null)
1028
- throw Error(
1029
- "The argument must be a React element, but you passed " + e + "."
1030
- );
1031
- var h = Oe({}, e.props), S = e.key, I = e._owner;
1032
- if (u != null) {
1033
- var j;
1034
- e: {
1035
- if (ge.call(u, "ref") && (j = Object.getOwnPropertyDescriptor(
1036
- u,
1037
- "ref"
1038
- ).get) && j.isReactWarning) {
1039
- j = !1;
1040
- break e;
1041
- }
1042
- j = u.ref !== void 0;
1043
- }
1044
- j && (I = o()), E(u) && (a(u.key), S = "" + u.key);
1045
- for (Y in u)
1046
- !ge.call(u, Y) || Y === "key" || Y === "__self" || Y === "__source" || Y === "ref" && u.ref === void 0 || (h[Y] = u[Y]);
1047
- }
1048
- var Y = arguments.length - 2;
1049
- if (Y === 1) h.children = y;
1050
- else if (1 < Y) {
1051
- j = Array(Y);
1052
- for (var M = 0; M < Y; M++)
1053
- j[M] = arguments[M + 2];
1054
- h.children = j;
1055
- }
1056
- for (h = z(
1057
- e.type,
1058
- S,
1059
- void 0,
1060
- void 0,
1061
- I,
1062
- h,
1063
- e._debugStack,
1064
- e._debugTask
1065
- ), S = 2; S < arguments.length; S++)
1066
- I = arguments[S], U(I) && I._store && (I._store.validated = 1);
1067
- return h;
1068
- }, n.createContext = function(e) {
1069
- return e = {
1070
- $$typeof: w,
1071
- _currentValue: e,
1072
- _currentValue2: e,
1073
- _threadCount: 0,
1074
- Provider: null,
1075
- Consumer: null
1076
- }, e.Provider = e, e.Consumer = {
1077
- $$typeof: v,
1078
- _context: e
1079
- }, e._currentRenderer = null, e._currentRenderer2 = null, e;
1080
- }, n.createElement = function(e, u, y) {
1081
- for (var h = 2; h < arguments.length; h++) {
1082
- var S = arguments[h];
1083
- U(S) && S._store && (S._store.validated = 1);
1084
- }
1085
- if (h = {}, S = null, u != null)
1086
- for (M in ae || !("__self" in u) || "key" in u || (ae = !0, console.warn(
1087
- "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1088
- )), E(u) && (a(u.key), S = "" + u.key), u)
1089
- ge.call(u, M) && M !== "key" && M !== "__self" && M !== "__source" && (h[M] = u[M]);
1090
- var I = arguments.length - 2;
1091
- if (I === 1) h.children = y;
1092
- else if (1 < I) {
1093
- for (var j = Array(I), Y = 0; Y < I; Y++)
1094
- j[Y] = arguments[Y + 2];
1095
- Object.freeze && Object.freeze(j), h.children = j;
1096
- }
1097
- if (e && e.defaultProps)
1098
- for (M in I = e.defaultProps, I)
1099
- h[M] === void 0 && (h[M] = I[M]);
1100
- S && O(
1101
- h,
1102
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
1103
- );
1104
- var M = 1e4 > L.recentlyCreatedOwnerStacks++;
1105
- return z(
1106
- e,
1107
- S,
1108
- void 0,
1109
- void 0,
1110
- o(),
1111
- h,
1112
- M ? Error("react-stack-top-frame") : Pt,
1113
- M ? G(i(e)) : Dt
1114
- );
1115
- }, n.createRef = function() {
1116
- var e = { current: null };
1117
- return Object.seal(e), e;
1118
- }, n.forwardRef = function(e) {
1119
- e != null && e.$$typeof === b ? console.error(
1120
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1121
- ) : typeof e != "function" ? console.error(
1122
- "forwardRef requires a render function but was given %s.",
1123
- e === null ? "null" : typeof e
1124
- ) : e.length !== 0 && e.length !== 2 && console.error(
1125
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1126
- e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1127
- ), e != null && e.defaultProps != null && console.error(
1128
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1129
- );
1130
- var u = { $$typeof: k, render: e }, y;
1131
- return Object.defineProperty(u, "displayName", {
1132
- enumerable: !1,
1133
- configurable: !0,
1134
- get: function() {
1135
- return y;
1136
- },
1137
- set: function(h) {
1138
- y = h, e.name || e.displayName || (Object.defineProperty(e, "name", { value: h }), e.displayName = h);
1139
- }
1140
- }), u;
1141
- }, n.isValidElement = U, n.lazy = function(e) {
1142
- return {
1143
- $$typeof: X,
1144
- _payload: { _status: -1, _result: e },
1145
- _init: K
1146
- };
1147
- }, n.memo = function(e, u) {
1148
- e == null && console.error(
1149
- "memo: The first argument must be a component. Instead received: %s",
1150
- e === null ? "null" : typeof e
1151
- ), u = {
1152
- $$typeof: b,
1153
- type: e,
1154
- compare: u === void 0 ? null : u
1155
- };
1156
- var y;
1157
- return Object.defineProperty(u, "displayName", {
1158
- enumerable: !1,
1159
- configurable: !0,
1160
- get: function() {
1161
- return y;
1162
- },
1163
- set: function(h) {
1164
- y = h, e.name || e.displayName || (Object.defineProperty(e, "name", { value: h }), e.displayName = h);
1165
- }
1166
- }), u;
1167
- }, n.startTransition = function(e) {
1168
- var u = L.T, y = {};
1169
- L.T = y, y._updatedFibers = /* @__PURE__ */ new Set();
1170
- try {
1171
- var h = e(), S = L.S;
1172
- S !== null && S(y, h), typeof h == "object" && h !== null && typeof h.then == "function" && h.then(se, tt);
1173
- } catch (I) {
1174
- tt(I);
1175
- } finally {
1176
- u === null && y._updatedFibers && (e = y._updatedFibers.size, y._updatedFibers.clear(), 10 < e && console.warn(
1177
- "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1178
- )), L.T = u;
1179
- }
1180
- }, n.unstable_useCacheRefresh = function() {
1181
- return N().useCacheRefresh();
1182
- }, n.use = function(e) {
1183
- return N().use(e);
1184
- }, n.useActionState = function(e, u, y) {
1185
- return N().useActionState(
1186
- e,
1187
- u,
1188
- y
1189
- );
1190
- }, n.useCallback = function(e, u) {
1191
- return N().useCallback(e, u);
1192
- }, n.useContext = function(e) {
1193
- var u = N();
1194
- return e.$$typeof === v && console.error(
1195
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1196
- ), u.useContext(e);
1197
- }, n.useDebugValue = function(e, u) {
1198
- return N().useDebugValue(e, u);
1199
- }, n.useDeferredValue = function(e, u) {
1200
- return N().useDeferredValue(e, u);
1201
- }, n.useEffect = function(e, u, y) {
1202
- e == null && console.warn(
1203
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1204
- );
1205
- var h = N();
1206
- if (typeof y == "function")
1207
- throw Error(
1208
- "useEffect CRUD overload is not enabled in this build of React."
1209
- );
1210
- return h.useEffect(e, u);
1211
- }, n.useId = function() {
1212
- return N().useId();
1213
- }, n.useImperativeHandle = function(e, u, y) {
1214
- return N().useImperativeHandle(e, u, y);
1215
- }, n.useInsertionEffect = function(e, u) {
1216
- return e == null && console.warn(
1217
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1218
- ), N().useInsertionEffect(e, u);
1219
- }, n.useLayoutEffect = function(e, u) {
1220
- return e == null && console.warn(
1221
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1222
- ), N().useLayoutEffect(e, u);
1223
- }, n.useMemo = function(e, u) {
1224
- return N().useMemo(e, u);
1225
- }, n.useOptimistic = function(e, u) {
1226
- return N().useOptimistic(e, u);
1227
- }, n.useReducer = function(e, u, y) {
1228
- return N().useReducer(e, u, y);
1229
- }, n.useRef = function(e) {
1230
- return N().useRef(e);
1231
- }, n.useState = function(e) {
1232
- return N().useState(e);
1233
- }, n.useSyncExternalStore = function(e, u, y) {
1234
- return N().useSyncExternalStore(
1235
- e,
1236
- u,
1237
- y
1238
- );
1239
- }, n.useTransition = function() {
1240
- return N().useTransition();
1241
- }, n.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1242
- })();
1243
- })(Ce, Ce.exports)), Ce.exports;
1244
- }
1245
- var st;
1246
- function me() {
1247
- return st || (st = 1, process.env.NODE_ENV === "production" ? je.exports = xt() : je.exports = It()), je.exports;
1248
- }
1249
- /**
1250
- * @license React
1251
- * react-jsx-runtime.development.js
1252
- *
1253
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1254
- *
1255
- * This source code is licensed under the MIT license found in the
1256
- * LICENSE file in the root directory of this source tree.
1257
- */
1258
- var it;
1259
- function Ut() {
1260
- return it || (it = 1, process.env.NODE_ENV !== "production" && (function() {
1261
- function r(t) {
1262
- if (t == null) return null;
1263
- if (typeof t == "function")
1264
- return t.$$typeof === K ? null : t.displayName || t.name || null;
1265
- if (typeof t == "string") return t;
1266
- switch (t) {
1267
- case O:
1268
- return "Fragment";
1269
- case z:
1270
- return "Profiler";
1271
- case A:
1272
- return "StrictMode";
1273
- case C:
1274
- return "Suspense";
1275
- case $:
1276
- return "SuspenseList";
1277
- case F:
1278
- return "Activity";
1279
- }
1280
- if (typeof t == "object")
1281
- switch (typeof t.tag == "number" && console.error(
1282
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1283
- ), t.$$typeof) {
1284
- case E:
1285
- return "Portal";
1286
- case U:
1287
- return (t.displayName || "Context") + ".Provider";
1288
- case V:
1289
- return (t._context.displayName || "Context") + ".Consumer";
1290
- case H:
1291
- var c = t.render;
1292
- return t = t.displayName, t || (t = c.displayName || c.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
1293
- case W:
1294
- return c = t.displayName || null, c !== null ? c : r(t.type) || "Memo";
1295
- case x:
1296
- c = t._payload, t = t._init;
1297
- try {
1298
- return r(t(c));
1299
- } catch {
1300
- }
1301
- }
1302
- return null;
1303
- }
1304
- function n(t) {
1305
- return "" + t;
1306
- }
1307
- function s(t) {
1308
- try {
1309
- n(t);
1310
- var c = !1;
1311
- } catch {
1312
- c = !0;
1313
- }
1314
- if (c) {
1315
- c = console;
1316
- var _ = c.error, v = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
1317
- return _.call(
1318
- c,
1319
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1320
- v
1321
- ), n(t);
1322
- }
1323
- }
1324
- function f(t) {
1325
- if (t === O) return "<>";
1326
- if (typeof t == "object" && t !== null && t.$$typeof === x)
1327
- return "<...>";
1328
- try {
1329
- var c = r(t);
1330
- return c ? "<" + c + ">" : "<...>";
1331
- } catch {
1332
- return "<...>";
1333
- }
1334
- }
1335
- function p() {
1336
- var t = N.A;
1337
- return t === null ? null : t.getOwner();
1338
- }
1339
- function d() {
1340
- return Error("react-stack-top-frame");
1341
- }
1342
- function R(t) {
1343
- if (se.call(t, "key")) {
1344
- var c = Object.getOwnPropertyDescriptor(t, "key").get;
1345
- if (c && c.isReactWarning) return !1;
1346
- }
1347
- return t.key !== void 0;
1348
- }
1349
- function D(t, c) {
1350
- function _() {
1351
- ee || (ee = !0, console.error(
1352
- "%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)",
1353
- c
1354
- ));
1355
- }
1356
- _.isReactWarning = !0, Object.defineProperty(t, "key", {
1357
- get: _,
1358
- configurable: !0
1359
- });
1360
- }
1361
- function m() {
1362
- var t = r(this.type);
1363
- return oe[t] || (oe[t] = !0, console.error(
1364
- "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."
1365
- )), t = this.props.ref, t !== void 0 ? t : null;
1366
- }
1367
- function a(t, c, _, v, w, k, T, B) {
1368
- return _ = k.ref, t = {
1369
- $$typeof: l,
1370
- type: t,
1371
- key: c,
1372
- props: k,
1373
- _owner: w
1374
- }, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(t, "ref", {
1375
- enumerable: !1,
1376
- get: m
1377
- }) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
1378
- configurable: !1,
1379
- enumerable: !1,
1380
- writable: !0,
1381
- value: 0
1382
- }), Object.defineProperty(t, "_debugInfo", {
1383
- configurable: !1,
1384
- enumerable: !1,
1385
- writable: !0,
1386
- value: null
1387
- }), Object.defineProperty(t, "_debugStack", {
1388
- configurable: !1,
1389
- enumerable: !1,
1390
- writable: !0,
1391
- value: T
1392
- }), Object.defineProperty(t, "_debugTask", {
1393
- configurable: !1,
1394
- enumerable: !1,
1395
- writable: !0,
1396
- value: B
1397
- }), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
1398
- }
1399
- function g(t, c, _, v, w, k, T, B) {
1400
- var b = c.children;
1401
- if (b !== void 0)
1402
- if (v)
1403
- if (ie(b)) {
1404
- for (v = 0; v < b.length; v++)
1405
- i(b[v]);
1406
- Object.freeze && Object.freeze(b);
1407
- } else
1408
- console.error(
1409
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1410
- );
1411
- else i(b);
1412
- if (se.call(c, "key")) {
1413
- b = r(t);
1414
- var X = Object.keys(c).filter(function(ue) {
1415
- return ue !== "key";
1416
- });
1417
- v = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", de[b + v] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
1418
- `A props object containing a "key" prop is being spread into JSX:
1419
- let props = %s;
1420
- <%s {...props} />
1421
- React keys must be passed directly to JSX without using spread:
1422
- let props = %s;
1423
- <%s key={someKey} {...props} />`,
1424
- v,
1425
- b,
1426
- X,
1427
- b
1428
- ), de[b + v] = !0);
1429
- }
1430
- if (b = null, _ !== void 0 && (s(_), b = "" + _), R(c) && (s(c.key), b = "" + c.key), "key" in c) {
1431
- _ = {};
1432
- for (var le in c)
1433
- le !== "key" && (_[le] = c[le]);
1434
- } else _ = c;
1435
- return b && D(
1436
- _,
1437
- typeof t == "function" ? t.displayName || t.name || "Unknown" : t
1438
- ), a(
1439
- t,
1440
- b,
1441
- k,
1442
- w,
1443
- p(),
1444
- _,
1445
- T,
1446
- B
1447
- );
1448
- }
1449
- function i(t) {
1450
- typeof t == "object" && t !== null && t.$$typeof === l && t._store && (t._store.validated = 1);
1451
- }
1452
- var o = me(), l = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), U = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), K = Symbol.for("react.client.reference"), N = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, se = Object.prototype.hasOwnProperty, ie = Array.isArray, ne = console.createTask ? console.createTask : function() {
1453
- return null;
1454
- };
1455
- o = {
1456
- react_stack_bottom_frame: function(t) {
1457
- return t();
1458
- }
1459
- };
1460
- var ee, oe = {}, fe = o.react_stack_bottom_frame.bind(
1461
- o,
1462
- d
1463
- )(), ce = ne(f(d)), de = {};
1464
- Te.Fragment = O, Te.jsx = function(t, c, _, v, w) {
1465
- var k = 1e4 > N.recentlyCreatedOwnerStacks++;
1466
- return g(
1467
- t,
1468
- c,
1469
- _,
1470
- !1,
1471
- v,
1472
- w,
1473
- k ? Error("react-stack-top-frame") : fe,
1474
- k ? ne(f(t)) : ce
1475
- );
1476
- }, Te.jsxs = function(t, c, _, v, w) {
1477
- var k = 1e4 > N.recentlyCreatedOwnerStacks++;
1478
- return g(
1479
- t,
1480
- c,
1481
- _,
1482
- !0,
1483
- v,
1484
- w,
1485
- k ? Error("react-stack-top-frame") : fe,
1486
- k ? ne(f(t)) : ce
1487
- );
1488
- };
1489
- })()), Te;
1490
- }
1491
- var ct;
1492
- function $t() {
1493
- return ct || (ct = 1, process.env.NODE_ENV === "production" ? Le.exports = Mt() : Le.exports = Ut()), Le.exports;
1494
- }
1495
- var re = $t();
1496
- function Ht({ className: r = "", renderLogo: n, center: s, right: f }) {
1497
- return /* @__PURE__ */ re.jsx("nav", { className: `w-full py-4 bg-navbar-bg-color text-navbar-text-color ${r}`, children: /* @__PURE__ */ re.jsxs("div", { className: "relative flex items-center justify-between max-container", children: [
1498
- n,
1499
- s,
1500
- /* @__PURE__ */ re.jsx("div", { className: "flex items-center gap-2", children: f })
1
+ import { jsx as r, jsxs as a, Fragment as c } from "react/jsx-runtime";
2
+ import { useTranslation as l } from "react-i18next";
3
+ import { Link as s } from "@tanstack/react-router";
4
+ function u({ className: n = "", renderLogo: e, center: t, right: o }) {
5
+ return /* @__PURE__ */ r("nav", { className: `w-full py-4 bg-navbar-bg-color text-navbar-text-color ${n}`, children: /* @__PURE__ */ a("div", { className: "relative flex items-center justify-between max-container", children: [
6
+ e,
7
+ t,
8
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: o })
1501
9
  ] }) });
1502
10
  }
1503
- var q = me();
1504
- const Yt = (r, n, s, f) => {
1505
- var d, R, D, m;
1506
- const p = [s, {
1507
- code: n,
1508
- ...f || {}
1509
- }];
1510
- if ((R = (d = r == null ? void 0 : r.services) == null ? void 0 : d.logger) != null && R.forward)
1511
- return r.services.logger.forward(p, "warn", "react-i18next::", !0);
1512
- _e(p[0]) && (p[0] = `react-i18next:: ${p[0]}`), (m = (D = r == null ? void 0 : r.services) == null ? void 0 : D.logger) != null && m.warn ? r.services.logger.warn(...p) : console != null && console.warn && console.warn(...p);
1513
- }, ft = {}, Ke = (r, n, s, f) => {
1514
- _e(s) && ft[s] || (_e(s) && (ft[s] = /* @__PURE__ */ new Date()), Yt(r, n, s, f));
1515
- }, wt = (r, n) => () => {
1516
- if (r.isInitialized)
1517
- n();
1518
- else {
1519
- const s = () => {
1520
- setTimeout(() => {
1521
- r.off("initialized", s);
1522
- }, 0), n();
1523
- };
1524
- r.on("initialized", s);
1525
- }
1526
- }, Be = (r, n, s) => {
1527
- r.loadNamespaces(n, wt(r, s));
1528
- }, lt = (r, n, s, f) => {
1529
- if (_e(s) && (s = [s]), r.options.preload && r.options.preload.indexOf(n) > -1) return Be(r, s, f);
1530
- s.forEach((p) => {
1531
- r.options.ns.indexOf(p) < 0 && r.options.ns.push(p);
1532
- }), r.loadLanguages(n, wt(r, f));
1533
- }, zt = (r, n, s = {}) => !n.languages || !n.languages.length ? (Ke(n, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
1534
- languages: n.languages
1535
- }), !0) : n.hasLoadedNamespace(r, {
1536
- lng: s.lng,
1537
- precheck: (f, p) => {
1538
- if (s.bindI18n && s.bindI18n.indexOf("languageChanging") > -1 && f.services.backendConnector.backend && f.isLanguageChangingTo && !p(f.isLanguageChangingTo, r)) return !1;
1539
- }
1540
- }), _e = (r) => typeof r == "string", Vt = (r) => typeof r == "object" && r !== null, Wt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, qt = {
1541
- "&amp;": "&",
1542
- "&#38;": "&",
1543
- "&lt;": "<",
1544
- "&#60;": "<",
1545
- "&gt;": ">",
1546
- "&#62;": ">",
1547
- "&apos;": "'",
1548
- "&#39;": "'",
1549
- "&quot;": '"',
1550
- "&#34;": '"',
1551
- "&nbsp;": " ",
1552
- "&#160;": " ",
1553
- "&copy;": "©",
1554
- "&#169;": "©",
1555
- "&reg;": "®",
1556
- "&#174;": "®",
1557
- "&hellip;": "…",
1558
- "&#8230;": "…",
1559
- "&#x2F;": "/",
1560
- "&#47;": "/"
1561
- }, Gt = (r) => qt[r], Ft = (r) => r.replace(Wt, Gt);
1562
- let Kt = {
1563
- bindI18n: "languageChanged",
1564
- bindI18nStore: "",
1565
- transEmptyNodeValue: "",
1566
- transSupportBasicHtmlNodes: !0,
1567
- transWrapTextNodes: "",
1568
- transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
1569
- useSuspense: !0,
1570
- unescape: Ft
1571
- };
1572
- const Bt = () => Kt;
1573
- let Xt;
1574
- const Qt = () => Xt, Jt = q.createContext();
1575
- class Zt {
1576
- constructor() {
1577
- this.usedNamespaces = {};
1578
- }
1579
- addUsedNamespaces(n) {
1580
- n.forEach((s) => {
1581
- this.usedNamespaces[s] || (this.usedNamespaces[s] = !0);
1582
- });
1583
- }
1584
- getUsedNamespaces() {
1585
- return Object.keys(this.usedNamespaces);
1586
- }
1587
- }
1588
- const er = (r, n) => {
1589
- const s = q.useRef();
1590
- return q.useEffect(() => {
1591
- s.current = r;
1592
- }, [r, n]), s.current;
1593
- }, Ct = (r, n, s, f) => r.getFixedT(n, s, f), tr = (r, n, s, f) => q.useCallback(Ct(r, n, s, f), [r, n, s, f]), rr = (r, n = {}) => {
1594
- var H, C, $, W;
1595
- const {
1596
- i18n: s
1597
- } = n, {
1598
- i18n: f,
1599
- defaultNS: p
1600
- } = q.useContext(Jt) || {}, d = s || f || Qt();
1601
- if (d && !d.reportNamespaces && (d.reportNamespaces = new Zt()), !d) {
1602
- Ke(d, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
1603
- const x = (K, N) => _e(N) ? N : Vt(N) && _e(N.defaultValue) ? N.defaultValue : Array.isArray(K) ? K[K.length - 1] : K, F = [x, {}, !1];
1604
- return F.t = x, F.i18n = {}, F.ready = !1, F;
1605
- }
1606
- (H = d.options.react) != null && H.wait && Ke(d, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
1607
- const R = {
1608
- ...Bt(),
1609
- ...d.options.react,
1610
- ...n
1611
- }, {
1612
- useSuspense: D,
1613
- keyPrefix: m
1614
- } = R;
1615
- let a = p || ((C = d.options) == null ? void 0 : C.defaultNS);
1616
- a = _e(a) ? [a] : a || ["translation"], (W = ($ = d.reportNamespaces).addUsedNamespaces) == null || W.call($, a);
1617
- const g = (d.isInitialized || d.initializedStoreOnce) && a.every((x) => zt(x, d, R)), i = tr(d, n.lng || null, R.nsMode === "fallback" ? a : a[0], m), o = () => i, l = () => Ct(d, n.lng || null, R.nsMode === "fallback" ? a : a[0], m), [E, O] = q.useState(o);
1618
- let A = a.join();
1619
- n.lng && (A = `${n.lng}${A}`);
1620
- const z = er(A), V = q.useRef(!0);
1621
- q.useEffect(() => {
1622
- const {
1623
- bindI18n: x,
1624
- bindI18nStore: F
1625
- } = R;
1626
- V.current = !0, !g && !D && (n.lng ? lt(d, n.lng, a, () => {
1627
- V.current && O(l);
1628
- }) : Be(d, a, () => {
1629
- V.current && O(l);
1630
- })), g && z && z !== A && V.current && O(l);
1631
- const K = () => {
1632
- V.current && O(l);
1633
- };
1634
- return x && (d == null || d.on(x, K)), F && (d == null || d.store.on(F, K)), () => {
1635
- V.current = !1, d && x && (x == null || x.split(" ").forEach((N) => d.off(N, K))), F && d && F.split(" ").forEach((N) => d.store.off(N, K));
1636
- };
1637
- }, [d, A]), q.useEffect(() => {
1638
- V.current && g && O(o);
1639
- }, [d, m, g]);
1640
- const U = [E, d, g];
1641
- if (U.t = E, U.i18n = d, U.ready = g, g || !g && !D) return U;
1642
- throw new Promise((x) => {
1643
- n.lng ? lt(d, n.lng, a, () => x()) : Be(d, a, () => x());
1644
- });
1645
- };
1646
- function nr() {
1647
- const { t: r, i18n: n } = rr();
1648
- return { t: r, i18n: n, toggleLanguage: () => {
1649
- const f = n.language === "en" ? "es" : "en";
1650
- n.changeLanguage(f);
11
+ function i() {
12
+ const { t: n, i18n: e } = l();
13
+ return { t: n, i18n: e, toggleLanguage: () => {
14
+ const o = e.language === "en" ? "es" : "en";
15
+ e.changeLanguage(o);
1651
16
  } };
1652
17
  }
1653
- const or = [
18
+ const m = [
1654
19
  {
1655
20
  id: 1,
1656
21
  name: "menu.store",
@@ -1668,1093 +33,30 @@ const or = [
1668
33
  route: "/contact-us"
1669
34
  }
1670
35
  ];
1671
- var ur = process.env.NODE_ENV === "production", Ye = "Invariant failed";
1672
- function ar(r, n) {
1673
- if (!r) {
1674
- if (ur)
1675
- throw new Error(Ye);
1676
- var s = typeof n == "function" ? n() : n, f = s ? "".concat(Ye, ": ").concat(s) : Ye;
1677
- throw new Error(f);
1678
- }
1679
- }
1680
- var sr = process.env.NODE_ENV === "production";
1681
- function ir(r, n) {
1682
- if (!sr) {
1683
- if (r)
1684
- return;
1685
- var s = "Warning: " + n;
1686
- typeof console < "u" && console.warn(s);
1687
- try {
1688
- throw Error(s);
1689
- } catch {
1690
- }
1691
- }
1692
- }
1693
- function cr(r) {
1694
- return typeof r == "function";
1695
- }
1696
- function dt(r, n) {
1697
- return cr(r) ? r(n) : r;
1698
- }
1699
- function At(r, n) {
1700
- if (r === n)
1701
- return r;
1702
- const s = n, f = yt(r) && yt(s);
1703
- if (f || pt(r) && pt(s)) {
1704
- const p = f ? r : Object.keys(r).concat(
1705
- Object.getOwnPropertySymbols(r)
1706
- ), d = p.length, R = f ? s : Object.keys(s).concat(
1707
- Object.getOwnPropertySymbols(s)
1708
- ), D = R.length, m = f ? [] : {};
1709
- let a = 0;
1710
- for (let g = 0; g < D; g++) {
1711
- const i = f ? g : R[g];
1712
- (!f && p.includes(i) || f) && r[i] === void 0 && s[i] === void 0 ? (m[i] = void 0, a++) : (m[i] = At(r[i], s[i]), m[i] === r[i] && r[i] !== void 0 && a++);
1713
- }
1714
- return d === D && a === d ? r : m;
1715
- }
1716
- return s;
1717
- }
1718
- function pt(r) {
1719
- return (
1720
- // all the checks from isPlainObject are more likely to hit so we perform them first
1721
- Xe(r) && Object.getOwnPropertyNames(r).length === Object.keys(r).length
1722
- );
1723
- }
1724
- function Xe(r) {
1725
- if (!mt(r))
1726
- return !1;
1727
- const n = r.constructor;
1728
- if (typeof n > "u")
1729
- return !0;
1730
- const s = n.prototype;
1731
- return !(!mt(s) || !s.hasOwnProperty("isPrototypeOf"));
1732
- }
1733
- function mt(r) {
1734
- return Object.prototype.toString.call(r) === "[object Object]";
1735
- }
1736
- function yt(r) {
1737
- return Array.isArray(r) && r.length === Object.keys(r).length;
1738
- }
1739
- function gt(r, n) {
1740
- let s = Object.keys(r);
1741
- return n && (s = s.filter((f) => r[f] !== void 0)), s;
1742
- }
1743
- function Qe(r, n, s) {
1744
- if (r === n)
1745
- return !0;
1746
- if (typeof r != typeof n)
1747
- return !1;
1748
- if (Xe(r) && Xe(n)) {
1749
- const f = (s == null ? void 0 : s.ignoreUndefined) ?? !0, p = gt(r, f), d = gt(n, f);
1750
- return !(s != null && s.partial) && p.length !== d.length ? !1 : d.every((R) => Qe(r[R], n[R], s));
1751
- }
1752
- return Array.isArray(r) && Array.isArray(n) ? r.length !== n.length ? !1 : !r.some((f, p) => !Qe(f, n[p], s)) : !1;
1753
- }
1754
- function Ue(r, n) {
1755
- return r != null && r.endsWith("/") && r !== "/" && r !== `${n}/` ? r.slice(0, -1) : r;
1756
- }
1757
- function fr(r, n, s) {
1758
- return Ue(r, s) === Ue(n, s);
1759
- }
1760
- const lr = "Error preloading route! ☝️";
1761
- var Me = { exports: {} }, ze = {}, xe = { exports: {} }, Ve = {};
1762
- /**
1763
- * @license React
1764
- * use-sync-external-store-shim.production.js
1765
- *
1766
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1767
- *
1768
- * This source code is licensed under the MIT license found in the
1769
- * LICENSE file in the root directory of this source tree.
1770
- */
1771
- var _t;
1772
- function dr() {
1773
- if (_t) return Ve;
1774
- _t = 1;
1775
- var r = me();
1776
- function n(i, o) {
1777
- return i === o && (i !== 0 || 1 / i === 1 / o) || i !== i && o !== o;
1778
- }
1779
- var s = typeof Object.is == "function" ? Object.is : n, f = r.useState, p = r.useEffect, d = r.useLayoutEffect, R = r.useDebugValue;
1780
- function D(i, o) {
1781
- var l = o(), E = f({ inst: { value: l, getSnapshot: o } }), O = E[0].inst, A = E[1];
1782
- return d(
1783
- function() {
1784
- O.value = l, O.getSnapshot = o, m(O) && A({ inst: O });
1785
- },
1786
- [i, l, o]
1787
- ), p(
1788
- function() {
1789
- return m(O) && A({ inst: O }), i(function() {
1790
- m(O) && A({ inst: O });
1791
- });
1792
- },
1793
- [i]
1794
- ), R(l), l;
1795
- }
1796
- function m(i) {
1797
- var o = i.getSnapshot;
1798
- i = i.value;
1799
- try {
1800
- var l = o();
1801
- return !s(i, l);
1802
- } catch {
1803
- return !0;
1804
- }
1805
- }
1806
- function a(i, o) {
1807
- return o();
1808
- }
1809
- var g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : D;
1810
- return Ve.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : g, Ve;
1811
- }
1812
- var We = {};
1813
- /**
1814
- * @license React
1815
- * use-sync-external-store-shim.development.js
1816
- *
1817
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1818
- *
1819
- * This source code is licensed under the MIT license found in the
1820
- * LICENSE file in the root directory of this source tree.
1821
- */
1822
- var ht;
1823
- function pr() {
1824
- return ht || (ht = 1, process.env.NODE_ENV !== "production" && (function() {
1825
- function r(l, E) {
1826
- return l === E && (l !== 0 || 1 / l === 1 / E) || l !== l && E !== E;
1827
- }
1828
- function n(l, E) {
1829
- g || p.startTransition === void 0 || (g = !0, console.error(
1830
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
1831
- ));
1832
- var O = E();
1833
- if (!i) {
1834
- var A = E();
1835
- d(O, A) || (console.error(
1836
- "The result of getSnapshot should be cached to avoid an infinite loop"
1837
- ), i = !0);
1838
- }
1839
- A = R({
1840
- inst: { value: O, getSnapshot: E }
1841
- });
1842
- var z = A[0].inst, V = A[1];
1843
- return m(
1844
- function() {
1845
- z.value = O, z.getSnapshot = E, s(z) && V({ inst: z });
1846
- },
1847
- [l, O, E]
1848
- ), D(
1849
- function() {
1850
- return s(z) && V({ inst: z }), l(function() {
1851
- s(z) && V({ inst: z });
1852
- });
1853
- },
1854
- [l]
1855
- ), a(O), O;
1856
- }
1857
- function s(l) {
1858
- var E = l.getSnapshot;
1859
- l = l.value;
1860
- try {
1861
- var O = E();
1862
- return !d(l, O);
1863
- } catch {
1864
- return !0;
1865
- }
1866
- }
1867
- function f(l, E) {
1868
- return E();
1869
- }
1870
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1871
- var p = me(), d = typeof Object.is == "function" ? Object.is : r, R = p.useState, D = p.useEffect, m = p.useLayoutEffect, a = p.useDebugValue, g = !1, i = !1, o = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : n;
1872
- We.useSyncExternalStore = p.useSyncExternalStore !== void 0 ? p.useSyncExternalStore : o, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1873
- })()), We;
1874
- }
1875
- var vt;
1876
- function Nt() {
1877
- return vt || (vt = 1, process.env.NODE_ENV === "production" ? xe.exports = dr() : xe.exports = pr()), xe.exports;
1878
- }
1879
- /**
1880
- * @license React
1881
- * use-sync-external-store-shim/with-selector.production.js
1882
- *
1883
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1884
- *
1885
- * This source code is licensed under the MIT license found in the
1886
- * LICENSE file in the root directory of this source tree.
1887
- */
1888
- var Et;
1889
- function mr() {
1890
- if (Et) return ze;
1891
- Et = 1;
1892
- var r = me(), n = Nt();
1893
- function s(a, g) {
1894
- return a === g && (a !== 0 || 1 / a === 1 / g) || a !== a && g !== g;
1895
- }
1896
- var f = typeof Object.is == "function" ? Object.is : s, p = n.useSyncExternalStore, d = r.useRef, R = r.useEffect, D = r.useMemo, m = r.useDebugValue;
1897
- return ze.useSyncExternalStoreWithSelector = function(a, g, i, o, l) {
1898
- var E = d(null);
1899
- if (E.current === null) {
1900
- var O = { hasValue: !1, value: null };
1901
- E.current = O;
1902
- } else O = E.current;
1903
- E = D(
1904
- function() {
1905
- function z($) {
1906
- if (!V) {
1907
- if (V = !0, U = $, $ = o($), l !== void 0 && O.hasValue) {
1908
- var W = O.value;
1909
- if (l(W, $))
1910
- return H = W;
1911
- }
1912
- return H = $;
1913
- }
1914
- if (W = H, f(U, $)) return W;
1915
- var x = o($);
1916
- return l !== void 0 && l(W, x) ? (U = $, W) : (U = $, H = x);
1917
- }
1918
- var V = !1, U, H, C = i === void 0 ? null : i;
1919
- return [
1920
- function() {
1921
- return z(g());
1922
- },
1923
- C === null ? void 0 : function() {
1924
- return z(C());
1925
- }
1926
- ];
1927
- },
1928
- [g, i, o, l]
1929
- );
1930
- var A = p(a, E[0], E[1]);
1931
- return R(
1932
- function() {
1933
- O.hasValue = !0, O.value = A;
1934
- },
1935
- [A]
1936
- ), m(A), A;
1937
- }, ze;
1938
- }
1939
- var qe = {};
1940
- /**
1941
- * @license React
1942
- * use-sync-external-store-shim/with-selector.development.js
1943
- *
1944
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1945
- *
1946
- * This source code is licensed under the MIT license found in the
1947
- * LICENSE file in the root directory of this source tree.
1948
- */
1949
- var Ot;
1950
- function yr() {
1951
- return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && (function() {
1952
- function r(a, g) {
1953
- return a === g && (a !== 0 || 1 / a === 1 / g) || a !== a && g !== g;
1954
- }
1955
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1956
- var n = me(), s = Nt(), f = typeof Object.is == "function" ? Object.is : r, p = s.useSyncExternalStore, d = n.useRef, R = n.useEffect, D = n.useMemo, m = n.useDebugValue;
1957
- qe.useSyncExternalStoreWithSelector = function(a, g, i, o, l) {
1958
- var E = d(null);
1959
- if (E.current === null) {
1960
- var O = { hasValue: !1, value: null };
1961
- E.current = O;
1962
- } else O = E.current;
1963
- E = D(
1964
- function() {
1965
- function z($) {
1966
- if (!V) {
1967
- if (V = !0, U = $, $ = o($), l !== void 0 && O.hasValue) {
1968
- var W = O.value;
1969
- if (l(W, $))
1970
- return H = W;
1971
- }
1972
- return H = $;
1973
- }
1974
- if (W = H, f(U, $))
1975
- return W;
1976
- var x = o($);
1977
- return l !== void 0 && l(W, x) ? (U = $, W) : (U = $, H = x);
1978
- }
1979
- var V = !1, U, H, C = i === void 0 ? null : i;
1980
- return [
1981
- function() {
1982
- return z(g());
1983
- },
1984
- C === null ? void 0 : function() {
1985
- return z(C());
1986
- }
1987
- ];
1988
- },
1989
- [g, i, o, l]
1990
- );
1991
- var A = p(a, E[0], E[1]);
1992
- return R(
1993
- function() {
1994
- O.hasValue = !0, O.value = A;
1995
- },
1996
- [A]
1997
- ), m(A), A;
1998
- }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1999
- })()), qe;
2000
- }
2001
- var St;
2002
- function gr() {
2003
- return St || (St = 1, process.env.NODE_ENV === "production" ? Me.exports = mr() : Me.exports = yr()), Me.exports;
2004
- }
2005
- var _r = gr();
2006
- function hr(r, n = (s) => s) {
2007
- return _r.useSyncExternalStoreWithSelector(
2008
- r.subscribe,
2009
- () => r.state,
2010
- () => r.state,
2011
- n,
2012
- vr
2013
- );
2014
- }
2015
- function vr(r, n) {
2016
- if (Object.is(r, n))
2017
- return !0;
2018
- if (typeof r != "object" || r === null || typeof n != "object" || n === null)
2019
- return !1;
2020
- if (r instanceof Map && n instanceof Map) {
2021
- if (r.size !== n.size) return !1;
2022
- for (const [f, p] of r)
2023
- if (!n.has(f) || !Object.is(p, n.get(f))) return !1;
2024
- return !0;
2025
- }
2026
- if (r instanceof Set && n instanceof Set) {
2027
- if (r.size !== n.size) return !1;
2028
- for (const f of r)
2029
- if (!n.has(f)) return !1;
2030
- return !0;
2031
- }
2032
- if (r instanceof Date && n instanceof Date)
2033
- return r.getTime() === n.getTime();
2034
- const s = Object.keys(r);
2035
- if (s.length !== Object.keys(n).length)
2036
- return !1;
2037
- for (let f = 0; f < s.length; f++)
2038
- if (!Object.prototype.hasOwnProperty.call(n, s[f]) || !Object.is(r[s[f]], n[s[f]]))
2039
- return !1;
2040
- return !0;
2041
- }
2042
- const Ge = q.createContext(null);
2043
- function Er() {
2044
- return typeof document > "u" ? Ge : window.__TSR_ROUTER_CONTEXT__ ? window.__TSR_ROUTER_CONTEXT__ : (window.__TSR_ROUTER_CONTEXT__ = Ge, Ge);
2045
- }
2046
- function kt(r) {
2047
- const n = q.useContext(Er());
2048
- return ir(
2049
- !(((r == null ? void 0 : r.warn) ?? !0) && !n),
2050
- "useRouter must be used inside a <RouterProvider> component!"
2051
- ), n;
2052
- }
2053
- function Je(r) {
2054
- const n = kt({
2055
- warn: (r == null ? void 0 : r.router) === void 0
2056
- }), s = (r == null ? void 0 : r.router) || n, f = q.useRef(void 0);
2057
- return hr(s.__store, (p) => {
2058
- if (r != null && r.select) {
2059
- if (r.structuralSharing ?? s.options.defaultStructuralSharing) {
2060
- const d = At(
2061
- f.current,
2062
- r.select(p)
2063
- );
2064
- return f.current = d, d;
2065
- }
2066
- return r.select(p);
2067
- }
2068
- return p;
2069
- });
2070
- }
2071
- const Or = q.createContext(void 0), Sr = q.createContext(
2072
- void 0
2073
- );
2074
- function Rr(r) {
2075
- const n = q.useContext(
2076
- r.from ? Sr : Or
2077
- );
2078
- return Je({
2079
- select: (f) => {
2080
- const p = f.matches.find(
2081
- (d) => r.from ? r.from === d.routeId : d.id === n
2082
- );
2083
- if (ar(
2084
- !((r.shouldThrow ?? !0) && !p),
2085
- `Could not find ${r.from ? `an active match from "${r.from}"` : "a nearest match!"}`
2086
- ), p !== void 0)
2087
- return r.select ? r.select(p) : p;
2088
- },
2089
- structuralSharing: r.structuralSharing
2090
- });
2091
- }
2092
- var Ie = { exports: {} }, J = {};
2093
- /**
2094
- * @license React
2095
- * react-dom.production.js
2096
- *
2097
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2098
- *
2099
- * This source code is licensed under the MIT license found in the
2100
- * LICENSE file in the root directory of this source tree.
2101
- */
2102
- var Rt;
2103
- function Tr() {
2104
- if (Rt) return J;
2105
- Rt = 1;
2106
- var r = me();
2107
- function n(m) {
2108
- var a = "https://react.dev/errors/" + m;
2109
- if (1 < arguments.length) {
2110
- a += "?args[]=" + encodeURIComponent(arguments[1]);
2111
- for (var g = 2; g < arguments.length; g++)
2112
- a += "&args[]=" + encodeURIComponent(arguments[g]);
2113
- }
2114
- return "Minified React error #" + m + "; visit " + a + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
2115
- }
2116
- function s() {
2117
- }
2118
- var f = {
2119
- d: {
2120
- f: s,
2121
- r: function() {
2122
- throw Error(n(522));
2123
- },
2124
- D: s,
2125
- C: s,
2126
- L: s,
2127
- m: s,
2128
- X: s,
2129
- S: s,
2130
- M: s
2131
- },
2132
- p: 0,
2133
- findDOMNode: null
2134
- }, p = Symbol.for("react.portal");
2135
- function d(m, a, g) {
2136
- var i = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
2137
- return {
2138
- $$typeof: p,
2139
- key: i == null ? null : "" + i,
2140
- children: m,
2141
- containerInfo: a,
2142
- implementation: g
2143
- };
2144
- }
2145
- var R = r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2146
- function D(m, a) {
2147
- if (m === "font") return "";
2148
- if (typeof a == "string")
2149
- return a === "use-credentials" ? a : "";
2150
- }
2151
- return J.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = f, J.createPortal = function(m, a) {
2152
- var g = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
2153
- if (!a || a.nodeType !== 1 && a.nodeType !== 9 && a.nodeType !== 11)
2154
- throw Error(n(299));
2155
- return d(m, a, null, g);
2156
- }, J.flushSync = function(m) {
2157
- var a = R.T, g = f.p;
2158
- try {
2159
- if (R.T = null, f.p = 2, m) return m();
2160
- } finally {
2161
- R.T = a, f.p = g, f.d.f();
2162
- }
2163
- }, J.preconnect = function(m, a) {
2164
- typeof m == "string" && (a ? (a = a.crossOrigin, a = typeof a == "string" ? a === "use-credentials" ? a : "" : void 0) : a = null, f.d.C(m, a));
2165
- }, J.prefetchDNS = function(m) {
2166
- typeof m == "string" && f.d.D(m);
2167
- }, J.preinit = function(m, a) {
2168
- if (typeof m == "string" && a && typeof a.as == "string") {
2169
- var g = a.as, i = D(g, a.crossOrigin), o = typeof a.integrity == "string" ? a.integrity : void 0, l = typeof a.fetchPriority == "string" ? a.fetchPriority : void 0;
2170
- g === "style" ? f.d.S(
2171
- m,
2172
- typeof a.precedence == "string" ? a.precedence : void 0,
2173
- {
2174
- crossOrigin: i,
2175
- integrity: o,
2176
- fetchPriority: l
2177
- }
2178
- ) : g === "script" && f.d.X(m, {
2179
- crossOrigin: i,
2180
- integrity: o,
2181
- fetchPriority: l,
2182
- nonce: typeof a.nonce == "string" ? a.nonce : void 0
2183
- });
2184
- }
2185
- }, J.preinitModule = function(m, a) {
2186
- if (typeof m == "string")
2187
- if (typeof a == "object" && a !== null) {
2188
- if (a.as == null || a.as === "script") {
2189
- var g = D(
2190
- a.as,
2191
- a.crossOrigin
2192
- );
2193
- f.d.M(m, {
2194
- crossOrigin: g,
2195
- integrity: typeof a.integrity == "string" ? a.integrity : void 0,
2196
- nonce: typeof a.nonce == "string" ? a.nonce : void 0
2197
- });
2198
- }
2199
- } else a == null && f.d.M(m);
2200
- }, J.preload = function(m, a) {
2201
- if (typeof m == "string" && typeof a == "object" && a !== null && typeof a.as == "string") {
2202
- var g = a.as, i = D(g, a.crossOrigin);
2203
- f.d.L(m, g, {
2204
- crossOrigin: i,
2205
- integrity: typeof a.integrity == "string" ? a.integrity : void 0,
2206
- nonce: typeof a.nonce == "string" ? a.nonce : void 0,
2207
- type: typeof a.type == "string" ? a.type : void 0,
2208
- fetchPriority: typeof a.fetchPriority == "string" ? a.fetchPriority : void 0,
2209
- referrerPolicy: typeof a.referrerPolicy == "string" ? a.referrerPolicy : void 0,
2210
- imageSrcSet: typeof a.imageSrcSet == "string" ? a.imageSrcSet : void 0,
2211
- imageSizes: typeof a.imageSizes == "string" ? a.imageSizes : void 0,
2212
- media: typeof a.media == "string" ? a.media : void 0
2213
- });
2214
- }
2215
- }, J.preloadModule = function(m, a) {
2216
- if (typeof m == "string")
2217
- if (a) {
2218
- var g = D(a.as, a.crossOrigin);
2219
- f.d.m(m, {
2220
- as: typeof a.as == "string" && a.as !== "script" ? a.as : void 0,
2221
- crossOrigin: g,
2222
- integrity: typeof a.integrity == "string" ? a.integrity : void 0
2223
- });
2224
- } else f.d.m(m);
2225
- }, J.requestFormReset = function(m) {
2226
- f.d.r(m);
2227
- }, J.unstable_batchedUpdates = function(m, a) {
2228
- return m(a);
2229
- }, J.useFormState = function(m, a, g) {
2230
- return R.H.useFormState(m, a, g);
2231
- }, J.useFormStatus = function() {
2232
- return R.H.useHostTransitionStatus();
2233
- }, J.version = "19.1.1", J;
2234
- }
2235
- var Z = {};
2236
- /**
2237
- * @license React
2238
- * react-dom.development.js
2239
- *
2240
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2241
- *
2242
- * This source code is licensed under the MIT license found in the
2243
- * LICENSE file in the root directory of this source tree.
2244
- */
2245
- var Tt;
2246
- function br() {
2247
- return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && (function() {
2248
- function r() {
2249
- }
2250
- function n(i) {
2251
- return "" + i;
2252
- }
2253
- function s(i, o, l) {
2254
- var E = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
2255
- try {
2256
- n(E);
2257
- var O = !1;
2258
- } catch {
2259
- O = !0;
2260
- }
2261
- return O && (console.error(
2262
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
2263
- typeof Symbol == "function" && Symbol.toStringTag && E[Symbol.toStringTag] || E.constructor.name || "Object"
2264
- ), n(E)), {
2265
- $$typeof: a,
2266
- key: E == null ? null : "" + E,
2267
- children: i,
2268
- containerInfo: o,
2269
- implementation: l
2270
- };
2271
- }
2272
- function f(i, o) {
2273
- if (i === "font") return "";
2274
- if (typeof o == "string")
2275
- return o === "use-credentials" ? o : "";
2276
- }
2277
- function p(i) {
2278
- return i === null ? "`null`" : i === void 0 ? "`undefined`" : i === "" ? "an empty string" : 'something with type "' + typeof i + '"';
2279
- }
2280
- function d(i) {
2281
- return i === null ? "`null`" : i === void 0 ? "`undefined`" : i === "" ? "an empty string" : typeof i == "string" ? JSON.stringify(i) : typeof i == "number" ? "`" + i + "`" : 'something with type "' + typeof i + '"';
2282
- }
2283
- function R() {
2284
- var i = g.H;
2285
- return i === null && console.error(
2286
- `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
2287
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
2288
- 2. You might be breaking the Rules of Hooks
2289
- 3. You might have more than one copy of React in the same app
2290
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
2291
- ), i;
2292
- }
2293
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
2294
- var D = me(), m = {
2295
- d: {
2296
- f: r,
2297
- r: function() {
2298
- throw Error(
2299
- "Invalid form element. requestFormReset must be passed a form that was rendered by React."
2300
- );
2301
- },
2302
- D: r,
2303
- C: r,
2304
- L: r,
2305
- m: r,
2306
- X: r,
2307
- S: r,
2308
- M: r
2309
- },
2310
- p: 0,
2311
- findDOMNode: null
2312
- }, a = Symbol.for("react.portal"), g = D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2313
- typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
2314
- "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
2315
- ), Z.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = m, Z.createPortal = function(i, o) {
2316
- var l = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
2317
- if (!o || o.nodeType !== 1 && o.nodeType !== 9 && o.nodeType !== 11)
2318
- throw Error("Target container is not a DOM element.");
2319
- return s(i, o, null, l);
2320
- }, Z.flushSync = function(i) {
2321
- var o = g.T, l = m.p;
2322
- try {
2323
- if (g.T = null, m.p = 2, i)
2324
- return i();
2325
- } finally {
2326
- g.T = o, m.p = l, m.d.f() && console.error(
2327
- "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
2328
- );
2329
- }
2330
- }, Z.preconnect = function(i, o) {
2331
- typeof i == "string" && i ? o != null && typeof o != "object" ? console.error(
2332
- "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
2333
- d(o)
2334
- ) : o != null && typeof o.crossOrigin != "string" && console.error(
2335
- "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
2336
- p(o.crossOrigin)
2337
- ) : console.error(
2338
- "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
2339
- p(i)
2340
- ), typeof i == "string" && (o ? (o = o.crossOrigin, o = typeof o == "string" ? o === "use-credentials" ? o : "" : void 0) : o = null, m.d.C(i, o));
2341
- }, Z.prefetchDNS = function(i) {
2342
- if (typeof i != "string" || !i)
2343
- console.error(
2344
- "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
2345
- p(i)
2346
- );
2347
- else if (1 < arguments.length) {
2348
- var o = arguments[1];
2349
- typeof o == "object" && o.hasOwnProperty("crossOrigin") ? console.error(
2350
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
2351
- d(o)
2352
- ) : console.error(
2353
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
2354
- d(o)
2355
- );
2356
- }
2357
- typeof i == "string" && m.d.D(i);
2358
- }, Z.preinit = function(i, o) {
2359
- if (typeof i == "string" && i ? o == null || typeof o != "object" ? console.error(
2360
- "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
2361
- d(o)
2362
- ) : o.as !== "style" && o.as !== "script" && console.error(
2363
- 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
2364
- d(o.as)
2365
- ) : console.error(
2366
- "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
2367
- p(i)
2368
- ), typeof i == "string" && o && typeof o.as == "string") {
2369
- var l = o.as, E = f(l, o.crossOrigin), O = typeof o.integrity == "string" ? o.integrity : void 0, A = typeof o.fetchPriority == "string" ? o.fetchPriority : void 0;
2370
- l === "style" ? m.d.S(
2371
- i,
2372
- typeof o.precedence == "string" ? o.precedence : void 0,
2373
- {
2374
- crossOrigin: E,
2375
- integrity: O,
2376
- fetchPriority: A
2377
- }
2378
- ) : l === "script" && m.d.X(i, {
2379
- crossOrigin: E,
2380
- integrity: O,
2381
- fetchPriority: A,
2382
- nonce: typeof o.nonce == "string" ? o.nonce : void 0
2383
- });
2384
- }
2385
- }, Z.preinitModule = function(i, o) {
2386
- var l = "";
2387
- if (typeof i == "string" && i || (l += " The `href` argument encountered was " + p(i) + "."), o !== void 0 && typeof o != "object" ? l += " The `options` argument encountered was " + p(o) + "." : o && "as" in o && o.as !== "script" && (l += " The `as` option encountered was " + d(o.as) + "."), l)
2388
- console.error(
2389
- "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
2390
- l
2391
- );
2392
- else
2393
- switch (l = o && typeof o.as == "string" ? o.as : "script", l) {
2394
- case "script":
2395
- break;
2396
- default:
2397
- l = d(l), console.error(
2398
- 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
2399
- l,
2400
- i
2401
- );
2402
- }
2403
- typeof i == "string" && (typeof o == "object" && o !== null ? (o.as == null || o.as === "script") && (l = f(
2404
- o.as,
2405
- o.crossOrigin
2406
- ), m.d.M(i, {
2407
- crossOrigin: l,
2408
- integrity: typeof o.integrity == "string" ? o.integrity : void 0,
2409
- nonce: typeof o.nonce == "string" ? o.nonce : void 0
2410
- })) : o == null && m.d.M(i));
2411
- }, Z.preload = function(i, o) {
2412
- var l = "";
2413
- if (typeof i == "string" && i || (l += " The `href` argument encountered was " + p(i) + "."), o == null || typeof o != "object" ? l += " The `options` argument encountered was " + p(o) + "." : typeof o.as == "string" && o.as || (l += " The `as` option encountered was " + p(o.as) + "."), l && console.error(
2414
- 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
2415
- l
2416
- ), typeof i == "string" && typeof o == "object" && o !== null && typeof o.as == "string") {
2417
- l = o.as;
2418
- var E = f(
2419
- l,
2420
- o.crossOrigin
2421
- );
2422
- m.d.L(i, l, {
2423
- crossOrigin: E,
2424
- integrity: typeof o.integrity == "string" ? o.integrity : void 0,
2425
- nonce: typeof o.nonce == "string" ? o.nonce : void 0,
2426
- type: typeof o.type == "string" ? o.type : void 0,
2427
- fetchPriority: typeof o.fetchPriority == "string" ? o.fetchPriority : void 0,
2428
- referrerPolicy: typeof o.referrerPolicy == "string" ? o.referrerPolicy : void 0,
2429
- imageSrcSet: typeof o.imageSrcSet == "string" ? o.imageSrcSet : void 0,
2430
- imageSizes: typeof o.imageSizes == "string" ? o.imageSizes : void 0,
2431
- media: typeof o.media == "string" ? o.media : void 0
2432
- });
2433
- }
2434
- }, Z.preloadModule = function(i, o) {
2435
- var l = "";
2436
- typeof i == "string" && i || (l += " The `href` argument encountered was " + p(i) + "."), o !== void 0 && typeof o != "object" ? l += " The `options` argument encountered was " + p(o) + "." : o && "as" in o && typeof o.as != "string" && (l += " The `as` option encountered was " + p(o.as) + "."), l && console.error(
2437
- 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
2438
- l
2439
- ), typeof i == "string" && (o ? (l = f(
2440
- o.as,
2441
- o.crossOrigin
2442
- ), m.d.m(i, {
2443
- as: typeof o.as == "string" && o.as !== "script" ? o.as : void 0,
2444
- crossOrigin: l,
2445
- integrity: typeof o.integrity == "string" ? o.integrity : void 0
2446
- })) : m.d.m(i));
2447
- }, Z.requestFormReset = function(i) {
2448
- m.d.r(i);
2449
- }, Z.unstable_batchedUpdates = function(i, o) {
2450
- return i(o);
2451
- }, Z.useFormState = function(i, o, l) {
2452
- return R().useFormState(i, o, l);
2453
- }, Z.useFormStatus = function() {
2454
- return R().useHostTransitionStatus();
2455
- }, Z.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
2456
- })()), Z;
2457
- }
2458
- var bt;
2459
- function wr() {
2460
- if (bt) return Ie.exports;
2461
- bt = 1;
2462
- function r() {
2463
- if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
2464
- if (process.env.NODE_ENV !== "production")
2465
- throw new Error("^_^");
2466
- try {
2467
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r);
2468
- } catch (n) {
2469
- console.error(n);
2470
- }
2471
- }
2472
- }
2473
- return process.env.NODE_ENV === "production" ? (r(), Ie.exports = Tr()) : Ie.exports = br(), Ie.exports;
2474
- }
2475
- var Cr = wr();
2476
- function Ar(r, n, s = {}, f = {}) {
2477
- q.useEffect(() => {
2478
- if (!r.current || f.disabled || typeof IntersectionObserver != "function")
2479
- return;
2480
- const p = new IntersectionObserver(([d]) => {
2481
- n(d);
2482
- }, s);
2483
- return p.observe(r.current), () => {
2484
- p.disconnect();
2485
- };
2486
- }, [n, s, f.disabled, r]);
2487
- }
2488
- function Nr(r) {
2489
- const n = q.useRef(null);
2490
- return q.useImperativeHandle(r, () => n.current, []), n;
2491
- }
2492
- function kr(r, n) {
2493
- const s = kt(), [f, p] = q.useState(!1), d = q.useRef(!1), R = Nr(n), {
2494
- // custom props
2495
- activeProps: D,
2496
- inactiveProps: m,
2497
- activeOptions: a,
2498
- to: g,
2499
- preload: i,
2500
- preloadDelay: o,
2501
- hashScrollIntoView: l,
2502
- replace: E,
2503
- startTransition: O,
2504
- resetScroll: A,
2505
- viewTransition: z,
2506
- // element props
2507
- children: V,
2508
- target: U,
2509
- disabled: H,
2510
- style: C,
2511
- className: $,
2512
- onClick: W,
2513
- onFocus: x,
2514
- onMouseEnter: F,
2515
- onMouseLeave: K,
2516
- onTouchStart: N,
2517
- ignoreBlocker: se,
2518
- // prevent these from being returned
2519
- params: ie,
2520
- search: ne,
2521
- hash: ee,
2522
- state: oe,
2523
- mask: fe,
2524
- reloadDocument: ce,
2525
- unsafeRelative: de,
2526
- from: t,
2527
- _fromLocation: c,
2528
- ..._
2529
- } = r, v = q.useMemo(() => {
2530
- try {
2531
- return new URL(g), "external";
2532
- } catch {
2533
- }
2534
- return "internal";
2535
- }, [g]), w = Je({
2536
- select: (G) => G.location.search,
2537
- structuralSharing: !0
2538
- }), k = Rr({
2539
- strict: !1,
2540
- select: (G) => r.from ?? G.fullPath
2541
- }), T = q.useMemo(
2542
- () => s.buildLocation({ ...r, from: k }),
2543
- // eslint-disable-next-line react-hooks/exhaustive-deps
2544
- [
2545
- s,
2546
- w,
2547
- r._fromLocation,
2548
- k,
2549
- r.hash,
2550
- r.to,
2551
- r.search,
2552
- r.params,
2553
- r.state,
2554
- r.mask,
2555
- r.unsafeRelative
2556
- ]
2557
- ), B = v === "external", b = r.reloadDocument || B ? !1 : i ?? s.options.defaultPreload, X = o ?? s.options.defaultPreloadDelay ?? 0, le = Je({
2558
- select: (G) => {
2559
- if (B) return !1;
2560
- if (a != null && a.exact) {
2561
- if (!fr(
2562
- G.location.pathname,
2563
- T.pathname,
2564
- s.basepath
2565
- ))
2566
- return !1;
2567
- } else {
2568
- const Q = Ue(
2569
- G.location.pathname,
2570
- s.basepath
2571
- ), ae = Ue(
2572
- T.pathname,
2573
- s.basepath
2574
- );
2575
- if (!(Q.startsWith(ae) && (Q.length === ae.length || Q[ae.length] === "/")))
2576
- return !1;
2577
- }
2578
- return ((a == null ? void 0 : a.includeSearch) ?? !0) && !Qe(G.location.search, T.search, {
2579
- partial: !(a != null && a.exact),
2580
- ignoreUndefined: !(a != null && a.explicitUndefined)
2581
- }) ? !1 : a != null && a.includeHash ? G.location.hash === T.hash : !0;
2582
- }
2583
- }), ue = q.useCallback(
2584
- () => {
2585
- s.preloadRoute({ ...r, from: k }).catch((G) => {
2586
- console.warn(G), console.warn(lr);
2587
- });
2588
- },
2589
- // eslint-disable-next-line react-hooks/exhaustive-deps
2590
- [
2591
- s,
2592
- r.to,
2593
- r._fromLocation,
2594
- k,
2595
- r.search,
2596
- r.hash,
2597
- r.params,
2598
- r.state,
2599
- r.mask,
2600
- r.unsafeRelative,
2601
- r.hashScrollIntoView,
2602
- r.href,
2603
- r.ignoreBlocker,
2604
- r.reloadDocument,
2605
- r.replace,
2606
- r.resetScroll,
2607
- r.viewTransition
2608
- ]
2609
- ), Ae = q.useCallback(
2610
- (G) => {
2611
- G != null && G.isIntersecting && ue();
2612
- },
2613
- [ue]
2614
- );
2615
- if (Ar(
2616
- R,
2617
- Ae,
2618
- Mr,
2619
- { disabled: !!H || b !== "viewport" }
2620
- ), q.useEffect(() => {
2621
- d.current || !H && b === "render" && (ue(), d.current = !0);
2622
- }, [H, ue, b]), B)
2623
- return {
2624
- ..._,
2625
- ref: R,
2626
- type: v,
2627
- href: g,
2628
- ...V && { children: V },
2629
- ...U && { target: U },
2630
- ...H && { disabled: H },
2631
- ...C && { style: C },
2632
- ...$ && { className: $ },
2633
- ...W && { onClick: W },
2634
- ...x && { onFocus: x },
2635
- ...F && { onMouseEnter: F },
2636
- ...K && { onMouseLeave: K },
2637
- ...N && { onTouchStart: N }
2638
- };
2639
- const Ne = (G) => {
2640
- if (!H && !Ir(G) && !G.defaultPrevented && (!U || U === "_self") && G.button === 0) {
2641
- G.preventDefault(), Cr.flushSync(() => {
2642
- p(!0);
2643
- });
2644
- const Q = s.subscribe("onResolved", () => {
2645
- Q(), p(!1);
2646
- });
2647
- s.navigate({
2648
- ...r,
2649
- from: k,
2650
- replace: E,
2651
- resetScroll: A,
2652
- hashScrollIntoView: l,
2653
- startTransition: O,
2654
- viewTransition: z,
2655
- ignoreBlocker: se
2656
- });
2657
- }
2658
- }, Oe = (G) => {
2659
- H || b && ue();
2660
- }, Se = Oe, te = (G) => {
2661
- if (!(H || !b))
2662
- if (!X)
2663
- ue();
2664
- else {
2665
- const Q = G.target;
2666
- if (be.has(Q))
2667
- return;
2668
- const ae = setTimeout(() => {
2669
- be.delete(Q), ue();
2670
- }, X);
2671
- be.set(Q, ae);
2672
- }
2673
- }, he = (G) => {
2674
- if (H || !b || !X) return;
2675
- const Q = G.target, ae = be.get(Q);
2676
- ae && (clearTimeout(ae), be.delete(Q));
2677
- }, ye = le ? dt(D, {}) ?? Pr : Fe, ve = le ? Fe : dt(m, {}) ?? Fe, L = [
2678
- $,
2679
- ye.className,
2680
- ve.className
2681
- ].filter(Boolean).join(" "), ge = (C || ye.style || ve.style) && {
2682
- ...C,
2683
- ...ye.style,
2684
- ...ve.style
2685
- };
2686
- return {
2687
- ..._,
2688
- ...ye,
2689
- ...ve,
2690
- href: H ? void 0 : T.maskedLocation ? s.history.createHref(T.maskedLocation.href) : s.history.createHref(T.href),
2691
- ref: R,
2692
- onClick: we([W, Ne]),
2693
- onFocus: we([x, Oe]),
2694
- onMouseEnter: we([F, te]),
2695
- onMouseLeave: we([K, he]),
2696
- onTouchStart: we([N, Se]),
2697
- disabled: !!H,
2698
- target: U,
2699
- ...ge && { style: ge },
2700
- ...L && { className: L },
2701
- ...H && Dr,
2702
- ...le && Lr,
2703
- ...f && jr
2704
- };
2705
- }
2706
- const Fe = {}, Pr = { className: "active" }, Dr = { role: "link", "aria-disabled": !0 }, Lr = { "data-status": "active", "aria-current": "page" }, jr = { "data-transitioning": "transitioning" }, be = /* @__PURE__ */ new WeakMap(), Mr = {
2707
- rootMargin: "100px"
2708
- }, we = (r) => (n) => {
2709
- r.filter(Boolean).forEach((s) => {
2710
- n.defaultPrevented || s(n);
2711
- });
2712
- }, xr = q.forwardRef(
2713
- (r, n) => {
2714
- const { _asChild: s, ...f } = r, {
2715
- type: p,
2716
- ref: d,
2717
- ...R
2718
- } = kr(f, n), D = typeof f.children == "function" ? f.children({
2719
- isActive: R["data-status"] === "active"
2720
- }) : f.children;
2721
- return s === void 0 && delete R.disabled, q.createElement(
2722
- s || "a",
2723
- {
2724
- ...R,
2725
- ref: d
2726
- },
2727
- D
2728
- );
2729
- }
2730
- );
2731
- function Ir(r) {
2732
- return !!(r.metaKey || r.altKey || r.ctrlKey || r.shiftKey);
2733
- }
2734
- function Ur({ className: r = "", classNameItems: n = "" }) {
2735
- const { t: s } = nr();
2736
- return /* @__PURE__ */ re.jsx("div", { className: `${r} flex flex-1 w-full items-center gap-5`, children: or.map((f) => /* @__PURE__ */ re.jsx(
2737
- xr,
36
+ function b({ className: n = "", classNameItems: e = "" }) {
37
+ const { t } = i();
38
+ return /* @__PURE__ */ r("div", { className: `${n} flex flex-1 w-full items-center gap-5`, children: m.map((o) => /* @__PURE__ */ r(
39
+ s,
2738
40
  {
2739
- to: f.route ?? "",
2740
- className: `${f.isMainAction ? "bg-submenu-main-bg-color hover:bg-submenu-main-hover-bg-color border border-submenu-main-border-color text-submenu-main-text-color hover:text-submenu-main-hover-text-color rounded-full px-7 py-2" : "!p-0 text-submenu-text-color hover:text-submenu-hover-text-color bg-submenu-bg-color hover:bg-submenu-hover-bg-color border border-submenu-border-color"} flex items-center text-sm lg:text-base w-max font-bold cursor-pointer ${n}`,
2741
- children: s(f.name)
41
+ to: o.route ?? "",
42
+ className: `${o.isMainAction ? "bg-submenu-main-bg-color hover:bg-submenu-main-hover-bg-color border border-submenu-main-border-color text-submenu-main-text-color hover:text-submenu-main-hover-text-color rounded-full px-7 py-2" : "!p-0 text-submenu-text-color hover:text-submenu-hover-text-color bg-submenu-bg-color hover:bg-submenu-hover-bg-color border border-submenu-border-color"} flex items-center text-sm lg:text-base w-max font-bold cursor-pointer ${e}`,
43
+ children: t(o.name)
2742
44
  },
2743
- f.id
45
+ o.id
2744
46
  )) });
2745
47
  }
2746
- function $r({ className: r = "", subMenuHeaderLeft: n, subMenuHeaderRight: s }) {
2747
- return /* @__PURE__ */ re.jsx("nav", { className: `${r} w-full bg-submenuheader-bg-color border-y border-y-submenuheader-border-color`, children: /* @__PURE__ */ re.jsxs("div", { className: "w-full h-[4.5rem] max-h-[4.5rem] grid grid-cols-12 items-center gap-5 max-container", children: [
2748
- /* @__PURE__ */ re.jsx("div", { className: "flex items-center w-full col-span-4 gap-5 md:col-span-8", children: n ?? /* @__PURE__ */ re.jsx(Ur, {}) }),
2749
- /* @__PURE__ */ re.jsx("div", { className: "flex items-center justify-end col-span-8 md:col-span-4 font-primary", children: s })
48
+ function d({ className: n = "", subMenuHeaderLeft: e, subMenuHeaderRight: t }) {
49
+ return /* @__PURE__ */ r("nav", { className: `${n} w-full bg-submenuheader-bg-color border-y border-y-submenuheader-border-color`, children: /* @__PURE__ */ a("div", { className: "w-full h-[4.5rem] max-h-[4.5rem] grid grid-cols-12 items-center gap-5 max-container", children: [
50
+ /* @__PURE__ */ r("div", { className: "flex items-center w-full col-span-4 gap-5 md:col-span-8", children: e ?? /* @__PURE__ */ r(b, {}) }),
51
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-end col-span-8 md:col-span-4 font-primary", children: t })
2750
52
  ] }) });
2751
53
  }
2752
- function Hr({ renderNavbar: r, renderSubMenuHeader: n }) {
2753
- return /* @__PURE__ */ re.jsxs(re.Fragment, { children: [
2754
- r ?? /* @__PURE__ */ re.jsx(Ht, {}),
2755
- n ?? /* @__PURE__ */ re.jsx($r, {})
54
+ function h({ renderNavbar: n, renderSubMenuHeader: e }) {
55
+ return /* @__PURE__ */ a(c, { children: [
56
+ n ?? /* @__PURE__ */ r(u, {}),
57
+ e ?? /* @__PURE__ */ r(d, {})
2756
58
  ] });
2757
59
  }
2758
60
  export {
2759
- Hr as CoreHeader
61
+ h as CoreHeader
2760
62
  };