@wrdagency/blockout 0.0.18 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2NBKRL7C-7XoDiJp9.js +85 -0
- package/dist/2RSXSRCN-qt84MtKs.js +61 -0
- package/dist/4CMBR7SL-BHIN8rB4.js +308 -0
- package/dist/5JTVDSTH-CG1NL6Fw.js +174 -0
- package/dist/5VQZOHHZ-CscZGerP.js +59 -0
- package/dist/6VRAQV3D-Clhw_nNS.js +201 -0
- package/dist/7PRQYBBV-91wrWGjk.js +17 -0
- package/dist/ArrowRight.es-xyNbtVOa.js +60 -0
- package/dist/DG5U6ZEL-CVj-Czp2.js +17 -0
- package/dist/F5MUBM3I-87B2_4WK.js +54 -0
- package/dist/LMDWO4NN--KEvZePp.js +610 -0
- package/dist/MTZPJQMC-DyCWBG18.js +14 -0
- package/dist/P7GR5CS5-BoOYUfSQ.js +19 -0
- package/dist/PFRGBC2K-BEg8ahbY.js +303 -0
- package/dist/RS7LB2H4-D0fWv5qu.js +15 -0
- package/dist/RZ4GPYOB-13-5LlEb.js +37 -0
- package/dist/S43UC3DV-Dn8EFLaT.js +22 -0
- package/dist/Square.es-KJLdY11q.js +72 -0
- package/dist/T7VMP3TM-DeRMoW8g.js +77 -0
- package/dist/TP7N7UIH-BHb1rEeb.js +34 -0
- package/dist/UQQRIHDV-Bu8e1bYU.js +69 -0
- package/dist/UYGDZTLQ-DcCmv5SE.js +12 -0
- package/dist/VIIRIBF3-D5DmZNtI.js +26 -0
- package/dist/WMYDSCNQ-DECXdiUT.js +1346 -0
- package/dist/WYCIER3C-8jmp2F15.js +175 -0
- package/dist/YV4JVR4I-LkUIiJWj.js +351 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -0
- package/dist/assets/index15.css +1 -0
- package/dist/assets/index16.css +1 -0
- package/dist/assets/index17.css +1 -0
- package/dist/assets/index18.css +1 -0
- package/dist/assets/index19.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/assets/style2.css +1 -0
- package/dist/assets/style3.css +1 -0
- package/dist/assets/style4.css +1 -0
- package/dist/assets/styles.css +1 -1
- package/dist/components/block-editor/editor.d.ts +5 -0
- package/dist/components/block-editor/editor.js +6 -0
- package/dist/components/block-editor/index.d.ts +1 -0
- package/dist/components/block-editor/index.js +4 -0
- package/dist/components/breadcrumbs/index.js +87 -31
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/button/icon.d.ts +1 -2
- package/dist/components/button/icon.js +10 -3
- package/dist/components/button/index.d.ts +4 -0
- package/dist/components/controls/base-control/affix.js +7 -7
- package/dist/components/controls/base-control/index.js +11 -11
- package/dist/components/controls/base-popover-control/index.d.ts +9 -0
- package/dist/components/controls/base-popover-control/index.js +47 -0
- package/dist/components/controls/checkbox-control/index.d.ts +8 -0
- package/dist/components/controls/checkbox-control/index.js +57 -0
- package/dist/components/controls/choice-control/choice.js +13 -11
- package/dist/components/controls/choice-control/index.js +1 -1
- package/dist/components/controls/index.d.ts +4 -1
- package/dist/components/controls/index.js +25 -16
- package/dist/components/controls/number-control/index.js +29 -27
- package/dist/components/controls/password-control/index.js +1 -1
- package/dist/components/controls/recurrence-control/index.d.ts +8 -0
- package/dist/components/controls/recurrence-control/index.js +208 -0
- package/dist/components/controls/select-control/component.d.ts +12 -0
- package/dist/components/controls/select-control/component.js +1879 -0
- package/dist/components/controls/select-control/index.d.ts +2 -12
- package/dist/components/controls/select-control/index.js +5 -1860
- package/dist/components/controls/select-control/options.d.ts +7 -0
- package/dist/components/controls/select-control/options.js +9 -0
- package/dist/components/controls/textarea-control/index.js +1 -1
- package/dist/components/controls/toggle-control/index.js +11 -9
- package/dist/components/controls/toggle-group-control/index.d.ts +19 -0
- package/dist/components/controls/toggle-group-control/index.js +50 -0
- package/dist/components/data-table/header.js +120 -171
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/filesystem/file.d.ts +7 -0
- package/dist/components/filesystem/file.js +44 -0
- package/dist/components/filesystem/folder.d.ts +6 -0
- package/dist/components/filesystem/folder.js +160 -0
- package/dist/components/filesystem/icon.d.ts +7 -0
- package/dist/components/filesystem/icon.js +908 -0
- package/dist/components/filesystem/index.js +14 -0
- package/dist/components/filesystem/list.d.ts +4 -0
- package/dist/components/filesystem/list.js +18 -0
- package/dist/components/filesystem/root.d.ts +3 -0
- package/dist/components/filesystem/root.js +7 -0
- package/dist/components/form/components/index.js +12 -12
- package/dist/components/form/components/pagination.js +23 -16
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +50 -31
- package/dist/components/markdown/{index.d.ts → editor/component.d.ts} +2 -2
- package/dist/components/markdown/editor/component.js +25583 -0
- package/dist/components/markdown/editor/index.d.ts +1 -0
- package/dist/components/markdown/editor/index.js +4 -0
- package/dist/components/markdown/formats.js +29 -27
- package/dist/components/markdown/index.js +5 -25842
- package/dist/components/markdown/prose.d.ts +3 -0
- package/dist/components/markdown/prose.js +15 -0
- package/dist/components/menu/index.js +24 -23
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +14 -42
- package/dist/components/menu/items/submenu.js +2 -2
- package/dist/components/menu/items/toggle.js +25 -91
- package/dist/components/progress/index.js +1 -1
- package/dist/components/tabs/index.js +12 -0
- package/dist/components/tabs/list.d.ts +7 -0
- package/dist/components/tabs/list.js +42 -0
- package/dist/components/tabs/panel.d.ts +8 -0
- package/dist/components/tabs/panel.js +132 -0
- package/dist/components/tabs/root.d.ts +9 -0
- package/dist/components/tabs/root.js +173 -0
- package/dist/components/tabs/tab.d.ts +7 -0
- package/dist/components/tabs/tab.js +81 -0
- package/dist/components/toolbar/index.js +27 -0
- package/dist/components/toolbar/root.d.ts +6 -0
- package/dist/components/toolbar/root.js +6 -0
- package/dist/composite-provider-DxKEAxsZ.js +10 -0
- package/dist/floating-ui.dom-BqewRPVB.js +1124 -0
- package/dist/hooks/state.d.ts +4 -0
- package/dist/hooks/state.js +7 -0
- package/dist/hooks/theme.js +7 -38
- package/dist/index-1AjPIqTN.js +73 -0
- package/dist/index-B5y9bioP.js +258 -0
- package/dist/index-BI5rPXbu.js +391 -0
- package/dist/index.js +63 -40
- package/dist/{item-D9r2-3fk.js → item-BrZqCoM7.js} +240 -234
- package/dist/options-Cfoqhxw2.js +96 -0
- package/dist/primitives/index.d.ts +2 -0
- package/dist/primitives/index.js +4 -0
- package/dist/primitives/resizable/index.js +1 -1
- package/dist/primitives/scroll-area/index.d.ts +7 -0
- package/dist/primitives/scroll-area/index.js +545 -0
- package/dist/primitives/truncate/index.d.ts +7 -0
- package/dist/primitives/truncate/index.js +46 -0
- package/dist/primitives/visually-hidden/index.d.ts +2 -2
- package/dist/primitives/visually-hidden/index.js +13 -3
- package/dist/root-CdR32nP9.js +73 -0
- package/dist/tslib.es6-DN7pKd6F.js +44 -0
- package/dist/types/date.d.ts +39 -0
- package/dist/types/date.js +1749 -0
- package/dist/types/options.d.ts +8 -6
- package/dist/utils/components.d.ts +5 -0
- package/dist/utils/components.js +14 -0
- package/dist/utils/date.d.ts +1 -0
- package/dist/utils/date.js +15 -0
- package/dist/utils/string.d.ts +4 -0
- package/dist/utils/string.js +18 -0
- package/package.json +4 -1
- package/dist/2NBKRL7C-D-Q0qGRV.js +0 -81
- package/dist/P7GR5CS5-qyeuZVEs.js +0 -640
- package/dist/T7VMP3TM-BxgFbvdx.js +0 -2106
- package/dist/UQQRIHDV-BGs025hb.js +0 -1046
- package/dist/VIIRIBF3-D9clDhln.js +0 -21
- package/dist/floating-ui.dom-9sqP7IwC.js +0 -1512
|
@@ -1,640 +0,0 @@
|
|
|
1
|
-
import * as l from "react";
|
|
2
|
-
import { isValidElement as tt, useLayoutEffect as et, useEffect as y, useMemo as X, useRef as O, useCallback as K, useReducer as rt, useState as C, createContext as R } from "react";
|
|
3
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
4
|
-
var nt = Object.defineProperty, ot = Object.defineProperties, it = Object.getOwnPropertyDescriptors, _ = Object.getOwnPropertySymbols, Y = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable, F = (t, e, r) => e in t ? nt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, c = (t, e) => {
|
|
5
|
-
for (var r in e || (e = {}))
|
|
6
|
-
Y.call(e, r) && F(t, r, e[r]);
|
|
7
|
-
if (_)
|
|
8
|
-
for (var r of _(e))
|
|
9
|
-
z.call(e, r) && F(t, r, e[r]);
|
|
10
|
-
return t;
|
|
11
|
-
}, v = (t, e) => ot(t, it(e)), st = (t, e) => {
|
|
12
|
-
var r = {};
|
|
13
|
-
for (var n in t)
|
|
14
|
-
Y.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
15
|
-
if (t != null && _)
|
|
16
|
-
for (var n of _(t))
|
|
17
|
-
e.indexOf(n) < 0 && z.call(t, n) && (r[n] = t[n]);
|
|
18
|
-
return r;
|
|
19
|
-
}, at = Object.defineProperty, ut = Object.defineProperties, ct = Object.getOwnPropertyDescriptors, S = Object.getOwnPropertySymbols, k = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable, j = (t, e, r) => e in t ? at(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, G = (t, e) => {
|
|
20
|
-
for (var r in e || (e = {}))
|
|
21
|
-
k.call(e, r) && j(t, r, e[r]);
|
|
22
|
-
if (S)
|
|
23
|
-
for (var r of S(e))
|
|
24
|
-
q.call(e, r) && j(t, r, e[r]);
|
|
25
|
-
return t;
|
|
26
|
-
}, ft = (t, e) => ut(t, ct(e)), Vt = (t, e) => {
|
|
27
|
-
var r = {};
|
|
28
|
-
for (var n in t)
|
|
29
|
-
k.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
30
|
-
if (t != null && S)
|
|
31
|
-
for (var n of S(t))
|
|
32
|
-
e.indexOf(n) < 0 && q.call(t, n) && (r[n] = t[n]);
|
|
33
|
-
return r;
|
|
34
|
-
};
|
|
35
|
-
function $t(...t) {
|
|
36
|
-
}
|
|
37
|
-
function Ft(t, e) {
|
|
38
|
-
if (lt(t)) {
|
|
39
|
-
const r = dt(e) ? e() : e;
|
|
40
|
-
return t(r);
|
|
41
|
-
}
|
|
42
|
-
return t;
|
|
43
|
-
}
|
|
44
|
-
function lt(t) {
|
|
45
|
-
return typeof t == "function";
|
|
46
|
-
}
|
|
47
|
-
function dt(t) {
|
|
48
|
-
return typeof t == "function";
|
|
49
|
-
}
|
|
50
|
-
function D(t, e) {
|
|
51
|
-
return typeof Object.hasOwn == "function" ? Object.hasOwn(t, e) : Object.prototype.hasOwnProperty.call(t, e);
|
|
52
|
-
}
|
|
53
|
-
function jt(...t) {
|
|
54
|
-
return (...e) => {
|
|
55
|
-
for (const r of t)
|
|
56
|
-
typeof r == "function" && r(...e);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function Bt(t) {
|
|
60
|
-
return t.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
61
|
-
}
|
|
62
|
-
function Wt(t, e) {
|
|
63
|
-
const r = G({}, t);
|
|
64
|
-
for (const n of e)
|
|
65
|
-
D(r, n) && delete r[n];
|
|
66
|
-
return r;
|
|
67
|
-
}
|
|
68
|
-
function Ut(t, e) {
|
|
69
|
-
const r = {};
|
|
70
|
-
for (const n of e)
|
|
71
|
-
D(t, n) && (r[n] = t[n]);
|
|
72
|
-
return r;
|
|
73
|
-
}
|
|
74
|
-
function Ht(t) {
|
|
75
|
-
return t;
|
|
76
|
-
}
|
|
77
|
-
function Xt(t, e) {
|
|
78
|
-
if (!t)
|
|
79
|
-
throw typeof e != "string" ? new Error("Invariant failed") : new Error(e);
|
|
80
|
-
}
|
|
81
|
-
function Kt(t) {
|
|
82
|
-
return Object.keys(t);
|
|
83
|
-
}
|
|
84
|
-
function Yt(t, ...e) {
|
|
85
|
-
const r = typeof t == "function" ? t(...e) : t;
|
|
86
|
-
return r == null ? !1 : !r;
|
|
87
|
-
}
|
|
88
|
-
function zt(t) {
|
|
89
|
-
return t.disabled || t["aria-disabled"] === !0 || t["aria-disabled"] === "true";
|
|
90
|
-
}
|
|
91
|
-
function kt(t) {
|
|
92
|
-
const e = {};
|
|
93
|
-
for (const r in t)
|
|
94
|
-
t[r] !== void 0 && (e[r] = t[r]);
|
|
95
|
-
return e;
|
|
96
|
-
}
|
|
97
|
-
function qt(...t) {
|
|
98
|
-
for (const e of t)
|
|
99
|
-
if (e !== void 0) return e;
|
|
100
|
-
}
|
|
101
|
-
function vt(t, e) {
|
|
102
|
-
typeof t == "function" ? t(e) : t && (t.current = e);
|
|
103
|
-
}
|
|
104
|
-
function pt(t) {
|
|
105
|
-
return !t || !tt(t) ? !1 : "ref" in t.props || "ref" in t;
|
|
106
|
-
}
|
|
107
|
-
function mt(t) {
|
|
108
|
-
return pt(t) ? c({}, t.props).ref || t.ref : null;
|
|
109
|
-
}
|
|
110
|
-
function gt(t, e) {
|
|
111
|
-
const r = c({}, t);
|
|
112
|
-
for (const n in e) {
|
|
113
|
-
if (!D(e, n)) continue;
|
|
114
|
-
if (n === "className") {
|
|
115
|
-
const i = "className";
|
|
116
|
-
r[i] = t[i] ? `${t[i]} ${e[i]}` : e[i];
|
|
117
|
-
continue;
|
|
118
|
-
}
|
|
119
|
-
if (n === "style") {
|
|
120
|
-
const i = "style";
|
|
121
|
-
r[i] = t[i] ? c(c({}, t[i]), e[i]) : e[i];
|
|
122
|
-
continue;
|
|
123
|
-
}
|
|
124
|
-
const o = e[n];
|
|
125
|
-
if (typeof o == "function" && n.startsWith("on")) {
|
|
126
|
-
const i = t[n];
|
|
127
|
-
if (typeof i == "function") {
|
|
128
|
-
r[n] = (...s) => {
|
|
129
|
-
o(...s), i(...s);
|
|
130
|
-
};
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
r[n] = o;
|
|
135
|
-
}
|
|
136
|
-
return r;
|
|
137
|
-
}
|
|
138
|
-
var P = Ct();
|
|
139
|
-
function Ct() {
|
|
140
|
-
var t;
|
|
141
|
-
return typeof window < "u" && !!((t = window.document) != null && t.createElement);
|
|
142
|
-
}
|
|
143
|
-
function E(t) {
|
|
144
|
-
return t ? "self" in t ? t.document : t.ownerDocument || document : document;
|
|
145
|
-
}
|
|
146
|
-
function Gt(t) {
|
|
147
|
-
return t ? "self" in t ? t.self : E(t).defaultView || window : self;
|
|
148
|
-
}
|
|
149
|
-
function Pt(t, e = !1) {
|
|
150
|
-
const { activeElement: r } = E(t);
|
|
151
|
-
if (!(r != null && r.nodeName))
|
|
152
|
-
return null;
|
|
153
|
-
if (xt(r) && r.contentDocument)
|
|
154
|
-
return Pt(
|
|
155
|
-
r.contentDocument.body,
|
|
156
|
-
e
|
|
157
|
-
);
|
|
158
|
-
if (e) {
|
|
159
|
-
const n = r.getAttribute("aria-activedescendant");
|
|
160
|
-
if (n) {
|
|
161
|
-
const o = E(r).getElementById(n);
|
|
162
|
-
if (o)
|
|
163
|
-
return o;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
return r;
|
|
167
|
-
}
|
|
168
|
-
function b(t, e) {
|
|
169
|
-
return t === e || t.contains(e);
|
|
170
|
-
}
|
|
171
|
-
function xt(t) {
|
|
172
|
-
return t.tagName === "IFRAME";
|
|
173
|
-
}
|
|
174
|
-
function Jt(t) {
|
|
175
|
-
const e = t.tagName.toLowerCase();
|
|
176
|
-
return e === "button" ? !0 : e === "input" && t.type ? yt.indexOf(t.type) !== -1 : !1;
|
|
177
|
-
}
|
|
178
|
-
var yt = [
|
|
179
|
-
"button",
|
|
180
|
-
"color",
|
|
181
|
-
"file",
|
|
182
|
-
"image",
|
|
183
|
-
"reset",
|
|
184
|
-
"submit"
|
|
185
|
-
];
|
|
186
|
-
function Qt(t) {
|
|
187
|
-
if (typeof t.checkVisibility == "function")
|
|
188
|
-
return t.checkVisibility();
|
|
189
|
-
const e = t;
|
|
190
|
-
return e.offsetWidth > 0 || e.offsetHeight > 0 || t.getClientRects().length > 0;
|
|
191
|
-
}
|
|
192
|
-
function M(t) {
|
|
193
|
-
try {
|
|
194
|
-
const e = t instanceof HTMLInputElement && t.selectionStart !== null, r = t.tagName === "TEXTAREA";
|
|
195
|
-
return e || r || !1;
|
|
196
|
-
} catch {
|
|
197
|
-
return !1;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
function Zt(t) {
|
|
201
|
-
return t.isContentEditable || M(t);
|
|
202
|
-
}
|
|
203
|
-
function te(t) {
|
|
204
|
-
if (M(t))
|
|
205
|
-
return t.value;
|
|
206
|
-
if (t.isContentEditable) {
|
|
207
|
-
const e = E(t).createRange();
|
|
208
|
-
return e.selectNodeContents(t), e.toString();
|
|
209
|
-
}
|
|
210
|
-
return "";
|
|
211
|
-
}
|
|
212
|
-
function ee(t) {
|
|
213
|
-
let e = 0, r = 0;
|
|
214
|
-
if (M(t))
|
|
215
|
-
e = t.selectionStart || 0, r = t.selectionEnd || 0;
|
|
216
|
-
else if (t.isContentEditable) {
|
|
217
|
-
const n = E(t).getSelection();
|
|
218
|
-
if (n != null && n.rangeCount && n.anchorNode && b(t, n.anchorNode) && n.focusNode && b(t, n.focusNode)) {
|
|
219
|
-
const o = n.getRangeAt(0), i = o.cloneRange();
|
|
220
|
-
i.selectNodeContents(t), i.setEnd(o.startContainer, o.startOffset), e = i.toString().length, i.setEnd(o.endContainer, o.endOffset), r = i.toString().length;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
return { start: e, end: r };
|
|
224
|
-
}
|
|
225
|
-
function Et(t, e) {
|
|
226
|
-
const r = ["dialog", "menu", "listbox", "tree", "grid"], n = t == null ? void 0 : t.getAttribute("role");
|
|
227
|
-
return n && r.indexOf(n) !== -1 ? n : e;
|
|
228
|
-
}
|
|
229
|
-
function re(t, e) {
|
|
230
|
-
var r;
|
|
231
|
-
const n = {
|
|
232
|
-
menu: "menuitem",
|
|
233
|
-
listbox: "option",
|
|
234
|
-
tree: "treeitem"
|
|
235
|
-
}, o = Et(t);
|
|
236
|
-
return o && (r = n[o]) != null ? r : e;
|
|
237
|
-
}
|
|
238
|
-
function wt(t) {
|
|
239
|
-
if (!t) return null;
|
|
240
|
-
const e = (r) => r === "auto" || r === "scroll";
|
|
241
|
-
if (t.clientHeight && t.scrollHeight > t.clientHeight) {
|
|
242
|
-
const { overflowY: r } = getComputedStyle(t);
|
|
243
|
-
if (e(r)) return t;
|
|
244
|
-
} else if (t.clientWidth && t.scrollWidth > t.clientWidth) {
|
|
245
|
-
const { overflowX: r } = getComputedStyle(t);
|
|
246
|
-
if (e(r)) return t;
|
|
247
|
-
}
|
|
248
|
-
return wt(t.parentElement) || document.scrollingElement || document.body;
|
|
249
|
-
}
|
|
250
|
-
function ne(t, ...e) {
|
|
251
|
-
/text|search|password|tel|url/i.test(t.type) && t.setSelectionRange(...e);
|
|
252
|
-
}
|
|
253
|
-
function oe(t, e) {
|
|
254
|
-
const r = t.map((o, i) => [i, o]);
|
|
255
|
-
let n = !1;
|
|
256
|
-
return r.sort(([o, i], [s, u]) => {
|
|
257
|
-
const f = e(i), a = e(u);
|
|
258
|
-
return f === a || !f || !a ? 0 : ht(f, a) ? (o > s && (n = !0), -1) : (o < s && (n = !0), 1);
|
|
259
|
-
}), n ? r.map(([o, i]) => i) : t;
|
|
260
|
-
}
|
|
261
|
-
function ht(t, e) {
|
|
262
|
-
return !!(e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
263
|
-
}
|
|
264
|
-
function _t() {
|
|
265
|
-
return P && !!navigator.maxTouchPoints;
|
|
266
|
-
}
|
|
267
|
-
function J() {
|
|
268
|
-
return P ? /mac|iphone|ipad|ipod/i.test(navigator.platform) : !1;
|
|
269
|
-
}
|
|
270
|
-
function ie() {
|
|
271
|
-
return P && J() && /apple/i.test(navigator.vendor);
|
|
272
|
-
}
|
|
273
|
-
function se() {
|
|
274
|
-
return P && /firefox\//i.test(navigator.userAgent);
|
|
275
|
-
}
|
|
276
|
-
function ae() {
|
|
277
|
-
return P && navigator.platform.startsWith("Mac") && !_t();
|
|
278
|
-
}
|
|
279
|
-
function ue(t) {
|
|
280
|
-
return !!(t.currentTarget && !b(t.currentTarget, t.target));
|
|
281
|
-
}
|
|
282
|
-
function ce(t) {
|
|
283
|
-
return t.target === t.currentTarget;
|
|
284
|
-
}
|
|
285
|
-
function fe(t) {
|
|
286
|
-
const e = t.currentTarget;
|
|
287
|
-
if (!e) return !1;
|
|
288
|
-
const r = J();
|
|
289
|
-
if (r && !t.metaKey || !r && !t.ctrlKey) return !1;
|
|
290
|
-
const n = e.tagName.toLowerCase();
|
|
291
|
-
return n === "a" || n === "button" && e.type === "submit" || n === "input" && e.type === "submit";
|
|
292
|
-
}
|
|
293
|
-
function le(t) {
|
|
294
|
-
const e = t.currentTarget;
|
|
295
|
-
if (!e) return !1;
|
|
296
|
-
const r = e.tagName.toLowerCase();
|
|
297
|
-
return t.altKey ? r === "a" || r === "button" && e.type === "submit" || r === "input" && e.type === "submit" : !1;
|
|
298
|
-
}
|
|
299
|
-
function de(t, e, r) {
|
|
300
|
-
const n = new Event(e, r);
|
|
301
|
-
return t.dispatchEvent(n);
|
|
302
|
-
}
|
|
303
|
-
function ve(t, e) {
|
|
304
|
-
const r = new FocusEvent("blur", e), n = t.dispatchEvent(r), o = ft(G({}, e), { bubbles: !0 });
|
|
305
|
-
return t.dispatchEvent(new FocusEvent("focusout", o)), n;
|
|
306
|
-
}
|
|
307
|
-
function pe(t, e, r) {
|
|
308
|
-
const n = new KeyboardEvent(e, r);
|
|
309
|
-
return t.dispatchEvent(n);
|
|
310
|
-
}
|
|
311
|
-
function me(t, e) {
|
|
312
|
-
const r = new MouseEvent("click", e);
|
|
313
|
-
return t.dispatchEvent(r);
|
|
314
|
-
}
|
|
315
|
-
function ge(t, e) {
|
|
316
|
-
const r = e || t.currentTarget, n = t.relatedTarget;
|
|
317
|
-
return !n || !b(r, n);
|
|
318
|
-
}
|
|
319
|
-
function Ce(t, e, r, n) {
|
|
320
|
-
const i = ((u) => {
|
|
321
|
-
const f = requestAnimationFrame(u);
|
|
322
|
-
return () => cancelAnimationFrame(f);
|
|
323
|
-
})(() => {
|
|
324
|
-
t.removeEventListener(e, s, !0), r();
|
|
325
|
-
}), s = () => {
|
|
326
|
-
i(), r();
|
|
327
|
-
};
|
|
328
|
-
return t.addEventListener(e, s, { once: !0, capture: !0 }), i;
|
|
329
|
-
}
|
|
330
|
-
function m(t, e, r, n = window) {
|
|
331
|
-
const o = [];
|
|
332
|
-
try {
|
|
333
|
-
n.document.addEventListener(t, e, r);
|
|
334
|
-
for (const s of Array.from(n.frames))
|
|
335
|
-
o.push(m(t, e, r, s));
|
|
336
|
-
} catch {
|
|
337
|
-
}
|
|
338
|
-
return () => {
|
|
339
|
-
try {
|
|
340
|
-
n.document.removeEventListener(t, e, r);
|
|
341
|
-
} catch {
|
|
342
|
-
}
|
|
343
|
-
for (const s of o)
|
|
344
|
-
s();
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
|
-
var I = c({}, l), B = I.useId;
|
|
348
|
-
I.useDeferredValue;
|
|
349
|
-
var W = I.useInsertionEffect, g = P ? et : y;
|
|
350
|
-
function St(t) {
|
|
351
|
-
const [e] = C(t);
|
|
352
|
-
return e;
|
|
353
|
-
}
|
|
354
|
-
function Pe(t) {
|
|
355
|
-
const e = O(t);
|
|
356
|
-
return g(() => {
|
|
357
|
-
e.current = t;
|
|
358
|
-
}), e;
|
|
359
|
-
}
|
|
360
|
-
function Q(t) {
|
|
361
|
-
const e = O(() => {
|
|
362
|
-
throw new Error("Cannot call an event handler while rendering.");
|
|
363
|
-
});
|
|
364
|
-
return W ? W(() => {
|
|
365
|
-
e.current = t;
|
|
366
|
-
}) : e.current = t, K((...r) => {
|
|
367
|
-
var n;
|
|
368
|
-
return (n = e.current) == null ? void 0 : n.call(e, ...r);
|
|
369
|
-
}, []);
|
|
370
|
-
}
|
|
371
|
-
function xe(t) {
|
|
372
|
-
const [e, r] = C(null);
|
|
373
|
-
return g(() => {
|
|
374
|
-
if (e == null || !t) return;
|
|
375
|
-
let n = null;
|
|
376
|
-
return t((o) => (n = o, e)), () => {
|
|
377
|
-
t(n);
|
|
378
|
-
};
|
|
379
|
-
}, [e, t]), [e, r];
|
|
380
|
-
}
|
|
381
|
-
function Z(...t) {
|
|
382
|
-
return X(() => {
|
|
383
|
-
if (t.some(Boolean))
|
|
384
|
-
return (e) => {
|
|
385
|
-
for (const r of t)
|
|
386
|
-
vt(r, e);
|
|
387
|
-
};
|
|
388
|
-
}, t);
|
|
389
|
-
}
|
|
390
|
-
function ye(t) {
|
|
391
|
-
if (B) {
|
|
392
|
-
const n = B();
|
|
393
|
-
return t || n;
|
|
394
|
-
}
|
|
395
|
-
const [e, r] = C(t);
|
|
396
|
-
return g(() => {
|
|
397
|
-
if (t || e) return;
|
|
398
|
-
const n = Math.random().toString(36).slice(2, 8);
|
|
399
|
-
r(`id-${n}`);
|
|
400
|
-
}, [t, e]), t || e;
|
|
401
|
-
}
|
|
402
|
-
function Ee(t, e) {
|
|
403
|
-
const r = (i) => {
|
|
404
|
-
if (typeof i == "string")
|
|
405
|
-
return i;
|
|
406
|
-
}, [n, o] = C(() => r(e));
|
|
407
|
-
return g(() => {
|
|
408
|
-
const i = t && "current" in t ? t.current : t;
|
|
409
|
-
o((i == null ? void 0 : i.tagName.toLowerCase()) || r(e));
|
|
410
|
-
}, [t, e]), n;
|
|
411
|
-
}
|
|
412
|
-
function we(t, e, r) {
|
|
413
|
-
const n = St(r), [o, i] = C(n);
|
|
414
|
-
return y(() => {
|
|
415
|
-
const s = t && "current" in t ? t.current : t;
|
|
416
|
-
if (!s) return;
|
|
417
|
-
const u = () => {
|
|
418
|
-
const a = s.getAttribute(e);
|
|
419
|
-
i(a ?? n);
|
|
420
|
-
}, f = new MutationObserver(u);
|
|
421
|
-
return f.observe(s, { attributeFilter: [e] }), u(), () => f.disconnect();
|
|
422
|
-
}, [t, e, n]), o;
|
|
423
|
-
}
|
|
424
|
-
function he(t, e) {
|
|
425
|
-
const r = O(!1);
|
|
426
|
-
y(() => {
|
|
427
|
-
if (r.current)
|
|
428
|
-
return t();
|
|
429
|
-
r.current = !0;
|
|
430
|
-
}, e), y(
|
|
431
|
-
() => () => {
|
|
432
|
-
r.current = !1;
|
|
433
|
-
},
|
|
434
|
-
[]
|
|
435
|
-
);
|
|
436
|
-
}
|
|
437
|
-
function _e(t, e) {
|
|
438
|
-
const r = O(!1);
|
|
439
|
-
g(() => {
|
|
440
|
-
if (r.current)
|
|
441
|
-
return t();
|
|
442
|
-
r.current = !0;
|
|
443
|
-
}, e), g(
|
|
444
|
-
() => () => {
|
|
445
|
-
r.current = !1;
|
|
446
|
-
},
|
|
447
|
-
[]
|
|
448
|
-
);
|
|
449
|
-
}
|
|
450
|
-
function Se() {
|
|
451
|
-
return rt(() => [], []);
|
|
452
|
-
}
|
|
453
|
-
function be(t) {
|
|
454
|
-
return Q(
|
|
455
|
-
typeof t == "function" ? t : () => t
|
|
456
|
-
);
|
|
457
|
-
}
|
|
458
|
-
function Oe(t, e, r = []) {
|
|
459
|
-
const n = K(
|
|
460
|
-
(o) => (t.wrapElement && (o = t.wrapElement(o)), e(o)),
|
|
461
|
-
[...r, t.wrapElement]
|
|
462
|
-
);
|
|
463
|
-
return v(c({}, t), { wrapElement: n });
|
|
464
|
-
}
|
|
465
|
-
function Re(t = !1, e) {
|
|
466
|
-
const [r, n] = C(null);
|
|
467
|
-
return { portalRef: Z(n, e), portalNode: r, domReady: !t || r };
|
|
468
|
-
}
|
|
469
|
-
function Ne(t, e, r) {
|
|
470
|
-
const n = t.onLoadedMetadataCapture, o = X(() => Object.assign(() => {
|
|
471
|
-
}, v(c({}, n), { [e]: r })), [n, e, r]);
|
|
472
|
-
return [n == null ? void 0 : n[e], { onLoadedMetadataCapture: o }];
|
|
473
|
-
}
|
|
474
|
-
function Te() {
|
|
475
|
-
return y(() => {
|
|
476
|
-
m("mousemove", Ot, !0), m("mousedown", h, !0), m("mouseup", h, !0), m("keydown", h, !0), m("scroll", h, !0);
|
|
477
|
-
}, []), Q(() => L);
|
|
478
|
-
}
|
|
479
|
-
var L = !1, U = 0, H = 0;
|
|
480
|
-
function bt(t) {
|
|
481
|
-
const e = t.movementX || t.screenX - U, r = t.movementY || t.screenY - H;
|
|
482
|
-
return U = t.screenX, H = t.screenY, e || r || process.env.NODE_ENV === "test";
|
|
483
|
-
}
|
|
484
|
-
function Ot(t) {
|
|
485
|
-
bt(t) && (L = !0);
|
|
486
|
-
}
|
|
487
|
-
function h() {
|
|
488
|
-
L = !1;
|
|
489
|
-
}
|
|
490
|
-
function De(t) {
|
|
491
|
-
const e = l.forwardRef((r, n) => t(v(c({}, r), { ref: n })));
|
|
492
|
-
return e.displayName = t.displayName || t.name, e;
|
|
493
|
-
}
|
|
494
|
-
function Me(t, e) {
|
|
495
|
-
return l.memo(t, e);
|
|
496
|
-
}
|
|
497
|
-
function Ie(t, e) {
|
|
498
|
-
const r = e, { wrapElement: n, render: o } = r, i = st(r, ["wrapElement", "render"]), s = Z(e.ref, mt(o));
|
|
499
|
-
let u;
|
|
500
|
-
if (l.isValidElement(o)) {
|
|
501
|
-
const f = v(c({}, o.props), { ref: s });
|
|
502
|
-
u = l.cloneElement(o, gt(i, f));
|
|
503
|
-
} else o ? u = o(i) : u = /* @__PURE__ */ p(t, c({}, i));
|
|
504
|
-
return n ? n(u) : u;
|
|
505
|
-
}
|
|
506
|
-
function Le(t) {
|
|
507
|
-
const e = (r = {}) => t(r);
|
|
508
|
-
return e.displayName = t.name, e;
|
|
509
|
-
}
|
|
510
|
-
function w(t = [], e = []) {
|
|
511
|
-
const r = l.createContext(void 0), n = l.createContext(void 0), o = () => l.useContext(r), i = (a = !1) => {
|
|
512
|
-
const d = l.useContext(n), x = o();
|
|
513
|
-
return a ? d : d || x;
|
|
514
|
-
}, s = () => {
|
|
515
|
-
const a = l.useContext(n), d = o();
|
|
516
|
-
if (!(a && a === d))
|
|
517
|
-
return d;
|
|
518
|
-
}, u = (a) => t.reduceRight(
|
|
519
|
-
(d, x) => /* @__PURE__ */ p(x, v(c({}, a), { children: d })),
|
|
520
|
-
/* @__PURE__ */ p(r.Provider, c({}, a))
|
|
521
|
-
);
|
|
522
|
-
return {
|
|
523
|
-
context: r,
|
|
524
|
-
scopedContext: n,
|
|
525
|
-
useContext: o,
|
|
526
|
-
useScopedContext: i,
|
|
527
|
-
useProviderContext: s,
|
|
528
|
-
ContextProvider: u,
|
|
529
|
-
ScopedContextProvider: (a) => /* @__PURE__ */ p(u, v(c({}, a), { children: e.reduceRight(
|
|
530
|
-
(d, x) => /* @__PURE__ */ p(x, v(c({}, a), { children: d })),
|
|
531
|
-
/* @__PURE__ */ p(n.Provider, c({}, a))
|
|
532
|
-
) }))
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
var A = w(), Ae = A.useProviderContext, Rt = A.ContextProvider, Nt = A.ScopedContextProvider, V = w(
|
|
536
|
-
[Rt],
|
|
537
|
-
[Nt]
|
|
538
|
-
), Ve = V.useProviderContext, Tt = V.ContextProvider, Dt = V.ScopedContextProvider, $e = R(void 0), Fe = R(void 0), N = w(
|
|
539
|
-
[Tt],
|
|
540
|
-
[Dt]
|
|
541
|
-
), je = N.useContext, Be = N.useProviderContext, We = N.ContextProvider, Ue = N.ScopedContextProvider, $ = w(), He = $.useContext, Mt = $.ContextProvider, It = $.ScopedContextProvider, T = w(
|
|
542
|
-
[Mt],
|
|
543
|
-
[It]
|
|
544
|
-
), Xe = T.useContext, Ke = T.useProviderContext, Ye = T.ContextProvider, ze = T.ScopedContextProvider, ke = R(
|
|
545
|
-
void 0
|
|
546
|
-
), qe = R(
|
|
547
|
-
void 0
|
|
548
|
-
);
|
|
549
|
-
export {
|
|
550
|
-
xt as $,
|
|
551
|
-
Re as A,
|
|
552
|
-
Te as B,
|
|
553
|
-
ze as C,
|
|
554
|
-
jt as D,
|
|
555
|
-
m as E,
|
|
556
|
-
Pe as F,
|
|
557
|
-
Oe as G,
|
|
558
|
-
Yt as H,
|
|
559
|
-
b as I,
|
|
560
|
-
zt as J,
|
|
561
|
-
Vt as K,
|
|
562
|
-
Ft as L,
|
|
563
|
-
he as M,
|
|
564
|
-
de as N,
|
|
565
|
-
Et as O,
|
|
566
|
-
Ue as P,
|
|
567
|
-
D as Q,
|
|
568
|
-
Wt as R,
|
|
569
|
-
Ut as S,
|
|
570
|
-
Kt as T,
|
|
571
|
-
$t as U,
|
|
572
|
-
Ht as V,
|
|
573
|
-
M as W,
|
|
574
|
-
He as X,
|
|
575
|
-
Pt as Y,
|
|
576
|
-
Qt as Z,
|
|
577
|
-
st as _,
|
|
578
|
-
We as a,
|
|
579
|
-
ue as a0,
|
|
580
|
-
Jt as a1,
|
|
581
|
-
Ce as a2,
|
|
582
|
-
ce as a3,
|
|
583
|
-
ge as a4,
|
|
584
|
-
Ee as a5,
|
|
585
|
-
ie as a6,
|
|
586
|
-
Ne as a7,
|
|
587
|
-
se as a8,
|
|
588
|
-
me as a9,
|
|
589
|
-
qe as aa,
|
|
590
|
-
Zt as ab,
|
|
591
|
-
ee as ac,
|
|
592
|
-
te as ad,
|
|
593
|
-
ke as ae,
|
|
594
|
-
wt as af,
|
|
595
|
-
xe as ag,
|
|
596
|
-
we as ah,
|
|
597
|
-
_t as ai,
|
|
598
|
-
Se as aj,
|
|
599
|
-
_e as ak,
|
|
600
|
-
ne as al,
|
|
601
|
-
Bt as am,
|
|
602
|
-
oe as an,
|
|
603
|
-
Ke as ao,
|
|
604
|
-
ve as ap,
|
|
605
|
-
pe as aq,
|
|
606
|
-
Ae as ar,
|
|
607
|
-
Dt as as,
|
|
608
|
-
vt as at,
|
|
609
|
-
J as au,
|
|
610
|
-
ae as av,
|
|
611
|
-
Ve as aw,
|
|
612
|
-
$e as ax,
|
|
613
|
-
Fe as ay,
|
|
614
|
-
Be as az,
|
|
615
|
-
Ye as b,
|
|
616
|
-
w as c,
|
|
617
|
-
Le as d,
|
|
618
|
-
Ie as e,
|
|
619
|
-
De as f,
|
|
620
|
-
Q as g,
|
|
621
|
-
re as h,
|
|
622
|
-
Xt as i,
|
|
623
|
-
v as j,
|
|
624
|
-
c as k,
|
|
625
|
-
le as l,
|
|
626
|
-
Me as m,
|
|
627
|
-
fe as n,
|
|
628
|
-
E as o,
|
|
629
|
-
Xe as p,
|
|
630
|
-
je as q,
|
|
631
|
-
ye as r,
|
|
632
|
-
Z as s,
|
|
633
|
-
kt as t,
|
|
634
|
-
be as u,
|
|
635
|
-
g as v,
|
|
636
|
-
Gt as w,
|
|
637
|
-
ft as x,
|
|
638
|
-
qt as y,
|
|
639
|
-
G as z
|
|
640
|
-
};
|