@webitel/ui-sdk 26.2.126 → 26.2.128
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/{index-Cz4qFQN1.js → index-CXvjDkKI.js} +1 -1
- package/dist/{index-qLMzWnx2.js → index-D_Qk79wA.js} +1 -1
- package/dist/{install-In0YqDcO.js → install-D2x01HjN.js} +36 -34
- package/dist/{isObject-DN6MD8kE.js → isObject-B_62MKM-.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +227 -227
- package/dist/useVidstackSrc-kG_Nr2qn.js +1341 -0
- package/dist/{vidstack-Bq6c3Bam-CJx1I67B.js → vidstack-Bq6c3Bam-CEBxCfps.js} +21 -20
- package/dist/{vidstack-D2pY00kU-BzDVmOQf.js → vidstack-D2pY00kU-BxrPbe2u.js} +12 -11
- package/dist/{vidstack-DDXt6fpN-CccMyx3k.js → vidstack-DDXt6fpN-DzBWYiQF.js} +10 -9
- package/dist/{vidstack-D_-9AA6_-Ch_AQKf8.js → vidstack-D_-9AA6_-DLNEPUxw.js} +6 -5
- package/dist/{vidstack-DqAw8m9J-DN0Rx2Cp.js → vidstack-DqAw8m9J-B46XoRCX.js} +1 -1
- package/dist/{vidstack-audio-CyicYFtE.js → vidstack-audio-9Gl9Kz3Q.js} +2 -2
- package/dist/{vidstack-dash-BbVUAfel.js → vidstack-dash-BJcvwitX.js} +25 -24
- package/dist/{vidstack-google-cast-BxNHua_2.js → vidstack-google-cast-DbIV0bLP.js} +12 -11
- package/dist/{vidstack-hls-ok-wSuoG.js → vidstack-hls-Cp3vRKbQ.js} +24 -23
- package/dist/{vidstack-video-CaJH1npJ.js → vidstack-video-BN4jnBO5.js} +16 -15
- package/dist/{vidstack-vimeo-OTNo1lZl.js → vidstack-vimeo-GuUsRXwC.js} +37 -36
- package/dist/{vidstack-youtube-TJnLoStb.js → vidstack-youtube-1pqyuhRb.js} +15 -14
- package/dist/{wt-action-bar-DVYTKUBk.js → wt-action-bar-Bt5oEM-s.js} +1 -1
- package/dist/{wt-button-select-CDYL61lk.js → wt-button-select-DxZ-lotU.js} +1 -1
- package/dist/{wt-chat-emoji-CzXGoTsc.js → wt-chat-emoji-C4Lb8Jo6.js} +2 -2
- package/dist/{wt-confirm-dialog-Cw3PoxjN.js → wt-confirm-dialog-ConompWc.js} +1 -1
- package/dist/{wt-context-menu-DIkv1NaC.js → wt-context-menu-B9ZvW9e1.js} +1 -1
- package/dist/{wt-copy-action-C_Lp0i_H.js → wt-copy-action-0v-LftyT.js} +1 -1
- package/dist/{wt-datepicker-DnMpx5eZ.js → wt-datepicker-CeIroYrI.js} +1 -1
- package/dist/{wt-display-chip-items-ZeT2D9at.js → wt-display-chip-items-D_kg-fE8.js} +1 -1
- package/dist/{wt-dual-panel-6RTh5YbZ.js → wt-dual-panel-CtiwuDFH.js} +1 -1
- package/dist/{wt-dummy-Cj90QXzn.js → wt-dummy-WnU-zg5j.js} +1 -1
- package/dist/{wt-error-page-xX2SEe3s.js → wt-error-page-Dta61qqW.js} +1 -1
- package/dist/{wt-expansion-card-BjdYf5Dp.js → wt-expansion-card-ihwizrC2.js} +1 -1
- package/dist/{wt-expansion-panel-DK0SYvoG.js → wt-expansion-panel-FzsaK9db.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-OApRf81V.js → wt-filters-panel-wrapper-C4i6yZCu.js} +1 -1
- package/dist/{wt-galleria-rRQcZ_0y.js → wt-galleria-W-Ko2W5f.js} +1 -1
- package/dist/{wt-navigation-menu-C-nB-8Le.js → wt-navigation-menu-CjdTb023.js} +1 -1
- package/dist/{wt-notifications-bar-D1i5rV8A.js → wt-notifications-bar-61cfd_4M.js} +2 -2
- package/dist/{wt-pagination-C59kdDDN.js → wt-pagination-DYCgISdf.js} +1 -1
- package/dist/wt-player-C_GxeSTp.js +128 -0
- package/dist/{wt-search-bar-C4-Vl9Pa.js → wt-search-bar-N1WKurUn.js} +1 -1
- package/dist/{wt-selection-popup-BxDERIHb.js → wt-selection-popup-DHDGq-OE.js} +1 -1
- package/dist/{wt-start-page-BPlJho8Y.js → wt-start-page-AZ2djVkC.js} +1 -1
- package/dist/{wt-status-select-CNH5kFvr.js → wt-status-select-h5BbstEb.js} +1 -1
- package/dist/{wt-stepper-1_iQtsZC.js → wt-stepper-DYiLXWjt.js} +1 -1
- package/dist/{wt-table-D76yjtwy.js → wt-table--ZazZiRW.js} +1 -1
- package/dist/{wt-table-actions-DodTkdCV.js → wt-table-actions-BC80p7rV.js} +1 -1
- package/dist/{wt-table-column-select-VKKAj8Ox.js → wt-table-column-select-BMsgv2UC.js} +2 -2
- package/dist/{wt-tabs-DyO6wmnS.js → wt-tabs-kYAi4ukZ.js} +1 -1
- package/dist/{wt-tags-input-BucUo4Ow.js → wt-tags-input-t4laYn8E.js} +2 -2
- package/dist/{wt-timepicker-t2uY6aU1.js → wt-timepicker-D5kzTYvN.js} +1 -1
- package/dist/{wt-tree-BZI_RN8N.js → wt-tree-DW-8PDtG.js} +2 -2
- package/dist/{wt-tree-table-CvtJrEN6.js → wt-tree-table-BdwRzKC4.js} +1 -1
- package/dist/{wt-type-extension-value-input-BjPJ1FmI.js → wt-type-extension-value-input-DXHHUs4o.js} +2 -2
- package/dist/{wt-vidstack-player-BB6Gwvf5.js → wt-vidstack-player-B24VLEaw.js} +2800 -4044
- package/package.json +1 -1
- package/src/components/wt-player/wt-player.vue +7 -24
- package/src/components/wt-vidstack-player/composables/useVidstackSrc.ts +111 -0
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +10 -40
- package/src/enums/FormatDateMode/FormatDateMode.ts +1 -0
- package/src/utils/formatDate.ts +1 -0
- package/types/components/wt-vidstack-player/composables/useVidstackSrc.d.ts +27 -0
- package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +2 -4
- package/types/enums/FormatDateMode/FormatDateMode.d.ts +1 -0
- package/dist/time-group-CkVy2t63.js +0 -25
- package/dist/wt-player-CrLSS40S.js +0 -138
|
@@ -0,0 +1,1341 @@
|
|
|
1
|
+
import { defineComponent as Ee, createElementBlock as Ct, openBlock as kt, Fragment as Ce, createElementVNode as Yt, createTextVNode as ke, toRef as Ot, computed as Tt } from "vue";
|
|
2
|
+
import { _ as Oe } from "./install-D2x01HjN.js";
|
|
3
|
+
const Te = { class: "time-group" }, Ae = {
|
|
4
|
+
key: 0,
|
|
5
|
+
type: "current",
|
|
6
|
+
remainder: ""
|
|
7
|
+
}, Pe = /* @__PURE__ */ Ee({
|
|
8
|
+
__name: "time-group",
|
|
9
|
+
props: {
|
|
10
|
+
countdown: { type: Boolean, default: !1 }
|
|
11
|
+
},
|
|
12
|
+
setup(t) {
|
|
13
|
+
const e = t;
|
|
14
|
+
return (n, r) => (kt(), Ct("div", Te, [
|
|
15
|
+
e.countdown ? (kt(), Ct("media-time", Ae)) : (kt(), Ct(Ce, { key: 1 }, [
|
|
16
|
+
r[0] || (r[0] = Yt("media-time", { type: "current" }, null, -1)),
|
|
17
|
+
r[1] || (r[1] = ke(" / ", -1)),
|
|
18
|
+
r[2] || (r[2] = Yt("media-time", { type: "duration" }, null, -1))
|
|
19
|
+
], 64))
|
|
20
|
+
]));
|
|
21
|
+
}
|
|
22
|
+
}), Dn = /* @__PURE__ */ Oe(Pe, [["__scopeId", "data-v-c80a48e6"]]), v = /* @__PURE__ */ Symbol(0);
|
|
23
|
+
let ht = !1, xt = !1, b = null, M = null, $ = null, h = 0, _ = [], Mt = {};
|
|
24
|
+
const xe = () => {
|
|
25
|
+
}, H = 0, se = 1, dt = 2, pt = 3;
|
|
26
|
+
function Ne() {
|
|
27
|
+
ht = !0, queueMicrotask(ie);
|
|
28
|
+
}
|
|
29
|
+
function ie() {
|
|
30
|
+
if (!_.length) {
|
|
31
|
+
ht = !1;
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
xt = !0;
|
|
35
|
+
for (let t = 0; t < _.length; t++)
|
|
36
|
+
_[t].$st !== H && Ie(_[t]);
|
|
37
|
+
_ = [], ht = !1, xt = !1;
|
|
38
|
+
}
|
|
39
|
+
function Ie(t) {
|
|
40
|
+
let e = [t];
|
|
41
|
+
for (; t = t[v]; )
|
|
42
|
+
t.$e && t.$st !== H && e.push(t);
|
|
43
|
+
for (let n = e.length - 1; n >= 0; n--)
|
|
44
|
+
jt(e[n]);
|
|
45
|
+
}
|
|
46
|
+
function _e(t) {
|
|
47
|
+
const e = Nt();
|
|
48
|
+
return X(e, t.length ? t.bind(null, F.bind(e)) : t, null);
|
|
49
|
+
}
|
|
50
|
+
function Rn(t) {
|
|
51
|
+
return X(b, t, null);
|
|
52
|
+
}
|
|
53
|
+
function Me(t) {
|
|
54
|
+
return X(null, t, null);
|
|
55
|
+
}
|
|
56
|
+
function jn() {
|
|
57
|
+
xt || ie();
|
|
58
|
+
}
|
|
59
|
+
function oe() {
|
|
60
|
+
return b;
|
|
61
|
+
}
|
|
62
|
+
function w(t, e) {
|
|
63
|
+
try {
|
|
64
|
+
return X(e, t, null);
|
|
65
|
+
} catch (n) {
|
|
66
|
+
Ft(e, n);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function le(t, e = b) {
|
|
71
|
+
return e?.$cx[t];
|
|
72
|
+
}
|
|
73
|
+
function Fe(t, e, n = b) {
|
|
74
|
+
n && (n.$cx = { ...n.$cx, [t]: e });
|
|
75
|
+
}
|
|
76
|
+
function $t(t) {
|
|
77
|
+
if (!t || !b)
|
|
78
|
+
return t || xe;
|
|
79
|
+
const e = b;
|
|
80
|
+
return e.$d ? Array.isArray(e.$d) ? e.$d.push(t) : e.$d = [e.$d, t] : e.$d = t, function() {
|
|
81
|
+
e.$st !== pt && (t.call(null), mt(e.$d) ? e.$d = null : Array.isArray(e.$d) && e.$d.splice(e.$d.indexOf(t), 1));
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function F(t = !0) {
|
|
85
|
+
if (this.$st !== pt) {
|
|
86
|
+
if (this.$h)
|
|
87
|
+
if (Array.isArray(this.$h))
|
|
88
|
+
for (let e = this.$h.length - 1; e >= 0; e--)
|
|
89
|
+
F.call(this.$h[e]);
|
|
90
|
+
else
|
|
91
|
+
F.call(this.$h);
|
|
92
|
+
if (t) {
|
|
93
|
+
const e = this[v];
|
|
94
|
+
e && (Array.isArray(e.$h) ? e.$h.splice(e.$h.indexOf(this), 1) : e.$h = null), He(this);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function He(t) {
|
|
99
|
+
t.$st = pt, t.$d && ce(t), t.$s && It(t, 0), t[v] = null, t.$s = null, t.$o = null, t.$h = null, t.$cx = Mt, t.$eh = null;
|
|
100
|
+
}
|
|
101
|
+
function ce(t) {
|
|
102
|
+
try {
|
|
103
|
+
if (Array.isArray(t.$d))
|
|
104
|
+
for (let e = t.$d.length - 1; e >= 0; e--) {
|
|
105
|
+
const n = t.$d[e];
|
|
106
|
+
n.call(n);
|
|
107
|
+
}
|
|
108
|
+
else
|
|
109
|
+
t.$d.call(t.$d);
|
|
110
|
+
t.$d = null;
|
|
111
|
+
} catch (e) {
|
|
112
|
+
Ft(t, e);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function X(t, e, n) {
|
|
116
|
+
const r = b, s = M;
|
|
117
|
+
b = t, M = n;
|
|
118
|
+
try {
|
|
119
|
+
return e.call(t);
|
|
120
|
+
} finally {
|
|
121
|
+
b = r, M = s;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function Ft(t, e) {
|
|
125
|
+
if (!t || !t.$eh)
|
|
126
|
+
throw e;
|
|
127
|
+
let n = 0, r = t.$eh.length, s = e;
|
|
128
|
+
for (n = 0; n < r; n++)
|
|
129
|
+
try {
|
|
130
|
+
t.$eh[n](s);
|
|
131
|
+
break;
|
|
132
|
+
} catch (i) {
|
|
133
|
+
s = i;
|
|
134
|
+
}
|
|
135
|
+
if (n === r)
|
|
136
|
+
throw s;
|
|
137
|
+
}
|
|
138
|
+
function Ht() {
|
|
139
|
+
return this.$st === pt ? this.$v : (M && !this.$e && (!$ && M.$s && M.$s[h] == this ? h++ : $ ? $.push(this) : $ = [this]), this.$c && jt(this), this.$v);
|
|
140
|
+
}
|
|
141
|
+
function ae(t) {
|
|
142
|
+
const e = mt(t) ? t(this.$v) : t;
|
|
143
|
+
if (this.$ch(this.$v, e) && (this.$v = e, this.$o))
|
|
144
|
+
for (let n = 0; n < this.$o.length; n++)
|
|
145
|
+
he(this.$o[n], dt);
|
|
146
|
+
return this.$v;
|
|
147
|
+
}
|
|
148
|
+
const Lt = function() {
|
|
149
|
+
this[v] = null, this.$h = null, b && b.append(this);
|
|
150
|
+
}, I = Lt.prototype;
|
|
151
|
+
I.$cx = Mt;
|
|
152
|
+
I.$eh = null;
|
|
153
|
+
I.$c = null;
|
|
154
|
+
I.$d = null;
|
|
155
|
+
I.append = function(t) {
|
|
156
|
+
t[v] = this, this.$h ? Array.isArray(this.$h) ? this.$h.push(t) : this.$h = [this.$h, t] : this.$h = t, t.$cx = t.$cx === Mt ? this.$cx : { ...this.$cx, ...t.$cx }, this.$eh && (t.$eh = t.$eh ? [...t.$eh, ...this.$eh] : this.$eh);
|
|
157
|
+
};
|
|
158
|
+
I.dispose = function() {
|
|
159
|
+
F.call(this);
|
|
160
|
+
};
|
|
161
|
+
function Nt() {
|
|
162
|
+
return new Lt();
|
|
163
|
+
}
|
|
164
|
+
const ue = function(e, n, r) {
|
|
165
|
+
Lt.call(this), this.$st = n ? dt : H, this.$i = !1, this.$e = !1, this.$s = null, this.$o = null, this.$v = e, n && (this.$c = n), r && r.dirty && (this.$ch = r.dirty);
|
|
166
|
+
}, Dt = ue.prototype;
|
|
167
|
+
Object.setPrototypeOf(Dt, I);
|
|
168
|
+
Dt.$ch = Le;
|
|
169
|
+
Dt.call = Ht;
|
|
170
|
+
function Rt(t, e, n) {
|
|
171
|
+
return new ue(t, e, n);
|
|
172
|
+
}
|
|
173
|
+
function Le(t, e) {
|
|
174
|
+
return t !== e;
|
|
175
|
+
}
|
|
176
|
+
function mt(t) {
|
|
177
|
+
return typeof t == "function";
|
|
178
|
+
}
|
|
179
|
+
function jt(t) {
|
|
180
|
+
if (t.$st === se)
|
|
181
|
+
for (let e = 0; e < t.$s.length && (jt(t.$s[e]), t.$st !== dt); e++)
|
|
182
|
+
;
|
|
183
|
+
t.$st === dt ? fe(t) : t.$st = H;
|
|
184
|
+
}
|
|
185
|
+
function De(t) {
|
|
186
|
+
t.$h && F.call(t, !1), t.$d && ce(t), t.$eh = t[v] ? t[v].$eh : null;
|
|
187
|
+
}
|
|
188
|
+
function fe(t) {
|
|
189
|
+
let e = $, n = h;
|
|
190
|
+
$ = null, h = 0;
|
|
191
|
+
try {
|
|
192
|
+
De(t);
|
|
193
|
+
const r = X(t, t.$c, t);
|
|
194
|
+
Xt(t), !t.$e && t.$i ? ae.call(t, r) : (t.$v = r, t.$i = !0);
|
|
195
|
+
} catch (r) {
|
|
196
|
+
Xt(t), Ft(t, r);
|
|
197
|
+
} finally {
|
|
198
|
+
$ = e, h = n, t.$st = H;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function Xt(t) {
|
|
202
|
+
if ($) {
|
|
203
|
+
if (t.$s && It(t, h), t.$s && h > 0) {
|
|
204
|
+
t.$s.length = h + $.length;
|
|
205
|
+
for (let n = 0; n < $.length; n++)
|
|
206
|
+
t.$s[h + n] = $[n];
|
|
207
|
+
} else
|
|
208
|
+
t.$s = $;
|
|
209
|
+
let e;
|
|
210
|
+
for (let n = h; n < t.$s.length; n++)
|
|
211
|
+
e = t.$s[n], e.$o ? e.$o.push(t) : e.$o = [t];
|
|
212
|
+
} else t.$s && h < t.$s.length && (It(t, h), t.$s.length = h);
|
|
213
|
+
}
|
|
214
|
+
function he(t, e) {
|
|
215
|
+
if (!(t.$st >= e) && (t.$e && t.$st === H && (_.push(t), ht || Ne()), t.$st = e, t.$o))
|
|
216
|
+
for (let n = 0; n < t.$o.length; n++)
|
|
217
|
+
he(t.$o[n], se);
|
|
218
|
+
}
|
|
219
|
+
function It(t, e) {
|
|
220
|
+
let n, r;
|
|
221
|
+
for (let s = e; s < t.$s.length; s++)
|
|
222
|
+
n = t.$s[s], n.$o && (r = n.$o.indexOf(t), n.$o[r] = n.$o[n.$o.length - 1], n.$o.pop());
|
|
223
|
+
}
|
|
224
|
+
function de(...t) {
|
|
225
|
+
}
|
|
226
|
+
function Re(t) {
|
|
227
|
+
return t === null;
|
|
228
|
+
}
|
|
229
|
+
function T(t) {
|
|
230
|
+
return typeof t > "u";
|
|
231
|
+
}
|
|
232
|
+
function Vn(t) {
|
|
233
|
+
return Re(t) || T(t);
|
|
234
|
+
}
|
|
235
|
+
function Wn(t) {
|
|
236
|
+
return t?.constructor === Object;
|
|
237
|
+
}
|
|
238
|
+
function Bn(t) {
|
|
239
|
+
return typeof t == "number" && !Number.isNaN(t);
|
|
240
|
+
}
|
|
241
|
+
function N(t) {
|
|
242
|
+
return typeof t == "string";
|
|
243
|
+
}
|
|
244
|
+
function qn(t) {
|
|
245
|
+
return typeof t == "boolean";
|
|
246
|
+
}
|
|
247
|
+
function A(t) {
|
|
248
|
+
return typeof t == "function";
|
|
249
|
+
}
|
|
250
|
+
function pe(t) {
|
|
251
|
+
return Array.isArray(t);
|
|
252
|
+
}
|
|
253
|
+
const je = Event, $e = /* @__PURE__ */ Symbol("DOM_EVENT");
|
|
254
|
+
class Zt extends je {
|
|
255
|
+
[$e] = !0;
|
|
256
|
+
/**
|
|
257
|
+
* The event detail.
|
|
258
|
+
*/
|
|
259
|
+
detail;
|
|
260
|
+
/**
|
|
261
|
+
* The event trigger chain.
|
|
262
|
+
*/
|
|
263
|
+
triggers = new Ve();
|
|
264
|
+
/**
|
|
265
|
+
* The preceding event that was responsible for this event being fired.
|
|
266
|
+
*/
|
|
267
|
+
get trigger() {
|
|
268
|
+
return this.triggers.source;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* The origin event that lead to this event being fired.
|
|
272
|
+
*/
|
|
273
|
+
get originEvent() {
|
|
274
|
+
return this.triggers.origin;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Whether the origin event was triggered by the user.
|
|
278
|
+
*
|
|
279
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted}
|
|
280
|
+
*/
|
|
281
|
+
get isOriginTrusted() {
|
|
282
|
+
return this.triggers.origin?.isTrusted ?? !1;
|
|
283
|
+
}
|
|
284
|
+
constructor(e, ...n) {
|
|
285
|
+
super(e, n[0]), this.detail = n[0]?.detail;
|
|
286
|
+
const r = n[0]?.trigger;
|
|
287
|
+
r && this.triggers.add(r);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
class Ve {
|
|
291
|
+
chain = [];
|
|
292
|
+
get source() {
|
|
293
|
+
return this.chain[0];
|
|
294
|
+
}
|
|
295
|
+
get origin() {
|
|
296
|
+
return this.chain[this.chain.length - 1];
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Appends the event to the end of the chain.
|
|
300
|
+
*/
|
|
301
|
+
add(e) {
|
|
302
|
+
this.chain.push(e), We(e) && this.chain.push(...e.triggers);
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Removes the event from the chain and returns it (if found).
|
|
306
|
+
*/
|
|
307
|
+
remove(e) {
|
|
308
|
+
return this.chain.splice(this.chain.indexOf(e), 1)[0];
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Returns whether the chain contains the given `event`.
|
|
312
|
+
*/
|
|
313
|
+
has(e) {
|
|
314
|
+
return this.chain.some((n) => n === e);
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Returns whether the chain contains the given event type.
|
|
318
|
+
*/
|
|
319
|
+
hasType(e) {
|
|
320
|
+
return !!this.findType(e);
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Returns the first event with the given `type` found in the chain.
|
|
324
|
+
*/
|
|
325
|
+
findType(e) {
|
|
326
|
+
return this.chain.find((n) => n.type === e);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Walks an event chain on a given `event`, and invokes the given `callback` for each trigger event.
|
|
330
|
+
*/
|
|
331
|
+
walk(e) {
|
|
332
|
+
for (const n of this.chain) {
|
|
333
|
+
const r = e(n);
|
|
334
|
+
if (r) return [n, r];
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
[Symbol.iterator]() {
|
|
338
|
+
return this.chain.values();
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
function We(t) {
|
|
342
|
+
return !!t?.[$e];
|
|
343
|
+
}
|
|
344
|
+
class zn extends EventTarget {
|
|
345
|
+
/** @internal type only */
|
|
346
|
+
$ts__events;
|
|
347
|
+
addEventListener(e, n, r) {
|
|
348
|
+
return super.addEventListener(e, n, r);
|
|
349
|
+
}
|
|
350
|
+
removeEventListener(e, n, r) {
|
|
351
|
+
return super.removeEventListener(e, n, r);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function Be(t, e, n, r) {
|
|
355
|
+
return t.addEventListener(e, n, r), $t(() => t.removeEventListener(e, n, r));
|
|
356
|
+
}
|
|
357
|
+
class Un {
|
|
358
|
+
#t;
|
|
359
|
+
#e;
|
|
360
|
+
get signal() {
|
|
361
|
+
return this.#e.signal;
|
|
362
|
+
}
|
|
363
|
+
constructor(e) {
|
|
364
|
+
this.#t = e, this.#e = new AbortController(), $t(this.abort.bind(this));
|
|
365
|
+
}
|
|
366
|
+
add(e, n, r) {
|
|
367
|
+
if (this.signal.aborted) throw Error("aborted");
|
|
368
|
+
return this.#t.addEventListener(e, n, {
|
|
369
|
+
...r,
|
|
370
|
+
signal: r?.signal ? qe(this.signal, r.signal) : this.signal
|
|
371
|
+
}), this;
|
|
372
|
+
}
|
|
373
|
+
remove(e, n) {
|
|
374
|
+
return this.#t.removeEventListener(e, n), this;
|
|
375
|
+
}
|
|
376
|
+
abort(e) {
|
|
377
|
+
this.#e.abort(e);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
function qe(...t) {
|
|
381
|
+
const e = new AbortController(), n = { signal: e.signal };
|
|
382
|
+
function r(s) {
|
|
383
|
+
e.abort(s.target.reason);
|
|
384
|
+
}
|
|
385
|
+
for (const s of t) {
|
|
386
|
+
if (s.aborted) {
|
|
387
|
+
e.abort(s.reason);
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
s.addEventListener("abort", r, n);
|
|
391
|
+
}
|
|
392
|
+
return e.signal;
|
|
393
|
+
}
|
|
394
|
+
function Kn(t) {
|
|
395
|
+
return !!t?.type.startsWith("pointer");
|
|
396
|
+
}
|
|
397
|
+
function Yn(t) {
|
|
398
|
+
return !!t?.type.startsWith("touch");
|
|
399
|
+
}
|
|
400
|
+
function Xn(t) {
|
|
401
|
+
return /^(click|mouse)/.test(t?.type ?? "");
|
|
402
|
+
}
|
|
403
|
+
function me(t) {
|
|
404
|
+
return !!t?.type.startsWith("key");
|
|
405
|
+
}
|
|
406
|
+
function Zn(t) {
|
|
407
|
+
return me(t) && t.key === "Enter";
|
|
408
|
+
}
|
|
409
|
+
function Gn(t) {
|
|
410
|
+
return me(t) && (t.key === "Enter" || t.key === " ");
|
|
411
|
+
}
|
|
412
|
+
function Jn(t) {
|
|
413
|
+
return t instanceof Node;
|
|
414
|
+
}
|
|
415
|
+
function Gt(t, e, n) {
|
|
416
|
+
if (t) if (!n && n !== "" && n !== 0)
|
|
417
|
+
t.removeAttribute(e);
|
|
418
|
+
else {
|
|
419
|
+
const r = n === !0 ? "" : n + "";
|
|
420
|
+
t.getAttribute(e) !== r && t.setAttribute(e, r);
|
|
421
|
+
}
|
|
422
|
+
else return;
|
|
423
|
+
}
|
|
424
|
+
function Jt(t, e, n) {
|
|
425
|
+
if (t) !n && n !== 0 ? t.style.removeProperty(e) : t.style.setProperty(e, n + "");
|
|
426
|
+
else return;
|
|
427
|
+
}
|
|
428
|
+
function Vt(t, e) {
|
|
429
|
+
const n = Rt(t, null, e), r = Ht.bind(n);
|
|
430
|
+
return r[v] = !0, r.set = ae.bind(n), r;
|
|
431
|
+
}
|
|
432
|
+
function ze(t) {
|
|
433
|
+
return mt(t) && v in t;
|
|
434
|
+
}
|
|
435
|
+
function Ue(t, e) {
|
|
436
|
+
const n = Rt(
|
|
437
|
+
e?.initial,
|
|
438
|
+
t,
|
|
439
|
+
e
|
|
440
|
+
), r = Ht.bind(n);
|
|
441
|
+
return r[v] = !0, r;
|
|
442
|
+
}
|
|
443
|
+
function Ke(t, e) {
|
|
444
|
+
const n = Rt(
|
|
445
|
+
null,
|
|
446
|
+
function() {
|
|
447
|
+
let s = t();
|
|
448
|
+
return mt(s) && $t(s), null;
|
|
449
|
+
},
|
|
450
|
+
void 0
|
|
451
|
+
);
|
|
452
|
+
return n.$e = !0, fe(n), F.bind(n, !0);
|
|
453
|
+
}
|
|
454
|
+
function Qn(t) {
|
|
455
|
+
return ze(t) && "set" in t;
|
|
456
|
+
}
|
|
457
|
+
const _t = Ke;
|
|
458
|
+
function tr(t) {
|
|
459
|
+
return { id: /* @__PURE__ */ Symbol(), provide: t };
|
|
460
|
+
}
|
|
461
|
+
function Ye(t, e, n = oe()) {
|
|
462
|
+
const r = !T(e);
|
|
463
|
+
Fe(t.id, r ? e : t.provide?.(), n);
|
|
464
|
+
}
|
|
465
|
+
function Xe(t) {
|
|
466
|
+
return le(t.id);
|
|
467
|
+
}
|
|
468
|
+
function er(t) {
|
|
469
|
+
return !T(le(t.id));
|
|
470
|
+
}
|
|
471
|
+
const U = /* @__PURE__ */ Symbol(0), K = /* @__PURE__ */ Symbol(0), ge = /* @__PURE__ */ Symbol(0), At = {};
|
|
472
|
+
class Ze {
|
|
473
|
+
/** @internal type only */
|
|
474
|
+
$ts__events;
|
|
475
|
+
/** @internal type only */
|
|
476
|
+
$ts__vars;
|
|
477
|
+
/* @internal */
|
|
478
|
+
[ge] = null;
|
|
479
|
+
$el = Vt(null);
|
|
480
|
+
el = null;
|
|
481
|
+
scope = null;
|
|
482
|
+
attachScope = null;
|
|
483
|
+
connectScope = null;
|
|
484
|
+
component = null;
|
|
485
|
+
destroyed = !1;
|
|
486
|
+
props = At;
|
|
487
|
+
attrs = null;
|
|
488
|
+
styles = null;
|
|
489
|
+
state;
|
|
490
|
+
$state;
|
|
491
|
+
#t = [];
|
|
492
|
+
#e = [];
|
|
493
|
+
#n = [];
|
|
494
|
+
#r = [];
|
|
495
|
+
constructor(e, n, r) {
|
|
496
|
+
this.scope = n, r?.scope && r.scope.append(n);
|
|
497
|
+
let s = e.state, i = e.props;
|
|
498
|
+
if (s && (this.$state = s.create(), this.state = new Proxy(this.$state, {
|
|
499
|
+
get: (l, o) => this.$state[o]()
|
|
500
|
+
}), Ye(s, this.$state)), i && (this.props = Ge(i), r?.props))
|
|
501
|
+
for (const l of Object.keys(r.props))
|
|
502
|
+
this.props[l]?.set(r.props[l]);
|
|
503
|
+
$t(this.destroy.bind(this));
|
|
504
|
+
}
|
|
505
|
+
setup() {
|
|
506
|
+
w(() => {
|
|
507
|
+
for (const e of this.#t) e();
|
|
508
|
+
}, this.scope);
|
|
509
|
+
}
|
|
510
|
+
attach(e) {
|
|
511
|
+
this.el || (this.el = e, this.$el.set(e), w(() => {
|
|
512
|
+
this.attachScope = Nt(), w(() => {
|
|
513
|
+
for (const n of this.#e) n(this.el);
|
|
514
|
+
this.#s(), this.#i();
|
|
515
|
+
}, this.attachScope);
|
|
516
|
+
}, this.scope), e.dispatchEvent(new Event("attached")));
|
|
517
|
+
}
|
|
518
|
+
detach() {
|
|
519
|
+
this.attachScope?.dispose(), this.attachScope = null, this.connectScope = null, this.el = null, this.$el.set(null);
|
|
520
|
+
}
|
|
521
|
+
connect() {
|
|
522
|
+
!this.el || !this.attachScope || !this.#n.length || w(() => {
|
|
523
|
+
this.connectScope = Nt(), w(() => {
|
|
524
|
+
for (const e of this.#n) e(this.el);
|
|
525
|
+
}, this.connectScope);
|
|
526
|
+
}, this.attachScope);
|
|
527
|
+
}
|
|
528
|
+
disconnect() {
|
|
529
|
+
this.connectScope?.dispose(), this.connectScope = null;
|
|
530
|
+
}
|
|
531
|
+
destroy() {
|
|
532
|
+
if (this.destroyed) return;
|
|
533
|
+
this.destroyed = !0, w(() => {
|
|
534
|
+
for (const n of this.#r) n(this.el);
|
|
535
|
+
}, this.scope);
|
|
536
|
+
const e = this.el;
|
|
537
|
+
this.detach(), this.scope.dispose(), this.#t.length = 0, this.#e.length = 0, this.#n.length = 0, this.#r.length = 0, this.component = null, this.attrs = null, this.styles = null, this.props = At, this.scope = null, this.state = At, this.$state = null, e && delete e.$;
|
|
538
|
+
}
|
|
539
|
+
addHooks(e) {
|
|
540
|
+
e.onSetup && this.#t.push(e.onSetup.bind(e)), e.onAttach && this.#e.push(e.onAttach.bind(e)), e.onConnect && this.#n.push(e.onConnect.bind(e)), e.onDestroy && this.#r.push(e.onDestroy.bind(e));
|
|
541
|
+
}
|
|
542
|
+
#s() {
|
|
543
|
+
if (this.attrs)
|
|
544
|
+
for (const e of Object.keys(this.attrs))
|
|
545
|
+
A(this.attrs[e]) ? _t(this.#o.bind(this, e)) : Gt(this.el, e, this.attrs[e]);
|
|
546
|
+
}
|
|
547
|
+
#i() {
|
|
548
|
+
if (this.styles)
|
|
549
|
+
for (const e of Object.keys(this.styles))
|
|
550
|
+
A(this.styles[e]) ? _t(this.#l.bind(this, e)) : Jt(this.el, e, this.styles[e]);
|
|
551
|
+
}
|
|
552
|
+
#o(e) {
|
|
553
|
+
Gt(this.el, e, this.attrs[e].call(this.component));
|
|
554
|
+
}
|
|
555
|
+
#l(e) {
|
|
556
|
+
Jt(this.el, e, this.styles[e].call(this.component));
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function Ge(t) {
|
|
560
|
+
const e = {};
|
|
561
|
+
for (const n of Object.keys(t)) {
|
|
562
|
+
const r = t[n];
|
|
563
|
+
e[n] = Vt(r, r);
|
|
564
|
+
}
|
|
565
|
+
return e;
|
|
566
|
+
}
|
|
567
|
+
let Y = { $$: null };
|
|
568
|
+
function Je(t, e) {
|
|
569
|
+
return _e(() => {
|
|
570
|
+
Y.$$ = new Ze(t, oe(), e);
|
|
571
|
+
const n = new t();
|
|
572
|
+
return Y.$$.component = n, Y.$$ = null, n;
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
class Qe extends EventTarget {
|
|
576
|
+
/** @internal */
|
|
577
|
+
$$;
|
|
578
|
+
get el() {
|
|
579
|
+
return this.$$.el;
|
|
580
|
+
}
|
|
581
|
+
get $el() {
|
|
582
|
+
return this.$$.$el();
|
|
583
|
+
}
|
|
584
|
+
get scope() {
|
|
585
|
+
return this.$$.scope;
|
|
586
|
+
}
|
|
587
|
+
get attachScope() {
|
|
588
|
+
return this.$$.attachScope;
|
|
589
|
+
}
|
|
590
|
+
get connectScope() {
|
|
591
|
+
return this.$$.connectScope;
|
|
592
|
+
}
|
|
593
|
+
/** @internal */
|
|
594
|
+
get $props() {
|
|
595
|
+
return this.$$.props;
|
|
596
|
+
}
|
|
597
|
+
/** @internal */
|
|
598
|
+
get $state() {
|
|
599
|
+
return this.$$.$state;
|
|
600
|
+
}
|
|
601
|
+
get state() {
|
|
602
|
+
return this.$$.state;
|
|
603
|
+
}
|
|
604
|
+
constructor() {
|
|
605
|
+
super(), Y.$$ && this.attach(Y);
|
|
606
|
+
}
|
|
607
|
+
attach({ $$: e }) {
|
|
608
|
+
return this.$$ = e, e.addHooks(this), this;
|
|
609
|
+
}
|
|
610
|
+
addEventListener(e, n, r) {
|
|
611
|
+
this.listen(e, n, r);
|
|
612
|
+
}
|
|
613
|
+
removeEventListener(e, n, r) {
|
|
614
|
+
this.el?.removeEventListener(e, n, r);
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* The given callback is invoked when the component is ready to be set up.
|
|
618
|
+
*
|
|
619
|
+
* - This hook will run once.
|
|
620
|
+
* - This hook is called both client-side and server-side.
|
|
621
|
+
* - It's safe to use context inside this hook.
|
|
622
|
+
* - The host element has not attached yet - wait for `onAttach`.
|
|
623
|
+
*/
|
|
624
|
+
/**
|
|
625
|
+
* This method can be used to specify attributes that should be set on the host element. Any
|
|
626
|
+
* attributes that are assigned to a function will be considered a signal and updated accordingly.
|
|
627
|
+
*/
|
|
628
|
+
setAttributes(e) {
|
|
629
|
+
this.$$.attrs || (this.$$.attrs = {}), Object.assign(this.$$.attrs, e);
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* This method can be used to specify styles that should set be set on the host element. Any
|
|
633
|
+
* styles that are assigned to a function will be considered a signal and updated accordingly.
|
|
634
|
+
*/
|
|
635
|
+
setStyles(e) {
|
|
636
|
+
this.$$.styles || (this.$$.styles = {}), Object.assign(this.$$.styles, e);
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* This method is used to satisfy the CSS variables contract specified on the current
|
|
640
|
+
* component. Other CSS variables can be set via the `setStyles` method.
|
|
641
|
+
*/
|
|
642
|
+
setCSSVars(e) {
|
|
643
|
+
this.setStyles(e);
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Type-safe utility for creating component DOM events.
|
|
647
|
+
*/
|
|
648
|
+
createEvent(e, ...n) {
|
|
649
|
+
return new Zt(e, n[0]);
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Creates a `DOMEvent` and dispatches it from the host element. This method is typed to
|
|
653
|
+
* match all component events.
|
|
654
|
+
*/
|
|
655
|
+
dispatch(e, ...n) {
|
|
656
|
+
if (!this.el) return !1;
|
|
657
|
+
const r = e instanceof Event ? e : new Zt(e, n[0]);
|
|
658
|
+
return Object.defineProperty(r, "target", {
|
|
659
|
+
get: () => this.$$.component
|
|
660
|
+
}), Me(() => (this.$$[ge]?.(r), this.el.dispatchEvent(r)));
|
|
661
|
+
}
|
|
662
|
+
dispatchEvent(e) {
|
|
663
|
+
return this.dispatch(e);
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Adds an event listener for the given `type` and returns a function which can be invoked to
|
|
667
|
+
* remove the event listener.
|
|
668
|
+
*
|
|
669
|
+
* - The listener is removed if the current scope is disposed.
|
|
670
|
+
* - This method is safe to use on the server (noop).
|
|
671
|
+
*/
|
|
672
|
+
listen(e, n, r) {
|
|
673
|
+
return this.el ? Be(this.el, e, n, r) : de;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
class nr extends Qe {
|
|
677
|
+
subscribe(e) {
|
|
678
|
+
return w(() => _t(() => e(this.state)), this.$$.scope);
|
|
679
|
+
}
|
|
680
|
+
destroy() {
|
|
681
|
+
this.$$.destroy();
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
function rr(t, e, n) {
|
|
685
|
+
t[U] || (t[U] = /* @__PURE__ */ new Set()), t[U].add(e);
|
|
686
|
+
}
|
|
687
|
+
function sr(t, e, n) {
|
|
688
|
+
t[K] || (t[K] = /* @__PURE__ */ new Set()), t[K].add(e);
|
|
689
|
+
}
|
|
690
|
+
class ir {
|
|
691
|
+
id = /* @__PURE__ */ Symbol(0);
|
|
692
|
+
record;
|
|
693
|
+
#t;
|
|
694
|
+
constructor(e) {
|
|
695
|
+
this.record = e, this.#t = Object.getOwnPropertyDescriptors(e);
|
|
696
|
+
}
|
|
697
|
+
create() {
|
|
698
|
+
const e = {}, n = new Proxy(e, { get: (r, s) => e[s]() });
|
|
699
|
+
for (const r of Object.keys(this.record)) {
|
|
700
|
+
const s = this.#t[r].get;
|
|
701
|
+
e[r] = s ? Ue(s.bind(n)) : Vt(this.record[r]);
|
|
702
|
+
}
|
|
703
|
+
return e;
|
|
704
|
+
}
|
|
705
|
+
reset(e, n) {
|
|
706
|
+
for (const r of Object.keys(e))
|
|
707
|
+
!this.#t[r].get && (!n || n(r)) && e[r].set(this.record[r]);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
function or(t) {
|
|
711
|
+
return Xe(t);
|
|
712
|
+
}
|
|
713
|
+
function tn(t, e) {
|
|
714
|
+
for (const n of t) n(e);
|
|
715
|
+
}
|
|
716
|
+
function en(t) {
|
|
717
|
+
return t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
718
|
+
}
|
|
719
|
+
function lr(t) {
|
|
720
|
+
return t.replace(/-./g, (e) => e[1].toUpperCase());
|
|
721
|
+
}
|
|
722
|
+
function cr(t) {
|
|
723
|
+
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
724
|
+
}
|
|
725
|
+
function ar(t) {
|
|
726
|
+
return t ? "true" : "false";
|
|
727
|
+
}
|
|
728
|
+
function ur(t) {
|
|
729
|
+
return Object.keys(t);
|
|
730
|
+
}
|
|
731
|
+
function fr() {
|
|
732
|
+
let t, e;
|
|
733
|
+
return { promise: new Promise((r, s) => {
|
|
734
|
+
t = r, e = s;
|
|
735
|
+
}), resolve: t, reject: e };
|
|
736
|
+
}
|
|
737
|
+
function nn(t) {
|
|
738
|
+
return new Promise((e) => setTimeout(e, t));
|
|
739
|
+
}
|
|
740
|
+
function hr(t) {
|
|
741
|
+
let e = -1, n;
|
|
742
|
+
function r(...s) {
|
|
743
|
+
n = s, !(e >= 0) && (e = window.requestAnimationFrame(() => {
|
|
744
|
+
t.apply(this, n), e = -1, n = void 0;
|
|
745
|
+
}));
|
|
746
|
+
}
|
|
747
|
+
return r;
|
|
748
|
+
}
|
|
749
|
+
const rn = typeof window < "u" ? "requestIdleCallback" in window ? window.requestIdleCallback : (t) => window.setTimeout(t, 1) : de;
|
|
750
|
+
function dr(t, e) {
|
|
751
|
+
return new Promise((n) => {
|
|
752
|
+
rn((r) => {
|
|
753
|
+
t?.(r), n();
|
|
754
|
+
}, e);
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
var f = {
|
|
758
|
+
fullscreenEnabled: 0,
|
|
759
|
+
fullscreenElement: 1,
|
|
760
|
+
requestFullscreen: 2,
|
|
761
|
+
exitFullscreen: 3,
|
|
762
|
+
fullscreenchange: 4,
|
|
763
|
+
fullscreenerror: 5,
|
|
764
|
+
fullscreen: 6
|
|
765
|
+
}, Qt = [
|
|
766
|
+
"webkitFullscreenEnabled",
|
|
767
|
+
"webkitFullscreenElement",
|
|
768
|
+
"webkitRequestFullscreen",
|
|
769
|
+
"webkitExitFullscreen",
|
|
770
|
+
"webkitfullscreenchange",
|
|
771
|
+
"webkitfullscreenerror",
|
|
772
|
+
"-webkit-full-screen"
|
|
773
|
+
], te = [
|
|
774
|
+
"mozFullScreenEnabled",
|
|
775
|
+
"mozFullScreenElement",
|
|
776
|
+
"mozRequestFullScreen",
|
|
777
|
+
"mozCancelFullScreen",
|
|
778
|
+
"mozfullscreenchange",
|
|
779
|
+
"mozfullscreenerror",
|
|
780
|
+
"-moz-full-screen"
|
|
781
|
+
], ee = [
|
|
782
|
+
"msFullscreenEnabled",
|
|
783
|
+
"msFullscreenElement",
|
|
784
|
+
"msRequestFullscreen",
|
|
785
|
+
"msExitFullscreen",
|
|
786
|
+
"MSFullscreenChange",
|
|
787
|
+
"MSFullscreenError",
|
|
788
|
+
"-ms-fullscreen"
|
|
789
|
+
], u = typeof window < "u" && typeof window.document < "u" ? window.document : {}, p = "fullscreenEnabled" in u && Object.keys(f) || Qt[0] in u && Qt || te[0] in u && te || ee[0] in u && ee || [], pr = {
|
|
790
|
+
requestFullscreen: function(t) {
|
|
791
|
+
return t[p[f.requestFullscreen]]();
|
|
792
|
+
},
|
|
793
|
+
requestFullscreenFunction: function(t) {
|
|
794
|
+
return t[p[f.requestFullscreen]];
|
|
795
|
+
},
|
|
796
|
+
get exitFullscreen() {
|
|
797
|
+
return u[p[f.exitFullscreen]].bind(u);
|
|
798
|
+
},
|
|
799
|
+
get fullscreenPseudoClass() {
|
|
800
|
+
return ":" + p[f.fullscreen];
|
|
801
|
+
},
|
|
802
|
+
addEventListener: function(t, e, n) {
|
|
803
|
+
return u.addEventListener(p[f[t]], e, n);
|
|
804
|
+
},
|
|
805
|
+
removeEventListener: function(t, e, n) {
|
|
806
|
+
return u.removeEventListener(p[f[t]], e, n);
|
|
807
|
+
},
|
|
808
|
+
get fullscreenEnabled() {
|
|
809
|
+
return !!u[p[f.fullscreenEnabled]];
|
|
810
|
+
},
|
|
811
|
+
set fullscreenEnabled(t) {
|
|
812
|
+
},
|
|
813
|
+
get fullscreenElement() {
|
|
814
|
+
return u[p[f.fullscreenElement]];
|
|
815
|
+
},
|
|
816
|
+
set fullscreenElement(t) {
|
|
817
|
+
},
|
|
818
|
+
get onfullscreenchange() {
|
|
819
|
+
return u[("on" + p[f.fullscreenchange]).toLowerCase()];
|
|
820
|
+
},
|
|
821
|
+
set onfullscreenchange(t) {
|
|
822
|
+
return u[("on" + p[f.fullscreenchange]).toLowerCase()] = t;
|
|
823
|
+
},
|
|
824
|
+
get onfullscreenerror() {
|
|
825
|
+
return u[("on" + p[f.fullscreenerror]).toLowerCase()];
|
|
826
|
+
},
|
|
827
|
+
set onfullscreenerror(t) {
|
|
828
|
+
return u[("on" + p[f.fullscreenerror]).toLowerCase()] = t;
|
|
829
|
+
}
|
|
830
|
+
}, $r = sn;
|
|
831
|
+
function sn(t, e, n) {
|
|
832
|
+
var r = null, s = null, i = n && n.leading, l = n && n.trailing;
|
|
833
|
+
i == null && (i = !0), l == null && (l = !i), i == !0 && (l = !1);
|
|
834
|
+
var o = function() {
|
|
835
|
+
r && (clearTimeout(r), r = null);
|
|
836
|
+
}, a = function() {
|
|
837
|
+
var y = s;
|
|
838
|
+
o(), y && y();
|
|
839
|
+
}, S = function() {
|
|
840
|
+
var y = i && !r, L = this, D = arguments;
|
|
841
|
+
if (s = function() {
|
|
842
|
+
return t.apply(L, D);
|
|
843
|
+
}, r || (r = setTimeout(function() {
|
|
844
|
+
if (r = null, l)
|
|
845
|
+
return s();
|
|
846
|
+
}, e)), y)
|
|
847
|
+
return y = !1, s();
|
|
848
|
+
};
|
|
849
|
+
return S.cancel = o, S.flush = a, S;
|
|
850
|
+
}
|
|
851
|
+
var mr = on;
|
|
852
|
+
function on(t, e, n) {
|
|
853
|
+
var r = null, s = null, i = function() {
|
|
854
|
+
r && (clearTimeout(r), s = null, r = null);
|
|
855
|
+
}, l = function() {
|
|
856
|
+
var a = s;
|
|
857
|
+
i(), a && a();
|
|
858
|
+
}, o = function() {
|
|
859
|
+
if (!e)
|
|
860
|
+
return t.apply(this, arguments);
|
|
861
|
+
var a = this, S = arguments, y = n && !r;
|
|
862
|
+
if (i(), s = function() {
|
|
863
|
+
t.apply(a, S);
|
|
864
|
+
}, r = setTimeout(function() {
|
|
865
|
+
if (r = null, !y) {
|
|
866
|
+
var L = s;
|
|
867
|
+
return s = null, L();
|
|
868
|
+
}
|
|
869
|
+
}, e), y)
|
|
870
|
+
return s();
|
|
871
|
+
};
|
|
872
|
+
return o.cancel = i, o.flush = l, o;
|
|
873
|
+
}
|
|
874
|
+
const ne = (t) => typeof t == "object" && t != null && t.nodeType === 1, re = (t, e) => (!e || t !== "hidden") && t !== "visible" && t !== "clip", ut = (t, e) => {
|
|
875
|
+
if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
|
|
876
|
+
const n = getComputedStyle(t, null);
|
|
877
|
+
return re(n.overflowY, e) || re(n.overflowX, e) || ((r) => {
|
|
878
|
+
const s = ((i) => {
|
|
879
|
+
if (!i.ownerDocument || !i.ownerDocument.defaultView) return null;
|
|
880
|
+
try {
|
|
881
|
+
return i.ownerDocument.defaultView.frameElement;
|
|
882
|
+
} catch {
|
|
883
|
+
return null;
|
|
884
|
+
}
|
|
885
|
+
})(r);
|
|
886
|
+
return !!s && (s.clientHeight < r.scrollHeight || s.clientWidth < r.scrollWidth);
|
|
887
|
+
})(t);
|
|
888
|
+
}
|
|
889
|
+
return !1;
|
|
890
|
+
}, ft = (t, e, n, r, s, i, l, o) => i < t && l > e || i > t && l < e ? 0 : i <= t && o <= n || l >= e && o >= n ? i - t - r : l > e && o < n || i < t && o > n ? l - e + s : 0, ln = (t) => {
|
|
891
|
+
const e = t.parentElement;
|
|
892
|
+
return e ?? (t.getRootNode().host || null);
|
|
893
|
+
}, gr = (t, e) => {
|
|
894
|
+
var n, r, s, i;
|
|
895
|
+
if (typeof document > "u") return [];
|
|
896
|
+
const { scrollMode: l, block: o, inline: a, boundary: S, skipOverflowHiddenElements: y } = e, L = typeof S == "function" ? S : (P) => P !== S;
|
|
897
|
+
if (!ne(t)) throw new TypeError("Invalid target");
|
|
898
|
+
const D = document.scrollingElement || document.documentElement, Z = [];
|
|
899
|
+
let d = t;
|
|
900
|
+
for (; ne(d) && L(d); ) {
|
|
901
|
+
if (d = ln(d), d === D) {
|
|
902
|
+
Z.push(d);
|
|
903
|
+
break;
|
|
904
|
+
}
|
|
905
|
+
d != null && d === document.body && ut(d) && !ut(document.documentElement) || d != null && ut(d, y) && Z.push(d);
|
|
906
|
+
}
|
|
907
|
+
const R = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, j = (i = (s = window.visualViewport) == null ? void 0 : s.height) != null ? i : innerHeight, { scrollX: V, scrollY: W } = window, { height: B, width: q, top: G, right: gt, bottom: bt, left: J } = t.getBoundingClientRect(), { top: Wt, right: Bt, bottom: qt, left: zt } = ((P) => {
|
|
908
|
+
const c = window.getComputedStyle(P);
|
|
909
|
+
return { top: parseFloat(c.scrollMarginTop) || 0, right: parseFloat(c.scrollMarginRight) || 0, bottom: parseFloat(c.scrollMarginBottom) || 0, left: parseFloat(c.scrollMarginLeft) || 0 };
|
|
910
|
+
})(t);
|
|
911
|
+
let m = o === "start" || o === "nearest" ? G - Wt : o === "end" ? bt + qt : G + B / 2 - Wt + qt, g = a === "center" ? J + q / 2 - zt + Bt : a === "end" ? gt + Bt : J - zt;
|
|
912
|
+
const yt = [];
|
|
913
|
+
for (let P = 0; P < Z.length; P++) {
|
|
914
|
+
const c = Z[P], { height: Q, width: tt, top: et, right: vt, bottom: St, left: nt } = c.getBoundingClientRect();
|
|
915
|
+
if (l === "if-needed" && G >= 0 && J >= 0 && bt <= j && gt <= R && (c === D && !ut(c) || G >= et && bt <= St && J >= nt && gt <= vt)) return yt;
|
|
916
|
+
const rt = getComputedStyle(c), st = parseInt(rt.borderLeftWidth, 10), it = parseInt(rt.borderTopWidth, 10), ot = parseInt(rt.borderRightWidth, 10), lt = parseInt(rt.borderBottomWidth, 10);
|
|
917
|
+
let C = 0, k = 0;
|
|
918
|
+
const ct = "offsetWidth" in c ? c.offsetWidth - c.clientWidth - st - ot : 0, at = "offsetHeight" in c ? c.offsetHeight - c.clientHeight - it - lt : 0, wt = "offsetWidth" in c ? c.offsetWidth === 0 ? 0 : tt / c.offsetWidth : 0, Et = "offsetHeight" in c ? c.offsetHeight === 0 ? 0 : Q / c.offsetHeight : 0;
|
|
919
|
+
if (D === c) C = o === "start" ? m : o === "end" ? m - j : o === "nearest" ? ft(W, W + j, j, it, lt, W + m, W + m + B, B) : m - j / 2, k = a === "start" ? g : a === "center" ? g - R / 2 : a === "end" ? g - R : ft(V, V + R, R, st, ot, V + g, V + g + q, q), C = Math.max(0, C + W), k = Math.max(0, k + V);
|
|
920
|
+
else {
|
|
921
|
+
C = o === "start" ? m - et - it : o === "end" ? m - St + lt + at : o === "nearest" ? ft(et, St, Q, it, lt + at, m, m + B, B) : m - (et + Q / 2) + at / 2, k = a === "start" ? g - nt - st : a === "center" ? g - (nt + tt / 2) + ct / 2 : a === "end" ? g - vt + ot + ct : ft(nt, vt, tt, st, ot + ct, g, g + q, q);
|
|
922
|
+
const { scrollLeft: Ut, scrollTop: Kt } = c;
|
|
923
|
+
C = Et === 0 ? 0 : Math.max(0, Math.min(Kt + C / Et, c.scrollHeight - Q / Et + at)), k = wt === 0 ? 0 : Math.max(0, Math.min(Ut + k / wt, c.scrollWidth - tt / wt + ct)), m += Kt - C, g += Ut - k;
|
|
924
|
+
}
|
|
925
|
+
yt.push({ el: c, top: C, left: k });
|
|
926
|
+
}
|
|
927
|
+
return yt;
|
|
928
|
+
}, Pt = (t) => t === null ? "" : t + "", cn = (t) => t === null ? null : t + "", an = (t) => t === null ? 0 : Number(t), un = (t) => t !== null, fn = () => null, hn = (t) => t === null ? [] : JSON.parse(t), dn = (t) => t === null ? {} : JSON.parse(t);
|
|
929
|
+
function pn(t) {
|
|
930
|
+
if (t === null) return cn;
|
|
931
|
+
switch (typeof t) {
|
|
932
|
+
case "undefined":
|
|
933
|
+
return Pt;
|
|
934
|
+
case "string":
|
|
935
|
+
return Pt;
|
|
936
|
+
case "boolean":
|
|
937
|
+
return un;
|
|
938
|
+
case "number":
|
|
939
|
+
return an;
|
|
940
|
+
case "function":
|
|
941
|
+
return fn;
|
|
942
|
+
case "object":
|
|
943
|
+
return pe(t) ? hn : dn;
|
|
944
|
+
default:
|
|
945
|
+
return Pt;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
const O = /* @__PURE__ */ Symbol(0), be = /* @__PURE__ */ Symbol(0), x = /* @__PURE__ */ Symbol(0), z = /* @__PURE__ */ Symbol(0);
|
|
949
|
+
var E;
|
|
950
|
+
(function(t) {
|
|
951
|
+
t[t.Idle = 0] = "Idle";
|
|
952
|
+
const n = 1;
|
|
953
|
+
t[t.Pending = n] = "Pending";
|
|
954
|
+
const r = 2;
|
|
955
|
+
t[t.Ready = r] = "Ready";
|
|
956
|
+
})(E || (E = {}));
|
|
957
|
+
function br(t, e) {
|
|
958
|
+
class n extends t {
|
|
959
|
+
static attrs;
|
|
960
|
+
static [O] = null;
|
|
961
|
+
static get observedAttributes() {
|
|
962
|
+
if (!this[O] && e.props) {
|
|
963
|
+
const s = /* @__PURE__ */ new Map();
|
|
964
|
+
for (const i of Object.keys(e.props)) {
|
|
965
|
+
let l = this.attrs?.[i], o = N(l) ? l : l && l?.attr;
|
|
966
|
+
o !== !1 && (o || (o = en(i)), s.set(o, {
|
|
967
|
+
prop: i,
|
|
968
|
+
converter: l && !N(l) && l?.converter || pn(e.props[i])
|
|
969
|
+
}));
|
|
970
|
+
}
|
|
971
|
+
this[O] = s;
|
|
972
|
+
}
|
|
973
|
+
return this[O] ? Array.from(this[O].keys()) : [];
|
|
974
|
+
}
|
|
975
|
+
$;
|
|
976
|
+
[x] = E.Idle;
|
|
977
|
+
[z] = null;
|
|
978
|
+
keepAlive = !1;
|
|
979
|
+
forwardKeepAlive = !0;
|
|
980
|
+
get scope() {
|
|
981
|
+
return this.$.$$.scope;
|
|
982
|
+
}
|
|
983
|
+
get attachScope() {
|
|
984
|
+
return this.$.$$.attachScope;
|
|
985
|
+
}
|
|
986
|
+
get connectScope() {
|
|
987
|
+
return this.$.$$.connectScope;
|
|
988
|
+
}
|
|
989
|
+
get $props() {
|
|
990
|
+
return this.$.$$.props;
|
|
991
|
+
}
|
|
992
|
+
get $state() {
|
|
993
|
+
return this.$.$$.$state;
|
|
994
|
+
}
|
|
995
|
+
get state() {
|
|
996
|
+
return this.$.state;
|
|
997
|
+
}
|
|
998
|
+
constructor(...s) {
|
|
999
|
+
if (super(...s), this.$ = w(() => Je(e), null), this.$.$$.addHooks(this), e.props) {
|
|
1000
|
+
const i = this.$props, l = Object.getOwnPropertyDescriptors(this);
|
|
1001
|
+
for (const o of Object.keys(l))
|
|
1002
|
+
o in e.props && (i[o].set(this[o]), delete this[o]);
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
attributeChangedCallback(s, i, l) {
|
|
1006
|
+
const o = this.constructor;
|
|
1007
|
+
if (!o[O]) {
|
|
1008
|
+
super.attributeChangedCallback?.(s, i, l);
|
|
1009
|
+
return;
|
|
1010
|
+
}
|
|
1011
|
+
const a = o[O].get(s);
|
|
1012
|
+
a && (this[a.prop] = a.converter(l));
|
|
1013
|
+
}
|
|
1014
|
+
connectedCallback() {
|
|
1015
|
+
const s = this.$?.$$;
|
|
1016
|
+
if (!s || s.destroyed) return;
|
|
1017
|
+
if (this[x] !== E.Ready) {
|
|
1018
|
+
mn.call(this);
|
|
1019
|
+
return;
|
|
1020
|
+
}
|
|
1021
|
+
if (!this.isConnected) return;
|
|
1022
|
+
this.hasAttribute("keep-alive") && (this.keepAlive = !0), s.connect(), pe(this[z]) && tn(this[z], this), this[z] = null;
|
|
1023
|
+
const i = super.connectedCallback;
|
|
1024
|
+
i && w(() => i.call(this), this.connectScope);
|
|
1025
|
+
}
|
|
1026
|
+
disconnectedCallback() {
|
|
1027
|
+
const s = this.$?.$$;
|
|
1028
|
+
if (!s || s.destroyed) return;
|
|
1029
|
+
s.disconnect();
|
|
1030
|
+
const i = super.disconnectedCallback;
|
|
1031
|
+
i && i.call(this), !this.keepAlive && !this.hasAttribute("keep-alive") && setTimeout(() => {
|
|
1032
|
+
requestAnimationFrame(() => {
|
|
1033
|
+
this.isConnected || s.destroy();
|
|
1034
|
+
});
|
|
1035
|
+
}, 0);
|
|
1036
|
+
}
|
|
1037
|
+
[be]() {
|
|
1038
|
+
const s = this.$.$$, i = this.constructor;
|
|
1039
|
+
if (s.destroyed) return;
|
|
1040
|
+
const l = i[O];
|
|
1041
|
+
if (l)
|
|
1042
|
+
for (const o of this.attributes) {
|
|
1043
|
+
let a = l.get(o.name);
|
|
1044
|
+
a && a.converter && s.props[a.prop].set(a.converter(this.getAttribute(o.name)));
|
|
1045
|
+
}
|
|
1046
|
+
s.setup(), s.attach(this), this[x] = E.Ready, this.connectedCallback();
|
|
1047
|
+
}
|
|
1048
|
+
// @ts-expect-error
|
|
1049
|
+
subscribe(s) {
|
|
1050
|
+
return this.$.subscribe(s);
|
|
1051
|
+
}
|
|
1052
|
+
destroy() {
|
|
1053
|
+
this.disconnectedCallback(), this.$.destroy();
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
return $n(n, e), n;
|
|
1057
|
+
}
|
|
1058
|
+
function $n(t, e) {
|
|
1059
|
+
const n = t.prototype, r = e.prototype;
|
|
1060
|
+
if (e.props)
|
|
1061
|
+
for (const s of Object.keys(e.props))
|
|
1062
|
+
Object.defineProperty(n, s, {
|
|
1063
|
+
enumerable: !0,
|
|
1064
|
+
configurable: !0,
|
|
1065
|
+
get() {
|
|
1066
|
+
return this.$props[s]();
|
|
1067
|
+
},
|
|
1068
|
+
set(i) {
|
|
1069
|
+
this.$props[s].set(i);
|
|
1070
|
+
}
|
|
1071
|
+
});
|
|
1072
|
+
if (r[U])
|
|
1073
|
+
for (const s of r[U])
|
|
1074
|
+
Object.defineProperty(n, s, {
|
|
1075
|
+
enumerable: !0,
|
|
1076
|
+
configurable: !0,
|
|
1077
|
+
get() {
|
|
1078
|
+
return this.$[s];
|
|
1079
|
+
},
|
|
1080
|
+
set(i) {
|
|
1081
|
+
this.$[s] = i;
|
|
1082
|
+
}
|
|
1083
|
+
});
|
|
1084
|
+
if (r[K])
|
|
1085
|
+
for (const s of r[K])
|
|
1086
|
+
n[s] = function(...i) {
|
|
1087
|
+
return this.$[s](...i);
|
|
1088
|
+
};
|
|
1089
|
+
}
|
|
1090
|
+
function mn() {
|
|
1091
|
+
if (this[x] !== E.Idle) return;
|
|
1092
|
+
this[x] = E.Pending;
|
|
1093
|
+
const t = bn(this), e = t && window.customElements.get(t.localName), n = t && t[x] === E.Ready;
|
|
1094
|
+
if (t && (!e || !n)) {
|
|
1095
|
+
gn.call(this, t);
|
|
1096
|
+
return;
|
|
1097
|
+
}
|
|
1098
|
+
ye.call(this, t);
|
|
1099
|
+
}
|
|
1100
|
+
async function gn(t) {
|
|
1101
|
+
await window.customElements.whenDefined(t.localName), t[x] !== E.Ready && await new Promise((e) => (t[z] ??= []).push(e)), ye.call(this, t);
|
|
1102
|
+
}
|
|
1103
|
+
function ye(t) {
|
|
1104
|
+
if (this.isConnected) {
|
|
1105
|
+
if (t) {
|
|
1106
|
+
t.keepAlive && t.forwardKeepAlive && (this.keepAlive = !0, this.setAttribute("keep-alive", ""));
|
|
1107
|
+
const e = this.$.$$.scope;
|
|
1108
|
+
e && t.$.$$.attachScope.append(e);
|
|
1109
|
+
}
|
|
1110
|
+
this[be]();
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
function bn(t) {
|
|
1114
|
+
let e = t.parentNode, n = t.localName.split("-", 1)[0] + "-";
|
|
1115
|
+
for (; e; ) {
|
|
1116
|
+
if (e.nodeType === 1 && e.localName.startsWith(n))
|
|
1117
|
+
return e;
|
|
1118
|
+
e = e.parentNode;
|
|
1119
|
+
}
|
|
1120
|
+
return null;
|
|
1121
|
+
}
|
|
1122
|
+
function yr(t, e = !1) {
|
|
1123
|
+
(e || !window.customElements.get(t.tagName)) && window.customElements.define(t.tagName, t);
|
|
1124
|
+
}
|
|
1125
|
+
var vr = '<path fill-rule="evenodd" clip-rule="evenodd" d="M6 7C5.63181 7 5.33333 7.29848 5.33333 7.66667V14.8667C5.33333 14.9403 5.39361 14.9999 5.46724 15.0009C10.8844 15.0719 15.2614 19.449 15.3325 24.8661C15.3334 24.9397 15.393 25 15.4667 25H26C26.3682 25 26.6667 24.7015 26.6667 24.3333V7.66667C26.6667 7.29848 26.3682 7 26 7H6ZM17.0119 22.2294C17.0263 22.29 17.0802 22.3333 17.1425 22.3333H23.3333C23.7015 22.3333 24 22.0349 24 21.6667V10.3333C24 9.96514 23.7015 9.66667 23.3333 9.66667H8.66667C8.29848 9.66667 8 9.96514 8 10.3333V13.1909C8 13.2531 8.04332 13.3071 8.10392 13.3214C12.5063 14.3618 15.9715 17.827 17.0119 22.2294Z" fill="currentColor"/> <path d="M13.2 25C13.2736 25 13.3334 24.9398 13.3322 24.8661C13.2615 20.5544 9.77889 17.0718 5.46718 17.0011C5.39356 16.9999 5.33333 17.0597 5.33333 17.1333V18.8667C5.33333 18.9403 5.39348 18.9999 5.4671 19.0015C8.67465 19.0716 11.2617 21.6587 11.3319 24.8662C11.3335 24.9399 11.393 25 11.4667 25H13.2Z" fill="currentColor"/> <path d="M5.33333 21.1333C5.33333 21.0597 5.39332 20.9998 5.46692 21.0022C7.57033 21.0712 9.26217 22.763 9.33114 24.8664C9.33356 24.94 9.27364 25 9.2 25H6C5.63181 25 5.33333 24.7015 5.33333 24.3333V21.1333Z" fill="currentColor"/>';
|
|
1126
|
+
const yn = navigator?.userAgent.toLowerCase() || "", vn = /iphone|ipad|ipod|ios|crios|fxios/i.test(yn), Sr = /(iphone|ipod)/gi.test(navigator?.platform || ""), wr = !!window.chrome, Er = !!window.safari || vn;
|
|
1127
|
+
function Cr() {
|
|
1128
|
+
return Sn() && A(screen.orientation.unlock);
|
|
1129
|
+
}
|
|
1130
|
+
function Sn() {
|
|
1131
|
+
return !T(window.screen.orientation) && !T(window.screen.orientation.lock);
|
|
1132
|
+
}
|
|
1133
|
+
function kr(t, e) {
|
|
1134
|
+
return t || (t = document.createElement("audio")), t.canPlayType(e).length > 0;
|
|
1135
|
+
}
|
|
1136
|
+
function Or(t, e) {
|
|
1137
|
+
return t || (t = document.createElement("video")), t.canPlayType(e).length > 0;
|
|
1138
|
+
}
|
|
1139
|
+
function wn(t) {
|
|
1140
|
+
return t || (t = document.createElement("video")), t.canPlayType("application/vnd.apple.mpegurl").length > 0;
|
|
1141
|
+
}
|
|
1142
|
+
function Tr(t) {
|
|
1143
|
+
return !!document.pictureInPictureEnabled && !t?.disablePictureInPicture;
|
|
1144
|
+
}
|
|
1145
|
+
function Ar(t) {
|
|
1146
|
+
return A(t?.webkitSupportsPresentationMode) && A(t?.webkitSetPresentationMode);
|
|
1147
|
+
}
|
|
1148
|
+
async function Pr() {
|
|
1149
|
+
const t = document.createElement("video");
|
|
1150
|
+
return t.volume = 0.5, await nn(0), t.volume === 0.5;
|
|
1151
|
+
}
|
|
1152
|
+
function En() {
|
|
1153
|
+
return window?.ManagedMediaSource ?? window?.MediaSource ?? window?.WebKitMediaSource;
|
|
1154
|
+
}
|
|
1155
|
+
function Cn() {
|
|
1156
|
+
return window?.SourceBuffer ?? window?.WebKitSourceBuffer;
|
|
1157
|
+
}
|
|
1158
|
+
function kn() {
|
|
1159
|
+
const t = En();
|
|
1160
|
+
if (T(t)) return !1;
|
|
1161
|
+
const e = t && A(t.isTypeSupported) && t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'), n = Cn(), r = T(n) || !T(n.prototype) && A(n.prototype.appendBuffer) && A(n.prototype.remove);
|
|
1162
|
+
return !!e && !!r;
|
|
1163
|
+
}
|
|
1164
|
+
function xr() {
|
|
1165
|
+
return kn();
|
|
1166
|
+
}
|
|
1167
|
+
const On = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx|flac)($|\?)/i, Tn = /* @__PURE__ */ new Set([
|
|
1168
|
+
"audio/mpeg",
|
|
1169
|
+
"audio/ogg",
|
|
1170
|
+
"audio/3gp",
|
|
1171
|
+
"audio/mp3",
|
|
1172
|
+
"audio/webm",
|
|
1173
|
+
"audio/flac",
|
|
1174
|
+
"audio/m4a",
|
|
1175
|
+
"audio/m4b",
|
|
1176
|
+
"audio/mp4a",
|
|
1177
|
+
"audio/mp4"
|
|
1178
|
+
]), An = /\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i, Pn = /* @__PURE__ */ new Set([
|
|
1179
|
+
"video/mp4",
|
|
1180
|
+
"video/webm",
|
|
1181
|
+
"video/3gp",
|
|
1182
|
+
"video/ogg",
|
|
1183
|
+
"video/avi",
|
|
1184
|
+
"video/mpeg"
|
|
1185
|
+
]), xn = /\.(m3u8)($|\?)/i, Nn = /\.(mpd)($|\?)/i, In = /* @__PURE__ */ new Set([
|
|
1186
|
+
// Apple sanctioned
|
|
1187
|
+
"application/vnd.apple.mpegurl",
|
|
1188
|
+
// Apple sanctioned for backwards compatibility
|
|
1189
|
+
"audio/mpegurl",
|
|
1190
|
+
// Very common
|
|
1191
|
+
"audio/x-mpegurl",
|
|
1192
|
+
// Very common
|
|
1193
|
+
"application/x-mpegurl",
|
|
1194
|
+
// Included for completeness
|
|
1195
|
+
"video/x-mpegurl",
|
|
1196
|
+
"video/mpegurl",
|
|
1197
|
+
"application/mpegurl"
|
|
1198
|
+
]), _n = /* @__PURE__ */ new Set(["application/dash+xml"]);
|
|
1199
|
+
function ve({ src: t, type: e }) {
|
|
1200
|
+
return N(t) ? On.test(t) || Tn.has(e) || t.startsWith("blob:") && e === "audio/object" : e === "audio/object";
|
|
1201
|
+
}
|
|
1202
|
+
function Se(t) {
|
|
1203
|
+
return N(t.src) ? An.test(t.src) || Pn.has(t.type) || t.src.startsWith("blob:") && t.type === "video/object" || we(t) && wn() : t.type === "video/object";
|
|
1204
|
+
}
|
|
1205
|
+
function we({ src: t, type: e }) {
|
|
1206
|
+
return N(t) && xn.test(t) || In.has(e);
|
|
1207
|
+
}
|
|
1208
|
+
function Nr({ src: t, type: e }) {
|
|
1209
|
+
return N(t) && Nn.test(t) || _n.has(e);
|
|
1210
|
+
}
|
|
1211
|
+
function Ir(t) {
|
|
1212
|
+
return N(t.src) && (ve(t) || Se(t) || we(t));
|
|
1213
|
+
}
|
|
1214
|
+
function _r(t) {
|
|
1215
|
+
return typeof window.MediaStream < "u" && t instanceof window.MediaStream;
|
|
1216
|
+
}
|
|
1217
|
+
const Mr = ({ src: t, type: e, stream: n }) => {
|
|
1218
|
+
const r = Ot(t), s = Ot(e), i = Ot(n), l = Tt(() => i.value ? "video/object" : s.value || r.value?.type), o = Tt(() => i.value ? i.value : typeof r.value == "string" ? r.value : r.value?.src);
|
|
1219
|
+
return {
|
|
1220
|
+
normalizedSrcObject: Tt(() => Mn({
|
|
1221
|
+
src: o.value,
|
|
1222
|
+
type: l.value
|
|
1223
|
+
}))
|
|
1224
|
+
};
|
|
1225
|
+
};
|
|
1226
|
+
function Mn({
|
|
1227
|
+
src: t,
|
|
1228
|
+
type: e
|
|
1229
|
+
}) {
|
|
1230
|
+
return ve({
|
|
1231
|
+
src: t,
|
|
1232
|
+
type: e
|
|
1233
|
+
}) || Se({
|
|
1234
|
+
src: t,
|
|
1235
|
+
type: e
|
|
1236
|
+
}) ? {
|
|
1237
|
+
src: t,
|
|
1238
|
+
type: e
|
|
1239
|
+
} : Fn({
|
|
1240
|
+
src: t,
|
|
1241
|
+
type: e
|
|
1242
|
+
}) ? {
|
|
1243
|
+
src: t,
|
|
1244
|
+
type: e
|
|
1245
|
+
} : e.includes("audio") ? {
|
|
1246
|
+
src: t,
|
|
1247
|
+
type: "audio/mp3"
|
|
1248
|
+
} : e.includes("video") ? {
|
|
1249
|
+
src: t,
|
|
1250
|
+
type: "video/mp4"
|
|
1251
|
+
} : {
|
|
1252
|
+
src: t,
|
|
1253
|
+
type: e
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
function Fn({ src: t, type: e }) {
|
|
1257
|
+
return e.includes("/object");
|
|
1258
|
+
}
|
|
1259
|
+
export {
|
|
1260
|
+
kr as $,
|
|
1261
|
+
cr as A,
|
|
1262
|
+
en as B,
|
|
1263
|
+
nr as C,
|
|
1264
|
+
Zt as D,
|
|
1265
|
+
zn as E,
|
|
1266
|
+
Ue as F,
|
|
1267
|
+
we as G,
|
|
1268
|
+
kn as H,
|
|
1269
|
+
Sr as I,
|
|
1270
|
+
de as J,
|
|
1271
|
+
Nr as K,
|
|
1272
|
+
Cr as L,
|
|
1273
|
+
pr as M,
|
|
1274
|
+
mr as N,
|
|
1275
|
+
Me as O,
|
|
1276
|
+
Pr as P,
|
|
1277
|
+
$r as Q,
|
|
1278
|
+
wr as R,
|
|
1279
|
+
ir as S,
|
|
1280
|
+
Dn as T,
|
|
1281
|
+
vn as U,
|
|
1282
|
+
Qe as V,
|
|
1283
|
+
Ir as W,
|
|
1284
|
+
dr as X,
|
|
1285
|
+
Se as Y,
|
|
1286
|
+
Or as Z,
|
|
1287
|
+
ve as _,
|
|
1288
|
+
Xe as a,
|
|
1289
|
+
xr as a0,
|
|
1290
|
+
me as a1,
|
|
1291
|
+
rr as a2,
|
|
1292
|
+
sr as a3,
|
|
1293
|
+
ar as a4,
|
|
1294
|
+
Qn as a5,
|
|
1295
|
+
or as a6,
|
|
1296
|
+
er as a7,
|
|
1297
|
+
Zn as a8,
|
|
1298
|
+
gr as a9,
|
|
1299
|
+
Wn as aa,
|
|
1300
|
+
Nt as ab,
|
|
1301
|
+
Kn as ac,
|
|
1302
|
+
Xn as ad,
|
|
1303
|
+
lr as ae,
|
|
1304
|
+
br as af,
|
|
1305
|
+
yr as ag,
|
|
1306
|
+
un as ah,
|
|
1307
|
+
qn as ai,
|
|
1308
|
+
vr as aj,
|
|
1309
|
+
_r as ak,
|
|
1310
|
+
Er as al,
|
|
1311
|
+
Vn as am,
|
|
1312
|
+
Ar as an,
|
|
1313
|
+
Tr as ao,
|
|
1314
|
+
wn as ap,
|
|
1315
|
+
ur as aq,
|
|
1316
|
+
T as b,
|
|
1317
|
+
tr as c,
|
|
1318
|
+
N as d,
|
|
1319
|
+
Re as e,
|
|
1320
|
+
fr as f,
|
|
1321
|
+
oe as g,
|
|
1322
|
+
Bn as h,
|
|
1323
|
+
pe as i,
|
|
1324
|
+
A as j,
|
|
1325
|
+
Gt as k,
|
|
1326
|
+
Be as l,
|
|
1327
|
+
_t as m,
|
|
1328
|
+
Un as n,
|
|
1329
|
+
$t as o,
|
|
1330
|
+
Gn as p,
|
|
1331
|
+
Jn as q,
|
|
1332
|
+
Yn as r,
|
|
1333
|
+
w as s,
|
|
1334
|
+
Jt as t,
|
|
1335
|
+
Mr as u,
|
|
1336
|
+
Vt as v,
|
|
1337
|
+
hr as w,
|
|
1338
|
+
Rn as x,
|
|
1339
|
+
jn as y,
|
|
1340
|
+
Ye as z
|
|
1341
|
+
};
|