@webitel/ui-sdk 26.6.34 → 26.6.35
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/AgentStatus.enum-C3IGHtvR.js +9 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/caseConverters-DXegZoCt.js +27 -0
- package/dist/chunk-CY3AvKd6.js +20 -0
- package/dist/clients-A6MHYfOX.js +36118 -0
- package/dist/components-B4aAS7wB.js +5391 -0
- package/dist/composables-DnDH-KUv.js +263 -0
- package/dist/convertDuration-1K7fuEpO.js +8 -0
- package/dist/debounce-DrmECuJ2.js +128 -0
- package/dist/deep-copy-CQw5yeEH.js +41 -0
- package/dist/displayText-CtaxzaBz.js +3 -0
- package/dist/dist-05Bf47Wg.js +87 -0
- package/dist/dist-BYiYpK00.js +7 -0
- package/dist/dist-Dz55hlwp.js +1371 -0
- package/dist/engineCallFileType-D7QVFOac.js +11 -0
- package/dist/enums-pbYAJNeb.js +158 -0
- package/dist/errors-SUXKojVW.js +69 -0
- package/dist/floating-ui.dom-n2j9PKCB.js +842 -0
- package/dist/generateInstance-ppTIeLX4.js +2582 -0
- package/dist/isObject-Dgs_L5xI.js +11 -0
- package/dist/logger-hl3ueNok.js +47 -0
- package/dist/prod-Cp0BjuxI.js +775 -0
- package/dist/prod-DSuxcp5t.js +2 -0
- package/dist/side-channel-Cyte-MzW.js +833 -0
- package/dist/sortQueryAdapters-CyYXvnDN.js +14 -0
- package/dist/srt-parser-DdH5U08c.js +21 -0
- package/dist/ssa-parser-Bjs7yDD1.js +184 -0
- package/dist/ui-sdk.css +2 -1
- package/dist/ui-sdk.js +34541 -4
- package/dist/ui-sdk.umd.cjs +7740 -7606
- package/dist/useExpansion-DVdIpoOn.js +24 -0
- package/dist/useValidation-DG0tifBv.js +37 -0
- package/dist/useVidstackSrc-DfNrFbOO.js +155 -0
- package/dist/useWtTable-tqmVOvve.js +12 -0
- package/dist/vidstack-B01xzxC4-DeYSgDZy.js +7 -0
- package/dist/vidstack-BGSTndAW-CyKM_CM4.js +957 -0
- package/dist/vidstack-BQlOPwOu-ChhdffAJ.js +43 -0
- package/dist/vidstack-Bq6c3Bam-3dCf_D36.js +398 -0
- package/dist/vidstack-C2US-gSO-DeIgENrW.js +127 -0
- package/dist/vidstack-C9vIqaYT-C1EgPq17.js +9 -0
- package/dist/vidstack-CTojmhKq-D7sZJxgm.js +30 -0
- package/dist/vidstack-ChQTHmIQ-nTO94M6P.js +51 -0
- package/dist/vidstack-Ci54COQW-CAAXpwzv.js +208 -0
- package/dist/vidstack-D2pY00kU-DoW028io.js +70 -0
- package/dist/vidstack-D5EzK014-DOe01V3H.js +14 -0
- package/dist/vidstack-DDXt6fpN-Don_e6LS.js +42 -0
- package/dist/vidstack-D_-9AA6_-Dq3APB0-.js +19 -0
- package/dist/vidstack-Dihypf8P-ibWMCHK-.js +12 -0
- package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +31 -0
- package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +22 -0
- package/dist/vidstack-audio-B58bvsna.js +23 -0
- package/dist/vidstack-dash-CX-LTHx3.js +332 -0
- package/dist/vidstack-google-cast-Co5Q_rfL.js +361 -0
- package/dist/vidstack-hls-CLzdTFu6.js +269 -0
- package/dist/vidstack-krOAtKMi-DN1WZC3p.js +30 -0
- package/dist/vidstack-video-XtP8iTBc.js +151 -0
- package/dist/vidstack-vimeo-EzzPpggD.js +386 -0
- package/dist/vidstack-youtube-C1_NAfWa.js +205 -0
- package/dist/vue-i18n-B8Px6VcD.js +2201 -0
- package/dist/wt-action-bar-Ba1ZJjE_.js +85 -0
- package/dist/wt-button-DENbrKdy.js +785 -0
- package/dist/wt-button-select-BnRHgJ4i.js +80 -0
- package/dist/wt-call-media-action-Bkyppnsm.js +42 -0
- package/dist/wt-chat-emoji-wdBt1XzD.js +2208 -0
- package/dist/wt-confirm-dialog-DCUitG2v.js +70 -0
- package/dist/wt-context-menu-yW52oF-2.js +89 -0
- package/dist/wt-copy-action-d9gVzAsB.js +38 -0
- package/dist/wt-datepicker-Cnbarx_j.js +5774 -0
- package/dist/wt-display-chip-items-CvMM8WMk.js +34 -0
- package/dist/wt-dual-panel-DAhTYFS_.js +49 -0
- package/dist/wt-dummy-CLjhRWZ6.js +59 -0
- package/dist/wt-error-page-vhu4lIyF.js +62 -0
- package/dist/wt-expand-transition-C2p9bR4j.js +39 -0
- package/dist/wt-expansion-card-qsxvbtZm.js +47 -0
- package/dist/wt-expansion-panel-C_EXvx1d.js +40 -0
- package/dist/wt-filters-panel-wrapper-Cc9b3aci.js +51 -0
- package/dist/wt-galleria-CWXKuZTD.js +224 -0
- package/dist/wt-icon-action-CQlZHMDB.js +100 -0
- package/dist/wt-icon-btn-CjjI4cgE.js +107 -0
- package/dist/wt-icon-pxO7IjwV.js +1026 -0
- package/dist/wt-inline-add-panel-B0E4Vk2l.js +43 -0
- package/dist/wt-navigation-menu-CenQi_-T.js +126 -0
- package/dist/wt-notifications-bar-Ep1QuFZi.js +52 -0
- package/dist/wt-page-header-CDbd4aOh.js +59 -0
- package/dist/wt-pagination-BA_PZPIE.js +94 -0
- package/dist/wt-player-uidPXSTe.js +287 -0
- package/dist/wt-popover-CJZH3wMl.js +98 -0
- package/dist/wt-screen-recordings-action-Dg7Ts2Jt.js +37 -0
- package/dist/wt-search-bar-CWZdvAOf.js +123 -0
- package/dist/wt-selection-popup-B77UY7Yu.js +79 -0
- package/dist/wt-send-message-popup-D0GJMGni.js +77 -0
- package/dist/wt-slider-BS3SoGht.js +68 -0
- package/dist/wt-start-page-eN1PEokc.js +86 -0
- package/dist/wt-status-select-A5t6Vjm4.js +101 -0
- package/dist/wt-stepper-B6zpd1Uh.js +41 -0
- package/dist/wt-table-D0FynxIE.js +364 -0
- package/dist/wt-table-actions-4-peSVkc.js +63 -0
- package/dist/wt-table-column-select-DFF6z3a3.js +100 -0
- package/dist/wt-tabs-DuOgj-lZ.js +60 -0
- package/dist/wt-time-input-CO2cop3y.js +62 -0
- package/dist/wt-timepicker-BltFF1QD.js +145 -0
- package/dist/wt-tree-ZyoPrNOl.js +1206 -0
- package/dist/wt-tree-table-MLET4gIv.js +221 -0
- package/dist/wt-type-extension-value-input-fnNxJLsq.js +104 -0
- package/dist/wt-vidstack-player-DLTA9mBK.js +7440 -0
- package/package.json +5 -5
- package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
- package/dist/contacts-DzLKP4GQ.js +0 -49654
- package/dist/displayText-Cbh4IOfM.js +0 -5
- package/dist/engineCallFileType-yaadA7-2.js +0 -8
- package/dist/errors-CTL-RV3B.js +0 -70
- package/dist/index-BgLoxAyu.js +0 -50
- package/dist/install-Cm-8fwtB.js +0 -53489
- package/dist/isObject-BSIwu4UO.js +0 -28
- package/dist/prod-BoQuiIB3.js +0 -973
- package/dist/srt-parser-CsN7bp5E.js +0 -26
- package/dist/ssa-parser-BJOOPeQF.js +0 -200
- package/dist/useExpansion-BrQ40HiR.js +0 -24
- package/dist/useVidstackSrc-DKXY5f7v.js +0 -1341
- package/dist/vidstack-Bq6c3Bam-BHF-0bv4.js +0 -426
- package/dist/vidstack-D2pY00kU-B8Mhvp0m.js +0 -136
- package/dist/vidstack-DDXt6fpN-D0eou9h7.js +0 -51
- package/dist/vidstack-D_-9AA6_-DYAfclN7.js +0 -21
- package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
- package/dist/vidstack-DqAw8m9J-b5BHkhrw.js +0 -22
- package/dist/vidstack-audio-CPu_TbjK.js +0 -28
- package/dist/vidstack-dash-VYriMjws.js +0 -393
- package/dist/vidstack-google-cast-Byp1cemB.js +0 -383
- package/dist/vidstack-hls-DdUQcmEx.js +0 -310
- package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
- package/dist/vidstack-video-BpSKQ3wb.js +0 -164
- package/dist/vidstack-vimeo-CgVJJm06.js +0 -452
- package/dist/vidstack-youtube-DuES80MV.js +0 -233
- package/dist/wt-action-bar-TMuck-q1.js +0 -102
- package/dist/wt-button-select-D1NP5Xw9.js +0 -105
- package/dist/wt-call-media-action-BsepfSVy.js +0 -60
- package/dist/wt-chat-emoji-B00dUXbP.js +0 -2909
- package/dist/wt-confirm-dialog-1hO851Da.js +0 -92
- package/dist/wt-context-menu-BrzRmoDw.js +0 -104
- package/dist/wt-copy-action-CEMOiYzN.js +0 -60
- package/dist/wt-datepicker-DHqZIkg2.js +0 -5660
- package/dist/wt-display-chip-items-D7kEAcOo.js +0 -47
- package/dist/wt-dual-panel-DEWR3-k-.js +0 -66
- package/dist/wt-dummy-DfgxciHw.js +0 -104
- package/dist/wt-error-page-DUSVxkXq.js +0 -89
- package/dist/wt-expansion-card-B8JKBMLa.js +0 -56
- package/dist/wt-expansion-panel-DL3eoj_b.js +0 -54
- package/dist/wt-filters-panel-wrapper-CGXQiRvh.js +0 -75
- package/dist/wt-galleria-Bahv6Mgq.js +0 -323
- package/dist/wt-inline-add-panel-B4RjHVDI.js +0 -49
- package/dist/wt-navigation-menu-DqCXAV8E.js +0 -159
- package/dist/wt-notifications-bar-CRIKdVai.js +0 -79
- package/dist/wt-page-header-DdsnoLgd.js +0 -115
- package/dist/wt-pagination-C_b3WmH1.js +0 -144
- package/dist/wt-player-B4GWEqdu.js +0 -291
- package/dist/wt-popover-Di-7_rDL.js +0 -4
- package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
- package/dist/wt-screen-recordings-action-B4OpN5kl.js +0 -54
- package/dist/wt-search-bar-B_0_YwCn.js +0 -144
- package/dist/wt-selection-popup-Boyw9_V_.js +0 -109
- package/dist/wt-send-message-popup-0C23Zocu.js +0 -579
- package/dist/wt-slider-BEkw4KGp.js +0 -4
- package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
- package/dist/wt-start-page-HQMIG05a.js +0 -99
- package/dist/wt-status-select-H_me1xwA.js +0 -138
- package/dist/wt-stepper-hJxqyiyo.js +0 -65
- package/dist/wt-table-Du6mtkPw.js +0 -426
- package/dist/wt-table-actions-ah_H6LY9.js +0 -79
- package/dist/wt-table-column-select-C2Nbic5-.js +0 -128
- package/dist/wt-tabs-D4aGEd_t.js +0 -74
- package/dist/wt-time-input-DYiW0ijt.js +0 -42
- package/dist/wt-timepicker-BE8POMhF.js +0 -118
- package/dist/wt-tree-table-BJxaXqKl.js +0 -285
- package/dist/wt-tree-u0Zp8nb5.js +0 -2777
- package/dist/wt-type-extension-value-input-C1VlNa4K.js +0 -121
- package/dist/wt-vidstack-player-C1eyCEzP.js +0 -9094
|
@@ -1,426 +0,0 @@
|
|
|
1
|
-
import { ab as k, o as v, k as r, ak as S, d as w, n as f, m as b, al as o, U as P, G as C, x as E, am as A, l as m, D as x, v as l } from "./useVidstackSrc-DKXY5f7v.js";
|
|
2
|
-
import { R as L } from "./vidstack-DqAw8m9J-b5BHkhrw.js";
|
|
3
|
-
import { g as y, L as u } from "./wt-vidstack-player-C1eyCEzP.js";
|
|
4
|
-
let h = null, d = [], c = [];
|
|
5
|
-
function p() {
|
|
6
|
-
return h ??= new AudioContext();
|
|
7
|
-
}
|
|
8
|
-
function G() {
|
|
9
|
-
const s = p(), t = s.createGain();
|
|
10
|
-
return t.connect(s.destination), d.push(t), t;
|
|
11
|
-
}
|
|
12
|
-
function $(s, t) {
|
|
13
|
-
const i = p(), e = i.createMediaElementSource(s);
|
|
14
|
-
return t && e.connect(t), c.push(e), e;
|
|
15
|
-
}
|
|
16
|
-
function N(s) {
|
|
17
|
-
const t = d.indexOf(s);
|
|
18
|
-
t !== -1 && (d.splice(t, 1), s.disconnect(), T());
|
|
19
|
-
}
|
|
20
|
-
function M(s) {
|
|
21
|
-
const t = c.indexOf(s);
|
|
22
|
-
t !== -1 && (c.splice(t, 1), s.disconnect(), T());
|
|
23
|
-
}
|
|
24
|
-
function T() {
|
|
25
|
-
h && d.length === 0 && c.length === 0 && h.close().then(() => {
|
|
26
|
-
h = null;
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
class R {
|
|
30
|
-
#s;
|
|
31
|
-
#t;
|
|
32
|
-
#e = null;
|
|
33
|
-
#a = null;
|
|
34
|
-
get currentGain() {
|
|
35
|
-
return this.#e?.gain?.value ?? null;
|
|
36
|
-
}
|
|
37
|
-
get supported() {
|
|
38
|
-
return !0;
|
|
39
|
-
}
|
|
40
|
-
constructor(t, i) {
|
|
41
|
-
this.#s = t, this.#t = i;
|
|
42
|
-
}
|
|
43
|
-
setGain(t) {
|
|
44
|
-
const i = this.currentGain;
|
|
45
|
-
if (t !== this.currentGain) {
|
|
46
|
-
if (t === 1 && i !== 1) {
|
|
47
|
-
this.removeGain();
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
this.#e || (this.#e = G(), this.#a && this.#a.connect(this.#e)), this.#a || (this.#a = $(this.#s, this.#e)), this.#e.gain.value = t, this.#t(t);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
removeGain() {
|
|
54
|
-
this.#e && (this.#a && this.#a.connect(p().destination), this.#r(), this.#t(null));
|
|
55
|
-
}
|
|
56
|
-
destroy() {
|
|
57
|
-
this.#h(), this.#r();
|
|
58
|
-
}
|
|
59
|
-
#h() {
|
|
60
|
-
if (this.#a)
|
|
61
|
-
try {
|
|
62
|
-
M(this.#a);
|
|
63
|
-
} catch {
|
|
64
|
-
} finally {
|
|
65
|
-
this.#a = null;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
#r() {
|
|
69
|
-
if (this.#e)
|
|
70
|
-
try {
|
|
71
|
-
N(this.#e);
|
|
72
|
-
} catch {
|
|
73
|
-
} finally {
|
|
74
|
-
this.#e = null;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
const D = ["focus", "blur", "visibilitychange", "pageshow", "pagehide"];
|
|
79
|
-
class O {
|
|
80
|
-
#s = l(g());
|
|
81
|
-
#t = l(document.visibilityState);
|
|
82
|
-
#e;
|
|
83
|
-
connect() {
|
|
84
|
-
const t = new f(window), i = this.#a.bind(this);
|
|
85
|
-
for (const e of D)
|
|
86
|
-
t.add(e, i);
|
|
87
|
-
o && t.add("beforeunload", (e) => {
|
|
88
|
-
this.#e = setTimeout(() => {
|
|
89
|
-
e.defaultPrevented || e.returnValue.length > 0 || (this.#s.set("hidden"), this.#t.set("hidden"));
|
|
90
|
-
}, 0);
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* The current page state. Important to note we only account for a subset of page states, as
|
|
95
|
-
* the rest aren't valuable to the player at the moment.
|
|
96
|
-
*
|
|
97
|
-
* - **active:** A page is in the active state if it is visible and has input focus.
|
|
98
|
-
* - **passive:** A page is in the passive state if it is visible and does not have input focus.
|
|
99
|
-
* - **hidden:** A page is in the hidden state if it is not visible.
|
|
100
|
-
*
|
|
101
|
-
* @see https://developers.google.com/web/updates/2018/07/page-lifecycle-api#states
|
|
102
|
-
*/
|
|
103
|
-
get pageState() {
|
|
104
|
-
return this.#s();
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* The current document visibility state.
|
|
108
|
-
*
|
|
109
|
-
* - **visible:** The page content may be at least partially visible. In practice, this means that
|
|
110
|
-
* the page is the foreground tab of a non-minimized window.
|
|
111
|
-
* - **hidden:** The page content is not visible to the user. In practice this means that the
|
|
112
|
-
* document is either a background tab or part of a minimized window, or the OS screen lock is
|
|
113
|
-
* active.
|
|
114
|
-
*
|
|
115
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState
|
|
116
|
-
*/
|
|
117
|
-
get visibility() {
|
|
118
|
-
return this.#t();
|
|
119
|
-
}
|
|
120
|
-
#a(t) {
|
|
121
|
-
o && window.clearTimeout(this.#e), (t.type !== "blur" || this.#s() === "active") && (this.#s.set(g(t)), this.#t.set(document.visibilityState == "hidden" ? "hidden" : "visible"));
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
function g(s) {
|
|
125
|
-
return s?.type === "blur" || document.visibilityState === "hidden" ? "hidden" : document.hasFocus() ? "active" : "passive";
|
|
126
|
-
}
|
|
127
|
-
class I {
|
|
128
|
-
#s;
|
|
129
|
-
#t;
|
|
130
|
-
#e = !1;
|
|
131
|
-
#a = !1;
|
|
132
|
-
#h = !1;
|
|
133
|
-
#r = new L(this.#y.bind(this));
|
|
134
|
-
#o = new O();
|
|
135
|
-
#c;
|
|
136
|
-
get #i() {
|
|
137
|
-
return this.#s.media;
|
|
138
|
-
}
|
|
139
|
-
constructor(t, i) {
|
|
140
|
-
this.#s = t, this.#t = i, this.#c = new f(t.media), this.#g(), this.#o.connect(), b(this.#M.bind(this)), v(this.#p.bind(this));
|
|
141
|
-
}
|
|
142
|
-
#p() {
|
|
143
|
-
this.#a = !1, this.#h = !1, this.#r.stop(), this.#c.abort(), this.#T?.clear();
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* The `timeupdate` event fires surprisingly infrequently during playback, meaning your progress
|
|
147
|
-
* bar (or whatever else is synced to the currentTime) moves in a choppy fashion. This helps
|
|
148
|
-
* resolve that by retrieving time updates in a request animation frame loop.
|
|
149
|
-
*/
|
|
150
|
-
#u = 0;
|
|
151
|
-
#l = -1;
|
|
152
|
-
#y() {
|
|
153
|
-
const t = this.#i.currentTime;
|
|
154
|
-
!(o && t - this.#l < 0.35) && this.#u !== t && (this.#d(t), this.#u = t);
|
|
155
|
-
}
|
|
156
|
-
#g() {
|
|
157
|
-
this.#n("loadstart", this.#k), this.#n("abort", this.#m), this.#n("emptied", this.#S), this.#n("error", this.#j), this.#n("volumechange", this.#O);
|
|
158
|
-
}
|
|
159
|
-
#v() {
|
|
160
|
-
this.#a || (this.#n("loadeddata", this.#w), this.#n("loadedmetadata", this.#P), this.#n("canplay", this.#A), this.#n("canplaythrough", this.#x), this.#n("durationchange", this.#D), this.#n("play", this.#C), this.#n("progress", this.#U), this.#n("stalled", this.#G), this.#n("suspend", this.#F), this.#n("ratechange", this.#V), this.#a = !0);
|
|
161
|
-
}
|
|
162
|
-
#b() {
|
|
163
|
-
this.#h || (this.#n("pause", this.#E), this.#n("playing", this.#L), this.#n("seeked", this.#I), this.#n("seeking", this.#H), this.#n("ended", this.#N), this.#n("waiting", this.#$), this.#h = !0);
|
|
164
|
-
}
|
|
165
|
-
#T = void 0;
|
|
166
|
-
#q = void 0;
|
|
167
|
-
#n(t, i) {
|
|
168
|
-
this.#c.add(t, i.bind(this));
|
|
169
|
-
}
|
|
170
|
-
#B(t) {
|
|
171
|
-
}
|
|
172
|
-
#d(t, i) {
|
|
173
|
-
const e = Math.min(t, this.#t.$state.seekableEnd());
|
|
174
|
-
this.#t.notify("time-change", e, i);
|
|
175
|
-
}
|
|
176
|
-
#k(t) {
|
|
177
|
-
if (this.#i.networkState === 3) {
|
|
178
|
-
this.#m(t);
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
this.#v(), this.#t.notify("load-start", void 0, t);
|
|
182
|
-
}
|
|
183
|
-
#m(t) {
|
|
184
|
-
this.#t.notify("abort", void 0, t);
|
|
185
|
-
}
|
|
186
|
-
#S() {
|
|
187
|
-
this.#t.notify("emptied", void 0, event);
|
|
188
|
-
}
|
|
189
|
-
#w(t) {
|
|
190
|
-
this.#t.notify("loaded-data", void 0, t);
|
|
191
|
-
}
|
|
192
|
-
#P(t) {
|
|
193
|
-
this.#u = 0, this.#l = -1, this.#b(), this.#t.notify("loaded-metadata", void 0, t), (P || o && C(this.#t.$state.source())) && this.#t.delegate.ready(this.#f(), t);
|
|
194
|
-
}
|
|
195
|
-
#f() {
|
|
196
|
-
return {
|
|
197
|
-
provider: E(this.#t.$provider),
|
|
198
|
-
duration: this.#i.duration,
|
|
199
|
-
buffered: this.#i.buffered,
|
|
200
|
-
seekable: this.#i.seekable
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
#C(t) {
|
|
204
|
-
this.#t.$state.canPlay && this.#t.notify("play", void 0, t);
|
|
205
|
-
}
|
|
206
|
-
#E(t) {
|
|
207
|
-
this.#i.readyState === 1 && !this.#e || (this.#e = !1, this.#r.stop(), this.#t.notify("pause", void 0, t));
|
|
208
|
-
}
|
|
209
|
-
#A(t) {
|
|
210
|
-
this.#t.delegate.ready(this.#f(), t);
|
|
211
|
-
}
|
|
212
|
-
#x(t) {
|
|
213
|
-
this.#t.$state.started() || this.#t.notify("can-play-through", this.#f(), t);
|
|
214
|
-
}
|
|
215
|
-
#L(t) {
|
|
216
|
-
this.#i.paused || (this.#e = !1, this.#t.notify("playing", void 0, t), this.#r.start());
|
|
217
|
-
}
|
|
218
|
-
#G(t) {
|
|
219
|
-
this.#t.notify("stalled", void 0, t), this.#i.readyState < 3 && (this.#e = !0, this.#t.notify("waiting", void 0, t));
|
|
220
|
-
}
|
|
221
|
-
#$(t) {
|
|
222
|
-
this.#i.readyState < 3 && (this.#e = !0, this.#t.notify("waiting", void 0, t));
|
|
223
|
-
}
|
|
224
|
-
#N(t) {
|
|
225
|
-
this.#r.stop(), this.#d(this.#i.duration, t), this.#t.notify("end", void 0, t), this.#t.$state.loop() && A(this.#i.controls) && (this.#i.controls = !1);
|
|
226
|
-
}
|
|
227
|
-
#M() {
|
|
228
|
-
const t = this.#t.$state.paused(), i = this.#o.visibility === "hidden";
|
|
229
|
-
(t || i) && m(this.#i, "timeupdate", this.#R.bind(this));
|
|
230
|
-
}
|
|
231
|
-
#R(t) {
|
|
232
|
-
this.#d(this.#i.currentTime, t);
|
|
233
|
-
}
|
|
234
|
-
#D(t) {
|
|
235
|
-
this.#t.$state.ended() && this.#d(this.#i.duration, t), this.#t.notify("duration-change", this.#i.duration, t);
|
|
236
|
-
}
|
|
237
|
-
#O(t) {
|
|
238
|
-
const i = {
|
|
239
|
-
volume: this.#i.volume,
|
|
240
|
-
muted: this.#i.muted
|
|
241
|
-
};
|
|
242
|
-
this.#t.notify("volume-change", i, t);
|
|
243
|
-
}
|
|
244
|
-
#I(t) {
|
|
245
|
-
this.#l = this.#i.currentTime, this.#d(this.#i.currentTime, t), this.#t.notify("seeked", this.#i.currentTime, t), Math.trunc(this.#i.currentTime) === Math.trunc(this.#i.duration) && y(this.#i.duration) > y(this.#i.currentTime) && (this.#d(this.#i.duration, t), this.#i.ended || this.#t.player.dispatch(
|
|
246
|
-
new x("media-play-request", {
|
|
247
|
-
trigger: t
|
|
248
|
-
})
|
|
249
|
-
));
|
|
250
|
-
}
|
|
251
|
-
#H(t) {
|
|
252
|
-
this.#t.notify("seeking", this.#i.currentTime, t);
|
|
253
|
-
}
|
|
254
|
-
#U(t) {
|
|
255
|
-
const i = {
|
|
256
|
-
buffered: this.#i.buffered,
|
|
257
|
-
seekable: this.#i.seekable
|
|
258
|
-
};
|
|
259
|
-
this.#t.notify("progress", i, t);
|
|
260
|
-
}
|
|
261
|
-
#F(t) {
|
|
262
|
-
this.#t.notify("suspend", void 0, t);
|
|
263
|
-
}
|
|
264
|
-
#V(t) {
|
|
265
|
-
this.#t.notify("rate-change", this.#i.playbackRate, t);
|
|
266
|
-
}
|
|
267
|
-
#j(t) {
|
|
268
|
-
const i = this.#i.error;
|
|
269
|
-
if (!i) return;
|
|
270
|
-
const e = {
|
|
271
|
-
message: i.message,
|
|
272
|
-
code: i.code,
|
|
273
|
-
mediaError: i
|
|
274
|
-
};
|
|
275
|
-
this.#t.notify("error", e, t);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
class H {
|
|
279
|
-
#s;
|
|
280
|
-
#t;
|
|
281
|
-
get #e() {
|
|
282
|
-
return this.#s.media.audioTracks;
|
|
283
|
-
}
|
|
284
|
-
constructor(t, i) {
|
|
285
|
-
this.#s = t, this.#t = i, this.#e.onaddtrack = this.#a.bind(this), this.#e.onremovetrack = this.#h.bind(this), this.#e.onchange = this.#r.bind(this), m(this.#t.audioTracks, "change", this.#c.bind(this));
|
|
286
|
-
}
|
|
287
|
-
#a(t) {
|
|
288
|
-
const i = t.track;
|
|
289
|
-
if (i.label === "") return;
|
|
290
|
-
const e = i.id.toString() || `native-audio-${this.#t.audioTracks.length}`, a = {
|
|
291
|
-
id: e,
|
|
292
|
-
label: i.label,
|
|
293
|
-
language: i.language,
|
|
294
|
-
kind: i.kind,
|
|
295
|
-
selected: !1
|
|
296
|
-
};
|
|
297
|
-
this.#t.audioTracks[u.add](a, t), i.enabled && (a.selected = !0);
|
|
298
|
-
}
|
|
299
|
-
#h(t) {
|
|
300
|
-
const i = this.#t.audioTracks.getById(t.track.id);
|
|
301
|
-
i && this.#t.audioTracks[u.remove](i, t);
|
|
302
|
-
}
|
|
303
|
-
#r(t) {
|
|
304
|
-
let i = this.#o();
|
|
305
|
-
if (!i) return;
|
|
306
|
-
const e = this.#t.audioTracks.getById(i.id);
|
|
307
|
-
e && this.#t.audioTracks[u.select](e, !0, t);
|
|
308
|
-
}
|
|
309
|
-
#o() {
|
|
310
|
-
return Array.from(this.#e).find((t) => t.enabled);
|
|
311
|
-
}
|
|
312
|
-
#c(t) {
|
|
313
|
-
const { current: i } = t.detail;
|
|
314
|
-
if (!i) return;
|
|
315
|
-
const e = this.#e.getTrackById(i.id);
|
|
316
|
-
if (e) {
|
|
317
|
-
const a = this.#o();
|
|
318
|
-
a && (a.enabled = !1), e.enabled = !0;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
class q {
|
|
323
|
-
constructor(t, i) {
|
|
324
|
-
this.media = t, this.ctx = i, this.audioGain = new R(t, (e) => {
|
|
325
|
-
this.ctx.notify("audio-gain-change", e);
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
scope = k();
|
|
329
|
-
currentSrc = null;
|
|
330
|
-
audioGain;
|
|
331
|
-
setup() {
|
|
332
|
-
new I(this, this.ctx), "audioTracks" in this.media && new H(this, this.ctx), v(() => {
|
|
333
|
-
this.audioGain.destroy(), this.media.srcObject = null, this.media.removeAttribute("src");
|
|
334
|
-
for (const t of this.media.querySelectorAll("source")) t.remove();
|
|
335
|
-
this.media.load();
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
get type() {
|
|
339
|
-
return "";
|
|
340
|
-
}
|
|
341
|
-
setPlaybackRate(t) {
|
|
342
|
-
this.media.playbackRate = t;
|
|
343
|
-
}
|
|
344
|
-
async play() {
|
|
345
|
-
return this.media.play();
|
|
346
|
-
}
|
|
347
|
-
async pause() {
|
|
348
|
-
return this.media.pause();
|
|
349
|
-
}
|
|
350
|
-
setMuted(t) {
|
|
351
|
-
this.media.muted = t;
|
|
352
|
-
}
|
|
353
|
-
setVolume(t) {
|
|
354
|
-
this.media.volume = t;
|
|
355
|
-
}
|
|
356
|
-
setCurrentTime(t) {
|
|
357
|
-
this.media.currentTime = t;
|
|
358
|
-
}
|
|
359
|
-
setPlaysInline(t) {
|
|
360
|
-
r(this.media, "playsinline", t);
|
|
361
|
-
}
|
|
362
|
-
async loadSource({ src: t, type: i }, e) {
|
|
363
|
-
this.media.preload = e || "", S(t) ? (this.removeSource(), this.media.srcObject = t) : (this.media.srcObject = null, w(t) ? i !== "?" ? this.appendSource({ src: t, type: i }) : (this.removeSource(), this.media.src = this.#s(t)) : (this.removeSource(), this.media.src = window.URL.createObjectURL(t))), this.media.load(), this.currentSrc = { src: t, type: i };
|
|
364
|
-
}
|
|
365
|
-
/**
|
|
366
|
-
* Append source so it works when requesting AirPlay since hls.js will remove it.
|
|
367
|
-
*/
|
|
368
|
-
appendSource(t, i) {
|
|
369
|
-
const e = this.media.querySelector("source[data-vds]"), a = e ?? document.createElement("source");
|
|
370
|
-
r(a, "src", this.#s(t.src)), r(a, "type", t.type !== "?" ? t.type : i), r(a, "data-vds", ""), e || this.media.append(a);
|
|
371
|
-
}
|
|
372
|
-
removeSource() {
|
|
373
|
-
this.media.querySelector("source[data-vds]")?.remove();
|
|
374
|
-
}
|
|
375
|
-
#s(t) {
|
|
376
|
-
const { clipStartTime: i, clipEndTime: e } = this.ctx.$state, a = i(), n = e();
|
|
377
|
-
return a > 0 && n > 0 ? `${t}#t=${a},${n}` : a > 0 ? `${t}#t=${a}` : n > 0 ? `${t}#t=0,${n}` : t;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
class U {
|
|
381
|
-
#s;
|
|
382
|
-
#t;
|
|
383
|
-
#e;
|
|
384
|
-
#a = l(!1);
|
|
385
|
-
get supported() {
|
|
386
|
-
return this.#a();
|
|
387
|
-
}
|
|
388
|
-
constructor(t, i) {
|
|
389
|
-
this.#s = t, this.#t = i, this.#h();
|
|
390
|
-
}
|
|
391
|
-
#h() {
|
|
392
|
-
!this.#s?.remote || !this.canPrompt || (this.#s.remote.watchAvailability((t) => {
|
|
393
|
-
this.#a.set(t);
|
|
394
|
-
}).catch(() => {
|
|
395
|
-
this.#a.set(!1);
|
|
396
|
-
}), b(this.#r.bind(this)));
|
|
397
|
-
}
|
|
398
|
-
#r() {
|
|
399
|
-
if (!this.#a()) return;
|
|
400
|
-
const t = ["connecting", "connect", "disconnect"], i = this.#o.bind(this);
|
|
401
|
-
i(), m(this.#s, "playing", i);
|
|
402
|
-
const e = new f(this.#s.remote);
|
|
403
|
-
for (const a of t)
|
|
404
|
-
e.add(a, i);
|
|
405
|
-
}
|
|
406
|
-
async prompt() {
|
|
407
|
-
if (!this.supported) throw Error("Not supported on this platform.");
|
|
408
|
-
return this.type === "airplay" && this.#s.webkitShowPlaybackTargetPicker ? this.#s.webkitShowPlaybackTargetPicker() : this.#s.remote.prompt();
|
|
409
|
-
}
|
|
410
|
-
#o(t) {
|
|
411
|
-
const i = this.#s.remote.state;
|
|
412
|
-
if (i === this.#e) return;
|
|
413
|
-
const e = { type: this.type, state: i };
|
|
414
|
-
this.#t.notify("remote-playback-change", e, t), this.#e = i;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
class B extends U {
|
|
418
|
-
type = "airplay";
|
|
419
|
-
get canPrompt() {
|
|
420
|
-
return "WebKitPlaybackTargetAvailabilityEvent" in window;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
export {
|
|
424
|
-
q as H,
|
|
425
|
-
B as a
|
|
426
|
-
};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { l as d, R as g, W as p, U as u, x as m } from "./useVidstackSrc-DKXY5f7v.js";
|
|
2
|
-
import { l as C } from "./wt-vidstack-player-C1eyCEzP.js";
|
|
3
|
-
function h() {
|
|
4
|
-
return "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";
|
|
5
|
-
}
|
|
6
|
-
function f() {
|
|
7
|
-
return !!window.cast?.framework;
|
|
8
|
-
}
|
|
9
|
-
function w() {
|
|
10
|
-
return !!window.chrome?.cast?.isAvailable;
|
|
11
|
-
}
|
|
12
|
-
function c() {
|
|
13
|
-
return s().getCastState() === cast.framework.CastState.CONNECTED;
|
|
14
|
-
}
|
|
15
|
-
function s() {
|
|
16
|
-
return window.cast.framework.CastContext.getInstance();
|
|
17
|
-
}
|
|
18
|
-
function l() {
|
|
19
|
-
return s().getCurrentSession();
|
|
20
|
-
}
|
|
21
|
-
function y() {
|
|
22
|
-
return l()?.getSessionObj().media[0];
|
|
23
|
-
}
|
|
24
|
-
function _(r) {
|
|
25
|
-
return y()?.media.contentId === r?.src;
|
|
26
|
-
}
|
|
27
|
-
function v() {
|
|
28
|
-
return {
|
|
29
|
-
language: "en-US",
|
|
30
|
-
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,
|
|
31
|
-
receiverApplicationId: chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,
|
|
32
|
-
resumeSavedSession: !0,
|
|
33
|
-
androidReceiverCompatible: !0
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function E(r) {
|
|
37
|
-
return `Google Cast Error Code: ${r}`;
|
|
38
|
-
}
|
|
39
|
-
function P(r, e) {
|
|
40
|
-
return d(s(), r, e);
|
|
41
|
-
}
|
|
42
|
-
class S {
|
|
43
|
-
name = "google-cast";
|
|
44
|
-
target;
|
|
45
|
-
#e;
|
|
46
|
-
/**
|
|
47
|
-
* @see {@link https://developers.google.com/cast/docs/reference/web_sender/cast.framework.CastContext}
|
|
48
|
-
*/
|
|
49
|
-
get cast() {
|
|
50
|
-
return s();
|
|
51
|
-
}
|
|
52
|
-
mediaType() {
|
|
53
|
-
return "video";
|
|
54
|
-
}
|
|
55
|
-
canPlay(e) {
|
|
56
|
-
return g && !u && p(e);
|
|
57
|
-
}
|
|
58
|
-
async prompt(e) {
|
|
59
|
-
let t, a, o;
|
|
60
|
-
try {
|
|
61
|
-
t = await this.#r(e), this.#e || (this.#e = new cast.framework.RemotePlayer(), new cast.framework.RemotePlayerController(this.#e)), a = e.player.createEvent("google-cast-prompt-open", {
|
|
62
|
-
trigger: t
|
|
63
|
-
}), e.player.dispatchEvent(a), this.#t(e, "connecting", a), await this.#o(m(e.$props.googleCast)), e.$state.remotePlaybackInfo.set({
|
|
64
|
-
deviceName: l()?.getCastDevice().friendlyName
|
|
65
|
-
}), c() && this.#t(e, "connected", a);
|
|
66
|
-
} catch (n) {
|
|
67
|
-
const i = n instanceof Error ? n : this.#a(
|
|
68
|
-
(n + "").toUpperCase(),
|
|
69
|
-
"Prompt failed."
|
|
70
|
-
);
|
|
71
|
-
throw o = e.player.createEvent("google-cast-prompt-error", {
|
|
72
|
-
detail: i,
|
|
73
|
-
trigger: a ?? t,
|
|
74
|
-
cancelable: !0
|
|
75
|
-
}), e.player.dispatch(o), this.#t(
|
|
76
|
-
e,
|
|
77
|
-
c() ? "connected" : "disconnected",
|
|
78
|
-
o
|
|
79
|
-
), i;
|
|
80
|
-
} finally {
|
|
81
|
-
e.player.dispatch("google-cast-prompt-close", {
|
|
82
|
-
trigger: o ?? a ?? t
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
async load(e) {
|
|
87
|
-
if (!this.#e)
|
|
88
|
-
throw Error("[vidstack] google cast player was not initialized");
|
|
89
|
-
return new (await import("./vidstack-google-cast-Byp1cemB.js")).GoogleCastProvider(this.#e, e);
|
|
90
|
-
}
|
|
91
|
-
async #r(e) {
|
|
92
|
-
if (f()) return;
|
|
93
|
-
const t = e.player.createEvent("google-cast-load-start");
|
|
94
|
-
e.player.dispatch(t), await C(h()), await customElements.whenDefined("google-cast-launcher");
|
|
95
|
-
const a = e.player.createEvent("google-cast-loaded", { trigger: t });
|
|
96
|
-
if (e.player.dispatch(a), !w())
|
|
97
|
-
throw this.#a("CAST_NOT_AVAILABLE", "Google Cast not available on this platform.");
|
|
98
|
-
return a;
|
|
99
|
-
}
|
|
100
|
-
async #o(e) {
|
|
101
|
-
this.#s(e);
|
|
102
|
-
const t = await this.cast.requestSession();
|
|
103
|
-
if (t)
|
|
104
|
-
throw this.#a(
|
|
105
|
-
t.toUpperCase(),
|
|
106
|
-
E(t)
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
#s(e) {
|
|
110
|
-
this.cast?.setOptions({
|
|
111
|
-
...v(),
|
|
112
|
-
...e
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
#t(e, t, a) {
|
|
116
|
-
const o = { type: "google-cast", state: t };
|
|
117
|
-
e.notify("remote-playback-change", o, a);
|
|
118
|
-
}
|
|
119
|
-
#a(e, t) {
|
|
120
|
-
const a = Error(t);
|
|
121
|
-
return a.code = e, a;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
const b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
125
|
-
__proto__: null,
|
|
126
|
-
GoogleCastLoader: S
|
|
127
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
128
|
-
export {
|
|
129
|
-
l as a,
|
|
130
|
-
y as b,
|
|
131
|
-
E as c,
|
|
132
|
-
s as g,
|
|
133
|
-
_ as h,
|
|
134
|
-
P as l,
|
|
135
|
-
b as v
|
|
136
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { v as e, l as i, m as a, x as o, d as n } from "./useVidstackSrc-DKXY5f7v.js";
|
|
2
|
-
import { f as c } from "./wt-vidstack-player-C1eyCEzP.js";
|
|
3
|
-
class g {
|
|
4
|
-
#t;
|
|
5
|
-
src = e("");
|
|
6
|
-
/**
|
|
7
|
-
* Defines which referrer is sent when fetching the resource.
|
|
8
|
-
*
|
|
9
|
-
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy}
|
|
10
|
-
*/
|
|
11
|
-
referrerPolicy = null;
|
|
12
|
-
get iframe() {
|
|
13
|
-
return this.#t;
|
|
14
|
-
}
|
|
15
|
-
constructor(t) {
|
|
16
|
-
this.#t = t, t.setAttribute("frameBorder", "0"), t.setAttribute("aria-hidden", "true"), t.setAttribute(
|
|
17
|
-
"allow",
|
|
18
|
-
"autoplay; fullscreen; encrypted-media; picture-in-picture; accelerometer; gyroscope"
|
|
19
|
-
), this.referrerPolicy !== null && t.setAttribute("referrerpolicy", this.referrerPolicy);
|
|
20
|
-
}
|
|
21
|
-
setup() {
|
|
22
|
-
i(window, "message", this.#r.bind(this)), i(this.#t, "load", this.onLoad.bind(this)), a(this.#s.bind(this));
|
|
23
|
-
}
|
|
24
|
-
#s() {
|
|
25
|
-
const t = this.src();
|
|
26
|
-
if (!t.length) {
|
|
27
|
-
this.#t.setAttribute("src", "");
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const s = o(() => this.buildParams());
|
|
31
|
-
this.#t.setAttribute("src", c(t, s));
|
|
32
|
-
}
|
|
33
|
-
postMessage(t, s) {
|
|
34
|
-
this.#t.contentWindow?.postMessage(JSON.stringify(t), s ?? "*");
|
|
35
|
-
}
|
|
36
|
-
#r(t) {
|
|
37
|
-
const s = this.getOrigin();
|
|
38
|
-
if ((t.source === null || t.source === this.#t?.contentWindow) && (!n(s) || s === t.origin)) {
|
|
39
|
-
try {
|
|
40
|
-
const r = JSON.parse(t.data);
|
|
41
|
-
r && this.onMessage(r, t);
|
|
42
|
-
return;
|
|
43
|
-
} catch {
|
|
44
|
-
}
|
|
45
|
-
t.data && this.onMessage(t.data, t);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
g as E
|
|
51
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { aj as i, m } from "./useVidstackSrc-DKXY5f7v.js";
|
|
2
|
-
import { c as d, a as l } from "./wt-vidstack-player-C1eyCEzP.js";
|
|
3
|
-
const p = /* @__PURE__ */ l(
|
|
4
|
-
'<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>'
|
|
5
|
-
);
|
|
6
|
-
function f(n, s) {
|
|
7
|
-
const o = d(p);
|
|
8
|
-
o.innerHTML = i, n.append(o);
|
|
9
|
-
const e = document.createElement("span");
|
|
10
|
-
e.classList.add("vds-google-cast-info"), n.append(e);
|
|
11
|
-
const t = document.createElement("span");
|
|
12
|
-
t.classList.add("vds-google-cast-device-name"), m(() => {
|
|
13
|
-
const { remotePlaybackInfo: c } = s, a = c();
|
|
14
|
-
return a?.deviceName && (t.textContent = a.deviceName, e.append("Google Cast on ", t)), () => {
|
|
15
|
-
e.textContent = "";
|
|
16
|
-
};
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
f as insertContent
|
|
21
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const i = /(?:youtu\.be|youtube|youtube\.com|youtube-nocookie\.com)(?:\/shorts)?\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|)((?:\w|-){11})/, u = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
2
|
-
function l(e) {
|
|
3
|
-
return e.match(i)?.[1];
|
|
4
|
-
}
|
|
5
|
-
async function b(e, n) {
|
|
6
|
-
if (u.has(e)) return u.get(e);
|
|
7
|
-
if (s.has(e)) return s.get(e);
|
|
8
|
-
const t = new Promise(async (r) => {
|
|
9
|
-
const c = ["maxresdefault", "sddefault", "hqdefault"];
|
|
10
|
-
for (const a of c)
|
|
11
|
-
for (const f of [!0, !1]) {
|
|
12
|
-
const o = p(e, a, f);
|
|
13
|
-
if ((await fetch(o, {
|
|
14
|
-
mode: "no-cors",
|
|
15
|
-
signal: n.signal
|
|
16
|
-
})).status < 400) {
|
|
17
|
-
u.set(e, o), r(o);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}).catch(() => "").finally(() => s.delete(e));
|
|
22
|
-
return s.set(e, t), t;
|
|
23
|
-
}
|
|
24
|
-
function p(e, n, t) {
|
|
25
|
-
return `https://i.ytimg.com/${t ? "vi_webp" : "vi"}/${e}/${n}.${t ? "webp" : "jpg"}`;
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
b as findYouTubePoster,
|
|
29
|
-
l as resolveYouTubeVideoId
|
|
30
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { b as i, h as s } from "./useVidstackSrc-DKXY5f7v.js";
|
|
2
|
-
class a {
|
|
3
|
-
#i;
|
|
4
|
-
#t;
|
|
5
|
-
constructor(t) {
|
|
6
|
-
this.#t = t;
|
|
7
|
-
}
|
|
8
|
-
start() {
|
|
9
|
-
i(this.#i) && this.#s();
|
|
10
|
-
}
|
|
11
|
-
stop() {
|
|
12
|
-
s(this.#i) && window.cancelAnimationFrame(this.#i), this.#i = void 0;
|
|
13
|
-
}
|
|
14
|
-
#s() {
|
|
15
|
-
this.#i = window.requestAnimationFrame(() => {
|
|
16
|
-
i(this.#i) || (this.#t(), this.#s());
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
a as R
|
|
22
|
-
};
|