@notificationapi/react 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/assets/Badge.js +1 -1
  2. package/dist/assets/Box.js +13 -13
  3. package/dist/assets/Button.js +781 -0
  4. package/dist/assets/ButtonBase.js +409 -622
  5. package/dist/assets/DefaultPropsProvider.js +220 -215
  6. package/dist/assets/Divider.js +105 -154
  7. package/dist/assets/Grow.js +201 -0
  8. package/dist/assets/IconButton.js +1 -1
  9. package/dist/assets/List.js +142 -0
  10. package/dist/assets/Modal.js +1094 -0
  11. package/dist/assets/Notification.js +80 -79
  12. package/dist/assets/Paper.js +1 -1
  13. package/dist/assets/Popover.js +8 -6
  14. package/dist/assets/Portal.js +2 -2
  15. package/dist/assets/Stack.js +216 -0
  16. package/dist/assets/Typography.js +193 -117
  17. package/dist/assets/WebPushOptInMessage.js +40 -814
  18. package/dist/assets/createSvgIcon.js +5 -5
  19. package/dist/assets/dividerClasses.js +56 -0
  20. package/dist/assets/index.js +151 -0
  21. package/dist/assets/useTheme2.js +253 -11
  22. package/dist/assets/utils.js +4 -4
  23. package/dist/components/Notifications/Inbox.js +2927 -9
  24. package/dist/components/Notifications/InboxHeader.js +2146 -7
  25. package/dist/components/Notifications/NotificationFeed.js +13 -13
  26. package/dist/components/Notifications/NotificationLauncher.js +2 -2
  27. package/dist/components/Notifications/NotificationPopup.js +7 -7
  28. package/dist/components/Preferences/NotificationPreferencesPopup.js +608 -7
  29. package/dist/components/Preferences/PreferenceInput.js +1451 -6
  30. package/dist/components/Preferences/Preferences.js +368 -515
  31. package/dist/components/Preferences/index.js +1 -1
  32. package/dist/components/Provider/index.js +226 -202
  33. package/dist/components/Slack/SlackConnect.d.ts +12 -0
  34. package/dist/components/Slack/SlackConnect.js +4826 -0
  35. package/dist/components/Slack/index.d.ts +1 -0
  36. package/dist/components/Slack/index.js +4 -0
  37. package/dist/components/WebPush/WebPushOptInMessage.js +3 -2
  38. package/dist/main.d.ts +1 -0
  39. package/dist/main.js +5 -3
  40. package/package.json +4 -4
  41. package/dist/assets/Inbox.js +0 -3061
  42. package/dist/assets/InboxHeader.js +0 -2338
  43. package/dist/assets/NotificationPreferencesPopup.js +0 -1694
  44. package/dist/assets/PreferenceInput.js +0 -1657
@@ -1,11 +1,2929 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import "../../assets/InboxHeader.js";
4
- import "../../assets/Notification.js";
5
- import "./interface.js";
6
- import "../Provider/context.js";
7
- import "./DefaultEmpty.js";
8
- import { I as b } from "../../assets/Inbox.js";
1
+ import { jsx as j, jsxs as $e } from "react/jsx-runtime";
2
+ import * as v from "react";
3
+ import dr, { isValidElement as Qr, useRef as D, useEffect as en, useState as Ye, useContext as tn } from "react";
4
+ import { InboxHeader as Bt } from "./InboxHeader.js";
5
+ import { L as rn, N as Wt } from "../../assets/Notification.js";
6
+ import { Filter as Yt } from "./interface.js";
7
+ import { NotificationAPIContext as nn } from "../Provider/context.js";
8
+ import { DefaultEmptyComponent as on } from "./DefaultEmpty.js";
9
+ import { g as ze, e as Je, s as he, u as Qe, c as _e, P as c, b as et, m as tt, a as we, h as xe, M as an, _ as Ct } from "../../assets/DefaultPropsProvider.js";
10
+ import { c as sn, e as cn, B as ln, a as We, f as un, h as fn, j as dn } from "../../assets/ButtonBase.js";
11
+ import { R as Gt, a as Ut } from "../../assets/utils.js";
12
+ import { b as Ge, a as vr, i as Xt, L as Kt } from "../../assets/List.js";
13
+ import { u as vn } from "../../assets/resolveComponentProps.js";
14
+ import { a as pn } from "../../assets/dividerClasses.js";
15
+ import { i as Ae } from "../../assets/integerPropType.js";
16
+ import { u as hn } from "../../assets/Grow.js";
17
+ import { c as qt } from "../../assets/createSimplePaletteValueFilter.js";
18
+ import { c as rt } from "../../assets/createSvgIcon.js";
19
+ function mn(e) {
20
+ return Je("MuiListItem", e);
21
+ }
22
+ ze("MuiListItem", ["root", "container", "dense", "alignItemsFlexStart", "divider", "gutters", "padding", "secondaryAction"]);
23
+ const gn = ze("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]);
24
+ function bn(e) {
25
+ return Je("MuiListItemSecondaryAction", e);
26
+ }
27
+ ze("MuiListItemSecondaryAction", ["root", "disableGutters"]);
28
+ const yn = (e) => {
29
+ const {
30
+ disableGutters: t,
31
+ classes: r
32
+ } = e;
33
+ return et({
34
+ root: ["root", t && "disableGutters"]
35
+ }, bn, r);
36
+ }, Sn = he("div", {
37
+ name: "MuiListItemSecondaryAction",
38
+ slot: "Root",
39
+ overridesResolver: (e, t) => {
40
+ const {
41
+ ownerState: r
42
+ } = e;
43
+ return [t.root, r.disableGutters && t.disableGutters];
44
+ }
45
+ })({
46
+ position: "absolute",
47
+ right: 16,
48
+ top: "50%",
49
+ transform: "translateY(-50%)",
50
+ variants: [{
51
+ props: ({
52
+ ownerState: e
53
+ }) => e.disableGutters,
54
+ style: {
55
+ right: 0
56
+ }
57
+ }]
58
+ }), Ot = /* @__PURE__ */ v.forwardRef(function(t, r) {
59
+ const n = Qe({
60
+ props: t,
61
+ name: "MuiListItemSecondaryAction"
62
+ }), {
63
+ className: o,
64
+ ...i
65
+ } = n, a = v.useContext(Ge), l = {
66
+ ...n,
67
+ disableGutters: a.disableGutters
68
+ }, d = yn(l);
69
+ return /* @__PURE__ */ j(Sn, {
70
+ className: _e(d.root, o),
71
+ ownerState: l,
72
+ ref: r,
73
+ ...i
74
+ });
75
+ });
76
+ process.env.NODE_ENV !== "production" && (Ot.propTypes = {
77
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
78
+ // │ These PropTypes are generated from the TypeScript type definitions. │
79
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
80
+ // └─────────────────────────────────────────────────────────────────────┘
81
+ /**
82
+ * The content of the component, normally an `IconButton` or selection control.
83
+ */
84
+ children: c.node,
85
+ /**
86
+ * Override or extend the styles applied to the component.
87
+ */
88
+ classes: c.object,
89
+ /**
90
+ * @ignore
91
+ */
92
+ className: c.string,
93
+ /**
94
+ * The system prop that allows defining system overrides as well as additional CSS styles.
95
+ */
96
+ sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object])
97
+ });
98
+ Ot.muiName = "ListItemSecondaryAction";
99
+ const Rn = (e, t) => {
100
+ const {
101
+ ownerState: r
102
+ } = e;
103
+ return [t.root, r.dense && t.dense, r.alignItems === "flex-start" && t.alignItemsFlexStart, r.divider && t.divider, !r.disableGutters && t.gutters, !r.disablePadding && t.padding, r.hasSecondaryAction && t.secondaryAction];
104
+ }, En = (e) => {
105
+ const {
106
+ alignItems: t,
107
+ classes: r,
108
+ dense: n,
109
+ disableGutters: o,
110
+ disablePadding: i,
111
+ divider: a,
112
+ hasSecondaryAction: l
113
+ } = e;
114
+ return et({
115
+ root: ["root", n && "dense", !o && "gutters", !i && "padding", a && "divider", t === "flex-start" && "alignItemsFlexStart", l && "secondaryAction"],
116
+ container: ["container"]
117
+ }, mn, r);
118
+ }, wn = he("div", {
119
+ name: "MuiListItem",
120
+ slot: "Root",
121
+ overridesResolver: Rn
122
+ })(tt(({
123
+ theme: e
124
+ }) => ({
125
+ display: "flex",
126
+ justifyContent: "flex-start",
127
+ alignItems: "center",
128
+ position: "relative",
129
+ textDecoration: "none",
130
+ width: "100%",
131
+ boxSizing: "border-box",
132
+ textAlign: "left",
133
+ variants: [{
134
+ props: ({
135
+ ownerState: t
136
+ }) => !t.disablePadding,
137
+ style: {
138
+ paddingTop: 8,
139
+ paddingBottom: 8
140
+ }
141
+ }, {
142
+ props: ({
143
+ ownerState: t
144
+ }) => !t.disablePadding && t.dense,
145
+ style: {
146
+ paddingTop: 4,
147
+ paddingBottom: 4
148
+ }
149
+ }, {
150
+ props: ({
151
+ ownerState: t
152
+ }) => !t.disablePadding && !t.disableGutters,
153
+ style: {
154
+ paddingLeft: 16,
155
+ paddingRight: 16
156
+ }
157
+ }, {
158
+ props: ({
159
+ ownerState: t
160
+ }) => !t.disablePadding && !!t.secondaryAction,
161
+ style: {
162
+ // Add some space to avoid collision as `ListItemSecondaryAction`
163
+ // is absolutely positioned.
164
+ paddingRight: 48
165
+ }
166
+ }, {
167
+ props: ({
168
+ ownerState: t
169
+ }) => !!t.secondaryAction,
170
+ style: {
171
+ [`& > .${gn.root}`]: {
172
+ paddingRight: 48
173
+ }
174
+ }
175
+ }, {
176
+ props: {
177
+ alignItems: "flex-start"
178
+ },
179
+ style: {
180
+ alignItems: "flex-start"
181
+ }
182
+ }, {
183
+ props: ({
184
+ ownerState: t
185
+ }) => t.divider,
186
+ style: {
187
+ borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
188
+ backgroundClip: "padding-box"
189
+ }
190
+ }, {
191
+ props: ({
192
+ ownerState: t
193
+ }) => t.button,
194
+ style: {
195
+ transition: e.transitions.create("background-color", {
196
+ duration: e.transitions.duration.shortest
197
+ }),
198
+ "&:hover": {
199
+ textDecoration: "none",
200
+ backgroundColor: (e.vars || e).palette.action.hover,
201
+ // Reset on touch devices, it doesn't add specificity
202
+ "@media (hover: none)": {
203
+ backgroundColor: "transparent"
204
+ }
205
+ }
206
+ }
207
+ }, {
208
+ props: ({
209
+ ownerState: t
210
+ }) => t.hasSecondaryAction,
211
+ style: {
212
+ // Add some space to avoid collision as `ListItemSecondaryAction`
213
+ // is absolutely positioned.
214
+ paddingRight: 48
215
+ }
216
+ }]
217
+ }))), xn = he("li", {
218
+ name: "MuiListItem",
219
+ slot: "Container",
220
+ overridesResolver: (e, t) => t.container
221
+ })({
222
+ position: "relative"
223
+ }), mt = /* @__PURE__ */ v.forwardRef(function(t, r) {
224
+ const n = Qe({
225
+ props: t,
226
+ name: "MuiListItem"
227
+ }), {
228
+ alignItems: o = "center",
229
+ children: i,
230
+ className: a,
231
+ component: l,
232
+ components: d = {},
233
+ componentsProps: f = {},
234
+ ContainerComponent: m = "li",
235
+ ContainerProps: {
236
+ className: h,
237
+ ...y
238
+ } = {},
239
+ dense: g = !1,
240
+ disableGutters: b = !1,
241
+ disablePadding: p = !1,
242
+ divider: s = !1,
243
+ secondaryAction: w,
244
+ slotProps: u = {},
245
+ slots: R = {},
246
+ ...O
247
+ } = n, x = v.useContext(Ge), L = v.useMemo(() => ({
248
+ dense: g || x.dense || !1,
249
+ alignItems: o,
250
+ disableGutters: b
251
+ }), [o, x.dense, g, b]), P = v.useRef(null), T = v.Children.toArray(i), _ = T.length && vr(T[T.length - 1], ["ListItemSecondaryAction"]), M = {
252
+ ...n,
253
+ alignItems: o,
254
+ dense: L.dense,
255
+ disableGutters: b,
256
+ disablePadding: p,
257
+ divider: s,
258
+ hasSecondaryAction: _
259
+ }, F = En(M), Y = vn(P, r), B = R.root || d.Root || wn, $ = u.root || f.root || {}, G = {
260
+ className: _e(F.root, $.className, a),
261
+ ...O
262
+ };
263
+ let k = l || "li";
264
+ return _ ? (k = !G.component && !l ? "div" : k, m === "li" && (k === "li" ? k = "div" : G.component === "li" && (G.component = "div")), /* @__PURE__ */ j(Ge.Provider, {
265
+ value: L,
266
+ children: /* @__PURE__ */ $e(xn, {
267
+ as: m,
268
+ className: _e(F.container, h),
269
+ ref: Y,
270
+ ownerState: M,
271
+ ...y,
272
+ children: [/* @__PURE__ */ j(B, {
273
+ ...$,
274
+ ...!Xt(B) && {
275
+ as: k,
276
+ ownerState: {
277
+ ...M,
278
+ ...$.ownerState
279
+ }
280
+ },
281
+ ...G,
282
+ children: T
283
+ }), T.pop()]
284
+ })
285
+ })) : /* @__PURE__ */ j(Ge.Provider, {
286
+ value: L,
287
+ children: /* @__PURE__ */ $e(B, {
288
+ ...$,
289
+ as: k,
290
+ ref: Y,
291
+ ...!Xt(B) && {
292
+ ownerState: {
293
+ ...M,
294
+ ...$.ownerState
295
+ }
296
+ },
297
+ ...G,
298
+ children: [T, w && /* @__PURE__ */ j(Ot, {
299
+ children: w
300
+ })]
301
+ })
302
+ });
303
+ });
304
+ process.env.NODE_ENV !== "production" && (mt.propTypes = {
305
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
306
+ // │ These PropTypes are generated from the TypeScript type definitions. │
307
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
308
+ // └─────────────────────────────────────────────────────────────────────┘
309
+ /**
310
+ * Defines the `align-items` style property.
311
+ * @default 'center'
312
+ */
313
+ alignItems: c.oneOf(["center", "flex-start"]),
314
+ /**
315
+ * The content of the component if a `ListItemSecondaryAction` is used it must
316
+ * be the last child.
317
+ */
318
+ children: sn(c.node, (e) => {
319
+ const t = v.Children.toArray(e.children);
320
+ let r = -1;
321
+ for (let n = t.length - 1; n >= 0; n -= 1) {
322
+ const o = t[n];
323
+ if (vr(o, ["ListItemSecondaryAction"])) {
324
+ r = n;
325
+ break;
326
+ }
327
+ }
328
+ return r !== -1 && r !== t.length - 1 ? new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem.") : null;
329
+ }),
330
+ /**
331
+ * Override or extend the styles applied to the component.
332
+ */
333
+ classes: c.object,
334
+ /**
335
+ * @ignore
336
+ */
337
+ className: c.string,
338
+ /**
339
+ * The component used for the root node.
340
+ * Either a string to use a HTML element or a component.
341
+ */
342
+ component: c.elementType,
343
+ /**
344
+ * The components used for each slot inside.
345
+ *
346
+ * @deprecated Use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
347
+ * @default {}
348
+ */
349
+ components: c.shape({
350
+ Root: c.elementType
351
+ }),
352
+ /**
353
+ * The extra props for the slot components.
354
+ * You can override the existing props or add new ones.
355
+ *
356
+ * @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
357
+ * @default {}
358
+ */
359
+ componentsProps: c.shape({
360
+ root: c.object
361
+ }),
362
+ /**
363
+ * The container component used when a `ListItemSecondaryAction` is the last child.
364
+ * @default 'li'
365
+ * @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
366
+ */
367
+ ContainerComponent: cn,
368
+ /**
369
+ * Props applied to the container component if used.
370
+ * @default {}
371
+ * @deprecated Use the `slotProps.root` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
372
+ */
373
+ ContainerProps: c.object,
374
+ /**
375
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used.
376
+ * The prop defaults to the value inherited from the parent List component.
377
+ * @default false
378
+ */
379
+ dense: c.bool,
380
+ /**
381
+ * If `true`, the left and right padding is removed.
382
+ * @default false
383
+ */
384
+ disableGutters: c.bool,
385
+ /**
386
+ * If `true`, all padding is removed.
387
+ * @default false
388
+ */
389
+ disablePadding: c.bool,
390
+ /**
391
+ * If `true`, a 1px light border is added to the bottom of the list item.
392
+ * @default false
393
+ */
394
+ divider: c.bool,
395
+ /**
396
+ * The element to display at the end of ListItem.
397
+ */
398
+ secondaryAction: c.node,
399
+ /**
400
+ * The extra props for the slot components.
401
+ * You can override the existing props or add new ones.
402
+ *
403
+ * @default {}
404
+ */
405
+ slotProps: c.shape({
406
+ root: c.object
407
+ }),
408
+ /**
409
+ * The components used for each slot inside.
410
+ *
411
+ * @default {}
412
+ */
413
+ slots: c.shape({
414
+ root: c.elementType
415
+ }),
416
+ /**
417
+ * The system prop that allows defining system overrides as well as additional CSS styles.
418
+ */
419
+ sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object])
420
+ });
421
+ function _n(e) {
422
+ return Je("MuiPagination", e);
423
+ }
424
+ ze("MuiPagination", ["root", "ul", "outlined", "text"]);
425
+ function Cn(e = {}) {
426
+ const {
427
+ boundaryCount: t = 1,
428
+ componentName: r = "usePagination",
429
+ count: n = 1,
430
+ defaultPage: o = 1,
431
+ disabled: i = !1,
432
+ hideNextButton: a = !1,
433
+ hidePrevButton: l = !1,
434
+ onChange: d,
435
+ page: f,
436
+ showFirstButton: m = !1,
437
+ showLastButton: h = !1,
438
+ siblingCount: y = 1,
439
+ ...g
440
+ } = e, [b, p] = pn({
441
+ controlled: f,
442
+ default: o,
443
+ name: r,
444
+ state: "page"
445
+ }), s = (_, M) => {
446
+ f || p(M), d && d(_, M);
447
+ }, w = (_, M) => {
448
+ const F = M - _ + 1;
449
+ return Array.from({
450
+ length: F
451
+ }, (Y, B) => _ + B);
452
+ }, u = w(1, Math.min(t, n)), R = w(Math.max(n - t + 1, t + 1), n), O = Math.max(
453
+ Math.min(
454
+ // Natural start
455
+ b - y,
456
+ // Lower boundary when page is high
457
+ n - t - y * 2 - 1
458
+ ),
459
+ // Greater than startPages
460
+ t + 2
461
+ ), x = Math.min(
462
+ Math.max(
463
+ // Natural end
464
+ b + y,
465
+ // Upper boundary when page is low
466
+ t + y * 2 + 2
467
+ ),
468
+ // Less than endPages
469
+ n - t - 1
470
+ ), L = [
471
+ ...m ? ["first"] : [],
472
+ ...l ? [] : ["previous"],
473
+ ...u,
474
+ // Start ellipsis
475
+ // eslint-disable-next-line no-nested-ternary
476
+ ...O > t + 2 ? ["start-ellipsis"] : t + 1 < n - t ? [t + 1] : [],
477
+ // Sibling pages
478
+ ...w(O, x),
479
+ // End ellipsis
480
+ // eslint-disable-next-line no-nested-ternary
481
+ ...x < n - t - 1 ? ["end-ellipsis"] : n - t > t ? [n - t] : [],
482
+ ...R,
483
+ ...a ? [] : ["next"],
484
+ ...h ? ["last"] : []
485
+ ], P = (_) => {
486
+ switch (_) {
487
+ case "first":
488
+ return 1;
489
+ case "previous":
490
+ return b - 1;
491
+ case "next":
492
+ return b + 1;
493
+ case "last":
494
+ return n;
495
+ default:
496
+ return null;
497
+ }
498
+ };
499
+ return {
500
+ items: L.map((_) => typeof _ == "number" ? {
501
+ onClick: (M) => {
502
+ s(M, _);
503
+ },
504
+ type: "page",
505
+ page: _,
506
+ selected: _ === b,
507
+ disabled: i,
508
+ "aria-current": _ === b ? "page" : void 0
509
+ } : {
510
+ onClick: (M) => {
511
+ s(M, P(_));
512
+ },
513
+ type: _,
514
+ page: P(_),
515
+ selected: !1,
516
+ disabled: i || !_.includes("ellipsis") && (_ === "next" || _ === "last" ? b >= n : b <= 1)
517
+ }),
518
+ ...g
519
+ };
520
+ }
521
+ function On(e) {
522
+ return Je("MuiPaginationItem", e);
523
+ }
524
+ const Q = ze("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), Pn = rt(/* @__PURE__ */ j("path", {
525
+ d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
526
+ }), "FirstPage"), Mn = rt(/* @__PURE__ */ j("path", {
527
+ d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
528
+ }), "LastPage"), Tn = rt(/* @__PURE__ */ j("path", {
529
+ d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
530
+ }), "NavigateBefore"), In = rt(/* @__PURE__ */ j("path", {
531
+ d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
532
+ }), "NavigateNext"), pr = (e, t) => {
533
+ const {
534
+ ownerState: r
535
+ } = e;
536
+ return [t.root, t[r.variant], t[`size${xe(r.size)}`], r.variant === "text" && t[`text${xe(r.color)}`], r.variant === "outlined" && t[`outlined${xe(r.color)}`], r.shape === "rounded" && t.rounded, r.type === "page" && t.page, (r.type === "start-ellipsis" || r.type === "end-ellipsis") && t.ellipsis, (r.type === "previous" || r.type === "next") && t.previousNext, (r.type === "first" || r.type === "last") && t.firstLast];
537
+ }, Ln = (e) => {
538
+ const {
539
+ classes: t,
540
+ color: r,
541
+ disabled: n,
542
+ selected: o,
543
+ size: i,
544
+ shape: a,
545
+ type: l,
546
+ variant: d
547
+ } = e, f = {
548
+ root: ["root", `size${xe(i)}`, d, a, r !== "standard" && `color${xe(r)}`, r !== "standard" && `${d}${xe(r)}`, n && "disabled", o && "selected", {
549
+ page: "page",
550
+ first: "firstLast",
551
+ last: "firstLast",
552
+ "start-ellipsis": "ellipsis",
553
+ "end-ellipsis": "ellipsis",
554
+ previous: "previousNext",
555
+ next: "previousNext"
556
+ }[l]],
557
+ icon: ["icon"]
558
+ };
559
+ return et(f, On, t);
560
+ }, An = he("div", {
561
+ name: "MuiPaginationItem",
562
+ slot: "Root",
563
+ overridesResolver: pr
564
+ })(tt(({
565
+ theme: e
566
+ }) => ({
567
+ ...e.typography.body2,
568
+ borderRadius: 32 / 2,
569
+ textAlign: "center",
570
+ boxSizing: "border-box",
571
+ minWidth: 32,
572
+ padding: "0 6px",
573
+ margin: "0 3px",
574
+ color: (e.vars || e).palette.text.primary,
575
+ height: "auto",
576
+ [`&.${Q.disabled}`]: {
577
+ opacity: (e.vars || e).palette.action.disabledOpacity
578
+ },
579
+ variants: [{
580
+ props: {
581
+ size: "small"
582
+ },
583
+ style: {
584
+ minWidth: 26,
585
+ borderRadius: 26 / 2,
586
+ margin: "0 1px",
587
+ padding: "0 4px"
588
+ }
589
+ }, {
590
+ props: {
591
+ size: "large"
592
+ },
593
+ style: {
594
+ minWidth: 40,
595
+ borderRadius: 40 / 2,
596
+ padding: "0 10px",
597
+ fontSize: e.typography.pxToRem(15)
598
+ }
599
+ }]
600
+ }))), Nn = he(ln, {
601
+ name: "MuiPaginationItem",
602
+ slot: "Root",
603
+ overridesResolver: pr
604
+ })(tt(({
605
+ theme: e
606
+ }) => ({
607
+ ...e.typography.body2,
608
+ borderRadius: 32 / 2,
609
+ textAlign: "center",
610
+ boxSizing: "border-box",
611
+ minWidth: 32,
612
+ height: 32,
613
+ padding: "0 6px",
614
+ margin: "0 3px",
615
+ color: (e.vars || e).palette.text.primary,
616
+ [`&.${Q.focusVisible}`]: {
617
+ backgroundColor: (e.vars || e).palette.action.focus
618
+ },
619
+ [`&.${Q.disabled}`]: {
620
+ opacity: (e.vars || e).palette.action.disabledOpacity
621
+ },
622
+ transition: e.transitions.create(["color", "background-color"], {
623
+ duration: e.transitions.duration.short
624
+ }),
625
+ "&:hover": {
626
+ backgroundColor: (e.vars || e).palette.action.hover,
627
+ // Reset on touch devices, it doesn't add specificity
628
+ "@media (hover: none)": {
629
+ backgroundColor: "transparent"
630
+ }
631
+ },
632
+ [`&.${Q.selected}`]: {
633
+ backgroundColor: (e.vars || e).palette.action.selected,
634
+ "&:hover": {
635
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : we(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
636
+ // Reset on touch devices, it doesn't add specificity
637
+ "@media (hover: none)": {
638
+ backgroundColor: (e.vars || e).palette.action.selected
639
+ }
640
+ },
641
+ [`&.${Q.focusVisible}`]: {
642
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : we(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
643
+ },
644
+ [`&.${Q.disabled}`]: {
645
+ opacity: 1,
646
+ color: (e.vars || e).palette.action.disabled,
647
+ backgroundColor: (e.vars || e).palette.action.selected
648
+ }
649
+ },
650
+ variants: [{
651
+ props: {
652
+ size: "small"
653
+ },
654
+ style: {
655
+ minWidth: 26,
656
+ height: 26,
657
+ borderRadius: 26 / 2,
658
+ margin: "0 1px",
659
+ padding: "0 4px"
660
+ }
661
+ }, {
662
+ props: {
663
+ size: "large"
664
+ },
665
+ style: {
666
+ minWidth: 40,
667
+ height: 40,
668
+ borderRadius: 40 / 2,
669
+ padding: "0 10px",
670
+ fontSize: e.typography.pxToRem(15)
671
+ }
672
+ }, {
673
+ props: {
674
+ shape: "rounded"
675
+ },
676
+ style: {
677
+ borderRadius: (e.vars || e).shape.borderRadius
678
+ }
679
+ }, {
680
+ props: {
681
+ variant: "outlined"
682
+ },
683
+ style: {
684
+ border: e.vars ? `1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${e.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
685
+ [`&.${Q.selected}`]: {
686
+ [`&.${Q.disabled}`]: {
687
+ borderColor: (e.vars || e).palette.action.disabledBackground,
688
+ color: (e.vars || e).palette.action.disabled
689
+ }
690
+ }
691
+ }
692
+ }, {
693
+ props: {
694
+ variant: "text"
695
+ },
696
+ style: {
697
+ [`&.${Q.selected}`]: {
698
+ [`&.${Q.disabled}`]: {
699
+ color: (e.vars || e).palette.action.disabled
700
+ }
701
+ }
702
+ }
703
+ }, ...Object.entries(e.palette).filter(qt(["dark", "contrastText"])).map(([t]) => ({
704
+ props: {
705
+ variant: "text",
706
+ color: t
707
+ },
708
+ style: {
709
+ [`&.${Q.selected}`]: {
710
+ color: (e.vars || e).palette[t].contrastText,
711
+ backgroundColor: (e.vars || e).palette[t].main,
712
+ "&:hover": {
713
+ backgroundColor: (e.vars || e).palette[t].dark,
714
+ // Reset on touch devices, it doesn't add specificity
715
+ "@media (hover: none)": {
716
+ backgroundColor: (e.vars || e).palette[t].main
717
+ }
718
+ },
719
+ [`&.${Q.focusVisible}`]: {
720
+ backgroundColor: (e.vars || e).palette[t].dark
721
+ },
722
+ [`&.${Q.disabled}`]: {
723
+ color: (e.vars || e).palette.action.disabled
724
+ }
725
+ }
726
+ }
727
+ })), ...Object.entries(e.palette).filter(qt(["light"])).map(([t]) => ({
728
+ props: {
729
+ variant: "outlined",
730
+ color: t
731
+ },
732
+ style: {
733
+ [`&.${Q.selected}`]: {
734
+ color: (e.vars || e).palette[t].main,
735
+ border: `1px solid ${e.vars ? `rgba(${e.vars.palette[t].mainChannel} / 0.5)` : we(e.palette[t].main, 0.5)}`,
736
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})` : we(e.palette[t].main, e.palette.action.activatedOpacity),
737
+ "&:hover": {
738
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` : we(e.palette[t].main, e.palette.action.activatedOpacity + e.palette.action.focusOpacity),
739
+ // Reset on touch devices, it doesn't add specificity
740
+ "@media (hover: none)": {
741
+ backgroundColor: "transparent"
742
+ }
743
+ },
744
+ [`&.${Q.focusVisible}`]: {
745
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` : we(e.palette[t].main, e.palette.action.activatedOpacity + e.palette.action.focusOpacity)
746
+ }
747
+ }
748
+ }
749
+ }))]
750
+ }))), $n = he("div", {
751
+ name: "MuiPaginationItem",
752
+ slot: "Icon",
753
+ overridesResolver: (e, t) => t.icon
754
+ })(tt(({
755
+ theme: e
756
+ }) => ({
757
+ fontSize: e.typography.pxToRem(20),
758
+ margin: "0 -8px",
759
+ variants: [{
760
+ props: {
761
+ size: "small"
762
+ },
763
+ style: {
764
+ fontSize: e.typography.pxToRem(18)
765
+ }
766
+ }, {
767
+ props: {
768
+ size: "large"
769
+ },
770
+ style: {
771
+ fontSize: e.typography.pxToRem(22)
772
+ }
773
+ }]
774
+ }))), hr = /* @__PURE__ */ v.forwardRef(function(t, r) {
775
+ const n = Qe({
776
+ props: t,
777
+ name: "MuiPaginationItem"
778
+ }), {
779
+ className: o,
780
+ color: i = "standard",
781
+ component: a,
782
+ components: l = {},
783
+ disabled: d = !1,
784
+ page: f,
785
+ selected: m = !1,
786
+ shape: h = "circular",
787
+ size: y = "medium",
788
+ slots: g = {},
789
+ slotProps: b = {},
790
+ type: p = "page",
791
+ variant: s = "text",
792
+ ...w
793
+ } = n, u = {
794
+ ...n,
795
+ color: i,
796
+ disabled: d,
797
+ selected: m,
798
+ shape: h,
799
+ size: y,
800
+ type: p,
801
+ variant: s
802
+ }, R = hn(), O = Ln(u), x = {
803
+ slots: {
804
+ previous: g.previous ?? l.previous,
805
+ next: g.next ?? l.next,
806
+ first: g.first ?? l.first,
807
+ last: g.last ?? l.last
808
+ },
809
+ slotProps: b
810
+ }, [L, P] = We("previous", {
811
+ elementType: Tn,
812
+ externalForwardedProps: x,
813
+ ownerState: u
814
+ }), [T, _] = We("next", {
815
+ elementType: In,
816
+ externalForwardedProps: x,
817
+ ownerState: u
818
+ }), [M, F] = We("first", {
819
+ elementType: Pn,
820
+ externalForwardedProps: x,
821
+ ownerState: u
822
+ }), [Y, B] = We("last", {
823
+ elementType: Mn,
824
+ externalForwardedProps: x,
825
+ ownerState: u
826
+ }), $ = R ? {
827
+ previous: "next",
828
+ next: "previous",
829
+ first: "last",
830
+ last: "first"
831
+ }[p] : p, G = {
832
+ previous: L,
833
+ next: T,
834
+ first: M,
835
+ last: Y
836
+ }[$], k = {
837
+ previous: P,
838
+ next: _,
839
+ first: F,
840
+ last: B
841
+ }[$];
842
+ return p === "start-ellipsis" || p === "end-ellipsis" ? /* @__PURE__ */ j(An, {
843
+ ref: r,
844
+ ownerState: u,
845
+ className: _e(O.root, o),
846
+ children: "…"
847
+ }) : /* @__PURE__ */ $e(Nn, {
848
+ ref: r,
849
+ ownerState: u,
850
+ component: a,
851
+ disabled: d,
852
+ className: _e(O.root, o),
853
+ ...w,
854
+ children: [p === "page" && f, G ? /* @__PURE__ */ j($n, {
855
+ ...k,
856
+ className: O.icon,
857
+ as: G
858
+ }) : null]
859
+ });
860
+ });
861
+ process.env.NODE_ENV !== "production" && (hr.propTypes = {
862
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
863
+ // │ These PropTypes are generated from the TypeScript type definitions. │
864
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
865
+ // └─────────────────────────────────────────────────────────────────────┘
866
+ /**
867
+ * @ignore
868
+ */
869
+ children: c.node,
870
+ /**
871
+ * Override or extend the styles applied to the component.
872
+ */
873
+ classes: c.object,
874
+ /**
875
+ * @ignore
876
+ */
877
+ className: c.string,
878
+ /**
879
+ * The active color.
880
+ * It supports both default and custom theme colors, which can be added as shown in the
881
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
882
+ * @default 'standard'
883
+ */
884
+ color: c.oneOfType([c.oneOf(["primary", "secondary", "standard"]), c.string]),
885
+ /**
886
+ * The component used for the root node.
887
+ * Either a string to use a HTML element or a component.
888
+ */
889
+ component: c.elementType,
890
+ /**
891
+ * The components used for each slot inside.
892
+ *
893
+ * This prop is an alias for the `slots` prop.
894
+ * It's recommended to use the `slots` prop instead.
895
+ *
896
+ * @default {}
897
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
898
+ */
899
+ components: c.shape({
900
+ first: c.elementType,
901
+ last: c.elementType,
902
+ next: c.elementType,
903
+ previous: c.elementType
904
+ }),
905
+ /**
906
+ * If `true`, the component is disabled.
907
+ * @default false
908
+ */
909
+ disabled: c.bool,
910
+ /**
911
+ * The current page number.
912
+ */
913
+ page: c.node,
914
+ /**
915
+ * If `true` the pagination item is selected.
916
+ * @default false
917
+ */
918
+ selected: c.bool,
919
+ /**
920
+ * The shape of the pagination item.
921
+ * @default 'circular'
922
+ */
923
+ shape: c.oneOf(["circular", "rounded"]),
924
+ /**
925
+ * The size of the component.
926
+ * @default 'medium'
927
+ */
928
+ size: c.oneOfType([c.oneOf(["small", "medium", "large"]), c.string]),
929
+ /**
930
+ * The props used for each slot inside.
931
+ * @default {}
932
+ */
933
+ slotProps: c.shape({
934
+ first: c.oneOfType([c.func, c.object]),
935
+ last: c.oneOfType([c.func, c.object]),
936
+ next: c.oneOfType([c.func, c.object]),
937
+ previous: c.oneOfType([c.func, c.object])
938
+ }),
939
+ /**
940
+ * The components used for each slot inside.
941
+ * @default {}
942
+ */
943
+ slots: c.shape({
944
+ first: c.elementType,
945
+ last: c.elementType,
946
+ next: c.elementType,
947
+ previous: c.elementType
948
+ }),
949
+ /**
950
+ * The system prop that allows defining system overrides as well as additional CSS styles.
951
+ */
952
+ sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object]),
953
+ /**
954
+ * The type of pagination item.
955
+ * @default 'page'
956
+ */
957
+ type: c.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
958
+ /**
959
+ * The variant to use.
960
+ * @default 'text'
961
+ */
962
+ variant: c.oneOfType([c.oneOf(["outlined", "text"]), c.string])
963
+ });
964
+ const zn = (e) => {
965
+ const {
966
+ classes: t,
967
+ variant: r
968
+ } = e;
969
+ return et({
970
+ root: ["root", r],
971
+ ul: ["ul"]
972
+ }, _n, t);
973
+ }, Dn = he("nav", {
974
+ name: "MuiPagination",
975
+ slot: "Root",
976
+ overridesResolver: (e, t) => {
977
+ const {
978
+ ownerState: r
979
+ } = e;
980
+ return [t.root, t[r.variant]];
981
+ }
982
+ })({}), kn = he("ul", {
983
+ name: "MuiPagination",
984
+ slot: "Ul",
985
+ overridesResolver: (e, t) => t.ul
986
+ })({
987
+ display: "flex",
988
+ flexWrap: "wrap",
989
+ alignItems: "center",
990
+ padding: 0,
991
+ margin: 0,
992
+ listStyle: "none"
993
+ });
994
+ function jn(e, t, r) {
995
+ return e === "page" ? `${r ? "" : "Go to "}page ${t}` : `Go to ${e} page`;
996
+ }
997
+ const gt = /* @__PURE__ */ v.forwardRef(function(t, r) {
998
+ const n = Qe({
999
+ props: t,
1000
+ name: "MuiPagination"
1001
+ }), {
1002
+ boundaryCount: o = 1,
1003
+ className: i,
1004
+ color: a = "standard",
1005
+ count: l = 1,
1006
+ defaultPage: d = 1,
1007
+ disabled: f = !1,
1008
+ getItemAriaLabel: m = jn,
1009
+ hideNextButton: h = !1,
1010
+ hidePrevButton: y = !1,
1011
+ onChange: g,
1012
+ page: b,
1013
+ renderItem: p = (M) => /* @__PURE__ */ j(hr, {
1014
+ ...M
1015
+ }),
1016
+ shape: s = "circular",
1017
+ showFirstButton: w = !1,
1018
+ showLastButton: u = !1,
1019
+ siblingCount: R = 1,
1020
+ size: O = "medium",
1021
+ variant: x = "text",
1022
+ ...L
1023
+ } = n, {
1024
+ items: P
1025
+ } = Cn({
1026
+ ...n,
1027
+ componentName: "Pagination"
1028
+ }), T = {
1029
+ ...n,
1030
+ boundaryCount: o,
1031
+ color: a,
1032
+ count: l,
1033
+ defaultPage: d,
1034
+ disabled: f,
1035
+ getItemAriaLabel: m,
1036
+ hideNextButton: h,
1037
+ hidePrevButton: y,
1038
+ renderItem: p,
1039
+ shape: s,
1040
+ showFirstButton: w,
1041
+ showLastButton: u,
1042
+ siblingCount: R,
1043
+ size: O,
1044
+ variant: x
1045
+ }, _ = zn(T);
1046
+ return /* @__PURE__ */ j(Dn, {
1047
+ "aria-label": "pagination navigation",
1048
+ className: _e(_.root, i),
1049
+ ownerState: T,
1050
+ ref: r,
1051
+ ...L,
1052
+ children: /* @__PURE__ */ j(kn, {
1053
+ className: _.ul,
1054
+ ownerState: T,
1055
+ children: P.map((M, F) => /* @__PURE__ */ j("li", {
1056
+ children: p({
1057
+ ...M,
1058
+ color: a,
1059
+ "aria-label": m(M.type, M.page, M.selected),
1060
+ shape: s,
1061
+ size: O,
1062
+ variant: x
1063
+ })
1064
+ }, F))
1065
+ })
1066
+ });
1067
+ });
1068
+ process.env.NODE_ENV !== "production" && (gt.propTypes = {
1069
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1070
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1071
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1072
+ // └─────────────────────────────────────────────────────────────────────┘
1073
+ /**
1074
+ * Number of always visible pages at the beginning and end.
1075
+ * @default 1
1076
+ */
1077
+ boundaryCount: Ae,
1078
+ /**
1079
+ * Override or extend the styles applied to the component.
1080
+ */
1081
+ classes: c.object,
1082
+ /**
1083
+ * @ignore
1084
+ */
1085
+ className: c.string,
1086
+ /**
1087
+ * The active color.
1088
+ * It supports both default and custom theme colors, which can be added as shown in the
1089
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
1090
+ * @default 'standard'
1091
+ */
1092
+ color: c.oneOfType([c.oneOf(["primary", "secondary", "standard"]), c.string]),
1093
+ /**
1094
+ * The total number of pages.
1095
+ * @default 1
1096
+ */
1097
+ count: Ae,
1098
+ /**
1099
+ * The page selected by default when the component is uncontrolled.
1100
+ * @default 1
1101
+ */
1102
+ defaultPage: Ae,
1103
+ /**
1104
+ * If `true`, the component is disabled.
1105
+ * @default false
1106
+ */
1107
+ disabled: c.bool,
1108
+ /**
1109
+ * Accepts a function which returns a string value that provides a user-friendly name for the current page.
1110
+ * This is important for screen reader users.
1111
+ *
1112
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
1113
+ * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
1114
+ * @param {number | null} page The page number to format.
1115
+ * @param {boolean} selected If true, the current page is selected.
1116
+ * @returns {string}
1117
+ */
1118
+ getItemAriaLabel: c.func,
1119
+ /**
1120
+ * If `true`, hide the next-page button.
1121
+ * @default false
1122
+ */
1123
+ hideNextButton: c.bool,
1124
+ /**
1125
+ * If `true`, hide the previous-page button.
1126
+ * @default false
1127
+ */
1128
+ hidePrevButton: c.bool,
1129
+ /**
1130
+ * Callback fired when the page is changed.
1131
+ *
1132
+ * @param {React.ChangeEvent<unknown>} event The event source of the callback.
1133
+ * @param {number} page The page selected.
1134
+ */
1135
+ onChange: c.func,
1136
+ /**
1137
+ * The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
1138
+ */
1139
+ page: Ae,
1140
+ /**
1141
+ * Render the item.
1142
+ * @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
1143
+ * @returns {ReactNode}
1144
+ * @default (item) => <PaginationItem {...item} />
1145
+ */
1146
+ renderItem: c.func,
1147
+ /**
1148
+ * The shape of the pagination items.
1149
+ * @default 'circular'
1150
+ */
1151
+ shape: c.oneOf(["circular", "rounded"]),
1152
+ /**
1153
+ * If `true`, show the first-page button.
1154
+ * @default false
1155
+ */
1156
+ showFirstButton: c.bool,
1157
+ /**
1158
+ * If `true`, show the last-page button.
1159
+ * @default false
1160
+ */
1161
+ showLastButton: c.bool,
1162
+ /**
1163
+ * Number of always visible pages before and after the current page.
1164
+ * @default 1
1165
+ */
1166
+ siblingCount: Ae,
1167
+ /**
1168
+ * The size of the component.
1169
+ * @default 'medium'
1170
+ */
1171
+ size: c.oneOfType([c.oneOf(["small", "medium", "large"]), c.string]),
1172
+ /**
1173
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1174
+ */
1175
+ sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object]),
1176
+ /**
1177
+ * The variant to use.
1178
+ * @default 'text'
1179
+ */
1180
+ variant: c.oneOfType([c.oneOf(["outlined", "text"]), c.string])
1181
+ });
1182
+ function oe(e) {
1183
+ "@babel/helpers - typeof";
1184
+ return oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1185
+ return typeof t;
1186
+ } : function(t) {
1187
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1188
+ }, oe(e);
1189
+ }
1190
+ function Fn(e, t) {
1191
+ if (oe(e) != "object" || !e) return e;
1192
+ var r = e[Symbol.toPrimitive];
1193
+ if (r !== void 0) {
1194
+ var n = r.call(e, t || "default");
1195
+ if (oe(n) != "object") return n;
1196
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1197
+ }
1198
+ return (t === "string" ? String : Number)(e);
1199
+ }
1200
+ function mr(e) {
1201
+ var t = Fn(e, "string");
1202
+ return oe(t) == "symbol" ? t : t + "";
1203
+ }
1204
+ function ee(e, t, r) {
1205
+ return (t = mr(t)) in e ? Object.defineProperty(e, t, {
1206
+ value: r,
1207
+ enumerable: !0,
1208
+ configurable: !0,
1209
+ writable: !0
1210
+ }) : e[t] = r, e;
1211
+ }
1212
+ function Zt(e, t) {
1213
+ var r = Object.keys(e);
1214
+ if (Object.getOwnPropertySymbols) {
1215
+ var n = Object.getOwnPropertySymbols(e);
1216
+ t && (n = n.filter(function(o) {
1217
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
1218
+ })), r.push.apply(r, n);
1219
+ }
1220
+ return r;
1221
+ }
1222
+ function q(e) {
1223
+ for (var t = 1; t < arguments.length; t++) {
1224
+ var r = arguments[t] != null ? arguments[t] : {};
1225
+ t % 2 ? Zt(Object(r), !0).forEach(function(n) {
1226
+ ee(e, n, r[n]);
1227
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Zt(Object(r)).forEach(function(n) {
1228
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1229
+ });
1230
+ }
1231
+ return e;
1232
+ }
1233
+ function Hn(e) {
1234
+ if (Array.isArray(e)) return e;
1235
+ }
1236
+ function Vn(e, t) {
1237
+ var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1238
+ if (r != null) {
1239
+ var n, o, i, a, l = [], d = !0, f = !1;
1240
+ try {
1241
+ if (i = (r = r.call(e)).next, t === 0) {
1242
+ if (Object(r) !== r) return;
1243
+ d = !1;
1244
+ } else for (; !(d = (n = i.call(r)).done) && (l.push(n.value), l.length !== t); d = !0) ;
1245
+ } catch (m) {
1246
+ f = !0, o = m;
1247
+ } finally {
1248
+ try {
1249
+ if (!d && r.return != null && (a = r.return(), Object(a) !== a)) return;
1250
+ } finally {
1251
+ if (f) throw o;
1252
+ }
1253
+ }
1254
+ return l;
1255
+ }
1256
+ }
1257
+ function Jt(e, t) {
1258
+ (t == null || t > e.length) && (t = e.length);
1259
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1260
+ return n;
1261
+ }
1262
+ function Bn(e, t) {
1263
+ if (e) {
1264
+ if (typeof e == "string") return Jt(e, t);
1265
+ var r = {}.toString.call(e).slice(8, -1);
1266
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Jt(e, t) : void 0;
1267
+ }
1268
+ }
1269
+ function Wn() {
1270
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1271
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1272
+ }
1273
+ function K(e, t) {
1274
+ return Hn(e) || Vn(e, t) || Bn(e, t) || Wn();
1275
+ }
1276
+ function Yn(e, t) {
1277
+ if (e == null) return {};
1278
+ var r, n, o = un(e, t);
1279
+ if (Object.getOwnPropertySymbols) {
1280
+ var i = Object.getOwnPropertySymbols(e);
1281
+ for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
1282
+ }
1283
+ return o;
1284
+ }
1285
+ var gr = { exports: {} };
1286
+ /*!
1287
+ Copyright (c) 2018 Jed Watson.
1288
+ Licensed under the MIT License (MIT), see
1289
+ http://jedwatson.github.io/classnames
1290
+ */
1291
+ (function(e) {
1292
+ (function() {
1293
+ var t = {}.hasOwnProperty;
1294
+ function r() {
1295
+ for (var i = "", a = 0; a < arguments.length; a++) {
1296
+ var l = arguments[a];
1297
+ l && (i = o(i, n(l)));
1298
+ }
1299
+ return i;
1300
+ }
1301
+ function n(i) {
1302
+ if (typeof i == "string" || typeof i == "number")
1303
+ return i;
1304
+ if (typeof i != "object")
1305
+ return "";
1306
+ if (Array.isArray(i))
1307
+ return r.apply(null, i);
1308
+ if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
1309
+ return i.toString();
1310
+ var a = "";
1311
+ for (var l in i)
1312
+ t.call(i, l) && i[l] && (a = o(a, l));
1313
+ return a;
1314
+ }
1315
+ function o(i, a) {
1316
+ return a ? i ? i + " " + a : i + a : i;
1317
+ }
1318
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1319
+ })();
1320
+ })(gr);
1321
+ var Gn = gr.exports;
1322
+ const Xe = /* @__PURE__ */ an(Gn);
1323
+ var Un = Symbol.for("react.element"), Xn = Symbol.for("react.transitional.element"), Kn = Symbol.for("react.fragment");
1324
+ function br(e) {
1325
+ return (
1326
+ // Base object type
1327
+ e && oe(e) === "object" && // React Element type
1328
+ (e.$$typeof === Un || e.$$typeof === Xn) && // React Fragment type
1329
+ e.type === Kn
1330
+ );
1331
+ }
1332
+ function bt(e) {
1333
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [];
1334
+ return dr.Children.forEach(e, function(n) {
1335
+ n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(bt(n)) : br(n) && n.props ? r = r.concat(bt(n.props.children, t)) : r.push(n));
1336
+ }), r;
1337
+ }
1338
+ var yt = {}, Pt = [], qn = function(t) {
1339
+ Pt.push(t);
1340
+ };
1341
+ function St(e, t) {
1342
+ if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
1343
+ var r = Pt.reduce(function(n, o) {
1344
+ return o(n ?? "", "warning");
1345
+ }, t);
1346
+ r && console.error("Warning: ".concat(r));
1347
+ }
1348
+ }
1349
+ function Zn(e, t) {
1350
+ if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
1351
+ var r = Pt.reduce(function(n, o) {
1352
+ return o(n ?? "", "note");
1353
+ }, t);
1354
+ r && console.warn("Note: ".concat(r));
1355
+ }
1356
+ }
1357
+ function Jn() {
1358
+ yt = {};
1359
+ }
1360
+ function yr(e, t, r) {
1361
+ !t && !yt[r] && (e(!1, r), yt[r] = !0);
1362
+ }
1363
+ function nt(e, t) {
1364
+ yr(St, e, t);
1365
+ }
1366
+ function Qn(e, t) {
1367
+ yr(Zn, e, t);
1368
+ }
1369
+ nt.preMessage = qn;
1370
+ nt.resetWarned = Jn;
1371
+ nt.noteOnce = Qn;
1372
+ function Qt(e) {
1373
+ return e instanceof HTMLElement || e instanceof SVGElement;
1374
+ }
1375
+ function eo(e) {
1376
+ return e && oe(e) === "object" && Qt(e.nativeElement) ? e.nativeElement : Qt(e) ? e : null;
1377
+ }
1378
+ function Ue(e) {
1379
+ var t = eo(e);
1380
+ if (t)
1381
+ return t;
1382
+ if (e instanceof dr.Component) {
1383
+ var r;
1384
+ return (r = Gt.findDOMNode) === null || r === void 0 ? void 0 : r.call(Gt, e);
1385
+ }
1386
+ return null;
1387
+ }
1388
+ var Rt = { exports: {} }, A = {};
1389
+ /**
1390
+ * @license React
1391
+ * react-is.production.min.js
1392
+ *
1393
+ * Copyright (c) Facebook, Inc. and its affiliates.
1394
+ *
1395
+ * This source code is licensed under the MIT license found in the
1396
+ * LICENSE file in the root directory of this source tree.
1397
+ */
1398
+ var er;
1399
+ function to() {
1400
+ if (er) return A;
1401
+ er = 1;
1402
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), b;
1403
+ b = Symbol.for("react.module.reference");
1404
+ function p(s) {
1405
+ if (typeof s == "object" && s !== null) {
1406
+ var w = s.$$typeof;
1407
+ switch (w) {
1408
+ case e:
1409
+ switch (s = s.type, s) {
1410
+ case r:
1411
+ case o:
1412
+ case n:
1413
+ case f:
1414
+ case m:
1415
+ return s;
1416
+ default:
1417
+ switch (s = s && s.$$typeof, s) {
1418
+ case l:
1419
+ case a:
1420
+ case d:
1421
+ case y:
1422
+ case h:
1423
+ case i:
1424
+ return s;
1425
+ default:
1426
+ return w;
1427
+ }
1428
+ }
1429
+ case t:
1430
+ return w;
1431
+ }
1432
+ }
1433
+ }
1434
+ return A.ContextConsumer = a, A.ContextProvider = i, A.Element = e, A.ForwardRef = d, A.Fragment = r, A.Lazy = y, A.Memo = h, A.Portal = t, A.Profiler = o, A.StrictMode = n, A.Suspense = f, A.SuspenseList = m, A.isAsyncMode = function() {
1435
+ return !1;
1436
+ }, A.isConcurrentMode = function() {
1437
+ return !1;
1438
+ }, A.isContextConsumer = function(s) {
1439
+ return p(s) === a;
1440
+ }, A.isContextProvider = function(s) {
1441
+ return p(s) === i;
1442
+ }, A.isElement = function(s) {
1443
+ return typeof s == "object" && s !== null && s.$$typeof === e;
1444
+ }, A.isForwardRef = function(s) {
1445
+ return p(s) === d;
1446
+ }, A.isFragment = function(s) {
1447
+ return p(s) === r;
1448
+ }, A.isLazy = function(s) {
1449
+ return p(s) === y;
1450
+ }, A.isMemo = function(s) {
1451
+ return p(s) === h;
1452
+ }, A.isPortal = function(s) {
1453
+ return p(s) === t;
1454
+ }, A.isProfiler = function(s) {
1455
+ return p(s) === o;
1456
+ }, A.isStrictMode = function(s) {
1457
+ return p(s) === n;
1458
+ }, A.isSuspense = function(s) {
1459
+ return p(s) === f;
1460
+ }, A.isSuspenseList = function(s) {
1461
+ return p(s) === m;
1462
+ }, A.isValidElementType = function(s) {
1463
+ return typeof s == "string" || typeof s == "function" || s === r || s === o || s === n || s === f || s === m || s === g || typeof s == "object" && s !== null && (s.$$typeof === y || s.$$typeof === h || s.$$typeof === i || s.$$typeof === a || s.$$typeof === d || s.$$typeof === b || s.getModuleId !== void 0);
1464
+ }, A.typeOf = p, A;
1465
+ }
1466
+ var N = {};
1467
+ /**
1468
+ * @license React
1469
+ * react-is.development.js
1470
+ *
1471
+ * Copyright (c) Facebook, Inc. and its affiliates.
1472
+ *
1473
+ * This source code is licensed under the MIT license found in the
1474
+ * LICENSE file in the root directory of this source tree.
1475
+ */
1476
+ var tr;
1477
+ function ro() {
1478
+ return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
1479
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), b = !1, p = !1, s = !1, w = !1, u = !1, R;
1480
+ R = Symbol.for("react.module.reference");
1481
+ function O(S) {
1482
+ return !!(typeof S == "string" || typeof S == "function" || S === r || S === o || u || S === n || S === f || S === m || w || S === g || b || p || s || typeof S == "object" && S !== null && (S.$$typeof === y || S.$$typeof === h || S.$$typeof === i || S.$$typeof === a || S.$$typeof === d || // This needs to include all possible module reference object
1483
+ // types supported by any Flight configuration anywhere since
1484
+ // we don't know which Flight build this will end up being used
1485
+ // with.
1486
+ S.$$typeof === R || S.getModuleId !== void 0));
1487
+ }
1488
+ function x(S) {
1489
+ if (typeof S == "object" && S !== null) {
1490
+ var le = S.$$typeof;
1491
+ switch (le) {
1492
+ case e:
1493
+ var ue = S.type;
1494
+ switch (ue) {
1495
+ case r:
1496
+ case o:
1497
+ case n:
1498
+ case f:
1499
+ case m:
1500
+ return ue;
1501
+ default:
1502
+ var be = ue && ue.$$typeof;
1503
+ switch (be) {
1504
+ case l:
1505
+ case a:
1506
+ case d:
1507
+ case y:
1508
+ case h:
1509
+ case i:
1510
+ return be;
1511
+ default:
1512
+ return le;
1513
+ }
1514
+ }
1515
+ case t:
1516
+ return le;
1517
+ }
1518
+ }
1519
+ }
1520
+ var L = a, P = i, T = e, _ = d, M = r, F = y, Y = h, B = t, $ = o, G = n, k = f, ae = m, Z = !1, W = !1;
1521
+ function me(S) {
1522
+ return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
1523
+ }
1524
+ function H(S) {
1525
+ return W || (W = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
1526
+ }
1527
+ function se(S) {
1528
+ return x(S) === a;
1529
+ }
1530
+ function ve(S) {
1531
+ return x(S) === i;
1532
+ }
1533
+ function pe(S) {
1534
+ return typeof S == "object" && S !== null && S.$$typeof === e;
1535
+ }
1536
+ function Se(S) {
1537
+ return x(S) === d;
1538
+ }
1539
+ function ge(S) {
1540
+ return x(S) === r;
1541
+ }
1542
+ function U(S) {
1543
+ return x(S) === y;
1544
+ }
1545
+ function te(S) {
1546
+ return x(S) === h;
1547
+ }
1548
+ function ie(S) {
1549
+ return x(S) === t;
1550
+ }
1551
+ function X(S) {
1552
+ return x(S) === o;
1553
+ }
1554
+ function z(S) {
1555
+ return x(S) === n;
1556
+ }
1557
+ function re(S) {
1558
+ return x(S) === f;
1559
+ }
1560
+ function Re(S) {
1561
+ return x(S) === m;
1562
+ }
1563
+ N.ContextConsumer = L, N.ContextProvider = P, N.Element = T, N.ForwardRef = _, N.Fragment = M, N.Lazy = F, N.Memo = Y, N.Portal = B, N.Profiler = $, N.StrictMode = G, N.Suspense = k, N.SuspenseList = ae, N.isAsyncMode = me, N.isConcurrentMode = H, N.isContextConsumer = se, N.isContextProvider = ve, N.isElement = pe, N.isForwardRef = Se, N.isFragment = ge, N.isLazy = U, N.isMemo = te, N.isPortal = ie, N.isProfiler = X, N.isStrictMode = z, N.isSuspense = re, N.isSuspenseList = Re, N.isValidElementType = O, N.typeOf = x;
1564
+ }()), N;
1565
+ }
1566
+ process.env.NODE_ENV === "production" ? Rt.exports = to() : Rt.exports = ro();
1567
+ var ht = Rt.exports;
1568
+ function no(e, t, r) {
1569
+ var n = v.useRef({});
1570
+ return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
1571
+ }
1572
+ var oo = function(t, r) {
1573
+ typeof t == "function" ? t(r) : oe(t) === "object" && t && "current" in t && (t.current = r);
1574
+ }, io = function() {
1575
+ for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
1576
+ r[n] = arguments[n];
1577
+ var o = r.filter(Boolean);
1578
+ return o.length <= 1 ? o[0] : function(i) {
1579
+ r.forEach(function(a) {
1580
+ oo(a, i);
1581
+ });
1582
+ };
1583
+ }, ao = function() {
1584
+ for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
1585
+ r[n] = arguments[n];
1586
+ return no(function() {
1587
+ return io.apply(void 0, r);
1588
+ }, r, function(o, i) {
1589
+ return o.length !== i.length || o.every(function(a, l) {
1590
+ return a !== i[l];
1591
+ });
1592
+ });
1593
+ }, so = function(t) {
1594
+ var r, n;
1595
+ if (!t)
1596
+ return !1;
1597
+ if (Sr(t) && t.props.propertyIsEnumerable("ref"))
1598
+ return !0;
1599
+ var o = ht.isMemo(t) ? t.type.type : t.type;
1600
+ return !(typeof o == "function" && !((r = o.prototype) !== null && r !== void 0 && r.render) && o.$$typeof !== ht.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== ht.ForwardRef);
1601
+ };
1602
+ function Sr(e) {
1603
+ return /* @__PURE__ */ Qr(e) && !br(e);
1604
+ }
1605
+ var co = function(t) {
1606
+ if (t && Sr(t)) {
1607
+ var r = t;
1608
+ return r.props.propertyIsEnumerable("ref") ? r.props.ref : r.ref;
1609
+ }
1610
+ return null;
1611
+ }, Et = /* @__PURE__ */ v.createContext(null);
1612
+ function lo(e) {
1613
+ var t = e.children, r = e.onBatchResize, n = v.useRef(0), o = v.useRef([]), i = v.useContext(Et), a = v.useCallback(function(l, d, f) {
1614
+ n.current += 1;
1615
+ var m = n.current;
1616
+ o.current.push({
1617
+ size: l,
1618
+ element: d,
1619
+ data: f
1620
+ }), Promise.resolve().then(function() {
1621
+ m === n.current && (r == null || r(o.current), o.current = []);
1622
+ }), i == null || i(l, d, f);
1623
+ }, [r, i]);
1624
+ return /* @__PURE__ */ v.createElement(Et.Provider, {
1625
+ value: a
1626
+ }, t);
1627
+ }
1628
+ var Rr = function() {
1629
+ if (typeof Map < "u")
1630
+ return Map;
1631
+ function e(t, r) {
1632
+ var n = -1;
1633
+ return t.some(function(o, i) {
1634
+ return o[0] === r ? (n = i, !0) : !1;
1635
+ }), n;
1636
+ }
1637
+ return (
1638
+ /** @class */
1639
+ function() {
1640
+ function t() {
1641
+ this.__entries__ = [];
1642
+ }
1643
+ return Object.defineProperty(t.prototype, "size", {
1644
+ /**
1645
+ * @returns {boolean}
1646
+ */
1647
+ get: function() {
1648
+ return this.__entries__.length;
1649
+ },
1650
+ enumerable: !0,
1651
+ configurable: !0
1652
+ }), t.prototype.get = function(r) {
1653
+ var n = e(this.__entries__, r), o = this.__entries__[n];
1654
+ return o && o[1];
1655
+ }, t.prototype.set = function(r, n) {
1656
+ var o = e(this.__entries__, r);
1657
+ ~o ? this.__entries__[o][1] = n : this.__entries__.push([r, n]);
1658
+ }, t.prototype.delete = function(r) {
1659
+ var n = this.__entries__, o = e(n, r);
1660
+ ~o && n.splice(o, 1);
1661
+ }, t.prototype.has = function(r) {
1662
+ return !!~e(this.__entries__, r);
1663
+ }, t.prototype.clear = function() {
1664
+ this.__entries__.splice(0);
1665
+ }, t.prototype.forEach = function(r, n) {
1666
+ n === void 0 && (n = null);
1667
+ for (var o = 0, i = this.__entries__; o < i.length; o++) {
1668
+ var a = i[o];
1669
+ r.call(n, a[1], a[0]);
1670
+ }
1671
+ }, t;
1672
+ }()
1673
+ );
1674
+ }(), wt = typeof window < "u" && typeof document < "u" && window.document === document, Ke = function() {
1675
+ return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
1676
+ }(), uo = function() {
1677
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Ke) : function(e) {
1678
+ return setTimeout(function() {
1679
+ return e(Date.now());
1680
+ }, 1e3 / 60);
1681
+ };
1682
+ }(), fo = 2;
1683
+ function vo(e, t) {
1684
+ var r = !1, n = !1, o = 0;
1685
+ function i() {
1686
+ r && (r = !1, e()), n && l();
1687
+ }
1688
+ function a() {
1689
+ uo(i);
1690
+ }
1691
+ function l() {
1692
+ var d = Date.now();
1693
+ if (r) {
1694
+ if (d - o < fo)
1695
+ return;
1696
+ n = !0;
1697
+ } else
1698
+ r = !0, n = !1, setTimeout(a, t);
1699
+ o = d;
1700
+ }
1701
+ return l;
1702
+ }
1703
+ var po = 20, ho = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], mo = typeof MutationObserver < "u", go = (
1704
+ /** @class */
1705
+ function() {
1706
+ function e() {
1707
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = vo(this.refresh.bind(this), po);
1708
+ }
1709
+ return e.prototype.addObserver = function(t) {
1710
+ ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
1711
+ }, e.prototype.removeObserver = function(t) {
1712
+ var r = this.observers_, n = r.indexOf(t);
1713
+ ~n && r.splice(n, 1), !r.length && this.connected_ && this.disconnect_();
1714
+ }, e.prototype.refresh = function() {
1715
+ var t = this.updateObservers_();
1716
+ t && this.refresh();
1717
+ }, e.prototype.updateObservers_ = function() {
1718
+ var t = this.observers_.filter(function(r) {
1719
+ return r.gatherActive(), r.hasActive();
1720
+ });
1721
+ return t.forEach(function(r) {
1722
+ return r.broadcastActive();
1723
+ }), t.length > 0;
1724
+ }, e.prototype.connect_ = function() {
1725
+ !wt || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), mo ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
1726
+ attributes: !0,
1727
+ childList: !0,
1728
+ characterData: !0,
1729
+ subtree: !0
1730
+ })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
1731
+ }, e.prototype.disconnect_ = function() {
1732
+ !wt || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
1733
+ }, e.prototype.onTransitionEnd_ = function(t) {
1734
+ var r = t.propertyName, n = r === void 0 ? "" : r, o = ho.some(function(i) {
1735
+ return !!~n.indexOf(i);
1736
+ });
1737
+ o && this.refresh();
1738
+ }, e.getInstance = function() {
1739
+ return this.instance_ || (this.instance_ = new e()), this.instance_;
1740
+ }, e.instance_ = null, e;
1741
+ }()
1742
+ ), Er = function(e, t) {
1743
+ for (var r = 0, n = Object.keys(t); r < n.length; r++) {
1744
+ var o = n[r];
1745
+ Object.defineProperty(e, o, {
1746
+ value: t[o],
1747
+ enumerable: !1,
1748
+ writable: !1,
1749
+ configurable: !0
1750
+ });
1751
+ }
1752
+ return e;
1753
+ }, Ce = function(e) {
1754
+ var t = e && e.ownerDocument && e.ownerDocument.defaultView;
1755
+ return t || Ke;
1756
+ }, wr = ot(0, 0, 0, 0);
1757
+ function qe(e) {
1758
+ return parseFloat(e) || 0;
1759
+ }
1760
+ function rr(e) {
1761
+ for (var t = [], r = 1; r < arguments.length; r++)
1762
+ t[r - 1] = arguments[r];
1763
+ return t.reduce(function(n, o) {
1764
+ var i = e["border-" + o + "-width"];
1765
+ return n + qe(i);
1766
+ }, 0);
1767
+ }
1768
+ function bo(e) {
1769
+ for (var t = ["top", "right", "bottom", "left"], r = {}, n = 0, o = t; n < o.length; n++) {
1770
+ var i = o[n], a = e["padding-" + i];
1771
+ r[i] = qe(a);
1772
+ }
1773
+ return r;
1774
+ }
1775
+ function yo(e) {
1776
+ var t = e.getBBox();
1777
+ return ot(0, 0, t.width, t.height);
1778
+ }
1779
+ function So(e) {
1780
+ var t = e.clientWidth, r = e.clientHeight;
1781
+ if (!t && !r)
1782
+ return wr;
1783
+ var n = Ce(e).getComputedStyle(e), o = bo(n), i = o.left + o.right, a = o.top + o.bottom, l = qe(n.width), d = qe(n.height);
1784
+ if (n.boxSizing === "border-box" && (Math.round(l + i) !== t && (l -= rr(n, "left", "right") + i), Math.round(d + a) !== r && (d -= rr(n, "top", "bottom") + a)), !Eo(e)) {
1785
+ var f = Math.round(l + i) - t, m = Math.round(d + a) - r;
1786
+ Math.abs(f) !== 1 && (l -= f), Math.abs(m) !== 1 && (d -= m);
1787
+ }
1788
+ return ot(o.left, o.top, l, d);
1789
+ }
1790
+ var Ro = /* @__PURE__ */ function() {
1791
+ return typeof SVGGraphicsElement < "u" ? function(e) {
1792
+ return e instanceof Ce(e).SVGGraphicsElement;
1793
+ } : function(e) {
1794
+ return e instanceof Ce(e).SVGElement && typeof e.getBBox == "function";
1795
+ };
1796
+ }();
1797
+ function Eo(e) {
1798
+ return e === Ce(e).document.documentElement;
1799
+ }
1800
+ function wo(e) {
1801
+ return wt ? Ro(e) ? yo(e) : So(e) : wr;
1802
+ }
1803
+ function xo(e) {
1804
+ var t = e.x, r = e.y, n = e.width, o = e.height, i = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, a = Object.create(i.prototype);
1805
+ return Er(a, {
1806
+ x: t,
1807
+ y: r,
1808
+ width: n,
1809
+ height: o,
1810
+ top: r,
1811
+ right: t + n,
1812
+ bottom: o + r,
1813
+ left: t
1814
+ }), a;
1815
+ }
1816
+ function ot(e, t, r, n) {
1817
+ return { x: e, y: t, width: r, height: n };
1818
+ }
1819
+ var _o = (
1820
+ /** @class */
1821
+ function() {
1822
+ function e(t) {
1823
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = ot(0, 0, 0, 0), this.target = t;
1824
+ }
1825
+ return e.prototype.isActive = function() {
1826
+ var t = wo(this.target);
1827
+ return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
1828
+ }, e.prototype.broadcastRect = function() {
1829
+ var t = this.contentRect_;
1830
+ return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
1831
+ }, e;
1832
+ }()
1833
+ ), Co = (
1834
+ /** @class */
1835
+ /* @__PURE__ */ function() {
1836
+ function e(t, r) {
1837
+ var n = xo(r);
1838
+ Er(this, { target: t, contentRect: n });
1839
+ }
1840
+ return e;
1841
+ }()
1842
+ ), Oo = (
1843
+ /** @class */
1844
+ function() {
1845
+ function e(t, r, n) {
1846
+ if (this.activeObservations_ = [], this.observations_ = new Rr(), typeof t != "function")
1847
+ throw new TypeError("The callback provided as parameter 1 is not a function.");
1848
+ this.callback_ = t, this.controller_ = r, this.callbackCtx_ = n;
1849
+ }
1850
+ return e.prototype.observe = function(t) {
1851
+ if (!arguments.length)
1852
+ throw new TypeError("1 argument required, but only 0 present.");
1853
+ if (!(typeof Element > "u" || !(Element instanceof Object))) {
1854
+ if (!(t instanceof Ce(t).Element))
1855
+ throw new TypeError('parameter 1 is not of type "Element".');
1856
+ var r = this.observations_;
1857
+ r.has(t) || (r.set(t, new _o(t)), this.controller_.addObserver(this), this.controller_.refresh());
1858
+ }
1859
+ }, e.prototype.unobserve = function(t) {
1860
+ if (!arguments.length)
1861
+ throw new TypeError("1 argument required, but only 0 present.");
1862
+ if (!(typeof Element > "u" || !(Element instanceof Object))) {
1863
+ if (!(t instanceof Ce(t).Element))
1864
+ throw new TypeError('parameter 1 is not of type "Element".');
1865
+ var r = this.observations_;
1866
+ r.has(t) && (r.delete(t), r.size || this.controller_.removeObserver(this));
1867
+ }
1868
+ }, e.prototype.disconnect = function() {
1869
+ this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
1870
+ }, e.prototype.gatherActive = function() {
1871
+ var t = this;
1872
+ this.clearActive(), this.observations_.forEach(function(r) {
1873
+ r.isActive() && t.activeObservations_.push(r);
1874
+ });
1875
+ }, e.prototype.broadcastActive = function() {
1876
+ if (this.hasActive()) {
1877
+ var t = this.callbackCtx_, r = this.activeObservations_.map(function(n) {
1878
+ return new Co(n.target, n.broadcastRect());
1879
+ });
1880
+ this.callback_.call(t, r, t), this.clearActive();
1881
+ }
1882
+ }, e.prototype.clearActive = function() {
1883
+ this.activeObservations_.splice(0);
1884
+ }, e.prototype.hasActive = function() {
1885
+ return this.activeObservations_.length > 0;
1886
+ }, e;
1887
+ }()
1888
+ ), xr = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Rr(), _r = (
1889
+ /** @class */
1890
+ /* @__PURE__ */ function() {
1891
+ function e(t) {
1892
+ if (!(this instanceof e))
1893
+ throw new TypeError("Cannot call a class as a function.");
1894
+ if (!arguments.length)
1895
+ throw new TypeError("1 argument required, but only 0 present.");
1896
+ var r = go.getInstance(), n = new Oo(t, r, this);
1897
+ xr.set(this, n);
1898
+ }
1899
+ return e;
1900
+ }()
1901
+ );
1902
+ [
1903
+ "observe",
1904
+ "unobserve",
1905
+ "disconnect"
1906
+ ].forEach(function(e) {
1907
+ _r.prototype[e] = function() {
1908
+ var t;
1909
+ return (t = xr.get(this))[e].apply(t, arguments);
1910
+ };
1911
+ });
1912
+ var Po = function() {
1913
+ return typeof Ke.ResizeObserver < "u" ? Ke.ResizeObserver : _r;
1914
+ }(), de = /* @__PURE__ */ new Map();
1915
+ function Cr(e) {
1916
+ e.forEach(function(t) {
1917
+ var r, n = t.target;
1918
+ (r = de.get(n)) === null || r === void 0 || r.forEach(function(o) {
1919
+ return o(n);
1920
+ });
1921
+ });
1922
+ }
1923
+ var Or = new Po(Cr);
1924
+ process.env.NODE_ENV;
1925
+ process.env.NODE_ENV;
1926
+ function Mo(e, t) {
1927
+ de.has(e) || (de.set(e, /* @__PURE__ */ new Set()), Or.observe(e)), de.get(e).add(t);
1928
+ }
1929
+ function To(e, t) {
1930
+ de.has(e) && (de.get(e).delete(t), de.get(e).size || (Or.unobserve(e), de.delete(e)));
1931
+ }
1932
+ function Pr(e, t) {
1933
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1934
+ }
1935
+ function Io(e, t) {
1936
+ for (var r = 0; r < t.length; r++) {
1937
+ var n = t[r];
1938
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, mr(n.key), n);
1939
+ }
1940
+ }
1941
+ function Mr(e, t, r) {
1942
+ return t && Io(e.prototype, t), Object.defineProperty(e, "prototype", {
1943
+ writable: !1
1944
+ }), e;
1945
+ }
1946
+ function Lo(e, t) {
1947
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
1948
+ e.prototype = Object.create(t && t.prototype, {
1949
+ constructor: {
1950
+ value: e,
1951
+ writable: !0,
1952
+ configurable: !0
1953
+ }
1954
+ }), Object.defineProperty(e, "prototype", {
1955
+ writable: !1
1956
+ }), t && fn(e, t);
1957
+ }
1958
+ function Ze(e) {
1959
+ return Ze = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1960
+ return t.__proto__ || Object.getPrototypeOf(t);
1961
+ }, Ze(e);
1962
+ }
1963
+ function Tr() {
1964
+ try {
1965
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1966
+ }));
1967
+ } catch {
1968
+ }
1969
+ return (Tr = function() {
1970
+ return !!e;
1971
+ })();
1972
+ }
1973
+ function Ao(e, t) {
1974
+ if (t && (oe(t) == "object" || typeof t == "function")) return t;
1975
+ if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1976
+ return dn(e);
1977
+ }
1978
+ function No(e) {
1979
+ var t = Tr();
1980
+ return function() {
1981
+ var r, n = Ze(e);
1982
+ if (t) {
1983
+ var o = Ze(this).constructor;
1984
+ r = Reflect.construct(n, arguments, o);
1985
+ } else r = n.apply(this, arguments);
1986
+ return Ao(this, r);
1987
+ };
1988
+ }
1989
+ var $o = /* @__PURE__ */ function(e) {
1990
+ Lo(r, e);
1991
+ var t = No(r);
1992
+ function r() {
1993
+ return Pr(this, r), t.apply(this, arguments);
1994
+ }
1995
+ return Mr(r, [{
1996
+ key: "render",
1997
+ value: function() {
1998
+ return this.props.children;
1999
+ }
2000
+ }]), r;
2001
+ }(v.Component);
2002
+ function zo(e, t) {
2003
+ var r = e.children, n = e.disabled, o = v.useRef(null), i = v.useRef(null), a = v.useContext(Et), l = typeof r == "function", d = l ? r(o) : r, f = v.useRef({
2004
+ width: -1,
2005
+ height: -1,
2006
+ offsetWidth: -1,
2007
+ offsetHeight: -1
2008
+ }), m = !l && /* @__PURE__ */ v.isValidElement(d) && so(d), h = m ? co(d) : null, y = ao(h, o), g = function() {
2009
+ var w;
2010
+ return Ue(o.current) || // Support `nativeElement` format
2011
+ (o.current && oe(o.current) === "object" ? Ue((w = o.current) === null || w === void 0 ? void 0 : w.nativeElement) : null) || Ue(i.current);
2012
+ };
2013
+ v.useImperativeHandle(t, function() {
2014
+ return g();
2015
+ });
2016
+ var b = v.useRef(e);
2017
+ b.current = e;
2018
+ var p = v.useCallback(function(s) {
2019
+ var w = b.current, u = w.onResize, R = w.data, O = s.getBoundingClientRect(), x = O.width, L = O.height, P = s.offsetWidth, T = s.offsetHeight, _ = Math.floor(x), M = Math.floor(L);
2020
+ if (f.current.width !== _ || f.current.height !== M || f.current.offsetWidth !== P || f.current.offsetHeight !== T) {
2021
+ var F = {
2022
+ width: _,
2023
+ height: M,
2024
+ offsetWidth: P,
2025
+ offsetHeight: T
2026
+ };
2027
+ f.current = F;
2028
+ var Y = P === Math.round(x) ? x : P, B = T === Math.round(L) ? L : T, $ = q(q({}, F), {}, {
2029
+ offsetWidth: Y,
2030
+ offsetHeight: B
2031
+ });
2032
+ a == null || a($, s, R), u && Promise.resolve().then(function() {
2033
+ u($, s);
2034
+ });
2035
+ }
2036
+ }, []);
2037
+ return v.useEffect(function() {
2038
+ var s = g();
2039
+ return s && !n && Mo(s, p), function() {
2040
+ return To(s, p);
2041
+ };
2042
+ }, [o.current, n]), /* @__PURE__ */ v.createElement($o, {
2043
+ ref: i
2044
+ }, m ? /* @__PURE__ */ v.cloneElement(d, {
2045
+ ref: y
2046
+ }) : d);
2047
+ }
2048
+ var Ir = /* @__PURE__ */ v.forwardRef(zo);
2049
+ process.env.NODE_ENV !== "production" && (Ir.displayName = "SingleObserver");
2050
+ var Do = "rc-observer-key";
2051
+ function ko(e, t) {
2052
+ var r = e.children, n = typeof r == "function" ? [r] : bt(r);
2053
+ return process.env.NODE_ENV !== "production" && (n.length > 1 ? St(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : n.length === 0 && St(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), n.map(function(o, i) {
2054
+ var a = (o == null ? void 0 : o.key) || "".concat(Do, "-").concat(i);
2055
+ return /* @__PURE__ */ v.createElement(Ir, Ct({}, e, {
2056
+ key: a,
2057
+ ref: i === 0 ? t : void 0
2058
+ }), o);
2059
+ });
2060
+ }
2061
+ var it = /* @__PURE__ */ v.forwardRef(ko);
2062
+ process.env.NODE_ENV !== "production" && (it.displayName = "ResizeObserver");
2063
+ it.Collection = lo;
2064
+ function nr(e) {
2065
+ var t = v.useRef();
2066
+ t.current = e;
2067
+ var r = v.useCallback(function() {
2068
+ for (var n, o = arguments.length, i = new Array(o), a = 0; a < o; a++)
2069
+ i[a] = arguments[a];
2070
+ return (n = t.current) === null || n === void 0 ? void 0 : n.call.apply(n, [t].concat(i));
2071
+ }, []);
2072
+ return r;
2073
+ }
2074
+ function jo() {
2075
+ return !!(typeof window < "u" && window.document && window.document.createElement);
2076
+ }
2077
+ var or = process.env.NODE_ENV !== "test" && jo() ? v.useLayoutEffect : v.useEffect, Ne = function(t, r) {
2078
+ var n = v.useRef(!0);
2079
+ or(function() {
2080
+ return t(n.current);
2081
+ }, r), or(function() {
2082
+ return n.current = !1, function() {
2083
+ n.current = !0;
2084
+ };
2085
+ }, []);
2086
+ }, Lr = /* @__PURE__ */ v.forwardRef(function(e, t) {
2087
+ var r = e.height, n = e.offsetY, o = e.offsetX, i = e.children, a = e.prefixCls, l = e.onInnerResize, d = e.innerProps, f = e.rtl, m = e.extra, h = {}, y = {
2088
+ display: "flex",
2089
+ flexDirection: "column"
2090
+ };
2091
+ return n !== void 0 && (h = {
2092
+ height: r,
2093
+ position: "relative",
2094
+ overflow: "hidden"
2095
+ }, y = q(q({}, y), {}, ee(ee(ee(ee(ee({
2096
+ transform: "translateY(".concat(n, "px)")
2097
+ }, f ? "marginRight" : "marginLeft", -o), "position", "absolute"), "left", 0), "right", 0), "top", 0))), /* @__PURE__ */ v.createElement("div", {
2098
+ style: h
2099
+ }, /* @__PURE__ */ v.createElement(it, {
2100
+ onResize: function(b) {
2101
+ var p = b.offsetHeight;
2102
+ p && l && l();
2103
+ }
2104
+ }, /* @__PURE__ */ v.createElement("div", Ct({
2105
+ style: y,
2106
+ className: Xe(ee({}, "".concat(a, "-holder-inner"), a)),
2107
+ ref: t
2108
+ }, d), i, m)));
2109
+ });
2110
+ Lr.displayName = "Filler";
2111
+ function Fo(e) {
2112
+ var t = e.children, r = e.setRef, n = v.useCallback(function(o) {
2113
+ r(o);
2114
+ }, []);
2115
+ return /* @__PURE__ */ v.cloneElement(t, {
2116
+ ref: n
2117
+ });
2118
+ }
2119
+ function Ho(e, t, r, n, o, i, a, l) {
2120
+ var d = l.getKey;
2121
+ return e.slice(t, r + 1).map(function(f, m) {
2122
+ var h = t + m, y = a(f, h, {
2123
+ style: {
2124
+ width: n
2125
+ },
2126
+ offsetX: o
2127
+ }), g = d(f);
2128
+ return /* @__PURE__ */ v.createElement(Fo, {
2129
+ key: g,
2130
+ setRef: function(p) {
2131
+ return i(f, p);
2132
+ }
2133
+ }, y);
2134
+ });
2135
+ }
2136
+ function Vo(e, t, r) {
2137
+ var n = e.length, o = t.length, i, a;
2138
+ if (n === 0 && o === 0)
2139
+ return null;
2140
+ n < o ? (i = e, a = t) : (i = t, a = e);
2141
+ var l = {
2142
+ __EMPTY_ITEM__: !0
2143
+ };
2144
+ function d(b) {
2145
+ return b !== void 0 ? r(b) : l;
2146
+ }
2147
+ for (var f = null, m = Math.abs(n - o) !== 1, h = 0; h < a.length; h += 1) {
2148
+ var y = d(i[h]), g = d(a[h]);
2149
+ if (y !== g) {
2150
+ f = h, m = m || y !== d(a[h + 1]);
2151
+ break;
2152
+ }
2153
+ }
2154
+ return f === null ? null : {
2155
+ index: f,
2156
+ multiple: m
2157
+ };
2158
+ }
2159
+ function Bo(e, t, r) {
2160
+ var n = v.useState(e), o = K(n, 2), i = o[0], a = o[1], l = v.useState(null), d = K(l, 2), f = d[0], m = d[1];
2161
+ return v.useEffect(function() {
2162
+ var h = Vo(i || [], e || [], t);
2163
+ (h == null ? void 0 : h.index) !== void 0 && m(e[h.index]), a(e);
2164
+ }, [e]), [f];
2165
+ }
2166
+ var Ar = function(t) {
2167
+ return +setTimeout(t, 16);
2168
+ }, Nr = function(t) {
2169
+ return clearTimeout(t);
2170
+ };
2171
+ typeof window < "u" && "requestAnimationFrame" in window && (Ar = function(t) {
2172
+ return window.requestAnimationFrame(t);
2173
+ }, Nr = function(t) {
2174
+ return window.cancelAnimationFrame(t);
2175
+ });
2176
+ var ir = 0, at = /* @__PURE__ */ new Map();
2177
+ function $r(e) {
2178
+ at.delete(e);
2179
+ }
2180
+ var ne = function(t) {
2181
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
2182
+ ir += 1;
2183
+ var n = ir;
2184
+ function o(i) {
2185
+ if (i === 0)
2186
+ $r(n), t();
2187
+ else {
2188
+ var a = Ar(function() {
2189
+ o(i - 1);
2190
+ });
2191
+ at.set(n, a);
2192
+ }
2193
+ }
2194
+ return o(r), n;
2195
+ };
2196
+ ne.cancel = function(e) {
2197
+ var t = at.get(e);
2198
+ return $r(e), Nr(t);
2199
+ };
2200
+ process.env.NODE_ENV !== "production" && (ne.ids = function() {
2201
+ return at;
2202
+ });
2203
+ var ar = (typeof navigator > "u" ? "undefined" : oe(navigator)) === "object" && /Firefox/i.test(navigator.userAgent);
2204
+ const zr = function(e, t, r, n) {
2205
+ var o = D(!1), i = D(null);
2206
+ function a() {
2207
+ clearTimeout(i.current), o.current = !0, i.current = setTimeout(function() {
2208
+ o.current = !1;
2209
+ }, 50);
2210
+ }
2211
+ var l = D({
2212
+ top: e,
2213
+ bottom: t,
2214
+ left: r,
2215
+ right: n
2216
+ });
2217
+ return l.current.top = e, l.current.bottom = t, l.current.left = r, l.current.right = n, function(d, f) {
2218
+ var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, h = d ? (
2219
+ // Pass origin wheel when on the left
2220
+ f < 0 && l.current.left || // Pass origin wheel when on the right
2221
+ f > 0 && l.current.right
2222
+ ) : f < 0 && l.current.top || // Pass origin wheel when on the bottom
2223
+ f > 0 && l.current.bottom;
2224
+ return m && h ? (clearTimeout(i.current), o.current = !1) : (!h || o.current) && a(), !o.current && h;
2225
+ };
2226
+ };
2227
+ function Wo(e, t, r, n, o, i, a) {
2228
+ var l = D(0), d = D(null), f = D(null), m = D(!1), h = zr(t, r, n, o);
2229
+ function y(u, R) {
2230
+ if (ne.cancel(d.current), !h(!1, R)) {
2231
+ var O = u;
2232
+ if (!O._virtualHandled)
2233
+ O._virtualHandled = !0;
2234
+ else
2235
+ return;
2236
+ l.current += R, f.current = R, ar || O.preventDefault(), d.current = ne(function() {
2237
+ var x = m.current ? 10 : 1;
2238
+ a(l.current * x, !1), l.current = 0;
2239
+ });
2240
+ }
2241
+ }
2242
+ function g(u, R) {
2243
+ a(R, !0), ar || u.preventDefault();
2244
+ }
2245
+ var b = D(null), p = D(null);
2246
+ function s(u) {
2247
+ if (e) {
2248
+ ne.cancel(p.current), p.current = ne(function() {
2249
+ b.current = null;
2250
+ }, 2);
2251
+ var R = u.deltaX, O = u.deltaY, x = u.shiftKey, L = R, P = O;
2252
+ (b.current === "sx" || !b.current && x && O && !R) && (L = O, P = 0, b.current = "sx");
2253
+ var T = Math.abs(L), _ = Math.abs(P);
2254
+ b.current === null && (b.current = i && T > _ ? "x" : "y"), b.current === "y" ? y(u, P) : g(u, L);
2255
+ }
2256
+ }
2257
+ function w(u) {
2258
+ e && (m.current = u.detail === f.current);
2259
+ }
2260
+ return [s, w];
2261
+ }
2262
+ function Yo(e, t, r, n) {
2263
+ var o = v.useMemo(function() {
2264
+ return [/* @__PURE__ */ new Map(), []];
2265
+ }, [e, r.id, n]), i = K(o, 2), a = i[0], l = i[1], d = function(m) {
2266
+ var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m, y = a.get(m), g = a.get(h);
2267
+ if (y === void 0 || g === void 0)
2268
+ for (var b = e.length, p = l.length; p < b; p += 1) {
2269
+ var s, w = e[p], u = t(w);
2270
+ a.set(u, p);
2271
+ var R = (s = r.get(u)) !== null && s !== void 0 ? s : n;
2272
+ if (l[p] = (l[p - 1] || 0) + R, u === m && (y = p), u === h && (g = p), y !== void 0 && g !== void 0)
2273
+ break;
2274
+ }
2275
+ return {
2276
+ top: l[y - 1] || 0,
2277
+ bottom: l[g]
2278
+ };
2279
+ };
2280
+ return d;
2281
+ }
2282
+ var Go = /* @__PURE__ */ function() {
2283
+ function e() {
2284
+ Pr(this, e), ee(this, "maps", void 0), ee(this, "id", 0), this.maps = /* @__PURE__ */ Object.create(null);
2285
+ }
2286
+ return Mr(e, [{
2287
+ key: "set",
2288
+ value: function(r, n) {
2289
+ this.maps[r] = n, this.id += 1;
2290
+ }
2291
+ }, {
2292
+ key: "get",
2293
+ value: function(r) {
2294
+ return this.maps[r];
2295
+ }
2296
+ }]), e;
2297
+ }();
2298
+ function sr(e) {
2299
+ var t = parseFloat(e);
2300
+ return isNaN(t) ? 0 : t;
2301
+ }
2302
+ function Uo(e, t, r) {
2303
+ var n = v.useState(0), o = K(n, 2), i = o[0], a = o[1], l = D(/* @__PURE__ */ new Map()), d = D(new Go()), f = D();
2304
+ function m() {
2305
+ ne.cancel(f.current);
2306
+ }
2307
+ function h() {
2308
+ var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
2309
+ m();
2310
+ var b = function() {
2311
+ l.current.forEach(function(s, w) {
2312
+ if (s && s.offsetParent) {
2313
+ var u = Ue(s), R = u.offsetHeight, O = getComputedStyle(u), x = O.marginTop, L = O.marginBottom, P = sr(x), T = sr(L), _ = R + P + T;
2314
+ d.current.get(w) !== _ && d.current.set(w, _);
2315
+ }
2316
+ }), a(function(s) {
2317
+ return s + 1;
2318
+ });
2319
+ };
2320
+ g ? b() : f.current = ne(b);
2321
+ }
2322
+ function y(g, b) {
2323
+ var p = e(g);
2324
+ l.current.get(p), b ? (l.current.set(p, b), h()) : l.current.delete(p);
2325
+ }
2326
+ return en(function() {
2327
+ return m;
2328
+ }, []), [y, h, d.current, i];
2329
+ }
2330
+ var cr = 14 / 15;
2331
+ function Xo(e, t, r) {
2332
+ var n = D(!1), o = D(0), i = D(0), a = D(null), l = D(null), d, f = function(g) {
2333
+ if (n.current) {
2334
+ var b = Math.ceil(g.touches[0].pageX), p = Math.ceil(g.touches[0].pageY), s = o.current - b, w = i.current - p, u = Math.abs(s) > Math.abs(w);
2335
+ u ? o.current = b : i.current = p;
2336
+ var R = r(u, u ? s : w, !1, g);
2337
+ R && g.preventDefault(), clearInterval(l.current), R && (l.current = setInterval(function() {
2338
+ u ? s *= cr : w *= cr;
2339
+ var O = Math.floor(u ? s : w);
2340
+ (!r(u, O, !0) || Math.abs(O) <= 0.1) && clearInterval(l.current);
2341
+ }, 16));
2342
+ }
2343
+ }, m = function() {
2344
+ n.current = !1, d();
2345
+ }, h = function(g) {
2346
+ d(), g.touches.length === 1 && !n.current && (n.current = !0, o.current = Math.ceil(g.touches[0].pageX), i.current = Math.ceil(g.touches[0].pageY), a.current = g.target, a.current.addEventListener("touchmove", f, {
2347
+ passive: !1
2348
+ }), a.current.addEventListener("touchend", m, {
2349
+ passive: !0
2350
+ }));
2351
+ };
2352
+ d = function() {
2353
+ a.current && (a.current.removeEventListener("touchmove", f), a.current.removeEventListener("touchend", m));
2354
+ }, Ne(function() {
2355
+ return e && t.current.addEventListener("touchstart", h, {
2356
+ passive: !0
2357
+ }), function() {
2358
+ var y;
2359
+ (y = t.current) === null || y === void 0 || y.removeEventListener("touchstart", h), d(), clearInterval(l.current);
2360
+ };
2361
+ }, [e]);
2362
+ }
2363
+ function lr(e) {
2364
+ return Math.floor(Math.pow(e, 0.5));
2365
+ }
2366
+ function xt(e, t) {
2367
+ var r = "touches" in e ? e.touches[0] : e;
2368
+ return r[t ? "pageX" : "pageY"] - window[t ? "scrollX" : "scrollY"];
2369
+ }
2370
+ function Ko(e, t, r) {
2371
+ v.useEffect(function() {
2372
+ var n = t.current;
2373
+ if (e && n) {
2374
+ var o = !1, i, a, l = function() {
2375
+ ne.cancel(i);
2376
+ }, d = function y() {
2377
+ l(), i = ne(function() {
2378
+ r(a), y();
2379
+ });
2380
+ }, f = function(g) {
2381
+ var b = g;
2382
+ b._virtualHandled || (b._virtualHandled = !0, o = !0);
2383
+ }, m = function() {
2384
+ o = !1, l();
2385
+ }, h = function(g) {
2386
+ if (o) {
2387
+ var b = xt(g, !1), p = n.getBoundingClientRect(), s = p.top, w = p.bottom;
2388
+ if (b <= s) {
2389
+ var u = s - b;
2390
+ a = -lr(u), d();
2391
+ } else if (b >= w) {
2392
+ var R = b - w;
2393
+ a = lr(R), d();
2394
+ } else
2395
+ l();
2396
+ }
2397
+ };
2398
+ return n.addEventListener("mousedown", f), n.ownerDocument.addEventListener("mouseup", m), n.ownerDocument.addEventListener("mousemove", h), function() {
2399
+ n.removeEventListener("mousedown", f), n.ownerDocument.removeEventListener("mouseup", m), n.ownerDocument.removeEventListener("mousemove", h), l();
2400
+ };
2401
+ }
2402
+ }, [e]);
2403
+ }
2404
+ var ur = 10;
2405
+ function qo(e, t, r, n, o, i, a, l) {
2406
+ var d = v.useRef(), f = v.useState(null), m = K(f, 2), h = m[0], y = m[1];
2407
+ return Ne(function() {
2408
+ if (h && h.times < ur) {
2409
+ if (!e.current) {
2410
+ y(function(W) {
2411
+ return q({}, W);
2412
+ });
2413
+ return;
2414
+ }
2415
+ i();
2416
+ var g = h.targetAlign, b = h.originAlign, p = h.index, s = h.offset, w = e.current.clientHeight, u = !1, R = g, O = null;
2417
+ if (w) {
2418
+ for (var x = g || b, L = 0, P = 0, T = 0, _ = Math.min(t.length - 1, p), M = 0; M <= _; M += 1) {
2419
+ var F = o(t[M]);
2420
+ P = L;
2421
+ var Y = r.get(F);
2422
+ T = P + (Y === void 0 ? n : Y), L = T;
2423
+ }
2424
+ for (var B = x === "top" ? s : w - s, $ = _; $ >= 0; $ -= 1) {
2425
+ var G = o(t[$]), k = r.get(G);
2426
+ if (k === void 0) {
2427
+ u = !0;
2428
+ break;
2429
+ }
2430
+ if (B -= k, B <= 0)
2431
+ break;
2432
+ }
2433
+ switch (x) {
2434
+ case "top":
2435
+ O = P - s;
2436
+ break;
2437
+ case "bottom":
2438
+ O = T - w + s;
2439
+ break;
2440
+ default: {
2441
+ var ae = e.current.scrollTop, Z = ae + w;
2442
+ P < ae ? R = "top" : T > Z && (R = "bottom");
2443
+ }
2444
+ }
2445
+ O !== null && a(O), O !== h.lastTop && (u = !0);
2446
+ }
2447
+ u && y(q(q({}, h), {}, {
2448
+ times: h.times + 1,
2449
+ targetAlign: R,
2450
+ lastTop: O
2451
+ }));
2452
+ } else process.env.NODE_ENV !== "production" && (h == null ? void 0 : h.times) === ur && nt(!1, "Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.");
2453
+ }, [h, e.current]), function(g) {
2454
+ if (g == null) {
2455
+ l();
2456
+ return;
2457
+ }
2458
+ if (ne.cancel(d.current), typeof g == "number")
2459
+ a(g);
2460
+ else if (g && oe(g) === "object") {
2461
+ var b, p = g.align;
2462
+ "index" in g ? b = g.index : b = t.findIndex(function(u) {
2463
+ return o(u) === g.key;
2464
+ });
2465
+ var s = g.offset, w = s === void 0 ? 0 : s;
2466
+ y({
2467
+ times: 0,
2468
+ index: b,
2469
+ offset: w,
2470
+ originAlign: p
2471
+ });
2472
+ }
2473
+ };
2474
+ }
2475
+ var _t = /* @__PURE__ */ v.forwardRef(function(e, t) {
2476
+ var r = e.prefixCls, n = e.rtl, o = e.scrollOffset, i = e.scrollRange, a = e.onStartMove, l = e.onStopMove, d = e.onScroll, f = e.horizontal, m = e.spinSize, h = e.containerSize, y = e.style, g = e.thumbStyle, b = v.useState(!1), p = K(b, 2), s = p[0], w = p[1], u = v.useState(null), R = K(u, 2), O = R[0], x = R[1], L = v.useState(null), P = K(L, 2), T = P[0], _ = P[1], M = !n, F = v.useRef(), Y = v.useRef(), B = v.useState(!1), $ = K(B, 2), G = $[0], k = $[1], ae = v.useRef(), Z = function() {
2477
+ clearTimeout(ae.current), k(!0), ae.current = setTimeout(function() {
2478
+ k(!1);
2479
+ }, 3e3);
2480
+ }, W = i - h || 0, me = h - m || 0, H = v.useMemo(function() {
2481
+ if (o === 0 || W === 0)
2482
+ return 0;
2483
+ var X = o / W;
2484
+ return X * me;
2485
+ }, [o, W, me]), se = function(z) {
2486
+ z.stopPropagation(), z.preventDefault();
2487
+ }, ve = v.useRef({
2488
+ top: H,
2489
+ dragging: s,
2490
+ pageY: O,
2491
+ startTop: T
2492
+ });
2493
+ ve.current = {
2494
+ top: H,
2495
+ dragging: s,
2496
+ pageY: O,
2497
+ startTop: T
2498
+ };
2499
+ var pe = function(z) {
2500
+ w(!0), x(xt(z, f)), _(ve.current.top), a(), z.stopPropagation(), z.preventDefault();
2501
+ };
2502
+ v.useEffect(function() {
2503
+ var X = function(S) {
2504
+ S.preventDefault();
2505
+ }, z = F.current, re = Y.current;
2506
+ return z.addEventListener("touchstart", X, {
2507
+ passive: !1
2508
+ }), re.addEventListener("touchstart", pe, {
2509
+ passive: !1
2510
+ }), function() {
2511
+ z.removeEventListener("touchstart", X), re.removeEventListener("touchstart", pe);
2512
+ };
2513
+ }, []);
2514
+ var Se = v.useRef();
2515
+ Se.current = W;
2516
+ var ge = v.useRef();
2517
+ ge.current = me, v.useEffect(function() {
2518
+ if (s) {
2519
+ var X, z = function(S) {
2520
+ var le = ve.current, ue = le.dragging, be = le.pageY, De = le.startTop;
2521
+ ne.cancel(X);
2522
+ var ke = F.current.getBoundingClientRect(), ye = h / (f ? ke.width : ke.height);
2523
+ if (ue) {
2524
+ var Oe = (xt(S, f) - be) * ye, Pe = De;
2525
+ !M && f ? Pe -= Oe : Pe += Oe;
2526
+ var je = Se.current, Fe = ge.current, st = Fe ? Pe / Fe : 0, ce = Math.ceil(st * je);
2527
+ ce = Math.max(ce, 0), ce = Math.min(ce, je), X = ne(function() {
2528
+ d(ce, f);
2529
+ });
2530
+ }
2531
+ }, re = function() {
2532
+ w(!1), l();
2533
+ };
2534
+ return window.addEventListener("mousemove", z, {
2535
+ passive: !0
2536
+ }), window.addEventListener("touchmove", z, {
2537
+ passive: !0
2538
+ }), window.addEventListener("mouseup", re, {
2539
+ passive: !0
2540
+ }), window.addEventListener("touchend", re, {
2541
+ passive: !0
2542
+ }), function() {
2543
+ window.removeEventListener("mousemove", z), window.removeEventListener("touchmove", z), window.removeEventListener("mouseup", re), window.removeEventListener("touchend", re), ne.cancel(X);
2544
+ };
2545
+ }
2546
+ }, [s]), v.useEffect(function() {
2547
+ return Z(), function() {
2548
+ clearTimeout(ae.current);
2549
+ };
2550
+ }, [o]), v.useImperativeHandle(t, function() {
2551
+ return {
2552
+ delayHidden: Z
2553
+ };
2554
+ });
2555
+ var U = "".concat(r, "-scrollbar"), te = {
2556
+ position: "absolute",
2557
+ visibility: G ? null : "hidden"
2558
+ }, ie = {
2559
+ position: "absolute",
2560
+ background: "rgba(0, 0, 0, 0.5)",
2561
+ borderRadius: 99,
2562
+ cursor: "pointer",
2563
+ userSelect: "none"
2564
+ };
2565
+ return f ? (te.height = 8, te.left = 0, te.right = 0, te.bottom = 0, ie.height = "100%", ie.width = m, M ? ie.left = H : ie.right = H) : (te.width = 8, te.top = 0, te.bottom = 0, M ? te.right = 0 : te.left = 0, ie.width = "100%", ie.height = m, ie.top = H), /* @__PURE__ */ v.createElement("div", {
2566
+ ref: F,
2567
+ className: Xe(U, ee(ee(ee({}, "".concat(U, "-horizontal"), f), "".concat(U, "-vertical"), !f), "".concat(U, "-visible"), G)),
2568
+ style: q(q({}, te), y),
2569
+ onMouseDown: se,
2570
+ onMouseMove: Z
2571
+ }, /* @__PURE__ */ v.createElement("div", {
2572
+ ref: Y,
2573
+ className: Xe("".concat(U, "-thumb"), ee({}, "".concat(U, "-thumb-moving"), s)),
2574
+ style: q(q({}, ie), g),
2575
+ onMouseDown: pe
2576
+ }));
2577
+ });
2578
+ process.env.NODE_ENV !== "production" && (_t.displayName = "ScrollBar");
2579
+ var Zo = 20;
2580
+ function fr() {
2581
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = e / t * e;
2582
+ return isNaN(r) && (r = 0), r = Math.max(r, Zo), Math.floor(r);
2583
+ }
2584
+ var Jo = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles"], Qo = [], ei = {
2585
+ overflowY: "auto",
2586
+ overflowAnchor: "none"
2587
+ };
2588
+ function ti(e, t) {
2589
+ var r = e.prefixCls, n = r === void 0 ? "rc-virtual-list" : r, o = e.className, i = e.height, a = e.itemHeight, l = e.fullHeight, d = l === void 0 ? !0 : l, f = e.style, m = e.data, h = e.children, y = e.itemKey, g = e.virtual, b = e.direction, p = e.scrollWidth, s = e.component, w = s === void 0 ? "div" : s, u = e.onScroll, R = e.onVirtualScroll, O = e.onVisibleChange, x = e.innerProps, L = e.extraRender, P = e.styles, T = Yn(e, Jo), _ = v.useCallback(function(C) {
2590
+ return typeof y == "function" ? y(C) : C == null ? void 0 : C[y];
2591
+ }, [y]), M = Uo(_), F = K(M, 4), Y = F[0], B = F[1], $ = F[2], G = F[3], k = !!(g !== !1 && i && a), ae = v.useMemo(function() {
2592
+ return Object.values($.maps).reduce(function(C, E) {
2593
+ return C + E;
2594
+ }, 0);
2595
+ }, [$.id, $.maps]), Z = k && m && (Math.max(a * m.length, ae) > i || !!p), W = b === "rtl", me = Xe(n, ee({}, "".concat(n, "-rtl"), W), o), H = m || Qo, se = D(), ve = D(), pe = D(), Se = Ye(0), ge = K(Se, 2), U = ge[0], te = ge[1], ie = Ye(0), X = K(ie, 2), z = X[0], re = X[1], Re = Ye(!1), S = K(Re, 2), le = S[0], ue = S[1], be = function() {
2596
+ ue(!0);
2597
+ }, De = function() {
2598
+ ue(!1);
2599
+ }, ke = {
2600
+ getKey: _
2601
+ };
2602
+ function ye(C) {
2603
+ te(function(E) {
2604
+ var I;
2605
+ typeof C == "function" ? I = C(E) : I = C;
2606
+ var V = Br(I);
2607
+ return se.current.scrollTop = V, V;
2608
+ });
2609
+ }
2610
+ var Oe = D({
2611
+ start: 0,
2612
+ end: H.length
2613
+ }), Pe = D(), je = Bo(H, _), Fe = K(je, 1), st = Fe[0];
2614
+ Pe.current = st;
2615
+ var ce = v.useMemo(function() {
2616
+ if (!k)
2617
+ return {
2618
+ scrollHeight: void 0,
2619
+ start: 0,
2620
+ end: H.length - 1,
2621
+ offset: void 0
2622
+ };
2623
+ if (!Z) {
2624
+ var C;
2625
+ return {
2626
+ scrollHeight: ((C = ve.current) === null || C === void 0 ? void 0 : C.offsetHeight) || 0,
2627
+ start: 0,
2628
+ end: H.length - 1,
2629
+ offset: void 0
2630
+ };
2631
+ }
2632
+ for (var E = 0, I, V, J, Ht = H.length, Le = 0; Le < Ht; Le += 1) {
2633
+ var Zr = H[Le], Jr = _(Zr), Vt = $.get(Jr), pt = E + (Vt === void 0 ? a : Vt);
2634
+ pt >= U && I === void 0 && (I = Le, V = E), pt > U + i && J === void 0 && (J = Le), E = pt;
2635
+ }
2636
+ return I === void 0 && (I = 0, V = 0, J = Math.ceil(i / a)), J === void 0 && (J = H.length - 1), J = Math.min(J + 1, H.length - 1), {
2637
+ scrollHeight: E,
2638
+ start: I,
2639
+ end: J,
2640
+ offset: V
2641
+ };
2642
+ }, [Z, k, U, H, G, i]), Ee = ce.scrollHeight, Me = ce.start, Te = ce.end, Mt = ce.offset;
2643
+ Oe.current.start = Me, Oe.current.end = Te;
2644
+ var kr = v.useState({
2645
+ width: 0,
2646
+ height: i
2647
+ }), Tt = K(kr, 2), fe = Tt[0], jr = Tt[1], Fr = function(E) {
2648
+ jr({
2649
+ width: E.offsetWidth,
2650
+ height: E.offsetHeight
2651
+ });
2652
+ }, It = D(), Lt = D(), Hr = v.useMemo(function() {
2653
+ return fr(fe.width, p);
2654
+ }, [fe.width, p]), Vr = v.useMemo(function() {
2655
+ return fr(fe.height, Ee);
2656
+ }, [fe.height, Ee]), ct = Ee - i, lt = D(ct);
2657
+ lt.current = ct;
2658
+ function Br(C) {
2659
+ var E = C;
2660
+ return Number.isNaN(lt.current) || (E = Math.min(E, lt.current)), E = Math.max(E, 0), E;
2661
+ }
2662
+ var He = U <= 0, Ve = U >= ct, At = z <= 0, Nt = z >= p, Wr = zr(He, Ve, At, Nt), ut = function() {
2663
+ return {
2664
+ x: W ? -z : z,
2665
+ y: U
2666
+ };
2667
+ }, ft = D(ut()), Be = nr(function(C) {
2668
+ if (R) {
2669
+ var E = q(q({}, ut()), C);
2670
+ (ft.current.x !== E.x || ft.current.y !== E.y) && (R(E), ft.current = E);
2671
+ }
2672
+ });
2673
+ function $t(C, E) {
2674
+ var I = C;
2675
+ E ? (Ut.flushSync(function() {
2676
+ re(I);
2677
+ }), Be()) : ye(I);
2678
+ }
2679
+ function Yr(C) {
2680
+ var E = C.currentTarget.scrollTop;
2681
+ E !== U && ye(E), u == null || u(C), Be();
2682
+ }
2683
+ var dt = function(E) {
2684
+ var I = E, V = p ? p - fe.width : 0;
2685
+ return I = Math.max(I, 0), I = Math.min(I, V), I;
2686
+ }, Gr = nr(function(C, E) {
2687
+ E ? (Ut.flushSync(function() {
2688
+ re(function(I) {
2689
+ var V = I + (W ? -C : C);
2690
+ return dt(V);
2691
+ });
2692
+ }), Be()) : ye(function(I) {
2693
+ var V = I + C;
2694
+ return V;
2695
+ });
2696
+ }), Ur = Wo(k, He, Ve, At, Nt, !!p, Gr), zt = K(Ur, 2), vt = zt[0], Dt = zt[1];
2697
+ Xo(k, se, function(C, E, I, V) {
2698
+ var J = V;
2699
+ return Wr(C, E, I) ? !1 : !J || !J._virtualHandled ? (J && (J._virtualHandled = !0), vt({
2700
+ preventDefault: function() {
2701
+ },
2702
+ deltaX: C ? E : 0,
2703
+ deltaY: C ? 0 : E
2704
+ }), !0) : !1;
2705
+ }), Ko(Z, se, function(C) {
2706
+ ye(function(E) {
2707
+ return E + C;
2708
+ });
2709
+ }), Ne(function() {
2710
+ function C(I) {
2711
+ var V = He && I.detail < 0, J = Ve && I.detail > 0;
2712
+ k && !V && !J && I.preventDefault();
2713
+ }
2714
+ var E = se.current;
2715
+ return E.addEventListener("wheel", vt, {
2716
+ passive: !1
2717
+ }), E.addEventListener("DOMMouseScroll", Dt, {
2718
+ passive: !0
2719
+ }), E.addEventListener("MozMousePixelScroll", C, {
2720
+ passive: !1
2721
+ }), function() {
2722
+ E.removeEventListener("wheel", vt), E.removeEventListener("DOMMouseScroll", Dt), E.removeEventListener("MozMousePixelScroll", C);
2723
+ };
2724
+ }, [k, He, Ve]), Ne(function() {
2725
+ if (p) {
2726
+ var C = dt(z);
2727
+ re(C), Be({
2728
+ x: C
2729
+ });
2730
+ }
2731
+ }, [fe.width, p]);
2732
+ var kt = function() {
2733
+ var E, I;
2734
+ (E = It.current) === null || E === void 0 || E.delayHidden(), (I = Lt.current) === null || I === void 0 || I.delayHidden();
2735
+ }, jt = qo(se, H, $, a, _, function() {
2736
+ return B(!0);
2737
+ }, ye, kt);
2738
+ v.useImperativeHandle(t, function() {
2739
+ return {
2740
+ nativeElement: pe.current,
2741
+ getScrollInfo: ut,
2742
+ scrollTo: function(E) {
2743
+ function I(V) {
2744
+ return V && oe(V) === "object" && ("left" in V || "top" in V);
2745
+ }
2746
+ I(E) ? (E.left !== void 0 && re(dt(E.left)), jt(E.top)) : jt(E);
2747
+ }
2748
+ };
2749
+ }), Ne(function() {
2750
+ if (O) {
2751
+ var C = H.slice(Me, Te + 1);
2752
+ O(C, H);
2753
+ }
2754
+ }, [Me, Te, H]);
2755
+ var Xr = Yo(H, _, $, a), Kr = L == null ? void 0 : L({
2756
+ start: Me,
2757
+ end: Te,
2758
+ virtual: Z,
2759
+ offsetX: z,
2760
+ offsetY: Mt,
2761
+ rtl: W,
2762
+ getSize: Xr
2763
+ }), qr = Ho(H, Me, Te, p, z, Y, h, ke), Ie = null;
2764
+ i && (Ie = q(ee({}, d ? "height" : "maxHeight", i), ei), k && (Ie.overflowY = "hidden", p && (Ie.overflowX = "hidden"), le && (Ie.pointerEvents = "none")));
2765
+ var Ft = {};
2766
+ return W && (Ft.dir = "rtl"), /* @__PURE__ */ v.createElement("div", Ct({
2767
+ ref: pe,
2768
+ style: q(q({}, f), {}, {
2769
+ position: "relative"
2770
+ }),
2771
+ className: me
2772
+ }, Ft, T), /* @__PURE__ */ v.createElement(it, {
2773
+ onResize: Fr
2774
+ }, /* @__PURE__ */ v.createElement(w, {
2775
+ className: "".concat(n, "-holder"),
2776
+ style: Ie,
2777
+ ref: se,
2778
+ onScroll: Yr,
2779
+ onMouseEnter: kt
2780
+ }, /* @__PURE__ */ v.createElement(Lr, {
2781
+ prefixCls: n,
2782
+ height: Ee,
2783
+ offsetX: z,
2784
+ offsetY: Mt,
2785
+ scrollWidth: p,
2786
+ onInnerResize: B,
2787
+ ref: ve,
2788
+ innerProps: x,
2789
+ rtl: W,
2790
+ extra: Kr
2791
+ }, qr))), Z && Ee > i && /* @__PURE__ */ v.createElement(_t, {
2792
+ ref: It,
2793
+ prefixCls: n,
2794
+ scrollOffset: U,
2795
+ scrollRange: Ee,
2796
+ rtl: W,
2797
+ onScroll: $t,
2798
+ onStartMove: be,
2799
+ onStopMove: De,
2800
+ spinSize: Vr,
2801
+ containerSize: fe.height,
2802
+ style: P == null ? void 0 : P.verticalScrollBar,
2803
+ thumbStyle: P == null ? void 0 : P.verticalScrollBarThumb
2804
+ }), Z && p > fe.width && /* @__PURE__ */ v.createElement(_t, {
2805
+ ref: Lt,
2806
+ prefixCls: n,
2807
+ scrollOffset: z,
2808
+ scrollRange: p,
2809
+ rtl: W,
2810
+ onScroll: $t,
2811
+ onStartMove: be,
2812
+ onStopMove: De,
2813
+ spinSize: Hr,
2814
+ containerSize: fe.width,
2815
+ horizontal: !0,
2816
+ style: P == null ? void 0 : P.horizontalScrollBar,
2817
+ thumbStyle: P == null ? void 0 : P.horizontalScrollBarThumb
2818
+ }));
2819
+ }
2820
+ var Dr = /* @__PURE__ */ v.forwardRef(ti);
2821
+ Dr.displayName = "List";
2822
+ const yi = (e) => {
2823
+ var y, g, b, p, s, w;
2824
+ const [t, r] = Ye(1), n = tn(nn);
2825
+ if (!n)
2826
+ return null;
2827
+ const o = (u) => e.filter === Yt.ALL || !e.filter ? u : e.filter === Yt.UNARCHIVED ? u.filter((R) => !R.archived) : u.filter(e.filter);
2828
+ if (n.notifications === void 0) return null;
2829
+ const a = o(n.notifications).sort((u, R) => new Date(u.date).getTime() - new Date(R.date).getTime()), l = {}, d = new rn();
2830
+ a.forEach((u) => {
2831
+ var R, O;
2832
+ if ((O = (R = u.deliveryOptions) == null ? void 0 : R.instant) != null && O.batching) {
2833
+ const x = u.deliveryOptions.instant.batchingKey, L = x ? d.parseAndRenderSync(`{{${x}}}`, u) : "", P = `${u.notificationId}-${L}`;
2834
+ l[P] ? l[P].push(u) : l[P] = [u];
2835
+ } else {
2836
+ const x = u.id;
2837
+ l[x] = [u];
2838
+ }
2839
+ });
2840
+ const f = Object.values(l).sort(
2841
+ (u, R) => new Date(R[R.length - 1].date).getTime() - new Date(u[u.length - 1].date).getTime()
2842
+ ), m = e.empty ?? on, h = (u, R) => {
2843
+ R >= Math.floor(n.notifications.length / e.pageSize) && n.loadNotifications(), r(R);
2844
+ };
2845
+ return /* @__PURE__ */ j("div", { children: e.pagination === "INFINITE_SCROLL" ? /* @__PURE__ */ $e(
2846
+ Kt,
2847
+ {
2848
+ subheader: /* @__PURE__ */ j(
2849
+ Bt,
2850
+ {
2851
+ title: (y = e.header) == null ? void 0 : y.title,
2852
+ button1ClickHandler: (g = e.header) == null ? void 0 : g.button1ClickHandler,
2853
+ button2ClickHandler: (b = e.header) == null ? void 0 : b.button2ClickHandler
2854
+ }
2855
+ ),
2856
+ children: [
2857
+ f.length === 0 && m,
2858
+ /* @__PURE__ */ j(
2859
+ Dr,
2860
+ {
2861
+ data: f,
2862
+ height: e.maxHeight,
2863
+ itemHeight: 47,
2864
+ itemKey: (u) => u[0].id,
2865
+ onScroll: (u) => {
2866
+ Math.abs(
2867
+ u.currentTarget.scrollHeight - u.currentTarget.scrollTop - e.maxHeight
2868
+ ) <= 1 && n.loadNotifications();
2869
+ },
2870
+ children: (u) => /* @__PURE__ */ j(mt, { style: { padding: 0 }, children: /* @__PURE__ */ j(
2871
+ Wt,
2872
+ {
2873
+ markAsArchived: n.markAsArchived,
2874
+ notifications: u,
2875
+ markAsClicked: n.markAsClicked,
2876
+ renderer: e.notificationRenderer,
2877
+ imageShape: e.imageShape
2878
+ }
2879
+ ) }, u[0].id)
2880
+ }
2881
+ )
2882
+ ]
2883
+ }
2884
+ ) : /* @__PURE__ */ $e(
2885
+ Kt,
2886
+ {
2887
+ subheader: /* @__PURE__ */ j(
2888
+ Bt,
2889
+ {
2890
+ title: (p = e.header) == null ? void 0 : p.title,
2891
+ button1ClickHandler: (s = e.header) == null ? void 0 : s.button1ClickHandler,
2892
+ button2ClickHandler: (w = e.header) == null ? void 0 : w.button2ClickHandler
2893
+ }
2894
+ ),
2895
+ children: [
2896
+ e.pagePosition === "top" && f.length > 0 && /* @__PURE__ */ j(
2897
+ gt,
2898
+ {
2899
+ count: Math.ceil(f.length / e.pageSize),
2900
+ page: t,
2901
+ onChange: h
2902
+ }
2903
+ ),
2904
+ f.filter((u, R) => e.pagination === "PAGINATED" ? R >= (t - 1) * e.pageSize && R < t * e.pageSize : !0).map((u) => /* @__PURE__ */ j(mt, { style: { padding: 0 }, children: /* @__PURE__ */ j(
2905
+ Wt,
2906
+ {
2907
+ markAsArchived: n.markAsArchived,
2908
+ notifications: u,
2909
+ markAsClicked: n.markAsClicked,
2910
+ renderer: e.notificationRenderer,
2911
+ imageShape: e.imageShape
2912
+ }
2913
+ ) }, u[0].id)),
2914
+ e.pagePosition === "bottom" && f.length > 0 && /* @__PURE__ */ j(
2915
+ gt,
2916
+ {
2917
+ count: Math.ceil(f.length / e.pageSize),
2918
+ page: t,
2919
+ onChange: h
2920
+ }
2921
+ ),
2922
+ f.length === 0 && m
2923
+ ]
2924
+ }
2925
+ ) });
2926
+ };
9
2927
  export {
10
- b as Inbox
2928
+ yi as Inbox
11
2929
  };