@viewlift/player-backup 1.0.143-backup → 1.0.144-backup
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/cjs/autoNextVideo-e5a447fa.js +1 -0
- package/cjs/browser-77c57718.js +1 -0
- package/cjs/bundle.css +269 -103
- package/cjs/caption-settings-a355bdc9.js +1 -0
- package/cjs/captions-37b81672.js +1 -0
- package/cjs/features-44de3972.js +1 -0
- package/cjs/generic-39f8edfb.js +1 -0
- package/cjs/icons-0ea2e662.js +1 -0
- package/cjs/index-5948153c.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/multicamv2-065b74e3.js +1 -0
- package/cjs/{multicamv2-76d8530b.js → multicamv2-7a86b517.js} +1 -1
- package/cjs/multicamv2-cd36f826.js +1 -0
- package/cjs/multicamv2-e7a024e5.js +1 -0
- package/cjs/nextEpisodeButton-1d9211a2.js +1 -0
- package/cjs/playlist-984f40e2.js +1 -0
- package/cjs/renditions-fd408798.js +1 -0
- package/cjs/resolution-c59e995e.js +1 -0
- package/cjs/series-5a85b46d.js +1 -0
- package/cjs/series-v2-1a860a88.js +1 -0
- package/cjs/series-v2-232bef33.js +1 -0
- package/cjs/series-v2-baaacd4a.js +1 -0
- package/cjs/series-v2-e037e14e.js +1 -0
- package/cjs/settings-icon-bef54795.js +1 -0
- package/cjs/skin-2498b556.js +1 -0
- package/cjs/skin-41316779.js +1 -0
- package/cjs/skin-4209bc32.js +1 -0
- package/cjs/skin-58d2b848.js +1 -0
- package/cjs/skin-6f6cfba1.js +1 -0
- package/cjs/skin-76f51a09.js +1 -0
- package/cjs/skin-911819e6.js +1 -0
- package/cjs/skin-aef573bd.js +1 -0
- package/cjs/skin-ba38afdb.js +1 -0
- package/cjs/util-197a4f7c.js +1 -0
- package/cjs/videoSelector-3a80c852.js +1 -0
- package/cjs/videoSelector-45b638bf.js +1 -0
- package/cjs/videoSelector-6f1d15b2.js +1 -0
- package/esm/autoNextVideo-b462e12c.js +1 -0
- package/esm/browser-d4613b36.js +1 -0
- package/esm/bundle.css +269 -103
- package/esm/caption-settings-ddfbca32.js +1 -0
- package/esm/captions-6cc39cdc.js +1 -0
- package/esm/features-2ecb0a40.js +1 -0
- package/esm/generic-7f222b1f.js +1 -0
- package/esm/{icons-3e9a1686.js → icons-79ad4d7d.js} +1 -1
- package/esm/index-2822e02d.js +1 -0
- package/esm/index.js +1 -1
- package/esm/multicamv2-1e614d9b.js +1 -0
- package/esm/{multicamv2-d006cffa.js → multicamv2-1fb5149a.js} +1 -1
- package/esm/multicamv2-6f75cbd5.js +1 -0
- package/esm/multicamv2-92ab3e07.js +1 -0
- package/esm/nextEpisodeButton-d0bd769d.js +1 -0
- package/esm/playlist-8ddb2ba1.js +1 -0
- package/esm/renditions-c0f96578.js +1 -0
- package/esm/resolution-00449d8d.js +1 -0
- package/esm/series-97ad60dd.js +1 -0
- package/esm/series-v2-1cbb5dc9.js +1 -0
- package/esm/series-v2-87343239.js +1 -0
- package/esm/series-v2-c9e4a646.js +1 -0
- package/esm/series-v2-f4ad8c85.js +1 -0
- package/esm/settings-icon-23053add.js +1 -0
- package/esm/skin-2882ecc4.js +1 -0
- package/esm/skin-54fd9894.js +1 -0
- package/esm/skin-71be210e.js +1 -0
- package/esm/skin-7f4c0efb.js +1 -0
- package/esm/skin-8782db02.js +1 -0
- package/esm/skin-8928f65a.js +1 -0
- package/esm/skin-9f9b9216.js +1 -0
- package/esm/skin-c07bfa05.js +1 -0
- package/esm/skin-e2b55d7d.js +1 -0
- package/esm/util-6f289757.js +1 -0
- package/esm/videoSelector-182baa0d.js +1 -0
- package/esm/videoSelector-538a2e27.js +1 -0
- package/esm/videoSelector-56927a02.js +1 -0
- package/package.json +7 -7
- package/cjs/autoNextVideo-31f6fc5c.js +0 -1
- package/cjs/caption-settings-903072e9.js +0 -1
- package/cjs/dvr_skin-f7f770ae.js +0 -1
- package/cjs/features-3aeac1e6.js +0 -1
- package/cjs/generic-29557f14.js +0 -1
- package/cjs/icons-515b2da0.js +0 -1
- package/cjs/keyboardShortcuts-ac2bfc24.js +0 -1
- package/cjs/loader-393b838a.js +0 -1
- package/cjs/multicam-5218fef6.js +0 -1
- package/cjs/multicam-a41fe4a6.js +0 -1
- package/cjs/multicamv2-e9850465.js +0 -1
- package/cjs/mwebPotrait-3c11d7cf.js +0 -1
- package/cjs/mwebPotraitTray-a31b199f.js +0 -1
- package/cjs/nextEpisodeButton-8f9d591f.js +0 -1
- package/cjs/nondvr_skin-ef2cb3b2.js +0 -1
- package/cjs/playlist-90a943c3.js +0 -1
- package/cjs/renditions-2a68e55f.js +0 -1
- package/cjs/resolution-2507ae3f.js +0 -1
- package/cjs/series-7c676fab.js +0 -1
- package/cjs/series-v2-a794f025.js +0 -1
- package/cjs/series-v2-fd7485a5.js +0 -1
- package/cjs/settings-icon-fd361a36.js +0 -1
- package/cjs/skin-1f5a5ba7.js +0 -1
- package/cjs/skin-261515e4.js +0 -1
- package/cjs/skin-2a6e5efd.js +0 -1
- package/cjs/skin-59e1e9f8.js +0 -1
- package/cjs/skin-97230e22.js +0 -1
- package/cjs/skin-983a2ea7.js +0 -1
- package/cjs/skin-b41ed404.js +0 -1
- package/cjs/skin-c66e9b42.js +0 -1
- package/cjs/util-edad3d26.js +0 -1
- package/cjs/videoSelector-144e411f.js +0 -1
- package/esm/autoNextVideo-ae83ac79.js +0 -1
- package/esm/caption-settings-286e1acf.js +0 -1
- package/esm/dvr_skin-9cc1b144.js +0 -1
- package/esm/features-27b875c1.js +0 -1
- package/esm/generic-3a4a5eee.js +0 -1
- package/esm/keyboardShortcuts-48e91712.js +0 -1
- package/esm/loader-580278fe.js +0 -1
- package/esm/multicam-9b52f856.js +0 -1
- package/esm/multicam-de741974.js +0 -1
- package/esm/multicamv2-5eebf15d.js +0 -1
- package/esm/mwebPotrait-3c1805d8.js +0 -1
- package/esm/mwebPotraitTray-918b9c46.js +0 -1
- package/esm/nextEpisodeButton-4fda97dc.js +0 -1
- package/esm/nondvr_skin-64be70e5.js +0 -1
- package/esm/playlist-100a8a60.js +0 -1
- package/esm/renditions-e6a8fbb9.js +0 -1
- package/esm/resolution-5444c761.js +0 -1
- package/esm/series-5bdad7f3.js +0 -1
- package/esm/series-v2-3848a876.js +0 -1
- package/esm/series-v2-4cdbf9b1.js +0 -1
- package/esm/settings-icon-a9dfd1d7.js +0 -1
- package/esm/skin-1b9cdb94.js +0 -1
- package/esm/skin-60001dc5.js +0 -1
- package/esm/skin-96d2bdc5.js +0 -1
- package/esm/skin-c81400ed.js +0 -1
- package/esm/skin-cd537931.js +0 -1
- package/esm/skin-d2d14455.js +0 -1
- package/esm/skin-edc9cefb.js +0 -1
- package/esm/skin-fbc45594.js +0 -1
- package/esm/util-89ccc154.js +0 -1
- package/esm/videoSelector-feca34d2.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(){var e,n;return navigator.userAgent.indexOf("Edg")>-1&&"macOS"!=(null===(e=window.navigator)||void 0===e||null===(n=e.userAgentData)||void 0===n?void 0:n.platform)?"IE":-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":"Unknown"},n=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)};export{e as d,n as i};
|
package/esm/bundle.css
CHANGED
|
@@ -4,138 +4,255 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
.video-js.skin_vlone .vjs-control-bar .vjs-progress-control.vjs-control {
|
|
8
|
+
height: 0.7em;
|
|
9
|
+
position: absolute;
|
|
10
|
+
top: -0.7em;
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
7
13
|
|
|
14
|
+
.video-js.skin_vlone .vjs-progress-holder.vjs-slider.vjs-slider-horizontal {
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
8
17
|
|
|
18
|
+
.video-js.skin_vlone .vjs-play-progress:before {
|
|
19
|
+
display: none !important;
|
|
20
|
+
}
|
|
9
21
|
|
|
22
|
+
.video-js.skin_vlone .vjs-progress-control>.vjs-progress-holder.vjs-slider {
|
|
23
|
+
margin: 0 !important;
|
|
10
24
|
|
|
25
|
+
}
|
|
11
26
|
|
|
12
27
|
|
|
28
|
+
.video-js.skin_vlone .vjs-custom-control-spacer {
|
|
29
|
+
display: block;
|
|
30
|
+
flex: 1 1 auto;
|
|
31
|
+
}
|
|
13
32
|
|
|
14
33
|
|
|
34
|
+
.video-js.skin_vlone .vjs-control-bar {
|
|
35
|
+
height: 40px;
|
|
36
|
+
}
|
|
15
37
|
|
|
38
|
+
.video-js.skin_vlone .vjs-big-play-button .vjs-icon-placeholder:before,
|
|
39
|
+
.vjs-button>.vjs-icon-placeholder:before {
|
|
40
|
+
position: relative !important;
|
|
41
|
+
}
|
|
42
|
+
.video-js.skin_vlone .vjs-big-play-button .vjs-icon-placeholder:before{
|
|
43
|
+
display: flex;
|
|
44
|
+
}
|
|
16
45
|
|
|
46
|
+
.vjs-button>.vjs-icon-placeholder:before {
|
|
47
|
+
font-size: 2em !important;
|
|
48
|
+
}
|
|
17
49
|
|
|
18
|
-
|
|
19
|
-
.
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
50
|
+
.video-js.skin_vlone .vjs-control {
|
|
51
|
+
width: 4.3em;
|
|
23
52
|
}
|
|
24
53
|
|
|
25
|
-
.
|
|
26
|
-
|
|
54
|
+
.vjs-menu-button-popup .vjs-menu {
|
|
55
|
+
bottom: 10px !important;
|
|
27
56
|
}
|
|
28
57
|
|
|
29
|
-
.widget-container{
|
|
30
|
-
position: absolute;
|
|
31
|
-
/* height: 528px; */
|
|
32
|
-
width: 350px;
|
|
33
|
-
right: -350px;
|
|
34
|
-
bottom: 0px;
|
|
35
|
-
/* background: #626262; */
|
|
36
58
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
59
|
+
.video-js.skin_vlone .vjs-control-bar .vjs-progress-control.vjs-control:hover {
|
|
60
|
+
height: 1.3em;
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: -1.3em;
|
|
63
|
+
transition: height 0.3s, top 0.3s;
|
|
41
64
|
}
|
|
42
65
|
|
|
43
|
-
|
|
44
|
-
|
|
66
|
+
|
|
67
|
+
.video-js.skin_vlone.vjs-live .vjs-time-control{
|
|
68
|
+
display: none !important;
|
|
45
69
|
}
|
|
46
70
|
|
|
47
|
-
.
|
|
48
|
-
|
|
71
|
+
.video-js.skin_vlone .vjs-time-control {
|
|
72
|
+
display: block;
|
|
73
|
+
}
|
|
74
|
+
.video-js.skin_vlone .vjs-remaining-time {
|
|
75
|
+
display: none;
|
|
49
76
|
}
|
|
50
77
|
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
padding-left: 20px;
|
|
56
|
-
margin-bottom: 25px;
|
|
78
|
+
.video-js.skin_vlone .vjs-remaining-time.vjs-time-control.vjs-control>span.vjs-remaining-time-display {
|
|
79
|
+
line-height: 3.5em;
|
|
80
|
+
font-size: 1.1em;
|
|
81
|
+
min-width: 4em;
|
|
57
82
|
}
|
|
58
|
-
|
|
83
|
+
|
|
84
|
+
.video-js.skin_vlone .vjs-time-divider > div{
|
|
59
85
|
display: flex;
|
|
60
|
-
|
|
61
|
-
border-bottom: 2px solid #838996;
|
|
62
|
-
margin-left: 25px;
|
|
63
|
-
width: 80%;
|
|
64
|
-
margin-top: -1px;
|
|
86
|
+
justify-content: center;
|
|
65
87
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
88
|
+
|
|
89
|
+
.video-js.skin_vlone .vjs-live-control{
|
|
90
|
+
align-items: center;
|
|
69
91
|
}
|
|
70
|
-
.
|
|
71
|
-
|
|
92
|
+
.video-js.skin_vlone .vjs-live-display{
|
|
93
|
+
height: 2.2em;
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
font-family: monospace;
|
|
97
|
+
width: 4em;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
background: red;
|
|
100
|
+
margin: 4px 0px 4px 12px;
|
|
72
101
|
}
|
|
73
102
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
103
|
+
.video-js.skin_vlone .vjs-time-control {
|
|
104
|
+
line-height: 3.5em !important;
|
|
105
|
+
font-size: 1.1em !important;
|
|
106
|
+
width: min-content !important;
|
|
107
|
+
padding: 0 !important;
|
|
77
108
|
}
|
|
78
109
|
|
|
79
|
-
.
|
|
80
|
-
|
|
110
|
+
.video-js.skin_vlone .vjs-current-time.vjs-time-control.vjs-control {
|
|
111
|
+
margin-left: 20px !important;
|
|
81
112
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
113
|
+
|
|
114
|
+
.video-js.skin_vlone .video-js.skin_vlone .vjs-big-play-button .vjs-icon-placeholder:before {
|
|
115
|
+
top: 4px;
|
|
85
116
|
}
|
|
86
117
|
|
|
87
|
-
|
|
88
|
-
|
|
118
|
+
/* Big play */
|
|
119
|
+
.video-js.skin_vlone.vjs-paused .vjs-big-play-button {
|
|
120
|
+
width: 90px;
|
|
121
|
+
height: 90px;
|
|
122
|
+
display: flex;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
align-items: center;
|
|
125
|
+
border: none;
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 0;
|
|
128
|
+
left: 0;
|
|
129
|
+
right: 0;
|
|
130
|
+
bottom: 0;
|
|
131
|
+
margin: auto;
|
|
132
|
+
font-size: 6em;
|
|
133
|
+
line-height: 1.3em;
|
|
134
|
+
transform: none !important;
|
|
89
135
|
}
|
|
90
136
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
-
|
|
94
|
-
|
|
137
|
+
|
|
138
|
+
@media(max-width:600px){
|
|
139
|
+
.video-js.skin_vlone button.vjs-big-play-button {
|
|
140
|
+
width: 50px !important;
|
|
141
|
+
height: 50px !important;
|
|
142
|
+
font-size: 2.1rem !important;
|
|
143
|
+
}
|
|
95
144
|
}
|
|
145
|
+
|
|
146
|
+
.video-js .tvProviderImage {
|
|
147
|
+
position: absolute;
|
|
148
|
+
right: 1rem;
|
|
149
|
+
top: 1rem;
|
|
150
|
+
max-height: 100px;
|
|
151
|
+
max-width: 100px;
|
|
152
|
+
}
|
|
96
153
|
|
|
97
|
-
.
|
|
98
|
-
height:
|
|
99
|
-
|
|
100
|
-
/* background: red; */
|
|
154
|
+
.video-js .tvProviderImage>img {
|
|
155
|
+
height: 100%;
|
|
156
|
+
width: 100%;
|
|
101
157
|
}
|
|
102
158
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
@media(max-width:600px) {
|
|
162
|
+
.tvProviderImage {
|
|
163
|
+
display: none
|
|
164
|
+
}
|
|
107
165
|
}
|
|
108
166
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
.video-js .multicamera-parent.default{
|
|
176
|
+
height: 345px;
|
|
177
|
+
position: absolute;
|
|
178
|
+
right: 0;
|
|
179
|
+
bottom: 6rem;
|
|
180
|
+
width: 200px;
|
|
181
|
+
right: 13px;
|
|
182
|
+
opacity: 1;
|
|
183
|
+
overflow: scroll;
|
|
184
|
+
display: grid;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
align-items: center;
|
|
115
188
|
}
|
|
116
189
|
|
|
117
|
-
.
|
|
190
|
+
.video-js .tile{
|
|
191
|
+
height: 103px;
|
|
192
|
+
width: 171px;
|
|
193
|
+
margin-bottom: 1rem;
|
|
194
|
+
background-size: cover !important;
|
|
195
|
+
background-repeat: no-repeat;
|
|
196
|
+
border-radius: 5px;
|
|
118
197
|
}
|
|
119
198
|
|
|
120
|
-
.
|
|
199
|
+
.video-js .tile:hover{
|
|
121
200
|
cursor: pointer;
|
|
122
201
|
}
|
|
123
202
|
|
|
124
|
-
.
|
|
125
|
-
|
|
126
|
-
|
|
203
|
+
.video-js .multicamera-parent:hover{
|
|
204
|
+
opacity: 1 !important;
|
|
205
|
+
background: none;
|
|
127
206
|
}
|
|
128
207
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
208
|
+
|
|
209
|
+
.video-js .multicamera-parent {
|
|
210
|
+
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
|
211
|
+
scrollbar-width: none; /* Firefox */
|
|
212
|
+
}
|
|
213
|
+
.video-js .multicamera-parent::-webkit-scrollbar {
|
|
214
|
+
display: none; /* Safari and Chrome */
|
|
134
215
|
}
|
|
135
216
|
|
|
136
|
-
|
|
137
|
-
|
|
217
|
+
@media (max-width: 600px) {
|
|
218
|
+
.video-js .multicamera-parent.live{
|
|
219
|
+
display: none !important;
|
|
220
|
+
}
|
|
221
|
+
.video-js .multicamera-parent.default{
|
|
222
|
+
display: none !important;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
@media (min-width:601px) and (max-width:900px) {
|
|
228
|
+
.video-js .tile{
|
|
229
|
+
height: 85px;
|
|
230
|
+
width: 150px;
|
|
231
|
+
}
|
|
232
|
+
.video-js .multicamera-parent.live{
|
|
233
|
+
justify-content: center ;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
.video-js .multicamera-parent.live{
|
|
239
|
+
position: absolute;
|
|
240
|
+
right: 0;
|
|
241
|
+
width: 200px;
|
|
242
|
+
right: 13px;
|
|
243
|
+
opacity: 1;
|
|
244
|
+
overflow: scroll;
|
|
245
|
+
display: grid;
|
|
246
|
+
flex-direction: column;
|
|
247
|
+
align-items: center;
|
|
248
|
+
position: relative;
|
|
249
|
+
right: 0;
|
|
250
|
+
align-content: baseline;
|
|
138
251
|
}
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
139
256
|
/* nextep */
|
|
140
257
|
.next-ep-preview{
|
|
141
258
|
position: absolute;
|
|
@@ -228,6 +345,76 @@
|
|
|
228
345
|
opacity: 0;
|
|
229
346
|
}
|
|
230
347
|
|
|
348
|
+
.video-js.vjs-quality-menu {
|
|
349
|
+
display: block;
|
|
350
|
+
}
|
|
351
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button {
|
|
352
|
+
position: relative;
|
|
353
|
+
}
|
|
354
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button li {
|
|
355
|
+
text-transform: none;
|
|
356
|
+
}
|
|
357
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button.vjs-menu-button-popup .vjs-menu .vjs-menu-content {
|
|
358
|
+
max-height: 25em;
|
|
359
|
+
width: 10em;
|
|
360
|
+
left: 0;
|
|
361
|
+
}
|
|
362
|
+
.video-js.vjs-quality-menu .vjs-menu-item .vjs-control-text {
|
|
363
|
+
position: absolute;
|
|
364
|
+
}
|
|
365
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-wrapper {
|
|
366
|
+
position: relative;
|
|
367
|
+
}
|
|
368
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-wrapper li {
|
|
369
|
+
text-transform: none;
|
|
370
|
+
}
|
|
371
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-wrapper.vjs-menu-wrapper-popup .vjs-menu .vjs-menu-content {
|
|
372
|
+
max-height: 25em;
|
|
373
|
+
width: 10em;
|
|
374
|
+
left: 0;
|
|
375
|
+
}
|
|
376
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-item-sub-label {
|
|
377
|
+
font-size: 75%;
|
|
378
|
+
font-weight: bold;
|
|
379
|
+
position: absolute;
|
|
380
|
+
right: 0;
|
|
381
|
+
text-align: center;
|
|
382
|
+
width: 4em;
|
|
383
|
+
}
|
|
384
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button-use-resolution .vjs-quality-menu-item-sub-label {
|
|
385
|
+
position: absolute;
|
|
386
|
+
right: 0;
|
|
387
|
+
text-align: center;
|
|
388
|
+
width: 4em;
|
|
389
|
+
}
|
|
390
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button-4K-flag:after, .video-js.vjs-quality-menu .vjs-quality-menu-button-HD-flag:after {
|
|
391
|
+
background-color: #2b333f;
|
|
392
|
+
color: inherit;
|
|
393
|
+
content: "";
|
|
394
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
395
|
+
font-size: 0.7em;
|
|
396
|
+
font-weight: 300;
|
|
397
|
+
height: 2.2em;
|
|
398
|
+
line-height: 2.2em;
|
|
399
|
+
padding: 0;
|
|
400
|
+
position: absolute;
|
|
401
|
+
right: 0;
|
|
402
|
+
text-align: center;
|
|
403
|
+
top: 0.5em;
|
|
404
|
+
width: 2.2em;
|
|
405
|
+
border-radius: 2em;
|
|
406
|
+
letter-spacing: 0.1em;
|
|
407
|
+
}
|
|
408
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button-HD-flag:after {
|
|
409
|
+
content: "HD";
|
|
410
|
+
}
|
|
411
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button-4K-flag:after {
|
|
412
|
+
content: "4K";
|
|
413
|
+
}
|
|
414
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button-waiting:before {
|
|
415
|
+
-webkit-animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite;
|
|
416
|
+
animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite;
|
|
417
|
+
}
|
|
231
418
|
.vjs-poster {
|
|
232
419
|
display: inline-block;
|
|
233
420
|
vertical-align: middle;
|
|
@@ -251,29 +438,8 @@
|
|
|
251
438
|
outline: none;
|
|
252
439
|
}
|
|
253
440
|
|
|
254
|
-
.video-js
|
|
255
|
-
|
|
256
|
-
height: 90px;
|
|
257
|
-
display: flex;
|
|
258
|
-
justify-content: center;
|
|
259
|
-
align-items: center;
|
|
260
|
-
border-radius: 50%;
|
|
261
|
-
position: absolute;
|
|
262
|
-
top: 0;
|
|
263
|
-
left: 0;
|
|
264
|
-
right: 0;
|
|
265
|
-
bottom: 0;
|
|
266
|
-
margin: auto;
|
|
267
|
-
font-size: 6em;
|
|
268
|
-
line-height: 1.3em;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
@media(max-width:600px){
|
|
272
|
-
button.vjs-big-play-button {
|
|
273
|
-
width: 50px !important;
|
|
274
|
-
height: 50px !important;
|
|
275
|
-
font-size: 2.1rem !important;
|
|
276
|
-
}
|
|
441
|
+
.video-js .vjs-loading-spinner{
|
|
442
|
+
margin: 0 !important;
|
|
277
443
|
}
|
|
278
444
|
|
|
279
445
|
/* Chromecast */
|
|
@@ -628,7 +794,7 @@ button.vjs-big-play-button {
|
|
|
628
794
|
}
|
|
629
795
|
}
|
|
630
796
|
|
|
631
|
-
.video-js .
|
|
797
|
+
.video-js .resolution_hidden {
|
|
632
798
|
opacity: 0;
|
|
633
799
|
visibility: hidden;
|
|
634
800
|
transition: visibility 300ms, opacity 300ms;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{C as r,f as c}from"./icons-79ad4d7d.js";import{g as l,d as s,e as d}from"./captions-6cc39cdc.js";import{e as p,s as m,f as u,j as v}from"./skin-2882ecc4.js";import"@babel/runtime/helpers/toConsumableArray";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}var h=i.getComponent("Component"),y=function(){n(E,h);var y,g,C=(y=E,g=f(),function(){var e,t=o(y);if(g){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return a(this,e)});function E(t){var n,a,o,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,E),(i=C.call(this,t,r)).playerId=r.playerId,i.seriesData=r.sres,i.currentVideoData=r.res,i.initialiseStructure(),i.loadCSS(),null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important"),i}return t(E,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"caption-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"caption-selector-icon",innerHTML:"".concat(r())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./caption-settings-cb47408f.js").then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=l(this.playerId);null==t||t.map((function(t){return s(e.playerId,t.id)}));var n=this.el(),a=i.dom.createEl("div",{className:"caption-selection-container hidden"});i.dom.$(".caption-selector-icon",this.el()).onclick=function(){var t;null!==(t=a.classList)&&void 0!==t&&t.contains("hidden")?(p(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",m(e.playerId,a)):(a.classList.add("hidden"),n.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(r),i.dom.appendContent(n,a),o.style.overflow="hidden",this.addFunctionality(a),u(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=i.dom.createEl("div",{className:"caption-selector-head"}),a=i.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(c())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=i.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),r=i.dom.createEl("div",{className:"caption-selector-content"}),l=i.dom.createEl("div",{className:"caption-container"}),s=this.createLanguageContanier();i.dom.appendContent(l,s),i.dom.appendContent(n,a),i.dom.appendContent(n,o),i.dom.appendContent(e,n),i.dom.appendContent(e,r),i.dom.appendContent(r,l),v(this.playerId,e)}},{key:"createLanguageContanier",value:function(){var e=this,t=i.dom.createEl("div",{className:"caption-language-container"}),n=i.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});i.dom.appendContent(t,n);var a=document.createElement("label");a.setAttribute("for","radio-off"),a.className="caption-language-holder";var o=document.createElement("div");o.className="caption",o.innerHTML="Off";var r=i.dom.createEl("input",{className:"radio - off",id:"radio-off",name:"language-radio",checked:"true"});r.setAttribute("type","radio"),r.onchange=function(t){var n,a,o;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important")),l(e.playerId).map((function(t){return s(e.playerId,t.id)}))},i.dom.appendContent(a,r),i.dom.appendContent(a,o),i.dom.appendContent(t,a);for(var c=l(this.playerId),p=function(n){var a,o=document.createElement("label");o.className="caption-language-holder",o.setAttribute("for","language-radio-".concat(n));var r=document.createElement("div");r.className="caption - ".concat(n),r.textContent=null==c||null===(a=c[n])||void 0===a?void 0:a.label;var l=i.dom.createEl("input",{className:"radio - ".concat(n),id:"language-radio-".concat(n),name:"language-radio"});l.onchange=function(t){d(e.playerId,c[n].id)},l.setAttribute("type","radio"),i.dom.appendContent(o,l),i.dom.appendContent(o,r),i.dom.appendContent(t,o)},m=0;m<c.length;m++)p(m);return t}},{key:"createFontSizeContainer",value:function(){var e=i.dom.createEl("div",{className:"caption-font-container"}),t=i.dom.createEl("div",{className:"caption-font-container-title",innerHTML:"Font Size"});i.dom.appendContent(e,t);for(var n=[{size:14},{size:18},{size:24}],a=0;a<n.length;a++){var o,r=document.createElement("label");r.className="caption-font-holder",r.setAttribute("for","font".concat(a));var c=document.createElement("div");c.className="fontsize - ".concat(a),c.textContent=(null==n||null===(o=n[a])||void 0===o?void 0:o.size)+"pt";var l=i.dom.createEl("input",{className:"radio - ".concat(a),id:"font".concat(a),name:"font-size-radio",size:"".concat(n[a].size),checked:"".concat(a==n.length-1)});l.setAttribute("type","radio"),l.onchange=function(e){var t=e.target.size;if(document.getElementById("caption-size")){document.getElementById("caption-size").textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}")}else{var n=document.createElement("style");n.textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}"),n.id="caption-size",document.head.append(n)}},i.dom.appendContent(r,l),i.dom.appendContent(r,c),i.dom.appendContent(e,r)}return e}}]),E}();export{y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t}from"./skin-2882ecc4.js";var e=function(e,n){var a,s,r;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(a=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===a||null===(s=a[0])||void 0===s||null===(r=s.style)||void 0===r||r.setProperty("display","flex"));for(var i=t(e).textTracks(),l=0;l<i.length;l++){var o=i[l];"subtitles"!==o.kind&&"captions"!==o.kind||o.id!=n||(o.mode="showing")}},n=function(e,n){for(var a=t(e).textTracks(),s=0;s<a.length;s++){var r=a[s];"subtitles"!==r.kind&&"captions"!==r.kind||r.id!==n||(r.mode="hidden")}},a=function(e){var n,a=t(e);return(null==a||null===(n=a.textTracks())||void 0===n?void 0:n.tracks_.filter((function(t){return"subtitles"==t.kind||"captions"===t.kind})))||[]},s=function(e){var n=t(e);n.remoteTextTracks().tracks_.map((function(t){"subtitles"==(null==t?void 0:t.kind)||null==t||t.kind,n.removeRemoteTextTrack(t)}))},r=function(e,n){var a=t(e);a.remoteTextTracks().tracks_.map((function(t){a.removeRemoteTextTrack(t)})),n.map((function(t){a.addRemoteTextTrack({src:t.url,srcLang:t.language,label:t.language})}))};export{r as a,n as d,e,a as g,s as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{r as a,j as s}from"./generic-7f222b1f.js";import{g as c}from"./renditions-c0f96578.js";import{g as d,p as u}from"./skin-2882ecc4.js";import{g as p}from"./localisation-0bf399a1.js";function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(e){var t=v();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var g=function(e){var o=function(e){r(i,e);var o=f(i);function i(e,n){var r;t(this,i);var l=(r=o.call(this,e,n)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=p("slowMoText")||"Slow Mo",r}return n(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},C=function(e,o,l){var s=function(o){r(s,o);var i=f(s);function s(e,n){var r;t(this,s);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-rewind-button");var a=u(l);return o.append(a),r}return n(s,[{key:"handleClick",value:function(){a(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},y=function(e,o,l){var a=function(o){r(a,o);var i=f(a);function a(e,n){var r;t(this,a);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-skip-button");var s=u(l);return o.append(s),r}return n(a,[{key:"handleClick",value:function(){s(e,10)}}]),a}(i.getComponent("Button"));i.registerComponent("MyButton",a),i(e).getChild("controlBar").addChild("myButton",{},1)},B=function(e,t,n){import("./resolution-00449d8d.js").then((function(r){var o=r.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=d(e),a=c(e);(null==a?void 0:a.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:n,renditions:a},l.controlBar.children().length-4))}))},b=function(e,t,n){import("./nextEpisodeButton-d0bd769d.js").then((function(r){var o=r.default,l=d(n);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:n,sres:e,res:t},l.controlBar.children().length-5)}))},j=function(e,t,n){import("./series-97ad60dd.js").then((function(r){var o=r.seriesModule,l=d(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),s=function(e){a[e].addEventListener("click",(function(){t[e]&&r.handleSeasonChange(t[e],e,l,n)}))},c=0;c<a.length;c++)s(c)}))},k=function(e,t){import("./videoSelector-56927a02.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)}))},S=function(e,t){import("./caption-settings-ddfbca32.js").then((function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("captionSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)}))},E=function(e,t){import("./settings-icon-23053add.js").then((function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("settingsSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)}))},O=function(e,t){import("./playlist-8ddb2ba1.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("playlistSelector",r),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)}))},I=function(e,t){import("./series-v2-f4ad8c85.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)}))},w=function(e,t){import("./multicamv2-6f75cbd5.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)}))},M=function(e,t){var n=d(e).el(),r=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});n.append(r)},P=function(e){var t=d(e).el(),n=0,r=d(e);r.addChild("fullscreenToggle");var o=function(){var e,n=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];n&&n.click()};r.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;r.el().addEventListener("touchend",(function(){var e=(new Date).getTime(),r=e-n;if(r<300&&r>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}n=e})),window._multiplayer_dbTapHandler=o},L=function(e,t){import("./videoSelector-182baa0d.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)}))},N=function(e,t){import("./series-v2-c9e4a646.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)}))},_=function(e,t){import("./multicamv2-1e614d9b.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)}))};export{B as a,j as b,b as c,y as d,C as e,E as f,S as g,M as h,g as i,L as j,_ as k,O as l,N as m,P as n,k as o,I as p,w as q};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/regenerator";import i from"video.js";import o from"axios";import{g as r,c as a}from"./skin-2882ecc4.js";import{i as l,d}from"./browser-d4613b36.js";import u from"js-cookie";import s from"ua-parser-js";import{a as c,r as v}from"./captions-6cc39cdc.js";var m={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status",saveWatchHistoryV1:"/user/userId/history/video",saveWatchHistoryV2:"/v2/user/history",getVideoInfoV1:"/user/info/video",getVideoInfoV2:"/v2/user/info",getSeriesWatchHistoryV1:"/user/userId/history/video",getSeriesWatchHistoryV2:"/v2/user/history/series",getLinearChannelDetails:"/v3/entitlement/linearchannel"};function f(){var e,t;null===(e=window)||void 0===e||null===(t=e.dataLayer)||void 0===t||t.push(arguments)}function p(e){window.dataLayer=window.dataLayer||[],f("js",new Date),f("config",e)}function w(e,t){f("event",e,t)}var I=function(e){var t=JSON.parse(atob(null==e?void 0:e.split(".")[1])),n=null==t?void 0:t.exp;if(new Date(1e3*n).getTime()<(new Date).getTime())return!0},g=null;function E(){return{set:function(e){e&&(g=e)},get:function(){return g}}}var T,h,y,b,_,D,O=function(){var e=t(n.mark((function e(){var t,i,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=E().get(),i=getBaseUrl(),e.prev=2,e.next=5,axios({method:"GET",url:"".concat(i,"/identity/refresh/").concat(t)});case 5:return o=e.sent,e.abrupt("return",o);case 9:throw e.prev=9,e.t0=e.catch(2),console.error("Error fetching refresh token",e.t0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(){return e.apply(this,arguments)}}(),F=null,L=function(){var e=t(n.mark((function e(){var t;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=sessionStorage.getItem("vlp_token"))||!I(t)){e.next=6;break}return F||(F=O().then((function(e){var n,i,o=null==e||null===(n=e.data)||void 0===n?void 0:n.authorizationToken,r=null==e||null===(i=e.data)||void 0===i?void 0:i.refreshToken;return o&&sessionStorage.setItem("vlp_token",o),r&&E().set(r),o||t})).catch((function(e){return console.error("Error fetching refresh token",e),t})).finally((function(){F=null}))),e.abrupt("return",F);case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=function(e){var t=!0,n=null==e?void 0:e.videoSourceUrl,i=null==e?void 0:e.asat;return n&&!i&&(t=!1),t},S=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},R=function(e){h=e},V=function(){return h},A=function(e){T=e},W=function(){return T},C=function(){return y},N=function(e){y=e},j=function(e){_=e},B=function(){return _},M=function(e){b=new Map,e.map((function(e,t){b.set(e.id,t)}))},U=function(e){if(b){var t=b.get(e);N(t+1)}},k=(D=0,{set:function(e){e>=0&&(D=e)},get:function(){return D}});function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function H(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?x(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):x(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var G=function(){var e,t,n,i,o,r,a,l=V();return"linearchannel"==((null==l?void 0:l.contentType)||"video")?null==l||null===(e=l.linearchannel)||void 0===e||null===(t=e.channels)||void 0===t||null===(n=t.find((function(e){return(null==e?void 0:e.id)===(null==l?void 0:l.channelId)})))||void 0===n||null===(i=n.content)||void 0===i?void 0:i.id:(null==l||null===(o=l.video)||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.id)||(null==l||null===(a=l.video)||void 0===a?void 0:a.id)};function z(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function Y(){var e=window.sessionStorage.getItem("uid");return e||(e=z(),window.sessionStorage.setItem("uid",e),e)}function q(){return J.apply(this,arguments)}function J(){return(J=t(n.mark((function e(){var t,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L();case 2:if(!(t=e.sent)){e.next=10;break}if(null==(i=JSON.parse(atob(t.split(".")[1])))||!i.anonymousId){e.next=9;break}return e.abrupt("return","guest-user");case 9:return e.abrupt("return",null==i?void 0:i.userId);case 10:return e.abrupt("return","guest-user");case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}window.initialise=function(e){window.sid=z(),window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var t=Math.floor(e.currentTime());e.on("error",(function(){var n,i,o,r=Math.floor(e.currentTime());w(r?"FAILED_TO_START":"DROPPED_STREAM",H({pfm:window.platform,uid:Y(),vid:G(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:t===r?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})}))},window.firstFrame=function(e){e.one("play",tryCatch((function(){var t,n,i;window.ttFirstFrame=0,window.ttFirstFrameTimer=setInterval((function(){window.ttFirstFrame=window.handleBufferTimer(window.ttFirstFrame,e)}),100),w("PLAY",H({pfm:window.platform,uid:Y(),vid:G(),videoPosition:Math.floor(e.currentTime())},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})})))},window.buffering=function(e){e.on("waiting",tryCatch((function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=setInterval((function(){var t,n;null!=e&&null!==(t=e.el_)&&void 0!==t&&null!==(n=t.className)&&void 0!==n&&n.includes("vjs-waiting")&&!e.paused()?window.totalBufferTime=handleBufferTimer(window.totalBufferTime,e):clearInterval(window.bufferingTimer)}),100))})))},window.handleBufferTimer=function(e,t){var n,i;if(t.el_){var o,r,a,l=e+.1;if(+l.toFixed(2)%5==0&&null!=t&&null!==(n=t.el_)&&void 0!==n&&null!==(i=n.className)&&void 0!==i&&i.includes("vjs-waiting"))w("BUFFERING",H({pfm:window.platform,uid:Y(),vid:G(),videoPosition:t.el_&&Math.floor(t.currentTime())},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(a=r.beacon)||void 0===a?void 0:a.params)),fireEvent({eventName:"BUFFERING",videoPosition:t.el_&&Math.floor(t.currentTime()),isAdEvent:!1});return l}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",(function(){var t,n,i;clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,w("FIRST_FRAME",H({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:Y(),vid:G()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e)})}))},window.ads=function(e){e.on("adsready",(function(){e.ima.addEventListener(window.google.ima.AdEvent.Type.STARTED,(function(){var t,n,i,o,r,a;w("AD_REQUEST",H({eventName:"AD_REQUEST",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:Y(),vid:G(),resHeight:e.videoHeight(),resWidth:e.videoWidth()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,resHeight:e.videoHeight(),resWidth:e.videoWidth(),adPosition:1}),w("AD_IMPRESSION",H({eventName:"AD_IMPRESSION",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:Y(),resHeight:e.videoHeight(),resWidth:e.videoWidth(),vid:G()},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(a=r.beacon)||void 0===a?void 0:a.params)),fireEvent({eventName:"AD_IMPRESSION",videoPosition:Math.ceil(e.currentTime()),resHeight:e.videoHeight(),resWidth:e.videoWidth(),isAdEvent:!0,adPosition:1})})),e.ima.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,(function(){window.ttFirstFrame=0})),e.ima.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,(function(){window.ttFirstFrame=0}))}))},window.ping=function(e){var t=[];e.on("timeupdate",(function(){var n=Math.floor(e.currentTime());n>=30&&n%30==0&&!t.includes(n)&&(t.push(n),fireEvent({eventName:"PING",videoPosition:n,isAdEvent:!1,duration:30,resHeight:e.videoHeight(),resWidth:e.videoWidth(),bufferHealth:window.getRemainingBufferTime(e),bitrate:e.tech_.vhs&&window.getBitrate(e)}))}))},window.getBitrate=function(e){return Math.round(e.tech_.vhs.selectPlaylist().attributes.BANDWIDTH/1e3)},window.getRemainingBufferTime=function(e){return tryCatch((function(){for(var t=e.currentTime(),n=e.duration(),i=e.buffered(),o=0;o<i.length;o++){var r=i.start(o),a=i.end(o);if(K(t,r,a)){var l=Math.round(n-a);if(isFinite(l))return l}}}))()};var K=function(e,t,n){return e>=t&&e<=n};function X(e){if("localhost"!==location.hostname&&"127.0.0.1"!==location.hostname){var t=r(e);window.initialise(t),window.firstFrame(t),t.on("loadedmetadata",(function(){window.endFirstFrame(t)}))}}window.fireEvent=function(){var e=t(n.mark((function e(t){var i,r,a,l,d,u,s,c,v,m,f,p,w,I;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L();case 2:return m=e.sent,f=S(m),p=null==f?void 0:f.site,w=null==f?void 0:f.siteId,e.t0=H,e.t1=H,e.t2=H({aid:p,cid:w,pfm:window.platform},null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(a=r.beacon)||void 0===a?void 0:a.params),e.t3={},e.t4=Y(),e.t5=G(),e.t6=t.url||document.location.href,e.t7=t.ref||document.referrer,e.t8=t.eventName,e.t9=t.videoPosition,e.t10=window.environment,e.t11=t.dp1||"",e.t12=t.dp2||"",e.t13=t.dp3||"",e.t14=t.dp4||"",e.t15=t.dp5||"",e.t16=!0===t.isAdEvent?t.videoPosition:"",e.t17=!0===t.isAdEvent?(n=t.adPosition)?String(n):"":"",e.next=26,q();case 26:e.t18=e.sent,e.t19=t.playerType||"native",e.t20=t.mediaType||"VIDEO",e.t21=window.sid,e.t22=t.ttFirstFrame,e.t23=t.bitrate,e.t24=t.resHeight,e.t25=t.resWidth,e.t26=t.bufferHealth,e.t27={uid:e.t4,vid:e.t5,url:e.t6,ref:e.t7,pa:e.t8,vpos:e.t9,environment:e.t10,dp1:e.t11,dp2:e.t12,dp3:e.t13,dp4:e.t14,dp5:e.t15,apos:e.t16,apod:e.t17,profid:e.t18,player:e.t19,media_type:e.t20,stream_id:e.t21,embedurl:"",ttfirstframe:e.t22,bitrate:e.t23,connectionspeed:"",resolutionheight:e.t24,resolutionwidth:e.t25,bufferhealth:e.t26},e.t28=(null==t?void 0:t.duration)&&{duration:t.duration},e.t29=(0,e.t1)(e.t2,e.t3,e.t27,e.t28),e.t30=null===(l=window)||void 0===l||null===(d=l.customData)||void 0===d||null===(u=d.beacon)||void 0===u?void 0:u.params,e.t31=(0,e.t0)(e.t29,e.t30),I=[e.t31],o({url:(null===(s=window)||void 0===s||null===(c=s.customData)||void 0===c||null===(v=c.beacon)||void 0===v?void 0:v.url)||"https://1a7ahu122g.execute-api.us-east-1.amazonaws.com/production_beacon/firehouse-proxy",method:"post",headers:{Authorization:m},contentType:"application/x-www-form-urlencoded",dataType:"text",data:I}).catch((function(e){console.error(e)}));case 42:case"end":return e.stop()}var n}),e)})));return function(t){return e.apply(this,arguments)}}(),window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Z(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?Q(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Q(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var $={name:"@viewlift/player8",version:"1.0.110",main:"dist/bundle.cjs.js",amdName:"_playerCore",dependencies:{"@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1",axios:"^1.2.3",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","video.js":"^8.21.1","videojs-contrib-ads":"^7.5.2","videojs-contrib-eme":"^5.5.1","videojs-mux":"^4.21.7","videojs-contrib-quality-menu":"^1.0.3"}};window.vl_player_version=$.version;var ee,te=function(e,t){var n,i,r,a,l,d,u,s;return null!==(n=window)&&void 0!==n&&null!==(i=n.customData)&&void 0!==i&&i.overrideEntitlementResponse?new Promise((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})})):o({url:null!==(l=window)&&void 0!==l&&null!==(d=l.customData)&&void 0!==d&&d.overrideEntitlementBaseUrl?(null===(u=window)||void 0===u||null===(s=u.customData)||void 0===s?void 0:s.overrideEntitlementBaseUrl)+"/video/status":le.get()+"".concat(null==m?void 0:m.getVideoDetails),params:Z({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(r=window)||void 0===r||null===(a=r.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:t,"Sdk-Version":$.version},withCredentials:!0})},ne=function(e,t){var n,i,r,a;return null!==(n=window)&&void 0!==n&&null!==(i=n.customData)&&void 0!==i&&i.overrideEntitlementResponse?new Promise((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})})):o({url:le.get()+m.getLinearChannelDetails,params:Z(Z(Z(Z(Z({id:null==e?void 0:e.id,deviceType:"web_browser",contentConsumption:"web"},(null==e?void 0:e.channelId)&&{channelId:null==e?void 0:e.channelId}),(null==e?void 0:e.programId)&&{programId:null==e?void 0:e.programId}),(null==e?void 0:e.programTitle)&&{programTitle:null==e?void 0:e.programTitle}),(null==e?void 0:e.programSubType)&&{programSubType:null==e?void 0:e.programSubType}),null===(r=window)||void 0===r||null===(a=r.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:t}})},ie=function(e,t){var n,i,r=S(t),a=(null==r?void 0:r.site)||null;return null!==(n=window)&&void 0!==n&&null!==(i=n.customData)&&void 0!==i&&i.seriesData?new Promise((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.seriesData})})):o({url:le.get()+"/v3/content/series/".concat(e),params:{site:a},method:"GET",headers:{Authorization:t}})},oe=function(){var e=t(n.mark((function e(t){var i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,getToken();case 2:return i=e.sent,e.abrupt("return",o({url:le.get()+"".concat(null==m?void 0:m.saveWatchHistoryV2),method:"POST",headers:{Authorization:i},data:Z({},t),params:Z({},(null==t?void 0:t.profileId)&&{profileId:null==t?void 0:t.profileId})}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),re=function(e,t){var n,i,r=window.contentType;return o({method:"GET",url:le.get()+"".concat(null==m?void 0:m.getVideoInfoV2,"/").concat(r,"/").concat(e),headers:{Authorization:t,"x-api-key":null===(n=window)||void 0===n||null===(i=n.watchHistory)||void 0===i?void 0:i.xApiKey},timeout:15e3})},ae=function(e){var t=e.videoId;return o({method:"GET",url:le.get()+"".concat(null==m?void 0:m.getSeriesWatchHistoryV2,"/").concat(t),headers:{Authorization:e.token},timeout:15e3})},le=(ee=null==m?void 0:m.apiBaseUrl,{set:function(e){e&&(ee=e)},get:function(){return ee}}),de=function(e,t,n){return o({url:n,params:{id:e,deviceType:"web_browser",contentConsumption:"web"},method:"GET",headers:{Authorization:t},withCredentials:!0})},ue=function(e,t){if(import("./error-2395864b.js").then((function(e){var t=document.createElement("style");t.id="errorblock",t.append("".concat(e.default)),document.head.appendChild(t)})),document.getElementsByClassName("error-container")[0]){var n=document.getElementsByClassName("error-message")[0];n&&(n.innerHTML="".concat(t))}else{var i=document.getElementById(e);if(i){var o=document.createElement("div");o.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(t),o.appendChild(r),i.append(o)}}},se=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ve(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?ce(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ce(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}window._deviceInfo=s(navigator.userAgent);var me=function(e,t){return e&&t?"".concat(e,"x").concat(t):e>1024?"L":e>768?"M":"S"},fe=function(e){var t=pe(e,"video.tags",[]),n=pe(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return t.length>0?t.map((function(e){return e.title})).join(","):n},pe=function(e,t,n){for(var i=0,o=(t=t.split(".")).length;i<o;i++){var r;e=null===(r=e)||void 0===r?void 0:r[t[i]]}return e||n},we=function(){var e,t,n,i,o,a,l,d,s,c,v,m,f,p,w,I,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",E=arguments.length>1?arguments[1]:void 0,T=arguments.length>2?arguments[2]:void 0,h=(null==T?void 0:T.contentType)||"video",y=null==T||null===(e=T[h])||void 0===e?void 0:e.metadata,b=r(E);if(!g.includes("VIEWLIFT_"))return g;var _=window.getComputedStyle(document.getElementById(E),null),D=Math.trunc(_.getPropertyValue("height").slice(0,-2)),O=Math.trunc(_.getPropertyValue("width").slice(0,-2)),F="linearchannel"===h?null==T||null===(t=T.linearchannel)||void 0===t||null===(n=t.channels)||void 0===n||null===(i=n.find((function(e){return(null==e?void 0:e.id)===(null==T?void 0:T.channelId)})))||void 0===i||null===(o=i.content)||void 0===o?void 0:o.id:pe(T,"video.gist.id",""),L=ve(ve({},Ee(y)),{},{VIEWLIFT_WIDTH:O,VIEWLIFT_HEIGHT:D,VIEWLIFT_SIZE:me(O,D),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:Date.now().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:Date.now().toString(),VIEWLIFT_IP:(null===(a=window)||void 0===a?void 0:a.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:pe(T,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:pe(T,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:pe(T,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==b||null===(l=b.options_)||void 0===l?void 0:l.autoplay)||1,VIEWLIFT_MUTE:(null==b||null===(d=b.options_)||void 0===d?void 0:d.autoplay)||0,VIEWLIFT_DEVICE_ID:localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"WEB_BROWSER",VIEWLIFT_KEYWORDS:fe(T),VIEWLIFT_MEDIA_ID:F,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(pe(T,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:F,VIEWLIFT_VIDEO_URL:encodeURI(window.location.host+pe(T,"video.gist.permalink","")),VIEWLIFT_CONSENT:u.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:pe(null===(s=window)||void 0===s||null===(c=s.app_data)||void 0===c||null===(v=c.site)||void 0===v?void 0:v.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR:pe(null===(m=window)||void 0===m||null===(f=m.app_data)||void 0===f||null===(p=f.site)||void 0===p?void 0:p.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*pe(T,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:pe(T,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:F,VIEWLIFT_CONTENT_TITLE:pe(T,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),VIEWLIFT_CONTENT_SERIES_TITLE:pe(T,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:pe(T,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:ge(),VIEWLIFT_SEASON_NUMBER:Ie(),VIEWLIFT_CONTENT_TAGS:fe(T)},null===(w=window)||void 0===w||null===(I=w.customData)||void 0===I?void 0:I.macros);for(var P in L){var S=new RegExp(P,"g");g=g.replace(S,L[P])}return g},Ie=function(){var e=k.get();return e>=0?e+1:1},ge=function(){var e,t,n,i=W(),o=V(),r=null==o||null===(e=o.video)||void 0===e?void 0:e.id,a=k.get(),l=null==i||null===(t=i[a])||void 0===t||null===(n=t.episodes)||void 0===n?void 0:n.findIndex((function(e){return(null==e?void 0:e.id)===r}));return l>=0?l+1:1},Ee=function(e){var t,n,i,o,r,a,d={},u=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map((function(e){u.set(e.name,e.value)})));var s=(null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.subscription)||void 0===i?void 0:i.SVOD)||!1,c=(null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(a=r.subscription)||void 0===a?void 0:a.TVE)||!1;return s||c?(l()?s?d=ve(ve({},d),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||""}):c&&(d=ve(ve({},d),{},{VIEWLIFT_CSID:u.get("csid.mweb.tve")||""})):s?d=ve(ve({},d),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||""}):c&&(d=ve(ve({},d),{},{VIEWLIFT_CSID:u.get("csid.web.tve")||""})),s?d=ve(ve({},d),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||""}):c&&(d=ve(ve({},d),{},{VIEWLIFT_SFID:u.get("sfid.tve")||""})),d=l()?ve(ve({},d),{},{VIEWLIFT_PROF:u.get("prof.mweb")||""}):ve(ve({},d),{},{VIEWLIFT_PROF:u.get("prof.web")||""})):(d=ve(ve({},d),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||""}),d=l()?ve(ve({},d),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:u.get("prof.mweb")||""}):ve(ve({},d),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||"",VIEWLIFT_PROF:u.get("prof.web")||""})),d},Te=function(e,t){var n,i,o,r,a,l,u,s,c,v,m,f,p,w=(null==e?void 0:e.contentType)||"video",I=null==e||null===(n=e[w])||void 0===n?void 0:n.drmEnabled,g=null==e||null===(i=e[w])||void 0===i||null===(o=i.streamingInfo)||void 0===o?void 0:o.videoAssets,E=null==e||null===(r=e[w])||void 0===r||null===(a=r.streamingInfo)||void 0===a?void 0:a.audioAssets,T=(null==e||null===(l=e[w])||void 0===l||null===(u=l.streamingInfo)||void 0===u||null===(s=u.videoAssets)||void 0===s?void 0:s.hls)||!1;null==e||null===(c=e[w])||void 0===c||null===(v=c.liveDetails)||void 0===v||v.isDvrEnabled;var h=(null==e||null===(m=e[w])||void 0===m||null===(f=m.streamingInfo)||void 0===f||null===(p=f.videoAssets)||void 0===p?void 0:p.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=E&&E.hls)return ye(E);if(I){var y=be(g,t);return y.src=we(y.src,t,e),y}if("Safari"!==d()&&h)return he(g);if(T){var b=ye(g);return b.src=we(b.src,t,e),b}if(null!=g&&g.mpeg){var _=function(e){var t=null==e?void 0:e.mpeg;return{src:t[t.length-1].url,type:"video/mp4"}}(g);return _.src=we(_.src,t,e),_}return null},he=function(e){var t=null==e?void 0:e.dash;return t?{src:t,type:"application/dash+xml"}:null},ye=function(e){var t=null==e?void 0:e.hls;return t?{src:t,type:"application/x-mpegURL"}:null},be=function(e,t){var n=e.fairPlay,o=e.widevine,a=e.playReady,l=d();if(r(t),"Safari"===l){var u=function(e){var t=e.url;return{src:t,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(t,n){var o={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};console.log("🔐 Requesting FairPlay Certificate...",o),i.xhr(o,(function(e,t,i){console.log(e),e&&n(e),n(null,new Uint8Array(i))}))},getContentId:function(e,t){if(t){var n=t.indexOf("\0")+1;return t.slice(n)}},getLicense:function(t,n,o,r){var a={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:o,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};i.xhr(a,(function(e,t,n){console.log(e),e&&r(e),r(null,n)}))}}}}}(n);return _e(t),u}var s={src:o.url,type:"application/dash+xml"};return _e(t),s.keySystems={"com.widevine.alpha":{url:o.licenseUrl,licenseHeaders:{"X-AxDRM-Message":o.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:a.licenseUrl,licenseHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}},s};var _e=function(e){var t=r(e);if("function"==typeof t.eme)try{t.eme(),"Safari"==d()&&t.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},De=function(e,t){var n=e.src,i=e.type;if(!n||"string"!=typeof n||!n.includes(".com"))return{src:n,type:i};t=t.replace(/\/$/,"");var o=n.split(".com")[1]||"";return{src:o?"".concat(t).concat(o):n,type:i}},Oe=!1,Fe=function(e,t,n){var i=we(t,e,n),o=r(e);if(t&&window.google){if("function"!=typeof o.ima)return;o.ima.initializeAdDisplayContainer&&o.ima.initializeAdDisplayContainer(),function(e,t){var n,i,o,a=r(e);if(null!==a.el_){Oe=!0;var l={id:e,adTagUrl:"".concat(t),adLabel:"Your video will resume after this sponsor message"};a.ima.initializeAdDisplayContainer&&a.ima.initializeAdDisplayContainer(),Oe&&null!==a.el_&&("function"==typeof a.ima?a.ima(l):setTimeout((function(){a.ima.setContentWithAdTag(null,t,!0),a.ima.requestAds()}),1e3));var d=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&d.hasAttribute("controls")&&d.removeAttribute("controls");var u="click",s=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(s=!0,u="touchend"),a.one(u,(function(){s&&a.ima.initializeAdDisplayContainer()}));var c=(null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.ads)||void 0===o?void 0:o.adEventHandler)||null;a.one("ads-ad-started",(function(){c&&c({status:"STARTED",msg:"Advertisement Started"})})),a.one("ads-manager",(function(e){e.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,(function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})}))})),a.on("adserror",(function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})}))}}(e,i)}};function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var Pe=function(e){i(e).play()},Se=function(e){i(e).pause()},Re=function(e,t){var n=i(e),o=n.currentTime()+t;n.currentTime(o)},Ve=function(e,t){var n=i(e),o=n.currentTime(),r=o<=t?0:o-t;n.currentTime(r)},Ae=function(e){return!!i.getPlayer("".concat(e))},We=function(e){return i(e).paused()},Ce=function(){var e=t(n.mark((function e(t,i){var o,a,l,d=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d.length>2&&void 0!==d[2]&&d[2],e.next=3,L();case 3:return a=e.sent,l=r(t),e.abrupt("return",new Promise((function(e,n){ne(i,a).then((function(n){var r=null==n?void 0:n.data;window.sid=z(),r.contentType="linearchannel",r.channelId=null==i?void 0:i.channelId;var a=Te(r,t);R(r),a&&o?(Ue(t,a),l.on("loadstart",(function(){e({status:!0,msg:"Feed authenticated and loaded",response:r})}))):e({status:!0,msg:"Feed authenticated",response:r})})).catch((function(e){n({status:!1,msg:"Cannot load feed",response:e})}))})));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Ne=function(){var e=t(n.mark((function e(t,i,o){var a,l,d,u,s,m;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L();case 2:return u=e.sent,(W()||null)&&U(i),s=0,m=0,null!==(a=window)&&void 0!==a&&a.watchHistory&&null!==(l=window)&&void 0!==l&&null!==(d=l.watchHistory)&&void 0!==d&&d.enable&&re(i,u).then((function(e){var t,n,i,o,r,a;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(null==e?void 0:e.data)),s=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,m=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null})).catch((function(e){var t,n,i,o;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(e))})),e.abrupt("return",new Promise((function(e,n){te(i,u).then((function(i){var o,a,l,d,u,f,p,w,I,g,E=null==i?void 0:i.data,T=(null==E||null===(o=E.video)||void 0===o||null===(a=o.streamingInfo)||void 0===a?void 0:a.isLiveStream)||!1;R(i.data);var h=(null==E||null===(l=E.ads)||void 0===l||null===(d=l.preRoll)||void 0===d||null===(u=d.adTags)||void 0===u||null===(f=u.web)||void 0===f?void 0:f.active)&&(null==E||null===(p=E.ads)||void 0===p||null===(w=p.preRoll)||void 0===w||null===(I=w.adTags)||void 0===I||null===(g=I.web)||void 0===g?void 0:g.url);h&&Fe(t,h,E);var y=Te(E,t);if(y){var b,_,D,O,F,L,P,S,V,A,W,C,N,j,B=(null==E||null===(b=E.video)||void 0===b||null===(_=b.gist)||void 0===_?void 0:_.videoImageUrl)||(null==E||null===(D=E.video)||void 0===D||null===(O=D.gist)||void 0===O||null===(F=O.imageGist)||void 0===F?void 0:F.r16x9),M=r(t);if(M.poster(B),Ue(t,y),M.on("loadstart",(function(){T&&e({status:!0,msg:"Video Loaded",response:E})})),M.on("loadeddata",(function(){se(),e({status:!0,msg:"Video Loaded",response:E})})),M.one("play",(function(){s&&m<95&&setTimeout((function(){M.currentTime(s)}),0)})),M.one("error",(function(){var e;n({status:!1,msg:(null==M||null===(e=M.error())||void 0===e?void 0:e.message)||"Some error occured"})})),(null==E||null===(L=E.video)||void 0===L||null===(P=L.contentDetails)||void 0===P||null===(S=P.closedCaptions)||void 0===S?void 0:S.length)>0||(null==E||null===(V=E.video)||void 0===V||null===(A=V.closedCaptions)||void 0===A?void 0:A.length)>0)W=((null==E||null===(C=E.video)||void 0===C||null===(N=C.contentDetails)||void 0===N?void 0:N.closedCaptions)||(null==E||null===(j=E.video)||void 0===j?void 0:j.closedCaptions)).filter((function(e){return"VTT"===e.format})),c(t,W);else v(t)}else ue(t,"Incompatible Source, only hls,mp4,drm content is allowed"),n("Incompatible Source, only hls,mp4,drm content is allowed")})).catch((function(e){ke(e,t,n,i)}))})));case 9:case"end":return e.stop()}}),e)})));return function(t,n,i){return e.apply(this,arguments)}}(),je=function(e,t,n){var i=r(e);return i.src(t),new Promise((function(e,t){var o=0;i.one("loadedmetadata",(function(){clearTimeout(o),e({status:!0,msg:"video loaded"})})),i.one("loadstart",(function(e){o=setTimeout((function(){t("FAILED: Took too long to load")}),n)}))}))},Be=function(e){var t=r(e);if(Me(),a(),window.onresize=null,t)t.dispose();else{var n=document.getElementById(e);n&&n.remove()}},Me=function(){document.getElementById("carousel_homepage")&&document.getElementById("carousel_homepage").remove(),document.getElementById("dvr_skin")&&document.getElementById("dvr_skin").remove(),document.getElementById("nondvr_skin")&&document.getElementById("nondvr_skin").remove(),document.getElementById("multicam")&&document.getElementById("multicam").remove(),document.getElementById("errorblock")&&document.getElementById("errorblock").remove(),document.getElementById("def_skin")&&document.getElementById("def_skin").remove(),document.getElementById("video-selection")&&document.getElementById("video-selection").remove(),document.getElementById("multicam-v2")&&document.getElementById("multicam-v2").remove(),document.getElementById("default_v2")&&document.getElementById("default_v2").remove(),document.getElementById("video-captions")&&document.getElementById("video-captions").remove(),document.getElementById("playlist-selection")&&document.getElementById("playlist-selection").remove(),document.getElementById("multiplayer_css")&&document.getElementById("multiplayer_css").remove(),document.getElementById("chromett")&&document.getElementById("chromett").remove()},Ue=function(e,t){var n=r(e);n&&n.src(t)},ke=function(t,n,i,o){var r,a,l,d,u,s,c=null==t||null===(r=t.response)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.errorCode,v=(null==t||null===(l=t.response)||void 0===l||null===(d=l.data)||void 0===d?void 0:d.errorMessage)||(null==t?void 0:t.message);Ae(n)&&ue(n,(null===(u=window)||void 0===u?void 0:u.customErrors)&&(null===(s=window)||void 0===s?void 0:s.customErrors[c])||"".concat(v)),i&&i(function(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?Le(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Le(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({status:!1,response:t,msg:"".concat(v)},o&&{videoId:o}))},xe=function(e){var t=document.getElementById(e),n=t.getElementsByClassName("vjs-control-bar")[0];n&&(n.style.visibility="hidden");var i=t.getElementsByClassName("vjs-big-play-button")[0];i&&(i.style.display="none");var o=t.getElementsByClassName("vjs-fullscreen-control")[0];o&&(o.style.display="none")};export{E as A,I as B,Fe as C,De as D,X as E,p as F,ie as G,ne as H,k as I,A as J,C as K,W as L,We as M,N,M as O,U as P,Te as a,R as b,se as c,B as d,ae as e,j as f,V as g,ue as h,je as i,Re as j,Se as k,Ue as l,Ae as m,Ne as n,Ce as o,Pe as p,Be as q,Ve as r,oe as s,xe as t,de as u,te as v,re as w,ke as x,le as y,P as z};
|