@uninspired/cookie-banner 0.0.7 → 0.0.8

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.
@@ -1,71 +1,71 @@
1
- import { options as z, Fragment as F, Component as se, createRef as On, createContext as ee, createElement as T, toChildArray as Q, cloneElement as io, render as Ae, hydrate as so } from "preact";
2
- var co = 0;
3
- function p(e, t, n, r, o, i) {
1
+ import { options as I, toChildArray as q, Fragment as x, Component as te, createRef as ln, createContext as ne, createElement as D, cloneElement as Sr, render as Ee, hydrate as Cr } from "preact";
2
+ var Pr = 0;
3
+ function v(e, t, n, r, o, i) {
4
4
  t || (t = {});
5
- var c, s, a = t;
6
- if ("ref" in a) for (s in a = {}, t) s == "ref" ? c = t[s] : a[s] = t[s];
7
- var u = { type: e, props: a, key: n, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --co, __i: -1, __u: 0, __source: o, __self: i };
8
- if (typeof e == "function" && (c = e.defaultProps)) for (s in c) a[s] === void 0 && (a[s] = c[s]);
9
- return z.vnode && z.vnode(u), u;
10
- }
11
- var q, N, st, Bt, he = 0, An = [], A = z, Ht = A.__b, Zt = A.__r, Vt = A.diffed, Kt = A.__c, qt = A.unmount, Gt = A.__;
12
- function ae(e, t) {
13
- A.__h && A.__h(N, e, he || t), he = 0;
14
- var n = N.__H || (N.__H = { __: [], __h: [] });
5
+ var a, s, u = t;
6
+ if ("ref" in u) for (s in u = {}, t) s == "ref" ? a = t[s] : u[s] = t[s];
7
+ var c = { type: e, props: u, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Pr, __i: -1, __u: 0, __source: o, __self: i };
8
+ if (typeof e == "function" && (a = e.defaultProps)) for (s in a) u[s] === void 0 && (u[s] = a[s]);
9
+ return I.vnode && I.vnode(c), c;
10
+ }
11
+ var Z, C, qe, Nt, de = 0, fn = [], N = I, Dt = N.__b, Tt = N.__r, At = N.diffed, Rt = N.__c, kt = N.unmount, It = N.__;
12
+ function oe(e, t) {
13
+ N.__h && N.__h(C, e, de || t), de = 0;
14
+ var n = C.__H || (C.__H = { __: [], __h: [] });
15
15
  return e >= n.__.length && n.__.push({}), n.__[e];
16
16
  }
17
- function R(e) {
18
- return he = 1, Te(Rn, e);
17
+ function A(e) {
18
+ return de = 1, Oe(dn, e);
19
19
  }
20
- function Te(e, t, n) {
21
- var r = ae(q++, 2);
22
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Rn(void 0, t), function(s) {
23
- var a = r.__N ? r.__N[0] : r.__[0], u = r.t(a, s);
24
- a !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
25
- }], r.__c = N, !N.__f)) {
26
- var o = function(s, a, u) {
20
+ function Oe(e, t, n) {
21
+ var r = oe(Z++, 2);
22
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : dn(void 0, t), function(s) {
23
+ var u = r.__N ? r.__N[0] : r.__[0], c = r.t(u, s);
24
+ u !== c && (r.__N = [c, r.__[1]], r.__c.setState({}));
25
+ }], r.__c = C, !C.__f)) {
26
+ var o = function(s, u, c) {
27
27
  if (!r.__c.__H) return !0;
28
- var l = r.__c.__H.__.filter(function(_) {
29
- return _.__c;
28
+ var l = r.__c.__H.__.filter(function(p) {
29
+ return p.__c;
30
30
  });
31
- if (l.every(function(_) {
32
- return !_.__N;
33
- })) return !i || i.call(this, s, a, u);
34
- var d = r.__c.props !== s;
35
- return l.some(function(_) {
36
- if (_.__N) {
37
- var m = _.__[0];
38
- _.__ = _.__N, _.__N = void 0, m !== _.__[0] && (d = !0);
31
+ if (l.every(function(p) {
32
+ return !p.__N;
33
+ })) return !i || i.call(this, s, u, c);
34
+ var f = r.__c.props !== s;
35
+ return l.some(function(p) {
36
+ if (p.__N) {
37
+ var h = p.__[0];
38
+ p.__ = p.__N, p.__N = void 0, h !== p.__[0] && (f = !0);
39
39
  }
40
- }), i && i.call(this, s, a, u) || d;
40
+ }), i && i.call(this, s, u, c) || f;
41
41
  };
42
- N.__f = !0;
43
- var i = N.shouldComponentUpdate, c = N.componentWillUpdate;
44
- N.componentWillUpdate = function(s, a, u) {
42
+ C.__f = !0;
43
+ var i = C.shouldComponentUpdate, a = C.componentWillUpdate;
44
+ C.componentWillUpdate = function(s, u, c) {
45
45
  if (this.__e) {
46
46
  var l = i;
47
- i = void 0, o(s, a, u), i = l;
47
+ i = void 0, o(s, u, c), i = l;
48
48
  }
49
- c && c.call(this, s, a, u);
50
- }, N.shouldComponentUpdate = o;
49
+ a && a.call(this, s, u, c);
50
+ }, C.shouldComponentUpdate = o;
51
51
  }
52
52
  return r.__N || r.__;
53
53
  }
54
54
  function E(e, t) {
55
- var n = ae(q++, 3);
56
- !A.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, N.__H.__h.push(n));
55
+ var n = oe(Z++, 3);
56
+ !N.__s && dt(n.__H, t) && (n.__ = e, n.u = t, C.__H.__h.push(n));
57
57
  }
58
- function te(e, t) {
59
- var n = ae(q++, 4);
60
- !A.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, N.__h.push(n));
58
+ function G(e, t) {
59
+ var n = oe(Z++, 4);
60
+ !N.__s && dt(n.__H, t) && (n.__ = e, n.u = t, C.__h.push(n));
61
61
  }
62
62
  function w(e) {
63
- return he = 5, D(function() {
63
+ return de = 5, z(function() {
64
64
  return { current: e };
65
65
  }, []);
66
66
  }
67
- function wt(e, t, n) {
68
- he = 6, te(function() {
67
+ function ut(e, t, n) {
68
+ de = 6, G(function() {
69
69
  if (typeof e == "function") {
70
70
  var r = e(t());
71
71
  return function() {
@@ -77,131 +77,131 @@ function wt(e, t, n) {
77
77
  };
78
78
  }, n == null ? n : n.concat(e));
79
79
  }
80
- function D(e, t) {
81
- var n = ae(q++, 7);
82
- return Pt(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
80
+ function z(e, t) {
81
+ var n = oe(Z++, 7);
82
+ return dt(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
83
83
  }
84
- function M(e, t) {
85
- return he = 8, D(function() {
84
+ function k(e, t) {
85
+ return de = 8, z(function() {
86
86
  return e;
87
87
  }, t);
88
88
  }
89
89
  function Y(e) {
90
- var t = N.context[e.__c], n = ae(q++, 9);
91
- return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(N)), t.props.value) : e.__;
90
+ var t = C.context[e.__c], n = oe(Z++, 9);
91
+ return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(C)), t.props.value) : e.__;
92
92
  }
93
- function St(e, t) {
94
- A.useDebugValue && A.useDebugValue(t ? t(e) : e);
93
+ function lt(e, t) {
94
+ N.useDebugValue && N.useDebugValue(t ? t(e) : e);
95
95
  }
96
- function ao(e) {
97
- var t = ae(q++, 10), n = R();
98
- return t.__ = e, N.componentDidCatch || (N.componentDidCatch = function(r, o) {
96
+ function Or(e) {
97
+ var t = oe(Z++, 10), n = A();
98
+ return t.__ = e, C.componentDidCatch || (C.componentDidCatch = function(r, o) {
99
99
  t.__ && t.__(r, o), n[1](r);
100
100
  }), [n[0], function() {
101
101
  n[1](void 0);
102
102
  }];
103
103
  }
104
- function Et() {
105
- var e = ae(q++, 11);
104
+ function ft() {
105
+ var e = oe(Z++, 11);
106
106
  if (!e.__) {
107
- for (var t = N.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
107
+ for (var t = C.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
108
108
  var n = t.__m || (t.__m = [0, 0]);
109
109
  e.__ = "P" + n[0] + "-" + n[1]++;
110
110
  }
111
111
  return e.__;
112
112
  }
113
- function uo() {
114
- for (var e; e = An.shift(); ) {
113
+ function Nr() {
114
+ for (var e; e = fn.shift(); ) {
115
115
  var t = e.__H;
116
116
  if (e.__P && t) try {
117
- t.__h.some(Be), t.__h.some(ht), t.__h = [];
117
+ t.__h.some(Me), t.__h.some(it), t.__h = [];
118
118
  } catch (n) {
119
- t.__h = [], A.__e(n, e.__v);
119
+ t.__h = [], N.__e(n, e.__v);
120
120
  }
121
121
  }
122
122
  }
123
- A.__b = function(e) {
124
- N = null, Ht && Ht(e);
125
- }, A.__ = function(e, t) {
126
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Gt && Gt(e, t);
127
- }, A.__r = function(e) {
128
- Zt && Zt(e), q = 0;
129
- var t = (N = e.__c).__H;
130
- t && (st === N ? (t.__h = [], N.__h = [], t.__.some(function(n) {
123
+ N.__b = function(e) {
124
+ C = null, Dt && Dt(e);
125
+ }, N.__ = function(e, t) {
126
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), It && It(e, t);
127
+ }, N.__r = function(e) {
128
+ Tt && Tt(e), Z = 0;
129
+ var t = (C = e.__c).__H;
130
+ t && (qe === C ? (t.__h = [], C.__h = [], t.__.some(function(n) {
131
131
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
132
- })) : (t.__h.some(Be), t.__h.some(ht), t.__h = [], q = 0)), st = N;
133
- }, A.diffed = function(e) {
134
- Vt && Vt(e);
132
+ })) : (t.__h.some(Me), t.__h.some(it), t.__h = [], Z = 0)), qe = C;
133
+ }, N.diffed = function(e) {
134
+ At && At(e);
135
135
  var t = e.__c;
136
- t && t.__H && (t.__H.__h.length && (An.push(t) !== 1 && Bt === A.requestAnimationFrame || ((Bt = A.requestAnimationFrame) || lo)(uo)), t.__H.__.some(function(n) {
136
+ t && t.__H && (t.__H.__h.length && (fn.push(t) !== 1 && Nt === N.requestAnimationFrame || ((Nt = N.requestAnimationFrame) || Dr)(Nr)), t.__H.__.some(function(n) {
137
137
  n.u && (n.__H = n.u), n.u = void 0;
138
- })), st = N = null;
139
- }, A.__c = function(e, t) {
138
+ })), qe = C = null;
139
+ }, N.__c = function(e, t) {
140
140
  t.some(function(n) {
141
141
  try {
142
- n.__h.some(Be), n.__h = n.__h.filter(function(r) {
143
- return !r.__ || ht(r);
142
+ n.__h.some(Me), n.__h = n.__h.filter(function(r) {
143
+ return !r.__ || it(r);
144
144
  });
145
145
  } catch (r) {
146
146
  t.some(function(o) {
147
147
  o.__h && (o.__h = []);
148
- }), t = [], A.__e(r, n.__v);
148
+ }), t = [], N.__e(r, n.__v);
149
149
  }
150
- }), Kt && Kt(e, t);
151
- }, A.unmount = function(e) {
152
- qt && qt(e);
150
+ }), Rt && Rt(e, t);
151
+ }, N.unmount = function(e) {
152
+ kt && kt(e);
153
153
  var t, n = e.__c;
154
154
  n && n.__H && (n.__H.__.some(function(r) {
155
155
  try {
156
- Be(r);
156
+ Me(r);
157
157
  } catch (o) {
158
158
  t = o;
159
159
  }
160
- }), n.__H = void 0, t && A.__e(t, n.__v));
160
+ }), n.__H = void 0, t && N.__e(t, n.__v));
161
161
  };
162
- var Yt = typeof requestAnimationFrame == "function";
163
- function lo(e) {
162
+ var zt = typeof requestAnimationFrame == "function";
163
+ function Dr(e) {
164
164
  var t, n = function() {
165
- clearTimeout(r), Yt && cancelAnimationFrame(t), setTimeout(e);
165
+ clearTimeout(r), zt && cancelAnimationFrame(t), setTimeout(e);
166
166
  }, r = setTimeout(n, 35);
167
- Yt && (t = requestAnimationFrame(n));
167
+ zt && (t = requestAnimationFrame(n));
168
168
  }
169
- function Be(e) {
170
- var t = N, n = e.__c;
171
- typeof n == "function" && (e.__c = void 0, n()), N = t;
169
+ function Me(e) {
170
+ var t = C, n = e.__c;
171
+ typeof n == "function" && (e.__c = void 0, n()), C = t;
172
172
  }
173
- function ht(e) {
174
- var t = N;
175
- e.__c = e.__(), N = t;
173
+ function it(e) {
174
+ var t = C;
175
+ e.__c = e.__(), C = t;
176
176
  }
177
- function Pt(e, t) {
177
+ function dt(e, t) {
178
178
  return !e || e.length !== t.length || t.some(function(n, r) {
179
179
  return n !== e[r];
180
180
  });
181
181
  }
182
- function Rn(e, t) {
182
+ function dn(e, t) {
183
183
  return typeof t == "function" ? t(e) : t;
184
184
  }
185
- function In(e, t) {
185
+ function pn(e, t) {
186
186
  for (var n in t) e[n] = t[n];
187
187
  return e;
188
188
  }
189
- function mt(e, t) {
189
+ function st(e, t) {
190
190
  for (var n in e) if (n !== "__source" && !(n in t)) return !0;
191
191
  for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
192
192
  return !1;
193
193
  }
194
- function Nt(e, t) {
195
- var n = t(), r = R({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
196
- return te(function() {
197
- o.__ = n, o.u = t, ct(o) && i({ t: o });
194
+ function pt(e, t) {
195
+ var n = t(), r = A({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
196
+ return G(function() {
197
+ o.__ = n, o.u = t, Ge(o) && i({ t: o });
198
198
  }, [e, n, t]), E(function() {
199
- return ct(o) && i({ t: o }), e(function() {
200
- ct(o) && i({ t: o });
199
+ return Ge(o) && i({ t: o }), e(function() {
200
+ Ge(o) && i({ t: o });
201
201
  });
202
202
  }, [e]), n;
203
203
  }
204
- function ct(e) {
204
+ function Ge(e) {
205
205
  try {
206
206
  return !((t = e.__) === (n = e.u()) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n);
207
207
  } catch {
@@ -209,148 +209,148 @@ function ct(e) {
209
209
  }
210
210
  var t, n;
211
211
  }
212
- function Ot(e) {
212
+ function _t(e) {
213
213
  e();
214
214
  }
215
- function At(e) {
215
+ function vt(e) {
216
216
  return e;
217
217
  }
218
- function Rt() {
219
- return [!1, Ot];
218
+ function ht() {
219
+ return [!1, _t];
220
220
  }
221
- var It = te;
222
- function Ve(e, t) {
221
+ var mt = G;
222
+ function Fe(e, t) {
223
223
  this.props = e, this.context = t;
224
224
  }
225
- function Tn(e, t) {
225
+ function _n(e, t) {
226
226
  function n(o) {
227
- var i = this.props.ref, c = i == o.ref;
228
- return !c && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !c : mt(this.props, o);
227
+ var i = this.props.ref, a = i == o.ref;
228
+ return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : st(this.props, o);
229
229
  }
230
230
  function r(o) {
231
- return this.shouldComponentUpdate = n, T(e, o);
231
+ return this.shouldComponentUpdate = n, D(e, o);
232
232
  }
233
233
  return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = e, r;
234
234
  }
235
- (Ve.prototype = new se()).isPureReactComponent = !0, Ve.prototype.shouldComponentUpdate = function(e, t) {
236
- return mt(this.props, e) || mt(this.state, t);
235
+ (Fe.prototype = new te()).isPureReactComponent = !0, Fe.prototype.shouldComponentUpdate = function(e, t) {
236
+ return st(this.props, e) || st(this.state, t);
237
237
  };
238
- var Xt = z.__b;
239
- z.__b = function(e) {
240
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Xt && Xt(e);
238
+ var Mt = I.__b;
239
+ I.__b = function(e) {
240
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Mt && Mt(e);
241
241
  };
242
- var fo = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
242
+ var Tr = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
243
243
  function P(e) {
244
244
  function t(n) {
245
- var r = In({}, n);
245
+ var r = pn({}, n);
246
246
  return delete r.ref, e(r, n.ref || null);
247
247
  }
248
- return t.$$typeof = fo, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
248
+ return t.$$typeof = Tr, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
249
249
  }
250
- var Jt = function(e, t) {
251
- return e == null ? null : Q(Q(e).map(t));
252
- }, K = { map: Jt, forEach: Jt, count: function(e) {
253
- return e ? Q(e).length : 0;
250
+ var xt = function(e, t) {
251
+ return e == null ? null : q(q(e).map(t));
252
+ }, U = { map: xt, forEach: xt, count: function(e) {
253
+ return e ? q(e).length : 0;
254
254
  }, only: function(e) {
255
- var t = Q(e);
255
+ var t = q(e);
256
256
  if (t.length !== 1) throw "Children.only";
257
257
  return t[0];
258
- }, toArray: Q }, po = z.__e;
259
- z.__e = function(e, t, n, r) {
258
+ }, toArray: q }, Ar = I.__e;
259
+ I.__e = function(e, t, n, r) {
260
260
  if (e.then) {
261
261
  for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
262
262
  }
263
- po(e, t, n, r);
263
+ Ar(e, t, n, r);
264
264
  };
265
- var Qt = z.unmount;
266
- function kn(e, t, n) {
265
+ var $t = I.unmount;
266
+ function vn(e, t, n) {
267
267
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
268
268
  typeof r.__c == "function" && r.__c();
269
- }), e.__c.__H = null), (e = In({}, 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) {
270
- return kn(r, t, n);
269
+ }), e.__c.__H = null), (e = pn({}, 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) {
270
+ return vn(r, t, n);
271
271
  })), e;
272
272
  }
273
- function Dn(e, t, n) {
273
+ function hn(e, t, n) {
274
274
  return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
275
- return Dn(r, t, n);
275
+ return hn(r, t, n);
276
276
  }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
277
277
  }
278
- function Pe() {
278
+ function be() {
279
279
  this.__u = 0, this.o = null, this.__b = null;
280
280
  }
281
- function xn(e) {
281
+ function mn(e) {
282
282
  if (!e.__) return null;
283
283
  var t = e.__.__c;
284
284
  return t && t.__a && t.__a(e);
285
285
  }
286
- function Mn(e) {
286
+ function gn(e) {
287
287
  var t, n, r, o = null;
288
- function i(c) {
288
+ function i(a) {
289
289
  if (t || (t = e()).then(function(s) {
290
290
  s && (o = s.default || s), r = !0;
291
291
  }, function(s) {
292
292
  n = s, r = !0;
293
293
  }), n) throw n;
294
294
  if (!r) throw t;
295
- return o ? T(o, c) : null;
295
+ return o ? D(o, a) : null;
296
296
  }
297
297
  return i.displayName = "Lazy", i.__f = !0, i;
298
298
  }
299
- function _e() {
299
+ function le() {
300
300
  this.i = null, this.l = null;
301
301
  }
302
- z.unmount = function(e) {
302
+ I.unmount = function(e) {
303
303
  var t = e.__c;
304
- t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Qt && Qt(e);
305
- }, (Pe.prototype = new se()).__c = function(e, t) {
304
+ t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), $t && $t(e);
305
+ }, (be.prototype = new te()).__c = function(e, t) {
306
306
  var n = t.__c, r = this;
307
307
  r.o == null && (r.o = []), r.o.push(n);
308
- var o = xn(r.__v), i = !1, c = function() {
309
- i || r.__z || (i = !0, n.__R = null, o ? o(a) : a());
308
+ var o = mn(r.__v), i = !1, a = function() {
309
+ i || r.__z || (i = !0, n.__R = null, o ? o(u) : u());
310
310
  };
311
- n.__R = c;
311
+ n.__R = a;
312
312
  var s = n.__P;
313
313
  n.__P = null;
314
- var a = function() {
314
+ var u = function() {
315
315
  if (!--r.__u) {
316
316
  if (r.state.__a) {
317
- var u = r.state.__a;
318
- r.__v.__k[0] = Dn(u, u.__c.__P, u.__c.__O);
317
+ var c = r.state.__a;
318
+ r.__v.__k[0] = hn(c, c.__c.__P, c.__c.__O);
319
319
  }
320
320
  var l;
321
321
  for (r.setState({ __a: r.__b = null }); l = r.o.pop(); ) l.__P = s, l.forceUpdate();
322
322
  }
323
323
  };
324
- r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(c, c);
325
- }, Pe.prototype.componentWillUnmount = function() {
324
+ r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a);
325
+ }, be.prototype.componentWillUnmount = function() {
326
326
  this.o = [];
327
- }, Pe.prototype.render = function(e, t) {
327
+ }, be.prototype.render = function(e, t) {
328
328
  if (this.__b) {
329
329
  if (this.__v.__k) {
330
330
  var n = document.createElement("div"), r = this.__v.__k[0].__c;
331
- this.__v.__k[0] = kn(this.__b, n, r.__O = r.__P);
331
+ this.__v.__k[0] = vn(this.__b, n, r.__O = r.__P);
332
332
  }
333
333
  this.__b = null;
334
334
  }
335
- var o = t.__a && T(F, null, e.fallback);
336
- return o && (o.__u &= -33), [T(F, null, t.__a ? null : e.children), o];
335
+ var o = t.__a && D(x, null, e.fallback);
336
+ return o && (o.__u &= -33), [D(x, null, t.__a ? null : e.children), o];
337
337
  };
338
- var en = function(e, t, n) {
338
+ var Lt = function(e, t, n) {
339
339
  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; ) {
340
340
  for (; n.length > 3; ) n.pop()();
341
341
  if (n[1] < n[0]) break;
342
342
  e.i = n = n[2];
343
343
  }
344
344
  };
345
- function _o(e) {
345
+ function Rr(e) {
346
346
  return this.getChildContext = function() {
347
347
  return e.context;
348
348
  }, e.children;
349
349
  }
350
- function vo(e) {
350
+ function kr(e) {
351
351
  var t = this, n = e.h;
352
352
  if (t.componentWillUnmount = function() {
353
- Ae(null, t.v), t.v = null, t.h = null;
353
+ Ee(null, t.v), t.v = null, t.h = null;
354
354
  }, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
355
355
  for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
356
356
  t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
@@ -361,187 +361,187 @@ function vo(e) {
361
361
  this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
362
362
  } };
363
363
  }
364
- Ae(T(_o, { context: t.context }, e.__v), t.v);
364
+ Ee(D(Rr, { context: t.context }, e.__v), t.v);
365
365
  }
366
- function zn(e, t) {
367
- var n = T(vo, { __v: e, h: t });
366
+ function yn(e, t) {
367
+ var n = D(kr, { __v: e, h: t });
368
368
  return n.containerInfo = t, n;
369
369
  }
370
- (_e.prototype = new se()).__a = function(e) {
371
- var t = this, n = xn(t.__v), r = t.l.get(e);
370
+ (le.prototype = new te()).__a = function(e) {
371
+ var t = this, n = mn(t.__v), r = t.l.get(e);
372
372
  return r[0]++, function(o) {
373
373
  var i = function() {
374
- t.props.revealOrder ? (r.push(o), en(t, e, r)) : o();
374
+ t.props.revealOrder ? (r.push(o), Lt(t, e, r)) : o();
375
375
  };
376
376
  n ? n(i) : i();
377
377
  };
378
- }, _e.prototype.render = function(e) {
378
+ }, le.prototype.render = function(e) {
379
379
  this.i = null, this.l = /* @__PURE__ */ new Map();
380
- var t = Q(e.children);
380
+ var t = q(e.children);
381
381
  e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
382
382
  for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
383
383
  return e.children;
384
- }, _e.prototype.componentDidUpdate = _e.prototype.componentDidMount = function() {
384
+ }, le.prototype.componentDidUpdate = le.prototype.componentDidMount = function() {
385
385
  var e = this;
386
386
  this.l.forEach(function(t, n) {
387
- en(e, n, t);
387
+ Lt(e, n, t);
388
388
  });
389
389
  };
390
- var $n = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, ho = /^(?: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]/, mo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, go = /[A-Z0-9]/g, yo = typeof document < "u", bo = function(e) {
390
+ var bn = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, Ir = /^(?: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]/, zr = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Mr = /[A-Z0-9]/g, xr = typeof document < "u", $r = function(e) {
391
391
  return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
392
392
  };
393
- function Ln(e, t, n) {
394
- return t.__k == null && (t.textContent = ""), Ae(e, t), typeof n == "function" && n(), e ? e.__c : null;
393
+ function wn(e, t, n) {
394
+ return t.__k == null && (t.textContent = ""), Ee(e, t), typeof n == "function" && n(), e ? e.__c : null;
395
395
  }
396
- function Fn(e, t, n) {
397
- return so(e, t), typeof n == "function" && n(), e ? e.__c : null;
396
+ function En(e, t, n) {
397
+ return Cr(e, t), typeof n == "function" && n(), e ? e.__c : null;
398
398
  }
399
- se.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
400
- Object.defineProperty(se.prototype, e, { configurable: !0, get: function() {
399
+ te.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
400
+ Object.defineProperty(te.prototype, e, { configurable: !0, get: function() {
401
401
  return this["UNSAFE_" + e];
402
402
  }, set: function(t) {
403
403
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
404
404
  } });
405
405
  });
406
- var tn = z.event;
407
- function Co() {
406
+ var Ft = I.event;
407
+ function Lr() {
408
408
  }
409
- function wo() {
409
+ function Fr() {
410
410
  return this.cancelBubble;
411
411
  }
412
- function So() {
412
+ function jr() {
413
413
  return this.defaultPrevented;
414
414
  }
415
- z.event = function(e) {
416
- return tn && (e = tn(e)), e.persist = Co, e.isPropagationStopped = wo, e.isDefaultPrevented = So, e.nativeEvent = e;
415
+ I.event = function(e) {
416
+ return Ft && (e = Ft(e)), e.persist = Lr, e.isPropagationStopped = Fr, e.isDefaultPrevented = jr, e.nativeEvent = e;
417
417
  };
418
- var Tt, Eo = { enumerable: !1, configurable: !0, get: function() {
418
+ var gt, Wr = { enumerable: !1, configurable: !0, get: function() {
419
419
  return this.class;
420
- } }, nn = z.vnode;
421
- z.vnode = function(e) {
420
+ } }, jt = I.vnode;
421
+ I.vnode = function(e) {
422
422
  typeof e.type == "string" && (function(t) {
423
423
  var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
424
- for (var c in n) {
425
- var s = n[c];
426
- if (!(c === "value" && "defaultValue" in n && s == null || yo && c === "children" && r === "noscript" || c === "class" || c === "className")) {
427
- var a = c.toLowerCase();
428
- c === "defaultValue" && "value" in n && n.value == null ? c = "value" : c === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a[0] === "o" && a[1] === "n" ? a === "ondoubleclick" ? c = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || bo(n.type) ? a === "onfocus" ? c = "onfocusin" : a === "onblur" ? c = "onfocusout" : mo.test(c) && (c = a) : a = c = "oninput" : i && ho.test(c) ? c = c.replace(go, "-$&").toLowerCase() : s === null && (s = void 0), a === "oninput" && o[c = a] && (c = "oninputCapture"), o[c] = s;
424
+ for (var a in n) {
425
+ var s = n[a];
426
+ if (!(a === "value" && "defaultValue" in n && s == null || xr && a === "children" && r === "noscript" || a === "class" || a === "className")) {
427
+ var u = a.toLowerCase();
428
+ a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : u === "translate" && s === "no" ? s = !1 : u[0] === "o" && u[1] === "n" ? u === "ondoubleclick" ? a = "ondblclick" : u !== "onchange" || r !== "input" && r !== "textarea" || $r(n.type) ? u === "onfocus" ? a = "onfocusin" : u === "onblur" ? a = "onfocusout" : zr.test(a) && (a = u) : u = a = "oninput" : i && Ir.test(a) ? a = a.replace(Mr, "-$&").toLowerCase() : s === null && (s = void 0), u === "oninput" && o[a = u] && (a = "oninputCapture"), o[a] = s;
429
429
  }
430
430
  }
431
- r == "select" && o.multiple && Array.isArray(o.value) && (o.value = Q(n.children).forEach(function(u) {
432
- u.props.selected = o.value.indexOf(u.props.value) != -1;
433
- })), r == "select" && o.defaultValue != null && (o.value = Q(n.children).forEach(function(u) {
434
- u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
435
- })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Eo)) : n.className && (o.class = o.className = n.className), t.props = o;
436
- })(e), e.$$typeof = $n, nn && nn(e);
431
+ r == "select" && o.multiple && Array.isArray(o.value) && (o.value = q(n.children).forEach(function(c) {
432
+ c.props.selected = o.value.indexOf(c.props.value) != -1;
433
+ })), r == "select" && o.defaultValue != null && (o.value = q(n.children).forEach(function(c) {
434
+ c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
435
+ })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Wr)) : n.className && (o.class = o.className = n.className), t.props = o;
436
+ })(e), e.$$typeof = bn, jt && jt(e);
437
437
  };
438
- var rn = z.__r;
439
- z.__r = function(e) {
440
- rn && rn(e), Tt = e.__c;
438
+ var Wt = I.__r;
439
+ I.__r = function(e) {
440
+ Wt && Wt(e), gt = e.__c;
441
441
  };
442
- var on = z.diffed;
443
- z.diffed = function(e) {
444
- on && on(e);
442
+ var Ut = I.diffed;
443
+ I.diffed = function(e) {
444
+ Ut && Ut(e);
445
445
  var t = e.props, n = e.__e;
446
- n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Tt = null;
446
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), gt = null;
447
447
  };
448
- var Un = { ReactCurrentDispatcher: { current: { readContext: function(e) {
449
- return Tt.__n[e.__c].props.value;
450
- }, useCallback: M, useContext: Y, useDebugValue: St, useDeferredValue: At, useEffect: E, useId: Et, useImperativeHandle: wt, useInsertionEffect: It, useLayoutEffect: te, useMemo: D, useReducer: Te, useRef: w, useState: R, useSyncExternalStore: Nt, useTransition: Rt } } }, Po = "18.3.1";
451
- function jn(e) {
452
- return T.bind(null, e);
448
+ var Sn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
449
+ return gt.__n[e.__c].props.value;
450
+ }, useCallback: k, useContext: Y, useDebugValue: lt, useDeferredValue: vt, useEffect: E, useId: ft, useImperativeHandle: ut, useInsertionEffect: mt, useLayoutEffect: G, useMemo: z, useReducer: Oe, useRef: w, useState: A, useSyncExternalStore: pt, useTransition: ht } } }, Ur = "18.3.1";
451
+ function Cn(e) {
452
+ return D.bind(null, e);
453
453
  }
454
- function G(e) {
455
- return !!e && e.$$typeof === $n;
454
+ function H(e) {
455
+ return !!e && e.$$typeof === bn;
456
456
  }
457
- function Wn(e) {
458
- return G(e) && e.type === F;
457
+ function Pn(e) {
458
+ return H(e) && e.type === x;
459
459
  }
460
- function Bn(e) {
460
+ function On(e) {
461
461
  return !!e && typeof e.displayName == "string" && e.displayName.startsWith("Memo(");
462
462
  }
463
- function ge(e) {
464
- return G(e) ? io.apply(null, arguments) : e;
463
+ function pe(e) {
464
+ return H(e) ? Sr.apply(null, arguments) : e;
465
465
  }
466
- function Hn(e) {
467
- return !!e.__k && (Ae(null, e), !0);
466
+ function Nn(e) {
467
+ return !!e.__k && (Ee(null, e), !0);
468
468
  }
469
- function Zn(e) {
469
+ function Dn(e) {
470
470
  return e && (e.base || e.nodeType === 1 && e) || null;
471
471
  }
472
- var Vn = function(e, t) {
472
+ var Tn = function(e, t) {
473
473
  return e(t);
474
- }, kt = function(e, t) {
474
+ }, yt = function(e, t) {
475
475
  return e(t);
476
- }, Kn = F, qn = G, I = { useState: R, useId: Et, useReducer: Te, useEffect: E, useLayoutEffect: te, useInsertionEffect: It, useTransition: Rt, useDeferredValue: At, useSyncExternalStore: Nt, startTransition: Ot, useRef: w, useImperativeHandle: wt, useMemo: D, useCallback: M, useContext: Y, useDebugValue: St, version: "18.3.1", Children: K, render: Ln, hydrate: Fn, unmountComponentAtNode: Hn, createPortal: zn, createElement: T, createContext: ee, createFactory: jn, cloneElement: ge, createRef: On, Fragment: F, isValidElement: G, isElement: qn, isFragment: Wn, isMemo: Bn, findDOMNode: Zn, Component: se, PureComponent: Ve, memo: Tn, forwardRef: P, flushSync: kt, unstable_batchedUpdates: Vn, StrictMode: Kn, Suspense: Pe, SuspenseList: _e, lazy: Mn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Un };
477
- const Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
476
+ }, An = x, Rn = H, Br = { useState: A, useId: ft, useReducer: Oe, useEffect: E, useLayoutEffect: G, useInsertionEffect: mt, useTransition: ht, useDeferredValue: vt, useSyncExternalStore: pt, startTransition: _t, useRef: w, useImperativeHandle: ut, useMemo: z, useCallback: k, useContext: Y, useDebugValue: lt, version: "18.3.1", Children: U, render: wn, hydrate: En, unmountComponentAtNode: Nn, createPortal: yn, createElement: D, createContext: ne, createFactory: Cn, cloneElement: pe, createRef: ln, Fragment: x, isValidElement: H, isElement: Rn, isFragment: Pn, isMemo: On, findDOMNode: Dn, Component: te, PureComponent: Fe, memo: _n, forwardRef: P, flushSync: yt, unstable_batchedUpdates: Tn, StrictMode: An, Suspense: be, SuspenseList: le, lazy: gn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Sn };
477
+ const kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
478
478
  __proto__: null,
479
- Children: K,
480
- Component: se,
481
- Fragment: F,
482
- PureComponent: Ve,
483
- StrictMode: Kn,
484
- Suspense: Pe,
485
- SuspenseList: _e,
486
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Un,
487
- cloneElement: ge,
488
- createContext: ee,
489
- createElement: T,
490
- createFactory: jn,
491
- createPortal: zn,
492
- createRef: On,
493
- default: I,
494
- findDOMNode: Zn,
495
- flushSync: kt,
479
+ Children: U,
480
+ Component: te,
481
+ Fragment: x,
482
+ PureComponent: Fe,
483
+ StrictMode: An,
484
+ Suspense: be,
485
+ SuspenseList: le,
486
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Sn,
487
+ cloneElement: pe,
488
+ createContext: ne,
489
+ createElement: D,
490
+ createFactory: Cn,
491
+ createPortal: yn,
492
+ createRef: ln,
493
+ default: Br,
494
+ findDOMNode: Dn,
495
+ flushSync: yt,
496
496
  forwardRef: P,
497
- hydrate: Fn,
498
- isElement: qn,
499
- isFragment: Wn,
500
- isMemo: Bn,
501
- isValidElement: G,
502
- lazy: Mn,
503
- memo: Tn,
504
- render: Ln,
505
- startTransition: Ot,
506
- unmountComponentAtNode: Hn,
507
- unstable_batchedUpdates: Vn,
508
- useCallback: M,
497
+ hydrate: En,
498
+ isElement: Rn,
499
+ isFragment: Pn,
500
+ isMemo: On,
501
+ isValidElement: H,
502
+ lazy: gn,
503
+ memo: _n,
504
+ render: wn,
505
+ startTransition: _t,
506
+ unmountComponentAtNode: Nn,
507
+ unstable_batchedUpdates: Tn,
508
+ useCallback: k,
509
509
  useContext: Y,
510
- useDebugValue: St,
511
- useDeferredValue: At,
510
+ useDebugValue: lt,
511
+ useDeferredValue: vt,
512
512
  useEffect: E,
513
- useErrorBoundary: ao,
514
- useId: Et,
515
- useImperativeHandle: wt,
516
- useInsertionEffect: It,
517
- useLayoutEffect: te,
518
- useMemo: D,
519
- useReducer: Te,
513
+ useErrorBoundary: Or,
514
+ useId: ft,
515
+ useImperativeHandle: ut,
516
+ useInsertionEffect: mt,
517
+ useLayoutEffect: G,
518
+ useMemo: z,
519
+ useReducer: Oe,
520
520
  useRef: w,
521
- useState: R,
522
- useSyncExternalStore: Nt,
523
- useTransition: Rt,
524
- version: Po
521
+ useState: A,
522
+ useSyncExternalStore: pt,
523
+ useTransition: ht,
524
+ version: Ur
525
525
  }, Symbol.toStringTag, { value: "Module" }));
526
- function Dt(...e) {
526
+ function bt(...e) {
527
527
  return e.filter(Boolean).join(" ");
528
528
  }
529
- function gt(e) {
529
+ function Zr(e) {
530
530
  return Object.entries(e).filter(([, t]) => t).map(([t]) => t).join(" ");
531
531
  }
532
- const No = "_root_hw69b_1", Oo = "_neutral_hw69b_17", Ao = "_brand_hw69b_30", Ro = "_ghost_hw69b_43", sn = {
533
- root: No,
534
- neutral: Oo,
535
- brand: Ao,
536
- ghost: Ro
537
- }, at = ({ variant: e = "neutral", ...t }) => /* @__PURE__ */ p("button", { className: Dt(sn.root, sn[e]), ...t }), Io = "_root_14l5h_1", To = "_muted_14l5h_4", ko = "_body_14l5h_8", Do = "_normal_14l5h_14", xo = "_bold_14l5h_18", Mo = "_caption_14l5h_23", Me = {
538
- root: Io,
539
- muted: To,
540
- body: ko,
541
- normal: Do,
542
- bold: xo,
543
- caption: Mo
544
- }, ie = ({
532
+ const Hr = "_root_hw69b_1", Vr = "_neutral_hw69b_17", Kr = "_brand_hw69b_30", qr = "_ghost_hw69b_43", Bt = {
533
+ root: Hr,
534
+ neutral: Vr,
535
+ brand: Kr,
536
+ ghost: qr
537
+ }, Ye = ({ variant: e = "neutral", ...t }) => /* @__PURE__ */ v("button", { className: bt(Bt.root, Bt[e]), ...t }), Gr = "_root_14l5h_1", Yr = "_muted_14l5h_4", Xr = "_body_14l5h_8", Jr = "_normal_14l5h_14", Qr = "_bold_14l5h_18", eo = "_caption_14l5h_23", De = {
538
+ root: Gr,
539
+ muted: Yr,
540
+ body: Xr,
541
+ normal: Jr,
542
+ bold: Qr,
543
+ caption: eo
544
+ }, Xe = ({
545
545
  as: e = "span",
546
546
  size: t = "body",
547
547
  weight: n = "normal",
@@ -549,86 +549,77 @@ const No = "_root_hw69b_1", Oo = "_neutral_hw69b_17", Ao = "_brand_hw69b_30", Ro
549
549
  ...o
550
550
  }) => (
551
551
  // @ts-ignore
552
- /* @__PURE__ */ p(
552
+ /* @__PURE__ */ v(
553
553
  e ?? "span",
554
554
  {
555
- className: Dt(
556
- Me.root,
557
- Me[t],
558
- Me[n],
559
- Me[r]
555
+ className: bt(
556
+ De.root,
557
+ De[t],
558
+ De[n],
559
+ De[r]
560
560
  ),
561
561
  ...o
562
562
  }
563
563
  )
564
- ), zo = "_root_1wsw7_42", $o = "_noTarget_1wsw7_53", Lo = "_collapsible_1wsw7_62", Fo = "_header_1wsw7_65", Uo = "_heading_1wsw7_72", jo = "_chevron_1wsw7_78", Wo = "_open_1wsw7_83", Bo = "_settings_1wsw7_89", Ho = "_footer_1wsw7_103", Zo = "_legal_1wsw7_110", Vo = "_actions_1wsw7_113", j = {
565
- root: zo,
566
- noTarget: $o,
567
- collapsible: Lo,
568
- header: Fo,
569
- heading: Uo,
570
- chevron: jo,
571
- open: Wo,
572
- settings: Bo,
573
- footer: Ho,
574
- legal: Zo,
575
- actions: Vo
576
- }, Ko = "_root_mqtha_19", qo = "_header_mqtha_24", Go = "_label_mqtha_33", Yo = "_actions_mqtha_39", Xo = "_chevron_mqtha_45", Jo = "_open_mqtha_51", Qo = "_description_mqtha_58", re = {
577
- root: Ko,
578
- header: qo,
579
- label: Go,
580
- actions: Yo,
581
- chevron: Xo,
582
- open: Jo,
583
- description: Qo
564
+ ), to = "_root_1wsw7_42", no = "_noTarget_1wsw7_53", ro = "_collapsible_1wsw7_62", oo = "_header_1wsw7_65", io = "_heading_1wsw7_72", so = "_chevron_1wsw7_78", ao = "_open_1wsw7_83", co = "_footer_1wsw7_103", uo = "_legal_1wsw7_110", lo = "_actions_1wsw7_113", L = {
565
+ root: to,
566
+ noTarget: no,
567
+ collapsible: ro,
568
+ header: oo,
569
+ heading: io,
570
+ chevron: so,
571
+ open: ao,
572
+ footer: co,
573
+ legal: uo,
574
+ actions: lo
584
575
  };
585
- function x(e, t, n) {
586
- function r(s, a) {
576
+ function R(e, t, n) {
577
+ function r(s, u) {
587
578
  if (s._zod || Object.defineProperty(s, "_zod", {
588
579
  value: {
589
- def: a,
590
- constr: c,
580
+ def: u,
581
+ constr: a,
591
582
  traits: /* @__PURE__ */ new Set()
592
583
  },
593
584
  enumerable: !1
594
585
  }), s._zod.traits.has(e))
595
586
  return;
596
- s._zod.traits.add(e), t(s, a);
597
- const u = c.prototype, l = Object.keys(u);
598
- for (let d = 0; d < l.length; d++) {
599
- const _ = l[d];
600
- _ in s || (s[_] = u[_].bind(s));
587
+ s._zod.traits.add(e), t(s, u);
588
+ const c = a.prototype, l = Object.keys(c);
589
+ for (let f = 0; f < l.length; f++) {
590
+ const p = l[f];
591
+ p in s || (s[p] = c[p].bind(s));
601
592
  }
602
593
  }
603
594
  const o = n?.Parent ?? Object;
604
595
  class i extends o {
605
596
  }
606
597
  Object.defineProperty(i, "name", { value: e });
607
- function c(s) {
608
- var a;
609
- const u = n?.Parent ? new i() : this;
610
- r(u, s), (a = u._zod).deferred ?? (a.deferred = []);
611
- for (const l of u._zod.deferred)
598
+ function a(s) {
599
+ var u;
600
+ const c = n?.Parent ? new i() : this;
601
+ r(c, s), (u = c._zod).deferred ?? (u.deferred = []);
602
+ for (const l of c._zod.deferred)
612
603
  l();
613
- return u;
604
+ return c;
614
605
  }
615
- return Object.defineProperty(c, "init", { value: r }), Object.defineProperty(c, Symbol.hasInstance, {
606
+ return Object.defineProperty(a, "init", { value: r }), Object.defineProperty(a, Symbol.hasInstance, {
616
607
  value: (s) => n?.Parent && s instanceof n.Parent ? !0 : s?._zod?.traits?.has(e)
617
- }), Object.defineProperty(c, "name", { value: e }), c;
608
+ }), Object.defineProperty(a, "name", { value: e }), a;
618
609
  }
619
- class Ne extends Error {
610
+ class we extends Error {
620
611
  constructor() {
621
612
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
622
613
  }
623
614
  }
624
- const ei = {};
625
- function ye(e) {
626
- return ei;
615
+ const fo = {};
616
+ function _e(e) {
617
+ return fo;
627
618
  }
628
- function ti(e, t) {
619
+ function po(e, t) {
629
620
  return typeof t == "bigint" ? t.toString() : t;
630
621
  }
631
- function Yn(e) {
622
+ function In(e) {
632
623
  return {
633
624
  get value() {
634
625
  {
@@ -638,17 +629,17 @@ function Yn(e) {
638
629
  }
639
630
  };
640
631
  }
641
- function Xn(e) {
632
+ function zn(e) {
642
633
  const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
643
634
  return e.slice(t, n);
644
635
  }
645
- const cn = /* @__PURE__ */ Symbol("evaluating");
646
- function Z(e, t, n) {
636
+ const Zt = /* @__PURE__ */ Symbol("evaluating");
637
+ function j(e, t, n) {
647
638
  let r;
648
639
  Object.defineProperty(e, t, {
649
640
  get() {
650
- if (r !== cn)
651
- return r === void 0 && (r = cn, r = n()), r;
641
+ if (r !== Zt)
642
+ return r === void 0 && (r = Zt, r = n()), r;
652
643
  },
653
644
  set(o) {
654
645
  Object.defineProperty(e, t, {
@@ -659,34 +650,34 @@ function Z(e, t, n) {
659
650
  configurable: !0
660
651
  });
661
652
  }
662
- const Jn = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
653
+ const Mn = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
663
654
  };
664
- function Ke(e) {
655
+ function je(e) {
665
656
  return typeof e == "object" && e !== null && !Array.isArray(e);
666
657
  }
667
- function ni(e) {
668
- if (Ke(e) === !1)
658
+ function _o(e) {
659
+ if (je(e) === !1)
669
660
  return !1;
670
661
  const t = e.constructor;
671
662
  if (t === void 0 || typeof t != "function")
672
663
  return !0;
673
664
  const n = t.prototype;
674
- return !(Ke(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
665
+ return !(je(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
675
666
  }
676
- function an(e) {
667
+ function Ht(e) {
677
668
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
678
669
  }
679
- function ri(e, t, n) {
670
+ function vo(e, t, n) {
680
671
  const r = new e._zod.constr(t ?? e._zod.def);
681
672
  return (!t || n?.parent) && (r._zod.parent = e), r;
682
673
  }
683
- function be(e) {
674
+ function ve(e) {
684
675
  return {};
685
676
  }
686
- function oi(e) {
677
+ function ho(e) {
687
678
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
688
679
  }
689
- function Se(e, t = 0) {
680
+ function ge(e, t = 0) {
690
681
  if (e.aborted === !0)
691
682
  return !0;
692
683
  for (let n = t; n < e.issues.length; n++)
@@ -694,76 +685,76 @@ function Se(e, t = 0) {
694
685
  return !0;
695
686
  return !1;
696
687
  }
697
- function Ee(e, t) {
688
+ function ye(e, t) {
698
689
  return t.map((n) => {
699
690
  var r;
700
691
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
701
692
  });
702
693
  }
703
- function ze(e) {
694
+ function Te(e) {
704
695
  return typeof e == "string" ? e : e?.message;
705
696
  }
706
- function Ce(e, t, n) {
697
+ function he(e, t, n) {
707
698
  const r = { ...e, path: e.path ?? [] };
708
699
  if (!e.message) {
709
- const o = ze(e.inst?._zod.def?.error?.(e)) ?? ze(t?.error?.(e)) ?? ze(n.customError?.(e)) ?? ze(n.localeError?.(e)) ?? "Invalid input";
700
+ const o = Te(e.inst?._zod.def?.error?.(e)) ?? Te(t?.error?.(e)) ?? Te(n.customError?.(e)) ?? Te(n.localeError?.(e)) ?? "Invalid input";
710
701
  r.message = o;
711
702
  }
712
703
  return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
713
704
  }
714
- const Qn = (e, t) => {
705
+ const xn = (e, t) => {
715
706
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
716
707
  value: e._zod,
717
708
  enumerable: !1
718
709
  }), Object.defineProperty(e, "issues", {
719
710
  value: t,
720
711
  enumerable: !1
721
- }), e.message = JSON.stringify(t, ti, 2), Object.defineProperty(e, "toString", {
712
+ }), e.message = JSON.stringify(t, po, 2), Object.defineProperty(e, "toString", {
722
713
  value: () => e.message,
723
714
  enumerable: !1
724
715
  });
725
- }, ii = x("$ZodError", Qn), Je = x("$ZodError", Qn, { Parent: Error }), si = (e) => (t, n, r, o) => {
726
- const i = r ? Object.assign(r, { async: !1 }) : { async: !1 }, c = t._zod.run({ value: n, issues: [] }, i);
727
- if (c instanceof Promise)
728
- throw new Ne();
729
- if (c.issues.length) {
730
- const s = new (o?.Err ?? e)(c.issues.map((a) => Ce(a, i, ye())));
731
- throw Jn(s, o?.callee), s;
732
- }
733
- return c.value;
734
- }, ci = /* @__PURE__ */ si(Je), ai = (e) => async (t, n, r, o) => {
716
+ }, mo = R("$ZodError", xn), Be = R("$ZodError", xn, { Parent: Error }), go = (e) => (t, n, r, o) => {
717
+ const i = r ? Object.assign(r, { async: !1 }) : { async: !1 }, a = t._zod.run({ value: n, issues: [] }, i);
718
+ if (a instanceof Promise)
719
+ throw new we();
720
+ if (a.issues.length) {
721
+ const s = new (o?.Err ?? e)(a.issues.map((u) => he(u, i, _e())));
722
+ throw Mn(s, o?.callee), s;
723
+ }
724
+ return a.value;
725
+ }, yo = /* @__PURE__ */ go(Be), bo = (e) => async (t, n, r, o) => {
735
726
  const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
736
- let c = t._zod.run({ value: n, issues: [] }, i);
737
- if (c instanceof Promise && (c = await c), c.issues.length) {
738
- const s = new (o?.Err ?? e)(c.issues.map((a) => Ce(a, i, ye())));
739
- throw Jn(s, o?.callee), s;
727
+ let a = t._zod.run({ value: n, issues: [] }, i);
728
+ if (a instanceof Promise && (a = await a), a.issues.length) {
729
+ const s = new (o?.Err ?? e)(a.issues.map((u) => he(u, i, _e())));
730
+ throw Mn(s, o?.callee), s;
740
731
  }
741
- return c.value;
742
- }, ui = /* @__PURE__ */ ai(Je), li = (e) => (t, n, r) => {
732
+ return a.value;
733
+ }, wo = /* @__PURE__ */ bo(Be), Eo = (e) => (t, n, r) => {
743
734
  const o = r ? { ...r, async: !1 } : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, o);
744
735
  if (i instanceof Promise)
745
- throw new Ne();
736
+ throw new we();
746
737
  return i.issues.length ? {
747
738
  success: !1,
748
- error: new (e ?? ii)(i.issues.map((c) => Ce(c, o, ye())))
739
+ error: new (e ?? mo)(i.issues.map((a) => he(a, o, _e())))
749
740
  } : { success: !0, data: i.value };
750
- }, er = /* @__PURE__ */ li(Je), di = (e) => async (t, n, r) => {
741
+ }, $n = /* @__PURE__ */ Eo(Be), So = (e) => async (t, n, r) => {
751
742
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
752
743
  let i = t._zod.run({ value: n, issues: [] }, o);
753
744
  return i instanceof Promise && (i = await i), i.issues.length ? {
754
745
  success: !1,
755
- error: new e(i.issues.map((c) => Ce(c, o, ye())))
746
+ error: new e(i.issues.map((a) => he(a, o, _e())))
756
747
  } : { success: !0, data: i.value };
757
- }, tr = /* @__PURE__ */ di(Je), fi = (e) => {
748
+ }, Ln = /* @__PURE__ */ So(Be), Co = (e) => {
758
749
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
759
750
  return new RegExp(`^${t}$`);
760
- }, pi = /^-?\d+(?:\.\d+)?$/, _i = /^(?:true|false)$/i, vi = {
751
+ }, Po = /^-?\d+(?:\.\d+)?$/, Oo = /^(?:true|false)$/i, No = {
761
752
  major: 4,
762
753
  minor: 3,
763
754
  patch: 6
764
- }, ne = /* @__PURE__ */ x("$ZodType", (e, t) => {
755
+ }, X = /* @__PURE__ */ R("$ZodType", (e, t) => {
765
756
  var n;
766
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = vi;
757
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = No;
767
758
  const r = [...e._zod.def.checks ?? []];
768
759
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
769
760
  for (const o of r)
@@ -774,69 +765,69 @@ const Qn = (e, t) => {
774
765
  e._zod.run = e._zod.parse;
775
766
  });
776
767
  else {
777
- const o = (c, s, a) => {
778
- let u = Se(c), l;
779
- for (const d of s) {
780
- if (d._zod.def.when) {
781
- if (!d._zod.def.when(c))
768
+ const o = (a, s, u) => {
769
+ let c = ge(a), l;
770
+ for (const f of s) {
771
+ if (f._zod.def.when) {
772
+ if (!f._zod.def.when(a))
782
773
  continue;
783
- } else if (u)
774
+ } else if (c)
784
775
  continue;
785
- const _ = c.issues.length, m = d._zod.check(c);
786
- if (m instanceof Promise && a?.async === !1)
787
- throw new Ne();
788
- if (l || m instanceof Promise)
776
+ const p = a.issues.length, h = f._zod.check(a);
777
+ if (h instanceof Promise && u?.async === !1)
778
+ throw new we();
779
+ if (l || h instanceof Promise)
789
780
  l = (l ?? Promise.resolve()).then(async () => {
790
- await m, c.issues.length !== _ && (u || (u = Se(c, _)));
781
+ await h, a.issues.length !== p && (c || (c = ge(a, p)));
791
782
  });
792
783
  else {
793
- if (c.issues.length === _)
784
+ if (a.issues.length === p)
794
785
  continue;
795
- u || (u = Se(c, _));
786
+ c || (c = ge(a, p));
796
787
  }
797
788
  }
798
- return l ? l.then(() => c) : c;
799
- }, i = (c, s, a) => {
800
- if (Se(c))
801
- return c.aborted = !0, c;
802
- const u = o(s, r, a);
803
- if (u instanceof Promise) {
804
- if (a.async === !1)
805
- throw new Ne();
806
- return u.then((l) => e._zod.parse(l, a));
789
+ return l ? l.then(() => a) : a;
790
+ }, i = (a, s, u) => {
791
+ if (ge(a))
792
+ return a.aborted = !0, a;
793
+ const c = o(s, r, u);
794
+ if (c instanceof Promise) {
795
+ if (u.async === !1)
796
+ throw new we();
797
+ return c.then((l) => e._zod.parse(l, u));
807
798
  }
808
- return e._zod.parse(u, a);
799
+ return e._zod.parse(c, u);
809
800
  };
810
- e._zod.run = (c, s) => {
801
+ e._zod.run = (a, s) => {
811
802
  if (s.skipChecks)
812
- return e._zod.parse(c, s);
803
+ return e._zod.parse(a, s);
813
804
  if (s.direction === "backward") {
814
- const u = e._zod.parse({ value: c.value, issues: [] }, { ...s, skipChecks: !0 });
815
- return u instanceof Promise ? u.then((l) => i(l, c, s)) : i(u, c, s);
805
+ const c = e._zod.parse({ value: a.value, issues: [] }, { ...s, skipChecks: !0 });
806
+ return c instanceof Promise ? c.then((l) => i(l, a, s)) : i(c, a, s);
816
807
  }
817
- const a = e._zod.parse(c, s);
818
- if (a instanceof Promise) {
808
+ const u = e._zod.parse(a, s);
809
+ if (u instanceof Promise) {
819
810
  if (s.async === !1)
820
- throw new Ne();
821
- return a.then((u) => o(u, r, s));
811
+ throw new we();
812
+ return u.then((c) => o(c, r, s));
822
813
  }
823
- return o(a, r, s);
814
+ return o(u, r, s);
824
815
  };
825
816
  }
826
- Z(e, "~standard", () => ({
817
+ j(e, "~standard", () => ({
827
818
  validate: (o) => {
828
819
  try {
829
- const i = er(e, o);
820
+ const i = $n(e, o);
830
821
  return i.success ? { value: i.data } : { issues: i.error?.issues };
831
822
  } catch {
832
- return tr(e, o).then((c) => c.success ? { value: c.data } : { issues: c.error?.issues });
823
+ return Ln(e, o).then((a) => a.success ? { value: a.data } : { issues: a.error?.issues });
833
824
  }
834
825
  },
835
826
  vendor: "zod",
836
827
  version: 1
837
828
  }));
838
- }), hi = /* @__PURE__ */ x("$ZodString", (e, t) => {
839
- ne.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? fi(e._zod.bag), e._zod.parse = (n, r) => {
829
+ }), Do = /* @__PURE__ */ R("$ZodString", (e, t) => {
830
+ X.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Co(e._zod.bag), e._zod.parse = (n, r) => {
840
831
  if (t.coerce)
841
832
  try {
842
833
  n.value = String(n.value);
@@ -849,8 +840,8 @@ const Qn = (e, t) => {
849
840
  inst: e
850
841
  }), n;
851
842
  };
852
- }), mi = /* @__PURE__ */ x("$ZodBoolean", (e, t) => {
853
- ne.init(e, t), e._zod.pattern = _i, e._zod.parse = (n, r) => {
843
+ }), To = /* @__PURE__ */ R("$ZodBoolean", (e, t) => {
844
+ X.init(e, t), e._zod.pattern = Oo, e._zod.parse = (n, r) => {
854
845
  if (t.coerce)
855
846
  try {
856
847
  n.value = !!n.value;
@@ -865,20 +856,20 @@ const Qn = (e, t) => {
865
856
  }), n;
866
857
  };
867
858
  });
868
- function qe(e, t, n, r, o) {
859
+ function We(e, t, n, r, o) {
869
860
  if (e.issues.length) {
870
861
  if (o && !(n in r))
871
862
  return;
872
- t.issues.push(...Ee(n, e.issues));
863
+ t.issues.push(...ye(n, e.issues));
873
864
  }
874
865
  e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
875
866
  }
876
- function gi(e) {
867
+ function Ao(e) {
877
868
  const t = Object.keys(e.shape);
878
869
  for (const r of t)
879
870
  if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
880
871
  throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
881
- const n = oi(e.shape);
872
+ const n = ho(e.shape);
882
873
  return {
883
874
  ...e,
884
875
  keys: t,
@@ -887,215 +878,215 @@ function gi(e) {
887
878
  optionalKeys: new Set(n)
888
879
  };
889
880
  }
890
- function yi(e, t, n, r, o, i) {
891
- const c = [], s = o.keySet, a = o.catchall._zod, u = a.def.type, l = a.optout === "optional";
892
- for (const d in t) {
893
- if (s.has(d))
881
+ function Ro(e, t, n, r, o, i) {
882
+ const a = [], s = o.keySet, u = o.catchall._zod, c = u.def.type, l = u.optout === "optional";
883
+ for (const f in t) {
884
+ if (s.has(f))
894
885
  continue;
895
- if (u === "never") {
896
- c.push(d);
886
+ if (c === "never") {
887
+ a.push(f);
897
888
  continue;
898
889
  }
899
- const _ = a.run({ value: t[d], issues: [] }, r);
900
- _ instanceof Promise ? e.push(_.then((m) => qe(m, n, d, t, l))) : qe(_, n, d, t, l);
890
+ const p = u.run({ value: t[f], issues: [] }, r);
891
+ p instanceof Promise ? e.push(p.then((h) => We(h, n, f, t, l))) : We(p, n, f, t, l);
901
892
  }
902
- return c.length && n.issues.push({
893
+ return a.length && n.issues.push({
903
894
  code: "unrecognized_keys",
904
- keys: c,
895
+ keys: a,
905
896
  input: t,
906
897
  inst: i
907
898
  }), e.length ? Promise.all(e).then(() => n) : n;
908
899
  }
909
- const bi = /* @__PURE__ */ x("$ZodObject", (e, t) => {
910
- if (ne.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
900
+ const ko = /* @__PURE__ */ R("$ZodObject", (e, t) => {
901
+ if (X.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
911
902
  const s = t.shape;
912
903
  Object.defineProperty(t, "shape", {
913
904
  get: () => {
914
- const a = { ...s };
905
+ const u = { ...s };
915
906
  return Object.defineProperty(t, "shape", {
916
- value: a
917
- }), a;
907
+ value: u
908
+ }), u;
918
909
  }
919
910
  });
920
911
  }
921
- const r = Yn(() => gi(t));
922
- Z(e._zod, "propValues", () => {
923
- const s = t.shape, a = {};
924
- for (const u in s) {
925
- const l = s[u]._zod;
912
+ const r = In(() => Ao(t));
913
+ j(e._zod, "propValues", () => {
914
+ const s = t.shape, u = {};
915
+ for (const c in s) {
916
+ const l = s[c]._zod;
926
917
  if (l.values) {
927
- a[u] ?? (a[u] = /* @__PURE__ */ new Set());
928
- for (const d of l.values)
929
- a[u].add(d);
918
+ u[c] ?? (u[c] = /* @__PURE__ */ new Set());
919
+ for (const f of l.values)
920
+ u[c].add(f);
930
921
  }
931
922
  }
932
- return a;
923
+ return u;
933
924
  });
934
- const o = Ke, i = t.catchall;
935
- let c;
936
- e._zod.parse = (s, a) => {
937
- c ?? (c = r.value);
938
- const u = s.value;
939
- if (!o(u))
925
+ const o = je, i = t.catchall;
926
+ let a;
927
+ e._zod.parse = (s, u) => {
928
+ a ?? (a = r.value);
929
+ const c = s.value;
930
+ if (!o(c))
940
931
  return s.issues.push({
941
932
  expected: "object",
942
933
  code: "invalid_type",
943
- input: u,
934
+ input: c,
944
935
  inst: e
945
936
  }), s;
946
937
  s.value = {};
947
- const l = [], d = c.shape;
948
- for (const _ of c.keys) {
949
- const m = d[_], g = m._zod.optout === "optional", f = m._zod.run({ value: u[_], issues: [] }, a);
950
- f instanceof Promise ? l.push(f.then((v) => qe(v, s, _, u, g))) : qe(f, s, _, u, g);
938
+ const l = [], f = a.shape;
939
+ for (const p of a.keys) {
940
+ const h = f[p], g = h._zod.optout === "optional", d = h._zod.run({ value: c[p], issues: [] }, u);
941
+ d instanceof Promise ? l.push(d.then((_) => We(_, s, p, c, g))) : We(d, s, p, c, g);
951
942
  }
952
- return i ? yi(l, u, s, a, r.value, e) : l.length ? Promise.all(l).then(() => s) : s;
943
+ return i ? Ro(l, c, s, u, r.value, e) : l.length ? Promise.all(l).then(() => s) : s;
953
944
  };
954
945
  });
955
- function un(e, t, n, r) {
946
+ function Vt(e, t, n, r) {
956
947
  for (const i of e)
957
948
  if (i.issues.length === 0)
958
949
  return t.value = i.value, t;
959
- const o = e.filter((i) => !Se(i));
950
+ const o = e.filter((i) => !ge(i));
960
951
  return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
961
952
  code: "invalid_union",
962
953
  input: t.value,
963
954
  inst: n,
964
- errors: e.map((i) => i.issues.map((c) => Ce(c, r, ye())))
955
+ errors: e.map((i) => i.issues.map((a) => he(a, r, _e())))
965
956
  }), t);
966
957
  }
967
- const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
968
- ne.init(e, t), Z(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), Z(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), Z(e._zod, "values", () => {
958
+ const Io = /* @__PURE__ */ R("$ZodUnion", (e, t) => {
959
+ X.init(e, t), j(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), j(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), j(e._zod, "values", () => {
969
960
  if (t.options.every((o) => o._zod.values))
970
961
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
971
- }), Z(e._zod, "pattern", () => {
962
+ }), j(e._zod, "pattern", () => {
972
963
  if (t.options.every((o) => o._zod.pattern)) {
973
964
  const o = t.options.map((i) => i._zod.pattern);
974
- return new RegExp(`^(${o.map((i) => Xn(i.source)).join("|")})$`);
965
+ return new RegExp(`^(${o.map((i) => zn(i.source)).join("|")})$`);
975
966
  }
976
967
  });
977
968
  const n = t.options.length === 1, r = t.options[0]._zod.run;
978
969
  e._zod.parse = (o, i) => {
979
970
  if (n)
980
971
  return r(o, i);
981
- let c = !1;
972
+ let a = !1;
982
973
  const s = [];
983
- for (const a of t.options) {
984
- const u = a._zod.run({
974
+ for (const u of t.options) {
975
+ const c = u._zod.run({
985
976
  value: o.value,
986
977
  issues: []
987
978
  }, i);
988
- if (u instanceof Promise)
989
- s.push(u), c = !0;
979
+ if (c instanceof Promise)
980
+ s.push(c), a = !0;
990
981
  else {
991
- if (u.issues.length === 0)
992
- return u;
993
- s.push(u);
982
+ if (c.issues.length === 0)
983
+ return c;
984
+ s.push(c);
994
985
  }
995
986
  }
996
- return c ? Promise.all(s).then((a) => un(a, o, e, i)) : un(s, o, e, i);
987
+ return a ? Promise.all(s).then((u) => Vt(u, o, e, i)) : Vt(s, o, e, i);
997
988
  };
998
- }), wi = /* @__PURE__ */ x("$ZodDiscriminatedUnion", (e, t) => {
999
- t.inclusive = !1, Ci.init(e, t);
989
+ }), zo = /* @__PURE__ */ R("$ZodDiscriminatedUnion", (e, t) => {
990
+ t.inclusive = !1, Io.init(e, t);
1000
991
  const n = e._zod.parse;
1001
- Z(e._zod, "propValues", () => {
992
+ j(e._zod, "propValues", () => {
1002
993
  const o = {};
1003
994
  for (const i of t.options) {
1004
- const c = i._zod.propValues;
1005
- if (!c || Object.keys(c).length === 0)
995
+ const a = i._zod.propValues;
996
+ if (!a || Object.keys(a).length === 0)
1006
997
  throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);
1007
- for (const [s, a] of Object.entries(c)) {
998
+ for (const [s, u] of Object.entries(a)) {
1008
999
  o[s] || (o[s] = /* @__PURE__ */ new Set());
1009
- for (const u of a)
1010
- o[s].add(u);
1000
+ for (const c of u)
1001
+ o[s].add(c);
1011
1002
  }
1012
1003
  }
1013
1004
  return o;
1014
1005
  });
1015
- const r = Yn(() => {
1006
+ const r = In(() => {
1016
1007
  const o = t.options, i = /* @__PURE__ */ new Map();
1017
- for (const c of o) {
1018
- const s = c._zod.propValues?.[t.discriminator];
1008
+ for (const a of o) {
1009
+ const s = a._zod.propValues?.[t.discriminator];
1019
1010
  if (!s || s.size === 0)
1020
- throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);
1021
- for (const a of s) {
1022
- if (i.has(a))
1023
- throw new Error(`Duplicate discriminator value "${String(a)}"`);
1024
- i.set(a, c);
1011
+ throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);
1012
+ for (const u of s) {
1013
+ if (i.has(u))
1014
+ throw new Error(`Duplicate discriminator value "${String(u)}"`);
1015
+ i.set(u, a);
1025
1016
  }
1026
1017
  }
1027
1018
  return i;
1028
1019
  });
1029
1020
  e._zod.parse = (o, i) => {
1030
- const c = o.value;
1031
- if (!Ke(c))
1021
+ const a = o.value;
1022
+ if (!je(a))
1032
1023
  return o.issues.push({
1033
1024
  code: "invalid_type",
1034
1025
  expected: "object",
1035
- input: c,
1026
+ input: a,
1036
1027
  inst: e
1037
1028
  }), o;
1038
- const s = r.value.get(c?.[t.discriminator]);
1029
+ const s = r.value.get(a?.[t.discriminator]);
1039
1030
  return s ? s._zod.run(o, i) : t.unionFallback ? n(o, i) : (o.issues.push({
1040
1031
  code: "invalid_union",
1041
1032
  errors: [],
1042
1033
  note: "No matching discriminator",
1043
1034
  discriminator: t.discriminator,
1044
- input: c,
1035
+ input: a,
1045
1036
  path: [t.discriminator],
1046
1037
  inst: e
1047
1038
  }), o);
1048
1039
  };
1049
- }), Si = /* @__PURE__ */ x("$ZodRecord", (e, t) => {
1050
- ne.init(e, t), e._zod.parse = (n, r) => {
1040
+ }), Mo = /* @__PURE__ */ R("$ZodRecord", (e, t) => {
1041
+ X.init(e, t), e._zod.parse = (n, r) => {
1051
1042
  const o = n.value;
1052
- if (!ni(o))
1043
+ if (!_o(o))
1053
1044
  return n.issues.push({
1054
1045
  expected: "record",
1055
1046
  code: "invalid_type",
1056
1047
  input: o,
1057
1048
  inst: e
1058
1049
  }), n;
1059
- const i = [], c = t.keyType._zod.values;
1060
- if (c) {
1050
+ const i = [], a = t.keyType._zod.values;
1051
+ if (a) {
1061
1052
  n.value = {};
1062
1053
  const s = /* @__PURE__ */ new Set();
1063
- for (const u of c)
1064
- if (typeof u == "string" || typeof u == "number" || typeof u == "symbol") {
1065
- s.add(typeof u == "number" ? u.toString() : u);
1066
- const l = t.valueType._zod.run({ value: o[u], issues: [] }, r);
1067
- l instanceof Promise ? i.push(l.then((d) => {
1068
- d.issues.length && n.issues.push(...Ee(u, d.issues)), n.value[u] = d.value;
1069
- })) : (l.issues.length && n.issues.push(...Ee(u, l.issues)), n.value[u] = l.value);
1054
+ for (const c of a)
1055
+ if (typeof c == "string" || typeof c == "number" || typeof c == "symbol") {
1056
+ s.add(typeof c == "number" ? c.toString() : c);
1057
+ const l = t.valueType._zod.run({ value: o[c], issues: [] }, r);
1058
+ l instanceof Promise ? i.push(l.then((f) => {
1059
+ f.issues.length && n.issues.push(...ye(c, f.issues)), n.value[c] = f.value;
1060
+ })) : (l.issues.length && n.issues.push(...ye(c, l.issues)), n.value[c] = l.value);
1070
1061
  }
1071
- let a;
1072
- for (const u in o)
1073
- s.has(u) || (a = a ?? [], a.push(u));
1074
- a && a.length > 0 && n.issues.push({
1062
+ let u;
1063
+ for (const c in o)
1064
+ s.has(c) || (u = u ?? [], u.push(c));
1065
+ u && u.length > 0 && n.issues.push({
1075
1066
  code: "unrecognized_keys",
1076
1067
  input: o,
1077
1068
  inst: e,
1078
- keys: a
1069
+ keys: u
1079
1070
  });
1080
1071
  } else {
1081
1072
  n.value = {};
1082
1073
  for (const s of Reflect.ownKeys(o)) {
1083
1074
  if (s === "__proto__")
1084
1075
  continue;
1085
- let a = t.keyType._zod.run({ value: s, issues: [] }, r);
1086
- if (a instanceof Promise)
1076
+ let u = t.keyType._zod.run({ value: s, issues: [] }, r);
1077
+ if (u instanceof Promise)
1087
1078
  throw new Error("Async schemas not supported in object keys currently");
1088
- if (typeof s == "string" && pi.test(s) && a.issues.length) {
1089
- const d = t.keyType._zod.run({ value: Number(s), issues: [] }, r);
1090
- if (d instanceof Promise)
1079
+ if (typeof s == "string" && Po.test(s) && u.issues.length) {
1080
+ const f = t.keyType._zod.run({ value: Number(s), issues: [] }, r);
1081
+ if (f instanceof Promise)
1091
1082
  throw new Error("Async schemas not supported in object keys currently");
1092
- d.issues.length === 0 && (a = d);
1083
+ f.issues.length === 0 && (u = f);
1093
1084
  }
1094
- if (a.issues.length) {
1085
+ if (u.issues.length) {
1095
1086
  t.mode === "loose" ? n.value[s] = o[s] : n.issues.push({
1096
1087
  code: "invalid_key",
1097
1088
  origin: "record",
1098
- issues: a.issues.map((d) => Ce(d, r, ye())),
1089
+ issues: u.issues.map((f) => he(f, r, _e())),
1099
1090
  input: s,
1100
1091
  path: [s],
1101
1092
  inst: e
@@ -1103,18 +1094,18 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
1103
1094
  continue;
1104
1095
  }
1105
1096
  const l = t.valueType._zod.run({ value: o[s], issues: [] }, r);
1106
- l instanceof Promise ? i.push(l.then((d) => {
1107
- d.issues.length && n.issues.push(...Ee(s, d.issues)), n.value[a.value] = d.value;
1108
- })) : (l.issues.length && n.issues.push(...Ee(s, l.issues)), n.value[a.value] = l.value);
1097
+ l instanceof Promise ? i.push(l.then((f) => {
1098
+ f.issues.length && n.issues.push(...ye(s, f.issues)), n.value[u.value] = f.value;
1099
+ })) : (l.issues.length && n.issues.push(...ye(s, l.issues)), n.value[u.value] = l.value);
1109
1100
  }
1110
1101
  }
1111
1102
  return i.length ? Promise.all(i).then(() => n) : n;
1112
1103
  };
1113
- }), Ei = /* @__PURE__ */ x("$ZodLiteral", (e, t) => {
1114
- if (ne.init(e, t), t.values.length === 0)
1104
+ }), xo = /* @__PURE__ */ R("$ZodLiteral", (e, t) => {
1105
+ if (X.init(e, t), t.values.length === 0)
1115
1106
  throw new Error("Cannot create literal schema with no valid values");
1116
1107
  const n = new Set(t.values);
1117
- e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? an(r) : r ? an(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, o) => {
1108
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? Ht(r) : r ? Ht(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, o) => {
1118
1109
  const i = r.value;
1119
1110
  return n.has(i) || r.issues.push({
1120
1111
  code: "invalid_value",
@@ -1124,179 +1115,179 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
1124
1115
  }), r;
1125
1116
  };
1126
1117
  });
1127
- function ln(e, t) {
1118
+ function Kt(e, t) {
1128
1119
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1129
1120
  }
1130
- const Pi = /* @__PURE__ */ x("$ZodOptional", (e, t) => {
1131
- ne.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), Z(e._zod, "pattern", () => {
1121
+ const $o = /* @__PURE__ */ R("$ZodOptional", (e, t) => {
1122
+ X.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", j(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), j(e._zod, "pattern", () => {
1132
1123
  const n = t.innerType._zod.pattern;
1133
- return n ? new RegExp(`^(${Xn(n.source)})?$`) : void 0;
1124
+ return n ? new RegExp(`^(${zn(n.source)})?$`) : void 0;
1134
1125
  }), e._zod.parse = (n, r) => {
1135
1126
  if (t.innerType._zod.optin === "optional") {
1136
1127
  const o = t.innerType._zod.run(n, r);
1137
- return o instanceof Promise ? o.then((i) => ln(i, n.value)) : ln(o, n.value);
1128
+ return o instanceof Promise ? o.then((i) => Kt(i, n.value)) : Kt(o, n.value);
1138
1129
  }
1139
1130
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1140
1131
  };
1141
1132
  });
1142
1133
  // @__NO_SIDE_EFFECTS__
1143
- function Ni(e, t) {
1134
+ function Lo(e, t) {
1144
1135
  return new e({
1145
1136
  type: "string",
1146
- ...be()
1137
+ ...ve()
1147
1138
  });
1148
1139
  }
1149
1140
  // @__NO_SIDE_EFFECTS__
1150
- function Oi(e, t) {
1141
+ function Fo(e, t) {
1151
1142
  return new e({
1152
1143
  type: "boolean",
1153
- ...be()
1144
+ ...ve()
1154
1145
  });
1155
1146
  }
1156
- const ue = /* @__PURE__ */ x("ZodMiniType", (e, t) => {
1147
+ const ie = /* @__PURE__ */ R("ZodMiniType", (e, t) => {
1157
1148
  if (!e._zod)
1158
1149
  throw new Error("Uninitialized schema in ZodMiniType.");
1159
- ne.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => ci(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => er(e, n, r), e.parseAsync = async (n, r) => ui(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => tr(e, n, r), e.check = (...n) => e.clone({
1150
+ X.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => yo(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => $n(e, n, r), e.parseAsync = async (n, r) => wo(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Ln(e, n, r), e.check = (...n) => e.clone({
1160
1151
  ...t,
1161
1152
  checks: [
1162
1153
  ...t.checks ?? [],
1163
1154
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
1164
1155
  ]
1165
- }, { parent: !0 }), e.with = e.check, e.clone = (n, r) => ri(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
1166
- }), Ai = /* @__PURE__ */ x("ZodMiniString", (e, t) => {
1167
- hi.init(e, t), ue.init(e, t);
1156
+ }, { parent: !0 }), e.with = e.check, e.clone = (n, r) => vo(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
1157
+ }), jo = /* @__PURE__ */ R("ZodMiniString", (e, t) => {
1158
+ Do.init(e, t), ie.init(e, t);
1168
1159
  });
1169
1160
  // @__NO_SIDE_EFFECTS__
1170
- function oe(e) {
1171
- return /* @__PURE__ */ Ni(Ai);
1161
+ function ee(e) {
1162
+ return /* @__PURE__ */ Lo(jo);
1172
1163
  }
1173
- const Ri = /* @__PURE__ */ x("ZodMiniBoolean", (e, t) => {
1174
- mi.init(e, t), ue.init(e, t);
1164
+ const Wo = /* @__PURE__ */ R("ZodMiniBoolean", (e, t) => {
1165
+ To.init(e, t), ie.init(e, t);
1175
1166
  });
1176
1167
  // @__NO_SIDE_EFFECTS__
1177
- function Re(e) {
1178
- return /* @__PURE__ */ Oi(Ri);
1168
+ function Se(e) {
1169
+ return /* @__PURE__ */ Fo(Wo);
1179
1170
  }
1180
- const Ii = /* @__PURE__ */ x("ZodMiniObject", (e, t) => {
1181
- bi.init(e, t), ue.init(e, t), Z(e, "shape", () => t.shape);
1171
+ const Uo = /* @__PURE__ */ R("ZodMiniObject", (e, t) => {
1172
+ ko.init(e, t), ie.init(e, t), j(e, "shape", () => t.shape);
1182
1173
  });
1183
1174
  // @__NO_SIDE_EFFECTS__
1184
- function nr(e, t) {
1175
+ function Fn(e, t) {
1185
1176
  const n = {
1186
1177
  type: "object",
1187
1178
  shape: e ?? {},
1188
- ...be()
1179
+ ...ve()
1189
1180
  };
1190
- return new Ii(n);
1181
+ return new Uo(n);
1191
1182
  }
1192
- const Ti = /* @__PURE__ */ x("ZodMiniDiscriminatedUnion", (e, t) => {
1193
- wi.init(e, t), ue.init(e, t);
1183
+ const Bo = /* @__PURE__ */ R("ZodMiniDiscriminatedUnion", (e, t) => {
1184
+ zo.init(e, t), ie.init(e, t);
1194
1185
  });
1195
1186
  // @__NO_SIDE_EFFECTS__
1196
- function ki(e, t, n) {
1197
- return new Ti({
1187
+ function Zo(e, t, n) {
1188
+ return new Bo({
1198
1189
  type: "union",
1199
1190
  options: t,
1200
1191
  discriminator: e,
1201
- ...be()
1192
+ ...ve()
1202
1193
  });
1203
1194
  }
1204
- const Di = /* @__PURE__ */ x("ZodMiniRecord", (e, t) => {
1205
- Si.init(e, t), ue.init(e, t);
1195
+ const Ho = /* @__PURE__ */ R("ZodMiniRecord", (e, t) => {
1196
+ Mo.init(e, t), ie.init(e, t);
1206
1197
  });
1207
1198
  // @__NO_SIDE_EFFECTS__
1208
- function xi(e, t, n) {
1209
- return new Di({
1199
+ function Vo(e, t, n) {
1200
+ return new Ho({
1210
1201
  type: "record",
1211
1202
  keyType: e,
1212
1203
  valueType: t,
1213
- ...be()
1204
+ ...ve()
1214
1205
  });
1215
1206
  }
1216
- const Mi = /* @__PURE__ */ x("ZodMiniLiteral", (e, t) => {
1217
- Ei.init(e, t), ue.init(e, t);
1207
+ const Ko = /* @__PURE__ */ R("ZodMiniLiteral", (e, t) => {
1208
+ xo.init(e, t), ie.init(e, t);
1218
1209
  });
1219
1210
  // @__NO_SIDE_EFFECTS__
1220
- function rr(e, t) {
1221
- return new Mi({
1211
+ function jn(e, t) {
1212
+ return new Ko({
1222
1213
  type: "literal",
1223
1214
  values: Array.isArray(e) ? e : [e],
1224
- ...be()
1215
+ ...ve()
1225
1216
  });
1226
1217
  }
1227
- const zi = /* @__PURE__ */ x("ZodMiniOptional", (e, t) => {
1228
- Pi.init(e, t), ue.init(e, t);
1218
+ const qo = /* @__PURE__ */ R("ZodMiniOptional", (e, t) => {
1219
+ $o.init(e, t), ie.init(e, t);
1229
1220
  });
1230
1221
  // @__NO_SIDE_EFFECTS__
1231
- function J(e) {
1232
- return new zi({
1222
+ function K(e) {
1223
+ return new qo({
1233
1224
  type: "optional",
1234
1225
  innerType: e
1235
1226
  });
1236
1227
  }
1237
- const $i = /* @__PURE__ */ nr({
1238
- variant: /* @__PURE__ */ rr("remote"),
1239
- type: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
1240
- src: /* @__PURE__ */ oe(),
1241
- async: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1242
- defer: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1243
- crossorigin: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
1244
- integrity: /* @__PURE__ */ J(/* @__PURE__ */ oe())
1245
- }), Li = /* @__PURE__ */ nr({
1246
- variant: /* @__PURE__ */ rr("inline"),
1247
- type: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
1248
- async: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1249
- defer: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1250
- content: /* @__PURE__ */ oe()
1251
- }), Fi = /* @__PURE__ */ ki("variant", [
1252
- $i,
1253
- Li
1228
+ const Go = /* @__PURE__ */ Fn({
1229
+ variant: /* @__PURE__ */ jn("remote"),
1230
+ type: /* @__PURE__ */ K(/* @__PURE__ */ ee()),
1231
+ src: /* @__PURE__ */ ee(),
1232
+ async: /* @__PURE__ */ K(/* @__PURE__ */ Se()),
1233
+ defer: /* @__PURE__ */ K(/* @__PURE__ */ Se()),
1234
+ crossorigin: /* @__PURE__ */ K(/* @__PURE__ */ ee()),
1235
+ integrity: /* @__PURE__ */ K(/* @__PURE__ */ ee())
1236
+ }), Yo = /* @__PURE__ */ Fn({
1237
+ variant: /* @__PURE__ */ jn("inline"),
1238
+ type: /* @__PURE__ */ K(/* @__PURE__ */ ee()),
1239
+ async: /* @__PURE__ */ K(/* @__PURE__ */ Se()),
1240
+ defer: /* @__PURE__ */ K(/* @__PURE__ */ Se()),
1241
+ content: /* @__PURE__ */ ee()
1242
+ }), Xo = /* @__PURE__ */ Zo("variant", [
1243
+ Go,
1244
+ Yo
1254
1245
  ]);
1255
- function Ui(e, t) {
1256
- const n = ee(t), r = (i) => {
1257
- const { children: c, ...s } = i, a = D(() => s, Object.values(s));
1258
- return /* @__PURE__ */ p(n.Provider, { value: a, children: c });
1246
+ function Jo(e, t) {
1247
+ const n = ne(t), r = (i) => {
1248
+ const { children: a, ...s } = i, u = z(() => s, Object.values(s));
1249
+ return /* @__PURE__ */ v(n.Provider, { value: u, children: a });
1259
1250
  };
1260
1251
  r.displayName = e + "Provider";
1261
1252
  function o(i) {
1262
- const c = Y(n);
1263
- if (c) return c;
1253
+ const a = Y(n);
1254
+ if (a) return a;
1264
1255
  if (t !== void 0) return t;
1265
1256
  throw new Error(`\`${i}\` must be used within \`${e}\``);
1266
1257
  }
1267
1258
  return [r, o];
1268
1259
  }
1269
- function ke(e, t = []) {
1260
+ function Wn(e, t = []) {
1270
1261
  let n = [];
1271
- function r(i, c) {
1272
- const s = ee(c), a = n.length;
1273
- n = [...n, c];
1274
- const u = (d) => {
1275
- const { scope: _, children: m, ...g } = d, f = _?.[e]?.[a] || s, v = D(() => g, Object.values(g));
1276
- return /* @__PURE__ */ p(f.Provider, { value: v, children: m });
1262
+ function r(i, a) {
1263
+ const s = ne(a), u = n.length;
1264
+ n = [...n, a];
1265
+ const c = (f) => {
1266
+ const { scope: p, children: h, ...g } = f, d = p?.[e]?.[u] || s, _ = z(() => g, Object.values(g));
1267
+ return /* @__PURE__ */ v(d.Provider, { value: _, children: h });
1277
1268
  };
1278
- u.displayName = i + "Provider";
1279
- function l(d, _) {
1280
- const m = _?.[e]?.[a] || s, g = Y(m);
1269
+ c.displayName = i + "Provider";
1270
+ function l(f, p) {
1271
+ const h = p?.[e]?.[u] || s, g = Y(h);
1281
1272
  if (g) return g;
1282
- if (c !== void 0) return c;
1283
- throw new Error(`\`${d}\` must be used within \`${i}\``);
1273
+ if (a !== void 0) return a;
1274
+ throw new Error(`\`${f}\` must be used within \`${i}\``);
1284
1275
  }
1285
- return [u, l];
1276
+ return [c, l];
1286
1277
  }
1287
1278
  const o = () => {
1288
- const i = n.map((c) => ee(c));
1279
+ const i = n.map((a) => ne(a));
1289
1280
  return function(s) {
1290
- const a = s?.[e] || i;
1291
- return D(
1292
- () => ({ [`__scope${e}`]: { ...s, [e]: a } }),
1293
- [s, a]
1281
+ const u = s?.[e] || i;
1282
+ return z(
1283
+ () => ({ [`__scope${e}`]: { ...s, [e]: u } }),
1284
+ [s, u]
1294
1285
  );
1295
1286
  };
1296
1287
  };
1297
- return o.scopeName = e, [r, ji(o, ...t)];
1288
+ return o.scopeName = e, [r, Qo(o, ...t)];
1298
1289
  }
1299
- function ji(...e) {
1290
+ function Qo(...e) {
1300
1291
  const t = e[0];
1301
1292
  if (e.length === 1) return t;
1302
1293
  const n = () => {
@@ -1305,179 +1296,137 @@ function ji(...e) {
1305
1296
  scopeName: o.scopeName
1306
1297
  }));
1307
1298
  return function(i) {
1308
- const c = r.reduce((s, { useScope: a, scopeName: u }) => {
1309
- const d = a(i)[`__scope${u}`];
1310
- return { ...s, ...d };
1299
+ const a = r.reduce((s, { useScope: u, scopeName: c }) => {
1300
+ const f = u(i)[`__scope${c}`];
1301
+ return { ...s, ...f };
1311
1302
  }, {});
1312
- return D(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
1303
+ return z(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
1313
1304
  };
1314
1305
  };
1315
1306
  return n.scopeName = t.scopeName, n;
1316
1307
  }
1317
- function dn(e, t) {
1308
+ function qt(e, t) {
1318
1309
  if (typeof e == "function")
1319
1310
  return e(t);
1320
1311
  e != null && (e.current = t);
1321
1312
  }
1322
- function or(...e) {
1313
+ function Un(...e) {
1323
1314
  return (t) => {
1324
1315
  let n = !1;
1325
1316
  const r = e.map((o) => {
1326
- const i = dn(o, t);
1317
+ const i = qt(o, t);
1327
1318
  return !n && typeof i == "function" && (n = !0), i;
1328
1319
  });
1329
1320
  if (n)
1330
1321
  return () => {
1331
1322
  for (let o = 0; o < r.length; o++) {
1332
1323
  const i = r[o];
1333
- typeof i == "function" ? i() : dn(e[o], null);
1324
+ typeof i == "function" ? i() : qt(e[o], null);
1334
1325
  }
1335
1326
  };
1336
1327
  };
1337
1328
  }
1338
- function L(...e) {
1339
- return M(or(...e), e);
1329
+ function J(...e) {
1330
+ return k(Un(...e), e);
1340
1331
  }
1341
1332
  // @__NO_SIDE_EFFECTS__
1342
- function Ge(e) {
1343
- const t = /* @__PURE__ */ Wi(e), n = P((r, o) => {
1344
- const { children: i, ...c } = r, s = K.toArray(i), a = s.find(Hi);
1345
- if (a) {
1346
- const u = a.props.children, l = s.map((d) => d === a ? K.count(u) > 1 ? K.only(null) : G(u) ? u.props.children : null : d);
1347
- return /* @__PURE__ */ p(t, { ...c, ref: o, children: G(u) ? ge(u, void 0, l) : null });
1333
+ function Bn(e) {
1334
+ const t = /* @__PURE__ */ ei(e), n = P((r, o) => {
1335
+ const { children: i, ...a } = r, s = U.toArray(i), u = s.find(ni);
1336
+ if (u) {
1337
+ const c = u.props.children, l = s.map((f) => f === u ? U.count(c) > 1 ? U.only(null) : H(c) ? c.props.children : null : f);
1338
+ return /* @__PURE__ */ v(t, { ...a, ref: o, children: H(c) ? pe(c, void 0, l) : null });
1348
1339
  }
1349
- return /* @__PURE__ */ p(t, { ...c, ref: o, children: i });
1340
+ return /* @__PURE__ */ v(t, { ...a, ref: o, children: i });
1350
1341
  });
1351
1342
  return n.displayName = `${e}.Slot`, n;
1352
1343
  }
1353
1344
  // @__NO_SIDE_EFFECTS__
1354
- function Wi(e) {
1345
+ function ei(e) {
1355
1346
  const t = P((n, r) => {
1356
1347
  const { children: o, ...i } = n;
1357
- if (G(o)) {
1358
- const c = Vi(o), s = Zi(i, o.props);
1359
- return o.type !== F && (s.ref = r ? or(r, c) : c), ge(o, s);
1348
+ if (H(o)) {
1349
+ const a = oi(o), s = ri(i, o.props);
1350
+ return o.type !== x && (s.ref = r ? Un(r, a) : a), pe(o, s);
1360
1351
  }
1361
- return K.count(o) > 1 ? K.only(null) : null;
1352
+ return U.count(o) > 1 ? U.only(null) : null;
1362
1353
  });
1363
1354
  return t.displayName = `${e}.SlotClone`, t;
1364
1355
  }
1365
- var Bi = /* @__PURE__ */ Symbol("radix.slottable");
1366
- function Hi(e) {
1367
- return G(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Bi;
1356
+ var ti = /* @__PURE__ */ Symbol("radix.slottable");
1357
+ function ni(e) {
1358
+ return H(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ti;
1368
1359
  }
1369
- function Zi(e, t) {
1360
+ function ri(e, t) {
1370
1361
  const n = { ...t };
1371
1362
  for (const r in t) {
1372
1363
  const o = e[r], i = t[r];
1373
1364
  /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
1374
- const a = i(...s);
1375
- return o(...s), a;
1365
+ const u = i(...s);
1366
+ return o(...s), u;
1376
1367
  } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
1377
1368
  }
1378
1369
  return { ...e, ...n };
1379
1370
  }
1380
- function Vi(e) {
1371
+ function oi(e) {
1381
1372
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
1382
1373
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
1383
1374
  }
1384
- function Ki(e) {
1385
- const t = e + "CollectionProvider", [n, r] = ke(t), [o, i] = n(
1386
- t,
1387
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
1388
- ), c = (f) => {
1389
- const { scope: v, children: h } = f, y = I.useRef(null), b = I.useRef(/* @__PURE__ */ new Map()).current;
1390
- return /* @__PURE__ */ p(o, { scope: v, itemMap: b, collectionRef: y, children: h });
1391
- };
1392
- c.displayName = t;
1393
- const s = e + "CollectionSlot", a = /* @__PURE__ */ Ge(s), u = I.forwardRef(
1394
- (f, v) => {
1395
- const { scope: h, children: y } = f, b = i(s, h), C = L(v, b.collectionRef);
1396
- return /* @__PURE__ */ p(a, { ref: C, children: y });
1397
- }
1398
- );
1399
- u.displayName = s;
1400
- const l = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Ge(l), m = I.forwardRef(
1401
- (f, v) => {
1402
- const { scope: h, children: y, ...b } = f, C = I.useRef(null), O = L(v, C), k = i(l, h);
1403
- return I.useEffect(() => (k.itemMap.set(C, { ref: C, ...b }), () => {
1404
- k.itemMap.delete(C);
1405
- })), /* @__PURE__ */ p(_, { [d]: "", ref: O, children: y });
1406
- }
1407
- );
1408
- m.displayName = l;
1409
- function g(f) {
1410
- const v = i(e + "CollectionConsumer", f);
1411
- return I.useCallback(() => {
1412
- const y = v.collectionRef.current;
1413
- if (!y) return [];
1414
- const b = Array.from(y.querySelectorAll(`[${d}]`));
1415
- return Array.from(v.itemMap.values()).sort(
1416
- (k, S) => b.indexOf(k.ref.current) - b.indexOf(S.ref.current)
1417
- );
1418
- }, [v.collectionRef, v.itemMap]);
1419
- }
1420
- return [
1421
- { Provider: c, Slot: u, ItemSlot: m },
1422
- g,
1423
- r
1424
- ];
1425
- }
1426
- function W(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1375
+ function B(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1427
1376
  return function(o) {
1428
1377
  if (e?.(o), n === !1 || !o.defaultPrevented)
1429
1378
  return t?.(o);
1430
1379
  };
1431
1380
  }
1432
- var me = globalThis?.document ? te : () => {
1433
- }, qi = Gn[" useInsertionEffect ".trim().toString()] || me;
1434
- function De({
1381
+ var Ce = globalThis?.document ? G : () => {
1382
+ }, ii = kn[" useInsertionEffect ".trim().toString()] || Ce;
1383
+ function Zn({
1435
1384
  prop: e,
1436
1385
  defaultProp: t,
1437
1386
  onChange: n = () => {
1438
1387
  },
1439
1388
  caller: r
1440
1389
  }) {
1441
- const [o, i, c] = Gi({
1390
+ const [o, i, a] = si({
1442
1391
  defaultProp: t,
1443
1392
  onChange: n
1444
- }), s = e !== void 0, a = s ? e : o;
1393
+ }), s = e !== void 0, u = s ? e : o;
1445
1394
  {
1446
1395
  const l = w(e !== void 0);
1447
1396
  E(() => {
1448
- const d = l.current;
1449
- d !== s && console.warn(
1450
- `${r} is changing from ${d ? "controlled" : "uncontrolled"} to ${s ? "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.`
1397
+ const f = l.current;
1398
+ f !== s && console.warn(
1399
+ `${r} is changing from ${f ? "controlled" : "uncontrolled"} to ${s ? "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.`
1451
1400
  ), l.current = s;
1452
1401
  }, [s, r]);
1453
1402
  }
1454
- const u = M(
1403
+ const c = k(
1455
1404
  (l) => {
1456
1405
  if (s) {
1457
- const d = Yi(l) ? l(e) : l;
1458
- d !== e && c.current?.(d);
1406
+ const f = ai(l) ? l(e) : l;
1407
+ f !== e && a.current?.(f);
1459
1408
  } else
1460
1409
  i(l);
1461
1410
  },
1462
- [s, e, i, c]
1411
+ [s, e, i, a]
1463
1412
  );
1464
- return [a, u];
1413
+ return [u, c];
1465
1414
  }
1466
- function Gi({
1415
+ function si({
1467
1416
  defaultProp: e,
1468
1417
  onChange: t
1469
1418
  }) {
1470
- const [n, r] = R(e), o = w(n), i = w(t);
1471
- return qi(() => {
1419
+ const [n, r] = A(e), o = w(n), i = w(t);
1420
+ return ii(() => {
1472
1421
  i.current = t;
1473
1422
  }, [t]), E(() => {
1474
1423
  o.current !== n && (i.current?.(n), o.current = n);
1475
1424
  }, [n, o]), [n, r, i];
1476
1425
  }
1477
- function Yi(e) {
1426
+ function ai(e) {
1478
1427
  return typeof e == "function";
1479
1428
  }
1480
- var Xi = [
1429
+ var ci = [
1481
1430
  "a",
1482
1431
  "button",
1483
1432
  "div",
@@ -1495,26 +1444,26 @@ var Xi = [
1495
1444
  "span",
1496
1445
  "svg",
1497
1446
  "ul"
1498
- ], $ = Xi.reduce((e, t) => {
1499
- const n = /* @__PURE__ */ Ge(`Primitive.${t}`), r = P((o, i) => {
1500
- const { asChild: c, ...s } = o, a = c ? n : t;
1501
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(a, { ...s, ref: i });
1447
+ ], $ = ci.reduce((e, t) => {
1448
+ const n = /* @__PURE__ */ Bn(`Primitive.${t}`), r = P((o, i) => {
1449
+ const { asChild: a, ...s } = o, u = a ? n : t;
1450
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ v(u, { ...s, ref: i });
1502
1451
  });
1503
1452
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
1504
1453
  }, {});
1505
- function Ji(e, t) {
1506
- e && kt(() => e.dispatchEvent(t));
1454
+ function ui(e, t) {
1455
+ e && yt(() => e.dispatchEvent(t));
1507
1456
  }
1508
- function Qi(e, t) {
1509
- return Te((n, r) => t[n][r] ?? n, e);
1457
+ function li(e, t) {
1458
+ return Oe((n, r) => t[n][r] ?? n, e);
1510
1459
  }
1511
- var Qe = (e) => {
1512
- const { present: t, children: n } = e, r = es(t), o = typeof n == "function" ? n({ present: r.isPresent }) : K.only(n), i = L(r.ref, ts(o));
1513
- return typeof n == "function" || r.isPresent ? ge(o, { ref: i }) : null;
1460
+ var Ze = (e) => {
1461
+ const { present: t, children: n } = e, r = fi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : U.only(n), i = J(r.ref, di(o));
1462
+ return typeof n == "function" || r.isPresent ? pe(o, { ref: i }) : null;
1514
1463
  };
1515
- Qe.displayName = "Presence";
1516
- function es(e) {
1517
- const [t, n] = R(), r = w(null), o = w(e), i = w("none"), c = e ? "mounted" : "unmounted", [s, a] = Qi(c, {
1464
+ Ze.displayName = "Presence";
1465
+ function fi(e) {
1466
+ const [t, n] = A(), r = w(null), o = w(e), i = w("none"), a = e ? "mounted" : "unmounted", [s, u] = li(a, {
1518
1467
  mounted: {
1519
1468
  UNMOUNT: "unmounted",
1520
1469
  ANIMATION_OUT: "unmountSuspended"
@@ -1528,82 +1477,82 @@ function es(e) {
1528
1477
  }
1529
1478
  });
1530
1479
  return E(() => {
1531
- const u = $e(r.current);
1532
- i.current = s === "mounted" ? u : "none";
1533
- }, [s]), me(() => {
1534
- const u = r.current, l = o.current;
1480
+ const c = Ae(r.current);
1481
+ i.current = s === "mounted" ? c : "none";
1482
+ }, [s]), Ce(() => {
1483
+ const c = r.current, l = o.current;
1535
1484
  if (l !== e) {
1536
- const _ = i.current, m = $e(u);
1537
- e ? a("MOUNT") : m === "none" || u?.display === "none" ? a("UNMOUNT") : a(l && _ !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
1485
+ const p = i.current, h = Ae(c);
1486
+ e ? u("MOUNT") : h === "none" || c?.display === "none" ? u("UNMOUNT") : u(l && p !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
1538
1487
  }
1539
- }, [e, a]), me(() => {
1488
+ }, [e, u]), Ce(() => {
1540
1489
  if (t) {
1541
- let u;
1542
- const l = t.ownerDocument.defaultView ?? window, d = (m) => {
1543
- const f = $e(r.current).includes(CSS.escape(m.animationName));
1544
- if (m.target === t && f && (a("ANIMATION_END"), !o.current)) {
1545
- const v = t.style.animationFillMode;
1546
- t.style.animationFillMode = "forwards", u = l.setTimeout(() => {
1547
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
1490
+ let c;
1491
+ const l = t.ownerDocument.defaultView ?? window, f = (h) => {
1492
+ const d = Ae(r.current).includes(CSS.escape(h.animationName));
1493
+ if (h.target === t && d && (u("ANIMATION_END"), !o.current)) {
1494
+ const _ = t.style.animationFillMode;
1495
+ t.style.animationFillMode = "forwards", c = l.setTimeout(() => {
1496
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = _);
1548
1497
  });
1549
1498
  }
1550
- }, _ = (m) => {
1551
- m.target === t && (i.current = $e(r.current));
1499
+ }, p = (h) => {
1500
+ h.target === t && (i.current = Ae(r.current));
1552
1501
  };
1553
- return t.addEventListener("animationstart", _), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
1554
- l.clearTimeout(u), t.removeEventListener("animationstart", _), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
1502
+ return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
1503
+ l.clearTimeout(c), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
1555
1504
  };
1556
1505
  } else
1557
- a("ANIMATION_END");
1558
- }, [t, a]), {
1506
+ u("ANIMATION_END");
1507
+ }, [t, u]), {
1559
1508
  isPresent: ["mounted", "unmountSuspended"].includes(s),
1560
- ref: M((u) => {
1561
- r.current = u ? getComputedStyle(u) : null, n(u);
1509
+ ref: k((c) => {
1510
+ r.current = c ? getComputedStyle(c) : null, n(c);
1562
1511
  }, [])
1563
1512
  };
1564
1513
  }
1565
- function $e(e) {
1514
+ function Ae(e) {
1566
1515
  return e?.animationName || "none";
1567
1516
  }
1568
- function ts(e) {
1517
+ function di(e) {
1569
1518
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
1570
1519
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
1571
1520
  }
1572
- var ns = Gn[" useId ".trim().toString()] || (() => {
1573
- }), rs = 0;
1574
- function Oe(e) {
1575
- const [t, n] = R(ns());
1576
- return me(() => {
1577
- n((r) => r ?? String(rs++));
1521
+ var pi = kn[" useId ".trim().toString()] || (() => {
1522
+ }), _i = 0;
1523
+ function xe(e) {
1524
+ const [t, n] = A(pi());
1525
+ return Ce(() => {
1526
+ n((r) => r ?? String(_i++));
1578
1527
  }, [e]), e || (t ? `radix-${t}` : "");
1579
1528
  }
1580
- var et = "Collapsible", [os, ir] = ke(et), [is, xt] = os(et), sr = P(
1529
+ var He = "Collapsible", [vi] = Wn(He), [hi, wt] = vi(He), Hn = P(
1581
1530
  (e, t) => {
1582
1531
  const {
1583
1532
  __scopeCollapsible: n,
1584
1533
  open: r,
1585
1534
  defaultOpen: o,
1586
1535
  disabled: i,
1587
- onOpenChange: c,
1536
+ onOpenChange: a,
1588
1537
  ...s
1589
- } = e, [a, u] = De({
1538
+ } = e, [u, c] = Zn({
1590
1539
  prop: r,
1591
1540
  defaultProp: o ?? !1,
1592
- onChange: c,
1593
- caller: et
1541
+ onChange: a,
1542
+ caller: He
1594
1543
  });
1595
- return /* @__PURE__ */ p(
1596
- is,
1544
+ return /* @__PURE__ */ v(
1545
+ hi,
1597
1546
  {
1598
1547
  scope: n,
1599
1548
  disabled: i,
1600
- contentId: Oe(),
1601
- open: a,
1602
- onOpenToggle: M(() => u((l) => !l), [u]),
1603
- children: /* @__PURE__ */ p(
1549
+ contentId: xe(),
1550
+ open: u,
1551
+ onOpenToggle: k(() => c((l) => !l), [c]),
1552
+ children: /* @__PURE__ */ v(
1604
1553
  $.div,
1605
1554
  {
1606
- "data-state": zt(a),
1555
+ "data-state": St(u),
1607
1556
  "data-disabled": i ? "" : void 0,
1608
1557
  ...s,
1609
1558
  ref: t
@@ -1613,298 +1562,82 @@ var et = "Collapsible", [os, ir] = ke(et), [is, xt] = os(et), sr = P(
1613
1562
  );
1614
1563
  }
1615
1564
  );
1616
- sr.displayName = et;
1617
- var cr = "CollapsibleTrigger", ar = P(
1565
+ Hn.displayName = He;
1566
+ var Vn = "CollapsibleTrigger", Kn = P(
1618
1567
  (e, t) => {
1619
- const { __scopeCollapsible: n, ...r } = e, o = xt(cr, n);
1620
- return /* @__PURE__ */ p(
1568
+ const { __scopeCollapsible: n, ...r } = e, o = wt(Vn, n);
1569
+ return /* @__PURE__ */ v(
1621
1570
  $.button,
1622
1571
  {
1623
1572
  type: "button",
1624
1573
  "aria-controls": o.contentId,
1625
1574
  "aria-expanded": o.open || !1,
1626
- "data-state": zt(o.open),
1575
+ "data-state": St(o.open),
1627
1576
  "data-disabled": o.disabled ? "" : void 0,
1628
1577
  disabled: o.disabled,
1629
1578
  ...r,
1630
1579
  ref: t,
1631
- onClick: W(e.onClick, o.onOpenToggle)
1580
+ onClick: B(e.onClick, o.onOpenToggle)
1632
1581
  }
1633
1582
  );
1634
1583
  }
1635
1584
  );
1636
- ar.displayName = cr;
1637
- var Mt = "CollapsibleContent", ur = P(
1585
+ Kn.displayName = Vn;
1586
+ var Et = "CollapsibleContent", mi = P(
1638
1587
  (e, t) => {
1639
- const { forceMount: n, ...r } = e, o = xt(Mt, e.__scopeCollapsible);
1640
- return /* @__PURE__ */ p(Qe, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ p(ss, { ...r, ref: t, present: i }) });
1588
+ const { forceMount: n, ...r } = e, o = wt(Et, e.__scopeCollapsible);
1589
+ return /* @__PURE__ */ v(Ze, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ v(gi, { ...r, ref: t, present: i }) });
1641
1590
  }
1642
1591
  );
1643
- ur.displayName = Mt;
1644
- var ss = P((e, t) => {
1645
- const { __scopeCollapsible: n, present: r, children: o, ...i } = e, c = xt(Mt, n), [s, a] = R(r), u = w(null), l = L(t, u), d = w(0), _ = d.current, m = w(0), g = m.current, f = c.open || s, v = w(f), h = w(void 0);
1592
+ mi.displayName = Et;
1593
+ var gi = P((e, t) => {
1594
+ const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a = wt(Et, n), [s, u] = A(r), c = w(null), l = J(t, c), f = w(0), p = f.current, h = w(0), g = h.current, d = a.open || s, _ = w(d), m = w(void 0);
1646
1595
  return E(() => {
1647
- const y = requestAnimationFrame(() => v.current = !1);
1596
+ const y = requestAnimationFrame(() => _.current = !1);
1648
1597
  return () => cancelAnimationFrame(y);
1649
- }, []), me(() => {
1650
- const y = u.current;
1598
+ }, []), Ce(() => {
1599
+ const y = c.current;
1651
1600
  if (y) {
1652
- h.current = h.current || {
1601
+ m.current = m.current || {
1653
1602
  transitionDuration: y.style.transitionDuration,
1654
1603
  animationName: y.style.animationName
1655
1604
  }, y.style.transitionDuration = "0s", y.style.animationName = "none";
1656
1605
  const b = y.getBoundingClientRect();
1657
- d.current = b.height, m.current = b.width, v.current || (y.style.transitionDuration = h.current.transitionDuration, y.style.animationName = h.current.animationName), a(r);
1606
+ f.current = b.height, h.current = b.width, _.current || (y.style.transitionDuration = m.current.transitionDuration, y.style.animationName = m.current.animationName), u(r);
1658
1607
  }
1659
- }, [c.open, r]), /* @__PURE__ */ p(
1608
+ }, [a.open, r]), /* @__PURE__ */ v(
1660
1609
  $.div,
1661
1610
  {
1662
- "data-state": zt(c.open),
1663
- "data-disabled": c.disabled ? "" : void 0,
1664
- id: c.contentId,
1665
- hidden: !f,
1611
+ "data-state": St(a.open),
1612
+ "data-disabled": a.disabled ? "" : void 0,
1613
+ id: a.contentId,
1614
+ hidden: !d,
1666
1615
  ...i,
1667
1616
  ref: l,
1668
1617
  style: {
1669
- "--radix-collapsible-content-height": _ ? `${_}px` : void 0,
1618
+ "--radix-collapsible-content-height": p ? `${p}px` : void 0,
1670
1619
  "--radix-collapsible-content-width": g ? `${g}px` : void 0,
1671
1620
  ...e.style
1672
1621
  },
1673
- children: f && o
1622
+ children: d && o
1674
1623
  }
1675
1624
  );
1676
1625
  });
1677
- function zt(e) {
1678
- return e ? "open" : "closed";
1679
- }
1680
- var lr = sr, dr = ar, fr = ur, cs = ee(void 0);
1681
- function as(e) {
1682
- const t = Y(cs);
1683
- return e || t || "ltr";
1684
- }
1685
- var B = "Accordion", us = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [$t, ls, ds] = Ki(B), [tt] = ke(B, [
1686
- ds,
1687
- ir
1688
- ]), Lt = ir(), pr = I.forwardRef(
1689
- (e, t) => {
1690
- const { type: n, ...r } = e, o = r, i = r;
1691
- return /* @__PURE__ */ p($t.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ p(vs, { ...i, ref: t }) : /* @__PURE__ */ p(_s, { ...o, ref: t }) });
1692
- }
1693
- );
1694
- pr.displayName = B;
1695
- var [_r, fs] = tt(B), [vr, ps] = tt(
1696
- B,
1697
- { collapsible: !1 }
1698
- ), _s = I.forwardRef(
1699
- (e, t) => {
1700
- const {
1701
- value: n,
1702
- defaultValue: r,
1703
- onValueChange: o = () => {
1704
- },
1705
- collapsible: i = !1,
1706
- ...c
1707
- } = e, [s, a] = De({
1708
- prop: n,
1709
- defaultProp: r ?? "",
1710
- onChange: o,
1711
- caller: B
1712
- });
1713
- return /* @__PURE__ */ p(
1714
- _r,
1715
- {
1716
- scope: e.__scopeAccordion,
1717
- value: I.useMemo(() => s ? [s] : [], [s]),
1718
- onItemOpen: a,
1719
- onItemClose: I.useCallback(() => i && a(""), [i, a]),
1720
- children: /* @__PURE__ */ p(vr, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ p(hr, { ...c, ref: t }) })
1721
- }
1722
- );
1723
- }
1724
- ), vs = I.forwardRef((e, t) => {
1725
- const {
1726
- value: n,
1727
- defaultValue: r,
1728
- onValueChange: o = () => {
1729
- },
1730
- ...i
1731
- } = e, [c, s] = De({
1732
- prop: n,
1733
- defaultProp: r ?? [],
1734
- onChange: o,
1735
- caller: B
1736
- }), a = I.useCallback(
1737
- (l) => s((d = []) => [...d, l]),
1738
- [s]
1739
- ), u = I.useCallback(
1740
- (l) => s((d = []) => d.filter((_) => _ !== l)),
1741
- [s]
1742
- );
1743
- return /* @__PURE__ */ p(
1744
- _r,
1745
- {
1746
- scope: e.__scopeAccordion,
1747
- value: c,
1748
- onItemOpen: a,
1749
- onItemClose: u,
1750
- children: /* @__PURE__ */ p(vr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ p(hr, { ...i, ref: t }) })
1751
- }
1752
- );
1753
- }), [hs, nt] = tt(B), hr = I.forwardRef(
1754
- (e, t) => {
1755
- const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...c } = e, s = I.useRef(null), a = L(s, t), u = ls(n), d = as(o) === "ltr", _ = W(e.onKeyDown, (m) => {
1756
- if (!us.includes(m.key)) return;
1757
- const g = m.target, f = u().filter((U) => !U.ref.current?.disabled), v = f.findIndex((U) => U.ref.current === g), h = f.length;
1758
- if (v === -1) return;
1759
- m.preventDefault();
1760
- let y = v;
1761
- const b = 0, C = h - 1, O = () => {
1762
- y = v + 1, y > C && (y = b);
1763
- }, k = () => {
1764
- y = v - 1, y < b && (y = C);
1765
- };
1766
- switch (m.key) {
1767
- case "Home":
1768
- y = b;
1769
- break;
1770
- case "End":
1771
- y = C;
1772
- break;
1773
- case "ArrowRight":
1774
- i === "horizontal" && (d ? O() : k());
1775
- break;
1776
- case "ArrowDown":
1777
- i === "vertical" && O();
1778
- break;
1779
- case "ArrowLeft":
1780
- i === "horizontal" && (d ? k() : O());
1781
- break;
1782
- case "ArrowUp":
1783
- i === "vertical" && k();
1784
- break;
1785
- }
1786
- const S = y % h;
1787
- f[S].ref.current?.focus();
1788
- });
1789
- return /* @__PURE__ */ p(
1790
- hs,
1791
- {
1792
- scope: n,
1793
- disabled: r,
1794
- direction: o,
1795
- orientation: i,
1796
- children: /* @__PURE__ */ p($t.Slot, { scope: n, children: /* @__PURE__ */ p(
1797
- $.div,
1798
- {
1799
- ...c,
1800
- "data-orientation": i,
1801
- ref: a,
1802
- onKeyDown: r ? void 0 : _
1803
- }
1804
- ) })
1805
- }
1806
- );
1807
- }
1808
- ), Ye = "AccordionItem", [ms, Ft] = tt(Ye), mr = I.forwardRef(
1809
- (e, t) => {
1810
- const { __scopeAccordion: n, value: r, ...o } = e, i = nt(Ye, n), c = fs(Ye, n), s = Lt(n), a = Oe(), u = r && c.value.includes(r) || !1, l = i.disabled || e.disabled;
1811
- return /* @__PURE__ */ p(
1812
- ms,
1813
- {
1814
- scope: n,
1815
- open: u,
1816
- disabled: l,
1817
- triggerId: a,
1818
- children: /* @__PURE__ */ p(
1819
- lr,
1820
- {
1821
- "data-orientation": i.orientation,
1822
- "data-state": wr(u),
1823
- ...s,
1824
- ...o,
1825
- ref: t,
1826
- disabled: l,
1827
- open: u,
1828
- onOpenChange: (d) => {
1829
- d ? c.onItemOpen(r) : c.onItemClose(r);
1830
- }
1831
- }
1832
- )
1833
- }
1834
- );
1835
- }
1836
- );
1837
- mr.displayName = Ye;
1838
- var gr = "AccordionHeader", gs = I.forwardRef(
1839
- (e, t) => {
1840
- const { __scopeAccordion: n, ...r } = e, o = nt(B, n), i = Ft(gr, n);
1841
- return /* @__PURE__ */ p(
1842
- $.h3,
1843
- {
1844
- "data-orientation": o.orientation,
1845
- "data-state": wr(i.open),
1846
- "data-disabled": i.disabled ? "" : void 0,
1847
- ...r,
1848
- ref: t
1849
- }
1850
- );
1851
- }
1852
- );
1853
- gs.displayName = gr;
1854
- var yt = "AccordionTrigger", yr = I.forwardRef(
1855
- (e, t) => {
1856
- const { __scopeAccordion: n, ...r } = e, o = nt(B, n), i = Ft(yt, n), c = ps(yt, n), s = Lt(n);
1857
- return /* @__PURE__ */ p($t.ItemSlot, { scope: n, children: /* @__PURE__ */ p(
1858
- dr,
1859
- {
1860
- "aria-disabled": i.open && !c.collapsible || void 0,
1861
- "data-orientation": o.orientation,
1862
- id: i.triggerId,
1863
- ...s,
1864
- ...r,
1865
- ref: t
1866
- }
1867
- ) });
1868
- }
1869
- );
1870
- yr.displayName = yt;
1871
- var br = "AccordionContent", Cr = I.forwardRef(
1872
- (e, t) => {
1873
- const { __scopeAccordion: n, ...r } = e, o = nt(B, n), i = Ft(br, n), c = Lt(n);
1874
- return /* @__PURE__ */ p(
1875
- fr,
1876
- {
1877
- role: "region",
1878
- "aria-labelledby": i.triggerId,
1879
- "data-orientation": o.orientation,
1880
- ...c,
1881
- ...r,
1882
- ref: t,
1883
- style: {
1884
- "--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
1885
- "--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
1886
- ...e.style
1887
- }
1888
- }
1889
- );
1890
- }
1891
- );
1892
- Cr.displayName = br;
1893
- function wr(e) {
1626
+ function St(e) {
1894
1627
  return e ? "open" : "closed";
1895
1628
  }
1896
- var ys = pr, bs = mr, fn = yr, Cs = Cr;
1897
- const Sr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
1898
- const ws = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1899
- const Ss = (e) => e.replace(
1629
+ var yi = Hn, bi = Kn;
1630
+ const qn = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
1631
+ const wi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1632
+ const Ei = (e) => e.replace(
1900
1633
  /^([A-Z])|[\s-_]+(\w)/g,
1901
1634
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
1902
1635
  );
1903
- const pn = (e) => {
1904
- const t = Ss(e);
1636
+ const Gt = (e) => {
1637
+ const t = Ei(e);
1905
1638
  return t.charAt(0).toUpperCase() + t.slice(1);
1906
1639
  };
1907
- var Es = {
1640
+ var Si = {
1908
1641
  xmlns: "http://www.w3.org/2000/svg",
1909
1642
  width: 24,
1910
1643
  height: 24,
@@ -1915,13 +1648,13 @@ var Es = {
1915
1648
  strokeLinecap: "round",
1916
1649
  strokeLinejoin: "round"
1917
1650
  };
1918
- const Ps = (e) => {
1651
+ const Ci = (e) => {
1919
1652
  for (const t in e)
1920
1653
  if (t.startsWith("aria-") || t === "role" || t === "title")
1921
1654
  return !0;
1922
1655
  return !1;
1923
1656
  };
1924
- const Ns = P(
1657
+ const Pi = P(
1925
1658
  ({
1926
1659
  color: e = "currentColor",
1927
1660
  size: t = 24,
@@ -1929,360 +1662,149 @@ const Ns = P(
1929
1662
  absoluteStrokeWidth: r,
1930
1663
  className: o = "",
1931
1664
  children: i,
1932
- iconNode: c,
1665
+ iconNode: a,
1933
1666
  ...s
1934
- }, a) => T(
1667
+ }, u) => D(
1935
1668
  "svg",
1936
1669
  {
1937
- ref: a,
1938
- ...Es,
1670
+ ref: u,
1671
+ ...Si,
1939
1672
  width: t,
1940
1673
  height: t,
1941
1674
  stroke: e,
1942
1675
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
1943
- className: Sr("lucide", o),
1944
- ...!i && !Ps(s) && { "aria-hidden": "true" },
1676
+ className: qn("lucide", o),
1677
+ ...!i && !Ci(s) && { "aria-hidden": "true" },
1945
1678
  ...s
1946
1679
  },
1947
1680
  [
1948
- ...c.map(([u, l]) => T(u, l)),
1681
+ ...a.map(([c, l]) => D(c, l)),
1949
1682
  ...Array.isArray(i) ? i : [i]
1950
1683
  ]
1951
1684
  )
1952
1685
  );
1953
- const Er = (e, t) => {
1686
+ const Oi = (e, t) => {
1954
1687
  const n = P(
1955
- ({ className: r, ...o }, i) => T(Ns, {
1688
+ ({ className: r, ...o }, i) => D(Pi, {
1956
1689
  ref: i,
1957
1690
  iconNode: t,
1958
- className: Sr(
1959
- `lucide-${ws(pn(e))}`,
1691
+ className: qn(
1692
+ `lucide-${wi(Gt(e))}`,
1960
1693
  `lucide-${e}`,
1961
1694
  r
1962
1695
  ),
1963
1696
  ...o
1964
1697
  })
1965
1698
  );
1966
- return n.displayName = pn(e), n;
1699
+ return n.displayName = Gt(e), n;
1967
1700
  };
1968
- const Os = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], As = Er("chevron-down", Os);
1969
- const Rs = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Is = Er("chevron-up", Rs);
1970
- function Ts(e) {
1971
- const t = w({ value: e, previous: e });
1972
- return D(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
1973
- }
1974
- function ks(e) {
1975
- const [t, n] = R(void 0);
1976
- return me(() => {
1977
- if (e) {
1978
- n({ width: e.offsetWidth, height: e.offsetHeight });
1979
- const r = new ResizeObserver((o) => {
1980
- if (!Array.isArray(o) || !o.length)
1981
- return;
1982
- const i = o[0];
1983
- let c, s;
1984
- if ("borderBoxSize" in i) {
1985
- const a = i.borderBoxSize, u = Array.isArray(a) ? a[0] : a;
1986
- c = u.inlineSize, s = u.blockSize;
1987
- } else
1988
- c = e.offsetWidth, s = e.offsetHeight;
1989
- n({ width: c, height: s });
1990
- });
1991
- return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
1992
- } else
1993
- n(void 0);
1994
- }, [e]), t;
1995
- }
1996
- var rt = "Switch", [Ds] = ke(rt), [xs, Ms] = Ds(rt), Pr = P(
1997
- (e, t) => {
1998
- const {
1999
- __scopeSwitch: n,
2000
- name: r,
2001
- checked: o,
2002
- defaultChecked: i,
2003
- required: c,
2004
- disabled: s,
2005
- value: a = "on",
2006
- onCheckedChange: u,
2007
- form: l,
2008
- ...d
2009
- } = e, [_, m] = R(null), g = L(t, (b) => m(b)), f = w(!1), v = _ ? l || !!_.closest("form") : !0, [h, y] = De({
2010
- prop: o,
2011
- defaultProp: i ?? !1,
2012
- onChange: u,
2013
- caller: rt
2014
- });
2015
- return /* @__PURE__ */ p(xs, { scope: n, checked: h, disabled: s, children: [
2016
- /* @__PURE__ */ p(
2017
- $.button,
2018
- {
2019
- type: "button",
2020
- role: "switch",
2021
- "aria-checked": h,
2022
- "aria-required": c,
2023
- "data-state": Rr(h),
2024
- "data-disabled": s ? "" : void 0,
2025
- disabled: s,
2026
- value: a,
2027
- ...d,
2028
- ref: g,
2029
- onClick: W(e.onClick, (b) => {
2030
- y((C) => !C), v && (f.current = b.isPropagationStopped(), f.current || b.stopPropagation());
2031
- })
2032
- }
2033
- ),
2034
- v && /* @__PURE__ */ p(
2035
- Ar,
2036
- {
2037
- control: _,
2038
- bubbles: !f.current,
2039
- name: r,
2040
- value: a,
2041
- checked: h,
2042
- required: c,
2043
- disabled: s,
2044
- form: l,
2045
- style: { transform: "translateX(-100%)" }
2046
- }
2047
- )
2048
- ] });
2049
- }
2050
- );
2051
- Pr.displayName = rt;
2052
- var Nr = "SwitchThumb", Or = P(
2053
- (e, t) => {
2054
- const { __scopeSwitch: n, ...r } = e, o = Ms(Nr, n);
2055
- return /* @__PURE__ */ p(
2056
- $.span,
2057
- {
2058
- "data-state": Rr(o.checked),
2059
- "data-disabled": o.disabled ? "" : void 0,
2060
- ...r,
2061
- ref: t
2062
- }
2063
- );
2064
- }
2065
- );
2066
- Or.displayName = Nr;
2067
- var zs = "SwitchBubbleInput", Ar = P(
2068
- ({
2069
- __scopeSwitch: e,
2070
- control: t,
2071
- checked: n,
2072
- bubbles: r = !0,
2073
- ...o
2074
- }, i) => {
2075
- const c = w(null), s = L(c, i), a = Ts(n), u = ks(t);
2076
- return E(() => {
2077
- const l = c.current;
2078
- if (!l) return;
2079
- const d = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(
2080
- d,
2081
- "checked"
2082
- ).set;
2083
- if (a !== n && m) {
2084
- const g = new Event("click", { bubbles: r });
2085
- m.call(l, n), l.dispatchEvent(g);
2086
- }
2087
- }, [a, n, r]), /* @__PURE__ */ p(
2088
- "input",
2089
- {
2090
- type: "checkbox",
2091
- "aria-hidden": !0,
2092
- defaultChecked: n,
2093
- ...o,
2094
- tabIndex: -1,
2095
- ref: s,
2096
- style: {
2097
- ...o.style,
2098
- ...u,
2099
- position: "absolute",
2100
- pointerEvents: "none",
2101
- opacity: 0,
2102
- margin: 0
2103
- }
2104
- }
2105
- );
2106
- }
2107
- );
2108
- Ar.displayName = zs;
2109
- function Rr(e) {
2110
- return e ? "checked" : "unchecked";
2111
- }
2112
- var $s = Pr, Ls = Or;
2113
- const Fs = "_root_dibqz_1", Us = "_thumb_dibqz_38", Le = {
2114
- root: Fs,
2115
- switch: "_switch_dibqz_8",
2116
- thumb: Us
2117
- }, js = ({ label: e, id: t, ...n }) => /* @__PURE__ */ p("div", { className: Le.root, children: [
2118
- e && /* @__PURE__ */ p(ie, { className: Le.label, as: "label", htmlFor: t, children: e }),
2119
- /* @__PURE__ */ p($s, { className: Le.switch, ...n, children: /* @__PURE__ */ p(Ls, { className: Le.thumb }) })
2120
- ] }), Ws = /* @__PURE__ */ xi(/* @__PURE__ */ oe(), /* @__PURE__ */ Re()), Ir = ee(null), Bs = ({
1701
+ const Ni = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Di = Oi("chevron-up", Ni), Ti = /* @__PURE__ */ Vo(/* @__PURE__ */ ee(), /* @__PURE__ */ Se()), Gn = ne(null), Ai = ({
2121
1702
  children: e,
2122
1703
  items: t,
2123
1704
  localStorageKey: n
2124
1705
  }) => {
2125
1706
  function r(g) {
2126
- const f = localStorage.getItem(g);
2127
- if (!f) return null;
2128
- const { success: v, data: h } = Ws.safeParse(
2129
- JSON.parse(f)
1707
+ const d = localStorage.getItem(g);
1708
+ if (!d) return null;
1709
+ const { success: _, data: m } = Ti.safeParse(
1710
+ JSON.parse(d)
2130
1711
  );
2131
- return v ? h : null;
1712
+ return _ ? m : null;
2132
1713
  }
2133
- const o = D(
1714
+ const o = z(
2134
1715
  () => Object.fromEntries(
2135
1716
  t.map((g) => [g.value, g.defaultSelected ?? !1])
2136
1717
  ),
2137
1718
  [t]
2138
- ), [i, c] = R(
1719
+ ), [i, a] = A(
2139
1720
  r(n) ?? o
2140
- ), [s, a] = R(
1721
+ ), [s, u] = A(
2141
1722
  r(n)
2142
1723
  );
2143
- function u(g, f) {
2144
- const v = i ? { ...i, [g]: f } : { [g]: f };
2145
- c(v);
1724
+ function c(g, d) {
1725
+ const _ = i ? { ...i, [g]: d } : { [g]: d };
1726
+ a(_);
2146
1727
  }
2147
1728
  E(() => {
2148
1729
  let g = [];
2149
- s !== null && (g = Object.entries(s).filter(([v, h]) => h).map(([v]) => v));
2150
- const f = t.filter(
2151
- (v) => g.includes(v.value)
1730
+ s !== null && (g = Object.entries(s).filter(([_, m]) => m).map(([_]) => _));
1731
+ const d = t.filter(
1732
+ (_) => g.includes(_.value)
2152
1733
  );
2153
- for (const v of t) {
2154
- const h = document.head.querySelector(`#${v.value}`);
2155
- h && h.remove();
1734
+ for (const _ of t) {
1735
+ const m = document.head.querySelector(`#${_.value}`);
1736
+ m && m.remove();
2156
1737
  }
2157
- for (const v of f) {
2158
- const h = document.createElement("script");
2159
- if (h.id = v.value, !v.script) {
2160
- v.required || console.warn("CookieBanner: Missing script for", v.value);
1738
+ for (const _ of d) {
1739
+ const m = document.createElement("script");
1740
+ if (m.id = _.value, !_.script) {
1741
+ _.required || console.warn("CookieBanner: Missing script for", _.value);
2161
1742
  continue;
2162
1743
  }
2163
- const { success: y, data: b } = Fi.safeParse(
2164
- v.script
1744
+ const { success: y, data: b } = Xo.safeParse(
1745
+ _.script
2165
1746
  );
2166
1747
  if (!y) {
2167
1748
  console.error(
2168
1749
  "CookieBanner: Invalid script definition for",
2169
- v.value
1750
+ _.value
2170
1751
  );
2171
1752
  continue;
2172
1753
  }
2173
- switch (h.type = b.type ?? "text/javascript", h.async = b.async ?? !1, h.defer = b.defer ?? !1, b.variant) {
1754
+ switch (m.type = b.type ?? "text/javascript", m.async = b.async ?? !1, m.defer = b.defer ?? !1, b.variant) {
2174
1755
  case "inline":
2175
- h.textContent = b.content;
1756
+ m.textContent = b.content;
2176
1757
  break;
2177
1758
  case "remote":
2178
- h.src = b.src, h.crossOrigin = b.crossorigin ?? null, h.integrity = b.integrity ?? "";
1759
+ m.src = b.src, m.crossOrigin = b.crossorigin ?? null, m.integrity = b.integrity ?? "";
2179
1760
  break;
2180
1761
  }
2181
- document.head.appendChild(h);
1762
+ document.head.appendChild(m);
2182
1763
  }
2183
1764
  }, [s, t]);
2184
1765
  function l(g) {
2185
- a(g), localStorage.setItem(n, JSON.stringify(g));
1766
+ u(g), localStorage.setItem(n, JSON.stringify(g));
2186
1767
  }
2187
- const d = M(() => {
1768
+ const f = k(() => {
2188
1769
  const g = Object.fromEntries(
2189
- t.map((f) => [f.value, !1])
1770
+ t.map((d) => [d.value, !1])
2190
1771
  );
2191
- c(g), l(g);
2192
- }, [t]), _ = M(() => {
1772
+ a(g), l(g);
1773
+ }, [t]), p = k(() => {
2193
1774
  l(i);
2194
- }, [i]), m = D(() => {
1775
+ }, [i]), h = z(() => {
2195
1776
  if (!s) return !1;
2196
1777
  const g = Object.keys(s);
2197
- return t.map((v) => v.value).every((v) => g.includes(v));
1778
+ return t.map((_) => _.value).every((_) => g.includes(_));
2198
1779
  }, [s, t]);
2199
- return /* @__PURE__ */ p(
2200
- Ir.Provider,
1780
+ return /* @__PURE__ */ v(
1781
+ Gn.Provider,
2201
1782
  {
2202
1783
  value: {
2203
1784
  selection: i,
2204
- toggleSelection: u,
2205
- onDeclineAll: d,
2206
- onSave: _,
2207
- selectionTaken: m
1785
+ toggleSelection: c,
1786
+ onDeclineAll: f,
1787
+ onSave: p,
1788
+ selectionTaken: h
2208
1789
  },
2209
1790
  children: e
2210
1791
  }
2211
1792
  );
2212
1793
  };
2213
- function Tr() {
2214
- const e = Y(Ir);
1794
+ function Ri() {
1795
+ const e = Y(Gn);
2215
1796
  if (!e)
2216
1797
  throw new Error("useSelection must be used within a SelectionProvider");
2217
1798
  return e;
2218
1799
  }
2219
- const Hs = ({
2220
- value: e,
2221
- label: t,
2222
- sublabel: n,
2223
- required: r = !1,
2224
- description: o,
2225
- openItem: i
2226
- }) => {
2227
- const { toggleSelection: c, selection: s } = Tr(), a = D(
2228
- () => s?.[e] ?? !1,
2229
- [s, e]
2230
- );
2231
- E(() => {
2232
- c(e, a);
2233
- }, [e, a]);
2234
- const u = D(
2235
- () => r ? !0 : a,
2236
- [r, a]
2237
- ), l = D(
2238
- () => (_) => r ? () => {
2239
- } : c(e, _),
2240
- [r, c, e]
2241
- ), d = D(() => r, [r]);
2242
- return /* @__PURE__ */ p(bs, { value: e, className: re.root, children: [
2243
- /* @__PURE__ */ p("div", { className: re.header, children: [
2244
- /* @__PURE__ */ p(fn, { asChild: !0, children: /* @__PURE__ */ p("div", { className: re.label, children: [
2245
- /* @__PURE__ */ p(ie, { weight: "bold", children: t }),
2246
- n && /* @__PURE__ */ p(ie, { size: "caption", color: "muted", children: n })
2247
- ] }) }),
2248
- /* @__PURE__ */ p("div", { className: re.actions, children: [
2249
- /* @__PURE__ */ p(
2250
- js,
2251
- {
2252
- checked: u,
2253
- onCheckedChange: l,
2254
- disabled: d
2255
- }
2256
- ),
2257
- /* @__PURE__ */ p(fn, { asChild: !0, children: /* @__PURE__ */ p(
2258
- As,
2259
- {
2260
- size: 16,
2261
- className: gt({
2262
- [re.chevron]: !0,
2263
- [re.open]: i === e
2264
- })
2265
- }
2266
- ) })
2267
- ] })
2268
- ] }),
2269
- o && /* @__PURE__ */ p(Cs, { className: re.description, children: /* @__PURE__ */ p(
2270
- ie,
2271
- {
2272
- size: "caption",
2273
- dangerouslySetInnerHTML: { __html: o }
2274
- }
2275
- ) })
2276
- ] });
2277
- };
2278
- function Ie(e) {
1800
+ function Pe(e) {
2279
1801
  const t = w(e);
2280
1802
  return E(() => {
2281
1803
  t.current = e;
2282
- }), D(() => (...n) => t.current?.(...n), []);
1804
+ }), z(() => (...n) => t.current?.(...n), []);
2283
1805
  }
2284
- function Zs(e, t = globalThis?.document) {
2285
- const n = Ie(e);
1806
+ function ki(e, t = globalThis?.document) {
1807
+ const n = Pe(e);
2286
1808
  E(() => {
2287
1809
  const r = (o) => {
2288
1810
  o.key === "Escape" && n(o);
@@ -2290,105 +1812,105 @@ function Zs(e, t = globalThis?.document) {
2290
1812
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
2291
1813
  }, [n, t]);
2292
1814
  }
2293
- var Vs = "DismissableLayer", bt = "dismissableLayer.update", Ks = "dismissableLayer.pointerDownOutside", qs = "dismissableLayer.focusOutside", _n, kr = ee({
1815
+ var Ii = "DismissableLayer", at = "dismissableLayer.update", zi = "dismissableLayer.pointerDownOutside", Mi = "dismissableLayer.focusOutside", Yt, Yn = ne({
2294
1816
  layers: /* @__PURE__ */ new Set(),
2295
1817
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2296
1818
  branches: /* @__PURE__ */ new Set()
2297
- }), Dr = P(
1819
+ }), Xn = P(
2298
1820
  (e, t) => {
2299
1821
  const {
2300
1822
  disableOutsidePointerEvents: n = !1,
2301
1823
  onEscapeKeyDown: r,
2302
1824
  onPointerDownOutside: o,
2303
1825
  onFocusOutside: i,
2304
- onInteractOutside: c,
1826
+ onInteractOutside: a,
2305
1827
  onDismiss: s,
2306
- ...a
2307
- } = e, u = Y(kr), [l, d] = R(null), _ = l?.ownerDocument ?? globalThis?.document, [, m] = R({}), g = L(t, (S) => d(S)), f = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), h = f.indexOf(v), y = l ? f.indexOf(l) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= h, O = Xs((S) => {
2308
- const U = S.target, le = [...u.branches].some((we) => we.contains(U));
2309
- !C || le || (o?.(S), c?.(S), S.defaultPrevented || s?.());
2310
- }, _), k = Js((S) => {
2311
- const U = S.target;
2312
- [...u.branches].some((we) => we.contains(U)) || (i?.(S), c?.(S), S.defaultPrevented || s?.());
2313
- }, _);
2314
- return Zs((S) => {
2315
- y === u.layers.size - 1 && (r?.(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
2316
- }, _), E(() => {
1828
+ ...u
1829
+ } = e, c = Y(Yn), [l, f] = A(null), p = l?.ownerDocument ?? globalThis?.document, [, h] = A({}), g = J(t, (S) => f(S)), d = Array.from(c.layers), [_] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), m = d.indexOf(_), y = l ? d.indexOf(l) : -1, b = c.layersWithOutsidePointerEventsDisabled.size > 0, O = y >= m, T = Li((S) => {
1830
+ const Q = S.target, se = [...c.branches].some((me) => me.contains(Q));
1831
+ !O || se || (o?.(S), a?.(S), S.defaultPrevented || s?.());
1832
+ }, p), M = Fi((S) => {
1833
+ const Q = S.target;
1834
+ [...c.branches].some((me) => me.contains(Q)) || (i?.(S), a?.(S), S.defaultPrevented || s?.());
1835
+ }, p);
1836
+ return ki((S) => {
1837
+ y === c.layers.size - 1 && (r?.(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
1838
+ }, p), E(() => {
2317
1839
  if (l)
2318
- return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (_n = _.body.style.pointerEvents, _.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(l)), u.layers.add(l), vn(), () => {
2319
- n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (_.body.style.pointerEvents = _n);
1840
+ return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Yt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(l)), c.layers.add(l), Xt(), () => {
1841
+ n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Yt);
2320
1842
  };
2321
- }, [l, _, n, u]), E(() => () => {
2322
- l && (u.layers.delete(l), u.layersWithOutsidePointerEventsDisabled.delete(l), vn());
2323
- }, [l, u]), E(() => {
2324
- const S = () => m({});
2325
- return document.addEventListener(bt, S), () => document.removeEventListener(bt, S);
2326
- }, []), /* @__PURE__ */ p(
1843
+ }, [l, p, n, c]), E(() => () => {
1844
+ l && (c.layers.delete(l), c.layersWithOutsidePointerEventsDisabled.delete(l), Xt());
1845
+ }, [l, c]), E(() => {
1846
+ const S = () => h({});
1847
+ return document.addEventListener(at, S), () => document.removeEventListener(at, S);
1848
+ }, []), /* @__PURE__ */ v(
2327
1849
  $.div,
2328
1850
  {
2329
- ...a,
1851
+ ...u,
2330
1852
  ref: g,
2331
1853
  style: {
2332
- pointerEvents: b ? C ? "auto" : "none" : void 0,
1854
+ pointerEvents: b ? O ? "auto" : "none" : void 0,
2333
1855
  ...e.style
2334
1856
  },
2335
- onFocusCapture: W(e.onFocusCapture, k.onFocusCapture),
2336
- onBlurCapture: W(e.onBlurCapture, k.onBlurCapture),
2337
- onPointerDownCapture: W(
1857
+ onFocusCapture: B(e.onFocusCapture, M.onFocusCapture),
1858
+ onBlurCapture: B(e.onBlurCapture, M.onBlurCapture),
1859
+ onPointerDownCapture: B(
2338
1860
  e.onPointerDownCapture,
2339
- O.onPointerDownCapture
1861
+ T.onPointerDownCapture
2340
1862
  )
2341
1863
  }
2342
1864
  );
2343
1865
  }
2344
1866
  );
2345
- Dr.displayName = Vs;
2346
- var Gs = "DismissableLayerBranch", Ys = P((e, t) => {
2347
- const n = Y(kr), r = w(null), o = L(t, r);
1867
+ Xn.displayName = Ii;
1868
+ var xi = "DismissableLayerBranch", $i = P((e, t) => {
1869
+ const n = Y(Yn), r = w(null), o = J(t, r);
2348
1870
  return E(() => {
2349
1871
  const i = r.current;
2350
1872
  if (i)
2351
1873
  return n.branches.add(i), () => {
2352
1874
  n.branches.delete(i);
2353
1875
  };
2354
- }, [n.branches]), /* @__PURE__ */ p($.div, { ...e, ref: o });
1876
+ }, [n.branches]), /* @__PURE__ */ v($.div, { ...e, ref: o });
2355
1877
  });
2356
- Ys.displayName = Gs;
2357
- function Xs(e, t = globalThis?.document) {
2358
- const n = Ie(e), r = w(!1), o = w(() => {
1878
+ $i.displayName = xi;
1879
+ function Li(e, t = globalThis?.document) {
1880
+ const n = Pe(e), r = w(!1), o = w(() => {
2359
1881
  });
2360
1882
  return E(() => {
2361
1883
  const i = (s) => {
2362
1884
  if (s.target && !r.current) {
2363
- let a = function() {
2364
- xr(
2365
- Ks,
1885
+ let u = function() {
1886
+ Jn(
1887
+ zi,
2366
1888
  n,
2367
- u,
1889
+ c,
2368
1890
  { discrete: !0 }
2369
1891
  );
2370
1892
  };
2371
- const u = { originalEvent: s };
2372
- s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = a, t.addEventListener("click", o.current, { once: !0 })) : a();
1893
+ const c = { originalEvent: s };
1894
+ s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = u, t.addEventListener("click", o.current, { once: !0 })) : u();
2373
1895
  } else
2374
1896
  t.removeEventListener("click", o.current);
2375
1897
  r.current = !1;
2376
- }, c = window.setTimeout(() => {
1898
+ }, a = window.setTimeout(() => {
2377
1899
  t.addEventListener("pointerdown", i);
2378
1900
  }, 0);
2379
1901
  return () => {
2380
- window.clearTimeout(c), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
1902
+ window.clearTimeout(a), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
2381
1903
  };
2382
1904
  }, [t, n]), {
2383
1905
  // ensures we check React component tree (not just DOM tree)
2384
1906
  onPointerDownCapture: () => r.current = !0
2385
1907
  };
2386
1908
  }
2387
- function Js(e, t = globalThis?.document) {
2388
- const n = Ie(e), r = w(!1);
1909
+ function Fi(e, t = globalThis?.document) {
1910
+ const n = Pe(e), r = w(!1);
2389
1911
  return E(() => {
2390
1912
  const o = (i) => {
2391
- i.target && !r.current && xr(qs, n, { originalEvent: i }, {
1913
+ i.target && !r.current && Jn(Mi, n, { originalEvent: i }, {
2392
1914
  discrete: !1
2393
1915
  });
2394
1916
  };
@@ -2398,22 +1920,22 @@ function Js(e, t = globalThis?.document) {
2398
1920
  onBlurCapture: () => r.current = !1
2399
1921
  };
2400
1922
  }
2401
- function vn() {
2402
- const e = new CustomEvent(bt);
1923
+ function Xt() {
1924
+ const e = new CustomEvent(at);
2403
1925
  document.dispatchEvent(e);
2404
1926
  }
2405
- function xr(e, t, n, { discrete: r }) {
1927
+ function Jn(e, t, n, { discrete: r }) {
2406
1928
  const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
2407
- t && o.addEventListener(e, t, { once: !0 }), r ? Ji(o, i) : o.dispatchEvent(i);
1929
+ t && o.addEventListener(e, t, { once: !0 }), r ? ui(o, i) : o.dispatchEvent(i);
2408
1930
  }
2409
- var ut = "focusScope.autoFocusOnMount", lt = "focusScope.autoFocusOnUnmount", hn = { bubbles: !1, cancelable: !0 }, Qs = "FocusScope", Mr = P((e, t) => {
1931
+ var Je = "focusScope.autoFocusOnMount", Qe = "focusScope.autoFocusOnUnmount", Jt = { bubbles: !1, cancelable: !0 }, ji = "FocusScope", Qn = P((e, t) => {
2410
1932
  const {
2411
1933
  loop: n = !1,
2412
1934
  trapped: r = !1,
2413
1935
  onMountAutoFocus: o,
2414
1936
  onUnmountAutoFocus: i,
2415
- ...c
2416
- } = e, [s, a] = R(null), u = Ie(o), l = Ie(i), d = w(null), _ = L(t, (f) => a(f)), m = w({
1937
+ ...a
1938
+ } = e, [s, u] = A(null), c = Pe(o), l = Pe(i), f = w(null), p = J(t, (d) => u(d)), h = w({
2417
1939
  paused: !1,
2418
1940
  pause() {
2419
1941
  this.paused = !0;
@@ -2424,65 +1946,65 @@ var ut = "focusScope.autoFocusOnMount", lt = "focusScope.autoFocusOnUnmount", hn
2424
1946
  }).current;
2425
1947
  E(() => {
2426
1948
  if (r) {
2427
- let f = function(b) {
2428
- if (m.paused || !s) return;
2429
- const C = b.target;
2430
- s.contains(C) ? d.current = C : X(d.current, { select: !0 });
2431
- }, v = function(b) {
2432
- if (m.paused || !s) return;
2433
- const C = b.relatedTarget;
2434
- C !== null && (s.contains(C) || X(d.current, { select: !0 }));
2435
- }, h = function(b) {
1949
+ let d = function(b) {
1950
+ if (h.paused || !s) return;
1951
+ const O = b.target;
1952
+ s.contains(O) ? f.current = O : V(f.current, { select: !0 });
1953
+ }, _ = function(b) {
1954
+ if (h.paused || !s) return;
1955
+ const O = b.relatedTarget;
1956
+ O !== null && (s.contains(O) || V(f.current, { select: !0 }));
1957
+ }, m = function(b) {
2436
1958
  if (document.activeElement === document.body)
2437
- for (const O of b)
2438
- O.removedNodes.length > 0 && X(s);
1959
+ for (const T of b)
1960
+ T.removedNodes.length > 0 && V(s);
2439
1961
  };
2440
- document.addEventListener("focusin", f), document.addEventListener("focusout", v);
2441
- const y = new MutationObserver(h);
1962
+ document.addEventListener("focusin", d), document.addEventListener("focusout", _);
1963
+ const y = new MutationObserver(m);
2442
1964
  return s && y.observe(s, { childList: !0, subtree: !0 }), () => {
2443
- document.removeEventListener("focusin", f), document.removeEventListener("focusout", v), y.disconnect();
1965
+ document.removeEventListener("focusin", d), document.removeEventListener("focusout", _), y.disconnect();
2444
1966
  };
2445
1967
  }
2446
- }, [r, s, m.paused]), E(() => {
1968
+ }, [r, s, h.paused]), E(() => {
2447
1969
  if (s) {
2448
- gn.add(m);
2449
- const f = document.activeElement;
2450
- if (!s.contains(f)) {
2451
- const h = new CustomEvent(ut, hn);
2452
- s.addEventListener(ut, u), s.dispatchEvent(h), h.defaultPrevented || (ec(ic(zr(s)), { select: !0 }), document.activeElement === f && X(s));
1970
+ en.add(h);
1971
+ const d = document.activeElement;
1972
+ if (!s.contains(d)) {
1973
+ const m = new CustomEvent(Je, Jt);
1974
+ s.addEventListener(Je, c), s.dispatchEvent(m), m.defaultPrevented || (Wi(Vi(er(s)), { select: !0 }), document.activeElement === d && V(s));
2453
1975
  }
2454
1976
  return () => {
2455
- s.removeEventListener(ut, u), setTimeout(() => {
2456
- const h = new CustomEvent(lt, hn);
2457
- s.addEventListener(lt, l), s.dispatchEvent(h), h.defaultPrevented || X(f ?? document.body, { select: !0 }), s.removeEventListener(lt, l), gn.remove(m);
1977
+ s.removeEventListener(Je, c), setTimeout(() => {
1978
+ const m = new CustomEvent(Qe, Jt);
1979
+ s.addEventListener(Qe, l), s.dispatchEvent(m), m.defaultPrevented || V(d ?? document.body, { select: !0 }), s.removeEventListener(Qe, l), en.remove(h);
2458
1980
  }, 0);
2459
1981
  };
2460
1982
  }
2461
- }, [s, u, l, m]);
2462
- const g = M(
2463
- (f) => {
2464
- if (!n && !r || m.paused) return;
2465
- const v = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, h = document.activeElement;
2466
- if (v && h) {
2467
- const y = f.currentTarget, [b, C] = tc(y);
2468
- b && C ? !f.shiftKey && h === C ? (f.preventDefault(), n && X(b, { select: !0 })) : f.shiftKey && h === b && (f.preventDefault(), n && X(C, { select: !0 })) : h === y && f.preventDefault();
1983
+ }, [s, c, l, h]);
1984
+ const g = k(
1985
+ (d) => {
1986
+ if (!n && !r || h.paused) return;
1987
+ const _ = d.key === "Tab" && !d.altKey && !d.ctrlKey && !d.metaKey, m = document.activeElement;
1988
+ if (_ && m) {
1989
+ const y = d.currentTarget, [b, O] = Ui(y);
1990
+ b && O ? !d.shiftKey && m === O ? (d.preventDefault(), n && V(b, { select: !0 })) : d.shiftKey && m === b && (d.preventDefault(), n && V(O, { select: !0 })) : m === y && d.preventDefault();
2469
1991
  }
2470
1992
  },
2471
- [n, r, m.paused]
1993
+ [n, r, h.paused]
2472
1994
  );
2473
- return /* @__PURE__ */ p($.div, { tabIndex: -1, ...c, ref: _, onKeyDown: g });
1995
+ return /* @__PURE__ */ v($.div, { tabIndex: -1, ...a, ref: p, onKeyDown: g });
2474
1996
  });
2475
- Mr.displayName = Qs;
2476
- function ec(e, { select: t = !1 } = {}) {
1997
+ Qn.displayName = ji;
1998
+ function Wi(e, { select: t = !1 } = {}) {
2477
1999
  const n = document.activeElement;
2478
2000
  for (const r of e)
2479
- if (X(r, { select: t }), document.activeElement !== n) return;
2001
+ if (V(r, { select: t }), document.activeElement !== n) return;
2480
2002
  }
2481
- function tc(e) {
2482
- const t = zr(e), n = mn(t, e), r = mn(t.reverse(), e);
2003
+ function Ui(e) {
2004
+ const t = er(e), n = Qt(t, e), r = Qt(t.reverse(), e);
2483
2005
  return [n, r];
2484
2006
  }
2485
- function zr(e) {
2007
+ function er(e) {
2486
2008
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
2487
2009
  acceptNode: (r) => {
2488
2010
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -2492,11 +2014,11 @@ function zr(e) {
2492
2014
  for (; n.nextNode(); ) t.push(n.currentNode);
2493
2015
  return t;
2494
2016
  }
2495
- function mn(e, t) {
2017
+ function Qt(e, t) {
2496
2018
  for (const n of e)
2497
- if (!nc(n, { upTo: t })) return n;
2019
+ if (!Bi(n, { upTo: t })) return n;
2498
2020
  }
2499
- function nc(e, { upTo: t }) {
2021
+ function Bi(e, { upTo: t }) {
2500
2022
  if (getComputedStyle(e).visibility === "hidden") return !0;
2501
2023
  for (; e; ) {
2502
2024
  if (t !== void 0 && e === t) return !1;
@@ -2505,58 +2027,58 @@ function nc(e, { upTo: t }) {
2505
2027
  }
2506
2028
  return !1;
2507
2029
  }
2508
- function rc(e) {
2030
+ function Zi(e) {
2509
2031
  return e instanceof HTMLInputElement && "select" in e;
2510
2032
  }
2511
- function X(e, { select: t = !1 } = {}) {
2033
+ function V(e, { select: t = !1 } = {}) {
2512
2034
  if (e && e.focus) {
2513
2035
  const n = document.activeElement;
2514
- e.focus({ preventScroll: !0 }), e !== n && rc(e) && t && e.select();
2036
+ e.focus({ preventScroll: !0 }), e !== n && Zi(e) && t && e.select();
2515
2037
  }
2516
2038
  }
2517
- var gn = oc();
2518
- function oc() {
2039
+ var en = Hi();
2040
+ function Hi() {
2519
2041
  let e = [];
2520
2042
  return {
2521
2043
  add(t) {
2522
2044
  const n = e[0];
2523
- t !== n && n?.pause(), e = yn(e, t), e.unshift(t);
2045
+ t !== n && n?.pause(), e = tn(e, t), e.unshift(t);
2524
2046
  },
2525
2047
  remove(t) {
2526
- e = yn(e, t), e[0]?.resume();
2048
+ e = tn(e, t), e[0]?.resume();
2527
2049
  }
2528
2050
  };
2529
2051
  }
2530
- function yn(e, t) {
2052
+ function tn(e, t) {
2531
2053
  const n = [...e], r = n.indexOf(t);
2532
2054
  return r !== -1 && n.splice(r, 1), n;
2533
2055
  }
2534
- function ic(e) {
2056
+ function Vi(e) {
2535
2057
  return e.filter((t) => t.tagName !== "A");
2536
2058
  }
2537
- var dt = 0;
2538
- function sc() {
2059
+ var et = 0;
2060
+ function Ki() {
2539
2061
  E(() => {
2540
2062
  const e = document.querySelectorAll("[data-radix-focus-guard]");
2541
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? bn()), document.body.insertAdjacentElement("beforeend", e[1] ?? bn()), dt++, () => {
2542
- dt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), dt--;
2063
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? nn()), document.body.insertAdjacentElement("beforeend", e[1] ?? nn()), et++, () => {
2064
+ et === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), et--;
2543
2065
  };
2544
2066
  }, []);
2545
2067
  }
2546
- function bn() {
2068
+ function nn() {
2547
2069
  const e = document.createElement("span");
2548
2070
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
2549
2071
  }
2550
- var H = function() {
2551
- return H = Object.assign || function(t) {
2072
+ var F = function() {
2073
+ return F = Object.assign || function(t) {
2552
2074
  for (var n, r = 1, o = arguments.length; r < o; r++) {
2553
2075
  n = arguments[r];
2554
2076
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
2555
2077
  }
2556
2078
  return t;
2557
- }, H.apply(this, arguments);
2079
+ }, F.apply(this, arguments);
2558
2080
  };
2559
- function $r(e, t) {
2081
+ function tr(e, t) {
2560
2082
  var n = {};
2561
2083
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2562
2084
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2564,17 +2086,17 @@ function $r(e, t) {
2564
2086
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
2565
2087
  return n;
2566
2088
  }
2567
- function cc(e, t, n) {
2089
+ function qi(e, t, n) {
2568
2090
  if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
2569
2091
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
2570
2092
  return e.concat(i || Array.prototype.slice.call(t));
2571
2093
  }
2572
- var He = "right-scroll-bar-position", Ze = "width-before-scroll-bar", ac = "with-scroll-bars-hidden", uc = "--removed-body-scroll-bar-size";
2573
- function ft(e, t) {
2094
+ var $e = "right-scroll-bar-position", Le = "width-before-scroll-bar", Gi = "with-scroll-bars-hidden", Yi = "--removed-body-scroll-bar-size";
2095
+ function tt(e, t) {
2574
2096
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
2575
2097
  }
2576
- function lc(e, t) {
2577
- var n = R(function() {
2098
+ function Xi(e, t) {
2099
+ var n = A(function() {
2578
2100
  return {
2579
2101
  // value
2580
2102
  value: e,
@@ -2594,31 +2116,31 @@ function lc(e, t) {
2594
2116
  })[0];
2595
2117
  return n.callback = t, n.facade;
2596
2118
  }
2597
- var dc = typeof window < "u" ? te : E, Cn = /* @__PURE__ */ new WeakMap();
2598
- function fc(e, t) {
2599
- var n = lc(null, function(r) {
2119
+ var Ji = typeof window < "u" ? G : E, rn = /* @__PURE__ */ new WeakMap();
2120
+ function Qi(e, t) {
2121
+ var n = Xi(null, function(r) {
2600
2122
  return e.forEach(function(o) {
2601
- return ft(o, r);
2123
+ return tt(o, r);
2602
2124
  });
2603
2125
  });
2604
- return dc(function() {
2605
- var r = Cn.get(n);
2126
+ return Ji(function() {
2127
+ var r = rn.get(n);
2606
2128
  if (r) {
2607
- var o = new Set(r), i = new Set(e), c = n.current;
2129
+ var o = new Set(r), i = new Set(e), a = n.current;
2608
2130
  o.forEach(function(s) {
2609
- i.has(s) || ft(s, null);
2131
+ i.has(s) || tt(s, null);
2610
2132
  }), i.forEach(function(s) {
2611
- o.has(s) || ft(s, c);
2133
+ o.has(s) || tt(s, a);
2612
2134
  });
2613
2135
  }
2614
- Cn.set(n, e);
2136
+ rn.set(n, e);
2615
2137
  }, [e]), n;
2616
2138
  }
2617
- function pc(e) {
2139
+ function es(e) {
2618
2140
  return e;
2619
2141
  }
2620
- function _c(e, t) {
2621
- t === void 0 && (t = pc);
2142
+ function ts(e, t) {
2143
+ t === void 0 && (t = es);
2622
2144
  var n = [], r = !1, o = {
2623
2145
  read: function() {
2624
2146
  if (r)
@@ -2626,17 +2148,17 @@ function _c(e, t) {
2626
2148
  return n.length ? n[n.length - 1] : e;
2627
2149
  },
2628
2150
  useMedium: function(i) {
2629
- var c = t(i, r);
2630
- return n.push(c), function() {
2151
+ var a = t(i, r);
2152
+ return n.push(a), function() {
2631
2153
  n = n.filter(function(s) {
2632
- return s !== c;
2154
+ return s !== a;
2633
2155
  });
2634
2156
  };
2635
2157
  },
2636
2158
  assignSyncMedium: function(i) {
2637
2159
  for (r = !0; n.length; ) {
2638
- var c = n;
2639
- n = [], c.forEach(i);
2160
+ var a = n;
2161
+ n = [], a.forEach(i);
2640
2162
  }
2641
2163
  n = {
2642
2164
  push: function(s) {
@@ -2649,101 +2171,101 @@ function _c(e, t) {
2649
2171
  },
2650
2172
  assignMedium: function(i) {
2651
2173
  r = !0;
2652
- var c = [];
2174
+ var a = [];
2653
2175
  if (n.length) {
2654
2176
  var s = n;
2655
- n = [], s.forEach(i), c = n;
2177
+ n = [], s.forEach(i), a = n;
2656
2178
  }
2657
- var a = function() {
2658
- var l = c;
2659
- c = [], l.forEach(i);
2660
- }, u = function() {
2661
- return Promise.resolve().then(a);
2179
+ var u = function() {
2180
+ var l = a;
2181
+ a = [], l.forEach(i);
2182
+ }, c = function() {
2183
+ return Promise.resolve().then(u);
2662
2184
  };
2663
- u(), n = {
2185
+ c(), n = {
2664
2186
  push: function(l) {
2665
- c.push(l), u();
2187
+ a.push(l), c();
2666
2188
  },
2667
2189
  filter: function(l) {
2668
- return c = c.filter(l), n;
2190
+ return a = a.filter(l), n;
2669
2191
  }
2670
2192
  };
2671
2193
  }
2672
2194
  };
2673
2195
  return o;
2674
2196
  }
2675
- function vc(e) {
2197
+ function ns(e) {
2676
2198
  e === void 0 && (e = {});
2677
- var t = _c(null);
2678
- return t.options = H({ async: !0, ssr: !1 }, e), t;
2199
+ var t = ts(null);
2200
+ return t.options = F({ async: !0, ssr: !1 }, e), t;
2679
2201
  }
2680
- var Lr = function(e) {
2681
- var t = e.sideCar, n = $r(e, ["sideCar"]);
2202
+ var nr = function(e) {
2203
+ var t = e.sideCar, n = tr(e, ["sideCar"]);
2682
2204
  if (!t)
2683
2205
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
2684
2206
  var r = t.read();
2685
2207
  if (!r)
2686
2208
  throw new Error("Sidecar medium not found");
2687
- return T(r, H({}, n));
2209
+ return D(r, F({}, n));
2688
2210
  };
2689
- Lr.isSideCarExport = !0;
2690
- function hc(e, t) {
2691
- return e.useMedium(t), Lr;
2692
- }
2693
- var Fr = vc(), pt = function() {
2694
- }, ot = P(function(e, t) {
2695
- var n = w(null), r = R({
2696
- onScrollCapture: pt,
2697
- onWheelCapture: pt,
2698
- onTouchMoveCapture: pt
2699
- }), o = r[0], i = r[1], c = e.forwardProps, s = e.children, a = e.className, u = e.removeScrollBar, l = e.enabled, d = e.shards, _ = e.sideCar, m = e.noRelative, g = e.noIsolation, f = e.inert, v = e.allowPinchZoom, h = e.as, y = h === void 0 ? "div" : h, b = e.gapMode, C = $r(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), O = _, k = fc([n, t]), S = H(H({}, C), o);
2700
- return T(
2701
- F,
2211
+ nr.isSideCarExport = !0;
2212
+ function rs(e, t) {
2213
+ return e.useMedium(t), nr;
2214
+ }
2215
+ var rr = ns(), nt = function() {
2216
+ }, Ve = P(function(e, t) {
2217
+ var n = w(null), r = A({
2218
+ onScrollCapture: nt,
2219
+ onWheelCapture: nt,
2220
+ onTouchMoveCapture: nt
2221
+ }), o = r[0], i = r[1], a = e.forwardProps, s = e.children, u = e.className, c = e.removeScrollBar, l = e.enabled, f = e.shards, p = e.sideCar, h = e.noRelative, g = e.noIsolation, d = e.inert, _ = e.allowPinchZoom, m = e.as, y = m === void 0 ? "div" : m, b = e.gapMode, O = tr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), T = p, M = Qi([n, t]), S = F(F({}, O), o);
2222
+ return D(
2223
+ x,
2702
2224
  null,
2703
- l && T(O, { sideCar: Fr, removeScrollBar: u, shards: d, noRelative: m, noIsolation: g, inert: f, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
2704
- c ? ge(K.only(s), H(H({}, S), { ref: k })) : T(y, H({}, S, { className: a, ref: k }), s)
2225
+ l && D(T, { sideCar: rr, removeScrollBar: c, shards: f, noRelative: h, noIsolation: g, inert: d, setCallbacks: i, allowPinchZoom: !!_, lockRef: n, gapMode: b }),
2226
+ a ? pe(U.only(s), F(F({}, S), { ref: M })) : D(y, F({}, S, { className: u, ref: M }), s)
2705
2227
  );
2706
2228
  });
2707
- ot.defaultProps = {
2229
+ Ve.defaultProps = {
2708
2230
  enabled: !0,
2709
2231
  removeScrollBar: !0,
2710
2232
  inert: !1
2711
2233
  };
2712
- ot.classNames = {
2713
- fullWidth: Ze,
2714
- zeroRight: He
2234
+ Ve.classNames = {
2235
+ fullWidth: Le,
2236
+ zeroRight: $e
2715
2237
  };
2716
- var mc = function() {
2238
+ var os = function() {
2717
2239
  if (typeof __webpack_nonce__ < "u")
2718
2240
  return __webpack_nonce__;
2719
2241
  };
2720
- function gc() {
2242
+ function is() {
2721
2243
  if (!document)
2722
2244
  return null;
2723
2245
  var e = document.createElement("style");
2724
2246
  e.type = "text/css";
2725
- var t = mc();
2247
+ var t = os();
2726
2248
  return t && e.setAttribute("nonce", t), e;
2727
2249
  }
2728
- function yc(e, t) {
2250
+ function ss(e, t) {
2729
2251
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
2730
2252
  }
2731
- function bc(e) {
2253
+ function as(e) {
2732
2254
  var t = document.head || document.getElementsByTagName("head")[0];
2733
2255
  t.appendChild(e);
2734
2256
  }
2735
- var Cc = function() {
2257
+ var cs = function() {
2736
2258
  var e = 0, t = null;
2737
2259
  return {
2738
2260
  add: function(n) {
2739
- e == 0 && (t = gc()) && (yc(t, n), bc(t)), e++;
2261
+ e == 0 && (t = is()) && (ss(t, n), as(t)), e++;
2740
2262
  },
2741
2263
  remove: function() {
2742
2264
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
2743
2265
  }
2744
2266
  };
2745
- }, wc = function() {
2746
- var e = Cc();
2267
+ }, us = function() {
2268
+ var e = cs();
2747
2269
  return function(t, n) {
2748
2270
  E(function() {
2749
2271
  return e.add(t), function() {
@@ -2751,40 +2273,40 @@ var Cc = function() {
2751
2273
  };
2752
2274
  }, [t && n]);
2753
2275
  };
2754
- }, Ur = function() {
2755
- var e = wc(), t = function(n) {
2276
+ }, or = function() {
2277
+ var e = us(), t = function(n) {
2756
2278
  var r = n.styles, o = n.dynamic;
2757
2279
  return e(r, o), null;
2758
2280
  };
2759
2281
  return t;
2760
- }, Sc = {
2282
+ }, ls = {
2761
2283
  left: 0,
2762
2284
  top: 0,
2763
2285
  right: 0,
2764
2286
  gap: 0
2765
- }, _t = function(e) {
2287
+ }, rt = function(e) {
2766
2288
  return parseInt(e || "", 10) || 0;
2767
- }, Ec = function(e) {
2289
+ }, fs = function(e) {
2768
2290
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2769
- return [_t(n), _t(r), _t(o)];
2770
- }, Pc = function(e) {
2291
+ return [rt(n), rt(r), rt(o)];
2292
+ }, ds = function(e) {
2771
2293
  if (e === void 0 && (e = "margin"), typeof window > "u")
2772
- return Sc;
2773
- var t = Ec(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2294
+ return ls;
2295
+ var t = fs(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2774
2296
  return {
2775
2297
  left: t[0],
2776
2298
  top: t[1],
2777
2299
  right: t[2],
2778
2300
  gap: Math.max(0, r - n + t[2] - t[0])
2779
2301
  };
2780
- }, Nc = Ur(), ve = "data-scroll-locked", Oc = function(e, t, n, r) {
2781
- var o = e.left, i = e.top, c = e.right, s = e.gap;
2302
+ }, ps = or(), fe = "data-scroll-locked", _s = function(e, t, n, r) {
2303
+ var o = e.left, i = e.top, a = e.right, s = e.gap;
2782
2304
  return n === void 0 && (n = "margin"), `
2783
- .`.concat(ac, ` {
2305
+ .`.concat(Gi, ` {
2784
2306
  overflow: hidden `).concat(r, `;
2785
2307
  padding-right: `).concat(s, "px ").concat(r, `;
2786
2308
  }
2787
- body[`).concat(ve, `] {
2309
+ body[`).concat(fe, `] {
2788
2310
  overflow: hidden `).concat(r, `;
2789
2311
  overscroll-behavior: contain;
2790
2312
  `).concat([
@@ -2792,7 +2314,7 @@ var Cc = function() {
2792
2314
  n === "margin" && `
2793
2315
  padding-left: `.concat(o, `px;
2794
2316
  padding-top: `).concat(i, `px;
2795
- padding-right: `).concat(c, `px;
2317
+ padding-right: `).concat(a, `px;
2796
2318
  margin-left:0;
2797
2319
  margin-top:0;
2798
2320
  margin-right: `).concat(s, "px ").concat(r, `;
@@ -2801,345 +2323,345 @@ var Cc = function() {
2801
2323
  ].filter(Boolean).join(""), `
2802
2324
  }
2803
2325
 
2804
- .`).concat(He, ` {
2326
+ .`).concat($e, ` {
2805
2327
  right: `).concat(s, "px ").concat(r, `;
2806
2328
  }
2807
2329
 
2808
- .`).concat(Ze, ` {
2330
+ .`).concat(Le, ` {
2809
2331
  margin-right: `).concat(s, "px ").concat(r, `;
2810
2332
  }
2811
2333
 
2812
- .`).concat(He, " .").concat(He, ` {
2334
+ .`).concat($e, " .").concat($e, ` {
2813
2335
  right: 0 `).concat(r, `;
2814
2336
  }
2815
2337
 
2816
- .`).concat(Ze, " .").concat(Ze, ` {
2338
+ .`).concat(Le, " .").concat(Le, ` {
2817
2339
  margin-right: 0 `).concat(r, `;
2818
2340
  }
2819
2341
 
2820
- body[`).concat(ve, `] {
2821
- `).concat(uc, ": ").concat(s, `px;
2342
+ body[`).concat(fe, `] {
2343
+ `).concat(Yi, ": ").concat(s, `px;
2822
2344
  }
2823
2345
  `);
2824
- }, wn = function() {
2825
- var e = parseInt(document.body.getAttribute(ve) || "0", 10);
2346
+ }, on = function() {
2347
+ var e = parseInt(document.body.getAttribute(fe) || "0", 10);
2826
2348
  return isFinite(e) ? e : 0;
2827
- }, Ac = function() {
2349
+ }, vs = function() {
2828
2350
  E(function() {
2829
- return document.body.setAttribute(ve, (wn() + 1).toString()), function() {
2830
- var e = wn() - 1;
2831
- e <= 0 ? document.body.removeAttribute(ve) : document.body.setAttribute(ve, e.toString());
2351
+ return document.body.setAttribute(fe, (on() + 1).toString()), function() {
2352
+ var e = on() - 1;
2353
+ e <= 0 ? document.body.removeAttribute(fe) : document.body.setAttribute(fe, e.toString());
2832
2354
  };
2833
2355
  }, []);
2834
- }, Rc = function(e) {
2356
+ }, hs = function(e) {
2835
2357
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
2836
- Ac();
2837
- var i = D(function() {
2838
- return Pc(o);
2358
+ vs();
2359
+ var i = z(function() {
2360
+ return ds(o);
2839
2361
  }, [o]);
2840
- return T(Nc, { styles: Oc(i, !t, o, n ? "" : "!important") });
2841
- }, Ct = !1;
2362
+ return D(ps, { styles: _s(i, !t, o, n ? "" : "!important") });
2363
+ }, ct = !1;
2842
2364
  if (typeof window < "u")
2843
2365
  try {
2844
- var Fe = Object.defineProperty({}, "passive", {
2366
+ var Re = Object.defineProperty({}, "passive", {
2845
2367
  get: function() {
2846
- return Ct = !0, !0;
2368
+ return ct = !0, !0;
2847
2369
  }
2848
2370
  });
2849
- window.addEventListener("test", Fe, Fe), window.removeEventListener("test", Fe, Fe);
2371
+ window.addEventListener("test", Re, Re), window.removeEventListener("test", Re, Re);
2850
2372
  } catch {
2851
- Ct = !1;
2373
+ ct = !1;
2852
2374
  }
2853
- var de = Ct ? { passive: !1 } : !1, Ic = function(e) {
2375
+ var ae = ct ? { passive: !1 } : !1, ms = function(e) {
2854
2376
  return e.tagName === "TEXTAREA";
2855
- }, jr = function(e, t) {
2377
+ }, ir = function(e, t) {
2856
2378
  if (!(e instanceof Element))
2857
2379
  return !1;
2858
2380
  var n = window.getComputedStyle(e);
2859
2381
  return (
2860
2382
  // not-not-scrollable
2861
2383
  n[t] !== "hidden" && // contains scroll inside self
2862
- !(n.overflowY === n.overflowX && !Ic(e) && n[t] === "visible")
2384
+ !(n.overflowY === n.overflowX && !ms(e) && n[t] === "visible")
2863
2385
  );
2864
- }, Tc = function(e) {
2865
- return jr(e, "overflowY");
2866
- }, kc = function(e) {
2867
- return jr(e, "overflowX");
2868
- }, Sn = function(e, t) {
2386
+ }, gs = function(e) {
2387
+ return ir(e, "overflowY");
2388
+ }, ys = function(e) {
2389
+ return ir(e, "overflowX");
2390
+ }, sn = function(e, t) {
2869
2391
  var n = t.ownerDocument, r = t;
2870
2392
  do {
2871
2393
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
2872
- var o = Wr(e, r);
2394
+ var o = sr(e, r);
2873
2395
  if (o) {
2874
- var i = Br(e, r), c = i[1], s = i[2];
2875
- if (c > s)
2396
+ var i = ar(e, r), a = i[1], s = i[2];
2397
+ if (a > s)
2876
2398
  return !0;
2877
2399
  }
2878
2400
  r = r.parentNode;
2879
2401
  } while (r && r !== n.body);
2880
2402
  return !1;
2881
- }, Dc = function(e) {
2403
+ }, bs = function(e) {
2882
2404
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
2883
2405
  return [
2884
2406
  t,
2885
2407
  n,
2886
2408
  r
2887
2409
  ];
2888
- }, xc = function(e) {
2410
+ }, ws = function(e) {
2889
2411
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
2890
2412
  return [
2891
2413
  t,
2892
2414
  n,
2893
2415
  r
2894
2416
  ];
2895
- }, Wr = function(e, t) {
2896
- return e === "v" ? Tc(t) : kc(t);
2897
- }, Br = function(e, t) {
2898
- return e === "v" ? Dc(t) : xc(t);
2899
- }, Mc = function(e, t) {
2417
+ }, sr = function(e, t) {
2418
+ return e === "v" ? gs(t) : ys(t);
2419
+ }, ar = function(e, t) {
2420
+ return e === "v" ? bs(t) : ws(t);
2421
+ }, Es = function(e, t) {
2900
2422
  return e === "h" && t === "rtl" ? -1 : 1;
2901
- }, zc = function(e, t, n, r, o) {
2902
- var i = Mc(e, window.getComputedStyle(t).direction), c = i * r, s = n.target, a = t.contains(s), u = !1, l = c > 0, d = 0, _ = 0;
2423
+ }, Ss = function(e, t, n, r, o) {
2424
+ var i = Es(e, window.getComputedStyle(t).direction), a = i * r, s = n.target, u = t.contains(s), c = !1, l = a > 0, f = 0, p = 0;
2903
2425
  do {
2904
2426
  if (!s)
2905
2427
  break;
2906
- var m = Br(e, s), g = m[0], f = m[1], v = m[2], h = f - v - i * g;
2907
- (g || h) && Wr(e, s) && (d += h, _ += g);
2428
+ var h = ar(e, s), g = h[0], d = h[1], _ = h[2], m = d - _ - i * g;
2429
+ (g || m) && sr(e, s) && (f += m, p += g);
2908
2430
  var y = s.parentNode;
2909
2431
  s = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
2910
2432
  } while (
2911
2433
  // portaled content
2912
- !a && s !== document.body || // self content
2913
- a && (t.contains(s) || t === s)
2434
+ !u && s !== document.body || // self content
2435
+ u && (t.contains(s) || t === s)
2914
2436
  );
2915
- return (l && Math.abs(d) < 1 || !l && Math.abs(_) < 1) && (u = !0), u;
2916
- }, Ue = function(e) {
2437
+ return (l && Math.abs(f) < 1 || !l && Math.abs(p) < 1) && (c = !0), c;
2438
+ }, ke = function(e) {
2917
2439
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2918
- }, En = function(e) {
2440
+ }, an = function(e) {
2919
2441
  return [e.deltaX, e.deltaY];
2920
- }, Pn = function(e) {
2442
+ }, cn = function(e) {
2921
2443
  return e && "current" in e ? e.current : e;
2922
- }, $c = function(e, t) {
2444
+ }, Cs = function(e, t) {
2923
2445
  return e[0] === t[0] && e[1] === t[1];
2924
- }, Lc = function(e) {
2446
+ }, Ps = function(e) {
2925
2447
  return `
2926
2448
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
2927
2449
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2928
2450
  `);
2929
- }, Fc = 0, fe = [];
2930
- function Uc(e) {
2931
- var t = w([]), n = w([0, 0]), r = w(), o = R(Fc++)[0], i = R(Ur)[0], c = w(e);
2451
+ }, Os = 0, ce = [];
2452
+ function Ns(e) {
2453
+ var t = w([]), n = w([0, 0]), r = w(), o = A(Os++)[0], i = A(or)[0], a = w(e);
2932
2454
  E(function() {
2933
- c.current = e;
2455
+ a.current = e;
2934
2456
  }, [e]), E(function() {
2935
2457
  if (e.inert) {
2936
2458
  document.body.classList.add("block-interactivity-".concat(o));
2937
- var f = cc([e.lockRef.current], (e.shards || []).map(Pn), !0).filter(Boolean);
2938
- return f.forEach(function(v) {
2939
- return v.classList.add("allow-interactivity-".concat(o));
2459
+ var d = qi([e.lockRef.current], (e.shards || []).map(cn), !0).filter(Boolean);
2460
+ return d.forEach(function(_) {
2461
+ return _.classList.add("allow-interactivity-".concat(o));
2940
2462
  }), function() {
2941
- document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(v) {
2942
- return v.classList.remove("allow-interactivity-".concat(o));
2463
+ document.body.classList.remove("block-interactivity-".concat(o)), d.forEach(function(_) {
2464
+ return _.classList.remove("allow-interactivity-".concat(o));
2943
2465
  });
2944
2466
  };
2945
2467
  }
2946
2468
  }, [e.inert, e.lockRef.current, e.shards]);
2947
- var s = M(function(f, v) {
2948
- if ("touches" in f && f.touches.length === 2 || f.type === "wheel" && f.ctrlKey)
2949
- return !c.current.allowPinchZoom;
2950
- var h = Ue(f), y = n.current, b = "deltaX" in f ? f.deltaX : y[0] - h[0], C = "deltaY" in f ? f.deltaY : y[1] - h[1], O, k = f.target, S = Math.abs(b) > Math.abs(C) ? "h" : "v";
2951
- if ("touches" in f && S === "h" && k.type === "range")
2469
+ var s = k(function(d, _) {
2470
+ if ("touches" in d && d.touches.length === 2 || d.type === "wheel" && d.ctrlKey)
2471
+ return !a.current.allowPinchZoom;
2472
+ var m = ke(d), y = n.current, b = "deltaX" in d ? d.deltaX : y[0] - m[0], O = "deltaY" in d ? d.deltaY : y[1] - m[1], T, M = d.target, S = Math.abs(b) > Math.abs(O) ? "h" : "v";
2473
+ if ("touches" in d && S === "h" && M.type === "range")
2952
2474
  return !1;
2953
- var U = window.getSelection(), le = U && U.anchorNode, we = le ? le === k || le.contains(k) : !1;
2954
- if (we)
2475
+ var Q = window.getSelection(), se = Q && Q.anchorNode, me = se ? se === M || se.contains(M) : !1;
2476
+ if (me)
2955
2477
  return !1;
2956
- var xe = Sn(S, k);
2957
- if (!xe)
2478
+ var Ne = sn(S, M);
2479
+ if (!Ne)
2958
2480
  return !0;
2959
- if (xe ? O = S : (O = S === "v" ? "h" : "v", xe = Sn(S, k)), !xe)
2481
+ if (Ne ? T = S : (T = S === "v" ? "h" : "v", Ne = sn(S, M)), !Ne)
2960
2482
  return !1;
2961
- if (!r.current && "changedTouches" in f && (b || C) && (r.current = O), !O)
2483
+ if (!r.current && "changedTouches" in d && (b || O) && (r.current = T), !T)
2962
2484
  return !0;
2963
- var Wt = r.current || O;
2964
- return zc(Wt, v, f, Wt === "h" ? b : C);
2965
- }, []), a = M(function(f) {
2966
- var v = f;
2967
- if (!(!fe.length || fe[fe.length - 1] !== i)) {
2968
- var h = "deltaY" in v ? En(v) : Ue(v), y = t.current.filter(function(O) {
2969
- return O.name === v.type && (O.target === v.target || v.target === O.shadowParent) && $c(O.delta, h);
2485
+ var Ot = r.current || T;
2486
+ return Ss(Ot, _, d, Ot === "h" ? b : O);
2487
+ }, []), u = k(function(d) {
2488
+ var _ = d;
2489
+ if (!(!ce.length || ce[ce.length - 1] !== i)) {
2490
+ var m = "deltaY" in _ ? an(_) : ke(_), y = t.current.filter(function(T) {
2491
+ return T.name === _.type && (T.target === _.target || _.target === T.shadowParent) && Cs(T.delta, m);
2970
2492
  })[0];
2971
2493
  if (y && y.should) {
2972
- v.cancelable && v.preventDefault();
2494
+ _.cancelable && _.preventDefault();
2973
2495
  return;
2974
2496
  }
2975
2497
  if (!y) {
2976
- var b = (c.current.shards || []).map(Pn).filter(Boolean).filter(function(O) {
2977
- return O.contains(v.target);
2978
- }), C = b.length > 0 ? s(v, b[0]) : !c.current.noIsolation;
2979
- C && v.cancelable && v.preventDefault();
2498
+ var b = (a.current.shards || []).map(cn).filter(Boolean).filter(function(T) {
2499
+ return T.contains(_.target);
2500
+ }), O = b.length > 0 ? s(_, b[0]) : !a.current.noIsolation;
2501
+ O && _.cancelable && _.preventDefault();
2980
2502
  }
2981
2503
  }
2982
- }, []), u = M(function(f, v, h, y) {
2983
- var b = { name: f, delta: v, target: h, should: y, shadowParent: jc(h) };
2504
+ }, []), c = k(function(d, _, m, y) {
2505
+ var b = { name: d, delta: _, target: m, should: y, shadowParent: Ds(m) };
2984
2506
  t.current.push(b), setTimeout(function() {
2985
- t.current = t.current.filter(function(C) {
2986
- return C !== b;
2507
+ t.current = t.current.filter(function(O) {
2508
+ return O !== b;
2987
2509
  });
2988
2510
  }, 1);
2989
- }, []), l = M(function(f) {
2990
- n.current = Ue(f), r.current = void 0;
2991
- }, []), d = M(function(f) {
2992
- u(f.type, En(f), f.target, s(f, e.lockRef.current));
2993
- }, []), _ = M(function(f) {
2994
- u(f.type, Ue(f), f.target, s(f, e.lockRef.current));
2511
+ }, []), l = k(function(d) {
2512
+ n.current = ke(d), r.current = void 0;
2513
+ }, []), f = k(function(d) {
2514
+ c(d.type, an(d), d.target, s(d, e.lockRef.current));
2515
+ }, []), p = k(function(d) {
2516
+ c(d.type, ke(d), d.target, s(d, e.lockRef.current));
2995
2517
  }, []);
2996
2518
  E(function() {
2997
- return fe.push(i), e.setCallbacks({
2998
- onScrollCapture: d,
2999
- onWheelCapture: d,
3000
- onTouchMoveCapture: _
3001
- }), document.addEventListener("wheel", a, de), document.addEventListener("touchmove", a, de), document.addEventListener("touchstart", l, de), function() {
3002
- fe = fe.filter(function(f) {
3003
- return f !== i;
3004
- }), document.removeEventListener("wheel", a, de), document.removeEventListener("touchmove", a, de), document.removeEventListener("touchstart", l, de);
2519
+ return ce.push(i), e.setCallbacks({
2520
+ onScrollCapture: f,
2521
+ onWheelCapture: f,
2522
+ onTouchMoveCapture: p
2523
+ }), document.addEventListener("wheel", u, ae), document.addEventListener("touchmove", u, ae), document.addEventListener("touchstart", l, ae), function() {
2524
+ ce = ce.filter(function(d) {
2525
+ return d !== i;
2526
+ }), document.removeEventListener("wheel", u, ae), document.removeEventListener("touchmove", u, ae), document.removeEventListener("touchstart", l, ae);
3005
2527
  };
3006
2528
  }, []);
3007
- var m = e.removeScrollBar, g = e.inert;
3008
- return T(
3009
- F,
2529
+ var h = e.removeScrollBar, g = e.inert;
2530
+ return D(
2531
+ x,
3010
2532
  null,
3011
- g ? T(i, { styles: Lc(o) }) : null,
3012
- m ? T(Rc, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
2533
+ g ? D(i, { styles: Ps(o) }) : null,
2534
+ h ? D(hs, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
3013
2535
  );
3014
2536
  }
3015
- function jc(e) {
2537
+ function Ds(e) {
3016
2538
  for (var t = null; e !== null; )
3017
2539
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
3018
2540
  return t;
3019
2541
  }
3020
- const Wc = hc(Fr, Uc);
3021
- var Hr = P(function(e, t) {
3022
- return T(ot, H({}, e, { ref: t, sideCar: Wc }));
2542
+ const Ts = rs(rr, Ns);
2543
+ var cr = P(function(e, t) {
2544
+ return D(Ve, F({}, e, { ref: t, sideCar: Ts }));
3023
2545
  });
3024
- Hr.classNames = ot.classNames;
3025
- var Bc = function(e) {
2546
+ cr.classNames = Ve.classNames;
2547
+ var As = function(e) {
3026
2548
  if (typeof document > "u")
3027
2549
  return null;
3028
2550
  var t = Array.isArray(e) ? e[0] : e;
3029
2551
  return t.ownerDocument.body;
3030
- }, pe = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), We = {}, vt = 0, Zr = function(e) {
3031
- return e && (e.host || Zr(e.parentNode));
3032
- }, Hc = function(e, t) {
2552
+ }, ue = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ze = {}, ot = 0, ur = function(e) {
2553
+ return e && (e.host || ur(e.parentNode));
2554
+ }, Rs = function(e, t) {
3033
2555
  return t.map(function(n) {
3034
2556
  if (e.contains(n))
3035
2557
  return n;
3036
- var r = Zr(n);
2558
+ var r = ur(n);
3037
2559
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
3038
2560
  }).filter(function(n) {
3039
2561
  return !!n;
3040
2562
  });
3041
- }, Zc = function(e, t, n, r) {
3042
- var o = Hc(t, Array.isArray(e) ? e : [e]);
3043
- We[n] || (We[n] = /* @__PURE__ */ new WeakMap());
3044
- var i = We[n], c = [], s = /* @__PURE__ */ new Set(), a = new Set(o), u = function(d) {
3045
- !d || s.has(d) || (s.add(d), u(d.parentNode));
2563
+ }, ks = function(e, t, n, r) {
2564
+ var o = Rs(t, Array.isArray(e) ? e : [e]);
2565
+ ze[n] || (ze[n] = /* @__PURE__ */ new WeakMap());
2566
+ var i = ze[n], a = [], s = /* @__PURE__ */ new Set(), u = new Set(o), c = function(f) {
2567
+ !f || s.has(f) || (s.add(f), c(f.parentNode));
3046
2568
  };
3047
- o.forEach(u);
3048
- var l = function(d) {
3049
- !d || a.has(d) || Array.prototype.forEach.call(d.children, function(_) {
3050
- if (s.has(_))
3051
- l(_);
2569
+ o.forEach(c);
2570
+ var l = function(f) {
2571
+ !f || u.has(f) || Array.prototype.forEach.call(f.children, function(p) {
2572
+ if (s.has(p))
2573
+ l(p);
3052
2574
  else
3053
2575
  try {
3054
- var m = _.getAttribute(r), g = m !== null && m !== "false", f = (pe.get(_) || 0) + 1, v = (i.get(_) || 0) + 1;
3055
- pe.set(_, f), i.set(_, v), c.push(_), f === 1 && g && je.set(_, !0), v === 1 && _.setAttribute(n, "true"), g || _.setAttribute(r, "true");
3056
- } catch (h) {
3057
- console.error("aria-hidden: cannot operate on ", _, h);
2576
+ var h = p.getAttribute(r), g = h !== null && h !== "false", d = (ue.get(p) || 0) + 1, _ = (i.get(p) || 0) + 1;
2577
+ ue.set(p, d), i.set(p, _), a.push(p), d === 1 && g && Ie.set(p, !0), _ === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
2578
+ } catch (m) {
2579
+ console.error("aria-hidden: cannot operate on ", p, m);
3058
2580
  }
3059
2581
  });
3060
2582
  };
3061
- return l(t), s.clear(), vt++, function() {
3062
- c.forEach(function(d) {
3063
- var _ = pe.get(d) - 1, m = i.get(d) - 1;
3064
- pe.set(d, _), i.set(d, m), _ || (je.has(d) || d.removeAttribute(r), je.delete(d)), m || d.removeAttribute(n);
3065
- }), vt--, vt || (pe = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), We = {});
2583
+ return l(t), s.clear(), ot++, function() {
2584
+ a.forEach(function(f) {
2585
+ var p = ue.get(f) - 1, h = i.get(f) - 1;
2586
+ ue.set(f, p), i.set(f, h), p || (Ie.has(f) || f.removeAttribute(r), Ie.delete(f)), h || f.removeAttribute(n);
2587
+ }), ot--, ot || (ue = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ze = {});
3066
2588
  };
3067
- }, Vc = function(e, t, n) {
2589
+ }, Is = function(e, t, n) {
3068
2590
  n === void 0 && (n = "data-aria-hidden");
3069
- var r = Array.from(Array.isArray(e) ? e : [e]), o = Bc(e);
3070
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Zc(r, o, n, "aria-hidden")) : function() {
2591
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = As(e);
2592
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), ks(r, o, n, "aria-hidden")) : function() {
3071
2593
  return null;
3072
2594
  };
3073
- }, it = "Dialog", [Vr] = ke(it), [Kc, V] = Vr(it), Kr = (e) => {
2595
+ }, Ke = "Dialog", [lr] = Wn(Ke), [zs, W] = lr(Ke), fr = (e) => {
3074
2596
  const {
3075
2597
  __scopeDialog: t,
3076
2598
  children: n,
3077
2599
  open: r,
3078
2600
  defaultOpen: o,
3079
2601
  onOpenChange: i,
3080
- modal: c = !0
3081
- } = e, s = w(null), a = w(null), [u, l] = De({
2602
+ modal: a = !0
2603
+ } = e, s = w(null), u = w(null), [c, l] = Zn({
3082
2604
  prop: r,
3083
2605
  defaultProp: o ?? !1,
3084
2606
  onChange: i,
3085
- caller: it
2607
+ caller: Ke
3086
2608
  });
3087
- return /* @__PURE__ */ p(
3088
- Kc,
2609
+ return /* @__PURE__ */ v(
2610
+ zs,
3089
2611
  {
3090
2612
  scope: t,
3091
2613
  triggerRef: s,
3092
- contentRef: a,
3093
- contentId: Oe(),
3094
- titleId: Oe(),
3095
- descriptionId: Oe(),
3096
- open: u,
2614
+ contentRef: u,
2615
+ contentId: xe(),
2616
+ titleId: xe(),
2617
+ descriptionId: xe(),
2618
+ open: c,
3097
2619
  onOpenChange: l,
3098
- onOpenToggle: M(() => l((d) => !d), [l]),
3099
- modal: c,
2620
+ onOpenToggle: k(() => l((f) => !f), [l]),
2621
+ modal: a,
3100
2622
  children: n
3101
2623
  }
3102
2624
  );
3103
2625
  };
3104
- Kr.displayName = it;
3105
- var qr = "DialogTrigger", qc = P(
2626
+ fr.displayName = Ke;
2627
+ var dr = "DialogTrigger", Ms = P(
3106
2628
  (e, t) => {
3107
- const { __scopeDialog: n, ...r } = e, o = V(qr, n), i = L(t, o.triggerRef);
3108
- return /* @__PURE__ */ p(
2629
+ const { __scopeDialog: n, ...r } = e, o = W(dr, n), i = J(t, o.triggerRef);
2630
+ return /* @__PURE__ */ v(
3109
2631
  $.button,
3110
2632
  {
3111
2633
  type: "button",
3112
2634
  "aria-haspopup": "dialog",
3113
2635
  "aria-expanded": o.open,
3114
2636
  "aria-controls": o.contentId,
3115
- "data-state": jt(o.open),
2637
+ "data-state": Pt(o.open),
3116
2638
  ...r,
3117
2639
  ref: i,
3118
- onClick: W(e.onClick, o.onOpenToggle)
2640
+ onClick: B(e.onClick, o.onOpenToggle)
3119
2641
  }
3120
2642
  );
3121
2643
  }
3122
2644
  );
3123
- qc.displayName = qr;
3124
- var Gc = "DialogPortal", [da, Gr] = Vr(Gc, {
2645
+ Ms.displayName = dr;
2646
+ var xs = "DialogPortal", [Js, pr] = lr(xs, {
3125
2647
  forceMount: void 0
3126
- }), Xe = "DialogOverlay", Yc = P(
2648
+ }), Ue = "DialogOverlay", $s = P(
3127
2649
  (e, t) => {
3128
- const n = Gr(Xe, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = V(Xe, e.__scopeDialog);
3129
- return i.modal ? /* @__PURE__ */ p(Qe, { present: r || i.open, children: /* @__PURE__ */ p(Jc, { ...o, ref: t }) }) : null;
2650
+ const n = pr(Ue, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = W(Ue, e.__scopeDialog);
2651
+ return i.modal ? /* @__PURE__ */ v(Ze, { present: r || i.open, children: /* @__PURE__ */ v(Fs, { ...o, ref: t }) }) : null;
3130
2652
  }
3131
2653
  );
3132
- Yc.displayName = Xe;
3133
- var Xc = /* @__PURE__ */ Ge("DialogOverlay.RemoveScroll"), Jc = P(
2654
+ $s.displayName = Ue;
2655
+ var Ls = /* @__PURE__ */ Bn("DialogOverlay.RemoveScroll"), Fs = P(
3134
2656
  (e, t) => {
3135
- const { __scopeDialog: n, ...r } = e, o = V(Xe, n);
2657
+ const { __scopeDialog: n, ...r } = e, o = W(Ue, n);
3136
2658
  return (
3137
2659
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
3138
2660
  // ie. when `Overlay` and `Content` are siblings
3139
- /* @__PURE__ */ p(Hr, { as: Xc, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ p(
2661
+ /* @__PURE__ */ v(cr, { as: Ls, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ v(
3140
2662
  $.div,
3141
2663
  {
3142
- "data-state": jt(o.open),
2664
+ "data-state": Pt(o.open),
3143
2665
  ...r,
3144
2666
  ref: t,
3145
2667
  style: { pointerEvents: "auto", ...r.style }
@@ -3147,45 +2669,45 @@ var Xc = /* @__PURE__ */ Ge("DialogOverlay.RemoveScroll"), Jc = P(
3147
2669
  ) })
3148
2670
  );
3149
2671
  }
3150
- ), ce = "DialogContent", Yr = P(
2672
+ ), re = "DialogContent", _r = P(
3151
2673
  (e, t) => {
3152
- const n = Gr(ce, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = V(ce, e.__scopeDialog);
3153
- return /* @__PURE__ */ p(Qe, { present: r || i.open, children: i.modal ? /* @__PURE__ */ p(Qc, { ...o, ref: t }) : /* @__PURE__ */ p(ea, { ...o, ref: t }) });
2674
+ const n = pr(re, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = W(re, e.__scopeDialog);
2675
+ return /* @__PURE__ */ v(Ze, { present: r || i.open, children: i.modal ? /* @__PURE__ */ v(js, { ...o, ref: t }) : /* @__PURE__ */ v(Ws, { ...o, ref: t }) });
3154
2676
  }
3155
2677
  );
3156
- Yr.displayName = ce;
3157
- var Qc = P(
2678
+ _r.displayName = re;
2679
+ var js = P(
3158
2680
  (e, t) => {
3159
- const n = V(ce, e.__scopeDialog), r = w(null), o = L(t, n.contentRef, r);
2681
+ const n = W(re, e.__scopeDialog), r = w(null), o = J(t, n.contentRef, r);
3160
2682
  return E(() => {
3161
2683
  const i = r.current;
3162
- if (i) return Vc(i);
3163
- }, []), /* @__PURE__ */ p(
3164
- Xr,
2684
+ if (i) return Is(i);
2685
+ }, []), /* @__PURE__ */ v(
2686
+ vr,
3165
2687
  {
3166
2688
  ...e,
3167
2689
  ref: o,
3168
2690
  trapFocus: n.open,
3169
2691
  disableOutsidePointerEvents: !0,
3170
- onCloseAutoFocus: W(e.onCloseAutoFocus, (i) => {
2692
+ onCloseAutoFocus: B(e.onCloseAutoFocus, (i) => {
3171
2693
  i.preventDefault(), n.triggerRef.current?.focus();
3172
2694
  }),
3173
- onPointerDownOutside: W(e.onPointerDownOutside, (i) => {
3174
- const c = i.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
3175
- (c.button === 2 || s) && i.preventDefault();
2695
+ onPointerDownOutside: B(e.onPointerDownOutside, (i) => {
2696
+ const a = i.detail.originalEvent, s = a.button === 0 && a.ctrlKey === !0;
2697
+ (a.button === 2 || s) && i.preventDefault();
3176
2698
  }),
3177
- onFocusOutside: W(
2699
+ onFocusOutside: B(
3178
2700
  e.onFocusOutside,
3179
2701
  (i) => i.preventDefault()
3180
2702
  )
3181
2703
  }
3182
2704
  );
3183
2705
  }
3184
- ), ea = P(
2706
+ ), Ws = P(
3185
2707
  (e, t) => {
3186
- const n = V(ce, e.__scopeDialog), r = w(!1), o = w(!1);
3187
- return /* @__PURE__ */ p(
3188
- Xr,
2708
+ const n = W(re, e.__scopeDialog), r = w(!1), o = w(!1);
2709
+ return /* @__PURE__ */ v(
2710
+ vr,
3189
2711
  {
3190
2712
  ...e,
3191
2713
  ref: t,
@@ -3196,83 +2718,83 @@ var Qc = P(
3196
2718
  },
3197
2719
  onInteractOutside: (i) => {
3198
2720
  e.onInteractOutside?.(i), i.defaultPrevented || (r.current = !0, i.detail.originalEvent.type === "pointerdown" && (o.current = !0));
3199
- const c = i.target;
3200
- n.triggerRef.current?.contains(c) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && o.current && i.preventDefault();
2721
+ const a = i.target;
2722
+ n.triggerRef.current?.contains(a) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && o.current && i.preventDefault();
3201
2723
  }
3202
2724
  }
3203
2725
  );
3204
2726
  }
3205
- ), Xr = P(
2727
+ ), vr = P(
3206
2728
  (e, t) => {
3207
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = e, s = V(ce, n), a = w(null), u = L(t, a);
3208
- return sc(), /* @__PURE__ */ p(F, { children: [
3209
- /* @__PURE__ */ p(
3210
- Mr,
2729
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...a } = e, s = W(re, n), u = w(null), c = J(t, u);
2730
+ return Ki(), /* @__PURE__ */ v(x, { children: [
2731
+ /* @__PURE__ */ v(
2732
+ Qn,
3211
2733
  {
3212
2734
  asChild: !0,
3213
2735
  loop: !0,
3214
2736
  trapped: r,
3215
2737
  onMountAutoFocus: o,
3216
2738
  onUnmountAutoFocus: i,
3217
- children: /* @__PURE__ */ p(
3218
- Dr,
2739
+ children: /* @__PURE__ */ v(
2740
+ Xn,
3219
2741
  {
3220
2742
  role: "dialog",
3221
2743
  id: s.contentId,
3222
2744
  "aria-describedby": s.descriptionId,
3223
2745
  "aria-labelledby": s.titleId,
3224
- "data-state": jt(s.open),
3225
- ...c,
3226
- ref: u,
2746
+ "data-state": Pt(s.open),
2747
+ ...a,
2748
+ ref: c,
3227
2749
  onDismiss: () => s.onOpenChange(!1)
3228
2750
  }
3229
2751
  )
3230
2752
  }
3231
2753
  ),
3232
- /* @__PURE__ */ p(F, { children: [
3233
- /* @__PURE__ */ p(ta, { titleId: s.titleId }),
3234
- /* @__PURE__ */ p(ra, { contentRef: a, descriptionId: s.descriptionId })
2754
+ /* @__PURE__ */ v(x, { children: [
2755
+ /* @__PURE__ */ v(Us, { titleId: s.titleId }),
2756
+ /* @__PURE__ */ v(Zs, { contentRef: u, descriptionId: s.descriptionId })
3235
2757
  ] })
3236
2758
  ] });
3237
2759
  }
3238
- ), Ut = "DialogTitle", Jr = P(
2760
+ ), Ct = "DialogTitle", hr = P(
3239
2761
  (e, t) => {
3240
- const { __scopeDialog: n, ...r } = e, o = V(Ut, n);
3241
- return /* @__PURE__ */ p($.h2, { id: o.titleId, ...r, ref: t });
2762
+ const { __scopeDialog: n, ...r } = e, o = W(Ct, n);
2763
+ return /* @__PURE__ */ v($.h2, { id: o.titleId, ...r, ref: t });
3242
2764
  }
3243
2765
  );
3244
- Jr.displayName = Ut;
3245
- var Qr = "DialogDescription", eo = P(
2766
+ hr.displayName = Ct;
2767
+ var mr = "DialogDescription", gr = P(
3246
2768
  (e, t) => {
3247
- const { __scopeDialog: n, ...r } = e, o = V(Qr, n);
3248
- return /* @__PURE__ */ p($.p, { id: o.descriptionId, ...r, ref: t });
2769
+ const { __scopeDialog: n, ...r } = e, o = W(mr, n);
2770
+ return /* @__PURE__ */ v($.p, { id: o.descriptionId, ...r, ref: t });
3249
2771
  }
3250
2772
  );
3251
- eo.displayName = Qr;
3252
- var to = "DialogClose", no = P(
2773
+ gr.displayName = mr;
2774
+ var yr = "DialogClose", br = P(
3253
2775
  (e, t) => {
3254
- const { __scopeDialog: n, ...r } = e, o = V(to, n);
3255
- return /* @__PURE__ */ p(
2776
+ const { __scopeDialog: n, ...r } = e, o = W(yr, n);
2777
+ return /* @__PURE__ */ v(
3256
2778
  $.button,
3257
2779
  {
3258
2780
  type: "button",
3259
2781
  ...r,
3260
2782
  ref: t,
3261
- onClick: W(e.onClick, () => o.onOpenChange(!1))
2783
+ onClick: B(e.onClick, () => o.onOpenChange(!1))
3262
2784
  }
3263
2785
  );
3264
2786
  }
3265
2787
  );
3266
- no.displayName = to;
3267
- function jt(e) {
2788
+ br.displayName = yr;
2789
+ function Pt(e) {
3268
2790
  return e ? "open" : "closed";
3269
2791
  }
3270
- var ro = "DialogTitleWarning", [fa, oo] = Ui(ro, {
3271
- contentName: ce,
3272
- titleName: Ut,
2792
+ var wr = "DialogTitleWarning", [Qs, Er] = Jo(wr, {
2793
+ contentName: re,
2794
+ titleName: Ct,
3273
2795
  docsSlug: "dialog"
3274
- }), ta = ({ titleId: e }) => {
3275
- const t = oo(ro), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2796
+ }), Us = ({ titleId: e }) => {
2797
+ const t = Er(wr), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
3276
2798
 
3277
2799
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
3278
2800
 
@@ -3280,80 +2802,62 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
3280
2802
  return E(() => {
3281
2803
  e && (document.getElementById(e) || console.error(n));
3282
2804
  }, [n, e]), null;
3283
- }, na = "DialogDescriptionWarning", ra = ({ contentRef: e, descriptionId: t }) => {
3284
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oo(na).contentName}}.`;
2805
+ }, Bs = "DialogDescriptionWarning", Zs = ({ contentRef: e, descriptionId: t }) => {
2806
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Er(Bs).contentName}}.`;
3285
2807
  return E(() => {
3286
2808
  const o = e.current?.getAttribute("aria-describedby");
3287
2809
  t && o && (document.getElementById(t) || console.warn(r));
3288
2810
  }, [r, e, t]), null;
3289
- }, oa = Kr, ia = Yr, sa = Jr, ca = eo, Nn = no;
3290
- const aa = ({
2811
+ }, Hs = fr, Vs = _r, Ks = hr, qs = gr, un = br;
2812
+ const Gs = ({
3291
2813
  noTarget: e = !0,
3292
2814
  heading: t = "We use cookies.",
3293
2815
  subheading: n = "Please define your selection below.",
3294
2816
  selectLabel: r = "Select",
3295
2817
  hideLabel: o = "Hide",
3296
2818
  saveLabel: i = "Save selection",
3297
- declineLabel: c = "Decline all",
2819
+ declineLabel: a = "Decline all",
3298
2820
  defaultSettingsOpen: s = !0,
3299
- privacyPolicy: a,
3300
- items: u
2821
+ privacyPolicy: u
2822
+ // items,
3301
2823
  }) => {
3302
- const { onSave: l, onDeclineAll: d, selectionTaken: _ } = Tr(), [m, g] = R(void 0), [f, v] = R(s);
3303
- return /* @__PURE__ */ p(oa, { open: !_, children: /* @__PURE__ */ p(
3304
- ia,
2824
+ const { onSave: c, onDeclineAll: l, selectionTaken: f } = Ri(), [p, h] = A(s);
2825
+ return /* @__PURE__ */ v(Hs, { open: !f, children: /* @__PURE__ */ v(
2826
+ Vs,
3305
2827
  {
3306
- className: Dt(j.root, e ? j.noTarget : ""),
3307
- children: /* @__PURE__ */ p(
3308
- lr,
2828
+ className: bt(L.root, e ? L.noTarget : ""),
2829
+ children: /* @__PURE__ */ v(
2830
+ yi,
3309
2831
  {
3310
- open: f,
3311
- onOpenChange: v,
3312
- className: j.collapsible,
2832
+ open: p,
2833
+ onOpenChange: h,
2834
+ className: L.collapsible,
3313
2835
  children: [
3314
- /* @__PURE__ */ p("div", { className: j.header, children: [
3315
- /* @__PURE__ */ p("div", { className: j.heading, children: [
3316
- /* @__PURE__ */ p(sa, { asChild: !0, children: /* @__PURE__ */ p(ie, { weight: "bold", children: t }) }),
3317
- /* @__PURE__ */ p(ca, { asChild: !0, children: /* @__PURE__ */ p(ie, { size: "caption", color: "muted", children: n }) })
2836
+ /* @__PURE__ */ v("div", { className: L.header, children: [
2837
+ /* @__PURE__ */ v("div", { className: L.heading, children: [
2838
+ /* @__PURE__ */ v(Ks, { asChild: !0, children: /* @__PURE__ */ v(Xe, { weight: "bold", children: t }) }),
2839
+ /* @__PURE__ */ v(qs, { asChild: !0, children: /* @__PURE__ */ v(Xe, { size: "caption", color: "muted", children: n }) })
3318
2840
  ] }),
3319
- /* @__PURE__ */ p(dr, { asChild: !0, children: /* @__PURE__ */ p(at, { variant: "ghost", children: [
3320
- f ? o : r,
2841
+ /* @__PURE__ */ v(bi, { asChild: !0, children: /* @__PURE__ */ v(Ye, { variant: "ghost", children: [
2842
+ p ? o : r,
3321
2843
  " ",
3322
- /* @__PURE__ */ p(
3323
- Is,
2844
+ /* @__PURE__ */ v(
2845
+ Di,
3324
2846
  {
3325
2847
  size: 12,
3326
- className: gt({
3327
- [j.chevron]: !0,
3328
- [j.open]: f
2848
+ className: Zr({
2849
+ [L.chevron]: !0,
2850
+ [L.open]: p
3329
2851
  })
3330
2852
  }
3331
2853
  )
3332
2854
  ] }) })
3333
2855
  ] }),
3334
- /* @__PURE__ */ p(
3335
- fr,
3336
- {
3337
- className: gt({
3338
- [j.settings]: !0
3339
- }),
3340
- children: /* @__PURE__ */ p(
3341
- ys,
3342
- {
3343
- type: "single",
3344
- collapsible: !0,
3345
- value: m,
3346
- onValueChange: g,
3347
- children: /* @__PURE__ */ p(F, { children: u.map((h) => /* @__PURE__ */ p(Hs, { ...h, openItem: m }, h.value)) })
3348
- }
3349
- )
3350
- }
3351
- ),
3352
- /* @__PURE__ */ p("div", { className: j.footer, children: [
3353
- /* @__PURE__ */ p("div", { className: j.legal, children: a && /* @__PURE__ */ p(ie, { size: "caption", children: /* @__PURE__ */ p("a", { href: a.url, target: "_blank", children: a.label }) }) }),
3354
- /* @__PURE__ */ p("div", { className: j.actions, children: [
3355
- /* @__PURE__ */ p(Nn, { asChild: !0, children: /* @__PURE__ */ p(at, { variant: "neutral", onClick: () => d(), children: c }) }),
3356
- /* @__PURE__ */ p(Nn, { asChild: !0, children: /* @__PURE__ */ p(at, { variant: "brand", onClick: () => l(), children: i }) })
2856
+ /* @__PURE__ */ v("div", { className: L.footer, children: [
2857
+ /* @__PURE__ */ v("div", { className: L.legal, children: u && /* @__PURE__ */ v(Xe, { size: "caption", children: /* @__PURE__ */ v("a", { href: u.url, target: "_blank", children: u.label }) }) }),
2858
+ /* @__PURE__ */ v("div", { className: L.actions, children: [
2859
+ /* @__PURE__ */ v(un, { asChild: !0, children: /* @__PURE__ */ v(Ye, { variant: "neutral", onClick: () => l(), children: a }) }),
2860
+ /* @__PURE__ */ v(un, { asChild: !0, children: /* @__PURE__ */ v(Ye, { variant: "brand", onClick: () => c(), children: i }) })
3357
2861
  ] })
3358
2862
  ] })
3359
2863
  ]
@@ -3361,12 +2865,12 @@ const aa = ({
3361
2865
  )
3362
2866
  }
3363
2867
  ) });
3364
- }, ua = ({
2868
+ }, Ys = ({
3365
2869
  localStorageKey: e = "cb-selection",
3366
2870
  items: t,
3367
2871
  ...n
3368
2872
  }) => {
3369
- const r = D(
2873
+ const r = z(
3370
2874
  () => t.filter((o) => !o.required).map((o) => ({
3371
2875
  value: o.value,
3372
2876
  script: o.script,
@@ -3375,9 +2879,9 @@ const aa = ({
3375
2879
  })),
3376
2880
  [t]
3377
2881
  );
3378
- return /* @__PURE__ */ p(Bs, { items: r, localStorageKey: e, children: /* @__PURE__ */ p(aa, { items: t, ...n }) });
2882
+ return /* @__PURE__ */ v(Ai, { items: r, localStorageKey: e, children: /* @__PURE__ */ v(Gs, { items: t, ...n }) });
3379
2883
  };
3380
- function pa(e, t) {
2884
+ function ea(e, t) {
3381
2885
  const n = t === void 0;
3382
2886
  let r;
3383
2887
  if (typeof t == "string") {
@@ -3387,8 +2891,8 @@ function pa(e, t) {
3387
2891
  r = o;
3388
2892
  } else
3389
2893
  r = t;
3390
- Ae(/* @__PURE__ */ p(ua, { noTarget: n, ...e }), r ?? document.body);
2894
+ Ee(/* @__PURE__ */ v(Ys, { noTarget: n, ...e }), r ?? document.body);
3391
2895
  }
3392
2896
  export {
3393
- pa as mountBanner
2897
+ ea as mountBanner
3394
2898
  };