@44-audio/components 0.1.0-dev.1 → 0.1.0-dev.11
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/{AudioPlayer-bUgQMAfs.mjs → AudioPlayer-Bha1JWsp.mjs} +147 -147
- package/dist/player.es.js +118 -102
- package/dist/recorder.es.js +413 -496
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
2
2
|
const nt = 1, it = 2, ur = 4, cn = 8, vn = 16, dn = 1, hn = 4, _n = 8, pn = 16, Hi = 1, zi = 2, Vi = 4, gn = 1, wn = 2, fr = "[", Tt = "[!", xt = "]", Ne = {}, L = Symbol(), mn = "http://www.w3.org/1999/xhtml", or = !1;
|
|
3
|
-
var At = Array.isArray, $n = Array.prototype.indexOf, St = Array.from, Xe = Object.keys, Me = Object.defineProperty, ge = Object.getOwnPropertyDescriptor,
|
|
3
|
+
var At = Array.isArray, $n = Array.prototype.indexOf, St = Array.from, Xe = Object.keys, Me = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, yn = Object.getOwnPropertyDescriptors, bn = Object.prototype, En = Array.prototype, cr = Object.getPrototypeOf, Wt = Object.isExtensible;
|
|
4
4
|
function Yi(e) {
|
|
5
5
|
return typeof e == "function";
|
|
6
6
|
}
|
|
@@ -16,7 +16,7 @@ function Tn() {
|
|
|
16
16
|
});
|
|
17
17
|
return { promise: r, resolve: e, reject: t };
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const j = 2, Nt = 4, Ct = 8, Ie = 16, ie = 32, ve = 64, dr = 128, U = 256, Ze = 512, O = 1024, z = 2048, de = 4096, V = 8192, be = 16384, Rt = 32768, Mt = 65536, Gt = 1 << 17, xn = 1 << 18, ke = 1 << 19, An = 1 << 20, pt = 1 << 21, Lt = 1 << 22, we = 1 << 23, Fe = Symbol("$state"), hr = Symbol("legacy props"), Sn = Symbol(""), Ot = new class extends Error {
|
|
20
20
|
name = "StaleReactionError";
|
|
21
21
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
22
22
|
}(), It = 3, qe = 8;
|
|
@@ -75,7 +75,7 @@ function at() {
|
|
|
75
75
|
/* @__PURE__ */ se(x)
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function je(e) {
|
|
79
79
|
if (S) {
|
|
80
80
|
if (/* @__PURE__ */ se(x) !== null)
|
|
81
81
|
throw st(), Ne;
|
|
@@ -120,19 +120,19 @@ function pr(e) {
|
|
|
120
120
|
function gr(e) {
|
|
121
121
|
return e === this.v;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function jn(e, t) {
|
|
124
124
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
125
125
|
}
|
|
126
126
|
function wr(e) {
|
|
127
|
-
return !
|
|
127
|
+
return !jn(e, this.v);
|
|
128
128
|
}
|
|
129
|
-
let
|
|
129
|
+
let Bn = !1, B = null;
|
|
130
130
|
function Qe(e) {
|
|
131
|
-
|
|
131
|
+
B = e;
|
|
132
132
|
}
|
|
133
133
|
function kt(e, t = !1, r) {
|
|
134
|
-
|
|
135
|
-
p:
|
|
134
|
+
B = {
|
|
135
|
+
p: B,
|
|
136
136
|
c: null,
|
|
137
137
|
e: null,
|
|
138
138
|
s: e,
|
|
@@ -143,14 +143,14 @@ function kt(e, t = !1, r) {
|
|
|
143
143
|
function Pt(e) {
|
|
144
144
|
var t = (
|
|
145
145
|
/** @type {ComponentContext} */
|
|
146
|
-
|
|
146
|
+
B
|
|
147
147
|
), r = t.e;
|
|
148
148
|
if (r !== null) {
|
|
149
149
|
t.e = null;
|
|
150
150
|
for (var n of r)
|
|
151
151
|
kr(n);
|
|
152
152
|
}
|
|
153
|
-
return e !== void 0 && (t.x = e),
|
|
153
|
+
return e !== void 0 && (t.x = e), B = t.p, e ?? /** @type {T} */
|
|
154
154
|
{};
|
|
155
155
|
}
|
|
156
156
|
function mr() {
|
|
@@ -158,7 +158,7 @@ function mr() {
|
|
|
158
158
|
}
|
|
159
159
|
const qn = /* @__PURE__ */ new WeakMap();
|
|
160
160
|
function Un(e) {
|
|
161
|
-
var t =
|
|
161
|
+
var t = b;
|
|
162
162
|
if (t === null)
|
|
163
163
|
return T.f |= we, e;
|
|
164
164
|
if ((t.f & Rt) === 0) {
|
|
@@ -190,7 +190,7 @@ function $r(e) {
|
|
|
190
190
|
}));
|
|
191
191
|
}
|
|
192
192
|
let Ue = [], wt = [];
|
|
193
|
-
function
|
|
193
|
+
function yr() {
|
|
194
194
|
var e = Ue;
|
|
195
195
|
Ue = [], vr(e);
|
|
196
196
|
}
|
|
@@ -199,26 +199,26 @@ function Hn() {
|
|
|
199
199
|
wt = [], vr(e);
|
|
200
200
|
}
|
|
201
201
|
function Ft(e) {
|
|
202
|
-
Ue.length === 0 && queueMicrotask(
|
|
202
|
+
Ue.length === 0 && queueMicrotask(yr), Ue.push(e);
|
|
203
203
|
}
|
|
204
204
|
function zn() {
|
|
205
|
-
Ue.length > 0 &&
|
|
205
|
+
Ue.length > 0 && yr(), wt.length > 0 && Hn();
|
|
206
206
|
}
|
|
207
207
|
function Vn() {
|
|
208
208
|
const e = (
|
|
209
209
|
/** @type {Effect} */
|
|
210
|
-
|
|
210
|
+
b.b
|
|
211
211
|
);
|
|
212
212
|
return e === null && Nn(), e;
|
|
213
213
|
}
|
|
214
214
|
// @__NO_SIDE_EFFECTS__
|
|
215
215
|
function lt(e) {
|
|
216
|
-
var t =
|
|
216
|
+
var t = j | z, r = T !== null && (T.f & j) !== 0 ? (
|
|
217
217
|
/** @type {Derived} */
|
|
218
218
|
T
|
|
219
219
|
) : null;
|
|
220
|
-
return
|
|
221
|
-
ctx:
|
|
220
|
+
return b === null || r !== null && (r.f & U) !== 0 ? t |= U : b.f |= ke, {
|
|
221
|
+
ctx: B,
|
|
222
222
|
deps: null,
|
|
223
223
|
effects: null,
|
|
224
224
|
equals: gr,
|
|
@@ -231,7 +231,7 @@ function lt(e) {
|
|
|
231
231
|
L
|
|
232
232
|
),
|
|
233
233
|
wv: 0,
|
|
234
|
-
parent: r ??
|
|
234
|
+
parent: r ?? b,
|
|
235
235
|
ac: null
|
|
236
236
|
};
|
|
237
237
|
}
|
|
@@ -239,7 +239,7 @@ function lt(e) {
|
|
|
239
239
|
function Yn(e, t) {
|
|
240
240
|
let r = (
|
|
241
241
|
/** @type {Effect | null} */
|
|
242
|
-
|
|
242
|
+
b
|
|
243
243
|
);
|
|
244
244
|
r === null && Cn();
|
|
245
245
|
var n = (
|
|
@@ -291,7 +291,7 @@ function ae(e) {
|
|
|
291
291
|
return Hr(t), t;
|
|
292
292
|
}
|
|
293
293
|
// @__NO_SIDE_EFFECTS__
|
|
294
|
-
function
|
|
294
|
+
function br(e) {
|
|
295
295
|
const t = /* @__PURE__ */ lt(e);
|
|
296
296
|
return t.equals = wr, t;
|
|
297
297
|
}
|
|
@@ -308,7 +308,7 @@ function Er(e) {
|
|
|
308
308
|
}
|
|
309
309
|
function Wn(e) {
|
|
310
310
|
for (var t = e.parent; t !== null; ) {
|
|
311
|
-
if ((t.f &
|
|
311
|
+
if ((t.f & j) === 0)
|
|
312
312
|
return (
|
|
313
313
|
/** @type {Effect} */
|
|
314
314
|
t
|
|
@@ -317,8 +317,8 @@ function Wn(e) {
|
|
|
317
317
|
}
|
|
318
318
|
return null;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
var t, r =
|
|
320
|
+
function jt(e) {
|
|
321
|
+
var t, r = b;
|
|
322
322
|
ce(Wn(e));
|
|
323
323
|
try {
|
|
324
324
|
Er(e), t = Wr(e);
|
|
@@ -328,7 +328,7 @@ function Bt(e) {
|
|
|
328
328
|
return t;
|
|
329
329
|
}
|
|
330
330
|
function Tr(e) {
|
|
331
|
-
var t =
|
|
331
|
+
var t = jt(e);
|
|
332
332
|
if (e.equals(t) || (e.v = t, e.wv = Vr()), !Ee) {
|
|
333
333
|
var r = (fe || (e.f & U) !== 0) && e.deps !== null ? de : O;
|
|
334
334
|
k(e, r);
|
|
@@ -342,14 +342,14 @@ function Gn(e, t, r) {
|
|
|
342
342
|
}
|
|
343
343
|
var i = R, s = (
|
|
344
344
|
/** @type {Effect} */
|
|
345
|
-
|
|
345
|
+
b
|
|
346
346
|
), a = Kn(), l = Vn();
|
|
347
347
|
Promise.all(t.map((u) => /* @__PURE__ */ Yn(u))).then((u) => {
|
|
348
348
|
i?.activate(), a();
|
|
349
349
|
try {
|
|
350
350
|
r([...e.map(n), ...u]);
|
|
351
351
|
} catch (f) {
|
|
352
|
-
(s.f &
|
|
352
|
+
(s.f & be) === 0 && Dt(f, s);
|
|
353
353
|
}
|
|
354
354
|
i?.deactivate(), xr();
|
|
355
355
|
}).catch((u) => {
|
|
@@ -357,7 +357,7 @@ function Gn(e, t, r) {
|
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
function Kn() {
|
|
360
|
-
var e =
|
|
360
|
+
var e = b, t = T, r = B, n = R;
|
|
361
361
|
return function() {
|
|
362
362
|
ce(e), Z(t), Qe(r), n?.activate();
|
|
363
363
|
};
|
|
@@ -375,7 +375,7 @@ function Ar() {
|
|
|
375
375
|
et.length > 0 && queueMicrotask(Ar), e();
|
|
376
376
|
}
|
|
377
377
|
let $e = [], ut = null, mt = !1, Ge = !1;
|
|
378
|
-
class
|
|
378
|
+
class ye {
|
|
379
379
|
/**
|
|
380
380
|
* The current values of any sources that are updated in this batch
|
|
381
381
|
* They keys of this map are identical to `this.#previous`
|
|
@@ -568,8 +568,8 @@ class be {
|
|
|
568
568
|
}
|
|
569
569
|
static ensure() {
|
|
570
570
|
if (R === null) {
|
|
571
|
-
const t = R = new
|
|
572
|
-
ct.add(R), Ge ||
|
|
571
|
+
const t = R = new ye();
|
|
572
|
+
ct.add(R), Ge || ye.enqueue(() => {
|
|
573
573
|
R === t && t.flush();
|
|
574
574
|
});
|
|
575
575
|
}
|
|
@@ -600,7 +600,7 @@ function Sr() {
|
|
|
600
600
|
try {
|
|
601
601
|
var t = 0;
|
|
602
602
|
for (Zt(!0); $e.length > 0; ) {
|
|
603
|
-
var r =
|
|
603
|
+
var r = ye.ensure();
|
|
604
604
|
if (t++ > 1e3) {
|
|
605
605
|
var n, i;
|
|
606
606
|
Jn();
|
|
@@ -624,7 +624,7 @@ function Jt(e) {
|
|
|
624
624
|
if (t !== 0) {
|
|
625
625
|
for (var r = 0; r < t; ) {
|
|
626
626
|
var n = e[r++];
|
|
627
|
-
if ((n.f & (
|
|
627
|
+
if ((n.f & (be | V)) === 0 && ft(n) && (pe = [], Re(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null && n.ac === null ? Br(n) : n.fn = null), pe?.length > 0)) {
|
|
628
628
|
oe.clear();
|
|
629
629
|
for (const i of pe)
|
|
630
630
|
Re(i);
|
|
@@ -638,7 +638,7 @@ function Le(e) {
|
|
|
638
638
|
for (var t = ut = e; t.parent !== null; ) {
|
|
639
639
|
t = t.parent;
|
|
640
640
|
var r = t.f;
|
|
641
|
-
if (mt && t ===
|
|
641
|
+
if (mt && t === b && (r & Ie) !== 0)
|
|
642
642
|
return;
|
|
643
643
|
if ((r & (ve | ie)) !== 0) {
|
|
644
644
|
if ((r & O) === 0) return;
|
|
@@ -673,7 +673,7 @@ function Nr(e, t = !1, r = !0) {
|
|
|
673
673
|
function M(e, t, r = !1) {
|
|
674
674
|
T !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
675
675
|
// to ensure we error if state is set inside an inspect effect
|
|
676
|
-
(!G || (T.f & Gt) !== 0) && mr() && (T.f & (
|
|
676
|
+
(!G || (T.f & Gt) !== 0) && mr() && (T.f & (j | Ie | Lt | Gt)) !== 0 && !re?.includes(e) && Fn();
|
|
677
677
|
let n = r ? Se(t) : t;
|
|
678
678
|
return Ve(e, n);
|
|
679
679
|
}
|
|
@@ -681,11 +681,11 @@ function Ve(e, t) {
|
|
|
681
681
|
if (!e.equals(t)) {
|
|
682
682
|
var r = e.v;
|
|
683
683
|
Ee ? oe.set(e, t) : oe.set(e, r), e.v = t;
|
|
684
|
-
var n =
|
|
685
|
-
n.capture(e, r), (e.f &
|
|
684
|
+
var n = ye.ensure();
|
|
685
|
+
n.capture(e, r), (e.f & j) !== 0 && ((e.f & z) !== 0 && jt(
|
|
686
686
|
/** @type {Derived} */
|
|
687
687
|
e
|
|
688
|
-
), k(e, (e.f & U) === 0 ? O : de)), e.wv = Vr(), Cr(e, z),
|
|
688
|
+
), k(e, (e.f & U) === 0 ? O : de)), e.wv = Vr(), Cr(e, z), b !== null && (b.f & O) !== 0 && (b.f & (ie | ve)) === 0 && (q === null ? si([e]) : q.push(e));
|
|
689
689
|
}
|
|
690
690
|
return t;
|
|
691
691
|
}
|
|
@@ -697,7 +697,7 @@ function Cr(e, t) {
|
|
|
697
697
|
if (r !== null)
|
|
698
698
|
for (var n = r.length, i = 0; i < n; i++) {
|
|
699
699
|
var s = r[i], a = s.f, l = (a & z) === 0;
|
|
700
|
-
l && k(s, t), (a &
|
|
700
|
+
l && k(s, t), (a & j) !== 0 ? Cr(
|
|
701
701
|
/** @type {Derived} */
|
|
702
702
|
s,
|
|
703
703
|
de
|
|
@@ -714,7 +714,7 @@ function Se(e) {
|
|
|
714
714
|
if (typeof e != "object" || e === null || Fe in e)
|
|
715
715
|
return e;
|
|
716
716
|
const t = cr(e);
|
|
717
|
-
if (t !==
|
|
717
|
+
if (t !== bn && t !== En)
|
|
718
718
|
return e;
|
|
719
719
|
var r = /* @__PURE__ */ new Map(), n = At(e), i = /* @__PURE__ */ F(0), s = me, a = (l) => {
|
|
720
720
|
if (me === s)
|
|
@@ -758,7 +758,7 @@ function Se(e) {
|
|
|
758
758
|
var h = Se(d ? l[u] : L), o = /* @__PURE__ */ F(h);
|
|
759
759
|
return o;
|
|
760
760
|
}), r.set(u, c)), c !== void 0) {
|
|
761
|
-
var _ =
|
|
761
|
+
var _ = y(c);
|
|
762
762
|
return _ === L ? void 0 : _;
|
|
763
763
|
}
|
|
764
764
|
return Reflect.get(l, u, f);
|
|
@@ -767,7 +767,7 @@ function Se(e) {
|
|
|
767
767
|
var f = Reflect.getOwnPropertyDescriptor(l, u);
|
|
768
768
|
if (f && "value" in f) {
|
|
769
769
|
var c = r.get(u);
|
|
770
|
-
c && (f.value =
|
|
770
|
+
c && (f.value = y(c));
|
|
771
771
|
} else if (f === void 0) {
|
|
772
772
|
var d = r.get(u), _ = d?.v;
|
|
773
773
|
if (d !== void 0 && _ !== L)
|
|
@@ -784,12 +784,12 @@ function Se(e) {
|
|
|
784
784
|
if (u === Fe)
|
|
785
785
|
return !0;
|
|
786
786
|
var f = r.get(u), c = f !== void 0 && f.v !== L || Reflect.has(l, u);
|
|
787
|
-
if (f !== void 0 ||
|
|
787
|
+
if (f !== void 0 || b !== null && (!c || ge(l, u)?.writable)) {
|
|
788
788
|
f === void 0 && (f = a(() => {
|
|
789
789
|
var _ = c ? Se(l[u]) : L, h = /* @__PURE__ */ F(_);
|
|
790
790
|
return h;
|
|
791
791
|
}), r.set(u, f));
|
|
792
|
-
var d =
|
|
792
|
+
var d = y(f);
|
|
793
793
|
if (d === L)
|
|
794
794
|
return !1;
|
|
795
795
|
}
|
|
@@ -824,7 +824,7 @@ function Se(e) {
|
|
|
824
824
|
return !0;
|
|
825
825
|
},
|
|
826
826
|
ownKeys(l) {
|
|
827
|
-
|
|
827
|
+
y(i);
|
|
828
828
|
var u = Reflect.ownKeys(l).filter((d) => {
|
|
829
829
|
var _ = r.get(d);
|
|
830
830
|
return _ === void 0 || _.v !== L;
|
|
@@ -906,8 +906,8 @@ function Or(e) {
|
|
|
906
906
|
function Ir() {
|
|
907
907
|
return !1;
|
|
908
908
|
}
|
|
909
|
-
function
|
|
910
|
-
var t = T, r =
|
|
909
|
+
function Bt(e) {
|
|
910
|
+
var t = T, r = b;
|
|
911
911
|
Z(null), ce(null);
|
|
912
912
|
try {
|
|
913
913
|
return e();
|
|
@@ -916,17 +916,17 @@ function jt(e) {
|
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
function Xn(e) {
|
|
919
|
-
|
|
919
|
+
b === null && T === null && Ln(), T !== null && (T.f & U) !== 0 && b === null && Mn(), Ee && Rn();
|
|
920
920
|
}
|
|
921
921
|
function Zn(e, t) {
|
|
922
922
|
var r = t.last;
|
|
923
923
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
924
924
|
}
|
|
925
925
|
function Q(e, t, r, n = !0) {
|
|
926
|
-
var i =
|
|
926
|
+
var i = b;
|
|
927
927
|
i !== null && (i.f & V) !== 0 && (e |= V);
|
|
928
928
|
var s = {
|
|
929
|
-
ctx:
|
|
929
|
+
ctx: B,
|
|
930
930
|
deps: null,
|
|
931
931
|
nodes_start: null,
|
|
932
932
|
nodes_end: null,
|
|
@@ -953,7 +953,7 @@ function Q(e, t, r, n = !0) {
|
|
|
953
953
|
if (n) {
|
|
954
954
|
var a = s;
|
|
955
955
|
if (r && a.deps === null && a.teardown === null && a.nodes_start === null && a.first === a.last && // either `null`, or a singular child
|
|
956
|
-
(a.f & ke) === 0 && (a = a.first), a !== null && (a.parent = i, i !== null && Zn(a, i), T !== null && (T.f &
|
|
956
|
+
(a.f & ke) === 0 && (a = a.first), a !== null && (a.parent = i, i !== null && Zn(a, i), T !== null && (T.f & j) !== 0 && (e & ve) === 0)) {
|
|
957
957
|
var l = (
|
|
958
958
|
/** @type {Derived} */
|
|
959
959
|
T
|
|
@@ -971,12 +971,12 @@ function Qn(e) {
|
|
|
971
971
|
Xn();
|
|
972
972
|
var t = (
|
|
973
973
|
/** @type {Effect} */
|
|
974
|
-
|
|
974
|
+
b.f
|
|
975
975
|
), r = !T && (t & ie) !== 0 && (t & Rt) === 0;
|
|
976
976
|
if (r) {
|
|
977
977
|
var n = (
|
|
978
978
|
/** @type {ComponentContext} */
|
|
979
|
-
|
|
979
|
+
B
|
|
980
980
|
);
|
|
981
981
|
(n.e ??= []).push(e);
|
|
982
982
|
} else
|
|
@@ -986,14 +986,14 @@ function kr(e) {
|
|
|
986
986
|
return Q(Nt | An, e, !1);
|
|
987
987
|
}
|
|
988
988
|
function ei(e) {
|
|
989
|
-
|
|
989
|
+
ye.ensure();
|
|
990
990
|
const t = Q(ve | ke, e, !0);
|
|
991
991
|
return () => {
|
|
992
992
|
X(t);
|
|
993
993
|
};
|
|
994
994
|
}
|
|
995
995
|
function ti(e) {
|
|
996
|
-
|
|
996
|
+
ye.ensure();
|
|
997
997
|
const t = Q(ve | ke, e, !0);
|
|
998
998
|
return (r = {}) => new Promise((n) => {
|
|
999
999
|
r.outro ? Ht(t, () => {
|
|
@@ -1010,9 +1010,9 @@ function ri(e) {
|
|
|
1010
1010
|
function Ut(e, t = 0) {
|
|
1011
1011
|
return Q(Ct | t, e, !0);
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function Be(e, t = [], r = []) {
|
|
1014
1014
|
Gn(t, r, (n) => {
|
|
1015
|
-
Q(Ct, () => e(...n.map(
|
|
1015
|
+
Q(Ct, () => e(...n.map(y)), !0);
|
|
1016
1016
|
});
|
|
1017
1017
|
}
|
|
1018
1018
|
function Dr(e, t = 0) {
|
|
@@ -1034,11 +1034,11 @@ function Fr(e) {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function jr(e, t = !1) {
|
|
1038
1038
|
var r = e.first;
|
|
1039
1039
|
for (e.first = e.last = null; r !== null; ) {
|
|
1040
1040
|
const i = r.ac;
|
|
1041
|
-
i !== null &&
|
|
1041
|
+
i !== null && Bt(() => {
|
|
1042
1042
|
i.abort(Ot);
|
|
1043
1043
|
});
|
|
1044
1044
|
var n = r.next;
|
|
@@ -1057,14 +1057,14 @@ function X(e, t = !0) {
|
|
|
1057
1057
|
e.nodes_start,
|
|
1058
1058
|
/** @type {TemplateNode} */
|
|
1059
1059
|
e.nodes_end
|
|
1060
|
-
), r = !0),
|
|
1060
|
+
), r = !0), jr(e, t && !r), tt(e, 0), k(e, be);
|
|
1061
1061
|
var n = e.transitions;
|
|
1062
1062
|
if (n !== null)
|
|
1063
1063
|
for (const s of n)
|
|
1064
1064
|
s.stop();
|
|
1065
1065
|
Fr(e);
|
|
1066
1066
|
var i = e.parent;
|
|
1067
|
-
i !== null && i.first !== null &&
|
|
1067
|
+
i !== null && i.first !== null && Br(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = e.ac = null;
|
|
1068
1068
|
}
|
|
1069
1069
|
function ii(e, t) {
|
|
1070
1070
|
for (; e !== null; ) {
|
|
@@ -1075,7 +1075,7 @@ function ii(e, t) {
|
|
|
1075
1075
|
e.remove(), e = r;
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function Br(e) {
|
|
1079
1079
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1080
1080
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1081
1081
|
}
|
|
@@ -1132,9 +1132,9 @@ let T = null, G = !1;
|
|
|
1132
1132
|
function Z(e) {
|
|
1133
1133
|
T = e;
|
|
1134
1134
|
}
|
|
1135
|
-
let
|
|
1135
|
+
let b = null;
|
|
1136
1136
|
function ce(e) {
|
|
1137
|
-
|
|
1137
|
+
b = e;
|
|
1138
1138
|
}
|
|
1139
1139
|
let re = null;
|
|
1140
1140
|
function Hr(e) {
|
|
@@ -1159,8 +1159,8 @@ function ft(e) {
|
|
|
1159
1159
|
if ((t & de) !== 0) {
|
|
1160
1160
|
var r = e.deps, n = (t & U) !== 0;
|
|
1161
1161
|
if (r !== null) {
|
|
1162
|
-
var i, s, a = (t & Ze) !== 0, l = n &&
|
|
1163
|
-
if ((a || l) && (
|
|
1162
|
+
var i, s, a = (t & Ze) !== 0, l = n && b !== null && !fe, u = r.length;
|
|
1163
|
+
if ((a || l) && (b === null || (b.f & be) === 0)) {
|
|
1164
1164
|
var f = (
|
|
1165
1165
|
/** @type {Derived} */
|
|
1166
1166
|
e
|
|
@@ -1179,7 +1179,7 @@ function ft(e) {
|
|
|
1179
1179
|
), s.wv > e.wv)
|
|
1180
1180
|
return !0;
|
|
1181
1181
|
}
|
|
1182
|
-
(!n ||
|
|
1182
|
+
(!n || b !== null && !fe) && k(e, O);
|
|
1183
1183
|
}
|
|
1184
1184
|
return !1;
|
|
1185
1185
|
}
|
|
@@ -1188,7 +1188,7 @@ function Yr(e, t, r = !0) {
|
|
|
1188
1188
|
if (n !== null && !re?.includes(e))
|
|
1189
1189
|
for (var i = 0; i < n.length; i++) {
|
|
1190
1190
|
var s = n[i];
|
|
1191
|
-
(s.f &
|
|
1191
|
+
(s.f & j) !== 0 ? Yr(
|
|
1192
1192
|
/** @type {Derived} */
|
|
1193
1193
|
s,
|
|
1194
1194
|
t,
|
|
@@ -1200,9 +1200,9 @@ function Yr(e, t, r = !0) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
function Wr(e) {
|
|
1203
|
-
var t = I, r = D, n = q, i = T, s = fe, a = re, l =
|
|
1203
|
+
var t = I, r = D, n = q, i = T, s = fe, a = re, l = B, u = G, f = me, c = e.f;
|
|
1204
1204
|
I = /** @type {null | Value[]} */
|
|
1205
|
-
null, D = 0, q = null, fe = (c & U) !== 0 && (G || !Ce || T === null), T = (c & (ie | ve)) === 0 ? e : null, re = null, Qe(e.ctx), G = !1, me = ++Ye, e.ac !== null && (
|
|
1205
|
+
null, D = 0, q = null, fe = (c & U) !== 0 && (G || !Ce || T === null), T = (c & (ie | ve)) === 0 ? e : null, re = null, Qe(e.ctx), G = !1, me = ++Ye, e.ac !== null && (Bt(() => {
|
|
1206
1206
|
e.ac.abort(Ot);
|
|
1207
1207
|
}), e.ac = null);
|
|
1208
1208
|
try {
|
|
@@ -1219,12 +1219,12 @@ function Wr(e) {
|
|
|
1219
1219
|
else
|
|
1220
1220
|
e.deps = h = I;
|
|
1221
1221
|
if (!fe || // Deriveds that already have reactions can cleanup, so we still add them as reactions
|
|
1222
|
-
(c &
|
|
1222
|
+
(c & j) !== 0 && /** @type {import('#client').Derived} */
|
|
1223
1223
|
e.reactions !== null)
|
|
1224
1224
|
for (o = D; o < h.length; o++)
|
|
1225
1225
|
(h[o].reactions ??= []).push(e);
|
|
1226
1226
|
} else h !== null && D < h.length && (tt(e, D), h.length = D);
|
|
1227
|
-
if (mr() && q !== null && !G && h !== null && (e.f & (
|
|
1227
|
+
if (mr() && q !== null && !G && h !== null && (e.f & (j | de | z)) === 0)
|
|
1228
1228
|
for (o = 0; o < /** @type {Source[]} */
|
|
1229
1229
|
q.length; o++)
|
|
1230
1230
|
Yr(
|
|
@@ -1249,7 +1249,7 @@ function ai(e, t) {
|
|
|
1249
1249
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
|
-
r === null && (t.f &
|
|
1252
|
+
r === null && (t.f & j) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1253
1253
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1254
1254
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1255
1255
|
(I === null || !I.includes(t)) && (k(t, de), (t.f & (U | Ze)) === 0 && (t.f ^= Ze), Er(
|
|
@@ -1269,25 +1269,25 @@ function tt(e, t) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
function Re(e) {
|
|
1271
1271
|
var t = e.f;
|
|
1272
|
-
if ((t &
|
|
1272
|
+
if ((t & be) === 0) {
|
|
1273
1273
|
k(e, O);
|
|
1274
|
-
var r =
|
|
1275
|
-
|
|
1274
|
+
var r = b, n = Ce;
|
|
1275
|
+
b = e, Ce = !0;
|
|
1276
1276
|
try {
|
|
1277
|
-
(t & Ie) !== 0 ? ni(e) :
|
|
1277
|
+
(t & Ie) !== 0 ? ni(e) : jr(e), Fr(e);
|
|
1278
1278
|
var i = Wr(e);
|
|
1279
1279
|
e.teardown = typeof i == "function" ? i : null, e.wv = zr;
|
|
1280
1280
|
var s;
|
|
1281
|
-
or &&
|
|
1281
|
+
or && Bn && (e.f & z) !== 0 && e.deps;
|
|
1282
1282
|
} finally {
|
|
1283
|
-
Ce = n,
|
|
1283
|
+
Ce = n, b = r;
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1288
|
-
var t = e.f, r = (t &
|
|
1287
|
+
function y(e) {
|
|
1288
|
+
var t = e.f, r = (t & j) !== 0;
|
|
1289
1289
|
if (T !== null && !G) {
|
|
1290
|
-
var n =
|
|
1290
|
+
var n = b !== null && (b.f & be) !== 0;
|
|
1291
1291
|
if (!n && !re?.includes(e)) {
|
|
1292
1292
|
var i = T.deps;
|
|
1293
1293
|
if ((T.f & pt) !== 0)
|
|
@@ -1314,7 +1314,7 @@ function b(e) {
|
|
|
1314
1314
|
a = /** @type {Derived} */
|
|
1315
1315
|
e;
|
|
1316
1316
|
var u = a.v;
|
|
1317
|
-
return ((a.f & O) === 0 && a.reactions !== null || Gr(a)) && (u =
|
|
1317
|
+
return ((a.f & O) === 0 && a.reactions !== null || Gr(a)) && (u = jt(a)), oe.set(a, u), u;
|
|
1318
1318
|
}
|
|
1319
1319
|
} else r && (a = /** @type {Derived} */
|
|
1320
1320
|
e, ft(a) && Tr(a));
|
|
@@ -1326,7 +1326,7 @@ function Gr(e) {
|
|
|
1326
1326
|
if (e.v === L) return !0;
|
|
1327
1327
|
if (e.deps === null) return !1;
|
|
1328
1328
|
for (const t of e.deps)
|
|
1329
|
-
if (oe.has(t) || (t.f &
|
|
1329
|
+
if (oe.has(t) || (t.f & j) !== 0 && Gr(
|
|
1330
1330
|
/** @type {Derived} */
|
|
1331
1331
|
t
|
|
1332
1332
|
))
|
|
@@ -1345,11 +1345,11 @@ const li = -7169;
|
|
|
1345
1345
|
function k(e, t) {
|
|
1346
1346
|
e.f = e.f & li | t;
|
|
1347
1347
|
}
|
|
1348
|
-
const Kr = /* @__PURE__ */ new Set(),
|
|
1348
|
+
const Kr = /* @__PURE__ */ new Set(), yt = /* @__PURE__ */ new Set();
|
|
1349
1349
|
function ui(e, t, r, n = {}) {
|
|
1350
1350
|
function i(s) {
|
|
1351
1351
|
if (n.capture || De.call(t, s), !s.cancelBubble)
|
|
1352
|
-
return
|
|
1352
|
+
return Bt(() => r?.call(this, s));
|
|
1353
1353
|
}
|
|
1354
1354
|
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Ft(() => {
|
|
1355
1355
|
t.addEventListener(e, i, n);
|
|
@@ -1367,7 +1367,7 @@ function fi(e, t, r, n, i) {
|
|
|
1367
1367
|
function oi(e) {
|
|
1368
1368
|
for (var t = 0; t < e.length; t++)
|
|
1369
1369
|
Kr.add(e[t]);
|
|
1370
|
-
for (var r of
|
|
1370
|
+
for (var r of yt)
|
|
1371
1371
|
r(e);
|
|
1372
1372
|
}
|
|
1373
1373
|
let tr = null;
|
|
@@ -1401,7 +1401,7 @@ function De(e) {
|
|
|
1401
1401
|
return s || r;
|
|
1402
1402
|
}
|
|
1403
1403
|
});
|
|
1404
|
-
var c = T, d =
|
|
1404
|
+
var c = T, d = b;
|
|
1405
1405
|
Z(null), ce(null);
|
|
1406
1406
|
try {
|
|
1407
1407
|
for (var _, h = []; s !== null; ) {
|
|
@@ -1444,7 +1444,7 @@ function Jr(e) {
|
|
|
1444
1444
|
function K(e, t) {
|
|
1445
1445
|
var r = (
|
|
1446
1446
|
/** @type {Effect} */
|
|
1447
|
-
|
|
1447
|
+
b
|
|
1448
1448
|
);
|
|
1449
1449
|
r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);
|
|
1450
1450
|
}
|
|
@@ -1518,7 +1518,7 @@ function Xi() {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
function ue(e, t) {
|
|
1520
1520
|
if (S) {
|
|
1521
|
-
|
|
1521
|
+
b.nodes_end = x, at();
|
|
1522
1522
|
return;
|
|
1523
1523
|
}
|
|
1524
1524
|
e !== null && e.before(
|
|
@@ -1585,7 +1585,7 @@ function Qr(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
1587
|
};
|
|
1588
|
-
u(St(Kr)),
|
|
1588
|
+
u(St(Kr)), yt.add(u);
|
|
1589
1589
|
var f = void 0, c = ti(() => {
|
|
1590
1590
|
var d = r ?? t.appendChild(J());
|
|
1591
1591
|
return Oe(() => {
|
|
@@ -1593,7 +1593,7 @@ function Qr(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
1593
1593
|
kt({});
|
|
1594
1594
|
var _ = (
|
|
1595
1595
|
/** @type {ComponentContext} */
|
|
1596
|
-
|
|
1596
|
+
B
|
|
1597
1597
|
);
|
|
1598
1598
|
_.c = s;
|
|
1599
1599
|
}
|
|
@@ -1601,7 +1601,7 @@ function Qr(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
1601
1601
|
/** @type {TemplateNode} */
|
|
1602
1602
|
d,
|
|
1603
1603
|
null
|
|
1604
|
-
), nr = a, f = e(d, n) || {}, nr = !0, S && (
|
|
1604
|
+
), nr = a, f = e(d, n) || {}, nr = !0, S && (b.nodes_end = x), s && Pt();
|
|
1605
1605
|
}), () => {
|
|
1606
1606
|
for (var _ of l) {
|
|
1607
1607
|
t.removeEventListener(_, De);
|
|
@@ -1611,18 +1611,18 @@ function Qr(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
1611
1611
|
);
|
|
1612
1612
|
--h === 0 ? (document.removeEventListener(_, De), Ae.delete(_)) : Ae.set(_, h);
|
|
1613
1613
|
}
|
|
1614
|
-
|
|
1614
|
+
yt.delete(u), d !== r && d.parentNode?.removeChild(d);
|
|
1615
1615
|
};
|
|
1616
1616
|
});
|
|
1617
|
-
return
|
|
1617
|
+
return bt.set(f, c), f;
|
|
1618
1618
|
}
|
|
1619
|
-
let
|
|
1619
|
+
let bt = /* @__PURE__ */ new WeakMap();
|
|
1620
1620
|
function _i(e, t) {
|
|
1621
|
-
const r =
|
|
1622
|
-
return r ? (
|
|
1621
|
+
const r = bt.get(e);
|
|
1622
|
+
return r ? (bt.delete(e), r(t)) : Promise.resolve();
|
|
1623
1623
|
}
|
|
1624
1624
|
function en(e) {
|
|
1625
|
-
|
|
1625
|
+
B === null && _r(), Qn(() => {
|
|
1626
1626
|
const t = ot(e);
|
|
1627
1627
|
if (typeof t == "function") return (
|
|
1628
1628
|
/** @type {() => void} */
|
|
@@ -1631,7 +1631,7 @@ function en(e) {
|
|
|
1631
1631
|
});
|
|
1632
1632
|
}
|
|
1633
1633
|
function Zi(e) {
|
|
1634
|
-
|
|
1634
|
+
B === null && _r(), en(() => () => ot(e));
|
|
1635
1635
|
}
|
|
1636
1636
|
function ht(e, t, r = !1) {
|
|
1637
1637
|
S && at();
|
|
@@ -1707,7 +1707,7 @@ function wi(e, t, r, n, i, s = null) {
|
|
|
1707
1707
|
) : f.appendChild(J());
|
|
1708
1708
|
}
|
|
1709
1709
|
S && at();
|
|
1710
|
-
var c = null, d = !1, _ = /* @__PURE__ */ new Map(), h = /* @__PURE__ */
|
|
1710
|
+
var c = null, d = !1, _ = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ br(() => {
|
|
1711
1711
|
var E = r();
|
|
1712
1712
|
return At(E) ? E : E == null ? [] : St(E);
|
|
1713
1713
|
}), o, g;
|
|
@@ -1728,8 +1728,8 @@ function wi(e, t, r, n, i, s = null) {
|
|
|
1728
1728
|
}
|
|
1729
1729
|
Dr(() => {
|
|
1730
1730
|
g ??= /** @type {Effect} */
|
|
1731
|
-
|
|
1732
|
-
|
|
1731
|
+
b, o = /** @type {V[]} */
|
|
1732
|
+
y(h);
|
|
1733
1733
|
var E = o.length;
|
|
1734
1734
|
if (d && E === 0)
|
|
1735
1735
|
return;
|
|
@@ -1792,7 +1792,7 @@ function wi(e, t, r, n, i, s = null) {
|
|
|
1792
1792
|
he.add_callback(w);
|
|
1793
1793
|
} else
|
|
1794
1794
|
w();
|
|
1795
|
-
m && te(!0),
|
|
1795
|
+
m && te(!0), y(h);
|
|
1796
1796
|
}), S && (a = x);
|
|
1797
1797
|
}
|
|
1798
1798
|
function mi(e, t, r, n, i, s, a, l, u) {
|
|
@@ -1961,10 +1961,10 @@ function $i() {
|
|
|
1961
1961
|
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = nn(e)) && (n && (n += " "), n += t);
|
|
1962
1962
|
return n;
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1964
|
+
function yi(e) {
|
|
1965
1965
|
return typeof e == "object" ? $i(e) : e ?? "";
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1967
|
+
function bi(e, t, r) {
|
|
1968
1968
|
var n = e == null ? "" : "" + e;
|
|
1969
1969
|
return t && (n = n ? n + " " + t : t), n === "" ? null : n;
|
|
1970
1970
|
}
|
|
@@ -1974,7 +1974,7 @@ function Qi(e, t) {
|
|
|
1974
1974
|
function Ei(e, t, r, n, i, s) {
|
|
1975
1975
|
var a = e.__className;
|
|
1976
1976
|
if (S || a !== r || a === void 0) {
|
|
1977
|
-
var l =
|
|
1977
|
+
var l = bi(r, n);
|
|
1978
1978
|
(!S || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : t ? e.className = l : e.setAttribute("class", l)), e.__className = r;
|
|
1979
1979
|
}
|
|
1980
1980
|
return s;
|
|
@@ -2000,7 +2000,7 @@ function Si(e) {
|
|
|
2000
2000
|
if (r) return r;
|
|
2001
2001
|
sr.set(t, r = []);
|
|
2002
2002
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2003
|
-
n =
|
|
2003
|
+
n = yn(i);
|
|
2004
2004
|
for (var a in n)
|
|
2005
2005
|
n[a].set && r.push(a);
|
|
2006
2006
|
i = cr(i);
|
|
@@ -2096,20 +2096,20 @@ function rt(e, t, r, n) {
|
|
|
2096
2096
|
})
|
|
2097
2097
|
);
|
|
2098
2098
|
}
|
|
2099
|
-
var g = !1, w = ((r & dn) !== 0 ? lt :
|
|
2100
|
-
i &&
|
|
2099
|
+
var g = !1, w = ((r & dn) !== 0 ? lt : br)(() => (g = !1, h()));
|
|
2100
|
+
i && y(w);
|
|
2101
2101
|
var E = (
|
|
2102
2102
|
/** @type {Effect} */
|
|
2103
|
-
|
|
2103
|
+
b
|
|
2104
2104
|
);
|
|
2105
2105
|
return (
|
|
2106
2106
|
/** @type {() => V} */
|
|
2107
2107
|
(function(m, N) {
|
|
2108
2108
|
if (arguments.length > 0) {
|
|
2109
|
-
const C = N ?
|
|
2109
|
+
const C = N ? y(w) : i ? Se(m) : m;
|
|
2110
2110
|
return M(w, C), g = !0, a !== void 0 && (a = C), m;
|
|
2111
2111
|
}
|
|
2112
|
-
return Ee && g || (E.f &
|
|
2112
|
+
return Ee && g || (E.f & be) !== 0 ? w.v : y(w);
|
|
2113
2113
|
})
|
|
2114
2114
|
);
|
|
2115
2115
|
}
|
|
@@ -2135,10 +2135,10 @@ class Li {
|
|
|
2135
2135
|
{ ...t.props || {}, $$events: {} },
|
|
2136
2136
|
{
|
|
2137
2137
|
get(s, a) {
|
|
2138
|
-
return
|
|
2138
|
+
return y(r.get(a) ?? n(a, Reflect.get(s, a)));
|
|
2139
2139
|
},
|
|
2140
2140
|
has(s, a) {
|
|
2141
|
-
return a === hr ? !0 : (
|
|
2141
|
+
return a === hr ? !0 : (y(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
|
|
2142
2142
|
},
|
|
2143
2143
|
set(s, a, l) {
|
|
2144
2144
|
return M(r.get(a) ?? n(a, l), l), Reflect.set(s, a, l);
|
|
@@ -2427,8 +2427,8 @@ function un(e, t) {
|
|
|
2427
2427
|
$.disconnect();
|
|
2428
2428
|
};
|
|
2429
2429
|
});
|
|
2430
|
-
const l = 56, u = 100, f = 3, c = 1, d = /* @__PURE__ */ ae(() => Math.floor(
|
|
2431
|
-
($ -
|
|
2430
|
+
const l = 56, u = 100, f = 3, c = 1, d = /* @__PURE__ */ ae(() => Math.floor(y(s) / (f + c))), _ = /* @__PURE__ */ ae(() => r(n(), y(d))), h = /* @__PURE__ */ ae(() => y(_).length ? n().length / y(_).length : 1), o = /* @__PURE__ */ ae(() => u * y(h)), g = /* @__PURE__ */ ae(() => Math.min(...y(_))), w = /* @__PURE__ */ ae(() => Math.max(...y(_))), E = /* @__PURE__ */ ae(() => y(_).map(($) => {
|
|
2431
|
+
($ - y(g)) / (y(w) - y(g) || 1);
|
|
2432
2432
|
const v = Math.max(3, Math.round($ * l / 100));
|
|
2433
2433
|
return v % 2 === 0 ? v + 1 : v;
|
|
2434
2434
|
}));
|
|
@@ -2446,21 +2446,21 @@ function un(e, t) {
|
|
|
2446
2446
|
i($), He();
|
|
2447
2447
|
}
|
|
2448
2448
|
}, N = ki(), C = Ke(N);
|
|
2449
|
-
return le(C, "height", l), wi(C, 21, () =>
|
|
2449
|
+
return le(C, "height", l), wi(C, 21, () => y(E), pi, ($, v, p) => {
|
|
2450
2450
|
var A = Ii();
|
|
2451
|
-
le(A, "x", p * (f + c)), le(A, "width", f - 1),
|
|
2452
|
-
Ei(A, 0,
|
|
2451
|
+
le(A, "x", p * (f + c)), le(A, "width", f - 1), Be(() => {
|
|
2452
|
+
Ei(A, 0, yi(p * y(o) < i() ? "bar played" : "bar unplayed"), "svelte-103icjg"), le(A, "y", l / 4 - y(v) / 2), le(A, "height", y(v));
|
|
2453
2453
|
}), ue($, A);
|
|
2454
|
-
}),
|
|
2454
|
+
}), je(C), sn(C, ($) => a = $, () => a), je(N), Be(() => le(C, "viewBox", `0 0 ${y(s)} ${l / 2}`)), ue(e, N), Pt(m);
|
|
2455
2455
|
}
|
|
2456
2456
|
ln(un, { data: {}, timeMs: {} }, [], [], !0);
|
|
2457
2457
|
function Di(e, t, r) {
|
|
2458
|
-
|
|
2458
|
+
y(t) && (y(r) === "playing" ? (y(t).pause(), M(r, "paused")) : (y(t).play(), M(r, "playing")));
|
|
2459
2459
|
}
|
|
2460
|
-
var Fi = /* @__PURE__ */ Yt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" class="icon svelte-
|
|
2460
|
+
var Fi = /* @__PURE__ */ Yt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" class="icon svelte-lwdfe"><path d="M176 96C149.5 96 128 117.5 128 144L128 496C128 522.5 149.5 544 176 544L240 544C266.5 544 288 522.5 288 496L288 144C288 117.5 266.5 96 240 96L176 96zM400 96C373.5 96 352 117.5 352 144L352 496C352 522.5 373.5 544 400 544L464 544C490.5 544 512 522.5 512 496L512 144C512 117.5 490.5 96 464 96L400 96z"></path></svg>'), ji = /* @__PURE__ */ Yt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" class="icon svelte-lwdfe"><path d="M187.2 100.9C174.8 94.1 159.8 94.4 147.6 101.6C135.4 108.8 128 121.9 128 136L128 504C128 518.1 135.5 531.2 147.6 538.4C159.7 545.6 174.8 545.9 187.2 539.1L523.2 355.1C536 348.1 544 334.6 544 320C544 305.4 536 291.9 523.2 284.9L187.2 100.9z"></path></svg>'), Bi = /* @__PURE__ */ Xr('<div class="container svelte-lwdfe" role="group" aria-label="Audio player"><button class="btn svelte-lwdfe"><!></button> <!> <div class="time svelte-lwdfe"><!></div> <audio></audio></div>');
|
|
2461
2461
|
const qi = {
|
|
2462
|
-
hash: "svelte-
|
|
2463
|
-
code: ".container.svelte-
|
|
2462
|
+
hash: "svelte-lwdfe",
|
|
2463
|
+
code: ".container.svelte-lwdfe {display:flex;align-items:stretch;gap:0.5rem;flex:1;}.btn.svelte-lwdfe {border:none;border-radius:50%;padding:0.5rem;cursor:pointer;display:flex;align-items:center;justify-content:center;aspect-ratio:1 / 1;flex-shrink:0;color:var(--fortyfour-recorder-btn-primary-color);background:var(--fortyfour-recorder-btn-primary-bg);}.btn.svelte-lwdfe:hover {color:var(--fortyfour-recorder-btn-primary-color-hover);background:var(--fortyfour-recorder-btn-primary-bg-hover);}.icon.svelte-lwdfe {width:1.5em;height:1.5em;fill:currentColor;}.time.svelte-lwdfe {display:flex;align-items:center;font-variant-numeric:tabular-nums;font-size:0.9rem;}"
|
|
2464
2464
|
};
|
|
2465
2465
|
function Ui(e, t) {
|
|
2466
2466
|
kt(t, !0), rn(e, qi);
|
|
@@ -2484,7 +2484,7 @@ function Ui(e, t) {
|
|
|
2484
2484
|
set waveform(v) {
|
|
2485
2485
|
n(v), He();
|
|
2486
2486
|
}
|
|
2487
|
-
}, c =
|
|
2487
|
+
}, c = Bi(), d = Ke(c);
|
|
2488
2488
|
d.__click = [Di, i, l];
|
|
2489
2489
|
var _ = Ke(d);
|
|
2490
2490
|
{
|
|
@@ -2492,22 +2492,22 @@ function Ui(e, t) {
|
|
|
2492
2492
|
var p = Fi();
|
|
2493
2493
|
ue(v, p);
|
|
2494
2494
|
}, o = (v) => {
|
|
2495
|
-
var p =
|
|
2495
|
+
var p = ji();
|
|
2496
2496
|
ue(v, p);
|
|
2497
2497
|
};
|
|
2498
2498
|
ht(_, (v) => {
|
|
2499
|
-
|
|
2499
|
+
y(l) === "playing" ? v(h) : v(o, !1);
|
|
2500
2500
|
});
|
|
2501
2501
|
}
|
|
2502
|
-
|
|
2502
|
+
je(d);
|
|
2503
2503
|
var g = dt(d, 2);
|
|
2504
2504
|
{
|
|
2505
2505
|
var w = (v) => {
|
|
2506
2506
|
{
|
|
2507
|
-
let p = /* @__PURE__ */ ae(() => Math.round(
|
|
2507
|
+
let p = /* @__PURE__ */ ae(() => Math.round(y(s) * 1e3));
|
|
2508
2508
|
un(v, {
|
|
2509
2509
|
get timeMs() {
|
|
2510
|
-
return
|
|
2510
|
+
return y(p);
|
|
2511
2511
|
},
|
|
2512
2512
|
get data() {
|
|
2513
2513
|
return n();
|
|
@@ -2523,20 +2523,20 @@ function Ui(e, t) {
|
|
|
2523
2523
|
{
|
|
2524
2524
|
var N = (v) => {
|
|
2525
2525
|
var p = rr();
|
|
2526
|
-
|
|
2526
|
+
Be((A) => ir(p, A), [() => lr(y(s))]), ue(v, p);
|
|
2527
2527
|
}, C = (v) => {
|
|
2528
2528
|
var p = rr();
|
|
2529
|
-
|
|
2529
|
+
Be((A) => ir(p, A), [() => lr(y(a))]), ue(v, p);
|
|
2530
2530
|
};
|
|
2531
2531
|
ht(m, (v) => {
|
|
2532
|
-
["playing", "paused"].includes(
|
|
2532
|
+
["playing", "paused"].includes(y(l)) ? v(N) : v(C, !1);
|
|
2533
2533
|
});
|
|
2534
2534
|
}
|
|
2535
|
-
|
|
2535
|
+
je(E);
|
|
2536
2536
|
var $ = dt(E, 2);
|
|
2537
|
-
return sn($, (v) => M(i, v), () =>
|
|
2538
|
-
le(d, "aria-label",
|
|
2539
|
-
}), fi("ended", $, u), Ni($, () =>
|
|
2537
|
+
return sn($, (v) => M(i, v), () => y(i)), je(c), Be(() => {
|
|
2538
|
+
le(d, "aria-label", y(l) === "playing" ? "Pause" : "Play"), le($, "src", r());
|
|
2539
|
+
}), fi("ended", $, u), Ni($, () => y(s), (v) => M(s, v)), Ci("duration", "durationchange", $, (v) => M(a, v)), ue(e, c), Pt(f);
|
|
2540
2540
|
}
|
|
2541
2541
|
oi(["click"]);
|
|
2542
2542
|
ln(Ui, { audioURL: {}, waveform: {} }, [], [], !0);
|
|
@@ -2544,14 +2544,14 @@ export {
|
|
|
2544
2544
|
Ui as A,
|
|
2545
2545
|
le as B,
|
|
2546
2546
|
at as C,
|
|
2547
|
-
|
|
2547
|
+
b as D,
|
|
2548
2548
|
nr as E,
|
|
2549
2549
|
Mt as F,
|
|
2550
2550
|
Ie as G,
|
|
2551
2551
|
Rt as H,
|
|
2552
2552
|
Pr as I,
|
|
2553
2553
|
ot as J,
|
|
2554
|
-
|
|
2554
|
+
Bt as K,
|
|
2555
2555
|
Yi as L,
|
|
2556
2556
|
Ft as M,
|
|
2557
2557
|
Wi as N,
|
|
@@ -2561,11 +2561,11 @@ export {
|
|
|
2561
2561
|
wi as R,
|
|
2562
2562
|
Ei as S,
|
|
2563
2563
|
Vi as T,
|
|
2564
|
-
|
|
2564
|
+
yi as U,
|
|
2565
2565
|
pi as V,
|
|
2566
2566
|
Zi as W,
|
|
2567
|
-
|
|
2568
|
-
|
|
2567
|
+
Ki as X,
|
|
2568
|
+
Yt as Y,
|
|
2569
2569
|
rn as a,
|
|
2570
2570
|
rt as b,
|
|
2571
2571
|
ln as c,
|
|
@@ -2579,11 +2579,11 @@ export {
|
|
|
2579
2579
|
Pt as k,
|
|
2580
2580
|
F as l,
|
|
2581
2581
|
He as m,
|
|
2582
|
-
|
|
2582
|
+
y as n,
|
|
2583
2583
|
Ji as o,
|
|
2584
2584
|
kt as p,
|
|
2585
|
-
|
|
2586
|
-
|
|
2585
|
+
Be as q,
|
|
2586
|
+
je as r,
|
|
2587
2587
|
M as s,
|
|
2588
2588
|
Qi as t,
|
|
2589
2589
|
ae as u,
|