react-shadcn-table 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +219 -219
- package/dist/index.cjs +2 -2
- package/dist/index.js +21 -18
- package/package.json +94 -94
package/README.md
CHANGED
|
@@ -1,219 +1,219 @@
|
|
|
1
|
-
# react-shadcn-table
|
|
2
|
-
|
|
3
|
-
A feature-rich, headless-powered data grid for React — built on [TanStack Table v9](https://tanstack.com/table) and [shadcn/ui](https://ui.shadcn.com/). Sorting, filtering, pagination, row selection, column/row pinning, resizing, drag-and-drop column ordering, expandable rows, and split (frozen) columns — all out of the box.
|
|
4
|
-
|
|
5
|
-
**Live Demo:** [https://react-shadcn-table.jsdevs.xyz/](https://react-shadcn-table.jsdevs.xyz/)
|
|
6
|
-
|
|
7
|
-
## Features
|
|
8
|
-
|
|
9
|
-
- Global search + per-column filtering (text, range)
|
|
10
|
-
- Multi-column sorting
|
|
11
|
-
- Client-side & manual (server-side) pagination
|
|
12
|
-
- Row selection with checkboxes
|
|
13
|
-
- Column pinning (left / right) and row pinning (top / bottom)
|
|
14
|
-
- Resizable & drag-to-reorder columns (`@dnd-kit`)
|
|
15
|
-
- Split view for frozen left/right columns
|
|
16
|
-
- Expandable rows with custom sub-components
|
|
17
|
-
- Cell selection and cell spanning support
|
|
18
|
-
- Persists per-grid layout (column order, sizing, visibility, pinning) via a storage key
|
|
19
|
-
- Built-in loading, error, and empty states
|
|
20
|
-
- Fully styled with Tailwind CSS + shadcn/ui — themeable out of the box
|
|
21
|
-
- Export to Excel and PDF (`xlsx`, `jspdf`)
|
|
22
|
-
- Bring your own toolbar actions via `topRightSlot`
|
|
23
|
-
|
|
24
|
-
## Installation
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
npm install react-shadcn-table
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Peer Dependencies
|
|
31
|
-
|
|
32
|
-
Make sure the following are installed in your project:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
npm install react react-dom
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Tailwind CSS must also be configured in your project, since the grid ships unstyled utility classes rather than a separate CSS bundle.
|
|
39
|
-
|
|
40
|
-
## Quick Start
|
|
41
|
-
|
|
42
|
-
```tsx
|
|
43
|
-
import { useMemo } from 'react';
|
|
44
|
-
import {
|
|
45
|
-
Grid,
|
|
46
|
-
useGridState,
|
|
47
|
-
type GridFeatures,
|
|
48
|
-
type ColumnDef,
|
|
49
|
-
} from 'react-shadcn-table';
|
|
50
|
-
|
|
51
|
-
interface User {
|
|
52
|
-
id: string;
|
|
53
|
-
name: string;
|
|
54
|
-
email: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const columns = useMemo<ColumnDef<GridFeatures, User, unknown>[]>(
|
|
58
|
-
() => [
|
|
59
|
-
{ id: 'id', accessorKey: 'id', header: () => 'ID' },
|
|
60
|
-
{ id: 'name', accessorKey: 'name', header: () => 'Name' },
|
|
61
|
-
{ id: 'email', accessorKey: 'email', header: () => 'Email' },
|
|
62
|
-
],
|
|
63
|
-
[],
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
const App = () => {
|
|
67
|
-
const { state, handlers } = useGridState();
|
|
68
|
-
|
|
69
|
-
return (
|
|
70
|
-
<Grid
|
|
71
|
-
payload={{ data: users, total: users.length }}
|
|
72
|
-
columns={columns}
|
|
73
|
-
state={state}
|
|
74
|
-
{...handlers}
|
|
75
|
-
/>
|
|
76
|
-
);
|
|
77
|
-
};
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Server-Side (Manual) Pagination, Sorting & Filtering
|
|
81
|
-
|
|
82
|
-
```tsx
|
|
83
|
-
const { state, handlers, rowSelection } = useGridState();
|
|
84
|
-
|
|
85
|
-
const { data, isLoading, isError, refetch, isFetching } = useUsersQuery({
|
|
86
|
-
queryString: URLSearch(state),
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
<Grid
|
|
90
|
-
payload={{ data: data?.rows ?? [], total: data?.total ?? 0 }}
|
|
91
|
-
columns={columns}
|
|
92
|
-
manualPagination
|
|
93
|
-
manualFiltering
|
|
94
|
-
manualSorting
|
|
95
|
-
isLoading={isLoading}
|
|
96
|
-
isError={isError}
|
|
97
|
-
isFetching={isFetching}
|
|
98
|
-
refetch={refetch}
|
|
99
|
-
state={state}
|
|
100
|
-
{...handlers}
|
|
101
|
-
height="55vh"
|
|
102
|
-
/>;
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
## Toolbar Actions
|
|
106
|
-
|
|
107
|
-
Add custom action buttons to the toolbar via `topRightSlot`:
|
|
108
|
-
|
|
109
|
-
```tsx
|
|
110
|
-
import { Plus, RefreshCw } from 'lucide-react';
|
|
111
|
-
import { Button } from '@/components/ui/button';
|
|
112
|
-
|
|
113
|
-
<Grid
|
|
114
|
-
columns={columns}
|
|
115
|
-
payload={{ data, total }}
|
|
116
|
-
state={state}
|
|
117
|
-
{...handlers}
|
|
118
|
-
topRightSlot={
|
|
119
|
-
<div className="flex items-center gap-2">
|
|
120
|
-
<Button variant="ghost" size="icon" onClick={refetch}>
|
|
121
|
-
<RefreshCw className="size-4" />
|
|
122
|
-
</Button>
|
|
123
|
-
<Button variant="default" size="icon" onClick={handleAdd}>
|
|
124
|
-
<Plus className="size-4" />
|
|
125
|
-
</Button>
|
|
126
|
-
</div>
|
|
127
|
-
}
|
|
128
|
-
/>;
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
## Working with Row Selection
|
|
132
|
-
|
|
133
|
-
Use the `pluckSelected` utility to extract a field from all selected rows:
|
|
134
|
-
|
|
135
|
-
```tsx
|
|
136
|
-
import { pluckSelected } from 'react-shadcn-table';
|
|
137
|
-
|
|
138
|
-
const { rowSelection } = useGridState();
|
|
139
|
-
|
|
140
|
-
const selectedIds = pluckSelected(data, rowSelection, 'id');
|
|
141
|
-
// => ["V001", "V003", "V004"]
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
## API Reference
|
|
145
|
-
|
|
146
|
-
### `<Grid />` Props
|
|
147
|
-
|
|
148
|
-
| Prop | Type | Default | Description |
|
|
149
|
-
| ----------------------- | ------------------------------------------------------------ | --------- | ---------------------------------------------------------------- |
|
|
150
|
-
| `payload` | `{ data: TData[]; total: number }` | — | Row data and total row count |
|
|
151
|
-
| `columns` | `ColumnDef<GridFeatures, TData, unknown>[]` | — | Column definitions (required) |
|
|
152
|
-
| `state` | `Partial<TableState<GridFeatures>>` | — | Controlled table state (from `useGridState`) |
|
|
153
|
-
| `onColumnFiltersChange` | `OnChangeFn<ColumnFiltersState>` | — | Column filter change handler |
|
|
154
|
-
| `onPaginationChange` | `OnChangeFn<PaginationState>` | — | Pagination change handler |
|
|
155
|
-
| `onSortingChange` | `OnChangeFn<SortingState>` | — | Sorting change handler |
|
|
156
|
-
| `onRowSelectionChange` | `OnChangeFn<RowSelectionState>` | — | Row selection change handler |
|
|
157
|
-
| `setGlobalFilter` | `Dispatch<SetStateAction<string>>` | — | Global search setter |
|
|
158
|
-
| `manualPagination` | `boolean` | `false` | Enables server-side pagination |
|
|
159
|
-
| `manualFiltering` | `boolean` | `false` | Enables server-side column filtering |
|
|
160
|
-
| `manualSorting` | `boolean` | `false` | Enables server-side sorting |
|
|
161
|
-
| `isLoading` | `boolean` | — | Shows skeleton loading rows |
|
|
162
|
-
| `isError` | `boolean` | — | Shows the error state |
|
|
163
|
-
| `isFetching` | `boolean` | — | Shows a background refetch indicator |
|
|
164
|
-
| `refetch` | `() => void` | — | Retry/refresh callback |
|
|
165
|
-
| `renderSubComponent` | `(props: { row: Row<GridFeatures, TData> }) => ReactElement` | — | Custom content for expanded rows |
|
|
166
|
-
| `getRowCanExpand` | `(row: Row<GridFeatures, TData>) => boolean` | — | Controls whether a row can expand |
|
|
167
|
-
| `enableCellSelection` | `boolean` | `false` | Enables Excel-like cell range selection |
|
|
168
|
-
| `enableCellSpanning` | `boolean` | `false` | Enables merged/spanning cells |
|
|
169
|
-
| `enableRowSelection` | `boolean` | `true` | Enables/disables row selection |
|
|
170
|
-
| `height` | `string` | `'65vh'` | Fixed height of the scrollable table body |
|
|
171
|
-
| `name` | `string` | `'munza'` | Storage key for persisting per-grid layout |
|
|
172
|
-
| `topRightSlot` | `React.ReactNode` | — | Custom content on the right of the toolbar (e.g. action buttons) |
|
|
173
|
-
|
|
174
|
-
### `useGridState()`
|
|
175
|
-
|
|
176
|
-
Manages all controlled state required by `<Grid />`.
|
|
177
|
-
|
|
178
|
-
```tsx
|
|
179
|
-
const { state, handlers, rowSelection } = useGridState();
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
Returns:
|
|
183
|
-
|
|
184
|
-
- `state` — `{ columnFilters, globalFilter, pagination, sorting, rowSelection }`
|
|
185
|
-
- `handlers` — `{ onColumnFiltersChange, onPaginationChange, onSortingChange, setGlobalFilter, onRowSelectionChange }`
|
|
186
|
-
- `rowSelection` — the current selection map, exposed directly for convenience
|
|
187
|
-
|
|
188
|
-
### `pluckSelected(data, rowSelection, field)`
|
|
189
|
-
|
|
190
|
-
Extracts a field's value from every currently selected row.
|
|
191
|
-
|
|
192
|
-
```tsx
|
|
193
|
-
pluckSelected(data, rowSelection, 'id'); // => string[]
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### `URLSearch(queryArgs)`
|
|
197
|
-
|
|
198
|
-
Serializes TanStack Table state into a MongoDB/Express-style query string.
|
|
199
|
-
|
|
200
|
-
```tsx
|
|
201
|
-
URLSearch({
|
|
202
|
-
pagination: { pageIndex: 0, pageSize: 20 },
|
|
203
|
-
columnFilters: [{ id: 'status', value: 'active' }],
|
|
204
|
-
sorting: [{ id: 'year', desc: true }],
|
|
205
|
-
globalFilter: 'toyota',
|
|
206
|
-
});
|
|
207
|
-
// => "?page=1&limit=20&status=active&sort=-year&q=toyota"
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
## Peer Dependency Versions
|
|
211
|
-
|
|
212
|
-
| Package | Version |
|
|
213
|
-
| --------------------- | ------------ |
|
|
214
|
-
| `react` / `react-dom` | `^18 \| ^19` |
|
|
215
|
-
| `tailwindcss` | `^4.x` |
|
|
216
|
-
|
|
217
|
-
## License
|
|
218
|
-
|
|
219
|
-
MIT
|
|
1
|
+
# react-shadcn-table
|
|
2
|
+
|
|
3
|
+
A feature-rich, headless-powered data grid for React — built on [TanStack Table v9](https://tanstack.com/table) and [shadcn/ui](https://ui.shadcn.com/). Sorting, filtering, pagination, row selection, column/row pinning, resizing, drag-and-drop column ordering, expandable rows, and split (frozen) columns — all out of the box.
|
|
4
|
+
|
|
5
|
+
**Live Demo:** [https://react-shadcn-table.jsdevs.xyz/](https://react-shadcn-table.jsdevs.xyz/)
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- Global search + per-column filtering (text, range)
|
|
10
|
+
- Multi-column sorting
|
|
11
|
+
- Client-side & manual (server-side) pagination
|
|
12
|
+
- Row selection with checkboxes
|
|
13
|
+
- Column pinning (left / right) and row pinning (top / bottom)
|
|
14
|
+
- Resizable & drag-to-reorder columns (`@dnd-kit`)
|
|
15
|
+
- Split view for frozen left/right columns
|
|
16
|
+
- Expandable rows with custom sub-components
|
|
17
|
+
- Cell selection and cell spanning support
|
|
18
|
+
- Persists per-grid layout (column order, sizing, visibility, pinning) via a storage key
|
|
19
|
+
- Built-in loading, error, and empty states
|
|
20
|
+
- Fully styled with Tailwind CSS + shadcn/ui — themeable out of the box
|
|
21
|
+
- Export to Excel and PDF (`xlsx`, `jspdf`)
|
|
22
|
+
- Bring your own toolbar actions via `topRightSlot`
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install react-shadcn-table
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Peer Dependencies
|
|
31
|
+
|
|
32
|
+
Make sure the following are installed in your project:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install react react-dom
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Tailwind CSS must also be configured in your project, since the grid ships unstyled utility classes rather than a separate CSS bundle.
|
|
39
|
+
|
|
40
|
+
## Quick Start
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
import { useMemo } from 'react';
|
|
44
|
+
import {
|
|
45
|
+
Grid,
|
|
46
|
+
useGridState,
|
|
47
|
+
type GridFeatures,
|
|
48
|
+
type ColumnDef,
|
|
49
|
+
} from 'react-shadcn-table';
|
|
50
|
+
|
|
51
|
+
interface User {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
email: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const columns = useMemo<ColumnDef<GridFeatures, User, unknown>[]>(
|
|
58
|
+
() => [
|
|
59
|
+
{ id: 'id', accessorKey: 'id', header: () => 'ID' },
|
|
60
|
+
{ id: 'name', accessorKey: 'name', header: () => 'Name' },
|
|
61
|
+
{ id: 'email', accessorKey: 'email', header: () => 'Email' },
|
|
62
|
+
],
|
|
63
|
+
[],
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
const App = () => {
|
|
67
|
+
const { state, handlers } = useGridState();
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<Grid
|
|
71
|
+
payload={{ data: users, total: users.length }}
|
|
72
|
+
columns={columns}
|
|
73
|
+
state={state}
|
|
74
|
+
{...handlers}
|
|
75
|
+
/>
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Server-Side (Manual) Pagination, Sorting & Filtering
|
|
81
|
+
|
|
82
|
+
```tsx
|
|
83
|
+
const { state, handlers, rowSelection } = useGridState();
|
|
84
|
+
|
|
85
|
+
const { data, isLoading, isError, refetch, isFetching } = useUsersQuery({
|
|
86
|
+
queryString: URLSearch(state),
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
<Grid
|
|
90
|
+
payload={{ data: data?.rows ?? [], total: data?.total ?? 0 }}
|
|
91
|
+
columns={columns}
|
|
92
|
+
manualPagination
|
|
93
|
+
manualFiltering
|
|
94
|
+
manualSorting
|
|
95
|
+
isLoading={isLoading}
|
|
96
|
+
isError={isError}
|
|
97
|
+
isFetching={isFetching}
|
|
98
|
+
refetch={refetch}
|
|
99
|
+
state={state}
|
|
100
|
+
{...handlers}
|
|
101
|
+
height="55vh"
|
|
102
|
+
/>;
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Toolbar Actions
|
|
106
|
+
|
|
107
|
+
Add custom action buttons to the toolbar via `topRightSlot`:
|
|
108
|
+
|
|
109
|
+
```tsx
|
|
110
|
+
import { Plus, RefreshCw } from 'lucide-react';
|
|
111
|
+
import { Button } from '@/components/ui/button';
|
|
112
|
+
|
|
113
|
+
<Grid
|
|
114
|
+
columns={columns}
|
|
115
|
+
payload={{ data, total }}
|
|
116
|
+
state={state}
|
|
117
|
+
{...handlers}
|
|
118
|
+
topRightSlot={
|
|
119
|
+
<div className="flex items-center gap-2">
|
|
120
|
+
<Button variant="ghost" size="icon" onClick={refetch}>
|
|
121
|
+
<RefreshCw className="size-4" />
|
|
122
|
+
</Button>
|
|
123
|
+
<Button variant="default" size="icon" onClick={handleAdd}>
|
|
124
|
+
<Plus className="size-4" />
|
|
125
|
+
</Button>
|
|
126
|
+
</div>
|
|
127
|
+
}
|
|
128
|
+
/>;
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Working with Row Selection
|
|
132
|
+
|
|
133
|
+
Use the `pluckSelected` utility to extract a field from all selected rows:
|
|
134
|
+
|
|
135
|
+
```tsx
|
|
136
|
+
import { pluckSelected } from 'react-shadcn-table';
|
|
137
|
+
|
|
138
|
+
const { rowSelection } = useGridState();
|
|
139
|
+
|
|
140
|
+
const selectedIds = pluckSelected(data, rowSelection, 'id');
|
|
141
|
+
// => ["V001", "V003", "V004"]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## API Reference
|
|
145
|
+
|
|
146
|
+
### `<Grid />` Props
|
|
147
|
+
|
|
148
|
+
| Prop | Type | Default | Description |
|
|
149
|
+
| ----------------------- | ------------------------------------------------------------ | --------- | ---------------------------------------------------------------- |
|
|
150
|
+
| `payload` | `{ data: TData[]; total: number }` | — | Row data and total row count |
|
|
151
|
+
| `columns` | `ColumnDef<GridFeatures, TData, unknown>[]` | — | Column definitions (required) |
|
|
152
|
+
| `state` | `Partial<TableState<GridFeatures>>` | — | Controlled table state (from `useGridState`) |
|
|
153
|
+
| `onColumnFiltersChange` | `OnChangeFn<ColumnFiltersState>` | — | Column filter change handler |
|
|
154
|
+
| `onPaginationChange` | `OnChangeFn<PaginationState>` | — | Pagination change handler |
|
|
155
|
+
| `onSortingChange` | `OnChangeFn<SortingState>` | — | Sorting change handler |
|
|
156
|
+
| `onRowSelectionChange` | `OnChangeFn<RowSelectionState>` | — | Row selection change handler |
|
|
157
|
+
| `setGlobalFilter` | `Dispatch<SetStateAction<string>>` | — | Global search setter |
|
|
158
|
+
| `manualPagination` | `boolean` | `false` | Enables server-side pagination |
|
|
159
|
+
| `manualFiltering` | `boolean` | `false` | Enables server-side column filtering |
|
|
160
|
+
| `manualSorting` | `boolean` | `false` | Enables server-side sorting |
|
|
161
|
+
| `isLoading` | `boolean` | — | Shows skeleton loading rows |
|
|
162
|
+
| `isError` | `boolean` | — | Shows the error state |
|
|
163
|
+
| `isFetching` | `boolean` | — | Shows a background refetch indicator |
|
|
164
|
+
| `refetch` | `() => void` | — | Retry/refresh callback |
|
|
165
|
+
| `renderSubComponent` | `(props: { row: Row<GridFeatures, TData> }) => ReactElement` | — | Custom content for expanded rows |
|
|
166
|
+
| `getRowCanExpand` | `(row: Row<GridFeatures, TData>) => boolean` | — | Controls whether a row can expand |
|
|
167
|
+
| `enableCellSelection` | `boolean` | `false` | Enables Excel-like cell range selection |
|
|
168
|
+
| `enableCellSpanning` | `boolean` | `false` | Enables merged/spanning cells |
|
|
169
|
+
| `enableRowSelection` | `boolean` | `true` | Enables/disables row selection |
|
|
170
|
+
| `height` | `string` | `'65vh'` | Fixed height of the scrollable table body |
|
|
171
|
+
| `name` | `string` | `'munza'` | Storage key for persisting per-grid layout |
|
|
172
|
+
| `topRightSlot` | `React.ReactNode` | — | Custom content on the right of the toolbar (e.g. action buttons) |
|
|
173
|
+
|
|
174
|
+
### `useGridState()`
|
|
175
|
+
|
|
176
|
+
Manages all controlled state required by `<Grid />`.
|
|
177
|
+
|
|
178
|
+
```tsx
|
|
179
|
+
const { state, handlers, rowSelection } = useGridState();
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Returns:
|
|
183
|
+
|
|
184
|
+
- `state` — `{ columnFilters, globalFilter, pagination, sorting, rowSelection }`
|
|
185
|
+
- `handlers` — `{ onColumnFiltersChange, onPaginationChange, onSortingChange, setGlobalFilter, onRowSelectionChange }`
|
|
186
|
+
- `rowSelection` — the current selection map, exposed directly for convenience
|
|
187
|
+
|
|
188
|
+
### `pluckSelected(data, rowSelection, field)`
|
|
189
|
+
|
|
190
|
+
Extracts a field's value from every currently selected row.
|
|
191
|
+
|
|
192
|
+
```tsx
|
|
193
|
+
pluckSelected(data, rowSelection, 'id'); // => string[]
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### `URLSearch(queryArgs)`
|
|
197
|
+
|
|
198
|
+
Serializes TanStack Table state into a MongoDB/Express-style query string.
|
|
199
|
+
|
|
200
|
+
```tsx
|
|
201
|
+
URLSearch({
|
|
202
|
+
pagination: { pageIndex: 0, pageSize: 20 },
|
|
203
|
+
columnFilters: [{ id: 'status', value: 'active' }],
|
|
204
|
+
sorting: [{ id: 'year', desc: true }],
|
|
205
|
+
globalFilter: 'toyota',
|
|
206
|
+
});
|
|
207
|
+
// => "?page=1&limit=20&status=active&sort=-year&q=toyota"
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
## Peer Dependency Versions
|
|
211
|
+
|
|
212
|
+
| Package | Version |
|
|
213
|
+
| --------------------- | ------------ |
|
|
214
|
+
| `react` / `react-dom` | `^18 \| ^19` |
|
|
215
|
+
| `tailwindcss` | `^4.x` |
|
|
216
|
+
|
|
217
|
+
## License
|
|
218
|
+
|
|
219
|
+
MIT
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("react");c=s(c,1);let l=require("@tanstack/react-hotkeys"),u=require("@tanstack/react-store"),d=require("@tanstack/react-table"),f=require("react/jsx-runtime"),p=require("radix-ui"),m=require("lucide-react"),h=require("@dnd-kit/core"),g=require("@dnd-kit/modifiers"),_=require("@dnd-kit/sortable"),ee=require("@dnd-kit/utilities"),v=require("jspdf");v=s(v,1);let y=require("jspdf-autotable");y=s(y,1);let b=require("xlsx");b=s(b,1);var x=({refs:e,axis:t=`both`})=>{let n=(0,c.useRef)(null),r=(0,c.useRef)(!1),i=(0,c.useRef)(new Map);(0,c.useEffect)(()=>{let a=e.map(e=>e.current).filter(e=>e!==null);if(a.length<2)return;let o=e=>{r.current||(n.current!==null&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{r.current=!0;let n=e.scrollLeft,i=e.scrollTop;for(let r of a)r!==e&&((t===`x`||t===`both`)&&r.scrollLeft!==n&&(r.scrollLeft=n),(t===`y`||t===`both`)&&r.scrollTop!==i&&(r.scrollTop=i));r.current=!1}))};for(let e of a){let t=()=>o(e);i.current.set(e,t),e.addEventListener(`scroll`,t,{passive:!0})}return()=>{for(let[e,t]of i.current.entries())e.removeEventListener(`scroll`,t);i.current.clear(),n.current!==null&&(cancelAnimationFrame(n.current),n.current=null)}},[e,t])},te=`grid-column-order`;function S(e,t){if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(`${e}:${te}`);if(!n)return t;let r=JSON.parse(n);if(!Array.isArray(r)||!r.every(e=>typeof e==`string`))return t;let i=new Set(t),a=r.filter(e=>i.has(e)),o=t.filter(e=>!a.includes(e));return[...a,...o]}catch{return t}}function C(e,t){if(!(typeof window>`u`))try{window.localStorage.setItem(`${e}:${te}`,JSON.stringify(t))}catch{}}function ne(e,t){let[n,r]=(0,c.useState)(t);return(0,c.useEffect)(()=>{r(S(e,t))},[e,t.join(`|`)]),[n,t=>{r(n=>{let r=typeof t==`function`?t(n):t;return C(e,r),r})}]}var re=`grid-column-pinning`,w={start:[],end:[]},ie=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),ae=e=>{if(typeof e!=`object`||!e)return!1;let{start:t,end:n}=e;return ie(t)&&ie(n)};function T(e,t){if(typeof window>`u`)return w;try{let n=window.localStorage.getItem(`${e}:${re}`);if(!n)return w;let r=JSON.parse(n);if(!ae(r))return w;if(!t)return r;let i=new Set(t),a=e=>e.filter(e=>i.has(e));return{start:a(r.start),end:a(r.end)}}catch{return w}}function E(e,t){if(!(typeof window>`u`))try{window.localStorage.setItem(`${e}:${re}`,JSON.stringify(t))}catch{}}function D(e,t){let[n,r]=(0,c.useState)(w);return(0,c.useEffect)(()=>{r(T(e,t))},[e,t?.join(`|`)]),[n,t=>{r(n=>{let r=typeof t==`function`?t(n):t;return E(e,r),r})}]}var O=`grid-column-sizing`;function k(e){if(typeof window>`u`)return{};try{let t=window.localStorage.getItem(`${e}:${O}`);return t?JSON.parse(t):{}}catch{return{}}}function A(e,t){if(!(typeof window>`u`))try{window.localStorage.setItem(`${e}:${O}`,JSON.stringify(t))}catch{}}function oe(e){let[t,n]=(0,c.useState)({}),r=(0,c.useRef)(null);return(0,c.useEffect)(()=>{n(k(e))},[e]),[t,t=>{n(n=>{let i=typeof t==`function`?t(n):t;return r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{A(e,i)},300),i})}]}var j=`grid-column-visibility`;function se(e){if(typeof window>`u`)return{};try{let t=window.localStorage.getItem(`${e}:${j}`);return t?JSON.parse(t):{}}catch{return{}}}function ce(e,t){if(!(typeof window>`u`))try{window.localStorage.setItem(`${e}:${j}`,JSON.stringify(t))}catch{}}function M(e){let[t,n]=(0,c.useState)(()=>se(e));return(0,c.useEffect)(()=>{n(se(e))},[e]),[t,t=>{n(n=>{let r=typeof t==`function`?t(n):t;return ce(e,r),r})}]}var N=`grid-density`,P=`md`,le=e=>e===`sm`||e===`md`||e===`lg`;function F(e){if(typeof window>`u`)return P;try{let t=window.localStorage.getItem(`${e}:${N}`);if(!t)return P;let n=JSON.parse(t);return le(n)?n:P}catch{return P}}function ue(e,t){if(!(typeof window>`u`))try{window.localStorage.setItem(`${e}:${N}`,JSON.stringify(t))}catch{}}function de(e){let[t,n]=(0,c.useState)(P);return(0,c.useEffect)(()=>{n(F(e))},[e]),[t,t=>{n(n=>{let r=typeof t==`function`?t(n):t;return ue(e,r),r})}]}var I=`grid-row-pinning`,L={top:[],bottom:[]};function fe(e){if(typeof window>`u`)return L;try{let t=window.localStorage.getItem(`${e}:${I}`);if(!t)return L;let n=JSON.parse(t);return{top:Array.isArray(n?.top)?n.top:[],bottom:Array.isArray(n?.bottom)?n.bottom:[]}}catch{return L}}function pe(e,t){if(!(typeof window>`u`))try{window.localStorage.setItem(`${e}:${I}`,JSON.stringify(t))}catch{}}function me(e){let[t,n]=(0,c.useState)(L);return(0,c.useEffect)(()=>{n(fe(e))},[e]),[t,t=>{n(n=>{let r=typeof t==`function`?t(n):t;return pe(e,r),r})}]}var he=`grid-is-split`;function ge(e){if(typeof window>`u`)return!1;try{let t=window.localStorage.getItem(`${e}:${he}`);return t?JSON.parse(t):!1}catch{return!1}}function _e(e,t){if(!(typeof window>`u`))try{window.localStorage.setItem(`${e}:${he}`,JSON.stringify(t))}catch{}}function ve(e){let[t,n]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{n(ge(e))},[e]),[t,t=>{n(n=>{let r=typeof t==`function`?t(n):t;return _e(e,r),r})}]}function ye(e){let t=e==null?``:String(e),n=typeof e==`string`&&/^[\t\r ]*[=+@-]/.test(e)?`'${t}`:t;return/["\t\n\r]/.test(n)?`"${n.replace(/"/g,`""`)}"`:n}function be(e){return e.map(e=>e.map(e=>e.map(ye).join(` `)).join(`
|
|
2
2
|
`)).join(`
|
|
3
3
|
|
|
4
|
-
`)}var xe=(0,d.tableFeatures)({rowExpandingFeature:d.rowExpandingFeature,cellSpanningFeature:d.cellSpanningFeature,cellSelectionFeature:d.cellSelectionFeature,rowPinningFeature:d.rowPinningFeature,columnOrderingFeature:d.columnOrderingFeature,columnPinningFeature:d.columnPinningFeature,columnResizingFeature:d.columnResizingFeature,columnSizingFeature:d.columnSizingFeature,columnVisibilityFeature:d.columnVisibilityFeature,columnFacetingFeature:d.columnFacetingFeature,columnFilteringFeature:d.columnFilteringFeature,rowPaginationFeature:d.rowPaginationFeature,rowSelectionFeature:d.rowSelectionFeature,rowSortingFeature:d.rowSortingFeature,filteredRowModel:(0,d.createFilteredRowModel)(),paginatedRowModel:(0,d.createPaginatedRowModel)(),sortedRowModel:(0,d.createSortedRowModel)(),facetedRowModel:(0,d.createFacetedRowModel)(),facetedUniqueValues:(0,d.createFacetedUniqueValues)(),facetedMinMaxValues:(0,d.createFacetedMinMaxValues)(),expandedRowModel:(0,d.createExpandedRowModel)(),filterFns:{includesString:d.filterFn_includesString,inNumberRange:d.filterFn_inNumberRange,inDateRange:d.filterFn_inDateRange,equalsString:d.filterFn_equalsString},sortFns:{alphanumeric:d.sortFn_alphanumeric,text:d.sortFn_text},globalFilteringFeature:d.globalFilteringFeature,columnMeta:(0,d.metaHelper)(),densityPlugin:{getInitialState:e=>({density:`md`,...e}),getDefaultTableOptions:e=>({enableDensity:!0,onDensityChange:(0,d.makeStateUpdater)(`density`,e)}),constructTableAPIs:e=>{(0,d.assignTableAPIs)(`densityPlugin`,e,{table_setDensity:{fn:t=>e.options.onDensityChange?.(e=>(0,d.functionalUpdate)(t,e))},table_toggleDensity:{fn:t=>e.options.onDensityChange?.(e=>t||(e===`lg`?`md`:e===`md`?`sm`:`lg`))}})}}}),Se=(0,c.createContext)(void 0),Ce=({children:e,columns:t,payload:n,name:r=`munza`,state:i={},onColumnFiltersChange:a,onPaginationChange:o,onSortingChange:s,setGlobalFilter:p,isError:m,isLoading:h,isFetching:g,refetch:_,manualFiltering:ee=!1,manualSorting:v=!1,manualPagination:y=!1,height:b=`65vh`,getRowCanExpand:te,renderSubComponent:S,onRowSelectionChange:C,enableCellSelection:re=!0,enableCellSpanning:w=!0,enableRowSelection:ie=!0,topRightSlot:ae})=>{"use no memo";let T=(0,c.useRef)(null),E=(0,c.useRef)(null),O=(0,c.useRef)(null),k=(0,c.useRef)(null),A=(0,c.useRef)(null),j=(0,c.useRef)(null),se=(0,c.useRef)(null),ce=(0,u.useCreateAtom)([]),[N,P]=de(r),[le,F]=M(r),[ue,I]=ne(r,(0,c.useMemo)(()=>t.map(e=>e.id),[t])),[L,fe]=D(r),[pe,he]=oe(r),[ge,_e]=ve(r),[ye,Ce]=me(r),R=(0,d.useTable)({features:xe,data:n?.data??[],rowCount:n?.total,key:r,columns:t,getRowCanExpand:te,defaultColumn:{minSize:60,maxSize:800},state:{...i,density:N,columnVisibility:le,columnOrder:ue,columnPinning:L,columnSizing:pe,rowPinning:ye},atoms:{cellSelection:ce},columnResizeMode:`onChange`,enableCellSelection:re,enableCellSpanning:w,enableRowSelection:ie,onColumnVisibilityChange:F,onColumnOrderChange:I,onColumnPinningChange:fe,onColumnSizingChange:he,onRowPinningChange:Ce,onSortingChange:s,onColumnFiltersChange:a,onGlobalFilterChange:p,onPaginationChange:o,onRowSelectionChange:C,onDensityChange:P,manualFiltering:ee,manualSorting:v,manualPagination:y},e=>e);x({refs:[T,E],axis:`x`}),x({refs:[O,k],axis:`x`}),x({refs:[A,j],axis:`x`}),x({refs:[E,O,k,A,j],axis:`y`});let we=(0,c.useRef)(!0);(0,c.useEffect)(()=>{if(we.current){we.current=!1;return}R.resetCellSelection(!0)},[R.state.columnOrder,R.state.columnPinning,R.state.columnVisibility,R.state.sorting]),(0,l.useHotkeys)([{hotkey:`ArrowUp`,callback:()=>R.moveCellSelection(`up`)},{hotkey:`ArrowDown`,callback:()=>R.moveCellSelection(`down`)},{hotkey:`ArrowLeft`,callback:()=>R.moveCellSelection(`left`)},{hotkey:`ArrowRight`,callback:()=>R.moveCellSelection(`right`)},{hotkey:`Shift+ArrowUp`,callback:()=>R.extendCellSelection(`up`)},{hotkey:`Shift+ArrowDown`,callback:()=>R.extendCellSelection(`down`)},{hotkey:`Shift+ArrowLeft`,callback:()=>R.extendCellSelection(`left`)},{hotkey:`Shift+ArrowRight`,callback:()=>R.extendCellSelection(`right`)},{hotkey:`Mod+A`,callback:()=>R.selectAllCells()},{hotkey:`Escape`,callback:()=>R.resetCellSelection(!0)},{hotkey:`Mod+C`,callback:()=>{navigator.clipboard.writeText(be(R.getSelectedCellRangesData()))}}],{target:se});let Te=(0,c.useMemo)(()=>({paneRef1:T,paneRef2:E,paneRef3:O,paneRef4:k,paneRef5:A,paneRef6:j,gridWrapperRef:se,isSplit:ge,setIsSplit:_e,isFetching:g,isLoading:h,isError:m,refetch:_,height:b,globalFilter:i.globalFilter,setGlobalFilter:p,renderSubComponent:S,name:r,topRightSlot:ae}),[T,E,O,k,A,j,se,ge,_e,g,h,m,_,b,i.globalFilter,p,S,r,ae]);return(0,f.jsx)(Se.Provider,{value:{...Te,table:R},children:e})};function R(){let e=(0,c.useContext)(Se);if(!e)throw Error(`useGrid must be used within a GridContextProvider`);return e}function we(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=we(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Te(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=we(e))&&(r&&(r+=` `),r+=t);return r}var Ee=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,De=Te,Oe=(e,t)=>n=>{if(t?.variants==null)return De(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ee(t)||Ee(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return De(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},ke=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ae=(e,t)=>({classGroupId:e,validator:t}),je=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Me=`-`,Ne=[],Pe=`arbitrary..`,Fe=e=>{let t=Re(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Le(e);let n=e.split(Me);return Ie(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ke(i,t):t:i||Ne}return n[e]||Ne}}},Ie=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ie(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Me):e.slice(t).join(Me),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Le=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Pe+r:void 0})(),Re=e=>{let{theme:t,classGroups:n}=e;return ze(n,t)},ze=(e,t)=>{let n=je();for(let r in e){let i=e[r];Be(i,n,r,t)}return n},Be=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Ve(i,t,n,r)}},Ve=(e,t,n,r)=>{if(typeof e==`string`){He(e,t,n);return}if(typeof e==`function`){Ue(e,t,n,r);return}We(e,t,n,r)},He=(e,t,n)=>{let r=e===``?t:Ge(t,e);r.classGroupId=n},Ue=(e,t,n,r)=>{if(Ke(e)){Be(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ae(n,e))},We=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Be(o,Ge(t,a),n,r)}},Ge=(e,t)=>{let n=e,r=t.split(Me),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=je(),n.nextPart.set(t,i)),n=i}return n},Ke=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,qe=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Je=`!`,Ye=`:`,Xe=[],Ze=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Qe=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Ye){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Je)?(c=s.slice(0,-1),l=!0):s.startsWith(Je)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ze(t,l,c,u)};if(t){let e=t+Ye,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ze(Xe,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},$e=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},et=e=>({cache:qe(e.cacheSize),parseClassName:Qe(e),sortModifiers:$e(e),postfixLookupClassGroupIds:tt(e),...Fe(e)}),tt=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},nt=/\s+/,rt=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(nt),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),ee=f?_+Je:_,v=ee+g;if(s.indexOf(v)>-1)continue;s.push(v);let y=i(g,h);for(let e=0;e<y.length;++e){let t=y[e];s.push(ee+t)}l=t+(l.length>0?` `+l:l)}return l},it=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=at(n))&&(i&&(i+=` `),i+=r);return i},at=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=at(e[r]))&&(n&&(n+=` `),n+=t);return n},ot=(e,...t)=>{let n,r,i,a,o=o=>(n=et(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=rt(e,n);return i(e,a),a};return a=o,(...e)=>a(it(...e))},st=[],z=e=>{let t=t=>t[e]||st;return t.isThemeGetter=!0,t},ct=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ut=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ft=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ht=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>ut.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),H=e=>!!e&&Number.isInteger(Number(e)),gt=e=>e.endsWith(`%`)&&V(e.slice(0,-1)),U=e=>dt.test(e),_t=()=>!0,vt=e=>ft.test(e)&&!pt.test(e),yt=()=>!1,bt=e=>mt.test(e),xt=e=>ht.test(e),St=e=>!W(e)&&!G(e),Ct=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),wt=e=>K(e,Ht,yt),W=e=>ct.test(e),Tt=e=>K(e,Ut,vt),Et=e=>K(e,Wt,V),Dt=e=>K(e,Kt,_t),Ot=e=>K(e,Gt,yt),kt=e=>K(e,Bt,yt),At=e=>K(e,Vt,xt),jt=e=>K(e,qt,bt),G=e=>lt.test(e),Mt=e=>zt(e,Ut),Nt=e=>zt(e,Gt),Pt=e=>zt(e,Bt),Ft=e=>zt(e,Ht),It=e=>zt(e,Vt),Lt=e=>zt(e,qt,!0),Rt=e=>zt(e,Kt,!0),K=(e,t,n)=>{let r=ct.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zt=(e,t,n=!1)=>{let r=lt.exec(e);return r?r[1]?t(r[1]):n:!1},Bt=e=>e===`position`||e===`percentage`,Vt=e=>e===`image`||e===`url`,Ht=e=>e===`length`||e===`size`||e===`bg-size`,Ut=e=>e===`length`,Wt=e=>e===`number`,Gt=e=>e===`family-name`,Kt=e=>e===`number`||e===`weight`,qt=e=>e===`shadow`,Jt=ot(()=>{let e=z(`color`),t=z(`font`),n=z(`text`),r=z(`font-weight`),i=z(`tracking`),a=z(`leading`),o=z(`breakpoint`),s=z(`container`),c=z(`spacing`),l=z(`radius`),u=z(`shadow`),d=z(`inset-shadow`),f=z(`text-shadow`),p=z(`drop-shadow`),m=z(`blur`),h=z(`perspective`),g=z(`aspect`),_=z(`ease`),ee=z(`animate`),v=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],y=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],b=()=>[...y(),G,W],x=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],te=()=>[`auto`,`contain`,`none`],S=()=>[G,W,c],C=()=>[B,`full`,`auto`,...S()],ne=()=>[H,`none`,`subgrid`,G,W],re=()=>[`auto`,{span:[`full`,H,G,W]},H,G,W],w=()=>[H,`auto`,G,W],ie=()=>[`auto`,`min`,`max`,`fr`,G,W],ae=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],T=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],E=()=>[`auto`,...S()],D=()=>[B,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...S()],O=()=>[B,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...S()],k=()=>[B,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...S()],A=()=>[e,G,W],oe=()=>[...y(),Pt,kt,{position:[G,W]}],j=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,Ft,wt,{size:[G,W]}],ce=()=>[gt,Mt,Tt],M=()=>[``,`none`,`full`,l,G,W],N=()=>[``,V,Mt,Tt],P=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],F=()=>[V,gt,Pt,kt],ue=()=>[``,`none`,m,G,W],de=()=>[`none`,V,G,W],I=()=>[`none`,V,G,W],L=()=>[V,G,W],fe=()=>[B,`full`,...S()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[U],breakpoint:[U],color:[_t],container:[U],"drop-shadow":[U],ease:[`in`,`out`,`in-out`],font:[St],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[U],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[U],shadow:[U],spacing:[`px`,V],text:[U],"text-shadow":[U],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,B,W,G,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,G,W]}],"container-named":[Ct],columns:[{columns:[V,W,G,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:b()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[H,`auto`,G,W]}],basis:[{basis:[B,`full`,`auto`,s,...S()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[V,B,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,V,G,W]}],shrink:[{shrink:[``,V,G,W]}],order:[{order:[H,`first`,`last`,`none`,G,W]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...ae(),`normal`]}],"justify-items":[{"justify-items":[...T(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...T()]}],"align-content":[{content:[`normal`,...ae()]}],"align-items":[{items:[...T(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...T(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...T(),`baseline`]}],"place-self":[{"place-self":[`auto`,...T()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":S()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":S()}],"space-y-reverse":[`space-y-reverse`],size:[{size:D()}],"inline-size":[{inline:[`auto`,...O()]}],"min-inline-size":[{"min-inline":[`auto`,...O()]}],"max-inline-size":[{"max-inline":[`none`,...O()]}],"block-size":[{block:[`auto`,...k()]}],"min-block-size":[{"min-block":[`auto`,...k()]}],"max-block-size":[{"max-block":[`none`,...k()]}],w:[{w:[s,`screen`,...D()]}],"min-w":[{"min-w":[s,`screen`,`none`,...D()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...D()]}],h:[{h:[`screen`,`lh`,...D()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...D()]}],"max-h":[{"max-h":[`screen`,`lh`,...D()]}],"font-size":[{text:[`base`,n,Mt,Tt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Rt,Dt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,gt,W]}],"font-family":[{font:[Nt,Ot,t]}],"font-features":[{"font-features":[W]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,G,W]}],"line-clamp":[{"line-clamp":[V,`none`,G,Et]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":[`none`,G,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,G,W]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...P(),`wavy`]}],"text-decoration-thickness":[{decoration:[V,`from-font`,`auto`,G,Tt]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[V,`auto`,G,W]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:S()}],"tab-size":[{tab:[H,G,W]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,G,W]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,G,W]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},H,G,W],radial:[``,G,W],conic:[H,G,W]},It,At]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":N()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...P(),`hidden`,`none`]}],"divide-style":[{divide:[...P(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...P(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[V,G,W]}],"outline-w":[{outline:[``,V,Mt,Tt]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,Lt,jt]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,Lt,jt]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:N()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[V,Tt]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,Lt,jt]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[V,G,W]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[G,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,G,W]}],filter:[{filter:[``,`none`,G,W]}],blur:[{blur:ue()}],brightness:[{brightness:[V,G,W]}],contrast:[{contrast:[V,G,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Lt,jt]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,V,G,W]}],"hue-rotate":[{"hue-rotate":[V,G,W]}],invert:[{invert:[``,V,G,W]}],saturate:[{saturate:[V,G,W]}],sepia:[{sepia:[``,V,G,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,G,W]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[V,G,W]}],"backdrop-contrast":[{"backdrop-contrast":[V,G,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,V,G,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,G,W]}],"backdrop-invert":[{"backdrop-invert":[``,V,G,W]}],"backdrop-opacity":[{"backdrop-opacity":[V,G,W]}],"backdrop-saturate":[{"backdrop-saturate":[V,G,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,V,G,W]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,G,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[V,`initial`,G,W]}],ease:[{ease:[`linear`,`initial`,_,G,W]}],delay:[{delay:[V,G,W]}],animate:[{animate:[`none`,ee,G,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,G,W]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":[`scale-3d`],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[G,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":[`translate-none`],zoom:[{zoom:[H,G,W]}],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,G,W]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,G,W]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[V,Mt,Tt,Et]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function q(...e){return Jt(Te(e))}var Yt=Oe(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function J({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?p.Slot.Root:`button`;return(0,f.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:q(Yt({variant:t,size:n,className:e})),...i})}function Xt({className:e,type:t,...n}){return(0,f.jsx)(`input`,{type:t,"data-slot":`input`,className:q(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}function Zt({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:q(`group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5`,e),...t})}var Qt=Oe(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]`,"inline-end":`order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]`,"block-start":`order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2`,"block-end":`order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2`}},defaultVariants:{align:`inline-start`}});function $t({className:e,align:t=`inline-start`,...n}){return(0,f.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":t,className:q(Qt({align:t}),e),onClick:e=>{e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()},...n})}function en({className:e,...t}){return(0,f.jsx)(Xt,{"data-slot":`input-group-control`,className:q(`flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent`,e),...t})}function tn({className:e,...t}){return(0,f.jsx)(m.Loader2Icon,{"data-slot":`spinner`,role:`status`,"aria-label":`Loading`,className:q(`size-4 animate-spin`,e),...t})}var nn=(0,c.createContext)(null);function rn(){return(0,c.useContext)(nn)?.defaultOptions??{}}function an(e){return typeof e==`function`}function on(e,...t){return an(e)?e(...t):e}var sn=class{#e=!0;#t;#n;#r;#i;#a;#o;#s;#c=0;#l=5;#u=!1;#d=!1;#f=null;#p=()=>{this.debugLog(`Connected to event bus`),this.#a=!0,this.#u=!1,this.debugLog(`Emitting queued events`,this.#i),this.#i.forEach(e=>this.emitEventToBus(e)),this.#i=[],this.stopConnectLoop(),this.#n().removeEventListener(`tanstack-connect-success`,this.#p)};#m=()=>{if(this.#c<this.#l){this.#c++,this.dispatchCustomEvent(`tanstack-connect`,{});return}this.#n().removeEventListener(`tanstack-connect`,this.#m),this.#d=!0,this.debugLog(`Max retries reached, giving up on connection`),this.stopConnectLoop()};#h=()=>{this.#u||(this.#u=!0,this.#n().addEventListener(`tanstack-connect-success`,this.#p),this.#m())};constructor({pluginId:e,debug:t=!1,enabled:n=!0,reconnectEveryMs:r=300}){this.#t=e,this.#e=n,this.#n=this.getGlobalTarget,this.#r=t,this.debugLog(` Initializing event subscription for plugin`,this.#t),this.#i=[],this.#a=!1,this.#d=!1,this.#o=null,this.#s=r}startConnectLoop(){this.#o!==null||this.#a||(this.debugLog(`Starting connect loop (every ${this.#s}ms)`),this.#o=setInterval(this.#m,this.#s))}stopConnectLoop(){this.#u=!1,this.#o!==null&&(clearInterval(this.#o),this.#o=null,this.#i=[],this.debugLog(`Stopped connect loop`))}debugLog(...e){this.#r&&console.log(`🌴 [tanstack-devtools:${this.#t}-plugin]`,...e)}getGlobalTarget(){if(typeof globalThis<`u`&&globalThis.__TANSTACK_EVENT_TARGET__)return this.debugLog(`Using global event target`),globalThis.__TANSTACK_EVENT_TARGET__;if(typeof window<`u`&&window.addEventListener!==void 0)return this.debugLog(`Using window as event target`),window;let e=typeof EventTarget<`u`?new EventTarget:void 0;return e===void 0||e.addEventListener===void 0?(this.debugLog(`No event mechanism available, running in non-web environment`),{addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1}):(this.debugLog(`Using new EventTarget as fallback`),e)}getPluginId(){return this.#t}dispatchCustomEventShim(e,t){try{let n=new Event(e,{detail:t});this.#n().dispatchEvent(n)}catch{this.debugLog(`Failed to dispatch shim event`)}}dispatchCustomEvent(e,t){try{this.#n().dispatchEvent(new CustomEvent(e,{detail:t}))}catch{this.dispatchCustomEventShim(e,t)}}emitEventToBus(e){this.debugLog(`Emitting event to client bus`,e),this.dispatchCustomEvent(`tanstack-dispatch-event`,e)}createEventPayload(e,t){return{type:`${this.#t}:${e}`,payload:t,pluginId:this.#t}}emit(e,t){if(!this.#e){this.debugLog(`Event bus client is disabled, not emitting event`,e,t);return}if(this.#f&&(this.debugLog(`Emitting event to internal event target`,e,t),this.#f.dispatchEvent(new CustomEvent(`${this.#t}:${e}`,{detail:this.createEventPayload(e,t)}))),this.#d){this.debugLog(`Previously failed to connect, not emitting to bus`);return}if(!this.#a){this.debugLog(`Bus not available, will be pushed as soon as connected`),this.#i.push(this.createEventPayload(e,t)),typeof CustomEvent<`u`&&!this.#u&&(this.#h(),this.startConnectLoop());return}return this.emitEventToBus(this.createEventPayload(e,t))}on(e,t,n){let r=n?.withEventTarget??!1,i=`${this.#t}:${e}`;if(r&&(this.#f||=new EventTarget,this.#f.addEventListener(i,e=>{t(e.detail)})),!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`,i),()=>{};let a=e=>{this.debugLog(`Received event from bus`,e.detail),t(e.detail)};return this.#n().addEventListener(i,a),this.debugLog(`Registered event to bus`,i),()=>{r&&this.#f?.removeEventListener(i,a),this.#n().removeEventListener(i,a)}}onAll(e){if(!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`),()=>{};let t=t=>{let n=t.detail;e(n)};return this.#n().addEventListener(`tanstack-devtools-global`,t),()=>this.#n().removeEventListener(`tanstack-devtools-global`,t)}onAllPluginEvents(e){if(!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`),()=>{};let t=t=>{let n=t.detail;this.#t&&n.pluginId!==this.#t||e(n)};return this.#n().addEventListener(`tanstack-devtools-global`,t),()=>this.#n().removeEventListener(`tanstack-devtools-global`,t)}},cn=class{#e;constructor({pluginId:e}){this.#e=e}getPluginId(){return this.#e}createEventPayload(e,t){return{type:`${this.#e}:${e}`,payload:t,pluginId:this.#e}}emit(e,t){}on(e,t,n){return()=>{}}onAll(e){return()=>{}}onAllPluginEvents(e){return()=>{}}},ln=process.env.NODE_ENV===`development`?sn:cn,un=new Map;function dn(e,t){un.set(e,t)}function fn(e){if(e!==void 0)try{return JSON.parse(JSON.stringify(e))}catch{return null}}function pn(e){return typeof e.get==`function`?e.get():e.state}function mn(e){return{key:e.key,store:{state:fn(pn(e.store))},options:fn(e.options)}}var hn=class extends ln{constructor(e){super({pluginId:`pacer`,debug:e?.debug,reconnectEveryMs:1e3})}},gn=(e,t)=>{let n=t.key;n&&(dn(n,t),_n.emit(e,mn({...t,key:n})))},_n=new hn;function vn({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function yn(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var bn=[],xn=0,{link:Sn,unlink:Cn,propagate:wn,checkDirty:Tn,shallowPropagate:En}=vn({update(e){return e._update()},notify(e){bn[On++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,An(e))}}),Dn=0,On=0,Y,kn=0;function An(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Cn(n,e)}function jn(){if(!(kn>0)){for(;Dn<On;){let e=bn[Dn];bn[Dn++]=void 0,e.notify()}Dn=0,On=0}}function Mn(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return Y!==void 0&&Sn(i,Y,xn),i._snapshot},subscribe(e){let t=yn(e),n={current:!1},r=Nn(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Y,o=t?.compare??Object.is;if(n)Y=i,++xn,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Y=a,n&&(i.flags&=-5),An(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Tn(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&En(e)}}else e&32&&(i.flags=e&-33);return Y!==void 0&&Sn(i,Y,xn),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(wn(e),En(e),jn())}},i}function Nn(e){let t=()=>{let t=Y;Y=n,++xn,n.depsTail=void 0,n.flags=6;try{return e()}finally{Y=t,n.flags&=-5,An(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&Tn(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,An(this)}};return t(),n}var Pn=class{constructor(e,t){this.atom=Mn(e),this.get=this.get.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),t&&(this.actions=t(this))}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(yn(e))}};function Fn(){return{canLeadingExecute:!0,executionCount:0,isPending:!1,lastArgs:void 0,status:`idle`,maybeExecuteCount:0}}var In={enabled:!0,leading:!1,trailing:!0,wait:0},Ln=class{#e;constructor(e,t){this.fn=e,this.store=new Pn(Fn()),this.setOptions=e=>{this.options={...this.options,...e},this.#n()||this.cancel()},this.#t=e=>{this.store.setState(t=>{let n={...t,...e},{isPending:r}=n;return{...n,status:this.#n()?r?`pending`:`idle`:`disabled`}}),gn(`Debouncer`,this)},this.#n=()=>!!on(this.options.enabled,this),this.#r=()=>on(this.options.wait,this),this.maybeExecute=(...e)=>{if(!this.#n())return;this.#t({maybeExecuteCount:this.store.state.maybeExecuteCount+1});let t=!1;this.options.leading&&this.store.state.canLeadingExecute&&(this.#t({canLeadingExecute:!1}),t=!0,this.#i(...e)),this.options.trailing&&this.#t({isPending:!0,lastArgs:e}),this.#e&&clearTimeout(this.#e),this.#e=setTimeout(()=>{this.#t({canLeadingExecute:!0}),this.options.trailing&&!t&&this.#i(...e)},this.#r())},this.#i=(...e)=>{this.#n()&&(this.fn(...e),this.#t({executionCount:this.store.state.executionCount+1,isPending:!1,lastArgs:void 0}),this.options.onExecute?.(e,this))},this.flush=()=>{this.store.state.isPending&&this.store.state.lastArgs&&(this.#a(),this.#i(...this.store.state.lastArgs))},this.#a=()=>{this.#e&&=(clearTimeout(this.#e),void 0)},this.cancel=()=>{this.#a(),this.#t({canLeadingExecute:!0,isPending:!1})},this.reset=()=>{this.#t(Fn())},this.key=t.key,this.options={...In,...t},this.#t(this.options.initialState??{}),this.key&&_n.on(`d-Debouncer`,e=>{e.payload.key===this.key&&(this.#t(e.payload.store.state),this.setOptions(e.payload.options))})}#t;#n;#r;#i;#a};function Rn(e,t,n=()=>({})){let r={...rn().debouncer,...t},[i]=(0,c.useState)(()=>{let t=new Ln(e,r);return t.Subscribe=function(e){let n=(0,u.useSelector)(t.store,e.selector,{compare:u.shallow});return typeof e.children==`function`?e.children(n):e.children},t});i.fn=e,i.setOptions(r),(0,c.useEffect)(()=>()=>{r.onUnmount?r.onUnmount(i):i.cancel()},[]);let a=(0,u.useSelector)(i.store,n,{compare:u.shallow});return(0,c.useMemo)(()=>({...i,state:a}),[i,a])}function zn(e,t){let n=Rn(e,t).maybeExecute;return(0,c.useCallback)((...e)=>n(...e),[n])}var Bn=()=>{let{setGlobalFilter:e,globalFilter:t,topRightSlot:n,isFetching:r}=R(),[i,a]=(0,c.useState)(String(t??``));(0,c.useEffect)(()=>{a(String(t??``))},[t]);let o=zn(t=>e?.(t),{wait:300});return(0,f.jsxs)(`div`,{style:{paddingInline:`16px`,height:`64px`,borderBottom:`1px solid var(--border)`,display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,f.jsx)(`div`,{style:{display:`flex`,justifyItems:`center`,gap:`16px`},children:(0,f.jsxs)(Zt,{children:[(0,f.jsx)(en,{style:{width:`240px`},type:`search`,value:i,onChange:e=>{let t=e.target.value;a(t),o(t)},placeholder:`Search by query`}),r&&(0,f.jsx)($t,{align:`inline-end`,children:(0,f.jsx)(tn,{})})]})}),(0,f.jsx)(`div`,{children:n})]})};function X({className:e,...t}){return(0,f.jsx)(`table`,{"data-slot":`table`,className:q(`w-full caption-bottom text-sm`,e),...t})}function Vn({className:e,...t}){return(0,f.jsx)(`thead`,{"data-slot":`table-header`,className:q(`[&_tr]:border-b`,e),...t})}function Z({className:e,...t}){return(0,f.jsx)(`tbody`,{"data-slot":`table-body`,className:q(`[&_tr:last-child]:border-0`,e),...t})}function Q({className:e,...t}){return(0,f.jsx)(`tr`,{"data-slot":`table-row`,className:q(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,e),...t})}function Hn({className:e,...t}){return(0,f.jsx)(`th`,{"data-slot":`table-head`,className:q(`h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0`,e),...t})}function $({className:e,...t}){return(0,f.jsx)(`td`,{"data-slot":`table-cell`,className:q(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0`,e),...t})}var Un=(e,t)=>{let n=e.getIsPinned(),r=n===`start`&&e.getIsLastColumn(`start`),i=n===`end`&&e.getIsFirstColumn(`end`);return{boxShadow:r?`-1px 0 1px -1px gray inset`:i?`1px 0 1px -1px gray inset`:void 0,left:n===`start`&&!t?`${e.getStart(`start`)}px`:void 0,right:n===`end`&&!t?`${e.getAfter(`end`)}px`:void 0,opacity:n?.95:1,position:n?t?`relative`:`sticky`:`relative`,width:e.getSize(),zIndex:+!!n,background:n&&!t?`var(--background)`:void 0}},Wn=e=>e.getIsSelected()?{backgroundColor:`rgba(59, 130, 246, 0.30)`}:e.getIsFocused()?{outline:`1px solid var(--ring)`,outlineOffset:`-1px`}:{},Gn=({cell:e})=>{"use no memo";let{table:t,isSplit:n}=R(),r=(0,c.useRef)(null),i={width:e.column.getSize(),minWidth:e.column.getSize(),maxWidth:e.column.getSize(),overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,border:`1px solid`,borderColor:`var(--border)`,userSelect:`none`,cursor:e.getCanSelect()?`cell`:void 0,transition:`padding 0.2s`,padding:t.state.density===`sm`?`4px`:t.state.density===`md`?`8px`:`16px`,...Un(e.column,n),...Wn(e)};(0,c.useLayoutEffect)(()=>{let e=r.current;if(!e)return;let t=()=>{let{height:t}=e.getBoundingClientRect();document.documentElement.style.setProperty(`--cell-h`,`${t}px`)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[n]);let a=e.getRowSpan(),o=e.getColSpan();return a===0||o===0?null:(0,f.jsx)($,{ref:r,style:i,rowSpan:a,colSpan:o,tabIndex:e.getCanSelect()?e.getTabIndex():void 0,onMouseDown:e.getCanSelect()?e.getSelectionStartHandler():void 0,onMouseEnter:e.getCanSelect()?e.getSelectionExtendHandler():void 0,title:e.getValue()==null?void 0:String(e.getValue()),children:(0,f.jsx)(t.FlexRender,{cell:e})})};function Kn({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`empty`,className:q(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance`,e),...t})}function qn({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`empty-header`,className:q(`flex max-w-sm flex-col items-center gap-2`,e),...t})}var Jn=Oe(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`}});function Yn({className:e,variant:t=`default`,...n}){return(0,f.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":t,className:q(Jn({variant:t,className:e})),...n})}function Xn({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`empty-title`,className:q(`font-heading text-sm font-medium tracking-tight`,e),...t})}function Zn({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`empty-description`,className:q(`text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,e),...t})}var Qn=()=>(0,f.jsx)(`div`,{style:{position:`absolute`,left:`50%`,top:`50%`,transform:`translate(-50%, -50%)`},children:(0,f.jsx)(Kn,{children:(0,f.jsxs)(qn,{children:[(0,f.jsx)(Yn,{variant:`icon`,children:(0,f.jsx)(m.Database,{})}),(0,f.jsx)(Xn,{children:`No data`}),(0,f.jsx)(Zn,{children:`No data found`})]})})}),$n=()=>{let{table:e,isSplit:t}=R(),n=(0,c.useMemo)(()=>t?e.getCenterVisibleLeafColumns():e.getVisibleLeafColumns(),[e,t]);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(X,{children:(0,f.jsx)(Z,{children:(0,f.jsx)(Q,{children:n.map((e,t)=>(0,f.jsx)($,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})}),(0,f.jsx)(Qn,{})]})},er=()=>{let[e,t]=(0,c.useState)(()=>typeof navigator<`u`?navigator.onLine:!0);return(0,c.useEffect)(()=>{let e=()=>t(!0),n=()=>t(!1);return window.addEventListener(`online`,e),window.addEventListener(`offline`,n),()=>{window.removeEventListener(`online`,e),window.removeEventListener(`offline`,n)}},[]),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`},children:[(0,f.jsx)(m.ServerOff,{size:52,style:{color:`var(--red-500, #ef4444)`,marginBottom:`24px`}}),(0,f.jsx)(`h2`,{style:{fontSize:`24px`,fontWeight:600,color:`var(--red-600, #dc2626)`,marginBottom:`12px`},children:`Failed to Load Data`}),(0,f.jsx)(`p`,{style:{fontSize:`14px`,color:`var(--muted-foreground)`,marginBottom:`24px`,textAlign:`center`,maxWidth:`448px`},children:e?`Something went wrong. Please try refreshing the page.`:`You're currently offline. Please check your internet connection.`}),(0,f.jsx)(J,{onClick:()=>{e&&window.location.reload()},variant:`outline`,disabled:!e,children:e?`Refresh Page`:`No Connection`})]})},tr=()=>(0,f.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`},children:(0,f.jsx)(er,{})});function nr({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`skeleton`,className:q(`animate-pulse rounded-md bg-muted`,e),...t})}var rr=[60,100,80,50,70,40,90],ir=({column:e,i:t,j:n})=>(0,f.jsx)(f.Fragment,{children:[`select`].includes(e.id)?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`style`,{children:`
|
|
4
|
+
`)}var xe=(0,d.tableFeatures)({rowExpandingFeature:d.rowExpandingFeature,cellSpanningFeature:d.cellSpanningFeature,cellSelectionFeature:d.cellSelectionFeature,rowPinningFeature:d.rowPinningFeature,columnOrderingFeature:d.columnOrderingFeature,columnPinningFeature:d.columnPinningFeature,columnResizingFeature:d.columnResizingFeature,columnSizingFeature:d.columnSizingFeature,columnVisibilityFeature:d.columnVisibilityFeature,columnFacetingFeature:d.columnFacetingFeature,columnFilteringFeature:d.columnFilteringFeature,rowPaginationFeature:d.rowPaginationFeature,rowSelectionFeature:d.rowSelectionFeature,rowSortingFeature:d.rowSortingFeature,filteredRowModel:(0,d.createFilteredRowModel)(),paginatedRowModel:(0,d.createPaginatedRowModel)(),sortedRowModel:(0,d.createSortedRowModel)(),facetedRowModel:(0,d.createFacetedRowModel)(),facetedUniqueValues:(0,d.createFacetedUniqueValues)(),facetedMinMaxValues:(0,d.createFacetedMinMaxValues)(),expandedRowModel:(0,d.createExpandedRowModel)(),filterFns:{includesString:d.filterFn_includesString,inNumberRange:d.filterFn_inNumberRange,inDateRange:d.filterFn_inDateRange,equalsString:d.filterFn_equalsString},sortFns:{alphanumeric:d.sortFn_alphanumeric,text:d.sortFn_text},globalFilteringFeature:d.globalFilteringFeature,columnMeta:(0,d.metaHelper)(),densityPlugin:{getInitialState:e=>({density:`md`,...e}),getDefaultTableOptions:e=>({enableDensity:!0,onDensityChange:(0,d.makeStateUpdater)(`density`,e)}),constructTableAPIs:e=>{(0,d.assignTableAPIs)(`densityPlugin`,e,{table_setDensity:{fn:t=>e.options.onDensityChange?.(e=>(0,d.functionalUpdate)(t,e))},table_toggleDensity:{fn:t=>e.options.onDensityChange?.(e=>t||(e===`lg`?`md`:e===`md`?`sm`:`lg`))}})}}}),Se=(0,c.createContext)(void 0),Ce=({children:e,columns:t,payload:n,name:r=`munza`,state:i={},onColumnFiltersChange:a,onPaginationChange:o,onSortingChange:s,setGlobalFilter:p,isError:m,isLoading:h,isFetching:g,refetch:_,manualFiltering:ee=!1,manualSorting:v=!1,manualPagination:y=!1,height:b=`65vh`,getRowCanExpand:te,renderSubComponent:S,onRowSelectionChange:C,enableCellSelection:re=!0,enableCellSpanning:w=!0,enableRowSelection:ie=!0,topRightSlot:ae})=>{"use no memo";let T=(0,c.useRef)(null),E=(0,c.useRef)(null),O=(0,c.useRef)(null),k=(0,c.useRef)(null),A=(0,c.useRef)(null),j=(0,c.useRef)(null),se=(0,c.useRef)(null),ce=(0,u.useCreateAtom)([]),[N,P]=de(r),[le,F]=M(r),[ue,I]=ne(r,(0,c.useMemo)(()=>t.map(e=>e.id),[t])),[L,fe]=D(r),[pe,he]=oe(r),[ge,_e]=ve(r),[ye,Ce]=me(r),R=(0,d.useTable)({features:xe,data:n?.data??[],rowCount:n?.total,key:r,columns:t,getRowCanExpand:te,defaultColumn:{minSize:60,maxSize:800},state:{...i,density:N,columnVisibility:le,columnOrder:ue,columnPinning:L,columnSizing:pe,rowPinning:ye},atoms:{cellSelection:ce},columnResizeMode:`onChange`,enableCellSelection:re,enableCellSpanning:w,enableRowSelection:ie,onColumnVisibilityChange:F,onColumnOrderChange:I,onColumnPinningChange:fe,onColumnSizingChange:he,onRowPinningChange:Ce,onSortingChange:s,onColumnFiltersChange:a,onGlobalFilterChange:p,onPaginationChange:o,onRowSelectionChange:C,onDensityChange:P,manualFiltering:ee,manualSorting:v,manualPagination:y},e=>e);x({refs:[T,E],axis:`x`}),x({refs:[O,k],axis:`x`}),x({refs:[A,j],axis:`x`}),x({refs:[E,O,k,A,j],axis:`y`});let we=(0,c.useRef)(!0);(0,c.useEffect)(()=>{if(we.current){we.current=!1;return}R.resetCellSelection(!0)},[R.state.columnOrder,R.state.columnPinning,R.state.columnVisibility,R.state.sorting]),(0,l.useHotkeys)([{hotkey:`ArrowUp`,callback:()=>R.moveCellSelection(`up`)},{hotkey:`ArrowDown`,callback:()=>R.moveCellSelection(`down`)},{hotkey:`ArrowLeft`,callback:()=>R.moveCellSelection(`left`)},{hotkey:`ArrowRight`,callback:()=>R.moveCellSelection(`right`)},{hotkey:`Shift+ArrowUp`,callback:()=>R.extendCellSelection(`up`)},{hotkey:`Shift+ArrowDown`,callback:()=>R.extendCellSelection(`down`)},{hotkey:`Shift+ArrowLeft`,callback:()=>R.extendCellSelection(`left`)},{hotkey:`Shift+ArrowRight`,callback:()=>R.extendCellSelection(`right`)},{hotkey:`Mod+A`,callback:()=>R.selectAllCells()},{hotkey:`Escape`,callback:()=>R.resetCellSelection(!0)},{hotkey:`Mod+C`,callback:()=>{navigator.clipboard.writeText(be(R.getSelectedCellRangesData()))}}],{target:se});let Te=(0,c.useMemo)(()=>({paneRef1:T,paneRef2:E,paneRef3:O,paneRef4:k,paneRef5:A,paneRef6:j,gridWrapperRef:se,isSplit:ge,setIsSplit:_e,isFetching:g,isLoading:h,isError:m,refetch:_,height:b,globalFilter:i.globalFilter,setGlobalFilter:p,renderSubComponent:S,name:r,topRightSlot:ae}),[T,E,O,k,A,j,se,ge,_e,g,h,m,_,b,i.globalFilter,p,S,r,ae]);return(0,f.jsx)(Se.Provider,{value:{...Te,table:R},children:e})};function R(){let e=(0,c.useContext)(Se);if(!e)throw Error(`useGrid must be used within a GridContextProvider`);return e}function we(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=we(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Te(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=we(e))&&(r&&(r+=` `),r+=t);return r}var Ee=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,De=Te,Oe=(e,t)=>n=>{if(t?.variants==null)return De(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ee(t)||Ee(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return De(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},ke=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ae=(e,t)=>({classGroupId:e,validator:t}),je=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Me=`-`,Ne=[],Pe=`arbitrary..`,Fe=e=>{let t=Re(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Le(e);let n=e.split(Me);return Ie(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ke(i,t):t:i||Ne}return n[e]||Ne}}},Ie=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ie(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Me):e.slice(t).join(Me),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Le=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Pe+r:void 0})(),Re=e=>{let{theme:t,classGroups:n}=e;return ze(n,t)},ze=(e,t)=>{let n=je();for(let r in e){let i=e[r];Be(i,n,r,t)}return n},Be=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Ve(i,t,n,r)}},Ve=(e,t,n,r)=>{if(typeof e==`string`){He(e,t,n);return}if(typeof e==`function`){Ue(e,t,n,r);return}We(e,t,n,r)},He=(e,t,n)=>{let r=e===``?t:Ge(t,e);r.classGroupId=n},Ue=(e,t,n,r)=>{if(Ke(e)){Be(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ae(n,e))},We=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Be(o,Ge(t,a),n,r)}},Ge=(e,t)=>{let n=e,r=t.split(Me),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=je(),n.nextPart.set(t,i)),n=i}return n},Ke=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,qe=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Je=`!`,Ye=`:`,Xe=[],Ze=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Qe=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Ye){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Je)?(c=s.slice(0,-1),l=!0):s.startsWith(Je)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ze(t,l,c,u)};if(t){let e=t+Ye,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ze(Xe,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},$e=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},et=e=>({cache:qe(e.cacheSize),parseClassName:Qe(e),sortModifiers:$e(e),postfixLookupClassGroupIds:tt(e),...Fe(e)}),tt=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},nt=/\s+/,rt=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(nt),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),ee=f?_+Je:_,v=ee+g;if(s.indexOf(v)>-1)continue;s.push(v);let y=i(g,h);for(let e=0;e<y.length;++e){let t=y[e];s.push(ee+t)}l=t+(l.length>0?` `+l:l)}return l},it=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=at(n))&&(i&&(i+=` `),i+=r);return i},at=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=at(e[r]))&&(n&&(n+=` `),n+=t);return n},ot=(e,...t)=>{let n,r,i,a,o=o=>(n=et(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=rt(e,n);return i(e,a),a};return a=o,(...e)=>a(it(...e))},st=[],z=e=>{let t=t=>t[e]||st;return t.isThemeGetter=!0,t},ct=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ut=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ft=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ht=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>ut.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),H=e=>!!e&&Number.isInteger(Number(e)),gt=e=>e.endsWith(`%`)&&V(e.slice(0,-1)),U=e=>dt.test(e),_t=()=>!0,vt=e=>ft.test(e)&&!pt.test(e),yt=()=>!1,bt=e=>mt.test(e),xt=e=>ht.test(e),St=e=>!W(e)&&!G(e),Ct=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),wt=e=>K(e,Ht,yt),W=e=>ct.test(e),Tt=e=>K(e,Ut,vt),Et=e=>K(e,Wt,V),Dt=e=>K(e,Kt,_t),Ot=e=>K(e,Gt,yt),kt=e=>K(e,Bt,yt),At=e=>K(e,Vt,xt),jt=e=>K(e,qt,bt),G=e=>lt.test(e),Mt=e=>zt(e,Ut),Nt=e=>zt(e,Gt),Pt=e=>zt(e,Bt),Ft=e=>zt(e,Ht),It=e=>zt(e,Vt),Lt=e=>zt(e,qt,!0),Rt=e=>zt(e,Kt,!0),K=(e,t,n)=>{let r=ct.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zt=(e,t,n=!1)=>{let r=lt.exec(e);return r?r[1]?t(r[1]):n:!1},Bt=e=>e===`position`||e===`percentage`,Vt=e=>e===`image`||e===`url`,Ht=e=>e===`length`||e===`size`||e===`bg-size`,Ut=e=>e===`length`,Wt=e=>e===`number`,Gt=e=>e===`family-name`,Kt=e=>e===`number`||e===`weight`,qt=e=>e===`shadow`,Jt=ot(()=>{let e=z(`color`),t=z(`font`),n=z(`text`),r=z(`font-weight`),i=z(`tracking`),a=z(`leading`),o=z(`breakpoint`),s=z(`container`),c=z(`spacing`),l=z(`radius`),u=z(`shadow`),d=z(`inset-shadow`),f=z(`text-shadow`),p=z(`drop-shadow`),m=z(`blur`),h=z(`perspective`),g=z(`aspect`),_=z(`ease`),ee=z(`animate`),v=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],y=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],b=()=>[...y(),G,W],x=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],te=()=>[`auto`,`contain`,`none`],S=()=>[G,W,c],C=()=>[B,`full`,`auto`,...S()],ne=()=>[H,`none`,`subgrid`,G,W],re=()=>[`auto`,{span:[`full`,H,G,W]},H,G,W],w=()=>[H,`auto`,G,W],ie=()=>[`auto`,`min`,`max`,`fr`,G,W],ae=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],T=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],E=()=>[`auto`,...S()],D=()=>[B,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...S()],O=()=>[B,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...S()],k=()=>[B,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...S()],A=()=>[e,G,W],oe=()=>[...y(),Pt,kt,{position:[G,W]}],j=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,Ft,wt,{size:[G,W]}],ce=()=>[gt,Mt,Tt],M=()=>[``,`none`,`full`,l,G,W],N=()=>[``,V,Mt,Tt],P=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],F=()=>[V,gt,Pt,kt],ue=()=>[``,`none`,m,G,W],de=()=>[`none`,V,G,W],I=()=>[`none`,V,G,W],L=()=>[V,G,W],fe=()=>[B,`full`,...S()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[U],breakpoint:[U],color:[_t],container:[U],"drop-shadow":[U],ease:[`in`,`out`,`in-out`],font:[St],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[U],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[U],shadow:[U],spacing:[`px`,V],text:[U],"text-shadow":[U],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,B,W,G,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,G,W]}],"container-named":[Ct],columns:[{columns:[V,W,G,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:b()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[H,`auto`,G,W]}],basis:[{basis:[B,`full`,`auto`,s,...S()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[V,B,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,V,G,W]}],shrink:[{shrink:[``,V,G,W]}],order:[{order:[H,`first`,`last`,`none`,G,W]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...ae(),`normal`]}],"justify-items":[{"justify-items":[...T(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...T()]}],"align-content":[{content:[`normal`,...ae()]}],"align-items":[{items:[...T(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...T(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...T(),`baseline`]}],"place-self":[{"place-self":[`auto`,...T()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":S()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":S()}],"space-y-reverse":[`space-y-reverse`],size:[{size:D()}],"inline-size":[{inline:[`auto`,...O()]}],"min-inline-size":[{"min-inline":[`auto`,...O()]}],"max-inline-size":[{"max-inline":[`none`,...O()]}],"block-size":[{block:[`auto`,...k()]}],"min-block-size":[{"min-block":[`auto`,...k()]}],"max-block-size":[{"max-block":[`none`,...k()]}],w:[{w:[s,`screen`,...D()]}],"min-w":[{"min-w":[s,`screen`,`none`,...D()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...D()]}],h:[{h:[`screen`,`lh`,...D()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...D()]}],"max-h":[{"max-h":[`screen`,`lh`,...D()]}],"font-size":[{text:[`base`,n,Mt,Tt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Rt,Dt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,gt,W]}],"font-family":[{font:[Nt,Ot,t]}],"font-features":[{"font-features":[W]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,G,W]}],"line-clamp":[{"line-clamp":[V,`none`,G,Et]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":[`none`,G,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,G,W]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...P(),`wavy`]}],"text-decoration-thickness":[{decoration:[V,`from-font`,`auto`,G,Tt]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[V,`auto`,G,W]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:S()}],"tab-size":[{tab:[H,G,W]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,G,W]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,G,W]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},H,G,W],radial:[``,G,W],conic:[H,G,W]},It,At]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":N()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...P(),`hidden`,`none`]}],"divide-style":[{divide:[...P(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...P(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[V,G,W]}],"outline-w":[{outline:[``,V,Mt,Tt]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,Lt,jt]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,Lt,jt]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:N()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[V,Tt]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,Lt,jt]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[V,G,W]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[G,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,G,W]}],filter:[{filter:[``,`none`,G,W]}],blur:[{blur:ue()}],brightness:[{brightness:[V,G,W]}],contrast:[{contrast:[V,G,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Lt,jt]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,V,G,W]}],"hue-rotate":[{"hue-rotate":[V,G,W]}],invert:[{invert:[``,V,G,W]}],saturate:[{saturate:[V,G,W]}],sepia:[{sepia:[``,V,G,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,G,W]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[V,G,W]}],"backdrop-contrast":[{"backdrop-contrast":[V,G,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,V,G,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,G,W]}],"backdrop-invert":[{"backdrop-invert":[``,V,G,W]}],"backdrop-opacity":[{"backdrop-opacity":[V,G,W]}],"backdrop-saturate":[{"backdrop-saturate":[V,G,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,V,G,W]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,G,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[V,`initial`,G,W]}],ease:[{ease:[`linear`,`initial`,_,G,W]}],delay:[{delay:[V,G,W]}],animate:[{animate:[`none`,ee,G,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,G,W]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":[`scale-3d`],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[G,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":[`translate-none`],zoom:[{zoom:[H,G,W]}],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,G,W]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,G,W]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[V,Mt,Tt,Et]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function q(...e){return Jt(Te(e))}var Yt=Oe(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function J({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?p.Slot.Root:`button`;return(0,f.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:q(Yt({variant:t,size:n,className:e})),...i})}function Xt({className:e,type:t,...n}){return(0,f.jsx)(`input`,{type:t,"data-slot":`input`,className:q(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}function Zt({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:q(`group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5`,e),...t})}var Qt=Oe(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]`,"inline-end":`order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]`,"block-start":`order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2`,"block-end":`order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2`}},defaultVariants:{align:`inline-start`}});function $t({className:e,align:t=`inline-start`,...n}){return(0,f.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":t,className:q(Qt({align:t}),e),onClick:e=>{e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()},...n})}function en({className:e,...t}){return(0,f.jsx)(Xt,{"data-slot":`input-group-control`,className:q(`flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent`,e),...t})}function tn({className:e,...t}){return(0,f.jsx)(m.Loader2Icon,{"data-slot":`spinner`,role:`status`,"aria-label":`Loading`,className:q(`size-4 animate-spin`,e),...t})}var nn=(0,c.createContext)(null);function rn(){return(0,c.useContext)(nn)?.defaultOptions??{}}function an(e){return typeof e==`function`}function on(e,...t){return an(e)?e(...t):e}var sn=class{#e=!0;#t;#n;#r;#i;#a;#o;#s;#c=0;#l=5;#u=!1;#d=!1;#f=null;#p=()=>{this.debugLog(`Connected to event bus`),this.#a=!0,this.#u=!1,this.debugLog(`Emitting queued events`,this.#i),this.#i.forEach(e=>this.emitEventToBus(e)),this.#i=[],this.stopConnectLoop(),this.#n().removeEventListener(`tanstack-connect-success`,this.#p)};#m=()=>{if(this.#c<this.#l){this.#c++,this.dispatchCustomEvent(`tanstack-connect`,{});return}this.#n().removeEventListener(`tanstack-connect`,this.#m),this.#d=!0,this.debugLog(`Max retries reached, giving up on connection`),this.stopConnectLoop()};#h=()=>{this.#u||(this.#u=!0,this.#n().addEventListener(`tanstack-connect-success`,this.#p),this.#m())};constructor({pluginId:e,debug:t=!1,enabled:n=!0,reconnectEveryMs:r=300}){this.#t=e,this.#e=n,this.#n=this.getGlobalTarget,this.#r=t,this.debugLog(` Initializing event subscription for plugin`,this.#t),this.#i=[],this.#a=!1,this.#d=!1,this.#o=null,this.#s=r}startConnectLoop(){this.#o!==null||this.#a||(this.debugLog(`Starting connect loop (every ${this.#s}ms)`),this.#o=setInterval(this.#m,this.#s))}stopConnectLoop(){this.#u=!1,this.#o!==null&&(clearInterval(this.#o),this.#o=null,this.#i=[],this.debugLog(`Stopped connect loop`))}debugLog(...e){this.#r&&console.log(`🌴 [tanstack-devtools:${this.#t}-plugin]`,...e)}getGlobalTarget(){if(typeof globalThis<`u`&&globalThis.__TANSTACK_EVENT_TARGET__)return this.debugLog(`Using global event target`),globalThis.__TANSTACK_EVENT_TARGET__;if(typeof window<`u`&&window.addEventListener!==void 0)return this.debugLog(`Using window as event target`),window;let e=typeof EventTarget<`u`?new EventTarget:void 0;return e===void 0||e.addEventListener===void 0?(this.debugLog(`No event mechanism available, running in non-web environment`),{addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1}):(this.debugLog(`Using new EventTarget as fallback`),e)}getPluginId(){return this.#t}dispatchCustomEventShim(e,t){try{let n=new Event(e,{detail:t});this.#n().dispatchEvent(n)}catch{this.debugLog(`Failed to dispatch shim event`)}}dispatchCustomEvent(e,t){try{this.#n().dispatchEvent(new CustomEvent(e,{detail:t}))}catch{this.dispatchCustomEventShim(e,t)}}emitEventToBus(e){this.debugLog(`Emitting event to client bus`,e),this.dispatchCustomEvent(`tanstack-dispatch-event`,e)}createEventPayload(e,t){return{type:`${this.#t}:${e}`,payload:t,pluginId:this.#t}}emit(e,t){if(!this.#e){this.debugLog(`Event bus client is disabled, not emitting event`,e,t);return}if(this.#f&&(this.debugLog(`Emitting event to internal event target`,e,t),this.#f.dispatchEvent(new CustomEvent(`${this.#t}:${e}`,{detail:this.createEventPayload(e,t)}))),this.#d){this.debugLog(`Previously failed to connect, not emitting to bus`);return}if(!this.#a){this.debugLog(`Bus not available, will be pushed as soon as connected`),this.#i.push(this.createEventPayload(e,t)),typeof CustomEvent<`u`&&!this.#u&&(this.#h(),this.startConnectLoop());return}return this.emitEventToBus(this.createEventPayload(e,t))}on(e,t,n){let r=n?.withEventTarget??!1,i=`${this.#t}:${e}`;if(r&&(this.#f||=new EventTarget,this.#f.addEventListener(i,e=>{t(e.detail)})),!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`,i),()=>{};let a=e=>{this.debugLog(`Received event from bus`,e.detail),t(e.detail)};return this.#n().addEventListener(i,a),this.debugLog(`Registered event to bus`,i),()=>{r&&this.#f?.removeEventListener(i,a),this.#n().removeEventListener(i,a)}}onAll(e){if(!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`),()=>{};let t=t=>{let n=t.detail;e(n)};return this.#n().addEventListener(`tanstack-devtools-global`,t),()=>this.#n().removeEventListener(`tanstack-devtools-global`,t)}onAllPluginEvents(e){if(!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`),()=>{};let t=t=>{let n=t.detail;this.#t&&n.pluginId!==this.#t||e(n)};return this.#n().addEventListener(`tanstack-devtools-global`,t),()=>this.#n().removeEventListener(`tanstack-devtools-global`,t)}},cn=class{#e;constructor({pluginId:e}){this.#e=e}getPluginId(){return this.#e}createEventPayload(e,t){return{type:`${this.#e}:${e}`,payload:t,pluginId:this.#e}}emit(e,t){}on(e,t,n){return()=>{}}onAll(e){return()=>{}}onAllPluginEvents(e){return()=>{}}},ln=process.env.NODE_ENV===`development`?sn:cn,un=new Map;function dn(e,t){un.set(e,t)}function fn(e){if(e!==void 0)try{return JSON.parse(JSON.stringify(e))}catch{return null}}function pn(e){return typeof e.get==`function`?e.get():e.state}function mn(e){return{key:e.key,store:{state:fn(pn(e.store))},options:fn(e.options)}}var hn=class extends ln{constructor(e){super({pluginId:`pacer`,debug:e?.debug,reconnectEveryMs:1e3})}},gn=(e,t)=>{let n=t.key;n&&(dn(n,t),_n.emit(e,mn({...t,key:n})))},_n=new hn;function vn({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function yn(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var bn=[],xn=0,{link:Sn,unlink:Cn,propagate:wn,checkDirty:Tn,shallowPropagate:En}=vn({update(e){return e._update()},notify(e){bn[On++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,An(e))}}),Dn=0,On=0,Y,kn=0;function An(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Cn(n,e)}function jn(){if(!(kn>0)){for(;Dn<On;){let e=bn[Dn];bn[Dn++]=void 0,e.notify()}Dn=0,On=0}}function Mn(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return Y!==void 0&&Sn(i,Y,xn),i._snapshot},subscribe(e){let t=yn(e),n={current:!1},r=Nn(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Y,o=t?.compare??Object.is;if(n)Y=i,++xn,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Y=a,n&&(i.flags&=-5),An(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Tn(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&En(e)}}else e&32&&(i.flags=e&-33);return Y!==void 0&&Sn(i,Y,xn),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(wn(e),En(e),jn())}},i}function Nn(e){let t=()=>{let t=Y;Y=n,++xn,n.depsTail=void 0,n.flags=6;try{return e()}finally{Y=t,n.flags&=-5,An(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&Tn(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,An(this)}};return t(),n}var Pn=class{constructor(e,t){this.atom=Mn(e),this.get=this.get.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),t&&(this.actions=t(this))}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(yn(e))}};function Fn(){return{canLeadingExecute:!0,executionCount:0,isPending:!1,lastArgs:void 0,status:`idle`,maybeExecuteCount:0}}var In={enabled:!0,leading:!1,trailing:!0,wait:0},Ln=class{#e;constructor(e,t){this.fn=e,this.store=new Pn(Fn()),this.setOptions=e=>{this.options={...this.options,...e},this.#n()||this.cancel()},this.#t=e=>{this.store.setState(t=>{let n={...t,...e},{isPending:r}=n;return{...n,status:this.#n()?r?`pending`:`idle`:`disabled`}}),gn(`Debouncer`,this)},this.#n=()=>!!on(this.options.enabled,this),this.#r=()=>on(this.options.wait,this),this.maybeExecute=(...e)=>{if(!this.#n())return;this.#t({maybeExecuteCount:this.store.state.maybeExecuteCount+1});let t=!1;this.options.leading&&this.store.state.canLeadingExecute&&(this.#t({canLeadingExecute:!1}),t=!0,this.#i(...e)),this.options.trailing&&this.#t({isPending:!0,lastArgs:e}),this.#e&&clearTimeout(this.#e),this.#e=setTimeout(()=>{this.#t({canLeadingExecute:!0}),this.options.trailing&&!t&&this.#i(...e)},this.#r())},this.#i=(...e)=>{this.#n()&&(this.fn(...e),this.#t({executionCount:this.store.state.executionCount+1,isPending:!1,lastArgs:void 0}),this.options.onExecute?.(e,this))},this.flush=()=>{this.store.state.isPending&&this.store.state.lastArgs&&(this.#a(),this.#i(...this.store.state.lastArgs))},this.#a=()=>{this.#e&&=(clearTimeout(this.#e),void 0)},this.cancel=()=>{this.#a(),this.#t({canLeadingExecute:!0,isPending:!1})},this.reset=()=>{this.#t(Fn())},this.key=t.key,this.options={...In,...t},this.#t(this.options.initialState??{}),this.key&&_n.on(`d-Debouncer`,e=>{e.payload.key===this.key&&(this.#t(e.payload.store.state),this.setOptions(e.payload.options))})}#t;#n;#r;#i;#a};function Rn(e,t,n=()=>({})){let r={...rn().debouncer,...t},[i]=(0,c.useState)(()=>{let t=new Ln(e,r);return t.Subscribe=function(e){let n=(0,u.useSelector)(t.store,e.selector,{compare:u.shallow});return typeof e.children==`function`?e.children(n):e.children},t});i.fn=e,i.setOptions(r),(0,c.useEffect)(()=>()=>{r.onUnmount?r.onUnmount(i):i.cancel()},[]);let a=(0,u.useSelector)(i.store,n,{compare:u.shallow});return(0,c.useMemo)(()=>({...i,state:a}),[i,a])}function zn(e,t){let n=Rn(e,t).maybeExecute;return(0,c.useCallback)((...e)=>n(...e),[n])}var Bn=()=>{let{setGlobalFilter:e,globalFilter:t,topRightSlot:n,isFetching:r}=R(),[i,a]=(0,c.useState)(String(t??``));(0,c.useEffect)(()=>{a(String(t??``))},[t]);let o=zn(t=>e?.(t),{wait:300});return(0,f.jsxs)(`div`,{style:{paddingInline:`16px`,height:`64px`,borderBottom:`1px solid var(--border)`,display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,f.jsx)(`div`,{style:{display:`flex`,justifyItems:`center`,gap:`16px`},children:(0,f.jsxs)(Zt,{children:[(0,f.jsx)(en,{style:{width:`240px`},type:`search`,value:i,onChange:e=>{let t=e.target.value;a(t),o(t)},placeholder:`Search by query`}),r&&(0,f.jsx)($t,{align:`inline-end`,children:(0,f.jsx)(tn,{})})]})}),(0,f.jsx)(`div`,{children:n})]})};function X({className:e,...t}){return(0,f.jsx)(`table`,{"data-slot":`table`,className:q(`w-full caption-bottom text-sm`,e),...t})}function Vn({className:e,...t}){return(0,f.jsx)(`thead`,{"data-slot":`table-header`,className:q(`[&_tr]:border-b`,e),...t})}function Z({className:e,...t}){return(0,f.jsx)(`tbody`,{"data-slot":`table-body`,className:q(`[&_tr:last-child]:border-0`,e),...t})}function Q({className:e,...t}){return(0,f.jsx)(`tr`,{"data-slot":`table-row`,className:q(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,e),...t})}function Hn({className:e,...t}){return(0,f.jsx)(`th`,{"data-slot":`table-head`,className:q(`h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0`,e),...t})}function $({className:e,...t}){return(0,f.jsx)(`td`,{"data-slot":`table-cell`,className:q(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0`,e),...t})}var Un=(e,t)=>{let n=e.getIsPinned(),r=n===`start`&&e.getIsLastColumn(`start`),i=n===`end`&&e.getIsFirstColumn(`end`);return{boxShadow:r?`-1px 0 1px -1px gray inset`:i?`1px 0 1px -1px gray inset`:void 0,left:n===`start`&&!t?`${e.getStart(`start`)}px`:void 0,right:n===`end`&&!t?`${e.getAfter(`end`)}px`:void 0,opacity:n?.95:1,position:n?t?`relative`:`sticky`:`relative`,width:e.getSize(),zIndex:+!!n,backgroundColor:n&&!t?`var(--background)`:void 0}},Wn=e=>e.getIsSelected()?{backgroundColor:`rgba(59, 130, 246, 0.30)`}:e.getIsFocused()?{outline:`1px solid var(--ring)`,outlineOffset:`-1px`}:{},Gn=({cell:e})=>{"use no memo";let{table:t,isSplit:n}=R(),r=(0,c.useRef)(null),i={width:e.column.getSize(),minWidth:e.column.getSize(),maxWidth:e.column.getSize(),overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,border:`1px solid`,borderColor:`var(--border)`,userSelect:`none`,cursor:e.getCanSelect()?`cell`:void 0,transition:`padding 0.2s`,padding:t.state.density===`sm`?`4px`:t.state.density===`md`?`8px`:`16px`,...Un(e.column,n),...Wn(e)};(0,c.useLayoutEffect)(()=>{let e=r.current;if(!e)return;let t=()=>{let{height:t}=e.getBoundingClientRect();document.documentElement.style.setProperty(`--cell-h`,`${t}px`)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[n]);let a=e.getRowSpan(),o=e.getColSpan();return a===0||o===0?null:(0,f.jsx)($,{ref:r,style:i,rowSpan:a,colSpan:o,tabIndex:e.getCanSelect()?e.getTabIndex():void 0,onMouseDown:e.getCanSelect()?e.getSelectionStartHandler():void 0,onMouseEnter:e.getCanSelect()?e.getSelectionExtendHandler():void 0,title:e.getValue()==null?void 0:String(e.getValue()),children:(0,f.jsx)(t.FlexRender,{cell:e})})};function Kn({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`empty`,className:q(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance`,e),...t})}function qn({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`empty-header`,className:q(`flex max-w-sm flex-col items-center gap-2`,e),...t})}var Jn=Oe(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`}});function Yn({className:e,variant:t=`default`,...n}){return(0,f.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":t,className:q(Jn({variant:t,className:e})),...n})}function Xn({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`empty-title`,className:q(`font-heading text-sm font-medium tracking-tight`,e),...t})}function Zn({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`empty-description`,className:q(`text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,e),...t})}var Qn=()=>(0,f.jsx)(`div`,{style:{position:`absolute`,left:`50%`,top:`50%`,transform:`translate(-50%, -50%)`},children:(0,f.jsx)(Kn,{children:(0,f.jsxs)(qn,{children:[(0,f.jsx)(Yn,{variant:`icon`,children:(0,f.jsx)(m.Database,{})}),(0,f.jsx)(Xn,{children:`No data`}),(0,f.jsx)(Zn,{children:`No data found`})]})})}),$n=()=>{let{table:e,isSplit:t}=R(),n=(0,c.useMemo)(()=>t?e.getCenterVisibleLeafColumns():e.getVisibleLeafColumns(),[e,t]);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(X,{children:(0,f.jsx)(Z,{children:(0,f.jsx)(Q,{children:n.map((e,t)=>(0,f.jsx)($,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})}),(0,f.jsx)(Qn,{})]})},er=()=>{let[e,t]=(0,c.useState)(()=>typeof navigator<`u`?navigator.onLine:!0);return(0,c.useEffect)(()=>{let e=()=>t(!0),n=()=>t(!1);return window.addEventListener(`online`,e),window.addEventListener(`offline`,n),()=>{window.removeEventListener(`online`,e),window.removeEventListener(`offline`,n)}},[]),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`},children:[(0,f.jsx)(m.ServerOff,{size:52,style:{color:`var(--red-500, #ef4444)`,marginBottom:`24px`}}),(0,f.jsx)(`h2`,{style:{fontSize:`24px`,fontWeight:600,color:`var(--red-600, #dc2626)`,marginBottom:`12px`},children:`Failed to Load Data`}),(0,f.jsx)(`p`,{style:{fontSize:`14px`,color:`var(--muted-foreground)`,marginBottom:`24px`,textAlign:`center`,maxWidth:`448px`},children:e?`Something went wrong. Please try refreshing the page.`:`You're currently offline. Please check your internet connection.`}),(0,f.jsx)(J,{onClick:()=>{e&&window.location.reload()},variant:`outline`,disabled:!e,children:e?`Refresh Page`:`No Connection`})]})},tr=()=>(0,f.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`},children:(0,f.jsx)(er,{})});function nr({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`skeleton`,className:q(`animate-pulse rounded-md bg-muted`,e),...t})}var rr=[60,100,80,50,70,40,90],ir=({column:e,i:t,j:n})=>(0,f.jsx)(f.Fragment,{children:[`select`].includes(e.id)?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`style`,{children:`
|
|
5
5
|
@keyframes grid-skeleton-spin {
|
|
6
6
|
from {
|
|
7
7
|
transform: rotate(0deg);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
transform: rotate(360deg);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
`}),(0,f.jsx)(m.Loader,{size:16,style:{animation:`grid-skeleton-spin 1s linear infinite`}})]}):[`actions`,`pin`,`drag-handle`,`rowNumber`].includes(e.id)?(0,f.jsx)(nr,{style:{width:`100%`,height:`16px`}}):(0,f.jsx)(nr,{style:{width:`${rr[(t+n)%rr.length]}px`,height:`16px`}})}),ar=()=>{let{table:e,isSplit:t}=R(),n=(t?e.getCenterHeaderGroups():e.getHeaderGroups()).map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,f.jsx)(X,{children:(0,f.jsx)(Z,{children:[...Array(20)].map((r,i)=>(0,f.jsx)(Q,{children:n.map((n,r)=>(0,f.jsx)($,{style:{width:n.getSize(),minWidth:n.getSize(),maxWidth:n.getSize(),borderRight:`1px solid`,borderColor:`var(--border)`,transition:`padding 0.2s`,padding:e.state.density===`sm`?`4px`:e.state.density===`md`?`8px`:`16px`,...Un(n,t)},children:(0,f.jsx)(ir,{column:n,i,j:r})},r))},i))})})};function or({row:e}){"use no memo";let{table:t,isSplit:n}=R();return(0,f.jsx)(Q,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:(n?e.getCenterVisibleCells():e.getVisibleCells()).map(e=>(0,f.jsx)(Gn,{cell:e},e.id))})}var sr=()=>{"use no memo";let{table:e,isSplit:t,isLoading:n,isError:r,renderSubComponent:i}=R();return n?(0,f.jsx)(ar,{}):r?(0,f.jsx)(tr,{}):e.getRowModel().rows.length===0?(0,f.jsx)($n,{}):(0,f.jsxs)(X,{style:{width:e.getCenterTotalSize()},children:[e.getTopRows().map(e=>(0,f.jsx)(or,{row:e},e.id)),(0,f.jsx)(Z,{children:e.getRowModel().rows.map(e=>(0,f.jsxs)(c.default.Fragment,{children:[(0,f.jsx)(Q,{"data-state":e.getIsSelected()&&`selected`,children:(t?e.getCenterVisibleCells():e.getVisibleCells()).map(e=>(0,f.jsx)(Gn,{cell:e},e.id))}),i&&e.getIsExpanded()&&(0,f.jsx)(Q,{children:(0,f.jsx)($,{colSpan:e.getVisibleCells().length,children:i({row:e})})})]},e.id))}),e.getBottomRows().map(e=>(0,f.jsx)(or,{row:e},e.id))]})};function cr({value:e,onChange:t,debounce:n=500,...r}){let[i,a]=c.default.useState(e);c.default.useEffect(()=>{a(e)},[e]);let o=zn(t,{wait:n});return(0,f.jsx)(Xt,{...r,value:i,onChange:e=>{a(e.target.value),o(e.target.value)}})}function lr({...e}){return(0,f.jsx)(p.Select.Root,{"data-slot":`select`,...e})}function ur({className:e,...t}){return(0,f.jsx)(p.Select.Group,{"data-slot":`select-group`,className:q(`scroll-my-1 p-1`,e),...t})}function dr({...e}){return(0,f.jsx)(p.Select.Value,{"data-slot":`select-value`,...e})}function fr({className:e,size:t=`default`,children:n,...r}){return(0,f.jsxs)(p.Select.Trigger,{"data-slot":`select-trigger`,"data-size":t,className:q(`flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,f.jsx)(p.Select.Icon,{asChild:!0,children:(0,f.jsx)(m.ChevronDownIcon,{className:`pointer-events-none size-4 text-muted-foreground`})})]})}function pr({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,f.jsx)(p.Select.Portal,{children:(0,f.jsxs)(p.Select.Content,{"data-slot":`select-content`,"data-align-trigger":n===`item-aligned`,className:q(`relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,f.jsx)(hr,{}),(0,f.jsx)(p.Select.Viewport,{"data-position":n,className:q(`data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)`,n===`popper`&&``),children:t}),(0,f.jsx)(gr,{})]})})}function mr({className:e,children:t,...n}){return(0,f.jsxs)(p.Select.Item,{"data-slot":`select-item`,className:q(`relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,f.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`,children:(0,f.jsx)(p.Select.ItemIndicator,{children:(0,f.jsx)(m.CheckIcon,{className:`pointer-events-none`})})}),(0,f.jsx)(p.Select.ItemText,{children:t})]})}function hr({className:e,...t}){return(0,f.jsx)(p.Select.ScrollUpButton,{"data-slot":`select-scroll-up-button`,className:q(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,f.jsx)(m.ChevronUpIcon,{})})}function gr({className:e,...t}){return(0,f.jsx)(p.Select.ScrollDownButton,{"data-slot":`select-scroll-down-button`,className:q(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,f.jsx)(m.ChevronDownIcon,{})})}var _r=({column:e})=>{"use no memo";let t=e.getFilterValue(),{filterVariant:n}=e.columnDef.meta??{},{isFetching:r}=R(),i=!r&&n===`select`?Array.from(e.getFacetedUniqueValues().keys()).sort().slice(0,5e3):[];return e.getCanFilter()?(0,f.jsx)(`div`,{style:{padding:`4px`,width:`100%`,borderTop:`1px solid var(--border)`},children:n===`range`?(0,f.jsxs)(`div`,{style:{display:`flex`,gap:`4px`},children:[(0,f.jsx)(cr,{style:{height:`28px`},type:`number`,value:t?.[0]??``,onChange:t=>e.setFilterValue(e=>[t,e?.[1]]),placeholder:`Min`}),(0,f.jsx)(cr,{style:{height:`28px`},type:`number`,value:t?.[1]??``,onChange:t=>e.setFilterValue(e=>[e?.[0],t]),placeholder:`Max`})]}):n===`select`?(0,f.jsxs)(lr,{value:t?.toString()??`all`,onValueChange:t=>e.setFilterValue(t===`all`?void 0:t),children:[(0,f.jsx)(fr,{style:{width:`100%`},size:`sm`,children:(0,f.jsx)(dr,{})}),(0,f.jsx)(pr,{children:(0,f.jsxs)(ur,{children:[(0,f.jsx)(mr,{value:`all`,children:`All`}),i.map(e=>(0,f.jsx)(mr,{value:String(e),children:String(e)},String(e)))]})})]}):n&&[`text`,`time`,`date`,`datetime-local`,`month`,`week`,`number`,`tel`,`url`,`color`,`search`].includes(n)?(0,f.jsx)(cr,{style:{height:`28px`},onChange:t=>e.setFilterValue(t),placeholder:`Search...`,type:n,value:t??``}):(0,f.jsx)(`div`,{style:{height:`28px`,opacity:0,visibility:`hidden`}})}):null};function vr({...e}){return(0,f.jsx)(p.DropdownMenu.Root,{"data-slot":`dropdown-menu`,...e})}function yr({...e}){return(0,f.jsx)(p.DropdownMenu.Trigger,{"data-slot":`dropdown-menu-trigger`,...e})}function br({className:e,align:t=`start`,sideOffset:n=4,...r}){return(0,f.jsx)(p.DropdownMenu.Portal,{children:(0,f.jsx)(p.DropdownMenu.Content,{"data-slot":`dropdown-menu-content`,sideOffset:n,align:t,className:q(`z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r})})}function xr({...e}){return(0,f.jsx)(p.DropdownMenu.Group,{"data-slot":`dropdown-menu-group`,...e})}function Sr({className:e,inset:t,variant:n=`default`,...r}){return(0,f.jsx)(p.DropdownMenu.Item,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:q(`group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function Cr({className:e,...t}){return(0,f.jsx)(p.DropdownMenu.Separator,{"data-slot":`dropdown-menu-separator`,className:q(`-mx-1 my-1 h-px bg-border`,e),...t})}function wr({className:e,...t}){return(0,f.jsx)(`span`,{"data-slot":`dropdown-menu-shortcut`,className:q(`ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground`,e),...t})}var Tr=({header:e})=>{"use no memo";let{isLoading:t,isError:n}=R();return e.column.getCanFilter()?(0,f.jsxs)(vr,{children:[(0,f.jsx)(yr,{asChild:!0,children:(0,f.jsx)(J,{size:`icon-xs`,variant:`ghost`,disabled:t||n,children:(0,f.jsx)(m.EllipsisVertical,{})})}),(0,f.jsxs)(br,{align:`end`,children:[(0,f.jsxs)(xr,{children:[(0,f.jsxs)(Sr,{onClick:()=>{e.column.toggleSorting(!1)},disabled:!e.column.getCanSort(),children:[`Sort ASC`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.ArrowUp,{})})]}),(0,f.jsxs)(Sr,{onClick:()=>{e.column.toggleSorting(!0)},disabled:!e.column.getCanSort(),children:[`Sort DESC`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.ArrowDown,{})})]})]}),(0,f.jsx)(Cr,{}),!e.isPlaceholder&&e.column.getCanPin()&&(0,f.jsxs)(xr,{children:[e.column.getIsPinned()!==`start`&&(0,f.jsxs)(Sr,{onClick:()=>{e.column.pin(`start`)},children:[`Pin to left`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.PinIcon,{style:{transform:`rotate(45deg)`}})})]}),e.column.getIsPinned()&&(0,f.jsxs)(Sr,{onClick:()=>{e.column.pin(!1)},children:[`Unpin`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.PinOff,{})})]}),e.column.getIsPinned()!==`end`&&(0,f.jsxs)(Sr,{onClick:()=>{e.column.pin(`end`)},children:[`Pin to right`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.PinIcon,{style:{transform:`rotate(-45deg)`}})})]})]}),(0,f.jsx)(Cr,{}),(0,f.jsx)(xr,{children:(0,f.jsxs)(Sr,{onClick:()=>{e.column.toggleVisibility(!1)},disabled:!e.column.getCanHide(),children:[`Hide column`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.EyeOff,{})})]})})]})]}):null},Er=({header:e})=>{"use no memo";let t=e.column.getIsResizing();return(0,f.jsx)(`div`,{className:`header-resizer`,onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),style:{position:`absolute`,top:0,right:0,height:`100%`,width:`5px`,backgroundColor:t?`var(--primary)`:`rgba(0, 0, 0, 0.5)`,cursor:`col-resize`,userSelect:`none`,touchAction:`none`,opacity:+!!t}})},Dr=({header:e})=>{"use no memo";let{table:t}=R(),n=e.column.getCanSort();return(0,f.jsxs)(`div`,{onClick:e.column.getToggleSortingHandler(),title:e.column.getCanSort()?e.column.getNextSortingOrder()===`asc`?`Sort ascending`:e.column.getNextSortingOrder()===`desc`?`Sort descending`:`Clear sort`:void 0,style:{display:`flex`,alignItems:`center`,gap:1,cursor:n?`pointer`:`default`,userSelect:n?`none`:`auto`},children:[(0,f.jsx)(t.FlexRender,{header:e}),{asc:(0,f.jsx)(m.ChevronUpIcon,{style:{width:16,height:16}}),desc:(0,f.jsx)(m.ChevronDownIcon,{style:{width:16,height:16}})}[e.column.getIsSorted()]??null]})},Or=({header:e})=>{"use no memo";let{isSplit:t}=R(),n={position:`relative`,whiteSpace:`nowrap`,width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize(),borderRight:`1px solid`,borderColor:`var(--border)`,padding:0,...Un(e.column,t)};return(0,f.jsxs)(Hn,{colSpan:e.colSpan,style:n,children:[e.isPlaceholder?null:(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`},children:[(0,f.jsxs)(`div`,{style:{padding:`8px`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`4px`},children:[(0,f.jsx)(Dr,{header:e}),(0,f.jsx)(Tr,{header:e})]}),(0,f.jsx)(_r,{column:e.column})]}),(0,f.jsx)(Er,{header:e})]})},kr=()=>{"use no memo";let{table:e,isSplit:t}=R();return(0,f.jsx)(X,{style:{width:e.getCenterTotalSize()},children:(0,f.jsx)(Vn,{children:(t?e.getCenterHeaderGroups():e.getHeaderGroups()).map(e=>(0,f.jsx)(Q,{children:e.headers.map(e=>(0,f.jsx)(Or,{header:e},e.id))},e.id))})})},Ar=()=>{"use no memo";let{paneRef1:e,paneRef2:t,height:n}=R();return(0,f.jsxs)(c.default.Fragment,{children:[(0,f.jsx)(Bn,{}),(0,f.jsx)(`div`,{style:{width:`100%`,overflowY:`scroll`,overflowX:`hidden`,scrollbarColor:`transparent transparent`},ref:e,children:(0,f.jsx)(kr,{})}),(0,f.jsx)(`div`,{style:{width:`100%`,overflow:`scroll`,height:n},ref:t,children:(0,f.jsx)(sr,{})})]})},jr=()=>{let{table:e}=R();return(0,f.jsx)(X,{children:(0,f.jsx)(Z,{children:(0,f.jsx)(Q,{children:e.getEndVisibleLeafColumns().map((e,t)=>(0,f.jsx)($,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})})},Mr=()=>{let{table:e,isSplit:t}=R(),n=e.getStartHeaderGroups().map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,f.jsx)(X,{children:(0,f.jsx)(Z,{children:[...Array(20)].map((r,i)=>(0,f.jsx)(Q,{children:n.map((n,r)=>(0,f.jsx)($,{style:{width:n.getSize(),minWidth:n.getSize(),maxWidth:n.getSize(),borderRight:`1px solid`,borderColor:`var(--border)`,transition:`padding 0.2s`,padding:e.state.density===`sm`?`4px`:e.state.density===`md`?`8px`:`16px`,...Un(n,t)},children:(0,f.jsx)(ir,{column:n,i,j:r})},r))},i))})})};function Nr({row:e}){"use no memo";let{table:t}=R();return(0,f.jsx)(Q,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:e.getEndVisibleCells().map(e=>(0,f.jsx)(Gn,{cell:e},e.id))})}var Pr=()=>{"use no memo";let{table:e,isLoading:t,isError:n,renderSubComponent:r}=R();return t?(0,f.jsx)(Mr,{}):n?(0,f.jsx)(`div`,{children:`Error`}):e.getRowModel().rows.length===0?(0,f.jsx)(jr,{}):(0,f.jsx)(X,{children:(0,f.jsxs)(Z,{children:[e.getTopRows().map(e=>(0,f.jsx)(Nr,{row:e},e.id)),e.getRowModel().rows.map(e=>(0,f.jsxs)(c.default.Fragment,{children:[(0,f.jsx)(Q,{"data-state":e.getIsSelected()&&`selected`,children:e.getEndVisibleCells().map(e=>(0,f.jsx)(Gn,{cell:e},e.id))}),r&&e.getIsExpanded()&&(0,f.jsx)(Q,{children:(0,f.jsx)($,{colSpan:e.getVisibleCells().length,children:r({row:e})})})]},e.id)),e.getTopRows().map(e=>(0,f.jsx)(Nr,{row:e},e.id))]})})},Fr=()=>{"use no memo";let{table:e}=R();return(0,f.jsx)(X,{children:(0,f.jsx)(Vn,{children:e.getEndHeaderGroups().map(e=>(0,f.jsx)(Q,{children:e.headers.map(e=>(0,f.jsx)(Or,{header:e},e.id))},e.id))})})},Ir=()=>{"use no memo";let{paneRef5:e,paneRef6:t,height:n,isError:r,isSplit:i,table:a}=R();return(0,f.jsx)(f.Fragment,{children:!r&&i&&(a.state.columnPinning?.end?.length??0)>0?(0,f.jsxs)(`div`,{style:{maxWidth:`220px`,overflow:`hidden`},children:[(0,f.jsx)(`div`,{style:{height:`64px`,borderBottom:`1px solid var(--border)`}}),(0,f.jsx)(`div`,{style:{width:`100%`,overflowY:`scroll`,overflowX:`hidden`,scrollbarColor:`transparent transparent`},ref:e,children:(0,f.jsx)(Fr,{})}),(0,f.jsx)(`div`,{style:{width:`100%`,overflow:`scroll`,height:n},ref:t,children:(0,f.jsx)(Pr,{})})]}):null})},Lr=()=>{let{table:e}=R();return(0,f.jsx)(X,{children:(0,f.jsx)(Z,{children:(0,f.jsx)(Q,{children:e.getStartVisibleLeafColumns().map((e,t)=>(0,f.jsx)($,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})})},Rr=()=>{let{table:e,isSplit:t}=R(),n=e.getStartHeaderGroups().map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,f.jsx)(X,{children:(0,f.jsx)(Z,{children:[...Array(20)].map((r,i)=>(0,f.jsx)(Q,{children:n.map((n,r)=>(0,f.jsx)($,{style:{width:n.getSize(),minWidth:n.getSize(),maxWidth:n.getSize(),borderRight:`1px solid`,borderColor:`var(--border)`,transition:`padding 0.2s`,padding:e.state.density===`sm`?`4px`:e.state.density===`md`?`8px`:`16px`,...Un(n,t)},children:(0,f.jsx)(ir,{column:n,i,j:r})},r))},i))})})};function zr({row:e}){"use no memo";let{table:t}=R();return(0,f.jsx)(Q,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:e.getStartVisibleCells().map(e=>(0,f.jsx)(Gn,{cell:e},e.id))})}var Br=()=>{"use no memo";let{table:e,isLoading:t,isError:n,renderSubComponent:r}=R();return t?(0,f.jsx)(Rr,{}):n?(0,f.jsx)(`div`,{children:`Error`}):e.getRowModel().rows.length===0?(0,f.jsx)(Lr,{}):(0,f.jsx)(X,{children:(0,f.jsxs)(Z,{children:[e.getTopRows().map(e=>(0,f.jsx)(zr,{row:e},e.id)),e.getRowModel().rows.map(e=>(0,f.jsxs)(c.default.Fragment,{children:[(0,f.jsx)(Q,{"data-state":e.getIsSelected()&&`selected`,children:e.getStartVisibleCells().map(e=>(0,f.jsx)(Gn,{cell:e},e.id))}),r&&e.getIsExpanded()&&(0,f.jsx)(Q,{children:(0,f.jsx)($,{colSpan:e.getVisibleCells().length,children:r({row:e})})})]},e.id)),e.getBottomRows().map(e=>(0,f.jsx)(zr,{row:e},e.id))]})})},Vr=()=>{"use no memo";let{table:e}=R();return(0,f.jsx)(X,{children:(0,f.jsx)(Vn,{children:e.getStartHeaderGroups().map(e=>(0,f.jsx)(Q,{children:e.headers.map(e=>(0,f.jsx)(Or,{header:e},e.id))},e.id))})})},Hr=()=>{"use no memo";let{paneRef3:e,paneRef4:t,height:n,isError:r,isSplit:i,table:a}=R();return(0,f.jsx)(f.Fragment,{children:!r&&i&&(a.state.columnPinning?.start?.length??0)>0?(0,f.jsxs)(`div`,{style:{maxWidth:`220px`,overflow:`hidden`},children:[(0,f.jsx)(`div`,{style:{height:`64px`,borderBottom:`1px solid var(--border)`}}),(0,f.jsx)(`div`,{style:{width:`100%`,overflowY:`scroll`,overflowX:`hidden`,scrollbarColor:`transparent transparent`},ref:e,children:(0,f.jsx)(Vr,{})}),(0,f.jsx)(`div`,{style:{width:`100%`,overflow:`scroll`,height:n},ref:t,children:(0,f.jsx)(Br,{})})]}):null})},Ur=()=>{let{table:e}=R();return(0,f.jsxs)(`div`,{style:{minHeight:`50px`,padding:`16px`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,flexWrap:`wrap`,gap:`16px`},children:[(0,f.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`16px`,fontSize:`14px`,color:`var(--muted-foreground)`},children:[(0,f.jsxs)(`span`,{children:[`Showing `,e.getRowModel().rows.length.toLocaleString(),` of`,` `,e.getRowCount().toLocaleString(),` Rows`]}),e.getSelectedRowModel().rows.length>0&&(0,f.jsxs)(`span`,{children:[e.getSelectedRowModel().rows.length.toLocaleString(),` selected`]}),(0,f.jsx)(e.Subscribe,{source:e.atoms.cellSelection,children:()=>e.getSelectedCellCount()>0?(0,f.jsxs)(`span`,{children:[e.getSelectedCellCount().toLocaleString(),` cells selected across `,e.getCellSelectionRowIds().length.toLocaleString(),` `,`rows and `,e.getCellSelectionColumnIds().length,` columns`]}):null})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`8px`},children:[(0,f.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:`4px`,fontSize:`14px`},children:[`Page`,` `,(0,f.jsxs)(`strong`,{children:[(e.state.pagination.pageIndex+1).toLocaleString(),` of`,` `,e.getPageCount().toLocaleString()]})]}),(0,f.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:`4px`,fontSize:`14px`},children:[`Go to page:`,(0,f.jsx)(Xt,{type:`number`,min:`1`,max:e.getPageCount(),value:e.state.pagination.pageIndex+1,onChange:t=>{let n=t.target.value?Number(t.target.value)-1:0;e.setPageIndex(n)},style:{height:`28px`,width:`64px`}})]}),(0,f.jsxs)(lr,{value:String(e.state.pagination.pageSize),onValueChange:t=>e.setPageSize(Number(t)),children:[(0,f.jsx)(fr,{size:`sm`,children:(0,f.jsx)(dr,{})}),(0,f.jsx)(pr,{children:[20,30,40,50,60,70,80,90,100].map(e=>(0,f.jsxs)(mr,{value:String(e),children:[`Show `,e]},e))})]}),(0,f.jsx)(J,{variant:`outline`,size:`icon-sm`,onClick:()=>e.firstPage(),disabled:!e.getCanPreviousPage(),children:(0,f.jsx)(m.ChevronsLeft,{size:16})}),(0,f.jsx)(J,{variant:`outline`,size:`icon-sm`,onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:(0,f.jsx)(m.ChevronLeft,{size:16})}),(0,f.jsx)(J,{variant:`outline`,size:`icon-sm`,onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:(0,f.jsx)(m.ChevronRight,{size:16})}),(0,f.jsx)(J,{variant:`outline`,size:`icon-sm`,onClick:()=>e.lastPage(),disabled:!e.getCanLastPage(),children:(0,f.jsx)(m.ChevronsRight,{size:16})})]})]})},Wr=Oe(`group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1`,{variants:{orientation:{horizontal:`[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!`,vertical:`flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!`}},defaultVariants:{orientation:`horizontal`}});function Gr({className:e,orientation:t,...n}){return(0,f.jsx)(`div`,{role:`group`,"data-slot":`button-group`,"data-orientation":t,className:q(Wr({orientation:t}),e),...n})}function Kr({className:e,...t}){return(0,f.jsx)(p.Checkbox.Root,{"data-slot":`checkbox`,className:q(`peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary`,e),...t,children:(0,f.jsx)(p.Checkbox.Indicator,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none [&>svg]:size-3.5`,children:(0,f.jsx)(m.CheckIcon,{})})})}function qr({className:e,...t}){return(0,f.jsx)(p.Label.Root,{"data-slot":`label`,className:q(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}var Jr=()=>{let{table:e,isSplit:t,setIsSplit:n}=R(),[r,i]=(0,c.useState)(``),a=(0,c.useMemo)(()=>e.getAllLeafColumns().filter(e=>![`rowNumber`].includes(e.id)).filter(e=>e.id.toLowerCase().includes(r.toLowerCase())),[r,e]),o=()=>{let t=e.getAllLeafColumns().map(e=>e.id);for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}e.setColumnOrder(t)};return(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,height:`100%`,paddingBlock:`8px`,gap:`8px`},children:[(0,f.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,paddingInline:`8px`,paddingBottom:`8px`,height:`36px`,borderBottom:`1px solid var(--border)`},children:[(0,f.jsxs)(`h1`,{style:{fontSize:`14px`,fontWeight:`500`},children:[`Columns (`,e.getAllLeafColumns().length,`)`]}),(0,f.jsx)(J,{title:`Restore`,variant:`ghost`,size:`icon-sm`,onClick:()=>{e.resetColumnVisibility()},children:(0,f.jsx)(m.RotateCcw,{})})]}),(0,f.jsx)(`div`,{style:{paddingInline:`8px`},children:(0,f.jsx)(Xt,{type:`search`,placeholder:`Search columns...`,value:r,onChange:e=>i(e.target.value)})}),(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,flex:1,overflowY:`auto`,paddingInline:`8px`},children:(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`16px`},children:a.length>0?(0,f.jsx)(c.default.Fragment,{children:a.map(e=>(0,f.jsxs)(qr,{style:{display:`flex`,alignItems:`center`,minWidth:0},title:e.id.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/^./,e=>e.toUpperCase()),children:[(0,f.jsx)(Kr,{checked:e.getIsVisible(),onCheckedChange:t=>e.toggleVisibility(t===!0)}),(0,f.jsx)(`span`,{style:{overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,minWidth:0,flex:1},children:e.id.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/^./,e=>e.toUpperCase())})]},e.id))}):(0,f.jsx)(`div`,{className:`text-center`,children:`No columns found`})})}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`8px`,paddingInline:`8px`},children:[(0,f.jsxs)(Gr,{style:{width:`100%`},children:[(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:`Shuffle`,style:{flex:1},onClick:()=>o(),children:(0,f.jsx)(m.Shuffle,{})}),(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:`Reset Order`,style:{flex:1},onClick:()=>e.resetColumnOrder(),disabled:e.state.columnOrder.length===0,children:(0,f.jsx)(m.RotateCcw,{})}),(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:`Reverse Order`,style:{flex:1},onClick:()=>e.setColumnOrder([...e.getAllLeafColumns().map(e=>e.id)].reverse()),children:(0,f.jsx)(m.ArrowLeftRight,{})})]}),(0,f.jsxs)(Gr,{style:{width:`100%`},children:[(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:`Reset Pinning`,style:{flex:1},onClick:()=>{e.resetColumnPinning(),n(!1)},disabled:!e.getIsSomeColumnsPinned(),children:(0,f.jsx)(m.PinOff,{})}),(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:`Reset Sizing`,style:{flex:1},onClick:()=>e.resetColumnSizing(),disabled:Object.keys(e.state.columnSizing).length===0,children:(0,f.jsx)(m.Ruler,{})}),(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:t?`Exit Split`:`Split View`,style:{flex:1},disabled:!e.getIsSomeColumnsPinned(),onClick:()=>n(!t),children:(0,f.jsx)(m.SquareSplitHorizontal,{})})]})]})]})};function Yr({className:e,...t}){return(0,f.jsx)(`div`,{role:`list`,"data-slot":`item-group`,className:q(`group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2`,e),...t})}var Xr=Oe(`group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted`,{variants:{variant:{default:`border-transparent`,outline:`border-border`,muted:`border-transparent bg-muted/50`},size:{default:`gap-2.5 px-3 py-2.5`,sm:`gap-2.5 px-3 py-2.5`,xs:`gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0`}},defaultVariants:{variant:`default`,size:`default`}});function Zr({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?p.Slot.Root:`div`;return(0,f.jsx)(a,{"data-slot":`item`,"data-variant":t,"data-size":n,className:q(Xr({variant:t,size:n,className:e})),...i})}var Qr=Oe(`flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none`,{variants:{variant:{default:`bg-transparent`,icon:`[&_svg:not([class*='size-'])]:size-4`,image:`size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function $r({className:e,variant:t=`default`,...n}){return(0,f.jsx)(`div`,{"data-slot":`item-media`,"data-variant":t,className:q(Qr({variant:t,className:e})),...n})}function ei({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`item-content`,className:q(`flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none`,e),...t})}function ti({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`item-title`,className:q(`line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4`,e),...t})}var ni=({columnId:e,label:t})=>{"use no memo";let{attributes:n,isDragging:r,listeners:i,setNodeRef:a,transform:o,transition:s}=(0,_.useSortable)({id:e}),c={opacity:r?.8:1,transform:ee.CSS.Translate.toString(o),transition:s,zIndex:+!!r};return(0,f.jsxs)(Zr,{ref:a,style:c,variant:`outline`,size:`sm`,title:t.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/^./,e=>e.toUpperCase()),children:[(0,f.jsx)($r,{variant:`icon`,...n,...i,style:{cursor:`grab`,color:`var(--muted-foreground)`},children:(0,f.jsx)(m.GripVertical,{})}),(0,f.jsx)(ei,{style:{minWidth:0},children:(0,f.jsx)(ti,{style:{width:`100%`,minWidth:0},children:(0,f.jsx)(`span`,{style:{display:`block`,width:`100%`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/^./,e=>e.toUpperCase())})})})]})},ri=()=>{"use no memo";let{table:e}=R(),t=e.state.columnOrder.length?e.state.columnOrder:e.getAllLeafColumns().map(e=>e.id),n=n=>{let{active:r,over:i}=n;if(r&&i&&r.id!==i.id){let n=t.indexOf(r.id),a=t.indexOf(i.id);e.setColumnOrder((0,_.arrayMove)(t,n,a))}},r=(0,h.useSensors)((0,h.useSensor)(h.MouseSensor,{}),(0,h.useSensor)(h.TouchSensor,{}),(0,h.useSensor)(h.KeyboardSensor,{}));return(0,f.jsx)(h.DndContext,{collisionDetection:h.closestCenter,modifiers:[g.restrictToVerticalAxis],onDragEnd:n,sensors:r,children:(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,height:`100%`,paddingBlock:`8px`,gap:`8px`},children:[(0,f.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,paddingInline:`8px`,paddingBottom:`8px`,height:`36px`,borderBottom:`1px solid var(--border)`},children:[(0,f.jsxs)(`h1`,{style:{fontSize:`14px`,fontWeight:`500`},children:[`Columns DND (`,e.getAllLeafColumns().length,`)`]}),(0,f.jsx)(J,{variant:`ghost`,size:`icon-sm`,title:`Reset`,onClick:()=>e.resetColumnOrder(),children:(0,f.jsx)(m.RotateCcw,{})})]}),(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,flex:1,overflowY:`auto`,paddingInline:`8px`},children:(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`16px`},children:(0,f.jsx)(_.SortableContext,{items:t,strategy:_.verticalListSortingStrategy,children:(0,f.jsx)(Yr,{children:t.map(t=>{let n=e.getColumn(t);return n?(0,f.jsx)(ni,{columnId:t,label:typeof n.columnDef.header==`string`?n.columnDef.header:t},t):null})})})})})]})})};function ii({...e}){return(0,f.jsx)(p.Collapsible.Root,{"data-slot":`collapsible`,...e})}function ai({...e}){return(0,f.jsx)(p.Collapsible.CollapsibleContent,{"data-slot":`collapsible-content`,...e})}var oi=({column:e})=>{"use no memo";let t=(0,c.useMemo)(()=>e.getCanFilter()?{id:e.id.replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/^./,e=>e.toUpperCase()),uniqueValues:Array.from(e.getFacetedUniqueValues().keys())}:null,[e]),n=e.getFilterValue(),{filterVariant:r}=e.columnDef.meta??{},[i,a]=(0,c.useState)(!1);return(0,f.jsxs)(`div`,{children:[(0,f.jsxs)(`div`,{onClick:()=>a(!i),style:{display:`flex`,alignItems:`center`,gap:`8px`,cursor:`pointer`,whiteSpace:`nowrap`},children:[(0,f.jsx)(`div`,{style:{width:`28px`,height:`28px`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,borderRadius:`4px`,transition:`all 0.2s`,transform:i?`rotate(90deg)`:`none`},children:(0,f.jsx)(m.ChevronRight,{size:16})}),(0,f.jsx)(`span`,{style:{fontSize:`0.875rem`,whiteSpace:`nowrap`},children:t?.id&&t.id.length>15?`${t.id.slice(0,15)}...`:t?.id})]}),(0,f.jsx)(ii,{open:i,children:(0,f.jsx)(ai,{children:(0,f.jsxs)(`div`,{style:{padding:`12px`,paddingRight:0},children:[(0,f.jsx)(`datalist`,{id:e.id+`list`,children:t?.uniqueValues.map((e,t)=>(0,f.jsx)(`option`,{value:e},t))}),r===`range`?(0,f.jsxs)(`div`,{style:{display:`flex`,gap:`8px`},children:[(0,f.jsx)(cr,{type:`number`,value:n?.[0]??``,onChange:t=>e.setFilterValue(e=>[t,e?.[1]]),placeholder:`Min`}),(0,f.jsx)(cr,{type:`number`,value:n?.[1]??``,onChange:t=>e.setFilterValue(e=>[e?.[0],t]),placeholder:`Max`})]}):(0,f.jsx)(cr,{type:`text`,value:n??``,onChange:t=>e.setFilterValue(t),placeholder:`Search... (${e.getFacetedUniqueValues().size})`,list:e.id+`list`,disabled:r===void 0})]})})})]})},si=()=>{"use no memo";let{table:e,globalFilter:t,setGlobalFilter:n}=R();return(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,height:`100%`,paddingBlock:`8px`,gap:`8px`},children:[(0,f.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,paddingInline:`8px`,paddingBottom:`8px`,height:`36px`,borderBottom:`1px solid var(--border)`},children:(0,f.jsx)(`h1`,{style:{fontSize:`14px`,fontWeight:`500`},children:`Filters`})}),(0,f.jsx)(`div`,{style:{paddingInline:`8px`},children:(0,f.jsx)(cr,{style:{width:`100%`},type:`search`,value:String(t),onChange:e=>{n?.(String(e))},placeholder:`Search all columns...`})}),(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,flex:1,overflowY:`auto`,paddingInline:`8px`},children:(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`16px`},children:e.getHeaderGroups().map(e=>(0,f.jsx)(c.default.Fragment,{children:e.headers.filter(e=>![`rowNumber`,`select`,`pin`,`actions`].includes(e.column.id)).map(e=>(0,f.jsx)(oi,{column:e.column},e.id))},e.id))})}),(0,f.jsx)(`div`,{style:{paddingInline:`8px`},children:(0,f.jsxs)(J,{variant:`outline`,size:`sm`,style:{width:`100%`},onClick:()=>e.setColumnFilters([]),children:[(0,f.jsx)(m.RotateCcw,{size:16}),`Reset Filters`]})})]})};function ci(e,t,n){let r=window.open(``,`_blank`);if(!r){window.alert(`Print window was blocked. Please allow popups for this site and try again.`);return}let i=e=>(e==null?``:String(e)).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),a=t.map(e=>`<th>${i(e)}</th>`).join(``),o=n.map(e=>`<tr>${e.map(e=>`<td>${i(e)}</td>`).join(``)}</tr>`).join(``);r.document.open(),r.document.write(`
|
|
13
|
+
`}),(0,f.jsx)(m.Loader,{size:16,style:{animation:`grid-skeleton-spin 1s linear infinite`}})]}):[`actions`,`pin`,`drag-handle`,`rowNumber`].includes(e.id)?(0,f.jsx)(nr,{style:{width:`100%`,height:`16px`}}):(0,f.jsx)(nr,{style:{width:`${rr[(t+n)%rr.length]}px`,height:`16px`}})}),ar=()=>{let{table:e,isSplit:t}=R(),n=(t?e.getCenterHeaderGroups():e.getHeaderGroups()).map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,f.jsx)(X,{style:{width:e.getCenterTotalSize()},children:(0,f.jsx)(Z,{children:[...Array(20)].map((r,i)=>(0,f.jsx)(Q,{children:n.map((n,r)=>(0,f.jsx)($,{style:{width:n.getSize(),minWidth:n.getSize(),maxWidth:n.getSize(),borderRight:`1px solid`,borderColor:`var(--border)`,transition:`padding 0.2s`,padding:e.state.density===`sm`?`4px`:e.state.density===`md`?`8px`:`16px`,...Un(n,t)},children:(0,f.jsx)(ir,{column:n,i,j:r})},r))},i))})})};function or({row:e}){"use no memo";let{table:t,isSplit:n}=R();return(0,f.jsx)(Q,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:(n?e.getCenterVisibleCells():e.getVisibleCells()).map(e=>(0,f.jsx)(Gn,{cell:e},e.id))})}var sr=()=>{"use no memo";let{table:e,isSplit:t,isLoading:n,isError:r,renderSubComponent:i}=R();return n?(0,f.jsx)(ar,{}):r?(0,f.jsx)(tr,{}):e.getRowModel().rows.length===0?(0,f.jsx)($n,{}):(0,f.jsxs)(X,{style:{width:e.getCenterTotalSize()},children:[e.getTopRows().map(e=>(0,f.jsx)(or,{row:e},e.id)),(0,f.jsx)(Z,{children:e.getRowModel().rows.map(e=>(0,f.jsxs)(c.default.Fragment,{children:[(0,f.jsx)(Q,{"data-state":e.getIsSelected()&&`selected`,children:(t?e.getCenterVisibleCells():e.getVisibleCells()).map(e=>(0,f.jsx)(Gn,{cell:e},e.id))}),i&&e.getIsExpanded()&&(0,f.jsx)(Q,{children:(0,f.jsx)($,{colSpan:e.getVisibleCells().length,children:i({row:e})})})]},e.id))}),e.getBottomRows().map(e=>(0,f.jsx)(or,{row:e},e.id))]})};function cr({value:e,onChange:t,debounce:n=500,...r}){let[i,a]=c.default.useState(e);c.default.useEffect(()=>{a(e)},[e]);let o=zn(t,{wait:n});return(0,f.jsx)(Xt,{...r,value:i,onChange:e=>{a(e.target.value),o(e.target.value)}})}function lr({...e}){return(0,f.jsx)(p.Select.Root,{"data-slot":`select`,...e})}function ur({className:e,...t}){return(0,f.jsx)(p.Select.Group,{"data-slot":`select-group`,className:q(`scroll-my-1 p-1`,e),...t})}function dr({...e}){return(0,f.jsx)(p.Select.Value,{"data-slot":`select-value`,...e})}function fr({className:e,size:t=`default`,children:n,...r}){return(0,f.jsxs)(p.Select.Trigger,{"data-slot":`select-trigger`,"data-size":t,className:q(`flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,f.jsx)(p.Select.Icon,{asChild:!0,children:(0,f.jsx)(m.ChevronDownIcon,{className:`pointer-events-none size-4 text-muted-foreground`})})]})}function pr({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,f.jsx)(p.Select.Portal,{children:(0,f.jsxs)(p.Select.Content,{"data-slot":`select-content`,"data-align-trigger":n===`item-aligned`,className:q(`relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,f.jsx)(hr,{}),(0,f.jsx)(p.Select.Viewport,{"data-position":n,className:q(`data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)`,n===`popper`&&``),children:t}),(0,f.jsx)(gr,{})]})})}function mr({className:e,children:t,...n}){return(0,f.jsxs)(p.Select.Item,{"data-slot":`select-item`,className:q(`relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,f.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`,children:(0,f.jsx)(p.Select.ItemIndicator,{children:(0,f.jsx)(m.CheckIcon,{className:`pointer-events-none`})})}),(0,f.jsx)(p.Select.ItemText,{children:t})]})}function hr({className:e,...t}){return(0,f.jsx)(p.Select.ScrollUpButton,{"data-slot":`select-scroll-up-button`,className:q(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,f.jsx)(m.ChevronUpIcon,{})})}function gr({className:e,...t}){return(0,f.jsx)(p.Select.ScrollDownButton,{"data-slot":`select-scroll-down-button`,className:q(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,f.jsx)(m.ChevronDownIcon,{})})}var _r=({column:e})=>{"use no memo";let t=e.getFilterValue(),{filterVariant:n}=e.columnDef.meta??{},{isFetching:r}=R(),i=!r&&n===`select`?Array.from(e.getFacetedUniqueValues().keys()).sort().slice(0,5e3):[];return e.getCanFilter()?(0,f.jsx)(`div`,{style:{padding:`4px`,width:`100%`,borderTop:`1px solid var(--border)`},children:n===`range`?(0,f.jsxs)(`div`,{style:{display:`flex`,gap:`4px`},children:[(0,f.jsx)(cr,{style:{height:`28px`},type:`number`,value:t?.[0]??``,onChange:t=>e.setFilterValue(e=>[t,e?.[1]]),placeholder:`Min`}),(0,f.jsx)(cr,{style:{height:`28px`},type:`number`,value:t?.[1]??``,onChange:t=>e.setFilterValue(e=>[e?.[0],t]),placeholder:`Max`})]}):n===`select`?(0,f.jsxs)(lr,{value:t?.toString()??`all`,onValueChange:t=>e.setFilterValue(t===`all`?void 0:t),children:[(0,f.jsx)(fr,{style:{width:`100%`},size:`sm`,children:(0,f.jsx)(dr,{})}),(0,f.jsx)(pr,{children:(0,f.jsxs)(ur,{children:[(0,f.jsx)(mr,{value:`all`,children:`All`}),i.map(e=>(0,f.jsx)(mr,{value:String(e),children:String(e)},String(e)))]})})]}):n&&[`text`,`time`,`date`,`datetime-local`,`month`,`week`,`number`,`tel`,`url`,`color`,`search`].includes(n)?(0,f.jsx)(cr,{style:{height:`28px`},onChange:t=>e.setFilterValue(t),placeholder:`Search...`,type:n,value:t??``}):(0,f.jsx)(`div`,{style:{height:`28px`,opacity:0,visibility:`hidden`}})}):null};function vr({...e}){return(0,f.jsx)(p.DropdownMenu.Root,{"data-slot":`dropdown-menu`,...e})}function yr({...e}){return(0,f.jsx)(p.DropdownMenu.Trigger,{"data-slot":`dropdown-menu-trigger`,...e})}function br({className:e,align:t=`start`,sideOffset:n=4,...r}){return(0,f.jsx)(p.DropdownMenu.Portal,{children:(0,f.jsx)(p.DropdownMenu.Content,{"data-slot":`dropdown-menu-content`,sideOffset:n,align:t,className:q(`z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r})})}function xr({...e}){return(0,f.jsx)(p.DropdownMenu.Group,{"data-slot":`dropdown-menu-group`,...e})}function Sr({className:e,inset:t,variant:n=`default`,...r}){return(0,f.jsx)(p.DropdownMenu.Item,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:q(`group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function Cr({className:e,...t}){return(0,f.jsx)(p.DropdownMenu.Separator,{"data-slot":`dropdown-menu-separator`,className:q(`-mx-1 my-1 h-px bg-border`,e),...t})}function wr({className:e,...t}){return(0,f.jsx)(`span`,{"data-slot":`dropdown-menu-shortcut`,className:q(`ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground`,e),...t})}var Tr=({header:e})=>{"use no memo";let{isLoading:t,isError:n}=R();return e.column.getCanFilter()?(0,f.jsxs)(vr,{children:[(0,f.jsx)(yr,{asChild:!0,children:(0,f.jsx)(J,{size:`icon-xs`,variant:`ghost`,disabled:t||n,children:(0,f.jsx)(m.EllipsisVertical,{})})}),(0,f.jsxs)(br,{align:`end`,children:[(0,f.jsxs)(xr,{children:[(0,f.jsxs)(Sr,{onClick:()=>{e.column.toggleSorting(!1)},disabled:!e.column.getCanSort(),children:[`Sort ASC`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.ArrowUp,{})})]}),(0,f.jsxs)(Sr,{onClick:()=>{e.column.toggleSorting(!0)},disabled:!e.column.getCanSort(),children:[`Sort DESC`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.ArrowDown,{})})]})]}),(0,f.jsx)(Cr,{}),!e.isPlaceholder&&e.column.getCanPin()&&(0,f.jsxs)(xr,{children:[e.column.getIsPinned()!==`start`&&(0,f.jsxs)(Sr,{onClick:()=>{e.column.pin(`start`)},children:[`Pin to left`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.PinIcon,{style:{transform:`rotate(45deg)`}})})]}),e.column.getIsPinned()&&(0,f.jsxs)(Sr,{onClick:()=>{e.column.pin(!1)},children:[`Unpin`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.PinOff,{})})]}),e.column.getIsPinned()!==`end`&&(0,f.jsxs)(Sr,{onClick:()=>{e.column.pin(`end`)},children:[`Pin to right`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.PinIcon,{style:{transform:`rotate(-45deg)`}})})]})]}),(0,f.jsx)(Cr,{}),(0,f.jsx)(xr,{children:(0,f.jsxs)(Sr,{onClick:()=>{e.column.toggleVisibility(!1)},disabled:!e.column.getCanHide(),children:[`Hide column`,(0,f.jsx)(wr,{children:(0,f.jsx)(m.EyeOff,{})})]})})]})]}):null},Er=({header:e})=>{"use no memo";let t=e.column.getIsResizing();return(0,f.jsx)(`div`,{className:`header-resizer`,onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),style:{position:`absolute`,top:0,right:0,height:`100%`,width:`5px`,backgroundColor:t?`var(--primary)`:`rgba(0, 0, 0, 0.5)`,cursor:`col-resize`,userSelect:`none`,touchAction:`none`,opacity:+!!t}})},Dr=({header:e})=>{"use no memo";let{table:t}=R(),n=e.column.getCanSort();return(0,f.jsxs)(`div`,{onClick:e.column.getToggleSortingHandler(),title:e.column.getCanSort()?e.column.getNextSortingOrder()===`asc`?`Sort ascending`:e.column.getNextSortingOrder()===`desc`?`Sort descending`:`Clear sort`:void 0,style:{display:`flex`,alignItems:`center`,gap:1,cursor:n?`pointer`:`default`,userSelect:n?`none`:`auto`},children:[(0,f.jsx)(t.FlexRender,{header:e}),{asc:(0,f.jsx)(m.ChevronUpIcon,{style:{width:16,height:16}}),desc:(0,f.jsx)(m.ChevronDownIcon,{style:{width:16,height:16}})}[e.column.getIsSorted()]??null]})},Or=({header:e})=>{"use no memo";let{isSplit:t}=R(),n={position:`relative`,whiteSpace:`nowrap`,width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize(),borderRight:`1px solid`,borderColor:`var(--border)`,padding:0,...Un(e.column,t)};return(0,f.jsxs)(Hn,{colSpan:e.colSpan,style:n,children:[e.isPlaceholder?null:(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`},children:[(0,f.jsxs)(`div`,{style:{padding:`8px`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`4px`},children:[(0,f.jsx)(Dr,{header:e}),(0,f.jsx)(Tr,{header:e})]}),(0,f.jsx)(_r,{column:e.column})]}),(0,f.jsx)(Er,{header:e})]})},kr=()=>{"use no memo";let{table:e,isSplit:t}=R();return(0,f.jsx)(X,{style:{width:e.getCenterTotalSize()},children:(0,f.jsx)(Vn,{children:(t?e.getCenterHeaderGroups():e.getHeaderGroups()).map(e=>(0,f.jsx)(Q,{children:e.headers.map(e=>(0,f.jsx)(Or,{header:e},e.id))},e.id))})})},Ar=()=>{"use no memo";let{paneRef1:e,paneRef2:t,height:n}=R();return(0,f.jsxs)(c.default.Fragment,{children:[(0,f.jsx)(Bn,{}),(0,f.jsx)(`div`,{style:{width:`100%`,overflowY:`scroll`,overflowX:`hidden`,scrollbarColor:`transparent transparent`},ref:e,children:(0,f.jsx)(kr,{})}),(0,f.jsx)(`div`,{style:{width:`100%`,overflow:`scroll`,height:n},ref:t,children:(0,f.jsx)(sr,{})})]})},jr=()=>{let{table:e}=R();return(0,f.jsx)(X,{children:(0,f.jsx)(Z,{children:(0,f.jsx)(Q,{children:e.getEndVisibleLeafColumns().map((e,t)=>(0,f.jsx)($,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})})},Mr=()=>{let{table:e,isSplit:t}=R(),n=e.getStartHeaderGroups().map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,f.jsx)(X,{children:(0,f.jsx)(Z,{children:[...Array(20)].map((r,i)=>(0,f.jsx)(Q,{children:n.map((n,r)=>(0,f.jsx)($,{style:{width:n.getSize(),minWidth:n.getSize(),maxWidth:n.getSize(),borderRight:`1px solid`,borderColor:`var(--border)`,transition:`padding 0.2s`,padding:e.state.density===`sm`?`4px`:e.state.density===`md`?`8px`:`16px`,...Un(n,t)},children:(0,f.jsx)(ir,{column:n,i,j:r})},r))},i))})})};function Nr({row:e}){"use no memo";let{table:t}=R();return(0,f.jsx)(Q,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:e.getEndVisibleCells().map(e=>(0,f.jsx)(Gn,{cell:e},e.id))})}var Pr=()=>{"use no memo";let{table:e,isLoading:t,isError:n,renderSubComponent:r}=R();return t?(0,f.jsx)(Mr,{}):n?(0,f.jsx)(`div`,{children:`Error`}):e.getRowModel().rows.length===0?(0,f.jsx)(jr,{}):(0,f.jsx)(X,{children:(0,f.jsxs)(Z,{children:[e.getTopRows().map(e=>(0,f.jsx)(Nr,{row:e},e.id)),e.getRowModel().rows.map(e=>(0,f.jsxs)(c.default.Fragment,{children:[(0,f.jsx)(Q,{"data-state":e.getIsSelected()&&`selected`,children:e.getEndVisibleCells().map(e=>(0,f.jsx)(Gn,{cell:e},e.id))}),r&&e.getIsExpanded()&&(0,f.jsx)(Q,{children:(0,f.jsx)($,{colSpan:e.getVisibleCells().length,children:r({row:e})})})]},e.id)),e.getTopRows().map(e=>(0,f.jsx)(Nr,{row:e},e.id))]})})},Fr=()=>{"use no memo";let{table:e}=R();return(0,f.jsx)(X,{children:(0,f.jsx)(Vn,{children:e.getEndHeaderGroups().map(e=>(0,f.jsx)(Q,{children:e.headers.map(e=>(0,f.jsx)(Or,{header:e},e.id))},e.id))})})},Ir=()=>{"use no memo";let{paneRef5:e,paneRef6:t,height:n,isError:r,isSplit:i,table:a}=R();return(0,f.jsx)(f.Fragment,{children:!r&&i&&(a.state.columnPinning?.end?.length??0)>0?(0,f.jsxs)(`div`,{style:{maxWidth:`220px`,overflow:`hidden`},children:[(0,f.jsx)(`div`,{style:{height:`64px`,borderBottom:`1px solid var(--border)`}}),(0,f.jsx)(`div`,{style:{width:`100%`,overflowY:`scroll`,overflowX:`hidden`,scrollbarColor:`transparent transparent`},ref:e,children:(0,f.jsx)(Fr,{})}),(0,f.jsx)(`div`,{style:{width:`100%`,overflow:`scroll`,height:n},ref:t,children:(0,f.jsx)(Pr,{})})]}):null})},Lr=()=>{let{table:e}=R();return(0,f.jsx)(X,{children:(0,f.jsx)(Z,{children:(0,f.jsx)(Q,{children:e.getStartVisibleLeafColumns().map((e,t)=>(0,f.jsx)($,{style:{width:e.getSize(),minWidth:e.getSize(),maxWidth:e.getSize()}},t))})})})},Rr=()=>{let{table:e,isSplit:t}=R(),n=e.getStartHeaderGroups().map(e=>e.headers.filter(e=>!e.isPlaceholder&&!e.subHeaders?.length).map(e=>e.column)).flat();return(0,f.jsx)(X,{children:(0,f.jsx)(Z,{children:[...Array(20)].map((r,i)=>(0,f.jsx)(Q,{children:n.map((n,r)=>(0,f.jsx)($,{style:{width:n.getSize(),minWidth:n.getSize(),maxWidth:n.getSize(),borderRight:`1px solid`,borderColor:`var(--border)`,transition:`padding 0.2s`,padding:e.state.density===`sm`?`4px`:e.state.density===`md`?`8px`:`16px`,...Un(n,t)},children:(0,f.jsx)(ir,{column:n,i,j:r})},r))},i))})})};function zr({row:e}){"use no memo";let{table:t}=R();return(0,f.jsx)(Q,{style:{backgroundColor:`blue`,position:`sticky`,zIndex:10,top:e.getIsPinned()===`top`?`calc(${e.getPinnedIndex()} * var(--cell-h))`:void 0,bottom:e.getIsPinned()===`bottom`?`calc(${t.getBottomRows().length-1-e.getPinnedIndex()} * var(--cell-h))`:void 0},children:e.getStartVisibleCells().map(e=>(0,f.jsx)(Gn,{cell:e},e.id))})}var Br=()=>{"use no memo";let{table:e,isLoading:t,isError:n,renderSubComponent:r}=R();return t?(0,f.jsx)(Rr,{}):n?(0,f.jsx)(`div`,{children:`Error`}):e.getRowModel().rows.length===0?(0,f.jsx)(Lr,{}):(0,f.jsx)(X,{children:(0,f.jsxs)(Z,{children:[e.getTopRows().map(e=>(0,f.jsx)(zr,{row:e},e.id)),e.getRowModel().rows.map(e=>(0,f.jsxs)(c.default.Fragment,{children:[(0,f.jsx)(Q,{"data-state":e.getIsSelected()&&`selected`,children:e.getStartVisibleCells().map(e=>(0,f.jsx)(Gn,{cell:e},e.id))}),r&&e.getIsExpanded()&&(0,f.jsx)(Q,{children:(0,f.jsx)($,{colSpan:e.getVisibleCells().length,children:r({row:e})})})]},e.id)),e.getBottomRows().map(e=>(0,f.jsx)(zr,{row:e},e.id))]})})},Vr=()=>{"use no memo";let{table:e}=R();return(0,f.jsx)(X,{children:(0,f.jsx)(Vn,{children:e.getStartHeaderGroups().map(e=>(0,f.jsx)(Q,{children:e.headers.map(e=>(0,f.jsx)(Or,{header:e},e.id))},e.id))})})},Hr=()=>{"use no memo";let{paneRef3:e,paneRef4:t,height:n,isError:r,isSplit:i,table:a}=R();return(0,f.jsx)(f.Fragment,{children:!r&&i&&(a.state.columnPinning?.start?.length??0)>0?(0,f.jsxs)(`div`,{style:{maxWidth:`220px`,overflow:`hidden`},children:[(0,f.jsx)(`div`,{style:{height:`64px`,borderBottom:`1px solid var(--border)`}}),(0,f.jsx)(`div`,{style:{width:`100%`,overflowY:`scroll`,overflowX:`hidden`,scrollbarColor:`transparent transparent`},ref:e,children:(0,f.jsx)(Vr,{})}),(0,f.jsx)(`div`,{style:{width:`100%`,overflow:`scroll`,height:n},ref:t,children:(0,f.jsx)(Br,{})})]}):null})},Ur=()=>{let{table:e}=R();return(0,f.jsxs)(`div`,{style:{minHeight:`50px`,padding:`16px`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,flexWrap:`wrap`,gap:`16px`},children:[(0,f.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`16px`,fontSize:`14px`,color:`var(--muted-foreground)`},children:[(0,f.jsxs)(`span`,{children:[`Showing `,e.getRowModel().rows.length.toLocaleString(),` of`,` `,e.getRowCount().toLocaleString(),` Rows`]}),e.getSelectedRowModel().rows.length>0&&(0,f.jsxs)(`span`,{children:[e.getSelectedRowModel().rows.length.toLocaleString(),` selected`]}),(0,f.jsx)(e.Subscribe,{source:e.atoms.cellSelection,children:()=>e.getSelectedCellCount()>0?(0,f.jsxs)(`span`,{children:[e.getSelectedCellCount().toLocaleString(),` cells selected across `,e.getCellSelectionRowIds().length.toLocaleString(),` `,`rows and `,e.getCellSelectionColumnIds().length,` columns`]}):null})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`8px`},children:[(0,f.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:`4px`,fontSize:`14px`},children:[`Page`,` `,(0,f.jsxs)(`strong`,{children:[(e.state.pagination.pageIndex+1).toLocaleString(),` of`,` `,e.getPageCount().toLocaleString()]})]}),(0,f.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:`4px`,fontSize:`14px`},children:[`Go to page:`,(0,f.jsx)(Xt,{type:`number`,min:`1`,max:e.getPageCount(),value:e.state.pagination.pageIndex+1,onChange:t=>{let n=t.target.value?Number(t.target.value)-1:0;e.setPageIndex(n)},style:{height:`28px`,width:`64px`}})]}),(0,f.jsxs)(lr,{value:String(e.state.pagination.pageSize),onValueChange:t=>e.setPageSize(Number(t)),children:[(0,f.jsx)(fr,{size:`sm`,children:(0,f.jsx)(dr,{})}),(0,f.jsx)(pr,{children:[20,30,40,50,60,70,80,90,100].map(e=>(0,f.jsxs)(mr,{value:String(e),children:[`Show `,e]},e))})]}),(0,f.jsx)(J,{variant:`outline`,size:`icon-sm`,onClick:()=>e.firstPage(),disabled:!e.getCanPreviousPage(),children:(0,f.jsx)(m.ChevronsLeft,{size:16})}),(0,f.jsx)(J,{variant:`outline`,size:`icon-sm`,onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:(0,f.jsx)(m.ChevronLeft,{size:16})}),(0,f.jsx)(J,{variant:`outline`,size:`icon-sm`,onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:(0,f.jsx)(m.ChevronRight,{size:16})}),(0,f.jsx)(J,{variant:`outline`,size:`icon-sm`,onClick:()=>e.lastPage(),disabled:!e.getCanLastPage(),children:(0,f.jsx)(m.ChevronsRight,{size:16})})]})]})},Wr=Oe(`group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1`,{variants:{orientation:{horizontal:`[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!`,vertical:`flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!`}},defaultVariants:{orientation:`horizontal`}});function Gr({className:e,orientation:t,...n}){return(0,f.jsx)(`div`,{role:`group`,"data-slot":`button-group`,"data-orientation":t,className:q(Wr({orientation:t}),e),...n})}function Kr({className:e,...t}){return(0,f.jsx)(p.Checkbox.Root,{"data-slot":`checkbox`,className:q(`peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary`,e),...t,children:(0,f.jsx)(p.Checkbox.Indicator,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none [&>svg]:size-3.5`,children:(0,f.jsx)(m.CheckIcon,{})})})}function qr({className:e,...t}){return(0,f.jsx)(p.Label.Root,{"data-slot":`label`,className:q(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}var Jr=()=>{let{table:e,isSplit:t,setIsSplit:n}=R(),[r,i]=(0,c.useState)(``),a=(0,c.useMemo)(()=>e.getAllLeafColumns().filter(e=>![`rowNumber`].includes(e.id)).filter(e=>e.id.toLowerCase().includes(r.toLowerCase())),[r,e]),o=()=>{let t=e.getAllLeafColumns().map(e=>e.id);for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}e.setColumnOrder(t)};return(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,height:`100%`,paddingBlock:`8px`,gap:`8px`},children:[(0,f.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,paddingInline:`8px`,paddingBottom:`8px`,height:`36px`,borderBottom:`1px solid var(--border)`},children:[(0,f.jsxs)(`h1`,{style:{fontSize:`14px`,fontWeight:`500`},children:[`Columns (`,e.getAllLeafColumns().length,`)`]}),(0,f.jsx)(J,{title:`Restore`,variant:`ghost`,size:`icon-sm`,onClick:()=>{e.resetColumnVisibility()},children:(0,f.jsx)(m.RotateCcw,{})})]}),(0,f.jsx)(`div`,{style:{paddingInline:`8px`},children:(0,f.jsx)(Xt,{type:`search`,placeholder:`Search columns...`,value:r,onChange:e=>i(e.target.value)})}),(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,flex:1,overflowY:`auto`,paddingInline:`8px`},children:(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`16px`},children:a.length>0?(0,f.jsx)(c.default.Fragment,{children:a.map(e=>(0,f.jsxs)(qr,{style:{display:`flex`,alignItems:`center`,minWidth:0},title:e.id.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/^./,e=>e.toUpperCase()),children:[(0,f.jsx)(Kr,{checked:e.getIsVisible(),onCheckedChange:t=>e.toggleVisibility(t===!0)}),(0,f.jsx)(`span`,{style:{overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,minWidth:0,flex:1},children:e.id.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/^./,e=>e.toUpperCase())})]},e.id))}):(0,f.jsx)(`div`,{className:`text-center`,children:`No columns found`})})}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`8px`,paddingInline:`8px`},children:[(0,f.jsxs)(Gr,{style:{width:`100%`},children:[(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:`Shuffle`,style:{flex:1},onClick:()=>o(),children:(0,f.jsx)(m.Shuffle,{})}),(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:`Reset Order`,style:{flex:1},onClick:()=>e.resetColumnOrder(),disabled:e.state.columnOrder.length===0,children:(0,f.jsx)(m.RotateCcw,{})}),(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:`Reverse Order`,style:{flex:1},onClick:()=>e.setColumnOrder([...e.getAllLeafColumns().map(e=>e.id)].reverse()),children:(0,f.jsx)(m.ArrowLeftRight,{})})]}),(0,f.jsxs)(Gr,{style:{width:`100%`},children:[(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:`Reset Pinning`,style:{flex:1},onClick:()=>{e.resetColumnPinning(),n(!1)},disabled:!e.getIsSomeColumnsPinned(),children:(0,f.jsx)(m.PinOff,{})}),(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:`Reset Sizing`,style:{flex:1},onClick:()=>e.resetColumnSizing(),disabled:Object.keys(e.state.columnSizing).length===0,children:(0,f.jsx)(m.Ruler,{})}),(0,f.jsx)(J,{variant:`outline`,size:`icon`,title:t?`Exit Split`:`Split View`,style:{flex:1},disabled:!e.getIsSomeColumnsPinned(),onClick:()=>n(!t),children:(0,f.jsx)(m.SquareSplitHorizontal,{})})]})]})]})};function Yr({className:e,...t}){return(0,f.jsx)(`div`,{role:`list`,"data-slot":`item-group`,className:q(`group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2`,e),...t})}var Xr=Oe(`group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted`,{variants:{variant:{default:`border-transparent`,outline:`border-border`,muted:`border-transparent bg-muted/50`},size:{default:`gap-2.5 px-3 py-2.5`,sm:`gap-2.5 px-3 py-2.5`,xs:`gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0`}},defaultVariants:{variant:`default`,size:`default`}});function Zr({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?p.Slot.Root:`div`;return(0,f.jsx)(a,{"data-slot":`item`,"data-variant":t,"data-size":n,className:q(Xr({variant:t,size:n,className:e})),...i})}var Qr=Oe(`flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none`,{variants:{variant:{default:`bg-transparent`,icon:`[&_svg:not([class*='size-'])]:size-4`,image:`size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function $r({className:e,variant:t=`default`,...n}){return(0,f.jsx)(`div`,{"data-slot":`item-media`,"data-variant":t,className:q(Qr({variant:t,className:e})),...n})}function ei({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`item-content`,className:q(`flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none`,e),...t})}function ti({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`item-title`,className:q(`line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4`,e),...t})}var ni=({columnId:e,label:t})=>{"use no memo";let{attributes:n,isDragging:r,listeners:i,setNodeRef:a,transform:o,transition:s}=(0,_.useSortable)({id:e}),c={opacity:r?.8:1,transform:ee.CSS.Translate.toString(o),transition:s,zIndex:+!!r};return(0,f.jsxs)(Zr,{ref:a,style:c,variant:`outline`,size:`sm`,title:t.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/^./,e=>e.toUpperCase()),children:[(0,f.jsx)($r,{variant:`icon`,...n,...i,style:{cursor:`grab`,color:`var(--muted-foreground)`},children:(0,f.jsx)(m.GripVertical,{})}),(0,f.jsx)(ei,{style:{minWidth:0},children:(0,f.jsx)(ti,{style:{width:`100%`,minWidth:0},children:(0,f.jsx)(`span`,{style:{display:`block`,width:`100%`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/^./,e=>e.toUpperCase())})})})]})},ri=()=>{"use no memo";let{table:e}=R(),t=e.state.columnOrder.length?e.state.columnOrder:e.getAllLeafColumns().map(e=>e.id),n=n=>{let{active:r,over:i}=n;if(r&&i&&r.id!==i.id){let n=t.indexOf(r.id),a=t.indexOf(i.id);e.setColumnOrder((0,_.arrayMove)(t,n,a))}},r=(0,h.useSensors)((0,h.useSensor)(h.MouseSensor,{}),(0,h.useSensor)(h.TouchSensor,{}),(0,h.useSensor)(h.KeyboardSensor,{}));return(0,f.jsx)(h.DndContext,{collisionDetection:h.closestCenter,modifiers:[g.restrictToVerticalAxis],onDragEnd:n,sensors:r,children:(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,height:`100%`,paddingBlock:`8px`,gap:`8px`},children:[(0,f.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,paddingInline:`8px`,paddingBottom:`8px`,height:`36px`,borderBottom:`1px solid var(--border)`},children:[(0,f.jsxs)(`h1`,{style:{fontSize:`14px`,fontWeight:`500`},children:[`Columns DND (`,e.getAllLeafColumns().length,`)`]}),(0,f.jsx)(J,{variant:`ghost`,size:`icon-sm`,title:`Reset`,onClick:()=>e.resetColumnOrder(),children:(0,f.jsx)(m.RotateCcw,{})})]}),(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,flex:1,overflowY:`auto`,paddingInline:`8px`},children:(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`16px`},children:(0,f.jsx)(_.SortableContext,{items:t,strategy:_.verticalListSortingStrategy,children:(0,f.jsx)(Yr,{children:t.map(t=>{let n=e.getColumn(t);return n?(0,f.jsx)(ni,{columnId:t,label:typeof n.columnDef.header==`string`?n.columnDef.header:t},t):null})})})})})]})})};function ii({...e}){return(0,f.jsx)(p.Collapsible.Root,{"data-slot":`collapsible`,...e})}function ai({...e}){return(0,f.jsx)(p.Collapsible.CollapsibleContent,{"data-slot":`collapsible-content`,...e})}var oi=({column:e})=>{"use no memo";let t=(0,c.useMemo)(()=>e.getCanFilter()?{id:e.id.replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/^./,e=>e.toUpperCase()),uniqueValues:Array.from(e.getFacetedUniqueValues().keys())}:null,[e]),n=e.getFilterValue(),{filterVariant:r}=e.columnDef.meta??{},[i,a]=(0,c.useState)(!1);return(0,f.jsxs)(`div`,{children:[(0,f.jsxs)(`div`,{onClick:()=>a(!i),style:{display:`flex`,alignItems:`center`,gap:`8px`,cursor:`pointer`,whiteSpace:`nowrap`},children:[(0,f.jsx)(`div`,{style:{width:`28px`,height:`28px`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,borderRadius:`4px`,transition:`all 0.2s`,transform:i?`rotate(90deg)`:`none`},children:(0,f.jsx)(m.ChevronRight,{size:16})}),(0,f.jsx)(`span`,{style:{fontSize:`0.875rem`,whiteSpace:`nowrap`},children:t?.id&&t.id.length>15?`${t.id.slice(0,15)}...`:t?.id})]}),(0,f.jsx)(ii,{open:i,children:(0,f.jsx)(ai,{children:(0,f.jsxs)(`div`,{style:{padding:`12px`,paddingRight:0},children:[(0,f.jsx)(`datalist`,{id:e.id+`list`,children:t?.uniqueValues.map((e,t)=>(0,f.jsx)(`option`,{value:e},t))}),r===`range`?(0,f.jsxs)(`div`,{style:{display:`flex`,gap:`8px`},children:[(0,f.jsx)(cr,{type:`number`,value:n?.[0]??``,onChange:t=>e.setFilterValue(e=>[t,e?.[1]]),placeholder:`Min`}),(0,f.jsx)(cr,{type:`number`,value:n?.[1]??``,onChange:t=>e.setFilterValue(e=>[e?.[0],t]),placeholder:`Max`})]}):(0,f.jsx)(cr,{type:`text`,value:n??``,onChange:t=>e.setFilterValue(t),placeholder:`Search... (${e.getFacetedUniqueValues().size})`,list:e.id+`list`,disabled:r===void 0})]})})})]})},si=()=>{"use no memo";let{table:e,globalFilter:t,setGlobalFilter:n}=R();return(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,height:`100%`,paddingBlock:`8px`,gap:`8px`},children:[(0,f.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,paddingInline:`8px`,paddingBottom:`8px`,height:`36px`,borderBottom:`1px solid var(--border)`},children:(0,f.jsx)(`h1`,{style:{fontSize:`14px`,fontWeight:`500`},children:`Filters`})}),(0,f.jsx)(`div`,{style:{paddingInline:`8px`},children:(0,f.jsx)(cr,{style:{width:`100%`},type:`search`,value:String(t),onChange:e=>{n?.(String(e))},placeholder:`Search all columns...`})}),(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,flex:1,overflowY:`auto`,paddingInline:`8px`},children:(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`16px`},children:e.getHeaderGroups().map(e=>(0,f.jsx)(c.default.Fragment,{children:e.headers.filter(e=>![`rowNumber`,`select`,`pin`,`actions`].includes(e.column.id)).map(e=>(0,f.jsx)(oi,{column:e.column},e.id))},e.id))})}),(0,f.jsx)(`div`,{style:{paddingInline:`8px`},children:(0,f.jsxs)(J,{variant:`outline`,size:`sm`,style:{width:`100%`},onClick:()=>e.setColumnFilters([]),children:[(0,f.jsx)(m.RotateCcw,{size:16}),`Reset Filters`]})})]})};function ci(e,t,n){let r=window.open(``,`_blank`);if(!r){window.alert(`Print window was blocked. Please allow popups for this site and try again.`);return}let i=e=>(e==null?``:String(e)).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),a=t.map(e=>`<th>${i(e)}</th>`).join(``),o=n.map(e=>`<tr>${e.map(e=>`<td>${i(e)}</td>`).join(``)}</tr>`).join(``);r.document.open(),r.document.write(`
|
|
14
14
|
<!DOCTYPE html>
|
|
15
15
|
<html>
|
|
16
16
|
<head>
|
package/dist/index.js
CHANGED
|
@@ -3005,7 +3005,7 @@ var Ti = (e, t) => {
|
|
|
3005
3005
|
position: n ? t ? "relative" : "sticky" : "relative",
|
|
3006
3006
|
width: e.getSize(),
|
|
3007
3007
|
zIndex: +!!n,
|
|
3008
|
-
|
|
3008
|
+
backgroundColor: n && !t ? "var(--background)" : void 0
|
|
3009
3009
|
};
|
|
3010
3010
|
}, Ei = (e) => e.getIsSelected() ? { backgroundColor: "rgba(59, 130, 246, 0.30)" } : e.getIsFocused() ? {
|
|
3011
3011
|
outline: "1px solid var(--ring)",
|
|
@@ -3218,23 +3218,26 @@ var zi = [
|
|
|
3218
3218
|
height: "16px"
|
|
3219
3219
|
} }) }), Vi = () => {
|
|
3220
3220
|
let { table: e, isSplit: t } = R(), n = (t ? e.getCenterHeaderGroups() : e.getHeaderGroups()).map((e) => e.headers.filter((e) => !e.isPlaceholder && !e.subHeaders?.length).map((e) => e.column)).flat();
|
|
3221
|
-
return /* @__PURE__ */ M(X, {
|
|
3222
|
-
style: {
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3221
|
+
return /* @__PURE__ */ M(X, {
|
|
3222
|
+
style: { width: e.getCenterTotalSize() },
|
|
3223
|
+
children: /* @__PURE__ */ M(Z, { children: [...Array(20)].map((r, i) => /* @__PURE__ */ M(Q, { children: n.map((n, r) => /* @__PURE__ */ M($, {
|
|
3224
|
+
style: {
|
|
3225
|
+
width: n.getSize(),
|
|
3226
|
+
minWidth: n.getSize(),
|
|
3227
|
+
maxWidth: n.getSize(),
|
|
3228
|
+
borderRight: "1px solid",
|
|
3229
|
+
borderColor: "var(--border)",
|
|
3230
|
+
transition: "padding 0.2s",
|
|
3231
|
+
padding: e.state.density === "sm" ? "4px" : e.state.density === "md" ? "8px" : "16px",
|
|
3232
|
+
...Ti(n, t)
|
|
3233
|
+
},
|
|
3234
|
+
children: /* @__PURE__ */ M(Bi, {
|
|
3235
|
+
column: n,
|
|
3236
|
+
i,
|
|
3237
|
+
j: r
|
|
3238
|
+
})
|
|
3239
|
+
}, r)) }, i)) })
|
|
3240
|
+
});
|
|
3238
3241
|
};
|
|
3239
3242
|
//#endregion
|
|
3240
3243
|
//#region src/package/ui/grid/sections/center/GridCenterRowPin.tsx
|
package/package.json
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-shadcn-table",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"module": "./dist/index.js",
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"import": "./dist/index.js",
|
|
15
|
-
"types": "./dist/index.d.ts"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"dev": "vite",
|
|
20
|
-
"build": "tsc -b && vite build",
|
|
21
|
-
"lint": "eslint .",
|
|
22
|
-
"preview": "vite preview"
|
|
23
|
-
},
|
|
24
|
-
"repository": {
|
|
25
|
-
"type": "git",
|
|
26
|
-
"url": "git+https://github.com/jsdev-robin/react-shadcn-table.git"
|
|
27
|
-
},
|
|
28
|
-
"bugs": {
|
|
29
|
-
"url": "https://github.com/jsdev-robin/react-shadcn-table/issues"
|
|
30
|
-
},
|
|
31
|
-
"peerDependencies": {
|
|
32
|
-
"react": "^18 || ^19",
|
|
33
|
-
"react-dom": "^18 || ^19"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@dnd-kit/core": "^6.3.1",
|
|
37
|
-
"@dnd-kit/modifiers": "^9.0.0",
|
|
38
|
-
"@dnd-kit/sortable": "^10.0.0",
|
|
39
|
-
"@dnd-kit/utilities": "^3.2.2",
|
|
40
|
-
"@tanstack/react-hotkeys": "^0.10.0",
|
|
41
|
-
"@tanstack/react-pacer": "^0.23.0",
|
|
42
|
-
"@tanstack/react-store": "^0.11.1",
|
|
43
|
-
"@tanstack/react-table": "^9.1.2",
|
|
44
|
-
"jspdf": "^4.2.1",
|
|
45
|
-
"jspdf-autotable": "^5.0.8",
|
|
46
|
-
"xlsx": "^0.18.5"
|
|
47
|
-
},
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@babel/core": "^7.29.7",
|
|
50
|
-
"@eslint/js": "^10.0.1",
|
|
51
|
-
"@rolldown/plugin-babel": "^0.2.3",
|
|
52
|
-
"@tailwindcss/vite": "^4.3.3",
|
|
53
|
-
"@types/babel__core": "^7.20.5",
|
|
54
|
-
"@types/node": "^24.13.3",
|
|
55
|
-
"@types/react": "^19.2.17",
|
|
56
|
-
"@types/react-dom": "^19.2.3",
|
|
57
|
-
"@vitejs/plugin-react": "^6.0.4",
|
|
58
|
-
"babel-plugin-react-compiler": "^1.0.0",
|
|
59
|
-
"eslint": "^10.8.0",
|
|
60
|
-
"eslint-plugin-react-hooks": "^7.1.1",
|
|
61
|
-
"eslint-plugin-react-refresh": "^0.5.3",
|
|
62
|
-
"globals": "^17.7.0",
|
|
63
|
-
"tailwindcss": "^4.3.3",
|
|
64
|
-
"typescript": "~6.0.2",
|
|
65
|
-
"typescript-eslint": "^8.65.0",
|
|
66
|
-
"vite": "^8.2.0",
|
|
67
|
-
"clsx": "^2.1.1",
|
|
68
|
-
"vite-plugin-dts": "^5.0.3",
|
|
69
|
-
"shadcn": "^4.18.0",
|
|
70
|
-
"tailwind-merge": "^3.6.0",
|
|
71
|
-
"class-variance-authority": "^0.7.1",
|
|
72
|
-
"tw-animate-css": "^1.4.0",
|
|
73
|
-
"lucide-react": "^1.31.0",
|
|
74
|
-
"radix-ui": "^1.6.7"
|
|
75
|
-
},
|
|
76
|
-
"keywords": [
|
|
77
|
-
"react",
|
|
78
|
-
"table",
|
|
79
|
-
"data-table",
|
|
80
|
-
"shadcn",
|
|
81
|
-
"shadcn-ui",
|
|
82
|
-
"tanstack-table",
|
|
83
|
-
"radix-ui",
|
|
84
|
-
"tailwindcss",
|
|
85
|
-
"typescript",
|
|
86
|
-
"vite",
|
|
87
|
-
"dnd-kit",
|
|
88
|
-
"drag-and-drop",
|
|
89
|
-
"xlsx",
|
|
90
|
-
"excel-export",
|
|
91
|
-
"pdf-export",
|
|
92
|
-
"ui-components"
|
|
93
|
-
]
|
|
94
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "react-shadcn-table",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"module": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"build": "tsc -b && vite build",
|
|
21
|
+
"lint": "eslint .",
|
|
22
|
+
"preview": "vite preview"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/jsdev-robin/react-shadcn-table.git"
|
|
27
|
+
},
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/jsdev-robin/react-shadcn-table/issues"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"react": "^18 || ^19",
|
|
33
|
+
"react-dom": "^18 || ^19"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@dnd-kit/core": "^6.3.1",
|
|
37
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
38
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
39
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
40
|
+
"@tanstack/react-hotkeys": "^0.10.0",
|
|
41
|
+
"@tanstack/react-pacer": "^0.23.0",
|
|
42
|
+
"@tanstack/react-store": "^0.11.1",
|
|
43
|
+
"@tanstack/react-table": "^9.1.2",
|
|
44
|
+
"jspdf": "^4.2.1",
|
|
45
|
+
"jspdf-autotable": "^5.0.8",
|
|
46
|
+
"xlsx": "^0.18.5"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@babel/core": "^7.29.7",
|
|
50
|
+
"@eslint/js": "^10.0.1",
|
|
51
|
+
"@rolldown/plugin-babel": "^0.2.3",
|
|
52
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
53
|
+
"@types/babel__core": "^7.20.5",
|
|
54
|
+
"@types/node": "^24.13.3",
|
|
55
|
+
"@types/react": "^19.2.17",
|
|
56
|
+
"@types/react-dom": "^19.2.3",
|
|
57
|
+
"@vitejs/plugin-react": "^6.0.4",
|
|
58
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
59
|
+
"eslint": "^10.8.0",
|
|
60
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
61
|
+
"eslint-plugin-react-refresh": "^0.5.3",
|
|
62
|
+
"globals": "^17.7.0",
|
|
63
|
+
"tailwindcss": "^4.3.3",
|
|
64
|
+
"typescript": "~6.0.2",
|
|
65
|
+
"typescript-eslint": "^8.65.0",
|
|
66
|
+
"vite": "^8.2.0",
|
|
67
|
+
"clsx": "^2.1.1",
|
|
68
|
+
"vite-plugin-dts": "^5.0.3",
|
|
69
|
+
"shadcn": "^4.18.0",
|
|
70
|
+
"tailwind-merge": "^3.6.0",
|
|
71
|
+
"class-variance-authority": "^0.7.1",
|
|
72
|
+
"tw-animate-css": "^1.4.0",
|
|
73
|
+
"lucide-react": "^1.31.0",
|
|
74
|
+
"radix-ui": "^1.6.7"
|
|
75
|
+
},
|
|
76
|
+
"keywords": [
|
|
77
|
+
"react",
|
|
78
|
+
"table",
|
|
79
|
+
"data-table",
|
|
80
|
+
"shadcn",
|
|
81
|
+
"shadcn-ui",
|
|
82
|
+
"tanstack-table",
|
|
83
|
+
"radix-ui",
|
|
84
|
+
"tailwindcss",
|
|
85
|
+
"typescript",
|
|
86
|
+
"vite",
|
|
87
|
+
"dnd-kit",
|
|
88
|
+
"drag-and-drop",
|
|
89
|
+
"xlsx",
|
|
90
|
+
"excel-export",
|
|
91
|
+
"pdf-export",
|
|
92
|
+
"ui-components"
|
|
93
|
+
]
|
|
94
|
+
}
|