@netlify/spark-ui 0.0.47-alpha → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/compat.module.DT16W4Wr.js +175 -0
- package/dist/chunks/hooks.module.CNV9mxng.js +138 -0
- package/dist/chunks/{useTimeout.DYuvQwFN.js → useTimeout.DOkYFG64.js} +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/preact/Modal/Modal.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchInput.js +2 -2
- package/dist/components/preact/SearchModal/components/SearchLink/SearchLink.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchToggle/SearchToggle.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchWindow.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useKeyboardNav.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearch.js +2 -2
- package/dist/components/preact/SearchModal/hooks/useSearchHotkeys.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchLogger.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchParams.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchToggles.js +1 -1
- package/dist/components/preact/index.d.ts +0 -1
- package/dist/components/preact/index.js +5 -7
- package/package.json +2 -4
- package/packages/assets/fonts/README.md +5 -0
- package/packages/assets/fonts/figtree/Figtree-Italic[wght].woff2 +0 -0
- package/packages/assets/fonts/figtree/Figtree[wght].woff2 +0 -0
- package/packages/assets/fonts/instrument-sans/InstrumentSans-Italic[wdth,wght].woff2 +0 -0
- package/packages/assets/fonts/instrument-sans/InstrumentSans[wdth,wght].woff2 +0 -0
- package/packages/assets/fonts/martian-mono/MartianMono-Bold.woff2 +0 -0
- package/packages/assets/fonts/martian-mono/MartianMono-Medium.woff2 +0 -0
- package/packages/assets/fonts/martian-mono/MartianMono-Regular.woff2 +0 -0
- package/packages/assets/fonts/martian-mono/MartianMono-SemiBold.woff2 +0 -0
- package/packages/components/index.ts +0 -1
- package/packages/components/preact/index.ts +0 -1
- package/packages/styles/base.css +1 -0
- package/packages/styles/fonts.css +125 -10
- package/packages/styles/reset.css +79 -0
- package/packages/styles/tokens.css +24 -19
- package/dist/assets/ChatApp.css +0 -1
- package/dist/chunks/compat.module.BjTzMHXJ.js +0 -296
- package/dist/chunks/hooks.module.DeYLzLnU.js +0 -177
- package/dist/components/preact/ChatApp/ChatApp.d.ts +0 -2
- package/dist/components/preact/ChatApp/ChatApp.js +0 -5346
- package/packages/components/preact/ChatApp/ChatApp.css +0 -142
- package/packages/components/preact/ChatApp/ChatApp.tsx +0 -237
|
@@ -1,17 +1,132 @@
|
|
|
1
|
+
/* font-face: Text */
|
|
1
2
|
@font-face {
|
|
2
|
-
font-family:
|
|
3
|
-
src: url('../assets/fonts/
|
|
4
|
-
unicode-range: U+5, U+20, U+21, U+24, U+25, U+26, U+27, U+2B-2E, U+30-3A, U+3F, U+41-5A, U+61-7A, U+D7, U+2019, U+201C,
|
|
5
|
-
U+201D;
|
|
6
|
-
font-weight: 100 1000;
|
|
3
|
+
font-family: 'Instrument Sans';
|
|
4
|
+
src: url('../assets/fonts/instrument-sans/InstrumentSans[wdth,wght].woff2') format('woff2');
|
|
7
5
|
font-display: swap;
|
|
6
|
+
font-weight: 100 900;
|
|
7
|
+
unicode-range:
|
|
8
|
+
U+5, U+20, U+21, U+24, U+25, U+26, U+27, U+2B-2E, U+30-3A, U+3F, U+41-5A, U+61-7A, U+D7, U+2019,
|
|
9
|
+
U+201C, U+201D;
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
@font-face {
|
|
11
|
-
font-family:
|
|
12
|
-
src: url('../assets/fonts/
|
|
13
|
-
unicode-range: U+5, U+20, U+21, U+24, U+25, U+26, U+27, U+2B-2E, U+30-3A, U+3F, U+41-5A, U+61-7A, U+D7, U+2019, U+201C,
|
|
14
|
-
U+201D;
|
|
15
|
-
font-weight: 200 900;
|
|
13
|
+
font-family: 'Instrument Sans';
|
|
14
|
+
src: url('../assets/fonts/instrument-sans/InstrumentSans-Italic[wdth,wght].woff2') format('woff2');
|
|
16
15
|
font-display: swap;
|
|
16
|
+
font-style: italic;
|
|
17
|
+
font-weight: 100 900;
|
|
18
|
+
unicode-range:
|
|
19
|
+
U+5, U+20, U+21, U+24, U+25, U+26, U+27, U+2B-2E, U+30-3A, U+3F, U+41-5A, U+61-7A, U+D7, U+2019,
|
|
20
|
+
U+201C, U+201D;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* font-face: Display */
|
|
24
|
+
@font-face {
|
|
25
|
+
font-family: 'Figtree';
|
|
26
|
+
src: url('../assets/fonts/figtree/Figtree-Variable.woff2') format('woff2');
|
|
27
|
+
font-display: swap;
|
|
28
|
+
font-weight: 100 900;
|
|
29
|
+
unicode-range:
|
|
30
|
+
U+5, U+20, U+21, U+24, U+25, U+26, U+27, U+2B-2E, U+30-3A, U+3F, U+41-5A, U+61-7A, U+D7, U+2019,
|
|
31
|
+
U+201C, U+201D;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* font-face: Monospace */
|
|
35
|
+
@font-face {
|
|
36
|
+
font-family: 'Martian Mono';
|
|
37
|
+
src: url('../assets/fonts/martian-mono/MartianMono-Regular.woff2') format('woff2');
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
font-display: swap;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@font-face {
|
|
43
|
+
font-family: 'Martian Mono';
|
|
44
|
+
src: url('../assets/fonts/martian-mono/MartianMono-Medium.woff2') format('woff2');
|
|
45
|
+
font-weight: 500;
|
|
46
|
+
font-display: swap;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@font-face {
|
|
50
|
+
font-family: 'Martian Mono';
|
|
51
|
+
src: url('../assets/fonts/martian-mono/MartianMono-SemiBold.woff2') format('woff2');
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
font-display: swap;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: 'Martian Mono';
|
|
58
|
+
src: url('../assets/fonts/martian-mono/MartianMono-Bold.woff2') format('woff2');
|
|
59
|
+
font-weight: 700;
|
|
60
|
+
font-display: swap;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Text */
|
|
64
|
+
body {
|
|
65
|
+
font-family: var(--font-family-text);
|
|
66
|
+
font-size: var(--font-size-text-lg);
|
|
67
|
+
font-weight: var(--font-weight-normal);
|
|
68
|
+
line-height: var(--line-height-text);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
b,
|
|
72
|
+
strong {
|
|
73
|
+
font-weight: var(--font-weight-bold);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
i,
|
|
77
|
+
em {
|
|
78
|
+
font-style: italic;
|
|
79
|
+
font-weight: var(--font-weight-normal);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Headings */
|
|
83
|
+
h1,
|
|
84
|
+
.h1 {
|
|
85
|
+
font-family: var(--font-family-display);
|
|
86
|
+
font-size: var(--font-size-display-2xl);
|
|
87
|
+
font-weight: var(--font-weight-extrabold);
|
|
88
|
+
line-height: var(--line-height-heading);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
h2,
|
|
92
|
+
.h2 {
|
|
93
|
+
font-family: var(--font-family-display);
|
|
94
|
+
font-size: var(--font-size-display-xl);
|
|
95
|
+
font-weight: var(--font-weight-extrabold);
|
|
96
|
+
line-height: var(--line-height-heading);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
h3,
|
|
100
|
+
.h3 {
|
|
101
|
+
font-family: var(--font-family-display);
|
|
102
|
+
font-size: var(--font-size-display-lg);
|
|
103
|
+
font-weight: var(--font-weight-bold);
|
|
104
|
+
line-height: var(--line-height-heading);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
h4,
|
|
108
|
+
.h4 {
|
|
109
|
+
font-family: var(--font-family-display);
|
|
110
|
+
font-size: var(--font-size-display-sm);
|
|
111
|
+
font-weight: var(--font-weight-bold);
|
|
112
|
+
line-height: var(--line-height-heading);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Lists */
|
|
116
|
+
li::marker {
|
|
117
|
+
color: var(--color-brand);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
ol li::marker {
|
|
121
|
+
font-weight: var(--font-weight-bold);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Code */
|
|
125
|
+
pre,
|
|
126
|
+
code,
|
|
127
|
+
kbd {
|
|
128
|
+
font-family: var(--font-family-monospace);
|
|
129
|
+
font-size: var(--font-size-text-md);
|
|
130
|
+
font-weight: var(--font-weight-normal);
|
|
131
|
+
line-height: var(--line-height-text);
|
|
17
132
|
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
body,
|
|
8
|
+
h1,
|
|
9
|
+
h2,
|
|
10
|
+
h3,
|
|
11
|
+
h4,
|
|
12
|
+
h5,
|
|
13
|
+
p,
|
|
14
|
+
figure,
|
|
15
|
+
blockquote,
|
|
16
|
+
dl,
|
|
17
|
+
dd,
|
|
18
|
+
ul,
|
|
19
|
+
ol,
|
|
20
|
+
pre,
|
|
21
|
+
code {
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(p, h1, h2, h3, h4, h5, h6) {
|
|
26
|
+
overflow-wrap: break-word;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where(ul, ol) {
|
|
30
|
+
padding-inline-start: 1em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(ul[role='list'], ol[role='list'], ul[class], ol[class]) {
|
|
34
|
+
list-style: none;
|
|
35
|
+
padding-inline-start: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
39
|
+
html:focus-within {
|
|
40
|
+
scroll-behavior: smooth;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
html {
|
|
45
|
+
/* Prevent font size inflation */
|
|
46
|
+
-moz-text-size-adjust: none;
|
|
47
|
+
-webkit-text-size-adjust: none;
|
|
48
|
+
text-size-adjust: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
body {
|
|
52
|
+
line-height: 1.5;
|
|
53
|
+
min-height: 100vh;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
a {
|
|
57
|
+
color: currentcolor;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
a:not([class]) {
|
|
61
|
+
text-decoration-skip-ink: auto;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
picture,
|
|
65
|
+
img,
|
|
66
|
+
video,
|
|
67
|
+
iframe,
|
|
68
|
+
object {
|
|
69
|
+
display: block;
|
|
70
|
+
max-inline-size: 100%;
|
|
71
|
+
block-size: auto;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
input,
|
|
75
|
+
button,
|
|
76
|
+
textarea,
|
|
77
|
+
select {
|
|
78
|
+
font: inherit;
|
|
79
|
+
}
|
|
@@ -37,15 +37,29 @@
|
|
|
37
37
|
--color-warning-bg: var(--gold-100);
|
|
38
38
|
--color-warning-border: var(--gold-300);
|
|
39
39
|
--color-warning-text: var(--gold-800);
|
|
40
|
-
--font-
|
|
41
|
-
--font-
|
|
42
|
-
--font-
|
|
43
|
-
--font-
|
|
44
|
-
--font-
|
|
45
|
-
--font-
|
|
46
|
-
--font-
|
|
47
|
-
--font-
|
|
48
|
-
--font-
|
|
40
|
+
--font-family-display: "Figtree", system-ui, "Helvetica", sans-serif;
|
|
41
|
+
--font-family-monospace: "Martian Mono", ui-monospace, "Cascadia Code", "Source Code Pro", "Menlo", "Consolas", "DejaVu Sans Mono", monospace;
|
|
42
|
+
--font-family-text: "Instrument Sans", system-ui, "Helvetica", sans-serif;
|
|
43
|
+
--font-size-display-2xl: 4rem;
|
|
44
|
+
--font-size-display-2xs: 1.125rem;
|
|
45
|
+
--font-size-display-3xl: 4.5rem;
|
|
46
|
+
--font-size-display-4xl: 5rem;
|
|
47
|
+
--font-size-display-lg: 3rem;
|
|
48
|
+
--font-size-display-md: 2.5rem;
|
|
49
|
+
--font-size-display-sm: 2rem;
|
|
50
|
+
--font-size-display-xl: 3.5rem;
|
|
51
|
+
--font-size-display-xs: 1.5rem;
|
|
52
|
+
--font-size-text-lg: 1.125rem;
|
|
53
|
+
--font-size-text-md: 1rem;
|
|
54
|
+
--font-size-text-sm: 0.875rem;
|
|
55
|
+
--font-size-text-xl: 1.375rem;
|
|
56
|
+
--font-size-text-xs: 0.75rem;
|
|
57
|
+
--font-weight-bold: 700;
|
|
58
|
+
--font-weight-light: 200;
|
|
59
|
+
--font-weight-medium: 500;
|
|
60
|
+
--font-weight-regular: 400;
|
|
61
|
+
--font-weight-semibold: 600;
|
|
62
|
+
--font-weight-semilight: 300;
|
|
49
63
|
--gold-000: color(srgb 0.9921568627450981 0.9607843137254902 0.8470588235294118);
|
|
50
64
|
--gold-100: color(srgb 0.9647058823529412 0.8784313725490196 0.6470588235294118);
|
|
51
65
|
--gold-200: color(srgb 0.9803921568627451 0.803921568627451 0.43529411764705883);
|
|
@@ -68,7 +82,7 @@
|
|
|
68
82
|
--green-900: color(srgb 0.08235294117647059 0.16470588235294117 0.09803921568627451);
|
|
69
83
|
--line-height-heading: 1.2;
|
|
70
84
|
--line-height-none: 1;
|
|
71
|
-
--line-height-
|
|
85
|
+
--line-height-text: 1.5;
|
|
72
86
|
--neutral-000: color(srgb 1 1 1);
|
|
73
87
|
--neutral-100: color(srgb 0.9647058823529412 0.9647058823529412 0.9686274509803922);
|
|
74
88
|
--neutral-200: color(srgb 0.9137254901960784 0.9215686274509803 0.9294117647058824);
|
|
@@ -133,15 +147,6 @@
|
|
|
133
147
|
--teal-700: color(srgb 0.00392156862745098 0.4117647058823529 0.40784313725490196);
|
|
134
148
|
--teal-800: color(srgb 0.00392156862745098 0.2823529411764706 0.2784313725490196);
|
|
135
149
|
--teal-900: color(srgb 0.047058823529411764 0.16470588235294117 0.16470588235294117);
|
|
136
|
-
--text-2xl: 1.74rem;
|
|
137
|
-
--text-3xl: 2.3rem;
|
|
138
|
-
--text-4xl: 3.04rem;
|
|
139
|
-
--text-5xl: 4.01rem;
|
|
140
|
-
--text-base: 1rem;
|
|
141
|
-
--text-lg: 1.125rem;
|
|
142
|
-
--text-sm: 0.875rem;
|
|
143
|
-
--text-xl: 1.32rem;
|
|
144
|
-
--text-xs: 0.8125rem;
|
|
145
150
|
}
|
|
146
151
|
|
|
147
152
|
@media (prefers-color-scheme: light) {
|
package/dist/assets/ChatApp.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.chatbot-container{display:flex;padding:3rem;height:100vh;background-color:#f7fafc}.chatbot-wrapper{display:flex;flex-direction:column;width:100%;max-width:1024px;margin:0 auto;background-color:#fff;box-shadow:0 4px 6px #0000001a;border-radius:8px;overflow:hidden}.header{background-color:#2d3748;color:#fff;padding:1rem;display:flex;justify-content:space-between;align-items:center}.header-left{display:flex;align-items:center}.header-title{font-weight:700;font-size:1.25rem}.new-chat-button{display:flex;align-items:center;background-color:#4a5568;border-radius:.375rem;padding:.25rem .75rem;font-size:.875rem}.icon{margin-right:.25rem}.chat-container{flex:1;overflow-y:auto;padding:1rem}.error-message{background-color:#fed7d7;border:1px solid #fbd5d5;color:#9b2c2c;padding:1rem;border-radius:.375rem;margin-bottom:1rem}.error-title{font-weight:700}.message{display:flex;flex-direction:column;margin-bottom:1rem}.message-right{display:flex;justify-content:flex-end}.message-bubble{padding:1rem;border-radius:.5rem;max-width:75%}.user-message{background-color:#4299e1;color:#fff}.bot-message{background-color:#edf2f7;color:#2d3748}.input-area{border-top:1px solid #e2e8f0;padding:1rem}.input-form{display:flex;align-items:center}.input-field{flex:1;background-color:#edf2f7;border-radius:.5rem;padding:.5rem 1rem}.input{width:100%;background-color:transparent;border:none;outline:none}.stop-button,.send-button{margin-left:.5rem;background-color:#3182ce;border-radius:9999px;padding:.5rem;color:#fff}.stop-icon{width:1rem;height:1rem}
|
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
import { Component as p, options as l, createElement as f, Fragment as h, toChildArray as s, createRef as Q, createContext as X, cloneElement as ee, render as m, hydrate as te } from "preact";
|
|
2
|
-
import { x as T, d as N, A as D, h as I, T as L, _ as y, F as M, g as V, y as S, P as F, q as W } from "./hooks.module.DeYLzLnU.js";
|
|
3
|
-
function H(e, t) {
|
|
4
|
-
for (var n in t) e[n] = t[n];
|
|
5
|
-
return e;
|
|
6
|
-
}
|
|
7
|
-
function g(e, t) {
|
|
8
|
-
for (var n in e) if (n !== "__source" && !(n in t)) return !0;
|
|
9
|
-
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
|
|
10
|
-
return !1;
|
|
11
|
-
}
|
|
12
|
-
function B(e, t) {
|
|
13
|
-
var n = t(), r = N({ t: { __: n, u: t } }), o = r[0].t, a = r[1];
|
|
14
|
-
return y(function() {
|
|
15
|
-
o.__ = n, o.u = t, C(o) && a({ t: o });
|
|
16
|
-
}, [e, n, t]), S(function() {
|
|
17
|
-
return C(o) && a({ t: o }), e(function() {
|
|
18
|
-
C(o) && a({ t: o });
|
|
19
|
-
});
|
|
20
|
-
}, [e]), n;
|
|
21
|
-
}
|
|
22
|
-
function C(e) {
|
|
23
|
-
var t, n, r = e.u, o = e.__;
|
|
24
|
-
try {
|
|
25
|
-
var a = r();
|
|
26
|
-
return !((t = o) === (n = a) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n);
|
|
27
|
-
} catch {
|
|
28
|
-
return !0;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function z(e) {
|
|
32
|
-
e();
|
|
33
|
-
}
|
|
34
|
-
function j(e) {
|
|
35
|
-
return e;
|
|
36
|
-
}
|
|
37
|
-
function q() {
|
|
38
|
-
return [!1, z];
|
|
39
|
-
}
|
|
40
|
-
var Z = y;
|
|
41
|
-
function E(e, t) {
|
|
42
|
-
this.props = e, this.context = t;
|
|
43
|
-
}
|
|
44
|
-
function ne(e, t) {
|
|
45
|
-
function n(o) {
|
|
46
|
-
var a = this.props.ref, u = a == o.ref;
|
|
47
|
-
return !u && a && (a.call ? a(null) : a.current = null), t ? !t(this.props, o) || !u : g(this.props, o);
|
|
48
|
-
}
|
|
49
|
-
function r(o) {
|
|
50
|
-
return this.shouldComponentUpdate = n, f(e, o);
|
|
51
|
-
}
|
|
52
|
-
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
53
|
-
}
|
|
54
|
-
(E.prototype = new p()).isPureReactComponent = !0, E.prototype.shouldComponentUpdate = function(e, t) {
|
|
55
|
-
return g(this.props, e) || g(this.state, t);
|
|
56
|
-
};
|
|
57
|
-
var R = l.__b;
|
|
58
|
-
l.__b = function(e) {
|
|
59
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), R && R(e);
|
|
60
|
-
};
|
|
61
|
-
var re = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
62
|
-
function oe(e) {
|
|
63
|
-
function t(n) {
|
|
64
|
-
var r = H({}, n);
|
|
65
|
-
return delete r.ref, e(r, n.ref || null);
|
|
66
|
-
}
|
|
67
|
-
return t.$$typeof = re, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
68
|
-
}
|
|
69
|
-
var k = function(e, t) {
|
|
70
|
-
return e == null ? null : s(s(e).map(t));
|
|
71
|
-
}, ue = { map: k, forEach: k, count: function(e) {
|
|
72
|
-
return e ? s(e).length : 0;
|
|
73
|
-
}, only: function(e) {
|
|
74
|
-
var t = s(e);
|
|
75
|
-
if (t.length !== 1) throw "Children.only";
|
|
76
|
-
return t[0];
|
|
77
|
-
}, toArray: s }, ae = l.__e;
|
|
78
|
-
l.__e = function(e, t, n, r) {
|
|
79
|
-
if (e.then) {
|
|
80
|
-
for (var o, a = t; a = a.__; ) if ((o = a.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
81
|
-
}
|
|
82
|
-
ae(e, t, n, r);
|
|
83
|
-
};
|
|
84
|
-
var O = l.unmount;
|
|
85
|
-
function Y(e, t, n) {
|
|
86
|
-
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
87
|
-
typeof r.__c == "function" && r.__c();
|
|
88
|
-
}), e.__c.__H = null), (e = H({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
89
|
-
return Y(r, t, n);
|
|
90
|
-
})), e;
|
|
91
|
-
}
|
|
92
|
-
function G(e, t, n) {
|
|
93
|
-
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
94
|
-
return G(r, t, n);
|
|
95
|
-
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
96
|
-
}
|
|
97
|
-
function v() {
|
|
98
|
-
this.__u = 0, this.o = null, this.__b = null;
|
|
99
|
-
}
|
|
100
|
-
function J(e) {
|
|
101
|
-
var t = e.__.__c;
|
|
102
|
-
return t && t.__a && t.__a(e);
|
|
103
|
-
}
|
|
104
|
-
function ie(e) {
|
|
105
|
-
var t, n, r;
|
|
106
|
-
function o(a) {
|
|
107
|
-
if (t || (t = e()).then(function(u) {
|
|
108
|
-
n = u.default || u;
|
|
109
|
-
}, function(u) {
|
|
110
|
-
r = u;
|
|
111
|
-
}), r) throw r;
|
|
112
|
-
if (!n) throw t;
|
|
113
|
-
return f(n, a);
|
|
114
|
-
}
|
|
115
|
-
return o.displayName = "Lazy", o.__f = !0, o;
|
|
116
|
-
}
|
|
117
|
-
function d() {
|
|
118
|
-
this.i = null, this.l = null;
|
|
119
|
-
}
|
|
120
|
-
l.unmount = function(e) {
|
|
121
|
-
var t = e.__c;
|
|
122
|
-
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), O && O(e);
|
|
123
|
-
}, (v.prototype = new p()).__c = function(e, t) {
|
|
124
|
-
var n = t.__c, r = this;
|
|
125
|
-
r.o == null && (r.o = []), r.o.push(n);
|
|
126
|
-
var o = J(r.__v), a = !1, u = function() {
|
|
127
|
-
a || (a = !0, n.__R = null, o ? o(_) : _());
|
|
128
|
-
};
|
|
129
|
-
n.__R = u;
|
|
130
|
-
var _ = function() {
|
|
131
|
-
if (!--r.__u) {
|
|
132
|
-
if (r.state.__a) {
|
|
133
|
-
var i = r.state.__a;
|
|
134
|
-
r.__v.__k[0] = G(i, i.__c.__P, i.__c.__O);
|
|
135
|
-
}
|
|
136
|
-
var c;
|
|
137
|
-
for (r.setState({ __a: r.__b = null }); c = r.o.pop(); ) c.forceUpdate();
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(u, u);
|
|
141
|
-
}, v.prototype.componentWillUnmount = function() {
|
|
142
|
-
this.o = [];
|
|
143
|
-
}, v.prototype.render = function(e, t) {
|
|
144
|
-
if (this.__b) {
|
|
145
|
-
if (this.__v.__k) {
|
|
146
|
-
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
147
|
-
this.__v.__k[0] = Y(this.__b, n, r.__O = r.__P);
|
|
148
|
-
}
|
|
149
|
-
this.__b = null;
|
|
150
|
-
}
|
|
151
|
-
var o = t.__a && f(h, null, e.fallback);
|
|
152
|
-
return o && (o.__u &= -33), [f(h, null, t.__a ? null : e.children), o];
|
|
153
|
-
};
|
|
154
|
-
var P = function(e, t, n) {
|
|
155
|
-
if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
|
|
156
|
-
for (; n.length > 3; ) n.pop()();
|
|
157
|
-
if (n[1] < n[0]) break;
|
|
158
|
-
e.i = n = n[2];
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
function le(e) {
|
|
162
|
-
return this.getChildContext = function() {
|
|
163
|
-
return e.context;
|
|
164
|
-
}, e.children;
|
|
165
|
-
}
|
|
166
|
-
function _e(e) {
|
|
167
|
-
var t = this, n = e.h;
|
|
168
|
-
t.componentWillUnmount = function() {
|
|
169
|
-
m(null, t.v), t.v = null, t.h = null;
|
|
170
|
-
}, t.h && t.h !== n && t.componentWillUnmount(), t.v || (t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], contains: function() {
|
|
171
|
-
return !0;
|
|
172
|
-
}, appendChild: function(r) {
|
|
173
|
-
this.childNodes.push(r), t.h.appendChild(r);
|
|
174
|
-
}, insertBefore: function(r, o) {
|
|
175
|
-
this.childNodes.push(r), t.h.insertBefore(r, o);
|
|
176
|
-
}, removeChild: function(r) {
|
|
177
|
-
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.h.removeChild(r);
|
|
178
|
-
} }), m(f(le, { context: t.context }, e.__v), t.v);
|
|
179
|
-
}
|
|
180
|
-
function ce(e, t) {
|
|
181
|
-
var n = f(_e, { __v: e, h: t });
|
|
182
|
-
return n.containerInfo = t, n;
|
|
183
|
-
}
|
|
184
|
-
(d.prototype = new p()).__a = function(e) {
|
|
185
|
-
var t = this, n = J(t.__v), r = t.l.get(e);
|
|
186
|
-
return r[0]++, function(o) {
|
|
187
|
-
var a = function() {
|
|
188
|
-
t.props.revealOrder ? (r.push(o), P(t, e, r)) : o();
|
|
189
|
-
};
|
|
190
|
-
n ? n(a) : a();
|
|
191
|
-
};
|
|
192
|
-
}, d.prototype.render = function(e) {
|
|
193
|
-
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
194
|
-
var t = s(e.children);
|
|
195
|
-
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
196
|
-
for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
|
|
197
|
-
return e.children;
|
|
198
|
-
}, d.prototype.componentDidUpdate = d.prototype.componentDidMount = function() {
|
|
199
|
-
var e = this;
|
|
200
|
-
this.l.forEach(function(t, n) {
|
|
201
|
-
P(e, n, t);
|
|
202
|
-
});
|
|
203
|
-
};
|
|
204
|
-
var K = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, se = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, fe = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, pe = /[A-Z0-9]/g, de = typeof document < "u", he = function(e) {
|
|
205
|
-
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
206
|
-
};
|
|
207
|
-
function ve(e, t, n) {
|
|
208
|
-
return t.__k == null && (t.textContent = ""), m(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
209
|
-
}
|
|
210
|
-
function me(e, t, n) {
|
|
211
|
-
return te(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
212
|
-
}
|
|
213
|
-
p.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
214
|
-
Object.defineProperty(p.prototype, e, { configurable: !0, get: function() {
|
|
215
|
-
return this["UNSAFE_" + e];
|
|
216
|
-
}, set: function(t) {
|
|
217
|
-
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
218
|
-
} });
|
|
219
|
-
});
|
|
220
|
-
var w = l.event;
|
|
221
|
-
function ye() {
|
|
222
|
-
}
|
|
223
|
-
function be() {
|
|
224
|
-
return this.cancelBubble;
|
|
225
|
-
}
|
|
226
|
-
function Ce() {
|
|
227
|
-
return this.defaultPrevented;
|
|
228
|
-
}
|
|
229
|
-
l.event = function(e) {
|
|
230
|
-
return w && (e = w(e)), e.persist = ye, e.isPropagationStopped = be, e.isDefaultPrevented = Ce, e.nativeEvent = e;
|
|
231
|
-
};
|
|
232
|
-
var x, ge = { enumerable: !1, configurable: !0, get: function() {
|
|
233
|
-
return this.class;
|
|
234
|
-
} }, U = l.vnode;
|
|
235
|
-
l.vnode = function(e) {
|
|
236
|
-
typeof e.type == "string" && function(t) {
|
|
237
|
-
var n = t.props, r = t.type, o = {}, a = r.indexOf("-") === -1;
|
|
238
|
-
for (var u in n) {
|
|
239
|
-
var _ = n[u];
|
|
240
|
-
if (!(u === "value" && "defaultValue" in n && _ == null || de && u === "children" && r === "noscript" || u === "class" || u === "className")) {
|
|
241
|
-
var i = u.toLowerCase();
|
|
242
|
-
u === "defaultValue" && "value" in n && n.value == null ? u = "value" : u === "download" && _ === !0 ? _ = "" : i === "translate" && _ === "no" ? _ = !1 : i[0] === "o" && i[1] === "n" ? i === "ondoubleclick" ? u = "ondblclick" : i !== "onchange" || r !== "input" && r !== "textarea" || he(n.type) ? i === "onfocus" ? u = "onfocusin" : i === "onblur" ? u = "onfocusout" : fe.test(u) && (u = i) : i = u = "oninput" : a && se.test(u) ? u = u.replace(pe, "-$&").toLowerCase() : _ === null && (_ = void 0), i === "oninput" && o[u = i] && (u = "oninputCapture"), o[u] = _;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = s(n.children).forEach(function(c) {
|
|
246
|
-
c.props.selected = o.value.indexOf(c.props.value) != -1;
|
|
247
|
-
})), r == "select" && o.defaultValue != null && (o.value = s(n.children).forEach(function(c) {
|
|
248
|
-
c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
|
|
249
|
-
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", ge)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
250
|
-
}(e), e.$$typeof = K, U && U(e);
|
|
251
|
-
};
|
|
252
|
-
var $ = l.__r;
|
|
253
|
-
l.__r = function(e) {
|
|
254
|
-
$ && $(e), x = e.__c;
|
|
255
|
-
};
|
|
256
|
-
var A = l.diffed;
|
|
257
|
-
l.diffed = function(e) {
|
|
258
|
-
A && A(e);
|
|
259
|
-
var t = e.props, n = e.__e;
|
|
260
|
-
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), x = null;
|
|
261
|
-
};
|
|
262
|
-
var Ee = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
263
|
-
return x.__n[e.__c].props.value;
|
|
264
|
-
}, useCallback: W, useContext: T, useDebugValue: F, useDeferredValue: j, useEffect: S, useId: V, useImperativeHandle: M, useInsertionEffect: Z, useLayoutEffect: y, useMemo: L, useReducer: I, useRef: D, useState: N, useSyncExternalStore: B, useTransition: q } } };
|
|
265
|
-
function Ne(e) {
|
|
266
|
-
return f.bind(null, e);
|
|
267
|
-
}
|
|
268
|
-
function b(e) {
|
|
269
|
-
return !!e && e.$$typeof === K;
|
|
270
|
-
}
|
|
271
|
-
function Se(e) {
|
|
272
|
-
return b(e) && e.type === h;
|
|
273
|
-
}
|
|
274
|
-
function xe(e) {
|
|
275
|
-
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
276
|
-
}
|
|
277
|
-
function Re(e) {
|
|
278
|
-
return b(e) ? ee.apply(null, arguments) : e;
|
|
279
|
-
}
|
|
280
|
-
function ke(e) {
|
|
281
|
-
return !!e.__k && (m(null, e), !0);
|
|
282
|
-
}
|
|
283
|
-
function Oe(e) {
|
|
284
|
-
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
285
|
-
}
|
|
286
|
-
var Pe = function(e, t) {
|
|
287
|
-
return e(t);
|
|
288
|
-
}, we = function(e, t) {
|
|
289
|
-
return e(t);
|
|
290
|
-
}, Ue = h, $e = b, De = { useState: N, useId: V, useReducer: I, useEffect: S, useLayoutEffect: y, useInsertionEffect: Z, useTransition: q, useDeferredValue: j, useSyncExternalStore: B, startTransition: z, useRef: D, useImperativeHandle: M, useMemo: L, useCallback: W, useContext: T, useDebugValue: F, version: "18.3.1", Children: ue, render: ve, hydrate: me, unmountComponentAtNode: ke, createPortal: ce, createElement: f, createContext: X, createFactory: Ne, cloneElement: Re, createRef: Q, Fragment: h, isValidElement: b, isElement: $e, isFragment: Se, isMemo: xe, findDOMNode: Oe, Component: p, PureComponent: E, memo: ne, forwardRef: oe, flushSync: we, unstable_batchedUpdates: Pe, StrictMode: Ue, Suspense: v, SuspenseList: d, lazy: ie, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ee };
|
|
291
|
-
export {
|
|
292
|
-
B as C,
|
|
293
|
-
oe as D,
|
|
294
|
-
De as R,
|
|
295
|
-
Re as _
|
|
296
|
-
};
|