@ddict/bubble 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bubble.es.js +278 -283
- package/dist/bubble.umd.js +1 -1
- package/package.json +1 -1
package/dist/bubble.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as S, ref as
|
|
1
|
+
import { computed as S, ref as M, shallowRef as c2, watch as At, getCurrentScope as a2, onScopeDispose as u2, shallowReadonly as ot, unref as mt, openBlock as y, createElementBlock as E, pushScopeId as f2, popScopeId as A2, createElementVNode as F, Fragment as ht, renderList as g2, toDisplayString as wt, onUnmounted as Ft, normalizeClass as Et, createBlock as X, createCommentVNode as N, createVNode as T, onMounted as zt, nextTick as Gt, normalizeStyle as It } from "vue";
|
|
2
2
|
const d2 = "data:image/svg+xml,%3csvg%20width='14'%20height='9'%20viewBox='0%200%2014%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.36153%201.34067C6.15774%200.203232%207.84226%200.203229%208.63846%201.34066L14%209H0L5.36153%201.34067Z'%20fill='white'%20stroke-width='0.5'/%3e%3c/svg%3e", G = Math.min, L = Math.max, pt = Math.round, Ct = Math.floor, j = (t) => ({
|
|
3
3
|
x: t,
|
|
4
4
|
y: t
|
|
@@ -11,7 +11,7 @@ const d2 = "data:image/svg+xml,%3csvg%20width='14'%20height='9'%20viewBox='0%200
|
|
|
11
11
|
start: "end",
|
|
12
12
|
end: "start"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function bt(t, e, n) {
|
|
15
15
|
return L(t, G(e, n));
|
|
16
16
|
}
|
|
17
17
|
function ct(t, e) {
|
|
@@ -109,7 +109,7 @@ function Jt(t, e, n) {
|
|
|
109
109
|
reference: o,
|
|
110
110
|
floating: i
|
|
111
111
|
} = t;
|
|
112
|
-
const s = _(e), l = Dt(e),
|
|
112
|
+
const s = _(e), l = Dt(e), c = kt(l), r = Z(e), a = s === "y", u = o.x + o.width / 2 - i.width / 2, f = o.y + o.height / 2 - i.height / 2, g = o[c] / 2 - i[c] / 2;
|
|
113
113
|
let A;
|
|
114
114
|
switch (r) {
|
|
115
115
|
case "top":
|
|
@@ -144,10 +144,10 @@ function Jt(t, e, n) {
|
|
|
144
144
|
}
|
|
145
145
|
switch (at(e)) {
|
|
146
146
|
case "start":
|
|
147
|
-
A[l] -=
|
|
147
|
+
A[l] -= g * (n && a ? -1 : 1);
|
|
148
148
|
break;
|
|
149
149
|
case "end":
|
|
150
|
-
A[l] +=
|
|
150
|
+
A[l] += g * (n && a ? -1 : 1);
|
|
151
151
|
break;
|
|
152
152
|
}
|
|
153
153
|
return A;
|
|
@@ -158,57 +158,57 @@ const x2 = async (t, e, n) => {
|
|
|
158
158
|
strategy: i = "absolute",
|
|
159
159
|
middleware: s = [],
|
|
160
160
|
platform: l
|
|
161
|
-
} = n,
|
|
162
|
-
let
|
|
161
|
+
} = n, c = s.filter(Boolean), r = await (l.isRTL == null ? void 0 : l.isRTL(e));
|
|
162
|
+
let a = await l.getElementRects({
|
|
163
163
|
reference: t,
|
|
164
164
|
floating: e,
|
|
165
165
|
strategy: i
|
|
166
166
|
}), {
|
|
167
167
|
x: u,
|
|
168
168
|
y: f
|
|
169
|
-
} = Jt(
|
|
170
|
-
for (let h = 0; h <
|
|
169
|
+
} = Jt(a, o, r), g = o, A = {}, d = 0;
|
|
170
|
+
for (let h = 0; h < c.length; h++) {
|
|
171
171
|
const {
|
|
172
172
|
name: w,
|
|
173
173
|
fn: p
|
|
174
|
-
} =
|
|
174
|
+
} = c[h], {
|
|
175
175
|
x: v,
|
|
176
|
-
y:
|
|
176
|
+
y: C,
|
|
177
177
|
data: m,
|
|
178
178
|
reset: B
|
|
179
179
|
} = await p({
|
|
180
180
|
x: u,
|
|
181
181
|
y: f,
|
|
182
182
|
initialPlacement: o,
|
|
183
|
-
placement:
|
|
183
|
+
placement: g,
|
|
184
184
|
strategy: i,
|
|
185
185
|
middlewareData: A,
|
|
186
|
-
rects:
|
|
186
|
+
rects: a,
|
|
187
187
|
platform: l,
|
|
188
188
|
elements: {
|
|
189
189
|
reference: t,
|
|
190
190
|
floating: e
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
u = v ?? u, f =
|
|
193
|
+
u = v ?? u, f = C ?? f, A = {
|
|
194
194
|
...A,
|
|
195
195
|
[w]: {
|
|
196
196
|
...A[w],
|
|
197
197
|
...m
|
|
198
198
|
}
|
|
199
|
-
}, B &&
|
|
199
|
+
}, B && d <= 50 && (d++, typeof B == "object" && (B.placement && (g = B.placement), B.rects && (a = B.rects === !0 ? await l.getElementRects({
|
|
200
200
|
reference: t,
|
|
201
201
|
floating: e,
|
|
202
202
|
strategy: i
|
|
203
203
|
}) : B.rects), {
|
|
204
204
|
x: u,
|
|
205
205
|
y: f
|
|
206
|
-
} = Jt(
|
|
206
|
+
} = Jt(a, g, r)), h = -1);
|
|
207
207
|
}
|
|
208
208
|
return {
|
|
209
209
|
x: u,
|
|
210
210
|
y: f,
|
|
211
|
-
placement:
|
|
211
|
+
placement: g,
|
|
212
212
|
strategy: i,
|
|
213
213
|
middlewareData: A
|
|
214
214
|
};
|
|
@@ -221,17 +221,17 @@ async function Rt(t, e) {
|
|
|
221
221
|
y: i,
|
|
222
222
|
platform: s,
|
|
223
223
|
rects: l,
|
|
224
|
-
elements:
|
|
224
|
+
elements: c,
|
|
225
225
|
strategy: r
|
|
226
226
|
} = t, {
|
|
227
|
-
boundary:
|
|
227
|
+
boundary: a = "clippingAncestors",
|
|
228
228
|
rootBoundary: u = "viewport",
|
|
229
229
|
elementContext: f = "floating",
|
|
230
|
-
altBoundary:
|
|
230
|
+
altBoundary: g = !1,
|
|
231
231
|
padding: A = 0
|
|
232
|
-
} = ct(e, t),
|
|
233
|
-
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(
|
|
234
|
-
boundary:
|
|
232
|
+
} = ct(e, t), d = Xt(A), w = c[g ? f === "floating" ? "reference" : "floating" : f], p = Bt(await s.getClippingRect({
|
|
233
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
234
|
+
boundary: a,
|
|
235
235
|
rootBoundary: u,
|
|
236
236
|
strategy: r
|
|
237
237
|
})), v = f === "floating" ? {
|
|
@@ -239,23 +239,23 @@ async function Rt(t, e) {
|
|
|
239
239
|
y: i,
|
|
240
240
|
width: l.floating.width,
|
|
241
241
|
height: l.floating.height
|
|
242
|
-
} : l.reference,
|
|
242
|
+
} : l.reference, C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), m = await (s.isElement == null ? void 0 : s.isElement(C)) ? await (s.getScale == null ? void 0 : s.getScale(C)) || {
|
|
243
243
|
x: 1,
|
|
244
244
|
y: 1
|
|
245
245
|
} : {
|
|
246
246
|
x: 1,
|
|
247
247
|
y: 1
|
|
248
248
|
}, B = Bt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
249
|
-
elements:
|
|
249
|
+
elements: c,
|
|
250
250
|
rect: v,
|
|
251
|
-
offsetParent:
|
|
251
|
+
offsetParent: C,
|
|
252
252
|
strategy: r
|
|
253
253
|
}) : v);
|
|
254
254
|
return {
|
|
255
|
-
top: (p.top - B.top +
|
|
256
|
-
bottom: (B.bottom - p.bottom +
|
|
257
|
-
left: (p.left - B.left +
|
|
258
|
-
right: (B.right - p.right +
|
|
255
|
+
top: (p.top - B.top + d.top) / m.y,
|
|
256
|
+
bottom: (B.bottom - p.bottom + d.bottom) / m.y,
|
|
257
|
+
left: (p.left - B.left + d.left) / m.x,
|
|
258
|
+
right: (B.right - p.right + d.right) / m.x
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
261
|
const y2 = (t) => ({
|
|
@@ -268,31 +268,31 @@ const y2 = (t) => ({
|
|
|
268
268
|
placement: i,
|
|
269
269
|
rects: s,
|
|
270
270
|
platform: l,
|
|
271
|
-
elements:
|
|
271
|
+
elements: c,
|
|
272
272
|
middlewareData: r
|
|
273
273
|
} = e, {
|
|
274
|
-
element:
|
|
274
|
+
element: a,
|
|
275
275
|
padding: u = 0
|
|
276
276
|
} = ct(t, e) || {};
|
|
277
|
-
if (
|
|
277
|
+
if (a == null)
|
|
278
278
|
return {};
|
|
279
|
-
const f = Xt(u),
|
|
279
|
+
const f = Xt(u), g = {
|
|
280
280
|
x: n,
|
|
281
281
|
y: o
|
|
282
|
-
}, A = Dt(i),
|
|
283
|
-
let x = I ? I[
|
|
284
|
-
(!x || !await (l.isElement == null ? void 0 : l.isElement(I))) && (x =
|
|
285
|
-
const
|
|
282
|
+
}, A = Dt(i), d = kt(A), h = await l.getDimensions(a), w = A === "y", p = w ? "top" : "left", v = w ? "bottom" : "right", C = w ? "clientHeight" : "clientWidth", m = s.reference[d] + s.reference[A] - g[A] - s.floating[d], B = g[A] - s.reference[A], I = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(a));
|
|
283
|
+
let x = I ? I[C] : 0;
|
|
284
|
+
(!x || !await (l.isElement == null ? void 0 : l.isElement(I))) && (x = c.floating[C] || s.floating[d]);
|
|
285
|
+
const D = m / 2 - B / 2, b = x / 2 - h[d] / 2 - 1, R = G(f[p], b), V = G(f[v], b), $ = R, ut = x - h[d] - V, Q = x / 2 - h[d] / 2 + D, nt = bt($, Q, ut), K = !r.arrow && at(i) != null && Q !== nt && s.reference[d] / 2 - (Q < $ ? R : V) - h[d] / 2 < 0, O = K ? Q < $ ? Q - $ : Q - ut : 0;
|
|
286
286
|
return {
|
|
287
|
-
[A]:
|
|
287
|
+
[A]: g[A] + O,
|
|
288
288
|
data: {
|
|
289
289
|
[A]: nt,
|
|
290
|
-
centerOffset:
|
|
291
|
-
...
|
|
290
|
+
centerOffset: Q - nt - O,
|
|
291
|
+
...K && {
|
|
292
292
|
alignmentOffset: O
|
|
293
293
|
}
|
|
294
294
|
},
|
|
295
|
-
reset:
|
|
295
|
+
reset: K
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
298
|
}), E2 = function(t) {
|
|
@@ -305,50 +305,50 @@ const y2 = (t) => ({
|
|
|
305
305
|
placement: i,
|
|
306
306
|
middlewareData: s,
|
|
307
307
|
rects: l,
|
|
308
|
-
initialPlacement:
|
|
308
|
+
initialPlacement: c,
|
|
309
309
|
platform: r,
|
|
310
|
-
elements:
|
|
310
|
+
elements: a
|
|
311
311
|
} = e, {
|
|
312
312
|
mainAxis: u = !0,
|
|
313
313
|
crossAxis: f = !0,
|
|
314
|
-
fallbackPlacements:
|
|
314
|
+
fallbackPlacements: g,
|
|
315
315
|
fallbackStrategy: A = "bestFit",
|
|
316
|
-
fallbackAxisSideDirection:
|
|
316
|
+
fallbackAxisSideDirection: d = "none",
|
|
317
317
|
flipAlignment: h = !0,
|
|
318
318
|
...w
|
|
319
319
|
} = ct(t, e);
|
|
320
320
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
321
321
|
return {};
|
|
322
|
-
const p = Z(i), v = _(
|
|
323
|
-
!
|
|
324
|
-
const x = [
|
|
325
|
-
let
|
|
326
|
-
if (u &&
|
|
327
|
-
const
|
|
328
|
-
|
|
322
|
+
const p = Z(i), v = _(c), C = Z(c) === c, m = await (r.isRTL == null ? void 0 : r.isRTL(a.floating)), B = g || (C || !h ? [vt(c)] : w2(c)), I = d !== "none";
|
|
323
|
+
!g && I && B.push(...v2(c, h, d, m));
|
|
324
|
+
const x = [c, ...B], D = await Rt(e, w), b = [];
|
|
325
|
+
let R = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
326
|
+
if (u && b.push(D[p]), f) {
|
|
327
|
+
const Q = h2(i, l, m);
|
|
328
|
+
b.push(D[Q[0]], D[Q[1]]);
|
|
329
329
|
}
|
|
330
|
-
if (
|
|
330
|
+
if (R = [...R, {
|
|
331
331
|
placement: i,
|
|
332
|
-
overflows:
|
|
333
|
-
}], !
|
|
332
|
+
overflows: b
|
|
333
|
+
}], !b.every((Q) => Q <= 0)) {
|
|
334
334
|
var V, $;
|
|
335
|
-
const
|
|
335
|
+
const Q = (((V = s.flip) == null ? void 0 : V.index) || 0) + 1, nt = x[Q];
|
|
336
336
|
if (nt)
|
|
337
337
|
return {
|
|
338
338
|
data: {
|
|
339
|
-
index:
|
|
340
|
-
overflows:
|
|
339
|
+
index: Q,
|
|
340
|
+
overflows: R
|
|
341
341
|
},
|
|
342
342
|
reset: {
|
|
343
343
|
placement: nt
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
|
-
let
|
|
347
|
-
if (!
|
|
346
|
+
let K = ($ = R.filter((O) => O.overflows[0] <= 0).sort((O, W) => O.overflows[1] - W.overflows[1])[0]) == null ? void 0 : $.placement;
|
|
347
|
+
if (!K)
|
|
348
348
|
switch (A) {
|
|
349
349
|
case "bestFit": {
|
|
350
350
|
var ut;
|
|
351
|
-
const O = (ut =
|
|
351
|
+
const O = (ut = R.filter((W) => {
|
|
352
352
|
if (I) {
|
|
353
353
|
const q = _(W.placement);
|
|
354
354
|
return q === v || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -357,17 +357,17 @@ const y2 = (t) => ({
|
|
|
357
357
|
}
|
|
358
358
|
return !0;
|
|
359
359
|
}).map((W) => [W.placement, W.overflows.filter((q) => q > 0).reduce((q, r2) => q + r2, 0)]).sort((W, q) => W[1] - q[1])[0]) == null ? void 0 : ut[0];
|
|
360
|
-
O && (
|
|
360
|
+
O && (K = O);
|
|
361
361
|
break;
|
|
362
362
|
}
|
|
363
363
|
case "initialPlacement":
|
|
364
|
-
|
|
364
|
+
K = c;
|
|
365
365
|
break;
|
|
366
366
|
}
|
|
367
|
-
if (i !==
|
|
367
|
+
if (i !== K)
|
|
368
368
|
return {
|
|
369
369
|
reset: {
|
|
370
|
-
placement:
|
|
370
|
+
placement: K
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
373
|
}
|
|
@@ -380,11 +380,11 @@ async function I2(t, e) {
|
|
|
380
380
|
placement: n,
|
|
381
381
|
platform: o,
|
|
382
382
|
elements: i
|
|
383
|
-
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l = Z(n),
|
|
383
|
+
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l = Z(n), c = at(n), r = _(n) === "y", a = ["left", "top"].includes(l) ? -1 : 1, u = s && r ? -1 : 1, f = ct(e, t);
|
|
384
384
|
let {
|
|
385
|
-
mainAxis:
|
|
385
|
+
mainAxis: g,
|
|
386
386
|
crossAxis: A,
|
|
387
|
-
alignmentAxis:
|
|
387
|
+
alignmentAxis: d
|
|
388
388
|
} = typeof f == "number" ? {
|
|
389
389
|
mainAxis: f,
|
|
390
390
|
crossAxis: 0,
|
|
@@ -395,15 +395,15 @@ async function I2(t, e) {
|
|
|
395
395
|
alignmentAxis: null,
|
|
396
396
|
...f
|
|
397
397
|
};
|
|
398
|
-
return
|
|
398
|
+
return c && typeof d == "number" && (A = c === "end" ? d * -1 : d), r ? {
|
|
399
399
|
x: A * u,
|
|
400
|
-
y:
|
|
400
|
+
y: g * a
|
|
401
401
|
} : {
|
|
402
|
-
x:
|
|
402
|
+
x: g * a,
|
|
403
403
|
y: A * u
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
|
-
const
|
|
406
|
+
const Q2 = function(t) {
|
|
407
407
|
return t === void 0 && (t = 0), {
|
|
408
408
|
name: "offset",
|
|
409
409
|
options: t,
|
|
@@ -413,9 +413,9 @@ const b2 = function(t) {
|
|
|
413
413
|
x: i,
|
|
414
414
|
y: s,
|
|
415
415
|
placement: l,
|
|
416
|
-
middlewareData:
|
|
416
|
+
middlewareData: c
|
|
417
417
|
} = e, r = await I2(e, t);
|
|
418
|
-
return l === ((n =
|
|
418
|
+
return l === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
419
419
|
x: i + r.x,
|
|
420
420
|
y: s + r.y,
|
|
421
421
|
data: {
|
|
@@ -425,7 +425,7 @@ const b2 = function(t) {
|
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
|
-
},
|
|
428
|
+
}, b2 = function(t) {
|
|
429
429
|
return t === void 0 && (t = {}), {
|
|
430
430
|
name: "shift",
|
|
431
431
|
options: t,
|
|
@@ -437,7 +437,7 @@ const b2 = function(t) {
|
|
|
437
437
|
} = e, {
|
|
438
438
|
mainAxis: s = !0,
|
|
439
439
|
crossAxis: l = !1,
|
|
440
|
-
limiter:
|
|
440
|
+
limiter: c = {
|
|
441
441
|
fn: (w) => {
|
|
442
442
|
let {
|
|
443
443
|
x: p,
|
|
@@ -450,23 +450,23 @@ const b2 = function(t) {
|
|
|
450
450
|
}
|
|
451
451
|
},
|
|
452
452
|
...r
|
|
453
|
-
} = ct(t, e),
|
|
453
|
+
} = ct(t, e), a = {
|
|
454
454
|
x: n,
|
|
455
455
|
y: o
|
|
456
|
-
}, u = await Rt(e, r), f = _(Z(i)),
|
|
457
|
-
let A =
|
|
456
|
+
}, u = await Rt(e, r), f = _(Z(i)), g = $t(f);
|
|
457
|
+
let A = a[g], d = a[f];
|
|
458
458
|
if (s) {
|
|
459
|
-
const w =
|
|
460
|
-
A =
|
|
459
|
+
const w = g === "y" ? "top" : "left", p = g === "y" ? "bottom" : "right", v = A + u[w], C = A - u[p];
|
|
460
|
+
A = bt(v, A, C);
|
|
461
461
|
}
|
|
462
462
|
if (l) {
|
|
463
|
-
const w = f === "y" ? "top" : "left", p = f === "y" ? "bottom" : "right", v =
|
|
464
|
-
|
|
463
|
+
const w = f === "y" ? "top" : "left", p = f === "y" ? "bottom" : "right", v = d + u[w], C = d - u[p];
|
|
464
|
+
d = bt(v, d, C);
|
|
465
465
|
}
|
|
466
|
-
const h =
|
|
466
|
+
const h = c.fn({
|
|
467
467
|
...e,
|
|
468
|
-
[
|
|
469
|
-
[f]:
|
|
468
|
+
[g]: A,
|
|
469
|
+
[f]: d
|
|
470
470
|
});
|
|
471
471
|
return {
|
|
472
472
|
...h,
|
|
@@ -490,18 +490,18 @@ const b2 = function(t) {
|
|
|
490
490
|
} = e, {
|
|
491
491
|
apply: l = () => {
|
|
492
492
|
},
|
|
493
|
-
...
|
|
494
|
-
} = ct(t, e), r = await Rt(e,
|
|
495
|
-
width:
|
|
493
|
+
...c
|
|
494
|
+
} = ct(t, e), r = await Rt(e, c), a = Z(n), u = at(n), f = _(n) === "y", {
|
|
495
|
+
width: g,
|
|
496
496
|
height: A
|
|
497
497
|
} = o.floating;
|
|
498
|
-
let
|
|
499
|
-
|
|
500
|
-
const w = A - r.top - r.bottom, p =
|
|
501
|
-
let B = v, I =
|
|
502
|
-
if (f ? I = u || m ? G(
|
|
503
|
-
const
|
|
504
|
-
f ? I =
|
|
498
|
+
let d, h;
|
|
499
|
+
a === "top" || a === "bottom" ? (d = a, h = u === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (h = a, d = u === "end" ? "top" : "bottom");
|
|
500
|
+
const w = A - r.top - r.bottom, p = g - r.left - r.right, v = G(A - r[d], w), C = G(g - r[h], p), m = !e.middlewareData.shift;
|
|
501
|
+
let B = v, I = C;
|
|
502
|
+
if (f ? I = u || m ? G(C, p) : p : B = u || m ? G(v, w) : w, m && !u) {
|
|
503
|
+
const D = L(r.left, 0), b = L(r.right, 0), R = L(r.top, 0), V = L(r.bottom, 0);
|
|
504
|
+
f ? I = g - 2 * (D !== 0 || b !== 0 ? D + b : L(r.left, r.right)) : B = A - 2 * (R !== 0 || V !== 0 ? R + V : L(r.top, r.bottom));
|
|
505
505
|
}
|
|
506
506
|
await l({
|
|
507
507
|
...e,
|
|
@@ -509,7 +509,7 @@ const b2 = function(t) {
|
|
|
509
509
|
availableHeight: B
|
|
510
510
|
});
|
|
511
511
|
const x = await i.getDimensions(s.floating);
|
|
512
|
-
return
|
|
512
|
+
return g !== x.width || A !== x.height ? {
|
|
513
513
|
reset: {
|
|
514
514
|
rects: !0
|
|
515
515
|
}
|
|
@@ -534,10 +534,10 @@ function Mt(t) {
|
|
|
534
534
|
function J(t) {
|
|
535
535
|
return t instanceof Element || t instanceof k(t).Element;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Y(t) {
|
|
538
538
|
return t instanceof HTMLElement || t instanceof k(t).HTMLElement;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Yt(t) {
|
|
541
541
|
return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof k(t).ShadowRoot;
|
|
542
542
|
}
|
|
543
543
|
function dt(t) {
|
|
@@ -567,7 +567,7 @@ function Ht(t) {
|
|
|
567
567
|
}
|
|
568
568
|
function F2(t) {
|
|
569
569
|
let e = P(t);
|
|
570
|
-
for (;
|
|
570
|
+
for (; Y(e) && !rt(e); ) {
|
|
571
571
|
if (xt(e))
|
|
572
572
|
return null;
|
|
573
573
|
if (Ht(e))
|
|
@@ -601,14 +601,14 @@ function P(t) {
|
|
|
601
601
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
602
602
|
t.assignedSlot || // DOM Element detected.
|
|
603
603
|
t.parentNode || // ShadowRoot detected.
|
|
604
|
-
|
|
604
|
+
Yt(t) && t.host || // Fallback.
|
|
605
605
|
U(t)
|
|
606
606
|
);
|
|
607
|
-
return
|
|
607
|
+
return Yt(e) ? e.host : e;
|
|
608
608
|
}
|
|
609
609
|
function _t(t) {
|
|
610
610
|
const e = P(t);
|
|
611
|
-
return rt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body :
|
|
611
|
+
return rt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && dt(e) ? e : _t(e);
|
|
612
612
|
}
|
|
613
613
|
function gt(t, e, n) {
|
|
614
614
|
var o;
|
|
@@ -619,11 +619,11 @@ function gt(t, e, n) {
|
|
|
619
619
|
function t2(t) {
|
|
620
620
|
const e = H(t);
|
|
621
621
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
622
|
-
const i =
|
|
623
|
-
return
|
|
622
|
+
const i = Y(t), s = i ? t.offsetWidth : n, l = i ? t.offsetHeight : o, c = pt(n) !== s || pt(o) !== l;
|
|
623
|
+
return c && (n = s, o = l), {
|
|
624
624
|
width: n,
|
|
625
625
|
height: o,
|
|
626
|
-
$:
|
|
626
|
+
$: c
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
629
|
function Tt(t) {
|
|
@@ -631,17 +631,17 @@ function Tt(t) {
|
|
|
631
631
|
}
|
|
632
632
|
function st(t) {
|
|
633
633
|
const e = Tt(t);
|
|
634
|
-
if (!
|
|
634
|
+
if (!Y(e))
|
|
635
635
|
return j(1);
|
|
636
636
|
const n = e.getBoundingClientRect(), {
|
|
637
637
|
width: o,
|
|
638
638
|
height: i,
|
|
639
639
|
$: s
|
|
640
640
|
} = t2(e);
|
|
641
|
-
let l = (s ? pt(n.width) : n.width) / o,
|
|
642
|
-
return (!l || !Number.isFinite(l)) && (l = 1), (!
|
|
641
|
+
let l = (s ? pt(n.width) : n.width) / o, c = (s ? pt(n.height) : n.height) / i;
|
|
642
|
+
return (!l || !Number.isFinite(l)) && (l = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
643
643
|
x: l,
|
|
644
|
-
y:
|
|
644
|
+
y: c
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
647
|
const k2 = /* @__PURE__ */ j(0);
|
|
@@ -660,21 +660,21 @@ function tt(t, e, n, o) {
|
|
|
660
660
|
const i = t.getBoundingClientRect(), s = Tt(t);
|
|
661
661
|
let l = j(1);
|
|
662
662
|
e && (o ? J(o) && (l = st(o)) : l = st(t));
|
|
663
|
-
const
|
|
664
|
-
let r = (i.left +
|
|
663
|
+
const c = D2(s, n, o) ? e2(s) : j(0);
|
|
664
|
+
let r = (i.left + c.x) / l.x, a = (i.top + c.y) / l.y, u = i.width / l.x, f = i.height / l.y;
|
|
665
665
|
if (s) {
|
|
666
|
-
const
|
|
667
|
-
let
|
|
668
|
-
for (; h && o && A !==
|
|
669
|
-
const w = st(h), p = h.getBoundingClientRect(), v = H(h),
|
|
670
|
-
r *= w.x,
|
|
666
|
+
const g = k(s), A = o && J(o) ? k(o) : o;
|
|
667
|
+
let d = g, h = d.frameElement;
|
|
668
|
+
for (; h && o && A !== d; ) {
|
|
669
|
+
const w = st(h), p = h.getBoundingClientRect(), v = H(h), C = p.left + (h.clientLeft + parseFloat(v.paddingLeft)) * w.x, m = p.top + (h.clientTop + parseFloat(v.paddingTop)) * w.y;
|
|
670
|
+
r *= w.x, a *= w.y, u *= w.x, f *= w.y, r += C, a += m, d = k(h), h = d.frameElement;
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
return Bt({
|
|
674
674
|
width: u,
|
|
675
675
|
height: f,
|
|
676
676
|
x: r,
|
|
677
|
-
y:
|
|
677
|
+
y: a
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
680
|
function R2(t) {
|
|
@@ -684,23 +684,23 @@ function R2(t) {
|
|
|
684
684
|
offsetParent: o,
|
|
685
685
|
strategy: i
|
|
686
686
|
} = t;
|
|
687
|
-
const s = i === "fixed", l = U(o),
|
|
688
|
-
if (o === l ||
|
|
687
|
+
const s = i === "fixed", l = U(o), c = e ? xt(e.floating) : !1;
|
|
688
|
+
if (o === l || c && s)
|
|
689
689
|
return n;
|
|
690
690
|
let r = {
|
|
691
691
|
scrollLeft: 0,
|
|
692
692
|
scrollTop: 0
|
|
693
|
-
},
|
|
694
|
-
const u = j(0), f =
|
|
695
|
-
if ((f || !f && !s) && ((et(o) !== "body" || dt(l)) && (r = yt(o)),
|
|
696
|
-
const
|
|
697
|
-
|
|
693
|
+
}, a = j(1);
|
|
694
|
+
const u = j(0), f = Y(o);
|
|
695
|
+
if ((f || !f && !s) && ((et(o) !== "body" || dt(l)) && (r = yt(o)), Y(o))) {
|
|
696
|
+
const g = tt(o);
|
|
697
|
+
a = st(o), u.x = g.x + o.clientLeft, u.y = g.y + o.clientTop;
|
|
698
698
|
}
|
|
699
699
|
return {
|
|
700
|
-
width: n.width *
|
|
701
|
-
height: n.height *
|
|
702
|
-
x: n.x *
|
|
703
|
-
y: n.y *
|
|
700
|
+
width: n.width * a.x,
|
|
701
|
+
height: n.height * a.y,
|
|
702
|
+
x: n.x * a.x - r.scrollLeft * a.x + u.x,
|
|
703
|
+
y: n.y * a.y - r.scrollTop * a.y + u.y
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
706
|
function M2(t) {
|
|
@@ -712,39 +712,39 @@ function n2(t) {
|
|
|
712
712
|
function H2(t) {
|
|
713
713
|
const e = U(t), n = yt(t), o = t.ownerDocument.body, i = L(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = L(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
714
714
|
let l = -n.scrollLeft + n2(t);
|
|
715
|
-
const
|
|
715
|
+
const c = -n.scrollTop;
|
|
716
716
|
return H(o).direction === "rtl" && (l += L(e.clientWidth, o.clientWidth) - i), {
|
|
717
717
|
width: i,
|
|
718
718
|
height: s,
|
|
719
719
|
x: l,
|
|
720
|
-
y:
|
|
720
|
+
y: c
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
723
|
function O2(t, e) {
|
|
724
724
|
const n = k(t), o = U(t), i = n.visualViewport;
|
|
725
|
-
let s = o.clientWidth, l = o.clientHeight,
|
|
725
|
+
let s = o.clientWidth, l = o.clientHeight, c = 0, r = 0;
|
|
726
726
|
if (i) {
|
|
727
727
|
s = i.width, l = i.height;
|
|
728
|
-
const
|
|
729
|
-
(!
|
|
728
|
+
const a = Ot();
|
|
729
|
+
(!a || a && e === "fixed") && (c = i.offsetLeft, r = i.offsetTop);
|
|
730
730
|
}
|
|
731
731
|
return {
|
|
732
732
|
width: s,
|
|
733
733
|
height: l,
|
|
734
|
-
x:
|
|
734
|
+
x: c,
|
|
735
735
|
y: r
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
738
|
function T2(t, e) {
|
|
739
|
-
const n = tt(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s =
|
|
739
|
+
const n = tt(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = Y(t) ? st(t) : j(1), l = t.clientWidth * s.x, c = t.clientHeight * s.y, r = i * s.x, a = o * s.y;
|
|
740
740
|
return {
|
|
741
741
|
width: l,
|
|
742
|
-
height:
|
|
742
|
+
height: c,
|
|
743
743
|
x: r,
|
|
744
|
-
y:
|
|
744
|
+
y: a
|
|
745
745
|
};
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function Kt(t, e, n) {
|
|
748
748
|
let o;
|
|
749
749
|
if (e === "viewport")
|
|
750
750
|
o = O2(t, n);
|
|
@@ -770,12 +770,12 @@ function G2(t, e) {
|
|
|
770
770
|
const n = e.get(t);
|
|
771
771
|
if (n)
|
|
772
772
|
return n;
|
|
773
|
-
let o = gt(t, [], !1).filter((
|
|
773
|
+
let o = gt(t, [], !1).filter((c) => J(c) && et(c) !== "body"), i = null;
|
|
774
774
|
const s = H(t).position === "fixed";
|
|
775
775
|
let l = s ? P(t) : t;
|
|
776
776
|
for (; J(l) && !rt(l); ) {
|
|
777
|
-
const
|
|
778
|
-
!r &&
|
|
777
|
+
const c = H(l), r = Ht(l);
|
|
778
|
+
!r && c.position === "fixed" && (i = null), (s ? !r && !i : !r && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || dt(l) && !r && o2(t, l)) ? o = o.filter((u) => u !== l) : i = c, l = P(l);
|
|
779
779
|
}
|
|
780
780
|
return e.set(t, o), o;
|
|
781
781
|
}
|
|
@@ -786,10 +786,10 @@ function J2(t) {
|
|
|
786
786
|
rootBoundary: o,
|
|
787
787
|
strategy: i
|
|
788
788
|
} = t;
|
|
789
|
-
const l = [...n === "clippingAncestors" ? xt(e) ? [] : G2(e, this._c) : [].concat(n), o],
|
|
790
|
-
const f =
|
|
791
|
-
return
|
|
792
|
-
},
|
|
789
|
+
const l = [...n === "clippingAncestors" ? xt(e) ? [] : G2(e, this._c) : [].concat(n), o], c = l[0], r = l.reduce((a, u) => {
|
|
790
|
+
const f = Kt(e, u, i);
|
|
791
|
+
return a.top = L(f.top, a.top), a.right = G(f.right, a.right), a.bottom = G(f.bottom, a.bottom), a.left = L(f.left, a.left), a;
|
|
792
|
+
}, Kt(e, c, i));
|
|
793
793
|
return {
|
|
794
794
|
width: r.right - r.left,
|
|
795
795
|
height: r.bottom - r.top,
|
|
@@ -797,7 +797,7 @@ function J2(t) {
|
|
|
797
797
|
y: r.top
|
|
798
798
|
};
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function Y2(t) {
|
|
801
801
|
const {
|
|
802
802
|
width: e,
|
|
803
803
|
height: n
|
|
@@ -807,54 +807,54 @@ function K2(t) {
|
|
|
807
807
|
height: n
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
|
-
function
|
|
811
|
-
const o =
|
|
812
|
-
let
|
|
810
|
+
function K2(t, e, n) {
|
|
811
|
+
const o = Y(e), i = U(e), s = n === "fixed", l = tt(t, !0, s, e);
|
|
812
|
+
let c = {
|
|
813
813
|
scrollLeft: 0,
|
|
814
814
|
scrollTop: 0
|
|
815
815
|
};
|
|
816
816
|
const r = j(0);
|
|
817
817
|
if (o || !o && !s)
|
|
818
|
-
if ((et(e) !== "body" || dt(i)) && (
|
|
818
|
+
if ((et(e) !== "body" || dt(i)) && (c = yt(e)), o) {
|
|
819
819
|
const f = tt(e, !0, s, e);
|
|
820
820
|
r.x = f.x + e.clientLeft, r.y = f.y + e.clientTop;
|
|
821
821
|
} else i && (r.x = n2(i));
|
|
822
|
-
const
|
|
822
|
+
const a = l.left + c.scrollLeft - r.x, u = l.top + c.scrollTop - r.y;
|
|
823
823
|
return {
|
|
824
|
-
x:
|
|
824
|
+
x: a,
|
|
825
825
|
y: u,
|
|
826
826
|
width: l.width,
|
|
827
827
|
height: l.height
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Qt(t) {
|
|
831
831
|
return H(t).position === "static";
|
|
832
832
|
}
|
|
833
833
|
function Ut(t, e) {
|
|
834
|
-
return !
|
|
834
|
+
return !Y(t) || H(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
|
835
835
|
}
|
|
836
836
|
function i2(t, e) {
|
|
837
837
|
const n = k(t);
|
|
838
838
|
if (xt(t))
|
|
839
839
|
return n;
|
|
840
|
-
if (!
|
|
840
|
+
if (!Y(t)) {
|
|
841
841
|
let i = P(t);
|
|
842
842
|
for (; i && !rt(i); ) {
|
|
843
|
-
if (J(i) && !
|
|
843
|
+
if (J(i) && !Qt(i))
|
|
844
844
|
return i;
|
|
845
845
|
i = P(i);
|
|
846
846
|
}
|
|
847
847
|
return n;
|
|
848
848
|
}
|
|
849
849
|
let o = Ut(t, e);
|
|
850
|
-
for (; o && L2(o) &&
|
|
850
|
+
for (; o && L2(o) && Qt(o); )
|
|
851
851
|
o = Ut(o, e);
|
|
852
|
-
return o && rt(o) &&
|
|
852
|
+
return o && rt(o) && Qt(o) && !Ht(o) ? n : o || F2(t) || n;
|
|
853
853
|
}
|
|
854
854
|
const U2 = async function(t) {
|
|
855
855
|
const e = this.getOffsetParent || i2, n = this.getDimensions, o = await n(t.floating);
|
|
856
856
|
return {
|
|
857
|
-
reference:
|
|
857
|
+
reference: K2(t.reference, await e(t.floating), t.strategy),
|
|
858
858
|
floating: {
|
|
859
859
|
x: 0,
|
|
860
860
|
y: 0,
|
|
@@ -873,7 +873,7 @@ const W2 = {
|
|
|
873
873
|
getOffsetParent: i2,
|
|
874
874
|
getElementRects: U2,
|
|
875
875
|
getClientRects: M2,
|
|
876
|
-
getDimensions:
|
|
876
|
+
getDimensions: Y2,
|
|
877
877
|
getScale: st,
|
|
878
878
|
isElement: J,
|
|
879
879
|
isRTL: V2
|
|
@@ -882,34 +882,34 @@ function q2(t, e) {
|
|
|
882
882
|
let n = null, o;
|
|
883
883
|
const i = U(t);
|
|
884
884
|
function s() {
|
|
885
|
-
var
|
|
886
|
-
clearTimeout(o), (
|
|
885
|
+
var c;
|
|
886
|
+
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
887
887
|
}
|
|
888
|
-
function l(
|
|
889
|
-
|
|
888
|
+
function l(c, r) {
|
|
889
|
+
c === void 0 && (c = !1), r === void 0 && (r = 1), s();
|
|
890
890
|
const {
|
|
891
|
-
left:
|
|
891
|
+
left: a,
|
|
892
892
|
top: u,
|
|
893
893
|
width: f,
|
|
894
|
-
height:
|
|
894
|
+
height: g
|
|
895
895
|
} = t.getBoundingClientRect();
|
|
896
|
-
if (
|
|
896
|
+
if (c || e(), !f || !g)
|
|
897
897
|
return;
|
|
898
|
-
const A = Ct(u),
|
|
899
|
-
rootMargin: -A + "px " + -
|
|
898
|
+
const A = Ct(u), d = Ct(i.clientWidth - (a + f)), h = Ct(i.clientHeight - (u + g)), w = Ct(a), v = {
|
|
899
|
+
rootMargin: -A + "px " + -d + "px " + -h + "px " + -w + "px",
|
|
900
900
|
threshold: L(0, G(1, r)) || 1
|
|
901
901
|
};
|
|
902
|
-
let
|
|
902
|
+
let C = !0;
|
|
903
903
|
function m(B) {
|
|
904
904
|
const I = B[0].intersectionRatio;
|
|
905
905
|
if (I !== r) {
|
|
906
|
-
if (!
|
|
906
|
+
if (!C)
|
|
907
907
|
return l();
|
|
908
908
|
I ? l(!1, I) : o = setTimeout(() => {
|
|
909
909
|
l(!1, 1e-7);
|
|
910
910
|
}, 1e3);
|
|
911
911
|
}
|
|
912
|
-
|
|
912
|
+
C = !1;
|
|
913
913
|
}
|
|
914
914
|
try {
|
|
915
915
|
n = new IntersectionObserver(m, {
|
|
@@ -930,37 +930,37 @@ function N2(t, e, n, o) {
|
|
|
930
930
|
ancestorScroll: i = !0,
|
|
931
931
|
ancestorResize: s = !0,
|
|
932
932
|
elementResize: l = typeof ResizeObserver == "function",
|
|
933
|
-
layoutShift:
|
|
933
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
934
934
|
animationFrame: r = !1
|
|
935
|
-
} = o,
|
|
935
|
+
} = o, a = Tt(t), u = i || s ? [...a ? gt(a) : [], ...gt(e)] : [];
|
|
936
936
|
u.forEach((p) => {
|
|
937
937
|
i && p.addEventListener("scroll", n, {
|
|
938
938
|
passive: !0
|
|
939
939
|
}), s && p.addEventListener("resize", n);
|
|
940
940
|
});
|
|
941
|
-
const f =
|
|
942
|
-
let
|
|
941
|
+
const f = a && c ? q2(a, n) : null;
|
|
942
|
+
let g = -1, A = null;
|
|
943
943
|
l && (A = new ResizeObserver((p) => {
|
|
944
944
|
let [v] = p;
|
|
945
|
-
v && v.target ===
|
|
946
|
-
var
|
|
947
|
-
(
|
|
945
|
+
v && v.target === a && A && (A.unobserve(e), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
|
|
946
|
+
var C;
|
|
947
|
+
(C = A) == null || C.observe(e);
|
|
948
948
|
})), n();
|
|
949
|
-
}),
|
|
950
|
-
let
|
|
949
|
+
}), a && !r && A.observe(a), A.observe(e));
|
|
950
|
+
let d, h = r ? tt(t) : null;
|
|
951
951
|
r && w();
|
|
952
952
|
function w() {
|
|
953
953
|
const p = tt(t);
|
|
954
|
-
h && (p.x !== h.x || p.y !== h.y || p.width !== h.width || p.height !== h.height) && n(), h = p,
|
|
954
|
+
h && (p.x !== h.x || p.y !== h.y || p.width !== h.width || p.height !== h.height) && n(), h = p, d = requestAnimationFrame(w);
|
|
955
955
|
}
|
|
956
956
|
return n(), () => {
|
|
957
957
|
var p;
|
|
958
958
|
u.forEach((v) => {
|
|
959
959
|
i && v.removeEventListener("scroll", n), s && v.removeEventListener("resize", n);
|
|
960
|
-
}), f == null || f(), (p = A) == null || p.disconnect(), A = null, r && cancelAnimationFrame(
|
|
960
|
+
}), f == null || f(), (p = A) == null || p.disconnect(), A = null, r && cancelAnimationFrame(d);
|
|
961
961
|
};
|
|
962
962
|
}
|
|
963
|
-
const j2 =
|
|
963
|
+
const j2 = Q2, Z2 = b2, P2 = E2, z2 = S2, $2 = y2, X2 = (t, e, n) => {
|
|
964
964
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
965
965
|
platform: W2,
|
|
966
966
|
...n
|
|
@@ -1014,13 +1014,13 @@ function ee(t, e, n) {
|
|
|
1014
1014
|
}), s = S(() => it(n.middleware)), l = S(() => {
|
|
1015
1015
|
var x;
|
|
1016
1016
|
return (x = it(n.placement)) != null ? x : "bottom";
|
|
1017
|
-
}),
|
|
1017
|
+
}), c = S(() => {
|
|
1018
1018
|
var x;
|
|
1019
1019
|
return (x = it(n.strategy)) != null ? x : "absolute";
|
|
1020
1020
|
}), r = S(() => {
|
|
1021
1021
|
var x;
|
|
1022
1022
|
return (x = it(n.transform)) != null ? x : !0;
|
|
1023
|
-
}),
|
|
1023
|
+
}), a = S(() => Lt(t.value)), u = S(() => Lt(e.value)), f = M(0), g = M(0), A = M(c.value), d = M(l.value), h = c2({}), w = M(!1), p = S(() => {
|
|
1024
1024
|
const x = {
|
|
1025
1025
|
position: A.value,
|
|
1026
1026
|
left: "0",
|
|
@@ -1028,27 +1028,27 @@ function ee(t, e, n) {
|
|
|
1028
1028
|
};
|
|
1029
1029
|
if (!u.value)
|
|
1030
1030
|
return x;
|
|
1031
|
-
const
|
|
1031
|
+
const D = Vt(u.value, f.value), b = Vt(u.value, g.value);
|
|
1032
1032
|
return r.value ? {
|
|
1033
1033
|
...x,
|
|
1034
|
-
transform: "translate(" +
|
|
1034
|
+
transform: "translate(" + D + "px, " + b + "px)",
|
|
1035
1035
|
...s2(u.value) >= 1.5 && {
|
|
1036
1036
|
willChange: "transform"
|
|
1037
1037
|
}
|
|
1038
1038
|
} : {
|
|
1039
1039
|
position: A.value,
|
|
1040
|
-
left:
|
|
1041
|
-
top:
|
|
1040
|
+
left: D + "px",
|
|
1041
|
+
top: b + "px"
|
|
1042
1042
|
};
|
|
1043
1043
|
});
|
|
1044
1044
|
let v;
|
|
1045
|
-
function
|
|
1046
|
-
|
|
1045
|
+
function C() {
|
|
1046
|
+
a.value == null || u.value == null || X2(a.value, u.value, {
|
|
1047
1047
|
middleware: s.value,
|
|
1048
1048
|
placement: l.value,
|
|
1049
|
-
strategy:
|
|
1049
|
+
strategy: c.value
|
|
1050
1050
|
}).then((x) => {
|
|
1051
|
-
f.value = x.x,
|
|
1051
|
+
f.value = x.x, g.value = x.y, A.value = x.strategy, d.value = x.placement, h.value = x.middlewareData, w.value = !0;
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
1054
|
function m() {
|
|
@@ -1056,32 +1056,32 @@ function ee(t, e, n) {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
function B() {
|
|
1058
1058
|
if (m(), o === void 0) {
|
|
1059
|
-
|
|
1059
|
+
C();
|
|
1060
1060
|
return;
|
|
1061
1061
|
}
|
|
1062
|
-
if (
|
|
1063
|
-
v = o(
|
|
1062
|
+
if (a.value != null && u.value != null) {
|
|
1063
|
+
v = o(a.value, u.value, C);
|
|
1064
1064
|
return;
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
function I() {
|
|
1068
1068
|
i.value || (w.value = !1);
|
|
1069
1069
|
}
|
|
1070
|
-
return At([s, l,
|
|
1070
|
+
return At([s, l, c], C, {
|
|
1071
1071
|
flush: "sync"
|
|
1072
|
-
}), At([
|
|
1072
|
+
}), At([a, u], B, {
|
|
1073
1073
|
flush: "sync"
|
|
1074
1074
|
}), At(i, I, {
|
|
1075
1075
|
flush: "sync"
|
|
1076
1076
|
}), a2() && u2(m), {
|
|
1077
1077
|
x: ot(f),
|
|
1078
|
-
y: ot(
|
|
1078
|
+
y: ot(g),
|
|
1079
1079
|
strategy: ot(A),
|
|
1080
|
-
placement: ot(
|
|
1080
|
+
placement: ot(d),
|
|
1081
1081
|
middlewareData: ot(h),
|
|
1082
1082
|
isPositioned: ot(w),
|
|
1083
1083
|
floatingStyles: p,
|
|
1084
|
-
update:
|
|
1084
|
+
update: C
|
|
1085
1085
|
};
|
|
1086
1086
|
}
|
|
1087
1087
|
const ne = "data:image/svg+xml,%3csvg%20width='1324'%20height='1326'%20viewBox='0%200%201324%201326'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='141'%20y='78'%20width='1042'%20height='1170'%20fill='white'/%3e%3cpath%20d='M184.533%201.99984C135.867%207.19984%2089.8666%2029.8665%2056.4%2065.1998C29.6%2093.4665%2012.5333%20126.266%203.73329%20166.4L0.666626%20180V663.333V1146.67L3.73329%201160.27C12.5333%201200.4%2029.6%201233.2%2056.4%201261.47C90.4%201297.33%20135.333%201319.33%20185.6%201324.67C203.333%201326.53%201122.53%201326.4%201139.73%201324.53C1188.53%201319.33%201229.07%201299.73%201264.13%201264.8C1294.27%201234.67%201311.47%201202.67%201320.8%201159.33C1323.2%201148.4%201323.33%201130%201323.33%20663.333C1323.33%20196.667%201323.2%20178.266%201320.8%20167.333C1311.47%20124%201294.27%2091.9998%201264.13%2061.8664C1229.07%2026.9331%201188.53%207.33314%201139.73%202.13314C1124.67%200.399809%20200%200.399842%20184.533%201.99984ZM732.933%20151.466C746.8%20152.933%20763.333%20157.6%20774%20163.067C800.267%20176.267%20822.4%20200.4%20833.2%20227.333C841.867%20249.333%20841.467%20233.467%20841.067%20502C840.533%20777.6%20841.733%20750.267%20829.2%20776.133C822.133%20790.933%20810.667%20806.533%20800.267%20815.2C795.2%20819.6%20793.2%20822.267%20792%20827.067C786.133%20848.267%20768.667%20885.867%20755.2%20906.133C724.533%20952%20681.2%20986.133%20624%201009.33C615.6%201012.8%20608.4%201015.87%20608.133%201016.13C607.867%201016.27%20614.533%201023.33%20622.933%201031.6C633.467%201042.13%20639.333%201049.07%20642.133%201054.4C646.933%201063.87%20645.467%201064%20672.667%201050.8C724.933%201025.47%20762.933%20994.8%20794.933%20952C811.467%20929.867%20829.867%20895.333%20839.333%20868.267C841.333%20862.667%20843.467%20858%20844.133%20858C844.667%20858%20845.6%20859.333%20846.133%20860.933C848.267%20868.133%20863.333%20900.8%20870.133%20913.2C898%20963.867%20931.6%201001.2%20975.333%201030.27C989.867%201040%201017.2%201054.4%201031.6%201059.73L1037.2%201061.87L1041.33%201054.67C1048.4%201042.4%201056.67%201032.27%201067.87%201022.4L1078.67%201012.8L1071.6%201010.27C1067.87%201008.8%201060.53%201006%201055.6%201004.13C1040.93%20998.533%201013.73%20984%201000%20974.267C985.733%20964.133%20960.8%20940.667%20948.933%20926.267C935.067%20909.333%20921.467%20887.467%20910%20864C900.133%20844%20887.2%20812.133%20884.667%20801.6L883.733%20798H971.867H1060V769.333V740.667H963.333H866.533L867.333%20736.267C868.4%20729.867%20870.4%20693.067%20871.467%20662.933C872.267%20639.067%20872.533%20636.4%20874.8%20635.2C878.667%20633.2%20881.333%20626.667%20882.267%20617.333L883.067%20608.667H872.133C864.133%20608.667%20861.067%20608.133%20860.533%20606.8C860%20605.467%20881.2%20466%20886.133%20438.267L886.933%20433.867L977.867%20434.4C1066.67%20434.8%201068.93%20434.8%201079.87%20437.733C1124.8%20449.6%201158.67%20482.533%201172.93%20528L1176.67%20540V808V1076L1172.93%201087.73C1158.53%201133.6%201126.13%201164.93%201078.93%201178.4L1068.67%201181.33L812.667%201181.73C638.8%201182%20552.667%201181.73%20544.4%201180.67C488.667%201174.4%20443.2%201132.13%20432.533%201076.93C431.067%201068.93%20430.667%201046.4%20430.667%20956.667V846.133L340.4%20845.6C252.8%20845.2%20249.6%20845.067%20239.067%20842.267C196.533%20831.067%20164.533%20800.133%20151.067%20757.333L147.333%20745.333V499.333V253.333L150.4%20242C159.067%20209.067%20180.4%20181.866%20210.667%20164.933C221.2%20159.066%20240.4%20152.933%20252.667%20151.6C268.533%20149.733%20716.933%20149.6%20732.933%20151.466Z'%20fill='%233B5695'/%3e%3cpath%20d='M256.533%20213.333C232.933%20218.533%20214.133%20237.067%20209.333%20259.733C208.4%20264.533%20208%20337.2%20208.267%20502L208.667%20737.333L211.733%20744.933C218.533%20761.733%20231.733%20774.533%20248.667%20780.933L256.667%20784L490%20784.4C749.2%20784.8%20734.4%20785.333%20750.133%20776C764.267%20767.6%20775.467%20752.4%20778.667%20737.067C779.6%20732.8%20780%20652.133%20779.733%20494L779.333%20257.333L775.067%20248.267C767.2%20231.6%20756.933%20222%20740.133%20215.467L731.333%20212L498%20211.733C306.8%20211.6%20263.2%20211.867%20256.533%20213.333ZM492%20281.2C546.267%20290.267%20590.267%20311.2%20622.533%20343.333C653.867%20374.667%20671.867%20409.867%20680.267%20456.667C684.133%20478.533%20684.133%20516.267%20680.133%20538.533C665.467%20621.067%20606.933%20684.4%20524%20707.467C490%20716.933%20488.4%20716.933%20392.4%20717.6L305.333%20718.133V498V277.867L391.733%20278.4C465.733%20278.8%20480%20279.2%20492%20281.2Z'%20fill='%233B5695'/%3e%3cpath%20d='M384%20462.933V576.133L345.067%20611.467C306.533%20646.267%20306.133%20646.667%20310.667%20647.067C313.2%20647.333%20348.933%20647.333%20390%20646.933C472.667%20646.267%20477.6%20645.867%20503.6%20637.333C527.6%20629.333%20543.333%20620%20560.267%20603.6C590.133%20574.667%20604.4%20536.267%20602.267%20489.733C600.533%20450.267%20588.267%20420%20564%20395.333C546.8%20377.867%20531.6%20368.4%20506.267%20360C482.933%20352.133%20474.533%20351.2%20427.067%20350.4L384%20349.733V462.933Z'%20fill='%233B5695'/%3e%3c/svg%3e", z = (t, e) => {
|
|
@@ -1149,7 +1149,7 @@ const de = /* @__PURE__ */ z(ce, [["render", ge], ["__scopeId", "data-v-a0957544
|
|
|
1149
1149
|
},
|
|
1150
1150
|
emits: ["loadTTS"],
|
|
1151
1151
|
setup(t, { emit: e }) {
|
|
1152
|
-
const n = t, o = e, i = S(() => n.tts), s =
|
|
1152
|
+
const n = t, o = e, i = S(() => n.tts), s = M(!1), l = new Audio();
|
|
1153
1153
|
At(
|
|
1154
1154
|
i,
|
|
1155
1155
|
() => {
|
|
@@ -1161,9 +1161,9 @@ const de = /* @__PURE__ */ z(ce, [["render", ge], ["__scopeId", "data-v-a0957544
|
|
|
1161
1161
|
},
|
|
1162
1162
|
{ immediate: !0 }
|
|
1163
1163
|
), Ft(() => {
|
|
1164
|
-
|
|
1164
|
+
a(), l.src = "";
|
|
1165
1165
|
});
|
|
1166
|
-
function
|
|
1166
|
+
function c() {
|
|
1167
1167
|
if (i.value) {
|
|
1168
1168
|
r();
|
|
1169
1169
|
return;
|
|
@@ -1175,7 +1175,7 @@ const de = /* @__PURE__ */ z(ce, [["render", ge], ["__scopeId", "data-v-a0957544
|
|
|
1175
1175
|
s.value = !1;
|
|
1176
1176
|
}));
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function a() {
|
|
1179
1179
|
l.pause(), l.currentTime = 0, s.value = !1;
|
|
1180
1180
|
}
|
|
1181
1181
|
return l.onended = () => {
|
|
@@ -1183,17 +1183,17 @@ const de = /* @__PURE__ */ z(ce, [["render", ge], ["__scopeId", "data-v-a0957544
|
|
|
1183
1183
|
}, (u, f) => s.value ? (y(), E("button", {
|
|
1184
1184
|
key: 1,
|
|
1185
1185
|
class: "btn btn-xs btn-ghost btn-circle",
|
|
1186
|
-
onClick:
|
|
1186
|
+
onClick: a
|
|
1187
1187
|
}, ye)) : (y(), E("button", {
|
|
1188
1188
|
key: 0,
|
|
1189
1189
|
class: "btn btn-xs btn-ghost btn-circle",
|
|
1190
|
-
onClick:
|
|
1190
|
+
onClick: c
|
|
1191
1191
|
}, Be));
|
|
1192
1192
|
}
|
|
1193
|
-
}, Ee = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.47207%201.31905C7.57125%201.12371%207.77589%201%208.00001%201C8.22413%201%208.42877%201.12367%208.52795%201.31905L10.3721%204.95175L14.4959%205.53427C14.7177%205.5656%2014.9019%205.7166%2014.9712%205.9238C15.0404%206.13101%2014.9827%206.35843%2014.8222%206.51049L11.8382%209.33816L12.5427%2013.3309C12.5806%2013.5456%2012.4897%2013.7626%2012.3084%2013.8906C12.1272%2014.0187%2011.8868%2014.0356%2011.6884%2013.9342L8.00004%2012.0491L4.31158%2013.9343C4.11323%2014.0356%203.87286%2014.0187%203.69157%2013.8907C3.51028%2013.7627%203.4195%2013.5457%203.45736%2013.3309L4.1618%209.33819L1.17781%206.51052C1.01735%206.35846%200.959571%206.13101%201.02884%205.92383C1.09807%205.71663%201.28232%205.56563%201.50409%205.53431L5.62787%204.95178L7.47207%201.31905Z'%20fill='%23FFC857'/%3e%3c/svg%3e", Ie = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9491%205.89315C14.8278%205.53128%2014.5111%205.27252%2014.1226%205.21783L10.5264%204.7114L8.91813%201.55315C8.74435%201.21195%208.39257%201%207.99998%201C7.60739%201%207.25557%201.21195%207.08183%201.55315L5.47358%204.7114L1.8774%205.21783C1.48888%205.27252%201.17219%205.53128%201.05086%205.89315C0.929554%206.25501%201.02881%206.64477%201.30993%206.91038L3.91217%209.36871L3.29786%2012.8399C3.2315%2013.215%203.38755%2013.5868%203.7052%2013.8105C3.88128%2013.9344%204.08938%2014%204.30704%2014C4.47232%2014%204.63705%2013.9606%204.78341%2013.886L7.99995%2012.2471L11.2165%2013.886C11.3628%2013.9606%2011.5276%2014%2011.6929%2014C11.9106%2014%2012.1187%2013.9345%2012.2948%2013.8105C12.6124%2013.5868%2012.7685%2013.215%2012.7021%2012.84L12.0878%209.36871L14.6901%206.91035C14.9712%206.64477%2015.0704%206.25498%2014.9491%205.89315ZM14.0266%206.25082L11.2455%208.87813C11.1335%208.98392%2011.0824%209.13637%2011.1089%209.28575L11.7654%2012.9956C11.7701%2013.0226%2011.759%2013.0493%2011.7362%2013.0653C11.7202%2013.0766%2011.7038%2013.079%2011.6929%2013.079C11.6809%2013.079%2011.6694%2013.0762%2011.6587%2013.0708L8.22108%2011.3192C8.15189%2011.284%208.07593%2011.2663%207.99998%2011.2663C7.92402%2011.2663%207.84807%2011.284%207.77882%2011.3193L4.34118%2013.0708C4.33052%2013.0763%204.31904%2013.079%204.30701%2013.079C4.29611%2013.079%204.27969%2013.0767%204.26373%2013.0654C4.24092%2013.0494%204.22975%2013.0226%204.2345%2012.9957L4.89104%209.28584C4.91747%209.13646%204.86637%208.98401%204.75439%208.87822L1.97327%206.25091C1.95308%206.23184%201.94595%206.20383%201.95466%206.17786C1.9634%206.15185%201.98612%206.13326%202.01405%206.12933L5.85743%205.58807C6.0122%205.56626%206.14599%205.47208%206.21521%205.33616L7.93404%201.9608C7.94653%201.9363%207.97178%201.92107%207.99998%201.92107C8.02818%201.92107%208.05343%201.9363%208.06591%201.9608L9.78468%205.33607C9.85391%205.47199%209.9877%205.5662%2010.1425%205.58799L13.9859%206.12924C14.0138%206.1332%2014.0365%206.15176%2014.0452%206.17777C14.0539%206.20374%2014.0468%206.23175%2014.0266%206.25082Z'%20fill='%23FFC857'/%3e%3c/svg%3e",
|
|
1193
|
+
}, Ee = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.47207%201.31905C7.57125%201.12371%207.77589%201%208.00001%201C8.22413%201%208.42877%201.12367%208.52795%201.31905L10.3721%204.95175L14.4959%205.53427C14.7177%205.5656%2014.9019%205.7166%2014.9712%205.9238C15.0404%206.13101%2014.9827%206.35843%2014.8222%206.51049L11.8382%209.33816L12.5427%2013.3309C12.5806%2013.5456%2012.4897%2013.7626%2012.3084%2013.8906C12.1272%2014.0187%2011.8868%2014.0356%2011.6884%2013.9342L8.00004%2012.0491L4.31158%2013.9343C4.11323%2014.0356%203.87286%2014.0187%203.69157%2013.8907C3.51028%2013.7627%203.4195%2013.5457%203.45736%2013.3309L4.1618%209.33819L1.17781%206.51052C1.01735%206.35846%200.959571%206.13101%201.02884%205.92383C1.09807%205.71663%201.28232%205.56563%201.50409%205.53431L5.62787%204.95178L7.47207%201.31905Z'%20fill='%23FFC857'/%3e%3c/svg%3e", Ie = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9491%205.89315C14.8278%205.53128%2014.5111%205.27252%2014.1226%205.21783L10.5264%204.7114L8.91813%201.55315C8.74435%201.21195%208.39257%201%207.99998%201C7.60739%201%207.25557%201.21195%207.08183%201.55315L5.47358%204.7114L1.8774%205.21783C1.48888%205.27252%201.17219%205.53128%201.05086%205.89315C0.929554%206.25501%201.02881%206.64477%201.30993%206.91038L3.91217%209.36871L3.29786%2012.8399C3.2315%2013.215%203.38755%2013.5868%203.7052%2013.8105C3.88128%2013.9344%204.08938%2014%204.30704%2014C4.47232%2014%204.63705%2013.9606%204.78341%2013.886L7.99995%2012.2471L11.2165%2013.886C11.3628%2013.9606%2011.5276%2014%2011.6929%2014C11.9106%2014%2012.1187%2013.9345%2012.2948%2013.8105C12.6124%2013.5868%2012.7685%2013.215%2012.7021%2012.84L12.0878%209.36871L14.6901%206.91035C14.9712%206.64477%2015.0704%206.25498%2014.9491%205.89315ZM14.0266%206.25082L11.2455%208.87813C11.1335%208.98392%2011.0824%209.13637%2011.1089%209.28575L11.7654%2012.9956C11.7701%2013.0226%2011.759%2013.0493%2011.7362%2013.0653C11.7202%2013.0766%2011.7038%2013.079%2011.6929%2013.079C11.6809%2013.079%2011.6694%2013.0762%2011.6587%2013.0708L8.22108%2011.3192C8.15189%2011.284%208.07593%2011.2663%207.99998%2011.2663C7.92402%2011.2663%207.84807%2011.284%207.77882%2011.3193L4.34118%2013.0708C4.33052%2013.0763%204.31904%2013.079%204.30701%2013.079C4.29611%2013.079%204.27969%2013.0767%204.26373%2013.0654C4.24092%2013.0494%204.22975%2013.0226%204.2345%2012.9957L4.89104%209.28584C4.91747%209.13646%204.86637%208.98401%204.75439%208.87822L1.97327%206.25091C1.95308%206.23184%201.94595%206.20383%201.95466%206.17786C1.9634%206.15185%201.98612%206.13326%202.01405%206.12933L5.85743%205.58807C6.0122%205.56626%206.14599%205.47208%206.21521%205.33616L7.93404%201.9608C7.94653%201.9363%207.97178%201.92107%207.99998%201.92107C8.02818%201.92107%208.05343%201.9363%208.06591%201.9608L9.78468%205.33607C9.85391%205.47199%209.9877%205.5662%2010.1425%205.58799L13.9859%206.12924C14.0138%206.1332%2014.0365%206.15176%2014.0452%206.17777C14.0539%206.20374%2014.0468%206.23175%2014.0266%206.25082Z'%20fill='%23FFC857'/%3e%3c/svg%3e", Qe = {
|
|
1194
1194
|
name: "Favorite",
|
|
1195
1195
|
props: ["isFilled"]
|
|
1196
|
-
},
|
|
1196
|
+
}, be = { class: "btn btn-xs btn-circle btn-ghost" }, Se = {
|
|
1197
1197
|
key: 0,
|
|
1198
1198
|
class: "w-5",
|
|
1199
1199
|
src: Ee,
|
|
@@ -1205,11 +1205,11 @@ const de = /* @__PURE__ */ z(ce, [["render", ge], ["__scopeId", "data-v-a0957544
|
|
|
1205
1205
|
alt: "Clear"
|
|
1206
1206
|
};
|
|
1207
1207
|
function Fe(t, e, n, o, i, s) {
|
|
1208
|
-
return y(), E("button",
|
|
1208
|
+
return y(), E("button", be, [
|
|
1209
1209
|
n.isFilled ? (y(), E("img", Se)) : (y(), E("img", Le))
|
|
1210
1210
|
]);
|
|
1211
1211
|
}
|
|
1212
|
-
const qt = /* @__PURE__ */ z(
|
|
1212
|
+
const qt = /* @__PURE__ */ z(Qe, [["render", Fe]]), ke = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.12596%201.63869C9.46935%201.54364%209.83221%201.70329%209.99413%202.02068C10.3672%202.75191%2011.1261%203.25%2012%203.25C12.8739%203.25%2013.6328%202.75191%2014.0059%202.02068C14.1678%201.70329%2014.5307%201.54364%2014.874%201.63869C16.5585%202.10497%2018.0759%202.9704%2019.3184%204.12574C19.5611%204.35137%2019.6269%204.70948%2019.4804%205.00666C19.3331%205.30535%2019.25%205.6419%2019.25%206C19.25%207.24263%2020.2574%208.25%2021.5%208.25L21.5314%208.24977C21.8629%208.24504%2022.1583%208.45859%2022.2576%208.77495C22.5777%209.79397%2022.75%2010.8776%2022.75%2012C22.75%2012.7408%2022.6749%2013.4649%2022.5318%2014.1648C22.4548%2014.5411%2022.1059%2014.7985%2021.7237%2014.7609C21.6504%2014.7537%2021.5758%2014.75%2021.5%2014.75C20.2574%2014.75%2019.25%2015.7574%2019.25%2017C19.25%2017.5531%2019.4486%2018.0579%2019.7793%2018.4498C20.027%2018.7434%2020.0128%2019.1767%2019.7465%2019.4535C18.4777%2020.7719%2016.8745%2021.7678%2015.0721%2022.3044C14.6807%2022.4209%2014.2681%2022.2029%2014.1437%2021.814C13.8535%2020.906%2013.0024%2020.25%2012%2020.25C10.9976%2020.25%2010.1465%2020.906%209.85629%2021.814C9.73195%2022.2029%209.31927%2022.4209%208.92789%2022.3044C7.12545%2021.7678%205.52229%2020.7719%204.25353%2019.4535C3.98716%2019.1767%203.97299%2018.7434%204.22072%2018.4498C4.55139%2018.0579%204.75%2017.5531%204.75%2017C4.75%2015.7574%203.74264%2014.75%202.5%2014.75C2.42423%2014.75%202.34963%2014.7537%202.27634%2014.7609C1.89406%2014.7985%201.54519%2014.5411%201.46821%2014.1648C1.32505%2013.4649%201.25%2012.7408%201.25%2012C1.25%2010.8776%201.42227%209.79398%201.74236%208.77494C1.84173%208.45859%202.13705%208.24504%202.4686%208.24977L2.5%208.25C3.74264%208.25%204.75%207.24263%204.75%206C4.75%205.6419%204.66689%205.30535%204.51962%205.00666C4.3731%204.70948%204.43894%204.35137%204.68159%204.12574C5.92411%202.9704%207.44153%202.10497%209.12596%201.63869ZM6.08277%204.88991C6.19152%205.24123%206.25%205.61424%206.25%206C6.25%207.88945%204.85261%209.45253%203.03493%209.71213C2.84898%2010.4432%202.75%2011.2096%202.75%2012C2.75%2012.4294%202.77921%2012.8516%202.83567%2013.2648C4.74948%2013.4346%206.25%2015.0421%206.25%2017C6.25%2017.6669%206.0754%2018.2941%205.76971%2018.8372C6.62645%2019.6184%207.63002%2020.2404%208.73362%2020.657C9.37706%2019.5189%2010.598%2018.75%2012%2018.75C13.402%2018.75%2014.6229%2019.5189%2015.2664%2020.657C16.37%2020.2404%2017.3735%2019.6184%2018.2303%2018.8372C17.9246%2018.2941%2017.75%2017.6669%2017.75%2017C17.75%2015.0421%2019.2505%2013.4346%2021.1643%2013.2648C21.2208%2012.8516%2021.25%2012.4294%2021.25%2012C21.25%2011.2096%2021.151%2010.4432%2020.9651%209.71213C19.1474%209.45252%2017.75%207.88945%2017.75%206C17.75%205.61424%2017.8085%205.24123%2017.9172%204.88991C17.0618%204.1771%2016.0762%203.61614%2015.0018%203.24775C14.3184%204.15897%2013.2287%204.75%2012%204.75C10.7713%204.75%209.68158%204.15897%208.99819%203.24775C7.92382%203.61614%206.93823%204.1771%206.08277%204.88991Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M7.75%2012C7.75%209.65278%209.65279%207.75%2012%207.75C14.3472%207.75%2016.25%209.65278%2016.25%2012C16.25%2014.3472%2014.3472%2016.25%2012%2016.25C9.65279%2016.25%207.75%2014.3472%207.75%2012ZM12%209.25C10.4812%209.25%209.25%2010.4812%209.25%2012C9.25%2013.5188%2010.4812%2014.75%2012%2014.75C13.5188%2014.75%2014.75%2013.5188%2014.75%2012C14.75%2010.4812%2013.5188%209.25%2012%209.25Z'%20fill='%237E7E7E'/%3e%3c/svg%3e", De = {}, Re = { class: "btn btn-xs btn-ghost btn-circle" }, Me = /* @__PURE__ */ F("img", {
|
|
1213
1213
|
class: "w-5",
|
|
1214
1214
|
src: ke,
|
|
1215
1215
|
alt: "Icon description"
|
|
@@ -1219,15 +1219,15 @@ const qt = /* @__PURE__ */ z(be, [["render", Fe]]), ke = "data:image/svg+xml,%3c
|
|
|
1219
1219
|
function Oe(t, e) {
|
|
1220
1220
|
return y(), E("button", Re, He);
|
|
1221
1221
|
}
|
|
1222
|
-
const Nt = /* @__PURE__ */ z(De, [["render", Oe]]), Te = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.19102%203.19102C3.44571%202.93633%203.85864%202.93633%204.11333%203.19102L12.809%2011.8867C13.0637%2012.1414%2013.0637%2012.5543%2012.809%2012.809C12.5543%2013.0637%2012.1414%2013.0637%2011.8867%2012.809L3.19102%204.11333C2.93633%203.85864%202.93633%203.44571%203.19102%203.19102Z'%20fill='%231A1F2A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.809%203.19102C13.0637%203.44571%2013.0637%203.85864%2012.809%204.11333L4.11333%2012.809C3.85864%2013.0637%203.44571%2013.0637%203.19102%2012.809C2.93633%2012.5543%202.93633%2012.1414%203.19102%2011.8867L11.8867%203.19102C12.1414%202.93633%2012.5543%202.93633%2012.809%203.19102Z'%20fill='%231A1F2A'/%3e%3c/svg%3e", Ge = {}, Je = { class: "btn btn-xs btn-circle btn-ghost" },
|
|
1222
|
+
const Nt = /* @__PURE__ */ z(De, [["render", Oe]]), Te = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.19102%203.19102C3.44571%202.93633%203.85864%202.93633%204.11333%203.19102L12.809%2011.8867C13.0637%2012.1414%2013.0637%2012.5543%2012.809%2012.809C12.5543%2013.0637%2012.1414%2013.0637%2011.8867%2012.809L3.19102%204.11333C2.93633%203.85864%202.93633%203.44571%203.19102%203.19102Z'%20fill='%231A1F2A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.809%203.19102C13.0637%203.44571%2013.0637%203.85864%2012.809%204.11333L4.11333%2012.809C3.85864%2013.0637%203.44571%2013.0637%203.19102%2012.809C2.93633%2012.5543%202.93633%2012.1414%203.19102%2011.8867L11.8867%203.19102C12.1414%202.93633%2012.5543%202.93633%2012.809%203.19102Z'%20fill='%231A1F2A'/%3e%3c/svg%3e", Ge = {}, Je = { class: "btn btn-xs btn-circle btn-ghost" }, Ye = /* @__PURE__ */ F("img", {
|
|
1223
1223
|
class: "w-5",
|
|
1224
1224
|
src: Te,
|
|
1225
1225
|
alt: "Clear"
|
|
1226
|
-
}, null, -1),
|
|
1227
|
-
|
|
1226
|
+
}, null, -1), Ke = [
|
|
1227
|
+
Ye
|
|
1228
1228
|
];
|
|
1229
1229
|
function Ue(t, e) {
|
|
1230
|
-
return y(), E("button", Je,
|
|
1230
|
+
return y(), E("button", Je, Ke);
|
|
1231
1231
|
}
|
|
1232
1232
|
const jt = /* @__PURE__ */ z(Ge, [["render", Ue]]), Ve = {
|
|
1233
1233
|
name: "Sentences",
|
|
@@ -1449,28 +1449,28 @@ var l2 = { exports: {} };
|
|
|
1449
1449
|
"tabSize",
|
|
1450
1450
|
"MozTabSize"
|
|
1451
1451
|
], n = typeof window < "u", o = n && window.mozInnerScreenX != null;
|
|
1452
|
-
function i(s, l,
|
|
1452
|
+
function i(s, l, c) {
|
|
1453
1453
|
if (!n)
|
|
1454
1454
|
throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");
|
|
1455
|
-
var r =
|
|
1455
|
+
var r = c && c.debug || !1;
|
|
1456
1456
|
if (r) {
|
|
1457
|
-
var
|
|
1458
|
-
|
|
1457
|
+
var a = document.querySelector("#input-textarea-caret-position-mirror-div");
|
|
1458
|
+
a && a.parentNode.removeChild(a);
|
|
1459
1459
|
}
|
|
1460
1460
|
var u = document.createElement("div");
|
|
1461
1461
|
u.id = "input-textarea-caret-position-mirror-div", document.body.appendChild(u);
|
|
1462
|
-
var f = u.style,
|
|
1462
|
+
var f = u.style, g = window.getComputedStyle ? window.getComputedStyle(s) : s.currentStyle, A = s.nodeName === "INPUT";
|
|
1463
1463
|
f.whiteSpace = "pre-wrap", A || (f.wordWrap = "break-word"), f.position = "absolute", r || (f.visibility = "hidden"), e.forEach(function(w) {
|
|
1464
|
-
A && w === "lineHeight" ? f.lineHeight =
|
|
1465
|
-
}), o ? s.scrollHeight > parseInt(
|
|
1466
|
-
var
|
|
1467
|
-
|
|
1464
|
+
A && w === "lineHeight" ? f.lineHeight = g.height : f[w] = g[w];
|
|
1465
|
+
}), o ? s.scrollHeight > parseInt(g.height) && (f.overflowY = "scroll") : f.overflow = "hidden", u.textContent = s.value.substring(0, l), A && (u.textContent = u.textContent.replace(/\s/g, " "));
|
|
1466
|
+
var d = document.createElement("span");
|
|
1467
|
+
d.textContent = s.value.substring(l) || ".", u.appendChild(d);
|
|
1468
1468
|
var h = {
|
|
1469
|
-
top:
|
|
1470
|
-
left:
|
|
1471
|
-
height: parseInt(
|
|
1469
|
+
top: d.offsetTop + parseInt(g.borderTopWidth),
|
|
1470
|
+
left: d.offsetLeft + parseInt(g.borderLeftWidth),
|
|
1471
|
+
height: parseInt(g.lineHeight)
|
|
1472
1472
|
};
|
|
1473
|
-
return r ?
|
|
1473
|
+
return r ? d.style.backgroundColor = "#aaa" : document.body.removeChild(u), h;
|
|
1474
1474
|
}
|
|
1475
1475
|
t.exports = i;
|
|
1476
1476
|
})();
|
|
@@ -1482,24 +1482,24 @@ function ft(t) {
|
|
|
1482
1482
|
let n = e + "";
|
|
1483
1483
|
if (n = n.trim(), t && t.type === "password" || !n.length && (!(t && t.selectionEnd) || (n = t.value.substring(t.selectionStart, t.selectionEnd), n = n.trim(), !n.length)))
|
|
1484
1484
|
return !1;
|
|
1485
|
-
let i = e.getRangeAt(0).getBoundingClientRect(), { top: s, bottom: l, left:
|
|
1486
|
-
if (!l && !
|
|
1485
|
+
let i = e.getRangeAt(0).getBoundingClientRect(), { top: s, bottom: l, left: c, width: r, height: a } = i;
|
|
1486
|
+
if (!l && !c) {
|
|
1487
1487
|
if (!t.selectionEnd)
|
|
1488
1488
|
return !1;
|
|
1489
1489
|
let u = Pt(t, t.selectionStart), f = Pt(t, t.selectionEnd);
|
|
1490
|
-
i = t.getBoundingClientRect(),
|
|
1490
|
+
i = t.getBoundingClientRect(), c = i.left + u.left, r = f.left - u.left, u.top != f.top && (c = i.left, r = i.width), s = i.top + u.top, l = i.top + f.top + 20;
|
|
1491
1491
|
}
|
|
1492
|
-
return
|
|
1492
|
+
return a === 0 && (a = l - s), {
|
|
1493
1493
|
text: n,
|
|
1494
1494
|
// position
|
|
1495
|
-
x:
|
|
1495
|
+
x: c,
|
|
1496
1496
|
y: s,
|
|
1497
1497
|
top: s,
|
|
1498
1498
|
bottom: l,
|
|
1499
|
-
left:
|
|
1500
|
-
right:
|
|
1499
|
+
left: c,
|
|
1500
|
+
right: c + r,
|
|
1501
1501
|
width: r,
|
|
1502
|
-
height:
|
|
1502
|
+
height: a
|
|
1503
1503
|
};
|
|
1504
1504
|
}
|
|
1505
1505
|
const c0 = {
|
|
@@ -1509,16 +1509,16 @@ const c0 = {
|
|
|
1509
1509
|
},
|
|
1510
1510
|
emits: ["toggleKey", "close"],
|
|
1511
1511
|
setup(t, { emit: e }) {
|
|
1512
|
-
const n = t, o = e, i =
|
|
1512
|
+
const n = t, o = e, i = () => {
|
|
1513
1513
|
setTimeout(() => {
|
|
1514
|
-
n.textSelected &&
|
|
1514
|
+
n.textSelected && c("DoubleClick");
|
|
1515
1515
|
}, 50);
|
|
1516
|
-
},
|
|
1517
|
-
|
|
1518
|
-
},
|
|
1519
|
-
|
|
1520
|
-
},
|
|
1521
|
-
switch (
|
|
1516
|
+
}, s = (r) => {
|
|
1517
|
+
(r.altKey && r.key.toLowerCase() === "w" || r.key === "∑") && n.textSelected && (c("Alt+W"), r.preventDefault()), r.key === "Escape" && (c("Escape"), r.preventDefault());
|
|
1518
|
+
}, l = (r) => {
|
|
1519
|
+
r.key === "Shift" && n.textSelected && c("Shift");
|
|
1520
|
+
}, c = (r) => {
|
|
1521
|
+
switch (r) {
|
|
1522
1522
|
case "DoubleClick":
|
|
1523
1523
|
o("toggleKey", "DoubleClick");
|
|
1524
1524
|
break;
|
|
@@ -1528,19 +1528,16 @@ const c0 = {
|
|
|
1528
1528
|
case "Alt+W":
|
|
1529
1529
|
o("toggleKey", "Alt+W");
|
|
1530
1530
|
break;
|
|
1531
|
-
case "Alt+Shift+D":
|
|
1532
|
-
o("toggleKey", "Alt+Shift+D");
|
|
1533
|
-
break;
|
|
1534
1531
|
case "Escape":
|
|
1535
1532
|
o("close");
|
|
1536
1533
|
break;
|
|
1537
1534
|
}
|
|
1538
1535
|
};
|
|
1539
1536
|
return zt(() => {
|
|
1540
|
-
window.addEventListener("dblclick",
|
|
1537
|
+
window.addEventListener("dblclick", i), window.addEventListener("keydown", s), window.addEventListener("keyup", l);
|
|
1541
1538
|
}), Ft(() => {
|
|
1542
|
-
window.removeEventListener("dblclick",
|
|
1543
|
-
}), (
|
|
1539
|
+
window.removeEventListener("dblclick", i), window.removeEventListener("keydown", s), window.removeEventListener("keyup", l);
|
|
1540
|
+
}), (r, a) => (y(), E("div"));
|
|
1544
1541
|
}
|
|
1545
1542
|
}, u0 = {
|
|
1546
1543
|
__name: "BubbleWrapper",
|
|
@@ -1557,7 +1554,7 @@ const c0 = {
|
|
|
1557
1554
|
},
|
|
1558
1555
|
emits: ["toggleKey", "logo", "favorite", "settings", "close", "loadTTS"],
|
|
1559
1556
|
setup(t, { emit: e }) {
|
|
1560
|
-
const n = t, o = e, i =
|
|
1557
|
+
const n = t, o = e, i = M(null), s = M(null), l = M(null), c = M(!1), r = M(""), a = S(() => typeof window > "u" || !l.value || !r.value ? null : {
|
|
1561
1558
|
getBoundingClientRect: () => ft(l.value),
|
|
1562
1559
|
getClientRects: () => ft(l.value)
|
|
1563
1560
|
}), u = S(() => {
|
|
@@ -1565,14 +1562,14 @@ const c0 = {
|
|
|
1565
1562
|
return {
|
|
1566
1563
|
display: "none"
|
|
1567
1564
|
};
|
|
1568
|
-
const { x:
|
|
1565
|
+
const { x: C, y: m } = A.value.arrow, B = {
|
|
1569
1566
|
top: "bottom",
|
|
1570
1567
|
right: "left",
|
|
1571
1568
|
bottom: "top",
|
|
1572
1569
|
left: "right"
|
|
1573
1570
|
}[A.value.offset.placement];
|
|
1574
1571
|
return {
|
|
1575
|
-
left:
|
|
1572
|
+
left: C != null ? `${C}px` : "",
|
|
1576
1573
|
top: m != null ? `${m}px` : "",
|
|
1577
1574
|
[B]: "-8px",
|
|
1578
1575
|
position: "absolute"
|
|
@@ -1589,7 +1586,7 @@ const c0 = {
|
|
|
1589
1586
|
default:
|
|
1590
1587
|
return {};
|
|
1591
1588
|
}
|
|
1592
|
-
}), { floatingStyles:
|
|
1589
|
+
}), { floatingStyles: g, middlewareData: A, update: d } = ee(a, i, {
|
|
1593
1590
|
placement: "bottom",
|
|
1594
1591
|
middleware: [
|
|
1595
1592
|
j2(8),
|
|
@@ -1597,68 +1594,66 @@ const c0 = {
|
|
|
1597
1594
|
Z2(),
|
|
1598
1595
|
te({ element: s }),
|
|
1599
1596
|
z2({
|
|
1600
|
-
apply({ rects:
|
|
1597
|
+
apply({ rects: C, elements: m }) {
|
|
1601
1598
|
Object.assign(m.floating.style, {
|
|
1602
|
-
maxWidth: `${
|
|
1599
|
+
maxWidth: `${C.reference.width > 250 ? C.reference.width / n.scale : 250}px`,
|
|
1603
1600
|
zIndex: 9999
|
|
1604
1601
|
});
|
|
1605
1602
|
}
|
|
1606
1603
|
})
|
|
1607
1604
|
],
|
|
1608
|
-
whileElementsMounted(
|
|
1609
|
-
return N2(
|
|
1605
|
+
whileElementsMounted(C, m, B) {
|
|
1606
|
+
return N2(C, m, B, {
|
|
1610
1607
|
ancestorScroll: !0
|
|
1611
1608
|
});
|
|
1612
1609
|
}
|
|
1613
1610
|
}), h = S(() => {
|
|
1614
|
-
if (n.scale === 1) return
|
|
1615
|
-
const
|
|
1611
|
+
if (n.scale === 1) return g.value;
|
|
1612
|
+
const C = g.value.transform;
|
|
1616
1613
|
return {
|
|
1617
|
-
...
|
|
1618
|
-
transform: `${
|
|
1614
|
+
...g.value,
|
|
1615
|
+
transform: `${C} scale(${n.scale})`
|
|
1619
1616
|
};
|
|
1620
1617
|
});
|
|
1621
1618
|
zt(() => {
|
|
1622
|
-
document.addEventListener("keyup", (
|
|
1623
|
-
|
|
1624
|
-
if (!m) {
|
|
1619
|
+
document.addEventListener("keyup", (C) => {
|
|
1620
|
+
if (!ft(C.target)) {
|
|
1625
1621
|
r.value = "", v();
|
|
1626
1622
|
return;
|
|
1627
1623
|
}
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
const m = ft(g.target);
|
|
1624
|
+
}), document.documentElement.onclick = (C) => {
|
|
1625
|
+
const m = ft(C.target);
|
|
1631
1626
|
if (!m) {
|
|
1632
1627
|
r.value = "", v();
|
|
1633
1628
|
return;
|
|
1634
1629
|
}
|
|
1635
|
-
w(m,
|
|
1636
|
-
}, document.documentElement.ontouchend = (
|
|
1637
|
-
const m = ft(
|
|
1630
|
+
w(m, C);
|
|
1631
|
+
}, document.documentElement.ontouchend = (C) => {
|
|
1632
|
+
const m = ft(C.target);
|
|
1638
1633
|
if (!m) {
|
|
1639
1634
|
r.value = "", v();
|
|
1640
1635
|
return;
|
|
1641
1636
|
}
|
|
1642
|
-
w(m,
|
|
1637
|
+
w(m, C);
|
|
1643
1638
|
};
|
|
1644
1639
|
}), Ft(() => {
|
|
1645
1640
|
document.documentElement.onclick = null, document.documentElement.ontouchend = null;
|
|
1646
1641
|
});
|
|
1647
|
-
const w = (
|
|
1648
|
-
n.status !== lt.LOGO && o("close"), l.value = m.target, r.value =
|
|
1649
|
-
}, p = (
|
|
1650
|
-
|
|
1642
|
+
const w = (C, m) => {
|
|
1643
|
+
n.status !== lt.LOGO && o("close"), l.value = m.target, r.value = C.text, c.value = !0, Gt(d);
|
|
1644
|
+
}, p = (C) => {
|
|
1645
|
+
C.stopPropagation();
|
|
1651
1646
|
}, v = async () => {
|
|
1652
|
-
|
|
1647
|
+
c.value = !1, o("close");
|
|
1653
1648
|
};
|
|
1654
1649
|
return At(
|
|
1655
1650
|
() => n.status,
|
|
1656
1651
|
() => {
|
|
1657
|
-
|
|
1652
|
+
c.value && Gt(d);
|
|
1658
1653
|
},
|
|
1659
1654
|
{ deep: !0 }
|
|
1660
|
-
), (
|
|
1661
|
-
|
|
1655
|
+
), (C, m) => (y(), E(ht, null, [
|
|
1656
|
+
c.value ? (y(), E("div", {
|
|
1662
1657
|
key: 0,
|
|
1663
1658
|
ref_key: "floatingEl",
|
|
1664
1659
|
ref: i,
|