@smarttalks.ai/widget 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +813 -761
- package/lib/index.umd.cjs +22 -22
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
function Js(e) {
|
|
2
2
|
return Object.keys(e).reduce((n, r) => {
|
|
3
3
|
const o = e[r];
|
|
4
|
-
return n[r] = Object.assign({}, o),
|
|
4
|
+
return n[r] = Object.assign({}, o), si(o.value) && !na(o.value) && !Array.isArray(o.value) && (n[r].value = Object.assign({}, o.value)), Array.isArray(o.value) && (n[r].value = o.value.slice(0)), n;
|
|
5
5
|
}, {});
|
|
6
6
|
}
|
|
7
7
|
function Zs(e) {
|
|
8
8
|
return e ? Object.keys(e).reduce((n, r) => {
|
|
9
9
|
const o = e[r];
|
|
10
|
-
return n[r] =
|
|
10
|
+
return n[r] = si(o) && "value" in o ? o : {
|
|
11
11
|
value: o
|
|
12
12
|
}, n[r].attribute || (n[r].attribute = ta(r)), n[r].parse = "parse" in n[r] ? n[r].parse : typeof n[r].value != "string", n;
|
|
13
13
|
}, {}) : {};
|
|
@@ -19,13 +19,13 @@ function ea(e, t) {
|
|
|
19
19
|
const n = Js(t);
|
|
20
20
|
return Object.keys(t).forEach((o) => {
|
|
21
21
|
const i = n[o], s = e.getAttribute(i.attribute), a = e[o];
|
|
22
|
-
s && (i.value = i.parse ?
|
|
22
|
+
s && (i.value = i.parse ? ii(s) : s), a != null && (i.value = Array.isArray(a) ? a.slice(0) : a), i.reflect && oo(e, i.attribute, i.value, !!i.parse), Object.defineProperty(e, o, {
|
|
23
23
|
get() {
|
|
24
24
|
return i.value;
|
|
25
25
|
},
|
|
26
26
|
set(l) {
|
|
27
27
|
const c = i.value;
|
|
28
|
-
i.value = l, i.reflect &&
|
|
28
|
+
i.value = l, i.reflect && oo(this, i.attribute, i.value, !!i.parse);
|
|
29
29
|
for (let u = 0, d = this.__propertyChangedCallbacks.length; u < d; u++)
|
|
30
30
|
this.__propertyChangedCallbacks[u](o, l, c);
|
|
31
31
|
},
|
|
@@ -34,7 +34,7 @@ function ea(e, t) {
|
|
|
34
34
|
});
|
|
35
35
|
}), n;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function ii(e) {
|
|
38
38
|
if (e)
|
|
39
39
|
try {
|
|
40
40
|
return JSON.parse(e);
|
|
@@ -42,7 +42,7 @@ function oi(e) {
|
|
|
42
42
|
return e;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function oo(e, t, n, r) {
|
|
46
46
|
if (n == null || n === !1)
|
|
47
47
|
return e.removeAttribute(t);
|
|
48
48
|
let o = r ? JSON.stringify(n) : n;
|
|
@@ -51,7 +51,7 @@ function ro(e, t, n, r) {
|
|
|
51
51
|
function ta(e) {
|
|
52
52
|
return e.replace(/\.?([A-Z]+)/g, (t, n) => "-" + n.toLowerCase()).replace("_", "-").replace(/^-/, "");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function si(e) {
|
|
55
55
|
return e != null && (typeof e == "object" || typeof e == "function");
|
|
56
56
|
}
|
|
57
57
|
function na(e) {
|
|
@@ -60,7 +60,7 @@ function na(e) {
|
|
|
60
60
|
function ra(e) {
|
|
61
61
|
return typeof e == "function" && e.toString().indexOf("class") === 0;
|
|
62
62
|
}
|
|
63
|
-
let
|
|
63
|
+
let Un;
|
|
64
64
|
function oa(e, t) {
|
|
65
65
|
const n = Object.keys(t);
|
|
66
66
|
return class extends e {
|
|
@@ -74,15 +74,15 @@ function oa(e, t) {
|
|
|
74
74
|
if (this.__initialized)
|
|
75
75
|
return;
|
|
76
76
|
this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props = ea(this, t);
|
|
77
|
-
const o = Qs(this.props), i = this.Component, s =
|
|
77
|
+
const o = Qs(this.props), i = this.Component, s = Un;
|
|
78
78
|
try {
|
|
79
|
-
|
|
79
|
+
Un = this, this.__initialized = !0, ra(i) ? new i(o, {
|
|
80
80
|
element: this
|
|
81
81
|
}) : i(o, {
|
|
82
82
|
element: this
|
|
83
83
|
});
|
|
84
84
|
} finally {
|
|
85
|
-
|
|
85
|
+
Un = s;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
async disconnectedCallback() {
|
|
@@ -98,7 +98,7 @@ function oa(e, t) {
|
|
|
98
98
|
if (this.__initialized && !this.__updating[o] && (o = this.lookupProp(o), o in t)) {
|
|
99
99
|
if (s == null && !this[o])
|
|
100
100
|
return;
|
|
101
|
-
this[o] = t[o].parse ?
|
|
101
|
+
this[o] = t[o].parse ? ii(s) : s;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
lookupProp(o) {
|
|
@@ -138,25 +138,25 @@ const F = {
|
|
|
138
138
|
function Mt(e) {
|
|
139
139
|
F.context = e;
|
|
140
140
|
}
|
|
141
|
-
const sa = (e, t) => e === t, ve = Symbol("solid-proxy"),
|
|
141
|
+
const sa = (e, t) => e === t, ve = Symbol("solid-proxy"), or = Symbol("solid-track"), gn = {
|
|
142
142
|
equals: sa
|
|
143
143
|
};
|
|
144
|
-
let
|
|
145
|
-
const Be = 1, pn = 2,
|
|
144
|
+
let ai = fi;
|
|
145
|
+
const Be = 1, pn = 2, li = {
|
|
146
146
|
owned: null,
|
|
147
147
|
cleanups: null,
|
|
148
148
|
context: null,
|
|
149
149
|
owner: null
|
|
150
|
-
},
|
|
150
|
+
}, jn = {};
|
|
151
151
|
var q = null;
|
|
152
|
-
let
|
|
152
|
+
let Hn = null, aa = null, G = null, oe = null, Ie = null, Tn = 0;
|
|
153
153
|
function Re(e, t) {
|
|
154
|
-
const n = G, r = q, o = e.length === 0, i = t === void 0 ? r : t, s = o ?
|
|
154
|
+
const n = G, r = q, o = e.length === 0, i = t === void 0 ? r : t, s = o ? li : {
|
|
155
155
|
owned: null,
|
|
156
156
|
cleanups: null,
|
|
157
157
|
context: i ? i.context : null,
|
|
158
158
|
owner: i
|
|
159
|
-
}, a = o ? e : () => e(() => W(() =>
|
|
159
|
+
}, a = o ? e : () => e(() => W(() => Dn(s)));
|
|
160
160
|
q = s, G = null;
|
|
161
161
|
try {
|
|
162
162
|
return $e(a, !0);
|
|
@@ -164,53 +164,53 @@ function Re(e, t) {
|
|
|
164
164
|
G = n, q = r;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function _(e, t) {
|
|
168
168
|
t = t ? Object.assign({}, gn, t) : gn;
|
|
169
169
|
const n = {
|
|
170
170
|
value: e,
|
|
171
171
|
observers: null,
|
|
172
172
|
observerSlots: null,
|
|
173
173
|
comparator: t.equals || void 0
|
|
174
|
-
}, r = (o) => (typeof o == "function" && (o = o(n.value)),
|
|
175
|
-
return [
|
|
174
|
+
}, r = (o) => (typeof o == "function" && (o = o(n.value)), di(n, o));
|
|
175
|
+
return [ui.bind(n), r];
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
const r =
|
|
177
|
+
function ir(e, t, n) {
|
|
178
|
+
const r = Mn(e, t, !0, Be);
|
|
179
179
|
bt(r);
|
|
180
180
|
}
|
|
181
181
|
function ee(e, t, n) {
|
|
182
|
-
const r =
|
|
182
|
+
const r = Mn(e, t, !1, Be);
|
|
183
183
|
bt(r);
|
|
184
184
|
}
|
|
185
185
|
function M(e, t, n) {
|
|
186
|
-
|
|
187
|
-
const r =
|
|
186
|
+
ai = ha;
|
|
187
|
+
const r = Mn(e, t, !1, Be);
|
|
188
188
|
(!n || !n.render) && (r.user = !0), Ie ? Ie.push(r) : bt(r);
|
|
189
189
|
}
|
|
190
190
|
function O(e, t, n) {
|
|
191
191
|
n = n ? Object.assign({}, gn, n) : gn;
|
|
192
|
-
const r =
|
|
193
|
-
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, bt(r),
|
|
192
|
+
const r = Mn(e, t, !0, 0);
|
|
193
|
+
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, bt(r), ui.bind(r);
|
|
194
194
|
}
|
|
195
195
|
function la(e) {
|
|
196
196
|
return e && typeof e == "object" && "then" in e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function ci(e, t, n) {
|
|
199
199
|
let r, o, i;
|
|
200
200
|
arguments.length === 2 && typeof t == "object" || arguments.length === 1 ? (r = !0, o = e, i = t || {}) : (r = e, o = t, i = n || {});
|
|
201
|
-
let s = null, a =
|
|
202
|
-
const h = /* @__PURE__ */ new Set(), [m, f] = (i.storage ||
|
|
201
|
+
let s = null, a = jn, l = null, c = !1, u = "initialValue" in i, d = typeof r == "function" && O(r);
|
|
202
|
+
const h = /* @__PURE__ */ new Set(), [m, f] = (i.storage || _)(i.initialValue), [g, y] = _(void 0), [w, b] = _(void 0, {
|
|
203
203
|
equals: !1
|
|
204
|
-
}), [v, x] =
|
|
204
|
+
}), [v, x] = _(u ? "ready" : "unresolved");
|
|
205
205
|
if (F.context) {
|
|
206
206
|
l = `${F.context.id}${F.context.count++}`;
|
|
207
207
|
let C;
|
|
208
208
|
i.ssrLoadFrom === "initial" ? a = i.initialValue : F.load && (C = F.load(l)) && (a = C);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function P(C, K, I, D) {
|
|
211
211
|
return s === C && (s = null, D !== void 0 && (u = !0), (C === a || K === a) && i.onHydrated && queueMicrotask(() => i.onHydrated(D, {
|
|
212
212
|
value: K
|
|
213
|
-
})), a =
|
|
213
|
+
})), a = jn, S(K, I)), K;
|
|
214
214
|
}
|
|
215
215
|
function S(C, K) {
|
|
216
216
|
$e(() => {
|
|
@@ -224,7 +224,7 @@ function li(e, t, n) {
|
|
|
224
224
|
const C = ua, K = m(), I = g();
|
|
225
225
|
if (I !== void 0 && !s)
|
|
226
226
|
throw I;
|
|
227
|
-
return G && !G.user && C &&
|
|
227
|
+
return G && !G.user && C && ir(() => {
|
|
228
228
|
w(), s && (C.resolved || h.has(C) || (C.increment(), h.add(C)));
|
|
229
229
|
}), K;
|
|
230
230
|
}
|
|
@@ -234,16 +234,16 @@ function li(e, t, n) {
|
|
|
234
234
|
c = !1;
|
|
235
235
|
const K = d ? d() : r;
|
|
236
236
|
if (K == null || K === !1) {
|
|
237
|
-
|
|
237
|
+
P(s, W(m));
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
240
|
-
const I = a !==
|
|
240
|
+
const I = a !== jn ? a : W(() => o(K, {
|
|
241
241
|
value: m(),
|
|
242
242
|
refetching: C
|
|
243
243
|
}));
|
|
244
|
-
return la(I) ? (s = I, "value" in I ? (I.status === "success" ?
|
|
244
|
+
return la(I) ? (s = I, "value" in I ? (I.status === "success" ? P(s, I.value, void 0, K) : P(s, void 0, void 0, K), I) : (c = !0, queueMicrotask(() => c = !1), $e(() => {
|
|
245
245
|
x(u ? "refreshing" : "pending"), b();
|
|
246
|
-
}, !1), I.then((D) =>
|
|
246
|
+
}, !1), I.then((D) => P(I, D, void 0, K), (D) => P(I, void 0, gi(D), K)))) : (P(s, I, void 0, K), I);
|
|
247
247
|
}
|
|
248
248
|
return Object.defineProperties(k, {
|
|
249
249
|
state: {
|
|
@@ -268,7 +268,7 @@ function li(e, t, n) {
|
|
|
268
268
|
return m();
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
}), d ?
|
|
271
|
+
}), d ? ir(() => R(!1)) : R(!1), [k, {
|
|
272
272
|
refetch: R,
|
|
273
273
|
mutate: f
|
|
274
274
|
}];
|
|
@@ -312,10 +312,10 @@ function Vt(e) {
|
|
|
312
312
|
function B(e) {
|
|
313
313
|
return q === null || (q.cleanups === null ? q.cleanups = [e] : q.cleanups.push(e)), e;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function sr() {
|
|
316
316
|
return G;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function io() {
|
|
319
319
|
return q;
|
|
320
320
|
}
|
|
321
321
|
function ca(e, t) {
|
|
@@ -324,7 +324,7 @@ function ca(e, t) {
|
|
|
324
324
|
try {
|
|
325
325
|
return $e(t, !0);
|
|
326
326
|
} catch (o) {
|
|
327
|
-
|
|
327
|
+
Dr(o);
|
|
328
328
|
} finally {
|
|
329
329
|
q = n, G = r;
|
|
330
330
|
}
|
|
@@ -340,15 +340,15 @@ function le(e, t) {
|
|
|
340
340
|
function pe(e) {
|
|
341
341
|
return q && q.context && q.context[e.id] !== void 0 ? q.context[e.id] : e.defaultValue;
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
const t = O(e), n = O(() =>
|
|
343
|
+
function Mr(e) {
|
|
344
|
+
const t = O(e), n = O(() => ar(t()));
|
|
345
345
|
return n.toArray = () => {
|
|
346
346
|
const r = n();
|
|
347
347
|
return Array.isArray(r) ? r : r != null ? [r] : [];
|
|
348
348
|
}, n;
|
|
349
349
|
}
|
|
350
350
|
let ua;
|
|
351
|
-
function
|
|
351
|
+
function ui() {
|
|
352
352
|
if (this.sources && this.state)
|
|
353
353
|
if (this.state === Be)
|
|
354
354
|
bt(this);
|
|
@@ -362,12 +362,12 @@ function ci() {
|
|
|
362
362
|
}
|
|
363
363
|
return this.value;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function di(e, t, n) {
|
|
366
366
|
let r = e.value;
|
|
367
367
|
return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && $e(() => {
|
|
368
368
|
for (let o = 0; o < e.observers.length; o += 1) {
|
|
369
|
-
const i = e.observers[o], s =
|
|
370
|
-
s &&
|
|
369
|
+
const i = e.observers[o], s = Hn && Hn.running;
|
|
370
|
+
s && Hn.disposed.has(i), (s ? !i.tState : !i.state) && (i.pure ? oe.push(i) : Ie.push(i), i.observers && hi(i)), s || (i.state = Be);
|
|
371
371
|
}
|
|
372
372
|
if (oe.length > 1e6)
|
|
373
373
|
throw oe = [], new Error();
|
|
@@ -376,8 +376,8 @@ function ui(e, t, n) {
|
|
|
376
376
|
function bt(e) {
|
|
377
377
|
if (!e.fn)
|
|
378
378
|
return;
|
|
379
|
-
|
|
380
|
-
const t =
|
|
379
|
+
Dn(e);
|
|
380
|
+
const t = Tn;
|
|
381
381
|
da(e, e.value, t);
|
|
382
382
|
}
|
|
383
383
|
function da(e, t, n) {
|
|
@@ -387,13 +387,13 @@ function da(e, t, n) {
|
|
|
387
387
|
try {
|
|
388
388
|
r = e.fn(t);
|
|
389
389
|
} catch (s) {
|
|
390
|
-
return e.pure && (e.state = Be, e.owned && e.owned.forEach(
|
|
390
|
+
return e.pure && (e.state = Be, e.owned && e.owned.forEach(Dn), e.owned = null), e.updatedAt = n + 1, Dr(s);
|
|
391
391
|
} finally {
|
|
392
392
|
G = i, q = o;
|
|
393
393
|
}
|
|
394
|
-
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ?
|
|
394
|
+
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? di(e, r) : e.value = r, e.updatedAt = n);
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Mn(e, t, n, r = Be, o) {
|
|
397
397
|
const i = {
|
|
398
398
|
fn: e,
|
|
399
399
|
state: r,
|
|
@@ -407,7 +407,7 @@ function Tn(e, t, n, r = Be, o) {
|
|
|
407
407
|
context: q ? q.context : null,
|
|
408
408
|
pure: n
|
|
409
409
|
};
|
|
410
|
-
return q === null || q !==
|
|
410
|
+
return q === null || q !== li && (q.owned ? q.owned.push(i) : q.owned = [i]), i;
|
|
411
411
|
}
|
|
412
412
|
function mn(e) {
|
|
413
413
|
if (e.state === 0)
|
|
@@ -417,7 +417,7 @@ function mn(e) {
|
|
|
417
417
|
if (e.suspense && W(e.suspense.inFallback))
|
|
418
418
|
return e.suspense.effects.push(e);
|
|
419
419
|
const t = [e];
|
|
420
|
-
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt <
|
|
420
|
+
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Tn); )
|
|
421
421
|
e.state && t.push(e);
|
|
422
422
|
for (let n = t.length - 1; n >= 0; n--)
|
|
423
423
|
if (e = t[n], e.state === Be)
|
|
@@ -431,21 +431,21 @@ function $e(e, t) {
|
|
|
431
431
|
if (oe)
|
|
432
432
|
return e();
|
|
433
433
|
let n = !1;
|
|
434
|
-
t || (oe = []), Ie ? n = !0 : Ie = [],
|
|
434
|
+
t || (oe = []), Ie ? n = !0 : Ie = [], Tn++;
|
|
435
435
|
try {
|
|
436
436
|
const r = e();
|
|
437
437
|
return fa(n), r;
|
|
438
438
|
} catch (r) {
|
|
439
|
-
n || (Ie = null), oe = null,
|
|
439
|
+
n || (Ie = null), oe = null, Dr(r);
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
function fa(e) {
|
|
443
|
-
if (oe && (
|
|
443
|
+
if (oe && (fi(oe), oe = null), e)
|
|
444
444
|
return;
|
|
445
445
|
const t = Ie;
|
|
446
|
-
Ie = null, t.length && $e(() =>
|
|
446
|
+
Ie = null, t.length && $e(() => ai(t), !1);
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function fi(e) {
|
|
449
449
|
for (let t = 0; t < e.length; t++)
|
|
450
450
|
mn(e[t]);
|
|
451
451
|
}
|
|
@@ -472,17 +472,17 @@ function yn(e, t) {
|
|
|
472
472
|
const r = e.sources[n];
|
|
473
473
|
if (r.sources) {
|
|
474
474
|
const o = r.state;
|
|
475
|
-
o === Be ? r !== t && (!r.updatedAt || r.updatedAt <
|
|
475
|
+
o === Be ? r !== t && (!r.updatedAt || r.updatedAt < Tn) && mn(r) : o === pn && yn(r, t);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function hi(e) {
|
|
480
480
|
for (let t = 0; t < e.observers.length; t += 1) {
|
|
481
481
|
const n = e.observers[t];
|
|
482
|
-
n.state || (n.state = pn, n.pure ? oe.push(n) : Ie.push(n), n.observers &&
|
|
482
|
+
n.state || (n.state = pn, n.pure ? oe.push(n) : Ie.push(n), n.observers && hi(n));
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Dn(e) {
|
|
486
486
|
let t;
|
|
487
487
|
if (e.sources)
|
|
488
488
|
for (; e.sources.length; ) {
|
|
@@ -494,7 +494,7 @@ function Mn(e) {
|
|
|
494
494
|
}
|
|
495
495
|
if (e.owned) {
|
|
496
496
|
for (t = e.owned.length - 1; t >= 0; t--)
|
|
497
|
-
|
|
497
|
+
Dn(e.owned[t]);
|
|
498
498
|
e.owned = null;
|
|
499
499
|
}
|
|
500
500
|
if (e.cleanups) {
|
|
@@ -504,21 +504,21 @@ function Mn(e) {
|
|
|
504
504
|
}
|
|
505
505
|
e.state = 0;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function gi(e) {
|
|
508
508
|
return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
|
|
509
509
|
cause: e
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
throw
|
|
512
|
+
function Dr(e, t = q) {
|
|
513
|
+
throw gi(e);
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function ar(e) {
|
|
516
516
|
if (typeof e == "function" && !e.length)
|
|
517
|
-
return
|
|
517
|
+
return ar(e());
|
|
518
518
|
if (Array.isArray(e)) {
|
|
519
519
|
const t = [];
|
|
520
520
|
for (let n = 0; n < e.length; n++) {
|
|
521
|
-
const r =
|
|
521
|
+
const r = ar(e[n]);
|
|
522
522
|
Array.isArray(r) ? t.push.apply(t, r) : t.push(r);
|
|
523
523
|
}
|
|
524
524
|
return t;
|
|
@@ -531,22 +531,22 @@ function ga(e, t) {
|
|
|
531
531
|
return ee(() => o = W(() => (q.context = {
|
|
532
532
|
...q.context,
|
|
533
533
|
[e]: r.value
|
|
534
|
-
},
|
|
534
|
+
}, Mr(() => r.children))), void 0), o;
|
|
535
535
|
};
|
|
536
536
|
}
|
|
537
537
|
const pa = Symbol("fallback");
|
|
538
|
-
function
|
|
538
|
+
function so(e) {
|
|
539
539
|
for (let t = 0; t < e.length; t++)
|
|
540
540
|
e[t]();
|
|
541
541
|
}
|
|
542
542
|
function ma(e, t, n = {}) {
|
|
543
543
|
let r = [], o = [], i = [], s = 0, a = t.length > 1 ? [] : null;
|
|
544
|
-
return B(() =>
|
|
544
|
+
return B(() => so(i)), () => {
|
|
545
545
|
let l = e() || [], c, u;
|
|
546
|
-
return l[
|
|
547
|
-
let h = l.length, m, f, g, y, w, b, v, x,
|
|
546
|
+
return l[or], W(() => {
|
|
547
|
+
let h = l.length, m, f, g, y, w, b, v, x, P;
|
|
548
548
|
if (h === 0)
|
|
549
|
-
s !== 0 && (
|
|
549
|
+
s !== 0 && (so(i), i = [], r = [], o = [], s = 0, a && (a = [])), n.fallback && (r = [pa], o[0] = Re((S) => (i[0] = S, n.fallback())), s = 1);
|
|
550
550
|
else if (s === 0) {
|
|
551
551
|
for (o = new Array(h), u = 0; u < h; u++)
|
|
552
552
|
r[u] = l[u], o[u] = Re(d);
|
|
@@ -557,9 +557,9 @@ function ma(e, t, n = {}) {
|
|
|
557
557
|
for (v = s - 1, x = h - 1; v >= b && x >= b && r[v] === l[x]; v--, x--)
|
|
558
558
|
g[x] = o[v], y[x] = i[v], a && (w[x] = a[v]);
|
|
559
559
|
for (m = /* @__PURE__ */ new Map(), f = new Array(x + 1), u = x; u >= b; u--)
|
|
560
|
-
|
|
560
|
+
P = l[u], c = m.get(P), f[u] = c === void 0 ? -1 : c, m.set(P, u);
|
|
561
561
|
for (c = b; c <= v; c++)
|
|
562
|
-
|
|
562
|
+
P = r[c], u = m.get(P), u !== void 0 && u !== -1 ? (g[u] = o[c], y[u] = i[c], a && (w[u] = a[c]), u = f[u], m.set(P, u)) : i[c]();
|
|
563
563
|
for (u = b; u < h; u++)
|
|
564
564
|
u in g ? (o[u] = g[u], i[u] = y[u], a && (a[u] = w[u], a[u](u))) : o[u] = Re(d);
|
|
565
565
|
o = o.slice(0, s = h), r = l.slice(0);
|
|
@@ -568,7 +568,7 @@ function ma(e, t, n = {}) {
|
|
|
568
568
|
});
|
|
569
569
|
function d(h) {
|
|
570
570
|
if (i[u] = h, a) {
|
|
571
|
-
const [m, f] =
|
|
571
|
+
const [m, f] = _(u);
|
|
572
572
|
return a[u] = f, t(l[u], m);
|
|
573
573
|
}
|
|
574
574
|
return t(l[u]);
|
|
@@ -581,7 +581,7 @@ function p(e, t) {
|
|
|
581
581
|
function Gt() {
|
|
582
582
|
return !0;
|
|
583
583
|
}
|
|
584
|
-
const
|
|
584
|
+
const lr = {
|
|
585
585
|
get(e, t, n) {
|
|
586
586
|
return t === ve ? n : e.get(t);
|
|
587
587
|
},
|
|
@@ -605,7 +605,7 @@ const sr = {
|
|
|
605
605
|
return e.keys();
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
|
-
function
|
|
608
|
+
function qn(e) {
|
|
609
609
|
return (e = typeof e == "function" ? e() : e) ? e : {};
|
|
610
610
|
}
|
|
611
611
|
function ya() {
|
|
@@ -625,24 +625,24 @@ function T(...e) {
|
|
|
625
625
|
return new Proxy({
|
|
626
626
|
get(s) {
|
|
627
627
|
for (let a = e.length - 1; a >= 0; a--) {
|
|
628
|
-
const l =
|
|
628
|
+
const l = qn(e[a])[s];
|
|
629
629
|
if (l !== void 0)
|
|
630
630
|
return l;
|
|
631
631
|
}
|
|
632
632
|
},
|
|
633
633
|
has(s) {
|
|
634
634
|
for (let a = e.length - 1; a >= 0; a--)
|
|
635
|
-
if (s in
|
|
635
|
+
if (s in qn(e[a]))
|
|
636
636
|
return !0;
|
|
637
637
|
return !1;
|
|
638
638
|
},
|
|
639
639
|
keys() {
|
|
640
640
|
const s = [];
|
|
641
641
|
for (let a = 0; a < e.length; a++)
|
|
642
|
-
s.push(...Object.keys(
|
|
642
|
+
s.push(...Object.keys(qn(e[a])));
|
|
643
643
|
return [...new Set(s)];
|
|
644
644
|
}
|
|
645
|
-
},
|
|
645
|
+
}, lr);
|
|
646
646
|
const n = {}, r = /* @__PURE__ */ Object.create(null);
|
|
647
647
|
for (let s = e.length - 1; s >= 0; s--) {
|
|
648
648
|
const a = e[s];
|
|
@@ -685,7 +685,7 @@ function H(e, ...t) {
|
|
|
685
685
|
keys() {
|
|
686
686
|
return s.filter((a) => a in e);
|
|
687
687
|
}
|
|
688
|
-
},
|
|
688
|
+
}, lr));
|
|
689
689
|
return i.push(new Proxy({
|
|
690
690
|
get(s) {
|
|
691
691
|
return o.has(s) ? void 0 : e[s];
|
|
@@ -696,7 +696,7 @@ function H(e, ...t) {
|
|
|
696
696
|
keys() {
|
|
697
697
|
return Object.keys(e).filter((s) => !o.has(s));
|
|
698
698
|
}
|
|
699
|
-
},
|
|
699
|
+
}, lr)), i;
|
|
700
700
|
}
|
|
701
701
|
const n = {}, r = t.map(() => ({}));
|
|
702
702
|
for (const o of Object.getOwnPropertyNames(e)) {
|
|
@@ -713,12 +713,12 @@ function ba(e) {
|
|
|
713
713
|
const r = (o) => {
|
|
714
714
|
const i = F.context;
|
|
715
715
|
if (i) {
|
|
716
|
-
const [a, l] =
|
|
716
|
+
const [a, l] = _();
|
|
717
717
|
F.count || (F.count = 0), F.count++, (n || (n = e())).then((c) => {
|
|
718
718
|
Mt(i), F.count--, l(() => c.default), Mt();
|
|
719
719
|
}), t = a;
|
|
720
720
|
} else if (!t) {
|
|
721
|
-
const [a] =
|
|
721
|
+
const [a] = ci(() => (n || (n = e())).then((l) => l.default));
|
|
722
722
|
t = a;
|
|
723
723
|
}
|
|
724
724
|
let s;
|
|
@@ -738,8 +738,8 @@ function Oe() {
|
|
|
738
738
|
const e = F.context;
|
|
739
739
|
return e ? `${e.id}${e.count++}` : `cl-${wa++}`;
|
|
740
740
|
}
|
|
741
|
-
const
|
|
742
|
-
function
|
|
741
|
+
const pi = (e) => `Stale read from <${e}>.`;
|
|
742
|
+
function ht(e) {
|
|
743
743
|
const t = "fallback" in e && {
|
|
744
744
|
fallback: () => e.fallback
|
|
745
745
|
};
|
|
@@ -755,16 +755,16 @@ function J(e) {
|
|
|
755
755
|
const o = e.children;
|
|
756
756
|
return typeof o == "function" && o.length > 0 ? W(() => o(t ? r : () => {
|
|
757
757
|
if (!W(n))
|
|
758
|
-
throw
|
|
758
|
+
throw pi("Show");
|
|
759
759
|
return e.when;
|
|
760
760
|
})) : o;
|
|
761
761
|
}
|
|
762
762
|
return e.fallback;
|
|
763
763
|
}, void 0, void 0);
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function mi(e) {
|
|
766
766
|
let t = !1;
|
|
767
|
-
const n = (i, s) => (t ? i[1] === s[1] : !i[1] == !s[1]) && i[2] === s[2], r =
|
|
767
|
+
const n = (i, s) => (t ? i[1] === s[1] : !i[1] == !s[1]) && i[2] === s[2], r = Mr(() => e.children), o = O(() => {
|
|
768
768
|
let i = r();
|
|
769
769
|
Array.isArray(i) || (i = [i]);
|
|
770
770
|
for (let s = 0; s < i.length; s++) {
|
|
@@ -783,7 +783,7 @@ function pi(e) {
|
|
|
783
783
|
const l = a.children;
|
|
784
784
|
return typeof l == "function" && l.length > 0 ? W(() => l(t ? s : () => {
|
|
785
785
|
if (W(o)[0] !== i)
|
|
786
|
-
throw
|
|
786
|
+
throw pi("Match");
|
|
787
787
|
return a.when;
|
|
788
788
|
})) : l;
|
|
789
789
|
}, void 0, void 0);
|
|
@@ -823,7 +823,7 @@ function Ca(e, t) {
|
|
|
823
823
|
const n = ka[e];
|
|
824
824
|
return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
|
|
825
825
|
}
|
|
826
|
-
const Oa = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]),
|
|
826
|
+
const Oa = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), Pa = /* @__PURE__ */ new Set([
|
|
827
827
|
"altGlyph",
|
|
828
828
|
"altGlyphDef",
|
|
829
829
|
"altGlyphItem",
|
|
@@ -900,7 +900,7 @@ const Oa = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "context
|
|
|
900
900
|
"use",
|
|
901
901
|
"view",
|
|
902
902
|
"vkern"
|
|
903
|
-
]),
|
|
903
|
+
]), _a = {
|
|
904
904
|
xlink: "http://www.w3.org/1999/xlink",
|
|
905
905
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
906
906
|
};
|
|
@@ -949,7 +949,7 @@ function Aa(e, t, n) {
|
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
-
const
|
|
952
|
+
const ao = "_$DX_DELEGATE";
|
|
953
953
|
function L(e, t, n) {
|
|
954
954
|
let r;
|
|
955
955
|
const o = () => {
|
|
@@ -959,7 +959,7 @@ function L(e, t, n) {
|
|
|
959
959
|
return i.cloneNode = i, i;
|
|
960
960
|
}
|
|
961
961
|
function Ta(e, t = window.document) {
|
|
962
|
-
const n = t[
|
|
962
|
+
const n = t[ao] || (t[ao] = /* @__PURE__ */ new Set());
|
|
963
963
|
for (let r = 0, o = e.length; r < o; r++) {
|
|
964
964
|
const i = e[r];
|
|
965
965
|
n.has(i) || (n.add(i), t.addEventListener(i, Fa));
|
|
@@ -971,7 +971,7 @@ function ae(e, t, n) {
|
|
|
971
971
|
function Ma(e, t, n, r) {
|
|
972
972
|
F.context || (r == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, r));
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function gt(e, t) {
|
|
975
975
|
F.context || (t == null ? e.removeAttribute("class") : e.className = t);
|
|
976
976
|
}
|
|
977
977
|
function Da(e, t, n, r) {
|
|
@@ -988,15 +988,15 @@ function La(e, t, n = {}) {
|
|
|
988
988
|
let i, s;
|
|
989
989
|
for (i = 0, s = o.length; i < s; i++) {
|
|
990
990
|
const a = o[i];
|
|
991
|
-
!a || a === "undefined" || t[a] || (
|
|
991
|
+
!a || a === "undefined" || t[a] || (lo(e, a, !1), delete n[a]);
|
|
992
992
|
}
|
|
993
993
|
for (i = 0, s = r.length; i < s; i++) {
|
|
994
994
|
const a = r[i], l = !!t[a];
|
|
995
|
-
!a || a === "undefined" || n[a] === l || !l || (
|
|
995
|
+
!a || a === "undefined" || n[a] === l || !l || (lo(e, a, !0), n[a] = l);
|
|
996
996
|
}
|
|
997
997
|
return n;
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function Ln(e, t, n) {
|
|
1000
1000
|
if (!t)
|
|
1001
1001
|
return n ? ae(e, "style") : t;
|
|
1002
1002
|
const r = e.style;
|
|
@@ -1010,7 +1010,7 @@ function mi(e, t, n) {
|
|
|
1010
1010
|
o = t[i], o !== n[i] && (r.setProperty(i, o), n[i] = o);
|
|
1011
1011
|
return n;
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function nt(e, t = {}, n, r) {
|
|
1014
1014
|
const o = {};
|
|
1015
1015
|
return r || ee(() => o.children = pt(e, t.children, o.children)), ee(() => t.ref && t.ref(e)), ee(() => Ia(e, t, n, !0, o, !0)), o;
|
|
1016
1016
|
}
|
|
@@ -1028,7 +1028,7 @@ function Ia(e, t, n, r, o = {}, i = !1) {
|
|
|
1028
1028
|
if (!(s in t)) {
|
|
1029
1029
|
if (s === "children")
|
|
1030
1030
|
continue;
|
|
1031
|
-
o[s] =
|
|
1031
|
+
o[s] = co(e, s, null, o[s], n, i);
|
|
1032
1032
|
}
|
|
1033
1033
|
for (const s in t) {
|
|
1034
1034
|
if (s === "children") {
|
|
@@ -1036,7 +1036,7 @@ function Ia(e, t, n, r, o = {}, i = !1) {
|
|
|
1036
1036
|
continue;
|
|
1037
1037
|
}
|
|
1038
1038
|
const a = t[s];
|
|
1039
|
-
o[s] =
|
|
1039
|
+
o[s] = co(e, s, a, o[s], n, i);
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
1042
|
function Ra(e) {
|
|
@@ -1046,15 +1046,15 @@ function Ra(e) {
|
|
|
1046
1046
|
function $a(e) {
|
|
1047
1047
|
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function lo(e, t, n) {
|
|
1050
1050
|
const r = t.trim().split(/\s+/);
|
|
1051
1051
|
for (let o = 0, i = r.length; o < i; o++)
|
|
1052
1052
|
e.classList.toggle(r[o], n);
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function co(e, t, n, r, o, i) {
|
|
1055
1055
|
let s, a, l, c, u;
|
|
1056
1056
|
if (t === "style")
|
|
1057
|
-
return
|
|
1057
|
+
return Ln(e, n, r);
|
|
1058
1058
|
if (t === "classList")
|
|
1059
1059
|
return La(e, n, r);
|
|
1060
1060
|
if (n === r)
|
|
@@ -1081,9 +1081,9 @@ function lo(e, t, n, r, o, i) {
|
|
|
1081
1081
|
t = t.slice(5), a = !0;
|
|
1082
1082
|
else if (F.context)
|
|
1083
1083
|
return n;
|
|
1084
|
-
t === "class" || t === "className" ?
|
|
1084
|
+
t === "class" || t === "className" ? gt(e, n) : s && !a && !l ? e[$a(t)] = n : e[c || t] = n;
|
|
1085
1085
|
} else {
|
|
1086
|
-
const d = o && t.indexOf(":") > -1 &&
|
|
1086
|
+
const d = o && t.indexOf(":") > -1 && _a[t.split(":")[0]];
|
|
1087
1087
|
d ? Ma(e, d, t, n) : ae(e, Ea[t] || t, n);
|
|
1088
1088
|
}
|
|
1089
1089
|
return n;
|
|
@@ -1129,13 +1129,13 @@ function pt(e, t, n, r, o) {
|
|
|
1129
1129
|
return n;
|
|
1130
1130
|
if (i === "number" && (t = t.toString()), s) {
|
|
1131
1131
|
let a = n[0];
|
|
1132
|
-
a && a.nodeType === 3 ? a.data !== t && (a.data = t) : a = document.createTextNode(t), n =
|
|
1132
|
+
a && a.nodeType === 3 ? a.data !== t && (a.data = t) : a = document.createTextNode(t), n = st(e, n, r, a);
|
|
1133
1133
|
} else
|
|
1134
1134
|
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
|
|
1135
1135
|
} else if (t == null || i === "boolean") {
|
|
1136
1136
|
if (F.context)
|
|
1137
1137
|
return n;
|
|
1138
|
-
n =
|
|
1138
|
+
n = st(e, n, r);
|
|
1139
1139
|
} else {
|
|
1140
1140
|
if (i === "function")
|
|
1141
1141
|
return ee(() => {
|
|
@@ -1146,7 +1146,7 @@ function pt(e, t, n, r, o) {
|
|
|
1146
1146
|
}), () => n;
|
|
1147
1147
|
if (Array.isArray(t)) {
|
|
1148
1148
|
const a = [], l = n && Array.isArray(n);
|
|
1149
|
-
if (
|
|
1149
|
+
if (cr(a, t, n, o))
|
|
1150
1150
|
return ee(() => n = pt(e, a, n, r, !0)), () => n;
|
|
1151
1151
|
if (F.context) {
|
|
1152
1152
|
if (!a.length)
|
|
@@ -1159,18 +1159,18 @@ function pt(e, t, n, r, o) {
|
|
|
1159
1159
|
return n = u;
|
|
1160
1160
|
}
|
|
1161
1161
|
if (a.length === 0) {
|
|
1162
|
-
if (n =
|
|
1162
|
+
if (n = st(e, n, r), s)
|
|
1163
1163
|
return n;
|
|
1164
1164
|
} else
|
|
1165
|
-
l ? n.length === 0 ?
|
|
1165
|
+
l ? n.length === 0 ? uo(e, a, r) : Aa(e, n, a) : (n && st(e), uo(e, a));
|
|
1166
1166
|
n = a;
|
|
1167
1167
|
} else if (t.nodeType) {
|
|
1168
1168
|
if (F.context && t.parentNode)
|
|
1169
1169
|
return n = s ? [t] : t;
|
|
1170
1170
|
if (Array.isArray(n)) {
|
|
1171
1171
|
if (s)
|
|
1172
|
-
return n =
|
|
1173
|
-
|
|
1172
|
+
return n = st(e, n, r, t);
|
|
1173
|
+
st(e, n, null, t);
|
|
1174
1174
|
} else
|
|
1175
1175
|
n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
|
|
1176
1176
|
n = t;
|
|
@@ -1178,7 +1178,7 @@ function pt(e, t, n, r, o) {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
return n;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function cr(e, t, n, r) {
|
|
1182
1182
|
let o = !1;
|
|
1183
1183
|
for (let i = 0, s = t.length; i < s; i++) {
|
|
1184
1184
|
let a = t[i], l = n && n[i], c;
|
|
@@ -1186,12 +1186,12 @@ function ar(e, t, n, r) {
|
|
|
1186
1186
|
if ((c = typeof a) == "object" && a.nodeType)
|
|
1187
1187
|
e.push(a);
|
|
1188
1188
|
else if (Array.isArray(a))
|
|
1189
|
-
o =
|
|
1189
|
+
o = cr(e, a, l) || o;
|
|
1190
1190
|
else if (c === "function")
|
|
1191
1191
|
if (r) {
|
|
1192
1192
|
for (; typeof a == "function"; )
|
|
1193
1193
|
a = a();
|
|
1194
|
-
o =
|
|
1194
|
+
o = cr(e, Array.isArray(a) ? a : [a], Array.isArray(l) ? l : [l]) || o;
|
|
1195
1195
|
} else
|
|
1196
1196
|
e.push(a), o = !0;
|
|
1197
1197
|
else {
|
|
@@ -1201,11 +1201,11 @@ function ar(e, t, n, r) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
return o;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function uo(e, t, n = null) {
|
|
1205
1205
|
for (let r = 0, o = t.length; r < o; r++)
|
|
1206
1206
|
e.insertBefore(t[r], n);
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function st(e, t, n, r) {
|
|
1209
1209
|
if (n === void 0)
|
|
1210
1210
|
return e.textContent = "";
|
|
1211
1211
|
const o = r || document.createTextNode("");
|
|
@@ -1234,13 +1234,13 @@ function bi(e, t = !1) {
|
|
|
1234
1234
|
function wi(e) {
|
|
1235
1235
|
const {
|
|
1236
1236
|
useShadow: t
|
|
1237
|
-
} = e, n = document.createTextNode(""), r = () => e.mount || document.body, o =
|
|
1237
|
+
} = e, n = document.createTextNode(""), r = () => e.mount || document.body, o = io();
|
|
1238
1238
|
let i, s = !!F.context;
|
|
1239
1239
|
return M(() => {
|
|
1240
|
-
s && (
|
|
1240
|
+
s && (io().user = s = !1), i || (i = ca(o, () => O(() => e.children)));
|
|
1241
1241
|
const a = r();
|
|
1242
1242
|
if (a instanceof HTMLHeadElement) {
|
|
1243
|
-
const [l, c] =
|
|
1243
|
+
const [l, c] = _(!1), u = () => c(!0);
|
|
1244
1244
|
Re((d) => A(a, () => l() ? d() : i(), null)), B(u);
|
|
1245
1245
|
} else {
|
|
1246
1246
|
const l = bi(e.isSVG ? "g" : "div", e.isSVG), c = t && l.attachShadow ? l.attachShadow({
|
|
@@ -1265,15 +1265,15 @@ function ln(e) {
|
|
|
1265
1265
|
case "function":
|
|
1266
1266
|
return W(() => o(n));
|
|
1267
1267
|
case "string":
|
|
1268
|
-
const i =
|
|
1269
|
-
return
|
|
1268
|
+
const i = Pa.has(o), s = F.context ? Ra() : bi(o, i);
|
|
1269
|
+
return nt(s, n, i), s;
|
|
1270
1270
|
}
|
|
1271
1271
|
});
|
|
1272
1272
|
}
|
|
1273
1273
|
function za(e) {
|
|
1274
1274
|
const t = Object.keys(e), n = {};
|
|
1275
1275
|
for (let r = 0; r < t.length; r++) {
|
|
1276
|
-
const [o, i] =
|
|
1276
|
+
const [o, i] = _(e[t[r]]);
|
|
1277
1277
|
Object.defineProperty(n, t[r], {
|
|
1278
1278
|
get: o,
|
|
1279
1279
|
set(s) {
|
|
@@ -1307,21 +1307,21 @@ function Ua(e) {
|
|
|
1307
1307
|
function ja(e, t, n) {
|
|
1308
1308
|
return arguments.length === 2 && (n = t, t = {}), ia(e, t)(Ua(n));
|
|
1309
1309
|
}
|
|
1310
|
-
const Ha = '*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-5{left:1.25rem}.left-9{left:2.25rem}.right-5{right:1.25rem}.right-9{right:2.25rem}.z-50{z-index:50}.m-0{margin:0}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-\\[-1rem\\]{margin-left:-1rem;margin-right:-1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mt-0{margin-top:0}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-2{width:.5rem;height:.5rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[85vh\\]{height:85vh}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\[80\\%\\]{max-height:80%}.max-h-full{max-height:100%}.min-h-16{min-height:4rem}.w-11\\/12{width:91.666667%}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-\\[100px\\]{width:100px}.w-\\[90vw\\]{width:90vw}.w-\\[98\\%\\]{width:98%}.w-\\[calc\\(var\\(--reference-width\\)-\\(0\\.75rem\\*2\\)\\)\\]{width:calc(var(--reference-width) - (.75rem * 2))}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.max-w-64{max-width:16rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\\[var\\(--kb-menu-content-transform-origin\\)\\]{transform-origin:var(--kb-menu-content-transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes content-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.96)}}.animate-content-hide{animation:content-hide .2s ease-out}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-center{scroll-snap-align:center}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-center{place-self:center}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.text-nowrap{text-wrap:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-l-xl{border-top-left-radius:calc(var(--radius) + 4px);border-bottom-left-radius:calc(var(--radius) + 4px)}.rounded-r-xl{border-top-right-radius:calc(var(--radius) + 4px);border-bottom-right-radius:calc(var(--radius) + 4px)}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-tl-xl{border-top-left-radius:calc(var(--radius) + 4px)}.rounded-tr-xl{border-top-right-radius:calc(var(--radius) + 4px)}.border{border-width:1px}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.bg-background{background-color:hsl(var(--background))}.bg-black\\/50{background-color:#00000080}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.bg-slate-200\\/40{background-color:#e2e8f066}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.text-center{text-align:center}.text-\\[0\\.8rem\\]{font-size:.8rem}.text-\\[10px\\]{font-size:10px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-primary\\/40{--tw-shadow-color: hsl(var(--primary) / .4);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-150{transition-delay:.15s}.delay-300{transition-delay:.3s}.duration-300{transition-duration:.3s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-80{--tw-enter-opacity: .8}.duration-300{animation-duration:.3s}.delay-150{animation-delay:.15s}.delay-300{animation-delay:.3s}#smarttalks-widget{--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 346.8 77.2% 49.8%;--radius: .5rem}@media (max-width: 640px){.container{padding-left:1rem;padding-right:1rem}}::-webkit-scrollbar{width:.5rem;height:.4rem}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:var(--radius);--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-x-0:after{content:var(--tw-content);left:0;right:0}.after\\:top-full:after{content:var(--tw-content);top:100%}.after\\:h-\\[50\\%\\]:after{content:var(--tw-content);height:50%}.after\\:bg-inherit:after{content:var(--tw-content);background-color:inherit}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-accent\\/10:hover{background-color:hsl(var(--accent) / .1)}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-primary:hover{--tw-shadow-color: hsl(var(--primary));--tw-shadow: var(--tw-shadow-colored)}.hover\\:brightness-50:hover{--tw-brightness: brightness(.5);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:brightness-75:hover{--tw-brightness: brightness(.75);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-\\[1\\.5px\\]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1.5px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-primary:focus-visible{--tw-ring-color: hsl(var(--primary))}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.has-\\[\\[data-range-end\\]\\]\\:rounded-r-md:has([data-range-end]){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-range-start\\]\\]\\:rounded-l-md:has([data-range-start]){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-in-range\\]\\]\\:bg-accent:has([data-in-range]){background-color:hsl(var(--accent))}.has-\\[\\[data-outside-range\\]\\[data-in-range\\]\\]\\:bg-accent\\/50:has([data-outside-range][data-in-range]){background-color:hsl(var(--accent) / .5)}.has-\\[\\[data-in-range\\]\\]\\:first-of-type\\:rounded-l-md:first-of-type:has([data-in-range]){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-in-range\\]\\]\\:last-of-type\\:rounded-r-md:last-of-type:has([data-in-range]){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}@keyframes content-show{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.data-\\[expanded\\]\\:animate-content-show[data-expanded]{animation:content-show .2s ease-out}.data-\\[selected\\]\\:bg-primary[data-selected]{background-color:hsl(var(--primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open],.data-\\[today\\]\\:bg-accent[data-today]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:text-muted-foreground[data-disabled],.data-\\[outside-range\\]\\:text-muted-foreground[data-outside-range]{color:hsl(var(--muted-foreground))}.data-\\[selected\\]\\:text-primary-foreground[data-selected]{color:hsl(var(--primary-foreground))}.data-\\[today\\]\\:text-accent-foreground[data-today]{color:hsl(var(--accent-foreground))}.data-\\[disabled\\]\\:opacity-50[data-disabled],.data-\\[outside-range\\]\\:opacity-50[data-outside-range]{opacity:.5}.data-\\[selected\\]\\:opacity-100[data-selected]{opacity:1}.data-\\[transitioning\\]\\:transition-colors[data-transitioning]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.data-\\[transitioning\\]\\:transition-transform[data-transitioning]{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.data-\\[transitioning\\]\\:duration-300[data-transitioning]{transition-duration:.3s}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[transitioning\\]\\:duration-300[data-transitioning]{animation-duration:.3s}.data-\\[selected\\]\\:hover\\:bg-primary:hover[data-selected]{background-color:hsl(var(--primary))}.data-\\[selected\\]\\:hover\\:text-primary-foreground:hover[data-selected]{color:hsl(var(--primary-foreground))}@media (min-width: 640px){.sm\\:text-left{text-align:left}}@media (min-width: 768px){.md\\:h-\\[min\\(100vh\\,500px\\)\\]{height:min(100vh,500px)}.md\\:max-h-\\[90\\%\\]{max-height:90%}.md\\:w-\\[min\\(100vw\\,400px\\)\\]{width:min(100vw,400px)}.md\\:max-w-\\[90\\%\\]{max-width:90%}.md\\:select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.md\\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:bg-accent\\/50:is([data-outside-range][data-in-range]){background-color:hsl(var(--accent) / .5)}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:text-muted-foreground:is([data-outside-range][data-in-range]){color:hsl(var(--muted-foreground))}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:opacity-30:is([data-outside-range][data-in-range]){opacity:.3}.\\[\\&\\:is\\(\\[data-today\\]\\[data-selected\\]\\)\\]\\:bg-primary:is([data-today][data-selected]){background-color:hsl(var(--primary))}.\\[\\&\\:is\\(\\[data-today\\]\\[data-selected\\]\\)\\]\\:text-primary-foreground:is([data-today][data-selected]){color:hsl(var(--primary-foreground))}', [vi, Mr] = P(!1), xi = [], qa = (e) => xi.push(e), Si = () => {
|
|
1310
|
+
const Ha = '*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-9{left:2.25rem}.right-9{right:2.25rem}.z-50{z-index:50}.m-0{margin:0}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-\\[-1rem\\]{margin-left:-1rem;margin-right:-1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mt-0{margin-top:0}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-2{width:.5rem;height:.5rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[85vh\\]{height:85vh}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\[80\\%\\]{max-height:80%}.max-h-full{max-height:100%}.min-h-16{min-height:4rem}.w-11\\/12{width:91.666667%}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-\\[100px\\]{width:100px}.w-\\[90vw\\]{width:90vw}.w-\\[98\\%\\]{width:98%}.w-\\[calc\\(var\\(--reference-width\\)-\\(0\\.75rem\\*2\\)\\)\\]{width:calc(var(--reference-width) - (.75rem * 2))}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.max-w-64{max-width:16rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\\[var\\(--kb-menu-content-transform-origin\\)\\]{transform-origin:var(--kb-menu-content-transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes content-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.96)}}.animate-content-hide{animation:content-hide .2s ease-out}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-center{scroll-snap-align:center}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-center{place-self:center}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.text-nowrap{text-wrap:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-l-xl{border-top-left-radius:calc(var(--radius) + 4px);border-bottom-left-radius:calc(var(--radius) + 4px)}.rounded-r-xl{border-top-right-radius:calc(var(--radius) + 4px);border-bottom-right-radius:calc(var(--radius) + 4px)}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-tl-xl{border-top-left-radius:calc(var(--radius) + 4px)}.rounded-tr-xl{border-top-right-radius:calc(var(--radius) + 4px)}.border{border-width:1px}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.bg-background{background-color:hsl(var(--background))}.bg-black\\/50{background-color:#00000080}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.bg-slate-200\\/40{background-color:#e2e8f066}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.text-center{text-align:center}.text-\\[0\\.8rem\\]{font-size:.8rem}.text-\\[10px\\]{font-size:10px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-primary\\/40{--tw-shadow-color: hsl(var(--primary) / .4);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-150{transition-delay:.15s}.delay-300{transition-delay:.3s}.duration-300{transition-duration:.3s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-80{--tw-enter-opacity: .8}.duration-300{animation-duration:.3s}.delay-150{animation-delay:.15s}.delay-300{animation-delay:.3s}#smarttalks-widget{--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 346.8 77.2% 49.8%;--radius: .5rem}@media (max-width: 640px){.container{padding-left:1rem;padding-right:1rem}}::-webkit-scrollbar{width:.5rem;height:.4rem}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:var(--radius);--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-x-0:after{content:var(--tw-content);left:0;right:0}.after\\:top-full:after{content:var(--tw-content);top:100%}.after\\:h-\\[50\\%\\]:after{content:var(--tw-content);height:50%}.after\\:bg-inherit:after{content:var(--tw-content);background-color:inherit}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-accent\\/10:hover{background-color:hsl(var(--accent) / .1)}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-primary:hover{--tw-shadow-color: hsl(var(--primary));--tw-shadow: var(--tw-shadow-colored)}.hover\\:brightness-50:hover{--tw-brightness: brightness(.5);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:brightness-75:hover{--tw-brightness: brightness(.75);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-\\[1\\.5px\\]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1.5px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-primary:focus-visible{--tw-ring-color: hsl(var(--primary))}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.has-\\[\\[data-range-end\\]\\]\\:rounded-r-md:has([data-range-end]){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-range-start\\]\\]\\:rounded-l-md:has([data-range-start]){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-in-range\\]\\]\\:bg-accent:has([data-in-range]){background-color:hsl(var(--accent))}.has-\\[\\[data-outside-range\\]\\[data-in-range\\]\\]\\:bg-accent\\/50:has([data-outside-range][data-in-range]){background-color:hsl(var(--accent) / .5)}.has-\\[\\[data-in-range\\]\\]\\:first-of-type\\:rounded-l-md:first-of-type:has([data-in-range]){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-in-range\\]\\]\\:last-of-type\\:rounded-r-md:last-of-type:has([data-in-range]){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}@keyframes content-show{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.data-\\[expanded\\]\\:animate-content-show[data-expanded]{animation:content-show .2s ease-out}.data-\\[selected\\]\\:bg-primary[data-selected]{background-color:hsl(var(--primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open],.data-\\[today\\]\\:bg-accent[data-today]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:text-muted-foreground[data-disabled],.data-\\[outside-range\\]\\:text-muted-foreground[data-outside-range]{color:hsl(var(--muted-foreground))}.data-\\[selected\\]\\:text-primary-foreground[data-selected]{color:hsl(var(--primary-foreground))}.data-\\[today\\]\\:text-accent-foreground[data-today]{color:hsl(var(--accent-foreground))}.data-\\[disabled\\]\\:opacity-50[data-disabled],.data-\\[outside-range\\]\\:opacity-50[data-outside-range]{opacity:.5}.data-\\[selected\\]\\:opacity-100[data-selected]{opacity:1}.data-\\[transitioning\\]\\:transition-colors[data-transitioning]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.data-\\[transitioning\\]\\:transition-transform[data-transitioning]{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.data-\\[transitioning\\]\\:duration-300[data-transitioning]{transition-duration:.3s}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[transitioning\\]\\:duration-300[data-transitioning]{animation-duration:.3s}.data-\\[selected\\]\\:hover\\:bg-primary:hover[data-selected]{background-color:hsl(var(--primary))}.data-\\[selected\\]\\:hover\\:text-primary-foreground:hover[data-selected]{color:hsl(var(--primary-foreground))}@media (min-width: 640px){.sm\\:text-left{text-align:left}}@media (min-width: 768px){.md\\:h-\\[min\\(100vh\\,500px\\)\\]{height:min(100vh,500px)}.md\\:max-h-\\[90\\%\\]{max-height:90%}.md\\:w-\\[min\\(100vw\\,400px\\)\\]{width:min(100vw,400px)}.md\\:max-w-\\[90\\%\\]{max-width:90%}.md\\:select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.md\\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:bg-accent\\/50:is([data-outside-range][data-in-range]){background-color:hsl(var(--accent) / .5)}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:text-muted-foreground:is([data-outside-range][data-in-range]){color:hsl(var(--muted-foreground))}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:opacity-30:is([data-outside-range][data-in-range]){opacity:.3}.\\[\\&\\:is\\(\\[data-today\\]\\[data-selected\\]\\)\\]\\:bg-primary:is([data-today][data-selected]){background-color:hsl(var(--primary))}.\\[\\&\\:is\\(\\[data-today\\]\\[data-selected\\]\\)\\]\\:text-primary-foreground:is([data-today][data-selected]){color:hsl(var(--primary-foreground))}', [vi, Lr] = _(!1), xi = [], qa = (e) => xi.push(e), Si = () => {
|
|
1311
1311
|
xi.forEach((e) => e());
|
|
1312
1312
|
}, Wa = () => {
|
|
1313
|
-
|
|
1313
|
+
Lr(!vi()), Si();
|
|
1314
1314
|
}, Ga = () => {
|
|
1315
|
-
|
|
1315
|
+
Lr(!1);
|
|
1316
1316
|
}, Ya = () => {
|
|
1317
|
-
|
|
1317
|
+
Lr(!0), Si();
|
|
1318
1318
|
}, Ei = () => ({
|
|
1319
1319
|
bubble: vi,
|
|
1320
1320
|
show: Ya,
|
|
1321
1321
|
hide: Ga,
|
|
1322
1322
|
toggle: Wa,
|
|
1323
1323
|
onOpen: qa
|
|
1324
|
-
}),
|
|
1324
|
+
}), ur = Symbol("store-raw"), ct = Symbol("store-node"), Le = Symbol("store-has"), ki = Symbol("store-self");
|
|
1325
1325
|
function Ci(e) {
|
|
1326
1326
|
let t = e[ve];
|
|
1327
1327
|
if (!t && (Object.defineProperty(e, ve, {
|
|
@@ -1344,7 +1344,7 @@ function bn(e) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
function Ft(e, t = /* @__PURE__ */ new Set()) {
|
|
1346
1346
|
let n, r, o, i;
|
|
1347
|
-
if (n = e != null && e[
|
|
1347
|
+
if (n = e != null && e[ur])
|
|
1348
1348
|
return n;
|
|
1349
1349
|
if (!bn(e) || t.has(e))
|
|
1350
1350
|
return e;
|
|
@@ -1369,7 +1369,7 @@ function wn(e, t) {
|
|
|
1369
1369
|
function Nt(e, t, n) {
|
|
1370
1370
|
if (e[t])
|
|
1371
1371
|
return e[t];
|
|
1372
|
-
const [r, o] =
|
|
1372
|
+
const [r, o] = _(n, {
|
|
1373
1373
|
equals: !1,
|
|
1374
1374
|
internal: !0
|
|
1375
1375
|
});
|
|
@@ -1377,34 +1377,34 @@ function Nt(e, t, n) {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
function Xa(e, t) {
|
|
1379
1379
|
const n = Reflect.getOwnPropertyDescriptor(e, t);
|
|
1380
|
-
return !n || n.get || !n.configurable || t === ve || t ===
|
|
1380
|
+
return !n || n.get || !n.configurable || t === ve || t === ct || (delete n.value, delete n.writable, n.get = () => e[ve][t]), n;
|
|
1381
1381
|
}
|
|
1382
1382
|
function Oi(e) {
|
|
1383
|
-
|
|
1383
|
+
sr() && Nt(wn(e, ct), ki)();
|
|
1384
1384
|
}
|
|
1385
1385
|
function Ja(e) {
|
|
1386
1386
|
return Oi(e), Reflect.ownKeys(e);
|
|
1387
1387
|
}
|
|
1388
1388
|
const Za = {
|
|
1389
1389
|
get(e, t, n) {
|
|
1390
|
-
if (t ===
|
|
1390
|
+
if (t === ur)
|
|
1391
1391
|
return e;
|
|
1392
1392
|
if (t === ve)
|
|
1393
1393
|
return n;
|
|
1394
|
-
if (t ===
|
|
1394
|
+
if (t === or)
|
|
1395
1395
|
return Oi(e), n;
|
|
1396
|
-
const r = wn(e,
|
|
1396
|
+
const r = wn(e, ct), o = r[t];
|
|
1397
1397
|
let i = o ? o() : e[t];
|
|
1398
|
-
if (t ===
|
|
1398
|
+
if (t === ct || t === Le || t === "__proto__")
|
|
1399
1399
|
return i;
|
|
1400
1400
|
if (!o) {
|
|
1401
1401
|
const s = Object.getOwnPropertyDescriptor(e, t);
|
|
1402
|
-
|
|
1402
|
+
sr() && (typeof i != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (i = Nt(r, t, i)());
|
|
1403
1403
|
}
|
|
1404
1404
|
return bn(i) ? Ci(i) : i;
|
|
1405
1405
|
},
|
|
1406
1406
|
has(e, t) {
|
|
1407
|
-
return t ===
|
|
1407
|
+
return t === ur || t === ve || t === or || t === ct || t === Le || t === "__proto__" ? !0 : (sr() && Nt(wn(e, Le), t)(), t in e);
|
|
1408
1408
|
},
|
|
1409
1409
|
set() {
|
|
1410
1410
|
return !0;
|
|
@@ -1420,7 +1420,7 @@ function vn(e, t, n, r = !1) {
|
|
|
1420
1420
|
return;
|
|
1421
1421
|
const o = e[t], i = e.length;
|
|
1422
1422
|
n === void 0 ? (delete e[t], e[Le] && e[Le][t] && o !== void 0 && e[Le][t].$()) : (e[t] = n, e[Le] && e[Le][t] && o === void 0 && e[Le][t].$());
|
|
1423
|
-
let s = wn(e,
|
|
1423
|
+
let s = wn(e, ct), a;
|
|
1424
1424
|
if ((a = Nt(s, t, o)) && a.$(() => n), Array.isArray(e) && e.length !== i) {
|
|
1425
1425
|
for (let l = e.length; l < i; l++)
|
|
1426
1426
|
(a = s[l]) && a.$();
|
|
@@ -1428,7 +1428,7 @@ function vn(e, t, n, r = !1) {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
(a = s[ki]) && a.$();
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function Pi(e, t) {
|
|
1432
1432
|
const n = Object.keys(t);
|
|
1433
1433
|
for (let r = 0; r < n.length; r += 1) {
|
|
1434
1434
|
const o = n[r];
|
|
@@ -1446,7 +1446,7 @@ function Qa(e, t) {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
vn(e, "length", r);
|
|
1448
1448
|
} else
|
|
1449
|
-
|
|
1449
|
+
Pi(e, t);
|
|
1450
1450
|
}
|
|
1451
1451
|
function Dt(e, t, n = []) {
|
|
1452
1452
|
let r, o = e;
|
|
@@ -1477,7 +1477,7 @@ function Dt(e, t, n = []) {
|
|
|
1477
1477
|
o = e[r], n = [r].concat(n);
|
|
1478
1478
|
}
|
|
1479
1479
|
let i = t[0];
|
|
1480
|
-
typeof i == "function" && (i = i(o, n), i === o) || r === void 0 && i == null || (i = Ft(i), r === void 0 || bn(o) && bn(i) && !Array.isArray(i) ?
|
|
1480
|
+
typeof i == "function" && (i = i(o, n), i === o) || r === void 0 && i == null || (i = Ft(i), r === void 0 || bn(o) && bn(i) && !Array.isArray(i) ? Pi(o, i) : vn(e, r, i));
|
|
1481
1481
|
}
|
|
1482
1482
|
function el(...[e, t]) {
|
|
1483
1483
|
const n = Ft(e || {}), r = Array.isArray(n), o = Ci(n);
|
|
@@ -1488,7 +1488,7 @@ function el(...[e, t]) {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
return [o, i];
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function _i(e, t, n = 0) {
|
|
1492
1492
|
localStorage.setItem(
|
|
1493
1493
|
e,
|
|
1494
1494
|
JSON.stringify({
|
|
@@ -1509,15 +1509,15 @@ function Ti(e, t, n) {
|
|
|
1509
1509
|
const r = Ai(e), [o, i] = el(
|
|
1510
1510
|
r ? JSON.parse(r) : t
|
|
1511
1511
|
);
|
|
1512
|
-
return M(() =>
|
|
1512
|
+
return M(() => _i(e, JSON.stringify(o), n)), [o, i];
|
|
1513
1513
|
});
|
|
1514
1514
|
}
|
|
1515
1515
|
function tl(e, t, n) {
|
|
1516
1516
|
return Re(() => {
|
|
1517
|
-
const r = Ai(e), [o, i] =
|
|
1517
|
+
const r = Ai(e), [o, i] = _(
|
|
1518
1518
|
r ? JSON.parse(r) : t
|
|
1519
1519
|
);
|
|
1520
|
-
return M(() =>
|
|
1520
|
+
return M(() => _i(e, JSON.stringify(o()), n)), [o, i];
|
|
1521
1521
|
});
|
|
1522
1522
|
}
|
|
1523
1523
|
tl("lang", "en");
|
|
@@ -1540,14 +1540,14 @@ function nl() {
|
|
|
1540
1540
|
(e = arguments[n]) && (t = Mi(e)) && (r && (r += " "), r += t);
|
|
1541
1541
|
return r;
|
|
1542
1542
|
}
|
|
1543
|
-
const
|
|
1543
|
+
const Ir = "-";
|
|
1544
1544
|
function rl(e) {
|
|
1545
1545
|
const t = il(e), {
|
|
1546
1546
|
conflictingClassGroups: n,
|
|
1547
1547
|
conflictingClassGroupModifiers: r
|
|
1548
1548
|
} = e;
|
|
1549
1549
|
function o(s) {
|
|
1550
|
-
const a = s.split(
|
|
1550
|
+
const a = s.split(Ir);
|
|
1551
1551
|
return a[0] === "" && a.length !== 1 && a.shift(), Di(a, t) || ol(s);
|
|
1552
1552
|
}
|
|
1553
1553
|
function i(s, a) {
|
|
@@ -1567,15 +1567,15 @@ function Di(e, t) {
|
|
|
1567
1567
|
return o;
|
|
1568
1568
|
if (t.validators.length === 0)
|
|
1569
1569
|
return;
|
|
1570
|
-
const i = e.join(
|
|
1570
|
+
const i = e.join(Ir);
|
|
1571
1571
|
return t.validators.find(({
|
|
1572
1572
|
validator: s
|
|
1573
1573
|
}) => s(i))?.classGroupId;
|
|
1574
1574
|
}
|
|
1575
|
-
const
|
|
1575
|
+
const fo = /^\[(.+)\]$/;
|
|
1576
1576
|
function ol(e) {
|
|
1577
|
-
if (
|
|
1578
|
-
const t =
|
|
1577
|
+
if (fo.test(e)) {
|
|
1578
|
+
const t = fo.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
|
|
1579
1579
|
if (n)
|
|
1580
1580
|
return "arbitrary.." + n;
|
|
1581
1581
|
}
|
|
@@ -1589,19 +1589,19 @@ function il(e) {
|
|
|
1589
1589
|
validators: []
|
|
1590
1590
|
};
|
|
1591
1591
|
return al(Object.entries(e.classGroups), n).forEach(([i, s]) => {
|
|
1592
|
-
|
|
1592
|
+
dr(s, r, i, t);
|
|
1593
1593
|
}), r;
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1595
|
+
function dr(e, t, n, r) {
|
|
1596
1596
|
e.forEach((o) => {
|
|
1597
1597
|
if (typeof o == "string") {
|
|
1598
|
-
const i = o === "" ? t :
|
|
1598
|
+
const i = o === "" ? t : ho(t, o);
|
|
1599
1599
|
i.classGroupId = n;
|
|
1600
1600
|
return;
|
|
1601
1601
|
}
|
|
1602
1602
|
if (typeof o == "function") {
|
|
1603
1603
|
if (sl(o)) {
|
|
1604
|
-
|
|
1604
|
+
dr(o(r), t, n, r);
|
|
1605
1605
|
return;
|
|
1606
1606
|
}
|
|
1607
1607
|
t.validators.push({
|
|
@@ -1611,13 +1611,13 @@ function cr(e, t, n, r) {
|
|
|
1611
1611
|
return;
|
|
1612
1612
|
}
|
|
1613
1613
|
Object.entries(o).forEach(([i, s]) => {
|
|
1614
|
-
|
|
1614
|
+
dr(s, ho(t, i), n, r);
|
|
1615
1615
|
});
|
|
1616
1616
|
});
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function ho(e, t) {
|
|
1619
1619
|
let n = e;
|
|
1620
|
-
return t.split(
|
|
1620
|
+
return t.split(Ir).forEach((r) => {
|
|
1621
1621
|
n.nextPart.has(r) || n.nextPart.set(r, {
|
|
1622
1622
|
nextPart: /* @__PURE__ */ new Map(),
|
|
1623
1623
|
validators: []
|
|
@@ -1817,14 +1817,14 @@ function Cl(e) {
|
|
|
1817
1817
|
function Ol(e) {
|
|
1818
1818
|
return wt(e, "position", $i);
|
|
1819
1819
|
}
|
|
1820
|
-
const
|
|
1821
|
-
function
|
|
1822
|
-
return wt(e,
|
|
1820
|
+
const Pl = /* @__PURE__ */ new Set(["image", "url"]);
|
|
1821
|
+
function _l(e) {
|
|
1822
|
+
return wt(e, Pl, Dl);
|
|
1823
1823
|
}
|
|
1824
1824
|
function Al(e) {
|
|
1825
1825
|
return wt(e, "", Ml);
|
|
1826
1826
|
}
|
|
1827
|
-
function
|
|
1827
|
+
function Pt() {
|
|
1828
1828
|
return !0;
|
|
1829
1829
|
}
|
|
1830
1830
|
function wt(e, t, n) {
|
|
@@ -1844,12 +1844,12 @@ function Dl(e) {
|
|
|
1844
1844
|
return Sl.test(e);
|
|
1845
1845
|
}
|
|
1846
1846
|
function Ll() {
|
|
1847
|
-
const e = Y("colors"), t = Y("spacing"), n = Y("blur"), r = Y("brightness"), o = Y("borderColor"), i = Y("borderRadius"), s = Y("borderSpacing"), a = Y("borderWidth"), l = Y("contrast"), c = Y("grayscale"), u = Y("hueRotate"), d = Y("invert"), h = Y("gap"), m = Y("gradientColorStops"), f = Y("gradientColorStopPositions"), g = Y("inset"), y = Y("margin"), w = Y("opacity"), b = Y("padding"), v = Y("saturate"), x = Y("scale"),
|
|
1847
|
+
const e = Y("colors"), t = Y("spacing"), n = Y("blur"), r = Y("brightness"), o = Y("borderColor"), i = Y("borderRadius"), s = Y("borderSpacing"), a = Y("borderWidth"), l = Y("contrast"), c = Y("grayscale"), u = Y("hueRotate"), d = Y("invert"), h = Y("gap"), m = Y("gradientColorStops"), f = Y("gradientColorStopPositions"), g = Y("inset"), y = Y("margin"), w = Y("opacity"), b = Y("padding"), v = Y("saturate"), x = Y("scale"), P = Y("sepia"), S = Y("skew"), k = Y("space"), R = Y("translate"), C = () => ["auto", "contain", "none"], K = () => ["auto", "hidden", "clip", "visible", "scroll"], I = () => ["auto", N, t], D = () => [N, t], ne = () => ["", De, Ve], X = () => ["auto", Qe, N], Q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], U = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], ie = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Me = () => ["", "0", N], qt = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Je = () => [Qe, Yt], it = () => [Qe, N];
|
|
1848
1848
|
return {
|
|
1849
1849
|
cacheSize: 500,
|
|
1850
1850
|
separator: ":",
|
|
1851
1851
|
theme: {
|
|
1852
|
-
colors: [
|
|
1852
|
+
colors: [Pt],
|
|
1853
1853
|
spacing: [De, Ve],
|
|
1854
1854
|
blur: ["none", "", Ue, N],
|
|
1855
1855
|
brightness: Je(),
|
|
@@ -1859,7 +1859,7 @@ function Ll() {
|
|
|
1859
1859
|
borderWidth: ne(),
|
|
1860
1860
|
contrast: Je(),
|
|
1861
1861
|
grayscale: Me(),
|
|
1862
|
-
hueRotate:
|
|
1862
|
+
hueRotate: it(),
|
|
1863
1863
|
invert: Me(),
|
|
1864
1864
|
gap: D(),
|
|
1865
1865
|
gradientColorStops: [e],
|
|
@@ -1871,7 +1871,7 @@ function Ll() {
|
|
|
1871
1871
|
saturate: Je(),
|
|
1872
1872
|
scale: Je(),
|
|
1873
1873
|
sepia: Me(),
|
|
1874
|
-
skew:
|
|
1874
|
+
skew: it(),
|
|
1875
1875
|
space: D(),
|
|
1876
1876
|
translate: D()
|
|
1877
1877
|
},
|
|
@@ -2146,7 +2146,7 @@ function Ll() {
|
|
|
2146
2146
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
2147
2147
|
*/
|
|
2148
2148
|
"grid-cols": [{
|
|
2149
|
-
"grid-cols": [
|
|
2149
|
+
"grid-cols": [Pt]
|
|
2150
2150
|
}],
|
|
2151
2151
|
/**
|
|
2152
2152
|
* Grid Column Start / End
|
|
@@ -2176,7 +2176,7 @@ function Ll() {
|
|
|
2176
2176
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
2177
2177
|
*/
|
|
2178
2178
|
"grid-rows": [{
|
|
2179
|
-
"grid-rows": [
|
|
2179
|
+
"grid-rows": [Pt]
|
|
2180
2180
|
}],
|
|
2181
2181
|
/**
|
|
2182
2182
|
* Grid Row Start / End
|
|
@@ -2539,7 +2539,7 @@ function Ll() {
|
|
|
2539
2539
|
* @see https://tailwindcss.com/docs/font-family
|
|
2540
2540
|
*/
|
|
2541
2541
|
"font-family": [{
|
|
2542
|
-
font: [
|
|
2542
|
+
font: [Pt]
|
|
2543
2543
|
}],
|
|
2544
2544
|
/**
|
|
2545
2545
|
* Font Variant Numeric
|
|
@@ -2801,7 +2801,7 @@ function Ll() {
|
|
|
2801
2801
|
"bg-image": [{
|
|
2802
2802
|
bg: ["none", {
|
|
2803
2803
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2804
|
-
},
|
|
2804
|
+
}, _l]
|
|
2805
2805
|
}],
|
|
2806
2806
|
/**
|
|
2807
2807
|
* Background Color
|
|
@@ -3210,7 +3210,7 @@ function Ll() {
|
|
|
3210
3210
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
3211
3211
|
*/
|
|
3212
3212
|
"shadow-color": [{
|
|
3213
|
-
shadow: [
|
|
3213
|
+
shadow: [Pt]
|
|
3214
3214
|
}],
|
|
3215
3215
|
/**
|
|
3216
3216
|
* Opacity
|
|
@@ -3303,7 +3303,7 @@ function Ll() {
|
|
|
3303
3303
|
* @see https://tailwindcss.com/docs/sepia
|
|
3304
3304
|
*/
|
|
3305
3305
|
sepia: [{
|
|
3306
|
-
sepia: [
|
|
3306
|
+
sepia: [P]
|
|
3307
3307
|
}],
|
|
3308
3308
|
/**
|
|
3309
3309
|
* Backdrop Filter
|
|
@@ -3374,7 +3374,7 @@ function Ll() {
|
|
|
3374
3374
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3375
3375
|
*/
|
|
3376
3376
|
"backdrop-sepia": [{
|
|
3377
|
-
"backdrop-sepia": [
|
|
3377
|
+
"backdrop-sepia": [P]
|
|
3378
3378
|
}],
|
|
3379
3379
|
// Tables
|
|
3380
3380
|
/**
|
|
@@ -3432,7 +3432,7 @@ function Ll() {
|
|
|
3432
3432
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3433
3433
|
*/
|
|
3434
3434
|
duration: [{
|
|
3435
|
-
duration:
|
|
3435
|
+
duration: it()
|
|
3436
3436
|
}],
|
|
3437
3437
|
/**
|
|
3438
3438
|
* Transition Timing Function
|
|
@@ -3446,7 +3446,7 @@ function Ll() {
|
|
|
3446
3446
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3447
3447
|
*/
|
|
3448
3448
|
delay: [{
|
|
3449
|
-
delay:
|
|
3449
|
+
delay: it()
|
|
3450
3450
|
}],
|
|
3451
3451
|
/**
|
|
3452
3452
|
* Animation
|
|
@@ -3888,6 +3888,7 @@ function Rl(e) {
|
|
|
3888
3888
|
}
|
|
3889
3889
|
}
|
|
3890
3890
|
function Xt(e) {
|
|
3891
|
+
e.length >= 8 && (e = e.substring(0, 7));
|
|
3891
3892
|
let t = 0, n = 0, r = 0;
|
|
3892
3893
|
e.length == 4 ? (t = "0x" + e[1] + e[1], n = "0x" + e[2] + e[2], r = "0x" + e[3] + e[3]) : e.length == 7 && (t = "0x" + e[1] + e[2], n = "0x" + e[3] + e[4], r = "0x" + e[5] + e[6]), t /= 255, n /= 255, r /= 255;
|
|
3893
3894
|
let o = Math.min(t, n, r), i = Math.max(t, n, r), s = i - o, a = 0, l = 0, c = 0;
|
|
@@ -3935,12 +3936,12 @@ const Nl = {
|
|
|
3935
3936
|
restart: "Reiniciar"
|
|
3936
3937
|
}
|
|
3937
3938
|
};
|
|
3938
|
-
function
|
|
3939
|
+
function ut(e) {
|
|
3939
3940
|
const t = navigator.language?.toLowerCase();
|
|
3940
3941
|
let n = "en";
|
|
3941
3942
|
return (t === "pt-br" || t.includes("pt")) && (n = "pt"), (t === "es-es" || t.includes("es")) && (n = "es"), Nl[n][e];
|
|
3942
3943
|
}
|
|
3943
|
-
const
|
|
3944
|
+
const Sn = "https://heimdall.smarttalks.ai/api", Kl = "wss://heimdall.smarttalks.ai";
|
|
3944
3945
|
function Bl(e) {
|
|
3945
3946
|
return {
|
|
3946
3947
|
type: "chat",
|
|
@@ -4001,11 +4002,33 @@ const Vl = async (e) => {
|
|
|
4001
4002
|
if (!n)
|
|
4002
4003
|
return;
|
|
4003
4004
|
console.info("fetching widget:", n);
|
|
4004
|
-
const o = `${
|
|
4005
|
+
const o = `${Sn}/v1/widget/${n}`, { result: i } = await (await fetch(o, {
|
|
4005
4006
|
credentials: "include"
|
|
4006
4007
|
})).json();
|
|
4007
|
-
|
|
4008
|
-
|
|
4008
|
+
if (i.type === "flow")
|
|
4009
|
+
return Bl(i);
|
|
4010
|
+
if (i.type === "entity")
|
|
4011
|
+
return zl(i);
|
|
4012
|
+
if (i.type === "chat" && r.includes("showSettings") && (i.showSettings = !0), (r.includes("right") || r.includes("left")) && (i.style.position = r.includes("right") ? "right" : "left"), r.some((s) => s.includes("margin"))) {
|
|
4013
|
+
const s = r.find((a) => a.includes("margin"));
|
|
4014
|
+
s && (i.style.margin = Number(s.split("=")[1] ?? "5"));
|
|
4015
|
+
}
|
|
4016
|
+
if (r.some((s) => s.includes("mode"))) {
|
|
4017
|
+
const s = r.find((a) => a.includes("mode"))?.split("=")[1];
|
|
4018
|
+
(s === "popup" || s === "static" || s === "standard") && (i.mode = s);
|
|
4019
|
+
}
|
|
4020
|
+
return window.addEventListener("message", (s) => {
|
|
4021
|
+
const a = s.data;
|
|
4022
|
+
a.from && a.from === "smarttalkswidget" && a.command === "registerContactData" && a.contactData && Object.keys(a.contactData).length && fetch(`${Sn}/v1/contact-data/${n}`, {
|
|
4023
|
+
credentials: "include",
|
|
4024
|
+
method: "POST",
|
|
4025
|
+
headers: {
|
|
4026
|
+
"Content-Type": "application/json"
|
|
4027
|
+
},
|
|
4028
|
+
body: JSON.stringify(a.contactData)
|
|
4029
|
+
}).catch(console.error);
|
|
4030
|
+
}), i._id = n, i;
|
|
4031
|
+
}, [Fi, Ul] = _(""), [mt] = Re(() => ci(Fi, Vl)), jl = () => {
|
|
4009
4032
|
if (mt()?.type === "chat")
|
|
4010
4033
|
return mt();
|
|
4011
4034
|
}, Hl = () => {
|
|
@@ -4038,15 +4061,15 @@ function ql() {
|
|
|
4038
4061
|
(e = arguments[n++]) && (t = Ni(e)) && (r && (r += " "), r += t);
|
|
4039
4062
|
return r;
|
|
4040
4063
|
}
|
|
4041
|
-
const
|
|
4064
|
+
const go = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, po = ql, Wl = (e, t) => (n) => {
|
|
4042
4065
|
var r;
|
|
4043
4066
|
if (t?.variants == null)
|
|
4044
|
-
return
|
|
4067
|
+
return po(e, n?.class, n?.className);
|
|
4045
4068
|
const { variants: o, defaultVariants: i } = t, s = Object.keys(o).map((c) => {
|
|
4046
4069
|
const u = n?.[c], d = i?.[c];
|
|
4047
4070
|
if (u === null)
|
|
4048
4071
|
return null;
|
|
4049
|
-
const h =
|
|
4072
|
+
const h = go(u) || go(d);
|
|
4050
4073
|
return o[c][h];
|
|
4051
4074
|
}), a = n && Object.entries(n).reduce((c, u) => {
|
|
4052
4075
|
let [d, h] = u;
|
|
@@ -4068,7 +4091,7 @@ const ho = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, go =
|
|
|
4068
4091
|
h
|
|
4069
4092
|
] : c;
|
|
4070
4093
|
}, []);
|
|
4071
|
-
return
|
|
4094
|
+
return po(e, s, l, n?.class, n?.className);
|
|
4072
4095
|
};
|
|
4073
4096
|
var Gl = /* @__PURE__ */ L("<button>");
|
|
4074
4097
|
const Yl = Wl("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", {
|
|
@@ -4096,7 +4119,7 @@ const Yl = Wl("inline-flex items-center justify-center rounded-md text-sm font-m
|
|
|
4096
4119
|
const [, t] = H(e, ["variant", "size", "class"]);
|
|
4097
4120
|
return (() => {
|
|
4098
4121
|
var n = Gl();
|
|
4099
|
-
return
|
|
4122
|
+
return nt(n, T({
|
|
4100
4123
|
get class() {
|
|
4101
4124
|
return Ye(Yl({
|
|
4102
4125
|
variant: e.variant,
|
|
@@ -4111,7 +4134,7 @@ const Ki = (e) => {
|
|
|
4111
4134
|
const [, t] = H(e, ["class", "src"]);
|
|
4112
4135
|
return (() => {
|
|
4113
4136
|
var n = Xl();
|
|
4114
|
-
return
|
|
4137
|
+
return nt(n, T({
|
|
4115
4138
|
get src() {
|
|
4116
4139
|
return e.src ?? "/src/assets/izi.jpeg";
|
|
4117
4140
|
},
|
|
@@ -4137,12 +4160,12 @@ const Zl = () => {
|
|
|
4137
4160
|
};
|
|
4138
4161
|
var Ql = /* @__PURE__ */ L("<svg stroke-width=0>");
|
|
4139
4162
|
function ce(e, t) {
|
|
4140
|
-
const n = T(e.a, t), [r, o] = H(n, ["src"]), [i, s] =
|
|
4163
|
+
const n = T(e.a, t), [r, o] = H(n, ["src"]), [i, s] = _(""), a = O(() => t.title ? `${e.c}<title>${t.title}</title>` : e.c);
|
|
4141
4164
|
return M(() => s(a())), B(() => {
|
|
4142
4165
|
s("");
|
|
4143
4166
|
}), (() => {
|
|
4144
4167
|
var l = Ql();
|
|
4145
|
-
return
|
|
4168
|
+
return nt(l, T({
|
|
4146
4169
|
get stroke() {
|
|
4147
4170
|
return e.a?.stroke;
|
|
4148
4171
|
},
|
|
@@ -4202,7 +4225,7 @@ function oc(e) {
|
|
|
4202
4225
|
n && n(...t);
|
|
4203
4226
|
};
|
|
4204
4227
|
}
|
|
4205
|
-
var E = (e) => typeof e == "function" && !e.length ? e() : e,
|
|
4228
|
+
var E = (e) => typeof e == "function" && !e.length ? e() : e, mo = (e) => Array.isArray(e) ? e : e ? [e] : [];
|
|
4206
4229
|
function ic(e, ...t) {
|
|
4207
4230
|
return typeof e == "function" ? e(...t) : e;
|
|
4208
4231
|
}
|
|
@@ -4212,8 +4235,8 @@ function ac(e, t, n, r) {
|
|
|
4212
4235
|
}
|
|
4213
4236
|
function lc(e, t, n, r) {
|
|
4214
4237
|
const o = () => {
|
|
4215
|
-
|
|
4216
|
-
i &&
|
|
4238
|
+
mo(E(e)).forEach((i) => {
|
|
4239
|
+
i && mo(E(t)).forEach((s) => ac(i, s, n, r));
|
|
4217
4240
|
});
|
|
4218
4241
|
};
|
|
4219
4242
|
typeof e == "function" ? M(o) : ee(o);
|
|
@@ -4233,7 +4256,7 @@ function uc(e) {
|
|
|
4233
4256
|
}
|
|
4234
4257
|
};
|
|
4235
4258
|
}
|
|
4236
|
-
var
|
|
4259
|
+
var fr = (e) => typeof e == "function" && !e.length ? e() : e;
|
|
4237
4260
|
function Jt() {
|
|
4238
4261
|
return !0;
|
|
4239
4262
|
}
|
|
@@ -4261,7 +4284,7 @@ var dc = {
|
|
|
4261
4284
|
return e.keys();
|
|
4262
4285
|
}
|
|
4263
4286
|
}, fc = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
|
|
4264
|
-
function
|
|
4287
|
+
function yo(e) {
|
|
4265
4288
|
const t = {};
|
|
4266
4289
|
let n;
|
|
4267
4290
|
for (; n = fc.exec(e); )
|
|
@@ -4272,15 +4295,15 @@ function hc(e, t) {
|
|
|
4272
4295
|
if (typeof e == "string") {
|
|
4273
4296
|
if (typeof t == "string")
|
|
4274
4297
|
return `${e};${t}`;
|
|
4275
|
-
e =
|
|
4298
|
+
e = yo(e);
|
|
4276
4299
|
} else
|
|
4277
|
-
typeof t == "string" && (t =
|
|
4300
|
+
typeof t == "string" && (t = yo(t));
|
|
4278
4301
|
return { ...e, ...t };
|
|
4279
4302
|
}
|
|
4280
|
-
var
|
|
4303
|
+
var Wn = (e, t, n) => {
|
|
4281
4304
|
let r;
|
|
4282
4305
|
for (const o of e) {
|
|
4283
|
-
const i =
|
|
4306
|
+
const i = fr(o)[t];
|
|
4284
4307
|
r ? i && (r = n(r, i)) : r = i;
|
|
4285
4308
|
}
|
|
4286
4309
|
return r;
|
|
@@ -4291,7 +4314,7 @@ function gc(...e) {
|
|
|
4291
4314
|
return n[0];
|
|
4292
4315
|
const r = t && e[1]?.reverseEventHandlers ? uc : cc, o = {};
|
|
4293
4316
|
for (const s of n) {
|
|
4294
|
-
const a =
|
|
4317
|
+
const a = fr(s);
|
|
4295
4318
|
for (const l in a)
|
|
4296
4319
|
if (l[0] === "o" && l[1] === "n" && l[2]) {
|
|
4297
4320
|
const c = a[l], u = l.toLowerCase(), d = typeof c == "function" ? c : (
|
|
@@ -4308,11 +4331,11 @@ function gc(...e) {
|
|
|
4308
4331
|
if (typeof s != "string")
|
|
4309
4332
|
return Reflect.get(i, s);
|
|
4310
4333
|
if (s === "style")
|
|
4311
|
-
return
|
|
4334
|
+
return Wn(n, "style", hc);
|
|
4312
4335
|
if (s === "ref") {
|
|
4313
4336
|
const a = [];
|
|
4314
4337
|
for (const l of n) {
|
|
4315
|
-
const c =
|
|
4338
|
+
const c = fr(l)[s];
|
|
4316
4339
|
typeof c == "function" && a.push(c);
|
|
4317
4340
|
}
|
|
4318
4341
|
return r(a);
|
|
@@ -4321,7 +4344,7 @@ function gc(...e) {
|
|
|
4321
4344
|
const a = o[s.toLowerCase()];
|
|
4322
4345
|
return a ? r(a) : Reflect.get(i, s);
|
|
4323
4346
|
}
|
|
4324
|
-
return s === "class" || s === "className" ?
|
|
4347
|
+
return s === "class" || s === "className" ? Wn(n, s, (a, l) => `${a} ${l}`) : s === "classList" ? Wn(n, s, (a, l) => ({ ...a, ...l })) : Reflect.get(i, s);
|
|
4325
4348
|
},
|
|
4326
4349
|
has(s) {
|
|
4327
4350
|
return Reflect.has(i, s);
|
|
@@ -4333,13 +4356,13 @@ function gc(...e) {
|
|
|
4333
4356
|
dc
|
|
4334
4357
|
);
|
|
4335
4358
|
}
|
|
4336
|
-
function
|
|
4359
|
+
function rt(...e) {
|
|
4337
4360
|
return oc(e);
|
|
4338
4361
|
}
|
|
4339
4362
|
function pc(e, t, n = -1) {
|
|
4340
4363
|
return n in e ? [...e.slice(0, n), t, ...e.slice(n)] : [...e, t];
|
|
4341
4364
|
}
|
|
4342
|
-
function
|
|
4365
|
+
function hr(e, t) {
|
|
4343
4366
|
const n = [...e], r = n.indexOf(t);
|
|
4344
4367
|
return r !== -1 && n.splice(r, 1), n;
|
|
4345
4368
|
}
|
|
@@ -4349,7 +4372,7 @@ function mc(e) {
|
|
|
4349
4372
|
function yc(e) {
|
|
4350
4373
|
return Array.isArray(e);
|
|
4351
4374
|
}
|
|
4352
|
-
function
|
|
4375
|
+
function at(e) {
|
|
4353
4376
|
return Object.prototype.toString.call(e) === "[object String]";
|
|
4354
4377
|
}
|
|
4355
4378
|
function bc(e) {
|
|
@@ -4384,27 +4407,27 @@ function Vi(e) {
|
|
|
4384
4407
|
return e.tagName === "IFRAME";
|
|
4385
4408
|
}
|
|
4386
4409
|
var Ui = /* @__PURE__ */ ((e) => (e.Escape = "Escape", e.Enter = "Enter", e.Tab = "Tab", e.Space = " ", e.ArrowDown = "ArrowDown", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.ArrowUp = "ArrowUp", e.End = "End", e.Home = "Home", e.PageDown = "PageDown", e.PageUp = "PageUp", e))(Ui || {});
|
|
4387
|
-
function
|
|
4410
|
+
function Rr(e) {
|
|
4388
4411
|
return typeof window < "u" && window.navigator != null ? (
|
|
4389
4412
|
// @ts-ignore
|
|
4390
4413
|
e.test(window.navigator.userAgentData?.platform || window.navigator.platform)
|
|
4391
4414
|
) : !1;
|
|
4392
4415
|
}
|
|
4393
|
-
function
|
|
4394
|
-
return
|
|
4416
|
+
function In() {
|
|
4417
|
+
return Rr(/^Mac/i);
|
|
4395
4418
|
}
|
|
4396
4419
|
function wc() {
|
|
4397
|
-
return
|
|
4420
|
+
return Rr(/^iPhone/i);
|
|
4398
4421
|
}
|
|
4399
4422
|
function vc() {
|
|
4400
|
-
return
|
|
4401
|
-
|
|
4423
|
+
return Rr(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
4424
|
+
In() && navigator.maxTouchPoints > 1;
|
|
4402
4425
|
}
|
|
4403
4426
|
function xc() {
|
|
4404
4427
|
return wc() || vc();
|
|
4405
4428
|
}
|
|
4406
4429
|
function Sc() {
|
|
4407
|
-
return
|
|
4430
|
+
return In() || xc();
|
|
4408
4431
|
}
|
|
4409
4432
|
function he(e, t) {
|
|
4410
4433
|
return t && (bc(t) ? t(e) : t[0](t[1], e)), e?.defaultPrevented;
|
|
@@ -4416,7 +4439,7 @@ function ye(e) {
|
|
|
4416
4439
|
};
|
|
4417
4440
|
}
|
|
4418
4441
|
function Ec(e) {
|
|
4419
|
-
return
|
|
4442
|
+
return In() ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey;
|
|
4420
4443
|
}
|
|
4421
4444
|
function se(e) {
|
|
4422
4445
|
if (e)
|
|
@@ -4475,29 +4498,29 @@ var ji = [
|
|
|
4475
4498
|
"audio[controls]",
|
|
4476
4499
|
"video[controls]",
|
|
4477
4500
|
"[contenteditable]:not([contenteditable='false'])"
|
|
4478
|
-
],
|
|
4501
|
+
], Pc = [...ji, '[tabindex]:not([tabindex="-1"]):not([disabled])'], $r = ji.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])", _c = Pc.join(
|
|
4479
4502
|
':not([hidden]):not([tabindex="-1"]),'
|
|
4480
4503
|
);
|
|
4481
4504
|
function Hi(e, t) {
|
|
4482
|
-
const r = Array.from(e.querySelectorAll(
|
|
4483
|
-
return t &&
|
|
4505
|
+
const r = Array.from(e.querySelectorAll($r)).filter(bo);
|
|
4506
|
+
return t && bo(e) && r.unshift(e), r.forEach((o, i) => {
|
|
4484
4507
|
if (Vi(o) && o.contentDocument) {
|
|
4485
4508
|
const s = o.contentDocument.body, a = Hi(s, !1);
|
|
4486
4509
|
r.splice(i, 1, ...a);
|
|
4487
4510
|
}
|
|
4488
4511
|
}), r;
|
|
4489
4512
|
}
|
|
4490
|
-
function
|
|
4513
|
+
function bo(e) {
|
|
4491
4514
|
return qi(e) && !Ac(e);
|
|
4492
4515
|
}
|
|
4493
4516
|
function qi(e) {
|
|
4494
|
-
return e.matches(
|
|
4517
|
+
return e.matches($r) && Fr(e);
|
|
4495
4518
|
}
|
|
4496
4519
|
function Ac(e) {
|
|
4497
4520
|
return parseInt(e.getAttribute("tabindex") || "0", 10) < 0;
|
|
4498
4521
|
}
|
|
4499
|
-
function
|
|
4500
|
-
return e.nodeName !== "#comment" && Tc(e) && Mc(e, t) && (!e.parentElement ||
|
|
4522
|
+
function Fr(e, t) {
|
|
4523
|
+
return e.nodeName !== "#comment" && Tc(e) && Mc(e, t) && (!e.parentElement || Fr(e.parentElement, e));
|
|
4501
4524
|
}
|
|
4502
4525
|
function Tc(e) {
|
|
4503
4526
|
if (!(e instanceof HTMLElement) && !(e instanceof SVGElement))
|
|
@@ -4519,14 +4542,14 @@ function Dc(e, t) {
|
|
|
4519
4542
|
return t.some((n) => n.contains(e));
|
|
4520
4543
|
}
|
|
4521
4544
|
function Lc(e, t, n) {
|
|
4522
|
-
const r = t?.tabbable ?
|
|
4545
|
+
const r = t?.tabbable ? _c : $r, o = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
4523
4546
|
acceptNode(i) {
|
|
4524
|
-
return t?.from?.contains(i) ? NodeFilter.FILTER_REJECT : i.matches(r) &&
|
|
4547
|
+
return t?.from?.contains(i) ? NodeFilter.FILTER_REJECT : i.matches(r) && Fr(i) && (!n || Dc(i, n)) && (!t?.accept || t.accept(i)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
4525
4548
|
}
|
|
4526
4549
|
});
|
|
4527
4550
|
return t?.from && (o.currentNode = t.from), o;
|
|
4528
4551
|
}
|
|
4529
|
-
function
|
|
4552
|
+
function wo(e) {
|
|
4530
4553
|
for (; e && !Ic(e); )
|
|
4531
4554
|
e = e.parentElement;
|
|
4532
4555
|
return e || document.scrollingElement || document.documentElement;
|
|
@@ -4563,35 +4586,35 @@ function $c(e, t) {
|
|
|
4563
4586
|
function Te(e, t) {
|
|
4564
4587
|
return T(e, t);
|
|
4565
4588
|
}
|
|
4566
|
-
var
|
|
4567
|
-
function
|
|
4589
|
+
var _t = /* @__PURE__ */ new Map(), vo = /* @__PURE__ */ new Set();
|
|
4590
|
+
function xo() {
|
|
4568
4591
|
if (typeof window > "u")
|
|
4569
4592
|
return;
|
|
4570
4593
|
const e = (n) => {
|
|
4571
4594
|
if (!n.target)
|
|
4572
4595
|
return;
|
|
4573
|
-
let r =
|
|
4574
|
-
r || (r = /* @__PURE__ */ new Set(),
|
|
4596
|
+
let r = _t.get(n.target);
|
|
4597
|
+
r || (r = /* @__PURE__ */ new Set(), _t.set(n.target, r), n.target.addEventListener("transitioncancel", t)), r.add(n.propertyName);
|
|
4575
4598
|
}, t = (n) => {
|
|
4576
4599
|
if (!n.target)
|
|
4577
4600
|
return;
|
|
4578
|
-
const r =
|
|
4579
|
-
if (r && (r.delete(n.propertyName), r.size === 0 && (n.target.removeEventListener("transitioncancel", t),
|
|
4580
|
-
for (const o of
|
|
4601
|
+
const r = _t.get(n.target);
|
|
4602
|
+
if (r && (r.delete(n.propertyName), r.size === 0 && (n.target.removeEventListener("transitioncancel", t), _t.delete(n.target)), _t.size === 0)) {
|
|
4603
|
+
for (const o of vo)
|
|
4581
4604
|
o();
|
|
4582
|
-
|
|
4605
|
+
vo.clear();
|
|
4583
4606
|
}
|
|
4584
4607
|
};
|
|
4585
4608
|
document.body.addEventListener("transitionrun", e), document.body.addEventListener("transitionend", t);
|
|
4586
4609
|
}
|
|
4587
|
-
typeof document < "u" && (document.readyState !== "loading" ?
|
|
4588
|
-
function
|
|
4589
|
-
const n =
|
|
4610
|
+
typeof document < "u" && (document.readyState !== "loading" ? xo() : document.addEventListener("DOMContentLoaded", xo));
|
|
4611
|
+
function gr(e, t) {
|
|
4612
|
+
const n = So(e, t, "left"), r = So(e, t, "top"), o = t.offsetWidth, i = t.offsetHeight;
|
|
4590
4613
|
let s = e.scrollLeft, a = e.scrollTop;
|
|
4591
4614
|
const l = s + e.offsetWidth, c = a + e.offsetHeight;
|
|
4592
4615
|
n <= s ? s = n : n + o > l && (s += n + o - l), r <= a ? a = r : r + i > c && (a += r + i - c), e.scrollLeft = s, e.scrollTop = a;
|
|
4593
4616
|
}
|
|
4594
|
-
function
|
|
4617
|
+
function So(e, t, n) {
|
|
4595
4618
|
const r = n === "left" ? "offsetLeft" : "offsetTop";
|
|
4596
4619
|
let o = 0;
|
|
4597
4620
|
for (; t.offsetParent && (o += t[r], t.offsetParent !== e); ) {
|
|
@@ -4607,9 +4630,9 @@ function Fc(e, t) {
|
|
|
4607
4630
|
if (document.contains(e)) {
|
|
4608
4631
|
const n = document.scrollingElement || document.documentElement;
|
|
4609
4632
|
if (window.getComputedStyle(n).overflow === "hidden") {
|
|
4610
|
-
let o =
|
|
4633
|
+
let o = wo(e);
|
|
4611
4634
|
for (; e && o && e !== n && o !== n; )
|
|
4612
|
-
|
|
4635
|
+
gr(o, e), e = o, o = wo(e);
|
|
4613
4636
|
} else {
|
|
4614
4637
|
const { left: o, top: i } = e.getBoundingClientRect();
|
|
4615
4638
|
e?.scrollIntoView?.({ block: "nearest" });
|
|
@@ -4630,29 +4653,29 @@ var Nc = {
|
|
|
4630
4653
|
width: "1px",
|
|
4631
4654
|
"white-space": "nowrap"
|
|
4632
4655
|
};
|
|
4633
|
-
function
|
|
4656
|
+
function pr(e) {
|
|
4634
4657
|
let t = e.startIndex ?? 0;
|
|
4635
4658
|
const n = e.startLevel ?? 0, r = [], o = (l) => {
|
|
4636
4659
|
if (l == null)
|
|
4637
4660
|
return "";
|
|
4638
|
-
const c = e.getKey ?? "key", u =
|
|
4661
|
+
const c = e.getKey ?? "key", u = at(c) ? l[c] : c(l);
|
|
4639
4662
|
return u != null ? String(u) : "";
|
|
4640
4663
|
}, i = (l) => {
|
|
4641
4664
|
if (l == null)
|
|
4642
4665
|
return "";
|
|
4643
|
-
const c = e.getTextValue ?? "textValue", u =
|
|
4666
|
+
const c = e.getTextValue ?? "textValue", u = at(c) ? l[c] : c(l);
|
|
4644
4667
|
return u != null ? String(u) : "";
|
|
4645
4668
|
}, s = (l) => {
|
|
4646
4669
|
if (l == null)
|
|
4647
4670
|
return !1;
|
|
4648
4671
|
const c = e.getDisabled ?? "disabled";
|
|
4649
|
-
return (
|
|
4672
|
+
return (at(c) ? l[c] : c(l)) ?? !1;
|
|
4650
4673
|
}, a = (l) => {
|
|
4651
4674
|
if (l != null)
|
|
4652
|
-
return
|
|
4675
|
+
return at(e.getSectionChildren) ? l[e.getSectionChildren] : e.getSectionChildren?.(l);
|
|
4653
4676
|
};
|
|
4654
4677
|
for (const l of e.dataSource) {
|
|
4655
|
-
if (
|
|
4678
|
+
if (at(l) || mc(l)) {
|
|
4656
4679
|
r.push({
|
|
4657
4680
|
type: "item",
|
|
4658
4681
|
rawValue: l,
|
|
@@ -4676,7 +4699,7 @@ function hr(e) {
|
|
|
4676
4699
|
}), t++;
|
|
4677
4700
|
const c = a(l) ?? [];
|
|
4678
4701
|
if (c.length > 0) {
|
|
4679
|
-
const u =
|
|
4702
|
+
const u = pr({
|
|
4680
4703
|
dataSource: c,
|
|
4681
4704
|
getKey: e.getKey,
|
|
4682
4705
|
getTextValue: e.getTextValue,
|
|
@@ -4708,13 +4731,13 @@ function hr(e) {
|
|
|
4708
4731
|
* https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/collections/src/useCollection.ts
|
|
4709
4732
|
*/
|
|
4710
4733
|
function Kc(e, t = []) {
|
|
4711
|
-
const n =
|
|
4734
|
+
const n = pr({
|
|
4712
4735
|
dataSource: E(e.dataSource),
|
|
4713
4736
|
getKey: E(e.getKey),
|
|
4714
4737
|
getTextValue: E(e.getTextValue),
|
|
4715
4738
|
getDisabled: E(e.getDisabled),
|
|
4716
4739
|
getSectionChildren: E(e.getSectionChildren)
|
|
4717
|
-
}), [r, o] =
|
|
4740
|
+
}), [r, o] = _(e.factory(n));
|
|
4718
4741
|
return M(et([
|
|
4719
4742
|
() => E(e.dataSource),
|
|
4720
4743
|
() => E(e.getKey),
|
|
@@ -4724,7 +4747,7 @@ function Kc(e, t = []) {
|
|
|
4724
4747
|
() => e.factory,
|
|
4725
4748
|
...t
|
|
4726
4749
|
], ([i, s, a, l, c, u]) => {
|
|
4727
|
-
const d =
|
|
4750
|
+
const d = pr({
|
|
4728
4751
|
dataSource: i,
|
|
4729
4752
|
getKey: s,
|
|
4730
4753
|
getTextValue: a,
|
|
@@ -4736,8 +4759,8 @@ function Kc(e, t = []) {
|
|
|
4736
4759
|
defer: !0
|
|
4737
4760
|
})), r;
|
|
4738
4761
|
}
|
|
4739
|
-
function
|
|
4740
|
-
const [t, n] =
|
|
4762
|
+
function Nr(e) {
|
|
4763
|
+
const [t, n] = _(e.defaultValue?.()), r = O(() => e.value?.() !== void 0), o = O(() => r() ? e.value?.() : t());
|
|
4741
4764
|
return [o, (s) => {
|
|
4742
4765
|
W(() => {
|
|
4743
4766
|
const a = ic(s, o());
|
|
@@ -4746,11 +4769,11 @@ function Fr(e) {
|
|
|
4746
4769
|
}];
|
|
4747
4770
|
}
|
|
4748
4771
|
function Bc(e) {
|
|
4749
|
-
const [t, n] =
|
|
4772
|
+
const [t, n] = Nr(e);
|
|
4750
4773
|
return [() => t() ?? !1, n];
|
|
4751
4774
|
}
|
|
4752
4775
|
function zc(e) {
|
|
4753
|
-
const [t, n] =
|
|
4776
|
+
const [t, n] = Nr(e);
|
|
4754
4777
|
return [() => t() ?? [], n];
|
|
4755
4778
|
}
|
|
4756
4779
|
function Wi(e = {}) {
|
|
@@ -4799,8 +4822,8 @@ function Vc(e) {
|
|
|
4799
4822
|
* Credits to the Chakra UI team:
|
|
4800
4823
|
* https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/dismissable/src/layer-stack.ts
|
|
4801
4824
|
*/
|
|
4802
|
-
const
|
|
4803
|
-
let Gi,
|
|
4825
|
+
const En = "data-kb-top-layer";
|
|
4826
|
+
let Gi, mr = !1;
|
|
4804
4827
|
const Ne = [];
|
|
4805
4828
|
function Kt(e) {
|
|
4806
4829
|
return Ne.findIndex((t) => t.node === e);
|
|
@@ -4817,7 +4840,7 @@ function Yi() {
|
|
|
4817
4840
|
function Hc() {
|
|
4818
4841
|
return [...Yi()].slice(-1)[0];
|
|
4819
4842
|
}
|
|
4820
|
-
function
|
|
4843
|
+
function Kr() {
|
|
4821
4844
|
return Yi().length > 0;
|
|
4822
4845
|
}
|
|
4823
4846
|
function Xi(e) {
|
|
@@ -4838,21 +4861,21 @@ function Gc() {
|
|
|
4838
4861
|
e.style.pointerEvents = Xi(e) ? "none" : "auto";
|
|
4839
4862
|
}
|
|
4840
4863
|
function Yc(e) {
|
|
4841
|
-
if (
|
|
4864
|
+
if (Kr() && !mr) {
|
|
4842
4865
|
const t = Fe(e);
|
|
4843
|
-
Gi = document.body.style.pointerEvents, t.body.style.pointerEvents = "none",
|
|
4866
|
+
Gi = document.body.style.pointerEvents, t.body.style.pointerEvents = "none", mr = !0;
|
|
4844
4867
|
}
|
|
4845
4868
|
}
|
|
4846
4869
|
function Xc(e) {
|
|
4847
|
-
if (
|
|
4870
|
+
if (Kr())
|
|
4848
4871
|
return;
|
|
4849
4872
|
const t = Fe(e);
|
|
4850
|
-
t.body.style.pointerEvents = Gi, t.body.style.length === 0 && t.body.removeAttribute("style"),
|
|
4873
|
+
t.body.style.pointerEvents = Gi, t.body.style.length === 0 && t.body.removeAttribute("style"), mr = !1;
|
|
4851
4874
|
}
|
|
4852
4875
|
const ue = {
|
|
4853
4876
|
layers: Ne,
|
|
4854
4877
|
isTopMostLayer: jc,
|
|
4855
|
-
hasPointerBlockingLayer:
|
|
4878
|
+
hasPointerBlockingLayer: Kr,
|
|
4856
4879
|
isBelowPointerBlockingLayer: Xi,
|
|
4857
4880
|
addLayer: qc,
|
|
4858
4881
|
removeLayer: Wc,
|
|
@@ -4876,24 +4899,24 @@ const ue = {
|
|
|
4876
4899
|
* https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/focus-scope/src/focus-on-child-unmount.ts
|
|
4877
4900
|
* https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/focus-scope/src/focus-containment.ts
|
|
4878
4901
|
*/
|
|
4879
|
-
const
|
|
4902
|
+
const Gn = "focusScope.autoFocusOnMount", Yn = "focusScope.autoFocusOnUnmount", Eo = {
|
|
4880
4903
|
bubbles: !1,
|
|
4881
4904
|
cancelable: !0
|
|
4882
|
-
},
|
|
4905
|
+
}, ko = {
|
|
4883
4906
|
/** A stack of focus scopes, with the active one at the top */
|
|
4884
4907
|
stack: [],
|
|
4885
4908
|
active() {
|
|
4886
4909
|
return this.stack[0];
|
|
4887
4910
|
},
|
|
4888
4911
|
add(e) {
|
|
4889
|
-
e !== this.active() && this.active()?.pause(), this.stack =
|
|
4912
|
+
e !== this.active() && this.active()?.pause(), this.stack = hr(this.stack, e), this.stack.unshift(e);
|
|
4890
4913
|
},
|
|
4891
4914
|
remove(e) {
|
|
4892
|
-
this.stack =
|
|
4915
|
+
this.stack = hr(this.stack, e), this.active()?.resume();
|
|
4893
4916
|
}
|
|
4894
4917
|
};
|
|
4895
4918
|
function Jc(e, t) {
|
|
4896
|
-
const [n, r] =
|
|
4919
|
+
const [n, r] = _(!1), o = {
|
|
4897
4920
|
pause() {
|
|
4898
4921
|
r(!0);
|
|
4899
4922
|
},
|
|
@@ -4925,18 +4948,18 @@ function Jc(e, t) {
|
|
|
4925
4948
|
const f = t();
|
|
4926
4949
|
if (!f)
|
|
4927
4950
|
return;
|
|
4928
|
-
|
|
4951
|
+
ko.add(o);
|
|
4929
4952
|
const g = Lt(f);
|
|
4930
4953
|
if (!Ce(f, g)) {
|
|
4931
|
-
const w = new CustomEvent(
|
|
4932
|
-
f.addEventListener(
|
|
4954
|
+
const w = new CustomEvent(Gn, Eo);
|
|
4955
|
+
f.addEventListener(Gn, s), f.dispatchEvent(w), w.defaultPrevented || setTimeout(() => {
|
|
4933
4956
|
se(d()), Lt(f) === g && se(f);
|
|
4934
4957
|
}, 0);
|
|
4935
4958
|
}
|
|
4936
4959
|
B(() => {
|
|
4937
|
-
f.removeEventListener(
|
|
4938
|
-
const w = new CustomEvent(
|
|
4939
|
-
m() && w.preventDefault(), f.addEventListener(
|
|
4960
|
+
f.removeEventListener(Gn, s), setTimeout(() => {
|
|
4961
|
+
const w = new CustomEvent(Yn, Eo);
|
|
4962
|
+
m() && w.preventDefault(), f.addEventListener(Yn, a), f.dispatchEvent(w), w.defaultPrevented || se(g ?? l().body), f.removeEventListener(Yn, a), ko.remove(o);
|
|
4940
4963
|
}, 0);
|
|
4941
4964
|
});
|
|
4942
4965
|
}), M(() => {
|
|
@@ -4945,10 +4968,10 @@ function Jc(e, t) {
|
|
|
4945
4968
|
return;
|
|
4946
4969
|
const g = (w) => {
|
|
4947
4970
|
const b = w.target;
|
|
4948
|
-
b?.closest(`[${
|
|
4971
|
+
b?.closest(`[${En}]`) || (Ce(f, b) ? i = b : se(i));
|
|
4949
4972
|
}, y = (w) => {
|
|
4950
4973
|
const v = w.relatedTarget ?? Lt(f);
|
|
4951
|
-
v?.closest(`[${
|
|
4974
|
+
v?.closest(`[${En}]`) || Ce(f, v) || se(i);
|
|
4952
4975
|
};
|
|
4953
4976
|
l().addEventListener("focusin", g), l().addEventListener("focusout", y), B(() => {
|
|
4954
4977
|
l().removeEventListener("focusin", g), l().removeEventListener("focusout", y);
|
|
@@ -4962,8 +4985,8 @@ function Jc(e, t) {
|
|
|
4962
4985
|
const y = c();
|
|
4963
4986
|
f.insertAdjacentElement("beforeend", y);
|
|
4964
4987
|
function w(v) {
|
|
4965
|
-
const x = d(),
|
|
4966
|
-
v.relatedTarget === x ? se(
|
|
4988
|
+
const x = d(), P = h();
|
|
4989
|
+
v.relatedTarget === x ? se(P) : se(x);
|
|
4967
4990
|
}
|
|
4968
4991
|
g.addEventListener("focusin", w), y.addEventListener("focusin", w);
|
|
4969
4992
|
const b = new MutationObserver((v) => {
|
|
@@ -5001,7 +5024,7 @@ function Qc(e) {
|
|
|
5001
5024
|
const At = /* @__PURE__ */ new WeakMap(), me = [];
|
|
5002
5025
|
function eu(e, t = document.body) {
|
|
5003
5026
|
const n = new Set(e), r = /* @__PURE__ */ new Set(), o = (l) => {
|
|
5004
|
-
for (const h of l.querySelectorAll(`[${Zc}], [${
|
|
5027
|
+
for (const h of l.querySelectorAll(`[${Zc}], [${En}]`))
|
|
5005
5028
|
n.add(h);
|
|
5006
5029
|
const c = (h) => {
|
|
5007
5030
|
if (n.has(h) || h.parentElement && r.has(h.parentElement) && h.parentElement.getAttribute("role") !== "row")
|
|
@@ -5065,12 +5088,12 @@ function eu(e, t = document.body) {
|
|
|
5065
5088
|
* Credits to the Chakra UI team:
|
|
5066
5089
|
* https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/interact-outside/src/index.ts
|
|
5067
5090
|
*/
|
|
5068
|
-
const
|
|
5091
|
+
const Co = "interactOutside.pointerDownOutside", Oo = "interactOutside.focusOutside";
|
|
5069
5092
|
function tu(e, t) {
|
|
5070
5093
|
let n, r = Rc;
|
|
5071
5094
|
const o = () => Fe(t()), i = (d) => e.onPointerDownOutside?.(d), s = (d) => e.onFocusOutside?.(d), a = (d) => e.onInteractOutside?.(d), l = (d) => {
|
|
5072
5095
|
const h = d.target;
|
|
5073
|
-
return !(h instanceof HTMLElement) || h.closest(`[${
|
|
5096
|
+
return !(h instanceof HTMLElement) || h.closest(`[${En}]`) || !Ce(o(), h) || Ce(t(), h) ? !1 : !e.shouldExcludeElement?.(h);
|
|
5074
5097
|
}, c = (d) => {
|
|
5075
5098
|
function h() {
|
|
5076
5099
|
const m = t(), f = d.target;
|
|
@@ -5080,10 +5103,10 @@ function tu(e, t) {
|
|
|
5080
5103
|
i,
|
|
5081
5104
|
a
|
|
5082
5105
|
]);
|
|
5083
|
-
f.addEventListener(
|
|
5106
|
+
f.addEventListener(Co, g, {
|
|
5084
5107
|
once: !0
|
|
5085
5108
|
});
|
|
5086
|
-
const y = new CustomEvent(
|
|
5109
|
+
const y = new CustomEvent(Co, {
|
|
5087
5110
|
bubbles: !1,
|
|
5088
5111
|
cancelable: !0,
|
|
5089
5112
|
detail: {
|
|
@@ -5102,8 +5125,8 @@ function tu(e, t) {
|
|
|
5102
5125
|
s,
|
|
5103
5126
|
a
|
|
5104
5127
|
]);
|
|
5105
|
-
m.addEventListener(
|
|
5106
|
-
const g = new CustomEvent(
|
|
5128
|
+
m.addEventListener(Oo, f, { once: !0 });
|
|
5129
|
+
const g = new CustomEvent(Oo, {
|
|
5107
5130
|
bubbles: !1,
|
|
5108
5131
|
cancelable: !0,
|
|
5109
5132
|
detail: {
|
|
@@ -5130,7 +5153,7 @@ function tu(e, t) {
|
|
|
5130
5153
|
* https://github.com/radix-ui/primitives/blob/21a7c97dc8efa79fecca36428eec49f187294085/packages/react/presence/src/useStateMachine.tsx
|
|
5131
5154
|
*/
|
|
5132
5155
|
function nu(e) {
|
|
5133
|
-
const [t, n] =
|
|
5156
|
+
const [t, n] = _();
|
|
5134
5157
|
let r = {}, o = e(), i = "none";
|
|
5135
5158
|
const [s, a] = ru(e() ? "mounted" : "unmounted", {
|
|
5136
5159
|
mounted: {
|
|
@@ -5177,12 +5200,12 @@ function Qt(e) {
|
|
|
5177
5200
|
return e?.animationName || "none";
|
|
5178
5201
|
}
|
|
5179
5202
|
function ru(e, t) {
|
|
5180
|
-
const n = (s, a) => t[s][a] ?? s, [r, o] =
|
|
5203
|
+
const n = (s, a) => t[s][a] ?? s, [r, o] = _(e);
|
|
5181
5204
|
return [r, (s) => {
|
|
5182
5205
|
o((a) => n(a, s));
|
|
5183
5206
|
}];
|
|
5184
5207
|
}
|
|
5185
|
-
function
|
|
5208
|
+
function kn(e) {
|
|
5186
5209
|
return (t) => (e(t), () => e(void 0));
|
|
5187
5210
|
}
|
|
5188
5211
|
/*!
|
|
@@ -5193,15 +5216,15 @@ function En(e) {
|
|
|
5193
5216
|
* https://github.com/ariakit/ariakit/blob/8a13899ff807bbf39f3d89d2d5964042ba4d5287/packages/ariakit-react-utils/src/hooks.ts
|
|
5194
5217
|
*/
|
|
5195
5218
|
function ou(e, t) {
|
|
5196
|
-
const [n, r] =
|
|
5219
|
+
const [n, r] = _(Po(t?.()));
|
|
5197
5220
|
return M(() => {
|
|
5198
|
-
r(e()?.tagName.toLowerCase() ||
|
|
5221
|
+
r(e()?.tagName.toLowerCase() || Po(t?.()));
|
|
5199
5222
|
}), n;
|
|
5200
5223
|
}
|
|
5201
|
-
function
|
|
5202
|
-
return
|
|
5224
|
+
function Po(e) {
|
|
5225
|
+
return at(e) ? e : void 0;
|
|
5203
5226
|
}
|
|
5204
|
-
function
|
|
5227
|
+
function Rn(e) {
|
|
5205
5228
|
const [t, n] = H(e, ["asChild", "as", "children"]);
|
|
5206
5229
|
if (!t.asChild)
|
|
5207
5230
|
return p(ln, T({
|
|
@@ -5213,15 +5236,15 @@ function Ln(e) {
|
|
|
5213
5236
|
return t.children;
|
|
5214
5237
|
}
|
|
5215
5238
|
}));
|
|
5216
|
-
const r =
|
|
5239
|
+
const r = Mr(() => t.children);
|
|
5217
5240
|
if (_o(r())) {
|
|
5218
|
-
const o =
|
|
5241
|
+
const o = Ao(n, r()?.props ?? {});
|
|
5219
5242
|
return p(ln, o);
|
|
5220
5243
|
}
|
|
5221
5244
|
if (yc(r())) {
|
|
5222
5245
|
const o = r().find(_o);
|
|
5223
5246
|
if (o) {
|
|
5224
|
-
const i = () => p(
|
|
5247
|
+
const i = () => p(ht, {
|
|
5225
5248
|
get each() {
|
|
5226
5249
|
return r();
|
|
5227
5250
|
},
|
|
@@ -5232,7 +5255,7 @@ function Ln(e) {
|
|
|
5232
5255
|
return o.props.children;
|
|
5233
5256
|
}
|
|
5234
5257
|
})
|
|
5235
|
-
}), s =
|
|
5258
|
+
}), s = Ao(n, o?.props ?? {});
|
|
5236
5259
|
return p(ln, T(s, {
|
|
5237
5260
|
children: i
|
|
5238
5261
|
}));
|
|
@@ -5244,7 +5267,7 @@ const iu = Symbol("$$KobalteAsComponent");
|
|
|
5244
5267
|
function _o(e) {
|
|
5245
5268
|
return e?.[iu] === !0;
|
|
5246
5269
|
}
|
|
5247
|
-
function
|
|
5270
|
+
function Ao(e, t) {
|
|
5248
5271
|
return gc([e, t], {
|
|
5249
5272
|
reverseEventHandlers: !0
|
|
5250
5273
|
});
|
|
@@ -5321,18 +5344,18 @@ function Ji() {
|
|
|
5321
5344
|
direction: cu(e)
|
|
5322
5345
|
};
|
|
5323
5346
|
}
|
|
5324
|
-
let
|
|
5347
|
+
let yr = Ji();
|
|
5325
5348
|
const It = /* @__PURE__ */ new Set();
|
|
5326
|
-
function
|
|
5327
|
-
|
|
5349
|
+
function To() {
|
|
5350
|
+
yr = Ji();
|
|
5328
5351
|
for (const e of It)
|
|
5329
|
-
e(
|
|
5352
|
+
e(yr);
|
|
5330
5353
|
}
|
|
5331
5354
|
function uu() {
|
|
5332
|
-
const [e, t] =
|
|
5355
|
+
const [e, t] = _(yr), n = O(() => e());
|
|
5333
5356
|
return Vt(() => {
|
|
5334
|
-
It.size === 0 && window.addEventListener("languagechange",
|
|
5335
|
-
It.delete(t), It.size === 0 && window.removeEventListener("languagechange",
|
|
5357
|
+
It.size === 0 && window.addEventListener("languagechange", To), It.add(t), B(() => {
|
|
5358
|
+
It.delete(t), It.size === 0 && window.removeEventListener("languagechange", To);
|
|
5336
5359
|
});
|
|
5337
5360
|
}), {
|
|
5338
5361
|
locale: () => n().locale,
|
|
@@ -5340,7 +5363,7 @@ function uu() {
|
|
|
5340
5363
|
};
|
|
5341
5364
|
}
|
|
5342
5365
|
const du = le();
|
|
5343
|
-
function
|
|
5366
|
+
function Br() {
|
|
5344
5367
|
const e = uu();
|
|
5345
5368
|
return pe(du) || e;
|
|
5346
5369
|
}
|
|
@@ -5351,13 +5374,13 @@ function Kr() {
|
|
|
5351
5374
|
* Credits to the React Spectrum team:
|
|
5352
5375
|
* https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/i18n/src/useCollator.ts
|
|
5353
5376
|
*/
|
|
5354
|
-
const
|
|
5377
|
+
const Xn = /* @__PURE__ */ new Map();
|
|
5355
5378
|
function fu(e) {
|
|
5356
|
-
const { locale: t } =
|
|
5379
|
+
const { locale: t } = Br(), n = O(() => t() + (e ? Object.entries(e).sort((r, o) => r[0] < o[0] ? -1 : 1).join() : ""));
|
|
5357
5380
|
return O(() => {
|
|
5358
5381
|
const r = n();
|
|
5359
5382
|
let o;
|
|
5360
|
-
return
|
|
5383
|
+
return Xn.has(r) && (o = Xn.get(r)), o || (o = new Intl.Collator(t(), e), Xn.set(r, o)), o;
|
|
5361
5384
|
});
|
|
5362
5385
|
}
|
|
5363
5386
|
/*!
|
|
@@ -5377,7 +5400,7 @@ class Ee extends Set {
|
|
|
5377
5400
|
}
|
|
5378
5401
|
}
|
|
5379
5402
|
function hu(e) {
|
|
5380
|
-
const [t, n] =
|
|
5403
|
+
const [t, n] = Nr(e);
|
|
5381
5404
|
return [() => t() ?? new Ee(), n];
|
|
5382
5405
|
}
|
|
5383
5406
|
/*!
|
|
@@ -5390,10 +5413,10 @@ function hu(e) {
|
|
|
5390
5413
|
function Zi(e) {
|
|
5391
5414
|
return Sc() ? e.altKey : e.ctrlKey;
|
|
5392
5415
|
}
|
|
5393
|
-
function
|
|
5394
|
-
return
|
|
5416
|
+
function lt(e) {
|
|
5417
|
+
return In() ? e.metaKey : e.ctrlKey;
|
|
5395
5418
|
}
|
|
5396
|
-
function
|
|
5419
|
+
function Mo(e) {
|
|
5397
5420
|
return new Ee(e);
|
|
5398
5421
|
}
|
|
5399
5422
|
function gu(e, t) {
|
|
@@ -5415,17 +5438,17 @@ function pu(e) {
|
|
|
5415
5438
|
const t = Te({
|
|
5416
5439
|
selectionMode: "none",
|
|
5417
5440
|
selectionBehavior: "toggle"
|
|
5418
|
-
}, e), [n, r] =
|
|
5441
|
+
}, e), [n, r] = _(!1), [o, i] = _(), s = O(() => {
|
|
5419
5442
|
const g = E(t.selectedKeys);
|
|
5420
|
-
return g != null ?
|
|
5443
|
+
return g != null ? Mo(g) : g;
|
|
5421
5444
|
}), a = O(() => {
|
|
5422
5445
|
const g = E(t.defaultSelectedKeys);
|
|
5423
|
-
return g != null ?
|
|
5446
|
+
return g != null ? Mo(g) : new Ee();
|
|
5424
5447
|
}), [l, c] = hu({
|
|
5425
5448
|
value: s,
|
|
5426
5449
|
defaultValue: a,
|
|
5427
5450
|
onChange: (g) => t.onSelectionChange?.(g)
|
|
5428
|
-
}), [u, d] =
|
|
5451
|
+
}), [u, d] = _(E(t.selectionBehavior)), h = () => E(t.selectionMode), m = () => E(t.disallowEmptySelection) ?? !1, f = (g) => {
|
|
5429
5452
|
(E(t.allowDuplicateSelectionEvents) || !gu(g, l())) && c(g);
|
|
5430
5453
|
};
|
|
5431
5454
|
return M(() => {
|
|
@@ -5454,7 +5477,7 @@ function pu(e) {
|
|
|
5454
5477
|
* https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useTypeSelect.ts
|
|
5455
5478
|
*/
|
|
5456
5479
|
function mu(e) {
|
|
5457
|
-
const [t, n] =
|
|
5480
|
+
const [t, n] = _(""), [r, o] = _(-1);
|
|
5458
5481
|
return {
|
|
5459
5482
|
typeSelectHandlers: {
|
|
5460
5483
|
onKeyDown: (s) => {
|
|
@@ -5489,7 +5512,7 @@ function bu(e) {
|
|
|
5489
5512
|
function wu(e, t, n) {
|
|
5490
5513
|
const o = T({
|
|
5491
5514
|
selectOnFocus: () => E(e.selectionManager).selectionBehavior() === "replace"
|
|
5492
|
-
}, e), i = () => n?.() ?? t(), { direction: s } =
|
|
5515
|
+
}, e), i = () => n?.() ?? t(), { direction: s } = Br();
|
|
5493
5516
|
let a = { top: 0, left: 0 };
|
|
5494
5517
|
lc(() => E(o.isVirtualized) ? void 0 : i(), "scroll", () => {
|
|
5495
5518
|
const g = i();
|
|
@@ -5509,13 +5532,13 @@ function wu(e, t, n) {
|
|
|
5509
5532
|
return;
|
|
5510
5533
|
const w = E(o.selectionManager), b = E(o.selectOnFocus), v = (k) => {
|
|
5511
5534
|
k != null && (w.setFocusedKey(k), g.shiftKey && w.selectionMode() === "multiple" ? w.extendSelection(k) : b && !Zi(g) && w.replaceSelection(k));
|
|
5512
|
-
}, x = E(o.keyboardDelegate),
|
|
5535
|
+
}, x = E(o.keyboardDelegate), P = E(o.shouldFocusWrap), S = w.focusedKey();
|
|
5513
5536
|
switch (g.key) {
|
|
5514
5537
|
case "ArrowDown": {
|
|
5515
5538
|
if (x.getKeyBelow) {
|
|
5516
5539
|
g.preventDefault();
|
|
5517
5540
|
let k;
|
|
5518
|
-
S != null ? k = x.getKeyBelow(S) : k = x.getFirstKey?.(), k == null &&
|
|
5541
|
+
S != null ? k = x.getKeyBelow(S) : k = x.getFirstKey?.(), k == null && P && (k = x.getFirstKey?.(S)), v(k);
|
|
5519
5542
|
}
|
|
5520
5543
|
break;
|
|
5521
5544
|
}
|
|
@@ -5523,7 +5546,7 @@ function wu(e, t, n) {
|
|
|
5523
5546
|
if (x.getKeyAbove) {
|
|
5524
5547
|
g.preventDefault();
|
|
5525
5548
|
let k;
|
|
5526
|
-
S != null ? k = x.getKeyAbove(S) : k = x.getLastKey?.(), k == null &&
|
|
5549
|
+
S != null ? k = x.getKeyAbove(S) : k = x.getLastKey?.(), k == null && P && (k = x.getLastKey?.(S)), v(k);
|
|
5527
5550
|
}
|
|
5528
5551
|
break;
|
|
5529
5552
|
}
|
|
@@ -5548,15 +5571,15 @@ function wu(e, t, n) {
|
|
|
5548
5571
|
case "Home":
|
|
5549
5572
|
if (x.getFirstKey) {
|
|
5550
5573
|
g.preventDefault();
|
|
5551
|
-
const k = x.getFirstKey(S,
|
|
5552
|
-
k != null && (w.setFocusedKey(k),
|
|
5574
|
+
const k = x.getFirstKey(S, lt(g));
|
|
5575
|
+
k != null && (w.setFocusedKey(k), lt(g) && g.shiftKey && w.selectionMode() === "multiple" ? w.extendSelection(k) : b && w.replaceSelection(k));
|
|
5553
5576
|
}
|
|
5554
5577
|
break;
|
|
5555
5578
|
case "End":
|
|
5556
5579
|
if (x.getLastKey) {
|
|
5557
5580
|
g.preventDefault();
|
|
5558
|
-
const k = x.getLastKey(S,
|
|
5559
|
-
k != null && (w.setFocusedKey(k),
|
|
5581
|
+
const k = x.getLastKey(S, lt(g));
|
|
5582
|
+
k != null && (w.setFocusedKey(k), lt(g) && g.shiftKey && w.selectionMode() === "multiple" ? w.extendSelection(k) : b && w.replaceSelection(k));
|
|
5560
5583
|
}
|
|
5561
5584
|
break;
|
|
5562
5585
|
case "PageDown":
|
|
@@ -5574,7 +5597,7 @@ function wu(e, t, n) {
|
|
|
5574
5597
|
}
|
|
5575
5598
|
break;
|
|
5576
5599
|
case "a":
|
|
5577
|
-
|
|
5600
|
+
lt(g) && w.selectionMode() === "multiple" && E(o.disallowSelectAll) !== !0 && (g.preventDefault(), w.selectAll());
|
|
5578
5601
|
break;
|
|
5579
5602
|
case "Escape":
|
|
5580
5603
|
g.defaultPrevented || (g.preventDefault(), E(o.disallowEmptySelection) || w.clearSelection());
|
|
@@ -5602,8 +5625,8 @@ function wu(e, t, n) {
|
|
|
5602
5625
|
}
|
|
5603
5626
|
if (g.currentTarget.contains(g.target)) {
|
|
5604
5627
|
if (y.setFocused(!0), y.focusedKey() == null) {
|
|
5605
|
-
const v = (
|
|
5606
|
-
|
|
5628
|
+
const v = (P) => {
|
|
5629
|
+
P != null && (y.setFocusedKey(P), b && y.replaceSelection(P));
|
|
5607
5630
|
}, x = g.relatedTarget;
|
|
5608
5631
|
x && g.currentTarget.compareDocumentPosition(x) & Node.DOCUMENT_POSITION_FOLLOWING ? v(y.lastSelectedKey() ?? w.getLastKey?.()) : v(y.firstSelectedKey() ?? w.getFirstKey?.());
|
|
5609
5632
|
} else if (!E(o.isVirtualized)) {
|
|
@@ -5611,7 +5634,7 @@ function wu(e, t, n) {
|
|
|
5611
5634
|
if (v) {
|
|
5612
5635
|
v.scrollTop = a.top, v.scrollLeft = a.left;
|
|
5613
5636
|
const x = v.querySelector(`[data-key="${y.focusedKey()}"]`);
|
|
5614
|
-
x && (se(x),
|
|
5637
|
+
x && (se(x), gr(v, x));
|
|
5615
5638
|
}
|
|
5616
5639
|
}
|
|
5617
5640
|
}
|
|
@@ -5644,7 +5667,7 @@ function wu(e, t, n) {
|
|
|
5644
5667
|
b && o.scrollToKey?.(b);
|
|
5645
5668
|
else if (b && y) {
|
|
5646
5669
|
const v = y.querySelector(`[data-key="${b}"]`);
|
|
5647
|
-
v &&
|
|
5670
|
+
v && gr(y, v);
|
|
5648
5671
|
}
|
|
5649
5672
|
})), {
|
|
5650
5673
|
tabIndex: O(() => {
|
|
@@ -5666,7 +5689,7 @@ function wu(e, t, n) {
|
|
|
5666
5689
|
*/
|
|
5667
5690
|
function vu(e, t) {
|
|
5668
5691
|
const n = () => E(e.selectionManager), r = () => E(e.key), o = () => E(e.shouldUseVirtualFocus), i = (b) => {
|
|
5669
|
-
n().selectionMode() !== "none" && (n().selectionMode() === "single" ? n().isSelected(r()) && !n().disallowEmptySelection() ? n().toggleSelection(r()) : n().replaceSelection(r()) : b?.shiftKey ? n().extendSelection(r()) : n().selectionBehavior() === "toggle" ||
|
|
5692
|
+
n().selectionMode() !== "none" && (n().selectionMode() === "single" ? n().isSelected(r()) && !n().disallowEmptySelection() ? n().toggleSelection(r()) : n().replaceSelection(r()) : b?.shiftKey ? n().extendSelection(r()) : n().selectionBehavior() === "toggle" || lt(b) || "pointerType" in b && b.pointerType === "touch" ? n().toggleSelection(r()) : n().replaceSelection(r()));
|
|
5670
5693
|
}, s = () => n().isSelected(r()), a = () => E(e.disabled) || n().isDisabled(r()), l = () => !a() && n().canSelectItem(r());
|
|
5671
5694
|
let c = null;
|
|
5672
5695
|
const u = (b) => {
|
|
@@ -5692,8 +5715,8 @@ function vu(e, t) {
|
|
|
5692
5715
|
o,
|
|
5693
5716
|
() => n().focusedKey(),
|
|
5694
5717
|
() => n().isFocused()
|
|
5695
|
-
], ([b, v, x,
|
|
5696
|
-
b && v ===
|
|
5718
|
+
], ([b, v, x, P, S]) => {
|
|
5719
|
+
b && v === P && S && !x && document.activeElement !== b && (e.focus ? e.focus() : se(b));
|
|
5697
5720
|
})), {
|
|
5698
5721
|
isSelected: s,
|
|
5699
5722
|
isDisabled: a,
|
|
@@ -5931,7 +5954,7 @@ class xu {
|
|
|
5931
5954
|
* Credits to the React Spectrum team:
|
|
5932
5955
|
* https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/list/src/ListCollection.ts
|
|
5933
5956
|
*/
|
|
5934
|
-
class
|
|
5957
|
+
class Do {
|
|
5935
5958
|
keyMap = /* @__PURE__ */ new Map();
|
|
5936
5959
|
iterable;
|
|
5937
5960
|
firstKey;
|
|
@@ -5990,9 +6013,9 @@ function Su(e) {
|
|
|
5990
6013
|
getTextValue: () => E(e.getTextValue),
|
|
5991
6014
|
getDisabled: () => E(e.getDisabled),
|
|
5992
6015
|
getSectionChildren: () => E(e.getSectionChildren),
|
|
5993
|
-
factory: (i) => e.filter ? new
|
|
6016
|
+
factory: (i) => e.filter ? new Do(e.filter(i)) : new Do(i)
|
|
5994
6017
|
}, [() => e.filter]), o = new xu(r, t);
|
|
5995
|
-
return
|
|
6018
|
+
return ir(() => {
|
|
5996
6019
|
const i = t.focusedKey();
|
|
5997
6020
|
i != null && !r().getItem(i) && t.setFocusedKey(void 0);
|
|
5998
6021
|
}), {
|
|
@@ -6139,7 +6162,7 @@ function Ou(e) {
|
|
|
6139
6162
|
const t = e.tagName.toLowerCase();
|
|
6140
6163
|
return t === "button" ? !0 : t === "input" && e.type ? Cu.indexOf(e.type) !== -1 : !1;
|
|
6141
6164
|
}
|
|
6142
|
-
function
|
|
6165
|
+
function Pu(e) {
|
|
6143
6166
|
let t;
|
|
6144
6167
|
const n = Te({
|
|
6145
6168
|
type: "button"
|
|
@@ -6150,10 +6173,10 @@ function _u(e) {
|
|
|
6150
6173
|
type: r.type
|
|
6151
6174
|
});
|
|
6152
6175
|
}), a = O(() => i() === "input"), l = O(() => i() === "a" && t?.getAttribute("href") != null);
|
|
6153
|
-
return p(
|
|
6176
|
+
return p(Rn, T({
|
|
6154
6177
|
as: "button",
|
|
6155
6178
|
ref(c) {
|
|
6156
|
-
var u =
|
|
6179
|
+
var u = rt((d) => t = d, r.ref);
|
|
6157
6180
|
typeof u == "function" && u(c);
|
|
6158
6181
|
},
|
|
6159
6182
|
get type() {
|
|
@@ -6180,7 +6203,7 @@ const Qi = le();
|
|
|
6180
6203
|
function es() {
|
|
6181
6204
|
return pe(Qi);
|
|
6182
6205
|
}
|
|
6183
|
-
function
|
|
6206
|
+
function _u() {
|
|
6184
6207
|
const e = es();
|
|
6185
6208
|
if (e === void 0)
|
|
6186
6209
|
throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");
|
|
@@ -6290,7 +6313,7 @@ function Iu(e = {}) {
|
|
|
6290
6313
|
}) };
|
|
6291
6314
|
}
|
|
6292
6315
|
function Ru(e) {
|
|
6293
|
-
const t =
|
|
6316
|
+
const t = _u(), n = Te({ shouldRegisterItem: !0 }, e);
|
|
6294
6317
|
M(() => {
|
|
6295
6318
|
if (!n.shouldRegisterItem)
|
|
6296
6319
|
return;
|
|
@@ -6298,7 +6321,7 @@ function Ru(e) {
|
|
|
6298
6321
|
B(r);
|
|
6299
6322
|
});
|
|
6300
6323
|
}
|
|
6301
|
-
var V = (e) => typeof e == "function" ? e() : e,
|
|
6324
|
+
var V = (e) => typeof e == "function" ? e() : e, Lo = (e) => requestAnimationFrame(() => requestAnimationFrame(e)), en = /* @__PURE__ */ new Map(), $u = (e) => {
|
|
6302
6325
|
M(() => {
|
|
6303
6326
|
const t = V(e.style) ?? {}, n = V(e.properties) ?? [], r = {};
|
|
6304
6327
|
for (const i in t)
|
|
@@ -6327,7 +6350,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6327
6350
|
}
|
|
6328
6351
|
});
|
|
6329
6352
|
});
|
|
6330
|
-
},
|
|
6353
|
+
}, br = $u, Fu = (e, t) => {
|
|
6331
6354
|
switch (t) {
|
|
6332
6355
|
case "x":
|
|
6333
6356
|
return [e.clientWidth, e.scrollLeft, e.scrollWidth];
|
|
@@ -6349,7 +6372,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6349
6372
|
(c !== 0 || d !== 0) && Nu(o, t) && (i += d, s += c), o === (n ?? document.documentElement) ? a = !0 : o = o.parentElement;
|
|
6350
6373
|
} while (o && !a);
|
|
6351
6374
|
return [i, s];
|
|
6352
|
-
}, [
|
|
6375
|
+
}, [Io, Ro] = _([]), Ku = (e) => Io().indexOf(e) === Io().length - 1, Bu = (e) => {
|
|
6353
6376
|
const t = T(
|
|
6354
6377
|
{
|
|
6355
6378
|
element: null,
|
|
@@ -6363,8 +6386,8 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6363
6386
|
), n = Oe();
|
|
6364
6387
|
let r = [0, 0], o = null, i = null;
|
|
6365
6388
|
M(() => {
|
|
6366
|
-
V(t.enabled) && (
|
|
6367
|
-
|
|
6389
|
+
V(t.enabled) && (Ro((c) => [...c, n]), B(() => {
|
|
6390
|
+
Ro(
|
|
6368
6391
|
(c) => c.filter((u) => u !== n)
|
|
6369
6392
|
);
|
|
6370
6393
|
}));
|
|
@@ -6372,7 +6395,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6372
6395
|
if (!V(t.enabled) || !V(t.hideScrollbar))
|
|
6373
6396
|
return;
|
|
6374
6397
|
const { body: c } = document, u = window.innerWidth - c.offsetWidth;
|
|
6375
|
-
if (
|
|
6398
|
+
if (br({
|
|
6376
6399
|
key: "prevent-scroll-overflow",
|
|
6377
6400
|
element: c,
|
|
6378
6401
|
style: {
|
|
@@ -6385,7 +6408,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6385
6408
|
value: `${u}px`
|
|
6386
6409
|
}));
|
|
6387
6410
|
const m = window.scrollY, f = window.scrollX;
|
|
6388
|
-
|
|
6411
|
+
br({
|
|
6389
6412
|
key: "prevent-scroll-scrollbar",
|
|
6390
6413
|
element: c,
|
|
6391
6414
|
style: d,
|
|
@@ -6407,9 +6430,9 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6407
6430
|
}));
|
|
6408
6431
|
});
|
|
6409
6432
|
const s = (c) => {
|
|
6410
|
-
r =
|
|
6433
|
+
r = $o(c), o = null, i = null;
|
|
6411
6434
|
}, a = (c) => {
|
|
6412
|
-
const u = c.target, d = V(t.element), h = zu(c), m = Math.abs(h[0]) > Math.abs(h[1]) ? "x" : "y", f = m === "x" ? h[0] : h[1], g =
|
|
6435
|
+
const u = c.target, d = V(t.element), h = zu(c), m = Math.abs(h[0]) > Math.abs(h[1]) ? "x" : "y", f = m === "x" ? h[0] : h[1], g = Fo(u, m, f, d);
|
|
6413
6436
|
let y;
|
|
6414
6437
|
d && d.contains(u) ? y = !g : y = g, y && c.cancelable && c.preventDefault();
|
|
6415
6438
|
}, l = (c) => {
|
|
@@ -6419,7 +6442,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6419
6442
|
h = !V(t.allowPinchZoom);
|
|
6420
6443
|
else {
|
|
6421
6444
|
if (o == null || i === null) {
|
|
6422
|
-
const m =
|
|
6445
|
+
const m = $o(c).map(
|
|
6423
6446
|
(g, y) => r[y] - g
|
|
6424
6447
|
), f = Math.abs(m[0]) > Math.abs(m[1]) ? "x" : "y";
|
|
6425
6448
|
o = f, i = f === "x" ? m[0] : m[1];
|
|
@@ -6427,7 +6450,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6427
6450
|
if (d.type === "range")
|
|
6428
6451
|
h = !1;
|
|
6429
6452
|
else {
|
|
6430
|
-
const m =
|
|
6453
|
+
const m = Fo(
|
|
6431
6454
|
d,
|
|
6432
6455
|
o,
|
|
6433
6456
|
i,
|
|
@@ -6441,7 +6464,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6441
6464
|
}, zu = (e) => [
|
|
6442
6465
|
e.deltaX,
|
|
6443
6466
|
e.deltaY
|
|
6444
|
-
],
|
|
6467
|
+
], $o = (e) => e.changedTouches[0] ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0], Fo = (e, t, n, r) => {
|
|
6445
6468
|
const o = r && r.contains(e), [i, s] = rs(
|
|
6446
6469
|
e,
|
|
6447
6470
|
t,
|
|
@@ -6503,10 +6526,10 @@ function ju(e) {
|
|
|
6503
6526
|
return p(is.Provider, {
|
|
6504
6527
|
value: u,
|
|
6505
6528
|
get children() {
|
|
6506
|
-
return p(
|
|
6529
|
+
return p(Rn, T({
|
|
6507
6530
|
as: "div",
|
|
6508
6531
|
ref(d) {
|
|
6509
|
-
var h =
|
|
6532
|
+
var h = rt((m) => t = m, r.ref);
|
|
6510
6533
|
typeof h == "function" && h(d);
|
|
6511
6534
|
}
|
|
6512
6535
|
}, o));
|
|
@@ -6522,10 +6545,10 @@ function Hu() {
|
|
|
6522
6545
|
}
|
|
6523
6546
|
function qu(e) {
|
|
6524
6547
|
const t = Hu(), [n, r] = H(e, ["ref", "style"]);
|
|
6525
|
-
return p(
|
|
6548
|
+
return p(Rn, T({
|
|
6526
6549
|
as: "div",
|
|
6527
6550
|
ref(o) {
|
|
6528
|
-
var i =
|
|
6551
|
+
var i = rt(t.setPositionerRef, n.ref);
|
|
6529
6552
|
typeof i == "function" && i(o);
|
|
6530
6553
|
},
|
|
6531
6554
|
"data-popper-positioner": "",
|
|
@@ -6540,7 +6563,7 @@ function qu(e) {
|
|
|
6540
6563
|
}
|
|
6541
6564
|
}, r));
|
|
6542
6565
|
}
|
|
6543
|
-
const Wu = ["top", "right", "bottom", "left"], He = Math.min, fe = Math.max,
|
|
6566
|
+
const Wu = ["top", "right", "bottom", "left"], He = Math.min, fe = Math.max, Cn = Math.round, tn = Math.floor, qe = (e) => ({
|
|
6544
6567
|
x: e,
|
|
6545
6568
|
y: e
|
|
6546
6569
|
}), Gu = {
|
|
@@ -6552,10 +6575,10 @@ const Wu = ["top", "right", "bottom", "left"], He = Math.min, fe = Math.max, kn
|
|
|
6552
6575
|
start: "end",
|
|
6553
6576
|
end: "start"
|
|
6554
6577
|
};
|
|
6555
|
-
function
|
|
6578
|
+
function wr(e, t, n) {
|
|
6556
6579
|
return fe(e, He(t, n));
|
|
6557
6580
|
}
|
|
6558
|
-
function
|
|
6581
|
+
function ot(e, t) {
|
|
6559
6582
|
return typeof e == "function" ? e(t) : e;
|
|
6560
6583
|
}
|
|
6561
6584
|
function We(e) {
|
|
@@ -6567,26 +6590,26 @@ function vt(e) {
|
|
|
6567
6590
|
function as(e) {
|
|
6568
6591
|
return e === "x" ? "y" : "x";
|
|
6569
6592
|
}
|
|
6570
|
-
function
|
|
6593
|
+
function zr(e) {
|
|
6571
6594
|
return e === "y" ? "height" : "width";
|
|
6572
6595
|
}
|
|
6573
6596
|
function Ut(e) {
|
|
6574
6597
|
return ["top", "bottom"].includes(We(e)) ? "y" : "x";
|
|
6575
6598
|
}
|
|
6576
|
-
function
|
|
6599
|
+
function Vr(e) {
|
|
6577
6600
|
return as(Ut(e));
|
|
6578
6601
|
}
|
|
6579
6602
|
function Xu(e, t, n) {
|
|
6580
6603
|
n === void 0 && (n = !1);
|
|
6581
|
-
const r = vt(e), o =
|
|
6604
|
+
const r = vt(e), o = Vr(e), i = zr(o);
|
|
6582
6605
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
6583
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
6606
|
+
return t.reference[i] > t.floating[i] && (s = On(s)), [s, On(s)];
|
|
6584
6607
|
}
|
|
6585
6608
|
function Ju(e) {
|
|
6586
|
-
const t =
|
|
6587
|
-
return [
|
|
6609
|
+
const t = On(e);
|
|
6610
|
+
return [vr(e), t, vr(t)];
|
|
6588
6611
|
}
|
|
6589
|
-
function
|
|
6612
|
+
function vr(e) {
|
|
6590
6613
|
return e.replace(/start|end/g, (t) => Yu[t]);
|
|
6591
6614
|
}
|
|
6592
6615
|
function Zu(e, t, n) {
|
|
@@ -6605,9 +6628,9 @@ function Zu(e, t, n) {
|
|
|
6605
6628
|
function Qu(e, t, n, r) {
|
|
6606
6629
|
const o = vt(e);
|
|
6607
6630
|
let i = Zu(We(e), n === "start", r);
|
|
6608
|
-
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(
|
|
6631
|
+
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(vr)))), i;
|
|
6609
6632
|
}
|
|
6610
|
-
function
|
|
6633
|
+
function On(e) {
|
|
6611
6634
|
return e.replace(/left|right|bottom|top/g, (t) => Gu[t]);
|
|
6612
6635
|
}
|
|
6613
6636
|
function ed(e) {
|
|
@@ -6627,7 +6650,7 @@ function ls(e) {
|
|
|
6627
6650
|
left: e
|
|
6628
6651
|
};
|
|
6629
6652
|
}
|
|
6630
|
-
function
|
|
6653
|
+
function Pn(e) {
|
|
6631
6654
|
return {
|
|
6632
6655
|
...e,
|
|
6633
6656
|
top: e.y,
|
|
@@ -6636,12 +6659,12 @@ function On(e) {
|
|
|
6636
6659
|
bottom: e.y + e.height
|
|
6637
6660
|
};
|
|
6638
6661
|
}
|
|
6639
|
-
function
|
|
6662
|
+
function No(e, t, n) {
|
|
6640
6663
|
let {
|
|
6641
6664
|
reference: r,
|
|
6642
6665
|
floating: o
|
|
6643
6666
|
} = e;
|
|
6644
|
-
const i = Ut(t), s =
|
|
6667
|
+
const i = Ut(t), s = Vr(t), a = zr(s), l = We(t), c = i === "y", u = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, h = r[a] / 2 - o[a] / 2;
|
|
6645
6668
|
let m;
|
|
6646
6669
|
switch (l) {
|
|
6647
6670
|
case "top":
|
|
@@ -6698,7 +6721,7 @@ const td = async (e, t, n) => {
|
|
|
6698
6721
|
}), {
|
|
6699
6722
|
x: u,
|
|
6700
6723
|
y: d
|
|
6701
|
-
} =
|
|
6724
|
+
} = No(c, r, l), h = r, m = {}, f = 0;
|
|
6702
6725
|
for (let g = 0; g < a.length; g++) {
|
|
6703
6726
|
const {
|
|
6704
6727
|
name: y,
|
|
@@ -6707,7 +6730,7 @@ const td = async (e, t, n) => {
|
|
|
6707
6730
|
x: b,
|
|
6708
6731
|
y: v,
|
|
6709
6732
|
data: x,
|
|
6710
|
-
reset:
|
|
6733
|
+
reset: P
|
|
6711
6734
|
} = await w({
|
|
6712
6735
|
x: u,
|
|
6713
6736
|
y: d,
|
|
@@ -6728,14 +6751,14 @@ const td = async (e, t, n) => {
|
|
|
6728
6751
|
...m[y],
|
|
6729
6752
|
...x
|
|
6730
6753
|
}
|
|
6731
|
-
},
|
|
6754
|
+
}, P && f <= 50 && (f++, typeof P == "object" && (P.placement && (h = P.placement), P.rects && (c = P.rects === !0 ? await s.getElementRects({
|
|
6732
6755
|
reference: e,
|
|
6733
6756
|
floating: t,
|
|
6734
6757
|
strategy: o
|
|
6735
|
-
}) :
|
|
6758
|
+
}) : P.rects), {
|
|
6736
6759
|
x: u,
|
|
6737
6760
|
y: d
|
|
6738
|
-
} =
|
|
6761
|
+
} = No(c, h, l)), g = -1);
|
|
6739
6762
|
}
|
|
6740
6763
|
return {
|
|
6741
6764
|
x: u,
|
|
@@ -6761,7 +6784,7 @@ async function Bt(e, t) {
|
|
|
6761
6784
|
elementContext: d = "floating",
|
|
6762
6785
|
altBoundary: h = !1,
|
|
6763
6786
|
padding: m = 0
|
|
6764
|
-
} =
|
|
6787
|
+
} = ot(t, e), f = ls(m), y = a[h ? d === "floating" ? "reference" : "floating" : d], w = Pn(await i.getClippingRect({
|
|
6765
6788
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
6766
6789
|
boundary: c,
|
|
6767
6790
|
rootBoundary: u,
|
|
@@ -6776,17 +6799,17 @@ async function Bt(e, t) {
|
|
|
6776
6799
|
} : {
|
|
6777
6800
|
x: 1,
|
|
6778
6801
|
y: 1
|
|
6779
|
-
},
|
|
6802
|
+
}, P = Pn(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
6780
6803
|
elements: a,
|
|
6781
6804
|
rect: b,
|
|
6782
6805
|
offsetParent: v,
|
|
6783
6806
|
strategy: l
|
|
6784
6807
|
}) : b);
|
|
6785
6808
|
return {
|
|
6786
|
-
top: (w.top -
|
|
6787
|
-
bottom: (
|
|
6788
|
-
left: (w.left -
|
|
6789
|
-
right: (
|
|
6809
|
+
top: (w.top - P.top + f.top) / x.y,
|
|
6810
|
+
bottom: (P.bottom - w.bottom + f.bottom) / x.y,
|
|
6811
|
+
left: (w.left - P.left + f.left) / x.x,
|
|
6812
|
+
right: (P.right - w.right + f.right) / x.x
|
|
6790
6813
|
};
|
|
6791
6814
|
}
|
|
6792
6815
|
const nd = (e) => ({
|
|
@@ -6804,16 +6827,16 @@ const nd = (e) => ({
|
|
|
6804
6827
|
} = t, {
|
|
6805
6828
|
element: c,
|
|
6806
6829
|
padding: u = 0
|
|
6807
|
-
} =
|
|
6830
|
+
} = ot(e, t) || {};
|
|
6808
6831
|
if (c == null)
|
|
6809
6832
|
return {};
|
|
6810
6833
|
const d = ls(u), h = {
|
|
6811
6834
|
x: n,
|
|
6812
6835
|
y: r
|
|
6813
|
-
}, m =
|
|
6836
|
+
}, m = Vr(o), f = zr(m), g = await s.getDimensions(c), y = m === "y", w = y ? "top" : "left", b = y ? "bottom" : "right", v = y ? "clientHeight" : "clientWidth", x = i.reference[f] + i.reference[m] - h[m] - i.floating[f], P = h[m] - i.reference[m], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
6814
6837
|
let k = S ? S[v] : 0;
|
|
6815
6838
|
(!k || !await (s.isElement == null ? void 0 : s.isElement(S))) && (k = a.floating[v] || i.floating[f]);
|
|
6816
|
-
const R = x / 2 -
|
|
6839
|
+
const R = x / 2 - P / 2, C = k / 2 - g[f] / 2 - 1, K = He(d[w], C), I = He(d[b], C), D = K, ne = k - g[f] - I, X = k / 2 - g[f] / 2 + R, Q = wr(D, X, ne), $ = !l.arrow && vt(o) != null && X !== Q && i.reference[f] / 2 - (X < D ? K : I) - g[f] / 2 < 0, U = $ ? X < D ? X - D : X - ne : 0;
|
|
6817
6840
|
return {
|
|
6818
6841
|
[m]: h[m] + U,
|
|
6819
6842
|
data: {
|
|
@@ -6847,12 +6870,12 @@ const nd = (e) => ({
|
|
|
6847
6870
|
fallbackAxisSideDirection: f = "none",
|
|
6848
6871
|
flipAlignment: g = !0,
|
|
6849
6872
|
...y
|
|
6850
|
-
} =
|
|
6873
|
+
} = ot(e, t);
|
|
6851
6874
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
6852
6875
|
return {};
|
|
6853
|
-
const w = We(o), b = We(a) === a, v = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), x = h || (b || !g ? [
|
|
6876
|
+
const w = We(o), b = We(a) === a, v = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), x = h || (b || !g ? [On(a)] : Ju(a));
|
|
6854
6877
|
!h && f !== "none" && x.push(...Qu(a, g, f, v));
|
|
6855
|
-
const
|
|
6878
|
+
const P = [a, ...x], S = await Bt(t, y), k = [];
|
|
6856
6879
|
let R = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
6857
6880
|
if (u && k.push(S[w]), d) {
|
|
6858
6881
|
const D = Xu(o, s, v);
|
|
@@ -6863,7 +6886,7 @@ const nd = (e) => ({
|
|
|
6863
6886
|
overflows: k
|
|
6864
6887
|
}], !k.every((D) => D <= 0)) {
|
|
6865
6888
|
var C, K;
|
|
6866
|
-
const D = (((C = i.flip) == null ? void 0 : C.index) || 0) + 1, ne =
|
|
6889
|
+
const D = (((C = i.flip) == null ? void 0 : C.index) || 0) + 1, ne = P[D];
|
|
6867
6890
|
if (ne)
|
|
6868
6891
|
return {
|
|
6869
6892
|
data: {
|
|
@@ -6898,7 +6921,7 @@ const nd = (e) => ({
|
|
|
6898
6921
|
}
|
|
6899
6922
|
};
|
|
6900
6923
|
};
|
|
6901
|
-
function
|
|
6924
|
+
function Ko(e, t) {
|
|
6902
6925
|
return {
|
|
6903
6926
|
top: e.top - t.height,
|
|
6904
6927
|
right: e.right - t.width,
|
|
@@ -6906,7 +6929,7 @@ function No(e, t) {
|
|
|
6906
6929
|
left: e.left - t.width
|
|
6907
6930
|
};
|
|
6908
6931
|
}
|
|
6909
|
-
function
|
|
6932
|
+
function Bo(e) {
|
|
6910
6933
|
return Wu.some((t) => e[t] >= 0);
|
|
6911
6934
|
}
|
|
6912
6935
|
const od = function(e) {
|
|
@@ -6919,17 +6942,17 @@ const od = function(e) {
|
|
|
6919
6942
|
} = t, {
|
|
6920
6943
|
strategy: r = "referenceHidden",
|
|
6921
6944
|
...o
|
|
6922
|
-
} =
|
|
6945
|
+
} = ot(e, t);
|
|
6923
6946
|
switch (r) {
|
|
6924
6947
|
case "referenceHidden": {
|
|
6925
6948
|
const i = await Bt(t, {
|
|
6926
6949
|
...o,
|
|
6927
6950
|
elementContext: "reference"
|
|
6928
|
-
}), s =
|
|
6951
|
+
}), s = Ko(i, n.reference);
|
|
6929
6952
|
return {
|
|
6930
6953
|
data: {
|
|
6931
6954
|
referenceHiddenOffsets: s,
|
|
6932
|
-
referenceHidden:
|
|
6955
|
+
referenceHidden: Bo(s)
|
|
6933
6956
|
}
|
|
6934
6957
|
};
|
|
6935
6958
|
}
|
|
@@ -6937,11 +6960,11 @@ const od = function(e) {
|
|
|
6937
6960
|
const i = await Bt(t, {
|
|
6938
6961
|
...o,
|
|
6939
6962
|
altBoundary: !0
|
|
6940
|
-
}), s =
|
|
6963
|
+
}), s = Ko(i, n.floating);
|
|
6941
6964
|
return {
|
|
6942
6965
|
data: {
|
|
6943
6966
|
escapedOffsets: s,
|
|
6944
|
-
escaped:
|
|
6967
|
+
escaped: Bo(s)
|
|
6945
6968
|
}
|
|
6946
6969
|
};
|
|
6947
6970
|
}
|
|
@@ -6956,7 +6979,7 @@ async function id(e, t) {
|
|
|
6956
6979
|
placement: n,
|
|
6957
6980
|
platform: r,
|
|
6958
6981
|
elements: o
|
|
6959
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = We(n), a = vt(n), l = Ut(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, u = i && l ? -1 : 1, d =
|
|
6982
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = We(n), a = vt(n), l = Ut(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, u = i && l ? -1 : 1, d = ot(t, e);
|
|
6960
6983
|
let {
|
|
6961
6984
|
mainAxis: h,
|
|
6962
6985
|
crossAxis: m,
|
|
@@ -7026,18 +7049,18 @@ const sd = function(e) {
|
|
|
7026
7049
|
}
|
|
7027
7050
|
},
|
|
7028
7051
|
...l
|
|
7029
|
-
} =
|
|
7052
|
+
} = ot(e, t), c = {
|
|
7030
7053
|
x: n,
|
|
7031
7054
|
y: r
|
|
7032
7055
|
}, u = await Bt(t, l), d = Ut(We(o)), h = as(d);
|
|
7033
7056
|
let m = c[h], f = c[d];
|
|
7034
7057
|
if (i) {
|
|
7035
7058
|
const y = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", b = m + u[y], v = m - u[w];
|
|
7036
|
-
m =
|
|
7059
|
+
m = wr(b, m, v);
|
|
7037
7060
|
}
|
|
7038
7061
|
if (s) {
|
|
7039
7062
|
const y = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", b = f + u[y], v = f - u[w];
|
|
7040
|
-
f =
|
|
7063
|
+
f = wr(b, f, v);
|
|
7041
7064
|
}
|
|
7042
7065
|
const g = a.fn({
|
|
7043
7066
|
...t,
|
|
@@ -7067,7 +7090,7 @@ const sd = function(e) {
|
|
|
7067
7090
|
apply: s = () => {
|
|
7068
7091
|
},
|
|
7069
7092
|
...a
|
|
7070
|
-
} =
|
|
7093
|
+
} = ot(e, t), l = await Bt(t, a), c = We(n), u = vt(n), d = Ut(n) === "y", {
|
|
7071
7094
|
width: h,
|
|
7072
7095
|
height: m
|
|
7073
7096
|
} = r.floating;
|
|
@@ -7091,8 +7114,8 @@ const sd = function(e) {
|
|
|
7091
7114
|
availableWidth: x,
|
|
7092
7115
|
availableHeight: v
|
|
7093
7116
|
});
|
|
7094
|
-
const
|
|
7095
|
-
return h !==
|
|
7117
|
+
const P = await o.getDimensions(i.floating);
|
|
7118
|
+
return h !== P.width || m !== P.height ? {
|
|
7096
7119
|
reset: {
|
|
7097
7120
|
rects: !0
|
|
7098
7121
|
}
|
|
@@ -7117,10 +7140,10 @@ function cs(e) {
|
|
|
7117
7140
|
function Ke(e) {
|
|
7118
7141
|
return e instanceof Element || e instanceof ge(e).Element;
|
|
7119
7142
|
}
|
|
7120
|
-
function
|
|
7143
|
+
function _e(e) {
|
|
7121
7144
|
return e instanceof HTMLElement || e instanceof ge(e).HTMLElement;
|
|
7122
7145
|
}
|
|
7123
|
-
function
|
|
7146
|
+
function zo(e) {
|
|
7124
7147
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ge(e).ShadowRoot;
|
|
7125
7148
|
}
|
|
7126
7149
|
function jt(e) {
|
|
@@ -7135,29 +7158,29 @@ function jt(e) {
|
|
|
7135
7158
|
function cd(e) {
|
|
7136
7159
|
return ["table", "td", "th"].includes(Ge(e));
|
|
7137
7160
|
}
|
|
7138
|
-
function
|
|
7139
|
-
const t =
|
|
7161
|
+
function Ur(e) {
|
|
7162
|
+
const t = jr(), n = xe(e);
|
|
7140
7163
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
7141
7164
|
}
|
|
7142
7165
|
function ud(e) {
|
|
7143
7166
|
let t = yt(e);
|
|
7144
|
-
for (;
|
|
7145
|
-
if (
|
|
7167
|
+
for (; _e(t) && !$n(t); ) {
|
|
7168
|
+
if (Ur(t))
|
|
7146
7169
|
return t;
|
|
7147
7170
|
t = yt(t);
|
|
7148
7171
|
}
|
|
7149
7172
|
return null;
|
|
7150
7173
|
}
|
|
7151
|
-
function
|
|
7174
|
+
function jr() {
|
|
7152
7175
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
7153
7176
|
}
|
|
7154
|
-
function
|
|
7177
|
+
function $n(e) {
|
|
7155
7178
|
return ["html", "body", "#document"].includes(Ge(e));
|
|
7156
7179
|
}
|
|
7157
7180
|
function xe(e) {
|
|
7158
7181
|
return ge(e).getComputedStyle(e);
|
|
7159
7182
|
}
|
|
7160
|
-
function
|
|
7183
|
+
function Fn(e) {
|
|
7161
7184
|
return Ke(e) ? {
|
|
7162
7185
|
scrollLeft: e.scrollLeft,
|
|
7163
7186
|
scrollTop: e.scrollTop
|
|
@@ -7173,14 +7196,14 @@ function yt(e) {
|
|
|
7173
7196
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
7174
7197
|
e.assignedSlot || // DOM Element detected.
|
|
7175
7198
|
e.parentNode || // ShadowRoot detected.
|
|
7176
|
-
|
|
7199
|
+
zo(e) && e.host || // Fallback.
|
|
7177
7200
|
ze(e)
|
|
7178
7201
|
);
|
|
7179
|
-
return
|
|
7202
|
+
return zo(t) ? t.host : t;
|
|
7180
7203
|
}
|
|
7181
7204
|
function us(e) {
|
|
7182
7205
|
const t = yt(e);
|
|
7183
|
-
return
|
|
7206
|
+
return $n(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : _e(t) && jt(t) ? t : us(t);
|
|
7184
7207
|
}
|
|
7185
7208
|
function zt(e, t, n) {
|
|
7186
7209
|
var r;
|
|
@@ -7191,26 +7214,26 @@ function zt(e, t, n) {
|
|
|
7191
7214
|
function ds(e) {
|
|
7192
7215
|
const t = xe(e);
|
|
7193
7216
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
7194
|
-
const o =
|
|
7217
|
+
const o = _e(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = Cn(n) !== i || Cn(r) !== s;
|
|
7195
7218
|
return a && (n = i, r = s), {
|
|
7196
7219
|
width: n,
|
|
7197
7220
|
height: r,
|
|
7198
7221
|
$: a
|
|
7199
7222
|
};
|
|
7200
7223
|
}
|
|
7201
|
-
function
|
|
7224
|
+
function Hr(e) {
|
|
7202
7225
|
return Ke(e) ? e : e.contextElement;
|
|
7203
7226
|
}
|
|
7204
|
-
function
|
|
7205
|
-
const t =
|
|
7206
|
-
if (!
|
|
7227
|
+
function dt(e) {
|
|
7228
|
+
const t = Hr(e);
|
|
7229
|
+
if (!_e(t))
|
|
7207
7230
|
return qe(1);
|
|
7208
7231
|
const n = t.getBoundingClientRect(), {
|
|
7209
7232
|
width: r,
|
|
7210
7233
|
height: o,
|
|
7211
7234
|
$: i
|
|
7212
7235
|
} = ds(t);
|
|
7213
|
-
let s = (i ?
|
|
7236
|
+
let s = (i ? Cn(n.width) : n.width) / r, a = (i ? Cn(n.height) : n.height) / o;
|
|
7214
7237
|
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
7215
7238
|
x: s,
|
|
7216
7239
|
y: a
|
|
@@ -7219,7 +7242,7 @@ function ft(e) {
|
|
|
7219
7242
|
const dd = /* @__PURE__ */ qe(0);
|
|
7220
7243
|
function fs(e) {
|
|
7221
7244
|
const t = ge(e);
|
|
7222
|
-
return !
|
|
7245
|
+
return !jr() || !t.visualViewport ? dd : {
|
|
7223
7246
|
x: t.visualViewport.offsetLeft,
|
|
7224
7247
|
y: t.visualViewport.offsetTop
|
|
7225
7248
|
};
|
|
@@ -7227,22 +7250,22 @@ function fs(e) {
|
|
|
7227
7250
|
function fd(e, t, n) {
|
|
7228
7251
|
return t === void 0 && (t = !1), !n || t && n !== ge(e) ? !1 : t;
|
|
7229
7252
|
}
|
|
7230
|
-
function
|
|
7253
|
+
function tt(e, t, n, r) {
|
|
7231
7254
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7232
|
-
const o = e.getBoundingClientRect(), i =
|
|
7255
|
+
const o = e.getBoundingClientRect(), i = Hr(e);
|
|
7233
7256
|
let s = qe(1);
|
|
7234
|
-
t && (r ? Ke(r) && (s =
|
|
7257
|
+
t && (r ? Ke(r) && (s = dt(r)) : s = dt(e));
|
|
7235
7258
|
const a = fd(i, n, r) ? fs(i) : qe(0);
|
|
7236
7259
|
let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, u = o.width / s.x, d = o.height / s.y;
|
|
7237
7260
|
if (i) {
|
|
7238
7261
|
const h = ge(i), m = r && Ke(r) ? ge(r) : r;
|
|
7239
7262
|
let f = h, g = f.frameElement;
|
|
7240
7263
|
for (; g && r && m !== f; ) {
|
|
7241
|
-
const y =
|
|
7264
|
+
const y = dt(g), w = g.getBoundingClientRect(), b = xe(g), v = w.left + (g.clientLeft + parseFloat(b.paddingLeft)) * y.x, x = w.top + (g.clientTop + parseFloat(b.paddingTop)) * y.y;
|
|
7242
7265
|
l *= y.x, c *= y.y, u *= y.x, d *= y.y, l += v, c += x, f = ge(g), g = f.frameElement;
|
|
7243
7266
|
}
|
|
7244
7267
|
}
|
|
7245
|
-
return
|
|
7268
|
+
return Pn({
|
|
7246
7269
|
width: u,
|
|
7247
7270
|
height: d,
|
|
7248
7271
|
x: l,
|
|
@@ -7273,10 +7296,10 @@ function gd(e) {
|
|
|
7273
7296
|
scrollLeft: 0,
|
|
7274
7297
|
scrollTop: 0
|
|
7275
7298
|
}, c = qe(1);
|
|
7276
|
-
const u = qe(0), d =
|
|
7277
|
-
if ((d || !d && !i) && ((Ge(r) !== "body" || jt(s)) && (l =
|
|
7278
|
-
const h =
|
|
7279
|
-
c =
|
|
7299
|
+
const u = qe(0), d = _e(r);
|
|
7300
|
+
if ((d || !d && !i) && ((Ge(r) !== "body" || jt(s)) && (l = Fn(r)), _e(r))) {
|
|
7301
|
+
const h = tt(r);
|
|
7302
|
+
c = dt(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
|
|
7280
7303
|
}
|
|
7281
7304
|
return {
|
|
7282
7305
|
width: n.width * c.x,
|
|
@@ -7289,10 +7312,10 @@ function pd(e) {
|
|
|
7289
7312
|
return Array.from(e.getClientRects());
|
|
7290
7313
|
}
|
|
7291
7314
|
function gs(e) {
|
|
7292
|
-
return
|
|
7315
|
+
return tt(ze(e)).left + Fn(e).scrollLeft;
|
|
7293
7316
|
}
|
|
7294
7317
|
function md(e) {
|
|
7295
|
-
const t = ze(e), n =
|
|
7318
|
+
const t = ze(e), n = Fn(e), r = e.ownerDocument.body, o = fe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = fe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
7296
7319
|
let s = -n.scrollLeft + gs(e);
|
|
7297
7320
|
const a = -n.scrollTop;
|
|
7298
7321
|
return xe(r).direction === "rtl" && (s += fe(t.clientWidth, r.clientWidth) - o), {
|
|
@@ -7307,7 +7330,7 @@ function yd(e, t) {
|
|
|
7307
7330
|
let i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
7308
7331
|
if (o) {
|
|
7309
7332
|
i = o.width, s = o.height;
|
|
7310
|
-
const c =
|
|
7333
|
+
const c = jr();
|
|
7311
7334
|
(!c || c && t === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
|
|
7312
7335
|
}
|
|
7313
7336
|
return {
|
|
@@ -7318,7 +7341,7 @@ function yd(e, t) {
|
|
|
7318
7341
|
};
|
|
7319
7342
|
}
|
|
7320
7343
|
function bd(e, t) {
|
|
7321
|
-
const n =
|
|
7344
|
+
const n = tt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = _e(e) ? dt(e) : qe(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
|
|
7322
7345
|
return {
|
|
7323
7346
|
width: s,
|
|
7324
7347
|
height: a,
|
|
@@ -7326,7 +7349,7 @@ function bd(e, t) {
|
|
|
7326
7349
|
y: c
|
|
7327
7350
|
};
|
|
7328
7351
|
}
|
|
7329
|
-
function
|
|
7352
|
+
function Vo(e, t, n) {
|
|
7330
7353
|
let r;
|
|
7331
7354
|
if (t === "viewport")
|
|
7332
7355
|
r = yd(e, n);
|
|
@@ -7342,11 +7365,11 @@ function zo(e, t, n) {
|
|
|
7342
7365
|
y: t.y - o.y
|
|
7343
7366
|
};
|
|
7344
7367
|
}
|
|
7345
|
-
return
|
|
7368
|
+
return Pn(r);
|
|
7346
7369
|
}
|
|
7347
7370
|
function ps(e, t) {
|
|
7348
7371
|
const n = yt(e);
|
|
7349
|
-
return n === t || !Ke(n) ||
|
|
7372
|
+
return n === t || !Ke(n) || $n(n) ? !1 : xe(n).position === "fixed" || ps(n, t);
|
|
7350
7373
|
}
|
|
7351
7374
|
function wd(e, t) {
|
|
7352
7375
|
const n = t.get(e);
|
|
@@ -7355,8 +7378,8 @@ function wd(e, t) {
|
|
|
7355
7378
|
let r = zt(e, [], !1).filter((a) => Ke(a) && Ge(a) !== "body"), o = null;
|
|
7356
7379
|
const i = xe(e).position === "fixed";
|
|
7357
7380
|
let s = i ? yt(e) : e;
|
|
7358
|
-
for (; Ke(s) &&
|
|
7359
|
-
const a = xe(s), l =
|
|
7381
|
+
for (; Ke(s) && !$n(s); ) {
|
|
7382
|
+
const a = xe(s), l = Ur(s);
|
|
7360
7383
|
!l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || jt(s) && !l && ps(e, s)) ? r = r.filter((u) => u !== s) : o = a, s = yt(s);
|
|
7361
7384
|
}
|
|
7362
7385
|
return t.set(e, r), r;
|
|
@@ -7369,9 +7392,9 @@ function vd(e) {
|
|
|
7369
7392
|
strategy: o
|
|
7370
7393
|
} = e;
|
|
7371
7394
|
const s = [...n === "clippingAncestors" ? wd(t, this._c) : [].concat(n), r], a = s[0], l = s.reduce((c, u) => {
|
|
7372
|
-
const d =
|
|
7395
|
+
const d = Vo(t, u, o);
|
|
7373
7396
|
return c.top = fe(d.top, c.top), c.right = He(d.right, c.right), c.bottom = He(d.bottom, c.bottom), c.left = fe(d.left, c.left), c;
|
|
7374
|
-
},
|
|
7397
|
+
}, Vo(t, a, o));
|
|
7375
7398
|
return {
|
|
7376
7399
|
width: l.right - l.left,
|
|
7377
7400
|
height: l.bottom - l.top,
|
|
@@ -7390,15 +7413,15 @@ function xd(e) {
|
|
|
7390
7413
|
};
|
|
7391
7414
|
}
|
|
7392
7415
|
function Sd(e, t, n) {
|
|
7393
|
-
const r =
|
|
7416
|
+
const r = _e(t), o = ze(t), i = n === "fixed", s = tt(e, !0, i, t);
|
|
7394
7417
|
let a = {
|
|
7395
7418
|
scrollLeft: 0,
|
|
7396
7419
|
scrollTop: 0
|
|
7397
7420
|
};
|
|
7398
7421
|
const l = qe(0);
|
|
7399
7422
|
if (r || !r && !i)
|
|
7400
|
-
if ((Ge(t) !== "body" || jt(o)) && (a =
|
|
7401
|
-
const d =
|
|
7423
|
+
if ((Ge(t) !== "body" || jt(o)) && (a = Fn(t)), r) {
|
|
7424
|
+
const d = tt(t, !0, i, t);
|
|
7402
7425
|
l.x = d.x + t.clientLeft, l.y = d.y + t.clientTop;
|
|
7403
7426
|
} else
|
|
7404
7427
|
o && (l.x = gs(o));
|
|
@@ -7410,17 +7433,17 @@ function Sd(e, t, n) {
|
|
|
7410
7433
|
height: s.height
|
|
7411
7434
|
};
|
|
7412
7435
|
}
|
|
7413
|
-
function
|
|
7414
|
-
return !
|
|
7436
|
+
function Uo(e, t) {
|
|
7437
|
+
return !_e(e) || xe(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
7415
7438
|
}
|
|
7416
7439
|
function ms(e, t) {
|
|
7417
7440
|
const n = ge(e);
|
|
7418
|
-
if (!
|
|
7441
|
+
if (!_e(e) || hs(e))
|
|
7419
7442
|
return n;
|
|
7420
|
-
let r =
|
|
7443
|
+
let r = Uo(e, t);
|
|
7421
7444
|
for (; r && cd(r) && xe(r).position === "static"; )
|
|
7422
|
-
r =
|
|
7423
|
-
return r && (Ge(r) === "html" || Ge(r) === "body" && xe(r).position === "static" && !
|
|
7445
|
+
r = Uo(r, t);
|
|
7446
|
+
return r && (Ge(r) === "html" || Ge(r) === "body" && xe(r).position === "static" && !Ur(r)) ? n : r || ud(e) || n;
|
|
7424
7447
|
}
|
|
7425
7448
|
const Ed = async function(e) {
|
|
7426
7449
|
const t = this.getOffsetParent || ms, n = this.getDimensions;
|
|
@@ -7444,7 +7467,7 @@ const ys = {
|
|
|
7444
7467
|
getElementRects: Ed,
|
|
7445
7468
|
getClientRects: pd,
|
|
7446
7469
|
getDimensions: xd,
|
|
7447
|
-
getScale:
|
|
7470
|
+
getScale: dt,
|
|
7448
7471
|
isElement: Ke,
|
|
7449
7472
|
isRTL: kd
|
|
7450
7473
|
};
|
|
@@ -7470,8 +7493,8 @@ function Cd(e, t) {
|
|
|
7470
7493
|
threshold: fe(0, He(1, l)) || 1
|
|
7471
7494
|
};
|
|
7472
7495
|
let v = !0;
|
|
7473
|
-
function x(
|
|
7474
|
-
const S =
|
|
7496
|
+
function x(P) {
|
|
7497
|
+
const S = P[0].intersectionRatio;
|
|
7475
7498
|
if (S !== l) {
|
|
7476
7499
|
if (!v)
|
|
7477
7500
|
return s();
|
|
@@ -7502,7 +7525,7 @@ function Od(e, t, n, r) {
|
|
|
7502
7525
|
elementResize: s = typeof ResizeObserver == "function",
|
|
7503
7526
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
7504
7527
|
animationFrame: l = !1
|
|
7505
|
-
} = r, c =
|
|
7528
|
+
} = r, c = Hr(e), u = o || i ? [...c ? zt(c) : [], ...zt(t)] : [];
|
|
7506
7529
|
u.forEach((w) => {
|
|
7507
7530
|
o && w.addEventListener("scroll", n, {
|
|
7508
7531
|
passive: !0
|
|
@@ -7517,10 +7540,10 @@ function Od(e, t, n, r) {
|
|
|
7517
7540
|
(v = m) == null || v.observe(t);
|
|
7518
7541
|
})), n();
|
|
7519
7542
|
}), c && !l && m.observe(c), m.observe(t));
|
|
7520
|
-
let f, g = l ?
|
|
7543
|
+
let f, g = l ? tt(e) : null;
|
|
7521
7544
|
l && y();
|
|
7522
7545
|
function y() {
|
|
7523
|
-
const w =
|
|
7546
|
+
const w = tt(e);
|
|
7524
7547
|
g && (w.x !== g.x || w.y !== g.y || w.width !== g.width || w.height !== g.height) && n(), g = w, f = requestAnimationFrame(y);
|
|
7525
7548
|
}
|
|
7526
7549
|
return n(), () => {
|
|
@@ -7530,7 +7553,7 @@ function Od(e, t, n, r) {
|
|
|
7530
7553
|
}), d?.(), (w = m) == null || w.disconnect(), m = null, l && cancelAnimationFrame(f);
|
|
7531
7554
|
};
|
|
7532
7555
|
}
|
|
7533
|
-
const
|
|
7556
|
+
const Pd = ad, _d = rd, Ad = ld, Td = od, Md = nd, Dd = (e, t, n) => {
|
|
7534
7557
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
7535
7558
|
platform: ys,
|
|
7536
7559
|
...n
|
|
@@ -7543,7 +7566,7 @@ const _d = ad, Pd = rd, Ad = ld, Td = od, Md = nd, Dd = (e, t, n) => {
|
|
|
7543
7566
|
platform: i
|
|
7544
7567
|
});
|
|
7545
7568
|
};
|
|
7546
|
-
function
|
|
7569
|
+
function jo(e) {
|
|
7547
7570
|
const { x: t = 0, y: n = 0, width: r = 0, height: o = 0 } = e ?? {};
|
|
7548
7571
|
if (typeof DOMRect == "function")
|
|
7549
7572
|
return new DOMRect(t, n, r, o);
|
|
@@ -7564,7 +7587,7 @@ function Ld(e, t) {
|
|
|
7564
7587
|
contextElement: e,
|
|
7565
7588
|
getBoundingClientRect: () => {
|
|
7566
7589
|
const r = t(e);
|
|
7567
|
-
return r ?
|
|
7590
|
+
return r ? jo(r) : e ? e.getBoundingClientRect() : jo();
|
|
7568
7591
|
}
|
|
7569
7592
|
};
|
|
7570
7593
|
}
|
|
@@ -7596,9 +7619,9 @@ function Fd(e) {
|
|
|
7596
7619
|
detachedPadding: 0,
|
|
7597
7620
|
arrowPadding: 4,
|
|
7598
7621
|
overflowPadding: 8
|
|
7599
|
-
}, e), [n, r] =
|
|
7622
|
+
}, e), [n, r] = _(), [o, i] = _(), [s, a] = _(t.placement), l = () => Ld(t.anchorRef(), t.getAnchorRect), {
|
|
7600
7623
|
direction: c
|
|
7601
|
-
} =
|
|
7624
|
+
} = Br();
|
|
7602
7625
|
async function u() {
|
|
7603
7626
|
const h = l(), m = n(), f = o();
|
|
7604
7627
|
if (!h || !m)
|
|
@@ -7622,12 +7645,12 @@ function Fd(e) {
|
|
|
7622
7645
|
const S = typeof t.flip == "string" ? t.flip.split(" ") : void 0;
|
|
7623
7646
|
if (S !== void 0 && !S.every(Id))
|
|
7624
7647
|
throw new Error("`flip` expects a spaced-delimited list of placements");
|
|
7625
|
-
w.push(
|
|
7648
|
+
w.push(_d({
|
|
7626
7649
|
padding: t.overflowPadding,
|
|
7627
7650
|
fallbackPlacements: S
|
|
7628
7651
|
}));
|
|
7629
7652
|
}
|
|
7630
|
-
(t.slide || t.overlap) && w.push(
|
|
7653
|
+
(t.slide || t.overlap) && w.push(Pd({
|
|
7631
7654
|
mainAxis: t.slide,
|
|
7632
7655
|
crossAxis: t.overlap,
|
|
7633
7656
|
padding: t.overflowPadding
|
|
@@ -7660,12 +7683,12 @@ function Fd(e) {
|
|
|
7660
7683
|
return;
|
|
7661
7684
|
m.style.setProperty("--kb-popper-content-transform-origin", $d(b.placement, c()));
|
|
7662
7685
|
const v = Math.round(b.x), x = Math.round(b.y);
|
|
7663
|
-
let
|
|
7664
|
-
if (t.hideWhenDetached && (
|
|
7686
|
+
let P;
|
|
7687
|
+
if (t.hideWhenDetached && (P = b.middlewareData.hide?.referenceHidden ? "hidden" : "visible"), Object.assign(m.style, {
|
|
7665
7688
|
top: "0",
|
|
7666
7689
|
left: "0",
|
|
7667
7690
|
transform: `translate3d(${v}px, ${x}px, 0)`,
|
|
7668
|
-
visibility:
|
|
7691
|
+
visibility: P
|
|
7669
7692
|
}), f && b.middlewareData.arrow) {
|
|
7670
7693
|
const {
|
|
7671
7694
|
x: S,
|
|
@@ -7738,7 +7761,7 @@ function Kd(e) {
|
|
|
7738
7761
|
placement: "bottom-start"
|
|
7739
7762
|
}, e), [i, s] = H(o, ["open", "defaultOpen", "onOpenChange"]);
|
|
7740
7763
|
let a = 0, l = null, c = "right";
|
|
7741
|
-
const [u, d] =
|
|
7764
|
+
const [u, d] = _(), [h, m] = _(), [f, g] = _(), [y, w] = _(), [b, v] = _(!0), [x, P] = _(s.placement), [S, k] = _([]), [R, C] = _([]), {
|
|
7742
7765
|
DomCollectionProvider: K
|
|
7743
7766
|
} = Iu({
|
|
7744
7767
|
items: R,
|
|
@@ -7760,16 +7783,16 @@ function Kd(e) {
|
|
|
7760
7783
|
const j = y();
|
|
7761
7784
|
j && (se(j), ne.selectionManager().setFocused(!0), ne.selectionManager().setFocusedKey(void 0));
|
|
7762
7785
|
}, ie = (j) => {
|
|
7763
|
-
k((
|
|
7786
|
+
k((Vn) => [...Vn, j]);
|
|
7764
7787
|
const Wt = r?.registerNestedMenu(j);
|
|
7765
7788
|
return () => {
|
|
7766
|
-
k((
|
|
7789
|
+
k((Vn) => hr(Vn, j)), Wt?.();
|
|
7767
7790
|
};
|
|
7768
7791
|
}, Me = (j) => c === l?.side && Nd(j, l?.area), qt = (j) => {
|
|
7769
7792
|
Me(j) && j.preventDefault();
|
|
7770
7793
|
}, Je = (j) => {
|
|
7771
7794
|
Me(j) || U();
|
|
7772
|
-
},
|
|
7795
|
+
}, it = (j) => {
|
|
7773
7796
|
Me(j) && j.preventDefault();
|
|
7774
7797
|
};
|
|
7775
7798
|
Qc({
|
|
@@ -7809,14 +7832,14 @@ function Kd(e) {
|
|
|
7809
7832
|
focusContent: U,
|
|
7810
7833
|
onItemEnter: qt,
|
|
7811
7834
|
onItemLeave: Je,
|
|
7812
|
-
onTriggerLeave:
|
|
7835
|
+
onTriggerLeave: it,
|
|
7813
7836
|
setPointerDir: (j) => c = j,
|
|
7814
7837
|
setPointerGraceTimeoutId: (j) => a = j,
|
|
7815
7838
|
setPointerGraceIntent: (j) => l = j,
|
|
7816
7839
|
registerNestedMenu: ie,
|
|
7817
7840
|
registerItemToParentDomCollection: n?.registerItem,
|
|
7818
|
-
registerTriggerId:
|
|
7819
|
-
registerContentId:
|
|
7841
|
+
registerTriggerId: kn(d),
|
|
7842
|
+
registerContentId: kn(m)
|
|
7820
7843
|
};
|
|
7821
7844
|
return p(K, {
|
|
7822
7845
|
get children() {
|
|
@@ -7826,7 +7849,7 @@ function Kd(e) {
|
|
|
7826
7849
|
return p(Fd, T({
|
|
7827
7850
|
anchorRef: f,
|
|
7828
7851
|
contentRef: y,
|
|
7829
|
-
onCurrentPlacementChange:
|
|
7852
|
+
onCurrentPlacementChange: P
|
|
7830
7853
|
}, s));
|
|
7831
7854
|
}
|
|
7832
7855
|
});
|
|
@@ -7838,7 +7861,7 @@ function zd(e) {
|
|
|
7838
7861
|
let t;
|
|
7839
7862
|
const n = St(), r = xt(), o = Te({
|
|
7840
7863
|
id: n.generateId(`item-${Oe()}`)
|
|
7841
|
-
}, e), [i, s] = H(o, ["ref", "textValue", "disabled", "closeOnSelect", "checked", "indeterminate", "onSelect", "onPointerMove", "onPointerLeave", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]), [a, l] =
|
|
7864
|
+
}, e), [i, s] = H(o, ["ref", "textValue", "disabled", "closeOnSelect", "checked", "indeterminate", "onSelect", "onPointerMove", "onPointerLeave", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]), [a, l] = _(), [c, u] = _(), [d, h] = _(), m = () => r.listState().selectionManager(), f = () => s.id, g = () => m().focusedKey() === f(), y = () => {
|
|
7842
7865
|
i.onSelect?.(), i.closeOnSelect && r.close(!0);
|
|
7843
7866
|
};
|
|
7844
7867
|
Ru({
|
|
@@ -7862,7 +7885,7 @@ function zd(e) {
|
|
|
7862
7885
|
he(C, i.onPointerLeave), C.pointerType === "mouse" && r.onItemLeave(C);
|
|
7863
7886
|
}, x = (C) => {
|
|
7864
7887
|
he(C, i.onPointerUp), !i.disabled && C.button === 0 && y();
|
|
7865
|
-
},
|
|
7888
|
+
}, P = (C) => {
|
|
7866
7889
|
if (he(C, i.onKeyDown), !C.repeat && !i.disabled)
|
|
7867
7890
|
switch (C.key) {
|
|
7868
7891
|
case "Enter":
|
|
@@ -7885,16 +7908,16 @@ function zd(e) {
|
|
|
7885
7908
|
dataset: k,
|
|
7886
7909
|
setLabelRef: h,
|
|
7887
7910
|
generateId: zi(() => s.id),
|
|
7888
|
-
registerLabel:
|
|
7889
|
-
registerDescription:
|
|
7911
|
+
registerLabel: kn(l),
|
|
7912
|
+
registerDescription: kn(u)
|
|
7890
7913
|
};
|
|
7891
7914
|
return p(Bd.Provider, {
|
|
7892
7915
|
value: R,
|
|
7893
7916
|
get children() {
|
|
7894
|
-
return p(
|
|
7917
|
+
return p(Rn, T({
|
|
7895
7918
|
as: "div",
|
|
7896
7919
|
ref(C) {
|
|
7897
|
-
var K =
|
|
7920
|
+
var K = rt((I) => t = I, i.ref);
|
|
7898
7921
|
typeof K == "function" && K(C);
|
|
7899
7922
|
},
|
|
7900
7923
|
get tabIndex() {
|
|
@@ -7925,7 +7948,7 @@ function zd(e) {
|
|
|
7925
7948
|
return ye([i.onClick, w.onClick]);
|
|
7926
7949
|
},
|
|
7927
7950
|
get onKeyDown() {
|
|
7928
|
-
return ye([
|
|
7951
|
+
return ye([P, w.onKeyDown]);
|
|
7929
7952
|
},
|
|
7930
7953
|
get onMouseDown() {
|
|
7931
7954
|
return ye([i.onMouseDown, w.onMouseDown]);
|
|
@@ -7997,7 +8020,7 @@ function Ud(e) {
|
|
|
7997
8020
|
get children() {
|
|
7998
8021
|
return p(ju, T({
|
|
7999
8022
|
ref(y) {
|
|
8000
|
-
var w =
|
|
8023
|
+
var w = rt((b) => {
|
|
8001
8024
|
r.setContentRef(b), r.contentPresence.setRef(b), t = b;
|
|
8002
8025
|
}, s.ref);
|
|
8003
8026
|
typeof w == "function" && w(y);
|
|
@@ -8059,7 +8082,7 @@ function jd(e) {
|
|
|
8059
8082
|
enabled: () => r.isOpen() && n.preventScroll()
|
|
8060
8083
|
}), p(Ud, T({
|
|
8061
8084
|
ref(s) {
|
|
8062
|
-
var a =
|
|
8085
|
+
var a = rt((l) => {
|
|
8063
8086
|
t = l;
|
|
8064
8087
|
}, o.ref);
|
|
8065
8088
|
typeof a == "function" && a(s);
|
|
@@ -8159,9 +8182,9 @@ function Gd(e) {
|
|
|
8159
8182
|
}, m = (f) => {
|
|
8160
8183
|
he(f, i.onFocus), r !== void 0 && r.setValue(a);
|
|
8161
8184
|
};
|
|
8162
|
-
return M(() => B(n.registerTriggerId(i.id))), p(
|
|
8185
|
+
return M(() => B(n.registerTriggerId(i.id))), p(Pu, T({
|
|
8163
8186
|
ref(f) {
|
|
8164
|
-
var g =
|
|
8187
|
+
var g = rt(n.setTriggerRef, i.ref);
|
|
8165
8188
|
typeof g == "function" && g(f);
|
|
8166
8189
|
},
|
|
8167
8190
|
get id() {
|
|
@@ -8286,7 +8309,7 @@ function lf(e) {
|
|
|
8286
8309
|
}
|
|
8287
8310
|
}
|
|
8288
8311
|
async function cf(e, t, n) {
|
|
8289
|
-
const r = `${
|
|
8312
|
+
const r = `${Sn}/v1/messages`, o = {
|
|
8290
8313
|
credentials: "include",
|
|
8291
8314
|
method: "POST",
|
|
8292
8315
|
headers: {
|
|
@@ -8304,7 +8327,7 @@ async function cf(e, t, n) {
|
|
|
8304
8327
|
async function uf(e, t, n) {
|
|
8305
8328
|
if (!e || !t || !n)
|
|
8306
8329
|
return;
|
|
8307
|
-
const r = `${
|
|
8330
|
+
const r = `${Sn}/v1/widget/${e}/restart`, o = {
|
|
8308
8331
|
credentials: "include",
|
|
8309
8332
|
method: "POST",
|
|
8310
8333
|
headers: {
|
|
@@ -8329,29 +8352,29 @@ const cn = /* @__PURE__ */ Object.create(null);
|
|
|
8329
8352
|
Object.keys(Ae).forEach((e) => {
|
|
8330
8353
|
cn[Ae[e]] = e;
|
|
8331
8354
|
});
|
|
8332
|
-
const
|
|
8355
|
+
const xr = { type: "error", data: "parser error" }, Ss = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Es = typeof ArrayBuffer == "function", ks = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer, qr = ({ type: e, data: t }, n, r) => Ss && t instanceof Blob ? n ? r(t) : Ho(t, r) : Es && (t instanceof ArrayBuffer || ks(t)) ? n ? r(t) : Ho(new Blob([t]), r) : r(Ae[e] + (t || "")), Ho = (e, t) => {
|
|
8333
8356
|
const n = new FileReader();
|
|
8334
8357
|
return n.onload = function() {
|
|
8335
8358
|
const r = n.result.split(",")[1];
|
|
8336
8359
|
t("b" + (r || ""));
|
|
8337
8360
|
}, n.readAsDataURL(e);
|
|
8338
8361
|
};
|
|
8339
|
-
function
|
|
8362
|
+
function qo(e) {
|
|
8340
8363
|
return e instanceof Uint8Array ? e : e instanceof ArrayBuffer ? new Uint8Array(e) : new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
|
|
8341
8364
|
}
|
|
8342
|
-
let
|
|
8365
|
+
let Jn;
|
|
8343
8366
|
function df(e, t) {
|
|
8344
8367
|
if (Ss && e.data instanceof Blob)
|
|
8345
|
-
return e.data.arrayBuffer().then(
|
|
8368
|
+
return e.data.arrayBuffer().then(qo).then(t);
|
|
8346
8369
|
if (Es && (e.data instanceof ArrayBuffer || ks(e.data)))
|
|
8347
|
-
return t(
|
|
8348
|
-
|
|
8349
|
-
|
|
8370
|
+
return t(qo(e.data));
|
|
8371
|
+
qr(e, !1, (n) => {
|
|
8372
|
+
Jn || (Jn = new TextEncoder()), t(Jn.encode(n));
|
|
8350
8373
|
});
|
|
8351
8374
|
}
|
|
8352
|
-
const
|
|
8353
|
-
for (let e = 0; e <
|
|
8354
|
-
Rt[
|
|
8375
|
+
const Wo = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Rt = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
8376
|
+
for (let e = 0; e < Wo.length; e++)
|
|
8377
|
+
Rt[Wo.charCodeAt(e)] = e;
|
|
8355
8378
|
const ff = (e) => {
|
|
8356
8379
|
let t = e.length * 0.75, n = e.length, r, o = 0, i, s, a, l;
|
|
8357
8380
|
e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
|
|
@@ -8359,7 +8382,7 @@ const ff = (e) => {
|
|
|
8359
8382
|
for (r = 0; r < n; r += 4)
|
|
8360
8383
|
i = Rt[e.charCodeAt(r)], s = Rt[e.charCodeAt(r + 1)], a = Rt[e.charCodeAt(r + 2)], l = Rt[e.charCodeAt(r + 3)], u[o++] = i << 2 | s >> 4, u[o++] = (s & 15) << 4 | a >> 2, u[o++] = (a & 3) << 6 | l & 63;
|
|
8361
8384
|
return c;
|
|
8362
|
-
}, hf = typeof ArrayBuffer == "function",
|
|
8385
|
+
}, hf = typeof ArrayBuffer == "function", Wr = (e, t) => {
|
|
8363
8386
|
if (typeof e != "string")
|
|
8364
8387
|
return {
|
|
8365
8388
|
type: "message",
|
|
@@ -8374,7 +8397,7 @@ const ff = (e) => {
|
|
|
8374
8397
|
data: e.substring(1)
|
|
8375
8398
|
} : {
|
|
8376
8399
|
type: cn[n]
|
|
8377
|
-
} :
|
|
8400
|
+
} : xr;
|
|
8378
8401
|
}, gf = (e, t) => {
|
|
8379
8402
|
if (hf) {
|
|
8380
8403
|
const n = ff(e);
|
|
@@ -8393,14 +8416,14 @@ const ff = (e) => {
|
|
|
8393
8416
|
const n = e.length, r = new Array(n);
|
|
8394
8417
|
let o = 0;
|
|
8395
8418
|
e.forEach((i, s) => {
|
|
8396
|
-
|
|
8419
|
+
qr(i, !1, (a) => {
|
|
8397
8420
|
r[s] = a, ++o === n && t(r.join(Os));
|
|
8398
8421
|
});
|
|
8399
8422
|
});
|
|
8400
8423
|
}, mf = (e, t) => {
|
|
8401
8424
|
const n = e.split(Os), r = [];
|
|
8402
8425
|
for (let o = 0; o < n.length; o++) {
|
|
8403
|
-
const i =
|
|
8426
|
+
const i = Wr(n[o], t);
|
|
8404
8427
|
if (r.push(i), i.type === "error")
|
|
8405
8428
|
break;
|
|
8406
8429
|
}
|
|
@@ -8428,7 +8451,7 @@ function yf() {
|
|
|
8428
8451
|
}
|
|
8429
8452
|
});
|
|
8430
8453
|
}
|
|
8431
|
-
let
|
|
8454
|
+
let Zn;
|
|
8432
8455
|
function nn(e) {
|
|
8433
8456
|
return e.reduce((t, n) => t + n.length, 0);
|
|
8434
8457
|
}
|
|
@@ -8442,7 +8465,7 @@ function rn(e, t) {
|
|
|
8442
8465
|
return e.length && r < e[0].length && (e[0] = e[0].slice(r)), n;
|
|
8443
8466
|
}
|
|
8444
8467
|
function bf(e, t) {
|
|
8445
|
-
|
|
8468
|
+
Zn || (Zn = new TextDecoder());
|
|
8446
8469
|
const n = [];
|
|
8447
8470
|
let r = 0, o = -1, i = !1;
|
|
8448
8471
|
return new TransformStream({
|
|
@@ -8463,7 +8486,7 @@ function bf(e, t) {
|
|
|
8463
8486
|
break;
|
|
8464
8487
|
const l = rn(n, 8), c = new DataView(l.buffer, l.byteOffset, l.length), u = c.getUint32(0);
|
|
8465
8488
|
if (u > Math.pow(2, 21) - 1) {
|
|
8466
|
-
a.enqueue(
|
|
8489
|
+
a.enqueue(xr);
|
|
8467
8490
|
break;
|
|
8468
8491
|
}
|
|
8469
8492
|
o = u * Math.pow(2, 32) + c.getUint32(4), r = 3;
|
|
@@ -8471,17 +8494,17 @@ function bf(e, t) {
|
|
|
8471
8494
|
if (nn(n) < o)
|
|
8472
8495
|
break;
|
|
8473
8496
|
const l = rn(n, o);
|
|
8474
|
-
a.enqueue(
|
|
8497
|
+
a.enqueue(Wr(i ? l : Zn.decode(l), t)), r = 0;
|
|
8475
8498
|
}
|
|
8476
8499
|
if (o === 0 || o > e) {
|
|
8477
|
-
a.enqueue(
|
|
8500
|
+
a.enqueue(xr);
|
|
8478
8501
|
break;
|
|
8479
8502
|
}
|
|
8480
8503
|
}
|
|
8481
8504
|
}
|
|
8482
8505
|
});
|
|
8483
8506
|
}
|
|
8484
|
-
const
|
|
8507
|
+
const Ps = 4;
|
|
8485
8508
|
function Z(e) {
|
|
8486
8509
|
if (e)
|
|
8487
8510
|
return wf(e);
|
|
@@ -8533,12 +8556,12 @@ Z.prototype.listeners = function(e) {
|
|
|
8533
8556
|
Z.prototype.hasListeners = function(e) {
|
|
8534
8557
|
return !!this.listeners(e).length;
|
|
8535
8558
|
};
|
|
8536
|
-
const
|
|
8537
|
-
function
|
|
8559
|
+
const Nn = typeof Promise == "function" && typeof Promise.resolve == "function" ? (t) => Promise.resolve().then(t) : (t, n) => n(t, 0), be = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(), vf = "arraybuffer";
|
|
8560
|
+
function _s(e, ...t) {
|
|
8538
8561
|
return t.reduce((n, r) => (e.hasOwnProperty(r) && (n[r] = e[r]), n), {});
|
|
8539
8562
|
}
|
|
8540
8563
|
const xf = be.setTimeout, Sf = be.clearTimeout;
|
|
8541
|
-
function
|
|
8564
|
+
function Kn(e, t) {
|
|
8542
8565
|
t.useNativeTimers ? (e.setTimeoutFn = xf.bind(be), e.clearTimeoutFn = Sf.bind(be)) : (e.setTimeoutFn = be.setTimeout.bind(be), e.clearTimeoutFn = be.clearTimeout.bind(be));
|
|
8543
8566
|
}
|
|
8544
8567
|
const Ef = 1.33;
|
|
@@ -8560,7 +8583,7 @@ function Of(e) {
|
|
|
8560
8583
|
e.hasOwnProperty(n) && (t.length && (t += "&"), t += encodeURIComponent(n) + "=" + encodeURIComponent(e[n]));
|
|
8561
8584
|
return t;
|
|
8562
8585
|
}
|
|
8563
|
-
function
|
|
8586
|
+
function Pf(e) {
|
|
8564
8587
|
let t = {}, n = e.split("&");
|
|
8565
8588
|
for (let r = 0, o = n.length; r < o; r++) {
|
|
8566
8589
|
let i = n[r].split("=");
|
|
@@ -8568,12 +8591,12 @@ function _f(e) {
|
|
|
8568
8591
|
}
|
|
8569
8592
|
return t;
|
|
8570
8593
|
}
|
|
8571
|
-
class
|
|
8594
|
+
class _f extends Error {
|
|
8572
8595
|
constructor(t, n, r) {
|
|
8573
8596
|
super(t), this.description = n, this.context = r, this.type = "TransportError";
|
|
8574
8597
|
}
|
|
8575
8598
|
}
|
|
8576
|
-
class
|
|
8599
|
+
class Gr extends Z {
|
|
8577
8600
|
/**
|
|
8578
8601
|
* Transport abstract constructor.
|
|
8579
8602
|
*
|
|
@@ -8581,7 +8604,7 @@ class Wr extends Z {
|
|
|
8581
8604
|
* @protected
|
|
8582
8605
|
*/
|
|
8583
8606
|
constructor(t) {
|
|
8584
|
-
super(), this.writable = !1,
|
|
8607
|
+
super(), this.writable = !1, Kn(this, t), this.opts = t, this.query = t.query, this.socket = t.socket, this.supportsBinary = !t.forceBase64;
|
|
8585
8608
|
}
|
|
8586
8609
|
/**
|
|
8587
8610
|
* Emits an error.
|
|
@@ -8593,7 +8616,7 @@ class Wr extends Z {
|
|
|
8593
8616
|
* @protected
|
|
8594
8617
|
*/
|
|
8595
8618
|
onError(t, n, r) {
|
|
8596
|
-
return super.emitReserved("error", new
|
|
8619
|
+
return super.emitReserved("error", new _f(t, n, r)), this;
|
|
8597
8620
|
}
|
|
8598
8621
|
/**
|
|
8599
8622
|
* Opens the transport.
|
|
@@ -8630,7 +8653,7 @@ class Wr extends Z {
|
|
|
8630
8653
|
* @protected
|
|
8631
8654
|
*/
|
|
8632
8655
|
onData(t) {
|
|
8633
|
-
const n =
|
|
8656
|
+
const n = Wr(t, this.socket.binaryType);
|
|
8634
8657
|
this.onPacket(n);
|
|
8635
8658
|
}
|
|
8636
8659
|
/**
|
|
@@ -8671,7 +8694,7 @@ class Wr extends Z {
|
|
|
8671
8694
|
return n.length ? "?" + n : "";
|
|
8672
8695
|
}
|
|
8673
8696
|
}
|
|
8674
|
-
class Af extends
|
|
8697
|
+
class Af extends Gr {
|
|
8675
8698
|
constructor() {
|
|
8676
8699
|
super(...arguments), this._polling = !1;
|
|
8677
8700
|
}
|
|
@@ -8813,7 +8836,7 @@ class Df extends Af {
|
|
|
8813
8836
|
}), this.pollXhr = t;
|
|
8814
8837
|
}
|
|
8815
8838
|
}
|
|
8816
|
-
class
|
|
8839
|
+
class Pe extends Z {
|
|
8817
8840
|
/**
|
|
8818
8841
|
* Request constructor
|
|
8819
8842
|
*
|
|
@@ -8821,7 +8844,7 @@ class _e extends Z {
|
|
|
8821
8844
|
* @package
|
|
8822
8845
|
*/
|
|
8823
8846
|
constructor(t, n, r) {
|
|
8824
|
-
super(), this.createRequest = t,
|
|
8847
|
+
super(), this.createRequest = t, Kn(this, r), this._opts = r, this._method = r.method || "GET", this._uri = n, this._data = r.data !== void 0 ? r.data : null, this._create();
|
|
8825
8848
|
}
|
|
8826
8849
|
/**
|
|
8827
8850
|
* Creates the XHR object and sends the request.
|
|
@@ -8830,7 +8853,7 @@ class _e extends Z {
|
|
|
8830
8853
|
*/
|
|
8831
8854
|
_create() {
|
|
8832
8855
|
var t;
|
|
8833
|
-
const n =
|
|
8856
|
+
const n = _s(this._opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
|
|
8834
8857
|
n.xdomain = !!this._opts.xd;
|
|
8835
8858
|
const r = this._xhr = this.createRequest(n);
|
|
8836
8859
|
try {
|
|
@@ -8867,7 +8890,7 @@ class _e extends Z {
|
|
|
8867
8890
|
}, 0);
|
|
8868
8891
|
return;
|
|
8869
8892
|
}
|
|
8870
|
-
typeof document < "u" && (this._index =
|
|
8893
|
+
typeof document < "u" && (this._index = Pe.requestsCount++, Pe.requests[this._index] = this);
|
|
8871
8894
|
}
|
|
8872
8895
|
/**
|
|
8873
8896
|
* Called upon error.
|
|
@@ -8889,7 +8912,7 @@ class _e extends Z {
|
|
|
8889
8912
|
this._xhr.abort();
|
|
8890
8913
|
} catch {
|
|
8891
8914
|
}
|
|
8892
|
-
typeof document < "u" && delete
|
|
8915
|
+
typeof document < "u" && delete Pe.requests[this._index], this._xhr = null;
|
|
8893
8916
|
}
|
|
8894
8917
|
}
|
|
8895
8918
|
/**
|
|
@@ -8910,19 +8933,19 @@ class _e extends Z {
|
|
|
8910
8933
|
this._cleanup();
|
|
8911
8934
|
}
|
|
8912
8935
|
}
|
|
8913
|
-
|
|
8914
|
-
|
|
8936
|
+
Pe.requestsCount = 0;
|
|
8937
|
+
Pe.requests = {};
|
|
8915
8938
|
if (typeof document < "u") {
|
|
8916
8939
|
if (typeof attachEvent == "function")
|
|
8917
|
-
attachEvent("onunload",
|
|
8940
|
+
attachEvent("onunload", Go);
|
|
8918
8941
|
else if (typeof addEventListener == "function") {
|
|
8919
8942
|
const e = "onpagehide" in be ? "pagehide" : "unload";
|
|
8920
|
-
addEventListener(e,
|
|
8943
|
+
addEventListener(e, Go, !1);
|
|
8921
8944
|
}
|
|
8922
8945
|
}
|
|
8923
|
-
function
|
|
8924
|
-
for (let e in
|
|
8925
|
-
|
|
8946
|
+
function Go() {
|
|
8947
|
+
for (let e in Pe.requests)
|
|
8948
|
+
Pe.requests.hasOwnProperty(e) && Pe.requests[e].abort();
|
|
8926
8949
|
}
|
|
8927
8950
|
const Lf = function() {
|
|
8928
8951
|
const e = Ms({
|
|
@@ -8937,7 +8960,7 @@ class If extends Df {
|
|
|
8937
8960
|
this.supportsBinary = Lf && !n;
|
|
8938
8961
|
}
|
|
8939
8962
|
request(t = {}) {
|
|
8940
|
-
return Object.assign(t, { xd: this.xd }, this.opts), new
|
|
8963
|
+
return Object.assign(t, { xd: this.xd }, this.opts), new Pe(Ms, this.uri(), t);
|
|
8941
8964
|
}
|
|
8942
8965
|
}
|
|
8943
8966
|
function Ms(e) {
|
|
@@ -8954,12 +8977,12 @@ function Ms(e) {
|
|
|
8954
8977
|
}
|
|
8955
8978
|
}
|
|
8956
8979
|
const Ds = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
|
8957
|
-
class Rf extends
|
|
8980
|
+
class Rf extends Gr {
|
|
8958
8981
|
get name() {
|
|
8959
8982
|
return "websocket";
|
|
8960
8983
|
}
|
|
8961
8984
|
doOpen() {
|
|
8962
|
-
const t = this.uri(), n = this.opts.protocols, r = Ds ? {} :
|
|
8985
|
+
const t = this.uri(), n = this.opts.protocols, r = Ds ? {} : _s(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
|
|
8963
8986
|
this.opts.extraHeaders && (r.headers = this.opts.extraHeaders);
|
|
8964
8987
|
try {
|
|
8965
8988
|
this.ws = this.createSocket(t, n, r);
|
|
@@ -8985,12 +9008,12 @@ class Rf extends Wr {
|
|
|
8985
9008
|
this.writable = !1;
|
|
8986
9009
|
for (let n = 0; n < t.length; n++) {
|
|
8987
9010
|
const r = t[n], o = n === t.length - 1;
|
|
8988
|
-
|
|
9011
|
+
qr(r, this.supportsBinary, (i) => {
|
|
8989
9012
|
try {
|
|
8990
9013
|
this.doWrite(r, i);
|
|
8991
9014
|
} catch {
|
|
8992
9015
|
}
|
|
8993
|
-
o &&
|
|
9016
|
+
o && Nn(() => {
|
|
8994
9017
|
this.writable = !0, this.emitReserved("drain");
|
|
8995
9018
|
}, this.setTimeoutFn);
|
|
8996
9019
|
});
|
|
@@ -9009,16 +9032,16 @@ class Rf extends Wr {
|
|
|
9009
9032
|
return this.opts.timestampRequests && (n[this.opts.timestampParam] = As()), this.supportsBinary || (n.b64 = 1), this.createUri(t, n);
|
|
9010
9033
|
}
|
|
9011
9034
|
}
|
|
9012
|
-
const
|
|
9035
|
+
const Qn = be.WebSocket || be.MozWebSocket;
|
|
9013
9036
|
class $f extends Rf {
|
|
9014
9037
|
createSocket(t, n, r) {
|
|
9015
|
-
return Ds ? new
|
|
9038
|
+
return Ds ? new Qn(t, n, r) : n ? new Qn(t, n) : new Qn(t);
|
|
9016
9039
|
}
|
|
9017
9040
|
doWrite(t, n) {
|
|
9018
9041
|
this.ws.send(n);
|
|
9019
9042
|
}
|
|
9020
9043
|
}
|
|
9021
|
-
class Ff extends
|
|
9044
|
+
class Ff extends Gr {
|
|
9022
9045
|
get name() {
|
|
9023
9046
|
return "webtransport";
|
|
9024
9047
|
}
|
|
@@ -9053,7 +9076,7 @@ class Ff extends Wr {
|
|
|
9053
9076
|
for (let n = 0; n < t.length; n++) {
|
|
9054
9077
|
const r = t[n], o = n === t.length - 1;
|
|
9055
9078
|
this._writer.write(r).then(() => {
|
|
9056
|
-
o &&
|
|
9079
|
+
o && Nn(() => {
|
|
9057
9080
|
this.writable = !0, this.emitReserved("drain");
|
|
9058
9081
|
}, this.setTimeoutFn);
|
|
9059
9082
|
});
|
|
@@ -9084,7 +9107,7 @@ const Nf = {
|
|
|
9084
9107
|
"query",
|
|
9085
9108
|
"anchor"
|
|
9086
9109
|
];
|
|
9087
|
-
function
|
|
9110
|
+
function Sr(e) {
|
|
9088
9111
|
if (e.length > 8e3)
|
|
9089
9112
|
throw "URI too long";
|
|
9090
9113
|
const t = e, n = e.indexOf("["), r = e.indexOf("]");
|
|
@@ -9104,8 +9127,8 @@ function Vf(e, t) {
|
|
|
9104
9127
|
o && (n[o] = i);
|
|
9105
9128
|
}), n;
|
|
9106
9129
|
}
|
|
9107
|
-
const
|
|
9108
|
-
|
|
9130
|
+
const Er = typeof addEventListener == "function" && typeof removeEventListener == "function", un = [];
|
|
9131
|
+
Er && addEventListener("offline", () => {
|
|
9109
9132
|
un.forEach((e) => e());
|
|
9110
9133
|
}, !1);
|
|
9111
9134
|
class je extends Z {
|
|
@@ -9117,11 +9140,11 @@ class je extends Z {
|
|
|
9117
9140
|
*/
|
|
9118
9141
|
constructor(t, n) {
|
|
9119
9142
|
if (super(), this.binaryType = vf, this.writeBuffer = [], this._prevBufferLen = 0, this._pingInterval = -1, this._pingTimeout = -1, this._maxPayload = -1, this._pingTimeoutTime = 1 / 0, t && typeof t == "object" && (n = t, t = null), t) {
|
|
9120
|
-
const r =
|
|
9143
|
+
const r = Sr(t);
|
|
9121
9144
|
n.hostname = r.host, n.secure = r.protocol === "https" || r.protocol === "wss", n.port = r.port, r.query && (n.query = r.query);
|
|
9122
9145
|
} else
|
|
9123
|
-
n.host && (n.hostname =
|
|
9124
|
-
|
|
9146
|
+
n.host && (n.hostname = Sr(n.host).host);
|
|
9147
|
+
Kn(this, n), this.secure = n.secure != null ? n.secure : typeof location < "u" && location.protocol === "https:", n.hostname && !n.port && (n.port = this.secure ? "443" : "80"), this.hostname = n.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = n.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = [], this._transportsByName = {}, n.transports.forEach((r) => {
|
|
9125
9148
|
const o = r.prototype.name;
|
|
9126
9149
|
this.transports.push(o), this._transportsByName[o] = r;
|
|
9127
9150
|
}), this.opts = Object.assign({
|
|
@@ -9138,7 +9161,7 @@ class je extends Z {
|
|
|
9138
9161
|
},
|
|
9139
9162
|
transportOptions: {},
|
|
9140
9163
|
closeOnBeforeunload: !1
|
|
9141
|
-
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query =
|
|
9164
|
+
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Pf(this.opts.query)), Er && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
|
|
9142
9165
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
|
9143
9166
|
}, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
|
|
9144
9167
|
this._onClose("transport close", {
|
|
@@ -9155,7 +9178,7 @@ class je extends Z {
|
|
|
9155
9178
|
*/
|
|
9156
9179
|
createTransport(t) {
|
|
9157
9180
|
const n = Object.assign({}, this.opts.query);
|
|
9158
|
-
n.EIO =
|
|
9181
|
+
n.EIO = Ps, n.transport = t, this.id && (n.sid = this.id);
|
|
9159
9182
|
const r = Object.assign({}, this.opts, {
|
|
9160
9183
|
query: n,
|
|
9161
9184
|
socket: this,
|
|
@@ -9293,7 +9316,7 @@ class je extends Z {
|
|
|
9293
9316
|
if (!this._pingTimeoutTime)
|
|
9294
9317
|
return !0;
|
|
9295
9318
|
const t = Date.now() > this._pingTimeoutTime;
|
|
9296
|
-
return t && (this._pingTimeoutTime = 0,
|
|
9319
|
+
return t && (this._pingTimeoutTime = 0, Nn(() => {
|
|
9297
9320
|
this._onClose("ping timeout");
|
|
9298
9321
|
}, this.setTimeoutFn)), t;
|
|
9299
9322
|
}
|
|
@@ -9371,7 +9394,7 @@ class je extends Z {
|
|
|
9371
9394
|
*/
|
|
9372
9395
|
_onClose(t, n) {
|
|
9373
9396
|
if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
|
|
9374
|
-
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(),
|
|
9397
|
+
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), Er && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
|
|
9375
9398
|
const r = un.indexOf(this._offlineEventListener);
|
|
9376
9399
|
r !== -1 && un.splice(r, 1);
|
|
9377
9400
|
}
|
|
@@ -9379,7 +9402,7 @@ class je extends Z {
|
|
|
9379
9402
|
}
|
|
9380
9403
|
}
|
|
9381
9404
|
}
|
|
9382
|
-
je.protocol =
|
|
9405
|
+
je.protocol = Ps;
|
|
9383
9406
|
class Uf extends je {
|
|
9384
9407
|
constructor() {
|
|
9385
9408
|
super(...arguments), this._upgrades = [];
|
|
@@ -9460,12 +9483,12 @@ let jf = class extends Uf {
|
|
|
9460
9483
|
};
|
|
9461
9484
|
function Hf(e, t = "", n) {
|
|
9462
9485
|
let r = e;
|
|
9463
|
-
n = n || typeof location < "u" && location, e == null && (e = n.protocol + "//" + n.host), typeof e == "string" && (e.charAt(0) === "/" && (e.charAt(1) === "/" ? e = n.protocol + e : e = n.host + e), /^(https?|wss?):\/\//.test(e) || (typeof n < "u" ? e = n.protocol + "//" + e : e = "https://" + e), r =
|
|
9486
|
+
n = n || typeof location < "u" && location, e == null && (e = n.protocol + "//" + n.host), typeof e == "string" && (e.charAt(0) === "/" && (e.charAt(1) === "/" ? e = n.protocol + e : e = n.host + e), /^(https?|wss?):\/\//.test(e) || (typeof n < "u" ? e = n.protocol + "//" + e : e = "https://" + e), r = Sr(e)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
|
|
9464
9487
|
const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
|
|
9465
9488
|
return r.id = r.protocol + "://" + i + ":" + r.port + t, r.href = r.protocol + "://" + i + (n && n.port === r.port ? "" : ":" + r.port), r;
|
|
9466
9489
|
}
|
|
9467
9490
|
const qf = typeof ArrayBuffer == "function", Wf = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e.buffer instanceof ArrayBuffer, Ls = Object.prototype.toString, Gf = typeof Blob == "function" || typeof Blob < "u" && Ls.call(Blob) === "[object BlobConstructor]", Yf = typeof File == "function" || typeof File < "u" && Ls.call(File) === "[object FileConstructor]";
|
|
9468
|
-
function
|
|
9491
|
+
function Yr(e) {
|
|
9469
9492
|
return qf && (e instanceof ArrayBuffer || Wf(e)) || Gf && e instanceof Blob || Yf && e instanceof File;
|
|
9470
9493
|
}
|
|
9471
9494
|
function dn(e, t) {
|
|
@@ -9477,7 +9500,7 @@ function dn(e, t) {
|
|
|
9477
9500
|
return !0;
|
|
9478
9501
|
return !1;
|
|
9479
9502
|
}
|
|
9480
|
-
if (
|
|
9503
|
+
if (Yr(e))
|
|
9481
9504
|
return !0;
|
|
9482
9505
|
if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1)
|
|
9483
9506
|
return dn(e.toJSON(), !0);
|
|
@@ -9488,31 +9511,31 @@ function dn(e, t) {
|
|
|
9488
9511
|
}
|
|
9489
9512
|
function Xf(e) {
|
|
9490
9513
|
const t = [], n = e.data, r = e;
|
|
9491
|
-
return r.data =
|
|
9514
|
+
return r.data = kr(n, t), r.attachments = t.length, { packet: r, buffers: t };
|
|
9492
9515
|
}
|
|
9493
|
-
function
|
|
9516
|
+
function kr(e, t) {
|
|
9494
9517
|
if (!e)
|
|
9495
9518
|
return e;
|
|
9496
|
-
if (
|
|
9519
|
+
if (Yr(e)) {
|
|
9497
9520
|
const n = { _placeholder: !0, num: t.length };
|
|
9498
9521
|
return t.push(e), n;
|
|
9499
9522
|
} else if (Array.isArray(e)) {
|
|
9500
9523
|
const n = new Array(e.length);
|
|
9501
9524
|
for (let r = 0; r < e.length; r++)
|
|
9502
|
-
n[r] =
|
|
9525
|
+
n[r] = kr(e[r], t);
|
|
9503
9526
|
return n;
|
|
9504
9527
|
} else if (typeof e == "object" && !(e instanceof Date)) {
|
|
9505
9528
|
const n = {};
|
|
9506
9529
|
for (const r in e)
|
|
9507
|
-
Object.prototype.hasOwnProperty.call(e, r) && (n[r] =
|
|
9530
|
+
Object.prototype.hasOwnProperty.call(e, r) && (n[r] = kr(e[r], t));
|
|
9508
9531
|
return n;
|
|
9509
9532
|
}
|
|
9510
9533
|
return e;
|
|
9511
9534
|
}
|
|
9512
9535
|
function Jf(e, t) {
|
|
9513
|
-
return e.data =
|
|
9536
|
+
return e.data = Cr(e.data, t), delete e.attachments, e;
|
|
9514
9537
|
}
|
|
9515
|
-
function
|
|
9538
|
+
function Cr(e, t) {
|
|
9516
9539
|
if (!e)
|
|
9517
9540
|
return e;
|
|
9518
9541
|
if (e && e._placeholder === !0) {
|
|
@@ -9521,10 +9544,10 @@ function Er(e, t) {
|
|
|
9521
9544
|
throw new Error("illegal attachments");
|
|
9522
9545
|
} else if (Array.isArray(e))
|
|
9523
9546
|
for (let n = 0; n < e.length; n++)
|
|
9524
|
-
e[n] =
|
|
9547
|
+
e[n] = Cr(e[n], t);
|
|
9525
9548
|
else if (typeof e == "object")
|
|
9526
9549
|
for (const n in e)
|
|
9527
|
-
Object.prototype.hasOwnProperty.call(e, n) && (e[n] =
|
|
9550
|
+
Object.prototype.hasOwnProperty.call(e, n) && (e[n] = Cr(e[n], t));
|
|
9528
9551
|
return e;
|
|
9529
9552
|
}
|
|
9530
9553
|
const Zf = [
|
|
@@ -9580,10 +9603,10 @@ class eh {
|
|
|
9580
9603
|
return o.unshift(r), o;
|
|
9581
9604
|
}
|
|
9582
9605
|
}
|
|
9583
|
-
function
|
|
9606
|
+
function Yo(e) {
|
|
9584
9607
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
9585
9608
|
}
|
|
9586
|
-
class
|
|
9609
|
+
class Xr extends Z {
|
|
9587
9610
|
/**
|
|
9588
9611
|
* Decoder constructor
|
|
9589
9612
|
*
|
|
@@ -9605,7 +9628,7 @@ class Yr extends Z {
|
|
|
9605
9628
|
n = this.decodeString(t);
|
|
9606
9629
|
const r = n.type === z.BINARY_EVENT;
|
|
9607
9630
|
r || n.type === z.BINARY_ACK ? (n.type = r ? z.EVENT : z.ACK, this.reconstructor = new th(n), n.attachments === 0 && super.emitReserved("decoded", n)) : super.emitReserved("decoded", n);
|
|
9608
|
-
} else if (
|
|
9631
|
+
} else if (Yr(t) || t.base64)
|
|
9609
9632
|
if (this.reconstructor)
|
|
9610
9633
|
n = this.reconstructor.takeBinaryData(t), n && (this.reconstructor = null, super.emitReserved("decoded", n));
|
|
9611
9634
|
else
|
|
@@ -9658,7 +9681,7 @@ class Yr extends Z {
|
|
|
9658
9681
|
}
|
|
9659
9682
|
if (t.charAt(++n)) {
|
|
9660
9683
|
const i = this.tryParse(t.substr(n));
|
|
9661
|
-
if (
|
|
9684
|
+
if (Xr.isPayloadValid(r.type, i))
|
|
9662
9685
|
r.data = i;
|
|
9663
9686
|
else
|
|
9664
9687
|
throw new Error("invalid payload");
|
|
@@ -9675,11 +9698,11 @@ class Yr extends Z {
|
|
|
9675
9698
|
static isPayloadValid(t, n) {
|
|
9676
9699
|
switch (t) {
|
|
9677
9700
|
case z.CONNECT:
|
|
9678
|
-
return
|
|
9701
|
+
return Yo(n);
|
|
9679
9702
|
case z.DISCONNECT:
|
|
9680
9703
|
return n === void 0;
|
|
9681
9704
|
case z.CONNECT_ERROR:
|
|
9682
|
-
return typeof n == "string" ||
|
|
9705
|
+
return typeof n == "string" || Yo(n);
|
|
9683
9706
|
case z.EVENT:
|
|
9684
9707
|
case z.BINARY_EVENT:
|
|
9685
9708
|
return Array.isArray(n) && (typeof n[0] == "number" || typeof n[0] == "string" && Zf.indexOf(n[0]) === -1);
|
|
@@ -9723,7 +9746,7 @@ class th {
|
|
|
9723
9746
|
}
|
|
9724
9747
|
const nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9725
9748
|
__proto__: null,
|
|
9726
|
-
Decoder:
|
|
9749
|
+
Decoder: Xr,
|
|
9727
9750
|
Encoder: eh,
|
|
9728
9751
|
get PacketType() {
|
|
9729
9752
|
return z;
|
|
@@ -10359,10 +10382,10 @@ Et.prototype.setMax = function(e) {
|
|
|
10359
10382
|
Et.prototype.setJitter = function(e) {
|
|
10360
10383
|
this.jitter = e;
|
|
10361
10384
|
};
|
|
10362
|
-
class
|
|
10385
|
+
class Or extends Z {
|
|
10363
10386
|
constructor(t, n) {
|
|
10364
10387
|
var r;
|
|
10365
|
-
super(), this.nsps = {}, this.subs = [], t && typeof t == "object" && (n = t, t = void 0), n = n || {}, n.path = n.path || "/socket.io", this.opts = n,
|
|
10388
|
+
super(), this.nsps = {}, this.subs = [], t && typeof t == "object" && (n = t, t = void 0), n = n || {}, n.path = n.path || "/socket.io", this.opts = n, Kn(this, n), this.reconnection(n.reconnection !== !1), this.reconnectionAttempts(n.reconnectionAttempts || 1 / 0), this.reconnectionDelay(n.reconnectionDelay || 1e3), this.reconnectionDelayMax(n.reconnectionDelayMax || 5e3), this.randomizationFactor((r = n.randomizationFactor) !== null && r !== void 0 ? r : 0.5), this.backoff = new Et({
|
|
10366
10389
|
min: this.reconnectionDelay(),
|
|
10367
10390
|
max: this.reconnectionDelayMax(),
|
|
10368
10391
|
jitter: this.randomizationFactor()
|
|
@@ -10480,7 +10503,7 @@ class kr extends Z {
|
|
|
10480
10503
|
* @private
|
|
10481
10504
|
*/
|
|
10482
10505
|
ondecoded(t) {
|
|
10483
|
-
|
|
10506
|
+
Nn(() => {
|
|
10484
10507
|
this.emitReserved("packet", t);
|
|
10485
10508
|
}, this.setTimeoutFn);
|
|
10486
10509
|
}
|
|
@@ -10602,10 +10625,10 @@ function fn(e, t) {
|
|
|
10602
10625
|
typeof e == "object" && (t = e, e = void 0), t = t || {};
|
|
10603
10626
|
const n = Hf(e, t.path || "/socket.io"), r = n.source, o = n.id, i = n.path, s = Tt[o] && i in Tt[o].nsps, a = t.forceNew || t["force new connection"] || t.multiplex === !1 || s;
|
|
10604
10627
|
let l;
|
|
10605
|
-
return a ? l = new
|
|
10628
|
+
return a ? l = new Or(r, t) : (Tt[o] || (Tt[o] = new Or(r, t)), l = Tt[o]), n.query && !t.query && (t.query = n.queryKey), l.socket(n.path, t);
|
|
10606
10629
|
}
|
|
10607
10630
|
Object.assign(fn, {
|
|
10608
|
-
Manager:
|
|
10631
|
+
Manager: Or,
|
|
10609
10632
|
Socket: Is,
|
|
10610
10633
|
io: fn,
|
|
10611
10634
|
connect: fn
|
|
@@ -10658,18 +10681,18 @@ const Rs = 1e3 * 60 * 60 * 24, [_n, $s] = Ti(
|
|
|
10658
10681
|
...Ns,
|
|
10659
10682
|
[t()]: e
|
|
10660
10683
|
});
|
|
10661
|
-
}, [ah,
|
|
10684
|
+
}, [ah, er] = _(!1), [lh, Xo] = _(!1), zs = [], Jo = () => {
|
|
10662
10685
|
zs.forEach((e) => e());
|
|
10663
|
-
}, ch = (e) => zs.push(e),
|
|
10686
|
+
}, ch = (e) => zs.push(e), Pr = (e) => {
|
|
10664
10687
|
const t = af(e);
|
|
10665
10688
|
if (oh(t), t.type === "media") {
|
|
10666
|
-
setTimeout(
|
|
10689
|
+
setTimeout(Jo, 200);
|
|
10667
10690
|
return;
|
|
10668
10691
|
}
|
|
10669
|
-
|
|
10692
|
+
Jo();
|
|
10670
10693
|
}, uh = (e, t) => {
|
|
10671
10694
|
const { chatWidget: n } = te(), r = Ks();
|
|
10672
|
-
e.trim() && (
|
|
10695
|
+
e.trim() && (Pr({
|
|
10673
10696
|
text: e,
|
|
10674
10697
|
type: "text",
|
|
10675
10698
|
origin: "user",
|
|
@@ -10680,25 +10703,25 @@ const Rs = 1e3 * 60 * 60 * 24, [_n, $s] = Ti(
|
|
|
10680
10703
|
interactionId: o.interactionId
|
|
10681
10704
|
});
|
|
10682
10705
|
for (const i of o.messages)
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
}),
|
|
10686
|
-
console.error(o),
|
|
10706
|
+
Pr(i);
|
|
10707
|
+
er(!1), lf(o.debug);
|
|
10708
|
+
}), er(!0), cf(e, t, n()?._id).catch((o) => {
|
|
10709
|
+
console.error(o), er(!1);
|
|
10687
10710
|
}));
|
|
10688
10711
|
}, dh = () => {
|
|
10689
10712
|
const { chatWidget: e } = te(), t = Ks();
|
|
10690
|
-
|
|
10713
|
+
Xo(!0), ih(), uf(
|
|
10691
10714
|
e()?._id,
|
|
10692
10715
|
t.contactId,
|
|
10693
10716
|
t.interactionId
|
|
10694
10717
|
).finally(() => {
|
|
10695
|
-
Bs({}),
|
|
10718
|
+
Bs({}), Xo(!1), fh();
|
|
10696
10719
|
});
|
|
10697
10720
|
}, fh = () => {
|
|
10698
10721
|
const { chatWidget: e } = te();
|
|
10699
10722
|
if (Fs().length === 0 && e()?.balloonMessage) {
|
|
10700
10723
|
const n = e()?.balloonMessage;
|
|
10701
|
-
n &&
|
|
10724
|
+
n && Pr({
|
|
10702
10725
|
text: n,
|
|
10703
10726
|
type: "text",
|
|
10704
10727
|
origin: "bot",
|
|
@@ -10718,8 +10741,8 @@ const gh = () => {
|
|
|
10718
10741
|
const {
|
|
10719
10742
|
clearMessages: e
|
|
10720
10743
|
} = Xe();
|
|
10721
|
-
|
|
10722
|
-
const [t, n] =
|
|
10744
|
+
_(!1);
|
|
10745
|
+
const [t, n] = _(!1);
|
|
10723
10746
|
return p(nf, {
|
|
10724
10747
|
get open() {
|
|
10725
10748
|
return t();
|
|
@@ -10749,7 +10772,7 @@ const gh = () => {
|
|
|
10749
10772
|
size: 14
|
|
10750
10773
|
}), (() => {
|
|
10751
10774
|
var r = hh();
|
|
10752
|
-
return A(r, () =>
|
|
10775
|
+
return A(r, () => ut("restart")), r;
|
|
10753
10776
|
})()];
|
|
10754
10777
|
}
|
|
10755
10778
|
});
|
|
@@ -10777,10 +10800,10 @@ function yh(e) {
|
|
|
10777
10800
|
}, e);
|
|
10778
10801
|
}
|
|
10779
10802
|
var bh = /* @__PURE__ */ L('<header class="flex-none bg-primary text-primary-foreground p-3 flex items-center justify-between space-x-4"><div class="flex items-center gap-0.5">');
|
|
10780
|
-
const
|
|
10803
|
+
const Jr = () => {
|
|
10781
10804
|
const {
|
|
10782
10805
|
chatWidget: e
|
|
10783
|
-
} = te(), [t, n] =
|
|
10806
|
+
} = te(), [t, n] = _(!1), r = () => {
|
|
10784
10807
|
const i = xn();
|
|
10785
10808
|
i && (t() ? document.exitFullscreen() : i.requestFullscreen(), n(!t()));
|
|
10786
10809
|
};
|
|
@@ -10850,7 +10873,7 @@ const Vs = ({
|
|
|
10850
10873
|
anchor: t = "end"
|
|
10851
10874
|
}) => (() => {
|
|
10852
10875
|
var n = wh();
|
|
10853
|
-
return
|
|
10876
|
+
return gt(n, `${t === "end" ? "self-end" : "self-start"} pt-1 text-[10px] italic font-light text-slate-600`), A(n, () => new Date(e).toLocaleString([], {
|
|
10854
10877
|
hour: "2-digit",
|
|
10855
10878
|
minute: "2-digit"
|
|
10856
10879
|
})), n;
|
|
@@ -10872,7 +10895,7 @@ const kt = (e) => {
|
|
|
10872
10895
|
let n = e.children?.toString();
|
|
10873
10896
|
return n && (n = $l(Fl(n))), (() => {
|
|
10874
10897
|
var r = Sh();
|
|
10875
|
-
return r.innerHTML = n,
|
|
10898
|
+
return r.innerHTML = n, nt(r, T({
|
|
10876
10899
|
get class() {
|
|
10877
10900
|
return Ye("whitespace-pre-line", e.class);
|
|
10878
10901
|
}
|
|
@@ -10887,7 +10910,7 @@ const kh = ({
|
|
|
10887
10910
|
let n;
|
|
10888
10911
|
const {
|
|
10889
10912
|
pushMessage: r
|
|
10890
|
-
} = Xe(), [o, i] =
|
|
10913
|
+
} = Xe(), [o, i] = _(!1), s = (l = !0) => {
|
|
10891
10914
|
if (n) {
|
|
10892
10915
|
const c = n.clientWidth / 2;
|
|
10893
10916
|
n.scrollTo({
|
|
@@ -10922,7 +10945,7 @@ const kh = ({
|
|
|
10922
10945
|
}
|
|
10923
10946
|
}), u);
|
|
10924
10947
|
var d = n;
|
|
10925
|
-
return typeof d == "function" ? yi(d, u) : n = u, A(u, p(
|
|
10948
|
+
return typeof d == "function" ? yi(d, u) : n = u, A(u, p(ht, {
|
|
10926
10949
|
each: e,
|
|
10927
10950
|
children: (h) => p(we, {
|
|
10928
10951
|
variant: "outline",
|
|
@@ -10951,16 +10974,16 @@ const kh = ({
|
|
|
10951
10974
|
}
|
|
10952
10975
|
});
|
|
10953
10976
|
}
|
|
10954
|
-
}), null), ee(() =>
|
|
10977
|
+
}), null), ee(() => gt(c, `flex items-center justify-center max-w-64 mx-[-1rem] ${o() && "opacity-50"}`)), l;
|
|
10955
10978
|
})();
|
|
10956
10979
|
};
|
|
10957
10980
|
var Ch = /* @__PURE__ */ L('<div class="flex flex-col"><span>'), Oh = /* @__PURE__ */ L("<a target=_blank><img><span></span><span>");
|
|
10958
|
-
const
|
|
10981
|
+
const Ph = ({
|
|
10959
10982
|
options: e,
|
|
10960
10983
|
text: t
|
|
10961
10984
|
}) => (() => {
|
|
10962
10985
|
var n = Ch(), r = n.firstChild;
|
|
10963
|
-
return A(r, () => t?.trim()), A(n, p(
|
|
10986
|
+
return A(r, () => t?.trim()), A(n, p(ht, {
|
|
10964
10987
|
each: e,
|
|
10965
10988
|
children: (o) => (() => {
|
|
10966
10989
|
var i = Oh(), s = i.firstChild, a = s.nextSibling, l = a.nextSibling;
|
|
@@ -10974,18 +10997,18 @@ const _h = ({
|
|
|
10974
10997
|
})()
|
|
10975
10998
|
}), null), n;
|
|
10976
10999
|
})();
|
|
10977
|
-
var
|
|
11000
|
+
var _h = /* @__PURE__ */ L("<a target=_blank>");
|
|
10978
11001
|
const Ah = ({
|
|
10979
11002
|
url: e,
|
|
10980
11003
|
text: t
|
|
10981
11004
|
}) => (() => {
|
|
10982
|
-
var n =
|
|
11005
|
+
var n = _h();
|
|
10983
11006
|
return ae(n, "href", e), A(n, () => t?.trim()), n;
|
|
10984
11007
|
})();
|
|
10985
11008
|
var Th = (e) => {
|
|
10986
11009
|
const t = T({
|
|
10987
11010
|
initialRegistered: !1
|
|
10988
|
-
}, e), [n, r] =
|
|
11011
|
+
}, e), [n, r] = _(t.initialRegistered);
|
|
10989
11012
|
return [O(() => {
|
|
10990
11013
|
if (n())
|
|
10991
11014
|
return V(t.value);
|
|
@@ -10994,20 +11017,20 @@ var Th = (e) => {
|
|
|
10994
11017
|
}, () => {
|
|
10995
11018
|
r(!1);
|
|
10996
11019
|
}];
|
|
10997
|
-
},
|
|
11020
|
+
}, Zo = Th, Ht = (e) => typeof e == "function", Mh = ["button", "color", "file", "image", "reset", "submit"], Dh = (e, t) => e === "button" ? !0 : e === "input" && t ? Mh.indexOf(t) !== -1 : !1;
|
|
10998
11021
|
function Lh(e) {
|
|
10999
|
-
const [t, n] =
|
|
11022
|
+
const [t, n] = _(e.initialValue), r = () => e.value?.() !== void 0, o = () => r() ? e.value?.() : t();
|
|
11000
11023
|
return [o, (s) => W(() => {
|
|
11001
11024
|
let a;
|
|
11002
11025
|
return Ht(s) ? a = s(o()) : a = s, Object.is(a, o()) || (r() || n(a), e.onChange?.(a)), a;
|
|
11003
11026
|
})];
|
|
11004
11027
|
}
|
|
11005
|
-
var
|
|
11028
|
+
var _r = Lh, hn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
|
|
11006
11029
|
if (hn.has(e))
|
|
11007
11030
|
return hn.get(e);
|
|
11008
11031
|
const n = le(t);
|
|
11009
11032
|
return hn.set(e, n), n;
|
|
11010
|
-
},
|
|
11033
|
+
}, Zr = (e) => {
|
|
11011
11034
|
const t = hn.get(e);
|
|
11012
11035
|
if (t)
|
|
11013
11036
|
return pe(t);
|
|
@@ -11031,7 +11054,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11031
11054
|
const {
|
|
11032
11055
|
body: n
|
|
11033
11056
|
} = document;
|
|
11034
|
-
V(t.enabled) &&
|
|
11057
|
+
V(t.enabled) && br({
|
|
11035
11058
|
key: "no-pointer-events",
|
|
11036
11059
|
element: n,
|
|
11037
11060
|
style: {
|
|
@@ -11084,32 +11107,32 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11084
11107
|
}), Fh({
|
|
11085
11108
|
enabled: t.noOutsidePointerEvents
|
|
11086
11109
|
});
|
|
11087
|
-
}, zh = Bh,
|
|
11088
|
-
if (pe(
|
|
11089
|
-
return p(
|
|
11090
|
-
const r = Oe(), [o, i] =
|
|
11110
|
+
}, zh = Bh, Ar = le(), Vh = (e) => O(() => {
|
|
11111
|
+
if (pe(Ar))
|
|
11112
|
+
return p(Qo, e);
|
|
11113
|
+
const r = Oe(), [o, i] = _([r]), s = (l) => {
|
|
11091
11114
|
i((c) => [...c, l]);
|
|
11092
11115
|
}, a = (l) => {
|
|
11093
11116
|
i((c) => c.filter((u) => u !== l));
|
|
11094
11117
|
};
|
|
11095
|
-
return p(
|
|
11118
|
+
return p(Ar.Provider, {
|
|
11096
11119
|
value: {
|
|
11097
11120
|
layers: o,
|
|
11098
11121
|
onLayerShow: s,
|
|
11099
11122
|
onLayerDismiss: a
|
|
11100
11123
|
},
|
|
11101
11124
|
get children() {
|
|
11102
|
-
return p(
|
|
11125
|
+
return p(Qo, e);
|
|
11103
11126
|
}
|
|
11104
11127
|
});
|
|
11105
|
-
}),
|
|
11128
|
+
}), Qo = (e) => {
|
|
11106
11129
|
const t = T({
|
|
11107
11130
|
enabled: !0,
|
|
11108
11131
|
dismissOnEscapeKeyDown: !0,
|
|
11109
11132
|
dismissOnOutsidePointer: !0,
|
|
11110
11133
|
dismissOnOutsidePointerStrategy: "pointerup",
|
|
11111
11134
|
noOutsidePointerEvents: !0
|
|
11112
|
-
}, e), [n, r] = H(t, ["enabled", "children", "dismissOnEscapeKeyDown", "dismissOnOutsidePointer", "dismissOnOutsidePointerStrategy", "dismissOnOutsidePointerIgnore", "noOutsidePointerEvents", "onDismiss"]), o = pe(
|
|
11135
|
+
}, e), [n, r] = H(t, ["enabled", "children", "dismissOnEscapeKeyDown", "dismissOnOutsidePointer", "dismissOnOutsidePointerStrategy", "dismissOnOutsidePointerIgnore", "noOutsidePointerEvents", "onDismiss"]), o = pe(Ar), i = Oe();
|
|
11113
11136
|
M(() => {
|
|
11114
11137
|
n.enabled ? o.onLayerShow(i) : o.onLayerDismiss(i);
|
|
11115
11138
|
});
|
|
@@ -11135,12 +11158,12 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11135
11158
|
};
|
|
11136
11159
|
return W(() => l());
|
|
11137
11160
|
}, Uh = Vh, jh = () => {
|
|
11138
|
-
const [e, t] =
|
|
11161
|
+
const [e, t] = _(!1);
|
|
11139
11162
|
return M(() => t(!0)), e;
|
|
11140
|
-
}, Hh = jh, qh = (e, t) => (e && (Ht(e) ? e(t) : e[0](e[1], t)), t.defaultPrevented),
|
|
11163
|
+
}, Hh = jh, qh = (e, t) => (e && (Ht(e) ? e(t) : e[0](e[1], t)), t.defaultPrevented), Qr = (...e) => e.some((t) => !!t()), Wh = (e) => (...t) => {
|
|
11141
11164
|
for (const n of e)
|
|
11142
11165
|
n && n(...t);
|
|
11143
|
-
},
|
|
11166
|
+
}, zn = (...e) => Wh(e), re = (e) => e ? "" : void 0, Gh = "div", Yh = (e) => {
|
|
11144
11167
|
const [t, n] = H(e, ["as"]), r = O(() => t.as ?? Gh);
|
|
11145
11168
|
return O(() => {
|
|
11146
11169
|
const i = r();
|
|
@@ -11153,20 +11176,20 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11153
11176
|
}, n));
|
|
11154
11177
|
}
|
|
11155
11178
|
});
|
|
11156
|
-
},
|
|
11179
|
+
}, eo = Yh, Xh = (e) => {
|
|
11157
11180
|
let t, n = !1;
|
|
11158
11181
|
return () => n ? t : (n = !0, t = O(e));
|
|
11159
|
-
}, Us = Xh, Jh = (e) => O(() => V(e.element)?.tagName.toLowerCase() || e.fallback), Zh = Jh,
|
|
11160
|
-
const [t, n] =
|
|
11182
|
+
}, Us = Xh, Jh = (e) => O(() => V(e.element)?.tagName.toLowerCase() || e.fallback), Zh = Jh, ei = "button", Qh = (e) => {
|
|
11183
|
+
const [t, n] = _(null), [r, o] = H(e, ["as", "ref", "type"]), i = Zh({
|
|
11161
11184
|
element: t,
|
|
11162
|
-
fallback:
|
|
11185
|
+
fallback: ei
|
|
11163
11186
|
}), s = O(() => Dh(i(), r.type));
|
|
11164
|
-
return p(
|
|
11187
|
+
return p(eo, T({
|
|
11165
11188
|
get as() {
|
|
11166
|
-
return r.as ??
|
|
11189
|
+
return r.as ?? ei;
|
|
11167
11190
|
},
|
|
11168
11191
|
ref(a) {
|
|
11169
|
-
var l =
|
|
11192
|
+
var l = zn(n, r.ref);
|
|
11170
11193
|
typeof l == "function" && l(a);
|
|
11171
11194
|
},
|
|
11172
11195
|
get type() {
|
|
@@ -11176,7 +11199,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11176
11199
|
return s() ? void 0 : "button";
|
|
11177
11200
|
}
|
|
11178
11201
|
}, o));
|
|
11179
|
-
}, eg = Qh, de = (e) => typeof e == "function" ? e() : e,
|
|
11202
|
+
}, eg = Qh, de = (e) => typeof e == "function" ? e() : e, An = (e) => requestAnimationFrame(() => requestAnimationFrame(e)), tg = 'a[href]:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', tr = "focusTrap.initialFocus", nr = "focusTrap.finalFocus", ti = {
|
|
11180
11203
|
bubbles: !1,
|
|
11181
11204
|
cancelable: !0
|
|
11182
11205
|
}, ng = (e) => {
|
|
@@ -11184,7 +11207,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11184
11207
|
enabled: !0,
|
|
11185
11208
|
observeChanges: !0,
|
|
11186
11209
|
restoreFocus: !0
|
|
11187
|
-
}, e), [n, r] =
|
|
11210
|
+
}, e), [n, r] = _(null), o = O(() => {
|
|
11188
11211
|
const f = n();
|
|
11189
11212
|
return f ? f[0] ?? null : null;
|
|
11190
11213
|
}), i = O(() => {
|
|
@@ -11232,7 +11255,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11232
11255
|
}, c = (f) => {
|
|
11233
11256
|
const g = de(t.initialFocusElement) ?? o() ?? f, y = t.onInitialFocus;
|
|
11234
11257
|
let w;
|
|
11235
|
-
y && (w = new CustomEvent(
|
|
11258
|
+
y && (w = new CustomEvent(tr, ti), f.addEventListener(tr, y), f.dispatchEvent(w), f.removeEventListener(tr, y)), w?.defaultPrevented !== !0 && An(() => g.focus());
|
|
11236
11259
|
}, u = (f) => {
|
|
11237
11260
|
f.key === "Tab" && f.shiftKey && (f.preventDefault(), i().focus());
|
|
11238
11261
|
}, d = (f) => {
|
|
@@ -11247,14 +11270,14 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11247
11270
|
return;
|
|
11248
11271
|
let w;
|
|
11249
11272
|
const b = t.onFinalFocus;
|
|
11250
|
-
b && (w = new CustomEvent(
|
|
11273
|
+
b && (w = new CustomEvent(nr, ti), f.addEventListener(nr, b), f.dispatchEvent(w), f.removeEventListener(nr, b)), w?.defaultPrevented !== !0 && An(() => y.focus());
|
|
11251
11274
|
};
|
|
11252
11275
|
}, rg = ng, og = rg, on = (e) => typeof e == "function" ? e() : e, ig = (e) => {
|
|
11253
11276
|
const t = O(() => {
|
|
11254
11277
|
const s = on(e.element);
|
|
11255
11278
|
if (s)
|
|
11256
11279
|
return getComputedStyle(s);
|
|
11257
|
-
}), n = () => t()?.animationName ?? "none", [r, o] =
|
|
11280
|
+
}), n = () => t()?.animationName ?? "none", [r, o] = _(on(e.show) ? "present" : "hidden");
|
|
11258
11281
|
let i = "none";
|
|
11259
11282
|
return M((s) => {
|
|
11260
11283
|
const a = on(e.show);
|
|
@@ -11282,19 +11305,19 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11282
11305
|
state: r,
|
|
11283
11306
|
setState: o
|
|
11284
11307
|
};
|
|
11285
|
-
}, sg = ig,
|
|
11308
|
+
}, sg = ig, ni = sg, ag = le(), lg = (e) => e ? Bn(`dialog-${e}`) : ag, js = le(), cg = (e) => e ? Bn(`dialog-internal-${e}`) : js, Ct = (e) => {
|
|
11286
11309
|
if (!e) {
|
|
11287
11310
|
const n = pe(js);
|
|
11288
11311
|
if (!n)
|
|
11289
11312
|
throw new Error("[corvu]: Dialog context not found. Make sure to wrap Dialog components in <Dialog.Root>");
|
|
11290
11313
|
return n;
|
|
11291
11314
|
}
|
|
11292
|
-
const t =
|
|
11315
|
+
const t = Zr(`dialog-internal-${e}`);
|
|
11293
11316
|
if (!t)
|
|
11294
11317
|
throw new Error(`[corvu]: Dialog context with id "${e}" not found. Make sure to wrap Dialog components in <Dialog.Root contextId="${e}">`);
|
|
11295
11318
|
return t;
|
|
11296
11319
|
}, ug = "div", dg = (e) => {
|
|
11297
|
-
const [t, n] = H(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-content"]), r = O(() => Ct(t.contextId)), o = () =>
|
|
11320
|
+
const [t, n] = H(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-content"]), r = O(() => Ct(t.contextId)), o = () => Qr(
|
|
11298
11321
|
r().open,
|
|
11299
11322
|
// eslint-disable-next-line solid/reactivity
|
|
11300
11323
|
() => t.forceMount,
|
|
@@ -11341,9 +11364,9 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11341
11364
|
return o();
|
|
11342
11365
|
},
|
|
11343
11366
|
get children() {
|
|
11344
|
-
return p(
|
|
11367
|
+
return p(eo, T({
|
|
11345
11368
|
ref(l) {
|
|
11346
|
-
var c =
|
|
11369
|
+
var c = zn(r().setContentRef, t.ref);
|
|
11347
11370
|
typeof c == "function" && c(l);
|
|
11348
11371
|
},
|
|
11349
11372
|
get as() {
|
|
@@ -11392,7 +11415,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11392
11415
|
}
|
|
11393
11416
|
});
|
|
11394
11417
|
}, fg = dg, hg = "div", gg = (e) => {
|
|
11395
|
-
const [t, n] = H(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-overlay"]), r = O(() => Ct(t.contextId)), o = () =>
|
|
11418
|
+
const [t, n] = H(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-overlay"]), r = O(() => Ct(t.contextId)), o = () => Qr(
|
|
11396
11419
|
r().open,
|
|
11397
11420
|
// eslint-disable-next-line solid/reactivity
|
|
11398
11421
|
() => t.forceMount,
|
|
@@ -11410,12 +11433,12 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11410
11433
|
return o();
|
|
11411
11434
|
},
|
|
11412
11435
|
get children() {
|
|
11413
|
-
return p(
|
|
11436
|
+
return p(eo, T({
|
|
11414
11437
|
get as() {
|
|
11415
11438
|
return t.as ?? hg;
|
|
11416
11439
|
},
|
|
11417
11440
|
ref(a) {
|
|
11418
|
-
var l =
|
|
11441
|
+
var l = zn(r().setOverlayRef, t.ref);
|
|
11419
11442
|
typeof l == "function" && l(a);
|
|
11420
11443
|
},
|
|
11421
11444
|
"aria-hidden": "true",
|
|
@@ -11446,7 +11469,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11446
11469
|
}
|
|
11447
11470
|
});
|
|
11448
11471
|
}, pg = gg, mg = (e) => {
|
|
11449
|
-
const [t, n] = H(e, ["forceMount", "contextId", "children"]), r = O(() => Ct(t.contextId)), o = () =>
|
|
11472
|
+
const [t, n] = H(e, ["forceMount", "contextId", "children"]), r = O(() => Ct(t.contextId)), o = () => Qr(
|
|
11450
11473
|
r().open,
|
|
11451
11474
|
// eslint-disable-next-line solid/reactivity
|
|
11452
11475
|
() => t.forceMount,
|
|
@@ -11475,16 +11498,16 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11475
11498
|
})();
|
|
11476
11499
|
}
|
|
11477
11500
|
});
|
|
11478
|
-
}, yg = mg,
|
|
11501
|
+
}, yg = mg, rr = !0, bg = (e) => {
|
|
11479
11502
|
const t = T({
|
|
11480
11503
|
role: "dialog",
|
|
11481
11504
|
initialOpen: !1,
|
|
11482
11505
|
modal: !0,
|
|
11483
11506
|
closeOnEscapeKeyDown: !0,
|
|
11484
|
-
closeOnOutsidePointer: () => !!(e.modal ??
|
|
11507
|
+
closeOnOutsidePointer: () => !!(e.modal ?? rr),
|
|
11485
11508
|
closeOnOutsidePointerStrategy: "pointerup",
|
|
11486
|
-
noOutsidePointerEvents: () => !!(e.modal ??
|
|
11487
|
-
preventScroll: () => !!(e.modal ??
|
|
11509
|
+
noOutsidePointerEvents: () => !!(e.modal ?? rr),
|
|
11510
|
+
preventScroll: () => !!(e.modal ?? rr),
|
|
11488
11511
|
hideScrollbar: !0,
|
|
11489
11512
|
preventScrollbarShift: !0,
|
|
11490
11513
|
preventScrollbarShiftMode: "padding",
|
|
@@ -11492,22 +11515,22 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11492
11515
|
trapFocus: !0,
|
|
11493
11516
|
restoreFocus: !0,
|
|
11494
11517
|
dialogId: Oe()
|
|
11495
|
-
}, e), [n, r] =
|
|
11518
|
+
}, e), [n, r] = _r({
|
|
11496
11519
|
value: () => t.open,
|
|
11497
11520
|
initialValue: t.initialOpen,
|
|
11498
11521
|
onChange: t.onOpenChange
|
|
11499
|
-
}), [o, i, s] =
|
|
11522
|
+
}), [o, i, s] = Zo({
|
|
11500
11523
|
value: () => t.labelId ?? Oe()
|
|
11501
|
-
}), [a, l, c] =
|
|
11524
|
+
}), [a, l, c] = Zo({
|
|
11502
11525
|
value: () => t.descriptionId ?? Oe()
|
|
11503
|
-
}), [u, d] =
|
|
11526
|
+
}), [u, d] = _(null), [h, m] = _(null), [f, g] = _(null), {
|
|
11504
11527
|
present: y
|
|
11505
|
-
} =
|
|
11528
|
+
} = ni({
|
|
11506
11529
|
show: n,
|
|
11507
11530
|
element: h
|
|
11508
11531
|
}), {
|
|
11509
11532
|
present: w
|
|
11510
|
-
} =
|
|
11533
|
+
} = ni({
|
|
11511
11534
|
show: n,
|
|
11512
11535
|
element: f
|
|
11513
11536
|
});
|
|
@@ -11682,7 +11705,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11682
11705
|
const [t, n] = H(e, ["as", "contextId", "ref", "onClick", "data-corvu-dialog-trigger"]), r = O(() => Ct(t.contextId));
|
|
11683
11706
|
return p(eg, T({
|
|
11684
11707
|
ref(i) {
|
|
11685
|
-
var s =
|
|
11708
|
+
var s = zn(r().setTriggerRef, t.ref);
|
|
11686
11709
|
typeof s == "function" && s(i);
|
|
11687
11710
|
},
|
|
11688
11711
|
get as() {
|
|
@@ -11713,7 +11736,7 @@ function Eg(e) {
|
|
|
11713
11736
|
const t = T({
|
|
11714
11737
|
enabled: !0,
|
|
11715
11738
|
dimension: "both"
|
|
11716
|
-
}, e), [n, r] =
|
|
11739
|
+
}, e), [n, r] = _(!1), [o, i] = _(null);
|
|
11717
11740
|
let s = null;
|
|
11718
11741
|
M(() => {
|
|
11719
11742
|
const c = de(t.element), u = de(t.enabled);
|
|
@@ -11730,11 +11753,11 @@ function Eg(e) {
|
|
|
11730
11753
|
const u = c.target, d = [u.offsetWidth, u.offsetHeight], h = de(t.dimension);
|
|
11731
11754
|
h === "both" ? s ? s[0] !== d[0] && s[1] !== d[1] && (ke(() => {
|
|
11732
11755
|
i(s), r(!0);
|
|
11733
|
-
}),
|
|
11756
|
+
}), An(() => {
|
|
11734
11757
|
i(d), parseFloat(getComputedStyle(c.target).transitionDuration) === 0 && l();
|
|
11735
11758
|
})) : s = d : s ? sn(h, s) !== sn(h, d) && (ke(() => {
|
|
11736
11759
|
i(sn(h, s)), r(!0);
|
|
11737
|
-
}),
|
|
11760
|
+
}), An(() => {
|
|
11738
11761
|
i(sn(h, d)), parseFloat(getComputedStyle(c.target).transitionDuration) === 0 && l();
|
|
11739
11762
|
})) : s = d;
|
|
11740
11763
|
}, l = () => {
|
|
@@ -11758,7 +11781,7 @@ var sn = (e, t) => {
|
|
|
11758
11781
|
return t[1];
|
|
11759
11782
|
}
|
|
11760
11783
|
}, kg = Eg, Cg = kg, Og = (e, t) => e.length > 0 ? () => e(W(t)) : e;
|
|
11761
|
-
function
|
|
11784
|
+
function Pg(e, t) {
|
|
11762
11785
|
let n = 0;
|
|
11763
11786
|
const r = e.map(
|
|
11764
11787
|
(o, i) => O(
|
|
@@ -11769,41 +11792,41 @@ function _g(e, t) {
|
|
|
11769
11792
|
);
|
|
11770
11793
|
return O(() => r.map((o) => o())[n], void 0, t);
|
|
11771
11794
|
}
|
|
11772
|
-
function
|
|
11795
|
+
function ri(e, t, n) {
|
|
11773
11796
|
let r = () => t;
|
|
11774
|
-
const [o, i] =
|
|
11797
|
+
const [o, i] = _(t, Bi), s = O(
|
|
11775
11798
|
Og(e, () => r()),
|
|
11776
11799
|
t
|
|
11777
11800
|
);
|
|
11778
11801
|
return [
|
|
11779
|
-
r =
|
|
11802
|
+
r = Pg([o, s], n),
|
|
11780
11803
|
(a) => i(
|
|
11781
11804
|
() => typeof a == "function" ? a(W(r)) : a
|
|
11782
11805
|
)
|
|
11783
11806
|
];
|
|
11784
11807
|
}
|
|
11785
|
-
var
|
|
11808
|
+
var _g = (e) => p(Sg, T({
|
|
11786
11809
|
"data-corvu-dialog-trigger": void 0,
|
|
11787
11810
|
"data-corvu-drawer-trigger": ""
|
|
11788
|
-
}, e)), Hs = le(), Ag = (e) => e ?
|
|
11811
|
+
}, e)), Hs = le(), Ag = (e) => e ? Bn(`drawer-${e}`) : Hs, Tg = (e) => {
|
|
11789
11812
|
if (!e) {
|
|
11790
11813
|
const n = pe(Hs);
|
|
11791
11814
|
if (!n)
|
|
11792
11815
|
throw new Error("[corvu]: Drawer context not found. Make sure to wrap Drawer components in <Drawer.Root>");
|
|
11793
11816
|
return n;
|
|
11794
11817
|
}
|
|
11795
|
-
const t =
|
|
11818
|
+
const t = Zr(`drawer-${e}`);
|
|
11796
11819
|
if (!t)
|
|
11797
11820
|
throw new Error(`[corvu]: Drawer context with id "${e}" not found. Make sure to wrap Drawer components in <Drawer.Root contextId="${e}">`);
|
|
11798
11821
|
return t;
|
|
11799
|
-
}, qs = le(), Mg = (e) => e ?
|
|
11822
|
+
}, qs = le(), Mg = (e) => e ? Bn(`drawer-internal-${e}`) : qs, Ws = (e) => {
|
|
11800
11823
|
if (!e) {
|
|
11801
11824
|
const n = pe(qs);
|
|
11802
11825
|
if (!n)
|
|
11803
11826
|
throw new Error("[corvu]: Drawer context not found. Make sure to wrap Drawer components in <Drawer.Root>");
|
|
11804
11827
|
return n;
|
|
11805
11828
|
}
|
|
11806
|
-
const t =
|
|
11829
|
+
const t = Zr(`drawer-internal-${e}`);
|
|
11807
11830
|
if (!t)
|
|
11808
11831
|
throw new Error(`[corvu]: Drawer context with id "${e}" not found. Make sure to wrap Drawer components in <Drawer.Root contextId="${e}">`);
|
|
11809
11832
|
return t;
|
|
@@ -11827,9 +11850,9 @@ var Pg = (e) => p(Sg, T({
|
|
|
11827
11850
|
throw new Error(`[corvu] Snap and break points must be a number or a string ending with 'px'. Got ${e}`);
|
|
11828
11851
|
return t - parseInt(e, 10);
|
|
11829
11852
|
}, Dg = (e, t, n, r) => {
|
|
11830
|
-
const o =
|
|
11853
|
+
const o = oi("upper", e, r ? n : t), i = oi("lower", e, r ? n : t);
|
|
11831
11854
|
return o ? i ? i.upperBreakPoint === void 0 || o.lowerBreakPoint === void 0 ? Math.abs(i.offset - n) < Math.abs(o.offset - n) ? i : o : n < o.lowerBreakPoint ? i : o : o : i;
|
|
11832
|
-
},
|
|
11855
|
+
}, oi = (e, t, n) => t.reduce((r, o) => e == "upper" && o.offset >= n && (!r || o.offset < r.offset) || e == "lower" && o.offset <= n && (!r || o.offset > r.offset) ? o : r, void 0), Lg = (e, t) => {
|
|
11833
11856
|
let n = e, r = !1;
|
|
11834
11857
|
do {
|
|
11835
11858
|
if (n.hasAttribute("data-corvu-no-drag") || n.type === "range")
|
|
@@ -11855,15 +11878,15 @@ var Pg = (e) => p(Sg, T({
|
|
|
11855
11878
|
transitionResize: !1,
|
|
11856
11879
|
closeOnOutsidePointer: !0,
|
|
11857
11880
|
allowPinchZoom: !1
|
|
11858
|
-
}, e), [n, r] = H(t, ["snapPoints", "breakPoints", "defaultSnapPoint", "activeSnapPoint", "onActiveSnapPointChange", "side", "dampFunction", "velocityFunction", "velocityCacheReset", "allowSkippingSnapPoints", "handleScrollableElements", "transitionResize", "open", "initialOpen", "onOpenChange", "closeOnOutsidePointer", "contextId", "children"]), [o, i] =
|
|
11881
|
+
}, e), [n, r] = H(t, ["snapPoints", "breakPoints", "defaultSnapPoint", "activeSnapPoint", "onActiveSnapPointChange", "side", "dampFunction", "velocityFunction", "velocityCacheReset", "allowSkippingSnapPoints", "handleScrollableElements", "transitionResize", "open", "initialOpen", "onOpenChange", "closeOnOutsidePointer", "contextId", "children"]), [o, i] = _r({
|
|
11859
11882
|
value: () => n.open,
|
|
11860
11883
|
initialValue: n.initialOpen,
|
|
11861
11884
|
onChange: n.onOpenChange
|
|
11862
|
-
}), [s, a] =
|
|
11885
|
+
}), [s, a] = _r({
|
|
11863
11886
|
value: () => n.activeSnapPoint,
|
|
11864
11887
|
initialValue: 0,
|
|
11865
11888
|
onChange: n.onActiveSnapPointChange
|
|
11866
|
-
}), [l, c] =
|
|
11889
|
+
}), [l, c] = _(), {
|
|
11867
11890
|
transitioning: u,
|
|
11868
11891
|
transitionSize: d
|
|
11869
11892
|
} = Cg({
|
|
@@ -11879,21 +11902,21 @@ var Pg = (e) => p(Sg, T({
|
|
|
11879
11902
|
return "width";
|
|
11880
11903
|
}
|
|
11881
11904
|
}
|
|
11882
|
-
}), [h, m] =
|
|
11905
|
+
}), [h, m] = _(!1), [f, g] = ri(() => u() ? "resizing" : null), y = O(() => {
|
|
11883
11906
|
const $ = l()?.contentRef();
|
|
11884
11907
|
if ($)
|
|
11885
11908
|
return getComputedStyle($);
|
|
11886
|
-
}), [w, b] =
|
|
11909
|
+
}), [w, b] = _(!1);
|
|
11887
11910
|
M(() => {
|
|
11888
11911
|
const $ = o();
|
|
11889
11912
|
W(() => {
|
|
11890
|
-
w() !== $ && ($ ? (b(!0),
|
|
11913
|
+
w() !== $ && ($ ? (b(!0), Lo(() => {
|
|
11891
11914
|
ke(() => {
|
|
11892
11915
|
g("opening"), a(n.defaultSnapPoint);
|
|
11893
11916
|
}), parseFloat(y().transitionDuration) === 0 && g(null);
|
|
11894
11917
|
})) : (ke(() => {
|
|
11895
11918
|
g("closing"), a(0);
|
|
11896
|
-
}),
|
|
11919
|
+
}), Lo(() => {
|
|
11897
11920
|
parseFloat(y().transitionDuration) === 0 && v();
|
|
11898
11921
|
})));
|
|
11899
11922
|
});
|
|
@@ -11902,7 +11925,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
11902
11925
|
ke(() => {
|
|
11903
11926
|
b(!1), g(null);
|
|
11904
11927
|
});
|
|
11905
|
-
}, [x,
|
|
11928
|
+
}, [x, P] = _(0);
|
|
11906
11929
|
M(() => {
|
|
11907
11930
|
const $ = l()?.contentRef();
|
|
11908
11931
|
if (!$)
|
|
@@ -11923,16 +11946,16 @@ var Pg = (e) => p(Sg, T({
|
|
|
11923
11946
|
case "bottom":
|
|
11924
11947
|
if (U === $.offsetHeight)
|
|
11925
11948
|
return;
|
|
11926
|
-
|
|
11949
|
+
P($.offsetHeight);
|
|
11927
11950
|
break;
|
|
11928
11951
|
case "left":
|
|
11929
11952
|
case "right":
|
|
11930
11953
|
if (U === $.offsetWidth)
|
|
11931
11954
|
return;
|
|
11932
|
-
|
|
11955
|
+
P($.offsetWidth);
|
|
11933
11956
|
break;
|
|
11934
11957
|
}
|
|
11935
|
-
}, R = O(() => Gs(s(), x())), [C, K] =
|
|
11958
|
+
}, R = O(() => Gs(s(), x())), [C, K] = ri(() => R().offset), I = O(() => x() ? (x() - C()) / x() : 0), D = {
|
|
11936
11959
|
get snapPoints() {
|
|
11937
11960
|
return n.snapPoints;
|
|
11938
11961
|
},
|
|
@@ -12098,7 +12121,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
12098
12121
|
w(v.target, v.clientX, v.clientY);
|
|
12099
12122
|
}, y = (v) => {
|
|
12100
12123
|
v.touches[0] && w(v.target, v.touches[0].clientX, v.touches[0].clientY);
|
|
12101
|
-
}, w = (v, x,
|
|
12124
|
+
}, w = (v, x, P) => {
|
|
12102
12125
|
if (!r)
|
|
12103
12126
|
return;
|
|
12104
12127
|
if (!l().isDragging() || o === null) {
|
|
@@ -12108,7 +12131,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
12108
12131
|
return;
|
|
12109
12132
|
}
|
|
12110
12133
|
if (l().handleScrollableElements()) {
|
|
12111
|
-
const C = [x,
|
|
12134
|
+
const C = [x, P].map((Q, $) => i[$] - Q), K = Math.abs(C[0]) > Math.abs(C[1]) ? "x" : "y", I = K === "x" ? C[0] : C[1];
|
|
12112
12135
|
if (Math.abs(I) < 0.3)
|
|
12113
12136
|
return;
|
|
12114
12137
|
const D = c().contentRef(), [ne, X] = rs(v, K, D);
|
|
@@ -12120,7 +12143,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
12120
12143
|
switch (l().side()) {
|
|
12121
12144
|
case "top":
|
|
12122
12145
|
case "bottom":
|
|
12123
|
-
o =
|
|
12146
|
+
o = P;
|
|
12124
12147
|
break;
|
|
12125
12148
|
case "right":
|
|
12126
12149
|
case "left":
|
|
@@ -12133,10 +12156,10 @@ var Pg = (e) => p(Sg, T({
|
|
|
12133
12156
|
let S;
|
|
12134
12157
|
switch (l().side()) {
|
|
12135
12158
|
case "top":
|
|
12136
|
-
S = -(o -
|
|
12159
|
+
S = -(o - P);
|
|
12137
12160
|
break;
|
|
12138
12161
|
case "bottom":
|
|
12139
|
-
S = o -
|
|
12162
|
+
S = o - P;
|
|
12140
12163
|
break;
|
|
12141
12164
|
case "right":
|
|
12142
12165
|
S = o - x;
|
|
@@ -12151,7 +12174,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
12151
12174
|
}, b = () => {
|
|
12152
12175
|
if (r = !1, !l().isDragging())
|
|
12153
12176
|
return;
|
|
12154
|
-
const v = /* @__PURE__ */ new Date(), x = l().velocityFunction(-(a - l().translate()), v.getTime() - s.getTime() || 1),
|
|
12177
|
+
const v = /* @__PURE__ */ new Date(), x = l().velocityFunction(-(a - l().translate()), v.getTime() - s.getTime() || 1), P = l().translate() * x, S = Dg(u(), l().translate(), P, l().allowSkippingSnapPoints());
|
|
12155
12178
|
ke(() => {
|
|
12156
12179
|
l().setTransitionState("snapping"), l().setIsDragging(!1);
|
|
12157
12180
|
}), ke(() => {
|
|
@@ -12220,7 +12243,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
12220
12243
|
"data-corvu-drawer-overlay": ""
|
|
12221
12244
|
}, n));
|
|
12222
12245
|
}, Bg = Kg, zg = /* @__PURE__ */ L('<div class="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted">');
|
|
12223
|
-
const Vg = $g, Ug =
|
|
12246
|
+
const Vg = $g, Ug = _g, jg = yg, Hg = (e) => {
|
|
12224
12247
|
const [, t] = H(e, ["class"]), n = Tg();
|
|
12225
12248
|
return p(Bg, T({
|
|
12226
12249
|
get class() {
|
|
@@ -12260,7 +12283,7 @@ const Zg = ({
|
|
|
12260
12283
|
}) => {
|
|
12261
12284
|
const {
|
|
12262
12285
|
pushMessage: r
|
|
12263
|
-
} = Xe(), [o, i] =
|
|
12286
|
+
} = Xe(), [o, i] = _(!1), [s, a] = _(!1), [l, c] = _(), u = (h, m) => {
|
|
12264
12287
|
a(!1), i(!0), r(h, m);
|
|
12265
12288
|
}, d = (h) => {
|
|
12266
12289
|
const m = h.composedPath();
|
|
@@ -12288,21 +12311,21 @@ const Zg = ({
|
|
|
12288
12311
|
variant: "outline",
|
|
12289
12312
|
class: "w-full text-nowrap",
|
|
12290
12313
|
get children() {
|
|
12291
|
-
return n?.trim() ??
|
|
12314
|
+
return n?.trim() ?? ut("selectOption");
|
|
12292
12315
|
}
|
|
12293
12316
|
}), p(qg, {
|
|
12294
12317
|
class: "pb-2 px-2 flex flex-col items-center justify-center",
|
|
12295
12318
|
get children() {
|
|
12296
12319
|
return [(() => {
|
|
12297
12320
|
var f = Wg();
|
|
12298
|
-
return A(f, () => n?.trim() ??
|
|
12321
|
+
return A(f, () => n?.trim() ?? ut("selectOption")), f;
|
|
12299
12322
|
})(), (() => {
|
|
12300
12323
|
var f = Gg();
|
|
12301
|
-
return A(f, p(
|
|
12324
|
+
return A(f, p(ht, {
|
|
12302
12325
|
each: e,
|
|
12303
12326
|
children: (g) => (() => {
|
|
12304
12327
|
var y = Xg(), w = y.firstChild;
|
|
12305
|
-
return A(w, () => g.label?.trim() ?? ""), A(y, p(
|
|
12328
|
+
return A(w, () => g.label?.trim() ?? ""), A(y, p(ht, {
|
|
12306
12329
|
get each() {
|
|
12307
12330
|
return g.items;
|
|
12308
12331
|
},
|
|
@@ -12346,13 +12369,13 @@ const Zg = ({
|
|
|
12346
12369
|
onClick: () => u(l().label, l().value),
|
|
12347
12370
|
class: "w-11/12 mt-4 hover:bg-primary shadow-sm hover:shadow-primary transition-shadow",
|
|
12348
12371
|
get children() {
|
|
12349
|
-
return
|
|
12372
|
+
return ut("send");
|
|
12350
12373
|
}
|
|
12351
12374
|
})];
|
|
12352
12375
|
}
|
|
12353
12376
|
})];
|
|
12354
12377
|
}
|
|
12355
|
-
})), ee(() =>
|
|
12378
|
+
})), ee(() => gt(m, o() ? "opacity-50" : "")), h;
|
|
12356
12379
|
})();
|
|
12357
12380
|
};
|
|
12358
12381
|
var Qg = /* @__PURE__ */ L("<audio controls preload=auto class=h-8><source type=audio/mpeg><source type=audio/ogg>Your browser does not support the audio element.");
|
|
@@ -12409,7 +12432,7 @@ const sp = (e) => (() => {
|
|
|
12409
12432
|
}), t;
|
|
12410
12433
|
})();
|
|
12411
12434
|
var ap = /* @__PURE__ */ L("<div>Media type not supported");
|
|
12412
|
-
const Ys = (e) => e.type === "image" ? p(op, e) : e.type === "audio" ? p(ep, e) : e.type === "document" ? p(np, e) : e.type === "video" ? p(sp, e) : ap(),
|
|
12435
|
+
const Ys = (e) => e.type === "image" ? p(op, e) : e.type === "audio" ? p(ep, e) : e.type === "document" ? p(np, e) : e.type === "video" ? p(sp, e) : ap(), Tr = ({
|
|
12413
12436
|
text: e
|
|
12414
12437
|
}) => p(kt, {
|
|
12415
12438
|
get children() {
|
|
@@ -12422,11 +12445,11 @@ const cp = (e) => p(xh, {
|
|
|
12422
12445
|
return e.createdAt;
|
|
12423
12446
|
},
|
|
12424
12447
|
get children() {
|
|
12425
|
-
return e.type === "text" ? p(
|
|
12448
|
+
return e.type === "text" ? p(Tr, {
|
|
12426
12449
|
get text() {
|
|
12427
12450
|
return e.text;
|
|
12428
12451
|
}
|
|
12429
|
-
}) : e.type === "buttons" ? p(kh, T(() => e.buttons)) : e.type === "list" ? p(Zg, T(() => e.list)) : e.type === "media" ? p(Ys, T(() => e.media)) : e.type === "link" ? p(Ah, T(() => e.link)) : e.type === "cards" ? p(
|
|
12452
|
+
}) : e.type === "buttons" ? p(kh, T(() => e.buttons)) : e.type === "list" ? p(Zg, T(() => e.list)) : e.type === "media" ? p(Ys, T(() => e.media)) : e.type === "link" ? p(Ah, T(() => e.link)) : e.type === "cards" ? p(Ph, T(() => e.cards)) : e.type === "date" ? p(Tr, {
|
|
12430
12453
|
get text() {
|
|
12431
12454
|
return e.text;
|
|
12432
12455
|
}
|
|
@@ -12455,7 +12478,7 @@ const pp = (e) => p(hp, {
|
|
|
12455
12478
|
return e.createdAt;
|
|
12456
12479
|
},
|
|
12457
12480
|
get children() {
|
|
12458
|
-
return e.type === "text" ? p(
|
|
12481
|
+
return e.type === "text" ? p(Tr, {
|
|
12459
12482
|
get text() {
|
|
12460
12483
|
return e.text;
|
|
12461
12484
|
}
|
|
@@ -12470,7 +12493,7 @@ function bp(e) {
|
|
|
12470
12493
|
c: '<path d="m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34Z"/>'
|
|
12471
12494
|
}, e);
|
|
12472
12495
|
}
|
|
12473
|
-
function
|
|
12496
|
+
function ft(e) {
|
|
12474
12497
|
return ce({
|
|
12475
12498
|
a: { viewBox: "0 0 512 512" },
|
|
12476
12499
|
c: '<path d="M256 464c-114.69 0-208-93.31-208-208S141.31 48 256 48s208 93.31 208 208-93.31 208-208 208Z"/>'
|
|
@@ -12479,16 +12502,16 @@ function ht(e) {
|
|
|
12479
12502
|
var wp = /* @__PURE__ */ L('<div class="place-self-start py-1"><div class="animate-pulse bg-white flex space-x-1 shadow-md py-2 px-4 rounded-r-xl rounded-tl-xl text-slate-400">');
|
|
12480
12503
|
const vp = () => (() => {
|
|
12481
12504
|
var e = wp(), t = e.firstChild;
|
|
12482
|
-
return A(t, p(
|
|
12505
|
+
return A(t, p(ft, {
|
|
12483
12506
|
class: "size-2 animate-bounce"
|
|
12484
|
-
}), null), A(t, p(
|
|
12507
|
+
}), null), A(t, p(ft, {
|
|
12485
12508
|
class: "size-2 animate-bounce delay-150"
|
|
12486
|
-
}), null), A(t, p(
|
|
12509
|
+
}), null), A(t, p(ft, {
|
|
12487
12510
|
class: "size-2 animate-bounce delay-300"
|
|
12488
12511
|
}), null), e;
|
|
12489
12512
|
})();
|
|
12490
12513
|
var xp = /* @__PURE__ */ L('<main class="flex-grow p-4 overflow-y-auto flex flex-col items-center scroll-smooth relative">'), Sp = /* @__PURE__ */ L("<div>");
|
|
12491
|
-
const
|
|
12514
|
+
const to = () => {
|
|
12492
12515
|
let e;
|
|
12493
12516
|
const {
|
|
12494
12517
|
getMessages: t,
|
|
@@ -12505,14 +12528,14 @@ const eo = () => {
|
|
|
12505
12528
|
i(200);
|
|
12506
12529
|
}), n(i), o(() => i(200)), (() => {
|
|
12507
12530
|
var s = xp(), a = e;
|
|
12508
|
-
return typeof a == "function" ? yi(a, s) : e = s, A(s, p(
|
|
12531
|
+
return typeof a == "function" ? yi(a, s) : e = s, A(s, p(ht, {
|
|
12509
12532
|
get each() {
|
|
12510
12533
|
return t();
|
|
12511
12534
|
},
|
|
12512
12535
|
get fallback() {
|
|
12513
12536
|
return (() => {
|
|
12514
12537
|
var l = Sp();
|
|
12515
|
-
return A(l, () =>
|
|
12538
|
+
return A(l, () => ut("emptyMessages")), l;
|
|
12516
12539
|
})();
|
|
12517
12540
|
},
|
|
12518
12541
|
children: (l) => p(yp, l)
|
|
@@ -12531,7 +12554,7 @@ const kp = (e) => {
|
|
|
12531
12554
|
const [, t] = H(e, ["class"]);
|
|
12532
12555
|
return (() => {
|
|
12533
12556
|
var n = Ep();
|
|
12534
|
-
return
|
|
12557
|
+
return nt(n, T({
|
|
12535
12558
|
get class() {
|
|
12536
12559
|
return Ye("flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", e.class);
|
|
12537
12560
|
}
|
|
@@ -12541,20 +12564,20 @@ const kp = (e) => {
|
|
|
12541
12564
|
var Cp = /* @__PURE__ */ L('<svg viewBox="0 0 72 72"fill=none xmlns=http://www.w3.org/2000/svg><path d="M50.3241 0H21.6759C9.69907 0 0 9.68892 0 21.6519V50.3481C0 62.3111 9.69907 72 21.6759 72H67.9815C70.2546 72 72 70.1845 72 67.9105V21.6519C72 9.68892 62.3009 0 50.3241 0Z"fill=#212431></path><path d="M28.9868 56.1046H24.7249C21.9596 56.1046 19.7217 53.8671 19.7217 51.1129V45.9126C19.7217 44.244 18.3676 42.8929 16.6952 42.8929H13.6924C11.8108 42.8929 10.2857 41.3712 10.2857 39.494V37.0622C10.2857 35.185 11.8108 33.6633 13.6924 33.6633H25.3758C27.3713 33.6633 28.9868 35.275 28.9868 37.2613V56.1046Z"fill=white></path><path d="M61.7142 26.3227C61.7142 28.1782 60.2059 29.6992 58.3661 29.6992H46.2955V56.1042H37.629C34.9627 56.1042 32.8054 53.9238 32.8054 51.2395V36.1839C32.8054 32.6002 29.9243 29.6992 26.3755 29.6992H20.1791C18.3393 29.6992 16.8311 28.1782 16.8311 26.3227V19.2729C16.8311 17.408 18.33 15.8964 20.1791 15.8964H58.3661C60.2153 15.8964 61.7142 17.408 61.7142 19.2729V26.3227Z"fill=white>');
|
|
12542
12565
|
const Op = (e) => (() => {
|
|
12543
12566
|
var t = Cp();
|
|
12544
|
-
return
|
|
12567
|
+
return nt(t, e, !0, !0), t;
|
|
12545
12568
|
})();
|
|
12546
|
-
var
|
|
12547
|
-
const
|
|
12548
|
-
var e =
|
|
12569
|
+
var Pp = /* @__PURE__ */ L('<div class="absolute flex items-center justify-center left-1/2 transform -translate-x-1/2 bottom-0 pb-1"><span class="font-semibold text-xs text-gray-600 ml-1">SmartTalks.ai');
|
|
12570
|
+
const _p = () => (() => {
|
|
12571
|
+
var e = Pp(), t = e.firstChild;
|
|
12549
12572
|
return A(e, p(Op, {
|
|
12550
12573
|
height: 15
|
|
12551
12574
|
}), t), e;
|
|
12552
12575
|
})();
|
|
12553
12576
|
var Ap = /* @__PURE__ */ L('<footer class="flex-none p-4 bg-white min-h-16 flex space-x-1 mb-2">');
|
|
12554
|
-
const
|
|
12577
|
+
const no = () => {
|
|
12555
12578
|
const {
|
|
12556
12579
|
pushMessage: e
|
|
12557
|
-
} = Xe(), [t, n] =
|
|
12580
|
+
} = Xe(), [t, n] = _(""), r = () => {
|
|
12558
12581
|
e(t()), n("");
|
|
12559
12582
|
}, o = (i) => {
|
|
12560
12583
|
i.key === "Enter" && !i.shiftKey && r();
|
|
@@ -12563,7 +12586,7 @@ const to = () => {
|
|
|
12563
12586
|
var i = Ap();
|
|
12564
12587
|
return A(i, p(kp, {
|
|
12565
12588
|
get placeholder() {
|
|
12566
|
-
return
|
|
12589
|
+
return ut("inputPlaceholder");
|
|
12567
12590
|
},
|
|
12568
12591
|
get value() {
|
|
12569
12592
|
return t();
|
|
@@ -12584,7 +12607,7 @@ const to = () => {
|
|
|
12584
12607
|
size: 24
|
|
12585
12608
|
});
|
|
12586
12609
|
}
|
|
12587
|
-
}), null), A(i, p(
|
|
12610
|
+
}), null), A(i, p(_p, {}), null), i;
|
|
12588
12611
|
})();
|
|
12589
12612
|
};
|
|
12590
12613
|
var Tp = /* @__PURE__ */ L('<div id=smarttalks-widget class="rounded-md shadow-xl h-[85vh] w-[98%] md:h-[min(100vh,500px)] md:w-[min(100vw,400px)] overflow-hidden bg-background text-foreground flex flex-col relative">'), Mp = /* @__PURE__ */ L("<span class=sr-only>Close"), Dp = /* @__PURE__ */ L("<div>"), Lp = /* @__PURE__ */ L("<span class=sr-only>Open"), Ip = /* @__PURE__ */ L("<span>"), Rp = /* @__PURE__ */ L('<div class="animate-pulse flex p-1">');
|
|
@@ -12598,20 +12621,26 @@ const $p = ({
|
|
|
12598
12621
|
show: o
|
|
12599
12622
|
} = Ei(), {
|
|
12600
12623
|
chatWidget: i
|
|
12601
|
-
} = te(), [s, a] =
|
|
12602
|
-
|
|
12624
|
+
} = te(), [s, a] = _(!0);
|
|
12625
|
+
setTimeout(() => a(!1), 2e3), i()?.openDelay && setTimeout(() => {
|
|
12603
12626
|
o();
|
|
12604
|
-
}, i()?.openDelay)
|
|
12605
|
-
|
|
12606
|
-
|
|
12627
|
+
}, i()?.openDelay);
|
|
12628
|
+
const l = () => (i()?.style.margin ?? 5) / 4, c = () => i()?.style.position === "left" ? {
|
|
12629
|
+
left: `${l()}rem`
|
|
12630
|
+
} : {
|
|
12631
|
+
right: `${l()}rem`
|
|
12632
|
+
};
|
|
12633
|
+
return (() => {
|
|
12634
|
+
var u = Dp();
|
|
12635
|
+
return A(u, p(J, {
|
|
12607
12636
|
get when() {
|
|
12608
12637
|
return n();
|
|
12609
12638
|
},
|
|
12610
12639
|
get children() {
|
|
12611
|
-
var
|
|
12612
|
-
return A(
|
|
12640
|
+
var d = Tp();
|
|
12641
|
+
return A(d, e), d;
|
|
12613
12642
|
}
|
|
12614
|
-
}), null), A(
|
|
12643
|
+
}), null), A(u, p(J, {
|
|
12615
12644
|
get when() {
|
|
12616
12645
|
return n();
|
|
12617
12646
|
},
|
|
@@ -12627,27 +12656,27 @@ const $p = ({
|
|
|
12627
12656
|
return i()?.balloonMessage;
|
|
12628
12657
|
},
|
|
12629
12658
|
get children() {
|
|
12630
|
-
var
|
|
12631
|
-
return A(
|
|
12659
|
+
var d = Ip();
|
|
12660
|
+
return A(d, p(J, {
|
|
12632
12661
|
get when() {
|
|
12633
12662
|
return !s();
|
|
12634
12663
|
},
|
|
12635
12664
|
get fallback() {
|
|
12636
12665
|
return (() => {
|
|
12637
|
-
var
|
|
12638
|
-
return A(
|
|
12666
|
+
var h = Rp();
|
|
12667
|
+
return A(h, p(ft, {
|
|
12639
12668
|
class: "size-2 animate-bounce"
|
|
12640
|
-
}), null), A(
|
|
12669
|
+
}), null), A(h, p(ft, {
|
|
12641
12670
|
class: "size-2 animate-bounce delay-150"
|
|
12642
|
-
}), null), A(
|
|
12671
|
+
}), null), A(h, p(ft, {
|
|
12643
12672
|
class: "size-2 animate-bounce delay-300"
|
|
12644
|
-
}), null),
|
|
12673
|
+
}), null), h;
|
|
12645
12674
|
})();
|
|
12646
12675
|
},
|
|
12647
12676
|
get children() {
|
|
12648
12677
|
return i()?.balloonMessage;
|
|
12649
12678
|
}
|
|
12650
|
-
})), ee(() =>
|
|
12679
|
+
})), ee(() => gt(d, "absolute -top-2 bg-primary text-primary-foreground px-1 py-0.5 pointer-events-none rounded truncate" + (i()?.style.position === "left" ? " left-9" : " right-9"))), d;
|
|
12651
12680
|
}
|
|
12652
12681
|
})];
|
|
12653
12682
|
}
|
|
@@ -12666,7 +12695,13 @@ const $p = ({
|
|
|
12666
12695
|
}
|
|
12667
12696
|
});
|
|
12668
12697
|
}
|
|
12669
|
-
}), null), ee(() =>
|
|
12698
|
+
}), null), ee((d) => {
|
|
12699
|
+
var h = "max-h-full max-w-full md:max-h-[90%] md:max-w-[90%] fixed bottom-5 flex flex-col space-y-2" + (i()?.style.position === "left" ? " items-start" : " items-end"), m = c();
|
|
12700
|
+
return h !== d.e && gt(u, d.e = h), d.t = Ln(u, m, d.t), d;
|
|
12701
|
+
}, {
|
|
12702
|
+
e: void 0,
|
|
12703
|
+
t: void 0
|
|
12704
|
+
}), u;
|
|
12670
12705
|
})();
|
|
12671
12706
|
};
|
|
12672
12707
|
var Fp = /* @__PURE__ */ L('<div id=smarttalks-widget class="h-screen w-full overflow-hidden bg-background text-foreground flex flex-col rounded-md">');
|
|
@@ -12678,23 +12713,27 @@ const Np = ({
|
|
|
12678
12713
|
} = te(), n = {};
|
|
12679
12714
|
return t()?.style.width && (n.width = `min(100%, ${t()?.style.width}px)`), t()?.style.height && (n.height = `min(100vh, ${t()?.style.height}px)`), (() => {
|
|
12680
12715
|
var r = Fp();
|
|
12681
|
-
return
|
|
12716
|
+
return Ln(r, n), A(r, e), r;
|
|
12682
12717
|
})();
|
|
12683
12718
|
};
|
|
12684
|
-
var Kp = /* @__PURE__ */ L(
|
|
12719
|
+
var Kp = /* @__PURE__ */ L('<div id=smarttalks-widget class="h-[85vh] w-[90vw] md:h-[min(100vh,500px)] md:w-[min(100vw,400px)] max-h-full max-w-full md:max-h-[90%] md:max-w-[90%] fixed bottom-5 rounded-md shadow-xl overflow-hidden bg-background text-foreground flex flex-col">');
|
|
12685
12720
|
const Bp = ({
|
|
12686
12721
|
children: e
|
|
12687
12722
|
}) => {
|
|
12688
12723
|
const {
|
|
12689
12724
|
chatWidget: t
|
|
12690
|
-
} = te()
|
|
12725
|
+
} = te(), n = () => (t()?.style.margin ?? 5) / 4, r = () => t()?.style.position === "left" ? {
|
|
12726
|
+
left: `${n()}rem`
|
|
12727
|
+
} : {
|
|
12728
|
+
right: `${n()}rem`
|
|
12729
|
+
};
|
|
12691
12730
|
return (() => {
|
|
12692
|
-
var
|
|
12693
|
-
return A(
|
|
12731
|
+
var o = Kp();
|
|
12732
|
+
return A(o, e), ee((i) => Ln(o, r(), i)), o;
|
|
12694
12733
|
})();
|
|
12695
12734
|
};
|
|
12696
12735
|
var zp = /* @__PURE__ */ L('<div class="absolute bg-black/50 text-white font-bold h-full w-full grid place-content-center z-50">');
|
|
12697
|
-
const
|
|
12736
|
+
const ro = () => (() => {
|
|
12698
12737
|
var e = zp();
|
|
12699
12738
|
return A(e, p(nc, {
|
|
12700
12739
|
size: 45,
|
|
@@ -12722,9 +12761,9 @@ const no = () => (() => {
|
|
|
12722
12761
|
return t();
|
|
12723
12762
|
},
|
|
12724
12763
|
get children() {
|
|
12725
|
-
return p(
|
|
12764
|
+
return p(ro, {});
|
|
12726
12765
|
}
|
|
12727
|
-
}), p(
|
|
12766
|
+
}), p(Jr, {}), p(to, {}), p(no, {})];
|
|
12728
12767
|
}
|
|
12729
12768
|
});
|
|
12730
12769
|
}, Up = () => {
|
|
@@ -12738,9 +12777,9 @@ const no = () => (() => {
|
|
|
12738
12777
|
return e();
|
|
12739
12778
|
},
|
|
12740
12779
|
get children() {
|
|
12741
|
-
return p(
|
|
12780
|
+
return p(ro, {});
|
|
12742
12781
|
}
|
|
12743
|
-
}), p(
|
|
12782
|
+
}), p(Jr, {}), p(to, {}), p(no, {})];
|
|
12744
12783
|
}
|
|
12745
12784
|
});
|
|
12746
12785
|
}, jp = () => {
|
|
@@ -12754,9 +12793,9 @@ const no = () => (() => {
|
|
|
12754
12793
|
return e();
|
|
12755
12794
|
},
|
|
12756
12795
|
get children() {
|
|
12757
|
-
return p(
|
|
12796
|
+
return p(ro, {});
|
|
12758
12797
|
}
|
|
12759
|
-
}), p(
|
|
12798
|
+
}), p(Jr, {}), p(to, {}), p(no, {})];
|
|
12760
12799
|
}
|
|
12761
12800
|
});
|
|
12762
12801
|
}, Hp = () => {
|
|
@@ -12765,7 +12804,7 @@ const no = () => (() => {
|
|
|
12765
12804
|
} = te(), t = ba(async () => (e()?.openDelay && await new Promise((n) => setTimeout(n, e()?.openDelay)), {
|
|
12766
12805
|
default: Up
|
|
12767
12806
|
}));
|
|
12768
|
-
return p(
|
|
12807
|
+
return p(mi, {
|
|
12769
12808
|
get children() {
|
|
12770
12809
|
return [p($t, {
|
|
12771
12810
|
get when() {
|
|
@@ -12806,7 +12845,7 @@ function Gp() {
|
|
|
12806
12845
|
const {
|
|
12807
12846
|
widget: e
|
|
12808
12847
|
} = te();
|
|
12809
|
-
return p(
|
|
12848
|
+
return p(mi, {
|
|
12810
12849
|
get children() {
|
|
12811
12850
|
return [p($t, {
|
|
12812
12851
|
get when() {
|
|
@@ -12830,23 +12869,36 @@ var Yp = /* @__PURE__ */ L("<style>"), Xp = /* @__PURE__ */ L("<div>");
|
|
|
12830
12869
|
const Jp = ({
|
|
12831
12870
|
id: e,
|
|
12832
12871
|
settings: t,
|
|
12833
|
-
side: n
|
|
12872
|
+
side: n,
|
|
12873
|
+
margin: r,
|
|
12874
|
+
mode: o
|
|
12834
12875
|
}) => {
|
|
12835
12876
|
const {
|
|
12836
|
-
setWidgetId:
|
|
12837
|
-
} = te(),
|
|
12838
|
-
return
|
|
12839
|
-
var
|
|
12840
|
-
return A(
|
|
12877
|
+
setWidgetId: i
|
|
12878
|
+
} = te(), s = (e || "default") + "?" + (t ? "&showSettings" : "") + (n ? `&${n}` : "") + (r ? `&margin=${r}` : "") + (o ? `&mode=${o}` : "");
|
|
12879
|
+
return i(s), [(() => {
|
|
12880
|
+
var a = Yp();
|
|
12881
|
+
return A(a, Ha), a;
|
|
12841
12882
|
})(), (() => {
|
|
12842
|
-
var
|
|
12843
|
-
return A(
|
|
12883
|
+
var a = Xp();
|
|
12884
|
+
return A(a, p(Gp, {})), a;
|
|
12844
12885
|
})()];
|
|
12845
|
-
}, Zp =
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12886
|
+
}, Zp = {
|
|
12887
|
+
id: "",
|
|
12888
|
+
settings: !1,
|
|
12889
|
+
side: void 0,
|
|
12890
|
+
margin: void 0,
|
|
12891
|
+
mode: void 0
|
|
12892
|
+
}, Qp = () => {
|
|
12893
|
+
typeof window > "u" || ja("smarttalks-widget", Zp, Jp);
|
|
12851
12894
|
};
|
|
12852
|
-
|
|
12895
|
+
Qp();
|
|
12896
|
+
typeof window < "u" && (window.SmartTalksWidget = {
|
|
12897
|
+
registerContactData: (e) => {
|
|
12898
|
+
window.postMessage({
|
|
12899
|
+
from: "smarttalkswidget",
|
|
12900
|
+
command: "registerContactData",
|
|
12901
|
+
contactData: e
|
|
12902
|
+
});
|
|
12903
|
+
}
|
|
12904
|
+
});
|