@blockscout/ui-toolkit 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +843 -842
- package/dist/theme/recipes/dialog.recipe.d.ts +1 -1
- package/dist/theme/recipes/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as f, jsxs as q, Fragment as ze } from "react/jsx-runtime";
|
|
2
2
|
import { Accordion as Be, Icon as ge, defineRecipe as ke, Circle as Fi, Skeleton as br, Stack as Mi, Button as Da, ButtonGroup as ji, AbsoluteCenter as Dt, Spinner as fr, Span as Ba, useRecipe as za, Alert as je, Avatar as nt, Group as mr, useBreakpointValue as Ua, Tooltip as He, Portal as Fe, useDisclosure as Fa, chakra as Me, Badge as Ma, Checkbox as Ye, CheckboxGroup as ja, Link as Lr, LinkOverlay as Nr, LinkBox as Ha, Flex as Rt, Dialog as he, Drawer as Ce, Field as we, Heading as Wa, Image as $a, InputElement as Dr, Input as Va, Menu as de, PinInput as lt, Popover as me, ProgressCircle as rt, defineSlotRecipe as ce, defineConfig as Xa, createSystem as Ga, defaultConfig as qa, ChakraProvider as Ka, RadioGroup as tt, useRatingGroup as Ya, RatingGroup as We, useSelectContext as Hi, Select as fe, createListCollection as Za, Box as Ue, Slider as ye, HStack as Qa, For as Ja, Switch as Le, Table as qe, Tabs as Bt, Tag as Ne, Textarea as el, createToaster as tl, Toaster as rl, Toast as Ze, Center as nl, VisuallyHidden as ol, Text as Br } from "@chakra-ui/react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as P from "react";
|
|
4
4
|
import U, { useState as vr, useEffect as Wi, useCallback as zr } from "react";
|
|
5
5
|
import il from "react-dom";
|
|
6
6
|
import $i from "next/link";
|
|
7
7
|
import { ThemeProvider as al, useTheme as ll } from "next-themes";
|
|
8
8
|
import { useRouter as Vi } from "next/router";
|
|
9
9
|
import { useFormContext as Ke, useWatch as sl, useController as it } from "react-hook-form";
|
|
10
|
-
const Xi = (e) => /* @__PURE__ */
|
|
10
|
+
const Xi = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { d: "M11.535 11.293a1 1 0 0 0 0 1.414l3.536 3.536a1 1 0 1 1-1.414 1.414l-4.95-4.95a1 1 0 0 1 0-1.414l4.95-4.95a1 1 0 1 1 1.414 1.414l-3.536 3.536Z", fill: "currentColor" })), e0 = P.forwardRef(function(t, r) {
|
|
11
11
|
const { children: n, indicatorPlacement: o, variant: i, noIndicator: s, ...l } = t, p = i === "faq" ? "start" : o ?? "end", h = i === "faq" ? /* @__PURE__ */ f(
|
|
12
12
|
Be.ItemIndicator,
|
|
13
13
|
{
|
|
@@ -52,12 +52,12 @@ const Xi = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
52
52
|
n,
|
|
53
53
|
p === "end" && !s && h
|
|
54
54
|
] });
|
|
55
|
-
}), t0 =
|
|
55
|
+
}), t0 = P.forwardRef(function(t, r) {
|
|
56
56
|
return /* @__PURE__ */ f(Be.ItemContent, { children: /* @__PURE__ */ f(Be.ItemBody, { ...t, ref: r }) });
|
|
57
57
|
}), r0 = (e) => {
|
|
58
58
|
const { multiple: t = !0, ...r } = e;
|
|
59
59
|
return /* @__PURE__ */ f(Be.Root, { multiple: t, ...r });
|
|
60
|
-
}, n0 = Be.Item, cl = (e) => /* @__PURE__ */
|
|
60
|
+
}, n0 = Be.Item, cl = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { d: "M10 18.333a8.333 8.333 0 1 1 0-16.666 8.333 8.333 0 1 1 0 16.666Zm-.834-9.166v5h1.667v-5H9.166Zm0-3.334V7.5h1.667V5.833H9.166Z", fill: "currentColor" })), ul = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { d: "M9.44 8.035a.791.791 0 0 0 1.12 0l3.802-3.803a.791.791 0 0 1 1.119 0l.287.287a.79.79 0 0 1 0 1.119L11.965 9.44a.79.79 0 0 0 0 1.118l3.803 3.803a.791.791 0 0 1 0 1.119l-.287.287a.791.791 0 0 1-1.119 0l-3.803-3.803a.79.79 0 0 0-1.118 0l-3.803 3.803a.79.79 0 0 1-1.119 0l-.287-.287a.791.791 0 0 1 0-1.119l3.803-3.803a.791.791 0 0 0 0-1.118L4.232 5.638a.791.791 0 0 1 0-1.119l.287-.287a.791.791 0 0 1 1.119 0L9.44 8.035Z", fill: "currentColor" })), Gi = ke({
|
|
61
61
|
base: {
|
|
62
62
|
display: "flex",
|
|
63
63
|
gap: 0,
|
|
@@ -88,10 +88,10 @@ const Xi = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
88
88
|
size: "md",
|
|
89
89
|
visual: "plain"
|
|
90
90
|
}
|
|
91
|
-
}), o0 =
|
|
91
|
+
}), o0 = P.forwardRef(function(t, r) {
|
|
92
92
|
const { size: n, ...o } = t;
|
|
93
93
|
return /* @__PURE__ */ f(Fi, { size: n, asChild: !0, ref: r, children: /* @__PURE__ */ f(br, { ...o }) });
|
|
94
|
-
}), i0 =
|
|
94
|
+
}), i0 = P.forwardRef(
|
|
95
95
|
function(t, r) {
|
|
96
96
|
const { noOfLines: n = 3, gap: o, ...i } = t;
|
|
97
97
|
return /* @__PURE__ */ f(Mi, { gap: o, width: "full", ref: r, children: Array.from({ length: n }).map((s, l) => /* @__PURE__ */ f(
|
|
@@ -105,7 +105,7 @@ const Xi = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
105
105
|
l
|
|
106
106
|
)) });
|
|
107
107
|
}
|
|
108
|
-
), xe =
|
|
108
|
+
), xe = P.forwardRef(
|
|
109
109
|
function(t, r) {
|
|
110
110
|
const { loading: n = !1, ...o } = t;
|
|
111
111
|
return /* @__PURE__ */ f(
|
|
@@ -117,18 +117,18 @@ const Xi = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
|
-
), dl =
|
|
120
|
+
), dl = P.forwardRef(
|
|
121
121
|
function(t, r) {
|
|
122
|
-
const { loading: n, disabled: o, loadingText: i, children: s, expanded: l, selected: p, highlighted: h, loadingSkeleton:
|
|
123
|
-
return /* @__PURE__ */ f(xe, { loading:
|
|
122
|
+
const { loading: n, disabled: o, loadingText: i, children: s, expanded: l, selected: p, highlighted: h, loadingSkeleton: b = !1, ..._ } = t;
|
|
123
|
+
return /* @__PURE__ */ f(xe, { loading: b, asChild: !0, ref: r, children: /* @__PURE__ */ f(
|
|
124
124
|
Da,
|
|
125
125
|
{
|
|
126
126
|
...l ? { "data-expanded": !0 } : {},
|
|
127
127
|
...p ? { "data-selected": !0 } : {},
|
|
128
128
|
...h ? { "data-highlighted": !0 } : {},
|
|
129
129
|
...n ? { "data-loading": !0 } : {},
|
|
130
|
-
...
|
|
131
|
-
disabled: !
|
|
130
|
+
...b ? { "data-loading-skeleton": !0 } : {},
|
|
131
|
+
disabled: !b && (n || o),
|
|
132
132
|
..._,
|
|
133
133
|
children: n && !i ? /* @__PURE__ */ q(ze, { children: [
|
|
134
134
|
/* @__PURE__ */ f(Dt, { display: "inline-flex", children: /* @__PURE__ */ f(fr, { size: "inherit", color: "inherit" }) }),
|
|
@@ -140,24 +140,24 @@ const Xi = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
140
140
|
}
|
|
141
141
|
) });
|
|
142
142
|
}
|
|
143
|
-
), a0 =
|
|
143
|
+
), a0 = P.forwardRef(
|
|
144
144
|
function(t, r) {
|
|
145
145
|
const { ...n } = t;
|
|
146
146
|
return /* @__PURE__ */ f(ji, { ref: r, ...n });
|
|
147
147
|
}
|
|
148
|
-
), l0 =
|
|
148
|
+
), l0 = P.forwardRef(
|
|
149
149
|
function(t, r) {
|
|
150
|
-
const { children: n, onChange: o, variant: i = "segmented", defaultValue: s, loading: l = !1, equalWidth: p = !1, ...h } = t,
|
|
150
|
+
const { children: n, onChange: o, variant: i = "segmented", defaultValue: s, loading: l = !1, equalWidth: p = !1, ...h } = t, b = P.useMemo(() => {
|
|
151
151
|
const w = Array.isArray(n) ? n[0] : void 0;
|
|
152
152
|
return typeof (w == null ? void 0 : w.props.value) == "string" ? w.props.value : void 0;
|
|
153
|
-
}, [n]), [_, S] =
|
|
153
|
+
}, [n]), [_, S] = P.useState(s ?? b), m = P.useCallback((w) => {
|
|
154
154
|
const R = w.currentTarget.value;
|
|
155
155
|
S(R), o == null || o(R);
|
|
156
|
-
}, [o]), T =
|
|
156
|
+
}, [o]), T = P.Children.map(n, (w) => P.cloneElement(w, {
|
|
157
157
|
onClick: m,
|
|
158
158
|
selected: _ === w.props.value,
|
|
159
159
|
variant: i
|
|
160
|
-
})), O =
|
|
160
|
+
})), O = P.Children.count(n);
|
|
161
161
|
return /* @__PURE__ */ f(xe, { loading: l, children: /* @__PURE__ */ f(
|
|
162
162
|
ji,
|
|
163
163
|
{
|
|
@@ -208,10 +208,10 @@ const Xi = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
208
208
|
}
|
|
209
209
|
);
|
|
210
210
|
}
|
|
211
|
-
), Re =
|
|
211
|
+
), Re = P.forwardRef(function(t, r) {
|
|
212
212
|
const n = za({ recipe: Gi }), [o, i] = n.splitVariantProps(t), s = n(o);
|
|
213
213
|
return /* @__PURE__ */ f(zt, { "aria-label": "Close", ref: r, css: s, ...i, children: t.children ?? /* @__PURE__ */ f(ge, { boxSize: 5, children: /* @__PURE__ */ f(ul, {}) }) });
|
|
214
|
-
}), s0 =
|
|
214
|
+
}), s0 = P.forwardRef(
|
|
215
215
|
function(t, r) {
|
|
216
216
|
const {
|
|
217
217
|
title: n,
|
|
@@ -221,14 +221,14 @@ const Xi = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
221
221
|
onClose: l,
|
|
222
222
|
startElement: p,
|
|
223
223
|
endElement: h,
|
|
224
|
-
loading:
|
|
224
|
+
loading: b,
|
|
225
225
|
showIcon: _ = !1,
|
|
226
226
|
descriptionProps: S,
|
|
227
227
|
...m
|
|
228
|
-
} = t, [T, O] =
|
|
228
|
+
} = t, [T, O] = P.useState(!0), w = /* @__PURE__ */ f(ge, { boxSize: 5, children: /* @__PURE__ */ f(cl, {}) }), R = p !== void 0 ? p : !_ && i === void 0 ? null : /* @__PURE__ */ f(je.Indicator, { children: i || w }), C = P.useCallback(() => {
|
|
229
229
|
O(!1), l == null || l();
|
|
230
230
|
}, [l]);
|
|
231
|
-
return s && !T ? null : /* @__PURE__ */ f(xe, { loading:
|
|
231
|
+
return s && !T ? null : /* @__PURE__ */ f(xe, { loading: b, asChild: !0, children: /* @__PURE__ */ q(je.Root, { ref: r, ...m, children: [
|
|
232
232
|
R,
|
|
233
233
|
o ? /* @__PURE__ */ q(je.Content, { children: [
|
|
234
234
|
n && /* @__PURE__ */ f(je.Title, { children: n }),
|
|
@@ -241,21 +241,21 @@ const Xi = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
241
241
|
pos: "relative",
|
|
242
242
|
m: 0.5,
|
|
243
243
|
alignSelf: "flex-start",
|
|
244
|
-
onClick:
|
|
244
|
+
onClick: C
|
|
245
245
|
}
|
|
246
246
|
)
|
|
247
247
|
] }) });
|
|
248
248
|
}
|
|
249
|
-
), c0 =
|
|
249
|
+
), c0 = P.forwardRef(
|
|
250
250
|
function(t, r) {
|
|
251
|
-
const { name: n, src: o, srcSet: i, loading: s, icon: l, fallback: p, children: h, ...
|
|
252
|
-
return /* @__PURE__ */ q(nt.Root, { ref: r, ...
|
|
251
|
+
const { name: n, src: o, srcSet: i, loading: s, icon: l, fallback: p, children: h, ...b } = t;
|
|
252
|
+
return /* @__PURE__ */ q(nt.Root, { ref: r, ...b, children: [
|
|
253
253
|
/* @__PURE__ */ f(fl, { name: n, icon: l, children: p }),
|
|
254
254
|
/* @__PURE__ */ f(nt.Image, { src: o, srcSet: i, loading: s }),
|
|
255
255
|
h
|
|
256
256
|
] });
|
|
257
257
|
}
|
|
258
|
-
), fl =
|
|
258
|
+
), fl = P.forwardRef(
|
|
259
259
|
function(t, r) {
|
|
260
260
|
const { name: n, icon: o, children: i, ...s } = t;
|
|
261
261
|
return /* @__PURE__ */ q(nt.Fallback, { ref: r, ...s, children: [
|
|
@@ -269,7 +269,7 @@ function pl(e) {
|
|
|
269
269
|
const t = e.trim().split(" "), r = t[0] != null ? t[0] : "", n = t.length > 1 ? t[t.length - 1] : "";
|
|
270
270
|
return r && n ? `${r.charAt(0)}${n.charAt(0)}` : r.charAt(0);
|
|
271
271
|
}
|
|
272
|
-
const u0 =
|
|
272
|
+
const u0 = P.forwardRef(
|
|
273
273
|
function(t, r) {
|
|
274
274
|
const { size: n, variant: o, borderless: i, ...s } = t;
|
|
275
275
|
return /* @__PURE__ */ f(nt.PropsProvider, { value: { size: n, variant: o, borderless: i }, children: /* @__PURE__ */ f(mr, { gap: "0", spaceX: "-3", ref: r, ...s }) });
|
|
@@ -282,13 +282,13 @@ function Ut(e, t, { signal: r, edges: n } = {}) {
|
|
|
282
282
|
}, h = () => {
|
|
283
283
|
l && p(), m();
|
|
284
284
|
};
|
|
285
|
-
let
|
|
285
|
+
let b = null;
|
|
286
286
|
const _ = () => {
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
b != null && clearTimeout(b), b = setTimeout(() => {
|
|
288
|
+
b = null, h();
|
|
289
289
|
}, t);
|
|
290
290
|
}, S = () => {
|
|
291
|
-
|
|
291
|
+
b !== null && (clearTimeout(b), b = null);
|
|
292
292
|
}, m = () => {
|
|
293
293
|
S(), o = void 0, i = null;
|
|
294
294
|
}, T = () => {
|
|
@@ -297,7 +297,7 @@ function Ut(e, t, { signal: r, edges: n } = {}) {
|
|
|
297
297
|
if (r != null && r.aborted)
|
|
298
298
|
return;
|
|
299
299
|
o = this, i = w;
|
|
300
|
-
const R =
|
|
300
|
+
const R = b == null;
|
|
301
301
|
_(), s && R && p();
|
|
302
302
|
};
|
|
303
303
|
return O.schedule = _, O.cancel = m, O.flush = T, r == null || r.addEventListener("abort", m, { once: !0 }), O;
|
|
@@ -342,22 +342,22 @@ function bl() {
|
|
|
342
342
|
w.a.style.cssText = "max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:" + R + ";";
|
|
343
343
|
}
|
|
344
344
|
function i(w) {
|
|
345
|
-
var R = w.a.offsetWidth,
|
|
346
|
-
return w.f.style.width =
|
|
345
|
+
var R = w.a.offsetWidth, C = R + 100;
|
|
346
|
+
return w.f.style.width = C + "px", w.c.scrollLeft = C, w.b.scrollLeft = w.b.scrollWidth + 100, w.g !== R ? (w.g = R, !0) : !1;
|
|
347
347
|
}
|
|
348
348
|
function s(w, R) {
|
|
349
|
-
function
|
|
349
|
+
function C() {
|
|
350
350
|
var F = N;
|
|
351
351
|
i(F) && F.a.parentNode && R(F.g);
|
|
352
352
|
}
|
|
353
353
|
var N = w;
|
|
354
|
-
t(w.b,
|
|
354
|
+
t(w.b, C), t(w.c, C), i(w);
|
|
355
355
|
}
|
|
356
356
|
function l(w, R) {
|
|
357
|
-
var
|
|
358
|
-
this.family = w, this.style =
|
|
357
|
+
var C = R || {};
|
|
358
|
+
this.family = w, this.style = C.style || "normal", this.weight = C.weight || "normal", this.stretch = C.stretch || "normal";
|
|
359
359
|
}
|
|
360
|
-
var p = null, h = null,
|
|
360
|
+
var p = null, h = null, b = null, _ = null;
|
|
361
361
|
function S() {
|
|
362
362
|
if (h === null) if (m() && /Apple/.test(window.navigator.vendor)) {
|
|
363
363
|
var w = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);
|
|
@@ -369,64 +369,64 @@ function bl() {
|
|
|
369
369
|
return _ === null && (_ = !!document.fonts), _;
|
|
370
370
|
}
|
|
371
371
|
function T() {
|
|
372
|
-
if (
|
|
372
|
+
if (b === null) {
|
|
373
373
|
var w = document.createElement("div");
|
|
374
374
|
try {
|
|
375
375
|
w.style.font = "condensed 100px sans-serif";
|
|
376
376
|
} catch {
|
|
377
377
|
}
|
|
378
|
-
|
|
378
|
+
b = w.style.font !== "";
|
|
379
379
|
}
|
|
380
|
-
return
|
|
380
|
+
return b;
|
|
381
381
|
}
|
|
382
382
|
function O(w, R) {
|
|
383
383
|
return [w.style, w.weight, T() ? w.stretch : "", "100px", R].join(" ");
|
|
384
384
|
}
|
|
385
385
|
l.prototype.load = function(w, R) {
|
|
386
|
-
var
|
|
387
|
-
return new Promise(function(
|
|
386
|
+
var C = this, N = w || "BESbswy", F = 0, D = R || 3e3, M = (/* @__PURE__ */ new Date()).getTime();
|
|
387
|
+
return new Promise(function(W, a) {
|
|
388
388
|
if (m() && !S()) {
|
|
389
|
-
var c = new Promise(function(
|
|
389
|
+
var c = new Promise(function(g, u) {
|
|
390
390
|
function v() {
|
|
391
|
-
(/* @__PURE__ */ new Date()).getTime() - M >= D ? u(Error("" + D + "ms timeout exceeded")) : document.fonts.load(O(
|
|
392
|
-
1 <= y.length ?
|
|
391
|
+
(/* @__PURE__ */ new Date()).getTime() - M >= D ? u(Error("" + D + "ms timeout exceeded")) : document.fonts.load(O(C, '"' + C.family + '"'), N).then(function(y) {
|
|
392
|
+
1 <= y.length ? g() : setTimeout(v, 25);
|
|
393
393
|
}, u);
|
|
394
394
|
}
|
|
395
395
|
v();
|
|
396
|
-
}), d = new Promise(function(
|
|
396
|
+
}), d = new Promise(function(g, u) {
|
|
397
397
|
F = setTimeout(function() {
|
|
398
398
|
u(Error("" + D + "ms timeout exceeded"));
|
|
399
399
|
}, D);
|
|
400
400
|
});
|
|
401
401
|
Promise.race([d, c]).then(
|
|
402
402
|
function() {
|
|
403
|
-
clearTimeout(F),
|
|
403
|
+
clearTimeout(F), W(C);
|
|
404
404
|
},
|
|
405
405
|
a
|
|
406
406
|
);
|
|
407
407
|
} else r(function() {
|
|
408
|
-
function
|
|
408
|
+
function g() {
|
|
409
409
|
var H;
|
|
410
|
-
(H = x != -1 && A != -1 || x != -1 && k != -1 || A != -1 && k != -1) && ((H = x != A && x != k && A != k) || (p === null && (H = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent), p = !!H && (536 > parseInt(H[1], 10) || parseInt(H[1], 10) === 536 && 11 >= parseInt(H[2], 10))), H = p && (x == z && A == z && k == z || x == I && A == I && k == I || x == B && A == B && k == B)), H = !H), H && (
|
|
410
|
+
(H = x != -1 && A != -1 || x != -1 && k != -1 || A != -1 && k != -1) && ((H = x != A && x != k && A != k) || (p === null && (H = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent), p = !!H && (536 > parseInt(H[1], 10) || parseInt(H[1], 10) === 536 && 11 >= parseInt(H[2], 10))), H = p && (x == z && A == z && k == z || x == I && A == I && k == I || x == B && A == B && k == B)), H = !H), H && (j.parentNode && j.parentNode.removeChild(j), clearTimeout(F), W(C));
|
|
411
411
|
}
|
|
412
412
|
function u() {
|
|
413
|
-
if ((/* @__PURE__ */ new Date()).getTime() - M >= D)
|
|
413
|
+
if ((/* @__PURE__ */ new Date()).getTime() - M >= D) j.parentNode && j.parentNode.removeChild(j), a(Error("" + D + "ms timeout exceeded"));
|
|
414
414
|
else {
|
|
415
415
|
var H = document.hidden;
|
|
416
|
-
(H === !0 || H === void 0) && (x = v.a.offsetWidth, A = y.a.offsetWidth, k =
|
|
416
|
+
(H === !0 || H === void 0) && (x = v.a.offsetWidth, A = y.a.offsetWidth, k = E.a.offsetWidth, g()), F = setTimeout(u, 50);
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var v = new n(N), y = new n(N),
|
|
420
|
-
|
|
421
|
-
x = H,
|
|
419
|
+
var v = new n(N), y = new n(N), E = new n(N), x = -1, A = -1, k = -1, z = -1, I = -1, B = -1, j = document.createElement("div");
|
|
420
|
+
j.dir = "ltr", o(v, O(C, "sans-serif")), o(y, O(C, "serif")), o(E, O(C, "monospace")), j.appendChild(v.a), j.appendChild(y.a), j.appendChild(E.a), document.body.appendChild(j), z = v.a.offsetWidth, I = y.a.offsetWidth, B = E.a.offsetWidth, u(), s(v, function(H) {
|
|
421
|
+
x = H, g();
|
|
422
422
|
}), o(
|
|
423
423
|
v,
|
|
424
|
-
O(
|
|
424
|
+
O(C, '"' + C.family + '",sans-serif')
|
|
425
425
|
), s(y, function(H) {
|
|
426
|
-
A = H,
|
|
427
|
-
}), o(y, O(
|
|
428
|
-
k = H,
|
|
429
|
-
}), o(
|
|
426
|
+
A = H, g();
|
|
427
|
+
}), o(y, O(C, '"' + C.family + '",serif')), s(E, function(H) {
|
|
428
|
+
k = H, g();
|
|
429
|
+
}), o(E, O(C, '"' + C.family + '",monospace'));
|
|
430
430
|
});
|
|
431
431
|
});
|
|
432
432
|
}, e.exports = l;
|
|
@@ -438,17 +438,17 @@ const vl = /* @__PURE__ */ gl(ml);
|
|
|
438
438
|
function _l(e = [], { testString: t, timeout: r } = {}, { showErrors: n } = { showErrors: !1 }) {
|
|
439
439
|
const [o, i] = vr(!1), s = JSON.stringify(e);
|
|
440
440
|
return Wi(() => {
|
|
441
|
-
const l = JSON.parse(s).map(({ family: p, weight: h, style:
|
|
441
|
+
const l = JSON.parse(s).map(({ family: p, weight: h, style: b, stretch: _ }) => new vl(p, { weight: h, style: b, stretch: _ }).load(t, r));
|
|
442
442
|
Promise.all(l).then(() => i(!0)).catch(() => {
|
|
443
443
|
n && console.error("An error occurred during font loading");
|
|
444
444
|
});
|
|
445
445
|
}, [s, t, r, n]), o;
|
|
446
446
|
}
|
|
447
447
|
function yl(e) {
|
|
448
|
-
const t =
|
|
449
|
-
return
|
|
448
|
+
const t = P.useRef(null), r = P.useRef(e);
|
|
449
|
+
return P.useLayoutEffect(() => {
|
|
450
450
|
r.current = e;
|
|
451
|
-
}),
|
|
451
|
+
}), P.useEffect(() => {
|
|
452
452
|
const n = (o) => {
|
|
453
453
|
const i = t.current;
|
|
454
454
|
i && !i.contains(o.target) && r.current(o);
|
|
@@ -463,7 +463,7 @@ function El(e) {
|
|
|
463
463
|
t.value = e, document.body.appendChild(t), t.select(), document.execCommand("copy"), document.body.removeChild(t);
|
|
464
464
|
}
|
|
465
465
|
function Cl() {
|
|
466
|
-
const [e, t] =
|
|
466
|
+
const [e, t] = P.useState(null), r = P.useCallback((n) => {
|
|
467
467
|
(async () => {
|
|
468
468
|
var i;
|
|
469
469
|
try {
|
|
@@ -479,8 +479,8 @@ function Cl() {
|
|
|
479
479
|
return [e, r];
|
|
480
480
|
}
|
|
481
481
|
function xl(e, t) {
|
|
482
|
-
const [r, n] =
|
|
483
|
-
return
|
|
482
|
+
const [r, n] = P.useState(e);
|
|
483
|
+
return P.useEffect(() => {
|
|
484
484
|
const o = setTimeout(() => {
|
|
485
485
|
n(e);
|
|
486
486
|
}, t);
|
|
@@ -511,7 +511,7 @@ const Tl = /^https?:\/\//i, Sl = /^ipfs:\/\//i, kl = /^(?:0x)?[\da-fA-F]+$/, Al
|
|
|
511
511
|
HEX_REGEXP_WITH_0X: Al,
|
|
512
512
|
IPFS_PREFIX: Sl,
|
|
513
513
|
URL_PREFIX: Tl
|
|
514
|
-
}, Symbol.toStringTag, { value: "Module" })), Ol = (e) => e == null ? void 0 : e.replaceAll("'", '"'),
|
|
514
|
+
}, Symbol.toStringTag, { value: "Module" })), Ol = (e) => e == null ? void 0 : e.replaceAll("'", '"'), L = (e) => {
|
|
515
515
|
const t = (Fr() ? window.__envs : process.env) ?? {};
|
|
516
516
|
if (Fr() && t.NEXT_PUBLIC_APP_INSTANCE === "pw") {
|
|
517
517
|
const r = localStorage.getItem(e);
|
|
@@ -526,7 +526,7 @@ const Tl = /^https?:\/\//i, Sl = /^ipfs:\/\//i, kl = /^(?:0x)?[\da-fA-F]+$/, Al
|
|
|
526
526
|
return null;
|
|
527
527
|
}
|
|
528
528
|
}, Ee = (e) => {
|
|
529
|
-
const t =
|
|
529
|
+
const t = L(e);
|
|
530
530
|
if (t)
|
|
531
531
|
return Rl(e, t);
|
|
532
532
|
}, Rl = (e, t) => {
|
|
@@ -547,12 +547,12 @@ function Pl(e) {
|
|
|
547
547
|
return te(e) ? "json" : void 0;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
const _r =
|
|
550
|
+
const _r = L("NEXT_PUBLIC_API_HOST"), Yi = L("NEXT_PUBLIC_API_PROTOCOL") || "https", ot = L("NEXT_PUBLIC_API_PORT"), Ll = [
|
|
551
551
|
Yi,
|
|
552
552
|
"://",
|
|
553
553
|
_r,
|
|
554
554
|
ot && ":" + ot
|
|
555
|
-
].filter(Boolean).join(""), Nl =
|
|
555
|
+
].filter(Boolean).join(""), Nl = L("NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL") || "wss", Dl = [
|
|
556
556
|
Nl,
|
|
557
557
|
"://",
|
|
558
558
|
_r,
|
|
@@ -563,20 +563,20 @@ const _r = P("NEXT_PUBLIC_API_HOST"), Yi = P("NEXT_PUBLIC_API_PROTOCOL") || "htt
|
|
|
563
563
|
port: ot,
|
|
564
564
|
endpoint: Ll,
|
|
565
565
|
socket: Dl,
|
|
566
|
-
basePath: Ft(
|
|
567
|
-
}), pr =
|
|
566
|
+
basePath: Ft(L("NEXT_PUBLIC_API_BASE_PATH") || "")
|
|
567
|
+
}), pr = L("NEXT_PUBLIC_APP_PORT"), Zi = L("NEXT_PUBLIC_APP_PROTOCOL"), Qi = L("NEXT_PUBLIC_APP_HOST"), zl = [
|
|
568
568
|
Zi || "https",
|
|
569
569
|
"://",
|
|
570
570
|
Qi,
|
|
571
571
|
pr && ":" + pr
|
|
572
|
-
].filter(Boolean).join(""), Ul =
|
|
572
|
+
].filter(Boolean).join(""), Ul = L("NEXT_PUBLIC_APP_ENV") === "development", Fl = L("NEXT_PUBLIC_APP_INSTANCE") === "pw", Ml = L("NEXT_PUBLIC_ICON_SPRITE_HASH"), yr = Object.freeze({
|
|
573
573
|
isDev: Ul,
|
|
574
574
|
isPw: Fl,
|
|
575
575
|
protocol: Zi,
|
|
576
576
|
host: Qi,
|
|
577
577
|
port: pr,
|
|
578
578
|
baseUrl: zl,
|
|
579
|
-
useProxy:
|
|
579
|
+
useProxy: L("NEXT_PUBLIC_USE_NEXT_JS_PROXY") === "true",
|
|
580
580
|
spriteHash: Ml
|
|
581
581
|
});
|
|
582
582
|
function Er(e) {
|
|
@@ -598,31 +598,31 @@ function h0(e) {
|
|
|
598
598
|
}
|
|
599
599
|
})() === e.toLowerCase() || "Incorrect domain" : !0;
|
|
600
600
|
}
|
|
601
|
-
const jl = 18, Mr =
|
|
602
|
-
const e =
|
|
601
|
+
const jl = 18, Mr = L("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "posting" : Mr === "zkEvm" ? "sequencing" : L("NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE") || "mining", Wl = (() => {
|
|
602
|
+
const e = L("NEXT_PUBLIC_NETWORK_RPC_URL"), t = Er(e);
|
|
603
603
|
if (e && t === !0)
|
|
604
604
|
return [e];
|
|
605
605
|
const r = te(e);
|
|
606
606
|
return Array.isArray(r) ? r : [];
|
|
607
607
|
})(), Ie = Object.freeze({
|
|
608
|
-
id:
|
|
609
|
-
name:
|
|
610
|
-
shortName:
|
|
608
|
+
id: L("NEXT_PUBLIC_NETWORK_ID"),
|
|
609
|
+
name: L("NEXT_PUBLIC_NETWORK_NAME"),
|
|
610
|
+
shortName: L("NEXT_PUBLIC_NETWORK_SHORT_NAME"),
|
|
611
611
|
currency: {
|
|
612
|
-
name:
|
|
613
|
-
weiName:
|
|
614
|
-
symbol:
|
|
615
|
-
decimals: Number(
|
|
612
|
+
name: L("NEXT_PUBLIC_NETWORK_CURRENCY_NAME"),
|
|
613
|
+
weiName: L("NEXT_PUBLIC_NETWORK_CURRENCY_WEI_NAME"),
|
|
614
|
+
symbol: L("NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL"),
|
|
615
|
+
decimals: Number(L("NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS")) || jl
|
|
616
616
|
},
|
|
617
617
|
secondaryCoin: {
|
|
618
|
-
symbol:
|
|
618
|
+
symbol: L("NEXT_PUBLIC_NETWORK_SECONDARY_COIN_SYMBOL")
|
|
619
619
|
},
|
|
620
|
-
hasMultipleGasCurrencies:
|
|
621
|
-
tokenStandard:
|
|
620
|
+
hasMultipleGasCurrencies: L("NEXT_PUBLIC_NETWORK_MULTIPLE_GAS_CURRENCIES") === "true",
|
|
621
|
+
tokenStandard: L("NEXT_PUBLIC_NETWORK_TOKEN_STANDARD_NAME") || "ERC",
|
|
622
622
|
rpcUrls: Wl,
|
|
623
|
-
isTestnet:
|
|
623
|
+
isTestnet: L("NEXT_PUBLIC_IS_TESTNET") === "true",
|
|
624
624
|
verificationType: Hl
|
|
625
|
-
}), $l =
|
|
625
|
+
}), $l = L("NEXT_PUBLIC_ADVANCED_FILTER_ENABLED") === "false", jr = "Advanced filter", Vl = Object.freeze($l ? {
|
|
626
626
|
title: jr,
|
|
627
627
|
isEnabled: !1
|
|
628
628
|
} : {
|
|
@@ -630,16 +630,16 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
630
630
|
isEnabled: !0
|
|
631
631
|
}), Xe = Object.freeze({
|
|
632
632
|
reCaptchaV2: {
|
|
633
|
-
siteKey:
|
|
633
|
+
siteKey: L("NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEY")
|
|
634
634
|
}
|
|
635
|
-
}), Hr = "My account", Cr =
|
|
635
|
+
}), Hr = "My account", Cr = L("NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED") === "true" && Xe.reCaptchaV2.siteKey ? Object.freeze({
|
|
636
636
|
title: Hr,
|
|
637
637
|
isEnabled: !0,
|
|
638
638
|
recaptchaSiteKey: Xe.reCaptchaV2.siteKey
|
|
639
639
|
}) : Object.freeze({
|
|
640
640
|
title: Hr,
|
|
641
641
|
isEnabled: !1
|
|
642
|
-
}), Wr =
|
|
642
|
+
}), Wr = L("NEXT_PUBLIC_CONTRACT_INFO_API_HOST"), $r = "Verified tokens info", Ji = Object.freeze(Wr ? {
|
|
643
643
|
title: $r,
|
|
644
644
|
isEnabled: !0,
|
|
645
645
|
api: {
|
|
@@ -649,7 +649,7 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
649
649
|
} : {
|
|
650
650
|
title: $r,
|
|
651
651
|
isEnabled: !1
|
|
652
|
-
}), Vr =
|
|
652
|
+
}), Vr = L("NEXT_PUBLIC_ADMIN_SERVICE_API_HOST"), Xl = 'Address verification in "My account"', Gl = Cr.isEnabled && Ji.isEnabled && Vr ? Object.freeze({
|
|
653
653
|
title: 'Address verification in "My account"',
|
|
654
654
|
isEnabled: !0,
|
|
655
655
|
api: {
|
|
@@ -659,7 +659,7 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
659
659
|
}) : Object.freeze({
|
|
660
660
|
title: Xl,
|
|
661
661
|
isEnabled: !1
|
|
662
|
-
}), Xr =
|
|
662
|
+
}), Xr = L("NEXT_PUBLIC_METADATA_SERVICE_API_HOST"), Gr = "Address metadata", ea = Object.freeze(Xr ? {
|
|
663
663
|
title: Gr,
|
|
664
664
|
isEnabled: !0,
|
|
665
665
|
api: {
|
|
@@ -677,11 +677,11 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
677
677
|
// 'getit', // temporary disabled
|
|
678
678
|
"none"
|
|
679
679
|
], Kl = ["coinzilla", "none"], Qe = (() => {
|
|
680
|
-
const e =
|
|
680
|
+
const e = L("NEXT_PUBLIC_AD_BANNER_PROVIDER");
|
|
681
681
|
return e && ql.includes(e) ? e : "slise";
|
|
682
|
-
})(), qr =
|
|
682
|
+
})(), qr = L("NEXT_PUBLIC_AD_BANNER_ADDITIONAL_PROVIDER"), ct = "Banner ads", Yl = (() => {
|
|
683
683
|
if (Qe === "adbutler") {
|
|
684
|
-
const e = te(
|
|
684
|
+
const e = te(L("NEXT_PUBLIC_AD_ADBUTLER_CONFIG_DESKTOP")), t = te(L("NEXT_PUBLIC_AD_ADBUTLER_CONFIG_MOBILE"));
|
|
685
685
|
if (e && t)
|
|
686
686
|
return Object.freeze({
|
|
687
687
|
title: ct,
|
|
@@ -696,7 +696,7 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
696
696
|
});
|
|
697
697
|
} else if (Qe !== "none") {
|
|
698
698
|
if (qr === "adbutler") {
|
|
699
|
-
const e = te(
|
|
699
|
+
const e = te(L("NEXT_PUBLIC_AD_ADBUTLER_CONFIG_DESKTOP")), t = te(L("NEXT_PUBLIC_AD_ADBUTLER_CONFIG_MOBILE"));
|
|
700
700
|
return Object.freeze({
|
|
701
701
|
title: ct,
|
|
702
702
|
isEnabled: !0,
|
|
@@ -721,7 +721,7 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
721
721
|
isEnabled: !1
|
|
722
722
|
});
|
|
723
723
|
})(), Kr = (() => {
|
|
724
|
-
const e =
|
|
724
|
+
const e = L("NEXT_PUBLIC_AD_TEXT_PROVIDER");
|
|
725
725
|
return e && Kl.includes(e) ? e : "coinzilla";
|
|
726
726
|
})(), Yr = "Text ads", Zl = Object.freeze(Kr !== "none" ? {
|
|
727
727
|
title: Yr,
|
|
@@ -730,18 +730,18 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
730
730
|
} : {
|
|
731
731
|
title: Yr,
|
|
732
732
|
isEnabled: !1
|
|
733
|
-
}), Zr = "Beacon chain", Ql =
|
|
733
|
+
}), Zr = "Beacon chain", Ql = L("NEXT_PUBLIC_HAS_BEACON_CHAIN") === "true" ? Object.freeze({
|
|
734
734
|
title: Zr,
|
|
735
735
|
isEnabled: !0,
|
|
736
736
|
currency: {
|
|
737
|
-
symbol:
|
|
737
|
+
symbol: L("NEXT_PUBLIC_BEACON_CHAIN_CURRENCY_SYMBOL") || L("NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL") || ""
|
|
738
738
|
// maybe we need some other default value here
|
|
739
739
|
}
|
|
740
740
|
}) : Object.freeze({
|
|
741
741
|
title: Zr,
|
|
742
742
|
isEnabled: !1
|
|
743
743
|
}), Qr = "Bridged tokens", Jl = (() => {
|
|
744
|
-
const e = te(
|
|
744
|
+
const e = te(L("NEXT_PUBLIC_BRIDGED_TOKENS_CHAINS")), t = te(L("NEXT_PUBLIC_BRIDGED_TOKENS_BRIDGES"));
|
|
745
745
|
return e && e.length > 0 && t && t.length > 0 ? Object.freeze({
|
|
746
746
|
title: Qr,
|
|
747
747
|
isEnabled: !0,
|
|
@@ -751,7 +751,7 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
751
751
|
title: Qr,
|
|
752
752
|
isEnabled: !1
|
|
753
753
|
});
|
|
754
|
-
})(), Jr =
|
|
754
|
+
})(), Jr = L("NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID"), en = "Blockchain interaction (writing to contract, etc.)", ta = /* all chain parameters are required for wagmi provider */ /* @wagmi/chains/dist/index.d.ts */ Ie.id && Ie.name && Ie.currency.name && Ie.currency.symbol && Ie.currency.decimals && Ie.rpcUrls.length > 0 && Jr ? Object.freeze({
|
|
755
755
|
title: en,
|
|
756
756
|
isEnabled: !0,
|
|
757
757
|
walletConnect: {
|
|
@@ -760,10 +760,10 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
760
760
|
}) : Object.freeze({
|
|
761
761
|
title: en,
|
|
762
762
|
isEnabled: !1
|
|
763
|
-
}), tn = "Celo chain", es =
|
|
763
|
+
}), tn = "Celo chain", es = L("NEXT_PUBLIC_CELO_ENABLED") === "true" ? Object.freeze({
|
|
764
764
|
title: tn,
|
|
765
765
|
isEnabled: !0,
|
|
766
|
-
L2UpgradeBlock:
|
|
766
|
+
L2UpgradeBlock: L("NEXT_PUBLIC_CELO_L2_UPGRADE_BLOCK") ? Number(L("NEXT_PUBLIC_CELO_L2_UPGRADE_BLOCK")) : void 0,
|
|
767
767
|
BLOCKS_PER_EPOCH: 17280
|
|
768
768
|
}) : Object.freeze({
|
|
769
769
|
title: tn,
|
|
@@ -777,27 +777,27 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
777
777
|
}) : Object.freeze({
|
|
778
778
|
title: rn,
|
|
779
779
|
isEnabled: !1
|
|
780
|
-
}), nn = "Data availability", rs =
|
|
780
|
+
}), nn = "Data availability", rs = L("NEXT_PUBLIC_DATA_AVAILABILITY_ENABLED") === "true" ? Object.freeze({
|
|
781
781
|
title: nn,
|
|
782
782
|
isEnabled: !0
|
|
783
783
|
}) : Object.freeze({
|
|
784
784
|
title: nn,
|
|
785
785
|
isEnabled: !1
|
|
786
|
-
}), on = te(
|
|
786
|
+
}), on = te(L("NEXT_PUBLIC_DEFI_DROPDOWN_ITEMS")) || [], an = "DeFi dropdown", ns = on.length > 0 ? Object.freeze({
|
|
787
787
|
title: an,
|
|
788
788
|
isEnabled: !0,
|
|
789
789
|
items: on
|
|
790
790
|
}) : Object.freeze({
|
|
791
791
|
title: an,
|
|
792
792
|
isEnabled: !1
|
|
793
|
-
}), ln =
|
|
793
|
+
}), ln = L("NEXT_PUBLIC_GAME_BADGE_CLAIM_LINK"), sn = "Easter egg badge", os = Object.freeze(ln ? {
|
|
794
794
|
title: sn,
|
|
795
795
|
isEnabled: !0,
|
|
796
796
|
badgeClaimLink: ln
|
|
797
797
|
} : {
|
|
798
798
|
title: sn,
|
|
799
799
|
isEnabled: !1
|
|
800
|
-
}), ut = te(
|
|
800
|
+
}), ut = te(L("NEXT_PUBLIC_TX_EXTERNAL_TRANSACTIONS_CONFIG")), cn = "External transactions", is = Object.freeze(ut ? {
|
|
801
801
|
title: cn,
|
|
802
802
|
isEnabled: !0,
|
|
803
803
|
chainName: ut.chain_name,
|
|
@@ -814,10 +814,10 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
814
814
|
"zkSync",
|
|
815
815
|
"scroll"
|
|
816
816
|
], $e = (() => {
|
|
817
|
-
const e =
|
|
817
|
+
const e = L("NEXT_PUBLIC_ROLLUP_TYPE");
|
|
818
818
|
return as.find((t) => t === e);
|
|
819
|
-
})(), ls =
|
|
820
|
-
const e = te(
|
|
819
|
+
})(), ls = L("NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL"), un = (() => {
|
|
820
|
+
const e = te(L("NEXT_PUBLIC_ROLLUP_PARENT_CHAIN")), t = Ft(L("NEXT_PUBLIC_ROLLUP_L1_BASE_URL") || ""), r = L("NEXT_PUBLIC_ROLLUP_PARENT_CHAIN_NAME");
|
|
821
821
|
if (!(!t && !(e != null && e.baseUrl)))
|
|
822
822
|
return {
|
|
823
823
|
...e,
|
|
@@ -829,21 +829,21 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
829
829
|
isEnabled: !0,
|
|
830
830
|
type: $e,
|
|
831
831
|
L2WithdrawalUrl: $e === "optimistic" ? ls : void 0,
|
|
832
|
-
outputRootsEnabled: $e === "optimistic" &&
|
|
833
|
-
interopEnabled: $e === "optimistic" &&
|
|
832
|
+
outputRootsEnabled: $e === "optimistic" && L("NEXT_PUBLIC_ROLLUP_OUTPUT_ROOTS_ENABLED") === "true",
|
|
833
|
+
interopEnabled: $e === "optimistic" && L("NEXT_PUBLIC_INTEROP_ENABLED") === "true",
|
|
834
834
|
homepage: {
|
|
835
|
-
showLatestBlocks:
|
|
835
|
+
showLatestBlocks: L("NEXT_PUBLIC_ROLLUP_HOMEPAGE_SHOW_LATEST_BLOCKS") === "true"
|
|
836
836
|
},
|
|
837
837
|
parentChain: un,
|
|
838
838
|
DA: {
|
|
839
839
|
celestia: {
|
|
840
|
-
namespace: $e === "arbitrum" ?
|
|
840
|
+
namespace: $e === "arbitrum" ? L("NEXT_PUBLIC_ROLLUP_DA_CELESTIA_NAMESPACE") : void 0
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
843
|
} : {
|
|
844
844
|
title: dn,
|
|
845
845
|
isEnabled: !1
|
|
846
|
-
}), fn = "Fault proof system", ss = Ge.isEnabled && Ge.type === "optimistic" &&
|
|
846
|
+
}), fn = "Fault proof system", ss = Ge.isEnabled && Ge.type === "optimistic" && L("NEXT_PUBLIC_FAULT_PROOF_ENABLED") === "true" ? Object.freeze({
|
|
847
847
|
title: fn,
|
|
848
848
|
isEnabled: !0
|
|
849
849
|
}) : Object.freeze({
|
|
@@ -852,9 +852,9 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
852
852
|
}), cs = [
|
|
853
853
|
"usd",
|
|
854
854
|
"gwei"
|
|
855
|
-
], us =
|
|
855
|
+
], us = L("NEXT_PUBLIC_GAS_TRACKER_ENABLED") === "false", pn = (() => {
|
|
856
856
|
var r;
|
|
857
|
-
const e =
|
|
857
|
+
const e = L("NEXT_PUBLIC_GAS_TRACKER_UNITS");
|
|
858
858
|
return e ? ((r = te(e)) == null ? void 0 : r.filter((n) => cs.includes(n))) || [] : ["usd", "gwei"];
|
|
859
859
|
})(), hn = "Gas tracker", ds = !us && pn.length > 0 ? Object.freeze({
|
|
860
860
|
title: hn,
|
|
@@ -863,7 +863,7 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
863
863
|
}) : Object.freeze({
|
|
864
864
|
title: hn,
|
|
865
865
|
isEnabled: !1
|
|
866
|
-
}), fs =
|
|
866
|
+
}), fs = L("NEXT_PUBLIC_MARKETPLACE_ENABLED"), gn = Ee("NEXT_PUBLIC_MARKETPLACE_CONFIG_URL"), bn = L("NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORM"), ps = L("NEXT_PUBLIC_MARKETPLACE_SUGGEST_IDEAS_FORM"), hs = Ee("NEXT_PUBLIC_MARKETPLACE_CATEGORIES_URL"), mn = L("NEXT_PUBLIC_ADMIN_SERVICE_API_HOST"), gs = Ee("NEXT_PUBLIC_MARKETPLACE_SECURITY_REPORTS_URL"), bs = L("NEXT_PUBLIC_MARKETPLACE_FEATURED_APP"), vn = Ee("NEXT_PUBLIC_MARKETPLACE_BANNER_CONTENT_URL"), _n = L("NEXT_PUBLIC_MARKETPLACE_BANNER_LINK_URL"), yn = L("NEXT_PUBLIC_MARKETPLACE_RATING_AIRTABLE_API_KEY"), En = L("NEXT_PUBLIC_MARKETPLACE_RATING_AIRTABLE_BASE_ID"), ms = Ee("NEXT_PUBLIC_MARKETPLACE_GRAPH_LINKS_URL"), Zt = "Marketplace", Mt = (() => {
|
|
867
867
|
if (fs === "true" && Ie.rpcUrls.length > 0 && bn) {
|
|
868
868
|
const e = {
|
|
869
869
|
submitFormUrl: bn,
|
|
@@ -903,7 +903,7 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
903
903
|
title: Zt,
|
|
904
904
|
isEnabled: !1
|
|
905
905
|
});
|
|
906
|
-
})(), Je = te(
|
|
906
|
+
})(), Je = te(L("NEXT_PUBLIC_GAS_REFUEL_PROVIDER_CONFIG")), Cn = "Get gas button", vs = Object.freeze(Je ? {
|
|
907
907
|
title: Cn,
|
|
908
908
|
isEnabled: !0,
|
|
909
909
|
name: Je.name,
|
|
@@ -913,47 +913,47 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
913
913
|
} : {
|
|
914
914
|
title: Cn,
|
|
915
915
|
isEnabled: !1
|
|
916
|
-
}), xn =
|
|
916
|
+
}), xn = L("NEXT_PUBLIC_GOOGLE_ANALYTICS_PROPERTY_ID"), wn = "Google analytics", _s = Object.freeze(xn ? {
|
|
917
917
|
title: wn,
|
|
918
918
|
isEnabled: !0,
|
|
919
919
|
propertyId: xn
|
|
920
920
|
} : {
|
|
921
921
|
title: wn,
|
|
922
922
|
isEnabled: !1
|
|
923
|
-
}), Tn =
|
|
923
|
+
}), Tn = L("NEXT_PUBLIC_GRAPHIQL_TRANSACTION"), Sn = "GraphQL API documentation", ys = Object.freeze(Tn === "none" ? {
|
|
924
924
|
title: Sn,
|
|
925
925
|
isEnabled: !1
|
|
926
926
|
} : {
|
|
927
927
|
title: Sn,
|
|
928
928
|
isEnabled: !0,
|
|
929
929
|
defaultTxHash: Tn
|
|
930
|
-
}), kn =
|
|
930
|
+
}), kn = L("NEXT_PUBLIC_GROWTH_BOOK_CLIENT_KEY"), An = "GrowthBook feature flagging and A/B testing", Es = Object.freeze(kn ? {
|
|
931
931
|
title: An,
|
|
932
932
|
isEnabled: !0,
|
|
933
933
|
clientKey: kn
|
|
934
934
|
} : {
|
|
935
935
|
title: An,
|
|
936
936
|
isEnabled: !1
|
|
937
|
-
}), In = "MetaSuites extension", Cs =
|
|
937
|
+
}), In = "MetaSuites extension", Cs = L("NEXT_PUBLIC_METASUITES_ENABLED") === "true" ? Object.freeze({
|
|
938
938
|
title: In,
|
|
939
939
|
isEnabled: !0
|
|
940
940
|
}) : Object.freeze({
|
|
941
941
|
title: In,
|
|
942
942
|
isEnabled: !1
|
|
943
|
-
}), On =
|
|
943
|
+
}), On = L("NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN"), Rn = "Mixpanel analytics", xs = Object.freeze(On ? {
|
|
944
944
|
title: Rn,
|
|
945
945
|
isEnabled: !0,
|
|
946
946
|
projectToken: On
|
|
947
947
|
} : {
|
|
948
948
|
title: Rn,
|
|
949
949
|
isEnabled: !1
|
|
950
|
-
}), Pn = "MUD framework", ws = Ge.isEnabled && Ge.type === "optimistic" &&
|
|
950
|
+
}), Pn = "MUD framework", ws = Ge.isEnabled && Ge.type === "optimistic" && L("NEXT_PUBLIC_HAS_MUD_FRAMEWORK") === "true" ? Object.freeze({
|
|
951
951
|
title: Pn,
|
|
952
952
|
isEnabled: !0
|
|
953
953
|
}) : Object.freeze({
|
|
954
954
|
title: Pn,
|
|
955
955
|
isEnabled: !1
|
|
956
|
-
}), Ln = te(
|
|
956
|
+
}), Ln = te(L("NEXT_PUBLIC_MULTICHAIN_BALANCE_PROVIDER_CONFIG")), Nn = "Multichain balance", Ts = Object.freeze(Ln ? {
|
|
957
957
|
title: Nn,
|
|
958
958
|
isEnabled: !0,
|
|
959
959
|
providers: Ln.map((e) => ({
|
|
@@ -965,7 +965,7 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
965
965
|
} : {
|
|
966
966
|
title: Nn,
|
|
967
967
|
isEnabled: !1
|
|
968
|
-
}), Dn =
|
|
968
|
+
}), Dn = L("NEXT_PUBLIC_NAME_SERVICE_API_HOST"), Bn = "Name service integration", Ss = Object.freeze(Dn ? {
|
|
969
969
|
title: Bn,
|
|
970
970
|
isEnabled: !0,
|
|
971
971
|
api: {
|
|
@@ -975,7 +975,7 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
975
975
|
} : {
|
|
976
976
|
title: Bn,
|
|
977
977
|
isEnabled: !1
|
|
978
|
-
}), zn =
|
|
978
|
+
}), zn = L("NEXT_PUBLIC_CONTRACT_INFO_API_HOST"), ks = L("NEXT_PUBLIC_DEX_POOLS_ENABLED") === "true", Un = "DEX Pools", As = Object.freeze(zn && ks ? {
|
|
979
979
|
title: Un,
|
|
980
980
|
isEnabled: !0,
|
|
981
981
|
api: {
|
|
@@ -985,7 +985,7 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
985
985
|
} : {
|
|
986
986
|
title: Un,
|
|
987
987
|
isEnabled: !1
|
|
988
|
-
}), Fn =
|
|
988
|
+
}), Fn = L("NEXT_PUBLIC_ADMIN_SERVICE_API_HOST"), Mn = "Public tag submission", Is = Xe.reCaptchaV2.siteKey && ea.isEnabled && Fn ? Object.freeze({
|
|
989
989
|
title: Mn,
|
|
990
990
|
isEnabled: !0,
|
|
991
991
|
api: {
|
|
@@ -995,14 +995,14 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
995
995
|
}) : Object.freeze({
|
|
996
996
|
title: Mn,
|
|
997
997
|
isEnabled: !1
|
|
998
|
-
}), Os = "https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml", jn =
|
|
998
|
+
}), Os = "https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml", jn = L("NEXT_PUBLIC_API_SPEC_URL"), Hn = "REST API documentation", Rs = Object.freeze(jn === "none" ? {
|
|
999
999
|
title: Hn,
|
|
1000
1000
|
isEnabled: !1
|
|
1001
1001
|
} : {
|
|
1002
1002
|
title: Hn,
|
|
1003
1003
|
isEnabled: !0,
|
|
1004
1004
|
specUrl: jn || Os
|
|
1005
|
-
}), Wn =
|
|
1005
|
+
}), Wn = L("NEXT_PUBLIC_REWARDS_SERVICE_API_HOST"), $n = "Rewards service integration", Ps = Wn && Cr.isEnabled && ta.isEnabled ? Object.freeze({
|
|
1006
1006
|
title: $n,
|
|
1007
1007
|
isEnabled: !0,
|
|
1008
1008
|
api: {
|
|
@@ -1012,11 +1012,11 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
1012
1012
|
}) : Object.freeze({
|
|
1013
1013
|
title: $n,
|
|
1014
1014
|
isEnabled: !1
|
|
1015
|
-
}), Vn =
|
|
1015
|
+
}), Vn = L("NEXT_PUBLIC_ROLLBAR_CLIENT_TOKEN"), Ls = (() => {
|
|
1016
1016
|
var t;
|
|
1017
|
-
const e =
|
|
1017
|
+
const e = L("NEXT_PUBLIC_APP_INSTANCE");
|
|
1018
1018
|
return e || ((t = yr.host) == null ? void 0 : t.replace(".blockscout.com", "").replace(".k8s-dev", "").replaceAll("-", "_"));
|
|
1019
|
-
})(), Ns =
|
|
1019
|
+
})(), Ns = L("NEXT_PUBLIC_APP_ENV") || "production", Ds = L("NEXT_PUBLIC_GIT_TAG") || L("NEXT_PUBLIC_GIT_COMMIT_SHA"), Xn = "Rollbar error monitoring", Bs = Object.freeze(Vn ? {
|
|
1020
1020
|
title: Xn,
|
|
1021
1021
|
isEnabled: !0,
|
|
1022
1022
|
clientToken: Vn,
|
|
@@ -1029,7 +1029,7 @@ const jl = 18, Mr = P("NEXT_PUBLIC_ROLLUP_TYPE"), Hl = Mr === "arbitrum" ? "post
|
|
|
1029
1029
|
});
|
|
1030
1030
|
function zs() {
|
|
1031
1031
|
try {
|
|
1032
|
-
const e =
|
|
1032
|
+
const e = L("NEXT_PUBLIC_SAFE_TX_SERVICE_URL");
|
|
1033
1033
|
return new URL("/api/v1/safes", e).toString();
|
|
1034
1034
|
} catch {
|
|
1035
1035
|
return;
|
|
@@ -1045,34 +1045,34 @@ const Gn = "Safe address tags", Us = (() => {
|
|
|
1045
1045
|
title: Gn,
|
|
1046
1046
|
isEnabled: !1
|
|
1047
1047
|
});
|
|
1048
|
-
})(), qn = "Save on gas with GasHawk", Fs =
|
|
1048
|
+
})(), qn = "Save on gas with GasHawk", Fs = L("NEXT_PUBLIC_SAVE_ON_GAS_ENABLED") === "true" && Mt.isEnabled ? Object.freeze({
|
|
1049
1049
|
title: qn,
|
|
1050
1050
|
isEnabled: !0,
|
|
1051
1051
|
apiUrlTemplate: "https://core.gashawk.io/apiv2/stats/address/<address>/savingsPotential/0x1"
|
|
1052
1052
|
}) : Object.freeze({
|
|
1053
1053
|
title: qn,
|
|
1054
1054
|
isEnabled: !1
|
|
1055
|
-
}), Kn =
|
|
1055
|
+
}), Kn = L("NEXT_PUBLIC_VISUALIZE_API_HOST"), Yn = "Solidity to UML diagrams", Ms = Object.freeze(Kn ? {
|
|
1056
1056
|
title: Yn,
|
|
1057
1057
|
isEnabled: !0,
|
|
1058
1058
|
api: {
|
|
1059
1059
|
endpoint: Kn,
|
|
1060
|
-
basePath: Ft(
|
|
1060
|
+
basePath: Ft(L("NEXT_PUBLIC_VISUALIZE_API_BASE_PATH") || "")
|
|
1061
1061
|
}
|
|
1062
1062
|
} : {
|
|
1063
1063
|
title: Yn,
|
|
1064
1064
|
isEnabled: !1
|
|
1065
|
-
}), Zn =
|
|
1065
|
+
}), Zn = L("NEXT_PUBLIC_STATS_API_HOST"), Qn = "Blockchain statistics", js = Object.freeze(Zn ? {
|
|
1066
1066
|
title: Qn,
|
|
1067
1067
|
isEnabled: !0,
|
|
1068
1068
|
api: {
|
|
1069
1069
|
endpoint: Zn,
|
|
1070
|
-
basePath: Ft(
|
|
1070
|
+
basePath: Ft(L("NEXT_PUBLIC_STATS_API_BASE_PATH") || "")
|
|
1071
1071
|
}
|
|
1072
1072
|
} : {
|
|
1073
1073
|
title: Qn,
|
|
1074
1074
|
isEnabled: !1
|
|
1075
|
-
}), Jn = "SUAVE chain", Hs =
|
|
1075
|
+
}), Jn = "SUAVE chain", Hs = L("NEXT_PUBLIC_IS_SUAVE_CHAIN") === "true" ? Object.freeze({
|
|
1076
1076
|
title: Jn,
|
|
1077
1077
|
isEnabled: !0
|
|
1078
1078
|
}) : Object.freeze({
|
|
@@ -1083,7 +1083,7 @@ const Gn = "Safe address tags", Us = (() => {
|
|
|
1083
1083
|
"noves",
|
|
1084
1084
|
"none"
|
|
1085
1085
|
], eo = "Transaction interpretation", to = (() => {
|
|
1086
|
-
const e =
|
|
1086
|
+
const e = L("NEXT_PUBLIC_TRANSACTION_INTERPRETATION_PROVIDER");
|
|
1087
1087
|
return e && Ws.includes(e) ? e : "none";
|
|
1088
1088
|
})(), $s = Object.freeze(to !== "none" ? {
|
|
1089
1089
|
title: eo,
|
|
@@ -1092,13 +1092,13 @@ const Gn = "Safe address tags", Us = (() => {
|
|
|
1092
1092
|
} : {
|
|
1093
1093
|
title: eo,
|
|
1094
1094
|
isEnabled: !1
|
|
1095
|
-
}), ro = "User operations", Vs =
|
|
1095
|
+
}), ro = "User operations", Vs = L("NEXT_PUBLIC_HAS_USER_OPS") === "true" ? Object.freeze({
|
|
1096
1096
|
title: ro,
|
|
1097
1097
|
isEnabled: !0
|
|
1098
1098
|
}) : Object.freeze({
|
|
1099
1099
|
title: ro,
|
|
1100
1100
|
isEnabled: !1
|
|
1101
|
-
}), De = te(
|
|
1101
|
+
}), De = te(L("NEXT_PUBLIC_ADDRESS_USERNAME_TAG"));
|
|
1102
1102
|
function Xs(e) {
|
|
1103
1103
|
try {
|
|
1104
1104
|
const t = e.replace("{address}", "0x0000000000000000000000000000000000000000");
|
|
@@ -1123,7 +1123,7 @@ const no = "User profile API", Gs = De && Xs(De.api_url_template) ? Object.freez
|
|
|
1123
1123
|
"blackfort",
|
|
1124
1124
|
"zilliqa"
|
|
1125
1125
|
], oo = (() => {
|
|
1126
|
-
const e =
|
|
1126
|
+
const e = L("NEXT_PUBLIC_VALIDATORS_CHAIN_TYPE");
|
|
1127
1127
|
return e && qs.includes(e) ? e : void 0;
|
|
1128
1128
|
})(), io = "Validators list", Ks = Object.freeze(oo ? {
|
|
1129
1129
|
title: io,
|
|
@@ -1138,7 +1138,7 @@ const no = "User profile API", Gs = De && Xs(De.api_url_template) ? Object.freez
|
|
|
1138
1138
|
"token_pocket"
|
|
1139
1139
|
], Qt = (() => {
|
|
1140
1140
|
var r;
|
|
1141
|
-
const e =
|
|
1141
|
+
const e = L("NEXT_PUBLIC_WEB3_WALLETS");
|
|
1142
1142
|
if (e === "none")
|
|
1143
1143
|
return;
|
|
1144
1144
|
const t = (r = te(e)) == null ? void 0 : r.filter((n) => Ys.includes(n));
|
|
@@ -1148,13 +1148,13 @@ const no = "User profile API", Gs = De && Xs(De.api_url_template) ? Object.freez
|
|
|
1148
1148
|
isEnabled: !0,
|
|
1149
1149
|
wallets: Qt,
|
|
1150
1150
|
addToken: {
|
|
1151
|
-
isDisabled:
|
|
1151
|
+
isDisabled: L("NEXT_PUBLIC_WEB3_DISABLE_ADD_TOKEN_TO_WALLET") === "true"
|
|
1152
1152
|
},
|
|
1153
1153
|
addNetwork: {}
|
|
1154
1154
|
}) : Object.freeze({
|
|
1155
1155
|
title: ao,
|
|
1156
1156
|
isEnabled: !1
|
|
1157
|
-
}), lo = "XStar score", so =
|
|
1157
|
+
}), lo = "XStar score", so = L("NEXT_PUBLIC_XSTAR_SCORE_URL"), Qs = Object.freeze(so ? {
|
|
1158
1158
|
title: lo,
|
|
1159
1159
|
url: so,
|
|
1160
1160
|
isEnabled: !0
|
|
@@ -1209,14 +1209,14 @@ const no = "User profile API", Gs = De && Xs(De.api_url_template) ? Object.freez
|
|
|
1209
1209
|
web3Wallet: Zs,
|
|
1210
1210
|
xStarScore: Qs
|
|
1211
1211
|
}, Symbol.toStringTag, { value: "Module" })), ec = "/static/og_image.png", tc = Object.freeze({
|
|
1212
|
-
promoteBlockscoutInTitle:
|
|
1212
|
+
promoteBlockscoutInTitle: L("NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE") !== "false",
|
|
1213
1213
|
og: {
|
|
1214
|
-
description:
|
|
1214
|
+
description: L("NEXT_PUBLIC_OG_DESCRIPTION") || "",
|
|
1215
1215
|
imageUrl: yr.baseUrl + (Ee("NEXT_PUBLIC_OG_IMAGE_URL") || ec),
|
|
1216
|
-
enhancedDataEnabled:
|
|
1216
|
+
enhancedDataEnabled: L("NEXT_PUBLIC_OG_ENHANCED_DATA_ENABLED") === "true"
|
|
1217
1217
|
},
|
|
1218
1218
|
seo: {
|
|
1219
|
-
enhancedDataEnabled:
|
|
1219
|
+
enhancedDataEnabled: L("NEXT_PUBLIC_SEO_ENHANCED_DATA_ENABLED") === "true"
|
|
1220
1220
|
}
|
|
1221
1221
|
}), rc = ["rpc_api", "eth_rpc_api"], nc = [
|
|
1222
1222
|
"latest_batch",
|
|
@@ -1275,23 +1275,23 @@ const no = "User profile API", Gs = De && Xs(De.api_url_template) ? Object.freez
|
|
|
1275
1275
|
], ac = [
|
|
1276
1276
|
"top_accounts"
|
|
1277
1277
|
], lc = ["base16", "bech32"], sc = (() => {
|
|
1278
|
-
const e =
|
|
1278
|
+
const e = L("NEXT_PUBLIC_VIEWS_ADDRESS_IDENTICON_TYPE");
|
|
1279
1279
|
return ic.find((t) => e === t) || "jazzicon";
|
|
1280
1280
|
})(), ra = (() => {
|
|
1281
|
-
const e = (te(
|
|
1281
|
+
const e = (te(L("NEXT_PUBLIC_VIEWS_ADDRESS_FORMAT")) || []).filter((t) => lc.includes(t));
|
|
1282
1282
|
return e.length === 0 ? ["base16"] : e;
|
|
1283
1283
|
})(), cc = (() => {
|
|
1284
|
-
const e =
|
|
1284
|
+
const e = L("NEXT_PUBLIC_VIEWS_ADDRESS_BECH_32_PREFIX");
|
|
1285
1285
|
if (!(!e || !ra.includes("bech32")))
|
|
1286
1286
|
return e.length >= 1 && e.length <= 83 ? e : void 0;
|
|
1287
1287
|
})(), uc = (() => {
|
|
1288
|
-
const e = te(
|
|
1288
|
+
const e = te(L("NEXT_PUBLIC_VIEWS_ADDRESS_HIDDEN_VIEWS")) || [];
|
|
1289
1289
|
return Array.isArray(e) ? ac.reduce((r, n) => (r[n] = e.includes(n), r), {}) : void 0;
|
|
1290
1290
|
})(), dc = (() => {
|
|
1291
|
-
const e =
|
|
1291
|
+
const e = L("NEXT_PUBLIC_VIEWS_CONTRACT_EXTRA_VERIFICATION_METHODS");
|
|
1292
1292
|
return e === "none" ? [] : e ? (te(e) || []).filter((r) => co.includes(r)) : co;
|
|
1293
1293
|
})(), fc = (() => {
|
|
1294
|
-
const e = te(
|
|
1294
|
+
const e = te(L("NEXT_PUBLIC_VIEWS_CONTRACT_LANGUAGE_FILTERS"));
|
|
1295
1295
|
return e ? e.filter((t) => uo.includes(t)) : uo.filter((r) => r !== "scilla");
|
|
1296
1296
|
})(), pc = Object.freeze({
|
|
1297
1297
|
identiconType: sc,
|
|
@@ -1300,7 +1300,7 @@ const no = "User profile API", Gs = De && Xs(De.api_url_template) ? Object.freez
|
|
|
1300
1300
|
bech32Prefix: cc
|
|
1301
1301
|
},
|
|
1302
1302
|
hiddenViews: uc,
|
|
1303
|
-
solidityscanEnabled:
|
|
1303
|
+
solidityscanEnabled: L("NEXT_PUBLIC_VIEWS_CONTRACT_SOLIDITYSCAN_ENABLED") === "true",
|
|
1304
1304
|
extraVerificationMethods: dc,
|
|
1305
1305
|
languageFilters: fc
|
|
1306
1306
|
}), hc = [
|
|
@@ -1312,17 +1312,17 @@ const no = "User profile API", Gs = De && Xs(De.api_url_template) ? Object.freez
|
|
|
1312
1312
|
"L1_status",
|
|
1313
1313
|
"batch"
|
|
1314
1314
|
], gc = (() => {
|
|
1315
|
-
const e = te(
|
|
1315
|
+
const e = te(L("NEXT_PUBLIC_VIEWS_BLOCK_HIDDEN_FIELDS")) || [];
|
|
1316
1316
|
return Array.isArray(e) ? hc.reduce((r, n) => (r[n] = e.includes(n), r), {}) : void 0;
|
|
1317
1317
|
})(), bc = Object.freeze({
|
|
1318
1318
|
hiddenFields: gc
|
|
1319
1319
|
}), mc = Object.freeze({
|
|
1320
|
-
marketplaces: te(
|
|
1320
|
+
marketplaces: te(L("NEXT_PUBLIC_VIEWS_NFT_MARKETPLACES")) || [],
|
|
1321
1321
|
verifiedFetch: {
|
|
1322
|
-
isEnabled:
|
|
1322
|
+
isEnabled: L("NEXT_PUBLIC_HELIA_VERIFIED_FETCH_ENABLED") !== "false"
|
|
1323
1323
|
}
|
|
1324
1324
|
}), vc = Object.freeze({
|
|
1325
|
-
hideScamTokensEnabled:
|
|
1325
|
+
hideScamTokensEnabled: L("NEXT_PUBLIC_VIEWS_TOKEN_SCAM_TOGGLE_ENABLED") === "true"
|
|
1326
1326
|
}), _c = [
|
|
1327
1327
|
"value",
|
|
1328
1328
|
"fee_currency",
|
|
@@ -1335,10 +1335,10 @@ const no = "User profile API", Gs = De && Xs(De.api_url_template) ? Object.freez
|
|
|
1335
1335
|
], yc = [
|
|
1336
1336
|
"fee_per_gas"
|
|
1337
1337
|
], Ec = (() => {
|
|
1338
|
-
const e = te(
|
|
1338
|
+
const e = te(L("NEXT_PUBLIC_VIEWS_TX_HIDDEN_FIELDS")) || [];
|
|
1339
1339
|
return Array.isArray(e) ? _c.reduce((r, n) => (r[n] = e.includes(n), r), {}) : void 0;
|
|
1340
1340
|
})(), Cc = (() => {
|
|
1341
|
-
const e = te(
|
|
1341
|
+
const e = te(L("NEXT_PUBLIC_VIEWS_TX_ADDITIONAL_FIELDS")) || [];
|
|
1342
1342
|
return Array.isArray(e) ? yc.reduce((r, n) => (r[n] = e.includes(n), r), {}) : void 0;
|
|
1343
1343
|
})(), xc = Object.freeze({
|
|
1344
1344
|
hiddenFields: Ec,
|
|
@@ -1351,20 +1351,20 @@ const no = "User profile API", Gs = De && Xs(De.api_url_template) ? Object.freez
|
|
|
1351
1351
|
token: vc,
|
|
1352
1352
|
tx: xc
|
|
1353
1353
|
}, Symbol.toStringTag, { value: "Module" })), Tc = (() => {
|
|
1354
|
-
const e = te(
|
|
1354
|
+
const e = te(L("NEXT_PUBLIC_NAVIGATION_HIDDEN_LINKS")) || [];
|
|
1355
1355
|
return Array.isArray(e) ? rc.reduce((r, n) => (r[n] = e.includes(n), r), {}) : void 0;
|
|
1356
1356
|
})(), Sc = (() => {
|
|
1357
|
-
const e = te(
|
|
1357
|
+
const e = te(L("NEXT_PUBLIC_HOMEPAGE_STATS"));
|
|
1358
1358
|
if (!Array.isArray(e)) {
|
|
1359
1359
|
const t = Ge;
|
|
1360
1360
|
return t.isEnabled && ["zkEvm", "zkSync", "arbitrum"].includes(t.type) ? ["latest_batch", "average_block_time", "total_txs", "wallet_addresses", "gas_tracker"] : ["total_blocks", "average_block_time", "total_txs", "wallet_addresses", "gas_tracker"];
|
|
1361
1361
|
}
|
|
1362
1362
|
return e.filter((t) => nc.includes(t));
|
|
1363
1363
|
})(), kc = (() => {
|
|
1364
|
-
const e = te(
|
|
1364
|
+
const e = te(L("NEXT_PUBLIC_NAVIGATION_HIGHLIGHTED_ROUTES"));
|
|
1365
1365
|
return Array.isArray(e) ? e : [];
|
|
1366
1366
|
})(), Ac = (() => {
|
|
1367
|
-
const e =
|
|
1367
|
+
const e = L("NEXT_PUBLIC_COLOR_THEME_DEFAULT");
|
|
1368
1368
|
return oc.find((t) => t.id === e);
|
|
1369
1369
|
})(), Ic = Object.freeze({
|
|
1370
1370
|
navigation: {
|
|
@@ -1378,52 +1378,52 @@ const no = "User profile API", Gs = De && Xs(De.api_url_template) ? Object.freez
|
|
|
1378
1378
|
},
|
|
1379
1379
|
hiddenLinks: Tc,
|
|
1380
1380
|
highlightedRoutes: kc,
|
|
1381
|
-
otherLinks: te(
|
|
1381
|
+
otherLinks: te(L("NEXT_PUBLIC_OTHER_LINKS")) || [],
|
|
1382
1382
|
featuredNetworks: Ee("NEXT_PUBLIC_FEATURED_NETWORKS"),
|
|
1383
|
-
layout:
|
|
1383
|
+
layout: L("NEXT_PUBLIC_NAVIGATION_LAYOUT") || "vertical"
|
|
1384
1384
|
},
|
|
1385
1385
|
footer: {
|
|
1386
1386
|
links: Ee("NEXT_PUBLIC_FOOTER_LINKS"),
|
|
1387
|
-
frontendVersion:
|
|
1388
|
-
frontendCommit:
|
|
1387
|
+
frontendVersion: L("NEXT_PUBLIC_GIT_TAG"),
|
|
1388
|
+
frontendCommit: L("NEXT_PUBLIC_GIT_COMMIT_SHA")
|
|
1389
1389
|
},
|
|
1390
1390
|
homepage: {
|
|
1391
|
-
charts: te(
|
|
1391
|
+
charts: te(L("NEXT_PUBLIC_HOMEPAGE_CHARTS")) || [],
|
|
1392
1392
|
stats: Sc,
|
|
1393
|
-
heroBanner: te(
|
|
1393
|
+
heroBanner: te(L("NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG")),
|
|
1394
1394
|
// !!! DEPRECATED !!!
|
|
1395
1395
|
plate: {
|
|
1396
|
-
background:
|
|
1397
|
-
textColor:
|
|
1396
|
+
background: L("NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND"),
|
|
1397
|
+
textColor: L("NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR")
|
|
1398
1398
|
}
|
|
1399
1399
|
},
|
|
1400
1400
|
views: wc,
|
|
1401
1401
|
indexingAlert: {
|
|
1402
1402
|
blocks: {
|
|
1403
|
-
isHidden:
|
|
1403
|
+
isHidden: L("NEXT_PUBLIC_HIDE_INDEXING_ALERT_BLOCKS") === "true"
|
|
1404
1404
|
},
|
|
1405
1405
|
intTxs: {
|
|
1406
|
-
isHidden:
|
|
1406
|
+
isHidden: L("NEXT_PUBLIC_HIDE_INDEXING_ALERT_INT_TXS") === "true"
|
|
1407
1407
|
}
|
|
1408
1408
|
},
|
|
1409
1409
|
maintenanceAlert: {
|
|
1410
|
-
message:
|
|
1410
|
+
message: L("NEXT_PUBLIC_MAINTENANCE_ALERT_MESSAGE")
|
|
1411
1411
|
},
|
|
1412
1412
|
explorers: {
|
|
1413
|
-
items: te(
|
|
1413
|
+
items: te(L("NEXT_PUBLIC_NETWORK_EXPLORERS")) || []
|
|
1414
1414
|
},
|
|
1415
1415
|
ides: {
|
|
1416
|
-
items: te(
|
|
1416
|
+
items: te(L("NEXT_PUBLIC_CONTRACT_CODE_IDES")) || []
|
|
1417
1417
|
},
|
|
1418
|
-
hasContractAuditReports:
|
|
1418
|
+
hasContractAuditReports: L("NEXT_PUBLIC_HAS_CONTRACT_AUDIT_REPORTS") === "true",
|
|
1419
1419
|
colorTheme: {
|
|
1420
1420
|
default: Ac
|
|
1421
1421
|
},
|
|
1422
1422
|
fonts: {
|
|
1423
|
-
heading: te(
|
|
1424
|
-
body: te(
|
|
1423
|
+
heading: te(L("NEXT_PUBLIC_FONT_FAMILY_HEADING")),
|
|
1424
|
+
body: te(L("NEXT_PUBLIC_FONT_FAMILY_BODY"))
|
|
1425
1425
|
},
|
|
1426
|
-
maxContentWidth:
|
|
1426
|
+
maxContentWidth: L("NEXT_PUBLIC_MAX_CONTENT_WIDTH_ENABLED") !== "false"
|
|
1427
1427
|
}), at = Object.freeze({
|
|
1428
1428
|
app: yr,
|
|
1429
1429
|
chain: Ie,
|
|
@@ -1436,9 +1436,9 @@ const no = "User profile API", Gs = De && Xs(De.api_url_template) ? Object.freez
|
|
|
1436
1436
|
function xr(e = !0) {
|
|
1437
1437
|
return Ua({ base: !0, lg: !1 }, { ssr: e });
|
|
1438
1438
|
}
|
|
1439
|
-
const wr =
|
|
1439
|
+
const wr = P.forwardRef(
|
|
1440
1440
|
function(t, r) {
|
|
1441
|
-
var
|
|
1441
|
+
var z;
|
|
1442
1442
|
const {
|
|
1443
1443
|
showArrow: n,
|
|
1444
1444
|
onOpenChange: o,
|
|
@@ -1447,7 +1447,7 @@ const wr = L.forwardRef(
|
|
|
1447
1447
|
children: l,
|
|
1448
1448
|
disabled: p,
|
|
1449
1449
|
disableOnMobile: h,
|
|
1450
|
-
portalled:
|
|
1450
|
+
portalled: b = !0,
|
|
1451
1451
|
content: _,
|
|
1452
1452
|
contentProps: S,
|
|
1453
1453
|
portalRef: m,
|
|
@@ -1455,42 +1455,43 @@ const wr = L.forwardRef(
|
|
|
1455
1455
|
lazyMount: O = !0,
|
|
1456
1456
|
unmountOnExit: w = !0,
|
|
1457
1457
|
triggerProps: R,
|
|
1458
|
-
closeDelay:
|
|
1458
|
+
closeDelay: C = 100,
|
|
1459
1459
|
openDelay: N = 100,
|
|
1460
1460
|
interactive: F,
|
|
1461
1461
|
...D
|
|
1462
|
-
} = t, [M,
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
j(!1);
|
|
1466
|
-
}, E));
|
|
1467
|
-
}, [E, F]), b = yl(d), u = L.useCallback((z) => {
|
|
1468
|
-
j(z.open), o == null || o(z);
|
|
1469
|
-
}, [o]), v = L.useCallback(() => {
|
|
1462
|
+
} = t, [M, W] = P.useState(T), a = P.useRef(null), c = xr(), d = P.useCallback((I) => {
|
|
1463
|
+
W(I.open), o == null || o(I);
|
|
1464
|
+
}, [o]), g = P.useCallback((I) => {
|
|
1470
1465
|
a.current && window.clearTimeout(a.current), a.current = window.setTimeout(() => {
|
|
1471
|
-
|
|
1472
|
-
},
|
|
1473
|
-
}, [
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1466
|
+
W(I), o == null || o({ open: I });
|
|
1467
|
+
}, I ? N : C);
|
|
1468
|
+
}, [C, N, o]), u = P.useCallback((I) => {
|
|
1469
|
+
var B;
|
|
1470
|
+
F && ((B = I.target) != null && B.closest(".chakra-tooltip__positioner")) || g(!1);
|
|
1471
|
+
}, [F, g]), v = yl(u), y = P.useCallback(() => {
|
|
1472
|
+
g(!M);
|
|
1473
|
+
}, [g, M]), E = P.useCallback((I) => {
|
|
1474
|
+
var B;
|
|
1475
|
+
I.stopPropagation(), F && ((B = I.target) != null && B.closest("a")) && g(!1);
|
|
1476
|
+
}, [F, g]);
|
|
1477
|
+
if (P.useEffect(() => () => {
|
|
1477
1478
|
a.current && clearTimeout(a.current);
|
|
1478
1479
|
}, []), p || h && c) return l;
|
|
1479
|
-
const
|
|
1480
|
+
const A = n !== void 0 ? n : i !== "popover", k = {
|
|
1480
1481
|
...D.positioning,
|
|
1481
1482
|
overflowPadding: 4,
|
|
1482
1483
|
offset: {
|
|
1483
1484
|
mainAxis: 4,
|
|
1484
|
-
...(
|
|
1485
|
+
...(z = D.positioning) == null ? void 0 : z.offset
|
|
1485
1486
|
}
|
|
1486
1487
|
};
|
|
1487
1488
|
return /* @__PURE__ */ q(
|
|
1488
1489
|
He.Root,
|
|
1489
1490
|
{
|
|
1490
1491
|
openDelay: N,
|
|
1491
|
-
closeDelay: at.app.isPw ? 1e4 :
|
|
1492
|
+
closeDelay: at.app.isPw ? 1e4 : C,
|
|
1492
1493
|
open: M,
|
|
1493
|
-
onOpenChange:
|
|
1494
|
+
onOpenChange: d,
|
|
1494
1495
|
closeOnClick: !1,
|
|
1495
1496
|
closeOnPointerDown: !1,
|
|
1496
1497
|
variant: i,
|
|
@@ -1498,27 +1499,27 @@ const wr = L.forwardRef(
|
|
|
1498
1499
|
unmountOnExit: w,
|
|
1499
1500
|
interactive: F,
|
|
1500
1501
|
...D,
|
|
1501
|
-
positioning:
|
|
1502
|
+
positioning: k,
|
|
1502
1503
|
children: [
|
|
1503
1504
|
/* @__PURE__ */ f(
|
|
1504
1505
|
He.Trigger,
|
|
1505
1506
|
{
|
|
1506
|
-
ref: M ?
|
|
1507
|
+
ref: M ? v : null,
|
|
1507
1508
|
asChild: !0,
|
|
1508
|
-
onClick: c ?
|
|
1509
|
+
onClick: c ? y : void 0,
|
|
1509
1510
|
...R,
|
|
1510
1511
|
children: l
|
|
1511
1512
|
}
|
|
1512
1513
|
),
|
|
1513
|
-
/* @__PURE__ */ f(Fe, { disabled: !
|
|
1514
|
+
/* @__PURE__ */ f(Fe, { disabled: !b, container: m, children: /* @__PURE__ */ f(He.Positioner, { children: /* @__PURE__ */ q(
|
|
1514
1515
|
He.Content,
|
|
1515
1516
|
{
|
|
1516
1517
|
ref: r,
|
|
1517
|
-
onClick: F ?
|
|
1518
|
+
onClick: F ? E : void 0,
|
|
1518
1519
|
...s ? { "data-selected": !0 } : {},
|
|
1519
1520
|
...S,
|
|
1520
1521
|
children: [
|
|
1521
|
-
|
|
1522
|
+
A && /* @__PURE__ */ f(He.Arrow, { children: /* @__PURE__ */ f(He.ArrowTip, {}) }),
|
|
1522
1523
|
_
|
|
1523
1524
|
]
|
|
1524
1525
|
}
|
|
@@ -1625,7 +1626,7 @@ const Oc = ((Go = at.UI.fonts.heading) == null ? void 0 : Go.name) ?? "Poppins",
|
|
|
1625
1626
|
}
|
|
1626
1627
|
}
|
|
1627
1628
|
}, ia = U.memo(({ children: e, label: t, placement: r, interactive: n }) => {
|
|
1628
|
-
const o = U.useRef(null), [i, s] = U.useState(!1), { open: l, onToggle: p, onOpen: h, onClose:
|
|
1629
|
+
const o = U.useRef(null), [i, s] = U.useState(!1), { open: l, onToggle: p, onOpen: h, onClose: b } = na(), _ = _l([
|
|
1629
1630
|
{ family: oa }
|
|
1630
1631
|
]), S = U.useCallback(() => {
|
|
1631
1632
|
if (o.current) {
|
|
@@ -1649,7 +1650,7 @@ const Oc = ((Go = at.UI.fonts.heading) == null ? void 0 : Go.name) ?? "Poppins",
|
|
|
1649
1650
|
ref: o,
|
|
1650
1651
|
onClick: T,
|
|
1651
1652
|
onMouseEnter: h,
|
|
1652
|
-
onMouseLeave:
|
|
1653
|
+
onMouseLeave: b
|
|
1653
1654
|
}
|
|
1654
1655
|
);
|
|
1655
1656
|
return i ? /* @__PURE__ */ f(
|
|
@@ -1665,14 +1666,14 @@ const Oc = ((Go = at.UI.fonts.heading) == null ? void 0 : Go.name) ?? "Poppins",
|
|
|
1665
1666
|
) : O;
|
|
1666
1667
|
}), g0 = U.forwardRef(
|
|
1667
1668
|
function(t, r) {
|
|
1668
|
-
const { loading: n, startElement: o, children: i, asChild: s = !0, truncated: l = !1, endElement: p, ...h } = t,
|
|
1669
|
+
const { loading: n, startElement: o, children: i, asChild: s = !0, truncated: l = !1, endElement: p, ...h } = t, b = /* @__PURE__ */ f(Me.span, { overflow: "hidden", textOverflow: "ellipsis", children: i });
|
|
1669
1670
|
return /* @__PURE__ */ f(xe, { loading: n, asChild: s, ref: r, children: /* @__PURE__ */ q(Ma, { display: "inline-flex", alignItems: "center", whiteSpace: "nowrap", ...h, children: [
|
|
1670
1671
|
o,
|
|
1671
|
-
l ? /* @__PURE__ */ f(ia, { label: i, children:
|
|
1672
|
+
l ? /* @__PURE__ */ f(ia, { label: i, children: b }) : b,
|
|
1672
1673
|
p
|
|
1673
1674
|
] }) });
|
|
1674
1675
|
}
|
|
1675
|
-
), Lc =
|
|
1676
|
+
), Lc = P.forwardRef(
|
|
1676
1677
|
function(t, r) {
|
|
1677
1678
|
const { icon: n, children: o, inputProps: i, rootRef: s, ...l } = t;
|
|
1678
1679
|
return /* @__PURE__ */ q(Ye.Root, { ref: s, ...l, children: [
|
|
@@ -1681,7 +1682,7 @@ const Oc = ((Go = at.UI.fonts.heading) == null ? void 0 : Go.name) ?? "Poppins",
|
|
|
1681
1682
|
o != null && /* @__PURE__ */ f(Ye.Label, { children: o })
|
|
1682
1683
|
] });
|
|
1683
1684
|
}
|
|
1684
|
-
), b0 =
|
|
1685
|
+
), b0 = P.forwardRef(
|
|
1685
1686
|
function(t, r) {
|
|
1686
1687
|
const { children: n, orientation: o = "vertical", ...i } = t;
|
|
1687
1688
|
return /* @__PURE__ */ f(
|
|
@@ -1702,32 +1703,32 @@ var ae = {}, dt = {}, ft = {}, pt = {}, Jt, fo;
|
|
|
1702
1703
|
function Nc() {
|
|
1703
1704
|
if (fo) return Jt;
|
|
1704
1705
|
fo = 1;
|
|
1705
|
-
var e = "Expected a function", t = NaN, r = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, s = /^0o[0-7]+$/i, l = parseInt, p = typeof st == "object" && st && st.Object === Object && st, h = typeof self == "object" && self && self.Object === Object && self,
|
|
1706
|
-
return
|
|
1706
|
+
var e = "Expected a function", t = NaN, r = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, s = /^0o[0-7]+$/i, l = parseInt, p = typeof st == "object" && st && st.Object === Object && st, h = typeof self == "object" && self && self.Object === Object && self, b = p || h || Function("return this")(), _ = Object.prototype, S = _.toString, m = Math.max, T = Math.min, O = function() {
|
|
1707
|
+
return b.Date.now();
|
|
1707
1708
|
};
|
|
1708
|
-
function w(M,
|
|
1709
|
-
var c, d,
|
|
1709
|
+
function w(M, W, a) {
|
|
1710
|
+
var c, d, g, u, v, y, E = 0, x = !1, A = !1, k = !0;
|
|
1710
1711
|
if (typeof M != "function")
|
|
1711
1712
|
throw new TypeError(e);
|
|
1712
|
-
|
|
1713
|
+
W = D(W) || 0, C(a) && (x = !!a.leading, A = "maxWait" in a, g = A ? m(D(a.maxWait) || 0, W) : g, k = "trailing" in a ? !!a.trailing : k);
|
|
1713
1714
|
function z(Y) {
|
|
1714
1715
|
var Q = c, J = d;
|
|
1715
|
-
return c = d = void 0,
|
|
1716
|
+
return c = d = void 0, E = Y, u = M.apply(J, Q), u;
|
|
1716
1717
|
}
|
|
1717
1718
|
function I(Y) {
|
|
1718
|
-
return
|
|
1719
|
+
return E = Y, v = setTimeout(H, W), x ? z(Y) : u;
|
|
1719
1720
|
}
|
|
1720
1721
|
function B(Y) {
|
|
1721
|
-
var Q = Y - y, J = Y -
|
|
1722
|
-
return A ? T(re,
|
|
1722
|
+
var Q = Y - y, J = Y - E, re = W - Q;
|
|
1723
|
+
return A ? T(re, g - J) : re;
|
|
1723
1724
|
}
|
|
1724
|
-
function
|
|
1725
|
-
var Q = Y - y, J = Y -
|
|
1726
|
-
return y === void 0 || Q >=
|
|
1725
|
+
function j(Y) {
|
|
1726
|
+
var Q = Y - y, J = Y - E;
|
|
1727
|
+
return y === void 0 || Q >= W || Q < 0 || A && J >= g;
|
|
1727
1728
|
}
|
|
1728
1729
|
function H() {
|
|
1729
1730
|
var Y = O();
|
|
1730
|
-
if (
|
|
1731
|
+
if (j(Y))
|
|
1731
1732
|
return G(Y);
|
|
1732
1733
|
v = setTimeout(H, B(Y));
|
|
1733
1734
|
}
|
|
@@ -1735,36 +1736,36 @@ function Nc() {
|
|
|
1735
1736
|
return v = void 0, k && c ? z(Y) : (c = d = void 0, u);
|
|
1736
1737
|
}
|
|
1737
1738
|
function X() {
|
|
1738
|
-
v !== void 0 && clearTimeout(v),
|
|
1739
|
+
v !== void 0 && clearTimeout(v), E = 0, c = y = d = v = void 0;
|
|
1739
1740
|
}
|
|
1740
1741
|
function V() {
|
|
1741
1742
|
return v === void 0 ? u : G(O());
|
|
1742
1743
|
}
|
|
1743
1744
|
function K() {
|
|
1744
|
-
var Y = O(), Q =
|
|
1745
|
+
var Y = O(), Q = j(Y);
|
|
1745
1746
|
if (c = arguments, d = this, y = Y, Q) {
|
|
1746
1747
|
if (v === void 0)
|
|
1747
1748
|
return I(y);
|
|
1748
1749
|
if (A)
|
|
1749
|
-
return v = setTimeout(H,
|
|
1750
|
+
return v = setTimeout(H, W), z(y);
|
|
1750
1751
|
}
|
|
1751
|
-
return v === void 0 && (v = setTimeout(H,
|
|
1752
|
+
return v === void 0 && (v = setTimeout(H, W)), u;
|
|
1752
1753
|
}
|
|
1753
1754
|
return K.cancel = X, K.flush = V, K;
|
|
1754
1755
|
}
|
|
1755
|
-
function R(M,
|
|
1756
|
+
function R(M, W, a) {
|
|
1756
1757
|
var c = !0, d = !0;
|
|
1757
1758
|
if (typeof M != "function")
|
|
1758
1759
|
throw new TypeError(e);
|
|
1759
|
-
return
|
|
1760
|
+
return C(a) && (c = "leading" in a ? !!a.leading : c, d = "trailing" in a ? !!a.trailing : d), w(M, W, {
|
|
1760
1761
|
leading: c,
|
|
1761
|
-
maxWait:
|
|
1762
|
+
maxWait: W,
|
|
1762
1763
|
trailing: d
|
|
1763
1764
|
});
|
|
1764
1765
|
}
|
|
1765
|
-
function
|
|
1766
|
-
var
|
|
1767
|
-
return !!M && (
|
|
1766
|
+
function C(M) {
|
|
1767
|
+
var W = typeof M;
|
|
1768
|
+
return !!M && (W == "object" || W == "function");
|
|
1768
1769
|
}
|
|
1769
1770
|
function N(M) {
|
|
1770
1771
|
return !!M && typeof M == "object";
|
|
@@ -1777,9 +1778,9 @@ function Nc() {
|
|
|
1777
1778
|
return M;
|
|
1778
1779
|
if (F(M))
|
|
1779
1780
|
return t;
|
|
1780
|
-
if (
|
|
1781
|
-
var
|
|
1782
|
-
M =
|
|
1781
|
+
if (C(M)) {
|
|
1782
|
+
var W = typeof M.valueOf == "function" ? M.valueOf() : M;
|
|
1783
|
+
M = C(W) ? W + "" : W;
|
|
1783
1784
|
}
|
|
1784
1785
|
if (typeof M != "string")
|
|
1785
1786
|
return M === 0 ? M : +M;
|
|
@@ -1831,7 +1832,7 @@ function Sr() {
|
|
|
1831
1832
|
scrollSpyContainers: [],
|
|
1832
1833
|
mount: function(l, p) {
|
|
1833
1834
|
if (l) {
|
|
1834
|
-
var h = o(function(
|
|
1835
|
+
var h = o(function(b) {
|
|
1835
1836
|
i.scrollHandler(l);
|
|
1836
1837
|
}, p);
|
|
1837
1838
|
i.scrollSpyContainers.push(l), (0, r.addPassiveEventListener)(l, "scroll", h);
|
|
@@ -1892,7 +1893,7 @@ function jt() {
|
|
|
1892
1893
|
value: !0
|
|
1893
1894
|
});
|
|
1894
1895
|
var e = function(l, p) {
|
|
1895
|
-
var h = l.indexOf("#") === 0 ? l.substring(1) : l,
|
|
1896
|
+
var h = l.indexOf("#") === 0 ? l.substring(1) : l, b = h ? "#" + h : "", _ = window && window.location, S = b ? _.pathname + _.search + b : _.pathname + _.search;
|
|
1896
1897
|
p ? history.pushState(history.state, "", S) : history.replaceState(history.state, "", S);
|
|
1897
1898
|
}, t = function() {
|
|
1898
1899
|
return window.location.hash.replace(/^#/, "");
|
|
@@ -1903,9 +1904,9 @@ function jt() {
|
|
|
1903
1904
|
}, n = function(l) {
|
|
1904
1905
|
return getComputedStyle(l).position !== "static";
|
|
1905
1906
|
}, o = function(l, p) {
|
|
1906
|
-
for (var h = l.offsetTop,
|
|
1907
|
-
h +=
|
|
1908
|
-
return { offsetTop: h, offsetParent:
|
|
1907
|
+
for (var h = l.offsetTop, b = l.offsetParent; b && !p(b); )
|
|
1908
|
+
h += b.offsetTop, b = b.offsetParent;
|
|
1909
|
+
return { offsetTop: h, offsetParent: b };
|
|
1909
1910
|
}, i = function(l, p, h) {
|
|
1910
1911
|
if (h)
|
|
1911
1912
|
return l === document ? p.getBoundingClientRect().left + (window.scrollX || window.pageXOffset) : getComputedStyle(l).position !== "static" ? p.offsetLeft : p.offsetLeft - l.offsetLeft;
|
|
@@ -1913,9 +1914,9 @@ function jt() {
|
|
|
1913
1914
|
return p.getBoundingClientRect().top + (window.scrollY || window.pageYOffset);
|
|
1914
1915
|
if (n(l)) {
|
|
1915
1916
|
if (p.offsetParent !== l) {
|
|
1916
|
-
var
|
|
1917
|
+
var b = function(w) {
|
|
1917
1918
|
return w === l || w === document;
|
|
1918
|
-
}, _ = o(p,
|
|
1919
|
+
}, _ = o(p, b), S = _.offsetTop, m = _.offsetParent;
|
|
1919
1920
|
if (m !== l)
|
|
1920
1921
|
throw new Error("Seems containerElement is not an ancestor of the Element");
|
|
1921
1922
|
return S;
|
|
@@ -2045,8 +2046,8 @@ function aa() {
|
|
|
2045
2046
|
value: !0
|
|
2046
2047
|
});
|
|
2047
2048
|
var e = Object.assign || function(d) {
|
|
2048
|
-
for (var
|
|
2049
|
-
var u = arguments[
|
|
2049
|
+
for (var g = 1; g < arguments.length; g++) {
|
|
2050
|
+
var u = arguments[g];
|
|
2050
2051
|
for (var v in u)
|
|
2051
2052
|
Object.prototype.hasOwnProperty.call(u, v) && (d[v] = u[v]);
|
|
2052
2053
|
}
|
|
@@ -2057,17 +2058,17 @@ function aa() {
|
|
|
2057
2058
|
function p(d) {
|
|
2058
2059
|
return d && d.__esModule ? d : { default: d };
|
|
2059
2060
|
}
|
|
2060
|
-
var h = function(
|
|
2061
|
-
return n.default[
|
|
2062
|
-
},
|
|
2063
|
-
return typeof
|
|
2064
|
-
return
|
|
2061
|
+
var h = function(g) {
|
|
2062
|
+
return n.default[g.smooth] || n.default.defaultEasing;
|
|
2063
|
+
}, b = function(g) {
|
|
2064
|
+
return typeof g == "function" ? g : function() {
|
|
2065
|
+
return g;
|
|
2065
2066
|
};
|
|
2066
2067
|
}, _ = function() {
|
|
2067
2068
|
if (typeof window < "u")
|
|
2068
2069
|
return window.requestAnimationFrame || window.webkitRequestAnimationFrame;
|
|
2069
2070
|
}, S = function() {
|
|
2070
|
-
return _() || function(d,
|
|
2071
|
+
return _() || function(d, g, u) {
|
|
2071
2072
|
window.setTimeout(d, u || 1e3 / 60, (/* @__PURE__ */ new Date()).getTime());
|
|
2072
2073
|
};
|
|
2073
2074
|
}(), m = function() {
|
|
@@ -2086,53 +2087,53 @@ function aa() {
|
|
|
2086
2087
|
percent: null,
|
|
2087
2088
|
delayTimeout: null
|
|
2088
2089
|
};
|
|
2089
|
-
}, T = function(
|
|
2090
|
-
var u =
|
|
2090
|
+
}, T = function(g) {
|
|
2091
|
+
var u = g.data.containerElement;
|
|
2091
2092
|
if (u && u !== document && u !== document.body)
|
|
2092
2093
|
return u.scrollLeft;
|
|
2093
2094
|
var v = window.pageXOffset !== void 0, y = (document.compatMode || "") === "CSS1Compat";
|
|
2094
2095
|
return v ? window.pageXOffset : y ? document.documentElement.scrollLeft : document.body.scrollLeft;
|
|
2095
|
-
}, O = function(
|
|
2096
|
-
var u =
|
|
2096
|
+
}, O = function(g) {
|
|
2097
|
+
var u = g.data.containerElement;
|
|
2097
2098
|
if (u && u !== document && u !== document.body)
|
|
2098
2099
|
return u.scrollTop;
|
|
2099
2100
|
var v = window.pageXOffset !== void 0, y = (document.compatMode || "") === "CSS1Compat";
|
|
2100
2101
|
return v ? window.pageYOffset : y ? document.documentElement.scrollTop : document.body.scrollTop;
|
|
2101
|
-
}, w = function(
|
|
2102
|
-
var u =
|
|
2102
|
+
}, w = function(g) {
|
|
2103
|
+
var u = g.data.containerElement;
|
|
2103
2104
|
if (u && u !== document && u !== document.body)
|
|
2104
2105
|
return u.scrollWidth - u.offsetWidth;
|
|
2105
2106
|
var v = document.body, y = document.documentElement;
|
|
2106
2107
|
return Math.max(v.scrollWidth, v.offsetWidth, y.clientWidth, y.scrollWidth, y.offsetWidth);
|
|
2107
|
-
}, R = function(
|
|
2108
|
-
var u =
|
|
2108
|
+
}, R = function(g) {
|
|
2109
|
+
var u = g.data.containerElement;
|
|
2109
2110
|
if (u && u !== document && u !== document.body)
|
|
2110
2111
|
return u.scrollHeight - u.offsetHeight;
|
|
2111
2112
|
var v = document.body, y = document.documentElement;
|
|
2112
2113
|
return Math.max(v.scrollHeight, v.offsetHeight, y.clientHeight, y.scrollHeight, y.offsetHeight);
|
|
2113
|
-
},
|
|
2114
|
+
}, C = function d(g, u, v) {
|
|
2114
2115
|
var y = u.data;
|
|
2115
2116
|
if (!u.ignoreCancelEvents && y.cancel) {
|
|
2116
2117
|
l.default.registered.end && l.default.registered.end(y.to, y.target, y.currentPositionY);
|
|
2117
2118
|
return;
|
|
2118
2119
|
}
|
|
2119
|
-
if (y.delta = Math.round(y.targetPosition - y.startPosition), y.start === null && (y.start = v), y.progress = v - y.start, y.percent = y.progress >= y.duration ? 1 :
|
|
2120
|
-
var
|
|
2121
|
-
S.call(window,
|
|
2120
|
+
if (y.delta = Math.round(y.targetPosition - y.startPosition), y.start === null && (y.start = v), y.progress = v - y.start, y.percent = y.progress >= y.duration ? 1 : g(y.progress / y.duration), y.currentPosition = y.startPosition + Math.ceil(y.delta * y.percent), y.containerElement && y.containerElement !== document && y.containerElement !== document.body ? u.horizontal ? y.containerElement.scrollLeft = y.currentPosition : y.containerElement.scrollTop = y.currentPosition : u.horizontal ? window.scrollTo(y.currentPosition, 0) : window.scrollTo(0, y.currentPosition), y.percent < 1) {
|
|
2121
|
+
var E = d.bind(null, g, u);
|
|
2122
|
+
S.call(window, E);
|
|
2122
2123
|
return;
|
|
2123
2124
|
}
|
|
2124
2125
|
l.default.registered.end && l.default.registered.end(y.to, y.target, y.currentPosition);
|
|
2125
|
-
}, N = function(
|
|
2126
|
-
|
|
2127
|
-
}, F = function(
|
|
2126
|
+
}, N = function(g) {
|
|
2127
|
+
g.data.containerElement = g ? g.containerId ? document.getElementById(g.containerId) : g.container && g.container.nodeType ? g.container : document : null;
|
|
2128
|
+
}, F = function(g, u, v, y) {
|
|
2128
2129
|
if (u.data = u.data || m(), window.clearTimeout(u.data.delayTimeout), i.default.subscribe(function() {
|
|
2129
2130
|
u.data.cancel = !0;
|
|
2130
|
-
}), N(u), u.data.start = null, u.data.cancel = !1, u.data.startPosition = u.horizontal ? T(u) : O(u), u.data.targetPosition = u.absolute ?
|
|
2131
|
+
}), N(u), u.data.start = null, u.data.cancel = !1, u.data.startPosition = u.horizontal ? T(u) : O(u), u.data.targetPosition = u.absolute ? g : g + u.data.startPosition, u.data.startPosition === u.data.targetPosition) {
|
|
2131
2132
|
l.default.registered.end && l.default.registered.end(u.data.to, u.data.target, u.data.currentPosition);
|
|
2132
2133
|
return;
|
|
2133
2134
|
}
|
|
2134
|
-
u.data.delta = Math.round(u.data.targetPosition - u.data.startPosition), u.data.duration =
|
|
2135
|
-
var
|
|
2135
|
+
u.data.delta = Math.round(u.data.targetPosition - u.data.startPosition), u.data.duration = b(u.duration)(u.data.delta), u.data.duration = isNaN(parseFloat(u.data.duration)) ? 1e3 : parseFloat(u.data.duration), u.data.to = v, u.data.target = y;
|
|
2136
|
+
var E = h(u), x = C.bind(null, E, u);
|
|
2136
2137
|
if (u && u.delay > 0) {
|
|
2137
2138
|
u.data.delayTimeout = window.setTimeout(function() {
|
|
2138
2139
|
l.default.registered.begin && l.default.registered.begin(u.data.to, u.data.target), S.call(window, x);
|
|
@@ -2140,25 +2141,25 @@ function aa() {
|
|
|
2140
2141
|
return;
|
|
2141
2142
|
}
|
|
2142
2143
|
l.default.registered.begin && l.default.registered.begin(u.data.to, u.data.target), S.call(window, x);
|
|
2143
|
-
}, D = function(
|
|
2144
|
-
return
|
|
2145
|
-
}, M = function(
|
|
2146
|
-
F(0, D(
|
|
2147
|
-
},
|
|
2148
|
-
F(
|
|
2149
|
-
}, a = function(
|
|
2150
|
-
|
|
2151
|
-
}, c = function(
|
|
2144
|
+
}, D = function(g) {
|
|
2145
|
+
return g = e({}, g), g.data = g.data || m(), g.absolute = !0, g;
|
|
2146
|
+
}, M = function(g) {
|
|
2147
|
+
F(0, D(g));
|
|
2148
|
+
}, W = function(g, u) {
|
|
2149
|
+
F(g, D(u));
|
|
2150
|
+
}, a = function(g) {
|
|
2151
|
+
g = D(g), N(g), F(g.horizontal ? w(g) : R(g), g);
|
|
2152
|
+
}, c = function(g, u) {
|
|
2152
2153
|
u = D(u), N(u);
|
|
2153
2154
|
var v = u.horizontal ? T(u) : O(u);
|
|
2154
|
-
F(
|
|
2155
|
+
F(g + v, u);
|
|
2155
2156
|
};
|
|
2156
2157
|
return bt.default = {
|
|
2157
2158
|
animateTopScroll: F,
|
|
2158
2159
|
getAnimationType: h,
|
|
2159
2160
|
scrollToTop: M,
|
|
2160
2161
|
scrollToBottom: a,
|
|
2161
|
-
scrollTo:
|
|
2162
|
+
scrollTo: W,
|
|
2162
2163
|
scrollMore: c
|
|
2163
2164
|
}, bt;
|
|
2164
2165
|
}
|
|
@@ -2168,16 +2169,16 @@ function Ht() {
|
|
|
2168
2169
|
yo = 1, Object.defineProperty(ht, "__esModule", {
|
|
2169
2170
|
value: !0
|
|
2170
2171
|
});
|
|
2171
|
-
var e = Object.assign || function(
|
|
2172
|
+
var e = Object.assign || function(b) {
|
|
2172
2173
|
for (var _ = 1; _ < arguments.length; _++) {
|
|
2173
2174
|
var S = arguments[_];
|
|
2174
2175
|
for (var m in S)
|
|
2175
|
-
Object.prototype.hasOwnProperty.call(S, m) && (
|
|
2176
|
+
Object.prototype.hasOwnProperty.call(S, m) && (b[m] = S[m]);
|
|
2176
2177
|
}
|
|
2177
|
-
return
|
|
2178
|
+
return b;
|
|
2178
2179
|
}, t = jt(), r = l(t), n = aa(), o = l(n), i = kr(), s = l(i);
|
|
2179
|
-
function l(
|
|
2180
|
-
return
|
|
2180
|
+
function l(b) {
|
|
2181
|
+
return b && b.__esModule ? b : { default: b };
|
|
2181
2182
|
}
|
|
2182
2183
|
var p = {}, h = void 0;
|
|
2183
2184
|
return ht.default = {
|
|
@@ -2208,12 +2209,12 @@ function Ht() {
|
|
|
2208
2209
|
S = e({}, S, { absolute: !1 });
|
|
2209
2210
|
var T = S.containerId, O = S.container, w = void 0;
|
|
2210
2211
|
T ? w = document.getElementById(T) : O && O.nodeType ? w = O : w = document, S.absolute = !0;
|
|
2211
|
-
var R = S.horizontal,
|
|
2212
|
+
var R = S.horizontal, C = r.default.scrollOffset(w, m, R) + (S.offset || 0);
|
|
2212
2213
|
if (!S.smooth) {
|
|
2213
|
-
s.default.registered.begin && s.default.registered.begin(_, m), w === document ? S.horizontal ? window.scrollTo(
|
|
2214
|
+
s.default.registered.begin && s.default.registered.begin(_, m), w === document ? S.horizontal ? window.scrollTo(C, 0) : window.scrollTo(0, C) : w.scrollTop = C, s.default.registered.end && s.default.registered.end(_, m);
|
|
2214
2215
|
return;
|
|
2215
2216
|
}
|
|
2216
|
-
o.default.animateTopScroll(
|
|
2217
|
+
o.default.animateTopScroll(C, S, _, m);
|
|
2217
2218
|
}
|
|
2218
2219
|
}, ht;
|
|
2219
2220
|
}
|
|
@@ -2230,7 +2231,7 @@ var Eo;
|
|
|
2230
2231
|
function zc() {
|
|
2231
2232
|
if (Eo) return ne;
|
|
2232
2233
|
Eo = 1;
|
|
2233
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
2234
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, _ = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
2234
2235
|
function N(D) {
|
|
2235
2236
|
if (typeof D == "object" && D !== null) {
|
|
2236
2237
|
var M = D.$$typeof;
|
|
@@ -2247,7 +2248,7 @@ function zc() {
|
|
|
2247
2248
|
default:
|
|
2248
2249
|
switch (D = D && D.$$typeof, D) {
|
|
2249
2250
|
case l:
|
|
2250
|
-
case
|
|
2251
|
+
case b:
|
|
2251
2252
|
case T:
|
|
2252
2253
|
case m:
|
|
2253
2254
|
case s:
|
|
@@ -2264,7 +2265,7 @@ function zc() {
|
|
|
2264
2265
|
function F(D) {
|
|
2265
2266
|
return N(D) === h;
|
|
2266
2267
|
}
|
|
2267
|
-
return ne.AsyncMode = p, ne.ConcurrentMode = h, ne.ContextConsumer = l, ne.ContextProvider = s, ne.Element = t, ne.ForwardRef =
|
|
2268
|
+
return ne.AsyncMode = p, ne.ConcurrentMode = h, ne.ContextConsumer = l, ne.ContextProvider = s, ne.Element = t, ne.ForwardRef = b, ne.Fragment = n, ne.Lazy = T, ne.Memo = m, ne.Portal = r, ne.Profiler = i, ne.StrictMode = o, ne.Suspense = _, ne.isAsyncMode = function(D) {
|
|
2268
2269
|
return F(D) || N(D) === p;
|
|
2269
2270
|
}, ne.isConcurrentMode = F, ne.isContextConsumer = function(D) {
|
|
2270
2271
|
return N(D) === l;
|
|
@@ -2273,7 +2274,7 @@ function zc() {
|
|
|
2273
2274
|
}, ne.isElement = function(D) {
|
|
2274
2275
|
return typeof D == "object" && D !== null && D.$$typeof === t;
|
|
2275
2276
|
}, ne.isForwardRef = function(D) {
|
|
2276
|
-
return N(D) ===
|
|
2277
|
+
return N(D) === b;
|
|
2277
2278
|
}, ne.isFragment = function(D) {
|
|
2278
2279
|
return N(D) === n;
|
|
2279
2280
|
}, ne.isLazy = function(D) {
|
|
@@ -2289,7 +2290,7 @@ function zc() {
|
|
|
2289
2290
|
}, ne.isSuspense = function(D) {
|
|
2290
2291
|
return N(D) === _;
|
|
2291
2292
|
}, ne.isValidElementType = function(D) {
|
|
2292
|
-
return typeof D == "string" || typeof D == "function" || D === n || D === h || D === i || D === o || D === _ || D === S || typeof D == "object" && D !== null && (D.$$typeof === T || D.$$typeof === m || D.$$typeof === s || D.$$typeof === l || D.$$typeof ===
|
|
2293
|
+
return typeof D == "string" || typeof D == "function" || D === n || D === h || D === i || D === o || D === _ || D === S || typeof D == "object" && D !== null && (D.$$typeof === T || D.$$typeof === m || D.$$typeof === s || D.$$typeof === l || D.$$typeof === b || D.$$typeof === w || D.$$typeof === R || D.$$typeof === C || D.$$typeof === O);
|
|
2293
2294
|
}, ne.typeOf = N, ne;
|
|
2294
2295
|
}
|
|
2295
2296
|
var oe = {};
|
|
@@ -2304,10 +2305,10 @@ var oe = {};
|
|
|
2304
2305
|
var Co;
|
|
2305
2306
|
function Uc() {
|
|
2306
2307
|
return Co || (Co = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2307
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
2308
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, _ = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
2308
2309
|
function N($) {
|
|
2309
2310
|
return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2310
|
-
$ === n || $ === h || $ === i || $ === o || $ === _ || $ === S || typeof $ == "object" && $ !== null && ($.$$typeof === T || $.$$typeof === m || $.$$typeof === s || $.$$typeof === l || $.$$typeof ===
|
|
2311
|
+
$ === n || $ === h || $ === i || $ === o || $ === _ || $ === S || typeof $ == "object" && $ !== null && ($.$$typeof === T || $.$$typeof === m || $.$$typeof === s || $.$$typeof === l || $.$$typeof === b || $.$$typeof === w || $.$$typeof === R || $.$$typeof === C || $.$$typeof === O);
|
|
2311
2312
|
}
|
|
2312
2313
|
function F($) {
|
|
2313
2314
|
if (typeof $ == "object" && $ !== null) {
|
|
@@ -2327,7 +2328,7 @@ function Uc() {
|
|
|
2327
2328
|
var ie = ue && ue.$$typeof;
|
|
2328
2329
|
switch (ie) {
|
|
2329
2330
|
case l:
|
|
2330
|
-
case
|
|
2331
|
+
case b:
|
|
2331
2332
|
case T:
|
|
2332
2333
|
case m:
|
|
2333
2334
|
case s:
|
|
@@ -2341,7 +2342,7 @@ function Uc() {
|
|
|
2341
2342
|
}
|
|
2342
2343
|
}
|
|
2343
2344
|
}
|
|
2344
|
-
var D = p, M = h,
|
|
2345
|
+
var D = p, M = h, W = l, a = s, c = t, d = b, g = n, u = T, v = m, y = r, E = i, x = o, A = _, k = !1;
|
|
2345
2346
|
function z($) {
|
|
2346
2347
|
return k || (k = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), I($) || F($) === p;
|
|
2347
2348
|
}
|
|
@@ -2351,14 +2352,14 @@ function Uc() {
|
|
|
2351
2352
|
function B($) {
|
|
2352
2353
|
return F($) === l;
|
|
2353
2354
|
}
|
|
2354
|
-
function
|
|
2355
|
+
function j($) {
|
|
2355
2356
|
return F($) === s;
|
|
2356
2357
|
}
|
|
2357
2358
|
function H($) {
|
|
2358
2359
|
return typeof $ == "object" && $ !== null && $.$$typeof === t;
|
|
2359
2360
|
}
|
|
2360
2361
|
function G($) {
|
|
2361
|
-
return F($) ===
|
|
2362
|
+
return F($) === b;
|
|
2362
2363
|
}
|
|
2363
2364
|
function X($) {
|
|
2364
2365
|
return F($) === n;
|
|
@@ -2381,7 +2382,7 @@ function Uc() {
|
|
|
2381
2382
|
function re($) {
|
|
2382
2383
|
return F($) === _;
|
|
2383
2384
|
}
|
|
2384
|
-
oe.AsyncMode = D, oe.ConcurrentMode = M, oe.ContextConsumer =
|
|
2385
|
+
oe.AsyncMode = D, oe.ConcurrentMode = M, oe.ContextConsumer = W, oe.ContextProvider = a, oe.Element = c, oe.ForwardRef = d, oe.Fragment = g, oe.Lazy = u, oe.Memo = v, oe.Portal = y, oe.Profiler = E, oe.StrictMode = x, oe.Suspense = A, oe.isAsyncMode = z, oe.isConcurrentMode = I, oe.isContextConsumer = B, oe.isContextProvider = j, oe.isElement = H, oe.isForwardRef = G, oe.isFragment = X, oe.isLazy = V, oe.isMemo = K, oe.isPortal = Y, oe.isProfiler = Q, oe.isStrictMode = J, oe.isSuspense = re, oe.isValidElementType = N, oe.typeOf = F;
|
|
2385
2386
|
}()), oe;
|
|
2386
2387
|
}
|
|
2387
2388
|
var xo;
|
|
@@ -2412,22 +2413,22 @@ function Fc() {
|
|
|
2412
2413
|
return !1;
|
|
2413
2414
|
for (var s = {}, l = 0; l < 10; l++)
|
|
2414
2415
|
s["_" + String.fromCharCode(l)] = l;
|
|
2415
|
-
var p = Object.getOwnPropertyNames(s).map(function(
|
|
2416
|
-
return s[
|
|
2416
|
+
var p = Object.getOwnPropertyNames(s).map(function(b) {
|
|
2417
|
+
return s[b];
|
|
2417
2418
|
});
|
|
2418
2419
|
if (p.join("") !== "0123456789")
|
|
2419
2420
|
return !1;
|
|
2420
2421
|
var h = {};
|
|
2421
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
2422
|
-
h[
|
|
2422
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(b) {
|
|
2423
|
+
h[b] = b;
|
|
2423
2424
|
}), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
|
|
2424
2425
|
} catch {
|
|
2425
2426
|
return !1;
|
|
2426
2427
|
}
|
|
2427
2428
|
}
|
|
2428
2429
|
return er = o() ? Object.assign : function(i, s) {
|
|
2429
|
-
for (var l, p = n(i), h,
|
|
2430
|
-
l = Object(arguments[
|
|
2430
|
+
for (var l, p = n(i), h, b = 1; b < arguments.length; b++) {
|
|
2431
|
+
l = Object(arguments[b]);
|
|
2431
2432
|
for (var _ in l)
|
|
2432
2433
|
t.call(l, _) && (p[_] = l[_]);
|
|
2433
2434
|
if (e) {
|
|
@@ -2469,22 +2470,22 @@ function Mc() {
|
|
|
2469
2470
|
}
|
|
2470
2471
|
function o(i, s, l, p, h) {
|
|
2471
2472
|
if (process.env.NODE_ENV !== "production") {
|
|
2472
|
-
for (var
|
|
2473
|
-
if (n(i,
|
|
2473
|
+
for (var b in i)
|
|
2474
|
+
if (n(i, b)) {
|
|
2474
2475
|
var _;
|
|
2475
2476
|
try {
|
|
2476
|
-
if (typeof i[
|
|
2477
|
+
if (typeof i[b] != "function") {
|
|
2477
2478
|
var S = Error(
|
|
2478
|
-
(p || "React class") + ": " + l + " type `" +
|
|
2479
|
+
(p || "React class") + ": " + l + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
2479
2480
|
);
|
|
2480
2481
|
throw S.name = "Invariant Violation", S;
|
|
2481
2482
|
}
|
|
2482
|
-
_ = i[
|
|
2483
|
+
_ = i[b](s, b, p, l, null, t);
|
|
2483
2484
|
} catch (T) {
|
|
2484
2485
|
_ = T;
|
|
2485
2486
|
}
|
|
2486
2487
|
if (_ && !(_ instanceof Error) && e(
|
|
2487
|
-
(p || "React class") + ": type specification of " + l + " `" +
|
|
2488
|
+
(p || "React class") + ": type specification of " + l + " `" + b + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof _ + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
2488
2489
|
), _ instanceof Error && !(_.message in r)) {
|
|
2489
2490
|
r[_.message] = !0;
|
|
2490
2491
|
var m = h ? h() : "";
|
|
@@ -2517,9 +2518,9 @@ function jc() {
|
|
|
2517
2518
|
return null;
|
|
2518
2519
|
}
|
|
2519
2520
|
return or = function(l, p) {
|
|
2520
|
-
var h = typeof Symbol == "function" && Symbol.iterator,
|
|
2521
|
+
var h = typeof Symbol == "function" && Symbol.iterator, b = "@@iterator";
|
|
2521
2522
|
function _(I) {
|
|
2522
|
-
var B = I && (h && I[h] || I[
|
|
2523
|
+
var B = I && (h && I[h] || I[b]);
|
|
2523
2524
|
if (typeof B == "function")
|
|
2524
2525
|
return B;
|
|
2525
2526
|
}
|
|
@@ -2532,14 +2533,14 @@ function jc() {
|
|
|
2532
2533
|
object: R("object"),
|
|
2533
2534
|
string: R("string"),
|
|
2534
2535
|
symbol: R("symbol"),
|
|
2535
|
-
any:
|
|
2536
|
+
any: C(),
|
|
2536
2537
|
arrayOf: N,
|
|
2537
2538
|
element: F(),
|
|
2538
2539
|
elementType: D(),
|
|
2539
2540
|
instanceOf: M,
|
|
2540
2541
|
node: d(),
|
|
2541
2542
|
objectOf: a,
|
|
2542
|
-
oneOf:
|
|
2543
|
+
oneOf: W,
|
|
2543
2544
|
oneOfType: c,
|
|
2544
2545
|
shape: u,
|
|
2545
2546
|
exact: v
|
|
@@ -2553,7 +2554,7 @@ function jc() {
|
|
|
2553
2554
|
O.prototype = Error.prototype;
|
|
2554
2555
|
function w(I) {
|
|
2555
2556
|
if (process.env.NODE_ENV !== "production")
|
|
2556
|
-
var B = {},
|
|
2557
|
+
var B = {}, j = 0;
|
|
2557
2558
|
function H(X, V, K, Y, Q, J, re) {
|
|
2558
2559
|
if (Y = Y || S, J = J || K, re !== r) {
|
|
2559
2560
|
if (p) {
|
|
@@ -2564,9 +2565,9 @@ function jc() {
|
|
|
2564
2565
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2565
2566
|
var le = Y + ":" + K;
|
|
2566
2567
|
!B[le] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2567
|
-
|
|
2568
|
+
j < 3 && (i(
|
|
2568
2569
|
"You are manually calling a React.PropTypes validation function for the `" + J + "` prop on `" + Y + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
2569
|
-
), B[le] = !0,
|
|
2570
|
+
), B[le] = !0, j++);
|
|
2570
2571
|
}
|
|
2571
2572
|
}
|
|
2572
2573
|
return V[K] == null ? X ? V[K] === null ? new O("The " + Q + " `" + J + "` is marked as required " + ("in `" + Y + "`, but its value is `null`.")) : new O("The " + Q + " `" + J + "` is marked as required in " + ("`" + Y + "`, but its value is `undefined`.")) : null : I(V, K, Y, Q, J);
|
|
@@ -2575,8 +2576,8 @@ function jc() {
|
|
|
2575
2576
|
return G.isRequired = H.bind(null, !0), G;
|
|
2576
2577
|
}
|
|
2577
2578
|
function R(I) {
|
|
2578
|
-
function B(
|
|
2579
|
-
var Y =
|
|
2579
|
+
function B(j, H, G, X, V, K) {
|
|
2580
|
+
var Y = j[H], Q = x(Y);
|
|
2580
2581
|
if (Q !== I) {
|
|
2581
2582
|
var J = A(Y);
|
|
2582
2583
|
return new O(
|
|
@@ -2588,14 +2589,14 @@ function jc() {
|
|
|
2588
2589
|
}
|
|
2589
2590
|
return w(B);
|
|
2590
2591
|
}
|
|
2591
|
-
function
|
|
2592
|
+
function C() {
|
|
2592
2593
|
return w(s);
|
|
2593
2594
|
}
|
|
2594
2595
|
function N(I) {
|
|
2595
|
-
function B(
|
|
2596
|
+
function B(j, H, G, X, V) {
|
|
2596
2597
|
if (typeof I != "function")
|
|
2597
2598
|
return new O("Property `" + V + "` of component `" + G + "` has invalid PropType notation inside arrayOf.");
|
|
2598
|
-
var K =
|
|
2599
|
+
var K = j[H];
|
|
2599
2600
|
if (!Array.isArray(K)) {
|
|
2600
2601
|
var Y = x(K);
|
|
2601
2602
|
return new O("Invalid " + X + " `" + V + "` of type " + ("`" + Y + "` supplied to `" + G + "`, expected an array."));
|
|
@@ -2610,8 +2611,8 @@ function jc() {
|
|
|
2610
2611
|
return w(B);
|
|
2611
2612
|
}
|
|
2612
2613
|
function F() {
|
|
2613
|
-
function I(B,
|
|
2614
|
-
var V = B[
|
|
2614
|
+
function I(B, j, H, G, X) {
|
|
2615
|
+
var V = B[j];
|
|
2615
2616
|
if (!l(V)) {
|
|
2616
2617
|
var K = x(V);
|
|
2617
2618
|
return new O("Invalid " + G + " `" + X + "` of type " + ("`" + K + "` supplied to `" + H + "`, expected a single ReactElement."));
|
|
@@ -2621,8 +2622,8 @@ function jc() {
|
|
|
2621
2622
|
return w(I);
|
|
2622
2623
|
}
|
|
2623
2624
|
function D() {
|
|
2624
|
-
function I(B,
|
|
2625
|
-
var V = B[
|
|
2625
|
+
function I(B, j, H, G, X) {
|
|
2626
|
+
var V = B[j];
|
|
2626
2627
|
if (!e.isValidElementType(V)) {
|
|
2627
2628
|
var K = x(V);
|
|
2628
2629
|
return new O("Invalid " + G + " `" + X + "` of type " + ("`" + K + "` supplied to `" + H + "`, expected a single ReactElement type."));
|
|
@@ -2632,22 +2633,22 @@ function jc() {
|
|
|
2632
2633
|
return w(I);
|
|
2633
2634
|
}
|
|
2634
2635
|
function M(I) {
|
|
2635
|
-
function B(
|
|
2636
|
-
if (!(
|
|
2637
|
-
var K = I.name || S, Y = z(
|
|
2636
|
+
function B(j, H, G, X, V) {
|
|
2637
|
+
if (!(j[H] instanceof I)) {
|
|
2638
|
+
var K = I.name || S, Y = z(j[H]);
|
|
2638
2639
|
return new O("Invalid " + X + " `" + V + "` of type " + ("`" + Y + "` supplied to `" + G + "`, expected ") + ("instance of `" + K + "`."));
|
|
2639
2640
|
}
|
|
2640
2641
|
return null;
|
|
2641
2642
|
}
|
|
2642
2643
|
return w(B);
|
|
2643
2644
|
}
|
|
2644
|
-
function
|
|
2645
|
+
function W(I) {
|
|
2645
2646
|
if (!Array.isArray(I))
|
|
2646
2647
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
2647
2648
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
2648
2649
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
2649
|
-
function B(
|
|
2650
|
-
for (var K =
|
|
2650
|
+
function B(j, H, G, X, V) {
|
|
2651
|
+
for (var K = j[H], Y = 0; Y < I.length; Y++)
|
|
2651
2652
|
if (T(K, I[Y]))
|
|
2652
2653
|
return null;
|
|
2653
2654
|
var Q = JSON.stringify(I, function(re, $) {
|
|
@@ -2659,10 +2660,10 @@ function jc() {
|
|
|
2659
2660
|
return w(B);
|
|
2660
2661
|
}
|
|
2661
2662
|
function a(I) {
|
|
2662
|
-
function B(
|
|
2663
|
+
function B(j, H, G, X, V) {
|
|
2663
2664
|
if (typeof I != "function")
|
|
2664
2665
|
return new O("Property `" + V + "` of component `" + G + "` has invalid PropType notation inside objectOf.");
|
|
2665
|
-
var K =
|
|
2666
|
+
var K = j[H], Y = x(K);
|
|
2666
2667
|
if (Y !== "object")
|
|
2667
2668
|
return new O("Invalid " + X + " `" + V + "` of type " + ("`" + Y + "` supplied to `" + G + "`, expected an object."));
|
|
2668
2669
|
for (var Q in K)
|
|
@@ -2679,10 +2680,10 @@ function jc() {
|
|
|
2679
2680
|
if (!Array.isArray(I))
|
|
2680
2681
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
2681
2682
|
for (var B = 0; B < I.length; B++) {
|
|
2682
|
-
var
|
|
2683
|
-
if (typeof
|
|
2683
|
+
var j = I[B];
|
|
2684
|
+
if (typeof j != "function")
|
|
2684
2685
|
return i(
|
|
2685
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + k(
|
|
2686
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + k(j) + " at index " + B + "."
|
|
2686
2687
|
), s;
|
|
2687
2688
|
}
|
|
2688
2689
|
function H(G, X, V, K, Y) {
|
|
@@ -2698,25 +2699,25 @@ function jc() {
|
|
|
2698
2699
|
return w(H);
|
|
2699
2700
|
}
|
|
2700
2701
|
function d() {
|
|
2701
|
-
function I(B,
|
|
2702
|
-
return y(B[
|
|
2702
|
+
function I(B, j, H, G, X) {
|
|
2703
|
+
return y(B[j]) ? null : new O("Invalid " + G + " `" + X + "` supplied to " + ("`" + H + "`, expected a ReactNode."));
|
|
2703
2704
|
}
|
|
2704
2705
|
return w(I);
|
|
2705
2706
|
}
|
|
2706
|
-
function
|
|
2707
|
+
function g(I, B, j, H, G) {
|
|
2707
2708
|
return new O(
|
|
2708
|
-
(I || "React class") + ": " + B + " type `" +
|
|
2709
|
+
(I || "React class") + ": " + B + " type `" + j + "." + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + G + "`."
|
|
2709
2710
|
);
|
|
2710
2711
|
}
|
|
2711
2712
|
function u(I) {
|
|
2712
|
-
function B(
|
|
2713
|
-
var K =
|
|
2713
|
+
function B(j, H, G, X, V) {
|
|
2714
|
+
var K = j[H], Y = x(K);
|
|
2714
2715
|
if (Y !== "object")
|
|
2715
2716
|
return new O("Invalid " + X + " `" + V + "` of type `" + Y + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
2716
2717
|
for (var Q in I) {
|
|
2717
2718
|
var J = I[Q];
|
|
2718
2719
|
if (typeof J != "function")
|
|
2719
|
-
return
|
|
2720
|
+
return g(G, X, V, Q, A(J));
|
|
2720
2721
|
var re = J(K, Q, G, X, V + "." + Q, r);
|
|
2721
2722
|
if (re)
|
|
2722
2723
|
return re;
|
|
@@ -2726,18 +2727,18 @@ function jc() {
|
|
|
2726
2727
|
return w(B);
|
|
2727
2728
|
}
|
|
2728
2729
|
function v(I) {
|
|
2729
|
-
function B(
|
|
2730
|
-
var K =
|
|
2730
|
+
function B(j, H, G, X, V) {
|
|
2731
|
+
var K = j[H], Y = x(K);
|
|
2731
2732
|
if (Y !== "object")
|
|
2732
2733
|
return new O("Invalid " + X + " `" + V + "` of type `" + Y + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
2733
|
-
var Q = t({},
|
|
2734
|
+
var Q = t({}, j[H], I);
|
|
2734
2735
|
for (var J in Q) {
|
|
2735
2736
|
var re = I[J];
|
|
2736
2737
|
if (n(I, J) && typeof re != "function")
|
|
2737
|
-
return
|
|
2738
|
+
return g(G, X, V, J, A(re));
|
|
2738
2739
|
if (!re)
|
|
2739
2740
|
return new O(
|
|
2740
|
-
"Invalid " + X + " `" + V + "` key `" + J + "` supplied to `" + G + "`.\nBad object: " + JSON.stringify(
|
|
2741
|
+
"Invalid " + X + " `" + V + "` key `" + J + "` supplied to `" + G + "`.\nBad object: " + JSON.stringify(j[H], null, " ") + `
|
|
2741
2742
|
Valid keys: ` + JSON.stringify(Object.keys(I), null, " ")
|
|
2742
2743
|
);
|
|
2743
2744
|
var $ = re(K, J, G, X, V + "." + J, r);
|
|
@@ -2763,13 +2764,13 @@ Valid keys: ` + JSON.stringify(Object.keys(I), null, " ")
|
|
|
2763
2764
|
return !0;
|
|
2764
2765
|
var B = _(I);
|
|
2765
2766
|
if (B) {
|
|
2766
|
-
var
|
|
2767
|
+
var j = B.call(I), H;
|
|
2767
2768
|
if (B !== I.entries) {
|
|
2768
|
-
for (; !(H =
|
|
2769
|
+
for (; !(H = j.next()).done; )
|
|
2769
2770
|
if (!y(H.value))
|
|
2770
2771
|
return !1;
|
|
2771
2772
|
} else
|
|
2772
|
-
for (; !(H =
|
|
2773
|
+
for (; !(H = j.next()).done; ) {
|
|
2773
2774
|
var G = H.value;
|
|
2774
2775
|
if (G && !y(G[1]))
|
|
2775
2776
|
return !1;
|
|
@@ -2781,12 +2782,12 @@ Valid keys: ` + JSON.stringify(Object.keys(I), null, " ")
|
|
|
2781
2782
|
return !1;
|
|
2782
2783
|
}
|
|
2783
2784
|
}
|
|
2784
|
-
function
|
|
2785
|
+
function E(I, B) {
|
|
2785
2786
|
return I === "symbol" ? !0 : B ? B["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && B instanceof Symbol : !1;
|
|
2786
2787
|
}
|
|
2787
2788
|
function x(I) {
|
|
2788
2789
|
var B = typeof I;
|
|
2789
|
-
return Array.isArray(I) ? "array" : I instanceof RegExp ? "object" :
|
|
2790
|
+
return Array.isArray(I) ? "array" : I instanceof RegExp ? "object" : E(B, I) ? "symbol" : B;
|
|
2790
2791
|
}
|
|
2791
2792
|
function A(I) {
|
|
2792
2793
|
if (typeof I > "u" || I === null)
|
|
@@ -2830,7 +2831,7 @@ function Hc() {
|
|
|
2830
2831
|
function r() {
|
|
2831
2832
|
}
|
|
2832
2833
|
return r.resetWarningCache = t, ir = function() {
|
|
2833
|
-
function n(s, l, p, h,
|
|
2834
|
+
function n(s, l, p, h, b, _) {
|
|
2834
2835
|
if (_ !== e) {
|
|
2835
2836
|
var S = new Error(
|
|
2836
2837
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -2940,39 +2941,39 @@ function Ir() {
|
|
|
2940
2941
|
value: !0
|
|
2941
2942
|
});
|
|
2942
2943
|
var e = Object.assign || function(R) {
|
|
2943
|
-
for (var
|
|
2944
|
-
var N = arguments[
|
|
2944
|
+
for (var C = 1; C < arguments.length; C++) {
|
|
2945
|
+
var N = arguments[C];
|
|
2945
2946
|
for (var F in N)
|
|
2946
2947
|
Object.prototype.hasOwnProperty.call(N, F) && (R[F] = N[F]);
|
|
2947
2948
|
}
|
|
2948
2949
|
return R;
|
|
2949
2950
|
}, t = /* @__PURE__ */ function() {
|
|
2950
|
-
function R(
|
|
2951
|
+
function R(C, N) {
|
|
2951
2952
|
for (var F = 0; F < N.length; F++) {
|
|
2952
2953
|
var D = N[F];
|
|
2953
|
-
D.enumerable = D.enumerable || !1, D.configurable = !0, "value" in D && (D.writable = !0), Object.defineProperty(
|
|
2954
|
+
D.enumerable = D.enumerable || !1, D.configurable = !0, "value" in D && (D.writable = !0), Object.defineProperty(C, D.key, D);
|
|
2954
2955
|
}
|
|
2955
2956
|
}
|
|
2956
|
-
return function(
|
|
2957
|
-
return N && R(
|
|
2957
|
+
return function(C, N, F) {
|
|
2958
|
+
return N && R(C.prototype, N), F && R(C, F), C;
|
|
2958
2959
|
};
|
|
2959
|
-
}(), r = U, n = S(r), o = Sr(), i = S(o), s = Ht(), l = S(s), p = /* @__PURE__ */ Wt(), h = S(p),
|
|
2960
|
+
}(), r = U, n = S(r), o = Sr(), i = S(o), s = Ht(), l = S(s), p = /* @__PURE__ */ Wt(), h = S(p), b = ca(), _ = S(b);
|
|
2960
2961
|
function S(R) {
|
|
2961
2962
|
return R && R.__esModule ? R : { default: R };
|
|
2962
2963
|
}
|
|
2963
|
-
function m(R,
|
|
2964
|
-
if (!(R instanceof
|
|
2964
|
+
function m(R, C) {
|
|
2965
|
+
if (!(R instanceof C))
|
|
2965
2966
|
throw new TypeError("Cannot call a class as a function");
|
|
2966
2967
|
}
|
|
2967
|
-
function T(R,
|
|
2968
|
+
function T(R, C) {
|
|
2968
2969
|
if (!R)
|
|
2969
2970
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2970
|
-
return
|
|
2971
|
+
return C && (typeof C == "object" || typeof C == "function") ? C : R;
|
|
2971
2972
|
}
|
|
2972
|
-
function O(R,
|
|
2973
|
-
if (typeof
|
|
2974
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
2975
|
-
R.prototype = Object.create(
|
|
2973
|
+
function O(R, C) {
|
|
2974
|
+
if (typeof C != "function" && C !== null)
|
|
2975
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof C);
|
|
2976
|
+
R.prototype = Object.create(C && C.prototype, { constructor: { value: R, enumerable: !1, writable: !0, configurable: !0 } }), C && (Object.setPrototypeOf ? Object.setPrototypeOf(R, C) : R.__proto__ = C);
|
|
2976
2977
|
}
|
|
2977
2978
|
var w = {
|
|
2978
2979
|
to: h.default.string.isRequired,
|
|
@@ -2995,17 +2996,17 @@ function Ir() {
|
|
|
2995
2996
|
saveHashHistory: h.default.bool,
|
|
2996
2997
|
spyThrottle: h.default.number
|
|
2997
2998
|
};
|
|
2998
|
-
return ft.default = function(R,
|
|
2999
|
-
var N =
|
|
3000
|
-
O(
|
|
3001
|
-
function
|
|
3002
|
-
m(this,
|
|
3003
|
-
var c = T(this, (
|
|
2999
|
+
return ft.default = function(R, C) {
|
|
3000
|
+
var N = C || l.default, F = function(M) {
|
|
3001
|
+
O(W, M);
|
|
3002
|
+
function W(a) {
|
|
3003
|
+
m(this, W);
|
|
3004
|
+
var c = T(this, (W.__proto__ || Object.getPrototypeOf(W)).call(this, a));
|
|
3004
3005
|
return D.call(c), c.state = {
|
|
3005
3006
|
active: !1
|
|
3006
3007
|
}, c;
|
|
3007
3008
|
}
|
|
3008
|
-
return t(
|
|
3009
|
+
return t(W, [{
|
|
3009
3010
|
key: "getScrollSpyContainer",
|
|
3010
3011
|
value: function() {
|
|
3011
3012
|
var c = this.props.containerId, d = this.props.container;
|
|
@@ -3032,62 +3033,62 @@ function Ir() {
|
|
|
3032
3033
|
var c = "";
|
|
3033
3034
|
this.state && this.state.active ? c = ((this.props.className || "") + " " + (this.props.activeClass || "active")).trim() : c = this.props.className;
|
|
3034
3035
|
var d = e({}, this.props);
|
|
3035
|
-
for (var
|
|
3036
|
-
d.hasOwnProperty(
|
|
3036
|
+
for (var g in w)
|
|
3037
|
+
d.hasOwnProperty(g) && delete d[g];
|
|
3037
3038
|
return d.className = c, d.onClick = this.handleClick, n.default.createElement(R, d);
|
|
3038
3039
|
}
|
|
3039
|
-
}]),
|
|
3040
|
+
}]), W;
|
|
3040
3041
|
}(n.default.PureComponent), D = function() {
|
|
3041
|
-
var
|
|
3042
|
+
var W = this;
|
|
3042
3043
|
this.scrollTo = function(a, c) {
|
|
3043
|
-
N.scrollTo(a, e({},
|
|
3044
|
+
N.scrollTo(a, e({}, W.state, c));
|
|
3044
3045
|
}, this.handleClick = function(a) {
|
|
3045
|
-
|
|
3046
|
+
W.props.onClick && W.props.onClick(a), a.stopPropagation && a.stopPropagation(), a.preventDefault && a.preventDefault(), W.scrollTo(W.props.to, W.props);
|
|
3046
3047
|
}, this.spyHandler = function(a, c) {
|
|
3047
|
-
var d =
|
|
3048
|
+
var d = W.getScrollSpyContainer();
|
|
3048
3049
|
if (!(_.default.isMounted() && !_.default.isInitialized())) {
|
|
3049
|
-
var
|
|
3050
|
-
if (
|
|
3050
|
+
var g = W.props.horizontal, u = W.props.to, v = null, y = void 0, E = void 0;
|
|
3051
|
+
if (g) {
|
|
3051
3052
|
var x = 0, A = 0, k = 0;
|
|
3052
3053
|
if (d.getBoundingClientRect) {
|
|
3053
3054
|
var z = d.getBoundingClientRect();
|
|
3054
3055
|
k = z.left;
|
|
3055
3056
|
}
|
|
3056
|
-
if (!v ||
|
|
3057
|
+
if (!v || W.props.isDynamic) {
|
|
3057
3058
|
if (v = N.get(u), !v)
|
|
3058
3059
|
return;
|
|
3059
3060
|
var I = v.getBoundingClientRect();
|
|
3060
3061
|
x = I.left - k + a, A = x + I.width;
|
|
3061
3062
|
}
|
|
3062
|
-
var B = a -
|
|
3063
|
-
y = B >= Math.floor(x) && B < Math.floor(A),
|
|
3063
|
+
var B = a - W.props.offset;
|
|
3064
|
+
y = B >= Math.floor(x) && B < Math.floor(A), E = B < Math.floor(x) || B >= Math.floor(A);
|
|
3064
3065
|
} else {
|
|
3065
|
-
var
|
|
3066
|
+
var j = 0, H = 0, G = 0;
|
|
3066
3067
|
if (d.getBoundingClientRect) {
|
|
3067
3068
|
var X = d.getBoundingClientRect();
|
|
3068
3069
|
G = X.top;
|
|
3069
3070
|
}
|
|
3070
|
-
if (!v ||
|
|
3071
|
+
if (!v || W.props.isDynamic) {
|
|
3071
3072
|
if (v = N.get(u), !v)
|
|
3072
3073
|
return;
|
|
3073
3074
|
var V = v.getBoundingClientRect();
|
|
3074
|
-
|
|
3075
|
+
j = V.top - G + c, H = j + V.height;
|
|
3075
3076
|
}
|
|
3076
|
-
var K = c -
|
|
3077
|
-
y = K >= Math.floor(
|
|
3077
|
+
var K = c - W.props.offset;
|
|
3078
|
+
y = K >= Math.floor(j) && K < Math.floor(H), E = K < Math.floor(j) || K >= Math.floor(H);
|
|
3078
3079
|
}
|
|
3079
3080
|
var Y = N.getActiveLink();
|
|
3080
|
-
if (
|
|
3081
|
-
if (u === Y && N.setActiveLink(void 0),
|
|
3082
|
-
var Q =
|
|
3081
|
+
if (E) {
|
|
3082
|
+
if (u === Y && N.setActiveLink(void 0), W.props.hashSpy && _.default.getHash() === u) {
|
|
3083
|
+
var Q = W.props.saveHashHistory, J = Q === void 0 ? !1 : Q;
|
|
3083
3084
|
_.default.changeHash("", J);
|
|
3084
3085
|
}
|
|
3085
|
-
|
|
3086
|
+
W.props.spy && W.state.active && (W.setState({ active: !1 }), W.props.onSetInactive && W.props.onSetInactive(u, v));
|
|
3086
3087
|
}
|
|
3087
|
-
if (y && (Y !== u ||
|
|
3088
|
+
if (y && (Y !== u || W.state.active === !1)) {
|
|
3088
3089
|
N.setActiveLink(u);
|
|
3089
|
-
var re =
|
|
3090
|
-
|
|
3090
|
+
var re = W.props.saveHashHistory, $ = re === void 0 ? !1 : re;
|
|
3091
|
+
W.props.hashSpy && _.default.changeHash(u, $), W.props.spy && (W.setState({ active: !0 }), W.props.onSetActive && W.props.onSetActive(u, v));
|
|
3091
3092
|
}
|
|
3092
3093
|
}
|
|
3093
3094
|
};
|
|
@@ -3105,28 +3106,28 @@ function Wc() {
|
|
|
3105
3106
|
function o(h) {
|
|
3106
3107
|
return h && h.__esModule ? h : { default: h };
|
|
3107
3108
|
}
|
|
3108
|
-
function i(h,
|
|
3109
|
-
if (!(h instanceof
|
|
3109
|
+
function i(h, b) {
|
|
3110
|
+
if (!(h instanceof b))
|
|
3110
3111
|
throw new TypeError("Cannot call a class as a function");
|
|
3111
3112
|
}
|
|
3112
|
-
function s(h,
|
|
3113
|
+
function s(h, b) {
|
|
3113
3114
|
if (!h)
|
|
3114
3115
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3115
|
-
return
|
|
3116
|
+
return b && (typeof b == "object" || typeof b == "function") ? b : h;
|
|
3116
3117
|
}
|
|
3117
|
-
function l(h,
|
|
3118
|
-
if (typeof
|
|
3119
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
3120
|
-
h.prototype = Object.create(
|
|
3118
|
+
function l(h, b) {
|
|
3119
|
+
if (typeof b != "function" && b !== null)
|
|
3120
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof b);
|
|
3121
|
+
h.prototype = Object.create(b && b.prototype, { constructor: { value: h, enumerable: !1, writable: !0, configurable: !0 } }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(h, b) : h.__proto__ = b);
|
|
3121
3122
|
}
|
|
3122
3123
|
var p = function(h) {
|
|
3123
|
-
l(
|
|
3124
|
-
function
|
|
3124
|
+
l(b, h);
|
|
3125
|
+
function b() {
|
|
3125
3126
|
var _, S, m, T;
|
|
3126
|
-
i(this,
|
|
3127
|
+
i(this, b);
|
|
3127
3128
|
for (var O = arguments.length, w = Array(O), R = 0; R < O; R++)
|
|
3128
3129
|
w[R] = arguments[R];
|
|
3129
|
-
return T = (S = (m = s(this, (_ =
|
|
3130
|
+
return T = (S = (m = s(this, (_ = b.__proto__ || Object.getPrototypeOf(b)).call.apply(_, [this].concat(w))), m), m.render = function() {
|
|
3130
3131
|
return t.default.createElement(
|
|
3131
3132
|
"a",
|
|
3132
3133
|
m.props,
|
|
@@ -3134,7 +3135,7 @@ function Wc() {
|
|
|
3134
3135
|
);
|
|
3135
3136
|
}, S), s(m, T);
|
|
3136
3137
|
}
|
|
3137
|
-
return
|
|
3138
|
+
return b;
|
|
3138
3139
|
}(t.default.Component);
|
|
3139
3140
|
return dt.default = (0, n.default)(p), dt;
|
|
3140
3141
|
}
|
|
@@ -3145,35 +3146,35 @@ function $c() {
|
|
|
3145
3146
|
value: !0
|
|
3146
3147
|
});
|
|
3147
3148
|
var e = /* @__PURE__ */ function() {
|
|
3148
|
-
function
|
|
3149
|
+
function b(_, S) {
|
|
3149
3150
|
for (var m = 0; m < S.length; m++) {
|
|
3150
3151
|
var T = S[m];
|
|
3151
3152
|
T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(_, T.key, T);
|
|
3152
3153
|
}
|
|
3153
3154
|
}
|
|
3154
3155
|
return function(_, S, m) {
|
|
3155
|
-
return S &&
|
|
3156
|
+
return S && b(_.prototype, S), m && b(_, m), _;
|
|
3156
3157
|
};
|
|
3157
3158
|
}(), t = U, r = i(t), n = Ir(), o = i(n);
|
|
3158
|
-
function i(
|
|
3159
|
-
return
|
|
3159
|
+
function i(b) {
|
|
3160
|
+
return b && b.__esModule ? b : { default: b };
|
|
3160
3161
|
}
|
|
3161
|
-
function s(
|
|
3162
|
-
if (!(
|
|
3162
|
+
function s(b, _) {
|
|
3163
|
+
if (!(b instanceof _))
|
|
3163
3164
|
throw new TypeError("Cannot call a class as a function");
|
|
3164
3165
|
}
|
|
3165
|
-
function l(
|
|
3166
|
-
if (!
|
|
3166
|
+
function l(b, _) {
|
|
3167
|
+
if (!b)
|
|
3167
3168
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3168
|
-
return _ && (typeof _ == "object" || typeof _ == "function") ? _ :
|
|
3169
|
+
return _ && (typeof _ == "object" || typeof _ == "function") ? _ : b;
|
|
3169
3170
|
}
|
|
3170
|
-
function p(
|
|
3171
|
+
function p(b, _) {
|
|
3171
3172
|
if (typeof _ != "function" && _ !== null)
|
|
3172
3173
|
throw new TypeError("Super expression must either be null or a function, not " + typeof _);
|
|
3173
|
-
|
|
3174
|
+
b.prototype = Object.create(_ && _.prototype, { constructor: { value: b, enumerable: !1, writable: !0, configurable: !0 } }), _ && (Object.setPrototypeOf ? Object.setPrototypeOf(b, _) : b.__proto__ = _);
|
|
3174
3175
|
}
|
|
3175
|
-
var h = function(
|
|
3176
|
-
p(_,
|
|
3176
|
+
var h = function(b) {
|
|
3177
|
+
p(_, b);
|
|
3177
3178
|
function _() {
|
|
3178
3179
|
return s(this, _), l(this, (_.__proto__ || Object.getPrototypeOf(_)).apply(this, arguments));
|
|
3179
3180
|
}
|
|
@@ -3219,7 +3220,7 @@ function ua() {
|
|
|
3219
3220
|
function h(m) {
|
|
3220
3221
|
return m && m.__esModule ? m : { default: m };
|
|
3221
3222
|
}
|
|
3222
|
-
function
|
|
3223
|
+
function b(m, T) {
|
|
3223
3224
|
if (!(m instanceof T))
|
|
3224
3225
|
throw new TypeError("Cannot call a class as a function");
|
|
3225
3226
|
}
|
|
@@ -3237,11 +3238,11 @@ function ua() {
|
|
|
3237
3238
|
var T = function(O) {
|
|
3238
3239
|
S(w, O);
|
|
3239
3240
|
function w(R) {
|
|
3240
|
-
|
|
3241
|
-
var
|
|
3242
|
-
return
|
|
3241
|
+
b(this, w);
|
|
3242
|
+
var C = _(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, R));
|
|
3243
|
+
return C.childBindings = {
|
|
3243
3244
|
domNode: null
|
|
3244
|
-
},
|
|
3245
|
+
}, C;
|
|
3245
3246
|
}
|
|
3246
3247
|
return t(w, [{
|
|
3247
3248
|
key: "componentDidMount",
|
|
@@ -3252,8 +3253,8 @@ function ua() {
|
|
|
3252
3253
|
}
|
|
3253
3254
|
}, {
|
|
3254
3255
|
key: "componentDidUpdate",
|
|
3255
|
-
value: function(
|
|
3256
|
-
this.props.name !==
|
|
3256
|
+
value: function(C) {
|
|
3257
|
+
this.props.name !== C.name && this.registerElems(this.props.name);
|
|
3257
3258
|
}
|
|
3258
3259
|
}, {
|
|
3259
3260
|
key: "componentWillUnmount",
|
|
@@ -3264,8 +3265,8 @@ function ua() {
|
|
|
3264
3265
|
}
|
|
3265
3266
|
}, {
|
|
3266
3267
|
key: "registerElems",
|
|
3267
|
-
value: function(
|
|
3268
|
-
s.default.register(
|
|
3268
|
+
value: function(C) {
|
|
3269
|
+
s.default.register(C, this.childBindings.domNode);
|
|
3269
3270
|
}
|
|
3270
3271
|
}, {
|
|
3271
3272
|
key: "render",
|
|
@@ -3311,7 +3312,7 @@ function Vc() {
|
|
|
3311
3312
|
if (!(m instanceof T))
|
|
3312
3313
|
throw new TypeError("Cannot call a class as a function");
|
|
3313
3314
|
}
|
|
3314
|
-
function
|
|
3315
|
+
function b(m, T) {
|
|
3315
3316
|
if (!m)
|
|
3316
3317
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3317
3318
|
return T && (typeof T == "object" || typeof T == "function") ? T : m;
|
|
@@ -3324,7 +3325,7 @@ function Vc() {
|
|
|
3324
3325
|
var S = function(m) {
|
|
3325
3326
|
_(T, m);
|
|
3326
3327
|
function T() {
|
|
3327
|
-
return h(this, T),
|
|
3328
|
+
return h(this, T), b(this, (T.__proto__ || Object.getPrototypeOf(T)).apply(this, arguments));
|
|
3328
3329
|
}
|
|
3329
3330
|
return t(T, [{
|
|
3330
3331
|
key: "render",
|
|
@@ -3383,7 +3384,7 @@ function Xc() {
|
|
|
3383
3384
|
}
|
|
3384
3385
|
var i = U;
|
|
3385
3386
|
jt();
|
|
3386
|
-
var s = Sr(), l = Ht(), p = /* @__PURE__ */ Wt(), h = ca(),
|
|
3387
|
+
var s = Sr(), l = Ht(), p = /* @__PURE__ */ Wt(), h = ca(), b = {
|
|
3387
3388
|
to: p.string.isRequired,
|
|
3388
3389
|
containerId: p.string,
|
|
3389
3390
|
container: p.object,
|
|
@@ -3404,8 +3405,8 @@ function Xc() {
|
|
|
3404
3405
|
}, _ = {
|
|
3405
3406
|
Scroll: function(m, T) {
|
|
3406
3407
|
console.warn("Helpers.Scroll is deprecated since v1.7.0");
|
|
3407
|
-
var O = T || l, w = function(
|
|
3408
|
-
o(N,
|
|
3408
|
+
var O = T || l, w = function(C) {
|
|
3409
|
+
o(N, C);
|
|
3409
3410
|
function N(F) {
|
|
3410
3411
|
r(this, N);
|
|
3411
3412
|
var D = n(this, (N.__proto__ || Object.getPrototypeOf(N)).call(this, F));
|
|
@@ -3440,8 +3441,8 @@ function Xc() {
|
|
|
3440
3441
|
var D = "";
|
|
3441
3442
|
this.state && this.state.active ? D = ((this.props.className || "") + " " + (this.props.activeClass || "active")).trim() : D = this.props.className;
|
|
3442
3443
|
var M = e({}, this.props);
|
|
3443
|
-
for (var
|
|
3444
|
-
M.hasOwnProperty(
|
|
3444
|
+
for (var W in b)
|
|
3445
|
+
M.hasOwnProperty(W) && delete M[W];
|
|
3445
3446
|
return M.className = D, M.onClick = this.handleClick, i.createElement(m, M);
|
|
3446
3447
|
}
|
|
3447
3448
|
}]), N;
|
|
@@ -3456,26 +3457,26 @@ function Xc() {
|
|
|
3456
3457
|
}, this.spyHandler = function(F) {
|
|
3457
3458
|
var D = N.getScrollSpyContainer();
|
|
3458
3459
|
if (!(h.isMounted() && !h.isInitialized())) {
|
|
3459
|
-
var M = N.props.to,
|
|
3460
|
+
var M = N.props.to, W = null, a = 0, c = 0, d = 0;
|
|
3460
3461
|
if (D.getBoundingClientRect) {
|
|
3461
|
-
var
|
|
3462
|
-
d =
|
|
3462
|
+
var g = D.getBoundingClientRect();
|
|
3463
|
+
d = g.top;
|
|
3463
3464
|
}
|
|
3464
|
-
if (!
|
|
3465
|
-
if (
|
|
3465
|
+
if (!W || N.props.isDynamic) {
|
|
3466
|
+
if (W = O.get(M), !W)
|
|
3466
3467
|
return;
|
|
3467
|
-
var u =
|
|
3468
|
+
var u = W.getBoundingClientRect();
|
|
3468
3469
|
a = u.top - d + F, c = a + u.height;
|
|
3469
3470
|
}
|
|
3470
|
-
var v = F - N.props.offset, y = v >= Math.floor(a) && v < Math.floor(c),
|
|
3471
|
-
if (
|
|
3471
|
+
var v = F - N.props.offset, y = v >= Math.floor(a) && v < Math.floor(c), E = v < Math.floor(a) || v >= Math.floor(c), x = O.getActiveLink();
|
|
3472
|
+
if (E)
|
|
3472
3473
|
return M === x && O.setActiveLink(void 0), N.props.hashSpy && h.getHash() === M && h.changeHash(), N.props.spy && N.state.active && (N.setState({ active: !1 }), N.props.onSetInactive && N.props.onSetInactive()), s.updateStates();
|
|
3473
3474
|
if (y && x !== M)
|
|
3474
3475
|
return O.setActiveLink(M), N.props.hashSpy && h.changeHash(M), N.props.spy && (N.setState({ active: !0 }), N.props.onSetActive && N.props.onSetActive(M)), s.updateStates();
|
|
3475
3476
|
}
|
|
3476
3477
|
};
|
|
3477
3478
|
};
|
|
3478
|
-
return w.propTypes =
|
|
3479
|
+
return w.propTypes = b, w.defaultProps = { offset: 0 }, w;
|
|
3479
3480
|
},
|
|
3480
3481
|
Element: function(m) {
|
|
3481
3482
|
console.warn("Helpers.Element is deprecated since v1.7.0");
|
|
@@ -3483,10 +3484,10 @@ function Xc() {
|
|
|
3483
3484
|
o(w, O);
|
|
3484
3485
|
function w(R) {
|
|
3485
3486
|
r(this, w);
|
|
3486
|
-
var
|
|
3487
|
-
return
|
|
3487
|
+
var C = n(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, R));
|
|
3488
|
+
return C.childBindings = {
|
|
3488
3489
|
domNode: null
|
|
3489
|
-
},
|
|
3490
|
+
}, C;
|
|
3490
3491
|
}
|
|
3491
3492
|
return t(w, [{
|
|
3492
3493
|
key: "componentDidMount",
|
|
@@ -3497,8 +3498,8 @@ function Xc() {
|
|
|
3497
3498
|
}
|
|
3498
3499
|
}, {
|
|
3499
3500
|
key: "componentDidUpdate",
|
|
3500
|
-
value: function(
|
|
3501
|
-
this.props.name !==
|
|
3501
|
+
value: function(C) {
|
|
3502
|
+
this.props.name !== C.name && this.registerElems(this.props.name);
|
|
3502
3503
|
}
|
|
3503
3504
|
}, {
|
|
3504
3505
|
key: "componentWillUnmount",
|
|
@@ -3509,8 +3510,8 @@ function Xc() {
|
|
|
3509
3510
|
}
|
|
3510
3511
|
}, {
|
|
3511
3512
|
key: "registerElems",
|
|
3512
|
-
value: function(
|
|
3513
|
-
l.register(
|
|
3513
|
+
value: function(C) {
|
|
3514
|
+
l.register(C, this.childBindings.domNode);
|
|
3514
3515
|
}
|
|
3515
3516
|
}, {
|
|
3516
3517
|
key: "render",
|
|
@@ -3533,7 +3534,7 @@ function Gc() {
|
|
|
3533
3534
|
Uo = 1, Object.defineProperty(ae, "__esModule", {
|
|
3534
3535
|
value: !0
|
|
3535
3536
|
}), ae.Helpers = ae.ScrollElement = ae.ScrollLink = ae.animateScroll = ae.scrollSpy = ae.Events = ae.scroller = ae.Element = ae.Button = ae.Link = void 0;
|
|
3536
|
-
var e = Wc(), t = F(e), r = $c(), n = F(r), o = Vc(), i = F(o), s = Ht(), l = F(s), p = kr(), h = F(p),
|
|
3537
|
+
var e = Wc(), t = F(e), r = $c(), n = F(r), o = Vc(), i = F(o), s = Ht(), l = F(s), p = kr(), h = F(p), b = Sr(), _ = F(b), S = aa(), m = F(S), T = Ir(), O = F(T), w = ua(), R = F(w), C = Xc(), N = F(C);
|
|
3537
3538
|
function F(D) {
|
|
3538
3539
|
return D && D.__esModule ? D : { default: D };
|
|
3539
3540
|
}
|
|
@@ -3550,7 +3551,7 @@ const Kc = (e, t) => {
|
|
|
3550
3551
|
if (!r)
|
|
3551
3552
|
return e();
|
|
3552
3553
|
}, t);
|
|
3553
|
-
}, Yc = (e) => /* @__PURE__ */
|
|
3554
|
+
}, Yc = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { d: "M10.621 4.353 5.176 9.798a.69.69 0 1 1-.974-.974l5.444-5.446H5.108a.69.69 0 0 1 0-1.378H12v6.892a.69.69 0 1 1-1.379 0V4.353Z", fill: "currentColor" })), Zc = ({ color: e }) => /* @__PURE__ */ f(
|
|
3554
3555
|
ge,
|
|
3555
3556
|
{
|
|
3556
3557
|
boxSize: 3,
|
|
@@ -3575,7 +3576,7 @@ const Kc = (e, t) => {
|
|
|
3575
3576
|
};
|
|
3576
3577
|
}, $t = U.forwardRef(
|
|
3577
3578
|
function(t, r) {
|
|
3578
|
-
const { chakra: n, next: o } = da(t), { external: i, loading: s, href: l, children: p, disabled: h, noIcon:
|
|
3579
|
+
const { chakra: n, next: o } = da(t), { external: i, loading: s, href: l, children: p, disabled: h, noIcon: b, iconColor: _, ...S } = n;
|
|
3579
3580
|
return i ? /* @__PURE__ */ f(xe, { loading: s, ref: r, asChild: !0, children: /* @__PURE__ */ q(
|
|
3580
3581
|
Lr,
|
|
3581
3582
|
{
|
|
@@ -3587,7 +3588,7 @@ const Kc = (e, t) => {
|
|
|
3587
3588
|
...S,
|
|
3588
3589
|
children: [
|
|
3589
3590
|
p,
|
|
3590
|
-
!
|
|
3591
|
+
!b && /* @__PURE__ */ f(Zc, { color: _ })
|
|
3591
3592
|
]
|
|
3592
3593
|
}
|
|
3593
3594
|
) }) : /* @__PURE__ */ f(xe, { loading: s, ref: r, asChild: !0, children: /* @__PURE__ */ f(
|
|
@@ -3609,11 +3610,11 @@ const Kc = (e, t) => {
|
|
|
3609
3610
|
duration: 500,
|
|
3610
3611
|
smooth: !0
|
|
3611
3612
|
}, Qc = "CollapsibleDetails", _0 = (e) => {
|
|
3612
|
-
const { children: t, id: r = Qc, onClick: n, isExpanded: o = !1, text: i, loading: s, noScroll: l, ...p } = e, [h,
|
|
3613
|
-
|
|
3613
|
+
const { children: t, id: r = Qc, onClick: n, isExpanded: o = !1, text: i, loading: s, noScroll: l, ...p } = e, [h, b] = U.useState(o), _ = U.useCallback((m) => {
|
|
3614
|
+
b((T) => !T), l || lr.scroller.scrollTo(r, Fo), n == null || n(m);
|
|
3614
3615
|
}, [r, l, n]);
|
|
3615
3616
|
Kc(() => {
|
|
3616
|
-
|
|
3617
|
+
b(o), o && !l && lr.scroller.scrollTo(r, Fo);
|
|
3617
3618
|
}, [o, r, l]);
|
|
3618
3619
|
const S = h ? (i == null ? void 0 : i[1]) ?? "Hide details" : (i == null ? void 0 : i[0]) ?? "View details";
|
|
3619
3620
|
return /* @__PURE__ */ q(ze, { children: [
|
|
@@ -3634,7 +3635,7 @@ const Kc = (e, t) => {
|
|
|
3634
3635
|
] });
|
|
3635
3636
|
}, y0 = (e) => {
|
|
3636
3637
|
const { items: r, renderItem: n, triggerProps: o, cutLength: i = 3, ...s } = e, [l, p] = U.useState(!1), h = U.useCallback(() => {
|
|
3637
|
-
p((
|
|
3638
|
+
p((b) => !b);
|
|
3638
3639
|
}, []);
|
|
3639
3640
|
return /* @__PURE__ */ q(Rt, { flexDir: "column", w: "100%", ...s, children: [
|
|
3640
3641
|
r.slice(0, l ? void 0 : i).map(n),
|
|
@@ -3680,7 +3681,7 @@ function E0(e, t) {
|
|
|
3680
3681
|
const { colorMode: r } = eu();
|
|
3681
3682
|
return r === "light" ? e : t;
|
|
3682
3683
|
}
|
|
3683
|
-
const fa = (e) => /* @__PURE__ */
|
|
3684
|
+
const fa = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { d: "M13.758 11c.89 0 1.337-1.077.707-1.707l-2.95-2.95a1 1 0 1 1 1.414-1.414l6.364 6.364a1 1 0 0 1 0 1.414l-6.364 6.364a1 1 0 1 1-1.414-1.414l2.95-2.95c.63-.63.184-1.707-.707-1.707H5a1 1 0 1 1 0-2h8.758Z", fill: "currentColor" })), tu = ({ href: e, hint: t, boxSize: r = 6, ...n }) => {
|
|
3684
3685
|
const o = /* @__PURE__ */ f(zt, { ...n, boxSize: r, children: /* @__PURE__ */ f(
|
|
3685
3686
|
ge,
|
|
3686
3687
|
{
|
|
@@ -3692,7 +3693,7 @@ const fa = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
3692
3693
|
}
|
|
3693
3694
|
) });
|
|
3694
3695
|
return /* @__PURE__ */ f(wr, { content: t, disabled: !t, children: e ? /* @__PURE__ */ f($t, { href: e, asChild: !0, children: o }) : o });
|
|
3695
|
-
}, C0 =
|
|
3696
|
+
}, C0 = P.forwardRef(function(t, r) {
|
|
3696
3697
|
const {
|
|
3697
3698
|
children: n,
|
|
3698
3699
|
portalled: o = !0,
|
|
@@ -3704,7 +3705,7 @@ const fa = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
3704
3705
|
s && /* @__PURE__ */ f(he.Backdrop, {}),
|
|
3705
3706
|
/* @__PURE__ */ f(he.Positioner, { children: /* @__PURE__ */ f(he.Content, { ref: r, ...l, asChild: !1, children: n }) })
|
|
3706
3707
|
] });
|
|
3707
|
-
}), ru =
|
|
3708
|
+
}), ru = P.forwardRef(function(t, r) {
|
|
3708
3709
|
return /* @__PURE__ */ f(
|
|
3709
3710
|
he.CloseTrigger,
|
|
3710
3711
|
{
|
|
@@ -3713,20 +3714,20 @@ const fa = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
3713
3714
|
children: /* @__PURE__ */ f(Re, { ref: r, children: t.children })
|
|
3714
3715
|
}
|
|
3715
3716
|
);
|
|
3716
|
-
}), x0 =
|
|
3717
|
+
}), x0 = P.forwardRef(function(t, r) {
|
|
3717
3718
|
const { startElement: n, onBackToClick: o, ...i } = t, s = n ?? (o && /* @__PURE__ */ f(tu, { onClick: o }));
|
|
3718
3719
|
return /* @__PURE__ */ q(he.Header, { ref: r, ...i, children: [
|
|
3719
3720
|
s,
|
|
3720
3721
|
/* @__PURE__ */ f(he.Title, { children: t.children }),
|
|
3721
3722
|
/* @__PURE__ */ f(ru, { ml: "auto" })
|
|
3722
3723
|
] });
|
|
3723
|
-
}), w0 = he.Root, T0 = he.Footer, S0 = he.Body, k0 = he.Backdrop, A0 = he.Title, I0 = he.Description, O0 = he.Trigger, R0 = he.ActionTrigger, P0 =
|
|
3724
|
+
}), w0 = he.Root, T0 = he.Footer, S0 = he.Body, k0 = he.Backdrop, A0 = he.Title, I0 = he.Description, O0 = he.Trigger, R0 = he.ActionTrigger, P0 = P.forwardRef(function(t, r) {
|
|
3724
3725
|
const { children: n, portalled: o = !0, portalRef: i, offset: s, backdrop: l = !0, ...p } = t;
|
|
3725
3726
|
return /* @__PURE__ */ q(Fe, { disabled: !o, container: i, children: [
|
|
3726
3727
|
l && /* @__PURE__ */ f(Ce.Backdrop, {}),
|
|
3727
3728
|
/* @__PURE__ */ f(Ce.Positioner, { padding: s, children: /* @__PURE__ */ f(Ce.Content, { ref: r, ...p, asChild: !1, children: n }) })
|
|
3728
3729
|
] });
|
|
3729
|
-
}), L0 =
|
|
3730
|
+
}), L0 = P.forwardRef(function(t, r) {
|
|
3730
3731
|
return /* @__PURE__ */ f(
|
|
3731
3732
|
Ce.CloseTrigger,
|
|
3732
3733
|
{
|
|
@@ -3777,7 +3778,7 @@ function ga(e) {
|
|
|
3777
3778
|
if (typeof e != "string" && "displayName" in e)
|
|
3778
3779
|
return e.displayName;
|
|
3779
3780
|
}
|
|
3780
|
-
const ba =
|
|
3781
|
+
const ba = P.forwardRef(
|
|
3781
3782
|
function(t, r) {
|
|
3782
3783
|
const { label: n, children: o, helperText: i, errorText: s, optionalText: l, ...p } = t;
|
|
3783
3784
|
if (p.floating && n) {
|
|
@@ -3797,15 +3798,15 @@ const ba = L.forwardRef(
|
|
|
3797
3798
|
ha,
|
|
3798
3799
|
s
|
|
3799
3800
|
] })
|
|
3800
|
-
] }), T = i && /* @__PURE__ */ f(we.HelperText, { children: i }), O =
|
|
3801
|
+
] }), T = i && /* @__PURE__ */ f(we.HelperText, { children: i }), O = P.Children.only(o);
|
|
3801
3802
|
if (ga(O.type) === "InputGroup") {
|
|
3802
|
-
const
|
|
3803
|
-
|
|
3803
|
+
const C = P.cloneElement(
|
|
3804
|
+
P.Children.only(O.props.children),
|
|
3804
3805
|
S
|
|
3805
|
-
), N =
|
|
3806
|
+
), N = P.cloneElement(
|
|
3806
3807
|
O,
|
|
3807
3808
|
{},
|
|
3808
|
-
|
|
3809
|
+
C,
|
|
3809
3810
|
m
|
|
3810
3811
|
);
|
|
3811
3812
|
return /* @__PURE__ */ q(we.Root, { pos: "relative", w: "full", ref: r, ...p, children: [
|
|
@@ -3813,7 +3814,7 @@ const ba = L.forwardRef(
|
|
|
3813
3814
|
T
|
|
3814
3815
|
] });
|
|
3815
3816
|
}
|
|
3816
|
-
const R =
|
|
3817
|
+
const R = P.cloneElement(O, S);
|
|
3817
3818
|
return /* @__PURE__ */ q(we.Root, { pos: "relative", w: "full", ref: r, ...p, children: [
|
|
3818
3819
|
R,
|
|
3819
3820
|
m,
|
|
@@ -3822,7 +3823,7 @@ const ba = L.forwardRef(
|
|
|
3822
3823
|
}
|
|
3823
3824
|
const h = {
|
|
3824
3825
|
size: p.size
|
|
3825
|
-
},
|
|
3826
|
+
}, b = P.Children.only(o), _ = P.cloneElement(b, h);
|
|
3826
3827
|
return /* @__PURE__ */ q(we.Root, { ref: r, ...p, children: [
|
|
3827
3828
|
n && /* @__PURE__ */ q(we.Label, { children: [
|
|
3828
3829
|
n,
|
|
@@ -3858,12 +3859,12 @@ const ba = L.forwardRef(
|
|
|
3858
3859
|
}
|
|
3859
3860
|
), ku = U.forwardRef(
|
|
3860
3861
|
function(t, r) {
|
|
3861
|
-
const { fallback: n, src: o, onLoad: i, onError: s, ...l } = t, [p, h] = U.useState(!0), [
|
|
3862
|
+
const { fallback: n, src: o, onLoad: i, onError: s, ...l } = t, [p, h] = U.useState(!0), [b, _] = U.useState(!1), S = U.useCallback((T) => {
|
|
3862
3863
|
_(!0), h(!1), s == null || s(T);
|
|
3863
3864
|
}, [s]), m = U.useCallback((T) => {
|
|
3864
3865
|
h(!1), i == null || i(T);
|
|
3865
3866
|
}, [i]);
|
|
3866
|
-
return !o && n ||
|
|
3867
|
+
return !o && n || b ? n : /* @__PURE__ */ q(ze, { children: [
|
|
3867
3868
|
p && /* @__PURE__ */ f(xe, { loading: !0, ...l }),
|
|
3868
3869
|
/* @__PURE__ */ f(
|
|
3869
3870
|
$a,
|
|
@@ -3878,7 +3879,7 @@ const ba = L.forwardRef(
|
|
|
3878
3879
|
)
|
|
3879
3880
|
] });
|
|
3880
3881
|
}
|
|
3881
|
-
), Vt =
|
|
3882
|
+
), Vt = P.forwardRef(
|
|
3882
3883
|
function(t, r) {
|
|
3883
3884
|
const {
|
|
3884
3885
|
startElement: n,
|
|
@@ -3888,24 +3889,24 @@ const ba = L.forwardRef(
|
|
|
3888
3889
|
children: l,
|
|
3889
3890
|
startOffset: p,
|
|
3890
3891
|
endOffset: h,
|
|
3891
|
-
...
|
|
3892
|
-
} = t, _ =
|
|
3893
|
-
var
|
|
3894
|
-
const { width: w } = ((
|
|
3892
|
+
...b
|
|
3893
|
+
} = t, _ = P.useRef(null), S = P.useRef(null), [m, T] = P.useState(), O = P.useCallback(() => {
|
|
3894
|
+
var C, N;
|
|
3895
|
+
const { width: w } = ((C = S == null ? void 0 : S.current) == null ? void 0 : C.getBoundingClientRect()) ?? {}, { width: R } = ((N = _ == null ? void 0 : _.current) == null ? void 0 : N.getBoundingClientRect()) ?? {};
|
|
3895
3896
|
T({
|
|
3896
3897
|
start: R ?? 0,
|
|
3897
3898
|
end: w ?? 0
|
|
3898
3899
|
});
|
|
3899
3900
|
}, []);
|
|
3900
|
-
return
|
|
3901
|
+
return P.useEffect(() => {
|
|
3901
3902
|
O();
|
|
3902
3903
|
const w = Ut(O, 300), R = new ResizeObserver(w);
|
|
3903
3904
|
return R.observe(window.document.body), function() {
|
|
3904
3905
|
R.unobserve(window.document.body);
|
|
3905
3906
|
};
|
|
3906
|
-
}, [O]), /* @__PURE__ */ q(mr, { ref: r, w: "100%", ...
|
|
3907
|
+
}, [O]), /* @__PURE__ */ q(mr, { ref: r, w: "100%", ...b, children: [
|
|
3907
3908
|
n && /* @__PURE__ */ f(Dr, { pointerEvents: "none", ref: _, px: 0, color: "gray.500", ...o, children: n }),
|
|
3908
|
-
|
|
3909
|
+
P.Children.map(l, (w) => ga(w.type) !== "FieldInput" ? w : P.cloneElement(w, {
|
|
3909
3910
|
...n && { ps: p ?? (m != null && m.start ? `${m.start}px` : void 0) },
|
|
3910
3911
|
...i && { pe: h ?? (m != null && m.end ? `${m.end}px` : void 0) },
|
|
3911
3912
|
// hide input value and placeholder for the first render
|
|
@@ -4032,31 +4033,31 @@ function ya(e) {
|
|
|
4032
4033
|
function Du(e) {
|
|
4033
4034
|
return _a({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "m9 18 6-6-6-6" }, child: [] }] })(e);
|
|
4034
4035
|
}
|
|
4035
|
-
const $0 =
|
|
4036
|
+
const $0 = P.forwardRef(
|
|
4036
4037
|
function(t, r) {
|
|
4037
4038
|
const { portalled: n = !0, portalRef: o, ...i } = t;
|
|
4038
4039
|
return /* @__PURE__ */ f(Fe, { disabled: !n, container: o, children: /* @__PURE__ */ f(de.Positioner, { children: /* @__PURE__ */ f(de.Content, { ref: r, ...i }) }) });
|
|
4039
4040
|
}
|
|
4040
|
-
), V0 =
|
|
4041
|
+
), V0 = P.forwardRef(function(t, r) {
|
|
4041
4042
|
return /* @__PURE__ */ f(de.Arrow, { ref: r, ...t, children: /* @__PURE__ */ f(de.ArrowTip, {}) });
|
|
4042
|
-
}), X0 =
|
|
4043
|
+
}), X0 = P.forwardRef(function(t, r) {
|
|
4043
4044
|
return /* @__PURE__ */ q(de.CheckboxItem, { ps: "8", ref: r, ...t, children: [
|
|
4044
4045
|
/* @__PURE__ */ f(Dt, { axis: "horizontal", insetStart: "4", asChild: !0, children: /* @__PURE__ */ f(de.ItemIndicator, { children: /* @__PURE__ */ f(ya, {}) }) }),
|
|
4045
4046
|
t.children
|
|
4046
4047
|
] });
|
|
4047
|
-
}), G0 =
|
|
4048
|
+
}), G0 = P.forwardRef(function(t, r) {
|
|
4048
4049
|
const { children: n, ...o } = t;
|
|
4049
4050
|
return /* @__PURE__ */ q(de.RadioItem, { ps: "8", ref: r, ...o, children: [
|
|
4050
4051
|
/* @__PURE__ */ f(Dt, { axis: "horizontal", insetStart: "4", asChild: !0, children: /* @__PURE__ */ f(de.ItemIndicator, { children: /* @__PURE__ */ f(ya, {}) }) }),
|
|
4051
4052
|
/* @__PURE__ */ f(de.ItemText, { children: n })
|
|
4052
4053
|
] });
|
|
4053
|
-
}), q0 =
|
|
4054
|
+
}), q0 = P.forwardRef(function(t, r) {
|
|
4054
4055
|
const { title: n, children: o, ...i } = t;
|
|
4055
4056
|
return /* @__PURE__ */ q(de.ItemGroup, { ref: r, ...i, children: [
|
|
4056
4057
|
n && /* @__PURE__ */ f(de.ItemGroupLabel, { userSelect: "none", children: n }),
|
|
4057
4058
|
o
|
|
4058
4059
|
] });
|
|
4059
|
-
}), K0 =
|
|
4060
|
+
}), K0 = P.forwardRef(function(t, r) {
|
|
4060
4061
|
const { startIcon: n, children: o, ...i } = t;
|
|
4061
4062
|
return /* @__PURE__ */ q(de.TriggerItem, { ref: r, ...i, children: [
|
|
4062
4063
|
n,
|
|
@@ -4074,20 +4075,20 @@ const $0 = L.forwardRef(
|
|
|
4074
4075
|
}
|
|
4075
4076
|
};
|
|
4076
4077
|
return /* @__PURE__ */ f(de.Root, { ...n, positioning: o, lazyMount: t, unmountOnExit: r });
|
|
4077
|
-
}, J0 = de.Separator, ep = de.Item, tp = de.ItemText, rp = de.ItemCommand, np = de.Trigger, op =
|
|
4078
|
+
}, J0 = de.Separator, ep = de.Item, tp = de.ItemText, rp = de.ItemCommand, np = de.Trigger, op = P.forwardRef(
|
|
4078
4079
|
function(t, r) {
|
|
4079
4080
|
const { count: n = 6, inputProps: o, rootRef: i, attached: s, placeholder: l = " ", bgColor: p, ...h } = t;
|
|
4080
4081
|
return /* @__PURE__ */ q(lt.Root, { ref: i, placeholder: l, ...h, children: [
|
|
4081
4082
|
/* @__PURE__ */ f(lt.HiddenInput, { ref: r, ...o }),
|
|
4082
|
-
/* @__PURE__ */ f(lt.Control, { children: /* @__PURE__ */ f(mr, { attached: s, children: Array.from({ length: n }).map((
|
|
4083
|
+
/* @__PURE__ */ f(lt.Control, { children: /* @__PURE__ */ f(mr, { attached: s, children: Array.from({ length: n }).map((b, _) => /* @__PURE__ */ f(lt.Input, { index: _, bgColor: p }, _)) }) })
|
|
4083
4084
|
] });
|
|
4084
4085
|
}
|
|
4085
|
-
), Bu =
|
|
4086
|
+
), Bu = P.forwardRef(function(t, r) {
|
|
4086
4087
|
const { portalled: n = !0, portalRef: o, ...i } = t;
|
|
4087
4088
|
return /* @__PURE__ */ f(Fe, { disabled: !n, container: o, children: /* @__PURE__ */ f(me.Positioner, { children: /* @__PURE__ */ f(me.Content, { ref: r, ...i }) }) });
|
|
4088
|
-
}), ip =
|
|
4089
|
+
}), ip = P.forwardRef(function(t, r) {
|
|
4089
4090
|
return /* @__PURE__ */ f(me.Arrow, { ...t, ref: r, children: /* @__PURE__ */ f(me.ArrowTip, {}) });
|
|
4090
|
-
}), ap =
|
|
4091
|
+
}), ap = P.forwardRef(function(t, r) {
|
|
4091
4092
|
return /* @__PURE__ */ f(
|
|
4092
4093
|
me.CloseTrigger,
|
|
4093
4094
|
{
|
|
@@ -4100,7 +4101,7 @@ const $0 = L.forwardRef(
|
|
|
4100
4101
|
children: /* @__PURE__ */ f(Re, {})
|
|
4101
4102
|
}
|
|
4102
4103
|
);
|
|
4103
|
-
}), zu =
|
|
4104
|
+
}), zu = P.forwardRef(function(t, r) {
|
|
4104
4105
|
const { disabled: n, ...o } = t;
|
|
4105
4106
|
return n ? t.children : /* @__PURE__ */ f(
|
|
4106
4107
|
me.CloseTrigger,
|
|
@@ -4131,16 +4132,16 @@ const $0 = L.forwardRef(
|
|
|
4131
4132
|
positioning: t
|
|
4132
4133
|
}
|
|
4133
4134
|
);
|
|
4134
|
-
}, Fu =
|
|
4135
|
+
}, Fu = P.forwardRef(function(t, r) {
|
|
4135
4136
|
const { asChild: n = !0, ...o } = t;
|
|
4136
4137
|
return /* @__PURE__ */ f(me.Trigger, { asChild: n, ref: r, ...o });
|
|
4137
|
-
}), lp = me.Title, sp = me.Description, cp = me.Footer, up = me.Header, Mu = me.Body, dp =
|
|
4138
|
+
}), lp = me.Title, sp = me.Description, cp = me.Footer, up = me.Header, Mu = me.Body, dp = P.forwardRef(function(t, r) {
|
|
4138
4139
|
const { trackColor: n, cap: o, color: i, ...s } = t;
|
|
4139
4140
|
return /* @__PURE__ */ q(rt.Circle, { ...s, ref: r, children: [
|
|
4140
4141
|
/* @__PURE__ */ f(rt.Track, { stroke: n }),
|
|
4141
4142
|
/* @__PURE__ */ f(rt.Range, { stroke: i, strokeLinecap: o })
|
|
4142
4143
|
] });
|
|
4143
|
-
}), fp =
|
|
4144
|
+
}), fp = P.forwardRef(function(t, r) {
|
|
4144
4145
|
return /* @__PURE__ */ f(Dt, { children: /* @__PURE__ */ f(rt.ValueText, { ...t, ref: r }) });
|
|
4145
4146
|
}), pp = rt.Root, ju = {
|
|
4146
4147
|
fromLeftToRight: {
|
|
@@ -5869,7 +5870,7 @@ const od = ce({
|
|
|
5869
5870
|
full: {
|
|
5870
5871
|
content: {
|
|
5871
5872
|
maxW: "100vw",
|
|
5872
|
-
minH: "
|
|
5873
|
+
minH: "100dvh",
|
|
5873
5874
|
"--dialog-margin": "0",
|
|
5874
5875
|
borderRadius: "0"
|
|
5875
5876
|
}
|
|
@@ -8299,7 +8300,7 @@ const bd = ce({
|
|
|
8299
8300
|
function hp(e) {
|
|
8300
8301
|
return /* @__PURE__ */ f(Ka, { value: Pd, children: /* @__PURE__ */ f(Jc, { ...e }) });
|
|
8301
8302
|
}
|
|
8302
|
-
const gp =
|
|
8303
|
+
const gp = P.forwardRef(
|
|
8303
8304
|
function(t, r) {
|
|
8304
8305
|
const { children: n, inputProps: o, rootRef: i, ...s } = t;
|
|
8305
8306
|
return /* @__PURE__ */ q(tt.Item, { ref: i, ...s, children: [
|
|
@@ -8308,19 +8309,19 @@ const gp = L.forwardRef(
|
|
|
8308
8309
|
n && /* @__PURE__ */ f(tt.ItemText, { children: n })
|
|
8309
8310
|
] });
|
|
8310
8311
|
}
|
|
8311
|
-
), bp = tt.Root, Ld = (e) => /* @__PURE__ */
|
|
8312
|
+
), bp = tt.Root, Ld = (e) => /* @__PURE__ */ P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { d: "M15.713 20a.724.724 0 0 1-.354-.09L10 16.956 4.64 19.91a.728.728 0 0 1-.796-.061.788.788 0 0 1-.256-.342.827.827 0 0 1-.045-.432l1.024-6.252L.229 8.394a.802.802 0 0 1-.207-.377.829.829 0 0 1 .015-.435.795.795 0 0 1 .232-.361.741.741 0 0 1 .379-.179L6.64 6.13 9.321.442a.78.78 0 0 1 .28-.323.731.731 0 0 1 .798 0 .78.78 0 0 1 .28.323l2.68 5.688 5.993.912a.74.74 0 0 1 .379.178.8.8 0 0 1 .232.361.828.828 0 0 1-.192.813l-4.338 4.428 1.024 6.252a.83.83 0 0 1-.167.644.762.762 0 0 1-.26.208.728.728 0 0 1-.319.074h.002Z", fill: "currentColor" })), Nd = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.711 20a.724.724 0 0 1-.352-.09Zm.005 0a.73.73 0 0 0 .314-.074.77.77 0 0 0 .26-.208.806.806 0 0 0 .167-.644l-1.024-6.252 4.338-4.428a.828.828 0 0 0 .192-.813.796.796 0 0 0-.232-.36.74.74 0 0 0-.38-.179l-5.86-.892a.25.25 0 0 1-.19-.14L10.679.442A.78.78 0 0 0 10.4.119a.732.732 0 0 0-.798 0 .78.78 0 0 0-.28.323L6.699 6.01a.25.25 0 0 1-.188.14l-5.862.892a.741.741 0 0 0-.38.179.795.795 0 0 0-.231.36.829.829 0 0 0-.015.436.802.802 0 0 0 .207.377l4.25 4.338a.25.25 0 0 1 .068.215l-1.004 6.127a.827.827 0 0 0 .045.432.788.788 0 0 0 .256.342.728.728 0 0 0 .796.061l5.24-2.886a.25.25 0 0 1 .24 0l5.24 2.886m-9.354-3.497a.25.25 0 0 0 .367.26L9.88 14.74a.25.25 0 0 1 .24 0l3.507 1.932a.25.25 0 0 0 .367-.26l-.678-4.141a.25.25 0 0 1 .068-.216l2.982-3.043a.25.25 0 0 0-.14-.423l-4.09-.622a.25.25 0 0 1-.189-.14l-1.72-3.653a.25.25 0 0 0-.453 0L8.053 7.826a.25.25 0 0 1-.189.141l-4.09.622a.25.25 0 0 0-.14.423l2.982 3.043a.25.25 0 0 1 .068.216l-.678 4.14ZM15.716 20h-.003Z", fill: "currentColor" })), mp = P.forwardRef(
|
|
8312
8313
|
function(t, r) {
|
|
8313
|
-
const { count: n = 5, label: o, defaultValue: i, onValueChange: s, readOnly: l, ...p } = t, h = Ya({ count: n, defaultValue: i, onValueChange: s, readOnly: l }),
|
|
8314
|
+
const { count: n = 5, label: o, defaultValue: i, onValueChange: s, readOnly: l, ...p } = t, h = Ya({ count: n, defaultValue: i, onValueChange: s, readOnly: l }), b = h.hovering && !l ? h.hoveredValue : h.value, _ = Array.isArray(o) ? o[b - 1] : o;
|
|
8314
8315
|
return /* @__PURE__ */ q(We.RootProvider, { ref: r, value: h, ...p, children: [
|
|
8315
8316
|
/* @__PURE__ */ f(We.HiddenInput, {}),
|
|
8316
8317
|
/* @__PURE__ */ f(We.Control, { children: Array.from({ length: n }).map((S, m) => {
|
|
8317
|
-
const T = m <
|
|
8318
|
+
const T = m < b ? /* @__PURE__ */ f(ge, { boxSize: 5, children: /* @__PURE__ */ f(Ld, {}) }) : /* @__PURE__ */ f(ge, { boxSize: 5, children: /* @__PURE__ */ f(Nd, {}) });
|
|
8318
8319
|
return /* @__PURE__ */ f(We.Item, { index: m + 1, children: /* @__PURE__ */ f(We.ItemIndicator, { icon: T }) }, m);
|
|
8319
8320
|
}) }),
|
|
8320
8321
|
_ && /* @__PURE__ */ f(We.Label, { children: _ })
|
|
8321
8322
|
] });
|
|
8322
8323
|
}
|
|
8323
|
-
), Dd = (e) => /* @__PURE__ */
|
|
8324
|
+
), Dd = (e) => /* @__PURE__ */ P.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { d: "M9.293 14.465a1 1 0 0 0 1.414 0l7.778-7.78A1 1 0 0 1 19.899 8.1l-9.192 9.193a1 1 0 0 1-1.414 0l-4.95-4.95a1 1 0 0 1 1.414-1.414l3.536 3.536Z", fill: "currentColor" })), Bd = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { d: "m14.048 13.074 2.464 2.463a.69.69 0 1 1-.975.975l-2.463-2.464A6.205 6.205 0 0 1 3 9.202 6.205 6.205 0 0 1 9.203 3a6.205 6.205 0 0 1 4.845 10.074Zm-1.382-.512a4.823 4.823 0 0 0-3.463-8.184 4.822 4.822 0 0 0-4.825 4.825 4.823 4.823 0 0 0 8.184 3.463l.104-.104Z", fill: "currentColor" })), zd = ({ disabled: e, visible: t = !0, ...r }) => /* @__PURE__ */ f(
|
|
8324
8325
|
Re,
|
|
8325
8326
|
{
|
|
8326
8327
|
disabled: e || !t,
|
|
@@ -8341,14 +8342,14 @@ const gp = L.forwardRef(
|
|
|
8341
8342
|
onFocus: l,
|
|
8342
8343
|
onBlur: p,
|
|
8343
8344
|
inputProps: h,
|
|
8344
|
-
...
|
|
8345
|
+
...b
|
|
8345
8346
|
}) => {
|
|
8346
|
-
const [_, S] = vr(n || ""), m = U.useRef(null), T = zr((
|
|
8347
|
-
const { value: N } =
|
|
8347
|
+
const [_, S] = vr(n || ""), m = U.useRef(null), T = zr((C) => {
|
|
8348
|
+
const { value: N } = C.target;
|
|
8348
8349
|
S(N), e == null || e(N);
|
|
8349
8350
|
}, [e]), O = zr(() => {
|
|
8350
|
-
var
|
|
8351
|
-
S(""), e == null || e(""), (
|
|
8351
|
+
var C;
|
|
8352
|
+
S(""), e == null || e(""), (C = m == null ? void 0 : m.current) == null || C.focus();
|
|
8352
8353
|
}, [e]), w = /* @__PURE__ */ f(ge, { boxSize: 5, children: /* @__PURE__ */ f(Bd, {}) }), R = /* @__PURE__ */ f(zd, { onClick: O, visible: _.length > 0 });
|
|
8353
8354
|
return /* @__PURE__ */ f(
|
|
8354
8355
|
xe,
|
|
@@ -8356,7 +8357,7 @@ const gp = L.forwardRef(
|
|
|
8356
8357
|
minW: "250px",
|
|
8357
8358
|
borderRadius: "base",
|
|
8358
8359
|
loading: s,
|
|
8359
|
-
...
|
|
8360
|
+
...b,
|
|
8360
8361
|
children: /* @__PURE__ */ f(
|
|
8361
8362
|
Vt,
|
|
8362
8363
|
{
|
|
@@ -8386,10 +8387,10 @@ const gp = L.forwardRef(
|
|
|
8386
8387
|
)
|
|
8387
8388
|
}
|
|
8388
8389
|
);
|
|
8389
|
-
}, Ea =
|
|
8390
|
-
const { children: n, noIndicator: o, triggerProps: i, loading: s, defaultValue: l, ...p } = t, h = Hi(),
|
|
8390
|
+
}, Ea = P.forwardRef(function(t, r) {
|
|
8391
|
+
const { children: n, noIndicator: o, triggerProps: i, loading: s, defaultValue: l, ...p } = t, h = Hi(), b = Array.isArray(l) ? h.value.every((_) => l.includes(_)) : h.value === l;
|
|
8391
8392
|
return /* @__PURE__ */ f(xe, { loading: s, asChild: !0, children: /* @__PURE__ */ q(fe.Control, { ...p, children: [
|
|
8392
|
-
/* @__PURE__ */ f(fe.Trigger, { ref: r, className: "group peer", ...i, "data-default-value":
|
|
8393
|
+
/* @__PURE__ */ f(fe.Trigger, { ref: r, className: "group peer", ...i, "data-default-value": b, children: n }),
|
|
8393
8394
|
!o && /* @__PURE__ */ f(fe.IndicatorGroup, { children: !o && /* @__PURE__ */ f(
|
|
8394
8395
|
fe.Indicator,
|
|
8395
8396
|
{
|
|
@@ -8400,25 +8401,25 @@ const gp = L.forwardRef(
|
|
|
8400
8401
|
}
|
|
8401
8402
|
) })
|
|
8402
8403
|
] }) });
|
|
8403
|
-
}), vp =
|
|
8404
|
+
}), vp = P.forwardRef(function(t, r) {
|
|
8404
8405
|
return /* @__PURE__ */ f(fe.ClearTrigger, { asChild: !0, ...t, ref: r, children: /* @__PURE__ */ f(
|
|
8405
8406
|
Re,
|
|
8406
8407
|
{
|
|
8407
8408
|
pointerEvents: "auto"
|
|
8408
8409
|
}
|
|
8409
8410
|
) });
|
|
8410
|
-
}), Ca =
|
|
8411
|
+
}), Ca = P.forwardRef(function(t, r) {
|
|
8411
8412
|
const { portalled: n = !0, portalRef: o, ...i } = t;
|
|
8412
8413
|
return /* @__PURE__ */ f(Fe, { disabled: !n, container: o, children: /* @__PURE__ */ f(fe.Positioner, { children: /* @__PURE__ */ f(fe.Content, { ...i, ref: r }) }) });
|
|
8413
|
-
}), xa =
|
|
8414
|
+
}), xa = P.forwardRef(function(t, r) {
|
|
8414
8415
|
const { item: n, children: o, ...i } = t, s = n.icon;
|
|
8415
8416
|
return /* @__PURE__ */ q(fe.Item, { item: n, ...i, ref: r, children: [
|
|
8416
8417
|
s,
|
|
8417
8418
|
o,
|
|
8418
8419
|
/* @__PURE__ */ f(fe.ItemIndicator, { asChild: !0, children: /* @__PURE__ */ f(ge, { boxSize: 5, flexShrink: 0, ml: "auto", children: /* @__PURE__ */ f(Dd, {}) }) })
|
|
8419
8420
|
] }, n.value);
|
|
8420
|
-
}), wa =
|
|
8421
|
-
const { children: n, size: o, required: i, invalid: s, errorText: l, ...p } = t, h = Hi(),
|
|
8421
|
+
}), wa = P.forwardRef(function(t, r) {
|
|
8422
|
+
const { children: n, size: o, required: i, invalid: s, errorText: l, ...p } = t, h = Hi(), b = (() => {
|
|
8422
8423
|
const _ = h.selectedItems, S = `${t.placeholder}${i ? "*" : ""}${s && l ? ` - ${l}` : ""}`;
|
|
8423
8424
|
if (_.length === 0) return S;
|
|
8424
8425
|
if (n) return n(_);
|
|
@@ -8451,10 +8452,10 @@ const gp = L.forwardRef(
|
|
|
8451
8452
|
{
|
|
8452
8453
|
ref: r,
|
|
8453
8454
|
...p,
|
|
8454
|
-
children:
|
|
8455
|
+
children: b
|
|
8455
8456
|
}
|
|
8456
8457
|
);
|
|
8457
|
-
}), Ta =
|
|
8458
|
+
}), Ta = P.forwardRef(function(t, r) {
|
|
8458
8459
|
var s;
|
|
8459
8460
|
const { lazyMount: n = !0, unmountOnExit: o = !0, ...i } = t;
|
|
8460
8461
|
return /* @__PURE__ */ f(
|
|
@@ -8471,13 +8472,13 @@ const gp = L.forwardRef(
|
|
|
8471
8472
|
] })
|
|
8472
8473
|
}
|
|
8473
8474
|
);
|
|
8474
|
-
}), _p =
|
|
8475
|
+
}), _p = P.forwardRef(function(t, r) {
|
|
8475
8476
|
const { children: n, label: o, ...i } = t;
|
|
8476
8477
|
return /* @__PURE__ */ q(fe.ItemGroup, { ...i, ref: r, children: [
|
|
8477
8478
|
/* @__PURE__ */ f(fe.ItemGroupLabel, { children: o }),
|
|
8478
8479
|
n
|
|
8479
8480
|
] });
|
|
8480
|
-
}), yp = fe.Label, Ep = fe.ItemText, Fd =
|
|
8481
|
+
}), yp = fe.Label, Ep = fe.ItemText, Fd = P.forwardRef((e, t) => {
|
|
8481
8482
|
const { collection: r, placeholder: n, portalled: o = !0, loading: i, errorText: s, contentProps: l, ...p } = e;
|
|
8482
8483
|
return /* @__PURE__ */ q(
|
|
8483
8484
|
Ta,
|
|
@@ -8500,22 +8501,22 @@ const gp = L.forwardRef(
|
|
|
8500
8501
|
]
|
|
8501
8502
|
}
|
|
8502
8503
|
);
|
|
8503
|
-
}), Md =
|
|
8504
|
-
const { placeholder: r, portalled: n = !0, loading: o, loadOptions: i, extraControls: s, onValueChange: l, errorText: p, ...h } = e, [
|
|
8505
|
-
|
|
8504
|
+
}), Md = P.forwardRef((e, t) => {
|
|
8505
|
+
const { placeholder: r, portalled: n = !0, loading: o, loadOptions: i, extraControls: s, onValueChange: l, errorText: p, ...h } = e, [b, _] = P.useState(Za({ items: [] })), [S, m] = P.useState(""), [T, O] = P.useState([]), w = xl(S, 300);
|
|
8506
|
+
P.useEffect(() => {
|
|
8506
8507
|
i(w, T).then(_);
|
|
8507
8508
|
}, [w, i, T]);
|
|
8508
|
-
const R =
|
|
8509
|
+
const R = P.useCallback((N) => {
|
|
8509
8510
|
m(N);
|
|
8510
|
-
}, []),
|
|
8511
|
+
}, []), C = P.useCallback(({ value: N, items: F }) => {
|
|
8511
8512
|
O(N), l == null || l({ value: N, items: F });
|
|
8512
8513
|
}, [l]);
|
|
8513
8514
|
return /* @__PURE__ */ q(
|
|
8514
8515
|
Ta,
|
|
8515
8516
|
{
|
|
8516
8517
|
ref: t,
|
|
8517
|
-
collection:
|
|
8518
|
-
onValueChange:
|
|
8518
|
+
collection: b,
|
|
8519
|
+
onValueChange: C,
|
|
8519
8520
|
...h,
|
|
8520
8521
|
children: [
|
|
8521
8522
|
/* @__PURE__ */ f(Ea, { loading: o, children: /* @__PURE__ */ f(
|
|
@@ -8541,14 +8542,14 @@ const gp = L.forwardRef(
|
|
|
8541
8542
|
),
|
|
8542
8543
|
s
|
|
8543
8544
|
] }),
|
|
8544
|
-
|
|
8545
|
+
b.items.map((N) => /* @__PURE__ */ f(xa, { item: N, children: N.label }, N.value))
|
|
8545
8546
|
] })
|
|
8546
8547
|
]
|
|
8547
8548
|
}
|
|
8548
8549
|
);
|
|
8549
|
-
}), Cp =
|
|
8550
|
+
}), Cp = P.forwardRef(
|
|
8550
8551
|
function(t, r) {
|
|
8551
|
-
const { marks: n, label: o, showValue: i, ...s } = t, l = t.defaultValue ?? t.value, p = n == null ? void 0 : n.map((
|
|
8552
|
+
const { marks: n, label: o, showValue: i, ...s } = t, l = t.defaultValue ?? t.value, p = n == null ? void 0 : n.map((b) => typeof b == "number" ? { value: b, label: void 0 } : b), h = !!(p != null && p.some((b) => b.label));
|
|
8552
8553
|
return /* @__PURE__ */ q(ye.Root, { ref: r, thumbAlignment: "center", ...s, children: [
|
|
8553
8554
|
o && !i && /* @__PURE__ */ f(ye.Label, { children: o }),
|
|
8554
8555
|
o && i && /* @__PURE__ */ q(Qa, { justify: "space-between", children: [
|
|
@@ -8567,7 +8568,7 @@ function jd(e) {
|
|
|
8567
8568
|
const { value: t } = e;
|
|
8568
8569
|
return /* @__PURE__ */ f(Ja, { each: t, children: (r, n) => /* @__PURE__ */ f(ye.Thumb, { index: n, children: /* @__PURE__ */ f(ye.HiddenInput, {}) }, n) });
|
|
8569
8570
|
}
|
|
8570
|
-
const Hd =
|
|
8571
|
+
const Hd = P.forwardRef(
|
|
8571
8572
|
function(t, r) {
|
|
8572
8573
|
const { marks: n } = t;
|
|
8573
8574
|
return n != null && n.length ? /* @__PURE__ */ f(ye.MarkerGroup, { ref: r, children: n.map((o, i) => {
|
|
@@ -8578,7 +8579,7 @@ const Hd = L.forwardRef(
|
|
|
8578
8579
|
] }, i);
|
|
8579
8580
|
}) }) : null;
|
|
8580
8581
|
}
|
|
8581
|
-
), xp =
|
|
8582
|
+
), xp = P.forwardRef(
|
|
8582
8583
|
function(t, r) {
|
|
8583
8584
|
const { inputProps: n, children: o, rootRef: i, trackLabel: s, thumbLabel: l, labelProps: p, ...h } = t;
|
|
8584
8585
|
return /* @__PURE__ */ q(Le.Root, { ref: i, ...h, children: [
|
|
@@ -8597,7 +8598,7 @@ const Hd = L.forwardRef(
|
|
|
8597
8598
|
const { isNumeric: t, ...r } = e;
|
|
8598
8599
|
return /* @__PURE__ */ f(qe.ColumnHeader, { textAlign: t ? "right" : void 0, ...r });
|
|
8599
8600
|
}, Ap = (e) => {
|
|
8600
|
-
const { sortField: t, sortValue: r, onSortToggle: n, children: o, disabled: i, indicatorPosition: s = "left", ...l } = e, p =
|
|
8601
|
+
const { sortField: t, sortValue: r, onSortToggle: n, children: o, disabled: i, indicatorPosition: s = "left", ...l } = e, p = P.useCallback(() => {
|
|
8601
8602
|
n(t);
|
|
8602
8603
|
}, [n, t]);
|
|
8603
8604
|
return /* @__PURE__ */ f($d, { ...l, children: /* @__PURE__ */ q($t, { onClick: i ? void 0 : p, position: "relative", children: [
|
|
@@ -8617,11 +8618,11 @@ const Hd = L.forwardRef(
|
|
|
8617
8618
|
o
|
|
8618
8619
|
] }) });
|
|
8619
8620
|
}, Ip = (e) => {
|
|
8620
|
-
const { top: t, children: r, ...n } = e, o =
|
|
8621
|
+
const { top: t, children: r, ...n } = e, o = P.useRef(null), [i, s] = P.useState(!1), l = P.useCallback(() => {
|
|
8621
8622
|
var p;
|
|
8622
8623
|
Number((p = o.current) == null ? void 0 : p.getBoundingClientRect().y) <= (t || 0) ? s(!0) : s(!1);
|
|
8623
8624
|
}, [t]);
|
|
8624
|
-
return
|
|
8625
|
+
return P.useEffect(() => {
|
|
8625
8626
|
const p = qi(l, 300);
|
|
8626
8627
|
return window.addEventListener("scroll", p), () => {
|
|
8627
8628
|
window.removeEventListener("scroll", p);
|
|
@@ -8639,12 +8640,12 @@ const Hd = L.forwardRef(
|
|
|
8639
8640
|
children: r
|
|
8640
8641
|
}
|
|
8641
8642
|
);
|
|
8642
|
-
}, Vd =
|
|
8643
|
+
}, Vd = P.forwardRef(
|
|
8643
8644
|
function(t, r) {
|
|
8644
8645
|
const { lazyMount: n = !0, unmountOnExit: o = !0, ...i } = t;
|
|
8645
8646
|
return /* @__PURE__ */ f(Bt.Root, { ref: r, ...i, lazyMount: n, unmountOnExit: o });
|
|
8646
8647
|
}
|
|
8647
|
-
), Xd = Bt.List, hr =
|
|
8648
|
+
), Xd = Bt.List, hr = P.forwardRef(
|
|
8648
8649
|
function(t, r) {
|
|
8649
8650
|
return /* @__PURE__ */ f(Bt.Trigger, { ref: r, className: "group", ...t });
|
|
8650
8651
|
}
|
|
@@ -8657,7 +8658,7 @@ const Hd = L.forwardRef(
|
|
|
8657
8658
|
},
|
|
8658
8659
|
children: e > 50 ? "50+" : e
|
|
8659
8660
|
}
|
|
8660
|
-
), Op =
|
|
8661
|
+
), Op = P.forwardRef(
|
|
8661
8662
|
function(t, r) {
|
|
8662
8663
|
const {
|
|
8663
8664
|
startElement: n,
|
|
@@ -8667,7 +8668,7 @@ const Hd = L.forwardRef(
|
|
|
8667
8668
|
onClose: l,
|
|
8668
8669
|
closable: p = !!l,
|
|
8669
8670
|
children: h,
|
|
8670
|
-
truncated:
|
|
8671
|
+
truncated: b = !1,
|
|
8671
8672
|
loading: _,
|
|
8672
8673
|
selected: S,
|
|
8673
8674
|
...m
|
|
@@ -8675,7 +8676,7 @@ const Hd = L.forwardRef(
|
|
|
8675
8676
|
s,
|
|
8676
8677
|
":",
|
|
8677
8678
|
pa
|
|
8678
|
-
] }) : null, O =
|
|
8679
|
+
] }) : null, O = b ? /* @__PURE__ */ f(ia, { label: h, children: /* @__PURE__ */ q(Ne.Label, { children: [
|
|
8679
8680
|
T,
|
|
8680
8681
|
h
|
|
8681
8682
|
] }) }) : /* @__PURE__ */ q(Ne.Label, { children: [
|
|
@@ -8700,7 +8701,7 @@ const Hd = L.forwardRef(
|
|
|
8700
8701
|
), qd = el;
|
|
8701
8702
|
var Kd = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, ur = Math.ceil, Se = Math.floor, pe = "[BigNumber Error] ", Ho = pe + "Number primitive has more than 15 significant digits: ", Te = 1e14, ee = 14, Wo = 9007199254740991, dr = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Pe = 1e7, be = 1e9;
|
|
8702
8703
|
function Sa(e) {
|
|
8703
|
-
var t, r, n, o =
|
|
8704
|
+
var t, r, n, o = C.prototype = { constructor: C, toString: null, valueOf: null }, i = new C(1), s = 20, l = 4, p = -7, h = 21, b = -1e7, _ = 1e7, S = !1, m = 1, T = 0, O = {
|
|
8704
8705
|
prefix: "",
|
|
8705
8706
|
groupSize: 3,
|
|
8706
8707
|
secondaryGroupSize: 0,
|
|
@@ -8711,15 +8712,15 @@ function Sa(e) {
|
|
|
8711
8712
|
// non-breaking space
|
|
8712
8713
|
suffix: ""
|
|
8713
8714
|
}, w = "0123456789abcdefghijklmnopqrstuvwxyz", R = !0;
|
|
8714
|
-
function
|
|
8715
|
-
var d,
|
|
8716
|
-
if (!(k instanceof
|
|
8715
|
+
function C(a, c) {
|
|
8716
|
+
var d, g, u, v, y, E, x, A, k = this;
|
|
8717
|
+
if (!(k instanceof C)) return new C(a, c);
|
|
8717
8718
|
if (c == null) {
|
|
8718
8719
|
if (a && a._isBigNumber === !0) {
|
|
8719
|
-
k.s = a.s, !a.c || a.e > _ ? k.c = k.e = null : a.e <
|
|
8720
|
+
k.s = a.s, !a.c || a.e > _ ? k.c = k.e = null : a.e < b ? k.c = [k.e = 0] : (k.e = a.e, k.c = a.c.slice());
|
|
8720
8721
|
return;
|
|
8721
8722
|
}
|
|
8722
|
-
if ((
|
|
8723
|
+
if ((E = typeof a == "number") && a * 0 == 0) {
|
|
8723
8724
|
if (k.s = 1 / a < 0 ? (a = -a, -1) : 1, a === ~~a) {
|
|
8724
8725
|
for (v = 0, y = a; y >= 10; y /= 10, v++) ;
|
|
8725
8726
|
v > _ ? k.c = k.e = null : (k.e = v, k.c = [a]);
|
|
@@ -8727,22 +8728,22 @@ function Sa(e) {
|
|
|
8727
8728
|
}
|
|
8728
8729
|
A = String(a);
|
|
8729
8730
|
} else {
|
|
8730
|
-
if (!Kd.test(A = String(a))) return n(k, A,
|
|
8731
|
+
if (!Kd.test(A = String(a))) return n(k, A, E);
|
|
8731
8732
|
k.s = A.charCodeAt(0) == 45 ? (A = A.slice(1), -1) : 1;
|
|
8732
8733
|
}
|
|
8733
8734
|
(v = A.indexOf(".")) > -1 && (A = A.replace(".", "")), (y = A.search(/e/i)) > 0 ? (v < 0 && (v = y), v += +A.slice(y + 1), A = A.substring(0, y)) : v < 0 && (v = A.length);
|
|
8734
8735
|
} else {
|
|
8735
8736
|
if (se(c, 2, w.length, "Base"), c == 10 && R)
|
|
8736
|
-
return k = new
|
|
8737
|
-
if (A = String(a),
|
|
8738
|
-
if (a * 0 != 0) return n(k, A,
|
|
8739
|
-
if (k.s = 1 / a < 0 ? (A = A.slice(1), -1) : 1,
|
|
8737
|
+
return k = new C(a), M(k, s + k.e + 1, l);
|
|
8738
|
+
if (A = String(a), E = typeof a == "number") {
|
|
8739
|
+
if (a * 0 != 0) return n(k, A, E, c);
|
|
8740
|
+
if (k.s = 1 / a < 0 ? (A = A.slice(1), -1) : 1, C.DEBUG && A.replace(/^0\.0*|\./, "").length > 15)
|
|
8740
8741
|
throw Error(Ho + a);
|
|
8741
8742
|
} else
|
|
8742
8743
|
k.s = A.charCodeAt(0) === 45 ? (A = A.slice(1), -1) : 1;
|
|
8743
8744
|
for (d = w.slice(0, c), v = y = 0, x = A.length; y < x; y++)
|
|
8744
|
-
if (d.indexOf(
|
|
8745
|
-
if (
|
|
8745
|
+
if (d.indexOf(g = A.charAt(y)) < 0) {
|
|
8746
|
+
if (g == ".") {
|
|
8746
8747
|
if (y > v) {
|
|
8747
8748
|
v = x;
|
|
8748
8749
|
continue;
|
|
@@ -8751,18 +8752,18 @@ function Sa(e) {
|
|
|
8751
8752
|
u = !0, y = -1, v = 0;
|
|
8752
8753
|
continue;
|
|
8753
8754
|
}
|
|
8754
|
-
return n(k, String(a),
|
|
8755
|
+
return n(k, String(a), E, c);
|
|
8755
8756
|
}
|
|
8756
|
-
|
|
8757
|
+
E = !1, A = r(A, c, 10, k.s), (v = A.indexOf(".")) > -1 ? A = A.replace(".", "") : v = A.length;
|
|
8757
8758
|
}
|
|
8758
8759
|
for (y = 0; A.charCodeAt(y) === 48; y++) ;
|
|
8759
8760
|
for (x = A.length; A.charCodeAt(--x) === 48; ) ;
|
|
8760
8761
|
if (A = A.slice(y, ++x)) {
|
|
8761
|
-
if (x -= y,
|
|
8762
|
+
if (x -= y, E && C.DEBUG && x > 15 && (a > Wo || a !== Se(a)))
|
|
8762
8763
|
throw Error(Ho + k.s * a);
|
|
8763
8764
|
if ((v = v - y - 1) > _)
|
|
8764
8765
|
k.c = k.e = null;
|
|
8765
|
-
else if (v <
|
|
8766
|
+
else if (v < b)
|
|
8766
8767
|
k.c = [k.e = 0];
|
|
8767
8768
|
else {
|
|
8768
8769
|
if (k.e = v, k.c = [], y = (v + 1) % ee, v < 0 && (y += ee), y < x) {
|
|
@@ -8777,15 +8778,15 @@ function Sa(e) {
|
|
|
8777
8778
|
} else
|
|
8778
8779
|
k.c = [k.e = 0];
|
|
8779
8780
|
}
|
|
8780
|
-
|
|
8781
|
+
C.clone = Sa, C.ROUND_UP = 0, C.ROUND_DOWN = 1, C.ROUND_CEIL = 2, C.ROUND_FLOOR = 3, C.ROUND_HALF_UP = 4, C.ROUND_HALF_DOWN = 5, C.ROUND_HALF_EVEN = 6, C.ROUND_HALF_CEIL = 7, C.ROUND_HALF_FLOOR = 8, C.EUCLID = 9, C.config = C.set = function(a) {
|
|
8781
8782
|
var c, d;
|
|
8782
8783
|
if (a != null)
|
|
8783
8784
|
if (typeof a == "object") {
|
|
8784
8785
|
if (a.hasOwnProperty(c = "DECIMAL_PLACES") && (d = a[c], se(d, 0, be, c), s = d), a.hasOwnProperty(c = "ROUNDING_MODE") && (d = a[c], se(d, 0, 8, c), l = d), a.hasOwnProperty(c = "EXPONENTIAL_AT") && (d = a[c], d && d.pop ? (se(d[0], -1e9, 0, c), se(d[1], 0, be, c), p = d[0], h = d[1]) : (se(d, -1e9, be, c), p = -(h = d < 0 ? -d : d))), a.hasOwnProperty(c = "RANGE"))
|
|
8785
8786
|
if (d = a[c], d && d.pop)
|
|
8786
|
-
se(d[0], -1e9, -1, c), se(d[1], 1, be, c),
|
|
8787
|
+
se(d[0], -1e9, -1, c), se(d[1], 1, be, c), b = d[0], _ = d[1];
|
|
8787
8788
|
else if (se(d, -1e9, be, c), d)
|
|
8788
|
-
|
|
8789
|
+
b = -(_ = d < 0 ? -d : d);
|
|
8789
8790
|
else
|
|
8790
8791
|
throw Error(pe + c + " cannot be zero: " + d);
|
|
8791
8792
|
if (a.hasOwnProperty(c = "CRYPTO"))
|
|
@@ -8813,158 +8814,158 @@ function Sa(e) {
|
|
|
8813
8814
|
DECIMAL_PLACES: s,
|
|
8814
8815
|
ROUNDING_MODE: l,
|
|
8815
8816
|
EXPONENTIAL_AT: [p, h],
|
|
8816
|
-
RANGE: [
|
|
8817
|
+
RANGE: [b, _],
|
|
8817
8818
|
CRYPTO: S,
|
|
8818
8819
|
MODULO_MODE: m,
|
|
8819
8820
|
POW_PRECISION: T,
|
|
8820
8821
|
FORMAT: O,
|
|
8821
8822
|
ALPHABET: w
|
|
8822
8823
|
};
|
|
8823
|
-
},
|
|
8824
|
+
}, C.isBigNumber = function(a) {
|
|
8824
8825
|
if (!a || a._isBigNumber !== !0) return !1;
|
|
8825
|
-
if (!
|
|
8826
|
-
var c, d,
|
|
8827
|
-
e: if ({}.toString.call(
|
|
8826
|
+
if (!C.DEBUG) return !0;
|
|
8827
|
+
var c, d, g = a.c, u = a.e, v = a.s;
|
|
8828
|
+
e: if ({}.toString.call(g) == "[object Array]") {
|
|
8828
8829
|
if ((v === 1 || v === -1) && u >= -1e9 && u <= be && u === Se(u)) {
|
|
8829
|
-
if (
|
|
8830
|
-
if (u === 0 &&
|
|
8830
|
+
if (g[0] === 0) {
|
|
8831
|
+
if (u === 0 && g.length === 1) return !0;
|
|
8831
8832
|
break e;
|
|
8832
8833
|
}
|
|
8833
|
-
if (c = (u + 1) % ee, c < 1 && (c += ee), String(
|
|
8834
|
-
for (c = 0; c <
|
|
8835
|
-
if (d =
|
|
8834
|
+
if (c = (u + 1) % ee, c < 1 && (c += ee), String(g[0]).length == c) {
|
|
8835
|
+
for (c = 0; c < g.length; c++)
|
|
8836
|
+
if (d = g[c], d < 0 || d >= Te || d !== Se(d)) break e;
|
|
8836
8837
|
if (d !== 0) return !0;
|
|
8837
8838
|
}
|
|
8838
8839
|
}
|
|
8839
|
-
} else if (
|
|
8840
|
+
} else if (g === null && u === null && (v === null || v === 1 || v === -1))
|
|
8840
8841
|
return !0;
|
|
8841
8842
|
throw Error(pe + "Invalid BigNumber: " + a);
|
|
8842
|
-
},
|
|
8843
|
+
}, C.maximum = C.max = function() {
|
|
8843
8844
|
return F(arguments, o.lt);
|
|
8844
|
-
},
|
|
8845
|
+
}, C.minimum = C.min = function() {
|
|
8845
8846
|
return F(arguments, o.gt);
|
|
8846
|
-
},
|
|
8847
|
+
}, C.random = function() {
|
|
8847
8848
|
var a = 9007199254740992, c = Math.random() * a & 2097151 ? function() {
|
|
8848
8849
|
return Se(Math.random() * a);
|
|
8849
8850
|
} : function() {
|
|
8850
8851
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
8851
8852
|
};
|
|
8852
8853
|
return function(d) {
|
|
8853
|
-
var
|
|
8854
|
+
var g, u, v, y, E, x = 0, A = [], k = new C(i);
|
|
8854
8855
|
if (d == null ? d = s : se(d, 0, be), y = ur(d / ee), S)
|
|
8855
8856
|
if (crypto.getRandomValues) {
|
|
8856
|
-
for (
|
|
8857
|
-
|
|
8857
|
+
for (g = crypto.getRandomValues(new Uint32Array(y *= 2)); x < y; )
|
|
8858
|
+
E = g[x] * 131072 + (g[x + 1] >>> 11), E >= 9e15 ? (u = crypto.getRandomValues(new Uint32Array(2)), g[x] = u[0], g[x + 1] = u[1]) : (A.push(E % 1e14), x += 2);
|
|
8858
8859
|
x = y / 2;
|
|
8859
8860
|
} else if (crypto.randomBytes) {
|
|
8860
|
-
for (
|
|
8861
|
-
|
|
8861
|
+
for (g = crypto.randomBytes(y *= 7); x < y; )
|
|
8862
|
+
E = (g[x] & 31) * 281474976710656 + g[x + 1] * 1099511627776 + g[x + 2] * 4294967296 + g[x + 3] * 16777216 + (g[x + 4] << 16) + (g[x + 5] << 8) + g[x + 6], E >= 9e15 ? crypto.randomBytes(7).copy(g, x) : (A.push(E % 1e14), x += 7);
|
|
8862
8863
|
x = y / 7;
|
|
8863
8864
|
} else
|
|
8864
8865
|
throw S = !1, Error(pe + "crypto unavailable");
|
|
8865
8866
|
if (!S)
|
|
8866
8867
|
for (; x < y; )
|
|
8867
|
-
|
|
8868
|
-
for (y = A[--x], d %= ee, y && d && (
|
|
8868
|
+
E = c(), E < 9e15 && (A[x++] = E % 1e14);
|
|
8869
|
+
for (y = A[--x], d %= ee, y && d && (E = dr[ee - d], A[x] = Se(y / E) * E); A[x] === 0; A.pop(), x--) ;
|
|
8869
8870
|
if (x < 0)
|
|
8870
8871
|
A = [v = 0];
|
|
8871
8872
|
else {
|
|
8872
8873
|
for (v = -1; A[0] === 0; A.splice(0, 1), v -= ee) ;
|
|
8873
|
-
for (x = 1,
|
|
8874
|
+
for (x = 1, E = A[0]; E >= 10; E /= 10, x++) ;
|
|
8874
8875
|
x < ee && (v -= ee - x);
|
|
8875
8876
|
}
|
|
8876
8877
|
return k.e = v, k.c = A, k;
|
|
8877
8878
|
};
|
|
8878
|
-
}(),
|
|
8879
|
-
for (var a = 1, c = arguments, d = new
|
|
8879
|
+
}(), C.sum = function() {
|
|
8880
|
+
for (var a = 1, c = arguments, d = new C(c[0]); a < c.length; ) d = d.plus(c[a++]);
|
|
8880
8881
|
return d;
|
|
8881
8882
|
}, r = /* @__PURE__ */ function() {
|
|
8882
8883
|
var a = "0123456789";
|
|
8883
|
-
function c(d,
|
|
8884
|
-
for (var y,
|
|
8885
|
-
for (x =
|
|
8886
|
-
for (
|
|
8887
|
-
|
|
8884
|
+
function c(d, g, u, v) {
|
|
8885
|
+
for (var y, E = [0], x, A = 0, k = d.length; A < k; ) {
|
|
8886
|
+
for (x = E.length; x--; E[x] *= g) ;
|
|
8887
|
+
for (E[0] += v.indexOf(d.charAt(A++)), y = 0; y < E.length; y++)
|
|
8888
|
+
E[y] > u - 1 && (E[y + 1] == null && (E[y + 1] = 0), E[y + 1] += E[y] / u | 0, E[y] %= u);
|
|
8888
8889
|
}
|
|
8889
|
-
return
|
|
8890
|
+
return E.reverse();
|
|
8890
8891
|
}
|
|
8891
|
-
return function(d,
|
|
8892
|
-
var
|
|
8893
|
-
for (H >= 0 && (k = T, T = 0, d = d.replace(".", ""),
|
|
8892
|
+
return function(d, g, u, v, y) {
|
|
8893
|
+
var E, x, A, k, z, I, B, j, H = d.indexOf("."), G = s, X = l;
|
|
8894
|
+
for (H >= 0 && (k = T, T = 0, d = d.replace(".", ""), j = new C(g), I = j.pow(d.length - H), T = k, j.c = c(
|
|
8894
8895
|
Ae(ve(I.c), I.e, "0"),
|
|
8895
8896
|
10,
|
|
8896
8897
|
u,
|
|
8897
8898
|
a
|
|
8898
|
-
),
|
|
8899
|
-
if (!B[0]) return
|
|
8900
|
-
if (H < 0 ? --A : (I.c = B, I.e = A, I.s = v, I = t(I,
|
|
8901
|
-
d = z ? Ae(
|
|
8899
|
+
), j.e = j.c.length), B = c(d, g, u, y ? (E = w, a) : (E = a, w)), A = k = B.length; B[--k] == 0; B.pop()) ;
|
|
8900
|
+
if (!B[0]) return E.charAt(0);
|
|
8901
|
+
if (H < 0 ? --A : (I.c = B, I.e = A, I.s = v, I = t(I, j, G, X, u), B = I.c, z = I.r, A = I.e), x = A + G + 1, H = B[x], k = u / 2, z = z || x < 0 || B[x + 1] != null, z = X < 4 ? (H != null || z) && (X == 0 || X == (I.s < 0 ? 3 : 2)) : H > k || H == k && (X == 4 || z || X == 6 && B[x - 1] & 1 || X == (I.s < 0 ? 8 : 7)), x < 1 || !B[0])
|
|
8902
|
+
d = z ? Ae(E.charAt(1), -G, E.charAt(0)) : E.charAt(0);
|
|
8902
8903
|
else {
|
|
8903
8904
|
if (B.length = x, z)
|
|
8904
8905
|
for (--u; ++B[--x] > u; )
|
|
8905
8906
|
B[x] = 0, x || (++A, B = [1].concat(B));
|
|
8906
8907
|
for (k = B.length; !B[--k]; ) ;
|
|
8907
|
-
for (H = 0, d = ""; H <= k; d +=
|
|
8908
|
-
d = Ae(d, A,
|
|
8908
|
+
for (H = 0, d = ""; H <= k; d += E.charAt(B[H++])) ;
|
|
8909
|
+
d = Ae(d, A, E.charAt(0));
|
|
8909
8910
|
}
|
|
8910
8911
|
return d;
|
|
8911
8912
|
};
|
|
8912
8913
|
}(), t = /* @__PURE__ */ function() {
|
|
8913
|
-
function a(
|
|
8914
|
-
var y,
|
|
8915
|
-
for (
|
|
8916
|
-
x =
|
|
8917
|
-
return k && (
|
|
8918
|
-
}
|
|
8919
|
-
function c(
|
|
8920
|
-
var
|
|
8914
|
+
function a(g, u, v) {
|
|
8915
|
+
var y, E, x, A, k = 0, z = g.length, I = u % Pe, B = u / Pe | 0;
|
|
8916
|
+
for (g = g.slice(); z--; )
|
|
8917
|
+
x = g[z] % Pe, A = g[z] / Pe | 0, y = B * x + A * I, E = I * x + y % Pe * Pe + k, k = (E / v | 0) + (y / Pe | 0) + B * A, g[z] = E % v;
|
|
8918
|
+
return k && (g = [k].concat(g)), g;
|
|
8919
|
+
}
|
|
8920
|
+
function c(g, u, v, y) {
|
|
8921
|
+
var E, x;
|
|
8921
8922
|
if (v != y)
|
|
8922
8923
|
x = v > y ? 1 : -1;
|
|
8923
8924
|
else
|
|
8924
|
-
for (
|
|
8925
|
-
if (
|
|
8926
|
-
x =
|
|
8925
|
+
for (E = x = 0; E < v; E++)
|
|
8926
|
+
if (g[E] != u[E]) {
|
|
8927
|
+
x = g[E] > u[E] ? 1 : -1;
|
|
8927
8928
|
break;
|
|
8928
8929
|
}
|
|
8929
8930
|
return x;
|
|
8930
8931
|
}
|
|
8931
|
-
function d(
|
|
8932
|
-
for (var
|
|
8933
|
-
|
|
8934
|
-
for (; !
|
|
8932
|
+
function d(g, u, v, y) {
|
|
8933
|
+
for (var E = 0; v--; )
|
|
8934
|
+
g[v] -= E, E = g[v] < u[v] ? 1 : 0, g[v] = E * y + g[v] - u[v];
|
|
8935
|
+
for (; !g[0] && g.length > 1; g.splice(0, 1)) ;
|
|
8935
8936
|
}
|
|
8936
|
-
return function(
|
|
8937
|
-
var x, A, k, z, I, B,
|
|
8937
|
+
return function(g, u, v, y, E) {
|
|
8938
|
+
var x, A, k, z, I, B, j, H, G, X, V, K, Y, Q, J, re, $, le = g.s == u.s ? 1 : -1, ue = g.c, ie = u.c;
|
|
8938
8939
|
if (!ue || !ue[0] || !ie || !ie[0])
|
|
8939
|
-
return new
|
|
8940
|
+
return new C(
|
|
8940
8941
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
8941
|
-
!
|
|
8942
|
+
!g.s || !u.s || (ue ? ie && ue[0] == ie[0] : !ie) ? NaN : (
|
|
8942
8943
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
8943
8944
|
ue && ue[0] == 0 || !ie ? le * 0 : le / 0
|
|
8944
8945
|
)
|
|
8945
8946
|
);
|
|
8946
|
-
for (H = new
|
|
8947
|
+
for (H = new C(le), G = H.c = [], A = g.e - u.e, le = v + A + 1, E || (E = Te, A = _e(g.e / ee) - _e(u.e / ee), le = le / ee | 0), k = 0; ie[k] == (ue[k] || 0); k++) ;
|
|
8947
8948
|
if (ie[k] > (ue[k] || 0) && A--, le < 0)
|
|
8948
8949
|
G.push(1), z = !0;
|
|
8949
8950
|
else {
|
|
8950
|
-
for (Q = ue.length, re = ie.length, k = 0, le += 2, I = Se(
|
|
8951
|
-
$ = ie.slice(), $ = [0].concat($), J = ie[0], ie[1] >=
|
|
8951
|
+
for (Q = ue.length, re = ie.length, k = 0, le += 2, I = Se(E / (ie[0] + 1)), I > 1 && (ie = a(ie, I, E), ue = a(ue, I, E), re = ie.length, Q = ue.length), Y = re, X = ue.slice(0, re), V = X.length; V < re; X[V++] = 0) ;
|
|
8952
|
+
$ = ie.slice(), $ = [0].concat($), J = ie[0], ie[1] >= E / 2 && J++;
|
|
8952
8953
|
do {
|
|
8953
8954
|
if (I = 0, x = c(ie, X, re, V), x < 0) {
|
|
8954
|
-
if (K = X[0], re != V && (K = K *
|
|
8955
|
-
for (I >=
|
|
8956
|
-
I--, d(B, re <
|
|
8955
|
+
if (K = X[0], re != V && (K = K * E + (X[1] || 0)), I = Se(K / J), I > 1)
|
|
8956
|
+
for (I >= E && (I = E - 1), B = a(ie, I, E), j = B.length, V = X.length; c(B, X, j, V) == 1; )
|
|
8957
|
+
I--, d(B, re < j ? $ : ie, j, E), j = B.length, x = 1;
|
|
8957
8958
|
else
|
|
8958
|
-
I == 0 && (x = I = 1), B = ie.slice(),
|
|
8959
|
-
if (
|
|
8959
|
+
I == 0 && (x = I = 1), B = ie.slice(), j = B.length;
|
|
8960
|
+
if (j < V && (B = [0].concat(B)), d(X, B, V, E), V = X.length, x == -1)
|
|
8960
8961
|
for (; c(ie, X, re, V) < 1; )
|
|
8961
|
-
I++, d(X, re < V ? $ : ie, V,
|
|
8962
|
+
I++, d(X, re < V ? $ : ie, V, E), V = X.length;
|
|
8962
8963
|
} else x === 0 && (I++, X = [0]);
|
|
8963
8964
|
G[k++] = I, X[0] ? X[V++] = ue[Y] || 0 : (X = [ue[Y]], V = 1);
|
|
8964
8965
|
} while ((Y++ < Q || X[0] != null) && le--);
|
|
8965
8966
|
z = X[0] != null, G[0] || G.splice(0, 1);
|
|
8966
8967
|
}
|
|
8967
|
-
if (
|
|
8968
|
+
if (E == Te) {
|
|
8968
8969
|
for (k = 1, le = G[0]; le >= 10; le /= 10, k++) ;
|
|
8969
8970
|
M(H, v + (H.e = k + A * ee - 1) + 1, y, z);
|
|
8970
8971
|
} else
|
|
@@ -8972,23 +8973,23 @@ function Sa(e) {
|
|
|
8972
8973
|
return H;
|
|
8973
8974
|
};
|
|
8974
8975
|
}();
|
|
8975
|
-
function N(a, c, d,
|
|
8976
|
-
var u, v, y,
|
|
8976
|
+
function N(a, c, d, g) {
|
|
8977
|
+
var u, v, y, E, x;
|
|
8977
8978
|
if (d == null ? d = l : se(d, 0, 8), !a.c) return a.toString();
|
|
8978
8979
|
if (u = a.c[0], y = a.e, c == null)
|
|
8979
|
-
x = ve(a.c), x =
|
|
8980
|
-
else if (a = M(new
|
|
8981
|
-
for (;
|
|
8980
|
+
x = ve(a.c), x = g == 1 || g == 2 && (y <= p || y >= h) ? kt(x, y) : Ae(x, y, "0");
|
|
8981
|
+
else if (a = M(new C(a), c, d), v = a.e, x = ve(a.c), E = x.length, g == 1 || g == 2 && (c <= v || v <= p)) {
|
|
8982
|
+
for (; E < c; x += "0", E++) ;
|
|
8982
8983
|
x = kt(x, v);
|
|
8983
|
-
} else if (c -= y, x = Ae(x, v, "0"), v + 1 >
|
|
8984
|
+
} else if (c -= y, x = Ae(x, v, "0"), v + 1 > E) {
|
|
8984
8985
|
if (--c > 0) for (x += "."; c--; x += "0") ;
|
|
8985
|
-
} else if (c += v -
|
|
8986
|
-
for (v + 1 ==
|
|
8986
|
+
} else if (c += v - E, c > 0)
|
|
8987
|
+
for (v + 1 == E && (x += "."); c--; x += "0") ;
|
|
8987
8988
|
return a.s < 0 && u ? "-" + x : x;
|
|
8988
8989
|
}
|
|
8989
8990
|
function F(a, c) {
|
|
8990
|
-
for (var d,
|
|
8991
|
-
if (d = new
|
|
8991
|
+
for (var d, g = 1, u = new C(a[0]); g < a.length; g++)
|
|
8992
|
+
if (d = new C(a[g]), d.s)
|
|
8992
8993
|
c.call(u, d) && (u = d);
|
|
8993
8994
|
else {
|
|
8994
8995
|
u = d;
|
|
@@ -8997,106 +8998,106 @@ function Sa(e) {
|
|
|
8997
8998
|
return u;
|
|
8998
8999
|
}
|
|
8999
9000
|
function D(a, c, d) {
|
|
9000
|
-
for (var
|
|
9001
|
-
for (u = c[0]; u >= 10; u /= 10,
|
|
9002
|
-
return (d =
|
|
9001
|
+
for (var g = 1, u = c.length; !c[--u]; c.pop()) ;
|
|
9002
|
+
for (u = c[0]; u >= 10; u /= 10, g++) ;
|
|
9003
|
+
return (d = g + d * ee - 1) > _ ? a.c = a.e = null : d < b ? a.c = [a.e = 0] : (a.e = d, a.c = c), a;
|
|
9003
9004
|
}
|
|
9004
9005
|
n = /* @__PURE__ */ function() {
|
|
9005
|
-
var a = /^(-?)0([xbo])(?=\w[\w.]*$)/i, c = /^([^.]+)\.$/, d = /^\.([^.]+)$/,
|
|
9006
|
-
return function(v, y,
|
|
9007
|
-
var A, k =
|
|
9008
|
-
if (
|
|
9006
|
+
var a = /^(-?)0([xbo])(?=\w[\w.]*$)/i, c = /^([^.]+)\.$/, d = /^\.([^.]+)$/, g = /^-?(Infinity|NaN)$/, u = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
9007
|
+
return function(v, y, E, x) {
|
|
9008
|
+
var A, k = E ? y : y.replace(u, "");
|
|
9009
|
+
if (g.test(k))
|
|
9009
9010
|
v.s = isNaN(k) ? null : k < 0 ? -1 : 1;
|
|
9010
9011
|
else {
|
|
9011
|
-
if (!
|
|
9012
|
+
if (!E && (k = k.replace(a, function(z, I, B) {
|
|
9012
9013
|
return A = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !x || x == A ? I : z;
|
|
9013
9014
|
}), x && (A = x, k = k.replace(c, "$1").replace(d, "0.$1")), y != k))
|
|
9014
|
-
return new
|
|
9015
|
-
if (
|
|
9015
|
+
return new C(k, A);
|
|
9016
|
+
if (C.DEBUG)
|
|
9016
9017
|
throw Error(pe + "Not a" + (x ? " base " + x : "") + " number: " + y);
|
|
9017
9018
|
v.s = null;
|
|
9018
9019
|
}
|
|
9019
9020
|
v.c = v.e = null;
|
|
9020
9021
|
};
|
|
9021
9022
|
}();
|
|
9022
|
-
function M(a, c, d,
|
|
9023
|
-
var u, v, y,
|
|
9023
|
+
function M(a, c, d, g) {
|
|
9024
|
+
var u, v, y, E, x, A, k, z = a.c, I = dr;
|
|
9024
9025
|
if (z) {
|
|
9025
9026
|
e: {
|
|
9026
|
-
for (u = 1,
|
|
9027
|
+
for (u = 1, E = z[0]; E >= 10; E /= 10, u++) ;
|
|
9027
9028
|
if (v = c - u, v < 0)
|
|
9028
9029
|
v += ee, y = c, x = z[A = 0], k = x / I[u - y - 1] % 10 | 0;
|
|
9029
9030
|
else if (A = ur((v + 1) / ee), A >= z.length)
|
|
9030
|
-
if (
|
|
9031
|
+
if (g) {
|
|
9031
9032
|
for (; z.length <= A; z.push(0)) ;
|
|
9032
9033
|
x = k = 0, u = 1, v %= ee, y = v - ee + 1;
|
|
9033
9034
|
} else
|
|
9034
9035
|
break e;
|
|
9035
9036
|
else {
|
|
9036
|
-
for (x =
|
|
9037
|
+
for (x = E = z[A], u = 1; E >= 10; E /= 10, u++) ;
|
|
9037
9038
|
v %= ee, y = v - ee + u, k = y < 0 ? 0 : x / I[u - y - 1] % 10 | 0;
|
|
9038
9039
|
}
|
|
9039
|
-
if (
|
|
9040
|
+
if (g = g || c < 0 || // Are there any non-zero digits after the rounding digit?
|
|
9040
9041
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
9041
9042
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
9042
|
-
z[A + 1] != null || (y < 0 ? x : x % I[u - y - 1]),
|
|
9043
|
+
z[A + 1] != null || (y < 0 ? x : x % I[u - y - 1]), g = d < 4 ? (k || g) && (d == 0 || d == (a.s < 0 ? 3 : 2)) : k > 5 || k == 5 && (d == 4 || g || d == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
9043
9044
|
(v > 0 ? y > 0 ? x / I[u - y] : 0 : z[A - 1]) % 10 & 1 || d == (a.s < 0 ? 8 : 7)), c < 1 || !z[0])
|
|
9044
|
-
return z.length = 0,
|
|
9045
|
-
if (v == 0 ? (z.length = A,
|
|
9045
|
+
return z.length = 0, g ? (c -= a.e + 1, z[0] = I[(ee - c % ee) % ee], a.e = -c || 0) : z[0] = a.e = 0, a;
|
|
9046
|
+
if (v == 0 ? (z.length = A, E = 1, A--) : (z.length = A + 1, E = I[ee - v], z[A] = y > 0 ? Se(x / I[u - y] % I[y]) * E : 0), g)
|
|
9046
9047
|
for (; ; )
|
|
9047
9048
|
if (A == 0) {
|
|
9048
9049
|
for (v = 1, y = z[0]; y >= 10; y /= 10, v++) ;
|
|
9049
|
-
for (y = z[0] +=
|
|
9050
|
-
v !=
|
|
9050
|
+
for (y = z[0] += E, E = 1; y >= 10; y /= 10, E++) ;
|
|
9051
|
+
v != E && (a.e++, z[0] == Te && (z[0] = 1));
|
|
9051
9052
|
break;
|
|
9052
9053
|
} else {
|
|
9053
|
-
if (z[A] +=
|
|
9054
|
-
z[A--] = 0,
|
|
9054
|
+
if (z[A] += E, z[A] != Te) break;
|
|
9055
|
+
z[A--] = 0, E = 1;
|
|
9055
9056
|
}
|
|
9056
9057
|
for (v = z.length; z[--v] === 0; z.pop()) ;
|
|
9057
9058
|
}
|
|
9058
|
-
a.e > _ ? a.c = a.e = null : a.e <
|
|
9059
|
+
a.e > _ ? a.c = a.e = null : a.e < b && (a.c = [a.e = 0]);
|
|
9059
9060
|
}
|
|
9060
9061
|
return a;
|
|
9061
9062
|
}
|
|
9062
|
-
function
|
|
9063
|
+
function W(a) {
|
|
9063
9064
|
var c, d = a.e;
|
|
9064
9065
|
return d === null ? a.toString() : (c = ve(a.c), c = d <= p || d >= h ? kt(c, d) : Ae(c, d, "0"), a.s < 0 ? "-" + c : c);
|
|
9065
9066
|
}
|
|
9066
9067
|
return o.absoluteValue = o.abs = function() {
|
|
9067
|
-
var a = new
|
|
9068
|
+
var a = new C(this);
|
|
9068
9069
|
return a.s < 0 && (a.s = 1), a;
|
|
9069
9070
|
}, o.comparedTo = function(a, c) {
|
|
9070
|
-
return Ve(this, new
|
|
9071
|
+
return Ve(this, new C(a, c));
|
|
9071
9072
|
}, o.decimalPlaces = o.dp = function(a, c) {
|
|
9072
|
-
var d,
|
|
9073
|
+
var d, g, u, v = this;
|
|
9073
9074
|
if (a != null)
|
|
9074
|
-
return se(a, 0, be), c == null ? c = l : se(c, 0, 8), M(new
|
|
9075
|
+
return se(a, 0, be), c == null ? c = l : se(c, 0, 8), M(new C(v), a + v.e + 1, c);
|
|
9075
9076
|
if (!(d = v.c)) return null;
|
|
9076
|
-
if (
|
|
9077
|
-
return
|
|
9077
|
+
if (g = ((u = d.length - 1) - _e(this.e / ee)) * ee, u = d[u]) for (; u % 10 == 0; u /= 10, g--) ;
|
|
9078
|
+
return g < 0 && (g = 0), g;
|
|
9078
9079
|
}, o.dividedBy = o.div = function(a, c) {
|
|
9079
|
-
return t(this, new
|
|
9080
|
+
return t(this, new C(a, c), s, l);
|
|
9080
9081
|
}, o.dividedToIntegerBy = o.idiv = function(a, c) {
|
|
9081
|
-
return t(this, new
|
|
9082
|
+
return t(this, new C(a, c), 0, 1);
|
|
9082
9083
|
}, o.exponentiatedBy = o.pow = function(a, c) {
|
|
9083
|
-
var d,
|
|
9084
|
-
if (a = new
|
|
9085
|
-
throw Error(pe + "Exponent not an integer: " +
|
|
9086
|
-
if (c != null && (c = new
|
|
9087
|
-
return k = new
|
|
9084
|
+
var d, g, u, v, y, E, x, A, k, z = this;
|
|
9085
|
+
if (a = new C(a), a.c && !a.isInteger())
|
|
9086
|
+
throw Error(pe + "Exponent not an integer: " + W(a));
|
|
9087
|
+
if (c != null && (c = new C(c)), E = a.e > 14, !z.c || !z.c[0] || z.c[0] == 1 && !z.e && z.c.length == 1 || !a.c || !a.c[0])
|
|
9088
|
+
return k = new C(Math.pow(+W(z), E ? 2 - St(a) : +W(a))), c ? k.mod(c) : k;
|
|
9088
9089
|
if (x = a.s < 0, c) {
|
|
9089
|
-
if (c.c ? !c.c[0] : !c.s) return new
|
|
9090
|
-
|
|
9090
|
+
if (c.c ? !c.c[0] : !c.s) return new C(NaN);
|
|
9091
|
+
g = !x && z.isInteger() && c.isInteger(), g && (z = z.mod(c));
|
|
9091
9092
|
} else {
|
|
9092
|
-
if (a.e > 9 && (z.e > 0 || z.e < -1 || (z.e == 0 ? z.c[0] > 1 ||
|
|
9093
|
-
return v = z.s < 0 && St(a) ? -0 : 0, z.e > -1 && (v = 1 / v), new
|
|
9093
|
+
if (a.e > 9 && (z.e > 0 || z.e < -1 || (z.e == 0 ? z.c[0] > 1 || E && z.c[1] >= 24e7 : z.c[0] < 8e13 || E && z.c[0] <= 9999975e7)))
|
|
9094
|
+
return v = z.s < 0 && St(a) ? -0 : 0, z.e > -1 && (v = 1 / v), new C(x ? 1 / v : v);
|
|
9094
9095
|
T && (v = ur(T / ee + 2));
|
|
9095
9096
|
}
|
|
9096
|
-
for (
|
|
9097
|
+
for (E ? (d = new C(0.5), x && (a.s = 1), A = St(a)) : (u = Math.abs(+W(a)), A = u % 2), k = new C(i); ; ) {
|
|
9097
9098
|
if (A) {
|
|
9098
9099
|
if (k = k.times(z), !k.c) break;
|
|
9099
|
-
v ? k.c.length > v && (k.c.length = v) :
|
|
9100
|
+
v ? k.c.length > v && (k.c.length = v) : g && (k = k.mod(c));
|
|
9100
9101
|
}
|
|
9101
9102
|
if (u) {
|
|
9102
9103
|
if (u = Se(u / 2), u === 0) break;
|
|
@@ -9104,29 +9105,29 @@ function Sa(e) {
|
|
|
9104
9105
|
} else if (a = a.times(d), M(a, a.e + 1, 1), a.e > 14)
|
|
9105
9106
|
A = St(a);
|
|
9106
9107
|
else {
|
|
9107
|
-
if (u = +
|
|
9108
|
+
if (u = +W(a), u === 0) break;
|
|
9108
9109
|
A = u % 2;
|
|
9109
9110
|
}
|
|
9110
|
-
z = z.times(z), v ? z.c && z.c.length > v && (z.c.length = v) :
|
|
9111
|
+
z = z.times(z), v ? z.c && z.c.length > v && (z.c.length = v) : g && (z = z.mod(c));
|
|
9111
9112
|
}
|
|
9112
|
-
return
|
|
9113
|
+
return g ? k : (x && (k = i.div(k)), c ? k.mod(c) : v ? M(k, T, l, y) : k);
|
|
9113
9114
|
}, o.integerValue = function(a) {
|
|
9114
|
-
var c = new
|
|
9115
|
+
var c = new C(this);
|
|
9115
9116
|
return a == null ? a = l : se(a, 0, 8), M(c, c.e + 1, a);
|
|
9116
9117
|
}, o.isEqualTo = o.eq = function(a, c) {
|
|
9117
|
-
return Ve(this, new
|
|
9118
|
+
return Ve(this, new C(a, c)) === 0;
|
|
9118
9119
|
}, o.isFinite = function() {
|
|
9119
9120
|
return !!this.c;
|
|
9120
9121
|
}, o.isGreaterThan = o.gt = function(a, c) {
|
|
9121
|
-
return Ve(this, new
|
|
9122
|
+
return Ve(this, new C(a, c)) > 0;
|
|
9122
9123
|
}, o.isGreaterThanOrEqualTo = o.gte = function(a, c) {
|
|
9123
|
-
return (c = Ve(this, new
|
|
9124
|
+
return (c = Ve(this, new C(a, c))) === 1 || c === 0;
|
|
9124
9125
|
}, o.isInteger = function() {
|
|
9125
9126
|
return !!this.c && _e(this.e / ee) > this.c.length - 2;
|
|
9126
9127
|
}, o.isLessThan = o.lt = function(a, c) {
|
|
9127
|
-
return Ve(this, new
|
|
9128
|
+
return Ve(this, new C(a, c)) < 0;
|
|
9128
9129
|
}, o.isLessThanOrEqualTo = o.lte = function(a, c) {
|
|
9129
|
-
return (c = Ve(this, new
|
|
9130
|
+
return (c = Ve(this, new C(a, c))) === -1 || c === 0;
|
|
9130
9131
|
}, o.isNaN = function() {
|
|
9131
9132
|
return !this.s;
|
|
9132
9133
|
}, o.isNegative = function() {
|
|
@@ -9136,97 +9137,97 @@ function Sa(e) {
|
|
|
9136
9137
|
}, o.isZero = function() {
|
|
9137
9138
|
return !!this.c && this.c[0] == 0;
|
|
9138
9139
|
}, o.minus = function(a, c) {
|
|
9139
|
-
var d,
|
|
9140
|
-
if (a = new
|
|
9141
|
-
if (
|
|
9140
|
+
var d, g, u, v, y = this, E = y.s;
|
|
9141
|
+
if (a = new C(a, c), c = a.s, !E || !c) return new C(NaN);
|
|
9142
|
+
if (E != c)
|
|
9142
9143
|
return a.s = -c, y.plus(a);
|
|
9143
9144
|
var x = y.e / ee, A = a.e / ee, k = y.c, z = a.c;
|
|
9144
9145
|
if (!x || !A) {
|
|
9145
|
-
if (!k || !z) return k ? (a.s = -c, a) : new
|
|
9146
|
+
if (!k || !z) return k ? (a.s = -c, a) : new C(z ? y : NaN);
|
|
9146
9147
|
if (!k[0] || !z[0])
|
|
9147
|
-
return z[0] ? (a.s = -c, a) : new
|
|
9148
|
+
return z[0] ? (a.s = -c, a) : new C(k[0] ? y : (
|
|
9148
9149
|
// IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
|
|
9149
9150
|
l == 3 ? -0 : 0
|
|
9150
9151
|
));
|
|
9151
9152
|
}
|
|
9152
|
-
if (x = _e(x), A = _e(A), k = k.slice(),
|
|
9153
|
-
for ((v =
|
|
9153
|
+
if (x = _e(x), A = _e(A), k = k.slice(), E = x - A) {
|
|
9154
|
+
for ((v = E < 0) ? (E = -E, u = k) : (A = x, u = z), u.reverse(), c = E; c--; u.push(0)) ;
|
|
9154
9155
|
u.reverse();
|
|
9155
9156
|
} else
|
|
9156
|
-
for (
|
|
9157
|
+
for (g = (v = (E = k.length) < (c = z.length)) ? E : c, E = c = 0; c < g; c++)
|
|
9157
9158
|
if (k[c] != z[c]) {
|
|
9158
9159
|
v = k[c] < z[c];
|
|
9159
9160
|
break;
|
|
9160
9161
|
}
|
|
9161
|
-
if (v && (u = k, k = z, z = u, a.s = -a.s), c = (
|
|
9162
|
-
for (c = Te - 1;
|
|
9163
|
-
if (k[--
|
|
9164
|
-
for (d =
|
|
9165
|
-
--k[d], k[
|
|
9162
|
+
if (v && (u = k, k = z, z = u, a.s = -a.s), c = (g = z.length) - (d = k.length), c > 0) for (; c--; k[d++] = 0) ;
|
|
9163
|
+
for (c = Te - 1; g > E; ) {
|
|
9164
|
+
if (k[--g] < z[g]) {
|
|
9165
|
+
for (d = g; d && !k[--d]; k[d] = c) ;
|
|
9166
|
+
--k[d], k[g] += Te;
|
|
9166
9167
|
}
|
|
9167
|
-
k[
|
|
9168
|
+
k[g] -= z[g];
|
|
9168
9169
|
}
|
|
9169
9170
|
for (; k[0] == 0; k.splice(0, 1), --A) ;
|
|
9170
9171
|
return k[0] ? D(a, k, A) : (a.s = l == 3 ? -1 : 1, a.c = [a.e = 0], a);
|
|
9171
9172
|
}, o.modulo = o.mod = function(a, c) {
|
|
9172
|
-
var d,
|
|
9173
|
-
return a = new
|
|
9173
|
+
var d, g, u = this;
|
|
9174
|
+
return a = new C(a, c), !u.c || !a.s || a.c && !a.c[0] ? new C(NaN) : !a.c || u.c && !u.c[0] ? new C(u) : (m == 9 ? (g = a.s, a.s = 1, d = t(u, a, 0, 3), a.s = g, d.s *= g) : d = t(u, a, 0, m), a = u.minus(d.times(a)), !a.c[0] && m == 1 && (a.s = u.s), a);
|
|
9174
9175
|
}, o.multipliedBy = o.times = function(a, c) {
|
|
9175
|
-
var d,
|
|
9176
|
+
var d, g, u, v, y, E, x, A, k, z, I, B, j, H, G, X = this, V = X.c, K = (a = new C(a, c)).c;
|
|
9176
9177
|
if (!V || !K || !V[0] || !K[0])
|
|
9177
9178
|
return !X.s || !a.s || V && !V[0] && !K || K && !K[0] && !V ? a.c = a.e = a.s = null : (a.s *= X.s, !V || !K ? a.c = a.e = null : (a.c = [0], a.e = 0)), a;
|
|
9178
|
-
for (
|
|
9179
|
+
for (g = _e(X.e / ee) + _e(a.e / ee), a.s *= X.s, x = V.length, z = K.length, x < z && (j = V, V = K, K = j, u = x, x = z, z = u), u = x + z, j = []; u--; j.push(0)) ;
|
|
9179
9180
|
for (H = Te, G = Pe, u = z; --u >= 0; ) {
|
|
9180
9181
|
for (d = 0, I = K[u] % G, B = K[u] / G | 0, y = x, v = u + y; v > u; )
|
|
9181
|
-
A = V[--y] % G, k = V[y] / G | 0,
|
|
9182
|
-
|
|
9182
|
+
A = V[--y] % G, k = V[y] / G | 0, E = B * A + k * I, A = I * A + E % G * G + j[v] + d, d = (A / H | 0) + (E / G | 0) + B * k, j[v--] = A % H;
|
|
9183
|
+
j[v] = d;
|
|
9183
9184
|
}
|
|
9184
|
-
return d ? ++
|
|
9185
|
+
return d ? ++g : j.splice(0, 1), D(a, j, g);
|
|
9185
9186
|
}, o.negated = function() {
|
|
9186
|
-
var a = new
|
|
9187
|
+
var a = new C(this);
|
|
9187
9188
|
return a.s = -a.s || null, a;
|
|
9188
9189
|
}, o.plus = function(a, c) {
|
|
9189
|
-
var d,
|
|
9190
|
-
if (a = new
|
|
9190
|
+
var d, g = this, u = g.s;
|
|
9191
|
+
if (a = new C(a, c), c = a.s, !u || !c) return new C(NaN);
|
|
9191
9192
|
if (u != c)
|
|
9192
|
-
return a.s = -c,
|
|
9193
|
-
var v =
|
|
9193
|
+
return a.s = -c, g.minus(a);
|
|
9194
|
+
var v = g.e / ee, y = a.e / ee, E = g.c, x = a.c;
|
|
9194
9195
|
if (!v || !y) {
|
|
9195
|
-
if (!
|
|
9196
|
-
if (!
|
|
9196
|
+
if (!E || !x) return new C(u / 0);
|
|
9197
|
+
if (!E[0] || !x[0]) return x[0] ? a : new C(E[0] ? g : u * 0);
|
|
9197
9198
|
}
|
|
9198
|
-
if (v = _e(v), y = _e(y),
|
|
9199
|
-
for (u > 0 ? (y = v, d = x) : (u = -u, d =
|
|
9199
|
+
if (v = _e(v), y = _e(y), E = E.slice(), u = v - y) {
|
|
9200
|
+
for (u > 0 ? (y = v, d = x) : (u = -u, d = E), d.reverse(); u--; d.push(0)) ;
|
|
9200
9201
|
d.reverse();
|
|
9201
9202
|
}
|
|
9202
|
-
for (u =
|
|
9203
|
-
u = (
|
|
9204
|
-
return u && (
|
|
9203
|
+
for (u = E.length, c = x.length, u - c < 0 && (d = x, x = E, E = d, c = u), u = 0; c; )
|
|
9204
|
+
u = (E[--c] = E[c] + x[c] + u) / Te | 0, E[c] = Te === E[c] ? 0 : E[c] % Te;
|
|
9205
|
+
return u && (E = [u].concat(E), ++y), D(a, E, y);
|
|
9205
9206
|
}, o.precision = o.sd = function(a, c) {
|
|
9206
|
-
var d,
|
|
9207
|
+
var d, g, u, v = this;
|
|
9207
9208
|
if (a != null && a !== !!a)
|
|
9208
|
-
return se(a, 1, be), c == null ? c = l : se(c, 0, 8), M(new
|
|
9209
|
+
return se(a, 1, be), c == null ? c = l : se(c, 0, 8), M(new C(v), a, c);
|
|
9209
9210
|
if (!(d = v.c)) return null;
|
|
9210
|
-
if (u = d.length - 1,
|
|
9211
|
-
for (; u % 10 == 0; u /= 10,
|
|
9212
|
-
for (u = d[0]; u >= 10; u /= 10,
|
|
9211
|
+
if (u = d.length - 1, g = u * ee + 1, u = d[u]) {
|
|
9212
|
+
for (; u % 10 == 0; u /= 10, g--) ;
|
|
9213
|
+
for (u = d[0]; u >= 10; u /= 10, g++) ;
|
|
9213
9214
|
}
|
|
9214
|
-
return a && v.e + 1 >
|
|
9215
|
+
return a && v.e + 1 > g && (g = v.e + 1), g;
|
|
9215
9216
|
}, o.shiftedBy = function(a) {
|
|
9216
9217
|
return se(a, -9007199254740991, Wo), this.times("1e" + a);
|
|
9217
9218
|
}, o.squareRoot = o.sqrt = function() {
|
|
9218
|
-
var a, c, d,
|
|
9219
|
-
if (
|
|
9220
|
-
return new
|
|
9221
|
-
if (
|
|
9222
|
-
for (x = d.e,
|
|
9223
|
-
if (u = d, d = k.times(u.plus(t(v, u, A, 1))), ve(u.c).slice(0,
|
|
9224
|
-
if (d.e < x && --
|
|
9225
|
-
if (!
|
|
9219
|
+
var a, c, d, g, u, v = this, y = v.c, E = v.s, x = v.e, A = s + 4, k = new C("0.5");
|
|
9220
|
+
if (E !== 1 || !y || !y[0])
|
|
9221
|
+
return new C(!E || E < 0 && (!y || y[0]) ? NaN : y ? v : 1 / 0);
|
|
9222
|
+
if (E = Math.sqrt(+W(v)), E == 0 || E == 1 / 0 ? (c = ve(y), (c.length + x) % 2 == 0 && (c += "0"), E = Math.sqrt(+c), x = _e((x + 1) / 2) - (x < 0 || x % 2), E == 1 / 0 ? c = "5e" + x : (c = E.toExponential(), c = c.slice(0, c.indexOf("e") + 1) + x), d = new C(c)) : d = new C(E + ""), d.c[0]) {
|
|
9223
|
+
for (x = d.e, E = x + A, E < 3 && (E = 0); ; )
|
|
9224
|
+
if (u = d, d = k.times(u.plus(t(v, u, A, 1))), ve(u.c).slice(0, E) === (c = ve(d.c)).slice(0, E))
|
|
9225
|
+
if (d.e < x && --E, c = c.slice(E - 3, E + 1), c == "9999" || !g && c == "4999") {
|
|
9226
|
+
if (!g && (M(u, u.e + s + 2, 0), u.times(u).eq(v))) {
|
|
9226
9227
|
d = u;
|
|
9227
9228
|
break;
|
|
9228
9229
|
}
|
|
9229
|
-
A += 4,
|
|
9230
|
+
A += 4, E += 4, g = 1;
|
|
9230
9231
|
} else {
|
|
9231
9232
|
(!+c || !+c.slice(1) && c.charAt(0) == "5") && (M(d, d.e + s + 2, 1), a = !d.times(d).eq(v));
|
|
9232
9233
|
break;
|
|
@@ -9238,43 +9239,43 @@ function Sa(e) {
|
|
|
9238
9239
|
}, o.toFixed = function(a, c) {
|
|
9239
9240
|
return a != null && (se(a, 0, be), a = a + this.e + 1), N(this, a, c);
|
|
9240
9241
|
}, o.toFormat = function(a, c, d) {
|
|
9241
|
-
var
|
|
9242
|
+
var g, u = this;
|
|
9242
9243
|
if (d == null)
|
|
9243
9244
|
a != null && c && typeof c == "object" ? (d = c, c = null) : a && typeof a == "object" ? (d = a, a = c = null) : d = O;
|
|
9244
9245
|
else if (typeof d != "object")
|
|
9245
9246
|
throw Error(pe + "Argument not an object: " + d);
|
|
9246
|
-
if (
|
|
9247
|
-
var v, y =
|
|
9248
|
-
if (x && (v =
|
|
9249
|
-
for (v =
|
|
9247
|
+
if (g = u.toFixed(a, c), u.c) {
|
|
9248
|
+
var v, y = g.split("."), E = +d.groupSize, x = +d.secondaryGroupSize, A = d.groupSeparator || "", k = y[0], z = y[1], I = u.s < 0, B = I ? k.slice(1) : k, j = B.length;
|
|
9249
|
+
if (x && (v = E, E = x, x = v, j -= v), E > 0 && j > 0) {
|
|
9250
|
+
for (v = j % E || E, k = B.substr(0, v); v < j; v += E) k += A + B.substr(v, E);
|
|
9250
9251
|
x > 0 && (k += A + B.slice(v)), I && (k = "-" + k);
|
|
9251
9252
|
}
|
|
9252
|
-
|
|
9253
|
+
g = z ? k + (d.decimalSeparator || "") + ((x = +d.fractionGroupSize) ? z.replace(
|
|
9253
9254
|
new RegExp("\\d{" + x + "}\\B", "g"),
|
|
9254
9255
|
"$&" + (d.fractionGroupSeparator || "")
|
|
9255
9256
|
) : z) : k;
|
|
9256
9257
|
}
|
|
9257
|
-
return (d.prefix || "") +
|
|
9258
|
+
return (d.prefix || "") + g + (d.suffix || "");
|
|
9258
9259
|
}, o.toFraction = function(a) {
|
|
9259
|
-
var c, d,
|
|
9260
|
-
if (a != null && (
|
|
9261
|
-
throw Error(pe + "Argument " + (
|
|
9262
|
-
if (!
|
|
9263
|
-
for (c = new
|
|
9264
|
-
d =
|
|
9265
|
-
return u = t(a.minus(d),
|
|
9260
|
+
var c, d, g, u, v, y, E, x, A, k, z, I, B = this, j = B.c;
|
|
9261
|
+
if (a != null && (E = new C(a), !E.isInteger() && (E.c || E.s !== 1) || E.lt(i)))
|
|
9262
|
+
throw Error(pe + "Argument " + (E.isInteger() ? "out of range: " : "not an integer: ") + W(E));
|
|
9263
|
+
if (!j) return new C(B);
|
|
9264
|
+
for (c = new C(i), A = d = new C(i), g = x = new C(i), I = ve(j), v = c.e = I.length - B.e - 1, c.c[0] = dr[(y = v % ee) < 0 ? ee + y : y], a = !a || E.comparedTo(c) > 0 ? v > 0 ? c : A : E, y = _, _ = 1 / 0, E = new C(I), x.c[0] = 0; k = t(E, c, 0, 1), u = d.plus(k.times(g)), u.comparedTo(a) != 1; )
|
|
9265
|
+
d = g, g = u, A = x.plus(k.times(u = A)), x = u, c = E.minus(k.times(u = c)), E = u;
|
|
9266
|
+
return u = t(a.minus(d), g, 0, 1), x = x.plus(u.times(A)), d = d.plus(u.times(g)), x.s = A.s = B.s, v = v * 2, z = t(A, g, v, l).minus(B).abs().comparedTo(
|
|
9266
9267
|
t(x, d, v, l).minus(B).abs()
|
|
9267
|
-
) < 1 ? [A,
|
|
9268
|
+
) < 1 ? [A, g] : [x, d], _ = y, z;
|
|
9268
9269
|
}, o.toNumber = function() {
|
|
9269
|
-
return +
|
|
9270
|
+
return +W(this);
|
|
9270
9271
|
}, o.toPrecision = function(a, c) {
|
|
9271
9272
|
return a != null && se(a, 1, be), N(this, a, c, 2);
|
|
9272
9273
|
}, o.toString = function(a) {
|
|
9273
|
-
var c, d = this,
|
|
9274
|
-
return u === null ?
|
|
9274
|
+
var c, d = this, g = d.s, u = d.e;
|
|
9275
|
+
return u === null ? g ? (c = "Infinity", g < 0 && (c = "-" + c)) : c = "NaN" : (a == null ? c = u <= p || u >= h ? kt(ve(d.c), u) : Ae(ve(d.c), u, "0") : a === 10 && R ? (d = M(new C(d), s + u + 1, l), c = Ae(ve(d.c), d.e, "0")) : (se(a, 2, w.length, "Base"), c = r(Ae(ve(d.c), u, "0"), 10, a, g, !0)), g < 0 && d.c[0] && (c = "-" + c)), c;
|
|
9275
9276
|
}, o.valueOf = o.toJSON = function() {
|
|
9276
|
-
return
|
|
9277
|
-
}, o._isBigNumber = !0, o[Symbol.toStringTag] = "BigNumber", o[Symbol.for("nodejs.util.inspect.custom")] = o.valueOf, e != null &&
|
|
9277
|
+
return W(this);
|
|
9278
|
+
}, o._isBigNumber = !0, o[Symbol.toStringTag] = "BigNumber", o[Symbol.for("nodejs.util.inspect.custom")] = o.valueOf, e != null && C.set(e), C;
|
|
9278
9279
|
}
|
|
9279
9280
|
function _e(e) {
|
|
9280
9281
|
var t = e | 0;
|
|
@@ -9393,7 +9394,7 @@ function sf(e, t = 0, r = !0) {
|
|
|
9393
9394
|
};
|
|
9394
9395
|
}, [r]), n;
|
|
9395
9396
|
}
|
|
9396
|
-
const cf = (e) => /* @__PURE__ */
|
|
9397
|
+
const cf = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 18 4", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("circle", { cx: 2, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ P.createElement("circle", { cx: 9, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ P.createElement("circle", { cx: 16, cy: 2, r: 2, fill: "currentColor" })), uf = {
|
|
9397
9398
|
id: "menu",
|
|
9398
9399
|
title: `${At}${At}${At}`,
|
|
9399
9400
|
component: null
|
|
@@ -9443,27 +9444,27 @@ const cf = (e) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 18 4",
|
|
|
9443
9444
|
] }), ff = U.memo(U.forwardRef(df));
|
|
9444
9445
|
function pf(e, t) {
|
|
9445
9446
|
const [r, n] = U.useState(t ? e.length : void 0), [o, i] = U.useState([]), s = U.useRef(null), l = U.useRef(null), p = U.useRef(null), h = U.useCallback(() => {
|
|
9446
|
-
var w, R,
|
|
9447
|
-
const
|
|
9447
|
+
var w, R, C;
|
|
9448
|
+
const b = (w = s.current) == null ? void 0 : w.getBoundingClientRect().width, _ = ((R = l.current) == null ? void 0 : R.getBoundingClientRect().width) || 0, S = ((C = p.current) == null ? void 0 : C.getBoundingClientRect().width) || 0, m = o.map((N) => {
|
|
9448
9449
|
var F;
|
|
9449
9450
|
return (F = N.current) == null ? void 0 : F.getBoundingClientRect().width;
|
|
9450
9451
|
}), T = m[m.length - 1];
|
|
9451
|
-
if (!
|
|
9452
|
+
if (!b || !T)
|
|
9452
9453
|
return e.length;
|
|
9453
9454
|
const { visibleNum: O } = m.slice(0, -1).reduce((N, F, D, M) => {
|
|
9454
9455
|
if (!F || N.visibleNum < D)
|
|
9455
9456
|
return N;
|
|
9456
9457
|
if (D === M.length - 1) {
|
|
9457
|
-
if (N.accWidth + F <
|
|
9458
|
+
if (N.accWidth + F < b - _ - S)
|
|
9458
9459
|
return { visibleNum: N.visibleNum + 1, accWidth: N.accWidth + F };
|
|
9459
|
-
} else if (N.accWidth + F + T <
|
|
9460
|
+
} else if (N.accWidth + F + T < b - _ - S)
|
|
9460
9461
|
return { visibleNum: N.visibleNum + 1, accWidth: N.accWidth + F };
|
|
9461
9462
|
return N;
|
|
9462
9463
|
}, { visibleNum: 0, accWidth: 0 });
|
|
9463
9464
|
return O;
|
|
9464
9465
|
}, [e.length, o]);
|
|
9465
9466
|
return U.useEffect(() => {
|
|
9466
|
-
i(e.map((
|
|
9467
|
+
i(e.map((b, _) => o[_] || U.createRef())), n(t ? e.length : void 0);
|
|
9467
9468
|
}, [t]), U.useEffect(() => {
|
|
9468
9469
|
o.length > 0 && !t && n(h());
|
|
9469
9470
|
}, [h, t, o]), U.useMemo(() => ({
|
|
@@ -9479,10 +9480,10 @@ function hf({ activeTabIndex: e, tabsRefs: t, listRef: r, isMobile: n, isLoading
|
|
|
9479
9480
|
o || e < t.length && n && window.setTimeout(() => {
|
|
9480
9481
|
const i = t[e];
|
|
9481
9482
|
if (i.current && r.current) {
|
|
9482
|
-
const s = r.current.getBoundingClientRect().width, l = i.current.getBoundingClientRect().width, p = t.slice(0, e).map((
|
|
9483
|
+
const s = r.current.getBoundingClientRect().width, l = i.current.getBoundingClientRect().width, p = t.slice(0, e).map((b) => {
|
|
9483
9484
|
var _;
|
|
9484
|
-
return (_ =
|
|
9485
|
-
}).filter(Boolean).map((
|
|
9485
|
+
return (_ = b.current) == null ? void 0 : _.getBoundingClientRect();
|
|
9486
|
+
}).filter(Boolean).map((b) => b.width).reduce((b, _) => b + _, 0);
|
|
9486
9487
|
if (s > p + l) {
|
|
9487
9488
|
r.current.scrollTo({ left: 0 });
|
|
9488
9489
|
return;
|
|
@@ -9511,8 +9512,8 @@ const Nt = {
|
|
|
9511
9512
|
leftSlotProps: l,
|
|
9512
9513
|
stickyEnabled: p,
|
|
9513
9514
|
isLoading: h,
|
|
9514
|
-
variant:
|
|
9515
|
-
} = e, _ = lf(), S = xr(), m = U.useMemo(() => [...t, uf], [t]), { tabsCut: T, tabsRefs: O, listRef: w, rightSlotRef: R, leftSlotRef:
|
|
9515
|
+
variant: b
|
|
9516
|
+
} = e, _ = lf(), S = xr(), m = U.useMemo(() => [...t, uf], [t]), { tabsCut: T, tabsRefs: O, listRef: w, rightSlotRef: R, leftSlotRef: C } = pf(m, h || S), N = sf(w, 5, p), F = m.findIndex((M) => Oe(M) === r) ?? 0;
|
|
9516
9517
|
hf({ activeTabIndex: F, listRef: w, tabsRefs: O, isMobile: S, isLoading: h });
|
|
9517
9518
|
const D = !h && T !== void 0;
|
|
9518
9519
|
return /* @__PURE__ */ q(
|
|
@@ -9554,14 +9555,14 @@ const Nt = {
|
|
|
9554
9555
|
s && /* @__PURE__ */ f(
|
|
9555
9556
|
Ue,
|
|
9556
9557
|
{
|
|
9557
|
-
ref:
|
|
9558
|
+
ref: C,
|
|
9558
9559
|
...l,
|
|
9559
9560
|
flexGrow: (l == null ? void 0 : l.widthAllocation) === "available" && T !== void 0 ? 1 : void 0,
|
|
9560
9561
|
children: s
|
|
9561
9562
|
}
|
|
9562
9563
|
),
|
|
9563
|
-
m.map((M,
|
|
9564
|
-
const a = Oe(M), c = O[
|
|
9564
|
+
m.map((M, W) => {
|
|
9565
|
+
const a = Oe(M), c = O[W];
|
|
9565
9566
|
return M.id === "menu" ? /* @__PURE__ */ f(
|
|
9566
9567
|
ff,
|
|
9567
9568
|
{
|
|
@@ -9579,7 +9580,7 @@ const Nt = {
|
|
|
9579
9580
|
ref: c,
|
|
9580
9581
|
scrollSnapAlign: "start",
|
|
9581
9582
|
flexShrink: 0,
|
|
9582
|
-
...gf(
|
|
9583
|
+
...gf(W, T, h),
|
|
9583
9584
|
children: [
|
|
9584
9585
|
typeof M.title == "function" ? M.title() : M.title,
|
|
9585
9586
|
/* @__PURE__ */ f(gr, { count: M.count })
|
|
@@ -9588,14 +9589,14 @@ const Nt = {
|
|
|
9588
9589
|
a
|
|
9589
9590
|
);
|
|
9590
9591
|
}),
|
|
9591
|
-
t.slice(0, D ? 0 : 5).map((M,
|
|
9592
|
+
t.slice(0, D ? 0 : 5).map((M, W) => {
|
|
9592
9593
|
const a = `${Oe(M)}-pre`;
|
|
9593
9594
|
return /* @__PURE__ */ f(
|
|
9594
9595
|
hr,
|
|
9595
9596
|
{
|
|
9596
9597
|
value: a,
|
|
9597
9598
|
flexShrink: 0,
|
|
9598
|
-
bgColor: F ===
|
|
9599
|
+
bgColor: F === W && (b === "solid" || b === void 0) ? { _light: "blackAlpha.50", _dark: "whiteAlpha.50" } : void 0,
|
|
9599
9600
|
children: /* @__PURE__ */ q(xe, { loading: !0, children: [
|
|
9600
9601
|
typeof M.title == "function" ? M.title() : M.title,
|
|
9601
9602
|
/* @__PURE__ */ f(gr, { count: M.count })
|
|
@@ -9628,12 +9629,12 @@ const Nt = {
|
|
|
9628
9629
|
rightSlotProps: l,
|
|
9629
9630
|
leftSlot: p,
|
|
9630
9631
|
leftSlotProps: h,
|
|
9631
|
-
stickyEnabled:
|
|
9632
|
+
stickyEnabled: b,
|
|
9632
9633
|
size: _,
|
|
9633
9634
|
variant: S,
|
|
9634
9635
|
...m
|
|
9635
|
-
} = e, [T, O] = U.useState(n || Oe(t[0])), w = U.useCallback(({ value:
|
|
9636
|
-
o || (r ? r({ value:
|
|
9636
|
+
} = e, [T, O] = U.useState(n || Oe(t[0])), w = U.useCallback(({ value: C }) => {
|
|
9637
|
+
o || (r ? r({ value: C }) : O(C));
|
|
9637
9638
|
}, [o, r]), R = of();
|
|
9638
9639
|
return U.useEffect(() => {
|
|
9639
9640
|
n && O(n);
|
|
@@ -9656,16 +9657,16 @@ const Nt = {
|
|
|
9656
9657
|
leftSlotProps: h,
|
|
9657
9658
|
rightSlot: s,
|
|
9658
9659
|
rightSlotProps: l,
|
|
9659
|
-
stickyEnabled:
|
|
9660
|
+
stickyEnabled: b,
|
|
9660
9661
|
activeTab: T,
|
|
9661
9662
|
isLoading: o,
|
|
9662
9663
|
variant: S
|
|
9663
9664
|
},
|
|
9664
|
-
o + "_" + R.width + "_" + t.map((
|
|
9665
|
+
o + "_" + R.width + "_" + t.map((C) => C.id).join(":")
|
|
9665
9666
|
),
|
|
9666
|
-
t.map((
|
|
9667
|
-
const N = Oe(
|
|
9668
|
-
return /* @__PURE__ */ f(Gd, { padding: 0, value: N, children:
|
|
9667
|
+
t.map((C) => {
|
|
9668
|
+
const N = Oe(C);
|
|
9669
|
+
return /* @__PURE__ */ f(Gd, { padding: 0, value: N, children: C.component }, N);
|
|
9669
9670
|
})
|
|
9670
9671
|
]
|
|
9671
9672
|
}
|
|
@@ -9697,9 +9698,9 @@ const Cf = (e) => {
|
|
|
9697
9698
|
const { tabs: t, onValueChange: r, ...n } = e, o = Vi(), i = Ef(e.tabs), s = U.useRef(null), l = U.useCallback(({ value: p }) => {
|
|
9698
9699
|
if (!t.find((_) => Oe(_) === p))
|
|
9699
9700
|
return;
|
|
9700
|
-
const
|
|
9701
|
+
const b = hl(o.query, (_, S) => o.pathname.includes(`[${S}]`));
|
|
9701
9702
|
o.push(
|
|
9702
|
-
{ pathname: o.pathname, query: { ...
|
|
9703
|
+
{ pathname: o.pathname, query: { ...b, tab: p } },
|
|
9703
9704
|
void 0,
|
|
9704
9705
|
{ shallow: !0 }
|
|
9705
9706
|
), r == null || r({ value: p });
|
|
@@ -9723,7 +9724,7 @@ const Cf = (e) => {
|
|
|
9723
9724
|
defaultValue: Oe(i || t[0])
|
|
9724
9725
|
}
|
|
9725
9726
|
);
|
|
9726
|
-
}, Dp = U.memo(Cf), xf = (e) => /* @__PURE__ */
|
|
9727
|
+
}, Dp = U.memo(Cf), xf = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.034 3H6.965C4.587 3 3 4.703 3 7.141v5.718C3 15.299 4.583 17 6.965 17h6.068C15.416 17 17 15.3 17 12.859V7.14C17 4.701 15.416 3 13.034 3ZM6.965 4.05h6.069c1.785 0 2.916 1.214 2.916 3.091v5.718c0 1.877-1.13 3.091-2.917 3.091H6.966c-1.786 0-2.916-1.214-2.916-3.091V7.14c0-1.874 1.134-3.091 2.915-3.091ZM10 6.818a.525.525 0 0 1 .072 1.045l-.079.005a.525.525 0 0 1-.07-1.045L10 6.818Zm-.007 2.221c.266 0 .486.198.52.454l.005.071v3.093a.525.525 0 0 1-1.045.072l-.005-.072V9.564c0-.29.235-.525.525-.525Z", fill: "currentColor" })), wf = U.memo(({ label: e, tooltipProps: t, isLoading: r, boxSize: n = 5, ...o }) => /* @__PURE__ */ f(
|
|
9727
9728
|
wr,
|
|
9728
9729
|
{
|
|
9729
9730
|
content: e,
|
|
@@ -9771,7 +9772,7 @@ function Up({
|
|
|
9771
9772
|
name: e,
|
|
9772
9773
|
isRequired: t
|
|
9773
9774
|
}) {
|
|
9774
|
-
const { trigger: r, formState: n, control: o } = Ke(), i = U.useRef(!1), s = sl({ name: e, control: o, exact: !0 }), l = n.errors[e], [p, h] = U.useState(s),
|
|
9775
|
+
const { trigger: r, formState: n, control: o } = Ke(), i = U.useRef(!1), s = sl({ name: e, control: o, exact: !0 }), l = n.errors[e], [p, h] = U.useState(s), b = U.useCallback(() => i.current ? "Unable to load image" : !0, []), _ = U.useCallback(() => {
|
|
9775
9776
|
i.current = !1, r(e);
|
|
9776
9777
|
}, [e, r]), S = U.useCallback(() => {
|
|
9777
9778
|
i.current = !0, r(e);
|
|
@@ -9788,7 +9789,7 @@ function Up({
|
|
|
9788
9789
|
rules: {
|
|
9789
9790
|
required: t,
|
|
9790
9791
|
validate: {
|
|
9791
|
-
preview:
|
|
9792
|
+
preview: b
|
|
9792
9793
|
}
|
|
9793
9794
|
},
|
|
9794
9795
|
onBlur: m
|
|
@@ -9799,7 +9800,7 @@ function Up({
|
|
|
9799
9800
|
onLoad: _,
|
|
9800
9801
|
onError: S
|
|
9801
9802
|
}
|
|
9802
|
-
}), [l == null ? void 0 : l.type, t, m, S, _,
|
|
9803
|
+
}), [l == null ? void 0 : l.type, t, m, S, _, b, p]);
|
|
9803
9804
|
}
|
|
9804
9805
|
const Tf = /^0x[a-fA-F\d]{40}$/, Fp = 42;
|
|
9805
9806
|
function Sf(e) {
|
|
@@ -9819,13 +9820,13 @@ const kf = ({
|
|
|
9819
9820
|
size: l,
|
|
9820
9821
|
disabled: p,
|
|
9821
9822
|
floating: h,
|
|
9822
|
-
...
|
|
9823
|
+
...b
|
|
9823
9824
|
}) => {
|
|
9824
9825
|
const _ = s === "Textarea" ? "2xl" : "lg", S = l || _, m = h !== void 0 ? h : S === _, { control: T } = Ke(), { field: O, fieldState: w, formState: R } = it({
|
|
9825
9826
|
control: T,
|
|
9826
9827
|
name: e,
|
|
9827
|
-
rules: { ...r, required:
|
|
9828
|
-
}),
|
|
9828
|
+
rules: { ...r, required: b.required }
|
|
9829
|
+
}), C = U.useCallback(() => {
|
|
9829
9830
|
O.onBlur(), n == null || n();
|
|
9830
9831
|
}, [O, n]), N = s === "Textarea" ? /* @__PURE__ */ f(
|
|
9831
9832
|
qd,
|
|
@@ -9834,7 +9835,7 @@ const kf = ({
|
|
|
9834
9835
|
autoComplete: "off",
|
|
9835
9836
|
flexGrow: 1,
|
|
9836
9837
|
...i,
|
|
9837
|
-
onBlur:
|
|
9838
|
+
onBlur: C
|
|
9838
9839
|
}
|
|
9839
9840
|
) : /* @__PURE__ */ f(
|
|
9840
9841
|
Xt,
|
|
@@ -9843,7 +9844,7 @@ const kf = ({
|
|
|
9843
9844
|
autoComplete: "off",
|
|
9844
9845
|
placeholder: m ? void 0 : t,
|
|
9845
9846
|
...i,
|
|
9846
|
-
onBlur:
|
|
9847
|
+
onBlur: C
|
|
9847
9848
|
}
|
|
9848
9849
|
), F = o ? /* @__PURE__ */ f(
|
|
9849
9850
|
Vt,
|
|
@@ -9862,7 +9863,7 @@ const kf = ({
|
|
|
9862
9863
|
disabled: R.isSubmitting || p,
|
|
9863
9864
|
size: S,
|
|
9864
9865
|
floating: m,
|
|
9865
|
-
...
|
|
9866
|
+
...b,
|
|
9866
9867
|
children: F
|
|
9867
9868
|
}
|
|
9868
9869
|
);
|
|
@@ -9900,7 +9901,7 @@ const kf = ({
|
|
|
9900
9901
|
control: s,
|
|
9901
9902
|
name: e,
|
|
9902
9903
|
rules: r
|
|
9903
|
-
}), h = p.isSubmitting,
|
|
9904
|
+
}), h = p.isSubmitting, b = U.useCallback(({ checked: _ }) => {
|
|
9904
9905
|
l.onChange(_), n == null || n();
|
|
9905
9906
|
}, [l, n]);
|
|
9906
9907
|
return /* @__PURE__ */ f(
|
|
@@ -9908,7 +9909,7 @@ const kf = ({
|
|
|
9908
9909
|
{
|
|
9909
9910
|
ref: l.ref,
|
|
9910
9911
|
checked: l.value,
|
|
9911
|
-
onCheckedChange:
|
|
9912
|
+
onCheckedChange: b,
|
|
9912
9913
|
size: "md",
|
|
9913
9914
|
disabled: h,
|
|
9914
9915
|
...i,
|
|
@@ -9927,8 +9928,8 @@ const kf = ({
|
|
|
9927
9928
|
sampleDefaultBgColor: p,
|
|
9928
9929
|
...h
|
|
9929
9930
|
}) => {
|
|
9930
|
-
const { control:
|
|
9931
|
-
control:
|
|
9931
|
+
const { control: b } = Ke(), { field: _, fieldState: S, formState: m } = it({
|
|
9932
|
+
control: b,
|
|
9932
9933
|
name: e,
|
|
9933
9934
|
rules: {
|
|
9934
9935
|
...r,
|
|
@@ -9944,7 +9945,7 @@ const kf = ({
|
|
|
9944
9945
|
O(F), _.onChange(F);
|
|
9945
9946
|
}, [_]), R = U.useCallback(() => {
|
|
9946
9947
|
_.onBlur(), n == null || n();
|
|
9947
|
-
}, [_, n]),
|
|
9948
|
+
}, [_, n]), C = /* @__PURE__ */ f(
|
|
9948
9949
|
Fi,
|
|
9949
9950
|
{
|
|
9950
9951
|
size: "30px",
|
|
@@ -9968,7 +9969,7 @@ const kf = ({
|
|
|
9968
9969
|
Vt,
|
|
9969
9970
|
{
|
|
9970
9971
|
...o,
|
|
9971
|
-
endElement:
|
|
9972
|
+
endElement: C,
|
|
9972
9973
|
children: /* @__PURE__ */ f(
|
|
9973
9974
|
Xt,
|
|
9974
9975
|
{
|
|
@@ -10005,7 +10006,7 @@ const kf = ({
|
|
|
10005
10006
|
control: i,
|
|
10006
10007
|
name: t,
|
|
10007
10008
|
rules: r
|
|
10008
|
-
}), h = p.isSubmitting,
|
|
10009
|
+
}), h = p.isSubmitting, b = U.useCallback(({ value: S }) => {
|
|
10009
10010
|
s.onChange(S);
|
|
10010
10011
|
}, [s]), _ = U.useCallback(() => {
|
|
10011
10012
|
s.onBlur();
|
|
@@ -10017,7 +10018,7 @@ const kf = ({
|
|
|
10017
10018
|
name: s.name,
|
|
10018
10019
|
value: s.value,
|
|
10019
10020
|
onBlur: s.onBlur,
|
|
10020
|
-
onValueChange:
|
|
10021
|
+
onValueChange: b,
|
|
10021
10022
|
onInteractOutside: _,
|
|
10022
10023
|
disabled: h,
|
|
10023
10024
|
invalid: !!l.error,
|
|
@@ -10032,7 +10033,7 @@ const kf = ({
|
|
|
10032
10033
|
control: i,
|
|
10033
10034
|
name: t,
|
|
10034
10035
|
rules: r
|
|
10035
|
-
}), h = p.isSubmitting,
|
|
10036
|
+
}), h = p.isSubmitting, b = U.useCallback(({ value: S }) => {
|
|
10036
10037
|
s.onChange(S);
|
|
10037
10038
|
}, [s]), _ = U.useCallback(() => {
|
|
10038
10039
|
s.onBlur();
|
|
@@ -10044,7 +10045,7 @@ const kf = ({
|
|
|
10044
10045
|
name: s.name,
|
|
10045
10046
|
value: s.value,
|
|
10046
10047
|
onBlur: s.onBlur,
|
|
10047
|
-
onValueChange:
|
|
10048
|
+
onValueChange: b,
|
|
10048
10049
|
onInteractOutside: _,
|
|
10049
10050
|
disabled: h,
|
|
10050
10051
|
invalid: !!l.error,
|
|
@@ -10118,7 +10119,7 @@ const qp = Me(({ onDrop: e, children: t, className: r, isDisabled: n, fullFilePa
|
|
|
10118
10119
|
e(O), l(!1);
|
|
10119
10120
|
}, [n, e, o]), h = U.useCallback((m) => {
|
|
10120
10121
|
m.preventDefault();
|
|
10121
|
-
}, []),
|
|
10122
|
+
}, []), b = U.useCallback((m) => {
|
|
10122
10123
|
m.preventDefault(), l(!0);
|
|
10123
10124
|
}, []), _ = U.useCallback((m) => {
|
|
10124
10125
|
m.preventDefault(), l(!1);
|
|
@@ -10146,7 +10147,7 @@ const qp = Me(({ onDrop: e, children: t, className: r, isDisabled: n, fullFilePa
|
|
|
10146
10147
|
onClick: S,
|
|
10147
10148
|
onDrop: p,
|
|
10148
10149
|
onDragOver: h,
|
|
10149
|
-
onDragEnter:
|
|
10150
|
+
onDragEnter: b,
|
|
10150
10151
|
onDragLeave: _,
|
|
10151
10152
|
children: t
|
|
10152
10153
|
}
|
|
@@ -10173,12 +10174,12 @@ const qp = Me(({ onDrop: e, children: t, className: r, isDisabled: n, fullFilePa
|
|
|
10173
10174
|
n.onBlur();
|
|
10174
10175
|
}, [n]), h = U.useMemo(() => ({
|
|
10175
10176
|
onChange: i
|
|
10176
|
-
}), [i]),
|
|
10177
|
+
}), [i]), b = typeof e == "function" ? e(h) : e;
|
|
10177
10178
|
return /* @__PURE__ */ q(Ue, { onClick: l, children: [
|
|
10178
10179
|
/* @__PURE__ */ f(ol, { children: /* @__PURE__ */ f(Xt, { type: "file", onChange: s, onBlur: p, ref: o, accept: t, multiple: r, name: n.name }) }),
|
|
10179
|
-
|
|
10180
|
+
b
|
|
10180
10181
|
] });
|
|
10181
|
-
}, Kp = U.memo(Ff), Mf = (e) => /* @__PURE__ */
|
|
10182
|
+
}, Kp = U.memo(Ff), Mf = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.4 2.933a.156.156 0 0 0-.156.156v10.844a.467.467 0 0 1-.933 0V3.09A1.089 1.089 0 0 1 6.4 2h7.476a.467.467 0 0 1 .32.137l4.356 4.355a.467.467 0 0 1 .137.33v7.111a.467.467 0 0 1-.934 0V7.29h-3.889a.467.467 0 0 1-.466-.467v-3.89h-7Zm7.933.66v2.763h2.762l-2.762-2.763Z", fill: "currentColor", stroke: "currentColor", strokeWidth: 0.4, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.752 20.137c-.016-.04-.03-.08-.043-.12-.068-.223.123-.42.356-.42h.074c.16 0 .29.123.369.263.045.08.103.147.17.2a.787.787 0 0 0 .256.136.99.99 0 0 0 .326.05.944.944 0 0 0 .421-.085.591.591 0 0 0 .26-.232.69.69 0 0 0 .086-.348.538.538 0 0 0-.036-.22.46.46 0 0 0-.119-.173c-.103-.096-.261-.173-.473-.232l-.63-.172a1.612 1.612 0 0 1-.55-.257 1.142 1.142 0 0 1-.36-.442 1.475 1.475 0 0 1-.125-.63c0-.293.065-.55.194-.768.13-.218.31-.388.538-.508.23-.12.495-.179.794-.179.31 0 .575.06.795.183.221.122.392.287.51.493.051.085.092.174.124.267.075.217-.117.414-.346.414-.194 0-.35-.152-.462-.31a.655.655 0 0 0-.25-.218.817.817 0 0 0-.379-.082c-.22 0-.395.06-.522.183a.559.559 0 0 0-.141.204.654.654 0 0 0-.048.258c0 .145.049.264.147.36a.922.922 0 0 0 .412.21l.634.173c.222.06.415.144.578.254.157.101.29.25.383.43.091.178.137.403.137.674a1.6 1.6 0 0 1-.191.789 1.308 1.308 0 0 1-.55.528c-.24.126-.531.19-.876.19-.26 0-.486-.036-.68-.109a1.375 1.375 0 0 1-.487-.303 1.355 1.355 0 0 1-.296-.45Zm-3.168-.04a1.803 1.803 0 0 1-.045-.17c-.044-.212.136-.39.354-.39h.05c.187 0 .332.157.412.325a.56.56 0 0 0 .197.224.448.448 0 0 0 .267.072c.194 0 .337-.066.43-.198.093-.132.14-.318.14-.56v-2.898a.404.404 0 0 1 .808 0v2.874c0 .53-.122.93-.365 1.209-.242.276-.576.415-1.005.415a1.402 1.402 0 0 1-.58-.113 1.17 1.17 0 0 1-.415-.32 1.428 1.428 0 0 1-.248-.47Zm9.279-1.906v.628c0 .308-.04.565-.12.771-.067.19-.182.352-.328.466a.795.795 0 0 1-.48.151.8.8 0 0 1-.48-.151 1.027 1.027 0 0 1-.326-.466 2.159 2.159 0 0 1-.12-.77v-.629c0-.31.04-.566.12-.77.067-.19.181-.352.326-.466a.787.787 0 0 1 .48-.155c.18 0 .34.052.48.155.146.113.26.275.329.465.08.205.119.461.119.771Zm.82.625v-.617c0-.454-.07-.844-.21-1.17a1.674 1.674 0 0 0-.602-.758c-.258-.176-.57-.265-.935-.265a1.65 1.65 0 0 0-.939.265c-.26.173-.47.437-.601.755-.14.326-.21.717-.21 1.173v.617c0 .45.07.84.21 1.17.14.326.34.577.601.753.263.174.576.26.94.26s.676-.086.935-.26c.261-.176.462-.427.601-.753.14-.33.21-.72.21-1.17ZM16 17.69v2.838a.38.38 0 0 1-.762 0v-4.003a.426.426 0 0 1 .797-.208l1.66 2.97a.02.02 0 0 0 .04-.01v-2.796a.383.383 0 1 1 .765 0v4.006a.422.422 0 0 1-.79.206l-1.661-2.974a.056.056 0 0 0-.049-.028Z", fill: "currentColor", stroke: "currentColor", strokeWidth: 0.3 })), jf = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 51 50", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.693 5.058c.498-.57 1.172-.891 1.875-.891h15.91c.351 0 .688.16.937.446l9.28 10.657c.249.285.388.672.388 1.076v24.36c0 .807-.279 1.581-.776 2.152-.498.571-1.172.892-1.875.892H13.568c-.703 0-1.377-.32-1.875-.892-.497-.57-.776-1.345-.776-2.153V7.212c0-.808.28-1.582.776-2.154Zm17.235 2.154h-15.36v33.493h23.864V16.977l-8.504-9.765Z", fill: "currentColor" }), /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M28.556 5a1.39 1.39 0 0 1 1.389 1.389v8.333h8.333a1.389 1.389 0 0 1 0 2.778h-9.722a1.389 1.389 0 0 1-1.39-1.389V6.39a1.39 1.39 0 0 1 1.39-1.389ZM22.46 25.151a1.326 1.326 0 0 0-1.875 1.875l3.04 3.04-3.04 3.04a1.326 1.326 0 0 0 1.875 1.875l3.04-3.04 3.04 3.04a1.326 1.326 0 0 0 1.875-1.875l-3.04-3.04 3.04-3.04a1.326 1.326 0 0 0-1.875-1.875l-3.04 3.04-3.04-3.04Z", fill: "currentColor" })), Hf = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.4 2.933a.156.156 0 0 0-.155.156v10.844a.467.467 0 0 1-.934 0V3.09A1.089 1.089 0 0 1 6.401 2h7.474a.467.467 0 0 1 .322.137l4.355 4.355a.467.467 0 0 1 .137.33v7.111a.467.467 0 0 1-.933 0V7.29h-3.89a.467.467 0 0 1-.466-.467v-3.89h-7Zm7.933.66v2.763h2.763l-2.763-2.763Z", fill: "currentColor", stroke: "currentColor", strokeWidth: 0.4, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.224 18.185v.628c0 .308-.04.565-.12.771-.067.19-.181.352-.328.465a.794.794 0 0 1-.48.152.8.8 0 0 1-.48-.152 1.026 1.026 0 0 1-.326-.465 2.159 2.159 0 0 1-.12-.77v-.629c0-.31.04-.566.12-.77.068-.19.181-.352.327-.466a.788.788 0 0 1 .48-.155c.18 0 .34.052.479.155.146.113.26.275.329.465.08.205.12.461.12.771Zm.82.625v-.617c0-.454-.07-.844-.21-1.17a1.674 1.674 0 0 0-.602-.758c-.258-.176-.57-.265-.935-.265-.363 0-.675.089-.939.265a1.65 1.65 0 0 0-.6.755c-.14.326-.21.717-.21 1.173v.616c0 .452.07.841.21 1.17.139.327.339.578.6.754.264.174.576.26.94.26s.676-.086.935-.26c.262-.176.462-.427.601-.753.14-.33.21-.72.21-1.17Z", fill: "currentColor" }), /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.22 16.056c.31-.206.671-.306 1.077-.306.406 0 .77.1 1.075.308.306.205.545.51.693.868.155.364.229.788.229 1.267v.616c0 .477-.075.901-.23 1.268v.001a1.923 1.923 0 0 1-.691.862c-.307.207-.67.304-1.076.304-.404 0-.766-.097-1.077-.303h-.001a1.923 1.923 0 0 1-.692-.863c-.156-.367-.23-.793-.23-1.268v-.617c0-.48.074-.905.23-1.27a1.9 1.9 0 0 1 .693-.866Zm1.077.194c-.32 0-.583.078-.8.223a1.403 1.403 0 0 0-.509.642l-.001.004c-.123.287-.19.642-.19 1.074v.616c0 .426.066.781.19 1.073.123.287.294.498.51.643.216.143.479.219.8.219.324 0 .586-.077.797-.219.216-.145.387-.355.51-.643.123-.292.19-.647.19-1.073v-.616c0-.429-.067-.784-.19-1.073v-.002a1.425 1.425 0 0 0-.511-.646h-.001c-.21-.144-.472-.222-.795-.222Zm-.33.898a.78.78 0 0 0-.242.35l-.002.007c-.065.167-.103.39-.103.68v.635c-.006.234.03.466.106.68a.78.78 0 0 0 .24.349c.102.07.215.104.325.102h.011a.55.55 0 0 0 .325-.102.768.768 0 0 0 .242-.349l.002-.006c.066-.168.103-.392.103-.68v-.629c0-.29-.037-.514-.102-.68l-.003-.007a.767.767 0 0 0-.244-.35.535.535 0 0 0-.329-.104h-.005a.537.537 0 0 0-.324.104Zm.332-.604a1.037 1.037 0 0 0-.63.203l-.007.005a1.276 1.276 0 0 0-.406.575 2.39 2.39 0 0 0-.136.858v.625a2.41 2.41 0 0 0 .134.857v.001c.083.23.223.433.408.578l.01.008c.185.13.4.2.624.197.224.004.44-.066.625-.198l.008-.006c.187-.144.328-.346.41-.576.093-.243.135-.532.135-.858v-.628a2.39 2.39 0 0 0-.135-.858 1.265 1.265 0 0 0-.41-.576l-.004-.003a1.034 1.034 0 0 0-.626-.204Z", fill: "currentColor" }), /* @__PURE__ */ P.createElement("path", { d: "M17.06 21v-1h1.301a.5.5 0 0 1 .5.5v.5H17.06Zm-.699 0a.5.5 0 0 1-.5-.5v-3.9a.6.6 0 0 1 1.199 0V21h-.699Z", fill: "currentColor" }), /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18.861 21v-.5a.5.5 0 0 0-.5-.5H17.06v-3.4a.6.6 0 0 0-1.199 0v3.9a.5.5 0 0 0 .5.5h2.5Zm-1.701-1.1v-3.3a.7.7 0 0 0-1.399 0v3.9a.6.6 0 0 0 .6.6h2.6v-.6a.6.6 0 0 0-.6-.6H17.16Z", fill: "currentColor" }), /* @__PURE__ */ P.createElement("path", { d: "M6.468 17.532c0-.192.067-.316.163-.398.104-.09.286-.166.562-.166.332 0 .655.108.921.307a.484.484 0 0 0 .579-.776A2.516 2.516 0 0 0 7.195 16h-.001c-.45 0-.873.125-1.192.399-.328.28-.502.68-.502 1.133 0 .244.067.464.196.651.124.182.29.309.452.401.29.165.657.262.949.34l.053.013c.339.09.589.163.76.267.135.083.17.15.17.264 0 .25-.086.352-.19.419-.138.089-.372.145-.696.145a1.548 1.548 0 0 1-.92-.307.484.484 0 0 0-.58.776A2.52 2.52 0 0 0 7.192 21h.002c.402 0 .853-.064 1.218-.298.4-.256.636-.677.636-1.234 0-.532-.287-.878-.635-1.09-.31-.189-.699-.292-1.003-.373l-.012-.003c-.344-.091-.597-.16-.772-.26a.39.39 0 0 1-.132-.106c-.013-.018-.026-.045-.026-.104Z", fill: "currentColor", stroke: "currentColor", strokeWidth: 0.4, strokeLinecap: "round", strokeLinejoin: "round" })), Wf = (e) => /* @__PURE__ */ P.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.4 2.933a.156.156 0 0 0-.155.156v10.844a.467.467 0 0 1-.934 0V3.09A1.089 1.089 0 0 1 6.401 2h7.474a.467.467 0 0 1 .322.137l4.355 4.355a.467.467 0 0 1 .137.33v7.111a.467.467 0 0 1-.933 0V7.29h-3.89a.467.467 0 0 1-.466-.467v-3.89h-7Zm7.933.66v2.763h2.763l-2.763-2.763Z", fill: "currentColor", stroke: "currentColor", strokeWidth: 0.4, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ P.createElement("path", { d: "M17.06 20h1.301a.5.5 0 0 1 .5.5v.5h-2.5a.5.5 0 0 1-.5-.5v-3.9a.6.6 0 0 1 1.199 0V20Z", fill: "currentColor" }), /* @__PURE__ */ P.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18.861 21v-.5a.5.5 0 0 0-.5-.5H17.06v-3.4a.6.6 0 0 0-1.199 0v3.9a.5.5 0 0 0 .5.5h2.5Zm-1.701-1.1v-3.3a.7.7 0 0 0-1.399 0v3.9a.6.6 0 0 0 .6.6h2.6v-.6a.6.6 0 0 0-.6-.6H17.16Z", fill: "currentColor" }), /* @__PURE__ */ P.createElement("path", { d: "M11.18 15.85a.63.63 0 0 1 .63.63v3.131c0 .177.043.291.11.365a.378.378 0 0 0 .29.115c.135-.002.222-.044.282-.113l.002-.002c.067-.074.11-.188.11-.364V16.48a.63.63 0 0 1 1.26 0v3.288h-.007a1.44 1.44 0 0 1-.213.641l-.001.002a1.592 1.592 0 0 1-.592.543l-.002.001a1.74 1.74 0 0 1-.682.189v.006h-.313v-.006a1.788 1.788 0 0 1-.688-.188l-.003-.002a1.592 1.592 0 0 1-.592-.543v-.002a1.44 1.44 0 0 1-.214-.64h-.007v-3.29a.63.63 0 0 1 .63-.629Zm-3.894.435.397 1.229.484-1.3a.558.558 0 0 1 1.046.388l-.983 2.656v1.304a.588.588 0 1 1-1.177 0v-1.304l-.953-2.56a.628.628 0 1 1 1.186-.413Z", fill: "currentColor" })), $f = {
|
|
10182
10183
|
".json": /* @__PURE__ */ f(Mf, {}),
|
|
10183
10184
|
".sol": /* @__PURE__ */ f(Hf, {}),
|
|
10184
10185
|
".yul": /* @__PURE__ */ f(Wf, {})
|
|
@@ -10233,7 +10234,7 @@ const Yp = Me(({ file: e, className: t, index: r, onRemove: n, isDisabled: o, er
|
|
|
10233
10234
|
);
|
|
10234
10235
|
}), Zp = /^0x[a-fA-F\d]{130}$/, Qp = (e) => typeof e != "string" || e === "" ? !0 : e.replace(/\s/g, "") !== "" || "Should contain text", Jp = /^0x[a-fA-F\d]{64}$/, eh = 66;
|
|
10235
10236
|
function th(e, t = Gt) {
|
|
10236
|
-
const r = U.useRef(null), n = U.useRef(null), [o, i] = U.useState(!1), s = xr(), [, l] = Cl(), { open: p, onOpenChange: h } = na(),
|
|
10237
|
+
const r = U.useRef(null), n = U.useRef(null), [o, i] = U.useState(!1), s = xr(), [, l] = Cl(), { open: p, onOpenChange: h } = na(), b = U.useCallback(() => {
|
|
10237
10238
|
l(e), i(!0), s && h({ open: !0 }), n.current = window.setTimeout(() => {
|
|
10238
10239
|
h({ open: !1 });
|
|
10239
10240
|
}, t), r.current = window.setTimeout(() => {
|
|
@@ -10244,12 +10245,12 @@ function th(e, t = Gt) {
|
|
|
10244
10245
|
n.current && window.clearTimeout(n.current), r.current && window.clearTimeout(r.current);
|
|
10245
10246
|
}, []), U.useMemo(() => ({
|
|
10246
10247
|
hasCopied: o,
|
|
10247
|
-
copy:
|
|
10248
|
+
copy: b,
|
|
10248
10249
|
disclosure: {
|
|
10249
10250
|
open: p,
|
|
10250
10251
|
onOpenChange: h
|
|
10251
10252
|
}
|
|
10252
|
-
}), [o,
|
|
10253
|
+
}), [o, b, p, h]);
|
|
10253
10254
|
}
|
|
10254
10255
|
export {
|
|
10255
10256
|
Fp as ADDRESS_LENGTH,
|