@smarttalks.ai/widget 0.2.0 → 0.3.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 +812 -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
|
|
@@ -3935,12 +3935,12 @@ const Nl = {
|
|
|
3935
3935
|
restart: "Reiniciar"
|
|
3936
3936
|
}
|
|
3937
3937
|
};
|
|
3938
|
-
function
|
|
3938
|
+
function ut(e) {
|
|
3939
3939
|
const t = navigator.language?.toLowerCase();
|
|
3940
3940
|
let n = "en";
|
|
3941
3941
|
return (t === "pt-br" || t.includes("pt")) && (n = "pt"), (t === "es-es" || t.includes("es")) && (n = "es"), Nl[n][e];
|
|
3942
3942
|
}
|
|
3943
|
-
const
|
|
3943
|
+
const Sn = "https://heimdall.smarttalks.ai/api", Kl = "wss://heimdall.smarttalks.ai";
|
|
3944
3944
|
function Bl(e) {
|
|
3945
3945
|
return {
|
|
3946
3946
|
type: "chat",
|
|
@@ -4001,11 +4001,33 @@ const Vl = async (e) => {
|
|
|
4001
4001
|
if (!n)
|
|
4002
4002
|
return;
|
|
4003
4003
|
console.info("fetching widget:", n);
|
|
4004
|
-
const o = `${
|
|
4004
|
+
const o = `${Sn}/v1/widget/${n}`, { result: i } = await (await fetch(o, {
|
|
4005
4005
|
credentials: "include"
|
|
4006
4006
|
})).json();
|
|
4007
|
-
|
|
4008
|
-
|
|
4007
|
+
if (i.type === "flow")
|
|
4008
|
+
return Bl(i);
|
|
4009
|
+
if (i.type === "entity")
|
|
4010
|
+
return zl(i);
|
|
4011
|
+
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"))) {
|
|
4012
|
+
const s = r.find((a) => a.includes("margin"));
|
|
4013
|
+
s && (i.style.margin = Number(s.split("=")[1] ?? "5"));
|
|
4014
|
+
}
|
|
4015
|
+
if (r.some((s) => s.includes("mode"))) {
|
|
4016
|
+
const s = r.find((a) => a.includes("mode"))?.split("=")[1];
|
|
4017
|
+
(s === "popup" || s === "static" || s === "standard") && (i.mode = s);
|
|
4018
|
+
}
|
|
4019
|
+
return window.addEventListener("message", (s) => {
|
|
4020
|
+
const a = s.data;
|
|
4021
|
+
a.from && a.from === "smarttalkswidget" && a.command === "registerContactData" && a.contactData && Object.keys(a.contactData).length && fetch(`${Sn}/v1/contact-data/${n}`, {
|
|
4022
|
+
credentials: "include",
|
|
4023
|
+
method: "POST",
|
|
4024
|
+
headers: {
|
|
4025
|
+
"Content-Type": "application/json"
|
|
4026
|
+
},
|
|
4027
|
+
body: JSON.stringify(a.contactData)
|
|
4028
|
+
}).catch(console.error);
|
|
4029
|
+
}), i._id = n, i;
|
|
4030
|
+
}, [Fi, Ul] = _(""), [mt] = Re(() => ci(Fi, Vl)), jl = () => {
|
|
4009
4031
|
if (mt()?.type === "chat")
|
|
4010
4032
|
return mt();
|
|
4011
4033
|
}, Hl = () => {
|
|
@@ -4038,15 +4060,15 @@ function ql() {
|
|
|
4038
4060
|
(e = arguments[n++]) && (t = Ni(e)) && (r && (r += " "), r += t);
|
|
4039
4061
|
return r;
|
|
4040
4062
|
}
|
|
4041
|
-
const
|
|
4063
|
+
const go = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, po = ql, Wl = (e, t) => (n) => {
|
|
4042
4064
|
var r;
|
|
4043
4065
|
if (t?.variants == null)
|
|
4044
|
-
return
|
|
4066
|
+
return po(e, n?.class, n?.className);
|
|
4045
4067
|
const { variants: o, defaultVariants: i } = t, s = Object.keys(o).map((c) => {
|
|
4046
4068
|
const u = n?.[c], d = i?.[c];
|
|
4047
4069
|
if (u === null)
|
|
4048
4070
|
return null;
|
|
4049
|
-
const h =
|
|
4071
|
+
const h = go(u) || go(d);
|
|
4050
4072
|
return o[c][h];
|
|
4051
4073
|
}), a = n && Object.entries(n).reduce((c, u) => {
|
|
4052
4074
|
let [d, h] = u;
|
|
@@ -4068,7 +4090,7 @@ const ho = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, go =
|
|
|
4068
4090
|
h
|
|
4069
4091
|
] : c;
|
|
4070
4092
|
}, []);
|
|
4071
|
-
return
|
|
4093
|
+
return po(e, s, l, n?.class, n?.className);
|
|
4072
4094
|
};
|
|
4073
4095
|
var Gl = /* @__PURE__ */ L("<button>");
|
|
4074
4096
|
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 +4118,7 @@ const Yl = Wl("inline-flex items-center justify-center rounded-md text-sm font-m
|
|
|
4096
4118
|
const [, t] = H(e, ["variant", "size", "class"]);
|
|
4097
4119
|
return (() => {
|
|
4098
4120
|
var n = Gl();
|
|
4099
|
-
return
|
|
4121
|
+
return nt(n, T({
|
|
4100
4122
|
get class() {
|
|
4101
4123
|
return Ye(Yl({
|
|
4102
4124
|
variant: e.variant,
|
|
@@ -4111,7 +4133,7 @@ const Ki = (e) => {
|
|
|
4111
4133
|
const [, t] = H(e, ["class", "src"]);
|
|
4112
4134
|
return (() => {
|
|
4113
4135
|
var n = Xl();
|
|
4114
|
-
return
|
|
4136
|
+
return nt(n, T({
|
|
4115
4137
|
get src() {
|
|
4116
4138
|
return e.src ?? "/src/assets/izi.jpeg";
|
|
4117
4139
|
},
|
|
@@ -4137,12 +4159,12 @@ const Zl = () => {
|
|
|
4137
4159
|
};
|
|
4138
4160
|
var Ql = /* @__PURE__ */ L("<svg stroke-width=0>");
|
|
4139
4161
|
function ce(e, t) {
|
|
4140
|
-
const n = T(e.a, t), [r, o] = H(n, ["src"]), [i, s] =
|
|
4162
|
+
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
4163
|
return M(() => s(a())), B(() => {
|
|
4142
4164
|
s("");
|
|
4143
4165
|
}), (() => {
|
|
4144
4166
|
var l = Ql();
|
|
4145
|
-
return
|
|
4167
|
+
return nt(l, T({
|
|
4146
4168
|
get stroke() {
|
|
4147
4169
|
return e.a?.stroke;
|
|
4148
4170
|
},
|
|
@@ -4202,7 +4224,7 @@ function oc(e) {
|
|
|
4202
4224
|
n && n(...t);
|
|
4203
4225
|
};
|
|
4204
4226
|
}
|
|
4205
|
-
var E = (e) => typeof e == "function" && !e.length ? e() : e,
|
|
4227
|
+
var E = (e) => typeof e == "function" && !e.length ? e() : e, mo = (e) => Array.isArray(e) ? e : e ? [e] : [];
|
|
4206
4228
|
function ic(e, ...t) {
|
|
4207
4229
|
return typeof e == "function" ? e(...t) : e;
|
|
4208
4230
|
}
|
|
@@ -4212,8 +4234,8 @@ function ac(e, t, n, r) {
|
|
|
4212
4234
|
}
|
|
4213
4235
|
function lc(e, t, n, r) {
|
|
4214
4236
|
const o = () => {
|
|
4215
|
-
|
|
4216
|
-
i &&
|
|
4237
|
+
mo(E(e)).forEach((i) => {
|
|
4238
|
+
i && mo(E(t)).forEach((s) => ac(i, s, n, r));
|
|
4217
4239
|
});
|
|
4218
4240
|
};
|
|
4219
4241
|
typeof e == "function" ? M(o) : ee(o);
|
|
@@ -4233,7 +4255,7 @@ function uc(e) {
|
|
|
4233
4255
|
}
|
|
4234
4256
|
};
|
|
4235
4257
|
}
|
|
4236
|
-
var
|
|
4258
|
+
var fr = (e) => typeof e == "function" && !e.length ? e() : e;
|
|
4237
4259
|
function Jt() {
|
|
4238
4260
|
return !0;
|
|
4239
4261
|
}
|
|
@@ -4261,7 +4283,7 @@ var dc = {
|
|
|
4261
4283
|
return e.keys();
|
|
4262
4284
|
}
|
|
4263
4285
|
}, fc = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
|
|
4264
|
-
function
|
|
4286
|
+
function yo(e) {
|
|
4265
4287
|
const t = {};
|
|
4266
4288
|
let n;
|
|
4267
4289
|
for (; n = fc.exec(e); )
|
|
@@ -4272,15 +4294,15 @@ function hc(e, t) {
|
|
|
4272
4294
|
if (typeof e == "string") {
|
|
4273
4295
|
if (typeof t == "string")
|
|
4274
4296
|
return `${e};${t}`;
|
|
4275
|
-
e =
|
|
4297
|
+
e = yo(e);
|
|
4276
4298
|
} else
|
|
4277
|
-
typeof t == "string" && (t =
|
|
4299
|
+
typeof t == "string" && (t = yo(t));
|
|
4278
4300
|
return { ...e, ...t };
|
|
4279
4301
|
}
|
|
4280
|
-
var
|
|
4302
|
+
var Wn = (e, t, n) => {
|
|
4281
4303
|
let r;
|
|
4282
4304
|
for (const o of e) {
|
|
4283
|
-
const i =
|
|
4305
|
+
const i = fr(o)[t];
|
|
4284
4306
|
r ? i && (r = n(r, i)) : r = i;
|
|
4285
4307
|
}
|
|
4286
4308
|
return r;
|
|
@@ -4291,7 +4313,7 @@ function gc(...e) {
|
|
|
4291
4313
|
return n[0];
|
|
4292
4314
|
const r = t && e[1]?.reverseEventHandlers ? uc : cc, o = {};
|
|
4293
4315
|
for (const s of n) {
|
|
4294
|
-
const a =
|
|
4316
|
+
const a = fr(s);
|
|
4295
4317
|
for (const l in a)
|
|
4296
4318
|
if (l[0] === "o" && l[1] === "n" && l[2]) {
|
|
4297
4319
|
const c = a[l], u = l.toLowerCase(), d = typeof c == "function" ? c : (
|
|
@@ -4308,11 +4330,11 @@ function gc(...e) {
|
|
|
4308
4330
|
if (typeof s != "string")
|
|
4309
4331
|
return Reflect.get(i, s);
|
|
4310
4332
|
if (s === "style")
|
|
4311
|
-
return
|
|
4333
|
+
return Wn(n, "style", hc);
|
|
4312
4334
|
if (s === "ref") {
|
|
4313
4335
|
const a = [];
|
|
4314
4336
|
for (const l of n) {
|
|
4315
|
-
const c =
|
|
4337
|
+
const c = fr(l)[s];
|
|
4316
4338
|
typeof c == "function" && a.push(c);
|
|
4317
4339
|
}
|
|
4318
4340
|
return r(a);
|
|
@@ -4321,7 +4343,7 @@ function gc(...e) {
|
|
|
4321
4343
|
const a = o[s.toLowerCase()];
|
|
4322
4344
|
return a ? r(a) : Reflect.get(i, s);
|
|
4323
4345
|
}
|
|
4324
|
-
return s === "class" || s === "className" ?
|
|
4346
|
+
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
4347
|
},
|
|
4326
4348
|
has(s) {
|
|
4327
4349
|
return Reflect.has(i, s);
|
|
@@ -4333,13 +4355,13 @@ function gc(...e) {
|
|
|
4333
4355
|
dc
|
|
4334
4356
|
);
|
|
4335
4357
|
}
|
|
4336
|
-
function
|
|
4358
|
+
function rt(...e) {
|
|
4337
4359
|
return oc(e);
|
|
4338
4360
|
}
|
|
4339
4361
|
function pc(e, t, n = -1) {
|
|
4340
4362
|
return n in e ? [...e.slice(0, n), t, ...e.slice(n)] : [...e, t];
|
|
4341
4363
|
}
|
|
4342
|
-
function
|
|
4364
|
+
function hr(e, t) {
|
|
4343
4365
|
const n = [...e], r = n.indexOf(t);
|
|
4344
4366
|
return r !== -1 && n.splice(r, 1), n;
|
|
4345
4367
|
}
|
|
@@ -4349,7 +4371,7 @@ function mc(e) {
|
|
|
4349
4371
|
function yc(e) {
|
|
4350
4372
|
return Array.isArray(e);
|
|
4351
4373
|
}
|
|
4352
|
-
function
|
|
4374
|
+
function at(e) {
|
|
4353
4375
|
return Object.prototype.toString.call(e) === "[object String]";
|
|
4354
4376
|
}
|
|
4355
4377
|
function bc(e) {
|
|
@@ -4384,27 +4406,27 @@ function Vi(e) {
|
|
|
4384
4406
|
return e.tagName === "IFRAME";
|
|
4385
4407
|
}
|
|
4386
4408
|
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
|
|
4409
|
+
function Rr(e) {
|
|
4388
4410
|
return typeof window < "u" && window.navigator != null ? (
|
|
4389
4411
|
// @ts-ignore
|
|
4390
4412
|
e.test(window.navigator.userAgentData?.platform || window.navigator.platform)
|
|
4391
4413
|
) : !1;
|
|
4392
4414
|
}
|
|
4393
|
-
function
|
|
4394
|
-
return
|
|
4415
|
+
function In() {
|
|
4416
|
+
return Rr(/^Mac/i);
|
|
4395
4417
|
}
|
|
4396
4418
|
function wc() {
|
|
4397
|
-
return
|
|
4419
|
+
return Rr(/^iPhone/i);
|
|
4398
4420
|
}
|
|
4399
4421
|
function vc() {
|
|
4400
|
-
return
|
|
4401
|
-
|
|
4422
|
+
return Rr(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
4423
|
+
In() && navigator.maxTouchPoints > 1;
|
|
4402
4424
|
}
|
|
4403
4425
|
function xc() {
|
|
4404
4426
|
return wc() || vc();
|
|
4405
4427
|
}
|
|
4406
4428
|
function Sc() {
|
|
4407
|
-
return
|
|
4429
|
+
return In() || xc();
|
|
4408
4430
|
}
|
|
4409
4431
|
function he(e, t) {
|
|
4410
4432
|
return t && (bc(t) ? t(e) : t[0](t[1], e)), e?.defaultPrevented;
|
|
@@ -4416,7 +4438,7 @@ function ye(e) {
|
|
|
4416
4438
|
};
|
|
4417
4439
|
}
|
|
4418
4440
|
function Ec(e) {
|
|
4419
|
-
return
|
|
4441
|
+
return In() ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey;
|
|
4420
4442
|
}
|
|
4421
4443
|
function se(e) {
|
|
4422
4444
|
if (e)
|
|
@@ -4475,29 +4497,29 @@ var ji = [
|
|
|
4475
4497
|
"audio[controls]",
|
|
4476
4498
|
"video[controls]",
|
|
4477
4499
|
"[contenteditable]:not([contenteditable='false'])"
|
|
4478
|
-
],
|
|
4500
|
+
], Pc = [...ji, '[tabindex]:not([tabindex="-1"]):not([disabled])'], $r = ji.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])", _c = Pc.join(
|
|
4479
4501
|
':not([hidden]):not([tabindex="-1"]),'
|
|
4480
4502
|
);
|
|
4481
4503
|
function Hi(e, t) {
|
|
4482
|
-
const r = Array.from(e.querySelectorAll(
|
|
4483
|
-
return t &&
|
|
4504
|
+
const r = Array.from(e.querySelectorAll($r)).filter(bo);
|
|
4505
|
+
return t && bo(e) && r.unshift(e), r.forEach((o, i) => {
|
|
4484
4506
|
if (Vi(o) && o.contentDocument) {
|
|
4485
4507
|
const s = o.contentDocument.body, a = Hi(s, !1);
|
|
4486
4508
|
r.splice(i, 1, ...a);
|
|
4487
4509
|
}
|
|
4488
4510
|
}), r;
|
|
4489
4511
|
}
|
|
4490
|
-
function
|
|
4512
|
+
function bo(e) {
|
|
4491
4513
|
return qi(e) && !Ac(e);
|
|
4492
4514
|
}
|
|
4493
4515
|
function qi(e) {
|
|
4494
|
-
return e.matches(
|
|
4516
|
+
return e.matches($r) && Fr(e);
|
|
4495
4517
|
}
|
|
4496
4518
|
function Ac(e) {
|
|
4497
4519
|
return parseInt(e.getAttribute("tabindex") || "0", 10) < 0;
|
|
4498
4520
|
}
|
|
4499
|
-
function
|
|
4500
|
-
return e.nodeName !== "#comment" && Tc(e) && Mc(e, t) && (!e.parentElement ||
|
|
4521
|
+
function Fr(e, t) {
|
|
4522
|
+
return e.nodeName !== "#comment" && Tc(e) && Mc(e, t) && (!e.parentElement || Fr(e.parentElement, e));
|
|
4501
4523
|
}
|
|
4502
4524
|
function Tc(e) {
|
|
4503
4525
|
if (!(e instanceof HTMLElement) && !(e instanceof SVGElement))
|
|
@@ -4519,14 +4541,14 @@ function Dc(e, t) {
|
|
|
4519
4541
|
return t.some((n) => n.contains(e));
|
|
4520
4542
|
}
|
|
4521
4543
|
function Lc(e, t, n) {
|
|
4522
|
-
const r = t?.tabbable ?
|
|
4544
|
+
const r = t?.tabbable ? _c : $r, o = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
4523
4545
|
acceptNode(i) {
|
|
4524
|
-
return t?.from?.contains(i) ? NodeFilter.FILTER_REJECT : i.matches(r) &&
|
|
4546
|
+
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
4547
|
}
|
|
4526
4548
|
});
|
|
4527
4549
|
return t?.from && (o.currentNode = t.from), o;
|
|
4528
4550
|
}
|
|
4529
|
-
function
|
|
4551
|
+
function wo(e) {
|
|
4530
4552
|
for (; e && !Ic(e); )
|
|
4531
4553
|
e = e.parentElement;
|
|
4532
4554
|
return e || document.scrollingElement || document.documentElement;
|
|
@@ -4563,35 +4585,35 @@ function $c(e, t) {
|
|
|
4563
4585
|
function Te(e, t) {
|
|
4564
4586
|
return T(e, t);
|
|
4565
4587
|
}
|
|
4566
|
-
var
|
|
4567
|
-
function
|
|
4588
|
+
var _t = /* @__PURE__ */ new Map(), vo = /* @__PURE__ */ new Set();
|
|
4589
|
+
function xo() {
|
|
4568
4590
|
if (typeof window > "u")
|
|
4569
4591
|
return;
|
|
4570
4592
|
const e = (n) => {
|
|
4571
4593
|
if (!n.target)
|
|
4572
4594
|
return;
|
|
4573
|
-
let r =
|
|
4574
|
-
r || (r = /* @__PURE__ */ new Set(),
|
|
4595
|
+
let r = _t.get(n.target);
|
|
4596
|
+
r || (r = /* @__PURE__ */ new Set(), _t.set(n.target, r), n.target.addEventListener("transitioncancel", t)), r.add(n.propertyName);
|
|
4575
4597
|
}, t = (n) => {
|
|
4576
4598
|
if (!n.target)
|
|
4577
4599
|
return;
|
|
4578
|
-
const r =
|
|
4579
|
-
if (r && (r.delete(n.propertyName), r.size === 0 && (n.target.removeEventListener("transitioncancel", t),
|
|
4580
|
-
for (const o of
|
|
4600
|
+
const r = _t.get(n.target);
|
|
4601
|
+
if (r && (r.delete(n.propertyName), r.size === 0 && (n.target.removeEventListener("transitioncancel", t), _t.delete(n.target)), _t.size === 0)) {
|
|
4602
|
+
for (const o of vo)
|
|
4581
4603
|
o();
|
|
4582
|
-
|
|
4604
|
+
vo.clear();
|
|
4583
4605
|
}
|
|
4584
4606
|
};
|
|
4585
4607
|
document.body.addEventListener("transitionrun", e), document.body.addEventListener("transitionend", t);
|
|
4586
4608
|
}
|
|
4587
|
-
typeof document < "u" && (document.readyState !== "loading" ?
|
|
4588
|
-
function
|
|
4589
|
-
const n =
|
|
4609
|
+
typeof document < "u" && (document.readyState !== "loading" ? xo() : document.addEventListener("DOMContentLoaded", xo));
|
|
4610
|
+
function gr(e, t) {
|
|
4611
|
+
const n = So(e, t, "left"), r = So(e, t, "top"), o = t.offsetWidth, i = t.offsetHeight;
|
|
4590
4612
|
let s = e.scrollLeft, a = e.scrollTop;
|
|
4591
4613
|
const l = s + e.offsetWidth, c = a + e.offsetHeight;
|
|
4592
4614
|
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
4615
|
}
|
|
4594
|
-
function
|
|
4616
|
+
function So(e, t, n) {
|
|
4595
4617
|
const r = n === "left" ? "offsetLeft" : "offsetTop";
|
|
4596
4618
|
let o = 0;
|
|
4597
4619
|
for (; t.offsetParent && (o += t[r], t.offsetParent !== e); ) {
|
|
@@ -4607,9 +4629,9 @@ function Fc(e, t) {
|
|
|
4607
4629
|
if (document.contains(e)) {
|
|
4608
4630
|
const n = document.scrollingElement || document.documentElement;
|
|
4609
4631
|
if (window.getComputedStyle(n).overflow === "hidden") {
|
|
4610
|
-
let o =
|
|
4632
|
+
let o = wo(e);
|
|
4611
4633
|
for (; e && o && e !== n && o !== n; )
|
|
4612
|
-
|
|
4634
|
+
gr(o, e), e = o, o = wo(e);
|
|
4613
4635
|
} else {
|
|
4614
4636
|
const { left: o, top: i } = e.getBoundingClientRect();
|
|
4615
4637
|
e?.scrollIntoView?.({ block: "nearest" });
|
|
@@ -4630,29 +4652,29 @@ var Nc = {
|
|
|
4630
4652
|
width: "1px",
|
|
4631
4653
|
"white-space": "nowrap"
|
|
4632
4654
|
};
|
|
4633
|
-
function
|
|
4655
|
+
function pr(e) {
|
|
4634
4656
|
let t = e.startIndex ?? 0;
|
|
4635
4657
|
const n = e.startLevel ?? 0, r = [], o = (l) => {
|
|
4636
4658
|
if (l == null)
|
|
4637
4659
|
return "";
|
|
4638
|
-
const c = e.getKey ?? "key", u =
|
|
4660
|
+
const c = e.getKey ?? "key", u = at(c) ? l[c] : c(l);
|
|
4639
4661
|
return u != null ? String(u) : "";
|
|
4640
4662
|
}, i = (l) => {
|
|
4641
4663
|
if (l == null)
|
|
4642
4664
|
return "";
|
|
4643
|
-
const c = e.getTextValue ?? "textValue", u =
|
|
4665
|
+
const c = e.getTextValue ?? "textValue", u = at(c) ? l[c] : c(l);
|
|
4644
4666
|
return u != null ? String(u) : "";
|
|
4645
4667
|
}, s = (l) => {
|
|
4646
4668
|
if (l == null)
|
|
4647
4669
|
return !1;
|
|
4648
4670
|
const c = e.getDisabled ?? "disabled";
|
|
4649
|
-
return (
|
|
4671
|
+
return (at(c) ? l[c] : c(l)) ?? !1;
|
|
4650
4672
|
}, a = (l) => {
|
|
4651
4673
|
if (l != null)
|
|
4652
|
-
return
|
|
4674
|
+
return at(e.getSectionChildren) ? l[e.getSectionChildren] : e.getSectionChildren?.(l);
|
|
4653
4675
|
};
|
|
4654
4676
|
for (const l of e.dataSource) {
|
|
4655
|
-
if (
|
|
4677
|
+
if (at(l) || mc(l)) {
|
|
4656
4678
|
r.push({
|
|
4657
4679
|
type: "item",
|
|
4658
4680
|
rawValue: l,
|
|
@@ -4676,7 +4698,7 @@ function hr(e) {
|
|
|
4676
4698
|
}), t++;
|
|
4677
4699
|
const c = a(l) ?? [];
|
|
4678
4700
|
if (c.length > 0) {
|
|
4679
|
-
const u =
|
|
4701
|
+
const u = pr({
|
|
4680
4702
|
dataSource: c,
|
|
4681
4703
|
getKey: e.getKey,
|
|
4682
4704
|
getTextValue: e.getTextValue,
|
|
@@ -4708,13 +4730,13 @@ function hr(e) {
|
|
|
4708
4730
|
* https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/collections/src/useCollection.ts
|
|
4709
4731
|
*/
|
|
4710
4732
|
function Kc(e, t = []) {
|
|
4711
|
-
const n =
|
|
4733
|
+
const n = pr({
|
|
4712
4734
|
dataSource: E(e.dataSource),
|
|
4713
4735
|
getKey: E(e.getKey),
|
|
4714
4736
|
getTextValue: E(e.getTextValue),
|
|
4715
4737
|
getDisabled: E(e.getDisabled),
|
|
4716
4738
|
getSectionChildren: E(e.getSectionChildren)
|
|
4717
|
-
}), [r, o] =
|
|
4739
|
+
}), [r, o] = _(e.factory(n));
|
|
4718
4740
|
return M(et([
|
|
4719
4741
|
() => E(e.dataSource),
|
|
4720
4742
|
() => E(e.getKey),
|
|
@@ -4724,7 +4746,7 @@ function Kc(e, t = []) {
|
|
|
4724
4746
|
() => e.factory,
|
|
4725
4747
|
...t
|
|
4726
4748
|
], ([i, s, a, l, c, u]) => {
|
|
4727
|
-
const d =
|
|
4749
|
+
const d = pr({
|
|
4728
4750
|
dataSource: i,
|
|
4729
4751
|
getKey: s,
|
|
4730
4752
|
getTextValue: a,
|
|
@@ -4736,8 +4758,8 @@ function Kc(e, t = []) {
|
|
|
4736
4758
|
defer: !0
|
|
4737
4759
|
})), r;
|
|
4738
4760
|
}
|
|
4739
|
-
function
|
|
4740
|
-
const [t, n] =
|
|
4761
|
+
function Nr(e) {
|
|
4762
|
+
const [t, n] = _(e.defaultValue?.()), r = O(() => e.value?.() !== void 0), o = O(() => r() ? e.value?.() : t());
|
|
4741
4763
|
return [o, (s) => {
|
|
4742
4764
|
W(() => {
|
|
4743
4765
|
const a = ic(s, o());
|
|
@@ -4746,11 +4768,11 @@ function Fr(e) {
|
|
|
4746
4768
|
}];
|
|
4747
4769
|
}
|
|
4748
4770
|
function Bc(e) {
|
|
4749
|
-
const [t, n] =
|
|
4771
|
+
const [t, n] = Nr(e);
|
|
4750
4772
|
return [() => t() ?? !1, n];
|
|
4751
4773
|
}
|
|
4752
4774
|
function zc(e) {
|
|
4753
|
-
const [t, n] =
|
|
4775
|
+
const [t, n] = Nr(e);
|
|
4754
4776
|
return [() => t() ?? [], n];
|
|
4755
4777
|
}
|
|
4756
4778
|
function Wi(e = {}) {
|
|
@@ -4799,8 +4821,8 @@ function Vc(e) {
|
|
|
4799
4821
|
* Credits to the Chakra UI team:
|
|
4800
4822
|
* https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/dismissable/src/layer-stack.ts
|
|
4801
4823
|
*/
|
|
4802
|
-
const
|
|
4803
|
-
let Gi,
|
|
4824
|
+
const En = "data-kb-top-layer";
|
|
4825
|
+
let Gi, mr = !1;
|
|
4804
4826
|
const Ne = [];
|
|
4805
4827
|
function Kt(e) {
|
|
4806
4828
|
return Ne.findIndex((t) => t.node === e);
|
|
@@ -4817,7 +4839,7 @@ function Yi() {
|
|
|
4817
4839
|
function Hc() {
|
|
4818
4840
|
return [...Yi()].slice(-1)[0];
|
|
4819
4841
|
}
|
|
4820
|
-
function
|
|
4842
|
+
function Kr() {
|
|
4821
4843
|
return Yi().length > 0;
|
|
4822
4844
|
}
|
|
4823
4845
|
function Xi(e) {
|
|
@@ -4838,21 +4860,21 @@ function Gc() {
|
|
|
4838
4860
|
e.style.pointerEvents = Xi(e) ? "none" : "auto";
|
|
4839
4861
|
}
|
|
4840
4862
|
function Yc(e) {
|
|
4841
|
-
if (
|
|
4863
|
+
if (Kr() && !mr) {
|
|
4842
4864
|
const t = Fe(e);
|
|
4843
|
-
Gi = document.body.style.pointerEvents, t.body.style.pointerEvents = "none",
|
|
4865
|
+
Gi = document.body.style.pointerEvents, t.body.style.pointerEvents = "none", mr = !0;
|
|
4844
4866
|
}
|
|
4845
4867
|
}
|
|
4846
4868
|
function Xc(e) {
|
|
4847
|
-
if (
|
|
4869
|
+
if (Kr())
|
|
4848
4870
|
return;
|
|
4849
4871
|
const t = Fe(e);
|
|
4850
|
-
t.body.style.pointerEvents = Gi, t.body.style.length === 0 && t.body.removeAttribute("style"),
|
|
4872
|
+
t.body.style.pointerEvents = Gi, t.body.style.length === 0 && t.body.removeAttribute("style"), mr = !1;
|
|
4851
4873
|
}
|
|
4852
4874
|
const ue = {
|
|
4853
4875
|
layers: Ne,
|
|
4854
4876
|
isTopMostLayer: jc,
|
|
4855
|
-
hasPointerBlockingLayer:
|
|
4877
|
+
hasPointerBlockingLayer: Kr,
|
|
4856
4878
|
isBelowPointerBlockingLayer: Xi,
|
|
4857
4879
|
addLayer: qc,
|
|
4858
4880
|
removeLayer: Wc,
|
|
@@ -4876,24 +4898,24 @@ const ue = {
|
|
|
4876
4898
|
* https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/focus-scope/src/focus-on-child-unmount.ts
|
|
4877
4899
|
* https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/focus-scope/src/focus-containment.ts
|
|
4878
4900
|
*/
|
|
4879
|
-
const
|
|
4901
|
+
const Gn = "focusScope.autoFocusOnMount", Yn = "focusScope.autoFocusOnUnmount", Eo = {
|
|
4880
4902
|
bubbles: !1,
|
|
4881
4903
|
cancelable: !0
|
|
4882
|
-
},
|
|
4904
|
+
}, ko = {
|
|
4883
4905
|
/** A stack of focus scopes, with the active one at the top */
|
|
4884
4906
|
stack: [],
|
|
4885
4907
|
active() {
|
|
4886
4908
|
return this.stack[0];
|
|
4887
4909
|
},
|
|
4888
4910
|
add(e) {
|
|
4889
|
-
e !== this.active() && this.active()?.pause(), this.stack =
|
|
4911
|
+
e !== this.active() && this.active()?.pause(), this.stack = hr(this.stack, e), this.stack.unshift(e);
|
|
4890
4912
|
},
|
|
4891
4913
|
remove(e) {
|
|
4892
|
-
this.stack =
|
|
4914
|
+
this.stack = hr(this.stack, e), this.active()?.resume();
|
|
4893
4915
|
}
|
|
4894
4916
|
};
|
|
4895
4917
|
function Jc(e, t) {
|
|
4896
|
-
const [n, r] =
|
|
4918
|
+
const [n, r] = _(!1), o = {
|
|
4897
4919
|
pause() {
|
|
4898
4920
|
r(!0);
|
|
4899
4921
|
},
|
|
@@ -4925,18 +4947,18 @@ function Jc(e, t) {
|
|
|
4925
4947
|
const f = t();
|
|
4926
4948
|
if (!f)
|
|
4927
4949
|
return;
|
|
4928
|
-
|
|
4950
|
+
ko.add(o);
|
|
4929
4951
|
const g = Lt(f);
|
|
4930
4952
|
if (!Ce(f, g)) {
|
|
4931
|
-
const w = new CustomEvent(
|
|
4932
|
-
f.addEventListener(
|
|
4953
|
+
const w = new CustomEvent(Gn, Eo);
|
|
4954
|
+
f.addEventListener(Gn, s), f.dispatchEvent(w), w.defaultPrevented || setTimeout(() => {
|
|
4933
4955
|
se(d()), Lt(f) === g && se(f);
|
|
4934
4956
|
}, 0);
|
|
4935
4957
|
}
|
|
4936
4958
|
B(() => {
|
|
4937
|
-
f.removeEventListener(
|
|
4938
|
-
const w = new CustomEvent(
|
|
4939
|
-
m() && w.preventDefault(), f.addEventListener(
|
|
4959
|
+
f.removeEventListener(Gn, s), setTimeout(() => {
|
|
4960
|
+
const w = new CustomEvent(Yn, Eo);
|
|
4961
|
+
m() && w.preventDefault(), f.addEventListener(Yn, a), f.dispatchEvent(w), w.defaultPrevented || se(g ?? l().body), f.removeEventListener(Yn, a), ko.remove(o);
|
|
4940
4962
|
}, 0);
|
|
4941
4963
|
});
|
|
4942
4964
|
}), M(() => {
|
|
@@ -4945,10 +4967,10 @@ function Jc(e, t) {
|
|
|
4945
4967
|
return;
|
|
4946
4968
|
const g = (w) => {
|
|
4947
4969
|
const b = w.target;
|
|
4948
|
-
b?.closest(`[${
|
|
4970
|
+
b?.closest(`[${En}]`) || (Ce(f, b) ? i = b : se(i));
|
|
4949
4971
|
}, y = (w) => {
|
|
4950
4972
|
const v = w.relatedTarget ?? Lt(f);
|
|
4951
|
-
v?.closest(`[${
|
|
4973
|
+
v?.closest(`[${En}]`) || Ce(f, v) || se(i);
|
|
4952
4974
|
};
|
|
4953
4975
|
l().addEventListener("focusin", g), l().addEventListener("focusout", y), B(() => {
|
|
4954
4976
|
l().removeEventListener("focusin", g), l().removeEventListener("focusout", y);
|
|
@@ -4962,8 +4984,8 @@ function Jc(e, t) {
|
|
|
4962
4984
|
const y = c();
|
|
4963
4985
|
f.insertAdjacentElement("beforeend", y);
|
|
4964
4986
|
function w(v) {
|
|
4965
|
-
const x = d(),
|
|
4966
|
-
v.relatedTarget === x ? se(
|
|
4987
|
+
const x = d(), P = h();
|
|
4988
|
+
v.relatedTarget === x ? se(P) : se(x);
|
|
4967
4989
|
}
|
|
4968
4990
|
g.addEventListener("focusin", w), y.addEventListener("focusin", w);
|
|
4969
4991
|
const b = new MutationObserver((v) => {
|
|
@@ -5001,7 +5023,7 @@ function Qc(e) {
|
|
|
5001
5023
|
const At = /* @__PURE__ */ new WeakMap(), me = [];
|
|
5002
5024
|
function eu(e, t = document.body) {
|
|
5003
5025
|
const n = new Set(e), r = /* @__PURE__ */ new Set(), o = (l) => {
|
|
5004
|
-
for (const h of l.querySelectorAll(`[${Zc}], [${
|
|
5026
|
+
for (const h of l.querySelectorAll(`[${Zc}], [${En}]`))
|
|
5005
5027
|
n.add(h);
|
|
5006
5028
|
const c = (h) => {
|
|
5007
5029
|
if (n.has(h) || h.parentElement && r.has(h.parentElement) && h.parentElement.getAttribute("role") !== "row")
|
|
@@ -5065,12 +5087,12 @@ function eu(e, t = document.body) {
|
|
|
5065
5087
|
* Credits to the Chakra UI team:
|
|
5066
5088
|
* https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/interact-outside/src/index.ts
|
|
5067
5089
|
*/
|
|
5068
|
-
const
|
|
5090
|
+
const Co = "interactOutside.pointerDownOutside", Oo = "interactOutside.focusOutside";
|
|
5069
5091
|
function tu(e, t) {
|
|
5070
5092
|
let n, r = Rc;
|
|
5071
5093
|
const o = () => Fe(t()), i = (d) => e.onPointerDownOutside?.(d), s = (d) => e.onFocusOutside?.(d), a = (d) => e.onInteractOutside?.(d), l = (d) => {
|
|
5072
5094
|
const h = d.target;
|
|
5073
|
-
return !(h instanceof HTMLElement) || h.closest(`[${
|
|
5095
|
+
return !(h instanceof HTMLElement) || h.closest(`[${En}]`) || !Ce(o(), h) || Ce(t(), h) ? !1 : !e.shouldExcludeElement?.(h);
|
|
5074
5096
|
}, c = (d) => {
|
|
5075
5097
|
function h() {
|
|
5076
5098
|
const m = t(), f = d.target;
|
|
@@ -5080,10 +5102,10 @@ function tu(e, t) {
|
|
|
5080
5102
|
i,
|
|
5081
5103
|
a
|
|
5082
5104
|
]);
|
|
5083
|
-
f.addEventListener(
|
|
5105
|
+
f.addEventListener(Co, g, {
|
|
5084
5106
|
once: !0
|
|
5085
5107
|
});
|
|
5086
|
-
const y = new CustomEvent(
|
|
5108
|
+
const y = new CustomEvent(Co, {
|
|
5087
5109
|
bubbles: !1,
|
|
5088
5110
|
cancelable: !0,
|
|
5089
5111
|
detail: {
|
|
@@ -5102,8 +5124,8 @@ function tu(e, t) {
|
|
|
5102
5124
|
s,
|
|
5103
5125
|
a
|
|
5104
5126
|
]);
|
|
5105
|
-
m.addEventListener(
|
|
5106
|
-
const g = new CustomEvent(
|
|
5127
|
+
m.addEventListener(Oo, f, { once: !0 });
|
|
5128
|
+
const g = new CustomEvent(Oo, {
|
|
5107
5129
|
bubbles: !1,
|
|
5108
5130
|
cancelable: !0,
|
|
5109
5131
|
detail: {
|
|
@@ -5130,7 +5152,7 @@ function tu(e, t) {
|
|
|
5130
5152
|
* https://github.com/radix-ui/primitives/blob/21a7c97dc8efa79fecca36428eec49f187294085/packages/react/presence/src/useStateMachine.tsx
|
|
5131
5153
|
*/
|
|
5132
5154
|
function nu(e) {
|
|
5133
|
-
const [t, n] =
|
|
5155
|
+
const [t, n] = _();
|
|
5134
5156
|
let r = {}, o = e(), i = "none";
|
|
5135
5157
|
const [s, a] = ru(e() ? "mounted" : "unmounted", {
|
|
5136
5158
|
mounted: {
|
|
@@ -5177,12 +5199,12 @@ function Qt(e) {
|
|
|
5177
5199
|
return e?.animationName || "none";
|
|
5178
5200
|
}
|
|
5179
5201
|
function ru(e, t) {
|
|
5180
|
-
const n = (s, a) => t[s][a] ?? s, [r, o] =
|
|
5202
|
+
const n = (s, a) => t[s][a] ?? s, [r, o] = _(e);
|
|
5181
5203
|
return [r, (s) => {
|
|
5182
5204
|
o((a) => n(a, s));
|
|
5183
5205
|
}];
|
|
5184
5206
|
}
|
|
5185
|
-
function
|
|
5207
|
+
function kn(e) {
|
|
5186
5208
|
return (t) => (e(t), () => e(void 0));
|
|
5187
5209
|
}
|
|
5188
5210
|
/*!
|
|
@@ -5193,15 +5215,15 @@ function En(e) {
|
|
|
5193
5215
|
* https://github.com/ariakit/ariakit/blob/8a13899ff807bbf39f3d89d2d5964042ba4d5287/packages/ariakit-react-utils/src/hooks.ts
|
|
5194
5216
|
*/
|
|
5195
5217
|
function ou(e, t) {
|
|
5196
|
-
const [n, r] =
|
|
5218
|
+
const [n, r] = _(Po(t?.()));
|
|
5197
5219
|
return M(() => {
|
|
5198
|
-
r(e()?.tagName.toLowerCase() ||
|
|
5220
|
+
r(e()?.tagName.toLowerCase() || Po(t?.()));
|
|
5199
5221
|
}), n;
|
|
5200
5222
|
}
|
|
5201
|
-
function
|
|
5202
|
-
return
|
|
5223
|
+
function Po(e) {
|
|
5224
|
+
return at(e) ? e : void 0;
|
|
5203
5225
|
}
|
|
5204
|
-
function
|
|
5226
|
+
function Rn(e) {
|
|
5205
5227
|
const [t, n] = H(e, ["asChild", "as", "children"]);
|
|
5206
5228
|
if (!t.asChild)
|
|
5207
5229
|
return p(ln, T({
|
|
@@ -5213,15 +5235,15 @@ function Ln(e) {
|
|
|
5213
5235
|
return t.children;
|
|
5214
5236
|
}
|
|
5215
5237
|
}));
|
|
5216
|
-
const r =
|
|
5238
|
+
const r = Mr(() => t.children);
|
|
5217
5239
|
if (_o(r())) {
|
|
5218
|
-
const o =
|
|
5240
|
+
const o = Ao(n, r()?.props ?? {});
|
|
5219
5241
|
return p(ln, o);
|
|
5220
5242
|
}
|
|
5221
5243
|
if (yc(r())) {
|
|
5222
5244
|
const o = r().find(_o);
|
|
5223
5245
|
if (o) {
|
|
5224
|
-
const i = () => p(
|
|
5246
|
+
const i = () => p(ht, {
|
|
5225
5247
|
get each() {
|
|
5226
5248
|
return r();
|
|
5227
5249
|
},
|
|
@@ -5232,7 +5254,7 @@ function Ln(e) {
|
|
|
5232
5254
|
return o.props.children;
|
|
5233
5255
|
}
|
|
5234
5256
|
})
|
|
5235
|
-
}), s =
|
|
5257
|
+
}), s = Ao(n, o?.props ?? {});
|
|
5236
5258
|
return p(ln, T(s, {
|
|
5237
5259
|
children: i
|
|
5238
5260
|
}));
|
|
@@ -5244,7 +5266,7 @@ const iu = Symbol("$$KobalteAsComponent");
|
|
|
5244
5266
|
function _o(e) {
|
|
5245
5267
|
return e?.[iu] === !0;
|
|
5246
5268
|
}
|
|
5247
|
-
function
|
|
5269
|
+
function Ao(e, t) {
|
|
5248
5270
|
return gc([e, t], {
|
|
5249
5271
|
reverseEventHandlers: !0
|
|
5250
5272
|
});
|
|
@@ -5321,18 +5343,18 @@ function Ji() {
|
|
|
5321
5343
|
direction: cu(e)
|
|
5322
5344
|
};
|
|
5323
5345
|
}
|
|
5324
|
-
let
|
|
5346
|
+
let yr = Ji();
|
|
5325
5347
|
const It = /* @__PURE__ */ new Set();
|
|
5326
|
-
function
|
|
5327
|
-
|
|
5348
|
+
function To() {
|
|
5349
|
+
yr = Ji();
|
|
5328
5350
|
for (const e of It)
|
|
5329
|
-
e(
|
|
5351
|
+
e(yr);
|
|
5330
5352
|
}
|
|
5331
5353
|
function uu() {
|
|
5332
|
-
const [e, t] =
|
|
5354
|
+
const [e, t] = _(yr), n = O(() => e());
|
|
5333
5355
|
return Vt(() => {
|
|
5334
|
-
It.size === 0 && window.addEventListener("languagechange",
|
|
5335
|
-
It.delete(t), It.size === 0 && window.removeEventListener("languagechange",
|
|
5356
|
+
It.size === 0 && window.addEventListener("languagechange", To), It.add(t), B(() => {
|
|
5357
|
+
It.delete(t), It.size === 0 && window.removeEventListener("languagechange", To);
|
|
5336
5358
|
});
|
|
5337
5359
|
}), {
|
|
5338
5360
|
locale: () => n().locale,
|
|
@@ -5340,7 +5362,7 @@ function uu() {
|
|
|
5340
5362
|
};
|
|
5341
5363
|
}
|
|
5342
5364
|
const du = le();
|
|
5343
|
-
function
|
|
5365
|
+
function Br() {
|
|
5344
5366
|
const e = uu();
|
|
5345
5367
|
return pe(du) || e;
|
|
5346
5368
|
}
|
|
@@ -5351,13 +5373,13 @@ function Kr() {
|
|
|
5351
5373
|
* Credits to the React Spectrum team:
|
|
5352
5374
|
* https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/i18n/src/useCollator.ts
|
|
5353
5375
|
*/
|
|
5354
|
-
const
|
|
5376
|
+
const Xn = /* @__PURE__ */ new Map();
|
|
5355
5377
|
function fu(e) {
|
|
5356
|
-
const { locale: t } =
|
|
5378
|
+
const { locale: t } = Br(), n = O(() => t() + (e ? Object.entries(e).sort((r, o) => r[0] < o[0] ? -1 : 1).join() : ""));
|
|
5357
5379
|
return O(() => {
|
|
5358
5380
|
const r = n();
|
|
5359
5381
|
let o;
|
|
5360
|
-
return
|
|
5382
|
+
return Xn.has(r) && (o = Xn.get(r)), o || (o = new Intl.Collator(t(), e), Xn.set(r, o)), o;
|
|
5361
5383
|
});
|
|
5362
5384
|
}
|
|
5363
5385
|
/*!
|
|
@@ -5377,7 +5399,7 @@ class Ee extends Set {
|
|
|
5377
5399
|
}
|
|
5378
5400
|
}
|
|
5379
5401
|
function hu(e) {
|
|
5380
|
-
const [t, n] =
|
|
5402
|
+
const [t, n] = Nr(e);
|
|
5381
5403
|
return [() => t() ?? new Ee(), n];
|
|
5382
5404
|
}
|
|
5383
5405
|
/*!
|
|
@@ -5390,10 +5412,10 @@ function hu(e) {
|
|
|
5390
5412
|
function Zi(e) {
|
|
5391
5413
|
return Sc() ? e.altKey : e.ctrlKey;
|
|
5392
5414
|
}
|
|
5393
|
-
function
|
|
5394
|
-
return
|
|
5415
|
+
function lt(e) {
|
|
5416
|
+
return In() ? e.metaKey : e.ctrlKey;
|
|
5395
5417
|
}
|
|
5396
|
-
function
|
|
5418
|
+
function Mo(e) {
|
|
5397
5419
|
return new Ee(e);
|
|
5398
5420
|
}
|
|
5399
5421
|
function gu(e, t) {
|
|
@@ -5415,17 +5437,17 @@ function pu(e) {
|
|
|
5415
5437
|
const t = Te({
|
|
5416
5438
|
selectionMode: "none",
|
|
5417
5439
|
selectionBehavior: "toggle"
|
|
5418
|
-
}, e), [n, r] =
|
|
5440
|
+
}, e), [n, r] = _(!1), [o, i] = _(), s = O(() => {
|
|
5419
5441
|
const g = E(t.selectedKeys);
|
|
5420
|
-
return g != null ?
|
|
5442
|
+
return g != null ? Mo(g) : g;
|
|
5421
5443
|
}), a = O(() => {
|
|
5422
5444
|
const g = E(t.defaultSelectedKeys);
|
|
5423
|
-
return g != null ?
|
|
5445
|
+
return g != null ? Mo(g) : new Ee();
|
|
5424
5446
|
}), [l, c] = hu({
|
|
5425
5447
|
value: s,
|
|
5426
5448
|
defaultValue: a,
|
|
5427
5449
|
onChange: (g) => t.onSelectionChange?.(g)
|
|
5428
|
-
}), [u, d] =
|
|
5450
|
+
}), [u, d] = _(E(t.selectionBehavior)), h = () => E(t.selectionMode), m = () => E(t.disallowEmptySelection) ?? !1, f = (g) => {
|
|
5429
5451
|
(E(t.allowDuplicateSelectionEvents) || !gu(g, l())) && c(g);
|
|
5430
5452
|
};
|
|
5431
5453
|
return M(() => {
|
|
@@ -5454,7 +5476,7 @@ function pu(e) {
|
|
|
5454
5476
|
* https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useTypeSelect.ts
|
|
5455
5477
|
*/
|
|
5456
5478
|
function mu(e) {
|
|
5457
|
-
const [t, n] =
|
|
5479
|
+
const [t, n] = _(""), [r, o] = _(-1);
|
|
5458
5480
|
return {
|
|
5459
5481
|
typeSelectHandlers: {
|
|
5460
5482
|
onKeyDown: (s) => {
|
|
@@ -5489,7 +5511,7 @@ function bu(e) {
|
|
|
5489
5511
|
function wu(e, t, n) {
|
|
5490
5512
|
const o = T({
|
|
5491
5513
|
selectOnFocus: () => E(e.selectionManager).selectionBehavior() === "replace"
|
|
5492
|
-
}, e), i = () => n?.() ?? t(), { direction: s } =
|
|
5514
|
+
}, e), i = () => n?.() ?? t(), { direction: s } = Br();
|
|
5493
5515
|
let a = { top: 0, left: 0 };
|
|
5494
5516
|
lc(() => E(o.isVirtualized) ? void 0 : i(), "scroll", () => {
|
|
5495
5517
|
const g = i();
|
|
@@ -5509,13 +5531,13 @@ function wu(e, t, n) {
|
|
|
5509
5531
|
return;
|
|
5510
5532
|
const w = E(o.selectionManager), b = E(o.selectOnFocus), v = (k) => {
|
|
5511
5533
|
k != null && (w.setFocusedKey(k), g.shiftKey && w.selectionMode() === "multiple" ? w.extendSelection(k) : b && !Zi(g) && w.replaceSelection(k));
|
|
5512
|
-
}, x = E(o.keyboardDelegate),
|
|
5534
|
+
}, x = E(o.keyboardDelegate), P = E(o.shouldFocusWrap), S = w.focusedKey();
|
|
5513
5535
|
switch (g.key) {
|
|
5514
5536
|
case "ArrowDown": {
|
|
5515
5537
|
if (x.getKeyBelow) {
|
|
5516
5538
|
g.preventDefault();
|
|
5517
5539
|
let k;
|
|
5518
|
-
S != null ? k = x.getKeyBelow(S) : k = x.getFirstKey?.(), k == null &&
|
|
5540
|
+
S != null ? k = x.getKeyBelow(S) : k = x.getFirstKey?.(), k == null && P && (k = x.getFirstKey?.(S)), v(k);
|
|
5519
5541
|
}
|
|
5520
5542
|
break;
|
|
5521
5543
|
}
|
|
@@ -5523,7 +5545,7 @@ function wu(e, t, n) {
|
|
|
5523
5545
|
if (x.getKeyAbove) {
|
|
5524
5546
|
g.preventDefault();
|
|
5525
5547
|
let k;
|
|
5526
|
-
S != null ? k = x.getKeyAbove(S) : k = x.getLastKey?.(), k == null &&
|
|
5548
|
+
S != null ? k = x.getKeyAbove(S) : k = x.getLastKey?.(), k == null && P && (k = x.getLastKey?.(S)), v(k);
|
|
5527
5549
|
}
|
|
5528
5550
|
break;
|
|
5529
5551
|
}
|
|
@@ -5548,15 +5570,15 @@ function wu(e, t, n) {
|
|
|
5548
5570
|
case "Home":
|
|
5549
5571
|
if (x.getFirstKey) {
|
|
5550
5572
|
g.preventDefault();
|
|
5551
|
-
const k = x.getFirstKey(S,
|
|
5552
|
-
k != null && (w.setFocusedKey(k),
|
|
5573
|
+
const k = x.getFirstKey(S, lt(g));
|
|
5574
|
+
k != null && (w.setFocusedKey(k), lt(g) && g.shiftKey && w.selectionMode() === "multiple" ? w.extendSelection(k) : b && w.replaceSelection(k));
|
|
5553
5575
|
}
|
|
5554
5576
|
break;
|
|
5555
5577
|
case "End":
|
|
5556
5578
|
if (x.getLastKey) {
|
|
5557
5579
|
g.preventDefault();
|
|
5558
|
-
const k = x.getLastKey(S,
|
|
5559
|
-
k != null && (w.setFocusedKey(k),
|
|
5580
|
+
const k = x.getLastKey(S, lt(g));
|
|
5581
|
+
k != null && (w.setFocusedKey(k), lt(g) && g.shiftKey && w.selectionMode() === "multiple" ? w.extendSelection(k) : b && w.replaceSelection(k));
|
|
5560
5582
|
}
|
|
5561
5583
|
break;
|
|
5562
5584
|
case "PageDown":
|
|
@@ -5574,7 +5596,7 @@ function wu(e, t, n) {
|
|
|
5574
5596
|
}
|
|
5575
5597
|
break;
|
|
5576
5598
|
case "a":
|
|
5577
|
-
|
|
5599
|
+
lt(g) && w.selectionMode() === "multiple" && E(o.disallowSelectAll) !== !0 && (g.preventDefault(), w.selectAll());
|
|
5578
5600
|
break;
|
|
5579
5601
|
case "Escape":
|
|
5580
5602
|
g.defaultPrevented || (g.preventDefault(), E(o.disallowEmptySelection) || w.clearSelection());
|
|
@@ -5602,8 +5624,8 @@ function wu(e, t, n) {
|
|
|
5602
5624
|
}
|
|
5603
5625
|
if (g.currentTarget.contains(g.target)) {
|
|
5604
5626
|
if (y.setFocused(!0), y.focusedKey() == null) {
|
|
5605
|
-
const v = (
|
|
5606
|
-
|
|
5627
|
+
const v = (P) => {
|
|
5628
|
+
P != null && (y.setFocusedKey(P), b && y.replaceSelection(P));
|
|
5607
5629
|
}, x = g.relatedTarget;
|
|
5608
5630
|
x && g.currentTarget.compareDocumentPosition(x) & Node.DOCUMENT_POSITION_FOLLOWING ? v(y.lastSelectedKey() ?? w.getLastKey?.()) : v(y.firstSelectedKey() ?? w.getFirstKey?.());
|
|
5609
5631
|
} else if (!E(o.isVirtualized)) {
|
|
@@ -5611,7 +5633,7 @@ function wu(e, t, n) {
|
|
|
5611
5633
|
if (v) {
|
|
5612
5634
|
v.scrollTop = a.top, v.scrollLeft = a.left;
|
|
5613
5635
|
const x = v.querySelector(`[data-key="${y.focusedKey()}"]`);
|
|
5614
|
-
x && (se(x),
|
|
5636
|
+
x && (se(x), gr(v, x));
|
|
5615
5637
|
}
|
|
5616
5638
|
}
|
|
5617
5639
|
}
|
|
@@ -5644,7 +5666,7 @@ function wu(e, t, n) {
|
|
|
5644
5666
|
b && o.scrollToKey?.(b);
|
|
5645
5667
|
else if (b && y) {
|
|
5646
5668
|
const v = y.querySelector(`[data-key="${b}"]`);
|
|
5647
|
-
v &&
|
|
5669
|
+
v && gr(y, v);
|
|
5648
5670
|
}
|
|
5649
5671
|
})), {
|
|
5650
5672
|
tabIndex: O(() => {
|
|
@@ -5666,7 +5688,7 @@ function wu(e, t, n) {
|
|
|
5666
5688
|
*/
|
|
5667
5689
|
function vu(e, t) {
|
|
5668
5690
|
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" ||
|
|
5691
|
+
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
5692
|
}, s = () => n().isSelected(r()), a = () => E(e.disabled) || n().isDisabled(r()), l = () => !a() && n().canSelectItem(r());
|
|
5671
5693
|
let c = null;
|
|
5672
5694
|
const u = (b) => {
|
|
@@ -5692,8 +5714,8 @@ function vu(e, t) {
|
|
|
5692
5714
|
o,
|
|
5693
5715
|
() => n().focusedKey(),
|
|
5694
5716
|
() => n().isFocused()
|
|
5695
|
-
], ([b, v, x,
|
|
5696
|
-
b && v ===
|
|
5717
|
+
], ([b, v, x, P, S]) => {
|
|
5718
|
+
b && v === P && S && !x && document.activeElement !== b && (e.focus ? e.focus() : se(b));
|
|
5697
5719
|
})), {
|
|
5698
5720
|
isSelected: s,
|
|
5699
5721
|
isDisabled: a,
|
|
@@ -5931,7 +5953,7 @@ class xu {
|
|
|
5931
5953
|
* Credits to the React Spectrum team:
|
|
5932
5954
|
* https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/list/src/ListCollection.ts
|
|
5933
5955
|
*/
|
|
5934
|
-
class
|
|
5956
|
+
class Do {
|
|
5935
5957
|
keyMap = /* @__PURE__ */ new Map();
|
|
5936
5958
|
iterable;
|
|
5937
5959
|
firstKey;
|
|
@@ -5990,9 +6012,9 @@ function Su(e) {
|
|
|
5990
6012
|
getTextValue: () => E(e.getTextValue),
|
|
5991
6013
|
getDisabled: () => E(e.getDisabled),
|
|
5992
6014
|
getSectionChildren: () => E(e.getSectionChildren),
|
|
5993
|
-
factory: (i) => e.filter ? new
|
|
6015
|
+
factory: (i) => e.filter ? new Do(e.filter(i)) : new Do(i)
|
|
5994
6016
|
}, [() => e.filter]), o = new xu(r, t);
|
|
5995
|
-
return
|
|
6017
|
+
return ir(() => {
|
|
5996
6018
|
const i = t.focusedKey();
|
|
5997
6019
|
i != null && !r().getItem(i) && t.setFocusedKey(void 0);
|
|
5998
6020
|
}), {
|
|
@@ -6139,7 +6161,7 @@ function Ou(e) {
|
|
|
6139
6161
|
const t = e.tagName.toLowerCase();
|
|
6140
6162
|
return t === "button" ? !0 : t === "input" && e.type ? Cu.indexOf(e.type) !== -1 : !1;
|
|
6141
6163
|
}
|
|
6142
|
-
function
|
|
6164
|
+
function Pu(e) {
|
|
6143
6165
|
let t;
|
|
6144
6166
|
const n = Te({
|
|
6145
6167
|
type: "button"
|
|
@@ -6150,10 +6172,10 @@ function _u(e) {
|
|
|
6150
6172
|
type: r.type
|
|
6151
6173
|
});
|
|
6152
6174
|
}), a = O(() => i() === "input"), l = O(() => i() === "a" && t?.getAttribute("href") != null);
|
|
6153
|
-
return p(
|
|
6175
|
+
return p(Rn, T({
|
|
6154
6176
|
as: "button",
|
|
6155
6177
|
ref(c) {
|
|
6156
|
-
var u =
|
|
6178
|
+
var u = rt((d) => t = d, r.ref);
|
|
6157
6179
|
typeof u == "function" && u(c);
|
|
6158
6180
|
},
|
|
6159
6181
|
get type() {
|
|
@@ -6180,7 +6202,7 @@ const Qi = le();
|
|
|
6180
6202
|
function es() {
|
|
6181
6203
|
return pe(Qi);
|
|
6182
6204
|
}
|
|
6183
|
-
function
|
|
6205
|
+
function _u() {
|
|
6184
6206
|
const e = es();
|
|
6185
6207
|
if (e === void 0)
|
|
6186
6208
|
throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");
|
|
@@ -6290,7 +6312,7 @@ function Iu(e = {}) {
|
|
|
6290
6312
|
}) };
|
|
6291
6313
|
}
|
|
6292
6314
|
function Ru(e) {
|
|
6293
|
-
const t =
|
|
6315
|
+
const t = _u(), n = Te({ shouldRegisterItem: !0 }, e);
|
|
6294
6316
|
M(() => {
|
|
6295
6317
|
if (!n.shouldRegisterItem)
|
|
6296
6318
|
return;
|
|
@@ -6298,7 +6320,7 @@ function Ru(e) {
|
|
|
6298
6320
|
B(r);
|
|
6299
6321
|
});
|
|
6300
6322
|
}
|
|
6301
|
-
var V = (e) => typeof e == "function" ? e() : e,
|
|
6323
|
+
var V = (e) => typeof e == "function" ? e() : e, Lo = (e) => requestAnimationFrame(() => requestAnimationFrame(e)), en = /* @__PURE__ */ new Map(), $u = (e) => {
|
|
6302
6324
|
M(() => {
|
|
6303
6325
|
const t = V(e.style) ?? {}, n = V(e.properties) ?? [], r = {};
|
|
6304
6326
|
for (const i in t)
|
|
@@ -6327,7 +6349,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6327
6349
|
}
|
|
6328
6350
|
});
|
|
6329
6351
|
});
|
|
6330
|
-
},
|
|
6352
|
+
}, br = $u, Fu = (e, t) => {
|
|
6331
6353
|
switch (t) {
|
|
6332
6354
|
case "x":
|
|
6333
6355
|
return [e.clientWidth, e.scrollLeft, e.scrollWidth];
|
|
@@ -6349,7 +6371,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6349
6371
|
(c !== 0 || d !== 0) && Nu(o, t) && (i += d, s += c), o === (n ?? document.documentElement) ? a = !0 : o = o.parentElement;
|
|
6350
6372
|
} while (o && !a);
|
|
6351
6373
|
return [i, s];
|
|
6352
|
-
}, [
|
|
6374
|
+
}, [Io, Ro] = _([]), Ku = (e) => Io().indexOf(e) === Io().length - 1, Bu = (e) => {
|
|
6353
6375
|
const t = T(
|
|
6354
6376
|
{
|
|
6355
6377
|
element: null,
|
|
@@ -6363,8 +6385,8 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6363
6385
|
), n = Oe();
|
|
6364
6386
|
let r = [0, 0], o = null, i = null;
|
|
6365
6387
|
M(() => {
|
|
6366
|
-
V(t.enabled) && (
|
|
6367
|
-
|
|
6388
|
+
V(t.enabled) && (Ro((c) => [...c, n]), B(() => {
|
|
6389
|
+
Ro(
|
|
6368
6390
|
(c) => c.filter((u) => u !== n)
|
|
6369
6391
|
);
|
|
6370
6392
|
}));
|
|
@@ -6372,7 +6394,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6372
6394
|
if (!V(t.enabled) || !V(t.hideScrollbar))
|
|
6373
6395
|
return;
|
|
6374
6396
|
const { body: c } = document, u = window.innerWidth - c.offsetWidth;
|
|
6375
|
-
if (
|
|
6397
|
+
if (br({
|
|
6376
6398
|
key: "prevent-scroll-overflow",
|
|
6377
6399
|
element: c,
|
|
6378
6400
|
style: {
|
|
@@ -6385,7 +6407,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6385
6407
|
value: `${u}px`
|
|
6386
6408
|
}));
|
|
6387
6409
|
const m = window.scrollY, f = window.scrollX;
|
|
6388
|
-
|
|
6410
|
+
br({
|
|
6389
6411
|
key: "prevent-scroll-scrollbar",
|
|
6390
6412
|
element: c,
|
|
6391
6413
|
style: d,
|
|
@@ -6407,9 +6429,9 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6407
6429
|
}));
|
|
6408
6430
|
});
|
|
6409
6431
|
const s = (c) => {
|
|
6410
|
-
r =
|
|
6432
|
+
r = $o(c), o = null, i = null;
|
|
6411
6433
|
}, 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 =
|
|
6434
|
+
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
6435
|
let y;
|
|
6414
6436
|
d && d.contains(u) ? y = !g : y = g, y && c.cancelable && c.preventDefault();
|
|
6415
6437
|
}, l = (c) => {
|
|
@@ -6419,7 +6441,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6419
6441
|
h = !V(t.allowPinchZoom);
|
|
6420
6442
|
else {
|
|
6421
6443
|
if (o == null || i === null) {
|
|
6422
|
-
const m =
|
|
6444
|
+
const m = $o(c).map(
|
|
6423
6445
|
(g, y) => r[y] - g
|
|
6424
6446
|
), f = Math.abs(m[0]) > Math.abs(m[1]) ? "x" : "y";
|
|
6425
6447
|
o = f, i = f === "x" ? m[0] : m[1];
|
|
@@ -6427,7 +6449,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6427
6449
|
if (d.type === "range")
|
|
6428
6450
|
h = !1;
|
|
6429
6451
|
else {
|
|
6430
|
-
const m =
|
|
6452
|
+
const m = Fo(
|
|
6431
6453
|
d,
|
|
6432
6454
|
o,
|
|
6433
6455
|
i,
|
|
@@ -6441,7 +6463,7 @@ var V = (e) => typeof e == "function" ? e() : e, Do = (e) => requestAnimationFra
|
|
|
6441
6463
|
}, zu = (e) => [
|
|
6442
6464
|
e.deltaX,
|
|
6443
6465
|
e.deltaY
|
|
6444
|
-
],
|
|
6466
|
+
], $o = (e) => e.changedTouches[0] ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0], Fo = (e, t, n, r) => {
|
|
6445
6467
|
const o = r && r.contains(e), [i, s] = rs(
|
|
6446
6468
|
e,
|
|
6447
6469
|
t,
|
|
@@ -6503,10 +6525,10 @@ function ju(e) {
|
|
|
6503
6525
|
return p(is.Provider, {
|
|
6504
6526
|
value: u,
|
|
6505
6527
|
get children() {
|
|
6506
|
-
return p(
|
|
6528
|
+
return p(Rn, T({
|
|
6507
6529
|
as: "div",
|
|
6508
6530
|
ref(d) {
|
|
6509
|
-
var h =
|
|
6531
|
+
var h = rt((m) => t = m, r.ref);
|
|
6510
6532
|
typeof h == "function" && h(d);
|
|
6511
6533
|
}
|
|
6512
6534
|
}, o));
|
|
@@ -6522,10 +6544,10 @@ function Hu() {
|
|
|
6522
6544
|
}
|
|
6523
6545
|
function qu(e) {
|
|
6524
6546
|
const t = Hu(), [n, r] = H(e, ["ref", "style"]);
|
|
6525
|
-
return p(
|
|
6547
|
+
return p(Rn, T({
|
|
6526
6548
|
as: "div",
|
|
6527
6549
|
ref(o) {
|
|
6528
|
-
var i =
|
|
6550
|
+
var i = rt(t.setPositionerRef, n.ref);
|
|
6529
6551
|
typeof i == "function" && i(o);
|
|
6530
6552
|
},
|
|
6531
6553
|
"data-popper-positioner": "",
|
|
@@ -6540,7 +6562,7 @@ function qu(e) {
|
|
|
6540
6562
|
}
|
|
6541
6563
|
}, r));
|
|
6542
6564
|
}
|
|
6543
|
-
const Wu = ["top", "right", "bottom", "left"], He = Math.min, fe = Math.max,
|
|
6565
|
+
const Wu = ["top", "right", "bottom", "left"], He = Math.min, fe = Math.max, Cn = Math.round, tn = Math.floor, qe = (e) => ({
|
|
6544
6566
|
x: e,
|
|
6545
6567
|
y: e
|
|
6546
6568
|
}), Gu = {
|
|
@@ -6552,10 +6574,10 @@ const Wu = ["top", "right", "bottom", "left"], He = Math.min, fe = Math.max, kn
|
|
|
6552
6574
|
start: "end",
|
|
6553
6575
|
end: "start"
|
|
6554
6576
|
};
|
|
6555
|
-
function
|
|
6577
|
+
function wr(e, t, n) {
|
|
6556
6578
|
return fe(e, He(t, n));
|
|
6557
6579
|
}
|
|
6558
|
-
function
|
|
6580
|
+
function ot(e, t) {
|
|
6559
6581
|
return typeof e == "function" ? e(t) : e;
|
|
6560
6582
|
}
|
|
6561
6583
|
function We(e) {
|
|
@@ -6567,26 +6589,26 @@ function vt(e) {
|
|
|
6567
6589
|
function as(e) {
|
|
6568
6590
|
return e === "x" ? "y" : "x";
|
|
6569
6591
|
}
|
|
6570
|
-
function
|
|
6592
|
+
function zr(e) {
|
|
6571
6593
|
return e === "y" ? "height" : "width";
|
|
6572
6594
|
}
|
|
6573
6595
|
function Ut(e) {
|
|
6574
6596
|
return ["top", "bottom"].includes(We(e)) ? "y" : "x";
|
|
6575
6597
|
}
|
|
6576
|
-
function
|
|
6598
|
+
function Vr(e) {
|
|
6577
6599
|
return as(Ut(e));
|
|
6578
6600
|
}
|
|
6579
6601
|
function Xu(e, t, n) {
|
|
6580
6602
|
n === void 0 && (n = !1);
|
|
6581
|
-
const r = vt(e), o =
|
|
6603
|
+
const r = vt(e), o = Vr(e), i = zr(o);
|
|
6582
6604
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
6583
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
6605
|
+
return t.reference[i] > t.floating[i] && (s = On(s)), [s, On(s)];
|
|
6584
6606
|
}
|
|
6585
6607
|
function Ju(e) {
|
|
6586
|
-
const t =
|
|
6587
|
-
return [
|
|
6608
|
+
const t = On(e);
|
|
6609
|
+
return [vr(e), t, vr(t)];
|
|
6588
6610
|
}
|
|
6589
|
-
function
|
|
6611
|
+
function vr(e) {
|
|
6590
6612
|
return e.replace(/start|end/g, (t) => Yu[t]);
|
|
6591
6613
|
}
|
|
6592
6614
|
function Zu(e, t, n) {
|
|
@@ -6605,9 +6627,9 @@ function Zu(e, t, n) {
|
|
|
6605
6627
|
function Qu(e, t, n, r) {
|
|
6606
6628
|
const o = vt(e);
|
|
6607
6629
|
let i = Zu(We(e), n === "start", r);
|
|
6608
|
-
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(
|
|
6630
|
+
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(vr)))), i;
|
|
6609
6631
|
}
|
|
6610
|
-
function
|
|
6632
|
+
function On(e) {
|
|
6611
6633
|
return e.replace(/left|right|bottom|top/g, (t) => Gu[t]);
|
|
6612
6634
|
}
|
|
6613
6635
|
function ed(e) {
|
|
@@ -6627,7 +6649,7 @@ function ls(e) {
|
|
|
6627
6649
|
left: e
|
|
6628
6650
|
};
|
|
6629
6651
|
}
|
|
6630
|
-
function
|
|
6652
|
+
function Pn(e) {
|
|
6631
6653
|
return {
|
|
6632
6654
|
...e,
|
|
6633
6655
|
top: e.y,
|
|
@@ -6636,12 +6658,12 @@ function On(e) {
|
|
|
6636
6658
|
bottom: e.y + e.height
|
|
6637
6659
|
};
|
|
6638
6660
|
}
|
|
6639
|
-
function
|
|
6661
|
+
function No(e, t, n) {
|
|
6640
6662
|
let {
|
|
6641
6663
|
reference: r,
|
|
6642
6664
|
floating: o
|
|
6643
6665
|
} = e;
|
|
6644
|
-
const i = Ut(t), s =
|
|
6666
|
+
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
6667
|
let m;
|
|
6646
6668
|
switch (l) {
|
|
6647
6669
|
case "top":
|
|
@@ -6698,7 +6720,7 @@ const td = async (e, t, n) => {
|
|
|
6698
6720
|
}), {
|
|
6699
6721
|
x: u,
|
|
6700
6722
|
y: d
|
|
6701
|
-
} =
|
|
6723
|
+
} = No(c, r, l), h = r, m = {}, f = 0;
|
|
6702
6724
|
for (let g = 0; g < a.length; g++) {
|
|
6703
6725
|
const {
|
|
6704
6726
|
name: y,
|
|
@@ -6707,7 +6729,7 @@ const td = async (e, t, n) => {
|
|
|
6707
6729
|
x: b,
|
|
6708
6730
|
y: v,
|
|
6709
6731
|
data: x,
|
|
6710
|
-
reset:
|
|
6732
|
+
reset: P
|
|
6711
6733
|
} = await w({
|
|
6712
6734
|
x: u,
|
|
6713
6735
|
y: d,
|
|
@@ -6728,14 +6750,14 @@ const td = async (e, t, n) => {
|
|
|
6728
6750
|
...m[y],
|
|
6729
6751
|
...x
|
|
6730
6752
|
}
|
|
6731
|
-
},
|
|
6753
|
+
}, P && f <= 50 && (f++, typeof P == "object" && (P.placement && (h = P.placement), P.rects && (c = P.rects === !0 ? await s.getElementRects({
|
|
6732
6754
|
reference: e,
|
|
6733
6755
|
floating: t,
|
|
6734
6756
|
strategy: o
|
|
6735
|
-
}) :
|
|
6757
|
+
}) : P.rects), {
|
|
6736
6758
|
x: u,
|
|
6737
6759
|
y: d
|
|
6738
|
-
} =
|
|
6760
|
+
} = No(c, h, l)), g = -1);
|
|
6739
6761
|
}
|
|
6740
6762
|
return {
|
|
6741
6763
|
x: u,
|
|
@@ -6761,7 +6783,7 @@ async function Bt(e, t) {
|
|
|
6761
6783
|
elementContext: d = "floating",
|
|
6762
6784
|
altBoundary: h = !1,
|
|
6763
6785
|
padding: m = 0
|
|
6764
|
-
} =
|
|
6786
|
+
} = ot(t, e), f = ls(m), y = a[h ? d === "floating" ? "reference" : "floating" : d], w = Pn(await i.getClippingRect({
|
|
6765
6787
|
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
6788
|
boundary: c,
|
|
6767
6789
|
rootBoundary: u,
|
|
@@ -6776,17 +6798,17 @@ async function Bt(e, t) {
|
|
|
6776
6798
|
} : {
|
|
6777
6799
|
x: 1,
|
|
6778
6800
|
y: 1
|
|
6779
|
-
},
|
|
6801
|
+
}, P = Pn(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
6780
6802
|
elements: a,
|
|
6781
6803
|
rect: b,
|
|
6782
6804
|
offsetParent: v,
|
|
6783
6805
|
strategy: l
|
|
6784
6806
|
}) : b);
|
|
6785
6807
|
return {
|
|
6786
|
-
top: (w.top -
|
|
6787
|
-
bottom: (
|
|
6788
|
-
left: (w.left -
|
|
6789
|
-
right: (
|
|
6808
|
+
top: (w.top - P.top + f.top) / x.y,
|
|
6809
|
+
bottom: (P.bottom - w.bottom + f.bottom) / x.y,
|
|
6810
|
+
left: (w.left - P.left + f.left) / x.x,
|
|
6811
|
+
right: (P.right - w.right + f.right) / x.x
|
|
6790
6812
|
};
|
|
6791
6813
|
}
|
|
6792
6814
|
const nd = (e) => ({
|
|
@@ -6804,16 +6826,16 @@ const nd = (e) => ({
|
|
|
6804
6826
|
} = t, {
|
|
6805
6827
|
element: c,
|
|
6806
6828
|
padding: u = 0
|
|
6807
|
-
} =
|
|
6829
|
+
} = ot(e, t) || {};
|
|
6808
6830
|
if (c == null)
|
|
6809
6831
|
return {};
|
|
6810
6832
|
const d = ls(u), h = {
|
|
6811
6833
|
x: n,
|
|
6812
6834
|
y: r
|
|
6813
|
-
}, m =
|
|
6835
|
+
}, 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
6836
|
let k = S ? S[v] : 0;
|
|
6815
6837
|
(!k || !await (s.isElement == null ? void 0 : s.isElement(S))) && (k = a.floating[v] || i.floating[f]);
|
|
6816
|
-
const R = x / 2 -
|
|
6838
|
+
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
6839
|
return {
|
|
6818
6840
|
[m]: h[m] + U,
|
|
6819
6841
|
data: {
|
|
@@ -6847,12 +6869,12 @@ const nd = (e) => ({
|
|
|
6847
6869
|
fallbackAxisSideDirection: f = "none",
|
|
6848
6870
|
flipAlignment: g = !0,
|
|
6849
6871
|
...y
|
|
6850
|
-
} =
|
|
6872
|
+
} = ot(e, t);
|
|
6851
6873
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
6852
6874
|
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 ? [
|
|
6875
|
+
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
6876
|
!h && f !== "none" && x.push(...Qu(a, g, f, v));
|
|
6855
|
-
const
|
|
6877
|
+
const P = [a, ...x], S = await Bt(t, y), k = [];
|
|
6856
6878
|
let R = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
6857
6879
|
if (u && k.push(S[w]), d) {
|
|
6858
6880
|
const D = Xu(o, s, v);
|
|
@@ -6863,7 +6885,7 @@ const nd = (e) => ({
|
|
|
6863
6885
|
overflows: k
|
|
6864
6886
|
}], !k.every((D) => D <= 0)) {
|
|
6865
6887
|
var C, K;
|
|
6866
|
-
const D = (((C = i.flip) == null ? void 0 : C.index) || 0) + 1, ne =
|
|
6888
|
+
const D = (((C = i.flip) == null ? void 0 : C.index) || 0) + 1, ne = P[D];
|
|
6867
6889
|
if (ne)
|
|
6868
6890
|
return {
|
|
6869
6891
|
data: {
|
|
@@ -6898,7 +6920,7 @@ const nd = (e) => ({
|
|
|
6898
6920
|
}
|
|
6899
6921
|
};
|
|
6900
6922
|
};
|
|
6901
|
-
function
|
|
6923
|
+
function Ko(e, t) {
|
|
6902
6924
|
return {
|
|
6903
6925
|
top: e.top - t.height,
|
|
6904
6926
|
right: e.right - t.width,
|
|
@@ -6906,7 +6928,7 @@ function No(e, t) {
|
|
|
6906
6928
|
left: e.left - t.width
|
|
6907
6929
|
};
|
|
6908
6930
|
}
|
|
6909
|
-
function
|
|
6931
|
+
function Bo(e) {
|
|
6910
6932
|
return Wu.some((t) => e[t] >= 0);
|
|
6911
6933
|
}
|
|
6912
6934
|
const od = function(e) {
|
|
@@ -6919,17 +6941,17 @@ const od = function(e) {
|
|
|
6919
6941
|
} = t, {
|
|
6920
6942
|
strategy: r = "referenceHidden",
|
|
6921
6943
|
...o
|
|
6922
|
-
} =
|
|
6944
|
+
} = ot(e, t);
|
|
6923
6945
|
switch (r) {
|
|
6924
6946
|
case "referenceHidden": {
|
|
6925
6947
|
const i = await Bt(t, {
|
|
6926
6948
|
...o,
|
|
6927
6949
|
elementContext: "reference"
|
|
6928
|
-
}), s =
|
|
6950
|
+
}), s = Ko(i, n.reference);
|
|
6929
6951
|
return {
|
|
6930
6952
|
data: {
|
|
6931
6953
|
referenceHiddenOffsets: s,
|
|
6932
|
-
referenceHidden:
|
|
6954
|
+
referenceHidden: Bo(s)
|
|
6933
6955
|
}
|
|
6934
6956
|
};
|
|
6935
6957
|
}
|
|
@@ -6937,11 +6959,11 @@ const od = function(e) {
|
|
|
6937
6959
|
const i = await Bt(t, {
|
|
6938
6960
|
...o,
|
|
6939
6961
|
altBoundary: !0
|
|
6940
|
-
}), s =
|
|
6962
|
+
}), s = Ko(i, n.floating);
|
|
6941
6963
|
return {
|
|
6942
6964
|
data: {
|
|
6943
6965
|
escapedOffsets: s,
|
|
6944
|
-
escaped:
|
|
6966
|
+
escaped: Bo(s)
|
|
6945
6967
|
}
|
|
6946
6968
|
};
|
|
6947
6969
|
}
|
|
@@ -6956,7 +6978,7 @@ async function id(e, t) {
|
|
|
6956
6978
|
placement: n,
|
|
6957
6979
|
platform: r,
|
|
6958
6980
|
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 =
|
|
6981
|
+
} = 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
6982
|
let {
|
|
6961
6983
|
mainAxis: h,
|
|
6962
6984
|
crossAxis: m,
|
|
@@ -7026,18 +7048,18 @@ const sd = function(e) {
|
|
|
7026
7048
|
}
|
|
7027
7049
|
},
|
|
7028
7050
|
...l
|
|
7029
|
-
} =
|
|
7051
|
+
} = ot(e, t), c = {
|
|
7030
7052
|
x: n,
|
|
7031
7053
|
y: r
|
|
7032
7054
|
}, u = await Bt(t, l), d = Ut(We(o)), h = as(d);
|
|
7033
7055
|
let m = c[h], f = c[d];
|
|
7034
7056
|
if (i) {
|
|
7035
7057
|
const y = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", b = m + u[y], v = m - u[w];
|
|
7036
|
-
m =
|
|
7058
|
+
m = wr(b, m, v);
|
|
7037
7059
|
}
|
|
7038
7060
|
if (s) {
|
|
7039
7061
|
const y = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", b = f + u[y], v = f - u[w];
|
|
7040
|
-
f =
|
|
7062
|
+
f = wr(b, f, v);
|
|
7041
7063
|
}
|
|
7042
7064
|
const g = a.fn({
|
|
7043
7065
|
...t,
|
|
@@ -7067,7 +7089,7 @@ const sd = function(e) {
|
|
|
7067
7089
|
apply: s = () => {
|
|
7068
7090
|
},
|
|
7069
7091
|
...a
|
|
7070
|
-
} =
|
|
7092
|
+
} = ot(e, t), l = await Bt(t, a), c = We(n), u = vt(n), d = Ut(n) === "y", {
|
|
7071
7093
|
width: h,
|
|
7072
7094
|
height: m
|
|
7073
7095
|
} = r.floating;
|
|
@@ -7091,8 +7113,8 @@ const sd = function(e) {
|
|
|
7091
7113
|
availableWidth: x,
|
|
7092
7114
|
availableHeight: v
|
|
7093
7115
|
});
|
|
7094
|
-
const
|
|
7095
|
-
return h !==
|
|
7116
|
+
const P = await o.getDimensions(i.floating);
|
|
7117
|
+
return h !== P.width || m !== P.height ? {
|
|
7096
7118
|
reset: {
|
|
7097
7119
|
rects: !0
|
|
7098
7120
|
}
|
|
@@ -7117,10 +7139,10 @@ function cs(e) {
|
|
|
7117
7139
|
function Ke(e) {
|
|
7118
7140
|
return e instanceof Element || e instanceof ge(e).Element;
|
|
7119
7141
|
}
|
|
7120
|
-
function
|
|
7142
|
+
function _e(e) {
|
|
7121
7143
|
return e instanceof HTMLElement || e instanceof ge(e).HTMLElement;
|
|
7122
7144
|
}
|
|
7123
|
-
function
|
|
7145
|
+
function zo(e) {
|
|
7124
7146
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ge(e).ShadowRoot;
|
|
7125
7147
|
}
|
|
7126
7148
|
function jt(e) {
|
|
@@ -7135,29 +7157,29 @@ function jt(e) {
|
|
|
7135
7157
|
function cd(e) {
|
|
7136
7158
|
return ["table", "td", "th"].includes(Ge(e));
|
|
7137
7159
|
}
|
|
7138
|
-
function
|
|
7139
|
-
const t =
|
|
7160
|
+
function Ur(e) {
|
|
7161
|
+
const t = jr(), n = xe(e);
|
|
7140
7162
|
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
7163
|
}
|
|
7142
7164
|
function ud(e) {
|
|
7143
7165
|
let t = yt(e);
|
|
7144
|
-
for (;
|
|
7145
|
-
if (
|
|
7166
|
+
for (; _e(t) && !$n(t); ) {
|
|
7167
|
+
if (Ur(t))
|
|
7146
7168
|
return t;
|
|
7147
7169
|
t = yt(t);
|
|
7148
7170
|
}
|
|
7149
7171
|
return null;
|
|
7150
7172
|
}
|
|
7151
|
-
function
|
|
7173
|
+
function jr() {
|
|
7152
7174
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
7153
7175
|
}
|
|
7154
|
-
function
|
|
7176
|
+
function $n(e) {
|
|
7155
7177
|
return ["html", "body", "#document"].includes(Ge(e));
|
|
7156
7178
|
}
|
|
7157
7179
|
function xe(e) {
|
|
7158
7180
|
return ge(e).getComputedStyle(e);
|
|
7159
7181
|
}
|
|
7160
|
-
function
|
|
7182
|
+
function Fn(e) {
|
|
7161
7183
|
return Ke(e) ? {
|
|
7162
7184
|
scrollLeft: e.scrollLeft,
|
|
7163
7185
|
scrollTop: e.scrollTop
|
|
@@ -7173,14 +7195,14 @@ function yt(e) {
|
|
|
7173
7195
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
7174
7196
|
e.assignedSlot || // DOM Element detected.
|
|
7175
7197
|
e.parentNode || // ShadowRoot detected.
|
|
7176
|
-
|
|
7198
|
+
zo(e) && e.host || // Fallback.
|
|
7177
7199
|
ze(e)
|
|
7178
7200
|
);
|
|
7179
|
-
return
|
|
7201
|
+
return zo(t) ? t.host : t;
|
|
7180
7202
|
}
|
|
7181
7203
|
function us(e) {
|
|
7182
7204
|
const t = yt(e);
|
|
7183
|
-
return
|
|
7205
|
+
return $n(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : _e(t) && jt(t) ? t : us(t);
|
|
7184
7206
|
}
|
|
7185
7207
|
function zt(e, t, n) {
|
|
7186
7208
|
var r;
|
|
@@ -7191,26 +7213,26 @@ function zt(e, t, n) {
|
|
|
7191
7213
|
function ds(e) {
|
|
7192
7214
|
const t = xe(e);
|
|
7193
7215
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
7194
|
-
const o =
|
|
7216
|
+
const o = _e(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = Cn(n) !== i || Cn(r) !== s;
|
|
7195
7217
|
return a && (n = i, r = s), {
|
|
7196
7218
|
width: n,
|
|
7197
7219
|
height: r,
|
|
7198
7220
|
$: a
|
|
7199
7221
|
};
|
|
7200
7222
|
}
|
|
7201
|
-
function
|
|
7223
|
+
function Hr(e) {
|
|
7202
7224
|
return Ke(e) ? e : e.contextElement;
|
|
7203
7225
|
}
|
|
7204
|
-
function
|
|
7205
|
-
const t =
|
|
7206
|
-
if (!
|
|
7226
|
+
function dt(e) {
|
|
7227
|
+
const t = Hr(e);
|
|
7228
|
+
if (!_e(t))
|
|
7207
7229
|
return qe(1);
|
|
7208
7230
|
const n = t.getBoundingClientRect(), {
|
|
7209
7231
|
width: r,
|
|
7210
7232
|
height: o,
|
|
7211
7233
|
$: i
|
|
7212
7234
|
} = ds(t);
|
|
7213
|
-
let s = (i ?
|
|
7235
|
+
let s = (i ? Cn(n.width) : n.width) / r, a = (i ? Cn(n.height) : n.height) / o;
|
|
7214
7236
|
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
7215
7237
|
x: s,
|
|
7216
7238
|
y: a
|
|
@@ -7219,7 +7241,7 @@ function ft(e) {
|
|
|
7219
7241
|
const dd = /* @__PURE__ */ qe(0);
|
|
7220
7242
|
function fs(e) {
|
|
7221
7243
|
const t = ge(e);
|
|
7222
|
-
return !
|
|
7244
|
+
return !jr() || !t.visualViewport ? dd : {
|
|
7223
7245
|
x: t.visualViewport.offsetLeft,
|
|
7224
7246
|
y: t.visualViewport.offsetTop
|
|
7225
7247
|
};
|
|
@@ -7227,22 +7249,22 @@ function fs(e) {
|
|
|
7227
7249
|
function fd(e, t, n) {
|
|
7228
7250
|
return t === void 0 && (t = !1), !n || t && n !== ge(e) ? !1 : t;
|
|
7229
7251
|
}
|
|
7230
|
-
function
|
|
7252
|
+
function tt(e, t, n, r) {
|
|
7231
7253
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7232
|
-
const o = e.getBoundingClientRect(), i =
|
|
7254
|
+
const o = e.getBoundingClientRect(), i = Hr(e);
|
|
7233
7255
|
let s = qe(1);
|
|
7234
|
-
t && (r ? Ke(r) && (s =
|
|
7256
|
+
t && (r ? Ke(r) && (s = dt(r)) : s = dt(e));
|
|
7235
7257
|
const a = fd(i, n, r) ? fs(i) : qe(0);
|
|
7236
7258
|
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
7259
|
if (i) {
|
|
7238
7260
|
const h = ge(i), m = r && Ke(r) ? ge(r) : r;
|
|
7239
7261
|
let f = h, g = f.frameElement;
|
|
7240
7262
|
for (; g && r && m !== f; ) {
|
|
7241
|
-
const y =
|
|
7263
|
+
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
7264
|
l *= y.x, c *= y.y, u *= y.x, d *= y.y, l += v, c += x, f = ge(g), g = f.frameElement;
|
|
7243
7265
|
}
|
|
7244
7266
|
}
|
|
7245
|
-
return
|
|
7267
|
+
return Pn({
|
|
7246
7268
|
width: u,
|
|
7247
7269
|
height: d,
|
|
7248
7270
|
x: l,
|
|
@@ -7273,10 +7295,10 @@ function gd(e) {
|
|
|
7273
7295
|
scrollLeft: 0,
|
|
7274
7296
|
scrollTop: 0
|
|
7275
7297
|
}, 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 =
|
|
7298
|
+
const u = qe(0), d = _e(r);
|
|
7299
|
+
if ((d || !d && !i) && ((Ge(r) !== "body" || jt(s)) && (l = Fn(r)), _e(r))) {
|
|
7300
|
+
const h = tt(r);
|
|
7301
|
+
c = dt(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
|
|
7280
7302
|
}
|
|
7281
7303
|
return {
|
|
7282
7304
|
width: n.width * c.x,
|
|
@@ -7289,10 +7311,10 @@ function pd(e) {
|
|
|
7289
7311
|
return Array.from(e.getClientRects());
|
|
7290
7312
|
}
|
|
7291
7313
|
function gs(e) {
|
|
7292
|
-
return
|
|
7314
|
+
return tt(ze(e)).left + Fn(e).scrollLeft;
|
|
7293
7315
|
}
|
|
7294
7316
|
function md(e) {
|
|
7295
|
-
const t = ze(e), n =
|
|
7317
|
+
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
7318
|
let s = -n.scrollLeft + gs(e);
|
|
7297
7319
|
const a = -n.scrollTop;
|
|
7298
7320
|
return xe(r).direction === "rtl" && (s += fe(t.clientWidth, r.clientWidth) - o), {
|
|
@@ -7307,7 +7329,7 @@ function yd(e, t) {
|
|
|
7307
7329
|
let i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
7308
7330
|
if (o) {
|
|
7309
7331
|
i = o.width, s = o.height;
|
|
7310
|
-
const c =
|
|
7332
|
+
const c = jr();
|
|
7311
7333
|
(!c || c && t === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
|
|
7312
7334
|
}
|
|
7313
7335
|
return {
|
|
@@ -7318,7 +7340,7 @@ function yd(e, t) {
|
|
|
7318
7340
|
};
|
|
7319
7341
|
}
|
|
7320
7342
|
function bd(e, t) {
|
|
7321
|
-
const n =
|
|
7343
|
+
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
7344
|
return {
|
|
7323
7345
|
width: s,
|
|
7324
7346
|
height: a,
|
|
@@ -7326,7 +7348,7 @@ function bd(e, t) {
|
|
|
7326
7348
|
y: c
|
|
7327
7349
|
};
|
|
7328
7350
|
}
|
|
7329
|
-
function
|
|
7351
|
+
function Vo(e, t, n) {
|
|
7330
7352
|
let r;
|
|
7331
7353
|
if (t === "viewport")
|
|
7332
7354
|
r = yd(e, n);
|
|
@@ -7342,11 +7364,11 @@ function zo(e, t, n) {
|
|
|
7342
7364
|
y: t.y - o.y
|
|
7343
7365
|
};
|
|
7344
7366
|
}
|
|
7345
|
-
return
|
|
7367
|
+
return Pn(r);
|
|
7346
7368
|
}
|
|
7347
7369
|
function ps(e, t) {
|
|
7348
7370
|
const n = yt(e);
|
|
7349
|
-
return n === t || !Ke(n) ||
|
|
7371
|
+
return n === t || !Ke(n) || $n(n) ? !1 : xe(n).position === "fixed" || ps(n, t);
|
|
7350
7372
|
}
|
|
7351
7373
|
function wd(e, t) {
|
|
7352
7374
|
const n = t.get(e);
|
|
@@ -7355,8 +7377,8 @@ function wd(e, t) {
|
|
|
7355
7377
|
let r = zt(e, [], !1).filter((a) => Ke(a) && Ge(a) !== "body"), o = null;
|
|
7356
7378
|
const i = xe(e).position === "fixed";
|
|
7357
7379
|
let s = i ? yt(e) : e;
|
|
7358
|
-
for (; Ke(s) &&
|
|
7359
|
-
const a = xe(s), l =
|
|
7380
|
+
for (; Ke(s) && !$n(s); ) {
|
|
7381
|
+
const a = xe(s), l = Ur(s);
|
|
7360
7382
|
!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
7383
|
}
|
|
7362
7384
|
return t.set(e, r), r;
|
|
@@ -7369,9 +7391,9 @@ function vd(e) {
|
|
|
7369
7391
|
strategy: o
|
|
7370
7392
|
} = e;
|
|
7371
7393
|
const s = [...n === "clippingAncestors" ? wd(t, this._c) : [].concat(n), r], a = s[0], l = s.reduce((c, u) => {
|
|
7372
|
-
const d =
|
|
7394
|
+
const d = Vo(t, u, o);
|
|
7373
7395
|
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
|
-
},
|
|
7396
|
+
}, Vo(t, a, o));
|
|
7375
7397
|
return {
|
|
7376
7398
|
width: l.right - l.left,
|
|
7377
7399
|
height: l.bottom - l.top,
|
|
@@ -7390,15 +7412,15 @@ function xd(e) {
|
|
|
7390
7412
|
};
|
|
7391
7413
|
}
|
|
7392
7414
|
function Sd(e, t, n) {
|
|
7393
|
-
const r =
|
|
7415
|
+
const r = _e(t), o = ze(t), i = n === "fixed", s = tt(e, !0, i, t);
|
|
7394
7416
|
let a = {
|
|
7395
7417
|
scrollLeft: 0,
|
|
7396
7418
|
scrollTop: 0
|
|
7397
7419
|
};
|
|
7398
7420
|
const l = qe(0);
|
|
7399
7421
|
if (r || !r && !i)
|
|
7400
|
-
if ((Ge(t) !== "body" || jt(o)) && (a =
|
|
7401
|
-
const d =
|
|
7422
|
+
if ((Ge(t) !== "body" || jt(o)) && (a = Fn(t)), r) {
|
|
7423
|
+
const d = tt(t, !0, i, t);
|
|
7402
7424
|
l.x = d.x + t.clientLeft, l.y = d.y + t.clientTop;
|
|
7403
7425
|
} else
|
|
7404
7426
|
o && (l.x = gs(o));
|
|
@@ -7410,17 +7432,17 @@ function Sd(e, t, n) {
|
|
|
7410
7432
|
height: s.height
|
|
7411
7433
|
};
|
|
7412
7434
|
}
|
|
7413
|
-
function
|
|
7414
|
-
return !
|
|
7435
|
+
function Uo(e, t) {
|
|
7436
|
+
return !_e(e) || xe(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
7415
7437
|
}
|
|
7416
7438
|
function ms(e, t) {
|
|
7417
7439
|
const n = ge(e);
|
|
7418
|
-
if (!
|
|
7440
|
+
if (!_e(e) || hs(e))
|
|
7419
7441
|
return n;
|
|
7420
|
-
let r =
|
|
7442
|
+
let r = Uo(e, t);
|
|
7421
7443
|
for (; r && cd(r) && xe(r).position === "static"; )
|
|
7422
|
-
r =
|
|
7423
|
-
return r && (Ge(r) === "html" || Ge(r) === "body" && xe(r).position === "static" && !
|
|
7444
|
+
r = Uo(r, t);
|
|
7445
|
+
return r && (Ge(r) === "html" || Ge(r) === "body" && xe(r).position === "static" && !Ur(r)) ? n : r || ud(e) || n;
|
|
7424
7446
|
}
|
|
7425
7447
|
const Ed = async function(e) {
|
|
7426
7448
|
const t = this.getOffsetParent || ms, n = this.getDimensions;
|
|
@@ -7444,7 +7466,7 @@ const ys = {
|
|
|
7444
7466
|
getElementRects: Ed,
|
|
7445
7467
|
getClientRects: pd,
|
|
7446
7468
|
getDimensions: xd,
|
|
7447
|
-
getScale:
|
|
7469
|
+
getScale: dt,
|
|
7448
7470
|
isElement: Ke,
|
|
7449
7471
|
isRTL: kd
|
|
7450
7472
|
};
|
|
@@ -7470,8 +7492,8 @@ function Cd(e, t) {
|
|
|
7470
7492
|
threshold: fe(0, He(1, l)) || 1
|
|
7471
7493
|
};
|
|
7472
7494
|
let v = !0;
|
|
7473
|
-
function x(
|
|
7474
|
-
const S =
|
|
7495
|
+
function x(P) {
|
|
7496
|
+
const S = P[0].intersectionRatio;
|
|
7475
7497
|
if (S !== l) {
|
|
7476
7498
|
if (!v)
|
|
7477
7499
|
return s();
|
|
@@ -7502,7 +7524,7 @@ function Od(e, t, n, r) {
|
|
|
7502
7524
|
elementResize: s = typeof ResizeObserver == "function",
|
|
7503
7525
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
7504
7526
|
animationFrame: l = !1
|
|
7505
|
-
} = r, c =
|
|
7527
|
+
} = r, c = Hr(e), u = o || i ? [...c ? zt(c) : [], ...zt(t)] : [];
|
|
7506
7528
|
u.forEach((w) => {
|
|
7507
7529
|
o && w.addEventListener("scroll", n, {
|
|
7508
7530
|
passive: !0
|
|
@@ -7517,10 +7539,10 @@ function Od(e, t, n, r) {
|
|
|
7517
7539
|
(v = m) == null || v.observe(t);
|
|
7518
7540
|
})), n();
|
|
7519
7541
|
}), c && !l && m.observe(c), m.observe(t));
|
|
7520
|
-
let f, g = l ?
|
|
7542
|
+
let f, g = l ? tt(e) : null;
|
|
7521
7543
|
l && y();
|
|
7522
7544
|
function y() {
|
|
7523
|
-
const w =
|
|
7545
|
+
const w = tt(e);
|
|
7524
7546
|
g && (w.x !== g.x || w.y !== g.y || w.width !== g.width || w.height !== g.height) && n(), g = w, f = requestAnimationFrame(y);
|
|
7525
7547
|
}
|
|
7526
7548
|
return n(), () => {
|
|
@@ -7530,7 +7552,7 @@ function Od(e, t, n, r) {
|
|
|
7530
7552
|
}), d?.(), (w = m) == null || w.disconnect(), m = null, l && cancelAnimationFrame(f);
|
|
7531
7553
|
};
|
|
7532
7554
|
}
|
|
7533
|
-
const
|
|
7555
|
+
const Pd = ad, _d = rd, Ad = ld, Td = od, Md = nd, Dd = (e, t, n) => {
|
|
7534
7556
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
7535
7557
|
platform: ys,
|
|
7536
7558
|
...n
|
|
@@ -7543,7 +7565,7 @@ const _d = ad, Pd = rd, Ad = ld, Td = od, Md = nd, Dd = (e, t, n) => {
|
|
|
7543
7565
|
platform: i
|
|
7544
7566
|
});
|
|
7545
7567
|
};
|
|
7546
|
-
function
|
|
7568
|
+
function jo(e) {
|
|
7547
7569
|
const { x: t = 0, y: n = 0, width: r = 0, height: o = 0 } = e ?? {};
|
|
7548
7570
|
if (typeof DOMRect == "function")
|
|
7549
7571
|
return new DOMRect(t, n, r, o);
|
|
@@ -7564,7 +7586,7 @@ function Ld(e, t) {
|
|
|
7564
7586
|
contextElement: e,
|
|
7565
7587
|
getBoundingClientRect: () => {
|
|
7566
7588
|
const r = t(e);
|
|
7567
|
-
return r ?
|
|
7589
|
+
return r ? jo(r) : e ? e.getBoundingClientRect() : jo();
|
|
7568
7590
|
}
|
|
7569
7591
|
};
|
|
7570
7592
|
}
|
|
@@ -7596,9 +7618,9 @@ function Fd(e) {
|
|
|
7596
7618
|
detachedPadding: 0,
|
|
7597
7619
|
arrowPadding: 4,
|
|
7598
7620
|
overflowPadding: 8
|
|
7599
|
-
}, e), [n, r] =
|
|
7621
|
+
}, e), [n, r] = _(), [o, i] = _(), [s, a] = _(t.placement), l = () => Ld(t.anchorRef(), t.getAnchorRect), {
|
|
7600
7622
|
direction: c
|
|
7601
|
-
} =
|
|
7623
|
+
} = Br();
|
|
7602
7624
|
async function u() {
|
|
7603
7625
|
const h = l(), m = n(), f = o();
|
|
7604
7626
|
if (!h || !m)
|
|
@@ -7622,12 +7644,12 @@ function Fd(e) {
|
|
|
7622
7644
|
const S = typeof t.flip == "string" ? t.flip.split(" ") : void 0;
|
|
7623
7645
|
if (S !== void 0 && !S.every(Id))
|
|
7624
7646
|
throw new Error("`flip` expects a spaced-delimited list of placements");
|
|
7625
|
-
w.push(
|
|
7647
|
+
w.push(_d({
|
|
7626
7648
|
padding: t.overflowPadding,
|
|
7627
7649
|
fallbackPlacements: S
|
|
7628
7650
|
}));
|
|
7629
7651
|
}
|
|
7630
|
-
(t.slide || t.overlap) && w.push(
|
|
7652
|
+
(t.slide || t.overlap) && w.push(Pd({
|
|
7631
7653
|
mainAxis: t.slide,
|
|
7632
7654
|
crossAxis: t.overlap,
|
|
7633
7655
|
padding: t.overflowPadding
|
|
@@ -7660,12 +7682,12 @@ function Fd(e) {
|
|
|
7660
7682
|
return;
|
|
7661
7683
|
m.style.setProperty("--kb-popper-content-transform-origin", $d(b.placement, c()));
|
|
7662
7684
|
const v = Math.round(b.x), x = Math.round(b.y);
|
|
7663
|
-
let
|
|
7664
|
-
if (t.hideWhenDetached && (
|
|
7685
|
+
let P;
|
|
7686
|
+
if (t.hideWhenDetached && (P = b.middlewareData.hide?.referenceHidden ? "hidden" : "visible"), Object.assign(m.style, {
|
|
7665
7687
|
top: "0",
|
|
7666
7688
|
left: "0",
|
|
7667
7689
|
transform: `translate3d(${v}px, ${x}px, 0)`,
|
|
7668
|
-
visibility:
|
|
7690
|
+
visibility: P
|
|
7669
7691
|
}), f && b.middlewareData.arrow) {
|
|
7670
7692
|
const {
|
|
7671
7693
|
x: S,
|
|
@@ -7738,7 +7760,7 @@ function Kd(e) {
|
|
|
7738
7760
|
placement: "bottom-start"
|
|
7739
7761
|
}, e), [i, s] = H(o, ["open", "defaultOpen", "onOpenChange"]);
|
|
7740
7762
|
let a = 0, l = null, c = "right";
|
|
7741
|
-
const [u, d] =
|
|
7763
|
+
const [u, d] = _(), [h, m] = _(), [f, g] = _(), [y, w] = _(), [b, v] = _(!0), [x, P] = _(s.placement), [S, k] = _([]), [R, C] = _([]), {
|
|
7742
7764
|
DomCollectionProvider: K
|
|
7743
7765
|
} = Iu({
|
|
7744
7766
|
items: R,
|
|
@@ -7760,16 +7782,16 @@ function Kd(e) {
|
|
|
7760
7782
|
const j = y();
|
|
7761
7783
|
j && (se(j), ne.selectionManager().setFocused(!0), ne.selectionManager().setFocusedKey(void 0));
|
|
7762
7784
|
}, ie = (j) => {
|
|
7763
|
-
k((
|
|
7785
|
+
k((Vn) => [...Vn, j]);
|
|
7764
7786
|
const Wt = r?.registerNestedMenu(j);
|
|
7765
7787
|
return () => {
|
|
7766
|
-
k((
|
|
7788
|
+
k((Vn) => hr(Vn, j)), Wt?.();
|
|
7767
7789
|
};
|
|
7768
7790
|
}, Me = (j) => c === l?.side && Nd(j, l?.area), qt = (j) => {
|
|
7769
7791
|
Me(j) && j.preventDefault();
|
|
7770
7792
|
}, Je = (j) => {
|
|
7771
7793
|
Me(j) || U();
|
|
7772
|
-
},
|
|
7794
|
+
}, it = (j) => {
|
|
7773
7795
|
Me(j) && j.preventDefault();
|
|
7774
7796
|
};
|
|
7775
7797
|
Qc({
|
|
@@ -7809,14 +7831,14 @@ function Kd(e) {
|
|
|
7809
7831
|
focusContent: U,
|
|
7810
7832
|
onItemEnter: qt,
|
|
7811
7833
|
onItemLeave: Je,
|
|
7812
|
-
onTriggerLeave:
|
|
7834
|
+
onTriggerLeave: it,
|
|
7813
7835
|
setPointerDir: (j) => c = j,
|
|
7814
7836
|
setPointerGraceTimeoutId: (j) => a = j,
|
|
7815
7837
|
setPointerGraceIntent: (j) => l = j,
|
|
7816
7838
|
registerNestedMenu: ie,
|
|
7817
7839
|
registerItemToParentDomCollection: n?.registerItem,
|
|
7818
|
-
registerTriggerId:
|
|
7819
|
-
registerContentId:
|
|
7840
|
+
registerTriggerId: kn(d),
|
|
7841
|
+
registerContentId: kn(m)
|
|
7820
7842
|
};
|
|
7821
7843
|
return p(K, {
|
|
7822
7844
|
get children() {
|
|
@@ -7826,7 +7848,7 @@ function Kd(e) {
|
|
|
7826
7848
|
return p(Fd, T({
|
|
7827
7849
|
anchorRef: f,
|
|
7828
7850
|
contentRef: y,
|
|
7829
|
-
onCurrentPlacementChange:
|
|
7851
|
+
onCurrentPlacementChange: P
|
|
7830
7852
|
}, s));
|
|
7831
7853
|
}
|
|
7832
7854
|
});
|
|
@@ -7838,7 +7860,7 @@ function zd(e) {
|
|
|
7838
7860
|
let t;
|
|
7839
7861
|
const n = St(), r = xt(), o = Te({
|
|
7840
7862
|
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] =
|
|
7863
|
+
}, 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
7864
|
i.onSelect?.(), i.closeOnSelect && r.close(!0);
|
|
7843
7865
|
};
|
|
7844
7866
|
Ru({
|
|
@@ -7862,7 +7884,7 @@ function zd(e) {
|
|
|
7862
7884
|
he(C, i.onPointerLeave), C.pointerType === "mouse" && r.onItemLeave(C);
|
|
7863
7885
|
}, x = (C) => {
|
|
7864
7886
|
he(C, i.onPointerUp), !i.disabled && C.button === 0 && y();
|
|
7865
|
-
},
|
|
7887
|
+
}, P = (C) => {
|
|
7866
7888
|
if (he(C, i.onKeyDown), !C.repeat && !i.disabled)
|
|
7867
7889
|
switch (C.key) {
|
|
7868
7890
|
case "Enter":
|
|
@@ -7885,16 +7907,16 @@ function zd(e) {
|
|
|
7885
7907
|
dataset: k,
|
|
7886
7908
|
setLabelRef: h,
|
|
7887
7909
|
generateId: zi(() => s.id),
|
|
7888
|
-
registerLabel:
|
|
7889
|
-
registerDescription:
|
|
7910
|
+
registerLabel: kn(l),
|
|
7911
|
+
registerDescription: kn(u)
|
|
7890
7912
|
};
|
|
7891
7913
|
return p(Bd.Provider, {
|
|
7892
7914
|
value: R,
|
|
7893
7915
|
get children() {
|
|
7894
|
-
return p(
|
|
7916
|
+
return p(Rn, T({
|
|
7895
7917
|
as: "div",
|
|
7896
7918
|
ref(C) {
|
|
7897
|
-
var K =
|
|
7919
|
+
var K = rt((I) => t = I, i.ref);
|
|
7898
7920
|
typeof K == "function" && K(C);
|
|
7899
7921
|
},
|
|
7900
7922
|
get tabIndex() {
|
|
@@ -7925,7 +7947,7 @@ function zd(e) {
|
|
|
7925
7947
|
return ye([i.onClick, w.onClick]);
|
|
7926
7948
|
},
|
|
7927
7949
|
get onKeyDown() {
|
|
7928
|
-
return ye([
|
|
7950
|
+
return ye([P, w.onKeyDown]);
|
|
7929
7951
|
},
|
|
7930
7952
|
get onMouseDown() {
|
|
7931
7953
|
return ye([i.onMouseDown, w.onMouseDown]);
|
|
@@ -7997,7 +8019,7 @@ function Ud(e) {
|
|
|
7997
8019
|
get children() {
|
|
7998
8020
|
return p(ju, T({
|
|
7999
8021
|
ref(y) {
|
|
8000
|
-
var w =
|
|
8022
|
+
var w = rt((b) => {
|
|
8001
8023
|
r.setContentRef(b), r.contentPresence.setRef(b), t = b;
|
|
8002
8024
|
}, s.ref);
|
|
8003
8025
|
typeof w == "function" && w(y);
|
|
@@ -8059,7 +8081,7 @@ function jd(e) {
|
|
|
8059
8081
|
enabled: () => r.isOpen() && n.preventScroll()
|
|
8060
8082
|
}), p(Ud, T({
|
|
8061
8083
|
ref(s) {
|
|
8062
|
-
var a =
|
|
8084
|
+
var a = rt((l) => {
|
|
8063
8085
|
t = l;
|
|
8064
8086
|
}, o.ref);
|
|
8065
8087
|
typeof a == "function" && a(s);
|
|
@@ -8159,9 +8181,9 @@ function Gd(e) {
|
|
|
8159
8181
|
}, m = (f) => {
|
|
8160
8182
|
he(f, i.onFocus), r !== void 0 && r.setValue(a);
|
|
8161
8183
|
};
|
|
8162
|
-
return M(() => B(n.registerTriggerId(i.id))), p(
|
|
8184
|
+
return M(() => B(n.registerTriggerId(i.id))), p(Pu, T({
|
|
8163
8185
|
ref(f) {
|
|
8164
|
-
var g =
|
|
8186
|
+
var g = rt(n.setTriggerRef, i.ref);
|
|
8165
8187
|
typeof g == "function" && g(f);
|
|
8166
8188
|
},
|
|
8167
8189
|
get id() {
|
|
@@ -8286,7 +8308,7 @@ function lf(e) {
|
|
|
8286
8308
|
}
|
|
8287
8309
|
}
|
|
8288
8310
|
async function cf(e, t, n) {
|
|
8289
|
-
const r = `${
|
|
8311
|
+
const r = `${Sn}/v1/messages`, o = {
|
|
8290
8312
|
credentials: "include",
|
|
8291
8313
|
method: "POST",
|
|
8292
8314
|
headers: {
|
|
@@ -8304,7 +8326,7 @@ async function cf(e, t, n) {
|
|
|
8304
8326
|
async function uf(e, t, n) {
|
|
8305
8327
|
if (!e || !t || !n)
|
|
8306
8328
|
return;
|
|
8307
|
-
const r = `${
|
|
8329
|
+
const r = `${Sn}/v1/widget/${e}/restart`, o = {
|
|
8308
8330
|
credentials: "include",
|
|
8309
8331
|
method: "POST",
|
|
8310
8332
|
headers: {
|
|
@@ -8329,29 +8351,29 @@ const cn = /* @__PURE__ */ Object.create(null);
|
|
|
8329
8351
|
Object.keys(Ae).forEach((e) => {
|
|
8330
8352
|
cn[Ae[e]] = e;
|
|
8331
8353
|
});
|
|
8332
|
-
const
|
|
8354
|
+
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
8355
|
const n = new FileReader();
|
|
8334
8356
|
return n.onload = function() {
|
|
8335
8357
|
const r = n.result.split(",")[1];
|
|
8336
8358
|
t("b" + (r || ""));
|
|
8337
8359
|
}, n.readAsDataURL(e);
|
|
8338
8360
|
};
|
|
8339
|
-
function
|
|
8361
|
+
function qo(e) {
|
|
8340
8362
|
return e instanceof Uint8Array ? e : e instanceof ArrayBuffer ? new Uint8Array(e) : new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
|
|
8341
8363
|
}
|
|
8342
|
-
let
|
|
8364
|
+
let Jn;
|
|
8343
8365
|
function df(e, t) {
|
|
8344
8366
|
if (Ss && e.data instanceof Blob)
|
|
8345
|
-
return e.data.arrayBuffer().then(
|
|
8367
|
+
return e.data.arrayBuffer().then(qo).then(t);
|
|
8346
8368
|
if (Es && (e.data instanceof ArrayBuffer || ks(e.data)))
|
|
8347
|
-
return t(
|
|
8348
|
-
|
|
8349
|
-
|
|
8369
|
+
return t(qo(e.data));
|
|
8370
|
+
qr(e, !1, (n) => {
|
|
8371
|
+
Jn || (Jn = new TextEncoder()), t(Jn.encode(n));
|
|
8350
8372
|
});
|
|
8351
8373
|
}
|
|
8352
|
-
const
|
|
8353
|
-
for (let e = 0; e <
|
|
8354
|
-
Rt[
|
|
8374
|
+
const Wo = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Rt = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
8375
|
+
for (let e = 0; e < Wo.length; e++)
|
|
8376
|
+
Rt[Wo.charCodeAt(e)] = e;
|
|
8355
8377
|
const ff = (e) => {
|
|
8356
8378
|
let t = e.length * 0.75, n = e.length, r, o = 0, i, s, a, l;
|
|
8357
8379
|
e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
|
|
@@ -8359,7 +8381,7 @@ const ff = (e) => {
|
|
|
8359
8381
|
for (r = 0; r < n; r += 4)
|
|
8360
8382
|
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
8383
|
return c;
|
|
8362
|
-
}, hf = typeof ArrayBuffer == "function",
|
|
8384
|
+
}, hf = typeof ArrayBuffer == "function", Wr = (e, t) => {
|
|
8363
8385
|
if (typeof e != "string")
|
|
8364
8386
|
return {
|
|
8365
8387
|
type: "message",
|
|
@@ -8374,7 +8396,7 @@ const ff = (e) => {
|
|
|
8374
8396
|
data: e.substring(1)
|
|
8375
8397
|
} : {
|
|
8376
8398
|
type: cn[n]
|
|
8377
|
-
} :
|
|
8399
|
+
} : xr;
|
|
8378
8400
|
}, gf = (e, t) => {
|
|
8379
8401
|
if (hf) {
|
|
8380
8402
|
const n = ff(e);
|
|
@@ -8393,14 +8415,14 @@ const ff = (e) => {
|
|
|
8393
8415
|
const n = e.length, r = new Array(n);
|
|
8394
8416
|
let o = 0;
|
|
8395
8417
|
e.forEach((i, s) => {
|
|
8396
|
-
|
|
8418
|
+
qr(i, !1, (a) => {
|
|
8397
8419
|
r[s] = a, ++o === n && t(r.join(Os));
|
|
8398
8420
|
});
|
|
8399
8421
|
});
|
|
8400
8422
|
}, mf = (e, t) => {
|
|
8401
8423
|
const n = e.split(Os), r = [];
|
|
8402
8424
|
for (let o = 0; o < n.length; o++) {
|
|
8403
|
-
const i =
|
|
8425
|
+
const i = Wr(n[o], t);
|
|
8404
8426
|
if (r.push(i), i.type === "error")
|
|
8405
8427
|
break;
|
|
8406
8428
|
}
|
|
@@ -8428,7 +8450,7 @@ function yf() {
|
|
|
8428
8450
|
}
|
|
8429
8451
|
});
|
|
8430
8452
|
}
|
|
8431
|
-
let
|
|
8453
|
+
let Zn;
|
|
8432
8454
|
function nn(e) {
|
|
8433
8455
|
return e.reduce((t, n) => t + n.length, 0);
|
|
8434
8456
|
}
|
|
@@ -8442,7 +8464,7 @@ function rn(e, t) {
|
|
|
8442
8464
|
return e.length && r < e[0].length && (e[0] = e[0].slice(r)), n;
|
|
8443
8465
|
}
|
|
8444
8466
|
function bf(e, t) {
|
|
8445
|
-
|
|
8467
|
+
Zn || (Zn = new TextDecoder());
|
|
8446
8468
|
const n = [];
|
|
8447
8469
|
let r = 0, o = -1, i = !1;
|
|
8448
8470
|
return new TransformStream({
|
|
@@ -8463,7 +8485,7 @@ function bf(e, t) {
|
|
|
8463
8485
|
break;
|
|
8464
8486
|
const l = rn(n, 8), c = new DataView(l.buffer, l.byteOffset, l.length), u = c.getUint32(0);
|
|
8465
8487
|
if (u > Math.pow(2, 21) - 1) {
|
|
8466
|
-
a.enqueue(
|
|
8488
|
+
a.enqueue(xr);
|
|
8467
8489
|
break;
|
|
8468
8490
|
}
|
|
8469
8491
|
o = u * Math.pow(2, 32) + c.getUint32(4), r = 3;
|
|
@@ -8471,17 +8493,17 @@ function bf(e, t) {
|
|
|
8471
8493
|
if (nn(n) < o)
|
|
8472
8494
|
break;
|
|
8473
8495
|
const l = rn(n, o);
|
|
8474
|
-
a.enqueue(
|
|
8496
|
+
a.enqueue(Wr(i ? l : Zn.decode(l), t)), r = 0;
|
|
8475
8497
|
}
|
|
8476
8498
|
if (o === 0 || o > e) {
|
|
8477
|
-
a.enqueue(
|
|
8499
|
+
a.enqueue(xr);
|
|
8478
8500
|
break;
|
|
8479
8501
|
}
|
|
8480
8502
|
}
|
|
8481
8503
|
}
|
|
8482
8504
|
});
|
|
8483
8505
|
}
|
|
8484
|
-
const
|
|
8506
|
+
const Ps = 4;
|
|
8485
8507
|
function Z(e) {
|
|
8486
8508
|
if (e)
|
|
8487
8509
|
return wf(e);
|
|
@@ -8533,12 +8555,12 @@ Z.prototype.listeners = function(e) {
|
|
|
8533
8555
|
Z.prototype.hasListeners = function(e) {
|
|
8534
8556
|
return !!this.listeners(e).length;
|
|
8535
8557
|
};
|
|
8536
|
-
const
|
|
8537
|
-
function
|
|
8558
|
+
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";
|
|
8559
|
+
function _s(e, ...t) {
|
|
8538
8560
|
return t.reduce((n, r) => (e.hasOwnProperty(r) && (n[r] = e[r]), n), {});
|
|
8539
8561
|
}
|
|
8540
8562
|
const xf = be.setTimeout, Sf = be.clearTimeout;
|
|
8541
|
-
function
|
|
8563
|
+
function Kn(e, t) {
|
|
8542
8564
|
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
8565
|
}
|
|
8544
8566
|
const Ef = 1.33;
|
|
@@ -8560,7 +8582,7 @@ function Of(e) {
|
|
|
8560
8582
|
e.hasOwnProperty(n) && (t.length && (t += "&"), t += encodeURIComponent(n) + "=" + encodeURIComponent(e[n]));
|
|
8561
8583
|
return t;
|
|
8562
8584
|
}
|
|
8563
|
-
function
|
|
8585
|
+
function Pf(e) {
|
|
8564
8586
|
let t = {}, n = e.split("&");
|
|
8565
8587
|
for (let r = 0, o = n.length; r < o; r++) {
|
|
8566
8588
|
let i = n[r].split("=");
|
|
@@ -8568,12 +8590,12 @@ function _f(e) {
|
|
|
8568
8590
|
}
|
|
8569
8591
|
return t;
|
|
8570
8592
|
}
|
|
8571
|
-
class
|
|
8593
|
+
class _f extends Error {
|
|
8572
8594
|
constructor(t, n, r) {
|
|
8573
8595
|
super(t), this.description = n, this.context = r, this.type = "TransportError";
|
|
8574
8596
|
}
|
|
8575
8597
|
}
|
|
8576
|
-
class
|
|
8598
|
+
class Gr extends Z {
|
|
8577
8599
|
/**
|
|
8578
8600
|
* Transport abstract constructor.
|
|
8579
8601
|
*
|
|
@@ -8581,7 +8603,7 @@ class Wr extends Z {
|
|
|
8581
8603
|
* @protected
|
|
8582
8604
|
*/
|
|
8583
8605
|
constructor(t) {
|
|
8584
|
-
super(), this.writable = !1,
|
|
8606
|
+
super(), this.writable = !1, Kn(this, t), this.opts = t, this.query = t.query, this.socket = t.socket, this.supportsBinary = !t.forceBase64;
|
|
8585
8607
|
}
|
|
8586
8608
|
/**
|
|
8587
8609
|
* Emits an error.
|
|
@@ -8593,7 +8615,7 @@ class Wr extends Z {
|
|
|
8593
8615
|
* @protected
|
|
8594
8616
|
*/
|
|
8595
8617
|
onError(t, n, r) {
|
|
8596
|
-
return super.emitReserved("error", new
|
|
8618
|
+
return super.emitReserved("error", new _f(t, n, r)), this;
|
|
8597
8619
|
}
|
|
8598
8620
|
/**
|
|
8599
8621
|
* Opens the transport.
|
|
@@ -8630,7 +8652,7 @@ class Wr extends Z {
|
|
|
8630
8652
|
* @protected
|
|
8631
8653
|
*/
|
|
8632
8654
|
onData(t) {
|
|
8633
|
-
const n =
|
|
8655
|
+
const n = Wr(t, this.socket.binaryType);
|
|
8634
8656
|
this.onPacket(n);
|
|
8635
8657
|
}
|
|
8636
8658
|
/**
|
|
@@ -8671,7 +8693,7 @@ class Wr extends Z {
|
|
|
8671
8693
|
return n.length ? "?" + n : "";
|
|
8672
8694
|
}
|
|
8673
8695
|
}
|
|
8674
|
-
class Af extends
|
|
8696
|
+
class Af extends Gr {
|
|
8675
8697
|
constructor() {
|
|
8676
8698
|
super(...arguments), this._polling = !1;
|
|
8677
8699
|
}
|
|
@@ -8813,7 +8835,7 @@ class Df extends Af {
|
|
|
8813
8835
|
}), this.pollXhr = t;
|
|
8814
8836
|
}
|
|
8815
8837
|
}
|
|
8816
|
-
class
|
|
8838
|
+
class Pe extends Z {
|
|
8817
8839
|
/**
|
|
8818
8840
|
* Request constructor
|
|
8819
8841
|
*
|
|
@@ -8821,7 +8843,7 @@ class _e extends Z {
|
|
|
8821
8843
|
* @package
|
|
8822
8844
|
*/
|
|
8823
8845
|
constructor(t, n, r) {
|
|
8824
|
-
super(), this.createRequest = t,
|
|
8846
|
+
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
8847
|
}
|
|
8826
8848
|
/**
|
|
8827
8849
|
* Creates the XHR object and sends the request.
|
|
@@ -8830,7 +8852,7 @@ class _e extends Z {
|
|
|
8830
8852
|
*/
|
|
8831
8853
|
_create() {
|
|
8832
8854
|
var t;
|
|
8833
|
-
const n =
|
|
8855
|
+
const n = _s(this._opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
|
|
8834
8856
|
n.xdomain = !!this._opts.xd;
|
|
8835
8857
|
const r = this._xhr = this.createRequest(n);
|
|
8836
8858
|
try {
|
|
@@ -8867,7 +8889,7 @@ class _e extends Z {
|
|
|
8867
8889
|
}, 0);
|
|
8868
8890
|
return;
|
|
8869
8891
|
}
|
|
8870
|
-
typeof document < "u" && (this._index =
|
|
8892
|
+
typeof document < "u" && (this._index = Pe.requestsCount++, Pe.requests[this._index] = this);
|
|
8871
8893
|
}
|
|
8872
8894
|
/**
|
|
8873
8895
|
* Called upon error.
|
|
@@ -8889,7 +8911,7 @@ class _e extends Z {
|
|
|
8889
8911
|
this._xhr.abort();
|
|
8890
8912
|
} catch {
|
|
8891
8913
|
}
|
|
8892
|
-
typeof document < "u" && delete
|
|
8914
|
+
typeof document < "u" && delete Pe.requests[this._index], this._xhr = null;
|
|
8893
8915
|
}
|
|
8894
8916
|
}
|
|
8895
8917
|
/**
|
|
@@ -8910,19 +8932,19 @@ class _e extends Z {
|
|
|
8910
8932
|
this._cleanup();
|
|
8911
8933
|
}
|
|
8912
8934
|
}
|
|
8913
|
-
|
|
8914
|
-
|
|
8935
|
+
Pe.requestsCount = 0;
|
|
8936
|
+
Pe.requests = {};
|
|
8915
8937
|
if (typeof document < "u") {
|
|
8916
8938
|
if (typeof attachEvent == "function")
|
|
8917
|
-
attachEvent("onunload",
|
|
8939
|
+
attachEvent("onunload", Go);
|
|
8918
8940
|
else if (typeof addEventListener == "function") {
|
|
8919
8941
|
const e = "onpagehide" in be ? "pagehide" : "unload";
|
|
8920
|
-
addEventListener(e,
|
|
8942
|
+
addEventListener(e, Go, !1);
|
|
8921
8943
|
}
|
|
8922
8944
|
}
|
|
8923
|
-
function
|
|
8924
|
-
for (let e in
|
|
8925
|
-
|
|
8945
|
+
function Go() {
|
|
8946
|
+
for (let e in Pe.requests)
|
|
8947
|
+
Pe.requests.hasOwnProperty(e) && Pe.requests[e].abort();
|
|
8926
8948
|
}
|
|
8927
8949
|
const Lf = function() {
|
|
8928
8950
|
const e = Ms({
|
|
@@ -8937,7 +8959,7 @@ class If extends Df {
|
|
|
8937
8959
|
this.supportsBinary = Lf && !n;
|
|
8938
8960
|
}
|
|
8939
8961
|
request(t = {}) {
|
|
8940
|
-
return Object.assign(t, { xd: this.xd }, this.opts), new
|
|
8962
|
+
return Object.assign(t, { xd: this.xd }, this.opts), new Pe(Ms, this.uri(), t);
|
|
8941
8963
|
}
|
|
8942
8964
|
}
|
|
8943
8965
|
function Ms(e) {
|
|
@@ -8954,12 +8976,12 @@ function Ms(e) {
|
|
|
8954
8976
|
}
|
|
8955
8977
|
}
|
|
8956
8978
|
const Ds = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
|
8957
|
-
class Rf extends
|
|
8979
|
+
class Rf extends Gr {
|
|
8958
8980
|
get name() {
|
|
8959
8981
|
return "websocket";
|
|
8960
8982
|
}
|
|
8961
8983
|
doOpen() {
|
|
8962
|
-
const t = this.uri(), n = this.opts.protocols, r = Ds ? {} :
|
|
8984
|
+
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
8985
|
this.opts.extraHeaders && (r.headers = this.opts.extraHeaders);
|
|
8964
8986
|
try {
|
|
8965
8987
|
this.ws = this.createSocket(t, n, r);
|
|
@@ -8985,12 +9007,12 @@ class Rf extends Wr {
|
|
|
8985
9007
|
this.writable = !1;
|
|
8986
9008
|
for (let n = 0; n < t.length; n++) {
|
|
8987
9009
|
const r = t[n], o = n === t.length - 1;
|
|
8988
|
-
|
|
9010
|
+
qr(r, this.supportsBinary, (i) => {
|
|
8989
9011
|
try {
|
|
8990
9012
|
this.doWrite(r, i);
|
|
8991
9013
|
} catch {
|
|
8992
9014
|
}
|
|
8993
|
-
o &&
|
|
9015
|
+
o && Nn(() => {
|
|
8994
9016
|
this.writable = !0, this.emitReserved("drain");
|
|
8995
9017
|
}, this.setTimeoutFn);
|
|
8996
9018
|
});
|
|
@@ -9009,16 +9031,16 @@ class Rf extends Wr {
|
|
|
9009
9031
|
return this.opts.timestampRequests && (n[this.opts.timestampParam] = As()), this.supportsBinary || (n.b64 = 1), this.createUri(t, n);
|
|
9010
9032
|
}
|
|
9011
9033
|
}
|
|
9012
|
-
const
|
|
9034
|
+
const Qn = be.WebSocket || be.MozWebSocket;
|
|
9013
9035
|
class $f extends Rf {
|
|
9014
9036
|
createSocket(t, n, r) {
|
|
9015
|
-
return Ds ? new
|
|
9037
|
+
return Ds ? new Qn(t, n, r) : n ? new Qn(t, n) : new Qn(t);
|
|
9016
9038
|
}
|
|
9017
9039
|
doWrite(t, n) {
|
|
9018
9040
|
this.ws.send(n);
|
|
9019
9041
|
}
|
|
9020
9042
|
}
|
|
9021
|
-
class Ff extends
|
|
9043
|
+
class Ff extends Gr {
|
|
9022
9044
|
get name() {
|
|
9023
9045
|
return "webtransport";
|
|
9024
9046
|
}
|
|
@@ -9053,7 +9075,7 @@ class Ff extends Wr {
|
|
|
9053
9075
|
for (let n = 0; n < t.length; n++) {
|
|
9054
9076
|
const r = t[n], o = n === t.length - 1;
|
|
9055
9077
|
this._writer.write(r).then(() => {
|
|
9056
|
-
o &&
|
|
9078
|
+
o && Nn(() => {
|
|
9057
9079
|
this.writable = !0, this.emitReserved("drain");
|
|
9058
9080
|
}, this.setTimeoutFn);
|
|
9059
9081
|
});
|
|
@@ -9084,7 +9106,7 @@ const Nf = {
|
|
|
9084
9106
|
"query",
|
|
9085
9107
|
"anchor"
|
|
9086
9108
|
];
|
|
9087
|
-
function
|
|
9109
|
+
function Sr(e) {
|
|
9088
9110
|
if (e.length > 8e3)
|
|
9089
9111
|
throw "URI too long";
|
|
9090
9112
|
const t = e, n = e.indexOf("["), r = e.indexOf("]");
|
|
@@ -9104,8 +9126,8 @@ function Vf(e, t) {
|
|
|
9104
9126
|
o && (n[o] = i);
|
|
9105
9127
|
}), n;
|
|
9106
9128
|
}
|
|
9107
|
-
const
|
|
9108
|
-
|
|
9129
|
+
const Er = typeof addEventListener == "function" && typeof removeEventListener == "function", un = [];
|
|
9130
|
+
Er && addEventListener("offline", () => {
|
|
9109
9131
|
un.forEach((e) => e());
|
|
9110
9132
|
}, !1);
|
|
9111
9133
|
class je extends Z {
|
|
@@ -9117,11 +9139,11 @@ class je extends Z {
|
|
|
9117
9139
|
*/
|
|
9118
9140
|
constructor(t, n) {
|
|
9119
9141
|
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 =
|
|
9142
|
+
const r = Sr(t);
|
|
9121
9143
|
n.hostname = r.host, n.secure = r.protocol === "https" || r.protocol === "wss", n.port = r.port, r.query && (n.query = r.query);
|
|
9122
9144
|
} else
|
|
9123
|
-
n.host && (n.hostname =
|
|
9124
|
-
|
|
9145
|
+
n.host && (n.hostname = Sr(n.host).host);
|
|
9146
|
+
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
9147
|
const o = r.prototype.name;
|
|
9126
9148
|
this.transports.push(o), this._transportsByName[o] = r;
|
|
9127
9149
|
}), this.opts = Object.assign({
|
|
@@ -9138,7 +9160,7 @@ class je extends Z {
|
|
|
9138
9160
|
},
|
|
9139
9161
|
transportOptions: {},
|
|
9140
9162
|
closeOnBeforeunload: !1
|
|
9141
|
-
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query =
|
|
9163
|
+
}, 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
9164
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
|
9143
9165
|
}, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
|
|
9144
9166
|
this._onClose("transport close", {
|
|
@@ -9155,7 +9177,7 @@ class je extends Z {
|
|
|
9155
9177
|
*/
|
|
9156
9178
|
createTransport(t) {
|
|
9157
9179
|
const n = Object.assign({}, this.opts.query);
|
|
9158
|
-
n.EIO =
|
|
9180
|
+
n.EIO = Ps, n.transport = t, this.id && (n.sid = this.id);
|
|
9159
9181
|
const r = Object.assign({}, this.opts, {
|
|
9160
9182
|
query: n,
|
|
9161
9183
|
socket: this,
|
|
@@ -9293,7 +9315,7 @@ class je extends Z {
|
|
|
9293
9315
|
if (!this._pingTimeoutTime)
|
|
9294
9316
|
return !0;
|
|
9295
9317
|
const t = Date.now() > this._pingTimeoutTime;
|
|
9296
|
-
return t && (this._pingTimeoutTime = 0,
|
|
9318
|
+
return t && (this._pingTimeoutTime = 0, Nn(() => {
|
|
9297
9319
|
this._onClose("ping timeout");
|
|
9298
9320
|
}, this.setTimeoutFn)), t;
|
|
9299
9321
|
}
|
|
@@ -9371,7 +9393,7 @@ class je extends Z {
|
|
|
9371
9393
|
*/
|
|
9372
9394
|
_onClose(t, n) {
|
|
9373
9395
|
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(),
|
|
9396
|
+
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
9397
|
const r = un.indexOf(this._offlineEventListener);
|
|
9376
9398
|
r !== -1 && un.splice(r, 1);
|
|
9377
9399
|
}
|
|
@@ -9379,7 +9401,7 @@ class je extends Z {
|
|
|
9379
9401
|
}
|
|
9380
9402
|
}
|
|
9381
9403
|
}
|
|
9382
|
-
je.protocol =
|
|
9404
|
+
je.protocol = Ps;
|
|
9383
9405
|
class Uf extends je {
|
|
9384
9406
|
constructor() {
|
|
9385
9407
|
super(...arguments), this._upgrades = [];
|
|
@@ -9460,12 +9482,12 @@ let jf = class extends Uf {
|
|
|
9460
9482
|
};
|
|
9461
9483
|
function Hf(e, t = "", n) {
|
|
9462
9484
|
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 =
|
|
9485
|
+
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
9486
|
const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
|
|
9465
9487
|
return r.id = r.protocol + "://" + i + ":" + r.port + t, r.href = r.protocol + "://" + i + (n && n.port === r.port ? "" : ":" + r.port), r;
|
|
9466
9488
|
}
|
|
9467
9489
|
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
|
|
9490
|
+
function Yr(e) {
|
|
9469
9491
|
return qf && (e instanceof ArrayBuffer || Wf(e)) || Gf && e instanceof Blob || Yf && e instanceof File;
|
|
9470
9492
|
}
|
|
9471
9493
|
function dn(e, t) {
|
|
@@ -9477,7 +9499,7 @@ function dn(e, t) {
|
|
|
9477
9499
|
return !0;
|
|
9478
9500
|
return !1;
|
|
9479
9501
|
}
|
|
9480
|
-
if (
|
|
9502
|
+
if (Yr(e))
|
|
9481
9503
|
return !0;
|
|
9482
9504
|
if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1)
|
|
9483
9505
|
return dn(e.toJSON(), !0);
|
|
@@ -9488,31 +9510,31 @@ function dn(e, t) {
|
|
|
9488
9510
|
}
|
|
9489
9511
|
function Xf(e) {
|
|
9490
9512
|
const t = [], n = e.data, r = e;
|
|
9491
|
-
return r.data =
|
|
9513
|
+
return r.data = kr(n, t), r.attachments = t.length, { packet: r, buffers: t };
|
|
9492
9514
|
}
|
|
9493
|
-
function
|
|
9515
|
+
function kr(e, t) {
|
|
9494
9516
|
if (!e)
|
|
9495
9517
|
return e;
|
|
9496
|
-
if (
|
|
9518
|
+
if (Yr(e)) {
|
|
9497
9519
|
const n = { _placeholder: !0, num: t.length };
|
|
9498
9520
|
return t.push(e), n;
|
|
9499
9521
|
} else if (Array.isArray(e)) {
|
|
9500
9522
|
const n = new Array(e.length);
|
|
9501
9523
|
for (let r = 0; r < e.length; r++)
|
|
9502
|
-
n[r] =
|
|
9524
|
+
n[r] = kr(e[r], t);
|
|
9503
9525
|
return n;
|
|
9504
9526
|
} else if (typeof e == "object" && !(e instanceof Date)) {
|
|
9505
9527
|
const n = {};
|
|
9506
9528
|
for (const r in e)
|
|
9507
|
-
Object.prototype.hasOwnProperty.call(e, r) && (n[r] =
|
|
9529
|
+
Object.prototype.hasOwnProperty.call(e, r) && (n[r] = kr(e[r], t));
|
|
9508
9530
|
return n;
|
|
9509
9531
|
}
|
|
9510
9532
|
return e;
|
|
9511
9533
|
}
|
|
9512
9534
|
function Jf(e, t) {
|
|
9513
|
-
return e.data =
|
|
9535
|
+
return e.data = Cr(e.data, t), delete e.attachments, e;
|
|
9514
9536
|
}
|
|
9515
|
-
function
|
|
9537
|
+
function Cr(e, t) {
|
|
9516
9538
|
if (!e)
|
|
9517
9539
|
return e;
|
|
9518
9540
|
if (e && e._placeholder === !0) {
|
|
@@ -9521,10 +9543,10 @@ function Er(e, t) {
|
|
|
9521
9543
|
throw new Error("illegal attachments");
|
|
9522
9544
|
} else if (Array.isArray(e))
|
|
9523
9545
|
for (let n = 0; n < e.length; n++)
|
|
9524
|
-
e[n] =
|
|
9546
|
+
e[n] = Cr(e[n], t);
|
|
9525
9547
|
else if (typeof e == "object")
|
|
9526
9548
|
for (const n in e)
|
|
9527
|
-
Object.prototype.hasOwnProperty.call(e, n) && (e[n] =
|
|
9549
|
+
Object.prototype.hasOwnProperty.call(e, n) && (e[n] = Cr(e[n], t));
|
|
9528
9550
|
return e;
|
|
9529
9551
|
}
|
|
9530
9552
|
const Zf = [
|
|
@@ -9580,10 +9602,10 @@ class eh {
|
|
|
9580
9602
|
return o.unshift(r), o;
|
|
9581
9603
|
}
|
|
9582
9604
|
}
|
|
9583
|
-
function
|
|
9605
|
+
function Yo(e) {
|
|
9584
9606
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
9585
9607
|
}
|
|
9586
|
-
class
|
|
9608
|
+
class Xr extends Z {
|
|
9587
9609
|
/**
|
|
9588
9610
|
* Decoder constructor
|
|
9589
9611
|
*
|
|
@@ -9605,7 +9627,7 @@ class Yr extends Z {
|
|
|
9605
9627
|
n = this.decodeString(t);
|
|
9606
9628
|
const r = n.type === z.BINARY_EVENT;
|
|
9607
9629
|
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 (
|
|
9630
|
+
} else if (Yr(t) || t.base64)
|
|
9609
9631
|
if (this.reconstructor)
|
|
9610
9632
|
n = this.reconstructor.takeBinaryData(t), n && (this.reconstructor = null, super.emitReserved("decoded", n));
|
|
9611
9633
|
else
|
|
@@ -9658,7 +9680,7 @@ class Yr extends Z {
|
|
|
9658
9680
|
}
|
|
9659
9681
|
if (t.charAt(++n)) {
|
|
9660
9682
|
const i = this.tryParse(t.substr(n));
|
|
9661
|
-
if (
|
|
9683
|
+
if (Xr.isPayloadValid(r.type, i))
|
|
9662
9684
|
r.data = i;
|
|
9663
9685
|
else
|
|
9664
9686
|
throw new Error("invalid payload");
|
|
@@ -9675,11 +9697,11 @@ class Yr extends Z {
|
|
|
9675
9697
|
static isPayloadValid(t, n) {
|
|
9676
9698
|
switch (t) {
|
|
9677
9699
|
case z.CONNECT:
|
|
9678
|
-
return
|
|
9700
|
+
return Yo(n);
|
|
9679
9701
|
case z.DISCONNECT:
|
|
9680
9702
|
return n === void 0;
|
|
9681
9703
|
case z.CONNECT_ERROR:
|
|
9682
|
-
return typeof n == "string" ||
|
|
9704
|
+
return typeof n == "string" || Yo(n);
|
|
9683
9705
|
case z.EVENT:
|
|
9684
9706
|
case z.BINARY_EVENT:
|
|
9685
9707
|
return Array.isArray(n) && (typeof n[0] == "number" || typeof n[0] == "string" && Zf.indexOf(n[0]) === -1);
|
|
@@ -9723,7 +9745,7 @@ class th {
|
|
|
9723
9745
|
}
|
|
9724
9746
|
const nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9725
9747
|
__proto__: null,
|
|
9726
|
-
Decoder:
|
|
9748
|
+
Decoder: Xr,
|
|
9727
9749
|
Encoder: eh,
|
|
9728
9750
|
get PacketType() {
|
|
9729
9751
|
return z;
|
|
@@ -10359,10 +10381,10 @@ Et.prototype.setMax = function(e) {
|
|
|
10359
10381
|
Et.prototype.setJitter = function(e) {
|
|
10360
10382
|
this.jitter = e;
|
|
10361
10383
|
};
|
|
10362
|
-
class
|
|
10384
|
+
class Or extends Z {
|
|
10363
10385
|
constructor(t, n) {
|
|
10364
10386
|
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,
|
|
10387
|
+
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
10388
|
min: this.reconnectionDelay(),
|
|
10367
10389
|
max: this.reconnectionDelayMax(),
|
|
10368
10390
|
jitter: this.randomizationFactor()
|
|
@@ -10480,7 +10502,7 @@ class kr extends Z {
|
|
|
10480
10502
|
* @private
|
|
10481
10503
|
*/
|
|
10482
10504
|
ondecoded(t) {
|
|
10483
|
-
|
|
10505
|
+
Nn(() => {
|
|
10484
10506
|
this.emitReserved("packet", t);
|
|
10485
10507
|
}, this.setTimeoutFn);
|
|
10486
10508
|
}
|
|
@@ -10602,10 +10624,10 @@ function fn(e, t) {
|
|
|
10602
10624
|
typeof e == "object" && (t = e, e = void 0), t = t || {};
|
|
10603
10625
|
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
10626
|
let l;
|
|
10605
|
-
return a ? l = new
|
|
10627
|
+
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
10628
|
}
|
|
10607
10629
|
Object.assign(fn, {
|
|
10608
|
-
Manager:
|
|
10630
|
+
Manager: Or,
|
|
10609
10631
|
Socket: Is,
|
|
10610
10632
|
io: fn,
|
|
10611
10633
|
connect: fn
|
|
@@ -10658,18 +10680,18 @@ const Rs = 1e3 * 60 * 60 * 24, [_n, $s] = Ti(
|
|
|
10658
10680
|
...Ns,
|
|
10659
10681
|
[t()]: e
|
|
10660
10682
|
});
|
|
10661
|
-
}, [ah,
|
|
10683
|
+
}, [ah, er] = _(!1), [lh, Xo] = _(!1), zs = [], Jo = () => {
|
|
10662
10684
|
zs.forEach((e) => e());
|
|
10663
|
-
}, ch = (e) => zs.push(e),
|
|
10685
|
+
}, ch = (e) => zs.push(e), Pr = (e) => {
|
|
10664
10686
|
const t = af(e);
|
|
10665
10687
|
if (oh(t), t.type === "media") {
|
|
10666
|
-
setTimeout(
|
|
10688
|
+
setTimeout(Jo, 200);
|
|
10667
10689
|
return;
|
|
10668
10690
|
}
|
|
10669
|
-
|
|
10691
|
+
Jo();
|
|
10670
10692
|
}, uh = (e, t) => {
|
|
10671
10693
|
const { chatWidget: n } = te(), r = Ks();
|
|
10672
|
-
e.trim() && (
|
|
10694
|
+
e.trim() && (Pr({
|
|
10673
10695
|
text: e,
|
|
10674
10696
|
type: "text",
|
|
10675
10697
|
origin: "user",
|
|
@@ -10680,25 +10702,25 @@ const Rs = 1e3 * 60 * 60 * 24, [_n, $s] = Ti(
|
|
|
10680
10702
|
interactionId: o.interactionId
|
|
10681
10703
|
});
|
|
10682
10704
|
for (const i of o.messages)
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
}),
|
|
10686
|
-
console.error(o),
|
|
10705
|
+
Pr(i);
|
|
10706
|
+
er(!1), lf(o.debug);
|
|
10707
|
+
}), er(!0), cf(e, t, n()?._id).catch((o) => {
|
|
10708
|
+
console.error(o), er(!1);
|
|
10687
10709
|
}));
|
|
10688
10710
|
}, dh = () => {
|
|
10689
10711
|
const { chatWidget: e } = te(), t = Ks();
|
|
10690
|
-
|
|
10712
|
+
Xo(!0), ih(), uf(
|
|
10691
10713
|
e()?._id,
|
|
10692
10714
|
t.contactId,
|
|
10693
10715
|
t.interactionId
|
|
10694
10716
|
).finally(() => {
|
|
10695
|
-
Bs({}),
|
|
10717
|
+
Bs({}), Xo(!1), fh();
|
|
10696
10718
|
});
|
|
10697
10719
|
}, fh = () => {
|
|
10698
10720
|
const { chatWidget: e } = te();
|
|
10699
10721
|
if (Fs().length === 0 && e()?.balloonMessage) {
|
|
10700
10722
|
const n = e()?.balloonMessage;
|
|
10701
|
-
n &&
|
|
10723
|
+
n && Pr({
|
|
10702
10724
|
text: n,
|
|
10703
10725
|
type: "text",
|
|
10704
10726
|
origin: "bot",
|
|
@@ -10718,8 +10740,8 @@ const gh = () => {
|
|
|
10718
10740
|
const {
|
|
10719
10741
|
clearMessages: e
|
|
10720
10742
|
} = Xe();
|
|
10721
|
-
|
|
10722
|
-
const [t, n] =
|
|
10743
|
+
_(!1);
|
|
10744
|
+
const [t, n] = _(!1);
|
|
10723
10745
|
return p(nf, {
|
|
10724
10746
|
get open() {
|
|
10725
10747
|
return t();
|
|
@@ -10749,7 +10771,7 @@ const gh = () => {
|
|
|
10749
10771
|
size: 14
|
|
10750
10772
|
}), (() => {
|
|
10751
10773
|
var r = hh();
|
|
10752
|
-
return A(r, () =>
|
|
10774
|
+
return A(r, () => ut("restart")), r;
|
|
10753
10775
|
})()];
|
|
10754
10776
|
}
|
|
10755
10777
|
});
|
|
@@ -10777,10 +10799,10 @@ function yh(e) {
|
|
|
10777
10799
|
}, e);
|
|
10778
10800
|
}
|
|
10779
10801
|
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
|
|
10802
|
+
const Jr = () => {
|
|
10781
10803
|
const {
|
|
10782
10804
|
chatWidget: e
|
|
10783
|
-
} = te(), [t, n] =
|
|
10805
|
+
} = te(), [t, n] = _(!1), r = () => {
|
|
10784
10806
|
const i = xn();
|
|
10785
10807
|
i && (t() ? document.exitFullscreen() : i.requestFullscreen(), n(!t()));
|
|
10786
10808
|
};
|
|
@@ -10850,7 +10872,7 @@ const Vs = ({
|
|
|
10850
10872
|
anchor: t = "end"
|
|
10851
10873
|
}) => (() => {
|
|
10852
10874
|
var n = wh();
|
|
10853
|
-
return
|
|
10875
|
+
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
10876
|
hour: "2-digit",
|
|
10855
10877
|
minute: "2-digit"
|
|
10856
10878
|
})), n;
|
|
@@ -10872,7 +10894,7 @@ const kt = (e) => {
|
|
|
10872
10894
|
let n = e.children?.toString();
|
|
10873
10895
|
return n && (n = $l(Fl(n))), (() => {
|
|
10874
10896
|
var r = Sh();
|
|
10875
|
-
return r.innerHTML = n,
|
|
10897
|
+
return r.innerHTML = n, nt(r, T({
|
|
10876
10898
|
get class() {
|
|
10877
10899
|
return Ye("whitespace-pre-line", e.class);
|
|
10878
10900
|
}
|
|
@@ -10887,7 +10909,7 @@ const kh = ({
|
|
|
10887
10909
|
let n;
|
|
10888
10910
|
const {
|
|
10889
10911
|
pushMessage: r
|
|
10890
|
-
} = Xe(), [o, i] =
|
|
10912
|
+
} = Xe(), [o, i] = _(!1), s = (l = !0) => {
|
|
10891
10913
|
if (n) {
|
|
10892
10914
|
const c = n.clientWidth / 2;
|
|
10893
10915
|
n.scrollTo({
|
|
@@ -10922,7 +10944,7 @@ const kh = ({
|
|
|
10922
10944
|
}
|
|
10923
10945
|
}), u);
|
|
10924
10946
|
var d = n;
|
|
10925
|
-
return typeof d == "function" ? yi(d, u) : n = u, A(u, p(
|
|
10947
|
+
return typeof d == "function" ? yi(d, u) : n = u, A(u, p(ht, {
|
|
10926
10948
|
each: e,
|
|
10927
10949
|
children: (h) => p(we, {
|
|
10928
10950
|
variant: "outline",
|
|
@@ -10951,16 +10973,16 @@ const kh = ({
|
|
|
10951
10973
|
}
|
|
10952
10974
|
});
|
|
10953
10975
|
}
|
|
10954
|
-
}), null), ee(() =>
|
|
10976
|
+
}), null), ee(() => gt(c, `flex items-center justify-center max-w-64 mx-[-1rem] ${o() && "opacity-50"}`)), l;
|
|
10955
10977
|
})();
|
|
10956
10978
|
};
|
|
10957
10979
|
var Ch = /* @__PURE__ */ L('<div class="flex flex-col"><span>'), Oh = /* @__PURE__ */ L("<a target=_blank><img><span></span><span>");
|
|
10958
|
-
const
|
|
10980
|
+
const Ph = ({
|
|
10959
10981
|
options: e,
|
|
10960
10982
|
text: t
|
|
10961
10983
|
}) => (() => {
|
|
10962
10984
|
var n = Ch(), r = n.firstChild;
|
|
10963
|
-
return A(r, () => t?.trim()), A(n, p(
|
|
10985
|
+
return A(r, () => t?.trim()), A(n, p(ht, {
|
|
10964
10986
|
each: e,
|
|
10965
10987
|
children: (o) => (() => {
|
|
10966
10988
|
var i = Oh(), s = i.firstChild, a = s.nextSibling, l = a.nextSibling;
|
|
@@ -10974,18 +10996,18 @@ const _h = ({
|
|
|
10974
10996
|
})()
|
|
10975
10997
|
}), null), n;
|
|
10976
10998
|
})();
|
|
10977
|
-
var
|
|
10999
|
+
var _h = /* @__PURE__ */ L("<a target=_blank>");
|
|
10978
11000
|
const Ah = ({
|
|
10979
11001
|
url: e,
|
|
10980
11002
|
text: t
|
|
10981
11003
|
}) => (() => {
|
|
10982
|
-
var n =
|
|
11004
|
+
var n = _h();
|
|
10983
11005
|
return ae(n, "href", e), A(n, () => t?.trim()), n;
|
|
10984
11006
|
})();
|
|
10985
11007
|
var Th = (e) => {
|
|
10986
11008
|
const t = T({
|
|
10987
11009
|
initialRegistered: !1
|
|
10988
|
-
}, e), [n, r] =
|
|
11010
|
+
}, e), [n, r] = _(t.initialRegistered);
|
|
10989
11011
|
return [O(() => {
|
|
10990
11012
|
if (n())
|
|
10991
11013
|
return V(t.value);
|
|
@@ -10994,20 +11016,20 @@ var Th = (e) => {
|
|
|
10994
11016
|
}, () => {
|
|
10995
11017
|
r(!1);
|
|
10996
11018
|
}];
|
|
10997
|
-
},
|
|
11019
|
+
}, 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
11020
|
function Lh(e) {
|
|
10999
|
-
const [t, n] =
|
|
11021
|
+
const [t, n] = _(e.initialValue), r = () => e.value?.() !== void 0, o = () => r() ? e.value?.() : t();
|
|
11000
11022
|
return [o, (s) => W(() => {
|
|
11001
11023
|
let a;
|
|
11002
11024
|
return Ht(s) ? a = s(o()) : a = s, Object.is(a, o()) || (r() || n(a), e.onChange?.(a)), a;
|
|
11003
11025
|
})];
|
|
11004
11026
|
}
|
|
11005
|
-
var
|
|
11027
|
+
var _r = Lh, hn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
|
|
11006
11028
|
if (hn.has(e))
|
|
11007
11029
|
return hn.get(e);
|
|
11008
11030
|
const n = le(t);
|
|
11009
11031
|
return hn.set(e, n), n;
|
|
11010
|
-
},
|
|
11032
|
+
}, Zr = (e) => {
|
|
11011
11033
|
const t = hn.get(e);
|
|
11012
11034
|
if (t)
|
|
11013
11035
|
return pe(t);
|
|
@@ -11031,7 +11053,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11031
11053
|
const {
|
|
11032
11054
|
body: n
|
|
11033
11055
|
} = document;
|
|
11034
|
-
V(t.enabled) &&
|
|
11056
|
+
V(t.enabled) && br({
|
|
11035
11057
|
key: "no-pointer-events",
|
|
11036
11058
|
element: n,
|
|
11037
11059
|
style: {
|
|
@@ -11084,32 +11106,32 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11084
11106
|
}), Fh({
|
|
11085
11107
|
enabled: t.noOutsidePointerEvents
|
|
11086
11108
|
});
|
|
11087
|
-
}, zh = Bh,
|
|
11088
|
-
if (pe(
|
|
11089
|
-
return p(
|
|
11090
|
-
const r = Oe(), [o, i] =
|
|
11109
|
+
}, zh = Bh, Ar = le(), Vh = (e) => O(() => {
|
|
11110
|
+
if (pe(Ar))
|
|
11111
|
+
return p(Qo, e);
|
|
11112
|
+
const r = Oe(), [o, i] = _([r]), s = (l) => {
|
|
11091
11113
|
i((c) => [...c, l]);
|
|
11092
11114
|
}, a = (l) => {
|
|
11093
11115
|
i((c) => c.filter((u) => u !== l));
|
|
11094
11116
|
};
|
|
11095
|
-
return p(
|
|
11117
|
+
return p(Ar.Provider, {
|
|
11096
11118
|
value: {
|
|
11097
11119
|
layers: o,
|
|
11098
11120
|
onLayerShow: s,
|
|
11099
11121
|
onLayerDismiss: a
|
|
11100
11122
|
},
|
|
11101
11123
|
get children() {
|
|
11102
|
-
return p(
|
|
11124
|
+
return p(Qo, e);
|
|
11103
11125
|
}
|
|
11104
11126
|
});
|
|
11105
|
-
}),
|
|
11127
|
+
}), Qo = (e) => {
|
|
11106
11128
|
const t = T({
|
|
11107
11129
|
enabled: !0,
|
|
11108
11130
|
dismissOnEscapeKeyDown: !0,
|
|
11109
11131
|
dismissOnOutsidePointer: !0,
|
|
11110
11132
|
dismissOnOutsidePointerStrategy: "pointerup",
|
|
11111
11133
|
noOutsidePointerEvents: !0
|
|
11112
|
-
}, e), [n, r] = H(t, ["enabled", "children", "dismissOnEscapeKeyDown", "dismissOnOutsidePointer", "dismissOnOutsidePointerStrategy", "dismissOnOutsidePointerIgnore", "noOutsidePointerEvents", "onDismiss"]), o = pe(
|
|
11134
|
+
}, e), [n, r] = H(t, ["enabled", "children", "dismissOnEscapeKeyDown", "dismissOnOutsidePointer", "dismissOnOutsidePointerStrategy", "dismissOnOutsidePointerIgnore", "noOutsidePointerEvents", "onDismiss"]), o = pe(Ar), i = Oe();
|
|
11113
11135
|
M(() => {
|
|
11114
11136
|
n.enabled ? o.onLayerShow(i) : o.onLayerDismiss(i);
|
|
11115
11137
|
});
|
|
@@ -11135,12 +11157,12 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11135
11157
|
};
|
|
11136
11158
|
return W(() => l());
|
|
11137
11159
|
}, Uh = Vh, jh = () => {
|
|
11138
|
-
const [e, t] =
|
|
11160
|
+
const [e, t] = _(!1);
|
|
11139
11161
|
return M(() => t(!0)), e;
|
|
11140
|
-
}, Hh = jh, qh = (e, t) => (e && (Ht(e) ? e(t) : e[0](e[1], t)), t.defaultPrevented),
|
|
11162
|
+
}, 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
11163
|
for (const n of e)
|
|
11142
11164
|
n && n(...t);
|
|
11143
|
-
},
|
|
11165
|
+
}, zn = (...e) => Wh(e), re = (e) => e ? "" : void 0, Gh = "div", Yh = (e) => {
|
|
11144
11166
|
const [t, n] = H(e, ["as"]), r = O(() => t.as ?? Gh);
|
|
11145
11167
|
return O(() => {
|
|
11146
11168
|
const i = r();
|
|
@@ -11153,20 +11175,20 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11153
11175
|
}, n));
|
|
11154
11176
|
}
|
|
11155
11177
|
});
|
|
11156
|
-
},
|
|
11178
|
+
}, eo = Yh, Xh = (e) => {
|
|
11157
11179
|
let t, n = !1;
|
|
11158
11180
|
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] =
|
|
11181
|
+
}, Us = Xh, Jh = (e) => O(() => V(e.element)?.tagName.toLowerCase() || e.fallback), Zh = Jh, ei = "button", Qh = (e) => {
|
|
11182
|
+
const [t, n] = _(null), [r, o] = H(e, ["as", "ref", "type"]), i = Zh({
|
|
11161
11183
|
element: t,
|
|
11162
|
-
fallback:
|
|
11184
|
+
fallback: ei
|
|
11163
11185
|
}), s = O(() => Dh(i(), r.type));
|
|
11164
|
-
return p(
|
|
11186
|
+
return p(eo, T({
|
|
11165
11187
|
get as() {
|
|
11166
|
-
return r.as ??
|
|
11188
|
+
return r.as ?? ei;
|
|
11167
11189
|
},
|
|
11168
11190
|
ref(a) {
|
|
11169
|
-
var l =
|
|
11191
|
+
var l = zn(n, r.ref);
|
|
11170
11192
|
typeof l == "function" && l(a);
|
|
11171
11193
|
},
|
|
11172
11194
|
get type() {
|
|
@@ -11176,7 +11198,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11176
11198
|
return s() ? void 0 : "button";
|
|
11177
11199
|
}
|
|
11178
11200
|
}, o));
|
|
11179
|
-
}, eg = Qh, de = (e) => typeof e == "function" ? e() : e,
|
|
11201
|
+
}, 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
11202
|
bubbles: !1,
|
|
11181
11203
|
cancelable: !0
|
|
11182
11204
|
}, ng = (e) => {
|
|
@@ -11184,7 +11206,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11184
11206
|
enabled: !0,
|
|
11185
11207
|
observeChanges: !0,
|
|
11186
11208
|
restoreFocus: !0
|
|
11187
|
-
}, e), [n, r] =
|
|
11209
|
+
}, e), [n, r] = _(null), o = O(() => {
|
|
11188
11210
|
const f = n();
|
|
11189
11211
|
return f ? f[0] ?? null : null;
|
|
11190
11212
|
}), i = O(() => {
|
|
@@ -11232,7 +11254,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11232
11254
|
}, c = (f) => {
|
|
11233
11255
|
const g = de(t.initialFocusElement) ?? o() ?? f, y = t.onInitialFocus;
|
|
11234
11256
|
let w;
|
|
11235
|
-
y && (w = new CustomEvent(
|
|
11257
|
+
y && (w = new CustomEvent(tr, ti), f.addEventListener(tr, y), f.dispatchEvent(w), f.removeEventListener(tr, y)), w?.defaultPrevented !== !0 && An(() => g.focus());
|
|
11236
11258
|
}, u = (f) => {
|
|
11237
11259
|
f.key === "Tab" && f.shiftKey && (f.preventDefault(), i().focus());
|
|
11238
11260
|
}, d = (f) => {
|
|
@@ -11247,14 +11269,14 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11247
11269
|
return;
|
|
11248
11270
|
let w;
|
|
11249
11271
|
const b = t.onFinalFocus;
|
|
11250
|
-
b && (w = new CustomEvent(
|
|
11272
|
+
b && (w = new CustomEvent(nr, ti), f.addEventListener(nr, b), f.dispatchEvent(w), f.removeEventListener(nr, b)), w?.defaultPrevented !== !0 && An(() => y.focus());
|
|
11251
11273
|
};
|
|
11252
11274
|
}, rg = ng, og = rg, on = (e) => typeof e == "function" ? e() : e, ig = (e) => {
|
|
11253
11275
|
const t = O(() => {
|
|
11254
11276
|
const s = on(e.element);
|
|
11255
11277
|
if (s)
|
|
11256
11278
|
return getComputedStyle(s);
|
|
11257
|
-
}), n = () => t()?.animationName ?? "none", [r, o] =
|
|
11279
|
+
}), n = () => t()?.animationName ?? "none", [r, o] = _(on(e.show) ? "present" : "hidden");
|
|
11258
11280
|
let i = "none";
|
|
11259
11281
|
return M((s) => {
|
|
11260
11282
|
const a = on(e.show);
|
|
@@ -11282,19 +11304,19 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11282
11304
|
state: r,
|
|
11283
11305
|
setState: o
|
|
11284
11306
|
};
|
|
11285
|
-
}, sg = ig,
|
|
11307
|
+
}, 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
11308
|
if (!e) {
|
|
11287
11309
|
const n = pe(js);
|
|
11288
11310
|
if (!n)
|
|
11289
11311
|
throw new Error("[corvu]: Dialog context not found. Make sure to wrap Dialog components in <Dialog.Root>");
|
|
11290
11312
|
return n;
|
|
11291
11313
|
}
|
|
11292
|
-
const t =
|
|
11314
|
+
const t = Zr(`dialog-internal-${e}`);
|
|
11293
11315
|
if (!t)
|
|
11294
11316
|
throw new Error(`[corvu]: Dialog context with id "${e}" not found. Make sure to wrap Dialog components in <Dialog.Root contextId="${e}">`);
|
|
11295
11317
|
return t;
|
|
11296
11318
|
}, 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 = () =>
|
|
11319
|
+
const [t, n] = H(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-content"]), r = O(() => Ct(t.contextId)), o = () => Qr(
|
|
11298
11320
|
r().open,
|
|
11299
11321
|
// eslint-disable-next-line solid/reactivity
|
|
11300
11322
|
() => t.forceMount,
|
|
@@ -11341,9 +11363,9 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11341
11363
|
return o();
|
|
11342
11364
|
},
|
|
11343
11365
|
get children() {
|
|
11344
|
-
return p(
|
|
11366
|
+
return p(eo, T({
|
|
11345
11367
|
ref(l) {
|
|
11346
|
-
var c =
|
|
11368
|
+
var c = zn(r().setContentRef, t.ref);
|
|
11347
11369
|
typeof c == "function" && c(l);
|
|
11348
11370
|
},
|
|
11349
11371
|
get as() {
|
|
@@ -11392,7 +11414,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11392
11414
|
}
|
|
11393
11415
|
});
|
|
11394
11416
|
}, 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 = () =>
|
|
11417
|
+
const [t, n] = H(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-overlay"]), r = O(() => Ct(t.contextId)), o = () => Qr(
|
|
11396
11418
|
r().open,
|
|
11397
11419
|
// eslint-disable-next-line solid/reactivity
|
|
11398
11420
|
() => t.forceMount,
|
|
@@ -11410,12 +11432,12 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11410
11432
|
return o();
|
|
11411
11433
|
},
|
|
11412
11434
|
get children() {
|
|
11413
|
-
return p(
|
|
11435
|
+
return p(eo, T({
|
|
11414
11436
|
get as() {
|
|
11415
11437
|
return t.as ?? hg;
|
|
11416
11438
|
},
|
|
11417
11439
|
ref(a) {
|
|
11418
|
-
var l =
|
|
11440
|
+
var l = zn(r().setOverlayRef, t.ref);
|
|
11419
11441
|
typeof l == "function" && l(a);
|
|
11420
11442
|
},
|
|
11421
11443
|
"aria-hidden": "true",
|
|
@@ -11446,7 +11468,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11446
11468
|
}
|
|
11447
11469
|
});
|
|
11448
11470
|
}, pg = gg, mg = (e) => {
|
|
11449
|
-
const [t, n] = H(e, ["forceMount", "contextId", "children"]), r = O(() => Ct(t.contextId)), o = () =>
|
|
11471
|
+
const [t, n] = H(e, ["forceMount", "contextId", "children"]), r = O(() => Ct(t.contextId)), o = () => Qr(
|
|
11450
11472
|
r().open,
|
|
11451
11473
|
// eslint-disable-next-line solid/reactivity
|
|
11452
11474
|
() => t.forceMount,
|
|
@@ -11475,16 +11497,16 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11475
11497
|
})();
|
|
11476
11498
|
}
|
|
11477
11499
|
});
|
|
11478
|
-
}, yg = mg,
|
|
11500
|
+
}, yg = mg, rr = !0, bg = (e) => {
|
|
11479
11501
|
const t = T({
|
|
11480
11502
|
role: "dialog",
|
|
11481
11503
|
initialOpen: !1,
|
|
11482
11504
|
modal: !0,
|
|
11483
11505
|
closeOnEscapeKeyDown: !0,
|
|
11484
|
-
closeOnOutsidePointer: () => !!(e.modal ??
|
|
11506
|
+
closeOnOutsidePointer: () => !!(e.modal ?? rr),
|
|
11485
11507
|
closeOnOutsidePointerStrategy: "pointerup",
|
|
11486
|
-
noOutsidePointerEvents: () => !!(e.modal ??
|
|
11487
|
-
preventScroll: () => !!(e.modal ??
|
|
11508
|
+
noOutsidePointerEvents: () => !!(e.modal ?? rr),
|
|
11509
|
+
preventScroll: () => !!(e.modal ?? rr),
|
|
11488
11510
|
hideScrollbar: !0,
|
|
11489
11511
|
preventScrollbarShift: !0,
|
|
11490
11512
|
preventScrollbarShiftMode: "padding",
|
|
@@ -11492,22 +11514,22 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11492
11514
|
trapFocus: !0,
|
|
11493
11515
|
restoreFocus: !0,
|
|
11494
11516
|
dialogId: Oe()
|
|
11495
|
-
}, e), [n, r] =
|
|
11517
|
+
}, e), [n, r] = _r({
|
|
11496
11518
|
value: () => t.open,
|
|
11497
11519
|
initialValue: t.initialOpen,
|
|
11498
11520
|
onChange: t.onOpenChange
|
|
11499
|
-
}), [o, i, s] =
|
|
11521
|
+
}), [o, i, s] = Zo({
|
|
11500
11522
|
value: () => t.labelId ?? Oe()
|
|
11501
|
-
}), [a, l, c] =
|
|
11523
|
+
}), [a, l, c] = Zo({
|
|
11502
11524
|
value: () => t.descriptionId ?? Oe()
|
|
11503
|
-
}), [u, d] =
|
|
11525
|
+
}), [u, d] = _(null), [h, m] = _(null), [f, g] = _(null), {
|
|
11504
11526
|
present: y
|
|
11505
|
-
} =
|
|
11527
|
+
} = ni({
|
|
11506
11528
|
show: n,
|
|
11507
11529
|
element: h
|
|
11508
11530
|
}), {
|
|
11509
11531
|
present: w
|
|
11510
|
-
} =
|
|
11532
|
+
} = ni({
|
|
11511
11533
|
show: n,
|
|
11512
11534
|
element: f
|
|
11513
11535
|
});
|
|
@@ -11682,7 +11704,7 @@ var Or = Lh, hn = /* @__PURE__ */ new Map(), Nn = (e, t) => {
|
|
|
11682
11704
|
const [t, n] = H(e, ["as", "contextId", "ref", "onClick", "data-corvu-dialog-trigger"]), r = O(() => Ct(t.contextId));
|
|
11683
11705
|
return p(eg, T({
|
|
11684
11706
|
ref(i) {
|
|
11685
|
-
var s =
|
|
11707
|
+
var s = zn(r().setTriggerRef, t.ref);
|
|
11686
11708
|
typeof s == "function" && s(i);
|
|
11687
11709
|
},
|
|
11688
11710
|
get as() {
|
|
@@ -11713,7 +11735,7 @@ function Eg(e) {
|
|
|
11713
11735
|
const t = T({
|
|
11714
11736
|
enabled: !0,
|
|
11715
11737
|
dimension: "both"
|
|
11716
|
-
}, e), [n, r] =
|
|
11738
|
+
}, e), [n, r] = _(!1), [o, i] = _(null);
|
|
11717
11739
|
let s = null;
|
|
11718
11740
|
M(() => {
|
|
11719
11741
|
const c = de(t.element), u = de(t.enabled);
|
|
@@ -11730,11 +11752,11 @@ function Eg(e) {
|
|
|
11730
11752
|
const u = c.target, d = [u.offsetWidth, u.offsetHeight], h = de(t.dimension);
|
|
11731
11753
|
h === "both" ? s ? s[0] !== d[0] && s[1] !== d[1] && (ke(() => {
|
|
11732
11754
|
i(s), r(!0);
|
|
11733
|
-
}),
|
|
11755
|
+
}), An(() => {
|
|
11734
11756
|
i(d), parseFloat(getComputedStyle(c.target).transitionDuration) === 0 && l();
|
|
11735
11757
|
})) : s = d : s ? sn(h, s) !== sn(h, d) && (ke(() => {
|
|
11736
11758
|
i(sn(h, s)), r(!0);
|
|
11737
|
-
}),
|
|
11759
|
+
}), An(() => {
|
|
11738
11760
|
i(sn(h, d)), parseFloat(getComputedStyle(c.target).transitionDuration) === 0 && l();
|
|
11739
11761
|
})) : s = d;
|
|
11740
11762
|
}, l = () => {
|
|
@@ -11758,7 +11780,7 @@ var sn = (e, t) => {
|
|
|
11758
11780
|
return t[1];
|
|
11759
11781
|
}
|
|
11760
11782
|
}, kg = Eg, Cg = kg, Og = (e, t) => e.length > 0 ? () => e(W(t)) : e;
|
|
11761
|
-
function
|
|
11783
|
+
function Pg(e, t) {
|
|
11762
11784
|
let n = 0;
|
|
11763
11785
|
const r = e.map(
|
|
11764
11786
|
(o, i) => O(
|
|
@@ -11769,41 +11791,41 @@ function _g(e, t) {
|
|
|
11769
11791
|
);
|
|
11770
11792
|
return O(() => r.map((o) => o())[n], void 0, t);
|
|
11771
11793
|
}
|
|
11772
|
-
function
|
|
11794
|
+
function ri(e, t, n) {
|
|
11773
11795
|
let r = () => t;
|
|
11774
|
-
const [o, i] =
|
|
11796
|
+
const [o, i] = _(t, Bi), s = O(
|
|
11775
11797
|
Og(e, () => r()),
|
|
11776
11798
|
t
|
|
11777
11799
|
);
|
|
11778
11800
|
return [
|
|
11779
|
-
r =
|
|
11801
|
+
r = Pg([o, s], n),
|
|
11780
11802
|
(a) => i(
|
|
11781
11803
|
() => typeof a == "function" ? a(W(r)) : a
|
|
11782
11804
|
)
|
|
11783
11805
|
];
|
|
11784
11806
|
}
|
|
11785
|
-
var
|
|
11807
|
+
var _g = (e) => p(Sg, T({
|
|
11786
11808
|
"data-corvu-dialog-trigger": void 0,
|
|
11787
11809
|
"data-corvu-drawer-trigger": ""
|
|
11788
|
-
}, e)), Hs = le(), Ag = (e) => e ?
|
|
11810
|
+
}, e)), Hs = le(), Ag = (e) => e ? Bn(`drawer-${e}`) : Hs, Tg = (e) => {
|
|
11789
11811
|
if (!e) {
|
|
11790
11812
|
const n = pe(Hs);
|
|
11791
11813
|
if (!n)
|
|
11792
11814
|
throw new Error("[corvu]: Drawer context not found. Make sure to wrap Drawer components in <Drawer.Root>");
|
|
11793
11815
|
return n;
|
|
11794
11816
|
}
|
|
11795
|
-
const t =
|
|
11817
|
+
const t = Zr(`drawer-${e}`);
|
|
11796
11818
|
if (!t)
|
|
11797
11819
|
throw new Error(`[corvu]: Drawer context with id "${e}" not found. Make sure to wrap Drawer components in <Drawer.Root contextId="${e}">`);
|
|
11798
11820
|
return t;
|
|
11799
|
-
}, qs = le(), Mg = (e) => e ?
|
|
11821
|
+
}, qs = le(), Mg = (e) => e ? Bn(`drawer-internal-${e}`) : qs, Ws = (e) => {
|
|
11800
11822
|
if (!e) {
|
|
11801
11823
|
const n = pe(qs);
|
|
11802
11824
|
if (!n)
|
|
11803
11825
|
throw new Error("[corvu]: Drawer context not found. Make sure to wrap Drawer components in <Drawer.Root>");
|
|
11804
11826
|
return n;
|
|
11805
11827
|
}
|
|
11806
|
-
const t =
|
|
11828
|
+
const t = Zr(`drawer-internal-${e}`);
|
|
11807
11829
|
if (!t)
|
|
11808
11830
|
throw new Error(`[corvu]: Drawer context with id "${e}" not found. Make sure to wrap Drawer components in <Drawer.Root contextId="${e}">`);
|
|
11809
11831
|
return t;
|
|
@@ -11827,9 +11849,9 @@ var Pg = (e) => p(Sg, T({
|
|
|
11827
11849
|
throw new Error(`[corvu] Snap and break points must be a number or a string ending with 'px'. Got ${e}`);
|
|
11828
11850
|
return t - parseInt(e, 10);
|
|
11829
11851
|
}, Dg = (e, t, n, r) => {
|
|
11830
|
-
const o =
|
|
11852
|
+
const o = oi("upper", e, r ? n : t), i = oi("lower", e, r ? n : t);
|
|
11831
11853
|
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
|
-
},
|
|
11854
|
+
}, 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
11855
|
let n = e, r = !1;
|
|
11834
11856
|
do {
|
|
11835
11857
|
if (n.hasAttribute("data-corvu-no-drag") || n.type === "range")
|
|
@@ -11855,15 +11877,15 @@ var Pg = (e) => p(Sg, T({
|
|
|
11855
11877
|
transitionResize: !1,
|
|
11856
11878
|
closeOnOutsidePointer: !0,
|
|
11857
11879
|
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] =
|
|
11880
|
+
}, 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
11881
|
value: () => n.open,
|
|
11860
11882
|
initialValue: n.initialOpen,
|
|
11861
11883
|
onChange: n.onOpenChange
|
|
11862
|
-
}), [s, a] =
|
|
11884
|
+
}), [s, a] = _r({
|
|
11863
11885
|
value: () => n.activeSnapPoint,
|
|
11864
11886
|
initialValue: 0,
|
|
11865
11887
|
onChange: n.onActiveSnapPointChange
|
|
11866
|
-
}), [l, c] =
|
|
11888
|
+
}), [l, c] = _(), {
|
|
11867
11889
|
transitioning: u,
|
|
11868
11890
|
transitionSize: d
|
|
11869
11891
|
} = Cg({
|
|
@@ -11879,21 +11901,21 @@ var Pg = (e) => p(Sg, T({
|
|
|
11879
11901
|
return "width";
|
|
11880
11902
|
}
|
|
11881
11903
|
}
|
|
11882
|
-
}), [h, m] =
|
|
11904
|
+
}), [h, m] = _(!1), [f, g] = ri(() => u() ? "resizing" : null), y = O(() => {
|
|
11883
11905
|
const $ = l()?.contentRef();
|
|
11884
11906
|
if ($)
|
|
11885
11907
|
return getComputedStyle($);
|
|
11886
|
-
}), [w, b] =
|
|
11908
|
+
}), [w, b] = _(!1);
|
|
11887
11909
|
M(() => {
|
|
11888
11910
|
const $ = o();
|
|
11889
11911
|
W(() => {
|
|
11890
|
-
w() !== $ && ($ ? (b(!0),
|
|
11912
|
+
w() !== $ && ($ ? (b(!0), Lo(() => {
|
|
11891
11913
|
ke(() => {
|
|
11892
11914
|
g("opening"), a(n.defaultSnapPoint);
|
|
11893
11915
|
}), parseFloat(y().transitionDuration) === 0 && g(null);
|
|
11894
11916
|
})) : (ke(() => {
|
|
11895
11917
|
g("closing"), a(0);
|
|
11896
|
-
}),
|
|
11918
|
+
}), Lo(() => {
|
|
11897
11919
|
parseFloat(y().transitionDuration) === 0 && v();
|
|
11898
11920
|
})));
|
|
11899
11921
|
});
|
|
@@ -11902,7 +11924,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
11902
11924
|
ke(() => {
|
|
11903
11925
|
b(!1), g(null);
|
|
11904
11926
|
});
|
|
11905
|
-
}, [x,
|
|
11927
|
+
}, [x, P] = _(0);
|
|
11906
11928
|
M(() => {
|
|
11907
11929
|
const $ = l()?.contentRef();
|
|
11908
11930
|
if (!$)
|
|
@@ -11923,16 +11945,16 @@ var Pg = (e) => p(Sg, T({
|
|
|
11923
11945
|
case "bottom":
|
|
11924
11946
|
if (U === $.offsetHeight)
|
|
11925
11947
|
return;
|
|
11926
|
-
|
|
11948
|
+
P($.offsetHeight);
|
|
11927
11949
|
break;
|
|
11928
11950
|
case "left":
|
|
11929
11951
|
case "right":
|
|
11930
11952
|
if (U === $.offsetWidth)
|
|
11931
11953
|
return;
|
|
11932
|
-
|
|
11954
|
+
P($.offsetWidth);
|
|
11933
11955
|
break;
|
|
11934
11956
|
}
|
|
11935
|
-
}, R = O(() => Gs(s(), x())), [C, K] =
|
|
11957
|
+
}, R = O(() => Gs(s(), x())), [C, K] = ri(() => R().offset), I = O(() => x() ? (x() - C()) / x() : 0), D = {
|
|
11936
11958
|
get snapPoints() {
|
|
11937
11959
|
return n.snapPoints;
|
|
11938
11960
|
},
|
|
@@ -12098,7 +12120,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
12098
12120
|
w(v.target, v.clientX, v.clientY);
|
|
12099
12121
|
}, y = (v) => {
|
|
12100
12122
|
v.touches[0] && w(v.target, v.touches[0].clientX, v.touches[0].clientY);
|
|
12101
|
-
}, w = (v, x,
|
|
12123
|
+
}, w = (v, x, P) => {
|
|
12102
12124
|
if (!r)
|
|
12103
12125
|
return;
|
|
12104
12126
|
if (!l().isDragging() || o === null) {
|
|
@@ -12108,7 +12130,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
12108
12130
|
return;
|
|
12109
12131
|
}
|
|
12110
12132
|
if (l().handleScrollableElements()) {
|
|
12111
|
-
const C = [x,
|
|
12133
|
+
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
12134
|
if (Math.abs(I) < 0.3)
|
|
12113
12135
|
return;
|
|
12114
12136
|
const D = c().contentRef(), [ne, X] = rs(v, K, D);
|
|
@@ -12120,7 +12142,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
12120
12142
|
switch (l().side()) {
|
|
12121
12143
|
case "top":
|
|
12122
12144
|
case "bottom":
|
|
12123
|
-
o =
|
|
12145
|
+
o = P;
|
|
12124
12146
|
break;
|
|
12125
12147
|
case "right":
|
|
12126
12148
|
case "left":
|
|
@@ -12133,10 +12155,10 @@ var Pg = (e) => p(Sg, T({
|
|
|
12133
12155
|
let S;
|
|
12134
12156
|
switch (l().side()) {
|
|
12135
12157
|
case "top":
|
|
12136
|
-
S = -(o -
|
|
12158
|
+
S = -(o - P);
|
|
12137
12159
|
break;
|
|
12138
12160
|
case "bottom":
|
|
12139
|
-
S = o -
|
|
12161
|
+
S = o - P;
|
|
12140
12162
|
break;
|
|
12141
12163
|
case "right":
|
|
12142
12164
|
S = o - x;
|
|
@@ -12151,7 +12173,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
12151
12173
|
}, b = () => {
|
|
12152
12174
|
if (r = !1, !l().isDragging())
|
|
12153
12175
|
return;
|
|
12154
|
-
const v = /* @__PURE__ */ new Date(), x = l().velocityFunction(-(a - l().translate()), v.getTime() - s.getTime() || 1),
|
|
12176
|
+
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
12177
|
ke(() => {
|
|
12156
12178
|
l().setTransitionState("snapping"), l().setIsDragging(!1);
|
|
12157
12179
|
}), ke(() => {
|
|
@@ -12220,7 +12242,7 @@ var Pg = (e) => p(Sg, T({
|
|
|
12220
12242
|
"data-corvu-drawer-overlay": ""
|
|
12221
12243
|
}, n));
|
|
12222
12244
|
}, Bg = Kg, zg = /* @__PURE__ */ L('<div class="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted">');
|
|
12223
|
-
const Vg = $g, Ug =
|
|
12245
|
+
const Vg = $g, Ug = _g, jg = yg, Hg = (e) => {
|
|
12224
12246
|
const [, t] = H(e, ["class"]), n = Tg();
|
|
12225
12247
|
return p(Bg, T({
|
|
12226
12248
|
get class() {
|
|
@@ -12260,7 +12282,7 @@ const Zg = ({
|
|
|
12260
12282
|
}) => {
|
|
12261
12283
|
const {
|
|
12262
12284
|
pushMessage: r
|
|
12263
|
-
} = Xe(), [o, i] =
|
|
12285
|
+
} = Xe(), [o, i] = _(!1), [s, a] = _(!1), [l, c] = _(), u = (h, m) => {
|
|
12264
12286
|
a(!1), i(!0), r(h, m);
|
|
12265
12287
|
}, d = (h) => {
|
|
12266
12288
|
const m = h.composedPath();
|
|
@@ -12288,21 +12310,21 @@ const Zg = ({
|
|
|
12288
12310
|
variant: "outline",
|
|
12289
12311
|
class: "w-full text-nowrap",
|
|
12290
12312
|
get children() {
|
|
12291
|
-
return n?.trim() ??
|
|
12313
|
+
return n?.trim() ?? ut("selectOption");
|
|
12292
12314
|
}
|
|
12293
12315
|
}), p(qg, {
|
|
12294
12316
|
class: "pb-2 px-2 flex flex-col items-center justify-center",
|
|
12295
12317
|
get children() {
|
|
12296
12318
|
return [(() => {
|
|
12297
12319
|
var f = Wg();
|
|
12298
|
-
return A(f, () => n?.trim() ??
|
|
12320
|
+
return A(f, () => n?.trim() ?? ut("selectOption")), f;
|
|
12299
12321
|
})(), (() => {
|
|
12300
12322
|
var f = Gg();
|
|
12301
|
-
return A(f, p(
|
|
12323
|
+
return A(f, p(ht, {
|
|
12302
12324
|
each: e,
|
|
12303
12325
|
children: (g) => (() => {
|
|
12304
12326
|
var y = Xg(), w = y.firstChild;
|
|
12305
|
-
return A(w, () => g.label?.trim() ?? ""), A(y, p(
|
|
12327
|
+
return A(w, () => g.label?.trim() ?? ""), A(y, p(ht, {
|
|
12306
12328
|
get each() {
|
|
12307
12329
|
return g.items;
|
|
12308
12330
|
},
|
|
@@ -12346,13 +12368,13 @@ const Zg = ({
|
|
|
12346
12368
|
onClick: () => u(l().label, l().value),
|
|
12347
12369
|
class: "w-11/12 mt-4 hover:bg-primary shadow-sm hover:shadow-primary transition-shadow",
|
|
12348
12370
|
get children() {
|
|
12349
|
-
return
|
|
12371
|
+
return ut("send");
|
|
12350
12372
|
}
|
|
12351
12373
|
})];
|
|
12352
12374
|
}
|
|
12353
12375
|
})];
|
|
12354
12376
|
}
|
|
12355
|
-
})), ee(() =>
|
|
12377
|
+
})), ee(() => gt(m, o() ? "opacity-50" : "")), h;
|
|
12356
12378
|
})();
|
|
12357
12379
|
};
|
|
12358
12380
|
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 +12431,7 @@ const sp = (e) => (() => {
|
|
|
12409
12431
|
}), t;
|
|
12410
12432
|
})();
|
|
12411
12433
|
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(),
|
|
12434
|
+
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
12435
|
text: e
|
|
12414
12436
|
}) => p(kt, {
|
|
12415
12437
|
get children() {
|
|
@@ -12422,11 +12444,11 @@ const cp = (e) => p(xh, {
|
|
|
12422
12444
|
return e.createdAt;
|
|
12423
12445
|
},
|
|
12424
12446
|
get children() {
|
|
12425
|
-
return e.type === "text" ? p(
|
|
12447
|
+
return e.type === "text" ? p(Tr, {
|
|
12426
12448
|
get text() {
|
|
12427
12449
|
return e.text;
|
|
12428
12450
|
}
|
|
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(
|
|
12451
|
+
}) : 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
12452
|
get text() {
|
|
12431
12453
|
return e.text;
|
|
12432
12454
|
}
|
|
@@ -12455,7 +12477,7 @@ const pp = (e) => p(hp, {
|
|
|
12455
12477
|
return e.createdAt;
|
|
12456
12478
|
},
|
|
12457
12479
|
get children() {
|
|
12458
|
-
return e.type === "text" ? p(
|
|
12480
|
+
return e.type === "text" ? p(Tr, {
|
|
12459
12481
|
get text() {
|
|
12460
12482
|
return e.text;
|
|
12461
12483
|
}
|
|
@@ -12470,7 +12492,7 @@ function bp(e) {
|
|
|
12470
12492
|
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
12493
|
}, e);
|
|
12472
12494
|
}
|
|
12473
|
-
function
|
|
12495
|
+
function ft(e) {
|
|
12474
12496
|
return ce({
|
|
12475
12497
|
a: { viewBox: "0 0 512 512" },
|
|
12476
12498
|
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 +12501,16 @@ function ht(e) {
|
|
|
12479
12501
|
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
12502
|
const vp = () => (() => {
|
|
12481
12503
|
var e = wp(), t = e.firstChild;
|
|
12482
|
-
return A(t, p(
|
|
12504
|
+
return A(t, p(ft, {
|
|
12483
12505
|
class: "size-2 animate-bounce"
|
|
12484
|
-
}), null), A(t, p(
|
|
12506
|
+
}), null), A(t, p(ft, {
|
|
12485
12507
|
class: "size-2 animate-bounce delay-150"
|
|
12486
|
-
}), null), A(t, p(
|
|
12508
|
+
}), null), A(t, p(ft, {
|
|
12487
12509
|
class: "size-2 animate-bounce delay-300"
|
|
12488
12510
|
}), null), e;
|
|
12489
12511
|
})();
|
|
12490
12512
|
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
|
|
12513
|
+
const to = () => {
|
|
12492
12514
|
let e;
|
|
12493
12515
|
const {
|
|
12494
12516
|
getMessages: t,
|
|
@@ -12505,14 +12527,14 @@ const eo = () => {
|
|
|
12505
12527
|
i(200);
|
|
12506
12528
|
}), n(i), o(() => i(200)), (() => {
|
|
12507
12529
|
var s = xp(), a = e;
|
|
12508
|
-
return typeof a == "function" ? yi(a, s) : e = s, A(s, p(
|
|
12530
|
+
return typeof a == "function" ? yi(a, s) : e = s, A(s, p(ht, {
|
|
12509
12531
|
get each() {
|
|
12510
12532
|
return t();
|
|
12511
12533
|
},
|
|
12512
12534
|
get fallback() {
|
|
12513
12535
|
return (() => {
|
|
12514
12536
|
var l = Sp();
|
|
12515
|
-
return A(l, () =>
|
|
12537
|
+
return A(l, () => ut("emptyMessages")), l;
|
|
12516
12538
|
})();
|
|
12517
12539
|
},
|
|
12518
12540
|
children: (l) => p(yp, l)
|
|
@@ -12531,7 +12553,7 @@ const kp = (e) => {
|
|
|
12531
12553
|
const [, t] = H(e, ["class"]);
|
|
12532
12554
|
return (() => {
|
|
12533
12555
|
var n = Ep();
|
|
12534
|
-
return
|
|
12556
|
+
return nt(n, T({
|
|
12535
12557
|
get class() {
|
|
12536
12558
|
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
12559
|
}
|
|
@@ -12541,20 +12563,20 @@ const kp = (e) => {
|
|
|
12541
12563
|
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
12564
|
const Op = (e) => (() => {
|
|
12543
12565
|
var t = Cp();
|
|
12544
|
-
return
|
|
12566
|
+
return nt(t, e, !0, !0), t;
|
|
12545
12567
|
})();
|
|
12546
|
-
var
|
|
12547
|
-
const
|
|
12548
|
-
var e =
|
|
12568
|
+
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');
|
|
12569
|
+
const _p = () => (() => {
|
|
12570
|
+
var e = Pp(), t = e.firstChild;
|
|
12549
12571
|
return A(e, p(Op, {
|
|
12550
12572
|
height: 15
|
|
12551
12573
|
}), t), e;
|
|
12552
12574
|
})();
|
|
12553
12575
|
var Ap = /* @__PURE__ */ L('<footer class="flex-none p-4 bg-white min-h-16 flex space-x-1 mb-2">');
|
|
12554
|
-
const
|
|
12576
|
+
const no = () => {
|
|
12555
12577
|
const {
|
|
12556
12578
|
pushMessage: e
|
|
12557
|
-
} = Xe(), [t, n] =
|
|
12579
|
+
} = Xe(), [t, n] = _(""), r = () => {
|
|
12558
12580
|
e(t()), n("");
|
|
12559
12581
|
}, o = (i) => {
|
|
12560
12582
|
i.key === "Enter" && !i.shiftKey && r();
|
|
@@ -12563,7 +12585,7 @@ const to = () => {
|
|
|
12563
12585
|
var i = Ap();
|
|
12564
12586
|
return A(i, p(kp, {
|
|
12565
12587
|
get placeholder() {
|
|
12566
|
-
return
|
|
12588
|
+
return ut("inputPlaceholder");
|
|
12567
12589
|
},
|
|
12568
12590
|
get value() {
|
|
12569
12591
|
return t();
|
|
@@ -12584,7 +12606,7 @@ const to = () => {
|
|
|
12584
12606
|
size: 24
|
|
12585
12607
|
});
|
|
12586
12608
|
}
|
|
12587
|
-
}), null), A(i, p(
|
|
12609
|
+
}), null), A(i, p(_p, {}), null), i;
|
|
12588
12610
|
})();
|
|
12589
12611
|
};
|
|
12590
12612
|
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 +12620,26 @@ const $p = ({
|
|
|
12598
12620
|
show: o
|
|
12599
12621
|
} = Ei(), {
|
|
12600
12622
|
chatWidget: i
|
|
12601
|
-
} = te(), [s, a] =
|
|
12602
|
-
|
|
12623
|
+
} = te(), [s, a] = _(!0);
|
|
12624
|
+
setTimeout(() => a(!1), 2e3), i()?.openDelay && setTimeout(() => {
|
|
12603
12625
|
o();
|
|
12604
|
-
}, i()?.openDelay)
|
|
12605
|
-
|
|
12606
|
-
|
|
12626
|
+
}, i()?.openDelay);
|
|
12627
|
+
const l = () => (i()?.style.margin ?? 5) / 4, c = () => i()?.style.position === "left" ? {
|
|
12628
|
+
left: `${l()}rem`
|
|
12629
|
+
} : {
|
|
12630
|
+
right: `${l()}rem`
|
|
12631
|
+
};
|
|
12632
|
+
return (() => {
|
|
12633
|
+
var u = Dp();
|
|
12634
|
+
return A(u, p(J, {
|
|
12607
12635
|
get when() {
|
|
12608
12636
|
return n();
|
|
12609
12637
|
},
|
|
12610
12638
|
get children() {
|
|
12611
|
-
var
|
|
12612
|
-
return A(
|
|
12639
|
+
var d = Tp();
|
|
12640
|
+
return A(d, e), d;
|
|
12613
12641
|
}
|
|
12614
|
-
}), null), A(
|
|
12642
|
+
}), null), A(u, p(J, {
|
|
12615
12643
|
get when() {
|
|
12616
12644
|
return n();
|
|
12617
12645
|
},
|
|
@@ -12627,27 +12655,27 @@ const $p = ({
|
|
|
12627
12655
|
return i()?.balloonMessage;
|
|
12628
12656
|
},
|
|
12629
12657
|
get children() {
|
|
12630
|
-
var
|
|
12631
|
-
return A(
|
|
12658
|
+
var d = Ip();
|
|
12659
|
+
return A(d, p(J, {
|
|
12632
12660
|
get when() {
|
|
12633
12661
|
return !s();
|
|
12634
12662
|
},
|
|
12635
12663
|
get fallback() {
|
|
12636
12664
|
return (() => {
|
|
12637
|
-
var
|
|
12638
|
-
return A(
|
|
12665
|
+
var h = Rp();
|
|
12666
|
+
return A(h, p(ft, {
|
|
12639
12667
|
class: "size-2 animate-bounce"
|
|
12640
|
-
}), null), A(
|
|
12668
|
+
}), null), A(h, p(ft, {
|
|
12641
12669
|
class: "size-2 animate-bounce delay-150"
|
|
12642
|
-
}), null), A(
|
|
12670
|
+
}), null), A(h, p(ft, {
|
|
12643
12671
|
class: "size-2 animate-bounce delay-300"
|
|
12644
|
-
}), null),
|
|
12672
|
+
}), null), h;
|
|
12645
12673
|
})();
|
|
12646
12674
|
},
|
|
12647
12675
|
get children() {
|
|
12648
12676
|
return i()?.balloonMessage;
|
|
12649
12677
|
}
|
|
12650
|
-
})), ee(() =>
|
|
12678
|
+
})), 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
12679
|
}
|
|
12652
12680
|
})];
|
|
12653
12681
|
}
|
|
@@ -12666,7 +12694,13 @@ const $p = ({
|
|
|
12666
12694
|
}
|
|
12667
12695
|
});
|
|
12668
12696
|
}
|
|
12669
|
-
}), null), ee(() =>
|
|
12697
|
+
}), null), ee((d) => {
|
|
12698
|
+
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();
|
|
12699
|
+
return h !== d.e && gt(u, d.e = h), d.t = Ln(u, m, d.t), d;
|
|
12700
|
+
}, {
|
|
12701
|
+
e: void 0,
|
|
12702
|
+
t: void 0
|
|
12703
|
+
}), u;
|
|
12670
12704
|
})();
|
|
12671
12705
|
};
|
|
12672
12706
|
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 +12712,27 @@ const Np = ({
|
|
|
12678
12712
|
} = te(), n = {};
|
|
12679
12713
|
return t()?.style.width && (n.width = `min(100%, ${t()?.style.width}px)`), t()?.style.height && (n.height = `min(100vh, ${t()?.style.height}px)`), (() => {
|
|
12680
12714
|
var r = Fp();
|
|
12681
|
-
return
|
|
12715
|
+
return Ln(r, n), A(r, e), r;
|
|
12682
12716
|
})();
|
|
12683
12717
|
};
|
|
12684
|
-
var Kp = /* @__PURE__ */ L(
|
|
12718
|
+
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
12719
|
const Bp = ({
|
|
12686
12720
|
children: e
|
|
12687
12721
|
}) => {
|
|
12688
12722
|
const {
|
|
12689
12723
|
chatWidget: t
|
|
12690
|
-
} = te()
|
|
12724
|
+
} = te(), n = () => (t()?.style.margin ?? 5) / 4, r = () => t()?.style.position === "left" ? {
|
|
12725
|
+
left: `${n()}rem`
|
|
12726
|
+
} : {
|
|
12727
|
+
right: `${n()}rem`
|
|
12728
|
+
};
|
|
12691
12729
|
return (() => {
|
|
12692
|
-
var
|
|
12693
|
-
return A(
|
|
12730
|
+
var o = Kp();
|
|
12731
|
+
return A(o, e), ee((i) => Ln(o, r(), i)), o;
|
|
12694
12732
|
})();
|
|
12695
12733
|
};
|
|
12696
12734
|
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
|
|
12735
|
+
const ro = () => (() => {
|
|
12698
12736
|
var e = zp();
|
|
12699
12737
|
return A(e, p(nc, {
|
|
12700
12738
|
size: 45,
|
|
@@ -12722,9 +12760,9 @@ const no = () => (() => {
|
|
|
12722
12760
|
return t();
|
|
12723
12761
|
},
|
|
12724
12762
|
get children() {
|
|
12725
|
-
return p(
|
|
12763
|
+
return p(ro, {});
|
|
12726
12764
|
}
|
|
12727
|
-
}), p(
|
|
12765
|
+
}), p(Jr, {}), p(to, {}), p(no, {})];
|
|
12728
12766
|
}
|
|
12729
12767
|
});
|
|
12730
12768
|
}, Up = () => {
|
|
@@ -12738,9 +12776,9 @@ const no = () => (() => {
|
|
|
12738
12776
|
return e();
|
|
12739
12777
|
},
|
|
12740
12778
|
get children() {
|
|
12741
|
-
return p(
|
|
12779
|
+
return p(ro, {});
|
|
12742
12780
|
}
|
|
12743
|
-
}), p(
|
|
12781
|
+
}), p(Jr, {}), p(to, {}), p(no, {})];
|
|
12744
12782
|
}
|
|
12745
12783
|
});
|
|
12746
12784
|
}, jp = () => {
|
|
@@ -12754,9 +12792,9 @@ const no = () => (() => {
|
|
|
12754
12792
|
return e();
|
|
12755
12793
|
},
|
|
12756
12794
|
get children() {
|
|
12757
|
-
return p(
|
|
12795
|
+
return p(ro, {});
|
|
12758
12796
|
}
|
|
12759
|
-
}), p(
|
|
12797
|
+
}), p(Jr, {}), p(to, {}), p(no, {})];
|
|
12760
12798
|
}
|
|
12761
12799
|
});
|
|
12762
12800
|
}, Hp = () => {
|
|
@@ -12765,7 +12803,7 @@ const no = () => (() => {
|
|
|
12765
12803
|
} = te(), t = ba(async () => (e()?.openDelay && await new Promise((n) => setTimeout(n, e()?.openDelay)), {
|
|
12766
12804
|
default: Up
|
|
12767
12805
|
}));
|
|
12768
|
-
return p(
|
|
12806
|
+
return p(mi, {
|
|
12769
12807
|
get children() {
|
|
12770
12808
|
return [p($t, {
|
|
12771
12809
|
get when() {
|
|
@@ -12806,7 +12844,7 @@ function Gp() {
|
|
|
12806
12844
|
const {
|
|
12807
12845
|
widget: e
|
|
12808
12846
|
} = te();
|
|
12809
|
-
return p(
|
|
12847
|
+
return p(mi, {
|
|
12810
12848
|
get children() {
|
|
12811
12849
|
return [p($t, {
|
|
12812
12850
|
get when() {
|
|
@@ -12830,23 +12868,36 @@ var Yp = /* @__PURE__ */ L("<style>"), Xp = /* @__PURE__ */ L("<div>");
|
|
|
12830
12868
|
const Jp = ({
|
|
12831
12869
|
id: e,
|
|
12832
12870
|
settings: t,
|
|
12833
|
-
side: n
|
|
12871
|
+
side: n,
|
|
12872
|
+
margin: r,
|
|
12873
|
+
mode: o
|
|
12834
12874
|
}) => {
|
|
12835
12875
|
const {
|
|
12836
|
-
setWidgetId:
|
|
12837
|
-
} = te(),
|
|
12838
|
-
return
|
|
12839
|
-
var
|
|
12840
|
-
return A(
|
|
12876
|
+
setWidgetId: i
|
|
12877
|
+
} = te(), s = (e || "default") + "?" + (t ? "&showSettings" : "") + (n ? `&${n}` : "") + (r ? `&margin=${r}` : "") + (o ? `&mode=${o}` : "");
|
|
12878
|
+
return i(s), [(() => {
|
|
12879
|
+
var a = Yp();
|
|
12880
|
+
return A(a, Ha), a;
|
|
12841
12881
|
})(), (() => {
|
|
12842
|
-
var
|
|
12843
|
-
return A(
|
|
12882
|
+
var a = Xp();
|
|
12883
|
+
return A(a, p(Gp, {})), a;
|
|
12844
12884
|
})()];
|
|
12845
|
-
}, Zp =
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12885
|
+
}, Zp = {
|
|
12886
|
+
id: "",
|
|
12887
|
+
settings: !1,
|
|
12888
|
+
side: void 0,
|
|
12889
|
+
margin: void 0,
|
|
12890
|
+
mode: void 0
|
|
12891
|
+
}, Qp = () => {
|
|
12892
|
+
typeof window > "u" || ja("smarttalks-widget", Zp, Jp);
|
|
12851
12893
|
};
|
|
12852
|
-
|
|
12894
|
+
Qp();
|
|
12895
|
+
typeof window < "u" && (window.SmartTalksWidget = {
|
|
12896
|
+
registerContactData: (e) => {
|
|
12897
|
+
window.postMessage({
|
|
12898
|
+
from: "smarttalkswidget",
|
|
12899
|
+
command: "registerContactData",
|
|
12900
|
+
contactData: e
|
|
12901
|
+
});
|
|
12902
|
+
}
|
|
12903
|
+
});
|