@react-grab/visual-edit 0.0.90 → 0.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -1,131 +1,131 @@
1
- // ../react-grab/dist/chunk-AAPYQRSF.js
2
- var ra = (e, t) => e === t;
3
- var Nn = { equals: ra };
4
- var Ho = Ko;
5
- var ze = 1;
6
- var sn = 2;
7
- var re = null;
8
- var E = null;
9
- var Ht = null;
10
- var ue = null;
11
- var Ee = null;
12
- var Le = null;
13
- var Ln = 0;
14
- function N(e, t) {
15
- t = t ? Object.assign({}, Nn, t) : Nn;
16
- let n = { value: e, observers: null, observerSlots: null, comparator: t.equals || void 0 }, r = (i) => (typeof i == "function" && (i = i(n.value)), Go(n, i));
17
- return [Uo.bind(n), r];
1
+ // ../react-grab/dist/chunk-DN7NT3CO.js
2
+ var oa = (e, t) => e === t;
3
+ var Rn = { equals: oa };
4
+ var jo = Yo;
5
+ var We = 1;
6
+ var dn = 2;
7
+ var le = null;
8
+ var A = null;
9
+ var Kt = null;
10
+ var he = null;
11
+ var Ie = null;
12
+ var De = null;
13
+ var On = 0;
14
+ function k(e, t) {
15
+ t = t ? Object.assign({}, Rn, t) : Rn;
16
+ let n = { value: e, observers: null, observerSlots: null, comparator: t.equals || void 0 }, r = (i) => (typeof i == "function" && (i = i(n.value)), Xo(n, i));
17
+ return [Go.bind(n), r];
18
18
  }
19
- function Me(e) {
20
- if (ue === null) return e();
21
- let t = ue;
22
- ue = null;
19
+ function Fe(e) {
20
+ if (he === null) return e();
21
+ let t = he;
22
+ he = null;
23
23
  try {
24
- return Ht ? Ht.untrack(e) : e();
24
+ return Kt ? Kt.untrack(e) : e();
25
25
  } finally {
26
- ue = t;
26
+ he = t;
27
27
  }
28
28
  }
29
- N(false);
30
- function Uo() {
31
- let e = E;
32
- if (this.sources && this.state) if (this.state === ze) jt(this);
29
+ k(false);
30
+ function Go() {
31
+ let e = A;
32
+ if (this.sources && this.state) if (this.state === We) Xt(this);
33
33
  else {
34
- let t = Ee;
35
- Ee = null, He(() => In(this)), Ee = t;
34
+ let t = Ie;
35
+ Ie = null, Ye(() => Mn(this)), Ie = t;
36
36
  }
37
- if (ue) {
37
+ if (he) {
38
38
  let t = this.observers ? this.observers.length : 0;
39
- ue.sources ? (ue.sources.push(this), ue.sourceSlots.push(t)) : (ue.sources = [this], ue.sourceSlots = [t]), this.observers ? (this.observers.push(ue), this.observerSlots.push(ue.sources.length - 1)) : (this.observers = [ue], this.observerSlots = [ue.sources.length - 1]);
39
+ he.sources ? (he.sources.push(this), he.sourceSlots.push(t)) : (he.sources = [this], he.sourceSlots = [t]), this.observers ? (this.observers.push(he), this.observerSlots.push(he.sources.length - 1)) : (this.observers = [he], this.observerSlots = [he.sources.length - 1]);
40
40
  }
41
- return e && E.sources.has(this) ? this.tValue : this.value;
41
+ return e && A.sources.has(this) ? this.tValue : this.value;
42
42
  }
43
- function Go(e, t, n) {
43
+ function Xo(e, t, n) {
44
44
  let r = e.value;
45
45
  if (!e.comparator || !e.comparator(r, t)) {
46
46
  e.value = t;
47
- e.observers && e.observers.length && He(() => {
47
+ e.observers && e.observers.length && Ye(() => {
48
48
  for (let i = 0; i < e.observers.length; i += 1) {
49
- let o = e.observers[i], a = E && E.running;
50
- a && E.disposed.has(o) || ((a ? !o.tState : !o.state) && (o.pure ? Ee.push(o) : Le.push(o), o.observers && Xo(o)), a ? o.tState = ze : o.state = ze);
49
+ let o = e.observers[i], a = A && A.running;
50
+ a && A.disposed.has(o) || ((a ? !o.tState : !o.state) && (o.pure ? Ie.push(o) : De.push(o), o.observers && Wo(o)), a ? o.tState = We : o.state = We);
51
51
  }
52
- if (Ee.length > 1e6) throw Ee = [], new Error();
52
+ if (Ie.length > 1e6) throw Ie = [], new Error();
53
53
  });
54
54
  }
55
55
  return t;
56
56
  }
57
- function jt(e) {
57
+ function Xt(e) {
58
58
  if (!e.fn) return;
59
- bt(e);
60
- let t = Ln;
61
- Fo(e, e.value, t);
59
+ xt(e);
60
+ let t = On;
61
+ Bo(e, e.value, t);
62
62
  }
63
- function Fo(e, t, n) {
64
- let r, i = re, o = ue;
65
- ue = re = e;
63
+ function Bo(e, t, n) {
64
+ let r, i = le, o = he;
65
+ he = le = e;
66
66
  try {
67
67
  r = e.fn(t);
68
68
  } catch (a) {
69
- return e.pure && (e.state = ze, e.owned && e.owned.forEach(bt), e.owned = null), e.updatedAt = n + 1, Pn(a);
69
+ return e.pure && (e.state = We, e.owned && e.owned.forEach(xt), e.owned = null), e.updatedAt = n + 1, Fn(a);
70
70
  } finally {
71
- ue = o, re = i;
71
+ he = o, le = i;
72
72
  }
73
- (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Go(e, r) : e.value = r, e.updatedAt = n);
73
+ (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Xo(e, r) : e.value = r, e.updatedAt = n);
74
74
  }
75
- function ln(e) {
76
- let t = E;
75
+ function mn(e) {
76
+ let t = A;
77
77
  if (e.state === 0) return;
78
- if (e.state === sn) return In(e);
79
- if (e.suspense && Me(e.suspense.inFallback)) return e.suspense.effects.push(e);
78
+ if (e.state === dn) return Mn(e);
79
+ if (e.suspense && Fe(e.suspense.inFallback)) return e.suspense.effects.push(e);
80
80
  let n = [e];
81
- for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Ln); ) {
81
+ for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < On); ) {
82
82
  e.state && n.push(e);
83
83
  }
84
84
  for (let r = n.length - 1; r >= 0; r--) {
85
85
  if (e = n[r], t) ;
86
- if (e.state === ze) jt(e);
87
- else if (e.state === sn) {
88
- let i = Ee;
89
- Ee = null, He(() => In(e, n[0])), Ee = i;
86
+ if (e.state === We) Xt(e);
87
+ else if (e.state === dn) {
88
+ let i = Ie;
89
+ Ie = null, Ye(() => Mn(e, n[0])), Ie = i;
90
90
  }
91
91
  }
92
92
  }
93
- function He(e, t) {
94
- if (Ee) return e();
93
+ function Ye(e, t) {
94
+ if (Ie) return e();
95
95
  let n = false;
96
- (Ee = []), Le ? n = true : Le = [], Ln++;
96
+ (Ie = []), De ? n = true : De = [], On++;
97
97
  try {
98
98
  let r = e();
99
- return sa(n), r;
99
+ return aa(n), r;
100
100
  } catch (r) {
101
- n || (Le = null), Ee = null, Pn(r);
101
+ n || (De = null), Ie = null, Fn(r);
102
102
  }
103
103
  }
104
- function sa(e) {
105
- if (Ee && (Ko(Ee), Ee = null), e) return;
106
- let n = Le;
107
- Le = null, n.length && He(() => Ho(n));
104
+ function aa(e) {
105
+ if (Ie && (Yo(Ie), Ie = null), e) return;
106
+ let n = De;
107
+ De = null, n.length && Ye(() => jo(n));
108
108
  }
109
- function Ko(e) {
110
- for (let t = 0; t < e.length; t++) ln(e[t]);
109
+ function Yo(e) {
110
+ for (let t = 0; t < e.length; t++) mn(e[t]);
111
111
  }
112
- function In(e, t) {
112
+ function Mn(e, t) {
113
113
  e.state = 0;
114
114
  for (let r = 0; r < e.sources.length; r += 1) {
115
115
  let i = e.sources[r];
116
116
  if (i.sources) {
117
117
  let o = i.state;
118
- o === ze ? i !== t && (!i.updatedAt || i.updatedAt < Ln) && ln(i) : o === sn && In(i, t);
118
+ o === We ? i !== t && (!i.updatedAt || i.updatedAt < On) && mn(i) : o === dn && Mn(i, t);
119
119
  }
120
120
  }
121
121
  }
122
- function Xo(e) {
122
+ function Wo(e) {
123
123
  for (let n = 0; n < e.observers.length; n += 1) {
124
124
  let r = e.observers[n];
125
- !r.state && (r.state = sn, r.pure ? Ee.push(r) : Le.push(r), r.observers && Xo(r));
125
+ !r.state && (r.state = dn, r.pure ? Ie.push(r) : De.push(r), r.observers && Wo(r));
126
126
  }
127
127
  }
128
- function bt(e) {
128
+ function xt(e) {
129
129
  let t;
130
130
  if (e.sources) for (; e.sources.length; ) {
131
131
  let n = e.sources.pop(), r = e.sourceSlots.pop(), i = n.observers;
@@ -135,11 +135,11 @@ function bt(e) {
135
135
  }
136
136
  }
137
137
  if (e.tOwned) {
138
- for (t = e.tOwned.length - 1; t >= 0; t--) bt(e.tOwned[t]);
138
+ for (t = e.tOwned.length - 1; t >= 0; t--) xt(e.tOwned[t]);
139
139
  delete e.tOwned;
140
140
  }
141
141
  if (e.owned) {
142
- for (t = e.owned.length - 1; t >= 0; t--) bt(e.owned[t]);
142
+ for (t = e.owned.length - 1; t >= 0; t--) xt(e.owned[t]);
143
143
  e.owned = null;
144
144
  }
145
145
  if (e.cleanups) {
@@ -148,29 +148,29 @@ function bt(e) {
148
148
  }
149
149
  e.state = 0;
150
150
  }
151
- function _n(e) {
151
+ function Ln(e) {
152
152
  return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", { cause: e });
153
153
  }
154
- function Pn(e, t = re) {
155
- let r = _n(e);
154
+ function Fn(e, t = le) {
155
+ let r = Ln(e);
156
156
  throw r;
157
157
  }
158
- var Yo = "_$DX_DELEGATE";
159
- function K(e, t, n, r) {
158
+ var Zo = "_$DX_DELEGATE";
159
+ function Q(e, t, n, r) {
160
160
  let i, o = () => {
161
161
  let l = document.createElement("template");
162
162
  return l.innerHTML = e, l.content.firstChild;
163
163
  }, a = () => (i || (i = o())).cloneNode(true);
164
164
  return a.cloneNode = a, a;
165
165
  }
166
- function Dn(e, t = window.document) {
167
- let n = t[Yo] || (t[Yo] = /* @__PURE__ */ new Set());
166
+ function Wt(e, t = window.document) {
167
+ let n = t[Zo] || (t[Zo] = /* @__PURE__ */ new Set());
168
168
  for (let r = 0, i = e.length; r < i; r++) {
169
169
  let o = e[r];
170
- n.has(o) || (n.add(o), t.addEventListener(o, ha));
170
+ n.has(o) || (n.add(o), t.addEventListener(o, ba));
171
171
  }
172
172
  }
173
- function ha(e) {
173
+ function ba(e) {
174
174
  let t = e.target, n = `$$${e.type}`, r = e.target, i = e.currentTarget, o = (c) => Object.defineProperty(e, "target", { configurable: true, value: c }), a = () => {
175
175
  let c = t[n];
176
176
  if (c && !t.disabled) {
@@ -196,71 +196,71 @@ function ha(e) {
196
196
  } else l();
197
197
  o(r);
198
198
  }
199
- var ri = "0.0.90";
200
- var Cr = "-";
199
+ var ii = "0.0.91";
200
+ var kr = "-";
201
201
  var Sa = (e) => {
202
- let t = Ea(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
202
+ let t = ka(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
203
203
  return { getClassGroupId: (a) => {
204
- let l = a.split(Cr);
205
- return l[0] === "" && l.length !== 1 && l.shift(), ci(l, t) || Ca(a);
204
+ let l = a.split(kr);
205
+ return l[0] === "" && l.length !== 1 && l.shift(), di(l, t) || Ea(a);
206
206
  }, getConflictingClassGroupIds: (a, l) => {
207
207
  let c = n[a] || [];
208
208
  return l && r[a] ? [...c, ...r[a]] : c;
209
209
  } };
210
210
  };
211
- var ci = (e, t) => {
211
+ var di = (e, t) => {
212
212
  if (e.length === 0) return t.classGroupId;
213
- let n = e[0], r = t.nextPart.get(n), i = r ? ci(e.slice(1), r) : void 0;
213
+ let n = e[0], r = t.nextPart.get(n), i = r ? di(e.slice(1), r) : void 0;
214
214
  if (i) return i;
215
215
  if (t.validators.length === 0) return;
216
- let o = e.join(Cr);
216
+ let o = e.join(kr);
217
217
  return t.validators.find(({ validator: a }) => a(o))?.classGroupId;
218
218
  };
219
- var ai = /^\[(.+)\]$/;
220
- var Ca = (e) => {
221
- if (ai.test(e)) {
222
- let t = ai.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
219
+ var ci = /^\[(.+)\]$/;
220
+ var Ea = (e) => {
221
+ if (ci.test(e)) {
222
+ let t = ci.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
223
223
  if (n) return "arbitrary.." + n;
224
224
  }
225
225
  };
226
- var Ea = (e) => {
226
+ var ka = (e) => {
227
227
  let { theme: t, prefix: n } = e, r = { nextPart: /* @__PURE__ */ new Map(), validators: [] };
228
- return Ta(Object.entries(e.classGroups), n).forEach(([o, a]) => {
229
- Sr(a, r, o, t);
228
+ return Aa(Object.entries(e.classGroups), n).forEach(([o, a]) => {
229
+ Er(a, r, o, t);
230
230
  }), r;
231
231
  };
232
- var Sr = (e, t, n, r) => {
232
+ var Er = (e, t, n, r) => {
233
233
  e.forEach((i) => {
234
234
  if (typeof i == "string") {
235
- let o = i === "" ? t : li(t, i);
235
+ let o = i === "" ? t : ui(t, i);
236
236
  o.classGroupId = n;
237
237
  return;
238
238
  }
239
239
  if (typeof i == "function") {
240
- if (ka(i)) {
241
- Sr(i(r), t, n, r);
240
+ if (Ta(i)) {
241
+ Er(i(r), t, n, r);
242
242
  return;
243
243
  }
244
244
  t.validators.push({ validator: i, classGroupId: n });
245
245
  return;
246
246
  }
247
247
  Object.entries(i).forEach(([o, a]) => {
248
- Sr(a, li(t, o), n, r);
248
+ Er(a, ui(t, o), n, r);
249
249
  });
250
250
  });
251
251
  };
252
- var li = (e, t) => {
252
+ var ui = (e, t) => {
253
253
  let n = e;
254
- return t.split(Cr).forEach((r) => {
254
+ return t.split(kr).forEach((r) => {
255
255
  n.nextPart.has(r) || n.nextPart.set(r, { nextPart: /* @__PURE__ */ new Map(), validators: [] }), n = n.nextPart.get(r);
256
256
  }), n;
257
257
  };
258
- var ka = (e) => e.isThemeGetter;
259
- var Ta = (e, t) => t ? e.map(([n, r]) => {
258
+ var Ta = (e) => e.isThemeGetter;
259
+ var Aa = (e, t) => t ? e.map(([n, r]) => {
260
260
  let i = r.map((o) => typeof o == "string" ? t + o : typeof o == "object" ? Object.fromEntries(Object.entries(o).map(([a, l]) => [t + a, l])) : o);
261
261
  return [n, i];
262
262
  }) : e;
263
- var Aa = (e) => {
263
+ var _a = (e) => {
264
264
  if (e < 1) return { get: () => {
265
265
  }, set: () => {
266
266
  } };
@@ -275,180 +275,174 @@ var Aa = (e) => {
275
275
  n.has(o) ? n.set(o, a) : i(o, a);
276
276
  } };
277
277
  };
278
- var ui = "!";
279
- var _a = (e) => {
278
+ var fi = "!";
279
+ var Na = (e) => {
280
280
  let { separator: t, experimentalParseClassName: n } = e, r = t.length === 1, i = t[0], o = t.length, a = (l) => {
281
281
  let c = [], u = 0, g = 0, p;
282
- for (let H = 0; H < l.length; H++) {
283
- let V = l[H];
282
+ for (let j = 0; j < l.length; j++) {
283
+ let K = l[j];
284
284
  if (u === 0) {
285
- if (V === i && (r || l.slice(H, H + o) === t)) {
286
- c.push(l.slice(g, H)), g = H + o;
285
+ if (K === i && (r || l.slice(j, j + o) === t)) {
286
+ c.push(l.slice(g, j)), g = j + o;
287
287
  continue;
288
288
  }
289
- if (V === "/") {
290
- p = H;
289
+ if (K === "/") {
290
+ p = j;
291
291
  continue;
292
292
  }
293
293
  }
294
- V === "[" ? u++ : V === "]" && u--;
294
+ K === "[" ? u++ : K === "]" && u--;
295
295
  }
296
- let k = c.length === 0 ? l : l.substring(g), y = k.startsWith(ui), x = y ? k.substring(1) : k, _ = p && p > g ? p - g : void 0;
297
- return { modifiers: c, hasImportantModifier: y, baseClassName: x, maybePostfixModifierPosition: _ };
296
+ let S = c.length === 0 ? l : l.substring(g), w = S.startsWith(fi), x = w ? S.substring(1) : S, I = p && p > g ? p - g : void 0;
297
+ return { modifiers: c, hasImportantModifier: w, baseClassName: x, maybePostfixModifierPosition: I };
298
298
  };
299
299
  return n ? (l) => n({ className: l, parseClassName: a }) : a;
300
300
  };
301
- var Na = (e) => {
301
+ var Ia = (e) => {
302
302
  if (e.length <= 1) return e;
303
303
  let t = [], n = [];
304
304
  return e.forEach((r) => {
305
305
  r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r);
306
306
  }), t.push(...n.sort()), t;
307
307
  };
308
- var Ia = (e) => ({ cache: Aa(e.cacheSize), parseClassName: _a(e), ...Sa(e) });
308
+ var La = (e) => ({ cache: _a(e.cacheSize), parseClassName: Na(e), ...Sa(e) });
309
309
  var Ra = /\s+/;
310
- var La = (e, t) => {
310
+ var Ma = (e, t) => {
311
311
  let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i } = t, o = [], a = e.trim().split(Ra), l = "";
312
312
  for (let c = a.length - 1; c >= 0; c -= 1) {
313
- let u = a[c], { modifiers: g, hasImportantModifier: p, baseClassName: k, maybePostfixModifierPosition: y } = n(u), x = !!y, _ = r(x ? k.substring(0, y) : k);
314
- if (!_) {
313
+ let u = a[c], { modifiers: g, hasImportantModifier: p, baseClassName: S, maybePostfixModifierPosition: w } = n(u), x = !!w, I = r(x ? S.substring(0, w) : S);
314
+ if (!I) {
315
315
  if (!x) {
316
316
  l = u + (l.length > 0 ? " " + l : l);
317
317
  continue;
318
318
  }
319
- if (_ = r(k), !_) {
319
+ if (I = r(S), !I) {
320
320
  l = u + (l.length > 0 ? " " + l : l);
321
321
  continue;
322
322
  }
323
323
  x = false;
324
324
  }
325
- let H = Na(g).join(":"), V = p ? H + ui : H, C = V + _;
326
- if (o.includes(C)) continue;
327
- o.push(C);
328
- let $ = i(_, x);
329
- for (let Z = 0; Z < $.length; ++Z) {
330
- let v = $[Z];
331
- o.push(V + v);
325
+ let j = Ia(g).join(":"), K = p ? j + fi : j, _ = K + I;
326
+ if (o.includes(_)) continue;
327
+ o.push(_);
328
+ let F = i(I, x);
329
+ for (let ne = 0; ne < F.length; ++ne) {
330
+ let v = F[ne];
331
+ o.push(K + v);
332
332
  }
333
333
  l = u + (l.length > 0 ? " " + l : l);
334
334
  }
335
335
  return l;
336
336
  };
337
- function Ma() {
337
+ function Pa() {
338
338
  let e = 0, t, n, r = "";
339
- for (; e < arguments.length; ) (t = arguments[e++]) && (n = di(t)) && (r && (r += " "), r += n);
339
+ for (; e < arguments.length; ) (t = arguments[e++]) && (n = mi(t)) && (r && (r += " "), r += n);
340
340
  return r;
341
341
  }
342
- var di = (e) => {
342
+ var mi = (e) => {
343
343
  if (typeof e == "string") return e;
344
344
  let t, n = "";
345
- for (let r = 0; r < e.length; r++) e[r] && (t = di(e[r])) && (n && (n += " "), n += t);
345
+ for (let r = 0; r < e.length; r++) e[r] && (t = mi(e[r])) && (n && (n += " "), n += t);
346
346
  return n;
347
347
  };
348
348
  function Oa(e, ...t) {
349
349
  let n, r, i, o = a;
350
350
  function a(c) {
351
351
  let u = t.reduce((g, p) => p(g), e());
352
- return n = Ia(u), r = n.cache.get, i = n.cache.set, o = l, l(c);
352
+ return n = La(u), r = n.cache.get, i = n.cache.set, o = l, l(c);
353
353
  }
354
354
  function l(c) {
355
355
  let u = r(c);
356
356
  if (u) return u;
357
- let g = La(c, n);
357
+ let g = Ma(c, n);
358
358
  return i(c, g), g;
359
359
  }
360
360
  return function() {
361
- return o(Ma.apply(null, arguments));
361
+ return o(Pa.apply(null, arguments));
362
362
  };
363
363
  }
364
- var he = (e) => {
364
+ var ve = (e) => {
365
365
  let t = (n) => n[e] || [];
366
366
  return t.isThemeGetter = true, t;
367
367
  };
368
- var fi = /^\[(?:([a-z-]+):)?(.+)\]$/i;
369
- var Pa = /^\d+\/\d+$/;
370
- var $a = /* @__PURE__ */ new Set(["px", "full", "screen"]);
368
+ var pi = /^\[(?:([a-z-]+):)?(.+)\]$/i;
369
+ var $a = /^\d+\/\d+$/;
370
+ var Da = /* @__PURE__ */ new Set(["px", "full", "screen"]);
371
371
  var Fa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
372
- var Da = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
373
- var Ba = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
374
- var Ha = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
375
- var za = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
376
- var ct = (e) => Kt(e) || $a.has(e) || Pa.test(e);
377
- var xt = (e) => Xt(e, "length", Ya);
378
- var Kt = (e) => !!e && !Number.isNaN(Number(e));
379
- var vr = (e) => Xt(e, "number", Kt);
380
- var un = (e) => !!e && Number.isInteger(Number(e));
381
- var ja = (e) => e.endsWith("%") && Kt(e.slice(0, -1));
382
- var J = (e) => fi.test(e);
383
- var vt = (e) => Fa.test(e);
384
- var Va = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
385
- var Ua = (e) => Xt(e, Va, mi);
386
- var Ga = (e) => Xt(e, "position", mi);
387
- var Ka = /* @__PURE__ */ new Set(["image", "url"]);
388
- var Xa = (e) => Xt(e, Ka, Za);
389
- var Wa = (e) => Xt(e, "", qa);
390
- var dn = () => true;
391
- var Xt = (e, t, n) => {
392
- let r = fi.exec(e);
372
+ var Ba = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
373
+ var Ha = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
374
+ var za = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
375
+ var ja = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
376
+ var pt = (e) => Zt(e) || Da.has(e) || $a.test(e);
377
+ var St = (e) => Jt(e, "length", qa);
378
+ var Zt = (e) => !!e && !Number.isNaN(Number(e));
379
+ var Sr = (e) => Jt(e, "number", Zt);
380
+ var pn = (e) => !!e && Number.isInteger(Number(e));
381
+ var Va = (e) => e.endsWith("%") && Zt(e.slice(0, -1));
382
+ var re = (e) => pi.test(e);
383
+ var Et = (e) => Fa.test(e);
384
+ var Ua = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
385
+ var Ka = (e) => Jt(e, Ua, gi);
386
+ var Ga = (e) => Jt(e, "position", gi);
387
+ var Xa = /* @__PURE__ */ new Set(["image", "url"]);
388
+ var Ya = (e) => Jt(e, Xa, Ja);
389
+ var Wa = (e) => Jt(e, "", Za);
390
+ var gn = () => true;
391
+ var Jt = (e, t, n) => {
392
+ let r = pi.exec(e);
393
393
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : false;
394
394
  };
395
- var Ya = (e) => Da.test(e) && !Ba.test(e);
396
- var mi = () => false;
397
- var qa = (e) => Ha.test(e);
395
+ var qa = (e) => Ba.test(e) && !Ha.test(e);
396
+ var gi = () => false;
398
397
  var Za = (e) => za.test(e);
399
- var Ja = () => {
400
- let e = he("colors"), t = he("spacing"), n = he("blur"), r = he("brightness"), i = he("borderColor"), o = he("borderRadius"), a = he("borderSpacing"), l = he("borderWidth"), c = he("contrast"), u = he("grayscale"), g = he("hueRotate"), p = he("invert"), k = he("gap"), y = he("gradientColorStops"), x = he("gradientColorStopPositions"), _ = he("inset"), H = he("margin"), V = he("opacity"), C = he("padding"), $ = he("saturate"), Z = he("scale"), v = he("sepia"), M = he("skew"), W = he("space"), z = he("translate"), q = () => ["auto", "contain", "none"], O = () => ["auto", "hidden", "clip", "visible", "scroll"], h = () => ["auto", J, t], m = () => [J, t], f = () => ["", ct, xt], b = () => ["auto", Kt, J], L = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], ne = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], se = () => ["", "0", J], S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [Kt, J];
401
- return { cacheSize: 500, separator: ":", theme: { colors: [dn], spacing: [ct, xt], blur: ["none", "", vt, J], brightness: F(), borderColor: [e], borderRadius: ["none", "", "full", vt, J], borderSpacing: m(), borderWidth: f(), contrast: F(), grayscale: se(), hueRotate: F(), invert: se(), gap: m(), gradientColorStops: [e], gradientColorStopPositions: [ja, xt], inset: h(), margin: h(), opacity: F(), padding: m(), saturate: F(), scale: F(), sepia: se(), skew: F(), space: m(), translate: m() }, classGroups: { aspect: [{ aspect: ["auto", "square", "video", J] }], container: ["container"], columns: [{ columns: [vt] }], "break-after": [{ "break-after": S() }], "break-before": [{ "break-before": S() }], "break-inside": [{ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] }], "box-decoration": [{ "box-decoration": ["slice", "clone"] }], box: [{ box: ["border", "content"] }], display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"], float: [{ float: ["right", "left", "none", "start", "end"] }], clear: [{ clear: ["left", "right", "both", "none", "start", "end"] }], isolation: ["isolate", "isolation-auto"], "object-fit": [{ object: ["contain", "cover", "fill", "none", "scale-down"] }], "object-position": [{ object: [...L(), J] }], overflow: [{ overflow: O() }], "overflow-x": [{ "overflow-x": O() }], "overflow-y": [{ "overflow-y": O() }], overscroll: [{ overscroll: q() }], "overscroll-x": [{ "overscroll-x": q() }], "overscroll-y": [{ "overscroll-y": q() }], position: ["static", "fixed", "absolute", "relative", "sticky"], inset: [{ inset: [_] }], "inset-x": [{ "inset-x": [_] }], "inset-y": [{ "inset-y": [_] }], start: [{ start: [_] }], end: [{ end: [_] }], top: [{ top: [_] }], right: [{ right: [_] }], bottom: [{ bottom: [_] }], left: [{ left: [_] }], visibility: ["visible", "invisible", "collapse"], z: [{ z: ["auto", un, J] }], basis: [{ basis: h() }], "flex-direction": [{ flex: ["row", "row-reverse", "col", "col-reverse"] }], "flex-wrap": [{ flex: ["wrap", "wrap-reverse", "nowrap"] }], flex: [{ flex: ["1", "auto", "initial", "none", J] }], grow: [{ grow: se() }], shrink: [{ shrink: se() }], order: [{ order: ["first", "last", "none", un, J] }], "grid-cols": [{ "grid-cols": [dn] }], "col-start-end": [{ col: ["auto", { span: ["full", un, J] }, J] }], "col-start": [{ "col-start": b() }], "col-end": [{ "col-end": b() }], "grid-rows": [{ "grid-rows": [dn] }], "row-start-end": [{ row: ["auto", { span: [un, J] }, J] }], "row-start": [{ "row-start": b() }], "row-end": [{ "row-end": b() }], "grid-flow": [{ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] }], "auto-cols": [{ "auto-cols": ["auto", "min", "max", "fr", J] }], "auto-rows": [{ "auto-rows": ["auto", "min", "max", "fr", J] }], gap: [{ gap: [k] }], "gap-x": [{ "gap-x": [k] }], "gap-y": [{ "gap-y": [k] }], "justify-content": [{ justify: ["normal", ...te()] }], "justify-items": [{ "justify-items": ["start", "end", "center", "stretch"] }], "justify-self": [{ "justify-self": ["auto", "start", "end", "center", "stretch"] }], "align-content": [{ content: ["normal", ...te(), "baseline"] }], "align-items": [{ items: ["start", "end", "center", "baseline", "stretch"] }], "align-self": [{ self: ["auto", "start", "end", "center", "stretch", "baseline"] }], "place-content": [{ "place-content": [...te(), "baseline"] }], "place-items": [{ "place-items": ["start", "end", "center", "baseline", "stretch"] }], "place-self": [{ "place-self": ["auto", "start", "end", "center", "stretch"] }], p: [{ p: [C] }], px: [{ px: [C] }], py: [{ py: [C] }], ps: [{ ps: [C] }], pe: [{ pe: [C] }], pt: [{ pt: [C] }], pr: [{ pr: [C] }], pb: [{ pb: [C] }], pl: [{ pl: [C] }], m: [{ m: [H] }], mx: [{ mx: [H] }], my: [{ my: [H] }], ms: [{ ms: [H] }], me: [{ me: [H] }], mt: [{ mt: [H] }], mr: [{ mr: [H] }], mb: [{ mb: [H] }], ml: [{ ml: [H] }], "space-x": [{ "space-x": [W] }], "space-x-reverse": ["space-x-reverse"], "space-y": [{ "space-y": [W] }], "space-y-reverse": ["space-y-reverse"], w: [{ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", J, t] }], "min-w": [{ "min-w": [J, t, "min", "max", "fit"] }], "max-w": [{ "max-w": [J, t, "none", "full", "min", "max", "fit", "prose", { screen: [vt] }, vt] }], h: [{ h: [J, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] }], "min-h": [{ "min-h": [J, t, "min", "max", "fit", "svh", "lvh", "dvh"] }], "max-h": [{ "max-h": [J, t, "min", "max", "fit", "svh", "lvh", "dvh"] }], size: [{ size: [J, t, "auto", "min", "max", "fit"] }], "font-size": [{ text: ["base", vt, xt] }], "font-smoothing": ["antialiased", "subpixel-antialiased"], "font-style": ["italic", "not-italic"], "font-weight": [{ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", vr] }], "font-family": [{ font: [dn] }], "fvn-normal": ["normal-nums"], "fvn-ordinal": ["ordinal"], "fvn-slashed-zero": ["slashed-zero"], "fvn-figure": ["lining-nums", "oldstyle-nums"], "fvn-spacing": ["proportional-nums", "tabular-nums"], "fvn-fraction": ["diagonal-fractions", "stacked-fractions"], tracking: [{ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", J] }], "line-clamp": [{ "line-clamp": ["none", Kt, vr] }], leading: [{ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ct, J] }], "list-image": [{ "list-image": ["none", J] }], "list-style-type": [{ list: ["none", "disc", "decimal", J] }], "list-style-position": [{ list: ["inside", "outside"] }], "placeholder-color": [{ placeholder: [e] }], "placeholder-opacity": [{ "placeholder-opacity": [V] }], "text-alignment": [{ text: ["left", "center", "right", "justify", "start", "end"] }], "text-color": [{ text: [e] }], "text-opacity": [{ "text-opacity": [V] }], "text-decoration": ["underline", "overline", "line-through", "no-underline"], "text-decoration-style": [{ decoration: [...j(), "wavy"] }], "text-decoration-thickness": [{ decoration: ["auto", "from-font", ct, xt] }], "underline-offset": [{ "underline-offset": ["auto", ct, J] }], "text-decoration-color": [{ decoration: [e] }], "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], "text-overflow": ["truncate", "text-ellipsis", "text-clip"], "text-wrap": [{ text: ["wrap", "nowrap", "balance", "pretty"] }], indent: [{ indent: m() }], "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", J] }], whitespace: [{ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] }], break: [{ break: ["normal", "words", "all", "keep"] }], hyphens: [{ hyphens: ["none", "manual", "auto"] }], content: [{ content: ["none", J] }], "bg-attachment": [{ bg: ["fixed", "local", "scroll"] }], "bg-clip": [{ "bg-clip": ["border", "padding", "content", "text"] }], "bg-opacity": [{ "bg-opacity": [V] }], "bg-origin": [{ "bg-origin": ["border", "padding", "content"] }], "bg-position": [{ bg: [...L(), Ga] }], "bg-repeat": [{ bg: ["no-repeat", { repeat: ["", "x", "y", "round", "space"] }] }], "bg-size": [{ bg: ["auto", "cover", "contain", Ua] }], "bg-image": [{ bg: ["none", { "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, Xa] }], "bg-color": [{ bg: [e] }], "gradient-from-pos": [{ from: [x] }], "gradient-via-pos": [{ via: [x] }], "gradient-to-pos": [{ to: [x] }], "gradient-from": [{ from: [y] }], "gradient-via": [{ via: [y] }], "gradient-to": [{ to: [y] }], rounded: [{ rounded: [o] }], "rounded-s": [{ "rounded-s": [o] }], "rounded-e": [{ "rounded-e": [o] }], "rounded-t": [{ "rounded-t": [o] }], "rounded-r": [{ "rounded-r": [o] }], "rounded-b": [{ "rounded-b": [o] }], "rounded-l": [{ "rounded-l": [o] }], "rounded-ss": [{ "rounded-ss": [o] }], "rounded-se": [{ "rounded-se": [o] }], "rounded-ee": [{ "rounded-ee": [o] }], "rounded-es": [{ "rounded-es": [o] }], "rounded-tl": [{ "rounded-tl": [o] }], "rounded-tr": [{ "rounded-tr": [o] }], "rounded-br": [{ "rounded-br": [o] }], "rounded-bl": [{ "rounded-bl": [o] }], "border-w": [{ border: [l] }], "border-w-x": [{ "border-x": [l] }], "border-w-y": [{ "border-y": [l] }], "border-w-s": [{ "border-s": [l] }], "border-w-e": [{ "border-e": [l] }], "border-w-t": [{ "border-t": [l] }], "border-w-r": [{ "border-r": [l] }], "border-w-b": [{ "border-b": [l] }], "border-w-l": [{ "border-l": [l] }], "border-opacity": [{ "border-opacity": [V] }], "border-style": [{ border: [...j(), "hidden"] }], "divide-x": [{ "divide-x": [l] }], "divide-x-reverse": ["divide-x-reverse"], "divide-y": [{ "divide-y": [l] }], "divide-y-reverse": ["divide-y-reverse"], "divide-opacity": [{ "divide-opacity": [V] }], "divide-style": [{ divide: j() }], "border-color": [{ border: [i] }], "border-color-x": [{ "border-x": [i] }], "border-color-y": [{ "border-y": [i] }], "border-color-s": [{ "border-s": [i] }], "border-color-e": [{ "border-e": [i] }], "border-color-t": [{ "border-t": [i] }], "border-color-r": [{ "border-r": [i] }], "border-color-b": [{ "border-b": [i] }], "border-color-l": [{ "border-l": [i] }], "divide-color": [{ divide: [i] }], "outline-style": [{ outline: ["", ...j()] }], "outline-offset": [{ "outline-offset": [ct, J] }], "outline-w": [{ outline: [ct, xt] }], "outline-color": [{ outline: [e] }], "ring-w": [{ ring: f() }], "ring-w-inset": ["ring-inset"], "ring-color": [{ ring: [e] }], "ring-opacity": [{ "ring-opacity": [V] }], "ring-offset-w": [{ "ring-offset": [ct, xt] }], "ring-offset-color": [{ "ring-offset": [e] }], shadow: [{ shadow: ["", "inner", "none", vt, Wa] }], "shadow-color": [{ shadow: [dn] }], opacity: [{ opacity: [V] }], "mix-blend": [{ "mix-blend": [...ne(), "plus-lighter", "plus-darker"] }], "bg-blend": [{ "bg-blend": ne() }], filter: [{ filter: ["", "none"] }], blur: [{ blur: [n] }], brightness: [{ brightness: [r] }], contrast: [{ contrast: [c] }], "drop-shadow": [{ "drop-shadow": ["", "none", vt, J] }], grayscale: [{ grayscale: [u] }], "hue-rotate": [{ "hue-rotate": [g] }], invert: [{ invert: [p] }], saturate: [{ saturate: [$] }], sepia: [{ sepia: [v] }], "backdrop-filter": [{ "backdrop-filter": ["", "none"] }], "backdrop-blur": [{ "backdrop-blur": [n] }], "backdrop-brightness": [{ "backdrop-brightness": [r] }], "backdrop-contrast": [{ "backdrop-contrast": [c] }], "backdrop-grayscale": [{ "backdrop-grayscale": [u] }], "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [g] }], "backdrop-invert": [{ "backdrop-invert": [p] }], "backdrop-opacity": [{ "backdrop-opacity": [V] }], "backdrop-saturate": [{ "backdrop-saturate": [$] }], "backdrop-sepia": [{ "backdrop-sepia": [v] }], "border-collapse": [{ border: ["collapse", "separate"] }], "border-spacing": [{ "border-spacing": [a] }], "border-spacing-x": [{ "border-spacing-x": [a] }], "border-spacing-y": [{ "border-spacing-y": [a] }], "table-layout": [{ table: ["auto", "fixed"] }], caption: [{ caption: ["top", "bottom"] }], transition: [{ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", J] }], duration: [{ duration: F() }], ease: [{ ease: ["linear", "in", "out", "in-out", J] }], delay: [{ delay: F() }], animate: [{ animate: ["none", "spin", "ping", "pulse", "bounce", J] }], transform: [{ transform: ["", "gpu", "none"] }], scale: [{ scale: [Z] }], "scale-x": [{ "scale-x": [Z] }], "scale-y": [{ "scale-y": [Z] }], rotate: [{ rotate: [un, J] }], "translate-x": [{ "translate-x": [z] }], "translate-y": [{ "translate-y": [z] }], "skew-x": [{ "skew-x": [M] }], "skew-y": [{ "skew-y": [M] }], "transform-origin": [{ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", J] }], accent: [{ accent: ["auto", e] }], appearance: [{ appearance: ["none", "auto"] }], cursor: [{ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", J] }], "caret-color": [{ caret: [e] }], "pointer-events": [{ "pointer-events": ["none", "auto"] }], resize: [{ resize: ["none", "y", "x", ""] }], "scroll-behavior": [{ scroll: ["auto", "smooth"] }], "scroll-m": [{ "scroll-m": m() }], "scroll-mx": [{ "scroll-mx": m() }], "scroll-my": [{ "scroll-my": m() }], "scroll-ms": [{ "scroll-ms": m() }], "scroll-me": [{ "scroll-me": m() }], "scroll-mt": [{ "scroll-mt": m() }], "scroll-mr": [{ "scroll-mr": m() }], "scroll-mb": [{ "scroll-mb": m() }], "scroll-ml": [{ "scroll-ml": m() }], "scroll-p": [{ "scroll-p": m() }], "scroll-px": [{ "scroll-px": m() }], "scroll-py": [{ "scroll-py": m() }], "scroll-ps": [{ "scroll-ps": m() }], "scroll-pe": [{ "scroll-pe": m() }], "scroll-pt": [{ "scroll-pt": m() }], "scroll-pr": [{ "scroll-pr": m() }], "scroll-pb": [{ "scroll-pb": m() }], "scroll-pl": [{ "scroll-pl": m() }], "snap-align": [{ snap: ["start", "end", "center", "align-none"] }], "snap-stop": [{ snap: ["normal", "always"] }], "snap-type": [{ snap: ["none", "x", "y", "both"] }], "snap-strictness": [{ snap: ["mandatory", "proximity"] }], touch: [{ touch: ["auto", "none", "manipulation"] }], "touch-x": [{ "touch-pan": ["x", "left", "right"] }], "touch-y": [{ "touch-pan": ["y", "up", "down"] }], "touch-pz": ["touch-pinch-zoom"], select: [{ select: ["none", "text", "all", "auto"] }], "will-change": [{ "will-change": ["auto", "scroll", "contents", "transform", J] }], fill: [{ fill: [e, "none"] }], "stroke-w": [{ stroke: [ct, xt, vr] }], stroke: [{ stroke: [e, "none"] }], sr: ["sr-only", "not-sr-only"], "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }] }, conflictingClassGroups: { overflow: ["overflow-x", "overflow-y"], overscroll: ["overscroll-x", "overscroll-y"], inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"], "inset-x": ["right", "left"], "inset-y": ["top", "bottom"], flex: ["basis", "grow", "shrink"], gap: ["gap-x", "gap-y"], p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"], px: ["pr", "pl"], py: ["pt", "pb"], m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"], mx: ["mr", "ml"], my: ["mt", "mb"], size: ["w", "h"], "font-size": ["leading"], "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"], "fvn-ordinal": ["fvn-normal"], "fvn-slashed-zero": ["fvn-normal"], "fvn-figure": ["fvn-normal"], "fvn-spacing": ["fvn-normal"], "fvn-fraction": ["fvn-normal"], "line-clamp": ["display", "overflow"], rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"], "rounded-s": ["rounded-ss", "rounded-es"], "rounded-e": ["rounded-se", "rounded-ee"], "rounded-t": ["rounded-tl", "rounded-tr"], "rounded-r": ["rounded-tr", "rounded-br"], "rounded-b": ["rounded-br", "rounded-bl"], "rounded-l": ["rounded-tl", "rounded-bl"], "border-spacing": ["border-spacing-x", "border-spacing-y"], "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"], "border-w-x": ["border-w-r", "border-w-l"], "border-w-y": ["border-w-t", "border-w-b"], "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"], "border-color-x": ["border-color-r", "border-color-l"], "border-color-y": ["border-color-t", "border-color-b"], "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"], "scroll-mx": ["scroll-mr", "scroll-ml"], "scroll-my": ["scroll-mt", "scroll-mb"], "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"], "scroll-px": ["scroll-pr", "scroll-pl"], "scroll-py": ["scroll-pt", "scroll-pb"], touch: ["touch-x", "touch-y", "touch-pz"], "touch-x": ["touch"], "touch-y": ["touch"], "touch-pz": ["touch"] }, conflictingClassGroupModifiers: { "font-size": ["leading"] } };
398
+ var Ja = (e) => ja.test(e);
399
+ var Qa = () => {
400
+ let e = ve("colors"), t = ve("spacing"), n = ve("blur"), r = ve("brightness"), i = ve("borderColor"), o = ve("borderRadius"), a = ve("borderSpacing"), l = ve("borderWidth"), c = ve("contrast"), u = ve("grayscale"), g = ve("hueRotate"), p = ve("invert"), S = ve("gap"), w = ve("gradientColorStops"), x = ve("gradientColorStopPositions"), I = ve("inset"), j = ve("margin"), K = ve("opacity"), _ = ve("padding"), F = ve("saturate"), ne = ve("scale"), v = ve("sepia"), O = ve("skew"), Z = ve("space"), $ = ve("translate"), W = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], h = () => ["auto", re, t], m = () => [re, t], f = () => ["", pt, St], b = () => ["auto", Zt, re], M = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["solid", "dashed", "dotted", "double", "none"], oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ie = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], C = () => ["", "0", re], X = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Y = () => [Zt, re];
401
+ return { cacheSize: 500, separator: ":", theme: { colors: [gn], spacing: [pt, St], blur: ["none", "", Et, re], brightness: Y(), borderColor: [e], borderRadius: ["none", "", "full", Et, re], borderSpacing: m(), borderWidth: f(), contrast: Y(), grayscale: C(), hueRotate: Y(), invert: C(), gap: m(), gradientColorStops: [e], gradientColorStopPositions: [Va, St], inset: h(), margin: h(), opacity: Y(), padding: m(), saturate: Y(), scale: Y(), sepia: C(), skew: Y(), space: m(), translate: m() }, classGroups: { aspect: [{ aspect: ["auto", "square", "video", re] }], container: ["container"], columns: [{ columns: [Et] }], "break-after": [{ "break-after": X() }], "break-before": [{ "break-before": X() }], "break-inside": [{ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] }], "box-decoration": [{ "box-decoration": ["slice", "clone"] }], box: [{ box: ["border", "content"] }], display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"], float: [{ float: ["right", "left", "none", "start", "end"] }], clear: [{ clear: ["left", "right", "both", "none", "start", "end"] }], isolation: ["isolate", "isolation-auto"], "object-fit": [{ object: ["contain", "cover", "fill", "none", "scale-down"] }], "object-position": [{ object: [...M(), re] }], overflow: [{ overflow: D() }], "overflow-x": [{ "overflow-x": D() }], "overflow-y": [{ "overflow-y": D() }], overscroll: [{ overscroll: W() }], "overscroll-x": [{ "overscroll-x": W() }], "overscroll-y": [{ "overscroll-y": W() }], position: ["static", "fixed", "absolute", "relative", "sticky"], inset: [{ inset: [I] }], "inset-x": [{ "inset-x": [I] }], "inset-y": [{ "inset-y": [I] }], start: [{ start: [I] }], end: [{ end: [I] }], top: [{ top: [I] }], right: [{ right: [I] }], bottom: [{ bottom: [I] }], left: [{ left: [I] }], visibility: ["visible", "invisible", "collapse"], z: [{ z: ["auto", pn, re] }], basis: [{ basis: h() }], "flex-direction": [{ flex: ["row", "row-reverse", "col", "col-reverse"] }], "flex-wrap": [{ flex: ["wrap", "wrap-reverse", "nowrap"] }], flex: [{ flex: ["1", "auto", "initial", "none", re] }], grow: [{ grow: C() }], shrink: [{ shrink: C() }], order: [{ order: ["first", "last", "none", pn, re] }], "grid-cols": [{ "grid-cols": [gn] }], "col-start-end": [{ col: ["auto", { span: ["full", pn, re] }, re] }], "col-start": [{ "col-start": b() }], "col-end": [{ "col-end": b() }], "grid-rows": [{ "grid-rows": [gn] }], "row-start-end": [{ row: ["auto", { span: [pn, re] }, re] }], "row-start": [{ "row-start": b() }], "row-end": [{ "row-end": b() }], "grid-flow": [{ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] }], "auto-cols": [{ "auto-cols": ["auto", "min", "max", "fr", re] }], "auto-rows": [{ "auto-rows": ["auto", "min", "max", "fr", re] }], gap: [{ gap: [S] }], "gap-x": [{ "gap-x": [S] }], "gap-y": [{ "gap-y": [S] }], "justify-content": [{ justify: ["normal", ...ie()] }], "justify-items": [{ "justify-items": ["start", "end", "center", "stretch"] }], "justify-self": [{ "justify-self": ["auto", "start", "end", "center", "stretch"] }], "align-content": [{ content: ["normal", ...ie(), "baseline"] }], "align-items": [{ items: ["start", "end", "center", "baseline", "stretch"] }], "align-self": [{ self: ["auto", "start", "end", "center", "stretch", "baseline"] }], "place-content": [{ "place-content": [...ie(), "baseline"] }], "place-items": [{ "place-items": ["start", "end", "center", "baseline", "stretch"] }], "place-self": [{ "place-self": ["auto", "start", "end", "center", "stretch"] }], p: [{ p: [_] }], px: [{ px: [_] }], py: [{ py: [_] }], ps: [{ ps: [_] }], pe: [{ pe: [_] }], pt: [{ pt: [_] }], pr: [{ pr: [_] }], pb: [{ pb: [_] }], pl: [{ pl: [_] }], m: [{ m: [j] }], mx: [{ mx: [j] }], my: [{ my: [j] }], ms: [{ ms: [j] }], me: [{ me: [j] }], mt: [{ mt: [j] }], mr: [{ mr: [j] }], mb: [{ mb: [j] }], ml: [{ ml: [j] }], "space-x": [{ "space-x": [Z] }], "space-x-reverse": ["space-x-reverse"], "space-y": [{ "space-y": [Z] }], "space-y-reverse": ["space-y-reverse"], w: [{ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", re, t] }], "min-w": [{ "min-w": [re, t, "min", "max", "fit"] }], "max-w": [{ "max-w": [re, t, "none", "full", "min", "max", "fit", "prose", { screen: [Et] }, Et] }], h: [{ h: [re, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] }], "min-h": [{ "min-h": [re, t, "min", "max", "fit", "svh", "lvh", "dvh"] }], "max-h": [{ "max-h": [re, t, "min", "max", "fit", "svh", "lvh", "dvh"] }], size: [{ size: [re, t, "auto", "min", "max", "fit"] }], "font-size": [{ text: ["base", Et, St] }], "font-smoothing": ["antialiased", "subpixel-antialiased"], "font-style": ["italic", "not-italic"], "font-weight": [{ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Sr] }], "font-family": [{ font: [gn] }], "fvn-normal": ["normal-nums"], "fvn-ordinal": ["ordinal"], "fvn-slashed-zero": ["slashed-zero"], "fvn-figure": ["lining-nums", "oldstyle-nums"], "fvn-spacing": ["proportional-nums", "tabular-nums"], "fvn-fraction": ["diagonal-fractions", "stacked-fractions"], tracking: [{ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", re] }], "line-clamp": [{ "line-clamp": ["none", Zt, Sr] }], leading: [{ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", pt, re] }], "list-image": [{ "list-image": ["none", re] }], "list-style-type": [{ list: ["none", "disc", "decimal", re] }], "list-style-position": [{ list: ["inside", "outside"] }], "placeholder-color": [{ placeholder: [e] }], "placeholder-opacity": [{ "placeholder-opacity": [K] }], "text-alignment": [{ text: ["left", "center", "right", "justify", "start", "end"] }], "text-color": [{ text: [e] }], "text-opacity": [{ "text-opacity": [K] }], "text-decoration": ["underline", "overline", "line-through", "no-underline"], "text-decoration-style": [{ decoration: [...G(), "wavy"] }], "text-decoration-thickness": [{ decoration: ["auto", "from-font", pt, St] }], "underline-offset": [{ "underline-offset": ["auto", pt, re] }], "text-decoration-color": [{ decoration: [e] }], "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], "text-overflow": ["truncate", "text-ellipsis", "text-clip"], "text-wrap": [{ text: ["wrap", "nowrap", "balance", "pretty"] }], indent: [{ indent: m() }], "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", re] }], whitespace: [{ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] }], break: [{ break: ["normal", "words", "all", "keep"] }], hyphens: [{ hyphens: ["none", "manual", "auto"] }], content: [{ content: ["none", re] }], "bg-attachment": [{ bg: ["fixed", "local", "scroll"] }], "bg-clip": [{ "bg-clip": ["border", "padding", "content", "text"] }], "bg-opacity": [{ "bg-opacity": [K] }], "bg-origin": [{ "bg-origin": ["border", "padding", "content"] }], "bg-position": [{ bg: [...M(), Ga] }], "bg-repeat": [{ bg: ["no-repeat", { repeat: ["", "x", "y", "round", "space"] }] }], "bg-size": [{ bg: ["auto", "cover", "contain", Ka] }], "bg-image": [{ bg: ["none", { "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, Ya] }], "bg-color": [{ bg: [e] }], "gradient-from-pos": [{ from: [x] }], "gradient-via-pos": [{ via: [x] }], "gradient-to-pos": [{ to: [x] }], "gradient-from": [{ from: [w] }], "gradient-via": [{ via: [w] }], "gradient-to": [{ to: [w] }], rounded: [{ rounded: [o] }], "rounded-s": [{ "rounded-s": [o] }], "rounded-e": [{ "rounded-e": [o] }], "rounded-t": [{ "rounded-t": [o] }], "rounded-r": [{ "rounded-r": [o] }], "rounded-b": [{ "rounded-b": [o] }], "rounded-l": [{ "rounded-l": [o] }], "rounded-ss": [{ "rounded-ss": [o] }], "rounded-se": [{ "rounded-se": [o] }], "rounded-ee": [{ "rounded-ee": [o] }], "rounded-es": [{ "rounded-es": [o] }], "rounded-tl": [{ "rounded-tl": [o] }], "rounded-tr": [{ "rounded-tr": [o] }], "rounded-br": [{ "rounded-br": [o] }], "rounded-bl": [{ "rounded-bl": [o] }], "border-w": [{ border: [l] }], "border-w-x": [{ "border-x": [l] }], "border-w-y": [{ "border-y": [l] }], "border-w-s": [{ "border-s": [l] }], "border-w-e": [{ "border-e": [l] }], "border-w-t": [{ "border-t": [l] }], "border-w-r": [{ "border-r": [l] }], "border-w-b": [{ "border-b": [l] }], "border-w-l": [{ "border-l": [l] }], "border-opacity": [{ "border-opacity": [K] }], "border-style": [{ border: [...G(), "hidden"] }], "divide-x": [{ "divide-x": [l] }], "divide-x-reverse": ["divide-x-reverse"], "divide-y": [{ "divide-y": [l] }], "divide-y-reverse": ["divide-y-reverse"], "divide-opacity": [{ "divide-opacity": [K] }], "divide-style": [{ divide: G() }], "border-color": [{ border: [i] }], "border-color-x": [{ "border-x": [i] }], "border-color-y": [{ "border-y": [i] }], "border-color-s": [{ "border-s": [i] }], "border-color-e": [{ "border-e": [i] }], "border-color-t": [{ "border-t": [i] }], "border-color-r": [{ "border-r": [i] }], "border-color-b": [{ "border-b": [i] }], "border-color-l": [{ "border-l": [i] }], "divide-color": [{ divide: [i] }], "outline-style": [{ outline: ["", ...G()] }], "outline-offset": [{ "outline-offset": [pt, re] }], "outline-w": [{ outline: [pt, St] }], "outline-color": [{ outline: [e] }], "ring-w": [{ ring: f() }], "ring-w-inset": ["ring-inset"], "ring-color": [{ ring: [e] }], "ring-opacity": [{ "ring-opacity": [K] }], "ring-offset-w": [{ "ring-offset": [pt, St] }], "ring-offset-color": [{ "ring-offset": [e] }], shadow: [{ shadow: ["", "inner", "none", Et, Wa] }], "shadow-color": [{ shadow: [gn] }], opacity: [{ opacity: [K] }], "mix-blend": [{ "mix-blend": [...oe(), "plus-lighter", "plus-darker"] }], "bg-blend": [{ "bg-blend": oe() }], filter: [{ filter: ["", "none"] }], blur: [{ blur: [n] }], brightness: [{ brightness: [r] }], contrast: [{ contrast: [c] }], "drop-shadow": [{ "drop-shadow": ["", "none", Et, re] }], grayscale: [{ grayscale: [u] }], "hue-rotate": [{ "hue-rotate": [g] }], invert: [{ invert: [p] }], saturate: [{ saturate: [F] }], sepia: [{ sepia: [v] }], "backdrop-filter": [{ "backdrop-filter": ["", "none"] }], "backdrop-blur": [{ "backdrop-blur": [n] }], "backdrop-brightness": [{ "backdrop-brightness": [r] }], "backdrop-contrast": [{ "backdrop-contrast": [c] }], "backdrop-grayscale": [{ "backdrop-grayscale": [u] }], "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [g] }], "backdrop-invert": [{ "backdrop-invert": [p] }], "backdrop-opacity": [{ "backdrop-opacity": [K] }], "backdrop-saturate": [{ "backdrop-saturate": [F] }], "backdrop-sepia": [{ "backdrop-sepia": [v] }], "border-collapse": [{ border: ["collapse", "separate"] }], "border-spacing": [{ "border-spacing": [a] }], "border-spacing-x": [{ "border-spacing-x": [a] }], "border-spacing-y": [{ "border-spacing-y": [a] }], "table-layout": [{ table: ["auto", "fixed"] }], caption: [{ caption: ["top", "bottom"] }], transition: [{ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", re] }], duration: [{ duration: Y() }], ease: [{ ease: ["linear", "in", "out", "in-out", re] }], delay: [{ delay: Y() }], animate: [{ animate: ["none", "spin", "ping", "pulse", "bounce", re] }], transform: [{ transform: ["", "gpu", "none"] }], scale: [{ scale: [ne] }], "scale-x": [{ "scale-x": [ne] }], "scale-y": [{ "scale-y": [ne] }], rotate: [{ rotate: [pn, re] }], "translate-x": [{ "translate-x": [$] }], "translate-y": [{ "translate-y": [$] }], "skew-x": [{ "skew-x": [O] }], "skew-y": [{ "skew-y": [O] }], "transform-origin": [{ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", re] }], accent: [{ accent: ["auto", e] }], appearance: [{ appearance: ["none", "auto"] }], cursor: [{ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", re] }], "caret-color": [{ caret: [e] }], "pointer-events": [{ "pointer-events": ["none", "auto"] }], resize: [{ resize: ["none", "y", "x", ""] }], "scroll-behavior": [{ scroll: ["auto", "smooth"] }], "scroll-m": [{ "scroll-m": m() }], "scroll-mx": [{ "scroll-mx": m() }], "scroll-my": [{ "scroll-my": m() }], "scroll-ms": [{ "scroll-ms": m() }], "scroll-me": [{ "scroll-me": m() }], "scroll-mt": [{ "scroll-mt": m() }], "scroll-mr": [{ "scroll-mr": m() }], "scroll-mb": [{ "scroll-mb": m() }], "scroll-ml": [{ "scroll-ml": m() }], "scroll-p": [{ "scroll-p": m() }], "scroll-px": [{ "scroll-px": m() }], "scroll-py": [{ "scroll-py": m() }], "scroll-ps": [{ "scroll-ps": m() }], "scroll-pe": [{ "scroll-pe": m() }], "scroll-pt": [{ "scroll-pt": m() }], "scroll-pr": [{ "scroll-pr": m() }], "scroll-pb": [{ "scroll-pb": m() }], "scroll-pl": [{ "scroll-pl": m() }], "snap-align": [{ snap: ["start", "end", "center", "align-none"] }], "snap-stop": [{ snap: ["normal", "always"] }], "snap-type": [{ snap: ["none", "x", "y", "both"] }], "snap-strictness": [{ snap: ["mandatory", "proximity"] }], touch: [{ touch: ["auto", "none", "manipulation"] }], "touch-x": [{ "touch-pan": ["x", "left", "right"] }], "touch-y": [{ "touch-pan": ["y", "up", "down"] }], "touch-pz": ["touch-pinch-zoom"], select: [{ select: ["none", "text", "all", "auto"] }], "will-change": [{ "will-change": ["auto", "scroll", "contents", "transform", re] }], fill: [{ fill: [e, "none"] }], "stroke-w": [{ stroke: [pt, St, Sr] }], stroke: [{ stroke: [e, "none"] }], sr: ["sr-only", "not-sr-only"], "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }] }, conflictingClassGroups: { overflow: ["overflow-x", "overflow-y"], overscroll: ["overscroll-x", "overscroll-y"], inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"], "inset-x": ["right", "left"], "inset-y": ["top", "bottom"], flex: ["basis", "grow", "shrink"], gap: ["gap-x", "gap-y"], p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"], px: ["pr", "pl"], py: ["pt", "pb"], m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"], mx: ["mr", "ml"], my: ["mt", "mb"], size: ["w", "h"], "font-size": ["leading"], "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"], "fvn-ordinal": ["fvn-normal"], "fvn-slashed-zero": ["fvn-normal"], "fvn-figure": ["fvn-normal"], "fvn-spacing": ["fvn-normal"], "fvn-fraction": ["fvn-normal"], "line-clamp": ["display", "overflow"], rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"], "rounded-s": ["rounded-ss", "rounded-es"], "rounded-e": ["rounded-se", "rounded-ee"], "rounded-t": ["rounded-tl", "rounded-tr"], "rounded-r": ["rounded-tr", "rounded-br"], "rounded-b": ["rounded-br", "rounded-bl"], "rounded-l": ["rounded-tl", "rounded-bl"], "border-spacing": ["border-spacing-x", "border-spacing-y"], "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"], "border-w-x": ["border-w-r", "border-w-l"], "border-w-y": ["border-w-t", "border-w-b"], "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"], "border-color-x": ["border-color-r", "border-color-l"], "border-color-y": ["border-color-t", "border-color-b"], "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"], "scroll-mx": ["scroll-mr", "scroll-ml"], "scroll-my": ["scroll-mt", "scroll-mb"], "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"], "scroll-px": ["scroll-pr", "scroll-pl"], "scroll-py": ["scroll-pt", "scroll-pb"], touch: ["touch-x", "touch-y", "touch-pz"], "touch-x": ["touch"], "touch-y": ["touch"], "touch-pz": ["touch"] }, conflictingClassGroupModifiers: { "font-size": ["leading"] } };
402
402
  };
403
- Oa(Ja);
404
- K("<div style=overflow:visible>");
405
- K('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">');
406
- K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6"></path><path d="M11 13l9-9"></path><path d="M15 4h5v5">');
407
- K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1=12 x2=12 y1=19 y2=22>');
408
- K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 22 19"fill=none><path d="M6.76263 18.6626C7.48251 18.6626 7.95474 18.1682 7.95474 17.4895C7.95474 17.1207 7.80474 16.8576 7.58683 16.6361L5.3018 14.4137L2.84621 12.3589L2.44374 13.0037L5.92137 13.1622H17.9232C20.4842 13.1622 21.593 12.021 21.593 9.47237V3.66983C21.593 1.10875 20.4842 0 17.9232 0H12.5414C11.8179 0 11.3018 0.545895 11.3018 1.21695C11.3018 1.888 11.8179 2.43389 12.5414 2.43389H17.8424C18.7937 2.43389 19.1897 2.83653 19.1897 3.78784V9.35747C19.1897 10.3257 18.7937 10.7314 17.8424 10.7314H5.92137L2.44374 10.8832L2.84621 11.5281L5.3018 9.47993L7.58683 7.2606C7.80474 7.03914 7.95474 6.7693 7.95474 6.40049C7.95474 5.72854 7.48251 5.22747 6.76263 5.22747C6.46129 5.22747 6.12975 5.36905 5.89231 5.6096L0.376815 11.0425C0.134921 11.2777 0 11.6141 0 11.9452C0 12.2728 0.134921 12.6158 0.376815 12.848L5.89231 18.2871C6.12975 18.5276 6.46129 18.6626 6.76263 18.6626Z"fill=currentColor>');
409
- K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4.01 7.58 4.01 12C4.01 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14H17.65C16.83 16.33 14.61 18 12 18C8.69 18 6 15.31 6 12C6 8.69 8.69 6 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H20V4L17.65 6.35Z"fill=currentColor>');
410
- K('<div style="background-image:linear-gradient(in oklab 180deg, oklab(88.7% 0.086 -0.058) 0%, oklab(83.2% 0.132 -0.089) 100%)"><span>');
411
- K('<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-[#B3B3B3] py-0 bg-[#F7F7F7]"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 font-medium w-fit h-fit">');
412
- K('<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-white py-0"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 font-medium w-fit h-fit">&gt;');
413
- K('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">');
414
- K('<div role=button><div class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">');
415
- K('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-[5px] w-auto h-fit self-stretch [border-top-width:0.5px] border-t-solid border-t-[#D9D9D9] antialiased rounded-t-none rounded-b-xs -mt-px"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">');
416
- K('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">No</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Yes');
417
- K('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Discard?');
418
- K('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Retry</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Ok');
419
- K('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-[#B91C1C] text-[12px] leading-4 font-sans font-medium">');
420
- K('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Undo');
421
- K('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Reply');
422
- K('<button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">');
423
- K('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">');
424
- K('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col justify-center items-end rounded-xs bg-white antialiased w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit tabular-nums">');
425
- K('<button data-react-grab-ignore-events class="contain-layout shrink-0 flex flex-col items-start rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] p-1 size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div data-react-grab-ignore-events class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black pointer-events-none">');
426
- K('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50 wrap-break-word overflow-y-auto"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none>');
427
- K('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-auto h-fit"><div class="contain-layout flex items-center px-0 py-px w-auto h-fit rounded-[1.5px] gap-[3px]"><span class="text-[12px] leading-4 font-sans font-medium w-auto h-fit whitespace-normal text-[#71717a] animate-pulse tabular-nums">');
428
- K('<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">');
429
- K('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Double click to edit');
430
- K('<div class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit">');
431
- K('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Press');
432
- K('<div class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-[2px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit"><span class="text-[9px] leading-none font-medium text-black">Esc');
433
- K('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">to dismiss');
434
- K('<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit">');
435
- K('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div></div><div class="grid transition-[grid-template-rows] duration-30 ease-out self-stretch"><div>');
436
- K('<div class="shrink-0 flex items-center gap-0.5 w-full mb-0.5 overflow-hidden"><span class="text-[#a1a1aa] text-[9px] leading-3 shrink-0">>previously:</span><span class="text-[#a1a1aa] text-[9px] leading-3 italic truncate whitespace-nowrap">');
437
- K("<button>");
438
- K('<button class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit cursor-pointer transition-all hover:scale-105">');
439
- K('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"rows=1 style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none></textarea><div class="flex items-center gap-0.5 ml-1 w-[17px] h-[17px] justify-end">');
440
- K('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div>');
441
- K('<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)] select-none"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-xs bg-white antialiased w-fit h-fit p-0">');
442
- Dn(["click", "pointerdown", "mousedown", "pointerup", "input", "keydown"]);
443
- K('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>');
444
- Dn(["click"]);
445
- var Mi = "0.5.26";
446
- var Un = `bippy-${Mi}`;
447
- var Ri = Object.defineProperty;
448
- var Vl = Object.prototype.hasOwnProperty;
449
- var mn = () => {
403
+ Oa(Qa);
404
+ Q("<div style=overflow:visible>");
405
+ Q('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">');
406
+ Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6"></path><path d="M11 13l9-9"></path><path d="M15 4h5v5">');
407
+ Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 22 19"fill=none><path d="M6.76263 18.6626C7.48251 18.6626 7.95474 18.1682 7.95474 17.4895C7.95474 17.1207 7.80474 16.8576 7.58683 16.6361L5.3018 14.4137L2.84621 12.3589L2.44374 13.0037L5.92137 13.1622H17.9232C20.4842 13.1622 21.593 12.021 21.593 9.47237V3.66983C21.593 1.10875 20.4842 0 17.9232 0H12.5414C11.8179 0 11.3018 0.545895 11.3018 1.21695C11.3018 1.888 11.8179 2.43389 12.5414 2.43389H17.8424C18.7937 2.43389 19.1897 2.83653 19.1897 3.78784V9.35747C19.1897 10.3257 18.7937 10.7314 17.8424 10.7314H5.92137L2.44374 10.8832L2.84621 11.5281L5.3018 9.47993L7.58683 7.2606C7.80474 7.03914 7.95474 6.7693 7.95474 6.40049C7.95474 5.72854 7.48251 5.22747 6.76263 5.22747C6.46129 5.22747 6.12975 5.36905 5.89231 5.6096L0.376815 11.0425C0.134921 11.2777 0 11.6141 0 11.9452C0 12.2728 0.134921 12.6158 0.376815 12.848L5.89231 18.2871C6.12975 18.5276 6.46129 18.6626 6.76263 18.6626Z"fill=currentColor>');
408
+ Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4.01 7.58 4.01 12C4.01 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14H17.65C16.83 16.33 14.61 18 12 18C8.69 18 6 15.31 6 12C6 8.69 8.69 6 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H20V4L17.65 6.35Z"fill=currentColor>');
409
+ Q("<div><span>");
410
+ Q('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">');
411
+ Q("<span class=text-black/50>");
412
+ Q('<div role=button><div class="text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit"><span class=text-black>');
413
+ Q('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-[5px] w-auto h-fit self-stretch [border-top-width:0.5px] border-t-solid border-t-[#D9D9D9] antialiased rounded-t-none rounded-b-sm -mt-px"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">');
414
+ Q('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">No</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[13px] leading-3.5 font-sans font-medium">Yes');
415
+ Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-black text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Discard?');
416
+ Q('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">Retry</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">Ok');
417
+ Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-[#B91C1C] text-[13px] leading-4 font-sans font-medium">');
418
+ Q('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[13px] leading-3.5 font-sans font-medium">Undo');
419
+ Q('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">Reply');
420
+ Q('<button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">');
421
+ Q('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">');
422
+ Q('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col justify-center items-end rounded-sm bg-white antialiased w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-1.5 w-full h-fit"><span class="text-black text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit tabular-nums">');
423
+ Q('<button data-react-grab-ignore-events class="contain-layout shrink-0 flex flex-col items-start rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] p-1 size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div data-react-grab-ignore-events class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black pointer-events-none">');
424
+ Q('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[13px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50 wrap-break-word overflow-y-auto"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none>');
425
+ Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-auto h-fit"><div class="contain-layout flex items-center px-0 py-px w-auto h-fit rounded-sm gap-[3px]"><span class="text-[13px] leading-4 font-sans font-medium w-auto h-fit whitespace-normal text-[#71717a] animate-pulse tabular-nums">');
426
+ Q('<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit"><span class="text-label-muted text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Press</span><div class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-[2px] rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit"><span class="text-[10px] leading-none font-medium text-black">Esc</span></div><span class="text-label-muted text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">to dismiss');
427
+ Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit pl-1.5 pr-1"></div><div class="grid transition-[grid-template-rows] duration-30 ease-out self-stretch"><div>');
428
+ Q('<div class="shrink-0 flex items-center gap-0.5 w-full mb-0.5 overflow-hidden"><span class="text-[#a1a1aa] text-[10px] leading-3 shrink-0">>previously:</span><span class="text-[#a1a1aa] text-[10px] leading-3 italic truncate whitespace-nowrap">');
429
+ Q('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[13px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"placeholder="type prompt"rows=1 style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none></textarea><button class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit cursor-pointer transition-all hover:scale-105 ml-1">');
430
+ Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit pl-1.5 pr-1">');
431
+ Q('<div data-react-grab-ignore-events class="fixed font-sans text-[13px] antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)] select-none"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-sm bg-white antialiased w-fit h-fit p-0">');
432
+ Wt(["click", "pointerdown", "mousedown", "pointerup", "input", "keydown"]);
433
+ Q('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>');
434
+ Wt(["click"]);
435
+ Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 18 18"fill=currentColor><path opacity=0.4 d="M7.65631 10.9565C7.31061 10.0014 7.54012 8.96635 8.25592 8.25195C8.74522 7.76615 9.38771 7.49951 10.0694 7.49951C10.3682 7.49951 10.6641 7.55171 10.9483 7.65381L16.0001 9.49902V4.75C16.0001 3.2334 14.7667 2 13.2501 2H4.75012C3.23352 2 2.00012 3.2334 2.00012 4.75V13.25C2.00012 14.7666 3.23352 16 4.75012 16H9.49962L7.65631 10.9565Z"></path><path d="M17.296 11.5694L10.4415 9.06545C10.0431 8.92235 9.61441 9.01658 9.31551 9.31338C9.01671 9.61168 8.92101 10.0429 9.06551 10.4413L11.5704 17.2948C11.7247 17.7191 12.128 18.0004 12.5772 18.0004C12.585 18.0004 12.5918 17.9999 12.5987 17.9999C13.0577 17.9906 13.4591 17.6913 13.5987 17.2543L14.4854 14.4857L17.2559 13.5985C17.6914 13.4589 17.9903 13.057 18 12.599C18.0097 12.141 17.7267 11.7276 17.296 11.5694Z">');
436
+ Q('<svg xmlns=http://www.w3.org/2000/svg width=12 height=12 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2.5 stroke-linecap=round stroke-linejoin=round><path d="m18 15-6-6-6 6">');
437
+ Q('<div data-react-grab-ignore-events style=z-index:2147483647><div><div><button data-react-grab-ignore-events class="contain-layout shrink-0 flex items-center justify-center cursor-pointer transition-all hover:scale-105"></button></div><button data-react-grab-ignore-events class="contain-layout shrink-0 flex items-center justify-center cursor-pointer transition-all hover:scale-105">');
438
+ Wt(["pointerdown", "pointermove", "pointerup", "click"]);
439
+ var Oi = "0.5.26";
440
+ var Gn = `bippy-${Oi}`;
441
+ var Mi = Object.defineProperty;
442
+ var Hl = Object.prototype.hasOwnProperty;
443
+ var hn = () => {
450
444
  };
451
- var Oi = (e) => {
445
+ var $i = (e) => {
452
446
  try {
453
447
  Function.prototype.toString.call(e).indexOf("^_^") > -1 && setTimeout(() => {
454
448
  throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build");
@@ -456,30 +450,30 @@ var Oi = (e) => {
456
450
  } catch {
457
451
  }
458
452
  };
459
- var Gn = (e = ut()) => "getFiberRoots" in e;
460
- var Pi = false;
461
- var Li;
462
- var pn = (e = ut()) => Pi ? true : (typeof e.inject == "function" && (Li = e.inject.toString()), !!Li?.includes("(injected)"));
463
- var jn = /* @__PURE__ */ new Set();
464
- var Lt = /* @__PURE__ */ new Set();
465
- var $i = (e) => {
466
- let t = /* @__PURE__ */ new Map(), n = 0, r = { _instrumentationIsActive: false, _instrumentationSource: Un, checkDCE: Oi, hasUnsupportedRendererAttached: false, inject(i) {
453
+ var Xn = (e = gt()) => "getFiberRoots" in e;
454
+ var Di = false;
455
+ var Pi;
456
+ var bn = (e = gt()) => Di ? true : (typeof e.inject == "function" && (Pi = e.inject.toString()), !!Pi?.includes("(injected)"));
457
+ var Un = /* @__PURE__ */ new Set();
458
+ var $t = /* @__PURE__ */ new Set();
459
+ var Fi = (e) => {
460
+ let t = /* @__PURE__ */ new Map(), n = 0, r = { _instrumentationIsActive: false, _instrumentationSource: Gn, checkDCE: $i, hasUnsupportedRendererAttached: false, inject(i) {
467
461
  let o = ++n;
468
- return t.set(o, i), Lt.add(i), r._instrumentationIsActive || (r._instrumentationIsActive = true, jn.forEach((a) => a())), o;
469
- }, on: mn, onCommitFiberRoot: mn, onCommitFiberUnmount: mn, onPostCommitFiberRoot: mn, renderers: t, supportsFiber: true, supportsFlight: true };
462
+ return t.set(o, i), $t.add(i), r._instrumentationIsActive || (r._instrumentationIsActive = true, Un.forEach((a) => a())), o;
463
+ }, on: hn, onCommitFiberRoot: hn, onCommitFiberUnmount: hn, onPostCommitFiberRoot: hn, renderers: t, supportsFiber: true, supportsFlight: true };
470
464
  try {
471
- Ri(globalThis, "__REACT_DEVTOOLS_GLOBAL_HOOK__", { configurable: true, enumerable: true, get() {
465
+ Mi(globalThis, "__REACT_DEVTOOLS_GLOBAL_HOOK__", { configurable: true, enumerable: true, get() {
472
466
  return r;
473
467
  }, set(a) {
474
468
  if (a && typeof a == "object") {
475
469
  let l = r.renderers;
476
470
  r = a, l.size > 0 && (l.forEach((c, u) => {
477
- Lt.add(c), a.renderers.set(u, c);
478
- }), Vn(e));
471
+ $t.add(c), a.renderers.set(u, c);
472
+ }), Kn(e));
479
473
  }
480
474
  } });
481
475
  let i = window.hasOwnProperty, o = false;
482
- Ri(window, "hasOwnProperty", { configurable: true, value: function(...a) {
476
+ Mi(window, "hasOwnProperty", { configurable: true, value: function(...a) {
483
477
  try {
484
478
  if (!o && a[0] === "__REACT_DEVTOOLS_GLOBAL_HOOK__") return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__ = void 0, o = true, -0;
485
479
  } catch {
@@ -487,189 +481,54 @@ var $i = (e) => {
487
481
  return i.apply(this, a);
488
482
  }, writable: true });
489
483
  } catch {
490
- Vn(e);
484
+ Kn(e);
491
485
  }
492
486
  return r;
493
487
  };
494
- var Vn = (e) => {
488
+ var Kn = (e) => {
495
489
  try {
496
490
  let t = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;
497
491
  if (!t) return;
498
492
  if (!t._instrumentationSource) {
499
- t.checkDCE = Oi, t.supportsFiber = true, t.supportsFlight = true, t.hasUnsupportedRendererAttached = false, t._instrumentationSource = Un, t._instrumentationIsActive = false;
500
- let n = Gn(t);
501
- if (n || (t.on = mn), t.renderers.size) {
502
- t._instrumentationIsActive = true, jn.forEach((o) => o());
493
+ t.checkDCE = $i, t.supportsFiber = true, t.supportsFlight = true, t.hasUnsupportedRendererAttached = false, t._instrumentationSource = Gn, t._instrumentationIsActive = false;
494
+ let n = Xn(t);
495
+ if (n || (t.on = hn), t.renderers.size) {
496
+ t._instrumentationIsActive = true, Un.forEach((o) => o());
503
497
  return;
504
498
  }
505
- let r = t.inject, i = pn(t);
506
- i && !n && (Pi = true, t.inject({ scheduleRefresh() {
499
+ let r = t.inject, i = bn(t);
500
+ i && !n && (Di = true, t.inject({ scheduleRefresh() {
507
501
  } }) && (t._instrumentationIsActive = true)), t.inject = (o) => {
508
502
  let a = r(o);
509
- return Lt.add(o), i && t.renderers.set(a, o), t._instrumentationIsActive = true, jn.forEach((l) => l()), a;
503
+ return $t.add(o), i && t.renderers.set(a, o), t._instrumentationIsActive = true, Un.forEach((l) => l()), a;
510
504
  };
511
505
  }
512
- (t.renderers.size || t._instrumentationIsActive || pn()) && e?.();
506
+ (t.renderers.size || t._instrumentationIsActive || bn()) && e?.();
513
507
  } catch {
514
508
  }
515
509
  };
516
- var Er = () => Vl.call(globalThis, "__REACT_DEVTOOLS_GLOBAL_HOOK__");
517
- var ut = (e) => Er() ? (Vn(e), globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__) : $i(e);
518
- var Fi = () => !!(typeof window < "u" && (window.document?.createElement || window.navigator?.product === "ReactNative"));
519
- var kr = () => {
510
+ var Ar = () => Hl.call(globalThis, "__REACT_DEVTOOLS_GLOBAL_HOOK__");
511
+ var gt = (e) => Ar() ? (Kn(e), globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__) : Fi(e);
512
+ var Bi = () => !!(typeof window < "u" && (window.document?.createElement || window.navigator?.product === "ReactNative"));
513
+ var _r = () => {
520
514
  try {
521
- Fi() && ut();
515
+ Bi() && gt();
522
516
  } catch {
523
517
  }
524
518
  };
525
- var Tr = 0;
526
- var Ar = 1;
527
- var _r = 5;
528
- var Nr = 11;
529
- var Ir = 13;
530
- var Rr = 15;
531
- var Lr = 16;
532
- var Mr = 19;
533
- var Or = 26;
534
- var Pr = 27;
535
- var $r = 28;
536
- var Fr = 30;
537
- function Dr(e, t, n = false) {
538
- if (!e) return null;
539
- let r = t(e);
540
- if (r instanceof Promise) return (async () => {
541
- if (await r === true) return e;
542
- let o = n ? e.return : e.child;
543
- for (; o; ) {
544
- let a = await Hr(o, t, n);
545
- if (a) return a;
546
- o = n ? null : o.sibling;
547
- }
548
- return null;
549
- })();
550
- if (r === true) return e;
551
- let i = n ? e.return : e.child;
552
- for (; i; ) {
553
- let o = Br(i, t, n);
554
- if (o) return o;
555
- i = n ? null : i.sibling;
556
- }
557
- return null;
558
- }
559
- var Br = (e, t, n = false) => {
560
- if (!e) return null;
561
- if (t(e) === true) return e;
562
- let r = n ? e.return : e.child;
563
- for (; r; ) {
564
- let i = Br(r, t, n);
565
- if (i) return i;
566
- r = n ? null : r.sibling;
567
- }
568
- return null;
569
- };
570
- var Hr = async (e, t, n = false) => {
571
- if (!e) return null;
572
- if (await t(e) === true) return e;
573
- let r = n ? e.return : e.child;
574
- for (; r; ) {
575
- let i = await Hr(r, t, n);
576
- if (i) return i;
577
- r = n ? null : r.sibling;
578
- }
579
- return null;
580
- };
581
- var zr = (e) => {
582
- let t = e;
583
- return typeof t == "function" ? t : typeof t == "object" && t ? zr(t.type || t.render) : null;
584
- };
585
- var gn = (e) => {
586
- let t = e;
587
- if (typeof t == "string") return t;
588
- if (typeof t != "function" && !(typeof t == "object" && t)) return null;
589
- let n = t.displayName || t.name || null;
590
- if (n) return n;
591
- let r = zr(t);
592
- return r && (r.displayName || r.name) || null;
593
- };
594
- var hn = () => !!ut()._instrumentationIsActive || Gn() || pn();
595
- var jr = (e) => {
596
- let t = ut();
597
- for (let n of t.renderers.values()) try {
598
- let r = n.findFiberByHostInstance?.(e);
599
- if (r) return r;
600
- } catch {
601
- }
602
- if (typeof e == "object" && e) {
603
- if ("_reactRootContainer" in e) return e._reactRootContainer?._internalRoot?.current?.child;
604
- for (let n in e) if (n.startsWith("__reactContainer$") || n.startsWith("__reactInternalInstance$") || n.startsWith("__reactFiber")) return e[n] || null;
605
- }
606
- return null;
607
- };
608
- var Jl = Object.create;
609
- var Gi = Object.defineProperty;
610
- var Ql = Object.getOwnPropertyDescriptor;
611
- var ec = Object.getOwnPropertyNames;
612
- var tc = Object.getPrototypeOf;
613
- var nc = Object.prototype.hasOwnProperty;
614
- var rc = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
615
- var oc = (e, t, n, r) => {
616
- if (t && typeof t == "object" || typeof t == "function") for (var i = ec(t), o = 0, a = i.length, l; o < a; o++) l = i[o], !nc.call(e, l) && l !== n && Gi(e, l, { get: ((c) => t[c]).bind(null, l), enumerable: !(r = Ql(t, l)) || r.enumerable });
519
+ var Wl = Object.create;
520
+ var Xi = Object.defineProperty;
521
+ var ql = Object.getOwnPropertyDescriptor;
522
+ var Zl = Object.getOwnPropertyNames;
523
+ var Jl = Object.getPrototypeOf;
524
+ var Ql = Object.prototype.hasOwnProperty;
525
+ var ec = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
526
+ var tc = (e, t, n, r) => {
527
+ if (t && typeof t == "object" || typeof t == "function") for (var i = Zl(t), o = 0, a = i.length, l; o < a; o++) l = i[o], !Ql.call(e, l) && l !== n && Xi(e, l, { get: ((c) => t[c]).bind(null, l), enumerable: !(r = ql(t, l)) || r.enumerable });
617
528
  return e;
618
529
  };
619
- var ic = (e, t, n) => (n = e == null ? {} : Jl(tc(e)), oc(Gi(n, "default", { value: e, enumerable: true }), e));
620
- var Di = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
621
- var sc = ["rsc://", "file:///", "webpack://", "webpack-internal://", "node:", "turbopack://", "metro://", "/app-pages-browser/"];
622
- var Bi = "about://React/";
623
- var ac = ["<anonymous>", "eval", ""];
624
- var lc = /\.(jsx|tsx|ts|js)$/;
625
- var cc = /(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i;
626
- var uc = /^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/;
627
- var Ki = "(at Server)";
628
- var dc = /(^|@)\S+:\d+/;
629
- var Xi = /^\s*at .*(\S+:\d+|\(native\))/m;
630
- var fc = /^(eval@)?(\[native code\])?$/;
631
- var Wi = (e, t) => {
632
- {
633
- let n = e.split(`
634
- `), r = [];
635
- for (let i of n) if (/^\s*at\s+/.test(i)) {
636
- let o = Hi(i, void 0)[0];
637
- o && r.push(o);
638
- } else if (/^\s*in\s+/.test(i)) {
639
- let o = i.replace(/^\s*in\s+/, "").replace(/\s*\(at .*\)$/, "");
640
- r.push({ functionName: o, source: i });
641
- } else if (i.match(dc)) {
642
- let o = zi(i, void 0)[0];
643
- o && r.push(o);
644
- }
645
- return Gr(r, t);
646
- }
647
- };
648
- var Yi = (e) => {
649
- if (!e.includes(":")) return [e, void 0, void 0];
650
- let t = /(.+?)(?::(\d+))?(?::(\d+))?$/, n = t.exec(e.replace(/[()]/g, ""));
651
- return [n[1], n[2] || void 0, n[3] || void 0];
652
- };
653
- var Gr = (e, t) => t && t.slice != null ? Array.isArray(t.slice) ? e.slice(t.slice[0], t.slice[1]) : e.slice(0, t.slice) : e;
654
- var Hi = (e, t) => Gr(e.split(`
655
- `).filter((r) => !!r.match(Xi)), t).map((r) => {
656
- let i = r;
657
- i.includes("(eval ") && (i = i.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, ""));
658
- let o = i.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""), a = o.match(/ (\(.+\)$)/);
659
- o = a ? o.replace(a[0], "") : o;
660
- let l = Yi(a ? a[1] : o), c = a && o || void 0, u = ["eval", "<anonymous>"].includes(l[0]) ? void 0 : l[0];
661
- return { functionName: c, fileName: u, lineNumber: l[1] ? +l[1] : void 0, columnNumber: l[2] ? +l[2] : void 0, source: i };
662
- });
663
- var zi = (e, t) => Gr(e.split(`
664
- `).filter((r) => !r.match(fc)), t).map((r) => {
665
- let i = r;
666
- if (i.includes(" > eval") && (i = i.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), !i.includes("@") && !i.includes(":")) return { functionName: i };
667
- {
668
- let o = /(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/, a = i.match(o), l = a && a[1] ? a[1] : void 0, c = Yi(i.replace(o, ""));
669
- return { functionName: l, fileName: c[0], lineNumber: c[1] ? +c[1] : void 0, columnNumber: c[2] ? +c[2] : void 0, source: i };
670
- }
671
- });
672
- var mc = rc((e, t) => {
530
+ var nc = (e, t, n) => (n = e == null ? {} : Wl(Jl(e)), tc(Xi(n, "default", { value: e, enumerable: true }), e));
531
+ var uc = ec((e, t) => {
673
532
  (function(n, r) {
674
533
  typeof e == "object" && t !== void 0 ? r(e) : typeof define == "function" && define.amd ? define(["exports"], r) : (n = typeof globalThis < "u" ? globalThis : n || self, r(n.sourcemapCodec = {}));
675
534
  })(void 0, function(n) {
@@ -679,44 +538,44 @@ var mc = rc((e, t) => {
679
538
  a[h] = m, l[m] = h;
680
539
  }
681
540
  function c(h, m) {
682
- let f = 0, b = 0, L = 0;
541
+ let f = 0, b = 0, M = 0;
683
542
  do {
684
- let ne = h.next();
685
- L = l[ne], f |= (L & 31) << b, b += 5;
686
- } while (L & 32);
687
- let j = f & 1;
688
- return f >>>= 1, j && (f = -2147483648 | -f), m + f;
543
+ let oe = h.next();
544
+ M = l[oe], f |= (M & 31) << b, b += 5;
545
+ } while (M & 32);
546
+ let G = f & 1;
547
+ return f >>>= 1, G && (f = -2147483648 | -f), m + f;
689
548
  }
690
549
  function u(h, m, f) {
691
550
  let b = m - f;
692
551
  b = b < 0 ? -b << 1 | 1 : b << 1;
693
552
  do {
694
- let L = b & 31;
695
- b >>>= 5, b > 0 && (L |= 32), h.write(a[L]);
553
+ let M = b & 31;
554
+ b >>>= 5, b > 0 && (M |= 32), h.write(a[M]);
696
555
  } while (b > 0);
697
556
  return m;
698
557
  }
699
558
  function g(h, m) {
700
559
  return h.pos >= m ? false : h.peek() !== r;
701
560
  }
702
- let p = 1024 * 16, k = typeof TextDecoder < "u" ? new TextDecoder() : typeof Buffer < "u" ? { decode(h) {
561
+ let p = 1024 * 16, S = typeof TextDecoder < "u" ? new TextDecoder() : typeof Buffer < "u" ? { decode(h) {
703
562
  return Buffer.from(h.buffer, h.byteOffset, h.byteLength).toString();
704
563
  } } : { decode(h) {
705
564
  let m = "";
706
565
  for (let f = 0; f < h.length; f++) m += String.fromCharCode(h[f]);
707
566
  return m;
708
567
  } };
709
- class y {
568
+ class w {
710
569
  constructor() {
711
570
  this.pos = 0, this.out = "", this.buffer = new Uint8Array(p);
712
571
  }
713
572
  write(m) {
714
573
  let { buffer: f } = this;
715
- f[this.pos++] = m, this.pos === p && (this.out += k.decode(f), this.pos = 0);
574
+ f[this.pos++] = m, this.pos === p && (this.out += S.decode(f), this.pos = 0);
716
575
  }
717
576
  flush() {
718
577
  let { buffer: m, out: f, pos: b } = this;
719
- return b > 0 ? f + k.decode(m.subarray(0, b)) : f;
578
+ return b > 0 ? f + S.decode(m.subarray(0, b)) : f;
720
579
  }
721
580
  }
722
581
  class x {
@@ -730,568 +589,175 @@ var mc = rc((e, t) => {
730
589
  return this.buffer.charCodeAt(this.pos);
731
590
  }
732
591
  indexOf(m) {
733
- let { buffer: f, pos: b } = this, L = f.indexOf(m, b);
734
- return L === -1 ? f.length : L;
592
+ let { buffer: f, pos: b } = this, M = f.indexOf(m, b);
593
+ return M === -1 ? f.length : M;
735
594
  }
736
595
  }
737
- let _ = [];
738
- function H(h) {
739
- let { length: m } = h, f = new x(h), b = [], L = [], j = 0;
596
+ let I = [];
597
+ function j(h) {
598
+ let { length: m } = h, f = new x(h), b = [], M = [], G = 0;
740
599
  for (; f.pos < m; f.pos++) {
741
- j = c(f, j);
742
- let ne = c(f, 0);
600
+ G = c(f, G);
601
+ let oe = c(f, 0);
743
602
  if (!g(f, m)) {
744
- let Y = L.pop();
745
- Y[2] = j, Y[3] = ne;
603
+ let se = M.pop();
604
+ se[2] = G, se[3] = oe;
746
605
  continue;
747
606
  }
748
- let te = c(f, 0), se = c(f, 0), S = se & 1, F = S ? [j, ne, 0, 0, te, c(f, 0)] : [j, ne, 0, 0, te], X = _;
607
+ let ie = c(f, 0), C = c(f, 0), X = C & 1, Y = X ? [G, oe, 0, 0, ie, c(f, 0)] : [G, oe, 0, 0, ie], P = I;
749
608
  if (g(f, m)) {
750
- X = [];
609
+ P = [];
751
610
  do {
752
- let Y = c(f, 0);
753
- X.push(Y);
611
+ let se = c(f, 0);
612
+ P.push(se);
754
613
  } while (g(f, m));
755
614
  }
756
- F.vars = X, b.push(F), L.push(F);
615
+ Y.vars = P, b.push(Y), M.push(Y);
757
616
  }
758
617
  return b;
759
618
  }
760
- function V(h) {
761
- let m = new y();
762
- for (let f = 0; f < h.length; ) f = C(h, f, m, [0]);
619
+ function K(h) {
620
+ let m = new w();
621
+ for (let f = 0; f < h.length; ) f = _(h, f, m, [0]);
763
622
  return m.flush();
764
623
  }
765
- function C(h, m, f, b) {
766
- let L = h[m], { 0: j, 1: ne, 2: te, 3: se, 4: S, vars: F } = L;
767
- m > 0 && f.write(r), b[0] = u(f, j, b[0]), u(f, ne, 0), u(f, S, 0);
768
- let X = L.length === 6 ? 1 : 0;
769
- u(f, X, 0), L.length === 6 && u(f, L[5], 0);
770
- for (let Y of F) u(f, Y, 0);
624
+ function _(h, m, f, b) {
625
+ let M = h[m], { 0: G, 1: oe, 2: ie, 3: C, 4: X, vars: Y } = M;
626
+ m > 0 && f.write(r), b[0] = u(f, G, b[0]), u(f, oe, 0), u(f, X, 0);
627
+ let P = M.length === 6 ? 1 : 0;
628
+ u(f, P, 0), M.length === 6 && u(f, M[5], 0);
629
+ for (let se of Y) u(f, se, 0);
771
630
  for (m++; m < h.length; ) {
772
- let Y = h[m], { 0: G, 1: U } = Y;
773
- if (G > te || G === te && U >= se) break;
774
- m = C(h, m, f, b);
631
+ let se = h[m], { 0: V, 1: U } = se;
632
+ if (V > ie || V === ie && U >= C) break;
633
+ m = _(h, m, f, b);
775
634
  }
776
- return f.write(r), b[0] = u(f, te, b[0]), u(f, se, 0), m;
635
+ return f.write(r), b[0] = u(f, ie, b[0]), u(f, C, 0), m;
777
636
  }
778
- function $(h) {
779
- let { length: m } = h, f = new x(h), b = [], L = [], j = 0, ne = 0, te = 0, se = 0, S = 0, F = 0, X = 0, Y = 0;
637
+ function F(h) {
638
+ let { length: m } = h, f = new x(h), b = [], M = [], G = 0, oe = 0, ie = 0, C = 0, X = 0, Y = 0, P = 0, se = 0;
780
639
  do {
781
- let G = f.indexOf(";"), U = 0;
782
- for (; f.pos < G; f.pos++) {
783
- if (U = c(f, U), !g(f, G)) {
784
- let Se = L.pop();
785
- Se[2] = j, Se[3] = U;
640
+ let V = f.indexOf(";"), U = 0;
641
+ for (; f.pos < V; f.pos++) {
642
+ if (U = c(f, U), !g(f, V)) {
643
+ let te = M.pop();
644
+ te[2] = G, te[3] = U;
786
645
  continue;
787
646
  }
788
- let ae = c(f, 0), ee = ae & 1, fe = ae & 2, me = ae & 4, we = null, pe = _, Te;
789
- if (ee) {
790
- let Se = c(f, ne);
791
- te = c(f, ne === Se ? te : 0), ne = Se, Te = [j, U, 0, 0, Se, te];
792
- } else Te = [j, U, 0, 0];
793
- if (Te.isScope = !!me, fe) {
794
- let Se = se, rt = S;
795
- se = c(f, se);
796
- let Fe = Se === se;
797
- S = c(f, Fe ? S : 0), F = c(f, Fe && rt === S ? F : 0), we = [se, S, F];
647
+ let ae = c(f, 0), E = ae & 1, B = ae & 2, ee = ae & 4, J = null, me = I, Se;
648
+ if (E) {
649
+ let te = c(f, oe);
650
+ ie = c(f, oe === te ? ie : 0), oe = te, Se = [G, U, 0, 0, te, ie];
651
+ } else Se = [G, U, 0, 0];
652
+ if (Se.isScope = !!ee, B) {
653
+ let te = C, we = X;
654
+ C = c(f, C);
655
+ let ye = te === C;
656
+ X = c(f, ye ? X : 0), Y = c(f, ye && we === X ? Y : 0), J = [C, X, Y];
798
657
  }
799
- if (Te.callsite = we, g(f, G)) {
800
- pe = [];
658
+ if (Se.callsite = J, g(f, V)) {
659
+ me = [];
801
660
  do {
802
- X = j, Y = U;
803
- let Se = c(f, 0), rt;
804
- if (Se < -1) {
805
- rt = [[c(f, 0)]];
806
- for (let Fe = -1; Fe > Se; Fe--) {
807
- let Ve = X;
808
- X = c(f, X), Y = c(f, X === Ve ? Y : 0);
809
- let Jt = c(f, 0);
810
- rt.push([Jt, X, Y]);
661
+ P = G, se = U;
662
+ let te = c(f, 0), we;
663
+ if (te < -1) {
664
+ we = [[c(f, 0)]];
665
+ for (let ye = -1; ye > te; ye--) {
666
+ let Le = P;
667
+ P = c(f, P), se = c(f, P === Le ? se : 0);
668
+ let He = c(f, 0);
669
+ we.push([He, P, se]);
811
670
  }
812
- } else rt = [[Se]];
813
- pe.push(rt);
814
- } while (g(f, G));
671
+ } else we = [[te]];
672
+ me.push(we);
673
+ } while (g(f, V));
815
674
  }
816
- Te.bindings = pe, b.push(Te), L.push(Te);
675
+ Se.bindings = me, b.push(Se), M.push(Se);
817
676
  }
818
- j++, f.pos = G + 1;
677
+ G++, f.pos = V + 1;
819
678
  } while (f.pos < m);
820
679
  return b;
821
680
  }
822
- function Z(h) {
681
+ function ne(h) {
823
682
  if (h.length === 0) return "";
824
- let m = new y();
683
+ let m = new w();
825
684
  for (let f = 0; f < h.length; ) f = v(h, f, m, [0, 0, 0, 0, 0, 0, 0]);
826
685
  return m.flush();
827
686
  }
828
687
  function v(h, m, f, b) {
829
- let L = h[m], { 0: j, 1: ne, 2: te, 3: se, isScope: S, callsite: F, bindings: X } = L;
830
- b[0] < j ? (M(f, b[0], j), b[0] = j, b[1] = 0) : m > 0 && f.write(r), b[1] = u(f, L[1], b[1]);
831
- let Y = (L.length === 6 ? 1 : 0) | (F ? 2 : 0) | (S ? 4 : 0);
832
- if (u(f, Y, 0), L.length === 6) {
833
- let { 4: G, 5: U } = L;
834
- G !== b[2] && (b[3] = 0), b[2] = u(f, G, b[2]), b[3] = u(f, U, b[3]);
688
+ let M = h[m], { 0: G, 1: oe, 2: ie, 3: C, isScope: X, callsite: Y, bindings: P } = M;
689
+ b[0] < G ? (O(f, b[0], G), b[0] = G, b[1] = 0) : m > 0 && f.write(r), b[1] = u(f, M[1], b[1]);
690
+ let se = (M.length === 6 ? 1 : 0) | (Y ? 2 : 0) | (X ? 4 : 0);
691
+ if (u(f, se, 0), M.length === 6) {
692
+ let { 4: V, 5: U } = M;
693
+ V !== b[2] && (b[3] = 0), b[2] = u(f, V, b[2]), b[3] = u(f, U, b[3]);
835
694
  }
836
- if (F) {
837
- let { 0: G, 1: U, 2: ae } = L.callsite;
838
- G === b[4] ? U !== b[5] && (b[6] = 0) : (b[5] = 0, b[6] = 0), b[4] = u(f, G, b[4]), b[5] = u(f, U, b[5]), b[6] = u(f, ae, b[6]);
695
+ if (Y) {
696
+ let { 0: V, 1: U, 2: ae } = M.callsite;
697
+ V === b[4] ? U !== b[5] && (b[6] = 0) : (b[5] = 0, b[6] = 0), b[4] = u(f, V, b[4]), b[5] = u(f, U, b[5]), b[6] = u(f, ae, b[6]);
839
698
  }
840
- if (X) for (let G of X) {
841
- G.length > 1 && u(f, -G.length, 0);
842
- let U = G[0][0];
699
+ if (P) for (let V of P) {
700
+ V.length > 1 && u(f, -V.length, 0);
701
+ let U = V[0][0];
843
702
  u(f, U, 0);
844
- let ae = j, ee = ne;
845
- for (let fe = 1; fe < G.length; fe++) {
846
- let me = G[fe];
847
- ae = u(f, me[1], ae), ee = u(f, me[2], ee), u(f, me[0], 0);
703
+ let ae = G, E = oe;
704
+ for (let B = 1; B < V.length; B++) {
705
+ let ee = V[B];
706
+ ae = u(f, ee[1], ae), E = u(f, ee[2], E), u(f, ee[0], 0);
848
707
  }
849
708
  }
850
709
  for (m++; m < h.length; ) {
851
- let G = h[m], { 0: U, 1: ae } = G;
852
- if (U > te || U === te && ae >= se) break;
710
+ let V = h[m], { 0: U, 1: ae } = V;
711
+ if (U > ie || U === ie && ae >= C) break;
853
712
  m = v(h, m, f, b);
854
713
  }
855
- return b[0] < te ? (M(f, b[0], te), b[0] = te, b[1] = 0) : f.write(r), b[1] = u(f, se, b[1]), m;
714
+ return b[0] < ie ? (O(f, b[0], ie), b[0] = ie, b[1] = 0) : f.write(r), b[1] = u(f, C, b[1]), m;
856
715
  }
857
- function M(h, m, f) {
716
+ function O(h, m, f) {
858
717
  do
859
718
  h.write(i);
860
719
  while (++m < f);
861
720
  }
862
- function W(h) {
863
- let { length: m } = h, f = new x(h), b = [], L = 0, j = 0, ne = 0, te = 0, se = 0;
721
+ function Z(h) {
722
+ let { length: m } = h, f = new x(h), b = [], M = 0, G = 0, oe = 0, ie = 0, C = 0;
864
723
  do {
865
- let S = f.indexOf(";"), F = [], X = true, Y = 0;
866
- for (L = 0; f.pos < S; ) {
867
- let G;
868
- L = c(f, L), L < Y && (X = false), Y = L, g(f, S) ? (j = c(f, j), ne = c(f, ne), te = c(f, te), g(f, S) ? (se = c(f, se), G = [L, j, ne, te, se]) : G = [L, j, ne, te]) : G = [L], F.push(G), f.pos++;
724
+ let X = f.indexOf(";"), Y = [], P = true, se = 0;
725
+ for (M = 0; f.pos < X; ) {
726
+ let V;
727
+ M = c(f, M), M < se && (P = false), se = M, g(f, X) ? (G = c(f, G), oe = c(f, oe), ie = c(f, ie), g(f, X) ? (C = c(f, C), V = [M, G, oe, ie, C]) : V = [M, G, oe, ie]) : V = [M], Y.push(V), f.pos++;
869
728
  }
870
- X || z(F), b.push(F), f.pos = S + 1;
729
+ P || $(Y), b.push(Y), f.pos = X + 1;
871
730
  } while (f.pos <= m);
872
731
  return b;
873
732
  }
874
- function z(h) {
875
- h.sort(q);
733
+ function $(h) {
734
+ h.sort(W);
876
735
  }
877
- function q(h, m) {
736
+ function W(h, m) {
878
737
  return h[0] - m[0];
879
738
  }
880
- function O(h) {
881
- let m = new y(), f = 0, b = 0, L = 0, j = 0;
882
- for (let ne = 0; ne < h.length; ne++) {
883
- let te = h[ne];
884
- if (ne > 0 && m.write(i), te.length === 0) continue;
885
- let se = 0;
886
- for (let S = 0; S < te.length; S++) {
887
- let F = te[S];
888
- S > 0 && m.write(r), se = u(m, F[0], se), F.length !== 1 && (f = u(m, F[1], f), b = u(m, F[2], b), L = u(m, F[3], L), F.length !== 4 && (j = u(m, F[4], j)));
739
+ function D(h) {
740
+ let m = new w(), f = 0, b = 0, M = 0, G = 0;
741
+ for (let oe = 0; oe < h.length; oe++) {
742
+ let ie = h[oe];
743
+ if (oe > 0 && m.write(i), ie.length === 0) continue;
744
+ let C = 0;
745
+ for (let X = 0; X < ie.length; X++) {
746
+ let Y = ie[X];
747
+ X > 0 && m.write(r), C = u(m, Y[0], C), Y.length !== 1 && (f = u(m, Y[1], f), b = u(m, Y[2], b), M = u(m, Y[3], M), Y.length !== 4 && (G = u(m, Y[4], G)));
889
748
  }
890
749
  }
891
750
  return m.flush();
892
751
  }
893
- n.decode = W, n.decodeGeneratedRanges = $, n.decodeOriginalScopes = H, n.encode = O, n.encodeGeneratedRanges = Z, n.encodeOriginalScopes = V, Object.defineProperty(n, "__esModule", { value: true });
752
+ n.decode = Z, n.decodeGeneratedRanges = F, n.decodeOriginalScopes = j, n.encode = D, n.encodeGeneratedRanges = ne, n.encodeOriginalScopes = K, Object.defineProperty(n, "__esModule", { value: true });
894
753
  });
895
754
  });
896
- var qi = ic(mc());
897
- var Zi = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
898
- var pc = /^data:application\/json[^,]+base64,/;
899
- var gc = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/;
900
- var Ji = typeof WeakRef < "u";
901
- var bn = /* @__PURE__ */ new Map();
902
- var Kn = /* @__PURE__ */ new Map();
903
- var hc = (e) => Ji && e instanceof WeakRef;
904
- var ji = (e, t, n, r) => {
905
- if (n < 0 || n >= e.length) return null;
906
- let i = e[n];
907
- if (!i || i.length === 0) return null;
908
- let o = null;
909
- for (let g of i) if (g[0] <= r) o = g;
910
- else break;
911
- if (!o || o.length < 4) return null;
912
- let [, a, l, c] = o;
913
- if (a === void 0 || l === void 0 || c === void 0) return null;
914
- let u = t[a];
915
- return u ? { columnNumber: c, fileName: u, lineNumber: l + 1 } : null;
916
- };
917
- var bc = (e, t, n) => {
918
- if (e.sections) {
919
- let r = null;
920
- for (let a of e.sections) if (t > a.offset.line || t === a.offset.line && n >= a.offset.column) r = a;
921
- else break;
922
- if (!r) return null;
923
- let i = t - r.offset.line, o = t === r.offset.line ? n - r.offset.column : n;
924
- return ji(r.map.mappings, r.map.sources, i, o);
925
- }
926
- return ji(e.mappings, e.sources, t - 1, n);
927
- };
928
- var yc = (e, t) => {
929
- let n = t.split(`
930
- `), r;
931
- for (let o = n.length - 1; o >= 0 && !r; o--) {
932
- let a = n[o].match(gc);
933
- a && (r = a[1] || a[2]);
934
- }
935
- if (!r) return null;
936
- let i = Zi.test(r);
937
- if (!(pc.test(r) || i || r.startsWith("/"))) {
938
- let o = e.split("/");
939
- o[o.length - 1] = r, r = o.join("/");
940
- }
941
- return r;
942
- };
943
- var wc = (e) => ({ file: e.file, mappings: (0, qi.decode)(e.mappings), names: e.names, sourceRoot: e.sourceRoot, sources: e.sources, sourcesContent: e.sourcesContent, version: 3 });
944
- var xc = (e) => {
945
- let t = e.sections.map(({ map: r, offset: i }) => ({ map: { ...r, mappings: (0, qi.decode)(r.mappings) }, offset: i })), n = /* @__PURE__ */ new Set();
946
- for (let r of t) for (let i of r.map.sources) n.add(i);
947
- return { file: e.file, mappings: [], names: [], sections: t, sourceRoot: void 0, sources: Array.from(n), sourcesContent: void 0, version: 3 };
948
- };
949
- var Vi = (e) => {
950
- if (!e) return false;
951
- let t = e.trim();
952
- if (!t) return false;
953
- let n = t.match(Zi);
954
- if (!n) return true;
955
- let r = n[0].toLowerCase();
956
- return r === "http:" || r === "https:";
957
- };
958
- var vc = async (e, t = fetch) => {
959
- if (!Vi(e)) return null;
960
- let n;
961
- try {
962
- n = await (await t(e)).text();
963
- } catch {
964
- return null;
965
- }
966
- if (!n) return null;
967
- let r = yc(e, n);
968
- if (!r || !Vi(r)) return null;
969
- try {
970
- let i = await t(r), o = await i.json();
971
- return "sections" in o ? xc(o) : wc(o);
972
- } catch {
973
- return null;
974
- }
975
- };
976
- var Sc = async (e, t = true, n) => {
977
- if (t && bn.has(e)) {
978
- let o = bn.get(e);
979
- if (o == null) return null;
980
- if (hc(o)) {
981
- let a = o.deref();
982
- if (a) return a;
983
- bn.delete(e);
984
- } else return o;
985
- }
986
- if (t && Kn.has(e)) return Kn.get(e);
987
- let r = vc(e, n);
988
- t && Kn.set(e, r);
989
- let i = await r;
990
- return t && Kn.delete(e), t && (i === null ? bn.set(e, null) : bn.set(e, Ji ? new WeakRef(i) : i)), i;
991
- };
992
- var Cc = async (e, t = true, n) => await Promise.all(e.map(async (r) => {
993
- if (!r.fileName) return r;
994
- let i = await Sc(r.fileName, t, n);
995
- if (!i || typeof r.lineNumber != "number" || typeof r.columnNumber != "number") return r;
996
- let o = bc(i, r.lineNumber, r.columnNumber);
997
- return o ? { ...r, source: o.fileName && r.source ? r.source.replace(r.fileName, o.fileName) : r.source, fileName: o.fileName, lineNumber: o.lineNumber, columnNumber: o.columnNumber, isSymbolicated: true } : r;
998
- }));
999
- var Ec = (e) => e._debugStack instanceof Error && typeof e._debugStack?.stack == "string";
1000
- var kc = () => {
1001
- let e = ut();
1002
- for (let t of [...Array.from(Lt), ...Array.from(e.renderers.values())]) {
1003
- let n = t.currentDispatcherRef;
1004
- if (n && typeof n == "object") return "H" in n ? n.H : n.current;
1005
- }
1006
- return null;
1007
- };
1008
- var Ui = (e) => {
1009
- for (let t of Lt) {
1010
- let n = t.currentDispatcherRef;
1011
- n && typeof n == "object" && ("H" in n ? n.H = e : n.current = e);
1012
- }
1013
- };
1014
- var dt = (e) => `
1015
- in ${e}`;
1016
- var Tc = (e, t) => {
1017
- let n = dt(e);
1018
- return t && (n += ` (at ${t})`), n;
1019
- };
1020
- var Vr = false;
1021
- var Ur = (e, t) => {
1022
- if (!e || Vr) return "";
1023
- let n = Error.prepareStackTrace;
1024
- Error.prepareStackTrace = void 0, Vr = true;
1025
- let r = kc();
1026
- Ui(null);
1027
- let i = console.error, o = console.warn;
1028
- console.error = () => {
1029
- }, console.warn = () => {
1030
- };
1031
- try {
1032
- let c = { DetermineComponentFrameRoot() {
1033
- let k;
1034
- try {
1035
- if (t) {
1036
- let y = function() {
1037
- throw Error();
1038
- };
1039
- if (Object.defineProperty(y.prototype, "props", { set: function() {
1040
- throw Error();
1041
- } }), typeof Reflect == "object" && Reflect.construct) {
1042
- try {
1043
- Reflect.construct(y, []);
1044
- } catch (x) {
1045
- k = x;
1046
- }
1047
- Reflect.construct(e, [], y);
1048
- } else {
1049
- try {
1050
- y.call();
1051
- } catch (x) {
1052
- k = x;
1053
- }
1054
- e.call(y.prototype);
1055
- }
1056
- } else {
1057
- try {
1058
- throw Error();
1059
- } catch (x) {
1060
- k = x;
1061
- }
1062
- let y = e();
1063
- y && typeof y.catch == "function" && y.catch(() => {
1064
- });
1065
- }
1066
- } catch (y) {
1067
- if (y instanceof Error && k instanceof Error && typeof y.stack == "string") return [y.stack, k.stack];
1068
- }
1069
- return [null, null];
1070
- } };
1071
- c.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot", Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot, "name")?.configurable && Object.defineProperty(c.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" });
1072
- let [g, p] = c.DetermineComponentFrameRoot();
1073
- if (g && p) {
1074
- let k = g.split(`
1075
- `), y = p.split(`
1076
- `), x = 0, _ = 0;
1077
- for (; x < k.length && !k[x].includes("DetermineComponentFrameRoot"); ) x++;
1078
- for (; _ < y.length && !y[_].includes("DetermineComponentFrameRoot"); ) _++;
1079
- if (x === k.length || _ === y.length) for (x = k.length - 1, _ = y.length - 1; x >= 1 && _ >= 0 && k[x] !== y[_]; ) _--;
1080
- for (; x >= 1 && _ >= 0; x--, _--) if (k[x] !== y[_]) {
1081
- if (x !== 1 || _ !== 1) do
1082
- if (x--, _--, _ < 0 || k[x] !== y[_]) {
1083
- let H = `
1084
- ${k[x].replace(" at new ", " at ")}`, V = gn(e);
1085
- return V && H.includes("<anonymous>") && (H = H.replace("<anonymous>", V)), H;
1086
- }
1087
- while (x >= 1 && _ >= 0);
1088
- break;
1089
- }
1090
- }
1091
- } finally {
1092
- Vr = false, Error.prepareStackTrace = n, Ui(r), console.error = i, console.warn = o;
1093
- }
1094
- let a = e ? gn(e) : "";
1095
- return a ? dt(a) : "";
1096
- };
1097
- var Ac = (e, t) => {
1098
- let n = e.tag, r = "";
1099
- switch (n) {
1100
- case $r:
1101
- r = dt("Activity");
1102
- break;
1103
- case Ar:
1104
- r = Ur(e.type, true);
1105
- break;
1106
- case Nr:
1107
- r = Ur(e.type.render, false);
1108
- break;
1109
- case Tr:
1110
- case Rr:
1111
- r = Ur(e.type, false);
1112
- break;
1113
- case _r:
1114
- case Or:
1115
- case Pr:
1116
- r = dt(e.type);
1117
- break;
1118
- case Lr:
1119
- r = dt("Lazy");
1120
- break;
1121
- case Ir:
1122
- r = e.child !== t && t !== null ? dt("Suspense Fallback") : dt("Suspense");
1123
- break;
1124
- case Mr:
1125
- r = dt("SuspenseList");
1126
- break;
1127
- case Fr:
1128
- r = dt("ViewTransition");
1129
- break;
1130
- default:
1131
- return "";
1132
- }
1133
- return r;
1134
- };
1135
- var _c = (e) => {
1136
- try {
1137
- let t = "", n = e, r = null;
1138
- do {
1139
- t += Ac(n, r);
1140
- let i = n._debugInfo;
1141
- if (i && Array.isArray(i)) for (let o = i.length - 1; o >= 0; o--) {
1142
- let a = i[o];
1143
- typeof a.name == "string" && (t += Tc(a.name, a.env));
1144
- }
1145
- r = n, n = n.return;
1146
- } while (n);
1147
- return t;
1148
- } catch (t) {
1149
- return t instanceof Error ? `
1150
- Error generating stack: ${t.message}
1151
- ${t.stack}` : "";
1152
- }
1153
- };
1154
- var Nc = (e) => {
1155
- let t = Error.prepareStackTrace;
1156
- Error.prepareStackTrace = void 0;
1157
- let n = e;
1158
- if (!n) return "";
1159
- Error.prepareStackTrace = t, n.startsWith(`Error: react-stack-top-frame
1160
- `) && (n = n.slice(29));
1161
- let r = n.indexOf(`
1162
- `);
1163
- if (r !== -1 && (n = n.slice(r + 1)), r = Math.max(n.indexOf("react_stack_bottom_frame"), n.indexOf("react-stack-bottom-frame")), r !== -1 && (r = n.lastIndexOf(`
1164
- `, r)), r !== -1) n = n.slice(0, r);
1165
- else return "";
1166
- return n;
1167
- };
1168
- var Ic = (e) => !!(e.fileName?.startsWith("rsc://") && e.functionName);
1169
- var Rc = (e, t) => e.fileName === t.fileName && e.lineNumber === t.lineNumber && e.columnNumber === t.columnNumber;
1170
- var Lc = (e) => {
1171
- let t = /* @__PURE__ */ new Map();
1172
- for (let n of e) for (let r of n.stackFrames) {
1173
- if (!Ic(r)) continue;
1174
- let i = r.functionName, o = t.get(i) ?? [];
1175
- o.some((l) => Rc(l, r)) || (o.push(r), t.set(i, o));
1176
- }
1177
- return t;
1178
- };
1179
- var Mc = (e, t, n) => {
1180
- if (!e.functionName) return { ...e, isServer: true };
1181
- let r = t.get(e.functionName);
1182
- if (!r || r.length === 0) return { ...e, isServer: true };
1183
- let i = n.get(e.functionName) ?? 0, o = r[i % r.length];
1184
- return n.set(e.functionName, i + 1), { ...e, isServer: true, fileName: o.fileName, lineNumber: o.lineNumber, columnNumber: o.columnNumber, source: e.source?.replace(Ki, `(${o.fileName}:${o.lineNumber}:${o.columnNumber})`) };
1185
- };
1186
- var Oc = (e) => {
1187
- let t = [];
1188
- return Dr(e, (n) => {
1189
- if (!Ec(n)) return;
1190
- let r = typeof n.type == "string" ? n.type : gn(n.type) || "<anonymous>";
1191
- t.push({ componentName: r, stackFrames: Wi(Nc(n._debugStack?.stack)) });
1192
- }, true), t;
1193
- };
1194
- var Qi = async (e, t = true, n) => {
1195
- let r = Oc(e), i = Wi(_c(e)), o = Lc(r), a = /* @__PURE__ */ new Map(), l = i.map((u) => u.source?.includes(Ki) ?? false ? Mc(u, o, a) : u), c = l.filter((u, g, p) => {
1196
- if (g === 0) return true;
1197
- let k = p[g - 1];
1198
- return u.functionName !== k.functionName;
1199
- });
1200
- return Cc(c, t, n);
1201
- };
1202
- var yn = (e) => {
1203
- if (!e || ac.some((i) => i === e)) return "";
1204
- let t = e;
1205
- if (t.startsWith("http://") || t.startsWith("https://")) try {
1206
- t = new URL(t).pathname;
1207
- } catch {
1208
- }
1209
- if (t.startsWith(Bi)) {
1210
- let i = t.slice(Bi.length), o = i.indexOf("/"), a = i.indexOf(":");
1211
- t = o !== -1 && (a === -1 || o < a) ? i.slice(o + 1) : i;
1212
- }
1213
- let n = true;
1214
- for (; n; ) {
1215
- n = false;
1216
- for (let i of sc) if (t.startsWith(i)) {
1217
- t = t.slice(i.length), i === "file:///" && (t = `/${t.replace(/^\/+/, "")}`), n = true;
1218
- break;
1219
- }
1220
- }
1221
- if (Di.test(t)) {
1222
- let i = t.match(Di);
1223
- i && (t = t.slice(i[0].length));
1224
- }
1225
- if (t.startsWith("//")) {
1226
- let i = t.indexOf("/", 2);
1227
- t = i === -1 ? "" : t.slice(i);
1228
- }
1229
- let r = t.indexOf("?");
1230
- if (r !== -1) {
1231
- let i = t.slice(r);
1232
- uc.test(i) && (t = t.slice(0, r));
1233
- }
1234
- return t;
1235
- };
1236
- var Xn = (e) => {
1237
- let t = yn(e);
1238
- return !(!t || !lc.test(t) || cc.test(t));
1239
- };
1240
- var es = (e) => e.length > 0 && /^[A-Z]/.test(e);
1241
- kr();
1242
- var Pc = /* @__PURE__ */ new Set(["InnerLayoutRouter", "RedirectErrorBoundary", "RedirectBoundary", "HTTPAccessFallbackErrorBoundary", "HTTPAccessFallbackBoundary", "LoadingBoundary", "ErrorBoundary", "InnerScrollAndFocusHandler", "ScrollAndFocusHandler", "RenderFromTemplateContext", "OuterLayoutRouter", "body", "html", "DevRootHTTPAccessFallbackBoundary", "AppDevOverlayErrorBoundary", "AppDevOverlay", "HotReload", "Router", "ErrorBoundaryHandler", "AppRouter", "ServerRoot", "SegmentStateProvider", "RootErrorBoundary", "LoadableComponent", "MotionDOMComponent"]);
1243
- var $c = () => typeof document > "u" ? false : !!(document.getElementById("__NEXT_DATA__") || document.querySelector("nextjs-portal"));
1244
- var Fc = (e) => !!(e.startsWith("_") || Pc.has(e));
1245
- var Kr = (e) => !(Fc(e) || !es(e) || e.startsWith("Primitive.") || e.includes("Provider") && e.includes("Context"));
1246
- var wn = async (e) => {
1247
- if (!hn()) return [];
1248
- let t = jr(e);
1249
- return t ? await Qi(t) : null;
1250
- };
1251
- var Xr = async (e, t = {}) => {
1252
- let { maxLines: n = 3 } = t, r = Dc(e), i = await wn(e), o = $c(), a = [];
1253
- if (i) for (let l of i) {
1254
- if (a.length >= n) break;
1255
- if (l.isServer && (!l.functionName || Kr(l.functionName))) {
1256
- a.push(`
1257
- in ${l.functionName || "<anonymous>"} (at Server)`);
1258
- continue;
1259
- }
1260
- if (l.fileName && Xn(l.fileName)) {
1261
- let c = `
1262
- in `, u = l.functionName && Kr(l.functionName);
1263
- u && (c += `${l.functionName} (at `), c += yn(l.fileName), o && l.lineNumber && l.columnNumber && (c += `:${l.lineNumber}:${l.columnNumber}`), u && (c += ")"), a.push(c);
1264
- }
1265
- }
1266
- return `${r}${a.join("")}`;
1267
- };
1268
- var Dc = (e) => {
1269
- let t = e.tagName.toLowerCase();
1270
- if (!(e instanceof HTMLElement)) return `<${t} />`;
1271
- let n = e.innerText?.trim() ?? e.textContent?.trim() ?? "", r = "", i = Array.from(e.attributes);
1272
- for (let y of i) {
1273
- let x = y.name, _ = y.value;
1274
- _.length > 20 && (_ = `${_.slice(0, 20)}...`), r += ` ${x}="${_}"`;
1275
- }
1276
- let o = [], a = [], l = false, c = Array.from(e.childNodes);
1277
- for (let y of c) y.nodeType !== Node.COMMENT_NODE && (y.nodeType === Node.TEXT_NODE ? y.textContent && y.textContent.trim().length > 0 && (l = true) : y instanceof Element && (l ? a.push(y) : o.push(y)));
1278
- let u = (y) => y.length === 0 ? "" : y.length <= 2 ? y.map((x) => `<${x.tagName.toLowerCase()} ...>`).join(`
1279
- `) : `(${y.length} elements)`, g = "", p = u(o);
1280
- if (p && (g += `
1281
- ${p}`), n.length > 0) {
1282
- let y = n.length > 100 ? `${n.slice(0, 100)}...` : n;
1283
- g += `
1284
- ${y}`;
1285
- }
1286
- let k = u(a);
1287
- return k && (g += `
1288
- ${k}`), g.length > 0 ? `<${t}${r}>${g}
1289
- </${t}>` : `<${t}${r} />`;
1290
- };
1291
- var Bc = "application/x-react-grab";
1292
- var qt = (e, t) => {
1293
- let n = JSON.stringify({ version: ri, content: e, timestamp: Date.now(), ...t?.prompt }), r = (o) => {
1294
- o.preventDefault(), o.clipboardData?.setData("text/plain", e), o.clipboardData?.setData(Bc, n);
755
+ nc(uc());
756
+ _r();
757
+ var $c = "application/x-react-grab";
758
+ var tn = (e, t) => {
759
+ let n = JSON.stringify({ version: ii, content: e, timestamp: Date.now(), ...t?.prompt }), r = (o) => {
760
+ o.preventDefault(), o.clipboardData?.setData("text/plain", e), o.clipboardData?.setData($c, n);
1295
761
  };
1296
762
  document.addEventListener("copy", r);
1297
763
  let i = document.createElement("textarea");
@@ -1303,57 +769,12 @@ var qt = (e, t) => {
1303
769
  document.removeEventListener("copy", r), i.remove();
1304
770
  }
1305
771
  };
1306
- K('<span class="tabular-nums align-middle">');
1307
- K('<span class="font-mono tabular-nums align-middle">&lt;<!>>');
1308
- K('<span class="tabular-nums ml-1 align-middle"> in ');
1309
-
1310
- // src/client.ts
1311
- var REFERENCE_PREFIX = "Use this as reference to make the change, do not actually write this code:\n\n";
1312
- var parseAgentResponse = (response) => {
1313
- const trimmed = response.trim();
1314
- if (trimmed.startsWith("{") && trimmed.endsWith("}")) {
1315
- try {
1316
- const parsed = JSON.parse(trimmed);
1317
- if (typeof parsed === "object" && "code" in parsed) {
1318
- return parsed;
1319
- }
1320
- } catch {
1321
- }
1322
- }
1323
- return trimmed;
1324
- };
1325
- var buildUserMessage = (prompt, html, isFirstMessage) => {
1326
- if (isFirstMessage) {
1327
- return `Here is the HTML to modify:
1328
-
1329
- ${html}
772
+ Q('<span class="tabular-nums align-middle">');
773
+ Q('<span class="font-mono tabular-nums align-middle">&lt;<!>>');
774
+ Q('<span class="tabular-nums ml-1 align-middle"> in ');
1330
775
 
1331
- Modification request: ${prompt}
1332
-
1333
- You can either:
1334
- 1. Output ONLY the JavaScript code if you're confident in the change
1335
- 2. Output JSON to iterate: { "iterate": true, "code": "...", "reason": "why you need to see the result" }
1336
-
1337
- When iterating, the code will be executed and you'll see the updated HTML to refine further.`;
1338
- }
1339
- return `Follow-up modification request: ${prompt}
1340
-
1341
- Remember: Output ONLY the JavaScript code for this modification. The $el variable still references the same element.`;
1342
- };
1343
- var buildIterationMessage = (updatedHtml, executionResult) => {
1344
- let message = `Here is the updated HTML after executing your code:
1345
-
1346
- ${updatedHtml}`;
1347
- if (executionResult) {
1348
- message += `
1349
-
1350
- Execution result: ${executionResult}`;
1351
- }
1352
- message += `
1353
-
1354
- Continue modifying or output final JavaScript code (without JSON wrapper) when done.`;
1355
- return message;
1356
- };
776
+ // src/client/dom.ts
777
+ var ANCESTOR_LEVELS = 5;
1357
778
  var createUndoableProxy = (element) => {
1358
779
  const undoActions = [];
1359
780
  const record = (action) => undoActions.push(action);
@@ -1381,31 +802,37 @@ var createUndoableProxy = (element) => {
1381
802
  get(target, prop) {
1382
803
  if (prop === "add")
1383
804
  return (...classes) => {
1384
- const toUndo = classes.filter((c) => !target.contains(c));
805
+ const toUndo = classes.filter(
806
+ (classToAdd) => !target.contains(classToAdd)
807
+ );
1385
808
  record(() => target.remove(...toUndo));
1386
809
  return target.add(...classes);
1387
810
  };
1388
811
  if (prop === "remove")
1389
812
  return (...classes) => {
1390
- const toRestore = classes.filter((c) => target.contains(c));
813
+ const toRestore = classes.filter(
814
+ (classToRemove) => target.contains(classToRemove)
815
+ );
1391
816
  record(() => target.add(...toRestore));
1392
817
  return target.remove(...classes);
1393
818
  };
1394
819
  if (prop === "toggle")
1395
- return (cls, force) => {
1396
- const had = target.contains(cls);
1397
- const result = target.toggle(cls, force);
1398
- record(() => had ? target.add(cls) : target.remove(cls));
820
+ return (className, force) => {
821
+ const hadClass = target.contains(className);
822
+ const result = target.toggle(className, force);
823
+ record(
824
+ () => hadClass ? target.add(className) : target.remove(className)
825
+ );
1399
826
  return result;
1400
827
  };
1401
828
  if (prop === "replace")
1402
- return (oldCls, newCls) => {
1403
- const had = target.contains(oldCls);
1404
- const result = target.replace(oldCls, newCls);
1405
- if (had)
829
+ return (oldClassName, newClassName) => {
830
+ const hadOldClass = target.contains(oldClassName);
831
+ const result = target.replace(oldClassName, newClassName);
832
+ if (hadOldClass)
1406
833
  record(() => {
1407
- target.remove(newCls);
1408
- target.add(oldCls);
834
+ target.remove(newClassName);
835
+ target.add(oldClassName);
1409
836
  });
1410
837
  return result;
1411
838
  };
@@ -1417,8 +844,10 @@ var createUndoableProxy = (element) => {
1417
844
  set(target, prop, value) {
1418
845
  if (typeof prop === "string") {
1419
846
  const original = target[prop];
1420
- const had = prop in target;
1421
- record(() => had ? target[prop] = original : delete target[prop]);
847
+ const hadProperty = prop in target;
848
+ record(
849
+ () => hadProperty ? target[prop] = original : delete target[prop]
850
+ );
1422
851
  }
1423
852
  return Reflect.set(target, prop, value);
1424
853
  },
@@ -1436,10 +865,10 @@ var createUndoableProxy = (element) => {
1436
865
  switch (prop) {
1437
866
  case "setAttribute":
1438
867
  return (name, value) => {
1439
- const had = target.hasAttribute(name);
868
+ const hadAttribute = target.hasAttribute(name);
1440
869
  const original = target.getAttribute(name);
1441
870
  record(
1442
- () => had ? target.setAttribute(name, original) : target.removeAttribute(name)
871
+ () => hadAttribute ? target.setAttribute(name, original) : target.removeAttribute(name)
1443
872
  );
1444
873
  return target.setAttribute(name, value);
1445
874
  };
@@ -1465,8 +894,8 @@ var createUndoableProxy = (element) => {
1465
894
  return result;
1466
895
  };
1467
896
  case "insertBefore":
1468
- return (node, ref) => {
1469
- const result = target.insertBefore(node, ref);
897
+ return (node, referenceNode) => {
898
+ const result = target.insertBefore(node, referenceNode);
1470
899
  record(() => node.parentNode?.removeChild(node));
1471
900
  return result;
1472
901
  };
@@ -1484,10 +913,10 @@ var createUndoableProxy = (element) => {
1484
913
  };
1485
914
  case "remove":
1486
915
  return () => {
1487
- const parent = target.parentNode;
916
+ const parentNode = target.parentNode;
1488
917
  const nextSibling = target.nextSibling;
1489
918
  target.remove();
1490
- record(() => parent?.insertBefore(target, nextSibling));
919
+ record(() => parentNode?.insertBefore(target, nextSibling));
1491
920
  };
1492
921
  case "append":
1493
922
  return wrapNodeInsertion(target.append.bind(target));
@@ -1499,13 +928,15 @@ var createUndoableProxy = (element) => {
1499
928
  return wrapNodeInsertion(target.before.bind(target));
1500
929
  case "replaceWith":
1501
930
  return (...nodes) => {
1502
- const parent = target.parentNode;
931
+ const parentNode = target.parentNode;
1503
932
  const nextSibling = target.nextSibling;
1504
933
  target.replaceWith(...nodes);
1505
934
  record(() => {
1506
- const firstNode = nodes.find((n) => typeof n !== "string");
1507
- if (parent) {
1508
- parent.insertBefore(target, firstNode ?? nextSibling);
935
+ const firstNode = nodes.find(
936
+ (node) => typeof node !== "string"
937
+ );
938
+ if (parentNode) {
939
+ parentNode.insertBefore(target, firstNode ?? nextSibling);
1509
940
  removeNodes(nodes);
1510
941
  }
1511
942
  });
@@ -1516,21 +947,25 @@ var createUndoableProxy = (element) => {
1516
947
  const siblingsBefore = target.parentNode ? Array.from(target.parentNode.childNodes) : [];
1517
948
  target.insertAdjacentHTML(position, html);
1518
949
  const addedChildren = Array.from(target.childNodes).filter(
1519
- (n) => !childrenBefore.includes(n)
950
+ (node) => !childrenBefore.includes(node)
1520
951
  );
1521
952
  const addedSiblings = target.parentNode ? Array.from(target.parentNode.childNodes).filter(
1522
- (n) => !siblingsBefore.includes(n)
953
+ (node) => !siblingsBefore.includes(node)
1523
954
  ) : [];
1524
955
  record(
1525
956
  () => [...addedChildren, ...addedSiblings].forEach(
1526
- (n) => n.parentNode?.removeChild(n)
957
+ (node) => node.parentNode?.removeChild(node)
1527
958
  )
1528
959
  );
1529
960
  };
1530
961
  case "insertAdjacentElement":
1531
- return (position, el2) => {
1532
- const result = target.insertAdjacentElement(position, el2);
1533
- if (result) record(() => result.parentNode?.removeChild(result));
962
+ return (position, insertedElement) => {
963
+ const result = target.insertAdjacentElement(
964
+ position,
965
+ insertedElement
966
+ );
967
+ if (result)
968
+ record(() => result.parentNode?.removeChild(result));
1534
969
  return result;
1535
970
  };
1536
971
  default:
@@ -1575,13 +1010,84 @@ var createUndoableProxy = (element) => {
1575
1010
  }
1576
1011
  });
1577
1012
  const undo = () => {
1578
- for (let i = undoActions.length - 1; i >= 0; i--) undoActions[i]();
1013
+ for (let actionIndex = undoActions.length - 1; actionIndex >= 0; actionIndex--) {
1014
+ undoActions[actionIndex]();
1015
+ }
1579
1016
  };
1580
1017
  return { proxy, undo };
1581
1018
  };
1582
- var DEFAULT_API_ENDPOINT = "https://www.react-grab.com/api/visual-edit";
1583
- var DEFAULT_HEALTHCHECK_ENDPOINT = "https://www.react-grab.com/api/check-visual-edit";
1584
- var ANCESTOR_LEVELS = 5;
1019
+ var getOpeningTag = (element) => {
1020
+ const shallowClone = element.cloneNode(false);
1021
+ const temporaryWrapper = document.createElement("div");
1022
+ temporaryWrapper.appendChild(shallowClone);
1023
+ const serializedHtml = temporaryWrapper.innerHTML;
1024
+ const closingTagMatch = serializedHtml.match(/<\/[^>]+>$/);
1025
+ if (closingTagMatch) {
1026
+ return serializedHtml.slice(0, -closingTagMatch[0].length);
1027
+ }
1028
+ return serializedHtml;
1029
+ };
1030
+ var getClosingTag = (element) => `</${element.tagName.toLowerCase()}>`;
1031
+ var stripSvgContent = (html) => {
1032
+ const container = document.createElement("div");
1033
+ container.innerHTML = html;
1034
+ const svgElements = container.querySelectorAll("svg");
1035
+ for (const svg of svgElements) {
1036
+ const strippedSvg = document.createElementNS(
1037
+ "http://www.w3.org/2000/svg",
1038
+ "svg"
1039
+ );
1040
+ if (svg.hasAttribute("class")) {
1041
+ strippedSvg.setAttribute("class", svg.getAttribute("class"));
1042
+ }
1043
+ if (svg.hasAttribute("id")) {
1044
+ strippedSvg.setAttribute("id", svg.getAttribute("id"));
1045
+ }
1046
+ strippedSvg.textContent = "...";
1047
+ svg.replaceWith(strippedSvg);
1048
+ }
1049
+ return container.innerHTML;
1050
+ };
1051
+ var buildAncestorContext = (element) => {
1052
+ const ancestors = [];
1053
+ let currentAncestor = element.parentElement;
1054
+ for (let level = 0; level < ANCESTOR_LEVELS && currentAncestor; level++) {
1055
+ if (currentAncestor === document.body || currentAncestor === document.documentElement) {
1056
+ break;
1057
+ }
1058
+ ancestors.push(currentAncestor);
1059
+ currentAncestor = currentAncestor.parentElement;
1060
+ }
1061
+ if (ancestors.length === 0) {
1062
+ return stripSvgContent(element.outerHTML);
1063
+ }
1064
+ ancestors.reverse();
1065
+ let result = "";
1066
+ let indentation = "";
1067
+ for (const ancestor of ancestors) {
1068
+ result += `${indentation}${getOpeningTag(ancestor)}
1069
+ `;
1070
+ indentation += " ";
1071
+ }
1072
+ result += `${indentation}<!-- START $el -->
1073
+ `;
1074
+ const strippedOuterHtml = stripSvgContent(element.outerHTML);
1075
+ const targetElementLines = strippedOuterHtml.split("\n");
1076
+ for (const line of targetElementLines) {
1077
+ result += `${indentation}${line}
1078
+ `;
1079
+ }
1080
+ result += `${indentation}<!-- END $el -->
1081
+ `;
1082
+ for (let ancestorIndex = ancestors.length - 1; ancestorIndex >= 0; ancestorIndex--) {
1083
+ indentation = " ".repeat(ancestorIndex);
1084
+ result += `${indentation}${getClosingTag(ancestors[ancestorIndex])}
1085
+ `;
1086
+ }
1087
+ return result.trim();
1088
+ };
1089
+
1090
+ // src/client/code-validation.ts
1585
1091
  var FORBIDDEN_PATTERNS = [
1586
1092
  /\beval\s*\(/,
1587
1093
  /\bFunction\s*\(/,
@@ -1612,57 +1118,55 @@ var validateCode = (code) => {
1612
1118
  }
1613
1119
  return { isValid: true, sanitizedCode };
1614
1120
  };
1615
- var getOpeningTag = (element) => {
1616
- const clone = element.cloneNode(false);
1617
- const wrapper = document.createElement("div");
1618
- wrapper.appendChild(clone);
1619
- const html = wrapper.innerHTML;
1620
- const closingTagMatch = html.match(/<\/[^>]+>$/);
1621
- if (closingTagMatch) {
1622
- return html.slice(0, -closingTagMatch[0].length);
1623
- }
1624
- return html;
1625
- };
1626
- var getClosingTag = (element) => {
1627
- return `</${element.tagName.toLowerCase()}>`;
1628
- };
1629
- var buildAncestorContext = (element) => {
1630
- const ancestors = [];
1631
- let current = element.parentElement;
1632
- for (let level = 0; level < ANCESTOR_LEVELS && current; level++) {
1633
- if (current === document.body || current === document.documentElement) {
1634
- break;
1121
+
1122
+ // src/client/index.ts
1123
+ var parseAgentResponse = (response) => {
1124
+ const trimmed = response.trim();
1125
+ if (trimmed.startsWith("{") && trimmed.endsWith("}")) {
1126
+ try {
1127
+ const parsed = JSON.parse(trimmed);
1128
+ if (typeof parsed === "object" && "code" in parsed) {
1129
+ return parsed;
1130
+ }
1131
+ } catch {
1635
1132
  }
1636
- ancestors.push(current);
1637
- current = current.parentElement;
1638
- }
1639
- if (ancestors.length === 0) {
1640
- return element.outerHTML;
1641
1133
  }
1642
- ancestors.reverse();
1643
- let result = "";
1644
- let indent = "";
1645
- for (const ancestor of ancestors) {
1646
- result += `${indent}${getOpeningTag(ancestor)}
1647
- `;
1648
- indent += " ";
1649
- }
1650
- result += `${indent}<!-- START $el -->
1651
- `;
1652
- const targetLines = element.outerHTML.split("\n");
1653
- for (const line of targetLines) {
1654
- result += `${indent}${line}
1655
- `;
1134
+ return trimmed;
1135
+ };
1136
+ var buildUserMessage = (prompt, html, isFirstMessage) => {
1137
+ if (isFirstMessage) {
1138
+ return `Here is the HTML to modify:
1139
+
1140
+ ${html}
1141
+
1142
+ Modification request: ${prompt}
1143
+
1144
+ You can either:
1145
+ 1. Output ONLY the JavaScript code if you're confident in the change
1146
+ 2. Output JSON to iterate: { "iterate": true, "code": "...", "reason": "why you need to see the result" }
1147
+
1148
+ When iterating, the code will be executed and you'll see the updated HTML to refine further.`;
1656
1149
  }
1657
- result += `${indent}<!-- END $el -->
1658
- `;
1659
- for (let ancestorIndex = ancestors.length - 1; ancestorIndex >= 0; ancestorIndex--) {
1660
- indent = " ".repeat(ancestorIndex);
1661
- result += `${indent}${getClosingTag(ancestors[ancestorIndex])}
1662
- `;
1150
+ return `Follow-up modification request: ${prompt}
1151
+
1152
+ Remember: Output ONLY the JavaScript code for this modification. The $el variable still references the same element.`;
1153
+ };
1154
+ var buildIterationMessage = (updatedHtml, executionResult) => {
1155
+ let message = `Here is the updated HTML after executing your code:
1156
+
1157
+ ${updatedHtml}`;
1158
+ if (executionResult) {
1159
+ message += `
1160
+
1161
+ Execution result: ${executionResult}`;
1663
1162
  }
1664
- return result.trim();
1163
+ message += `
1164
+
1165
+ Continue modifying or output final JavaScript code (without JSON wrapper) when done.`;
1166
+ return message;
1665
1167
  };
1168
+ var DEFAULT_API_ENDPOINT = "https://www.react-grab.com/api/visual-edit";
1169
+ var DEFAULT_HEALTHCHECK_ENDPOINT = "https://www.react-grab.com/api/check-visual-edit";
1666
1170
  var createVisualEditAgentProvider = (options = {}) => {
1667
1171
  const apiEndpoint = options.apiEndpoint ?? DEFAULT_API_ENDPOINT;
1668
1172
  const maxIterations = options.maxIterations ?? 3;
@@ -1738,11 +1242,12 @@ var createVisualEditAgentProvider = (options = {}) => {
1738
1242
  const { proxy, undo } = createUndoableProxy(element);
1739
1243
  try {
1740
1244
  const returnValue = new Function("$el", sanitizedCode).bind(null)(proxy);
1741
- const result = returnValue !== void 0 ? String(returnValue) : null;
1245
+ const executionResult = returnValue !== void 0 ? String(returnValue) : null;
1246
+ const isStillInDom = document.contains(element);
1742
1247
  return {
1743
1248
  success: true,
1744
- result,
1745
- updatedHtml: buildAncestorContext(element),
1249
+ result: executionResult,
1250
+ updatedHtml: isStillInDom ? buildAncestorContext(element) : "",
1746
1251
  undo
1747
1252
  };
1748
1253
  } catch (executionError) {
@@ -1870,27 +1375,27 @@ var createVisualEditAgentProvider = (options = {}) => {
1870
1375
  return { error: `Failed to edit: ${error ?? "invalid code"}` };
1871
1376
  }
1872
1377
  const { proxy, undo } = createUndoableProxy(element);
1873
- undoFnMap.set(requestId, undo);
1874
- lastRequestId = requestId;
1875
1378
  try {
1876
1379
  new Function("$el", sanitizedCode).bind(null)(proxy);
1877
1380
  } catch (executionError) {
1878
1381
  undo();
1879
- undoFnMap.delete(requestId);
1880
- lastRequestId = null;
1881
1382
  cleanup(requestId);
1882
- const message = executionError instanceof Error ? executionError.message : "unknown error";
1883
- return { error: `Failed to edit: ${message}` };
1383
+ const errorMessage = executionError instanceof Error ? executionError.message : "unknown error";
1384
+ return { error: `Failed to edit: ${errorMessage}` };
1884
1385
  }
1885
- try {
1886
- const elementContext = await Xr(element);
1887
- const reference = `${REFERENCE_PREFIX}${code}
1888
-
1889
- ---
1386
+ undoFnMap.set(requestId, undo);
1387
+ lastRequestId = requestId;
1388
+ const sessionId = session.id;
1389
+ const conversationHistory = conversationHistoryMap.get(sessionId);
1390
+ if (conversationHistory && conversationHistory.length > 0) {
1391
+ const formattedHistory = conversationHistory.map((message) => {
1392
+ const roleLabel = message.role === "user" ? "User" : "Assistant";
1393
+ return `## ${roleLabel}
1890
1394
 
1891
- ${elementContext}`;
1892
- qt(reference);
1893
- } catch {
1395
+ ${message.content}`;
1396
+ }).join("\n\n---\n\n");
1397
+ tn(`Apply changes based on the following conversation history:
1398
+ ${formattedHistory}`);
1894
1399
  }
1895
1400
  cleanup(requestId);
1896
1401
  };