@shohojdhara/atomix 0.1.18 → 0.1.20
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/NEXTJS_INTEGRATION.md +26 -1
- package/README.md +29 -0
- package/dist/js/987.js +1 -0
- package/dist/js/atomix.react.cjs.js +1 -1
- package/dist/js/atomix.react.esm.js +1 -1
- package/dist/js/atomix.react.umd.js +1 -1
- package/dist/types/lib/composables/useTodo.d.ts +1 -2
- package/next.config.js +15 -0
- package/package.json +3 -2
- package/src/components/Todo/Todo.stories.tsx +59 -107
- package/src/components/Todo/Todo.tsx +2 -2
- package/src/components/Todo/scripts/index.ts +42 -2
- package/src/lib/composables/useTodo.ts +3 -4
- package/src/lib/utils/index.ts +13 -0
- package/webpack.config.js +4 -0
- package/dist/js/194.js +0 -1
- package/dist/js/244.js +0 -1
- package/dist/types/components/Todo/scripts/types.d.ts +0 -17
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { TodoProps } from '../types/components';
|
|
2
|
-
import { TodoItem } from '../../components/Todo/scripts/types';
|
|
1
|
+
import { TodoItem, TodoProps } from '../types/components';
|
|
3
2
|
/**
|
|
4
3
|
* Todo composable hook - manages todo items state and operations
|
|
5
4
|
* @param initialProps - Initial todo properties
|
package/next.config.js
CHANGED
|
@@ -50,6 +50,21 @@ const nextConfig = {
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
+
// Handle TypeScript declaration files
|
|
54
|
+
config.module.rules.push({
|
|
55
|
+
test: /\.d\.ts$/,
|
|
56
|
+
exclude: /node_modules/,
|
|
57
|
+
use: [{ loader: 'ignore-loader' }]
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
// Add fallbacks for Node.js core modules
|
|
61
|
+
if (!isServer) {
|
|
62
|
+
config.resolve.fallback = {
|
|
63
|
+
...config.resolve.fallback,
|
|
64
|
+
crypto: false, // Provide empty mock for crypto
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
53
68
|
return config;
|
|
54
69
|
},
|
|
55
70
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shohojdhara/atomix",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "Atomix Design System - A modern component library for Web, React and Next.js applications with SSR support",
|
|
5
5
|
"main": "dist/js/atomix.react.cjs.js",
|
|
6
6
|
"module": "dist/js/atomix.react.esm.js",
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"classnames": "^2.5.1",
|
|
50
50
|
"phosphor-react": "^1.4.1",
|
|
51
51
|
"prism-react-renderer": "^2.4.1",
|
|
52
|
-
"react-router-dom": "^6.22.3"
|
|
52
|
+
"react-router-dom": "^6.22.3",
|
|
53
|
+
"uuid": "^9.0.1"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@babel/core": "^7.26.10",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
import { Todo } from './Todo';
|
|
4
|
-
import {
|
|
5
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
4
|
+
import { generateUUID } from '../../lib/utils';
|
|
6
5
|
|
|
7
|
-
const meta = {
|
|
6
|
+
const meta: Meta<typeof Todo> = {
|
|
8
7
|
title: 'Components/Todo',
|
|
9
8
|
component: Todo,
|
|
10
9
|
parameters: {
|
|
@@ -12,144 +11,97 @@ const meta = {
|
|
|
12
11
|
},
|
|
13
12
|
tags: ['autodocs'],
|
|
14
13
|
argTypes: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
control: 'object',
|
|
21
|
-
description: 'Array of todo items',
|
|
22
|
-
},
|
|
14
|
+
items: { control: 'object' },
|
|
15
|
+
title: { control: 'text' },
|
|
16
|
+
onAddTodo: { action: 'added' },
|
|
17
|
+
onToggleTodo: { action: 'toggled' },
|
|
18
|
+
onDeleteTodo: { action: 'deleted' },
|
|
23
19
|
size: {
|
|
24
20
|
control: { type: 'select' },
|
|
25
21
|
options: ['sm', 'md', 'lg'],
|
|
26
|
-
description: 'Size of the todo component',
|
|
27
|
-
},
|
|
28
|
-
placeholder: {
|
|
29
|
-
control: 'text',
|
|
30
|
-
description: 'Placeholder text for the new todo input',
|
|
31
|
-
},
|
|
32
|
-
showCompleted: {
|
|
33
|
-
control: 'boolean',
|
|
34
|
-
description: 'Whether to show completed todos',
|
|
35
|
-
},
|
|
36
|
-
disabled: {
|
|
37
|
-
control: 'boolean',
|
|
38
|
-
description: 'Whether the component is disabled',
|
|
39
22
|
},
|
|
23
|
+
placeholder: { control: 'text' },
|
|
24
|
+
showCompleted: { control: 'boolean' },
|
|
25
|
+
className: { control: 'text' },
|
|
26
|
+
disabled: { control: 'boolean' },
|
|
40
27
|
},
|
|
41
|
-
}
|
|
28
|
+
};
|
|
42
29
|
|
|
43
30
|
export default meta;
|
|
44
|
-
type Story = StoryObj<typeof
|
|
31
|
+
type Story = StoryObj<typeof Todo>;
|
|
45
32
|
|
|
46
|
-
|
|
47
|
-
const sampleItems: TodoItem[] = [
|
|
48
|
-
{ id: uuidv4(), text: 'Complete project documentation', completed: false },
|
|
49
|
-
{ id: uuidv4(), text: 'Review pull requests', completed: true },
|
|
50
|
-
{ id: uuidv4(), text: 'Update dependencies', completed: false },
|
|
51
|
-
{ id: uuidv4(), text: 'Write unit tests', completed: false },
|
|
52
|
-
{ id: uuidv4(), text: 'Fix accessibility issues', completed: true },
|
|
53
|
-
];
|
|
54
|
-
|
|
55
|
-
// Basic example
|
|
56
|
-
export const Basic: Story = {
|
|
33
|
+
export const Default: Story = {
|
|
57
34
|
args: {
|
|
35
|
+
items: [
|
|
36
|
+
{ id: '1', text: 'Learn React', completed: true },
|
|
37
|
+
{ id: '2', text: 'Build a todo app', completed: false },
|
|
38
|
+
{ id: '3', text: 'Deploy to production', completed: false },
|
|
39
|
+
],
|
|
58
40
|
title: 'Todo List',
|
|
59
|
-
|
|
41
|
+
placeholder: 'Add a new task',
|
|
60
42
|
size: 'md',
|
|
61
|
-
placeholder: 'Add a new todo',
|
|
62
43
|
showCompleted: true,
|
|
44
|
+
disabled: false,
|
|
63
45
|
},
|
|
64
46
|
};
|
|
65
47
|
|
|
66
|
-
|
|
67
|
-
export const Interactive: Story = {
|
|
48
|
+
export const WithManyItems: Story = {
|
|
68
49
|
args: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
50
|
+
items: [
|
|
51
|
+
{ id: generateUUID(), text: 'Complete project documentation', completed: false },
|
|
52
|
+
{ id: generateUUID(), text: 'Review pull requests', completed: true },
|
|
53
|
+
{ id: generateUUID(), text: 'Update dependencies', completed: false },
|
|
54
|
+
{ id: generateUUID(), text: 'Write unit tests', completed: false },
|
|
55
|
+
{ id: generateUUID(), text: 'Fix accessibility issues', completed: true },
|
|
56
|
+
],
|
|
57
|
+
title: 'Project Tasks',
|
|
73
58
|
showCompleted: true,
|
|
74
59
|
},
|
|
75
|
-
render: args => {
|
|
76
|
-
const [items, setItems] = useState<TodoItem[]>([
|
|
77
|
-
{ id: uuidv4(), text: 'Learn React', completed: true },
|
|
78
|
-
{ id: uuidv4(), text: 'Build a todo app', completed: false },
|
|
79
|
-
{ id: uuidv4(), text: 'Deploy to production', completed: false },
|
|
80
|
-
]);
|
|
81
|
-
|
|
82
|
-
const handleAddTodo = (text: string) => {
|
|
83
|
-
const newItem: TodoItem = {
|
|
84
|
-
id: uuidv4(),
|
|
85
|
-
text,
|
|
86
|
-
completed: false,
|
|
87
|
-
};
|
|
88
|
-
setItems([...items, newItem]);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
const handleToggleTodo = (id: string) => {
|
|
92
|
-
setItems(
|
|
93
|
-
items.map(item => (item.id === id ? { ...item, completed: !item.completed } : item))
|
|
94
|
-
);
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
const handleDeleteTodo = (id: string) => {
|
|
98
|
-
setItems(items.filter(item => item.id !== id));
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
return (
|
|
102
|
-
<div style={{ width: '500px' }}>
|
|
103
|
-
<Todo
|
|
104
|
-
{...args}
|
|
105
|
-
title="My Tasks"
|
|
106
|
-
items={items}
|
|
107
|
-
onAddTodo={handleAddTodo}
|
|
108
|
-
onToggleTodo={handleToggleTodo}
|
|
109
|
-
onDeleteTodo={handleDeleteTodo}
|
|
110
|
-
/>
|
|
111
|
-
</div>
|
|
112
|
-
);
|
|
113
|
-
},
|
|
114
60
|
};
|
|
115
61
|
|
|
116
|
-
|
|
117
|
-
export const Sizes: Story = {
|
|
62
|
+
export const Small: Story = {
|
|
118
63
|
args: {
|
|
119
|
-
|
|
120
|
-
|
|
64
|
+
...Default.args,
|
|
65
|
+
size: 'sm',
|
|
121
66
|
},
|
|
122
|
-
render: args => (
|
|
123
|
-
<div className="u-d-flex u-flex-column u-gap-4">
|
|
124
|
-
<Todo {...args} title="Small Todo List" items={args.items} size="sm" />
|
|
125
|
-
<Todo {...args} title="Medium Todo List" items={args.items} size="md" />
|
|
126
|
-
<Todo {...args} title="Large Todo List" items={args.items} size="lg" />
|
|
127
|
-
</div>
|
|
128
|
-
),
|
|
129
67
|
};
|
|
130
68
|
|
|
131
|
-
|
|
132
|
-
export const Empty: Story = {
|
|
69
|
+
export const Large: Story = {
|
|
133
70
|
args: {
|
|
134
|
-
|
|
135
|
-
|
|
71
|
+
...Default.args,
|
|
72
|
+
size: 'lg',
|
|
136
73
|
},
|
|
137
74
|
};
|
|
138
75
|
|
|
139
|
-
// Hide completed todos
|
|
140
76
|
export const HideCompleted: Story = {
|
|
141
77
|
args: {
|
|
142
|
-
|
|
143
|
-
|
|
78
|
+
items: [
|
|
79
|
+
{ id: generateUUID(), text: 'Learn React', completed: true },
|
|
80
|
+
{ id: generateUUID(), text: 'Build a todo app', completed: false },
|
|
81
|
+
{ id: generateUUID(), text: 'Deploy to production', completed: false },
|
|
82
|
+
],
|
|
144
83
|
showCompleted: false,
|
|
84
|
+
title: 'Active Tasks',
|
|
145
85
|
},
|
|
146
86
|
};
|
|
147
87
|
|
|
148
|
-
// Disabled state
|
|
149
88
|
export const Disabled: Story = {
|
|
150
89
|
args: {
|
|
151
|
-
|
|
152
|
-
items: sampleItems,
|
|
90
|
+
...Default.args,
|
|
153
91
|
disabled: true,
|
|
154
92
|
},
|
|
155
93
|
};
|
|
94
|
+
|
|
95
|
+
export const CustomTitle: Story = {
|
|
96
|
+
args: {
|
|
97
|
+
...Default.args,
|
|
98
|
+
title: 'My Custom Todo List',
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export const NoTitle: Story = {
|
|
103
|
+
args: {
|
|
104
|
+
...Default.args,
|
|
105
|
+
title: '',
|
|
106
|
+
},
|
|
107
|
+
};
|
|
@@ -3,7 +3,7 @@ import { TodoProps } from '../../lib/types/components';
|
|
|
3
3
|
import { useTodo } from '../../lib/composables/useTodo';
|
|
4
4
|
import { Icon } from '../Icon/Icon';
|
|
5
5
|
import { TODO } from '../../lib/constants/components';
|
|
6
|
-
import {
|
|
6
|
+
import { generateUUID } from '../../lib/utils';
|
|
7
7
|
|
|
8
8
|
export const Todo: React.FC<TodoProps> = ({
|
|
9
9
|
items = [],
|
|
@@ -65,7 +65,7 @@ export const Todo: React.FC<TodoProps> = ({
|
|
|
65
65
|
|
|
66
66
|
// Create a new todo item with a unique ID
|
|
67
67
|
const newTodo = {
|
|
68
|
-
id:
|
|
68
|
+
id: generateUUID(),
|
|
69
69
|
text: inputText.trim(),
|
|
70
70
|
completed: false,
|
|
71
71
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
2
1
|
import { TODO } from '../../../lib/constants/components';
|
|
3
2
|
import type { TodoItem } from './types';
|
|
3
|
+
import { generateUUID } from '../../../lib/utils';
|
|
4
4
|
|
|
5
5
|
export type { TodoItem };
|
|
6
6
|
export { useTodo } from '../../../lib/composables/useTodo';
|
|
@@ -371,7 +371,7 @@ export class Todo {
|
|
|
371
371
|
if (!text.trim() || this.options.disabled) return null;
|
|
372
372
|
|
|
373
373
|
const newItem: TodoItem = {
|
|
374
|
-
id:
|
|
374
|
+
id: generateUUID(),
|
|
375
375
|
text: text.trim(),
|
|
376
376
|
completed: false,
|
|
377
377
|
};
|
|
@@ -532,3 +532,43 @@ export class Todo {
|
|
|
532
532
|
|
|
533
533
|
// Export todoInteractions
|
|
534
534
|
export * from './todoInteractions';
|
|
535
|
+
|
|
536
|
+
// Constants
|
|
537
|
+
export const DEFAULT_TODO_ITEMS: TodoItem[] = [
|
|
538
|
+
{
|
|
539
|
+
id: '1',
|
|
540
|
+
text: 'Learn React',
|
|
541
|
+
completed: true,
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
id: '2',
|
|
545
|
+
text: 'Build a Todo App',
|
|
546
|
+
completed: false,
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
id: '3',
|
|
550
|
+
text: 'Deploy to production',
|
|
551
|
+
completed: false,
|
|
552
|
+
},
|
|
553
|
+
];
|
|
554
|
+
|
|
555
|
+
// Helper functions
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Generate a unique ID for a todo item
|
|
559
|
+
*/
|
|
560
|
+
export function generateTodoId(): string {
|
|
561
|
+
return generateUUID();
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Create a new todo item
|
|
566
|
+
* @param text - Text content for the todo
|
|
567
|
+
*/
|
|
568
|
+
export function createTodoItem(text: string): TodoItem {
|
|
569
|
+
return {
|
|
570
|
+
id: generateUUID(),
|
|
571
|
+
text,
|
|
572
|
+
completed: false,
|
|
573
|
+
};
|
|
574
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
2
|
+
import { TodoItem, TodoProps } from '../types/components';
|
|
3
|
+
import { generateUUID } from '../utils';
|
|
5
4
|
import { TODO, SIZES } from '../constants/components';
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -57,7 +56,7 @@ export function useTodo(initialProps?: Partial<TodoProps>) {
|
|
|
57
56
|
if (!text.trim()) return null;
|
|
58
57
|
|
|
59
58
|
const newItem: TodoItem = {
|
|
60
|
-
id:
|
|
59
|
+
id: generateUUID(),
|
|
61
60
|
text: text.trim(),
|
|
62
61
|
completed: false,
|
|
63
62
|
};
|
package/src/lib/utils/index.ts
CHANGED
|
@@ -5,3 +5,16 @@ export * from './dom';
|
|
|
5
5
|
|
|
6
6
|
// Export icon utilities
|
|
7
7
|
export * from './icons';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Generate a UUID v4 compatible string without relying on Node.js crypto
|
|
11
|
+
* This is a browser-compatible alternative to the uuid package
|
|
12
|
+
* @returns A UUID v4 compatible string
|
|
13
|
+
*/
|
|
14
|
+
export function generateUUID(): string {
|
|
15
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
16
|
+
const r = (Math.random() * 16) | 0;
|
|
17
|
+
const v = c === 'x' ? r : (r & 0x3) | 0x8;
|
|
18
|
+
return v.toString(16);
|
|
19
|
+
});
|
|
20
|
+
}
|
package/webpack.config.js
CHANGED
|
@@ -91,6 +91,10 @@ const baseConfig = {
|
|
|
91
91
|
},
|
|
92
92
|
// Prefer ESM modules when available
|
|
93
93
|
mainFields: ['module', 'main'],
|
|
94
|
+
// Add fallbacks for Node.js core modules
|
|
95
|
+
fallback: {
|
|
96
|
+
crypto: false, // Provide empty mock for crypto
|
|
97
|
+
},
|
|
94
98
|
},
|
|
95
99
|
optimization: {
|
|
96
100
|
minimize: true,
|
package/dist/js/194.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this.webpackChunkAtomix=this.webpackChunkAtomix||[]).push([[194],{160:(t,r,e)=>{"use strict";var n=e(3948),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},470:(t,r,e)=>{"use strict";var n=e(6028),o=e(5594);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},575:(t,r,e)=>{"use strict";var n=e(3121);t.exports=function(t){return n(t.length)}},581:(t,r,e)=>{"use strict";var n=e(3930),o=e(2250),i=e(6285),u=TypeError;t.exports=function(t,r){var e,s;if("string"===r&&o(e=t.toString)&&!i(s=n(e,t)))return s;if(o(e=t.valueOf)&&!i(s=n(e,t)))return s;if("string"!==r&&o(e=t.toString)&&!i(s=n(e,t)))return s;throw new u("Can't convert object to primitive value")}},798:(t,r,e)=>{"use strict";var n,o,i=e(5951),u=e(6794),s=i.process,c=i.Deno,a=s&&s.versions||c&&c.version,f=a&&a.v8;f&&(o=(n=f.split("."))[0]>0&&4>n[0]?1:+(n[0]+n[1])),!o&&u&&((n=u.match(/Edge\/(\d+)/))&&74>n[1]||(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1])),t.exports=o},1020:(t,r,e)=>{"use strict";var n=e(5442),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function a(t,r,e){var n,i={},a=null,f=null;for(n in void 0!==e&&(a=""+e),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(f=r.ref),r)u.call(r,n)&&!c.hasOwnProperty(n)&&(i[n]=r[n]);if(t&&t.defaultProps)for(n in r=t.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:t,key:a,ref:f,props:i,_owner:s.current}}r.Fragment=i,r.jsx=a,r.jsxs=a},1091:(t,r,e)=>{"use strict";var n=e(5951),o=e(6024),i=e(2361),u=e(2250),s=e(3846).f,c=e(7463),a=e(2046),f=e(8311),p=e(1626),l=e(9724);e(6128);var v=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return o(t,this,arguments)};return r.prototype=t.prototype,r};t.exports=function(t,r){var e,o,y,h,d,b,g,m,x,w=t.target,O=t.global,S=t.stat,j=t.proto,A=O?n:S?n[w]:n[w]&&n[w].prototype,E=O?a:a[w]||p(a,w,{})[w],U=E.prototype;for(h in r)o=!(e=c(O?h:w+(S?".":"#")+h,t.forced))&&A&&l(A,h),b=E[h],o&&(g=t.dontCallGetSet?(x=s(A,h))&&x.value:A[h]),d=o&&g?g:r[h],(e||j||typeof b!=typeof d)&&(m=t.bind&&o?f(d,n):t.wrap&&o?v(d):j&&u(d)?i(d):d,(t.sham||d&&d.sham||b&&b.sham)&&p(m,"sham",!0),p(E,h,m),j&&(l(a,y=w+"Prototype")||p(a,y,{}),p(a[y],h,d),t.real&&U&&(e||!U[h])&&p(U,h,d)))}},1175:(t,r,e)=>{"use strict";var n=e(9846);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1176:t=>{"use strict";var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},1362:(t,r,e)=>{"use strict";e(9748);var n=e(1747);t.exports=n("Array","includes")},1505:(t,r,e)=>{"use strict";var n=e(8828);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},1626:(t,r,e)=>{"use strict";var n=e(9447),o=e(4284),i=e(5817);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},1747:(t,r,e)=>{"use strict";var n=e(5951),o=e(2046);t.exports=function(t,r){var e=o[t+"Prototype"],i=e&&e[r];if(i)return i;var u=n[t],s=u&&u.prototype;return s&&s[r]}},1907:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},2046:t=>{"use strict";t.exports={}},2074:(t,r,e)=>{"use strict";var n=e(2087),o=TypeError;t.exports=function(t){if(n(t))throw new o("The method doesn't accept regular expressions");return t}},2087:(t,r,e)=>{"use strict";var n=e(6285),o=e(5807),i=e(6264)("match");t.exports=function(t){var r;return n(t)&&(void 0!==(r=t[i])?!!r:"RegExp"===o(t))}},2156:t=>{"use strict";t.exports=function(){}},2159:(t,r,e)=>{"use strict";var n=e(2250),o=e(4640),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},2250:t=>{"use strict";var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},2361:(t,r,e)=>{"use strict";var n=e(5807),o=e(1907);t.exports=function(t){if("Function"===n(t))return o(t)}},2532:(t,r,e)=>{"use strict";var n=e(5951),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},2574:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},2623:(t,r,e)=>{"use strict";var n={};n[e(6264)("toStringTag")]="z",t.exports=n+""=="[object z]"},3121:(t,r,e)=>{"use strict";var n=e(5482),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},3648:(t,r,e)=>{"use strict";var n=e(9447),o=e(8828),i=e(9552);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},3846:(t,r,e)=>{"use strict";var n=e(9447),o=e(3930),i=e(2574),u=e(5817),s=e(7374),c=e(470),a=e(9724),f=e(3648),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(t,r){if(t=s(t),r=c(r),f)try{return p(t,r)}catch(e){}if(a(t,r))return u(!o(i.f,t,r),t[r])}},3930:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},3948:(t,r,e)=>{"use strict";var n=e(2623),o=e(2250),i=e(5807),u=e(6264)("toStringTag"),s=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(e){}}(r=s(t),u))?e:c?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},4239:(t,r,e)=>{"use strict";var n=e(7136),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},4284:(t,r,e)=>{"use strict";var n=e(9447),o=e(3648),i=e(8661),u=e(6624),s=e(470),c=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(u(t),r=s(r),u(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=f(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:p in e?e[p]:n[p],writable:!1})}return a(t,r,e)}:a:function(t,r,e){if(u(t),r=s(r),u(e),o)try{return a(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new c("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},4378:(t,r,e)=>{"use strict";e(9770);var n=e(1747);t.exports=n("String","includes")},4436:(t,r,e)=>{"use strict";var n=e(7374),o=e(4849),i=e(575),u=function(t){return function(r,e,u){var s=n(r),c=i(s);if(0===c)return!t&&-1;var a,f=o(u,c);if(t&&e!=e){for(;c>f;)if((a=s[f++])!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},4640:t=>{"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},4848:(t,r,e)=>{"use strict";t.exports=e(1020)},4849:(t,r,e)=>{"use strict";var n=e(5482),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return 0>e?o(e+r,0):i(e,r)}},5482:(t,r,e)=>{"use strict";var n=e(1176);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},5582:(t,r,e)=>{"use strict";var n=e(2046),o=e(5951),i=e(2250),u=function(t){return i(t)?t:void 0};t.exports=function(t,r){return 2>arguments.length?u(n[t])||u(o[t]):n[t]&&n[t][r]||o[t]&&o[t][r]}},5594:(t,r,e)=>{"use strict";var n=e(5582),o=e(2250),i=e(8280),u=e(1175),s=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,s(t))}},5735:(t,r,e)=>{"use strict";var n=e(6264)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[n]=!1,"/./"[t](r)}catch(o){}}return!1}},5807:(t,r,e)=>{"use strict";var n=e(1907),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},5816:(t,r,e)=>{"use strict";var n=e(6128);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},5817:t=>{"use strict";t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},5951:function(t,r,e){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6024:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?u.bind(i):function(){return u.apply(i,arguments)})},6028:(t,r,e)=>{"use strict";var n=e(3930),o=e(6285),i=e(5594),u=e(9367),s=e(581),c=e(6264),a=TypeError,f=c("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,c=u(t,f);if(c){if(void 0===r&&(r="default"),e=n(c,t,r),!o(e)||i(e))return e;throw new a("Can't convert object to primitive value")}return void 0===r&&(r="number"),s(t,r)}},6128:(t,r,e)=>{"use strict";var n=e(7376),o=e(5951),i=e(2532),u="__core-js_shared__",s=t.exports=o[u]||i(u,{});(s.versions||(s.versions=[])).push({version:"3.43.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6264:(t,r,e)=>{"use strict";var n=e(5951),o=e(5816),i=e(9724),u=e(6499),s=e(9846),c=e(1175),a=n.Symbol,f=o("wks"),p=c?a.for||a:a&&a.withoutSetter||u;t.exports=function(t){return i(f,t)||(f[t]=s&&i(a,t)?a[t]:p("Symbol."+t)),f[t]}},6285:(t,r,e)=>{"use strict";var n=e(2250);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},6343:(t,r,e)=>{"use strict";var n=e(6880);t.exports=n},6499:(t,r,e)=>{"use strict";var n=e(1907),o=0,i=Math.random(),u=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},6624:(t,r,e)=>{"use strict";var n=e(6285),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},6794:(t,r,e)=>{"use strict";var n=e(5951).navigator,o=n&&n.userAgent;t.exports=o?o+"":""},6880:(t,r,e)=>{"use strict";var n=e(8280),o=e(1362),i=e(4378),u=Array.prototype,s=String.prototype;t.exports=function(t){var r=t.includes;return t===u||n(u,t)&&r===u.includes?o:"string"==typeof t||t===s||n(s,t)&&r===s.includes?i:r}},6946:(t,r,e)=>{"use strict";var n=e(1907),o=e(8828),i=e(5807),u=Object,s=n("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):u(t)}:u},7136:t=>{"use strict";t.exports=function(t){return null==t}},7374:(t,r,e)=>{"use strict";var n=e(6946),o=e(4239);t.exports=function(t){return n(o(t))}},7376:t=>{"use strict";t.exports=!0},7463:(t,r,e)=>{"use strict";var n=e(8828),o=e(2250),i=/#|\.prototype\./,u=function(t,r){var e=c[s(t)];return e===f||e!==a&&(o(r)?n(r):!!r)},s=u.normalize=function(t){return(t+"").replace(i,".").toLowerCase()},c=u.data={},a=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},8280:(t,r,e)=>{"use strict";var n=e(1907);t.exports=n({}.isPrototypeOf)},8311:(t,r,e)=>{"use strict";var n=e(2361),o=e(2159),i=e(1505),u=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments)}}},8628:(t,r,e)=>{t.exports=e(6343)},8661:(t,r,e)=>{"use strict";var n=e(9447),o=e(8828);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8828:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(r){return!0}}},9298:(t,r,e)=>{"use strict";var n=e(4239),o=Object;t.exports=function(t){return o(n(t))}},9308:(t,r,e)=>{"use strict";let n;e.d(r,{v4:()=>m});const o=new Uint8Array(16);function i(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}const u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=[];for(let O=0;256>O;++O)s.push((O+256).toString(16).slice(1));function c(t,r=0){return s[t[r+0]]+s[t[r+1]]+s[t[r+2]]+s[t[r+3]]+"-"+s[t[r+4]]+s[t[r+5]]+"-"+s[t[r+6]]+s[t[r+7]]+"-"+s[t[r+8]]+s[t[r+9]]+"-"+s[t[r+10]]+s[t[r+11]]+s[t[r+12]]+s[t[r+13]]+s[t[r+14]]+s[t[r+15]]}const a=function(t){if(!function(t){return"string"==typeof t&&u.test(t)}(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=255&r,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=255&r,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=255&r,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=255&r,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=255&r,e};function f(t,r,e){function n(t,n,o,i){var u;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;t.length>e;++e)r.push(t.charCodeAt(e));return r}(t)),"string"==typeof n&&(n=a(n)),16!==(null===(u=n)||void 0===u?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+t.length);if(s.set(n),s.set(t,n.length),s=e(s),s[6]=15&s[6]|r,s[8]=63&s[8]|128,o){i=i||0;for(let t=0;16>t;++t)o[i+t]=s[t];return o}return c(s)}try{n.name=t}catch(o){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function p(t){return 14+(t+64>>>9<<4)+1}function l(t,r){const e=(65535&t)+(65535&r);return(t>>16)+(r>>16)+(e>>16)<<16|65535&e}function v(t,r,e,n,o,i){return l((u=l(l(r,t),l(n,i)))<<(s=o)|u>>>32-s,e);var u,s}function y(t,r,e,n,o,i,u){return v(r&e|~r&n,t,r,o,i,u)}function h(t,r,e,n,o,i,u){return v(r&n|e&~n,t,r,o,i,u)}function d(t,r,e,n,o,i,u){return v(r^e^n,t,r,o,i,u)}function b(t,r,e,n,o,i,u){return v(e^(r|~n),t,r,o,i,u)}f("v3",48,(function(t){if("string"==typeof t){const r=unescape(encodeURIComponent(t));t=new Uint8Array(r.length);for(let e=0;r.length>e;++e)t[e]=r.charCodeAt(e)}return function(t){const r=[],e=32*t.length,n="0123456789abcdef";for(let o=0;e>o;o+=8){const e=t[o>>5]>>>o%32&255,i=parseInt(n.charAt(e>>>4&15)+n.charAt(15&e),16);r.push(i)}return r}(function(t,r){t[r>>5]|=128<<r%32,t[p(r)-1]=r;let e=1732584193,n=-271733879,o=-1732584194,i=271733878;for(let u=0;t.length>u;u+=16){const r=e,s=n,c=o,a=i;e=y(e,n,o,i,t[u],7,-680876936),i=y(i,e,n,o,t[u+1],12,-389564586),o=y(o,i,e,n,t[u+2],17,606105819),n=y(n,o,i,e,t[u+3],22,-1044525330),e=y(e,n,o,i,t[u+4],7,-176418897),i=y(i,e,n,o,t[u+5],12,1200080426),o=y(o,i,e,n,t[u+6],17,-1473231341),n=y(n,o,i,e,t[u+7],22,-45705983),e=y(e,n,o,i,t[u+8],7,1770035416),i=y(i,e,n,o,t[u+9],12,-1958414417),o=y(o,i,e,n,t[u+10],17,-42063),n=y(n,o,i,e,t[u+11],22,-1990404162),e=y(e,n,o,i,t[u+12],7,1804603682),i=y(i,e,n,o,t[u+13],12,-40341101),o=y(o,i,e,n,t[u+14],17,-1502002290),n=y(n,o,i,e,t[u+15],22,1236535329),e=h(e,n,o,i,t[u+1],5,-165796510),i=h(i,e,n,o,t[u+6],9,-1069501632),o=h(o,i,e,n,t[u+11],14,643717713),n=h(n,o,i,e,t[u],20,-373897302),e=h(e,n,o,i,t[u+5],5,-701558691),i=h(i,e,n,o,t[u+10],9,38016083),o=h(o,i,e,n,t[u+15],14,-660478335),n=h(n,o,i,e,t[u+4],20,-405537848),e=h(e,n,o,i,t[u+9],5,568446438),i=h(i,e,n,o,t[u+14],9,-1019803690),o=h(o,i,e,n,t[u+3],14,-187363961),n=h(n,o,i,e,t[u+8],20,1163531501),e=h(e,n,o,i,t[u+13],5,-1444681467),i=h(i,e,n,o,t[u+2],9,-51403784),o=h(o,i,e,n,t[u+7],14,1735328473),n=h(n,o,i,e,t[u+12],20,-1926607734),e=d(e,n,o,i,t[u+5],4,-378558),i=d(i,e,n,o,t[u+8],11,-2022574463),o=d(o,i,e,n,t[u+11],16,1839030562),n=d(n,o,i,e,t[u+14],23,-35309556),e=d(e,n,o,i,t[u+1],4,-1530992060),i=d(i,e,n,o,t[u+4],11,1272893353),o=d(o,i,e,n,t[u+7],16,-155497632),n=d(n,o,i,e,t[u+10],23,-1094730640),e=d(e,n,o,i,t[u+13],4,681279174),i=d(i,e,n,o,t[u],11,-358537222),o=d(o,i,e,n,t[u+3],16,-722521979),n=d(n,o,i,e,t[u+6],23,76029189),e=d(e,n,o,i,t[u+9],4,-640364487),i=d(i,e,n,o,t[u+12],11,-421815835),o=d(o,i,e,n,t[u+15],16,530742520),n=d(n,o,i,e,t[u+2],23,-995338651),e=b(e,n,o,i,t[u],6,-198630844),i=b(i,e,n,o,t[u+7],10,1126891415),o=b(o,i,e,n,t[u+14],15,-1416354905),n=b(n,o,i,e,t[u+5],21,-57434055),e=b(e,n,o,i,t[u+12],6,1700485571),i=b(i,e,n,o,t[u+3],10,-1894986606),o=b(o,i,e,n,t[u+10],15,-1051523),n=b(n,o,i,e,t[u+1],21,-2054922799),e=b(e,n,o,i,t[u+8],6,1873313359),i=b(i,e,n,o,t[u+15],10,-30611744),o=b(o,i,e,n,t[u+6],15,-1560198380),n=b(n,o,i,e,t[u+13],21,1309151649),e=b(e,n,o,i,t[u+4],6,-145523070),i=b(i,e,n,o,t[u+11],10,-1120210379),o=b(o,i,e,n,t[u+2],15,718787259),n=b(n,o,i,e,t[u+9],21,-343485551),e=l(e,r),n=l(n,s),o=l(o,c),i=l(i,a)}return[e,n,o,i]}(function(t){if(0===t.length)return[];const r=8*t.length,e=new Uint32Array(p(r));for(let n=0;r>n;n+=8)e[n>>5]|=(255&t[n/8])<<n%32;return e}(t),8*t.length))}));const g={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},m=function(t,r,e){if(g.randomUUID&&!r&&!t)return g.randomUUID();const n=(t=t||{}).random||(t.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,r){e=e||0;for(let t=0;16>t;++t)r[e+t]=n[t];return r}return c(n)};function x(t,r,e,n){switch(t){case 0:return r&e^~r&n;case 1:case 3:return r^e^n;case 2:return r&e^r&n^e&n}}function w(t,r){return t<<r|t>>>32-r}f("v5",80,(function(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){const r=unescape(encodeURIComponent(t));t=[];for(let e=0;r.length>e;++e)t.push(r.charCodeAt(e))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const n=Math.ceil((t.length/4+2)/16),o=Array(n);for(let i=0;n>i;++i){const r=new Uint32Array(16);for(let e=0;16>e;++e)r[e]=t[64*i+4*e]<<24|t[64*i+4*e+1]<<16|t[64*i+4*e+2]<<8|t[64*i+4*e+3];o[i]=r}o[n-1][14]=8*(t.length-1)/4294967296,o[n-1][14]=Math.floor(o[n-1][14]),o[n-1][15]=8*(t.length-1)&4294967295;for(let i=0;n>i;++i){const t=new Uint32Array(80);for(let r=0;16>r;++r)t[r]=o[i][r];for(let r=16;80>r;++r)t[r]=w(t[r-3]^t[r-8]^t[r-14]^t[r-16],1);let n=e[0],u=e[1],s=e[2],c=e[3],a=e[4];for(let e=0;80>e;++e){const o=Math.floor(e/20),i=w(n,5)+x(o,u,s,c)+a+r[o]+t[e]>>>0;a=c,c=s,s=w(u,30)>>>0,u=n,n=i}e[0]=e[0]+n>>>0,e[1]=e[1]+u>>>0,e[2]=e[2]+s>>>0,e[3]=e[3]+c>>>0,e[4]=e[4]+a>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,255&e[0],e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,255&e[1],e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,255&e[2],e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,255&e[3],e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,255&e[4]]}))},9367:(t,r,e)=>{"use strict";var n=e(2159),o=e(7136);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},9447:(t,r,e)=>{"use strict";var n=e(8828);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:(t,r,e)=>{"use strict";var n=e(5951),o=e(6285),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},9724:(t,r,e)=>{"use strict";var n=e(1907),o=e(9298),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},9748:(t,r,e)=>{"use strict";var n=e(1091),o=e(4436).includes,i=e(8828),u=e(2156);n({target:"Array",proto:!0,forced:i((function(){return!1}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),u("includes")},9770:(t,r,e)=>{"use strict";var n=e(1091),o=e(1907),i=e(2074),u=e(4239),s=e(160),c=e(5735),a=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~a(s(u(this)),s(i(t)),arguments.length>1?arguments[1]:void 0)}})},9846:(t,r,e)=>{"use strict";var n=e(798),o=e(8828),i=e(5951).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&41>n}))}}]);
|
package/dist/js/244.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.id=244,exports.ids=[244],exports.modules={160:(t,r,e)=>{"use strict";var n=e(3948),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},470:(t,r,e)=>{"use strict";var n=e(6028),o=e(5594);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},575:(t,r,e)=>{"use strict";var n=e(3121);t.exports=function(t){return n(t.length)}},581:(t,r,e)=>{"use strict";var n=e(3930),o=e(2250),i=e(6285),s=TypeError;t.exports=function(t,r){var e,u;if("string"===r&&o(e=t.toString)&&!i(u=n(e,t)))return u;if(o(e=t.valueOf)&&!i(u=n(e,t)))return u;if("string"!==r&&o(e=t.toString)&&!i(u=n(e,t)))return u;throw new s("Can't convert object to primitive value")}},798:(t,r,e)=>{"use strict";var n,o,i=e(5951),s=e(6794),u=i.process,c=i.Deno,a=u&&u.versions||c&&c.version,f=a&&a.v8;f&&(o=(n=f.split("."))[0]>0&&4>n[0]?1:+(n[0]+n[1])),!o&&s&&((n=s.match(/Edge\/(\d+)/))&&74>n[1]||(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1])),t.exports=o},1020:(t,r,e)=>{"use strict";var n=e(4953),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function a(t,r,e){var n,i={},a=null,f=null;for(n in void 0!==e&&(a=""+e),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(f=r.ref),r)s.call(r,n)&&!c.hasOwnProperty(n)&&(i[n]=r[n]);if(t&&t.defaultProps)for(n in r=t.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:t,key:a,ref:f,props:i,_owner:u.current}}r.Fragment=i,r.jsx=a,r.jsxs=a},1091:(t,r,e)=>{"use strict";var n=e(5951),o=e(6024),i=e(2361),s=e(2250),u=e(3846).f,c=e(7463),a=e(2046),f=e(8311),p=e(1626),l=e(9724);e(6128);var v=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return o(t,this,arguments)};return r.prototype=t.prototype,r};t.exports=function(t,r){var e,o,y,d,b,h,x,g,m,w=t.target,O=t.global,S=t.stat,j=t.proto,E=O?n:S?n[w]:n[w]&&n[w].prototype,P=O?a:a[w]||p(a,w,{})[w],_=P.prototype;for(d in r)o=!(e=c(O?d:w+(S?".":"#")+d,t.forced))&&E&&l(E,d),h=P[d],o&&(x=t.dontCallGetSet?(m=u(E,d))&&m.value:E[d]),b=o&&x?x:r[d],(e||j||typeof h!=typeof b)&&(g=t.bind&&o?f(b,n):t.wrap&&o?v(b):j&&s(b)?i(b):b,(t.sham||b&&b.sham||h&&h.sham)&&p(g,"sham",!0),p(P,d,g),j&&(l(a,y=w+"Prototype")||p(a,y,{}),p(a[y],d,b),t.real&&_&&(e||!_[d])&&p(_,d,b)))}},1175:(t,r,e)=>{"use strict";var n=e(9846);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1176:t=>{"use strict";var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},1362:(t,r,e)=>{"use strict";e(9748);var n=e(1747);t.exports=n("Array","includes")},1505:(t,r,e)=>{"use strict";var n=e(8828);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},1626:(t,r,e)=>{"use strict";var n=e(9447),o=e(4284),i=e(5817);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},1747:(t,r,e)=>{"use strict";var n=e(5951),o=e(2046);t.exports=function(t,r){var e=o[t+"Prototype"],i=e&&e[r];if(i)return i;var s=n[t],u=s&&s.prototype;return u&&u[r]}},1907:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},2046:t=>{"use strict";t.exports={}},2074:(t,r,e)=>{"use strict";var n=e(2087),o=TypeError;t.exports=function(t){if(n(t))throw new o("The method doesn't accept regular expressions");return t}},2087:(t,r,e)=>{"use strict";var n=e(6285),o=e(5807),i=e(6264)("match");t.exports=function(t){var r;return n(t)&&(void 0!==(r=t[i])?!!r:"RegExp"===o(t))}},2156:t=>{"use strict";t.exports=function(){}},2159:(t,r,e)=>{"use strict";var n=e(2250),o=e(4640),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},2250:t=>{"use strict";var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},2361:(t,r,e)=>{"use strict";var n=e(5807),o=e(1907);t.exports=function(t){if("Function"===n(t))return o(t)}},2532:(t,r,e)=>{"use strict";var n=e(5951),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},2574:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},2623:(t,r,e)=>{"use strict";var n={};n[e(6264)("toStringTag")]="z",t.exports=n+""=="[object z]"},3121:(t,r,e)=>{"use strict";var n=e(5482),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},3648:(t,r,e)=>{"use strict";var n=e(9447),o=e(8828),i=e(9552);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},3846:(t,r,e)=>{"use strict";var n=e(9447),o=e(3930),i=e(2574),s=e(5817),u=e(7374),c=e(470),a=e(9724),f=e(3648),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(t,r){if(t=u(t),r=c(r),f)try{return p(t,r)}catch(e){}if(a(t,r))return s(!o(i.f,t,r),t[r])}},3930:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},3948:(t,r,e)=>{"use strict";var n=e(2623),o=e(2250),i=e(5807),s=e(6264)("toStringTag"),u=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(e){}}(r=u(t),s))?e:c?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},4239:(t,r,e)=>{"use strict";var n=e(7136),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},4284:(t,r,e)=>{"use strict";var n=e(9447),o=e(3648),i=e(8661),s=e(6624),u=e(470),c=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(s(t),r=u(r),s(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=f(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:p in e?e[p]:n[p],writable:!1})}return a(t,r,e)}:a:function(t,r,e){if(s(t),r=u(r),s(e),o)try{return a(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new c("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},4378:(t,r,e)=>{"use strict";e(9770);var n=e(1747);t.exports=n("String","includes")},4436:(t,r,e)=>{"use strict";var n=e(7374),o=e(4849),i=e(575),s=function(t){return function(r,e,s){var u=n(r),c=i(u);if(0===c)return!t&&-1;var a,f=o(s,c);if(t&&e!=e){for(;c>f;)if((a=u[f++])!=a)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4640:t=>{"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},4848:(t,r,e)=>{"use strict";t.exports=e(1020)},4849:(t,r,e)=>{"use strict";var n=e(5482),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return 0>e?o(e+r,0):i(e,r)}},5482:(t,r,e)=>{"use strict";var n=e(1176);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},5582:(t,r,e)=>{"use strict";var n=e(2046),o=e(5951),i=e(2250),s=function(t){return i(t)?t:void 0};t.exports=function(t,r){return 2>arguments.length?s(n[t])||s(o[t]):n[t]&&n[t][r]||o[t]&&o[t][r]}},5594:(t,r,e)=>{"use strict";var n=e(5582),o=e(2250),i=e(8280),s=e(1175),u=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,u(t))}},5735:(t,r,e)=>{"use strict";var n=e(6264)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[n]=!1,"/./"[t](r)}catch(o){}}return!1}},5807:(t,r,e)=>{"use strict";var n=e(1907),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},5816:(t,r,e)=>{"use strict";var n=e(6128);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},5817:t=>{"use strict";t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},5951:function(t){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6024:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},6028:(t,r,e)=>{"use strict";var n=e(3930),o=e(6285),i=e(5594),s=e(9367),u=e(581),c=e(6264),a=TypeError,f=c("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,c=s(t,f);if(c){if(void 0===r&&(r="default"),e=n(c,t,r),!o(e)||i(e))return e;throw new a("Can't convert object to primitive value")}return void 0===r&&(r="number"),u(t,r)}},6128:(t,r,e)=>{"use strict";var n=e(7376),o=e(5951),i=e(2532),s="__core-js_shared__",u=t.exports=o[s]||i(s,{});(u.versions||(u.versions=[])).push({version:"3.43.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6264:(t,r,e)=>{"use strict";var n=e(5951),o=e(5816),i=e(9724),s=e(6499),u=e(9846),c=e(1175),a=n.Symbol,f=o("wks"),p=c?a.for||a:a&&a.withoutSetter||s;t.exports=function(t){return i(f,t)||(f[t]=u&&i(a,t)?a[t]:p("Symbol."+t)),f[t]}},6285:(t,r,e)=>{"use strict";var n=e(2250);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},6343:(t,r,e)=>{"use strict";var n=e(6880);t.exports=n},6499:(t,r,e)=>{"use strict";var n=e(1907),o=0,i=Math.random(),s=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},6624:(t,r,e)=>{"use strict";var n=e(6285),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},6794:(t,r,e)=>{"use strict";var n=e(5951).navigator,o=n&&n.userAgent;t.exports=o?o+"":""},6880:(t,r,e)=>{"use strict";var n=e(8280),o=e(1362),i=e(4378),s=Array.prototype,u=String.prototype;t.exports=function(t){var r=t.includes;return t===s||n(s,t)&&r===s.includes?o:"string"==typeof t||t===u||n(u,t)&&r===u.includes?i:r}},6946:(t,r,e)=>{"use strict";var n=e(1907),o=e(8828),i=e(5807),s=Object,u=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?u(t,""):s(t)}:s},7136:t=>{"use strict";t.exports=function(t){return null==t}},7374:(t,r,e)=>{"use strict";var n=e(6946),o=e(4239);t.exports=function(t){return n(o(t))}},7376:t=>{"use strict";t.exports=!0},7463:(t,r,e)=>{"use strict";var n=e(8828),o=e(2250),i=/#|\.prototype\./,s=function(t,r){var e=c[u(t)];return e===f||e!==a&&(o(r)?n(r):!!r)},u=s.normalize=function(t){return(t+"").replace(i,".").toLowerCase()},c=s.data={},a=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},7700:(t,r,e)=>{"use strict";e.d(r,{v4:()=>y});var n=e(6982),o=e.n(n);const i=new Uint8Array(256);let s=i.length;function u(){return s>i.length-16&&(o().randomFillSync(i),s=0),i.slice(s,s+=16)}const c=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,a=[];for(let d=0;256>d;++d)a.push((d+256).toString(16).slice(1));function f(t,r=0){return a[t[r+0]]+a[t[r+1]]+a[t[r+2]]+a[t[r+3]]+"-"+a[t[r+4]]+a[t[r+5]]+"-"+a[t[r+6]]+a[t[r+7]]+"-"+a[t[r+8]]+a[t[r+9]]+"-"+a[t[r+10]]+a[t[r+11]]+a[t[r+12]]+a[t[r+13]]+a[t[r+14]]+a[t[r+15]]}const p=function(t){if(!function(t){return"string"==typeof t&&c.test(t)}(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=255&r,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=255&r,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=255&r,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=255&r,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=255&r,e};function l(t,r,e){function n(t,n,o,i){var s;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;t.length>e;++e)r.push(t.charCodeAt(e));return r}(t)),"string"==typeof n&&(n=p(n)),16!==(null===(s=n)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+t.length);if(u.set(n),u.set(t,n.length),u=e(u),u[6]=15&u[6]|r,u[8]=63&u[8]|128,o){i=i||0;for(let t=0;16>t;++t)o[i+t]=u[t];return o}return f(u)}try{n.name=t}catch(o){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}l("v3",48,(function(t){return Array.isArray(t)?t=Buffer.from(t):"string"==typeof t&&(t=Buffer.from(t,"utf8")),o().createHash("md5").update(t).digest()}));const v={randomUUID:o().randomUUID},y=function(t,r,e){if(v.randomUUID&&!r&&!t)return v.randomUUID();const n=(t=t||{}).random||(t.rng||u)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,r){e=e||0;for(let t=0;16>t;++t)r[e+t]=n[t];return r}return f(n)};l("v5",80,(function(t){return Array.isArray(t)?t=Buffer.from(t):"string"==typeof t&&(t=Buffer.from(t,"utf8")),o().createHash("sha1").update(t).digest()}))},8280:(t,r,e)=>{"use strict";var n=e(1907);t.exports=n({}.isPrototypeOf)},8311:(t,r,e)=>{"use strict";var n=e(2361),o=e(2159),i=e(1505),s=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?s(t,r):function(){return t.apply(r,arguments)}}},8628:(t,r,e)=>{t.exports=e(6343)},8661:(t,r,e)=>{"use strict";var n=e(9447),o=e(8828);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8828:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(r){return!0}}},9298:(t,r,e)=>{"use strict";var n=e(4239),o=Object;t.exports=function(t){return o(n(t))}},9367:(t,r,e)=>{"use strict";var n=e(2159),o=e(7136);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},9447:(t,r,e)=>{"use strict";var n=e(8828);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:(t,r,e)=>{"use strict";var n=e(5951),o=e(6285),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},9724:(t,r,e)=>{"use strict";var n=e(1907),o=e(9298),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},9748:(t,r,e)=>{"use strict";var n=e(1091),o=e(4436).includes,i=e(8828),s=e(2156);n({target:"Array",proto:!0,forced:i((function(){return!1}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},9770:(t,r,e)=>{"use strict";var n=e(1091),o=e(1907),i=e(2074),s=e(4239),u=e(160),c=e(5735),a=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~a(u(s(this)),u(i(t)),arguments.length>1?arguments[1]:void 0)}})},9846:(t,r,e)=>{"use strict";var n=e(798),o=e(8828),i=e(5951).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&41>n}))}};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Todo item interface
|
|
3
|
-
*/
|
|
4
|
-
export interface TodoItem {
|
|
5
|
-
/**
|
|
6
|
-
* Unique identifier for the todo
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
9
|
-
/**
|
|
10
|
-
* Todo item text
|
|
11
|
-
*/
|
|
12
|
-
text: string;
|
|
13
|
-
/**
|
|
14
|
-
* Whether the todo is completed
|
|
15
|
-
*/
|
|
16
|
-
completed: boolean;
|
|
17
|
-
}
|