webview-test-test-s-ui-kit 0.0.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.
@@ -0,0 +1,1350 @@
1
+ import * as m from "react";
2
+ import E from "react";
3
+ var G = { exports: {} }, L = {};
4
+ /**
5
+ * @license React
6
+ * react-jsx-runtime.production.js
7
+ *
8
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var _e;
14
+ function He() {
15
+ if (_e) return L;
16
+ _e = 1;
17
+ var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
18
+ function a(i, o, s) {
19
+ var f = null;
20
+ if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) {
21
+ s = {};
22
+ for (var d in o)
23
+ d !== "key" && (s[d] = o[d]);
24
+ } else s = o;
25
+ return o = s.ref, {
26
+ $$typeof: e,
27
+ type: i,
28
+ key: f,
29
+ ref: o !== void 0 ? o : null,
30
+ props: s
31
+ };
32
+ }
33
+ return L.Fragment = n, L.jsx = a, L.jsxs = a, L;
34
+ }
35
+ var $ = {};
36
+ /**
37
+ * @license React
38
+ * react-jsx-runtime.development.js
39
+ *
40
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
41
+ *
42
+ * This source code is licensed under the MIT license found in the
43
+ * LICENSE file in the root directory of this source tree.
44
+ */
45
+ var he;
46
+ function Ge() {
47
+ return he || (he = 1, process.env.NODE_ENV !== "production" && (function() {
48
+ function e(u) {
49
+ if (u == null) return null;
50
+ if (typeof u == "function")
51
+ return u.$$typeof === Fe ? null : u.displayName || u.name || null;
52
+ if (typeof u == "string") return u;
53
+ switch (u) {
54
+ case R:
55
+ return "Fragment";
56
+ case _:
57
+ return "Profiler";
58
+ case S:
59
+ return "StrictMode";
60
+ case D:
61
+ return "Suspense";
62
+ case k:
63
+ return "SuspenseList";
64
+ case Y:
65
+ return "Activity";
66
+ }
67
+ if (typeof u == "object")
68
+ switch (typeof u.tag == "number" && console.error(
69
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
70
+ ), u.$$typeof) {
71
+ case h:
72
+ return "Portal";
73
+ case w:
74
+ return u.displayName || "Context";
75
+ case A:
76
+ return (u._context.displayName || "Context") + ".Consumer";
77
+ case I:
78
+ var y = u.render;
79
+ return u = u.displayName, u || (u = y.displayName || y.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
80
+ case W:
81
+ return y = u.displayName || null, y !== null ? y : e(u.type) || "Memo";
82
+ case M:
83
+ y = u._payload, u = u._init;
84
+ try {
85
+ return e(u(y));
86
+ } catch {
87
+ }
88
+ }
89
+ return null;
90
+ }
91
+ function n(u) {
92
+ return "" + u;
93
+ }
94
+ function a(u) {
95
+ try {
96
+ n(u);
97
+ var y = !1;
98
+ } catch {
99
+ y = !0;
100
+ }
101
+ if (y) {
102
+ y = console;
103
+ var O = y.error, C = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
104
+ return O.call(
105
+ y,
106
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
+ C
108
+ ), n(u);
109
+ }
110
+ }
111
+ function i(u) {
112
+ if (u === R) return "<>";
113
+ if (typeof u == "object" && u !== null && u.$$typeof === M)
114
+ return "<...>";
115
+ try {
116
+ var y = e(u);
117
+ return y ? "<" + y + ">" : "<...>";
118
+ } catch {
119
+ return "<...>";
120
+ }
121
+ }
122
+ function o() {
123
+ var u = Z.A;
124
+ return u === null ? null : u.getOwner();
125
+ }
126
+ function s() {
127
+ return Error("react-stack-top-frame");
128
+ }
129
+ function f(u) {
130
+ if (fe.call(u, "key")) {
131
+ var y = Object.getOwnPropertyDescriptor(u, "key").get;
132
+ if (y && y.isReactWarning) return !1;
133
+ }
134
+ return u.key !== void 0;
135
+ }
136
+ function d(u, y) {
137
+ function O() {
138
+ pe || (pe = !0, console.error(
139
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
140
+ y
141
+ ));
142
+ }
143
+ O.isReactWarning = !0, Object.defineProperty(u, "key", {
144
+ get: O,
145
+ configurable: !0
146
+ });
147
+ }
148
+ function l() {
149
+ var u = e(this.type);
150
+ return me[u] || (me[u] = !0, console.error(
151
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
152
+ )), u = this.props.ref, u !== void 0 ? u : null;
153
+ }
154
+ function r(u, y, O, C, H, ee) {
155
+ var T = O.ref;
156
+ return u = {
157
+ $$typeof: b,
158
+ type: u,
159
+ key: y,
160
+ props: O,
161
+ _owner: C
162
+ }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(u, "ref", {
163
+ enumerable: !1,
164
+ get: l
165
+ }) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", {
166
+ configurable: !1,
167
+ enumerable: !1,
168
+ writable: !0,
169
+ value: 0
170
+ }), Object.defineProperty(u, "_debugInfo", {
171
+ configurable: !1,
172
+ enumerable: !1,
173
+ writable: !0,
174
+ value: null
175
+ }), Object.defineProperty(u, "_debugStack", {
176
+ configurable: !1,
177
+ enumerable: !1,
178
+ writable: !0,
179
+ value: H
180
+ }), Object.defineProperty(u, "_debugTask", {
181
+ configurable: !1,
182
+ enumerable: !1,
183
+ writable: !0,
184
+ value: ee
185
+ }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
186
+ }
187
+ function g(u, y, O, C, H, ee) {
188
+ var T = y.children;
189
+ if (T !== void 0)
190
+ if (C)
191
+ if (We(T)) {
192
+ for (C = 0; C < T.length; C++)
193
+ c(T[C]);
194
+ Object.freeze && Object.freeze(T);
195
+ } else
196
+ console.error(
197
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
198
+ );
199
+ else c(T);
200
+ if (fe.call(y, "key")) {
201
+ T = e(u);
202
+ var j = Object.keys(y).filter(function(Ye) {
203
+ return Ye !== "key";
204
+ });
205
+ C = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", ve[T + C] || (j = 0 < j.length ? "{" + j.join(": ..., ") + ": ...}" : "{}", console.error(
206
+ `A props object containing a "key" prop is being spread into JSX:
207
+ let props = %s;
208
+ <%s {...props} />
209
+ React keys must be passed directly to JSX without using spread:
210
+ let props = %s;
211
+ <%s key={someKey} {...props} />`,
212
+ C,
213
+ T,
214
+ j,
215
+ T
216
+ ), ve[T + C] = !0);
217
+ }
218
+ if (T = null, O !== void 0 && (a(O), T = "" + O), f(y) && (a(y.key), T = "" + y.key), "key" in y) {
219
+ O = {};
220
+ for (var te in y)
221
+ te !== "key" && (O[te] = y[te]);
222
+ } else O = y;
223
+ return T && d(
224
+ O,
225
+ typeof u == "function" ? u.displayName || u.name || "Unknown" : u
226
+ ), r(
227
+ u,
228
+ T,
229
+ O,
230
+ o(),
231
+ H,
232
+ ee
233
+ );
234
+ }
235
+ function c(u) {
236
+ t(u) ? u._store && (u._store.validated = 1) : typeof u == "object" && u !== null && u.$$typeof === M && (u._payload.status === "fulfilled" ? t(u._payload.value) && u._payload.value._store && (u._payload.value._store.validated = 1) : u._store && (u._store.validated = 1));
237
+ }
238
+ function t(u) {
239
+ return typeof u == "object" && u !== null && u.$$typeof === b;
240
+ }
241
+ var p = E, b = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), w = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), Y = Symbol.for("react.activity"), Fe = Symbol.for("react.client.reference"), Z = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, fe = Object.prototype.hasOwnProperty, We = Array.isArray, Q = console.createTask ? console.createTask : function() {
242
+ return null;
243
+ };
244
+ p = {
245
+ react_stack_bottom_frame: function(u) {
246
+ return u();
247
+ }
248
+ };
249
+ var pe, me = {}, ge = p.react_stack_bottom_frame.bind(
250
+ p,
251
+ s
252
+ )(), ye = Q(i(s)), ve = {};
253
+ $.Fragment = R, $.jsx = function(u, y, O) {
254
+ var C = 1e4 > Z.recentlyCreatedOwnerStacks++;
255
+ return g(
256
+ u,
257
+ y,
258
+ O,
259
+ !1,
260
+ C ? Error("react-stack-top-frame") : ge,
261
+ C ? Q(i(u)) : ye
262
+ );
263
+ }, $.jsxs = function(u, y, O) {
264
+ var C = 1e4 > Z.recentlyCreatedOwnerStacks++;
265
+ return g(
266
+ u,
267
+ y,
268
+ O,
269
+ !0,
270
+ C ? Error("react-stack-top-frame") : ge,
271
+ C ? Q(i(u)) : ye
272
+ );
273
+ };
274
+ })()), $;
275
+ }
276
+ var Re;
277
+ function qe() {
278
+ return Re || (Re = 1, process.env.NODE_ENV === "production" ? G.exports = He() : G.exports = Ge()), G.exports;
279
+ }
280
+ var v = qe();
281
+ function ne(e, n = []) {
282
+ let a = [];
283
+ function i(s, f) {
284
+ const d = m.createContext(f), l = a.length;
285
+ a = [...a, f];
286
+ const r = (c) => {
287
+ var S;
288
+ const { scope: t, children: p, ...b } = c, h = ((S = t == null ? void 0 : t[e]) == null ? void 0 : S[l]) || d, R = m.useMemo(() => b, Object.values(b));
289
+ return /* @__PURE__ */ v.jsx(h.Provider, { value: R, children: p });
290
+ };
291
+ r.displayName = s + "Provider";
292
+ function g(c, t) {
293
+ var h;
294
+ const p = ((h = t == null ? void 0 : t[e]) == null ? void 0 : h[l]) || d, b = m.useContext(p);
295
+ if (b) return b;
296
+ if (f !== void 0) return f;
297
+ throw new Error(`\`${c}\` must be used within \`${s}\``);
298
+ }
299
+ return [r, g];
300
+ }
301
+ const o = () => {
302
+ const s = a.map((f) => m.createContext(f));
303
+ return function(d) {
304
+ const l = (d == null ? void 0 : d[e]) || s;
305
+ return m.useMemo(
306
+ () => ({ [`__scope${e}`]: { ...d, [e]: l } }),
307
+ [d, l]
308
+ );
309
+ };
310
+ };
311
+ return o.scopeName = e, [i, Be(o, ...n)];
312
+ }
313
+ function Be(...e) {
314
+ const n = e[0];
315
+ if (e.length === 1) return n;
316
+ const a = () => {
317
+ const i = e.map((o) => ({
318
+ useScope: o(),
319
+ scopeName: o.scopeName
320
+ }));
321
+ return function(s) {
322
+ const f = i.reduce((d, { useScope: l, scopeName: r }) => {
323
+ const c = l(s)[`__scope${r}`];
324
+ return { ...d, ...c };
325
+ }, {});
326
+ return m.useMemo(() => ({ [`__scope${n.scopeName}`]: f }), [f]);
327
+ };
328
+ };
329
+ return a.scopeName = n.scopeName, a;
330
+ }
331
+ function be(e, n) {
332
+ if (typeof e == "function")
333
+ return e(n);
334
+ e != null && (e.current = n);
335
+ }
336
+ function oe(...e) {
337
+ return (n) => {
338
+ let a = !1;
339
+ const i = e.map((o) => {
340
+ const s = be(o, n);
341
+ return !a && typeof s == "function" && (a = !0), s;
342
+ });
343
+ if (a)
344
+ return () => {
345
+ for (let o = 0; o < i.length; o++) {
346
+ const s = i[o];
347
+ typeof s == "function" ? s() : be(e[o], null);
348
+ }
349
+ };
350
+ };
351
+ }
352
+ function V(...e) {
353
+ return m.useCallback(oe(...e), e);
354
+ }
355
+ // @__NO_SIDE_EFFECTS__
356
+ function Ee(e) {
357
+ const n = /* @__PURE__ */ ze(e), a = m.forwardRef((i, o) => {
358
+ const { children: s, ...f } = i, d = m.Children.toArray(s), l = d.find(Xe);
359
+ if (l) {
360
+ const r = l.props.children, g = d.map((c) => c === l ? m.Children.count(r) > 1 ? m.Children.only(null) : m.isValidElement(r) ? r.props.children : null : c);
361
+ return /* @__PURE__ */ v.jsx(n, { ...f, ref: o, children: m.isValidElement(r) ? m.cloneElement(r, void 0, g) : null });
362
+ }
363
+ return /* @__PURE__ */ v.jsx(n, { ...f, ref: o, children: s });
364
+ });
365
+ return a.displayName = `${e}.Slot`, a;
366
+ }
367
+ // @__NO_SIDE_EFFECTS__
368
+ function ze(e) {
369
+ const n = m.forwardRef((a, i) => {
370
+ const { children: o, ...s } = a;
371
+ if (m.isValidElement(o)) {
372
+ const f = Ze(o), d = Je(s, o.props);
373
+ return o.type !== m.Fragment && (d.ref = i ? oe(i, f) : f), m.cloneElement(o, d);
374
+ }
375
+ return m.Children.count(o) > 1 ? m.Children.only(null) : null;
376
+ });
377
+ return n.displayName = `${e}.SlotClone`, n;
378
+ }
379
+ var Ke = Symbol("radix.slottable");
380
+ function Xe(e) {
381
+ return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ke;
382
+ }
383
+ function Je(e, n) {
384
+ const a = { ...n };
385
+ for (const i in n) {
386
+ const o = e[i], s = n[i];
387
+ /^on[A-Z]/.test(i) ? o && s ? a[i] = (...d) => {
388
+ const l = s(...d);
389
+ return o(...d), l;
390
+ } : o && (a[i] = o) : i === "style" ? a[i] = { ...o, ...s } : i === "className" && (a[i] = [o, s].filter(Boolean).join(" "));
391
+ }
392
+ return { ...e, ...a };
393
+ }
394
+ function Ze(e) {
395
+ var i, o;
396
+ let n = (i = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : i.get, a = n && "isReactWarning" in n && n.isReactWarning;
397
+ return a ? e.ref : (n = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, a = n && "isReactWarning" in n && n.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
398
+ }
399
+ function Qe(e) {
400
+ const n = e + "CollectionProvider", [a, i] = ne(n), [o, s] = a(
401
+ n,
402
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
403
+ ), f = (h) => {
404
+ const { scope: R, children: S } = h, _ = E.useRef(null), A = E.useRef(/* @__PURE__ */ new Map()).current;
405
+ return /* @__PURE__ */ v.jsx(o, { scope: R, itemMap: A, collectionRef: _, children: S });
406
+ };
407
+ f.displayName = n;
408
+ const d = e + "CollectionSlot", l = /* @__PURE__ */ Ee(d), r = E.forwardRef(
409
+ (h, R) => {
410
+ const { scope: S, children: _ } = h, A = s(d, S), w = V(R, A.collectionRef);
411
+ return /* @__PURE__ */ v.jsx(l, { ref: w, children: _ });
412
+ }
413
+ );
414
+ r.displayName = d;
415
+ const g = e + "CollectionItemSlot", c = "data-radix-collection-item", t = /* @__PURE__ */ Ee(g), p = E.forwardRef(
416
+ (h, R) => {
417
+ const { scope: S, children: _, ...A } = h, w = E.useRef(null), I = V(R, w), D = s(g, S);
418
+ return E.useEffect(() => (D.itemMap.set(w, { ref: w, ...A }), () => void D.itemMap.delete(w))), /* @__PURE__ */ v.jsx(t, { [c]: "", ref: I, children: _ });
419
+ }
420
+ );
421
+ p.displayName = g;
422
+ function b(h) {
423
+ const R = s(e + "CollectionConsumer", h);
424
+ return E.useCallback(() => {
425
+ const _ = R.collectionRef.current;
426
+ if (!_) return [];
427
+ const A = Array.from(_.querySelectorAll(`[${c}]`));
428
+ return Array.from(R.itemMap.values()).sort(
429
+ (D, k) => A.indexOf(D.ref.current) - A.indexOf(k.ref.current)
430
+ );
431
+ }, [R.collectionRef, R.itemMap]);
432
+ }
433
+ return [
434
+ { Provider: f, Slot: r, ItemSlot: p },
435
+ b,
436
+ i
437
+ ];
438
+ }
439
+ function Te(e, n, { checkForDefaultPrevented: a = !0 } = {}) {
440
+ return function(o) {
441
+ if (e == null || e(o), a === !1 || !o.defaultPrevented)
442
+ return n == null ? void 0 : n(o);
443
+ };
444
+ }
445
+ var U = globalThis != null && globalThis.document ? m.useLayoutEffect : () => {
446
+ }, et = m[" useInsertionEffect ".trim().toString()] || U;
447
+ function ie({
448
+ prop: e,
449
+ defaultProp: n,
450
+ onChange: a = () => {
451
+ },
452
+ caller: i
453
+ }) {
454
+ const [o, s, f] = tt({
455
+ defaultProp: n,
456
+ onChange: a
457
+ }), d = e !== void 0, l = d ? e : o;
458
+ {
459
+ const g = m.useRef(e !== void 0);
460
+ m.useEffect(() => {
461
+ const c = g.current;
462
+ c !== d && console.warn(
463
+ `${i} is changing from ${c ? "controlled" : "uncontrolled"} to ${d ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
464
+ ), g.current = d;
465
+ }, [d, i]);
466
+ }
467
+ const r = m.useCallback(
468
+ (g) => {
469
+ var c;
470
+ if (d) {
471
+ const t = rt(g) ? g(e) : g;
472
+ t !== e && ((c = f.current) == null || c.call(f, t));
473
+ } else
474
+ s(g);
475
+ },
476
+ [d, e, s, f]
477
+ );
478
+ return [l, r];
479
+ }
480
+ function tt({
481
+ defaultProp: e,
482
+ onChange: n
483
+ }) {
484
+ const [a, i] = m.useState(e), o = m.useRef(a), s = m.useRef(n);
485
+ return et(() => {
486
+ s.current = n;
487
+ }, [n]), m.useEffect(() => {
488
+ var f;
489
+ o.current !== a && ((f = s.current) == null || f.call(s, a), o.current = a);
490
+ }, [a, o]), [a, i, s];
491
+ }
492
+ function rt(e) {
493
+ return typeof e == "function";
494
+ }
495
+ var q = { exports: {} }, x = {};
496
+ /**
497
+ * @license React
498
+ * react-dom.production.js
499
+ *
500
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
501
+ *
502
+ * This source code is licensed under the MIT license found in the
503
+ * LICENSE file in the root directory of this source tree.
504
+ */
505
+ var Oe;
506
+ function nt() {
507
+ if (Oe) return x;
508
+ Oe = 1;
509
+ var e = E;
510
+ function n(l) {
511
+ var r = "https://react.dev/errors/" + l;
512
+ if (1 < arguments.length) {
513
+ r += "?args[]=" + encodeURIComponent(arguments[1]);
514
+ for (var g = 2; g < arguments.length; g++)
515
+ r += "&args[]=" + encodeURIComponent(arguments[g]);
516
+ }
517
+ return "Minified React error #" + l + "; visit " + r + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
518
+ }
519
+ function a() {
520
+ }
521
+ var i = {
522
+ d: {
523
+ f: a,
524
+ r: function() {
525
+ throw Error(n(522));
526
+ },
527
+ D: a,
528
+ C: a,
529
+ L: a,
530
+ m: a,
531
+ X: a,
532
+ S: a,
533
+ M: a
534
+ },
535
+ p: 0,
536
+ findDOMNode: null
537
+ }, o = Symbol.for("react.portal");
538
+ function s(l, r, g) {
539
+ var c = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
540
+ return {
541
+ $$typeof: o,
542
+ key: c == null ? null : "" + c,
543
+ children: l,
544
+ containerInfo: r,
545
+ implementation: g
546
+ };
547
+ }
548
+ var f = e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
549
+ function d(l, r) {
550
+ if (l === "font") return "";
551
+ if (typeof r == "string")
552
+ return r === "use-credentials" ? r : "";
553
+ }
554
+ return x.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, x.createPortal = function(l, r) {
555
+ var g = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
556
+ if (!r || r.nodeType !== 1 && r.nodeType !== 9 && r.nodeType !== 11)
557
+ throw Error(n(299));
558
+ return s(l, r, null, g);
559
+ }, x.flushSync = function(l) {
560
+ var r = f.T, g = i.p;
561
+ try {
562
+ if (f.T = null, i.p = 2, l) return l();
563
+ } finally {
564
+ f.T = r, i.p = g, i.d.f();
565
+ }
566
+ }, x.preconnect = function(l, r) {
567
+ typeof l == "string" && (r ? (r = r.crossOrigin, r = typeof r == "string" ? r === "use-credentials" ? r : "" : void 0) : r = null, i.d.C(l, r));
568
+ }, x.prefetchDNS = function(l) {
569
+ typeof l == "string" && i.d.D(l);
570
+ }, x.preinit = function(l, r) {
571
+ if (typeof l == "string" && r && typeof r.as == "string") {
572
+ var g = r.as, c = d(g, r.crossOrigin), t = typeof r.integrity == "string" ? r.integrity : void 0, p = typeof r.fetchPriority == "string" ? r.fetchPriority : void 0;
573
+ g === "style" ? i.d.S(
574
+ l,
575
+ typeof r.precedence == "string" ? r.precedence : void 0,
576
+ {
577
+ crossOrigin: c,
578
+ integrity: t,
579
+ fetchPriority: p
580
+ }
581
+ ) : g === "script" && i.d.X(l, {
582
+ crossOrigin: c,
583
+ integrity: t,
584
+ fetchPriority: p,
585
+ nonce: typeof r.nonce == "string" ? r.nonce : void 0
586
+ });
587
+ }
588
+ }, x.preinitModule = function(l, r) {
589
+ if (typeof l == "string")
590
+ if (typeof r == "object" && r !== null) {
591
+ if (r.as == null || r.as === "script") {
592
+ var g = d(
593
+ r.as,
594
+ r.crossOrigin
595
+ );
596
+ i.d.M(l, {
597
+ crossOrigin: g,
598
+ integrity: typeof r.integrity == "string" ? r.integrity : void 0,
599
+ nonce: typeof r.nonce == "string" ? r.nonce : void 0
600
+ });
601
+ }
602
+ } else r == null && i.d.M(l);
603
+ }, x.preload = function(l, r) {
604
+ if (typeof l == "string" && typeof r == "object" && r !== null && typeof r.as == "string") {
605
+ var g = r.as, c = d(g, r.crossOrigin);
606
+ i.d.L(l, g, {
607
+ crossOrigin: c,
608
+ integrity: typeof r.integrity == "string" ? r.integrity : void 0,
609
+ nonce: typeof r.nonce == "string" ? r.nonce : void 0,
610
+ type: typeof r.type == "string" ? r.type : void 0,
611
+ fetchPriority: typeof r.fetchPriority == "string" ? r.fetchPriority : void 0,
612
+ referrerPolicy: typeof r.referrerPolicy == "string" ? r.referrerPolicy : void 0,
613
+ imageSrcSet: typeof r.imageSrcSet == "string" ? r.imageSrcSet : void 0,
614
+ imageSizes: typeof r.imageSizes == "string" ? r.imageSizes : void 0,
615
+ media: typeof r.media == "string" ? r.media : void 0
616
+ });
617
+ }
618
+ }, x.preloadModule = function(l, r) {
619
+ if (typeof l == "string")
620
+ if (r) {
621
+ var g = d(r.as, r.crossOrigin);
622
+ i.d.m(l, {
623
+ as: typeof r.as == "string" && r.as !== "script" ? r.as : void 0,
624
+ crossOrigin: g,
625
+ integrity: typeof r.integrity == "string" ? r.integrity : void 0
626
+ });
627
+ } else i.d.m(l);
628
+ }, x.requestFormReset = function(l) {
629
+ i.d.r(l);
630
+ }, x.unstable_batchedUpdates = function(l, r) {
631
+ return l(r);
632
+ }, x.useFormState = function(l, r, g) {
633
+ return f.H.useFormState(l, r, g);
634
+ }, x.useFormStatus = function() {
635
+ return f.H.useHostTransitionStatus();
636
+ }, x.version = "19.2.4", x;
637
+ }
638
+ var N = {};
639
+ /**
640
+ * @license React
641
+ * react-dom.development.js
642
+ *
643
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
644
+ *
645
+ * This source code is licensed under the MIT license found in the
646
+ * LICENSE file in the root directory of this source tree.
647
+ */
648
+ var Se;
649
+ function ot() {
650
+ return Se || (Se = 1, process.env.NODE_ENV !== "production" && (function() {
651
+ function e() {
652
+ }
653
+ function n(c) {
654
+ return "" + c;
655
+ }
656
+ function a(c, t, p) {
657
+ var b = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
658
+ try {
659
+ n(b);
660
+ var h = !1;
661
+ } catch {
662
+ h = !0;
663
+ }
664
+ return h && (console.error(
665
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
666
+ typeof Symbol == "function" && Symbol.toStringTag && b[Symbol.toStringTag] || b.constructor.name || "Object"
667
+ ), n(b)), {
668
+ $$typeof: r,
669
+ key: b == null ? null : "" + b,
670
+ children: c,
671
+ containerInfo: t,
672
+ implementation: p
673
+ };
674
+ }
675
+ function i(c, t) {
676
+ if (c === "font") return "";
677
+ if (typeof t == "string")
678
+ return t === "use-credentials" ? t : "";
679
+ }
680
+ function o(c) {
681
+ return c === null ? "`null`" : c === void 0 ? "`undefined`" : c === "" ? "an empty string" : 'something with type "' + typeof c + '"';
682
+ }
683
+ function s(c) {
684
+ return c === null ? "`null`" : c === void 0 ? "`undefined`" : c === "" ? "an empty string" : typeof c == "string" ? JSON.stringify(c) : typeof c == "number" ? "`" + c + "`" : 'something with type "' + typeof c + '"';
685
+ }
686
+ function f() {
687
+ var c = g.H;
688
+ return c === null && console.error(
689
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
690
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
691
+ 2. You might be breaking the Rules of Hooks
692
+ 3. You might have more than one copy of React in the same app
693
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
694
+ ), c;
695
+ }
696
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
697
+ var d = E, l = {
698
+ d: {
699
+ f: e,
700
+ r: function() {
701
+ throw Error(
702
+ "Invalid form element. requestFormReset must be passed a form that was rendered by React."
703
+ );
704
+ },
705
+ D: e,
706
+ C: e,
707
+ L: e,
708
+ m: e,
709
+ X: e,
710
+ S: e,
711
+ M: e
712
+ },
713
+ p: 0,
714
+ findDOMNode: null
715
+ }, r = Symbol.for("react.portal"), g = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
716
+ typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
717
+ "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
718
+ ), N.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = l, N.createPortal = function(c, t) {
719
+ var p = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
720
+ if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11)
721
+ throw Error("Target container is not a DOM element.");
722
+ return a(c, t, null, p);
723
+ }, N.flushSync = function(c) {
724
+ var t = g.T, p = l.p;
725
+ try {
726
+ if (g.T = null, l.p = 2, c)
727
+ return c();
728
+ } finally {
729
+ g.T = t, l.p = p, l.d.f() && console.error(
730
+ "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
731
+ );
732
+ }
733
+ }, N.preconnect = function(c, t) {
734
+ typeof c == "string" && c ? t != null && typeof t != "object" ? console.error(
735
+ "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
736
+ s(t)
737
+ ) : t != null && typeof t.crossOrigin != "string" && console.error(
738
+ "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
739
+ o(t.crossOrigin)
740
+ ) : console.error(
741
+ "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
742
+ o(c)
743
+ ), typeof c == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, l.d.C(c, t));
744
+ }, N.prefetchDNS = function(c) {
745
+ if (typeof c != "string" || !c)
746
+ console.error(
747
+ "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
748
+ o(c)
749
+ );
750
+ else if (1 < arguments.length) {
751
+ var t = arguments[1];
752
+ typeof t == "object" && t.hasOwnProperty("crossOrigin") ? console.error(
753
+ "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
754
+ s(t)
755
+ ) : console.error(
756
+ "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
757
+ s(t)
758
+ );
759
+ }
760
+ typeof c == "string" && l.d.D(c);
761
+ }, N.preinit = function(c, t) {
762
+ if (typeof c == "string" && c ? t == null || typeof t != "object" ? console.error(
763
+ "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
764
+ s(t)
765
+ ) : t.as !== "style" && t.as !== "script" && console.error(
766
+ 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
767
+ s(t.as)
768
+ ) : console.error(
769
+ "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
770
+ o(c)
771
+ ), typeof c == "string" && t && typeof t.as == "string") {
772
+ var p = t.as, b = i(p, t.crossOrigin), h = typeof t.integrity == "string" ? t.integrity : void 0, R = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
773
+ p === "style" ? l.d.S(
774
+ c,
775
+ typeof t.precedence == "string" ? t.precedence : void 0,
776
+ {
777
+ crossOrigin: b,
778
+ integrity: h,
779
+ fetchPriority: R
780
+ }
781
+ ) : p === "script" && l.d.X(c, {
782
+ crossOrigin: b,
783
+ integrity: h,
784
+ fetchPriority: R,
785
+ nonce: typeof t.nonce == "string" ? t.nonce : void 0
786
+ });
787
+ }
788
+ }, N.preinitModule = function(c, t) {
789
+ var p = "";
790
+ if (typeof c == "string" && c || (p += " The `href` argument encountered was " + o(c) + "."), t !== void 0 && typeof t != "object" ? p += " The `options` argument encountered was " + o(t) + "." : t && "as" in t && t.as !== "script" && (p += " The `as` option encountered was " + s(t.as) + "."), p)
791
+ console.error(
792
+ "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
793
+ p
794
+ );
795
+ else
796
+ switch (p = t && typeof t.as == "string" ? t.as : "script", p) {
797
+ case "script":
798
+ break;
799
+ default:
800
+ p = s(p), console.error(
801
+ 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
802
+ p,
803
+ c
804
+ );
805
+ }
806
+ typeof c == "string" && (typeof t == "object" && t !== null ? (t.as == null || t.as === "script") && (p = i(
807
+ t.as,
808
+ t.crossOrigin
809
+ ), l.d.M(c, {
810
+ crossOrigin: p,
811
+ integrity: typeof t.integrity == "string" ? t.integrity : void 0,
812
+ nonce: typeof t.nonce == "string" ? t.nonce : void 0
813
+ })) : t == null && l.d.M(c));
814
+ }, N.preload = function(c, t) {
815
+ var p = "";
816
+ if (typeof c == "string" && c || (p += " The `href` argument encountered was " + o(c) + "."), t == null || typeof t != "object" ? p += " The `options` argument encountered was " + o(t) + "." : typeof t.as == "string" && t.as || (p += " The `as` option encountered was " + o(t.as) + "."), p && console.error(
817
+ 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
818
+ p
819
+ ), typeof c == "string" && typeof t == "object" && t !== null && typeof t.as == "string") {
820
+ p = t.as;
821
+ var b = i(
822
+ p,
823
+ t.crossOrigin
824
+ );
825
+ l.d.L(c, p, {
826
+ crossOrigin: b,
827
+ integrity: typeof t.integrity == "string" ? t.integrity : void 0,
828
+ nonce: typeof t.nonce == "string" ? t.nonce : void 0,
829
+ type: typeof t.type == "string" ? t.type : void 0,
830
+ fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0,
831
+ referrerPolicy: typeof t.referrerPolicy == "string" ? t.referrerPolicy : void 0,
832
+ imageSrcSet: typeof t.imageSrcSet == "string" ? t.imageSrcSet : void 0,
833
+ imageSizes: typeof t.imageSizes == "string" ? t.imageSizes : void 0,
834
+ media: typeof t.media == "string" ? t.media : void 0
835
+ });
836
+ }
837
+ }, N.preloadModule = function(c, t) {
838
+ var p = "";
839
+ typeof c == "string" && c || (p += " The `href` argument encountered was " + o(c) + "."), t !== void 0 && typeof t != "object" ? p += " The `options` argument encountered was " + o(t) + "." : t && "as" in t && typeof t.as != "string" && (p += " The `as` option encountered was " + o(t.as) + "."), p && console.error(
840
+ 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
841
+ p
842
+ ), typeof c == "string" && (t ? (p = i(
843
+ t.as,
844
+ t.crossOrigin
845
+ ), l.d.m(c, {
846
+ as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,
847
+ crossOrigin: p,
848
+ integrity: typeof t.integrity == "string" ? t.integrity : void 0
849
+ })) : l.d.m(c));
850
+ }, N.requestFormReset = function(c) {
851
+ l.d.r(c);
852
+ }, N.unstable_batchedUpdates = function(c, t) {
853
+ return c(t);
854
+ }, N.useFormState = function(c, t, p) {
855
+ return f().useFormState(c, t, p);
856
+ }, N.useFormStatus = function() {
857
+ return f().useHostTransitionStatus();
858
+ }, N.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
859
+ })()), N;
860
+ }
861
+ var Ce;
862
+ function it() {
863
+ if (Ce) return q.exports;
864
+ Ce = 1;
865
+ function e() {
866
+ if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
867
+ if (process.env.NODE_ENV !== "production")
868
+ throw new Error("^_^");
869
+ try {
870
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);
871
+ } catch (n) {
872
+ console.error(n);
873
+ }
874
+ }
875
+ }
876
+ return process.env.NODE_ENV === "production" ? (e(), q.exports = nt()) : q.exports = ot(), q.exports;
877
+ }
878
+ it();
879
+ // @__NO_SIDE_EFFECTS__
880
+ function at(e) {
881
+ const n = /* @__PURE__ */ ct(e), a = m.forwardRef((i, o) => {
882
+ const { children: s, ...f } = i, d = m.Children.toArray(s), l = d.find(lt);
883
+ if (l) {
884
+ const r = l.props.children, g = d.map((c) => c === l ? m.Children.count(r) > 1 ? m.Children.only(null) : m.isValidElement(r) ? r.props.children : null : c);
885
+ return /* @__PURE__ */ v.jsx(n, { ...f, ref: o, children: m.isValidElement(r) ? m.cloneElement(r, void 0, g) : null });
886
+ }
887
+ return /* @__PURE__ */ v.jsx(n, { ...f, ref: o, children: s });
888
+ });
889
+ return a.displayName = `${e}.Slot`, a;
890
+ }
891
+ // @__NO_SIDE_EFFECTS__
892
+ function ct(e) {
893
+ const n = m.forwardRef((a, i) => {
894
+ const { children: o, ...s } = a;
895
+ if (m.isValidElement(o)) {
896
+ const f = dt(o), d = ut(s, o.props);
897
+ return o.type !== m.Fragment && (d.ref = i ? oe(i, f) : f), m.cloneElement(o, d);
898
+ }
899
+ return m.Children.count(o) > 1 ? m.Children.only(null) : null;
900
+ });
901
+ return n.displayName = `${e}.SlotClone`, n;
902
+ }
903
+ var st = Symbol("radix.slottable");
904
+ function lt(e) {
905
+ return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === st;
906
+ }
907
+ function ut(e, n) {
908
+ const a = { ...n };
909
+ for (const i in n) {
910
+ const o = e[i], s = n[i];
911
+ /^on[A-Z]/.test(i) ? o && s ? a[i] = (...d) => {
912
+ const l = s(...d);
913
+ return o(...d), l;
914
+ } : o && (a[i] = o) : i === "style" ? a[i] = { ...o, ...s } : i === "className" && (a[i] = [o, s].filter(Boolean).join(" "));
915
+ }
916
+ return { ...e, ...a };
917
+ }
918
+ function dt(e) {
919
+ var i, o;
920
+ let n = (i = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : i.get, a = n && "isReactWarning" in n && n.isReactWarning;
921
+ return a ? e.ref : (n = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, a = n && "isReactWarning" in n && n.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
922
+ }
923
+ var ft = [
924
+ "a",
925
+ "button",
926
+ "div",
927
+ "form",
928
+ "h2",
929
+ "h3",
930
+ "img",
931
+ "input",
932
+ "label",
933
+ "li",
934
+ "nav",
935
+ "ol",
936
+ "p",
937
+ "select",
938
+ "span",
939
+ "svg",
940
+ "ul"
941
+ ], F = ft.reduce((e, n) => {
942
+ const a = /* @__PURE__ */ at(`Primitive.${n}`), i = m.forwardRef((o, s) => {
943
+ const { asChild: f, ...d } = o, l = f ? a : n;
944
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ v.jsx(l, { ...d, ref: s });
945
+ });
946
+ return i.displayName = `Primitive.${n}`, { ...e, [n]: i };
947
+ }, {});
948
+ function pt(e, n) {
949
+ return m.useReducer((a, i) => n[a][i] ?? a, e);
950
+ }
951
+ var Ae = (e) => {
952
+ const { present: n, children: a } = e, i = mt(n), o = typeof a == "function" ? a({ present: i.isPresent }) : m.Children.only(a), s = V(i.ref, gt(o));
953
+ return typeof a == "function" || i.isPresent ? m.cloneElement(o, { ref: s }) : null;
954
+ };
955
+ Ae.displayName = "Presence";
956
+ function mt(e) {
957
+ const [n, a] = m.useState(), i = m.useRef(null), o = m.useRef(e), s = m.useRef("none"), f = e ? "mounted" : "unmounted", [d, l] = pt(f, {
958
+ mounted: {
959
+ UNMOUNT: "unmounted",
960
+ ANIMATION_OUT: "unmountSuspended"
961
+ },
962
+ unmountSuspended: {
963
+ MOUNT: "mounted",
964
+ ANIMATION_END: "unmounted"
965
+ },
966
+ unmounted: {
967
+ MOUNT: "mounted"
968
+ }
969
+ });
970
+ return m.useEffect(() => {
971
+ const r = B(i.current);
972
+ s.current = d === "mounted" ? r : "none";
973
+ }, [d]), U(() => {
974
+ const r = i.current, g = o.current;
975
+ if (g !== e) {
976
+ const t = s.current, p = B(r);
977
+ e ? l("MOUNT") : p === "none" || (r == null ? void 0 : r.display) === "none" ? l("UNMOUNT") : l(g && t !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
978
+ }
979
+ }, [e, l]), U(() => {
980
+ if (n) {
981
+ let r;
982
+ const g = n.ownerDocument.defaultView ?? window, c = (p) => {
983
+ const h = B(i.current).includes(CSS.escape(p.animationName));
984
+ if (p.target === n && h && (l("ANIMATION_END"), !o.current)) {
985
+ const R = n.style.animationFillMode;
986
+ n.style.animationFillMode = "forwards", r = g.setTimeout(() => {
987
+ n.style.animationFillMode === "forwards" && (n.style.animationFillMode = R);
988
+ });
989
+ }
990
+ }, t = (p) => {
991
+ p.target === n && (s.current = B(i.current));
992
+ };
993
+ return n.addEventListener("animationstart", t), n.addEventListener("animationcancel", c), n.addEventListener("animationend", c), () => {
994
+ g.clearTimeout(r), n.removeEventListener("animationstart", t), n.removeEventListener("animationcancel", c), n.removeEventListener("animationend", c);
995
+ };
996
+ } else
997
+ l("ANIMATION_END");
998
+ }, [n, l]), {
999
+ isPresent: ["mounted", "unmountSuspended"].includes(d),
1000
+ ref: m.useCallback((r) => {
1001
+ i.current = r ? getComputedStyle(r) : null, a(r);
1002
+ }, [])
1003
+ };
1004
+ }
1005
+ function B(e) {
1006
+ return (e == null ? void 0 : e.animationName) || "none";
1007
+ }
1008
+ function gt(e) {
1009
+ var i, o;
1010
+ let n = (i = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : i.get, a = n && "isReactWarning" in n && n.isReactWarning;
1011
+ return a ? e.ref : (n = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, a = n && "isReactWarning" in n && n.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
1012
+ }
1013
+ var yt = m[" useId ".trim().toString()] || (() => {
1014
+ }), vt = 0;
1015
+ function xe(e) {
1016
+ const [n, a] = m.useState(yt());
1017
+ return U(() => {
1018
+ a((i) => i ?? String(vt++));
1019
+ }, [e]), e || (n ? `radix-${n}` : "");
1020
+ }
1021
+ var K = "Collapsible", [_t, Ne] = ne(K), [ht, ae] = _t(K), we = m.forwardRef(
1022
+ (e, n) => {
1023
+ const {
1024
+ __scopeCollapsible: a,
1025
+ open: i,
1026
+ defaultOpen: o,
1027
+ disabled: s,
1028
+ onOpenChange: f,
1029
+ ...d
1030
+ } = e, [l, r] = ie({
1031
+ prop: i,
1032
+ defaultProp: o ?? !1,
1033
+ onChange: f,
1034
+ caller: K
1035
+ });
1036
+ return /* @__PURE__ */ v.jsx(
1037
+ ht,
1038
+ {
1039
+ scope: a,
1040
+ disabled: s,
1041
+ contentId: xe(),
1042
+ open: l,
1043
+ onOpenToggle: m.useCallback(() => r((g) => !g), [r]),
1044
+ children: /* @__PURE__ */ v.jsx(
1045
+ F.div,
1046
+ {
1047
+ "data-state": se(l),
1048
+ "data-disabled": s ? "" : void 0,
1049
+ ...d,
1050
+ ref: n
1051
+ }
1052
+ )
1053
+ }
1054
+ );
1055
+ }
1056
+ );
1057
+ we.displayName = K;
1058
+ var Pe = "CollapsibleTrigger", De = m.forwardRef(
1059
+ (e, n) => {
1060
+ const { __scopeCollapsible: a, ...i } = e, o = ae(Pe, a);
1061
+ return /* @__PURE__ */ v.jsx(
1062
+ F.button,
1063
+ {
1064
+ type: "button",
1065
+ "aria-controls": o.contentId,
1066
+ "aria-expanded": o.open || !1,
1067
+ "data-state": se(o.open),
1068
+ "data-disabled": o.disabled ? "" : void 0,
1069
+ disabled: o.disabled,
1070
+ ...i,
1071
+ ref: n,
1072
+ onClick: Te(e.onClick, o.onOpenToggle)
1073
+ }
1074
+ );
1075
+ }
1076
+ );
1077
+ De.displayName = Pe;
1078
+ var ce = "CollapsibleContent", Ie = m.forwardRef(
1079
+ (e, n) => {
1080
+ const { forceMount: a, ...i } = e, o = ae(ce, e.__scopeCollapsible);
1081
+ return /* @__PURE__ */ v.jsx(Ae, { present: a || o.open, children: ({ present: s }) => /* @__PURE__ */ v.jsx(Rt, { ...i, ref: n, present: s }) });
1082
+ }
1083
+ );
1084
+ Ie.displayName = ce;
1085
+ var Rt = m.forwardRef((e, n) => {
1086
+ const { __scopeCollapsible: a, present: i, children: o, ...s } = e, f = ae(ce, a), [d, l] = m.useState(i), r = m.useRef(null), g = V(n, r), c = m.useRef(0), t = c.current, p = m.useRef(0), b = p.current, h = f.open || d, R = m.useRef(h), S = m.useRef(void 0);
1087
+ return m.useEffect(() => {
1088
+ const _ = requestAnimationFrame(() => R.current = !1);
1089
+ return () => cancelAnimationFrame(_);
1090
+ }, []), U(() => {
1091
+ const _ = r.current;
1092
+ if (_) {
1093
+ S.current = S.current || {
1094
+ transitionDuration: _.style.transitionDuration,
1095
+ animationName: _.style.animationName
1096
+ }, _.style.transitionDuration = "0s", _.style.animationName = "none";
1097
+ const A = _.getBoundingClientRect();
1098
+ c.current = A.height, p.current = A.width, R.current || (_.style.transitionDuration = S.current.transitionDuration, _.style.animationName = S.current.animationName), l(i);
1099
+ }
1100
+ }, [f.open, i]), /* @__PURE__ */ v.jsx(
1101
+ F.div,
1102
+ {
1103
+ "data-state": se(f.open),
1104
+ "data-disabled": f.disabled ? "" : void 0,
1105
+ id: f.contentId,
1106
+ hidden: !h,
1107
+ ...s,
1108
+ ref: g,
1109
+ style: {
1110
+ "--radix-collapsible-content-height": t ? `${t}px` : void 0,
1111
+ "--radix-collapsible-content-width": b ? `${b}px` : void 0,
1112
+ ...e.style
1113
+ },
1114
+ children: h && o
1115
+ }
1116
+ );
1117
+ });
1118
+ function se(e) {
1119
+ return e ? "open" : "closed";
1120
+ }
1121
+ var bt = we, Et = De, Ot = Ie, St = m.createContext(void 0);
1122
+ function Ct(e) {
1123
+ const n = m.useContext(St);
1124
+ return e || n || "ltr";
1125
+ }
1126
+ var P = "Accordion", Tt = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [le, At, xt] = Qe(P), [X] = ne(P, [
1127
+ xt,
1128
+ Ne
1129
+ ]), ue = Ne(), Me = E.forwardRef(
1130
+ (e, n) => {
1131
+ const { type: a, ...i } = e, o = i, s = i;
1132
+ return /* @__PURE__ */ v.jsx(le.Provider, { scope: e.__scopeAccordion, children: a === "multiple" ? /* @__PURE__ */ v.jsx(Dt, { ...s, ref: n }) : /* @__PURE__ */ v.jsx(Pt, { ...o, ref: n }) });
1133
+ }
1134
+ );
1135
+ Me.displayName = P;
1136
+ var [je, Nt] = X(P), [ke, wt] = X(
1137
+ P,
1138
+ { collapsible: !1 }
1139
+ ), Pt = E.forwardRef(
1140
+ (e, n) => {
1141
+ const {
1142
+ value: a,
1143
+ defaultValue: i,
1144
+ onValueChange: o = () => {
1145
+ },
1146
+ collapsible: s = !1,
1147
+ ...f
1148
+ } = e, [d, l] = ie({
1149
+ prop: a,
1150
+ defaultProp: i ?? "",
1151
+ onChange: o,
1152
+ caller: P
1153
+ });
1154
+ return /* @__PURE__ */ v.jsx(
1155
+ je,
1156
+ {
1157
+ scope: e.__scopeAccordion,
1158
+ value: E.useMemo(() => d ? [d] : [], [d]),
1159
+ onItemOpen: l,
1160
+ onItemClose: E.useCallback(() => s && l(""), [s, l]),
1161
+ children: /* @__PURE__ */ v.jsx(ke, { scope: e.__scopeAccordion, collapsible: s, children: /* @__PURE__ */ v.jsx(Le, { ...f, ref: n }) })
1162
+ }
1163
+ );
1164
+ }
1165
+ ), Dt = E.forwardRef((e, n) => {
1166
+ const {
1167
+ value: a,
1168
+ defaultValue: i,
1169
+ onValueChange: o = () => {
1170
+ },
1171
+ ...s
1172
+ } = e, [f, d] = ie({
1173
+ prop: a,
1174
+ defaultProp: i ?? [],
1175
+ onChange: o,
1176
+ caller: P
1177
+ }), l = E.useCallback(
1178
+ (g) => d((c = []) => [...c, g]),
1179
+ [d]
1180
+ ), r = E.useCallback(
1181
+ (g) => d((c = []) => c.filter((t) => t !== g)),
1182
+ [d]
1183
+ );
1184
+ return /* @__PURE__ */ v.jsx(
1185
+ je,
1186
+ {
1187
+ scope: e.__scopeAccordion,
1188
+ value: f,
1189
+ onItemOpen: l,
1190
+ onItemClose: r,
1191
+ children: /* @__PURE__ */ v.jsx(ke, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ v.jsx(Le, { ...s, ref: n }) })
1192
+ }
1193
+ );
1194
+ }), [It, J] = X(P), Le = E.forwardRef(
1195
+ (e, n) => {
1196
+ const { __scopeAccordion: a, disabled: i, dir: o, orientation: s = "vertical", ...f } = e, d = E.useRef(null), l = V(d, n), r = At(a), c = Ct(o) === "ltr", t = Te(e.onKeyDown, (p) => {
1197
+ var W;
1198
+ if (!Tt.includes(p.key)) return;
1199
+ const b = p.target, h = r().filter((M) => {
1200
+ var Y;
1201
+ return !((Y = M.ref.current) != null && Y.disabled);
1202
+ }), R = h.findIndex((M) => M.ref.current === b), S = h.length;
1203
+ if (R === -1) return;
1204
+ p.preventDefault();
1205
+ let _ = R;
1206
+ const A = 0, w = S - 1, I = () => {
1207
+ _ = R + 1, _ > w && (_ = A);
1208
+ }, D = () => {
1209
+ _ = R - 1, _ < A && (_ = w);
1210
+ };
1211
+ switch (p.key) {
1212
+ case "Home":
1213
+ _ = A;
1214
+ break;
1215
+ case "End":
1216
+ _ = w;
1217
+ break;
1218
+ case "ArrowRight":
1219
+ s === "horizontal" && (c ? I() : D());
1220
+ break;
1221
+ case "ArrowDown":
1222
+ s === "vertical" && I();
1223
+ break;
1224
+ case "ArrowLeft":
1225
+ s === "horizontal" && (c ? D() : I());
1226
+ break;
1227
+ case "ArrowUp":
1228
+ s === "vertical" && D();
1229
+ break;
1230
+ }
1231
+ const k = _ % S;
1232
+ (W = h[k].ref.current) == null || W.focus();
1233
+ });
1234
+ return /* @__PURE__ */ v.jsx(
1235
+ It,
1236
+ {
1237
+ scope: a,
1238
+ disabled: i,
1239
+ direction: o,
1240
+ orientation: s,
1241
+ children: /* @__PURE__ */ v.jsx(le.Slot, { scope: a, children: /* @__PURE__ */ v.jsx(
1242
+ F.div,
1243
+ {
1244
+ ...f,
1245
+ "data-orientation": s,
1246
+ ref: l,
1247
+ onKeyDown: i ? void 0 : t
1248
+ }
1249
+ ) })
1250
+ }
1251
+ );
1252
+ }
1253
+ ), z = "AccordionItem", [Mt, de] = X(z), jt = E.forwardRef(
1254
+ (e, n) => {
1255
+ const { __scopeAccordion: a, value: i, ...o } = e, s = J(z, a), f = Nt(z, a), d = ue(a), l = xe(), r = i && f.value.includes(i) || !1, g = s.disabled || e.disabled;
1256
+ return /* @__PURE__ */ v.jsx(
1257
+ Mt,
1258
+ {
1259
+ scope: a,
1260
+ open: r,
1261
+ disabled: g,
1262
+ triggerId: l,
1263
+ children: /* @__PURE__ */ v.jsx(
1264
+ bt,
1265
+ {
1266
+ "data-orientation": s.orientation,
1267
+ "data-state": Ue(r),
1268
+ ...d,
1269
+ ...o,
1270
+ ref: n,
1271
+ disabled: g,
1272
+ open: r,
1273
+ onOpenChange: (c) => {
1274
+ c ? f.onItemOpen(i) : f.onItemClose(i);
1275
+ }
1276
+ }
1277
+ )
1278
+ }
1279
+ );
1280
+ }
1281
+ );
1282
+ jt.displayName = z;
1283
+ var $e = "AccordionHeader", kt = E.forwardRef(
1284
+ (e, n) => {
1285
+ const { __scopeAccordion: a, ...i } = e, o = J(P, a), s = de($e, a);
1286
+ return /* @__PURE__ */ v.jsx(
1287
+ F.h3,
1288
+ {
1289
+ "data-orientation": o.orientation,
1290
+ "data-state": Ue(s.open),
1291
+ "data-disabled": s.disabled ? "" : void 0,
1292
+ ...i,
1293
+ ref: n
1294
+ }
1295
+ );
1296
+ }
1297
+ );
1298
+ kt.displayName = $e;
1299
+ var re = "AccordionTrigger", Lt = E.forwardRef(
1300
+ (e, n) => {
1301
+ const { __scopeAccordion: a, ...i } = e, o = J(P, a), s = de(re, a), f = wt(re, a), d = ue(a);
1302
+ return /* @__PURE__ */ v.jsx(le.ItemSlot, { scope: a, children: /* @__PURE__ */ v.jsx(
1303
+ Et,
1304
+ {
1305
+ "aria-disabled": s.open && !f.collapsible || void 0,
1306
+ "data-orientation": o.orientation,
1307
+ id: s.triggerId,
1308
+ ...d,
1309
+ ...i,
1310
+ ref: n
1311
+ }
1312
+ ) });
1313
+ }
1314
+ );
1315
+ Lt.displayName = re;
1316
+ var Ve = "AccordionContent", $t = E.forwardRef(
1317
+ (e, n) => {
1318
+ const { __scopeAccordion: a, ...i } = e, o = J(P, a), s = de(Ve, a), f = ue(a);
1319
+ return /* @__PURE__ */ v.jsx(
1320
+ Ot,
1321
+ {
1322
+ role: "region",
1323
+ "aria-labelledby": s.triggerId,
1324
+ "data-orientation": o.orientation,
1325
+ ...f,
1326
+ ...i,
1327
+ ref: n,
1328
+ style: {
1329
+ "--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
1330
+ "--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
1331
+ ...e.style
1332
+ }
1333
+ }
1334
+ );
1335
+ }
1336
+ );
1337
+ $t.displayName = Ve;
1338
+ function Ue(e) {
1339
+ return e ? "open" : "closed";
1340
+ }
1341
+ var Vt = Me;
1342
+ function Ut({ ...e }) {
1343
+ return v.jsx(Vt, { "data-slot": "accordion", ...e });
1344
+ }
1345
+ const Ft = { Accordion: Ut }, Yt = {
1346
+ ui: Ft
1347
+ };
1348
+ export {
1349
+ Yt as default
1350
+ };