@automattic/agenttic-ui 0.1.21 → 0.1.22
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/components/chat/Suggestions.d.ts.map +1 -1
- package/dist/components/composable/AgentUIInput.d.ts +3 -1
- package/dist/components/composable/AgentUIInput.d.ts.map +1 -1
- package/dist/index.js +441 -437
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './index.css';var VO = Object.defineProperty;
|
|
2
2
|
var UO = (e, M, b) => M in e ? VO(e, M, { enumerable: !0, configurable: !0, writable: !0, value: b }) : e[M] = b;
|
|
3
3
|
var t0 = (e, M, b) => UO(e, typeof M != "symbol" ? M + "" : M, b);
|
|
4
|
-
import { jsxs as a0, jsx as
|
|
4
|
+
import { jsxs as a0, jsx as L, Fragment as Oe } from "react/jsx-runtime";
|
|
5
5
|
import * as $o from "react";
|
|
6
6
|
import M0, { useState as L0, useEffect as W0, useCallback as p0, useRef as u0, createContext as pb, useContext as J0, useId as Nt, memo as Yo, useMemo as m0, forwardRef as cb, useImperativeHandle as Go, createElement as $O, Component as YO } from "react";
|
|
7
7
|
import { motion as z1, AnimatePresence as pM, useMotionValue as EM, useDragControls as Ko, animate as _M } from "framer-motion";
|
|
@@ -224,7 +224,7 @@ const q0 = {
|
|
|
224
224
|
);
|
|
225
225
|
D1.displayName = "Button";
|
|
226
226
|
function pn({ className: e, size: M = 24 }) {
|
|
227
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ L(
|
|
228
228
|
"svg",
|
|
229
229
|
{
|
|
230
230
|
className: e,
|
|
@@ -233,7 +233,7 @@ function pn({ className: e, size: M = 24 }) {
|
|
|
233
233
|
viewBox: "0 0 24 24",
|
|
234
234
|
fill: "none",
|
|
235
235
|
xmlns: "http://www.w3.org/2000/svg",
|
|
236
|
-
children: /* @__PURE__ */
|
|
236
|
+
children: /* @__PURE__ */ L(
|
|
237
237
|
"path",
|
|
238
238
|
{
|
|
239
239
|
d: "M19.6611 11.5224L16.3782 10.39C15.0799 9.94387 14.0561 8.92011 13.61 7.62181L12.4775 4.33887C12.3231 3.88704 11.6769 3.88704 11.5225 4.33887L10.39 7.62181C9.94388 8.92011 8.9201 9.94387 7.6218 10.39L4.33887 11.5224C3.88704 11.6768 3.88704 12.3231 4.33887 12.4776L7.6218 13.61C8.9201 14.0561 9.94388 15.0799 10.39 16.3782L11.5225 19.6611C11.6769 20.113 12.3231 20.113 12.4775 19.6611L13.61 16.3782C14.0561 15.0799 15.0799 14.0561 16.3782 13.61L19.6611 12.4776C20.113 12.3231 20.113 11.6768 19.6611 11.5224ZM15.8291 12.2431L14.1876 12.8093C13.5356 13.0323 13.0266 13.5471 12.8036 14.1934L12.2374 15.8348C12.1572 16.0636 11.837 16.0636 11.7569 15.8348L11.1907 14.1934C10.9677 13.5414 10.4529 13.0323 9.80662 12.8093L8.16515 12.2431C7.93637 12.163 7.93637 11.8427 8.16515 11.7626L9.80662 11.1964C10.4586 10.9734 10.9677 10.4586 11.1907 9.81233L11.7569 8.17087C11.837 7.94209 12.1572 7.94209 12.2374 8.17087L12.8036 9.81233C13.0266 10.4643 13.5414 10.9734 14.1876 11.1964L15.8291 11.7626C16.0579 11.8427 16.0579 12.163 15.8291 12.2431Z",
|
|
@@ -247,7 +247,7 @@ const li = "CollapsedView-module_button", di = {
|
|
|
247
247
|
button: li
|
|
248
248
|
};
|
|
249
249
|
function cn({
|
|
250
|
-
icon: e = /* @__PURE__ */
|
|
250
|
+
icon: e = /* @__PURE__ */ L(pn, { size: 36 }),
|
|
251
251
|
onClick: M,
|
|
252
252
|
onHover: b,
|
|
253
253
|
focusOnMount: z = !1
|
|
@@ -255,7 +255,7 @@ function cn({
|
|
|
255
255
|
const t = u0(null), p = u0(z);
|
|
256
256
|
return W0(() => {
|
|
257
257
|
p.current && t.current && t.current.focus(), p.current = !1;
|
|
258
|
-
}, [p, t]), /* @__PURE__ */
|
|
258
|
+
}, [p, t]), /* @__PURE__ */ L(
|
|
259
259
|
z1.div,
|
|
260
260
|
{
|
|
261
261
|
"data-slot": "collapsed-view",
|
|
@@ -280,7 +280,7 @@ function cn({
|
|
|
280
280
|
duration: 0.15
|
|
281
281
|
}
|
|
282
282
|
},
|
|
283
|
-
children: /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ L(
|
|
284
284
|
D1,
|
|
285
285
|
{
|
|
286
286
|
ref: t,
|
|
@@ -298,7 +298,7 @@ function cn({
|
|
|
298
298
|
const ui = "Textarea-module_textarea", qi = {
|
|
299
299
|
textarea: ui
|
|
300
300
|
}, on = $o.forwardRef(
|
|
301
|
-
({ className: e, ...M }, b) => /* @__PURE__ */
|
|
301
|
+
({ className: e, ...M }, b) => /* @__PURE__ */ L(
|
|
302
302
|
"textarea",
|
|
303
303
|
{
|
|
304
304
|
"data-slot": "textarea",
|
|
@@ -310,7 +310,7 @@ const ui = "Textarea-module_textarea", qi = {
|
|
|
310
310
|
);
|
|
311
311
|
on.displayName = "Textarea";
|
|
312
312
|
function fi({ className: e, size: M = 24 }) {
|
|
313
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ L(
|
|
314
314
|
"svg",
|
|
315
315
|
{
|
|
316
316
|
width: M,
|
|
@@ -319,7 +319,7 @@ function fi({ className: e, size: M = 24 }) {
|
|
|
319
319
|
fill: "none",
|
|
320
320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
321
321
|
className: e,
|
|
322
|
-
children: /* @__PURE__ */
|
|
322
|
+
children: /* @__PURE__ */ L(
|
|
323
323
|
"path",
|
|
324
324
|
{
|
|
325
325
|
d: "M12.2197 5C12.4186 5 12.6094 5.07902 12.75 5.21967L17 9.46967C17.2929 9.76256 17.2929 10.2374 17 10.5303C16.7071 10.8232 16.2322 10.8232 15.9393 10.5303L12.9697 7.56067V18.25C12.9697 18.6642 12.6339 19 12.2197 19C11.8055 19 11.4697 18.6642 11.4697 18.25V7.56065L8.5 10.5303C8.2071 10.8232 7.73223 10.8232 7.43934 10.5303C7.14644 10.2374 7.14645 9.76256 7.43934 9.46967L11.6894 5.21967C11.83 5.07902 12.0208 5 12.2197 5Z",
|
|
@@ -330,7 +330,7 @@ function fi({ className: e, size: M = 24 }) {
|
|
|
330
330
|
);
|
|
331
331
|
}
|
|
332
332
|
function Wi({ className: e, size: M = 24 }) {
|
|
333
|
-
return /* @__PURE__ */
|
|
333
|
+
return /* @__PURE__ */ L(
|
|
334
334
|
"svg",
|
|
335
335
|
{
|
|
336
336
|
width: M,
|
|
@@ -339,7 +339,7 @@ function Wi({ className: e, size: M = 24 }) {
|
|
|
339
339
|
fill: "none",
|
|
340
340
|
xmlns: "http://www.w3.org/2000/svg",
|
|
341
341
|
className: e,
|
|
342
|
-
children: /* @__PURE__ */
|
|
342
|
+
children: /* @__PURE__ */ L(
|
|
343
343
|
"rect",
|
|
344
344
|
{
|
|
345
345
|
x: "7",
|
|
@@ -360,7 +360,7 @@ const hi = "ChatInput-module_container", mi = "ChatInput-module_textareaContaine
|
|
|
360
360
|
button: Ri
|
|
361
361
|
};
|
|
362
362
|
function Li({ className: e, size: M = 24 }) {
|
|
363
|
-
return /* @__PURE__ */
|
|
363
|
+
return /* @__PURE__ */ L(
|
|
364
364
|
"svg",
|
|
365
365
|
{
|
|
366
366
|
className: e,
|
|
@@ -369,7 +369,7 @@ function Li({ className: e, size: M = 24 }) {
|
|
|
369
369
|
viewBox: "0 0 24 24",
|
|
370
370
|
fill: "none",
|
|
371
371
|
xmlns: "http://www.w3.org/2000/svg",
|
|
372
|
-
children: /* @__PURE__ */
|
|
372
|
+
children: /* @__PURE__ */ L(
|
|
373
373
|
"path",
|
|
374
374
|
{
|
|
375
375
|
fillRule: "evenodd",
|
|
@@ -397,7 +397,7 @@ function wi({
|
|
|
397
397
|
);
|
|
398
398
|
}, M);
|
|
399
399
|
return () => clearInterval(p);
|
|
400
|
-
}, [e.length, M]), /* @__PURE__ */
|
|
400
|
+
}, [e.length, M]), /* @__PURE__ */ L(pM, { mode: "wait", children: /* @__PURE__ */ L(
|
|
401
401
|
z1.span,
|
|
402
402
|
{
|
|
403
403
|
"data-slot": "animated-placeholder",
|
|
@@ -425,7 +425,7 @@ function S2() {
|
|
|
425
425
|
return e;
|
|
426
426
|
}
|
|
427
427
|
function Ep({ children: e, value: M }) {
|
|
428
|
-
return /* @__PURE__ */
|
|
428
|
+
return /* @__PURE__ */ L(nn.Provider, { value: M, children: e });
|
|
429
429
|
}
|
|
430
430
|
function yt({
|
|
431
431
|
value: e,
|
|
@@ -445,7 +445,7 @@ function yt({
|
|
|
445
445
|
actionOrder: s = "before-submit",
|
|
446
446
|
onStop: m,
|
|
447
447
|
disabled: y,
|
|
448
|
-
className:
|
|
448
|
+
className: R,
|
|
449
449
|
onMouseEnter: B,
|
|
450
450
|
onMouseLeave: W,
|
|
451
451
|
expandOnClick: g = !1
|
|
@@ -470,7 +470,7 @@ function yt({
|
|
|
470
470
|
W0(() => {
|
|
471
471
|
x.current && t.current && t.current.focus(), x.current = !1;
|
|
472
472
|
}, [x, t]);
|
|
473
|
-
const _ = () => u.map((f) => /* @__PURE__ */
|
|
473
|
+
const _ = () => u.map((f) => /* @__PURE__ */ L(
|
|
474
474
|
D1,
|
|
475
475
|
{
|
|
476
476
|
className: f.className || I2.button,
|
|
@@ -481,13 +481,13 @@ function yt({
|
|
|
481
481
|
"aria-label": f["aria-label"]
|
|
482
482
|
},
|
|
483
483
|
f.id
|
|
484
|
-
)), H = () => w === "embedded" || C === "expanded" || g ? null : r && O ? /* @__PURE__ */
|
|
484
|
+
)), H = () => w === "embedded" || C === "expanded" || g ? null : r && O ? /* @__PURE__ */ L(
|
|
485
485
|
D1,
|
|
486
486
|
{
|
|
487
487
|
className: I2.button,
|
|
488
488
|
onClick: O,
|
|
489
489
|
variant: "ghost",
|
|
490
|
-
icon: /* @__PURE__ */
|
|
490
|
+
icon: /* @__PURE__ */ L(Li, {}),
|
|
491
491
|
"aria-label": g0("Expand conversation", "a8c-agenttic")
|
|
492
492
|
}
|
|
493
493
|
) : null, P = () => {
|
|
@@ -496,14 +496,14 @@ function yt({
|
|
|
496
496
|
const f = () => {
|
|
497
497
|
c && m ? m() : b();
|
|
498
498
|
};
|
|
499
|
-
return /* @__PURE__ */
|
|
499
|
+
return /* @__PURE__ */ L(
|
|
500
500
|
D1,
|
|
501
501
|
{
|
|
502
502
|
className: I2.button,
|
|
503
503
|
onClick: f,
|
|
504
504
|
disabled: !k,
|
|
505
505
|
variant: "primary",
|
|
506
|
-
icon: c ? /* @__PURE__ */
|
|
506
|
+
icon: c ? /* @__PURE__ */ L(Wi, {}) : /* @__PURE__ */ L(fi, {}),
|
|
507
507
|
"aria-label": c ? g0("Stop processing", "a8c-agenttic") : g0("Send message", "a8c-agenttic")
|
|
508
508
|
}
|
|
509
509
|
);
|
|
@@ -529,13 +529,13 @@ function yt({
|
|
|
529
529
|
transition: e.trim() ? { duration: 0 } : DM
|
|
530
530
|
},
|
|
531
531
|
children: [
|
|
532
|
-
!e && V && /* @__PURE__ */
|
|
532
|
+
!e && V && /* @__PURE__ */ L(
|
|
533
533
|
wi,
|
|
534
534
|
{
|
|
535
535
|
texts: Z
|
|
536
536
|
}
|
|
537
537
|
),
|
|
538
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ L(
|
|
539
539
|
on,
|
|
540
540
|
{
|
|
541
541
|
id: h,
|
|
@@ -591,10 +591,11 @@ const yi = "Suggestions-module_container", Bi = "Suggestions-module_vertical", $
|
|
|
591
591
|
onMouseLeave: c,
|
|
592
592
|
translateY: n = "-100%"
|
|
593
593
|
}) => {
|
|
594
|
-
const o = (a, O) => {
|
|
595
|
-
|
|
594
|
+
const o = async (a, O) => {
|
|
595
|
+
let r = !0;
|
|
596
|
+
a.action && (r = await a.action()), r && b && a.prompt && b(a, O);
|
|
596
597
|
};
|
|
597
|
-
return !M || M.length === 0 ? null : /* @__PURE__ */
|
|
598
|
+
return !M || M.length === 0 ? null : /* @__PURE__ */ L(pM, { children: M && M.length > 0 && t && /* @__PURE__ */ L(
|
|
598
599
|
z1.div,
|
|
599
600
|
{
|
|
600
601
|
className: l1(
|
|
@@ -609,7 +610,7 @@ const yi = "Suggestions-module_container", Bi = "Suggestions-module_vertical", $
|
|
|
609
610
|
onMouseEnter: p,
|
|
610
611
|
onMouseLeave: c,
|
|
611
612
|
children: M.map(
|
|
612
|
-
(a, O) => /* @__PURE__ */
|
|
613
|
+
(a, O) => /* @__PURE__ */ L(
|
|
613
614
|
z1.div,
|
|
614
615
|
{
|
|
615
616
|
initial: { opacity: 0, y: 10 },
|
|
@@ -619,7 +620,7 @@ const yi = "Suggestions-module_container", Bi = "Suggestions-module_vertical", $
|
|
|
619
620
|
...DM,
|
|
620
621
|
delay: O * 0.05
|
|
621
622
|
},
|
|
622
|
-
children: /* @__PURE__ */
|
|
623
|
+
children: /* @__PURE__ */ L(
|
|
623
624
|
D1,
|
|
624
625
|
{
|
|
625
626
|
onClick: (r) => {
|
|
@@ -683,7 +684,7 @@ function an({
|
|
|
683
684
|
suggestions: s,
|
|
684
685
|
clearSuggestions: m,
|
|
685
686
|
handleSuggestionSubmit: y,
|
|
686
|
-
expandOnClick:
|
|
687
|
+
expandOnClick: R = !1
|
|
687
688
|
}) {
|
|
688
689
|
const [B, W] = L0(!1), { setNamedTimeout: g, clearAllTimeouts: h } = Ti(), w = p0(() => {
|
|
689
690
|
g(
|
|
@@ -695,9 +696,9 @@ function an({
|
|
|
695
696
|
);
|
|
696
697
|
}, [g]), C = p0(
|
|
697
698
|
(I) => {
|
|
698
|
-
|
|
699
|
+
R && o && !e && o();
|
|
699
700
|
},
|
|
700
|
-
[
|
|
701
|
+
[R, o, e]
|
|
701
702
|
);
|
|
702
703
|
return W0(() => {
|
|
703
704
|
if (h(), e) {
|
|
@@ -717,7 +718,7 @@ function an({
|
|
|
717
718
|
m,
|
|
718
719
|
w
|
|
719
720
|
]), /* @__PURE__ */ a0(Oe, { children: [
|
|
720
|
-
/* @__PURE__ */
|
|
721
|
+
/* @__PURE__ */ L(
|
|
721
722
|
yt,
|
|
722
723
|
{
|
|
723
724
|
value: e,
|
|
@@ -735,14 +736,14 @@ function an({
|
|
|
735
736
|
customActions: r,
|
|
736
737
|
actionOrder: A,
|
|
737
738
|
onStop: u,
|
|
738
|
-
expandOnClick:
|
|
739
|
+
expandOnClick: R,
|
|
739
740
|
onMouseEnter: () => {
|
|
740
741
|
h(), W(!0);
|
|
741
742
|
},
|
|
742
743
|
onMouseLeave: () => w()
|
|
743
744
|
}
|
|
744
745
|
),
|
|
745
|
-
!e && /* @__PURE__ */
|
|
746
|
+
!e && /* @__PURE__ */ L(
|
|
746
747
|
nb,
|
|
747
748
|
{
|
|
748
749
|
suggestions: s,
|
|
@@ -758,7 +759,7 @@ function an({
|
|
|
758
759
|
] });
|
|
759
760
|
}
|
|
760
761
|
function rn({ className: e, size: M = 24 }) {
|
|
761
|
-
return /* @__PURE__ */
|
|
762
|
+
return /* @__PURE__ */ L(
|
|
762
763
|
"svg",
|
|
763
764
|
{
|
|
764
765
|
className: e,
|
|
@@ -767,7 +768,7 @@ function rn({ className: e, size: M = 24 }) {
|
|
|
767
768
|
viewBox: "0 0 24 24",
|
|
768
769
|
fill: "none",
|
|
769
770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
770
|
-
children: /* @__PURE__ */
|
|
771
|
+
children: /* @__PURE__ */ L(
|
|
771
772
|
"path",
|
|
772
773
|
{
|
|
773
774
|
d: "M12.0001 13.0607L16.4697 17.5304L17.5304 16.4697L13.0607 12.0001L17.5304 7.53039L16.4697 6.46973L12.0001 10.9394L7.5304 6.46973L6.46973 7.53039L10.9394 12.0001L6.46974 16.4697L7.5304 17.5304L12.0001 13.0607Z",
|
|
@@ -781,7 +782,7 @@ const ki = "ChatHeader-module_container", Ci = {
|
|
|
781
782
|
container: ki
|
|
782
783
|
};
|
|
783
784
|
function On({ onClose: e, className: M }) {
|
|
784
|
-
return /* @__PURE__ */
|
|
785
|
+
return /* @__PURE__ */ L(
|
|
785
786
|
z1.div,
|
|
786
787
|
{
|
|
787
788
|
"data-slot": "chat-header",
|
|
@@ -790,11 +791,11 @@ function On({ onClose: e, className: M }) {
|
|
|
790
791
|
initial: { opacity: 0 },
|
|
791
792
|
animate: { opacity: 1 },
|
|
792
793
|
transition: { ...x2, delay: 0.1 },
|
|
793
|
-
children: e && /* @__PURE__ */
|
|
794
|
+
children: e && /* @__PURE__ */ L(
|
|
794
795
|
D1,
|
|
795
796
|
{
|
|
796
797
|
variant: "ghost",
|
|
797
|
-
icon: /* @__PURE__ */
|
|
798
|
+
icon: /* @__PURE__ */ L(rn, {}),
|
|
798
799
|
onClick: e,
|
|
799
800
|
"aria-label": g0("Close conversation", "a8c-agenttic")
|
|
800
801
|
}
|
|
@@ -815,15 +816,15 @@ function xi({ className: e, size: M = 18 }) {
|
|
|
815
816
|
role: "img",
|
|
816
817
|
"aria-label": "Alert",
|
|
817
818
|
children: [
|
|
818
|
-
/* @__PURE__ */
|
|
819
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ L("path", { d: "M8.4375 12V10.875H9.5625V12H8.4375Z", fill: "currentColor" }),
|
|
820
|
+
/* @__PURE__ */ L(
|
|
820
821
|
"path",
|
|
821
822
|
{
|
|
822
823
|
d: "M8.4375 6L8.4375 9.75H9.5625V6L8.4375 6Z",
|
|
823
824
|
fill: "currentColor"
|
|
824
825
|
}
|
|
825
826
|
),
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
+
/* @__PURE__ */ L(
|
|
827
828
|
"path",
|
|
828
829
|
{
|
|
829
830
|
fillRule: "evenodd",
|
|
@@ -849,21 +850,21 @@ function Ei({ className: e, size: M = 18 }) {
|
|
|
849
850
|
role: "img",
|
|
850
851
|
"aria-label": "Alert",
|
|
851
852
|
children: [
|
|
852
|
-
/* @__PURE__ */
|
|
853
|
+
/* @__PURE__ */ L(
|
|
853
854
|
"path",
|
|
854
855
|
{
|
|
855
856
|
d: "M9.56279 13.0952H8.43779V11.9702H9.56279V13.0952Z",
|
|
856
857
|
fill: "currentColor"
|
|
857
858
|
}
|
|
858
859
|
),
|
|
859
|
-
/* @__PURE__ */
|
|
860
|
+
/* @__PURE__ */ L(
|
|
860
861
|
"path",
|
|
861
862
|
{
|
|
862
863
|
d: "M8.43779 10.8452H9.56279V7.0952L8.43779 7.0952V10.8452Z",
|
|
863
864
|
fill: "currentColor"
|
|
864
865
|
}
|
|
865
866
|
),
|
|
866
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ L(
|
|
867
868
|
"path",
|
|
868
869
|
{
|
|
869
870
|
fillRule: "evenodd",
|
|
@@ -903,9 +904,9 @@ function An({
|
|
|
903
904
|
return null;
|
|
904
905
|
switch (c) {
|
|
905
906
|
case "warning":
|
|
906
|
-
return /* @__PURE__ */
|
|
907
|
+
return /* @__PURE__ */ L(xi, {});
|
|
907
908
|
case "error":
|
|
908
|
-
return /* @__PURE__ */
|
|
909
|
+
return /* @__PURE__ */ L(Ei, {});
|
|
909
910
|
default:
|
|
910
911
|
return null;
|
|
911
912
|
}
|
|
@@ -925,14 +926,14 @@ function An({
|
|
|
925
926
|
),
|
|
926
927
|
children: [
|
|
927
928
|
/* @__PURE__ */ a0("div", { className: K1.content, children: [
|
|
928
|
-
o && /* @__PURE__ */
|
|
929
|
-
/* @__PURE__ */
|
|
929
|
+
o && /* @__PURE__ */ L("div", { className: K1.icon, children: o }),
|
|
930
|
+
/* @__PURE__ */ L("div", { children: /* @__PURE__ */ L(
|
|
930
931
|
wt,
|
|
931
932
|
{
|
|
932
933
|
allowedElements: ["p", "strong", "em", "a", "br"],
|
|
933
934
|
unwrapDisallowed: !0,
|
|
934
935
|
components: {
|
|
935
|
-
a: ({ node: a, ...O }) => /* @__PURE__ */
|
|
936
|
+
a: ({ node: a, ...O }) => /* @__PURE__ */ L(
|
|
936
937
|
"a",
|
|
937
938
|
{
|
|
938
939
|
...O,
|
|
@@ -947,7 +948,7 @@ function An({
|
|
|
947
948
|
) })
|
|
948
949
|
] }),
|
|
949
950
|
/* @__PURE__ */ a0("div", { className: K1.actions, children: [
|
|
950
|
-
b && /* @__PURE__ */
|
|
951
|
+
b && /* @__PURE__ */ L(
|
|
951
952
|
D1,
|
|
952
953
|
{
|
|
953
954
|
className: K1.action,
|
|
@@ -956,14 +957,14 @@ function An({
|
|
|
956
957
|
children: b.label
|
|
957
958
|
}
|
|
958
959
|
),
|
|
959
|
-
z && t && /* @__PURE__ */
|
|
960
|
+
z && t && /* @__PURE__ */ L(
|
|
960
961
|
D1,
|
|
961
962
|
{
|
|
962
963
|
className: K1.dismissible,
|
|
963
964
|
onClick: t,
|
|
964
965
|
variant: "ghost",
|
|
965
966
|
size: "sm",
|
|
966
|
-
icon: /* @__PURE__ */
|
|
967
|
+
icon: /* @__PURE__ */ L(rn, {})
|
|
967
968
|
}
|
|
968
969
|
)
|
|
969
970
|
] })
|
|
@@ -993,7 +994,7 @@ function $i({
|
|
|
993
994
|
customActions: m,
|
|
994
995
|
actionOrder: y
|
|
995
996
|
}) {
|
|
996
|
-
const
|
|
997
|
+
const R = p0(
|
|
997
998
|
(B, W) => {
|
|
998
999
|
const g = B.prompt ?? B.label;
|
|
999
1000
|
M(g), u == null || u();
|
|
@@ -1009,14 +1010,14 @@ function $i({
|
|
|
1009
1010
|
animate: { opacity: 1, scale: 1 },
|
|
1010
1011
|
transition: { ...x2 },
|
|
1011
1012
|
children: [
|
|
1012
|
-
!e && /* @__PURE__ */
|
|
1013
|
+
!e && /* @__PURE__ */ L(
|
|
1013
1014
|
nb,
|
|
1014
1015
|
{
|
|
1015
1016
|
suggestions: A,
|
|
1016
|
-
onSubmit:
|
|
1017
|
+
onSubmit: R
|
|
1017
1018
|
}
|
|
1018
1019
|
),
|
|
1019
|
-
r && /* @__PURE__ */
|
|
1020
|
+
r && /* @__PURE__ */ L(
|
|
1020
1021
|
An,
|
|
1021
1022
|
{
|
|
1022
1023
|
icon: r.icon,
|
|
@@ -1027,7 +1028,7 @@ function $i({
|
|
|
1027
1028
|
status: r.status
|
|
1028
1029
|
}
|
|
1029
1030
|
),
|
|
1030
|
-
/* @__PURE__ */
|
|
1031
|
+
/* @__PURE__ */ L(
|
|
1031
1032
|
yt,
|
|
1032
1033
|
{
|
|
1033
1034
|
value: e,
|
|
@@ -1055,14 +1056,14 @@ const Yi = "MessageActions-module_container", _p = {
|
|
|
1055
1056
|
container: Yi
|
|
1056
1057
|
};
|
|
1057
1058
|
function Sp({ message: e }) {
|
|
1058
|
-
return !e.actions || e.actions.length === 0 ? null : /* @__PURE__ */
|
|
1059
|
+
return !e.actions || e.actions.length === 0 ? null : /* @__PURE__ */ L(
|
|
1059
1060
|
"div",
|
|
1060
1061
|
{
|
|
1061
1062
|
className: _p.container,
|
|
1062
1063
|
"data-visible": "true",
|
|
1063
1064
|
role: "toolbar",
|
|
1064
1065
|
"aria-label": "Message actions",
|
|
1065
|
-
children: e.actions.map((M) => /* @__PURE__ */
|
|
1066
|
+
children: e.actions.map((M) => /* @__PURE__ */ L(
|
|
1066
1067
|
D1,
|
|
1067
1068
|
{
|
|
1068
1069
|
className: _p.button,
|
|
@@ -1094,12 +1095,12 @@ const Gi = "Message-module_message", Ki = "Message-module_user", Ji = "Message-m
|
|
|
1094
1095
|
function({ message: M, messageRenderer: b = wt }, z) {
|
|
1095
1096
|
const t = () => {
|
|
1096
1097
|
const p = Array.isArray(M.content) ? M.content : [];
|
|
1097
|
-
return /* @__PURE__ */
|
|
1098
|
+
return /* @__PURE__ */ L(Oe, { children: p.map((c, n) => {
|
|
1098
1099
|
if (c.type === "text" && c.text)
|
|
1099
|
-
return /* @__PURE__ */
|
|
1100
|
+
return /* @__PURE__ */ L(b, { children: c.text }, n);
|
|
1100
1101
|
if (c.type === "component" && c.component) {
|
|
1101
1102
|
const o = c.component;
|
|
1102
|
-
return /* @__PURE__ */
|
|
1103
|
+
return /* @__PURE__ */ L(
|
|
1103
1104
|
o,
|
|
1104
1105
|
{
|
|
1105
1106
|
...c.componentProps || {}
|
|
@@ -1134,12 +1135,12 @@ const Gi = "Message-module_message", Ki = "Message-module_user", Ji = "Message-m
|
|
|
1134
1135
|
"a8c-agenttic"
|
|
1135
1136
|
) : void 0,
|
|
1136
1137
|
children: [
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
M.role !== "user" && /* @__PURE__ */
|
|
1138
|
+
/* @__PURE__ */ L("div", { className: we.bubble, children: t() }),
|
|
1139
|
+
M.role !== "user" && /* @__PURE__ */ L(Sp, { message: M })
|
|
1139
1140
|
]
|
|
1140
1141
|
}
|
|
1141
1142
|
),
|
|
1142
|
-
M.role === "user" && /* @__PURE__ */
|
|
1143
|
+
M.role === "user" && /* @__PURE__ */ L(Sp, { message: M })
|
|
1143
1144
|
]
|
|
1144
1145
|
}
|
|
1145
1146
|
);
|
|
@@ -1156,7 +1157,7 @@ const Gi = "Message-module_message", Ki = "Message-module_user", Ji = "Message-m
|
|
|
1156
1157
|
function({
|
|
1157
1158
|
content: M = g0("Thinking…", "a8c-agenttic")
|
|
1158
1159
|
}, b) {
|
|
1159
|
-
const z = m0(() => /* @__PURE__ */
|
|
1160
|
+
const z = m0(() => /* @__PURE__ */ L(pn, {}), []);
|
|
1160
1161
|
return /* @__PURE__ */ a0(
|
|
1161
1162
|
"div",
|
|
1162
1163
|
{
|
|
@@ -1164,8 +1165,8 @@ const Gi = "Message-module_message", Ki = "Message-module_user", Ji = "Message-m
|
|
|
1164
1165
|
"data-slot": "thinking",
|
|
1165
1166
|
className: Gb.container,
|
|
1166
1167
|
children: [
|
|
1167
|
-
/* @__PURE__ */
|
|
1168
|
-
/* @__PURE__ */
|
|
1168
|
+
/* @__PURE__ */ L("div", { className: Gb.icon, children: z }),
|
|
1169
|
+
/* @__PURE__ */ L("span", { className: Gb.content, children: M })
|
|
1169
1170
|
]
|
|
1170
1171
|
}
|
|
1171
1172
|
);
|
|
@@ -1206,7 +1207,7 @@ function sn({
|
|
|
1206
1207
|
}
|
|
1207
1208
|
}
|
|
1208
1209
|
o.current && (o.current = !1), n.current = r;
|
|
1209
|
-
}, [r]), r.length === 0 ? z ? /* @__PURE__ */
|
|
1210
|
+
}, [r]), r.length === 0 ? z ? /* @__PURE__ */ L(
|
|
1210
1211
|
"div",
|
|
1211
1212
|
{
|
|
1212
1213
|
"data-slot": "messages",
|
|
@@ -1215,7 +1216,7 @@ function sn({
|
|
|
1215
1216
|
children: z
|
|
1216
1217
|
}
|
|
1217
1218
|
) : null : /* @__PURE__ */ a0(Oe, { children: [
|
|
1218
|
-
/* @__PURE__ */
|
|
1219
|
+
/* @__PURE__ */ L(
|
|
1219
1220
|
"div",
|
|
1220
1221
|
{
|
|
1221
1222
|
ref: a,
|
|
@@ -1230,14 +1231,14 @@ function sn({
|
|
|
1230
1231
|
}
|
|
1231
1232
|
}
|
|
1232
1233
|
),
|
|
1233
|
-
/* @__PURE__ */
|
|
1234
|
+
/* @__PURE__ */ L(
|
|
1234
1235
|
"div",
|
|
1235
1236
|
{
|
|
1236
1237
|
"data-slot": "messages",
|
|
1237
1238
|
className: Yb.container,
|
|
1238
1239
|
ref: c,
|
|
1239
1240
|
children: /* @__PURE__ */ a0(pM, { mode: "popLayout", children: [
|
|
1240
|
-
r.map((A) => /* @__PURE__ */
|
|
1241
|
+
r.map((A) => /* @__PURE__ */ L(
|
|
1241
1242
|
M4,
|
|
1242
1243
|
{
|
|
1243
1244
|
message: A,
|
|
@@ -1245,8 +1246,8 @@ function sn({
|
|
|
1245
1246
|
},
|
|
1246
1247
|
A.id
|
|
1247
1248
|
)),
|
|
1248
|
-
M && /* @__PURE__ */
|
|
1249
|
-
b && /* @__PURE__ */
|
|
1249
|
+
M && /* @__PURE__ */ L(o4, {}),
|
|
1250
|
+
b && /* @__PURE__ */ L(
|
|
1250
1251
|
"div",
|
|
1251
1252
|
{
|
|
1252
1253
|
className: "error-message",
|
|
@@ -1285,7 +1286,7 @@ function Dp({
|
|
|
1285
1286
|
notice: s,
|
|
1286
1287
|
emptyView: m,
|
|
1287
1288
|
suggestions: y,
|
|
1288
|
-
clearSuggestions:
|
|
1289
|
+
clearSuggestions: R,
|
|
1289
1290
|
messageRenderer: B,
|
|
1290
1291
|
focusOnMount: W = !1
|
|
1291
1292
|
}) {
|
|
@@ -1300,8 +1301,8 @@ function Dp({
|
|
|
1300
1301
|
"data-slot": "conversation-view",
|
|
1301
1302
|
className: `${G2.container}${r ? ` ${G2.withHeader}` : ""}`,
|
|
1302
1303
|
children: [
|
|
1303
|
-
r && /* @__PURE__ */
|
|
1304
|
-
/* @__PURE__ */
|
|
1304
|
+
r && /* @__PURE__ */ L(On, { onClose: A }),
|
|
1305
|
+
/* @__PURE__ */ L(
|
|
1305
1306
|
sn,
|
|
1306
1307
|
{
|
|
1307
1308
|
messages: e,
|
|
@@ -1311,7 +1312,7 @@ function Dp({
|
|
|
1311
1312
|
messageRenderer: B
|
|
1312
1313
|
}
|
|
1313
1314
|
),
|
|
1314
|
-
/* @__PURE__ */
|
|
1315
|
+
/* @__PURE__ */ L(
|
|
1315
1316
|
$i,
|
|
1316
1317
|
{
|
|
1317
1318
|
inputValue: b,
|
|
@@ -1326,7 +1327,7 @@ function Dp({
|
|
|
1326
1327
|
onExpand: u,
|
|
1327
1328
|
notice: s,
|
|
1328
1329
|
suggestions: y,
|
|
1329
|
-
clearSuggestions:
|
|
1330
|
+
clearSuggestions: R,
|
|
1330
1331
|
focusOnMount: W
|
|
1331
1332
|
}
|
|
1332
1333
|
)
|
|
@@ -1358,7 +1359,7 @@ function sN({
|
|
|
1358
1359
|
suggestions: s,
|
|
1359
1360
|
clearSuggestions: m,
|
|
1360
1361
|
messageRenderer: y,
|
|
1361
|
-
className:
|
|
1362
|
+
className: R
|
|
1362
1363
|
}) {
|
|
1363
1364
|
const [B, W] = L0(""), g = Zo(u), h = u0(!1), w = u0(!1), C = u0(!1), [I, k] = L0(!1);
|
|
1364
1365
|
W0(() => {
|
|
@@ -1462,12 +1463,12 @@ function sN({
|
|
|
1462
1463
|
const D = P.current.scrollHeight + q0.PADDING;
|
|
1463
1464
|
x(D);
|
|
1464
1465
|
}
|
|
1465
|
-
}, [g.state, V.value]), t === "embedded" ? /* @__PURE__ */
|
|
1466
|
+
}, [g.state, V.value]), t === "embedded" ? /* @__PURE__ */ L(
|
|
1466
1467
|
"div",
|
|
1467
1468
|
{
|
|
1468
1469
|
"data-slot": "chat-embedded",
|
|
1469
|
-
className: l1(
|
|
1470
|
-
children: /* @__PURE__ */
|
|
1470
|
+
className: l1(R, C1.container, C1.embedded),
|
|
1471
|
+
children: /* @__PURE__ */ L(
|
|
1471
1472
|
Dp,
|
|
1472
1473
|
{
|
|
1473
1474
|
messages: e,
|
|
@@ -1492,7 +1493,7 @@ function sN({
|
|
|
1492
1493
|
)
|
|
1493
1494
|
}
|
|
1494
1495
|
) : /* @__PURE__ */ a0(Oe, { children: [
|
|
1495
|
-
/* @__PURE__ */
|
|
1496
|
+
/* @__PURE__ */ L(
|
|
1496
1497
|
"div",
|
|
1497
1498
|
{
|
|
1498
1499
|
ref: f,
|
|
@@ -1506,12 +1507,12 @@ function sN({
|
|
|
1506
1507
|
}
|
|
1507
1508
|
}
|
|
1508
1509
|
),
|
|
1509
|
-
/* @__PURE__ */
|
|
1510
|
+
/* @__PURE__ */ L(
|
|
1510
1511
|
z1.div,
|
|
1511
1512
|
{
|
|
1512
1513
|
ref: b0,
|
|
1513
1514
|
"data-slot": "chat-floating",
|
|
1514
|
-
className: l1(
|
|
1515
|
+
className: l1(R, C1.container, C1.floating, {
|
|
1515
1516
|
animating: I
|
|
1516
1517
|
}),
|
|
1517
1518
|
onMouseLeave: g.state === "compact" ? K : void 0,
|
|
@@ -1530,7 +1531,7 @@ function sN({
|
|
|
1530
1531
|
bottom: q0.VIEWPORT_OFFSET,
|
|
1531
1532
|
left: q0.VIEWPORT_OFFSET
|
|
1532
1533
|
},
|
|
1533
|
-
children: /* @__PURE__ */
|
|
1534
|
+
children: /* @__PURE__ */ L(
|
|
1534
1535
|
z1.div,
|
|
1535
1536
|
{
|
|
1536
1537
|
layout: !0,
|
|
@@ -1548,7 +1549,7 @@ function sN({
|
|
|
1548
1549
|
borderRadius: q0.BORDER_RADIUS
|
|
1549
1550
|
},
|
|
1550
1551
|
children: /* @__PURE__ */ a0(pM, { mode: "wait", children: [
|
|
1551
|
-
g.state === "collapsed" && /* @__PURE__ */
|
|
1552
|
+
g.state === "collapsed" && /* @__PURE__ */ L(
|
|
1552
1553
|
cn,
|
|
1553
1554
|
{
|
|
1554
1555
|
icon: p,
|
|
@@ -1558,7 +1559,7 @@ function sN({
|
|
|
1558
1559
|
},
|
|
1559
1560
|
"collapsed"
|
|
1560
1561
|
),
|
|
1561
|
-
g.state === "compact" && /* @__PURE__ */
|
|
1562
|
+
g.state === "compact" && /* @__PURE__ */ L("div", { ref: P, children: /* @__PURE__ */ L(
|
|
1562
1563
|
an,
|
|
1563
1564
|
{
|
|
1564
1565
|
value: V.value,
|
|
@@ -1578,7 +1579,7 @@ function sN({
|
|
|
1578
1579
|
},
|
|
1579
1580
|
"compact"
|
|
1580
1581
|
) }),
|
|
1581
|
-
g.state === "expanded" && /* @__PURE__ */
|
|
1582
|
+
g.state === "expanded" && /* @__PURE__ */ L(
|
|
1582
1583
|
Dp,
|
|
1583
1584
|
{
|
|
1584
1585
|
messages: e,
|
|
@@ -3287,7 +3288,7 @@ function K4(e = "en", M = {}) {
|
|
|
3287
3288
|
return !1;
|
|
3288
3289
|
}
|
|
3289
3290
|
function J4() {
|
|
3290
|
-
return /* @__PURE__ */
|
|
3291
|
+
return /* @__PURE__ */ L(
|
|
3291
3292
|
"div",
|
|
3292
3293
|
{
|
|
3293
3294
|
style: {
|
|
@@ -3325,7 +3326,7 @@ function r3({
|
|
|
3325
3326
|
floatingChatState: s,
|
|
3326
3327
|
suggestions: m,
|
|
3327
3328
|
clearSuggestions: y,
|
|
3328
|
-
onSuggestionClick:
|
|
3329
|
+
onSuggestionClick: R,
|
|
3329
3330
|
messageRenderer: B,
|
|
3330
3331
|
className: W,
|
|
3331
3332
|
inputValue: g,
|
|
@@ -3374,9 +3375,9 @@ function r3({
|
|
|
3374
3375
|
K.setValue(g1), y == null || y(), K.textareaRef.current && (K.textareaRef.current.focus(), K.textareaRef.current.setSelectionRange(
|
|
3375
3376
|
g1.length,
|
|
3376
3377
|
g1.length
|
|
3377
|
-
)),
|
|
3378
|
+
)), R == null || R(l0, I0);
|
|
3378
3379
|
},
|
|
3379
|
-
[K.setValue, y,
|
|
3380
|
+
[K.setValue, y, R]
|
|
3380
3381
|
), s0 = p0(() => {
|
|
3381
3382
|
f.current = !0, P.open(), a == null || a();
|
|
3382
3383
|
}, [P, a]), t1 = p0(() => {
|
|
@@ -3521,7 +3522,7 @@ function r3({
|
|
|
3521
3522
|
// Input validation
|
|
3522
3523
|
isInputOverLimit: G
|
|
3523
3524
|
};
|
|
3524
|
-
return p === "embedded" ? /* @__PURE__ */
|
|
3525
|
+
return p === "embedded" ? /* @__PURE__ */ L(Ep, { value: T1, children: /* @__PURE__ */ L(
|
|
3525
3526
|
"div",
|
|
3526
3527
|
{
|
|
3527
3528
|
"data-slot": "chat-embedded",
|
|
@@ -3533,7 +3534,7 @@ function r3({
|
|
|
3533
3534
|
children: e
|
|
3534
3535
|
}
|
|
3535
3536
|
) }) : /* @__PURE__ */ a0(Ep, { value: T1, children: [
|
|
3536
|
-
/* @__PURE__ */
|
|
3537
|
+
/* @__PURE__ */ L(
|
|
3537
3538
|
"div",
|
|
3538
3539
|
{
|
|
3539
3540
|
ref: E,
|
|
@@ -3547,8 +3548,8 @@ function r3({
|
|
|
3547
3548
|
}
|
|
3548
3549
|
}
|
|
3549
3550
|
),
|
|
3550
|
-
o0 && /* @__PURE__ */
|
|
3551
|
-
/* @__PURE__ */
|
|
3551
|
+
o0 && /* @__PURE__ */ L(J4, {}),
|
|
3552
|
+
/* @__PURE__ */ L(
|
|
3552
3553
|
z1.div,
|
|
3553
3554
|
{
|
|
3554
3555
|
ref: S,
|
|
@@ -3574,7 +3575,7 @@ function r3({
|
|
|
3574
3575
|
left: q0.VIEWPORT_OFFSET,
|
|
3575
3576
|
cursor: w.includes(P.state) ? "grab" : "default"
|
|
3576
3577
|
},
|
|
3577
|
-
children: /* @__PURE__ */
|
|
3578
|
+
children: /* @__PURE__ */ L(
|
|
3578
3579
|
z1.div,
|
|
3579
3580
|
{
|
|
3580
3581
|
layout: !0,
|
|
@@ -3592,7 +3593,7 @@ function r3({
|
|
|
3592
3593
|
borderRadius: q0.BORDER_RADIUS
|
|
3593
3594
|
},
|
|
3594
3595
|
children: /* @__PURE__ */ a0(pM, { mode: "wait", children: [
|
|
3595
|
-
P.state === "collapsed" && /* @__PURE__ */
|
|
3596
|
+
P.state === "collapsed" && /* @__PURE__ */ L(
|
|
3596
3597
|
cn,
|
|
3597
3598
|
{
|
|
3598
3599
|
icon: c,
|
|
@@ -3602,7 +3603,7 @@ function r3({
|
|
|
3602
3603
|
},
|
|
3603
3604
|
"collapsed"
|
|
3604
3605
|
),
|
|
3605
|
-
P.state === "compact" && /* @__PURE__ */
|
|
3606
|
+
P.state === "compact" && /* @__PURE__ */ L("div", { ref: N, children: /* @__PURE__ */ L(
|
|
3606
3607
|
an,
|
|
3607
3608
|
{
|
|
3608
3609
|
value: K.value,
|
|
@@ -3634,11 +3635,11 @@ function r3({
|
|
|
3634
3635
|
}
|
|
3635
3636
|
function Sz({ className: e } = {}) {
|
|
3636
3637
|
const { onClose: M } = S2();
|
|
3637
|
-
return /* @__PURE__ */
|
|
3638
|
+
return /* @__PURE__ */ L(On, { onClose: M, className: e });
|
|
3638
3639
|
}
|
|
3639
3640
|
function O3({ className: e } = {}) {
|
|
3640
3641
|
const { messages: M, isProcessing: b, error: z, emptyView: t, messageRenderer: p } = S2();
|
|
3641
|
-
return /* @__PURE__ */
|
|
3642
|
+
return /* @__PURE__ */ L(
|
|
3642
3643
|
sn,
|
|
3643
3644
|
{
|
|
3644
3645
|
messages: M,
|
|
@@ -3654,37 +3655,40 @@ function i3({
|
|
|
3654
3655
|
className: e,
|
|
3655
3656
|
disabled: M,
|
|
3656
3657
|
customActions: b,
|
|
3657
|
-
actionOrder: z
|
|
3658
|
+
actionOrder: z,
|
|
3659
|
+
onKeyDown: t
|
|
3658
3660
|
} = {}) {
|
|
3659
3661
|
const {
|
|
3660
|
-
inputValue:
|
|
3661
|
-
setInputValue:
|
|
3662
|
-
handleSubmit:
|
|
3663
|
-
handleKeyDown:
|
|
3664
|
-
textareaRef:
|
|
3665
|
-
placeholder:
|
|
3666
|
-
isProcessing:
|
|
3667
|
-
onStop:
|
|
3668
|
-
fromCompact:
|
|
3669
|
-
onExpand:
|
|
3670
|
-
showExpandButton:
|
|
3671
|
-
focusOnMount:
|
|
3662
|
+
inputValue: p,
|
|
3663
|
+
setInputValue: c,
|
|
3664
|
+
handleSubmit: n,
|
|
3665
|
+
handleKeyDown: o,
|
|
3666
|
+
textareaRef: a,
|
|
3667
|
+
placeholder: O,
|
|
3668
|
+
isProcessing: r,
|
|
3669
|
+
onStop: A,
|
|
3670
|
+
fromCompact: u,
|
|
3671
|
+
onExpand: s,
|
|
3672
|
+
showExpandButton: m,
|
|
3673
|
+
focusOnMount: y
|
|
3672
3674
|
} = S2();
|
|
3673
|
-
return /* @__PURE__ */
|
|
3675
|
+
return /* @__PURE__ */ L(
|
|
3674
3676
|
yt,
|
|
3675
3677
|
{
|
|
3676
|
-
value:
|
|
3677
|
-
onChange:
|
|
3678
|
-
onSubmit:
|
|
3679
|
-
onKeyDown:
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3678
|
+
value: p,
|
|
3679
|
+
onChange: c,
|
|
3680
|
+
onSubmit: n,
|
|
3681
|
+
onKeyDown: (B) => {
|
|
3682
|
+
t == null || t(B), !B.defaultPrevented && o(B);
|
|
3683
|
+
},
|
|
3684
|
+
textareaRef: a,
|
|
3685
|
+
placeholder: O,
|
|
3686
|
+
isProcessing: r,
|
|
3687
|
+
onStop: A,
|
|
3688
|
+
fromCompact: u,
|
|
3689
|
+
onExpand: s,
|
|
3690
|
+
showExpandButton: m,
|
|
3691
|
+
focusOnMount: y,
|
|
3688
3692
|
disabled: M,
|
|
3689
3693
|
customActions: b,
|
|
3690
3694
|
actionOrder: z,
|
|
@@ -3716,7 +3720,7 @@ function A3({
|
|
|
3716
3720
|
},
|
|
3717
3721
|
[b, t]
|
|
3718
3722
|
);
|
|
3719
|
-
return p && !M || o && ["floating", "embedded"].includes(n) && c.length === 0 && !p ? null : /* @__PURE__ */
|
|
3723
|
+
return p && !M || o && ["floating", "embedded"].includes(n) && c.length === 0 && !p ? null : /* @__PURE__ */ L(
|
|
3720
3724
|
nb,
|
|
3721
3725
|
{
|
|
3722
3726
|
suggestions: z,
|
|
@@ -3727,7 +3731,7 @@ function A3({
|
|
|
3727
3731
|
}
|
|
3728
3732
|
function s3({ className: e } = {}) {
|
|
3729
3733
|
const { notice: M } = S2();
|
|
3730
|
-
return M ? /* @__PURE__ */
|
|
3734
|
+
return M ? /* @__PURE__ */ L(
|
|
3731
3735
|
An,
|
|
3732
3736
|
{
|
|
3733
3737
|
icon: M.icon,
|
|
@@ -3744,7 +3748,7 @@ function l3({
|
|
|
3744
3748
|
children: e,
|
|
3745
3749
|
className: M
|
|
3746
3750
|
} = {}) {
|
|
3747
|
-
return e ? /* @__PURE__ */
|
|
3751
|
+
return e ? /* @__PURE__ */ L(
|
|
3748
3752
|
z1.div,
|
|
3749
3753
|
{
|
|
3750
3754
|
"data-slot": "chat-footer",
|
|
@@ -3763,9 +3767,9 @@ function l3({
|
|
|
3763
3767
|
animate: { opacity: 1, scale: 1 },
|
|
3764
3768
|
transition: { ...x2 },
|
|
3765
3769
|
children: [
|
|
3766
|
-
/* @__PURE__ */
|
|
3767
|
-
/* @__PURE__ */
|
|
3768
|
-
/* @__PURE__ */
|
|
3770
|
+
/* @__PURE__ */ L(A3, {}),
|
|
3771
|
+
/* @__PURE__ */ L(s3, {}),
|
|
3772
|
+
/* @__PURE__ */ L(i3, {})
|
|
3769
3773
|
]
|
|
3770
3774
|
}
|
|
3771
3775
|
);
|
|
@@ -3785,7 +3789,7 @@ function d3({
|
|
|
3785
3789
|
const t = M0.Children.toArray(M).some(
|
|
3786
3790
|
(p) => M0.isValidElement(p) && (p.type === Sz || typeof p.type == "function" && p.type.name === "AgentUIHeader")
|
|
3787
3791
|
);
|
|
3788
|
-
return /* @__PURE__ */
|
|
3792
|
+
return /* @__PURE__ */ L(
|
|
3789
3793
|
"div",
|
|
3790
3794
|
{
|
|
3791
3795
|
"data-slot": "conversation-view",
|
|
@@ -3800,9 +3804,9 @@ function d3({
|
|
|
3800
3804
|
"data-slot": "conversation-view",
|
|
3801
3805
|
className: `${G2.container}${e ? ` ${G2.withHeader}` : ""}${b ? ` ${b}` : ""}`,
|
|
3802
3806
|
children: [
|
|
3803
|
-
e && /* @__PURE__ */
|
|
3804
|
-
/* @__PURE__ */
|
|
3805
|
-
/* @__PURE__ */
|
|
3807
|
+
e && /* @__PURE__ */ L(Sz, {}),
|
|
3808
|
+
/* @__PURE__ */ L(O3, {}),
|
|
3809
|
+
/* @__PURE__ */ L(l3, {})
|
|
3806
3810
|
]
|
|
3807
3811
|
}
|
|
3808
3812
|
);
|
|
@@ -3820,12 +3824,12 @@ const Q4 = {
|
|
|
3820
3824
|
Footer: l3,
|
|
3821
3825
|
ConversationView: d3
|
|
3822
3826
|
}, lN = Object.assign(
|
|
3823
|
-
(e) => /* @__PURE__ */
|
|
3827
|
+
(e) => /* @__PURE__ */ L(
|
|
3824
3828
|
r3,
|
|
3825
3829
|
{
|
|
3826
3830
|
...e,
|
|
3827
3831
|
className: l1("agenttic", e.className),
|
|
3828
|
-
children: /* @__PURE__ */
|
|
3832
|
+
children: /* @__PURE__ */ L(
|
|
3829
3833
|
d3,
|
|
3830
3834
|
{
|
|
3831
3835
|
showHeader: e.variant === "floating"
|
|
@@ -3871,7 +3875,7 @@ const Q4 = {
|
|
|
3871
3875
|
onDragStart: (o) => z(e, o),
|
|
3872
3876
|
onDragEnd: (o) => t(e, o),
|
|
3873
3877
|
children: [
|
|
3874
|
-
/* @__PURE__ */
|
|
3878
|
+
/* @__PURE__ */ L(
|
|
3875
3879
|
"button",
|
|
3876
3880
|
{
|
|
3877
3881
|
className: j0.removeButton,
|
|
@@ -3881,7 +3885,7 @@ const Q4 = {
|
|
|
3881
3885
|
children: "×"
|
|
3882
3886
|
}
|
|
3883
3887
|
),
|
|
3884
|
-
/* @__PURE__ */
|
|
3888
|
+
/* @__PURE__ */ L(
|
|
3885
3889
|
"img",
|
|
3886
3890
|
{
|
|
3887
3891
|
src: e.url,
|
|
@@ -3891,7 +3895,7 @@ const Q4 = {
|
|
|
3891
3895
|
}
|
|
3892
3896
|
),
|
|
3893
3897
|
b && /* @__PURE__ */ a0("div", { className: j0.previewMeta, children: [
|
|
3894
|
-
/* @__PURE__ */
|
|
3898
|
+
/* @__PURE__ */ L(
|
|
3895
3899
|
"span",
|
|
3896
3900
|
{
|
|
3897
3901
|
className: j0.previewFilename,
|
|
@@ -3899,7 +3903,7 @@ const Q4 = {
|
|
|
3899
3903
|
children: n
|
|
3900
3904
|
}
|
|
3901
3905
|
),
|
|
3902
|
-
/* @__PURE__ */
|
|
3906
|
+
/* @__PURE__ */ L("span", { className: j0.previewType, children: c })
|
|
3903
3907
|
] })
|
|
3904
3908
|
]
|
|
3905
3909
|
},
|
|
@@ -3926,7 +3930,7 @@ function dN({
|
|
|
3926
3930
|
onError: m,
|
|
3927
3931
|
visible: y = !0
|
|
3928
3932
|
}) {
|
|
3929
|
-
const [
|
|
3933
|
+
const [R, B] = L0(!1), [W, g] = L0(!1), [h, w] = L0(!1), C = u0(null), I = u0(null), k = u0(0);
|
|
3930
3934
|
W0(() => {
|
|
3931
3935
|
const d = (U) => {
|
|
3932
3936
|
var K, l;
|
|
@@ -4028,18 +4032,18 @@ function dN({
|
|
|
4028
4032
|
g0("Only %s image files are allowed.", "a8c-agenttic"),
|
|
4029
4033
|
o.map((d) => d.split("/")[1].toUpperCase()).join(" or ")
|
|
4030
4034
|
);
|
|
4031
|
-
return /* @__PURE__ */
|
|
4035
|
+
return /* @__PURE__ */ L(
|
|
4032
4036
|
"div",
|
|
4033
4037
|
{
|
|
4034
4038
|
className: `${j0.container} ${A}`,
|
|
4035
4039
|
"data-slot": "image-uploader",
|
|
4036
|
-
children: /* @__PURE__ */
|
|
4040
|
+
children: /* @__PURE__ */ L(
|
|
4037
4041
|
"div",
|
|
4038
4042
|
{
|
|
4039
|
-
className: `${j0.uploader} ${q ? j0.uploading : ""} ${
|
|
4043
|
+
className: `${j0.uploader} ${q ? j0.uploading : ""} ${R ? j0.draggingOver : ""}`,
|
|
4040
4044
|
children: /* @__PURE__ */ a0("div", { className: j0.content, children: [
|
|
4041
4045
|
!h && /* @__PURE__ */ a0(Oe, { children: [
|
|
4042
|
-
/* @__PURE__ */
|
|
4046
|
+
/* @__PURE__ */ L(
|
|
4043
4047
|
"input",
|
|
4044
4048
|
{
|
|
4045
4049
|
ref: C,
|
|
@@ -4068,16 +4072,16 @@ function dN({
|
|
|
4068
4072
|
"a8c-agenttic"
|
|
4069
4073
|
),
|
|
4070
4074
|
children: [
|
|
4071
|
-
!i && !q && /* @__PURE__ */
|
|
4072
|
-
/* @__PURE__ */
|
|
4075
|
+
!i && !q && /* @__PURE__ */ L("div", { className: j0.draggingMessage, children: /* @__PURE__ */ a0("p", { children: [
|
|
4076
|
+
/* @__PURE__ */ L("strong", { children: g0(
|
|
4073
4077
|
"Drop files here to use",
|
|
4074
4078
|
"a8c-agenttic"
|
|
4075
4079
|
) }),
|
|
4076
|
-
/* @__PURE__ */
|
|
4080
|
+
/* @__PURE__ */ L("br", {}),
|
|
4077
4081
|
a && z0
|
|
4078
4082
|
] }) }),
|
|
4079
4083
|
!W && /* @__PURE__ */ a0("div", { className: j0.preview, children: [
|
|
4080
|
-
i && e.map((d) => /* @__PURE__ */
|
|
4084
|
+
i && e.map((d) => /* @__PURE__ */ L(
|
|
4081
4085
|
uA,
|
|
4082
4086
|
{
|
|
4083
4087
|
image: d,
|
|
@@ -4089,15 +4093,15 @@ function dN({
|
|
|
4089
4093
|
},
|
|
4090
4094
|
d.id
|
|
4091
4095
|
)),
|
|
4092
|
-
q && M.map(({ id: d }) => /* @__PURE__ */
|
|
4096
|
+
q && M.map(({ id: d }) => /* @__PURE__ */ L(
|
|
4093
4097
|
"div",
|
|
4094
4098
|
{
|
|
4095
4099
|
className: j0.previewItem,
|
|
4096
|
-
children: r || /* @__PURE__ */
|
|
4100
|
+
children: r || /* @__PURE__ */ L(
|
|
4097
4101
|
"div",
|
|
4098
4102
|
{
|
|
4099
4103
|
className: j0.uploadingIndicator,
|
|
4100
|
-
children: /* @__PURE__ */
|
|
4104
|
+
children: /* @__PURE__ */ L(
|
|
4101
4105
|
"div",
|
|
4102
4106
|
{
|
|
4103
4107
|
className: j0.spinner
|
|
@@ -4113,7 +4117,7 @@ function dN({
|
|
|
4113
4117
|
}
|
|
4114
4118
|
)
|
|
4115
4119
|
] }),
|
|
4116
|
-
h && /* @__PURE__ */
|
|
4120
|
+
h && /* @__PURE__ */ L("div", { className: j0.invalidMessage, children: /* @__PURE__ */ L("p", { children: o0 }) })
|
|
4117
4121
|
] })
|
|
4118
4122
|
}
|
|
4119
4123
|
)
|
|
@@ -4136,9 +4140,9 @@ const qA = "EmptyView-module_container", fA = "EmptyView-module_icon", WA = "Emp
|
|
|
4136
4140
|
),
|
|
4137
4141
|
help: t
|
|
4138
4142
|
}) => /* @__PURE__ */ a0("div", { className: ye.container, children: [
|
|
4139
|
-
/* @__PURE__ */
|
|
4140
|
-
/* @__PURE__ */
|
|
4141
|
-
e && e.length > 0 && /* @__PURE__ */
|
|
4143
|
+
/* @__PURE__ */ L("div", { className: ye.icon, children: b }),
|
|
4144
|
+
/* @__PURE__ */ L("h2", { className: ye.heading, children: z }),
|
|
4145
|
+
e && e.length > 0 && /* @__PURE__ */ L("div", { className: ye.suggestionsWrapper, children: /* @__PURE__ */ L(
|
|
4142
4146
|
nb,
|
|
4143
4147
|
{
|
|
4144
4148
|
suggestions: e,
|
|
@@ -4146,7 +4150,7 @@ const qA = "EmptyView-module_container", fA = "EmptyView-module_icon", WA = "Emp
|
|
|
4146
4150
|
translateY: 0
|
|
4147
4151
|
}
|
|
4148
4152
|
) }),
|
|
4149
|
-
t && /* @__PURE__ */
|
|
4153
|
+
t && /* @__PURE__ */ L("p", { className: ye.help, children: t })
|
|
4150
4154
|
] }), gA = "ImageRenderer-module_container", RA = "ImageRenderer-module_imageButton", LA = "ImageRenderer-module_selected", vA = "ImageRenderer-module_disabled", NA = "ImageRenderer-module_image", wA = "ImageRenderer-module_header", F2 = {
|
|
4151
4155
|
container: gA,
|
|
4152
4156
|
imageButton: RA,
|
|
@@ -4156,7 +4160,7 @@ const qA = "EmptyView-module_container", fA = "EmptyView-module_icon", WA = "Emp
|
|
|
4156
4160
|
header: wA
|
|
4157
4161
|
};
|
|
4158
4162
|
function yA({ className: e, size: M = 24 }) {
|
|
4159
|
-
return /* @__PURE__ */
|
|
4163
|
+
return /* @__PURE__ */ L(
|
|
4160
4164
|
"svg",
|
|
4161
4165
|
{
|
|
4162
4166
|
width: M,
|
|
@@ -4166,7 +4170,7 @@ function yA({ className: e, size: M = 24 }) {
|
|
|
4166
4170
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4167
4171
|
className: e,
|
|
4168
4172
|
"aria-hidden": "true",
|
|
4169
|
-
children: /* @__PURE__ */
|
|
4173
|
+
children: /* @__PURE__ */ L(
|
|
4170
4174
|
"path",
|
|
4171
4175
|
{
|
|
4172
4176
|
d: "M16.5 7L10.2 15.5L6.9 13L6 14.2L10.5 17.6L17.7 7.9L16.5 7Z",
|
|
@@ -4194,10 +4198,10 @@ const qN = ({
|
|
|
4194
4198
|
return window.addEventListener("click", n), () => window.removeEventListener("click", n);
|
|
4195
4199
|
}, [M, z, t]), /* @__PURE__ */ a0(z1.div, { children: [
|
|
4196
4200
|
b || /* @__PURE__ */ a0("div", { className: F2.header, children: [
|
|
4197
|
-
/* @__PURE__ */
|
|
4201
|
+
/* @__PURE__ */ L(yA, {}),
|
|
4198
4202
|
" Done"
|
|
4199
4203
|
] }),
|
|
4200
|
-
/* @__PURE__ */
|
|
4204
|
+
/* @__PURE__ */ L("div", { className: F2.container, children: e.map((n) => /* @__PURE__ */ L(
|
|
4201
4205
|
"button",
|
|
4202
4206
|
{
|
|
4203
4207
|
className: l1(
|
|
@@ -4210,7 +4214,7 @@ const qN = ({
|
|
|
4210
4214
|
},
|
|
4211
4215
|
disabled: z,
|
|
4212
4216
|
type: "button",
|
|
4213
|
-
children: /* @__PURE__ */
|
|
4217
|
+
children: /* @__PURE__ */ L(
|
|
4214
4218
|
"img",
|
|
4215
4219
|
{
|
|
4216
4220
|
src: n.url,
|
|
@@ -4224,7 +4228,7 @@ const qN = ({
|
|
|
4224
4228
|
] });
|
|
4225
4229
|
};
|
|
4226
4230
|
function fN({ className: e, size: M = 24 }) {
|
|
4227
|
-
return /* @__PURE__ */
|
|
4231
|
+
return /* @__PURE__ */ L(
|
|
4228
4232
|
"svg",
|
|
4229
4233
|
{
|
|
4230
4234
|
width: M,
|
|
@@ -4233,7 +4237,7 @@ function fN({ className: e, size: M = 24 }) {
|
|
|
4233
4237
|
fill: "none",
|
|
4234
4238
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4235
4239
|
className: e,
|
|
4236
|
-
children: /* @__PURE__ */
|
|
4240
|
+
children: /* @__PURE__ */ L(
|
|
4237
4241
|
"path",
|
|
4238
4242
|
{
|
|
4239
4243
|
d: "M6.97288 17.25C6.97288 17.3881 7.08481 17.5 7.22288 17.5L8.5 17.5L8.5 12.875L7.22288 12.875C7.08481 12.875 6.97288 12.9869 6.97288 13.125L6.97288 17.25ZM16.3725 17.5C17.1129 17.5 17.7434 16.9587 17.8549 16.2256L18.4819 13.1006C18.6199 12.1924 17.9175 11.3752 17.0004 11.375L14.0698 11.375C13.8509 11.3749 13.6429 11.2794 13.5004 11.1133C13.358 10.9469 13.2949 10.7261 13.3286 10.5098L13.7602 7.74023C13.8309 7.28511 13.4792 6.875 13.02 6.875L13.0141 6.87891L10 12.5L10 17.5L16.3725 17.5ZM5.47288 13.125C5.47288 12.1585 6.25638 11.375 7.22288 11.375L9.01216 11.375L11.6811 6.19238C11.9394 5.69079 12.4558 5.3751 13.02 5.375C14.4008 5.375 15.4552 6.6078 15.2426 7.97168L14.9458 9.875L17.0004 9.875C18.8366 9.87517 20.2413 11.511 19.9653 13.3262L19.3374 16.4512C19.1145 17.9166 17.8548 19 16.3725 19L7.22288 19C6.25638 19 5.47288 18.2165 5.47288 17.25L5.47288 13.125Z",
|
|
@@ -4244,7 +4248,7 @@ function fN({ className: e, size: M = 24 }) {
|
|
|
4244
4248
|
);
|
|
4245
4249
|
}
|
|
4246
4250
|
function WN({ className: e, size: M = 24 }) {
|
|
4247
|
-
return /* @__PURE__ */
|
|
4251
|
+
return /* @__PURE__ */ L(
|
|
4248
4252
|
"svg",
|
|
4249
4253
|
{
|
|
4250
4254
|
width: M,
|
|
@@ -4254,7 +4258,7 @@ function WN({ className: e, size: M = 24 }) {
|
|
|
4254
4258
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4255
4259
|
className: e,
|
|
4256
4260
|
"aria-hidden": "true",
|
|
4257
|
-
children: /* @__PURE__ */
|
|
4261
|
+
children: /* @__PURE__ */ L(
|
|
4258
4262
|
"path",
|
|
4259
4263
|
{
|
|
4260
4264
|
d: "M6.97288 6.75C6.97288 6.61194 7.08481 6.5 7.22288 6.5L8.5 6.5L8.5 11.125L7.22288 11.125C7.08481 11.125 6.97288 11.0131 6.97288 10.875L6.97288 6.75ZM16.3725 6.5C17.1129 6.5 17.7434 7.0413 17.8549 7.77438L18.4819 10.8994C18.6199 11.8076 17.9175 12.6248 17.0004 12.625L14.0698 12.625C13.8509 12.6251 13.6429 12.7206 13.5004 12.8867C13.358 13.0531 13.2949 13.2739 13.3286 13.4902L13.7602 16.2598C13.8309 16.7149 13.4792 17.125 13.02 17.125L13.0141 17.1211L10 11.5L10 6.5L16.3725 6.5ZM5.47288 10.875C5.47288 11.8415 6.25638 12.625 7.22288 12.625L9.01216 12.625L11.6811 17.8076C11.9394 18.3092 12.4558 18.6249 13.02 18.625C14.4008 18.625 15.4552 17.3922 15.2426 16.0283L14.9458 14.125L17.0004 14.125C18.8366 14.1248 20.2413 12.489 19.9653 10.6738L19.3374 7.54883C19.1145 6.08344 17.8548 5 16.3725 5L7.22288 5C6.25638 5 5.47288 5.78348 5.47288 6.75L5.47288 10.875Z",
|
|
@@ -4265,7 +4269,7 @@ function WN({ className: e, size: M = 24 }) {
|
|
|
4265
4269
|
);
|
|
4266
4270
|
}
|
|
4267
4271
|
function hN({ className: e, size: M = 24 }) {
|
|
4268
|
-
return /* @__PURE__ */
|
|
4272
|
+
return /* @__PURE__ */ L(
|
|
4269
4273
|
"svg",
|
|
4270
4274
|
{
|
|
4271
4275
|
width: M,
|
|
@@ -4275,7 +4279,7 @@ function hN({ className: e, size: M = 24 }) {
|
|
|
4275
4279
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4276
4280
|
className: e,
|
|
4277
4281
|
"aria-hidden": "true",
|
|
4278
|
-
children: /* @__PURE__ */
|
|
4282
|
+
children: /* @__PURE__ */ L(
|
|
4279
4283
|
"path",
|
|
4280
4284
|
{
|
|
4281
4285
|
d: "M14.5 12C14.5 11.1716 13.8284 10.5 13 10.5H8C7.17157 10.5 6.5 11.1716 6.5 12V17C6.5 17.8284 7.17157 18.5 8 18.5H13C13.8284 18.5 14.5 17.8284 14.5 17V12ZM16 14.5H16.5C17.3284 14.5 18 13.8284 18 13V8C18 7.17157 17.3284 6.5 16.5 6.5H11C10.1716 6.5 9.5 7.17157 9.5 8V9H13C14.6569 9 16 10.3431 16 12V14.5ZM19.5 13C19.5 14.6569 18.1569 16 16.5 16H16V17C16 18.6569 14.6569 20 13 20H8C6.34315 20 5 18.6569 5 17V12C5 10.3431 6.34315 9 8 9V8C8 6.34315 9.34315 5 11 5H16.5C18.1569 5 19.5 6.34315 19.5 8V13Z",
|
|
@@ -4286,7 +4290,7 @@ function hN({ className: e, size: M = 24 }) {
|
|
|
4286
4290
|
);
|
|
4287
4291
|
}
|
|
4288
4292
|
function mN({ className: e, size: M = 24 }) {
|
|
4289
|
-
return /* @__PURE__ */
|
|
4293
|
+
return /* @__PURE__ */ L(
|
|
4290
4294
|
"svg",
|
|
4291
4295
|
{
|
|
4292
4296
|
width: M,
|
|
@@ -4296,7 +4300,7 @@ function mN({ className: e, size: M = 24 }) {
|
|
|
4296
4300
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4297
4301
|
className: e,
|
|
4298
4302
|
"aria-hidden": "true",
|
|
4299
|
-
children: /* @__PURE__ */
|
|
4303
|
+
children: /* @__PURE__ */ L(
|
|
4300
4304
|
"path",
|
|
4301
4305
|
{
|
|
4302
4306
|
fillRule: "evenodd",
|
|
@@ -4309,7 +4313,7 @@ function mN({ className: e, size: M = 24 }) {
|
|
|
4309
4313
|
);
|
|
4310
4314
|
}
|
|
4311
4315
|
function gN({ className: e, size: M = 24 }) {
|
|
4312
|
-
return /* @__PURE__ */
|
|
4316
|
+
return /* @__PURE__ */ L(
|
|
4313
4317
|
"svg",
|
|
4314
4318
|
{
|
|
4315
4319
|
width: M,
|
|
@@ -4318,7 +4322,7 @@ function gN({ className: e, size: M = 24 }) {
|
|
|
4318
4322
|
fill: "none",
|
|
4319
4323
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4320
4324
|
className: e,
|
|
4321
|
-
children: /* @__PURE__ */
|
|
4325
|
+
children: /* @__PURE__ */ L(
|
|
4322
4326
|
"path",
|
|
4323
4327
|
{
|
|
4324
4328
|
fillRule: "evenodd",
|
|
@@ -4341,14 +4345,14 @@ function RN({ className: e, size: M = 24 }) {
|
|
|
4341
4345
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4342
4346
|
className: e,
|
|
4343
4347
|
children: [
|
|
4344
|
-
/* @__PURE__ */
|
|
4348
|
+
/* @__PURE__ */ L(
|
|
4345
4349
|
"path",
|
|
4346
4350
|
{
|
|
4347
4351
|
d: "M11.2222 14.3333C12.9404 14.3333 14.3333 12.9404 14.3333 11.2222C14.3333 9.50401 12.9404 8.11111 11.2222 8.11111C9.50401 8.11111 8.11111 9.50401 8.11111 11.2222C8.11111 12.9404 9.50401 14.3333 11.2222 14.3333Z",
|
|
4348
4352
|
fill: "currentColor"
|
|
4349
4353
|
}
|
|
4350
4354
|
),
|
|
4351
|
-
/* @__PURE__ */
|
|
4355
|
+
/* @__PURE__ */ L(
|
|
4352
4356
|
"path",
|
|
4353
4357
|
{
|
|
4354
4358
|
fillRule: "evenodd",
|
|
@@ -4373,14 +4377,14 @@ function LN({ className: e, size: M = 24 }) {
|
|
|
4373
4377
|
className: e,
|
|
4374
4378
|
"aria-hidden": "true",
|
|
4375
4379
|
children: [
|
|
4376
|
-
/* @__PURE__ */
|
|
4380
|
+
/* @__PURE__ */ L(
|
|
4377
4381
|
"path",
|
|
4378
4382
|
{
|
|
4379
4383
|
fill: "currentColor",
|
|
4380
4384
|
d: "M11.98 21c-4.96 0-9-4.04-9-9s4.04-9 9-9c2.54 0 4.53.88 6.52 2.91V4c0-.41.34-.75.75-.75s.75.34.75.75v4c0 .41-.34.75-.75.75h-4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2.46c-1.8-1.95-3.48-2.75-5.73-2.75-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5c3.57 0 4.49-.76 5.33-1.76.27-.32.74-.36 1.06-.09.32.27.36.74.09 1.06-1.22 1.46-2.68 2.3-6.48 2.3Z"
|
|
4381
4385
|
}
|
|
4382
4386
|
),
|
|
4383
|
-
/* @__PURE__ */
|
|
4387
|
+
/* @__PURE__ */ L(
|
|
4384
4388
|
"path",
|
|
4385
4389
|
{
|
|
4386
4390
|
fill: "currentColor",
|
|
@@ -4403,14 +4407,14 @@ function vN({ className: e, size: M = 24 }) {
|
|
|
4403
4407
|
className: e,
|
|
4404
4408
|
"aria-hidden": "true",
|
|
4405
4409
|
children: [
|
|
4406
|
-
/* @__PURE__ */
|
|
4410
|
+
/* @__PURE__ */ L(
|
|
4407
4411
|
"path",
|
|
4408
4412
|
{
|
|
4409
4413
|
fill: "currentColor",
|
|
4410
4414
|
d: "M8.082 12.589H6.667l.68-2.308h.034l.701 2.308Z"
|
|
4411
4415
|
}
|
|
4412
4416
|
),
|
|
4413
|
-
/* @__PURE__ */
|
|
4417
|
+
/* @__PURE__ */ L(
|
|
4414
4418
|
"path",
|
|
4415
4419
|
{
|
|
4416
4420
|
fill: "currentColor",
|
|
@@ -4424,7 +4428,7 @@ function vN({ className: e, size: M = 24 }) {
|
|
|
4424
4428
|
);
|
|
4425
4429
|
}
|
|
4426
4430
|
function NN({ className: e, size: M = 24 }) {
|
|
4427
|
-
return /* @__PURE__ */
|
|
4431
|
+
return /* @__PURE__ */ L(
|
|
4428
4432
|
"svg",
|
|
4429
4433
|
{
|
|
4430
4434
|
width: M,
|
|
@@ -4434,7 +4438,7 @@ function NN({ className: e, size: M = 24 }) {
|
|
|
4434
4438
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4435
4439
|
className: e,
|
|
4436
4440
|
"aria-hidden": "true",
|
|
4437
|
-
children: /* @__PURE__ */
|
|
4441
|
+
children: /* @__PURE__ */ L(
|
|
4438
4442
|
"path",
|
|
4439
4443
|
{
|
|
4440
4444
|
fill: "currentColor",
|
|
@@ -4592,13 +4596,13 @@ function q3(e, M, b, z) {
|
|
|
4592
4596
|
if ((!M || p(o, a, O[O.length - 1] || void 0)) && (u = DA(b(o, O)), u[0] === Dz))
|
|
4593
4597
|
return u;
|
|
4594
4598
|
if ("children" in o && o.children) {
|
|
4595
|
-
const
|
|
4599
|
+
const R = (
|
|
4596
4600
|
/** @type {UnistParent} */
|
|
4597
4601
|
o
|
|
4598
4602
|
);
|
|
4599
|
-
if (
|
|
4600
|
-
for (m = (z ?
|
|
4601
|
-
const B =
|
|
4603
|
+
if (R.children && u[0] !== SA)
|
|
4604
|
+
for (m = (z ? R.children.length : -1) + c, y = O.concat(R); m > -1 && m < R.children.length; ) {
|
|
4605
|
+
const B = R.children[m];
|
|
4602
4606
|
if (s = n(B, m, y)(), s[0] === Dz)
|
|
4603
4607
|
return s;
|
|
4604
4608
|
m = typeof s[1] == "number" ? s[1] : m + c;
|
|
@@ -4635,7 +4639,7 @@ function PA(e, M, b) {
|
|
|
4635
4639
|
const r = O[O.length - 1], A = p[c][0], u = p[c][1];
|
|
4636
4640
|
let s = 0;
|
|
4637
4641
|
const y = r.children.indexOf(a);
|
|
4638
|
-
let
|
|
4642
|
+
let R = !1, B = [];
|
|
4639
4643
|
A.lastIndex = 0;
|
|
4640
4644
|
let W = A.exec(a.value);
|
|
4641
4645
|
for (; W; ) {
|
|
@@ -4648,11 +4652,11 @@ function PA(e, M, b) {
|
|
|
4648
4652
|
if (typeof w == "string" && (w = w.length > 0 ? { type: "text", value: w } : void 0), w === !1 ? A.lastIndex = g + 1 : (s !== g && B.push({
|
|
4649
4653
|
type: "text",
|
|
4650
4654
|
value: a.value.slice(s, g)
|
|
4651
|
-
}), Array.isArray(w) ? B.push(...w) : w && B.push(w), s = g + W[0].length,
|
|
4655
|
+
}), Array.isArray(w) ? B.push(...w) : w && B.push(w), s = g + W[0].length, R = !0), !A.global)
|
|
4652
4656
|
break;
|
|
4653
4657
|
W = A.exec(a.value);
|
|
4654
4658
|
}
|
|
4655
|
-
return
|
|
4659
|
+
return R ? (s < a.value.length && B.push({ type: "text", value: a.value.slice(s) }), r.children.splice(y, 1, ...B)) : B = [a], y + B.length;
|
|
4656
4660
|
}
|
|
4657
4661
|
}
|
|
4658
4662
|
function HA(e) {
|
|
@@ -4943,12 +4947,12 @@ function hs(e, M) {
|
|
|
4943
4947
|
let a = 0, O = -1;
|
|
4944
4948
|
for (; ++O < e.length; ) {
|
|
4945
4949
|
const m = [], y = [];
|
|
4946
|
-
let
|
|
4947
|
-
for (e[O].length > a && (a = e[O].length); ++
|
|
4948
|
-
const B = ms(e[O][
|
|
4950
|
+
let R = -1;
|
|
4951
|
+
for (e[O].length > a && (a = e[O].length); ++R < e[O].length; ) {
|
|
4952
|
+
const B = ms(e[O][R]);
|
|
4949
4953
|
if (b.alignDelimiters !== !1) {
|
|
4950
4954
|
const W = t(B);
|
|
4951
|
-
y[
|
|
4955
|
+
y[R] = W, (o[R] === void 0 || W > o[R]) && (o[R] = W);
|
|
4952
4956
|
}
|
|
4953
4957
|
m.push(B);
|
|
4954
4958
|
}
|
|
@@ -4967,21 +4971,21 @@ function hs(e, M) {
|
|
|
4967
4971
|
const A = [], u = [];
|
|
4968
4972
|
for (; ++r < a; ) {
|
|
4969
4973
|
const m = p[r];
|
|
4970
|
-
let y = "",
|
|
4971
|
-
m === 99 ? (y = ":",
|
|
4974
|
+
let y = "", R = "";
|
|
4975
|
+
m === 99 ? (y = ":", R = ":") : m === 108 ? y = ":" : m === 114 && (R = ":");
|
|
4972
4976
|
let B = b.alignDelimiters === !1 ? 1 : Math.max(
|
|
4973
4977
|
1,
|
|
4974
|
-
o[r] - y.length -
|
|
4978
|
+
o[r] - y.length - R.length
|
|
4975
4979
|
);
|
|
4976
|
-
const W = y + "-".repeat(B) +
|
|
4977
|
-
b.alignDelimiters !== !1 && (B = y.length + B +
|
|
4980
|
+
const W = y + "-".repeat(B) + R;
|
|
4981
|
+
b.alignDelimiters !== !1 && (B = y.length + B + R.length, B > o[r] && (o[r] = B), u[r] = B), A[r] = W;
|
|
4978
4982
|
}
|
|
4979
4983
|
c.splice(1, 0, A), n.splice(1, 0, u), O = -1;
|
|
4980
4984
|
const s = [];
|
|
4981
4985
|
for (; ++O < c.length; ) {
|
|
4982
4986
|
const m = c[O], y = n[O];
|
|
4983
4987
|
r = -1;
|
|
4984
|
-
const
|
|
4988
|
+
const R = [];
|
|
4985
4989
|
for (; ++r < a; ) {
|
|
4986
4990
|
const B = m[r] || "";
|
|
4987
4991
|
let W = "", g = "";
|
|
@@ -4989,12 +4993,12 @@ function hs(e, M) {
|
|
|
4989
4993
|
const h = o[r] - (y[r] || 0), w = p[r];
|
|
4990
4994
|
w === 114 ? W = " ".repeat(h) : w === 99 ? h % 2 ? (W = " ".repeat(h / 2 + 0.5), g = " ".repeat(h / 2 - 0.5)) : (W = " ".repeat(h / 2), g = W) : g = " ".repeat(h);
|
|
4991
4995
|
}
|
|
4992
|
-
b.delimiterStart !== !1 && !r &&
|
|
4996
|
+
b.delimiterStart !== !1 && !r && R.push("|"), b.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
4993
4997
|
// empty: there will be a closing space.
|
|
4994
|
-
!(b.alignDelimiters === !1 && B === "") && (b.delimiterStart !== !1 || r) &&
|
|
4998
|
+
!(b.alignDelimiters === !1 && B === "") && (b.delimiterStart !== !1 || r) && R.push(" "), b.alignDelimiters !== !1 && R.push(W), R.push(B), b.alignDelimiters !== !1 && R.push(g), b.padding !== !1 && R.push(" "), (b.delimiterEnd !== !1 || r !== a - 1) && R.push("|");
|
|
4995
4999
|
}
|
|
4996
5000
|
s.push(
|
|
4997
|
-
b.delimiterEnd === !1 ?
|
|
5001
|
+
b.delimiterEnd === !1 ? R.join("").replace(/ +$/, "") : R.join("")
|
|
4998
5002
|
);
|
|
4999
5003
|
}
|
|
5000
5004
|
return s.join(`
|
|
@@ -5727,17 +5731,17 @@ function rl(e) {
|
|
|
5727
5731
|
return a(O(u, m, y), u.align);
|
|
5728
5732
|
}
|
|
5729
5733
|
function n(u, s, m, y) {
|
|
5730
|
-
const
|
|
5734
|
+
const R = r(u, m, y), B = a([R]);
|
|
5731
5735
|
return B.slice(0, B.indexOf(`
|
|
5732
5736
|
`));
|
|
5733
5737
|
}
|
|
5734
5738
|
function o(u, s, m, y) {
|
|
5735
|
-
const
|
|
5739
|
+
const R = m.enter("tableCell"), B = m.enter("phrasing"), W = m.containerPhrasing(u, {
|
|
5736
5740
|
...y,
|
|
5737
5741
|
before: p,
|
|
5738
5742
|
after: p
|
|
5739
5743
|
});
|
|
5740
|
-
return B(),
|
|
5744
|
+
return B(), R(), W;
|
|
5741
5745
|
}
|
|
5742
5746
|
function a(u, s) {
|
|
5743
5747
|
return hs(u, {
|
|
@@ -5752,18 +5756,18 @@ function rl(e) {
|
|
|
5752
5756
|
}
|
|
5753
5757
|
function O(u, s, m) {
|
|
5754
5758
|
const y = u.children;
|
|
5755
|
-
let
|
|
5759
|
+
let R = -1;
|
|
5756
5760
|
const B = [], W = s.enter("table");
|
|
5757
|
-
for (; ++
|
|
5758
|
-
B[
|
|
5761
|
+
for (; ++R < y.length; )
|
|
5762
|
+
B[R] = r(y[R], s, m);
|
|
5759
5763
|
return W(), B;
|
|
5760
5764
|
}
|
|
5761
5765
|
function r(u, s, m) {
|
|
5762
5766
|
const y = u.children;
|
|
5763
|
-
let
|
|
5767
|
+
let R = -1;
|
|
5764
5768
|
const B = [], W = s.enter("tableRow");
|
|
5765
|
-
for (; ++
|
|
5766
|
-
B[
|
|
5769
|
+
for (; ++R < y.length; )
|
|
5770
|
+
B[R] = o(y[R], u, s, m);
|
|
5767
5771
|
return W(), B;
|
|
5768
5772
|
}
|
|
5769
5773
|
function A(u, s, m) {
|
|
@@ -6347,8 +6351,8 @@ function Fl(e) {
|
|
|
6347
6351
|
if (s === 126)
|
|
6348
6352
|
return r > 1 ? o(s) : (c.consume(s), r++, u);
|
|
6349
6353
|
if (r < 2 && !b) return o(s);
|
|
6350
|
-
const y = c.exit("strikethroughSequenceTemporary"),
|
|
6351
|
-
return y._open = !
|
|
6354
|
+
const y = c.exit("strikethroughSequenceTemporary"), R = PM(s);
|
|
6355
|
+
return y._open = !R || R === 2 && !!m, y._close = !m || m === 2 && !!R, n(s);
|
|
6352
6356
|
}
|
|
6353
6357
|
}
|
|
6354
6358
|
}
|
|
@@ -6491,9 +6495,9 @@ function Yl(e, M, b) {
|
|
|
6491
6495
|
return b2(T) ? z2(e, y, "whitespace")(T) : y(T);
|
|
6492
6496
|
}
|
|
6493
6497
|
function y(T) {
|
|
6494
|
-
return T === 58 ? (p += 1, c = !0, e.enter("tableDelimiterMarker"), e.consume(T), e.exit("tableDelimiterMarker"),
|
|
6498
|
+
return T === 58 ? (p += 1, c = !0, e.enter("tableDelimiterMarker"), e.consume(T), e.exit("tableDelimiterMarker"), R) : T === 45 ? (p += 1, R(T)) : T === null || K2(T) ? g(T) : h(T);
|
|
6495
6499
|
}
|
|
6496
|
-
function
|
|
6500
|
+
function R(T) {
|
|
6497
6501
|
return T === 45 ? (e.enter("tableDelimiterFiller"), B(T)) : h(T);
|
|
6498
6502
|
}
|
|
6499
6503
|
function B(T) {
|
|
@@ -6689,7 +6693,7 @@ var j3 = ({
|
|
|
6689
6693
|
if (e)
|
|
6690
6694
|
return (O) => {
|
|
6691
6695
|
const r = e(O);
|
|
6692
|
-
return M !== void 0 ? /* @__PURE__ */
|
|
6696
|
+
return M !== void 0 ? /* @__PURE__ */ L(
|
|
6693
6697
|
"div",
|
|
6694
6698
|
{
|
|
6695
6699
|
ref: b,
|
|
@@ -6701,10 +6705,10 @@ var j3 = ({
|
|
|
6701
6705
|
children: r
|
|
6702
6706
|
},
|
|
6703
6707
|
`chart-tooltip-${M}`
|
|
6704
|
-
) : /* @__PURE__ */
|
|
6708
|
+
) : /* @__PURE__ */ L("div", { role: "tooltip", "aria-live": "polite", children: r });
|
|
6705
6709
|
};
|
|
6706
6710
|
}, [e, M, b, z]);
|
|
6707
|
-
return /* @__PURE__ */
|
|
6711
|
+
return /* @__PURE__ */ L(JO, { ...c, renderTooltip: a });
|
|
6708
6712
|
}, V3 = ({
|
|
6709
6713
|
selectedIndex: e,
|
|
6710
6714
|
setSelectedIndex: M,
|
|
@@ -6781,7 +6785,7 @@ var Gp;
|
|
|
6781
6785
|
function td() {
|
|
6782
6786
|
if (Gp) return B0;
|
|
6783
6787
|
Gp = 1;
|
|
6784
|
-
var e = typeof Symbol == "function" && Symbol.for, M = e ? Symbol.for("react.element") : 60103, b = e ? Symbol.for("react.portal") : 60106, z = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, p = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, n = e ? Symbol.for("react.context") : 60110, o = e ? Symbol.for("react.async_mode") : 60111, a = e ? Symbol.for("react.concurrent_mode") : 60111, O = e ? Symbol.for("react.forward_ref") : 60112, r = e ? Symbol.for("react.suspense") : 60113, A = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, s = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117,
|
|
6788
|
+
var e = typeof Symbol == "function" && Symbol.for, M = e ? Symbol.for("react.element") : 60103, b = e ? Symbol.for("react.portal") : 60106, z = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, p = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, n = e ? Symbol.for("react.context") : 60110, o = e ? Symbol.for("react.async_mode") : 60111, a = e ? Symbol.for("react.concurrent_mode") : 60111, O = e ? Symbol.for("react.forward_ref") : 60112, r = e ? Symbol.for("react.suspense") : 60113, A = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, s = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
6785
6789
|
function W(h) {
|
|
6786
6790
|
if (typeof h == "object" && h !== null) {
|
|
6787
6791
|
var w = h.$$typeof;
|
|
@@ -6840,7 +6844,7 @@ function td() {
|
|
|
6840
6844
|
}, B0.isSuspense = function(h) {
|
|
6841
6845
|
return W(h) === r;
|
|
6842
6846
|
}, B0.isValidElementType = function(h) {
|
|
6843
|
-
return typeof h == "string" || typeof h == "function" || h === z || h === a || h === p || h === t || h === r || h === A || typeof h == "object" && h !== null && (h.$$typeof === s || h.$$typeof === u || h.$$typeof === c || h.$$typeof === n || h.$$typeof === O || h.$$typeof === y || h.$$typeof ===
|
|
6847
|
+
return typeof h == "string" || typeof h == "function" || h === z || h === a || h === p || h === t || h === r || h === A || typeof h == "object" && h !== null && (h.$$typeof === s || h.$$typeof === u || h.$$typeof === c || h.$$typeof === n || h.$$typeof === O || h.$$typeof === y || h.$$typeof === R || h.$$typeof === B || h.$$typeof === m);
|
|
6844
6848
|
}, B0.typeOf = W, B0;
|
|
6845
6849
|
}
|
|
6846
6850
|
var T0 = {};
|
|
@@ -6855,10 +6859,10 @@ var T0 = {};
|
|
|
6855
6859
|
var Kp;
|
|
6856
6860
|
function pd() {
|
|
6857
6861
|
return Kp || (Kp = 1, process.env.NODE_ENV !== "production" && function() {
|
|
6858
|
-
var e = typeof Symbol == "function" && Symbol.for, M = e ? Symbol.for("react.element") : 60103, b = e ? Symbol.for("react.portal") : 60106, z = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, p = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, n = e ? Symbol.for("react.context") : 60110, o = e ? Symbol.for("react.async_mode") : 60111, a = e ? Symbol.for("react.concurrent_mode") : 60111, O = e ? Symbol.for("react.forward_ref") : 60112, r = e ? Symbol.for("react.suspense") : 60113, A = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, s = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117,
|
|
6862
|
+
var e = typeof Symbol == "function" && Symbol.for, M = e ? Symbol.for("react.element") : 60103, b = e ? Symbol.for("react.portal") : 60106, z = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, p = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, n = e ? Symbol.for("react.context") : 60110, o = e ? Symbol.for("react.async_mode") : 60111, a = e ? Symbol.for("react.concurrent_mode") : 60111, O = e ? Symbol.for("react.forward_ref") : 60112, r = e ? Symbol.for("react.suspense") : 60113, A = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, s = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
6859
6863
|
function W(X) {
|
|
6860
6864
|
return typeof X == "string" || typeof X == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
6861
|
-
X === z || X === a || X === p || X === t || X === r || X === A || typeof X == "object" && X !== null && (X.$$typeof === s || X.$$typeof === u || X.$$typeof === c || X.$$typeof === n || X.$$typeof === O || X.$$typeof === y || X.$$typeof ===
|
|
6865
|
+
X === z || X === a || X === p || X === t || X === r || X === A || typeof X == "object" && X !== null && (X.$$typeof === s || X.$$typeof === u || X.$$typeof === c || X.$$typeof === n || X.$$typeof === O || X.$$typeof === y || X.$$typeof === R || X.$$typeof === B || X.$$typeof === m);
|
|
6862
6866
|
}
|
|
6863
6867
|
function g(X) {
|
|
6864
6868
|
if (typeof X == "object" && X !== null) {
|
|
@@ -7075,14 +7079,14 @@ function nd() {
|
|
|
7075
7079
|
return q;
|
|
7076
7080
|
}
|
|
7077
7081
|
var A = "<<anonymous>>", u = {
|
|
7078
|
-
array:
|
|
7079
|
-
bigint:
|
|
7080
|
-
bool:
|
|
7081
|
-
func:
|
|
7082
|
-
number:
|
|
7083
|
-
object:
|
|
7084
|
-
string:
|
|
7085
|
-
symbol:
|
|
7082
|
+
array: R("array"),
|
|
7083
|
+
bigint: R("bigint"),
|
|
7084
|
+
bool: R("boolean"),
|
|
7085
|
+
func: R("function"),
|
|
7086
|
+
number: R("number"),
|
|
7087
|
+
object: R("object"),
|
|
7088
|
+
string: R("string"),
|
|
7089
|
+
symbol: R("symbol"),
|
|
7086
7090
|
any: B(),
|
|
7087
7091
|
arrayOf: W,
|
|
7088
7092
|
element: g(),
|
|
@@ -7125,7 +7129,7 @@ function nd() {
|
|
|
7125
7129
|
var d = o0.bind(null, !1);
|
|
7126
7130
|
return d.isRequired = o0.bind(null, !0), d;
|
|
7127
7131
|
}
|
|
7128
|
-
function
|
|
7132
|
+
function R(i) {
|
|
7129
7133
|
function q(z0, o0, d, G, Q, U) {
|
|
7130
7134
|
var K = z0[o0], l = H(K);
|
|
7131
7135
|
if (l !== i) {
|
|
@@ -7496,7 +7500,7 @@ function n5(e, M, b) {
|
|
|
7496
7500
|
return z = t = void 0, a = w, c = e.apply(I, C), c;
|
|
7497
7501
|
}
|
|
7498
7502
|
function s(w) {
|
|
7499
|
-
return a = w, n = setTimeout(
|
|
7503
|
+
return a = w, n = setTimeout(R, M), O ? u(w) : c;
|
|
7500
7504
|
}
|
|
7501
7505
|
function m(w) {
|
|
7502
7506
|
var C = w - o, I = w - a, k = M - C;
|
|
@@ -7506,11 +7510,11 @@ function n5(e, M, b) {
|
|
|
7506
7510
|
var C = w - o, I = w - a;
|
|
7507
7511
|
return o === void 0 || C >= M || C < 0 || r && I >= p;
|
|
7508
7512
|
}
|
|
7509
|
-
function
|
|
7513
|
+
function R() {
|
|
7510
7514
|
var w = cz();
|
|
7511
7515
|
if (y(w))
|
|
7512
7516
|
return B(w);
|
|
7513
|
-
n = setTimeout(
|
|
7517
|
+
n = setTimeout(R, m(w));
|
|
7514
7518
|
}
|
|
7515
7519
|
function B(w) {
|
|
7516
7520
|
return n = void 0, A && z ? u(w) : (z = t = void 0, c);
|
|
@@ -7527,9 +7531,9 @@ function n5(e, M, b) {
|
|
|
7527
7531
|
if (n === void 0)
|
|
7528
7532
|
return s(o);
|
|
7529
7533
|
if (r)
|
|
7530
|
-
return clearTimeout(n), n = setTimeout(
|
|
7534
|
+
return clearTimeout(n), n = setTimeout(R, M), u(o);
|
|
7531
7535
|
}
|
|
7532
|
-
return n === void 0 && (n = setTimeout(
|
|
7536
|
+
return n === void 0 && (n = setTimeout(R, M)), c;
|
|
7533
7537
|
}
|
|
7534
7538
|
return h.cancel = W, h.flush = g, h;
|
|
7535
7539
|
}
|
|
@@ -7553,13 +7557,13 @@ var O5 = [], rc = {
|
|
|
7553
7557
|
};
|
|
7554
7558
|
function i5(e) {
|
|
7555
7559
|
var M = e === void 0 ? {} : e, b = M.initialSize, z = b === void 0 ? rc : b, t = M.debounceTime, p = t === void 0 ? 300 : t, c = M.ignoreDimensions, n = c === void 0 ? O5 : c, o = M.enableDebounceLeadingCall, a = o === void 0 ? !0 : o, O = M.resizeObserverPolyfill, r = u0(null), A = u0(0), u = L0(IM({}, rc, z)), s = u[0], m = u[1], y = m0(function() {
|
|
7556
|
-
var
|
|
7560
|
+
var R = Array.isArray(n) ? n : [n];
|
|
7557
7561
|
return r5(function(B) {
|
|
7558
7562
|
m(function(W) {
|
|
7559
7563
|
var g = Object.keys(W), h = g.filter(function(C) {
|
|
7560
7564
|
return W[C] !== B[C];
|
|
7561
7565
|
}), w = h.every(function(C) {
|
|
7562
|
-
return
|
|
7566
|
+
return R.includes(C);
|
|
7563
7567
|
});
|
|
7564
7568
|
return w ? W : B;
|
|
7565
7569
|
});
|
|
@@ -7568,7 +7572,7 @@ function i5(e) {
|
|
|
7568
7572
|
});
|
|
7569
7573
|
}, [p, a, n]);
|
|
7570
7574
|
return W0(function() {
|
|
7571
|
-
var
|
|
7575
|
+
var R = O || window.ResizeObserver, B = new R(function(W) {
|
|
7572
7576
|
W.forEach(function(g) {
|
|
7573
7577
|
var h, w = (h = g == null ? void 0 : g.contentRect) != null ? h : {}, C = w.left, I = w.top, k = w.width, T = w.height;
|
|
7574
7578
|
A.current = window.requestAnimationFrame(function() {
|
|
@@ -7616,7 +7620,7 @@ function Q3(e) {
|
|
|
7616
7620
|
maxWidth: z,
|
|
7617
7621
|
aspectRatio: t
|
|
7618
7622
|
});
|
|
7619
|
-
return /* @__PURE__ */
|
|
7623
|
+
return /* @__PURE__ */ L(
|
|
7620
7624
|
"div",
|
|
7621
7625
|
{
|
|
7622
7626
|
ref: c,
|
|
@@ -7624,7 +7628,7 @@ function Q3(e) {
|
|
|
7624
7628
|
width: p.size ?? p.width ?? "100%",
|
|
7625
7629
|
height: p.size ?? p.height ?? "auto"
|
|
7626
7630
|
},
|
|
7627
|
-
children: /* @__PURE__ */
|
|
7631
|
+
children: /* @__PURE__ */ L(
|
|
7628
7632
|
e,
|
|
7629
7633
|
{
|
|
7630
7634
|
width: n,
|
|
@@ -9701,8 +9705,8 @@ const eq = {
|
|
|
9701
9705
|
T: new Zu()
|
|
9702
9706
|
}, Mq = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, bq = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, zq = /^'([^]*?)'?$/, tq = /''/g, pq = /\S/, cq = /[a-zA-Z]/;
|
|
9703
9707
|
function oq(e, M, b, z) {
|
|
9704
|
-
var y,
|
|
9705
|
-
const t = () => U0(b, NaN), p = Ou(), c = p.locale ?? eu, n = p.firstWeekContainsDate ?? ((
|
|
9708
|
+
var y, R, B, W;
|
|
9709
|
+
const t = () => U0(b, NaN), p = Ou(), c = p.locale ?? eu, n = p.firstWeekContainsDate ?? ((R = (y = p.locale) == null ? void 0 : y.options) == null ? void 0 : R.firstWeekContainsDate) ?? 1, o = p.weekStartsOn ?? ((W = (B = p.locale) == null ? void 0 : B.options) == null ? void 0 : W.weekStartsOn) ?? 0;
|
|
9706
9710
|
if (!M)
|
|
9707
9711
|
return e ? t() : Q0(b, z == null ? void 0 : z.in);
|
|
9708
9712
|
const a = {
|
|
@@ -12510,7 +12514,7 @@ const Nh = /* @__PURE__ */ zd(vh);
|
|
|
12510
12514
|
S[j] = N[E[j]];
|
|
12511
12515
|
return S;
|
|
12512
12516
|
}
|
|
12513
|
-
function
|
|
12517
|
+
function R(N) {
|
|
12514
12518
|
var E = N.split("|"), S = E[2].split(" "), j = E[3].split(""), D = E[4].split(" ");
|
|
12515
12519
|
return s(S), s(j), s(D), m(D, j.length), {
|
|
12516
12520
|
name: E[0],
|
|
@@ -12521,7 +12525,7 @@ const Nh = /* @__PURE__ */ zd(vh);
|
|
|
12521
12525
|
};
|
|
12522
12526
|
}
|
|
12523
12527
|
function B(N) {
|
|
12524
|
-
N && this._set(
|
|
12528
|
+
N && this._set(R(N));
|
|
12525
12529
|
}
|
|
12526
12530
|
function W(N, E) {
|
|
12527
12531
|
var S = E.length;
|
|
@@ -12703,7 +12707,7 @@ const Nh = /* @__PURE__ */ zd(vh);
|
|
|
12703
12707
|
var E = Array.prototype.slice.call(arguments, 0, -1), S = arguments[arguments.length - 1], j = M.utc.apply(null, E), D;
|
|
12704
12708
|
return !M.isMoment(N) && G(j) && (D = H(S)) && j.add(D.parse(j), "minutes"), j.tz(S), j;
|
|
12705
12709
|
}
|
|
12706
|
-
U.version = b, U.dataVersion = "", U._zones = z, U._links = t, U._names = c, U._countries = p, U.add = _, U.link = b0, U.load = o0, U.zone = H, U.zoneExists = d, U.guess = Z, U.names = P, U.Zone = B, U.unpack =
|
|
12710
|
+
U.version = b, U.dataVersion = "", U._zones = z, U._links = t, U._names = c, U._countries = p, U.add = _, U.link = b0, U.load = o0, U.zone = H, U.zoneExists = d, U.guess = Z, U.names = P, U.Zone = B, U.unpack = R, U.unpackBase60 = u, U.needsOffset = G, U.moveInvalidForward = !0, U.moveAmbiguousForward = !1, U.countries = f, U.zonesForCountry = z0;
|
|
12707
12711
|
var K = M.fn;
|
|
12708
12712
|
M.tz = U, M.defaultZone = null, M.updateOffset = function(N, E) {
|
|
12709
12713
|
var S = M.defaultZone, j;
|
|
@@ -13714,7 +13718,7 @@ function xh() {
|
|
|
13714
13718
|
W[k] != null && (I = new Date(W[k]).getUTCFullYear(), I < g && (w = k + 1), I > h && (C = Math.min(C, k + 1)));
|
|
13715
13719
|
return [w, C];
|
|
13716
13720
|
}
|
|
13717
|
-
function
|
|
13721
|
+
function R(W, g, h) {
|
|
13718
13722
|
var w = Array.prototype.slice, C = y(W.untils, g, h), I = w.apply(W.untils, C);
|
|
13719
13723
|
return I[I.length - 1] = null, {
|
|
13720
13724
|
name: W.name,
|
|
@@ -13728,7 +13732,7 @@ function xh() {
|
|
|
13728
13732
|
function B(W, g, h, w) {
|
|
13729
13733
|
var C, I = W.zones, k = [], T;
|
|
13730
13734
|
for (C = 0; C < I.length; C++)
|
|
13731
|
-
k[C] =
|
|
13735
|
+
k[C] = R(I[C], g, h);
|
|
13732
13736
|
for (T = m({
|
|
13733
13737
|
zones: k,
|
|
13734
13738
|
links: W.links.slice(),
|
|
@@ -13739,7 +13743,7 @@ function xh() {
|
|
|
13739
13743
|
return r(F);
|
|
13740
13744
|
}) : [], T;
|
|
13741
13745
|
}
|
|
13742
|
-
return M.tz.pack = O, M.tz.packBase60 = p, M.tz.createLinks = m, M.tz.filterYears =
|
|
13746
|
+
return M.tz.pack = O, M.tz.packBase60 = p, M.tz.createLinks = m, M.tz.filterYears = R, M.tz.filterLinkPack = B, M.tz.packCountry = r, M;
|
|
13743
13747
|
});
|
|
13744
13748
|
})(yh);
|
|
13745
13749
|
const sz = "WP";
|
|
@@ -13904,8 +13908,8 @@ function Dh(e) {
|
|
|
13904
13908
|
function m(...y) {
|
|
13905
13909
|
if (!m.enabled)
|
|
13906
13910
|
return;
|
|
13907
|
-
const
|
|
13908
|
-
|
|
13911
|
+
const R = m, B = Number(/* @__PURE__ */ new Date()), W = B - (r || B);
|
|
13912
|
+
R.diff = W, R.prev = r, R.curr = B, r = B, y[0] = b.coerce(y[0]), typeof y[0] != "string" && y.unshift("%O");
|
|
13909
13913
|
let g = 0;
|
|
13910
13914
|
y[0] = y[0].replace(/%([a-zA-Z%])/g, (w, C) => {
|
|
13911
13915
|
if (w === "%%")
|
|
@@ -13914,10 +13918,10 @@ function Dh(e) {
|
|
|
13914
13918
|
const I = b.formatters[C];
|
|
13915
13919
|
if (typeof I == "function") {
|
|
13916
13920
|
const k = y[g];
|
|
13917
|
-
w = I.call(
|
|
13921
|
+
w = I.call(R, k), y.splice(g, 1), g--;
|
|
13918
13922
|
}
|
|
13919
13923
|
return w;
|
|
13920
|
-
}), b.formatArgs.call(
|
|
13924
|
+
}), b.formatArgs.call(R, y), (R.log || b.log).apply(R, y);
|
|
13921
13925
|
}
|
|
13922
13926
|
return m.namespace = O, m.useColors = b.useColors(), m.color = b.selectColor(O), m.extend = z, m.destroy = b.destroy, Object.defineProperty(m, "enabled", {
|
|
13923
13927
|
enumerable: !0,
|
|
@@ -14686,23 +14690,23 @@ const jh = ({ number: e, browserSafeLocale: M, currency: b, stripZeros: z, isSma
|
|
|
14686
14690
|
stripZeros: z,
|
|
14687
14691
|
signForPositive: p
|
|
14688
14692
|
}).formatToParts(r);
|
|
14689
|
-
let s = "", m = "$", y = "before",
|
|
14693
|
+
let s = "", m = "$", y = "before", R = !1, B = !1, W = "", g = "";
|
|
14690
14694
|
u.forEach((w) => {
|
|
14691
14695
|
switch (w.type) {
|
|
14692
14696
|
case "currency":
|
|
14693
|
-
m = (a == null ? void 0 : a.symbol) ?? w.value,
|
|
14697
|
+
m = (a == null ? void 0 : a.symbol) ?? w.value, R && (y = "after");
|
|
14694
14698
|
return;
|
|
14695
14699
|
case "group":
|
|
14696
|
-
W += w.value,
|
|
14700
|
+
W += w.value, R = !0;
|
|
14697
14701
|
return;
|
|
14698
14702
|
case "decimal":
|
|
14699
|
-
g += w.value,
|
|
14703
|
+
g += w.value, R = !0, B = !0;
|
|
14700
14704
|
return;
|
|
14701
14705
|
case "integer":
|
|
14702
|
-
W += w.value,
|
|
14706
|
+
W += w.value, R = !0;
|
|
14703
14707
|
return;
|
|
14704
14708
|
case "fraction":
|
|
14705
|
-
g += w.value,
|
|
14709
|
+
g += w.value, R = !0, B = !0;
|
|
14706
14710
|
return;
|
|
14707
14711
|
case "minusSign":
|
|
14708
14712
|
s = "-";
|
|
@@ -15228,7 +15232,7 @@ d0.lex = function(e, M) {
|
|
|
15228
15232
|
throw new d0.Exception("Unexpected Space");
|
|
15229
15233
|
continue;
|
|
15230
15234
|
}
|
|
15231
|
-
var u = A.token, s = A.type, m = A.value, y = A.precedence,
|
|
15235
|
+
var u = A.token, s = A.type, m = A.value, y = A.precedence, R = A.show, B = b[b.length - 1], W;
|
|
15232
15236
|
for (W = z.length; W-- && z[W] === 0; )
|
|
15233
15237
|
if ([0, 2, 3, 4, 5, 9, 11, 12, 13].indexOf(s) !== -1) {
|
|
15234
15238
|
if (p[s] !== !0)
|
|
@@ -15237,11 +15241,11 @@ d0.lex = function(e, M) {
|
|
|
15237
15241
|
}
|
|
15238
15242
|
if (p[s] !== !0)
|
|
15239
15243
|
throw new d0.Exception(u + " is not allowed after " + o);
|
|
15240
|
-
if (n[s] === !0 && (s = 2, m = d0.math.mul,
|
|
15244
|
+
if (n[s] === !0 && (s = 2, m = d0.math.mul, R = "×", y = 3, a = a - 1), O = {
|
|
15241
15245
|
value: m,
|
|
15242
15246
|
type: s,
|
|
15243
15247
|
pre: y,
|
|
15244
|
-
show:
|
|
15248
|
+
show: R,
|
|
15245
15249
|
numberOfArguments: A.numberOfArguments
|
|
15246
15250
|
}, s === 0)
|
|
15247
15251
|
p = X1, n = R1, c1(z, 2), b.push(O), r[a + 1].type !== 4 && (b.push(_e), z.push(2));
|
|
@@ -15266,7 +15270,7 @@ d0.lex = function(e, M) {
|
|
|
15266
15270
|
pre: 0
|
|
15267
15271
|
}, b.push(B)), p = t8, c1(z, 1), n = R1, B.value += m, B.hasDec = !0;
|
|
15268
15272
|
} else s === 7 && (p = V2, n = Ee, c1(z, 1), b.push(O));
|
|
15269
|
-
s === 8 ? (p = X1, n = R1, c1(z, A.numberOfArguments + 2), b.push(O), r[a + 1].type !== 4 && (b.push(_e), z.push(A.numberOfArguments + 2))) : s === 9 ? (B.type === 9 ? B.value === d0.math.add ? (B.value = m, B.show =
|
|
15273
|
+
s === 8 ? (p = X1, n = R1, c1(z, A.numberOfArguments + 2), b.push(O), r[a + 1].type !== 4 && (b.push(_e), z.push(A.numberOfArguments + 2))) : s === 9 ? (B.type === 9 ? B.value === d0.math.add ? (B.value = m, B.show = R, c1(z, 1)) : B.value === d0.math.sub && R === "-" && (B.value = d0.math.add, B.show = "+", c1(z, 1)) : B.type !== 5 && B.type !== 7 && B.type !== 1 && B.type !== 3 && B.type !== 13 ? u === "-" && (p = X1, n = R1, c1(z, 2).push(2), b.push(o8), b.push(_e)) : (b.push(O), c1(z, 2)), p = X1, n = R1) : s === 10 ? (p = X1, n = R1, c1(z, 2), b.push(O)) : s === 11 ? (p = X1, n = R1, b.push(O)) : s === 12 ? (p = X1, n = R1, c1(z, 6), b.push(O), r[a + 1].type !== 4 && (b.push(_e), z.push(6))) : s === 13 && (p = V2, n = Ee, b.push(O)), c1(z, -1), o = u;
|
|
15270
15274
|
}
|
|
15271
15275
|
for (W = z.length; W--; )
|
|
15272
15276
|
b.push(LM);
|
|
@@ -15613,7 +15617,7 @@ function kc(e) {
|
|
|
15613
15617
|
);
|
|
15614
15618
|
}
|
|
15615
15619
|
function et(e) {
|
|
15616
|
-
var M = e.verticalAnchor, b = M === void 0 ? "end" : M, z = e.scaleToFit, t = z === void 0 ? !1 : z, p = e.angle, c = e.width, n = e.lineHeight, o = n === void 0 ? "1em" : n, a = e.capHeight, O = a === void 0 ? "0.71em" : a, r = e.children, A = e.style, u = xg(e, Cg), s = u.x, m = s === void 0 ? 0 : s, y = u.y,
|
|
15620
|
+
var M = e.verticalAnchor, b = M === void 0 ? "end" : M, z = e.scaleToFit, t = z === void 0 ? !1 : z, p = e.angle, c = e.width, n = e.lineHeight, o = n === void 0 ? "1em" : n, a = e.capHeight, O = a === void 0 ? "0.71em" : a, r = e.children, A = e.style, u = xg(e, Cg), s = u.x, m = s === void 0 ? 0 : s, y = u.y, R = y === void 0 ? 0 : y, B = !kc(m) || !kc(R), W = m0(function() {
|
|
15617
15621
|
var k = r == null ? [] : r.toString().split(/(?:(?!\u00A0+)\s+)/);
|
|
15618
15622
|
return {
|
|
15619
15623
|
wordsWithWidth: k.map(function(T) {
|
|
@@ -15647,12 +15651,12 @@ function et(e) {
|
|
|
15647
15651
|
var k = [];
|
|
15648
15652
|
if (B)
|
|
15649
15653
|
return "";
|
|
15650
|
-
if (fz(m) && fz(
|
|
15651
|
-
var T = w[0].width || 1, F = t === "shrink-only" ? Math.min(c / T, 1) : c / T, V = F, Z = m - F * m, x =
|
|
15654
|
+
if (fz(m) && fz(R) && fz(c) && t && w.length > 0) {
|
|
15655
|
+
var T = w[0].width || 1, F = t === "shrink-only" ? Math.min(c / T, 1) : c / T, V = F, Z = m - F * m, x = R - V * R;
|
|
15652
15656
|
k.push("matrix(" + F + ", 0, 0, " + V + ", " + Z + ", " + x + ")");
|
|
15653
15657
|
}
|
|
15654
|
-
return p && k.push("rotate(" + p + ", " + m + ", " +
|
|
15655
|
-
}, [B, m,
|
|
15658
|
+
return p && k.push("rotate(" + p + ", " + m + ", " + R + ")"), k.length > 0 ? k.join(" ") : "";
|
|
15659
|
+
}, [B, m, R, c, t, w, p]);
|
|
15656
15660
|
return {
|
|
15657
15661
|
wordsByLines: w,
|
|
15658
15662
|
startDy: C,
|
|
@@ -15685,7 +15689,7 @@ function Cc(e) {
|
|
|
15685
15689
|
e.verticalAnchor, e.angle;
|
|
15686
15690
|
var a = e.lineHeight, O = a === void 0 ? "1em" : a;
|
|
15687
15691
|
e.scaleToFit, e.capHeight, e.width;
|
|
15688
|
-
var r = _g(e, Eg), A = r.x, u = A === void 0 ? 0 : A, s = r.fontSize, m = et(e), y = m.wordsByLines,
|
|
15692
|
+
var r = _g(e, Eg), A = r.x, u = A === void 0 ? 0 : A, s = r.fontSize, m = et(e), y = m.wordsByLines, R = m.startDy, B = m.transform;
|
|
15689
15693
|
return /* @__PURE__ */ M0.createElement("svg", {
|
|
15690
15694
|
ref: n,
|
|
15691
15695
|
x: b,
|
|
@@ -15701,7 +15705,7 @@ function Cc(e) {
|
|
|
15701
15705
|
return /* @__PURE__ */ M0.createElement("tspan", {
|
|
15702
15706
|
key: g,
|
|
15703
15707
|
x: u,
|
|
15704
|
-
dy: g === 0 ?
|
|
15708
|
+
dy: g === 0 ? R : O
|
|
15705
15709
|
}, W.words.join(" "));
|
|
15706
15710
|
})) : null);
|
|
15707
15711
|
}
|
|
@@ -15815,23 +15819,23 @@ function bt({ debounce: e, scroll: M, polyfill: b, offsetSize: z } = { debounce:
|
|
|
15815
15819
|
const [p, c] = L0({ left: 0, top: 0, width: 0, height: 0, bottom: 0, right: 0, x: 0, y: 0 }), n = u0({ element: null, scrollContainers: null, resizeObserver: null, lastBounds: p, orientationHandler: null }), o = e ? typeof e == "number" ? e : e.scroll : null, a = e ? typeof e == "number" ? e : e.resize : null, O = u0(!1);
|
|
15816
15820
|
W0(() => (O.current = !0, () => void (O.current = !1)));
|
|
15817
15821
|
const [r, A, u] = m0(() => {
|
|
15818
|
-
const
|
|
15822
|
+
const R = () => {
|
|
15819
15823
|
if (!n.current.element) return;
|
|
15820
15824
|
const { left: B, top: W, width: g, height: h, bottom: w, right: C, x: I, y: k } = n.current.element.getBoundingClientRect(), T = { left: B, top: W, width: g, height: h, bottom: w, right: C, x: I, y: k };
|
|
15821
15825
|
n.current.element instanceof HTMLElement && z && (T.height = n.current.element.offsetHeight, T.width = n.current.element.offsetWidth), Object.freeze(T), O.current && !t7(n.current.lastBounds, T) && c(n.current.lastBounds = T);
|
|
15822
15826
|
};
|
|
15823
|
-
return [
|
|
15827
|
+
return [R, a ? Ec(R, a) : R, o ? Ec(R, o) : R];
|
|
15824
15828
|
}, [c, z, o, a]);
|
|
15825
15829
|
function s() {
|
|
15826
|
-
n.current.scrollContainers && (n.current.scrollContainers.forEach((
|
|
15830
|
+
n.current.scrollContainers && (n.current.scrollContainers.forEach((R) => R.removeEventListener("scroll", u, !0)), n.current.scrollContainers = null), n.current.resizeObserver && (n.current.resizeObserver.disconnect(), n.current.resizeObserver = null), n.current.orientationHandler && ("orientation" in screen && "removeEventListener" in screen.orientation ? screen.orientation.removeEventListener("change", n.current.orientationHandler) : "onorientationchange" in window && window.removeEventListener("orientationchange", n.current.orientationHandler));
|
|
15827
15831
|
}
|
|
15828
15832
|
function m() {
|
|
15829
|
-
n.current.element && (n.current.resizeObserver = new t(u), n.current.resizeObserver.observe(n.current.element), M && n.current.scrollContainers && n.current.scrollContainers.forEach((
|
|
15833
|
+
n.current.element && (n.current.resizeObserver = new t(u), n.current.resizeObserver.observe(n.current.element), M && n.current.scrollContainers && n.current.scrollContainers.forEach((R) => R.addEventListener("scroll", u, { capture: !0, passive: !0 })), n.current.orientationHandler = () => {
|
|
15830
15834
|
u();
|
|
15831
15835
|
}, "orientation" in screen && "addEventListener" in screen.orientation ? screen.orientation.addEventListener("change", n.current.orientationHandler) : "onorientationchange" in window && window.addEventListener("orientationchange", n.current.orientationHandler));
|
|
15832
15836
|
}
|
|
15833
|
-
const y = (
|
|
15834
|
-
!
|
|
15837
|
+
const y = (R) => {
|
|
15838
|
+
!R || R === n.current.element || (s(), n.current.element = R, n.current.scrollContainers = Wr(R), m());
|
|
15835
15839
|
};
|
|
15836
15840
|
return b7(u, !!M), M7(A), W0(() => {
|
|
15837
15841
|
s(), m();
|
|
@@ -16052,8 +16056,8 @@ function ip() {
|
|
|
16052
16056
|
function r() {
|
|
16053
16057
|
var A = M().length, u = t < z, s = u ? t : z, m = u ? z : t;
|
|
16054
16058
|
p = (m - s) / Math.max(1, A - o + a * 2), n && (p = Math.floor(p)), s += (m - s - p * (A - o)) * O, c = p * (1 - o), n && (s = Math.round(s), c = Math.round(c));
|
|
16055
|
-
var y = A7(A).map(function(
|
|
16056
|
-
return s + p *
|
|
16059
|
+
var y = A7(A).map(function(R) {
|
|
16060
|
+
return s + p * R;
|
|
16057
16061
|
});
|
|
16058
16062
|
return b(u ? y.reverse() : y);
|
|
16059
16063
|
}
|
|
@@ -16811,7 +16815,7 @@ function bR(e) {
|
|
|
16811
16815
|
var M = e.grouping === void 0 || e.thousands === void 0 ? eo : J7(Mo.call(e.grouping, Number), e.thousands + ""), b = e.currency === void 0 ? "" : e.currency[0] + "", z = e.currency === void 0 ? "" : e.currency[1] + "", t = e.decimal === void 0 ? "." : e.decimal + "", p = e.numerals === void 0 ? eo : Q7(Mo.call(e.numerals, String)), c = e.percent === void 0 ? "%" : e.percent + "", n = e.minus === void 0 ? "−" : e.minus + "", o = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
16812
16816
|
function a(r) {
|
|
16813
16817
|
r = tM(r);
|
|
16814
|
-
var A = r.fill, u = r.align, s = r.sign, m = r.symbol, y = r.zero,
|
|
16818
|
+
var A = r.fill, u = r.align, s = r.sign, m = r.symbol, y = r.zero, R = r.width, B = r.comma, W = r.precision, g = r.trim, h = r.type;
|
|
16815
16819
|
h === "n" ? (B = !0, h = "g") : Zc[h] || (W === void 0 && (W = 12), g = !0, h = "g"), (y || A === "0" && u === "=") && (y = !0, A = "0", u = "=");
|
|
16816
16820
|
var w = m === "$" ? b : m === "#" && /[boxX]/.test(h) ? "0" + h.toLowerCase() : "", C = m === "$" ? z : /[%p]/.test(h) ? c : "", I = Zc[h], k = /[defgprs%]/.test(h);
|
|
16817
16821
|
W = W === void 0 ? 6 : /[gprs]/.test(h) ? Math.max(1, Math.min(21, W)) : Math.max(0, Math.min(20, W));
|
|
@@ -16831,8 +16835,8 @@ function bR(e) {
|
|
|
16831
16835
|
}
|
|
16832
16836
|
}
|
|
16833
16837
|
B && !y && (F = M(F, 1 / 0));
|
|
16834
|
-
var f = V.length + F.length + Z.length, b0 = f <
|
|
16835
|
-
switch (B && y && (F = M(b0 + F, b0.length ?
|
|
16838
|
+
var f = V.length + F.length + Z.length, b0 = f < R ? new Array(R - f + 1).join(A) : "";
|
|
16839
|
+
switch (B && y && (F = M(b0 + F, b0.length ? R - Z.length : 1 / 0), b0 = ""), u) {
|
|
16836
16840
|
case "<":
|
|
16837
16841
|
F = V + F + Z + b0;
|
|
16838
16842
|
break;
|
|
@@ -16854,8 +16858,8 @@ function bR(e) {
|
|
|
16854
16858
|
}
|
|
16855
16859
|
function O(r, A) {
|
|
16856
16860
|
var u = a((r = tM(r), r.type = "f", r)), s = Math.max(-8, Math.min(8, Math.floor(ne(A) / 3))) * 3, m = Math.pow(10, -s), y = bo[8 + s / 3];
|
|
16857
|
-
return function(
|
|
16858
|
-
return u(m *
|
|
16861
|
+
return function(R) {
|
|
16862
|
+
return u(m * R) + y;
|
|
16859
16863
|
};
|
|
16860
16864
|
}
|
|
16861
16865
|
return {
|
|
@@ -16981,25 +16985,25 @@ function AR(e) {
|
|
|
16981
16985
|
r && ([a, O] = [O, a]);
|
|
16982
16986
|
let A = t(a), u = t(O), s, m;
|
|
16983
16987
|
const y = n == null ? 10 : +n;
|
|
16984
|
-
let
|
|
16988
|
+
let R = [];
|
|
16985
16989
|
if (!(z % 1) && u - A < y) {
|
|
16986
16990
|
if (A = Math.floor(A), u = Math.ceil(u), a > 0) {
|
|
16987
16991
|
for (; A <= u; ++A)
|
|
16988
16992
|
for (s = 1; s < z; ++s)
|
|
16989
16993
|
if (m = A < 0 ? s / p(-A) : s * p(A), !(m < a)) {
|
|
16990
16994
|
if (m > O) break;
|
|
16991
|
-
|
|
16995
|
+
R.push(m);
|
|
16992
16996
|
}
|
|
16993
16997
|
} else for (; A <= u; ++A)
|
|
16994
16998
|
for (s = z - 1; s >= 1; --s)
|
|
16995
16999
|
if (m = A > 0 ? s / p(-A) : s * p(A), !(m < a)) {
|
|
16996
17000
|
if (m > O) break;
|
|
16997
|
-
|
|
17001
|
+
R.push(m);
|
|
16998
17002
|
}
|
|
16999
|
-
|
|
17003
|
+
R.length * 2 < y && (R = ct(a, O, y));
|
|
17000
17004
|
} else
|
|
17001
|
-
|
|
17002
|
-
return r ?
|
|
17005
|
+
R = ct(A, u, Math.min(u - A, y)).map(p);
|
|
17006
|
+
return r ? R.reverse() : R;
|
|
17003
17007
|
}, M.tickFormat = (n, o) => {
|
|
17004
17008
|
if (n == null && (n = 10), o == null && (o = z === 10 ? "s" : ","), typeof o != "function" && (!(z % 1) && (o = tM(o)).precision == null && (o.trim = !0), o = fp(o)), n === 1 / 0) return o;
|
|
17005
17009
|
const a = Math.max(1, z * n / M.ticks().length);
|
|
@@ -17347,7 +17351,7 @@ function Se(e, M, b) {
|
|
|
17347
17351
|
return { y: e, m: M, d: b, H: 0, M: 0, S: 0, L: 0 };
|
|
17348
17352
|
}
|
|
17349
17353
|
function TR(e) {
|
|
17350
|
-
var M = e.dateTime, b = e.date, z = e.time, t = e.periods, p = e.days, c = e.shortDays, n = e.months, o = e.shortMonths, a = De(t), O = Pe(t), r = De(p), A = Pe(p), u = De(c), s = Pe(c), m = De(n), y = Pe(n),
|
|
17354
|
+
var M = e.dateTime, b = e.date, z = e.time, t = e.periods, p = e.days, c = e.shortDays, n = e.months, o = e.shortMonths, a = De(t), O = Pe(t), r = De(p), A = Pe(p), u = De(c), s = Pe(c), m = De(n), y = Pe(n), R = De(o), B = Pe(o), W = {
|
|
17351
17355
|
a: P,
|
|
17352
17356
|
A: f,
|
|
17353
17357
|
b: b0,
|
|
@@ -17492,7 +17496,7 @@ function TR(e) {
|
|
|
17492
17496
|
return X ? (l.w = A.get(X[0].toLowerCase()), n0 + X[0].length) : -1;
|
|
17493
17497
|
}
|
|
17494
17498
|
function V(l, J, n0) {
|
|
17495
|
-
var X =
|
|
17499
|
+
var X = R.exec(J.slice(n0));
|
|
17496
17500
|
return X ? (l.m = B.get(X[0].toLowerCase()), n0 + X[0].length) : -1;
|
|
17497
17501
|
}
|
|
17498
17502
|
function Z(l, J, n0) {
|
|
@@ -17822,9 +17826,9 @@ function kL(e) {
|
|
|
17822
17826
|
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
|
|
17823
17827
|
}
|
|
17824
17828
|
function mp(e, M, b, z, t, p, c, n, o, a) {
|
|
17825
|
-
var O = Hr(), r = O.invert, A = O.domain, u = a(".%L"), s = a(":%S"), m = a("%I:%M"), y = a("%I %p"),
|
|
17829
|
+
var O = Hr(), r = O.invert, A = O.domain, u = a(".%L"), s = a(":%S"), m = a("%I:%M"), y = a("%I %p"), R = a("%a %d"), B = a("%b %d"), W = a("%B"), g = a("%Y");
|
|
17826
17830
|
function h(w) {
|
|
17827
|
-
return (o(w) < w ? u : n(w) < w ? s : c(w) < w ? m : p(w) < w ? y : z(w) < w ? t(w) < w ?
|
|
17831
|
+
return (o(w) < w ? u : n(w) < w ? s : c(w) < w ? m : p(w) < w ? y : z(w) < w ? t(w) < w ? R : B : b(w) < w ? W : g)(w);
|
|
17828
17832
|
}
|
|
17829
17833
|
return O.invert = function(w) {
|
|
17830
17834
|
return new Date(r(w));
|
|
@@ -18225,13 +18229,13 @@ var k9 = (e) => {
|
|
|
18225
18229
|
u = (n + o) / 2 - W / 2 + u / Q1 * W, u = (u % Q1 + Q1) % Q1;
|
|
18226
18230
|
}
|
|
18227
18231
|
const s = vo + (e + A) % No * wo, m = yo + (e + A) % Bo * To, y = [u, s, m];
|
|
18228
|
-
let
|
|
18232
|
+
let R = !0;
|
|
18229
18233
|
for (const B of t)
|
|
18230
18234
|
if (x9(y, B) < E9) {
|
|
18231
|
-
|
|
18235
|
+
R = !1;
|
|
18232
18236
|
break;
|
|
18233
18237
|
}
|
|
18234
|
-
if (
|
|
18238
|
+
if (R)
|
|
18235
18239
|
return `hsl(${Math.round(u)}, ${s}%, ${m}%)`;
|
|
18236
18240
|
}
|
|
18237
18241
|
const a = (e - b.length) * Lo * Q1 % Q1, O = vo + e % No * wo, r = yo + e % Bo * To;
|
|
@@ -18301,19 +18305,19 @@ var k9 = (e) => {
|
|
|
18301
18305
|
}, We = pb(null), gp = ({ children: e, theme: M }) => {
|
|
18302
18306
|
const [b, z] = L0(() => /* @__PURE__ */ new Map()), t = m0(() => M ? X9(bb, M) : bb, [M]), p = m0(() => {
|
|
18303
18307
|
const { colors: s } = t, m = [], y = [];
|
|
18304
|
-
let
|
|
18308
|
+
let R = 360, B = 0;
|
|
18305
18309
|
if (Array.isArray(s)) {
|
|
18306
18310
|
for (const W of s)
|
|
18307
18311
|
if (W && typeof W == "string" && W.startsWith("#")) {
|
|
18308
18312
|
const g = C9(W);
|
|
18309
|
-
m.push(g[0]), y.push(g),
|
|
18313
|
+
m.push(g[0]), y.push(g), R = Math.min(R, g[0]), B = Math.max(B, g[0]);
|
|
18310
18314
|
}
|
|
18311
18315
|
}
|
|
18312
18316
|
return {
|
|
18313
18317
|
colors: s || [],
|
|
18314
18318
|
hues: m,
|
|
18315
18319
|
existingHslColors: y,
|
|
18316
|
-
minHue:
|
|
18320
|
+
minHue: R,
|
|
18317
18321
|
maxHue: B
|
|
18318
18322
|
};
|
|
18319
18323
|
}, [t]), [c, n] = L0(
|
|
@@ -18341,9 +18345,9 @@ var k9 = (e) => {
|
|
|
18341
18345
|
if (y)
|
|
18342
18346
|
return y;
|
|
18343
18347
|
if (s) {
|
|
18344
|
-
const
|
|
18345
|
-
if (
|
|
18346
|
-
return
|
|
18348
|
+
const R = c.get(s);
|
|
18349
|
+
if (R)
|
|
18350
|
+
return R;
|
|
18347
18351
|
const B = c.size, W = p.colors.length > 0 ? Xo(B, p) : "#000000";
|
|
18348
18352
|
return c.set(s, W), W;
|
|
18349
18353
|
}
|
|
@@ -18351,7 +18355,7 @@ var k9 = (e) => {
|
|
|
18351
18355
|
},
|
|
18352
18356
|
[p, c]
|
|
18353
18357
|
), A = p0(
|
|
18354
|
-
({ data: s, index: m, overrideColor: y, legendShape:
|
|
18358
|
+
({ data: s, index: m, overrideColor: y, legendShape: R }) => {
|
|
18355
18359
|
var g, h;
|
|
18356
18360
|
const B = s && typeof s == "object" && "data" in s && "options" in s, W = s && typeof s == "object" && "percentage" in s;
|
|
18357
18361
|
return {
|
|
@@ -18362,7 +18366,7 @@ var k9 = (e) => {
|
|
|
18362
18366
|
}),
|
|
18363
18367
|
lineStyles: B ? oO(s, m, t) : {},
|
|
18364
18368
|
glyph: (h = t.glyphs) == null ? void 0 : h[m],
|
|
18365
|
-
shapeStyles: B ? T9(s, m, t,
|
|
18369
|
+
shapeStyles: B ? T9(s, m, t, R) : {}
|
|
18366
18370
|
};
|
|
18367
18371
|
},
|
|
18368
18372
|
[t, r]
|
|
@@ -18377,7 +18381,7 @@ var k9 = (e) => {
|
|
|
18377
18381
|
}),
|
|
18378
18382
|
[b, o, a, O, t, A]
|
|
18379
18383
|
);
|
|
18380
|
-
return /* @__PURE__ */
|
|
18384
|
+
return /* @__PURE__ */ L(We.Provider, { value: u, children: e });
|
|
18381
18385
|
}, Ib = () => {
|
|
18382
18386
|
const e = J0(We);
|
|
18383
18387
|
if (!e)
|
|
@@ -18433,13 +18437,13 @@ var k9 = (e) => {
|
|
|
18433
18437
|
return v9(a, (r = (O = M.axis) == null ? void 0 : O.y) == null ? void 0 : r.numTicks);
|
|
18434
18438
|
}, [M, b, e, t]);
|
|
18435
18439
|
return m0(() => {
|
|
18436
|
-
var A, u, s, m, y,
|
|
18440
|
+
var A, u, s, m, y, R;
|
|
18437
18441
|
const c = { top: 10, right: 20, bottom: 20, left: 20 }, n = 40, o = (u = (A = M.axis) == null ? void 0 : A.y) == null ? void 0 : u.orientation, a = o === "right" ? z.axisStyles.y.right : z.axisStyles.y.left, r = (B9(
|
|
18438
18442
|
p,
|
|
18439
18443
|
(m = (s = M.axis) == null ? void 0 : s.y) == null ? void 0 : m.tickFormat,
|
|
18440
18444
|
a.axisLabel
|
|
18441
18445
|
) ?? n) + ((a == null ? void 0 : a.tickLength) ?? 0);
|
|
18442
|
-
return o === "right" ? c.right = r : c.left = r, ((
|
|
18446
|
+
return o === "right" ? c.right = r : c.left = r, ((R = (y = M.axis) == null ? void 0 : y.x) == null ? void 0 : R.orientation) === "top" && (c.top = 20, c.bottom = 10), c;
|
|
18443
18447
|
}, [M, z, p]);
|
|
18444
18448
|
};
|
|
18445
18449
|
function AO({
|
|
@@ -18796,7 +18800,7 @@ var ev = {
|
|
|
18796
18800
|
display: "flex"
|
|
18797
18801
|
};
|
|
18798
18802
|
function qO(e) {
|
|
18799
|
-
var M = e.className, b = e.style, z = b === void 0 ? ev : b, t = e.scale, p = e.shape, c = e.domain, n = e.fill, o = n === void 0 ? ko : n, a = e.size, O = a === void 0 ? ko : a, r = e.labelFormat, A = r === void 0 ? uO : r, u = e.labelTransform, s = u === void 0 ? J9 : u, m = e.shapeWidth, y = m === void 0 ? 15 : m,
|
|
18803
|
+
var M = e.className, b = e.style, z = b === void 0 ? ev : b, t = e.scale, p = e.shape, c = e.domain, n = e.fill, o = n === void 0 ? ko : n, a = e.size, O = a === void 0 ? ko : a, r = e.labelFormat, A = r === void 0 ? uO : r, u = e.labelTransform, s = u === void 0 ? J9 : u, m = e.shapeWidth, y = m === void 0 ? 15 : m, R = e.shapeHeight, B = R === void 0 ? 15 : R, W = e.shapeMargin, g = W === void 0 ? "2px 4px 2px 0" : W, h = e.shapeStyle, w = e.labelAlign, C = w === void 0 ? "left" : w, I = e.labelFlex, k = I === void 0 ? "1" : I, T = e.labelMargin, F = T === void 0 ? "0 4px" : T, V = e.itemMargin, Z = V === void 0 ? "0" : V, x = e.direction, _ = x === void 0 ? "column" : x, H = e.itemDirection, P = H === void 0 ? "row" : H, f = e.legendLabelProps, b0 = e.children, i = Z9(e, Q9), q = c || ("domain" in t ? t.domain() : []), z0 = s({
|
|
18800
18804
|
scale: t,
|
|
18801
18805
|
labelFormat: A
|
|
18802
18806
|
}), o0 = q.map(z0);
|
|
@@ -18892,7 +18896,7 @@ var M2 = {
|
|
|
18892
18896
|
maxWidth: b
|
|
18893
18897
|
}) => {
|
|
18894
18898
|
const z = b != null && M === "ellipsis", [t, p] = I9(!!z);
|
|
18895
|
-
return /* @__PURE__ */
|
|
18899
|
+
return /* @__PURE__ */ L(
|
|
18896
18900
|
"span",
|
|
18897
18901
|
{
|
|
18898
18902
|
ref: t,
|
|
@@ -18930,7 +18934,7 @@ var M2 = {
|
|
|
18930
18934
|
labelAlign: m = "left",
|
|
18931
18935
|
labelFlex: y = "0 0 auto",
|
|
18932
18936
|
// Use natural width instead of expanding to fill space
|
|
18933
|
-
labelMargin:
|
|
18937
|
+
labelMargin: R = "0 4px",
|
|
18934
18938
|
itemMargin: B = "0",
|
|
18935
18939
|
itemDirection: W = "row",
|
|
18936
18940
|
legendLabelProps: g,
|
|
@@ -18948,13 +18952,13 @@ var M2 = {
|
|
|
18948
18952
|
},
|
|
18949
18953
|
[e]
|
|
18950
18954
|
);
|
|
18951
|
-
return w ? w(e) : /* @__PURE__ */
|
|
18955
|
+
return w ? w(e) : /* @__PURE__ */ L(
|
|
18952
18956
|
Mv,
|
|
18953
18957
|
{
|
|
18954
18958
|
scale: T,
|
|
18955
18959
|
labelFormat: O,
|
|
18956
18960
|
labelTransform: r,
|
|
18957
|
-
children: (Z) => /* @__PURE__ */
|
|
18961
|
+
children: (Z) => /* @__PURE__ */ L(
|
|
18958
18962
|
"div",
|
|
18959
18963
|
{
|
|
18960
18964
|
ref: I,
|
|
@@ -18986,13 +18990,13 @@ var M2 = {
|
|
|
18986
18990
|
flexDirection: b === "vertical" && t === "end" ? "row-reverse" : W,
|
|
18987
18991
|
...C,
|
|
18988
18992
|
children: [
|
|
18989
|
-
(H = e[_]) != null && H.renderGlyph ? /* @__PURE__ */
|
|
18993
|
+
(H = e[_]) != null && H.renderGlyph ? /* @__PURE__ */ L(
|
|
18990
18994
|
"svg",
|
|
18991
18995
|
{
|
|
18992
18996
|
width: ((P = e[_]) == null ? void 0 : P.glyphSize) * 2,
|
|
18993
18997
|
height: ((f = e[_]) == null ? void 0 : f.glyphSize) * 2,
|
|
18994
18998
|
"data-testid": "legend-glyph",
|
|
18995
|
-
children: /* @__PURE__ */
|
|
18999
|
+
children: /* @__PURE__ */ L(he, { children: (z0 = e[_]) == null ? void 0 : z0.renderGlyph({
|
|
18996
19000
|
key: `legend-glyph-${x.text}`,
|
|
18997
19001
|
datum: {},
|
|
18998
19002
|
index: _,
|
|
@@ -19002,7 +19006,7 @@ var M2 = {
|
|
|
19002
19006
|
y: (q = e[_]) == null ? void 0 : q.glyphSize
|
|
19003
19007
|
}) })
|
|
19004
19008
|
}
|
|
19005
|
-
) : /* @__PURE__ */
|
|
19009
|
+
) : /* @__PURE__ */ L(
|
|
19006
19010
|
Np,
|
|
19007
19011
|
{
|
|
19008
19012
|
shape: n,
|
|
@@ -19024,12 +19028,12 @@ var M2 = {
|
|
|
19024
19028
|
style: {
|
|
19025
19029
|
justifyContent: m,
|
|
19026
19030
|
flex: y,
|
|
19027
|
-
margin:
|
|
19031
|
+
margin: R,
|
|
19028
19032
|
...k.legendLabelStyles
|
|
19029
19033
|
},
|
|
19030
19034
|
...g,
|
|
19031
19035
|
children: [
|
|
19032
|
-
/* @__PURE__ */
|
|
19036
|
+
/* @__PURE__ */ L(
|
|
19033
19037
|
cv,
|
|
19034
19038
|
{
|
|
19035
19039
|
text: x.text,
|
|
@@ -19060,7 +19064,7 @@ var M2 = {
|
|
|
19060
19064
|
var a;
|
|
19061
19065
|
return c && t ? (a = t.getChartData(c)) == null ? void 0 : a.legendItems : void 0;
|
|
19062
19066
|
}, [c, t]), o = M || n;
|
|
19063
|
-
return o ? /* @__PURE__ */
|
|
19067
|
+
return o ? /* @__PURE__ */ L(ov, { ref: z, items: o, ...b }) : null;
|
|
19064
19068
|
}
|
|
19065
19069
|
);
|
|
19066
19070
|
function nv(e, M, b = "percentage") {
|
|
@@ -19404,14 +19408,14 @@ function sv(e, M) {
|
|
|
19404
19408
|
return b;
|
|
19405
19409
|
}
|
|
19406
19410
|
function LO(e) {
|
|
19407
|
-
var M = e.children, b = e.id, z = e.from, t = e.to, p = e.x1, c = e.y1, n = e.x2, o = e.y2, a = e.fromOffset, O = a === void 0 ? "0%" : a, r = e.fromOpacity, A = r === void 0 ? 1 : r, u = e.toOffset, s = u === void 0 ? "100%" : u, m = e.toOpacity, y = m === void 0 ? 1 : m,
|
|
19411
|
+
var M = e.children, b = e.id, z = e.from, t = e.to, p = e.x1, c = e.y1, n = e.x2, o = e.y2, a = e.fromOffset, O = a === void 0 ? "0%" : a, r = e.fromOpacity, A = r === void 0 ? 1 : r, u = e.toOffset, s = u === void 0 ? "100%" : u, m = e.toOpacity, y = m === void 0 ? 1 : m, R = e.rotate, B = e.transform, W = e.vertical, g = W === void 0 ? !0 : W, h = sv(e, Av), w = p, C = n, I = c, k = o;
|
|
19408
19412
|
return g && !w && !C && !I && !k && (w = "0", C = "0", I = "0", k = "1"), /* @__PURE__ */ M0.createElement("defs", null, /* @__PURE__ */ M0.createElement("linearGradient", Wt({
|
|
19409
19413
|
id: b,
|
|
19410
19414
|
x1: w,
|
|
19411
19415
|
y1: I,
|
|
19412
19416
|
x2: C,
|
|
19413
19417
|
y2: k,
|
|
19414
|
-
gradientTransform:
|
|
19418
|
+
gradientTransform: R ? "rotate(" + R + ")" : B
|
|
19415
19419
|
}, h), !!M && M, !M && /* @__PURE__ */ M0.createElement("stop", {
|
|
19416
19420
|
offset: O,
|
|
19417
19421
|
stopColor: z,
|
|
@@ -19520,10 +19524,10 @@ var vO = {};
|
|
|
19520
19524
|
var f = g(this).constructor;
|
|
19521
19525
|
H = Reflect.construct(P, arguments, f);
|
|
19522
19526
|
} else H = P.apply(this, arguments);
|
|
19523
|
-
return
|
|
19527
|
+
return R(this, H);
|
|
19524
19528
|
};
|
|
19525
19529
|
}
|
|
19526
|
-
function
|
|
19530
|
+
function R(x, _) {
|
|
19527
19531
|
if (_ && (n(_) === "object" || typeof _ == "function")) return _;
|
|
19528
19532
|
if (_ !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
19529
19533
|
return B(x);
|
|
@@ -20219,16 +20223,16 @@ function ht() {
|
|
|
20219
20223
|
}, ht.apply(this, arguments);
|
|
20220
20224
|
}
|
|
20221
20225
|
function NO(e) {
|
|
20222
|
-
var M, b, z, t, p = e.className, c = e.x, n = e.y, o = e.dx, a = e.dy, O = e.type, r = O === void 0 ? "elbow" : O, A = e.stroke, u = A === void 0 ? "#222" : A, s = e.pathProps, m = J0(ge), y = c ?? ((M = m.x) != null ? M : 0),
|
|
20226
|
+
var M, b, z, t, p = e.className, c = e.x, n = e.y, o = e.dx, a = e.dy, O = e.type, r = O === void 0 ? "elbow" : O, A = e.stroke, u = A === void 0 ? "#222" : A, s = e.pathProps, m = J0(ge), y = c ?? ((M = m.x) != null ? M : 0), R = n ?? ((b = m.y) != null ? b : 0), B = o ?? ((z = m.dx) != null ? z : 0), W = a ?? ((t = m.dy) != null ? t : 0), g = y, h = R, w = y + B, C = R + W;
|
|
20223
20227
|
if (r === "elbow")
|
|
20224
20228
|
if (Math.abs(B) <= Math.abs(W)) {
|
|
20225
20229
|
g = w;
|
|
20226
20230
|
var I = W > 0 ? 1 : -1;
|
|
20227
|
-
h =
|
|
20231
|
+
h = R + I * Math.abs(g - y);
|
|
20228
20232
|
} else {
|
|
20229
20233
|
h = C;
|
|
20230
20234
|
var k = B > 0 ? 1 : -1;
|
|
20231
|
-
g = y + k * Math.abs(h -
|
|
20235
|
+
g = y + k * Math.abs(h - R);
|
|
20232
20236
|
}
|
|
20233
20237
|
return /* @__PURE__ */ M0.createElement("path", ht({
|
|
20234
20238
|
className: O1("visx-annotation-connector", p),
|
|
@@ -20236,7 +20240,7 @@ function NO(e) {
|
|
|
20236
20240
|
stroke: u,
|
|
20237
20241
|
fill: "transparent",
|
|
20238
20242
|
pointerEvents: "none",
|
|
20239
|
-
d: "M" + y + "," +
|
|
20243
|
+
d: "M" + y + "," + R + (r === "elbow" ? "L" + g + "," + h : "") + "L" + w + "," + C
|
|
20240
20244
|
}, s));
|
|
20241
20245
|
}
|
|
20242
20246
|
NO.propTypes = {
|
|
@@ -20312,7 +20316,7 @@ function dv(e) {
|
|
|
20312
20316
|
} : f2({}, Ho, e);
|
|
20313
20317
|
}
|
|
20314
20318
|
function wO(e) {
|
|
20315
|
-
var M, b, z, t = e.anchorLineStroke, p = t === void 0 ? "#222" : t, c = e.backgroundFill, n = c === void 0 ? "#eaeaea" : c, o = e.backgroundPadding, a = e.backgroundProps, O = e.className, r = e.fontColor, A = r === void 0 ? "#222" : r, u = e.horizontalAnchor, s = e.resizeObserverPolyfill, m = e.showAnchorLine, y = m === void 0 ? !0 : m,
|
|
20319
|
+
var M, b, z, t = e.anchorLineStroke, p = t === void 0 ? "#222" : t, c = e.backgroundFill, n = c === void 0 ? "#eaeaea" : c, o = e.backgroundPadding, a = e.backgroundProps, O = e.className, r = e.fontColor, A = r === void 0 ? "#222" : r, u = e.horizontalAnchor, s = e.resizeObserverPolyfill, m = e.showAnchorLine, y = m === void 0 ? !0 : m, R = e.showBackground, B = R === void 0 ? !0 : R, W = e.subtitle, g = e.subtitleDy, h = g === void 0 ? 4 : g, w = e.subtitleFontSize, C = w === void 0 ? 12 : w, I = e.subtitleFontWeight, k = I === void 0 ? 200 : I, T = e.subtitleProps, F = e.title, V = e.titleFontSize, Z = V === void 0 ? 16 : V, x = e.titleFontWeight, _ = x === void 0 ? 600 : x, H = e.titleProps, P = e.verticalAnchor, f = e.width, b0 = e.maxWidth, i = b0 === void 0 ? 125 : b0, q = e.x, z0 = e.y, o0 = bt({
|
|
20316
20320
|
polyfill: s
|
|
20317
20321
|
}), d = o0[0], G = o0[1], Q = bt({
|
|
20318
20322
|
polyfill: s
|
|
@@ -20439,13 +20443,13 @@ var Io = {
|
|
|
20439
20443
|
function yO(e) {
|
|
20440
20444
|
var M = e.anchorLineStroke, b = M === void 0 ? "#222" : M, z = e.children, t = e.className, p = e.containerStyle, c = e.horizontalAnchor, n = e.resizeObserverPolyfill, o = e.showAnchorLine, a = o === void 0 ? !0 : o, O = e.verticalAnchor, r = e.x, A = e.y, u = bt({
|
|
20441
20445
|
polyfill: n
|
|
20442
|
-
}), s = u[0], m = u[1], y = m.width,
|
|
20446
|
+
}), s = u[0], m = u[1], y = m.width, R = m.height, B = J0(ge), W = B.x, g = W === void 0 ? 0 : W, h = B.y, w = h === void 0 ? 0 : h, C = B.dx, I = C === void 0 ? 0 : C, k = B.dy, T = k === void 0 ? 0 : k, F = c || (Math.abs(I) < Math.abs(T) ? "middle" : I > 0 ? "start" : "end"), V = O || (Math.abs(I) > Math.abs(T) ? "middle" : T > 0 ? "start" : "end"), Z = m0(function() {
|
|
20443
20447
|
var x = r ?? g + I, _ = A ?? w + T;
|
|
20444
|
-
return F === "middle" && (x -= y / 2), F === "end" && (x -= y), V === "middle" && (_ -=
|
|
20448
|
+
return F === "middle" && (x -= y / 2), F === "end" && (x -= y), V === "middle" && (_ -= R / 2), V === "end" && (_ -= R), {
|
|
20445
20449
|
x,
|
|
20446
20450
|
y: _
|
|
20447
20451
|
};
|
|
20448
|
-
}, [r, g, I, A, w, T, F, V, y,
|
|
20452
|
+
}, [r, g, I, A, w, T, F, V, y, R]);
|
|
20449
20453
|
return /* @__PURE__ */ M0.createElement(he, {
|
|
20450
20454
|
top: Z.y,
|
|
20451
20455
|
left: Z.x,
|
|
@@ -20453,7 +20457,7 @@ function yO(e) {
|
|
|
20453
20457
|
className: O1("visx-annotationlabel", t)
|
|
20454
20458
|
}, /* @__PURE__ */ M0.createElement("foreignObject", {
|
|
20455
20459
|
width: y,
|
|
20456
|
-
height:
|
|
20460
|
+
height: R,
|
|
20457
20461
|
overflow: "visible"
|
|
20458
20462
|
}, /* @__PURE__ */ M0.createElement("div", {
|
|
20459
20463
|
ref: s,
|
|
@@ -20464,7 +20468,7 @@ function yO(e) {
|
|
|
20464
20468
|
verticalAnchor: V,
|
|
20465
20469
|
horizontalAnchor: F,
|
|
20466
20470
|
width: y,
|
|
20467
|
-
height:
|
|
20471
|
+
height: R
|
|
20468
20472
|
}));
|
|
20469
20473
|
}
|
|
20470
20474
|
yO.propTypes = {
|
|
@@ -20564,7 +20568,7 @@ TO.propTypes = {
|
|
|
20564
20568
|
};
|
|
20565
20569
|
var hv = (e) => {
|
|
20566
20570
|
const { theme: M } = J0(cM) || {}, b = e.position || "start";
|
|
20567
|
-
return /* @__PURE__ */
|
|
20571
|
+
return /* @__PURE__ */ L(
|
|
20568
20572
|
"circle",
|
|
20569
20573
|
{
|
|
20570
20574
|
cx: e.x,
|
|
@@ -20618,7 +20622,7 @@ var hv = (e) => {
|
|
|
20618
20622
|
} catch {
|
|
20619
20623
|
}
|
|
20620
20624
|
}, [a]), /* @__PURE__ */ a0("div", { className: Y0["line-chart__annotation-label"], children: [
|
|
20621
|
-
/* @__PURE__ */
|
|
20625
|
+
/* @__PURE__ */ L(
|
|
20622
20626
|
"button",
|
|
20623
20627
|
{
|
|
20624
20628
|
ref: p,
|
|
@@ -20633,7 +20637,7 @@ var hv = (e) => {
|
|
|
20633
20637
|
children: b({ title: e, subtitle: M })
|
|
20634
20638
|
}
|
|
20635
20639
|
),
|
|
20636
|
-
/* @__PURE__ */
|
|
20640
|
+
/* @__PURE__ */ L(
|
|
20637
20641
|
"div",
|
|
20638
20642
|
{
|
|
20639
20643
|
ref: c,
|
|
@@ -20646,15 +20650,15 @@ var hv = (e) => {
|
|
|
20646
20650
|
),
|
|
20647
20651
|
"data-testid": "line-chart-annotation-label-popover",
|
|
20648
20652
|
children: /* @__PURE__ */ a0("div", { className: Y0["line-chart__annotation-label-popover-header"], children: [
|
|
20649
|
-
/* @__PURE__ */
|
|
20650
|
-
/* @__PURE__ */
|
|
20653
|
+
/* @__PURE__ */ L("div", { className: Y0["line-chart__annotation-label-popover-content"], children: z({ title: e, subtitle: M }) }),
|
|
20654
|
+
/* @__PURE__ */ L(
|
|
20651
20655
|
"button",
|
|
20652
20656
|
{
|
|
20653
20657
|
popovertarget: t,
|
|
20654
20658
|
popovertargetaction: "hide",
|
|
20655
20659
|
className: Y0["line-chart__annotation-label-popover-close-button"],
|
|
20656
20660
|
"aria-label": g0("Close", "jetpack-charts"),
|
|
20657
|
-
children: /* @__PURE__ */
|
|
20661
|
+
children: /* @__PURE__ */ L(lv, { icon: "cross", size: 16 })
|
|
20658
20662
|
}
|
|
20659
20663
|
)
|
|
20660
20664
|
] })
|
|
@@ -20688,13 +20692,13 @@ var hv = (e) => {
|
|
|
20688
20692
|
const s = 20, m = 50;
|
|
20689
20693
|
n(!1);
|
|
20690
20694
|
const y = () => {
|
|
20691
|
-
const
|
|
20692
|
-
if (
|
|
20693
|
-
if (A &&
|
|
20695
|
+
const R = a();
|
|
20696
|
+
if (R) {
|
|
20697
|
+
if (A && R.signature === A) {
|
|
20694
20698
|
n(!0);
|
|
20695
20699
|
return;
|
|
20696
20700
|
}
|
|
20697
|
-
p(
|
|
20701
|
+
p(R.scales), A = R.signature;
|
|
20698
20702
|
}
|
|
20699
20703
|
u < s && (u++, r = setTimeout(y, m));
|
|
20700
20704
|
};
|
|
@@ -20710,7 +20714,7 @@ var hv = (e) => {
|
|
|
20710
20714
|
width: b,
|
|
20711
20715
|
height: z
|
|
20712
20716
|
};
|
|
20713
|
-
return /* @__PURE__ */
|
|
20717
|
+
return /* @__PURE__ */ L(cM.Provider, { value: O, children: /* @__PURE__ */ L(
|
|
20714
20718
|
"svg",
|
|
20715
20719
|
{
|
|
20716
20720
|
width: b,
|
|
@@ -20790,7 +20794,7 @@ var hv = (e) => {
|
|
|
20790
20794
|
return { x: _, y: H, yMin: P, yMax: f, xMin: b0, xMax: i, ...q };
|
|
20791
20795
|
}, [e, a, O, z, (x = s == null ? void 0 : s.label) == null ? void 0 : x.maxWidth, A, c]);
|
|
20792
20796
|
if (!m) return null;
|
|
20793
|
-
const { x: y, y:
|
|
20797
|
+
const { x: y, y: R, yMin: B, yMax: W, xMin: g, xMax: h, dx: w, dy: C, isFlippedHorizontally: I, isFlippedVertically: k } = m, T = () => {
|
|
20794
20798
|
var H;
|
|
20795
20799
|
const _ = (H = s == null ? void 0 : s.label) == null ? void 0 : H.y;
|
|
20796
20800
|
return _ === "start" ? W : _ === "end" ? B : _;
|
|
@@ -20804,15 +20808,15 @@ var hv = (e) => {
|
|
|
20804
20808
|
}, Z = () => {
|
|
20805
20809
|
const _ = Ue, H = Ue;
|
|
20806
20810
|
return nO() ? {
|
|
20807
|
-
transform: `translate(${y + (w || 0) + (typeof V.x == "number" ? V.x - y : 0) - _}px, ${
|
|
20811
|
+
transform: `translate(${y + (w || 0) + (typeof V.x == "number" ? V.x - y : 0) - _}px, ${R + (C || 0) + (typeof V.y == "number" ? V.y - R : 0) - H}px)`,
|
|
20808
20812
|
width: _,
|
|
20809
20813
|
height: H
|
|
20810
20814
|
} : void 0;
|
|
20811
20815
|
};
|
|
20812
|
-
return /* @__PURE__ */
|
|
20813
|
-
/* @__PURE__ */
|
|
20814
|
-
z === "circle" && /* @__PURE__ */
|
|
20815
|
-
z === "line-vertical" && /* @__PURE__ */
|
|
20816
|
+
return /* @__PURE__ */ L("g", { "data-testid": p, children: /* @__PURE__ */ a0(TO, { x: y, y: R, dx: w, dy: C, children: [
|
|
20817
|
+
/* @__PURE__ */ L(NO, { ...s == null ? void 0 : s.connector }),
|
|
20818
|
+
z === "circle" && /* @__PURE__ */ L(BO, { ...s == null ? void 0 : s.circleSubject }),
|
|
20819
|
+
z === "line-vertical" && /* @__PURE__ */ L(
|
|
20816
20820
|
Lt,
|
|
20817
20821
|
{
|
|
20818
20822
|
min: W,
|
|
@@ -20821,7 +20825,7 @@ var hv = (e) => {
|
|
|
20821
20825
|
orientation: "vertical"
|
|
20822
20826
|
}
|
|
20823
20827
|
),
|
|
20824
|
-
z === "line-horizontal" && /* @__PURE__ */
|
|
20828
|
+
z === "line-horizontal" && /* @__PURE__ */ L(
|
|
20825
20829
|
Lt,
|
|
20826
20830
|
{
|
|
20827
20831
|
min: g,
|
|
@@ -20830,7 +20834,7 @@ var hv = (e) => {
|
|
|
20830
20834
|
orientation: "horizontal"
|
|
20831
20835
|
}
|
|
20832
20836
|
),
|
|
20833
|
-
c ? /* @__PURE__ */
|
|
20837
|
+
c ? /* @__PURE__ */ L(yO, { ...s == null ? void 0 : s.label, ...V, children: /* @__PURE__ */ L("div", { style: Z(), children: n ? /* @__PURE__ */ L(
|
|
20834
20838
|
gv,
|
|
20835
20839
|
{
|
|
20836
20840
|
title: M,
|
|
@@ -20838,7 +20842,7 @@ var hv = (e) => {
|
|
|
20838
20842
|
renderLabel: c,
|
|
20839
20843
|
renderLabelPopover: n
|
|
20840
20844
|
}
|
|
20841
|
-
) : c({ title: M, subtitle: b }) }) }) : /* @__PURE__ */
|
|
20845
|
+
) : c({ title: M, subtitle: b }) }) }) : /* @__PURE__ */ L("g", { ref: r, children: /* @__PURE__ */ L(
|
|
20842
20846
|
wO,
|
|
20843
20847
|
{
|
|
20844
20848
|
title: M,
|
|
@@ -20849,7 +20853,7 @@ var hv = (e) => {
|
|
|
20849
20853
|
verticalAnchor: wv(
|
|
20850
20854
|
z,
|
|
20851
20855
|
k,
|
|
20852
|
-
|
|
20856
|
+
R,
|
|
20853
20857
|
W,
|
|
20854
20858
|
A ?? kO
|
|
20855
20859
|
)
|
|
@@ -20909,13 +20913,13 @@ var hv = (e) => {
|
|
|
20909
20913
|
value: n.value
|
|
20910
20914
|
})).sort((c, n) => n.value - c.value);
|
|
20911
20915
|
return /* @__PURE__ */ a0("div", { className: Y0["line-chart__tooltip"], children: [
|
|
20912
|
-
/* @__PURE__ */
|
|
20916
|
+
/* @__PURE__ */ L("div", { className: Y0["line-chart__tooltip-date"], children: (p = b.date) == null ? void 0 : p.toLocaleDateString() }),
|
|
20913
20917
|
z.map((c) => /* @__PURE__ */ a0("div", { className: Y0["line-chart__tooltip-row"], children: [
|
|
20914
20918
|
/* @__PURE__ */ a0("span", { className: Y0["line-chart__tooltip-label"], children: [
|
|
20915
20919
|
c.key,
|
|
20916
20920
|
":"
|
|
20917
20921
|
] }),
|
|
20918
|
-
/* @__PURE__ */
|
|
20922
|
+
/* @__PURE__ */ L("span", { className: Y0["line-chart__tooltip-value"], children: c.value })
|
|
20919
20923
|
] }, c.key))
|
|
20920
20924
|
] });
|
|
20921
20925
|
}, _v = (e) => new Date(e).toLocaleDateString(void 0, {
|
|
@@ -20986,7 +20990,7 @@ var hv = (e) => {
|
|
|
20986
20990
|
legendItemClassName: s,
|
|
20987
20991
|
renderGlyph: m = kv,
|
|
20988
20992
|
glyphStyle: y = {},
|
|
20989
|
-
legendShape:
|
|
20993
|
+
legendShape: R = "line",
|
|
20990
20994
|
withLegendGlyph: B = !1,
|
|
20991
20995
|
withGradientFill: W = !1,
|
|
20992
20996
|
smoothing: g = !0,
|
|
@@ -21074,7 +21078,7 @@ var hv = (e) => {
|
|
|
21074
21078
|
renderGlyph: m
|
|
21075
21079
|
}),
|
|
21076
21080
|
[B, y == null ? void 0 : y.radius, m]
|
|
21077
|
-
), i0 = mO(U, $,
|
|
21081
|
+
), i0 = mO(U, $, R), r0 = m0(
|
|
21078
21082
|
() => ({
|
|
21079
21083
|
withGradientFill: W,
|
|
21080
21084
|
smoothing: g,
|
|
@@ -21096,7 +21100,7 @@ var hv = (e) => {
|
|
|
21096
21100
|
xAccessor: (A0) => A0 == null ? void 0 : A0.date,
|
|
21097
21101
|
yAccessor: (A0) => A0 == null ? void 0 : A0.value
|
|
21098
21102
|
};
|
|
21099
|
-
return j ? /* @__PURE__ */
|
|
21103
|
+
return j ? /* @__PURE__ */ L("div", { className: r2("line-chart", Y0["line-chart"]), children: j }) : /* @__PURE__ */ L(
|
|
21100
21104
|
wp.Provider,
|
|
21101
21105
|
{
|
|
21102
21106
|
value: {
|
|
@@ -21118,7 +21122,7 @@ var hv = (e) => {
|
|
|
21118
21122
|
position: "relative"
|
|
21119
21123
|
},
|
|
21120
21124
|
children: [
|
|
21121
|
-
/* @__PURE__ */
|
|
21125
|
+
/* @__PURE__ */ L(
|
|
21122
21126
|
"div",
|
|
21123
21127
|
{
|
|
21124
21128
|
role: "grid",
|
|
@@ -21147,9 +21151,9 @@ var hv = (e) => {
|
|
|
21147
21151
|
onPointerOut: Z,
|
|
21148
21152
|
pointerEventsDataKey: "nearest",
|
|
21149
21153
|
children: [
|
|
21150
|
-
/* @__PURE__ */
|
|
21151
|
-
/* @__PURE__ */
|
|
21152
|
-
/* @__PURE__ */
|
|
21154
|
+
/* @__PURE__ */ L(Qo, { columns: !1, numTicks: 4 }),
|
|
21155
|
+
/* @__PURE__ */ L(SM, { ...N.axis.x }),
|
|
21156
|
+
/* @__PURE__ */ L(SM, { ...N.axis.y }),
|
|
21153
21157
|
U.map((A0, S0) => {
|
|
21154
21158
|
var F0, p1, Y1, v2;
|
|
21155
21159
|
const { color: e1, lineStyles: i1, glyph: A1 } = K({
|
|
@@ -21160,7 +21164,7 @@ var hv = (e) => {
|
|
|
21160
21164
|
...i1
|
|
21161
21165
|
};
|
|
21162
21166
|
return /* @__PURE__ */ a0("g", { children: [
|
|
21163
|
-
W && /* @__PURE__ */
|
|
21167
|
+
W && /* @__PURE__ */ L(
|
|
21164
21168
|
LO,
|
|
21165
21169
|
{
|
|
21166
21170
|
id: `area-gradient-${f}-${S0 + 1}`,
|
|
@@ -21170,7 +21174,7 @@ var hv = (e) => {
|
|
|
21170
21174
|
to: H.backgroundColor,
|
|
21171
21175
|
...(F0 = A0.options) == null ? void 0 : F0.gradient,
|
|
21172
21176
|
"data-testid": "line-gradient",
|
|
21173
|
-
children: (v2 = (Y1 = (p1 = A0.options) == null ? void 0 : p1.gradient) == null ? void 0 : Y1.stops) == null ? void 0 : v2.map((m1, Re) => /* @__PURE__ */
|
|
21177
|
+
children: (v2 = (Y1 = (p1 = A0.options) == null ? void 0 : p1.gradient) == null ? void 0 : Y1.stops) == null ? void 0 : v2.map((m1, Re) => /* @__PURE__ */ L(
|
|
21174
21178
|
"stop",
|
|
21175
21179
|
{
|
|
21176
21180
|
offset: m1.offset,
|
|
@@ -21182,7 +21186,7 @@ var hv = (e) => {
|
|
|
21182
21186
|
))
|
|
21183
21187
|
}
|
|
21184
21188
|
),
|
|
21185
|
-
/* @__PURE__ */
|
|
21189
|
+
/* @__PURE__ */ L(
|
|
21186
21190
|
ZO,
|
|
21187
21191
|
{
|
|
21188
21192
|
dataKey: A0 == null ? void 0 : A0.label,
|
|
@@ -21195,7 +21199,7 @@ var hv = (e) => {
|
|
|
21195
21199
|
},
|
|
21196
21200
|
A0 == null ? void 0 : A0.label
|
|
21197
21201
|
),
|
|
21198
|
-
C && /* @__PURE__ */
|
|
21202
|
+
C && /* @__PURE__ */ L(
|
|
21199
21203
|
Fo,
|
|
21200
21204
|
{
|
|
21201
21205
|
index: S0,
|
|
@@ -21207,7 +21211,7 @@ var hv = (e) => {
|
|
|
21207
21211
|
position: "start"
|
|
21208
21212
|
}
|
|
21209
21213
|
),
|
|
21210
|
-
I && /* @__PURE__ */
|
|
21214
|
+
I && /* @__PURE__ */ L(
|
|
21211
21215
|
Fo,
|
|
21212
21216
|
{
|
|
21213
21217
|
index: S0,
|
|
@@ -21221,7 +21225,7 @@ var hv = (e) => {
|
|
|
21221
21225
|
)
|
|
21222
21226
|
] }, (A0 == null ? void 0 : A0.label) || S0);
|
|
21223
21227
|
}),
|
|
21224
|
-
c && /* @__PURE__ */
|
|
21228
|
+
c && /* @__PURE__ */ L(
|
|
21225
21229
|
j3,
|
|
21226
21230
|
{
|
|
21227
21231
|
detectBounds: !0,
|
|
@@ -21239,7 +21243,7 @@ var hv = (e) => {
|
|
|
21239
21243
|
series: U
|
|
21240
21244
|
}
|
|
21241
21245
|
),
|
|
21242
|
-
/* @__PURE__ */
|
|
21246
|
+
/* @__PURE__ */ L(
|
|
21243
21247
|
Hv,
|
|
21244
21248
|
{
|
|
21245
21249
|
chartRef: Q,
|
|
@@ -21253,7 +21257,7 @@ var hv = (e) => {
|
|
|
21253
21257
|
)
|
|
21254
21258
|
}
|
|
21255
21259
|
),
|
|
21256
|
-
o && /* @__PURE__ */
|
|
21260
|
+
o && /* @__PURE__ */ L(
|
|
21257
21261
|
me,
|
|
21258
21262
|
{
|
|
21259
21263
|
orientation: a,
|
|
@@ -21263,7 +21267,7 @@ var hv = (e) => {
|
|
|
21263
21267
|
textOverflow: u,
|
|
21264
21268
|
legendItemClassName: s,
|
|
21265
21269
|
className: Y0["line-chart-legend"],
|
|
21266
|
-
shape:
|
|
21270
|
+
shape: R,
|
|
21267
21271
|
chartId: f,
|
|
21268
21272
|
ref: b0
|
|
21269
21273
|
}
|
|
@@ -21275,7 +21279,7 @@ var hv = (e) => {
|
|
|
21275
21279
|
}
|
|
21276
21280
|
);
|
|
21277
21281
|
}
|
|
21278
|
-
), Tp = cb((e, M) => J0(We) ? /* @__PURE__ */
|
|
21282
|
+
), Tp = cb((e, M) => J0(We) ? /* @__PURE__ */ L(jo, { ...e, ref: M }) : /* @__PURE__ */ L(gp, { children: /* @__PURE__ */ L(jo, { ...e, ref: M }) }));
|
|
21279
21283
|
Tp.displayName = "LineChart";
|
|
21280
21284
|
Hb(Tp, {
|
|
21281
21285
|
Legend: me,
|
|
@@ -21339,9 +21343,9 @@ function xO(e) {
|
|
|
21339
21343
|
width: b,
|
|
21340
21344
|
height: z,
|
|
21341
21345
|
fill: u
|
|
21342
|
-
}), m.map(function(y,
|
|
21346
|
+
}), m.map(function(y, R) {
|
|
21343
21347
|
return /* @__PURE__ */ M0.createElement("path", {
|
|
21344
|
-
key: "visx-" + M + "-line-" + y + "-" +
|
|
21348
|
+
key: "visx-" + M + "-line-" + y + "-" + R,
|
|
21345
21349
|
className: O1("visx-pattern-line", s),
|
|
21346
21350
|
d: Fv({
|
|
21347
21351
|
orientation: y,
|
|
@@ -21388,11 +21392,11 @@ function EO(e) {
|
|
|
21388
21392
|
strokeWidth: a,
|
|
21389
21393
|
strokeDasharray: O
|
|
21390
21394
|
}), (M = m) == null ? void 0 : M.map(function(y) {
|
|
21391
|
-
var
|
|
21395
|
+
var R = y[0], B = y[1];
|
|
21392
21396
|
return /* @__PURE__ */ M0.createElement("circle", {
|
|
21393
|
-
key: b + "-complement-" +
|
|
21397
|
+
key: b + "-complement-" + R + "-" + B,
|
|
21394
21398
|
className: O1("visx-pattern-circle visx-pattern-circle-complement", s),
|
|
21395
|
-
cx:
|
|
21399
|
+
cx: R,
|
|
21396
21400
|
cy: B,
|
|
21397
21401
|
r: c,
|
|
21398
21402
|
fill: n,
|
|
@@ -21558,7 +21562,7 @@ function Uv(e, M, b = {}) {
|
|
|
21558
21562
|
};
|
|
21559
21563
|
}, [e]);
|
|
21560
21564
|
return m0(() => {
|
|
21561
|
-
var y,
|
|
21565
|
+
var y, R, B, W, g, h;
|
|
21562
21566
|
const t = M ? "horizontal" : "vertical", {
|
|
21563
21567
|
xTickFormat: p,
|
|
21564
21568
|
yTickFormat: c,
|
|
@@ -21568,7 +21572,7 @@ function Uv(e, M, b = {}) {
|
|
|
21568
21572
|
gridVisibility: O,
|
|
21569
21573
|
xScale: r,
|
|
21570
21574
|
yScale: A
|
|
21571
|
-
} = z[t], u = { ...r, ...b.xScale || {} }, s = { ...A, ...b.yScale || {} }, m = M ? (
|
|
21575
|
+
} = z[t], u = { ...r, ...b.xScale || {} }, s = { ...A, ...b.yScale || {} }, m = M ? (R = (y = b.axis) == null ? void 0 : y.y) == null ? void 0 : R.tickFormat : (W = (B = b.axis) == null ? void 0 : B.x) == null ? void 0 : W.tickFormat;
|
|
21572
21576
|
return {
|
|
21573
21577
|
gridVisibility: O,
|
|
21574
21578
|
xScale: u,
|
|
@@ -21622,7 +21626,7 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21622
21626
|
legendShape: s = "rect",
|
|
21623
21627
|
gridVisibility: m,
|
|
21624
21628
|
renderTooltip: y,
|
|
21625
|
-
options:
|
|
21629
|
+
options: R = {},
|
|
21626
21630
|
orientation: B = "vertical",
|
|
21627
21631
|
withPatterns: W = !1,
|
|
21628
21632
|
showZeroValues: g = !1,
|
|
@@ -21630,7 +21634,7 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21630
21634
|
}) => {
|
|
21631
21635
|
const w = B === "horizontal", C = aO(M), I = rO(e), k = OO(e), T = F9(k, {
|
|
21632
21636
|
enabled: g
|
|
21633
|
-
}), F = mO(k), V = Uv(T, w,
|
|
21637
|
+
}), F = mO(k), V = Uv(T, w, R), Z = iO(z, V, k, I, w), [x, _] = AO(), H = u0(null), [P, f] = L0(void 0), [b0, i] = L0(!1), q = Math.max(0, ...e.map((D) => {
|
|
21634
21638
|
var $;
|
|
21635
21639
|
return (($ = D.data) == null ? void 0 : $.length) || 0;
|
|
21636
21640
|
})) * e.length, { tooltipRef: z0, onChartFocus: o0, onChartBlur: d, onChartKeyDown: G } = V3({
|
|
@@ -21648,7 +21652,7 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21648
21652
|
var i0, r0;
|
|
21649
21653
|
const $ = (i0 = D == null ? void 0 : D.nearestDatum) == null ? void 0 : i0.datum;
|
|
21650
21654
|
return $ ? /* @__PURE__ */ a0("div", { className: Z1["bar-chart__tooltip"], children: [
|
|
21651
|
-
/* @__PURE__ */
|
|
21655
|
+
/* @__PURE__ */ L("div", { className: Z1["bar-chart__tooltip-header"], children: (r0 = D == null ? void 0 : D.nearestDatum) == null ? void 0 : r0.key }),
|
|
21652
21656
|
/* @__PURE__ */ a0("div", { className: Z1["bar-chart__tooltip-row"], children: [
|
|
21653
21657
|
/* @__PURE__ */ a0("span", { className: Z1["bar-chart__tooltip-label"], children: [
|
|
21654
21658
|
V.tooltip.labelFormatter(
|
|
@@ -21658,7 +21662,7 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21658
21662
|
),
|
|
21659
21663
|
":"
|
|
21660
21664
|
] }),
|
|
21661
|
-
/* @__PURE__ */
|
|
21665
|
+
/* @__PURE__ */ L("span", { className: Z1["bar-chart__tooltip-value"], children: $.value })
|
|
21662
21666
|
] })
|
|
21663
21667
|
] }) : null;
|
|
21664
21668
|
},
|
|
@@ -21674,7 +21678,7 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21674
21678
|
switch (i0) {
|
|
21675
21679
|
case 0:
|
|
21676
21680
|
default:
|
|
21677
|
-
return /* @__PURE__ */
|
|
21681
|
+
return /* @__PURE__ */ L(
|
|
21678
21682
|
xO,
|
|
21679
21683
|
{
|
|
21680
21684
|
...s0,
|
|
@@ -21685,11 +21689,11 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21685
21689
|
r0
|
|
21686
21690
|
);
|
|
21687
21691
|
case 1:
|
|
21688
|
-
return /* @__PURE__ */
|
|
21692
|
+
return /* @__PURE__ */ L(EO, { ...s0, width: 6, height: 6, fill: "white" }, r0);
|
|
21689
21693
|
case 2:
|
|
21690
|
-
return /* @__PURE__ */
|
|
21694
|
+
return /* @__PURE__ */ L(_O, { ...s0, width: 4, height: 4 }, r0);
|
|
21691
21695
|
case 3:
|
|
21692
|
-
return /* @__PURE__ */
|
|
21696
|
+
return /* @__PURE__ */ L(SO, { ...s0, size: 8, height: 3 }, r0);
|
|
21693
21697
|
}
|
|
21694
21698
|
},
|
|
21695
21699
|
[C]
|
|
@@ -21730,9 +21734,9 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21730
21734
|
isDataValid: N,
|
|
21731
21735
|
metadata: E
|
|
21732
21736
|
}), X)
|
|
21733
|
-
return /* @__PURE__ */
|
|
21737
|
+
return /* @__PURE__ */ L("div", { className: r2("bar-chart", Z1["bar-chart"]), children: X });
|
|
21734
21738
|
const S = m ?? V.gridVisibility, j = n0();
|
|
21735
|
-
return /* @__PURE__ */
|
|
21739
|
+
return /* @__PURE__ */ L(
|
|
21736
21740
|
wp.Provider,
|
|
21737
21741
|
{
|
|
21738
21742
|
value: {
|
|
@@ -21776,7 +21780,7 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21776
21780
|
horizontal: w,
|
|
21777
21781
|
pointerEventsDataKey: "nearest",
|
|
21778
21782
|
children: [
|
|
21779
|
-
/* @__PURE__ */
|
|
21783
|
+
/* @__PURE__ */ L(
|
|
21780
21784
|
Qo,
|
|
21781
21785
|
{
|
|
21782
21786
|
columns: S.includes("y"),
|
|
@@ -21785,18 +21789,18 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21785
21789
|
}
|
|
21786
21790
|
),
|
|
21787
21791
|
W && /* @__PURE__ */ a0(Oe, { children: [
|
|
21788
|
-
/* @__PURE__ */
|
|
21792
|
+
/* @__PURE__ */ L("defs", { "data-testid": "bar-chart-patterns", children: k.map(
|
|
21789
21793
|
(D, $) => l($, Q({ data: D, index: $ }).color)
|
|
21790
21794
|
) }),
|
|
21791
|
-
/* @__PURE__ */
|
|
21795
|
+
/* @__PURE__ */ L("style", { children: k.map(
|
|
21792
21796
|
(D, $) => J(
|
|
21793
21797
|
$,
|
|
21794
21798
|
Q({ data: D, index: $ }).color
|
|
21795
21799
|
)
|
|
21796
21800
|
) })
|
|
21797
21801
|
] }),
|
|
21798
|
-
j && /* @__PURE__ */
|
|
21799
|
-
/* @__PURE__ */
|
|
21802
|
+
j && /* @__PURE__ */ L("style", { children: j }),
|
|
21803
|
+
/* @__PURE__ */ L(ei, { padding: V.barGroup.padding, children: T.map((D, $) => /* @__PURE__ */ L(
|
|
21800
21804
|
Mi,
|
|
21801
21805
|
{
|
|
21802
21806
|
dataKey: D == null ? void 0 : D.label,
|
|
@@ -21807,9 +21811,9 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21807
21811
|
},
|
|
21808
21812
|
D == null ? void 0 : D.label
|
|
21809
21813
|
)) }),
|
|
21810
|
-
/* @__PURE__ */
|
|
21811
|
-
/* @__PURE__ */
|
|
21812
|
-
c && /* @__PURE__ */
|
|
21814
|
+
/* @__PURE__ */ L(SM, { ...V.axis.x }),
|
|
21815
|
+
/* @__PURE__ */ L(SM, { ...V.axis.y }),
|
|
21816
|
+
c && /* @__PURE__ */ L(
|
|
21813
21817
|
j3,
|
|
21814
21818
|
{
|
|
21815
21819
|
detectBounds: !0,
|
|
@@ -21826,7 +21830,7 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21826
21830
|
]
|
|
21827
21831
|
}
|
|
21828
21832
|
),
|
|
21829
|
-
n && /* @__PURE__ */
|
|
21833
|
+
n && /* @__PURE__ */ L(
|
|
21830
21834
|
me,
|
|
21831
21835
|
{
|
|
21832
21836
|
orientation: o,
|
|
@@ -21847,7 +21851,7 @@ var $v = (e) => e != null && e.length ? e.some(
|
|
|
21847
21851
|
)
|
|
21848
21852
|
}
|
|
21849
21853
|
);
|
|
21850
|
-
}, kp = (e) => J0(We) ? /* @__PURE__ */
|
|
21854
|
+
}, kp = (e) => J0(We) ? /* @__PURE__ */ L(Vo, { ...e }) : /* @__PURE__ */ L(gp, { children: /* @__PURE__ */ L(Vo, { ...e }) });
|
|
21851
21855
|
kp.displayName = "BarChart";
|
|
21852
21856
|
Hb(kp, {
|
|
21853
21857
|
Legend: me
|
|
@@ -21865,12 +21869,12 @@ const Gv = (e, M = "") => {
|
|
|
21865
21869
|
return console.warn(`Failed to get CSS variable ${e}:`, b), M;
|
|
21866
21870
|
}
|
|
21867
21871
|
}, $e = ({ message: e, details: M }) => /* @__PURE__ */ a0("div", { className: "chart-error", children: [
|
|
21868
|
-
/* @__PURE__ */
|
|
21872
|
+
/* @__PURE__ */ L("strong", { children: "Chart Error:" }),
|
|
21869
21873
|
" ",
|
|
21870
21874
|
e,
|
|
21871
21875
|
M && /* @__PURE__ */ a0("details", { children: [
|
|
21872
|
-
/* @__PURE__ */
|
|
21873
|
-
/* @__PURE__ */
|
|
21876
|
+
/* @__PURE__ */ L("summary", { children: "Show Details" }),
|
|
21877
|
+
/* @__PURE__ */ L("pre", { children: M })
|
|
21874
21878
|
] })
|
|
21875
21879
|
] }), DO = ({
|
|
21876
21880
|
children: e,
|
|
@@ -21895,7 +21899,7 @@ const Gv = (e, M = "") => {
|
|
|
21895
21899
|
legendGlyphSize: 12
|
|
21896
21900
|
};
|
|
21897
21901
|
}, []);
|
|
21898
|
-
return M ? /* @__PURE__ */
|
|
21902
|
+
return M ? /* @__PURE__ */ L($e, { message: M.message, details: M.details }) : /* @__PURE__ */ L("div", { className: "chart-block", children: /* @__PURE__ */ L("div", { className: "chart-container", children: /* @__PURE__ */ L(gp, { theme: b, children: e }) }) });
|
|
21899
21903
|
}, vt = (e = 80, M = 6, b = 25, z) => Math.max(e, (z ?? 5) * M + b), Uo = (e) => {
|
|
21900
21904
|
if (e instanceof Date)
|
|
21901
21905
|
return e;
|
|
@@ -22005,7 +22009,7 @@ const Gv = (e, M = "") => {
|
|
|
22005
22009
|
dy: -15
|
|
22006
22010
|
}
|
|
22007
22011
|
}
|
|
22008
|
-
},
|
|
22012
|
+
}, R = {
|
|
22009
22013
|
data: M,
|
|
22010
22014
|
withTooltips: t,
|
|
22011
22015
|
renderTooltip: p,
|
|
@@ -22021,7 +22025,7 @@ const Gv = (e, M = "") => {
|
|
|
22021
22025
|
...b && { currency: b },
|
|
22022
22026
|
...r
|
|
22023
22027
|
};
|
|
22024
|
-
return /* @__PURE__ */
|
|
22028
|
+
return /* @__PURE__ */ L(DO, { error: O, children: /* @__PURE__ */ L(Yv, { ...R }) });
|
|
22025
22029
|
};
|
|
22026
22030
|
class Jv extends YO {
|
|
22027
22031
|
constructor(M) {
|
|
@@ -22059,7 +22063,7 @@ class Jv extends YO {
|
|
|
22059
22063
|
var M;
|
|
22060
22064
|
if (this.state.hasError) {
|
|
22061
22065
|
const b = ((M = this.state.error) == null ? void 0 : M.message) || "An error occurred while rendering the chart";
|
|
22062
|
-
return /* @__PURE__ */
|
|
22066
|
+
return /* @__PURE__ */ L(
|
|
22063
22067
|
$e,
|
|
22064
22068
|
{
|
|
22065
22069
|
message: b,
|
|
@@ -22112,7 +22116,7 @@ const Qv = (e) => {
|
|
|
22112
22116
|
...b && { currency: b },
|
|
22113
22117
|
...a
|
|
22114
22118
|
};
|
|
22115
|
-
return /* @__PURE__ */
|
|
22119
|
+
return /* @__PURE__ */ L(DO, { error: o, children: /* @__PURE__ */ L(Iv, { ...r }) });
|
|
22116
22120
|
}, Zv = ({
|
|
22117
22121
|
data: e,
|
|
22118
22122
|
className: M = "",
|
|
@@ -22121,9 +22125,9 @@ const Qv = (e) => {
|
|
|
22121
22125
|
const [z, t] = L0(null), [p, c] = L0(
|
|
22122
22126
|
null
|
|
22123
22127
|
), [n, o] = L0(300), a = u0(null), O = p0(
|
|
22124
|
-
(
|
|
22128
|
+
(R) => {
|
|
22125
22129
|
var I;
|
|
22126
|
-
const { tooltipData: B } =
|
|
22130
|
+
const { tooltipData: B } = R, W = (I = B == null ? void 0 : B.nearestDatum) == null ? void 0 : I.datum;
|
|
22127
22131
|
if (!W)
|
|
22128
22132
|
return null;
|
|
22129
22133
|
const g = (k) => {
|
|
@@ -22158,7 +22162,7 @@ const Qv = (e) => {
|
|
|
22158
22162
|
};
|
|
22159
22163
|
}).sort((k, T) => T.value - k.value);
|
|
22160
22164
|
return /* @__PURE__ */ a0("div", { children: [
|
|
22161
|
-
w && /* @__PURE__ */
|
|
22165
|
+
w && /* @__PURE__ */ L(
|
|
22162
22166
|
"div",
|
|
22163
22167
|
{
|
|
22164
22168
|
style: {
|
|
@@ -22172,7 +22176,7 @@ const Qv = (e) => {
|
|
|
22172
22176
|
children: w
|
|
22173
22177
|
}
|
|
22174
22178
|
),
|
|
22175
|
-
W.date && /* @__PURE__ */
|
|
22179
|
+
W.date && /* @__PURE__ */ L(
|
|
22176
22180
|
"div",
|
|
22177
22181
|
{
|
|
22178
22182
|
style: {
|
|
@@ -22211,8 +22215,8 @@ const Qv = (e) => {
|
|
|
22211
22215
|
return;
|
|
22212
22216
|
}
|
|
22213
22217
|
try {
|
|
22214
|
-
const
|
|
22215
|
-
if (!
|
|
22218
|
+
const R = JSON.parse(e.trim());
|
|
22219
|
+
if (!R.chartType) {
|
|
22216
22220
|
t({
|
|
22217
22221
|
message: g0(
|
|
22218
22222
|
"Chart data must include chartType",
|
|
@@ -22222,7 +22226,7 @@ const Qv = (e) => {
|
|
|
22222
22226
|
});
|
|
22223
22227
|
return;
|
|
22224
22228
|
}
|
|
22225
|
-
if (!
|
|
22229
|
+
if (!R.data || !Array.isArray(R.data)) {
|
|
22226
22230
|
t({
|
|
22227
22231
|
message: g0(
|
|
22228
22232
|
"Chart data must include a data array",
|
|
@@ -22232,7 +22236,7 @@ const Qv = (e) => {
|
|
|
22232
22236
|
});
|
|
22233
22237
|
return;
|
|
22234
22238
|
}
|
|
22235
|
-
if (
|
|
22239
|
+
if (R.data.length === 0) {
|
|
22236
22240
|
t({
|
|
22237
22241
|
message: g0(
|
|
22238
22242
|
"No data points found for chart",
|
|
@@ -22242,7 +22246,7 @@ const Qv = (e) => {
|
|
|
22242
22246
|
});
|
|
22243
22247
|
return;
|
|
22244
22248
|
}
|
|
22245
|
-
const B =
|
|
22249
|
+
const B = R.data.map((g) => ({
|
|
22246
22250
|
...g,
|
|
22247
22251
|
data: g.data.map((h) => {
|
|
22248
22252
|
if (h.date) {
|
|
@@ -22266,11 +22270,11 @@ const Qv = (e) => {
|
|
|
22266
22270
|
};
|
|
22267
22271
|
})
|
|
22268
22272
|
})), W = {
|
|
22269
|
-
chartType:
|
|
22270
|
-
title:
|
|
22273
|
+
chartType: R.chartType,
|
|
22274
|
+
title: R.title,
|
|
22271
22275
|
data: B,
|
|
22272
|
-
currency:
|
|
22273
|
-
mode:
|
|
22276
|
+
currency: R.currency,
|
|
22277
|
+
mode: R.mode || "time-comparison"
|
|
22274
22278
|
};
|
|
22275
22279
|
c(W);
|
|
22276
22280
|
} catch {
|
|
@@ -22283,9 +22287,9 @@ const Qv = (e) => {
|
|
|
22283
22287
|
});
|
|
22284
22288
|
}
|
|
22285
22289
|
}, [e]);
|
|
22286
|
-
const r = p0((
|
|
22287
|
-
if (a.current && a.current.disconnect(),
|
|
22288
|
-
const { width: B } =
|
|
22290
|
+
const r = p0((R) => {
|
|
22291
|
+
if (a.current && a.current.disconnect(), R) {
|
|
22292
|
+
const { width: B } = R.getBoundingClientRect(), W = Math.max(280, B - 4);
|
|
22289
22293
|
o(W), a.current = new ResizeObserver((g) => {
|
|
22290
22294
|
for (const h of g) {
|
|
22291
22295
|
const w = h.contentRect.width, C = Math.max(
|
|
@@ -22294,15 +22298,15 @@ const Qv = (e) => {
|
|
|
22294
22298
|
);
|
|
22295
22299
|
o(C);
|
|
22296
22300
|
}
|
|
22297
|
-
}), a.current.observe(
|
|
22301
|
+
}), a.current.observe(R);
|
|
22298
22302
|
}
|
|
22299
22303
|
}, []);
|
|
22300
22304
|
if (W0(() => () => {
|
|
22301
22305
|
a.current && (a.current.disconnect(), a.current = null);
|
|
22302
22306
|
}, []), z)
|
|
22303
|
-
return /* @__PURE__ */
|
|
22307
|
+
return /* @__PURE__ */ L($e, { message: z.message, details: z.details });
|
|
22304
22308
|
if (!p)
|
|
22305
|
-
return /* @__PURE__ */
|
|
22309
|
+
return /* @__PURE__ */ L(
|
|
22306
22310
|
$e,
|
|
22307
22311
|
{
|
|
22308
22312
|
message: g0("No chart data available", "a8c-agenttic")
|
|
@@ -22321,9 +22325,9 @@ const Qv = (e) => {
|
|
|
22321
22325
|
}, y = () => {
|
|
22322
22326
|
switch (p.chartType) {
|
|
22323
22327
|
case "line":
|
|
22324
|
-
return /* @__PURE__ */
|
|
22328
|
+
return /* @__PURE__ */ L(Qv, { ...m });
|
|
22325
22329
|
case "bar":
|
|
22326
|
-
return /* @__PURE__ */
|
|
22330
|
+
return /* @__PURE__ */ L(
|
|
22327
22331
|
Kv,
|
|
22328
22332
|
{
|
|
22329
22333
|
...m,
|
|
@@ -22331,7 +22335,7 @@ const Qv = (e) => {
|
|
|
22331
22335
|
}
|
|
22332
22336
|
);
|
|
22333
22337
|
default:
|
|
22334
|
-
return /* @__PURE__ */
|
|
22338
|
+
return /* @__PURE__ */ L(
|
|
22335
22339
|
$e,
|
|
22336
22340
|
{
|
|
22337
22341
|
message: y2(
|
|
@@ -22343,14 +22347,14 @@ const Qv = (e) => {
|
|
|
22343
22347
|
);
|
|
22344
22348
|
}
|
|
22345
22349
|
};
|
|
22346
|
-
return /* @__PURE__ */
|
|
22350
|
+
return /* @__PURE__ */ L(Jv, { chartData: e, children: /* @__PURE__ */ a0(
|
|
22347
22351
|
"div",
|
|
22348
22352
|
{
|
|
22349
22353
|
ref: r,
|
|
22350
22354
|
className: `chart-block ${M}`,
|
|
22351
22355
|
children: [
|
|
22352
|
-
p.title && /* @__PURE__ */
|
|
22353
|
-
/* @__PURE__ */
|
|
22356
|
+
p.title && /* @__PURE__ */ L("h3", { className: "chart-block-title", children: p.title }),
|
|
22357
|
+
/* @__PURE__ */ L("div", { className: "chart-container", children: y() })
|
|
22354
22358
|
]
|
|
22355
22359
|
}
|
|
22356
22360
|
) });
|
|
@@ -22416,7 +22420,7 @@ function wN(e = {}) {
|
|
|
22416
22420
|
}).catch(() => {
|
|
22417
22421
|
r(a);
|
|
22418
22422
|
}) : r(a);
|
|
22419
|
-
}, [a]), /* @__PURE__ */
|
|
22423
|
+
}, [a]), /* @__PURE__ */ L(
|
|
22420
22424
|
wt,
|
|
22421
22425
|
{
|
|
22422
22426
|
components: c,
|