@eliseubatista99/react-scaffold-core 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -21
- package/dist/components/button/button.d.ts +7 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/stories/button.stories.d.ts +18 -0
- package/dist/components/drawer/drawer.hook.d.ts +0 -3
- package/dist/components/form/form.d.ts +20 -0
- package/dist/components/form/form.hook.d.ts +8 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/stories/form.stories.d.ts +25 -0
- package/dist/components/image/image.d.ts +8 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/inputField/index.d.ts +1 -0
- package/dist/components/inputField/inputField.d.ts +18 -0
- package/dist/components/inputField/stories/inputField.stories.d.ts +20 -0
- package/dist/components/loader/index.d.ts +1 -0
- package/dist/components/loader/loader.d.ts +6 -0
- package/dist/components/loader/stories/loader.stories.d.ts +19 -0
- package/dist/components/loader/stories/setup.d.ts +2 -0
- package/dist/components/pageLayout/index.d.ts +1 -0
- package/dist/components/pageLayout/pageLayout.d.ts +15 -0
- package/dist/components/pageLayout/stories/pageLayout.stories.d.ts +19 -0
- package/dist/components/pageLayout/stories/setup.d.ts +2 -0
- package/dist/components/svgImage/index.d.ts +1 -0
- package/dist/components/svgImage/svgImage.d.ts +14 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useDrag/index.d.ts +1 -0
- package/dist/hooks/useDrag/useDrag.d.ts +17 -0
- package/dist/hooks/usePointer/index.d.ts +1 -0
- package/dist/hooks/usePointer/usePointer.d.ts +8 -0
- package/dist/hooks/useResponsive/useResponsive.d.ts +1 -0
- package/dist/index.cjs.js +24 -6
- package/dist/index.es.js +2684 -1160
- package/package.json +3 -2
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import * as p from "react";
|
|
2
|
+
import R, { useEffect as Tt, useState as ur, useMemo as cr, useContext as Ge, forwardRef as fr } from "react";
|
|
3
|
+
var be = { exports: {} }, se = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,29 +10,29 @@ var re = { exports: {} }, q = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
13
|
+
var ct;
|
|
14
|
+
function dr() {
|
|
15
|
+
if (ct) return se;
|
|
16
|
+
ct = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
18
|
-
function r(a, n,
|
|
19
|
-
var
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
for (var
|
|
23
|
-
|
|
24
|
-
} else
|
|
25
|
-
return n =
|
|
18
|
+
function r(a, n, i) {
|
|
19
|
+
var o = null;
|
|
20
|
+
if (i !== void 0 && (o = "" + i), n.key !== void 0 && (o = "" + n.key), "key" in n) {
|
|
21
|
+
i = {};
|
|
22
|
+
for (var l in n)
|
|
23
|
+
l !== "key" && (i[l] = n[l]);
|
|
24
|
+
} else i = n;
|
|
25
|
+
return n = i.ref, {
|
|
26
26
|
$$typeof: e,
|
|
27
27
|
type: a,
|
|
28
|
-
key:
|
|
28
|
+
key: o,
|
|
29
29
|
ref: n !== void 0 ? n : null,
|
|
30
|
-
props:
|
|
30
|
+
props: i
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return se.Fragment = t, se.jsx = r, se.jsxs = r, se;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var le = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -42,369 +42,505 @@ var G = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
48
|
-
function e(
|
|
49
|
-
if (
|
|
50
|
-
if (typeof
|
|
51
|
-
return
|
|
52
|
-
if (typeof
|
|
53
|
-
switch (
|
|
54
|
-
case
|
|
45
|
+
var ft;
|
|
46
|
+
function hr() {
|
|
47
|
+
return ft || (ft = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
function e(y) {
|
|
49
|
+
if (y == null) return null;
|
|
50
|
+
if (typeof y == "function")
|
|
51
|
+
return y.$$typeof === M ? null : y.displayName || y.name || null;
|
|
52
|
+
if (typeof y == "string") return y;
|
|
53
|
+
switch (y) {
|
|
54
|
+
case h:
|
|
55
55
|
return "Fragment";
|
|
56
|
-
case
|
|
56
|
+
case d:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case v:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case I:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case A:
|
|
63
63
|
return "SuspenseList";
|
|
64
64
|
case $:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
|
-
if (typeof
|
|
68
|
-
switch (typeof
|
|
67
|
+
if (typeof y == "object")
|
|
68
|
+
switch (typeof y.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
|
-
),
|
|
71
|
-
case
|
|
70
|
+
), y.$$typeof) {
|
|
71
|
+
case f:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
74
|
-
return (
|
|
73
|
+
case w:
|
|
74
|
+
return (y.displayName || "Context") + ".Provider";
|
|
75
75
|
case b:
|
|
76
|
-
return (
|
|
77
|
-
case
|
|
78
|
-
var
|
|
79
|
-
return
|
|
80
|
-
case
|
|
81
|
-
return
|
|
82
|
-
case
|
|
83
|
-
|
|
76
|
+
return (y._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case T:
|
|
78
|
+
var k = y.render;
|
|
79
|
+
return y = y.displayName, y || (y = k.displayName || k.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
|
|
80
|
+
case C:
|
|
81
|
+
return k = y.displayName || null, k !== null ? k : e(y.type) || "Memo";
|
|
82
|
+
case z:
|
|
83
|
+
k = y._payload, y = y._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(
|
|
85
|
+
return e(y(k));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
|
-
function t(
|
|
92
|
-
return "" +
|
|
91
|
+
function t(y) {
|
|
92
|
+
return "" + y;
|
|
93
93
|
}
|
|
94
|
-
function r(
|
|
94
|
+
function r(y) {
|
|
95
95
|
try {
|
|
96
|
-
t(
|
|
97
|
-
var
|
|
96
|
+
t(y);
|
|
97
|
+
var k = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
k = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var
|
|
104
|
-
return
|
|
105
|
-
|
|
101
|
+
if (k) {
|
|
102
|
+
k = console;
|
|
103
|
+
var O = k.error, F = typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object";
|
|
104
|
+
return O.call(
|
|
105
|
+
k,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
108
|
-
), t(
|
|
107
|
+
F
|
|
108
|
+
), t(y);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function a(
|
|
112
|
-
if (
|
|
113
|
-
if (typeof
|
|
111
|
+
function a(y) {
|
|
112
|
+
if (y === h) return "<>";
|
|
113
|
+
if (typeof y == "object" && y !== null && y.$$typeof === z)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var k = e(y);
|
|
117
|
+
return k ? "<" + k + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function n() {
|
|
123
|
-
var
|
|
124
|
-
return
|
|
123
|
+
var y = B.A;
|
|
124
|
+
return y === null ? null : y.getOwner();
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function i() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
129
|
+
function o(y) {
|
|
130
|
+
if (at.call(y, "key")) {
|
|
131
|
+
var k = Object.getOwnPropertyDescriptor(y, "key").get;
|
|
132
|
+
if (k && k.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
|
-
return
|
|
134
|
+
return y.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
function l(y, k) {
|
|
137
|
+
function O() {
|
|
138
|
+
it || (it = !0, console.error(
|
|
139
139
|
"%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)",
|
|
140
|
-
|
|
140
|
+
k
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
get:
|
|
143
|
+
O.isReactWarning = !0, Object.defineProperty(y, "key", {
|
|
144
|
+
get: O,
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
var
|
|
150
|
-
return
|
|
148
|
+
function s() {
|
|
149
|
+
var y = e(this.type);
|
|
150
|
+
return ot[y] || (ot[y] = !0, console.error(
|
|
151
151
|
"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."
|
|
152
|
-
)),
|
|
152
|
+
)), y = this.props.ref, y !== void 0 ? y : null;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
156
|
-
$$typeof:
|
|
157
|
-
type:
|
|
158
|
-
key:
|
|
159
|
-
props:
|
|
160
|
-
_owner:
|
|
161
|
-
}, (
|
|
154
|
+
function u(y, k, O, F, Q, W, je, Ne) {
|
|
155
|
+
return O = W.ref, y = {
|
|
156
|
+
$$typeof: x,
|
|
157
|
+
type: y,
|
|
158
|
+
key: k,
|
|
159
|
+
props: W,
|
|
160
|
+
_owner: Q
|
|
161
|
+
}, (O !== void 0 ? O : null) !== null ? Object.defineProperty(y, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
|
-
get:
|
|
164
|
-
}) : Object.defineProperty(
|
|
163
|
+
get: s
|
|
164
|
+
}) : Object.defineProperty(y, "ref", { enumerable: !1, value: null }), y._store = {}, Object.defineProperty(y._store, "validated", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
writable: !0,
|
|
168
168
|
value: 0
|
|
169
|
-
}), Object.defineProperty(
|
|
169
|
+
}), Object.defineProperty(y, "_debugInfo", {
|
|
170
170
|
configurable: !1,
|
|
171
171
|
enumerable: !1,
|
|
172
172
|
writable: !0,
|
|
173
173
|
value: null
|
|
174
|
-
}), Object.defineProperty(
|
|
174
|
+
}), Object.defineProperty(y, "_debugStack", {
|
|
175
175
|
configurable: !1,
|
|
176
176
|
enumerable: !1,
|
|
177
177
|
writable: !0,
|
|
178
|
-
value:
|
|
179
|
-
}), Object.defineProperty(
|
|
178
|
+
value: je
|
|
179
|
+
}), Object.defineProperty(y, "_debugTask", {
|
|
180
180
|
configurable: !1,
|
|
181
181
|
enumerable: !1,
|
|
182
182
|
writable: !0,
|
|
183
|
-
value:
|
|
184
|
-
}), Object.freeze && (Object.freeze(
|
|
183
|
+
value: Ne
|
|
184
|
+
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
var
|
|
188
|
-
if (
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
for (
|
|
192
|
-
g(
|
|
193
|
-
Object.freeze && Object.freeze(
|
|
186
|
+
function c(y, k, O, F, Q, W, je, Ne) {
|
|
187
|
+
var j = k.children;
|
|
188
|
+
if (j !== void 0)
|
|
189
|
+
if (F)
|
|
190
|
+
if (sr(j)) {
|
|
191
|
+
for (F = 0; F < j.length; F++)
|
|
192
|
+
g(j[F]);
|
|
193
|
+
Object.freeze && Object.freeze(j);
|
|
194
194
|
} else
|
|
195
195
|
console.error(
|
|
196
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
197
|
);
|
|
198
|
-
else g(
|
|
199
|
-
if (
|
|
200
|
-
|
|
201
|
-
var
|
|
202
|
-
return
|
|
198
|
+
else g(j);
|
|
199
|
+
if (at.call(k, "key")) {
|
|
200
|
+
j = e(y);
|
|
201
|
+
var te = Object.keys(k).filter(function(lr) {
|
|
202
|
+
return lr !== "key";
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
F = 0 < te.length ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}", ut[j + F] || (te = 0 < te.length ? "{" + te.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
206
206
|
let props = %s;
|
|
207
207
|
<%s {...props} />
|
|
208
208
|
React keys must be passed directly to JSX without using spread:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s key={someKey} {...props} />`,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
),
|
|
211
|
+
F,
|
|
212
|
+
j,
|
|
213
|
+
te,
|
|
214
|
+
j
|
|
215
|
+
), ut[j + F] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (
|
|
218
|
-
|
|
219
|
-
for (var
|
|
220
|
-
|
|
221
|
-
} else
|
|
222
|
-
return
|
|
223
|
-
|
|
224
|
-
typeof
|
|
225
|
-
),
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
217
|
+
if (j = null, O !== void 0 && (r(O), j = "" + O), o(k) && (r(k.key), j = "" + k.key), "key" in k) {
|
|
218
|
+
O = {};
|
|
219
|
+
for (var Me in k)
|
|
220
|
+
Me !== "key" && (O[Me] = k[Me]);
|
|
221
|
+
} else O = k;
|
|
222
|
+
return j && l(
|
|
223
|
+
O,
|
|
224
|
+
typeof y == "function" ? y.displayName || y.name || "Unknown" : y
|
|
225
|
+
), u(
|
|
226
|
+
y,
|
|
227
|
+
j,
|
|
228
|
+
W,
|
|
229
|
+
Q,
|
|
230
230
|
n(),
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
O,
|
|
232
|
+
je,
|
|
233
|
+
Ne
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function g(
|
|
237
|
-
typeof
|
|
236
|
+
function g(y) {
|
|
237
|
+
typeof y == "object" && y !== null && y.$$typeof === x && y._store && (y._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var
|
|
239
|
+
var m = R, x = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), w = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), B = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, at = Object.prototype.hasOwnProperty, sr = Array.isArray, Fe = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
|
-
|
|
243
|
-
"react-stack-bottom-frame": function(
|
|
244
|
-
return
|
|
242
|
+
m = {
|
|
243
|
+
"react-stack-bottom-frame": function(y) {
|
|
244
|
+
return y();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
)(),
|
|
251
|
-
|
|
252
|
-
var
|
|
253
|
-
return
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
247
|
+
var it, ot = {}, st = m["react-stack-bottom-frame"].bind(
|
|
248
|
+
m,
|
|
249
|
+
i
|
|
250
|
+
)(), lt = Fe(a(i)), ut = {};
|
|
251
|
+
le.Fragment = h, le.jsx = function(y, k, O, F, Q) {
|
|
252
|
+
var W = 1e4 > B.recentlyCreatedOwnerStacks++;
|
|
253
|
+
return c(
|
|
254
|
+
y,
|
|
255
|
+
k,
|
|
256
|
+
O,
|
|
257
257
|
!1,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
258
|
+
F,
|
|
259
|
+
Q,
|
|
260
|
+
W ? Error("react-stack-top-frame") : st,
|
|
261
|
+
W ? Fe(a(y)) : lt
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var
|
|
265
|
-
return
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
263
|
+
}, le.jsxs = function(y, k, O, F, Q) {
|
|
264
|
+
var W = 1e4 > B.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return c(
|
|
266
|
+
y,
|
|
267
|
+
k,
|
|
268
|
+
O,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
270
|
+
F,
|
|
271
|
+
Q,
|
|
272
|
+
W ? Error("react-stack-top-frame") : st,
|
|
273
|
+
W ? Fe(a(y)) : lt
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
|
-
}()),
|
|
277
|
-
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
return
|
|
281
|
-
}
|
|
282
|
-
var
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
276
|
+
}()), le;
|
|
277
|
+
}
|
|
278
|
+
var dt;
|
|
279
|
+
function pr() {
|
|
280
|
+
return dt || (dt = 1, process.env.NODE_ENV === "production" ? be.exports = dr() : be.exports = hr()), be.exports;
|
|
281
|
+
}
|
|
282
|
+
var E = pr();
|
|
283
|
+
const Va = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ E.jsx(
|
|
284
|
+
"button",
|
|
285
|
+
{
|
|
286
|
+
style: {
|
|
287
|
+
border: "none",
|
|
288
|
+
borderRadius: "1000px",
|
|
289
|
+
background: "#d6d6d6ff",
|
|
290
|
+
padding: "12px 18px",
|
|
291
|
+
fontSize: "16px",
|
|
292
|
+
width: "fit-content",
|
|
293
|
+
alignItems: "center",
|
|
294
|
+
justifyContent: "center",
|
|
295
|
+
display: "flex",
|
|
296
|
+
flexDirection: "row",
|
|
297
|
+
...r
|
|
298
|
+
},
|
|
299
|
+
onClick: () => t?.(),
|
|
300
|
+
children: e
|
|
301
|
+
}
|
|
302
|
+
), Ya = (e) => Tt(e, []), mr = () => {
|
|
303
|
+
const [e, t] = R.useState(
|
|
304
|
+
{}
|
|
305
|
+
), [r, a] = R.useState(!1);
|
|
306
|
+
return R.useEffect(() => {
|
|
307
|
+
const n = (l) => {
|
|
308
|
+
t({ x: l.clientX, y: l.clientY });
|
|
309
|
+
}, i = (l) => {
|
|
310
|
+
a(!0);
|
|
311
|
+
}, o = (l) => {
|
|
312
|
+
a(!1);
|
|
313
|
+
};
|
|
314
|
+
return window.addEventListener("pointermove", n), window.addEventListener("pointerdown", i), window.addEventListener("pointerup", o), () => {
|
|
315
|
+
window.removeEventListener("pointermove", n), window.removeEventListener("pointerdown", i), window.removeEventListener("pointerup", o);
|
|
288
316
|
};
|
|
289
|
-
|
|
317
|
+
}, []), {
|
|
318
|
+
pointerPosition: e,
|
|
319
|
+
isPointerDown: r
|
|
320
|
+
};
|
|
321
|
+
}, gr = ({
|
|
322
|
+
ref: e,
|
|
323
|
+
onDrag: t,
|
|
324
|
+
onDragStart: r,
|
|
325
|
+
onDragEnd: a
|
|
326
|
+
}) => {
|
|
327
|
+
const n = R.useRef(!1), i = R.useRef(!1), { pointerPosition: o, isPointerDown: l } = mr(), s = R.useRef({
|
|
328
|
+
isDragging: !1
|
|
329
|
+
}), u = R.useCallback(
|
|
330
|
+
(f) => {
|
|
331
|
+
if (!e || !e.current || !s.current)
|
|
332
|
+
return;
|
|
333
|
+
const h = { ...s.current };
|
|
334
|
+
return h.posY = f.y, h.posX = f.x, s.current.startPosX && s.current.posX && (h.distanceX = s.current.startPosX - s.current.posX), s.current.startPosY && s.current.posY && (h.distanceY = -(s.current.startPosY - s.current.posY)), h;
|
|
335
|
+
},
|
|
336
|
+
[]
|
|
337
|
+
), c = R.useCallback(
|
|
338
|
+
(f) => {
|
|
339
|
+
f.preventDefault(), f.stopPropagation(), s.current.isDragging = !0, s.current.startPosY = f.clientY, s.current.startPosX = f.clientX;
|
|
340
|
+
const h = u({ x: f.clientX, y: f.clientY });
|
|
341
|
+
h && (s.current = h, r?.(h));
|
|
342
|
+
},
|
|
343
|
+
[u]
|
|
344
|
+
), g = R.useCallback(
|
|
345
|
+
(f) => {
|
|
346
|
+
s.current.isDragging = !1;
|
|
347
|
+
const h = u(o);
|
|
348
|
+
h && (a?.(h), h.startPosX = void 0, h.startPosY = void 0, s.current = h);
|
|
349
|
+
},
|
|
350
|
+
[u, o]
|
|
351
|
+
), m = R.useCallback(
|
|
352
|
+
(f) => {
|
|
353
|
+
if (console.debug(
|
|
354
|
+
"useDrag > onPointerMove > Is Dragging >",
|
|
355
|
+
s.current.isDragging
|
|
356
|
+
), !s.current.isDragging)
|
|
357
|
+
return;
|
|
358
|
+
const h = u(o);
|
|
359
|
+
console.debug("useDrag > onPointerMove > Drag Result >", h), h && (t?.(h), s.current = h);
|
|
360
|
+
},
|
|
361
|
+
[u, o]
|
|
362
|
+
), x = R.useCallback(async () => {
|
|
363
|
+
if (!n.current) {
|
|
364
|
+
for (; !e?.current; )
|
|
365
|
+
await new Promise((f) => setTimeout(f, 300));
|
|
366
|
+
n.current = !0, e.current.onpointerdown = c, e.current.style.touchAction = "none";
|
|
367
|
+
}
|
|
368
|
+
}, [e?.current, c]);
|
|
369
|
+
R.useEffect(() => {
|
|
370
|
+
x();
|
|
371
|
+
}, [x]), R.useEffect(() => {
|
|
372
|
+
m();
|
|
373
|
+
}, [o]), R.useEffect(() => {
|
|
374
|
+
l !== i.current && (i.current = l, l || g());
|
|
375
|
+
}, [l, i.current]);
|
|
376
|
+
}, qa = () => {
|
|
377
|
+
const e = (r, a) => {
|
|
378
|
+
let n = 0, i = `${r}?`;
|
|
379
|
+
for (const o in a) {
|
|
380
|
+
const l = a[o];
|
|
381
|
+
n > 0 && (i = `${i}&`), i = `${i}${o}=${l}`, n++;
|
|
382
|
+
}
|
|
383
|
+
return i;
|
|
384
|
+
};
|
|
385
|
+
return async (r, a) => {
|
|
386
|
+
const n = e(r, a);
|
|
387
|
+
return await (await fetch(n)).json();
|
|
388
|
+
};
|
|
389
|
+
}, yr = {
|
|
390
|
+
xs: 0,
|
|
391
|
+
sm: 420,
|
|
392
|
+
md: 768,
|
|
393
|
+
lg: 991,
|
|
394
|
+
xl: 1200,
|
|
395
|
+
xxl: 1440
|
|
396
|
+
}, Xa = (e) => {
|
|
397
|
+
const t = {
|
|
398
|
+
...yr,
|
|
399
|
+
...e?.breakpointConfiguration
|
|
400
|
+
}, [r, a] = ur(
|
|
401
|
+
ht(t)
|
|
402
|
+
), n = () => {
|
|
403
|
+
a(ht(t));
|
|
404
|
+
};
|
|
405
|
+
return Tt(() => (window.addEventListener("resize", n), () => {
|
|
406
|
+
window.removeEventListener("resize", n);
|
|
407
|
+
}), []), cr(() => r, [r]);
|
|
408
|
+
}, vr = (e, t) => e < t.sm ? "xs" : e < t.md ? "sm" : e < t.lg ? "md" : e < t.xl ? "lg" : e < t.xxl ? "xl" : "xxl", xr = (e, t) => e <= t.sm ? "mobile" : e <= t.md ? "tablet" : "desktop", ht = (e) => {
|
|
409
|
+
const t = window.innerWidth, r = window.innerHeight, a = vr(t, e), n = xr(t, e);
|
|
410
|
+
return { currentWidth: t, currentHeight: r, currentBreakpoint: a, currentSize: n };
|
|
411
|
+
}, Ga = (e) => {
|
|
412
|
+
const t = e.translations, r = e.language, a = (i) => i[r];
|
|
413
|
+
return {
|
|
414
|
+
t: (i) => t[i] ? a(t[i]) : i,
|
|
415
|
+
getTranslation: a
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
var ue = {}, pt;
|
|
419
|
+
function br() {
|
|
420
|
+
if (pt) return ue;
|
|
421
|
+
pt = 1, Object.defineProperty(ue, "__esModule", { value: !0 }), ue.parse = o, ue.serialize = u;
|
|
422
|
+
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, n = Object.prototype.toString, i = /* @__PURE__ */ (() => {
|
|
423
|
+
const m = function() {
|
|
424
|
+
};
|
|
425
|
+
return m.prototype = /* @__PURE__ */ Object.create(null), m;
|
|
290
426
|
})();
|
|
291
|
-
function
|
|
292
|
-
const
|
|
293
|
-
if (
|
|
294
|
-
return
|
|
295
|
-
const
|
|
296
|
-
let
|
|
427
|
+
function o(m, x) {
|
|
428
|
+
const f = new i(), h = m.length;
|
|
429
|
+
if (h < 2)
|
|
430
|
+
return f;
|
|
431
|
+
const v = x?.decode || c;
|
|
432
|
+
let d = 0;
|
|
297
433
|
do {
|
|
298
|
-
const b =
|
|
434
|
+
const b = m.indexOf("=", d);
|
|
299
435
|
if (b === -1)
|
|
300
436
|
break;
|
|
301
|
-
const
|
|
302
|
-
if (b >
|
|
303
|
-
|
|
437
|
+
const w = m.indexOf(";", d), T = w === -1 ? h : w;
|
|
438
|
+
if (b > T) {
|
|
439
|
+
d = m.lastIndexOf(";", b - 1) + 1;
|
|
304
440
|
continue;
|
|
305
441
|
}
|
|
306
|
-
const
|
|
307
|
-
if (
|
|
308
|
-
let
|
|
309
|
-
const
|
|
310
|
-
|
|
442
|
+
const I = l(m, d, b), A = s(m, b, I), C = m.slice(I, A);
|
|
443
|
+
if (f[C] === void 0) {
|
|
444
|
+
let z = l(m, b + 1, T), $ = s(m, T, z);
|
|
445
|
+
const M = v(m.slice(z, $));
|
|
446
|
+
f[C] = M;
|
|
311
447
|
}
|
|
312
|
-
|
|
313
|
-
} while (
|
|
314
|
-
return
|
|
448
|
+
d = T + 1;
|
|
449
|
+
} while (d < h);
|
|
450
|
+
return f;
|
|
315
451
|
}
|
|
316
|
-
function
|
|
452
|
+
function l(m, x, f) {
|
|
317
453
|
do {
|
|
318
|
-
const
|
|
319
|
-
if (
|
|
320
|
-
return
|
|
321
|
-
} while (++
|
|
322
|
-
return
|
|
454
|
+
const h = m.charCodeAt(x);
|
|
455
|
+
if (h !== 32 && h !== 9)
|
|
456
|
+
return x;
|
|
457
|
+
} while (++x < f);
|
|
458
|
+
return f;
|
|
323
459
|
}
|
|
324
|
-
function
|
|
325
|
-
for (;
|
|
326
|
-
const
|
|
327
|
-
if (
|
|
328
|
-
return
|
|
460
|
+
function s(m, x, f) {
|
|
461
|
+
for (; x > f; ) {
|
|
462
|
+
const h = m.charCodeAt(--x);
|
|
463
|
+
if (h !== 32 && h !== 9)
|
|
464
|
+
return x + 1;
|
|
329
465
|
}
|
|
330
|
-
return
|
|
466
|
+
return f;
|
|
331
467
|
}
|
|
332
|
-
function
|
|
333
|
-
const
|
|
334
|
-
if (!e.test(
|
|
335
|
-
throw new TypeError(`argument name is invalid: ${
|
|
336
|
-
const
|
|
337
|
-
if (!t.test(
|
|
338
|
-
throw new TypeError(`argument val is invalid: ${
|
|
339
|
-
let
|
|
340
|
-
if (!
|
|
341
|
-
return
|
|
342
|
-
if (
|
|
343
|
-
if (!Number.isInteger(
|
|
344
|
-
throw new TypeError(`option maxAge is invalid: ${
|
|
345
|
-
|
|
468
|
+
function u(m, x, f) {
|
|
469
|
+
const h = f?.encode || encodeURIComponent;
|
|
470
|
+
if (!e.test(m))
|
|
471
|
+
throw new TypeError(`argument name is invalid: ${m}`);
|
|
472
|
+
const v = h(x);
|
|
473
|
+
if (!t.test(v))
|
|
474
|
+
throw new TypeError(`argument val is invalid: ${x}`);
|
|
475
|
+
let d = m + "=" + v;
|
|
476
|
+
if (!f)
|
|
477
|
+
return d;
|
|
478
|
+
if (f.maxAge !== void 0) {
|
|
479
|
+
if (!Number.isInteger(f.maxAge))
|
|
480
|
+
throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);
|
|
481
|
+
d += "; Max-Age=" + f.maxAge;
|
|
346
482
|
}
|
|
347
|
-
if (
|
|
348
|
-
if (!r.test(
|
|
349
|
-
throw new TypeError(`option domain is invalid: ${
|
|
350
|
-
|
|
483
|
+
if (f.domain) {
|
|
484
|
+
if (!r.test(f.domain))
|
|
485
|
+
throw new TypeError(`option domain is invalid: ${f.domain}`);
|
|
486
|
+
d += "; Domain=" + f.domain;
|
|
351
487
|
}
|
|
352
|
-
if (
|
|
353
|
-
if (!a.test(
|
|
354
|
-
throw new TypeError(`option path is invalid: ${
|
|
355
|
-
|
|
488
|
+
if (f.path) {
|
|
489
|
+
if (!a.test(f.path))
|
|
490
|
+
throw new TypeError(`option path is invalid: ${f.path}`);
|
|
491
|
+
d += "; Path=" + f.path;
|
|
356
492
|
}
|
|
357
|
-
if (
|
|
358
|
-
if (!g(
|
|
359
|
-
throw new TypeError(`option expires is invalid: ${
|
|
360
|
-
|
|
493
|
+
if (f.expires) {
|
|
494
|
+
if (!g(f.expires) || !Number.isFinite(f.expires.valueOf()))
|
|
495
|
+
throw new TypeError(`option expires is invalid: ${f.expires}`);
|
|
496
|
+
d += "; Expires=" + f.expires.toUTCString();
|
|
361
497
|
}
|
|
362
|
-
if (
|
|
363
|
-
switch (typeof
|
|
498
|
+
if (f.httpOnly && (d += "; HttpOnly"), f.secure && (d += "; Secure"), f.partitioned && (d += "; Partitioned"), f.priority)
|
|
499
|
+
switch (typeof f.priority == "string" ? f.priority.toLowerCase() : void 0) {
|
|
364
500
|
case "low":
|
|
365
|
-
|
|
501
|
+
d += "; Priority=Low";
|
|
366
502
|
break;
|
|
367
503
|
case "medium":
|
|
368
|
-
|
|
504
|
+
d += "; Priority=Medium";
|
|
369
505
|
break;
|
|
370
506
|
case "high":
|
|
371
|
-
|
|
507
|
+
d += "; Priority=High";
|
|
372
508
|
break;
|
|
373
509
|
default:
|
|
374
|
-
throw new TypeError(`option priority is invalid: ${
|
|
510
|
+
throw new TypeError(`option priority is invalid: ${f.priority}`);
|
|
375
511
|
}
|
|
376
|
-
if (
|
|
377
|
-
switch (typeof
|
|
512
|
+
if (f.sameSite)
|
|
513
|
+
switch (typeof f.sameSite == "string" ? f.sameSite.toLowerCase() : f.sameSite) {
|
|
378
514
|
case !0:
|
|
379
515
|
case "strict":
|
|
380
|
-
|
|
516
|
+
d += "; SameSite=Strict";
|
|
381
517
|
break;
|
|
382
518
|
case "lax":
|
|
383
|
-
|
|
519
|
+
d += "; SameSite=Lax";
|
|
384
520
|
break;
|
|
385
521
|
case "none":
|
|
386
|
-
|
|
522
|
+
d += "; SameSite=None";
|
|
387
523
|
break;
|
|
388
524
|
default:
|
|
389
|
-
throw new TypeError(`option sameSite is invalid: ${
|
|
525
|
+
throw new TypeError(`option sameSite is invalid: ${f.sameSite}`);
|
|
390
526
|
}
|
|
391
|
-
return
|
|
527
|
+
return d;
|
|
392
528
|
}
|
|
393
|
-
function
|
|
394
|
-
if (
|
|
395
|
-
return
|
|
529
|
+
function c(m) {
|
|
530
|
+
if (m.indexOf("%") === -1)
|
|
531
|
+
return m;
|
|
396
532
|
try {
|
|
397
|
-
return decodeURIComponent(
|
|
533
|
+
return decodeURIComponent(m);
|
|
398
534
|
} catch {
|
|
399
|
-
return
|
|
535
|
+
return m;
|
|
400
536
|
}
|
|
401
537
|
}
|
|
402
|
-
function g(
|
|
403
|
-
return n.call(
|
|
538
|
+
function g(m) {
|
|
539
|
+
return n.call(m) === "[object Date]";
|
|
404
540
|
}
|
|
405
|
-
return
|
|
541
|
+
return ue;
|
|
406
542
|
}
|
|
407
|
-
|
|
543
|
+
br();
|
|
408
544
|
/**
|
|
409
545
|
* react-router v7.6.3
|
|
410
546
|
*
|
|
@@ -415,33 +551,33 @@ pt();
|
|
|
415
551
|
*
|
|
416
552
|
* @license MIT
|
|
417
553
|
*/
|
|
418
|
-
var
|
|
419
|
-
function
|
|
554
|
+
var mt = "popstate";
|
|
555
|
+
function wr(e = {}) {
|
|
420
556
|
function t(a, n) {
|
|
421
|
-
let { pathname:
|
|
422
|
-
return
|
|
557
|
+
let { pathname: i, search: o, hash: l } = a.location;
|
|
558
|
+
return Be(
|
|
423
559
|
"",
|
|
424
|
-
{ pathname:
|
|
560
|
+
{ pathname: i, search: o, hash: l },
|
|
425
561
|
// state defaults to `null` because `window.history.state` does
|
|
426
562
|
n.state && n.state.usr || null,
|
|
427
563
|
n.state && n.state.key || "default"
|
|
428
564
|
);
|
|
429
565
|
}
|
|
430
566
|
function r(a, n) {
|
|
431
|
-
return typeof n == "string" ? n :
|
|
567
|
+
return typeof n == "string" ? n : de(n);
|
|
432
568
|
}
|
|
433
|
-
return
|
|
569
|
+
return Cr(
|
|
434
570
|
t,
|
|
435
571
|
r,
|
|
436
572
|
null,
|
|
437
573
|
e
|
|
438
574
|
);
|
|
439
575
|
}
|
|
440
|
-
function
|
|
576
|
+
function L(e, t) {
|
|
441
577
|
if (e === !1 || e === null || typeof e > "u")
|
|
442
578
|
throw new Error(t);
|
|
443
579
|
}
|
|
444
|
-
function
|
|
580
|
+
function X(e, t) {
|
|
445
581
|
if (!e) {
|
|
446
582
|
typeof console < "u" && console.warn(t);
|
|
447
583
|
try {
|
|
@@ -450,38 +586,38 @@ function N(e, t) {
|
|
|
450
586
|
}
|
|
451
587
|
}
|
|
452
588
|
}
|
|
453
|
-
function
|
|
589
|
+
function Rr() {
|
|
454
590
|
return Math.random().toString(36).substring(2, 10);
|
|
455
591
|
}
|
|
456
|
-
function
|
|
592
|
+
function gt(e, t) {
|
|
457
593
|
return {
|
|
458
594
|
usr: e.state,
|
|
459
595
|
key: e.key,
|
|
460
596
|
idx: t
|
|
461
597
|
};
|
|
462
598
|
}
|
|
463
|
-
function
|
|
599
|
+
function Be(e, t, r = null, a) {
|
|
464
600
|
return {
|
|
465
601
|
pathname: typeof e == "string" ? e : e.pathname,
|
|
466
602
|
search: "",
|
|
467
603
|
hash: "",
|
|
468
|
-
...typeof t == "string" ?
|
|
604
|
+
...typeof t == "string" ? ae(t) : t,
|
|
469
605
|
state: r,
|
|
470
606
|
// TODO: This could be cleaned up. push/replace should probably just take
|
|
471
607
|
// full Locations now and avoid the need to run through this flow at all
|
|
472
608
|
// But that's a pretty big refactor to the current test suite so going to
|
|
473
609
|
// keep as is for the time being and just let any incoming keys take precedence
|
|
474
|
-
key: t && t.key || a ||
|
|
610
|
+
key: t && t.key || a || Rr()
|
|
475
611
|
};
|
|
476
612
|
}
|
|
477
|
-
function
|
|
613
|
+
function de({
|
|
478
614
|
pathname: e = "/",
|
|
479
615
|
search: t = "",
|
|
480
616
|
hash: r = ""
|
|
481
617
|
}) {
|
|
482
618
|
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
|
|
483
619
|
}
|
|
484
|
-
function
|
|
620
|
+
function ae(e) {
|
|
485
621
|
let t = {};
|
|
486
622
|
if (e) {
|
|
487
623
|
let r = e.indexOf("#");
|
|
@@ -491,165 +627,165 @@ function Y(e) {
|
|
|
491
627
|
}
|
|
492
628
|
return t;
|
|
493
629
|
}
|
|
494
|
-
function
|
|
495
|
-
let { window: n = document.defaultView, v5Compat:
|
|
496
|
-
|
|
497
|
-
function
|
|
498
|
-
return (
|
|
630
|
+
function Cr(e, t, r, a = {}) {
|
|
631
|
+
let { window: n = document.defaultView, v5Compat: i = !1 } = a, o = n.history, l = "POP", s = null, u = c();
|
|
632
|
+
u == null && (u = 0, o.replaceState({ ...o.state, idx: u }, ""));
|
|
633
|
+
function c() {
|
|
634
|
+
return (o.state || { idx: null }).idx;
|
|
499
635
|
}
|
|
500
636
|
function g() {
|
|
501
|
-
|
|
502
|
-
let
|
|
503
|
-
|
|
637
|
+
l = "POP";
|
|
638
|
+
let v = c(), d = v == null ? null : v - u;
|
|
639
|
+
u = v, s && s({ action: l, location: h.location, delta: d });
|
|
504
640
|
}
|
|
505
|
-
function
|
|
506
|
-
|
|
507
|
-
let b =
|
|
508
|
-
|
|
509
|
-
let
|
|
641
|
+
function m(v, d) {
|
|
642
|
+
l = "PUSH";
|
|
643
|
+
let b = Be(h.location, v, d);
|
|
644
|
+
u = c() + 1;
|
|
645
|
+
let w = gt(b, u), T = h.createHref(b);
|
|
510
646
|
try {
|
|
511
|
-
|
|
512
|
-
} catch (
|
|
513
|
-
if (
|
|
514
|
-
throw
|
|
515
|
-
n.location.assign(
|
|
647
|
+
o.pushState(w, "", T);
|
|
648
|
+
} catch (I) {
|
|
649
|
+
if (I instanceof DOMException && I.name === "DataCloneError")
|
|
650
|
+
throw I;
|
|
651
|
+
n.location.assign(T);
|
|
516
652
|
}
|
|
517
|
-
|
|
653
|
+
i && s && s({ action: l, location: h.location, delta: 1 });
|
|
518
654
|
}
|
|
519
|
-
function v
|
|
520
|
-
|
|
521
|
-
let b =
|
|
522
|
-
|
|
523
|
-
let
|
|
524
|
-
|
|
655
|
+
function x(v, d) {
|
|
656
|
+
l = "REPLACE";
|
|
657
|
+
let b = Be(h.location, v, d);
|
|
658
|
+
u = c();
|
|
659
|
+
let w = gt(b, u), T = h.createHref(b);
|
|
660
|
+
o.replaceState(w, "", T), i && s && s({ action: l, location: h.location, delta: 0 });
|
|
525
661
|
}
|
|
526
|
-
function
|
|
527
|
-
return
|
|
662
|
+
function f(v) {
|
|
663
|
+
return kr(v);
|
|
528
664
|
}
|
|
529
|
-
let
|
|
665
|
+
let h = {
|
|
530
666
|
get action() {
|
|
531
|
-
return
|
|
667
|
+
return l;
|
|
532
668
|
},
|
|
533
669
|
get location() {
|
|
534
|
-
return e(n,
|
|
670
|
+
return e(n, o);
|
|
535
671
|
},
|
|
536
|
-
listen(
|
|
537
|
-
if (
|
|
672
|
+
listen(v) {
|
|
673
|
+
if (s)
|
|
538
674
|
throw new Error("A history only accepts one active listener");
|
|
539
|
-
return n.addEventListener(
|
|
540
|
-
n.removeEventListener(
|
|
675
|
+
return n.addEventListener(mt, g), s = v, () => {
|
|
676
|
+
n.removeEventListener(mt, g), s = null;
|
|
541
677
|
};
|
|
542
678
|
},
|
|
543
|
-
createHref(
|
|
544
|
-
return t(n,
|
|
679
|
+
createHref(v) {
|
|
680
|
+
return t(n, v);
|
|
545
681
|
},
|
|
546
|
-
createURL:
|
|
547
|
-
encodeLocation(
|
|
548
|
-
let
|
|
682
|
+
createURL: f,
|
|
683
|
+
encodeLocation(v) {
|
|
684
|
+
let d = f(v);
|
|
549
685
|
return {
|
|
550
|
-
pathname:
|
|
551
|
-
search:
|
|
552
|
-
hash:
|
|
686
|
+
pathname: d.pathname,
|
|
687
|
+
search: d.search,
|
|
688
|
+
hash: d.hash
|
|
553
689
|
};
|
|
554
690
|
},
|
|
555
|
-
push:
|
|
556
|
-
replace:
|
|
557
|
-
go(
|
|
558
|
-
return
|
|
691
|
+
push: m,
|
|
692
|
+
replace: x,
|
|
693
|
+
go(v) {
|
|
694
|
+
return o.go(v);
|
|
559
695
|
}
|
|
560
696
|
};
|
|
561
|
-
return
|
|
697
|
+
return h;
|
|
562
698
|
}
|
|
563
|
-
function
|
|
699
|
+
function kr(e, t = !1) {
|
|
564
700
|
let r = "http://localhost";
|
|
565
|
-
typeof window < "u" && (r = window.location.origin !== "null" ? window.location.origin : window.location.href),
|
|
566
|
-
let a = typeof e == "string" ? e :
|
|
701
|
+
typeof window < "u" && (r = window.location.origin !== "null" ? window.location.origin : window.location.href), L(r, "No window.location.(origin|href) available to create URL");
|
|
702
|
+
let a = typeof e == "string" ? e : de(e);
|
|
567
703
|
return a = a.replace(/ $/, "%20"), !t && a.startsWith("//") && (a = r + a), new URL(a, r);
|
|
568
704
|
}
|
|
569
|
-
function
|
|
570
|
-
return
|
|
705
|
+
function It(e, t, r = "/") {
|
|
706
|
+
return Er(e, t, r, !1);
|
|
571
707
|
}
|
|
572
|
-
function
|
|
573
|
-
let n = typeof t == "string" ?
|
|
574
|
-
if (
|
|
708
|
+
function Er(e, t, r, a) {
|
|
709
|
+
let n = typeof t == "string" ? ae(t) : t, i = K(n.pathname || "/", r);
|
|
710
|
+
if (i == null)
|
|
575
711
|
return null;
|
|
576
|
-
let
|
|
577
|
-
|
|
578
|
-
let
|
|
579
|
-
for (let
|
|
580
|
-
let
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
712
|
+
let o = At(e);
|
|
713
|
+
Sr(o);
|
|
714
|
+
let l = null;
|
|
715
|
+
for (let s = 0; l == null && s < o.length; ++s) {
|
|
716
|
+
let u = jr(i);
|
|
717
|
+
l = Dr(
|
|
718
|
+
o[s],
|
|
719
|
+
u,
|
|
584
720
|
a
|
|
585
721
|
);
|
|
586
722
|
}
|
|
587
|
-
return
|
|
588
|
-
}
|
|
589
|
-
function
|
|
590
|
-
let n = (
|
|
591
|
-
let
|
|
592
|
-
relativePath:
|
|
593
|
-
caseSensitive:
|
|
594
|
-
childrenIndex:
|
|
595
|
-
route:
|
|
723
|
+
return l;
|
|
724
|
+
}
|
|
725
|
+
function At(e, t = [], r = [], a = "") {
|
|
726
|
+
let n = (i, o, l) => {
|
|
727
|
+
let s = {
|
|
728
|
+
relativePath: l === void 0 ? i.path || "" : l,
|
|
729
|
+
caseSensitive: i.caseSensitive === !0,
|
|
730
|
+
childrenIndex: o,
|
|
731
|
+
route: i
|
|
596
732
|
};
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
`Absolute route path "${
|
|
600
|
-
),
|
|
601
|
-
let
|
|
602
|
-
|
|
733
|
+
s.relativePath.startsWith("/") && (L(
|
|
734
|
+
s.relativePath.startsWith(a),
|
|
735
|
+
`Absolute route path "${s.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
736
|
+
), s.relativePath = s.relativePath.slice(a.length));
|
|
737
|
+
let u = J([a, s.relativePath]), c = r.concat(s);
|
|
738
|
+
i.children && i.children.length > 0 && (L(
|
|
603
739
|
// Our types know better, but runtime JS may not!
|
|
604
740
|
// @ts-expect-error
|
|
605
|
-
|
|
606
|
-
`Index routes must not have child routes. Please remove all child routes from route path "${
|
|
607
|
-
),
|
|
608
|
-
path:
|
|
609
|
-
score:
|
|
610
|
-
routesMeta:
|
|
741
|
+
i.index !== !0,
|
|
742
|
+
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
743
|
+
), At(i.children, t, c, u)), !(i.path == null && !i.index) && t.push({
|
|
744
|
+
path: u,
|
|
745
|
+
score: _r(u, i.index),
|
|
746
|
+
routesMeta: c
|
|
611
747
|
});
|
|
612
748
|
};
|
|
613
|
-
return e.forEach((
|
|
614
|
-
if (
|
|
615
|
-
n(
|
|
749
|
+
return e.forEach((i, o) => {
|
|
750
|
+
if (i.path === "" || !i.path?.includes("?"))
|
|
751
|
+
n(i, o);
|
|
616
752
|
else
|
|
617
|
-
for (let
|
|
618
|
-
n(
|
|
753
|
+
for (let l of Ot(i.path))
|
|
754
|
+
n(i, o, l);
|
|
619
755
|
}), t;
|
|
620
756
|
}
|
|
621
|
-
function
|
|
757
|
+
function Ot(e) {
|
|
622
758
|
let t = e.split("/");
|
|
623
759
|
if (t.length === 0) return [];
|
|
624
|
-
let [r, ...a] = t, n = r.endsWith("?"),
|
|
760
|
+
let [r, ...a] = t, n = r.endsWith("?"), i = r.replace(/\?$/, "");
|
|
625
761
|
if (a.length === 0)
|
|
626
|
-
return n ? [
|
|
627
|
-
let
|
|
628
|
-
return
|
|
629
|
-
...
|
|
630
|
-
(
|
|
762
|
+
return n ? [i, ""] : [i];
|
|
763
|
+
let o = Ot(a.join("/")), l = [];
|
|
764
|
+
return l.push(
|
|
765
|
+
...o.map(
|
|
766
|
+
(s) => s === "" ? i : [i, s].join("/")
|
|
631
767
|
)
|
|
632
|
-
), n &&
|
|
633
|
-
(
|
|
768
|
+
), n && l.push(...o), l.map(
|
|
769
|
+
(s) => e.startsWith("/") && s === "" ? "/" : s
|
|
634
770
|
);
|
|
635
771
|
}
|
|
636
|
-
function
|
|
772
|
+
function Sr(e) {
|
|
637
773
|
e.sort(
|
|
638
|
-
(t, r) => t.score !== r.score ? r.score - t.score :
|
|
774
|
+
(t, r) => t.score !== r.score ? r.score - t.score : $r(
|
|
639
775
|
t.routesMeta.map((a) => a.childrenIndex),
|
|
640
776
|
r.routesMeta.map((a) => a.childrenIndex)
|
|
641
777
|
)
|
|
642
778
|
);
|
|
643
779
|
}
|
|
644
|
-
var
|
|
645
|
-
function
|
|
780
|
+
var Pr = /^:[\w-]+$/, Tr = 3, Ir = 2, Ar = 1, Or = 10, Lr = -2, yt = (e) => e === "*";
|
|
781
|
+
function _r(e, t) {
|
|
646
782
|
let r = e.split("/"), a = r.length;
|
|
647
|
-
return r.some(
|
|
648
|
-
(n,
|
|
783
|
+
return r.some(yt) && (a += Lr), t && (a += Ir), r.filter((n) => !yt(n)).reduce(
|
|
784
|
+
(n, i) => n + (Pr.test(i) ? Tr : i === "" ? Ar : Or),
|
|
649
785
|
a
|
|
650
786
|
);
|
|
651
787
|
}
|
|
652
|
-
function
|
|
788
|
+
function $r(e, t) {
|
|
653
789
|
return e.length === t.length && e.slice(0, -1).every((a, n) => a === t[n]) ? (
|
|
654
790
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
655
791
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -662,270 +798,270 @@ function It(e, t) {
|
|
|
662
798
|
0
|
|
663
799
|
);
|
|
664
800
|
}
|
|
665
|
-
function
|
|
666
|
-
let { routesMeta: a } = e, n = {},
|
|
667
|
-
for (let
|
|
668
|
-
let
|
|
669
|
-
{ path:
|
|
670
|
-
|
|
671
|
-
),
|
|
672
|
-
if (!g &&
|
|
801
|
+
function Dr(e, t, r = !1) {
|
|
802
|
+
let { routesMeta: a } = e, n = {}, i = "/", o = [];
|
|
803
|
+
for (let l = 0; l < a.length; ++l) {
|
|
804
|
+
let s = a[l], u = l === a.length - 1, c = i === "/" ? t : t.slice(i.length) || "/", g = Te(
|
|
805
|
+
{ path: s.relativePath, caseSensitive: s.caseSensitive, end: u },
|
|
806
|
+
c
|
|
807
|
+
), m = s.route;
|
|
808
|
+
if (!g && u && r && !a[a.length - 1].route.index && (g = Te(
|
|
673
809
|
{
|
|
674
|
-
path:
|
|
675
|
-
caseSensitive:
|
|
810
|
+
path: s.relativePath,
|
|
811
|
+
caseSensitive: s.caseSensitive,
|
|
676
812
|
end: !1
|
|
677
813
|
},
|
|
678
|
-
|
|
814
|
+
c
|
|
679
815
|
)), !g)
|
|
680
816
|
return null;
|
|
681
|
-
Object.assign(n, g.params),
|
|
817
|
+
Object.assign(n, g.params), o.push({
|
|
682
818
|
// TODO: Can this as be avoided?
|
|
683
819
|
params: n,
|
|
684
|
-
pathname:
|
|
685
|
-
pathnameBase:
|
|
686
|
-
|
|
820
|
+
pathname: J([i, g.pathname]),
|
|
821
|
+
pathnameBase: zr(
|
|
822
|
+
J([i, g.pathnameBase])
|
|
687
823
|
),
|
|
688
|
-
route:
|
|
689
|
-
}), g.pathnameBase !== "/" && (
|
|
824
|
+
route: m
|
|
825
|
+
}), g.pathnameBase !== "/" && (i = J([i, g.pathnameBase]));
|
|
690
826
|
}
|
|
691
|
-
return
|
|
827
|
+
return o;
|
|
692
828
|
}
|
|
693
|
-
function
|
|
829
|
+
function Te(e, t) {
|
|
694
830
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
695
|
-
let [r, a] =
|
|
831
|
+
let [r, a] = Fr(
|
|
696
832
|
e.path,
|
|
697
833
|
e.caseSensitive,
|
|
698
834
|
e.end
|
|
699
835
|
), n = t.match(r);
|
|
700
836
|
if (!n) return null;
|
|
701
|
-
let
|
|
837
|
+
let i = n[0], o = i.replace(/(.)\/+$/, "$1"), l = n.slice(1);
|
|
702
838
|
return {
|
|
703
839
|
params: a.reduce(
|
|
704
|
-
(
|
|
705
|
-
if (
|
|
706
|
-
let
|
|
707
|
-
|
|
840
|
+
(u, { paramName: c, isOptional: g }, m) => {
|
|
841
|
+
if (c === "*") {
|
|
842
|
+
let f = l[m] || "";
|
|
843
|
+
o = i.slice(0, i.length - f.length).replace(/(.)\/+$/, "$1");
|
|
708
844
|
}
|
|
709
|
-
const
|
|
710
|
-
return g && !
|
|
845
|
+
const x = l[m];
|
|
846
|
+
return g && !x ? u[c] = void 0 : u[c] = (x || "").replace(/%2F/g, "/"), u;
|
|
711
847
|
},
|
|
712
848
|
{}
|
|
713
849
|
),
|
|
714
|
-
pathname:
|
|
715
|
-
pathnameBase:
|
|
850
|
+
pathname: i,
|
|
851
|
+
pathnameBase: o,
|
|
716
852
|
pattern: e
|
|
717
853
|
};
|
|
718
854
|
}
|
|
719
|
-
function
|
|
720
|
-
|
|
855
|
+
function Fr(e, t = !1, r = !0) {
|
|
856
|
+
X(
|
|
721
857
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
722
858
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
723
859
|
);
|
|
724
860
|
let a = [], n = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
725
861
|
/\/:([\w-]+)(\?)?/g,
|
|
726
|
-
(
|
|
862
|
+
(o, l, s) => (a.push({ paramName: l, isOptional: s != null }), s ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
727
863
|
);
|
|
728
864
|
return e.endsWith("*") ? (a.push({ paramName: "*" }), n += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? n += "\\/*$" : e !== "" && e !== "/" && (n += "(?:(?=\\/|$))"), [new RegExp(n, t ? void 0 : "i"), a];
|
|
729
865
|
}
|
|
730
|
-
function
|
|
866
|
+
function jr(e) {
|
|
731
867
|
try {
|
|
732
868
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
733
869
|
} catch (t) {
|
|
734
|
-
return
|
|
870
|
+
return X(
|
|
735
871
|
!1,
|
|
736
872
|
`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
|
|
737
873
|
), e;
|
|
738
874
|
}
|
|
739
875
|
}
|
|
740
|
-
function
|
|
876
|
+
function K(e, t) {
|
|
741
877
|
if (t === "/") return e;
|
|
742
878
|
if (!e.toLowerCase().startsWith(t.toLowerCase()))
|
|
743
879
|
return null;
|
|
744
880
|
let r = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(r);
|
|
745
881
|
return a && a !== "/" ? null : e.slice(r) || "/";
|
|
746
882
|
}
|
|
747
|
-
function
|
|
883
|
+
function Nr(e, t = "/") {
|
|
748
884
|
let {
|
|
749
885
|
pathname: r,
|
|
750
886
|
search: a = "",
|
|
751
887
|
hash: n = ""
|
|
752
|
-
} = typeof e == "string" ?
|
|
888
|
+
} = typeof e == "string" ? ae(e) : e;
|
|
753
889
|
return {
|
|
754
|
-
pathname: r ? r.startsWith("/") ? r :
|
|
755
|
-
search:
|
|
756
|
-
hash:
|
|
890
|
+
pathname: r ? r.startsWith("/") ? r : Mr(r, t) : t,
|
|
891
|
+
search: Ur(a),
|
|
892
|
+
hash: Br(n)
|
|
757
893
|
};
|
|
758
894
|
}
|
|
759
|
-
function
|
|
895
|
+
function Mr(e, t) {
|
|
760
896
|
let r = t.replace(/\/+$/, "").split("/");
|
|
761
897
|
return e.split("/").forEach((n) => {
|
|
762
898
|
n === ".." ? r.length > 1 && r.pop() : n !== "." && r.push(n);
|
|
763
899
|
}), r.length > 1 ? r.join("/") : "/";
|
|
764
900
|
}
|
|
765
|
-
function
|
|
901
|
+
function He(e, t, r, a) {
|
|
766
902
|
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
|
|
767
903
|
a
|
|
768
904
|
)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
769
905
|
}
|
|
770
|
-
function
|
|
906
|
+
function Hr(e) {
|
|
771
907
|
return e.filter(
|
|
772
908
|
(t, r) => r === 0 || t.route.path && t.route.path.length > 0
|
|
773
909
|
);
|
|
774
910
|
}
|
|
775
|
-
function
|
|
776
|
-
let t =
|
|
911
|
+
function Lt(e) {
|
|
912
|
+
let t = Hr(e);
|
|
777
913
|
return t.map(
|
|
778
914
|
(r, a) => a === t.length - 1 ? r.pathname : r.pathnameBase
|
|
779
915
|
);
|
|
780
916
|
}
|
|
781
|
-
function
|
|
917
|
+
function _t(e, t, r, a = !1) {
|
|
782
918
|
let n;
|
|
783
|
-
typeof e == "string" ? n =
|
|
919
|
+
typeof e == "string" ? n = ae(e) : (n = { ...e }, L(
|
|
784
920
|
!n.pathname || !n.pathname.includes("?"),
|
|
785
|
-
|
|
786
|
-
),
|
|
921
|
+
He("?", "pathname", "search", n)
|
|
922
|
+
), L(
|
|
787
923
|
!n.pathname || !n.pathname.includes("#"),
|
|
788
|
-
|
|
789
|
-
),
|
|
924
|
+
He("#", "pathname", "hash", n)
|
|
925
|
+
), L(
|
|
790
926
|
!n.search || !n.search.includes("#"),
|
|
791
|
-
|
|
927
|
+
He("#", "search", "hash", n)
|
|
792
928
|
));
|
|
793
|
-
let
|
|
794
|
-
if (
|
|
795
|
-
|
|
929
|
+
let i = e === "" || n.pathname === "", o = i ? "/" : n.pathname, l;
|
|
930
|
+
if (o == null)
|
|
931
|
+
l = r;
|
|
796
932
|
else {
|
|
797
933
|
let g = t.length - 1;
|
|
798
|
-
if (!a &&
|
|
799
|
-
let
|
|
800
|
-
for (;
|
|
801
|
-
|
|
802
|
-
n.pathname =
|
|
934
|
+
if (!a && o.startsWith("..")) {
|
|
935
|
+
let m = o.split("/");
|
|
936
|
+
for (; m[0] === ".."; )
|
|
937
|
+
m.shift(), g -= 1;
|
|
938
|
+
n.pathname = m.join("/");
|
|
803
939
|
}
|
|
804
|
-
|
|
940
|
+
l = g >= 0 ? t[g] : "/";
|
|
805
941
|
}
|
|
806
|
-
let
|
|
807
|
-
return !
|
|
942
|
+
let s = Nr(n, l), u = o && o !== "/" && o.endsWith("/"), c = (i || o === ".") && r.endsWith("/");
|
|
943
|
+
return !s.pathname.endsWith("/") && (u || c) && (s.pathname += "/"), s;
|
|
808
944
|
}
|
|
809
|
-
var
|
|
810
|
-
function
|
|
945
|
+
var J = (e) => e.join("/").replace(/\/\/+/g, "/"), zr = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ur = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Br = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
946
|
+
function Wr(e) {
|
|
811
947
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
812
948
|
}
|
|
813
|
-
var
|
|
949
|
+
var $t = [
|
|
814
950
|
"POST",
|
|
815
951
|
"PUT",
|
|
816
952
|
"PATCH",
|
|
817
953
|
"DELETE"
|
|
818
954
|
];
|
|
819
955
|
new Set(
|
|
820
|
-
|
|
956
|
+
$t
|
|
821
957
|
);
|
|
822
|
-
var
|
|
958
|
+
var Vr = [
|
|
823
959
|
"GET",
|
|
824
|
-
|
|
960
|
+
...$t
|
|
825
961
|
];
|
|
826
|
-
new Set(
|
|
827
|
-
var
|
|
828
|
-
|
|
829
|
-
var
|
|
830
|
-
|
|
831
|
-
var
|
|
962
|
+
new Set(Vr);
|
|
963
|
+
var ie = p.createContext(null);
|
|
964
|
+
ie.displayName = "DataRouter";
|
|
965
|
+
var Ae = p.createContext(null);
|
|
966
|
+
Ae.displayName = "DataRouterState";
|
|
967
|
+
var Dt = p.createContext({
|
|
832
968
|
isTransitioning: !1
|
|
833
969
|
});
|
|
834
|
-
|
|
835
|
-
var
|
|
970
|
+
Dt.displayName = "ViewTransition";
|
|
971
|
+
var Yr = p.createContext(
|
|
836
972
|
/* @__PURE__ */ new Map()
|
|
837
973
|
);
|
|
838
|
-
|
|
839
|
-
var
|
|
840
|
-
|
|
841
|
-
var
|
|
974
|
+
Yr.displayName = "Fetchers";
|
|
975
|
+
var qr = p.createContext(null);
|
|
976
|
+
qr.displayName = "Await";
|
|
977
|
+
var G = p.createContext(
|
|
842
978
|
null
|
|
843
979
|
);
|
|
844
|
-
|
|
845
|
-
var
|
|
980
|
+
G.displayName = "Navigation";
|
|
981
|
+
var ge = p.createContext(
|
|
846
982
|
null
|
|
847
983
|
);
|
|
848
|
-
|
|
849
|
-
var
|
|
984
|
+
ge.displayName = "Location";
|
|
985
|
+
var Z = p.createContext({
|
|
850
986
|
outlet: null,
|
|
851
987
|
matches: [],
|
|
852
988
|
isDataRoute: !1
|
|
853
989
|
});
|
|
854
|
-
|
|
855
|
-
var
|
|
856
|
-
|
|
857
|
-
function
|
|
858
|
-
|
|
859
|
-
|
|
990
|
+
Z.displayName = "Route";
|
|
991
|
+
var Je = p.createContext(null);
|
|
992
|
+
Je.displayName = "RouteError";
|
|
993
|
+
function Xr(e, { relative: t } = {}) {
|
|
994
|
+
L(
|
|
995
|
+
ye(),
|
|
860
996
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
861
997
|
// router loaded. We can help them understand how to avoid that.
|
|
862
998
|
"useHref() may be used only in the context of a <Router> component."
|
|
863
999
|
);
|
|
864
|
-
let { basename: r, navigator: a } =
|
|
865
|
-
return r !== "/" && (
|
|
1000
|
+
let { basename: r, navigator: a } = p.useContext(G), { hash: n, pathname: i, search: o } = ve(e, { relative: t }), l = i;
|
|
1001
|
+
return r !== "/" && (l = i === "/" ? r : J([r, i])), a.createHref({ pathname: l, search: o, hash: n });
|
|
866
1002
|
}
|
|
867
|
-
function
|
|
868
|
-
return
|
|
1003
|
+
function ye() {
|
|
1004
|
+
return p.useContext(ge) != null;
|
|
869
1005
|
}
|
|
870
|
-
function
|
|
871
|
-
return
|
|
872
|
-
|
|
1006
|
+
function ee() {
|
|
1007
|
+
return L(
|
|
1008
|
+
ye(),
|
|
873
1009
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
874
1010
|
// router loaded. We can help them understand how to avoid that.
|
|
875
1011
|
"useLocation() may be used only in the context of a <Router> component."
|
|
876
|
-
),
|
|
1012
|
+
), p.useContext(ge).location;
|
|
877
1013
|
}
|
|
878
|
-
var
|
|
879
|
-
function
|
|
880
|
-
|
|
1014
|
+
var Ft = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
1015
|
+
function jt(e) {
|
|
1016
|
+
p.useContext(G).static || p.useLayoutEffect(e);
|
|
881
1017
|
}
|
|
882
|
-
function
|
|
883
|
-
let { isDataRoute: e } =
|
|
884
|
-
return e ?
|
|
1018
|
+
function Nt() {
|
|
1019
|
+
let { isDataRoute: e } = p.useContext(Z);
|
|
1020
|
+
return e ? ln() : Gr();
|
|
885
1021
|
}
|
|
886
|
-
function
|
|
887
|
-
|
|
888
|
-
|
|
1022
|
+
function Gr() {
|
|
1023
|
+
L(
|
|
1024
|
+
ye(),
|
|
889
1025
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
890
1026
|
// router loaded. We can help them understand how to avoid that.
|
|
891
1027
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
892
1028
|
);
|
|
893
|
-
let e =
|
|
894
|
-
return
|
|
895
|
-
|
|
896
|
-
}),
|
|
897
|
-
(
|
|
898
|
-
if (
|
|
899
|
-
if (typeof
|
|
900
|
-
r.go(
|
|
1029
|
+
let e = p.useContext(ie), { basename: t, navigator: r } = p.useContext(G), { matches: a } = p.useContext(Z), { pathname: n } = ee(), i = JSON.stringify(Lt(a)), o = p.useRef(!1);
|
|
1030
|
+
return jt(() => {
|
|
1031
|
+
o.current = !0;
|
|
1032
|
+
}), p.useCallback(
|
|
1033
|
+
(s, u = {}) => {
|
|
1034
|
+
if (X(o.current, Ft), !o.current) return;
|
|
1035
|
+
if (typeof s == "number") {
|
|
1036
|
+
r.go(s);
|
|
901
1037
|
return;
|
|
902
1038
|
}
|
|
903
|
-
let
|
|
904
|
-
|
|
905
|
-
JSON.parse(
|
|
1039
|
+
let c = _t(
|
|
1040
|
+
s,
|
|
1041
|
+
JSON.parse(i),
|
|
906
1042
|
n,
|
|
907
|
-
|
|
1043
|
+
u.relative === "path"
|
|
908
1044
|
);
|
|
909
|
-
e == null && t !== "/" && (
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
1045
|
+
e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : J([t, c.pathname])), (u.replace ? r.replace : r.push)(
|
|
1046
|
+
c,
|
|
1047
|
+
u.state,
|
|
1048
|
+
u
|
|
913
1049
|
);
|
|
914
1050
|
},
|
|
915
1051
|
[
|
|
916
1052
|
t,
|
|
917
1053
|
r,
|
|
918
|
-
|
|
1054
|
+
i,
|
|
919
1055
|
n,
|
|
920
1056
|
e
|
|
921
1057
|
]
|
|
922
1058
|
);
|
|
923
1059
|
}
|
|
924
|
-
|
|
925
|
-
function
|
|
926
|
-
let { matches: r } =
|
|
927
|
-
return
|
|
928
|
-
() =>
|
|
1060
|
+
p.createContext(null);
|
|
1061
|
+
function ve(e, { relative: t } = {}) {
|
|
1062
|
+
let { matches: r } = p.useContext(Z), { pathname: a } = ee(), n = JSON.stringify(Lt(r));
|
|
1063
|
+
return p.useMemo(
|
|
1064
|
+
() => _t(
|
|
929
1065
|
e,
|
|
930
1066
|
JSON.parse(n),
|
|
931
1067
|
a,
|
|
@@ -934,71 +1070,71 @@ function te(e, { relative: t } = {}) {
|
|
|
934
1070
|
[e, n, a, t]
|
|
935
1071
|
);
|
|
936
1072
|
}
|
|
937
|
-
function
|
|
938
|
-
return
|
|
1073
|
+
function Jr(e, t) {
|
|
1074
|
+
return Mt(e, t);
|
|
939
1075
|
}
|
|
940
|
-
function
|
|
941
|
-
|
|
942
|
-
|
|
1076
|
+
function Mt(e, t, r, a) {
|
|
1077
|
+
L(
|
|
1078
|
+
ye(),
|
|
943
1079
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
944
1080
|
// router loaded. We can help them understand how to avoid that.
|
|
945
1081
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
946
1082
|
);
|
|
947
|
-
let { navigator: n } =
|
|
1083
|
+
let { navigator: n } = p.useContext(G), { matches: i } = p.useContext(Z), o = i[i.length - 1], l = o ? o.params : {}, s = o ? o.pathname : "/", u = o ? o.pathnameBase : "/", c = o && o.route;
|
|
948
1084
|
{
|
|
949
|
-
let
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
!
|
|
953
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${
|
|
1085
|
+
let d = c && c.path || "";
|
|
1086
|
+
Ht(
|
|
1087
|
+
s,
|
|
1088
|
+
!c || d.endsWith("*") || d.endsWith("*?"),
|
|
1089
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${d}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
954
1090
|
|
|
955
|
-
Please change the parent <Route path="${
|
|
1091
|
+
Please change the parent <Route path="${d}"> to <Route path="${d === "/" ? "*" : `${d}/*`}">.`
|
|
956
1092
|
);
|
|
957
1093
|
}
|
|
958
|
-
let g =
|
|
1094
|
+
let g = ee(), m;
|
|
959
1095
|
if (t) {
|
|
960
|
-
let
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${
|
|
964
|
-
),
|
|
1096
|
+
let d = typeof t == "string" ? ae(t) : t;
|
|
1097
|
+
L(
|
|
1098
|
+
u === "/" || d.pathname?.startsWith(u),
|
|
1099
|
+
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${d.pathname}" was given in the \`location\` prop.`
|
|
1100
|
+
), m = d;
|
|
965
1101
|
} else
|
|
966
|
-
|
|
967
|
-
let
|
|
968
|
-
if (
|
|
969
|
-
let
|
|
970
|
-
|
|
1102
|
+
m = g;
|
|
1103
|
+
let x = m.pathname || "/", f = x;
|
|
1104
|
+
if (u !== "/") {
|
|
1105
|
+
let d = u.replace(/^\//, "").split("/");
|
|
1106
|
+
f = "/" + x.replace(/^\//, "").split("/").slice(d.length).join("/");
|
|
971
1107
|
}
|
|
972
|
-
let
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
`No routes matched location "${
|
|
976
|
-
),
|
|
977
|
-
|
|
978
|
-
`Matched leaf route at location "${
|
|
1108
|
+
let h = It(e, { pathname: f });
|
|
1109
|
+
X(
|
|
1110
|
+
c || h != null,
|
|
1111
|
+
`No routes matched location "${m.pathname}${m.search}${m.hash}" `
|
|
1112
|
+
), X(
|
|
1113
|
+
h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0,
|
|
1114
|
+
`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
979
1115
|
);
|
|
980
|
-
let
|
|
981
|
-
|
|
982
|
-
(
|
|
983
|
-
params: Object.assign({},
|
|
984
|
-
pathname:
|
|
985
|
-
|
|
1116
|
+
let v = tn(
|
|
1117
|
+
h && h.map(
|
|
1118
|
+
(d) => Object.assign({}, d, {
|
|
1119
|
+
params: Object.assign({}, l, d.params),
|
|
1120
|
+
pathname: J([
|
|
1121
|
+
u,
|
|
986
1122
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
987
|
-
n.encodeLocation ? n.encodeLocation(
|
|
1123
|
+
n.encodeLocation ? n.encodeLocation(d.pathname).pathname : d.pathname
|
|
988
1124
|
]),
|
|
989
|
-
pathnameBase:
|
|
990
|
-
|
|
1125
|
+
pathnameBase: d.pathnameBase === "/" ? u : J([
|
|
1126
|
+
u,
|
|
991
1127
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
992
|
-
n.encodeLocation ? n.encodeLocation(
|
|
1128
|
+
n.encodeLocation ? n.encodeLocation(d.pathnameBase).pathname : d.pathnameBase
|
|
993
1129
|
])
|
|
994
1130
|
})
|
|
995
1131
|
),
|
|
996
|
-
|
|
1132
|
+
i,
|
|
997
1133
|
r,
|
|
998
1134
|
a
|
|
999
1135
|
);
|
|
1000
|
-
return t &&
|
|
1001
|
-
|
|
1136
|
+
return t && v ? /* @__PURE__ */ p.createElement(
|
|
1137
|
+
ge.Provider,
|
|
1002
1138
|
{
|
|
1003
1139
|
value: {
|
|
1004
1140
|
location: {
|
|
@@ -1007,23 +1143,23 @@ Please change the parent <Route path="${f}"> to <Route path="${f === "/" ? "*" :
|
|
|
1007
1143
|
hash: "",
|
|
1008
1144
|
state: null,
|
|
1009
1145
|
key: "default",
|
|
1010
|
-
...
|
|
1146
|
+
...m
|
|
1011
1147
|
},
|
|
1012
1148
|
navigationType: "POP"
|
|
1013
1149
|
/* Pop */
|
|
1014
1150
|
}
|
|
1015
1151
|
},
|
|
1016
|
-
|
|
1017
|
-
) :
|
|
1152
|
+
v
|
|
1153
|
+
) : v;
|
|
1018
1154
|
}
|
|
1019
|
-
function
|
|
1020
|
-
let e =
|
|
1155
|
+
function Kr() {
|
|
1156
|
+
let e = sn(), t = Wr(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", n = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, o = null;
|
|
1021
1157
|
return console.error(
|
|
1022
1158
|
"Error handled by React Router default ErrorBoundary:",
|
|
1023
1159
|
e
|
|
1024
|
-
),
|
|
1160
|
+
), o = /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ p.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ p.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ p.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ p.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ p.createElement("pre", { style: n }, r) : null, o);
|
|
1025
1161
|
}
|
|
1026
|
-
var
|
|
1162
|
+
var Zr = /* @__PURE__ */ p.createElement(Kr, null), Qr = class extends p.Component {
|
|
1027
1163
|
constructor(e) {
|
|
1028
1164
|
super(e), this.state = {
|
|
1029
1165
|
location: e.location,
|
|
@@ -1053,8 +1189,8 @@ var Jt = /* @__PURE__ */ c.createElement(Yt, null), qt = class extends c.Compone
|
|
|
1053
1189
|
);
|
|
1054
1190
|
}
|
|
1055
1191
|
render() {
|
|
1056
|
-
return this.state.error !== void 0 ? /* @__PURE__ */
|
|
1057
|
-
|
|
1192
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ p.createElement(Z.Provider, { value: this.props.routeContext }, /* @__PURE__ */ p.createElement(
|
|
1193
|
+
Je.Provider,
|
|
1058
1194
|
{
|
|
1059
1195
|
value: this.state.error,
|
|
1060
1196
|
children: this.props.component
|
|
@@ -1062,11 +1198,11 @@ var Jt = /* @__PURE__ */ c.createElement(Yt, null), qt = class extends c.Compone
|
|
|
1062
1198
|
)) : this.props.children;
|
|
1063
1199
|
}
|
|
1064
1200
|
};
|
|
1065
|
-
function
|
|
1066
|
-
let a =
|
|
1067
|
-
return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */
|
|
1201
|
+
function en({ routeContext: e, match: t, children: r }) {
|
|
1202
|
+
let a = p.useContext(ie);
|
|
1203
|
+
return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ p.createElement(Z.Provider, { value: e }, r);
|
|
1068
1204
|
}
|
|
1069
|
-
function
|
|
1205
|
+
function tn(e, t = [], r = null, a = null) {
|
|
1070
1206
|
if (e == null) {
|
|
1071
1207
|
if (!r)
|
|
1072
1208
|
return null;
|
|
@@ -1077,215 +1213,215 @@ function Kt(e, t = [], r = null, a = null) {
|
|
|
1077
1213
|
else
|
|
1078
1214
|
return null;
|
|
1079
1215
|
}
|
|
1080
|
-
let n = e,
|
|
1081
|
-
if (
|
|
1082
|
-
let
|
|
1083
|
-
(
|
|
1216
|
+
let n = e, i = r?.errors;
|
|
1217
|
+
if (i != null) {
|
|
1218
|
+
let s = n.findIndex(
|
|
1219
|
+
(u) => u.route.id && i?.[u.route.id] !== void 0
|
|
1084
1220
|
);
|
|
1085
|
-
|
|
1086
|
-
|
|
1221
|
+
L(
|
|
1222
|
+
s >= 0,
|
|
1087
1223
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
1088
|
-
|
|
1224
|
+
i
|
|
1089
1225
|
).join(",")}`
|
|
1090
1226
|
), n = n.slice(
|
|
1091
1227
|
0,
|
|
1092
|
-
Math.min(n.length,
|
|
1228
|
+
Math.min(n.length, s + 1)
|
|
1093
1229
|
);
|
|
1094
1230
|
}
|
|
1095
|
-
let
|
|
1231
|
+
let o = !1, l = -1;
|
|
1096
1232
|
if (r)
|
|
1097
|
-
for (let
|
|
1098
|
-
let
|
|
1099
|
-
if ((
|
|
1100
|
-
let { loaderData:
|
|
1101
|
-
if (
|
|
1102
|
-
|
|
1233
|
+
for (let s = 0; s < n.length; s++) {
|
|
1234
|
+
let u = n[s];
|
|
1235
|
+
if ((u.route.HydrateFallback || u.route.hydrateFallbackElement) && (l = s), u.route.id) {
|
|
1236
|
+
let { loaderData: c, errors: g } = r, m = u.route.loader && !c.hasOwnProperty(u.route.id) && (!g || g[u.route.id] === void 0);
|
|
1237
|
+
if (u.route.lazy || m) {
|
|
1238
|
+
o = !0, l >= 0 ? n = n.slice(0, l + 1) : n = [n[0]];
|
|
1103
1239
|
break;
|
|
1104
1240
|
}
|
|
1105
1241
|
}
|
|
1106
1242
|
}
|
|
1107
|
-
return n.reduceRight((
|
|
1108
|
-
let g,
|
|
1109
|
-
r && (g =
|
|
1243
|
+
return n.reduceRight((s, u, c) => {
|
|
1244
|
+
let g, m = !1, x = null, f = null;
|
|
1245
|
+
r && (g = i && u.route.id ? i[u.route.id] : void 0, x = u.route.errorElement || Zr, o && (l < 0 && c === 0 ? (Ht(
|
|
1110
1246
|
"route-fallback",
|
|
1111
1247
|
!1,
|
|
1112
1248
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
1113
|
-
),
|
|
1114
|
-
let
|
|
1115
|
-
let
|
|
1116
|
-
return g ?
|
|
1117
|
-
|
|
1249
|
+
), m = !0, f = null) : l === c && (m = !0, f = u.route.hydrateFallbackElement || null)));
|
|
1250
|
+
let h = t.concat(n.slice(0, c + 1)), v = () => {
|
|
1251
|
+
let d;
|
|
1252
|
+
return g ? d = x : m ? d = f : u.route.Component ? d = /* @__PURE__ */ p.createElement(u.route.Component, null) : u.route.element ? d = u.route.element : d = s, /* @__PURE__ */ p.createElement(
|
|
1253
|
+
en,
|
|
1118
1254
|
{
|
|
1119
|
-
match:
|
|
1255
|
+
match: u,
|
|
1120
1256
|
routeContext: {
|
|
1121
|
-
outlet:
|
|
1122
|
-
matches:
|
|
1257
|
+
outlet: s,
|
|
1258
|
+
matches: h,
|
|
1123
1259
|
isDataRoute: r != null
|
|
1124
1260
|
},
|
|
1125
|
-
children:
|
|
1261
|
+
children: d
|
|
1126
1262
|
}
|
|
1127
1263
|
);
|
|
1128
1264
|
};
|
|
1129
|
-
return r && (
|
|
1130
|
-
|
|
1265
|
+
return r && (u.route.ErrorBoundary || u.route.errorElement || c === 0) ? /* @__PURE__ */ p.createElement(
|
|
1266
|
+
Qr,
|
|
1131
1267
|
{
|
|
1132
1268
|
location: r.location,
|
|
1133
1269
|
revalidation: r.revalidation,
|
|
1134
|
-
component:
|
|
1270
|
+
component: x,
|
|
1135
1271
|
error: g,
|
|
1136
|
-
children:
|
|
1137
|
-
routeContext: { outlet: null, matches:
|
|
1272
|
+
children: v(),
|
|
1273
|
+
routeContext: { outlet: null, matches: h, isDataRoute: !0 }
|
|
1138
1274
|
}
|
|
1139
|
-
) :
|
|
1275
|
+
) : v();
|
|
1140
1276
|
}, null);
|
|
1141
1277
|
}
|
|
1142
|
-
function
|
|
1278
|
+
function Ke(e) {
|
|
1143
1279
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1144
1280
|
}
|
|
1145
|
-
function
|
|
1146
|
-
let t =
|
|
1147
|
-
return
|
|
1281
|
+
function rn(e) {
|
|
1282
|
+
let t = p.useContext(ie);
|
|
1283
|
+
return L(t, Ke(e)), t;
|
|
1148
1284
|
}
|
|
1149
|
-
function
|
|
1150
|
-
let t =
|
|
1151
|
-
return
|
|
1285
|
+
function nn(e) {
|
|
1286
|
+
let t = p.useContext(Ae);
|
|
1287
|
+
return L(t, Ke(e)), t;
|
|
1152
1288
|
}
|
|
1153
|
-
function
|
|
1154
|
-
let t =
|
|
1155
|
-
return
|
|
1289
|
+
function an(e) {
|
|
1290
|
+
let t = p.useContext(Z);
|
|
1291
|
+
return L(t, Ke(e)), t;
|
|
1156
1292
|
}
|
|
1157
|
-
function
|
|
1158
|
-
let t =
|
|
1159
|
-
return
|
|
1293
|
+
function Ze(e) {
|
|
1294
|
+
let t = an(e), r = t.matches[t.matches.length - 1];
|
|
1295
|
+
return L(
|
|
1160
1296
|
r.route.id,
|
|
1161
1297
|
`${e} can only be used on routes that contain a unique "id"`
|
|
1162
1298
|
), r.route.id;
|
|
1163
1299
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return
|
|
1300
|
+
function on() {
|
|
1301
|
+
return Ze(
|
|
1166
1302
|
"useRouteId"
|
|
1167
1303
|
/* UseRouteId */
|
|
1168
1304
|
);
|
|
1169
1305
|
}
|
|
1170
|
-
function
|
|
1171
|
-
let e =
|
|
1306
|
+
function sn() {
|
|
1307
|
+
let e = p.useContext(Je), t = nn(
|
|
1172
1308
|
"useRouteError"
|
|
1173
1309
|
/* UseRouteError */
|
|
1174
|
-
), r =
|
|
1310
|
+
), r = Ze(
|
|
1175
1311
|
"useRouteError"
|
|
1176
1312
|
/* UseRouteError */
|
|
1177
1313
|
);
|
|
1178
1314
|
return e !== void 0 ? e : t.errors?.[r];
|
|
1179
1315
|
}
|
|
1180
|
-
function
|
|
1181
|
-
let { router: e } =
|
|
1316
|
+
function ln() {
|
|
1317
|
+
let { router: e } = rn(
|
|
1182
1318
|
"useNavigate"
|
|
1183
1319
|
/* UseNavigateStable */
|
|
1184
|
-
), t =
|
|
1320
|
+
), t = Ze(
|
|
1185
1321
|
"useNavigate"
|
|
1186
1322
|
/* UseNavigateStable */
|
|
1187
|
-
), r =
|
|
1188
|
-
return
|
|
1323
|
+
), r = p.useRef(!1);
|
|
1324
|
+
return jt(() => {
|
|
1189
1325
|
r.current = !0;
|
|
1190
|
-
}),
|
|
1191
|
-
async (n,
|
|
1192
|
-
|
|
1326
|
+
}), p.useCallback(
|
|
1327
|
+
async (n, i = {}) => {
|
|
1328
|
+
X(r.current, Ft), r.current && (typeof n == "number" ? e.navigate(n) : await e.navigate(n, { fromRouteId: t, ...i }));
|
|
1193
1329
|
},
|
|
1194
1330
|
[e, t]
|
|
1195
1331
|
);
|
|
1196
1332
|
}
|
|
1197
|
-
var
|
|
1198
|
-
function
|
|
1199
|
-
!t && !
|
|
1333
|
+
var vt = {};
|
|
1334
|
+
function Ht(e, t, r) {
|
|
1335
|
+
!t && !vt[e] && (vt[e] = !0, X(!1, r));
|
|
1200
1336
|
}
|
|
1201
|
-
|
|
1202
|
-
function
|
|
1337
|
+
p.memo(un);
|
|
1338
|
+
function un({
|
|
1203
1339
|
routes: e,
|
|
1204
1340
|
future: t,
|
|
1205
1341
|
state: r
|
|
1206
1342
|
}) {
|
|
1207
|
-
return
|
|
1343
|
+
return Mt(e, void 0, r, t);
|
|
1208
1344
|
}
|
|
1209
|
-
function
|
|
1210
|
-
|
|
1345
|
+
function zt(e) {
|
|
1346
|
+
L(
|
|
1211
1347
|
!1,
|
|
1212
1348
|
"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."
|
|
1213
1349
|
);
|
|
1214
1350
|
}
|
|
1215
|
-
function
|
|
1351
|
+
function cn({
|
|
1216
1352
|
basename: e = "/",
|
|
1217
1353
|
children: t = null,
|
|
1218
1354
|
location: r,
|
|
1219
1355
|
navigationType: a = "POP",
|
|
1220
1356
|
navigator: n,
|
|
1221
|
-
static:
|
|
1357
|
+
static: i = !1
|
|
1222
1358
|
}) {
|
|
1223
|
-
|
|
1224
|
-
!
|
|
1359
|
+
L(
|
|
1360
|
+
!ye(),
|
|
1225
1361
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
1226
1362
|
);
|
|
1227
|
-
let
|
|
1363
|
+
let o = e.replace(/^\/*/, "/"), l = p.useMemo(
|
|
1228
1364
|
() => ({
|
|
1229
|
-
basename:
|
|
1365
|
+
basename: o,
|
|
1230
1366
|
navigator: n,
|
|
1231
|
-
static:
|
|
1367
|
+
static: i,
|
|
1232
1368
|
future: {}
|
|
1233
1369
|
}),
|
|
1234
|
-
[
|
|
1370
|
+
[o, n, i]
|
|
1235
1371
|
);
|
|
1236
|
-
typeof r == "string" && (r =
|
|
1372
|
+
typeof r == "string" && (r = ae(r));
|
|
1237
1373
|
let {
|
|
1238
|
-
pathname:
|
|
1239
|
-
search:
|
|
1240
|
-
hash:
|
|
1374
|
+
pathname: s = "/",
|
|
1375
|
+
search: u = "",
|
|
1376
|
+
hash: c = "",
|
|
1241
1377
|
state: g = null,
|
|
1242
|
-
key:
|
|
1243
|
-
} = r,
|
|
1244
|
-
let
|
|
1245
|
-
return
|
|
1378
|
+
key: m = "default"
|
|
1379
|
+
} = r, x = p.useMemo(() => {
|
|
1380
|
+
let f = K(s, o);
|
|
1381
|
+
return f == null ? null : {
|
|
1246
1382
|
location: {
|
|
1247
|
-
pathname:
|
|
1248
|
-
search:
|
|
1249
|
-
hash:
|
|
1383
|
+
pathname: f,
|
|
1384
|
+
search: u,
|
|
1385
|
+
hash: c,
|
|
1250
1386
|
state: g,
|
|
1251
|
-
key:
|
|
1387
|
+
key: m
|
|
1252
1388
|
},
|
|
1253
1389
|
navigationType: a
|
|
1254
1390
|
};
|
|
1255
|
-
}, [
|
|
1256
|
-
return
|
|
1257
|
-
|
|
1258
|
-
`<Router basename="${
|
|
1259
|
-
),
|
|
1391
|
+
}, [o, s, u, c, g, m, a]);
|
|
1392
|
+
return X(
|
|
1393
|
+
x != null,
|
|
1394
|
+
`<Router basename="${o}"> is not able to match the URL "${s}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
1395
|
+
), x == null ? null : /* @__PURE__ */ p.createElement(G.Provider, { value: l }, /* @__PURE__ */ p.createElement(ge.Provider, { children: t, value: x }));
|
|
1260
1396
|
}
|
|
1261
|
-
function
|
|
1397
|
+
function fn({
|
|
1262
1398
|
children: e,
|
|
1263
1399
|
location: t
|
|
1264
1400
|
}) {
|
|
1265
|
-
return
|
|
1401
|
+
return Jr(We(e), t);
|
|
1266
1402
|
}
|
|
1267
|
-
function
|
|
1403
|
+
function We(e, t = []) {
|
|
1268
1404
|
let r = [];
|
|
1269
|
-
return
|
|
1270
|
-
if (!
|
|
1405
|
+
return p.Children.forEach(e, (a, n) => {
|
|
1406
|
+
if (!p.isValidElement(a))
|
|
1271
1407
|
return;
|
|
1272
|
-
let
|
|
1273
|
-
if (a.type ===
|
|
1408
|
+
let i = [...t, n];
|
|
1409
|
+
if (a.type === p.Fragment) {
|
|
1274
1410
|
r.push.apply(
|
|
1275
1411
|
r,
|
|
1276
|
-
|
|
1412
|
+
We(a.props.children, i)
|
|
1277
1413
|
);
|
|
1278
1414
|
return;
|
|
1279
1415
|
}
|
|
1280
|
-
|
|
1281
|
-
a.type ===
|
|
1416
|
+
L(
|
|
1417
|
+
a.type === zt,
|
|
1282
1418
|
`[${typeof a.type == "string" ? a.type : a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`
|
|
1283
|
-
),
|
|
1419
|
+
), L(
|
|
1284
1420
|
!a.props.index || !a.props.children,
|
|
1285
1421
|
"An index route cannot have child routes."
|
|
1286
1422
|
);
|
|
1287
|
-
let
|
|
1288
|
-
id: a.props.id ||
|
|
1423
|
+
let o = {
|
|
1424
|
+
id: a.props.id || i.join("-"),
|
|
1289
1425
|
caseSensitive: a.props.caseSensitive,
|
|
1290
1426
|
element: a.props.element,
|
|
1291
1427
|
Component: a.props.Component,
|
|
@@ -1302,91 +1438,91 @@ function ge(e, t = []) {
|
|
|
1302
1438
|
handle: a.props.handle,
|
|
1303
1439
|
lazy: a.props.lazy
|
|
1304
1440
|
};
|
|
1305
|
-
a.props.children && (
|
|
1441
|
+
a.props.children && (o.children = We(
|
|
1306
1442
|
a.props.children,
|
|
1307
|
-
|
|
1308
|
-
)), r.push(
|
|
1443
|
+
i
|
|
1444
|
+
)), r.push(o);
|
|
1309
1445
|
}), r;
|
|
1310
1446
|
}
|
|
1311
|
-
var
|
|
1312
|
-
function
|
|
1447
|
+
var Ce = "get", ke = "application/x-www-form-urlencoded";
|
|
1448
|
+
function Oe(e) {
|
|
1313
1449
|
return e != null && typeof e.tagName == "string";
|
|
1314
1450
|
}
|
|
1315
|
-
function
|
|
1316
|
-
return
|
|
1451
|
+
function dn(e) {
|
|
1452
|
+
return Oe(e) && e.tagName.toLowerCase() === "button";
|
|
1317
1453
|
}
|
|
1318
|
-
function
|
|
1319
|
-
return
|
|
1454
|
+
function hn(e) {
|
|
1455
|
+
return Oe(e) && e.tagName.toLowerCase() === "form";
|
|
1320
1456
|
}
|
|
1321
|
-
function
|
|
1322
|
-
return
|
|
1457
|
+
function pn(e) {
|
|
1458
|
+
return Oe(e) && e.tagName.toLowerCase() === "input";
|
|
1323
1459
|
}
|
|
1324
|
-
function
|
|
1460
|
+
function mn(e) {
|
|
1325
1461
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1326
1462
|
}
|
|
1327
|
-
function
|
|
1463
|
+
function gn(e, t) {
|
|
1328
1464
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1329
1465
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
1330
|
-
!
|
|
1466
|
+
!mn(e);
|
|
1331
1467
|
}
|
|
1332
|
-
var
|
|
1333
|
-
function
|
|
1334
|
-
if (
|
|
1468
|
+
var we = null;
|
|
1469
|
+
function yn() {
|
|
1470
|
+
if (we === null)
|
|
1335
1471
|
try {
|
|
1336
1472
|
new FormData(
|
|
1337
1473
|
document.createElement("form"),
|
|
1338
1474
|
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
1339
1475
|
0
|
|
1340
|
-
),
|
|
1476
|
+
), we = !1;
|
|
1341
1477
|
} catch {
|
|
1342
|
-
|
|
1478
|
+
we = !0;
|
|
1343
1479
|
}
|
|
1344
|
-
return
|
|
1480
|
+
return we;
|
|
1345
1481
|
}
|
|
1346
|
-
var
|
|
1482
|
+
var vn = /* @__PURE__ */ new Set([
|
|
1347
1483
|
"application/x-www-form-urlencoded",
|
|
1348
1484
|
"multipart/form-data",
|
|
1349
1485
|
"text/plain"
|
|
1350
1486
|
]);
|
|
1351
|
-
function
|
|
1352
|
-
return e != null && !
|
|
1487
|
+
function ze(e) {
|
|
1488
|
+
return e != null && !vn.has(e) ? (X(
|
|
1353
1489
|
!1,
|
|
1354
|
-
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${
|
|
1490
|
+
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ke}"`
|
|
1355
1491
|
), null) : e;
|
|
1356
1492
|
}
|
|
1357
|
-
function
|
|
1358
|
-
let r, a, n,
|
|
1359
|
-
if (
|
|
1360
|
-
let
|
|
1361
|
-
a =
|
|
1362
|
-
} else if (
|
|
1363
|
-
let
|
|
1364
|
-
if (
|
|
1493
|
+
function xn(e, t) {
|
|
1494
|
+
let r, a, n, i, o;
|
|
1495
|
+
if (hn(e)) {
|
|
1496
|
+
let l = e.getAttribute("action");
|
|
1497
|
+
a = l ? K(l, t) : null, r = e.getAttribute("method") || Ce, n = ze(e.getAttribute("enctype")) || ke, i = new FormData(e);
|
|
1498
|
+
} else if (dn(e) || pn(e) && (e.type === "submit" || e.type === "image")) {
|
|
1499
|
+
let l = e.form;
|
|
1500
|
+
if (l == null)
|
|
1365
1501
|
throw new Error(
|
|
1366
1502
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1367
1503
|
);
|
|
1368
|
-
let
|
|
1369
|
-
if (a =
|
|
1370
|
-
let { name:
|
|
1371
|
-
if (
|
|
1372
|
-
let
|
|
1373
|
-
|
|
1374
|
-
} else
|
|
1504
|
+
let s = e.getAttribute("formaction") || l.getAttribute("action");
|
|
1505
|
+
if (a = s ? K(s, t) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || Ce, n = ze(e.getAttribute("formenctype")) || ze(l.getAttribute("enctype")) || ke, i = new FormData(l, e), !yn()) {
|
|
1506
|
+
let { name: u, type: c, value: g } = e;
|
|
1507
|
+
if (c === "image") {
|
|
1508
|
+
let m = u ? `${u}.` : "";
|
|
1509
|
+
i.append(`${m}x`, "0"), i.append(`${m}y`, "0");
|
|
1510
|
+
} else u && i.append(u, g);
|
|
1375
1511
|
}
|
|
1376
1512
|
} else {
|
|
1377
|
-
if (
|
|
1513
|
+
if (Oe(e))
|
|
1378
1514
|
throw new Error(
|
|
1379
1515
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
1380
1516
|
);
|
|
1381
|
-
r =
|
|
1517
|
+
r = Ce, a = null, n = ke, o = e;
|
|
1382
1518
|
}
|
|
1383
|
-
return
|
|
1519
|
+
return i && n === "text/plain" && (o = i, i = void 0), { action: a, method: r.toLowerCase(), encType: n, formData: i, body: o };
|
|
1384
1520
|
}
|
|
1385
|
-
function
|
|
1521
|
+
function Qe(e, t) {
|
|
1386
1522
|
if (e === !1 || e === null || typeof e > "u")
|
|
1387
1523
|
throw new Error(t);
|
|
1388
1524
|
}
|
|
1389
|
-
async function
|
|
1525
|
+
async function bn(e, t) {
|
|
1390
1526
|
if (e.id in t)
|
|
1391
1527
|
return t[e.id];
|
|
1392
1528
|
try {
|
|
@@ -1403,50 +1539,50 @@ async function mr(e, t) {
|
|
|
1403
1539
|
});
|
|
1404
1540
|
}
|
|
1405
1541
|
}
|
|
1406
|
-
function
|
|
1542
|
+
function wn(e) {
|
|
1407
1543
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
1408
1544
|
}
|
|
1409
|
-
async function
|
|
1545
|
+
async function Rn(e, t, r) {
|
|
1410
1546
|
let a = await Promise.all(
|
|
1411
1547
|
e.map(async (n) => {
|
|
1412
|
-
let
|
|
1413
|
-
if (
|
|
1414
|
-
let
|
|
1415
|
-
return
|
|
1548
|
+
let i = t.routes[n.route.id];
|
|
1549
|
+
if (i) {
|
|
1550
|
+
let o = await bn(i, r);
|
|
1551
|
+
return o.links ? o.links() : [];
|
|
1416
1552
|
}
|
|
1417
1553
|
return [];
|
|
1418
1554
|
})
|
|
1419
1555
|
);
|
|
1420
|
-
return
|
|
1421
|
-
a.flat(1).filter(
|
|
1556
|
+
return Sn(
|
|
1557
|
+
a.flat(1).filter(wn).filter((n) => n.rel === "stylesheet" || n.rel === "preload").map(
|
|
1422
1558
|
(n) => n.rel === "stylesheet" ? { ...n, rel: "prefetch", as: "style" } : { ...n, rel: "prefetch" }
|
|
1423
1559
|
)
|
|
1424
1560
|
);
|
|
1425
1561
|
}
|
|
1426
|
-
function
|
|
1427
|
-
let
|
|
1562
|
+
function xt(e, t, r, a, n, i) {
|
|
1563
|
+
let o = (s, u) => r[u] ? s.route.id !== r[u].route.id : !0, l = (s, u) => (
|
|
1428
1564
|
// param change, /users/123 -> /users/456
|
|
1429
|
-
r[
|
|
1565
|
+
r[u].pathname !== s.pathname || // splat param changed, which is not present in match.path
|
|
1430
1566
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
1431
|
-
r[
|
|
1567
|
+
r[u].route.path?.endsWith("*") && r[u].params["*"] !== s.params["*"]
|
|
1432
1568
|
);
|
|
1433
|
-
return
|
|
1434
|
-
(
|
|
1435
|
-
) :
|
|
1436
|
-
let
|
|
1437
|
-
if (!
|
|
1569
|
+
return i === "assets" ? t.filter(
|
|
1570
|
+
(s, u) => o(s, u) || l(s, u)
|
|
1571
|
+
) : i === "data" ? t.filter((s, u) => {
|
|
1572
|
+
let c = a.routes[s.route.id];
|
|
1573
|
+
if (!c || !c.hasLoader)
|
|
1438
1574
|
return !1;
|
|
1439
|
-
if (
|
|
1575
|
+
if (o(s, u) || l(s, u))
|
|
1440
1576
|
return !0;
|
|
1441
|
-
if (
|
|
1442
|
-
let g =
|
|
1577
|
+
if (s.route.shouldRevalidate) {
|
|
1578
|
+
let g = s.route.shouldRevalidate({
|
|
1443
1579
|
currentUrl: new URL(
|
|
1444
1580
|
n.pathname + n.search + n.hash,
|
|
1445
1581
|
window.origin
|
|
1446
1582
|
),
|
|
1447
1583
|
currentParams: r[0]?.params || {},
|
|
1448
1584
|
nextUrl: new URL(e, window.origin),
|
|
1449
|
-
nextParams:
|
|
1585
|
+
nextParams: s.params,
|
|
1450
1586
|
defaultShouldRevalidate: !0
|
|
1451
1587
|
});
|
|
1452
1588
|
if (typeof g == "boolean")
|
|
@@ -1455,453 +1591,453 @@ function Fe(e, t, r, a, n, o) {
|
|
|
1455
1591
|
return !0;
|
|
1456
1592
|
}) : [];
|
|
1457
1593
|
}
|
|
1458
|
-
function
|
|
1459
|
-
return
|
|
1594
|
+
function Cn(e, t, { includeHydrateFallback: r } = {}) {
|
|
1595
|
+
return kn(
|
|
1460
1596
|
e.map((a) => {
|
|
1461
1597
|
let n = t.routes[a.route.id];
|
|
1462
1598
|
if (!n) return [];
|
|
1463
|
-
let
|
|
1464
|
-
return n.clientActionModule && (
|
|
1599
|
+
let i = [n.module];
|
|
1600
|
+
return n.clientActionModule && (i = i.concat(n.clientActionModule)), n.clientLoaderModule && (i = i.concat(n.clientLoaderModule)), r && n.hydrateFallbackModule && (i = i.concat(n.hydrateFallbackModule)), n.imports && (i = i.concat(n.imports)), i;
|
|
1465
1601
|
}).flat(1)
|
|
1466
1602
|
);
|
|
1467
1603
|
}
|
|
1468
|
-
function
|
|
1604
|
+
function kn(e) {
|
|
1469
1605
|
return [...new Set(e)];
|
|
1470
1606
|
}
|
|
1471
|
-
function
|
|
1607
|
+
function En(e) {
|
|
1472
1608
|
let t = {}, r = Object.keys(e).sort();
|
|
1473
1609
|
for (let a of r)
|
|
1474
1610
|
t[a] = e[a];
|
|
1475
1611
|
return t;
|
|
1476
1612
|
}
|
|
1477
|
-
function
|
|
1613
|
+
function Sn(e, t) {
|
|
1478
1614
|
let r = /* @__PURE__ */ new Set();
|
|
1479
1615
|
return new Set(t), e.reduce((a, n) => {
|
|
1480
|
-
let
|
|
1481
|
-
return r.has(
|
|
1616
|
+
let i = JSON.stringify(En(n));
|
|
1617
|
+
return r.has(i) || (r.add(i), a.push({ key: i, link: n })), a;
|
|
1482
1618
|
}, []);
|
|
1483
1619
|
}
|
|
1484
1620
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
1485
|
-
var
|
|
1486
|
-
function
|
|
1621
|
+
var Pn = /* @__PURE__ */ new Set([100, 101, 204, 205]);
|
|
1622
|
+
function Tn(e, t) {
|
|
1487
1623
|
let r = typeof e == "string" ? new URL(
|
|
1488
1624
|
e,
|
|
1489
1625
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
1490
1626
|
// don't assume window is available
|
|
1491
1627
|
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
1492
1628
|
) : e;
|
|
1493
|
-
return r.pathname === "/" ? r.pathname = "_root.data" : t &&
|
|
1629
|
+
return r.pathname === "/" ? r.pathname = "_root.data" : t && K(r.pathname, t) === "/" ? r.pathname = `${t.replace(/\/$/, "")}/_root.data` : r.pathname = `${r.pathname.replace(/\/$/, "")}.data`, r;
|
|
1494
1630
|
}
|
|
1495
|
-
function
|
|
1496
|
-
let e =
|
|
1497
|
-
return
|
|
1631
|
+
function Ut() {
|
|
1632
|
+
let e = p.useContext(ie);
|
|
1633
|
+
return Qe(
|
|
1498
1634
|
e,
|
|
1499
1635
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
1500
1636
|
), e;
|
|
1501
1637
|
}
|
|
1502
|
-
function
|
|
1503
|
-
let e =
|
|
1504
|
-
return
|
|
1638
|
+
function In() {
|
|
1639
|
+
let e = p.useContext(Ae);
|
|
1640
|
+
return Qe(
|
|
1505
1641
|
e,
|
|
1506
1642
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
1507
1643
|
), e;
|
|
1508
1644
|
}
|
|
1509
|
-
var
|
|
1510
|
-
|
|
1511
|
-
function
|
|
1512
|
-
let e =
|
|
1513
|
-
return
|
|
1645
|
+
var et = p.createContext(void 0);
|
|
1646
|
+
et.displayName = "FrameworkContext";
|
|
1647
|
+
function Bt() {
|
|
1648
|
+
let e = p.useContext(et);
|
|
1649
|
+
return Qe(
|
|
1514
1650
|
e,
|
|
1515
1651
|
"You must render this element inside a <HydratedRouter> element"
|
|
1516
1652
|
), e;
|
|
1517
1653
|
}
|
|
1518
|
-
function
|
|
1519
|
-
let r =
|
|
1520
|
-
|
|
1521
|
-
if (e === "render" &&
|
|
1522
|
-
let
|
|
1523
|
-
|
|
1524
|
-
|
|
1654
|
+
function An(e, t) {
|
|
1655
|
+
let r = p.useContext(et), [a, n] = p.useState(!1), [i, o] = p.useState(!1), { onFocus: l, onBlur: s, onMouseEnter: u, onMouseLeave: c, onTouchStart: g } = t, m = p.useRef(null);
|
|
1656
|
+
p.useEffect(() => {
|
|
1657
|
+
if (e === "render" && o(!0), e === "viewport") {
|
|
1658
|
+
let h = (d) => {
|
|
1659
|
+
d.forEach((b) => {
|
|
1660
|
+
o(b.isIntersecting);
|
|
1525
1661
|
});
|
|
1526
|
-
},
|
|
1527
|
-
return
|
|
1528
|
-
|
|
1662
|
+
}, v = new IntersectionObserver(h, { threshold: 0.5 });
|
|
1663
|
+
return m.current && v.observe(m.current), () => {
|
|
1664
|
+
v.disconnect();
|
|
1529
1665
|
};
|
|
1530
1666
|
}
|
|
1531
|
-
}, [e]),
|
|
1667
|
+
}, [e]), p.useEffect(() => {
|
|
1532
1668
|
if (a) {
|
|
1533
|
-
let
|
|
1534
|
-
|
|
1669
|
+
let h = setTimeout(() => {
|
|
1670
|
+
o(!0);
|
|
1535
1671
|
}, 100);
|
|
1536
1672
|
return () => {
|
|
1537
|
-
clearTimeout(
|
|
1673
|
+
clearTimeout(h);
|
|
1538
1674
|
};
|
|
1539
1675
|
}
|
|
1540
1676
|
}, [a]);
|
|
1541
|
-
let
|
|
1677
|
+
let x = () => {
|
|
1542
1678
|
n(!0);
|
|
1543
|
-
},
|
|
1544
|
-
n(!1),
|
|
1679
|
+
}, f = () => {
|
|
1680
|
+
n(!1), o(!1);
|
|
1545
1681
|
};
|
|
1546
|
-
return r ? e !== "intent" ? [
|
|
1547
|
-
|
|
1548
|
-
|
|
1682
|
+
return r ? e !== "intent" ? [i, m, {}] : [
|
|
1683
|
+
i,
|
|
1684
|
+
m,
|
|
1549
1685
|
{
|
|
1550
|
-
onFocus:
|
|
1551
|
-
onBlur:
|
|
1552
|
-
onMouseEnter:
|
|
1553
|
-
onMouseLeave:
|
|
1554
|
-
onTouchStart:
|
|
1686
|
+
onFocus: ce(l, x),
|
|
1687
|
+
onBlur: ce(s, f),
|
|
1688
|
+
onMouseEnter: ce(u, x),
|
|
1689
|
+
onMouseLeave: ce(c, f),
|
|
1690
|
+
onTouchStart: ce(g, x)
|
|
1555
1691
|
}
|
|
1556
|
-
] : [!1,
|
|
1692
|
+
] : [!1, m, {}];
|
|
1557
1693
|
}
|
|
1558
|
-
function
|
|
1694
|
+
function ce(e, t) {
|
|
1559
1695
|
return (r) => {
|
|
1560
1696
|
e && e(r), r.defaultPrevented || t(r);
|
|
1561
1697
|
};
|
|
1562
1698
|
}
|
|
1563
|
-
function
|
|
1699
|
+
function On({
|
|
1564
1700
|
page: e,
|
|
1565
1701
|
...t
|
|
1566
1702
|
}) {
|
|
1567
|
-
let { router: r } =
|
|
1568
|
-
() =>
|
|
1703
|
+
let { router: r } = Ut(), a = p.useMemo(
|
|
1704
|
+
() => It(r.routes, e, r.basename),
|
|
1569
1705
|
[r.routes, e, r.basename]
|
|
1570
1706
|
);
|
|
1571
|
-
return a ? /* @__PURE__ */
|
|
1572
|
-
}
|
|
1573
|
-
function
|
|
1574
|
-
let { manifest: t, routeModules: r } =
|
|
1575
|
-
return
|
|
1576
|
-
let
|
|
1577
|
-
return
|
|
1578
|
-
(
|
|
1579
|
-
|
|
1707
|
+
return a ? /* @__PURE__ */ p.createElement(_n, { page: e, matches: a, ...t }) : null;
|
|
1708
|
+
}
|
|
1709
|
+
function Ln(e) {
|
|
1710
|
+
let { manifest: t, routeModules: r } = Bt(), [a, n] = p.useState([]);
|
|
1711
|
+
return p.useEffect(() => {
|
|
1712
|
+
let i = !1;
|
|
1713
|
+
return Rn(e, t, r).then(
|
|
1714
|
+
(o) => {
|
|
1715
|
+
i || n(o);
|
|
1580
1716
|
}
|
|
1581
1717
|
), () => {
|
|
1582
|
-
|
|
1718
|
+
i = !0;
|
|
1583
1719
|
};
|
|
1584
1720
|
}, [e, t, r]), a;
|
|
1585
1721
|
}
|
|
1586
|
-
function
|
|
1722
|
+
function _n({
|
|
1587
1723
|
page: e,
|
|
1588
1724
|
matches: t,
|
|
1589
1725
|
...r
|
|
1590
1726
|
}) {
|
|
1591
|
-
let a =
|
|
1592
|
-
() =>
|
|
1727
|
+
let a = ee(), { manifest: n, routeModules: i } = Bt(), { basename: o } = Ut(), { loaderData: l, matches: s } = In(), u = p.useMemo(
|
|
1728
|
+
() => xt(
|
|
1593
1729
|
e,
|
|
1594
1730
|
t,
|
|
1595
|
-
|
|
1731
|
+
s,
|
|
1596
1732
|
n,
|
|
1597
1733
|
a,
|
|
1598
1734
|
"data"
|
|
1599
1735
|
),
|
|
1600
|
-
[e, t,
|
|
1601
|
-
),
|
|
1602
|
-
() =>
|
|
1736
|
+
[e, t, s, n, a]
|
|
1737
|
+
), c = p.useMemo(
|
|
1738
|
+
() => xt(
|
|
1603
1739
|
e,
|
|
1604
1740
|
t,
|
|
1605
|
-
|
|
1741
|
+
s,
|
|
1606
1742
|
n,
|
|
1607
1743
|
a,
|
|
1608
1744
|
"assets"
|
|
1609
1745
|
),
|
|
1610
|
-
[e, t,
|
|
1611
|
-
), g =
|
|
1746
|
+
[e, t, s, n, a]
|
|
1747
|
+
), g = p.useMemo(() => {
|
|
1612
1748
|
if (e === a.pathname + a.search + a.hash)
|
|
1613
1749
|
return [];
|
|
1614
|
-
let
|
|
1615
|
-
if (t.forEach((
|
|
1616
|
-
let b = n.routes[
|
|
1617
|
-
!b || !b.hasLoader || (!
|
|
1618
|
-
}),
|
|
1750
|
+
let f = /* @__PURE__ */ new Set(), h = !1;
|
|
1751
|
+
if (t.forEach((d) => {
|
|
1752
|
+
let b = n.routes[d.route.id];
|
|
1753
|
+
!b || !b.hasLoader || (!u.some((w) => w.route.id === d.route.id) && d.route.id in l && i[d.route.id]?.shouldRevalidate || b.hasClientLoader ? h = !0 : f.add(d.route.id));
|
|
1754
|
+
}), f.size === 0)
|
|
1619
1755
|
return [];
|
|
1620
|
-
let
|
|
1621
|
-
return
|
|
1756
|
+
let v = Tn(e, o);
|
|
1757
|
+
return h && f.size > 0 && v.searchParams.set(
|
|
1622
1758
|
"_routes",
|
|
1623
|
-
t.filter((
|
|
1624
|
-
), [
|
|
1759
|
+
t.filter((d) => f.has(d.route.id)).map((d) => d.route.id).join(",")
|
|
1760
|
+
), [v.pathname + v.search];
|
|
1625
1761
|
}, [
|
|
1626
|
-
|
|
1627
|
-
|
|
1762
|
+
o,
|
|
1763
|
+
l,
|
|
1628
1764
|
a,
|
|
1629
1765
|
n,
|
|
1630
|
-
|
|
1766
|
+
u,
|
|
1631
1767
|
t,
|
|
1632
1768
|
e,
|
|
1633
|
-
|
|
1634
|
-
]),
|
|
1635
|
-
() =>
|
|
1636
|
-
[
|
|
1637
|
-
),
|
|
1638
|
-
return /* @__PURE__ */
|
|
1769
|
+
i
|
|
1770
|
+
]), m = p.useMemo(
|
|
1771
|
+
() => Cn(c, n),
|
|
1772
|
+
[c, n]
|
|
1773
|
+
), x = Ln(c);
|
|
1774
|
+
return /* @__PURE__ */ p.createElement(p.Fragment, null, g.map((f) => /* @__PURE__ */ p.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...r })), m.map((f) => /* @__PURE__ */ p.createElement("link", { key: f, rel: "modulepreload", href: f, ...r })), x.map(({ key: f, link: h }) => (
|
|
1639
1775
|
// these don't spread `linkProps` because they are full link descriptors
|
|
1640
1776
|
// already with their own props
|
|
1641
|
-
/* @__PURE__ */
|
|
1777
|
+
/* @__PURE__ */ p.createElement("link", { key: f, ...h })
|
|
1642
1778
|
)));
|
|
1643
1779
|
}
|
|
1644
|
-
function
|
|
1780
|
+
function $n(...e) {
|
|
1645
1781
|
return (t) => {
|
|
1646
1782
|
e.forEach((r) => {
|
|
1647
1783
|
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
1648
1784
|
});
|
|
1649
1785
|
};
|
|
1650
1786
|
}
|
|
1651
|
-
var
|
|
1787
|
+
var Wt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1652
1788
|
try {
|
|
1653
|
-
|
|
1789
|
+
Wt && (window.__reactRouterVersion = "7.6.3");
|
|
1654
1790
|
} catch {
|
|
1655
1791
|
}
|
|
1656
|
-
function
|
|
1792
|
+
function Dn({
|
|
1657
1793
|
basename: e,
|
|
1658
1794
|
children: t,
|
|
1659
1795
|
window: r
|
|
1660
1796
|
}) {
|
|
1661
|
-
let a =
|
|
1662
|
-
a.current == null && (a.current =
|
|
1663
|
-
let n = a.current, [
|
|
1797
|
+
let a = p.useRef();
|
|
1798
|
+
a.current == null && (a.current = wr({ window: r, v5Compat: !0 }));
|
|
1799
|
+
let n = a.current, [i, o] = p.useState({
|
|
1664
1800
|
action: n.action,
|
|
1665
1801
|
location: n.location
|
|
1666
|
-
}),
|
|
1667
|
-
(
|
|
1668
|
-
|
|
1802
|
+
}), l = p.useCallback(
|
|
1803
|
+
(s) => {
|
|
1804
|
+
p.startTransition(() => o(s));
|
|
1669
1805
|
},
|
|
1670
|
-
[
|
|
1806
|
+
[o]
|
|
1671
1807
|
);
|
|
1672
|
-
return
|
|
1673
|
-
|
|
1808
|
+
return p.useLayoutEffect(() => n.listen(l), [n, l]), /* @__PURE__ */ p.createElement(
|
|
1809
|
+
cn,
|
|
1674
1810
|
{
|
|
1675
1811
|
basename: e,
|
|
1676
1812
|
children: t,
|
|
1677
|
-
location:
|
|
1678
|
-
navigationType:
|
|
1813
|
+
location: i.location,
|
|
1814
|
+
navigationType: i.action,
|
|
1679
1815
|
navigator: n
|
|
1680
1816
|
}
|
|
1681
1817
|
);
|
|
1682
1818
|
}
|
|
1683
|
-
var
|
|
1819
|
+
var Vt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Yt = p.forwardRef(
|
|
1684
1820
|
function({
|
|
1685
1821
|
onClick: t,
|
|
1686
1822
|
discover: r = "render",
|
|
1687
1823
|
prefetch: a = "none",
|
|
1688
1824
|
relative: n,
|
|
1689
|
-
reloadDocument:
|
|
1690
|
-
replace:
|
|
1691
|
-
state:
|
|
1692
|
-
target:
|
|
1693
|
-
to:
|
|
1694
|
-
preventScrollReset:
|
|
1825
|
+
reloadDocument: i,
|
|
1826
|
+
replace: o,
|
|
1827
|
+
state: l,
|
|
1828
|
+
target: s,
|
|
1829
|
+
to: u,
|
|
1830
|
+
preventScrollReset: c,
|
|
1695
1831
|
viewTransition: g,
|
|
1696
|
-
...
|
|
1697
|
-
},
|
|
1698
|
-
let { basename:
|
|
1699
|
-
if (typeof
|
|
1832
|
+
...m
|
|
1833
|
+
}, x) {
|
|
1834
|
+
let { basename: f } = p.useContext(G), h = typeof u == "string" && Vt.test(u), v, d = !1;
|
|
1835
|
+
if (typeof u == "string" && h && (v = u, Wt))
|
|
1700
1836
|
try {
|
|
1701
|
-
let $ = new URL(window.location.href),
|
|
1702
|
-
|
|
1837
|
+
let $ = new URL(window.location.href), M = u.startsWith("//") ? new URL($.protocol + u) : new URL(u), B = K(M.pathname, f);
|
|
1838
|
+
M.origin === $.origin && B != null ? u = B + M.search + M.hash : d = !0;
|
|
1703
1839
|
} catch {
|
|
1704
|
-
|
|
1840
|
+
X(
|
|
1705
1841
|
!1,
|
|
1706
|
-
`<Link to="${
|
|
1842
|
+
`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
1707
1843
|
);
|
|
1708
1844
|
}
|
|
1709
|
-
let b =
|
|
1845
|
+
let b = Xr(u, { relative: n }), [w, T, I] = An(
|
|
1710
1846
|
a,
|
|
1711
|
-
|
|
1712
|
-
),
|
|
1713
|
-
replace:
|
|
1714
|
-
state:
|
|
1715
|
-
target:
|
|
1716
|
-
preventScrollReset:
|
|
1847
|
+
m
|
|
1848
|
+
), A = Mn(u, {
|
|
1849
|
+
replace: o,
|
|
1850
|
+
state: l,
|
|
1851
|
+
target: s,
|
|
1852
|
+
preventScrollReset: c,
|
|
1717
1853
|
relative: n,
|
|
1718
1854
|
viewTransition: g
|
|
1719
1855
|
});
|
|
1720
|
-
function
|
|
1721
|
-
t && t($), $.defaultPrevented ||
|
|
1856
|
+
function C($) {
|
|
1857
|
+
t && t($), $.defaultPrevented || A($);
|
|
1722
1858
|
}
|
|
1723
|
-
let
|
|
1859
|
+
let z = (
|
|
1724
1860
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1725
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ p.createElement(
|
|
1726
1862
|
"a",
|
|
1727
1863
|
{
|
|
1728
|
-
...
|
|
1729
|
-
...
|
|
1730
|
-
href:
|
|
1731
|
-
onClick:
|
|
1732
|
-
ref:
|
|
1733
|
-
target:
|
|
1734
|
-
"data-discover": !
|
|
1864
|
+
...m,
|
|
1865
|
+
...I,
|
|
1866
|
+
href: v || b,
|
|
1867
|
+
onClick: d || i ? t : C,
|
|
1868
|
+
ref: $n(x, T),
|
|
1869
|
+
target: s,
|
|
1870
|
+
"data-discover": !h && r === "render" ? "true" : void 0
|
|
1735
1871
|
}
|
|
1736
1872
|
)
|
|
1737
1873
|
);
|
|
1738
|
-
return
|
|
1874
|
+
return w && !h ? /* @__PURE__ */ p.createElement(p.Fragment, null, z, /* @__PURE__ */ p.createElement(On, { page: b })) : z;
|
|
1739
1875
|
}
|
|
1740
1876
|
);
|
|
1741
|
-
|
|
1742
|
-
var
|
|
1877
|
+
Yt.displayName = "Link";
|
|
1878
|
+
var Fn = p.forwardRef(
|
|
1743
1879
|
function({
|
|
1744
1880
|
"aria-current": t = "page",
|
|
1745
1881
|
caseSensitive: r = !1,
|
|
1746
1882
|
className: a = "",
|
|
1747
1883
|
end: n = !1,
|
|
1748
|
-
style:
|
|
1749
|
-
to:
|
|
1750
|
-
viewTransition:
|
|
1751
|
-
children:
|
|
1752
|
-
...
|
|
1753
|
-
},
|
|
1754
|
-
let g =
|
|
1884
|
+
style: i,
|
|
1885
|
+
to: o,
|
|
1886
|
+
viewTransition: l,
|
|
1887
|
+
children: s,
|
|
1888
|
+
...u
|
|
1889
|
+
}, c) {
|
|
1890
|
+
let g = ve(o, { relative: u.relative }), m = ee(), x = p.useContext(Ae), { navigator: f, basename: h } = p.useContext(G), v = x != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1755
1891
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1756
|
-
|
|
1757
|
-
r || (b = b.toLowerCase(),
|
|
1758
|
-
const
|
|
1759
|
-
let
|
|
1760
|
-
isActive:
|
|
1761
|
-
isPending:
|
|
1762
|
-
isTransitioning:
|
|
1763
|
-
},
|
|
1764
|
-
typeof a == "function" ? $ = a(
|
|
1892
|
+
Wn(g) && l === !0, d = f.encodeLocation ? f.encodeLocation(g).pathname : g.pathname, b = m.pathname, w = x && x.navigation && x.navigation.location ? x.navigation.location.pathname : null;
|
|
1893
|
+
r || (b = b.toLowerCase(), w = w ? w.toLowerCase() : null, d = d.toLowerCase()), w && h && (w = K(w, h) || w);
|
|
1894
|
+
const T = d !== "/" && d.endsWith("/") ? d.length - 1 : d.length;
|
|
1895
|
+
let I = b === d || !n && b.startsWith(d) && b.charAt(T) === "/", A = w != null && (w === d || !n && w.startsWith(d) && w.charAt(d.length) === "/"), C = {
|
|
1896
|
+
isActive: I,
|
|
1897
|
+
isPending: A,
|
|
1898
|
+
isTransitioning: v
|
|
1899
|
+
}, z = I ? t : void 0, $;
|
|
1900
|
+
typeof a == "function" ? $ = a(C) : $ = [
|
|
1765
1901
|
a,
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1902
|
+
I ? "active" : null,
|
|
1903
|
+
A ? "pending" : null,
|
|
1904
|
+
v ? "transitioning" : null
|
|
1769
1905
|
].filter(Boolean).join(" ");
|
|
1770
|
-
let
|
|
1771
|
-
return /* @__PURE__ */
|
|
1772
|
-
|
|
1906
|
+
let M = typeof i == "function" ? i(C) : i;
|
|
1907
|
+
return /* @__PURE__ */ p.createElement(
|
|
1908
|
+
Yt,
|
|
1773
1909
|
{
|
|
1774
|
-
...
|
|
1775
|
-
"aria-current":
|
|
1910
|
+
...u,
|
|
1911
|
+
"aria-current": z,
|
|
1776
1912
|
className: $,
|
|
1777
|
-
ref:
|
|
1778
|
-
style:
|
|
1779
|
-
to:
|
|
1780
|
-
viewTransition:
|
|
1913
|
+
ref: c,
|
|
1914
|
+
style: M,
|
|
1915
|
+
to: o,
|
|
1916
|
+
viewTransition: l
|
|
1781
1917
|
},
|
|
1782
|
-
typeof
|
|
1918
|
+
typeof s == "function" ? s(C) : s
|
|
1783
1919
|
);
|
|
1784
1920
|
}
|
|
1785
1921
|
);
|
|
1786
|
-
|
|
1787
|
-
var
|
|
1922
|
+
Fn.displayName = "NavLink";
|
|
1923
|
+
var jn = p.forwardRef(
|
|
1788
1924
|
({
|
|
1789
1925
|
discover: e = "render",
|
|
1790
1926
|
fetcherKey: t,
|
|
1791
1927
|
navigate: r,
|
|
1792
1928
|
reloadDocument: a,
|
|
1793
1929
|
replace: n,
|
|
1794
|
-
state:
|
|
1795
|
-
method:
|
|
1796
|
-
action:
|
|
1797
|
-
onSubmit:
|
|
1798
|
-
relative:
|
|
1799
|
-
preventScrollReset:
|
|
1930
|
+
state: i,
|
|
1931
|
+
method: o = Ce,
|
|
1932
|
+
action: l,
|
|
1933
|
+
onSubmit: s,
|
|
1934
|
+
relative: u,
|
|
1935
|
+
preventScrollReset: c,
|
|
1800
1936
|
viewTransition: g,
|
|
1801
|
-
...
|
|
1802
|
-
},
|
|
1803
|
-
let
|
|
1804
|
-
if (
|
|
1805
|
-
|
|
1806
|
-
let
|
|
1807
|
-
|
|
1937
|
+
...m
|
|
1938
|
+
}, x) => {
|
|
1939
|
+
let f = Un(), h = Bn(l, { relative: u }), v = o.toLowerCase() === "get" ? "get" : "post", d = typeof l == "string" && Vt.test(l), b = (w) => {
|
|
1940
|
+
if (s && s(w), w.defaultPrevented) return;
|
|
1941
|
+
w.preventDefault();
|
|
1942
|
+
let T = w.nativeEvent.submitter, I = T?.getAttribute("formmethod") || o;
|
|
1943
|
+
f(T || w.currentTarget, {
|
|
1808
1944
|
fetcherKey: t,
|
|
1809
|
-
method:
|
|
1945
|
+
method: I,
|
|
1810
1946
|
navigate: r,
|
|
1811
1947
|
replace: n,
|
|
1812
|
-
state:
|
|
1813
|
-
relative:
|
|
1814
|
-
preventScrollReset:
|
|
1948
|
+
state: i,
|
|
1949
|
+
relative: u,
|
|
1950
|
+
preventScrollReset: c,
|
|
1815
1951
|
viewTransition: g
|
|
1816
1952
|
});
|
|
1817
1953
|
};
|
|
1818
|
-
return /* @__PURE__ */
|
|
1954
|
+
return /* @__PURE__ */ p.createElement(
|
|
1819
1955
|
"form",
|
|
1820
1956
|
{
|
|
1821
|
-
ref:
|
|
1822
|
-
method:
|
|
1823
|
-
action:
|
|
1824
|
-
onSubmit: a ?
|
|
1825
|
-
...
|
|
1826
|
-
"data-discover": !
|
|
1957
|
+
ref: x,
|
|
1958
|
+
method: v,
|
|
1959
|
+
action: h,
|
|
1960
|
+
onSubmit: a ? s : b,
|
|
1961
|
+
...m,
|
|
1962
|
+
"data-discover": !d && e === "render" ? "true" : void 0
|
|
1827
1963
|
}
|
|
1828
1964
|
);
|
|
1829
1965
|
}
|
|
1830
1966
|
);
|
|
1831
|
-
|
|
1832
|
-
function
|
|
1967
|
+
jn.displayName = "Form";
|
|
1968
|
+
function Nn(e) {
|
|
1833
1969
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1834
1970
|
}
|
|
1835
|
-
function
|
|
1836
|
-
let t =
|
|
1837
|
-
return
|
|
1971
|
+
function qt(e) {
|
|
1972
|
+
let t = p.useContext(ie);
|
|
1973
|
+
return L(t, Nn(e)), t;
|
|
1838
1974
|
}
|
|
1839
|
-
function
|
|
1975
|
+
function Mn(e, {
|
|
1840
1976
|
target: t,
|
|
1841
1977
|
replace: r,
|
|
1842
1978
|
state: a,
|
|
1843
1979
|
preventScrollReset: n,
|
|
1844
|
-
relative:
|
|
1845
|
-
viewTransition:
|
|
1980
|
+
relative: i,
|
|
1981
|
+
viewTransition: o
|
|
1846
1982
|
} = {}) {
|
|
1847
|
-
let
|
|
1848
|
-
return
|
|
1849
|
-
(
|
|
1850
|
-
if (
|
|
1851
|
-
|
|
1852
|
-
let g = r !== void 0 ? r :
|
|
1853
|
-
|
|
1983
|
+
let l = Nt(), s = ee(), u = ve(e, { relative: i });
|
|
1984
|
+
return p.useCallback(
|
|
1985
|
+
(c) => {
|
|
1986
|
+
if (gn(c, t)) {
|
|
1987
|
+
c.preventDefault();
|
|
1988
|
+
let g = r !== void 0 ? r : de(s) === de(u);
|
|
1989
|
+
l(e, {
|
|
1854
1990
|
replace: g,
|
|
1855
1991
|
state: a,
|
|
1856
1992
|
preventScrollReset: n,
|
|
1857
|
-
relative:
|
|
1858
|
-
viewTransition:
|
|
1993
|
+
relative: i,
|
|
1994
|
+
viewTransition: o
|
|
1859
1995
|
});
|
|
1860
1996
|
}
|
|
1861
1997
|
},
|
|
1862
1998
|
[
|
|
1999
|
+
s,
|
|
1863
2000
|
l,
|
|
1864
2001
|
u,
|
|
1865
|
-
s,
|
|
1866
2002
|
r,
|
|
1867
2003
|
a,
|
|
1868
2004
|
t,
|
|
1869
2005
|
e,
|
|
1870
2006
|
n,
|
|
1871
|
-
|
|
1872
|
-
|
|
2007
|
+
i,
|
|
2008
|
+
o
|
|
1873
2009
|
]
|
|
1874
2010
|
);
|
|
1875
2011
|
}
|
|
1876
|
-
var
|
|
1877
|
-
function
|
|
1878
|
-
let { router: e } =
|
|
2012
|
+
var Hn = 0, zn = () => `__${String(++Hn)}__`;
|
|
2013
|
+
function Un() {
|
|
2014
|
+
let { router: e } = qt(
|
|
1879
2015
|
"useSubmit"
|
|
1880
2016
|
/* UseSubmit */
|
|
1881
|
-
), { basename: t } =
|
|
1882
|
-
return
|
|
2017
|
+
), { basename: t } = p.useContext(G), r = on();
|
|
2018
|
+
return p.useCallback(
|
|
1883
2019
|
async (a, n = {}) => {
|
|
1884
|
-
let { action:
|
|
2020
|
+
let { action: i, method: o, encType: l, formData: s, body: u } = xn(
|
|
1885
2021
|
a,
|
|
1886
2022
|
t
|
|
1887
2023
|
);
|
|
1888
2024
|
if (n.navigate === !1) {
|
|
1889
|
-
let
|
|
1890
|
-
await e.fetch(
|
|
2025
|
+
let c = n.fetcherKey || zn();
|
|
2026
|
+
await e.fetch(c, r, n.action || i, {
|
|
1891
2027
|
preventScrollReset: n.preventScrollReset,
|
|
1892
|
-
formData:
|
|
1893
|
-
body:
|
|
1894
|
-
formMethod: n.method ||
|
|
1895
|
-
formEncType: n.encType ||
|
|
2028
|
+
formData: s,
|
|
2029
|
+
body: u,
|
|
2030
|
+
formMethod: n.method || o,
|
|
2031
|
+
formEncType: n.encType || l,
|
|
1896
2032
|
flushSync: n.flushSync
|
|
1897
2033
|
});
|
|
1898
2034
|
} else
|
|
1899
|
-
await e.navigate(n.action ||
|
|
2035
|
+
await e.navigate(n.action || i, {
|
|
1900
2036
|
preventScrollReset: n.preventScrollReset,
|
|
1901
|
-
formData:
|
|
1902
|
-
body:
|
|
1903
|
-
formMethod: n.method ||
|
|
1904
|
-
formEncType: n.encType ||
|
|
2037
|
+
formData: s,
|
|
2038
|
+
body: u,
|
|
2039
|
+
formMethod: n.method || o,
|
|
2040
|
+
formEncType: n.encType || l,
|
|
1905
2041
|
replace: n.replace,
|
|
1906
2042
|
state: n.state,
|
|
1907
2043
|
fromRouteId: r,
|
|
@@ -1912,93 +2048,93 @@ function Nr() {
|
|
|
1912
2048
|
[e, t, r]
|
|
1913
2049
|
);
|
|
1914
2050
|
}
|
|
1915
|
-
function
|
|
1916
|
-
let { basename: r } =
|
|
1917
|
-
|
|
1918
|
-
let [n] = a.matches.slice(-1),
|
|
2051
|
+
function Bn(e, { relative: t } = {}) {
|
|
2052
|
+
let { basename: r } = p.useContext(G), a = p.useContext(Z);
|
|
2053
|
+
L(a, "useFormAction must be used inside a RouteContext");
|
|
2054
|
+
let [n] = a.matches.slice(-1), i = { ...ve(e || ".", { relative: t }) }, o = ee();
|
|
1919
2055
|
if (e == null) {
|
|
1920
|
-
|
|
1921
|
-
let
|
|
1922
|
-
if (
|
|
1923
|
-
|
|
1924
|
-
let
|
|
1925
|
-
|
|
2056
|
+
i.search = o.search;
|
|
2057
|
+
let l = new URLSearchParams(i.search), s = l.getAll("index");
|
|
2058
|
+
if (s.some((c) => c === "")) {
|
|
2059
|
+
l.delete("index"), s.filter((g) => g).forEach((g) => l.append("index", g));
|
|
2060
|
+
let c = l.toString();
|
|
2061
|
+
i.search = c ? `?${c}` : "";
|
|
1926
2062
|
}
|
|
1927
2063
|
}
|
|
1928
|
-
return (!e || e === ".") && n.route.index && (
|
|
2064
|
+
return (!e || e === ".") && n.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : J([r, i.pathname])), de(i);
|
|
1929
2065
|
}
|
|
1930
|
-
function
|
|
1931
|
-
let r =
|
|
1932
|
-
|
|
2066
|
+
function Wn(e, t = {}) {
|
|
2067
|
+
let r = p.useContext(Dt);
|
|
2068
|
+
L(
|
|
1933
2069
|
r != null,
|
|
1934
2070
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
1935
2071
|
);
|
|
1936
|
-
let { basename: a } =
|
|
2072
|
+
let { basename: a } = qt(
|
|
1937
2073
|
"useViewTransitionState"
|
|
1938
2074
|
/* useViewTransitionState */
|
|
1939
|
-
), n =
|
|
2075
|
+
), n = ve(e, { relative: t.relative });
|
|
1940
2076
|
if (!r.isTransitioning)
|
|
1941
2077
|
return !1;
|
|
1942
|
-
let
|
|
1943
|
-
return
|
|
2078
|
+
let i = K(r.currentLocation.pathname, a) || r.currentLocation.pathname, o = K(r.nextLocation.pathname, a) || r.nextLocation.pathname;
|
|
2079
|
+
return Te(n.pathname, o) != null || Te(n.pathname, i) != null;
|
|
1944
2080
|
}
|
|
1945
2081
|
[
|
|
1946
|
-
...
|
|
2082
|
+
...Pn
|
|
1947
2083
|
];
|
|
1948
|
-
const
|
|
2084
|
+
const Xt = R.createContext({
|
|
1949
2085
|
history: [],
|
|
1950
2086
|
addToHistory: () => {
|
|
1951
2087
|
},
|
|
1952
2088
|
popFromHistory: () => "",
|
|
1953
2089
|
replaceHistory: () => {
|
|
1954
2090
|
}
|
|
1955
|
-
}),
|
|
2091
|
+
}), Ja = ({
|
|
1956
2092
|
routes: e,
|
|
1957
2093
|
children: t
|
|
1958
2094
|
}) => {
|
|
1959
|
-
const r =
|
|
1960
|
-
r.current =
|
|
1961
|
-
}, []),
|
|
1962
|
-
|
|
1963
|
-
},
|
|
1964
|
-
let g = "",
|
|
1965
|
-
return r.current.length === 0 ? "/" : (r.current.length <=
|
|
2095
|
+
const r = R.useRef(["/"]), [a, n] = R.useState(["/"]), i = R.useCallback((c) => {
|
|
2096
|
+
r.current = c, n(c);
|
|
2097
|
+
}, []), o = (c) => {
|
|
2098
|
+
i([...r.current, c]);
|
|
2099
|
+
}, l = (c) => {
|
|
2100
|
+
let g = "", m = [];
|
|
2101
|
+
return r.current.length === 0 ? "/" : (r.current.length <= c ? (g = r.current[0], m = [g]) : (m = r.current.slice(
|
|
1966
2102
|
0,
|
|
1967
|
-
r.current.length -
|
|
1968
|
-
), g =
|
|
1969
|
-
},
|
|
1970
|
-
|
|
1971
|
-
},
|
|
1972
|
-
return /* @__PURE__ */
|
|
1973
|
-
|
|
2103
|
+
r.current.length - c
|
|
2104
|
+
), g = m[m.length - 1]), i(m), g);
|
|
2105
|
+
}, s = (c) => {
|
|
2106
|
+
i(c);
|
|
2107
|
+
}, u = e.map((c) => /* @__PURE__ */ E.jsx(zt, { path: c.path, element: c.render }));
|
|
2108
|
+
return /* @__PURE__ */ E.jsx(
|
|
2109
|
+
Xt.Provider,
|
|
1974
2110
|
{
|
|
1975
2111
|
value: {
|
|
1976
2112
|
history: a,
|
|
1977
|
-
addToHistory:
|
|
1978
|
-
popFromHistory:
|
|
1979
|
-
replaceHistory:
|
|
2113
|
+
addToHistory: o,
|
|
2114
|
+
popFromHistory: l,
|
|
2115
|
+
replaceHistory: s
|
|
1980
2116
|
},
|
|
1981
|
-
children: /* @__PURE__ */
|
|
2117
|
+
children: /* @__PURE__ */ E.jsxs(Dn, { children: [
|
|
1982
2118
|
t,
|
|
1983
|
-
/* @__PURE__ */
|
|
2119
|
+
/* @__PURE__ */ E.jsx(fn, { children: u })
|
|
1984
2120
|
] })
|
|
1985
2121
|
}
|
|
1986
2122
|
);
|
|
1987
|
-
},
|
|
1988
|
-
const e =
|
|
1989
|
-
(
|
|
1990
|
-
|
|
2123
|
+
}, Ka = () => {
|
|
2124
|
+
const e = Nt(), t = ee(), r = Ge(Xt), a = R.useCallback(
|
|
2125
|
+
(o, l = !0) => {
|
|
2126
|
+
o !== t.pathname && e(o, { replace: !0 }), l && r.addToHistory(o);
|
|
1991
2127
|
},
|
|
1992
2128
|
[t.pathname, e, r]
|
|
1993
|
-
), n =
|
|
1994
|
-
(
|
|
1995
|
-
const
|
|
1996
|
-
a(
|
|
2129
|
+
), n = R.useCallback(
|
|
2130
|
+
(o) => {
|
|
2131
|
+
const l = o || 1, s = r.popFromHistory(l);
|
|
2132
|
+
a(s, !1);
|
|
1997
2133
|
},
|
|
1998
2134
|
[a, r]
|
|
1999
|
-
),
|
|
2000
|
-
(
|
|
2001
|
-
r.replaceHistory(
|
|
2135
|
+
), i = R.useCallback(
|
|
2136
|
+
(o) => {
|
|
2137
|
+
r.replaceHistory(o);
|
|
2002
2138
|
},
|
|
2003
2139
|
[r]
|
|
2004
2140
|
);
|
|
@@ -2007,9 +2143,9 @@ const it = C.createContext({
|
|
|
2007
2143
|
history: r.history,
|
|
2008
2144
|
goBack: n,
|
|
2009
2145
|
goTo: a,
|
|
2010
|
-
replaceHistory:
|
|
2146
|
+
replaceHistory: i
|
|
2011
2147
|
};
|
|
2012
|
-
},
|
|
2148
|
+
}, Gt = R.createContext(
|
|
2013
2149
|
{
|
|
2014
2150
|
visibleItems: [],
|
|
2015
2151
|
isItemVisible: () => !1,
|
|
@@ -2018,36 +2154,36 @@ const it = C.createContext({
|
|
|
2018
2154
|
hideItem: () => {
|
|
2019
2155
|
}
|
|
2020
2156
|
}
|
|
2021
|
-
),
|
|
2022
|
-
const t =
|
|
2023
|
-
|
|
2024
|
-
}, []),
|
|
2025
|
-
(
|
|
2026
|
-
|
|
2157
|
+
), Za = ({ children: e }) => {
|
|
2158
|
+
const t = R.useRef([]), [r, a] = R.useState([]), n = R.useCallback((s) => {
|
|
2159
|
+
t.current = s, a(s);
|
|
2160
|
+
}, []), i = R.useCallback((s) => t.current.some((u) => u === s), []), o = R.useCallback(
|
|
2161
|
+
(s) => {
|
|
2162
|
+
i(s) || n([...t.current, s]);
|
|
2027
2163
|
},
|
|
2028
|
-
[
|
|
2029
|
-
),
|
|
2030
|
-
(
|
|
2031
|
-
|
|
2032
|
-
t.current.filter((
|
|
2164
|
+
[i, n]
|
|
2165
|
+
), l = R.useCallback(
|
|
2166
|
+
(s) => {
|
|
2167
|
+
i(s) && n(
|
|
2168
|
+
t.current.filter((c) => c !== s)
|
|
2033
2169
|
);
|
|
2034
2170
|
},
|
|
2035
|
-
[
|
|
2171
|
+
[i, n]
|
|
2036
2172
|
);
|
|
2037
|
-
return /* @__PURE__ */
|
|
2038
|
-
|
|
2173
|
+
return /* @__PURE__ */ E.jsx(
|
|
2174
|
+
Gt.Provider,
|
|
2039
2175
|
{
|
|
2040
2176
|
value: {
|
|
2041
2177
|
visibleItems: r,
|
|
2042
|
-
isItemVisible:
|
|
2043
|
-
showItem:
|
|
2044
|
-
hideItem:
|
|
2178
|
+
isItemVisible: i,
|
|
2179
|
+
showItem: o,
|
|
2180
|
+
hideItem: l
|
|
2045
2181
|
},
|
|
2046
2182
|
children: e
|
|
2047
2183
|
}
|
|
2048
2184
|
);
|
|
2049
|
-
},
|
|
2050
|
-
const e =
|
|
2185
|
+
}, Le = () => {
|
|
2186
|
+
const e = Ge(Gt), t = (n) => e.visibleItems.some((i) => i === n), r = (n) => {
|
|
2051
2187
|
e.showItem(n);
|
|
2052
2188
|
}, a = (n) => {
|
|
2053
2189
|
e.hideItem(n);
|
|
@@ -2058,51 +2194,46 @@ const it = C.createContext({
|
|
|
2058
2194
|
showItem: r,
|
|
2059
2195
|
hideItem: a
|
|
2060
2196
|
};
|
|
2061
|
-
},
|
|
2197
|
+
}, Vn = ({
|
|
2062
2198
|
id: e,
|
|
2063
2199
|
onCloseDrawer: t,
|
|
2064
2200
|
drawerCloseOffset: r = 15
|
|
2065
2201
|
}) => {
|
|
2066
|
-
const { isItemVisible: a } =
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
},
|
|
2071
|
-
|
|
2072
|
-
}, v = (p) => {
|
|
2073
|
-
if (!(!o || !i || !u) && n.current && h.current !== void 0) {
|
|
2074
|
-
const y = p.clientY, x = i.current?.clientHeight || 0;
|
|
2075
|
-
let f = h.current - y;
|
|
2076
|
-
f = -f, s(
|
|
2077
|
-
f < 0 ? 0 : -f
|
|
2078
|
-
), f >= x - r && (t?.(), d());
|
|
2079
|
-
}
|
|
2202
|
+
const { isItemVisible: a } = Le(), [n, i] = R.useState({
|
|
2203
|
+
isDragging: !1
|
|
2204
|
+
}), o = R.useRef(null), l = R.useRef(null), s = R.useRef(null), [u, c] = R.useState(0), g = (f) => {
|
|
2205
|
+
i(f);
|
|
2206
|
+
}, m = (f) => {
|
|
2207
|
+
i(f), c(0);
|
|
2080
2208
|
};
|
|
2081
|
-
return {
|
|
2209
|
+
return gr({
|
|
2210
|
+
ref: s,
|
|
2211
|
+
onDrag: (f) => {
|
|
2212
|
+
i(f);
|
|
2213
|
+
const h = l.current?.clientHeight || 0;
|
|
2214
|
+
f.distanceY && (c(f.distanceY < 0 ? 0 : -f.distanceY), f.distanceY >= h - r && (t?.(), m(f)));
|
|
2215
|
+
},
|
|
2216
|
+
onDragEnd: m,
|
|
2217
|
+
onDragStart: g
|
|
2218
|
+
}), {
|
|
2082
2219
|
isVisible: a(e),
|
|
2083
2220
|
drawerParentRef: o,
|
|
2084
|
-
drawerRef:
|
|
2085
|
-
drawerBottomDistance:
|
|
2086
|
-
handleRef:
|
|
2087
|
-
onDragStart: g,
|
|
2088
|
-
onDrag: v,
|
|
2089
|
-
onDragEnd: d
|
|
2221
|
+
drawerRef: l,
|
|
2222
|
+
drawerBottomDistance: u,
|
|
2223
|
+
handleRef: s
|
|
2090
2224
|
};
|
|
2091
|
-
},
|
|
2225
|
+
}, Qa = (e) => {
|
|
2092
2226
|
const { children: t, backgroundStyles: r, contentStyles: a, handle: n } = e, {
|
|
2093
|
-
isVisible:
|
|
2094
|
-
drawerParentRef:
|
|
2095
|
-
drawerRef:
|
|
2096
|
-
handleRef:
|
|
2097
|
-
drawerBottomDistance:
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
onDragEnd: d
|
|
2101
|
-
} = Hr(e);
|
|
2102
|
-
return /* @__PURE__ */ P.jsx(P.Fragment, { children: o && /* @__PURE__ */ P.jsx(
|
|
2227
|
+
isVisible: i,
|
|
2228
|
+
drawerParentRef: o,
|
|
2229
|
+
drawerRef: l,
|
|
2230
|
+
handleRef: s,
|
|
2231
|
+
drawerBottomDistance: u
|
|
2232
|
+
} = Vn(e);
|
|
2233
|
+
return /* @__PURE__ */ E.jsx(E.Fragment, { children: i && /* @__PURE__ */ E.jsx(
|
|
2103
2234
|
"div",
|
|
2104
2235
|
{
|
|
2105
|
-
ref:
|
|
2236
|
+
ref: o,
|
|
2106
2237
|
style: {
|
|
2107
2238
|
width: "100%",
|
|
2108
2239
|
height: "100%",
|
|
@@ -2117,12 +2248,10 @@ const it = C.createContext({
|
|
|
2117
2248
|
touchAction: "none",
|
|
2118
2249
|
...r
|
|
2119
2250
|
},
|
|
2120
|
-
|
|
2121
|
-
onPointerMoveCapture: g,
|
|
2122
|
-
children: /* @__PURE__ */ P.jsxs(
|
|
2251
|
+
children: /* @__PURE__ */ E.jsxs(
|
|
2123
2252
|
"div",
|
|
2124
2253
|
{
|
|
2125
|
-
ref:
|
|
2254
|
+
ref: l,
|
|
2126
2255
|
style: {
|
|
2127
2256
|
width: "100%",
|
|
2128
2257
|
height: "fit-content",
|
|
@@ -2138,17 +2267,17 @@ const it = C.createContext({
|
|
|
2138
2267
|
padding: "24px",
|
|
2139
2268
|
zIndex: 1001,
|
|
2140
2269
|
position: "absolute",
|
|
2141
|
-
bottom: `${
|
|
2270
|
+
bottom: `${u}px`,
|
|
2142
2271
|
...a
|
|
2143
2272
|
},
|
|
2144
|
-
onClick: (
|
|
2145
|
-
|
|
2273
|
+
onClick: (c) => {
|
|
2274
|
+
c.stopPropagation();
|
|
2146
2275
|
},
|
|
2147
2276
|
children: [
|
|
2148
|
-
/* @__PURE__ */
|
|
2277
|
+
/* @__PURE__ */ E.jsx(
|
|
2149
2278
|
"div",
|
|
2150
2279
|
{
|
|
2151
|
-
ref:
|
|
2280
|
+
ref: s,
|
|
2152
2281
|
style: {
|
|
2153
2282
|
display: "flex",
|
|
2154
2283
|
alignItems: "center",
|
|
@@ -2160,7 +2289,6 @@ const it = C.createContext({
|
|
|
2160
2289
|
cursor: "pointer",
|
|
2161
2290
|
...n?.styles
|
|
2162
2291
|
},
|
|
2163
|
-
onPointerDown: h,
|
|
2164
2292
|
children: n?.render
|
|
2165
2293
|
}
|
|
2166
2294
|
),
|
|
@@ -2170,15 +2298,1304 @@ const it = C.createContext({
|
|
|
2170
2298
|
)
|
|
2171
2299
|
}
|
|
2172
2300
|
) });
|
|
2173
|
-
},
|
|
2301
|
+
}, Yn = ({ onSubmit: e, fields: t }) => {
|
|
2302
|
+
const r = R.useRef(null), a = R.useCallback(
|
|
2303
|
+
(o) => {
|
|
2304
|
+
var l = Object.keys(o.currentTarget.elements), s = Object.values(o.currentTarget.elements), u = [];
|
|
2305
|
+
for (let c = 0; c < l.length; c++) {
|
|
2306
|
+
const g = l[c];
|
|
2307
|
+
if (t.findIndex((x) => x.name === g) === -1)
|
|
2308
|
+
continue;
|
|
2309
|
+
const m = s[c].value;
|
|
2310
|
+
u.push({
|
|
2311
|
+
name: g,
|
|
2312
|
+
value: m
|
|
2313
|
+
});
|
|
2314
|
+
}
|
|
2315
|
+
return u;
|
|
2316
|
+
},
|
|
2317
|
+
[e]
|
|
2318
|
+
), n = R.useCallback(
|
|
2319
|
+
(o) => {
|
|
2320
|
+
o.preventDefault();
|
|
2321
|
+
const l = a(o);
|
|
2322
|
+
e?.(l);
|
|
2323
|
+
},
|
|
2324
|
+
[e]
|
|
2325
|
+
);
|
|
2326
|
+
return {
|
|
2327
|
+
ref: r,
|
|
2328
|
+
submitForm: (o) => {
|
|
2329
|
+
o.preventDefault(), o.stopPropagation(), r.current && r.current.requestSubmit();
|
|
2330
|
+
},
|
|
2331
|
+
handleFormSubmission: n
|
|
2332
|
+
};
|
|
2333
|
+
}, ei = (e) => {
|
|
2334
|
+
const { fields: t, styles: r, submitButton: a } = e, { ref: n, handleFormSubmission: i, submitForm: o } = Yn(e), l = R.useCallback(() => t.map((s) => ({ ...s.content, key: s.name })), [t]);
|
|
2335
|
+
return /* @__PURE__ */ E.jsxs(
|
|
2336
|
+
"form",
|
|
2337
|
+
{
|
|
2338
|
+
ref: n,
|
|
2339
|
+
onSubmit: i,
|
|
2340
|
+
style: {
|
|
2341
|
+
width: "100%",
|
|
2342
|
+
display: "flex",
|
|
2343
|
+
flexDirection: "column",
|
|
2344
|
+
gap: "8px",
|
|
2345
|
+
flex: 1,
|
|
2346
|
+
...r
|
|
2347
|
+
},
|
|
2348
|
+
children: [
|
|
2349
|
+
l(),
|
|
2350
|
+
/* @__PURE__ */ E.jsx(
|
|
2351
|
+
"div",
|
|
2352
|
+
{
|
|
2353
|
+
onClick: o,
|
|
2354
|
+
style: {
|
|
2355
|
+
display: "flex",
|
|
2356
|
+
width: "100%",
|
|
2357
|
+
alignItems: "center",
|
|
2358
|
+
justifyContent: "center",
|
|
2359
|
+
...a.styles
|
|
2360
|
+
},
|
|
2361
|
+
children: a.content
|
|
2362
|
+
}
|
|
2363
|
+
)
|
|
2364
|
+
]
|
|
2365
|
+
}
|
|
2366
|
+
);
|
|
2367
|
+
}, ti = ({ src: e, alt: t = "", onClick: r, styles: a }) => /* @__PURE__ */ E.jsx(
|
|
2368
|
+
"img",
|
|
2369
|
+
{
|
|
2370
|
+
src: e,
|
|
2371
|
+
alt: t,
|
|
2372
|
+
style: {
|
|
2373
|
+
overflow: "hidden",
|
|
2374
|
+
position: "relative",
|
|
2375
|
+
display: "flex",
|
|
2376
|
+
flexDirection: "column",
|
|
2377
|
+
alignItems: "center",
|
|
2378
|
+
justifyContent: "center",
|
|
2379
|
+
objectFit: "cover",
|
|
2380
|
+
...a
|
|
2381
|
+
},
|
|
2382
|
+
onClick: () => r?.()
|
|
2383
|
+
}
|
|
2384
|
+
);
|
|
2385
|
+
function Ve() {
|
|
2386
|
+
return Ve = Object.assign ? Object.assign.bind() : function(e) {
|
|
2387
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2388
|
+
var r = arguments[t];
|
|
2389
|
+
for (var a in r) ({}).hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
|
2390
|
+
}
|
|
2391
|
+
return e;
|
|
2392
|
+
}, Ve.apply(null, arguments);
|
|
2393
|
+
}
|
|
2394
|
+
function qn(e) {
|
|
2395
|
+
if (e.sheet)
|
|
2396
|
+
return e.sheet;
|
|
2397
|
+
for (var t = 0; t < document.styleSheets.length; t++)
|
|
2398
|
+
if (document.styleSheets[t].ownerNode === e)
|
|
2399
|
+
return document.styleSheets[t];
|
|
2400
|
+
}
|
|
2401
|
+
function Xn(e) {
|
|
2402
|
+
var t = document.createElement("style");
|
|
2403
|
+
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
2404
|
+
}
|
|
2405
|
+
var Gn = /* @__PURE__ */ function() {
|
|
2406
|
+
function e(r) {
|
|
2407
|
+
var a = this;
|
|
2408
|
+
this._insertTag = function(n) {
|
|
2409
|
+
var i;
|
|
2410
|
+
a.tags.length === 0 ? a.insertionPoint ? i = a.insertionPoint.nextSibling : a.prepend ? i = a.container.firstChild : i = a.before : i = a.tags[a.tags.length - 1].nextSibling, a.container.insertBefore(n, i), a.tags.push(n);
|
|
2411
|
+
}, this.isSpeedy = r.speedy === void 0 ? !0 : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
|
|
2412
|
+
}
|
|
2413
|
+
var t = e.prototype;
|
|
2414
|
+
return t.hydrate = function(a) {
|
|
2415
|
+
a.forEach(this._insertTag);
|
|
2416
|
+
}, t.insert = function(a) {
|
|
2417
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Xn(this));
|
|
2418
|
+
var n = this.tags[this.tags.length - 1];
|
|
2419
|
+
if (this.isSpeedy) {
|
|
2420
|
+
var i = qn(n);
|
|
2421
|
+
try {
|
|
2422
|
+
i.insertRule(a, i.cssRules.length);
|
|
2423
|
+
} catch {
|
|
2424
|
+
}
|
|
2425
|
+
} else
|
|
2426
|
+
n.appendChild(document.createTextNode(a));
|
|
2427
|
+
this.ctr++;
|
|
2428
|
+
}, t.flush = function() {
|
|
2429
|
+
this.tags.forEach(function(a) {
|
|
2430
|
+
var n;
|
|
2431
|
+
return (n = a.parentNode) == null ? void 0 : n.removeChild(a);
|
|
2432
|
+
}), this.tags = [], this.ctr = 0;
|
|
2433
|
+
}, e;
|
|
2434
|
+
}(), N = "-ms-", Ie = "-moz-", S = "-webkit-", Jt = "comm", tt = "rule", rt = "decl", Jn = "@import", Kt = "@keyframes", Kn = "@layer", Zn = Math.abs, _e = String.fromCharCode, Qn = Object.assign;
|
|
2435
|
+
function ea(e, t) {
|
|
2436
|
+
return D(e, 0) ^ 45 ? (((t << 2 ^ D(e, 0)) << 2 ^ D(e, 1)) << 2 ^ D(e, 2)) << 2 ^ D(e, 3) : 0;
|
|
2437
|
+
}
|
|
2438
|
+
function Zt(e) {
|
|
2439
|
+
return e.trim();
|
|
2440
|
+
}
|
|
2441
|
+
function ta(e, t) {
|
|
2442
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
2443
|
+
}
|
|
2444
|
+
function P(e, t, r) {
|
|
2445
|
+
return e.replace(t, r);
|
|
2446
|
+
}
|
|
2447
|
+
function Ye(e, t) {
|
|
2448
|
+
return e.indexOf(t);
|
|
2449
|
+
}
|
|
2450
|
+
function D(e, t) {
|
|
2451
|
+
return e.charCodeAt(t) | 0;
|
|
2452
|
+
}
|
|
2453
|
+
function he(e, t, r) {
|
|
2454
|
+
return e.slice(t, r);
|
|
2455
|
+
}
|
|
2456
|
+
function V(e) {
|
|
2457
|
+
return e.length;
|
|
2458
|
+
}
|
|
2459
|
+
function nt(e) {
|
|
2460
|
+
return e.length;
|
|
2461
|
+
}
|
|
2462
|
+
function Re(e, t) {
|
|
2463
|
+
return t.push(e), e;
|
|
2464
|
+
}
|
|
2465
|
+
function ra(e, t) {
|
|
2466
|
+
return e.map(t).join("");
|
|
2467
|
+
}
|
|
2468
|
+
var $e = 1, ne = 1, Qt = 0, H = 0, _ = 0, oe = "";
|
|
2469
|
+
function De(e, t, r, a, n, i, o) {
|
|
2470
|
+
return { value: e, root: t, parent: r, type: a, props: n, children: i, line: $e, column: ne, length: o, return: "" };
|
|
2471
|
+
}
|
|
2472
|
+
function fe(e, t) {
|
|
2473
|
+
return Qn(De("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
2474
|
+
}
|
|
2475
|
+
function na() {
|
|
2476
|
+
return _;
|
|
2477
|
+
}
|
|
2478
|
+
function aa() {
|
|
2479
|
+
return _ = H > 0 ? D(oe, --H) : 0, ne--, _ === 10 && (ne = 1, $e--), _;
|
|
2480
|
+
}
|
|
2481
|
+
function U() {
|
|
2482
|
+
return _ = H < Qt ? D(oe, H++) : 0, ne++, _ === 10 && (ne = 1, $e++), _;
|
|
2483
|
+
}
|
|
2484
|
+
function q() {
|
|
2485
|
+
return D(oe, H);
|
|
2486
|
+
}
|
|
2487
|
+
function Ee() {
|
|
2488
|
+
return H;
|
|
2489
|
+
}
|
|
2490
|
+
function xe(e, t) {
|
|
2491
|
+
return he(oe, e, t);
|
|
2492
|
+
}
|
|
2493
|
+
function pe(e) {
|
|
2494
|
+
switch (e) {
|
|
2495
|
+
// \0 \t \n \r \s whitespace token
|
|
2496
|
+
case 0:
|
|
2497
|
+
case 9:
|
|
2498
|
+
case 10:
|
|
2499
|
+
case 13:
|
|
2500
|
+
case 32:
|
|
2501
|
+
return 5;
|
|
2502
|
+
// ! + , / > @ ~ isolate token
|
|
2503
|
+
case 33:
|
|
2504
|
+
case 43:
|
|
2505
|
+
case 44:
|
|
2506
|
+
case 47:
|
|
2507
|
+
case 62:
|
|
2508
|
+
case 64:
|
|
2509
|
+
case 126:
|
|
2510
|
+
// ; { } breakpoint token
|
|
2511
|
+
case 59:
|
|
2512
|
+
case 123:
|
|
2513
|
+
case 125:
|
|
2514
|
+
return 4;
|
|
2515
|
+
// : accompanied token
|
|
2516
|
+
case 58:
|
|
2517
|
+
return 3;
|
|
2518
|
+
// " ' ( [ opening delimit token
|
|
2519
|
+
case 34:
|
|
2520
|
+
case 39:
|
|
2521
|
+
case 40:
|
|
2522
|
+
case 91:
|
|
2523
|
+
return 2;
|
|
2524
|
+
// ) ] closing delimit token
|
|
2525
|
+
case 41:
|
|
2526
|
+
case 93:
|
|
2527
|
+
return 1;
|
|
2528
|
+
}
|
|
2529
|
+
return 0;
|
|
2530
|
+
}
|
|
2531
|
+
function er(e) {
|
|
2532
|
+
return $e = ne = 1, Qt = V(oe = e), H = 0, [];
|
|
2533
|
+
}
|
|
2534
|
+
function tr(e) {
|
|
2535
|
+
return oe = "", e;
|
|
2536
|
+
}
|
|
2537
|
+
function Se(e) {
|
|
2538
|
+
return Zt(xe(H - 1, qe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
2539
|
+
}
|
|
2540
|
+
function ia(e) {
|
|
2541
|
+
for (; (_ = q()) && _ < 33; )
|
|
2542
|
+
U();
|
|
2543
|
+
return pe(e) > 2 || pe(_) > 3 ? "" : " ";
|
|
2544
|
+
}
|
|
2545
|
+
function oa(e, t) {
|
|
2546
|
+
for (; --t && U() && !(_ < 48 || _ > 102 || _ > 57 && _ < 65 || _ > 70 && _ < 97); )
|
|
2547
|
+
;
|
|
2548
|
+
return xe(e, Ee() + (t < 6 && q() == 32 && U() == 32));
|
|
2549
|
+
}
|
|
2550
|
+
function qe(e) {
|
|
2551
|
+
for (; U(); )
|
|
2552
|
+
switch (_) {
|
|
2553
|
+
// ] ) " '
|
|
2554
|
+
case e:
|
|
2555
|
+
return H;
|
|
2556
|
+
// " '
|
|
2557
|
+
case 34:
|
|
2558
|
+
case 39:
|
|
2559
|
+
e !== 34 && e !== 39 && qe(_);
|
|
2560
|
+
break;
|
|
2561
|
+
// (
|
|
2562
|
+
case 40:
|
|
2563
|
+
e === 41 && qe(e);
|
|
2564
|
+
break;
|
|
2565
|
+
// \
|
|
2566
|
+
case 92:
|
|
2567
|
+
U();
|
|
2568
|
+
break;
|
|
2569
|
+
}
|
|
2570
|
+
return H;
|
|
2571
|
+
}
|
|
2572
|
+
function sa(e, t) {
|
|
2573
|
+
for (; U() && e + _ !== 57; )
|
|
2574
|
+
if (e + _ === 84 && q() === 47)
|
|
2575
|
+
break;
|
|
2576
|
+
return "/*" + xe(t, H - 1) + "*" + _e(e === 47 ? e : U());
|
|
2577
|
+
}
|
|
2578
|
+
function la(e) {
|
|
2579
|
+
for (; !pe(q()); )
|
|
2580
|
+
U();
|
|
2581
|
+
return xe(e, H);
|
|
2582
|
+
}
|
|
2583
|
+
function ua(e) {
|
|
2584
|
+
return tr(Pe("", null, null, null, [""], e = er(e), 0, [0], e));
|
|
2585
|
+
}
|
|
2586
|
+
function Pe(e, t, r, a, n, i, o, l, s) {
|
|
2587
|
+
for (var u = 0, c = 0, g = o, m = 0, x = 0, f = 0, h = 1, v = 1, d = 1, b = 0, w = "", T = n, I = i, A = a, C = w; v; )
|
|
2588
|
+
switch (f = b, b = U()) {
|
|
2589
|
+
// (
|
|
2590
|
+
case 40:
|
|
2591
|
+
if (f != 108 && D(C, g - 1) == 58) {
|
|
2592
|
+
Ye(C += P(Se(b), "&", "&\f"), "&\f") != -1 && (d = -1);
|
|
2593
|
+
break;
|
|
2594
|
+
}
|
|
2595
|
+
// " ' [
|
|
2596
|
+
case 34:
|
|
2597
|
+
case 39:
|
|
2598
|
+
case 91:
|
|
2599
|
+
C += Se(b);
|
|
2600
|
+
break;
|
|
2601
|
+
// \t \n \r \s
|
|
2602
|
+
case 9:
|
|
2603
|
+
case 10:
|
|
2604
|
+
case 13:
|
|
2605
|
+
case 32:
|
|
2606
|
+
C += ia(f);
|
|
2607
|
+
break;
|
|
2608
|
+
// \
|
|
2609
|
+
case 92:
|
|
2610
|
+
C += oa(Ee() - 1, 7);
|
|
2611
|
+
continue;
|
|
2612
|
+
// /
|
|
2613
|
+
case 47:
|
|
2614
|
+
switch (q()) {
|
|
2615
|
+
case 42:
|
|
2616
|
+
case 47:
|
|
2617
|
+
Re(ca(sa(U(), Ee()), t, r), s);
|
|
2618
|
+
break;
|
|
2619
|
+
default:
|
|
2620
|
+
C += "/";
|
|
2621
|
+
}
|
|
2622
|
+
break;
|
|
2623
|
+
// {
|
|
2624
|
+
case 123 * h:
|
|
2625
|
+
l[u++] = V(C) * d;
|
|
2626
|
+
// } ; \0
|
|
2627
|
+
case 125 * h:
|
|
2628
|
+
case 59:
|
|
2629
|
+
case 0:
|
|
2630
|
+
switch (b) {
|
|
2631
|
+
// \0 }
|
|
2632
|
+
case 0:
|
|
2633
|
+
case 125:
|
|
2634
|
+
v = 0;
|
|
2635
|
+
// ;
|
|
2636
|
+
case 59 + c:
|
|
2637
|
+
d == -1 && (C = P(C, /\f/g, "")), x > 0 && V(C) - g && Re(x > 32 ? wt(C + ";", a, r, g - 1) : wt(P(C, " ", "") + ";", a, r, g - 2), s);
|
|
2638
|
+
break;
|
|
2639
|
+
// @ ;
|
|
2640
|
+
case 59:
|
|
2641
|
+
C += ";";
|
|
2642
|
+
// { rule/at-rule
|
|
2643
|
+
default:
|
|
2644
|
+
if (Re(A = bt(C, t, r, u, c, n, l, w, T = [], I = [], g), i), b === 123)
|
|
2645
|
+
if (c === 0)
|
|
2646
|
+
Pe(C, t, A, A, T, i, g, l, I);
|
|
2647
|
+
else
|
|
2648
|
+
switch (m === 99 && D(C, 3) === 110 ? 100 : m) {
|
|
2649
|
+
// d l m s
|
|
2650
|
+
case 100:
|
|
2651
|
+
case 108:
|
|
2652
|
+
case 109:
|
|
2653
|
+
case 115:
|
|
2654
|
+
Pe(e, A, A, a && Re(bt(e, A, A, 0, 0, n, l, w, n, T = [], g), I), n, I, g, l, a ? T : I);
|
|
2655
|
+
break;
|
|
2656
|
+
default:
|
|
2657
|
+
Pe(C, A, A, A, [""], I, 0, l, I);
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
u = c = x = 0, h = d = 1, w = C = "", g = o;
|
|
2661
|
+
break;
|
|
2662
|
+
// :
|
|
2663
|
+
case 58:
|
|
2664
|
+
g = 1 + V(C), x = f;
|
|
2665
|
+
default:
|
|
2666
|
+
if (h < 1) {
|
|
2667
|
+
if (b == 123)
|
|
2668
|
+
--h;
|
|
2669
|
+
else if (b == 125 && h++ == 0 && aa() == 125)
|
|
2670
|
+
continue;
|
|
2671
|
+
}
|
|
2672
|
+
switch (C += _e(b), b * h) {
|
|
2673
|
+
// &
|
|
2674
|
+
case 38:
|
|
2675
|
+
d = c > 0 ? 1 : (C += "\f", -1);
|
|
2676
|
+
break;
|
|
2677
|
+
// ,
|
|
2678
|
+
case 44:
|
|
2679
|
+
l[u++] = (V(C) - 1) * d, d = 1;
|
|
2680
|
+
break;
|
|
2681
|
+
// @
|
|
2682
|
+
case 64:
|
|
2683
|
+
q() === 45 && (C += Se(U())), m = q(), c = g = V(w = C += la(Ee())), b++;
|
|
2684
|
+
break;
|
|
2685
|
+
// -
|
|
2686
|
+
case 45:
|
|
2687
|
+
f === 45 && V(C) == 2 && (h = 0);
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
return i;
|
|
2691
|
+
}
|
|
2692
|
+
function bt(e, t, r, a, n, i, o, l, s, u, c) {
|
|
2693
|
+
for (var g = n - 1, m = n === 0 ? i : [""], x = nt(m), f = 0, h = 0, v = 0; f < a; ++f)
|
|
2694
|
+
for (var d = 0, b = he(e, g + 1, g = Zn(h = o[f])), w = e; d < x; ++d)
|
|
2695
|
+
(w = Zt(h > 0 ? m[d] + " " + b : P(b, /&\f/g, m[d]))) && (s[v++] = w);
|
|
2696
|
+
return De(e, t, r, n === 0 ? tt : l, s, u, c);
|
|
2697
|
+
}
|
|
2698
|
+
function ca(e, t, r) {
|
|
2699
|
+
return De(e, t, r, Jt, _e(na()), he(e, 2, -2), 0);
|
|
2700
|
+
}
|
|
2701
|
+
function wt(e, t, r, a) {
|
|
2702
|
+
return De(e, t, r, rt, he(e, 0, a), he(e, a + 1, -1), a);
|
|
2703
|
+
}
|
|
2704
|
+
function re(e, t) {
|
|
2705
|
+
for (var r = "", a = nt(e), n = 0; n < a; n++)
|
|
2706
|
+
r += t(e[n], n, e, t) || "";
|
|
2707
|
+
return r;
|
|
2708
|
+
}
|
|
2709
|
+
function fa(e, t, r, a) {
|
|
2710
|
+
switch (e.type) {
|
|
2711
|
+
case Kn:
|
|
2712
|
+
if (e.children.length) break;
|
|
2713
|
+
case Jn:
|
|
2714
|
+
case rt:
|
|
2715
|
+
return e.return = e.return || e.value;
|
|
2716
|
+
case Jt:
|
|
2717
|
+
return "";
|
|
2718
|
+
case Kt:
|
|
2719
|
+
return e.return = e.value + "{" + re(e.children, a) + "}";
|
|
2720
|
+
case tt:
|
|
2721
|
+
e.value = e.props.join(",");
|
|
2722
|
+
}
|
|
2723
|
+
return V(r = re(e.children, a)) ? e.return = e.value + "{" + r + "}" : "";
|
|
2724
|
+
}
|
|
2725
|
+
function da(e) {
|
|
2726
|
+
var t = nt(e);
|
|
2727
|
+
return function(r, a, n, i) {
|
|
2728
|
+
for (var o = "", l = 0; l < t; l++)
|
|
2729
|
+
o += e[l](r, a, n, i) || "";
|
|
2730
|
+
return o;
|
|
2731
|
+
};
|
|
2732
|
+
}
|
|
2733
|
+
function ha(e) {
|
|
2734
|
+
return function(t) {
|
|
2735
|
+
t.root || (t = t.return) && e(t);
|
|
2736
|
+
};
|
|
2737
|
+
}
|
|
2738
|
+
function rr(e) {
|
|
2739
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
2740
|
+
return function(r) {
|
|
2741
|
+
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
2742
|
+
};
|
|
2743
|
+
}
|
|
2744
|
+
var pa = function(t, r, a) {
|
|
2745
|
+
for (var n = 0, i = 0; n = i, i = q(), n === 38 && i === 12 && (r[a] = 1), !pe(i); )
|
|
2746
|
+
U();
|
|
2747
|
+
return xe(t, H);
|
|
2748
|
+
}, ma = function(t, r) {
|
|
2749
|
+
var a = -1, n = 44;
|
|
2750
|
+
do
|
|
2751
|
+
switch (pe(n)) {
|
|
2752
|
+
case 0:
|
|
2753
|
+
n === 38 && q() === 12 && (r[a] = 1), t[a] += pa(H - 1, r, a);
|
|
2754
|
+
break;
|
|
2755
|
+
case 2:
|
|
2756
|
+
t[a] += Se(n);
|
|
2757
|
+
break;
|
|
2758
|
+
case 4:
|
|
2759
|
+
if (n === 44) {
|
|
2760
|
+
t[++a] = q() === 58 ? "&\f" : "", r[a] = t[a].length;
|
|
2761
|
+
break;
|
|
2762
|
+
}
|
|
2763
|
+
// fallthrough
|
|
2764
|
+
default:
|
|
2765
|
+
t[a] += _e(n);
|
|
2766
|
+
}
|
|
2767
|
+
while (n = U());
|
|
2768
|
+
return t;
|
|
2769
|
+
}, ga = function(t, r) {
|
|
2770
|
+
return tr(ma(er(t), r));
|
|
2771
|
+
}, Rt = /* @__PURE__ */ new WeakMap(), ya = function(t) {
|
|
2772
|
+
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
2773
|
+
// negative .length indicates that this rule has been already prefixed
|
|
2774
|
+
t.length < 1)) {
|
|
2775
|
+
for (var r = t.value, a = t.parent, n = t.column === a.column && t.line === a.line; a.type !== "rule"; )
|
|
2776
|
+
if (a = a.parent, !a) return;
|
|
2777
|
+
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Rt.get(a)) && !n) {
|
|
2778
|
+
Rt.set(t, !0);
|
|
2779
|
+
for (var i = [], o = ga(r, i), l = a.props, s = 0, u = 0; s < o.length; s++)
|
|
2780
|
+
for (var c = 0; c < l.length; c++, u++)
|
|
2781
|
+
t.props[u] = i[s] ? o[s].replace(/&\f/g, l[c]) : l[c] + " " + o[s];
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
}, va = function(t) {
|
|
2785
|
+
if (t.type === "decl") {
|
|
2786
|
+
var r = t.value;
|
|
2787
|
+
// charcode for l
|
|
2788
|
+
r.charCodeAt(0) === 108 && // charcode for b
|
|
2789
|
+
r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
2790
|
+
}
|
|
2791
|
+
};
|
|
2792
|
+
function nr(e, t) {
|
|
2793
|
+
switch (ea(e, t)) {
|
|
2794
|
+
// color-adjust
|
|
2795
|
+
case 5103:
|
|
2796
|
+
return S + "print-" + e + e;
|
|
2797
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
2798
|
+
case 5737:
|
|
2799
|
+
case 4201:
|
|
2800
|
+
case 3177:
|
|
2801
|
+
case 3433:
|
|
2802
|
+
case 1641:
|
|
2803
|
+
case 4457:
|
|
2804
|
+
case 2921:
|
|
2805
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
2806
|
+
case 5572:
|
|
2807
|
+
case 6356:
|
|
2808
|
+
case 5844:
|
|
2809
|
+
case 3191:
|
|
2810
|
+
case 6645:
|
|
2811
|
+
case 3005:
|
|
2812
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
2813
|
+
case 6391:
|
|
2814
|
+
case 5879:
|
|
2815
|
+
case 5623:
|
|
2816
|
+
case 6135:
|
|
2817
|
+
case 4599:
|
|
2818
|
+
case 4855:
|
|
2819
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
2820
|
+
case 4215:
|
|
2821
|
+
case 6389:
|
|
2822
|
+
case 5109:
|
|
2823
|
+
case 5365:
|
|
2824
|
+
case 5621:
|
|
2825
|
+
case 3829:
|
|
2826
|
+
return S + e + e;
|
|
2827
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
2828
|
+
case 5349:
|
|
2829
|
+
case 4246:
|
|
2830
|
+
case 4810:
|
|
2831
|
+
case 6968:
|
|
2832
|
+
case 2756:
|
|
2833
|
+
return S + e + Ie + e + N + e + e;
|
|
2834
|
+
// flex, flex-direction
|
|
2835
|
+
case 6828:
|
|
2836
|
+
case 4268:
|
|
2837
|
+
return S + e + N + e + e;
|
|
2838
|
+
// order
|
|
2839
|
+
case 6165:
|
|
2840
|
+
return S + e + N + "flex-" + e + e;
|
|
2841
|
+
// align-items
|
|
2842
|
+
case 5187:
|
|
2843
|
+
return S + e + P(e, /(\w+).+(:[^]+)/, S + "box-$1$2" + N + "flex-$1$2") + e;
|
|
2844
|
+
// align-self
|
|
2845
|
+
case 5443:
|
|
2846
|
+
return S + e + N + "flex-item-" + P(e, /flex-|-self/, "") + e;
|
|
2847
|
+
// align-content
|
|
2848
|
+
case 4675:
|
|
2849
|
+
return S + e + N + "flex-line-pack" + P(e, /align-content|flex-|-self/, "") + e;
|
|
2850
|
+
// flex-shrink
|
|
2851
|
+
case 5548:
|
|
2852
|
+
return S + e + N + P(e, "shrink", "negative") + e;
|
|
2853
|
+
// flex-basis
|
|
2854
|
+
case 5292:
|
|
2855
|
+
return S + e + N + P(e, "basis", "preferred-size") + e;
|
|
2856
|
+
// flex-grow
|
|
2857
|
+
case 6060:
|
|
2858
|
+
return S + "box-" + P(e, "-grow", "") + S + e + N + P(e, "grow", "positive") + e;
|
|
2859
|
+
// transition
|
|
2860
|
+
case 4554:
|
|
2861
|
+
return S + P(e, /([^-])(transform)/g, "$1" + S + "$2") + e;
|
|
2862
|
+
// cursor
|
|
2863
|
+
case 6187:
|
|
2864
|
+
return P(P(P(e, /(zoom-|grab)/, S + "$1"), /(image-set)/, S + "$1"), e, "") + e;
|
|
2865
|
+
// background, background-image
|
|
2866
|
+
case 5495:
|
|
2867
|
+
case 3959:
|
|
2868
|
+
return P(e, /(image-set\([^]*)/, S + "$1$`$1");
|
|
2869
|
+
// justify-content
|
|
2870
|
+
case 4968:
|
|
2871
|
+
return P(P(e, /(.+:)(flex-)?(.*)/, S + "box-pack:$3" + N + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + S + e + e;
|
|
2872
|
+
// (margin|padding)-inline-(start|end)
|
|
2873
|
+
case 4095:
|
|
2874
|
+
case 3583:
|
|
2875
|
+
case 4068:
|
|
2876
|
+
case 2532:
|
|
2877
|
+
return P(e, /(.+)-inline(.+)/, S + "$1$2") + e;
|
|
2878
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
2879
|
+
case 8116:
|
|
2880
|
+
case 7059:
|
|
2881
|
+
case 5753:
|
|
2882
|
+
case 5535:
|
|
2883
|
+
case 5445:
|
|
2884
|
+
case 5701:
|
|
2885
|
+
case 4933:
|
|
2886
|
+
case 4677:
|
|
2887
|
+
case 5533:
|
|
2888
|
+
case 5789:
|
|
2889
|
+
case 5021:
|
|
2890
|
+
case 4765:
|
|
2891
|
+
if (V(e) - 1 - t > 6) switch (D(e, t + 1)) {
|
|
2892
|
+
// (m)ax-content, (m)in-content
|
|
2893
|
+
case 109:
|
|
2894
|
+
if (D(e, t + 4) !== 45) break;
|
|
2895
|
+
// (f)ill-available, (f)it-content
|
|
2896
|
+
case 102:
|
|
2897
|
+
return P(e, /(.+:)(.+)-([^]+)/, "$1" + S + "$2-$3$1" + Ie + (D(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
2898
|
+
// (s)tretch
|
|
2899
|
+
case 115:
|
|
2900
|
+
return ~Ye(e, "stretch") ? nr(P(e, "stretch", "fill-available"), t) + e : e;
|
|
2901
|
+
}
|
|
2902
|
+
break;
|
|
2903
|
+
// position: sticky
|
|
2904
|
+
case 4949:
|
|
2905
|
+
if (D(e, t + 1) !== 115) break;
|
|
2906
|
+
// display: (flex|inline-flex)
|
|
2907
|
+
case 6444:
|
|
2908
|
+
switch (D(e, V(e) - 3 - (~Ye(e, "!important") && 10))) {
|
|
2909
|
+
// stic(k)y
|
|
2910
|
+
case 107:
|
|
2911
|
+
return P(e, ":", ":" + S) + e;
|
|
2912
|
+
// (inline-)?fl(e)x
|
|
2913
|
+
case 101:
|
|
2914
|
+
return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + S + (D(e, 14) === 45 ? "inline-" : "") + "box$3$1" + S + "$2$3$1" + N + "$2box$3") + e;
|
|
2915
|
+
}
|
|
2916
|
+
break;
|
|
2917
|
+
// writing-mode
|
|
2918
|
+
case 5936:
|
|
2919
|
+
switch (D(e, t + 11)) {
|
|
2920
|
+
// vertical-l(r)
|
|
2921
|
+
case 114:
|
|
2922
|
+
return S + e + N + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
2923
|
+
// vertical-r(l)
|
|
2924
|
+
case 108:
|
|
2925
|
+
return S + e + N + P(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
2926
|
+
// horizontal(-)tb
|
|
2927
|
+
case 45:
|
|
2928
|
+
return S + e + N + P(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
2929
|
+
}
|
|
2930
|
+
return S + e + N + e + e;
|
|
2931
|
+
}
|
|
2932
|
+
return e;
|
|
2933
|
+
}
|
|
2934
|
+
var xa = function(t, r, a, n) {
|
|
2935
|
+
if (t.length > -1 && !t.return) switch (t.type) {
|
|
2936
|
+
case rt:
|
|
2937
|
+
t.return = nr(t.value, t.length);
|
|
2938
|
+
break;
|
|
2939
|
+
case Kt:
|
|
2940
|
+
return re([fe(t, {
|
|
2941
|
+
value: P(t.value, "@", "@" + S)
|
|
2942
|
+
})], n);
|
|
2943
|
+
case tt:
|
|
2944
|
+
if (t.length) return ra(t.props, function(i) {
|
|
2945
|
+
switch (ta(i, /(::plac\w+|:read-\w+)/)) {
|
|
2946
|
+
// :read-(only|write)
|
|
2947
|
+
case ":read-only":
|
|
2948
|
+
case ":read-write":
|
|
2949
|
+
return re([fe(t, {
|
|
2950
|
+
props: [P(i, /:(read-\w+)/, ":" + Ie + "$1")]
|
|
2951
|
+
})], n);
|
|
2952
|
+
// :placeholder
|
|
2953
|
+
case "::placeholder":
|
|
2954
|
+
return re([fe(t, {
|
|
2955
|
+
props: [P(i, /:(plac\w+)/, ":" + S + "input-$1")]
|
|
2956
|
+
}), fe(t, {
|
|
2957
|
+
props: [P(i, /:(plac\w+)/, ":" + Ie + "$1")]
|
|
2958
|
+
}), fe(t, {
|
|
2959
|
+
props: [P(i, /:(plac\w+)/, N + "input-$1")]
|
|
2960
|
+
})], n);
|
|
2961
|
+
}
|
|
2962
|
+
return "";
|
|
2963
|
+
});
|
|
2964
|
+
}
|
|
2965
|
+
}, ba = [xa], wa = function(t) {
|
|
2966
|
+
var r = t.key;
|
|
2967
|
+
if (r === "css") {
|
|
2968
|
+
var a = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
2969
|
+
Array.prototype.forEach.call(a, function(h) {
|
|
2970
|
+
var v = h.getAttribute("data-emotion");
|
|
2971
|
+
v.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
|
|
2972
|
+
});
|
|
2973
|
+
}
|
|
2974
|
+
var n = t.stylisPlugins || ba, i = {}, o, l = [];
|
|
2975
|
+
o = t.container || document.head, Array.prototype.forEach.call(
|
|
2976
|
+
// this means we will ignore elements which don't have a space in them which
|
|
2977
|
+
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
2978
|
+
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
2979
|
+
function(h) {
|
|
2980
|
+
for (var v = h.getAttribute("data-emotion").split(" "), d = 1; d < v.length; d++)
|
|
2981
|
+
i[v[d]] = !0;
|
|
2982
|
+
l.push(h);
|
|
2983
|
+
}
|
|
2984
|
+
);
|
|
2985
|
+
var s, u = [ya, va];
|
|
2986
|
+
{
|
|
2987
|
+
var c, g = [fa, ha(function(h) {
|
|
2988
|
+
c.insert(h);
|
|
2989
|
+
})], m = da(u.concat(n, g)), x = function(v) {
|
|
2990
|
+
return re(ua(v), m);
|
|
2991
|
+
};
|
|
2992
|
+
s = function(v, d, b, w) {
|
|
2993
|
+
c = b, x(v ? v + "{" + d.styles + "}" : d.styles), w && (f.inserted[d.name] = !0);
|
|
2994
|
+
};
|
|
2995
|
+
}
|
|
2996
|
+
var f = {
|
|
2997
|
+
key: r,
|
|
2998
|
+
sheet: new Gn({
|
|
2999
|
+
key: r,
|
|
3000
|
+
container: o,
|
|
3001
|
+
nonce: t.nonce,
|
|
3002
|
+
speedy: t.speedy,
|
|
3003
|
+
prepend: t.prepend,
|
|
3004
|
+
insertionPoint: t.insertionPoint
|
|
3005
|
+
}),
|
|
3006
|
+
nonce: t.nonce,
|
|
3007
|
+
inserted: i,
|
|
3008
|
+
registered: {},
|
|
3009
|
+
insert: s
|
|
3010
|
+
};
|
|
3011
|
+
return f.sheet.hydrate(l), f;
|
|
3012
|
+
}, Ra = !0;
|
|
3013
|
+
function Ca(e, t, r) {
|
|
3014
|
+
var a = "";
|
|
3015
|
+
return r.split(" ").forEach(function(n) {
|
|
3016
|
+
e[n] !== void 0 ? t.push(e[n] + ";") : n && (a += n + " ");
|
|
3017
|
+
}), a;
|
|
3018
|
+
}
|
|
3019
|
+
var ar = function(t, r, a) {
|
|
3020
|
+
var n = t.key + "-" + r.name;
|
|
3021
|
+
// we only need to add the styles to the registered cache if the
|
|
3022
|
+
// class name could be used further down
|
|
3023
|
+
// the tree but if it's a string tag, we know it won't
|
|
3024
|
+
// so we don't have to add it to registered cache.
|
|
3025
|
+
// this improves memory usage since we can avoid storing the whole style string
|
|
3026
|
+
(a === !1 || // we need to always store it if we're in compat mode and
|
|
3027
|
+
// in node since emotion-server relies on whether a style is in
|
|
3028
|
+
// the registered cache to know whether a style is global or not
|
|
3029
|
+
// also, note that this check will be dead code eliminated in the browser
|
|
3030
|
+
Ra === !1) && t.registered[n] === void 0 && (t.registered[n] = r.styles);
|
|
3031
|
+
}, ka = function(t, r, a) {
|
|
3032
|
+
ar(t, r, a);
|
|
3033
|
+
var n = t.key + "-" + r.name;
|
|
3034
|
+
if (t.inserted[r.name] === void 0) {
|
|
3035
|
+
var i = r;
|
|
3036
|
+
do
|
|
3037
|
+
t.insert(r === i ? "." + n : "", i, t.sheet, !0), i = i.next;
|
|
3038
|
+
while (i !== void 0);
|
|
3039
|
+
}
|
|
3040
|
+
};
|
|
3041
|
+
function Ea(e) {
|
|
3042
|
+
for (var t = 0, r, a = 0, n = e.length; n >= 4; ++a, n -= 4)
|
|
3043
|
+
r = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, r = /* Math.imul(k, m): */
|
|
3044
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
3045
|
+
r >>> 24, t = /* Math.imul(k, m): */
|
|
3046
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
3047
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
3048
|
+
switch (n) {
|
|
3049
|
+
case 3:
|
|
3050
|
+
t ^= (e.charCodeAt(a + 2) & 255) << 16;
|
|
3051
|
+
case 2:
|
|
3052
|
+
t ^= (e.charCodeAt(a + 1) & 255) << 8;
|
|
3053
|
+
case 1:
|
|
3054
|
+
t ^= e.charCodeAt(a) & 255, t = /* Math.imul(h, m): */
|
|
3055
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
3056
|
+
}
|
|
3057
|
+
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
3058
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
3059
|
+
}
|
|
3060
|
+
var Sa = {
|
|
3061
|
+
animationIterationCount: 1,
|
|
3062
|
+
aspectRatio: 1,
|
|
3063
|
+
borderImageOutset: 1,
|
|
3064
|
+
borderImageSlice: 1,
|
|
3065
|
+
borderImageWidth: 1,
|
|
3066
|
+
boxFlex: 1,
|
|
3067
|
+
boxFlexGroup: 1,
|
|
3068
|
+
boxOrdinalGroup: 1,
|
|
3069
|
+
columnCount: 1,
|
|
3070
|
+
columns: 1,
|
|
3071
|
+
flex: 1,
|
|
3072
|
+
flexGrow: 1,
|
|
3073
|
+
flexPositive: 1,
|
|
3074
|
+
flexShrink: 1,
|
|
3075
|
+
flexNegative: 1,
|
|
3076
|
+
flexOrder: 1,
|
|
3077
|
+
gridRow: 1,
|
|
3078
|
+
gridRowEnd: 1,
|
|
3079
|
+
gridRowSpan: 1,
|
|
3080
|
+
gridRowStart: 1,
|
|
3081
|
+
gridColumn: 1,
|
|
3082
|
+
gridColumnEnd: 1,
|
|
3083
|
+
gridColumnSpan: 1,
|
|
3084
|
+
gridColumnStart: 1,
|
|
3085
|
+
msGridRow: 1,
|
|
3086
|
+
msGridRowSpan: 1,
|
|
3087
|
+
msGridColumn: 1,
|
|
3088
|
+
msGridColumnSpan: 1,
|
|
3089
|
+
fontWeight: 1,
|
|
3090
|
+
lineHeight: 1,
|
|
3091
|
+
opacity: 1,
|
|
3092
|
+
order: 1,
|
|
3093
|
+
orphans: 1,
|
|
3094
|
+
scale: 1,
|
|
3095
|
+
tabSize: 1,
|
|
3096
|
+
widows: 1,
|
|
3097
|
+
zIndex: 1,
|
|
3098
|
+
zoom: 1,
|
|
3099
|
+
WebkitLineClamp: 1,
|
|
3100
|
+
// SVG-related properties
|
|
3101
|
+
fillOpacity: 1,
|
|
3102
|
+
floodOpacity: 1,
|
|
3103
|
+
stopOpacity: 1,
|
|
3104
|
+
strokeDasharray: 1,
|
|
3105
|
+
strokeDashoffset: 1,
|
|
3106
|
+
strokeMiterlimit: 1,
|
|
3107
|
+
strokeOpacity: 1,
|
|
3108
|
+
strokeWidth: 1
|
|
3109
|
+
}, Pa = /[A-Z]|^ms/g, Ta = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ir = function(t) {
|
|
3110
|
+
return t.charCodeAt(1) === 45;
|
|
3111
|
+
}, Ct = function(t) {
|
|
3112
|
+
return t != null && typeof t != "boolean";
|
|
3113
|
+
}, Ue = /* @__PURE__ */ rr(function(e) {
|
|
3114
|
+
return ir(e) ? e : e.replace(Pa, "-$&").toLowerCase();
|
|
3115
|
+
}), kt = function(t, r) {
|
|
3116
|
+
switch (t) {
|
|
3117
|
+
case "animation":
|
|
3118
|
+
case "animationName":
|
|
3119
|
+
if (typeof r == "string")
|
|
3120
|
+
return r.replace(Ta, function(a, n, i) {
|
|
3121
|
+
return Y = {
|
|
3122
|
+
name: n,
|
|
3123
|
+
styles: i,
|
|
3124
|
+
next: Y
|
|
3125
|
+
}, n;
|
|
3126
|
+
});
|
|
3127
|
+
}
|
|
3128
|
+
return Sa[t] !== 1 && !ir(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
3129
|
+
};
|
|
3130
|
+
function me(e, t, r) {
|
|
3131
|
+
if (r == null)
|
|
3132
|
+
return "";
|
|
3133
|
+
var a = r;
|
|
3134
|
+
if (a.__emotion_styles !== void 0)
|
|
3135
|
+
return a;
|
|
3136
|
+
switch (typeof r) {
|
|
3137
|
+
case "boolean":
|
|
3138
|
+
return "";
|
|
3139
|
+
case "object": {
|
|
3140
|
+
var n = r;
|
|
3141
|
+
if (n.anim === 1)
|
|
3142
|
+
return Y = {
|
|
3143
|
+
name: n.name,
|
|
3144
|
+
styles: n.styles,
|
|
3145
|
+
next: Y
|
|
3146
|
+
}, n.name;
|
|
3147
|
+
var i = r;
|
|
3148
|
+
if (i.styles !== void 0) {
|
|
3149
|
+
var o = i.next;
|
|
3150
|
+
if (o !== void 0)
|
|
3151
|
+
for (; o !== void 0; )
|
|
3152
|
+
Y = {
|
|
3153
|
+
name: o.name,
|
|
3154
|
+
styles: o.styles,
|
|
3155
|
+
next: Y
|
|
3156
|
+
}, o = o.next;
|
|
3157
|
+
var l = i.styles + ";";
|
|
3158
|
+
return l;
|
|
3159
|
+
}
|
|
3160
|
+
return Ia(e, t, r);
|
|
3161
|
+
}
|
|
3162
|
+
case "function": {
|
|
3163
|
+
if (e !== void 0) {
|
|
3164
|
+
var s = Y, u = r(e);
|
|
3165
|
+
return Y = s, me(e, t, u);
|
|
3166
|
+
}
|
|
3167
|
+
break;
|
|
3168
|
+
}
|
|
3169
|
+
}
|
|
3170
|
+
var c = r;
|
|
3171
|
+
if (t == null)
|
|
3172
|
+
return c;
|
|
3173
|
+
var g = t[c];
|
|
3174
|
+
return g !== void 0 ? g : c;
|
|
3175
|
+
}
|
|
3176
|
+
function Ia(e, t, r) {
|
|
3177
|
+
var a = "";
|
|
3178
|
+
if (Array.isArray(r))
|
|
3179
|
+
for (var n = 0; n < r.length; n++)
|
|
3180
|
+
a += me(e, t, r[n]) + ";";
|
|
3181
|
+
else
|
|
3182
|
+
for (var i in r) {
|
|
3183
|
+
var o = r[i];
|
|
3184
|
+
if (typeof o != "object") {
|
|
3185
|
+
var l = o;
|
|
3186
|
+
t != null && t[l] !== void 0 ? a += i + "{" + t[l] + "}" : Ct(l) && (a += Ue(i) + ":" + kt(i, l) + ";");
|
|
3187
|
+
} else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0))
|
|
3188
|
+
for (var s = 0; s < o.length; s++)
|
|
3189
|
+
Ct(o[s]) && (a += Ue(i) + ":" + kt(i, o[s]) + ";");
|
|
3190
|
+
else {
|
|
3191
|
+
var u = me(e, t, o);
|
|
3192
|
+
switch (i) {
|
|
3193
|
+
case "animation":
|
|
3194
|
+
case "animationName": {
|
|
3195
|
+
a += Ue(i) + ":" + u + ";";
|
|
3196
|
+
break;
|
|
3197
|
+
}
|
|
3198
|
+
default:
|
|
3199
|
+
a += i + "{" + u + "}";
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
return a;
|
|
3204
|
+
}
|
|
3205
|
+
var Et = /label:\s*([^\s;{]+)\s*(;|$)/g, Y;
|
|
3206
|
+
function Aa(e, t, r) {
|
|
3207
|
+
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
3208
|
+
return e[0];
|
|
3209
|
+
var a = !0, n = "";
|
|
3210
|
+
Y = void 0;
|
|
3211
|
+
var i = e[0];
|
|
3212
|
+
if (i == null || i.raw === void 0)
|
|
3213
|
+
a = !1, n += me(r, t, i);
|
|
3214
|
+
else {
|
|
3215
|
+
var o = i;
|
|
3216
|
+
n += o[0];
|
|
3217
|
+
}
|
|
3218
|
+
for (var l = 1; l < e.length; l++)
|
|
3219
|
+
if (n += me(r, t, e[l]), a) {
|
|
3220
|
+
var s = i;
|
|
3221
|
+
n += s[l];
|
|
3222
|
+
}
|
|
3223
|
+
Et.lastIndex = 0;
|
|
3224
|
+
for (var u = "", c; (c = Et.exec(n)) !== null; )
|
|
3225
|
+
u += "-" + c[1];
|
|
3226
|
+
var g = Ea(n) + u;
|
|
3227
|
+
return {
|
|
3228
|
+
name: g,
|
|
3229
|
+
styles: n,
|
|
3230
|
+
next: Y
|
|
3231
|
+
};
|
|
3232
|
+
}
|
|
3233
|
+
var Oa = function(t) {
|
|
3234
|
+
return t();
|
|
3235
|
+
}, La = p.useInsertionEffect ? p.useInsertionEffect : !1, _a = La || Oa, or = /* @__PURE__ */ p.createContext(
|
|
3236
|
+
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
3237
|
+
// because this module is primarily intended for the browser and node
|
|
3238
|
+
// but it's also required in react native and similar environments sometimes
|
|
3239
|
+
// and we could have a special build just for that
|
|
3240
|
+
// but this is much easier and the native packages
|
|
3241
|
+
// might use a different theme context in the future anyway
|
|
3242
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ wa({
|
|
3243
|
+
key: "css"
|
|
3244
|
+
}) : null
|
|
3245
|
+
);
|
|
3246
|
+
or.Provider;
|
|
3247
|
+
var $a = function(t) {
|
|
3248
|
+
return /* @__PURE__ */ fr(function(r, a) {
|
|
3249
|
+
var n = Ge(or);
|
|
3250
|
+
return t(r, n, a);
|
|
3251
|
+
});
|
|
3252
|
+
}, Da = /* @__PURE__ */ p.createContext({}), Fa = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, ja = /* @__PURE__ */ rr(
|
|
3253
|
+
function(e) {
|
|
3254
|
+
return Fa.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
3255
|
+
}
|
|
3256
|
+
/* Z+1 */
|
|
3257
|
+
), Na = ja, Ma = function(t) {
|
|
3258
|
+
return t !== "theme";
|
|
3259
|
+
}, St = function(t) {
|
|
3260
|
+
return typeof t == "string" && // 96 is one less than the char code
|
|
3261
|
+
// for "a" so this is checking that
|
|
3262
|
+
// it's a lowercase character
|
|
3263
|
+
t.charCodeAt(0) > 96 ? Na : Ma;
|
|
3264
|
+
}, Pt = function(t, r, a) {
|
|
3265
|
+
var n;
|
|
3266
|
+
if (r) {
|
|
3267
|
+
var i = r.shouldForwardProp;
|
|
3268
|
+
n = t.__emotion_forwardProp && i ? function(o) {
|
|
3269
|
+
return t.__emotion_forwardProp(o) && i(o);
|
|
3270
|
+
} : i;
|
|
3271
|
+
}
|
|
3272
|
+
return typeof n != "function" && a && (n = t.__emotion_forwardProp), n;
|
|
3273
|
+
}, Ha = function(t) {
|
|
3274
|
+
var r = t.cache, a = t.serialized, n = t.isStringTag;
|
|
3275
|
+
return ar(r, a, n), _a(function() {
|
|
3276
|
+
return ka(r, a, n);
|
|
3277
|
+
}), null;
|
|
3278
|
+
}, za = function e(t, r) {
|
|
3279
|
+
var a = t.__emotion_real === t, n = a && t.__emotion_base || t, i, o;
|
|
3280
|
+
r !== void 0 && (i = r.label, o = r.target);
|
|
3281
|
+
var l = Pt(t, r, a), s = l || St(n), u = !s("as");
|
|
3282
|
+
return function() {
|
|
3283
|
+
var c = arguments, g = a && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
3284
|
+
if (i !== void 0 && g.push("label:" + i + ";"), c[0] == null || c[0].raw === void 0)
|
|
3285
|
+
g.push.apply(g, c);
|
|
3286
|
+
else {
|
|
3287
|
+
var m = c[0];
|
|
3288
|
+
g.push(m[0]);
|
|
3289
|
+
for (var x = c.length, f = 1; f < x; f++)
|
|
3290
|
+
g.push(c[f], m[f]);
|
|
3291
|
+
}
|
|
3292
|
+
var h = $a(function(v, d, b) {
|
|
3293
|
+
var w = u && v.as || n, T = "", I = [], A = v;
|
|
3294
|
+
if (v.theme == null) {
|
|
3295
|
+
A = {};
|
|
3296
|
+
for (var C in v)
|
|
3297
|
+
A[C] = v[C];
|
|
3298
|
+
A.theme = p.useContext(Da);
|
|
3299
|
+
}
|
|
3300
|
+
typeof v.className == "string" ? T = Ca(d.registered, I, v.className) : v.className != null && (T = v.className + " ");
|
|
3301
|
+
var z = Aa(g.concat(I), d.registered, A);
|
|
3302
|
+
T += d.key + "-" + z.name, o !== void 0 && (T += " " + o);
|
|
3303
|
+
var $ = u && l === void 0 ? St(w) : s, M = {};
|
|
3304
|
+
for (var B in v)
|
|
3305
|
+
u && B === "as" || $(B) && (M[B] = v[B]);
|
|
3306
|
+
return M.className = T, b && (M.ref = b), /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement(Ha, {
|
|
3307
|
+
cache: d,
|
|
3308
|
+
serialized: z,
|
|
3309
|
+
isStringTag: typeof w == "string"
|
|
3310
|
+
}), /* @__PURE__ */ p.createElement(w, M));
|
|
3311
|
+
});
|
|
3312
|
+
return h.displayName = i !== void 0 ? i : "Styled(" + (typeof n == "string" ? n : n.displayName || n.name || "Component") + ")", h.defaultProps = t.defaultProps, h.__emotion_real = h, h.__emotion_base = n, h.__emotion_styles = g, h.__emotion_forwardProp = l, Object.defineProperty(h, "toString", {
|
|
3313
|
+
value: function() {
|
|
3314
|
+
return "." + o;
|
|
3315
|
+
}
|
|
3316
|
+
}), h.withComponent = function(v, d) {
|
|
3317
|
+
var b = e(v, Ve({}, r, d, {
|
|
3318
|
+
shouldForwardProp: Pt(h, d, !0)
|
|
3319
|
+
}));
|
|
3320
|
+
return b.apply(void 0, g);
|
|
3321
|
+
}, h;
|
|
3322
|
+
};
|
|
3323
|
+
}, Ua = [
|
|
3324
|
+
"a",
|
|
3325
|
+
"abbr",
|
|
3326
|
+
"address",
|
|
3327
|
+
"area",
|
|
3328
|
+
"article",
|
|
3329
|
+
"aside",
|
|
3330
|
+
"audio",
|
|
3331
|
+
"b",
|
|
3332
|
+
"base",
|
|
3333
|
+
"bdi",
|
|
3334
|
+
"bdo",
|
|
3335
|
+
"big",
|
|
3336
|
+
"blockquote",
|
|
3337
|
+
"body",
|
|
3338
|
+
"br",
|
|
3339
|
+
"button",
|
|
3340
|
+
"canvas",
|
|
3341
|
+
"caption",
|
|
3342
|
+
"cite",
|
|
3343
|
+
"code",
|
|
3344
|
+
"col",
|
|
3345
|
+
"colgroup",
|
|
3346
|
+
"data",
|
|
3347
|
+
"datalist",
|
|
3348
|
+
"dd",
|
|
3349
|
+
"del",
|
|
3350
|
+
"details",
|
|
3351
|
+
"dfn",
|
|
3352
|
+
"dialog",
|
|
3353
|
+
"div",
|
|
3354
|
+
"dl",
|
|
3355
|
+
"dt",
|
|
3356
|
+
"em",
|
|
3357
|
+
"embed",
|
|
3358
|
+
"fieldset",
|
|
3359
|
+
"figcaption",
|
|
3360
|
+
"figure",
|
|
3361
|
+
"footer",
|
|
3362
|
+
"form",
|
|
3363
|
+
"h1",
|
|
3364
|
+
"h2",
|
|
3365
|
+
"h3",
|
|
3366
|
+
"h4",
|
|
3367
|
+
"h5",
|
|
3368
|
+
"h6",
|
|
3369
|
+
"head",
|
|
3370
|
+
"header",
|
|
3371
|
+
"hgroup",
|
|
3372
|
+
"hr",
|
|
3373
|
+
"html",
|
|
3374
|
+
"i",
|
|
3375
|
+
"iframe",
|
|
3376
|
+
"img",
|
|
3377
|
+
"input",
|
|
3378
|
+
"ins",
|
|
3379
|
+
"kbd",
|
|
3380
|
+
"keygen",
|
|
3381
|
+
"label",
|
|
3382
|
+
"legend",
|
|
3383
|
+
"li",
|
|
3384
|
+
"link",
|
|
3385
|
+
"main",
|
|
3386
|
+
"map",
|
|
3387
|
+
"mark",
|
|
3388
|
+
"marquee",
|
|
3389
|
+
"menu",
|
|
3390
|
+
"menuitem",
|
|
3391
|
+
"meta",
|
|
3392
|
+
"meter",
|
|
3393
|
+
"nav",
|
|
3394
|
+
"noscript",
|
|
3395
|
+
"object",
|
|
3396
|
+
"ol",
|
|
3397
|
+
"optgroup",
|
|
3398
|
+
"option",
|
|
3399
|
+
"output",
|
|
3400
|
+
"p",
|
|
3401
|
+
"param",
|
|
3402
|
+
"picture",
|
|
3403
|
+
"pre",
|
|
3404
|
+
"progress",
|
|
3405
|
+
"q",
|
|
3406
|
+
"rp",
|
|
3407
|
+
"rt",
|
|
3408
|
+
"ruby",
|
|
3409
|
+
"s",
|
|
3410
|
+
"samp",
|
|
3411
|
+
"script",
|
|
3412
|
+
"section",
|
|
3413
|
+
"select",
|
|
3414
|
+
"small",
|
|
3415
|
+
"source",
|
|
3416
|
+
"span",
|
|
3417
|
+
"strong",
|
|
3418
|
+
"style",
|
|
3419
|
+
"sub",
|
|
3420
|
+
"summary",
|
|
3421
|
+
"sup",
|
|
3422
|
+
"table",
|
|
3423
|
+
"tbody",
|
|
3424
|
+
"td",
|
|
3425
|
+
"textarea",
|
|
3426
|
+
"tfoot",
|
|
3427
|
+
"th",
|
|
3428
|
+
"thead",
|
|
3429
|
+
"time",
|
|
3430
|
+
"title",
|
|
3431
|
+
"tr",
|
|
3432
|
+
"track",
|
|
3433
|
+
"u",
|
|
3434
|
+
"ul",
|
|
3435
|
+
"var",
|
|
3436
|
+
"video",
|
|
3437
|
+
"wbr",
|
|
3438
|
+
// SVG
|
|
3439
|
+
"circle",
|
|
3440
|
+
"clipPath",
|
|
3441
|
+
"defs",
|
|
3442
|
+
"ellipse",
|
|
3443
|
+
"foreignObject",
|
|
3444
|
+
"g",
|
|
3445
|
+
"image",
|
|
3446
|
+
"line",
|
|
3447
|
+
"linearGradient",
|
|
3448
|
+
"mask",
|
|
3449
|
+
"path",
|
|
3450
|
+
"pattern",
|
|
3451
|
+
"polygon",
|
|
3452
|
+
"polyline",
|
|
3453
|
+
"radialGradient",
|
|
3454
|
+
"rect",
|
|
3455
|
+
"stop",
|
|
3456
|
+
"svg",
|
|
3457
|
+
"text",
|
|
3458
|
+
"tspan"
|
|
3459
|
+
], Xe = za.bind(null);
|
|
3460
|
+
Ua.forEach(function(e) {
|
|
3461
|
+
Xe[e] = Xe(e);
|
|
3462
|
+
});
|
|
3463
|
+
const Ba = Xe.div`
|
|
3464
|
+
display: flex;
|
|
3465
|
+
flex-direction: column;
|
|
3466
|
+
font-family: inherit;
|
|
3467
|
+
|
|
3468
|
+
input:focus {
|
|
3469
|
+
border: none;
|
|
3470
|
+
outline: none;
|
|
3471
|
+
background: none;
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
input:autofill {
|
|
3475
|
+
background-color: #00000000;
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
input:-webkit-autofill {
|
|
3479
|
+
background-color: #00000000;
|
|
3480
|
+
}
|
|
3481
|
+
`, ri = ({
|
|
3482
|
+
name: e,
|
|
3483
|
+
label: t,
|
|
3484
|
+
leftIcon: r,
|
|
3485
|
+
rightIcon: a,
|
|
3486
|
+
bottomMessage: n,
|
|
3487
|
+
placeHolder: i,
|
|
3488
|
+
autoComplete: o = "off",
|
|
3489
|
+
value: l,
|
|
3490
|
+
initialValue: s,
|
|
3491
|
+
type: u = "text",
|
|
3492
|
+
onChange: c,
|
|
3493
|
+
inputStyles: g,
|
|
3494
|
+
containerProps: m,
|
|
3495
|
+
step: x
|
|
3496
|
+
}) => {
|
|
3497
|
+
const f = (h) => {
|
|
3498
|
+
c?.(h.currentTarget.value);
|
|
3499
|
+
};
|
|
3500
|
+
return /* @__PURE__ */ E.jsxs(
|
|
3501
|
+
Ba,
|
|
3502
|
+
{
|
|
3503
|
+
style: {
|
|
3504
|
+
width: "100%",
|
|
3505
|
+
maxWidth: "357px",
|
|
3506
|
+
gap: "8px",
|
|
3507
|
+
...m
|
|
3508
|
+
},
|
|
3509
|
+
children: [
|
|
3510
|
+
t,
|
|
3511
|
+
/* @__PURE__ */ E.jsxs(
|
|
3512
|
+
"div",
|
|
3513
|
+
{
|
|
3514
|
+
style: {
|
|
3515
|
+
display: "flex",
|
|
3516
|
+
flexDirection: "row",
|
|
3517
|
+
width: "100%",
|
|
3518
|
+
height: "47px",
|
|
3519
|
+
margin: "8px auto 0 auto",
|
|
3520
|
+
border: "2px solid #000000",
|
|
3521
|
+
borderRadius: "5px",
|
|
3522
|
+
padding: "5px 15px",
|
|
3523
|
+
color: "#000000",
|
|
3524
|
+
fontFamily: "Poppins",
|
|
3525
|
+
fontStyle: "normal",
|
|
3526
|
+
fontWeight: 400,
|
|
3527
|
+
fontSize: "16px",
|
|
3528
|
+
lineHeight: "24px",
|
|
3529
|
+
outline: "none",
|
|
3530
|
+
alignItems: "center",
|
|
3531
|
+
gap: "10px",
|
|
3532
|
+
...g
|
|
3533
|
+
},
|
|
3534
|
+
children: [
|
|
3535
|
+
r,
|
|
3536
|
+
/* @__PURE__ */ E.jsx(
|
|
3537
|
+
"input",
|
|
3538
|
+
{
|
|
3539
|
+
name: e,
|
|
3540
|
+
type: u,
|
|
3541
|
+
autoComplete: o,
|
|
3542
|
+
step: x,
|
|
3543
|
+
style: {
|
|
3544
|
+
flex: 1,
|
|
3545
|
+
border: "none",
|
|
3546
|
+
color: "inherit",
|
|
3547
|
+
fontFamily: "inherit",
|
|
3548
|
+
fontStyle: "inherit",
|
|
3549
|
+
fontWeight: "inherit",
|
|
3550
|
+
fontSize: "inherit",
|
|
3551
|
+
lineHeight: "inherit",
|
|
3552
|
+
outline: "inherit",
|
|
3553
|
+
background: "none"
|
|
3554
|
+
},
|
|
3555
|
+
placeholder: i,
|
|
3556
|
+
value: l,
|
|
3557
|
+
defaultValue: s,
|
|
3558
|
+
onChange: f
|
|
3559
|
+
}
|
|
3560
|
+
),
|
|
3561
|
+
a
|
|
3562
|
+
]
|
|
3563
|
+
}
|
|
3564
|
+
),
|
|
3565
|
+
n
|
|
3566
|
+
]
|
|
3567
|
+
}
|
|
3568
|
+
);
|
|
3569
|
+
}, ni = ({ id: e, styles: t, children: r }) => {
|
|
3570
|
+
const { isItemVisible: a } = Le();
|
|
3571
|
+
return /* @__PURE__ */ E.jsx(E.Fragment, { children: a(e) && /* @__PURE__ */ E.jsx(
|
|
3572
|
+
"div",
|
|
3573
|
+
{
|
|
3574
|
+
style: {
|
|
3575
|
+
width: "100%",
|
|
3576
|
+
minHeight: "100%",
|
|
3577
|
+
left: 0,
|
|
3578
|
+
top: 0,
|
|
3579
|
+
position: "fixed",
|
|
3580
|
+
zIndex: 1e3,
|
|
3581
|
+
display: "flex",
|
|
3582
|
+
flexDirection: "column",
|
|
3583
|
+
alignItems: "center",
|
|
3584
|
+
justifyContent: "center",
|
|
3585
|
+
...t
|
|
3586
|
+
},
|
|
3587
|
+
children: r
|
|
3588
|
+
}
|
|
3589
|
+
) });
|
|
3590
|
+
}, ai = ({
|
|
2174
3591
|
id: e,
|
|
2175
3592
|
children: t,
|
|
2176
3593
|
backgroundStyles: r,
|
|
2177
3594
|
contentStyles: a,
|
|
2178
3595
|
onClickOutsideModal: n
|
|
2179
3596
|
}) => {
|
|
2180
|
-
const { isItemVisible:
|
|
2181
|
-
return /* @__PURE__ */
|
|
3597
|
+
const { isItemVisible: i } = Le();
|
|
3598
|
+
return /* @__PURE__ */ E.jsx(E.Fragment, { children: i(e) && /* @__PURE__ */ E.jsx(
|
|
2182
3599
|
"div",
|
|
2183
3600
|
{
|
|
2184
3601
|
style: {
|
|
@@ -2200,7 +3617,7 @@ const it = C.createContext({
|
|
|
2200
3617
|
onClick: () => {
|
|
2201
3618
|
n?.();
|
|
2202
3619
|
},
|
|
2203
|
-
children: /* @__PURE__ */
|
|
3620
|
+
children: /* @__PURE__ */ E.jsx(
|
|
2204
3621
|
"div",
|
|
2205
3622
|
{
|
|
2206
3623
|
style: {
|
|
@@ -2220,25 +3637,164 @@ const it = C.createContext({
|
|
|
2220
3637
|
padding: "24px",
|
|
2221
3638
|
...a
|
|
2222
3639
|
},
|
|
2223
|
-
onClick: (
|
|
2224
|
-
|
|
3640
|
+
onClick: (o) => {
|
|
3641
|
+
o.stopPropagation();
|
|
2225
3642
|
},
|
|
2226
3643
|
children: t
|
|
2227
3644
|
}
|
|
2228
3645
|
)
|
|
2229
3646
|
}
|
|
2230
3647
|
) });
|
|
2231
|
-
},
|
|
3648
|
+
}, ii = ({
|
|
3649
|
+
header: e,
|
|
3650
|
+
containerStyles: t,
|
|
3651
|
+
pageStyles: r,
|
|
3652
|
+
children: a,
|
|
3653
|
+
allowScroll: n = !0,
|
|
3654
|
+
footer: i,
|
|
3655
|
+
floatingContent: o
|
|
3656
|
+
}) => /* @__PURE__ */ E.jsxs(
|
|
3657
|
+
"div",
|
|
3658
|
+
{
|
|
3659
|
+
"data-testid": "page-container",
|
|
3660
|
+
style: {
|
|
3661
|
+
minHeight: "100vh",
|
|
3662
|
+
width: "100%",
|
|
3663
|
+
minWidth: "100%",
|
|
3664
|
+
overflow: "hidden",
|
|
3665
|
+
position: "relative",
|
|
3666
|
+
boxSizing: "border-box",
|
|
3667
|
+
top: 0,
|
|
3668
|
+
bottom: 0,
|
|
3669
|
+
left: 0,
|
|
3670
|
+
right: 0,
|
|
3671
|
+
display: "flex",
|
|
3672
|
+
flexDirection: "column",
|
|
3673
|
+
...t
|
|
3674
|
+
},
|
|
3675
|
+
children: [
|
|
3676
|
+
/* @__PURE__ */ E.jsxs(
|
|
3677
|
+
"div",
|
|
3678
|
+
{
|
|
3679
|
+
"data-testid": "page-layout",
|
|
3680
|
+
style: {
|
|
3681
|
+
minHeight: "100%",
|
|
3682
|
+
width: "100%",
|
|
3683
|
+
overflowY: n ? "auto" : "hidden",
|
|
3684
|
+
display: "flex",
|
|
3685
|
+
flexDirection: "column",
|
|
3686
|
+
boxSizing: "border-box"
|
|
3687
|
+
},
|
|
3688
|
+
children: [
|
|
3689
|
+
e && /* @__PURE__ */ E.jsx(
|
|
3690
|
+
"div",
|
|
3691
|
+
{
|
|
3692
|
+
"data-testid": "page-header",
|
|
3693
|
+
style: {
|
|
3694
|
+
width: "100%",
|
|
3695
|
+
zIndex: 99,
|
|
3696
|
+
position: e.visibility === "fixed" ? "relative" : "fixed",
|
|
3697
|
+
top: 0,
|
|
3698
|
+
left: 0,
|
|
3699
|
+
right: 0,
|
|
3700
|
+
display: "flex",
|
|
3701
|
+
flexDirection: "row",
|
|
3702
|
+
height: "fit-content",
|
|
3703
|
+
boxSizing: "border-box",
|
|
3704
|
+
...e.styles
|
|
3705
|
+
},
|
|
3706
|
+
children: e.content
|
|
3707
|
+
}
|
|
3708
|
+
),
|
|
3709
|
+
/* @__PURE__ */ E.jsx(
|
|
3710
|
+
"div",
|
|
3711
|
+
{
|
|
3712
|
+
style: {
|
|
3713
|
+
width: "100%",
|
|
3714
|
+
flex: 1,
|
|
3715
|
+
minHeight: "fit-content",
|
|
3716
|
+
padding: "24px",
|
|
3717
|
+
boxSizing: "border-box",
|
|
3718
|
+
overflowY: n ? void 0 : "hidden",
|
|
3719
|
+
...r
|
|
3720
|
+
},
|
|
3721
|
+
children: a
|
|
3722
|
+
}
|
|
3723
|
+
)
|
|
3724
|
+
]
|
|
3725
|
+
}
|
|
3726
|
+
),
|
|
3727
|
+
i && /* @__PURE__ */ E.jsx(
|
|
3728
|
+
"div",
|
|
3729
|
+
{
|
|
3730
|
+
"data-testid": "page-footer",
|
|
3731
|
+
style: {
|
|
3732
|
+
width: "100%",
|
|
3733
|
+
zIndex: 99,
|
|
3734
|
+
position: i.visibility === "fixed" ? "relative" : "fixed",
|
|
3735
|
+
bottom: 0,
|
|
3736
|
+
left: 0,
|
|
3737
|
+
right: 0,
|
|
3738
|
+
display: "flex",
|
|
3739
|
+
flexDirection: "row",
|
|
3740
|
+
height: "fit-content",
|
|
3741
|
+
boxSizing: "border-box",
|
|
3742
|
+
...i.styles
|
|
3743
|
+
},
|
|
3744
|
+
children: i.content
|
|
3745
|
+
}
|
|
3746
|
+
)
|
|
3747
|
+
]
|
|
3748
|
+
}
|
|
3749
|
+
), oi = ({
|
|
3750
|
+
src: e,
|
|
3751
|
+
width: t = "22",
|
|
3752
|
+
height: r = "28",
|
|
3753
|
+
stroke: a,
|
|
3754
|
+
viewBox: n = "0 0 22 28",
|
|
3755
|
+
fill: i = "#000000",
|
|
3756
|
+
alt: o = "",
|
|
3757
|
+
onClick: l,
|
|
3758
|
+
styles: s
|
|
3759
|
+
}) => /* @__PURE__ */ E.jsx(
|
|
3760
|
+
"div",
|
|
3761
|
+
{
|
|
3762
|
+
style: {
|
|
3763
|
+
width: "fit-content",
|
|
3764
|
+
height: "fit-content",
|
|
3765
|
+
display: "flex",
|
|
3766
|
+
alignItems: "center",
|
|
3767
|
+
justifyContent: "center",
|
|
3768
|
+
...s
|
|
3769
|
+
},
|
|
3770
|
+
onClick: () => l?.(),
|
|
3771
|
+
children: /* @__PURE__ */ E.jsx(
|
|
3772
|
+
"svg",
|
|
3773
|
+
{
|
|
3774
|
+
width: t,
|
|
3775
|
+
height: r,
|
|
3776
|
+
viewBox: n,
|
|
3777
|
+
fill: i,
|
|
3778
|
+
stroke: a,
|
|
3779
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3780
|
+
style: {
|
|
3781
|
+
display: "flex"
|
|
3782
|
+
},
|
|
3783
|
+
children: e
|
|
3784
|
+
}
|
|
3785
|
+
)
|
|
3786
|
+
}
|
|
3787
|
+
), si = ({
|
|
2232
3788
|
id: e,
|
|
2233
3789
|
children: t,
|
|
2234
3790
|
styles: r,
|
|
2235
3791
|
durationInSeconds: a = 3
|
|
2236
3792
|
}) => {
|
|
2237
|
-
const n =
|
|
2238
|
-
return
|
|
2239
|
-
const
|
|
2240
|
-
n.current !==
|
|
2241
|
-
}, [n,
|
|
3793
|
+
const n = R.useRef(!1), { isItemVisible: i, hideItem: o } = Le();
|
|
3794
|
+
return R.useEffect(() => {
|
|
3795
|
+
const l = i(e);
|
|
3796
|
+
n.current !== l && (n.current = l, l && setTimeout(() => o(e), a * 1e3));
|
|
3797
|
+
}, [n, i, o]), /* @__PURE__ */ E.jsx(E.Fragment, { children: i(e) && /* @__PURE__ */ E.jsx(
|
|
2242
3798
|
"div",
|
|
2243
3799
|
{
|
|
2244
3800
|
style: {
|
|
@@ -2259,20 +3815,21 @@ const it = C.createContext({
|
|
|
2259
3815
|
border: "solid 3px #000000ff",
|
|
2260
3816
|
...r
|
|
2261
3817
|
},
|
|
2262
|
-
onClick: (
|
|
2263
|
-
|
|
3818
|
+
onClick: (l) => {
|
|
3819
|
+
l.stopPropagation();
|
|
2264
3820
|
},
|
|
2265
3821
|
children: t
|
|
2266
3822
|
}
|
|
2267
3823
|
) });
|
|
2268
|
-
},
|
|
3824
|
+
}, li = ({
|
|
2269
3825
|
overflowEllipsis: e,
|
|
2270
3826
|
children: t,
|
|
2271
3827
|
styles: r
|
|
2272
|
-
}) => /* @__PURE__ */
|
|
3828
|
+
}) => /* @__PURE__ */ E.jsx(
|
|
2273
3829
|
"p",
|
|
2274
3830
|
{
|
|
2275
3831
|
style: {
|
|
3832
|
+
fontFamily: "inherit",
|
|
2276
3833
|
maxWidth: "100%",
|
|
2277
3834
|
overflow: "hidden",
|
|
2278
3835
|
whiteSpace: e ? "nowrap" : "normal",
|
|
@@ -2280,13 +3837,13 @@ const it = C.createContext({
|
|
|
2280
3837
|
fontSize: "16px",
|
|
2281
3838
|
fontStyle: "normal",
|
|
2282
3839
|
lineHeight: "normal",
|
|
2283
|
-
color: "
|
|
3840
|
+
color: "#000000",
|
|
2284
3841
|
...r
|
|
2285
3842
|
},
|
|
2286
3843
|
children: t
|
|
2287
3844
|
}
|
|
2288
3845
|
);
|
|
2289
|
-
class
|
|
3846
|
+
class ui {
|
|
2290
3847
|
static isScrollEnabled = () => document.body.style.overflow === "unset" || document.body.style.overflow === "auto";
|
|
2291
3848
|
static disableScroll = () => {
|
|
2292
3849
|
document.body.style.overflow = "hidden";
|
|
@@ -2295,68 +3852,35 @@ class Xr {
|
|
|
2295
3852
|
document.body.style.overflow = "unset";
|
|
2296
3853
|
};
|
|
2297
3854
|
}
|
|
2298
|
-
class
|
|
3855
|
+
class ci {
|
|
2299
3856
|
static getPascalCase = (t) => t.replace(/\w+/g, function(r) {
|
|
2300
3857
|
return r[0].toUpperCase() + r.slice(1).toLowerCase();
|
|
2301
3858
|
});
|
|
2302
3859
|
static isEqual = (t, r, a = !0) => a ? t === r : t.toUpperCase() === r.toUpperCase();
|
|
2303
3860
|
}
|
|
2304
|
-
const Qr = (e) => Me(e, []), en = () => {
|
|
2305
|
-
const e = (r, a) => {
|
|
2306
|
-
let n = 0, o = `${r}?`;
|
|
2307
|
-
for (const i in a) {
|
|
2308
|
-
const u = a[i];
|
|
2309
|
-
n > 0 && (o = `${o}&`), o = `${o}${i}=${u}`, n++;
|
|
2310
|
-
}
|
|
2311
|
-
return o;
|
|
2312
|
-
};
|
|
2313
|
-
return async (r, a) => {
|
|
2314
|
-
const n = e(r, a);
|
|
2315
|
-
return await (await fetch(n)).json();
|
|
2316
|
-
};
|
|
2317
|
-
}, Mr = {
|
|
2318
|
-
xs: 0,
|
|
2319
|
-
sm: 420,
|
|
2320
|
-
md: 768,
|
|
2321
|
-
lg: 991,
|
|
2322
|
-
xl: 1200,
|
|
2323
|
-
xxl: 1440
|
|
2324
|
-
}, tn = (e) => {
|
|
2325
|
-
const t = {
|
|
2326
|
-
...Mr,
|
|
2327
|
-
...e?.breakpointConfiguration
|
|
2328
|
-
}, [r, a] = ct(
|
|
2329
|
-
je(t)
|
|
2330
|
-
), n = () => {
|
|
2331
|
-
a(je(t));
|
|
2332
|
-
};
|
|
2333
|
-
return Me(() => (window.addEventListener("resize", n), () => {
|
|
2334
|
-
window.removeEventListener("resize", n);
|
|
2335
|
-
}), []), ft(() => r, [r]);
|
|
2336
|
-
}, Ur = (e, t) => e < t.sm ? "xs" : e < t.md ? "sm" : e < t.lg ? "md" : e < t.xl ? "lg" : e < t.xxl ? "xl" : "xxl", Br = (e, t) => e <= t.sm ? "mobile" : e <= t.md ? "tablet" : "desktop", je = (e) => {
|
|
2337
|
-
const t = window.innerWidth, r = Ur(t, e), a = Br(t, e);
|
|
2338
|
-
return { currentWidth: t, currentBreakpoint: r, currentSize: a };
|
|
2339
|
-
}, rn = (e) => {
|
|
2340
|
-
const t = e.translations, r = e.language, a = (o) => o[r];
|
|
2341
|
-
return {
|
|
2342
|
-
t: (o) => t[o] ? a(t[o]) : o,
|
|
2343
|
-
getTranslation: a
|
|
2344
|
-
};
|
|
2345
|
-
};
|
|
2346
3861
|
export {
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
3862
|
+
Va as Button,
|
|
3863
|
+
Qa as Drawer,
|
|
3864
|
+
Za as FeedbackProvider,
|
|
3865
|
+
ei as Form,
|
|
3866
|
+
ti as Image,
|
|
3867
|
+
ri as InputField,
|
|
3868
|
+
ni as Loader,
|
|
3869
|
+
ai as Modal,
|
|
3870
|
+
Ja as NavigationProvider,
|
|
3871
|
+
ii as PageLayout,
|
|
3872
|
+
ui as ScrollHelper,
|
|
3873
|
+
oi as SvgImage,
|
|
3874
|
+
ci as TextHelper,
|
|
3875
|
+
si as Toast,
|
|
3876
|
+
li as Typography,
|
|
3877
|
+
yr as defaultBreakpoints,
|
|
3878
|
+
Ya as useDidMount,
|
|
3879
|
+
gr as useDrag,
|
|
3880
|
+
Le as useFeedback,
|
|
3881
|
+
qa as useFetch,
|
|
3882
|
+
Ka as useNavigation,
|
|
3883
|
+
mr as usePointer,
|
|
3884
|
+
Xa as useResponsive,
|
|
3885
|
+
Ga as useTranslations
|
|
2362
3886
|
};
|