randmarcomps 1.113.0 → 1.114.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/randmarcomps.js +809 -808
- package/dist/randmarcomps.umd.cjs +28 -28
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -110,7 +110,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
110
110
|
document.removeEventListener("selectionchange", pe, { capture: !0 }), ye.disconnect();
|
|
111
111
|
};
|
|
112
112
|
}, []);
|
|
113
|
-
let [
|
|
113
|
+
let [Q, q] = React.useState(!1), [G, U] = React.useState(!1), [Z, K] = React.useState(null), [ee, te] = React.useState(null);
|
|
114
114
|
React.useEffect(() => {
|
|
115
115
|
ht(() => {
|
|
116
116
|
var ne, de, pe, me;
|
|
@@ -121,7 +121,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
121
121
|
}, [j, G]), React.useEffect(() => {
|
|
122
122
|
B !== void 0 && j !== B && B.length < l && j.length === l && (m == null || m(j));
|
|
123
123
|
}, [l, m, B, j]);
|
|
124
|
-
let
|
|
124
|
+
let oe = Tt({ containerRef: H, inputRef: V, pushPasswordManagerStrategy: g, isFocused: G }), ce = React.useCallback((ne) => {
|
|
125
125
|
let de = ne.currentTarget.value.slice(0, l);
|
|
126
126
|
if (de.length > 0 && F && !F.test(de)) {
|
|
127
127
|
ne.preventDefault();
|
|
@@ -135,7 +135,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
135
135
|
(ne = V.current) == null || ne.setSelectionRange(de, pe), K(de), te(pe);
|
|
136
136
|
}
|
|
137
137
|
U(!0);
|
|
138
|
-
}, [l]),
|
|
138
|
+
}, [l]), le = React.useCallback((ne) => {
|
|
139
139
|
var de, pe;
|
|
140
140
|
let me = V.current;
|
|
141
141
|
if (!b && (!z.current.isIOS || !ne.clipboardData || !me)) return;
|
|
@@ -146,10 +146,10 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
146
146
|
me.value = ve, L(ve);
|
|
147
147
|
let xe = Math.min(ve.length, l - 1), Se = ve.length;
|
|
148
148
|
me.setSelectionRange(xe, Se), K(xe), te(Se);
|
|
149
|
-
}, [l, L, F, j]),
|
|
149
|
+
}, [l, L, F, j]), se = React.useMemo(() => ({ position: "relative", cursor: C.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [C.disabled]), ie = React.useMemo(() => ({ position: "absolute", inset: 0, width: oe.willPushPWMBadge ? `calc(100% + ${oe.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: oe.willPushPWMBadge ? `inset(0 ${oe.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: u, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [oe.PWM_BADGE_SPACE_WIDTH, oe.willPushPWMBadge, u]), ue = React.useMemo(() => React.createElement("input", bt(St({ autoComplete: C.autoComplete || "one-time-code" }, C), { "data-input-otp": !0, "data-input-otp-placeholder-shown": j.length === 0 || void 0, "data-input-otp-mss": Z, "data-input-otp-mse": ee, inputMode: p, pattern: F == null ? void 0 : F.source, "aria-placeholder": f, style: ie, maxLength: l, value: j, ref: V, onPaste: (ne) => {
|
|
150
150
|
var de;
|
|
151
|
-
|
|
152
|
-
}, onChange:
|
|
151
|
+
le(ne), (de = C.onPaste) == null || de.call(C, ne);
|
|
152
|
+
}, onChange: ce, onMouseOver: (ne) => {
|
|
153
153
|
var de;
|
|
154
154
|
q(!0), (de = C.onMouseOver) == null || de.call(C, ne);
|
|
155
155
|
}, onMouseLeave: (ne) => {
|
|
@@ -161,12 +161,12 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
161
161
|
}, onBlur: (ne) => {
|
|
162
162
|
var de;
|
|
163
163
|
U(!1), (de = C.onBlur) == null || de.call(C, ne);
|
|
164
|
-
} })), [
|
|
164
|
+
} })), [ce, ae, le, p, ie, l, ee, Z, C, F == null ? void 0 : F.source, j]), J = React.useMemo(() => ({ slots: Array.from({ length: l }).map((ne, de) => {
|
|
165
165
|
var pe;
|
|
166
|
-
let me = G &&
|
|
166
|
+
let me = G && Z !== null && ee !== null && (Z === ee && de === Z || de >= Z && de < ee), ye = j[de] !== void 0 ? j[de] : null, he = j[0] !== void 0 ? null : (pe = f == null ? void 0 : f[de]) != null ? pe : null;
|
|
167
167
|
return { char: ye, placeholderChar: he, isActive: me, hasFakeCaret: me && ye === null };
|
|
168
|
-
}), isFocused: G, isHovering: !C.disabled &&
|
|
169
|
-
return React.createElement(React.Fragment, null, R !== null && React.createElement("noscript", null, React.createElement("style", null, R)), React.createElement("div", { ref: H, "data-input-otp-container": !0, style:
|
|
168
|
+
}), isFocused: G, isHovering: !C.disabled && Q }), [G, Q, l, ee, Z, C.disabled, j]), fe = React.useMemo(() => E ? E(J) : React.createElement(jt.Provider, { value: J }, S), [S, J, E]);
|
|
169
|
+
return React.createElement(React.Fragment, null, R !== null && React.createElement("noscript", null, React.createElement("style", null, R)), React.createElement("div", { ref: H, "data-input-otp-container": !0, style: se, className: _ }, fe, React.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, ue)));
|
|
170
170
|
});
|
|
171
171
|
Lt.displayName = "Input";
|
|
172
172
|
function $(e, t) {
|
|
@@ -955,11 +955,11 @@ const fromTheme = (e) => {
|
|
|
955
955
|
"left-bottom"
|
|
956
956
|
], T = () => [...M(), isArbitraryVariable, isArbitraryValue], O = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], D = () => [isArbitraryVariable, isArbitraryValue, f], j = () => [isFraction, "full", "auto", ...D()], B = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue], L = () => ["auto", {
|
|
957
957
|
span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
|
|
958
|
-
}, isInteger, isArbitraryVariable, isArbitraryValue], F = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], V = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...D()],
|
|
958
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue], F = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], V = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...D()], Q = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...D()], q = () => [e, isArbitraryVariable, isArbitraryValue], G = () => [...M(), isArbitraryVariablePosition, isArbitraryPosition, {
|
|
959
959
|
position: [isArbitraryVariable, isArbitraryValue]
|
|
960
960
|
}], U = () => ["no-repeat", {
|
|
961
961
|
repeat: ["", "x", "y", "space", "round"]
|
|
962
|
-
}],
|
|
962
|
+
}], Z = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
|
|
963
963
|
size: [isArbitraryVariable, isArbitraryValue]
|
|
964
964
|
}], K = () => [isPercent$1, isArbitraryVariableLength, isArbitraryLength], ee = () => [
|
|
965
965
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -969,14 +969,14 @@ const fromTheme = (e) => {
|
|
|
969
969
|
p,
|
|
970
970
|
isArbitraryVariable,
|
|
971
971
|
isArbitraryValue
|
|
972
|
-
], te = () => ["", isNumber$2, isArbitraryVariableLength, isArbitraryLength],
|
|
972
|
+
], te = () => ["", isNumber$2, isArbitraryVariableLength, isArbitraryLength], oe = () => ["solid", "dashed", "dotted", "double"], ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ae = () => [isNumber$2, isPercent$1, isArbitraryVariablePosition, isArbitraryPosition], le = () => [
|
|
973
973
|
// Deprecated since Tailwind CSS v4.0.0
|
|
974
974
|
"",
|
|
975
975
|
"none",
|
|
976
976
|
R,
|
|
977
977
|
isArbitraryVariable,
|
|
978
978
|
isArbitraryValue
|
|
979
|
-
],
|
|
979
|
+
], se = () => ["none", isNumber$2, isArbitraryVariable, isArbitraryValue], ie = () => ["none", isNumber$2, isArbitraryVariable, isArbitraryValue], ue = () => [isNumber$2, isArbitraryVariable, isArbitraryValue], J = () => [isFraction, "full", ...D()];
|
|
980
980
|
return {
|
|
981
981
|
cacheSize: 500,
|
|
982
982
|
theme: {
|
|
@@ -1600,14 +1600,14 @@ const fromTheme = (e) => {
|
|
|
1600
1600
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1601
1601
|
*/
|
|
1602
1602
|
size: [{
|
|
1603
|
-
size:
|
|
1603
|
+
size: Q()
|
|
1604
1604
|
}],
|
|
1605
1605
|
/**
|
|
1606
1606
|
* Width
|
|
1607
1607
|
* @see https://tailwindcss.com/docs/width
|
|
1608
1608
|
*/
|
|
1609
1609
|
w: [{
|
|
1610
|
-
w: [d, "screen", ...
|
|
1610
|
+
w: [d, "screen", ...Q()]
|
|
1611
1611
|
}],
|
|
1612
1612
|
/**
|
|
1613
1613
|
* Min-Width
|
|
@@ -1619,7 +1619,7 @@ const fromTheme = (e) => {
|
|
|
1619
1619
|
"screen",
|
|
1620
1620
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1621
1621
|
"none",
|
|
1622
|
-
...
|
|
1622
|
+
...Q()
|
|
1623
1623
|
]
|
|
1624
1624
|
}],
|
|
1625
1625
|
/**
|
|
@@ -1637,7 +1637,7 @@ const fromTheme = (e) => {
|
|
|
1637
1637
|
{
|
|
1638
1638
|
screen: [u]
|
|
1639
1639
|
},
|
|
1640
|
-
...
|
|
1640
|
+
...Q()
|
|
1641
1641
|
]
|
|
1642
1642
|
}],
|
|
1643
1643
|
/**
|
|
@@ -1645,21 +1645,21 @@ const fromTheme = (e) => {
|
|
|
1645
1645
|
* @see https://tailwindcss.com/docs/height
|
|
1646
1646
|
*/
|
|
1647
1647
|
h: [{
|
|
1648
|
-
h: ["screen", ...
|
|
1648
|
+
h: ["screen", ...Q()]
|
|
1649
1649
|
}],
|
|
1650
1650
|
/**
|
|
1651
1651
|
* Min-Height
|
|
1652
1652
|
* @see https://tailwindcss.com/docs/min-height
|
|
1653
1653
|
*/
|
|
1654
1654
|
"min-h": [{
|
|
1655
|
-
"min-h": ["screen", "none", ...
|
|
1655
|
+
"min-h": ["screen", "none", ...Q()]
|
|
1656
1656
|
}],
|
|
1657
1657
|
/**
|
|
1658
1658
|
* Max-Height
|
|
1659
1659
|
* @see https://tailwindcss.com/docs/max-height
|
|
1660
1660
|
*/
|
|
1661
1661
|
"max-h": [{
|
|
1662
|
-
"max-h": ["screen", ...
|
|
1662
|
+
"max-h": ["screen", ...Q()]
|
|
1663
1663
|
}],
|
|
1664
1664
|
// ------------------
|
|
1665
1665
|
// --- Typography ---
|
|
@@ -1810,7 +1810,7 @@ const fromTheme = (e) => {
|
|
|
1810
1810
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1811
1811
|
*/
|
|
1812
1812
|
"text-decoration-style": [{
|
|
1813
|
-
decoration: [...
|
|
1813
|
+
decoration: [...oe(), "wavy"]
|
|
1814
1814
|
}],
|
|
1815
1815
|
/**
|
|
1816
1816
|
* Text Decoration Thickness
|
|
@@ -1942,7 +1942,7 @@ const fromTheme = (e) => {
|
|
|
1942
1942
|
* @see https://tailwindcss.com/docs/background-size
|
|
1943
1943
|
*/
|
|
1944
1944
|
"bg-size": [{
|
|
1945
|
-
bg:
|
|
1945
|
+
bg: Z()
|
|
1946
1946
|
}],
|
|
1947
1947
|
/**
|
|
1948
1948
|
* Background Image
|
|
@@ -2206,14 +2206,14 @@ const fromTheme = (e) => {
|
|
|
2206
2206
|
* @see https://tailwindcss.com/docs/border-style
|
|
2207
2207
|
*/
|
|
2208
2208
|
"border-style": [{
|
|
2209
|
-
border: [...
|
|
2209
|
+
border: [...oe(), "hidden", "none"]
|
|
2210
2210
|
}],
|
|
2211
2211
|
/**
|
|
2212
2212
|
* Divide Style
|
|
2213
2213
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2214
2214
|
*/
|
|
2215
2215
|
"divide-style": [{
|
|
2216
|
-
divide: [...
|
|
2216
|
+
divide: [...oe(), "hidden", "none"]
|
|
2217
2217
|
}],
|
|
2218
2218
|
/**
|
|
2219
2219
|
* Border Color
|
|
@@ -2290,7 +2290,7 @@ const fromTheme = (e) => {
|
|
|
2290
2290
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2291
2291
|
*/
|
|
2292
2292
|
"outline-style": [{
|
|
2293
|
-
outline: [...
|
|
2293
|
+
outline: [...oe(), "none", "hidden"]
|
|
2294
2294
|
}],
|
|
2295
2295
|
/**
|
|
2296
2296
|
* Outline Offset
|
|
@@ -2430,14 +2430,14 @@ const fromTheme = (e) => {
|
|
|
2430
2430
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2431
2431
|
*/
|
|
2432
2432
|
"mix-blend": [{
|
|
2433
|
-
"mix-blend": [...
|
|
2433
|
+
"mix-blend": [...ce(), "plus-darker", "plus-lighter"]
|
|
2434
2434
|
}],
|
|
2435
2435
|
/**
|
|
2436
2436
|
* Background Blend Mode
|
|
2437
2437
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2438
2438
|
*/
|
|
2439
2439
|
"bg-blend": [{
|
|
2440
|
-
"bg-blend":
|
|
2440
|
+
"bg-blend": ce()
|
|
2441
2441
|
}],
|
|
2442
2442
|
/**
|
|
2443
2443
|
* Mask Clip
|
|
@@ -2619,7 +2619,7 @@ const fromTheme = (e) => {
|
|
|
2619
2619
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2620
2620
|
*/
|
|
2621
2621
|
"mask-size": [{
|
|
2622
|
-
mask:
|
|
2622
|
+
mask: Z()
|
|
2623
2623
|
}],
|
|
2624
2624
|
/**
|
|
2625
2625
|
* Mask Type
|
|
@@ -2656,7 +2656,7 @@ const fromTheme = (e) => {
|
|
|
2656
2656
|
* @see https://tailwindcss.com/docs/blur
|
|
2657
2657
|
*/
|
|
2658
2658
|
blur: [{
|
|
2659
|
-
blur:
|
|
2659
|
+
blur: le()
|
|
2660
2660
|
}],
|
|
2661
2661
|
/**
|
|
2662
2662
|
* Brightness
|
|
@@ -2746,7 +2746,7 @@ const fromTheme = (e) => {
|
|
|
2746
2746
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2747
2747
|
*/
|
|
2748
2748
|
"backdrop-blur": [{
|
|
2749
|
-
"backdrop-blur":
|
|
2749
|
+
"backdrop-blur": le()
|
|
2750
2750
|
}],
|
|
2751
2751
|
/**
|
|
2752
2752
|
* Backdrop Brightness
|
|
@@ -2923,56 +2923,56 @@ const fromTheme = (e) => {
|
|
|
2923
2923
|
* @see https://tailwindcss.com/docs/rotate
|
|
2924
2924
|
*/
|
|
2925
2925
|
rotate: [{
|
|
2926
|
-
rotate:
|
|
2926
|
+
rotate: se()
|
|
2927
2927
|
}],
|
|
2928
2928
|
/**
|
|
2929
2929
|
* Rotate X
|
|
2930
2930
|
* @see https://tailwindcss.com/docs/rotate
|
|
2931
2931
|
*/
|
|
2932
2932
|
"rotate-x": [{
|
|
2933
|
-
"rotate-x":
|
|
2933
|
+
"rotate-x": se()
|
|
2934
2934
|
}],
|
|
2935
2935
|
/**
|
|
2936
2936
|
* Rotate Y
|
|
2937
2937
|
* @see https://tailwindcss.com/docs/rotate
|
|
2938
2938
|
*/
|
|
2939
2939
|
"rotate-y": [{
|
|
2940
|
-
"rotate-y":
|
|
2940
|
+
"rotate-y": se()
|
|
2941
2941
|
}],
|
|
2942
2942
|
/**
|
|
2943
2943
|
* Rotate Z
|
|
2944
2944
|
* @see https://tailwindcss.com/docs/rotate
|
|
2945
2945
|
*/
|
|
2946
2946
|
"rotate-z": [{
|
|
2947
|
-
"rotate-z":
|
|
2947
|
+
"rotate-z": se()
|
|
2948
2948
|
}],
|
|
2949
2949
|
/**
|
|
2950
2950
|
* Scale
|
|
2951
2951
|
* @see https://tailwindcss.com/docs/scale
|
|
2952
2952
|
*/
|
|
2953
2953
|
scale: [{
|
|
2954
|
-
scale:
|
|
2954
|
+
scale: ie()
|
|
2955
2955
|
}],
|
|
2956
2956
|
/**
|
|
2957
2957
|
* Scale X
|
|
2958
2958
|
* @see https://tailwindcss.com/docs/scale
|
|
2959
2959
|
*/
|
|
2960
2960
|
"scale-x": [{
|
|
2961
|
-
"scale-x":
|
|
2961
|
+
"scale-x": ie()
|
|
2962
2962
|
}],
|
|
2963
2963
|
/**
|
|
2964
2964
|
* Scale Y
|
|
2965
2965
|
* @see https://tailwindcss.com/docs/scale
|
|
2966
2966
|
*/
|
|
2967
2967
|
"scale-y": [{
|
|
2968
|
-
"scale-y":
|
|
2968
|
+
"scale-y": ie()
|
|
2969
2969
|
}],
|
|
2970
2970
|
/**
|
|
2971
2971
|
* Scale Z
|
|
2972
2972
|
* @see https://tailwindcss.com/docs/scale
|
|
2973
2973
|
*/
|
|
2974
2974
|
"scale-z": [{
|
|
2975
|
-
"scale-z":
|
|
2975
|
+
"scale-z": ie()
|
|
2976
2976
|
}],
|
|
2977
2977
|
/**
|
|
2978
2978
|
* Scale 3D
|
|
@@ -2984,21 +2984,21 @@ const fromTheme = (e) => {
|
|
|
2984
2984
|
* @see https://tailwindcss.com/docs/skew
|
|
2985
2985
|
*/
|
|
2986
2986
|
skew: [{
|
|
2987
|
-
skew:
|
|
2987
|
+
skew: ue()
|
|
2988
2988
|
}],
|
|
2989
2989
|
/**
|
|
2990
2990
|
* Skew X
|
|
2991
2991
|
* @see https://tailwindcss.com/docs/skew
|
|
2992
2992
|
*/
|
|
2993
2993
|
"skew-x": [{
|
|
2994
|
-
"skew-x":
|
|
2994
|
+
"skew-x": ue()
|
|
2995
2995
|
}],
|
|
2996
2996
|
/**
|
|
2997
2997
|
* Skew Y
|
|
2998
2998
|
* @see https://tailwindcss.com/docs/skew
|
|
2999
2999
|
*/
|
|
3000
3000
|
"skew-y": [{
|
|
3001
|
-
"skew-y":
|
|
3001
|
+
"skew-y": ue()
|
|
3002
3002
|
}],
|
|
3003
3003
|
/**
|
|
3004
3004
|
* Transform
|
|
@@ -3026,28 +3026,28 @@ const fromTheme = (e) => {
|
|
|
3026
3026
|
* @see https://tailwindcss.com/docs/translate
|
|
3027
3027
|
*/
|
|
3028
3028
|
translate: [{
|
|
3029
|
-
translate:
|
|
3029
|
+
translate: J()
|
|
3030
3030
|
}],
|
|
3031
3031
|
/**
|
|
3032
3032
|
* Translate X
|
|
3033
3033
|
* @see https://tailwindcss.com/docs/translate
|
|
3034
3034
|
*/
|
|
3035
3035
|
"translate-x": [{
|
|
3036
|
-
"translate-x":
|
|
3036
|
+
"translate-x": J()
|
|
3037
3037
|
}],
|
|
3038
3038
|
/**
|
|
3039
3039
|
* Translate Y
|
|
3040
3040
|
* @see https://tailwindcss.com/docs/translate
|
|
3041
3041
|
*/
|
|
3042
3042
|
"translate-y": [{
|
|
3043
|
-
"translate-y":
|
|
3043
|
+
"translate-y": J()
|
|
3044
3044
|
}],
|
|
3045
3045
|
/**
|
|
3046
3046
|
* Translate Z
|
|
3047
3047
|
* @see https://tailwindcss.com/docs/translate
|
|
3048
3048
|
*/
|
|
3049
3049
|
"translate-z": [{
|
|
3050
|
-
"translate-z":
|
|
3050
|
+
"translate-z": J()
|
|
3051
3051
|
}],
|
|
3052
3052
|
/**
|
|
3053
3053
|
* Translate None
|
|
@@ -5173,14 +5173,14 @@ const arrow$3 = (e) => ({
|
|
|
5173
5173
|
}, _ = getAlignmentAxis(o), R = getAxisLength(_), E = await u.getDimensions(p), S = _ === "y", C = S ? "top" : "left", A = S ? "bottom" : "right", I = S ? "clientHeight" : "clientWidth", M = l.reference[R] + l.reference[_] - b[_] - l.floating[R], T = b[_] - l.reference[_], O = await (u.getOffsetParent == null ? void 0 : u.getOffsetParent(p));
|
|
5174
5174
|
let N = O ? O[I] : 0;
|
|
5175
5175
|
(!N || !await (u.isElement == null ? void 0 : u.isElement(O))) && (N = d.floating[I] || l.floating[R]);
|
|
5176
|
-
const D = M / 2 - T / 2, j = N / 2 - E[R] / 2 - 1, B = min$2(g[C], j), L = min$2(g[A], j), F = B, V = N - E[R] - L, H = N / 2 - E[R] / 2 + D, z = clamp$1(F, H, V), W = !f.arrow && getAlignment(o) != null && H !== z && l.reference[R] / 2 - (H < F ? B : L) - E[R] / 2 < 0,
|
|
5176
|
+
const D = M / 2 - T / 2, j = N / 2 - E[R] / 2 - 1, B = min$2(g[C], j), L = min$2(g[A], j), F = B, V = N - E[R] - L, H = N / 2 - E[R] / 2 + D, z = clamp$1(F, H, V), W = !f.arrow && getAlignment(o) != null && H !== z && l.reference[R] / 2 - (H < F ? B : L) - E[R] / 2 < 0, Q = W ? H < F ? H - F : H - V : 0;
|
|
5177
5177
|
return {
|
|
5178
|
-
[_]: b[_] +
|
|
5178
|
+
[_]: b[_] + Q,
|
|
5179
5179
|
data: {
|
|
5180
5180
|
[_]: z,
|
|
5181
|
-
centerOffset: H - z -
|
|
5181
|
+
centerOffset: H - z - Q,
|
|
5182
5182
|
...W && {
|
|
5183
|
-
alignmentOffset:
|
|
5183
|
+
alignmentOffset: Q
|
|
5184
5184
|
}
|
|
5185
5185
|
},
|
|
5186
5186
|
reset: W
|
|
@@ -5234,12 +5234,12 @@ const arrow$3 = (e) => ({
|
|
|
5234
5234
|
placement: z
|
|
5235
5235
|
}
|
|
5236
5236
|
};
|
|
5237
|
-
let W = (F = B.filter((
|
|
5237
|
+
let W = (F = B.filter((Q) => Q.overflows[0] <= 0).sort((Q, q) => Q.overflows[1] - q.overflows[1])[0]) == null ? void 0 : F.placement;
|
|
5238
5238
|
if (!W)
|
|
5239
5239
|
switch (_) {
|
|
5240
5240
|
case "bestFit": {
|
|
5241
5241
|
var V;
|
|
5242
|
-
const
|
|
5242
|
+
const Q = (V = B.filter((q) => {
|
|
5243
5243
|
if (O) {
|
|
5244
5244
|
const G = getSideAxis(q.placement);
|
|
5245
5245
|
return G === A || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -5248,7 +5248,7 @@ const arrow$3 = (e) => ({
|
|
|
5248
5248
|
}
|
|
5249
5249
|
return !0;
|
|
5250
5250
|
}).map((q) => [q.placement, q.overflows.filter((G) => G > 0).reduce((G, U) => G + U, 0)]).sort((q, G) => q[1] - G[1])[0]) == null ? void 0 : V[0];
|
|
5251
|
-
|
|
5251
|
+
Q && (W = Q);
|
|
5252
5252
|
break;
|
|
5253
5253
|
}
|
|
5254
5254
|
case "initialPlacement":
|
|
@@ -6112,7 +6112,7 @@ function useFloating(e) {
|
|
|
6112
6112
|
}), [A, I]), W = React.useMemo(() => ({
|
|
6113
6113
|
reference: M,
|
|
6114
6114
|
floating: T
|
|
6115
|
-
}), [M, T]),
|
|
6115
|
+
}), [M, T]), Q = React.useMemo(() => {
|
|
6116
6116
|
const q = {
|
|
6117
6117
|
position: n,
|
|
6118
6118
|
left: 0,
|
|
@@ -6138,8 +6138,8 @@ function useFloating(e) {
|
|
|
6138
6138
|
update: V,
|
|
6139
6139
|
refs: z,
|
|
6140
6140
|
elements: W,
|
|
6141
|
-
floatingStyles:
|
|
6142
|
-
}), [m, V, z, W,
|
|
6141
|
+
floatingStyles: Q
|
|
6142
|
+
}), [m, V, z, W, Q]);
|
|
6143
6143
|
}
|
|
6144
6144
|
const arrow$1 = (e) => {
|
|
6145
6145
|
function t(n) {
|
|
@@ -6239,7 +6239,7 @@ var ANCHOR_NAME$1 = "PopperAnchor", PopperAnchor = React.forwardRef(
|
|
|
6239
6239
|
PopperAnchor.displayName = ANCHOR_NAME$1;
|
|
6240
6240
|
var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$5), PopperContent = React.forwardRef(
|
|
6241
6241
|
(e, t) => {
|
|
6242
|
-
var ae, se,
|
|
6242
|
+
var ae, le, se, ie, ue, J;
|
|
6243
6243
|
const {
|
|
6244
6244
|
__scopePopper: n,
|
|
6245
6245
|
side: i = "bottom",
|
|
@@ -6260,7 +6260,7 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6260
6260
|
boundary: L.filter(isNotNull),
|
|
6261
6261
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
6262
6262
|
altBoundary: F
|
|
6263
|
-
}, { refs: H, floatingStyles: z, placement: W, isPositioned:
|
|
6263
|
+
}, { refs: H, floatingStyles: z, placement: W, isPositioned: Q, middlewareData: q } = useFloating({
|
|
6264
6264
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
6265
6265
|
strategy: "fixed",
|
|
6266
6266
|
placement: j,
|
|
@@ -6290,13 +6290,13 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6290
6290
|
transformOrigin({ arrowWidth: N, arrowHeight: D }),
|
|
6291
6291
|
b && hide({ strategy: "referenceHidden", ...V })
|
|
6292
6292
|
]
|
|
6293
|
-
}), [G, U] = getSideAndAlignFromPlacement(W),
|
|
6293
|
+
}), [G, U] = getSideAndAlignFromPlacement(W), Z = useCallbackRef$1(R);
|
|
6294
6294
|
useLayoutEffect2(() => {
|
|
6295
|
-
|
|
6296
|
-
}, [
|
|
6297
|
-
const K = (ae = q.arrow) == null ? void 0 : ae.x, ee = (
|
|
6295
|
+
Q && (Z == null || Z());
|
|
6296
|
+
}, [Q, Z]);
|
|
6297
|
+
const K = (ae = q.arrow) == null ? void 0 : ae.x, ee = (le = q.arrow) == null ? void 0 : le.y, te = ((se = q.arrow) == null ? void 0 : se.centerOffset) !== 0, [oe, ce] = React.useState();
|
|
6298
6298
|
return useLayoutEffect2(() => {
|
|
6299
|
-
C &&
|
|
6299
|
+
C && ce(window.getComputedStyle(C).zIndex);
|
|
6300
6300
|
}, [C]), /* @__PURE__ */ jsx(
|
|
6301
6301
|
"div",
|
|
6302
6302
|
{
|
|
@@ -6304,18 +6304,18 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6304
6304
|
"data-radix-popper-content-wrapper": "",
|
|
6305
6305
|
style: {
|
|
6306
6306
|
...z,
|
|
6307
|
-
transform:
|
|
6307
|
+
transform: Q ? z.transform : "translate(0, -200%)",
|
|
6308
6308
|
// keep off the page when measuring
|
|
6309
6309
|
minWidth: "max-content",
|
|
6310
|
-
zIndex:
|
|
6310
|
+
zIndex: oe,
|
|
6311
6311
|
"--radix-popper-transform-origin": [
|
|
6312
|
-
(
|
|
6313
|
-
(
|
|
6312
|
+
(ie = q.transformOrigin) == null ? void 0 : ie.x,
|
|
6313
|
+
(ue = q.transformOrigin) == null ? void 0 : ue.y
|
|
6314
6314
|
].join(" "),
|
|
6315
6315
|
// hide the content if using the hide middleware and should be hidden
|
|
6316
6316
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
6317
6317
|
// as if the PopperContent isn't there at all
|
|
6318
|
-
...((
|
|
6318
|
+
...((J = q.hide) == null ? void 0 : J.referenceHidden) && {
|
|
6319
6319
|
visibility: "hidden",
|
|
6320
6320
|
pointerEvents: "none"
|
|
6321
6321
|
}
|
|
@@ -6341,7 +6341,7 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6341
6341
|
...E.style,
|
|
6342
6342
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
6343
6343
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
6344
|
-
animation:
|
|
6344
|
+
animation: Q ? void 0 : "none"
|
|
6345
6345
|
}
|
|
6346
6346
|
}
|
|
6347
6347
|
)
|
|
@@ -6695,17 +6695,17 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
6695
6695
|
onDismiss: _,
|
|
6696
6696
|
disableOutsideScroll: R,
|
|
6697
6697
|
...E
|
|
6698
|
-
} = e, S = useMenuContext(CONTENT_NAME$4, n), C = useMenuRootContext(CONTENT_NAME$4, n), A = usePopperScope$2(n), I = useRovingFocusGroupScope$1(n), M = useCollection$2(n), [T, O] = React.useState(null), N = React.useRef(null), D = useComposedRefs(t, N, S.onContentChange), j = React.useRef(0), B = React.useRef(""), L = React.useRef(0), F = React.useRef(null), V = React.useRef("right"), H = React.useRef(0), z = R ? ReactRemoveScroll : React.Fragment, W = R ? { as: Slot$1, allowPinchZoom: !0 } : void 0,
|
|
6699
|
-
var ae,
|
|
6700
|
-
const U = B.current + G,
|
|
6701
|
-
(function
|
|
6702
|
-
B.current =
|
|
6703
|
-
})(U),
|
|
6698
|
+
} = e, S = useMenuContext(CONTENT_NAME$4, n), C = useMenuRootContext(CONTENT_NAME$4, n), A = usePopperScope$2(n), I = useRovingFocusGroupScope$1(n), M = useCollection$2(n), [T, O] = React.useState(null), N = React.useRef(null), D = useComposedRefs(t, N, S.onContentChange), j = React.useRef(0), B = React.useRef(""), L = React.useRef(0), F = React.useRef(null), V = React.useRef("right"), H = React.useRef(0), z = R ? ReactRemoveScroll : React.Fragment, W = R ? { as: Slot$1, allowPinchZoom: !0 } : void 0, Q = (G) => {
|
|
6699
|
+
var ae, le;
|
|
6700
|
+
const U = B.current + G, Z = M().filter((se) => !se.disabled), K = document.activeElement, ee = (ae = Z.find((se) => se.ref.current === K)) == null ? void 0 : ae.textValue, te = Z.map((se) => se.textValue), oe = getNextMatch(te, U, ee), ce = (le = Z.find((se) => se.textValue === oe)) == null ? void 0 : le.ref.current;
|
|
6701
|
+
(function se(ie) {
|
|
6702
|
+
B.current = ie, window.clearTimeout(j.current), ie !== "" && (j.current = window.setTimeout(() => se(""), 1e3));
|
|
6703
|
+
})(U), ce && setTimeout(() => ce.focus());
|
|
6704
6704
|
};
|
|
6705
6705
|
React.useEffect(() => () => window.clearTimeout(j.current), []), useFocusGuards();
|
|
6706
6706
|
const q = React.useCallback((G) => {
|
|
6707
|
-
var
|
|
6708
|
-
return V.current === ((
|
|
6707
|
+
var Z, K;
|
|
6708
|
+
return V.current === ((Z = F.current) == null ? void 0 : Z.side) && isPointerInGraceArea(G, (K = F.current) == null ? void 0 : K.area);
|
|
6709
6709
|
}, []);
|
|
6710
6710
|
return /* @__PURE__ */ jsx(
|
|
6711
6711
|
MenuContentProvider,
|
|
@@ -6782,13 +6782,13 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
6782
6782
|
ref: D,
|
|
6783
6783
|
style: { outline: "none", ...E.style },
|
|
6784
6784
|
onKeyDown: composeEventHandlers(E.onKeyDown, (G) => {
|
|
6785
|
-
const
|
|
6786
|
-
|
|
6785
|
+
const Z = G.target.closest("[data-radix-menu-content]") === G.currentTarget, K = G.ctrlKey || G.altKey || G.metaKey, ee = G.key.length === 1;
|
|
6786
|
+
Z && (G.key === "Tab" && G.preventDefault(), !K && ee && Q(G.key));
|
|
6787
6787
|
const te = N.current;
|
|
6788
6788
|
if (G.target !== te || !FIRST_LAST_KEYS.includes(G.key)) return;
|
|
6789
6789
|
G.preventDefault();
|
|
6790
|
-
const
|
|
6791
|
-
LAST_KEYS.includes(G.key) &&
|
|
6790
|
+
const ce = M().filter((ae) => !ae.disabled).map((ae) => ae.ref.current);
|
|
6791
|
+
LAST_KEYS.includes(G.key) && ce.reverse(), focusFirst$1(ce);
|
|
6792
6792
|
}),
|
|
6793
6793
|
onBlur: composeEventHandlers(e.onBlur, (G) => {
|
|
6794
6794
|
G.currentTarget.contains(G.target) || (window.clearTimeout(j.current), B.current = "");
|
|
@@ -6796,8 +6796,8 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
6796
6796
|
onPointerMove: composeEventHandlers(
|
|
6797
6797
|
e.onPointerMove,
|
|
6798
6798
|
whenMouse((G) => {
|
|
6799
|
-
const U = G.target,
|
|
6800
|
-
if (G.currentTarget.contains(U) &&
|
|
6799
|
+
const U = G.target, Z = H.current !== G.clientX;
|
|
6800
|
+
if (G.currentTarget.contains(U) && Z) {
|
|
6801
6801
|
const K = G.clientX > H.current ? "right" : "left";
|
|
6802
6802
|
V.current = K, H.current = G.clientX;
|
|
6803
6803
|
}
|
|
@@ -8971,8 +8971,8 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
8971
8971
|
const z = () => {
|
|
8972
8972
|
F(N.current), p == null || p();
|
|
8973
8973
|
}, W = () => {
|
|
8974
|
-
const
|
|
8975
|
-
N.current = N.current -
|
|
8974
|
+
const Q = (/* @__PURE__ */ new Date()).getTime() - O.current;
|
|
8975
|
+
N.current = N.current - Q, window.clearTimeout(D.current), f == null || f();
|
|
8976
8976
|
};
|
|
8977
8977
|
return H.addEventListener(VIEWPORT_PAUSE, W), H.addEventListener(VIEWPORT_RESUME, z), () => {
|
|
8978
8978
|
H.removeEventListener(VIEWPORT_PAUSE, W), H.removeEventListener(VIEWPORT_RESUME, z);
|
|
@@ -9021,8 +9021,8 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
9021
9021
|
}),
|
|
9022
9022
|
onPointerMove: composeEventHandlers(e.onPointerMove, (H) => {
|
|
9023
9023
|
if (!I.current) return;
|
|
9024
|
-
const z = H.clientX - I.current.x, W = H.clientY - I.current.y,
|
|
9025
|
-
|
|
9024
|
+
const z = H.clientX - I.current.x, W = H.clientY - I.current.y, Q = !!M.current, q = ["left", "right"].includes(E.swipeDirection), G = ["left", "up"].includes(E.swipeDirection) ? Math.min : Math.max, U = q ? G(0, z) : 0, Z = q ? 0 : G(0, W), K = H.pointerType === "touch" ? 10 : 2, ee = { x: U, y: Z }, te = { originalEvent: H, delta: ee };
|
|
9025
|
+
Q ? (M.current = ee, handleAndDispatchCustomEvent(TOAST_SWIPE_MOVE, g, te, {
|
|
9026
9026
|
discrete: !1
|
|
9027
9027
|
})) : isDeltaInDirection(ee, E.swipeDirection, K) ? (M.current = ee, handleAndDispatchCustomEvent(TOAST_SWIPE_START, m, te, {
|
|
9028
9028
|
discrete: !1
|
|
@@ -9031,7 +9031,7 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
9031
9031
|
onPointerUp: composeEventHandlers(e.onPointerUp, (H) => {
|
|
9032
9032
|
const z = M.current, W = H.target;
|
|
9033
9033
|
if (W.hasPointerCapture(H.pointerId) && W.releasePointerCapture(H.pointerId), M.current = null, I.current = null, z) {
|
|
9034
|
-
const
|
|
9034
|
+
const Q = H.currentTarget, q = { originalEvent: H, delta: z };
|
|
9035
9035
|
isDeltaInDirection(z, E.swipeDirection, E.swipeThreshold) ? handleAndDispatchCustomEvent(TOAST_SWIPE_END, _, q, {
|
|
9036
9036
|
discrete: !0
|
|
9037
9037
|
}) : handleAndDispatchCustomEvent(
|
|
@@ -9041,7 +9041,7 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
9041
9041
|
{
|
|
9042
9042
|
discrete: !0
|
|
9043
9043
|
}
|
|
9044
|
-
),
|
|
9044
|
+
), Q.addEventListener("click", (G) => G.preventDefault(), {
|
|
9045
9045
|
once: !0
|
|
9046
9046
|
});
|
|
9047
9047
|
}
|
|
@@ -10071,11 +10071,11 @@ function requireReactIs_development$1() {
|
|
|
10071
10071
|
}
|
|
10072
10072
|
}
|
|
10073
10073
|
}
|
|
10074
|
-
var O = u, N = l, D = e, j = f, B = n, L = b, F = g, V = t, H = o, z = i, W = p,
|
|
10074
|
+
var O = u, N = l, D = e, j = f, B = n, L = b, F = g, V = t, H = o, z = i, W = p, Q = m, q = !1, G = !1;
|
|
10075
10075
|
function U(ne) {
|
|
10076
10076
|
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
10077
10077
|
}
|
|
10078
|
-
function
|
|
10078
|
+
function Z(ne) {
|
|
10079
10079
|
return G || (G = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
10080
10080
|
}
|
|
10081
10081
|
function K(ne) {
|
|
@@ -10087,34 +10087,34 @@ function requireReactIs_development$1() {
|
|
|
10087
10087
|
function te(ne) {
|
|
10088
10088
|
return typeof ne == "object" && ne !== null && ne.$$typeof === e;
|
|
10089
10089
|
}
|
|
10090
|
-
function
|
|
10090
|
+
function oe(ne) {
|
|
10091
10091
|
return T(ne) === f;
|
|
10092
10092
|
}
|
|
10093
|
-
function
|
|
10093
|
+
function ce(ne) {
|
|
10094
10094
|
return T(ne) === n;
|
|
10095
10095
|
}
|
|
10096
10096
|
function ae(ne) {
|
|
10097
10097
|
return T(ne) === b;
|
|
10098
10098
|
}
|
|
10099
|
-
function
|
|
10099
|
+
function le(ne) {
|
|
10100
10100
|
return T(ne) === g;
|
|
10101
10101
|
}
|
|
10102
|
-
function
|
|
10102
|
+
function se(ne) {
|
|
10103
10103
|
return T(ne) === t;
|
|
10104
10104
|
}
|
|
10105
|
-
function
|
|
10105
|
+
function ie(ne) {
|
|
10106
10106
|
return T(ne) === o;
|
|
10107
10107
|
}
|
|
10108
|
-
function
|
|
10108
|
+
function ue(ne) {
|
|
10109
10109
|
return T(ne) === i;
|
|
10110
10110
|
}
|
|
10111
|
-
function
|
|
10111
|
+
function J(ne) {
|
|
10112
10112
|
return T(ne) === p;
|
|
10113
10113
|
}
|
|
10114
10114
|
function fe(ne) {
|
|
10115
10115
|
return T(ne) === m;
|
|
10116
10116
|
}
|
|
10117
|
-
reactIs_development$1.ContextConsumer = O, reactIs_development$1.ContextProvider = N, reactIs_development$1.Element = D, reactIs_development$1.ForwardRef = j, reactIs_development$1.Fragment = B, reactIs_development$1.Lazy = L, reactIs_development$1.Memo = F, reactIs_development$1.Portal = V, reactIs_development$1.Profiler = H, reactIs_development$1.StrictMode = z, reactIs_development$1.Suspense = W, reactIs_development$1.SuspenseList =
|
|
10117
|
+
reactIs_development$1.ContextConsumer = O, reactIs_development$1.ContextProvider = N, reactIs_development$1.Element = D, reactIs_development$1.ForwardRef = j, reactIs_development$1.Fragment = B, reactIs_development$1.Lazy = L, reactIs_development$1.Memo = F, reactIs_development$1.Portal = V, reactIs_development$1.Profiler = H, reactIs_development$1.StrictMode = z, reactIs_development$1.Suspense = W, reactIs_development$1.SuspenseList = Q, reactIs_development$1.isAsyncMode = U, reactIs_development$1.isConcurrentMode = Z, reactIs_development$1.isContextConsumer = K, reactIs_development$1.isContextProvider = ee, reactIs_development$1.isElement = te, reactIs_development$1.isForwardRef = oe, reactIs_development$1.isFragment = ce, reactIs_development$1.isLazy = ae, reactIs_development$1.isMemo = le, reactIs_development$1.isPortal = se, reactIs_development$1.isProfiler = ie, reactIs_development$1.isStrictMode = ue, reactIs_development$1.isSuspense = J, reactIs_development$1.isSuspenseList = fe, reactIs_development$1.isValidElementType = M, reactIs_development$1.typeOf = T;
|
|
10118
10118
|
}()), reactIs_development$1;
|
|
10119
10119
|
}
|
|
10120
10120
|
var hasRequiredReactIs$1;
|
|
@@ -13516,12 +13516,12 @@ var DefaultTooltipContent = function(t) {
|
|
|
13516
13516
|
paddingTop: 4,
|
|
13517
13517
|
paddingBottom: 4,
|
|
13518
13518
|
color: H.color || "#000"
|
|
13519
|
-
}, d),
|
|
13520
|
-
if (
|
|
13521
|
-
var K =
|
|
13519
|
+
}, d), Q = H.formatter || g || defaultFormatter, q = H.value, G = H.name, U = q, Z = G;
|
|
13520
|
+
if (Q && U != null && Z != null) {
|
|
13521
|
+
var K = Q(q, G, H, z, m);
|
|
13522
13522
|
if (Array.isArray(K)) {
|
|
13523
13523
|
var ee = _slicedToArray$b(K, 2);
|
|
13524
|
-
U = ee[0],
|
|
13524
|
+
U = ee[0], Z = ee[1];
|
|
13525
13525
|
} else
|
|
13526
13526
|
U = K;
|
|
13527
13527
|
}
|
|
@@ -13531,9 +13531,9 @@ var DefaultTooltipContent = function(t) {
|
|
|
13531
13531
|
className: "recharts-tooltip-item",
|
|
13532
13532
|
key: "tooltip-item-".concat(z),
|
|
13533
13533
|
style: W
|
|
13534
|
-
}, isNumOrStr(
|
|
13534
|
+
}, isNumOrStr(Z) ? /* @__PURE__ */ React__default.createElement("span", {
|
|
13535
13535
|
className: "recharts-tooltip-item-name"
|
|
13536
|
-
},
|
|
13536
|
+
}, Z) : null, isNumOrStr(Z) ? /* @__PURE__ */ React__default.createElement("span", {
|
|
13537
13537
|
className: "recharts-tooltip-item-separator"
|
|
13538
13538
|
}, i) : null, /* @__PURE__ */ React__default.createElement("span", {
|
|
13539
13539
|
className: "recharts-tooltip-item-value"
|
|
@@ -14263,24 +14263,24 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(e, t) {
|
|
|
14263
14263
|
containerHeight: o.height
|
|
14264
14264
|
}), D = _slicedToArray$a(N, 2), j = D[0], B = D[1], L = useCallback(function(V, H) {
|
|
14265
14265
|
B(function(z) {
|
|
14266
|
-
var W = Math.round(V),
|
|
14267
|
-
return z.containerWidth === W && z.containerHeight ===
|
|
14266
|
+
var W = Math.round(V), Q = Math.round(H);
|
|
14267
|
+
return z.containerWidth === W && z.containerHeight === Q ? z : {
|
|
14268
14268
|
containerWidth: W,
|
|
14269
|
-
containerHeight:
|
|
14269
|
+
containerHeight: Q
|
|
14270
14270
|
};
|
|
14271
14271
|
});
|
|
14272
14272
|
}, []);
|
|
14273
14273
|
useEffect(function() {
|
|
14274
14274
|
var V = function(G) {
|
|
14275
|
-
var U,
|
|
14275
|
+
var U, Z = G[0].contentRect, K = Z.width, ee = Z.height;
|
|
14276
14276
|
L(K, ee), (U = O.current) === null || U === void 0 || U.call(O, K, ee);
|
|
14277
14277
|
};
|
|
14278
14278
|
E > 0 && (V = throttle(V, E, {
|
|
14279
14279
|
trailing: !0,
|
|
14280
14280
|
leading: !1
|
|
14281
14281
|
}));
|
|
14282
|
-
var H = new ResizeObserver(V), z = T.current.getBoundingClientRect(), W = z.width,
|
|
14283
|
-
return L(W,
|
|
14282
|
+
var H = new ResizeObserver(V), z = T.current.getBoundingClientRect(), W = z.width, Q = z.height;
|
|
14283
|
+
return L(W, Q), H.observe(T.current), function() {
|
|
14284
14284
|
H.disconnect();
|
|
14285
14285
|
};
|
|
14286
14286
|
}, [L, E]);
|
|
@@ -14295,12 +14295,12 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(e, t) {
|
|
|
14295
14295
|
please check the style of container, or the props width(%s) and height(%s),
|
|
14296
14296
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
14297
14297
|
height and width.`, z, W, u, f, m, g, n);
|
|
14298
|
-
var
|
|
14298
|
+
var Q = !Array.isArray(_) && getDisplayName(_.type).endsWith("Chart");
|
|
14299
14299
|
return React__default.Children.map(_, function(q) {
|
|
14300
14300
|
return /* @__PURE__ */ React__default.isValidElement(q) ? /* @__PURE__ */ cloneElement(q, _objectSpread$t({
|
|
14301
14301
|
width: z,
|
|
14302
14302
|
height: W
|
|
14303
|
-
},
|
|
14303
|
+
}, Q ? {
|
|
14304
14304
|
style: _objectSpread$t({
|
|
14305
14305
|
height: "100%",
|
|
14306
14306
|
width: "100%",
|
|
@@ -14694,32 +14694,32 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
14694
14694
|
}, calculateWordsByLines = function(t, n, i, o, l) {
|
|
14695
14695
|
var u = t.maxLines, d = t.children, f = t.style, p = t.breakAll, m = isNumber(u), g = d, b = function() {
|
|
14696
14696
|
var z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
14697
|
-
return z.reduce(function(W,
|
|
14698
|
-
var q =
|
|
14697
|
+
return z.reduce(function(W, Q) {
|
|
14698
|
+
var q = Q.word, G = Q.width, U = W[W.length - 1];
|
|
14699
14699
|
if (U && (o == null || l || U.width + G + i < Number(o)))
|
|
14700
14700
|
U.words.push(q), U.width += G + i;
|
|
14701
14701
|
else {
|
|
14702
|
-
var
|
|
14702
|
+
var Z = {
|
|
14703
14703
|
words: [q],
|
|
14704
14704
|
width: G
|
|
14705
14705
|
};
|
|
14706
|
-
W.push(
|
|
14706
|
+
W.push(Z);
|
|
14707
14707
|
}
|
|
14708
14708
|
return W;
|
|
14709
14709
|
}, []);
|
|
14710
14710
|
}, _ = b(n), R = function(z) {
|
|
14711
|
-
return z.reduce(function(W,
|
|
14712
|
-
return W.width >
|
|
14711
|
+
return z.reduce(function(W, Q) {
|
|
14712
|
+
return W.width > Q.width ? W : Q;
|
|
14713
14713
|
});
|
|
14714
14714
|
};
|
|
14715
14715
|
if (!m)
|
|
14716
14716
|
return _;
|
|
14717
14717
|
for (var E = "…", S = function(z) {
|
|
14718
|
-
var W = g.slice(0, z),
|
|
14718
|
+
var W = g.slice(0, z), Q = calculateWordWidths({
|
|
14719
14719
|
breakAll: p,
|
|
14720
14720
|
style: f,
|
|
14721
14721
|
children: W + E
|
|
14722
|
-
}).wordsWithComputedWidth, q = b(
|
|
14722
|
+
}).wordsWithComputedWidth, q = b(Q), G = q.length > u || R(q).width > Number(o);
|
|
14723
14723
|
return [G, q];
|
|
14724
14724
|
}, C = 0, A = g.length - 1, I = 0, M; C <= A && I <= g.length - 1; ) {
|
|
14725
14725
|
var T = Math.floor((C + A) / 2), O = T - 1, N = S(O), D = _slicedToArray$8(N, 2), j = D[0], B = D[1], L = S(T), F = _slicedToArray$8(L, 1), V = F[0];
|
|
@@ -14792,15 +14792,15 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
14792
14792
|
className: clsx("recharts-text", N),
|
|
14793
14793
|
textAnchor: _,
|
|
14794
14794
|
fill: C.includes("url") ? DEFAULT_FILL : C
|
|
14795
|
-
}), I.map(function(W,
|
|
14795
|
+
}), I.map(function(W, Q) {
|
|
14796
14796
|
var q = W.words.join(D ? "" : " ");
|
|
14797
14797
|
return (
|
|
14798
14798
|
// duplicate words will cause duplicate keys
|
|
14799
14799
|
// eslint-disable-next-line react/no-array-index-key
|
|
14800
14800
|
/* @__PURE__ */ React__default.createElement("tspan", {
|
|
14801
14801
|
x: B,
|
|
14802
|
-
dy:
|
|
14803
|
-
key: "".concat(q, "-").concat(
|
|
14802
|
+
dy: Q === 0 ? F : d,
|
|
14803
|
+
key: "".concat(q, "-").concat(Q)
|
|
14804
14804
|
}, q)
|
|
14805
14805
|
);
|
|
14806
14806
|
}));
|
|
@@ -15668,8 +15668,8 @@ function formatLocale$1(e) {
|
|
|
15668
15668
|
V = D(L) + V, L = "";
|
|
15669
15669
|
else {
|
|
15670
15670
|
L = +L;
|
|
15671
|
-
var
|
|
15672
|
-
if (L = isNaN(L) ? f : D(Math.abs(L), I), M && (L = formatTrim(L)),
|
|
15671
|
+
var Q = L < 0 || 1 / L < 0;
|
|
15672
|
+
if (L = isNaN(L) ? f : D(Math.abs(L), I), M && (L = formatTrim(L)), Q && +L == 0 && R !== "+" && (Q = !1), F = (Q ? R === "(" ? R : d : R === "-" || R === "(" ? "" : R) + F, V = (T === "s" ? prefixes[8 + prefixExponent / 3] : "") + V + (Q && R === "(" ? ")" : ""), j) {
|
|
15673
15673
|
for (H = -1, z = L.length; ++H < z; )
|
|
15674
15674
|
if (W = L.charCodeAt(H), 48 > W || W > 57) {
|
|
15675
15675
|
V = (W === 46 ? o + L.slice(H + 1) : L.slice(H)) + V, L = L.slice(0, H);
|
|
@@ -16238,7 +16238,7 @@ function newDate(e, t, n) {
|
|
|
16238
16238
|
}
|
|
16239
16239
|
function formatLocale(e) {
|
|
16240
16240
|
var t = e.dateTime, n = e.date, i = e.time, o = e.periods, l = e.days, u = e.shortDays, d = e.months, f = e.shortMonths, p = formatRe(o), m = formatLookup(o), g = formatRe(l), b = formatLookup(l), _ = formatRe(u), R = formatLookup(u), E = formatRe(d), S = formatLookup(d), C = formatRe(f), A = formatLookup(f), I = {
|
|
16241
|
-
a:
|
|
16241
|
+
a: Q,
|
|
16242
16242
|
A: q,
|
|
16243
16243
|
b: G,
|
|
16244
16244
|
B: U,
|
|
@@ -16254,7 +16254,7 @@ function formatLocale(e) {
|
|
|
16254
16254
|
L: formatMilliseconds,
|
|
16255
16255
|
m: formatMonthNumber,
|
|
16256
16256
|
M: formatMinutes,
|
|
16257
|
-
p:
|
|
16257
|
+
p: Z,
|
|
16258
16258
|
q: K,
|
|
16259
16259
|
Q: formatUnixTimestamp,
|
|
16260
16260
|
s: formatUnixTimestampSeconds,
|
|
@@ -16273,8 +16273,8 @@ function formatLocale(e) {
|
|
|
16273
16273
|
}, M = {
|
|
16274
16274
|
a: ee,
|
|
16275
16275
|
A: te,
|
|
16276
|
-
b:
|
|
16277
|
-
B:
|
|
16276
|
+
b: oe,
|
|
16277
|
+
B: ce,
|
|
16278
16278
|
c: null,
|
|
16279
16279
|
d: formatUTCDayOfMonth,
|
|
16280
16280
|
e: formatUTCDayOfMonth,
|
|
@@ -16288,7 +16288,7 @@ function formatLocale(e) {
|
|
|
16288
16288
|
m: formatUTCMonthNumber,
|
|
16289
16289
|
M: formatUTCMinutes,
|
|
16290
16290
|
p: ae,
|
|
16291
|
-
q:
|
|
16291
|
+
q: le,
|
|
16292
16292
|
Q: formatUnixTimestamp,
|
|
16293
16293
|
s: formatUnixTimestampSeconds,
|
|
16294
16294
|
S: formatUTCSeconds,
|
|
@@ -16338,126 +16338,126 @@ function formatLocale(e) {
|
|
|
16338
16338
|
"%": parseLiteralPercent
|
|
16339
16339
|
};
|
|
16340
16340
|
I.x = O(n, I), I.X = O(i, I), I.c = O(t, I), M.x = O(n, M), M.X = O(i, M), M.c = O(t, M);
|
|
16341
|
-
function O(
|
|
16342
|
-
return function(
|
|
16343
|
-
var
|
|
16344
|
-
for (
|
|
16345
|
-
|
|
16346
|
-
return
|
|
16341
|
+
function O(se, ie) {
|
|
16342
|
+
return function(ue) {
|
|
16343
|
+
var J = [], fe = -1, ne = 0, de = se.length, pe, me, ye;
|
|
16344
|
+
for (ue instanceof Date || (ue = /* @__PURE__ */ new Date(+ue)); ++fe < de; )
|
|
16345
|
+
se.charCodeAt(fe) === 37 && (J.push(se.slice(ne, fe)), (me = pads[pe = se.charAt(++fe)]) != null ? pe = se.charAt(++fe) : me = pe === "e" ? " " : "0", (ye = ie[pe]) && (pe = ye(ue, me)), J.push(pe), ne = fe + 1);
|
|
16346
|
+
return J.push(se.slice(ne, fe)), J.join("");
|
|
16347
16347
|
};
|
|
16348
16348
|
}
|
|
16349
|
-
function N(
|
|
16350
|
-
return function(
|
|
16351
|
-
var
|
|
16352
|
-
if (fe !=
|
|
16353
|
-
if ("Q" in
|
|
16354
|
-
if ("s" in
|
|
16355
|
-
if (
|
|
16356
|
-
if (
|
|
16357
|
-
"w" in
|
|
16358
|
-
} else ("W" in
|
|
16359
|
-
return "Z" in
|
|
16349
|
+
function N(se, ie) {
|
|
16350
|
+
return function(ue) {
|
|
16351
|
+
var J = newDate(1900, void 0, 1), fe = D(J, se, ue += "", 0), ne, de;
|
|
16352
|
+
if (fe != ue.length) return null;
|
|
16353
|
+
if ("Q" in J) return new Date(J.Q);
|
|
16354
|
+
if ("s" in J) return new Date(J.s * 1e3 + ("L" in J ? J.L : 0));
|
|
16355
|
+
if (ie && !("Z" in J) && (J.Z = 0), "p" in J && (J.H = J.H % 12 + J.p * 12), J.m === void 0 && (J.m = "q" in J ? J.q : 0), "V" in J) {
|
|
16356
|
+
if (J.V < 1 || J.V > 53) return null;
|
|
16357
|
+
"w" in J || (J.w = 1), "Z" in J ? (ne = utcDate(newDate(J.y, 0, 1)), de = ne.getUTCDay(), ne = de > 4 || de === 0 ? utcMonday.ceil(ne) : utcMonday(ne), ne = utcDay.offset(ne, (J.V - 1) * 7), J.y = ne.getUTCFullYear(), J.m = ne.getUTCMonth(), J.d = ne.getUTCDate() + (J.w + 6) % 7) : (ne = localDate(newDate(J.y, 0, 1)), de = ne.getDay(), ne = de > 4 || de === 0 ? timeMonday.ceil(ne) : timeMonday(ne), ne = timeDay.offset(ne, (J.V - 1) * 7), J.y = ne.getFullYear(), J.m = ne.getMonth(), J.d = ne.getDate() + (J.w + 6) % 7);
|
|
16358
|
+
} else ("W" in J || "U" in J) && ("w" in J || (J.w = "u" in J ? J.u % 7 : "W" in J ? 1 : 0), de = "Z" in J ? utcDate(newDate(J.y, 0, 1)).getUTCDay() : localDate(newDate(J.y, 0, 1)).getDay(), J.m = 0, J.d = "W" in J ? (J.w + 6) % 7 + J.W * 7 - (de + 5) % 7 : J.w + J.U * 7 - (de + 6) % 7);
|
|
16359
|
+
return "Z" in J ? (J.H += J.Z / 100 | 0, J.M += J.Z % 100, utcDate(J)) : localDate(J);
|
|
16360
16360
|
};
|
|
16361
16361
|
}
|
|
16362
|
-
function D(
|
|
16363
|
-
for (var fe = 0, ne =
|
|
16364
|
-
if (
|
|
16365
|
-
if (pe =
|
|
16366
|
-
if (pe =
|
|
16367
|
-
} else if (pe !=
|
|
16362
|
+
function D(se, ie, ue, J) {
|
|
16363
|
+
for (var fe = 0, ne = ie.length, de = ue.length, pe, me; fe < ne; ) {
|
|
16364
|
+
if (J >= de) return -1;
|
|
16365
|
+
if (pe = ie.charCodeAt(fe++), pe === 37) {
|
|
16366
|
+
if (pe = ie.charAt(fe++), me = T[pe in pads ? ie.charAt(fe++) : pe], !me || (J = me(se, ue, J)) < 0) return -1;
|
|
16367
|
+
} else if (pe != ue.charCodeAt(J++))
|
|
16368
16368
|
return -1;
|
|
16369
16369
|
}
|
|
16370
|
-
return
|
|
16370
|
+
return J;
|
|
16371
16371
|
}
|
|
16372
|
-
function j(
|
|
16373
|
-
var
|
|
16374
|
-
return
|
|
16372
|
+
function j(se, ie, ue) {
|
|
16373
|
+
var J = p.exec(ie.slice(ue));
|
|
16374
|
+
return J ? (se.p = m.get(J[0].toLowerCase()), ue + J[0].length) : -1;
|
|
16375
16375
|
}
|
|
16376
|
-
function B(
|
|
16377
|
-
var
|
|
16378
|
-
return
|
|
16376
|
+
function B(se, ie, ue) {
|
|
16377
|
+
var J = _.exec(ie.slice(ue));
|
|
16378
|
+
return J ? (se.w = R.get(J[0].toLowerCase()), ue + J[0].length) : -1;
|
|
16379
16379
|
}
|
|
16380
|
-
function L(
|
|
16381
|
-
var
|
|
16382
|
-
return
|
|
16380
|
+
function L(se, ie, ue) {
|
|
16381
|
+
var J = g.exec(ie.slice(ue));
|
|
16382
|
+
return J ? (se.w = b.get(J[0].toLowerCase()), ue + J[0].length) : -1;
|
|
16383
16383
|
}
|
|
16384
|
-
function F(
|
|
16385
|
-
var
|
|
16386
|
-
return
|
|
16384
|
+
function F(se, ie, ue) {
|
|
16385
|
+
var J = C.exec(ie.slice(ue));
|
|
16386
|
+
return J ? (se.m = A.get(J[0].toLowerCase()), ue + J[0].length) : -1;
|
|
16387
16387
|
}
|
|
16388
|
-
function V(
|
|
16389
|
-
var
|
|
16390
|
-
return
|
|
16388
|
+
function V(se, ie, ue) {
|
|
16389
|
+
var J = E.exec(ie.slice(ue));
|
|
16390
|
+
return J ? (se.m = S.get(J[0].toLowerCase()), ue + J[0].length) : -1;
|
|
16391
16391
|
}
|
|
16392
|
-
function H(
|
|
16393
|
-
return D(
|
|
16392
|
+
function H(se, ie, ue) {
|
|
16393
|
+
return D(se, t, ie, ue);
|
|
16394
16394
|
}
|
|
16395
|
-
function z(
|
|
16396
|
-
return D(
|
|
16395
|
+
function z(se, ie, ue) {
|
|
16396
|
+
return D(se, n, ie, ue);
|
|
16397
16397
|
}
|
|
16398
|
-
function W(
|
|
16399
|
-
return D(
|
|
16398
|
+
function W(se, ie, ue) {
|
|
16399
|
+
return D(se, i, ie, ue);
|
|
16400
16400
|
}
|
|
16401
|
-
function
|
|
16402
|
-
return u[
|
|
16401
|
+
function Q(se) {
|
|
16402
|
+
return u[se.getDay()];
|
|
16403
16403
|
}
|
|
16404
|
-
function q(
|
|
16405
|
-
return l[
|
|
16404
|
+
function q(se) {
|
|
16405
|
+
return l[se.getDay()];
|
|
16406
16406
|
}
|
|
16407
|
-
function G(
|
|
16408
|
-
return f[
|
|
16407
|
+
function G(se) {
|
|
16408
|
+
return f[se.getMonth()];
|
|
16409
16409
|
}
|
|
16410
|
-
function U(
|
|
16411
|
-
return d[
|
|
16410
|
+
function U(se) {
|
|
16411
|
+
return d[se.getMonth()];
|
|
16412
16412
|
}
|
|
16413
|
-
function
|
|
16414
|
-
return o[+(
|
|
16413
|
+
function Z(se) {
|
|
16414
|
+
return o[+(se.getHours() >= 12)];
|
|
16415
16415
|
}
|
|
16416
|
-
function K(
|
|
16417
|
-
return 1 + ~~(
|
|
16416
|
+
function K(se) {
|
|
16417
|
+
return 1 + ~~(se.getMonth() / 3);
|
|
16418
16418
|
}
|
|
16419
|
-
function ee(
|
|
16420
|
-
return u[
|
|
16419
|
+
function ee(se) {
|
|
16420
|
+
return u[se.getUTCDay()];
|
|
16421
16421
|
}
|
|
16422
|
-
function te(
|
|
16423
|
-
return l[
|
|
16422
|
+
function te(se) {
|
|
16423
|
+
return l[se.getUTCDay()];
|
|
16424
16424
|
}
|
|
16425
|
-
function
|
|
16426
|
-
return f[
|
|
16425
|
+
function oe(se) {
|
|
16426
|
+
return f[se.getUTCMonth()];
|
|
16427
16427
|
}
|
|
16428
|
-
function
|
|
16429
|
-
return d[
|
|
16428
|
+
function ce(se) {
|
|
16429
|
+
return d[se.getUTCMonth()];
|
|
16430
16430
|
}
|
|
16431
|
-
function ae(
|
|
16432
|
-
return o[+(
|
|
16431
|
+
function ae(se) {
|
|
16432
|
+
return o[+(se.getUTCHours() >= 12)];
|
|
16433
16433
|
}
|
|
16434
|
-
function se
|
|
16435
|
-
return 1 + ~~(
|
|
16434
|
+
function le(se) {
|
|
16435
|
+
return 1 + ~~(se.getUTCMonth() / 3);
|
|
16436
16436
|
}
|
|
16437
16437
|
return {
|
|
16438
|
-
format: function(
|
|
16439
|
-
var
|
|
16440
|
-
return
|
|
16441
|
-
return
|
|
16442
|
-
},
|
|
16438
|
+
format: function(se) {
|
|
16439
|
+
var ie = O(se += "", I);
|
|
16440
|
+
return ie.toString = function() {
|
|
16441
|
+
return se;
|
|
16442
|
+
}, ie;
|
|
16443
16443
|
},
|
|
16444
|
-
parse: function(
|
|
16445
|
-
var
|
|
16446
|
-
return
|
|
16447
|
-
return
|
|
16448
|
-
},
|
|
16444
|
+
parse: function(se) {
|
|
16445
|
+
var ie = N(se += "", !1);
|
|
16446
|
+
return ie.toString = function() {
|
|
16447
|
+
return se;
|
|
16448
|
+
}, ie;
|
|
16449
16449
|
},
|
|
16450
|
-
utcFormat: function(
|
|
16451
|
-
var
|
|
16452
|
-
return
|
|
16453
|
-
return
|
|
16454
|
-
},
|
|
16450
|
+
utcFormat: function(se) {
|
|
16451
|
+
var ie = O(se += "", M);
|
|
16452
|
+
return ie.toString = function() {
|
|
16453
|
+
return se;
|
|
16454
|
+
}, ie;
|
|
16455
16455
|
},
|
|
16456
|
-
utcParse: function(
|
|
16457
|
-
var
|
|
16458
|
-
return
|
|
16459
|
-
return
|
|
16460
|
-
},
|
|
16456
|
+
utcParse: function(se) {
|
|
16457
|
+
var ie = N(se += "", !0);
|
|
16458
|
+
return ie.toString = function() {
|
|
16459
|
+
return se;
|
|
16460
|
+
}, ie;
|
|
16461
16461
|
}
|
|
16462
16462
|
};
|
|
16463
16463
|
}
|
|
@@ -17876,9 +17876,9 @@ var ErrorBar = /* @__PURE__ */ function(e) {
|
|
|
17876
17876
|
y2: F
|
|
17877
17877
|
});
|
|
17878
17878
|
} else if (l === "horizontal") {
|
|
17879
|
-
var z = g.scale, W = C + o,
|
|
17879
|
+
var z = g.scale, W = C + o, Q = W - u, q = W + u, G = z(I - O), U = z(I + N);
|
|
17880
17880
|
T.push({
|
|
17881
|
-
x1:
|
|
17881
|
+
x1: Q,
|
|
17882
17882
|
y1: U,
|
|
17883
17883
|
x2: q,
|
|
17884
17884
|
y2: U
|
|
@@ -17888,7 +17888,7 @@ var ErrorBar = /* @__PURE__ */ function(e) {
|
|
|
17888
17888
|
x2: W,
|
|
17889
17889
|
y2: U
|
|
17890
17890
|
}), T.push({
|
|
17891
|
-
x1:
|
|
17891
|
+
x1: Q,
|
|
17892
17892
|
y1: G,
|
|
17893
17893
|
x2: q,
|
|
17894
17894
|
y2: G
|
|
@@ -17896,12 +17896,12 @@ var ErrorBar = /* @__PURE__ */ function(e) {
|
|
|
17896
17896
|
}
|
|
17897
17897
|
return /* @__PURE__ */ React__default.createElement(Layer, _extends$k({
|
|
17898
17898
|
className: "recharts-errorBar",
|
|
17899
|
-
key: "bar-".concat(T.map(function(
|
|
17900
|
-
return "".concat(
|
|
17899
|
+
key: "bar-".concat(T.map(function(Z) {
|
|
17900
|
+
return "".concat(Z.x1, "-").concat(Z.x2, "-").concat(Z.y1, "-").concat(Z.y2);
|
|
17901
17901
|
}))
|
|
17902
|
-
}, _), T.map(function(
|
|
17903
|
-
return /* @__PURE__ */ React__default.createElement("line", _extends$k({},
|
|
17904
|
-
key: "line-".concat(
|
|
17902
|
+
}, _), T.map(function(Z) {
|
|
17903
|
+
return /* @__PURE__ */ React__default.createElement("line", _extends$k({}, Z, {
|
|
17904
|
+
key: "line-".concat(Z.x1, "-").concat(Z.x2, "-").concat(Z.y1, "-").concat(Z.y2)
|
|
17905
17905
|
}));
|
|
17906
17906
|
}));
|
|
17907
17907
|
});
|
|
@@ -19622,16 +19622,16 @@ var hasRequiredReactIs_development;
|
|
|
19622
19622
|
function requireReactIs_development() {
|
|
19623
19623
|
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process.env.NODE_ENV !== "production" && function() {
|
|
19624
19624
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, _ = e ? Symbol.for("react.memo") : 60115, R = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
|
|
19625
|
-
function I(
|
|
19626
|
-
return typeof
|
|
19627
|
-
|
|
19625
|
+
function I(J) {
|
|
19626
|
+
return typeof J == "string" || typeof J == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
19627
|
+
J === i || J === p || J === l || J === o || J === g || J === b || typeof J == "object" && J !== null && (J.$$typeof === R || J.$$typeof === _ || J.$$typeof === u || J.$$typeof === d || J.$$typeof === m || J.$$typeof === S || J.$$typeof === C || J.$$typeof === A || J.$$typeof === E);
|
|
19628
19628
|
}
|
|
19629
|
-
function M(
|
|
19630
|
-
if (typeof
|
|
19631
|
-
var fe =
|
|
19629
|
+
function M(J) {
|
|
19630
|
+
if (typeof J == "object" && J !== null) {
|
|
19631
|
+
var fe = J.$$typeof;
|
|
19632
19632
|
switch (fe) {
|
|
19633
19633
|
case t:
|
|
19634
|
-
var ne =
|
|
19634
|
+
var ne = J.type;
|
|
19635
19635
|
switch (ne) {
|
|
19636
19636
|
case f:
|
|
19637
19637
|
case p:
|
|
@@ -19658,47 +19658,47 @@ function requireReactIs_development() {
|
|
|
19658
19658
|
}
|
|
19659
19659
|
}
|
|
19660
19660
|
}
|
|
19661
|
-
var T = f, O = p, N = d, D = u, j = t, B = m, L = i, F = R, V = _, H = n, z = l, W = o,
|
|
19662
|
-
function G(
|
|
19663
|
-
return q || (q = !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.")), U(
|
|
19661
|
+
var T = f, O = p, N = d, D = u, j = t, B = m, L = i, F = R, V = _, H = n, z = l, W = o, Q = g, q = !1;
|
|
19662
|
+
function G(J) {
|
|
19663
|
+
return q || (q = !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.")), U(J) || M(J) === f;
|
|
19664
19664
|
}
|
|
19665
|
-
function U(
|
|
19666
|
-
return M(
|
|
19665
|
+
function U(J) {
|
|
19666
|
+
return M(J) === p;
|
|
19667
19667
|
}
|
|
19668
|
-
function J
|
|
19669
|
-
return M(
|
|
19668
|
+
function Z(J) {
|
|
19669
|
+
return M(J) === d;
|
|
19670
19670
|
}
|
|
19671
|
-
function K(
|
|
19672
|
-
return M(
|
|
19671
|
+
function K(J) {
|
|
19672
|
+
return M(J) === u;
|
|
19673
19673
|
}
|
|
19674
|
-
function ee(
|
|
19675
|
-
return typeof
|
|
19674
|
+
function ee(J) {
|
|
19675
|
+
return typeof J == "object" && J !== null && J.$$typeof === t;
|
|
19676
19676
|
}
|
|
19677
|
-
function te(
|
|
19678
|
-
return M(
|
|
19677
|
+
function te(J) {
|
|
19678
|
+
return M(J) === m;
|
|
19679
19679
|
}
|
|
19680
|
-
function
|
|
19681
|
-
return M(
|
|
19680
|
+
function oe(J) {
|
|
19681
|
+
return M(J) === i;
|
|
19682
19682
|
}
|
|
19683
|
-
function
|
|
19684
|
-
return M(
|
|
19683
|
+
function ce(J) {
|
|
19684
|
+
return M(J) === R;
|
|
19685
19685
|
}
|
|
19686
|
-
function ae(
|
|
19687
|
-
return M(
|
|
19686
|
+
function ae(J) {
|
|
19687
|
+
return M(J) === _;
|
|
19688
19688
|
}
|
|
19689
|
-
function
|
|
19690
|
-
return M(
|
|
19689
|
+
function le(J) {
|
|
19690
|
+
return M(J) === n;
|
|
19691
19691
|
}
|
|
19692
|
-
function
|
|
19693
|
-
return M(
|
|
19692
|
+
function se(J) {
|
|
19693
|
+
return M(J) === l;
|
|
19694
19694
|
}
|
|
19695
|
-
function
|
|
19696
|
-
return M(
|
|
19695
|
+
function ie(J) {
|
|
19696
|
+
return M(J) === o;
|
|
19697
19697
|
}
|
|
19698
|
-
function
|
|
19699
|
-
return M(
|
|
19698
|
+
function ue(J) {
|
|
19699
|
+
return M(J) === g;
|
|
19700
19700
|
}
|
|
19701
|
-
reactIs_development.AsyncMode = T, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = N, reactIs_development.ContextProvider = D, reactIs_development.Element = j, reactIs_development.ForwardRef = B, reactIs_development.Fragment = L, reactIs_development.Lazy = F, reactIs_development.Memo = V, reactIs_development.Portal = H, reactIs_development.Profiler = z, reactIs_development.StrictMode = W, reactIs_development.Suspense =
|
|
19701
|
+
reactIs_development.AsyncMode = T, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = N, reactIs_development.ContextProvider = D, reactIs_development.Element = j, reactIs_development.ForwardRef = B, reactIs_development.Fragment = L, reactIs_development.Lazy = F, reactIs_development.Memo = V, reactIs_development.Portal = H, reactIs_development.Profiler = z, reactIs_development.StrictMode = W, reactIs_development.Suspense = Q, reactIs_development.isAsyncMode = G, reactIs_development.isConcurrentMode = U, reactIs_development.isContextConsumer = Z, reactIs_development.isContextProvider = K, reactIs_development.isElement = ee, reactIs_development.isForwardRef = te, reactIs_development.isFragment = oe, reactIs_development.isLazy = ce, reactIs_development.isMemo = ae, reactIs_development.isPortal = le, reactIs_development.isProfiler = se, reactIs_development.isStrictMode = ie, reactIs_development.isSuspense = ue, reactIs_development.isValidElementType = I, reactIs_development.typeOf = M;
|
|
19702
19702
|
}()), reactIs_development;
|
|
19703
19703
|
}
|
|
19704
19704
|
var hasRequiredReactIs;
|
|
@@ -19836,9 +19836,9 @@ function requireFactoryWithTypeCheckers() {
|
|
|
19836
19836
|
return factoryWithTypeCheckers = function(d, f) {
|
|
19837
19837
|
var p = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
19838
19838
|
function g(U) {
|
|
19839
|
-
var
|
|
19840
|
-
if (typeof
|
|
19841
|
-
return
|
|
19839
|
+
var Z = U && (p && U[p] || U[m]);
|
|
19840
|
+
if (typeof Z == "function")
|
|
19841
|
+
return Z;
|
|
19842
19842
|
}
|
|
19843
19843
|
var b = "<<anonymous>>", _ = {
|
|
19844
19844
|
array: C("array"),
|
|
@@ -19861,209 +19861,209 @@ function requireFactoryWithTypeCheckers() {
|
|
|
19861
19861
|
shape: F,
|
|
19862
19862
|
exact: V
|
|
19863
19863
|
};
|
|
19864
|
-
function R(U,
|
|
19865
|
-
return U ===
|
|
19864
|
+
function R(U, Z) {
|
|
19865
|
+
return U === Z ? U !== 0 || 1 / U === 1 / Z : U !== U && Z !== Z;
|
|
19866
19866
|
}
|
|
19867
|
-
function E(U,
|
|
19868
|
-
this.message = U, this.data =
|
|
19867
|
+
function E(U, Z) {
|
|
19868
|
+
this.message = U, this.data = Z && typeof Z == "object" ? Z : {}, this.stack = "";
|
|
19869
19869
|
}
|
|
19870
19870
|
E.prototype = Error.prototype;
|
|
19871
19871
|
function S(U) {
|
|
19872
19872
|
if (process.env.NODE_ENV !== "production")
|
|
19873
|
-
var
|
|
19874
|
-
function ee(
|
|
19875
|
-
if (
|
|
19873
|
+
var Z = {}, K = 0;
|
|
19874
|
+
function ee(oe, ce, ae, le, se, ie, ue) {
|
|
19875
|
+
if (le = le || b, ie = ie || ae, ue !== n) {
|
|
19876
19876
|
if (f) {
|
|
19877
|
-
var
|
|
19877
|
+
var J = new Error(
|
|
19878
19878
|
"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"
|
|
19879
19879
|
);
|
|
19880
|
-
throw
|
|
19880
|
+
throw J.name = "Invariant Violation", J;
|
|
19881
19881
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
19882
|
-
var fe =
|
|
19883
|
-
!
|
|
19882
|
+
var fe = le + ":" + ae;
|
|
19883
|
+
!Z[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
19884
19884
|
K < 3 && (l(
|
|
19885
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
19886
|
-
),
|
|
19885
|
+
"You are manually calling a React.PropTypes validation function for the `" + ie + "` prop on `" + le + "`. 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."
|
|
19886
|
+
), Z[fe] = !0, K++);
|
|
19887
19887
|
}
|
|
19888
19888
|
}
|
|
19889
|
-
return
|
|
19889
|
+
return ce[ae] == null ? oe ? ce[ae] === null ? new E("The " + se + " `" + ie + "` is marked as required " + ("in `" + le + "`, but its value is `null`.")) : new E("The " + se + " `" + ie + "` is marked as required in " + ("`" + le + "`, but its value is `undefined`.")) : null : U(ce, ae, le, se, ie);
|
|
19890
19890
|
}
|
|
19891
19891
|
var te = ee.bind(null, !1);
|
|
19892
19892
|
return te.isRequired = ee.bind(null, !0), te;
|
|
19893
19893
|
}
|
|
19894
19894
|
function C(U) {
|
|
19895
|
-
function
|
|
19896
|
-
var
|
|
19897
|
-
if (
|
|
19898
|
-
var
|
|
19895
|
+
function Z(K, ee, te, oe, ce, ae) {
|
|
19896
|
+
var le = K[ee], se = W(le);
|
|
19897
|
+
if (se !== U) {
|
|
19898
|
+
var ie = Q(le);
|
|
19899
19899
|
return new E(
|
|
19900
|
-
"Invalid " +
|
|
19900
|
+
"Invalid " + oe + " `" + ce + "` of type " + ("`" + ie + "` supplied to `" + te + "`, expected ") + ("`" + U + "`."),
|
|
19901
19901
|
{ expectedType: U }
|
|
19902
19902
|
);
|
|
19903
19903
|
}
|
|
19904
19904
|
return null;
|
|
19905
19905
|
}
|
|
19906
|
-
return S(
|
|
19906
|
+
return S(Z);
|
|
19907
19907
|
}
|
|
19908
19908
|
function A() {
|
|
19909
19909
|
return S(u);
|
|
19910
19910
|
}
|
|
19911
19911
|
function I(U) {
|
|
19912
|
-
function
|
|
19912
|
+
function Z(K, ee, te, oe, ce) {
|
|
19913
19913
|
if (typeof U != "function")
|
|
19914
|
-
return new E("Property `" +
|
|
19914
|
+
return new E("Property `" + ce + "` of component `" + te + "` has invalid PropType notation inside arrayOf.");
|
|
19915
19915
|
var ae = K[ee];
|
|
19916
19916
|
if (!Array.isArray(ae)) {
|
|
19917
|
-
var
|
|
19918
|
-
return new E("Invalid " +
|
|
19917
|
+
var le = W(ae);
|
|
19918
|
+
return new E("Invalid " + oe + " `" + ce + "` of type " + ("`" + le + "` supplied to `" + te + "`, expected an array."));
|
|
19919
19919
|
}
|
|
19920
|
-
for (var
|
|
19921
|
-
var
|
|
19922
|
-
if (
|
|
19923
|
-
return
|
|
19920
|
+
for (var se = 0; se < ae.length; se++) {
|
|
19921
|
+
var ie = U(ae, se, te, oe, ce + "[" + se + "]", n);
|
|
19922
|
+
if (ie instanceof Error)
|
|
19923
|
+
return ie;
|
|
19924
19924
|
}
|
|
19925
19925
|
return null;
|
|
19926
19926
|
}
|
|
19927
|
-
return S(
|
|
19927
|
+
return S(Z);
|
|
19928
19928
|
}
|
|
19929
19929
|
function M() {
|
|
19930
|
-
function U(
|
|
19931
|
-
var
|
|
19932
|
-
if (!d(
|
|
19933
|
-
var ae = W(
|
|
19934
|
-
return new E("Invalid " + te + " `" +
|
|
19930
|
+
function U(Z, K, ee, te, oe) {
|
|
19931
|
+
var ce = Z[K];
|
|
19932
|
+
if (!d(ce)) {
|
|
19933
|
+
var ae = W(ce);
|
|
19934
|
+
return new E("Invalid " + te + " `" + oe + "` of type " + ("`" + ae + "` supplied to `" + ee + "`, expected a single ReactElement."));
|
|
19935
19935
|
}
|
|
19936
19936
|
return null;
|
|
19937
19937
|
}
|
|
19938
19938
|
return S(U);
|
|
19939
19939
|
}
|
|
19940
19940
|
function T() {
|
|
19941
|
-
function U(
|
|
19942
|
-
var
|
|
19943
|
-
if (!e.isValidElementType(
|
|
19944
|
-
var ae = W(
|
|
19945
|
-
return new E("Invalid " + te + " `" +
|
|
19941
|
+
function U(Z, K, ee, te, oe) {
|
|
19942
|
+
var ce = Z[K];
|
|
19943
|
+
if (!e.isValidElementType(ce)) {
|
|
19944
|
+
var ae = W(ce);
|
|
19945
|
+
return new E("Invalid " + te + " `" + oe + "` of type " + ("`" + ae + "` supplied to `" + ee + "`, expected a single ReactElement type."));
|
|
19946
19946
|
}
|
|
19947
19947
|
return null;
|
|
19948
19948
|
}
|
|
19949
19949
|
return S(U);
|
|
19950
19950
|
}
|
|
19951
19951
|
function O(U) {
|
|
19952
|
-
function
|
|
19952
|
+
function Z(K, ee, te, oe, ce) {
|
|
19953
19953
|
if (!(K[ee] instanceof U)) {
|
|
19954
|
-
var ae = U.name || b,
|
|
19955
|
-
return new E("Invalid " +
|
|
19954
|
+
var ae = U.name || b, le = G(K[ee]);
|
|
19955
|
+
return new E("Invalid " + oe + " `" + ce + "` of type " + ("`" + le + "` supplied to `" + te + "`, expected ") + ("instance of `" + ae + "`."));
|
|
19956
19956
|
}
|
|
19957
19957
|
return null;
|
|
19958
19958
|
}
|
|
19959
|
-
return S(
|
|
19959
|
+
return S(Z);
|
|
19960
19960
|
}
|
|
19961
19961
|
function N(U) {
|
|
19962
19962
|
if (!Array.isArray(U))
|
|
19963
19963
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? l(
|
|
19964
19964
|
"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])."
|
|
19965
19965
|
) : l("Invalid argument supplied to oneOf, expected an array.")), u;
|
|
19966
|
-
function
|
|
19967
|
-
for (var ae = K[ee],
|
|
19968
|
-
if (R(ae, U[
|
|
19966
|
+
function Z(K, ee, te, oe, ce) {
|
|
19967
|
+
for (var ae = K[ee], le = 0; le < U.length; le++)
|
|
19968
|
+
if (R(ae, U[le]))
|
|
19969
19969
|
return null;
|
|
19970
|
-
var
|
|
19971
|
-
var fe =
|
|
19972
|
-
return fe === "symbol" ? String(
|
|
19970
|
+
var se = JSON.stringify(U, function(ue, J) {
|
|
19971
|
+
var fe = Q(J);
|
|
19972
|
+
return fe === "symbol" ? String(J) : J;
|
|
19973
19973
|
});
|
|
19974
|
-
return new E("Invalid " +
|
|
19974
|
+
return new E("Invalid " + oe + " `" + ce + "` of value `" + String(ae) + "` " + ("supplied to `" + te + "`, expected one of " + se + "."));
|
|
19975
19975
|
}
|
|
19976
|
-
return S(
|
|
19976
|
+
return S(Z);
|
|
19977
19977
|
}
|
|
19978
19978
|
function D(U) {
|
|
19979
|
-
function
|
|
19979
|
+
function Z(K, ee, te, oe, ce) {
|
|
19980
19980
|
if (typeof U != "function")
|
|
19981
|
-
return new E("Property `" +
|
|
19982
|
-
var ae = K[ee],
|
|
19983
|
-
if (
|
|
19984
|
-
return new E("Invalid " +
|
|
19985
|
-
for (var
|
|
19986
|
-
if (i(ae,
|
|
19987
|
-
var
|
|
19988
|
-
if (
|
|
19989
|
-
return
|
|
19981
|
+
return new E("Property `" + ce + "` of component `" + te + "` has invalid PropType notation inside objectOf.");
|
|
19982
|
+
var ae = K[ee], le = W(ae);
|
|
19983
|
+
if (le !== "object")
|
|
19984
|
+
return new E("Invalid " + oe + " `" + ce + "` of type " + ("`" + le + "` supplied to `" + te + "`, expected an object."));
|
|
19985
|
+
for (var se in ae)
|
|
19986
|
+
if (i(ae, se)) {
|
|
19987
|
+
var ie = U(ae, se, te, oe, ce + "." + se, n);
|
|
19988
|
+
if (ie instanceof Error)
|
|
19989
|
+
return ie;
|
|
19990
19990
|
}
|
|
19991
19991
|
return null;
|
|
19992
19992
|
}
|
|
19993
|
-
return S(
|
|
19993
|
+
return S(Z);
|
|
19994
19994
|
}
|
|
19995
19995
|
function j(U) {
|
|
19996
19996
|
if (!Array.isArray(U))
|
|
19997
19997
|
return process.env.NODE_ENV !== "production" && l("Invalid argument supplied to oneOfType, expected an instance of array."), u;
|
|
19998
|
-
for (var
|
|
19999
|
-
var K = U[
|
|
19998
|
+
for (var Z = 0; Z < U.length; Z++) {
|
|
19999
|
+
var K = U[Z];
|
|
20000
20000
|
if (typeof K != "function")
|
|
20001
20001
|
return l(
|
|
20002
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + q(K) + " at index " +
|
|
20002
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + q(K) + " at index " + Z + "."
|
|
20003
20003
|
), u;
|
|
20004
20004
|
}
|
|
20005
|
-
function ee(te,
|
|
20006
|
-
for (var
|
|
20007
|
-
var
|
|
20008
|
-
if (
|
|
20005
|
+
function ee(te, oe, ce, ae, le) {
|
|
20006
|
+
for (var se = [], ie = 0; ie < U.length; ie++) {
|
|
20007
|
+
var ue = U[ie], J = ue(te, oe, ce, ae, le, n);
|
|
20008
|
+
if (J == null)
|
|
20009
20009
|
return null;
|
|
20010
|
-
|
|
20010
|
+
J.data && i(J.data, "expectedType") && se.push(J.data.expectedType);
|
|
20011
20011
|
}
|
|
20012
|
-
var fe =
|
|
20013
|
-
return new E("Invalid " + ae + " `" +
|
|
20012
|
+
var fe = se.length > 0 ? ", expected one of type [" + se.join(", ") + "]" : "";
|
|
20013
|
+
return new E("Invalid " + ae + " `" + le + "` supplied to " + ("`" + ce + "`" + fe + "."));
|
|
20014
20014
|
}
|
|
20015
20015
|
return S(ee);
|
|
20016
20016
|
}
|
|
20017
20017
|
function B() {
|
|
20018
|
-
function U(
|
|
20019
|
-
return H(
|
|
20018
|
+
function U(Z, K, ee, te, oe) {
|
|
20019
|
+
return H(Z[K]) ? null : new E("Invalid " + te + " `" + oe + "` supplied to " + ("`" + ee + "`, expected a ReactNode."));
|
|
20020
20020
|
}
|
|
20021
20021
|
return S(U);
|
|
20022
20022
|
}
|
|
20023
|
-
function L(U,
|
|
20023
|
+
function L(U, Z, K, ee, te) {
|
|
20024
20024
|
return new E(
|
|
20025
|
-
(U || "React class") + ": " +
|
|
20025
|
+
(U || "React class") + ": " + Z + " type `" + K + "." + ee + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + te + "`."
|
|
20026
20026
|
);
|
|
20027
20027
|
}
|
|
20028
20028
|
function F(U) {
|
|
20029
|
-
function
|
|
20030
|
-
var ae = K[ee],
|
|
20031
|
-
if (
|
|
20032
|
-
return new E("Invalid " +
|
|
20033
|
-
for (var
|
|
20034
|
-
var
|
|
20035
|
-
if (typeof
|
|
20036
|
-
return L(te,
|
|
20037
|
-
var
|
|
20038
|
-
if (
|
|
20039
|
-
return
|
|
20029
|
+
function Z(K, ee, te, oe, ce) {
|
|
20030
|
+
var ae = K[ee], le = W(ae);
|
|
20031
|
+
if (le !== "object")
|
|
20032
|
+
return new E("Invalid " + oe + " `" + ce + "` of type `" + le + "` " + ("supplied to `" + te + "`, expected `object`."));
|
|
20033
|
+
for (var se in U) {
|
|
20034
|
+
var ie = U[se];
|
|
20035
|
+
if (typeof ie != "function")
|
|
20036
|
+
return L(te, oe, ce, se, Q(ie));
|
|
20037
|
+
var ue = ie(ae, se, te, oe, ce + "." + se, n);
|
|
20038
|
+
if (ue)
|
|
20039
|
+
return ue;
|
|
20040
20040
|
}
|
|
20041
20041
|
return null;
|
|
20042
20042
|
}
|
|
20043
|
-
return S(
|
|
20043
|
+
return S(Z);
|
|
20044
20044
|
}
|
|
20045
20045
|
function V(U) {
|
|
20046
|
-
function
|
|
20047
|
-
var ae = K[ee],
|
|
20048
|
-
if (
|
|
20049
|
-
return new E("Invalid " +
|
|
20050
|
-
var
|
|
20051
|
-
for (var
|
|
20052
|
-
var
|
|
20053
|
-
if (i(U,
|
|
20054
|
-
return L(te,
|
|
20055
|
-
if (!
|
|
20046
|
+
function Z(K, ee, te, oe, ce) {
|
|
20047
|
+
var ae = K[ee], le = W(ae);
|
|
20048
|
+
if (le !== "object")
|
|
20049
|
+
return new E("Invalid " + oe + " `" + ce + "` of type `" + le + "` " + ("supplied to `" + te + "`, expected `object`."));
|
|
20050
|
+
var se = t({}, K[ee], U);
|
|
20051
|
+
for (var ie in se) {
|
|
20052
|
+
var ue = U[ie];
|
|
20053
|
+
if (i(U, ie) && typeof ue != "function")
|
|
20054
|
+
return L(te, oe, ce, ie, Q(ue));
|
|
20055
|
+
if (!ue)
|
|
20056
20056
|
return new E(
|
|
20057
|
-
"Invalid " +
|
|
20057
|
+
"Invalid " + oe + " `" + ce + "` key `" + ie + "` supplied to `" + te + "`.\nBad object: " + JSON.stringify(K[ee], null, " ") + `
|
|
20058
20058
|
Valid keys: ` + JSON.stringify(Object.keys(U), null, " ")
|
|
20059
20059
|
);
|
|
20060
|
-
var
|
|
20061
|
-
if (
|
|
20062
|
-
return
|
|
20060
|
+
var J = ue(ae, ie, te, oe, ce + "." + ie, n);
|
|
20061
|
+
if (J)
|
|
20062
|
+
return J;
|
|
20063
20063
|
}
|
|
20064
20064
|
return null;
|
|
20065
20065
|
}
|
|
20066
|
-
return S(
|
|
20066
|
+
return S(Z);
|
|
20067
20067
|
}
|
|
20068
20068
|
function H(U) {
|
|
20069
20069
|
switch (typeof U) {
|
|
@@ -20078,10 +20078,10 @@ Valid keys: ` + JSON.stringify(Object.keys(U), null, " ")
|
|
|
20078
20078
|
return U.every(H);
|
|
20079
20079
|
if (U === null || d(U))
|
|
20080
20080
|
return !0;
|
|
20081
|
-
var
|
|
20082
|
-
if (
|
|
20083
|
-
var K =
|
|
20084
|
-
if (
|
|
20081
|
+
var Z = g(U);
|
|
20082
|
+
if (Z) {
|
|
20083
|
+
var K = Z.call(U), ee;
|
|
20084
|
+
if (Z !== U.entries) {
|
|
20085
20085
|
for (; !(ee = K.next()).done; )
|
|
20086
20086
|
if (!H(ee.value))
|
|
20087
20087
|
return !1;
|
|
@@ -20098,37 +20098,37 @@ Valid keys: ` + JSON.stringify(Object.keys(U), null, " ")
|
|
|
20098
20098
|
return !1;
|
|
20099
20099
|
}
|
|
20100
20100
|
}
|
|
20101
|
-
function z(U,
|
|
20102
|
-
return U === "symbol" ? !0 :
|
|
20101
|
+
function z(U, Z) {
|
|
20102
|
+
return U === "symbol" ? !0 : Z ? Z["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && Z instanceof Symbol : !1;
|
|
20103
20103
|
}
|
|
20104
20104
|
function W(U) {
|
|
20105
|
-
var
|
|
20106
|
-
return Array.isArray(U) ? "array" : U instanceof RegExp ? "object" : z(
|
|
20105
|
+
var Z = typeof U;
|
|
20106
|
+
return Array.isArray(U) ? "array" : U instanceof RegExp ? "object" : z(Z, U) ? "symbol" : Z;
|
|
20107
20107
|
}
|
|
20108
|
-
function
|
|
20108
|
+
function Q(U) {
|
|
20109
20109
|
if (typeof U > "u" || U === null)
|
|
20110
20110
|
return "" + U;
|
|
20111
|
-
var
|
|
20112
|
-
if (
|
|
20111
|
+
var Z = W(U);
|
|
20112
|
+
if (Z === "object") {
|
|
20113
20113
|
if (U instanceof Date)
|
|
20114
20114
|
return "date";
|
|
20115
20115
|
if (U instanceof RegExp)
|
|
20116
20116
|
return "regexp";
|
|
20117
20117
|
}
|
|
20118
|
-
return
|
|
20118
|
+
return Z;
|
|
20119
20119
|
}
|
|
20120
20120
|
function q(U) {
|
|
20121
|
-
var
|
|
20122
|
-
switch (
|
|
20121
|
+
var Z = Q(U);
|
|
20122
|
+
switch (Z) {
|
|
20123
20123
|
case "array":
|
|
20124
20124
|
case "object":
|
|
20125
|
-
return "an " +
|
|
20125
|
+
return "an " + Z;
|
|
20126
20126
|
case "boolean":
|
|
20127
20127
|
case "date":
|
|
20128
20128
|
case "regexp":
|
|
20129
|
-
return "a " +
|
|
20129
|
+
return "a " + Z;
|
|
20130
20130
|
default:
|
|
20131
|
-
return
|
|
20131
|
+
return Z;
|
|
20132
20132
|
}
|
|
20133
20133
|
}
|
|
20134
20134
|
function G(U) {
|
|
@@ -23068,9 +23068,9 @@ _defineProperty$d(Bar, "getComposedData", function(e) {
|
|
|
23068
23068
|
}), N = findAllByType(A, Cell), D = g.map(function(j, B) {
|
|
23069
23069
|
var L, F, V, H, z, W;
|
|
23070
23070
|
p ? L = truncateByDomain(p[m + B], T) : (L = getValueByDataKey(j, C), Array.isArray(L) || (L = [O, L]));
|
|
23071
|
-
var
|
|
23071
|
+
var Q = minPointSizeCallback(I, _Bar.defaultProps.minPointSize)(L[1], B);
|
|
23072
23072
|
if (R === "horizontal") {
|
|
23073
|
-
var q, G = [u.scale(L[0]), u.scale(L[1])], U = G[0],
|
|
23073
|
+
var q, G = [u.scale(L[0]), u.scale(L[1])], U = G[0], Z = G[1];
|
|
23074
23074
|
F = getCateCoordinateOfBar({
|
|
23075
23075
|
axis: l,
|
|
23076
23076
|
ticks: d,
|
|
@@ -23078,33 +23078,33 @@ _defineProperty$d(Bar, "getComposedData", function(e) {
|
|
|
23078
23078
|
offset: _.offset,
|
|
23079
23079
|
entry: j,
|
|
23080
23080
|
index: B
|
|
23081
|
-
}), V = (q =
|
|
23082
|
-
var K = U -
|
|
23081
|
+
}), V = (q = Z ?? U) !== null && q !== void 0 ? q : void 0, H = _.size;
|
|
23082
|
+
var K = U - Z;
|
|
23083
23083
|
if (z = Number.isNaN(K) ? 0 : K, W = {
|
|
23084
23084
|
x: F,
|
|
23085
23085
|
y: u.y,
|
|
23086
23086
|
width: H,
|
|
23087
23087
|
height: u.height
|
|
23088
|
-
}, Math.abs(
|
|
23089
|
-
var ee = mathSign(z ||
|
|
23088
|
+
}, Math.abs(Q) > 0 && Math.abs(z) < Math.abs(Q)) {
|
|
23089
|
+
var ee = mathSign(z || Q) * (Math.abs(Q) - Math.abs(z));
|
|
23090
23090
|
V -= ee, z += ee;
|
|
23091
23091
|
}
|
|
23092
23092
|
} else {
|
|
23093
|
-
var te = [l.scale(L[0]), l.scale(L[1])],
|
|
23094
|
-
if (F =
|
|
23093
|
+
var te = [l.scale(L[0]), l.scale(L[1])], oe = te[0], ce = te[1];
|
|
23094
|
+
if (F = oe, V = getCateCoordinateOfBar({
|
|
23095
23095
|
axis: u,
|
|
23096
23096
|
ticks: f,
|
|
23097
23097
|
bandSize: o,
|
|
23098
23098
|
offset: _.offset,
|
|
23099
23099
|
entry: j,
|
|
23100
23100
|
index: B
|
|
23101
|
-
}), H =
|
|
23101
|
+
}), H = ce - oe, z = _.size, W = {
|
|
23102
23102
|
x: l.x,
|
|
23103
23103
|
y: V,
|
|
23104
23104
|
width: l.width,
|
|
23105
23105
|
height: z
|
|
23106
|
-
}, Math.abs(
|
|
23107
|
-
var ae = mathSign(H ||
|
|
23106
|
+
}, Math.abs(Q) > 0 && Math.abs(H) < Math.abs(Q)) {
|
|
23107
|
+
var ae = mathSign(H || Q) * (Math.abs(Q) - Math.abs(H));
|
|
23108
23108
|
H += ae;
|
|
23109
23109
|
}
|
|
23110
23110
|
}
|
|
@@ -23203,25 +23203,25 @@ var formatAxisMap = function(t, n, i, o, l) {
|
|
|
23203
23203
|
var E = n[R], S = E.orientation, C = E.domain, A = E.padding, I = A === void 0 ? {} : A, M = E.mirror, T = E.reversed, O = "".concat(S).concat(M ? "Mirror" : ""), N, D, j, B, L;
|
|
23204
23204
|
if (E.type === "number" && (E.padding === "gap" || E.padding === "no-gap")) {
|
|
23205
23205
|
var F = C[1] - C[0], V = 1 / 0, H = E.categoricalDomain.sort();
|
|
23206
|
-
if (H.forEach(function(te,
|
|
23207
|
-
|
|
23206
|
+
if (H.forEach(function(te, oe) {
|
|
23207
|
+
oe > 0 && (V = Math.min((te || 0) - (H[oe - 1] || 0), V));
|
|
23208
23208
|
}), Number.isFinite(V)) {
|
|
23209
23209
|
var z = V / F, W = E.layout === "vertical" ? i.height : i.width;
|
|
23210
23210
|
if (E.padding === "gap" && (N = z * W / 2), E.padding === "no-gap") {
|
|
23211
|
-
var
|
|
23212
|
-
N = q -
|
|
23211
|
+
var Q = getPercentValue(t.barCategoryGap, z * W), q = z * W / 2;
|
|
23212
|
+
N = q - Q - (q - Q) / W * Q;
|
|
23213
23213
|
}
|
|
23214
23214
|
}
|
|
23215
23215
|
}
|
|
23216
23216
|
o === "xAxis" ? D = [i.left + (I.left || 0) + (N || 0), i.left + i.width - (I.right || 0) - (N || 0)] : o === "yAxis" ? D = f === "horizontal" ? [i.top + i.height - (I.bottom || 0), i.top + (I.top || 0)] : [i.top + (I.top || 0) + (N || 0), i.top + i.height - (I.bottom || 0) - (N || 0)] : D = E.range, T && (D = [D[1], D[0]]);
|
|
23217
|
-
var G = parseScale(E, l, b), U = G.scale,
|
|
23217
|
+
var G = parseScale(E, l, b), U = G.scale, Z = G.realScaleType;
|
|
23218
23218
|
U.domain(C).range(D), checkDomainOfScale(U);
|
|
23219
23219
|
var K = getTicksOfScale(U, _objectSpread$9(_objectSpread$9({}, E), {}, {
|
|
23220
|
-
realScaleType:
|
|
23220
|
+
realScaleType: Z
|
|
23221
23221
|
}));
|
|
23222
23222
|
o === "xAxis" ? (L = S === "top" && !M || S === "bottom" && M, j = i.left, B = g[O] - L * E.height) : o === "yAxis" && (L = S === "left" && !M || S === "right" && M, j = g[O] - L * E.width, B = i.top);
|
|
23223
23223
|
var ee = _objectSpread$9(_objectSpread$9(_objectSpread$9({}, E), K), {}, {
|
|
23224
|
-
realScaleType:
|
|
23224
|
+
realScaleType: Z,
|
|
23225
23225
|
x: j,
|
|
23226
23226
|
y: B,
|
|
23227
23227
|
scale: U,
|
|
@@ -26279,23 +26279,23 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26279
26279
|
isDomainSpecifiedByUser(C.domain, M, A) && (F = parseSpecifiedDomain(C.domain, null, M), _ && (A === "number" || O !== "auto") && (H = getDomainOfDataByKey(B, I, "category")));
|
|
26280
26280
|
var z = getDefaultDomainByAxisType(A);
|
|
26281
26281
|
if (!F || F.length === 0) {
|
|
26282
|
-
var W,
|
|
26282
|
+
var W, Q = (W = C.domain) !== null && W !== void 0 ? W : z;
|
|
26283
26283
|
if (I) {
|
|
26284
26284
|
if (F = getDomainOfDataByKey(B, I, A), A === "category" && _) {
|
|
26285
26285
|
var q = hasDuplicate(F);
|
|
26286
|
-
T && q ? (V = F, F = range(0, L)) : T || (F = parseDomainOfCategoryAxis(
|
|
26286
|
+
T && q ? (V = F, F = range(0, L)) : T || (F = parseDomainOfCategoryAxis(Q, F, E).reduce(function(K, ee) {
|
|
26287
26287
|
return K.indexOf(ee) >= 0 ? K : [].concat(_toConsumableArray(K), [ee]);
|
|
26288
26288
|
}, []));
|
|
26289
26289
|
} else if (A === "category")
|
|
26290
26290
|
T ? F = F.filter(function(K) {
|
|
26291
26291
|
return K !== "" && !isNil(K);
|
|
26292
|
-
}) : F = parseDomainOfCategoryAxis(
|
|
26292
|
+
}) : F = parseDomainOfCategoryAxis(Q, F, E).reduce(function(K, ee) {
|
|
26293
26293
|
return K.indexOf(ee) >= 0 || ee === "" || isNil(ee) ? K : [].concat(_toConsumableArray(K), [ee]);
|
|
26294
26294
|
}, []);
|
|
26295
26295
|
else if (A === "number") {
|
|
26296
26296
|
var G = parseErrorBarsOfAxis(B, o.filter(function(K) {
|
|
26297
|
-
var ee, te,
|
|
26298
|
-
return
|
|
26297
|
+
var ee, te, oe = u in K.props ? K.props[u] : (ee = K.type.defaultProps) === null || ee === void 0 ? void 0 : ee[u], ce = "hide" in K.props ? K.props.hide : (te = K.type.defaultProps) === null || te === void 0 ? void 0 : te.hide;
|
|
26298
|
+
return oe === j && (D || !ce);
|
|
26299
26299
|
}), I, l, m);
|
|
26300
26300
|
G && (F = G);
|
|
26301
26301
|
}
|
|
@@ -26305,12 +26305,12 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26305
26305
|
return ee === j && (D || !te);
|
|
26306
26306
|
}), A, m, !0);
|
|
26307
26307
|
if (A === "number")
|
|
26308
|
-
F = detectReferenceElementsDomain(g, F, j, l, N),
|
|
26309
|
-
else if (A === "category" &&
|
|
26310
|
-
var U =
|
|
26308
|
+
F = detectReferenceElementsDomain(g, F, j, l, N), Q && (F = parseSpecifiedDomain(Q, F, M));
|
|
26309
|
+
else if (A === "category" && Q) {
|
|
26310
|
+
var U = Q, Z = F.every(function(K) {
|
|
26311
26311
|
return U.indexOf(K) >= 0;
|
|
26312
26312
|
});
|
|
26313
|
-
|
|
26313
|
+
Z && (F = U);
|
|
26314
26314
|
}
|
|
26315
26315
|
}
|
|
26316
26316
|
return _objectSpread(_objectSpread({}, R), {}, _defineProperty({}, j, _objectSpread(_objectSpread({}, C), {}, {
|
|
@@ -26440,13 +26440,13 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26440
26440
|
return t[n].height;
|
|
26441
26441
|
}, generateCategoricalChart = function(t) {
|
|
26442
26442
|
var n = t.chartName, i = t.GraphicalChild, o = t.defaultTooltipEventType, l = o === void 0 ? "axis" : o, u = t.validateTooltipEventTypes, d = u === void 0 ? ["axis"] : u, f = t.axisComponents, p = t.legendContent, m = t.formatAxisMap, g = t.defaultProps, b = function(C, A) {
|
|
26443
|
-
var I = A.graphicalItems, M = A.stackGroups, T = A.offset, O = A.updateId, N = A.dataStartIndex, D = A.dataEndIndex, j = C.barSize, B = C.layout, L = C.barGap, F = C.barCategoryGap, V = C.maxBarSize, H = getAxisNameByLayout(B), z = H.numericAxisName, W = H.cateAxisName,
|
|
26443
|
+
var I = A.graphicalItems, M = A.stackGroups, T = A.offset, O = A.updateId, N = A.dataStartIndex, D = A.dataEndIndex, j = C.barSize, B = C.layout, L = C.barGap, F = C.barCategoryGap, V = C.maxBarSize, H = getAxisNameByLayout(B), z = H.numericAxisName, W = H.cateAxisName, Q = hasGraphicalBarItem(I), q = [];
|
|
26444
26444
|
return I.forEach(function(G, U) {
|
|
26445
|
-
var
|
|
26445
|
+
var Z = getDisplayedData(C.data, {
|
|
26446
26446
|
graphicalItems: [G],
|
|
26447
26447
|
dataStartIndex: N,
|
|
26448
26448
|
dataEndIndex: D
|
|
26449
|
-
}), K = G.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, G.type.defaultProps), G.props) : G.props, ee = K.dataKey, te = K.maxBarSize,
|
|
26449
|
+
}), K = G.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, G.type.defaultProps), G.props) : G.props, ee = K.dataKey, te = K.maxBarSize, oe = K["".concat(z, "Id")], ce = K["".concat(W, "Id")], ae = {}, le = f.reduce(function(Ee, ve) {
|
|
26450
26450
|
var xe, Se, _e = A["".concat(ve.axisType, "Map")], we = K["".concat(ve.axisType, "Id")];
|
|
26451
26451
|
_e && _e[we] || ve.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? invariant(!1, "Specifying a(n) ".concat(ve.axisType, "Id requires a corresponding ").concat(
|
|
26452
26452
|
ve.axisType,
|
|
@@ -26454,18 +26454,18 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26454
26454
|
).concat((xe = G == null || (Se = G.type) === null || Se === void 0 ? void 0 : Se.displayName) !== null && xe !== void 0 ? xe : "")) : invariant());
|
|
26455
26455
|
var Pe = _e[we];
|
|
26456
26456
|
return _objectSpread(_objectSpread({}, Ee), {}, _defineProperty(_defineProperty({}, ve.axisType, Pe), "".concat(ve.axisType, "Ticks"), getTicksOfAxis(Pe)));
|
|
26457
|
-
}, ae),
|
|
26457
|
+
}, ae), se = le[W], ie = le["".concat(W, "Ticks")], ue = M && M[oe] && M[oe].hasStack && getStackedDataOfItem(G, M[oe].stackGroups), J = getDisplayName(G.type).indexOf("Bar") >= 0, fe = getBandSizeOfAxis(se, ie), ne = [], de = Q && getBarSizeList({
|
|
26458
26458
|
barSize: j,
|
|
26459
26459
|
stackGroups: M,
|
|
26460
|
-
totalSize: getCartesianAxisSize(
|
|
26460
|
+
totalSize: getCartesianAxisSize(le, W)
|
|
26461
26461
|
});
|
|
26462
|
-
if (
|
|
26463
|
-
var pe, me, ye = isNil(te) ? V : te, he = (pe = (me = getBandSizeOfAxis(
|
|
26462
|
+
if (J) {
|
|
26463
|
+
var pe, me, ye = isNil(te) ? V : te, he = (pe = (me = getBandSizeOfAxis(se, ie, !0)) !== null && me !== void 0 ? me : ye) !== null && pe !== void 0 ? pe : 0;
|
|
26464
26464
|
ne = getBarPosition({
|
|
26465
26465
|
barGap: L,
|
|
26466
26466
|
barCategoryGap: F,
|
|
26467
26467
|
bandSize: he !== fe ? he : fe,
|
|
26468
|
-
sizeList: de[
|
|
26468
|
+
sizeList: de[ce],
|
|
26469
26469
|
maxBarSize: ye
|
|
26470
26470
|
}), he !== fe && (ne = ne.map(function(Ee) {
|
|
26471
26471
|
return _objectSpread(_objectSpread({}, Ee), {}, {
|
|
@@ -26477,21 +26477,21 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26477
26477
|
}
|
|
26478
26478
|
var ge = G && G.type && G.type.getComposedData;
|
|
26479
26479
|
ge && q.push({
|
|
26480
|
-
props: _objectSpread(_objectSpread({}, ge(_objectSpread(_objectSpread({},
|
|
26481
|
-
displayedData:
|
|
26480
|
+
props: _objectSpread(_objectSpread({}, ge(_objectSpread(_objectSpread({}, le), {}, {
|
|
26481
|
+
displayedData: Z,
|
|
26482
26482
|
props: C,
|
|
26483
26483
|
dataKey: ee,
|
|
26484
26484
|
item: G,
|
|
26485
26485
|
bandSize: fe,
|
|
26486
26486
|
barPosition: ne,
|
|
26487
26487
|
offset: T,
|
|
26488
|
-
stackedData:
|
|
26488
|
+
stackedData: ue,
|
|
26489
26489
|
layout: B,
|
|
26490
26490
|
dataStartIndex: N,
|
|
26491
26491
|
dataEndIndex: D
|
|
26492
26492
|
}))), {}, _defineProperty(_defineProperty(_defineProperty({
|
|
26493
26493
|
key: G.key || "item-".concat(U)
|
|
26494
|
-
}, z,
|
|
26494
|
+
}, z, le[z]), W, le[W]), "animationId", O)),
|
|
26495
26495
|
childIndex: parseChildIndex(G, C.children),
|
|
26496
26496
|
item: G
|
|
26497
26497
|
});
|
|
@@ -26502,7 +26502,7 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26502
26502
|
props: I
|
|
26503
26503
|
}))
|
|
26504
26504
|
return null;
|
|
26505
|
-
var N = I.children, D = I.layout, j = I.stackOffset, B = I.data, L = I.reverseStackOrder, F = getAxisNameByLayout(D), V = F.numericAxisName, H = F.cateAxisName, z = findAllByType(N, i), W = getStackGroupsByAxisId(B, z, "".concat(V, "Id"), "".concat(H, "Id"), j, L),
|
|
26505
|
+
var N = I.children, D = I.layout, j = I.stackOffset, B = I.data, L = I.reverseStackOrder, F = getAxisNameByLayout(D), V = F.numericAxisName, H = F.cateAxisName, z = findAllByType(N, i), W = getStackGroupsByAxisId(B, z, "".concat(V, "Id"), "".concat(H, "Id"), j, L), Q = f.reduce(function(K, ee) {
|
|
26506
26506
|
var te = "".concat(ee.axisType, "Map");
|
|
26507
26507
|
return _objectSpread(_objectSpread({}, K), {}, _defineProperty({}, te, getAxisMap(I, _objectSpread(_objectSpread({}, ee), {}, {
|
|
26508
26508
|
graphicalItems: z,
|
|
@@ -26510,14 +26510,14 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26510
26510
|
dataStartIndex: M,
|
|
26511
26511
|
dataEndIndex: T
|
|
26512
26512
|
}))));
|
|
26513
|
-
}, {}), q = calculateOffset(_objectSpread(_objectSpread({},
|
|
26513
|
+
}, {}), q = calculateOffset(_objectSpread(_objectSpread({}, Q), {}, {
|
|
26514
26514
|
props: I,
|
|
26515
26515
|
graphicalItems: z
|
|
26516
26516
|
}), A == null ? void 0 : A.legendBBox);
|
|
26517
|
-
Object.keys(
|
|
26518
|
-
|
|
26517
|
+
Object.keys(Q).forEach(function(K) {
|
|
26518
|
+
Q[K] = m(I, Q[K], q, K.replace("Map", ""), n);
|
|
26519
26519
|
});
|
|
26520
|
-
var G =
|
|
26520
|
+
var G = Q["".concat(H, "Map")], U = tooltipTicksGenerator(G), Z = b(I, _objectSpread(_objectSpread({}, Q), {}, {
|
|
26521
26521
|
dataStartIndex: M,
|
|
26522
26522
|
dataEndIndex: T,
|
|
26523
26523
|
updateId: O,
|
|
@@ -26526,11 +26526,11 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26526
26526
|
offset: q
|
|
26527
26527
|
}));
|
|
26528
26528
|
return _objectSpread(_objectSpread({
|
|
26529
|
-
formattedGraphicalItems:
|
|
26529
|
+
formattedGraphicalItems: Z,
|
|
26530
26530
|
graphicalItems: z,
|
|
26531
26531
|
offset: q,
|
|
26532
26532
|
stackGroups: W
|
|
26533
|
-
}, U),
|
|
26533
|
+
}, U), Q);
|
|
26534
26534
|
}, R = /* @__PURE__ */ function(S) {
|
|
26535
26535
|
function C(A) {
|
|
26536
26536
|
var I, M, T;
|
|
@@ -26681,8 +26681,8 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26681
26681
|
updateId: B
|
|
26682
26682
|
}, T.state)));
|
|
26683
26683
|
else if (O.activeTooltipIndex !== void 0) {
|
|
26684
|
-
var V = O.chartX, H = O.chartY, z = O.activeTooltipIndex, W = T.state,
|
|
26685
|
-
if (!
|
|
26684
|
+
var V = O.chartX, H = O.chartY, z = O.activeTooltipIndex, W = T.state, Q = W.offset, q = W.tooltipTicks;
|
|
26685
|
+
if (!Q)
|
|
26686
26686
|
return;
|
|
26687
26687
|
if (typeof j == "function")
|
|
26688
26688
|
z = j(q, O);
|
|
@@ -26694,23 +26694,23 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26694
26694
|
break;
|
|
26695
26695
|
}
|
|
26696
26696
|
}
|
|
26697
|
-
var U = _objectSpread(_objectSpread({},
|
|
26698
|
-
x:
|
|
26699
|
-
y:
|
|
26700
|
-
}),
|
|
26701
|
-
x: D === "horizontal" ? q[z].coordinate :
|
|
26697
|
+
var U = _objectSpread(_objectSpread({}, Q), {}, {
|
|
26698
|
+
x: Q.left,
|
|
26699
|
+
y: Q.top
|
|
26700
|
+
}), Z = Math.min(V, U.x + U.width), K = Math.min(H, U.y + U.height), ee = q[z] && q[z].value, te = getTooltipContent(T.state, T.props.data, z), oe = q[z] ? {
|
|
26701
|
+
x: D === "horizontal" ? q[z].coordinate : Z,
|
|
26702
26702
|
y: D === "horizontal" ? K : q[z].coordinate
|
|
26703
26703
|
} : originCoordinate;
|
|
26704
26704
|
T.setState(_objectSpread(_objectSpread({}, O), {}, {
|
|
26705
26705
|
activeLabel: ee,
|
|
26706
|
-
activeCoordinate:
|
|
26706
|
+
activeCoordinate: oe,
|
|
26707
26707
|
activePayload: te,
|
|
26708
26708
|
activeTooltipIndex: z
|
|
26709
26709
|
}));
|
|
26710
26710
|
} else
|
|
26711
26711
|
T.setState(O);
|
|
26712
26712
|
}), _defineProperty(T, "renderCursor", function(O) {
|
|
26713
|
-
var N, D = T.state, j = D.isTooltipActive, B = D.activeCoordinate, L = D.activePayload, F = D.offset, V = D.activeTooltipIndex, H = D.tooltipAxisBandSize, z = T.getTooltipEventType(), W = (N = O.props.active) !== null && N !== void 0 ? N : j,
|
|
26713
|
+
var N, D = T.state, j = D.isTooltipActive, B = D.activeCoordinate, L = D.activePayload, F = D.offset, V = D.activeTooltipIndex, H = D.tooltipAxisBandSize, z = T.getTooltipEventType(), W = (N = O.props.active) !== null && N !== void 0 ? N : j, Q = T.props.layout, q = O.key || "_recharts-cursor";
|
|
26714
26714
|
return /* @__PURE__ */ React__default.createElement(Cursor, {
|
|
26715
26715
|
key: q,
|
|
26716
26716
|
activeCoordinate: B,
|
|
@@ -26719,7 +26719,7 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26719
26719
|
chartName: n,
|
|
26720
26720
|
element: O,
|
|
26721
26721
|
isActive: W,
|
|
26722
|
-
layout:
|
|
26722
|
+
layout: Q,
|
|
26723
26723
|
offset: F,
|
|
26724
26724
|
tooltipAxisBandSize: H,
|
|
26725
26725
|
tooltipEventType: z
|
|
@@ -26732,7 +26732,7 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26732
26732
|
ticks: getTicksOfAxis(V, !0)
|
|
26733
26733
|
}));
|
|
26734
26734
|
}), _defineProperty(T, "renderPolarGrid", function(O) {
|
|
26735
|
-
var N = O.props, D = N.radialLines, j = N.polarAngles, B = N.polarRadius, L = T.state, F = L.radiusAxisMap, V = L.angleAxisMap, H = getAnyElementOfObject(F), z = getAnyElementOfObject(V), W = z.cx,
|
|
26735
|
+
var N = O.props, D = N.radialLines, j = N.polarAngles, B = N.polarRadius, L = T.state, F = L.radiusAxisMap, V = L.angleAxisMap, H = getAnyElementOfObject(F), z = getAnyElementOfObject(V), W = z.cx, Q = z.cy, q = z.innerRadius, G = z.outerRadius;
|
|
26736
26736
|
return /* @__PURE__ */ cloneElement(O, {
|
|
26737
26737
|
polarAngles: Array.isArray(j) ? j : getTicksOfAxis(z, !0).map(function(U) {
|
|
26738
26738
|
return U.coordinate;
|
|
@@ -26741,7 +26741,7 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26741
26741
|
return U.coordinate;
|
|
26742
26742
|
}),
|
|
26743
26743
|
cx: W,
|
|
26744
|
-
cy:
|
|
26744
|
+
cy: Q,
|
|
26745
26745
|
innerRadius: q,
|
|
26746
26746
|
outerRadius: G,
|
|
26747
26747
|
key: O.key || "polar-grid",
|
|
@@ -26767,15 +26767,15 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26767
26767
|
var O, N = T.props, D = N.children, j = N.accessibilityLayer, B = findChildByType(D, Tooltip);
|
|
26768
26768
|
if (!B)
|
|
26769
26769
|
return null;
|
|
26770
|
-
var L = T.state, F = L.isTooltipActive, V = L.activeCoordinate, H = L.activePayload, z = L.activeLabel, W = L.offset,
|
|
26770
|
+
var L = T.state, F = L.isTooltipActive, V = L.activeCoordinate, H = L.activePayload, z = L.activeLabel, W = L.offset, Q = (O = B.props.active) !== null && O !== void 0 ? O : F;
|
|
26771
26771
|
return /* @__PURE__ */ cloneElement(B, {
|
|
26772
26772
|
viewBox: _objectSpread(_objectSpread({}, W), {}, {
|
|
26773
26773
|
x: W.left,
|
|
26774
26774
|
y: W.top
|
|
26775
26775
|
}),
|
|
26776
|
-
active:
|
|
26776
|
+
active: Q,
|
|
26777
26777
|
label: z,
|
|
26778
|
-
payload:
|
|
26778
|
+
payload: Q ? H : [],
|
|
26779
26779
|
coordinate: V,
|
|
26780
26780
|
accessibilityLayer: j
|
|
26781
26781
|
});
|
|
@@ -26795,7 +26795,7 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26795
26795
|
}), _defineProperty(T, "renderReferenceElement", function(O, N, D) {
|
|
26796
26796
|
if (!O)
|
|
26797
26797
|
return null;
|
|
26798
|
-
var j = T, B = j.clipPathId, L = T.state, F = L.xAxisMap, V = L.yAxisMap, H = L.offset, z = O.type.defaultProps || {}, W = O.props,
|
|
26798
|
+
var j = T, B = j.clipPathId, L = T.state, F = L.xAxisMap, V = L.yAxisMap, H = L.offset, z = O.type.defaultProps || {}, W = O.props, Q = W.xAxisId, q = Q === void 0 ? z.xAxisId : Q, G = W.yAxisId, U = G === void 0 ? z.yAxisId : G;
|
|
26799
26799
|
return /* @__PURE__ */ cloneElement(O, {
|
|
26800
26800
|
key: O.key || "".concat(N, "-").concat(D),
|
|
26801
26801
|
xAxis: F[q],
|
|
@@ -26809,7 +26809,7 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26809
26809
|
clipPathId: B
|
|
26810
26810
|
});
|
|
26811
26811
|
}), _defineProperty(T, "renderActivePoints", function(O) {
|
|
26812
|
-
var N = O.item, D = O.activePoint, j = O.basePoint, B = O.childIndex, L = O.isRange, F = [], V = N.props.key, H = N.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, N.item.type.defaultProps), N.item.props) : N.item.props, z = H.activeDot, W = H.dataKey,
|
|
26812
|
+
var N = O.item, D = O.activePoint, j = O.basePoint, B = O.childIndex, L = O.isRange, F = [], V = N.props.key, H = N.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, N.item.type.defaultProps), N.item.props) : N.item.props, z = H.activeDot, W = H.dataKey, Q = _objectSpread(_objectSpread({
|
|
26813
26813
|
index: B,
|
|
26814
26814
|
dataKey: W,
|
|
26815
26815
|
cx: D.x,
|
|
@@ -26821,7 +26821,7 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26821
26821
|
payload: D.payload,
|
|
26822
26822
|
value: D.value
|
|
26823
26823
|
}, filterProps(z, !1)), adaptEventHandlers(z));
|
|
26824
|
-
return F.push(C.renderActiveDot(z,
|
|
26824
|
+
return F.push(C.renderActiveDot(z, Q, "".concat(V, "-activePoint-").concat(B))), j ? F.push(C.renderActiveDot(z, _objectSpread(_objectSpread({}, Q), {}, {
|
|
26825
26825
|
cx: j.x,
|
|
26826
26826
|
cy: j.y
|
|
26827
26827
|
}), "".concat(V, "-basePoint-").concat(B))) : L && F.push(null), F;
|
|
@@ -26829,48 +26829,48 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26829
26829
|
var j = T.filterFormatItem(O, N, D);
|
|
26830
26830
|
if (!j)
|
|
26831
26831
|
return null;
|
|
26832
|
-
var B = T.getTooltipEventType(), L = T.state, F = L.isTooltipActive, V = L.tooltipAxis, H = L.activeTooltipIndex, z = L.activeLabel, W = T.props.children,
|
|
26833
|
-
B !== "axis" &&
|
|
26832
|
+
var B = T.getTooltipEventType(), L = T.state, F = L.isTooltipActive, V = L.tooltipAxis, H = L.activeTooltipIndex, z = L.activeLabel, W = T.props.children, Q = findChildByType(W, Tooltip), q = j.props, G = q.points, U = q.isRange, Z = q.baseLine, K = j.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, j.item.type.defaultProps), j.item.props) : j.item.props, ee = K.activeDot, te = K.hide, oe = K.activeBar, ce = K.activeShape, ae = !!(!te && F && Q && (ee || oe || ce)), le = {};
|
|
26833
|
+
B !== "axis" && Q && Q.props.trigger === "click" ? le = {
|
|
26834
26834
|
onClick: combineEventHandlers(T.handleItemMouseEnter, O.props.onClick)
|
|
26835
|
-
} : B !== "axis" && (
|
|
26835
|
+
} : B !== "axis" && (le = {
|
|
26836
26836
|
onMouseLeave: combineEventHandlers(T.handleItemMouseLeave, O.props.onMouseLeave),
|
|
26837
26837
|
onMouseEnter: combineEventHandlers(T.handleItemMouseEnter, O.props.onMouseEnter)
|
|
26838
26838
|
});
|
|
26839
|
-
var
|
|
26840
|
-
function
|
|
26839
|
+
var se = /* @__PURE__ */ cloneElement(O, _objectSpread(_objectSpread({}, j.props), le));
|
|
26840
|
+
function ie(ve) {
|
|
26841
26841
|
return typeof V.dataKey == "function" ? V.dataKey(ve.payload) : null;
|
|
26842
26842
|
}
|
|
26843
26843
|
if (ae)
|
|
26844
26844
|
if (H >= 0) {
|
|
26845
|
-
var
|
|
26845
|
+
var ue, J;
|
|
26846
26846
|
if (V.dataKey && !V.allowDuplicatedCategory) {
|
|
26847
|
-
var fe = typeof V.dataKey == "function" ?
|
|
26848
|
-
|
|
26847
|
+
var fe = typeof V.dataKey == "function" ? ie : "payload.".concat(V.dataKey.toString());
|
|
26848
|
+
ue = findEntryInArray(G, fe, z), J = U && Z && findEntryInArray(Z, fe, z);
|
|
26849
26849
|
} else
|
|
26850
|
-
|
|
26851
|
-
if (
|
|
26850
|
+
ue = G == null ? void 0 : G[H], J = U && Z && Z[H];
|
|
26851
|
+
if (ce || oe) {
|
|
26852
26852
|
var ne = O.props.activeIndex !== void 0 ? O.props.activeIndex : H;
|
|
26853
|
-
return [/* @__PURE__ */ cloneElement(O, _objectSpread(_objectSpread(_objectSpread({}, j.props),
|
|
26853
|
+
return [/* @__PURE__ */ cloneElement(O, _objectSpread(_objectSpread(_objectSpread({}, j.props), le), {}, {
|
|
26854
26854
|
activeIndex: ne
|
|
26855
26855
|
})), null, null];
|
|
26856
26856
|
}
|
|
26857
|
-
if (!isNil(
|
|
26858
|
-
return [
|
|
26857
|
+
if (!isNil(ue))
|
|
26858
|
+
return [se].concat(_toConsumableArray(T.renderActivePoints({
|
|
26859
26859
|
item: j,
|
|
26860
|
-
activePoint:
|
|
26861
|
-
basePoint:
|
|
26860
|
+
activePoint: ue,
|
|
26861
|
+
basePoint: J,
|
|
26862
26862
|
childIndex: H,
|
|
26863
26863
|
isRange: U
|
|
26864
26864
|
})));
|
|
26865
26865
|
} else {
|
|
26866
26866
|
var de, pe = (de = T.getItemByXY(T.state.activeCoordinate)) !== null && de !== void 0 ? de : {
|
|
26867
|
-
graphicalItem:
|
|
26868
|
-
}, me = pe.graphicalItem, ye = me.item, he = ye === void 0 ? O : ye, ge = me.childIndex, Ee = _objectSpread(_objectSpread(_objectSpread({}, j.props),
|
|
26867
|
+
graphicalItem: se
|
|
26868
|
+
}, me = pe.graphicalItem, ye = me.item, he = ye === void 0 ? O : ye, ge = me.childIndex, Ee = _objectSpread(_objectSpread(_objectSpread({}, j.props), le), {}, {
|
|
26869
26869
|
activeIndex: ge
|
|
26870
26870
|
});
|
|
26871
26871
|
return [/* @__PURE__ */ cloneElement(he, Ee), null, null];
|
|
26872
26872
|
}
|
|
26873
|
-
return U ? [
|
|
26873
|
+
return U ? [se, null, null] : [se, null];
|
|
26874
26874
|
}), _defineProperty(T, "renderCustomized", function(O, N, D) {
|
|
26875
26875
|
return /* @__PURE__ */ cloneElement(O, _objectSpread(_objectSpread({
|
|
26876
26876
|
key: "recharts-customized-".concat(D)
|
|
@@ -26975,14 +26975,14 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26975
26975
|
return G.type.name === "Scatter";
|
|
26976
26976
|
});
|
|
26977
26977
|
W && (z = _objectSpread(_objectSpread({}, z), W.props.points[j].tooltipPosition), L = W.props.points[j].tooltipPayload);
|
|
26978
|
-
var
|
|
26978
|
+
var Q = {
|
|
26979
26979
|
activeTooltipIndex: j,
|
|
26980
26980
|
isTooltipActive: !0,
|
|
26981
26981
|
activeLabel: B,
|
|
26982
26982
|
activePayload: L,
|
|
26983
26983
|
activeCoordinate: z
|
|
26984
26984
|
};
|
|
26985
|
-
this.setState(
|
|
26985
|
+
this.setState(Q), this.renderCursor(D), this.accessibilityManager.setIndex(j);
|
|
26986
26986
|
}
|
|
26987
26987
|
}
|
|
26988
26988
|
}
|
|
@@ -27044,9 +27044,9 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
27044
27044
|
return null;
|
|
27045
27045
|
var B = this.state, L = B.xAxisMap, F = B.yAxisMap, V = this.getTooltipEventType(), H = getTooltipData(this.state, this.props.data, this.props.layout, j);
|
|
27046
27046
|
if (V !== "axis" && L && F) {
|
|
27047
|
-
var z = getAnyElementOfObject(L).scale, W = getAnyElementOfObject(F).scale,
|
|
27047
|
+
var z = getAnyElementOfObject(L).scale, W = getAnyElementOfObject(F).scale, Q = z && z.invert ? z.invert(N.chartX) : null, q = W && W.invert ? W.invert(N.chartY) : null;
|
|
27048
27048
|
return _objectSpread(_objectSpread({}, N), {}, {
|
|
27049
|
-
xValue:
|
|
27049
|
+
xValue: Q,
|
|
27050
27050
|
yValue: q
|
|
27051
27051
|
}, H);
|
|
27052
27052
|
}
|
|
@@ -27185,10 +27185,10 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
27185
27185
|
graphicalItem: j,
|
|
27186
27186
|
activeTooltipItem: O,
|
|
27187
27187
|
itemData: F.data
|
|
27188
|
-
}),
|
|
27188
|
+
}), Q = F.activeIndex === void 0 ? W : F.activeIndex;
|
|
27189
27189
|
return {
|
|
27190
27190
|
graphicalItem: _objectSpread(_objectSpread({}, j), {}, {
|
|
27191
|
-
childIndex:
|
|
27191
|
+
childIndex: Q
|
|
27192
27192
|
}),
|
|
27193
27193
|
payload: isScatter(j, O) ? F.data[W] : j.props.data[W]
|
|
27194
27194
|
};
|
|
@@ -27223,7 +27223,7 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
27223
27223
|
I.accessibilityManager.focus();
|
|
27224
27224
|
};
|
|
27225
27225
|
}
|
|
27226
|
-
var
|
|
27226
|
+
var Q = this.parseEventsOfWrapper();
|
|
27227
27227
|
return /* @__PURE__ */ React__default.createElement(ChartLayoutContextProvider, {
|
|
27228
27228
|
state: this.state,
|
|
27229
27229
|
width: this.props.width,
|
|
@@ -27237,7 +27237,7 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
27237
27237
|
width: N,
|
|
27238
27238
|
height: D
|
|
27239
27239
|
}, j)
|
|
27240
|
-
},
|
|
27240
|
+
}, Q, {
|
|
27241
27241
|
ref: function(G) {
|
|
27242
27242
|
I.container = G;
|
|
27243
27243
|
}
|
|
@@ -27311,13 +27311,13 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
27311
27311
|
});
|
|
27312
27312
|
}
|
|
27313
27313
|
if (!isChildrenEqual(M, C.prevChildren)) {
|
|
27314
|
-
var
|
|
27314
|
+
var Q, q, G, U, Z = findChildByType(M, Brush), K = Z && (Q = (q = Z.props) === null || q === void 0 ? void 0 : q.startIndex) !== null && Q !== void 0 ? Q : B, ee = Z && (G = (U = Z.props) === null || U === void 0 ? void 0 : U.endIndex) !== null && G !== void 0 ? G : L, te = K !== B || ee !== L, oe = !isNil(I), ce = oe && !te ? C.updateId : C.updateId + 1;
|
|
27315
27315
|
return _objectSpread(_objectSpread({
|
|
27316
|
-
updateId:
|
|
27316
|
+
updateId: ce
|
|
27317
27317
|
}, _(_objectSpread(_objectSpread({
|
|
27318
27318
|
props: S
|
|
27319
27319
|
}, C), {}, {
|
|
27320
|
-
updateId:
|
|
27320
|
+
updateId: ce,
|
|
27321
27321
|
dataStartIndex: K,
|
|
27322
27322
|
dataEndIndex: ee
|
|
27323
27323
|
}), C)), {}, {
|
|
@@ -27900,8 +27900,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
27900
27900
|
else B[L].ty === "gr" && D(B[L].it);
|
|
27901
27901
|
}
|
|
27902
27902
|
function j(B) {
|
|
27903
|
-
var L, F, V, H, z, W,
|
|
27904
|
-
for (F = 0; F <
|
|
27903
|
+
var L, F, V, H, z, W, Q = B.length;
|
|
27904
|
+
for (F = 0; F < Q; F += 1) {
|
|
27905
27905
|
if ((L = B[F]).hasMask) {
|
|
27906
27906
|
var q = L.masksProperties;
|
|
27907
27907
|
for (H = q.length, V = 0; V < H; V += 1) if (q[V].pt.k.i) q[V].pt.k.c = q[V].cl;
|
|
@@ -28557,8 +28557,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
28557
28557
|
return b && S && (C[m] = n(_[m], _[0], R[m], E[0]), A += C[m].addedLength), g.totalLength = A, g;
|
|
28558
28558
|
}, getNewSegment: function(p, m, g, b, _, R, E) {
|
|
28559
28559
|
_ < 0 ? _ = 0 : _ > 1 && (_ = 1);
|
|
28560
|
-
var S, C = d(_, E), A = d(R = R > 1 ? 1 : R, E), I = p.length, M = 1 - C, T = 1 - A, O = M * M * M, N = C * M * M * 3, D = C * C * M * 3, j = C * C * C, B = M * M * T, L = C * M * T + M * C * T + M * M * A, F = C * C * T + M * C * A + C * M * A, V = C * C * A, H = M * T * T, z = C * T * T + M * A * T + M * T * A, W = C * A * T + M * A * A + C * T * A,
|
|
28561
|
-
for (S = 0; S < I; S += 1) f[4 * S] = e.round(1e3 * (O * p[S] + N * g[S] + D * b[S] + j * m[S])) / 1e3, f[4 * S + 1] = e.round(1e3 * (B * p[S] + L * g[S] + F * b[S] + V * m[S])) / 1e3, f[4 * S + 2] = e.round(1e3 * (H * p[S] + z * g[S] + W * b[S] +
|
|
28560
|
+
var S, C = d(_, E), A = d(R = R > 1 ? 1 : R, E), I = p.length, M = 1 - C, T = 1 - A, O = M * M * M, N = C * M * M * 3, D = C * C * M * 3, j = C * C * C, B = M * M * T, L = C * M * T + M * C * T + M * M * A, F = C * C * T + M * C * A + C * M * A, V = C * C * A, H = M * T * T, z = C * T * T + M * A * T + M * T * A, W = C * A * T + M * A * A + C * T * A, Q = C * A * A, q = T * T * T, G = A * T * T + T * A * T + T * T * A, U = A * A * T + T * A * A + A * T * A, Z = A * A * A;
|
|
28561
|
+
for (S = 0; S < I; S += 1) f[4 * S] = e.round(1e3 * (O * p[S] + N * g[S] + D * b[S] + j * m[S])) / 1e3, f[4 * S + 1] = e.round(1e3 * (B * p[S] + L * g[S] + F * b[S] + V * m[S])) / 1e3, f[4 * S + 2] = e.round(1e3 * (H * p[S] + z * g[S] + W * b[S] + Q * m[S])) / 1e3, f[4 * S + 3] = e.round(1e3 * (q * p[S] + G * g[S] + U * b[S] + Z * m[S])) / 1e3;
|
|
28562
28562
|
return f;
|
|
28563
28563
|
}, getPointInSegment: function(p, m, g, b, _, R) {
|
|
28564
28564
|
var E = d(_, R), S = 1 - E;
|
|
@@ -28917,23 +28917,23 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
28917
28917
|
return this.shear(n(q), n(G));
|
|
28918
28918
|
}
|
|
28919
28919
|
function g(q, G) {
|
|
28920
|
-
var U = e(G),
|
|
28921
|
-
return this._t(U,
|
|
28920
|
+
var U = e(G), Z = t(G);
|
|
28921
|
+
return this._t(U, Z, 0, 0, -Z, U, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, n(q), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(U, -Z, 0, 0, Z, U, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
28922
28922
|
}
|
|
28923
28923
|
function b(q, G, U) {
|
|
28924
28924
|
return U || U === 0 || (U = 1), q === 1 && G === 1 && U === 1 ? this : this._t(q, 0, 0, 0, 0, G, 0, 0, 0, 0, U, 0, 0, 0, 0, 1);
|
|
28925
28925
|
}
|
|
28926
|
-
function _(q, G, U,
|
|
28927
|
-
return this.props[0] = q, this.props[1] = G, this.props[2] = U, this.props[3] =
|
|
28926
|
+
function _(q, G, U, Z, K, ee, te, oe, ce, ae, le, se, ie, ue, J, fe) {
|
|
28927
|
+
return this.props[0] = q, this.props[1] = G, this.props[2] = U, this.props[3] = Z, this.props[4] = K, this.props[5] = ee, this.props[6] = te, this.props[7] = oe, this.props[8] = ce, this.props[9] = ae, this.props[10] = le, this.props[11] = se, this.props[12] = ie, this.props[13] = ue, this.props[14] = J, this.props[15] = fe, this;
|
|
28928
28928
|
}
|
|
28929
28929
|
function R(q, G, U) {
|
|
28930
28930
|
return U = U || 0, q !== 0 || G !== 0 || U !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, q, G, U, 1) : this;
|
|
28931
28931
|
}
|
|
28932
|
-
function E(q, G, U,
|
|
28932
|
+
function E(q, G, U, Z, K, ee, te, oe, ce, ae, le, se, ie, ue, J, fe) {
|
|
28933
28933
|
var ne = this.props;
|
|
28934
|
-
if (q === 1 && G === 0 && U === 0 &&
|
|
28934
|
+
if (q === 1 && G === 0 && U === 0 && Z === 0 && K === 0 && ee === 1 && te === 0 && oe === 0 && ce === 0 && ae === 0 && le === 1 && se === 0) return ne[12] = ne[12] * q + ne[15] * ie, ne[13] = ne[13] * ee + ne[15] * ue, ne[14] = ne[14] * le + ne[15] * J, ne[15] *= fe, this._identityCalculated = !1, this;
|
|
28935
28935
|
var de = ne[0], pe = ne[1], me = ne[2], ye = ne[3], he = ne[4], ge = ne[5], Ee = ne[6], ve = ne[7], xe = ne[8], Se = ne[9], _e = ne[10], we = ne[11], Pe = ne[12], Re = ne[13], Ce = ne[14], Ae = ne[15];
|
|
28936
|
-
return ne[0] = de * q + pe * K + me *
|
|
28936
|
+
return ne[0] = de * q + pe * K + me * ce + ye * ie, ne[1] = de * G + pe * ee + me * ae + ye * ue, ne[2] = de * U + pe * te + me * le + ye * J, ne[3] = de * Z + pe * oe + me * se + ye * fe, ne[4] = he * q + ge * K + Ee * ce + ve * ie, ne[5] = he * G + ge * ee + Ee * ae + ve * ue, ne[6] = he * U + ge * te + Ee * le + ve * J, ne[7] = he * Z + ge * oe + Ee * se + ve * fe, ne[8] = xe * q + Se * K + _e * ce + we * ie, ne[9] = xe * G + Se * ee + _e * ae + we * ue, ne[10] = xe * U + Se * te + _e * le + we * J, ne[11] = xe * Z + Se * oe + _e * se + we * fe, ne[12] = Pe * q + Re * K + Ce * ce + Ae * ie, ne[13] = Pe * G + Re * ee + Ce * ae + Ae * ue, ne[14] = Pe * U + Re * te + Ce * le + Ae * J, ne[15] = Pe * Z + Re * oe + Ce * se + Ae * fe, this._identityCalculated = !1, this;
|
|
28937
28937
|
}
|
|
28938
28938
|
function S(q) {
|
|
28939
28939
|
var G = q.props;
|
|
@@ -28971,25 +28971,25 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
28971
28971
|
return q * this.props[2] + G * this.props[6] + U * this.props[10] + this.props[14];
|
|
28972
28972
|
}
|
|
28973
28973
|
function j() {
|
|
28974
|
-
var q = this.props[0] * this.props[5] - this.props[1] * this.props[4], G = this.props[5] / q, U = -this.props[1] / q,
|
|
28975
|
-
return
|
|
28974
|
+
var q = this.props[0] * this.props[5] - this.props[1] * this.props[4], G = this.props[5] / q, U = -this.props[1] / q, Z = -this.props[4] / q, K = this.props[0] / q, ee = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / q, te = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / q, oe = new Matrix();
|
|
28975
|
+
return oe.props[0] = G, oe.props[1] = U, oe.props[4] = Z, oe.props[5] = K, oe.props[12] = ee, oe.props[13] = te, oe;
|
|
28976
28976
|
}
|
|
28977
28977
|
function B(q) {
|
|
28978
28978
|
return this.getInverseMatrix().applyToPointArray(q[0], q[1], q[2] || 0);
|
|
28979
28979
|
}
|
|
28980
28980
|
function L(q) {
|
|
28981
|
-
var G, U = q.length,
|
|
28982
|
-
for (G = 0; G < U; G += 1)
|
|
28983
|
-
return
|
|
28981
|
+
var G, U = q.length, Z = [];
|
|
28982
|
+
for (G = 0; G < U; G += 1) Z[G] = B(q[G]);
|
|
28983
|
+
return Z;
|
|
28984
28984
|
}
|
|
28985
28985
|
function F(q, G, U) {
|
|
28986
|
-
var
|
|
28987
|
-
if (this.isIdentity())
|
|
28986
|
+
var Z = createTypedArray("float32", 6);
|
|
28987
|
+
if (this.isIdentity()) Z[0] = q[0], Z[1] = q[1], Z[2] = G[0], Z[3] = G[1], Z[4] = U[0], Z[5] = U[1];
|
|
28988
28988
|
else {
|
|
28989
|
-
var K = this.props[0], ee = this.props[1], te = this.props[4],
|
|
28990
|
-
|
|
28989
|
+
var K = this.props[0], ee = this.props[1], te = this.props[4], oe = this.props[5], ce = this.props[12], ae = this.props[13];
|
|
28990
|
+
Z[0] = q[0] * K + q[1] * te + ce, Z[1] = q[0] * ee + q[1] * oe + ae, Z[2] = G[0] * K + G[1] * te + ce, Z[3] = G[0] * ee + G[1] * oe + ae, Z[4] = U[0] * K + U[1] * te + ce, Z[5] = U[0] * ee + U[1] * oe + ae;
|
|
28991
28991
|
}
|
|
28992
|
-
return
|
|
28992
|
+
return Z;
|
|
28993
28993
|
}
|
|
28994
28994
|
function V(q, G, U) {
|
|
28995
28995
|
return this.isIdentity() ? [q, G, U] : [q * this.props[0] + G * this.props[4] + U * this.props[8] + this.props[12], q * this.props[1] + G * this.props[5] + U * this.props[9] + this.props[13], q * this.props[2] + G * this.props[6] + U * this.props[10] + this.props[14]];
|
|
@@ -29006,12 +29006,12 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
29006
29006
|
function W(q) {
|
|
29007
29007
|
return q < 1e-6 && q > 0 || q > -1e-6 && q < 0 ? i(1e4 * q) / 1e4 : q;
|
|
29008
29008
|
}
|
|
29009
|
-
function
|
|
29009
|
+
function Q() {
|
|
29010
29010
|
var q = this.props;
|
|
29011
29011
|
return "matrix(" + W(q[0]) + "," + W(q[1]) + "," + W(q[4]) + "," + W(q[5]) + "," + W(q[12]) + "," + W(q[13]) + ")";
|
|
29012
29012
|
}
|
|
29013
29013
|
return function() {
|
|
29014
|
-
this.reset = o, this.rotate = l, this.rotateX = u, this.rotateY = d, this.rotateZ = f, this.skew = m, this.skewFromAxis = g, this.shear = p, this.scale = b, this.setTransform = _, this.translate = R, this.transform = E, this.multiply = S, this.applyToPoint = T, this.applyToX = O, this.applyToY = N, this.applyToZ = D, this.applyToPointArray = V, this.applyToTriplePoints = F, this.applyToPointStringified = H, this.toCSS = z, this.to2dCSS =
|
|
29014
|
+
this.reset = o, this.rotate = l, this.rotateX = u, this.rotateY = d, this.rotateZ = f, this.skew = m, this.skewFromAxis = g, this.shear = p, this.scale = b, this.setTransform = _, this.translate = R, this.transform = E, this.multiply = S, this.applyToPoint = T, this.applyToX = O, this.applyToY = N, this.applyToZ = D, this.applyToPointArray = V, this.applyToTriplePoints = F, this.applyToPointStringified = H, this.toCSS = z, this.to2dCSS = Q, this.clone = I, this.cloneFromProps = M, this.equals = A, this.inversePoints = L, this.inversePoint = B, this.getInverseMatrix = j, this._t = this.transform, this.isIdentity = C, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
29015
29015
|
};
|
|
29016
29016
|
}();
|
|
29017
29017
|
function _typeof$3(e) {
|
|
@@ -30572,14 +30572,14 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30572
30572
|
e.justifyOffset = 0;
|
|
30573
30573
|
}
|
|
30574
30574
|
e.lineWidths = S;
|
|
30575
|
-
var W,
|
|
30575
|
+
var W, Q, q, G, U = p.a;
|
|
30576
30576
|
u = U.length;
|
|
30577
|
-
var
|
|
30577
|
+
var Z = [];
|
|
30578
30578
|
for (l = 0; l < u; l += 1) {
|
|
30579
|
-
for ((W = U[l]).a.sc && (e.strokeColorAnim = !0), W.a.sw && (e.strokeWidthAnim = !0), (W.a.fc || W.a.fh || W.a.fs || W.a.fb) && (e.fillColorAnim = !0), G = 0, q = W.s.b, t = 0; t < n; t += 1) (
|
|
30579
|
+
for ((W = U[l]).a.sc && (e.strokeColorAnim = !0), W.a.sw && (e.strokeWidthAnim = !0), (W.a.fc || W.a.fh || W.a.fs || W.a.fb) && (e.fillColorAnim = !0), G = 0, q = W.s.b, t = 0; t < n; t += 1) (Q = m[t]).anIndexes[l] = G, (q == 1 && Q.val !== "" || q == 2 && Q.val !== "" && Q.val !== " " || q == 3 && (Q.n || Q.val == " " || t == n - 1) || q == 4 && (Q.n || t == n - 1)) && (W.s.rn === 1 && Z.push(G), G += 1);
|
|
30580
30580
|
p.a[l].s.totalChars = G;
|
|
30581
30581
|
var K, ee = -1;
|
|
30582
|
-
if (W.s.rn === 1) for (t = 0; t < n; t += 1) ee != (
|
|
30582
|
+
if (W.s.rn === 1) for (t = 0; t < n; t += 1) ee != (Q = m[t]).anIndexes[l] && (ee = Q.anIndexes[l], K = Z.splice(Math.floor(Math.random() * Z.length), 1)[0]), Q.anIndexes[l] = K;
|
|
30583
30583
|
}
|
|
30584
30584
|
e.yOffset = e.finalLineHeight || 1.2 * e.finalSize, e.ls = e.ls || 0, e.ascent = I.ascent * e.finalSize / 100;
|
|
30585
30585
|
}, TextProperty.prototype.updateDocumentData = function(e, t) {
|
|
@@ -30661,9 +30661,9 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30661
30661
|
_ = (R = E[b].points)[g - 1], S = (f = R[g]).partialLength;
|
|
30662
30662
|
}
|
|
30663
30663
|
l = L.length, n = 0, i = 0;
|
|
30664
|
-
var H, z, W,
|
|
30664
|
+
var H, z, W, Q, q, G = 1.2 * e.finalSize * 0.714, U = !0;
|
|
30665
30665
|
W = O.length;
|
|
30666
|
-
var
|
|
30666
|
+
var Z, K, ee, te, oe, ce, ae, le, se, ie, ue, J, fe = -1, ne = d, de = b, pe = g, me = -1, ye = "", he = this.defaultPropsArray;
|
|
30667
30667
|
if (e.j === 2 || e.j === 1) {
|
|
30668
30668
|
var ge = 0, Ee = 0, ve = e.j === 2 ? -0.5 : -1, xe = 0, Se = !0;
|
|
30669
30669
|
for (o = 0; o < l; o += 1) if (L[o].n) {
|
|
@@ -30676,7 +30676,7 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30676
30676
|
for (ge && (ge += Ee); xe < o; ) L[xe].animatorJustifyOffset = ge, xe += 1;
|
|
30677
30677
|
}
|
|
30678
30678
|
for (o = 0; o < l; o += 1) {
|
|
30679
|
-
if (D.reset(), te = 1, L[o].n) n = 0, i += e.yOffset, i += U ? 1 : 0, d = ne, U = !1, this._hasMaskedPath && (g = pe, _ = (R = E[b = de].points)[g - 1], S = (f = R[g]).partialLength, p = 0), ye = "",
|
|
30679
|
+
if (D.reset(), te = 1, L[o].n) n = 0, i += e.yOffset, i += U ? 1 : 0, d = ne, U = !1, this._hasMaskedPath && (g = pe, _ = (R = E[b = de].points)[g - 1], S = (f = R[g]).partialLength, p = 0), ye = "", ue = "", se = "", J = "", he = this.defaultPropsArray;
|
|
30680
30680
|
else {
|
|
30681
30681
|
if (this._hasMaskedPath) {
|
|
30682
30682
|
if (me !== L[o].line) {
|
|
@@ -30693,20 +30693,20 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30693
30693
|
var _e = 0;
|
|
30694
30694
|
for (z = 0; z < W; z += 1) (H = O[z].a).p.propType && ((q = O[z].s.getMult(L[o].anIndexes[z], N.a[z].s.totalChars)).length ? _e += H.p.v[0] * q[0] : _e += H.p.v[0] * q), H.a.propType && ((q = O[z].s.getMult(L[o].anIndexes[z], N.a[z].s.totalChars)).length ? _e += H.a.v[0] * q[0] : _e += H.a.v[0] * q);
|
|
30695
30695
|
for (m = !0, this._pathData.a.v && (d = 0.5 * L[0].an + (C - this._pathData.f.v - 0.5 * L[0].an - 0.5 * L[L.length - 1].an) * fe / (l - 1), d += this._pathData.f.v); m; ) p + S >= d + _e || !R ? (A = (d + _e - p) / f.partialLength, K = _.point[0] + (f.point[0] - _.point[0]) * A, ee = _.point[1] + (f.point[1] - _.point[1]) * A, D.translate(-T[0] * L[o].an * 5e-3, -T[1] * G * 0.01), m = !1) : R && (p += f.partialLength, (g += 1) >= R.length && (g = 0, E[b += 1] ? R = E[b].points : M.v.c ? (g = 0, R = E[b = 0].points) : (p -= f.partialLength, R = null)), R && (_ = f, S = (f = R[g]).partialLength));
|
|
30696
|
-
|
|
30697
|
-
} else
|
|
30696
|
+
Z = L[o].an / 2 - L[o].add, D.translate(-Z, 0, 0);
|
|
30697
|
+
} else Z = L[o].an / 2 - L[o].add, D.translate(-Z, 0, 0), D.translate(-T[0] * L[o].an * 5e-3, -T[1] * G * 0.01, 0);
|
|
30698
30698
|
for (z = 0; z < W; z += 1) (H = O[z].a).t.propType && (q = O[z].s.getMult(L[o].anIndexes[z], N.a[z].s.totalChars), n === 0 && e.j === 0 || (this._hasMaskedPath ? q.length ? d += H.t.v * q[0] : d += H.t.v * q : q.length ? n += H.t.v * q[0] : n += H.t.v * q));
|
|
30699
|
-
for (e.strokeWidthAnim && (
|
|
30699
|
+
for (e.strokeWidthAnim && (ce = e.sw || 0), e.strokeColorAnim && (oe = e.sc ? [e.sc[0], e.sc[1], e.sc[2]] : [0, 0, 0]), e.fillColorAnim && e.fc && (ae = [e.fc[0], e.fc[1], e.fc[2]]), z = 0; z < W; z += 1) (H = O[z].a).a.propType && ((q = O[z].s.getMult(L[o].anIndexes[z], N.a[z].s.totalChars)).length ? D.translate(-H.a.v[0] * q[0], -H.a.v[1] * q[1], H.a.v[2] * q[2]) : D.translate(-H.a.v[0] * q, -H.a.v[1] * q, H.a.v[2] * q));
|
|
30700
30700
|
for (z = 0; z < W; z += 1) (H = O[z].a).s.propType && ((q = O[z].s.getMult(L[o].anIndexes[z], N.a[z].s.totalChars)).length ? D.scale(1 + (H.s.v[0] - 1) * q[0], 1 + (H.s.v[1] - 1) * q[1], 1) : D.scale(1 + (H.s.v[0] - 1) * q, 1 + (H.s.v[1] - 1) * q, 1));
|
|
30701
30701
|
for (z = 0; z < W; z += 1) {
|
|
30702
|
-
if (H = O[z].a, q = O[z].s.getMult(L[o].anIndexes[z], N.a[z].s.totalChars), H.sk.propType && (q.length ? D.skewFromAxis(-H.sk.v * q[0], H.sa.v * q[1]) : D.skewFromAxis(-H.sk.v * q, H.sa.v * q)), H.r.propType && (q.length ? D.rotateZ(-H.r.v * q[2]) : D.rotateZ(-H.r.v * q)), H.ry.propType && (q.length ? D.rotateY(H.ry.v * q[1]) : D.rotateY(H.ry.v * q)), H.rx.propType && (q.length ? D.rotateX(H.rx.v * q[0]) : D.rotateX(H.rx.v * q)), H.o.propType && (q.length ? te += (H.o.v * q[0] - te) * q[0] : te += (H.o.v * q - te) * q), e.strokeWidthAnim && H.sw.propType && (q.length ?
|
|
30702
|
+
if (H = O[z].a, q = O[z].s.getMult(L[o].anIndexes[z], N.a[z].s.totalChars), H.sk.propType && (q.length ? D.skewFromAxis(-H.sk.v * q[0], H.sa.v * q[1]) : D.skewFromAxis(-H.sk.v * q, H.sa.v * q)), H.r.propType && (q.length ? D.rotateZ(-H.r.v * q[2]) : D.rotateZ(-H.r.v * q)), H.ry.propType && (q.length ? D.rotateY(H.ry.v * q[1]) : D.rotateY(H.ry.v * q)), H.rx.propType && (q.length ? D.rotateX(H.rx.v * q[0]) : D.rotateX(H.rx.v * q)), H.o.propType && (q.length ? te += (H.o.v * q[0] - te) * q[0] : te += (H.o.v * q - te) * q), e.strokeWidthAnim && H.sw.propType && (q.length ? ce += H.sw.v * q[0] : ce += H.sw.v * q), e.strokeColorAnim && H.sc.propType) for (le = 0; le < 3; le += 1) q.length ? oe[le] += (H.sc.v[le] - oe[le]) * q[0] : oe[le] += (H.sc.v[le] - oe[le]) * q;
|
|
30703
30703
|
if (e.fillColorAnim && e.fc) {
|
|
30704
|
-
if (H.fc.propType) for (
|
|
30704
|
+
if (H.fc.propType) for (le = 0; le < 3; le += 1) q.length ? ae[le] += (H.fc.v[le] - ae[le]) * q[0] : ae[le] += (H.fc.v[le] - ae[le]) * q;
|
|
30705
30705
|
H.fh.propType && (ae = q.length ? addHueToRGB(ae, H.fh.v * q[0]) : addHueToRGB(ae, H.fh.v * q)), H.fs.propType && (ae = q.length ? addSaturationToRGB(ae, H.fs.v * q[0]) : addSaturationToRGB(ae, H.fs.v * q)), H.fb.propType && (ae = q.length ? addBrightnessToRGB(ae, H.fb.v * q[0]) : addBrightnessToRGB(ae, H.fb.v * q));
|
|
30706
30706
|
}
|
|
30707
30707
|
}
|
|
30708
30708
|
for (z = 0; z < W; z += 1) (H = O[z].a).p.propType && (q = O[z].s.getMult(L[o].anIndexes[z], N.a[z].s.totalChars), this._hasMaskedPath ? q.length ? D.translate(0, H.p.v[1] * q[0], -H.p.v[2] * q[1]) : D.translate(0, H.p.v[1] * q, -H.p.v[2] * q) : q.length ? D.translate(H.p.v[0] * q[0], H.p.v[1] * q[1], -H.p.v[2] * q[2]) : D.translate(H.p.v[0] * q, H.p.v[1] * q, -H.p.v[2] * q));
|
|
30709
|
-
if (e.strokeWidthAnim && (
|
|
30709
|
+
if (e.strokeWidthAnim && (se = ce < 0 ? 0 : ce), e.strokeColorAnim && (ie = "rgb(" + Math.round(255 * oe[0]) + "," + Math.round(255 * oe[1]) + "," + Math.round(255 * oe[2]) + ")"), e.fillColorAnim && e.fc && (ue = "rgb(" + Math.round(255 * ae[0]) + "," + Math.round(255 * ae[1]) + "," + Math.round(255 * ae[2]) + ")"), this._hasMaskedPath) {
|
|
30710
30710
|
if (D.translate(0, -e.ls), D.translate(0, T[1] * G * 0.01 + i, 0), this._pathData.p.v) {
|
|
30711
30711
|
I = (f.point[1] - _.point[1]) / (f.point[0] - _.point[0]);
|
|
30712
30712
|
var we = 180 * Math.atan(I) / Math.PI;
|
|
@@ -30721,11 +30721,11 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30721
30721
|
case 2:
|
|
30722
30722
|
D.translate(L[o].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[L[o].line]) / 2, 0, 0);
|
|
30723
30723
|
}
|
|
30724
|
-
D.translate(0, -e.ls), D.translate(
|
|
30724
|
+
D.translate(0, -e.ls), D.translate(Z, 0, 0), D.translate(T[0] * L[o].an * 5e-3, T[1] * G * 0.01, 0), n += L[o].l + 1e-3 * e.tr * e.finalSize;
|
|
30725
30725
|
}
|
|
30726
|
-
j === "html" ? ye = D.toCSS() : j === "svg" ? ye = D.to2dCSS() : he = [D.props[0], D.props[1], D.props[2], D.props[3], D.props[4], D.props[5], D.props[6], D.props[7], D.props[8], D.props[9], D.props[10], D.props[11], D.props[12], D.props[13], D.props[14], D.props[15]],
|
|
30726
|
+
j === "html" ? ye = D.toCSS() : j === "svg" ? ye = D.to2dCSS() : he = [D.props[0], D.props[1], D.props[2], D.props[3], D.props[4], D.props[5], D.props[6], D.props[7], D.props[8], D.props[9], D.props[10], D.props[11], D.props[12], D.props[13], D.props[14], D.props[15]], J = te;
|
|
30727
30727
|
}
|
|
30728
|
-
B <= o ? (
|
|
30728
|
+
B <= o ? (Q = new LetterProps(J, se, ie, ue, ye, he), this.renderedLetters.push(Q), B += 1, this.lettersChangedFlag = !0) : (Q = this.renderedLetters[o], this.lettersChangedFlag = Q.update(J, se, ie, ue, ye, he) || this.lettersChangedFlag);
|
|
30729
30729
|
}
|
|
30730
30730
|
}
|
|
30731
30731
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -40023,8 +40023,8 @@ function fetchBaseQuery({
|
|
|
40023
40023
|
}) || O;
|
|
40024
40024
|
const z = (te) => typeof te == "object" && (isPlainObject$1(te) || Array.isArray(te) || typeof te.toJSON == "function");
|
|
40025
40025
|
if (!H.headers.has("content-type") && z(H.body) && H.headers.set("content-type", l), z(H.body) && o(H.headers) && (H.body = JSON.stringify(H.body, u)), N) {
|
|
40026
|
-
const te = ~T.indexOf("?") ? "&" : "?",
|
|
40027
|
-
T += te +
|
|
40026
|
+
const te = ~T.indexOf("?") ? "&" : "?", oe = i ? i(N) : new URLSearchParams(stripUndefined(N));
|
|
40027
|
+
T += te + oe;
|
|
40028
40028
|
}
|
|
40029
40029
|
T = joinUrls(e, T);
|
|
40030
40030
|
const W = new Request(T, H);
|
|
@@ -40047,16 +40047,16 @@ function fetchBaseQuery({
|
|
|
40047
40047
|
} finally {
|
|
40048
40048
|
U && clearTimeout(U), F == null || F.signal.removeEventListener("abort", F.abort);
|
|
40049
40049
|
}
|
|
40050
|
-
const
|
|
40051
|
-
M.response =
|
|
40050
|
+
const Z = q.clone();
|
|
40051
|
+
M.response = Z;
|
|
40052
40052
|
let K, ee = "";
|
|
40053
40053
|
try {
|
|
40054
40054
|
let te;
|
|
40055
40055
|
if (await Promise.all([
|
|
40056
|
-
g(q, D).then((
|
|
40056
|
+
g(q, D).then((oe) => K = oe, (oe) => te = oe),
|
|
40057
40057
|
// see https://github.com/node-fetch/node-fetch/issues/665#issuecomment-538995182
|
|
40058
40058
|
// we *have* to "use up" both streams at the same time or they will stop running in node-fetch scenarios
|
|
40059
|
-
|
|
40059
|
+
Z.text().then((oe) => ee = oe, () => {
|
|
40060
40060
|
})
|
|
40061
40061
|
]), te) throw te;
|
|
40062
40062
|
} catch (te) {
|
|
@@ -40189,7 +40189,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40189
40189
|
endpointName: M
|
|
40190
40190
|
});
|
|
40191
40191
|
let W;
|
|
40192
|
-
const
|
|
40192
|
+
const Q = {
|
|
40193
40193
|
...F,
|
|
40194
40194
|
type: "query",
|
|
40195
40195
|
subscribe: D,
|
|
@@ -40201,29 +40201,29 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40201
40201
|
[forceQueryFnSymbol]: L
|
|
40202
40202
|
};
|
|
40203
40203
|
if (isQueryDefinition$1(T))
|
|
40204
|
-
W = t(
|
|
40204
|
+
W = t(Q);
|
|
40205
40205
|
else {
|
|
40206
40206
|
const {
|
|
40207
|
-
direction:
|
|
40208
|
-
initialPageParam:
|
|
40207
|
+
direction: le,
|
|
40208
|
+
initialPageParam: se
|
|
40209
40209
|
} = F;
|
|
40210
40210
|
W = n({
|
|
40211
|
-
...
|
|
40211
|
+
...Q,
|
|
40212
40212
|
// Supply these even if undefined. This helps with a field existence
|
|
40213
40213
|
// check over in `buildSlice.ts`
|
|
40214
|
-
direction:
|
|
40215
|
-
initialPageParam:
|
|
40214
|
+
direction: le,
|
|
40215
|
+
initialPageParam: se
|
|
40216
40216
|
});
|
|
40217
40217
|
}
|
|
40218
40218
|
const q = o.endpoints[M].select(N), G = V(W), U = q(H());
|
|
40219
40219
|
E(V);
|
|
40220
40220
|
const {
|
|
40221
|
-
requestId:
|
|
40221
|
+
requestId: Z,
|
|
40222
40222
|
abort: K
|
|
40223
|
-
} = G, ee = U.requestId !==
|
|
40223
|
+
} = G, ee = U.requestId !== Z, te = (ae = u.get(V)) == null ? void 0 : ae[z], oe = () => q(H()), ce = Object.assign(L ? (
|
|
40224
40224
|
// a query has been forced (upsertQueryData)
|
|
40225
40225
|
// -> we want to resolve it once data has been written with the data that will be written
|
|
40226
|
-
G.then(
|
|
40226
|
+
G.then(oe)
|
|
40227
40227
|
) : ee && !te ? (
|
|
40228
40228
|
// a query has been skipped due to a condition and we do not have any currently running query
|
|
40229
40229
|
// -> we want to resolve it immediately with the current data
|
|
@@ -40231,18 +40231,18 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40231
40231
|
) : (
|
|
40232
40232
|
// query just started or one is already in flight
|
|
40233
40233
|
// -> wait for the running query, then resolve with data from after that
|
|
40234
|
-
Promise.all([te, G]).then(
|
|
40234
|
+
Promise.all([te, G]).then(oe)
|
|
40235
40235
|
), {
|
|
40236
40236
|
arg: N,
|
|
40237
|
-
requestId:
|
|
40237
|
+
requestId: Z,
|
|
40238
40238
|
subscriptionOptions: B,
|
|
40239
40239
|
queryCacheKey: z,
|
|
40240
40240
|
abort: K,
|
|
40241
40241
|
async unwrap() {
|
|
40242
|
-
const
|
|
40243
|
-
if (
|
|
40244
|
-
throw
|
|
40245
|
-
return
|
|
40242
|
+
const le = await ce;
|
|
40243
|
+
if (le.isError)
|
|
40244
|
+
throw le.error;
|
|
40245
|
+
return le.data;
|
|
40246
40246
|
},
|
|
40247
40247
|
refetch: () => V(O(N, {
|
|
40248
40248
|
subscribe: !1,
|
|
@@ -40251,25 +40251,25 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40251
40251
|
unsubscribe() {
|
|
40252
40252
|
D && V(f({
|
|
40253
40253
|
queryCacheKey: z,
|
|
40254
|
-
requestId:
|
|
40254
|
+
requestId: Z
|
|
40255
40255
|
}));
|
|
40256
40256
|
},
|
|
40257
|
-
updateSubscriptionOptions(
|
|
40258
|
-
|
|
40257
|
+
updateSubscriptionOptions(le) {
|
|
40258
|
+
ce.subscriptionOptions = le, V(m({
|
|
40259
40259
|
endpointName: M,
|
|
40260
|
-
requestId:
|
|
40260
|
+
requestId: Z,
|
|
40261
40261
|
queryCacheKey: z,
|
|
40262
|
-
options:
|
|
40262
|
+
options: le
|
|
40263
40263
|
}));
|
|
40264
40264
|
}
|
|
40265
40265
|
});
|
|
40266
40266
|
if (!te && !ee && !L) {
|
|
40267
|
-
const
|
|
40268
|
-
|
|
40269
|
-
delete
|
|
40267
|
+
const le = getOrInsert(u, V, {});
|
|
40268
|
+
le[z] = ce, ce.then(() => {
|
|
40269
|
+
delete le[z], countObjectKeys$1(le) || u.delete(V);
|
|
40270
40270
|
});
|
|
40271
40271
|
}
|
|
40272
|
-
return
|
|
40272
|
+
return ce;
|
|
40273
40273
|
};
|
|
40274
40274
|
return O;
|
|
40275
40275
|
}
|
|
@@ -40305,18 +40305,18 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40305
40305
|
requestId: F,
|
|
40306
40306
|
fixedCacheKey: N
|
|
40307
40307
|
}));
|
|
40308
|
-
},
|
|
40308
|
+
}, Q = Object.assign(z, {
|
|
40309
40309
|
arg: L.arg,
|
|
40310
40310
|
requestId: F,
|
|
40311
40311
|
abort: V,
|
|
40312
40312
|
unwrap: H,
|
|
40313
40313
|
reset: W
|
|
40314
40314
|
}), q = d.get(D) || {};
|
|
40315
|
-
return d.set(D, q), q[F] =
|
|
40315
|
+
return d.set(D, q), q[F] = Q, Q.then(() => {
|
|
40316
40316
|
delete q[F], countObjectKeys$1(q) || d.delete(D);
|
|
40317
|
-
}), N && (q[N] =
|
|
40318
|
-
q[N] ===
|
|
40319
|
-
})),
|
|
40317
|
+
}), N && (q[N] = Q, Q.then(() => {
|
|
40318
|
+
q[N] === Q && (delete q[N], countObjectKeys$1(q) || d.delete(D));
|
|
40319
|
+
})), Q;
|
|
40320
40320
|
};
|
|
40321
40321
|
}
|
|
40322
40322
|
}
|
|
@@ -40352,10 +40352,10 @@ function buildThunks({
|
|
|
40352
40352
|
const W = o.endpoints[D].select(j)(
|
|
40353
40353
|
// Work around TS 4.1 mismatch
|
|
40354
40354
|
V()
|
|
40355
|
-
),
|
|
40355
|
+
), Q = calculateProvidedBy(H.providesTags, W.data, void 0, j, {}, l);
|
|
40356
40356
|
F(o.internalActions.updateProvidedBy({
|
|
40357
40357
|
queryCacheKey: z,
|
|
40358
|
-
providedTags:
|
|
40358
|
+
providedTags: Q
|
|
40359
40359
|
}));
|
|
40360
40360
|
};
|
|
40361
40361
|
function f(D, j, B = 0) {
|
|
@@ -40377,16 +40377,16 @@ function buildThunks({
|
|
|
40377
40377
|
};
|
|
40378
40378
|
if (z.status === "uninitialized")
|
|
40379
40379
|
return W;
|
|
40380
|
-
let
|
|
40380
|
+
let Q;
|
|
40381
40381
|
if ("data" in z)
|
|
40382
40382
|
if (isDraftable(z.data)) {
|
|
40383
40383
|
const [q, G, U] = produceWithPatches(z.data, B);
|
|
40384
|
-
W.patches.push(...G), W.inversePatches.push(...U),
|
|
40384
|
+
W.patches.push(...G), W.inversePatches.push(...U), Q = q;
|
|
40385
40385
|
} else
|
|
40386
|
-
|
|
40386
|
+
Q = B(z.data), W.patches.push({
|
|
40387
40387
|
op: "replace",
|
|
40388
40388
|
path: [],
|
|
40389
|
-
value:
|
|
40389
|
+
value: Q
|
|
40390
40390
|
}), W.inversePatches.push({
|
|
40391
40391
|
op: "replace",
|
|
40392
40392
|
path: [],
|
|
@@ -40408,7 +40408,7 @@ function buildThunks({
|
|
|
40408
40408
|
getState: H,
|
|
40409
40409
|
extra: z
|
|
40410
40410
|
}) => {
|
|
40411
|
-
var
|
|
40411
|
+
var Q;
|
|
40412
40412
|
const W = n[D.endpointName];
|
|
40413
40413
|
try {
|
|
40414
40414
|
let q = b(W, "transformResponse");
|
|
@@ -40423,54 +40423,54 @@ function buildThunks({
|
|
|
40423
40423
|
forced: D.type === "query" ? R(D, H()) : void 0,
|
|
40424
40424
|
queryCacheKey: D.type === "query" ? D.queryCacheKey : void 0
|
|
40425
40425
|
}, U = D.type === "query" ? D[forceQueryFnSymbol] : void 0;
|
|
40426
|
-
let
|
|
40427
|
-
const K = async (te,
|
|
40428
|
-
if (
|
|
40426
|
+
let Z;
|
|
40427
|
+
const K = async (te, oe, ce, ae) => {
|
|
40428
|
+
if (oe == null && te.pages.length)
|
|
40429
40429
|
return Promise.resolve({
|
|
40430
40430
|
data: te
|
|
40431
40431
|
});
|
|
40432
|
-
const
|
|
40432
|
+
const le = {
|
|
40433
40433
|
queryArg: D.originalArgs,
|
|
40434
|
-
pageParam:
|
|
40435
|
-
},
|
|
40434
|
+
pageParam: oe
|
|
40435
|
+
}, se = await ee(le), ie = ae ? f : p;
|
|
40436
40436
|
return {
|
|
40437
40437
|
data: {
|
|
40438
|
-
pages:
|
|
40439
|
-
pageParams:
|
|
40438
|
+
pages: ie(te.pages, se.data, ce),
|
|
40439
|
+
pageParams: ie(te.pageParams, oe, ce)
|
|
40440
40440
|
}
|
|
40441
40441
|
};
|
|
40442
40442
|
};
|
|
40443
40443
|
async function ee(te) {
|
|
40444
|
-
let
|
|
40444
|
+
let oe;
|
|
40445
40445
|
const {
|
|
40446
|
-
extraOptions:
|
|
40446
|
+
extraOptions: ce
|
|
40447
40447
|
} = W;
|
|
40448
|
-
if (U ?
|
|
40449
|
-
const
|
|
40450
|
-
let
|
|
40451
|
-
if (!
|
|
40452
|
-
|
|
40453
|
-
else if (typeof
|
|
40454
|
-
|
|
40455
|
-
else if (
|
|
40456
|
-
|
|
40457
|
-
else if (
|
|
40458
|
-
|
|
40448
|
+
if (U ? oe = U() : W.query ? oe = await t(W.query(te), G, ce) : oe = await W.queryFn(te, G, ce, (le) => t(le, G, ce)), typeof process < "u" && process.env.NODE_ENV === "development") {
|
|
40449
|
+
const le = W.query ? "`baseQuery`" : "`queryFn`";
|
|
40450
|
+
let se;
|
|
40451
|
+
if (!oe)
|
|
40452
|
+
se = `${le} did not return anything.`;
|
|
40453
|
+
else if (typeof oe != "object")
|
|
40454
|
+
se = `${le} did not return an object.`;
|
|
40455
|
+
else if (oe.error && oe.data)
|
|
40456
|
+
se = `${le} returned an object containing both \`error\` and \`result\`.`;
|
|
40457
|
+
else if (oe.error === void 0 && oe.data === void 0)
|
|
40458
|
+
se = `${le} returned an object containing neither a valid \`error\` and \`result\`. At least one of them should not be \`undefined\``;
|
|
40459
40459
|
else
|
|
40460
|
-
for (const
|
|
40461
|
-
if (
|
|
40462
|
-
|
|
40460
|
+
for (const ie of Object.keys(oe))
|
|
40461
|
+
if (ie !== "error" && ie !== "data" && ie !== "meta") {
|
|
40462
|
+
se = `The object returned by ${le} has the unknown property ${ie}.`;
|
|
40463
40463
|
break;
|
|
40464
40464
|
}
|
|
40465
|
-
|
|
40466
|
-
${
|
|
40465
|
+
se && console.error(`Error encountered handling the endpoint ${D.endpointName}.
|
|
40466
|
+
${se}
|
|
40467
40467
|
It needs to return an object with either the shape \`{ data: <value> }\` or \`{ error: <value> }\` that may contain an optional \`meta\` property.
|
|
40468
|
-
Object returned was:`,
|
|
40468
|
+
Object returned was:`, oe);
|
|
40469
40469
|
}
|
|
40470
|
-
if (
|
|
40471
|
-
const ae = await q(
|
|
40470
|
+
if (oe.error) throw new HandledError(oe.error, oe.meta);
|
|
40471
|
+
const ae = await q(oe.data, oe.meta, te);
|
|
40472
40472
|
return {
|
|
40473
|
-
...
|
|
40473
|
+
...oe,
|
|
40474
40474
|
data: ae
|
|
40475
40475
|
};
|
|
40476
40476
|
}
|
|
@@ -40478,34 +40478,34 @@ function buildThunks({
|
|
|
40478
40478
|
const {
|
|
40479
40479
|
infiniteQueryOptions: te
|
|
40480
40480
|
} = W, {
|
|
40481
|
-
maxPages:
|
|
40481
|
+
maxPages: oe = 1 / 0
|
|
40482
40482
|
} = te;
|
|
40483
|
-
let
|
|
40483
|
+
let ce;
|
|
40484
40484
|
const ae = {
|
|
40485
40485
|
pages: [],
|
|
40486
40486
|
pageParams: []
|
|
40487
|
-
},
|
|
40488
|
-
if ("direction" in D && D.direction &&
|
|
40489
|
-
const
|
|
40490
|
-
|
|
40487
|
+
}, le = (Q = u.selectQueryEntry(H(), D.queryCacheKey)) == null ? void 0 : Q.data, ie = /* arg.forceRefetch */ R(D, H()) && !D.direction || !le ? ae : le;
|
|
40488
|
+
if ("direction" in D && D.direction && ie.pages.length) {
|
|
40489
|
+
const ue = D.direction === "backward", fe = (ue ? getPreviousPageParam : getNextPageParam)(te, ie);
|
|
40490
|
+
ce = await K(ie, fe, oe, ue);
|
|
40491
40491
|
} else {
|
|
40492
40492
|
const {
|
|
40493
|
-
initialPageParam:
|
|
40494
|
-
} = D,
|
|
40495
|
-
|
|
40496
|
-
data:
|
|
40493
|
+
initialPageParam: ue = te.initialPageParam
|
|
40494
|
+
} = D, J = (le == null ? void 0 : le.pageParams) ?? [], fe = J[0] ?? ue, ne = J.length;
|
|
40495
|
+
ce = await K(ie, fe, oe), U && (ce = {
|
|
40496
|
+
data: ce.data.pages[0]
|
|
40497
40497
|
});
|
|
40498
40498
|
for (let de = 1; de < ne; de++) {
|
|
40499
|
-
const pe = getNextPageParam(te,
|
|
40500
|
-
|
|
40499
|
+
const pe = getNextPageParam(te, ce.data);
|
|
40500
|
+
ce = await K(ce.data, pe, oe);
|
|
40501
40501
|
}
|
|
40502
40502
|
}
|
|
40503
|
-
|
|
40503
|
+
Z = ce;
|
|
40504
40504
|
} else
|
|
40505
|
-
|
|
40506
|
-
return F(
|
|
40505
|
+
Z = await ee(D.originalArgs);
|
|
40506
|
+
return F(Z.data, addShouldAutoBatch({
|
|
40507
40507
|
fulfilledTimeStamp: Date.now(),
|
|
40508
|
-
baseQueryMeta:
|
|
40508
|
+
baseQueryMeta: Z.meta
|
|
40509
40509
|
}));
|
|
40510
40510
|
} catch (q) {
|
|
40511
40511
|
let G = q;
|
|
@@ -40515,8 +40515,8 @@ function buildThunks({
|
|
|
40515
40515
|
return L(await U(G.value, G.meta, D.originalArgs), addShouldAutoBatch({
|
|
40516
40516
|
baseQueryMeta: G.meta
|
|
40517
40517
|
}));
|
|
40518
|
-
} catch (
|
|
40519
|
-
G =
|
|
40518
|
+
} catch (Z) {
|
|
40519
|
+
G = Z;
|
|
40520
40520
|
}
|
|
40521
40521
|
}
|
|
40522
40522
|
throw typeof process < "u" && process.env.NODE_ENV !== "production" ? console.error(`An unhandled error occurred processing a request for the endpoint "${D.endpointName}".
|
|
@@ -40543,13 +40543,13 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
40543
40543
|
getState: B
|
|
40544
40544
|
}) {
|
|
40545
40545
|
var q;
|
|
40546
|
-
const L = B(), F = u.selectQueryEntry(L, j.queryCacheKey), V = F == null ? void 0 : F.fulfilledTimeStamp, H = j.originalArgs, z = F == null ? void 0 : F.originalArgs, W = n[j.endpointName],
|
|
40546
|
+
const L = B(), F = u.selectQueryEntry(L, j.queryCacheKey), V = F == null ? void 0 : F.fulfilledTimeStamp, H = j.originalArgs, z = F == null ? void 0 : F.originalArgs, W = n[j.endpointName], Q = j.direction;
|
|
40547
40547
|
return isUpsertQuery(j) ? !0 : (F == null ? void 0 : F.status) === "pending" ? !1 : R(j, L) || isQueryDefinition$1(W) && ((q = W == null ? void 0 : W.forceRefetch) != null && q.call(W, {
|
|
40548
40548
|
currentArg: H,
|
|
40549
40549
|
previousArg: z,
|
|
40550
40550
|
endpointState: F,
|
|
40551
40551
|
state: L
|
|
40552
|
-
})) ? !0 : !(V && !
|
|
40552
|
+
})) ? !0 : !(V && !Q);
|
|
40553
40553
|
},
|
|
40554
40554
|
dispatchConditionRejection: !0
|
|
40555
40555
|
}), S = E(), C = E(), A = createAsyncThunk(`${e}/executeMutation`, _, {
|
|
@@ -40559,9 +40559,9 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
40559
40559
|
});
|
|
40560
40560
|
}
|
|
40561
40561
|
}), I = (D) => "force" in D, M = (D) => "ifOlderThan" in D, T = (D, j, B) => (L, F) => {
|
|
40562
|
-
const V = I(B) && B.force, H = M(B) && B.ifOlderThan, z = (
|
|
40562
|
+
const V = I(B) && B.force, H = M(B) && B.ifOlderThan, z = (Q = !0) => {
|
|
40563
40563
|
const q = {
|
|
40564
|
-
forceRefetch:
|
|
40564
|
+
forceRefetch: Q,
|
|
40565
40565
|
isPrefetch: !0
|
|
40566
40566
|
};
|
|
40567
40567
|
return o.endpoints[D].initiate(j, q);
|
|
@@ -40569,12 +40569,12 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
40569
40569
|
if (V)
|
|
40570
40570
|
L(z());
|
|
40571
40571
|
else if (H) {
|
|
40572
|
-
const
|
|
40573
|
-
if (!
|
|
40572
|
+
const Q = W == null ? void 0 : W.fulfilledTimeStamp;
|
|
40573
|
+
if (!Q) {
|
|
40574
40574
|
L(z());
|
|
40575
40575
|
return;
|
|
40576
40576
|
}
|
|
40577
|
-
(Number(/* @__PURE__ */ new Date()) - Number(new Date(
|
|
40577
|
+
(Number(/* @__PURE__ */ new Date()) - Number(new Date(Q))) / 1e3 >= H && L(z());
|
|
40578
40578
|
} else
|
|
40579
40579
|
L(z(!1));
|
|
40580
40580
|
};
|
|
@@ -40677,13 +40677,13 @@ function buildSlice({
|
|
|
40677
40677
|
baseQueryMeta: z,
|
|
40678
40678
|
requestId: W
|
|
40679
40679
|
} = D;
|
|
40680
|
-
let
|
|
40680
|
+
let Q = produce(L.data, (q) => F(q, j, {
|
|
40681
40681
|
arg: H.originalArgs,
|
|
40682
40682
|
baseQueryMeta: z,
|
|
40683
40683
|
fulfilledTimeStamp: V,
|
|
40684
40684
|
requestId: W
|
|
40685
40685
|
}));
|
|
40686
|
-
L.data =
|
|
40686
|
+
L.data = Q;
|
|
40687
40687
|
} else
|
|
40688
40688
|
L.data = j;
|
|
40689
40689
|
else
|
|
@@ -40910,9 +40910,9 @@ function buildSlice({
|
|
|
40910
40910
|
} = u(j);
|
|
40911
40911
|
for (const [V, H] of Object.entries(B))
|
|
40912
40912
|
for (const [z, W] of Object.entries(H)) {
|
|
40913
|
-
const
|
|
40913
|
+
const Q = (L = D[V] ?? (D[V] = {}))[F = z || "__internal_without_id"] ?? (L[F] = []);
|
|
40914
40914
|
for (const q of W)
|
|
40915
|
-
|
|
40915
|
+
Q.includes(q) || Q.push(q);
|
|
40916
40916
|
}
|
|
40917
40917
|
}).addMatcher(isAnyOf(isFulfilled(t), isRejectedWithValue(t)), (D, j) => {
|
|
40918
40918
|
S(D, j);
|
|
@@ -41503,7 +41503,7 @@ var THIRTY_TWO_BIT_MAX_TIMER_SECONDS = 2147483647 / 1e3 - 1, buildCacheCollectio
|
|
|
41503
41503
|
})]);
|
|
41504
41504
|
B.catch(() => {
|
|
41505
41505
|
}), g[I] = D;
|
|
41506
|
-
const L = e.endpoints[C].select(O.type === "query" ? A : I), F = M.dispatch((z, W,
|
|
41506
|
+
const L = e.endpoints[C].select(O.type === "query" ? A : I), F = M.dispatch((z, W, Q) => Q), V = {
|
|
41507
41507
|
...M,
|
|
41508
41508
|
getCacheEntry: () => L(M.getState()),
|
|
41509
41509
|
requestId: T,
|
|
@@ -41883,11 +41883,11 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
41883
41883
|
const {
|
|
41884
41884
|
buildInitiateQuery: z,
|
|
41885
41885
|
buildInitiateInfiniteQuery: W,
|
|
41886
|
-
buildInitiateMutation:
|
|
41886
|
+
buildInitiateMutation: Q,
|
|
41887
41887
|
getRunningMutationThunk: q,
|
|
41888
41888
|
getRunningMutationsThunk: G,
|
|
41889
41889
|
getRunningQueriesThunk: U,
|
|
41890
|
-
getRunningQueryThunk:
|
|
41890
|
+
getRunningQueryThunk: Z
|
|
41891
41891
|
} = buildInitiate({
|
|
41892
41892
|
queryThunk: I,
|
|
41893
41893
|
mutationThunk: T,
|
|
@@ -41899,22 +41899,22 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
41899
41899
|
return safeAssign$1(t.util, {
|
|
41900
41900
|
getRunningMutationThunk: q,
|
|
41901
41901
|
getRunningMutationsThunk: G,
|
|
41902
|
-
getRunningQueryThunk:
|
|
41902
|
+
getRunningQueryThunk: Z,
|
|
41903
41903
|
getRunningQueriesThunk: U
|
|
41904
41904
|
}), {
|
|
41905
41905
|
name: coreModuleName,
|
|
41906
41906
|
injectEndpoint(K, ee) {
|
|
41907
|
-
var
|
|
41908
|
-
const
|
|
41909
|
-
isQueryDefinition$1(ee) && safeAssign$1(
|
|
41907
|
+
var ce;
|
|
41908
|
+
const oe = (ce = t.endpoints)[K] ?? (ce[K] = {});
|
|
41909
|
+
isQueryDefinition$1(ee) && safeAssign$1(oe, {
|
|
41910
41910
|
name: K,
|
|
41911
41911
|
select: S(K, ee),
|
|
41912
41912
|
initiate: z(K, ee)
|
|
41913
|
-
}, B(I, K)), isMutationDefinition$1(ee) && safeAssign$1(
|
|
41913
|
+
}, B(I, K)), isMutationDefinition$1(ee) && safeAssign$1(oe, {
|
|
41914
41914
|
name: K,
|
|
41915
41915
|
select: A(),
|
|
41916
|
-
initiate:
|
|
41917
|
-
}, B(T, K)), isInfiniteQueryDefinition$1(ee) && safeAssign$1(
|
|
41916
|
+
initiate: Q(K)
|
|
41917
|
+
}, B(T, K)), isInfiniteQueryDefinition$1(ee) && safeAssign$1(oe, {
|
|
41918
41918
|
name: K,
|
|
41919
41919
|
select: C(K, ee),
|
|
41920
41920
|
initiate: W(K, ee)
|
|
@@ -42344,11 +42344,11 @@ function buildHooks({
|
|
|
42344
42344
|
initiate: V
|
|
42345
42345
|
} = e.endpoints[M], H = n(), z = useRef(void 0);
|
|
42346
42346
|
if (!z.current) {
|
|
42347
|
-
const
|
|
42348
|
-
if (process.env.NODE_ENV !== "production" && (typeof
|
|
42347
|
+
const ce = H(e.internalActions.internal_getRTKQSubscriptions());
|
|
42348
|
+
if (process.env.NODE_ENV !== "production" && (typeof ce != "object" || typeof (ce == null ? void 0 : ce.type) == "string"))
|
|
42349
42349
|
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(37) : `Warning: Middleware for RTK-Query API at reducerPath "${e.reducerPath}" has not been added to the store.
|
|
42350
42350
|
You must add the middleware for RTK-Query to function correctly!`);
|
|
42351
|
-
z.current =
|
|
42351
|
+
z.current = ce;
|
|
42352
42352
|
}
|
|
42353
42353
|
const W = useStableQueryArgs(
|
|
42354
42354
|
j ? skipToken : T,
|
|
@@ -42360,42 +42360,42 @@ function buildHooks({
|
|
|
42360
42360
|
defaultSerializeQueryArgs,
|
|
42361
42361
|
f.endpointDefinitions[M],
|
|
42362
42362
|
M
|
|
42363
|
-
),
|
|
42363
|
+
), Q = useShallowStableValue({
|
|
42364
42364
|
refetchOnReconnect: O,
|
|
42365
42365
|
refetchOnFocus: N,
|
|
42366
42366
|
pollingInterval: B,
|
|
42367
42367
|
skipPollingIfUnfocused: L
|
|
42368
|
-
}), q = useRef(!1), G = F.initialPageParam, U = useShallowStableValue(G),
|
|
42368
|
+
}), q = useRef(!1), G = F.initialPageParam, U = useShallowStableValue(G), Z = useRef(void 0);
|
|
42369
42369
|
let {
|
|
42370
42370
|
queryCacheKey: K,
|
|
42371
42371
|
requestId: ee
|
|
42372
|
-
} =
|
|
42372
|
+
} = Z.current || {}, te = !1;
|
|
42373
42373
|
K && ee && (te = z.current.isRequestSubscribed(K, ee));
|
|
42374
|
-
const
|
|
42374
|
+
const oe = !te && q.current;
|
|
42375
42375
|
return p(() => {
|
|
42376
42376
|
q.current = te;
|
|
42377
42377
|
}), p(() => {
|
|
42378
|
-
|
|
42379
|
-
}, [
|
|
42380
|
-
var
|
|
42381
|
-
const
|
|
42382
|
-
if (typeof process < "u" && process.env.NODE_ENV === "removeMeOnCompilation" && console.log(
|
|
42383
|
-
|
|
42378
|
+
oe && (Z.current = void 0);
|
|
42379
|
+
}, [oe]), p(() => {
|
|
42380
|
+
var le;
|
|
42381
|
+
const ce = Z.current;
|
|
42382
|
+
if (typeof process < "u" && process.env.NODE_ENV === "removeMeOnCompilation" && console.log(oe), W === skipToken) {
|
|
42383
|
+
ce == null || ce.unsubscribe(), Z.current = void 0;
|
|
42384
42384
|
return;
|
|
42385
42385
|
}
|
|
42386
|
-
const ae = (
|
|
42387
|
-
if (!
|
|
42388
|
-
|
|
42389
|
-
const
|
|
42390
|
-
subscriptionOptions:
|
|
42386
|
+
const ae = (le = Z.current) == null ? void 0 : le.subscriptionOptions;
|
|
42387
|
+
if (!ce || ce.arg !== W) {
|
|
42388
|
+
ce == null || ce.unsubscribe();
|
|
42389
|
+
const se = H(V(W, {
|
|
42390
|
+
subscriptionOptions: Q,
|
|
42391
42391
|
forceRefetch: D,
|
|
42392
42392
|
...isInfiniteQueryDefinition(f.endpointDefinitions[M]) ? {
|
|
42393
42393
|
initialPageParam: U
|
|
42394
42394
|
} : {}
|
|
42395
42395
|
}));
|
|
42396
|
-
|
|
42397
|
-
} else
|
|
42398
|
-
}, [H, V, D, W,
|
|
42396
|
+
Z.current = se;
|
|
42397
|
+
} else Q !== ae && ce.updateSubscriptionOptions(Q);
|
|
42398
|
+
}, [H, V, D, W, Q, oe, U, M]), [Z, H, V, Q];
|
|
42399
42399
|
}
|
|
42400
42400
|
function R(M, T) {
|
|
42401
42401
|
return (N, {
|
|
@@ -42423,10 +42423,10 @@ function buildHooks({
|
|
|
42423
42423
|
devModeChecks: {
|
|
42424
42424
|
identityFunctionCheck: "never"
|
|
42425
42425
|
}
|
|
42426
|
-
}) : V, [V, j]), z = i((q) => H(q, F.current), shallowEqual), W = o(),
|
|
42426
|
+
}) : V, [V, j]), z = i((q) => H(q, F.current), shallowEqual), W = o(), Q = V(W.getState(), F.current);
|
|
42427
42427
|
return useIsomorphicLayoutEffect(() => {
|
|
42428
|
-
F.current =
|
|
42429
|
-
}, [
|
|
42428
|
+
F.current = Q;
|
|
42429
|
+
}, [Q]), z;
|
|
42430
42430
|
};
|
|
42431
42431
|
}
|
|
42432
42432
|
function E(M) {
|
|
@@ -42456,7 +42456,7 @@ function buildHooks({
|
|
|
42456
42456
|
} = {}) => {
|
|
42457
42457
|
const {
|
|
42458
42458
|
initiate: F
|
|
42459
|
-
} = e.endpoints[M], V = n(), [H, z] = useState(UNINITIALIZED_VALUE), W = useRef(void 0),
|
|
42459
|
+
} = e.endpoints[M], V = n(), [H, z] = useState(UNINITIALIZED_VALUE), W = useRef(void 0), Q = useShallowStableValue({
|
|
42460
42460
|
refetchOnReconnect: D,
|
|
42461
42461
|
refetchOnFocus: j,
|
|
42462
42462
|
pollingInterval: B,
|
|
@@ -42464,31 +42464,31 @@ function buildHooks({
|
|
|
42464
42464
|
});
|
|
42465
42465
|
p(() => {
|
|
42466
42466
|
var K, ee;
|
|
42467
|
-
const
|
|
42468
|
-
|
|
42469
|
-
}, [
|
|
42470
|
-
const q = useRef(
|
|
42467
|
+
const Z = (K = W.current) == null ? void 0 : K.subscriptionOptions;
|
|
42468
|
+
Q !== Z && ((ee = W.current) == null || ee.updateSubscriptionOptions(Q));
|
|
42469
|
+
}, [Q]);
|
|
42470
|
+
const q = useRef(Q);
|
|
42471
42471
|
p(() => {
|
|
42472
|
-
q.current =
|
|
42473
|
-
}, [
|
|
42474
|
-
const G = useCallback(function(
|
|
42472
|
+
q.current = Q;
|
|
42473
|
+
}, [Q]);
|
|
42474
|
+
const G = useCallback(function(Z, K = !1) {
|
|
42475
42475
|
let ee;
|
|
42476
42476
|
return t(() => {
|
|
42477
42477
|
var te;
|
|
42478
|
-
(te = W.current) == null || te.unsubscribe(), W.current = ee = V(F(
|
|
42478
|
+
(te = W.current) == null || te.unsubscribe(), W.current = ee = V(F(Z, {
|
|
42479
42479
|
subscriptionOptions: q.current,
|
|
42480
42480
|
forceRefetch: !K
|
|
42481
|
-
})), z(
|
|
42481
|
+
})), z(Z);
|
|
42482
42482
|
}), ee;
|
|
42483
42483
|
}, [V, F]), U = useCallback(() => {
|
|
42484
|
-
var
|
|
42485
|
-
(
|
|
42484
|
+
var Z, K;
|
|
42485
|
+
(Z = W.current) != null && Z.queryCacheKey && V(e.internalActions.removeQueryResult({
|
|
42486
42486
|
queryCacheKey: (K = W.current) == null ? void 0 : K.queryCacheKey
|
|
42487
42487
|
}));
|
|
42488
42488
|
}, [V]);
|
|
42489
42489
|
return useEffect(() => () => {
|
|
42490
|
-
var
|
|
42491
|
-
(
|
|
42490
|
+
var Z;
|
|
42491
|
+
(Z = W == null ? void 0 : W.current) == null || Z.unsubscribe();
|
|
42492
42492
|
}, []), useEffect(() => {
|
|
42493
42493
|
H !== UNINITIALIZED_VALUE && !W.current && G(H, !0);
|
|
42494
42494
|
}, [H, G]), useMemo(() => [G, H, {
|
|
@@ -42532,14 +42532,14 @@ function buildHooks({
|
|
|
42532
42532
|
V.current = F;
|
|
42533
42533
|
}, [F]);
|
|
42534
42534
|
const H = useCallback(function(z, W) {
|
|
42535
|
-
let
|
|
42535
|
+
let Q;
|
|
42536
42536
|
return t(() => {
|
|
42537
42537
|
var q;
|
|
42538
|
-
(q = j.current) == null || q.unsubscribe(), j.current =
|
|
42538
|
+
(q = j.current) == null || q.unsubscribe(), j.current = Q = B(L(z, {
|
|
42539
42539
|
subscriptionOptions: V.current,
|
|
42540
42540
|
direction: W
|
|
42541
42541
|
}));
|
|
42542
|
-
}),
|
|
42542
|
+
}), Q;
|
|
42543
42543
|
}, [j, B, L]);
|
|
42544
42544
|
return E(j), useMemo(() => ({
|
|
42545
42545
|
trigger: H,
|
|
@@ -42584,8 +42584,8 @@ function buildHooks({
|
|
|
42584
42584
|
useEffect(() => () => {
|
|
42585
42585
|
B != null && B.arg.fixedCacheKey || B == null || B.reset();
|
|
42586
42586
|
}, [B]);
|
|
42587
|
-
const F = useCallback(function(
|
|
42588
|
-
const K = j(D(
|
|
42587
|
+
const F = useCallback(function(Z) {
|
|
42588
|
+
const K = j(D(Z, {
|
|
42589
42589
|
fixedCacheKey: O
|
|
42590
42590
|
}));
|
|
42591
42591
|
return L(K), K;
|
|
@@ -42594,7 +42594,7 @@ function buildHooks({
|
|
|
42594
42594
|
} = B || {}, H = useMemo(() => N({
|
|
42595
42595
|
fixedCacheKey: O,
|
|
42596
42596
|
requestId: B == null ? void 0 : B.requestId
|
|
42597
|
-
}), [O, B, N]), z = useMemo(() => T ? u([H], T) : H, [T, H]), W = i(z, shallowEqual),
|
|
42597
|
+
}), [O, B, N]), z = useMemo(() => T ? u([H], T) : H, [T, H]), W = i(z, shallowEqual), Q = O == null ? B == null ? void 0 : B.arg.originalArgs : void 0, q = useCallback(() => {
|
|
42598
42598
|
t(() => {
|
|
42599
42599
|
B && L(void 0), O && j(e.internalActions.removeMutationResult({
|
|
42600
42600
|
requestId: V,
|
|
@@ -42605,9 +42605,9 @@ function buildHooks({
|
|
|
42605
42605
|
useDebugValue(G);
|
|
42606
42606
|
const U = useMemo(() => ({
|
|
42607
42607
|
...W,
|
|
42608
|
-
originalArgs:
|
|
42608
|
+
originalArgs: Q,
|
|
42609
42609
|
reset: q
|
|
42610
|
-
}), [W,
|
|
42610
|
+
}), [W, Q, q]);
|
|
42611
42611
|
return useMemo(() => [F, U], [F, U]);
|
|
42612
42612
|
};
|
|
42613
42613
|
}
|
|
@@ -46135,20 +46135,20 @@ function useAIAssistant({ userId: e, apiKey: t }) {
|
|
|
46135
46135
|
}
|
|
46136
46136
|
};
|
|
46137
46137
|
if (V && F) {
|
|
46138
|
-
const
|
|
46138
|
+
const Q = {
|
|
46139
46139
|
role: "assistant",
|
|
46140
46140
|
content: F,
|
|
46141
46141
|
timestamp: /* @__PURE__ */ new Date(),
|
|
46142
46142
|
isComponent: !0
|
|
46143
46143
|
};
|
|
46144
|
-
d((q) => [...q,
|
|
46144
|
+
d((q) => [...q, Q]);
|
|
46145
46145
|
}
|
|
46146
46146
|
const W = {
|
|
46147
46147
|
role: "assistant",
|
|
46148
46148
|
content: (await o.sendMessage([H])).response.text(),
|
|
46149
46149
|
timestamp: /* @__PURE__ */ new Date()
|
|
46150
46150
|
};
|
|
46151
|
-
d((
|
|
46151
|
+
d((Q) => [...Q, W]);
|
|
46152
46152
|
}
|
|
46153
46153
|
} catch (B) {
|
|
46154
46154
|
console.error("Error executing function:", B);
|
|
@@ -47762,7 +47762,7 @@ _Parser.parse;
|
|
|
47762
47762
|
_Lexer.lex;
|
|
47763
47763
|
const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
47764
47764
|
({ userId: e, userName: t, apiKey: n, inputRef: i }, o) => {
|
|
47765
|
-
var G, U,
|
|
47765
|
+
var G, U, Z;
|
|
47766
47766
|
const { data: l } = useGetV4PartnerByApplicationIdBusinessDevelopmentConversationsQuery({ applicationId: e }), [u] = useLazyGetV4PartnerByApplicationIdBusinessDevelopmentConversationAndConversationIdMessagesQuery(), {
|
|
47767
47767
|
handleSubmitToBot: d,
|
|
47768
47768
|
botMessages: f,
|
|
@@ -47781,11 +47781,11 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
47781
47781
|
messages: [],
|
|
47782
47782
|
conversationID: -1
|
|
47783
47783
|
}, ee = l.map((te) => {
|
|
47784
|
-
var
|
|
47784
|
+
var oe;
|
|
47785
47785
|
return {
|
|
47786
47786
|
partner1: [te.Participant1, te.Participant2].sort()[0],
|
|
47787
47787
|
partner2: [te.Participant1, te.Participant2].sort()[1],
|
|
47788
|
-
name: ((
|
|
47788
|
+
name: ((oe = te.Participant) == null ? void 0 : oe.PublicName) ?? "missing public name",
|
|
47789
47789
|
unread: 0,
|
|
47790
47790
|
pending: te.Status != "Approved",
|
|
47791
47791
|
historyFetched: !1,
|
|
@@ -47822,9 +47822,9 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
47822
47822
|
function z(K) {
|
|
47823
47823
|
const ee = [K.fromPartnerID, K.toPartnerID];
|
|
47824
47824
|
ee.sort(), M((te) => {
|
|
47825
|
-
let
|
|
47826
|
-
const ae = te.map((
|
|
47827
|
-
return !
|
|
47825
|
+
let oe = !1, ce = !1;
|
|
47826
|
+
const ae = te.map((le) => le.partner1 !== ee[0] || le.partner2 !== ee[1] || (ce = !0, le.messages.findIndex((se) => se.id == K.id) !== -1) ? le : (oe = !0, { ...le, unread: le.unread + 1, messages: [...le.messages, K] }));
|
|
47827
|
+
return !ce && ee[0] !== e && ee[1] !== e ? (console.log("(bug) server sent a message to us by mistake."), ae) : (oe && A([ee[0], ee[1]]), ae);
|
|
47828
47828
|
});
|
|
47829
47829
|
}
|
|
47830
47830
|
useEffect(() => {
|
|
@@ -47845,35 +47845,35 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
47845
47845
|
if (!_)
|
|
47846
47846
|
return;
|
|
47847
47847
|
const K = getActiveChatObject(I, _);
|
|
47848
|
-
K && ((ee = V.current) == null || ee.focus(), K.historyFetched ? (M((te) => te.map((
|
|
47848
|
+
K && ((ee = V.current) == null || ee.focus(), K.historyFetched ? (M((te) => te.map((oe) => oe.partner1 === _[0] && oe.partner2 === _[1] ? { ...oe, unread: 0 } : oe)), setTimeout(() => {
|
|
47849
47849
|
var te;
|
|
47850
47850
|
return (te = L.current) == null ? void 0 : te.scrollIntoView({ behavior: "smooth" });
|
|
47851
47851
|
}, 50)) : u({
|
|
47852
47852
|
applicationId: e,
|
|
47853
47853
|
conversationId: K.conversationID
|
|
47854
47854
|
}).unwrap().then((te) => {
|
|
47855
|
-
const
|
|
47856
|
-
id: "history" +
|
|
47857
|
-
fromPartnerID:
|
|
47858
|
-
toPartnerID:
|
|
47859
|
-
senderName:
|
|
47860
|
-
timestamp: (/* @__PURE__ */ new Date(
|
|
47861
|
-
content:
|
|
47855
|
+
const oe = te.map((ce) => ({
|
|
47856
|
+
id: "history" + ce.MessageId,
|
|
47857
|
+
fromPartnerID: ce.SenderId,
|
|
47858
|
+
toPartnerID: ce.SenderId == _[0] ? _[1] : _[0],
|
|
47859
|
+
senderName: ce.SenderName ?? "missing name",
|
|
47860
|
+
timestamp: (/* @__PURE__ */ new Date(ce.SentDate + "Z")).getTime(),
|
|
47861
|
+
content: ce.Content ?? "no content"
|
|
47862
47862
|
}));
|
|
47863
|
-
M((
|
|
47863
|
+
M((ce) => ce.map((ae) => ae.partner1 === _[0] && ae.partner2 === _[1] ? {
|
|
47864
47864
|
...ae,
|
|
47865
|
-
messages:
|
|
47865
|
+
messages: oe,
|
|
47866
47866
|
historyFetched: !0
|
|
47867
47867
|
} : ae)), setTimeout(() => {
|
|
47868
|
-
var
|
|
47869
|
-
return (
|
|
47868
|
+
var ce;
|
|
47869
|
+
return (ce = L.current) == null ? void 0 : ce.scrollIntoView({ behavior: "smooth" });
|
|
47870
47870
|
}, 100);
|
|
47871
47871
|
}).catch((te) => {
|
|
47872
47872
|
console.error("Error fetching conversation messages:", te);
|
|
47873
47873
|
}));
|
|
47874
47874
|
}, [_, u, e]);
|
|
47875
47875
|
const W = (K, ee, te) => {
|
|
47876
|
-
const
|
|
47876
|
+
const oe = {
|
|
47877
47877
|
id: crypto.randomUUID(),
|
|
47878
47878
|
senderName: t,
|
|
47879
47879
|
fromPartnerID: e,
|
|
@@ -47881,14 +47881,14 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
47881
47881
|
content: K,
|
|
47882
47882
|
timestamp: Date.now()
|
|
47883
47883
|
};
|
|
47884
|
-
M((
|
|
47885
|
-
},
|
|
47884
|
+
M((ce) => ce.map((ae) => ae.partner1 === ee[0] && ae.partner2 === ee[1] ? { ...ae, messages: [...ae.messages, oe] } : ae)), A([ee[0], ee[1]]), oe.toPartnerID == ASSISTANT_ID ? d(oe.content) : te.invoke("NewMessage", oe).catch((ce) => console.error("Error sending message:", ce)), S("");
|
|
47885
|
+
}, Q = (K, ee) => {
|
|
47886
47886
|
if (!I.length || !N || !p) return !1;
|
|
47887
|
-
const te = I.find((
|
|
47887
|
+
const te = I.find((oe) => oe.conversationID === K);
|
|
47888
47888
|
return te ? (R([te.partner1, te.partner2]), ee && setTimeout(() => W(ee, [te.partner1, te.partner2], N), 100), !0) : !1;
|
|
47889
47889
|
};
|
|
47890
47890
|
if (useImperativeHandle(o, () => ({
|
|
47891
|
-
setActiveChatAndSendMessage:
|
|
47891
|
+
setActiveChatAndSendMessage: Q
|
|
47892
47892
|
})), !p)
|
|
47893
47893
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
47894
47894
|
/* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4" }),
|
|
@@ -47935,7 +47935,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
47935
47935
|
/* @__PURE__ */ jsx(
|
|
47936
47936
|
ChatMessages,
|
|
47937
47937
|
{
|
|
47938
|
-
messages: ((
|
|
47938
|
+
messages: ((Z = getActiveChatObject(I, _)) == null ? void 0 : Z.messages) ?? [],
|
|
47939
47939
|
currentUserId: e,
|
|
47940
47940
|
isWaitingForBot: m && _ && (_[0] === ASSISTANT_ID || _[1] === ASSISTANT_ID)
|
|
47941
47941
|
}
|
|
@@ -48520,49 +48520,49 @@ function ProductCard({
|
|
|
48520
48520
|
syncToShopifyAction: f,
|
|
48521
48521
|
isSyncToShopifyActionLoading: p = !1
|
|
48522
48522
|
}) {
|
|
48523
|
-
var G, U,
|
|
48524
|
-
const [m, g] = useState(1), [b, _] = useState(null), [R, E] = useState(0), [S, C] = useState(!1), A = ((G = e == null ? void 0 : e.Distribution) == null ? void 0 : G.Cost) || 0, I = ((U = e == null ? void 0 : e.Distribution) == null ? void 0 : U.RegularPrice) || 0, M = ((
|
|
48523
|
+
var G, U, Z, K, ee, te, oe, ce, ae, le, se;
|
|
48524
|
+
const [m, g] = useState(1), [b, _] = useState(null), [R, E] = useState(0), [S, C] = useState(!1), A = ((G = e == null ? void 0 : e.Distribution) == null ? void 0 : G.Cost) || 0, I = ((U = e == null ? void 0 : e.Distribution) == null ? void 0 : U.RegularPrice) || 0, M = ((Z = e == null ? void 0 : e.Distribution) == null ? void 0 : Z.Price) || 0;
|
|
48525
48525
|
useEffect(() => {
|
|
48526
48526
|
g(1), _(null), E(0), C(!1);
|
|
48527
48527
|
}, [e == null ? void 0 : e.RandmarSKU]);
|
|
48528
48528
|
const [T, O] = useState(null), [N, D] = useState(!1);
|
|
48529
48529
|
useEffect(() => {
|
|
48530
|
-
const
|
|
48530
|
+
const ie = async () => {
|
|
48531
48531
|
if (e != null && e.ManufacturerId) {
|
|
48532
48532
|
D(!0);
|
|
48533
48533
|
try {
|
|
48534
|
-
const
|
|
48534
|
+
const ue = await fetch(
|
|
48535
48535
|
`https://api.randmar.io/V4/Partner/${e.ManufacturerId}/Account/Logo?width=60&height=40`
|
|
48536
48536
|
);
|
|
48537
|
-
if (
|
|
48538
|
-
const
|
|
48539
|
-
O(URL.createObjectURL(
|
|
48537
|
+
if (ue.ok) {
|
|
48538
|
+
const J = await ue.blob();
|
|
48539
|
+
O(URL.createObjectURL(J));
|
|
48540
48540
|
}
|
|
48541
|
-
} catch (
|
|
48542
|
-
console.error("Failed to load logo:",
|
|
48541
|
+
} catch (ue) {
|
|
48542
|
+
console.error("Failed to load logo:", ue);
|
|
48543
48543
|
} finally {
|
|
48544
48544
|
D(!1);
|
|
48545
48545
|
}
|
|
48546
48546
|
}
|
|
48547
48547
|
};
|
|
48548
|
-
e != null && e.ManufacturerId &&
|
|
48548
|
+
e != null && e.ManufacturerId && ie();
|
|
48549
48549
|
}, [e == null ? void 0 : e.ManufacturerId]), useEffect(() => {
|
|
48550
|
-
var
|
|
48550
|
+
var ie;
|
|
48551
48551
|
if (e && o) {
|
|
48552
|
-
const
|
|
48553
|
-
|
|
48552
|
+
const ue = (ie = e.Opportunities) == null ? void 0 : ie.find((J) => J.BidNumber == o);
|
|
48553
|
+
ue && _(ue);
|
|
48554
48554
|
}
|
|
48555
48555
|
}, [e, o]), useEffect(() => {
|
|
48556
48556
|
if (!e) return;
|
|
48557
|
-
const
|
|
48558
|
-
E(I > 0 ? Math.round((I -
|
|
48557
|
+
const ie = b != null && b.Price ? b.Price : M;
|
|
48558
|
+
E(I > 0 ? Math.round((I - ie) / I * 100) : 0);
|
|
48559
48559
|
}, [e, b, M, I]), useEffect(() => {
|
|
48560
48560
|
d || g(1);
|
|
48561
48561
|
}, [d]);
|
|
48562
|
-
const j = (
|
|
48563
|
-
if (
|
|
48564
|
-
const
|
|
48565
|
-
return !(
|
|
48562
|
+
const j = (ie) => {
|
|
48563
|
+
if (ie.Active !== !0) return !1;
|
|
48564
|
+
const ue = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
48565
|
+
return !(ie.EndDate && ie.EndDate.split("T")[0] < ue || ie.StartDate && ie.StartDate.split("T")[0] > ue);
|
|
48566
48566
|
};
|
|
48567
48567
|
if (!e)
|
|
48568
48568
|
return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
|
|
@@ -48629,20 +48629,20 @@ function ProductCard({
|
|
|
48629
48629
|
return;
|
|
48630
48630
|
}
|
|
48631
48631
|
g(m + 1);
|
|
48632
|
-
}, H = (
|
|
48633
|
-
const
|
|
48634
|
-
if (!isNaN(
|
|
48635
|
-
g(
|
|
48632
|
+
}, H = (ie) => {
|
|
48633
|
+
const ue = parseInt(ie.target.value, 10);
|
|
48634
|
+
if (!isNaN(ue) && ue > 0) {
|
|
48635
|
+
g(ue);
|
|
48636
48636
|
return;
|
|
48637
48637
|
}
|
|
48638
48638
|
g(void 0);
|
|
48639
48639
|
}, z = () => {
|
|
48640
48640
|
(m == null || m < 1) && g(1);
|
|
48641
|
-
}, W = ((ee = (K = e.Distribution) == null ? void 0 : K.Inventory) == null ? void 0 : ee.reduce((
|
|
48641
|
+
}, W = ((ee = (K = e.Distribution) == null ? void 0 : K.Inventory) == null ? void 0 : ee.reduce((ie, ue) => ie + (ue.AvailableQuantity || 0), 0)) || 0, Q = (ie) => {
|
|
48642
48642
|
try {
|
|
48643
|
-
return new Date(
|
|
48644
|
-
} catch (
|
|
48645
|
-
return console.error(
|
|
48643
|
+
return new Date(ie).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
|
|
48644
|
+
} catch (ue) {
|
|
48645
|
+
return console.error(ue), ie.split("T")[0] || "N/A";
|
|
48646
48646
|
}
|
|
48647
48647
|
}, q = () => {
|
|
48648
48648
|
u && u({ quantity: m ?? 1, bidNumber: (b == null ? void 0 : b.BidNumber) ?? null });
|
|
@@ -48690,26 +48690,27 @@ function ProductCard({
|
|
|
48690
48690
|
/* @__PURE__ */ jsx(CircleDashed, { size: "12", className: "mr-1.5" }),
|
|
48691
48691
|
" Transparency Code"
|
|
48692
48692
|
] }),
|
|
48693
|
-
e.AvailableToBuy
|
|
48693
|
+
e.AvailableToBuy !== void 0 && /* @__PURE__ */ jsxs(
|
|
48694
48694
|
Badge,
|
|
48695
48695
|
{
|
|
48696
48696
|
variant: "outline",
|
|
48697
|
-
className: `rounded-full px-3 ${
|
|
48697
|
+
className: `rounded-full px-3 ${e.AvailableToBuy ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
48698
48698
|
children: [
|
|
48699
|
-
/* @__PURE__ */ jsx(
|
|
48699
|
+
/* @__PURE__ */ jsx(ShoppingCart, { size: "12", className: "mr-1.5" }),
|
|
48700
48700
|
" ",
|
|
48701
|
-
|
|
48701
|
+
e.AvailableToBuy ? "Available" : "Unavailable"
|
|
48702
48702
|
]
|
|
48703
48703
|
}
|
|
48704
|
-
)
|
|
48704
|
+
),
|
|
48705
|
+
e.ManufacturerCategory !== void 0 && /* @__PURE__ */ jsxs(
|
|
48705
48706
|
Badge,
|
|
48706
48707
|
{
|
|
48707
48708
|
variant: "outline",
|
|
48708
|
-
className: `rounded-full px-3 ${e.
|
|
48709
|
+
className: `rounded-full px-3 ${(te = e.ManufacturerCategory) != null && te.QualificationRequired ? "bg-blue-50 text-blue-700 hover:bg-blue-50" : "bg-neutral-50 text-neutral-700 hover:bg-neutral-50"}`,
|
|
48709
48710
|
children: [
|
|
48710
48711
|
/* @__PURE__ */ jsx(ShieldCheck, { size: "12", className: "mr-1.5" }),
|
|
48711
48712
|
" ",
|
|
48712
|
-
(
|
|
48713
|
+
(oe = e.ManufacturerCategory) != null && oe.QualificationRequired ? "Qualified Only" : "Available to all"
|
|
48713
48714
|
]
|
|
48714
48715
|
}
|
|
48715
48716
|
),
|
|
@@ -48775,45 +48776,45 @@ function ProductCard({
|
|
|
48775
48776
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-6 mt-4", children: [
|
|
48776
48777
|
/* @__PURE__ */ jsx("div", { className: "flex flex-1", children: L && e.Distribution && /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
|
|
48777
48778
|
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: "You have " + B.length + (B.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
|
|
48778
|
-
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: B.map((
|
|
48779
|
-
var
|
|
48779
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: B.map((ie, ue) => {
|
|
48780
|
+
var J;
|
|
48780
48781
|
return /* @__PURE__ */ jsxs(
|
|
48781
48782
|
"div",
|
|
48782
48783
|
{
|
|
48783
48784
|
className: `flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-purple-100 border border-muted
|
|
48784
|
-
${
|
|
48785
|
+
${ie.BidNumber == (b == null ? void 0 : b.BidNumber) ? "cursor-pointer border-2 border-purple-900" : j(ie) ? "hover:bg-purple-200 cursor-pointer" : "!bg-neutral-50"}
|
|
48785
48786
|
`,
|
|
48786
48787
|
onClick: () => {
|
|
48787
|
-
j(
|
|
48788
|
-
|
|
48788
|
+
j(ie) && _(
|
|
48789
|
+
ie.BidNumber != (b == null ? void 0 : b.BidNumber) ? ie : null
|
|
48789
48790
|
);
|
|
48790
48791
|
},
|
|
48791
48792
|
children: [
|
|
48792
48793
|
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
48793
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children:
|
|
48794
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: ie.Opportunity }),
|
|
48794
48795
|
/* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-900", children: [
|
|
48795
|
-
|
|
48796
|
+
ie.BidNumber,
|
|
48796
48797
|
" ",
|
|
48797
|
-
!j(
|
|
48798
|
+
!j(ie) && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs mx-1 h-5 bg-gray-100", children: "Currently unavailable" })
|
|
48798
48799
|
] })
|
|
48799
48800
|
] }) }),
|
|
48800
48801
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end", children: [
|
|
48801
48802
|
/* @__PURE__ */ jsxs("span", { className: "font-semibold", children: [
|
|
48802
48803
|
"$",
|
|
48803
|
-
(
|
|
48804
|
+
(J = ie.Price) == null ? void 0 : J.toFixed(2)
|
|
48804
48805
|
] }),
|
|
48805
|
-
|
|
48806
|
+
ie.Rebate && ie.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-green-600", children: [
|
|
48806
48807
|
"Rebate: $",
|
|
48807
|
-
|
|
48808
|
+
ie.Rebate.toFixed(2)
|
|
48808
48809
|
] }),
|
|
48809
|
-
|
|
48810
|
+
ie.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-600", children: [
|
|
48810
48811
|
"Ends: ",
|
|
48811
|
-
|
|
48812
|
+
Q(ie.EndDate)
|
|
48812
48813
|
] })
|
|
48813
48814
|
] })
|
|
48814
48815
|
]
|
|
48815
48816
|
},
|
|
48816
|
-
|
|
48817
|
+
ue
|
|
48817
48818
|
);
|
|
48818
48819
|
}) })
|
|
48819
48820
|
] }) }),
|
|
@@ -48822,7 +48823,7 @@ function ProductCard({
|
|
|
48822
48823
|
/* @__PURE__ */ jsx(Eye, { className: "mr-2" }),
|
|
48823
48824
|
"View Product"
|
|
48824
48825
|
] }) }),
|
|
48825
|
-
((
|
|
48826
|
+
((ce = e.Distribution) == null ? void 0 : ce.Inventory) && /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs(Dialog, { open: S, onOpenChange: C, children: [
|
|
48826
48827
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(
|
|
48827
48828
|
Button,
|
|
48828
48829
|
{
|
|
@@ -48856,7 +48857,7 @@ function ProductCard({
|
|
|
48856
48857
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center flex-wrap", children: [
|
|
48857
48858
|
/* @__PURE__ */ jsxs("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
|
|
48858
48859
|
/* @__PURE__ */ jsx("span", { children: "$" }),
|
|
48859
|
-
b ? (
|
|
48860
|
+
b ? (le = (ae = e.Opportunities) == null ? void 0 : ae.find((ie) => ie.BidNumber == b.BidNumber)) == null ? void 0 : le.Price : M.toFixed(2),
|
|
48860
48861
|
/* @__PURE__ */ jsx("span", { children: " CAD" })
|
|
48861
48862
|
] }),
|
|
48862
48863
|
R > 0 && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: [
|
|
@@ -48869,7 +48870,7 @@ function ProductCard({
|
|
|
48869
48870
|
R,
|
|
48870
48871
|
"% OFF"
|
|
48871
48872
|
] }),
|
|
48872
|
-
((
|
|
48873
|
+
((se = e.InstantRebate) == null ? void 0 : se.EndDate) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
48873
48874
|
/* @__PURE__ */ jsx("span", { className: "mx-1.5", children: "●" }),
|
|
48874
48875
|
" Ends ",
|
|
48875
48876
|
e.InstantRebate.EndDate.split("T")[0]
|
|
@@ -48900,7 +48901,7 @@ function ProductCard({
|
|
|
48900
48901
|
value: m,
|
|
48901
48902
|
onChange: H,
|
|
48902
48903
|
onBlur: z,
|
|
48903
|
-
onClick: (
|
|
48904
|
+
onClick: (ie) => ie.currentTarget.select(),
|
|
48904
48905
|
className: `w-12 text-center border-0 focus:ring-0 focus:outline-none ${!e.AvailableToBuy || d || !u ? "text-gray-400" : ""}`,
|
|
48905
48906
|
disabled: !e.AvailableToBuy || d || !u
|
|
48906
48907
|
}
|
|
@@ -49196,11 +49197,11 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
49196
49197
|
{
|
|
49197
49198
|
scope: e.__scopeSelect,
|
|
49198
49199
|
onNativeOptionAdd: React.useCallback((W) => {
|
|
49199
|
-
H((
|
|
49200
|
+
H((Q) => new Set(Q).add(W));
|
|
49200
49201
|
}, []),
|
|
49201
49202
|
onNativeOptionRemove: React.useCallback((W) => {
|
|
49202
|
-
H((
|
|
49203
|
-
const q = new Set(
|
|
49203
|
+
H((Q) => {
|
|
49204
|
+
const q = new Set(Q);
|
|
49204
49205
|
return q.delete(W), q;
|
|
49205
49206
|
});
|
|
49206
49207
|
}, []),
|
|
@@ -49347,33 +49348,33 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
49347
49348
|
}, [I]), useFocusGuards();
|
|
49348
49349
|
const W = React.useCallback(
|
|
49349
49350
|
(ae) => {
|
|
49350
|
-
const [
|
|
49351
|
-
for (const
|
|
49352
|
-
if (
|
|
49351
|
+
const [le, ...se] = F().map((J) => J.ref.current), [ie] = se.slice(-1), ue = document.activeElement;
|
|
49352
|
+
for (const J of ae)
|
|
49353
|
+
if (J === ue || (J == null || J.scrollIntoView({ block: "nearest" }), J === le && T && (T.scrollTop = 0), J === ie && T && (T.scrollTop = T.scrollHeight), J == null || J.focus(), document.activeElement !== ue)) return;
|
|
49353
49354
|
},
|
|
49354
49355
|
[F, T]
|
|
49355
|
-
),
|
|
49356
|
+
), Q = React.useCallback(
|
|
49356
49357
|
() => W([D, I]),
|
|
49357
49358
|
[W, D, I]
|
|
49358
49359
|
);
|
|
49359
49360
|
React.useEffect(() => {
|
|
49360
|
-
V &&
|
|
49361
|
-
}, [V,
|
|
49361
|
+
V && Q();
|
|
49362
|
+
}, [V, Q]);
|
|
49362
49363
|
const { onOpenChange: q, triggerPointerDownPosRef: G } = A;
|
|
49363
49364
|
React.useEffect(() => {
|
|
49364
49365
|
if (I) {
|
|
49365
49366
|
let ae = { x: 0, y: 0 };
|
|
49366
|
-
const
|
|
49367
|
-
var
|
|
49367
|
+
const le = (ie) => {
|
|
49368
|
+
var ue, J;
|
|
49368
49369
|
ae = {
|
|
49369
|
-
x: Math.abs(Math.round(
|
|
49370
|
-
y: Math.abs(Math.round(
|
|
49370
|
+
x: Math.abs(Math.round(ie.pageX) - (((ue = G.current) == null ? void 0 : ue.x) ?? 0)),
|
|
49371
|
+
y: Math.abs(Math.round(ie.pageY) - (((J = G.current) == null ? void 0 : J.y) ?? 0))
|
|
49371
49372
|
};
|
|
49372
|
-
},
|
|
49373
|
-
ae.x <= 10 && ae.y <= 10 ?
|
|
49373
|
+
}, se = (ie) => {
|
|
49374
|
+
ae.x <= 10 && ae.y <= 10 ? ie.preventDefault() : I.contains(ie.target) || q(!1), document.removeEventListener("pointermove", le), G.current = null;
|
|
49374
49375
|
};
|
|
49375
|
-
return G.current !== null && (document.addEventListener("pointermove",
|
|
49376
|
-
document.removeEventListener("pointermove",
|
|
49376
|
+
return G.current !== null && (document.addEventListener("pointermove", le), document.addEventListener("pointerup", se, { capture: !0, once: !0 })), () => {
|
|
49377
|
+
document.removeEventListener("pointermove", le), document.removeEventListener("pointerup", se, { capture: !0 });
|
|
49377
49378
|
};
|
|
49378
49379
|
}
|
|
49379
49380
|
}, [I, q, G]), React.useEffect(() => {
|
|
@@ -49382,22 +49383,22 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
49382
49383
|
window.removeEventListener("blur", ae), window.removeEventListener("resize", ae);
|
|
49383
49384
|
};
|
|
49384
49385
|
}, [q]);
|
|
49385
|
-
const [U,
|
|
49386
|
-
const
|
|
49387
|
-
|
|
49386
|
+
const [U, Z] = useTypeaheadSearch((ae) => {
|
|
49387
|
+
const le = F().filter((ue) => !ue.disabled), se = le.find((ue) => ue.ref.current === document.activeElement), ie = findNextItem(le, ae, se);
|
|
49388
|
+
ie && setTimeout(() => ie.ref.current.focus());
|
|
49388
49389
|
}), K = React.useCallback(
|
|
49389
|
-
(ae,
|
|
49390
|
-
const
|
|
49391
|
-
(A.value !== void 0 && A.value ===
|
|
49390
|
+
(ae, le, se) => {
|
|
49391
|
+
const ie = !z.current && !se;
|
|
49392
|
+
(A.value !== void 0 && A.value === le || ie) && (j(ae), ie && (z.current = !0));
|
|
49392
49393
|
},
|
|
49393
49394
|
[A.value]
|
|
49394
49395
|
), ee = React.useCallback(() => I == null ? void 0 : I.focus(), [I]), te = React.useCallback(
|
|
49395
|
-
(ae,
|
|
49396
|
-
const
|
|
49397
|
-
(A.value !== void 0 && A.value ===
|
|
49396
|
+
(ae, le, se) => {
|
|
49397
|
+
const ie = !z.current && !se;
|
|
49398
|
+
(A.value !== void 0 && A.value === le || ie) && L(ae);
|
|
49398
49399
|
},
|
|
49399
49400
|
[A.value]
|
|
49400
|
-
),
|
|
49401
|
+
), oe = i === "popper" ? SelectPopperPosition : SelectItemAlignedPosition, ce = oe === SelectPopperPosition ? {
|
|
49401
49402
|
side: d,
|
|
49402
49403
|
sideOffset: f,
|
|
49403
49404
|
align: p,
|
|
@@ -49420,7 +49421,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
49420
49421
|
selectedItem: D,
|
|
49421
49422
|
onItemLeave: ee,
|
|
49422
49423
|
itemTextRefCallback: te,
|
|
49423
|
-
focusSelectedItem:
|
|
49424
|
+
focusSelectedItem: Q,
|
|
49424
49425
|
selectedItemText: B,
|
|
49425
49426
|
position: i,
|
|
49426
49427
|
isPositioned: V,
|
|
@@ -49434,8 +49435,8 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
49434
49435
|
ae.preventDefault();
|
|
49435
49436
|
},
|
|
49436
49437
|
onUnmountAutoFocus: composeEventHandlers(o, (ae) => {
|
|
49437
|
-
var
|
|
49438
|
-
(
|
|
49438
|
+
var le;
|
|
49439
|
+
(le = A.trigger) == null || le.focus({ preventScroll: !0 }), ae.preventDefault();
|
|
49439
49440
|
}),
|
|
49440
49441
|
children: /* @__PURE__ */ jsx(
|
|
49441
49442
|
DismissableLayer,
|
|
@@ -49447,7 +49448,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
49447
49448
|
onFocusOutside: (ae) => ae.preventDefault(),
|
|
49448
49449
|
onDismiss: () => A.onOpenChange(!1),
|
|
49449
49450
|
children: /* @__PURE__ */ jsx(
|
|
49450
|
-
|
|
49451
|
+
oe,
|
|
49451
49452
|
{
|
|
49452
49453
|
role: "listbox",
|
|
49453
49454
|
id: A.contentId,
|
|
@@ -49455,7 +49456,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
49455
49456
|
dir: A.dir,
|
|
49456
49457
|
onContextMenu: (ae) => ae.preventDefault(),
|
|
49457
49458
|
...C,
|
|
49458
|
-
...
|
|
49459
|
+
...ce,
|
|
49459
49460
|
onPlaced: () => H(!0),
|
|
49460
49461
|
ref: N,
|
|
49461
49462
|
style: {
|
|
@@ -49467,14 +49468,14 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
49467
49468
|
...C.style
|
|
49468
49469
|
},
|
|
49469
49470
|
onKeyDown: composeEventHandlers(C.onKeyDown, (ae) => {
|
|
49470
|
-
const
|
|
49471
|
-
if (ae.key === "Tab" && ae.preventDefault(), !
|
|
49472
|
-
let
|
|
49473
|
-
if (["ArrowUp", "End"].includes(ae.key) && (
|
|
49474
|
-
const
|
|
49475
|
-
|
|
49471
|
+
const le = ae.ctrlKey || ae.altKey || ae.metaKey;
|
|
49472
|
+
if (ae.key === "Tab" && ae.preventDefault(), !le && ae.key.length === 1 && Z(ae.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(ae.key)) {
|
|
49473
|
+
let ie = F().filter((ue) => !ue.disabled).map((ue) => ue.ref.current);
|
|
49474
|
+
if (["ArrowUp", "End"].includes(ae.key) && (ie = ie.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(ae.key)) {
|
|
49475
|
+
const ue = ae.target, J = ie.indexOf(ue);
|
|
49476
|
+
ie = ie.slice(J + 1);
|
|
49476
49477
|
}
|
|
49477
|
-
setTimeout(() => W(
|
|
49478
|
+
setTimeout(() => W(ie)), ae.preventDefault();
|
|
49478
49479
|
}
|
|
49479
49480
|
})
|
|
49480
49481
|
}
|
|
@@ -49493,7 +49494,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
49493
49494
|
if (l.trigger && l.valueNode && d && p && E && S && C) {
|
|
49494
49495
|
const N = l.trigger.getBoundingClientRect(), D = p.getBoundingClientRect(), j = l.valueNode.getBoundingClientRect(), B = C.getBoundingClientRect();
|
|
49495
49496
|
if (l.dir !== "rtl") {
|
|
49496
|
-
const
|
|
49497
|
+
const ue = B.left - D.left, J = j.left - ue, fe = N.left - J, ne = N.width + fe, de = Math.max(ne, D.width), pe = window.innerWidth - CONTENT_MARGIN, me = clamp(J, [
|
|
49497
49498
|
CONTENT_MARGIN,
|
|
49498
49499
|
// Prevents the content from going off the starting edge of the
|
|
49499
49500
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -49504,31 +49505,31 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
49504
49505
|
]);
|
|
49505
49506
|
d.style.minWidth = ne + "px", d.style.left = me + "px";
|
|
49506
49507
|
} else {
|
|
49507
|
-
const
|
|
49508
|
+
const ue = D.right - B.right, J = window.innerWidth - j.right - ue, fe = window.innerWidth - N.right - J, ne = N.width + fe, de = Math.max(ne, D.width), pe = window.innerWidth - CONTENT_MARGIN, me = clamp(J, [
|
|
49508
49509
|
CONTENT_MARGIN,
|
|
49509
49510
|
Math.max(CONTENT_MARGIN, pe - de)
|
|
49510
49511
|
]);
|
|
49511
49512
|
d.style.minWidth = ne + "px", d.style.right = me + "px";
|
|
49512
49513
|
}
|
|
49513
|
-
const L = b(), F = window.innerHeight - CONTENT_MARGIN * 2, V = E.scrollHeight, H = window.getComputedStyle(p), z = parseInt(H.borderTopWidth, 10), W = parseInt(H.paddingTop, 10),
|
|
49514
|
-
if (
|
|
49515
|
-
const
|
|
49514
|
+
const L = b(), F = window.innerHeight - CONTENT_MARGIN * 2, V = E.scrollHeight, H = window.getComputedStyle(p), z = parseInt(H.borderTopWidth, 10), W = parseInt(H.paddingTop, 10), Q = parseInt(H.borderBottomWidth, 10), q = parseInt(H.paddingBottom, 10), G = z + W + V + q + Q, U = Math.min(S.offsetHeight * 5, G), Z = window.getComputedStyle(E), K = parseInt(Z.paddingTop, 10), ee = parseInt(Z.paddingBottom, 10), te = N.top + N.height / 2 - CONTENT_MARGIN, oe = F - te, ce = S.offsetHeight / 2, ae = S.offsetTop + ce, le = z + W + ae, se = G - le;
|
|
49515
|
+
if (le <= te) {
|
|
49516
|
+
const ue = L.length > 0 && S === L[L.length - 1].ref.current;
|
|
49516
49517
|
d.style.bottom = "0px";
|
|
49517
|
-
const
|
|
49518
|
-
|
|
49519
|
-
|
|
49520
|
-
(
|
|
49521
|
-
), ne =
|
|
49518
|
+
const J = p.clientHeight - E.offsetTop - E.offsetHeight, fe = Math.max(
|
|
49519
|
+
oe,
|
|
49520
|
+
ce + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
49521
|
+
(ue ? ee : 0) + J + Q
|
|
49522
|
+
), ne = le + fe;
|
|
49522
49523
|
d.style.height = ne + "px";
|
|
49523
49524
|
} else {
|
|
49524
|
-
const
|
|
49525
|
+
const ue = L.length > 0 && S === L[0].ref.current;
|
|
49525
49526
|
d.style.top = "0px";
|
|
49526
49527
|
const fe = Math.max(
|
|
49527
49528
|
te,
|
|
49528
49529
|
z + E.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
49529
|
-
(
|
|
49530
|
-
) +
|
|
49531
|
-
d.style.height = fe + "px", E.scrollTop =
|
|
49530
|
+
(ue ? K : 0) + ce
|
|
49531
|
+
) + se;
|
|
49532
|
+
d.style.height = fe + "px", E.scrollTop = le - te + E.offsetTop;
|
|
49532
49533
|
}
|
|
49533
49534
|
d.style.margin = `${CONTENT_MARGIN}px 0`, d.style.minHeight = U + "px", d.style.maxHeight = F + "px", i == null || i(), requestAnimationFrame(() => _.current = !0);
|
|
49534
49535
|
}
|